(()=>{"use strict";var e,b={},m={};function t(e){var n=m[e];if(void 0!==n)return n.exports;var r=m[e]={exports:{}};return b[e].call(r.exports,r,r.exports,t),r.exports}t.m=b,e=[],t.O=(n,r,u,o)=>{if(!r){var a=1/0;for(i=0;i<e.length;i++){for(var[r,u,o]=e[i],s=!0,l=0;l<r.length;l++)(!1&o||a>=o)&&Object.keys(t.O).every(v=>t.O[v](r[l]))?r.splice(l--,1):(s=!1,o<a&&(a=o));if(s){e.splice(i--,1);var d=u();void 0!==d&&(n=d)}}return n}o=o||0;for(var i=e.length;i>0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[r,u,o]},t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((n,r)=>(t.f[r](e,n),n),[])),t.u=e=>e+".c1a13e0e36b758fa.js",t.miniCssF=e=>{},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="ClientApp:";t.l=(r,u,o,i)=>{if(e[r])e[r].push(u);else{var a,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var f=l[d];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==n+o){a=f;break}}a||(s=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,t.nc&&a.setAttribute("nonce",t.nc),a.setAttribute("data-webpack",n+o),a.src=t.tu(r)),e[r]=[u];var p=(g,v)=>{a.onerror=a.onload=null,clearTimeout(c);var h=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(v)),g)return g(v)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),t.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;t.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),t.tu=e=>t.tt().createScriptURL(e),t.p="/scripts/ClientApp/",(()=>{var e={runtime:0};t.f.j=(u,o)=>{var i=t.o(e,u)?e[u]:void 0;if(0!==i)if(i)o.push(i[2]);else if("runtime"!=u){var a=new Promise((f,p)=>i=e[u]=[f,p]);o.push(i[2]=a);var s=t.p+t.u(u),l=new Error;t.l(s,f=>{if(t.o(e,u)&&(0!==(i=e[u])&&(e[u]=void 0),i)){var p=f&&("load"===f.type?"missing":f.type),c=f&&f.target&&f.target.src;l.message="Loading chunk "+u+" failed.\n("+p+": "+c+")",l.name="ChunkLoadError",l.type=p,l.request=c,i[1](l)}},"chunk-"+u,u)}else e[u]=0},t.O.j=u=>0===e[u];var n=(u,o)=>{var l,d,[i,a,s]=o,f=0;if(i.some(c=>0!==e[c])){for(l in a)t.o(a,l)&&(t.m[l]=a[l]);if(s)var p=s(t)}for(u&&u(o);f<i.length;f++)t.o(e,d=i[f])&&e[d]&&e[d][0](),e[d]=0;return t.O(p)},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([["polyfills"],{7277:()=>{!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"))})},7435:(ie,Ee,de)=>{de(7277)}},ie=>{ie(ie.s=7435)}]);
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"]);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 m=new MetaArticleInfo(a.$eval(s.metaElement));e.generalPush(m),n.remove()}}}function MetaEventDirective(e){return{restrict:"E",link:function(a,n,s){var m=new MetaEventInfo(a.$eval(s.metaElement));e.generalPush(m),n.remove()}}}function MetaSnipDirective(e){return{restrict:"E",link:function(a,n,s){var m=new MetaSnipInfo(a.$eval(s.metaElement));e.generalPush(m),n.remove()}}}function MetaSponsoredArticleDirective(e){return{restrict:"E",link:function(a,n,s){var m=new MetaSponsoredArticleInfo(a.$eval(s.metaElement));e.generalPush(m),n.remove()}}}function MetaStaticArticleDirective(e){return{restrict:"E",link:function(a,n,s){var m=new MetaStaticArticleInfo(a.$eval(s.metaElement));e.generalPush(m),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(o){return o.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 o={};t.chapterGroups.forEach(function(r){o[r.slug]||(o[r.slug]=[]),o[r.slug].push(r)});var m={};t.staticArticles.forEach(function(r){var c=r.path;m[c]||(m[c]=[]),m[c].push(r)}),t.chapters.forEach(function(r){0!==r.managementState&&(r.managingParent=n[r.managingParentSlug],2!==r.managementState&&(r.settings=s[r.managingParentSlug]),o[r.managingParentSlug]&&(r.chapterGroups=o[r.managingParentSlug].slice(0)),r.chapterGroups&&r.chapterGroups.forEach(function(c,f){c.chapters.forEach(function(d){d.slug===r.slug&&r.chapterGroups.splice(f,1)})}),r.scopeStaticArticlesDictionary={},r.staticArticles.forEach(function(c){var f=m[c.path];if(f){var d=f.filter(function(u){return u.chapterId===r.id});r.scopeStaticArticlesDictionary[c.path]=d[0]}}))}),t.network.chapters=[],t.network.chaptersSlugs.forEach(function(r){var c=t.getChapter(r);c&&t.network.chapters.push(c)}),t.network.staticArticles.forEach(function(r){t.network.chapters.forEach(function(c){2===c.managementState&&(c.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 MetaEventInfo(e){MetaInformationBase.call(this,{title:e.summary,date:e.start,imageUrl:e.coverImage.assetImageUrl+"?preset=cover&cache=0",path:"/"+scope.currentScope.chapter.regEx+e.coverImage.sourceArticlePath,type:"event",removeAttributes:["author","description"]})}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 o=a.scope;t.scope=a.scope;var m={chapterSlug:o.currentScope.chapter?o.currentScope.chapter.slug:null,networkSlug:o.currentScope.network.slug,threshold:o.globalSettings.oculusImpressionThreshold,trackArticleWordReading:o.globalSettings.oculusTrackArticleWordReading,idleTimeout:o.globalSettings.oculusIdleTimeout,impressionThreshold:o.globalSettings.oculusImpressionThreshold,impressionViewportThreshold:o.globalSettings.oculusImpressionViewportThreshold,shipmentImpressionThreshold:o.globalSettings.oculusShipmentImpressionThreshold,shipmentImpressionViewportThreshold:o.globalSettings.oculusShipmentImpressionViewportThreshold,readingSpeed:o.globalSettings.oculusReadingSpeed,readingThreshold:o.globalSettings.oculusReadingThreshold,readingViewportThreshold:o.globalSettings.oculusReadingViewportThreshold,trackArticleScrolling:o.globalSettings.oculusTrackArticleScrolling,locationRequestEnable:o.currentScope.network.settings.oculusLocationRequestEnable,locationRequestSuccessThrottleDays:o.globalSettings.oculusLocationRequestSuccessThrottleDays,locationRequestFailedThrottleDays:o.globalSettings.oculusLocationRequestFailedThrottleDays};o.oculus=m,n.enableOculusFeedback&&(m.feedback=!0),a.Oculus=new Oculus(m)}]),app.run(["$state","$rootScope","$previousState","$window","localStorageService","profileService","$analytics","$uibModal","$timeout","notificationService","$interval","$location","scopeService","clickService",function(e,t,a,n,s,o,m,r,c,f,d,u,i,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(p,x){return x}),t.appPlatform=-1!==navigator.userAgent.indexOf("Android")?"Android":"iOS"),t.navigateUp=function(){c(function(){e.params.back&&!e.params.back.abstract?e.go(e.params.back,e.params.backParams):e.go("app.root")})},t.openChapterSwitch=function(){var p=r.open({templateUrl:"/ClientApp/src/legacy-app/index/chapterSwitchDialog.html",controller:"ChapterSwitchDialog",size:"lg",resolve:{}});m.eventTrack("ShowChapterSwitchDialog",{category:"Navigation",label:scope.currentChapter.slug}),p.result.then(function(x){t.switchChapter(x)})},t.switchChapter=function(p){var x=null;scope.chapters.some(function(M){return M.slug===p&&(x=M,!0)}),x&&o.updateFavoriteChapter(x.slug).then(function(){var M=x.path;scope.currentScope.networkPath.length>1&&(M=scope.currentScope.networkPath+x.path),window.location.href=M})},t.notification=f;var l=function(p){o.getProfile().then(function(x){x.isRegistered?f.update(p):f.updateUnseenCount()})};if(t.$on("authenticationStateChanged",function(){l(!0)}),!t.app){var b=document.hasFocus();$(window).on("focus",function(){b=!0,l()}).on("blur",function(){b=!1}),d(function(){b&&l()},2e4)}if(t.app){var k=function(){FCMPlugin.getToken(function(p){p?f.updateToken({token:p}):c(function(){FCMPlugin.getToken(function(x){x&&f.updateToken({token:x})},function(){})},1e4)},function(){c(function(){FCMPlugin.getToken(function(p){p&&f.updateToken({token:p})},function(){})},1e4)})};t.$on("authenticationStateChanged",function(){k()});var v="app.root",y="",I=0,h="",w={initialize:function(){this.bindEvents()},bindEvents:function(){document.addEventListener("deviceready",this.onDeviceReady,!1),document.addEventListener("offline",this.onOffline,!1)},didLaunchAppFromLink:function(p){-1==p.url.indexOf("/document/")&&-1==p.url.indexOf("/pdf/")&&-1==p.url.indexOf("/file/")&&(window.location.href=p.url)},onOffline:function(){v=e.current.name,h=window.location.href,I=setTimeout(function(){I=0,y="offline",e.go("app.offline")},5e3)},onOnline:function(){I>0?(clearTimeout(I),h="",I=0):"offline"===y&&("app.root"!==v&&(window.location.href=h),e.go(v),h=y="")},onBackKeyDown:function(){console.log("backKey",history.length,history),history.back()},statusBarDarkMode:function(){var p=window.matchMedia("(prefers-color-scheme:dark)");"android"==cordova.platformId?p.matches?(StatusBar.styleLightContent(),backcolor=getComputedStyle(document.body).getPropertyValue("--color1Dark"),StatusBar.backgroundColorByHexString(backcolor)):(StatusBar.styleDefault(),backcolor=getComputedStyle(document.body).getPropertyValue("--color1"),StatusBar.backgroundColorByHexString(backcolor)):p.matches?(StatusBar.styleLightContent(),StatusBar.backgroundColorByHexString("#000")):(StatusBar.styleDefault(),StatusBar.backgroundColorByHexString("#fff"))},checkNotificationPermission:function(p){FirebasePlugin=window.FCMPlugin,FirebasePlugin.hasPermission(function(x){x?(console.log("Remote notifications permission granted"),k()):p?console.log("Notifications won't be shown as permission is denied"):(console.log("Requesting remote notifications permission"),FirebasePlugin.grantPermission(k()))})},onDeviceReady:function(){document.addEventListener("online",w.onOnline,!1),document.addEventListener("backbutton",w.onBackKeyDown,!1),navigator&&navigator.splashscreen&&navigator.splashscreen.hide(),universalLinks.subscribe("launchedAppFromLink",w.didLaunchAppFromLink),o.getProfile().then(function(){l()});var p=new Date,x=new Date;document.addEventListener("resume",function(){setTimeout(function(){currentDate=new Date,Math.round((currentDate-p)/864e5)>1&&(window.location.href="/"),Math.round((currentDate-x)/6e4)>30&&(t.$emit("invalidateLists"),x=new Date)},0)},!1),window.matchMedia&&(w.statusBarDarkMode(),window.matchMedia("(prefers-color-scheme: dark)").addListener(function(D){w.statusBarDarkMode()})),console.log("Platform and Version",t.appPlatform,t.appVersion),"Android"===t.appPlatform&&t.appVersion>6?w.checkNotificationPermission():k(),FCMPlugin.onNotification(function(D){console.log("FcmOnNotification",D),D.wasTapped?D.untrackedUri?t.$state.go("app.untrackedNotification",{untrackedUri:D.untrackedUri}):t.$state.go("clickNotification",{id:D.notificationId}):l()},function(){l()});var M=0,R=!1;document.body.ontouchstart=function(D){window.visualViewport.pageTop>10?R=!1:(R=!0,M=D.targetTouches[0].pageY)},document.body.ontouchend=function(D){!R||window.visualViewport.pageTop>10||D.changedTouches[0].pageY-M>150&&setTimeout(function(){console.log("pulled to refresh! Reloading..."),e.includes("app.root")&&location.reload()},500)}}};w.initialize()}else o.getProfile().then(function(){c(function(){l()},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 o=["$stateParams","sponsoredArticleService","parserService","$location",function(u,i,g,l){var b=u.id;return b||l.path("/").replace(),i.getSponsoredArticle(b).then(function(k){return g.postProcessHtml(k),k},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.accessibility",{url:"accessibility",controller:"AccessibilityController",templateUrl:"/ClientApp/src/legacy-app/termsOfUse/accessibility.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(u,i,g){return i.getReport(u.id).then(function(l){return l},function(){g.path("/")})}],article:["$stateParams","articleService","parserService",function(u,i,g){return i.getArticleFromCache(u.id).then(function(l){return i.getArticleDetails(u.id).then(function(){}),l},function(){return i.getArticleDetails(u.id).then(function(l){return l})})}]}}).state("app.articleElasticStatistic",{url:"{slug}_{id}/report",controller:"ArticleElasticReportController",templateUrl:"/ClientApp/src/legacy-app/article/articleElasticReport.html",resolve:{chapterReport:["$stateParams","articleService","$location",function(u,i,g){return i.getElasticReport(u.id).then(function(l){return l},function(){g.path("/")})}],article:["$stateParams","articleService","parserService",function(u,i,g){return i.getArticleFromCache(u.id).then(function(l){return i.getArticleDetails(u.id).then(function(){}),l},function(){return i.getArticleDetails(u.id).then(function(l){return l})})}]}}).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(u,i){return i.getReport(u.id)}],snip:["$stateParams","snipService","parserService",function(u,i,g){return i.getSnipDetails(u.id).then(function(l){return l})}]}}).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(u,i,g,l,b){var k=u.id;return k||b.path("/").replace(),g.getProfile().then(function(){return i.getSnipDetailsFromCache(k).then(function(v){return i.getSnipDetails(k).then(function(){}),v},function(){return i.getSnipDetails(k).then(function(v){return v},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(u,i,g,l,b){var k=u.id;return k||b.path("/").replace(),g.getProfile().then(function(){return i.getArticleFromCache(k).then(function(v){return v.detailsLoaded=!1,i.getArticleDetails(k).then(function(){l.postProcessHtml(v)}),v},function(){return i.getArticleDetails(k).then(function(v){return l.postProcessHtml(v),v},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:o}}).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(u,i){return i.getSpecial(u.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(u){return u.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(u,i,g){return u.getCompanyNewsDetail(g.id).then(function(l){return i.postProcessHtml(l),l})}]}}),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(u,i,g){return u.getEvent(i.guid).then(function(l){return l},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(u,i,g){return u.getEventForEdit(i.guid).then(function(l){return l},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(u){u.path&&t.state("app.staticArticles_"+u.id,{url:u.path.substring(1),templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleDetail.html",controller:"StaticArticleDetailController",resolve:{staticArticle:["staticArticleService","parserService",function(i,g){return i.getStaticArticle(u.id).then(function(l){return g.postProcessHtml(l),l})}]}}).state("app.staticArticles_"+u.id+".edit",{disableNavigation:!0,url:"/edit",controller:"StaticArticleEditController",templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleEdit.html",resolve:{staticArticleId:function(){return u.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","$window",function(e,t,a,n,s,o,m,r,c){var f=["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.accessibility","app.tos","app.companyNews","app.ikUpLanding","app.documentDownload","app.untrackedNotification","app.offline","app.fileDownload","app.appStore","app.optOut"],d=r.redirectNotificationUrl;e.$on("$stateChangeSuccess",function(u,i,g){s(function(){if("app.root"!=i.name&&!0===e.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled){var l=e.scope.network.settings.languagePack.split("-")[0];null!=e.scope.profile.activeUserLanguage?.vendorLanguageCode&&l!=e.scope.profile.activeUserLanguage?.vendorLanguageCode&&(l=e.scope.profile.activeUserLanguage?.vendorLanguageCode,moment.locale(l),e.$broadcast("apicodo.translate",e.scope.profile.activeUserLanguage.vendorLanguageCode))}})}),e.$on("$stateChangeStart",function(u,i,g){switch(scope.network.landingSwitch&&"app.ikUpLanding"!==i.name&&"app.offline"!==i.name&&(u.preventDefault(),window.sessionStorage.setItem("returnUrl",n.path()),o.go("app.ikUpLanding",{},{location:"replace"})),a.getProfile().then(function(k){if(k.hasChapterAccess||-1!==f.indexOf(i.name)){if(k.adminSetPassword&&"app.requestPassword"!==i.name)window.sessionStorage.setItem("returnUrl",n.path()),o.go("app.requestPassword",{},{location:"replace"});else if(k.hasChapterAccess){var v=window.sessionStorage.getItem("returnUrl");v&&(u.preventDefault(),window.sessionStorage.removeItem("returnUrl"),n.path(v))}}else window.sessionStorage.setItem("returnUrl",n.path()),u.preventDefault(),o.go("app.closedChapter",{},{location:"replace"})}),i.name){case"app.root.snips":e.showSnipSlide||(o.go("app.root",{},{location:"replace"}),u.preventDefault());break;case"clickPremiumBanner":t.clickPremium(g.guid,g.pin).then(function(k){d(k.uri)}),u.preventDefault();break;case"clickSuperBanner":t.clickSuper(g.guid,g.pin).then(function(k){d(k.uri)}),u.preventDefault();break;case"clickBanner":console.log("clickBanner toParams",g),t.clickBanner(g.guid,g.pin).then(function(k){console.log("clickBanner result from api",k),d(k.uri)}),u.preventDefault();break;case"clickSurveyBanner":t.clickSurveyBanner(g.guid,g.pin).then(function(k){d(k.uri)}),u.preventDefault();break;case"clickSpecial":t.clickSpecial(g.guid,g.id).then(function(k){d(k.uri)}),u.preventDefault();break;case"clickNotification":t.clickNotification(g.id).then(function(k){d(k.uri)}),u.preventDefault();break;case"app.untrackedNotification":d(g.untrackedUri),u.preventDefault();break;case"app.documentDownload":t.clickDocument(g.id).then(b),u.preventDefault();break;case"app.fileDownload":t.clickFile(g.id).then(b),u.preventDefault()}function b(k){"android"===cordova.platformId&&k.isPdf?cordova.InAppBrowser.open("/Content/pdfview/web/?file="+k.uri,"_blank","location=yes,hidenavigationbuttons=yes,hideurlbar=yes,closebuttoncaption="+scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")):cordova.InAppBrowser.open(k.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,o,m,r){e.profile=r.profile,window.scope.profile=r.profile,e.$on("$stateChangeStart",function(c){var f=n.getTop();f&&(n.dismiss(f.key),c.preventDefault())}),e.$on("$locationChangeStart",function(c,f,d){f.endsWith("?top")&&(c.preventDefault(),a.url(f.replace(/^(?:\/\/|[^\/]+)*\//,"").replace(/\?top$/g,"")))}),e.$on("$stateChangeSuccess",function(c,f,d,u,i){function g(l){if(null===l||"object"!=typeof l)return l;var b=l.constructor();for(var k in l)l.hasOwnProperty(k)&&"object"!=typeof l[k]&&(b[k]=l[k]);return b}o.includes("app.root")||t.scrollTo(0,0),document.dispatchEvent(new CustomEvent("angularCustomEvent",{detail:{source:"stateChangeSuccess",toState:f}})),u&&u!==f&&!d.back?(d.back=u,d.backParams=i):u.name===f.name&&i.back&&(d.back=i.back,d.backParams=i.backParams),i&&i.backParams&&JSON.stringify(g(d))===JSON.stringify(g(i.backParams))&&(d.back=i.backParams.back,d.backParams=i.backParams.backParams),m.stateChanged(f)}),e.$on("$locationChangeSuccess",function(c,f,d){f!==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","$rootScope","$state","localStorageService","profileService","$location",function(e,t,a,n,s,o){e.showClearLandingRedirectButton=!1,s.getProfile().then(function(m){!m.isSales&&!m.isMerkuristJournalist&&o.path("/").replace(),m.isAdmin&&t.scope.network.settings.languagePack.endsWith("-business")&&(e.showClearLandingRedirectButton=!0);var r=m.guid;e.$watch("profile.guid",function(){r!==m.guid&&o.path("/")})},function(m){o.path("/").replace()}),e.storage=n,e.toggleOculusFeedback=function(){n.enableOculusFeedback=!n.enableOculusFeedback},e.toggleArticleExitRates=function(){n.enableArticleExitRates=!n.enableArticleExitRates},e.toggleApp=function(){n.app=!n.app},e.removeLandingRedirect=function(){window.location.href="https://"+t.scope.globalSettings.configurations.sharedAppLandingPageDomain.domain+"/landing?delete=true"}}]),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(m){m.isRegistered||n.path("/").replace(),t.getAdvertisersByUser().then(function(r){$.each(r,function(c,f){e.advertisers.push({accountHolder:"",costCenter:"",phone:"",gender:"",email:"",country:"",iban:"",guid:"",title:"",bic:"",firstName:"",lastName:"",companyName:"",address:"",city:"",postalCode:null,chapter:f.chapter}),f.title&&(e.advertisers[c].title=f.title),f.gender&&(e.advertisers[c].gender=f.gender),f.country&&(e.advertisers[c].country=f.country),f.phone&&(e.advertisers[c].phone=f.phone),f.email&&(e.advertisers[c].email=f.email),f.costCenter&&(e.advertisers[c].costcenter=f.costCenter),f.guid&&(e.advertisers[c].guid=f.guid),f.firstName&&(e.advertisers[c].firstname=f.firstName),f.accountHolder&&(e.advertisers[c].accountholder=f.accountHolder),f.bic&&(e.advertisers[c].bic=f.bic),f.lastName&&(e.advertisers[c].lastname=f.lastName),f.companyName&&(e.advertisers[c].companyname=f.companyName),f.address&&(e.advertisers[c].address=f.address),f.city&&(e.advertisers[c].city=f.city),f.postalCode&&(e.advertisers[c].postalcode=f.postalCode),f.iban&&(e.advertisers[c].iban=f.iban),f.iban&&(e.advertisers[c].ibanshow=f.iban.substr(0,7)+f.iban.substr(7).replace(/.(?=.{4,}$)/g,"*"))}),e.currentAdvertiser=e.advertisers[0]})},function(m){n.path("/").replace()}),e.resetValue=function(m){e.currentAdvertiser.iban=""},e.signUp=function(m,r){m&&(0==r.gender&&(r.gender=!1),1==r.gender&&(r.gender=!0),t.updateBillingInfo(r).then(function(c){e.success=!0},function(){e.success=!1}))}}]),app.controller("AdvertiserConsumeController",["$scope","$location","profileService","advertiserService","$timeout","$uibModal","$state",function(e,t,a,n,s,o,m){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(){o.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(){m.go("app.advertiserConsumtionComplete")})},function(){e.consumeError=!0})}}]),app.factory("advertiserService",["$http","$q","$location",function(e,t){return{getAdvertiserByToken:function(m){var r=t.defer();return e.get(scope.apiEndpoint+"advertis0rs/"+m).then(function(c){r.resolve(c.data)},function(){r.reject()}),r.promise},getAdvertisersByUser:function(){var m=t.defer();return e.get(scope.apiEndpoint+"advertis0rs/getbyuser").then(function(r){m.resolve(r.data)},function(){m.reject()}),m.promise},updateBillingInfo:function(m){var r=t.defer();return e.put(scope.apiEndpoint+"advertis0rs/billingInfo",m).then(function(c){r.resolve(c.data)},function(){r.reject()}),r.promise},consumeAdvertiserToken:function(m){var r=t.defer();return e.put(scope.apiEndpoint+"advertis0rs/"+m).then(function(c){r.resolve(c)},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,o,m,r,c,f,d){e.working=!1,e.error=!1,e.dateOptions={minDate:new Date,showWeeks:!0};var u=c.scope.network.settings.languagePack.split("-")[0];null!=c.scope.profile.activeUserLanguage?.vendorLanguageCode&&u!=c.scope.profile.activeUserLanguage?.vendorLanguageCode&&(u=c.scope.profile.activeUserLanguage?.vendorLanguageCode),e.isJournalistOnly=c.profile.isJournalist&&!c.profile.isMerkuristJournalist,e.publishButtonLabel=c.scope.currentScope.network.getResourceOrKeyName(c.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(u).longDateFormat("L"),e.allowCriticalContent=c.scope.currentScope.chapter.settings.enableCriticalContent,t.getProfile().then(function(b){e.firstPublish=b.isMerkuristJournalist&&!a.published,e.allowBreakingNews=b.isMerkuristJournalist}),e.alreadyNotified=a.alreadyNotified;var i=new Date(Date.now());i.setMilliseconds(0),i.setSeconds(0),e.minDate=i,e.minDateString=new Date(i).toISOString().slice(0,-1),f.getNotifiedUsersCount().then(function(b){e.NumberOfNotifiedUsers=b});var g=new Date(a.scheduledPublish);a.scheduledPublish||(g=new Date(Date.now())),g.setMilliseconds(0),g.setSeconds(0);var l=new Date(a.scheduledArchive);a.scheduledArchive||(l=g),l.setMilliseconds(0),l.setSeconds(0),e.publishArticle={id:a.id,criticalContent:!1,enableInteraction:!0!==c.scope.currentScope.chapter.settings.configurations.disableInteractionsByDefault,inactive:a.inactive,chapterSlugs:[],breakingNews:!1,heading:s,calendarDate:null,cbCalendarDate:!1,scheduledPublish:g,scheduledArchive:l,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,assetReferences:a.assetReferences},e.publishArticle.scheduledPublishString=e.publishArticle.scheduledPublish,e.scheduledDate=g,e.networkChapters=[],$.each(c.scope.currentScope.network.chapters,function(b,k){2===k.managementState&&k.id!==scope.currentChapter.id&&e.networkChapters.push({name:k.name,slug:k.slug})}),e.showContentConnectTagBox=e.networkChapters.length>0,e.contentConnectTagBox={selectionOptions:{width:"90%",dataSource:e.networkChapters,showSelectionControls:!0,searchEnabled:!0,displayExpr:"name",valueExpr:"slug",selectAllText:c.scope.currentScope.network.getResourceOrKeyName("web_rubric_choice_check_all"),placeholder:c.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_contentConnectPlaceholder"),onContentReady:function(b){e.dxTagBoxInstance=b.component}}},d.getContentConnectNetworks().then(function(b){b.length>0&&(e.showContentConnectTagBox=!0),b.forEach(function(k){k.networkChapters.forEach(function(v){e.dxTagBoxInstance.getDataSource().store().insert({name:k.name+": "+v.name,slug:v.slug})})}),e.dxTagBoxInstance.load()}),e.formIsValid=function(){return!e.publishArticle.scheduledArchiveDo||e.publishArticle.scheduledArchive>=e.publishArticle.scheduledPublish},e.words=m.checkWords(o),e.sentences=m.checkSentences(o),e.paragraphs=m.checkParagraphs(o),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.publishArticle.chapterSlugs=e.dxTagBoxInstance.option("selectedItems").map(function(b){return b.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,o,m,r,c,f,d,u,i,g,l,b,k){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 v=t.scope.currentChapter.path+c.url();history.replaceState(null,"",scope.currentChapter.path),history.pushState(null,"",v)}function y(A){e.articleQuestions=A,$.each(A,function(S,U){U.normalAnswers=[],U.freeTextAnswers=[],$.each(U.items,function(C,F){F.isFreeTextAnswer?U.freeTextAnswers.push(F):U.normalAnswers.push(F)}),o.getAnswerId(U.id).then(function(C){e.articleQuestionAnswerIds[U.id]=[],$.each(C,function(F,V){if(e.articleQuestionAnswerIds[U.id].push(V.itemId),V.freeText){var T=U.freeTextAnswers.find(function(P){return P.id===V.itemId});T.freeText=V.freeText,T.synchedFreeText=V.freeText}})})})}f&&(m.getNetworkChapter(f.originChapterSlug,f.originNetworkSlug).then(function(A){e.crossNetworkInfo=A}),t.scope.currentScope.chapter.settings.enableArticleQuestions&&(e.articleQuestionAnswerIds={},o.getArticleQuestions(f.id).then(y))),e.answering=function(A,S){var U=e.articleQuestions.find(function(N){return N.id===A}),C=U.items.find(function(N){return N.id==S});if(!U.locked){var F=e.articleQuestionAnswerIds[A].includes(S),V=e.articleQuestionAnswerIds[A],T=F&&(!C.isFreeTextAnswer||!C.freeText);if(!U.allowMultipleChoice||T){var P=F?S:V[0];(C.id!==P||!C.isFreeTextAnswer||!C.freeText)&&o.deleteArticleQuestionAnswersByUser(P).then(function(){V.splice(V.indexOf(P),1);var N=U.items.find(function(q){return q.id==P});N.freeText=null,N.synchedFreeText=null})}T||o.postArticleQuestionAnswer(S,C.freeText).then(function(){C.synchedFreeText=C.freeText,F||V.push(S)})}};var I,A,h=function(){I=e.article.assetReferences.reduce(function(A,S){return A[S.guid]=S,A},{})};if(e.resolveAsset=function(A){return I[A]},e.socialMediaShareEnable=t.scope.currentScope.network.settings.socialMediaShareEnable,$(window).scroll(function(A){$(A.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(A,S){e.article=S,r.postProcessHtml(e.article),e.article.detailsLoaded=!0,h(),e.$broadcast("$$rebind::refresh")});else{e.$watch(function(){return"article.detailsLoaded"},function(A){A&&h()});var p=f.id,x=function(){e.$watch("article.shipmentsPlaced",function(A){(A||0===A)&&u.resolve(f.shipmentsPlaced,p,e.currentLanguage).then(function(){t.scope.currentScope.chapter.settings.enableArticleRecommendations&&n.getRecommendedArticles(p).then(function(S){if(S.length){[].push.apply(e.recommendedArticles,S);for(var U=0;U<e.recommendedArticles.length;U+=2){var C=[];C.push(e.recommendedArticles[U]),e.recommendedArticles.length>U+1&&C.push(e.recommendedArticles[U+1]),e.recommendedArticlePairs.push(C)}}})})})};if(x(),e.article=f,e.availableTargetLanguages=null,l.getAvailableTargetLanguages().then(function(A){e.availableTargetLanguages=A}),t.scope.currentScope.chapter.settings.enableSnipRecommendations&&t.showSnipSlide&&s.getRecommendedSnips(p).then(function(A){e.recommendedSnips=A}),f.snipId&&t.showSnipSlide&&s.getSnipDetails(f.snipId).then(function(A){e.currentPath=t.scope.currentScope.network.path,e.snip=A}),(A=window.navigator.userAgent).indexOf(" Android ")>-1&&A.indexOf("Version/")>-1&&parseFloat((A.match("Android ([0-9.]+)")||[])[1])<=4.4){var R=$(window).height();$(".app-mobile .articleDetail-wrapper").css("height",R+"px"),$(".app-desktop .articleDetail-wrapper").css("height",R+"px")}e.projectDetails=null,e.projectPictures=null,f.betterPlaceProjectId&&t.scope.currentScope.chapter.settings.enableBetterPlaceProjects&&g.getProjectDetails(f.betterPlaceProjectId).then(function(A){e.projectDetails=A,g.getApiResult(e.projectDetails.links[3].href).then(function(S){e.projectPictures=S})})}var D=function(A){e.article.assetReferences.unshift(A)};e.selectedTargetLanguage=t.profile.favoriteLanguage,e.$on("apicodo.translate",function(A,S){e.translateArticleDetail(S)}),e.translateArticleDetail=function(A){A&&(e.selectedTargetLanguage=A),e.currentLanguage=e.selectedTargetLanguage,null===e.selectedTargetLanguage?(n.getArticleDetails(e.article.id).then(function(S){f.assetReferences=S.assetReferences,e.article=S,r.postProcessHtml(e.article),e.article.detailsLoaded=!0,h(),x(),e.$broadcast("$$rebind::refresh")}),o.getArticleQuestions(e.article.id).then(y)):(n.getTranslatedArticleDetails(e.article.id,e.selectedTargetLanguage).then(function(S){f.assetReferences=S.assetReferences,e.article=S,r.postProcessHtml(e.article),e.article.detailsLoaded=!0,h(),x(),e.$broadcast("$$rebind::refresh"),b.updateFavoriteLanguage(e.selectedTargetLanguage).then(function(){t.profile.favoriteLanguage=e.selectedTargetLanguage})}),o.getTranslatedArticleQuestions(e.article.id,e.selectedTargetLanguage).then(y))},e.assetCreateOpinionDialog=function(){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateOpinionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return D},createAssetAsync:function(){return function(A){return k.insertAssetTextToArticle(A,e.article.id)}}}})},e.assetCreateFactDialog=function(){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return D},createAssetAsync:function(){return function(A){return k.insertAssetTextToArticle(A,e.article.id)}}}})},e.assetCreateQuestionDialog=function(){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return D},createAssetAsync:function(){return function(A){return k.insertAssetTextToArticle(A,e.article.id)}}}})},e.assetCreateImageDialog=function(A,S,U){A&&0!==A.length?S.length||i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return A},resultCallback:function(){return D},createAssetAsync:function(){return function(C){return k.insertAssetImageToArticle(C,e.article.id)}}}}):S||U.$setPristine()},e.assetCreateVideoDialog=function(){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return D},createAssetAsync:function(){return function(A){return k.insertAssetTextToArticle(A,e.article.id)}}}})},e.assetCreateGifDialog=function(){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return D},createAssetAsync:function(){return function(A){return k.insertAssetTextToArticle(A,e.article.id)}}}})},e.assetSearchDialog=function(){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return D},articleId:function(){return e.article.id},assetReferences:function(){return e.article.assetReferences}}})},e.assetImageFocuspointDialog=function(A){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return A}}})},e.scrollTo=function(A){$("body,html").animate({scrollTop:$(A).offset().top-120},1e3)},e.$watchCollection("article.assetReferences",function(){f&&(e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],angular.isDefined(f.assetReferences)&&f.assetReferences.forEach(function(A){null!==A.assetImage||null!==A.assetText&&(5===A.assetText.type||6===A.assetText.type||7===A.assetText.type||10===A.assetText.type||13===A.assetText.type)?e.assetsMedia.push(A):null!==A.assetText&&(8===A.assetText.type?e.assetsFacts.push(A):9===A.assetText.type?e.assetsQuestions.push(A):0===A.assetText.type&&e.assetsComments.push(A))}))}),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+" "+c.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(){(function s(){let o=n.data.coverAssetReference.assetImage;o.focusX1&&o.focusX2&&o.focusY1&&o.focusY2&&(fpCenterX=(o.focusX1+o.focusX2)/2,fpCenterY=(o.focusY1+o.focusY2)/2,xPercentage=fpCenterX/o.focusWidth,yPercentage=fpCenterY/o.focusHeight,n.style=`--crop-focus-x: ${xPercentage}; --crop-focus-y: ${yPercentage};`)})(),n.data.originNetworkSlug&&n.data.originChapterSlug&&e.scope.currentScope.network.slug!==n.data.originNetworkSlug&&t.getNetworkChapter(n.data.originChapterSlug,n.data.originNetworkSlug).then(function(o){n.crossNetworkInfo=o}),n.projectDetails={},n.data.betterPlaceProjectId&&e.scope.currentScope.chapter.settings.enableBetterPlaceProjects&&a.getProjectDetails(n.data.betterPlaceProjectId).then(function(o){n.projectDetails=o})}}]}),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,o,m,r,c,f,d,u,i,g,l,b,k,v,y){e.initializedMobile=e.mobile,e.isPublishWorking=!1,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.enableHighQualityImage=i.scope.network.settings.configurations.enableHighQualityImage;var p,I=k("editorHub"),h=o.params.id,w="article_"+h+"_"+i.scope.currentScope.chapter.id,x=!1;I.on("broadcastSummary",function(O){e.revision.summary=O}),I.on("broadcastHeading",function(O){e.revision.texts[O.indexPosition].heading=O.heading}),I.on("broadcastAddVariant",function(){e.addTextVariant(!1)}),I.on("broadcastDeleteVariant",function(O){e.delTextVariant(!1,O.indexPosition)}),I.on("broadcastTitle",function(O){e.revision.texts[O.indexPosition].text=O.title}),I.start(function(){I.invoke("joinGroup",w)}),e.leaveEditor=function(){x=!0},e.blurHeading=function(O){I.invoke("updatingHeading",{groupName:w,heading:e.revision.texts[O].heading,indexPosition:O})},e.blurTitle=function(O){I.invoke("updatingTitle",{groupName:w,title:e.revision.texts[O].text,indexPosition:O})},e.blurSummary=function(){I.invoke("updatingSummary",{groupName:w,summary:e.revision.summary})};var D={coverAssetImages:[],texts:[{heading:"",text:""}],ChapterSlug:scope.currentChapter.slug};e.$on("$destroy",function(){s.setFavicon(),d.cancel(p)}),e.chapterHasTags=!!scope.currentChapter.chapterGroups&&scope.currentChapter.chapterGroups.length>0;var S,A=[];function U(){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(i.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.publishConfirmMessage=e.isJournalistOnly?scope.currentScope.network.resources.web_article_edit_publishRequestSuccess:g(scope.currentScope.network.resources.web_article_edit_timeSincePublished)({timeSincePublished:c.momentFromNowAsString(ee)}),p=d(function(){U()},c.momentFromNowTimeout(ee),!1)}scope.currentChapter.chapterGroups&&scope.currentChapter.chapterGroups.forEach(function(O){O.chapters.forEach(function(H){A.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 C=i.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");window.onbeforeunload=function(){if(e.changed)return C};var F=!1;i.$on("$stateChangeStart",function(O,H){F?O.preventDefault():e.changed&&!confirm(C)?(F=!0,O.preventDefault(),x=!1,d(function(){F=!1},1e3)):(e.changed=!1,x&&(I.invoke("leaveGroup",w),l.closeConnection(),I.stop(),x=!1))}),e.textCarousel=null,e.textSlick=null,e.textSlickIndex=0,e.coverAssetSlickIndex=0,e.showRubricSelection=!1,e.rubricMultiSelectModel=[],e.rubricMultiSelectModelfordx=[];var V=function(O){e.revision=null,e.article=O,e.rubricMultiSelectModel.length=0,A.length>0&&(e.showRubricSelection=!0),O.chapterSlugs.forEach(function(J){var Z=T(J),ee={text:Z,slug:J};null!==Z&&(e.rubricMultiSelectModel.push(ee),e.rubricMultiSelectModelfordx.push(ee.slug),A.push(ee))}),e.rubricTagBoxEntered=!1,e.rubricTagBox={selectionOptions:{width:"auto",dataSource:A,value:e.rubricMultiSelectModelfordx,showSelectionControls:!0,searchEnabled:!0,displayExpr:"text",valueExpr:"slug",selectAllText:i.scope.currentScope.network.getResourceOrKeyName("web_rubric_choice_check_all"),placeholder:i.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_chapterTagsPlaceholder"),onContentReady:function(J){e.dxTagBoxInstance=J.component,e.rubricTagBoxEntered=!0},onValueChanged:function(J){e.dxTagBoxInstance=J.component,e.rubricTagBoxEntered&&(e.changed=!0,O.chapterSlugs=[],e.dxTagBoxInstance.option("selectedItems").forEach(Z=>{O.chapterSlugs.push(Z.slug)}))}}};var H=L(O);H?e.revision=H:(e.revision=D,O.revisions.push(D)),e.revision.texts.length||(H.texts=[{heading:"",text:""}]),S=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)}),U()}),e.loading=!1},T=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&&I.invoke("addVariant",{groupName:w})},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&&I.invoke("deleteVariant",{groupName:w,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){u.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 P=function(O,H){u.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){l.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.assetStaticArticle&&(te=X.assetStaticArticle.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 u.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(l.getHtmlDocument()),O.jsonDocument=l.getDocument(),O.HtmlDocument=l.getHtmlDocument(),a.updateArticle(O).then(function(Z){e.changed=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),V(Z.data)},function(){u.open({templateUrl:"/ClientApp/src/legacy-app/article/unableToSaveDialog.html"})})},e.submit=function(){e.editForm.$submitted=!0};var N=function(O){e.editForm.$submitted=!0,e.isPublishWorking=!0,i.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"),V(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"),V(H.data)},function(){})};e.publish=function(){a.checkNotification(e.article.id).then(function(O){e.article.alreadyNotified=O,u.open({templateUrl:"/ClientApp/src/legacy-app/article/articleCreatePublishDialog.html",controller:"ArticleCreatePublishDialog",size:"lg",resolve:{resultCallback:function(){return N},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(),u.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=l.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){u.open({templateUrl:"/ClientApp/src/legacy-app/article/articleEditForeignDisclaimerDialog.html",size:"lg"}).result.then(function(){},function(){f.path("/")});var J=O.revisions.filter(function(Z){return Z.chapterSlug===O.chapterSlug});if(J.length)return J[0]}},j=function(O,H){u.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 y}}})};s.setFavicon(!0);var W=function(O){u.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return O}}})},K=function(O,H){u.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return H}}})},Y=function(O,H){u.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/addMetaInfoDialog.html",controller:"AddMetaInfoDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return H}}})},B=function(O,H,J){u.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 y}}})},z=function(O){return b.getAsset(O,e.article.assetReferences)},G=function(O){d(function(){L(e.article).jsonDocument=O,e.numberOfWords=v.countWords(l.getHtmlDocument())})};$(".articleEdit-wrapper").scroll(function(){!function O(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),a.getArticleEdit(h).then(function(O){V(O),l.init({docID:"article_"+O.id+"_"+scope.currentChapter.slug,assetDlgFactory:P,commentCreationDlgFactory:j,commentMgmtDlgFactory:B,initialDocument:L(O).jsonDocument,initialAssetReferences:O.assetReferences,createLinkFactory:W,callToActionDlgFactory:K,metadataCreationDlgFactory:Y,assetResolver:z,onNewStateFactory:G,onLoadTransactionCallback:G,languageCode:i.scope.currentScope.network.settings.languageCode}),e.$watch(function(){return E(e.article)},function(O){e.changed=S!==O,e.wordCount=e.revision.markdown?e.revision.markdown.replace(/[^\w-_ ]/g," ").trim().split(/\s+/).length:0})},function(){f.path("/")})}]),app.controller("ArticleElasticReportController",["$scope","$rootScope","article","chapterReport","articleService","formatterService","scopeService","$timeout",function(e,t,a,n,s,o,m,r){AmCharts.isReady=!0;var c=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";e.dateFormatString=o.getShortDateFormatString(),e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage;var f=[],d=[],u=[{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:c,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\\."]}],i=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];e.chapterReport=n,e.article=a,r(function(){var g,l,b,k,v;$.each(n,function(A,S){S.active=!0,S.variants.length&&$.each(S.variants,function(U,C){C.viewableImpressions>0&&(n.hasVariants=!0,C.hasViews=!0)})}),n.length>1&&(n.multiChapterShipment=!0);for(var y=[],I=[],h=[],w=new Date(a.published);w<=moment(new Date).startOf("day").add(1,"d").toDate();w.setDate(w.getDate()+1)){var p={start:new Date(w),viewableImpressions:0,readings:0};y.push(p),h[p.start.toDateString()]=p,I.push(p)}var x={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=x;var M=function(A){var S=!1;if(A?(x.start=moment(a.published).startOf("day").toDate(),x.end=moment(new Date).startOf("day").toDate()):n.hasVariants=!1,$.each(I,function(C,F){F.readings=0,F.viewableImpressions=0}),f.length=0,d=[],x.impressions=0,x.readings=0,x.uniqueImpressions=0,x.uniqueReadings=0,x.uniqueReadingPercentageReads=0,x.uniqueViewableImpressions=0,x.activeTimeSeconds=0,x.uniqueReadingsHavingViewableImpressions=0,x.uniqueReadingPercentage24Reads=0,x.uniqueReadingPercentage2549Reads=0,x.uniqueReadingPercentage5074Reads=0,x.uniqueReadingPercentage75100Reads=0,i[0].value=0,i[1].value=0,i[2].value=0,$.each(n,function(C,F){if(F.active){F.report.referrers.length&&$.each(F.report.referrers,function(T,P){S=!1,$.each(u,function(N,q){$.each(q.regEx,function(_,E){P.referrer.match(E)&&(d[q.name]?(d[q.name].readings+=P.readings,S=!0):(d[q.name]={readings:P.readings,referrer:q.name,color:q.color},f.push(d[q.name]),S=!0))})}),S||(d.others?d.others.readings+=P.readings:d.others={readings:P.readings,referrer:"Andere"})}),F.report.impressionCalendar.length&&$.each(F.report.impressionCalendar,function(T,P){h[new Date(P.day).toDateString()].viewableImpressions+=P.data}),F.report.readingCalendar.length&&$.each(F.report.readingCalendar,function(T,P){h[new Date(P.day).toDateString()].readings+=P.data}),F.variants.length&&$.each(F.variants,function(T,P){P.viewableImpressions>0&&(n.hasVariants=!0,P.hasViews=!0)}),x.impressions+=F.report.impressions,x.readings+=F.report.readings,x.uniqueReadings+=F.report.uniqueReadings,x.uniqueReadingsHavingViewableImpressions+=F.report.uniqueReadingsHavingViewableImpressions,x.uniqueImpressions+=F.report.uniqueImpressions,x.uniqueReadingPercentageReads+=F.report.uniqueReadingPercentageReads,x.activeTimeSeconds+=F.report.activeTimeSeconds,x.uniqueReadingPercentage24Reads+=F.report.uniqueReadingPercentage24Reads,x.uniqueReadingPercentage2549Reads+=F.report.uniqueReadingPercentage2549Reads,x.uniqueReadingPercentage5074Reads+=F.report.uniqueReadingPercentage5074Reads,x.uniqueReadingPercentage75100Reads+=F.report.uniqueReadingPercentage75100Reads;var V=F.report.desktopReadingCalendar+F.report.mobileReadingCalendar+F.report.tabletReadingCalendar;i[0].value+=Math.round(100/(V/F.report.desktopReadingCalendar)),i[1].value+=Math.round(100/(V/F.report.mobileReadingCalendar)),i[2].value+=Math.round(100/(V/F.report.tabletReadingCalendar))}}),n.length>1){var U=n.filter(function(C){return C.active}).length;i[0].value=Math.round(i[0].value/U),i[1].value=Math.round(i[1].value/U),i[2].value=Math.round(i[2].value/U)}d.others&&f.push(d.others),A&&(y.length=0,$.each(I,function(C,F){y.push({start:F.start,viewableImpressions:F.viewableImpressions})})),g.validateData(),l.validateData(),b.validateData(),k.validateData(),v.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:y,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}}),l=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:"Gesamt",color:c,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.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:f,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(A){A.dataItem.dataContext.referrer.startsWith("http")&&window.prompt(t.scope.currentScope.network.getResourceOrKeyName("web_report_copyReferrerLink"),A.dataItem.dataContext.referrer)}),k=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: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:[x],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 R=function(A,S,U){$.each(n,function(C,F){s.getChapterReport(F.chapter.id,a,S,U).then(function(V){F.report=V,M(A)}),g.validateData(),l.validateData(),b.validateData(),k.validateData(),v.validateData()})};g.addListener("zoomed",function(){x.start=moment(g.startDate).startOf("day").toDate(),x.end=moment(g.endDate).startOf("day").toDate(),l.zoom(x.start,moment(x.end).startOf("day").add(1,"d").toDate()),R(!1,moment(x.start).startOf("day").add(1,"d").toDate(),moment(x.end).startOf("day").add(2,"d").toDate())}),e.toggleChapter=function(A){$.each(n,function(S,U){null!==U.chapter&&U.chapter.name===A&&(U.active=!U.active)}),M(!1)},R(!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(o){n.superShipment=o}),n.$onChanges=function(o){o.data&&function s(){var o=[];n.counterOverdue=0,n.data.forEach(function(m,r){var c=0===r?null:n.data[r-1];(!c||4===c.articleListDisplayableType&&4!==m.articleListDisplayableType)&&(o.push({displayables:[],snips:[]}),n.counterOverdue=0),n.counterOverdue>3&&4!==m.articleListDisplayableType&&(o.push({displayables:[],snips:[]}),n.counterOverdue=0),n.counterOverdue++;var f=o[o.length-1];4===m.articleListDisplayableType?(n.counterOverdue=0,t.skipSnip(o.length,f.snip?f.snip.length+1:1)||f.snips.push(m)):f.displayables.push(m)}),n.groups=o}()}}]}),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 o=0===s?null:a.data[s-1];(!o||4===o.articleListDisplayableType&&4!==n.articleListDisplayableType)&&a.groups.push({displayables:[],snips:[]});var m=a.groups[a.groups.length-1];4===n.articleListDisplayableType?m.snips.push(n):m.displayables.push(n)})}}]}),app.factory("articleQuestionService",["$http","$q",function(e,t){return{getArticleQuestions:function(r){var c=t.defer();return e.get(scope.apiEndpoint+"articleQuestions/"+r).then(function(f){c.resolve(f.data)},function(){c.reject()}),c.promise},getTranslatedArticleQuestions:function(r,c){var f=t.defer();return e.get(scope.apiEndpoint+"articleQuestions/"+r+"/translate?targetLanguage="+c).then(function(d){f.resolve(d.data)},function(){f.reject()}),f.promise},postArticleQuestionAnswer:function(r,c){var f=t.defer(),d=c?'"'+c.replace(/\\/gm,"\\\\").replace(/"/gm,'\\"')+'"':null;return e.post(scope.apiEndpoint+"articleQuestions/articleQuestionItems/"+r,d).then(function(u){f.resolve(u.data)},function(){f.reject()}),f.promise},getAnswerId:function(r){var c=t.defer();return e.get(scope.apiEndpoint+"articleQuestions/answers/"+r).then(function(f){c.resolve(f.data)},function(){c.reject()}),c.promise},deleteArticleQuestionAnswersByUser:function(r){var c=t.defer();return e.delete(scope.apiEndpoint+"articleQuestions/"+r).then(function(f){c.resolve(f.data)},function(){c.reject()}),c.promise}}}]),app.controller("ArticleReportController",["$scope","$rootScope","article","chapterReport","articleService","scopeService","$timeout",function(e,t,a,n,s,o,m){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",c=[{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}],f=[],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}],u=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];e.chapterReport=n,e.article=a,m(function(){n.forEach(function(A){A.report.calendar.forEach(function(S){S.start=moment(S.start.replace("Z","")).toDate(),S.end=moment(S.end.replace("Z","")).toDate()})});var i,g,l,b,k,v,y,I=new Set;$.each(n,function(A,S){S.active=!0,2===S.chapter.managementState&&I.add(S.chapter.name)}),n.uniqueChapters=[],I.forEach(function(A){n.uniqueChapters.push(A)}),I.size>1&&(n.multiChapterShipment=!0);var h=[],w=function(){h.length=0,n.hasVariants=!1,$.each(n[0].report.calendar,function(A,S){h.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(A,S){if(S.active){S.report.variants.length&&$.each(S.report.variants,function(C,F){F.viewableImpressions>0&&(n.hasVariants=!0,F.hasViews=!0)});var U=a.id;$.each(S.report.calendar,function(C,F){F.id=U,h[C].viewableImpressions+=F.viewableImpressions,h[C].uniqueViewableImpressions+=F.uniqueViewableImpressions,h[C].billableViewableImpressions+=F.billableViewableImpressions,h[C].activeTimeSeconds+=F.activeTimeSeconds,h[C].readings+=F.readings,h[C].uniqueReadings+=F.uniqueReadings,h[C].uniqueReadingsHavingViewableImpressions+=F.uniqueReadingsHavingViewableImpressions,h[C].uniqueReadingPercentageReads+=F.uniqueReadingPercentageReads,h[C].maleUniqueReadings+=F.maleUniqueReadings,h[C].femaleUniqueReadings+=F.femaleUniqueReadings,h[C].desktopReadings+=F.desktopReadings,h[C].mobileReadings+=F.mobileReadings,h[C].tabletReadings+=F.tabletReadings,h[C].age1617MaleUniqueReadings+=F.age1617MaleUniqueReadings,h[C].age1824MaleUniqueReadings+=F.age1824MaleUniqueReadings,h[C].age2534MaleUniqueReadings+=F.age2534MaleUniqueReadings,h[C].age3544MaleUniqueReadings+=F.age3544MaleUniqueReadings,h[C].age4554MaleUniqueReadings+=F.age4554MaleUniqueReadings,h[C].age55MaleUniqueReadings+=F.age55MaleUniqueReadings,h[C].age1617FemaleUniqueReadings+=F.age1617FemaleUniqueReadings,h[C].age1824FemaleUniqueReadings+=F.age1824FemaleUniqueReadings,h[C].age2534FemaleUniqueReadings+=F.age2534FemaleUniqueReadings,h[C].age3544FemaleUniqueReadings+=F.age3544FemaleUniqueReadings,h[C].age4554FemaleUniqueReadings+=F.age4554FemaleUniqueReadings,h[C].age55FemaleUniqueReadings+=F.age55FemaleUniqueReadings,h[C].uniqueReadingPercentage24Reads+=F.uniqueReadingPercentage24Reads,h[C].uniqueReadingPercentage2549Reads+=F.uniqueReadingPercentage2549Reads,h[C].uniqueReadingPercentage5074Reads+=F.uniqueReadingPercentage5074Reads,h[C].uniqueReadingPercentage75100Reads+=F.uniqueReadingPercentage75100Reads,F.referrers.length&&F.referrers.forEach(function(V){h[C].referrers.push(V)})})}}),i.validateData(),g.validateData(),l.validateData(),b.validateData(),k.validateData(),v.validateData(),y.validateData()},p=n.summary={referrers:[]},x=function(A,S){p.viewableImpressions=0,p.uniqueViewableImpressions=0,p.billableViewableImpressions=0,p.activeTimeSeconds=0,p.readings=0,p.uniqueReadings=0,p.uniqueReadingsHavingViewableImpressions=0,p.uniqueReadingPercentageReads=0,p.maleUniqueReadings=0,p.femaleUniqueReadings=0,p.desktopReadings=0,p.mobileReadings=0,p.tabletReadings=0,p.age1617MaleUniqueReadings=0,p.age1824MaleUniqueReadings=0,p.age2534MaleUniqueReadings=0,p.age3544MaleUniqueReadings=0,p.age4554MaleUniqueReadings=0,p.age55MaleUniqueReadings=0,p.age1617FemaleUniqueReadings=0,p.age1824FemaleUniqueReadings=0,p.age2534FemaleUniqueReadings=0,p.age3544FemaleUniqueReadings=0,p.age4554FemaleUniqueReadings=0,p.age55FemaleUniqueReadings=0,p.uniqueReadingPercentage24Reads=0,p.uniqueReadingPercentage2549Reads=0,p.uniqueReadingPercentage5074Reads=0,p.uniqueReadingPercentage75100Reads=0;var U=0,C=0,F=0,V=0,T=0,P=0,N=0,q=0,_=0,E=0,L=0,j=0,W=0,K=0,Y=0;p.start=A,p.end=S,p.referrers.length=0,$.each(h,function(O,H){var J=new Date(H.start);J<A||J>S||(p.viewableImpressions+=H.viewableImpressions,p.uniqueViewableImpressions+=H.uniqueViewableImpressions,p.billableViewableImpressions+=H.billableViewableImpressions,p.activeTimeSeconds+=H.activeTimeSeconds,p.readings+=H.readings,p.uniqueReadingPercentageReads+=H.uniqueReadingPercentageReads,p.maleUniqueReadings+=H.maleUniqueReadings,p.femaleUniqueReadings+=H.femaleUniqueReadings,p.uniqueReadings+=H.uniqueReadings,p.uniqueReadingsHavingViewableImpressions+=H.uniqueReadingsHavingViewableImpressions,p.uniqueReadingPercentage24Reads+=H.uniqueReadingPercentage24Reads,p.uniqueReadingPercentage2549Reads+=H.uniqueReadingPercentage2549Reads,p.uniqueReadingPercentage5074Reads+=H.uniqueReadingPercentage5074Reads,p.uniqueReadingPercentage75100Reads+=H.uniqueReadingPercentage75100Reads,U+=H.desktopReadings,C+=H.mobileReadings,F+=H.tabletReadings,V+=H.age1617MaleUniqueReadings,T+=H.age1824MaleUniqueReadings,P+=H.age2534MaleUniqueReadings,N+=H.age3544MaleUniqueReadings,q+=H.age4554MaleUniqueReadings,_+=H.age55MaleUniqueReadings,E+=H.age1617FemaleUniqueReadings,L+=H.age1824FemaleUniqueReadings,j+=H.age2534FemaleUniqueReadings,W+=H.age3544FemaleUniqueReadings,K+=H.age4554FemaleUniqueReadings,Y+=H.age55FemaleUniqueReadings,H.referrers.forEach(function(Z){var ee=p.referrers.filter(function(X){return X.referrer===Z.referrer});ee.length?ee[0].readings+=Z.readings:p.referrers.push({referrer:Z.referrer,readings:Z.readings,color:Z.color})}))}),p.referrers.sort(function(O,H){return H.readings-O.readings}),p.referrers.forEach(function(O){O.name=O.referrer?O.referrer.substring(0,30):O.referrer}),f.length=0,[].push.apply(f,p.referrers.slice(0,8)),f.filter(function(O){return!O.color}).forEach(function(O,H){O.color=b.colors[H]});var B=p.referrers.slice(9,-1),z={referrer:t.scope.currentScope.network.getResourceOrKeyName("web_report_others"),name:t.scope.currentScope.network.getResourceOrKeyName("web_report_others"),readings:0,color:b.colors[10]};B.forEach(function(O){z.readings+=O.readings}),z.readings>0&&f.push(z);var Q=U+C+F;p.desktopReadings=Math.round(100/(Q/U)),p.mobileReadings=Math.round(100/(Q/C)),p.tabletReadings=Math.round(100/(Q/F)),p.maleUniqueReadings=Math.round(p.maleUniqueReadings),p.femaleUniqueReadings=Math.round(p.femaleUniqueReadings),c[0].value=p.femaleUniqueReadings,c[1].value=p.maleUniqueReadings;var G=V+T+P+N+q+_+E+L+j+W+K+Y;p.age1617MaleUniqueReadings=Math.round(100/(G/V)),p.age1824MaleUniqueReadings=Math.round(100/(G/T)),p.age2534MaleUniqueReadings=Math.round(100/(G/P)),p.age3544MaleUniqueReadings=Math.round(100/(G/N)),p.age4554MaleUniqueReadings=Math.round(100/(G/q)),p.age55MaleUniqueReadings=Math.round(100/(G/_)),p.age1617FemaleUniqueReadings=Math.round(100/(G/E)),p.age1824FemaleUniqueReadings=Math.round(100/(G/L)),p.age2534FemaleUniqueReadings=Math.round(100/(G/j)),p.age3544FemaleUniqueReadings=Math.round(100/(G/W)),p.age4554FemaleUniqueReadings=Math.round(100/(G/K)),p.age55FemaleUniqueReadings=Math.round(100/(G/Y)),d[0].male=Math.round(-1*p.age1617MaleUniqueReadings),d[1].male=Math.round(-1*p.age1824MaleUniqueReadings),d[2].male=Math.round(-1*p.age2534MaleUniqueReadings),d[3].male=Math.round(-1*p.age3544MaleUniqueReadings),d[4].male=Math.round(-1*p.age4554MaleUniqueReadings),d[5].male=Math.round(-1*p.age55MaleUniqueReadings),d[0].female=Math.round(p.age1617FemaleUniqueReadings),d[1].female=Math.round(p.age1824FemaleUniqueReadings),d[2].female=Math.round(p.age2534FemaleUniqueReadings),d[3].female=Math.round(p.age3544FemaleUniqueReadings),d[4].female=Math.round(p.age4554FemaleUniqueReadings),d[5].female=Math.round(p.age55FemaleUniqueReadings),u[0].value=p.desktopReadings,u[1].value=p.mobileReadings,u[2].value=p.tabletReadings,l.validateData(),k.validateData(),v.validateData(),y.validateData(),b.validateData(),e.$$phase||e.$apply()};i=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:h,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:h,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}}),l=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:!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:f,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(A){A.dataItem.dataContext.referrer.startsWith("http")&&window.prompt(t.scope.currentScope.network.getResourceOrKeyName("web_report_copyLink"),A.dataItem.dataContext.referrer)}),k=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(A){return-1*A.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(A){return A<0?-1*A+"":A+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),v=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:u,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}}),y=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[p],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 M=function(){var A=moment(i.startDate).startOf("day").toDate(),S=moment(i.endDate).startOf("day").add(-1,"d").toDate();x(A,S),g.zoom(A,moment(S).add(1,"d").toDate())};i.addListener("zoomed",function(){M()}),e.toggleChapter=function(A){$.each(n,function(S,U){null!==U.chapter&&U.chapter.name===A&&(U.active=!U.active)}),w(),M()},M(),w();var D=!1;setInterval(function(){"visible"!==document.visibilityState||0===h.length||D||(D=!0,s.getLatestReport(a.id).then(function(A){if(A){A[0].start=moment(A[0].start.replace("Z","")).toDate(),A[0].end=moment(A[0].end.replace("Z","")).toDate();var S={start:A[0].start,end:A[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(A,function(F,V){n[F].active&&(S.viewableImpressions+=V.viewableImpressions,S.uniqueViewableImpressions+=V.uniqueViewableImpressions,S.billableViewableImpressions+=V.billableViewableImpressions,S.activeTimeSeconds+=V.activeTimeSeconds,S.readings+=V.readings,S.uniqueReadings+=V.uniqueReadings,S.uniqueReadingsHavingViewableImpressions+=V.uniqueReadingsHavingViewableImpressions,S.uniqueReadingPercentageReads+=V.uniqueReadingPercentageReads,S.maleUniqueReadings+=V.maleUniqueReadings,S.femaleUniqueReadings+=V.femaleUniqueReadings,S.desktopReadings+=V.desktopReadings,S.mobileReadings+=V.mobileReadings,S.tabletReadings+=V.tabletReadings,S.age1617MaleUniqueReadings+=V.age1617MaleUniqueReadings,S.age1824MaleUniqueReadings+=V.age1824MaleUniqueReadings,S.age2534MaleUniqueReadings+=V.age2534MaleUniqueReadings,S.age3544MaleUniqueReadings+=V.age3544MaleUniqueReadings,S.age4554MaleUniqueReadings+=V.age4554MaleUniqueReadings,S.age55MaleUniqueReadings+=V.age55MaleUniqueReadings,S.age1617FemaleUniqueReadings+=V.age1617FemaleUniqueReadings,S.age1824FemaleUniqueReadings+=V.age1824FemaleUniqueReadings,S.age2534FemaleUniqueReadings+=V.age2534FemaleUniqueReadings,S.age3544FemaleUniqueReadings+=V.age3544FemaleUniqueReadings,S.age4554FemaleUniqueReadings+=V.age4554FemaleUniqueReadings,S.age55FemaleUniqueReadings+=V.age55FemaleUniqueReadings,S.uniqueReadingPercentage24Reads+=V.uniqueReadingPercentage24Reads,S.uniqueReadingPercentage2549Reads+=V.uniqueReadingPercentage2549Reads,S.uniqueReadingPercentage5074Reads+=V.uniqueReadingPercentage5074Reads,S.uniqueReadingPercentage75100Reads+=V.uniqueReadingPercentage75100Reads,V.referrers.length&&V.referrers.forEach(function(T){S.referrers.push(T)}))}),h[h.length-1].start-A[0].start==0?h[h.length-1]=S:h.push(S),i.validateData(),g.validateData();var U=moment(i.startDate).startOf("day").toDate(),C=moment(i.endDate).startOf("day").add(-1,"d").toDate();U<=A[0].start&&C>=A[0].start&&x(U,C),D=!1}}))},1e4)},function(){$location.path("/")})}]),app.factory("articleService",["$http","$q","$rootScope","profileService",function(e,t,a,n){var s={},m=function(T){if(!T.articleListDisplayableType||1!==T.articleListDisplayableType)return T;if(T.coverAssetReference||(T.coverAssetReference={assetImage:{assetImageUrl:scope.globalSettings.blobStorageCdnUrl+"/"+scope.globalSettings.blobStorageContainerNameImage+"/dummy.jpg",source:scope.currentScope.network.name,text:"Symbolbild",cache:0}}),s[T.id]){var P=s[T.id],N=function(T){return T&&s[T]?{revisionTestId:s[T].revisionTestId,heading:s[T].heading,text:s[T].text,coverAsset:angular.copy(s[T].coverAsset)}:{}}(P.id);return!P.detailsLoaded||T.detailsLoaded?angular.copy(T,P):angular.extend(P,T),angular.extend(P,N),T.assets&&T.coverAsset&&T.coverAsset.guid&&T.assets.forEach(function(q){if(q.guid===T.coverAsset.guid)return P.coverAsset=q,!1}),P}return s[T.id]=T,T},c=function(T){var P=t.defer();return e.get(scope.apiEndpoint+"articles/translate/"+T).then(function(N){P.resolve(N.data)},function(){P.reject()}),P.promise};return{createArticle:function(){var T=t.defer();return e.post(scope.apiEndpoint+"articles").then(function(P){T.resolve(P.data)},function(){T.reject()}),T.promise},getArticles:function(){var T=t.defer(),P=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==P){var N=a.scope.profile,q=a.scope.network.settings.languagePack.split("-")[0];return null!=N.activeUserLanguage?.vendorLanguageCode&&q!=N.activeUserLanguage?.vendorLanguageCode?(c(N.activeUserLanguage.vendorLanguageCode).then(function(_){var E=_;E.forEach(function(L,j){E[j]=m(L)}),T.resolve(E)},function(){T.reject()}),T.promise):(e.get(scope.apiEndpoint+"articles").then(function(_){var E=_.data;E.forEach(function(L,j){E[j]=m(L)}),T.resolve(E)},function(){T.reject()}),T.promise)}return e.get(scope.apiEndpoint+"articles").then(function(_){var E=_.data;E.forEach(function(L,j){E[j]=m(L)}),T.resolve(E)},function(){T.reject()}),T.promise},getTranslatedArticles:c,getArticlesForEventCalendar:function(){var T=t.defer();return e.get(scope.apiEndpoint+"articles/events").then(function(P){var N=P.data;N.forEach(function(q,_){N[_]=m(q)}),T.resolve(N)},function(){T.reject()}),T.promise},getArticleIds:function(){var T=t.defer();return e.get(scope.apiEndpoint+"articles/ids").then(function(P){T.resolve(P.data)},function(){T.reject()}),T.promise},getArticlesByAuthor:function(T){var P=t.defer();return e.get(scope.apiEndpoint+"articles/author/"+T).then(function(N){var q=N.data;q.forEach(function(_,E){q[E]=m(_)}),P.resolve(q)},function(){P.reject()}),P.promise},getArticleDetails:function(T){var P=t.defer();return e.get(scope.apiEndpoint+"articles/"+T).then(function(N){N.data.detailsLoaded=!0,P.resolve(m(N.data))},function(){P.reject()}),P.promise},getTranslatedArticleDetails:function(T,P){var N=t.defer();return e.post(scope.apiEndpoint+"articles/"+T+"/translate/"+P).then(function(q){q.data.detailsLoaded=!0,N.resolve(q.data)},function(){N.reject()}),N.promise},getArticleFromCache:function(T){var P=t.defer();return s[T]?P.resolve(s[T]):P.reject(),P.promise},getArticleEdit:function(T){var P=t.defer();return e.get(scope.apiEndpoint+"articles/"+T+"/edit").then(function(N){P.resolve(N.data)},function(N){P.reject()}),P.promise},updateArticle:function(T){var P=t.defer();return e.put(scope.apiEndpoint+"articles",T).then(function(N){angular.copy(N.data,T),P.resolve(N)},function(){P.reject()}),P.promise},publishArticle:function(T){var P=t.defer();return e.put(scope.apiEndpoint+"articles/"+T.id+"/publish",T).then(function(N){P.resolve(N)},function(){P.reject()}),P.promise},publishArticleRequest:function(T){var P=t.defer();return e.put(scope.apiEndpoint+"articles/"+T.id+"/publishRequest").then(function(N){P.resolve(N)},function(){P.reject()}),P.promise},like:function(T){var P=t.defer();return e.put(scope.apiEndpoint+"articles/"+T+"/like").then(function(N){P.resolve(N.data)},function(){P.reject()}),P.promise},getRecommendedArticles:function(T){var P=t.defer();return e.get(scope.apiEndpoint+"articles/"+T+"/recommendedarticles").then(function(N){var q=N.data;q.forEach(function(_,E){q[E]=m(_)}),P.resolve(q)},function(){P.reject()}),P.promise},getSearch:function(T){var P=t.defer();return e.get(scope.apiEndpoint+"articles/search?searchText="+T).then(function(N){var q=N.data;q.forEach(function(_,E){q[E]=m(_)}),P.resolve(q)},function(){P.reject()}),P.promise},getExitRates:function(T){var P=t.defer();return e.get(scope.apiEndpoint+"articles/"+T+"/exitrates").then(function(N){P.resolve(N.data)},function(){P.reject()}),P.promise},getReport:function(T){var P=t.defer();return e.get(scope.apiEndpoint+"articles/"+T+"/report").then(function(N){P.resolve(N.data)},function(){P.reject()}),P.promise},getLatestReport:function(T){var P=t.defer();return e.get(scope.apiEndpoint+"articles/"+T+"/report/latest",{ignoreLoadingBar:!0}).then(function(N){P.resolve(N.data)},function(){P.reject()}),P.promise},deleteArticle:function(T){var P=t.defer();return e.delete(scope.apiEndpoint+"articles/"+T).then(function(N){P.resolve(N)},function(){P.reject()}),P.promise},checkNotification:function(T){var P=t.defer();return e.get(scope.apiEndpoint+"articles/"+T+"/checknotification").then(function(N){P.resolve(N.data)},function(N){P.reject()}),P.promise},getArticlesByIds:function(T){var P=t.defer();return e.post(scope.apiEndpoint+"articles/loadMore",T).then(function(N){var q=N.data;q.forEach(function(_,E){q[E]=m(_)}),P.resolve(q)},function(){P.reject()}),P.promise},getChapterReport:function(T,P,N,q){var _=t.defer();return e.get(scope.apiEndpoint+"articles/chapterreport?chapterId="+T+"&articleId="+P.id+"&start="+new Date(N).getTime()+"&end="+new Date(q).getTime()).then(function(E){_.resolve(E.data)},function(){_.reject()}),_.promise},getElasticReport:function(T){var P=t.defer();return e.get(scope.apiEndpoint+"articles/"+T+"/elastic").then(function(N){P.resolve(N.data)},function(){P.reject()}),P.promise},deleteScheduledPublish:function(T){var P=t.defer();return e.delete(scope.apiEndpoint+"articles/ScheduledPublish/"+T).then(function(N){P.resolve(N)},function(){P.reject()}),P.promise},getContentConnectNetworks:function(){var T=t.defer();return e.get(scope.apiEndpoint+"ccNetworks").then(function(P){T.resolve(P.data)},function(){T.reject()}),T.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),n.showinfo=function(){e.find(".imageInfo-view")[0]&&e.find(".imageInfo-contentView")[0]&&$(e.find(".imageInfo-view")[0]).css("height",e.find(".imageInfo-contentView")[0].offsetHeight),t(function(){$(e.find(".imageInfo").toggleClass("imageInfo-collapsed"))})}}}]}),app.controller("AddAssetArticleDialogController",["$rootScope","$scope","articleService","assetArticleService","ownerId","onAddSuccessful","ownerType",function(e,t,a,n,s,o,m){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(c){if(!t.searchArticleForm.$invalid){var d=t.articleRegex.exec(c)[2];t.assetArticle=null,a.getArticleDetails(d).then(function(u){t.assetArticle={coverAssetImageUrl:u.coverAssetReference.assetImage.assetImageUrl,coverAssetImageCache:u.coverAssetReference.assetImage.cache,path:u.path,chapterSlugs:u.chapterSlugs,heading:u.heading,text:u.text,attachedArticleId:u.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,m).then(function(c){o(c),t.$dismiss()})}}]),app.controller("AddAssetStaticArticleDialogController",["$rootScope","$scope","staticArticleService","ownerId","onAddSuccessful","ownerType",function(e,t,a,n,s,o){var m=this;t.url=null,t.assetStaticArticle=null,t.errorMessage=null,t.articleRegex=new RegExp("^https?://"+escape(e.scope.currentScope.network.domain)+"/(.*)_(.*)"),m.listOfArticles=[],m.updating=!0,e.scope.staticArticles.forEach(r=>{(r.networkId||r.chapterId==e.scope.currentChapter.id)&&m.listOfArticles.push({id:r.id,title:r.title})}),m.listOfArticles.sort((r,c)=>r.title.localeCompare(c.title)),m.close=function(){t.$dismiss()},m.reset=function(){t.assetStaticArticle=null,t.url=null,t.searchArticleForm.$setPristine()},m.updateSelectedArticle=function(){m.updating=!0;var r=m.selectedStaticArticle.id;-1!=r?(t.assetStaticArticle=null,a.getStaticArticle(r).then(function(c){t.assetStaticArticle={coverAssetImageUrl:c.coverAssetReference?.assetImage.assetImageUrl,coverAssetImageCache:c.coverAssetReference?.assetImage.cache,path:c.path,chapterSlugs:c.chapterSlugs,heading:c.heading,text:c.title,attachedArticleId:c.id},m.updating=!1})):(t.assetStaticArticle=null,m.updating=!0)},m.addAssetArticle=function(){n?a.addAssetStaticArticle(n,t.assetStaticArticle.attachedArticleId,o).then(function(r){s(r),t.$dismiss()}):t.$dismiss()},m.selectBoxOptions={dataSource:m.listOfArticles,valueExpr:"id",name:"staticArticlesSelect",displayExpr:"title",inputAttr:{"aria-label":"Article"},searchEnabled:!0,placeholder:e.scope.network.getResourceOrKeyName("web_asset_addStatiArticleDialog_select_placeholder"),onValueChanged(r){if(null!==r.value){const c=r.component.option("selectedItem");m.selectedStaticArticle=c,m.updateSelectedArticle()}else m.selectedStaticArticle=null}}}]),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.component("assetStaticArticleItem",{templateUrl:"/ClientApp/src/legacy-app/asset/assetStaticArticleItem.html",bindings:{assetStaticArticle:"<"},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(o,m,r){var c=t.defer();return e.post(s,{ownerId:o,articleId:m,assetArticleType:r}).then(function(d){c.resolve(d.data)},function(){c.reject()}),c.promise},this}]),app.controller("AssetChildListDialog",["$rootScope","$scope","$q","$interval","$timeout","archived","parentAssetReference","assetService","reportAsset","deleteAsset",function(e,t,a,n,s,o,m,r,c,f){t.working=!1,t.error=!1,t.parentAssetReference=m,t.showVerifiedUser=t.parentAssetReference.user.isVerifiedUser,t.enableVerifiedUsers=e.scope.currentChapter.settings.configurations.enableVerifiedUsers,t.archived=o;var d={type:0,text:"",attachment:"",source:"",parentGuid:m.guid};t.assetText={},t.assetReferences=[],angular.copy(d,t.assetText);var u,i=function(){var b=t.parentAssetReference;t.parentAssetReference.childAssets&&t.parentAssetReference.childAssets.length&&(b=t.parentAssetReference.childAssets.sort(function(y,I){return new Date(y.created)>new Date(I.created)?-1:1})[0]);var v=a.defer();u=v.promise,r.getChildren(m.guid,b.created).then(function(y){return m.childAssets||(m.childAssets=[]),Array.prototype.push.apply(m.childAssets,y),!0},function(){return!0}).then(function(){v.resolve(),u=null})};u&&u();var l=n(function(){i()},1e4);t.$on("$destroy",function(){i(),n.cancel(l)}),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(m.guid,t.assetText).then(function(b){angular.copy(d,t.assetText),s(function(){var k=document.createEvent("Event");k.initEvent("autosize.update",!0,!1),$(".assetChildListDialog").find("textarea")[0].dispatchEvent(k)}),i(),t.working=!1}))},t.deleteAsset=f,t.reportAsset=c,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,o,m){var r=this;r.profile=t.profile,this.assetImageFocuspointDialog=function(u){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return u}}})},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 u=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:u.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:u.slug,ari:r.assetReference.id}),r.assetReference.oculus.persistent=s.includes("app.root")),r.showCookieExternalMediaInfo=!!t.scope.globalSettings.configurations.global_module_configuration.ConsentManagementModuleEnabled&&function c(){var u=0;switch(t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&(u=t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),u){case 1:return function d(){const{twitter:u,youTube:i,facebook:g,vimeo:l,giphy:b}=t.scope.profile.settings.externalMediaPermissions;switch(r.assetReference?.assetText?.type){case 4:return!u?.granted;case 5:return!i?.granted;case 6:return!g?.granted;case 7:return!l?.granted;case 10:return!b?.granted;default:return!1}}();case 4:return function f(){const g=!r.profile.hasCookiesConsented&&!r.profile.isRegistered,b=[5,6,7,10].some(k=>r.assetReference.assetText?.type===k);return g&&b}();default:return!1}}()}}}]}),app.controller("AssetCreateCommonDialog",["$interpolate","$rootScope","$scope","assetType","createAssetAsync","resultCallback",function(e,t,a,n,s,o){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(m){o&&(m.assetText.user=m.user,o(m)),a.$dismiss()},function(){a.error=!0,a.working=!1}))}}]),app.controller("AssetCreateFileDialog",["$interpolate","$rootScope","$scope","files","createAssetAsync","resultCallback","Upload",function(e,t,a,n,s,o,m){a.web_assetDialog_description=e(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:scope.currentScope.network.name}),a.closedChapter=t.scope.currentChapter.closed,a.chapterName=t.scope.currentChapter.name,a.numberOfClosedChapter=t.scope.network.chapters.filter(function(c){return c.closed}).length,a.accessibility=0,a.accessibilitySelectionDataSource=[{value:0,text:a.chapterName},{value:1,text:scope.currentScope.network.getResourceOrKeyName("web_asset_addFileDialog_accessibility_select_networkwide")}];var r={type:11,text:"",fileName:"",attachment:"",fileSource:"",guid:"",uploadError:"",source:"",sourceType:null,author:"",title:"",sourceUrl:"",mimeType:null,accessibility:null};a.form={},a.files=n,a.workingFiles=n.length,angular.forEach(n,function(c,f){c.assetFile=angular.copy(r),c.assetFile.fileName=c.fileName,c.prefix="file"+f,c.uploadAssetProgress=0,c.uploadAsset=m.upload({url:scope.apiEndpoint+"upload",data:{file:c}}).then(function(d){c.assetFile.guid=d.data},function(d){c.uploadError="Error: "+d.data,a.$dismiss()},function(d){c.uploadAssetProgress=parseInt(100*d.loaded/d.total)}).finally(function(){c.uploadAsset=null,a.workingFiles--})}),a.copyFileData=function(){var c=n[0];angular.forEach(n,function(f,d){if(d>0){var u=f.assetFile.guid;f.assetFile=angular.copy(c.assetFile),f.assetFile.guid=u}})},a.createFiles=function(c){c&&angular.forEach(n,function(f){a.working=!0,f.assetFile.mimeType=f.type,f.assetFile.fileName=f.name,f.assetFile.accessibility=a.accessibility,s(f.assetFile).then(function(d){o&&(d.assetFile.user=d.user,o(d)),a.working=!1,a.$dismiss()},function(){a.error=!0,a.working=!1})})},a.cancel=function(){a.$dismiss()}}]),app.controller("AssetCreateGifDialog",["$scope","$rootScope","createAssetAsync","resultCallback","$http","$q",function(e,t,a,n,s,o){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,c,f,d;(r=e.query,c=e.offset,f=e.limit,d=o.defer(),s.get("https://api.giphy.com/v1/gifs/search?api_key=gF576MzYtgG2BZmhA2xRDU9DSPG6o96i&q="+encodeURIComponent(r)+"&limit="+f+"&offset="+c,{withCredentials:!1}).then(function(u){e.gifHits=null===e.gifHits?u.data.data:e.gifHits.concat(u.data.data),d.resolve(u.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(c){n&&(c.assetText.user=c.user,n(c)),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,o,m){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(d,u){d.assetImage=angular.copy(r),d.ccLicense=null,d.ccLicenseError="",d.visibleImageSource="",d.prefix="file"+u,d.overrideSource=null,t.scope.currentScope.network.settings.simpleImageSource&&(d.assetImage.sourceType=16),d.uploadAssetProgress=0,d.uploadAsset=m.upload({url:scope.apiEndpoint+"upload",data:{file:d}}).then(function(i){d.assetImage.uploadGuid=i.data},function(i){d.uploadError="Error: "+i.data,a.$dismiss()},function(i){d.uploadAssetProgress=parseInt(100*i.loaded/i.total)}).finally(function(){(function c(d){["image/bmp","image/gif","image/exif","image/png","image/tif","image/tiff","image/tff","image/jpg","image/jpeg","image/jpe","image/jif","image/jfif","image/jfi"].includes(d.type)||a.form[d.prefix+"_type"].$setValidity("validateType",!1)})(d),d.uploadAsset=null,a.workingFiles--}),d.uploadPdf=function(i){i&&(a.workingFiles++,m.upload({url:scope.apiEndpoint+"upload",data:{file:i}}).then(function(g){d.assetImage.pdfUploadGuid=g.data,d.uploadedPdfName=i.name},function(g){d.uploadPdfError="Error: "+g.data,d.uploadedPdfName=null},function(g){}).finally(function(){a.workingFiles--}))},d.removePdf=function(){d.assetImage.pdfUploadGuid=null,d.uploadPdfName=null},d.sourceTypeSelected=function(){var i=d.assetImage.sourceType,g=d.assetImage.uploadGuid,l=d.assetImage.text;d.assetImage=angular.copy(r),d.assetImage.sourceType=i,d.assetImage.uploadGuid=g,d.assetImage.text=l,i&&(a.profile.isJournalist||a.profile.isMerkuristJournalist?a.form.$setPristine():a.formNonAuthor.$setPristine(),(2===i||1===i&&(a.profile.isJournalist||a.profile.isMerkuristJournalist))&&(d.assetImage.canBeUsedAdvertising=!0),8===i&&(d.assetImage.canBeUsedEditorial=!1),(4===i||16===i||3!==i.riskLevel)&&(d.assetImage.canBeUsedElsewhere=!0),d.assetImage.expirationDays=i.expirationDays,a.copyImageData())},d.creativeCommonsLicenseSelected=function(){var i=d.ccLicense;if(a.form[d.prefix+"_selectCreativeCommonsLicense"].$setValidity("validateCreativeCommons",!1),i&&!i.validity)d.ccLicenseError=scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicensePlatformError_0+" "+i.name+" "+scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicensePlatformError_1;else{if(!i)return void(d.ccLicenseError=scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectLicenseError);a.form[d.prefix+"_selectCreativeCommonsLicense"].$setValidity("validateCreativeCommons",!0),d.ccLicenseError=null}d.assetImage.creativeCommonsLicense=i.name,a.copyImageData()},d.generateImageSource=function(){var i=d.assetImage.author,g=d.assetImage.author;switch(d.assetImage.sourceType){case 2:d.assetImage.author||(i=g=scope.currentScope.network.name);break;case 5:d.assetImage.pressServiceUrl&&(i+=", [source]("+d.assetImage.pressServiceUrl+")");break;case 7:d.ccLicense&&!d.ccLicense.validity?i=scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicenseError:d.ccLicense&&i&&(d.assetImage.title&&(i+=", ["+d.assetImage.title+"]",g=g+", "+d.assetImage.title),d.assetImage.sourceUrl&&(i+="("+d.assetImage.sourceUrl+")"),d.assetImage.creativeCommonsLicense&&(i+=", "+d.ccLicense.value,g+=", "+d.ccLicense.name));break;case 8:d.assetImage.agency&&(i=g="\xa9 "+i+" / "+d.assetImage.agency)}d.assetImage.source=i,d.visibleImageSource=g,a.copyImageData()},d.hasExpirationChanged=function(){d.hasExpirationDays||(d.assetImage.expirationDays=0)},d.overrideSourceChanged=function(){d.overrideSource?(d.sourceTypeSelected(),d.generateImageSource()):a.copyImageData()}}),a.$watch("files[0].assetImage.text",function(d,u,i){for(var g=1;g<n.length;g++){var l=n[g].assetImage.text;n[g].assetImage.text=l===u?d:l}}),a.copyImageData=function(){var d=n[0];angular.forEach(n,function(u,i){if(i>0&&!u.overrideSource){var g=u.assetImage.uploadGuid;u.assetImage=angular.copy(d.assetImage),u.assetImage.uploadGuid=g,u.visibleImageSource=d.visibleImageSource}})};var f=function(d){if(d&&d.indexOf(!1)){var u=d.split(".");return u[2]+"-"+u[1]+"-"+u[0]}return d};a.createImages=function(d){d&&angular.forEach(n,function(u){a.working=!0,u.assetImage.dateOfScreenshot=f(u.assetImage.dateOfScreenshot),u.assetImage.dateOfPermission=f(u.assetImage.dateOfPermission),u.assetImage.mimeType=u.type,s(u.assetImage).then(function(i){o&&(i.assetImage.user=i.user,o(i)),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,o,m,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(u){n&&n(u),t.$dismiss()},function(){t.error=!0,t.working=!1})};var c=[{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(\/?|.+\/)([^\/]+)\/?$/i,regExGroup:2},{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<c.length;d++)if(t.assetText.text.match(c[d].regEx)){t.assetText.type=c[d].type,t.assetText.attachment=c[d].regEx.exec(t.assetText.text)[c[d].regExGroup],t.assetText.attachment2=c[d].regEx.exec(t.assetText.text)[c[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(u){if(!u.data.items.length)return t.working=t.valid=!1,void(t.title=t.thumbnailUrl="");t.working=!1,t.valid=!0,t.title=u.data.items[0].snippet.title,t.thumbnailUrl=u.data.items[0].snippet.thumbnails.default.url},function(u){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?m.getVideo(t.assetText.attachment).then(function(u){t.title=u.name,t.thumbnailUrl=u.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):o.getApicodoMediaToken().then(function(u){s.get(u.apiBase+"/api/Thumbnail/GetWebFrontendData?fileId="+t.assetText.attachment,{withCredentials:!1,headers:{Authorization:"bearer "+u.token}}).then(function(g){if(!g.data)return t.working=t.valid=!1,t.title=t.thumbnailUrl="",t.title=t.assetText.attachment,t.thumbnailUrl=u.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&&(d.assetText.user=d.user,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 o=e.workflowUrl.lastIndexOf("/"),m=e.workflowUrl.lastIndexOf("?");m<o&&(m=e.workflowUrl.length);var r=e.workflowUrl.substring(o+1,m);s.getWorkflowTemplate(r).then(function(c){e.workflow=c,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(o){n&&(o.assetText.user=o.user,n(o)),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,o,m,r,c,f,d,u){t.working=!1,t.error=!1,t.article=a,t.sponsoredArticle=n,t.staticArticle=s,t.event=o,t.assetType=m,t.entity=a||n||s||o||null,t.assetReferencesWithAssetArticle=t.entity.assetReferences.filter(function(y){return null!==y.assetArticle}),t.assetReferencesWithAssetStaticArticle=t.entity.assetReferences.filter(function(y){return null!==y.assetStaticArticle});var i=e.scope.currentScope.network.settings.configurations.workflowConfiguration;t.canUseWorkflows=i?e.profile.isNewsroomAdmin||6===i.MinReferenceAsAssetRole&&e.profile.isHeadSales||5===i.MinReferenceAsAssetRole&&e.profile.isSales||4===i.MinReferenceAsAssetRole&&e.profile.isHeadJournalist||3===i.MinReferenceAsAssetRole&&e.profile.isMerkuristJournalist||2===i.MinReferenceAsAssetRole&&e.profile.isJournalist:e.profile.isNewsroomAdmin;var g=function(){return t.article?"article":t.sponsoredArticle?"sponsoredArticle":t.staticArticle?"staticArticle":null},l=function(y){t.entity.assetReferences.unshift(y),f(function(){var h=$("#asset-list-assetReference-"+y.guid).parent();$(h).animate({scrollLeft:0},1e3)},500)};t.assetCreateImageDialog=function(y,I,h){y&&0!==y.length?I.length||d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return y},resultCallback:function(){return l},createAssetAsync:function(){return a?function(w){return u.insertAssetImageToArticle(w,a.id)}:n?function(w){return u.insertAssetImageToSponsoredArticle(w,n.id)}:s?function(w){return u.insertAssetImageToStaticArticle(w,s.id)}:o?function(w){return u.insertAssetImageToEvent(w,o.id)}:void 0}}}):I||h.$setPristine()},t.assetCreateFileDialog=function(y,I,h){y&&0!==y.length?d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFileDialog.html",controller:"AssetCreateFileDialog",size:"lg",resolve:{files:function(){return y},resultCallback:function(){return l},createAssetAsync:function(){return a?function(w){return u.insertAssetFileToArticle(w,a.id)}:n?function(w){return u.insertAssetFileToSponsoredArticle(w,n.id)}:s?function(w){return u.insertAssetFileToStaticArticle(w,s.id)}:o?function(w){return u.insertAssetFileToEvent(w,o.id)}:void 0}}}):I||h.$setPristine()},t.assetCreateVideoDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return l},createAssetAsync:function(){return a?function(y){return u.insertAssetTextToArticle(y,a.id)}:n?function(y){return u.insertAssetTextToSponsoredArticle(y,n.id)}:s?function(y){return u.insertAssetTextToStaticArticle(y,s.id)}:o?function(y){return u.insertAssetTextToEvent(y,o.id)}:void 0}}})},t.assetCreateWorkflowDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateWorkflowDialog.html",controller:"AssetCreateWorkflowDialog",size:"lg",resolve:{resultCallback:function(){return l},createAssetAsync:function(){return a?function(y){return u.insertAssetTextToArticle(y,a.id)}:n?function(y){return u.insertAssetTextToSponsoredArticle(y,n.id)}:s?function(y){return u.insertAssetTextToStaticArticle(y,s.id)}:o?function(y){return u.insertAssetTextToEvent(y,o.id)}:void 0}}})},t.assetCreateGifDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return l},createAssetAsync:function(){return a?function(y){return u.insertAssetTextToArticle(y,a.id)}:n?function(y){return u.insertAssetTextToSponsoredArticle(y,n.id)}:s?function(y){return u.insertAssetTextToStaticArticle(y,s.id)}:o?function(y){return u.insertAssetTextToEvent(y,o.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 l},assetContainer:{articleId:a?a.id:null,sponsoredArticleId:n?n.id:null,staticArticleId:s?s.id:null,eventId:o?o.id:null},createAssetAsync:function(){return a?function(y){return u.insertAssetTextToArticle(y,a.id)}:n?function(y){return u.insertAssetTextToSponsoredArticle(y,n.id)}:s?function(y){return u.insertAssetTextToStaticArticle(y,s.id)}:o?function(y){return u.insertAssetTextToEvent(y,o.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 l},createAssetAsync:function(){return a?function(y){return u.insertAssetTextToArticle(y,a.id)}:n?function(y){return u.insertAssetTextToSponsoredArticle(y,n.id)}:s?function(y){return u.insertAssetTextToStaticArticle(y,s.id)}:o?function(y){return u.insertAssetTextToEvent(y,o.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 l},createAssetAsync:function(){return a?function(y){return u.insertAssetTextToArticle(y,a.id)}:n?function(y){return u.insertAssetTextToSponsoredArticle(y,n.id)}:s?function(y){return u.insertAssetTextToStaticArticle(y,s.id)}:o?function(y){return u.insertAssetTextToEvent(y,o.id)}:void 0}}})},t.assetSearchDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return l},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(y){t.entity.assetReferences.push(y),t.assetReferencesWithAssetArticle.unshift(y)};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 g()},onAddSuccessful:function(){return b}}})};var k=function(y){t.entity.assetReferences.push(y),t.assetReferencesWithAssetStaticArticle.unshift(y)};t.showAddStaticArticleDialog=()=>{d.open({templateUrl:"/ClientApp/src/legacy-app/asset/addAssetStaticArticleDialog.html",controller:"AddAssetStaticArticleDialogController",controllerAs:"$ctrl",size:"lg",resolve:{ownerId:function(){return t.entity.id},ownerType:function(){return g()},onAddSuccessful:function(){return k}}})},t.$watchCollection("entity.assetReferences",function(y){if(t.assetsMedia=[],t.assetsFacts=[],t.assetsQuestions=[],t.assetsComments=[],t.assetsImages=[],t.assetsFiles=[],t.assetsWorkflows=[],y&&angular.isDefined(y)){var I=[];y.forEach(function(h){h.deleted||(h.childAssets=[],h.parentGuid||I.push(h))}),I.forEach(function(h){y.forEach(function(w){w.parentGuid&&h.guid===w.parentGuid&&h.childAssets.push(w)}),null!==h.assetFile&&t.assetsFiles.push(h),null!==h.assetImage||null!==h.assetText&&(5===h.assetText.type||6===h.assetText.type||7===h.assetText.type||10===h.assetText.type||13===h.assetText.type)?(t.assetsMedia.push(h),null!==h.assetImage&&t.assetsImages.push(h)):null!==h.assetText&&(8===h.assetText.type?t.assetsFacts.push(h):9===h.assetText.type?t.assetsQuestions.push(h):0===h.assetText.type?t.assetsComments.push(h):14===h.assetText.type&&t.assetsWorkflows.push(h))})}});var v=new Map;t.toggleAssetAdded=function(y,I){c?(r(y),t.$dismiss()):I?v.set(y.guid,y):v.delete(y.guid)},t.cancel=function(){c||r(Array.from(v.values())),t.$dismiss()},t.articleAssetToggle={},t.toggleAssetArticleAdded=function(y){c?(r(y),t.$dismiss()):(t.articleAssetToggle[y.guid]=!t.articleAssetToggle[y.guid],t.articleAssetToggle[y.guid]?v.set(y.guid,y):v.delete(y.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 o,m,r,f=function(i,g,l,b){let v,y;i/g>b?(v=g*b,y=g):(v=i,y=i/b);let w=l.x+l.w/2-v/2,p=l.y+l.h/2-y/2;return w+v>m.width()&&(w=m.width()-v),w<0&&(w=0),p+y>g&&(p=g-y),p<0&&(p=0),{x:w,y:p,w:v,h:y}},d=function(i,g,l){let k=40;screen.width<769&&(k=20);let v=0;screen.width<991&&(v=66),presetImgDimensions=f(m.width(),m.height(),g,2.6857142857142855),targetImgDimensions=f(presetImgDimensions.w,presetImgDimensions.h,g,l),i.style.top=targetImgDimensions.y+presetImgDimensions.y+v+"px",i.style.left=targetImgDimensions.x+k+"px",i.style.width=targetImgDimensions.w+"px",i.style.height=targetImgDimensions.h+"px",i.style.display="block"},u=function(i){if(i){var g=m.width(),l=m.height();o.x1=Math.round(o.width/g*i.x),o.x2=Math.round(o.width/g*i.x2),o.y1=Math.round(o.height/l*i.y),o.y2=Math.round(o.height/l*i.y2),d(document.getElementById("mobileFrame"),i,1.45)}else o.x1=o.x2=o.y1=o.y2=null};e.imageLoad=function(){a.getAssetImageProcessing(t.assetImage.guid).then(function(i){o=i,(m=$(".assetImageFocuspointDialog-asset")).Jcrop({onSelect:u,onRelease:u},function(){r=this});var g=m.width(),l=m.height();if(null!==o.x1&&null!==o.x2&&null!==o.y1&&null!==o.y2){let b={x:Math.round(g/o.width*o.x1),y:Math.round(l/o.height*o.y1),x2:Math.round(g/o.width*o.x2),y2:Math.round(l/o.height*o.y2),w:Math.round(g/o.width*o.x2)-Math.round(g/o.width*o.x1),h:Math.round(l/o.height*o.y2)-Math.round(l/o.height*o.y1)};r.animateTo([b.x,b.y,b.x2,b.y2]),d(document.getElementById("desktopFrame"),b,desktopTargetAspectRatio),d(document.getElementById("mobileFrame"),b,1.45)}},function(){e.error=!0})},e.save=function(){a.updateAssetImageProcessingFocuspoint(t.assetImage.guid,o).then(function(){t.assetImage.cache++,n(function(){s.$emit("lazyImg:refresh")}),e.$dismiss()},function(){e.error=!0})},e.reset=function(){o.x1=o.x2=o.y1=o.y2=null,a.updateAssetImageProcessingFocuspoint(t.assetImage.guid,o).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,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:o,facebook:m,vimeo:r,giphy:c}=t.scope.profile.settings.externalMediaPermissions;switch(n.assetText.type){case 4:return!s?.granted;case 5:return!o?.granted;case 6:return!m?.granted;case 7:return!r?.granted;case 10:return!c?.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,o,m,r,c,f,d,u){e.valid=!1,e.thumbnailUrl="",e.activePage=1,e.searchPage=0,e.assetReferences=[],e.selectedAssetReferences=[],e.isSponsoredArticle=!!s,u.getProfile().then(function(h){guid=h.guid}),this.query=function i(){return t.includes("app.search")?$location.getArticles().q:""}(),e.clear=function(){this.query="",hits=null};var l=function(h){var w=!1;return angular.forEach(r,function(p){(null!==p.assetImage&&p.assetImage.guid===h||null!==p.assetText&&p.assetText.guid===h||null!==p.assetFile&&p.assetFile.guid===h)&&(w=!0)}),w};function v(h){e.showAssetImages=!1,e.showAssetFiles=!1,e.showArticles=!1,e.show=!0,angular.forEach(h,function(w){w&&(w.disabled=l(w.guid),e.assetImageHits=e.assetImageHits.concat(w))})}function I(h){e.showAssetImages=!1,e.showAssetFiles=!1,e.showArticles=!1,e.show=!0,angular.forEach(h,function(w){w&&(w.disabled=l(w.guid),e.assetFileHits.push(w))})}e.showMoreArticles=function(){e.searchPage++,e.isSponsoredArticle?d.getAssetSponsoredArticles(this.query,e.searchPage=e.searchPage).then(function(h){e.show=!1,e.showArticles=!0,angular.forEach(h,function(w){w.assetReferences.length&&(e.articleHits=e.articleHits.concat(w))})}):d.getAssetArticles(this.query,e.searchPage=e.searchPage).then(function(h){e.show=!1,e.showArticles=!0,e.totalArticles=h.total,angular.forEach(h.articles,function(w){w.assetReferences.length&&(e.articleHits=e.articleHits.concat(w))})})},e.showMoreAssetImages=function(){e.searchPage++,e.isSponsoredArticle?d.getSponsoredAssetImages(this.query,e.searchPage=e.searchPage,this.mobile?90:6).then(function(h){e.show=!1,e.showAssetImages=!0,angular.forEach(h,function(w){w&&(w.disabled=l(w.guid),e.assetImageHits=e.assetImageHits.concat(w))})}):d.getAssetImages(this.query,e.searchPage=e.searchPage,this.mobile?90:6).then(function(h){e.show=!1,e.showAssetImages=!0,angular.forEach(h,function(w){w&&(w.disabled=l(w.guid),e.assetImageHits=e.assetImageHits.concat(w))})})},e.showMoreAssetFiles=function(){e.searchPage++,e.isSponsoredArticle?d.getSponsoredAssetFiles(this.query,e.searchPage=e.searchPage,this.mobile?90:6).then(function(h){e.show=!1,e.showAssetFiles=!0,angular.forEach(h,function(w){w&&(w.disabled=l(w.guid),e.assetFileHits=e.assetFileHits.concat(w))})}):d.getAssetFiles(this.query,e.searchPage=e.searchPage,this.mobile?90:6).then(function(h){e.show=!1,e.showAssetFiles=!0,angular.forEach(h,function(w){w&&(w.disabled=l(w.guid),e.assetFileHits=e.assetFileHits.concat(w))})})},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(h){e.selectedArticle=h,angular.forEach(h.assetReferences,function(w){null!==w.assetImage?w.assetImage.isAdded=l(w.assetImage.guid):null!==w.assetText&&(w.assetText.isAdded=l(w.assetText.guid))}),e.assetReferences=h.assetReferences,e.activePage=2},e.addAssetImage=function(h){h&&(e.createAssetReference({assetImageGuid:h.guid}),h.disabled=!0)},e.addAssetFile=function(h){h&&(e.createAssetReference({assetFileGuid:h.guid}),h.disabled=!0)},e.addAssetText=function(h){h&&(e.createAssetReference({assetTextGuid:h.guid}),h.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(h){e.show=!0,angular.forEach(h,function(w){w.assetReferences.length&&(e.articleHits=e.articleHits.concat(w))})}):d.getAssetArticles(e.query,e.searchPage=0).then(function(h){e.show=!0,e.totalArticles=h.total,angular.forEach(h.articles,function(w){w.assetReferences.length&&(e.articleHits=e.articleHits.concat(w))})}))})(),function k(){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(v):d.getAssetImages(e.query,e.searchPage=0,e.mobile?90:6).then(v))}(),function y(){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(I):d.getAssetFiles(e.query,e.searchPage=0,e.mobile?90:6).then(I))}()},e.createAssetReferences=function(){e.working||e.selectedAssetReferences===[]||angular.forEach(e.selectedAssetReferences,function(h){null!==h.assetImage?e.createAssetReference({assetImageId:h.assetImage.id}):null!==h.assetText&&e.createAssetReference({assetImageId:null})})},e.createAssetReference=function(h){e.working=!0,h.snipId=a,h.articleId=n,h.sponsoredArticleId=s,h.staticArticleId=o,h.eventId=m,f.insertReference(h).then(function(w){c&&c(w),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(D,A){var S=t.defer();return e.get(scope.apiEndpoint+"assets/"+D+"/children"+(A?"?start="+A:"")).then(function(U){S.resolve(U.data)},function(U){S.reject()}),S.promise},getAssetImageProcessing:function(D){var A=t.defer();return e.get(scope.apiEndpoint+"assets/"+D+"/imageprocessing").then(function(S){A.resolve(S.data)},function(){A.reject()}),A.promise},insertAssetImageToArticle:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/image/article/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetImageToSnip:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/image/snip/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetImageToSponsoredArticle:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/image/sponsoredArticle/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetImageToStaticArticle:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/image/staticArticle/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetImageToEvent:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/image/event/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetTextToArticle:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/text/article/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetTextToSnip:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/text/snip/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetTextToSponsoredArticle:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/text/sponsoredArticle/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetTextToStaticArticle:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/text/staticArticle/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetTextToEvent:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/text/event/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetFileToArticle:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/file/article/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetFileToStaticArticle:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/file/staticArticle/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetFileToSponsoredArticle:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/file/sponsoredArticle/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertAssetFileToEvent:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/file/event/"+A,D).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertChild:function(D,A){var S=t.defer();return e.post(scope.apiEndpoint+"assets/"+D+"/children",A).then(function(U){var C=U.data;C.myAsset=!0,new Date(C.created)>new Date&&(C.created=(new Date).toISOString()),S.resolve(U.data)},function(){S.reject()}),S.promise},insertReference:function(D){var A=t.defer();return e.post(scope.apiEndpoint+"assets/reference",D).then(function(S){var U=S.data;U.myAsset=!0,new Date(U.created)>new Date&&(U.created=(new Date).toISOString()),A.resolve(S.data)},function(){A.reject()}),A.promise},report:function(D,A){var S=t.defer();return e.put(scope.apiEndpoint+"assets/"+D.guid+"/report/"+A).then(function(U){S.resolve(U.data)},function(){S.reject()}),S.promise},like:function(D){var A=t.defer();return e.put(scope.apiEndpoint+"assets/"+D+"/like",{ignoreLoadingBar:!0}).then(function(S){A.resolve(S.data)},function(){A.reject()}),A.promise},updateAssetImageProcessingFocuspoint:function(D,A){var S=t.defer();return e.put(scope.apiEndpoint+"assets/"+D+"/imageprocessing/focuspoint",A).then(function(U){S.resolve()},function(){S.reject()}),S.promise},updateImageText:function(D){var A=t.defer();return e.put(scope.apiEndpoint+"assets/image/"+D.assetImage.guid,D.assetImage).then(function(S){A.resolve(S.data)},function(){A.reject()}),A.promise},remove:function(D){var A=t.defer();return e.delete(scope.apiEndpoint+"assets/"+D.guid).then(function(S){A.resolve(S.data)},function(){A.reject()}),A.promise},removeReference:function(D){var A=t.defer();return e.delete(scope.apiEndpoint+"assets/reference/"+D.guid).then(function(S){A.resolve(S.data)},function(){A.reject()}),A.promise}}}]),app.component("assetUserBadge",{templateUrl:"/ClientApp/src/legacy-app/asset/assetUserBadge.html",bindings:{assetText:"<?",assetImage:"<?",assetFile:"<?"},controller:["$state","$scope",function(e,t){var a=this;a.showVerifiedUser=!1,a.isEditorState=e.includes("app.articleEdit")||e.includes("app.staticArticleEditAdmin")||e.includes("app.sponsoredArticleEdit"),a.$onInit=function(){a.assetFile&&a.assetFile.user.isVerifiedUser&&(a.showVerifiedUser=!0),a.assetImage&&a.assetImage.user.isVerifiedUser&&(a.showVerifiedUser=!0),a.assetText&&a.assetText.user.isVerifiedUser&&(a.showVerifiedUser=!0)}}]}),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(c,f,d){f||(f=1),d||(d=20);var u=a.defer();return t.post(scope.apiEndpoint+"pixabay/search",{query:c,language:2,page:f,perPage:d}).then(function(i){u.resolve(i.data)},function(){u.reject()}),u.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(c){var f=a.defer();return t.post(scope.apiEndpoint+"pixabay/create",c).then(function(d){f.resolve(d.data)},function(){f.reject()}),f.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(o){s.resolve(o.data)},function(o){s.reject()}),s.promise}}}]),app.controller("AllowPartnerAccessDialog",["$interpolate","$scope","$rootScope","$timeout","profileService","authenticationCallback","formatterService",function(e,t,a,n,s,o,m){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(m.getShortDateFormatString())},t.web_partnerAccessDialog_description=e(scope.currentScope.network.resources.web_partnerAccessDialog_description)({originRegisteredDomain:r.originRegisteredDomain,originRegisteredChapter:r.originRegisteredChapter,originRegisterdDate:moment(r.registered).format(m.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),o()})}})})}]),app.controller("AuthenticationDialog",["$scope","$rootScope","$location","instagramService","$timeout","authService","profileService","authenticationCallback","facebookSignUpData","login",function(e,t,a,n,s,o,m,r,c,f){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(c?1:f?2:0),e.signUpData=c||{},e.loginData={userName:"",password:""},e.facebookLogin=function(){o.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&&o.externalRegister(e.signUpData).then(function(){m.fetchExternalAvatar({providerName:"Facebook"}).then(function(){e.$dismiss(),r()})},function(u){e.error=u.data||scope.currentScope.network.getResourceOrKeyName("web_common_errorOccurred")})},e.instagramLogin=function(){n.getGrant(t.app)},e.showInstagram=n.isAvailable(),e.login=function(d){d&&o.login(e.loginData).then(function(){e.$dismiss(),r()},function(u){e.loginError=u.data})}}]),app.controller("AuthenticationSettingsController",["$scope","$rootScope","$location","$state","$timeout","$uibModal","authService","profileService","instagramService",function(e,t,a,n,s,o,m,r,c){r.getProfile().then(function(u){u.isRegistered||a.path("/").replace()},function(u){a.path("/").replace()}),e.emailValidationState=0,e.emailValidationStates={none:0,inProgress:1,failure:2,success:3},r.getProfile().then(function(u){u.isRegistered&&a.search().token&&(e.emailValidationState=e.emailValidationStates.inProgress,m.validateEmail(a.search().token).then(function(){s(function(){e.emailValidationState=e.emailValidationStates.success},2e3)},function(){s(function(){e.emailValidationState=e.emailValidationStates.failure},2e3)}))});var f={password:"",newPassword:"",confirmPassword:""},d=function(u){e.changePasswordData=angular.copy(f),e.changePasswordMessage=scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_changePasswordSuccess"),u.$setUntouched(),u.$setPristine()};e.compileErros=function(u){if(u.modelState){var i=[];for(var g in u.modelState)if(u.modelState.hasOwnProperty(g))for(var l=0;l<u.modelState[g].length;l++){var b=u.modelState[g][l];-1===i.indexOf(b)&&i.push(b)}return i.join(" ")}return u},e.cleanChangesMessages=function(){e.changePasswordMessage=null,e.changePasswordError=null},e.changePasswordData=angular.copy(f),e.changePassword=function(u){u.$invalid||(e.cleanChangesMessages(),e.changePasswordData.password?m.changePassword(e.changePasswordData).then(function(){d(u)},function(i){e.changePasswordError=e.compileErros(i.data)}):m.setPassword(e.changePasswordData).then(function(){d(u)},function(i){e.changePasswordError=e.compileErros(i.data)}))},e.facebookLogin=function(){e.linkFacebookError=null,m.facebookLogin(t.app).then(function(u){},function(u){e.linkFacebookError=e.compileErros(u.data)})},e.instagramLogin=function(){c.getGrant()},e.showInstagram=c.isAvailable(),e.deleteAccount=function(){document.body.style="pointer-events: none;",m.deleteAccount().then(function(){Oculus.push(!1,function(){m.logout().then(function(){Oculus.navigate(""),window.location=scope.currentChapter.path+"/login"})})})}}]),app.factory("authService",["$rootScope","$window","$location","$http","$q","$timeout",function(e,t,a,n,s,o){var m={externalAuthData:{}},r=null,c=function(){if(null===r){var A=s.defer();n.get(scope.apiEndpoint+"account/noop").then(function(S){e.scope.profile.loginInfo=S.data,scope.profile.loginInfo=S.data,A.resolve(S)},function(S){A.reject(S)}).finally(function(){r=null}),r=A.promise}return r};c();var g=function(){var A=s.defer();return c().then(function(){n.get(scope.apiEndpoint+"account/logout").then(function(S){e.$emit("authenticationStateChanged"),A.resolve(S)},function(S){A.reject(S)})}).catch(function(S){A.reject(S)}),A.promise},R=function(){var A=s.defer();return n.get(scope.apiEndpoint+"media/token").then(function(S){A.resolve(S.data)},function(){A.reject()}),A.promise},D={url:scope.globalSettings.configurations.apicodoMediaBaseUrl};return R(),m.noop=c,m.register=function(A){var S=s.defer();return c().then(function(){n.post(scope.apiEndpoint+"account/register",A).then(function(U){o(function(){S.resolve(U)})},function(U){S.reject(U)})}).catch(function(U){S.reject(U)}),S.promise},m.externalRegister=function(A){g();var S=s.defer();return c().then(function(){n.post(scope.apiEndpoint+"account/registerexternal",A).then(function(U){e.$emit("authenticationStateChanged"),S.resolve(U)},function(U){S.reject(U)})}).catch(function(U){S.reject(U)}),S.promise},m.login=function(A){var S=s.defer();return c().then(function(){n.post(scope.apiEndpoint+"account/login",A).then(function(U){e.$emit("authenticationStateChanged"),S.resolve(U)},function(U){S.reject(U)})}).catch(function(U){S.reject(U)}),S.promise},m.loginSaml2=function(A){var S=s.defer();return c().then(function(){n.post(scope.apiEndpoint+"account/loginSaml2",A).then(function(U){e.$emit("authenticationStateChanged"),S.resolve(U)},function(U){S.reject(U)})}).catch(function(U){S.reject(U)}),S.promise},m.logout=g,m.facebookLogin=function(A){var S=s.defer(),U=function(C){var F;C&&C.authResponse&&C.authResponse.accessToken?F=C.authResponse.accessToken:S.reject("authentication canceled.");var V={loginProvider:"Facebook",token:F},T=function(P){var N=null;"male"===P.gender?N=1:"female"===P.gender&&(N=0);var q=null;P.birthday&&P.birthday.replace(/\d\d\/\d\d\/(\d\d\d\d)/g,function(E,L){moment().year(),moment(L,"YYYY").year(),q=L});var _=P.email&&P.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])?/)?P.email:null;S.resolve({loginProvider:"Facebook",token:F,email:_,emailConfirmed:_,firstName:P.first_name,lastName:P.last_name,gender:N,genderConfirmed:N,yearOfBirth:q,yearOfBirthConfirmed:q})};c().then(function(){n.post(scope.apiEndpoint+"account/loginexternal",V).then(function(P){e.$emit("authenticationStateChanged"),S.resolve(P)},function(P){404===P.status?A?facebookConnectPlugin.api("me?fields=email,first_name,last_name,gender,birthday",["public_profile","email","user_birthday"],function(N){T(N)},function(N){}):FB.api("/me",{fields:"first_name,email,last_name,gender,birthday"},function(N){T(N)}):S.reject(P)})}).catch(function(P){S.reject(P)})};return A?facebookConnectPlugin.login(["public_profile"],function(C){U(C)},function(F){S.reject("authentication canceled.")}):(FB.init({appId:scope.globalSettings.authenticationFacebookAppId,xfbml:!0,version:"v3.2",status:!0}),FB.login(function(C){U(C)},{scope:"email,public_profile"})),S.promise},m.validateEmail=function(A){var S=s.defer();return n.put(scope.apiEndpoint+"account/email/"+A).then(function(U){S.resolve(U)},function(U){S.reject(U)}),S.promise},m.requestPassword=function(A){var S=s.defer();return n.put(scope.apiEndpoint+"account/RequestPassword",A).then(function(U){S.resolve(U)},function(U){S.reject(U)}),S.promise},m.setPassword=function(A){var S=s.defer();return n.post(scope.apiEndpoint+"account/password",A).then(function(U){S.resolve(U)},function(U){S.reject(U)}),S.promise},m.changePassword=function(A){var S=s.defer();return n.put(scope.apiEndpoint+"account/Password",A).then(function(U){S.resolve(U)},function(U){S.reject(U)}),S.promise},m.deleteAccount=function(){var A=s.defer();return c().then(function(){n.get(scope.apiEndpoint+"account/delete").then(function(S){A.resolve(S)},function(S){A.reject(S)})}).catch(function(S){A.reject(S)}),A.promise},m.changeEmail=function(A){var S=s.defer();return n.post(scope.apiEndpoint+"account/email",A).then(function(U){S.resolve(U)},function(U){S.reject(U.data)}),S.promise},m.getEmails=function(){var A=s.defer();return n.get(scope.apiEndpoint+"account/emails/").then(function(S){A.resolve(S.data)},function(){A.reject()}),A.promise},m.deleteEmail=function(A){var S=s.defer();return n.post(scope.apiEndpoint+"account/email/"+A+"/delete").then(function(U){S.resolve(U.data)},function(){S.reject()}),S.promise},m.sendEmailVerification=function(A){var S=s.defer();return n.post(scope.apiEndpoint+"account/email/"+A+"/sendVerification").then(function(U){S.resolve(U)},function(U){S.reject(U.data)}),S.promise},m.updateActiveEmail=function(A){var S=s.defer();return n.post(scope.apiEndpoint+"account/email/"+A+"/updateActive").then(function(U){S.resolve(U.data)},function(){S.reject()}),S.promise},m.getApicodoMediaToken=R,m.mediaApiBase=D,m}]),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(o,m){o||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(),m.$setPristine(),m.$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(o){n.emails=o,n.confirmedEmails=[],n.unConfirmedEmails=[],$.each(o,function(m,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(o){a.open({templateUrl:"/ClientApp/src/legacy-app/authentication/sendVerificationDialog.html",size:"lg"}).result.then(function(){t.sendEmailVerification(o)})},n.updateActiveEmailDialog=function(o){a.open({templateUrl:"/ClientApp/src/legacy-app/authentication/updateActiveEmailDialog.html",size:"lg"}).result.then(function(){t.updateActiveEmail(o).then(function(){s()})})},n.emailDeleteDialog=function(o){a.open({templateUrl:"/ClientApp/src/legacy-app/authentication/emailDeleteDialog.html",size:"lg"}).result.then(function(){t.deleteEmail(o).then(function(m){s()})})},s()}]}),app.controller("InstagramRegisterFormController",["$scope","authenticationCallback","instagramUserData","instagramService","profileService",function(e,t,a,n,s){e.signUpData=a;var o=function(r,c){return r?r.split(" ")[0]:c},m=function(r){if(r){var c=o(r);return r.replace(c,"")||c}return null};e.instagramRegister=function(r){if(r){var c=o(e.signUpData.data.full_name,e.signUpData.data.username),f={token:e.signUpData.token,loginProvider:"Instagram",Email:e.signUpData.email,Gender:e.signUpData.gender,YearOfBirth:e.signUpData.yearOfBirth,FirstName:c,LastName:m(c)};n.register(f).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 o=this;o.accessToken=null;var m=function(l){return angular.isDefined(l)&&(o.accessToken=l),o.accessToken},c=function(){var l=n.defer(),b=scope.apiEndpoint+"Account/LoginExternal";return a.post(b,{LoginProvider:"Instagram",Token:o.accessToken}).then(function(){l.resolve({isUserRegister:!0})},function(v){404===v.status?l.resolve({isUserRegister:!1,token:o.accessToken}):l.reject(v)}),l.promise},f=function(){var l=n.defer();return a.get("https://api.instagram.com/v1/users/self/?access_token="+o.accessToken,{withCredentials:!1}).then(function(k){l.resolve(k.data)},function(k){console.error("error",k)}),l.promise};return $.oauthpopup=function(l){l.windowName=l.windowName||"ConnectWithOAuth",l.windowOptions=l.windowOptions||"location=0,status=0,width=800,height=400",l.callback=l.callback||function(){window.location.reload()};var b=this;b._oauthWindow=window.open(l.path,l.windowName,l.windowOptions),b._oauthInterval=window.setInterval(function(){if(b._oauthWindow.closed){var k=localStorage.token;window.clearInterval(b._oauthInterval),l.callback(k)}},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 l;l=localStorage.token,m(l),f().then(function(b){c().then(function(k){k.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=k.token,b},authenticationCallback:function(){return function(){e.$emit("authenticationStateChanged"),t.path("/").search("")}}}})},function(k){$scope.error=k.data||"Es ist ein Fehler aufgetreten."})}),localStorage.token=""}})},setToken:m,getUserData:f,login:c,isAvailable:function(){return e.scope.currentScope.network.settings.availableInstagramLogin&&!e.app},register:function(l){var b=n.defer(),k=scope.apiEndpoint+"Account/RegisterExternal";return a.post(k,l).then(function(v){b.resolve(v)},function(v){b.reject(v)}),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(o){a.path(scope.currentChapter.path+"/")},function(o){e.loginError=o.data})}]),app.controller("RegisterController",["$interpolate","$scope","$rootScope","$location","$window","authService","$timeout","profileService","$state","registerForNewsletter",function(e,t,a,n,s,o,m,r,c,f){t.registerForNewsletter=f,r.getProfile(!0).then(function(u){t.isRegistered=u.isRegistered,t.newsletterSubscribed=!u.unsubscribe,u.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(u){u&&t.signUpData.password===t.signUpData.confirmPassword?(n.search().closedToken&&(t.signUpData.closedChapterToken=n.search().closedToken),o.register(t.signUpData).then(function(){n.path(scope.currentChapter.path+"/account/registration-complete")},function(i){!function(u){if(u.modelState){var i=[];for(var g in u.modelState)if(u.modelState.hasOwnProperty(g))for(var l=0;l<u.modelState[g].length;l++){var b=u.modelState[g][l];-1===i.indexOf(b)&&i.push(b)}t.signupError="Fehler bei der Registrierung: "+i.join(" ")}else t.signupError=u.data;m(function(){var k=$("form[name='signUpForm']").find("div[name='signupError']").not(".ng-hide").first(),v=null;k.length&&!k.visible(!1,!0)?v=k:t.signUpError&&(v=$("form[name='signUpForm']")),v&&$(document.body).animate({scrollTop:v.offset().top-150},1e3)})}(i)})):m(function(){var i=$("form[name='signUpForm']").find(".input-error").not(".ng-hide").first();i.length&&!i.visible(!1,!0)&&$(document.body).animate({scrollTop:i.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(o){a.path(scope.currentChapter.path+"/account/password-requested")},function(o){if(o.modelState){var m=[];for(var r in o.modelState)for(var c=0;c<o.modelState[r].length;c++){var f=o.modelState[r][c];-1==m.indexOf(f)&&m.push(f)}t.error=m.join(" ")}else t.error=o.data})},t.setPassword=function(s){!s||t.setPasswordData.newPassword!==t.setPasswordData.confirmPassword||n.changePassword(t.setPasswordData).then(function(o){e.profile.adminSetPassword&&(e.profile.adminSetPassword=!1),a.path(scope.currentChapter.path+"/account/password-resetted").search("")},function(o){if(o.modelState){var m=[];for(var r in o.modelState)for(var c=0;c<o.modelState[r].length;c++){var f=o.modelState[r][c];-1==m.indexOf(f)&&m.push(f)}t.error=m.join(" ")}else t.error=o.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(o){o.billingFirstName&&(e.author.billingfirstname=o.billingFirstName),o.taxNumber&&(e.author.taxnumber=o.taxNumber),o.taxIdNumber&&(e.author.taxidnumber=o.taxIdNumber),o.accountHolder&&(e.author.accountholder=o.accountHolder),o.bic&&(e.author.bic=o.bic),o.tax&&(e.author.tax=o.tax),o.billingLastName&&(e.author.billinglastname=o.billingLastName),o.billingCompanyName&&(e.author.billingcompanyname=o.billingCompanyName),o.address&&(e.author.address=o.address),o.city&&(e.author.city=o.city),o.postalCode&&(e.author.postalcode=o.postalCode),o.imprint&&(e.author.imprint=o.imprint),o.iban&&(e.author.iban=o.iban),o.iban&&(e.author.ibanshow=o.iban.substr(0,7)+o.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(o){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 i=t.defer();return e.get(scope.apiEndpoint+"authors").then(function(g){i.resolve(g.data)},function(){i.reject()}),i.promise},getMyArticles:function(){var i=t.defer();return e.get(scope.apiEndpoint+"authors/MyArticles").then(function(g){i.resolve(g.data)},function(){i.reject()}),i.promise},checkApply:function(i){var g=t.defer();return e.get(scope.apiEndpoint+"snips/"+i+"/checkApply").then(function(l){g.resolve(l.data)},function(){g.reject()}),g.promise},applySnip:function(i){var g=t.defer();return e.get(scope.apiEndpoint+"snips/"+i+"/apply").then(function(l){g.resolve(l.data)},function(){g.reject()}),g.promise},noApplySnip:function(i){var g=t.defer();return e.get(scope.apiEndpoint+"snips/"+i.snipId+"/noapply/"+i.id).then(function(l){g.resolve(l.data)},function(){g.reject()}),g.promise},allocateSnip:function(i){var g=t.defer();return e.get(scope.apiEndpoint+"snips/"+i.snipId+"/allocate/"+i.id).then(function(l){g.resolve(l.data)},function(){g.reject()}),g.promise},rejectSnip:function(i){var g=t.defer();return e.get(scope.apiEndpoint+"snips/"+i.snipId+"/reject/"+i.id).then(function(l){g.resolve(l.data)},function(){g.reject()}),g.promise},getAuthor:function(i,g){var l=t.defer();return e.get(scope.apiEndpoint+"authors/"+g).then(function(b){l.resolve(b.data)},function(){l.reject()}),l.promise},updateAuthorBillingInfo:function(i,g){var l=t.defer();return e.put(scope.apiEndpoint+"authors/updateauthorbillinginfo",g).then(function(b){l.resolve(b.data)},function(){l.reject()}),l.promise},getAuthorImprint:function(i){var g=t.defer();return e.get(scope.apiEndpoint+"authors/"+i+"/imprint").then(function(l){g.resolve(l.data)},function(){g.reject()}),g.promise}}}]),app.controller("DashboardController",["$scope","$rootScope","authorService","articleService","$uibModal","profileService","$location","eventCalendarService",function(e,t,a,n,s,o,m,r){var c=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 i=d.applications,u=d.publishedArticles;i=d.applications,!1!==t.scope.currentScope.network.settings.configurations.enableCalendar&&t.scope.currentScope.chapter.settings.configurations.enableEventCalendar?r.getEventsForAuthorDashboard().then(function(g){g.forEach(function(l){l.fullPath=t.scope.currentScope.chapter.path+"/events/"+l.id,l.isEvent=!0,l.published?u.push(l):(l.accepted=l.created,l.assigned=l.created,i.push(l))}),e.articles=u,e.applications=i}):(e.articles=u,e.applications=i)})},f=t.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration;e.canCreateEvents=t.profile.isNewsroomAdmin||!f&&t.profile.isMerkuristJournalist||f&&(6===f.MinEventCreationRole&&t.profile.isHeadSales||5===f.MinEventCreationRole&&t.profile.isSales||4===f.MinEventCreationRole&&t.profile.isHeadJournalist||3===f.MinEventCreationRole&&t.profile.isMerkuristJournalist||2===f.MinEventCreationRole&&t.profile.isJournalist),o.getProfile().then(function(d){d.isJournalist||m.path("/").replace();var u=d.guid;e.$watch("profile.guid",function(){u!=d.guid&&m.path("/")}),c(),$(window).bind("focus",function(){c()})},function(d){m.path("/").replace()}),e.noApply=function(d){a.noApplySnip(d).then(function(u){c()})},e.allocate=function(d){a.allocateSnip(d).then(function(u){c()})},e.reject=function(d){a.rejectSnip(d).then(function(u){c()})},e.articleDeleteDialog=function(d){s.open({templateUrl:"/ClientApp/src/legacy-app/author/articleDeleteDialog.html",size:"lg"}).result.then(function(){n.deleteArticle(d).then(function(){c()})})},e.eventDeleteDialog=function(d){s.open({templateUrl:"/ClientApp/src/legacy-app/author/eventDeleteDialog.html",size:"lg"}).result.then(function(){r.deleteEvent(d).then(function(){c()})})},e.createArticle=function(){n.createArticle().then(function(d){m.path(d.path+"/edit")})},e.createEvent=function(){r.createEvent().then(function(d){m.path("/events/"+d+"/edit")})}}]),app.controller("BannerCampaignElasticReportController",["$scope","$rootScope","bannerCampaignService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,s,o,m){AmCharts.isReady=!0;var r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getbannerCampaignByPin(s.pin).then(function(c){e.bannerCampaign=c,e.loaded=!1,a.getElasticReportBannerCalendar(c.pin).then(function(f){c.report=f,c.banners.forEach(function(u){u.imageUrl=n.getGlobalSettings().blobStorageCdnUrl+"/"+n.getGlobalSettings().blobStorageContainerNameShipment+"/"+u.pin+"?preset=shipment"});var d=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];o(function(){var u,i,g;$.each(f,function(x,M){M.active=!0}),$.each(c.banners,function(x,M){M.active=!0}),f.length>1&&(f.multiChapterShipment=!0);for(var l=[],b=[],k=[],v=new Date(c.start);v<=moment(new Date).startOf("day").add(1,"d").toDate();v.setDate(v.getDate()+1)){var y={start:new Date(v),billableImpressions:0,clicks:0};l.push(y),k[y.start.toDateString()]=y,b.push(y)}var I={impressions:0,billableImpressions:0,viewableImpressionTimeSeconds:0,clicks:0,desktopImpressions:0,mobileImpressions:0,tabletImpressions:0,start:moment(c.start).startOf("day").toDate(),end:moment(new Date).startOf("day").toDate()};e.summary=I;var h=function(){$.each(b,function(x,M){M.clicks=0,M.billableImpressions=0}),I.impressions=0,I.billableImpressions=0,I.viewableImpressionTimeSeconds=0,I.clicks=0,I.desktopImpressions=0,I.mobileImpressions=0,I.tabletImpressions=0,d[0].value=0,d[1].value=0,d[2].value=0,u.validateData(),i.validateData(),g.validateData(),$.each(f,function(x,M){M.active&&$.each(M.reports,function(R,D){var A=!1;$.each(c.banners,function(S,U){U.id===D.bannerId&&U.active&&(A=!0)}),A&&(D.billableImpressionsCalendar.length&&$.each(D.billableImpressionsCalendar,function(S,U){k[new Date(U.day).toDateString()]&&(k[new Date(U.day).toDateString()].billableImpressions+=U.data)}),D.clickCalendar.length&&$.each(D.clickCalendar,function(S,U){k[new Date(U.day).toDateString()]&&(k[new Date(U.day).toDateString()].clicks+=U.data)}),I.impressions+=D.impressions,I.billableImpressions+=D.billableImpressions,I.viewableImpressionTimeSeconds+=D.viewableImpressionTimeSeconds/1e3,I.clicks+=D.clicks,I.desktopImpressions+=D.desktopImpressions,I.mobileImpressions+=D.mobileImpressions,I.tabletImpressions+=D.tabletImpressions)})}),d[0].value=Math.round(100/(I.impressions/I.desktopImpressions)),d[1].value=Math.round(100/(I.impressions/I.mobileImpressions)),d[2].value=Math.round(100/(I.impressions/I.tabletImpressions)),u.validateData(),i.validateData(),g.validateData()};u=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:l,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}}),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: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 w=function(x,M,R){$.each(f,function(D,A){A.chapter=n.getChapter(A.chapterSlug),a.getChapterReport(A.chapter.id,c,M,R).then(function(S){A.reports=S,e.loaded=!0,h(),x&&($.each(A.reports,function(U,C){C.active=!0}),l.length=0,$.each(b,function(U,C){l.push({start:C.start,billableImpressions:C.billableImpressions})}))}),u.validateData(),i.validateData(),g.validateData()})};u.addListener("zoomed",function(x){I.start=moment(u.startDate).startOf("day").toDate(),I.end=moment(u.endDate).startOf("day").toDate(),w(!1,moment(I.start).startOf("day").add(1,"d").toDate(),moment(I.end).startOf("day").add(2,"d").toDate()),i.zoom(I.start,moment(I.end).startOf("day").add(1,"d").toDate())}),e.toggleReport=function(x){$.each(c.banners,function(M,R){R.id===x.id&&(R.active=!R.active)}),h()},e.toggleChapter=function(x){$.each(f,function(M,R){R.chapter.name===x&&(R.active=!R.active)}),h()},w(!0,moment(c.start).startOf("day").toDate(),moment(new Date).startOf("day").add(2,"d").toDate())},function(){e.error=!0})})},function(){m.path("/")})}]),app.controller("bannerCampaignReportController",["$scope","$rootScope","bannerCampaignService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,o,m,r){AmCharts.isReady=!0;var c=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getbannerCampaignByPin(s.pin).then(function(i){e.bannerCampaign=i,a.getreportBannerCalendar(i.pin).then(function(g){g.forEach(function(l){l.chapter=n.getChapter(l.chapterSlug),l.reports.forEach(function(b){b.calendar.forEach(function(k){k.start=moment(k.start.replace("Z","")).toDate(),k.end=moment(k.end.replace("Z","")).toDate()})})}),i.report=g,i.banners.forEach(function(l){l.imageUrl=n.getGlobalSettings().blobStorageCdnUrl+"/"+n.getGlobalSettings().blobStorageContainerNameShipment+"/"+l.pin+"?preset=shipment"}),m(function(){var l,b,k,v,y,I=new Set;$.each(g,function(R,D){D.active=!0,I.add(D.chapter.name)}),g.uniqueChapters=[],I.forEach(function(R){g.uniqueChapters.push(R)}),$.each(i.banners,function(R,D){D.reportActive=!0});var h=[],w=function(){h.length=0,$.each(g[0].reports[0].calendar,function(R,D){h.push({start:D.start,end:D.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(R,D){D.active&&(g[R-1]&&2===g[R-1].chapter.managementState&&2===D.chapter.managementState&&g[R-1].chapter.name!==D.chapter.name&&(g.multiChapterShipment=!0),$.each(D.reports,function(A,S){if(i.banners[A].reportActive){var U=S.banner.pin;$.each(S.calendar,function(C,F){F.pin=U,h[C].impressions+=F.impressions,h[C].viewableImpressions+=F.viewableImpressions,h[C].billableViewableImpressions+=F.billableViewableImpressions,h[C].viewableImpressionTimeSeconds+=F.viewableImpressionTimeSeconds,h[C].desktopViewableImpressions+=F.desktopViewableImpressions,h[C].mobileViewableImpressions+=F.mobileViewableImpressions,h[C].tabletViewableImpressions+=F.tabletViewableImpressions,h[C].clicks+=F.clicks,h[C].maleViewableImpressions+=F.maleViewableImpressions,h[C].femaleViewableImpressions+=F.femaleViewableImpressions,h[C].age1617MaleViewableImpressions+=F.age1617MaleViewableImpressions,h[C].age1824MaleViewableImpressions+=F.age1824MaleViewableImpressions,h[C].age2534MaleViewableImpressions+=F.age2534MaleViewableImpressions,h[C].age3544MaleViewableImpressions+=F.age3544MaleViewableImpressions,h[C].age4554MaleViewableImpressions+=F.age4554MaleViewableImpressions,h[C].age55MaleViewableImpressions+=F.age55MaleViewableImpressions,h[C].age1617FemaleViewableImpressions+=F.age1617FemaleViewableImpressions,h[C].age1824FemaleViewableImpressions+=F.age1824FemaleViewableImpressions,h[C].age2534FemaleViewableImpressions+=F.age2534FemaleViewableImpressions,h[C].age3544FemaleViewableImpressions+=F.age3544FemaleViewableImpressions,h[C].age4554FemaleViewableImpressions+=F.age4554FemaleViewableImpressions,h[C].age55FemaleViewableImpressions+=F.age55FemaleViewableImpressions})}}))}),b.validateData(),l.validateData()},p=g.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:h,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:c,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"billableViewableImpressions",toField:"billableViewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:h,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}}),k=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:f,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),v=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:c,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(R,D){return-1*R.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(R){return R<0?-1*R+"":R+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),y=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:u,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}});var M=function(){var R=moment(l.startDate).startOf("day").toDate(),D=moment(l.endDate).startOf("day").add(-1,"d").toDate();(function(R,D){p.maleViewableImpressions=0,p.femaleViewableImpressions=0,p.viewableImpressions=0,p.billableViewableImpressions=0,p.viewableImpressionTimeSeconds=0,p.impressions=0,p.clicks=0,p.desktopViewableImpressions=0,p.mobileViewableImpressions=0,p.tabletViewableImpressions=0,p.age1617MaleViewableImpressions=0,p.age1824MaleViewableImpressions=0,p.age2534MaleViewableImpressions=0,p.age3544MaleViewableImpressions=0,p.age4554MaleViewableImpressions=0,p.age55MaleViewableImpressions=0,p.age1617FemaleViewableImpressions=0,p.age1824FemaleViewableImpressions=0,p.age2534FemaleViewableImpressions=0,p.age3544FemaleViewableImpressions=0,p.age4554FemaleViewableImpressions=0,p.age55FemaleViewableImpressions=0;var A=0,S=0,U=0,C=0,F=0,V=0,T=0,P=0,N=0,q=0,_=0,E=0,L=0,j=0,W=0;p.start=R,p.end=D,$.each(h,function(Y,B){var z=new Date(B.start);z<R||z>D||(p.maleViewableImpressions+=B.maleViewableImpressions,p.femaleViewableImpressions+=B.femaleViewableImpressions,p.viewableImpressions+=B.viewableImpressions,p.billableViewableImpressions+=B.billableViewableImpressions,p.viewableImpressionTimeSeconds+=B.viewableImpressionTimeSeconds,p.impressions+=B.impressions,p.clicks+=B.clicks,A+=B.desktopViewableImpressions,S+=B.mobileViewableImpressions,U+=B.tabletViewableImpressions,C+=B.age1617MaleViewableImpressions,F+=B.age1824MaleViewableImpressions,V+=B.age2534MaleViewableImpressions,T+=B.age3544MaleViewableImpressions,P+=B.age4554MaleViewableImpressions,N+=B.age55MaleViewableImpressions,q+=B.age1617FemaleViewableImpressions,_+=B.age1824FemaleViewableImpressions,E+=B.age2534FemaleViewableImpressions,L+=B.age3544FemaleViewableImpressions,j+=B.age4554FemaleViewableImpressions,W+=B.age55FemaleViewableImpressions)}),p.desktopViewableImpressions=Math.round(100/(p.viewableImpressions/A)),p.mobileViewableImpressions=Math.round(100/(p.viewableImpressions/S)),p.tabletViewableImpressions=Math.round(100/(p.viewableImpressions/U));var K=p.viewableImpressions-(C+F+V+T+P+N+q+_+E+L+j+W);K>100&&(C+=K*t.scope.globalSettings.reportAverageAge1617Male,F+=K*t.scope.globalSettings.reportAverageAge1824Male,V+=K*t.scope.globalSettings.reportAverageAge2534Male,T+=K*t.scope.globalSettings.reportAverageAge3544Male,P+=K*t.scope.globalSettings.reportAverageAge4554Male,N+=K*t.scope.globalSettings.reportAverageAge55Male,q+=K*t.scope.globalSettings.reportAverageAge1617Female,_+=K*t.scope.globalSettings.reportAverageAge1824Female,E+=K*t.scope.globalSettings.reportAverageAge2534Female,L+=K*t.scope.globalSettings.reportAverageAge3544Female,j+=K*t.scope.globalSettings.reportAverageAge4554Female,W+=K*t.scope.globalSettings.reportAverageAge55Female),p.age1617MaleViewableImpressions=Math.round(100/(p.viewableImpressions/C)),p.age1824MaleViewableImpressions=Math.round(100/(p.viewableImpressions/F)),p.age2534MaleViewableImpressions=Math.round(100/(p.viewableImpressions/V)),p.age3544MaleViewableImpressions=Math.round(100/(p.viewableImpressions/T)),p.age4554MaleViewableImpressions=Math.round(100/(p.viewableImpressions/P)),p.age55MaleViewableImpressions=Math.round(100/(p.viewableImpressions/N)),p.age1617FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/q)),p.age1824FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/_)),p.age2534FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/E)),p.age3544FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/L)),p.age4554FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/j)),p.age55FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/W)),p.maleViewableImpressions=Math.round(p.maleViewableImpressions),p.femaleViewableImpressions=Math.round(p.femaleViewableImpressions),f[0].value=p.femaleViewableImpressions,f[1].value=p.maleViewableImpressions,d[0].male=Math.round(-1*p.age1617MaleViewableImpressions),d[1].male=Math.round(-1*p.age1824MaleViewableImpressions),d[2].male=Math.round(-1*p.age2534MaleViewableImpressions),d[3].male=Math.round(-1*p.age3544MaleViewableImpressions),d[4].male=Math.round(-1*p.age4554MaleViewableImpressions),d[5].male=Math.round(-1*p.age55MaleViewableImpressions),d[0].female=Math.round(p.age1617FemaleViewableImpressions),d[1].female=Math.round(p.age1824FemaleViewableImpressions),d[2].female=Math.round(p.age2534FemaleViewableImpressions),d[3].female=Math.round(p.age3544FemaleViewableImpressions),d[4].female=Math.round(p.age4554FemaleViewableImpressions),d[5].female=Math.round(p.age55FemaleViewableImpressions),u[0].value=p.desktopViewableImpressions,u[1].value=p.mobileViewableImpressions,u[2].value=p.tabletViewableImpressions,k.validateData(),v.validateData(),y.validateData(),e.$apply()})(R,D),b.zoom(R,moment(D).add(1,"d").toDate())};l.addListener("zoomed",function(R){M()}),e.toggleReport=function(R){$.each(i.banners,function(D,A){A.pin===R.pin&&(A.reportActive=!A.reportActive)}),m(function(){w(),M()},50)},e.toggleChapter=function(R){$.each(g,function(D,A){A.chapter.name===R&&(A.active=!A.active)}),m(function(){w(),M()},50)},w(),b.validateData(),l.validateNow(),l.setDefaultPeriod()},function(){e.error=!0})})},function(){r.path("/")});var f=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:c,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}],u=[{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,o){var m=[],d=function(){var g=t.defer();return m.length>0?g.resolve(m):e.get(scope.apiEndpoint+"bannerCampaigns").then(function(l){angular.copy(l.data,m),g.resolve(m)},function(){g.reject()}),g.promise};function u(g){var l=null;return $.each(m,function(b,k){if(k.pin===g)return l=k,!1}),l}return{bannerCampaigns:m,getbannerCampaigns:d,getreportBannerCalendar:function(g){var l=t.defer();return e.get(scope.apiEndpoint+"bannerCampaigns/"+g+"/ReportBannerCalendar").then(function(b){l.resolve(b.data)},function(){l.reject()}),l.promise},getbannerCampaignByPin:function(g){var l=t.defer();if(m.length>0){var b=u(g);b?l.resolve(b):e.get(scope.apiEndpoint+"/bannerCampaigns"+g).then(function(k){l.resolve(k.data)},function(){l.reject()})}else d().then(function(){var k=u(g);k?l.resolve(k):e.get(scope.apiEndpoint+"bannerCampaigns/"+g).then(function(v){l.resolve(v.data)},function(){l.reject()})},function(){l.reject()});return l.promise},getElasticReportBannerCalendar:function(g){var l=t.defer();return e.get(scope.apiEndpoint+"bannerCampaigns/"+g+"/Elastic").then(function(b){l.resolve(b.data)},function(){l.reject()}),l.promise},getChapterReport:function(g,l,b,k){var v=t.defer();return e.get(scope.apiEndpoint+"bannerCampaigns/chapterReport?chapterId="+g+"&bannerCampaignId="+l.id+"&start="+new Date(b).getTime()+"&end="+new Date(k).getTime()).then(function(y){v.resolve(y.data)},function(){v.reject()}),v.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,o){var m=this;m.carrierDetails=null,this.$onInit=function(){o.getApiResult(m.projectDetails.carrier.links[0].href).then(function(r){m.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,o){var m=this;m.projectDetails={},this.$onInit=function(){m.article.betterPlaceProjectId&&t.scope.currentScope.chapter.settings.enableBetterPlaceProjects&&o.getProjectDetails(m.article.betterPlaceProjectId).then(function(r){m.projectDetails=r})}}]}),app.service("betterPlaceService",["$http","$q",function(e,t){var a={withCredentials:!1};return{getProjectDetails:function(o){var m=t.defer();return e.get(scope.globalSettings.betterPlaceApiUrl+"/projects/"+o,a).then(function(r){m.resolve(r.data)},function(){m.reject()}),m.promise},getApiResult:function(o){var m=t.defer();return e.get(o,a).then(function(r){m.resolve(r.data)},function(){m.reject()}),m.promise}}}]),app.controller("BrochureElasticReportController",["$scope","$rootScope","brochureService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,s,o,m){AmCharts.isReady=!0;var d,u,i,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",c=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],f=[];e.report=null,e.totalUniqueViewCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var g=function(v){var y=0,I=0,h=0,w=0,p=0,x=0;$.each(v,function(M,R){y+=R.desktopImpressionCount,I+=R.tabletImpressionCount,h+=R.mobileImpressionCount,w+=R.uniqueViews,p+=R.impressionTime,x+=R.impressionCount}),e.$apply(function(){e.totalUniqueViewCount=w,e.totalImpressionTime=p,e.totalImpressionCount=x}),c[0].value=Math.round(100/(x/y)),c[1].value=Math.round(100/(x/h)),c[2].value=Math.round(100/(x/I)),d.validateData()},l=function(){var v=moment(u.startDate).startOf("day").toDate(),y=moment(u.endDate).startOf("day").toDate(),I=e.report.filter(function(h){return h.day>=v&&h.day<=y});g(I),i.zoom(v,moment(y).add(1,"d").toDate()),e.$apply(function(){e.startDay=v,e.endDay=y})};e.filterChapter=function(v){v.filtered=!v.filtered,function(){var v=e.chapters.filter(function(y){return!y.filtered}).map(function(y){return y.id});e.filterDisabled=!0,a.getBrochureReport({specialId:s.id,chapterIds:v}).then(function(y){y.forEach(function(I){I.day=moment(I.day.replace("Z","")).toDate()}),e.report=y,o(function(){(function(v){f.length=0,$.each(v,function(y,I){f.push(I)}),u.validateData(),i.validateData()})(y),l(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(v){return e.filterDisabled||1===e.chapters.filter(function(y){return!y.filtered}).length&&!v.filtered},a.getBrochureInfo(s.id).then(function(v){e.brochure=v,a.getBrochureReport({specialId:s.id}).then(function(y){y.forEach(function(h){h.day=moment(h.day.replace("Z","")).toDate()}),e.report=y,e.startDay=y[0].day,e.endDay=y[y.length-1].day;var I=[];$.each(v.chapterSlugs,function(h,w){I.push(n.getChapter(w))}),I=I.filter(function(h){return 2===h.managementState}),e.chapters=I,$.each(y,function(h,w){f.push(w)}),o(function(){d=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}}),(u=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:f,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(){l()}),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:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"uniqueViews",toField:"uniqueViews"}],dataProvider:f,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(y)})},function(){e.error=!0})})}]),app.controller("BrochureReportController",["$scope","$rootScope","brochureService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,o,m,r){AmCharts.isReady=!0,a.getBrochureInfo(s.id).then(function(u){e.brochure=u,a.getBrochureCalendar(s.id).then(function(i){i.forEach(function(g){g.chapter=n.getChapter(g.chapterSlug),g.report.calendar.forEach(function(l){l.start=moment(l.start.replace("Z","")).toDate(),l.end=moment(l.end.replace("Z","")).toDate()})}),u.chapterReport=i,m(function(){var g,l,b,k,v,y,I=new Set;$.each(i,function(R,D){D.active=!0,I.add(D.chapter.name)}),i.uniqueChapters=[],I.forEach(function(R){i.uniqueChapters.push(R)});var h=[],w=function(){h.length=0,$.each(i[0].report.calendar,function(R,D){h.push({start:D.start,end:D.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(i,function(R,D){if(D.active){i[R-1]&&2===i[R-1].chapter.managementState&&2===D.chapter.managementState&&i[R-1].chapter.name!==D.chapter.name&&(i.multiChapterShipment=!0);var A=D.report.brochure.Id;$.each(D.report.calendar,function(S,U){U.brochureId=A;var C=h[S];C.viewableImpressions+=U.viewableImpressions,C.activeTimeSeconds+=U.activeTimeSeconds,C.readings+=U.views,C.maleUniqueViewableImpressions+=U.maleViewableImpressions,C.femaleUniqueViewableImpressions+=U.femaleViewableImpressions,C.uniqueReadings+=U.uniqueViews,C.desktopReadings+=U.desktopViews,C.mobileReadings+=U.mobileViews,C.tabletReadings+=U.tabletViews,C.age1617MaleUniqueViewableImpressions+=U.age1617MaleViewableImpressions,C.age1824MaleUniqueViewableImpressions+=U.age1824MaleViewableImpressions,C.age2534MaleUniqueViewableImpressions+=U.age2534MaleViewableImpressions,C.age3544MaleUniqueViewableImpressions+=U.age3544MaleViewableImpressions,C.age4554MaleUniqueViewableImpressions+=U.age4554MaleViewableImpressions,C.age55MaleUniqueViewableImpressions+=U.age55MaleViewableImpressions,C.age1617FemaleUniqueViewableImpressions+=U.age1617FemaleViewableImpressions,C.age1824FemaleUniqueViewableImpressions+=U.age1824FemaleViewableImpressions,C.age2534FemaleUniqueViewableImpressions+=U.age2534FemaleViewableImpressions,C.age3544FemaleUniqueViewableImpressions+=U.age3544FemaleViewableImpressions,C.age4554FemaleUniqueViewableImpressions+=U.age4554FemaleViewableImpressions,C.age55FemaleUniqueViewableImpressions+=U.age55FemaleViewableImpressions})}}),b.validateData(),k.validateData(),v.validateData(),y.validateData()},p=i.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:h,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}}),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:"#00cdbd",fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:h,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:c,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),k=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:f,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(R,D){return-1*R.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(R){return R<0?-1*R+"":R+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),v=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}}),y=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[p],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 M=function(){var R=moment(g.startDate).startOf("day").toDate(),D=moment(g.endDate).startOf("day").add(-1,"d").toDate();l.zoom(R,moment(D).add(1,"d").toDate()),function(R,D){p.viewableImpressions=0,p.billableViewableImpressions=0,p.activeTimeSeconds=0,p.readings=0,p.uniqueReadings=0,p.uniqueReadingsHavingViewableImpressions=0,p.uniqueReadingPercentageReads=0,p.maleUniqueViewableImpressions=0,p.femaleUniqueViewableImpressions=0,p.desktopReadings=0,p.mobileReadings=0,p.tabletReadings=0,p.age1617MaleUniqueViewableImpressions=0,p.age1824MaleUniqueViewableImpressions=0,p.age2534MaleUniqueViewableImpressions=0,p.age3544MaleUniqueViewableImpressions=0,p.age4554MaleUniqueViewableImpressions=0,p.age55MaleUniqueViewableImpressions=0,p.age1617FemaleUniqueViewableImpressions=0,p.age1824FemaleUniqueViewableImpressions=0,p.age2534FemaleUniqueViewableImpressions=0,p.age3544FemaleUniqueViewableImpressions=0,p.age4554FemaleUniqueViewableImpressions=0,p.age55FemaleUniqueViewableImpressions=0,p.uniqueReadingPercentage24Reads=0,p.uniqueReadingPercentage2549Reads=0,p.uniqueReadingPercentage5074Reads=0,p.uniqueReadingPercentage75100Reads=0;var A=0,S=0,U=0,C=0,F=0,V=0,T=0,P=0,N=0,q=0,_=0,E=0,L=0,j=0,W=0;p.start=R,p.end=D,$.each(h,function(B,z){var Q=new Date(z.start);Q<R||Q>D||(p.viewableImpressions+=z.viewableImpressions,p.activeTimeSeconds+=z.activeTimeSeconds,p.readings+=z.readings,p.maleUniqueViewableImpressions+=z.maleUniqueViewableImpressions,p.femaleUniqueViewableImpressions+=z.femaleUniqueViewableImpressions,p.uniqueReadings+=z.uniqueReadings,A+=z.desktopReadings,S+=z.mobileReadings,U+=z.tabletReadings,C+=z.age1617MaleUniqueViewableImpressions,F+=z.age1824MaleUniqueViewableImpressions,V+=z.age2534MaleUniqueViewableImpressions,T+=z.age3544MaleUniqueViewableImpressions,P+=z.age4554MaleUniqueViewableImpressions,N+=z.age55MalUniqueeViewableImpressions,q+=z.age1617FemaleUniqueViewableImpressions,_+=z.age1824FemaleUniqueViewableImpressions,E+=z.age2534FemaleUniqueViewableImpressions,L+=z.age3544FemaleUniqueViewableImpressions,j+=z.age4554FemaleUniqueViewableImpressions,W+=z.age55FemaleUniqueViewableImpressions)});var K=A+S+U;p.desktopReadings=Math.round(100/(K/A)),p.mobileReadings=Math.round(100/(K/S)),p.tabletReadings=Math.round(100/(K/U)),p.maleUniqueViewableImpressions=Math.round(p.maleUniqueViewableImpressions),p.femaleUniqueViewableImpressions=Math.round(p.femaleUniqueViewableImpressions),c[0].value=p.femaleUniqueViewableImpressions,c[1].value=p.maleUniqueViewableImpressions;var Y=p.viewableImpressions-(C+F+V+T+P+N+q+_+E+L+j+W);Y>100&&(C+=Y*t.scope.globalSettings.reportAverageAge1617Male,F+=Y*t.scope.globalSettings.reportAverageAge1824Male,V+=Y*t.scope.globalSettings.reportAverageAge2534Male,T+=Y*t.scope.globalSettings.reportAverageAge3544Male,P+=Y*t.scope.globalSettings.reportAverageAge4554Male,N+=Y*t.scope.globalSettings.reportAverageAge55Male,q+=Y*t.scope.globalSettings.reportAverageAge1617Female,_+=Y*t.scope.globalSettings.reportAverageAge1824Female,E+=Y*t.scope.globalSettings.reportAverageAge2534Female,L+=Y*t.scope.globalSettings.reportAverageAge3544Female,j+=Y*t.scope.globalSettings.reportAverageAge4554Female,W+=Y*t.scope.globalSettings.reportAverageAge55Female),p.age1617MaleUniqueViewableImpressions=Math.round(100/(p.viewableImpressions/C)),p.age1824MaleUniqueViewableImpressions=Math.round(100/(p.viewableImpressions/F)),p.age2534MaleUniqueViewableImpressions=Math.round(100/(p.viewableImpressions/V)),p.age3544MaleUniqueViewableImpressions=Math.round(100/(p.viewableImpressions/T)),p.age4554MaleUniqueViewableImpressions=Math.round(100/(p.viewableImpressions/P)),p.age55MaleUniqueViewableImpressions=Math.round(100/(p.viewableImpressions/N)),p.age1617FemaleUniqueViewableImpressions=Math.round(100/(p.viewableImpressions/q)),p.age1824FemaleUniqueViewableImpressions=Math.round(100/(p.viewableImpressions/_)),p.age2534FemaleUniqueViewableImpressions=Math.round(100/(p.viewableImpressions/E)),p.age3544FemaleUniqueViewableImpressions=Math.round(100/(p.viewableImpressions/L)),p.age4554FemaleUniqueViewableImpressions=Math.round(100/(p.viewableImpressions/j)),p.age55FemaleUniqueViewableImpressions=Math.round(100/(p.viewableImpressions/W)),f[0].male=Math.round(-1*p.age1617MaleUniqueViewableImpressions),f[1].male=Math.round(-1*p.age1824MaleUniqueViewableImpressions),f[2].male=Math.round(-1*p.age2534MaleUniqueViewableImpressions),f[3].male=Math.round(-1*p.age3544MaleUniqueViewableImpressions),f[4].male=Math.round(-1*p.age4554MaleUniqueViewableImpressions),f[5].male=Math.round(-1*p.age55MaleUniqueViewableImpressions),f[0].female=Math.round(p.age1617FemaleUniqueViewableImpressions),f[1].female=Math.round(p.age1824FemaleUniqueViewableImpressions),f[2].female=Math.round(p.age2534FemaleUniqueViewableImpressions),f[3].female=Math.round(p.age3544FemaleUniqueViewableImpressions),f[4].female=Math.round(p.age4554FemaleUniqueViewableImpressions),f[5].female=Math.round(p.age55FemaleUniqueViewableImpressions),d[0].value=p.desktopReadings,d[1].value=p.mobileReadings,d[2].value=p.tabletReadings,b.validateData(),k.validateData(),v.validateData(),y.validateData(),e.$apply()}(R,D)};g.addListener("zoomed",function(R){M()}),e.toggleChapter=function(R){$.each(i,function(D,A){A.chapter.name===R&&(A.active=!A.active)}),m(function(){w(),M()},50)},w(),l.validateNow(),g.validateNow(),g.setDefaultPeriod(),M()},function(){e.error=!0})})},function(){r.path("/")});var c=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:"#00cdbd",value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],f=[{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 u=t.defer();return d?e.get(scope.apiEndpoint+"brochures/"+d).then(function(i){u.resolve(i.data)},function(){u.reject()}):n.length>0?u.resolve(n.splice(0,1)[0]):s.push(u),u.promise},getBrochureInfo:function(d){var u=t.defer();return e.get(scope.apiEndpoint+"brochures/"+d+"/ReportInfo").then(function(i){u.resolve(i.data)},function(){u.reject()}),u.promise},getBrochureCalendar:function(d){var u=t.defer();return e.get(scope.apiEndpoint+"brochures/"+d+"/ReportCalendar").then(function(i){u.resolve(i.data)},function(){u.reject()}),u.promise},getBrochureReport:function(d){var u=t.defer();return e.post(scope.apiEndpoint+"brochures/report",d).then(function(i){u.resolve(i.data)},function(){u.reject()}),u.promise},resolve:function(d,u){var i=t.defer();return s.length>d&&(d=s.length),e.get(scope.apiEndpoint+"brochures/"+d+"/"+u).then(function(g){i.resolve(g.data),n.length=0,n.push.apply(n,g.data),s.forEach(function(l){n.length>0?l.resolve(n.splice(0,1)[0]):l.reject()}),s.length=0},function(){i.reject()}),i.promise}}}]),app.controller("CampaignController",["$rootScope","$scope","campaignService","profileService","$timeout","$location","$q",function(e,t,a,n,s,o,m){e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,n.getProfile().then(function(r){r.isAdvertiser||o.path("/").replace();var c=r.guid;e.$watch("profile.guid",function(){c!==r.guid&&o.path("/")})},function(){o.path("/").replace()}),e.data=a,e.isBusy=!0,e.articleFilter=function(r){return r.coverAssetReference},e.advertisementFilter=function(r){return!r.deleted&&!r.hidden},m.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=[],o=[],m=[],r=[],c=[],f=[],i=function(){var R=t.defer();return a.length>0?R.resolve(a):e.get(scope.apiEndpoint+"campaigns").then(function(D){angular.copy(D.data,a),R.resolve(a)},function(){R.reject()}),R.promise};function x(R){var D=null;return $.each(a,function(A,S){if(S.pin==R)return D=S,!1}),D}return{campaigns:a,specials:r,brochures:c,bannerCampaigns:n,premiums:o,supers:f,marketResearchs:s,sparticleCampaigns:m,getCampaigns:i,getSpecials:function(){var R=t.defer();return r.length>0?R.resolve(r):e.get(scope.apiEndpoint+"specials").then(function(D){angular.copy(D.data,r),R.resolve(r)},function(){R.reject()}),R.promise},getBrochures:function(){var R=t.defer();return c.length>0?R.resolve(c):e.get(scope.apiEndpoint+"brochures").then(function(D){angular.copy(D.data,c),R.resolve(c)},function(){R.reject()}),R.promise},getBannerCampaigns:function(){var R=t.defer();return n.length>0?R.resolve(n):e.get(scope.apiEndpoint+"bannerCampaigns").then(function(D){angular.copy(D.data,n),R.resolve(n)},function(){R.reject()}),R.promise},getMarketResearchs:function(){var R=t.defer();return s.length>0?R.resolve(s):e.get(scope.apiEndpoint+"marketResearch").then(function(D){angular.copy(D.data,s),R.resolve(s)},function(){R.reject()}),R.promise},getPremiums:function(){var R=t.defer();return o.length>0?R.resolve(o):e.get(scope.apiEndpoint+"premiums").then(function(D){angular.copy(D.data,o),R.resolve(o)},function(){R.reject()}),R.promise},getSupers:function(){var R=t.defer();return f.length>0?R.resolve(f):e.get(scope.apiEndpoint+"super").then(function(D){angular.copy(D.data,f),R.resolve(f)},function(){R.reject()}),R.promise},getCampaignByPin:function(R){var D=t.defer();if(a.length>0){var A=x(R);A?D.resolve(A):e.get(scope.apiEndpoint+"campaigns/"+R).then(function(S){D.resolve(S.data)},function(){D.reject()})}else i().then(function(){var S=x(R);S?D.resolve(S):e.get(scope.apiEndpoint+"campaigns/"+R).then(function(U){D.resolve(U.data)},function(){D.reject()})},function(){D.reject()});return D.promise},createAdvertisement:function(R,D){var A=t.defer();return e.post(scope.apiEndpoint+"advertisements",D).then(function(S){R.advertisements.push(S.data),A.resolve(S.data)},function(S){A.reject(S)}),A.promise},deleteAdvertisement:function(R,D){var A=t.defer();return D.deleted=(new Date).getUTCDate(),e.delete(scope.apiEndpoint+"advertisements/"+D.pin).then(function(S){angular.copy(S.data,D),A.resolve(S)},function(){R.deleted=null,A.reject()}),A.promise},updateAdvertisement:function(R){var D=t.defer();return e.put(scope.apiEndpoint+"advertisements",R).then(function(A){angular.copy(A.data,R),D.resolve(A.data)},function(){D.reject()}),D.promise},getReportAdvertisementCalendar:function(R){var D=t.defer();return e.get(scope.apiEndpoint+"campaigns/"+R+"/ReportAdvertisementCalendar").then(function(A){D.resolve(A.data)},function(){D.reject()}),D.promise},getReportContentMarketingCalendar:function(R){var D=t.defer();return e.get(scope.apiEndpoint+"campaigns/"+R+"/ReportContentMarketingCalendar").then(function(A){D.resolve(A.data)},function(){D.reject()}),D.promise},getSparticleCampaigns:function(){var R=t.defer();return m.length>0?R.resolve(m):e.get(scope.apiEndpoint+"sponsoredArticleCampaigns").then(function(D){angular.copy(D.data,m),R.resolve(m)},function(){R.reject()}),R.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(i){var g=t.defer();return n[i]&&n[i].length>0?g.resolve(n[i].splice(0,1)[0]):(s[i]||(s[i]=[]),s[i].push(g)),g.promise},getShipmentPremium:function(){var i=t.defer(),g=function(){var l=ResponsiveBootstrapToolkit.is("xs");e.get(scope.apiEndpoint+"shipment/premium/"+l).then(function(b){b.data&&(b.data.mobile=l),i.resolve(b.data)},function(){i.reject()})};return"complete"!==document.readyState?$(document).ready(g,!1):g(),i.promise},getShipmentSuper:function(){var i=t.defer(),g=function(){var l=ResponsiveBootstrapToolkit.is("xs");e.get(scope.apiEndpoint+"shipment/superCampaign/"+l).then(function(b){b.data&&(b.data.mobile=l),i.resolve(b.data)},function(){i.reject()})};return"complete"!==document.readyState?$(document).ready(g,!1):g(),i.promise},getSurveyForDeeplink:function(i,g){var l=t.defer();return e.get(scope.apiEndpoint+"shipment/survey/"+i+(g?"/true":"/false")).then(function(b){l.resolve(b.data)},function(){l.reject()}),l.promise},getTranslatedSurveyForDeeplink:function(i,g,l){var b=t.defer();return e.get(scope.apiEndpoint+"shipment/survey/translate/"+i+(g?"/true/":"/false/")+l).then(function(k){b.resolve(k.data)},function(){b.reject()}),b.promise},resolve:function(i,g,l){var b=t.defer();return s[g]&&s[g].length>i&&(i=s[g].length),e.get(scope.apiEndpoint+"shipment/"+i+"/"+g+(l?"?targetLanguage="+l:"")).then(function(k){n[g]=k.data,s[g]&&s[g].forEach(function(v){n[g].length>0?v.resolve(n[g].splice(0,1)[0]):v.reject()}),s[g]=[],b.resolve(k.data)},function(){b.reject()}),b.promise},clickSurvey:function(i){var g=t.defer();return e.post(scope.apiEndpoint+"shipment/survey/"+i+"/click").then(function(l){g.resolve(l.data)},function(){g.reject()}),g.promise}}}]),app.factory("clickService",["$http","$q",function(e,t){var a=function(p,x,M){var R=t.defer();return e.get(scope.apiEndpoint+p+x+"/"+M).then(function(D){R.resolve(D.data)},function(){R.reject()}),R.promise},n=function(p,x,M){var R=t.defer();return e.post(scope.apiEndpoint+p+x+"/"+M).then(function(D){R.resolve(D.data)},function(){R.reject()}),R.promise};return{clickArticle:function(p,x){return a("click/article/",p,x)},clickBanner:function(p,x){return a("click/banner/",p,x)},clickBannerPost:function(p,x){return n("click/banner/",p,x)},clickDocument:function(p){var x=t.defer();return e.get(scope.apiEndpoint+"click/document/"+p).then(function(M){x.resolve(M.data)},function(){x.reject()}),x.promise},clickFile:function(p){var x=t.defer();return e.get(scope.apiEndpoint+"click/file/"+p).then(function(M){x.resolve(M.data)},function(){x.reject()}),x.promise},clickPremium:function(p,x){return a("click/premiumBanner/",p,x)},clickPremiumPost:function(p,x){return n("click/premiumBanner/",p,x)},clickSnip:function(p,x){return a("click/snip/",p,x)},clickSpecial:function(p,x){return a("click/special/",p,x)},clickSpecialPost:function(p,x){return n("click/special/",p,x)},clickSponsoredArticle:function(p,x){return a("click/sponsoredarticle/",p,x)},clickSuper:function(p,x){return a("click/superBanner/",p,x)},clickSuperPost:function(p,x){return n("click/superBanner/",p,x)},clickSurveyBanner:function(p){return a("click/surveyBanner/",p)},clickSurveyBannerPost:function(p,x){return n("click/surveyBanner/",p,x)},clickNotification:function(p){var x=t.defer();return e.get(scope.apiEndpoint+"click/notification/"+p).then(function(M){x.resolve(M.data)},function(){x.reject()}),x.promise},clickBreaking:function(p){var x=t.defer();return e.get(scope.apiEndpoint+"click/breaking/"+p).then(function(M){x.resolve(M.data)},function(){x.reject()}),x},clickAssetReference:function(p,x){return a("click/assetReference/",p,x)}}}]),app.controller("ClosedChapterController",["$scope","$rootScope","$timeout","profileService","companyNewsService","$window","$location","$uibModal","$state","closedChapterService",function(e,t,a,n,s,o,m,r,c,f){if(e.working=!1,e.success=!1,e.title=t.scope.currentScope.chapter.name,e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,e.showBackButton=!1,""!=t.scope.currentScope.chapter.path&&t.scope.network.chapters.length>0){var d=t.scope.network.chapters.filter(function(i){return 2==i.managementState&&"/"==i.path});e.showBackButton=d.length<1}var u=m.search().returnUrl;u&&window.sessionStorage.setItem("returnUrl",u),e.login=function(){c.go("app.root.login",{closedToken:m.search().token})},e.register=function(){c.go("app.register",{closedToken:m.search().token})},e.goBackToLanding=()=>{window.location.href=t.scope.network.path+"?ignoreFavoriteChapter=true"},e.hasRequest=!1,f.hasChapterRequest().then(function(i){e.hasRequest=i}),f.getRSS().then(function(i){e.feedArticles=i}),s.getCompanyNews().then(function(i){e.companyNews=i}),e.reload=function(){o.location.reload()},e.request=function(){f.getChapterRequest().then(function(){e.hasRequest=!0})},n.getProfile().then(function(i){i.hasChapterAccess&&m.path("/").replace(),m.search().token&&i.isRegistered?(e.working=!0,f.consumeChapterUserToken(m.search().token).then(function(){e.consumeError=!1,a(function(){e.working=!1,e.success=!0,o.location.reload()},1e3)},function(){e.working=!1,e.consumeError=!0})):i.hasChapterAccess&&m.path("/").replace()})}]),app.factory("closedChapterService",["$http","$q",function(e,t){return{getChapterRequest:function(){var m=t.defer();return e.get(scope.apiEndpoint+"closedChapter/request").then(function(r){m.resolve()}),m.promise},hasChapterRequest:function(){var m=t.defer();return e.get(scope.apiEndpoint+"closedChapter/hasRequest").then(function(r){m.resolve(r.data)}),m.promise},consumeChapterUserToken:function(m){var r=t.defer();return e.put(scope.apiEndpoint+"closedChapter/"+m).then(function(c){r.resolve(c)},function(){r.reject()}),r.promise},getRSS:function(){var m=t.defer();return e.get(scope.apiEndpoint+"closedChapter/RSS").then(function(r){m.resolve(r.data)}),m.promise}}}]),app.directive("a",["$state","$rootScope","$location","$timeout",function(e,t,a,n){return{restrict:"E",link:function(s,o){t.app&&$(o).click(function(m){if("_blank"===$(o).attr("target")){m.preventDefault();var r=$(o).attr("href");let d=!1;if(r.match("https?://(.*/)?"+location.hostname+".*"))d=!0;else try{new URL(r),d=!1}catch{r.match("^(?:https?:)?//.*")||(d=!0)}if(d)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(u){return 2===u.managementState&&u.path!=t.scope.currentChapter.path}),chapters.forEach(function(u){r.startsWith(t.scope.currentScope.network.path+u.path)&&(window.location.href=r)}),n(function(){a.url(r.replace("https://"+location.hostname,""))}));else if(typeof cordova<"u"){let u=t.scope.currentScope.network.settings.configurations.inAppBrowserOnly;var c="location=no,toolbarposition=top,toolbartranslucent=no";"android"===cordova.platformId&&(c="location=yes,hideurlbar=yes,zoom=no,closebuttoncaption="+t.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"));var f="_blank";(!u||r.match("mailto:.*")||r.match("tel:.*"))&&(f="_system"),cordova.InAppBrowser.open(r,f,c)}else 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,o,m,r){var u,c=0,f=0,d=r.latencyThreshold;function i(){s.cancel(u),r.complete(),f=0,c=0}function g(l){var b,k=n.get("$http"),v=e.defaults;(l.cache||v.cache)&&!1!==l.cache&&("GET"===l.method||"JSONP"===l.method)&&(b=angular.isObject(l.cache)?l.cache:angular.isObject(v.cache)?v.cache:k);var y=void 0!==b&&void 0!==b.get(l.url);return void 0!==l.cached&&y!==l.cached?l.cached:(l.cached=y,y)}return{request:function(l){return!l.ignoreLoadingBar&&!g(l)&&(o.$broadcast("cfpLoadingBar:loading",{url:l.url}),0===c&&(u=s(function(){r.start()},d)),c++,r.set(f/c)),l},response:function(l){return l&&l.config?(!l.config.ignoreLoadingBar&&!g(l.config)&&(f++,o.$broadcast("cfpLoadingBar:loaded",{url:l.config.url,result:l}),f>=c?i():r.set(f/c)),l):(m.error("Broken interceptor detected: Config object not supplied in response:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),l)},responseError:function(l){return l&&l.config?(!l.config.ignoreLoadingBar&&!g(l.config)&&(f++,o.$broadcast("cfpLoadingBar:loaded",{url:l.config.url,result:l}),f>=c?i():r.set(f/c)),a.reject(l)):(m.error("Broken interceptor detected: Config object not supplied in rejection:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),a.reject(l))}}}])}]),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,f,d,o=this.parentSelector,m=angular.element(this.loadingBarTemplate),r=m.find("div").eq(0),c=angular.element(this.spinnerTemplate),u=!1,i=0,g=this.includeSpinner,l=this.includeBar,b=this.startSize;function v(p){u&&(r.css("width",100*p+"%"),i=p,a.cancel(f),f=a(function(){y()},250))}function y(){if(!(I()>=1)){var p,x=I();p=x>=0&&x<.25?(3*Math.random()+3)/100:x>=.25&&x<.65?3*Math.random()/100:x>=.65&&x<.9?2*Math.random()/100:x>=.9&&x<.99?.005:0,v(I()+p)}}function I(){return i}function h(){i=0,u=!1}return{start:function k(){s||(s=e.get("$animate"));var p=t.find(o).eq(0);a.cancel(d),!u&&(n.$broadcast("cfpLoadingBar:started"),u=!0,l&&s.enter(m,p,angular.element(p[0].lastChild)),g&&s.enter(c,p,angular.element(p[0].lastChild)),v(b))},set:v,status:I,inc:y,complete:function w(){s||(s=e.get("$animate")),n.$broadcast("cfpLoadingBar:completed"),v(1),a.cancel(d),d=a(function(){var p=s.leave(m,h);p&&p.then&&p.then(h),s.leave(c)},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","translationService",function(e,t,a,n,s){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 o=t.scope.currentScope.chapter.chapterGroups.sort(function(f,d){return f.order-d.order}),m=0;m<o.length;m++)o[m].isFrontpageMenuStrip&&(e.chapterGroupChapters=e.chapterGroupChapters.concat(o[m].chapters.sort(function(f,d){return f.order-d.order})),e.show=e.chapterGroupChapters.length>0);if(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.show){var c=[];for(m=0;m<e.chapterGroupChapters.length;m++)c.push(e.chapterGroupChapters[m].shortName);s.translateByUserLanguageCode(c).then(f=>{for(var d=0;d<e.chapterGroupChapters.length;d++)e.chapterGroupChapters[d].translatedName=f[d].translation,e.chapterGroupChapters[d].shortName=f[d].translation;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,o,m,r,c,f,d){function g(l){t.$apply(function(){angular.element(l.target).hasClass("searchbar")||(e.show=!1,n.removeEventListener("click",g))})}(e=this).guid="",e.focusIndex=-1,e.focusIndexMax=0,e.displayedItems=null,e.emptyResult=!1,e.searchGuid="",e.networkIconBigUrl=c.getNetworkIconBigUrl(),e.notification=d,e.showSnipMenuItem=t.showSnipSlide,e.customHeaderIconOrText=[],e.quadraticLogoEnabled=t.scope.network.settings.configurations.enableQuadraticNetworkLogo,e.multiLanguageTranslationSystemIsEnabled=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,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"),f.getAvailableTargetLanguages().then(function(v){for(var y in v)e.availableTargetLanguages.push({languageCode:y})}),e.selectedTargetLanguage=t.profile.favoriteLanguage,t.$on("$stateChangeSuccess",function(){e.selectedTargetLanguage=t.profile.favoriteLanguage})}),e.translate=function(){moment.locale(e.selectedTargetLanguage),t.$broadcast("apicodo.translate",e.selectedTargetLanguage)}),t.scope.currentChapter.settings.configurations.custom_Header_Icon_Or_Text&&(e.customHeaderIconOrText=t.scope.currentChapter.settings.configurations.custom_Header_Icon_Or_Text.filter(function(l){return 1==l.Status})),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(l){e.guid=l.guid}),e.switchChapter=t.switchChapter,e.scope=t.scope,e.query=function i(){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:m.search(e.query).then(function(l){e.show=!0,e.focusIndexMax=0,e.focusIndex=-1,e.emptyResult=!1,e.displayedItems=[],angular.forEach(l.articles,function(b,k){k<5&&(b.article.focusIndex=e.focusIndexMax,e.focusIndexMax++,e.displayedItems.push(b))}),0===e.focusIndexMax&&(e.focusIndexMax=1,e.emptyResult=!0),e.hits=l,t.scope.currentScope.network.settings.isStaffDirectoryEnabled&&m.getStaffDirectoryUsers(e.query).then(function(b){angular.forEach(b,function(k,v){v<5&&(k.focusIndex=e.focusIndexMax,e.focusIndexMax++,e.displayedItems.push(k))}),0===e.focusIndexMax&&(e.focusIndexMax=1),e.staffDirectoryUserHits=b})})},t.$on("keydown",function(l,b,k){if(!a.includes("app.search")&&(27===b&&(e.show&&(e.show=!1,k.preventDefault(),t.$apply()),k.preventDefault()),40===b&&(e.focusIndex===e.focusIndexMax&&(e.focusIndex=-1),e.focusIndex=e.focusIndex+1,k.preventDefault(),t.$apply()),38===b&&(e.focusIndex>-1&&(e.focusIndex=e.focusIndex-1,t.$apply()),k.preventDefault()),13===b&&-1!==e.focusIndex)){if(0===e.focusIndex&&e.emptyResult)return a.go("app.root.snips"),e.clear(),void k.preventDefault();if(e.focusIndex===e.focusIndexMax)return a.go("app.search",{q:e.query}),e.clear(),void k.preventDefault();var v=e.displayedItems[e.focusIndex];if(v.slug)return t.switchChapter(v.slug),e.clear(),void k.preventDefault();if(v.levelId)return a.go("app.public-profile",{id:v.guid}),e.clear(),void k.preventDefault();if(v.articleListDisplayableType){switch(v.articleListDisplayableType){case 4:a.go("app.snipDetail",{id:v.id});break;case 1:a.go("app.articleDetail",{id:v.id});break;default:a.go("app.sponsoredArticleDetail",{id:v.id})}return e.clear(),void k.preventDefault()}}}),e.focusItem=function(l){e.focusIndex=l.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&&o(function(){n.addEventListener("click",g)})},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,o,m){var r=null;s.$watch("element[0].onclick",function(){o[0].onclick&&(r=o[0].onclick,o[0].onclick=null)});var c=$._data($(o)[0]).events;c&&c.click&&c.click.reverse(),o.on("click",function(f){if(!e.profile.isRegistered){f.stopImmediatePropagation();var d=function(){n(function(){e.profile.isRegistered&&$(o).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:m.authorizedClickSource}),!1}if(!e.profile.hasPartnerAccessAllowed){f.stopImmediatePropagation();var u=function(){n(function(){e.profile.hasPartnerAccessAllowed&&$(o).click()},900,!1)};return t.open({templateUrl:"/ClientApp/src/legacy-app/authentication/allowPartnerAccessDialog.html",controller:"AllowPartnerAccessDialog",size:"lg",resolve:{authenticationCallback:function(){return u}}}),!1}r&&r.call(o,f)}),c&&c.click&&c.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 o;e(function(){autosize(a),o&&o()}),$(a).parents(".modal").on("shown.bs.modal",function(m){var r=document.createEvent("Event");r.initEvent("autosize.update",!0,!1),a[0].dispatchEvent(r)}),/firefox/i.test(navigator.userAgent)&&(o=function(m){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",o),$(window).on("resize",o))}}}]),app.directive("birthYearValidation",function(){return{require:"ngModel",link:function(e,t,a,n){n.$parsers.unshift(function(s){if(null==s)return"";var o=s.replace(/[^0-9]/g,"");return o!=s&&(n.$setViewValue(o),n.$render()),o}),n.$parsers.push(function(s){if(!s)return null;var o=parseInt(s.toString().replace(/[^0-9]/g,""));return o!=s&&(n.$setViewValue(o),n.$render()),parseInt(o)}),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 o=moment().year()-moment(s.toString(),"YYYY").year();return n.$setValidity("age",!(o<0)),o>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.quadraticLogoEnabled=e.scope.network.settings.configurations.enableQuadraticNetworkLogo,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,o=n.find("canvas")[0],m=o.getContext("2d"),c={type:s.type||"Line",width:s.width||600,height:s.height||400};o.width=c.width,o.height=c.height,r=new Chart(m),a.$watch(function(){return n.attr("type")},function(d){d&&(c.type=d,r[c.type](a.chartObject.data,a.chartObject.options))}),a.$watch(function(){return a.chartObject},function(d){d&&r[c.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(o){s=e(o)(t),a.html(""),a.append(s)})}}}]),app.directive("compileHtml",["$compile",function(e){return{restrict:"A",scope:{compileHtml:"="},link:function(t,a){t.$watch("compileHtml",function(n){if(console.log("COMPILE HTML",n),n){var s=e(n)(t.$parent);angular.element(s).find("a").each(function(){var m=angular.element(this);m.attr("target")||m.attr("target","_blank")}),a.empty().append(s)}})}}}]),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(o){if(e.test(o))return s.$setValidity("email",!0),o;s.$setValidity("email",!1)})}}}),app.service("fileUploadService",["$http","$q",function(e,t){this.uploadFileToUrl=function(a,n){var s=t.defer(),o=new FormData;return o.append("file",a),e.post(n,o,{transformRequest:angular.identity,headers:{"Content-Type":void 0}}).then(function(m){s.resolve(m)}).error(function(){s.reject()}),s.promise}}]),app.factory("formatterService",["$location","scopeService","$rootScope",function(e,t,a){var n=a.scope.network.settings.languagePack.split("-")[0];return null!=a.scope.profile.activeUserLanguage?.vendorLanguageCode&&n!=a.scope.profile.activeUserLanguage?.vendorLanguageCode&&(n=a.scope.profile.activeUserLanguage?.vendorLanguageCode),{getShortDateFormatString:function(){return moment.localeData(n).longDateFormat("L")},getShortDateTimeFormatString:function(){return moment.localeData(n).longDateFormat("L")+" "+moment.localeData(n).longDateFormat("LT")},momentFromNowAsString:function(f){var d=new moment(f,"YYYY-MM-DD HH:mm:ss","en");return moment.locale(n),(f=d.locale(a.scope.profile.activeUserLanguage?.vendorLanguageCode?a.scope.profile.activeUserLanguage?.vendorLanguageCode:n)).fromNow()},momentFromNowTimeout:function(f){var d=moment.duration(moment().diff(f)).asMinutes(),u=1e4;return d>10?u=3e5:d>1&&(u=6e4),u},eventCalendarFormatAsString:f=>{var d=new moment(f,"YYYY-MM-DD HH:mm:ss","en");return moment.locale(n),(f=d.locale(a.scope.profile.activeUserLanguage?.vendorLanguageCode?a.scope.profile.activeUserLanguage?.vendorLanguageCode:n)).format("dd, ll")}}}]),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 o=getDocHeight(s);o<200&&(o=250,console.log("Unable to determine iframe height. Fallback to 250 px.")),n.style.height=o+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 o;try{o=n[t]}catch{o={}}for(var c,f,u,m=o,r={$default:function(i){for(var g in i)angular.isDefined(r[g])||(r[g]=i[g]);return r},$reset:function(i){for(var g in r)"$"===g[0]||delete r[g];return r.$default(i)}},d=0;d<m.length;d++)try{(u=m.key(d))===u&&(r[u]=angular.fromJson(m.getItem(u)))}catch{}return c=angular.copy(r),a.$watch(function(){f||(f=setTimeout(function(){if(f=null,!angular.equals(r,c)){for(var i in angular.forEach(r,function(g,l){angular.isDefined(g)&&"$"!==l[0]&&m.setItem(l,angular.toJson(g)),delete c[l]}),c)m.removeItem(i);c=angular.copy(r)}},100))}),"localStorage"===t&&n.addEventListener&&n.addEventListener("storage",function(i){if(i.newValue)try{r[i.key]=angular.fromJson(i.newValue)}catch{r[i.key]=i.newValue}else delete r[i.key];c=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,l=function(v){return v||(v=a.scope.currentScope.chapter),!!v.settings.chapterLogoCache};return{getEditorIconUrl:function(){return n+"/default/icon/editor.ico"},getPartnerLogoUrl:function(v){return v||(v=a.scope.currentScope.chapter),null==v||null==v.partner.settings.partnerLogoCache?n+"/default/partner/0.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/partner/"+v.partnerId+".png?cache="+v.partner.settings.partnerLogoCache},getNetworkIconSmallUrl:function(v){return v||(v=a.scope.currentScope.network),null==v||null==v.settings.networkIconSmallCache?n+"/default/icon/small.ico":n+"/"+v.slug+"/icon/small.ico"},getNetworkIconBigUrl:function(v){return v||(v=a.scope.currentScope.network),null==v||null==v.settings.networkIconBigCache?n+"/default/icon/big.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/"+v.slug+"/icon/big.png?cache="+v.settings.networkIconBigCache},getNetworkLogoUrl:function(v){return v||(v=a.scope.currentScope.network),null==v||null==v.settings.networkLogoCache?n+"/default/0.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/"+v.slug+".png?cache="+v.settings.networkLogoCache},getNetworkLogoDarkUrl:function(v){return v||(v=a.scope.currentScope.network),null==v?n+"/default/0-dark.png?cache="+t.getGlobalSettings().defaultLogoCache:null==v.settings.networkLogoDarkCache?null!=v.settings.networkLogoCache?n+"/"+v.slug+".png?cache="+v.settings.networkLogoCache:n+"/default/0-dark.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/"+v.slug+"-dark.png?cache="+v.settings.networkLogoDarkCache},getChapterLogoUrl:function(v){return v||(v=a.scope.currentScope.chapter),null==v||null==v.settings.chapterLogoCache?n+"/default/0.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/chapter/logo/"+v.slug+"?cache="+v.settings.chapterLogoCache},getChapterLogoDarkUrl:function(v){return v||(v=a.scope.currentScope.chapter),null==v?n+"/default/0-dark.png?cache="+t.getGlobalSettings().defaultLogoDarkCache:null==v.settings.chapterLogoDarkCache?null!=v.settings.chapterLogoCache?n+"/chapter/logo/"+v.slug+"?cache="+v.settings.chapterLogoCache:n+"/default/0-dark.png?cache="+t.getGlobalSettings().defaultLogoDarkCache:n+"/chapter/logo/"+v.slug+"-dark?cache="+v.settings.chapterLogoDarkCache},getChapterPictureUrl:function(v){return v||(v=a.scope.currentScope.chapter),null==v||null==v.settings.chapterPictureCache?n+"/default/chapter/0.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/chapter/picture/"+v.slug+"?cache="+v.settings.chapterPictureCache},getChapterEventPictureUrl:function(v){return v||(v=a.scope.currentScope.chapter),null==v||null==v.settings.configurations.chapterEventPictureCache?n+"/default/event/1.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/chapter/event/"+v.slug+"?cache="+v.settings.configurations.chapterEventPictureCache},hasChapterLogo:l,hasChapterLogoDark:function(v){return v||(v=a.scope.currentScope.chapter),!!v.settings.chapterLogoDarkCache||l(v)},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(c){return"p"===c.nodeName.toLowerCase()&&"<br>"===c.innerHTML},replacement:function(){return"<br>"}}),showdown.setOption("simpleLineBreaks",!0),showdown.setOption("strikethrough",!0);var o=new showdown.Converter({simpleLineBreaks:!0,strikethrough:!0});return{toMarkdown:function(c){return s.turndown(c||"")},toHtml:function(c){var f=o.makeHtml(c);return f&&(f=f.replace(new RegExp("\\r?\\n","g"),"")),f}}}]),app.directive("metaArticle",MetaArticleDirective),MetaArticleDirective.$inject=["metaService"],app.directive("metaEvent",MetaEventDirective),MetaEventDirective.$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(i,g){var l=i.replace(":","\\:");g||(g=""),$("head").find("meta[name='"+l+"']").length?$("meta[name='"+l+"']").attr("content")!==g&&$("meta[name='"+l+"']").attr("content",g):$("head").append('<meta name="'+i+'" content="'+g.replace('"',"$quot;")+'">')},o=function(i,g){var l=i.replace(":","\\:");g||(g=""),$("head").find("meta[property='"+l+"']").length?$("meta[property='"+l+"']").attr("content")!==g&&$("meta[property='"+l+"']").attr("content",g):$("head").append('<meta property="'+i+'" content="'+g.replace('"',"$quot;")+'">')},r=function(i){var g=i.replace(":","\\:");$("head").find("meta[name='"+g+"']").remove(),$("head").find("meta[property='"+g+"']").remove(),$("head").find("link[rel='canonical']").remove()},c=function(){s("author",scope.currentScope.network.name),s("date",(new Date).toISOString()),o("og:type","website"),o("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(i){i&&c()},push:function(i,g){c();var l=t.getNetworkUrl();o("og:url",l+e.path()),document.title=i,o("og:title",i),s("twitter:title",i),s("description",g),o("og:description",g),s("twitter:description",g)},setFavicon:function(i){var g=$("head").find('link[rel="shortcut icon"]');g.length&&g.attr("href",i?a.getEditorIconUrl():a.getNetworkIconSmallUrl())},generalPush:function(i){if(i instanceof MetaInformationBase){document.title=i.title;var g=t.getNetworkUrl();i.canonicalLink&&($("head").find("link[rel='canonical']").length?$("link[rel='canonical']").attr("href")!==i.canonicalLink&&$("link[rel='canonical']").attr("href",i.canonicalLink):$("head").append('<link rel="canonical" href="'+i.canonicalLink.replace('"',"$quot;")+'">')),o("og:type",i.type),o("og:title",i.title),o("og:url",g+i.path),o("og:description",i.description),o("og:image",i.imageUrl),s("twitter:title",i.title),s("description",i.description),s("twitter:description",i.description),s("author",i.getFullAuthorName()),s("date",i.getMetaDate()),s("twitter:site",scope.currentScope.chapter.settings.seoTwitterSite),s("twitter:image:src",i.imageUrl),i.removeAttributes&&i.removeAttributes.forEach(function(l){r(l)}),"article"===i.type?($("head").attr("prefix","og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#"),o("article:publisher",scope.currentScope.chapter.settings.seoFacebookPublisher),o("article:published_time",i.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","$rootScope",function(e,t,a){return{restrict:"A",scope:!1,link:function(n,s,o){var m,r;function c(){var f=a.scope.network.settings.languagePack.split("-")[0];if(null!=a.scope.profile.activeUserLanguage?.vendorLanguageCode&&f!=a.scope.profile.activeUserLanguage?.vendorLanguageCode&&(f=a.scope.profile.activeUserLanguage?.vendorLanguageCode),!r){var d=new moment(o.momentFromNow,"ddd MMM DD YYYY HH:mm:ss","en");moment.locale(f),r=d.locale(f||"de")}var u=r.fromNow();s[0].innerText=u,s[0].textContent=u;var i=moment.duration(moment().diff(r)).asMinutes(),g=1e4;i>10?g=3e5:i>1&&(g=6e4),m=t(function(){c()},g,!1)}t(function(){c()}),s.on("$destroy",function(){t.cancel(m)})}}}]),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 o=s.replace("\r","").replace("\n"," ");return o!=s&&(n.$setViewValue(o),n.$render()),o})}}}),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,o,m){var r=this;r.profile=e.profile;var f,d,c=t,u=c.find(".oha-text"),i=c.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,f=r.article,d=o):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,f=r.snip,d=s):r.assetReference&&(r.isAssetReference=!0,f=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&&(f.archived||f.deleted),r.isPreview=r.isArticle&&f.isPreview,r.size=r.size?r.size:"md"},r.getReferenceScore=function(){return f?r.isAssetReference||r.showLikes?f.likes:f.score<1?f.score:1:0},r.getScore=function(){if(r.isDisabled||!f||typeof f.likes>"u")return"...";if(!r.isAssetReference&&!r.showLikes){var l=f.score;return(l<1?100*l:100).toFixed(l<1?1:0).replace(/\./g,",")}return f.likes.toString()},r.iLike=function(){return f?f.iLike:null},r.oha=function(){if(!(r.isDisabled||e.profile.readOnlyMode||r.isPreview||r.isLoading)&&f)if(r.isTransitioned||(r.isTransitioned=!0),r.isLoading=!0,u.addClass("oha-loading").removeClass("oha-liked"),f.iLike=!f.iLike,r.isAssetReference)m.like(f.guid).then(function(k){r.animateOhaButton(k.likes)},function(){f.iLike=!f.iLike,r.animateOhaButton(f.score)});else{var l=f.score,b=f.likes;f.iLike&&a(function(){r.animateOhaPlanet(0)}),d.like(f.id).then(function(k){var v=k.score,y=k.likes;n.eventTrack("o-ha!",{category:"Interaction",label:r.source,value:f.iLike?1:0}),r.showLikes?((f.iLike&&b>y||!f.iLike&&b<y)&&(y=b),r.animateOhaButton(y)):((f.iLike&&l>v||!f.iLike&&l<v)&&(v=l),r.animateOhaButton(v<1?v:1))},function(){f.iLike=!f.iLike,r.animateOhaButton(r.showLikes?b:l)})}},r.animateOhaButton=function(l){if(f){var b=!r.isAssetReference&&f.iLike?750:0,k=!r.isAssetReference&&f.iLike?500:0;a(function(){r.showLikes?f.likes=l:f.score=l,b?(i.text(r.showLikes?l:(100*l).toFixed(l<1?1:0)),u.addClass("oha-liked"),i.counterUp({delay:25,time:k,formatter:function(v){return v.replace(/\./g,",")},callback:function(){r.isLoading=!1,a(function(){u.removeClass("oha-liked")},500)}})):(r.isAssetReference||r.showLikes?f.likes=l:f.score=l,r.isLoading=!1),u.removeClass("oha-loading")},b)}},r.getStrokeDashoffset=function(l){return 102.1-(102.1*l).toFixed(0)},r.getRotateDegrees=function(l){return 360*l},r.animateOhaPlanet=function(l){if(f){c.find(".oha-outer").css("stroke-dashoffset",r.getStrokeDashoffset(l));var k=c.find(".oha-rotate");k.css("transform","rotateZ("+r.getRotateDegrees(l)+"deg)"),k.attr("transform","rotate("+r.getRotateDegrees(l)+")"),a(function(){f.score=l},500)}}}]}),app.directive("onReturn",["$parse",function(e){return{scope:!1,link:function(t,a,n,s){var o;n.onReturn&&(o=e(n.onReturn)),a.keypress(function(m){return"13"!=m.which||!(m.ctrlKey||""!==n.onReturnRequireCtrl&&"true"!==n.onReturnRequireCtrl)||(o&&o(t),!1)}),s&&s.$parsers&&s.$parsers.unshift(function(m){if(null==m)return"";var r=m.replace("\r","").replace("\n"," ");return r!=m&&(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 m=$(window).height()-51;$(".app-mobile .pageWrapper").css("height",m+"px")}}}}]),app.factory("parserService",["$location","profileService","localStorageService","articleService","$rootScope","$timeout",function(e,t,a,n,s,o){return{postProcessHtml:function(r){if(r&&r.content){r.processedContent=r.content.replace(/(<p>)?!\[(.+?)\](<\/p>)?/gi,function(b,k,v,y){return"<asset asset-reference=\"resolveAsset('"+v+'\')" data-guid="'+v+'" article="article" snip="snip" sponsored-article="sponsoredArticle" static-article="staticArticle"></asset>'}),r.processedContent=r.processedContent.replace(/(<p><\/p>)+/gi,function(){return"<p></p>"});var c=document.createElement("div");c.innerHTML=r.processedContent;var f=0;$(c).children("blockquote").each(function(b,k){if(!($(k).children("blockquote").length>0)){var v=0;if($(k).nextAll().each(function(I,h){if("p"!==$(h).prop("tagName").toLowerCase())return!1;v+=$(h).text().length}),1.5*$(k).text().length<v){var y=++f%2>0;$(k).addClass("allow-float"),y?$(k).addClass("allow-float-right"):$(k).addClass("allow-float-left")}}});for(var d=0;d<r.assetReferences.length;d++)null!==r.assetReferences[d].assetImage&&2===r.assetReferences[d].assetImage.type&&$(c).find("asset[data-guid='"+r.assetReferences[d].guid+"']").attr("data-type","2");$(c).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" />')}),$(c).find(".asset-image-gallery asset").each(function(){$(this).attr("image-gallery-item-index",$(this).index())});var u=/^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i;if($(c).find(".call-to-action").each(function(){var b=$.trim($(this).text());null!==u.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 i=$(c).children("p");r.shipmentsPlaced=0;var g=0;(function(){var b=[],k=[],v=1,y=3;i.length<=3&&(v=0,y=2);for(var I=v;I<i.length;I++)0===$(i[I]).next().length||"div"!==$(i[I]).next().prop("tagName").toLowerCase()&&"asset"!==$(i[I]).next().prop("tagName").toLowerCase()&&!$(i[I]).text().trim().endsWith(":")&&!$(i[I]).next().hasClass("allow-float")||"h3"===$(i[I]).next().prop("tagName").toLowerCase()?b.push(I):"div"!==$(i[I]).next().prop("tagName").toLowerCase()&&!$(i[I]).text().trim().endsWith(":")&&!$(i[I]).next().hasClass("allow-float")&&k.push(I);if(0===b.length&&0===k.length)return 0;if(0===b.length)$(i[k[0]]).next().after("<delivery article='article' />"),r.shipmentsPlaced++,g=k[0];else if(1===b.length)if(k.length>0)if(b[0]+1>=i.length/2&&k[0]<b[0])$(i[k[0]]).next().after("<delivery article='article' />"),r.shipmentsPlaced++,g=k[0],b[0]-k[0]>=y&&($(i[b[0]]).after("<delivery article='article' />"),r.shipmentsPlaced++,g=b[0]);else{$(i[b[0]]).after("<delivery article='article' />"),r.shipmentsPlaced++,g=b[0];for(var h=b[0],w=0;w<k.length;w++)if(!(Math.abs(k[w]-h)<y)){$(i[k[w]]).next().after("<delivery article='article' />"),r.shipmentsPlaced++,g=k[w];break}}else $(i[b[0]]).after("<delivery article='article' />"),r.shipmentsPlaced++,g=b[0];else{g=v-y,b[0]+1>=i.length/2&&k[0]<b[0]&&k[0]>=v&&($(i[k[0]]).next().after("<delivery article='article' />"),r.shipmentsPlaced++,g=k[0]);for(var p=0;p<b.length;p++)if(!(b[p]-g<y)){if(s.scope.currentScope.chapter.settings.criteoPublisherId&&1===r.shipmentsPlaced&&!s.app?$(i[b[p]]).after("<external-ad-shipment propose-id='externalAdShipmentArticle' allow-intern-ad/>"):$(i[b[p]]).after("<delivery article='article' />"),r.shipmentsPlaced++,3===r.shipmentsPlaced)break;g=b[p]}}})(),r.shipmentsPlaced<2&&g<i.length-1&&(s.scope.currentScope.chapter.settings.criteoPublisherId&&!s.app?$(c).append("<external-ad-shipment propose-id='externalAdShipmentArticle' allow-intern-ad/>"):$(c).append("<delivery article='article' />"),r.shipmentsPlaced++)}4!==r.articleListDisplayableType&&a.enableArticleExitRates&&t.getProfile().then(function(b){b.isAdmin&&n.getExitRates(r.articleId).then(function(k){k.forEach(function(v,y){var I=0===y?1:k[y-1].word+1,h=k[y+1]?v.word:-1,w=$(c).find(":not(iframe)").contents().filter(function(){return 3===this.nodeType}).sort(function(x,M){return x===M?0:x.compareDocumentPosition?2&x.compareDocumentPosition(M)?1:-1:x.sourceIndex-M.sourceIndex}).toArray(),p=0;w.forEach(function(x){var M=$(x).text().split(/(\s)/),R=[],D=[];if(M.forEach(function(S){S.trim()?++p<I||h-p<0&&-1!==h?D.push(S):R.push(S):p<I||h-p<0&&-1!==h?D.push(S):R.push(S)}),R.length){var A='<span class="exit-rate" style="background-color: rgba(204, 0, 0, '+v.rate/100+');" uib-tooltip="Absprungrate: '+v.rate+'%">'+R.join("")+"</span>";D.length&&(A+=D.join("")),$(x).replaceWith(A),r.processedContent=c.innerHTML}})})})}),$(c).find("a:not([target])").attr("target","_blank"),r.processedContent=c.innerHTML,r.postProcessed=!0}}}}]),app.directive("photoswipe",["$timeout","$location","$rootScope","$window",function(e,t,a,n){return{link:function(s,o,m){var r;a.$watch(function(){return t.search().zoom},function(c){!c&&r&&r.close()}),$(o).parents("asset").wrap('<div class="asset-image-gallery-item"/>'),e(function(){var c=$(o).parents(".asset-image-gallery"),f=c.find("[photoSwipe]"),u=f.index(o);if(0===u&&c.addClass("asset-image-gallery-"+f.length),-1!==u&&($(o).on("click",function(g){g.preventDefault();var l=[];f.each(function(v,y){if(!0===$(y).data("gallery-item")){var I=$(y).parent().find(".imageInfo-title"),h=$(y).parent().find(".imageInfo-source"),w=[I.html(),h.html()].filter(Boolean).join(" - "),p=$(y).parentsUntil(".asset-image-gallery").find("asset-user-badge");p.length>0&&(w+="<br>"+$("<div />").append(p.clone()).html()),l.push({src:$(y).data("image"),w:$(y).data("width"),h:$(y).data("height"),title:w})}});var b={index:u%=l.length,history:!1,closeOnScroll:!1,preload:[2,2],isClickableElement:function(){return!0}},k=document.querySelectorAll(".pswp")[0];(r=new PhotoSwipe(k,PhotoSwipeUI_Default,l,b)).listen("gettingData",function(v,y){if(y.w<1||y.h<1){var I=new Image;I.onload=function(){y.w=this.width,y.h=this.height,r.updateSize(!0)},I.src=y.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===u&&f.length>4)){var i=f.length-4;o.find(".asset-image-gallery-overlay").text("+"+i).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(o){t._paq.push(["setCustomVariable",1,"guid",o.guid,"visit"]),t._paq.push(["setCustomVariable",2,"isRegistered",o.isRegistered,"visit"]),t._paq.push(["setCustomVariable",3,"isJournalist",o.isJournalist,"visit"]),t._paq.push(["setCustomVariable",4,"isMerkuristJournalist",o.isMerkuristJournalist,"visit"]),t._paq.push(["setCustomVariable",5,"isAdvertiser",o.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","translationService","$rootScope",function(e,t,a,n,s){var o=this;function m(){var g=$(t).jqPropertyGrid("get");o.saveFunction(o.userId,g).then(function(l){o.staffDirectoryData=l,d=o.staffDirectoryData.data,i=o.staffDirectoryData.metaData,$(t).jqPropertyGrid(d,{isReadonly:o.isReadonly,meta:i,customTypes:f,postCreateInitFuncs:[]})},function(l){alert("Staff dir NOT saved")})}function r(){alert("Staff dir loaded")}this.$onInit=function(){o.api={},o.api.save=m,o.api.load=r,o.api.getData=function(){return $(t).jqPropertyGrid("get")},0==o.isReadonly&&(a.$parent.$parent.$parent.gridApi=o.api),o.loadFunction(o.userId).then(function(g){o.staffDirectoryData=g;var l=s.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==l){var b=s.scope.profile,k=s.scope.network.settings.languagePack.split("-")[0];if(null!=b.activeUserLanguage?.vendorLanguageCode&&k!=b.activeUserLanguage?.vendorLanguageCode){d=o.staffDirectoryData.data,i=o.staffDirectoryData.metaData;for(var v=Object.entries(i).map(function(A){return{key:A[0],value:A[1]}}),y=[],I=[],h=[],w=[],p=[],x=0;x<v.length;x++){var M=v[x];y.push(M.key),I.push(M.value.description),h.push(M.value.name),w.push(M.value.metaDataSource.displayLabel),p.push(M.value.metaDataSource.editLabel)}var R=h.concat(I).concat(p).concat(w);n.translateByUserLanguageCode(R).then(A=>{for(var S=A.length/4,U=0;U<S;U++){var C=y[U];i[C].name=A[U].translation,i[C].description=A[U+S].translation,i[C].metaDataSource.displayLabel=A[U+2*S],i[C].metaDataSource.editLabel=A[U+3*S]}var F={isReadonly:o.isReadonly,meta:i,customTypes:f,postCreateInitFuncs:[],noGroups:o.noGroups};F.helpHtml=1==o.noHelp?" ":'<i class="fa fa-question-circle"></i>',$(t).jqPropertyGrid(d,F)})}else d=o.staffDirectoryData.data,(D={isReadonly:o.isReadonly,meta:i=o.staffDirectoryData.metaData,customTypes:f,postCreateInitFuncs:[],noGroups:o.noGroups}).helpHtml=1==o.noHelp?" ":'<i class="fa fa-question-circle"></i>',$(t).jqPropertyGrid(d,D)}else{var D;d=o.staffDirectoryData.data,(D={isReadonly:o.isReadonly,meta:i=o.staffDirectoryData.metaData,customTypes:f,postCreateInitFuncs:[],noGroups:o.noGroups}).helpHtml=1==o.noHelp?" ":'<i class="fa fa-question-circle"></i>',$(t).jqPropertyGrid(d,D)}},function(g){console.log(g)})},o.chapterGroups=scope.currentScope.chapter.chapterGroups,o.chapterGroups=scope.currentScope.chapter.chapterGroups,o.chapterGroupSelections={},o.filtered=!1;var f={icon:{html:function(g,l,b,k){return'<i class="fa fa-'+b+'"></i>'},valueFn:function(){return"Icon field value"}},textarea:{html:function(g,l,b,k){var v='<textarea class="form-control" id="'+g+'" rows=6 style="overflow-x: auto; width:100%">';return b instanceof Array&&(v+=b.join("\n")),v+"</textarea>"},makeValueFn:function(g,l,b,k){return function(){return $("#"+g).val().split("\n")}}},datePicker:{html:function(g,l,b,k){return'<input class="form-control" id="'+g+'">'+"</input>"},makePostCreateFn:function(g,l,b,k,v,y){return g?function(){var h=$("#"+g);h.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(b);w.setMinutes(w.getMinutes()-w.getTimezoneOffset()),b?h.datepicker("setDate",w):h.datepicker()}:null},makeValueFn:function(g,l,b,k){return function(){return $("#"+g).datepicker("getDate")?new Date($("#"+g).datepicker("getDate")):null}}},tagArea:{html:function(g,l,b,k){var v='<textarea id="'+g+'">';return b instanceof Array&&(v+=b.join(",")),v+"</textarea>"},makePostCreateFn:function(g,l,b,k,v,y){return g?($.extend({},l),function(){var w=$("#"+g);w.tagEditor({placeholder:"Enter tags ..."},b),v&&w.on("spin change keyup paste input",function(M,R){v(y,k,R?R.value:$(M.target).val())})}):null},makeValueFn:function(g,l,b,k){return function(){return $("#"+g).val().split(",")}},colSpan2:!0},tagAutocomplete:{html:function(g,l,b,k){var v='<textarea id="'+g+'">';return b instanceof Array&&(v+=b.join(",")),v+"</textarea>"},makePostCreateFn:function(g,l,b,k,v,y){if(!g)return null;var I={};if(l){for(var h=[],w=0;w<l.length;w++)h.push(l[w].text);I.autocomplete={delay:0,position:{collision:"flip"},source:h},I.forceLowercase=!1}return $.extend(I,l),function(){var x=$("#"+g);x.tagEditor(I,b),v&&x.on("spin change keyup paste input",function(R,D){v(y,k,D?D.value:$(R.target).val())})}},makeValueFn:function(g,l,b,k){return function(){return $("#"+g).val().split(",")}},colSpan2:!0},phonecall:{html:function(g,l,b,k){if(0==k.isReadonlyMode)return'<input type="text" class="form-control" id="'+g+'" value="'+b+'"</input>';if(b){var v='<a class="btn btn-green btn-block" role="button" id="'+g+'" href="tel:'+b+'">';return v+='<i class="fa fa-phone" aria-hidden="true"></i> ',(v+=b)+"</a>"}return""}},emailsend:{html:function(g,l,b,k){if(0==k.isReadonlyMode)return'<input type="text" class="form-control" id="'+g+'" value="'+b+'"</input>';if(b){var v='<a class="btn btn-green btn-block" role="button" id="'+g+'" href="mailto:'+b+'">';return v+='<i class="fa fa-envelope" aria-hidden="true"></i> ',(v+=b)+"</a>"}return""}}},d={accumulateTicks:!0,filter:!1,filterSize:200,buyColor:"#00ff00",sellColor:"#ff0000",someOption:"Maybe",noGroup:"I have no group",dontShowMe:"please",tagArea:null},i={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,u){return'<tr class="pgGroupRow '+(u?"pgCollapsible":"")+'"><td colspan="2" class="pgGroupCell">'+(u?"- ":"")+d+"</td></tr>"}function f(){var d=e(this);if(null!==d.spinner("value")||"string"!=typeof d.val()){var i=d.spinner("option","min"),g=d.spinner("option","max");"number"==typeof i&&this.value<i?this.value=i:"number"==typeof g&&this.value>g&&(this.value=g)}else d.val("")}e.fn.jqPropertyGrid=function(d,u){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){(u=u&&"object"==typeof u?u:{}).meta=u.meta&&"object"==typeof u.meta?u.meta:{},u.customTypes=u.customTypes||{},u.helpHtml=u.helpHtml||"[?]",u.sort=!(typeof u.sort>"u")&&u.sort,u.isCollapsible=!(typeof u.isCollapsible>"u"||!u.isCollapsible),u.callback="function"==typeof u.callback?u.callback:null,u.isReadonly=u.isReadonly||!1;var I,i=u.meta,g={OTHER_GROUP_NAME:""},l={},b=[],k={},v="pg"+n++,y=this,h=Object.keys(d);u.sort&&("boolean"==typeof u.sort?h=h.sort():"function"==typeof u.sort&&(h=h.sort(u.sort))),h.forEach(function(D){"function"==typeof d[D]||i[D]&&!1===i[D].browsable||(i[D].isReadonlyMode=u.isReadonly,(I=i[D]&&i[D].group||t)!==t&&!l[I]&&(l[I]=s(I,u.isCollapsible)),g[I]=g[I]||"",g[I]+=function o(d,u,i,g,l,b,k,v){if(!u)return"";var p,M,y=k.callback,I=(g=g||{}).name||u,h=g.type||"",w=d+u,x=k.customTypes;for(var R in x)if(h===R){M=x[R];break}return M?(p=M.html(w,u,i,g),b&&(b[u]=M.hasOwnProperty("makeValueFn")?M.makeValueFn(w,u,i,g):M.hasOwnProperty("valueFn")?M.valueFn:function(){return e("#"+w).val()}),l&&M.hasOwnProperty("makePostCreateFn")&&l.push(M.makePostCreateFn(w,g.options,i,u,y,v))):"boolean"===h||""===h&&"boolean"==typeof i?(p=(p='<label class="switch"><input class="form-control" type="checkbox" id="'+w+'" value="'+u+'"'+(i?" checked":"")+" /><span></span></label>")+'<label class="elipsis" for"'+w+" />",b&&(b[u]=function(){return e("#"+w).prop("checked")}),y&&e(v).on("change","#"+w,function(){y(this,u,e("#"+w).is(":checked"))})):"options"===h&&Array.isArray(g.options)?(p=function m(d,u,i){u=u||"",i=i||[];var b,g='<select class="form-control"';(d=d||"")&&(g+=' id="'+d+'"'),g+=">",g+='<option value="" selected disabled style="display:none;">. . .</option>';for(var k=0;k<i.length;k++)g+='<option value="'+(b="object"==typeof i[k]?i[k].value:i[k])+'"'+(u===b?" selected>":">"),g+=("object"==typeof i[k]?i[k].text:i[k])+"</option>";return g+="</select>"}(w,i,g.options),b&&(b[u]=function(){return e("#"+w).val()}),y&&e(v).on("change","#"+w,function(){y(this,u,e("#"+w).val())})):"function"==typeof e.fn.spinner&&("number"===h||""===h&&"number"==typeof i)?(p='<input type="text" id="'+w+'" value="'+i+'" class="form-control" style="width:50px" />',l&&l.push(function r(d,u,i,g,l){if(!d)return null;var b={};return e.extend(b,u),b.change=typeof b.change>"u"?f:b.change,function(){var v=e("#"+d);v.spinner(b),g&&v.on("spin change keyup paste input",function(I,h){g(l,i,h?h.value:e(I.target).val())})}}(w,g.options,u,y,v)),b&&(b[u]=function(){return e("#"+w).spinner("value")})):"color"===h&&"function"==typeof e.fn.spectrum?(p='<input type="text" class="form-control" id="'+w+'" />',l&&l.push(function c(d,u,i,g,l,b){if(!d)return null;var k={};return e.extend(k,i),"string"==typeof u&&(k.color=u),function(){var y=e("#"+d);y.spectrum(k),void 0!==l&&y.on("change",function(h,w){l(b,g,w.toHexString())})}}(w,i,g.options,u,y,v)),b&&(b[u]=function(){return e("#"+w).spectrum("get").toHexString()})):"label"===h?p="string"==typeof g.description&&g.description?'<label for="'+w+'" title="'+g.description+'">'+i+"</label>":'<label for="'+w+'">'+i+"</label>":(p='<input type="text" class="form-control" id="'+w+'" value="'+i+'"</input>',b&&(b[u]=function(){return e("#"+w).val()}),y&&e(v).on("propertychange change keyup paste input","#"+w,function(){y(this,u,e("#"+w).val())})),"string"==typeof g.description&&g.description&&(typeof g.showHelp>"u"||g.showHelp)&&(I+='<div class="pgTooltip">&nbsp '+k.helpHtml+' <span class="pgTooltiptext">'+g.description+"</span>"),g.colspan2?'<tr class="pgRow"><td colspan="2" class="pgCell">'+p+"</td></tr>":k.isReadonly?'<tr class="pgRow"><td class="pgLabelCell">'+I+'</td><td class="pgReadOnlyCell">'+p+"</td></tr>":'<tr class="pgRow"><td class="pgLabelCell">'+I+'</td><td class="pgValueCell">'+p+"</td></tr>"}(v,D,d[D],i[D],b,k,u,y))});var w='<table class="pgTable">';for(var p in l)u.noGroups||(w+=l[p]),w+=g[p];g[t]&&(w+=s(t,u.isCollapsible),w+=g[t]),this.html(w+="</table>"),this.data(a,function(){var R={};for(var D in k)"function"==typeof k[D]&&(R[D]=k[D]());return R}),u.isCollapsible?e(y).find(".pgGroupRow").click(function(){var D=e(this).html(),A=e(D).text(),S="+"===A[0],U=A.substring(1),F=D.replace(A,S?"-"+U:"+"+U);e(this).html(F),e(this).nextUntil("tr.pgGroupRow").slideToggle(1)}):e("tr.pgGroupRow").each(function(D){var A=e(this).html(),S=e(A).text();if(e(this).css("cursor","default"),"-"===S[0]&&" "===S[1]){var F=S.substring(2),V=A.replace(S,F);e(this).html(V)}});for(var M=0;M<b.length;++M)"function"==typeof b[M]&&(b[M](),b[M]=null);u.isReadonly&&(e(y).find("*").prop("disabled",!0),e(y).find("div.tag-editor-delete").hide(),e(y).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,o=function(r){var f=r.startsWith(s.currentScope.network.path+(""!=s.currentScope.chapter.regEx?"/"+s.currentScope.chapter.regEx:"")+"/");return""===s.currentScope.chapter.regEx&&f&&s.chapters.forEach(function(d){2===d.managementState&&d.id!==s.currentChapter.id&&r.startsWith(s.currentScope.network.path+"/"+d.regEx+"/")&&(f=!1)}),f};return{redirectNotificationUrl:function(r){var c=new URL("https://"+s.currentScope.network.domain),f=s.currentScope.network.path+(""!=s.currentScope.chapter.regEx?"/"+s.currentScope.chapter.regEx:"");if(o(r))a(function(){var i=r.substring(f.length);t.url(i).replace()});else if(r.startsWith(c.origin))e.location.href=r;else if(e.cordova&&e.cordova.InAppBrowser){let i=n.scope.currentScope.network.settings.configurations.inAppBrowserOnly;var u="location=no,toolbarposition=top,toolbartranslucent=no";"android"===cordova.platformId&&(u="location=yes,hideurlbar=yes,zoom=no,closebuttoncaption="+n.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")),i?cordova.InAppBrowser.open(r,"_blank",u):cordova.InAppBrowser.open(r,"_system",u)}else e.location.href=r},isSameChapterUrl:o}}]),app.factory("scopeService",["$http","$q","$window",function(e,t,a){var n=this,s={};n.settings=a.scope.scopeSettings;var o={};return this.getNetworkChapter=function(m,r){var c=t.defer();if(s[r+"_"+m])c.resolve(s[r+"_"+m]);else{if(o[r+"_"+m])return o[r+"_"+m].promise;o[r+"_"+m]=c,e.get(scope.apiEndpoint+"networks/"+m+"/"+r).then(function(f){s[r+"_"+m]=f.data,c.resolve(f.data),delete o[r+"_"+m]},function(){c.reject(),delete o[r+"_"+m]})}return c.promise},this.getGlobalSettings=function(){return n.settings.getGlobalSettings()},this.getChapter=function(m){return n.settings.getChapter(m)},this.resolveUrl=function(m){return n.settings.resolveUrl(m)},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],o=a.domain,m=document.location.pathname.indexOf(o);-1==m;)o=o.substring(o.indexOf("/")),m=document.location.pathname.indexOf(o),-1==o.indexOf("/")&&(m=0,o="");m+=o.length;var r=document.location.pathname.substring(m);-1!=r.indexOf("/",1)&&(r=r.substring(0,r.indexOf("/",1)));var c=a.chapters.filter(function(i){return function n(i,g){return"string"==typeof i&&"string"==typeof g?0===i.localeCompare(g,void 0,{sensitivity:"accent"}):i===g}(i.path,r)&&0!==i.managementState})[0];c||(c=a.chapters.filter(function(i){return"/"==i.path})[0]),c||(c={path:"/",closed:!1,slug:"-"});var f=a.domain.match("\\/(.*)"),d="",u="/";return f&&(d="/"+f[1],u+=f[1]),t.appRoute=s?"/"+a.domain+c.path:d+c.path,t.isNative=!s,t.networkPath=s?"/"+a.domain:u,t.network=a,c.path=c.path.endsWith("/")?t.appRoute.slice(0,-1):t.appRoute,t.chapter=c,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 o(){var r=a.$eval(s.timedUpdate);n[0].innerText=r,n[0].textContent=r}var m=e(function(){o()},s.milliseconds?s.milliseconds:3e4);t(function(){o()}),n.on("$destroy",function(){e.cancel(m)})}}}]),app.factory("companyNewsService",["$http","$q",function(e,t){return{getCompanyNews:function(){var s=t.defer();return e.get(scope.apiEndpoint+"companyNews").then(function(o){s.resolve(o.data)}),s.promise},getCompanyNewsDetail:function(s){var o=t.defer();return e.get(scope.apiEndpoint+"companyNews/"+s).then(function(m){o.resolve(m.data)}),o.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),MetaEventInfo.prototype=Object.create(MetaInformationBase.prototype),app.service("pageMetaInfoService",["$interpolate","metaService",function(e,t){var a=this;function n(d,u){this.title=d,this.description=u}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.accessibility"]=new n(scope.currentScope.network.getResourceOrKeyName("web_accessibility_title"),scope.currentScope.network.getResourceOrKeyName("web_accessibility_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 u=function(d){return d.replace("{{{networkName}}}",scope.currentScope.network.name)}(d);return u=function(d){return d.replace("{{{chapterName}}}",scope.currentScope.chapter.name)}(u),u};return{run:function(d){if(d){var u=a.statesInfo[d];u&&function(d,u){var i=r(d),g=r(u);t.push(i,g)}(u.title,u.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","formatterService",function(e,t,a){var n=this,s="";this.$onInit=function(){s=new Date(n.event.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"}),s=a.eventCalendarFormatAsString(n.event.start),n.formattedCalendarDate=e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:s}),n.congratulatable=n.event.isToday||new Date>new Date(n.event.start),n.hasCongratulated=!1,n.event.ownReactions.forEach(function(o){1===o.type&&o.occurance==n.event.start&&(n.hasCongratulated=!0)})},n.congratulate=function(){t.congratulateToBirthday(n.event.id,n.event.start).then(function(){n.hasCongratulated=!0})}}]}),app.controller("EventCalendarController",["$scope","$rootScope","articleService","snipService","sponsoredArticleService","profileService","eventCalendarService",function(e,t,a,n,s,o,m){var r=t.scope.currentScope.network.settings.languageCode,c=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==c){var f=t.scope.profile,d=t.scope.network.settings.languagePack.split("-")[0];r=d,null!=f.activeUserLanguage?.vendorLanguageCode&&d!=f.activeUserLanguage?.vendorLanguageCode&&(r=f.activeUserLanguage?.vendorLanguageCode)}a.getArticlesForEventCalendar().then(function(u){var i=[],g=[],l=[],b=[];$.each(u,function(k,v){if(null!==v.calendarDate){var y=new Date(v.calendarDate).getMonth(),I=new Date(v.calendarDate).getDate(),h=new Date(v.calendarDate).getFullYear(),w=moment(v.calendarDate).locale(r),p=w.format("L");if(v.isToday=p===moment(new Date).locale(r).format("L"),typeof i[y+""+h]>"u"){l[p]=[],l[p]={Day:w.format("dddd")+", der "+I+". "+w.format("MMMM"),Articles:[v],Snips:[],SponsoredArticles:[],Birthdays:[],Events:[],CalendarDate:new Date(v.calendarDate)},b[y+""+h]=[],b[y+""+h].push(l[p]);var x={Month:w.format("MMMM")+" "+h,Dates:b[y+""+h]};i[y+""+h]=x,g.push(x)}else typeof l[p]>"u"?(l[p]=[],l[p]={Day:w.format("dddd")+", der "+I+". "+w.format("MMMM"),Articles:[v],Snips:[],SponsoredArticles:[],Birthdays:[],Events:[],CalendarDate:new Date(v.calendarDate)},b[y+""+h].push(l[p]),b[y+""+h].sort(function(M,R){return M.CalendarDate.getTime()-R.CalendarDate.getTime()})):l[p].Articles.push(v)}}),n.getSnipsForEventCalendar().then(function(k){$.each(k,function(v,y){if(null!==y.calendarDate){var I=new Date(y.calendarDate).getMonth(),h=new Date(y.calendarDate).getDate(),w=new Date(y.calendarDate).getFullYear(),p=moment(y.calendarDate).locale(r),x=p.format("L");if(y.isToday=x===moment(new Date).locale(r).format("L"),typeof i[I+""+w]>"u"){l[x]=[],l[x]={Day:p.format("dddd")+", der "+h+". "+p.format("MMMM"),Snips:[y],Articles:[],SponsoredArticles:[],Birthdays:[],Events:[],CalendarDate:new Date(y.calendarDate)},b[I+""+w]=[],b[I+""+w].push(l[x]);var M={Month:p.format("MMMM")+" "+w,Dates:b[I+""+w]};i[I+""+w]=M,g.push(M)}else typeof l[x]>"u"?(l[x]=[],l[x]={Day:p.format("dddd")+", der "+h+". "+p.format("MMMM"),Snips:[y],Articles:[],SponsoredArticles:[],Birthdays:[],Events:[],CalendarDate:new Date(y.calendarDate)},b[I+""+w].push(l[x]),b[I+""+w].sort(function(R,D){return R.CalendarDate.getTime()-D.CalendarDate.getTime()})):l[x].Snips.push(y)}}),e.calendar=g.sort(function(v,y){return v.Dates[0].CalendarDate-y.Dates[0].CalendarDate})}),s.getSponsoredArticlesForEventCalendar().then(function(k){$.each(k,function(v,y){if(null!==y.calendarDate){var I=new Date(y.calendarDate).getMonth(),h=new Date(y.calendarDate).getDate(),w=new Date(y.calendarDate).getFullYear(),p=moment(y.calendarDate).locale(r),x=p.format("L");if(y.isToday=x===moment(new Date).locale(r).format("L"),typeof i[I+""+w]>"u"){l[x]=[],l[x]={Day:p.format("dddd")+", der "+h+". "+p.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[y],Birthdays:[],Events:[],CalendarDate:new Date(y.calendarDate)},b[I+""+w]=[],b[I+""+w].push(l[x]);var M={Month:p.format("MMMM")+" "+w,Dates:b[I+""+w]};i[I+""+w]=M,g.push(M)}else typeof l[x]>"u"?(l[x]=[],l[x]={Day:p.format("dddd")+", der "+h+". "+p.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[y],Birthdays:[],Events:[],CalendarDate:new Date(y.calendarDate)},b[I+""+w].push(l[x]),b[I+""+w].sort(function(R,D){return R.CalendarDate.getTime()-D.CalendarDate.getTime()})):l[x].SponsoredArticles.push(y)}}),e.calendar=g.sort(function(v,y){return v.Dates[0].CalendarDate-y.Dates[0].CalendarDate})}),m.getEventCalendarEventData().then(function(k){$.each(k,function(v,y){if(null!==y.start){var I=new Date(y.start).getMonth(),h=new Date(y.start).getDate(),w=new Date(y.start).getFullYear(),p=moment(y.start).locale(r),x=p.format("L");if(y.isToday=x===moment(new Date).locale(r).format("L"),typeof i[I+""+w]>"u"){l[x]=[],l[x]={Day:p.format("dddd")+", der "+h+". "+p.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[],Birthdays:1===y.type?[y]:[],Events:2===y.type?[y]:[],ExternalEvents:3===y.type?[y]:[],CalendarDate:new Date(y.start)},b[I+""+w]=[],b[I+""+w].push(l[x]);var M={Month:p.format("MMMM")+" "+w,Dates:b[I+""+w]};i[I+""+w]=M,g.push(M)}else if(typeof l[x]>"u")l[x]=[],l[x]={Day:p.format("dddd")+", der "+h+". "+p.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[],Birthdays:1===y.type?[y]:[],Events:2===y.type?[y]:[],ExternalEvents:3===y.type?[y]:[],CalendarDate:new Date(y.start)},b[I+""+w].push(l[x]),b[I+""+w].sort(function(R,D){return R.CalendarDate.getTime()-D.CalendarDate.getTime()});else switch(y.type){case 1:l[x].Birthdays.push(y);break;case 3:l[x].ExternalEvents.push(y);break;default:l[x].Events.push(y)}}}),e.calendar=g.sort(function(v,y){return v.Dates[0].CalendarDate-y.Dates[0].CalendarDate})})})}]),app.controller("EventCalendarDetailController",["$scope","$rootScope","$previousState","event","eventCalendarService","parserService","$location","$uibModal","translationService","profileService","assetService","logoService",function(e,t,a,n,s,o,m,r,c,f,d,u){e.event=n,e.defaultEventPicture=u.getChapterEventPictureUrl(),e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,e.loadMoreParticipantsPending=!0;var i=t.scope.currentScope.network.getResourceOrKeyName;function g(){var h=new Date(e.event.start),w=new Date(e.event.end),p=new Date(e.event.recurrenceRule.until);if(0===e.event.recurrenceRule.frequency)e.ocurranceString=e.event.isAllDay?h.toLocaleDateString()==w.toLocaleDateString()?i("web_eventDetail_dateAllDay_singleDay",{date:h.toLocaleDateString()}):i("web_eventDetail_dateAllDay",{start:h.toLocaleDateString(),end:w.toLocaleDateString()}):e.event.isOpenEnd?i("web_eventDetail_openEnd",{start:h.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),end:i("web_eventDetail_dateOpenEnd")}):i("web_eventDetail_date",{start:h.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),end:w.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})});else{var x=e.event.durationInSeconds,M="web_eventDetail_duration_seconds";switch(x>0&&x%60==0&&(M="web_eventDetail_duration_minutes",(x/=60)%60==0&&(M="web_eventDetail_duration_hours",(x/=60)%24==0&&(M="web_eventDetail_duration_days",(x/=24)%7==0&&(x/=7,M="web_eventDetail_duration_weeks")))),e.ocurranceString=!e.event.recurrenceRule.until||p.getUTCFullYear()<=1?i("web_eventDetail_recurringEvent",{start:h.toLocaleDateString(),startTime:h.toLocaleString([],{hour:"2-digit",minute:"2-digit"}),duration:i(M,{duration:x})}):i("web_eventDetail_recurringEvent_until",{start:h.toLocaleDateString(),startTime:h.toLocaleString([],{hour:"2-digit",minute:"2-digit"}),until:p.toLocaleDateString(),duration:i(M,{duration:x})}),e.event.recurrenceRule.frequency){case 4:e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+i("web_eventDetail_dailyIntervalOne"):" "+i("web_eventDetail_daily",{interval:e.event.recurrenceRule.interval});break;case 5:var R="";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(V,T){R+=l(V.dayOfWeek),T<e.event.recurrenceRule.byDay.length-2?R+=", ":T===e.event.recurrenceRule.byDay.length-2&&(R+=" "+i("web_common_and")+" ")}),e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+i("web_eventDetail_weeklyIntervalOne",{weekDays:R}):" "+i("web_eventDetail_weekly",{interval:e.event.recurrenceRule.interval,weekDays:R});break;case 6:if(e.event.recurrenceRule.byDay.length){var S=[{ocurrances:[],weekDay:i("web_common_sunday")},{ocurrances:[],weekDay:i("web_common_monday")},{ocurrances:[],weekDay:i("web_common_tuesday")},{ocurrances:[],weekDay:i("web_common_wednesday")},{ocurrances:[],weekDay:i("web_common_thursday")},{ocurrances:[],weekDay:i("web_common_friday")},{ocurrances:[],weekDay:i("web_common_saturday")}],U=[{occurance:i("web_eventDetail_recurrence_byWeekDay_first"),weekDays:[]},{occurance:i("web_eventDetail_recurrence_byWeekDay_second"),weekDays:[]},{occurance:i("web_eventDetail_recurrence_byWeekDay_third"),weekDays:[]},{occurance:i("web_eventDetail_recurrence_byWeekDay_fourth"),weekDays:[]},{occurance:i("web_eventDetail_recurrence_byWeekDay_last"),weekDays:[]},{occurance:i("web_eventDetail_recurrence_byWeekDay_secondToLast"),weekDays:[]},{occurance:i("web_eventDetail_recurrence_byWeekDay_thirdToLast"),weekDays:[]},{occurance:i("web_eventDetail_recurrence_byWeekDay_fourthToLast"),weekDays:[]}];e.event.recurrenceRule.byDay.forEach(function(V){S[V.dayOfWeek].ocurrances.push(b(V.offset));var T=V.offset;T<0&&(T=4-T),U[T-=1].weekDays.push(l(V.dayOfWeek))}),S.push(S[0]),S.splice(0,1),S=S.filter(function(V){return V.ocurrances.length>0}),U=U.filter(function(V){return V.weekDays.length>0}),weekDayString="",S.length<=U.length?S.forEach(function(V,T){V.ocurrances.forEach(function(P,N){weekDayString+=P,N<V.ocurrances.length-2?weekDayString+=", ":N===V.ocurrances.length-2&&(weekDayString+=" "+i("web_common_and")+" ")}),weekDayString+=" "+V.weekDay,T<S.length-2?weekDayString+=", ":T===S.length-2&&(weekDayString+=" "+i("web_common_and")+" ")}):U.forEach(function(V,T){weekDayString+=" "+V.occurance+" ",V.weekDays.forEach(function(P,N){weekDayString+=P,N<V.weekDays.length-2?weekDayString+=", ":N===V.weekDays.length-2&&(weekDayString+=" "+i("web_common_and")+" ")}),T<U.length-2?weekDayString+=", ":T===U.length-2&&(weekDayString+=" "+i("web_common_and")+" ")}),e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+i("web_eventDetail_monthlyIntervalOne_byWeekDay",{weekDays:weekDayString}):" "+i("web_eventDetail_monthly_byWeekDay",{interval:e.event.recurrenceRule.interval,weekDays:weekDayString})}else{var D=e.event.recurrenceRule.byMonthDay.join(", "),A=D.lastIndexOf(",");-1!==A&&(D=D.substring(0,A)+" "+i("web_common_and")+D.substring(A+1,D.length)),e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+i("web_eventDetail_monthlyIntervalOne_byMonthDay",{monthDays:D}):" "+i("web_eventDetail_monthly_byMonthDay",{interval:e.event.recurrenceRule.interval,monthDays:D})}break;case 7:var C="";switch(e.event.recurrenceRule.byMonth[0]){case 1:C=i("web_common_january");break;case 2:C=i("web_common_february");break;case 3:C=i("web_common_march");break;case 4:C=i("web_common_april");break;case 5:C=i("web_common_may");break;case 6:C=i("web_common_june");break;case 7:C=i("web_common_july");break;case 8:C=i("web_common_august");break;case 9:C=i("web_common_september");break;case 10:C=i("web_common_october");break;case 11:C=i("web_common_november");break;case 12:C=i("web_common_december")}if(e.event.recurrenceRule.byDay.length){var F=e.event.recurrenceRule.byDay[0];e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+i("web_eventDetail_yearlyIntervalOne_byWeekDay",{weekDay:b(F.offset)+" "+l(F.dayOfWeek),month:C}):" "+i("web_eventDetail_yearly_byWeekDay",{interval:e.event.recurrenceRule.interval,weekDay:b(F.offset)+" "+l(F.dayOfWeek),month:C})}else e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+i("web_eventDetail_yearlyIntervalOne_byMonthDay",{monthDay:e.event.recurrenceRule.byMonthDay[0],month:C}):" "+i("web_eventDetail_yearly_byMonthDay",{interval:e.event.recurrenceRule.interval,monthDay:e.event.recurrenceRule.byMonthDay[0],month:C})}}e.event.content=e.event.htmlDescription,o.postProcessHtml(e.event),e.event.participantsPublic&&s.getParticipants(n.id,0).then(function(V){e.participants=V,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")})}function l(h){switch(h){case 1:return i("web_common_monday");case 2:return i("web_common_tuesday");case 3:return i("web_common_wednesday");case 4:return i("web_common_thursday");case 5:return i("web_common_friday");case 6:return i("web_common_saturday");case 0:return i("web_common_sunday")}}function b(h){switch(h){case 1:return i("web_eventDetail_recurrence_byWeekDay_first");case 2:return i("web_eventDetail_recurrence_byWeekDay_second");case 3:return i("web_eventDetail_recurrence_byWeekDay_third");case 4:return i("web_eventDetail_recurrence_byWeekDay_fourth");case-1:return i("web_eventDetail_recurrence_byWeekDay_last");case-2:return i("web_eventDetail_recurrence_byWeekDay_secondToLast");case-3:return i("web_eventDetail_recurrence_byWeekDay_thirdToLast");case-4:return i("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(h,w){e.event=w,g(),y(),e.$broadcast("$$rebind::refresh")}),n&&g(),e.acceptJoin=function(){e.loadMoreParticipantsPending=!0,s.acceptJoinEvent(e.event.id).then(function(h){e.event.ownParticipationStatus=h.ownStatus,e.event.participantsAcceptedCount=h.acceptedCount,e.event.participantsDeclinedCount=h.declinedCount,e.event.participantsQueuedCount=h.queuedCount,e.notifyToast(h),n.participantsPublic?s.getParticipants(n.id,0).then(function(w){e.participants=w,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(h){e.event.ownParticipationStatus=h.ownStatus,e.event.participantsAcceptedCount=h.acceptedCount,e.event.participantsDeclinedCount=h.declinedCount,e.event.participantsQueuedCount=h.queuedCount,e.notifyToast(h),e.event.ownParticipationStatus="DECLINED",n.participantsPublic?s.getParticipants(n.id,0).then(function(w){e.participants=w,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(h){e.event.ownParticipationStatus=h.ownStatus,e.event.participantsAcceptedCount=h.acceptedCount,e.event.participantsDeclinedCount=h.declinedCount,e.event.participantsQueuedCount=h.queuedCount,e.notifyToast(h),n.participantsPublic?s.getParticipants(n.id,0).then(function(w){e.participants=w,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")}):e.$broadcast("$$rebind::refreshParticipants")},h=>{e.notifyToast({changeOutcome:"web_events_reason_server_error",changeSuccess:!1,error:h})})},e.notifyToast=function(h){h.changeSuccess?DevExpress.ui.notify({message:t.scope.currentScope.network.getResourceOrKeyName(h.changeOutcome),position:{my:"center center",at:"center center"},maxWidth:"540px"},"success",3e3):(DevExpress.ui.notify({message:t.scope.currentScope.network.getResourceOrKeyName(h.changeOutcome),position:{my:"center center",at:"center center"},maxWidth:"540px"},"error",3e3),console.log(h.error))},e.loadMoreParticipants=function(){e.loadMoreParticipantsPending=!0,s.getParticipants(n.id,e.participantPage+1).then(function(h){Array.prototype.push.apply(e.participants,h),e.participantPage+=1,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")})},(!document.referrer||!document.referrer.startsWith(scope.globalSettings.serverCdnUrl))&&!a.get()&&history&&window.allowRedirect){var k=t.scope.currentChapter.path+m.url();history.replaceState(null,"",scope.currentChapter.path),history.pushState(null,"",k)}var v,y=function(){e.event.assetReferences&&(v=e.event.assetReferences.reduce(function(h,w){return h[w.guid]=w,h},{}))};e.resolveAsset=function(h){return v[h]},$(window).scroll(function(h){$(h.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(h){h&&y()});var I=function(h){e.event.assetReferences.unshift(h)};e.availableTargetLanguages=null,c.getAvailableTargetLanguages().then(function(h){e.availableTargetLanguages=h}),e.selectedTargetLanguage=t.profile.favoriteLanguage,e.$on("apicodo.translate",function(h,w){e.translateEventDetail(w)}),e.isParticipationLocked=function(){const h=e.event;return!!h.lockParticipation||!!h.lockParticipationAuto&&new Date(h.lockParticipationAutoDate)<new Date},e.translateEventDetail=function(h){h&&(e.selectedTargetLanguage=h),e.currentLanguage=e.selectedTargetLanguage,null===e.selectedTargetLanguage?s.getEvent(e.event.id).then(function(w){e.event=w,e.event.assetReferences=w.assetReferences,g(),y(),e.$broadcast("$$rebind::refresh")}):s.translateEventDetail(e.event.id,e.selectedTargetLanguage).then(function(w){e.event=w,e.event.assetReferences=w.assetReferences,g(),y(),e.$broadcast("$$rebind::refresh"),f.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 I},createAssetAsync:function(){return function(h){return d.insertAssetTextToEvent(h,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 I},createAssetAsync:function(){return function(h){return d.insertAssetTextToEvent(h,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 I},createAssetAsync:function(){return function(h){return d.insertAssetTextToEvent(h,e.event.id)}}}})},e.assetCreateImageDialog=function(h,w,p){h&&0!==h.length?w.length||r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return h},resultCallback:function(){return I},createAssetAsync:function(){return function(x){return d.insertAssetImageToEvent(x,e.event.id)}}}}):w||p.$setPristine()},e.assetCreateVideoDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return I},createAssetAsync:function(){return function(h){return d.insertAssetTextToEvent(h,e.event.id)}}}})},e.assetCreateGifDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return I},createAssetAsync:function(){return function(h){return d.insertAssetTextToEvent(h,e.event.id)}}}})},e.assetSearchDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return I},eventId:function(){return e.event.id},assetReferences:function(){return e.event.assetReferences}}})},e.assetImageFocuspointDialog=function(h){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){var w=null;return e.event.assetReferences.forEach(function(p){p.assetImage?.guid===e.event.coverImage.guid&&(e.event.coverImage=(w=p).assetImage)}),w}}})},e.scrollTo=function(h){$("body,html").animate({scrollTop:$(h).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(h){null!==h.assetImage||null!==h.assetText&&(5===h.assetText.type||6===h.assetText.type||7===h.assetText.type||10===h.assetText.type||13===h.assetText.type)?e.assetsMedia.push(h):null!==h.assetText&&(8===h.assetText.type?e.assetsFacts.push(h):9===h.assetText.type?e.assetsQuestions.push(h):0===h.assetText.type&&e.assetsComments.push(h))}))})}]),app.component("eventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarDisplayable.html",bindings:{event:"<"},controller:["$rootScope","formatterService",function(e,t){var a=this;this.$onInit=function(){var n=new Date(a.event.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"}),s=new Date(a.event.end).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"});n=t.eventCalendarFormatAsString(a.event.start),s=t.eventCalendarFormatAsString(a.event.end),a.formattedCalendarDate=n!==s?e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_dateRange",{start:n,end:s}):e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:n})}}]}),app.component("eventCalendarExternalDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarExternalDisplayable.html",bindings:{event:"<"},controller:["$rootScope","formatterService",function(e,t){var a=this;this.$onInit=function(){var n=new Date(a.event.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"}),s=new Date(a.event.end).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"});n=t.eventCalendarFormatAsString(a.event.start),s=t.eventCalendarFormatAsString(a.event.end),a.formattedCalendarDate=n!==s?e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_dateRange",{start:n,end:s}):e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:n})}}]}),app.controller("EventCalendarEditController",["$scope","event","metaService","$timeout","$uibModal","$rootScope","proseMirrorEditorService","editorAssetsService","spellingService","eventCalendarService","logoService","editorCommentService",function(e,t,a,n,s,o,m,r,c,f,d,u){e.event=t,e.event.breakingEvent=!1,e.enableHighQualityImage=o.scope.network.settings.configurations.enableHighQualityImage,e.closedChapter=o.scope.currentChapter.closed;var i=o.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration;e.canPublish=!i||!0!==i.EnableApproval||o.profile.isNewsroomAdmin||6===i.MinApprovalRole&&o.profile.isHeadSales||5===i.MinApprovalRole&&o.profile.isSales||4===i.MinApprovalRole&&o.profile.isHeadJournalist||3===i.MinApprovalRole&&o.profile.isMerkuristJournalist||2===i.MinApprovalRole&&o.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.onChangeEventIsOpenEnd=function(){t.isOpenEnd&&t.end&&(t.end=new Date(t.start.valueOf()),t.end.setHours(23,59,59,999))},e.defaultEventPicture=d.getChapterEventPictureUrl(),e.togglePreview=function(){e.preview=!e.preview,e.$broadcast("eventUpdate",k())},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(R){e.event.recurrenceRule.weekDays[R.dayOfWeek]=!0}),e.event.recurrenceRule.byDay=[]):e.event.recurrenceRule.weekDays[g.getDay()]=!0,e.event.recurrenceRule.dayType=1,!e.event.recurrenceRule.byDay.length){var l=Math.floor(g.getDate()/7)+1;5==l&&(l=-1),e.event.recurrenceRule.byDay.push({dayOfWeek:g.getDay(),offset:l}),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(R){e.event.recurrenceRule.byDay.splice(R,1)},e.$on("$destroy",function(){a.setFavicon(),n.cancel(interpolateRefreshTimeout)}),e.changed=!1;var b=o.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");function k(){var R=JSON.parse(JSON.stringify(e.event));switch(R.jsonDescription=m.getDocument(),R.htmlDescription=m.getHtmlDocument(),R.durationInSeconds=R.durationValue,R.durationType){case 0:break;case 1:R.durationInSeconds*=60;break;case 2:R.durationInSeconds*=3600;break;case 3:R.durationInSeconds*=86400;break;case 4:R.durationInSeconds*=604800}if(0!==R.recurrenceRule.frequency&&(R.end=null,R.isAllDay=!1),R.recurrenceRule.frequency<=5&&(R.recurrenceRule.byDay=[],R.recurrenceRule.byMonthDay=[]),R.recurrenceRule.frequency<=6&&(R.recurrenceRule.byMonth=[]),5===R.recurrenceRule.frequency?R.recurrenceRule.weekDays.forEach(function(S,U){S&&R.recurrenceRule.byDay.push({dayOfWeek:U})}):1===R.recurrenceRule.dayType?R.recurrenceRule.byMonthDay=[]:R.recurrenceRule.byDay=[],7===R.recurrenceRule.frequency&&(R.recurrenceRule.byMonthDay.splice(1),R.recurrenceRule.byDay.splice(1)),R.isAllDay){var D=new Date(R.start);R.start=D.getFullYear()+"-"+(D.getMonth()+1)+"-"+ +D.getDate();var A=new Date(R.end);R.end=A.getFullYear()+"-"+(A.getMonth()+1)+"-"+ +A.getDate()}return R.isOpenEnd&&(R.isAllDay=!1),R.recurrenceRule&&!R.recurrenceRule.hasUntil&&(R.recurrenceRule.until=null),R.allowJoin||(R.showParticipants=!1,R.maxParticipants=null),R.maxParticipants<1&&(R.maxParticipants=null),R.lockParticipation&&(R.lockParticipationAuto=!1,R.lockParticipationAutoDate=null),R}window.onbeforeunload=function(){if(e.changed)return b},preventNavigation=!1,o.$on("$stateChangeStart",function(R,D){if(preventNavigation)R.preventDefault();else if(e.changed&&!confirm(b)){preventNavigation=!0,R.preventDefault();var A=!1;n(function(){preventNavigation=!1},1e3)}else e.changed=!1,A&&(closeConnection(),A=!1)}),e.$watch("event.lockParticipation",function(R){}),e.$watch("event.start",function(R){if(e.endOptions.minDate=R,e.event.end<R&&((D=new Date(R.valueOf())).setHours(e.event.end.getHours()),D.setMinutes(e.event.end.getMinutes()),D<R&&D.setDate(D.getDate()+1),e.event.end=D),e.event.recurrenceRule.until<R){var D=new Date(R.valueOf());e.event.recurrenceRule.until=D}}),e.save=function(){f.updateEvent(e.event.id,k()).then(function(R){e.editForm.$dirty=!1,e.event.unpublishedRevisionGuid=R})},e.publish=function(){f.publishEvent(e.event.unpublishedRevisionGuid,e.event.breakingEvent).then(function(){e.event.unpublishedRevisionGuid=null})},e.requestPublish=function(){f.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(R){e.event.coverImage=R.assetImage,e.editForm.$dirty=!0}},event:function(){return e.event}}})},$(".articleEdit-wrapper").scroll(function(){!function x(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),e.numberOfWords=c.countWords(e.event.htmlDescription);var M=function(R){n(function(){e.event.jsonDescription!==R&&(e.event.jsonDescription=R,e.numberOfWords=c.countWords(m.getHtmlDocument()),e.editForm.$dirty=!0)})};m.init({docID:"event_"+t.id,assetDlgFactory:function(R,D){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(A){if(D&&A.length>0){m.setFocus();var S=[];$.each(A,function(U,C){var F=null;C.assetImage&&(F=C.assetImage.type),C.assetText&&(F=C.assetText.type),C.assetArticle&&(F=C.assetArticle.type),C.assetFile&&(F=C.assetFile.type),S.push({guid:C.guid,type:F})}),D(S)}}},event:function(){return e.event}}})},initialDocument:t.jsonDescription,initialAssetReferences:t.assetReferences,assetResolver:function(R){return r.getAsset(R,e.event.assetReferences)},commentCreationDlgFactory:function(R,D){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return D},messageHolder:function(){return new MessageHolder(e.event)},sourceService:function(){return u}}})},commentMgmtDlgFactory:function(R,D,A){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return A},onAddedCallback:function(){return D},messageHolder:function(){return new MessageHolder(e.event)},chainComments:function(){return R},sourceService:function(){return u}}})},createLinkFactory:function(R){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return R}}})},callToActionDlgFactory:function(R,D){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return D}}})},onNewStateFactory:M,onLoadTransactionCallback:M,languageCode:o.scope.currentScope.network.settings.languageCode}),o.$on("$stateChangeStart",function(R,D){m.closeConnection()})}]),app.factory("eventCalendarService",["$rootScope","$http","$q","authService",function(e,t,a,n){return{getEventCalendarEventData:function(){var I=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/eventList").then(function(h){I.resolve(h.data)},function(){I.reject()}),I.promise},createEvent:function(){var I=a.defer();return t.post(scope.apiEndpoint+"eventcalendar").then(function(h){I.resolve(h.data)},function(){I.reject()}),I.promise},updateEvent:function(I,h){var w=a.defer();return t.put(scope.apiEndpoint+"eventcalendar/"+I,h).then(function(p){w.resolve(p.data)},function(){w.reject()}),w.promise},deleteEvent:function(I){var h=a.defer();return t.delete(scope.apiEndpoint+"eventcalendar/"+I).then(function(w){h.resolve(w.data)},function(){h.reject()}),h.promise},publishEvent:function(I,h){var w=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+I+"/publish?breaking="+(h?"true":"false")).then(function(x){w.resolve(x.data)},function(){w.reject()}),w.promise},requestEventPublish:function(I){var h=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+I+"/requestPublish").then(function(w){h.resolve(w.data)},function(){h.reject()}),h.promise},getEvent:function(I){var h=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/"+I+"?forEdit=false").then(function(w){h.resolve(w.data)},function(){h.reject()}),h.promise},getEventForEdit:function(I){var h=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/"+I+"?forEdit=true").then(function(w){h.resolve(w.data)},function(){h.reject()}),h.promise},getEventsForAuthorDashboard:function(){var I=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/authorDasboardList").then(function(h){I.resolve(h.data)},function(){I.reject()}),I.promise},getParticipants:function(I,h,w){var p=a.defer(),x=scope.apiEndpoint+"eventcalendar/"+I+"/participants?page="+h;return w&&w>0&&(x+="&elementsPerPage="+w),t.get(x).then(function(M){p.resolve(M.data)},function(){p.reject()}),p.promise},acceptJoinEvent:function(I){var h=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+I+"/join/accept").then(function(w){h.resolve(w.data)},function(){h.reject()}),h.promise},declineJoinEvent:function(I){var h=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+I+"/join/decline").then(function(w){h.resolve(w.data)},function(){h.reject()}),h.promise},translateEventDetail:function(I,h){var w=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/"+I+"/translate/"+h).then(function(p){w.resolve(p.data)},function(){w.reject()}),w.promise},congratulateToBirthday:function(I,h){var w=a.defer(),p=JSON.stringify(h);return p=p.substring(1,p.length-1),t.post(scope.apiEndpoint+"eventcalendar/"+I+"/congratulateForBirthday?occurance="+p).then(function(x){w.resolve(x.data)},function(){w.reject()}),w.promise},queueJoinEvent:function(I){var h=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+I+"/join/queue").then(function(w){h.resolve(w.data)},function(){h.reject()}),h.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],o=angular.element('<div id="articleAdvertisement"></div>')[0],m=t.$ctrl.isMobile;s.appendChild(o);var r=function(){return SDG.Publisher.setZone("localnews"),m?(SDG.Publisher.registerSlot("topmobile2",o).load(),e.isDebugging&&console.log("loading articleAdvertisement")):(SDG.Publisher.registerSlot("rectangle",o).load(),e.isDebugging&&console.log("loading articleAdvertisement")),"Loaded SDG"};"article"==e.svc.siteArea&&r(),t.$on("stroer:updated",function(f,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],o=angular.element('<div id="secondHomeAdvertisement" style="text-align: center"></div>')[0],m=t.$ctrl.isMobile;s.appendChild(o);var r=function(){return m?SDG.Publisher.registerSlot("topmobile2",o).load():SDG.Publisher.registerSlot("rectangle",o).load(),e.isDebugging&&console.log("loading secondHomeAdvertisement"),"SDG loaded"},c=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&&c(),t.$on("stroer:updated",function(f,d){e.isDebugging&&console.log("Recived update from service"),"homepage"==d.siteArea&&c()})}}}]),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 o=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"))},m=function(){try{exponentialBackoff(o,5,1e3,function(c){n.isDebugging&&console.log("Article Ad Article Component binding is ",c)})}catch(c){n.isDebugging&&console.error("Failure: "+c)}};"snips"==n.svc.siteArea&&(m(),n.isDebugging&&console.log("Registering snips")),t.$on("stroer:updated",function(r,c){n.isDebugging&&console.log("Recived update from service"),"snips"==c.siteArea?m():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 o=this;t.profile=n.profile,t.chapter=e.scope.currentScope.chapter,o.isExternalAdEmpty=!1,o.isMobile=e.mobile,s(function(){o.adSlot=o.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 o=this;e.$on("$routeChangeSuccess",function(){console.log("route changed")}),t.profile=s.profile,t.chapter=e.scope.currentScope.chapter,o.isMobile=e.mobile,this.enable=function(){return n.skipSnip(parseInt(o.displayableGroup),parseInt(o.adPosition))},this.isSecondAd=function(){return n.useSecondPosition(parseInt(o.displayableGroup),parseInt(o.adPosition))};var m=this.isSecondAd();o.isExternalAdEmpty=!1,this.$onInit=function(){if(n.skipSnip(parseInt(o.displayableGroup),parseInt(o.adPosition))){a.isDebugging&&console.log(a);var c=function(){return o.isMobile?(o.adSlot="topmobile",m&&(SDG.Publisher.registerSlot("topmobile","startPageRectangle").load(),a.isDebugging&&console.log("loading startPageRectangle"))):(m&&(SDG.Publisher.registerSlot("rectangle2","startPageRectangle").load(),a.isDebugging&&console.log("loading startPageRectangle")),o.adSlot="rectangle"),"SDG pos snips loaded"},f=function(){try{exponentialBackoff(c,5,1e3,function(u){a.isDebugging&&console.log("External Ad Snip Component binding is ",u)})}catch(u){a.isDebugging&&console.error("Failure: "+u)}};"homepage"==a.svc.siteArea&&f(),t.$on("stroer:updated",function(d,u){a.isDebugging&&console.log("Recived update from service"),"homepage"==u.siteArea&&f()})}}}]}),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(u){switch(u){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 u=function(){var g=n.path().split("/");String.prototype.includes||(String.prototype.includes=function(k,v){return"number"!=typeof v&&(v=0),!(v+k.length>this.length)&&-1!==this.indexOf(k,v)}),s.isLocal=n.host().includes("localhost"),s.isDebugging&&console.log(g);var l=g.length,b="article";return s.isLocal?("snips"==g[3]&&(b="snips",l>4&&(b="a_snip")),3==l&&(b="homepage"),"snips"!=g[3]&&l>4&&(b="administration")):("snips"==g[2]&&(b="snips",l>3&&(b="a_snip")),2==l&&(b="homepage"),"snips"!=g[2]&&l>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=u();var c=function(){try{return s.svc.siteArea=u(),s.updatePublisherZone(s.svc.siteArea),SDG.Publisher.finalizeSlots(),SDG.Publisher.loadAllSlots(!1),s.svc.initialized=!0,!0}catch{return!1}};s.fallbackInit=c,s.svc.isActive&&function(){try{exponentialBackoff(c,5,2e3,function(l){s.isDebugging&&console.log("Stroer JS from CDN binding is ",l)})}catch(l){s.isDebugging&&console.error("Failure binding Stroer CDN JS: "+l)}}(),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=u(),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,c){return r?.user?.guid?.toLowerCase()===c?.toLowerCase()},s=e.filter(function(r){return a(r,t)&&!function(r){return null!==r.deleted}(r)}),o=e.filter(function(r){return!r||!a(r,t)&&r?.published});return s.concat(o)}}),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"),o=document.createElement("a");return 0!=n.indexOf("http://")&&0!=n.indexOf("https://")&&(n="http://"+n),o.href=n,o.target="_blank",o.innerHTML=n.replace(/.*?:\/\/(www\.)?/g,""),s.appendChild(o),s.innerHTML})||""}(t)}}),app.filter("readableMilliseconds",function(){return function(e){var t,a,s,o,m,r,c,f,d,u,i,g,l,b,k,v;switch(b=parseInt(e)<0,k=parseInt(e)/1e3,k=Math.abs(k),o=7*(t=24*(a=3600)),s=(m=365*t)/12,v={years:null,months:null,weeks:null,days:null,hours:null,minutes:null,seconds:null},r=function(){return("        "+(b?"-":"")+"        "+(v.years?" "+v.years+"yr":"")+"        "+(v.months?" "+v.months+"mth":"")+"        "+(v.weeks?" "+v.weeks+"w":"")+"        "+(v.days?" "+v.days+"d":"")+"        "+(v.hours?" "+v.hours+"h":"")+"        "+(v.minutes?" "+v.minutes+"m":"")+"        "+(v.seconds?" "+v.seconds+"s":"")+"        ").trim()},i=function(y,I){return null==I&&(I=0),v.seconds=1===I?y.toFixed(1):Math.floor(y),r()},d=function(y){return v.minutes=Math.floor(y/60),i(y-60*v.minutes)},f=function(y){return v.hours=Math.floor(y/a),d(y-v.hours*a)},c=function(y){return v.days=Math.floor(y/t),f(y-v.days*t)},g=function(y){return v.weeks=Math.floor(y/o),c(y-v.weeks*o)},u=function(y){return v.months=Math.floor(y/s),g(y-v.months*s)},l=function(y){return v.years=Math.floor(y/m),u(y-v.years*m)},!1){case!(k<60):return i(k,1);case!(k<a):return d(k);case!(k<t):return f(k);case!(k<o):return c(k);case!(k<s):return g(k);case!(k<m):return u(k);default:return l(k)}}}),app.directive("translateText",["$compile","$rootScope","translationService","$timeout","$sce",function(e,t,a,n,s){return{restrict:"A",scope:{translateText:"="},link:function(o,m){o.$watch("translateText",function(r){if(r){var c=[r];n(function(){a.translateByUserLanguageCode(c).then(f=>{var i=e("<div>"+f[0].translation+"</div>")(o.$parent);m.empty(),angular.element(m).append(i.contents())}).catch(f=>{var i=e("<div>"+r+"</div>")(o.$parent);m.empty(),angular.element(m).append(i.contents())})},0)}else m.empty()},!0)}}}]),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(o,m){s.on(o,function(r){e.$apply(function(){m&&m(r)})})},invoke:function(o,m,r){s.invoke(o,m).done(function(c){e.$apply(function(){r&&r(c)})})},start:function(o){n.start().done(function(){o&&o()}).catch(function(m){console.log(m.toString())})},stop:function(o){n.stop(),o&&o()}}}}]),app.controller("IkUpLandingPageController",["$scope","$rootScope","ikUpLandingPageService","$location","$timeout","$window",function(e,t,a,n,s,o){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"),(o.navigator.language||o.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 c=n.absUrl();if(r)window.location.href=c+"?id="+r.landingSwitchRedirectId;else{var f=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches");switch((o.navigator.language||o.navigator.userLanguage).substring(0,2).toLowerCase()){case"en":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_en")&&(f=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_en"));break;case"fr":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_fr")&&(f=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_fr"))}e.input.noMatches=f,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(o){s.resolve(o.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(o){e.aprofile=o;for(var m=[],r=0;r<scope.network.chapters.length;r++)(o.closedChapterSlugs.includes(scope.network.chapters[r].slug)||!scope.network.chapters[r].closed)&&m.push(scope.network.chapters[r]);e.chapterList=m}):e.chapterList=scope.network.chapters}]),app.controller("IndexController",["$scope","$rootScope","$location","authService","$uibModal","$window","profileService","$timeout",function(e,t,a,n,s,o,m,r){var c=function(){"unrecognized"!==ResponsiveBootstrapToolkit.current()?t.mobile=ResponsiveBootstrapToolkit.is("<=sm"):r(c)};c(),$(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=m.profile,e.authentication=n,m.getProfile().then(function(){r(function(){e.loaded=!0})}),e.openSnip=function(){var f=s.open({templateUrl:"/ClientApp/src/legacy-app/article/articleCreate.html",controller:"ArticleCreateController",size:"lg",resolve:{}});f.result.then(function(d){},function(){}),f.opened.then(function(){})},e.isActive=function(f){return f===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,o,m){t.success=!1,t.networkLogoUrl=s.getNetworkLogoUrl(),t.logoService=s,o.run("home"),t.switchChapter=function(r,c){c.preventDefault(),e.switchChapter(r)},t.submitForm=function(r){r&&a.insertProposedCity(t.proposedCity).then(function(c){t.success=!0},function(){}).then(function(){})},t.updatePageMetaInfo=function(r){o.run(r)}}]),app.controller("MarketResearchElasticReportController",["$scope","$rootScope","marketResearchService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,o,m,r){AmCharts.isReady=!0;var u,i,g,c=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",f=[{color:c},{color:"#cccccc"},{color:"#b53967"},{color:"#00a9fd"},{color:"#9d4f9f"},{color:"#8e6fff"},{color:"#00ffeb"},{color:"#63223a"},{color:"#00496d"},{color:"#d4aad5"},{color:"#160066"},{color:"#e5cce6"}],d=[],l=[];e.report=null,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null,e.totalClickCount=0;var b=function(I){var h=0,w=0,p=0;l.forEach(function(x,M){l[M].value=0}),$.each(I,function(x,M){h+=M.impressionTime,w+=M.impressionCount,$.each(M.answers,function(R,D){$.each(l,function(A,S){if(S.id===D.id)return S.value+=D.clicks,void(p+=D.clicks)})})}),e.$apply(function(){e.totalImpressionTime=h,e.totalImpressionCount=w,e.totalClickCount=p}),g.validateData(),u.validateData(),i.validateData()},k=function(){var I=moment(u.startDate).startOf("day").toDate(),h=moment(u.endDate).startOf("day").toDate(),w=e.report.filter(function(p){return p.day>=I&&p.day<=h});b(w),i.zoom(I,moment(h).add(1,"d").toDate()),e.$apply(function(){e.startDay=I,e.endDay=h})};e.filterChapter=function(I){I.filtered=!I.filtered,function(){var I=e.chapters.filter(function(h){return!h.filtered}).map(function(h){return h.id});e.filterDisabled=!0,a.getReport({marketResearchId:e.marketResearch.id,marketResearchQuestionId:e.marketResearch.questionId,chapterIds:I}).then(function(h){h.forEach(function(w){w.day=moment(w.day.replace("Z","")).toDate()}),e.report=h,m(function(){(function(I){d.length=0,$.each(I,function(h,w){d.push(w)}),u.validateData(),i.validateData()})(h),k(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(I){return e.filterDisabled||1===e.chapters.filter(function(h){return!h.filtered}).length&&!I.filtered},a.getMarketResearch(s.id).then(function(I){e.marketResearch=I,I.questions[0].answers.forEach(function(h,w){l.push({title:h.text,value:0,id:h.intId,color:l.length<=f.length?f[l.length].color:"#000000"})}),a.getReport({marketResearchId:s.id,marketResearchQuestionId:I.questionId}).then(function(h){h.forEach(function(p){p.day=moment(p.day.replace("Z","")).toDate()}),e.report=h,e.startDay=h[0].day,e.endDay=h[h.length-1].day;var w=[];$.each(I.chapterSlugs,function(p,x){w.push(n.getChapter(x))}),w=w.filter(function(p){return 2===p.managementState}),e.chapters=w,$.each(h,function(p,x){d.push(x)}),m(function(){(u=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(){k()}),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:"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:l,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(h)})},function(){e.error=!0})})}]),app.controller("MarketResearchReportController",["$scope","$rootScope","marketResearchService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,o,m,r){AmCharts.isReady=!0;var c=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(u){u.forEach(function(i){i.chapter=n.getChapter(i.chapterSlug),i.reports.forEach(function(g){g.calendar.forEach(function(l){l.start=moment(l.start.replace("Z","")).toDate(),l.end=moment(l.end.replace("Z","")).toDate()})})}),d.report=u,m(function(){var i,g,l,b=[],k=new Set;$.each(u,function(M,R){R.active=!0,k.add(R.chapter.name)}),u.uniqueChapters=[],k.forEach(function(M){u.uniqueChapters.push(M)});var v=[],y=function(){v.length=0,$.each(u[0].reports[0].calendar,function(M,R){v.push({start:R.start,end:R.end,impressions:0,viewableImpressions:0,clicks:0,impressionTime:0})}),$.each(u,function(M,R){R.active&&(u[M-1]&&2===u[M-1].chapter.managementState&&2===R.chapter.managementState&&u[M-1].chapter.name!==R.chapter.name&&(u.multiChapterShipment=!0),$.each(R.reports,function(D,A){var S=A.marketResearch.id;$.each(A.calendar,function(U,C){C.id=S,v[U].impressions+=C.impressions,v[U].viewableImpressions+=C.viewableImpressions,v[U].impressionTime+=C.impressionTime,null!==C.marketResearchAnswerId&&(v[U].clicks+=C.impressions)})}))}),g.validateData(),i.validateData()},w=u.summary={};i=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}}),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:c,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"impressions",toField:"impressions"},{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_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}}),l=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 M,x=function(){var M=moment(i.startDate).startOf("day").toDate(),R=moment(i.endDate).startOf("day").add(-1,"d").toDate();(function(M,R){w.viewableImpressions=0,w.impressions=0,w.clicks=0,w.impressionTime=0,w.start=M,w.end=R,$.each(v,function(D,A){var S=new Date(A.start);S<M||S>R||(w.viewableImpressions+=A.viewableImpressions,w.impressions+=A.impressions,w.clicks+=A.clicks,w.impressionTime+=A.impressionTime)}),l.validateData(),g.validateData(),e.$apply()})(M,R),function(M,R){b.forEach(function(D,A){b[A].value=0}),$.each(u,function(D,A){A.active&&$.each(A.reports,function(S,U){$.each(U.calendar,function(C,F){var V=new Date(F.start);V<M||V>R||F.impressions>0&&null!==F.marketResearchAnswerId&&F.start>=M&&F.end<=R&&b.forEach(function(T,P){b[P].answerId!==F.marketResearchAnswerId||(b[P].value+=F.impressions)})})})}),l.validateData(),e.$apply()}(M,R),g.zoom(M,moment(R).add(1,"d").toDate())};i.addListener("zoomed",function(M){x()}),e.toggleReport=function(M){$.each(u,function(R,D){D.chapter.name===M&&(D.active=!D.active)}),m(function(){y(),x()},50)},y(),(M=d.questions[0].answers).sort(function(R,D){return(R.id>D.id)-(R.id<D.id)}),M.forEach(function(R,D){b.push({title:R.text,value:0,answerId:R.id,color:b.length<=f.length?f[b.length].color:"#000000"})}),x()},function(){e.error=!0})})},function(){r.path("/")});var f=[{color:c},{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,o){return{getMarketResearch:function(d){var u=t.defer();return e.get(scope.apiEndpoint+"marketresearch/"+d).then(function(i){u.resolve(i.data)},function(){u.reject()}),u.promise},getReportMarketResearchCalendar:function(d){var u=t.defer();return e.get(scope.apiEndpoint+"marketresearch/"+d+"/ReportMarketResearchCalendar").then(function(i){u.resolve(i.data)},function(){u.reject()}),u.promise},getReportMarketResearchAnswers:function(d){var u=t.defer();return e.get(scope.apiEndpoint+"marketresearch/"+d+"/ReportMarketResearchAnswers").then(function(i){u.resolve(i.data)},function(){u.reject()}),u.promise},getReport:function(d){var u=t.defer();return e.post(scope.apiEndpoint+"marketResearch/report",d).then(function(i){u.resolve(i.data)},function(){u.reject()}),u.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,o,m,r){var c=this;c.uploading=!1,c.isInitialized=!1,c.apicodoBaseUrl=r.mediaApiBase.url,c.odataBaseUrl=c.apicodoBaseUrl+"/api/odata/",c.apiBaseUrl=c.apicodoBaseUrl+"/api/",DevExpress.localization.locale(s.scope.currentScope.network.settings.languageCode),c.refreshGrid=function(){c.gridInstance.refresh()},c.executeClickCallback=function(d){c.callback&&c.callback({text:c.apicodoBaseUrl+"/play/"+d.row.data.id+"?guiMode=iframe",title:d.row.data.title,attachment:d.row.data.id,thumbnailUrl:c.apicodoBaseUrl+"/api/Asset/"+d.row.data.id+"/Thumbnail000001.jpg"})},m.getConnectionData().then(function(d){c.token=d.token,c.odataBaseUrl=d.apiBase+"/api/odata/",c.gridInstance=$("#mediaGridContainer").dxDataGrid({dataSource:{store:new DevExpress.data.ODataStore({url:c.getGridUrl(),key:"id",keyType:"Guid",version:4,withCredentials:!0,beforeSend:function(u){u.headers=c.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(u,i){$("<div>").append($("<button>",{class:"btn btn-green action-button",click:function(){c.callback&&c.callback({text:c.apicodoBaseUrl+"/play/"+i.data.id+"?guiMode=iframe",title:i.data.title,attachment:i.data.id,thumbnailUrl:c.apicodoBaseUrl+"/api/Asset/"+i.data.id+"/Thumbnail000001.jpg"})}}).append($("<img>",{src:c.apicodoBaseUrl+"/api/Asset/"+i.data.id+"/Thumbnail000001.jpg",height:20}))).appendTo(u)}},{dataField:"title",caption:"Name"},{dataField:"description",caption:"Description",visible:!1},{dataField:"createdOn",sortIndex:0,sortOrder:"desc",visible:!1}]}).dxDataGrid("instance"),c.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:c.getHeaders(),uploadUrl:c.getFileUploaderUrl(),onValueChanged:function(u){var i=u.value;i.length>0&&$.each(i,function(g,l){var b=(new DevExpress.data.Guid)._value;l.guid=b})},onUploadStarted:function(u){c.uploading=!0},onUploadAborted:function(u){c.uploading=!1},onUploadError:function(u){c.uploading=!1},onUploaded:function(u){c.refreshGrid(),c.uploading=!1}}).dxFileUploader("instance"),c.isInitialized=!0,$(".dx-fileuploader-button").addClass("btn btn-green action-button")}),c.getGridUrl=function(){return c.odataBaseUrl+"MediaFiles"},c.getFileUploaderUrl=function(){return c.apiBaseUrl+"Upload"},c.getHeaders=function(){return{Authorization:"Bearer "+c.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,o,m,r,c){var f=this;f.isVerticalVideo=!0,this.$onInit=function(){m.getConnectionData().then(function(d){f.getVideoUrl=function(u){return r.trustAsResourceUrl(c.mediaApiBase.url+"/play/"+u+"?guiMode=iframe&token="+d.token+"&platform=external")},m.getVideoData(f.fileid).then(function(u){try{var i=u.metaData.assetMetadata.assetFile[0].videoTracks[0].height,g=u.metaData.assetMetadata.assetFile[0].videoTracks[0].width,l=void 0!==u.metaData.assetMetadata.assetFile[0].videoTracks[0].metadata.find(function(b){return"rotate"===b.key});f.isVerticalVideo=l,l?console.log(parseInt(i),"x",parseInt(g),"rotation"):(console.log(parseInt(i),"x",parseInt(g),"no rotation"),parseInt(i)>parseInt(g)&&(f.isVerticalVideo=!0))}catch{console.log("ERROR META ROTATION"),console.log(u)}}),f.videoUrl=f.getVideoUrl(f.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,o=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(c){var f=c.data;console.log(e.apicodoMediaConnectionData),e.apicodoMediaConnectionData=c.data,e.apicodoMediaConnectionData.isInitialized=!0,e.apicodoMediaConnectionData.expiresOn=new Date(Date.now()+36e5),r.resolve(f)},function(){r.reject()}),r.promise};return{apicodoMediaUrl:scope.globalSettings.configurations.apicodoMediaBaseUrl,getConnectionData:o,getVideoData:function(r){console.log("Video id: "+r);var c=a.defer();return o().then(function(f){t.get(s+"/api/Thumbnail/GetWebFrontendData?fileId="+r,{headers:{Authorization:"Bearer "+f.token}}).then(function(u){c.resolve(u.data)},function(){c.reject()})}),c.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,o=null,m=function(b){if(o)o.finally(function(){m(!0)});else{b&&(s=null,n.unseenCount=0);var k=t.defer();e.get(scope.apiEndpoint+"notifications/unseenCount?date="+s,{ignoreLoadingBar:!0}).then(function(v){s||(n.unseenCount=0),n.unseenCount=v.data.unseenCount,s=v.data.date,v.data.unseenCount>0&&a.$emit("notificationUnseenCountChanged"),a.app&&cordova.plugins.notification.badge.set(n.unseenCount),k.resolve(v.data)},function(){k.reject()}).finally(function(){o=null}),o=k.promise}return o};return n.getNotifications=function(){var b=t.defer();return e.get(scope.apiEndpoint+"notifications",{ignoreLoadingBar:!0}).then(function(k){b.resolve(k.data)},function(){b.reject()}),b.promise},n.updateUnseenCount=function(){var b=t.defer();return e.put(scope.apiEndpoint+"notifications/unseenCount").then(function(k){n.unseenCount=0,a.app&&cordova.plugins.notification.badge.set(0),b.resolve(k.data)},function(){b.reject()}),b.promise},n.update=m,n.updateToken=function(b){var k=t.defer();return e.post(scope.apiEndpoint+"Notifications/Token",b).then(function(){k.resolve()},function(){k.reject()}),k.promise},n.getNotificationGroups=function(b){var k=t.defer();return e.get(scope.apiEndpoint+"Notifications/Groups/"+b).then(function(v){k.resolve(v.data)},function(){k.reject()}),k.promise},n.updateNotificationGroups=function(b,k){var v=t.defer();return e.post(scope.apiEndpoint+"Notifications/Groups",{notificationGroups:b,privateUserGuid:k}).then(function(){v.resolve()},function(){v.reject()}),v.promise},n.click=function(b){var k=t.defer();return e.get(scope.apiEndpoint+"notifications/"+b.id+"/Click").then(function(){b.clicked=new Date,k.resolve()},function(){k.reject()}),k.promise},n.getNotifiedUsersCount=function(){var b=t.defer();return e.get(scope.apiEndpoint+"notifications/NotifiedUserCount").then(function(k){b.resolve(k.data)},function(){b.reject()}),b.promise},n.getUserEmail=function(b){var k=t.defer();return e.get(scope.apiEndpoint+"Notifications/"+b+"/email").then(function(v){k.resolve(v.data)},function(){k.reject()}),k.promise},n}]),app.controller("NotificationSettingsController",["$rootScope","$scope","notificationService","$stateParams","$timeout","$location",function(e,t,a,n,s,o){t.working=!1,t.success=!1,t.error=!1;var m=!0;e.profile.isAdmin||e.profile.isNetworkAdmin||(m=!1,e.profile.chapterRoles&&e.profile.chapterRoles.forEach(c=>{c>2&&(m=!0)}));var r=n.privateUserGuid||null;a.getNotificationGroups(r).then(function(c){if(!m)for(let d=0;d<c.length;d++)1001==c[d].order&&c.splice(d,1);if(t.notificationGroups=c,o.search().optOutAll){for(var f=0;f<t.notificationGroups.length;f++)6===t.notificationGroups[f].order&&e.scope.currentScope.chapter.settings.featureBreakingNewsToAll||(t.notificationGroups[f].enabled=!1);t.working=!0,a.updateNotificationGroups(t.notificationGroups,r).then(function(){s(function(){t.working=!1,t.success=!0},2e3)},function(){t.error=!0})}}),a.getUserEmail(r).then(function(c){t.userEmail=c}),t.toggleNotificationGroup=function(c){c.enabled=!c.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,c.enabled=!c.enabled})}}]),app.directive("articleImpression",["$state","$rootScope","clickService",function(e,t,a){return{restrict:"A",link:function(n,s,o){var m=n.$eval(o.articleImpression),r=n.$eval(o.searchGuid),f=Oculus.trackArticleImpression(s,{ia:m.id,iar:m.revisionId,iav:m.variantId,c:m.chapterSlug,n:t.scope.currentScope.network.slug,seg:r});f.persistent=e.includes("app.root"),s.on("click",function(){f.click(),a.clickArticle(f.guid,m.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),c=r;c.length;){if(c.parent().hasClass("allow-float"))return c[0];c=(r=c).children()}return this}),o=e.scope.currentScope.network,m=t.$eval(n.articleReading);Oculus.trackArticleReading(s,{ia:m.id,iar:m.revisionId,iav:m.variantId,c:m.chapterSlug,n:o.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 o=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:o.slug}),n.oculus.persistent=t.includes("app.root"),n.answering=function(m){n.oculus.bundle.ma=m,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("delivery",["shipmentService","profileService","localStorageService","$rootScope","$timeout","$state","redirectService","clickService",function(e,t,a,n,s,o,m,r){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/shipment.html",scope:!0,link:function(c,f,d){var u=c.$eval(d.article),i=u?u.id:void 0;t.getProfile().then(function(g){e.getShipment(i).then(function(l){c.shipment=l;var b=n.scope.globalSettings.blobStorageCdnUrl,k=n.scope.globalSettings.blobStorageContainerNameShipment;c.imageUrl="",l.pin&&(c.imageUrl=b+"/"+k+"/"+l.pin+"?preset=shipment"),l.uri&&(c.inSameChapter=m.isSameChapterUrl(l.uri),c.uriIsDocument=-1!==l.uri.indexOf("/pdf/")||-1!==l.uri.indexOf("/document/")||-1!==l.uri.indexOf("/file/"));var v=angular.copy(c.scope.oculus),y=n.scope.currentScope.network;v.impressionThreshold=v.shipmentImpressionThreshold,v.impressionViewportThreshold=v.shipmentImpressionViewportThreshold,1===l.articleDetailDisplayableType&&s(function(){l.oculus=Oculus.trackBanner(f.children().first(),{c:l.chapterSlug,n:y.slug,ia:u?u.id:null,iar:u?u.revisionId:null,iav:u?u.variantId:null,ibc:l.bannerCampaignId,ib:l.bannerId}),l.oculus.persistent=o.includes("app.root")}),c.clickBanner=function(){c.shipment.oculus.click(),r.clickBannerPost(c.shipment.oculus.guid,c.shipment.pin)}})})}}}]),app.component("deliveryPremium",{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,o,m,r,c,f,d,u){var i=this,g=o.getGlobalSettings().blobStorageCdnUrl,l=o.getGlobalSettings().blobStorageContainerNameShipment;i.web_shipment_premium_title=e(scope.currentScope.network.resources.web_shipment_premium_title)({chapterName:scope.currentScope.chapter.name}),this.$onInit=function(){if(i.shipment){i.imageUrl="",i.shipment.pin&&(i.imageUrl=g+"/"+l+"/"+i.shipment.pin+(i.shipment.mobile?"?preset=premium-shipment-xs":"?preset=premium-shipment")),i.shipment.uri&&(i.inSameChapter=d.isSameChapterUrl(i.shipment.uri),i.uriIsDocument=-1!==i.shipment.uri.indexOf("/pdf/")||-1!==i.shipment.uri.indexOf("/document/")||-1!==i.shipment.uri.indexOf("/file/"));var b=f.scope.currentScope.network,k=angular.copy(f.scope.oculus);k.impressionThreshold=k.shipmentImpressionThreshold,k.impressionViewportThreshold=k.shipmentImpressionViewportThreshold,i.shipment.oculus=Oculus.trackPremiumBanner(r.find(".shipmentPremium-image-wrapper"),{c:i.shipment.chapterSlug,n:b.slug,ip:i.shipment.premiumId,ipb:i.shipment.premiumBannerId}),i.clickBanner=function(){i.shipment.oculus.click(),u.clickPremiumPost(i.shipment.oculus.guid,i.shipment.pin)},i.shipment.oculus.persistent=c.includes("app.root")}}}]}),app.component("deliverySuper",{templateUrl:"/ClientApp/src/legacy-app/oculus/shipmentSuper.html",bindings:{shipment:"<"},controller:["scopeService","$element","$state","$rootScope","$timeout","redirectService","clickService",function(e,t,a,n,s,o,m){var r=this,c=e.getGlobalSettings().blobStorageCdnUrl,f=e.getGlobalSettings().blobStorageContainerNameShipment;this.$onInit=function(){if(r.shipment){r.imageUrl="",r.shipment.pin&&(r.imageUrl=c+"/"+f+"/"+r.shipment.pin+(r.shipment.mobile?"?preset=premium-shipment-xs":"?preset=premium-shipment")),r.shipment.uri&&(r.inSameChapter=o.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,u=angular.copy(n.scope.oculus);u.impressionThreshold=u.shipmentImpressionThreshold,u.impressionViewportThreshold=u.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(),m.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,o){var m=n.$eval(o.snipImpression),r=n.$eval(o.searchGuid),f=Oculus.trackSnipImpression(s,{is:m.id,isr:m.revisionId,seg:r,c:m.chapterSlug,n:t.scope.currentScope.network.slug});f.persistent=e.includes("app.root"),s.on("click",function(){f.click(),a.clickSnip(f.guid,m.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),c=r;c.length;){if(c.parent().hasClass("allow-float"))return c[0];c=(r=c).children()}return this}),o=e.scope.currentScope.network,m=t.$eval(n.snipReading);Oculus.trackSnipReading(s,{is:m.id,isr:m.revisionId,c:m.chapterSlug,n:o.slug})}}}]),app.directive("sparticleImpression",["$state","$rootScope","clickService",function(e,t,a){return{restrict:"A",link:function(n,s,o){var m=n.$eval(o.sparticleImpression),r=n.$eval(o.sparticleImpressionArticle),c=t.scope.currentScope.network,f=n.$eval(o.searchGuid),d=Oculus.trackSponsoredArticleImpression(s,{isac:m.sponsoredArticleCampaignId,isa:m.id,isar:m.revisionId,isav:m.variantId,c:m.chapterSlug,n:c.slug,seg:f,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,m.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),c=r;c.length;){if(c.parent().hasClass("allow-float"))return c[0];c=(r=c).children()}return this}),o=e.scope.currentScope.network,m=t.$eval(n.sparticleReading);Oculus.trackSponsoredArticleReading(s,{isa:m.id,isac:m.sponsoredArticleCampaignId,isar:m.revisionId,isav:m.variantId,c:m.chapterSlug,n:o.slug})}}}]),app.directive("specialImpression",["$state","$rootScope",function(e,t){return{restrict:"A",link:function(a,n,s){var o=a.$eval(s.specialImpression),m=t.scope.currentScope.network,r=a.$eval(s.article);Oculus.trackSpecialImpression(n,{isp:o.id,c:o.chapterSlug,n:m.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,o){var m=n.$eval(o.specialItemImpression),r=e.scope.currentScope.chapter,c=e.scope.currentScope.network,f=o.specialItemSpecialViewOculus?n.$eval(o.specialItemSpecialViewOculus):null;n.imageUrl=e.scope.globalSettings.blobStorageCdnUrl+"/"+e.scope.globalSettings.blobStorageContainerNameSpecial+"/"+m.values.image+"?preset=shipment",m.uri&&(n.inSameChapter=t.isSameChapterUrl(m.uri),n.uriIsDocument=-1!==m.uri.indexOf("/pdf/")||-1!==m.uri.indexOf("/document/")||-1!==m.uri.indexOf("/file/")),m.oculus=Oculus.trackSpecialItemImpression(s,{ispi:m.id,c:r.slug,n:c.slug,spg:f?f.guid:null}),m.oculusGuid=m.oculus.guid,n.clickBanner=function(){a.clickSpecialPost(m.oculusGuid,m.id),m.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,o,m){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 c=t.scope.globalSettings.blobStorageCdnUrl,f=t.scope.globalSettings.blobStorageContainerNameShipment;r.bannerDict={},r.banners.forEach(function(d){d.imageUrl="",d.pin&&(d.imageUrl=c+"/"+f+"/"+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(c){if(c.nextQuestionId)s.actQuestionId=c.nextQuestionId,s.actQuestion=r.questionDict[s.actQuestionId];else if(s.actQuestionId=null,c.finalBannerId){s.finalBannerId=c.finalBannerId;var f=r.bannerDict[s.finalBannerId],d=$(o).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,f.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,o){if(!a.survey.preview){if(a.question.answers[s].isFreeTextAnswer){if(!o||o.match(/^\s*$/))return;a.oculus.bundle.sft=o}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,o,m){AmCharts.isReady=!0;var d,u,i,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",c=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],f=[];e.report=null,e.totalClickCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var g=function(v){var y=0,I=0,h=0,w=0,p=0,x=0;$.each(v,function(M,R){y+=R.desktopImpressionCount,I+=R.tabletImpressionCount,h+=R.mobileImpressionCount,w+=R.clickCount,p+=R.impressionTime,x+=R.impressionCount}),e.$apply(function(){e.totalClickCount=w,e.totalImpressionTime=p,e.totalImpressionCount=x}),c[0].value=Math.round(100/(x/y)),c[1].value=Math.round(100/(x/h)),c[2].value=Math.round(100/(x/I)),d.validateData()},l=function(){var v=moment(u.startDate).startOf("day").toDate(),y=moment(u.endDate).startOf("day").toDate(),I=e.report.filter(function(h){return h.day>=v&&h.day<=y});g(I),i.zoom(v,moment(y).add(1,"d").toDate()),e.$apply(function(){e.startDay=v,e.endDay=y})},k=function(){var v=e.premium.premiumBanners.filter(function(I){return!I.filtered}).map(function(I){return I.id}),y=e.chapters.filter(function(I){return!I.filtered}).map(function(I){return I.id});e.filterDisabled=!0,a.getPremiumReport(e.premium.pin,{premiumId:e.premium.id,premiumbannerIds:v,chapterIds:y}).then(function(I){I.forEach(function(h){h.day=moment(h.day.replace("Z","")).toDate()}),e.report=I,o(function(){(function(v){f.length=0,$.each(v,function(y,I){f.push(I)}),u.validateData(),i.validateData()})(I),l(),e.filterDisabled=!1},50)})};e.filterChapter=function(v){v.filtered=!v.filtered,k()},e.chapterFilterDisabled=function(v){return e.filterDisabled||1===e.chapters.filter(function(y){return!y.filtered}).length&&!v.filtered},e.filterBanner=function(v){e.filterDisabled||1===e.premium.premiumBanners.filter(function(y){return!y.filtered}).length&&!v.filtered||(v.filtered=!v.filtered,k())},a.getPremiumByPin(s.pin).then(function(v){e.premium=v,a.getPremiumReport(v.pin,{premiumId:v.id}).then(function(y){y.forEach(function(h){h.day=moment(h.day.replace("Z","")).toDate()}),e.report=y,e.startDay=y[0].day,e.endDay=y[y.length-1].day;var I=[];$.each(v.chapterSlugs,function(h,w){I.push(n.getChapter(w))}),I=I.filter(function(h){return 2===h.managementState}),e.chapters=I,$.each(y,function(h,w){f.push(w)}),o(function(){d=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}}),(u=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:f,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(){l()}),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:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"clickCount",toField:"clickCount"}],dataProvider:f,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(y)})},function(){e.error=!0})})}]),app.controller("premiumReportController",["$scope","$rootScope","premiumService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,o,m,r){AmCharts.isReady=!0;var c=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getPremiumByPin(s.pin).then(function(i){e.premium=i,a.getReportPremiumBannerCalendar(i.pin).then(function(g){g.forEach(function(l){l.chapter=n.getChapter(l.chapterSlug),l.reports.forEach(function(b){b.calendar.forEach(function(k){k.start=moment(k.start.replace("Z","")).toDate(),k.end=moment(k.end.replace("Z","")).toDate()})})}),i.report=g,m(function(){var l,b,k,v,y,I=new Set;$.each(g,function(R,D){D.active=!0,I.add(D.chapter.name)}),g.uniqueChapters=[],I.forEach(function(R){g.uniqueChapters.push(R)}),$.each(i.premiumBanners,function(R,D){D.reportActive=!0});var h=[],w=function(){h.length=0,$.each(g[0].reports[0].calendar,function(R,D){h.push({start:D.start,end:D.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(R,D){D.active&&(g[R-1]&&2===g[R-1].chapter.managementState&&2===D.chapter.managementState&&g[R-1].chapter.name!==D.chapter.name&&(g.multiChapterShipment=!0),$.each(D.reports,function(A,S){if(i.premiumBanners[A].reportActive){var U=S.premiumBanner.pin;$.each(S.calendar,function(C,F){F.pin=U,h[C].impressions+=F.impressions,h[C].viewableImpressions+=F.viewableImpressions,h[C].viewableImpressionTimeSeconds+=F.viewableImpressionTimeSeconds,h[C].desktopViewableImpressions+=F.desktopViewableImpressions,h[C].mobileViewableImpressions+=F.mobileViewableImpressions,h[C].tabletViewableImpressions+=F.tabletViewableImpressions,h[C].clicks+=F.clicks,h[C].maleViewableImpressions+=F.maleViewableImpressions,h[C].femaleViewableImpressions+=F.femaleViewableImpressions,h[C].age1617MaleViewableImpressions+=F.age1617MaleViewableImpressions,h[C].age1824MaleViewableImpressions+=F.age1824MaleViewableImpressions,h[C].age2534MaleViewableImpressions+=F.age2534MaleViewableImpressions,h[C].age3544MaleViewableImpressions+=F.age3544MaleViewableImpressions,h[C].age4554MaleViewableImpressions+=F.age4554MaleViewableImpressions,h[C].age55MaleViewableImpressions+=F.age55MaleViewableImpressions,h[C].age1617FemaleViewableImpressions+=F.age1617FemaleViewableImpressions,h[C].age1824FemaleViewableImpressions+=F.age1824FemaleViewableImpressions,h[C].age2534FemaleViewableImpressions+=F.age2534FemaleViewableImpressions,h[C].age3544FemaleViewableImpressions+=F.age3544FemaleViewableImpressions,h[C].age4554FemaleViewableImpressions+=F.age4554FemaleViewableImpressions,h[C].age55FemaleViewableImpressions+=F.age55FemaleViewableImpressions})}}))}),b.validateData(),l.validateData()},p=g.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:h,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:c,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:h,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}}),k=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:f,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),v=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:c,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(R,D){return-1*R.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(R){return R<0?-1*R+"":R+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),y=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:u,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}});var M=function(){var R=moment(l.startDate).startOf("day").toDate(),D=moment(l.endDate).startOf("day").add(-1,"d").toDate();(function(R,D){p.maleViewableImpressions=0,p.femaleViewableImpressions=0,p.viewableImpressions=0,p.viewableImpressionTimeSeconds=0,p.impressions=0,p.clicks=0,p.desktopViewableImpressions=0,p.mobileViewableImpressions=0,p.tabletViewableImpressions=0,p.age1617MaleViewableImpressions=0,p.age1824MaleViewableImpressions=0,p.age2534MaleViewableImpressions=0,p.age3544MaleViewableImpressions=0,p.age4554MaleViewableImpressions=0,p.age55MaleViewableImpressions=0,p.age1617FemaleViewableImpressions=0,p.age1824FemaleViewableImpressions=0,p.age2534FemaleViewableImpressions=0,p.age3544FemaleViewableImpressions=0,p.age4554FemaleViewableImpressions=0,p.age55FemaleViewableImpressions=0;var A=0,S=0,U=0,C=0,F=0,V=0,T=0,P=0,N=0,q=0,_=0,E=0,L=0,j=0,W=0;p.start=R,p.end=D,$.each(h,function(Y,B){var z=new Date(B.start);z<R||z>D||(p.maleViewableImpressions+=B.maleViewableImpressions,p.femaleViewableImpressions+=B.femaleViewableImpressions,p.viewableImpressions+=B.viewableImpressions,p.viewableImpressionTimeSeconds+=B.viewableImpressionTimeSeconds,p.impressions+=B.impressions,p.clicks+=B.clicks,A+=B.desktopViewableImpressions,S+=B.mobileViewableImpressions,U+=B.tabletViewableImpressions,C+=B.age1617MaleViewableImpressions,F+=B.age1824MaleViewableImpressions,V+=B.age2534MaleViewableImpressions,T+=B.age3544MaleViewableImpressions,P+=B.age4554MaleViewableImpressions,N+=B.age55MaleViewableImpressions,q+=B.age1617FemaleViewableImpressions,_+=B.age1824FemaleViewableImpressions,E+=B.age2534FemaleViewableImpressions,L+=B.age3544FemaleViewableImpressions,j+=B.age4554FemaleViewableImpressions,W+=B.age55FemaleViewableImpressions)}),p.desktopViewableImpressions=Math.round(100/(p.viewableImpressions/A)),p.mobileViewableImpressions=Math.round(100/(p.viewableImpressions/S)),p.tabletViewableImpressions=Math.round(100/(p.viewableImpressions/U));var K=p.viewableImpressions-(C+F+V+T+P+N+q+_+E+L+j+W);K>100&&(C+=K*t.scope.globalSettings.reportAverageAge1617Male,F+=K*t.scope.globalSettings.reportAverageAge1824Male,V+=K*t.scope.globalSettings.reportAverageAge2534Male,T+=K*t.scope.globalSettings.reportAverageAge3544Male,P+=K*t.scope.globalSettings.reportAverageAge4554Male,N+=K*t.scope.globalSettings.reportAverageAge55Male,q+=K*t.scope.globalSettings.reportAverageAge1617Female,_+=K*t.scope.globalSettings.reportAverageAge1824Female,E+=K*t.scope.globalSettings.reportAverageAge2534Female,L+=K*t.scope.globalSettings.reportAverageAge3544Female,j+=K*t.scope.globalSettings.reportAverageAge4554Female,W+=K*t.scope.globalSettings.reportAverageAge55Female),p.age1617MaleViewableImpressions=Math.round(100/(p.viewableImpressions/C)),p.age1824MaleViewableImpressions=Math.round(100/(p.viewableImpressions/F)),p.age2534MaleViewableImpressions=Math.round(100/(p.viewableImpressions/V)),p.age3544MaleViewableImpressions=Math.round(100/(p.viewableImpressions/T)),p.age4554MaleViewableImpressions=Math.round(100/(p.viewableImpressions/P)),p.age55MaleViewableImpressions=Math.round(100/(p.viewableImpressions/N)),p.age1617FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/q)),p.age1824FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/_)),p.age2534FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/E)),p.age3544FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/L)),p.age4554FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/j)),p.age55FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/W)),p.maleViewableImpressions=Math.round(p.maleViewableImpressions),p.femaleViewableImpressions=Math.round(p.femaleViewableImpressions),f[0].value=p.femaleViewableImpressions,f[1].value=p.maleViewableImpressions,d[0].male=Math.round(-1*p.age1617MaleViewableImpressions),d[1].male=Math.round(-1*p.age1824MaleViewableImpressions),d[2].male=Math.round(-1*p.age2534MaleViewableImpressions),d[3].male=Math.round(-1*p.age3544MaleViewableImpressions),d[4].male=Math.round(-1*p.age4554MaleViewableImpressions),d[5].male=Math.round(-1*p.age55MaleViewableImpressions),d[0].female=Math.round(p.age1617FemaleViewableImpressions),d[1].female=Math.round(p.age1824FemaleViewableImpressions),d[2].female=Math.round(p.age2534FemaleViewableImpressions),d[3].female=Math.round(p.age3544FemaleViewableImpressions),d[4].female=Math.round(p.age4554FemaleViewableImpressions),d[5].female=Math.round(p.age55FemaleViewableImpressions),u[0].value=p.desktopViewableImpressions,u[1].value=p.mobileViewableImpressions,u[2].value=p.tabletViewableImpressions,k.validateData(),v.validateData(),y.validateData(),e.$apply()})(R,D),b.zoom(R,moment(D).add(1,"d").toDate())};l.addListener("zoomed",function(R){M()}),e.toggleReport=function(R){$.each(i.premiumBanners,function(D,A){A.pin===R.pin&&(A.reportActive=!A.reportActive)}),m(function(){w(),M()},50)},e.toggleChapter=function(R){$.each(g,function(D,A){A.chapter.name===R&&(A.active=!A.active)}),m(function(){w(),M()},50)},w(),b.validateData(),l.validateNow(),l.setDefaultPeriod()},function(){e.error=!0})})},function(){r.path("/")});var f=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:c,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}],u=[{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,o){var m=[],f=function(){var i=t.defer();return m.length>0?i.resolve(m):e.get(scope.apiEndpoint+"premiums").then(function(g){angular.copy(g.data,m),i.resolve(m)},function(){i.reject()}),i.promise};function d(i){var g=null;return $.each(m,function(l,b){if(b.pin===i)return g=b,!1}),g}return{premiums:m,getPremiums:f,getReportPremiumBannerCalendar:function(i){var g=t.defer();return e.get(scope.apiEndpoint+"premiums/"+i+"/ReportPremiumBannerCalendar").then(function(l){g.resolve(l.data)},function(){g.reject()}),g.promise},getPremiumReport:function(i,g){var l=t.defer();return e.post(scope.apiEndpoint+"premiums/"+i+"/report",g).then(function(b){l.resolve(b.data)},function(){l.reject()}),l.promise},getPremiumByPin:function(i){var g=t.defer();if(m.length>0){var l=d(i);l?g.resolve(l):e.get(scope.apiEndpoint+"/premiums"+i).then(function(b){g.resolve(b.data)},function(){g.reject()})}else f().then(function(){var b=d(i);b?g.resolve(b):e.get(scope.apiEndpoint+"premiums/"+i).then(function(k){g.resolve(k.data)},function(){g.reject()})},function(){g.reject()});return g.promise}}}]),app.controller("AddMetaInfoDialogController",["$scope","onSuccessfulCallback",function(e,t){var a=this;function n(s,o){this.tagValue=s,this.displayName=o}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(o){t(o.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 o(c){this.name=c.firstName+" "+c.lastName,this.profileURL=c.avatarImageUrl||"",this.avatarURL=c.avatarImageUrl+"?preset=article-detail-badge"}function m(c){this.guid=c.guid||"",this.imgContent=c.imgContent||"",this.textContent=c.textContent||"",this.videoThumbnail=c.videoThumbnail||"",this.type=c.type||0,this.author=c.author||new o}return this.url=scope.apiEndpoint+"editorAssets",this.getImageContent=function(c){var f=null;return c.assetImage&&(f=c.assetImage.assetImageUrl+"?maxheight=50"),c.assetArticle&&(f=c.assetArticle.coverAssetImageUrl+"?maxheight=50"),c.assetStaticArticle&&(f=c.assetStaticArticle.coverAssetImageUrl+"?maxheight=50"),c.assetFile&&(f=c.assetFile.fileName),f},this.getTextContent=function(c){var f=null;return c.assetText&&(f=c.assetText.text),c.assetFile&&(f=c.assetFile.text),f},this.getAssetType=function(c){var f=null;return c.assetImage&&(f=c.assetImage.type),c.assetText&&(f=c.assetText.type),c.assetArticle&&(f=c.assetArticle.type),c.assetFile&&(f=c.assetFile.type),c.assetStaticArticle&&(f=c.assetStaticArticle.type),f},this.getUser=function(c){var f=null;return c.assetImage&&(f=c.assetImage.user),c.assetText&&(f=c.assetText.user),c.assetArticle&&(f=c.assetArticle.user),c.assetFile&&(f=c.assetFile.user),c.assetStaticArticle&&(f=c.assetStaticArticle.user),f},this.getThumbnail=function(c){var f=null;return c.assetText&&(f=c.thumbnailUrl),f},{getAsset:function(c,f){var u=f.filter(function(v){return v.guid===c})[0];if(u.assetText){var i=null,g=u.assetText.type;if(5===g)i=e("youtubeImage")(u.assetText.text);else if(6===g)i=e("facebookImage")(u.assetText.text);else if(7===g)i=e("vimeoImage")(u.assetText.text);else if(13===g)i=e("apicodoMediaServiceImage")(u.assetText.text);else if(14===g){var l=a.defer();return n.getWorkflowTemplate(u.assetText.text).then(function(v){if(u){var y=new m({guid:u.guid,imgContent:v.name,textContent:v.description,type:14,author:new o(s.getUser(u))});l.resolve(y)}else l.resolve({guid:c})},function(){l.resolve({guid:c})}),l.promise}if(i){var b=t.valueOf(i);u.thumbnailUrl=b}}return new Promise(function(v,y){v(u?new m({guid:u.guid,imgContent:s.getImageContent(u),textContent:s.getTextContent(u),videoThumbnail:s.getThumbnail(u),type:s.getAssetType(u),author:new o(s.getUser(u))}):{guid:c})})}}}]),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(m){var r=t.defer();return e.put(a.url,m).then(function(c){r.resolve(c.data)},function(c){r.reject(c)}),r.promise},getChain:function(m){var r=t.defer();return e.get(a.url+"/chain/"+m).then(function(c){r.resolve(c.data)},function(c){r.reject(c)}),r.promise},deleteComment:function(m){var r=t.defer();return e.delete(a.url,{data:m,headers:{"Content-type":"application/json;charset=utf-8"}}).then(function(c){r.resolve(c.data)},function(c){r.reject(c)}),r.promise}}}]),app.service("editorCommentSponsoredArticleService",["$http","$q",function(e,t){var a=this;return this.url=scope.apiEndpoint+"editorCommentsSponsoredArticle",{save:function(m){var r=t.defer();return e.put(a.url,m).then(function(c){r.resolve(c.data)},function(c){r.reject(c)}),r.promise},getChain:function(m){var r=t.defer();return e.get(a.url+"/chain/"+m).then(function(c){r.resolve(c.data)},function(c){r.reject(c)}),r.promise},deleteComment:function(m){var r=t.defer();return e.delete(a.url,{data:m,headers:{"Content-type":"application/json;charset=utf-8"}}).then(function(c){r.resolve(c.data)},function(c){r.reject(c)}),r.promise}}}]),app.service("editorCommentStaticArticleService",["$http","$q",function(e,t){var a=this;return this.url=scope.apiEndpoint+"editorCommentsStaticArticle",{save:function(m){var r=t.defer();return e.put(a.url,m).then(function(c){r.resolve(c.data)},function(c){r.reject(c)}),r.promise},getChain:function(m){var r=t.defer();return e.get(a.url+"/chain/"+m).then(function(c){r.resolve(c.data)},function(c){r.reject(c)}),r.promise},deleteComment:function(m){var r=t.defer();return e.delete(a.url,{data:m,headers:{"Content-type":"application/json;charset=utf-8"}}).then(function(c){r.resolve(c.data)},function(c){r.reject(c)}),r.promise}}}]),app.controller("ListEditorCommentDialogController",["$scope","onDeletedCallback","onAddedCallback","messageHolder","chainComments","profileService","sourceService",function(e,t,a,n,s,o,m){var r=this;function c(u){this.guid=u.guid,this.contentText=u.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(u){u.parentId=e.selectedParentMessage.guid,m.save(u).then(function(i){e.selectedParentMessage.displayMessages.push(i),e.availableParentMessages.filter(function(g){return g.guid===e.selectedParentMessage.guid})[0].displayMessages.push(i),r.reset()})},this.deleteComment=function(u){m.deleteComment({holderId:n.id,deleteMessageGuid:u,parentGuid:e.selectedParentMessage.guid}).then(function(g){e.selectedParentMessage.displayMessages=g,t(e.selectedParentMessage.guid,u),e.selectedParentMessage.guid===u&&r.close(),r.reset()})},this.reset=function(){e.newComment=window.angular.copy(e.master),e.deleteComment=null},s.chains.forEach(function(u){var i=new c({guid:u.id,contentText:s.textContents[u.id]});m.getChain(i.guid).then(function(g){i.displayMessages=g,e.availableParentMessages.push(i),e.selectedParentMessage||(e.selectedParentMessage=angular.copy(e.availableParentMessages[0]))})}),o.getProfile().then(function(u){e.myProfile=u})}]),app.service("proseMirrorEditorService",["$window",function(e){var t=this;return this.connection=null,{init:function(c){c||(c={docId:"unknown"}),t.connection=e.initializeEditor({docID:c.docID,assetDlgFactory:c.assetDlgFactory,commentCreationDlgFactory:c.commentCreationDlgFactory,createLinkFactory:c.createLinkFactory,callToActionDlgFactory:c.callToActionDlgFactory,commentMgmtDlgFactory:c.commentMgmtDlgFactory,metadataCreationDlgFactory:c.metadataCreationDlgFactory,initialDocument:c.initialDocument,initialAssetReferences:c.initialAssetReferences,assetResolver:c.assetResolver,onNewStateFactory:c.onNewStateFactory,transformHtmlFactory:function(f){var d=$("<div>").html(f).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:c.onLoadTransactionCallback||null,languageCode:c.languageCode}),e.editorConnection=t.connection},getDocument:function(){try{return t.connection.exportModel()}catch(c){console.error("getting JSON Document threw an error",c)}},setDocument:function(c){try{t.connection.importModel(c,!0)}catch(f){console.error("loading error with proseMirror",f)}},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 o=150;return this.checkWords=function(u){if(!u)return 0;var i=n.countWords(u);return i>=o&&i<=750},this.checkSentences=function(u){return u?n.countSentences(u)>=8:0},this.checkParagraphs=function(u){return u?n.countParagraphs(u)>=4:0},this.checkGoogleNewsRecommendation=function(u){return(function(u){if(!u)return 0;var i=n.countParagraphs(u);return i>=4?1:i/4}(u)+function(u){if(!u)return 0;var i=n.countSentences(u);return i>=8?1:i/8}(u)+function(u){if(!u)return 0;var i=n.countWords(u);return i>=o&&i<=750?1:i<o?i/o:750/i}(u))/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 o=e(s);return $(o).find("p:not(:empty)").text().split(/\s+/).filter(function(m){return m}).length},countParagraphs:function(s){var o=e(s);return $(o).find("p:not(:empty)").length},countSentences:function(s){var o=e(s);return $(o).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","localStorageService",function(e,t,a,n,s,o,m,r,c,f,d,u,i,g,l,b,k,v,y,I,h,w,p,x,M,R){if(e.shipmentSnipDistribution=4,e.doWork=!1,e.snip={},e.cookieManager=0,t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&!navigator.userAgent.includes("Merkurist_IAB")&&!navigator.userAgent.includes("Apicodo_IAB")&&(e.cookieManager=t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),t.showSnipSlide=-1!=t.scope.currentScope.chapter.settings.configurations.showSnipsForUserRoleId,t.showSnipSlide){var D=t.scope.currentScope.chapter.settings.configurations.showSnipsForUserRoleId;"number"==typeof D&&D>0&&(t.showSnipSlide=!!t.scope.profile.chapterRoles&&t.scope.profile.chapterRoles.includes(D))}e.showSnipSlide=t.showSnipSlide,e.getChapterLogoUrl=function(){return w.getChapterLogoUrl()},e.getChapterLogoDarkUrl=function(){return w.getChapterLogoDarkUrl()};var A={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 q=$(A.elements.slides.filter(":visible")[A.index]).height();q&&A.elements.wrapper.height(Math.round(q)),A.slideWidth=$(".root-slides-slide").width(),A.elements.slider.css("transform","translate3d(-"+A.index*A.slideWidth+"px,0,0)")},moveTo:function(q,_){_?this.elements.slider.addClass("root-slides-transition"):this.elements.slider.removeClass("root-slides-transition"),A.slideWidth=$(".root-slides-slide").width();var E=this.index;this.index=q,this.scrollPositions[E]=$(window).scrollTop(),A.elements.slider.css("transform","translate3d(-"+A.index*A.slideWidth+"px,0,0)"),E!==A.index&&l(function(){A.refreshDimensions(),A.scrollPositions[A.index]?window.scroll(0,A.scrollPositions[A.index]):window.scroll(0,0),A.updateScrollPositions()},350)},updateScrollPositions:function(){var q=$(window).scrollTop(),_=this.elements.slides.filter(":visible");_.each(function(E,L){if(E!==A.index){var j=q;A.scrollPositions[E]&&(j-=A.scrollPositions[E]),L.style.transform="translate3d(0,"+j+"px,0)"}else $(_[E]).css("transform","translate3d(0,0,0)")})},init:function(){this.bindUIEvents()},bindUIEvents:function(){this.elements.slider.on("touchstart",function(q){A.start(q)}),this.elements.slider.on("touchmove",function(q){A.move(q)}),this.elements.slider.on("touchend",function(q){A.end(q)}),$(window).resize(function(){s.includes("app.root")&&(A.slideWidth=$(".root-slides-slide").width(),A.moveTo(A.index))}),e.$watch(function(){return $(A.elements.slides.filter(":visible")[A.index]).height()},function(){s.includes("app.root")&&l(function(){A.refreshDimensions()},500)})},start:function(q){this.longTouch=!1,setTimeout(function(){A.longTouch=!0},250),this.touchmovex=this.touchstartx=q.originalEvent.touches[0].pageX,this.movex=this.index*this.slideWidth+(this.touchstartx-this.touchmovex),this.touchmovey=this.touchstarty=q.originalEvent.touches[0].pageY,$(".root-slides-transition").removeClass("root-slides-transition")},move:function(q){this.touchmovex=q.originalEvent.touches[0].pageX,this.touchmovey=q.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)"),q.preventDefault())},end:function(){if(this.movingx){this.movingx=this.movingy=!1;var q=Math.abs(this.index*this.slideWidth-this.movex),_=this.index;if((q>this.slideWidth/2||q>40&&!1===this.longTouch)&&(this.movex>this.index*this.slideWidth&&this.index<this.elements.slides.filter(":visible").length?_++:this.movex<this.index*this.slideWidth&&this.index>0&&_--),_!==this.index){var E=$(this.elements.slides.filter(":visible")[_]).data("state");E&&s.go(E)}else A.moveTo(_,!0)}else this.movingx=this.movingy=!1}};A.init();var S=null,U=function(){e.premiumShipment||b.getShipmentPremium().then(function(q){e.premiumShipment=q}),s.includes("app.root")?F(m.getArticles,r.getSnips):l(function(){F(m.getArticles,r.getSnips)}),S&&v.cancel(S),s.is("app.root.notifications")?(n.push("Benachrichtigung","Benachrichtigung"),S=v(function(){d.getNotifications().then(function(q){e.notifications=q})},1e4),d.getNotifications().then(function(q){e.notifications=q}),d.updateUnseenCount()):s.is("app.root.menu")?(f.getProfile().then(function(q){e.isJournalist=q.isJournalist,e.isInternalJournalist=q.isMerkuristJournalist,e.isHeadJournalist=q.isHeadJournalist,e.isSales=q.isSales,e.isHeadSales=q.isHeadSales,e.isNewsroomAdmin=q.isNewsroomAdmin}),e.activeSpecials||u.getActiveSpecials().then(function(q){e.activeSpecials=q})):s.is("app.root.snips")&&(e.$broadcast("$$rebind::refreshSnips"),l(function(){var q=document.createEvent("Event");q.initEvent("autosize.update",!0,!1);var _=document.getElementsByClassName("root-newSnip-textbox")[0];_&&_.dispatchEvent(q)})),s.includes("app.root")&&l(function(){var q=$(A.elements.slides).filter(":visible").index($(A.elements.slides).filter(function(){return $(this).data("state")===s.current.name})[0]);A.moveTo(q,e.mobile),t.$emit("lazyImg:refresh"),l(function(){t.$emit("lazyImg:refresh")},350),l(function(){t.$emit("lazyImg:refresh")},500)})};function F(q,_,E){(E||!e.articleListDisplayables||!e.articleListDisplayableSnips)&&I.all([f.getProfile(),q(),_()]).then(function(L){var j=L[0],W=L[1],K=L[2],Y=y("includeMyUnpublishedSnips");e.articleListDisplayableSnips=K,e.articleListDisplayables=function C(q,_){for(var W=[],K=q.slice(),Y=_.slice(),B=1;Y.length>0||K.length>0&&B<7;){for(var z=0;z<4;z++){var Q=Y.shift();Q&&W.push(Q)}for(var G=0;G<3;G++)if(!p.skipSnip(B,G+1)){var O=K.shift();O&&W.push(O)}B++}return W}(Y(K,j.guid),W),e.alreadyLoadedArticleIds=e.articleListDisplayables.filter(function(B){return 1===B.articleListDisplayableType}).map(function(B){return B.id}),e.alreadyLoadedSnipIds=e.articleListDisplayables.filter(function(B){return 4===B.articleListDisplayableType}).map(function(B){return B.id}),e.amountOfArticles=e.articleListDisplayables.filter(function(B){return 4!==B.articleListDisplayableType}).length,e.articleListDisplayablesMore=[],l(function(){m.getArticleIds().then(function(B){e.articleListIds=B,e.loadMoreAvailable=e.articleListDisplayables&&e.alreadyLoadedArticleIds.length<e.articleListIds.length}),e.snipListIds=e.articleListDisplayableSnips.map(function(B){return B.id}),e.loadMorePending=!1,t.$emit("lazyImg:refresh"),l(function(){l(function(){b.resolve(Math.round(K.length/e.shipmentSnipDistribution))}),!e.notifications&&j.isRegistered&&d.getNotifications().then(function(B){e.notifications=B})})})}).catch(function(L){console.error("ERROR LOADING ARTICLES()",L)})}e.$on("apicodo.translate",function(q,_){var E=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==E){var L=t.scope.profile,j=t.scope.network.settings.languagePack.split("-")[0];null!=L.activeUserLanguage?.vendorLanguageCode&&j!=L.activeUserLanguage?.vendorLanguageCode&&(_=L.activeUserLanguage?.vendorLanguageCode)}s.is("app.root.snips")?null===_?r.getSnips().then(function(W){e.articleListDisplayableSnips=W,t.$broadcast("$$rebind::refreshSnips")}):r.getTranslatedSnipList(_).then(function(W){e.articleListDisplayableSnips=W,f.updateFavoriteLanguage(_).then(function(){t.profile.favoriteLanguage=_}),t.$broadcast("$$rebind::refreshSnips")}):s.is("app.root")&&(null===_?F(m.getArticles,r.getSnips,!0):(F(function(){return m.getTranslatedArticles(_)},function(){return r.getTranslatedSnipList(_)},!0),f.updateFavoriteLanguage(_).then(function(){t.profile.favoriteLanguage=_})))}),t.$on("$stateChangeStart",function(){s.includes("app.root")&&(A.scrollPositions[A.index]=$(window).scrollTop(),A.index=-1)}),t.$on("$stateChangeSuccess",function(){U(),h.run(s.$current.name)}),U(),t.$on("notificationUnseenCountChanged",function(){e.notifications&&d.getNotifications().then(function(q){e.notifications=q})}),e.menuClicked=function(q){var _=$(q.currentTarget).attr("ui-sref"),E=o.get();if(s.current.name===_&&"app.root.menu"===_&&E&&E.name!==_)return q.preventDefault(),void o.go();e.mobile&&s.current.name===_&&(q.preventDefault(),$("html, body").animate({scrollTop:0}))},e.emailValidationState=0,e.emailValidationStates={none:0,inProgress:1,failure:2,success:3},s.is("app.root.login")&&f.getProfile().then(function(q){!q.isRegistered&&i.search().token?(e.emailValidationState=e.emailValidationStates.inProgress,c.validateEmail(i.search().token).then(function(){l(function(){e.emailValidationState=e.emailValidationStates.success},2e3)},function(){l(function(){e.emailValidationState=e.emailValidationStates.failure},2e3)})):q.isRegistered&&i.search().token?i.path("/settings").replace():q.isRegistered&&s.go("app.root")});var V={userName:"",password:""};e.loginData=angular.copy(V),e.loginError=null,t.$on("authenticationStateChanged",function(){e.loginError=null,angular.copy(V,e.loginData),A.scrollPositions=[]});var T=function(){e.articleListDisplayables=null,e.articleListDisplayableSnips=null,e.notifications=null};t.$on("invalidateLists",function(){T(),U()}),e.login=function(q){q&&c.login(e.loginData).then(function(){T(),e.loginForm.$setPristine(),i.search().closedToken&&scope.currentChapter.closed?s.go("app.closedChapter",{action:"Get",token:i.search().closedToken}):s.go("app.root")},function(_){e.loginError=_.data})},e.saml2ModulePaths=saml2ModulePathSplitted=[],t.scope.network.settings.saml2ModulePath&&(saml2ModulePathSplitted=t.scope.network.settings.saml2ModulePath.split(","),saml2ModulePathSplitted.length>0&&saml2ModulePathSplitted.forEach(q=>{e.saml2ModulePaths.push(q.trim())})),e.loginSaml2=function(q){if(e.saml2ModulePaths.indexOf(q)>=0){var _="/authentication/saml2?authenticationType="+q+"&referrerUri="+encodeURIComponent(window.location.origin+scope.currentScope.appRoute+"login/saml2");if(t.app){var E="location=no,toolbarposition=top,toolbartranslucent=no,hidenavigationbuttons=yes";"android"===cordova.platformId&&(E="location=yes,hideurlbar=yes,zoom=no,hidenavigationbuttons=yes,closebuttoncaption="+scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"));var L=cordova.InAppBrowser.open(_,"_blank",E);L.addEventListener("loadstart",function(j){j.url.endsWith("login/saml2")&&(L.close(),s.go("app.loginSaml2"))})}else window.location.href=_}},e.privateLogOut=function(){c.logout().then(function(){Oculus.navigate(""),T(),null!==t.scope.currentScope.network.settings.sharedAppLogoutUrl&&(window.location.href=t.scope.currentScope.network.settings.sharedAppLogoutUrl),t.app?window.location.href="/":f.getProfile().then(function(){s.go("app.root.login")})})},e.logout=function(){R.oculusOptOut?e.privateLogOut():Oculus.push(!1,e.privateLogOut)},e.register=function(){s.go("app.register",{closedToken:i.search().closedToken})},e.facebookLogin=function(){c.facebookLogin(t.app).then(function(q){q.token?k.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return function(){T(),s.go("app.root")}},facebookSignUpData:function(){return q},login:!1}}):i.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(q){return e.snip.chapterGroupSelections[q]})),e.doWork=!0,r.createSnip(e.snip).then(function(q){e.doWork=!1,e.snip={},e.articleListDisplayableSnips.push(q);var _=scope.currentChapter.path+q.path;i.path(_)},function(){e.doWork=!1,e.error=!0})},e.clickNotification=function(q){d.click(q),q.openSeparate?window.open(q.uri):M.redirectNotificationUrl(q.uri)},e.showInstagram=a.isAvailable(),e.loadMore=function(){e.remainingArticleIds=e.articleListIds.filter(function(q){return e.alreadyLoadedArticleIds.indexOf(q)<0}),e.remainingSnipIds=e.snipListIds.filter(function(q){return e.alreadyLoadedSnipIds.indexOf(q)<0}),e.amountOfArticles=e.articleListDisplayables.filter(function(q){return 4!==q.articleListDisplayableType}).length,e.loadMorePending=!0,I.all([f.getProfile(),m.getArticlesByIds(e.remainingArticleIds.splice(0,e.amountOfArticles))]).then(function(q){var Y,B,G,O,H,J,Z,_=q[0],E=q[1],L=y("includeMyUnpublishedSnips"),W=e.articleListDisplayableSnips.filter(function(Y){return e.remainingSnipIds.indexOf(Y.id)>=0}),K=(Y=L(W,_.guid),B=E,G=[],O=Y.slice(),H=B.slice(),J=function(){for(;H.length>0;){for(var ee=0;ee<4;ee++){var X=H.shift();X&&G.push(X)}for(var te=0;te<3;te++){var ae=O.shift();ae&&G.push(ae)}}},Z=function(){for(;O.length>0||H.length>0;){for(var ee=0;ee<3;ee++){var X=O.shift();X&&G.push(X)}for(var te=0;te<4;te++){var ae=H.shift();ae&&G.push(ae)}}},e.articleListDisplayablesMore.length>0?4===e.articleListDisplayablesMore[e.articleListDisplayablesMore.length-1].articleListDisplayableType?J():Z():4===e.articleListDisplayables[e.articleListDisplayables.length-1].articleListDisplayableType?J():Z(),G);angular.forEach(K,function(Y){e.articleListDisplayablesMore.push(Y),4===Y.articleListDisplayableType?e.alreadyLoadedSnipIds.push(Y.id):e.alreadyLoadedArticleIds.push(Y.id)}),e.articleListDisplayablesMoreShow=!1,e.loadMoreAvailable=e.alreadyLoadedArticleIds.length<e.articleListIds.length,l(function(){e.loadMorePending=!1,e.articleListDisplayablesMoreShow=!0})})},e.allowInternAd=function(q,_){var E=(q+1)%_==0;return 7===q&&t.scope.currentScope.chapter.settings.criteoPublisherId&&(E=!1),E},e.chapterGroupChoose=function(q){return g(scope.currentScope.network.resources.web_root_snip_chapterGroupChoose)({chapterGroupName:q.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 P=0;P<scope.currentScope.chapter.containers.length;P++)e.isChapterCollapsed[P]=e.defaultCollapsed;e.isNetworkCollapsed=[];for(var N=0;N<scope.currentScope.network.containers.length;N++)e.isNetworkCollapsed[N]=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(q){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isChapterCollapsed[q]=!e.isChapterCollapsed[q])},e.toggleNetworkContainer=function(q){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isNetworkCollapsed[q]=!e.isNetworkCollapsed[q])}}]),app.controller("SearchController",["$scope","$rootScope","searchService","$state","$location","$uibModal","$timeout","translationService",function(e,t,a,n,s,o,m,r){e.hits=null,e.translatedValue=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 c=function(i){if(angular.isArray(i))return i;var g=[];return i&&g.push(i),g};function d(i,g){e.hits=null,e.state=i||s.search().searchFilter;var l=s.search().chapterIds,b=s.search().showAll;if(l=c(l),!g&&(g={},s.search().staffDirFilter)){var k=JSON.parse(decodeURIComponent(s.search().staffDirFilter));k&&(k.datePickers&&(angular.forEach(Object.entries(k.datePickers),function(v){if(v[1].from){var y=new Date(v[1].from);v[1].from=y}if(v[1].until){var I=new Date(v[1].until);v[1].until=I}}),k.attributeRanges=function(i){return Object.keys(i).map(function(g){return{attribute_Id:g,from:i[g].from,until:i[g].until,ignoreYear:i[g].ignoreYear}})}(k.datePickers)),g=k)}if(e.filtered=l.length>0,!0===e.isStaffDirectoryEnabled)switch(e.state){case"all":default:(l.length>0||e.translatedValue||b)&&(e.searching=!0,a.search(e.translatedValue,l).then(function(v){e.hits=v,e.searching=!1})),a.getStaffDirectoryUsers(e.translatedValue,g.optionIds,g.booleanIds,g.attributeRanges,e.state).then(function(v){e.staffDirectoryUserHits=v});break;case"staffs":e.hits=null,a.getStaffDirectoryUsers(e.translatedValue,g.optionIds,g.booleanIds,g.attributeRanges,e.state).then(function(v){e.staffDirectoryUserHits=v});break;case"articles":(l.length>0||e.translatedValue||b)&&(e.searching=!0,a.search(e.translatedValue,l).then(function(v){e.hits=v,v||(e.hits=[]),e.searching=!1})),e.staffDirectoryUserHits=null}else l.length>0||e.translatedValue||b?(e.searching=!0,a.search(e.translatedValue,l).then(function(v){e.hits=v,e.searching=!1}),e.staffDirectoryUserHits=[]):(e.hits=null,e.staffDirectoryUserHits=null);s.search("q",e.model.query)}e.search=function(i,g){var l=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,b=t.scope.profile.activeUserLanguage,k=t.scope.network.settings.languagePack.split("-")[0];1==l&&b.vendorLanguageCode!=k?function u(i){return new Promise(function(g,l){r.translateToOrigin([i]).then(k=>{e.translatedValue=k[0].translation,g()})})}(e.model.query).then(function(){d(i,g)}):(e.translatedValue=e.model.query,d(i,g))},e.filtering=function(i){e.state=i.state,1==i.shouldResetSearch&&(e.translatedValue=null)},e.navigateUp=function(){m(function(){n.go("app.root")})},e.loadArticles=function(){var i=s.search().chapterIds;i=c(i),a.getArticles(e.translatedValue,e.hits.articles.length/10,i).then(function(g){e.hits.articles=e.hits.articles.concat(g)})},e.filterModal=function(){o.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","translationService",function(e,t,a,n,s){var o=this;o.filtered=!1,o.filterGroupsReady=!1,o.filterRubricsReady=!1,o.isMobileView=t.mobile,o.countChanges=0,o.filterInitialized=!1,o.chapterGroupNames=[],o.chapterGroups=[],o.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"},o.searchFilter=e.search().searchFilter||"all",o.$onInit=function(){a.getStaffDirectoryAttributes().then(function(v){o.attributes=v}),o.staffDirEnabled=t.scope.currentScope.network.settings.isStaffDirectoryEnabled;var b=e.search().searchFilter;if(b){switch(b){case"staffs":o.rangeSelection=-1;break;case"all":default:o.rangeSelection=0;break;case"articles":o.rangeSelection=1}o.filtered=!0}if(e.search().staffDirFilter){var k=JSON.parse(decodeURIComponent(e.search().staffDirFilter));k&&(k.datePickers&&(angular.forEach(Object.entries(k.datePickers),function(v){if(v[1].from){var y=new Date(v[1].from);v[1].from=y}if(v[1].until){var I=new Date(v[1].until);v[1].until=I}}),k.attributeRanges=l(k.datePickers)),o.staffDirFilter=k,o.filtered=!0)}o.filterInitialized=!0};var m=scope.currentScope.chapter.chapterGroups,r=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==r){if(m){o.chapterGroups=m;var c=m.map(function(b){return b.name});s.translateByUserLanguageCode(c).then(b=>{b.forEach((k,v)=>{m[v].name=k.translation}),o.chapterGroupNames=m,o.filterGroupsReady=o.chapterGroupNames.length>0});var d=m.map(function(b){return b.chapters}).map((b,k)=>{var v=b.map(function(y){return y.shortName});return s.translateByUserLanguageCode(v).then(y=>{y.forEach((I,h)=>{m[k].chapters[h].shortName=I.translation})})});Promise.all(d).then(()=>{o.filterRubricsReady=!0})}}else m&&(o.chapterGroupNames=m,o.chapterGroups=m),o.filterGroupsReady=!0,o.filterRubricsReady=!0;if(o.chapterGroupSelections={},o.staffDirFilter={},o.changeFilter=function(b){b=o.rangeSelection,o.countChanges++,-1==b&&(o.searchFilter="staffs"),0==b&&(o.searchFilter="all"),1==b&&(o.searchFilter="articles"),e.search("searchFilter",o.searchFilter),o.updateQuery()},e.search().chapterIds){var u=[],i=e.search().chapterIds;angular.isArray(i)?u=i:u.push(i),angular.forEach(u,function(b){angular.forEach(o.chapterGroups,function(k,v){k.chapters.filter(function(y){return y.id===b}).length>0&&(o.chapterGroupSelections[v]=b,o.filtered=!0)})})}var g=function(b){return Object.keys(b).map(function(k){return b[k]})},l=function(b){return Object.keys(b).map(function(k){return{attribute_Id:k,from:b[k].from,until:b[k].until,ignoreYear:b[k].ignoreYear}})};o.updateQuery=function(){if(o.chapterGroupSelections){var b=g(o.chapterGroupSelections);e.search("chapterIds",b)}if(o.staffDirFilter.optionSelections){var k=g(o.staffDirFilter.optionSelections);o.staffDirFilter.optionIds=k}if(o.staffDirFilter.datePickers&&(o.staffDirFilter.attributeRanges=l(o.staffDirFilter.datePickers)),o.staffDirFilter.booleanSelections){var v=g(o.staffDirFilter.booleanSelections);v=v.filter(function(I){return void 0!==I}),o.staffDirFilter.booleanIds=v}if(o.staffDirFilter.optionSelections||o.chapterGroupSelections||o.booleanSelections||o.datePickers){var y=encodeURIComponent(JSON.stringify(o.staffDirFilter));e.search("staffDirFilter",y),o.filtered=!0,o.searchCallback(o.searchFilter,o.staffDirFilter)}},o.resetFilter=function(){e.search("chapterIds",null),o.chapterGroupSelections={},o.staffDirFilter={},e.search("staffDirFilter",null),o.filtered=!1,o.searchCallback(o.searchFilter,o.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 m,r,o=[];for(m in s)e.call(s,m)&&o.push(m);if(t)for(r=0;r<n;r++)e.call(s,a[r])&&o.push(a[r]);return o}}()),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(m){angular.forEach(a.chapterGroups,function(r,c){r.chapters.filter(function(f){return f.id===m}).length>0&&(a.chapterGroupSelections[c]=m,a.filtered=!0)})})}a.updateQuery=function(){a.chapterGroupSelections&&(a.filtered=!0)},a.resetFilter=function(){a.chapterGroupSelections={},a.filtered=!1},a.save=function(){a.$dismiss()}}]),app.factory("searchService",["$http","$q",function(e,t){var a=function(l,b,k){var v={};return l&&(v.query=l),b&&(v.page=b),k&&(v.chapterIds=k),v};function g(l,b,k){var v=t.defer();return e.post(scope.apiEndpoint+k,a(l,b)).then(function(y){v.resolve(y.data)},function(){v.reject()}),v.promise}return{search:function(l,b){var k=t.defer();return e.post(scope.apiEndpoint+"search",a(l,0,b)).then(function(v){k.resolve(v.data)},function(){k.reject()}),k.promise},getArticles:function(l,b,k){var v=t.defer();return e.post(scope.apiEndpoint+"search/articles",a(l,b,k)).then(function(y){v.resolve(y.data)},function(){v.reject()}),v.promise},getAssetArticles:function(l,b){var k=t.defer();return e.post(scope.apiEndpoint+"search/assets/articles",a(l,b)).then(function(v){k.resolve(v.data)},function(){k.reject()}),k.promise},getAssetSponsoredArticles:function(l,b){var k=t.defer();return e.post(scope.apiEndpoint+"search/assets/articles/sponsored?q=",a(l,b)).then(function(v){k.resolve(v.data)},function(){k.reject()}),k.promise},getAssetImages:function(l,b){return g(l,b,"search/assets/images")},getSponsoredAssetImages:function(l,b){return g(l,b,"search/assets/images/sponsored")},getAssetFiles:function(l,b){return g(l,b,"search/assets/files")},getSponsoredAssetFiles:function(l,b){return g(l,b,"search/assets/files/sponsored")},getStaffDirectoryUsers:function(l,b,k,v,y){var I=t.defer();return e.post(scope.apiEndpoint+"search/staffDirectory",{query:l,optionIds:b,booleanIds:k,attributeDateTimeRanges:v,filterState:y}).then(function(h){I.resolve(h.data)},function(){I.reject()}),I.promise},getStaffDirectoryAttributes:function(){var l=t.defer();return e.get(scope.apiEndpoint+"staffDirectory/attributes").then(function(b){l.resolve(b.data)},function(){l.reject()}),l.promise}}}]),app.controller("SnipApplyController",["$interpolate","$scope","snipService","authorService","profileService","$stateParams","$location",function(e,t,a,n,s,o,m){t.snip=null;var r=o.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(c){c.isJournalist?(a.getSnipDetails(r).then(function(f){t.snip=f}),n.checkApply(r).then(function(f){t.hasApplied=f})):m.path("/author/register").search("fromApply","1")},function(c){m.path("/author/register")}),t.apply=function(){n.applySnip(r).then(function(c){m.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,o,m,r,c,f,d,u){if((!document.referrer||!document.referrer.startsWith(scope.globalSettings.serverCdnUrl))&&!a.get()&&history){var i=s.path();history.replaceState(null,"",scope.currentChapter.path),history.pushState(null,"",scope.currentChapter.path+i)}var v;if(t.$on("$viewContentLoaded",function(){m(function(){t.viewContentLoaded=!0});var v=e.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==v){var y=e.scope.profile,I=e.scope.network.settings.languagePack.split("-")[0];null!=y.activeUserLanguage?.vendorLanguageCode&&I!=y.activeUserLanguage?.vendorLanguageCode&&t.translateSnip(y.activeUserLanguage?.vendorLanguageCode)}}),t.hasHowto=e.scope.staticArticles.filter(function(v){return"/howto"===v.path}).length>0,t.hideUserInteraction=1==scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==e.scope.profile.isRegistered&&0==e.app,$(window).scroll(function(v){$(v.target).scrollTop()>100?$(".snipDetail-mobileNavigation-wrapper").addClass("snipDetail-mobileNavigation-wrapper-scrolled"):$(".snipDetail-mobileNavigation-wrapper").removeClass("snipDetail-mobileNavigation-wrapper-scrolled")}),t.recommendedSnips=[],t.snip=o,t.availableTargetLanguages=null,d.getAvailableTargetLanguages().then(function(v){t.availableTargetLanguages=v}),t.selectedTargetLanguage=e.profile.favoriteLanguage,t.$on("apicodo.translate",function(v,y){t.translateSnip(y)}),t.translateSnip=function(v){v&&(t.selectedTargetLanguage=v),null===t.selectedTargetLanguage?n.getSnipDetails(t.snip.id).then(function(y){t.snip.text=y.text,t.snip.formattedText=y.formattedText,t.snip.assetReferences=y.assetReferences,k()}):n.getTranslatedSnipDetails(t.snip.id,t.selectedTargetLanguage).then(function(y){t.snip.text=y.text,t.snip.formattedText=y.formattedText,t.snip.assetReferences=y.assetReferences,k(),c.updateFavoriteLanguage(t.selectedTargetLanguage).then(function(){e.profile.favoriteLanguage=t.selectedTargetLanguage})})},e.scope.currentScope.chapter.settings.enableSnipRecommendations&&n.getRecommendedSnips(t.snip.id).then(function(v){t.recommendedSnips=v}),o.articleId&&r.getArticleDetails(o.articleId).then(function(v){t.article=v}),t.deleteSnip=function(){f.open({templateUrl:"/ClientApp/src/legacy-app/snip/snipDeleteDialog.html",controller:"SnipDeleteDialog",size:"lg",resolve:{snip:function(){return t.snip}}})},t.contactSnipUser=function(){c.getProfile().then(function(v){v.isRegistered&&f.open({templateUrl:"/ClientApp/src/legacy-app/user/userContactDialog.html",controller:"UserContactDialog",size:"lg",resolve:{snip:function(){return t.snip}}})})},(v=window.navigator.userAgent).indexOf(" Android ")>-1&&v.indexOf("Version/")>-1&&parseFloat((v.match("Android ([0-9.]+)")||[])[1])<=4.4){var l=$(window).height();$(".app-mobile .snipDetail-wrapper").css("height",l+"px"),$(".app-desktop .snipDetail-wrapper").css("height",l+"px")}var b=function(v){t.snip.assetReferences.unshift(v),k()};function k(){t.snip.assetsMedia=[],t.snip.assetsFacts=[],t.snip.assetsQuestions=[],t.snip.assetsComments=[],angular.isDefined(o.assetReferences)&&o.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)?t.snip.assetsMedia.push(v):null!==v.assetText&&(8===v.assetText.type?t.snip.assetsFacts.push(v):9===v.assetText.type?t.snip.assetsQuestions.push(v):0===v.assetText.type&&t.snip.assetsComments.push(v))})}t.assetCreateOpinionDialog=function(){f.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(v){return u.insertAssetTextToSnip(v,t.snip.id)}}}})},t.assetCreateFactDialog=function(){f.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(v){return u.insertAssetTextToSnip(v,t.snip.id)}}}})},t.assetCreateQuestionDialog=function(){f.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(v){return u.insertAssetTextToSnip(v,t.snip.id)}}}})},t.assetCreateImageDialog=function(v,y,I){v&&0!==v.length?y.length||f.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return v},resultCallback:function(){return b},createAssetAsync:function(){return function(h){return u.insertAssetImageToSnip(h,t.snip.id)}}}}):y||I.$setPristine()},t.assetCreateVideoDialog=function(){f.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return b},createAssetAsync:function(){return function(v){return u.insertAssetTextToSnip(v,t.snip.id)}}}})},t.assetCreateGifDialog=function(){f.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return b},createAssetAsync:function(){return function(v){return u.insertAssetTextToSnip(v,t.snip.id)}}}})},t.assetSearchDialog=function(){f.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(v){f.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return v}}})},t.scrollTo=function(v){$("body,html").animate({scrollTop:$(v).offset().top-120},1e3)},k(),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,o,m){AmCharts.isReady=!0;var i,g,l,b,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",c=[{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\\."]}],f=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],d=[],u=[];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 k=function(h){var w=0,p=0,x=0,M=0,R=0,D=0,A=0,S=0,U=0,C=[];d.length=0,$.each(h,function(F,V){w+=V.desktopReadingCount,p+=V.tabletReadingCount,x+=V.mobileReadingCount,A+=V.uniqueReadingCount,D+=V.uniqueImpressionCount,S+=V.uniqueReadingHavingImpressionsCount,M+=V.readingTime,U+=V.impressionCount,R+=V.readingCount,V.referrers&&$.each(V.referrers,function(T,P){var N=!1;$.each(c,function(q,_){if($.each(_.regEx,function(E,L){if(P.uri.match(L))return C[_.name]?(C[_.name].count+=P.count,N=!0,!1):(C[_.name]={count:P.count,referrer:_.name,color:_.color},d.push(C[_.name]),N=!0,!1)}),N)return!1}),N||(C.others?C.others.count+=P.count:(C.others={count:P.count,referrer:"Andere"},d.push(C.others)))})}),e.$apply(function(){e.totalUniqueReadingCount=A,e.totalUniqueReadingHavingImpressionsCount=S,e.totalReadingTime=M,e.totalImpressionCount=U,e.totalReadingCount=R,e.totalUniqueImpressionCount=D}),f[0].value=Math.round(100/(R/w)),f[1].value=Math.round(100/(R/p)),f[2].value=Math.round(100/(R/x)),b.validateData(),i.validateData()},v=function(){var h=moment(g.startDate).startOf("day").toDate(),w=moment(g.endDate).startOf("day").toDate(),p=e.report.filter(function(x){return x.day>=h&&x.day<=w});k(p),l.zoom(h,moment(w).add(1,"d").toDate()),e.$apply(function(){e.startDay=h,e.endDay=w})};e.filterChapter=function(h){h.filtered=!h.filtered,function(){var h=e.chapters.filter(function(w){return!w.filtered}).map(function(w){return w.id});e.filterDisabled=!0,a.getSnipReport(e.snip.id,{chapterIds:h}).then(function(w){w.forEach(function(p){p.day=moment(p.day.replace("Z","")).toDate()}),e.report=w,s(function(){(function(h){u.length=0,$.each(h,function(w,p){u.push(p)}),g.validateData(),l.validateData()})(w),v(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(h){return e.filterDisabled||1===e.chapters.filter(function(w){return!w.filtered}).length&&!h.filtered},a.getSnipDetails(m.id).then(function(h){e.snip=h,a.getSnipReport({snipId:h.id}).then(function(w){w.forEach(function(x){x.day=moment(x.day.replace("Z","")).toDate()}),e.report=w,e.startDay=w[0].day,e.endDay=w[w.length-1].day;var p=[];$.each(h.chapterSlugs,function(x,M){p.push(n.getChapter(M))}),p=p.filter(function(x){return 2===x.managementState}),e.chapters=p,$.each(w,function(x,M){u.push(M)}),s(function(){i=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:f,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:u,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(){v()}),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:"readingCount",toField:"readingCount"}],dataProvider:u,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(x){x.dataItem.dataContext.name.startsWith("http")&&window.prompt(scope.currentScope.network.getResourceOrKeyName("web_report_copyLink"),x.dataItem.dataContext.referrer)}),k(w)})},function(){e.error=!0})})}]),app.controller("SnipReportController",["$scope","$rootScope","snip","chapterReport","snipService","scopeService","$timeout",function(e,t,a,n,s,o,m){AmCharts.isReady=!0;var r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",c=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:r,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],f=[],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}],u=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];n.forEach(function(i){i.chapter=o.getChapter(i.chapterSlug),i.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,m(function(){var i,g,l,b,k,v,y;$.each(n,function(R,D){D.active=!0});var I=[],h=function(){I.length=0,n.hasVariants=!1,$.each(n[0].report.calendar,function(R,D){I.push({start:D.start,end:D.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(R,D){if(D.active){n[R-1]&&2===n[R-1].chapter.managementState&&2===D.chapter.managementState&&n[R-1].chapter.name!==D.chapter.name&&(n.multiChapterShipment=!0);var A=a.id;$.each(D.report.calendar,function(S,U){U.id=A,I[S].viewableImpressions+=U.viewableImpressions,I[S].uniqueViewableImpressions+=U.uniqueViewableImpressions,I[S].billableViewableImpressions+=U.billableViewableImpressions,I[S].activeTimeSeconds+=U.activeTimeSeconds,I[S].readings+=U.readings,I[S].uniqueReadings+=U.uniqueReadings,I[S].uniqueReadingsHavingViewableImpressions+=U.uniqueReadingsHavingViewableImpressions,I[S].uniqueReadingPercentageReads+=U.uniqueReadingPercentageReads,I[S].maleUniqueReadings+=U.maleUniqueReadings,I[S].femaleUniqueReadings+=U.femaleUniqueReadings,I[S].desktopReadings+=U.desktopReadings,I[S].mobileReadings+=U.mobileReadings,I[S].tabletReadings+=U.tabletReadings,I[S].age1617MaleUniqueReadings+=U.age1617MaleUniqueReadings,I[S].age1824MaleUniqueReadings+=U.age1824MaleUniqueReadings,I[S].age2534MaleUniqueReadings+=U.age2534MaleUniqueReadings,I[S].age3544MaleUniqueReadings+=U.age3544MaleUniqueReadings,I[S].age4554MaleUniqueReadings+=U.age4554MaleUniqueReadings,I[S].age55MaleUniqueReadings+=U.age55MaleUniqueReadings,I[S].age1617FemaleUniqueReadings+=U.age1617FemaleUniqueReadings,I[S].age1824FemaleUniqueReadings+=U.age1824FemaleUniqueReadings,I[S].age2534FemaleUniqueReadings+=U.age2534FemaleUniqueReadings,I[S].age3544FemaleUniqueReadings+=U.age3544FemaleUniqueReadings,I[S].age4554FemaleUniqueReadings+=U.age4554FemaleUniqueReadings,I[S].age55FemaleUniqueReadings+=U.age55FemaleUniqueReadings,I[S].uniqueReadingPercentage24Reads+=U.uniqueReadingPercentage24Reads,I[S].uniqueReadingPercentage2549Reads+=U.uniqueReadingPercentage2549Reads,I[S].uniqueReadingPercentage5074Reads+=U.uniqueReadingPercentage5074Reads,I[S].uniqueReadingPercentage75100Reads+=U.uniqueReadingPercentage75100Reads,U.referrers.length&&U.referrers.forEach(function(C){I[S].referrers.push(C)})})}}),i.validateData(),g.validateData(),l.validateData(),b.validateData(),k.validateData(),v.validateData(),y.validateData()},w=n.summary={referrers:[]},p=function(R,D){w.viewableImpressions=0,w.uniqueViewableImpressions=0,w.billableViewableImpressions=0,w.activeTimeSeconds=0,w.readings=0,w.uniqueReadings=0,w.uniqueReadingsHavingViewableImpressions=0,w.uniqueReadingPercentageReads=0,w.maleUniqueReadings=0,w.femaleUniqueReadings=0,w.desktopReadings=0,w.mobileReadings=0,w.tabletReadings=0,w.age1617MaleUniqueReadings=0,w.age1824MaleUniqueReadings=0,w.age2534MaleUniqueReadings=0,w.age3544MaleUniqueReadings=0,w.age4554MaleUniqueReadings=0,w.age55MaleUniqueReadings=0,w.age1617FemaleUniqueReadings=0,w.age1824FemaleUniqueReadings=0,w.age2534FemaleUniqueReadings=0,w.age3544FemaleUniqueReadings=0,w.age4554FemaleUniqueReadings=0,w.age55FemaleUniqueReadings=0,w.uniqueReadingPercentage24Reads=0,w.uniqueReadingPercentage2549Reads=0,w.uniqueReadingPercentage5074Reads=0,w.uniqueReadingPercentage75100Reads=0;var A=0,S=0,U=0,C=0,F=0,V=0,T=0,P=0,N=0,q=0,_=0,E=0,L=0,j=0,W=0;w.start=R,w.end=D,w.referrers.length=0,$.each(I,function(Q,G){var O=new Date(G.start);O<R||O>D||(w.viewableImpressions+=G.viewableImpressions,w.uniqueViewableImpressions+=G.uniqueViewableImpressions,w.billableViewableImpressions+=G.billableViewableImpressions,w.activeTimeSeconds+=G.activeTimeSeconds,w.readings+=G.readings,w.uniqueReadingPercentageReads+=G.uniqueReadingPercentageReads,w.maleUniqueReadings+=G.maleUniqueReadings,w.femaleUniqueReadings+=G.femaleUniqueReadings,w.uniqueReadings+=G.uniqueReadings,w.uniqueReadingsHavingViewableImpressions+=G.uniqueReadingsHavingViewableImpressions,w.uniqueReadingPercentage24Reads+=G.uniqueReadingPercentage24Reads,w.uniqueReadingPercentage2549Reads+=G.uniqueReadingPercentage2549Reads,w.uniqueReadingPercentage5074Reads+=G.uniqueReadingPercentage5074Reads,w.uniqueReadingPercentage75100Reads+=G.uniqueReadingPercentage75100Reads,A+=G.desktopReadings,S+=G.mobileReadings,U+=G.tabletReadings,C+=G.age1617MaleUniqueReadings,F+=G.age1824MaleUniqueReadings,V+=G.age2534MaleUniqueReadings,T+=G.age3544MaleUniqueReadings,P+=G.age4554MaleUniqueReadings,N+=G.age55MaleUniqueReadings,q+=G.age1617FemaleUniqueReadings,_+=G.age1824FemaleUniqueReadings,E+=G.age2534FemaleUniqueReadings,L+=G.age3544FemaleUniqueReadings,j+=G.age4554FemaleUniqueReadings,W+=G.age55FemaleUniqueReadings,G.referrers.forEach(function(H){var J=w.referrers.filter(function(Z){return Z.referrer===H.referrer});J.length?J[0].readings+=H.readings:w.referrers.push({referrer:H.referrer,readings:H.readings,color:H.color})}))}),w.referrers.sort(function(Q,G){return G.readings-Q.readings}),w.referrers.forEach(function(Q){Q.name=Q.referrer?Q.referrer.substring(0,30):Q.referrer}),f.length=0,[].push.apply(f,w.referrers.slice(0,8)),f.filter(function(Q){return!Q.color}).forEach(function(Q,G){Q.color=b.colors[G]});var K=w.referrers.slice(9,-1),Y={referrer:scope.currentScope.network.getResourceOrKeyName("web_report_others"),name:scope.currentScope.network.getResourceOrKeyName("web_report_others"),readings:0,color:b.colors[10]};K.forEach(function(Q){Y.readings+=Q.readings}),Y.readings>0&&f.push(Y);var B=A+S+U;w.desktopReadings=Math.round(100/(B/A)),w.mobileReadings=Math.round(100/(B/S)),w.tabletReadings=Math.round(100/(B/U)),w.maleUniqueReadings=Math.round(w.maleUniqueReadings),w.femaleUniqueReadings=Math.round(w.femaleUniqueReadings),c[0].value=w.femaleUniqueReadings,c[1].value=w.maleUniqueReadings;var z=C+F+V+T+P+N+q+_+E+L+j+W;w.age1617MaleUniqueReadings=Math.round(100/(z/C)),w.age1824MaleUniqueReadings=Math.round(100/(z/F)),w.age2534MaleUniqueReadings=Math.round(100/(z/V)),w.age3544MaleUniqueReadings=Math.round(100/(z/T)),w.age4554MaleUniqueReadings=Math.round(100/(z/P)),w.age55MaleUniqueReadings=Math.round(100/(z/N)),w.age1617FemaleUniqueReadings=Math.round(100/(z/q)),w.age1824FemaleUniqueReadings=Math.round(100/(z/_)),w.age2534FemaleUniqueReadings=Math.round(100/(z/E)),w.age3544FemaleUniqueReadings=Math.round(100/(z/L)),w.age4554FemaleUniqueReadings=Math.round(100/(z/j)),w.age55FemaleUniqueReadings=Math.round(100/(z/W)),d[0].male=Math.round(-1*w.age1617MaleUniqueReadings),d[1].male=Math.round(-1*w.age1824MaleUniqueReadings),d[2].male=Math.round(-1*w.age2534MaleUniqueReadings),d[3].male=Math.round(-1*w.age3544MaleUniqueReadings),d[4].male=Math.round(-1*w.age4554MaleUniqueReadings),d[5].male=Math.round(-1*w.age55MaleUniqueReadings),d[0].female=Math.round(w.age1617FemaleUniqueReadings),d[1].female=Math.round(w.age1824FemaleUniqueReadings),d[2].female=Math.round(w.age2534FemaleUniqueReadings),d[3].female=Math.round(w.age3544FemaleUniqueReadings),d[4].female=Math.round(w.age4554FemaleUniqueReadings),d[5].female=Math.round(w.age55FemaleUniqueReadings),u[0].value=w.desktopReadings,u[1].value=w.mobileReadings,u[2].value=w.tabletReadings,l.validateData(),k.validateData(),v.validateData(),y.validateData(),b.validateData(),e.$$phase||e.$apply()};i=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:I,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:I,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}}),l=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]]%"}),(b=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:f,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(R){R.dataItem.dataContext.referrer.startsWith("http")&&window.prompt(scope.currentScope.network.getResourceOrKeyName("web_report_copyLink"),R.dataItem.dataContext.referrer)}),k=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(R){return-1*R.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(R){return R<0?-1*R+"":R+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),v=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:u,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}}),y=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[w],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 x=function(){var R=moment(i.startDate).startOf("day").toDate(),D=moment(i.endDate).startOf("day").add(-1,"d").toDate();p(R,D),g.zoom(R,moment(D).add(1,"d").toDate())};i.addListener("zoomed",function(){x()}),e.toggleChapter=function(R){$.each(n,function(D,A){null!==A.chapter&&A.chapter.name===R.name&&(A.active=!A.active)}),h(),x()},x(),h();var M=!1;setInterval(function(){"visible"!==document.visibilityState||0===I.length||M||(M=!0,s.getLatestReport(a.id).then(function(R){if(R){R[0].start=moment(R[0].start.replace("Z","")).toDate(),R[0].end=moment(R[0].end.replace("Z","")).toDate();var D={start:R[0].start,end:R[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(R,function(U,C){n[U].active&&(D.viewableImpressions+=C.viewableImpressions,D.uniqueViewableImpressions+=C.uniqueViewableImpressions,D.billableViewableImpressions+=C.billableViewableImpressions,D.activeTimeSeconds+=C.activeTimeSeconds,D.readings+=C.readings,D.uniqueReadings+=C.uniqueReadings,D.uniqueReadingsHavingViewableImpressions+=C.uniqueReadingsHavingViewableImpressions,D.uniqueReadingPercentageReads+=C.uniqueReadingPercentageReads,D.maleUniqueReadings+=C.maleUniqueReadings,D.femaleUniqueReadings+=C.femaleUniqueReadings,D.desktopReadings+=C.desktopReadings,D.mobileReadings+=C.mobileReadings,D.tabletReadings+=C.tabletReadings,D.age1617MaleUniqueReadings+=C.age1617MaleUniqueReadings,D.age1824MaleUniqueReadings+=C.age1824MaleUniqueReadings,D.age2534MaleUniqueReadings+=C.age2534MaleUniqueReadings,D.age3544MaleUniqueReadings+=C.age3544MaleUniqueReadings,D.age4554MaleUniqueReadings+=C.age4554MaleUniqueReadings,D.age55MaleUniqueReadings+=C.age55MaleUniqueReadings,D.age1617FemaleUniqueReadings+=C.age1617FemaleUniqueReadings,D.age1824FemaleUniqueReadings+=C.age1824FemaleUniqueReadings,D.age2534FemaleUniqueReadings+=C.age2534FemaleUniqueReadings,D.age3544FemaleUniqueReadings+=C.age3544FemaleUniqueReadings,D.age4554FemaleUniqueReadings+=C.age4554FemaleUniqueReadings,D.age55FemaleUniqueReadings+=C.age55FemaleUniqueReadings,D.uniqueReadingPercentage24Reads+=C.uniqueReadingPercentage24Reads,D.uniqueReadingPercentage2549Reads+=C.uniqueReadingPercentage2549Reads,D.uniqueReadingPercentage5074Reads+=C.uniqueReadingPercentage5074Reads,D.uniqueReadingPercentage75100Reads+=C.uniqueReadingPercentage75100Reads,C.referrers.length&&C.referrers.forEach(function(F){D.referrers.push(F)}))}),I[I.length-1].start-R[0].start==0?I[I.length-1]=D:I.push(D),i.validateData(),g.validateData();var A=moment(i.startDate).startOf("day").toDate(),S=moment(i.endDate).startOf("day").add(-1,"d").toDate();A<=R[0].start&&S>=R[0].start&&p(A,S),M=!1}}))},1e4)},function(){e.error=!0},function(){$location.path("/")})}]),app.factory("snipService",["$http","$q","$location","$rootScope",function(e,t,a,n){var s={},o=function(h,w){return h.id?(h.assetsMedia=[],h.assetsFacts=[],h.assetsQuestions=[],h.assetsComments=[],h.assetReferences.forEach(function(p){null!==p.assetImage||null!==p.assetText&&(5===p.assetText.type||6===p.assetText.type||7===p.assetText.type||10===p.assetText.type||13===p.assetText.type)?h.assetsMedia.push(p):null!==p.assetText&&(8===p.assetText.type?h.assetsFacts.push(p):9===p.assetText.type?h.assetsQuestions.push(p):0===p.assetText.type&&h.assetsComments.push(p))}),s[h.id+(w||"")]?(angular.copy(h,s[h.id+(w||"")]),s[h.id]):(s[h.id+(w||"")]=h,h)):h};return{getSnips:function(){var h=t.defer(),w=n.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==w){var p=n.scope.profile,x=n.scope.network.settings.languagePack.split("-")[0];if(null!=p.activeUserLanguage?.vendorLanguageCode&&x!=p.activeUserLanguage?.vendorLanguageCode){var M=p.activeUserLanguage?.vendorLanguageCode;return e.post(scope.apiEndpoint+"snips/translate/"+M).then(function(R){var D=R.data;D.forEach(function(U,C){D[C]=o(U,M)}),1==w&&n.scope.network.settings.languagePack.split("-"),h.resolve(D)},function(){h.reject()}),h.promise}}return e.get(scope.apiEndpoint+"snips").then(function(R){var D=R.data;return D.forEach(function(A,S){D[S]=o(A)}),h.resolve(D),h.promise},function(){h.reject()}),h.promise},getTranslatedSnipList:function(h){var w=t.defer();return e.post(scope.apiEndpoint+"snips/translate/"+h).then(function(p){w.resolve(p.data)},function(p){console.error("getTranslatedSnipList http",p),w.reject()}),w.promise},getSnipReport:function(h){var w=t.defer();return e.post(scope.apiEndpoint+"snips/report",h).then(function(p){w.resolve(p.data)},function(){w.reject()}),w.promise},getSnipsForEventCalendar:function(){var h=t.defer();return e.get(scope.apiEndpoint+"snips/events").then(function(w){var p=w.data;return p.forEach(function(x,M){p[M]=o(x)}),h.resolve(p),h.promise},function(){h.reject()}),h.promise},getSnipDetails:function(h){var w=t.defer();return e.get(scope.apiEndpoint+"snips/"+h).then(function(p){w.resolve(o(p.data))},function(){w.reject()}),w.promise},getTranslatedSnipDetails:function(h,w){var p=t.defer();return e.post(scope.apiEndpoint+"snips/"+h+"/translate/"+w).then(function(x){p.resolve(x.data)},function(){p.reject()}),p.promise},getSnipDetailsFromCache:function(h){var w=t.defer();return o[h]?w.resolve(s[h]):w.reject(),w.promise},createSnip:function(h){var w=t.defer();return e.post(scope.apiEndpoint+"snips",h).then(function(p){w.resolve(o(p.data))},function(){w.reject()}),w.promise},like:function(h){var w=t.defer();return e.put(scope.apiEndpoint+"snips/"+h+"/like").then(function(p){w.resolve(p.data)},function(){w.reject()}),w.promise},deleteSnip:function(h){var w=t.defer();return e.delete(scope.apiEndpoint+"snips/"+h).then(function(p){w.resolve()},function(){w.reject()}),w.promise},getRecommendedSnips:function(h){var w=t.defer();return e.get(scope.apiEndpoint+"snips/"+h+"/recommended").then(function(p){var x=p.data,M=n.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==M){var R=n.scope.profile,D=n.scope.network.settings.languagePack.split("-")[0];if(null!=R.activeUserLanguage?.vendorLanguageCode&&D!=R.activeUserLanguage?.vendorLanguageCode){for(var A=[],S=0;S<x.length;S++){var C=s[x[S].id+R.activeUserLanguage?.vendorLanguageCode];C&&A.push(C)}return void w.resolve(x=A)}}x.forEach(function(F,V){x[V]=o(F)}),w.resolve(x)},function(){w.reject()}),w.promise},getReport:function(h){var w=t.defer();return e.get(scope.apiEndpoint+"snips/"+h+"/report").then(function(p){w.resolve(p.data)},function(){w.reject()}),w.promise},getLatestReport:function(h){var w=t.defer();return e.get(scope.apiEndpoint+"snips/"+h+"/report/latest",{ignoreLoadingBar:!0}).then(function(p){w.resolve(p.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,o){return new Date(s.published)<new Date(o.published)?s:o});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,o,m){AmCharts.isReady=!0;var d,u,i,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",c=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],f=[];e.report=null,e.totalUniqueViewCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var g=function(v){var y=0,I=0,h=0,w=0,p=0,x=0,M=0;$.each(v,function(D,A){y+=A.desktopImpressionCount,I+=A.tabletImpressionCount,h+=A.mobileImpressionCount,w+=A.uniqueViews,p+=A.impressionTime,x+=A.totalViewTime,M+=A.impressionCount}),e.$apply(function(){e.totalUniqueViewCount=w,e.totalImpressionTime=p,e.totalViewTime=x,e.totalImpressionCount=M});var R=y+h+I;c[0].value=Math.round(100/(R/y)),c[1].value=Math.round(100/(R/h)),c[2].value=Math.round(100/(R/I)),d.validateData()},l=function(){var v=moment(u.startDate).startOf("day").toDate(),y=moment(u.endDate).startOf("day").toDate(),I=e.report.filter(function(h){return h.day>=v&&h.day<=y});g(I),i.zoom(v,moment(y).add(1,"d").toDate()),e.$apply(function(){e.startDay=v,e.endDay=y})};e.filterChapter=function(v){v.filtered=!v.filtered,function(){var v=e.chapters.filter(function(y){return!y.filtered}).map(function(y){return y.id});e.filterDisabled=!0,a.getSpecialReport({specialId:s.id,chapterIds:v}).then(function(y){y.forEach(function(I){I.day=moment(I.day.replace("Z","")).toDate()}),e.report=y,o(function(){(function(v){f.length=0,$.each(v,function(y,I){f.push(I)}),u.validateData(),i.validateData()})(y),l(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(v){return e.filterDisabled||1===e.chapters.filter(function(y){return!y.filtered}).length&&!v.filtered},a.getSpecialInfo(s.id).then(function(v){e.special=v,a.getSpecialReport({specialId:s.id}).then(function(y){y.forEach(function(h){h.day=moment(h.day.replace("Z","")).toDate()}),e.report=y,e.startDay=y[0].day,e.endDay=y[y.length-1].day;var I=[];$.each(v.chapterSlugs,function(h,w){I.push(n.getChapter(w))}),I=I.filter(function(h){return 2===h.managementState}),e.chapters=I,$.each(y,function(h,w){f.push(w)}),o(function(){d=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}}),(u=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:f,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(){l()}),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:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"uniqueViews",toField:"uniqueViews"}],dataProvider:f,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(y)})},function(){e.error=!0})})}]),app.controller("SpecialReportController",["$scope","$rootScope","specialService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,o,m,r){AmCharts.isReady=!0;var c=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getSpecialInfo(s.id).then(function(i){e.special=i,a.getSpecialCalendar(s.id).then(function(g){g.forEach(function(l){l.chapter=n.getChapter(l.chapterSlug),l.report.calendar.forEach(function(b){b.start=moment(b.start.replace("Z","")).toDate(),b.end=moment(b.end.replace("Z","")).toDate()})}),i.chapterReport=g,m(function(){var l,b,k,v,y,I,h=new Set;$.each(g,function(D,A){A.active=!0,h.add(A.chapter.name)}),g.uniqueChapters=[],h.forEach(function(D){g.uniqueChapters.push(D)});var w=[],p=function(){w.length=0,$.each(g[0].report.calendar,function(D,A){w.push({start:A.start,end:A.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(D,A){if(A.active){g[D-1]&&2===g[D-1].chapter.managementState&&2===A.chapter.managementState&&g[D-1].chapter.name!==A.chapter.name&&(g.multiChapterShipment=!0);var S=A.report.special.Id;$.each(A.report.calendar,function(U,C){C.specialId=S;var F=w[U];F.viewableImpressions+=C.viewableImpressions,F.activeTimeSeconds+=C.activeTimeSeconds,F.readings+=C.views,F.maleUniqueViewableImpressions+=C.maleViewableImpressions,F.femaleUniqueViewableImpressions+=C.femaleViewableImpressions,F.uniqueReadings+=C.uniqueViews,F.desktopReadings+=C.desktopViews,F.mobileReadings+=C.mobileViews,F.tabletReadings+=C.tabletViews,F.age1617MaleUniqueViewableImpressions+=C.age1617MaleViewableImpressions,F.age1824MaleUniqueViewableImpressions+=C.age1824MaleViewableImpressions,F.age2534MaleUniqueViewableImpressions+=C.age2534MaleViewableImpressions,F.age3544MaleUniqueViewableImpressions+=C.age3544MaleViewableImpressions,F.age4554MaleUniqueViewableImpressions+=C.age4554MaleViewableImpressions,F.age55MaleUniqueViewableImpressions+=C.age55MaleViewableImpressions,F.age1617FemaleUniqueViewableImpressions+=C.age1617FemaleViewableImpressions,F.age1824FemaleUniqueViewableImpressions+=C.age1824FemaleViewableImpressions,F.age2534FemaleUniqueViewableImpressions+=C.age2534FemaleViewableImpressions,F.age3544FemaleUniqueViewableImpressions+=C.age3544FemaleViewableImpressions,F.age4554FemaleUniqueViewableImpressions+=C.age4554FemaleViewableImpressions,F.age55FemaleUniqueViewableImpressions+=C.age55FemaleViewableImpressions})}}),k.validateData(),v.validateData(),y.validateData(),I.validateData()},x=g.summary={};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}}),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:c,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_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}}),k=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:f,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),v=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:c,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(D,A){return-1*D.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(D){return D<0?-1*D+"":D+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),y=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:u,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}}),I=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[x],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 R=function(){var D=moment(l.startDate).startOf("day").toDate(),A=moment(l.endDate).startOf("day").add(-1,"d").toDate();b.zoom(D,moment(A).add(1,"d").toDate()),function(D,A){x.viewableImpressions=0,x.billableViewableImpressions=0,x.activeTimeSeconds=0,x.readings=0,x.uniqueReadings=0,x.uniqueReadingsHavingViewableImpressions=0,x.uniqueReadingPercentageReads=0,x.maleUniqueViewableImpressions=0,x.femaleUniqueViewableImpressions=0,x.desktopReadings=0,x.mobileReadings=0,x.tabletReadings=0,x.age1617MaleUniqueViewableImpressions=0,x.age1824MaleUniqueViewableImpressions=0,x.age2534MaleUniqueViewableImpressions=0,x.age3544MaleUniqueViewableImpressions=0,x.age4554MaleUniqueViewableImpressions=0,x.age55MaleUniqueViewableImpressions=0,x.age1617FemaleUniqueViewableImpressions=0,x.age1824FemaleUniqueViewableImpressions=0,x.age2534FemaleUniqueViewableImpressions=0,x.age3544FemaleUniqueViewableImpressions=0,x.age4554FemaleUniqueViewableImpressions=0,x.age55FemaleUniqueViewableImpressions=0,x.uniqueReadingPercentage24Reads=0,x.uniqueReadingPercentage2549Reads=0,x.uniqueReadingPercentage5074Reads=0,x.uniqueReadingPercentage75100Reads=0;var S=0,U=0,C=0,F=0,V=0,T=0,P=0,N=0,q=0,_=0,E=0,L=0,j=0,W=0,K=0;x.start=D,x.end=A,$.each(w,function(z,Q){var G=new Date(Q.start);G<D||G>A||(x.viewableImpressions+=Q.viewableImpressions,x.activeTimeSeconds+=Q.activeTimeSeconds,x.readings+=Q.readings,x.maleUniqueViewableImpressions+=Q.maleUniqueViewableImpressions,x.femaleUniqueViewableImpressions+=Q.femaleUniqueViewableImpressions,x.uniqueReadings+=Q.uniqueReadings,S+=Q.desktopReadings,U+=Q.mobileReadings,C+=Q.tabletReadings,F+=Q.age1617MaleUniqueViewableImpressions,V+=Q.age1824MaleUniqueViewableImpressions,T+=Q.age2534MaleUniqueViewableImpressions,P+=Q.age3544MaleUniqueViewableImpressions,N+=Q.age4554MaleUniqueViewableImpressions,q+=Q.age55MalUniqueeViewableImpressions,_+=Q.age1617FemaleUniqueViewableImpressions,E+=Q.age1824FemaleUniqueViewableImpressions,L+=Q.age2534FemaleUniqueViewableImpressions,j+=Q.age3544FemaleUniqueViewableImpressions,W+=Q.age4554FemaleUniqueViewableImpressions,K+=Q.age55FemaleUniqueViewableImpressions)});var Y=S+U+C;x.desktopReadings=Math.round(100/(Y/S)),x.mobileReadings=Math.round(100/(Y/U)),x.tabletReadings=Math.round(100/(Y/C)),x.maleUniqueViewableImpressions=Math.round(x.maleUniqueViewableImpressions),x.femaleUniqueViewableImpressions=Math.round(x.femaleUniqueViewableImpressions),f[0].value=x.femaleUniqueViewableImpressions,f[1].value=x.maleUniqueViewableImpressions;var B=x.viewableImpressions-(F+V+T+P+N+q+_+E+L+j+W+K);B>100&&(F+=B*t.scope.globalSettings.reportAverageAge1617Male,V+=B*t.scope.globalSettings.reportAverageAge1824Male,T+=B*t.scope.globalSettings.reportAverageAge2534Male,P+=B*t.scope.globalSettings.reportAverageAge3544Male,N+=B*t.scope.globalSettings.reportAverageAge4554Male,q+=B*t.scope.globalSettings.reportAverageAge55Male,_+=B*t.scope.globalSettings.reportAverageAge1617Female,E+=B*t.scope.globalSettings.reportAverageAge1824Female,L+=B*t.scope.globalSettings.reportAverageAge2534Female,j+=B*t.scope.globalSettings.reportAverageAge3544Female,W+=B*t.scope.globalSettings.reportAverageAge4554Female,K+=B*t.scope.globalSettings.reportAverageAge55Female),x.age1617MaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/F)),x.age1824MaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/V)),x.age2534MaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/T)),x.age3544MaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/P)),x.age4554MaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/N)),x.age55MaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/q)),x.age1617FemaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/_)),x.age1824FemaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/E)),x.age2534FemaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/L)),x.age3544FemaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/j)),x.age4554FemaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/W)),x.age55FemaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/K)),d[0].male=Math.round(-1*x.age1617MaleUniqueViewableImpressions),d[1].male=Math.round(-1*x.age1824MaleUniqueViewableImpressions),d[2].male=Math.round(-1*x.age2534MaleUniqueViewableImpressions),d[3].male=Math.round(-1*x.age3544MaleUniqueViewableImpressions),d[4].male=Math.round(-1*x.age4554MaleUniqueViewableImpressions),d[5].male=Math.round(-1*x.age55MaleUniqueViewableImpressions),d[0].female=Math.round(x.age1617FemaleUniqueViewableImpressions),d[1].female=Math.round(x.age1824FemaleUniqueViewableImpressions),d[2].female=Math.round(x.age2534FemaleUniqueViewableImpressions),d[3].female=Math.round(x.age3544FemaleUniqueViewableImpressions),d[4].female=Math.round(x.age4554FemaleUniqueViewableImpressions),d[5].female=Math.round(x.age55FemaleUniqueViewableImpressions),u[0].value=x.desktopReadings,u[1].value=x.mobileReadings,u[2].value=x.tabletReadings,k.validateData(),v.validateData(),y.validateData(),I.validateData(),e.$apply()}(D,A)};l.addListener("zoomed",function(D){R()}),e.toggleChapter=function(D){$.each(g,function(A,S){S.chapter.name===D&&(S.active=!S.active)}),m(function(){p(),R()},50)},p(),b.validateNow(),l.validateNow(),l.setDefaultPeriod(),R(),l.zoom(new Date(i.start),new Date)},function(){e.error=!0})})},function(){r.path("/")});var f=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:c,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}],u=[{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(u){var i=t.defer();return u?e.get(scope.apiEndpoint+"specials/"+u).then(function(g){i.resolve(g.data)},function(){i.reject()}):n.length>0?i.resolve(n.splice(0,1)[0]):s.push(i),i.promise},getSpecialInfo:function(u){var i=t.defer();return e.get(scope.apiEndpoint+"specials/"+u+"/ReportInfo").then(function(g){i.resolve(g.data)},function(){i.reject()}),i.promise},getSpecialCalendar:function(u){var i=t.defer();return e.get(scope.apiEndpoint+"specials/"+u+"/ReportCalendar").then(function(g){i.resolve(g.data)},function(){i.reject()}),i.promise},resolve:function(u,i){var g=t.defer();return s.length>u&&(u=s.length),e.get(scope.apiEndpoint+"specials/"+u+"/"+i).then(function(l){g.resolve(l.data),n.length=0,n.push.apply(n,l.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 u=t.defer();return e.get(scope.apiEndpoint+"specials/sections").then(function(i){u.resolve(i.data)},function(){u.reject()}),u.promise},getSpecialReport:function(u){var i=t.defer();return e.post(scope.apiEndpoint+"specials/report",u).then(function(g){i.resolve(g.data)},function(){i.reject()}),i.promise}}}]),app.controller("SponsoredArticleDetailController",["$rootScope","$scope","snipService","sponsoredArticleService","parserService","$location","sponsoredArticle","$timeout","$uibModal",function(e,t,a,n,s,o,m,r,c){t.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,t.$on("$viewContentLoaded",function(){r(function(){t.viewContentLoaded=!0})});var f,b,d=function(){f=t.sponsoredArticle.assetReferences.reduce(function(b,k,v){return b[k.guid]=k,b},{})};if(t.resolveAsset=function(b){return f[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,k){t.sponsoredArticle=k,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 i=m.id;if(n.getRecommendedArticles(i).then(function(b){if(b.length){[].push.apply(t.recommendedArticles,b);for(var k=0;k<t.recommendedArticles.length;k+=2){var v=[];v.push(t.recommendedArticles[k]),t.recommendedArticles.length>k+1&&v.push(t.recommendedArticles[k+1]),t.recommendedArticlePairs.push(v)}}}),t.sponsoredArticle=m,s.postProcessHtml(t.sponsoredArticle),a.getRecommendedSnips(i).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 l=$(window).height();$(".app-mobile .sponsoredArticleDetail-wrapper").css("height",l+"px"),$(".app-desktop .sponsoredArticleDetail-wrapper").css("height",l+"px")}}t.assetImageFocuspointDialog=function(b){c.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+" "+o.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,o,m,r,c,f,d,u,i,g,l){e.initializedMobile=e.mobile,e.enableHighQualityImage=f.scope.network.settings.configurations.enableHighQualityImage,e.revision={coverAssetImages:[],texts:[{heading:"",text:""}],chapterSlug:null},e.$on("$destroy",function(){a.setFavicon()}),e.sponsoredArticleUpdater=!0;var y,b=n.params.id,k="sp_"+b+"_"+f.scope.currentScope.chapter.id,v=l("editorHub"),I=!1;e.sponsoredArticle={text:"",content:"",summary:"",heading:""},e.editor=null,e.changed=!1,e.loading=!0;var h=f.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");window.onbeforeunload=function(){if(e.changed)return h};var w=!1;f.$on("$stateChangeStart",function(_,E){w?_.preventDefault():e.changed&&!confirm(h)?(w=!0,_.preventDefault(),I=!1,r(function(){w=!1},1e3)):(e.changed=!1,I&&(v.invoke("leaveGroup",k),d.closeConnection(),v.stop(),I=!1))}),e.textCarousel=null,e.textSlick=null,e.textSlickIndex=0,e.coverAssetSlickIndex=0;var x=function(_){e.sponsoredArticle=_;var E=A(_);E?e.revision=E:_.revisions.push(e.revision),e.revision.texts.length||(E.texts=[{heading:"",text:""}]),y=D(_),r(function(){e.textCarousel||(e.textCarousel=$("#sponsoredArticleEdit-text-wrapper").find(".sponsoredArticleEdit-text-carousel"),e.textCarousel.on("afterChange",function(L,j){e.textSlickIndex=j.currentSlide})),e.coverAssetCarousel||(e.coverAssetCarousel=$("#sponsoredArticleEdit-cover-wrapper").find(".sponsoredArticleEdit-cover-carousel"),e.coverAssetCarousel.on("afterChange",function(L,j){e.coverAssetSlickIndex=j.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 _=e.textSlick.slick("slickCurrentSlide");e.textSlick.slick("slickRemove",_-1),e.revision.texts.splice(_,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}),_>0&&(e.textSlick.slick("slickGoTo",_-1),e.textSlickIndex=_-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 _=e.coverAssetSlick.slick("slickCurrentSlide");e.coverAssetSlick.slick("slickRemove",_-1),e.revision.coverAssetImages.splice(_,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}),_>0&&(e.coverAssetSlick.slick("slickGoTo",_-1),e.coverAssetSlickIndex=_-1)})})}},e.pickCoverAsset=function(_){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(E){e.coverAssetSlick.slick("unslick"),_&&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(){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return M},sponsoredArticle:function(){return e.sponsoredArticle}}})};var M=function(_){r(function(){e.insertAsset(_)},500)};e.insertAsset=function(_){if($("#assetModal").modal("hide"),e.initializedMobile){if(e.initializedMobile){var E=$("#sponsoredArticleEdit-editor-mobile")[0],L=E.selectionStart,j=E.selectionEnd,W=E.value,K=W.substring(0,L),Y=W.substring(j,W.length),B="\n!["+_.guid+"]\n";E.value=K+B+Y,r(function(){E.selectionStart=E.selectionEnd=L+B.length,E.focus()})}}else{if(!e.editor)return;e.editor.replaceSelection("\n!["+_.guid+"]\n"),setTimeout(function(){e.editor.focus()},600)}},e.save=function(){for(var _=angular.copy(e.sponsoredArticle),E=e.revision.coverAssetImages.map(function(j){return j.id}),L=0;L<E.length;L++)if(E.lastIndexOf(E[L])>L)return void c.open({templateUrl:"/ClientApp/src/legacy-app/article/noDuplicateCoverAssetDialog.html"});_.texts=e.revision.texts,_.coverAssetImages=e.revision.coverAssetImages,_.summary=_.revisions[0].summary,_.jsonDocument=d.getDocument(),_.HtmlDocument=d.getHtmlDocument(),t.updateSponsoredArticle(_).then(function(j){e.changed=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),x(j.data)},function(){c.open({templateUrl:"/ClientApp/src/legacy-app/article/unableToSaveDialog.html"})})},e.submit=function(){e.editForm.$submitted=!0},e.publish=function(_){if(e.editForm.$submitted=!0,_){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"),x(L.data)},function(){})}},e.preview=!1,e.togglePreview=function(){if(e.preview=!e.preview,e.preview){var _=angular.copy(e.sponsoredArticle);_.content=d.getHtmlDocument(),_.assetReferences=_.assetReferences,_.text=e.revision.texts[0].text,_.heading=e.revision.texts[0].heading,_.summary=e.revision.summary,_.sponsored=!0,e.revision.coverAssetImages.length&&(_.coverAssetReference=_.assetReferences.filter(function(E){return E.assetImage&&E.assetImage.id===e.revision.coverAssetImages[0].id})[0]),r(function(){e.$broadcast("articleUpdate",_)},500)}};var D=function(_){var E=A(_);return angular.toJson(E.texts)+angular.toJson(E.coverAssetImages)+E.summary+E.jsonDocument},A=function(_){var E=e.scope.currentScope.chapter.slug,L=_.revisions.filter(function(W){return W.chapterSlug===E});if(L.length)return L[0];var j=_.revisions.filter(function(W){return null===W.chapterSlug});return j.length?j[0]:void 0},S=function(_,E){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(L){if(E){d.setFocus();var j=[];$.each(L,function(W,K){j.push({guid:K.guid,type:K.assetImage?K.assetImage.type:K.assetText.type})}),E(j)}}},sponsoredArticle:function(){return e.sponsoredArticle}}})},U=function(_,E){c.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 u}}})},C=function(_,E,L){c.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 _},sourceService:function(){return u}}})},F=function(_){c.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return _}}})},V=function(_,E){c.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return E}}})},T=function(_){return i.getAsset(_,e.sponsoredArticle.assetReferences)},P=function(_){r(function(){A(e.sponsoredArticle).jsonDocument=_,e.numberOfWords=g.countWords(d.getHtmlDocument())})};$(".sponsoredArticleEdit-wrapper").scroll(function(){!function _(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),v.on("broadcastSummary",function(_){e.revision.summary=_}),v.on("broadcastHeading",function(_){e.revision.texts[_.indexPosition].heading=_.heading}),v.on("broadcastAddVariant",function(){e.addTextVariant(!1)}),v.on("broadcastDeleteVariant",function(_){e.delTextVariant(!1,_.indexPosition)}),v.on("broadcastTitle",function(_){e.revision.texts[_.indexPosition].text=_.title}),v.start(function(){v.invoke("joinGroup",k)}),e.leaveEditor=function(){I=!0},e.blurHeading=function(_){v.invoke("updatingHeading",{groupName:k,heading:e.revision.texts[_].heading,indexPosition:_})},e.blurTitle=function(_){v.invoke("updatingTitle",{groupName:k,title:e.revision.texts[_].text,indexPosition:_})},e.blurSummary=function(){v.invoke("updatingSummary",{groupName:k,summary:e.revision.summary})},t.getSponsoredArticleEdit(b).then(function(_){e.loading=!1,x(_),d.init({docID:"sparticle_"+_.id+"_"+scope.currentChapter.slug,assetDlgFactory:S,commentCreationDlgFactory:U,commentMgmtDlgFactory:C,initialDocument:A(_).jsonDocument,initialAssetReferences:_.assetReferences,createLinkFactory:F,callToActionDlgFactory:V,assetResolver:T,onNewStateFactory:P,onLoadTransactionCallback:P,languageCode:f.scope.currentScope.network.settings.languageCode}),a.setFavicon(!0),e.$watch(function(){return D(e.sponsoredArticle)},function(_){e.changed=y!==_})},function(){m.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(l){g.resolve(l.data)}),g.promise},getSponsoredArticle:function(g){var l=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/"+g).then(function(b){l.resolve(b.data)}),l.promise},getSponsoredArticlesForEventCalendar:function(){var g=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/events").then(function(l){var b=l.data;b.forEach(function(k,v){b[v]=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 l=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)}:{}}(l.id);return!l.detailsLoaded||g.detailsLoaded?angular.copy(g,l):angular.extend(l,g),angular.extend(l,b),g.assets&&g.coverAsset&&g.coverAsset.guid&&g.assets.forEach(function(k){if(k.guid===g.coverAsset.guid)return l.coverAsset=k,!1}),l}return a[g.id]=g,g}(k)}),g.resolve(b)},function(){g.reject()}),g.promise},getSponsoredArticleEdit:function(g){var l=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/"+g+"/edit").then(function(b){l.resolve(b.data)},function(b){l.reject()}),l.promise},getRecommendedArticles:function(g){var l=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/"+g+"/recommendedarticles").then(function(b){l.resolve(b.data)}),l.promise},getSponsoredArticleParse:function(g,l){var b=t.defer();return e.post(scope.apiEndpoint+"sponsoredArticles/"+g+"/parse",l).then(function(k){b.resolve(k.data)},function(){b.reject()}),b.promise},updateSponsoredArticle:function(g){var l=t.defer();return e.put(scope.apiEndpoint+"sponsoredArticles",g).then(function(b){angular.copy(b.data,g),l.resolve(b)},function(){l.reject()}),l.promise},publishSponsoredArticle:function(g){var l=t.defer();return e.put(scope.apiEndpoint+"sponsoredArticles/"+g.id+"/publish",g).then(function(b){l.resolve(b)},function(){l.reject()}),l.promise}}}]),app.controller("SponsoredArticleCampaignElasticReportController",["$scope","$rootScope","sponsoredArticleCampaignService","formatterService","scopeService","$timeout","$location","$stateParams",function(e,t,a,n,s,o,m,r){var c=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";e.dateFormatString=n.getShortDateFormatString();var d,u,i,g,f=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],l={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=[],k=[],v=[];a.GetSponsoredArticleReport(r.pin).then(function(y){var I=y.chapterReports,p=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 D,A;l.start=moment(d.startDate).startOf("day").toDate(),l.end=moment(d.endDate).startOf("day").toDate(),u.zoom(l.start,moment(l.end).startOf("day").add(1,"d").toDate()),D=moment(l.start).startOf("day").add(1,"d").toDate(),A=moment(l.end).startOf("day").add(2,"d").toDate(),$.each(I,function(S,U){U.chapter=s.getChapter(U.chapterSlug),a.getChapterReport({chapterId:U.chapter.id,start:D,end:A,pin:y.sponsoredArticleCampaign.pin,sponsoredArticleCampaignId:y.sponsoredArticleCampaign.id}).then(function(C){U.reports=C,R()}),d.validateData(),u.validateData(),i.validateData(),g.validateData()})}),u=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:"Gesamt",color:c,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"readings",toField:"readings"}],dataProvider:k,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}}),i=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:f,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}}),g=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[l],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}})};AmCharts.isReady?p():AmCharts.ready(p),e.sponsoredArticleCampaign=y.sponsoredArticleCampaign,e.sponsoredArticleCampaign.report=I,$.each(I,function(D,A){A.active=!0,A.variants.length&&$.each(A.variants,function(S,U){U.viewableImpressions>0&&(I.hasVariants=!0,U.hasViews=!0)})});for(var x=new Date(y.sponsoredArticleCampaign.start);x<=moment(new Date).startOf("day").add(1,"d").toDate();x.setDate(x.getDate()+1)){var M={start:new Date(x),viewableImpressions:0,readings:0};v[M.start.toDateString()]=M,k.push(M)}l.start=moment(y.sponsoredArticleCampaign.start).startOf("day").toDate(),e.summary=l;var R=function(){if(I.hasVariants=!1,$.each(k,function(A,S){S.readings=0,S.viewableImpressions=0}),l.impressions=0,l.billableImpressions=0,l.readings=0,l.billableReadings=0,l.uniqueImpressions=0,l.uniqueReadings=0,l.uniqueReadingPercentageReads=0,l.uniqueViewableImpressions=0,l.activeTimeSeconds=0,l.uniqueReadingsHavingViewableImpressions=0,l.uniqueReadingPercentage24Reads=0,l.uniqueReadingPercentage2549Reads=0,l.uniqueReadingPercentage5074Reads=0,l.uniqueReadingPercentage75100Reads=0,f[0].value=0,f[1].value=0,f[2].value=0,$.each(I,function(A,S){if(S.active){var U=0;$.each(S.reports,function(C,F){var V=!1;$.each(y.sponsoredArticleCampaign.sponsoredArticles,function(T,P){P.id===F.sponsoredArticleId&&P.active&&(V=!0)}),V&&(F.billableImpressionCalendar.length&&$.each(F.billableImpressionCalendar,function(T,P){v[new Date(P.day).toDateString()].viewableImpressions+=P.data}),F.readingCalendar.length&&$.each(F.readingCalendar,function(T,P){v[new Date(P.day).toDateString()].readings+=P.data}),l.impressions+=F.impressions,l.billableImpressions+=F.billableImpressions,l.readings+=F.readings,l.billableReadings+=F.billableReadings,l.uniqueReadings+=F.uniqueReadings,l.uniqueReadingsHavingViewableImpressions+=F.uniqueReadingsHavingViewableImpressions,l.uniqueImpressions+=F.uniqueImpressions,l.uniqueReadingPercentageReads+=F.uniqueReadingPercentageReads,l.activeTimeSeconds+=F.activeTimeSeconds,l.uniqueReadingPercentage24Reads+=F.uniqueReadingPercentage24Reads,l.uniqueReadingPercentage2549Reads+=F.uniqueReadingPercentage2549Reads,l.uniqueReadingPercentage5074Reads+=F.uniqueReadingPercentage5074Reads,l.uniqueReadingPercentage75100Reads+=F.uniqueReadingPercentage75100Reads,U+=F.desktopCount+F.mobileCount+F.tabletCount,f[0].value+=F.desktopCount,f[1].value+=F.mobileCount,f[2].value+=F.tabletCount)}),f[0].value=Math.round(f[0].value/U*100),f[1].value=Math.round(f[1].value/U*100),f[2].value=Math.round(f[2].value/U*100),S.variants.length&&$.each(S.variants,function(C,F){F.viewableImpressions>0&&(I.hasVariants=!0,F.hasViews=!0)})}}),I.length>1){var D=I.filter(function(A){return A.active}).length;f[0].value=Math.round(f[0].value/D),f[1].value=Math.round(f[1].value/D),f[2].value=Math.round(f[2].value/D)}d.validateData(),u.validateData(),i.validateData(),g.validateData()};e.toggleChapter=function(D){$.each(I,function(A,S){null!==S.chapter&&S.chapter.name===D&&(S.active=!S.active)}),R()},e.toggleReport=function(D){$.each(y.sponsoredArticleCampaign.sponsoredArticles,function(A,S){S.guid===D.guid&&(S.active=!S.active)}),R()},$.each(I,function(D,A){A.chapter=s.getChapter(A.chapterSlug),a.getChapterReport({chapterId:A.chapter.id,start:y.sponsoredArticleCampaign.start,end:moment(new Date).startOf("day").add(2,"d").toDate(),pin:y.sponsoredArticleCampaign.pin,sponsoredArticleCampaignId:y.sponsoredArticleCampaign.id}).then(function(S){A.reports=S,R(),$.each(y.sponsoredArticleCampaign.sponsoredArticles,function(U,C){C.active=!0}),$.each(k,function(U,C){b.push({start:C.start,viewableImpressions:C.viewableImpressions})})}),d.validateData(),u.validateData(),i.validateData(),g.validateData()})})}]),app.factory("sponsoredArticleCampaignService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,n,s,o){var m=[],c=function(){var g=t.defer();return m.length>0?g.resolve(m):e.get(scope.apiEndpoint+"SponsoredArticleCampaigns").then(function(l){angular.copy(l.data,m),g.resolve(m)},function(){g.reject()}),g.promise};function f(g){var l=null;return $.each(m,function(b,k){if(k.pin===g)return l=k,!1}),l}return{sponsoredArticleCampaigns:m,getsponsoredArticleCampaigns:c,getreportSponsoredArticleCalendar:function(g){var l=t.defer();return e.get(scope.apiEndpoint+"SponsoredArticleCampaigns/"+g+"/ReportSponsoredArticleCalendar").then(function(b){l.resolve(b.data)},function(){l.reject()}),l.promise},getsponsoredArticleCampaignByPin:function(g){var l=t.defer();if(m.length>0){var b=f(g);b?l.resolve(b):e.get(scope.apiEndpoint+"/SponsoredArticleCampaigns"+g).then(function(k){l.resolve(k.data)},function(){l.reject()})}else c().then(function(){var k=f(g);k?l.resolve(k):e.get(scope.apiEndpoint+"sponsoredArticleCampaigns/"+g).then(function(v){l.resolve(v.data)},function(){l.reject()})},function(){l.reject()});return l.promise},GetSponsoredArticleReport:function(g){var l=t.defer();return e.get(scope.apiEndpoint+"SponsoredArticleCampaigns/"+g+"/Elastic").then(function(b){l.resolve(b.data)},function(){l.reject()}),l.promise},getChapterReport:function(g){var l=t.defer();return e.post(scope.apiEndpoint+"SponsoredArticleCampaigns/chapterReport",g).then(function(b){l.resolve(b.data)},function(){l.reject()}),l.promise}}}]),app.controller("sponsoredArticleCampaignReportController",["$scope","$rootScope","sponsoredArticleCampaignService","articleService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,o,m,r,c){AmCharts.isReady=!0;var f=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getsponsoredArticleCampaignByPin(o.pin).then(function(g){e.sponsoredArticleCampaign=g,a.getreportSponsoredArticleCalendar(g.pin).then(function(l){l.forEach(function(b){b.chapter=s.getChapter(b.chapterSlug),b.reports.forEach(function(k){k.calendar.forEach(function(v){v.start=moment(v.start.replace("Z","")).toDate(),v.end=moment(v.end.replace("Z","")).toDate()})})}),g.report=l,r(function(){var b,k,v,y,I,h,w=new Set;$.each(l,function(A,S){S.active=!0,w.add(S.chapter.name)}),l.uniqueChapters=[],w.forEach(function(A){l.uniqueChapters.push(A)}),$.each(g.sponsoredArticles,function(A,S){S.reportActive=!0});var p=[],x=function(){p.length=0,l.hasVariants=!1,$.each(l[0].reports[0].calendar,function(A,S){p.push({start:S.start,end:S.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(l,function(A,S){S.active&&(l[A-1]&&2===l[A-1].chapter.managementState&&2===S.chapter.managementState&&l[A-1].chapter.name!==S.chapter.name&&(l.multiChapterShipment=!0),$.each(S.reports,function(U,C){C.variants&&(g.report.hasVariants=!0,$.each(C.variants,function(F,V){V.viewableImpressions>0&&(V.hasViews=!0)}))}),$.each(S.reports,function(U,C){if(g.sponsoredArticles[U].reportActive){var F=C.sponsoredArticle.Id;$.each(C.calendar,function(V,T){T.sponsoredArticleId=F,p[V].uniqueViewableImpressions+=T.uniqueViewableImpressions,p[V].viewableImpressions+=T.viewableImpressions,p[V].billableViewableImpressions+=T.billableViewableImpressions,p[V].activeTimeSeconds+=T.activeTimeSeconds,p[V].readings+=T.readings,p[V].uniqueReadingPercentageReads+=T.uniqueReadingPercentageReads,p[V].maleUniqueViewableImpressions+=T.maleUniqueViewableImpressions,p[V].femaleUniqueViewableImpressions+=T.femaleUniqueViewableImpressions,p[V].uniqueReadings+=T.uniqueReadings,p[V].uniqueReadingsHavingViewableImpressions+=T.uniqueReadingsHavingViewableImpressions,p[V].uniqueReadingPercentage24Reads+=T.uniqueReadingPercentage24Reads,p[V].uniqueReadingPercentage2549Reads+=T.uniqueReadingPercentage2549Reads,p[V].uniqueReadingPercentage5074Reads+=T.uniqueReadingPercentage5074Reads,p[V].uniqueReadingPercentage75100Reads+=T.uniqueReadingPercentage75100Reads,p[V].desktopReadings+=T.desktopReadings,p[V].mobileReadings+=T.mobileReadings,p[V].tabletReadings+=T.tabletReadings,p[V].age1617MaleUniqueViewableImpressions+=T.age1617MaleUniqueViewableImpressions,p[V].age1824MaleUniqueViewableImpressions+=T.age1824MaleUniqueViewableImpressions,p[V].age2534MaleUniqueViewableImpressions+=T.age2534MaleUniqueViewableImpressions,p[V].age3544MaleUniqueViewableImpressions+=T.age3544MaleUniqueViewableImpressions,p[V].age4554MaleUniqueViewableImpressions+=T.age4554MaleUniqueViewableImpressions,p[V].age55MaleUniqueViewableImpressions+=T.age55MaleUniqueViewableImpressions,p[V].age1617FemaleUniqueViewableImpressions+=T.age1617FemaleUniqueViewableImpressions,p[V].age1824FemaleUniqueViewableImpressions+=T.age1824FemaleUniqueViewableImpressions,p[V].age2534FemaleUniqueViewableImpressions+=T.age2534FemaleUniqueViewableImpressions,p[V].age3544FemaleUniqueViewableImpressions+=T.age3544FemaleUniqueViewableImpressions,p[V].age4554FemaleUniqueViewableImpressions+=T.age4554FemaleUniqueViewableImpressions,p[V].age55FemaleUniqueViewableImpressions+=T.age55FemaleUniqueViewableImpressions})}}))}),k.validateData(),b.validateData()},M=l.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:p,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}}),k=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:f,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:p,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}}),v=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]]%"}),y=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:u,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:f,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(A){return-1*A.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(A){return A<0?-1*A+"":A+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),I=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:f,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),h=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[M],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:f,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:f,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:f,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:f,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 D=function(){var A=moment(b.startDate).startOf("day").toDate(),S=moment(b.endDate).startOf("day").add(-1,"d").toDate();k.zoom(A,moment(S).add(1,"d").toDate()),function(A,S){M.viewableImpressions=0,M.billableViewableImpressions=0,M.uniqueViewableImpressions=0,M.activeTimeSeconds=0,M.readings=0,M.uniqueReadings=0,M.uniqueReadingsHavingViewableImpressions=0,M.uniqueReadingPercentageReads=0,M.maleUniqueViewableImpressions=0,M.femaleUniqueViewableImpressions=0,M.desktopReadings=0,M.mobileReadings=0,M.tabletReadings=0,M.age1617MaleUniqueViewableImpressions=0,M.age1824MaleUniqueViewableImpressions=0,M.age2534MaleUniqueViewableImpressions=0,M.age3544MaleUniqueViewableImpressions=0,M.age4554MaleUniqueViewableImpressions=0,M.age55MaleUniqueViewableImpressions=0,M.age1617FemaleUniqueViewableImpressions=0,M.age1824FemaleUniqueViewableImpressions=0,M.age2534FemaleUniqueViewableImpressions=0,M.age3544FemaleUniqueViewableImpressions=0,M.age4554FemaleUniqueViewableImpressions=0,M.age55FemaleUniqueViewableImpressions=0,M.uniqueReadingPercentage24Reads=0,M.uniqueReadingPercentage2549Reads=0,M.uniqueReadingPercentage5074Reads=0,M.uniqueReadingPercentage75100Reads=0;var U=0,C=0,F=0,V=0,T=0,P=0,N=0,q=0,_=0,E=0,L=0,j=0,W=0,K=0,Y=0;M.start=A,M.end=S,$.each(p,function(Q,G){var O=new Date(G.start);O<A||O>S||(M.viewableImpressions+=G.viewableImpressions,M.billableViewableImpressions+=G.billableViewableImpressions,M.uniqueViewableImpressions+=G.uniqueViewableImpressions,M.activeTimeSeconds+=G.activeTimeSeconds,M.readings+=G.readings,M.uniqueReadingPercentageReads+=G.uniqueReadingPercentageReads,M.maleUniqueViewableImpressions+=G.maleUniqueViewableImpressions,M.femaleUniqueViewableImpressions+=G.femaleUniqueViewableImpressions,M.uniqueReadings+=G.uniqueReadings,M.uniqueReadingsHavingViewableImpressions+=G.uniqueReadingsHavingViewableImpressions,M.uniqueReadingPercentage24Reads+=G.uniqueReadingPercentage24Reads,M.uniqueReadingPercentage2549Reads+=G.uniqueReadingPercentage2549Reads,M.uniqueReadingPercentage5074Reads+=G.uniqueReadingPercentage5074Reads,M.uniqueReadingPercentage75100Reads+=G.uniqueReadingPercentage75100Reads,U+=G.desktopReadings,C+=G.mobileReadings,F+=G.tabletReadings,V+=G.age1617MaleUniqueViewableImpressions,T+=G.age1824MaleUniqueViewableImpressions,P+=G.age2534MaleUniqueViewableImpressions,N+=G.age3544MaleUniqueViewableImpressions,q+=G.age4554MaleUniqueViewableImpressions,_+=G.age55MaleUniqueViewableImpressions,E+=G.age1617FemaleUniqueViewableImpressions,L+=G.age1824FemaleUniqueViewableImpressions,j+=G.age2534FemaleUniqueViewableImpressions,W+=G.age3544FemaleUniqueViewableImpressions,K+=G.age4554FemaleUniqueViewableImpressions,Y+=G.age55FemaleUniqueViewableImpressions)});var B=U+C+F;M.desktopReadings=Math.round(100/(B/U)),M.mobileReadings=Math.round(100/(B/C)),M.tabletReadings=Math.round(100/(B/F)),M.maleUniqueViewableImpressions=Math.round(M.maleUniqueViewableImpressions),M.femaleUniqueViewableImpressions=Math.round(M.femaleUniqueViewableImpressions),d[0].value=M.femaleUniqueViewableImpressions,d[1].value=M.maleUniqueViewableImpressions;var z=M.viewableImpressions-(V+T+P+N+q+_+E+L+j+W+K+Y);z>100&&(V+=z*t.scope.globalSettings.reportAverageAge1617Male,T+=z*t.scope.globalSettings.reportAverageAge1824Male,P+=z*t.scope.globalSettings.reportAverageAge2534Male,N+=z*t.scope.globalSettings.reportAverageAge3544Male,q+=z*t.scope.globalSettings.reportAverageAge4554Male,_+=z*t.scope.globalSettings.reportAverageAge55Male,E+=z*t.scope.globalSettings.reportAverageAge1617Female,L+=z*t.scope.globalSettings.reportAverageAge1824Female,j+=z*t.scope.globalSettings.reportAverageAge2534Female,W+=z*t.scope.globalSettings.reportAverageAge3544Female,K+=z*t.scope.globalSettings.reportAverageAge4554Female,Y+=z*t.scope.globalSettings.reportAverageAge55Female),M.age1617MaleUniqueViewableImpressions=Math.round(100/(M.viewableImpressions/V)),M.age1824MaleUniqueViewableImpressions=Math.round(100/(M.viewableImpressions/T)),M.age2534MaleUniqueViewableImpressions=Math.round(100/(M.viewableImpressions/P)),M.age3544MaleUniqueViewableImpressions=Math.round(100/(M.viewableImpressions/N)),M.age4554MaleUniqueViewableImpressions=Math.round(100/(M.viewableImpressions/q)),M.age55MaleUniqueViewableImpressions=Math.round(100/(M.viewableImpressions/_)),M.age1617FemaleUniqueViewableImpressions=Math.round(100/(M.viewableImpressions/E)),M.age1824FemaleUniqueViewableImpressions=Math.round(100/(M.viewableImpressions/L)),M.age2534FemaleUniqueViewableImpressions=Math.round(100/(M.viewableImpressions/j)),M.age3544FemaleUniqueViewableImpressions=Math.round(100/(M.viewableImpressions/W)),M.age4554FemaleUniqueViewableImpressions=Math.round(100/(M.viewableImpressions/K)),M.age55FemaleUniqueViewableImpressions=Math.round(100/(M.viewableImpressions/Y)),u[0].male=Math.round(-1*M.age1617MaleUniqueViewableImpressions),u[1].male=Math.round(-1*M.age1824MaleUniqueViewableImpressions),u[2].male=Math.round(-1*M.age2534MaleUniqueViewableImpressions),u[3].male=Math.round(-1*M.age3544MaleUniqueViewableImpressions),u[4].male=Math.round(-1*M.age4554MaleUniqueViewableImpressions),u[5].male=Math.round(-1*M.age55MaleUniqueViewableImpressions),u[0].female=Math.round(M.age1617FemaleUniqueViewableImpressions),u[1].female=Math.round(M.age1824FemaleUniqueViewableImpressions),u[2].female=Math.round(M.age2534FemaleUniqueViewableImpressions),u[3].female=Math.round(M.age3544FemaleUniqueViewableImpressions),u[4].female=Math.round(M.age4554FemaleUniqueViewableImpressions),u[5].female=Math.round(M.age55FemaleUniqueViewableImpressions),i[0].value=M.desktopReadings,i[1].value=M.mobileReadings,i[2].value=M.tabletReadings,v.validateData(),y.validateData(),I.validateData(),h.validateData(),e.$apply()}(A,S)};b.addListener("zoomed",function(){D()}),e.toggleReport=function(A){$.each(g.sponsoredArticles,function(S,U){U.guid===A.guid&&(U.reportActive=!U.reportActive)}),r(function(){x(),D()},50)},e.toggleChapter=function(A){$.each(l,function(S,U){U.chapter.name===A&&(U.active=!U.active)}),r(function(){x(),D()},50)},x(),k.validateNow(),b.validateNow(),b.setDefaultPeriod(),D()},function(){e.error=!0})})},function(){c.path("/")});var d=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:f,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],u=[{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}],i=[{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,o,m,r){t.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,t.$on("$viewContentLoaded",function(){m(function(){t.viewContentLoaded=!0})});var c,l,f=function(){c=t.staticArticle.assetReferences.reduce(function(l,b,k){return l[b.guid]=b,l},{})};if(t.resolveAsset=function(l){return c[l]},$(window).scroll(function(l){$(l.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(l,b){t.staticArticle=b,n.postProcessHtml(t.staticArticle),t.staticArticle.detailsLoaded=!0,f(),t.$broadcast("$$rebind::refresh")});else{t.$watch(function(){return"staticArticle.detailsLoaded"},function(l){l&&f()});var u=o.id;if(t.staticArticle=o,n.postProcessHtml(t.staticArticle),a.getRecommendedSnips(u).then(function(l){t.recommendedSnips=l}),(l=window.navigator.userAgent).indexOf(" Android ")>-1&&l.indexOf("Version/")>-1&&parseFloat((l.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(l){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return l}}})},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,o,m,r,c,f,d,u,i,g,l,b,k){var v=k("editorHub");e.revision={coverAssetImages:[],texts:[{heading:"",text:""}],chapterSlug:null};var y="static_"+u+"_"+d.scope.currentScope.chapter.id;e.enableHighQualityImage=d.scope.network.settings.configurations.enableHighQualityImage,e.$on("$destroy",function(){n.setFavicon()}),e.staticArticleUpdater=!0;var h,I=!1;e.staticArticle={text:"",content:"",summary:"",heading:""},e.editor=null,e.changed=!1,e.loading=!0;var w=d.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");window.onbeforeunload=function(){if(e.changed)return w};var p=!1;d.$on("$stateChangeStart",function(E,L){p?E.preventDefault():e.changed&&!confirm(w)?(p=!0,E.preventDefault(),I=!1,c(function(){p=!1},1e3)):(e.changed=!1,I&&(v.invoke("leaveGroup",y),i.closeConnection(),v.stop(),I=!1))}),e.textCarousel=null,e.textSlick=null,e.textSlickIndex=0,e.coverAssetSlickIndex=0;var M=function(E){e.staticArticle=E;var L=S(E);L?e.revision=L:E.revisions.push(e.revision),h=A(E),c(function(){e.textCarousel||(e.textCarousel=$("#staticArticleEdit-text-wrapper").find(".staticArticleEdit-text-carousel"),e.textCarousel.on("afterChange",function(j,W){e.textSlickIndex=W.currentSlide})),e.coverAssetCarousel||(e.coverAssetCarousel=$("#staticArticleEdit-cover-wrapper").find(".staticArticleEdit-cover-carousel"),e.coverAssetCarousel.on("afterChange",function(j,W){e.coverAssetSlickIndex=W.currentSlide})),c(function(){})})};e.coverAssetCarousel=null,e.coverAssetSlick=null,e.delCoverAssetVariant=function(){e.revision.coverAssetImages=[],e.revision.coverAssetImageId=null},e.pickCoverAsset=function(E){f.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(){f.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return R},staticArticle:function(){return e.staticArticle}}})};var R=function(E){c(function(){e.insertAsset(E)},500)};e.insertAsset=function(E){if($("#assetModal").modal("hide"),e.initializedMobile){if(e.initializedMobile){var L=$("#staticArticleEdit-editor-mobile")[0],j=L.selectionStart,W=L.selectionEnd,K=L.value,Y=K.substring(0,j),B=K.substring(W,K.length),z="\n!["+E.guid+"]\n";L.value=Y+z+B,c(function(){L.selectionStart=L.selectionEnd=j+z.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:i.getHtmlDocument(),jsonDocument:i.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,M(L.data)},function(){f.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,M(L.data)},function(){})},e.preview=!1,e.togglePreview=function(){if(e.preview=!e.preview,e.preview){var E=angular.copy(e.staticArticle);E.content=i.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]),c(function(){e.$broadcast("staticArticleUpdater",E)},500)}};var A=function(E){var L=S(E);return angular.toJson(L.coverAssetImages)+L.summary+L.jsonDocument+L.title+L.heading},S=function(E){return E.revisions[0]},U=function(E,L){f.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(L){i.setFocus();var W=[];$.each(j,function(K,Y){var B=null;Y.assetImage&&(B=Y.assetImage.type),Y.assetText&&(B=Y.assetText.type),Y.assetArticle&&(B=Y.assetArticle.type),Y.assetFile&&(B=Y.assetFile.type),W.push({guid:Y.guid,type:B})}),L(W)}}},staticArticle:function(){return e.staticArticle}}})},C=function(E,L){f.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}}})},F=function(E,L,j){f.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return j},onAddedCallback:function(){return L},messageHolder:function(){return new MessageHolder(e.staticArticle)},chainComments:function(){return E},sourceService:function(){return g}}})},V=function(E){f.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return E}}})},T=function(E,L){f.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return L}}})},P=function(E){return l.getAsset(E,e.staticArticle.assetReferences)},N=function(E){c(function(){S(e.staticArticle).jsonDocument=E,e.numberOfWords=b.countWords(i.getHtmlDocument())})};$(".staticArticleEdit-wrapper").scroll(function(){!function E(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),v.on("broadcastSummary",function(E){e.revision.summary=E}),v.on("broadcastHeading",function(E){e.revision.heading=E.heading}),v.on("broadcastTitle",function(E){e.revision.title=E.title}),v.start(function(){v.invoke("joinGroup",y)}),e.leaveEditor=function(){I=!0},e.blurHeading=function(){v.invoke("updatingHeading",{groupName:y,heading:e.revision.heading})},e.blurTitle=function(){v.invoke("updatingTitle",{groupName:y,title:e.revision.title})},e.blurSummary=function(){v.invoke("updatingSummary",{groupName:y,summary:e.revision.summary})},a.getStaticArticleEdit(u).then(function(E){e.loading=!1,M(E),n.setFavicon(!0),i.init({docID:"staticArticle_"+E.id+"_"+E.chapterId,assetDlgFactory:U,commentCreationDlgFactory:C,commentMgmtDlgFactory:F,initialDocument:S(E).jsonDocument,initialAssetReferences:E.assetReferences,createLinkFactory:V,callToActionDlgFactory:T,assetResolver:P,onNewStateFactory:N,onLoadTransactionCallback:N,languageCode:d.scope.currentScope.network.settings.languageCode}),e.$watch(function(){return A(e.staticArticle)},function(E){e.changed=h!==E})},function(){r.path("/")})}]),app.factory("staticArticleService",["$http","$q",function(e,t){return{getStaticArticles:function(){var f=t.defer();return e.get(scope.apiEndpoint+"staticArticles").then(function(d){f.resolve(d.data)}),f.promise},getStaticArticle:function(f){var d=t.defer();return e.get(scope.apiEndpoint+"staticArticles/"+f).then(function(u){d.resolve(u.data)}),d.promise},getStaticArticleEdit:function(f){var d=t.defer();return e.get(scope.apiEndpoint+"staticArticles/"+f+"/edit").then(function(u){d.resolve(u.data)},function(u){d.reject()}),d.promise},getStaticArticleParse:function(f,d){var u=t.defer();return e.post(scope.apiEndpoint+"staticArticles/"+f+"/parse",d).then(function(i){u.resolve(i.data)},function(){u.reject()}),u.promise},updateStaticArticle:function(f){var d=t.defer();return e.put(scope.apiEndpoint+"staticArticles",f).then(function(u){angular.copy(u.data,f),d.resolve(u)},function(){d.reject()}),d.promise},publishStaticArticle:function(f){var d=t.defer();return e.put(scope.apiEndpoint+"staticArticles/"+f.id+"/publish",f).then(function(u){d.resolve(u)},function(){d.reject()}),d.promise},addAssetStaticArticle:function(f,d,u){var i=t.defer();return e.post(scope.apiEndpoint+"assets/StaticArticle/CreateAsset",{ownerId:f,staticArticleId:d,assetArticleType:u}).then(function(l){i.resolve(l.data)},function(){i.reject()}),i.promise}}}]),app.controller("SuperCampaignElasticReportController",["$scope","$rootScope","superService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,s,o,m){AmCharts.isReady=!0;var d,u,i,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",c=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],f=[];e.report=null,e.totalClickCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var g=function(v){var y=0,I=0,h=0,w=0,p=0,x=0;$.each(v,function(M,R){y+=R.desktopImpressionCount,I+=R.tabletImpressionCount,h+=R.mobileImpressionCount,w+=R.clickCount,p+=R.impressionTime,x+=R.impressionCount}),e.$apply(function(){e.totalClickCount=w,e.totalImpressionTime=p,e.totalImpressionCount=x}),c[0].value=Math.round(100/(x/y)),c[1].value=Math.round(100/(x/h)),c[2].value=Math.round(100/(x/I)),d.validateData()},l=function(){var v=moment(u.startDate).startOf("day").toDate(),y=moment(u.endDate).startOf("day").toDate(),I=e.report.filter(function(h){return h.day>=v&&h.day<=y});g(I),i.zoom(v,moment(y).add(1,"d").toDate())},k=function(){var v=e.superCampaign.superBanners.filter(function(I){return!I.filtered}).map(function(I){return I.id}),y=e.chapters.filter(function(I){return!I.filtered}).map(function(I){return I.id});e.filterDisabled=!0,a.getSuperReport(e.superCampaign.pin,{superCampaignId:e.superCampaign.id,superBannerIds:v,chapterIds:y}).then(function(I){I.forEach(function(h){h.day=moment(h.day.replace("Z","")).toDate()}),e.report=I,o(function(){(function(v){f.length=0,$.each(v,function(y,I){f.push(I)}),u.validateData(),i.validateData(),e.$apply(function(){e.startDay=start,e.endDay=end})})(I),l(),e.filterDisabled=!1},50)})};e.filterChapter=function(v){v.filtered=!v.filtered,k()},e.chapterFilterDisabled=function(v){return e.filterDisabled||1===e.chapters.filter(function(y){return!y.filtered}).length&&!v.filtered},e.filterBanner=function(v){e.filterDisabled||1===e.superCampaign.superBanners.filter(function(y){return!y.filtered}).length&&!v.filtered||(v.filtered=!v.filtered,k())},a.getSuperByPin(s.pin).then(function(v){e.superCampaign=v,a.getSuperReport(v.pin,{superCampaignId:v.id}).then(function(y){y.forEach(function(h){h.day=moment(h.day.replace("Z","")).toDate()}),e.report=y,e.startDay=y[0].day,e.endDay=y[y.length-1].day;var I=[];$.each(v.chapterSlugs,function(h,w){I.push(n.getChapter(w))}),I=I.filter(function(h){return 2===h.managementState}),e.chapters=I,$.each(y,function(h,w){f.push(w)}),o(function(){d=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}}),(u=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:f,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(){l()}),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:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"clickCount",toField:"clickCount"}],dataProvider:f,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(y)})})},function(){m.path("/")})}]),app.controller("superCampaignReportController",["$scope","$rootScope","superService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,o,m,r){AmCharts.isReady=!0;var c="#00cdbd",f=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:c,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}],u=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];a.getSuperByPin(s.pin).then(function(i){e.superCampaign=i,a.getReportSuperBannerCalendar(i.pin).then(function(g){g.forEach(function(l){l.chapter=n.getChapter(l.chapterSlug),l.reports.forEach(function(b){b.calendar.forEach(function(k){k.start=moment(k.start.replace("Z","")).toDate(),k.end=moment(k.end.replace("Z","")).toDate()})})}),i.report=g,m(function(){var l,b,k,v,y,I=new Set;$.each(g,function(R,D){D.active=!0,I.add(D.chapter.name)}),g.uniqueChapters=[],I.forEach(function(R){g.uniqueChapters.push(R)}),$.each(i.superBanners,function(R,D){D.reportActive=!0});var h=[],w=function(){h.length=0,$.each(g[0].reports[0].calendar,function(R,D){h.push({start:D.start,end:D.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(R,D){D.active&&(g[R-1]&&2===g[R-1].chapter.managementState&&2===D.chapter.managementState&&g[R-1].chapter.name!==D.chapter.name&&(g.multiChapterShipment=!0),$.each(D.reports,function(A,S){if(i.superBanners[A].reportActive){var U=S.superBanner.pin;$.each(S.calendar,function(C,F){F.pin=U,h[C].impressions+=F.impressions,h[C].viewableImpressions+=F.viewableImpressions,h[C].viewableImpressionTimeSeconds+=F.viewableImpressionTimeSeconds,h[C].desktopViewableImpressions+=F.desktopViewableImpressions,h[C].mobileViewableImpressions+=F.mobileViewableImpressions,h[C].tabletViewableImpressions+=F.tabletViewableImpressions,h[C].clicks+=F.clicks,h[C].maleViewableImpressions+=F.maleViewableImpressions,h[C].femaleViewableImpressions+=F.femaleViewableImpressions,h[C].age1617MaleViewableImpressions+=F.age1617MaleViewableImpressions,h[C].age1824MaleViewableImpressions+=F.age1824MaleViewableImpressions,h[C].age2534MaleViewableImpressions+=F.age2534MaleViewableImpressions,h[C].age3544MaleViewableImpressions+=F.age3544MaleViewableImpressions,h[C].age4554MaleViewableImpressions+=F.age4554MaleViewableImpressions,h[C].age55MaleViewableImpressions+=F.age55MaleViewableImpressions,h[C].age1617FemaleViewableImpressions+=F.age1617FemaleViewableImpressions,h[C].age1824FemaleViewableImpressions+=F.age1824FemaleViewableImpressions,h[C].age2534FemaleViewableImpressions+=F.age2534FemaleViewableImpressions,h[C].age3544FemaleViewableImpressions+=F.age3544FemaleViewableImpressions,h[C].age4554FemaleViewableImpressions+=F.age4554FemaleViewableImpressions,h[C].age55FemaleViewableImpressions+=F.age55FemaleViewableImpressions})}}))}),b.validateData(),l.validateData()},p=g.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:h,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:c,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:h,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}}),k=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:f,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),v=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:c,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(R,D){return-1*R.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(R){return R<0?-1*R+"":R+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),y=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:u,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}});var M=function(){var R=moment(l.startDate).startOf("day").toDate(),D=moment(l.endDate).startOf("day").add(-1,"d").toDate();(function(R,D){p.maleViewableImpressions=0,p.femaleViewableImpressions=0,p.viewableImpressions=0,p.viewableImpressionTimeSeconds=0,p.impressions=0,p.clicks=0,p.desktopViewableImpressions=0,p.mobileViewableImpressions=0,p.tabletViewableImpressions=0,p.age1617MaleViewableImpressions=0,p.age1824MaleViewableImpressions=0,p.age2534MaleViewableImpressions=0,p.age3544MaleViewableImpressions=0,p.age4554MaleViewableImpressions=0,p.age55MaleViewableImpressions=0,p.age1617FemaleViewableImpressions=0,p.age1824FemaleViewableImpressions=0,p.age2534FemaleViewableImpressions=0,p.age3544FemaleViewableImpressions=0,p.age4554FemaleViewableImpressions=0,p.age55FemaleViewableImpressions=0;var A=0,S=0,U=0,C=0,F=0,V=0,T=0,P=0,N=0,q=0,_=0,E=0,L=0,j=0,W=0;p.start=R,p.end=D,$.each(h,function(Y,B){var z=new Date(B.start);z<R||z>D||(p.maleViewableImpressions+=B.maleViewableImpressions,p.femaleViewableImpressions+=B.femaleViewableImpressions,p.viewableImpressions+=B.viewableImpressions,p.viewableImpressionTimeSeconds+=B.viewableImpressionTimeSeconds,p.impressions+=B.impressions,p.clicks+=B.clicks,A+=B.desktopViewableImpressions,S+=B.mobileViewableImpressions,U+=B.tabletViewableImpressions,C+=B.age1617MaleViewableImpressions,F+=B.age1824MaleViewableImpressions,V+=B.age2534MaleViewableImpressions,T+=B.age3544MaleViewableImpressions,P+=B.age4554MaleViewableImpressions,N+=B.age55MaleViewableImpressions,q+=B.age1617FemaleViewableImpressions,_+=B.age1824FemaleViewableImpressions,E+=B.age2534FemaleViewableImpressions,L+=B.age3544FemaleViewableImpressions,j+=B.age4554FemaleViewableImpressions,W+=B.age55FemaleViewableImpressions)}),p.desktopViewableImpressions=Math.round(100/(p.viewableImpressions/A)),p.mobileViewableImpressions=Math.round(100/(p.viewableImpressions/S)),p.tabletViewableImpressions=Math.round(100/(p.viewableImpressions/U));var K=p.viewableImpressions-(C+F+V+T+P+N+q+_+E+L+j+W);K>100&&(C+=K*t.scope.globalSettings.reportAverageAge1617Male,F+=K*t.scope.globalSettings.reportAverageAge1824Male,V+=K*t.scope.globalSettings.reportAverageAge2534Male,T+=K*t.scope.globalSettings.reportAverageAge3544Male,P+=K*t.scope.globalSettings.reportAverageAge4554Male,N+=K*t.scope.globalSettings.reportAverageAge55Male,q+=K*t.scope.globalSettings.reportAverageAge1617Female,_+=K*t.scope.globalSettings.reportAverageAge1824Female,E+=K*t.scope.globalSettings.reportAverageAge2534Female,L+=K*t.scope.globalSettings.reportAverageAge3544Female,j+=K*t.scope.globalSettings.reportAverageAge4554Female,W+=K*t.scope.globalSettings.reportAverageAge55Female),p.age1617MaleViewableImpressions=Math.round(100/(p.viewableImpressions/C)),p.age1824MaleViewableImpressions=Math.round(100/(p.viewableImpressions/F)),p.age2534MaleViewableImpressions=Math.round(100/(p.viewableImpressions/V)),p.age3544MaleViewableImpressions=Math.round(100/(p.viewableImpressions/T)),p.age4554MaleViewableImpressions=Math.round(100/(p.viewableImpressions/P)),p.age55MaleViewableImpressions=Math.round(100/(p.viewableImpressions/N)),p.age1617FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/q)),p.age1824FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/_)),p.age2534FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/E)),p.age3544FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/L)),p.age4554FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/j)),p.age55FemaleViewableImpressions=Math.round(100/(p.viewableImpressions/W)),p.maleViewableImpressions=Math.round(p.maleViewableImpressions),p.femaleViewableImpressions=Math.round(p.femaleViewableImpressions),f[0].value=p.femaleViewableImpressions,f[1].value=p.maleViewableImpressions,d[0].male=Math.round(-1*p.age1617MaleViewableImpressions),d[1].male=Math.round(-1*p.age1824MaleViewableImpressions),d[2].male=Math.round(-1*p.age2534MaleViewableImpressions),d[3].male=Math.round(-1*p.age3544MaleViewableImpressions),d[4].male=Math.round(-1*p.age4554MaleViewableImpressions),d[5].male=Math.round(-1*p.age55MaleViewableImpressions),d[0].female=Math.round(p.age1617FemaleViewableImpressions),d[1].female=Math.round(p.age1824FemaleViewableImpressions),d[2].female=Math.round(p.age2534FemaleViewableImpressions),d[3].female=Math.round(p.age3544FemaleViewableImpressions),d[4].female=Math.round(p.age4554FemaleViewableImpressions),d[5].female=Math.round(p.age55FemaleViewableImpressions),u[0].value=p.desktopViewableImpressions,u[1].value=p.mobileViewableImpressions,u[2].value=p.tabletViewableImpressions,k.validateData(),v.validateData(),y.validateData(),e.$apply()})(R,D),b.zoom(R,moment(D).add(1,"d").toDate())};l.addListener("zoomed",function(R){M()}),e.toggleReport=function(R){$.each(i.superBanners,function(D,A){A.pin===R.pin&&(A.reportActive=!A.reportActive)}),m(function(){w(),M()},50)},e.toggleChapter=function(R){$.each(g,function(D,A){A.chapter.name===R&&(A.active=!A.active)}),m(function(){w(),M()},50)},w(),b.validateData(),l.validateNow(),l.setDefaultPeriod()},function(){e.error=!0})})},function(){r.path("/")})}]),app.factory("superService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,n,s,o){var m=[],c=function(){var i=t.defer();return m.length>0?i.resolve(m):e.get(scope.apiEndpoint+"super").then(function(g){angular.copy(g.data,m),i.resolve(m)},function(){i.reject()}),i.promise};function f(i){var g=null;return $.each(m,function(l,b){if(b.pin===i)return g=b,!1}),g}return{supers:m,getSuperReport:function(i,g){var l=t.defer();return e.post(scope.apiEndpoint+"super/"+i+"/report",g).then(function(b){l.resolve(b.data)},function(){l.reject()}),l.promise},getSupers:c,getReportSuperBannerCalendar:function(i){var g=t.defer();return e.get(scope.apiEndpoint+"super/"+i+"/ReportSuperBannerCalendar").then(function(l){g.resolve(l.data)},function(){g.reject()}),g.promise},getSuperByPin:function(i){var g=t.defer();if(m.length>0){var l=f(i);l?g.resolve(l):e.get(scope.apiEndpoint+"super/"+i).then(function(b){g.resolve(b.data)},function(){g.reject()})}else c().then(function(){var b=f(i);b?g.resolve(b):e.get(scope.apiEndpoint+"super/"+i).then(function(k){g.resolve(k.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,o,m){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,o.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,m.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(o){var m=a.defer(),r=scope.apiEndpoint+"configurations";return o&&(r=r+"?key="+o),t.get(r).then(function(c){m.resolve(c.data)},function(){m.reject()}),m.promise}}}]),app.controller("DataPrivacyPolicyController",["$scope","$filter","$sce","$window","configurationsService","markdownConverterService","$templateRequest","$interpolate",function(e,t,a,n,s,o,m,r){e.updatePolicyHtml=function(){var f="{{resource:",u=new RegExp(f+"[a-z]*}}","i"),i=e.policyHtml.match(u);i&&i.forEach(function(g,l,b){var k=g.substring(f.length,g.length-"}}".length);e.policyHtml=e.policyHtml.replaceAll(g,scope.network.resources[k])}),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.partner=scope.currentScope.chapter.partner?scope.currentScope.chapter.partner:scope.currentScope.network.partner,e.network=scope.currentScope.network,e.chapter=scope.currentScope.chapter,e.cookieManager=0,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")),scope.currentScope.chapter.settings.configurations.externalMediaConsentConfiguration&&(e.cookieManager=scope.currentScope.chapter.settings.configurations.externalMediaConsentConfiguration.Manager)),e.trackingLink=scope.currentScope.chapter.path,e.trackingLink.endsWith("/")||(e.trackingLink+="/"),e.trackingLink+="optout",s.getConfigurationsData("privacy_policy_markdown").then(function(c){if(c.chapterConfiguration&&c.chapterConfiguration.privacy_policy_markdown)return e.policyHtml=o.toHtml(c.chapterConfiguration.privacy_policy_markdown),void e.updatePolicyHtml();if(c.networkConfiguration.privacy_policy_markdown)e.policyHtml=o.toHtml(c.networkConfiguration.privacy_policy_markdown),e.updatePolicyHtml();else{if("de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1){var f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-ik-up-de.html");m(f).then(function(d){e.policyHtml=d,e.updatePolicyHtml()})}"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-ik-up-en.html"),m(f).then(function(u){e.policyHtml=u,e.updatePolicyHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-location-de.html"),m(f).then(function(u){e.policyHtml=u,e.updatePolicyHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-location-en.html"),m(f).then(function(u){e.policyHtml=u,e.updatePolicyHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-common-de.html"),m(f).then(function(u){e.policyHtml=u,e.updatePolicyHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-common-en.html"),m(f).then(function(u){e.policyHtml=u,e.updatePolicyHtml()}))}}),e.newsrooms=t("filter")(scope.network.chapters,{managementState:2}),e.scrollTo=function(c){$("body,html").animate({scrollTop:$(c).offset().top-120},1e3)}}]),app.controller("TermsOfUseController",["$scope","$filter","$sce","$window","configurationsService","markdownConverterService","$interpolate","$templateRequest",function(e,t,a,n,s,o,m,r){e.updateTosHtml=function(){var f="{{resource:",u=new RegExp(f+"[a-z]*}}","i"),i=e.tosHtml.match(u);i&&i.forEach(function(g,l,b){var k=g.substring(f.length,g.length-"}}".length);e.tosHtml=e.tosHtml.replaceAll(g,scope.network.resources[k])}),e.tosHtml=e.tosHtml.replaceAll("{{Matomo}}",scope.currentScope.chapter.settings.piwikBaseUrl?'<iframe style="border: 0; height: 200px; width: 600px; " src="'+e.matomoOptOutUrl+'"></iframe>':""),e.tosHtml=e.tosHtml.replaceAll("{{TrackingLink}}",e.trackingLink),e.tosHtml=m(e.tosHtml)(e)},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(c){if(c.chapterConfiguration&&c.chapterConfiguration.terms_of_service_markdown)return e.tosHtml=o.toHtml(c.chapterConfiguration.terms_of_service_markdown),void e.updateTosHtml();if(c.networkConfiguration.terms_of_service_markdown)e.tosHtml=o.toHtml(c.networkConfiguration.terms_of_service_markdown),e.updateTosHtml();else{if("de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1){var f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-ik-up-de.html");r(f).then(function(d){e.tosHtml=d,e.updateTosHtml()})}"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-ik-up-en.html"),r(f).then(function(u){e.tosHtml=u,e.updateTosHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-location-de.html"),r(f).then(function(u){e.tosHtml=u,e.updateTosHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-location-en.html"),r(f).then(function(u){e.tosHtml=u,e.updateTosHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-common-de.html"),r(f).then(function(u){e.tosHtml=u,e.updateTosHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-common-en.html"),r(f).then(function(u){e.tosHtml=u,e.updateTosHtml()}))}})}]),app.controller("AccessibilityController",["$scope","$filter","$sce","$window","configurationsService","markdownConverterService","$templateRequest","$interpolate",function(e,t,a,n,s,o,m,r){e.updateAccessibilityHtml=function(){var f="{{resource:",u=new RegExp(f+"[a-z]*}}","i"),i=e.accessibilityHtml.match(u);i&&i.forEach(function(g,l,b){var k=g.substring(f.length,g.length-"}}".length);e.accessibilityHtml=e.accessibilityHtml.replaceAll(g,scope.network.resources[k])}),e.accessibilityHtml=e.accessibilityHtml.replaceAll("{{Matomo}}",scope.currentScope.chapter.settings.piwikBaseUrl?'<iframe style="border: 0; height: 200px; width: 600px; " src="'+e.matomoOptOutUrl+'"></iframe>':""),e.accessibilityHtml=e.accessibilityHtml.replaceAll("{{TrackingLink}}",e.trackingLink),e.accessibilityHtml=r(e.accessibilityHtml)(e)},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("accessibility_markdown").then(function(c){if(c.chapterConfiguration&&c.chapterConfiguration.accessibility_markdown)return e.accessibilityHtml=o.toHtml(c.chapterConfiguration.accessibility_markdown),void e.updateAccessibilityHtml();if(c.networkConfiguration.accessibility_markdown)e.accessibilityHtml=o.toHtml(c.networkConfiguration.accessibility_markdown),e.updateAccessibilityHtml();else{if("de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1){var f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/accessibility-ik-up-de.html");m(f).then(function(d){e.accessibilityHtml=d,e.updateAccessibilityHtml()})}"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/accessibility-ik-up-en.html"),m(f).then(function(u){e.accessibilityHtml=u,e.updateAccessibilityHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/accessibility-location-de.html"),m(f).then(function(u){e.accessibilityHtml=u,e.updateAccessibilityHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/accessibility-location-en.html"),m(f).then(function(u){e.accessibilityHtml=u,e.updateAccessibilityHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/accessibility-common-de.html"),m(f).then(function(u){e.accessibilityHtml=u,e.updateAccessibilityHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(f=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/accessibility-common-en.html"),m(f).then(function(u){e.accessibilityHtml=u,e.updateAccessibilityHtml()}))}})}]),app.factory("translationService",["$http","$q","$rootScope",function(e,t,a){function s(){var c=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==c){var f=a.scope.profile,d=a.scope.network.settings.languagePack.split("-")[0];if(null!=f.activeUserLanguage?.vendorLanguageCode&&d!=f.activeUserLanguage?.vendorLanguageCode)return!0}return!1}var o=function(c,f){var d=t.defer(),u=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==u&&null!==f){var i=a.scope.profile,g=a.scope.network.settings.languagePack.split("-")[0];if(null!=i.activeUserLanguage?.vendorLanguageCode&&g!=i.activeUserLanguage?.vendorLanguageCode){var l=a.scope.globalSettings.configurations.translationEndpointInfo;return e.post(l.baseUrl+"/api/Translations/vendorbatch",{TenantId:"ab1c0d0b-c2d1-d0ab-1c0d-0ab1c0d0ab1c",Sources:c,IgnoreReplacements:!0,ToVendorLanguageId:f},{headers:{"Content-Type":"application/json",Authorization:"Bearer "+l.token}}).then(function(h){d.resolve(h.data.translations)},function(h){console.log("TRANS FETCH FAIL",h);var w=c.map(function(p){return{source:p,translation:"UNABLE TO TRANSLATE:\n"+p}});return d.resolve(w),d.promise}),d.promise}}var I=c.map(function(h){return{source:h,translation:h}});return d.resolve(I),d.promise};return{getAvailableTargetLanguages:function(){var c=t.defer();return e.get(scope.apiEndpoint+"translations/targetLanguages").then(function(f){c.resolve(f.data)},function(){c.reject()}),c.promise},translate:o,translateByUserLanguageCode:function(c){if(s()){var f=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration.VendorId,u=a.scope.profile.activeUserLanguage?.vendorLanguageCode,g=a.scope.globalSettings.configurations.availableVendorLanguages.find(l=>l.id==f).supportedVendorLanguages.find(l=>l.languageCode===u||l.languageISO639Code===u);return o(c,g.id)}return o(c,null)},translateToOrigin:function(c){if(s()){var f=a.scope.network.settings.languagePack.split("-")[0],d=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration.VendorId,i=a.scope.globalSettings.configurations.availableVendorLanguages.find(g=>g.id==d).supportedVendorLanguages.find(g=>g.languageCode===f||g.languageISO639Code===f);return o(c,i.id)}return o(c,null)}}}]),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","$rootScope","translationService",function(e,t,a,n,s,o,m,r){if(t.blurb="About me",t.multiLanguageTranslationSystemIsEnabled=m.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,t.profile=a.profile,t.web_profile_newsletter=e(scope.currentScope.network.resources.web_profile_newsletter)({chapterName:scope.currentScope.chapter.name}),t.birthdayCalendarVisible=!1,t.staffDirectoryLoad=a.getStaffDirectoryOwned,t.staffDirectorySave=a.updateStaffDirectory,t.staffDirectoryLoadAdminEditable=a.getOwnPrivateStaffDirData,t.profileSaved=!1,t.blurb=t.profile.about,t.loadingAvatar=!1,t.loadingCover=!1,t.showNewsListOrder=t.profile.isMerkuristJournalist,t.profile.birthdayCalendarData){var f=new Date(t.profile.birthdayCalendarData.birthday);t.profile.birthdayCalendarData.convertedDate=new Date(f.getFullYear(),f.getMonth(),f.getDate()),t.profile.birthdayCalendarData.convertedDate.setMinutes(t.profile.birthdayCalendarData.convertedDate.getMinutes()-t.profile.birthdayCalendarData.convertedDate.getTimezoneOffset())}t.listOflanguages=[];var d=m.scope.network.settings.languagePack.split("-")[0],u=m.scope.network.getResourceOrKeyName("web_translation_use_original");m.scope.network.getResourceOrKeyName("web_translation_select_target_language"),t.listOflanguages.push({vendorLanguageCode:d,nativeName:u}),r.getAvailableTargetLanguages().then(function(g){Object.keys(g).forEach(l=>{t.listOflanguages.push({vendorLanguageCode:l,nativeName:g[l]})}),a.getProfile().then(function(l){t.profile.activeUserLanguage||(t.profile.activeUserLanguage=t.listOflanguages.find(function(v){return v.vendorLanguageCode===d})),l.isRegistered||s.path("/").replace(),t.blurb=l.about;var b=l.guid,k=new Date(t.profile.birthdayCalendarData.birthday);t.birthdayDisplayString=k.setMinutes(k.getMinutes()-k.getTimezoneOffset()).toLocaleDateString("de-DE"),t.$watch("profile.guid",function(){b!==l.guid&&s.path("/")})},function(l){s.path("/").replace()})}),t.deleteAvatar=function(){a.updateAvatar(null)},t.deleteCover=function(){a.updateCover(null)},t.uploadCover=function(g,l){g||!l?g&&(t.loadingCover=!0,o.upload({url:scope.apiEndpoint+"upload",data:{file:g}}).then(function(b){a.updateCover(b.data).then(function(){})},function(b){alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},function(b){t.fileUploadProgress=parseInt(100*b.loaded/b.total)}).finally(function(){t.loadingCover=!1})):alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},t.uploadAvatar=function(g,l){g||!l?g&&(t.loadingAvatar=!0,o.upload({url:scope.apiEndpoint+"upload",data:{file:g}}).then(function(b){a.updateAvatar(b.data).then(function(){})},function(b){alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},function(b){t.fileUploadProgress=parseInt(100*b.loaded/b.total)}).finally(function(){t.loadingAvatar=!1})):alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},t.toggleLocationSelection=function(g){-1===t.profile.locations.indexOf(g)?t.profile.locations.push(g):t.profile.locations.splice(t.profile.locations.indexOf(g),1)},t.toggleUnsubscribe=function(){t.profile.unsubscribe=null===t.profile.unsubscribe?new Date:null},t.submitForm=function(g){if(t.profileSaved=!1,g){if(t.profile.birthdayCalendarData){var l=new Date(t.profile.birthdayCalendarData.convertedDate.getFullYear(),t.profile.birthdayCalendarData.convertedDate.getMonth(),t.profile.birthdayCalendarData.convertedDate.getDate());l.setMilliseconds(0),l.setSeconds(0),l.setMinutes(l.getMinutes()-l.getTimezoneOffset()),t.profile.birthdayCalendarData.birthday=l}t.gridApi&&(t.profile.StaffDirectoryData=t.gridApi.getData()),a.updateProfile(t.profile).then(function(b){t.profileSaved=!0,t.birthdayCalendarVisible=!1,t.profile.birthdayCalendarData&&(t.profile.birthdayCalendarData.convertedDate=new Date(t.profile.birthdayCalendarData.birthday)),t.multiLanguageTranslationSystemIsEnabled&&document.location.reload()})}},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(){m(!0)});var o=null,m=function(U){if(o||angular.equals({},s)||U){if(o)return o;var F=a.defer();return n.noop().then(function(){t.get(scope.apiEndpoint+"Profiles").then(function(T){angular.copy(T.data,s),s.translatedResources&&(scope.network.resources=s.translatedResources),F.resolve(s)}).catch(function(){F.reject()}).finally(function(){o=null})}).catch(function(){F.reject()}),o=F.promise}var C=a.defer();return C.resolve(s),C.promise};return{updateProfile:function(U){var C=a.defer();return t.post(scope.apiEndpoint+"Profiles",U).then(function(F){angular.copy(F.data,s),C.resolve(s)},function(){C.reject()}),C.promise},updateAvatar:function(U){var C=a.defer();return t.post(scope.apiEndpoint+"Profiles/Avatar",{guid:U}).then(function(F){s?(s.avatarGuid=F.data.avatarGuid,s.avatarImageUrl=F.data.avatarImageUrl+"?preset=profile-avatar"):angular.copy(F.data,s),C.resolve(s)},function(){C.reject()}),C.promise},updatePartnerAccessAllow:function(){var U=a.defer();return t.post(scope.apiEndpoint+"Profiles/PartnerAccessAllow").then(function(C){angular.copy(C.data,s),U.resolve(s)},function(){U.reject()}),U.promise},fetchExternalAvatar:function(U){var C=a.defer();return t.post(scope.apiEndpoint+"Profiles/Avatar/FetchExternal",U).then(function(F){s?(s.avatarGuid=F.data.avatarGuid,s.avatarImageUrl=F.data.avatarImageUrl+"?preset=profile-avatar"):angular.copy(F.data,s),C.resolve(s)},function(){C.reject()}),C.promise},updateCover:function(U){var C=a.defer();return t.post(scope.apiEndpoint+"Profiles/Cover",{guid:U}).then(function(F){s?(s.coverGuid=F.data.coverGuid,s.coverImageUrl=F.data.coverImageUrl):angular.copy(F.data,s),C.resolve(s)},function(){C.reject()}),C.promise},getProfile:m,insertFeedback:function(U){var C=a.defer();return t.post(scope.apiEndpoint+"Sendmail/Feedback",U).then(function(F){C.resolve(F.data)},function(){C.reject()}),C.promise},insertProposedCity:function(U){var C=a.defer();return t.post(scope.apiEndpoint+"Sendmail/ProposedCity",U).then(function(F){C.resolve(F.data)},function(){C.reject()}),C.promise},profile:s,getPublicProfile:function(U){var C=a.defer();return t.get(scope.apiEndpoint+"profiles/public/"+U).then(function(F){C.resolve(F.data)},function(){C.reject()}),C.promise},unsubscribe:function(U){var C=a.defer();return t.put(scope.apiEndpoint+"profiles/unsubscribe/"+U).then(function(F){C.resolve(F.data)},function(){C.reject()}),C.promise},updateFavoriteChapter:function(U){var C=a.defer();return t.post(scope.apiEndpoint+"Profiles/FavoriteChapter/"+U).then(function(){C.resolve()},function(){C.reject()}),C.promise},updateFavoriteLanguage:function(U){var C=a.defer();return t.post(scope.apiEndpoint+"Profiles/favoriteLanguage/"+U).then(function(){C.resolve()},function(){C.reject()}),C.promise},getPartnerAccessAllowData:function(){var U=a.defer();return t.get(scope.apiEndpoint+"Profiles/PartnerAccessAllowData").then(function(C){U.resolve(C.data)},function(){U.reject()}),U.promise},consentCookies:function(){var U=a.defer();return t.post(scope.apiEndpoint+"profiles/cookiesConsent").then(function(C){U.resolve(C.data)},function(){U.reject()}),U.promise},consentExternalMediaCookies:function(U){var C=a.defer();return t.post(scope.apiEndpoint+"profiles/externalMediaCookiesConsent",U).then(function(F){C.resolve(F.data)},function(){C.reject()}),C.promise},contactSnipCreator:function(U){var C=a.defer();return t.post(scope.apiEndpoint+"profiles/contactSnipCreator",U).then(function(F){C.resolve()},function(){C.reject()}),C.promise},getStaffDirectoryPublic:function(U){var C=a.defer();return t.get(scope.apiEndpoint+"profiles/publicstaffdirdata/"+U).then(function(F){C.resolve(F.data)},function(){C.reject()}),C.promise},getStaffDirectoryOwned:function(U){var C=a.defer();return t.get(scope.apiEndpoint+"profiles/ownstaffdirdata/"+U).then(function(F){C.resolve(F.data)},function(){C.reject()}),C.promise},updateStaffDirectory:function(U,C){var F=a.defer();return t.post(scope.apiEndpoint+"Profiles/staffdirdata/?userId="+U,C).then(function(V){angular.copy(V.data,s),F.resolve(s)},function(){F.reject()}),F.promise},getOwnPrivateStaffDirData:function(U){var C=a.defer();return t.get(scope.apiEndpoint+"profiles/ownnoneditablestaffdirdata/"+U).then(function(F){C.resolve(F.data)},function(){C.reject()}),C.promise},report:function(U){var C=a.defer();return t.post(scope.apiEndpoint+"profiles/report",U).then(function(F){C.resolve(s)},function(){C.reject()}),C.promise},block:function(U){var C=a.defer();return t.post(scope.apiEndpoint+"profiles/block",U).then(function(F){C.resolve(s)},function(){C.reject()}),C.promise}}}]),app.controller("PublicProfileController",["$scope","$rootScope","profileService","articleService","scopeService","$stateParams","$uibModal",function(e,t,a,n,s,o,m){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.enableVerifiedUsers=t.scope.currentScope.chapter.settings.configurations.enableVerifiedUsers,e.showVerifiedUser=!1,e.loadProfile=function(){a.getPublicProfile(o.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(o.id).then(function(c){e.articles=c}),e.showReportUser=e.enableUserReports&&(!!e.enableUserReportsOrBlockForAll||!e.aprofile.isJournalist),e.showBlockUser=e.enableBlockUsers&&(!!e.enableUserReportsOrBlockForAll||!e.aprofile.isJournalist),e.showVerifiedUser=e.aprofile.isVerifiedUser})},e.loadProfile(),e.reportUser=function(r){m.open({templateUrl:"/ClientApp/src/legacy-app/user/profileReportDialog.html",controller:"ProfileReportDialog",size:"lg",resolve:{profile:function(){return r}}})},e.blockUser=function(r){m.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","$scope","$rootScope","scopeService","formatterService","profileService","$uibModal",function(e,t,a,n,s,o,m){var r=this;r.shortDateTimeFormatString=s.getShortDateTimeFormatString(),r.showVerifiedUser=!1,this.$onInit=function(){r.article&&r.article.originChapterSlug&&r.article.originNetworkSlug?n.getNetworkChapter(r.article.originChapterSlug,r.article.originNetworkSlug).then(function(c){r.crossNetworkInfo=c,r.userProfileUrl=c.network.path+("/"===c.chapter.path?"/profile/"+r.user.guid:c.chapter.path+"/profile/"+r.user.guid)}):r.userProfileUrl=a.scope.currentScope.chapter.path+"/profile/"+r.user.guid,r.article&&r.article.originArticle&&(r.originArticlePath=a.scope.currentScope.network.path+n.getChapter(r.article.originChapterSlug).path+r.article.originArticle.path),r.showVerifiedUser=r.user.isVerifiedUser},r.userBadgeImprintDialog=function(){m.open({templateUrl:"/ClientApp/src/legacy-app/user/userBadgeImprintDialog.html",controller:"UserBadgeImprintDialog",size:"lg",resolve:{user:function(){return r.user},article:function(){return r.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(o){e.impressum=o.html}):a&&a.originChapterSlug&&a.originNetworkSlug&&n.getNetworkChapter(a.originChapterSlug,a.originNetworkSlug).then(function(o){e.impressum=o.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.factory("workflowService",["$rootScope","$http","$q","authService",function(e,t,a,n){var m=function(){return scope.apiEndpoint+"workflow/attachment/"};return{getWorkflowTemplate:function(f,d,u,i){var g=a.defer(),l=d?"?preview=true":"";return l?(u&&(l=l+"&articleId="+u),i&&(l=l+"&revisionId="+i)):u&&(l="?articleId="+u),t.get(scope.apiEndpoint+"workflow/template/"+f+l).then(function(b){g.resolve(b.data)},function(){g.reject()}),g.promise},saveWorkflowData:function(f){var d=a.defer();return t.post(scope.apiEndpoint+"workflow/submission",JSON.stringify(f)).then(function(u){d.resolve(u.data)},function(){d.reject()}),d.promise},getWorkflowUploadBaseUrl:m,getEmbeddableWorkflowList:function(){var f=a.defer();return t.get(scope.apiEndpoint+"workflow/list/").then(function(d){f.resolve(d.data)},function(){f.reject()}),f.promise},deleteSubmittedFile:function(f){var d=a.defer();return t.delete(m()+f).then(function(u){d.resolve(!1)},function(u){d.reject("Can not delete file: "+u)}),d}}}]);
(self.webpackChunkClientApp=self.webpackChunkClientApp||[]).push([["main"],{6084:(kn,he,l)=>{"use strict";l.d(he,{Ul:()=>C,OS:()=>f,b0:()=>u,rN:()=>c,DZ:()=>a,kr:()=>s,gt:()=>h,_V:()=>J,ZB:()=>V,jk:()=>X,SM:()=>Y});var o=l(9056);const c={lockCount:0,lock(){this.lockCount++},callbacks:[],callEffects(){if(this.lockCount--,this.lockCount<0)throw new Error("Unexpected Effect Call");if(0===this.lockCount){const M=this.callbacks;this.callbacks=[],M.forEach(se=>se())}}},I=(M,se)=>{if(!(M instanceof Object&&se instanceof Object))return M===se;const De=Object.keys(M),Fe=Object.keys(se);return De.length===Fe.length&&!De.some(ne=>M[ne]!==se[ne])};class C extends o.wA{constructor(){super(...arguments),this._pendingContext=this.context}componentWillReceiveProps(se,ge){this._pendingContext=ge??{}}shouldComponentUpdate(se,ge){return!I(this.props,se)||!I(this.state,ge)||!I(this.context,this._pendingContext)}}class f extends C{constructor(){super(...arguments),this._effects=[]}createEffects(){return[]}updateEffects(){}componentWillMount(){c.lock()}componentWillUpdate(se,ge,De){c.lock()}componentDidMount(){c.callbacks.push(()=>{this._effects=this.createEffects()}),c.callEffects()}componentDidUpdate(){c.callbacks.push(()=>this.updateEffects()),c.callEffects()}destroyEffects(){this._effects.forEach(se=>se.dispose())}componentWillUnmount(){this.destroyEffects()}}class a extends f{constructor(){super(...arguments),this.vDomElement=null}vDomUpdateClasses(){const se=this.vDomElement,ge=se.className.length?se.className.split(" "):[],De=ge.filter(Ae=>se.dxClasses.previous.indexOf(Ae)<0),Fe=se.dxClasses.previous.filter(Ae=>ge.indexOf(Ae)<0);De.forEach(Ae=>{const ne=se.dxClasses.removed.indexOf(Ae);ne>-1?se.dxClasses.removed.splice(ne,1):se.dxClasses.added.push(Ae)}),Fe.forEach(Ae=>{const ne=se.dxClasses.added.indexOf(Ae);ne>-1?se.dxClasses.added.splice(ne,1):se.dxClasses.removed.push(Ae)})}componentDidMount(){const se=(0,o.lN)(this.$LI,!0);this.vDomElement=se,super.componentDidMount(),se.dxClasses=se.dxClasses||{removed:[],added:[],previous:[]},se.dxClasses.previous=se?.className.length?se.className.split(" "):[]}componentDidUpdate(){super.componentDidUpdate();const se=this.vDomElement;null!==se&&(se.dxClasses.added.forEach(ge=>se.classList.add(ge)),se.dxClasses.removed.forEach(ge=>se.classList.remove(ge)),se.dxClasses.previous=se.className.length?se.className.split(" "):[])}shouldComponentUpdate(se,ge){const De=super.shouldComponentUpdate(se,ge);return De&&this.vDomUpdateClasses(),De}}let p=0;const s=function(M){const se=p++;return{id:se,defaultValue:M,Provider:class extends o.wA{getChildContext(){return Object.assign(Object.assign({},this.context),{[se]:this.props.value||M})}render(){return this.props.children}}}};class u{constructor(se,ge){this.dependency=ge,this.effect=se,this.destroy=se()}update(se){const ge=this.dependency;se&&(this.dependency=se),(!se||se.some((De,Fe)=>ge[Fe]!==De))&&(this.dispose(),this.destroy=this.effect())}dispose(){this.destroy&&this.destroy()}}const h=()=>new u(()=>{(0,o.k4)()},[]);function E(M){return null===M}function R(M,se,ge,De,Fe,Ae){const ne=M.childFlags,fe=M.children,_e=M.props,ie=M.flags;if(1!==ne){if(2===ne)E(ge)?(0,o._M)(fe,se,De,Fe,null,Ae):ge=(ge=N(fe,se,ge,De,Fe,Ae))?ge.nextSibling:null;else if(16===ne)E(ge)?se.appendChild(document.createTextNode(fe)):1!==se.childNodes.length||3!==ge.nodeType?se.textContent=fe:ge.nodeValue!==fe&&(ge.nodeValue=fe),ge=null;else if(12&ne){let de=!1;for(let le=0,pe=fe.length;le<pe;++le){const Ee=fe[le];E(ge)||de&&(16&Ee.flags)>0?(0,o._M)(Ee,se,De,Fe,ge,Ae):ge=(ge=N(Ee,se,ge,De,Fe,Ae))?ge.nextSibling:null,de=(16&Ee.flags)>0}}if(!(8192&ie)){let de=null;for(;ge;)de=ge.nextSibling,se.removeChild(ge),ge=de}}else!E(se.firstChild)&&!function T(M,se){return Boolean(se&&se.dangerouslySetInnerHTML&&se.dangerouslySetInnerHTML.__html&&function O(M,se){const ge=document.createElement("i");return ge.innerHTML=se,ge.innerHTML===M.innerHTML}(M,se.dangerouslySetInnerHTML.__html))}(se,_e)&&(se.textContent="",448&ie&&(se.defaultValue=""))}function B(M,se,ge){if(3!==ge.nodeType)se.replaceChild(M.dom=document.createTextNode(M.children),ge);else{const De=M.children;ge.nodeValue!==De&&(ge.nodeValue=De),M.dom=ge}return M.dom}function N(M,se,ge,De,Fe,Ae){const ne=M.flags|=16384;return 14&ne?function k(M,se,ge,De,Fe,Ae,ne){const _e=M.ref;let de;if(Ae){const le=(0,o.NK)(M,M.type,M.props||o.kT,De,Fe,ne);de=N(le.$LI,se,ge,le.$CX,Fe,ne),(0,o._7)(_e,le,ne)}else{const le=(0,o.Cc)((0,o.F1)(M,De));de=N(le,se,ge,De,Fe,ne),M.children=le,(0,o.vc)(M,ne)}return de}(M,se,ge,De,Fe,(4&ne)>0,Ae):481&ne?function P(M,se,ge,De,Fe,Ae){const ne=M.props,fe=M.className,_e=M.flags,ie=M.ref;return Fe=Fe||(32&_e)>0,1!==ge.nodeType?((0,o._2)(M,null,De,Fe,null,Ae),se.replaceChild(M.dom,ge)):(M.dom=ge,R(M,ge,ge.firstChild,De,Fe,Ae),E(ne)||(0,o.w7)(M,_e,ne,ge,Fe),function x(M){return null==M}(fe)?""!==ge.className&&ge.removeAttribute("class"):Fe?ge.setAttribute("class",fe):ge.className=fe,(0,o.j4)(ie,ge,Ae)),M.dom}(M,se,ge,De,Fe,Ae):16&ne?B(M,se,ge):512&ne?M.dom=ge:8192&ne?function W(M,se,ge,De,Fe,Ae){const ne=M.children;return 2===M.childFlags?(B(ne,se,ge),ne.dom):(R(M,se,ge,De,Fe,Ae),function w(M){let se,ge;for(;M;){if(se=M.flags,2033&se)return M.dom;ge=M.children,M=8192&se?2===M.childFlags?ge:ge[ge.length-1]:4&se?ge.$LI:ge}return null}(ne[ne.length-1]))}(M,se,ge,De,Fe,Ae):(function S(M){throw M||(M="a runtime error occured! Use Inferno in development environment to find the error."),new Error(`Inferno Error: ${M}`)}(),null)}function V(M,se,ge){let De=se.firstChild;if(E(De))(0,o.sY)(M,se,ge);else{const Fe=[];for(function b(M){return null===M||!1===M||!0===M||void 0===M}(M)||(De=N(M,se,De,{},!1,Fe));De&&(De=De.nextSibling);)se.removeChild(De);if(Fe.length>0){let Ae;for(;void 0!==(Ae=Fe.shift());)Ae()}}se.$V=M,function y(M){return"function"==typeof M}(ge)&&ge()}var U=l(4572);function Y(M,se,ge){setTimeout(()=>{(0,o.sY)((0,U.a)(M,se),(M=>{var se,ge;return(null===(se=M.container)||void 0===se?void 0:se.get(0))||(null===(ge=M.item)||void 0===ge?void 0:ge.get(0))})(se))},0)}const J=(M,se,ge)=>{const De=se[M];return!!De&&"string"!=typeof De},j=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"]),q=/[A-Z]/g;function X(M){if(M instanceof Object)return Object.entries(M).reduce((se,[ge,De])=>(se[(M=>M.replace(q,"-$&").toLowerCase())(ge)]=(M=>"number"==typeof M||!Number.isNaN(Number(M)))(De)?((M,se)=>j.has(M)?se:`${se}px`)(ge,De):De,se),{})}},1704:(kn,he,l)=>{"use strict";l.d(he,{s:()=>nn});const o=[0,2e3,1e4,3e4,null];class c{constructor(me){this._retryDelays=void 0!==me?[...me,null]:o}nextRetryDelayInMilliseconds(me){return this._retryDelays[me.previousRetryCount]}}var I=l(8239);let C=(()=>{class $e{}return $e.Authorization="Authorization",$e.Cookie="Cookie",$e})();class f{constructor(me,xe,Te){this.statusCode=me,this.statusText=xe,this.content=Te}}class a{get(me,xe){return this.send({...xe,method:"GET",url:me})}post(me,xe){return this.send({...xe,method:"POST",url:me})}delete(me,xe){return this.send({...xe,method:"DELETE",url:me})}getCookieString(me){return""}}class p extends a{constructor(me,xe){super(),this._innerClient=me,this._accessTokenFactory=xe}send(me){var xe=this;return(0,I.Z)(function*(){let Te=!0;xe._accessTokenFactory&&(!xe._accessToken||me.url&&me.url.indexOf("/negotiate?")>0)&&(Te=!1,xe._accessToken=yield xe._accessTokenFactory()),xe._setAuthorizationHeader(me);const Ye=yield xe._innerClient.send(me);return Te&&401===Ye.statusCode&&xe._accessTokenFactory?(xe._accessToken=yield xe._accessTokenFactory(),xe._setAuthorizationHeader(me),yield xe._innerClient.send(me)):Ye})()}_setAuthorizationHeader(me){me.headers||(me.headers={}),this._accessToken?me.headers[C.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&me.headers[C.Authorization]&&delete me.headers[C.Authorization]}getCookieString(me){return this._innerClient.getCookieString(me)}}class s extends Error{constructor(me,xe){const Te=new.target.prototype;super(`${me}: Status code '${xe}'`),this.statusCode=xe,this.__proto__=Te}}class u extends Error{constructor(me="A timeout occurred."){const xe=new.target.prototype;super(me),this.__proto__=xe}}class d extends Error{constructor(me="An abort occurred."){const xe=new.target.prototype;super(me),this.__proto__=xe}}class h extends Error{constructor(me,xe){const Te=new.target.prototype;super(me),this.transport=xe,this.errorType="UnsupportedTransportError",this.__proto__=Te}}class g extends Error{constructor(me,xe){const Te=new.target.prototype;super(me),this.transport=xe,this.errorType="DisabledTransportError",this.__proto__=Te}}class x extends Error{constructor(me,xe){const Te=new.target.prototype;super(me),this.transport=xe,this.errorType="FailedToStartTransportError",this.__proto__=Te}}class b extends Error{constructor(me){const xe=new.target.prototype;super(me),this.errorType="FailedToNegotiateWithServerError",this.__proto__=xe}}class y extends Error{constructor(me,xe){const Te=new.target.prototype;super(me),this.innerErrors=xe,this.__proto__=Te}}var E=l(3473);class S{constructor(){}log(me,xe){}}S.instance=new S;class w{static isRequired(me,xe){if(null==me)throw new Error(`The '${xe}' argument is required.`)}static isNotEmpty(me,xe){if(!me||me.match(/^\s*$/))throw new Error(`The '${xe}' argument should not be empty.`)}static isIn(me,xe,Te){if(!(me in xe))throw new Error(`Unknown ${Te} value: ${me}.`)}}class T{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 k($e,me){let xe="";return P($e)?(xe=`Binary data of length ${$e.byteLength}`,me&&(xe+=`. Content: '${function R($e){const me=new Uint8Array($e);let xe="";return me.forEach(Te=>{xe+=`0x${Te<16?"0":""}${Te.toString(16)} `}),xe.substr(0,xe.length-1)}($e)}'`)):"string"==typeof $e&&(xe=`String data of length ${$e.length}`,me&&(xe+=`. Content: '${$e}'`)),xe}function P($e){return $e&&typeof ArrayBuffer<"u"&&($e instanceof ArrayBuffer||$e.constructor&&"ArrayBuffer"===$e.constructor.name)}function B($e,me,xe,Te,Ye,St){return W.apply(this,arguments)}function W(){return(W=(0,I.Z)(function*($e,me,xe,Te,Ye,St){const Ct={},[Rt,fn]=K();Ct[Rt]=fn,$e.log(E.i.Trace,`(${me} transport) sending data. ${k(Ye,St.logMessageContent)}.`);const ct=P(Ye)?"arraybuffer":"text",He=yield xe.post(Te,{content:Ye,headers:{...Ct,...St.headers},responseType:ct,timeout:St.timeout,withCredentials:St.withCredentials});$e.log(E.i.Trace,`(${me} transport) request complete. Response status: ${He.statusCode}.`)})).apply(this,arguments)}class V{constructor(me,xe){this._subject=me,this._observer=xe}dispose(){const me=this._subject.observers.indexOf(this._observer);me>-1&&this._subject.observers.splice(me,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(xe=>{})}}class U{constructor(me){this._minLevel=me,this.out=console}log(me,xe){if(me>=this._minLevel){const Te=`[${(new Date).toISOString()}] ${E.i[me]}: ${xe}`;switch(me){case E.i.Critical:case E.i.Error:this.out.error(Te);break;case E.i.Warning:this.out.warn(Te);break;case E.i.Information:this.out.info(Te);break;default:this.out.log(Te)}}}}function K(){let $e="X-SignalR-User-Agent";return T.isNode&&($e="User-Agent"),[$e,Y("7.0.2",J(),T.isNode?"NodeJS":"Browser",j())]}function Y($e,me,xe,Te){let Ye="Microsoft SignalR/";const St=$e.split(".");return Ye+=`${St[0]}.${St[1]}`,Ye+=` (${$e}; `,Ye+=me&&""!==me?`${me}; `:"Unknown OS; ",Ye+=`${xe}`,Ye+=Te?`; ${Te}`:"; Unknown Runtime Version",Ye+=")",Ye}function J(){if(!T.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function j(){if(T.isNode)return process.versions.node}function G($e){return $e.stack?$e.stack:$e.message?$e.message:`${$e}`}class Z extends a{constructor(me){if(super(),this._logger=me,typeof fetch>"u"){const xe=require;this._jar=new(xe("tough-cookie").CookieJar),this._fetchType=xe("node-fetch"),this._fetchType=xe("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function q(){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 xe=require;this._abortControllerType=xe("abort-controller")}else this._abortControllerType=AbortController}send(me){var xe=this;return(0,I.Z)(function*(){if(me.abortSignal&&me.abortSignal.aborted)throw new d;if(!me.method)throw new Error("No method defined.");if(!me.url)throw new Error("No url defined.");const Te=new xe._abortControllerType;let Ye;me.abortSignal&&(me.abortSignal.onabort=()=>{Te.abort(),Ye=new d});let Ct,St=null;me.timeout&&(St=setTimeout(()=>{Te.abort(),xe._logger.log(E.i.Warning,"Timeout from HTTP request."),Ye=new u},me.timeout)),""===me.content&&(me.content=void 0),me.content&&(me.headers=me.headers||{},me.headers["Content-Type"]=P(me.content)?"application/octet-stream":"text/plain;charset=UTF-8");try{Ct=yield xe._fetchType(me.url,{body:me.content,cache:"no-cache",credentials:!0===me.withCredentials?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...me.headers},method:me.method,mode:"cors",redirect:"follow",signal:Te.signal})}catch(ct){throw Ye||(xe._logger.log(E.i.Warning,`Error from HTTP request. ${ct}.`),ct)}finally{St&&clearTimeout(St),me.abortSignal&&(me.abortSignal.onabort=null)}if(!Ct.ok){const ct=yield X(Ct,"text");throw new s(ct||Ct.statusText,Ct.status)}const fn=yield X(Ct,me.responseType);return new f(Ct.status,Ct.statusText,fn)})()}getCookieString(me){let xe="";return T.isNode&&this._jar&&this._jar.getCookies(me,(Te,Ye)=>xe=Ye.join("; ")),xe}}function X($e,me){let xe;switch(me){case"arraybuffer":xe=$e.arrayBuffer();break;case"text":default:xe=$e.text();break;case"blob":case"document":case"json":throw new Error(`${me} is not supported.`)}return xe}class M extends a{constructor(me){super(),this._logger=me}send(me){return me.abortSignal&&me.abortSignal.aborted?Promise.reject(new d):me.method?me.url?new Promise((xe,Te)=>{const Ye=new XMLHttpRequest;Ye.open(me.method,me.url,!0),Ye.withCredentials=void 0===me.withCredentials||me.withCredentials,Ye.setRequestHeader("X-Requested-With","XMLHttpRequest"),""===me.content&&(me.content=void 0),me.content&&(P(me.content)?Ye.setRequestHeader("Content-Type","application/octet-stream"):Ye.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const St=me.headers;St&&Object.keys(St).forEach(Ct=>{Ye.setRequestHeader(Ct,St[Ct])}),me.responseType&&(Ye.responseType=me.responseType),me.abortSignal&&(me.abortSignal.onabort=()=>{Ye.abort(),Te(new d)}),me.timeout&&(Ye.timeout=me.timeout),Ye.onload=()=>{me.abortSignal&&(me.abortSignal.onabort=null),Ye.status>=200&&Ye.status<300?xe(new f(Ye.status,Ye.statusText,Ye.response||Ye.responseText)):Te(new s(Ye.response||Ye.responseText||Ye.statusText,Ye.status))},Ye.onerror=()=>{this._logger.log(E.i.Warning,`Error from HTTP request. ${Ye.status}: ${Ye.statusText}.`),Te(new s(Ye.statusText,Ye.status))},Ye.ontimeout=()=>{this._logger.log(E.i.Warning,"Timeout from HTTP request."),Te(new u)},Ye.send(me.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class se extends a{constructor(me){if(super(),typeof fetch<"u"||T.isNode)this._httpClient=new Z(me);else{if(!(typeof XMLHttpRequest<"u"))throw new Error("No usable HttpClient found.");this._httpClient=new M(me)}}send(me){return me.abortSignal&&me.abortSignal.aborted?Promise.reject(new d):me.method?me.url?this._httpClient.send(me):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(me){return this._httpClient.getCookieString(me)}}var ge=(()=>{return($e=ge||(ge={}))[$e.None=0]="None",$e[$e.WebSockets=1]="WebSockets",$e[$e.ServerSentEvents=2]="ServerSentEvents",$e[$e.LongPolling=4]="LongPolling",ge;var $e})(),De=(()=>{return($e=De||(De={}))[$e.Text=1]="Text",$e[$e.Binary=2]="Binary",De;var $e})();class Fe{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 Ae{constructor(me,xe,Te){this._httpClient=me,this._logger=xe,this._pollAbort=new Fe,this._options=Te,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}connect(me,xe){var Te=this;return(0,I.Z)(function*(){if(w.isRequired(me,"url"),w.isRequired(xe,"transferFormat"),w.isIn(xe,De,"transferFormat"),Te._url=me,Te._logger.log(E.i.Trace,"(LongPolling transport) Connecting."),xe===De.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[Ye,St]=K(),Ct={[Ye]:St,...Te._options.headers},Rt={abortSignal:Te._pollAbort.signal,headers:Ct,timeout:1e5,withCredentials:Te._options.withCredentials};xe===De.Binary&&(Rt.responseType="arraybuffer");const fn=`${me}&_=${Date.now()}`;Te._logger.log(E.i.Trace,`(LongPolling transport) polling: ${fn}.`);const ct=yield Te._httpClient.get(fn,Rt);200!==ct.statusCode?(Te._logger.log(E.i.Error,`(LongPolling transport) Unexpected response code: ${ct.statusCode}.`),Te._closeError=new s(ct.statusText||"",ct.statusCode),Te._running=!1):Te._running=!0,Te._receiving=Te._poll(Te._url,Rt)})()}_poll(me,xe){var Te=this;return(0,I.Z)(function*(){try{for(;Te._running;)try{const Ye=`${me}&_=${Date.now()}`;Te._logger.log(E.i.Trace,`(LongPolling transport) polling: ${Ye}.`);const St=yield Te._httpClient.get(Ye,xe);204===St.statusCode?(Te._logger.log(E.i.Information,"(LongPolling transport) Poll terminated by server."),Te._running=!1):200!==St.statusCode?(Te._logger.log(E.i.Error,`(LongPolling transport) Unexpected response code: ${St.statusCode}.`),Te._closeError=new s(St.statusText||"",St.statusCode),Te._running=!1):St.content?(Te._logger.log(E.i.Trace,`(LongPolling transport) data received. ${k(St.content,Te._options.logMessageContent)}.`),Te.onreceive&&Te.onreceive(St.content)):Te._logger.log(E.i.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(Ye){Te._running?Ye instanceof u?Te._logger.log(E.i.Trace,"(LongPolling transport) Poll timed out, reissuing."):(Te._closeError=Ye,Te._running=!1):Te._logger.log(E.i.Trace,`(LongPolling transport) Poll errored after shutdown: ${Ye.message}`)}}finally{Te._logger.log(E.i.Trace,"(LongPolling transport) Polling complete."),Te.pollAborted||Te._raiseOnClose()}})()}send(me){var xe=this;return(0,I.Z)(function*(){return xe._running?B(xe._logger,"LongPolling",xe._httpClient,xe._url,me,xe._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){var me=this;return(0,I.Z)(function*(){me._logger.log(E.i.Trace,"(LongPolling transport) Stopping polling."),me._running=!1,me._pollAbort.abort();try{yield me._receiving,me._logger.log(E.i.Trace,`(LongPolling transport) sending DELETE request to ${me._url}.`);const xe={},[Te,Ye]=K();xe[Te]=Ye;const St={headers:{...xe,...me._options.headers},timeout:me._options.timeout,withCredentials:me._options.withCredentials};yield me._httpClient.delete(me._url,St),me._logger.log(E.i.Trace,"(LongPolling transport) DELETE request sent.")}finally{me._logger.log(E.i.Trace,"(LongPolling transport) Stop finished."),me._raiseOnClose()}})()}_raiseOnClose(){if(this.onclose){let me="(LongPolling transport) Firing onclose event.";this._closeError&&(me+=" Error: "+this._closeError),this._logger.log(E.i.Trace,me),this.onclose(this._closeError)}}}class ne{constructor(me,xe,Te,Ye){this._httpClient=me,this._accessToken=xe,this._logger=Te,this._options=Ye,this.onreceive=null,this.onclose=null}connect(me,xe){var Te=this;return(0,I.Z)(function*(){return w.isRequired(me,"url"),w.isRequired(xe,"transferFormat"),w.isIn(xe,De,"transferFormat"),Te._logger.log(E.i.Trace,"(SSE transport) Connecting."),Te._url=me,Te._accessToken&&(me+=(me.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(Te._accessToken)}`),new Promise((Ye,St)=>{let Rt,Ct=!1;if(xe===De.Text){if(T.isBrowser||T.isWebWorker)Rt=new Te._options.EventSource(me,{withCredentials:Te._options.withCredentials});else{const fn=Te._httpClient.getCookieString(me),ct={};ct.Cookie=fn;const[He,Dt]=K();ct[He]=Dt,Rt=new Te._options.EventSource(me,{withCredentials:Te._options.withCredentials,headers:{...ct,...Te._options.headers}})}try{Rt.onmessage=fn=>{if(Te.onreceive)try{Te._logger.log(E.i.Trace,`(SSE transport) data received. ${k(fn.data,Te._options.logMessageContent)}.`),Te.onreceive(fn.data)}catch(ct){return void Te._close(ct)}},Rt.onerror=fn=>{Ct?Te._close():St(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."))},Rt.onopen=()=>{Te._logger.log(E.i.Information,`SSE connected to ${Te._url}`),Te._eventSource=Rt,Ct=!0,Ye()}}catch(fn){return void St(fn)}}else St(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})()}send(me){var xe=this;return(0,I.Z)(function*(){return xe._eventSource?B(xe._logger,"SSE",xe._httpClient,xe._url,me,xe._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){return this._close(),Promise.resolve()}_close(me){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(me))}}class fe{constructor(me,xe,Te,Ye,St,Ct){this._logger=Te,this._accessTokenFactory=xe,this._logMessageContent=Ye,this._webSocketConstructor=St,this._httpClient=me,this.onreceive=null,this.onclose=null,this._headers=Ct}connect(me,xe){var Te=this;return(0,I.Z)(function*(){let Ye;return w.isRequired(me,"url"),w.isRequired(xe,"transferFormat"),w.isIn(xe,De,"transferFormat"),Te._logger.log(E.i.Trace,"(WebSockets transport) Connecting."),Te._accessTokenFactory&&(Ye=yield Te._accessTokenFactory()),new Promise((St,Ct)=>{let Rt;me=me.replace(/^http/,"ws");const fn=Te._httpClient.getCookieString(me);let ct=!1;if(T.isNode||T.isReactNative){const He={},[Dt,qe]=K();He[Dt]=qe,Ye&&(He[C.Authorization]=`Bearer ${Ye}`),fn&&(He[C.Cookie]=fn),Rt=new Te._webSocketConstructor(me,void 0,{headers:{...He,...Te._headers}})}else Ye&&(me+=(me.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(Ye)}`);Rt||(Rt=new Te._webSocketConstructor(me)),xe===De.Binary&&(Rt.binaryType="arraybuffer"),Rt.onopen=He=>{Te._logger.log(E.i.Information,`WebSocket connected to ${me}.`),Te._webSocket=Rt,ct=!0,St()},Rt.onerror=He=>{let Dt=null;Dt=typeof ErrorEvent<"u"&&He instanceof ErrorEvent?He.error:"There was an error with the transport",Te._logger.log(E.i.Information,`(WebSockets transport) ${Dt}.`)},Rt.onmessage=He=>{if(Te._logger.log(E.i.Trace,`(WebSockets transport) data received. ${k(He.data,Te._logMessageContent)}.`),Te.onreceive)try{Te.onreceive(He.data)}catch(Dt){return void Te._close(Dt)}},Rt.onclose=He=>{if(ct)Te._close(He);else{let Dt=null;Dt=typeof ErrorEvent<"u"&&He instanceof ErrorEvent?He.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.",Ct(new Error(Dt))}}})})()}send(me){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(E.i.Trace,`(WebSockets transport) sending data. ${k(me,this._logMessageContent)}.`),this._webSocket.send(me),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(me){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(E.i.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(me)||!1!==me.wasClean&&1e3===me.code?me instanceof Error?this.onclose(me):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${me.code} (${me.reason||"no reason given"}).`)))}_isCloseEvent(me){return me&&"boolean"==typeof me.wasClean&&"number"==typeof me.code}}class ie{constructor(me,xe={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,w.isRequired(me,"url"),this._logger=function N($e){return void 0===$e?new U(E.i.Information):null===$e?S.instance:void 0!==$e.log?$e:new U($e)}(xe.logger),this.baseUrl=this._resolveUrl(me),(xe=xe||{}).logMessageContent=void 0!==xe.logMessageContent&&xe.logMessageContent,"boolean"!=typeof xe.withCredentials&&void 0!==xe.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");xe.withCredentials=void 0===xe.withCredentials||xe.withCredentials,xe.timeout=void 0===xe.timeout?1e5:xe.timeout;let Te=null,Ye=null;if(T.isNode){const St=require;Te=St("ws"),Ye=St("eventsource")}!T.isNode&&typeof WebSocket<"u"&&!xe.WebSocket?xe.WebSocket=WebSocket:T.isNode&&!xe.WebSocket&&Te&&(xe.WebSocket=Te),!T.isNode&&typeof EventSource<"u"&&!xe.EventSource?xe.EventSource=EventSource:T.isNode&&!xe.EventSource&&typeof Ye<"u"&&(xe.EventSource=Ye),this._httpClient=new p(xe.httpClient||new se(this._logger),xe.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=xe,this.onreceive=null,this.onclose=null}start(me){var xe=this;return(0,I.Z)(function*(){if(w.isIn(me=me||De.Binary,De,"transferFormat"),xe._logger.log(E.i.Debug,`Starting connection with transfer format '${De[me]}'.`),"Disconnected"!==xe._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(xe._connectionState="Connecting",xe._startInternalPromise=xe._startInternal(me),yield xe._startInternalPromise,"Disconnecting"===xe._connectionState){const Te="Failed to start the HttpConnection before stop() was called.";return xe._logger.log(E.i.Error,Te),yield xe._stopPromise,Promise.reject(new d(Te))}if("Connected"!==xe._connectionState){const Te="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return xe._logger.log(E.i.Error,Te),Promise.reject(new d(Te))}xe._connectionStarted=!0})()}send(me){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 le(this.transport)),this._sendQueue.send(me))}stop(me){var xe=this;return(0,I.Z)(function*(){return"Disconnected"===xe._connectionState?(xe._logger.log(E.i.Debug,`Call to HttpConnection.stop(${me}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===xe._connectionState?(xe._logger.log(E.i.Debug,`Call to HttpConnection.stop(${me}) ignored because the connection is already in the disconnecting state.`),xe._stopPromise):(xe._connectionState="Disconnecting",xe._stopPromise=new Promise(Te=>{xe._stopPromiseResolver=Te}),yield xe._stopInternal(me),void(yield xe._stopPromise))})()}_stopInternal(me){var xe=this;return(0,I.Z)(function*(){xe._stopError=me;try{yield xe._startInternalPromise}catch{}if(xe.transport){try{yield xe.transport.stop()}catch(Te){xe._logger.log(E.i.Error,`HttpConnection.transport.stop() threw error '${Te}'.`),xe._stopConnection()}xe.transport=void 0}else xe._logger.log(E.i.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})()}_startInternal(me){var xe=this;return(0,I.Z)(function*(){let Te=xe.baseUrl;xe._accessTokenFactory=xe._options.accessTokenFactory,xe._httpClient._accessTokenFactory=xe._accessTokenFactory;try{if(xe._options.skipNegotiation){if(xe._options.transport!==ge.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");xe.transport=xe._constructTransport(ge.WebSockets),yield xe._startTransport(Te,me)}else{let Ye=null,St=0;do{if(Ye=yield xe._getNegotiationResponse(Te),"Disconnecting"===xe._connectionState||"Disconnected"===xe._connectionState)throw new d("The connection was stopped during negotiation.");if(Ye.error)throw new Error(Ye.error);if(Ye.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(Ye.url&&(Te=Ye.url),Ye.accessToken){const Ct=Ye.accessToken;xe._accessTokenFactory=()=>Ct,xe._httpClient._accessToken=Ct,xe._httpClient._accessTokenFactory=void 0}St++}while(Ye.url&&St<100);if(100===St&&Ye.url)throw new Error("Negotiate redirection limit exceeded.");yield xe._createTransport(Te,xe._options.transport,Ye,me)}xe.transport instanceof Ae&&(xe.features.inherentKeepAlive=!0),"Connecting"===xe._connectionState&&(xe._logger.log(E.i.Debug,"The HttpConnection connected successfully."),xe._connectionState="Connected")}catch(Ye){return xe._logger.log(E.i.Error,"Failed to start the connection: "+Ye),xe._connectionState="Disconnected",xe.transport=void 0,xe._stopPromiseResolver(),Promise.reject(Ye)}})()}_getNegotiationResponse(me){var xe=this;return(0,I.Z)(function*(){const Te={},[Ye,St]=K();Te[Ye]=St;const Ct=xe._resolveNegotiateUrl(me);xe._logger.log(E.i.Debug,`Sending negotiation request: ${Ct}.`);try{const Rt=yield xe._httpClient.post(Ct,{content:"",headers:{...Te,...xe._options.headers},timeout:xe._options.timeout,withCredentials:xe._options.withCredentials});if(200!==Rt.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${Rt.statusCode}'`));const fn=JSON.parse(Rt.content);return(!fn.negotiateVersion||fn.negotiateVersion<1)&&(fn.connectionToken=fn.connectionId),fn}catch(Rt){let fn="Failed to complete negotiation with the server: "+Rt;return Rt instanceof s&&404===Rt.statusCode&&(fn+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),xe._logger.log(E.i.Error,fn),Promise.reject(new b(fn))}})()}_createConnectUrl(me,xe){return xe?me+(-1===me.indexOf("?")?"?":"&")+`id=${xe}`:me}_createTransport(me,xe,Te,Ye){var St=this;return(0,I.Z)(function*(){let Ct=St._createConnectUrl(me,Te.connectionToken);if(St._isITransport(xe))return St._logger.log(E.i.Debug,"Connection was provided an instance of ITransport, using that directly."),St.transport=xe,yield St._startTransport(Ct,Ye),void(St.connectionId=Te.connectionId);const Rt=[],fn=Te.availableTransports||[];let ct=Te;for(const He of fn){const Dt=St._resolveTransportOrError(He,xe,Ye);if(Dt instanceof Error)Rt.push(`${He.transport} failed:`),Rt.push(Dt);else if(St._isITransport(Dt)){if(St.transport=Dt,!ct){try{ct=yield St._getNegotiationResponse(me)}catch(qe){return Promise.reject(qe)}Ct=St._createConnectUrl(me,ct.connectionToken)}try{return yield St._startTransport(Ct,Ye),void(St.connectionId=ct.connectionId)}catch(qe){if(St._logger.log(E.i.Error,`Failed to start the transport '${He.transport}': ${qe}`),ct=void 0,Rt.push(new x(`${He.transport} failed: ${qe}`,ge[He.transport])),"Connecting"!==St._connectionState){const Ht="Failed to select transport before stop() was called.";return St._logger.log(E.i.Debug,Ht),Promise.reject(new d(Ht))}}}}return Promise.reject(Rt.length>0?new y(`Unable to connect to the server with any of the available transports. ${Rt.join(" ")}`,Rt):new Error("None of the transports supported by the client are supported by the server."))})()}_constructTransport(me){switch(me){case ge.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new fe(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case ge.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new ne(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case ge.LongPolling:return new Ae(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${me}.`)}}_startTransport(me,xe){return this.transport.onreceive=this.onreceive,this.transport.onclose=Te=>this._stopConnection(Te),this.transport.connect(me,xe)}_resolveTransportOrError(me,xe,Te){const Ye=ge[me.transport];if(null==Ye)return this._logger.log(E.i.Debug,`Skipping transport '${me.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${me.transport}' because it is not supported by this client.`);if(!function de($e,me){return!$e||0!=(me&$e)}(xe,Ye))return this._logger.log(E.i.Debug,`Skipping transport '${ge[Ye]}' because it was disabled by the client.`),new g(`'${ge[Ye]}' is disabled by the client.`,Ye);if(!(me.transferFormats.map(Ct=>De[Ct]).indexOf(Te)>=0))return this._logger.log(E.i.Debug,`Skipping transport '${ge[Ye]}' because it does not support the requested transfer format '${De[Te]}'.`),new Error(`'${ge[Ye]}' does not support ${De[Te]}.`);if(Ye===ge.WebSockets&&!this._options.WebSocket||Ye===ge.ServerSentEvents&&!this._options.EventSource)return this._logger.log(E.i.Debug,`Skipping transport '${ge[Ye]}' because it is not supported in your environment.'`),new h(`'${ge[Ye]}' is not supported in your environment.`,Ye);this._logger.log(E.i.Debug,`Selecting transport '${ge[Ye]}'.`);try{return this._constructTransport(Ye)}catch(Ct){return Ct}}_isITransport(me){return me&&"object"==typeof me&&"connect"in me}_stopConnection(me){if(this._logger.log(E.i.Debug,`HttpConnection.stopConnection(${me}) called while in state ${this._connectionState}.`),this.transport=void 0,me=this._stopError||me,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(E.i.Warning,`Call to HttpConnection.stopConnection(${me}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${me}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),me?this._logger.log(E.i.Error,`Connection disconnected with error '${me}'.`):this._logger.log(E.i.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(xe=>{this._logger.log(E.i.Error,`TransportSendQueue.stop() threw error '${xe}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(me)}catch(xe){this._logger.log(E.i.Error,`HttpConnection.onclose(${me}) threw error '${xe}'.`)}}}else this._logger.log(E.i.Debug,`Call to HttpConnection.stopConnection(${me}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(me){if(0===me.lastIndexOf("https://",0)||0===me.lastIndexOf("http://",0))return me;if(!T.isBrowser)throw new Error(`Cannot resolve '${me}'.`);const xe=window.document.createElement("a");return xe.href=me,this._logger.log(E.i.Information,`Normalizing '${me}' to '${xe.href}'.`),xe.href}_resolveNegotiateUrl(me){const xe=me.indexOf("?");let Te=me.substring(0,-1===xe?me.length:xe);return"/"!==Te[Te.length-1]&&(Te+="/"),Te+="negotiate",Te+=-1===xe?"":me.substring(xe),-1===Te.indexOf("negotiateVersion")&&(Te+=-1===xe?"?":"&",Te+="negotiateVersion="+this._negotiateVersion),Te}}class le{constructor(me){this._transport=me,this._buffer=[],this._executing=!0,this._sendBufferedData=new pe,this._transportResult=new pe,this._sendLoopPromise=this._sendLoop()}send(me){return this._bufferData(me),this._transportResult||(this._transportResult=new pe),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(me){if(this._buffer.length&&typeof this._buffer[0]!=typeof me)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof me}`);this._buffer.push(me),this._sendBufferedData.resolve()}_sendLoop(){var me=this;return(0,I.Z)(function*(){for(;;){if(yield me._sendBufferedData.promise,!me._executing){me._transportResult&&me._transportResult.reject("Connection stopped.");break}me._sendBufferedData=new pe;const xe=me._transportResult;me._transportResult=void 0;const Te="string"==typeof me._buffer[0]?me._buffer.join(""):le._concatBuffers(me._buffer);me._buffer.length=0;try{yield me._transport.send(Te),xe.resolve()}catch(Ye){xe.reject(Ye)}}})()}static _concatBuffers(me){const xe=me.map(St=>St.byteLength).reduce((St,Ct)=>St+Ct),Te=new Uint8Array(xe);let Ye=0;for(const St of me)Te.set(new Uint8Array(St),Ye),Ye+=St.byteLength;return Te.buffer}}class pe{constructor(){this.promise=new Promise((me,xe)=>[this._resolver,this._rejecter]=[me,xe])}resolve(){this._resolver()}reject(me){this._rejecter(me)}}class Ee{static write(me){return`${me}${Ee.RecordSeparator}`}static parse(me){if(me[me.length-1]!==Ee.RecordSeparator)throw new Error("Message is incomplete.");const xe=me.split(Ee.RecordSeparator);return xe.pop(),xe}}Ee.RecordSeparatorCode=30,Ee.RecordSeparator=String.fromCharCode(Ee.RecordSeparatorCode);class ae{writeHandshakeRequest(me){return Ee.write(JSON.stringify(me))}parseHandshakeResponse(me){let xe,Te;if(P(me)){const Rt=new Uint8Array(me),fn=Rt.indexOf(Ee.RecordSeparatorCode);if(-1===fn)throw new Error("Message is incomplete.");const ct=fn+1;xe=String.fromCharCode.apply(null,Array.prototype.slice.call(Rt.slice(0,ct))),Te=Rt.byteLength>ct?Rt.slice(ct).buffer:null}else{const Rt=me,fn=Rt.indexOf(Ee.RecordSeparator);if(-1===fn)throw new Error("Message is incomplete.");const ct=fn+1;xe=Rt.substring(0,ct),Te=Rt.length>ct?Rt.substring(ct):null}const Ye=Ee.parse(xe),St=JSON.parse(Ye[0]);if(St.type)throw new Error("Expected a handshake response from the server.");return[Te,St]}}var te=(()=>{return($e=te||(te={}))[$e.Invocation=1]="Invocation",$e[$e.StreamItem=2]="StreamItem",$e[$e.Completion=3]="Completion",$e[$e.StreamInvocation=4]="StreamInvocation",$e[$e.CancelInvocation=5]="CancelInvocation",$e[$e.Ping=6]="Ping",$e[$e.Close=7]="Close",te;var $e})();class re{constructor(){this.observers=[]}next(me){for(const xe of this.observers)xe.next(me)}error(me){for(const xe of this.observers)xe.error&&xe.error(me)}complete(){for(const me of this.observers)me.complete&&me.complete()}subscribe(me){return this.observers.push(me),new V(this,me)}}var Pe=(()=>{return($e=Pe||(Pe={})).Disconnected="Disconnected",$e.Connecting="Connecting",$e.Connected="Connected",$e.Disconnecting="Disconnecting",$e.Reconnecting="Reconnecting",Pe;var $e})();class Ne{constructor(me,xe,Te,Ye){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(E.i.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")},w.isRequired(me,"connection"),w.isRequired(xe,"logger"),w.isRequired(Te,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this._logger=xe,this._protocol=Te,this.connection=me,this._reconnectPolicy=Ye,this._handshakeProtocol=new ae,this.connection.onreceive=St=>this._processIncomingData(St),this.connection.onclose=St=>this._connectionClosed(St),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Pe.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:te.Ping})}static create(me,xe,Te,Ye){return new Ne(me,xe,Te,Ye)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(me){if(this._connectionState!==Pe.Disconnected&&this._connectionState!==Pe.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!me)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=me}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){var me=this;return(0,I.Z)(function*(){if(me._connectionState!==Pe.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));me._connectionState=Pe.Connecting,me._logger.log(E.i.Debug,"Starting HubConnection.");try{yield me._startInternal(),T.isBrowser&&window.document.addEventListener("freeze",me._freezeEventListener),me._connectionState=Pe.Connected,me._connectionStarted=!0,me._logger.log(E.i.Debug,"HubConnection connected successfully.")}catch(xe){return me._connectionState=Pe.Disconnected,me._logger.log(E.i.Debug,`HubConnection failed to start successfully because of error '${xe}'.`),Promise.reject(xe)}})()}_startInternal(){var me=this;return(0,I.Z)(function*(){me._stopDuringStartError=void 0,me._receivedHandshakeResponse=!1;const xe=new Promise((Te,Ye)=>{me._handshakeResolver=Te,me._handshakeRejecter=Ye});yield me.connection.start(me._protocol.transferFormat);try{const Te={protocol:me._protocol.name,version:me._protocol.version};if(me._logger.log(E.i.Debug,"Sending handshake request."),yield me._sendMessage(me._handshakeProtocol.writeHandshakeRequest(Te)),me._logger.log(E.i.Information,`Using HubProtocol '${me._protocol.name}'.`),me._cleanupTimeout(),me._resetTimeoutPeriod(),me._resetKeepAliveInterval(),yield xe,me._stopDuringStartError)throw me._stopDuringStartError;me.connection.features.inherentKeepAlive||(yield me._sendMessage(me._cachedPingMessage))}catch(Te){throw me._logger.log(E.i.Debug,`Hub handshake failed with error '${Te}' during start(). Stopping HubConnection.`),me._cleanupTimeout(),me._cleanupPingTimer(),yield me.connection.stop(Te),Te}})()}stop(){var me=this;return(0,I.Z)(function*(){const xe=me._startPromise;me._stopPromise=me._stopInternal(),yield me._stopPromise;try{yield xe}catch{}})()}_stopInternal(me){return this._connectionState===Pe.Disconnected?(this._logger.log(E.i.Debug,`Call to HubConnection.stop(${me}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===Pe.Disconnecting?(this._logger.log(E.i.Debug,`Call to HttpConnection.stop(${me}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=Pe.Disconnecting,this._logger.log(E.i.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(E.i.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=me||new d("The connection was stopped before the hub handshake could complete."),this.connection.stop(me)))}stream(me,...xe){const[Te,Ye]=this._replaceStreamingParams(xe),St=this._createStreamInvocation(me,xe,Ye);let Ct;const Rt=new re;return Rt.cancelCallback=()=>{const fn=this._createCancelInvocation(St.invocationId);return delete this._callbacks[St.invocationId],Ct.then(()=>this._sendWithProtocol(fn))},this._callbacks[St.invocationId]=(fn,ct)=>{ct?Rt.error(ct):fn&&(fn.type===te.Completion?fn.error?Rt.error(new Error(fn.error)):Rt.complete():Rt.next(fn.item))},Ct=this._sendWithProtocol(St).catch(fn=>{Rt.error(fn),delete this._callbacks[St.invocationId]}),this._launchStreams(Te,Ct),Rt}_sendMessage(me){return this._resetKeepAliveInterval(),this.connection.send(me)}_sendWithProtocol(me){return this._sendMessage(this._protocol.writeMessage(me))}send(me,...xe){const[Te,Ye]=this._replaceStreamingParams(xe),St=this._sendWithProtocol(this._createInvocation(me,xe,!0,Ye));return this._launchStreams(Te,St),St}invoke(me,...xe){const[Te,Ye]=this._replaceStreamingParams(xe),St=this._createInvocation(me,xe,!1,Ye);return new Promise((Rt,fn)=>{this._callbacks[St.invocationId]=(He,Dt)=>{Dt?fn(Dt):He&&(He.type===te.Completion?He.error?fn(new Error(He.error)):Rt(He.result):fn(new Error(`Unexpected message type: ${He.type}`)))};const ct=this._sendWithProtocol(St).catch(He=>{fn(He),delete this._callbacks[St.invocationId]});this._launchStreams(Te,ct)})}on(me,xe){!me||!xe||(me=me.toLowerCase(),this._methods[me]||(this._methods[me]=[]),-1===this._methods[me].indexOf(xe)&&this._methods[me].push(xe))}off(me,xe){if(!me)return;me=me.toLowerCase();const Te=this._methods[me];if(Te)if(xe){const Ye=Te.indexOf(xe);-1!==Ye&&(Te.splice(Ye,1),0===Te.length&&delete this._methods[me])}else delete this._methods[me]}onclose(me){me&&this._closedCallbacks.push(me)}onreconnecting(me){me&&this._reconnectingCallbacks.push(me)}onreconnected(me){me&&this._reconnectedCallbacks.push(me)}_processIncomingData(me){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(me=this._processHandshakeResponse(me),this._receivedHandshakeResponse=!0),me){const xe=this._protocol.parseMessages(me,this._logger);for(const Te of xe)switch(Te.type){case te.Invocation:this._invokeClientMethod(Te);break;case te.StreamItem:case te.Completion:{const Ye=this._callbacks[Te.invocationId];if(Ye){Te.type===te.Completion&&delete this._callbacks[Te.invocationId];try{Ye(Te)}catch(St){this._logger.log(E.i.Error,`Stream callback threw error: ${G(St)}`)}}break}case te.Ping:break;case te.Close:{this._logger.log(E.i.Information,"Close message received from server.");const Ye=Te.error?new Error("Server returned an error on close: "+Te.error):void 0;!0===Te.allowReconnect?this.connection.stop(Ye):this._stopPromise=this._stopInternal(Ye);break}default:this._logger.log(E.i.Warning,`Invalid message type: ${Te.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(me){let xe,Te;try{[Te,xe]=this._handshakeProtocol.parseHandshakeResponse(me)}catch(Ye){const St="Error parsing handshake response: "+Ye;this._logger.log(E.i.Error,St);const Ct=new Error(St);throw this._handshakeRejecter(Ct),Ct}if(xe.error){const Ye="Server returned handshake error: "+xe.error;this._logger.log(E.i.Error,Ye);const St=new Error(Ye);throw this._handshakeRejecter(St),St}return this._logger.log(E.i.Debug,"Server handshake complete."),this._handshakeResolver(),Te}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){var me=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let xe=this._nextKeepAlive-(new Date).getTime();xe<0&&(xe=0),this._pingServerHandle=setTimeout((0,I.Z)(function*(){if(me._connectionState===Pe.Connected)try{yield me._sendMessage(me._cachedPingMessage)}catch{me._cleanupPingTimer()}}),xe)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(me){var xe=this;return(0,I.Z)(function*(){const Te=me.target.toLowerCase(),Ye=xe._methods[Te];if(!Ye)return xe._logger.log(E.i.Warning,`No client method with the name '${Te}' found.`),void(me.invocationId&&(xe._logger.log(E.i.Warning,`No result given for '${Te}' method and invocation ID '${me.invocationId}'.`),yield xe._sendWithProtocol(xe._createCompletionMessage(me.invocationId,"Client didn't provide a result.",null))));const St=Ye.slice(),Ct=!!me.invocationId;let Rt,fn,ct;for(const He of St)try{const Dt=Rt;Rt=yield He.apply(xe,me.arguments),Ct&&Rt&&Dt&&(xe._logger.log(E.i.Error,`Multiple results provided for '${Te}'. Sending error to server.`),ct=xe._createCompletionMessage(me.invocationId,"Client provided multiple results.",null)),fn=void 0}catch(Dt){fn=Dt,xe._logger.log(E.i.Error,`A callback for the method '${Te}' threw error '${Dt}'.`)}ct?yield xe._sendWithProtocol(ct):Ct?(fn?ct=xe._createCompletionMessage(me.invocationId,`${fn}`,null):void 0!==Rt?ct=xe._createCompletionMessage(me.invocationId,null,Rt):(xe._logger.log(E.i.Warning,`No result given for '${Te}' method and invocation ID '${me.invocationId}'.`),ct=xe._createCompletionMessage(me.invocationId,"Client didn't provide a result.",null)),yield xe._sendWithProtocol(ct)):Rt&&xe._logger.log(E.i.Error,`Result given for '${Te}' method but server is not expecting a result.`)})()}_connectionClosed(me){this._logger.log(E.i.Debug,`HubConnection.connectionClosed(${me}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||me||new d("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(me||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Pe.Disconnecting?this._completeClose(me):this._connectionState===Pe.Connected&&this._reconnectPolicy?this._reconnect(me):this._connectionState===Pe.Connected&&this._completeClose(me)}_completeClose(me){if(this._connectionStarted){this._connectionState=Pe.Disconnected,this._connectionStarted=!1,T.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(xe=>xe.apply(this,[me]))}catch(xe){this._logger.log(E.i.Error,`An onclose callback called with error '${me}' threw error '${xe}'.`)}}}_reconnect(me){var xe=this;return(0,I.Z)(function*(){const Te=Date.now();let Ye=0,St=void 0!==me?me:new Error("Attempting to reconnect due to a unknown error."),Ct=xe._getNextRetryDelay(Ye++,0,St);if(null===Ct)return xe._logger.log(E.i.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void xe._completeClose(me);if(xe._connectionState=Pe.Reconnecting,xe._logger.log(E.i.Information,me?`Connection reconnecting because of error '${me}'.`:"Connection reconnecting."),0!==xe._reconnectingCallbacks.length){try{xe._reconnectingCallbacks.forEach(Rt=>Rt.apply(xe,[me]))}catch(Rt){xe._logger.log(E.i.Error,`An onreconnecting callback called with error '${me}' threw error '${Rt}'.`)}if(xe._connectionState!==Pe.Reconnecting)return void xe._logger.log(E.i.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==Ct;){if(xe._logger.log(E.i.Information,`Reconnect attempt number ${Ye} will start in ${Ct} ms.`),yield new Promise(Rt=>{xe._reconnectDelayHandle=setTimeout(Rt,Ct)}),xe._reconnectDelayHandle=void 0,xe._connectionState!==Pe.Reconnecting)return void xe._logger.log(E.i.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield xe._startInternal(),xe._connectionState=Pe.Connected,xe._logger.log(E.i.Information,"HubConnection reconnected successfully."),0!==xe._reconnectedCallbacks.length)try{xe._reconnectedCallbacks.forEach(Rt=>Rt.apply(xe,[xe.connection.connectionId]))}catch(Rt){xe._logger.log(E.i.Error,`An onreconnected callback called with connectionId '${xe.connection.connectionId}; threw error '${Rt}'.`)}return}catch(Rt){if(xe._logger.log(E.i.Information,`Reconnect attempt failed because of error '${Rt}'.`),xe._connectionState!==Pe.Reconnecting)return xe._logger.log(E.i.Debug,`Connection moved to the '${xe._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(xe._connectionState===Pe.Disconnecting&&xe._completeClose());St=Rt instanceof Error?Rt:new Error(Rt.toString()),Ct=xe._getNextRetryDelay(Ye++,Date.now()-Te,St)}}xe._logger.log(E.i.Information,`Reconnect retries have been exhausted after ${Date.now()-Te} ms and ${Ye} failed attempts. Connection disconnecting.`),xe._completeClose()})()}_getNextRetryDelay(me,xe,Te){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:xe,previousRetryCount:me,retryReason:Te})}catch(Ye){return this._logger.log(E.i.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${me}, ${xe}) threw error '${Ye}'.`),null}}_cancelCallbacksWithError(me){const xe=this._callbacks;this._callbacks={},Object.keys(xe).forEach(Te=>{const Ye=xe[Te];try{Ye(null,me)}catch(St){this._logger.log(E.i.Error,`Stream 'error' callback called with '${me}' threw error: ${G(St)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(me,xe,Te,Ye){if(Te)return 0!==Ye.length?{arguments:xe,streamIds:Ye,target:me,type:te.Invocation}:{arguments:xe,target:me,type:te.Invocation};{const St=this._invocationId;return this._invocationId++,0!==Ye.length?{arguments:xe,invocationId:St.toString(),streamIds:Ye,target:me,type:te.Invocation}:{arguments:xe,invocationId:St.toString(),target:me,type:te.Invocation}}}_launchStreams(me,xe){if(0!==me.length){xe||(xe=Promise.resolve());for(const Te in me)me[Te].subscribe({complete:()=>{xe=xe.then(()=>this._sendWithProtocol(this._createCompletionMessage(Te)))},error:Ye=>{let St;St=Ye instanceof Error?Ye.message:Ye&&Ye.toString?Ye.toString():"Unknown error",xe=xe.then(()=>this._sendWithProtocol(this._createCompletionMessage(Te,St)))},next:Ye=>{xe=xe.then(()=>this._sendWithProtocol(this._createStreamItemMessage(Te,Ye)))}})}}_replaceStreamingParams(me){const xe=[],Te=[];for(let Ye=0;Ye<me.length;Ye++){const St=me[Ye];if(this._isObservable(St)){const Ct=this._invocationId;this._invocationId++,xe[Ct]=St,Te.push(Ct.toString()),me.splice(Ye,1)}}return[xe,Te]}_isObservable(me){return me&&me.subscribe&&"function"==typeof me.subscribe}_createStreamInvocation(me,xe,Te){const Ye=this._invocationId;return this._invocationId++,0!==Te.length?{arguments:xe,invocationId:Ye.toString(),streamIds:Te,target:me,type:te.StreamInvocation}:{arguments:xe,invocationId:Ye.toString(),target:me,type:te.StreamInvocation}}_createCancelInvocation(me){return{invocationId:me,type:te.CancelInvocation}}_createStreamItemMessage(me,xe){return{invocationId:me,item:xe,type:te.StreamItem}}_createCompletionMessage(me,xe,Te){return xe?{error:xe,invocationId:me,type:te.Completion}:{invocationId:me,result:Te,type:te.Completion}}}class tt{constructor(){this.name="json",this.version=1,this.transferFormat=De.Text}parseMessages(me,xe){if("string"!=typeof me)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!me)return[];null===xe&&(xe=S.instance);const Te=Ee.parse(me),Ye=[];for(const St of Te){const Ct=JSON.parse(St);if("number"!=typeof Ct.type)throw new Error("Invalid payload.");switch(Ct.type){case te.Invocation:this._isInvocationMessage(Ct);break;case te.StreamItem:this._isStreamItemMessage(Ct);break;case te.Completion:this._isCompletionMessage(Ct);break;case te.Ping:case te.Close:break;default:xe.log(E.i.Information,"Unknown message type '"+Ct.type+"' ignored.");continue}Ye.push(Ct)}return Ye}writeMessage(me){return Ee.write(JSON.stringify(me))}_isInvocationMessage(me){this._assertNotEmptyString(me.target,"Invalid payload for Invocation message."),void 0!==me.invocationId&&this._assertNotEmptyString(me.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(me){if(this._assertNotEmptyString(me.invocationId,"Invalid payload for StreamItem message."),void 0===me.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(me){if(me.result&&me.error)throw new Error("Invalid payload for Completion message.");!me.result&&me.error&&this._assertNotEmptyString(me.error,"Invalid payload for Completion message."),this._assertNotEmptyString(me.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(me,xe){if("string"!=typeof me||""===me)throw new Error(xe)}}const Be={trace:E.i.Trace,debug:E.i.Debug,info:E.i.Information,information:E.i.Information,warn:E.i.Warning,warning:E.i.Warning,error:E.i.Error,critical:E.i.Critical,none:E.i.None};class nn{configureLogging(me){if(w.isRequired(me,"logging"),function ke($e){return void 0!==$e.log}(me))this.logger=me;else if("string"==typeof me){const xe=function mt($e){const me=Be[$e.toLowerCase()];if(typeof me<"u")return me;throw new Error(`Unknown log level: ${$e}`)}(me);this.logger=new U(xe)}else this.logger=new U(me);return this}withUrl(me,xe){return w.isRequired(me,"url"),w.isNotEmpty(me,"url"),this.url=me,this.httpConnectionOptions="object"==typeof xe?{...this.httpConnectionOptions,...xe}:{...this.httpConnectionOptions,transport:xe},this}withHubProtocol(me){return w.isRequired(me,"protocol"),this.protocol=me,this}withAutomaticReconnect(me){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=me?Array.isArray(me)?new c(me):me:new c,this}build(){const me=this.httpConnectionOptions||{};if(void 0===me.logger&&(me.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const xe=new ie(this.url,me);return Ne.create(xe,this.logger||S.instance,this.protocol||new tt,this.reconnectPolicy)}}},3473:(kn,he,l)=>{"use strict";l.d(he,{i:()=>o});var o=(()=>{return(c=o||(o={}))[c.Trace=0]="Trace",c[c.Debug=1]="Debug",c[c.Information=2]="Information",c[c.Warning=3]="Warning",c[c.Error=4]="Error",c[c.Critical=5]="Critical",c[c.None=6]="None",o;var c})()},8096:function(kn){kn.exports=function(he){function l(c){if(o[c])return o[c].exports;var I=o[c]={exports:{},id:c,loaded:!1};return he[c].call(I.exports,I,I.exports,l),I.loaded=!0,I.exports}var o={};return l.m=he,l.c=o,l.p="dist/",l(0)}([function(he,l,o){"use strict";function c(V){return V&&V.__esModule?V:{default:V}}var I=Object.assign||function(V){for(var U=1;U<arguments.length;U++){var K=arguments[U];for(var Y in K)Object.prototype.hasOwnProperty.call(K,Y)&&(V[Y]=K[Y])}return V},f=(c(o(1)),o(6)),a=c(f),s=c(o(7)),d=c(o(8)),g=c(o(9)),b=c(o(10)),E=c(o(11)),O=c(o(14)),w=[],T=!1,k={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},R=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(T=!0),T)return w=(0,E.default)(w,k),(0,b.default)(w,k.once),w},P=function(){w=(0,O.default)(),R()};he.exports={init:function(V){k=I(k,V),w=(0,O.default)();var U=document.all&&!window.atob;return function(V){return!0===V||"mobile"===V&&g.default.mobile()||"phone"===V&&g.default.phone()||"tablet"===V&&g.default.tablet()||"function"==typeof V&&!0===V()}(k.disable)||U?void w.forEach(function(V,U){V.node.removeAttribute("data-aos"),V.node.removeAttribute("data-aos-easing"),V.node.removeAttribute("data-aos-duration"),V.node.removeAttribute("data-aos-delay")}):(k.disableMutationObserver||d.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    '),k.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",k.easing),document.querySelector("body").setAttribute("data-aos-duration",k.duration),document.querySelector("body").setAttribute("data-aos-delay",k.delay),"DOMContentLoaded"===k.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?R(!0):"load"===k.startEvent?window.addEventListener(k.startEvent,function(){R(!0)}):document.addEventListener(k.startEvent,function(){R(!0)}),window.addEventListener("resize",(0,s.default)(R,k.debounceDelay,!0)),window.addEventListener("orientationchange",(0,s.default)(R,k.debounceDelay,!0)),window.addEventListener("scroll",(0,a.default)(function(){(0,b.default)(w,k.once)},k.throttleDelay)),k.disableMutationObserver||d.default.ready("[data-aos]",P),w)},refresh:R,refreshHard:P}},function(he,l){},,,,,function(he,l){(function(o){"use strict";function c(W,N,V){function U(ie){var de=X,le=M;return X=M=void 0,Ae=ie,ge=W.apply(le,de)}function K(ie){return Ae=ie,De=setTimeout(j,N),ne?U(ie):ge}function J(ie){var de=ie-Fe;return void 0===Fe||de>=N||de<0||fe&&ie-Ae>=se}function j(){var ie=B();return J(ie)?ee(ie):void(De=setTimeout(j,function Y(ie){var pe=N-(ie-Fe);return fe?P(pe,se-(ie-Ae)):pe}(ie)))}function ee(ie){return De=void 0,_e&&X?U(ie):(X=M=void 0,ge)}function Z(){var ie=B(),de=J(ie);if(X=arguments,M=this,Fe=ie,de){if(void 0===De)return K(Fe);if(fe)return De=setTimeout(j,N),U(Fe)}return void 0===De&&(De=setTimeout(j,N)),ge}var X,M,se,ge,De,Fe,Ae=0,ne=!1,fe=!1,_e=!0;if("function"!=typeof W)throw new TypeError(u);return N=p(N)||0,C(V)&&(ne=!!V.leading,se=(fe="maxWait"in V)?R(p(V.maxWait)||0,N):se,_e="trailing"in V?!!V.trailing:_e),Z.cancel=function G(){void 0!==De&&clearTimeout(De),Ae=0,X=Fe=M=De=void 0},Z.flush=function q(){return void 0===De?ge:ee(B())},Z}function C(W){var N=typeof W>"u"?"undefined":s(W);return!!W&&("object"==N||"function"==N)}function a(W){return"symbol"==(typeof W>"u"?"undefined":s(W))||function f(W){return!!W&&"object"==(typeof W>"u"?"undefined":s(W))}(W)&&k.call(W)==h}function p(W){if("number"==typeof W)return W;if(a(W))return d;if(C(W)){var N="function"==typeof W.valueOf?W.valueOf():W;W=C(N)?N+"":N}if("string"!=typeof W)return 0===W?W:+W;W=W.replace(g,"");var V=b.test(W);return V||y.test(W)?E(W.slice(2),V?2:8):x.test(W)?d:+W}var s="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},u="Expected a function",d=NaN,h="[object Symbol]",g=/^\s+|\s+$/g,x=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,y=/^0o[0-7]+$/i,E=parseInt,S="object"==(typeof o>"u"?"undefined":s(o))&&o&&o.Object===Object&&o,O="object"==(typeof self>"u"?"undefined":s(self))&&self&&self.Object===Object&&self,w=S||O||Function("return this")(),k=Object.prototype.toString,R=Math.max,P=Math.min,B=function(){return w.Date.now()};he.exports=function I(W,N,V){var U=!0,K=!0;if("function"!=typeof W)throw new TypeError(u);return C(V)&&(U="leading"in V?!!V.leading:U,K="trailing"in V?!!V.trailing:K),c(W,N,{leading:U,maxWait:N,trailing:K})}}).call(l,function(){return this}())},function(he,l){(function(o){"use strict";function I(B){var W=typeof B>"u"?"undefined":p(B);return!!B&&("object"==W||"function"==W)}function f(B){return"symbol"==(typeof B>"u"?"undefined":p(B))||function C(B){return!!B&&"object"==(typeof B>"u"?"undefined":p(B))}(B)&&T.call(B)==d}function a(B){if("number"==typeof B)return B;if(f(B))return u;if(I(B)){var W="function"==typeof B.valueOf?B.valueOf():B;B=I(W)?W+"":W}if("string"!=typeof B)return 0===B?B:+B;B=B.replace(h,"");var N=x.test(B);return N||b.test(B)?y(B.slice(2),N?2:8):g.test(B)?u:+B}var 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},s="Expected a function",u=NaN,d="[object Symbol]",h=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,b=/^0o[0-7]+$/i,y=parseInt,E="object"==(typeof o>"u"?"undefined":p(o))&&o&&o.Object===Object&&o,S="object"==(typeof self>"u"?"undefined":p(self))&&self&&self.Object===Object&&self,O=E||S||Function("return this")(),T=Object.prototype.toString,k=Math.max,R=Math.min,P=function(){return O.Date.now()};he.exports=function c(B,W,N){function V(_e){var ie=Z,de=X;return Z=X=void 0,Fe=_e,se=B.apply(de,ie)}function U(_e){return Fe=_e,ge=setTimeout(J,W),Ae?V(_e):se}function Y(_e){var ie=_e-De;return void 0===De||ie>=W||ie<0||ne&&_e-Fe>=M}function J(){var _e=P();return Y(_e)?j(_e):void(ge=setTimeout(J,function K(_e){var le=W-(_e-De);return ne?R(le,M-(_e-Fe)):le}(_e)))}function j(_e){return ge=void 0,fe&&Z?V(_e):(Z=X=void 0,se)}function q(){var _e=P(),ie=Y(_e);if(Z=arguments,X=this,De=_e,ie){if(void 0===ge)return U(De);if(ne)return ge=setTimeout(J,W),V(De)}return void 0===ge&&(ge=setTimeout(J,W)),se}var Z,X,M,se,ge,De,Fe=0,Ae=!1,ne=!1,fe=!0;if("function"!=typeof B)throw new TypeError(s);return W=a(W)||0,I(N)&&(Ae=!!N.leading,M=(ne="maxWait"in N)?k(a(N.maxWait)||0,W):M,fe="trailing"in N?!!N.trailing:fe),q.cancel=function ee(){void 0!==ge&&clearTimeout(ge),Fe=0,Z=De=X=ge=void 0},q.flush=function G(){return void 0===ge?se:j(P())},q}}).call(l,function(){return this}())},function(he,l){"use strict";function o(p){var s=void 0,u=void 0;for(s=0;s<p.length;s+=1)if((u=p[s]).dataset&&u.dataset.aos||u.children&&o(u.children))return!0;return!1}function c(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function f(p){p&&p.forEach(function(s){var u=Array.prototype.slice.call(s.addedNodes),d=Array.prototype.slice.call(s.removedNodes);if(o(u.concat(d)))return a()})}Object.defineProperty(l,"__esModule",{value:!0});var a=function(){};l.default={isSupported:function I(){return!!c()},ready:function C(p,s){var u=window.document,h=new(c())(f);a=s,h.observe(u.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}}},function(he,l){"use strict";function c(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(l,"__esModule",{value:!0});var I=function(){function u(d,h){for(var g=0;g<h.length;g++){var x=h[g];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(d,x.key,x)}}return function(d,h,g){return h&&u(d.prototype,h),g&&u(d,g),d}}(),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,f=/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,a=/(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,s=function(){function u(){!function o(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}(this,u)}return I(u,[{key:"phone",value:function(){var d=c();return!(!C.test(d)&&!f.test(d.substr(0,4)))}},{key:"mobile",value:function(){var d=c();return!(!a.test(d)&&!p.test(d.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),u}();l.default=new s},function(he,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.default=function(I,C){var f=window.pageYOffset,a=window.innerHeight;I.forEach(function(p,s){!function(I,C,f){var a=I.node.getAttribute("data-aos-once");C>I.position?I.node.classList.add("aos-animate"):typeof a<"u"&&("false"===a||!f&&"true"!==a)&&I.node.classList.remove("aos-animate")}(p,a+f,C)})}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var C=function c(a){return a&&a.__esModule?a:{default:a}}(o(12));l.default=function(a,p){return a.forEach(function(s,u){s.node.classList.add("aos-init"),s.position=(0,C.default)(s.node,p.offset)}),a}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var C=function c(a){return a&&a.__esModule?a:{default:a}}(o(13));l.default=function(a,p){var s=0,u=0,d=window.innerHeight,h={offset:a.getAttribute("data-aos-offset"),anchor:a.getAttribute("data-aos-anchor"),anchorPlacement:a.getAttribute("data-aos-anchor-placement")};switch(h.offset&&!isNaN(h.offset)&&(u=parseInt(h.offset)),h.anchor&&document.querySelectorAll(h.anchor)&&(a=document.querySelectorAll(h.anchor)[0]),s=(0,C.default)(a).top,h.anchorPlacement){case"top-bottom":break;case"center-bottom":s+=a.offsetHeight/2;break;case"bottom-bottom":s+=a.offsetHeight;break;case"top-center":s+=d/2;break;case"bottom-center":s+=d/2+a.offsetHeight;break;case"center-center":s+=d/2+a.offsetHeight/2;break;case"top-top":s+=d;break;case"bottom-top":s+=a.offsetHeight+d;break;case"center-top":s+=a.offsetHeight/2+d}return h.anchorPlacement||h.offset||isNaN(p)||(u=p),s+u}},function(he,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(c){for(var I=0,C=0;c&&!isNaN(c.offsetLeft)&&!isNaN(c.offsetTop);)I+=c.offsetLeft-("BODY"!=c.tagName?c.scrollLeft:0),C+=c.offsetTop-("BODY"!=c.tagName?c.scrollTop:0),c=c.offsetParent;return{top:C,left:I}}},function(he,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(c){return c=c||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(c,function(I){return{node:I}})}}])},8991:function(kn){kn.exports=function(he){var l={};function o(c){if(l[c])return l[c].exports;var I=l[c]={i:c,l:!1,exports:{}};return he[c].call(I.exports,I,I.exports,o),I.l=!0,I.exports}return o.m=he,o.c=l,o.d=function(c,I,C){o.o(c,I)||Object.defineProperty(c,I,{enumerable:!0,get:C})},o.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},o.t=function(c,I){if(1&I&&(c=o(c)),8&I||4&I&&"object"==typeof c&&c&&c.__esModule)return c;var C=Object.create(null);if(o.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:c}),2&I&&"string"!=typeof c)for(var f in c)o.d(C,f,function(a){return c[a]}.bind(null,f));return C},o.n=function(c){var I=c&&c.__esModule?function(){return c.default}:function(){return c};return o.d(I,"a",I),I},o.o=function(c,I){return Object.prototype.hasOwnProperty.call(c,I)},o.p="",o(o.s=58)}([function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=function(){function I(C,f){this.x=C,this.y=f}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,f){return this.x+=C,this.y+=f,this},I.prototype.offsetByPoint=function(C){return this.x+=C.x,this.y+=C.y,this},I.prototype.multiply=function(C,f){return this.x*=C,this.y*=f,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,f){return new I(C.x+f.x,C.y+f.y)},I.minus=function(C,f){return new I(C.x-f.x,C.y-f.y)},I.xComparer=function(C,f){return C.x-f.x},I.yComparer=function(C,f){return C.y-f.y},I.equals=function(C,f){return C.x===f.x&&C.y===f.y},I}();l.Point=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ShapeType=l.ShapeTypes=l.ShapeCategories=void 0;var c=function(){function C(){}return C.General="general",C.Flowchart="flowchart",C.OrgChart="orgChart",C.Containers="containers",C.Custom="custom",C}();l.ShapeCategories=c;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}();l.ShapeTypes=I,(C=l.ShapeType||(l.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(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=function(){function I(C,f){this.width=C,this.height=f}return I.empty=function(){return new I(0,0)},I.fromNumber=function(C){return new I(C,C)},I.initByCommonAction=function(C){var f=function(p){return p.width},a=function(p){return p.height};return new I(C(f,a),C(a,f))},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,f){return this.width=this.width+C,this.height=this.height+f,this},I.prototype.multiply=function(C,f){return this.width*=C,this.height*=f,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,f){return C.width===f.width&&C.height===f.height},I}();l.Size=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.EventUtils=l.HtmlFocusUtils=l.ObjectUtils=l.GeometryUtils=l.Utils=l.EventDispatcher=l.Range=l.LineEquation=void 0,o(174);var c=o(2),I=o(0),C=o(13),f=o(41),a=o(35),p=o(31),s=o(60),u=o(33),d=o(26),h=o(18),g=o(65),x=function(){function k(R,P,B){this.aParam=R,this.bParam=P,this.cParam=B}return k.fromPoints=function(R,P,B){return void 0===B&&(B=1e-5),S.areDuplicatedPoints(R,P,B)?void 0:new k(P.y-R.y,R.x-P.x,P.x*R.y-R.x*P.y)},k.prototype.getPointIntersection=function(R,P){void 0===P&&(P=1e-5);var B=this.aParam,W=this.bParam,N=this.cParam,V=R.aParam,U=R.bParam,K=R.cParam,Y=V*W-B*U;if(p.MathUtils.numberCloseTo(Y,0,P))return null;if(0===B)return this.createPoint((U*N-K*W)/(W*V),-N/W);var j=(K*B-N*V)/Y;return this.createPoint((-W*j-N)/B,j)},k.prototype.containsPoint=function(R,P){return void 0===P&&(P=1e-5),p.MathUtils.numberCloseTo(this.aParam*R.x+this.bParam*R.y+this.cParam,0,P)},k.prototype.createPoint=function(R,P,B){return void 0===B&&(B=1e-5),new I.Point(p.MathUtils.numberCloseTo(R,0,B)?0:R,p.MathUtils.numberCloseTo(P,0,B)?0:P)},k}();l.LineEquation=x;var b=function(){function k(R,P){this.from=R,this.to=void 0!==P?P:R}return Object.defineProperty(k.prototype,"length",{get:function(){return Math.abs(this.to-this.from)},enumerable:!1,configurable:!0}),k.prototype.extend=function(R){this.from=Math.min(R.from,this.from),this.to=Math.max(R.to,this.to)},k.prototype.includes=function(R){return R>=this.from&&R<=this.to},k.fromLength=function(R,P){return new k(R,R+P)},k}();l.Range=b;var y=function(){function k(){this.listeners=[]}return k.prototype.add=function(R){if(!R)throw new Error("Not Implemented");this.hasEventListener(R)||this.listeners.push(R)},k.prototype.remove=function(R){for(var P=0,B=void 0;B=this.listeners[P];P++)if(B===R){this.listeners.splice(P,1);break}},k.prototype.raise=function(R){for(var P=[],B=1;B<arguments.length;B++)P[B-1]=arguments[B];for(var W=0,N=void 0;N=this.listeners[W];W++){var V=N[R];V&&V.apply(N,P)}},k.prototype.raise1=function(R){for(var P=0,B=void 0;B=this.listeners[P];P++)R(B)},k.prototype.hasEventListener=function(R){for(var P=0,B=this.listeners.length;P<B;P++)if(this.listeners[P]===R)return!0;return!1},k}();l.EventDispatcher=y;var E=function(){function k(){}return k.flatten=function(R){return[].concat.apply([],R)},k}();l.Utils=E;var S=function(){function k(){}return k.getCommonRectangle=function(R){if(!R.length)return new C.Rectangle(0,0,0,0);var P=Number.MAX_VALUE,B=-Number.MAX_VALUE,W=Number.MAX_VALUE,N=-Number.MAX_VALUE;return R.forEach(function(V){P=Math.min(P,V.x),B=Math.max(B,V.right),W=Math.min(W,V.y),N=Math.max(N,V.bottom)}),new C.Rectangle(P,W,B-P,N-W)},k.findFreeSpace=function(R,P,B,W){var N=[W?W.x:0],V=[W?W.y:0];R.forEach(function(q){N.push(q.x),N.push(q.right),V.push(q.y),V.push(q.bottom)}),N=N.sort(function(q,Z){return q-Z}).reduce(function(q,Z,X){return N[X-1]!==Z&&q.push(Z)&&q||q},[]);for(var U=(V=V.sort(function(q,Z){return q-Z}).reduce(function(q,Z,X){return V[X-1]!==Z&&q.push(Z)&&q||q},[])).map(function(q){return N.map(function(Z,X){return N[X+1]-Z})}),K=function(q,Z){for(var X=f.SearchUtils.binaryIndexOf(N,function(Ae){return Ae-Z.x}),M=f.SearchUtils.binaryIndexOf(N,function(Ae){return Ae-Z.right}),se=f.SearchUtils.binaryIndexOf(V,function(Ae){return Ae-Z.y}),ge=f.SearchUtils.binaryIndexOf(V,function(Ae){return Ae-Z.bottom}),De=se;De<ge;De++)for(var Fe=X;Fe<M;Fe++)U[De][Fe]*=-1},Y=0,J=void 0;J=R[Y];Y++)K(0,J);for(var j=0;j<V.length;j++)for(var ee=0;ee<N.length-1;ee++){var G=this.checkRect(U,V,N,j,ee,P,B);if(G>0)ee=G;else if(0===G)return new I.Point(N[ee],V[j])}return null},k.checkRect=function(R,P,B,W,N,V,U){for(var K=0,Y=0,J=B.length-2,j=W;j<P.length;j++){K=P[j+1]-P[W];for(var ee=N;ee<=J;ee++){if(R[j][ee]<0)return 0===ee?-1:ee;if(V.width<=(Y=B[ee+1]-B[N])||!U&&ee===B.length-2&&V.width/2<=Y){if(V.height<=K||!U&&j===P.length-2&&V.height/2<=K)return 0;J=ee}}}},k.getArrowPoints=function(R,P,B,W){if(R.x===P.x&&R.y===P.y)return{point1:R.clone(),point2:R.clone(),point3:R.clone()};var N=P.x-R.x,V=P.y-R.y,U=Math.sqrt(Math.pow(N,2)+Math.pow(V,2)),K=N/U,Y=V/U,ee=R.x+B*K-W*Y,G=R.y+B*Y+W*K,q=R.x+B*K,Z=R.y+B*Y;return{point1:new I.Point(R.x+B*K+W*Y,R.y+B*Y-W*K),point2:new I.Point(ee,G),point3:new I.Point(q,Z)}},k.createSegments=function(R){for(var P=[],B=1;B<R.length;B++)P.push(new u.Segment(R[B-1],R[B]));return P},k.createRectagle=function(R){var P=R.map(function(K){return K.x}),B=R.map(function(K){return K.y}),W=P.reduce(function(K,Y){return Math.min(K,Y)},Number.MAX_VALUE),N=P.reduce(function(K,Y){return Math.max(K,Y)},-Number.MAX_VALUE),V=B.reduce(function(K,Y){return Math.min(K,Y)},Number.MAX_VALUE),U=B.reduce(function(K,Y){return Math.max(K,Y)},-Number.MAX_VALUE);return new C.Rectangle(W,V,N-W,U-V)},k.createSegmentsFromRectangle=function(R){var P=[],B=new I.Point(R.x,R.y),W=new I.Point(R.right,R.y),N=new I.Point(R.right,R.bottom),V=new I.Point(R.x,R.bottom);return P.push(new u.Segment(B,W)),P.push(new u.Segment(W,N)),P.push(new u.Segment(N,V)),P.push(new u.Segment(V,B)),P},k.areSegmentsCutRectangle=function(R,P){if(!P)return!1;for(var B=k.createSegmentsFromRectangle(P),W=!1,N=!1,V=function(Y){if(W&&N)return{value:!0};var J=R[Y];if(J.isIntersectedByRect(P)){var j=J.startPoint,ee=J.endPoint,G=P.containsPoint(j),q=P.containsPoint(ee);if(!G&&!q)return{value:!0};if(G&&!q){var Z=B.filter(function(ge){return ge.containsPoint(j)});return Z.length>0&&B.filter(function(ge){return 1===Z.length?!ge.containsPoint(Z[0].startPoint)&&!ge.containsPoint(Z[0].endPoint):ge!==Z[0]&&ge!==Z[1]}).some(function(ge){return J.isIntersected(ge)})&&!W&&(W=!0),N||(N=!0),"continue"}if(!G&&q){W||(W=!0,N&&(N=!1));var X=B.filter(function(ge){return ge.containsPoint(ee)});return X.length>0&&B.filter(function(ge){return 1===X.length?!ge.containsPoint(X[0].startPoint)&&!ge.containsPoint(X[0].endPoint):ge!==X[0]&&ge!==X[1]}).some(function(ge){return J.isIntersected(ge)})&&!N&&(N=!0),"continue"}var M=B.filter(function(ge){return ge.containsPoint(j)}),se=B.filter(function(ge){return ge.containsPoint(ee)});if(2===M.length&&2===se.length)return{value:!0};if(1===M.length&&1===se.length&&M[0]!==se[0])return{value:!0};N||1!==se.length||M.length||(N=!0),W||1!==M.length||se.length||(W=!0,N&&(N=!1))}},U=0;U<R.length;U++){var K=V(U);if("object"==typeof K)return K.value}return W&&N},k.areIntersectedSegments=function(R,P){if(!P)return!1;for(var B,W=0;B=R[W];){for(var N=0,V=void 0;V=P[N];){if(V.isIntersected(B))return!0;N++}W++}return!1},k.isLineIntersected=function(R,P,B,W,N){var V=x.fromPoints(R,P),U=B.startPoint,K=B.endPoint;if(V.containsPoint(U)&&V.containsPoint(K))return!W&&!N;var Y=x.fromPoints(U,K).getPointIntersection(V);return!(!Y||!B.containsPoint(Y)||(W?k.areDuplicatedPoints(U,Y):N&&k.areDuplicatedPoints(K,Y)))},k.removeUnnecessaryPoints=function(R,P,B,W){void 0===B&&(B=function(N){return void 0!==N}),void 0===W&&(W=1e-5),this.removeUnnecessaryPointsCore(R,P,B,W),this.removeBackwardPoints(R,P,B,W),this.removeUnnecessaryPointsCore(R,P,B,W)},k.removeUnnecessaryRightAnglePoints=function(R,P,B,W){void 0===B&&(B=function(N){return void 0!==N}),void 0===W&&(W=1e-5),this.removeUnnecessaryPointsCore(R,P,B,W),this.removeBackwardPoints(R,P,B,W),this.removeNotRightAnglePoints(R,P,B,W),this.removeUnnecessaryPointsCore(R,P,B,W)},k.removeUnnecessaryPointsCore=function(R,P,B,W){void 0===B&&(B=function(N){return void 0!==N}),void 0===W&&(W=1e-5),this.removeDuplicatedPoints(R,P,B,W),this.removeNotCornersPoints(R,P,B,W)},k.removeNotRightAnglePoints=function(R,P,B,W){void 0===B&&(B=function(Y){return void 0!==Y}),void 0===W&&(W=1e-5);for(var N,V=0;(N=R[V])&&R.length>2;){var U=this.getNextPoint(R,V,1,B),K=this.getNextPoint(R,V,-1,B);K&&U&&!k.isRightAngleCorner(K,N,U,W)&&P(N,V)||V++}},k.removeDuplicatedPoints=function(R,P,B,W){void 0===B&&(B=function(Y){return void 0!==Y}),void 0===W&&(W=1e-5);for(var N,V=0;(N=R[V])&&R.length>2;){var U=this.getNextPoint(R,V,1,B);if(U&&k.areDuplicatedPoints(N,U,W)){var K=V===R.length-2?V:V+1;if(P(R[K],K))continue}V++}},k.removeNotCornersPoints=function(R,P,B,W){void 0===B&&(B=function(Y){return void 0!==Y}),void 0===W&&(W=1e-5);for(var N,V=0;(N=R[V])&&R.length>2;){var U=this.getNextPoint(R,V,1,B),K=this.getNextPoint(R,V,-1,B);K&&U&&!k.isCorner(K,N,U,W)&&P(N,V)||V++}},k.removeBackwardPoints=function(R,P,B,W){void 0===B&&(B=function(Y){return void 0!==Y}),void 0===W&&(W=1e-5);for(var N,V=0;(N=R[V])&&R.length>2;){var U=this.getNextPoint(R,V,1,B),K=this.getNextPoint(R,V,-1,B);K&&U&&k.isBackwardPoint(K,N,U,W)&&P(N,V)||V++}},k.isRightAngleCorner=function(R,P,B,W){return void 0===W&&(W=1e-5),p.MathUtils.numberCloseTo(k.createAngle(R,P,B),Math.PI/2,W)||p.MathUtils.numberCloseTo(k.createAngle(R,P,B),Math.PI,W)||p.MathUtils.numberCloseTo(k.createAngle(R,P,B),3*Math.PI/2,W)},k.isCorner=function(R,P,B,W){return void 0===W&&(W=1e-5),!p.MathUtils.numberCloseTo(k.createAngle(R,P,B),0,W)},k.areDuplicatedPoints=function(R,P,B){return void 0===B&&(B=1e-5),p.MathUtils.numberCloseTo(R.x,P.x,B)&&p.MathUtils.numberCloseTo(R.y,P.y,B)},k.isBackwardPoint=function(R,P,B,W){return void 0===W&&(W=1e-5),p.MathUtils.numberCloseTo(k.createAngle(R,P,B),Math.PI,W)},k.createAngle=function(R,P,B){var W=s.Vector.fromPoints(P,B),N=s.Vector.fromPoints(R,P),V=W.x,U=W.y,K=N.x,Y=N.y,J=Math.atan2(V*Y-K*U,V*K+U*Y);return J<0?2*Math.PI+J:J},k.getNextPoint=function(R,P,B,W){for(var N,V=P+B;N=R[V];){if(W(N))return N;V+=B}},k.addSelectedLinesTo=function(R,P,B,W,N,V,U,K,Y,J,j,ee,G,q){void 0===q&&(q=1e-5);var Z=P.y-R.y,X=B.y-P.y,M=R.x-P.x,se=P.x-B.x,ge=Z*se-X*M;if(!p.MathUtils.numberCloseTo(ge,0,q)){var De=Z*(R.x+W)+M*(R.y+N),Fe=X*(P.x+K)+se*(P.y+Y);ee((se*De-M*Fe)/ge,(Z*Fe-X*De)/ge);var Ae=Z*(R.x+V)+M*(R.y+U),ne=X*(P.x+J)+se*(P.y+j);G((se*Ae-M*ne)/ge,(Z*ne-X*Ae)/ge)}},k.getSelectionOffsetPoint=function(R,P,B){return new I.Point((R.y-P.y)/B,(P.x-R.x)/B)},k.getSelectionTextStartEndPoints=function(R,P,B,W,N,V){var U=(P.x-R.x)/B,K=(P.y-R.y)/B,Y=N.width*U+N.height*K;switch(V){case d.TextAlignment.Left:return[W,new I.Point(W.x+U*Y,W.y+K*Y)];case d.TextAlignment.Right:return[new I.Point(W.x-U*Y,W.y-K*Y),W];default:return[new I.Point(W.x-.5*U*Y,W.y-.5*K*Y),new I.Point(W.x+.5*U*Y,W.y+.5*K*Y)]}},k.getPathLength=function(R){var P,B=0;return R.forEach(function(W){void 0!==P&&(B+=a.Metrics.euclideanDistance(W,P)),P=W}),B},k.getPathPointByPosition=function(R,P){if(!R.length)throw new Error("Invalid points");if(0>P||P>1)throw new Error("Invalid relative position");var B=this.getPathLength(R);if(R.length<=2&&0===B||0===P)return[R[0],0];for(var W=B*P,N=0,V=1;V<R.length;V++){var U=a.Metrics.euclideanDistance(R[V],R[V-1]);if(N+U>=W){var K=W-N;return[new I.Point(R[V-1].x+(R[V].x-R[V-1].x)/U*K,R[V-1].y+(R[V].y-R[V-1].y)/U*K),V]}N+=U}return[R[R.length-1],R.length-1]},k.getLineAngle=function(R,P){return Math.atan2(P.y-R.y,P.x-R.x)},k.getTriangleBeginAngle=function(R,P,B){var W=this.getLineAngle(R,P),N=this.getLineAngle(R,B);return Math.abs(N-W)},k.getTriangleEndAngle=function(R,P,B){var W=this.getLineAngle(R,P),N=this.getLineAngle(B,P);return Math.abs(W-N)},k.getPathPointByPoint=function(R,P){if(!R.length)throw new Error("Invalid points");if(1===R.length)return R[0];for(var B,W=Number.MAX_VALUE,N=1;N<R.length;N++){var V=R[N-1],U=R[N];if(P.equals(V)){B=V.clone();break}if(P.equals(U)){B=U.clone();break}var G,K=this.getTriangleBeginAngle(V,U,P),Y=this.getTriangleEndAngle(V,U,P),J=a.Metrics.euclideanDistance(P,V),j=a.Metrics.euclideanDistance(P,U),ee=J*Math.sin(K);if((G=Math.PI/2<=K&&K<=3*Math.PI/2?J:Math.PI/2<=Y&&Y<=3*Math.PI/2?j:Math.abs(ee))<W)if(W=G,Math.PI/2<=K&&K<=3*Math.PI/2)B=V.clone();else if(Math.PI/2<=Y&&Y<=3*Math.PI/2)B=U.clone();else{var q=Math.fround||Math.round,Z=this.getLineAngle(V,U),X=q(Math.abs(ee*Math.sin(Z))),M=q(Math.abs(ee*Math.cos(Z))),se=P.y-V.y<q((P.x-V.x)*Math.tan(Z));0<=Z&&Z<=Math.PI/2?(X*=se?-1:1,M*=se?1:-1):Math.PI/2<=Z&&Z<=Math.PI||0>=Z&&Z>=-Math.PI/2?(X*=se?1:-1,M*=se?1:-1):-Math.PI/2>=Z&&Z>=-Math.PI&&(X*=se?-1:1,M*=se?1:-1),B=P.clone().offset(X,M)}}return B},k.getPathPositionByPoint=function(R,P,B){void 0===B&&(B=100),P=this.getPathPointByPoint(R,P);for(var W=this.getPathLength(R),N=0,V=1;V<R.length;V++){var U=R[V-1],K=R[V],Y=a.Metrics.euclideanDistance(K,U),J=Math.atan((K.y-U.y)/(K.x-U.x)),j=Math.fround||Math.round;if(P.x===K.x&&P.x===U.x||P.y===K.y&&P.y===U.y||j(P.y-U.y)===j((P.x-U.x)*Math.tan(J)))return 0!==Math.sin(J)?N+=Math.abs((P.y-U.y)/Math.sin(J)):N+=Math.abs(P.x-U.x),Math.round(N*B/W)/B;N+=Y}return 1},k.arePointsEqual=function(R,P){var B=R.length;if(B!==P.length)return!1;for(var W=0;W<B;W++)if(!R[W].equals(P[W]))return!1;return!0},k.getMaxRectangleEnscribedInEllipse=function(R){var P=R.width*Math.sqrt(2)/2,B=R.height*Math.sqrt(2)/2;return new c.Size(P,B)},k.getEllipseByEnscribedRectangle=function(R){return new c.Size(2*R.width/Math.sqrt(2),2*R.height/Math.sqrt(2))},k}();l.GeometryUtils=S;var O=function(){function k(){}return k.cloneObject=function(R){return R&&Object.assign({},R)},k.compareObjects=function(R,P){return R===P||"object"==typeof R&&"object"==typeof P&&this.isDeepEqual(R,P)},k.isDeepEqual=function(R,P){var B=R?Object.getOwnPropertyNames(R):[],W=P?Object.getOwnPropertyNames(P):[];if(B.length!==W.length)return!1;for(var N=0;N<B.length;N++){var V=B[N];switch(typeof R[V]){case"object":if(!this.isDeepEqual(R[V],P[V]))return!1;break;case"number":if(!(isNaN(R[V])&&isNaN(P[V])||R[V]===P[V]))return!1;break;default:if(R[V]!==P[V])return!1}}return!0},k}();l.ObjectUtils=O;var w=function(){function k(){}return k.focusWithPreventScroll=function(R){try{var P=h.Browser.Safari,B=P&&this.getHtmlScrollPosition();if(P){var W=R.parentElement&&R.parentElement.getBoundingClientRect();if(W){var N=W.left<0?1-W.left:0,V=W.top<0?1-W.top:0,U=window.frameElement&&window.frameElement.getBoundingClientRect();U&&(U.top<0&&-U.top>W.top&&(V=-U.top-W.top+1),U.left<0&&-U.left>W.left&&(N=-U.left-W.left+1)),R.style.setProperty("left",N+"px","important"),R.style.setProperty("top",V+"px","important")}}if(R.focus({preventScroll:!0}),P){var K=this.getHtmlScrollPosition();O.compareObjects(B,K)||this.setHtmlScrollPosition(B),R.style.setProperty("left","-1000px","important"),R.style.setProperty("top","-1000px","important")}}catch{}},k.getHtmlScrollPosition=function(){return{pos:this.getDocumentScrollPosition(window,document),iframePos:window.top!==window&&this.getDocumentScrollPosition(window.top,window.top.document)}},k.getDocumentScrollPosition=function(R,P){return{left:R.pageXOffset||P.documentElement.scrollLeft||P.body.scrollLeft,top:R.pageYOffset||P.documentElement.scrollTop||P.body.scrollTop}},k.setHtmlScrollPosition=function(R){this.setDocumentScrollPosition(document,R.pos),window.top!==window&&R.iframePos&&this.setDocumentScrollPosition(window.top.document,R.iframePos)},k.setDocumentScrollPosition=function(R,P){R.documentElement.scrollTop=P.top,R.documentElement.scrollLeft=P.left,R.body.scrollTop=P.top,R.body.scrollLeft=P.left},k}();l.HtmlFocusUtils=w;var T=function(){function k(){}return k.isLeftButtonPressed=function(R){return g.EvtUtils.isLeftButtonPressed(R)},k.isPointerEvents=function(){return window.PointerEvent},k.isMousePointer=function(R){return this.isPointerEvents()&&R.pointerType&&"mouse"===R.pointerType},k.isTouchMode=function(){return h.Browser.TouchUI||window.navigator&&window.navigator.maxTouchPoints>0},k.isTouchEvent=function(R){return h.Browser.TouchUI||!k.isMousePointer(R)},k}();l.EventUtils=T},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ModelUtils=void 0;var c=o(12),I=o(35),C=o(0),f=o(13),a=o(2),p=o(60),s=o(31),u=o(47),d=o(48),h=o(66),g=o(188),x=o(53),b=o(86),y=o(112),E=o(67),S=o(113),O=o(114),w=o(189),T=o(190),k=o(191),R=o(192),P=o(115),B=o(68),W=o(193),N=o(194),V=o(88),U=o(69),K=o(116),Y=o(117),J=o(89),j=o(70),ee=o(54),G=o(195),q=o(38),Z=o(3),X=o(6),M=o(32),se=o(29),ge=o(85),De=o(14),Fe=function(){function Ae(){}return Ae.setShapePosition=function(ne,fe,_e,ie,de){if(void 0===de&&(de=!0),!_e.position.equals(ie)){var le=ie.clone().offset(-_e.position.x,-_e.position.y);ne.addAndRedo(new k.MoveShapeHistoryItem(_e.key,ie)),de&&_e.children.forEach(function(pe){if(pe instanceof De.Shape){var Ee=pe.position.clone().offset(le.x,le.y);Ae.setShapePosition(ne,fe,pe,Ee)}})}},Ae.setShapeSize=function(ne,fe,_e,ie,de){_e.size.equals(de)&&_e.position.equals(ie)||ne.addAndRedo(new P.ResizeShapeHistoryItem(_e.key,ie,de))},Ae.addConnectorPoint=function(ne,fe,_e,ie){ne.addAndRedo(new g.AddConnectorPointHistoryItem(fe,_e,ie))},Ae.deleteConnectorCustomPoints=function(ne,fe){if(fe.points.length>2){var _e=fe.tryCreateRenderPointsContext();if(fe.properties.lineOption!==M.ConnectorLineOption.Straight&&_e){var ie=fe.points[0].clone(),de=fe.points[fe.points.length-1].clone();ne.addAndRedo(new b.ChangeConnectorPointsHistoryItem(fe.key,[ie,de],new ge.ConnectorRenderPointsContext([new se.ConnectorRenderPoint(ie.x,ie.y,0),new se.ConnectorRenderPoint(de.x,de.y,1)],!1,_e.actualRoutingMode)))}else ne.addAndRedo(new b.ReplaceConnectorPointsHistoryItem(fe.key,[fe.points[0].clone(),fe.points[fe.points.length-1].clone()]))}},Ae.deleteConnectorUnnecessaryPoints=function(ne,fe){var _e=fe.getRenderPoints(!0).map(function(ae){return ae.clone()});if(fe.properties.lineOption===M.ConnectorLineOption.Straight){var ie=Ae.createUnnecessaryRenderPoints(_e.filter(function(ae){return!ae.skipped}).map(function(ae){return ae.clone()}),fe.skippedRenderPoints,function(ae){return Ae.findFirstPointIndex(_e,function(te){return te.equals(ae)})});Object.keys(ie).length&&ne.addAndRedo(new b.ReplaceConnectorPointsHistoryItem(fe.key,Ae.createNecessaryPoints(fe.points.map(function(ae){return ae.clone()}),ie)))}else{var de=fe.tryCreateRenderPointsContext(!0),le=_e.filter(function(ae){return!ae.skipped}).map(function(ae){return ae.clone()});if(ie=Ae.createUnnecessaryRightAngleRenderPoints(le,fe.skippedRenderPoints,function(ae){return Ae.findFirstPointIndex(_e,function(te){return te.equals(ae)})}),Object.keys(ie).length){var pe=Ae.createNecessaryPoints(fe.points.map(function(ae){return ae.clone()}),ie),Ee=new ge.ConnectorRenderPointsContext(Ae.validateRenderPointIndexes(pe,le,0),de.lockCreateRenderPoints,de.actualRoutingMode);ne.addAndRedo(new b.ChangeConnectorPointsHistoryItem(fe.key,pe,Ee))}}},Ae.fixConnectorBeginEndConnectionIndex=function(ne,fe){if(fe.beginItem&&-1===fe.beginConnectionPointIndex){var _e=fe.beginItem.getNearestConnectionPoint(fe.points[0]);ne.addAndRedo(new d.SetConnectionPointIndexHistoryItem(fe,_e,X.ConnectorPosition.Begin))}if(fe.endItem&&-1===fe.endConnectionPointIndex){var ie=fe.endItem.getNearestConnectionPoint(fe.points[fe.points.length-1]);ne.addAndRedo(new d.SetConnectionPointIndexHistoryItem(fe,ie,X.ConnectorPosition.End))}},Ae.skipUnnecessaryRenderPoints=function(ne){var fe=ne.map(function(_e){return _e.clone()});Ae.removeUnnecessaryRenderPoints(fe),ne.forEach(function(_e){return _e.skipped=fe.some(function(ie){return ie.skipped&&ie.equals(_e)})}),ne[0].skipped=!1,ne[ne.length-1].skipped=!1},Ae.skipUnnecessaryRightAngleRenderPoints=function(ne){var fe=ne.map(function(_e){return _e.clone()});Ae.removeUnnecessaryRightAngleRenderPoints(fe),ne.forEach(function(_e){return _e.skipped=fe.some(function(ie){return ie.skipped&&ie.equals(_e)})}),ne[0].skipped=!1,ne[ne.length-1].skipped=!1},Ae.removeUnnecessaryRenderPoints=function(ne){Z.GeometryUtils.removeUnnecessaryPoints(ne,function(fe,_e){return Ae.removeUnnecessaryPoint(ne,fe,_e)},function(fe){return void 0!==fe&&!fe.skipped}),ne[0].skipped=!1,ne[ne.length-1].skipped=!1},Ae.removeUnnecessaryRightAngleRenderPoints=function(ne){Z.GeometryUtils.removeUnnecessaryRightAnglePoints(ne,function(fe,_e){return Ae.removeUnnecessaryPoint(ne,fe,_e)},function(fe){return void 0!==fe&&!fe.skipped}),ne[0].skipped=!1,ne[ne.length-1].skipped=!1},Ae.createUnnecessaryRenderPoints=function(ne,fe,_e,ie){void 0===ie&&(ie=function(le){return!0});var de={};return Z.GeometryUtils.removeUnnecessaryPoints(ne,function(le,pe){return Ae.collectNotSkippedRenderPoints(de,ne,le,pe,_e,ie)}),Ae.collectSkippedRenderPoints(de,fe,_e,ie),de},Ae.createUnnecessaryRightAngleRenderPoints=function(ne,fe,_e,ie){void 0===ie&&(ie=function(le){return!0});var de={};return Z.GeometryUtils.removeUnnecessaryRightAnglePoints(ne,function(le,pe){return Ae.collectNotSkippedRenderPoints(de,ne,le,pe,_e,ie)}),Ae.collectSkippedRenderPoints(de,fe,_e,ie),de},Ae.createNecessaryPoints=function(ne,fe){var _e=this,ie=[],de=ne.length-1;return ne.forEach(function(le,pe){(0===pe||pe===de||_e.isNecessaryPoint(le,pe,fe))&&ie.push(le.clone())}),ie},Ae.isNecessaryPoint=function(ne,fe,_e){return!Object.keys(_e).some(function(ie){var de=_e[ie];return de.pointIndex===fe&&Z.GeometryUtils.areDuplicatedPoints(ne,de)})},Ae.collectSkippedRenderPoints=function(ne,fe,_e,ie){void 0===ie&&(ie=function(de){return!0}),fe&&fe.forEach(function(de){if(ie(de)){var le=_e(de);void 0===ne[le]&&(ne[le]=de)}})},Ae.collectNotSkippedRenderPoints=function(ne,fe,_e,ie,de,le){if(void 0===le&&(le=function(Ee){return!0}),!le(_e))return!1;var pe=de(_e);return void 0===ne[pe]&&(ne[pe]=_e,_e.skipped=!0,fe.splice(ie,1)),!0},Ae.removeUnnecessaryPoint=function(ne,fe,_e){return-1===fe.pointIndex?(ne.splice(_e,1),!0):(fe.skipped=!0,!1)},Ae.validateRenderPointIndexes=function(ne,fe,_e){var ie=this,de=fe.map(function(le,pe){return new se.ConnectorRenderPoint(le.x,le.y,pe>=_e&&le.pointIndex>=0?ie.findFirstPointIndex(ne,function(Ee){return Ee.equals(le)}):le.pointIndex,le.skipped)});return de[0].skipped=!1,de[de.length-1].skipped=!1,de},Ae.findFirstPointIndex=function(ne,fe){if(!ne||!fe)return-1;for(var _e=0;_e<ne.length;_e++)if(fe(ne[_e]))return _e;return-1},Ae.moveConnectorRightAnglePoints=function(ne,fe,_e,ie,de,le){Z.GeometryUtils.areDuplicatedPoints(fe.points[ie],_e)&&Z.GeometryUtils.areDuplicatedPoints(fe.points[le],de)||ne.addAndRedo(new T.MoveConnectorRightAnglePointsHistoryItem(fe.key,ie,_e,le,de))},Ae.moveConnectorPoint=function(ne,fe,_e,ie){return!fe.points[_e].equals(ie)&&(ne.addAndRedo(new T.MoveConnectorPointHistoryItem(fe.key,_e,ie)),!0)},Ae.updateConnectorAttachedPoints=function(ne,fe,_e){ne.beginTransaction();var ie=_e.beginItem&&fe.findItemCollapsedContainer(_e.beginItem),de=ie&&(!_e.endItem||!fe.isContainerItem(ie,_e.endItem)),le=_e.endItem&&fe.findItemCollapsedContainer(_e.endItem),pe=le&&(!_e.beginItem||!fe.isContainerItem(le,_e.beginItem)),Ee=!1;return Ee=de?this.updateConnectorBeginPoint(ne,_e,ie,pe&&le||_e.endItem,function(ae){return ie.getConnectionPointIndexForItem(_e.beginItem,ae)})||Ee:this.updateConnectorBeginPoint(ne,_e,_e.beginItem,pe&&le||_e.endItem)||Ee,Ee=pe?this.updateConnectorEndPoint(ne,_e,le,function(ae){return le.getConnectionPointIndexForItem(_e.beginItem,ae)})||Ee:this.updateConnectorEndPoint(ne,_e,_e.endItem)||Ee,ne.endTransaction(),Ee},Ae.updateConnectorBeginPoint=function(ne,fe,_e,ie,de){if(_e){var le=void 0!==de?de(fe.beginConnectionPointIndex):fe.beginConnectionPointIndex,pe=fe.points[1];ie&&2===fe.points.length&&(pe=-1!==fe.endConnectionPointIndex?ie.getConnectionPointPosition(fe.endConnectionPointIndex,C.Point.zero()):ie.rectangle.center);var Ee=_e.getConnectionPointPosition(le,pe);return this.moveConnectorPoint(ne,fe,0,Ee.clone())}},Ae.updateConnectorEndPoint=function(ne,fe,_e,ie){if(_e){var de=void 0!==ie?ie(fe.endConnectionPointIndex):fe.endConnectionPointIndex,le=_e.getConnectionPointPosition(de,fe.points[fe.points.length-2]);return this.moveConnectorPoint(ne,fe,fe.points.length-1,le)}},Ae.updateContainerConnectorsAttachedPoints=function(ne,fe,_e,ie){var de=this;void 0===ie&&(ie=_e),ne.beginTransaction(),fe.getChildren(ie).forEach(function(le){le instanceof De.Shape&&(le.attachedConnectors.forEach(function(pe){var Ee=pe.beginItem&&fe.isContainerItem(ie,pe.beginItem),ae=pe.endItem&&fe.isContainerItem(ie,pe.endItem);if(Ee&&!ae){var te=fe.findItemTopCollapsedContainer(pe.beginItem),re=pe.endItem&&fe.findItemTopCollapsedContainer(pe.endItem);te?de.updateConnectorBeginPoint(ne,pe,te,re||pe.endItem,function(oe){return _e.getConnectionPointIndexForItem(pe.beginItem,oe)}):de.updateConnectorBeginPoint(ne,pe,pe.beginItem,re||pe.endItem)}ae&&!Ee&&((te=fe.findItemTopCollapsedContainer(pe.endItem))?de.updateConnectorEndPoint(ne,pe,te,function(oe){return _e.getConnectionPointIndexForItem(pe.endItem,oe)}):de.updateConnectorEndPoint(ne,pe,pe.endItem))}),de.updateContainerConnectorsAttachedPoints(ne,fe,_e,le))}),ne.endTransaction()},Ae.getConnectorsWithoutBeginItemInfo=function(ne){return ne.findConnectorsWithoutBeginItem().map(function(fe){return{connector:fe,point:fe.points[0].clone()}})},Ae.getConnectorsWithoutEndItemInfo=function(ne){return ne.findConnectorsWithoutEndItem().map(function(fe){return{connector:fe,point:fe.points[fe.points.length-1].clone()}})},Ae.updateShapeAttachedConnectors=function(ne,fe,_e){var ie=this;_e.attachedConnectors.forEach(function(de){ie.tryRemoveConnectorIntermediatePoints(ne,de),ie.updateConnectorAttachedPoints(ne,fe,de)})},Ae.updateMovingShapeConnections=function(ne,fe,_e,ie,de,le,pe){var Ee=this;de(),_e.forEach(function(ae){var te=Ee.getMovingShapeConnectionPointIndex(fe,ae.point);fe.rectangle.containsPoint(ae.point)||te>-1?(le(fe,te),te!==ae.connector.beginConnectionPointIndex&&ae.connector.beginItem&&ne.addAndRedo(new E.DeleteConnectionHistoryItem(ae.connector,X.ConnectorPosition.Begin)),pe(ae.connector),ne.addAndRedo(new d.AddConnectionHistoryItem(ae.connector,fe,te,X.ConnectorPosition.Begin))):ae.connector.beginItem&&(ne.addAndRedo(new E.DeleteConnectionHistoryItem(ae.connector,X.ConnectorPosition.Begin)),ne.addAndRedo(new T.MoveConnectorPointHistoryItem(ae.connector.key,0,ae.point)))}),ie.forEach(function(ae){var te=Ee.getMovingShapeConnectionPointIndex(fe,ae.point);fe.rectangle.containsPoint(ae.point)||te>-1?(le(fe,te),te!==ae.connector.endConnectionPointIndex&&ae.connector.endItem&&ne.addAndRedo(new E.DeleteConnectionHistoryItem(ae.connector,X.ConnectorPosition.End)),pe(ae.connector),ne.addAndRedo(new d.AddConnectionHistoryItem(ae.connector,fe,te,X.ConnectorPosition.End))):ae.connector.endItem&&(ne.addAndRedo(new E.DeleteConnectionHistoryItem(ae.connector,X.ConnectorPosition.End)),ne.addAndRedo(new T.MoveConnectorPointHistoryItem(ae.connector.key,ae.connector.points.length-1,ae.point)))})},Ae.getMovingShapeConnectionPointIndex=function(ne,fe){var _e=this,ie=-1;return ne.getConnectionPoints().forEach(function(de,le){I.Metrics.euclideanDistance(fe,de)<_e.connectionPointActionSize&&(ie=le)}),ie},Ae.shouldRemoveConnectorIntermediatePoints=function(ne,fe){if(ne.properties.lineOption!==M.ConnectorLineOption.Orthogonal||2===ne.points.length||!fe||!fe.length)return!1;for(var _e,ie=0;_e=fe[ie];){if(this.isShapeIntersectConnectorCustomPoints(_e,ne))return!0;ie++}return!1},Ae.tryRemoveConnectorIntermediatePoints=function(ne,fe){this.shouldRemoveConnectorIntermediatePoints(fe,[fe.beginItem,fe.endItem])&&this.deleteConnectorCustomPoints(ne,fe)},Ae.isShapeIntersectConnectorCustomPoints=function(ne,fe){if(!ne)return!1;var _e=fe.getCustomRenderPoints(!0);if(!_e.length)return!1;var ie=X.Connector.minOffset-c.UnitConverter.pixelsToTwips(1);return Z.GeometryUtils.areIntersectedSegments(Z.GeometryUtils.createSegments(_e),Z.GeometryUtils.createSegmentsFromRectangle(ne.rectangle.clone().inflate(ie,ie)))},Ae.getSnappedPos=function(ne,fe,_e,ie){var de=ie?ne.snapStartPoint.x:ne.snapStartPoint.y;return Math.round((_e-de)/fe)*fe+de},Ae.tryUpdateModelRectangle=function(ne,fe){var _e=ne.modelManipulator.getModelSizeUpdateOffset();_e.isEmpty()||(ne.addAndRedo(new W.ModelResizeHistoryItem(_e)),(_e.left||_e.top)&&(ne.addAndRedo(new N.UpdatePositionsOnPageResizeHistoryItem(new p.Vector(_e.left,_e.top))),void 0!==fe&&fe(_e.left,_e.top)),ne.modelManipulator.raiseModelRectangleChanged(ne.modelManipulator.model.getRectangle(!0)))},Ae.deleteItems=function(ne,fe,_e,ie,de){ne.beginTransaction();var le={};ie.forEach(function(Ee){return le[Ee.key]=Ee});var pe=_e.getKeys().filter(function(Ee){return!le[Ee]});ne.addAndRedo(new B.SetSelectionHistoryItem(_e,pe)),this.deleteItemsCore(ne,fe,ie,de),this.tryUpdateModelRectangle(ne),ne.endTransaction()},Ae.deleteItemsCore=function(ne,fe,_e,ie){var de=this;_e.sort(function(le,pe){return(le instanceof X.Connector?0:1)-(pe instanceof X.Connector?0:1)}),_e.forEach(function(le){if(le.container&&de.removeFromContainer(ne,fe,le),le instanceof De.Shape){var pe=fe.getChildren(le);pe.length&&(pe.forEach(function(Ee){ne.addAndRedo(new R.RemoveFromContainerHistoryItem(Ee)),de.updateAttachedConnectorsContainer(ne,fe,Ee)}),de.deleteItemsCore(ne,fe,pe.filter(function(Ee){return!Ee.locked||ie}),ie)),fe.findItem(le.key)&&de.deleteShape(ne,le)}le instanceof X.Connector&&fe.findItem(le.key)&&de.deleteConnector(ne,le)})},Ae.detachConnectors=function(ne,fe){for(ne.beginTransaction();fe.attachedConnectors.length>0;){var _e=fe.attachedConnectors[0];ne.addAndRedo(new E.DeleteConnectionHistoryItem(_e,_e.beginItem===fe?X.ConnectorPosition.Begin:X.ConnectorPosition.End))}ne.endTransaction()},Ae.deleteShape=function(ne,fe){var _e=ne.modelManipulator.permissionsProvider.canDeleteItems([fe]);ne.beginTransaction(),this.detachConnectors(ne,fe),ne.addAndRedo(new O.DeleteShapeHistoryItem(fe.key,_e)),ne.endTransaction()},Ae.deleteConnector=function(ne,fe){ne.beginTransaction(),fe.beginItem&&ne.addAndRedo(new E.DeleteConnectionHistoryItem(fe,X.ConnectorPosition.Begin)),fe.endItem&&ne.addAndRedo(new E.DeleteConnectionHistoryItem(fe,X.ConnectorPosition.End)),ne.addAndRedo(new S.DeleteConnectorHistoryItem(fe.key)),ne.endTransaction()},Ae.deleteAllItems=function(ne,fe,_e){this.deleteItems(ne,fe,_e,fe.items.slice(),!0)},Ae.deleteSelection=function(ne,fe,_e){this.deleteItems(ne,fe,_e,_e.getSelectedItems())},Ae.changeSelectionLocked=function(ne,fe,_e,ie){ne.beginTransaction(),_e.getSelectedItems(!0).forEach(function(de){ne.addAndRedo(new Y.ChangeLockedHistoryItem(de,ie))}),Ae.updateSelection(ne,_e),ne.endTransaction()},Ae.copyStylesToItem=function(ne,fe,_e,ie){var de=fe.findItem(ie);_e.styleText.forEach(function(le){_e.styleText[le]!==de.styleText[le]&&ne.addAndRedo(new j.ChangeStyleTextHistoryItem(ie,le,_e.styleText[le]))}),_e.style.forEach(function(le){_e.style[le]!==de.style[le]&&ne.addAndRedo(new J.ChangeStyleHistoryItem(ie,le,_e.style[le]))})},Ae.updateSelection=function(ne,fe){ne.addAndRedo(new B.SetSelectionHistoryItem(fe,fe.getKeys(),!0))},Ae.cloneShapeToOffset=function(ne,fe,_e,ie,de){ne.beginTransaction();var le=_e.position.clone().offset(ie,de),pe=new x.AddShapeHistoryItem(_e.description,le,_e.text);ne.addAndRedo(pe);var Ee=pe.shapeKey;return ne.addAndRedo(new P.ResizeShapeHistoryItem(Ee,le,_e.size.clone())),ne.addAndRedo(new K.ChangeCustomDataHistoryItem(Ee,Z.ObjectUtils.cloneObject(_e.customData))),ne.addAndRedo(new y.ChangeShapeParametersHistoryItem(Ee,_e.parameters.clone())),this.copyStylesToItem(ne,fe,_e,Ee),ne.endTransaction(),Ee},Ae.applyOffsetToConnectorRenderPointsContext=function(ne,fe,_e){return ne&&ne.renderPoints?new ge.ConnectorRenderPointsContext(ne.renderPoints.map(function(ie){return ie.clone().offset(fe,_e)}),!0,ne.actualRoutingMode):void 0},Ae.cloneConnectorToOffset=function(ne,fe,_e,ie,de,le,pe){ne.beginTransaction();var Ee=_e.points.map(function(Pe){return Pe.clone().offset(le,pe)}),ae=new h.AddConnectorHistoryItem(Ee,void 0,this.applyOffsetToConnectorRenderPointsContext(_e.tryCreateRenderPointsContext(),le,pe));ne.addAndRedo(ae);var te=ae.connectorKey,re=fe.findConnector(te);if(_e.properties.forEach(function(Pe){_e.properties[Pe]!==re.properties[Pe]&&ne.addAndRedo(new V.ChangeConnectorPropertyHistoryItem(te,Pe,_e.properties[Pe]))}),ie){var oe=fe.findShape(ie);ne.addAndRedo(new d.AddConnectionHistoryItem(re,oe,_e.beginConnectionPointIndex,X.ConnectorPosition.Begin))}if(de){var ye=fe.findShape(de);ne.addAndRedo(new d.AddConnectionHistoryItem(re,ye,_e.endConnectionPointIndex,X.ConnectorPosition.End))}return _e.texts.clone().forEach(function(Pe){ne.addAndRedo(new U.ChangeConnectorTextHistoryItem(re,Pe.position,Pe.value))}),this.copyStylesToItem(ne,fe,_e,te),ne.endTransaction(),te},Ae.cloneSelectionToOffset=function(ne,fe,_e,ie,de,le){var pe=this;ne.beginTransaction();var Ee={},ae=[];ie.getSelectedShapes().forEach(function(te){var re=pe.cloneShapeToOffset(ne,fe,te,de,le);Ee[te.key]=re,ae.push(re),_e&&_e(re)}),ie.getSelectedConnectors().forEach(function(te){var ye=pe.cloneConnectorToOffset(ne,fe,te,te.beginItem?Ee[te.beginItem.key]:null,te.endItem?Ee[te.endItem.key]:null,de,le);ae.push(ye),_e&&_e(ye)}),ne.addAndRedo(new B.SetSelectionHistoryItem(ie,ae)),Ae.tryUpdateModelRectangle(ne),ne.endTransaction()},Ae.findContainerByEventKey=function(ne,fe,_e){var ie=ne.findContainer(_e);if(ie&&!ie.isLocked)return ie;var de=ne.findShape(_e);return de&&de.container&&!fe.hasKey(de.key)?Ae.findContainerByEventKey(ne,fe,de.container.key):void 0},Ae.canInsertToContainer=function(ne,fe,_e){return fe!==_e&&!(fe instanceof De.Shape&&ne.findChild(fe,_e.key))},Ae.canInsertSelectionToContainer=function(ne,fe,_e){var ie=!0;return fe.getSelectedItems().forEach(function(de){de!==_e?de instanceof De.Shape&&ne.findChild(de,_e.key)&&(ie=!1):ie=!1}),ie},Ae.insertToContainer=function(ne,fe,_e,ie){if(!ie.enableChildren)throw Error("Inpossible to add children to non-container shape.");if(this.canInsertToContainer(fe,_e,ie)){var de=_e.container;de!==ie&&(ne.beginTransaction(),de&&(ne.addAndRedo(new R.RemoveFromContainerHistoryItem(_e)),_e.attachedConnectors.forEach(function(le){le.container&&ne.addAndRedo(new R.RemoveFromContainerHistoryItem(le))})),ne.addAndRedo(new w.InsertToContainerHistoryItem(_e,ie)),this.updateAttachedConnectorsContainer(ne,fe,_e),ne.endTransaction())}},Ae.removeFromContainer=function(ne,fe,_e){_e.container&&(ne.beginTransaction(),ne.addAndRedo(new R.RemoveFromContainerHistoryItem(_e)),this.updateAttachedConnectorsContainer(ne,fe,_e),ne.endTransaction())},Ae.insertSelectionToContainer=function(ne,fe,_e,ie){var de=this;ne.beginTransaction();var le=_e.getSelectedItems();le.filter(function(pe){return!pe.container||-1===le.indexOf(pe.container)}).forEach(function(pe){de.insertToContainer(ne,fe,pe,ie)}),ne.endTransaction()},Ae.removeSelectionFromContainer=function(ne,fe,_e){var ie=this;ne.beginTransaction(),_e.getSelectedItems().forEach(function(de){de.container&&!_e.hasKey(de.container.key)&&(ne.addAndRedo(new R.RemoveFromContainerHistoryItem(de)),ie.updateAttachedConnectorsContainer(ne,fe,de))}),ne.endTransaction()},Ae.getConnectorContainer=function(ne){if(ne.beginItem&&ne.endItem){for(var fe={},_e=ne.beginItem.container;_e;)fe[_e.key]=!0,_e=_e.container;for(var ie=ne.endItem.container;ie;){if(void 0!==fe[ie.key])return ie;ie=ie.container}}},Ae.updateAttachedConnectorsContainer=function(ne,fe,_e){var ie=this;ne.beginTransaction(),_e.attachedConnectors.forEach(function(de){ie.updateConnectorContainer(ne,fe,de)}),ne.endTransaction()},Ae.updateConnectorContainer=function(ne,fe,_e){var ie=this.getConnectorContainer(_e);ie?ne.addAndRedo(new w.InsertToContainerHistoryItem(_e,ie)):_e.container&&ne.addAndRedo(new R.RemoveFromContainerHistoryItem(_e))},Ae.updateNewShapeProperties=function(ne,fe,_e){fe.inputPosition.getDefaultStyle().forEach(function(ie){ne.addAndRedo(new J.ChangeStyleHistoryItem(_e,ie,fe.inputPosition.getDefaultStylePropertyValue(ie)))}),fe.inputPosition.getDefaultTextStyle().forEach(function(ie){ne.addAndRedo(new j.ChangeStyleTextHistoryItem(_e,ie,fe.inputPosition.getDefaultTextStylePropertyValue(ie)))})},Ae.updateNewConnectorProperties=function(ne,fe,_e){fe.inputPosition.getDefaultConnectorProperties().forEach(function(ie){ne.addAndRedo(new V.ChangeConnectorPropertyHistoryItem(_e,ie,fe.inputPosition.getDefaultConnectorPropertyValue(ie)))}),fe.inputPosition.getDefaultStyle().forEach(function(ie){ne.addAndRedo(new J.ChangeStyleHistoryItem(_e,ie,fe.inputPosition.getDefaultStylePropertyValue(ie)))}),fe.inputPosition.getDefaultTextStyle().forEach(function(ie){ne.addAndRedo(new j.ChangeStyleTextHistoryItem(_e,ie,fe.inputPosition.getDefaultTextStylePropertyValue(ie)))})},Ae.applyLayout=function(ne,fe,_e,ie,de,le,pe,Ee,ae,te){ne.beginTransaction();var re=this.getOccupiedRectangles(le,_e);return de=this.offsetLayoutToFreeSpace(de,_e&&_e.clientRectangle,re,pe.containerPadding),Ee&&this.adjustLayoutToSnapGrid(fe,de,ae),_e&&this.resizeContainerOnLayout(ne,fe,de,_e,pe.containerPadding),this.applyLayoutToNodes(ne,fe,de,ie.edges.map(function(oe){return fe.findConnector(oe.key)})),this.applyLayoutToConnectors(ne,fe,de,ie.edges.map(function(oe){return fe.findConnector(oe.key)}),te),ne.endTransaction(),de.getRectangle(!0)},Ae.getNonGraphItems=function(ne,fe,_e,ie,de){return(fe?ne.getChildren(fe):ne.items.filter(function(le){return!le.container})).filter(function(le){return le instanceof X.Connector?!(le.beginItem&&_e[le.beginItem.key]||le.endItem&&_e[le.endItem.key]||-1!==de.indexOf(le)):le instanceof De.Shape?!_e[le.key]&&-1===ie.indexOf(le):void 0})},Ae.getOccupiedRectangles=function(ne,fe){var _e=ne.map(function(de){return de.rectangle});if(fe&&_e.length){var ie=fe.clientRectangle;_e.push(new f.Rectangle(ie.right,ie.y,1,1)),_e.push(new f.Rectangle(ie.right,ie.bottom,1,1))}return _e},Ae.offsetLayoutToFreeSpace=function(ne,fe,_e,ie){var de=ne.getRectangle(!0),le=Z.GeometryUtils.findFreeSpace(_e,de.createSize().offset(ie,ie).nonNegativeSize(),!1,fe);if(le)return ne.offsetNodes(le.x+ie,le.y+ie);var ae=_e&&_e.length?_e.reduce(function(re,oe){return oe.right>re?oe.right:re},0):fe?fe.x:0,te=fe?fe.y:Math.max(0,de.y);return ne.offsetNodes(ae+ie,te+ie)},Ae.resizeContainerOnLayout=function(ne,fe,_e,ie,de){var le=_e.getRectangle(!0),pe=ie.children.filter(function(oe){return oe instanceof De.Shape?-1===_e.nodeKeys.indexOf(oe.key):!!(oe instanceof X.Connector&&oe.beginItem&&oe.endItem)&&-1===_e.nodeKeys.indexOf(oe.beginItem.key)&&-1===_e.nodeKeys.indexOf(oe.endItem.key)}).map(function(oe){return oe.rectangle}),Ee=pe.map(function(oe){return oe.right}).reduce(function(oe,ye){return Math.max(oe,ye)},le.right),ae=pe.map(function(oe){return oe.bottom}).reduce(function(oe,ye){return Math.max(oe,ye)},le.bottom);Ae.setShapeSize(ne,fe,ie,ie.position,new a.Size(ie.rectangle.width+Ee+de-ie.rectangle.right,ie.rectangle.height+ae+de-ie.rectangle.bottom)),Ae.updateShapeAttachedConnectors(ne,fe,ie)},Ae.applyLayoutToNodes=function(ne,fe,_e,ie){var de=this,le=ie.reduce(function(pe,Ee){return pe[Ee.key]=pe},{});_e.forEachNode(function(pe,Ee){var ae=fe.findShape(Ee);de.applyLayoutToNode(ne,fe,ae,pe.position,le)})},Ae.applyLayoutToNode=function(ne,fe,_e,ie,de){var le=this,pe=ie.clone().offset(-_e.position.x,-_e.position.y);Ae.setShapePosition(ne,fe,_e,ie,!1),0===pe.x&&0===pe.y||(_e.attachedConnectors.filter(function(Ee){return!de[Ee.key]}).forEach(function(Ee){le.updateConnectorAttachedPoints(ne,fe,Ee);for(var te=Ee.endItem?Ee.points.length-2:Ee.points.length-1,re=Ee.beginItem?1:0;re<=te;re++)le.moveConnectorPoint(ne,Ee,re,Ee.points[re].offset(pe.x,pe.y))}),fe.getChildren(_e).forEach(function(Ee){if(Ee instanceof De.Shape){var ae=Ee.position.clone().offset(pe.x,pe.y);le.applyLayoutToNode(ne,fe,Ee,ae,de)}}))},Ae.applyLayoutToConnectors=function(ne,fe,_e,ie,de){var le=this;ie.filter(function(pe){return pe.beginItem||pe.endItem}).forEach(function(pe){var Ee=_e.edgeToPosition[pe.key];if(pe.beginItem&&pe.endItem&&!de&&Ee){var ae=pe.beginItem.getConnectionPointIndexForSide(Ee.beginIndex);ae!==pe.beginConnectionPointIndex&&ne.addAndRedo(new d.SetConnectionPointIndexHistoryItem(pe,ae,X.ConnectorPosition.Begin));var te=pe.endItem.getConnectionPointIndexForSide(Ee.endIndex);te!==pe.endConnectionPointIndex&&ne.addAndRedo(new d.SetConnectionPointIndexHistoryItem(pe,te,X.ConnectorPosition.End))}le.updateConnectorAttachedPoints(ne,fe,pe),Ee&&le.deleteConnectorCustomPoints(ne,pe)})},Ae.adjustLayoutToSnapGrid=function(ne,fe,_e){var ie=this;fe.nodeKeys.forEach(function(de){fe.nodeToLayout[de].position.x=ie.getSnappedPos(ne,_e,fe.nodeToLayout[de].position.x,!0),fe.nodeToLayout[de].position.y=ie.getSnappedPos(ne,_e,fe.nodeToLayout[de].position.y,!1)})},Ae.getGraphInfoByItems=function(ne,fe,_e,ie){void 0===ie&&(ie=!0);var de={};[].concat(fe).concat(_e).forEach(function(oe){var ye=oe.container&&oe.container.key;de[ye]||(de[ye]=[]),de[ye].push(oe)});var le=[];for(var pe in de)if(Object.prototype.hasOwnProperty.call(de,pe)){var Ee=pe&&ne.findContainer(pe);if(!Ee||Ee.expanded&&!ne.findItemCollapsedContainer(Ee)){var te=this.getGraphByItems(ne,de[pe],Ee&&Ee.key,!ie),re=!1;(te.nodes.length>1||te.nodes.length&&(ie||Ee&&de[Ee.container&&Ee.container.key]))&&(re=!0),re&&le.push(new G.GraphInfo(Ee,te))}}return le.sort(function(oe,ye){return ye.level-oe.level})},Ae.getGraphByItems=function(ne,fe,_e,ie){var de=this,le=new ee.Graph([],[]),pe={};return fe.forEach(function(Ee){de.extendByConnectedComponents(Ee,le,_e,pe,ie)}),le.nodes.sort(function(Ee,ae){return ne.getItemIndex(ne.findItem(Ee))-ne.getItemIndex(ne.findItem(ae))}),le.edges.sort(function(Ee,ae){return ne.getItemIndex(ne.findItem(Ee.key))-ne.getItemIndex(ne.findItem(ae.key))}),le.edges=le.edges.filter(function(Ee){return le.getNode(Ee.from)&&le.getNode(Ee.to)}),le},Ae.extendByConnectedComponents=function(ne,fe,_e,ie,de){var le=this;!ne||de&&ne.locked||ie[ne.key]||(ie[ne.key]=!0,!(ne instanceof X.Connector&&(ne.container&&ne.container.key)===_e&&ne.beginItem)||ne.beginItem.locked&&de||!ne.endItem||ne.endItem.locked&&de||ne.beginItem===ne.endItem?ne instanceof De.Shape&&(ne.container&&ne.container.key)===_e&&(fe.addNode(ne),ne.attachedConnectors.forEach(function(pe){return le.extendByConnectedComponents(pe,fe,_e,ie,de)})):(fe.addEdge(new q.Edge(ne.key,ne.beginItem&&ne.beginItem.key,ne.endItem&&ne.endItem.key)),this.extendByConnectedComponents(ne.beginItem,fe,_e,ie,de),this.extendByConnectedComponents(ne.endItem,fe,_e,ie,de)))},Ae.getlUnitValue=function(ne,fe){switch(ne){case u.DiagramUnit.Cm:return c.UnitConverter.twipsToCentimeters(fe);case u.DiagramUnit.In:return c.UnitConverter.twipsToInches(fe);case u.DiagramUnit.Px:return c.UnitConverter.twipsToPixels(fe)}},Ae.getUnitText=function(ne,fe,_e,ie,de){void 0===de&&(de=2);var le=fe[ne]?" "+fe[ne]:"",pe=this.getlUnitValue(ne,ie);switch(ne){case u.DiagramUnit.Cm:case u.DiagramUnit.In:return _e(+pe.toFixed(de))+le;case u.DiagramUnit.Px:return _e(+pe.toFixed(0))+le}},Ae.getTwipsValue=function(ne,fe){switch(ne){case u.DiagramUnit.Cm:return c.UnitConverter.centimetersToTwips(fe);case u.DiagramUnit.In:return c.UnitConverter.inchesToTwips(fe);case u.DiagramUnit.Px:return c.UnitConverter.pixelsToTwips(fe)}},Ae.getGuidItemKey=function(){return s.MathUtils.generateGuid()},Ae.createSelectedItems=function(ne){var fe={};return ne.getSelectedItems(!0).forEach(function(_e){return fe[_e.key]=_e}),fe},Ae.canMoveConnector=function(ne,fe){var _e=fe.beginItem,ie=fe.endItem;return _e||ie?!(!ne[fe.key]||!(_e===ie?ne[_e.key]:_e?ie?ne[_e.key]&&ne[ie.key]:ne[_e.key]:ne[ie.key])):!fe.isLocked},Ae.createRectangle=function(ne){return Z.GeometryUtils.getCommonRectangle(ne.map(function(fe){return fe.rectangle}))},Ae.connectionPointActionSize=c.UnitConverter.pixelsToTwips(8),Ae}();l.ModelUtils=Fe},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(l,"__esModule",{value:!0}),l.PathPrimitiveClosePathCommand=l.PathPrimitiveArcToCommand=l.PathPrimitiveQuadraticCurveToCommand=l.PathPrimitiveCubicCurveToCommand=l.PathPrimitiveLineToCommand=l.PathPrimitiveMoveToCommand=l.PathPrimitiveCommand=l.PathPrimitive=void 0;var C=o(15),f=o(24),a=o(109),p=function(y){function E(S,O,w,T,k){var R=y.call(this,O,w,T,k)||this;return R.commands=S.map(function(P){return P.style=O,P}),R}return I(E,y),E.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"path")},E.prototype.applyElementProperties=function(S,O){S.setAttribute("d",this.commands.map(function(w){return w.toString()}).join(" ")),this.setPositionCorrectionAttribute(S),y.prototype.applyElementProperties.call(this,S,O)},E}(f.SvgPrimitive);l.PathPrimitive=p;var s=function(y){function E(){return null!==y&&y.apply(this,arguments)||this}return I(E,y),E}(a.PrimitiveObject);l.PathPrimitiveCommand=s;var u=function(y){function E(S,O){var w=y.call(this)||this;return w.x=S,w.y=O,w}return I(E,y),E.prototype.toString=function(){return"M "+this.getUnitVaue(this.x)+" "+this.getUnitVaue(this.y)},E.fromPoint=function(S){return new E(S.x,S.y)},E}(s);l.PathPrimitiveMoveToCommand=u;var d=function(y){function E(S,O){var w=y.call(this)||this;return w.x=S,w.y=O,w}return I(E,y),E.prototype.toString=function(){return"L "+this.getUnitVaue(this.x)+" "+this.getUnitVaue(this.y)},E.fromPoint=function(S){return new E(S.x,S.y)},E}(s);l.PathPrimitiveLineToCommand=d;var h=function(y){function E(S,O,w,T,k,R){var P=y.call(this)||this;return P.x1=S,P.y1=O,P.x2=w,P.y2=T,P.x3=k,P.y3=R,P}return I(E,y),E.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)},E}(s);l.PathPrimitiveCubicCurveToCommand=h;var g=function(y){function E(S,O,w,T){var k=y.call(this)||this;return k.x1=S,k.y1=O,k.x2=w,k.y2=T,k}return I(E,y),E.prototype.toString=function(){return"Q "+this.getUnitVaue(this.x1)+" "+this.getUnitVaue(this.y1)+","+this.getUnitVaue(this.x2)+" "+this.getUnitVaue(this.y2)},E}(s);l.PathPrimitiveQuadraticCurveToCommand=g;var x=function(y){function E(S,O,w,T,k,R,P){var B=y.call(this)||this;return B.rx=S,B.ry=O,B.xAxisRotation=w,B.largeArcFlag=T,B.sweepFag=k,B.x=R,B.y=P,B}return I(E,y),E.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)},E}(s);l.PathPrimitiveArcToCommand=x;var b=function(y){function E(){return y.call(this)||this}return I(E,y),E.prototype.toString=function(){return"z"},E}(s);l.PathPrimitiveClosePathCommand=b},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(V,U){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,Y){K.__proto__=Y}||function(K,Y){for(var J in Y)Y.hasOwnProperty(J)&&(K[J]=Y[J])})(V,U)},function(V,U){function K(){this.constructor=V}c(V,U),V.prototype=null===U?Object.create(U):(K.prototype=U.prototype,new K)});Object.defineProperty(l,"__esModule",{value:!0}),l.Connector=l.CONNECTOR_DEFAULT_TEXT_POSITION=l.ConnectorPosition=void 0;var C,V,f=o(12),a=o(13),p=o(33),s=o(2),u=o(42),d=o(84),h=o(11),g=o(43),x=o(5),b=o(63),y=o(17),E=o(28),S=o(3),O=o(9),w=o(4),T=o(179),k=o(180),R=o(186),P=o(32),B=o(187),W=o(85);(V=C=l.ConnectorPosition||(l.ConnectorPosition={}))[V.Begin=0]="Begin",V[V.End=1]="End",l.CONNECTOR_DEFAULT_TEXT_POSITION=.5;var N=function(V){function U(K){var Y=V.call(this)||this;if(Y.beginConnectionPointIndex=-1,Y.endConnectionPointIndex=-1,Y.properties=new P.ConnectorProperties,Y.points=K.map(function(J){return J.clone()}),K.length<2)throw Error("Points count should be greater than 1");return Y.texts=new B.ConnectorTexts,Y}return I(U,V),Object.defineProperty(U.prototype,"rectangle",{get:function(){return S.GeometryUtils.createRectagle(this.getRenderPoints(!0))},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"skippedRenderPoints",{get:function(){return this.renderPoints?this.renderPoints.filter(function(K){return K.skipped}):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"shouldChangeRenderPoints",{get:function(){return void 0!==this.renderPoints&&void 0!==this.routingStrategy},enumerable:!1,configurable:!0}),U.prototype.assign=function(K){V.prototype.assign.call(this,K),K.beginItem=this.beginItem,K.beginConnectionPointIndex=this.beginConnectionPointIndex,K.endItem=this.endItem,K.endConnectionPointIndex=this.endConnectionPointIndex,K.properties=this.properties.clone(),K.texts=this.texts.clone(),void 0!==this.routingStrategy&&(K.routingStrategy=this.routingStrategy.clone()),void 0!==this.renderPoints&&(K.renderPoints=this.renderPoints.map(function(Y){return Y.clone()})),void 0!==this.renderPointsWithoutSkipped&&(K.renderPointsWithoutSkipped=this.renderPointsWithoutSkipped.map(function(Y){return Y.clone()})),void 0!==this.actualRoutingMode&&(K.actualRoutingMode=this.actualRoutingMode),void 0!==this.lockCreateRenderPoints&&(K.lockCreateRenderPoints=this.lockCreateRenderPoints),void 0!==this.shouldInvalidateRenderPoints&&(K.shouldInvalidateRenderPoints=this.shouldInvalidateRenderPoints)},U.prototype.clone=function(){var K=new U(this.points);return this.assign(K),K},U.prototype.getTextCount=function(){return this.texts.count()},U.prototype.getText=function(K){void 0===K&&(K=l.CONNECTOR_DEFAULT_TEXT_POSITION);var Y=this.texts.get(K);return Y?Y.value:""},U.prototype.setText=function(K,Y){void 0===Y&&(Y=l.CONNECTOR_DEFAULT_TEXT_POSITION),K&&""!==K?this.texts.set(Y,new B.ConnectorText(Y,K)):this.texts.remove(Y)},U.prototype.getTextPoint=function(K){var Y=this.getRenderPoints();return S.GeometryUtils.getPathPointByPosition(Y,K)[0]},U.prototype.getTextPositionByPoint=function(K){var Y=this.getRenderPoints(),J=S.GeometryUtils.getPathLength(Y),j=S.GeometryUtils.getPathPositionByPoint(Y,K),ee=f.UnitConverter.pointsToTwips(parseInt(this.styleText["font-size"]));return ee>j*J?ee/J:ee>J-j*J?(J-ee)/J:j},U.prototype.getTextRectangle=function(K){return a.Rectangle.fromGeometry(this.getTextPoint(K),new s.Size(0,0))},U.prototype.changeRoutingStrategy=function(K){this.routingStrategy=K,this.invalidateRenderPoints()},U.prototype.clearRoutingStrategy=function(){delete this.routingStrategy,delete this.renderPoints,delete this.renderPointsWithoutSkipped,delete this.lockCreateRenderPoints,delete this.actualRoutingMode,delete this.shouldInvalidateRenderPoints,this.invalidateRenderPoints()},U.prototype.getCustomRenderPoints=function(K){void 0===K&&(K=!1);var Y=this.getRenderPoints(K),J=[];return Y.forEach(function(j,ee){ee>0&&ee<Y.length-1&&J.push(j)}),J},U.prototype.getRenderPoints=function(K){if(void 0===K&&(K=!1),void 0===this.shouldInvalidateRenderPoints||this.shouldInvalidateRenderPoints)if(this.shouldInvalidateRenderPoints=!1,this.routingStrategy){if(!this.lockCreateRenderPoints&&(this.changeRenderPoints(new k.ConnectorPointsOrthogonalCalculator(this).getPoints()),this.actualRoutingMode!==E.ConnectorRoutingMode.None&&this.points&&this.renderPoints)&&!this.points[0].equals(this.points[this.points.length-1])){var j=this.routingStrategy.createRenderPoints(this.points,this.renderPoints,this.beginItem,this.endItem,this.beginConnectionPointIndex,this.endConnectionPointIndex,w.ModelUtils.getConnectorContainer(this));j?(this.changeRenderPoints(j),this.actualRoutingMode=E.ConnectorRoutingMode.AllShapesOnly):this.actualRoutingMode=E.ConnectorRoutingMode.None}}else this.changeRenderPoints(this.getCalculator().getPoints());return K?this.renderPoints:this.renderPointsWithoutSkipped},U.prototype.tryCreateRenderPointsContext=function(K){return K||this.shouldChangeRenderPoints?new W.ConnectorRenderPointsContext(this.renderPoints.map(function(Y){return Y.clone()}),this.lockCreateRenderPoints,this.actualRoutingMode):void 0},U.prototype.updatePointsOnPageResize=function(K,Y){this.points=this.points.map(function(J){return J.clone().offset(K,Y)}),this.renderPoints&&this.changeRenderPoints(this.renderPoints.map(function(J){var j=J.clone().offset(K,Y);return j.pointIndex=J.pointIndex,j.skipped=J.skipped,j}))},U.prototype.addPoint=function(K,Y){this.points.splice(K,0,Y)},U.prototype.deletePoint=function(K){this.points.splice(K,1)},U.prototype.movePoint=function(K,Y){this.points[K]=Y},U.prototype.onAddPoint=function(K,Y){this.shouldChangeRenderPoints?this.replaceRenderPointsCore(this.routingStrategy.onAddPoint(this.points,K,Y,this.renderPoints),!0,E.ConnectorRoutingMode.AllShapesOnly):this.invalidateRenderPoints()},U.prototype.onDeletePoint=function(K){this.shouldChangeRenderPoints?this.replaceRenderPointsCore(this.routingStrategy.onDeletePoint(this.points,K,this.renderPoints),this.points.length>2,E.ConnectorRoutingMode.AllShapesOnly):this.invalidateRenderPoints()},U.prototype.onMovePoint=function(K,Y){this.shouldChangeRenderPoints?(0!==K&&K!==this.points.length-1||(this.lockCreateRenderPoints=!1),this.replaceRenderPointsCore(this.routingStrategy.onMovePoint(this.points,K,Y,this.renderPoints),this.lockCreateRenderPoints,E.ConnectorRoutingMode.AllShapesOnly)):this.invalidateRenderPoints()},U.prototype.onMovePoints=function(K,Y,J,j){this.shouldChangeRenderPoints?(0!==K&&J!==this.points.length-1||(this.lockCreateRenderPoints=!1),this.replaceRenderPointsCore(this.routingStrategy.onMovePoints(this.points,K,Y,J,j,this.renderPoints),this.lockCreateRenderPoints,E.ConnectorRoutingMode.AllShapesOnly)):this.invalidateRenderPoints()},U.prototype.replaceRenderPoints=function(K){void 0!==K?this.replaceRenderPointsCore(K.renderPoints,K.lockCreateRenderPoints,K.actualRoutingMode):this.invalidateRenderPoints()},U.prototype.clearRenderPoints=function(){this.changeRenderPoints(void 0),this.lockCreateRenderPoints=!1,this.actualRoutingMode=void 0,this.invalidateRenderPoints()},U.prototype.replaceRenderPointsCore=function(K,Y,J){this.changeRenderPoints(K),this.lockCreateRenderPoints=Y,this.actualRoutingMode=J,this.invalidateRenderPoints()},U.prototype.changeRenderPoints=function(K){this.renderPoints=K,this.renderPointsWithoutSkipped=K?this.renderPoints.filter(function(Y){return!Y.skipped}):void 0},U.prototype.getCalculator=function(){return this.properties.lineOption===P.ConnectorLineOption.Straight?new T.ConnectorPointsCalculator(this):new k.ConnectorPointsOrthogonalCalculator(this)},U.prototype.invalidateRenderPoints=function(){this.shouldInvalidateRenderPoints=!0},U.prototype.createPrimitives=function(){var K=[],Y=this.getRenderPoints(),J=new x.PathPrimitive(Y.map(function(j,ee){return 0===ee?new x.PathPrimitiveMoveToCommand(j.x,j.y):new x.PathPrimitiveLineToCommand(j.x,j.y)}),this.style);return K.push(J),(K=K.concat(this.createLineEndingPrimitives(Y,J))).concat(this.createTextPrimitives())},U.prototype.createLineEndingPrimitives=function(K,Y){var J=[];return K.length>1&&[{strategy:this.createLineEndingStrategy(this.properties.startLineEnding),point1:K[0],point2:K[1]},{strategy:this.createLineEndingStrategy(this.properties.endLineEnding),point1:K[K.length-1],point2:K[K.length-2]}].forEach(function(j){var ee=j.strategy;if(ee.hasCommands()){var G=Y;ee.needCreateSeparatePrimitive()&&J.push(G=ee.createPrimitive()),G.commands=G.commands.concat(ee.createCommands(j.point1,j.point2))}}),J},U.prototype.createLineEndingStrategy=function(K){switch(K){case P.ConnectorLineEnding.None:return new R.ConnectorLineEndingNoneStrategy(this.style);case P.ConnectorLineEnding.Arrow:return new R.ConnectorLineEndingArrowStrategy(this.style);case P.ConnectorLineEnding.OutlinedTriangle:return new R.ConnectorLineEndingOutlinedTriangleStrategy(this.style);case P.ConnectorLineEnding.FilledTriangle:return new R.ConnectorLineEndingFilledTriangleStrategy(this.style);default:return new R.ConnectorLineEndingStrategy(this.style)}},U.prototype.createSelectorPrimitives=function(){var K=[],Y=this.getRenderPoints();return K.push(new x.PathPrimitive(Y.map(function(J,j){return 0===j?new x.PathPrimitiveMoveToCommand(J.x,J.y):new x.PathPrimitiveLineToCommand(J.x,J.y)}),null,"selector")),K},U.prototype.createTextPrimitives=function(){var K=this;if(!this.enableText)return[];var Y=[];return this.texts.forEach(function(J){var j=K.getText(J.position);if(j&&""!==j){var ee=K.getTextPoint(J.position);Y=Y.concat([new b.TextPrimitive(ee.x,ee.y,j,g.TextOwner.Connector,void 0,void 0,void 0,K.styleText,!0,null,u.PAGE_BG_TEXTFLOOR_FILTER_ID,void 0,function(G){y.RenderUtils.setElementEventData(G,h.MouseEventElementType.ConnectorText,K.key,J.position)})])}}),Y},U.prototype.getExtremeItem=function(K){return K===C.Begin?this.beginItem:K===C.End?this.endItem:null},U.prototype.getExtremeConnectionPointIndex=function(K){return K===C.Begin?this.beginConnectionPointIndex:K===C.End?this.endConnectionPointIndex:-1},U.prototype.getMinX=function(){return this.getRenderPoints().map(function(K){return K.x}).reduce(function(K,Y){return Math.min(K,Y)},Number.MAX_VALUE)},U.prototype.getMinY=function(){return this.getRenderPoints().map(function(K){return K.y}).reduce(function(K,Y){return Math.min(K,Y)},Number.MAX_VALUE)},U.prototype.getConnectionPoints=function(){return[]},U.prototype.getConnectionPointSide=function(K,Y){return O.ConnectionPointSide.Undefined},U.prototype.getSegments=function(){var K=[],Y=this.getRenderPoints();return Y.forEach(function(J,j){j>0&&K.push(new p.Segment(Y[j-1],J))}),K},U.prototype.intersectedByRect=function(K){return this.getSegments().some(function(Y){return Y.isIntersectedByRect(K)})},U.prototype.toNative=function(K){var Y=new d.NativeConnector(this.key,this.dataKey);return Y.fromKey=this.beginItem&&this.beginItem.dataKey,Y.toKey=this.endItem&&this.endItem.dataKey,Y.texts=this.texts.map(function(J){return J}).sort(function(J,j){return J.position-j.position}).map(function(J){return J.value}),Y.fromId=this.beginItem&&this.beginItem.key,Y.fromPointIndex=this.beginConnectionPointIndex,Y.toId=this.endItem&&this.endItem.key,Y.toPointIndex=this.endConnectionPointIndex,Y.points=this.points.map(function(J){return J.clone()}),Y.applyUnits(K),Y},U.minOffset=f.UnitConverter.pixelsToTwips(24),U.minTextHeight=f.UnitConverter.pixelsToTwips(12),U}(O.DiagramItem);l.Connector=N},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ShapeDescription=l.ShapeTextPadding=l.ShapeDefaultSize=l.ShapeMinDimension=l.ShapeDefaultDimension=void 0;var c=o(12),I=o(2),C=o(36),f=o(43),a=o(21),p=o(63),s=o(3),u=o(45),d=o(9);l.ShapeDefaultDimension=1440,l.ShapeMinDimension=360,l.ShapeDefaultSize=new I.Size(l.ShapeDefaultDimension,l.ShapeDefaultDimension),l.ShapeTextPadding=c.UnitConverter.pixelsToTwips(10);var h=function(){function g(x,b){void 0===x&&(x=l.ShapeDefaultSize.clone()),this.defaultSize=x,this.hasDefaultText=b,this.onChanged=new s.EventDispatcher,this.connectionPoints=this.createConnectionPoints()}return Object.defineProperty(g.prototype,"enableText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"allowEditText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"enableImage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"allowEditImage",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"hasTemplate",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"enableChildren",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"minWidth",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"minHeight",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"maxWidth",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"maxHeight",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"toolboxSize",{get:function(){return this.defaultSize},enumerable:!1,configurable:!0}),g.prototype.getTitle=function(){return C.DiagramLocalizationService.shapeTexts[this.key]},g.prototype.getDefaultText=function(){return this.hasDefaultText?C.DiagramLocalizationService.shapeTexts[this.key]:""},g.prototype.getDefaultImageUrl=function(){return""},g.prototype.getConnectionPoints=function(){return this.connectionPoints},g.prototype.createConnectionPoints=function(){return[new u.ConnectionPoint(.5,0,d.ConnectionPointSide.North),new u.ConnectionPoint(1,.5,d.ConnectionPointSide.East),new u.ConnectionPoint(.5,1,d.ConnectionPointSide.South),new u.ConnectionPoint(0,.5,d.ConnectionPointSide.West)]},g.prototype.processConnectionPoint=function(x,b){},g.prototype.getConnectionPointIndexForItem=function(x,b){return b},g.prototype.getConnectionPointIndexForSide=function(x){return x},g.getConnectionPointSideByGeometry=function(x){return x.x>=x.y&&(x.x>0||x.y>0)?x.x<.5||1-x.x>=x.y?d.ConnectionPointSide.North:d.ConnectionPointSide.East:x.x>.5||1-x.x<=x.y?d.ConnectionPointSide.South:d.ConnectionPointSide.West},g.prototype.createParameters=function(x){},g.prototype.normalizeParameters=function(x,b){},g.prototype.modifyParameters=function(x,b,y,E){throw Error("Not implemented")},g.prototype.changeParameterValue=function(x,b,y){var E=x.get(b);E.value=y(E)},g.prototype.getParameterPoints=function(x){return[]},g.prototype.getExpandedSize=function(x){return x.size},g.prototype.getCollapsedSize=function(x){return x.size},g.prototype.getToolboxHeightToWidthRatio=function(x,b){return b/x},g.prototype.allowResizeHorizontally=function(x){return!0},g.prototype.allowResizeVertically=function(x){return!0},g.prototype.createPrimitives=function(x,b){var y=[];return y=y.concat(this.createShapePrimitives(x,b)),this.enableImage&&(y=y.concat(this.createImagePrimitives(x,b))),this.enableText&&(y=y.concat(this.createTextPrimitives(x,b))),y},g.prototype.createImagePrimitives=function(x,b){return[]},g.prototype.createTextPrimitives=function(x,b){if(void 0===x.text||""===x.text)return[];var y=this.getTextRectangle(x);return[new p.TextPrimitive(y.x,y.y,x.text,f.TextOwner.Shape,y.width,y.height,g.textSpacing,x.styleText,!1,this.getTextClipPathId(b),void 0,this.getTextAngle())]},g.prototype.getTextClipPathId=function(x){},g.prototype.getTextAngle=function(){return p.TextAngle.Angle0deg},g.prototype.getClientRectangle=function(x){return x.rectangle},g.prototype.getTextEditRectangle=function(x){return this.getTextRectangle(x)},g.prototype.createSelectorPrimitives=function(x){return[new a.RectanglePrimitive(x.position.x,x.position.y,x.size.width,x.size.height,null,"selector")]},g.prototype.raiseShapeDescriptionChanged=function(x){this.onChanged.raise1(function(b){return b.notifyShapeDescriptionChanged(x)})},g.textSpacing=c.UnitConverter.pixelsToTwips(2),g}();l.ShapeDescription=h},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.CompositionHistoryItem=l.HistoryItem=void 0;var C=function(){function a(){this.uniqueId=-1}return a.prototype.changeModified=function(){return!0},a.prototype.getName=function(){return this.constructor.name},a}();l.HistoryItem=C;var f=function(a){function p(){var s=null!==a&&a.apply(this,arguments)||this;return s.historyItems=[],s.dataSyncItems=[],s}return I(p,a),p.prototype.changeModified=function(){for(var s,u=0;s=this.historyItems[u];u++)if(s.changeModified())return!0;return!1},p.prototype.redo=function(s){for(var u,d=0;u=this.historyItems[d];d++)u.redo(s)},p.prototype.undo=function(s){for(var u,d=this.dataSyncItems.length-1;u=this.dataSyncItems[d];d--)u.undo(s);for(this.dataSyncItems=[],d=this.historyItems.length-1;u=this.historyItems[d];d--)u.undo(s)},p.prototype.add=function(s){if(null==s)throw new Error("cannot be null");this.historyItems.push(s)},p}(C);l.CompositionHistoryItem=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DiagramItem=l.DEFAULT_ZINDEX=l.ConnectionPointSide=void 0;var c,s,I=o(13),C=o(35),f=o(3),a=o(26);(s=c=l.ConnectionPointSide||(l.ConnectionPointSide={}))[s.Undefined=-1]="Undefined",s[s.North=0]="North",s[s.East=1]="East",s[s.South=2]="South",s[s.West=3]="West",l.DEFAULT_ZINDEX=0;var p=function(){function s(){this.key=void 0,this.dataKey=void 0,this.customData=void 0,this.attachedConnectors=[],this.zIndex=l.DEFAULT_ZINDEX,this.locked=!1,this.container=void 0,this.style=new a.Style,this.styleText=new a.TextStyle}return s.prototype.assign=function(u){u.key=this.key,u.dataKey=this.dataKey,u.customData=f.ObjectUtils.cloneObject(this.customData),u.locked=this.locked,u.attachedConnectors=this.attachedConnectors.slice(),u.style=this.style.clone(),u.styleText=this.styleText.clone(),u.zIndex=this.zIndex,u.container=this.container},s.prototype.getConnectionPointPosition=function(u,d){return this.getConnectionPoint(u,d).toPoint()},s.prototype.getConnectionPoint=function(u,d){u<0&&d&&(u=this.getNearestConnectionPoint(d));var h=this.getConnectionPoints();return h[u]||h[0]},s.prototype.getNearestConnectionPoint=function(u){var d,h=Number.MAX_VALUE;return this.getConnectionPoints().forEach(function(g,x){var b=C.Metrics.euclideanDistance(g,u);b<h&&(h=b,d=x)}),d},s.prototype.getConnectionPointIndex=function(u){var d=this.getConnectionPoints();return d.reduce(function(h,g,x){return u===c.North&&g.y<d[h].y||u===c.South&&g.y>d[h].y||u===c.West&&g.x<d[h].x||u===c.East&&g.x>d[h].x?x:h},0)},s.prototype.getConnectionPointSideByIndex=function(u,d){var h=this.getConnectionPoint(u,d);return this.getConnectionPointSide(h,d)},s.prototype.getConnectionPointIndexForSide=function(u){return u},Object.defineProperty(s.prototype,"enableText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"allowEditText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hasTemplate",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"enableChildren",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isLocked",{get:function(){return this.locked||this.container&&this.container.isLocked},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"allowResizeHorizontally",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"allowResizeVertically",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"strokeWidth",{get:function(){return this.style.strokeWidth},enumerable:!1,configurable:!0}),s.prototype.intersectedByRect=function(u){return I.Rectangle.areIntersected(this.rectangle,u)},s}();l.DiagramItem=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.SimpleCommandBase=void 0;var C=o(197),f=o(198),a=o(4),p=o(36),s=function(u){function d(){return null!==u&&u.apply(this,arguments)||this}return I(d,u),d.prototype.getState=function(){return new f.SimpleCommandState(this.isEnabled(),this.getValue(),this.getDefaultValue(),this.getItems(),this.isVisible())},d.prototype.isVisible=function(){return!0},d.prototype.isEnabled=function(){return!this.control.settings.readOnly||this.isEnabledInReadOnlyMode()},d.prototype.isEnabledInReadOnlyMode=function(){return!1},d.prototype.getValue=function(){},d.prototype.getDefaultValue=function(){},d.prototype.getItems=function(){},d.prototype.getModelUnit=function(h){return a.ModelUtils.getlUnitValue(this.control.model.units,h)},d.prototype.getModelUnitText=function(h){return a.ModelUtils.getUnitText(this.control.model.units,p.DiagramLocalizationService.unitItems,p.DiagramLocalizationService.formatUnit,h)},d.prototype.getModelUnitTwipsValue=function(h){return a.ModelUtils.getTwipsValue(this.control.model.units,h)},d.prototype.getViewUnit=function(h){return a.ModelUtils.getlUnitValue(this.control.settings.viewUnits,h)},d.prototype.getViewUnitText=function(h){return a.ModelUtils.getUnitText(this.control.settings.viewUnits,p.DiagramLocalizationService.unitItems,p.DiagramLocalizationService.formatUnit,h)},d.prototype.getViewUnitTwipsValue=function(h){return a.ModelUtils.getTwipsValue(this.control.settings.viewUnits,h)},d}(C.CommandBase);l.SimpleCommandBase=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(l,"__esModule",{value:!0}),l.DiagramClipboardEvent=l.DiagramKeyboardEvent=l.DiagramContextMenuEvent=l.DiagramWheelEvent=l.DiagramMouseEvent=l.DiagramMouseEventBase=l.DiagramMouseEventTouch=l.DiagramFocusEvent=l.DiagramEvent=l.ResizeEventSource=l.MouseEventSource=l.MouseEventElementType=l.MouseButton=void 0;var y,C=o(25);(y=l.MouseButton||(l.MouseButton={}))[y.None=0]="None",y[y.Left=1]="Left",y[y.Right=2]="Right",y[y.Middle=4]="Middle",function(y){y[y.Undefined=0]="Undefined",y[y.Background=1]="Background",y[y.Document=2]="Document",y[y.Connector=3]="Connector",y[y.ConnectorPoint=4]="ConnectorPoint",y[y.ConnectorSide=5]="ConnectorSide",y[y.ConnectorOrthogonalSide=6]="ConnectorOrthogonalSide",y[y.ConnectorText=7]="ConnectorText",y[y.Shape=8]="Shape",y[y.ShapeResizeBox=9]="ShapeResizeBox",y[y.ShapeParameterBox=10]="ShapeParameterBox",y[y.SelectionRect=11]="SelectionRect",y[y.ShapeConnectionPoint=12]="ShapeConnectionPoint",y[y.ShapeExpandButton=13]="ShapeExpandButton"}(l.MouseEventElementType||(l.MouseEventElementType={}));l.MouseEventSource=function(y,E,S){this.type=y,this.key=E,this.value=S},function(y){y[y.Undefined=0]="Undefined",y[y.ResizeBox_NW=1]="ResizeBox_NW",y[y.ResizeBox_NE=2]="ResizeBox_NE",y[y.ResizeBox_SE=3]="ResizeBox_SE",y[y.ResizeBox_SW=4]="ResizeBox_SW",y[y.ResizeBox_N=5]="ResizeBox_N",y[y.ResizeBox_E=6]="ResizeBox_E",y[y.ResizeBox_S=7]="ResizeBox_S",y[y.ResizeBox_W=8]="ResizeBox_W"}(l.ResizeEventSource||(l.ResizeEventSource={}));var a=function(y){this.modifiers=y};l.DiagramEvent=a;var p=function(y){function E(S){var O=y.call(this,C.ModifierKey.None)||this;return O.inputText=S,O}return I(E,y),E}(a);l.DiagramFocusEvent=p;l.DiagramMouseEventTouch=function(y,E){this.offsetPoint=y,this.modelPoint=E};var u=function(y){function E(S,O,w,T){var k=y.call(this,S)||this;return k.offsetPoint=O,k.modelPoint=w,k.source=T,k}return I(E,y),E}(a);l.DiagramMouseEventBase=u;var d=function(y){function E(S,O,w,T,k,R,P){void 0===R&&(R=[]);var B=y.call(this,S,w,T,k)||this;return B.button=O,B.touches=R,B.isTouchMode=P,B.scrollX=0,B.scrollY=0,B}return I(E,y),E}(u);l.DiagramMouseEvent=d;var h=function(y){function E(S,O,w,T,k,R){var P=y.call(this,S,T,k,R)||this;return P.deltaX=O,P.deltaY=w,P}return I(E,y),E}(u);l.DiagramWheelEvent=h;var g=function(y){function E(S,O,w){var T=y.call(this,S)||this;return T.eventPoint=O,T.modelPoint=w,T}return I(E,y),E}(a);l.DiagramContextMenuEvent=g;var x=function(y){function E(S,O,w){var T=y.call(this,S)||this;return T.keyCode=O,T.inputText=w,T}return I(E,y),E.prototype.getShortcutCode=function(){return this.modifiers|this.keyCode},E}(a);l.DiagramKeyboardEvent=x;var b=function(y){function E(S){var O=y.call(this,C.ModifierKey.None)||this;return O.clipboardData=S,O}return I(E,y),E}(a);l.DiagramClipboardEvent=b},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=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,f){return Math.round(I.pixelsToTwipsFCustomDpi(C,f))},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,f){return 1440*C/f},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}();l.UnitConverter=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c,d,I=o(163),C=o(164),f=o(106),a=o(0),p=o(2),s=function(){function d(h,g,x,b){this.x=h,this.y=g,this.width=x,this.height=b}return Object.defineProperty(d.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"center",{get:function(){return d.center(this)},enumerable:!0,configurable:!0}),d.prototype.createRectangle=function(){return new d(this.x,this.y,this.width,this.height)},d.prototype.createSize=function(){return new p.Size(this.width,this.height)},d.prototype.createPosition=function(){return new a.Point(this.x,this.y)},d.prototype.createVerticalInterval=function(){return new f.FixedInterval(this.y,this.height)},d.prototype.createHorizontalInterval=function(){return new f.FixedInterval(this.x,this.width)},d.fromGeometry=function(h,g){return new d(h.x,h.y,g.width,g.height)},d.fromPoints=function(h,g){return new d(Math.min(h.x,g.x),Math.min(h.y,g.y),Math.abs(h.x-g.x),Math.abs(h.y-g.y))},d.fromPositions=function(h,g,x,b){return new d(Math.min(h,x),Math.min(g,b),Math.abs(x-h),Math.abs(b-g))},d.fromCenter=function(h,g){return new d(h.x-g,h.y-g,2*g,2*g)},d.prototype.isCollapsed=function(){return 0===this.width||0===this.height},d.prototype.isEmpty=function(){return 0===this.x&&0===this.y&&0===this.width&&0===this.height},d.prototype.toString=function(){return JSON.stringify(this)},d.prototype.setPosition=function(h){return this.x=h.x,this.y=h.y,this},d.prototype.setSize=function(h){return this.width=h.width,this.height=h.height,this},d.prototype.setGeomerty=function(h){return this.x=h.x,this.y=h.y,this.width=h.width,this.height=h.height,this},d.prototype.moveRectangle=function(h,g){return this.x+=h,this.y+=g,this},d.prototype.moveRectangleByPoint=function(h){return this.x+=h.x,this.y+=h.y,this},d.prototype.resize=function(h,g){return this.width+=h,this.height+=g,this},d.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},d.prototype.multiply=function(h,g){return this.x*=h,this.y*=g,this.width*=h,this.height*=g,this},d.prototype.equals=function(h){return d.equals(this,h)},d.prototype.clone=function(){var h=new d(0,0,0,0);return h.copyFrom(this),h},d.prototype.copyFrom=function(h){this.x=h.x,this.y=h.y,this.width=h.width,this.height=h.height},d.prototype.containsPoint=function(h){return d.containsPoint(this,h)},d.prototype.containsRectangle=function(h){return this.x<=h.x&&this.right>=h.right&&this.y<=h.y&&this.bottom>=h.bottom},d.prototype.inflate=function(h,g){return void 0===g&&(g=h),this.x-=h,this.y-=g,this.width+=2*h,this.height+=2*g,this},d.prototype.applyOffsetsInside=function(h){return this.x+=h.left,this.y+=h.top,this.width-=h.left+h.right,this.height-=h.top+h.bottom,this},d.prototype.applyNormalizedOffsetsInside=function(h){var g=Math.max(0,h.left),x=g+Math.max(0,h.right);0!==x&&(x<=this.width?(this.x+=g,this.width-=x):(this.x+=this.width*(g/x),this.width=0));var b=Math.max(0,h.top),y=b+Math.max(0,h.bottom);return 0!==y&&(y<=this.height?(this.y+=b,this.height-=y):(this.y+=this.height*(b/y),this.height=0)),this},d.prototype.applyOffsetsOutside=function(h){return this.x-=h.left,this.y-=h.top,this.width+=h.left+h.right,this.height+=h.top+h.bottom,this},d.prototype.applyConverter=function(h){return this.x=h(this.x),this.y=h(this.y),this.width=h(this.width),this.height=h(this.height),this},d.getHorizIntersection=function(h,g){return C.IntervalAlgorithms.getIntersection(new f.FixedInterval(h.x,h.width),new f.FixedInterval(g.x,g.width))},d.getVertIntersection=function(h,g){return C.IntervalAlgorithms.getIntersection(new f.FixedInterval(h.y,h.height),new f.FixedInterval(g.y,g.height))},d.getIntersection=function(h,g){var x=C.IntervalAlgorithms.getIntersection(new f.FixedInterval(h.x,h.width),new f.FixedInterval(g.x,g.width));if(!x)return null;var b=C.IntervalAlgorithms.getIntersection(new f.FixedInterval(h.y,h.height),new f.FixedInterval(g.y,g.height));return b?new d(x.start,b.start,x.length,b.length):null},d.getHorNonCollapsedIntersection=function(h,g){var x=d.getHorizIntersection(h,g);return x&&!x.isCollapsed()?x:null},d.getVertNonCollapsedIntersection=function(h,g){var x=d.getVertIntersection(h,g);return x&&!x.isCollapsed()?x:null},d.getNonCollapsedIntersection=function(h,g){var x=d.getIntersection(h,g);return x&&!x.isCollapsed()?x:null},d.areIntersected=function(h,g){return!(h.x>g.x+g.width||g.x>h.x+h.width||h.y>g.y+g.height||g.y>h.y+h.height)},d.union=function(h,g){var x=Math.max(h.x+h.width,g.x+g.width),b=Math.max(h.y+h.height,g.y+g.height),y=Math.min(h.x,g.x),E=Math.min(h.y,g.y);return new d(y,E,x-y,b-E)},d.equals=function(h,g){return h.x===g.x&&h.y===g.y&&h.width===g.width&&h.height===g.height},d.center=function(h){return new a.Point(h.x+h.width/2,h.y+h.height/2)},d.containsPoint=function(h,g){return g.y>=h.y&&h.y+h.height>=g.y&&g.x>=h.x&&h.x+h.width>=g.x},d}();l.Rectangle=s,(d=c=l.HitTestDeviation||(l.HitTestDeviation={}))[d.None=0]="None",d[d.Top=1]="Top",d[d.Bottom=2]="Bottom",d[d.Left=4]="Left",d[d.Right=8]="Right";var u=function(){function d(h,g){this.initRectangle=h,this.initPoint=g,this.deviation=new I.Flag(c.None)}return d.prototype.calcDeviation=function(){return this.initPoint.x<this.initRectangle.x?this.deviation.set(c.Left,!0):this.initPoint.x>this.initRectangle.right&&this.deviation.set(c.Right,!0),this.initPoint.y<this.initRectangle.y?this.deviation.set(c.Top,!0):this.initPoint.y>this.initRectangle.bottom&&this.deviation.set(c.Bottom,!0),this},d.prototype.calcAdditionalParams=function(){return this.insidePoint=this.initPoint.clone(),this.offsetToInside=new a.Point(0,0),this.deviation.get(c.Left)?(this.insidePoint.x=this.initRectangle.x,this.offsetToInside.x=this.insidePoint.x-this.initPoint.x):this.deviation.get(c.Right)&&(this.insidePoint.x=this.initRectangle.right,this.offsetToInside.x=this.initPoint.x-this.insidePoint.x),this.deviation.get(c.Top)?(this.insidePoint.y=this.initRectangle.y,this.offsetToInside.y=this.insidePoint.y-this.initPoint.y):this.deviation.get(c.Bottom)&&(this.insidePoint.y=this.initRectangle.bottom,this.offsetToInside.y=this.initPoint.y-this.insidePoint.y),this},d}();l.RectangleDeviation=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(g,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(g,x)},function(g,x){function b(){this.constructor=g}c(g,x),g.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(l,"__esModule",{value:!0}),l.Shape=void 0;var C=o(13),f=o(7),a=o(37),p=o(9),s=o(45),u=o(51),d=o(84),h=function(g){function x(b,y,E){var S=g.call(this)||this;if(S.description=b,S.children=[],S.expanded=!0,S.expandedSize=void 0,!b)throw Error("Shape type is incorrect");return S.position=y.clone(),S.size=(E?b.toolboxSize:b.defaultSize).clone(),S.text=b.getDefaultText(),S.image=new u.ImageInfo(b.getDefaultImageUrl()),S.parameters=new a.ShapeParameters,b.createParameters(S.parameters),S}return I(x,g),x.prototype.assign=function(b){g.prototype.assign.call(this,b),b.size=this.size.clone(),b.text=this.text,b.image=this.image.clone(),b.parameters=this.parameters.clone(),b.children=this.children.slice(),b.expanded=this.expanded,this.expandedSize&&(b.expandedSize=this.expandedSize.clone())},x.prototype.clone=function(){var b=new x(this.description,this.position.clone());return this.assign(b),b},Object.defineProperty(x.prototype,"enableText",{get:function(){return this.description.enableText},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"allowEditText",{get:function(){return this.description.allowEditText},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"hasTemplate",{get:function(){return this.description.hasTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"enableChildren",{get:function(){return this.description.enableChildren},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"enableImage",{get:function(){return this.description.enableImage},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"allowEditImage",{get:function(){return this.description.allowEditImage},enumerable:!1,configurable:!0}),x.prototype.getMinWidth=function(b){return"number"==typeof this.description.minWidth?this.description.minWidth:"number"==typeof b?b:f.ShapeMinDimension},x.prototype.getMinHeight=function(b){return"number"==typeof this.description.minHeight?this.description.minHeight:"number"==typeof b?b:f.ShapeMinDimension},x.prototype.getMaxWidth=function(b){return"number"==typeof this.description.maxWidth?this.description.maxWidth:"number"==typeof b?b:void 0},x.prototype.getMaxHeight=function(b){return"number"==typeof this.description.maxHeight?this.description.maxHeight:"number"==typeof b?b:void 0},x.prototype.createPrimitives=function(){return this.description.createPrimitives(this)},x.prototype.createSelectorPrimitives=function(){return this.description.createSelectorPrimitives(this)},x.prototype.normalizeX=function(b){return Math.max(this.position.x,Math.min(b,this.position.x+this.size.width))},x.prototype.normalizeY=function(b){return Math.max(this.position.y,Math.min(b,this.position.y+this.size.height))},x.prototype.getConnectionPoints=function(){var b=this;return this.description.getConnectionPoints().map(function(y){var E=new s.ConnectionPoint(b.position.x+y.x*b.size.width,b.position.y+y.y*b.size.height,y.side);return b.description.processConnectionPoint(b,E),E})},x.prototype.getConnectionPointSide=function(b,y){return b.side!==p.ConnectionPointSide.Undefined?b.side:this.getConnectionPointSideByGeometry(b)},x.prototype.getConnectionPointSideByGeometry=function(b){var y=b.clone().offset(-this.position.x,-this.position.y).multiply(1/this.size.width,1/this.size.height);return f.ShapeDescription.getConnectionPointSideByGeometry(y)},x.prototype.getConnectionPointIndexForItem=function(b,y){return this.description.getConnectionPointIndexForItem(b,y)},x.prototype.getConnectionPointIndexForSide=function(b){return this.description.getConnectionPointIndexForSide(b)},x.prototype.toggleExpandedSize=function(){this.expanded?(this.size=this.getExpandedSize(),this.expandedSize=void 0):(this.expandedSize=this.size.clone(),this.size=this.getCollapsedSize())},x.prototype.getExpandedSize=function(){return this.description.getExpandedSize(this)},x.prototype.getCollapsedSize=function(){return this.description.getCollapsedSize(this)},x.prototype.getToolboxHeightToWidthRatio=function(){return this.description.getToolboxHeightToWidthRatio(this.size.width,this.size.height)},Object.defineProperty(x.prototype,"allowResizeHorizontally",{get:function(){return this.description.allowResizeHorizontally(this)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"allowResizeVertically",{get:function(){return this.description.allowResizeVertically(this)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"rectangle",{get:function(){return C.Rectangle.fromGeometry(this.position,this.size)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"clientRectangle",{get:function(){return this.description.getClientRectangle(this)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"textRectangle",{get:function(){return this.description.getTextRectangle(this)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"textEditRectangle",{get:function(){return this.description.getTextEditRectangle(this)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"textAngle",{get:function(){return this.description.getTextAngle()},enumerable:!1,configurable:!0}),x.prototype.toNative=function(b){var y=new d.NativeShape(this.key,this.dataKey);return y.type=this.description.key,y.text=this.text,y.position=this.position.clone(),y.size=this.size.clone(),y.attachedConnectorIds=this.attachedConnectors.map(function(E){return E.key}),y.applyUnits(b),y.containerId=this.container?this.container.key:null,y.containerChildItemIds=this.children.map(function(E){return E.key}),y.containerExpanded=this.expanded,y},x}(p.DiagramItem);l.Shape=h},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RenderHelper=l.svgNS=void 0;var c=o(61);l.svgNS="http://www.w3.org/2000/svg";var I=function(){function C(){}return C.createSvgElement=function(f,a){void 0===a&&(a=!1);var p=document.createElementNS(l.svgNS,"svg");return p.className.baseVal="dxdi-canvas"+(a?" export":""),f&&f.appendChild(p),p},C.createMainElement=function(f,a){void 0===a&&(a=!1);var p=document.createElement("div");return p.setAttribute("class","dxdi-control"+(a?" measurer":"")),c.Diagnostics.optimizeLayers&&(p.style.transform="translateZ(0)"),f&&f.appendChild(p),p},C.addEventListener=function(f,a,p){f.addEventListener(a,p)},C.removeEventListener=function(f,a,p){f.removeEventListener(a,p)},C}();l.RenderHelper=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DiagramModelOperation=l.ModelOperationSettings=void 0;var I,c=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}();l.ModelOperationSettings=c,(I=l.DiagramModelOperation||(l.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(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.raiseEvent=l.RenderUtils=void 0;var c=o(11),I=o(31),C=function(){function f(){}return f.updateSvgElementSize=function(a,p,s,u){a.style.width=p+"px",a.style.height=s+"px",a.setAttribute("viewBox","0 0 "+p+" "+s),u&&(a.setAttribute("width",p.toString()),a.setAttribute("height",s.toString()))},f.removeElement=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},f.removeContent=function(a){for(;a&&a.firstChild;)a.removeChild(a.firstChild)},f.setElementEventData=function(a,p,s,u){p!==c.MouseEventElementType.Undefined&&(a.setAttribute("data-type",p.toString()),void 0!==s&&a.setAttribute("data-key",s.toString()),void 0!==u&&a.setAttribute("data-value",u.toString()))},f.getElementEventData=function(a){if(a.getAttribute&&a.getAttribute("data-type"))return new c.MouseEventSource(parseInt(a.getAttribute("data-type")),a.getAttribute("data-key"),a.getAttribute("data-value"));var p=a.getAttribute&&a.getAttribute("class");return"dxdi-page"===p||"dxdi-main"===p?new c.MouseEventSource(c.MouseEventElementType.Document):void 0},f.getHtmlElementStylePropertyName=function(a){switch(a){case"fill":return"color";case"text-anchor":return"text-align"}return a},f.getTextAnchorValue=function(a,p){if(void 0===p&&(p=!1),p){if("start"===a)return"end";if("end"===a)return"start"}return a},f.getStrokeDasharrayValue=function(a,p){if(p){var s=a&&a.toString();return(s?s.split(/[\s,]+/):[]).map(function(u){return parseInt(u)/2*p}).join(",")}return a},f.applyStyleToElement=function(a,p,s){var u=this;void 0===s&&(s=!1);var d=a.getDefaultInstance();a.forEach(function(h){var g=a[h],x=p instanceof HTMLElement?u.getHtmlElementStylePropertyName(h):h;if(void 0!==g&&""!==g&&g!==d[h]){switch(h){case"text-anchor":g=u.getTextAnchorValue(g,s);break;case"stroke-dasharray":g=u.getStrokeDasharrayValue(g,parseInt(a["stroke-width"]))}p.style.setProperty(x,g)}else p.style.setProperty(x,"")})},f.generateSvgElementId=function(a){return a+"_"+I.MathUtils.generateGuid()},f.getUrlPathById=function(a){return"url(#"+a+")"},f}();l.RenderUtils=C,l.raiseEvent=function(f,a,p){p(a),a.preventDefault&&f.preventDefault()}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=function(){function I(){}return I.IdentUserAgent=function(C,f){void 0===f&&(f=!1);var a=["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 s={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"},u="(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",d={Safari:"applewebkit(?:.*?(?:version/(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)(?:/|\\s*)?"+u,Mozilla:"mozilla(?:.*rv:"+u+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+u,Firefox:"firefox(?:/|\\s*)?"+u,Opera:"(?:opera|\\sopr)(?:/|\\s*)?"+u,Opera10:"opera.*\\s*version(?:/|\\s*)?"+u,IE:"msie\\s*"+u,Edge:"edge(?:/|\\s*)?"+u},h=null,g=-1,x=0;x<a.length;x++){var b=a[x],y=new RegExp(d[b],"i").exec(C);if(y&&y.index>=0){if("IE"===h&&g>=11&&"Safari"===b)continue;"Opera10"===(h=b)&&(h="Opera"),g=I.GetBrowserVersion(C,y,"trident(?:/|\\s*)?(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",I.getIECompatibleVersionString()),"Mozilla"===h&&g>=11&&(h="IE")}}h||(h="IE");var E=-1!==g;E||(g=p[h]);var S=null,O=Number.MAX_VALUE;for(var w in s)if(Object.prototype.hasOwnProperty.call(s,w)){var T="!"===w.substr(0,1),k=C.indexOf((T?w.substr(1):w).toLowerCase());k>=0&&(k<O||T)&&(O=T?0:k,S=s[w])}var R=C.toUpperCase().match("SM-[A-Z]"),P=R&&R.length>0;"WinPhone"===S&&g<9&&(g=Math.floor(I.getVersionFromTrident(C,"trident(?:/|\\s*)?"+u))),!f&&"IE"===h&&g>7&&document.documentMode<g&&(g=document.documentMode),"WinPhone"===S&&(g=Math.max(9,g)),S||(S="Win"),S!==s["cpu os"]||E||(g=4),I.fillUserAgentInfo(a,h,g,S,P)}catch{I.fillUserAgentInfo(a,"IE",p.IE,"Win")}}else I.fillUserAgentInfo(a,"IE",p.IE,"Win")},I.GetBrowserVersion=function(C,f,a,p){var s=I.getVersionFromMatches(f);if(p){var u=I.getVersionFromTrident(C,a);if("edge"===p||parseInt(p)===u)return u}return s},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,f,a,p,s){void 0===s&&(s=!1);for(var u=0;u<C.length;u++){var d=C[u];I[d]=d===f}I.Version=Math.floor(10*a)/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 h=I.IE&&I.MajorVersion>9&&I.WindowsPlatform&&I.UserAgent.toLowerCase().indexOf("touch")>=0;if(I.MSTouchUI=h||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,s&&(I.SamsungAndroidDevice=s),I.MSTouchUI){var g=I.UserAgent.toLowerCase().indexOf("arm;")>-1;I.VirtualKeyboardSupported=g||I.WindowsPhonePlatform}else I.VirtualKeyboardSupported=I.WebKitTouchUI;I.fillDocumentElementBrowserTypeClassNames(C)},I.indentPlatformMajorVersion=function(C){var f=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(C);f&&(I.PlaformMajorVersion=f[1])},I.getVersionFromMatches=function(C){var f=-1,a="";return C&&(C[1]&&(a+=C[1],C[2]&&(a+="."+C[2])),""!==a&&(f=parseFloat(a),isNaN(f)&&(f=-1))),f},I.getVersionFromTrident=function(C,f){var a=new RegExp(f,"i").exec(C);return I.getVersionFromMatches(a)+4},I.fillDocumentElementBrowserTypeClassNames=function(C){for(var f="",a=C.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),p=0;p<a.length;p++){var s=a[p];I[s]&&(f+="dx"+s+" ")}f+="dxBrowserVersion-"+I.MajorVersion,typeof document<"u"&&document&&document.documentElement&&(""!==document.documentElement.className&&(f=" "+f),document.documentElement.className+=f,I.Info=f)},I.getUserAgent=function(){return I.hasNavigator()&&navigator.userAgent?navigator.userAgent.toLowerCase():""},I.UserAgent=I.getUserAgent(),I._foo=I.IdentUserAgent(I.UserAgent),I}();l.Browser=c},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.RectangleShapeDescription=void 0;var C=o(7),f=o(2),a=o(21),p=o(1),s=function(u){function d(h,g){return void 0===h&&(h=new f.Size(C.ShapeDefaultDimension,.75*C.ShapeDefaultDimension)),u.call(this,h,g)||this}return I(d,u),Object.defineProperty(d.prototype,"key",{get:function(){return p.ShapeTypes.Rectangle},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d.prototype.createShapePrimitives=function(h){var g=h.rectangle;return[new a.RectanglePrimitive(g.x,g.y,g.width,g.height,h.style)]},d.prototype.getTextRectangle=function(h){return h.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},d.prototype.getSizeByText=function(h,g){return h.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},d}(C.ShapeDescription);l.RectangleShapeDescription=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.Alignment=l.DataLayoutOrientation=l.LogicalDirectionKind=l.TreeLayoutSettings=l.LayoutSettings=void 0;var C=o(6),f=function(d){this.orientation=p.Vertical,this.direction=a.Forward;var h=d&&2*d>C.Connector.minOffset?2*d:C.Connector.minOffset;this.columnSpacing=h,this.layerSpacing=2*h,this.containerPadding=2*h,this.componentSpacing=2*h};l.LayoutSettings=f;var a,p,s,d,u=function(d){function h(g){var x=d.call(this,g)||this;return x.alignment=s.Center,x.subTreeColumnSpacing=x.componentSpacing/2,x}return I(h,d),h}(f);l.TreeLayoutSettings=u,(d=a=l.LogicalDirectionKind||(l.LogicalDirectionKind={}))[d.Backward=0]="Backward",d[d.Forward=1]="Forward",function(d){d[d.Horizontal=0]="Horizontal",d[d.Vertical=1]="Vertical"}(p=l.DataLayoutOrientation||(l.DataLayoutOrientation={})),function(d){d[d.Left=0]="Left",d[d.Center=1]="Center"}(s=l.Alignment||(l.Alignment={}))},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.RectanglePrimitive=void 0;var C=o(15),f=function(a){function p(s,u,d,h,g,x,b,y){var E=a.call(this,g,x,b,y)||this;return E.x=s,E.y=u,E.width=d,E.height=h,E}return I(p,a),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"rect")},p.prototype.applyElementProperties=function(s,u){this.setUnitAttribute(s,"x",this.x),this.setUnitAttribute(s,"y",this.y),this.setUnitAttribute(s,"width",this.width),this.setUnitAttribute(s,"height",this.height),this.setPositionCorrectionAttribute(s),a.prototype.applyElementProperties.call(this,s,u)},p}(o(24).SvgPrimitive);l.RectanglePrimitive=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(49),I=function(){function C(){}return C.getAlpha=function(f){return f>>24&255},C.getRed=function(f){return f>>16&255},C.getGreen=function(f){return f>>8&255},C.getBlue=function(f){return 255&f},C.redPartToString=function(f){var a=C.getRed(f).toString(16);return a.length>1?a:"0"+a},C.greenPartToString=function(f){var a=C.getGreen(f).toString(16);return a.length>1?a:"0"+a},C.bluePartToString=function(f){var a=C.getBlue(f).toString(16);return a.length>1?a:"0"+a},C.fromArgbNumber=function(f,a,p,s){return f<<24|a<<16|p<<8|s},C.fromRgbaString=function(f,a){void 0===a&&(a=255);var p=f.replace(/ +/g,"").match(/(rgba?)|(\d+(\.\d+)?%?)|(\.\d+)/g);if(p&&p.length>3){for(var s=[],u=1,d=void 0;d=p[u];u++){var h=-1!==d.indexOf("%")?Math.round(2.55*parseFloat(d)):parseInt(d);if(h<0||h>255)return null;s.push(h)}if(0===f.indexOf("rgba")){if(isNaN(s[3])||s[3]<0||s[3]>1)return null;s[3]<=1&&(s[3]=Math.round(255*s[3]))}else if(s[3])return null;return(255&s[0])<<16|(255&s[1])<<8|255&s[2]|(255&(s.length>3?s[3]:a))<<24}return null},C.fromHashString=function(f,a){return void 0===a&&(a=255),C.isHashColorString(f)?("#"===f.charAt(0)&&(f=f.substr(1)),3===f.length&&(f=c.StringUtils.repeat(f.charAt(0),2)+c.StringUtils.repeat(f.charAt(1),2)+c.StringUtils.repeat(f.charAt(2),2)),parseInt(f,16)|a<<24):null},C.fromColorName=function(f,a){void 0===a&&(a=255);var p=C.colorNames[f.toLowerCase()];return p?C.fromHashString(p,a):null},C.fromString=function(f,a){void 0===a&&(a=255);var p=C.fromRgbaString(f,a);if(null!==p)return p;var s=C.fromHashString(f,a);return null!==s?s:C.fromColorName(f,a)},C.colorToHash=function(f){return"#"+C.redPartToString(f)+C.greenPartToString(f)+C.bluePartToString(f)},C.stringToHash=function(f){var a=this.fromString(f);return null!==a?this.colorToHash(a):null},C.isHashColorString=function(f){return/^#?([0-9a-f]{6})$/i.test(f)||/^#?([0-9a-f]{3})$/i.test(f)},C.isKnownColorName=function(f){return!!C.colorNames[f.toLowerCase()]},C.isGray=function(f){var a=C.getRed(f);return a===C.getGreen(f)&&a===C.getBlue(f)},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}();l.ColorUtils=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PermissionRequestEventArgs=l.RequestedEntity=void 0;var c=function(){function C(f){this.apiController=f}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}();l.RequestedEntity=c,l.PermissionRequestEventArgs=function(){this.allowed=!0,this.updateUI=!1}},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.SvgPrimitive=void 0;var C=o(17),f=function(a){function p(s,u,d,h){var g=a.call(this,s)||this;return g.className=u,g.clipPathId=d,g.onApplyProperties=h,g.children=[],g}return I(p,a),p.prototype.createElement=function(s){var u=this.createMainElement();return this.createChildElements(u),s(u),this.createCustomContent(u),u},p.prototype.createChildElements=function(s){for(var u=0;u<this.children.length;u++)this.children[u].createElement(function(d){return s.appendChild(d)})},p.prototype.applyElementProperties=function(s,u){this.applyElementStyleProperties(s),this.className&&s.setAttribute("class",this.className),"string"==typeof this.clipPathId&&(this.clipPathId?s.setAttribute("clip-path",C.RenderUtils.getUrlPathById(this.clipPathId)):s.removeAttribute("clip-path")),this.onApplyProperties&&this.onApplyProperties(s),this.applyChildrenProperties(s,u)},p.prototype.applyChildrenProperties=function(s,u){for(var d=0;d<this.children.length;d++)this.children[d].applyElementProperties(s.childNodes[d],u)},p.prototype.applyElementStyleProperties=function(s){this.applyElementStylePropertiesCore(s)},p.prototype.applyElementStylePropertiesCore=function(s,u){void 0===u&&(u=!1),this.style&&C.RenderUtils.applyStyleToElement(this.style,s,u)},p.prototype.createCustomContent=function(s){},p.prototype.destroyCustomContent=function(s){},p.prototype.dispose=function(){this.children&&this.children.forEach(function(s){return s.dispose()})},p}(o(109).PrimitiveObject);l.SvgPrimitive=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c,I,s,C=o(18),f=o(173),a=o(49),p=function(){function s(){}return s.getKeyModifiers=function(u){var d=0;return u.altKey&&(d|=c.Alt),u.ctrlKey&&(d|=c.Ctrl),u.shiftKey&&(d|=c.Shift),u.metaKey&&(d|=c.Meta),d},s.getShortcutCode=function(u,d,h,g,x){var b=u;return b|=d?c.Ctrl:0,b|=h?c.Shift:0,(b|=g?c.Alt:0)|(x?c.Meta:0)},s.getShortcutCodeByEvent=function(u){return s.getShortcutCode(s.getEventKeyCode(u),u.ctrlKey,u.shiftKey,u.altKey,!!C.Browser.MacOSPlatform&&u.metaKey)},s.getEventKeyCode=function(u){return C.Browser.NetscapeFamily||C.Browser.Opera?u.which:u.keyCode},s.parseShortcutString=function(u){if(!u)return 0;var d=!1,h=!1,g=!1,x=!1,b=null,y=u.toString().split("+");if(y.length>0)for(var E=0;E<y.length;E++){var S=a.StringUtils.trim(y[E].toUpperCase());switch(S){case"CONTROL":case"CONTROLKEY":case"CTRL":d=!0;break;case"SHIFT":case"SHIFTKEY":h=!0;break;case"ALT":g=!0;break;case"CMD":x=!0;break;case"F1":b=I.F1;break;case"F2":b=I.F2;break;case"F3":b=I.F3;break;case"F4":b=I.F4;break;case"F5":b=I.F5;break;case"F6":b=I.F6;break;case"F7":b=I.F7;break;case"F8":b=I.F8;break;case"F9":b=I.F9;break;case"F10":b=I.F10;break;case"F11":b=I.F11;break;case"F12":b=I.F12;break;case"RETURN":case"ENTER":b=I.Enter;break;case"HOME":b=I.Home;break;case"END":b=I.End;break;case"LEFT":b=I.Left;break;case"RIGHT":b=I.Right;break;case"UP":b=I.Up;break;case"DOWN":b=I.Down;break;case"PAGEUP":b=I.PageUp;break;case"PAGEDOWN":b=I.PageDown;break;case"SPACE":b=I.Space;break;case"TAB":b=I.Tab;break;case"BACKSPACE":case"BACK":b=I.Backspace;break;case"CONTEXT":b=I.ContextMenu;break;case"ESCAPE":case"ESC":b=I.Esc;break;case"DELETE":case"DEL":b=I.Delete;break;case"INSERT":case"INS":b=I.Insert;break;case"PLUS":b="+".charCodeAt(0);break;default:b=S.charCodeAt(0)}}else alert(f.EncodeUtils.decodeViaTextArea("Invalid shortcut"));return s.getShortcutCode(b,d,h,g,x)},s}();l.KeyUtils=p,(s=c=l.ModifierKey||(l.ModifierKey={}))[s.None=0]="None",s[s.Ctrl=65536]="Ctrl",s[s.Shift=262144]="Shift",s[s.Alt=1048576]="Alt",s[s.Meta=16777216]="Meta",function(s){s[s.Backspace=8]="Backspace",s[s.Tab=9]="Tab",s[s.Enter=13]="Enter",s[s.Pause=19]="Pause",s[s.CapsLock=20]="CapsLock",s[s.Esc=27]="Esc",s[s.Space=32]="Space",s[s.PageUp=33]="PageUp",s[s.PageDown=34]="PageDown",s[s.End=35]="End",s[s.Home=36]="Home",s[s.Left=37]="Left",s[s.Up=38]="Up",s[s.Right=39]="Right",s[s.Down=40]="Down",s[s.Insert=45]="Insert",s[s.Delete=46]="Delete",s[s.Key_0=48]="Key_0",s[s.Key_1=49]="Key_1",s[s.Key_2=50]="Key_2",s[s.Key_3=51]="Key_3",s[s.Key_4=52]="Key_4",s[s.Key_5=53]="Key_5",s[s.Key_6=54]="Key_6",s[s.Key_7=55]="Key_7",s[s.Key_8=56]="Key_8",s[s.Key_9=57]="Key_9",s[s.Key_a=65]="Key_a",s[s.Key_b=66]="Key_b",s[s.Key_c=67]="Key_c",s[s.Key_d=68]="Key_d",s[s.Key_e=69]="Key_e",s[s.Key_f=70]="Key_f",s[s.Key_g=71]="Key_g",s[s.Key_h=72]="Key_h",s[s.Key_i=73]="Key_i",s[s.Key_j=74]="Key_j",s[s.Key_k=75]="Key_k",s[s.Key_l=76]="Key_l",s[s.Key_m=77]="Key_m",s[s.Key_n=78]="Key_n",s[s.Key_o=79]="Key_o",s[s.Key_p=80]="Key_p",s[s.Key_q=81]="Key_q",s[s.Key_r=82]="Key_r",s[s.Key_s=83]="Key_s",s[s.Key_t=84]="Key_t",s[s.Key_u=85]="Key_u",s[s.Key_v=86]="Key_v",s[s.Key_w=87]="Key_w",s[s.Key_x=88]="Key_x",s[s.Key_y=89]="Key_y",s[s.Key_z=90]="Key_z",s[s.Windows=91]="Windows",s[s.ContextMenu=93]="ContextMenu",s[s.Numpad_0=96]="Numpad_0",s[s.Numpad_1=97]="Numpad_1",s[s.Numpad_2=98]="Numpad_2",s[s.Numpad_3=99]="Numpad_3",s[s.Numpad_4=100]="Numpad_4",s[s.Numpad_5=101]="Numpad_5",s[s.Numpad_6=102]="Numpad_6",s[s.Numpad_7=103]="Numpad_7",s[s.Numpad_8=104]="Numpad_8",s[s.Numpad_9=105]="Numpad_9",s[s.Multiply=106]="Multiply",s[s.Add=107]="Add",s[s.Subtract=109]="Subtract",s[s.Decimal=110]="Decimal",s[s.Divide=111]="Divide",s[s.F1=112]="F1",s[s.F2=113]="F2",s[s.F3=114]="F3",s[s.F4=115]="F4",s[s.F5=116]="F5",s[s.F6=117]="F6",s[s.F7=118]="F7",s[s.F8=119]="F8",s[s.F9=120]="F9",s[s.F10=121]="F10",s[s.F11=122]="F11",s[s.F12=123]="F12",s[s.NumLock=144]="NumLock",s[s.ScrollLock=145]="ScrollLock",s[s.Semicolon=186]="Semicolon",s[s.Equals=187]="Equals",s[s.Comma=188]="Comma",s[s.Dash=189]="Dash",s[s.Period=190]="Period",s[s.ForwardSlash=191]="ForwardSlash",s[s.GraveAccent=192]="GraveAccent",s[s.OpenBracket=219]="OpenBracket",s[s.BackSlash=220]="BackSlash",s[s.CloseBracket=221]="CloseBracket",s[s.SingleQuote=222]="SingleQuote"}(I=l.KeyCode||(l.KeyCode={}))},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(x,b){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var S in E)E.hasOwnProperty(S)&&(y[S]=E[S])})(x,b)},function(x,b){function y(){this.constructor=x}c(x,b),x.prototype=null===b?Object.create(b):(y.prototype=b.prototype,new y)});Object.defineProperty(l,"__esModule",{value:!0}),l.EmptyStyle=l.StrokeStyle=l.TextAlignment=l.TextStyle=l.Style=l.DEFAULT_STROKE_DASHARRAY=l.DEFAULT_STROKE_WIDTH=l.StyleBase=void 0;var C=o(22),f=o(110),a=o(12),p=function(){function x(){this.createDefaultProperties()}return x.prototype.clone=function(){var b=this,y=this.createInstance();return this.forEach(function(E){y[E]=b[E]}),y},x.prototype.forEach=function(b){for(var y in this)Object.prototype.hasOwnProperty.call(this,y)&&b(y)},Object.defineProperty(x.prototype,"strokeWidthPx",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"strokeWidth",{get:function(){return a.UnitConverter.pixelsToTwips(this.strokeWidthPx)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"strokeOffset",{get:function(){return.5},enumerable:!1,configurable:!0}),x.prototype.toHash=function(){var b=this.toObject();return b?Object.keys(b).map(function(y){return y+"|"+b[y]}).join(""):""},x.prototype.toObject=function(){var b=this,y={},E=!1,S=this.getDefaultInstance();return this.forEach(function(O){b[O]!==S[O]&&(y[O]=b[O],E=!0)}),E?y:null},x.prototype.fromObject=function(b){for(var y in b)if(Object.prototype.hasOwnProperty.call(b,y)){var E=f.isColorProperty(y)?C.ColorUtils.stringToHash(b[y]):b[y];this[y]=E}},x}();l.StyleBase=p,l.DEFAULT_STROKE_WIDTH=2,l.DEFAULT_STROKE_DASHARRAY="";var s=function(x){function b(){return null!==x&&x.apply(this,arguments)||this}return I(b,x),b.prototype.createInstance=function(){return new b},b.prototype.createDefaultProperties=function(){this.fill="#ffffff",this.stroke="#000000",this["stroke-width"]=l.DEFAULT_STROKE_WIDTH.toString(),this["stroke-dasharray"]=l.DEFAULT_STROKE_DASHARRAY},b.prototype.getDefaultInstance=function(){return b.defaultInstance},b.prototype.isDefaultStrokeDashArray=function(){return this["stroke-dasharray"]===l.DEFAULT_STROKE_DASHARRAY},b.prototype.resetStrokeDashArray=function(){this["stroke-dasharray"]=l.DEFAULT_STROKE_DASHARRAY},Object.defineProperty(b.prototype,"strokeWidthPx",{get:function(){return parseInt(this["stroke-width"])},enumerable:!1,configurable:!0}),b.defaultInstance=new b,b}(p);l.Style=s;var u,x,d=function(x){function b(){return null!==x&&x.apply(this,arguments)||this}return I(b,x),b.prototype.createInstance=function(){return new b},b.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"},b.prototype.getDefaultInstance=function(){return b.defaultInstance},b.prototype.getAlignment=function(){switch(this["text-anchor"]){case"left":return u.Left;case"right":return u.Right;default:return u.Center}},b.defaultInstance=new b,b}(p);l.TextStyle=d,(x=u=l.TextAlignment||(l.TextAlignment={}))[x.Left=0]="Left",x[x.Right=1]="Right",x[x.Center=2]="Center";var h=function(x){function b(y,E){var S=x.call(this)||this;return S._strokeWidthPx=y,S._strokeOffset=E,S}return I(b,x),b.prototype.createInstance=function(){return new b},b.prototype.createDefaultProperties=function(){},b.prototype.getDefaultInstance=function(){return d.defaultInstance},Object.defineProperty(b.prototype,"strokeWidthPx",{get:function(){return this._strokeWidthPx||0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"strokeOffset",{get:function(){return this._strokeOffset||0},enumerable:!1,configurable:!0}),b.default1pxInstance=new b(1,.5),b.default1pxNegativeOffsetInstance=new b(1,-.5),b.default2pxInstance=new b(2),b}(s);l.StrokeStyle=h;var g=function(x){function b(y){var E=x.call(this)||this;return y&&Object.keys(y).forEach(function(S){return E[S]=y[S]}),E}return I(b,x),b.prototype.createInstance=function(){return new b},b.prototype.createDefaultProperties=function(){},b.prototype.getDefaultInstance=function(){return d.defaultInstance},b.defaultInstance=new b,b}(s);l.EmptyStyle=g},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(18),I=o(50),C=o(31),f=o(49),a=function(){function u(){}return u.clearInnerHtml=function(d){for(;d.firstChild;)d.removeChild(d.firstChild)},u.setStylePosition=function(d,h){d.left=C.MathUtils.round(h.x,3)+"px",d.top=C.MathUtils.round(h.y,3)+"px"},u.setStyleSize=function(d,h){d.width=C.MathUtils.round(h.width,3)+"px",d.height=C.MathUtils.round(h.height,3)+"px"},u.setStyleSizeAndPosition=function(d,h){u.setStylePosition(d,h),u.setStyleSize(d,h)},u.hideNode=function(d){if(d){var h=d.parentNode;h&&h.removeChild(d)}},u.isHTMLElementNode=function(d){return d.nodeType===Node.ELEMENT_NODE},u.isTextNode=function(d){return d.nodeType===Node.TEXT_NODE},u.isElementNode=function(d){return d.nodeType===Node.ELEMENT_NODE},u.isHTMLTableRowElement=function(d){return"TR"===d.tagName},u.isItParent=function(d,h){if(!d||!h)return!1;for(;h;){if(h===d)return!0;if("BODY"===h.tagName)return!1;h=h.parentNode}return!1},u.getParentByTagName=function(d,h){for(h=h.toUpperCase();d;){if("BODY"===d.tagName)return null;if(d.tagName===h)return d;d=d.parentNode}return null},u.getDocumentScrollTop=function(){var d=c.Browser.IE&&"hidden"===u.getCurrentStyle(document.body).overflow&&document.body.scrollTop>0;return c.Browser.WebKitFamily||c.Browser.Edge||d?c.Browser.MacOSMobilePlatform?window.pageYOffset:c.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop},u.getDocumentScrollLeft=function(){var d=c.Browser.IE&&"hidden"===u.getCurrentStyle(document.body).overflow&&document.body.scrollLeft>0;return c.Browser.Edge||d?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:c.Browser.WebKitFamily?document.documentElement.scrollLeft||document.body.scrollLeft:document.documentElement.scrollLeft},u.getCurrentStyle=function(d){if(d.currentStyle)return d.currentStyle;if(document.defaultView&&document.defaultView.getComputedStyle){var h=document.defaultView.getComputedStyle(d,null);if(!h&&c.Browser.Firefox&&window.frameElement){for(var g=[],x=window.frameElement;!(h=document.defaultView.getComputedStyle(d,null));)g.push([x,x.style.display]),x.style.setProperty("display","block","important"),x="BODY"===x.tagName?x.ownerDocument.defaultView.frameElement:x.parentNode;h=function(E){if("object"!=typeof E||!I.isDefined(E))return E;var S={};for(var O in E)S[O]=E[O];return S}(h);for(var b=void 0,y=0;b=g[y];y++)b[0].style.display=b[1];document}return h}return window.getComputedStyle(d,null)},u.setFocus=function(d){function h(){try{d.focus(),c.Browser.IE&&document.activeElement!==d&&d.focus()}catch{}}c.Browser.MacOSMobilePlatform?h():setTimeout(function(){h()},100)},u.hasClassName=function(d,h){try{var g=h.split(" "),x=d.classList;if(x){for(var b=g.length-1;b>=0;b--)if(!x.contains(g[b]))return!1}else{var y=d.getAttribute&&d.getAttribute("class");if(!y)return!1;var E=y.split(" ");for(b=g.length-1;b>=0;b--)if(E.indexOf(g[b])<0)return!1}return!0}catch{return!1}},u.addClassName=function(d,h){if(!u.hasClassName(d,h)){var g=d.getAttribute&&d.getAttribute("class");d.setAttribute("class",""===g?h:g+" "+h)}},u.removeClassName=function(d,h){var g=" "+(d.getAttribute&&d.getAttribute("class"))+" ",x=g.replace(" "+h+" "," ");g.length!==x.length&&d.setAttribute("class",f.StringUtils.trim(x))},u.toggleClassName=function(d,h,g){void 0===g?u.hasClassName(d,h)?u.removeClassName(d,h):u.addClassName(d,h):g?u.addClassName(d,h):u.removeClassName(d,h)},u.pxToInt=function(d){return p(d,parseInt)},u.pxToFloat=function(d){return p(d,parseFloat)},u.getAbsolutePositionY=function(d){function h(g){return Math.round(g.getBoundingClientRect().top+u.getDocumentScrollTop())}return d?c.Browser.IE?(g=d,c.Browser.IE&&null===g.parentNode?0:g.getBoundingClientRect().top+u.getDocumentScrollTop()):c.Browser.Firefox&&c.Browser.Version>=3?h(d):c.Browser.Opera?function(g){var x=!0;g&&u.isHTMLTableRowElement(g)&&g.cells.length>0&&(g=g.cells[0]);for(var b=s(g,!1);null!=g;)b+=g.offsetTop,x||(b-=g.scrollTop),g=g.offsetParent,x=!1;return b+document.body.scrollTop}(d):c.Browser.NetscapeFamily&&(!c.Browser.Firefox||c.Browser.Version<3)?function(g){for(var x=s(g,!1),b=!0;null!=g;){if(x+=g.offsetTop,b||null==g.offsetParent||(x-=g.scrollTop),!b&&c.Browser.Firefox){var y=u.getCurrentStyle(g);"DIV"===g.tagName&&"visible"!==y.overflow&&(x+=u.pxToInt(y.borderTopWidth))}b=!1,g=g.offsetParent}return x}(d):c.Browser.WebKitFamily||c.Browser.Edge?h(d):function(g){for(var x=0,b=!0;null!=g;)x+=g.offsetTop,b||null==g.offsetParent||(x-=g.scrollTop),b=!1,g=g.offsetParent;return x}(d):0;var g},u.getAbsolutePositionX=function(d){function h(g){return Math.round(g.getBoundingClientRect().left+u.getDocumentScrollLeft())}return d?c.Browser.IE?(g=d,c.Browser.IE&&null===g.parentNode?0:g.getBoundingClientRect().left+u.getDocumentScrollLeft()):c.Browser.Firefox&&c.Browser.Version>=3?h(d):c.Browser.Opera&&c.Browser.Version<=12?function(g){for(var x=!0,b=s(g,!0);null!=g;)b+=g.offsetLeft,x||(b-=g.scrollLeft),g=g.offsetParent,x=!1;return b+document.body.scrollLeft}(d):c.Browser.NetscapeFamily&&(!c.Browser.Firefox||c.Browser.Version<3)?function(g){for(var x=s(g,!0),b=!0;null!=g;){if(x+=g.offsetLeft,b||null==g.offsetParent||(x-=g.scrollLeft),!b&&c.Browser.Firefox){var y=u.getCurrentStyle(g);"DIV"===g.tagName&&"visible"!==y.overflow&&(x+=u.pxToInt(y.borderLeftWidth))}b=!1,g=g.offsetParent}return x}(d):c.Browser.WebKitFamily||c.Browser.Edge?h(d):function(g){for(var x=0,b=!0;null!=g;)x+=g.offsetLeft,b||null==g.offsetParent||(x-=g.scrollLeft),b=!1,g=g.offsetParent;return x}(d):0;var g},u.isInteractiveControl=function(d){return["A","INPUT","SELECT","OPTION","TEXTAREA","BUTTON","IFRAME"].indexOf(d.tagName)>-1},u.getClearClientHeight=function(d){return d.offsetHeight-(u.getTopBottomPaddings(d)+u.getVerticalBordersWidth(d))},u.getTopBottomPaddings=function(d,h){var g=h||u.getCurrentStyle(d);return u.pxToInt(g.paddingTop)+u.pxToInt(g.paddingBottom)},u.getVerticalBordersWidth=function(d,h){I.isDefined(h)||(h=c.Browser.IE&&9!==c.Browser.MajorVersion&&window.getComputedStyle?window.getComputedStyle(d):u.getCurrentStyle(d));var g=0;return"none"!==h.borderTopStyle&&(g+=u.pxToFloat(h.borderTopWidth)),"none"!==h.borderBottomStyle&&(g+=u.pxToFloat(h.borderBottomWidth)),g},u.getNodes=function(d,h){for(var g=d.all||d.getElementsByTagName("*"),x=[],b=0;b<g.length;b++){var y=g[b];h(y)&&x.push(y)}return x},u.getChildNodes=function(d,h){for(var g=d.childNodes,x=[],b=0;b<g.length;b++){var y=g[b];h(y)&&x.push(y)}return x},u.getNodesByClassName=function(d,h){if(d.querySelectorAll){var g=d.querySelectorAll("."+h),x=[];return g.forEach(function(b){return x.push(b)}),x}return u.getNodes(d,function(b){return u.hasClassName(b,h)})},u.getChildNodesByClassName=function(d,h){return d.querySelectorAll?function(g,x){for(var b=[],y=0;y<g.length;y++){var E=g[y];x(E)&&b.push(E)}return b}(d.querySelectorAll("."+h),function(g){return g.parentNode===d}):u.getChildNodes(d,function(g){return!!u.isElementNode(g)&&I.isNonNullString(g.className)&&u.hasClassName(g,g.className)})},u.getVerticalScrollBarWidth=function(){if(void 0===u.verticalScrollBarWidth){var d=document.createElement("DIV");d.style.cssText="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 200px; height: 150px; overflow: hidden; box-sizing: content-box",document.body.appendChild(d);var h=document.createElement("P");d.appendChild(h),h.style.cssText="width: 100%; height: 200px;";var g=h.offsetWidth;d.style.overflow="scroll";var x=h.offsetWidth;g===x&&(x=d.clientWidth),u.verticalScrollBarWidth=g-x,document.body.removeChild(d)}return u.verticalScrollBarWidth},u.getHorizontalBordersWidth=function(d,h){I.isDefined(h)||(h=c.Browser.IE&&window.getComputedStyle?window.getComputedStyle(d):u.getCurrentStyle(d));var g=0;return"none"!==h.borderLeftStyle&&(g+=u.pxToFloat(h.borderLeftWidth)),"none"!==h.borderRightStyle&&(g+=u.pxToFloat(h.borderRightWidth)),g},u.getFontFamiliesFromCssString=function(d){return d.split(",").map(function(h){return f.StringUtils.trim(h.replace(/'|"/gi,""))})},u.getInnerText=function(d){if(c.Browser.Safari&&c.Browser.MajorVersion<=5){null===u.html2PlainTextFilter&&((u.html2PlainTextFilter=document.createElement("DIV")).style.width="0",u.html2PlainTextFilter.style.height="0",u.html2PlainTextFilter.style.overflow="visible",u.html2PlainTextFilter.style.display="none",document.body.appendChild(u.html2PlainTextFilter));var h=u.html2PlainTextFilter;h.innerHTML=d.innerHTML,h.style.display="";var g=h.innerText;return h.style.display="none",g}return c.Browser.NetscapeFamily||c.Browser.WebKitFamily||c.Browser.IE&&c.Browser.Version>=9||c.Browser.Edge?d.textContent:d.innerText},u.html2PlainTextFilter=null,u.verticalScrollBarWidth=void 0,u}();function p(u,d){var h=0;if(I.isDefined(u)&&""!==u)try{var g=u.indexOf("px");g>-1&&(h=d(u.substr(0,g)))}catch{}return h}function s(u,d){for(var h=0,g=!0;null!=u&&"BODY"!==u.tagName;){var x=a.getCurrentStyle(u);if("absolute"===x.position)break;g||"DIV"!==u.tagName||""!==x.position&&"static"!==x.position||(h-=d?u.scrollLeft:u.scrollTop),u=u.parentNode,g=!1}return h}l.DomUtils=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorRoutingMode=l.AutoZoomMode=l.DiagramSettings=void 0;var c,I,u,C=o(3),f=o(2),a=o(47),p=o(4),s=function(){function u(){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=c.Disabled,this._snapToGrid=!0,this._showGrid=!0,this._contextMenuEnabled=!0,this._gridSize=180,this._gridSizeItems=[90,180,360,720],this._pageSizeItems=[{size:new f.Size(12240,15840),text:"US-Letter ({width} x {height})"},{size:new f.Size(12240,20160),text:"US-Legal ({width} x {height})"},{size:new f.Size(15817,24491),text:"US-Tabloid ({width} x {height})"},{size:new f.Size(47679,67408),text:"A0 ({width} x {height})"},{size:new f.Size(33676,47679),text:"A1 ({width} x {height})"},{size:new f.Size(23811,33676),text:"A2 ({width} x {height})"},{size:new f.Size(16838,23811),text:"A3 ({width} x {height})"},{size:new f.Size(11906,16838),text:"A4 ({width} x {height})"},{size:new f.Size(8391,11906),text:"A5 ({width} x {height})"},{size:new f.Size(5953,8391),text:"A6 ({width} x {height})"},{size:new f.Size(4195,5953),text:"A7 ({width} x {height})"}],this._viewUnits=a.DiagramUnit.In,this._connectorRoutingMode=I.AllShapesOnly,this._reloadInsertedItemRequired=!1,this._useCanvgForExportToImage=!0}return Object.defineProperty(u.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(d){var h=this;(d=u.correctZoomLevel(d))!==this._zoomLevel&&(this._zoomLevel=d,this._zoomLevelWasChanged=!0,this.onZoomChanged.raise1(function(g){return g.notifyZoomChanged(d,h._autoZoom)}))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"zoomLevelWasChanged",{get:function(){return this._zoomLevelWasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"zoomLevelItems",{get:function(){return this._zoomLevelItems},set:function(d){(d=d.map(function(h){return u.correctZoomLevel(h)}))!==this._zoomLevelItems&&(this._zoomLevelItems=d)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"autoZoom",{get:function(){return this._autoZoom},set:function(d){var h=this;d!==this._autoZoom&&(this._autoZoom=d,this.onZoomChanged.raise1(function(g){return g.notifyZoomChanged(h._zoomLevel,d)}))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"simpleView",{get:function(){return this._simpleView},set:function(d){d!==this._simpleView&&(this._simpleView=d,this.notifyViewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"readOnly",{get:function(){return this._readOnly},set:function(d){d!==this._readOnly&&(this._readOnly=d,this.onReadOnlyChanged.raise1(function(h){return h.notifyReadOnlyChanged(d)}))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"fullscreen",{get:function(){return this._fullscreen},set:function(d){this._fullscreen=d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"snapToGrid",{get:function(){return this._snapToGrid},set:function(d){this._snapToGrid=d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"showGrid",{get:function(){return this._showGrid},set:function(d){var h=this;d!==this._showGrid&&(this._showGrid=d,this.onViewChanged.raise1(function(g){return g.notifyGridChanged(h.showGrid,h.gridSize)}))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"contextMenuEnabled",{get:function(){return this._contextMenuEnabled},set:function(d){this._contextMenuEnabled=d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"gridSize",{get:function(){return this._gridSize},set:function(d){var h=this;d!==this._gridSize&&(this._gridSize=d,this.onViewChanged.raise1(function(g){return g.notifyGridChanged(h.showGrid,h.gridSize)}))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"gridSizeItems",{get:function(){return this._gridSizeItems},set:function(d){d!==this._gridSizeItems&&(this._gridSizeItems=d)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"pageSizeItems",{get:function(){return this._pageSizeItems},set:function(d){d!==this._pageSizeItems&&(this._pageSizeItems=d)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"viewUnits",{get:function(){return this._viewUnits},set:function(d){this._viewUnits=d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"connectorRoutingMode",{get:function(){return this._connectorRoutingMode},set:function(d){d!==this._connectorRoutingMode&&(this._connectorRoutingMode=d,this.onConnectorRoutingModeChanged.raise1(function(h){return h.notifyConnectorRoutingModeChanged(d)}))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"reloadInsertedItemRequired",{get:function(){return this._reloadInsertedItemRequired},set:function(d){this._reloadInsertedItemRequired=d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"useCanvgForExportToImage",{get:function(){return this._useCanvgForExportToImage},set:function(d){this._useCanvgForExportToImage=d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"shapeMinWidth",{get:function(){return this._shapeMinWidth},set:function(d){this._shapeMinWidth=d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"shapeMinHeight",{get:function(){return this._shapeMinHeight},set:function(d){this._shapeMinHeight=d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"shapeMaxWidth",{get:function(){return this._shapeMaxWidth},set:function(d){this._shapeMaxWidth=d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"shapeMaxHeight",{get:function(){return this._shapeMaxHeight},set:function(d){this._shapeMaxHeight=d},enumerable:!1,configurable:!0}),u.prototype.applyShapeSizeSettings=function(d,h){d&&("number"==typeof d.shapeMaxHeight&&(this.shapeMaxHeight=p.ModelUtils.getTwipsValue(h,d.shapeMaxHeight)),"number"==typeof d.shapeMinHeight&&(this.shapeMinHeight=p.ModelUtils.getTwipsValue(h,d.shapeMinHeight)),"number"==typeof d.shapeMaxWidth&&(this.shapeMaxWidth=p.ModelUtils.getTwipsValue(h,d.shapeMaxWidth)),"number"==typeof d.shapeMinWidth&&(this.shapeMinWidth=p.ModelUtils.getTwipsValue(h,d.shapeMinWidth)))},u.prototype.notifyViewChanged=function(){var d=this;this.onViewChanged.raise1(function(h){return h.notifyViewChanged(d._simpleView)})},u.correctZoomLevel=function(d){return Math.min(10,Math.max(d,.01))},u}();l.DiagramSettings=s,(u=c=l.AutoZoomMode||(l.AutoZoomMode={}))[u.Disabled=0]="Disabled",u[u.FitContent=1]="FitContent",u[u.FitToWidth=2]="FitToWidth",function(u){u[u.None=0]="None",u[u.ConnectorShapesOnly=1]="ConnectorShapesOnly",u[u.AllShapesOnly=2]="AllShapesOnly"}(I=l.ConnectorRoutingMode||(l.ConnectorRoutingMode={}))},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorRenderPoint=void 0;var C=function(f){function a(p,s,u,d){void 0===u&&(u=-1),void 0===d&&(d=!1);var h=f.call(this,p,s)||this;return h.pointIndex=u,h.skipped=d,h}return I(a,f),a.prototype.offset=function(p,s){return f.prototype.offset.call(this,p,s),this.pointIndex=-1,this.skipped=!1,this},a.prototype.multiply=function(p,s){return f.prototype.multiply.call(this,p,s),this.pointIndex=-1,this.skipped=!1,this},a.prototype.clone=function(){return new a(this.x,this.y,this.pointIndex,this.skipped)},a}(o(0).Point);l.ConnectorRenderPoint=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ShapeParameterPoint=void 0,l.ShapeParameterPoint=function(I,C){this.key=I,this.point=C}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(105),I=function(){function C(){}return C.round=function(f,a){void 0===a&&(a=0);var p=C.powFactor[a];return Math.round(f*p)/p},C.numberCloseTo=function(f,a,p){return void 0===p&&(p=1e-5),Math.abs(f-a)<p},C.restrictValue=function(f,a,p){return p<a&&(p=a),f>p?p:f<a?a:f},C.getRandomInt=function(f,a){return Math.floor(Math.random()*(a-f+1))+f},C.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(f){var a=16*Math.random()|0;return("x"===f?a:3&a|8).toString(16)})},C.powFactor=c.ListUtils.initByCallback(20,function(f){return Math.pow(10,f)}),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}();l.MathUtils=I},function(he,l,o){"use strict";var c,I,f;Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorProperties=l.DEFAULT_CONNECTOR_ENDLINEENDING=l.DEFAULT_CONNECTOR_STARTLINEENDING=l.DEFAULT_CONNECTOR_LINEOPTION=l.ConnectorLineEnding=l.ConnectorLineOption=void 0,(f=c=l.ConnectorLineOption||(l.ConnectorLineOption={}))[f.Straight=0]="Straight",f[f.Orthogonal=1]="Orthogonal",function(f){f[f.None=0]="None",f[f.Arrow=1]="Arrow",f[f.OutlinedTriangle=2]="OutlinedTriangle",f[f.FilledTriangle=3]="FilledTriangle"}(I=l.ConnectorLineEnding||(l.ConnectorLineEnding={})),l.DEFAULT_CONNECTOR_LINEOPTION=c.Orthogonal,l.DEFAULT_CONNECTOR_STARTLINEENDING=I.None,l.DEFAULT_CONNECTOR_ENDLINEENDING=I.Arrow;var C=function(){function f(){this.lineOption=l.DEFAULT_CONNECTOR_LINEOPTION,this.startLineEnding=l.DEFAULT_CONNECTOR_STARTLINEENDING,this.endLineEnding=l.DEFAULT_CONNECTOR_ENDLINEENDING}return f.prototype.clone=function(){var a=new f;return a.lineOption=this.lineOption,a.startLineEnding=this.startLineEnding,a.endLineEnding=this.endLineEnding,a},f.prototype.forEach=function(a){for(var p in this)Object.prototype.hasOwnProperty.call(this,p)&&a(p)},f.prototype.toObject=function(){var a={},p=!1;return this.lineOption!==l.DEFAULT_CONNECTOR_LINEOPTION&&(a.lineOption=this.lineOption,p=!0),this.startLineEnding!==l.DEFAULT_CONNECTOR_STARTLINEENDING&&(a.startLineEnding=this.startLineEnding,p=!0),this.endLineEnding!==l.DEFAULT_CONNECTOR_ENDLINEENDING&&(a.endLineEnding=this.endLineEnding,p=!0),p?a:null},f.prototype.fromObject=function(a){"number"==typeof a.lineOption&&(this.lineOption=a.lineOption),"number"==typeof a.startLineEnding&&(this.startLineEnding=a.startLineEnding),"number"==typeof a.endLineEnding&&(this.endLineEnding=a.endLineEnding)},f}();l.ConnectorProperties=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(31),I=o(35),C=o(0),f=o(13),a=function(){function p(s,u){this.startPoint=s,this.endPoint=u}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(s){return this.startPoint.equals(s.startPoint)||this.endPoint.equals(s.startPoint)||this.startPoint.equals(s.endPoint)||this.endPoint.equals(s.endPoint)||this.intersectCore(s)&&s.intersectCore(this)},p.prototype.containsPoint=function(s,u){return void 0===u&&(u=1e-7),this.startPoint.equals(s)||this.endPoint.equals(s)||c.MathUtils.numberCloseTo(this.length,I.Metrics.euclideanDistance(this.startPoint,s)+I.Metrics.euclideanDistance(this.endPoint,s),u)},p.prototype.isIntersectedByRect=function(s){if(f.Rectangle.containsPoint(s,this.startPoint)||f.Rectangle.containsPoint(s,this.endPoint))return!0;var u=s.x,d=s.x+s.width,h=s.y,g=s.y+s.height;return this.isIntersected(new p(new C.Point(u,h),new C.Point(u,g)))||this.isIntersected(new p(new C.Point(d,h),new C.Point(d,g)))||this.isIntersected(new p(new C.Point(u,h),new C.Point(d,h)))||this.isIntersected(new p(new C.Point(u,g),new C.Point(d,g)))},p.prototype.intersectCore=function(s){if(this.startPoint.x===this.endPoint.x){if(this.startPoint.x-s.endPoint.x!=0)return(this.startPoint.x-s.startPoint.x)/(this.startPoint.x-s.endPoint.x)<=0;if(s.endPoint.y-this.endPoint.y!=0)return(s.endPoint.y-this.startPoint.y)/(s.endPoint.y-this.endPoint.y)<=0}if(this.startPoint.y===this.endPoint.y){if(this.startPoint.y-s.endPoint.y!=0)return(this.startPoint.y-s.startPoint.y)/(this.startPoint.y-s.endPoint.y)<=0;if(s.endPoint.x-this.endPoint.x!=0)return(s.endPoint.x-this.startPoint.x)/(s.endPoint.x-this.endPoint.x)<=0}var u=(this.endPoint.y-this.startPoint.y)/(this.endPoint.x-this.startPoint.x),d=this.startPoint.y+(s.startPoint.x-this.startPoint.x)*u,h=this.startPoint.y+(s.endPoint.x-this.startPoint.x)*u,g=s.startPoint.y-d,x=s.endPoint.y-h;return 0===g&&0===x?(this.startPoint.y-d)/(this.endPoint.y-d)<=0||(this.startPoint.y-h)/(this.endPoint.y-h)<=0:0===g||0===x||g/x<0},p}();l.Segment=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerDraggingState=void 0;var C=o(40),f=o(11),a=o(12),p=function(s){function u(d,h){var g=s.call(this,d)||this;return g.history=h,g}return I(u,s),u.prototype.canApplyChangesOnMouseMove=function(d,h){return!d||!h||Math.abs(d.x-h.x)>u.dragStartLimit||Math.abs(d.y-h.y)>u.dragStartLimit},u.prototype.onAfterApplyChanges=function(){this.modified||this.handler.raiseDragStart(this.getDraggingElementKeys()),this.modified=!0,this.mouseDownPoint=void 0},u.prototype.onMouseDown=function(d){this.mouseDownPoint=d.modelPoint.clone()},u.prototype.onMouseMove=function(d){this.mouseMoveEvent=d,d.button!==f.MouseButton.Left?(this.cancelChanges(),this.handler.switchToDefaultState()):d.button===f.MouseButton.Left&&this.canApplyChangesOnMouseMove(this.mouseDownPoint,d.modelPoint)&&(this.onApplyChanges(d),this.onAfterApplyChanges())},u.prototype.onKeyDown=function(d){!this.mouseMoveEvent||16!==d.keyCode&&17!==d.keyCode&&18!==d.keyCode||this.performMouseMoveEvent(d.modifiers)},u.prototype.onKeyUp=function(d){!this.mouseMoveEvent||16!==d.keyCode&&17!==d.keyCode&&18!==d.keyCode||this.performMouseMoveEvent(d.modifiers)},u.prototype.onMouseUp=function(d){this.mouseDownPoint=void 0,this.mouseMoveEvent=void 0,this.handler.switchToDefaultState()},u.prototype.performMouseMoveEvent=function(d){this.mouseMoveEvent.modifiers=d,this.onMouseMove(this.mouseMoveEvent)},u.prototype.start=function(){this.handler.beginStorePermissions(),this.history.beginTransaction()},u.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()},u.prototype.checkStoredPermissionsOnFinish=function(){this.handler.isStoredPermissionsGranted()||(this.cancelChanges(),this.modified=!1)},u.prototype.onFinishWithChanges=function(){},u.prototype.cancelChanges=function(){this.handler.lockPermissions(),this.history.undoTransaction(),this.handler.unlockPermissions(),this.modified&&this.handler.raiseDragEnd(this.getDraggingElementKeys()),this.modified=!1},u.prototype.getSnappedPoint=function(d,h){return this.handler.getSnappedPointOnDragPoint(d,h)},u.dragStartLimit=a.UnitConverter.pixelsToTwips(4),u}(C.MouseHandlerCancellableState);l.MouseHandlerDraggingState=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=function(){function I(){}return I.euclideanDistance=function(C,f){var a=C.x-f.x,p=C.y-f.y;return Math.sqrt(a*a+p*p)},I.manhattanDistance=function(C,f){return Math.abs(C.x-f.x)+Math.abs(C.y-f.y)},I}();l.Metrics=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DiagramLocalizationService=void 0;var c=o(1),I=o(47),C=function(){function f(){}return f.unitItems={},f.formatUnit=function(a){return a.toString()},f.shapeTexts={},f}();l.DiagramLocalizationService=C,C.unitItems[I.DiagramUnit.In]="in",C.unitItems[I.DiagramUnit.Cm]="cm",C.unitItems[I.DiagramUnit.Px]="px",C.shapeTexts[c.ShapeTypes.Text]="Text",C.shapeTexts[c.ShapeTypes.Rectangle]="Rectangle",C.shapeTexts[c.ShapeTypes.Ellipse]="Ellipse",C.shapeTexts[c.ShapeTypes.Cross]="Cross",C.shapeTexts[c.ShapeTypes.Triangle]="Triangle",C.shapeTexts[c.ShapeTypes.Diamond]="Diamond",C.shapeTexts[c.ShapeTypes.Heart]="Heart",C.shapeTexts[c.ShapeTypes.Pentagon]="Pentagon",C.shapeTexts[c.ShapeTypes.Hexagon]="Hexagon",C.shapeTexts[c.ShapeTypes.Octagon]="Octagon",C.shapeTexts[c.ShapeTypes.Star]="Star",C.shapeTexts[c.ShapeTypes.ArrowLeft]="Left Arrow",C.shapeTexts[c.ShapeTypes.ArrowUp]="Up Arrow",C.shapeTexts[c.ShapeTypes.ArrowRight]="Right Arrow",C.shapeTexts[c.ShapeTypes.ArrowDown]="Down Arrow",C.shapeTexts[c.ShapeTypes.ArrowUpDown]="Up Down Arrow",C.shapeTexts[c.ShapeTypes.ArrowLeftRight]="Left Right Arrow",C.shapeTexts[c.ShapeTypes.Process]="Process",C.shapeTexts[c.ShapeTypes.Decision]="Decision",C.shapeTexts[c.ShapeTypes.Terminator]="Terminator",C.shapeTexts[c.ShapeTypes.PredefinedProcess]="Predefined Process",C.shapeTexts[c.ShapeTypes.Document]="Document",C.shapeTexts[c.ShapeTypes.MultipleDocuments]="Multiple Documents",C.shapeTexts[c.ShapeTypes.ManualInput]="Manual Input",C.shapeTexts[c.ShapeTypes.Preparation]="Preparation",C.shapeTexts[c.ShapeTypes.Data]="Data",C.shapeTexts[c.ShapeTypes.Database]="Database",C.shapeTexts[c.ShapeTypes.HardDisk]="Hard Disk",C.shapeTexts[c.ShapeTypes.InternalStorage]="Internal Storage",C.shapeTexts[c.ShapeTypes.PaperTape]="Paper Tape",C.shapeTexts[c.ShapeTypes.ManualOperation]="Manual Operation",C.shapeTexts[c.ShapeTypes.Delay]="Delay",C.shapeTexts[c.ShapeTypes.StoredData]="Stored Data",C.shapeTexts[c.ShapeTypes.Display]="Display",C.shapeTexts[c.ShapeTypes.Merge]="Merge",C.shapeTexts[c.ShapeTypes.Connector]="Connector",C.shapeTexts[c.ShapeTypes.Or]="Or",C.shapeTexts[c.ShapeTypes.SummingJunction]="Summing Junction",C.shapeTexts[c.ShapeTypes.Container]="Container",C.shapeTexts[c.ShapeTypes.VerticalContainer]="Vertical Container",C.shapeTexts[c.ShapeTypes.HorizontalContainer]="Horizontal Container",C.shapeTexts[c.ShapeTypes.Card]="Person's Name",C.shapeTexts[c.ShapeTypes.CardWithImageOnLeft]="Card with Image on the Left",C.shapeTexts[c.ShapeTypes.CardWithImageOnTop]="Card with Image on the Top",C.shapeTexts[c.ShapeTypes.CardWithImageOnRight]="Card with Image on the Right"},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ShapeParameters=l.ShapeParameter=void 0;var c=function(C,f){this.key=C,this.value=f};l.ShapeParameter=c;var I=function(){function C(){this.items={}}return C.prototype.add=function(f){this.items[f.key]=f},C.prototype.addRange=function(f){for(var a=0;a<f.length;a++)this.add(f[a])},C.prototype.get=function(f){return this.items[f]},C.prototype.forEach=function(f){for(var a in this.items)Object.prototype.hasOwnProperty.call(this.items,a)&&f(this.items[a])},C.prototype.clone=function(){var f=new C;return this.forEach(function(a){f.add(new c(a.key,a.value))}),f},C.prototype.toObject=function(){var f={},a=!1;return this.forEach(function(p){f[p.key]={value:p.value},a=!0}),a?f:null},C.prototype.fromObject=function(f){this.forEach(function(a){var p=f[a.key];p&&"number"==typeof p.value&&(a.value=p.value)})},C}();l.ShapeParameters=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectionMode=l.PositionInfo=l.Edge=void 0;var c=function(){function C(f,a,p,s){void 0===s&&(s=1),this.weight=s,this.key=f,this.from=a,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}();l.Edge=c;var C;l.PositionInfo=function(C,f){this.item=C,this.position=f},(C=l.ConnectionMode||(l.ConnectionMode={}))[C.Outgoing=1]="Outgoing",C[C.Incoming=2]="Incoming",C[C.OutgoingAndIncoming=3]="OutgoingAndIncoming"},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.GroupPrimitive=void 0;var C=o(15),f=function(a){function p(s,u,d,h,g,x){var b=a.call(this,null,u,h,g)||this;return b.zIndex=d,b.onBeforeDispose=x,b.children=s,b}return I(p,a),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"g")},p.prototype.applyElementProperties=function(s,u){(this.zIndex||0===this.zIndex)&&s.style.setProperty("z-index",this.zIndex.toString()),a.prototype.applyElementProperties.call(this,s,u)},p.prototype.dispose=function(){this.onBeforeDispose&&this.onBeforeDispose(),a.prototype.dispose.call(this)},p}(o(24).SvgPrimitive);l.GroupPrimitive=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerCancellableState=l.MouseHandlerStateBase=void 0;var C=o(25),f=function(){function p(s){this.handler=s}return p.prototype.start=function(){},p.prototype.finish=function(){},p.prototype.onMouseClick=function(s){},p.prototype.onMouseDblClick=function(s){this.handler.switchToDefaultState()},p.prototype.onMouseDown=function(s){},p.prototype.onMouseUp=function(s){},p.prototype.onMouseMove=function(s){},p.prototype.onMouseWheel=function(s){return!1},p.prototype.onDragStart=function(s){},p.prototype.onDragEnd=function(s){},p.prototype.onShortcut=function(s){return!1},p.prototype.onKeyDown=function(s){},p.prototype.onKeyUp=function(s){},p.prototype.onConnectionPointsShow=function(s,u){},p.prototype.onConnectionTargetShow=function(s,u){},p}();l.MouseHandlerStateBase=f;var a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.onShortcut=function(u){return u===C.KeyCode.Esc&&(this.cancelChanges(),this.handler.switchToDefaultState(),!0)},s}(f);l.MouseHandlerCancellableState=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=function(){function I(){}return I.binaryIndexOf=function(C,f,a,p){void 0===a&&(a=0),void 0===p&&(p=-2);var s=0===a;for(-2===p&&(p=C.length-1);a<=p;){var u=a+(p-a>>1),d=f(C[u]);if(d<0)a=u+1;else{if(!(d>0))return u;p=u-1}}return s?~a:-1},I.normedBinaryIndexOf=function(C,f,a,p){void 0===a&&(a=0),void 0===p&&(p=-2);var s=I.binaryIndexOf(C,f,a,p);return I.binaryIndexNormalizator(s)},I.binaryIndexNormalizator=function(C){return C<0?~C-1:C},I.normedInterpolationIndexOf=function(C,f,a,p,s){void 0===p&&(p=0),void 0===s&&(s=-2),-2===s&&(s=C.length-1);var u=C[Math.min(p,s)];if(void 0===u||a<f(u))return-1;for(var d=f(C[p]),h=f(C[s]);;){if(!(a>d&&a<h))return a===d?p:s;var g=p+Math.floor((a-d)*(s-p)/(h-d)),x=f(C[g]);if(a>x){if(a<(d=f(C[p=g+1])))return g}else{if(!(a<x))return g;h=f(C[s=g-1])}}},I}();l.SearchUtils=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CanvasManagerBase=l.PAGE_BG_TEXTFLOOR_FILTER_ID=void 0;var c=o(172),I=o(12);l.PAGE_BG_TEXTFLOOR_FILTER_ID="page-text-flood";var C=function(){function f(a,p){this.elements={},this.actualZoom=a,this.dom=p}return f.prototype.createAndChangePrimitivesElements=function(a,p){var s=this;a.forEach(function(u){s.createAndChangePrimitiveElement(u,p)})},f.prototype.createPrimitiveElement=function(a,p,s){return this.dom.createElement(a,p,s)},f.prototype.createAndChangePrimitiveElement=function(a,p,s){var u=this.createPrimitiveElement(a,p,s);return this.dom.changeByPrimitive(u,a),u},f.prototype.changePrimitiveElement=function(a,p){this.dom.changeByPrimitive(p,a)},f.prototype.getOrCreateElement=function(a,p,s,u){var d=a&&this.elements[a]||(this.elements[a]=this.createPrimitiveElement(p,s,u));return this.changePrimitiveElement(p,d),d},f.prototype.createTextFloodFilter=function(a,p,s){this.getOrCreateElement(a,new c.TextFloodFilterPrimitive(l.PAGE_BG_TEXTFLOOR_FILTER_ID,s),p)},f.prototype.getAbsoluteSize=function(a){return a.clone().applyConverter(I.UnitConverter.twipsToPixelsF).clone().multiply(this.actualZoom,this.actualZoom)},f}();l.CanvasManagerBase=C},function(he,l,o){"use strict";var c;Object.defineProperty(l,"__esModule",{value:!0}),l.TextOwner=void 0,(c=l.TextOwner||(l.TextOwner={}))[c.Shape=0]="Shape",c[c.Connector=1]="Connector",c[c.ExtensionLine=2]="ExtensionLine",c[c.Resize=3]="Resize"},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Data=l.SetAbsoluteY=l.SetAbsoluteX=void 0;var c=o(27),I=o(50);function C(p){return!isNaN(parseFloat(p))&&isFinite(p)}function f(p,s,u){return p-function(d,h){var b,y,g=(b=d,(y=document.createElement("DIV")).style.top="0px",y.style.left="0px",y.style.visibility="hidden",y.style.position=c.DomUtils.getCurrentStyle(b).position,y);"static"===g.style.position&&(g.style.position="absolute"),d.parentNode.appendChild(g);var x=h?c.DomUtils.getAbsolutePositionX(g):c.DomUtils.getAbsolutePositionY(g);return d.parentNode.removeChild(g),Math.round(x)}(s,u)}l.SetAbsoluteX=function(p,s){p.style.left=f(s,p,!0)+"px"},l.SetAbsoluteY=function(p,s){p.style.top=f(s,p,!1)+"px"};var a=function(){function p(){}return p.ArrayInsert=function(s,u,d){if(0<=d&&d<s.length){for(var h=s.length;h>d;h--)s[h]=s[h-1];s[d]=u}else s.push(u)},p.ArrayRemove=function(s,u){var d=p.ArrayIndexOf(s,u);d>-1&&p.ArrayRemoveAt(s,d)},p.ArrayRemoveAt=function(s,u){if(u>=0&&u<s.length){for(var d=u;d<s.length-1;d++)s[d]=s[d+1];s.pop()}},p.ArrayClear=function(s){for(;s.length>0;)s.pop()},p.ArrayIndexOf=function(s,u,d){if(d){for(h=0;h<s.length;h++)if(d(s[h],u))return h}else for(var h=0;h<s.length;h++)if(s[h]===u)return h;return-1},p.ArrayContains=function(s,u){return p.ArrayIndexOf(s,u)>=0},p.ArrayEqual=function(s,u){var d=s.length;if(d!==u.length)return!1;for(var h=0;h<d;h++)if(s[h]!==u[h])return!1;return!0},p.ArraySame=function(s,u){return s.length===u.length&&s.every(function(d){return p.ArrayContains(u,d)})},p.ArrayGetIntegerEdgeValues=function(s){var u=p.CollectionToArray(s);return p.ArrayIntegerAscendingSort(u),{start:u[0],end:u[u.length-1]}},p.ArrayIntegerAscendingSort=function(s){p.ArrayIntegerSort(s,!1)},p.ArrayIntegerSort=function(s,u){s.sort(function(d,h){var g=0;return d>h?g=1:d<h&&(g=-1),u&&(g*=-1),g})},p.CollectionsUnionToArray=function(s,u){for(var d=[],h=s.length,g=u.length,x=0;x<h+g;x++)d.push(x<h?s[x]:u[x-h]);return d},p.CollectionToArray=function(s){for(var u=[],d=0;d<s.length;d++)u.push(s[d]);return u},p.CreateHashTableFromArray=function(s){for(var u=[],d=0;d<s.length;d++)u[s[d]]=1;return u},p.CreateIndexHashTableFromArray=function(s){for(var u=[],d=0;d<s.length;d++)u[s[d]]=d;return u},p.ArrayToHash=function(s,u,d){return s instanceof Array?s.reduce(function(h,g,x){var b=u(g,x),y=d(g,x);return h[b]=y,h},{}):{}},p.Sum=function(s,u){return s instanceof Array?s.reduce(function(d,h){var g=u?u(h):h;return C(g)||(g=0),d+g},0):0},p.Min=function(s,u){return p.CalculateArrayMinMax(s,u,!1)},p.Max=function(s,u){return p.CalculateArrayMinMax(s,u,!0)},p.NearestLeftBinarySearchComparer=function(s,u,d){var h=s[u],g=h<d;return g&&u===s.length-1||g&&s[u+1]>=d?0:h<d?-1:1},p.ArrayBinarySearch=function(s,u,d,h,g){d||(d=p.defaultBinarySearchComparer),I.isDefined(h)||(h=0),I.isDefined(g)||(g=s.length-h);for(var x=h+g-1;h<=x;){var b=h+(x-h>>1),y=d(s,b,u);if(0===y)return b;y<0?h=b+1:x=b-1}return-(h+1)},p.ArrayFlatten=function(s){var u=[];return s.forEach(function(d){u=u.concat(d)}),u},p.GetDistinctArray=function(s){for(var u=[],d=0;d<s.length;d++){var h=s[d];-1===p.ArrayIndexOf(u,h)&&u.push(h)}return u},p.ForEach=function(s,u){if(Array.prototype.forEach)Array.prototype.forEach.call(s,u);else for(var d=0,h=s.length;d<h;d++)u(s[d],d,s)},p.MergeHashTables=function(s,u){if(!u||"string"==typeof u)return s;for(var d in s||(s={}),u)!d||d in s||(s[d]=u[d]);return s},p.Range=function(s,u){return(s=parseInt(s)||0)<0&&(s=0),(u=parseInt(u)||0)<0&&(u=0),Array(s).map(function(d,h){return u+h})},p.CalculateArrayMinMax=function(s,u,d){if(!(s instanceof Array))return 0;var h=d?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY;return s.reduce(function(g,x){var b=u?u(x):x;return C(b)||(b=h),(d?Math.max:Math.min)(b,g)},h)},p.byRange=function(s,u,d){return Math.min(Math.max(s,u),d)},p.defaultBinarySearchComparer=function(s,u,d){var h=s[u];return h===d?0:h<d?-1:1},p.cssTextToObject=function(s){return s?(s=s.replace(/\/\*(.|\s)*?\*\//g,"").replace(/\s+/g," ")).split(";").reduce(function(u,d){if(d){var h=/\s*([^:]+?)\s*:\s*([^;]*)\s*$/.exec(d);if(h){var g=h[1],x=h[2];g&&x&&(u[g.trim()]=x.trim())}return u}return u},{}):{}},p.objectToCssText=function(s){return s?Object.keys(s).reduce(function(u,d){var h=d.trim(),g=s[d];return h&&g&&u.push(h+": "+g.toString().trim()),u},[]).join("; "):""},p}();l.Data=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectionPoint=void 0;var C=o(0),f=o(9),a=function(p){function s(u,d,h){void 0===h&&(h=f.ConnectionPointSide.Undefined);var g=p.call(this,u,d)||this;return g.side=h,g}return I(s,p),s.prototype.offset=function(u,d){return p.prototype.offset.call(this,u,d),this.side=f.ConnectionPointSide.Undefined,this},s.prototype.multiply=function(u,d){return p.prototype.multiply.call(this,u,d),this.side=f.ConnectionPointSide.Undefined,this},s.prototype.clone=function(){return new s(this.x,this.y,this.side)},s.prototype.toPoint=function(){return new C.Point(this.x,this.y)},s}(C.Point);l.ConnectionPoint=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ImageCache=l.CacheImageInfo=void 0;var c=o(83),I=o(51),C=o(3),f=function(){function p(s,u,d,h,g){this._base64=void 0!==s?c.Base64Utils.normalizeToDataUrl(s,"image/png"):void 0,this.actualId=u,this._referenceInfo=h,this._isLoaded=void 0!==g&&g,this.imageUrl=d}return Object.defineProperty(p.prototype,"isLoaded",{get:function(){return this._referenceInfo?this._referenceInfo._isLoaded:this._isLoaded},set:function(s){this._isLoaded=s},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"base64",{get:function(){return this._base64},set:function(s){this._base64=c.Base64Utils.normalizeToDataUrl(s,"image/png")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"referenceInfo",{get:function(){return this._referenceInfo},set:function(s){this._referenceInfo=s,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}();l.CacheImageInfo=f;var a=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(s){return this.cache[s]},p.prototype.createUnloadedInfoByUrl=function(s){return this.findInfoByUrl(s)||this.registerImageData(new f(void 0,this.getNextActualId(),s))},p.prototype.createUnloadedInfoByBase64=function(s){return this.findInfoByBase64(s)||this.registerImageData(new f(s,this.getNextActualId()))},p.prototype.createUnloadedInfoByShapeImageInfo=function(s){var u=s.exportUrl;return c.Base64Utils.checkPrependDataUrl(u)?this.createUnloadedInfoByBase64(u):this.createUnloadedInfoByUrl(u)},p.prototype.registerImageData=function(s){var u=this.cache[s.actualId];return u||(u=s),void 0!==s.actualId&&(this.cache[s.actualId]=u),0!==s.actualId&&(this.nonLoadedImages.push(s),1===this.nonLoadedImages.length&&this.raiseReadyStateChanged(!1)),u},p.prototype.loadAllImages=function(s){var u=this;this.cache.forEach(function(d){u.emptyImageId===d.actualId||d.isLoaded||d.isLoading||s.load(d)})},p.prototype.finalizeLoading=function(s,u){s.finalizeLoading(),s.isLoaded=!0;var d=this.nonLoadedImages.indexOf(s);if(this.nonLoadedImages.splice(d,1),0===this.nonLoadedImages.length&&this.raiseReadyStateChanged(!0),!s.referenceInfo&&u.base64){var h=c.Base64Utils.normalizeToDataUrl(u.base64,"image/png");this.cache.forEach(function(g){var x=g.base64===h&&g!==s&&g.isLoaded;return x&&(s.referenceInfo=g.referenceInfo?g.referenceInfo:g),x}),s.base64=h}},p.prototype.hasNonLoadedImages=function(){return 0!==this.nonLoadedImages.length},p.prototype.getNextActualId=function(){return this.lastActualId++},p.prototype.findInfoByBase64=function(s){return s=c.Base64Utils.normalizeToDataUrl(s,"image/png"),this.findInfoCore(function(u){return u.base64===s})},p.prototype.findInfoByUrl=function(s){return this.findInfoCore(function(u){return u.imageUrl===s})},p.prototype.findInfoCore=function(s){var u;return this.cache.forEach(function(d){s(d)&&(u=d)}),u},p.prototype.raiseReadyStateChanged=function(s){this.onReadyStateChanged.raise1(function(u){return u.notifyImageCacheReadyStateChanged(s)})},p.instance=new p,p}();l.ImageCache=a},function(he,l,o){"use strict";var c;Object.defineProperty(l,"__esModule",{value:!0}),l.PageOrientation=l.DiagramUnit=void 0,(c=l.DiagramUnit||(l.DiagramUnit={}))[c.In=0]="In",c[c.Cm=1]="Cm",c[c.Px=2]="Px",function(c){c[c.Portrait=0]="Portrait",c[c.Landscape=1]="Landscape"}(l.PageOrientation||(l.PageOrientation={}))},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.SetConnectionPointIndexHistoryItem=l.AddConnectionHistoryItem=void 0;var C=o(8),f=o(6),a=function(s){function u(d,h,g,x){var b=s.call(this)||this;return b.connectorKey=d.key,b.itemKey=h.key,b.connectionPointIndex=g,b.position=x,b}return I(u,s),u.prototype.redo=function(d){var h=d.model.findConnector(this.connectorKey),g=d.model.findItem(this.itemKey);d.addConnection(h,g,this.connectionPointIndex,this.position)},u.prototype.undo=function(d){var h=d.model.findConnector(this.connectorKey);d.deleteConnection(h,this.position)},u}(C.HistoryItem);l.AddConnectionHistoryItem=a;var p=function(s){function u(d,h,g){var x=s.call(this)||this;return x.connectorKey=d.key,x.connectionPointIndex=h,x.position=g,x}return I(u,s),u.prototype.redo=function(d){var h=d.model.findConnector(this.connectorKey);this.oldConnectionPointIndex=this.position===f.ConnectorPosition.Begin?h.beginConnectionPointIndex:h.endConnectionPointIndex,d.setConnectionPointIndex(h,this.connectionPointIndex,this.position)},u.prototype.undo=function(d){var h=d.model.findConnector(this.connectorKey);d.setConnectionPointIndex(h,this.oldConnectionPointIndex,this.position)},u}(C.HistoryItem);l.SetConnectionPointIndexHistoryItem=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=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 f=0;if(0===C.length)return f;for(var a=C.length,p=0;p<a;p++)f=(f<<5)-f+C.charCodeAt(p),f|=0;return f},I.endsAt=function(C,f){var a=C.length-1,p=f.length-1,s=a-p;if(s<0)return!1;for(;a>=s;a--,p--)if(C[a]!==f[p])return!1;return!0},I.startsAt=function(C,f){return C.substr(0,f.length)===f},I.stringInLowerCase=function(C){return C.toLowerCase()===C},I.stringInUpperCase=function(C){return C.toUpperCase()===C},I.atLeastOneSymbolInUpperCase=function(C){for(var f=0,a=void 0;a=C[f];f++)if(I.stringInUpperCase(a)&&!I.stringInLowerCase(a))return!0;return!1},I.getSymbolFromEnd=function(C,f){return C[C.length-f]},I.trim=function(C,f){if(void 0===f)return I.trimInternal(C,!0,!0);var a=f.join("");return C.replace(new RegExp("(^["+a+"]*)|(["+a+"]*$)","g"),"")},I.trimStart=function(C,f){if(void 0===f)return I.trimInternal(C,!0,!1);var a=f.join("");return C.replace(new RegExp("^["+a+"]*","g"),"")},I.trimEnd=function(C,f){if(void 0===f)return I.trimInternal(C,!1,!0);var a=f.join("");return C.replace(new RegExp("["+a+"]*$","g"),"")},I.getDecimalSeparator=function(){return 1.1.toLocaleString().substr(1,1)},I.repeat=function(C,f){return new Array(f<=0?0:f+1).join(C)},I.isNullOrEmpty=function(C){return!C||!C.length},I.padLeft=function(C,f,a){return I.repeat(a,Math.max(0,f-C.length))+C},I.trimInternal=function(C,f,a){var p=C.length;if(!p)return C;if(p<764833){var s=C;return f&&(s=s.replace(/^\s+/,"")),a&&(s=s.replace(/\s+$/,"")),s}var u=0;if(a)for(;p>0&&/\s/.test(C[p-1]);)p--;if(f&&p>0)for(;u<p&&/\s/.test(C[u]);)u++;return C.substring(u,p)},I}();l.StringUtils=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(49);l.isDefined=function(I){return null!=I},l.boolToInt=function(I){return I?1:0},l.boolToString=function(I){return I?"1":"0"},l.isNumber=function(I){return"number"==typeof I},l.isString=function(I){return"string"==typeof I},l.isNonNullString=function(I){return!!I},l.isEven=function(I){return I%2!=0},l.isOdd=function(I){return I%2==0},l.numberToStringBin=function(I,C){return void 0===C&&(C=0),c.StringUtils.padLeft(I.toString(2),C,"0")},l.numberToStringHex=function(I,C){return void 0===C&&(C=0),c.StringUtils.padLeft(I.toString(16),C,"0")}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ImageInfo=void 0;var c=o(83),I=function(){function C(f){this.url=void 0,this.base64=void 0,f&&(c.Base64Utils.checkPrependDataUrl(f)?this.base64=f:this.url=f),this.loadFailed=!1}return C.prototype.clone=function(){var f=new C;return f.url=this.url,f.base64=this.base64,f},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(f){this.base64=c.Base64Utils.normalizeToDataUrl(f,"image/png")},C.prototype.setUnableToLoadFlag=function(){this.loadFailed=!0},C.transparentWhiteImage1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAANSURBVBhXY/j///9/AAn7A/0FQ0XKAAAAAElFTkSuQmCC",C}();l.ImageInfo=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorPointsOrthogonalSideCalculatorBase=void 0;var c=o(13),I=o(9),C=o(6),f=function(){function a(p){this.parent=p}return Object.defineProperty(a.prototype,"connector",{get:function(){return this.parent.connector},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"beginRect",{get:function(){return this.parent.beginRect},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"endRect",{get:function(){return this.parent.endRect},enumerable:!1,configurable:!0}),a.prototype.getBeginOffsetPoints=function(p,s,u,d){if(s=this.getCorrectOriginPoint(s,d),p!==I.ConnectionPointSide.Undefined){if(this.isBeginEndSame())return this.getSameShapeOffsetPoints(p,s,u,d);if(this.isBeginEndOverlappedPoints(s,u))return this.getOverlappedPointsOffsetPoints(p,s,u,d);if(this.isBeginEndOverlapped())return this.getBeginOverlappedShapeOffsetPoints(p,s,u,d)}else if(this.isOriginRectContainsTargetPoint(d,u))return this.getOverlappedPointsOffsetPoints(p,s,u,d);return this.isOnSidePoint(s,u)?this.getBeginOnSideOffsetPoints(p,s,u,d):this.getBeginOffSideOffsetPoints(p,s,u,d)},a.prototype.getEndOffsetPoints=function(p,s,u,d){if(s=this.getCorrectOriginPoint(s,d),p!==I.ConnectionPointSide.Undefined){if(this.isBeginEndSame())return this.getSameShapeOffsetPoints(p,s,u,d);if(this.isBeginEndOverlappedPoints(u,s))return this.getOverlappedPointsOffsetPoints(p,s,u,d);if(this.isBeginEndOverlapped())return this.getEndOverlappedShapeOffsetPoints(p,s,u,d)}else if(this.isOriginRectContainsTargetPoint(d,u))return this.getOverlappedPointsOffsetPoints(p,s,u,d);return this.isOnSidePoint(s,u)?this.getEndOnSideOffsetPoints(p,s,u,d):this.getEndOffSideOffsetPoints(p,s,u,d)},a.prototype.getSide=function(p,s){return Math.abs(s.x-p.x)>Math.abs(s.y-p.y)?s.x>p.x?I.ConnectionPointSide.East:I.ConnectionPointSide.West:s.y>p.y?I.ConnectionPointSide.South:I.ConnectionPointSide.North},a.prototype.getSideCalculator=function(p,s){return this.parent.getSideCalculator(this.getSide(p,s))},a.prototype.getMinOffset=function(){return C.Connector.minOffset},a.prototype.isBeginEndSame=function(){return this.connector.beginItem===this.connector.endItem},a.prototype.isBeginEndOverlapped=function(){return this.beginRect&&this.endRect&&c.Rectangle.areIntersected(this.beginRect,this.endRect)},a.prototype.isBeginEndOverlappedX=function(){return this.beginRect&&this.endRect&&!!c.Rectangle.getHorizIntersection(this.beginRect,this.endRect)},a.prototype.isBeginEndOverlappedY=function(){return this.beginRect&&this.endRect&&!!c.Rectangle.getVertIntersection(this.beginRect,this.endRect)},a.prototype.isBeginEndOverlappedPoints=function(p,s){return this.beginRect&&this.endRect&&(this.beginRect.containsPoint(s)||this.endRect.containsPoint(p))},a.prototype.isOriginRectContainsTargetPoint=function(p,s){return p&&s&&p.containsPoint(s)},a}();l.ConnectorPointsOrthogonalSideCalculatorBase=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.AddShapeHistoryItem=void 0;var C=o(8),f=o(14),a=function(p){function s(u,d,h,g){var x=p.call(this)||this;return x.shapeDescription=u,x.position=d,x.text=h,x.dataKey=g,x}return I(s,p),s.prototype.redo=function(u){var d=new f.Shape(this.shapeDescription,this.position);"string"==typeof this.text&&(d.text=this.text),void 0!==this.dataKey&&(d.dataKey=this.dataKey),u.addShape(d,this.shapeKey),this.shapeKey=d.key},s.prototype.undo=function(u){u.deleteShape(u.model.findShape(this.shapeKey),!0)},s}(C.HistoryItem);l.AddShapeHistoryItem=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(g,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(g,x)},function(g,x){function b(){this.constructor=g}c(g,x),g.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(l,"__esModule",{value:!0}),l.GraphIterator=l.FastGraph=l.Graph=void 0;var C=o(38),f=o(14),a=o(41),p=o(90),s=function(){function g(x,b){this.nodeMap={},this.edgeMap={},this.nodes=[],this.edges=[],this.onInit(),x.forEach(this.addNode.bind(this)),b.forEach(this.addEdge.bind(this))}return Object.defineProperty(g.prototype,"items",{get:function(){return this.nodes.map(this.getNode.bind(this))},enumerable:!1,configurable:!0}),g.prototype.onInit=function(){},g.prototype.addEdge=function(x){this.edgeMap[x.key]=x,this.edges.push(x)},g.prototype.addNode=function(x){this.nodeMap[x.key]=x,this.nodes.push(x.key)},g.prototype.getNode=function(x){return this.nodeMap[x]},g.prototype.getEdge=function(x){return this.edgeMap[x]},g.prototype.isEmpty=function(){return!this.nodes.length&&!this.edges.length},g.prototype.getAdjacentEdges=function(x,b){return void 0===b&&(b=C.ConnectionMode.OutgoingAndIncoming),this.edges.filter(function(y){return b&C.ConnectionMode.Incoming&&y.to===x||b&C.ConnectionMode.Outgoing&&y.from===x})},g}(),u=function(g){function x(){return null!==g&&g.apply(this,arguments)||this}return I(x,g),x.prototype.cast=function(b,y){var E=this;return new x(this.nodes.map(function(S){return b(E.getNode(S))}),this.edges.map(function(S){return y?y(S):S}))},x.prototype.getConnectedComponents=function(){var b=this.createIterator(C.ConnectionMode.OutgoingAndIncoming);b.visitEachEdgeOnce=!0;for(var y=[],E=function(w){var T=[],k=[];b.onNode=function(R){return T.push(R)},b.onEdge=function(R){return k.push(R)},b.iterate(S.nodes[w]),T.length&&y.push(new x(T,k))},S=this,O=0;O<this.nodes.length;O++)E(O);return y},x.prototype.createIterator=function(b){var y=new h(this,b);return y.comparer=function(E,S){return E.weight-S.weight},y},x.prototype.getSpanningGraph=function(b,y,E){var S=this;if(void 0===E&&(E=void 0),!this.nodes.length)return new x([],[]);E||(E=function(P){return P.weight});var O=[],w=new p.HashSet,T=new p.HashSet([],function(P){return P.getHashKey()});for(this.addNodeToSpanningGraph(b,y,O,w,T,E);O.length&&w.length!==this.nodes.length;){var k=O.shift();T.tryPush(k);var R=w.contains(k.from)?k.to:k.from;this.addNodeToSpanningGraph(R,y,O,w,T,E),O=O.filter(function(P){return!w.contains(P.from)||!w.contains(P.to)})}return new x(w.list().map(function(P){return S.getNode(P)}),T.list())},x.prototype.addNodeToSpanningGraph=function(b,y,E,S,O,w){S.tryPush(b),this.getAdjacentEdges(b,y).filter(function(T){return!O.contains(T)}).forEach(function(T){var k=w(T),R=a.SearchUtils.binaryIndexOf(E,function(P){return P.weight-k});for(R=R<0?~R:R;R<E.length&&w(E[R])===k;)R++;E.splice(R,0,new C.Edge(T.key,T.from,T.to,k))})},x.create=function(b,y){return new x(b,y.filter(function(E){return E.beginItem&&E.endItem instanceof f.Shape&&E.endItem&&E.endItem instanceof f.Shape&&E.beginItem!==E.endItem}).map(function(E){return new C.Edge(E.key,E.beginItem&&E.beginItem.key,E.endItem&&E.endItem.key)}))},x}(s);l.Graph=u;var d=function(g){function x(){return null!==g&&g.apply(this,arguments)||this}return I(x,g),x.prototype.onInit=function(){this.parentToChildren={},this.childToParents={}},x.prototype.addEdge=function(b){g.prototype.addEdge.call(this,b),(this.parentToChildren[b.from]||(this.parentToChildren[b.from]=[])).push(b.to),(this.childToParents[b.to]||(this.childToParents[b.to]=[])).push(b.from)},x.prototype.getChildren=function(b){return this.parentToChildren[b]||[]},x.prototype.getParents=function(b){return this.childToParents[b]||[]},x.prototype.createIterator=function(b){return new h(this,b)},x}(s);l.FastGraph=d;var h=function(){function g(x,b){void 0===b&&(b=C.ConnectionMode.OutgoingAndIncoming),this.graph=x,this.connectionMode=b,this.visitEachEdgeOnce=!0,this.visitEachNodeOnce=!0,this.visitedNodes={},this.visitedEdges={}}return g.prototype.iterate=function(x){if(!this.visitEachNodeOnce&&!this.visitEachEdgeOnce&&!this.skipNode)throw"skipNode or visitEachNodeOnce or visitEachEdgeOnce must be set to avoid SOF";this.iterateCore(x)},g.prototype.iterateCore=function(x){var b=this,y=this.graph.getNode(x);if(!(!y||this.skipNode&&this.skipNode(y)||this.visitEachNodeOnce&&this.isNodeVisited(x))){this.visitedNodes[x]=!0,this.onNode&&this.onNode(y);var E=this.graph.getAdjacentEdges(x,this.connectionMode);if(this.skipEdge&&(E=E.filter(function(w){return!b.skipEdge(w)})),this.connectionMode&C.ConnectionMode.Outgoing){var S=E.filter(function(w){return w.from===x});this.comparer&&S.sort(this.comparer),S.forEach(function(w){b.visitEachEdgeOnce&&b.visitedEdges[w.key]||(b.visitedEdges[w.key]=!0,b.onEdge&&b.onEdge(w,!0),b.iterateCore(w.to),b.onAfterEdge&&b.onAfterEdge(w,!0))})}if(this.onAllEdges&&this.onAllEdges(y,!0),this.connectionMode&C.ConnectionMode.Incoming){var O=E.filter(function(w){return w.to===x});this.comparer&&O.sort(this.comparer),O.forEach(function(w){b.visitEachEdgeOnce&&b.visitedEdges[w.key]||(b.visitedEdges[w.key]=!0,b.onEdge&&b.onEdge(w,!1),b.iterateCore(w.from),b.onAfterEdge&&b.onAfterEdge(w,!1))})}this.onAllEdges&&this.onAllEdges(y,!1)}},g.prototype.isNodeVisited=function(x){return!!this.visitedNodes[x]},g.prototype.isEdgeVisited=function(x){return!!this.visitedEdges[x]},g}();l.GraphIterator=h},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.EllipsePrimitive=void 0;var C=o(15),f=function(a){function p(s,u,d,h,g,x,b){var y=a.call(this,g,x,void 0,b)||this;return y.cx=s,y.cy=u,y.rx=d,y.ry=h,y}return I(p,a),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"ellipse")},p.prototype.applyElementProperties=function(s,u){this.setUnitAttribute(s,"cx",this.cx),this.setUnitAttribute(s,"cy",this.cy),this.setUnitAttribute(s,"rx",this.rx),this.setUnitAttribute(s,"ry",this.ry),this.setPositionCorrectionAttribute(s),a.prototype.applyElementProperties.call(this,s,u)},p}(o(24).SvgPrimitive);l.EllipsePrimitive=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.ClipPathPrimitive=void 0;var C=o(15),f=function(a){function p(s,u){var d=a.call(this)||this;return d.id=s,d.children=u,d}return I(p,a),p.prototype.createMainElement=function(){var s=document.createElementNS(C.svgNS,"clipPath");return s.setAttribute("id",this.id),s},p.prototype.applyElementProperties=function(s,u){this.id&&s.setAttribute("id",this.id),a.prototype.applyElementProperties.call(this,s,u)},p}(o(24).SvgPrimitive);l.ClipPathPrimitive=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ExportImportCommandBase=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.isEnabledInReadOnlyMode=function(){return!0},a}(o(10).SimpleCommandBase);l.ExportImportCommandBase=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DiagramModelOperation=l.Diagnostics=l.RenderHelper=l.DiagramLocalizationService=l.NativeConnector=l.NativeShape=l.ShapeType=l.ColorUtils=l.PageOrientation=l.ConnectorPosition=l.ConnectorLineOption=l.ConnectorLineEnding=l.AutoZoomMode=l.Browser=l.UnitConverter=l.EventDispatcher=l.DataLayoutOrientation=l.DataLayoutType=l.ShapeCategories=l.ShapeTypes=l.DiagramUnit=l.default=l.DiagramControl=l.DiagramCommand=l.Point=l.Size=void 0;var c=o(82);Object.defineProperty(l,"DiagramCommand",{enumerable:!0,get:function(){return c.DiagramCommand}});var I=o(301);Object.defineProperty(l,"DiagramControl",{enumerable:!0,get:function(){return I.DiagramControl}}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return I.DiagramControl}});var C=o(2);Object.defineProperty(l,"Size",{enumerable:!0,get:function(){return C.Size}});var f=o(0);Object.defineProperty(l,"Point",{enumerable:!0,get:function(){return f.Point}});var a=o(3);Object.defineProperty(l,"EventDispatcher",{enumerable:!0,get:function(){return a.EventDispatcher}});var p=o(1);Object.defineProperty(l,"ShapeTypes",{enumerable:!0,get:function(){return p.ShapeTypes}}),Object.defineProperty(l,"ShapeCategories",{enumerable:!0,get:function(){return p.ShapeCategories}}),Object.defineProperty(l,"ShapeType",{enumerable:!0,get:function(){return p.ShapeType}});var s=o(12);Object.defineProperty(l,"UnitConverter",{enumerable:!0,get:function(){return s.UnitConverter}});var u=o(18);Object.defineProperty(l,"Browser",{enumerable:!0,get:function(){return u.Browser}});var d=o(28);Object.defineProperty(l,"AutoZoomMode",{enumerable:!0,get:function(){return d.AutoZoomMode}});var h=o(103);Object.defineProperty(l,"DataLayoutType",{enumerable:!0,get:function(){return h.DataLayoutType}});var g=o(20);Object.defineProperty(l,"DataLayoutOrientation",{enumerable:!0,get:function(){return g.DataLayoutOrientation}}),o(380);var x=o(32);Object.defineProperty(l,"ConnectorLineEnding",{enumerable:!0,get:function(){return x.ConnectorLineEnding}}),Object.defineProperty(l,"ConnectorLineOption",{enumerable:!0,get:function(){return x.ConnectorLineOption}});var b=o(22);Object.defineProperty(l,"ColorUtils",{enumerable:!0,get:function(){return b.ColorUtils}});var y=o(61);Object.defineProperty(l,"Diagnostics",{enumerable:!0,get:function(){return y.Diagnostics}});var E=o(84);Object.defineProperty(l,"NativeShape",{enumerable:!0,get:function(){return E.NativeShape}}),Object.defineProperty(l,"NativeConnector",{enumerable:!0,get:function(){return E.NativeConnector}});var S=o(36);Object.defineProperty(l,"DiagramLocalizationService",{enumerable:!0,get:function(){return S.DiagramLocalizationService}});var O=o(15);Object.defineProperty(l,"RenderHelper",{enumerable:!0,get:function(){return O.RenderHelper}});var w=o(47);Object.defineProperty(l,"DiagramUnit",{enumerable:!0,get:function(){return w.DiagramUnit}}),Object.defineProperty(l,"PageOrientation",{enumerable:!0,get:function(){return w.PageOrientation}});var T=o(16);Object.defineProperty(l,"DiagramModelOperation",{enumerable:!0,get:function(){return T.DiagramModelOperation}});var k=o(6);Object.defineProperty(l,"ConnectorPosition",{enumerable:!0,get:function(){return k.ConnectorPosition}})},function(he,l,o){"use strict";o.r(l),o.d(l,"__extends",function(){return I}),o.d(l,"__assign",function(){return C}),o.d(l,"__rest",function(){return f}),o.d(l,"__decorate",function(){return a}),o.d(l,"__param",function(){return p}),o.d(l,"__metadata",function(){return s}),o.d(l,"__awaiter",function(){return u}),o.d(l,"__generator",function(){return d}),o.d(l,"__createBinding",function(){return h}),o.d(l,"__exportStar",function(){return g}),o.d(l,"__values",function(){return x}),o.d(l,"__read",function(){return b}),o.d(l,"__spread",function(){return y}),o.d(l,"__spreadArrays",function(){return E}),o.d(l,"__await",function(){return S}),o.d(l,"__asyncGenerator",function(){return O}),o.d(l,"__asyncDelegator",function(){return w}),o.d(l,"__asyncValues",function(){return T}),o.d(l,"__makeTemplateObject",function(){return k}),o.d(l,"__importStar",function(){return P}),o.d(l,"__importDefault",function(){return B}),o.d(l,"__classPrivateFieldGet",function(){return W}),o.d(l,"__classPrivateFieldSet",function(){return N});var c=function(V,U){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,Y){K.__proto__=Y}||function(K,Y){for(var J in Y)Object.prototype.hasOwnProperty.call(Y,J)&&(K[J]=Y[J])})(V,U)};function I(V,U){function K(){this.constructor=V}c(V,U),V.prototype=null===U?Object.create(U):(K.prototype=U.prototype,new K)}var C=function(){return(C=Object.assign||function(V){for(var U,K=1,Y=arguments.length;K<Y;K++)for(var J in U=arguments[K])Object.prototype.hasOwnProperty.call(U,J)&&(V[J]=U[J]);return V}).apply(this,arguments)};function f(V,U){var K={};for(var Y in V)Object.prototype.hasOwnProperty.call(V,Y)&&U.indexOf(Y)<0&&(K[Y]=V[Y]);if(null!=V&&"function"==typeof Object.getOwnPropertySymbols){var J=0;for(Y=Object.getOwnPropertySymbols(V);J<Y.length;J++)U.indexOf(Y[J])<0&&Object.prototype.propertyIsEnumerable.call(V,Y[J])&&(K[Y[J]]=V[Y[J]])}return K}function a(V,U,K,Y){var J,j=arguments.length,ee=j<3?U:null===Y?Y=Object.getOwnPropertyDescriptor(U,K):Y;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ee=Reflect.decorate(V,U,K,Y);else for(var G=V.length-1;G>=0;G--)(J=V[G])&&(ee=(j<3?J(ee):j>3?J(U,K,ee):J(U,K))||ee);return j>3&&ee&&Object.defineProperty(U,K,ee),ee}function p(V,U){return function(K,Y){U(K,Y,V)}}function s(V,U){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(V,U)}function u(V,U,K,Y){return new(K||(K=Promise))(function(J,j){function ee(Z){try{q(Y.next(Z))}catch(X){j(X)}}function G(Z){try{q(Y.throw(Z))}catch(X){j(X)}}function q(Z){var X;Z.done?J(Z.value):(X=Z.value,X instanceof K?X:new K(function(M){M(X)})).then(ee,G)}q((Y=Y.apply(V,U||[])).next())})}function d(V,U){var K,Y,J,j,ee={label:0,sent:function(){if(1&J[0])throw J[1];return J[1]},trys:[],ops:[]};return j={next:G(0),throw:G(1),return:G(2)},"function"==typeof Symbol&&(j[Symbol.iterator]=function(){return this}),j;function G(q){return function(Z){return function(X){if(K)throw new TypeError("Generator is already executing.");for(;ee;)try{if(K=1,Y&&(J=2&X[0]?Y.return:X[0]?Y.throw||((J=Y.return)&&J.call(Y),0):Y.next)&&!(J=J.call(Y,X[1])).done)return J;switch(Y=0,J&&(X=[2&X[0],J.value]),X[0]){case 0:case 1:J=X;break;case 4:return ee.label++,{value:X[1],done:!1};case 5:ee.label++,Y=X[1],X=[0];continue;case 7:X=ee.ops.pop(),ee.trys.pop();continue;default:if(!(J=(J=ee.trys).length>0&&J[J.length-1])&&(6===X[0]||2===X[0])){ee=0;continue}if(3===X[0]&&(!J||X[1]>J[0]&&X[1]<J[3])){ee.label=X[1];break}if(6===X[0]&&ee.label<J[1]){ee.label=J[1],J=X;break}if(J&&ee.label<J[2]){ee.label=J[2],ee.ops.push(X);break}J[2]&&ee.ops.pop(),ee.trys.pop();continue}X=U.call(V,ee)}catch(M){X=[6,M],Y=0}finally{K=J=0}if(5&X[0])throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}([q,Z])}}}var h=Object.create?function(V,U,K,Y){void 0===Y&&(Y=K),Object.defineProperty(V,Y,{enumerable:!0,get:function(){return U[K]}})}:function(V,U,K,Y){void 0===Y&&(Y=K),V[Y]=U[K]};function g(V,U){for(var K in V)"default"===K||Object.prototype.hasOwnProperty.call(U,K)||h(U,V,K)}function x(V){var U="function"==typeof Symbol&&Symbol.iterator,K=U&&V[U],Y=0;if(K)return K.call(V);if(V&&"number"==typeof V.length)return{next:function(){return V&&Y>=V.length&&(V=void 0),{value:V&&V[Y++],done:!V}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(V,U){var K="function"==typeof Symbol&&V[Symbol.iterator];if(!K)return V;var Y,J,j=K.call(V),ee=[];try{for(;(void 0===U||U-- >0)&&!(Y=j.next()).done;)ee.push(Y.value)}catch(G){J={error:G}}finally{try{Y&&!Y.done&&(K=j.return)&&K.call(j)}finally{if(J)throw J.error}}return ee}function y(){for(var V=[],U=0;U<arguments.length;U++)V=V.concat(b(arguments[U]));return V}function E(){for(var V=0,U=0,K=arguments.length;U<K;U++)V+=arguments[U].length;var Y=Array(V),J=0;for(U=0;U<K;U++)for(var j=arguments[U],ee=0,G=j.length;ee<G;ee++,J++)Y[J]=j[ee];return Y}function S(V){return this instanceof S?(this.v=V,this):new S(V)}function O(V,U,K){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Y,J=K.apply(V,U||[]),j=[];return Y={},ee("next"),ee("throw"),ee("return"),Y[Symbol.asyncIterator]=function(){return this},Y;function ee(M){J[M]&&(Y[M]=function(se){return new Promise(function(ge,De){j.push([M,se,ge,De])>1||G(M,se)})})}function G(M,se){try{(ge=J[M](se)).value instanceof S?Promise.resolve(ge.value.v).then(q,Z):X(j[0][2],ge)}catch(De){X(j[0][3],De)}var ge}function q(M){G("next",M)}function Z(M){G("throw",M)}function X(M,se){M(se),j.shift(),j.length&&G(j[0][0],j[0][1])}}function w(V){var U,K;return U={},Y("next"),Y("throw",function(J){throw J}),Y("return"),U[Symbol.iterator]=function(){return this},U;function Y(J,j){U[J]=V[J]?function(ee){return(K=!K)?{value:S(V[J](ee)),done:"return"===J}:j?j(ee):ee}:j}}function T(V){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U,K=V[Symbol.asyncIterator];return K?K.call(V):(V=x(V),U={},Y("next"),Y("throw"),Y("return"),U[Symbol.asyncIterator]=function(){return this},U);function Y(J){U[J]=V[J]&&function(j){return new Promise(function(ee,G){var q,Z,X;q=ee,Z=G,X=(j=V[J](j)).done,Promise.resolve(j.value).then(function(se){q({value:se,done:X})},Z)})}}}function k(V,U){return Object.defineProperty?Object.defineProperty(V,"raw",{value:U}):V.raw=U,V}var R=Object.create?function(V,U){Object.defineProperty(V,"default",{enumerable:!0,value:U})}:function(V,U){V.default=U};function P(V){if(V&&V.__esModule)return V;var U={};if(null!=V)for(var K in V)"default"!==K&&Object.prototype.hasOwnProperty.call(V,K)&&h(U,V,K);return R(U,V),U}function B(V){return V&&V.__esModule?V:{default:V}}function W(V,U){if(!U.has(V))throw new TypeError("attempted to get private field on non-instance");return U.get(V)}function N(V,U,K){if(!U.has(V))throw new TypeError("attempted to set private field on non-instance");return U.set(V,K),K}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=function(){function I(C,f){void 0===C&&(C=0),void 0===f&&(f=0),this.x=C,this.y=f}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,f){return new I(f.x-C.x,f.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,f){var a=I.scalarProduct(C,f)/(C.length*f.length);return Math.acos(a)},I.scalarProduct=function(C,f){return C.x*f.x+C.y*f.y},I}();l.Vector=c},function(he,l,o){"use strict";var c,C;Object.defineProperty(l,"__esModule",{value:!0}),l.Diagnostics=void 0,(C=c||(c={}))[C.Disabled=0]="Disabled",C[C.Console=1]="Console",C[C.Document=2]="Document";var I=function(){function C(){}return C.beginAverage=function(f){this.enableLogsAndTimers&&(this.lastAverageGroupName=f)},C.endAverage=function(){this.enableLogsAndTimers&&(this.lastAverageGroupName=null)},C.tryLogAverage=function(f){var a=this;if(this.lastAverageGroupName!==f){var p=Object.keys(this.timers).map(function(u){return a.timers[u]}).filter(function(u){return u.groupName===f});if(!p.filter(function(u){return!u.endTime}).length){var s=p.reduce(function(u,d){return u+(d.endTime-d.startTime)},0)/p.length;this.log("average: "+s)}}},C.timer=function(f){this.enableLogsAndTimers&&(this.lastCreatedTimer={message:f,startTime:performance.now(),groupName:this.lastAverageGroupName})},C.endTimer=function(){var f=this;if(this.enableLogsAndTimers){var a=this.lastCreatedTimer,p=setTimeout(function(){a.endTime=performance.now(),f.showMessage('timer "'+a.message+'": '+(a.endTime-a.startTime)),a.groupName&&f.tryLogAverage(a.groupName)},0);this.timers[p]=a,this.lastCreatedTimer=null}},C.logPerfInfo=function(){var f=document.querySelector(".dxdi-control > svg").querySelectorAll("*").length,a=performance.memory;this.log("nodes: "+f.toLocaleString()+(a?" memory: ":"")+(a?a.usedJSHeapSize.toLocaleString():""))},C.log=function(f){this.showMessage(f)},C.showMessage=function(f){switch(C.mode){case c.Console:console.log(f);break;case c.Document:var a=this.getElement().value;if(this.lastMessage===f){var p=a.indexOf("\r\n");p<0&&(p=a.indexOf("\n"));var s=a.substr(0,p);/( \()([0-9]+)(\))$/.test(s)?s=s.replace(/( \()([0-9]+)(\))$/,function(u,d,h,g){return d+ ++h+g}):s+=" (1)",this.getElement().value=s+a.substr(p)}else this.getElement().value=f+"\r\n"+a,this.lastMessage=f}},C.getElement=function(){var f=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 a=document.createElement("button");a.innerHTML="x",a.addEventListener("click",function(){f.el.value="",f.lastMessage=""}),a.style.top="0px",a.style.right="400px",a.style.position="fixed",a.style.opacity="0.1",document.body.appendChild(a)}return this.el},C.mode=c.Document,C.optimizeUsingRAF=!0,C.optimizeLayers=!0,C.timers={},C.enableLogsAndTimers=!1,C}();l.Diagnostics=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DiagramModel=void 0;var c=o(14),I=o(6),C=o(3),f=o(13),a=o(2),p=o(0),s=o(46),u=o(22),d=o(47),h=o(4),g=function(){function x(b){void 0===b&&(b=new a.Size(8391,11906)),this.items=[],this.itemIndexByKey={},this.keyCounter=0,this.pageSize=new a.Size(8391,11906),this.pageLandscape=!1,this.pageColor=x.defaultPageColor,this.units=d.DiagramUnit.In,this.snapStartPoint=new p.Point(0,0),this.pageSize=b,this.size=this.pageSize.clone(),this.rectangle=f.Rectangle.fromGeometry(new p.Point(0,0),new a.Size(0,0)),this.initializeKeyCounter()}return Object.defineProperty(x.prototype,"pageWidth",{get:function(){return this.pageLandscape?this.pageSize.height:this.pageSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageHeight",{get:function(){return this.pageLandscape?this.pageSize.width:this.pageSize.height},enumerable:!1,configurable:!0}),x.prototype.getRectangle=function(b){return b&&(this.rectangle=h.ModelUtils.createRectangle(this.items)),this.rectangle},x.prototype.pushItem=function(b){var y=this.items.push(b);this.itemIndexByKey[b.key]=y-1,b instanceof c.Shape&&!b.image.isEmpty&&this.cacheShapeImage(b)},x.prototype.removeItem=function(b){var y=this.getItemIndex(b);delete this.itemIndexByKey[b.key],this.items.splice(y,1),this.updateIndicesHash(y)},x.prototype.updateIndicesHash=function(b){for(var y=b;y<this.items.length;y++)this.itemIndexByKey[this.items[y].key]=y},x.prototype.getItemIndex=function(b){return this.itemIndexByKey[b.key]},x.prototype.findShape=function(b){var y=this.findItem(b);return y instanceof c.Shape?y:void 0},x.prototype.findShapesCore=function(b){var y=[];return this.items.forEach(function(E){E instanceof c.Shape&&b(E)&&y.push(E)}),y},x.prototype.findShapeCore=function(b){for(var y=0;y<this.items.length;y++){var E=this.items[y];if(E instanceof c.Shape&&b(E))return E}},x.prototype.findShapeAtPosition=function(b){return this.findShapeCore(function(y){return y.position.equals(b)})},x.prototype.findShapeByDataKey=function(b){return this.findShapeCore(function(y){return y.dataKey===b})},x.prototype.findShapesByImageUrl=function(b){return this.findShapesCore(function(y){return y.image.url===b})},x.prototype.findShapesByDescription=function(b){return this.findShapesCore(function(y){return y.description.key===b.key})},x.prototype.cacheShapeImage=function(b){var y=s.ImageCache.instance.createUnloadedInfoByShapeImageInfo(b.image);y.isLoaded&&b.image.loadBase64Content(y.base64)},x.prototype.loadAllImages=function(b){s.ImageCache.instance.loadAllImages(b)},x.prototype.findContainer=function(b){var y=this.findShape(b);return y&&y.enableChildren?y:void 0},x.prototype.findNearestContainer=function(b){var y=this.findShape(b);return y?y.enableChildren?y:y.container:void 0},x.prototype.getChildren=function(b){var y=this;return b.children.map(function(E){return y.findItem(E.key)}).filter(function(E){return E})},x.prototype.findChild=function(b,y,E){var S,O=this;return void 0===E&&(E=!0),b.children.forEach(function(w){S||(w.key!==y?E&&w instanceof c.Shape&&(S=O.findChild(w,y,E)):S=w)}),S},x.prototype.findItemContainerCore=function(b,y){for(var E=b.container;E&&y&&!y(E);)E=E.container;return E},x.prototype.findItemContainer=function(b){return this.findItemContainerCore(b)},x.prototype.findItemCollapsedContainer=function(b){return this.findItemContainerCore(b,function(y){return!y.expanded})},x.prototype.findItemTopCollapsedContainer=function(b){for(var y,E=b.container;E;)E.expanded||(y=E),E=E.container;return y},x.prototype.isContainerItem=function(b,y){return void 0!==this.findItemContainerCore(y,function(E){return E.key===b.key})},x.prototype.findConnector=function(b){var y=this.findItem(b);return y instanceof I.Connector?y:void 0},x.prototype.findConnectorCore=function(b){for(var y=0;y<this.items.length;y++){var E=this.items[y];if(E instanceof I.Connector&&b(E))return E}},x.prototype.findConnectorAtPoints=function(b){return this.findConnectorCore(function(y){return C.GeometryUtils.arePointsEqual(y.points,b)})},x.prototype.findConnectorByDataKey=function(b){return this.findConnectorCore(function(y){return y.dataKey===b})},x.prototype.findConnectorByBeginEndDataKeys=function(b,y){return this.findConnectorCore(function(E){return E.beginItem&&E.beginItem.dataKey===b&&E.endItem&&E.endItem.dataKey===y})},x.prototype.findConnectorsCore=function(b){var y=[];return this.items.forEach(function(E){E instanceof I.Connector&&b(E)&&y.push(E)}),y},x.prototype.findConnectorsWithoutBeginItem=function(){return this.findConnectorsCore(function(b){return!b.beginItem})},x.prototype.findConnectorsWithoutEndItem=function(){return this.findConnectorsCore(function(b){return!b.endItem})},x.prototype.findItem=function(b){return this.items[this.itemIndexByKey[b]]},x.prototype.findItemByDataKey=function(b){return this.findItemCore(function(y){return y.dataKey===b})},x.prototype.findItemCore=function(b){for(var y=0;y<this.items.length;y++)if(b(this.items[y]))return this.items[y]},x.isIntersectedItems=function(b,y){var E=!1;return b instanceof c.Shape?E=y.intersectedByRect(b.rectangle):b instanceof I.Connector&&b.getSegments().forEach(function(S){y instanceof c.Shape?E=E||S.isIntersectedByRect(y.rectangle):y instanceof I.Connector&&y.getSegments().forEach(function(O){E=E||S.isIntersected(O)})}),E},x.prototype.getIntersectItems=function(b){var y=[];return this.items.forEach(function(E){E.container===b.container&&(b===E||E instanceof I.Connector&&-1!==b.attachedConnectors.indexOf(E)||!x.isIntersectedItems(E,b)||y.push(E))}),y},x.prototype.getIntersectItemsMinZIndex=function(b){return this.getIntersectItems(b).map(function(y){return y.zIndex}).reduce(function(y,E){return Math.min(y,E)},Number.MAX_VALUE)},x.prototype.getIntersectItemsMaxZIndex=function(b){return this.getIntersectItems(b).map(function(y){return y.zIndex}).reduce(function(y,E){return Math.max(y,E)},-Number.MAX_VALUE)},x.prototype.iterateItems=function(b){this.items.forEach(b)},x.prototype.getNextKey=function(){return(this.keyCounter++).toString()},x.prototype.initializeKeyCounter=function(){this.keyCounter=this.items.reduce(function(b,y){var E=parseInt(y.key);return Math.max(b,isNaN(E)?0:E+1)},this.items.length)},x.defaultPageColor=u.ColorUtils.LIGHT_COLOR,x}();l.DiagramModel=g},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(l,"__esModule",{value:!0}),l.TextPrimitive270degRenderHelper=l.TextPrimitive180degRenderHelper=l.TextPrimitive90degRenderHelper=l.TextPrimitiveRenderHelper=l.TextPrimitive=l.TextAngle=void 0;var C,y,f=o(12),a=o(15),p=o(24),s=o(17),u=o(64);(y=C=l.TextAngle||(l.TextAngle={}))[y.Angle0deg=0]="Angle0deg",y[y.Angle90deg=90]="Angle90deg",y[y.Angle180deg=180]="Angle180deg",y[y.Angle270deg=270]="Angle270deg";var d=function(y){function E(S,O,w,T,k,R,P,B,W,N,V,U,K){var Y=y.call(this,B,"",N,K)||this;return Y.x=S,Y.y=O,Y.text=w,Y.owner=T,Y.textWidth=k,Y.textHeight=R,Y.textSpacing=P,Y.reverseTextAhchor=W,Y.angle=U,Y.filterId=V,Y.textSegmens=u.textToParagraphs(Y.text),Y.renderHelper=Y.createRenderHelper(),void 0!==Y.textWidth&&void 0!==Y.textWidth&&(Y.x=Y.renderHelper.getTextX(Y.x),Y.y=Y.renderHelper.getTextY(Y.y)),Y}return I(E,y),E.prototype.createMainElement=function(){return document.createElementNS(a.svgNS,"text")},E.prototype.applyElementProperties=function(S,O){this.setUnitAttribute(S,"x",this.x),this.setUnitAttribute(S,"y",this.y),this.filterId&&S.setAttribute("filter",s.RenderUtils.getUrlPathById(this.filterId)),y.prototype.applyElementProperties.call(this,S,O),S.getAttribute("appliedText")!==this.text||S.getAttribute("appliedSize")!==(this.fitToSize&&this.fitToSize.toString())?(this.createTSpanElements(S,O),S.setAttribute("appliedText",this.text),S.setAttribute("appliedSize",this.fitToSize&&this.fitToSize.toString())):this.prepareTSpanElements(S),this.renderHelper.prepareMainElement(S,this.x,this.y)},E.prototype.createTSpanElements=function(S,O){var w=this;s.RenderUtils.removeContent(S),this.textSegmens.forEach(function(k,R){if(!k&&w.textSegmens.length>1)w.createTSpanElement(S).textContent=" ";else if(w.fitToSize){var P=u.textToWords(k),B=u.wordsByLines(f.UnitConverter.twipsToPixels(w.fitToSize),P,function(){return O.measureWords(P,w.style,w.owner)});B.forEach(function(W){w.createTSpanElement(S).textContent=W}),!B.length&&(w.createTSpanElement(S).textContent=" ")}else w.createTSpanElement(S).textContent=k});var T=S.firstChild;T&&this.prepareFirstTSpanElement(T,S.childNodes.length)},E.prototype.createTSpanElement=function(S){var O=document.createElementNS(a.svgNS,"tspan");return S.appendChild(O),this.prepareTSpanElement(O),O},E.prototype.prepareTSpanElements=function(S){for(var O=0;O<S.childNodes.length;O++)this.prepareTSpanElement(S.childNodes[O]);var T=S.firstChild;T&&this.prepareFirstTSpanElement(T,S.childNodes.length)},E.prototype.prepareTSpanElement=function(S){this.renderHelper.prepareTSpanElement(S,this.x,this.y)},E.prototype.prepareFirstTSpanElement=function(S,O){this.renderHelper.prepareFirstTSpanElement(S,O)},E.prototype.applyElementStyleProperties=function(S){this.applyElementStylePropertiesCore(S,this.reverseTextAhchor)},Object.defineProperty(E.prototype,"fitToSize",{get:function(){return this.renderHelper.fitToSize},enumerable:!1,configurable:!0}),E.prototype.createRenderHelper=function(){switch(this.angle){case C.Angle90deg:return new g(this);case C.Angle180deg:return new x(this);case C.Angle270deg:return new b(this);default:return new h(this)}},E.baselineCorrection=.35,E}(p.SvgPrimitive);l.TextPrimitive=d;var h=function(){function y(E){this.primitive=E}return Object.defineProperty(y.prototype,"textWidth",{get:function(){return this.primitive.textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"textHeight",{get:function(){return this.primitive.textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"fitToSize",{get:function(){return this.textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"textAnchor",{get:function(){return this.primitive.style["text-anchor"]},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"textSpacing",{get:function(){return this.primitive.textSpacing},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"angle",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"needRotation",{get:function(){return!1},enumerable:!1,configurable:!0}),y.prototype.prepareMainElement=function(E,S,O){this.needRotation&&E.setAttribute("transform","rotate("+this.angle+", "+f.UnitConverter.twipsToPixels(S)+", "+f.UnitConverter.twipsToPixels(O)+")")},y.prototype.prepareTSpanElement=function(E,S,O){this.primitive.setUnitAttribute(E,"x",S),E.setAttribute("dy",u.LINE_HEIGHT+"em")},y.prototype.prepareFirstTSpanElement=function(E,S){E.setAttribute("dy",(-(S-1)/2+d.baselineCorrection).toFixed(2)+"em")},y.prototype.getTextX=function(E){return this.textAnchor&&"middle"!==this.textAnchor?"end"===this.textAnchor?E+this.textWidth-this.textSpacing:"start"===this.textAnchor?E+this.textSpacing:E:E+this.textWidth/2},y.prototype.getTextY=function(E){return E+this.textHeight/2},y.prototype.setUnitAttribute=function(E,S,O){this.primitive.setUnitAttribute(E,S,O)},y}();l.TextPrimitiveRenderHelper=h;var g=function(y){function E(S){return y.call(this,S)||this}return I(E,y),Object.defineProperty(E.prototype,"fitToSize",{get:function(){return this.textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"angle",{get:function(){return 90},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"needRotation",{get:function(){return!0},enumerable:!1,configurable:!0}),E.prototype.getTextX=function(S){return S+this.textWidth/2},E.prototype.getTextY=function(S){return this.textAnchor&&"middle"!==this.textAnchor?"end"===this.textAnchor?S+this.textHeight-this.textSpacing:"start"===this.textAnchor?S+this.textSpacing:S:S+this.textHeight/2},E}(h);l.TextPrimitive90degRenderHelper=g;var x=function(y){function E(S){return y.call(this,S)||this}return I(E,y),Object.defineProperty(E.prototype,"angle",{get:function(){return 180},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"needRotation",{get:function(){return!0},enumerable:!1,configurable:!0}),E.prototype.getTextX=function(S){return this.textAnchor&&"middle"!==this.textAnchor?"start"===this.textAnchor?S+this.textWidth-this.textSpacing:"end"===this.textAnchor?S+this.textSpacing:S:S+this.textWidth/2},E}(h);l.TextPrimitive180degRenderHelper=x;var b=function(y){function E(S){return y.call(this,S)||this}return I(E,y),Object.defineProperty(E.prototype,"angle",{get:function(){return 270},enumerable:!1,configurable:!0}),E.prototype.getTextY=function(S){return this.textAnchor&&"middle"!==this.textAnchor?"start"===this.textAnchor?S+this.textHeight-this.textSpacing:"end"===this.textAnchor?S+this.textSpacing:S:S+this.textHeight/2},E}(g);l.TextPrimitive270degRenderHelper=b},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getLineHeight=l.getTextHeight=l.getTextLineSize=l.getOptimalTextRectangle=l.TEXTRECT_RATIO_EPS=l.textToParagraphs=l.textToWords=l.wordsByLines=l.LINE_HEIGHT=void 0;var c=o(3),I=o(2),C=o(44),f=/\s/gm;function a(E,S,O){if(1===S.length)return S;for(var w=O(),T=w.words[" "].width,k=[],R=0,P=-1,B=0;B<S.length;B++){var W=S[B],N=w.words[W].width;-1===P||R+T+N>E?(P=k.push(W)-1,R=N):(R+=T+N,k[P]+=" "+W)}return k}function p(E){return E.split(f).filter(function(S){return S.length})}function s(E){return E.split("\n")}l.LINE_HEIGHT=1.05,l.wordsByLines=a,l.textToWords=p,l.textToParagraphs=s,l.TEXTRECT_RATIO_EPS=1.2;function d(E,S,O){var w=E<1?1/E:E,T=S<1?1/S:S,k=w/T;return(k<1?1/k:k)<=O?0:T>w?1:-1}function h(E,S,O,w){return g(b(E,S,O,!1),w)}function g(E,S){return[C.Data.byRange(E,S.from,S.to),E<=S.to]}function x(E,S){return p(E).reduce(function(O,w,T){var k=S.words[w];return O.width+=k.width,O.height=Math.max(O.height,k.height),T>0&&(O.width+=S.words[" "].width),O},new I.Size(0,0))}function b(E,S,O,w){var T=Array.isArray(E)?E:s(E);return!w||T.length&&(1!==T.length||T[0].length)?T.reduce(function(k,R){return k+a(S,p(R),function(){return O}).length},0)*y(O):y(O)}function y(E){return E.fontSize*l.LINE_HEIGHT}l.getOptimalTextRectangle=function(E,S,O,w,T,k,R,P,B,W){if(void 0===R&&(R=0),void 0===P&&(P=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE),void 0===B&&(B=0),void 0===W&&(W=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE),!E)return new I.Size(C.Data.byRange(T.width,R,P),C.Data.byRange(T.height,B,W));if(R>P||B>W)throw new Error("Min size cannot exceed max size");if(R===P&&B===W)return new I.Size(R,B);var N=w.measureWords(E,S,O),V=s(E),U=Object.keys(N.words).reduce(function(j,ee){return Math.max(j,N.words[ee].width)},0),K=new c.Range(C.Data.byRange(Math.max(T.width,U),R,P),P),Y=new c.Range(C.Data.byRange(T.height,B,W),W);return U<=T.width&&b(V,T.width,N,!1)<=T.height&&K.includes(T.width)&&Y.includes(T.height)?T:function(j,ee,G,q,Z,X){for(var M,se,ge=j.reduce(function(de,le){return Math.max(de,x(le,ee).width)},0),De=new I.Size(0,0),Fe=new I.Size(0,0),Ae=0,ne=0,fe=0;fe<5;fe++){if(0===fe)Fe.width=g(ge,q)[0];else{if(!(Math.abs(Ae)>1))break;Fe.width=g(De.width+Ae,q)[0]}if(M=h(j,Fe.width,ee,Z),Fe.height=M[0],se=M[1],0===fe&&(ne=(De=Fe.clone()).width/De.height/G),0===fe&&!se)break;var _e=Fe.width/Fe.height,ie=_e/G;if(0===fe)Ae=(Fe.width/ie-Fe.width)/2;else if(se){if(!d(G,_e,l.TEXTRECT_RATIO_EPS)){De=Fe.clone(),ne=ie;break}if(!(d(ne,ie,1)<0))break;De=Fe.clone(),ne=ie,Ae=(Fe.width/ie-Fe.width)/2,ie<1&&(Ae/=2)}else Ae/=2}return X&&(De.height=C.Data.byRange(De.width/G,De.height,Z.to)),De}(V,N,T.width/T.height,K,Y,k)},l.getTextLineSize=x,l.getTextHeight=b,l.getLineHeight=y},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(18),I=o(50),C=o(27),f=o(176),a=function(){function p(){}return p.preventEvent=function(s){s.cancelable&&(s.preventDefault?s.preventDefault():s.returnValue=!1)},p.getEventSource=function(s){return I.isDefined(s)?p.getEventSourceCore(s):null},p.getEventSourceByPosition=function(s){if(!I.isDefined(s))return null;if(!document.elementFromPoint)return p.getEventSourceCore(s);var u=p.getEventX(s)-(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollLeft():0),d=p.getEventY(s)-(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollTop():0);return void 0===u||void 0===d?p.getEventSourceCore(s):document.elementFromPoint(u,d)},p.getEventSourceCore=function(s){return s.srcElement?s.srcElement:s.target},p.getMouseWheelEventName=function(){return c.Browser.Safari?"mousewheel":c.Browser.NetscapeFamily&&c.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},p.isLeftButtonPressed=function(s){return!!f.TouchUtils.isTouchEvent(s)||!!(s=c.Browser.IE&&I.isDefined(event)?event:s)&&(c.Browser.IE&&c.Browser.Version<11?!!c.Browser.MSTouchUI||s.button%2==1:c.Browser.WebKitFamily?"pointermove"===s.type||"pointerenter"===s.type||"pointerleave"===s.type?1===s.buttons:1===s.which:c.Browser.NetscapeFamily||c.Browser.Edge||c.Browser.IE&&c.Browser.Version>=11?p.isMoveEventName(s.type)?1===s.buttons:1===s.which:!c.Browser.Opera||0===s.button)},p.isMoveEventName=function(s){return s===f.TouchUtils.touchMouseMoveEventName||s===p.getMoveEventName()},p.getMoveEventName=function(){return window.PointerEvent?"pointermove":c.Browser.TouchUI?"touchmove":"mousemove"},p.preventEventAndBubble=function(s){p.preventEvent(s),s.stopPropagation&&s.stopPropagation(),s.cancelBubble=!0},p.clientEventRequiresDocScrollCorrection=function(){return c.Browser.AndroidDefaultBrowser||c.Browser.AndroidChromeBrowser||!(c.Browser.Safari&&c.Browser.Version<3||c.Browser.MacOSMobilePlatform&&c.Browser.Version<5.1)},p.getEventX=function(s){return f.TouchUtils.isTouchEvent(s)?f.TouchUtils.getEventX(s):s.clientX+(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollLeft():0)},p.getEventY=function(s){return f.TouchUtils.isTouchEvent(s)?f.TouchUtils.getEventY(s):s.clientY+(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollTop():0)},p.cancelBubble=function(s){s.cancelBubble=!0},p.getWheelDelta=function(s){var u;return u=c.Browser.NetscapeFamily&&c.Browser.MajorVersion<17?-s.detail:c.Browser.Safari?s.wheelDelta:-s.deltaY,c.Browser.Opera&&c.Browser.Version<9&&(u=-u),u},p}();l.EvtUtils=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.AddConnectorHistoryItem=void 0;var C=o(8),f=o(6),a=function(p){function s(u,d,h){var g=p.call(this)||this;return g.points=u,g.dataKey=d,g.renderPointsContext=h,g}return I(s,p),s.prototype.redo=function(u){var d=new f.Connector(this.points);void 0!==this.dataKey&&(d.dataKey=this.dataKey),void 0!==this.renderPointsContext&&d.replaceRenderPoints(this.renderPointsContext),u.addConnector(d,this.connectorKey),this.connectorKey=d.key},s.prototype.undo=function(u){var d=u.model.findConnector(this.connectorKey);u.deleteConnector(d)},s}(C.HistoryItem);l.AddConnectorHistoryItem=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.DeleteConnectionHistoryItem=void 0;var C=o(8),f=o(6),a=function(p){function s(u,d){var h=p.call(this)||this;return h.connectorKey=u.key,h.position=d,h.itemKey=u.getExtremeItem(h.position).key,h}return I(s,p),s.prototype.redo=function(u){var d=u.model.findConnector(this.connectorKey);this.oldConnectionPointIndex=this.position===f.ConnectorPosition.Begin?d.beginConnectionPointIndex:d.endConnectionPointIndex,u.deleteConnection(d,this.position)},s.prototype.undo=function(u){var d=u.model.findConnector(this.connectorKey),h=u.model.findItem(this.itemKey);u.addConnection(d,h,this.oldConnectionPointIndex,this.position)},s}(C.HistoryItem);l.DeleteConnectionHistoryItem=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.SetSelectionHistoryItem=void 0;var C=function(f){function a(p,s,u){var d=f.call(this)||this;return d.selectedKeys=s,d.selection=p,d.forceChange=u,d}return I(a,f),a.prototype.redo=function(){this.oldSelection=this.selection.getKeys().slice(0),this.selection.set(this.selectedKeys,this.forceChange)},a.prototype.undo=function(){this.selection.set(this.oldSelection,this.forceChange)},a}(o(8).HistoryItem);l.SetSelectionHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeConnectorTextHistoryItem=void 0;var C=function(f){function a(p,s,u){var d=f.call(this)||this;return d.connectorKey=p.key,d.text=u,d.position=s,d}return I(a,f),a.prototype.redo=function(p){var s=p.model.findConnector(this.connectorKey);this.oldText=s.getText(this.position),p.changeConnectorText(s,this.text,this.position)},a.prototype.undo=function(p){var s=p.model.findConnector(this.connectorKey);p.changeConnectorText(s,this.oldText,this.position)},a}(o(8).HistoryItem);l.ChangeConnectorTextHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeStyleTextHistoryItem=void 0;var C=function(f){function a(p,s,u){return f.call(this,p,s,u)||this}return I(a,f),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey);this.oldStyleValue=s.styleText[this.styleProperty],p.changeStyleText(s,this.styleProperty,this.styleValue)},a.prototype.undo=function(p){var s=p.model.findItem(this.itemKey);p.changeStyleText(s,this.styleProperty,this.oldStyleValue)},a}(o(118).ChangeStyleHistoryItemBase);l.ChangeStyleTextHistoryItem=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Margin=l.EdgeLayout=l.NodeLayout=l.NodeInfo=void 0;var c=o(13);l.NodeInfo=function(p,s,u,d){void 0===d&&(d=[]),this.key=p,this.margin=s,this.size=u,this.connectionPoints=d};var C=function(){function p(s,u){this.info=s,this.position=u}return Object.defineProperty(p.prototype,"key",{get:function(){return this.info.key},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"rectangle",{get:function(){return c.Rectangle.fromGeometry(this.position,this.info.size)},enumerable:!1,configurable:!0}),p}();l.NodeLayout=C,l.EdgeLayout=function(p,s,u){this.key=p,this.beginIndex=s,this.endIndex=u};var a=function(){function p(s,u,d,h){void 0===u&&(u=s),void 0===d&&(d=s),void 0===h&&(h=s),this.top=s,this.right=u,this.bottom=d,this.left=h}return p.empty=function(){return new p(0)},p}();l.Margin=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.EllipseShapeDescription=void 0;var C=o(7),f=o(2),a=o(55),p=o(1),s=o(3),u=o(13),d=function(h){function g(x){return h.call(this,new f.Size(C.ShapeDefaultDimension,.75*C.ShapeDefaultDimension),x)||this}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return p.ShapeTypes.Ellipse},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),g.prototype.getTextRectangle=function(x){var b=s.GeometryUtils.getMaxRectangleEnscribedInEllipse(x.size);return u.Rectangle.fromGeometry(x.position.clone().offset((x.size.width-b.width)/2,(x.size.height-b.height)/2),b)},g.prototype.getSizeByText=function(x,b){return s.GeometryUtils.getEllipseByEnscribedRectangle(x)},g.prototype.createShapePrimitives=function(x){var b=x.rectangle,S=b.center;return[new a.EllipsePrimitive(S.x,S.y,b.width/2,b.height/2,x.style)]},g}(C.ShapeDescription);l.EllipseShapeDescription=d},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Exporter=void 0;var c=o(14),I=o(6),C=o(3),f=function(){function a(){}return a.prototype.export=function(p){var s={page:{},connectors:[],shapes:[]};return s.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,s),JSON.stringify(s)},a.prototype.exportItems=function(p){var s={connectors:[],shapes:[]};return this.exportItemsCore(p,s),JSON.stringify(s)},a.prototype.exportItemsCore=function(p,s){var u=this;p.forEach(function(d){if(d instanceof c.Shape)s.shapes.push(u.exportShape(d));else if(d instanceof I.Connector){var h=u.exportConnector(d);d.beginItem&&(h.beginItemKey=d.beginItem.key,h.beginConnectionPointIndex=d.beginConnectionPointIndex),d.endItem&&(h.endItemKey=d.endItem.key,h.endConnectionPointIndex=d.endConnectionPointIndex),s.connectors.push(h)}})},a.prototype.exportItem=function(p){return{key:p.key,dataKey:p.dataKey,customData:C.ObjectUtils.cloneObject(p.customData),locked:p.locked,zIndex:p.zIndex}},a.prototype.exportShape=function(p){var s=this.exportItem(p);s.type=p.description.key,s.text=p.text,p.image.isEmpty||(s.imageUrl=p.image.exportUrl),s.x=p.position.x,s.y=p.position.y,s.width=p.size.width,s.height=p.size.height;var u=p.parameters.toObject();u&&(s.parameters=u);var d=p.style.toObject();d&&(s.style=d);var h=p.styleText.toObject();return h&&(s.styleText=h),p.children.length&&(s.childKeys=p.children.map(function(g){return g.key})),p.expanded||(s.expanded=!1),p.expandedSize&&(s.expandedWidth=p.expandedSize.width,s.expandedHeight=p.expandedSize.height),s},a.prototype.exportConnector=function(p){var s=this.exportItem(p);s.points=p.points.map(function(x){return{x:x.x,y:x.y}});var u=p.texts.toObject();u&&(s.texts=u);var d=p.properties.toObject();d&&(s.properties=d);var h=p.style.toObject();h&&(s.style=h);var g=p.styleText.toObject();return g&&(s.styleText=g),s},a.prototype.exportSvg=function(p,s,u,d){u.exportSvgImage(p,s,d)},a.prototype.exportPng=function(p,s,u,d,h){u.exportPngImage(p,s,d,h)},a.prototype.exportJpg=function(p,s,u,d,h){u.exportJpgImage(p,s,d,h)},a}();l.Exporter=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ToggleStyleTextPropertyCommand=void 0;var C=o(134),f=o(70),a=o(26),p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentTextStylePropertyValue(this.getStyleProperty())===this.getStylePropertyValue()},u.prototype.executeCore=function(d){var h=this;this.control.history.beginTransaction();var g=this.getStyleProperty(),x=d.value?a.TextStyle.defaultInstance[g]:this.getStylePropertyValue();return this.control.selection.getSelectedItems().forEach(function(b){h.control.history.addAndRedo(new f.ChangeStyleTextHistoryItem(b.key,g,x))}),this.control.selection.inputPosition.setTextStylePropertyValue(this.getStyleProperty(),x),this.control.history.endTransaction(),!0},u.prototype.getStyleObj=function(d){return d.styleText},u.prototype.getDefaultStyleObj=function(){return new a.TextStyle},u}(C.StylePropertyCommandBase);l.ToggleStyleTextPropertyCommand=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeStylePropertyCommand=void 0;var C=o(135),f=o(89),a=o(26),p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentStylePropertyValue(this.getStyleProperty())},u.prototype.getStyleObj=function(d){return d.style},u.prototype.getDefaultStyleObj=function(){return new a.Style},u.prototype.createHistoryItem=function(d,h,g){return new f.ChangeStyleHistoryItem(d.key,h,g)},u.prototype.updateInputPosition=function(d){this.control.selection.inputPosition.setStylePropertyValue(this.getStyleProperty(),d)},u}(C.ChangeStylePropertyCommandBase);l.ChangeStylePropertyCommand=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(g,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(g,x)},function(g,x){function b(){this.constructor=g}c(g,x),g.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(l,"__esModule",{value:!0}),l.AutoLayoutCommandBase=void 0;var C=o(4),f=o(10),a=o(14),p=o(6),s=o(3),u=o(13),d=o(251),h=function(g){function x(){return null!==g&&g.apply(this,arguments)||this}return I(x,g),x.prototype.executeCore=function(b,y){var E=this;this.control.history.beginTransaction();var S=this.getAffectedShapes(),O=this.getAffectedConnectors(),w=this.createLayoutSettings(),T=C.ModelUtils.getGraphInfoByItems(this.control.model,S,O,!1);if(T.length){var k,R=this.control.model,P=s.GeometryUtils.getCommonRectangle(s.Utils.flatten(T.map(function(B){return B.graph.items.map(function(W){return R.findItem(W.key)})})).concat(T.map(function(B){return B.container})).filter(function(B){return B}).map(function(B){return B.rectangle}));this.control.history.addAndRedo(new d.ScrollIntoViewOnUndoHistoryItem(this.control.view,P)),T.forEach(function(B){var W=E.createLayout(w,B.graph),N=C.ModelUtils.getNonGraphItems(E.control.model,B.container,W.nodeToLayout,S,O),V=C.ModelUtils.applyLayout(E.control.history,E.control.model,B.container,B.graph,W,N,w,E.control.settings.snapToGrid,E.control.settings.gridSize,!1);k=k&&u.Rectangle.union(k,V)||V}),C.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.addAndRedo(new d.ScrollIntoViewOnRedoHistoryItem(this.control.view,k))}return this.control.history.endTransaction(),!0},x.prototype.getAffectedShapes=function(){return this.control.selection.isEmpty()?this.control.model.items.filter(function(b){return b instanceof a.Shape&&!b.locked}):this.control.selection.getSelectedShapes(!1,!0)},x.prototype.getAffectedConnectors=function(){return this.control.selection.isEmpty()?this.control.model.items.filter(function(b){return b instanceof p.Connector&&!b.locked}):this.control.selection.getSelectedConnectors(!1,!0)},x}(f.SimpleCommandBase);l.AutoLayoutCommandBase=h},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangePagePropertyCommand=void 0;var C=o(4),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.executeCore=function(s,u){var d=this;return this.control.history.beginTransaction(),this.createHistoryItems(u).forEach(function(h){d.control.history.addAndRedo(h)}),C.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.endTransaction(),!0},p.prototype.getItems=function(){return null},p}(o(10).SimpleCommandBase);l.ChangePagePropertyCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(b,y){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var O in S)S.hasOwnProperty(O)&&(E[O]=S[O])})(b,y)},function(b,y){function E(){this.constructor=b}c(b,y),b.prototype=null===y?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(l,"__esModule",{value:!0}),l.CanvasItemsManager=l.CONNECTOR_CAN_MOVE=l.NOT_VALID_CSSCLASS=void 0;var C=o(99),f=o(11),a=o(39),p=o(17),s=o(14),u=o(6),d=o(27),h=o(140),g=o(4);l.NOT_VALID_CSSCLASS="not-valid",l.CONNECTOR_CAN_MOVE="can-move";var x=function(b){function y(E,S,O){var w=b.call(this,S,O)||this;return w.itemSelectorGroupContainers={},w.itemSelectorElements={},w.itemGroupContainers={},w.itemElements={},w.itemChildElements={},w.primitives={},w.selectorPrimitives={},w.selectedItems={},w.initializeContainerElements(E),w}return I(y,b),y.prototype.initializeContainerElements=function(E){this.itemSelectorsContainer=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null),E),this.itemsContainer=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null),E)},y.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={}},y.prototype.applyChange=function(E){var S=E.item;return!!this.getItemParent(S.zIndex,S.container&&S.container.key)&&(S instanceof s.Shape?this.applyShapeChange(S,E.type,E.isValid):S instanceof u.Connector&&this.applyConnectorChange(S,E.type,E.isValid),!0)},y.prototype.setPointerEventsNone=function(E,S){var O=E.style;void 0!==O&&void 0!==O.pointerEvents&&(O.pointerEvents=S?"none":"");for(var w=E.childNodes,T=0;T<w.length;T++)this.setPointerEventsNone(w[T],S)},y.prototype.notifyDragStart=function(E){var S=this;E.forEach(function(O){S.itemElements[O]&&S.setPointerEventsNone(S.itemElements[O],!0),S.itemChildElements[O]&&S.setPointerEventsNone(S.itemChildElements[O],!0),S.itemSelectorElements[O]&&S.setPointerEventsNone(S.itemSelectorElements[O],!0)})},y.prototype.notifyDragEnd=function(E){var S=this;E.forEach(function(O){S.itemElements[O]&&S.setPointerEventsNone(S.itemElements[O],!1),S.itemChildElements[O]&&S.setPointerEventsNone(S.itemChildElements[O],!1),S.itemSelectorElements[O]&&S.setPointerEventsNone(S.itemSelectorElements[O],!1)})},y.prototype.notifyDragScrollStart=function(){},y.prototype.notifyDragScrollEnd=function(){},y.prototype.notifyTextInputStart=function(E,S,O,w){d.DomUtils.addClassName(this.itemElements[E.key],"text-input")},y.prototype.notifyTextInputEnd=function(E,S){d.DomUtils.removeClassName(this.itemElements[E.key],"text-input")},y.prototype.notifyTextInputPermissionsCheck=function(E,S){var O=this.itemElements[E.key];S?d.DomUtils.removeClassName(O,l.NOT_VALID_CSSCLASS):d.DomUtils.addClassName(O,l.NOT_VALID_CSSCLASS)},y.prototype.notifyActualZoomChanged=function(E){var S="scale("+E+")";this.dom.changeByFunc(this.itemsContainer,function(O){return O.setAttribute("transform",S)}),this.dom.changeByFunc(this.itemSelectorsContainer,function(O){return O.setAttribute("transform",S)}),this.actualZoom=E},y.prototype.notifyViewAdjusted=function(E){},y.prototype.invalidatePrimitives=function(E){this.primitives[E.key]&&(this.primitives[E.key].forEach(function(S){S.dispose()}),delete this.primitives[E.key]),this.selectorPrimitives[E.key]&&(this.selectorPrimitives[E.key].forEach(function(S){S.dispose()}),delete this.selectorPrimitives[E.key])},y.prototype.getPrimitives=function(E){return this.primitives[E.key]||(this.primitives[E.key]=E.createPrimitives()),this.primitives[E.key]},y.prototype.getSelectorPrimitives=function(E){return this.selectorPrimitives[E.key]||(this.selectorPrimitives[E.key]=E.createSelectorPrimitives()),this.selectorPrimitives[E.key]},y.prototype.getShapeSelectorClassName=function(E){var S="shape";return E.enableChildren&&(S+=" container"),E.isLocked&&(S+=" locked"),S},y.prototype.getShapeClassName=function(E,S){var O=this.getShapeSelectorClassName(E);return S?O:O+" "+l.NOT_VALID_CSSCLASS},y.prototype.applyShapeChange=function(E,S,O){var w=E.key,T=E.container&&E.container.key,k=this.getItemSelectorGroupContainer(E.zIndex,T),R=this.getItemGroupContainer(E.zIndex,T),P=this.getShapeClassName(E,O);switch(S){case C.ItemChangeType.Create:this.itemSelectorElements[w]=this.createItemElements(w,this.getSelectorPrimitives(E),k,this.getShapeSelectorClassName(E),f.MouseEventElementType.Shape),this.itemElements[w]=this.createItemElements(w,this.getPrimitives(E),R,P,f.MouseEventElementType.Shape),E.enableChildren&&(this.itemChildElements[w]=this.createItemElements(w,[],R,"container-children",f.MouseEventElementType.Undefined),this.changeItemChildrenVisibility(this.itemChildElements[w],E.expanded));break;case C.ItemChangeType.Remove:this.removeItemCustomContent(this.itemSelectorElements[w],this.getSelectorPrimitives(E)),this.removeItemCustomContent(this.itemElements[w],this.getPrimitives(E)),this.invalidatePrimitives(E),this.removeItemElements(this.itemSelectorElements[w]),delete this.itemSelectorElements[w],this.removeItemElements(this.itemElements[w]),delete this.itemElements[w],this.itemChildElements[w]&&(this.removeItemElements(this.itemChildElements[w]),delete this.itemChildElements[w],delete this.itemGroupContainers[w],delete this.itemSelectorGroupContainers[w]);break;case C.ItemChangeType.UpdateStructure:case C.ItemChangeType.UpdateProperties:case C.ItemChangeType.Update:S!==C.ItemChangeType.Update&&(S===C.ItemChangeType.UpdateStructure&&(this.removeItemCustomContent(this.itemSelectorElements[w],this.getSelectorPrimitives(E)),this.removeItemCustomContent(this.itemElements[w],this.getPrimitives(E))),this.invalidatePrimitives(E)),this.changeItemElements(this.getSelectorPrimitives(E),this.itemSelectorElements[w],S===C.ItemChangeType.UpdateStructure),this.changeItemElements(this.getPrimitives(E),this.itemElements[w],S===C.ItemChangeType.UpdateStructure),this.changeItemClassName(this.itemElements[w],P),this.itemChildElements[w]&&this.changeItemChildrenVisibility(this.itemChildElements[w],E.expanded),k!==(this.itemSelectorElements[w]&&this.itemSelectorElements[w].parentNode)&&this.moveItemElements(k,this.itemSelectorElements[w]),R!==(this.itemElements[w]&&this.itemElements[w].parentNode)&&this.moveItemElements(R,this.itemElements[w]),this.itemChildElements[w]&&R!==this.itemChildElements[w].parentNode&&this.moveItemElements(R,this.itemChildElements[w]);break;case C.ItemChangeType.UpdateClassName:this.changeItemClassName(this.itemElements[w],P)}},y.prototype.getConnectorSelectorClassName=function(E){return g.ModelUtils.canMoveConnector(this.selectedItems,E)?"connector "+l.CONNECTOR_CAN_MOVE:"connector"},y.prototype.getConnectorClassName=function(E,S){var O=this.getConnectorSelectorClassName(E);return S?O:O+" "+l.NOT_VALID_CSSCLASS},y.prototype.applyConnectorChange=function(E,S,O){var w=E.key,T=E.container&&E.container.key,k=this.getItemSelectorGroupContainer(E.zIndex,T),R=this.getItemGroupContainer(E.zIndex,T),P=this.getConnectorClassName(E,O);switch(S){case C.ItemChangeType.Create:this.itemSelectorElements[w]=this.createItemElements(w,this.getSelectorPrimitives(E),k,this.getConnectorSelectorClassName(E),f.MouseEventElementType.Connector),this.itemElements[w]=this.createItemElements(w,this.getPrimitives(E),R,P,f.MouseEventElementType.Connector);break;case C.ItemChangeType.Remove:this.removeItemCustomContent(this.itemSelectorElements[w],this.getSelectorPrimitives(E)),this.removeItemCustomContent(this.itemElements[w],this.getPrimitives(E)),this.invalidatePrimitives(E),this.removeItemElements(this.itemSelectorElements[w]),delete this.itemSelectorElements[w],this.removeItemElements(this.itemElements[w]),delete this.itemElements[w];break;case C.ItemChangeType.UpdateStructure:case C.ItemChangeType.UpdateProperties:case C.ItemChangeType.Update:S!==C.ItemChangeType.Update&&(S===C.ItemChangeType.UpdateStructure&&(this.removeItemCustomContent(this.itemSelectorElements[w],this.getSelectorPrimitives(E)),this.removeItemCustomContent(this.itemElements[w],this.getPrimitives(E))),this.invalidatePrimitives(E)),this.changeItemElements(this.getSelectorPrimitives(E),this.itemSelectorElements[w],S===C.ItemChangeType.UpdateStructure),this.changeItemClassName(this.itemSelectorElements[w],this.getConnectorSelectorClassName(E)),this.changeItemElements(this.getPrimitives(E),this.itemElements[w],S===C.ItemChangeType.UpdateStructure),this.changeItemClassName(this.itemElements[w],P),k!==(this.itemSelectorElements[w]&&this.itemSelectorElements[w].parentNode)&&this.moveItemElements(k,this.itemSelectorElements[w]),R!==(this.itemElements[w]&&this.itemElements[w].parentNode)&&this.moveItemElements(R,this.itemElements[w]);break;case C.ItemChangeType.UpdateClassName:this.changeItemClassName(this.itemSelectorElements[w],this.getConnectorSelectorClassName(E)),this.changeItemClassName(this.itemElements[w],P)}},y.prototype.createItemElements=function(E,S,O,w,T){var k=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],w,void 0,void 0,function(R){return p.RenderUtils.setElementEventData(R,T,E)}),O);return this.createAndChangePrimitivesElements(S,k),k},y.prototype.changeItemElements=function(E,S,O){O||E.length!==S.childNodes.length?(p.RenderUtils.removeContent(S),this.createAndChangePrimitivesElements(E,S)):this.dom.changeChildrenByPrimitives(E,S)},y.prototype.changeItemClassName=function(E,S){S&&E&&this.changePrimitiveElement(new a.GroupPrimitive([],S),E)},y.prototype.removeItemElements=function(E){E&&E.parentNode&&E.parentNode.removeChild(E)},y.prototype.removeItemCustomContent=function(E,S){E&&S&&S.length===E.childNodes.length&&S.forEach(function(O,w){O.destroyCustomContent(E.childNodes[w])})},y.prototype.moveItemElements=function(E,S,O){S&&E&&(O?E.insertBefore(S,O):E.appendChild(S))},y.prototype.changeItemChildrenVisibility=function(E,S){E.style.display=S?"":"none"},y.prototype.getItemGroupContainerKey=function(E,S){return void 0!==S?E+"_"+S:E.toString()},y.prototype.getItemGroupContainer=function(E,S){var O=void 0!==S?this.getItemParent(E,S):this.itemsContainer,w=S||"Main";if(void 0===this.itemGroupContainers[w]||void 0===this.itemGroupContainers[w][E]){void 0===this.itemGroupContainers[w]&&(this.itemGroupContainers[w]=[]);var T=Object.keys(this.itemGroupContainers[w]).map(function(k){return+k}).sort().filter(function(k){return k>E})[0];this.itemGroupContainers[w][E]=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null,E),O,this.itemGroupContainers[w][T])}return this.itemGroupContainers[w][E]},y.prototype.getItemSelectorGroupContainer=function(E,S){var O=void 0!==S?this.getItemSelectorParent(E,S):this.itemSelectorsContainer,w=S||"Main";if(void 0===this.itemSelectorGroupContainers[w]||void 0===this.itemSelectorGroupContainers[w][E]){void 0===this.itemSelectorGroupContainers[w]&&(this.itemSelectorGroupContainers[w]=[]);var T=Object.keys(this.itemSelectorGroupContainers[w]).map(function(k){return+k}).sort().filter(function(k){return k>E})[0];this.itemSelectorGroupContainers[w][E]=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null,E),O,this.itemSelectorGroupContainers[w][T])}return this.itemSelectorGroupContainers[w][E]},y.prototype.getItemParent=function(E,S){return void 0!==S?this.itemChildElements[S]:this.getItemGroupContainer(E)},y.prototype.getItemSelectorParent=function(E,S){return void 0!==S?this.itemChildElements[S]:this.getItemSelectorGroupContainer(E)},y.prototype.notifySelectionChanged=function(E){var S=this,O=g.ModelUtils.createSelectedItems(E),w=[];this.populateItems(w,O,this.selectedItems),this.populateItems(w,this.selectedItems,O),this.selectedItems=O,w.forEach(function(T){T instanceof u.Connector&&S.applyOrPostponeChanges([new C.ItemChange(T,C.ItemChangeType.UpdateClassName,!0)])})},y.prototype.populateItems=function(E,S,O){Object.keys(S).forEach(function(w){O[w]||E.push(S[w])})},y}(h.CanvasManager);l.CanvasItemsManager=x},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TextMeasurer=void 0;var c=o(2),I=o(17),C=o(14),f=o(6),a=o(43),p=o(15),s=o(64),u=function(){function d(h){this.cache={},this.fontSizeCache={},this.containers={},this.parent=h,this.createNodes()}return d.prototype.measureWords=function(h,g,x){var b=this,y={words:{},fontSize:-1},E="string"==typeof h?this.splitToWords(h,!1):h.reduce(function(T,k){return T.concat(b.splitToWords(k,!1))},[]);E.push(" ");var S=this.getStyleHash(g,x),O=this.tryLoadWordsToMeasurer(E,g,S,x,void 0,void 0,void 0,void 0,y);return O&&(this.putElementsInDOM(this.containers[x],O),this.beforeMeasureInDOM(),this.measureElementsInDOM(O,y),this.afterMeasureInDOM()),y},d.prototype.measureTextLine=function(h,g,x){var b=this.measureWords(h,g,x);return s.getTextLineSize(h,b)},d.prototype.onNewModel=function(h,g){var x=this;g.changeByFunc(null,function(){return x.onNewModelCore(h)})},d.prototype.onNewModelCore=function(h){var g=h.filter(function(E){return E instanceof C.Shape}),x=h.filter(function(E){return E instanceof f.Connector}),b=this.tryLoadShapeTexts(g),y=this.tryLoadConnectorTexts(x);(b||y)&&(b&&this.putElementsInDOM(this.containers[a.TextOwner.Shape],b),y&&this.putElementsInDOM(this.containers[a.TextOwner.Connector],y),this.beforeMeasureInDOM(),b&&this.measureElementsInDOM(b),y&&this.measureElementsInDOM(y),this.afterMeasureInDOM())},d.prototype.replaceParent=function(h){this.parent!==h&&(this.mainElement.parentNode&&h.appendChild(this.mainElement),this.parent=h)},d.prototype.clean=function(){I.RenderUtils.removeElement(this.mainElement)},d.prototype.tryLoadShapeTexts=function(h){var g=this,x={},b=[],y=[],E=[];return h.forEach(function(S){var O=g.getStyleHash(S.styleText,a.TextOwner.Shape);g.tryLoadWordsToMeasurer(g.splitToWords(S.text,!0),S.styleText,O,a.TextOwner.Shape,x,b,y,E)}),b.length?{elements:b,hashes:y,styleHashes:E}:null},d.prototype.tryLoadConnectorTexts=function(h){var g=this,x={},b=[],y=[],E=[];return h.forEach(function(S){var O=S.texts.map(function(T){return T.value}).reduce(function(T,k){return T.concat(g.splitToWords(k,!1))},[]);if(O.length){O.push(" ");var w=g.getStyleHash(S.styleText,a.TextOwner.Connector);g.tryLoadWordsToMeasurer(O,S.styleText,w,a.TextOwner.Connector,x,b,y,E)}}),b.length?{elements:b,hashes:y,styleHashes:E}:null},d.prototype.tryLoadWordsToMeasurer=function(h,g,x,b,y,E,S,O,w){var T=this,k=[];return E=E||[],S=S||[],O=O||[],y=y||{},h.forEach(function(R){return T.tryLoadWordToMeasurer(R,g,x,b,y,E,S,O,k,w)}),E.length?{elements:E,hashes:S,styleHashes:O,newWords:k}:null},d.prototype.putElementsInDOM=function(h,g){for(h.parentNode&&h.parentNode.removeChild(h);h.firstChild;)h.removeChild(h.firstChild);g.elements.forEach(function(x){return h.appendChild(x)}),this.svgElement.appendChild(h)},d.prototype.measureElementsInDOM=function(h,g){for(var x=h.hashes,b=h.elements,y=h.newWords,E=x.length,S=0;S<E;S++){var O=this.getDomElementSize(b[S]);O&&(O.isEmpty()||(this.cache[x[S]]=O),g&&(g.words[y[S]]=O));var w=h.styleHashes[S];void 0===this.fontSizeCache[w]&&(this.fontSizeCache[w]=this.getDomFontSize(b[S])),g&&g.fontSize<0&&(g.fontSize=this.fontSizeCache[w])}},d.prototype.beforeMeasureInDOM=function(){this.parent.appendChild(this.mainElement)},d.prototype.afterMeasureInDOM=function(){this.mainElement.parentNode&&this.mainElement.parentNode.removeChild(this.mainElement)},d.prototype.tryLoadWordToMeasurer=function(h,g,x,b,y,E,S,O,w,T){var k=this.getHash(h,g,b),R=this.cache[k];R||y[k]?R&&T&&(T.words[h]=R,T.fontSize=this.fontSizeCache[x]):(y[k]=!0,S.push(k),E.push(this.createElement(h,g)),O.push(x),w.push(h))},d.prototype.getHash=function(h,g,x){return x+"|"+(g&&g.toHash())+"|"+h},d.prototype.getStyleHash=function(h,g){return this.getHash(" ",h,g)},d.prototype.createElement=function(h,g){var x=document.createElementNS(p.svgNS,"text");return" "===h&&x.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),x.textContent=h,g&&I.RenderUtils.applyStyleToElement(g,x),x},d.prototype.splitToWords=function(h,g){var x=s.textToWords(h);return g&&x.push(" "),x},d.prototype.getDomFontSize=function(h){return parseFloat(window.getComputedStyle(h).fontSize)},d.prototype.getDomElementSize=function(h){var g;try{g=h.getBBox()}catch{}return g?new c.Size(g.width,g.height):new c.Size(0,0)},d.prototype.createNodes=function(){this.mainElement=p.RenderHelper.createMainElement(void 0,!0),this.svgElement=p.RenderHelper.createSvgElement(this.mainElement,!1),this.createContainer(a.TextOwner.Shape,"shape"),this.createContainer(a.TextOwner.Connector,"connector"),this.createContainer(a.TextOwner.ExtensionLine,"extension-line"),this.createContainer(a.TextOwner.Resize,"resize-info")},d.prototype.createContainer=function(h,g){var x=document.createElementNS(p.svgNS,"g");x.setAttribute("class",g),this.containers[h]=x},d}();l.TextMeasurer=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(R,P){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,W){B.__proto__=W}||function(B,W){for(var N in W)W.hasOwnProperty(N)&&(B[N]=W[N])})(R,P)},function(R,P){function B(){this.constructor=R}c(R,P),R.prototype=null===P?Object.create(P):(B.prototype=P.prototype,new B)});Object.defineProperty(l,"__esModule",{value:!0}),l.EdgeOnLayer=l.NodeOnLayer=l.SugiyamaNodesOrderer=l.SugiyamaLayerDistributor=l.SugiyamaLayoutBuilder=void 0;var C=o(139),f=o(54),a=o(71),p=o(38),s=o(90),u=o(41),d=o(0),h=o(20),g=o(138),x=o(6),b=o(270),y=function(R){function P(){return null!==R&&R.apply(this,arguments)||this}return I(P,R),P.prototype.build=function(){var B=this,W=0,N=new g.GraphLayout,V=new S;return this.graph.getConnectedComponents().forEach(function(U){var K=b.CycleRemover.removeCycles(U),Y=E.getLayers(K.graph),J=V.orderNodes(K.graph,Y),j=Object.keys(K.removedEdges).map(function(q){return U.getEdge(q)}),ee=V.assignAbsCoordinates(J),G=B.createInfoGraphLayout(ee,K.reversedEdges,j);N.extend(B.setComponentOffset(G,W)),W+=B.getComponentOffset(G)}),N},P.prototype.createInfoGraphLayout=function(B,W,N){for(var V=this,U=new d.Point(0,0),K=B.items,Y=new s.HashSet(K.map(function(ge){return ge.layer}).sort(function(ge,De){return ge-De})),J=this.getAbsOffsetInfo(B.items),j={},ee=0,G=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,q=Number.MIN_SAFE_INTEGER||Number.MAX_VALUE,Z=function(ge){var De=Y.item(ge),Fe=0;K.filter(function(Ae){return Ae.layer===De}).sort(function(Ae,ne){return Ae.position-ne.position}).forEach(function(Ae){var ne=V.getDepthNodeSize(Ae),fe=V.chooseDirectionValue(0,ne),_e=V.getAbsPosition(Ae.position,V.getBreadthNodeSize(Ae),J);U=V.setBreadth(U,_e);var ie=V.setDepthOffset(U,-fe);if(j[Ae.key]=ie,!Ae.isDummy){var de=V.settings.orientation===h.DataLayoutOrientation.Horizontal?ie.y:ie.x;G=Math.min(G,de),q=Math.max(q,de+V.getBreadthNodeSize(Ae)),Fe=Math.max(Fe,V.getDepthNodeSize(Ae))}}),ee+=Fe,U=X.setBreadth(U,0),U=X.setDepthOffset(U,X.getDirectionValue(Fe+X.settings.layerSpacing))},X=this,M=0;M<Y.length;M++)Z(M);ee+=(Y.length-1)*this.settings.layerSpacing;var se=new g.GraphLayout;return this.createNodesLayout(B,se,G,ee,j),this.createEdgesLayout(B,se,W,N),se},P.prototype.createNodesLayout=function(B,W,N,V,U){var K=this,Y=this.settings.orientation===h.DataLayoutOrientation.Vertical?new d.Point(-N,this.chooseDirectionValue(0,V)):new d.Point(this.chooseDirectionValue(0,V),-N);B.items.forEach(function(J){if(!J.isDummy){var j=K.graph.getNode(J.key);W.addNode(new a.NodeLayout(j,U[J.key].clone().offset(Y.x,Y.y)))}})},P.prototype.createEdgesLayout=function(B,W,N,V){var U=this.getDirectEdgeLayout(),K=this.getDiffLevelEdgeLayout(!0),Y=this.getDiffLevelEdgeLayout(!1),J=this.getSameLevelEdgeLayout(!0),j=this.getSameLevelEdgeLayout(!1),ee={};B.edges.filter(function(G){return!G.isDummy}).concat(V.map(function(G){return new T(G.key,!1,G.from,G.to)})).sort(function(G,q){return B.getNode(G.originFrom).layer-B.getNode(q.originFrom).layer||B.getNode(G.to).layer-B.getNode(q.to).layer}).forEach(function(G){var q=N[G.key],Z=B.getNode(q?G.to:G.originFrom),X=B.getNode(q?G.originFrom:G.to);if(X.layer-Z.layer==1)W.addEdge(new a.EdgeLayout(G.key,U.from,U.to));else{var M=[];if(X.position-Z.position>=1)M.push(K),M.push({from:U.from,to:K.to}),M.push({from:K.from,to:U.to});else if(X.position-Z.position<=-1)M.push(Y),M.push({from:U.from,to:Y.to}),M.push({from:Y.from,to:U.to});else{var se=Z.position===X.position&&0===X.position?[J,j]:[j,J];se.forEach(function(ne){return M.push(ne)}),se.forEach(function(ne){M.push({from:ne.from,to:U.to}),M.push({from:U.from,to:ne.to})})}M.push(U);for(var ge=0,De=void 0;De=M[ge];ge++){var Fe=Z.key+"_"+De.from,Ae=X.key+"_"+De.to;if(ee[Fe]!==x.ConnectorPosition.End&&ee[Ae]!==x.ConnectorPosition.Begin){W.addEdge(new a.EdgeLayout(G.key,De.from,De.to)),ee[Fe]=x.ConnectorPosition.Begin,ee[Ae]=x.ConnectorPosition.End;break}}}})},P.prototype.getDirectEdgeLayout=function(){return this.settings.orientation===h.DataLayoutOrientation.Horizontal?this.settings.direction===h.LogicalDirectionKind.Forward?{from:1,to:3}:{from:3,to:1}:this.settings.direction===h.LogicalDirectionKind.Forward?{from:2,to:0}:{from:0,to:2}},P.prototype.getDiffLevelEdgeLayout=function(B){return this.settings.orientation===h.DataLayoutOrientation.Horizontal?B?{from:2,to:0}:{from:0,to:2}:B?{from:3,to:1}:{from:1,to:3}},P.prototype.getSameLevelEdgeLayout=function(B){return this.settings.orientation===h.DataLayoutOrientation.Horizontal?B?{from:0,to:0}:{from:2,to:2}:B?{from:3,to:3}:{from:1,to:1}},P.prototype.getAbsOffsetInfo=function(B){var W=this,N={},V=function(Y,J){void 0===N[J]&&(N[J]=W.getBreadthNodeSize(Y)),N[J]=Math.max(N[J],W.getBreadthNodeSize(Y))};B.forEach(function(Y){var J=k(Y.position);V(Y,J),N[J]%1!=0&&V(Y,J+1)});var U={},K=0;return Object.keys(N).sort(function(Y,J){return parseFloat(Y)-parseFloat(J)}).forEach(function(Y){U[Y]={leftOffset:K,width:N[Y]},K+=N[Y]+W.settings.columnSpacing}),U},P.prototype.setBreadth=function(B,W){return this.settings.orientation===h.DataLayoutOrientation.Vertical?new d.Point(W,B.y):new d.Point(B.x,W)},P.prototype.setDepthOffset=function(B,W){return this.settings.orientation===h.DataLayoutOrientation.Horizontal?new d.Point(B.x+W,B.y):new d.Point(B.x,B.y+W)},P.prototype.getAbsPosition=function(B,W,N){var V=k(B),U=N[V].leftOffset,K=N[V].width;return B%1==0?U+(K-W)/2:U+K-(W-this.settings.columnSpacing)/2},P.prototype.getBreadthNodeSize=function(B){return B.isDummy?0:this.getBreadthNodeSizeCore(this.graph.getNode(B.key))},P.prototype.getDepthNodeSize=function(B){return B.isDummy?0:this.getDepthNodeSizeCore(this.graph.getNode(B.key))},P}(C.LayoutBuilder);l.SugiyamaLayoutBuilder=y;var E=function(){function R(){}return R.getLayers=function(P){var B=this.getFeasibleTree(P);return this.calcNodesLayers(B)},R.getFeasibleTree=function(P){var B=this.initLayerAssignment(P);return P.getSpanningGraph(P.nodes[0],p.ConnectionMode.OutgoingAndIncoming,function(W){return B[W.to]-B[W.from]})},R.initLayerAssignment=function(P){for(var B={},W=0,N={},V=P.nodes.filter(function(K){return!P.getAdjacentEdges(K,p.ConnectionMode.Incoming).length}),U=function(){V.forEach(function(Y){B[Y]=W,N[Y]=!0}),Object.keys(N).forEach(function(Y){0===P.getAdjacentEdges(Y,p.ConnectionMode.Outgoing).filter(function(J){return void 0===B[J.to]}).length&&delete N[Y]});var K={};Object.keys(N).forEach(function(Y){P.getAdjacentEdges(Y,p.ConnectionMode.Outgoing).map(function(J){return J.to}).filter(function(J){return void 0===B[J]&&P.getAdjacentEdges(J,p.ConnectionMode.Incoming).reduce(function(j,ee){return j&&void 0!==B[ee.from]},!0)}).forEach(function(J){return K[J]=!0})}),V=Object.keys(K),W++};V.length;)U();return B},R.calcNodesLayers=function(P){var B={},W=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,N=0,V=P.createIterator(p.ConnectionMode.OutgoingAndIncoming);for(var U in V.visitEachEdgeOnce=!1,V.onNode=function(K){B[K.key]=N,W=Math.min(W,N)},V.skipNode=function(K){return void 0!==B[K.key]},V.skipEdge=function(K){return void 0!==B[K.from]&&void 0!==B[K.to]},V.onEdge=function(K,Y){N=Y?B[K.from]+1:B[K.to]-1},V.iterate(P.nodes[0]),B)Object.prototype.hasOwnProperty.call(B,U)&&(B[U]-=W);return B},R}();l.SugiyamaLayerDistributor=E;var S=function(){function R(){this.idCounter=-1e4}return R.prototype.orderNodes=function(P,B){for(var W=1,N=this.initGraphInfo(P,B),V=N.items,U=this.initOrder(V),K=this.getNodeToPositionMap(V),Y=this.getCrossCount(U,N),J=!0;W<14&&0!==Y;){U=this.getNodesOrder(U,N,J);var j=this.getCrossCount(U,N);j<Y&&(K=this.getNodeToPositionMap(N.items),Y=j),J=!J,W++}return N.items.forEach(function(ee){return ee.position=K[ee.key]}),N},R.prototype.getNodesOrder=function(P,B,W){var N=this,V={},U=function(J){if(!Object.prototype.hasOwnProperty.call(P,J))return"continue";var j={},ee=[];P[J].forEach(function(G){var q=(W?B.getChildren(G.key):B.getParents(G.key)).map(function(Z){return B.getNode(Z).position});ee.push(G.key),j[G.key]=N.getNodePosition(q)}),V[J]=K.sortNodes(ee,j,B)},K=this;for(var Y in P)U(Y);return V},R.prototype.sortNodes=function(P,B,W){return P.sort(function(N,V){return B[N]-B[V]}).map(function(N,V){var U=W.getNode(N);return U.position=V,U})},R.prototype.getNodePosition=function(P){if(!(P=P.sort(function(V,U){return V-U})).length)return 0;var B=Math.floor(P.length/2);if(2===P.length||P.length%2==1)return P[B];var W=P[B-1]-P[0],N=P[P.length-1]-P[B];return Math.floor((P[B-1]*N+P[B]*W)/(W+N))},R.prototype.initOrder=function(P){var B={};return P.forEach(function(W){return(B[W.layer]||(B[W.layer]=[])).push(W)}),B},R.prototype.getCrossCount=function(P,B){var W=0,N=function(U){if(!Object.prototype.hasOwnProperty.call(P,U))return"continue";var K=[];P[U].forEach(function(Y){var J=B.getChildren(Y.key).map(function(j){return B.getNode(j).position});J.forEach(function(j){W+=K.filter(function(ee){return j<ee}).length}),K=K.concat(J)})};for(var V in P)N(V);return W},R.prototype.initGraphInfo=function(P,B){var W=this,N={},V={},U=[],K=[];return P.nodes.forEach(function(Y){var J=B[Y];void 0===N[J]&&(N[J]=0);var j=new O(Y,!1,J,N[J]++);V[Y]=j,U.push(j)}),P.edges.forEach(function(Y){var J=B[Y.to]-B[Y.from];if(J>1){for(var j=V[Y.from],ee=1;ee<J;ee++){var G=new O(W.createDummyID(),!0,B[Y.from]+ee,N[B[Y.from]+ee]++);K.push(new T(W.createDummyID(),!0,j.key,G.key)),U.push(G),j=G}K.push(new T(Y.key,!1,j.key,V[Y.to].key,V[Y.from].key))}else K.push(new T(Y.key,!1,V[Y.from].key,V[Y.to].key))}),new f.FastGraph(U,K)},R.prototype.createDummyID=function(){return"dummy_"+--this.idCounter},R.prototype.getNodeToPositionMap=function(P){return P.reduce(function(B,W){return B[W.key]=W.position,B},{})},R.prototype.assignAbsCoordinates=function(P){var B=this.getAbsCoodinate(P);return new f.FastGraph(P.items.map(function(W){return new O(W.key,W.isDummy,W.layer,B[W.key])}),P.edges.slice(0))},R.prototype.getAbsCoodinate=function(P){var B=this,W=P.items.reduce(function(U,K){U[K.layer]=U[K.layer]||[];var Y=u.SearchUtils.binaryIndexOf(U[K.layer],function(J){return J.position-K.position});return U[K.layer].splice(Y<0?~Y:Y,0,K),U},{}),N=[w.TopLeft,w.TopRight,w.BottomLeft,w.BottomRight].map(function(U){return B.getPositionByMedian(P,U,W)}),V={};return P.items.forEach(function(U){var K=N.map(function(Y){return Y[U.key]}).sort(function(Y,J){return Y-J});V[U.key]=(K[1]+K[2])/2}),V},R.prototype.getPositionByMedian=function(P,B,W){var N=P.items,V=this.getNodeToPositionMap(N),U=this.getMedians(P,N,B);return U=this.resolveMedianConflicts(P,W,U,B),this.getSortedBlocks(P,N,U,B).forEach(function(K){var Y=K.reduce(function(J,j){return V[j.key]>J?V[j.key]:J},-2);K.forEach(function(J){var j=Y-V[J.key];j>0&&W[J.layer].filter(function(ee){return ee.position>J.position}).forEach(function(ee){return V[ee.key]+=j}),V[J.key]=Y})}),V},R.prototype.getSortedBlocks=function(P,B,W,N){for(var V=[],U=N===w.BottomLeft||N===w.BottomRight,K=new s.HashSet(B.slice(0).sort(function(j,ee){return U?j.layer-ee.layer:ee.layer-j.layer}),function(j){return j.key});K.length;){var Y=K.item(0),J=this.getBlock(P,Y,W,N);V.push(J),J.forEach(function(j){return K.remove(j)})}return V.sort(function(j,ee){var G=j.reduce(function(M,se){return se.position<M.position?se:M},j[0]),q=ee.filter(function(M){return M.layer===G.layer})[0];if(q)return G.position>q.position?1:-1;var Z=ee.reduce(function(M,se){return se.position<M.position?se:M},ee[0]),X=j.filter(function(M){return M.layer===Z.layer})[0];return X?X.position>Z.position?1:-1:G.layer>Z.layer?1:-1}),V},R.prototype.getBlock=function(P,B,W,N){var V=[],U=null;do{U&&(B=P.getNode(N===w.TopLeft||N===w.TopRight?U.from:U.to)),V.push(B),U=W[B.key]}while(U);return V},R.prototype.resolveMedianConflicts=function(P,B,W,N){var V=this,U={},K=function(J){if(!Object.prototype.hasOwnProperty.call(B,J))return"continue";var j,ee,G=B[J];N!==w.TopRight&&N!==w.BottomRight||(G=G.slice(0).sort(function(q,Z){return Z.position-q.position})),G.forEach(function(q){var Z=W[q.key];if(Z){var M=P.getNode(N===w.TopLeft||N===w.TopRight?Z.from:Z.to).position;V.checkMedianConfict(j,ee,M,N)?U[q.key]=null:(j=void 0===j?M:Math.min(j,M),ee=void 0===ee?M:Math.max(ee,M),U[q.key]=Z)}else U[q.key]=null})};for(var Y in B)K(Y);return U},R.prototype.checkMedianConfict=function(P,B,W,N){return void 0!==P&&void 0!==B&&(N===w.TopLeft||N===w.BottomLeft?B>=W:P<=W)},R.prototype.getMedians=function(P,B,W){var N=this,V={};return B.forEach(function(U){var K=N.getActualAdjacentEdges(P,U,W),Y=N.getMedianPosition(K.length,W);V[U.key]=K[Y]}),V},R.prototype.getMedianPosition=function(P,B){if(0===P)return-1;if(P%2!=0)return Math.floor(P/2);if(B===w.TopLeft||B===w.BottomLeft)return Math.floor(P/2)-1;if(B===w.TopRight||B===w.BottomRight)return Math.floor(P/2);throw new Error("Invalid Operation")},R.prototype.getActualAdjacentEdges=function(P,B,W){return W===w.TopLeft||W===w.TopRight?P.getAdjacentEdges(B.key,p.ConnectionMode.Incoming).sort(function(N,V){return P.getNode(N.from).position-P.getNode(V.from).position}):P.getAdjacentEdges(B.key,p.ConnectionMode.Outgoing).sort(function(N,V){return P.getNode(N.to).position-P.getNode(V.to).position})},R}();l.SugiyamaNodesOrderer=S;var O=function(){function R(P,B,W,N){this.key=P,this.isDummy=B,this.layer=W,this.position=N}return R.prototype.getHashCode=function(){return this.key.toString()},R}();l.NodeOnLayer=O;var w,R,T=function(){function R(P,B,W,N,V){this.key=P,this.isDummy=B,this.from=W,this.to=N,this._originFrom=V}return R.prototype.getHashCode=function(){return this.from+"-"+this.to},Object.defineProperty(R.prototype,"originFrom",{get:function(){return void 0!==this._originFrom?this._originFrom:this.from},enumerable:!1,configurable:!0}),R}();function k(R){return Math.trunc?Math.trunc(R):isFinite(R)?R-R%1||(R<0?-0:0===R?R:0):R}l.EdgeOnLayer=T,(R=w||(w={}))[R.TopLeft=0]="TopLeft",R[R.TopRight=1]="TopRight",R[R.BottomLeft=2]="BottomLeft",R[R.BottomRight=3]="BottomRight"},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=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 f=this.occurredEvents;this.occurredEvents=0,this.onUpdateUnlocked(f)}},C.prototype.suspendUpdate=function(){if(this.suspendUpdateCount>0){this.suspendUpdateCount*=-1;var f=this.occurredEvents;this.occurredEvents=0,this.onUpdateUnlocked(f)}},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(f){this.occurredEvents|=f},C.prototype.resetOccurredEvents=function(){this.occurredEvents=0},C.prototype.isLocked=function(){return 0!==this.suspendUpdateCount},C}();l.BatchUpdatableObject=c;var I=function(){function C(){}return C.prototype.beginUpdate=function(){},C.prototype.endUpdate=function(){},C}();l.EmptyBatchUpdatableObject=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CommandManager=l.DiagramCommand=void 0;var c,ke,I=o(162),C=o(199),f=o(200),a=o(201),p=o(238),s=o(239),u=o(240),d=o(241),h=o(242),g=o(243),x=o(244),b=o(245),y=o(246),E=o(247),S=o(248),O=o(249),w=o(250),T=o(25),k=o(137),R=o(253),P=o(254),B=o(255),W=o(257),N=o(259),V=o(261),U=o(262),K=o(263),Y=o(264),J=o(265),j=o(268),ee=o(271),G=o(272),q=o(142),Z=o(273),X=o(274),M=o(275),se=o(276),ge=o(143),De=o(144),Fe=o(277),Ae=o(278),ne=o(279),fe=o(280),_e=o(282),ie=o(284),de=o(285),le=o(286),pe=o(287),Ee=o(288),ae=o(289),te=o(290),re=o(292),oe=o(293),ye=o(294),Pe=o(295),Ne=o(296),ft=o(297),tt=o(298),Be=o(299),mt=o(300);(ke=c=l.DiagramCommand||(l.DiagramCommand={}))[ke.Undo=0]="Undo",ke[ke.Redo=1]="Redo",ke[ke.Cut=2]="Cut",ke[ke.Copy=3]="Copy",ke[ke.Paste=4]="Paste",ke[ke.PasteInPosition=5]="PasteInPosition",ke[ke.SelectAll=6]="SelectAll",ke[ke.Delete=7]="Delete",ke[ke.Import=8]="Import",ke[ke.ImportBPMN=9]="ImportBPMN",ke[ke.Export=10]="Export",ke[ke.ExportSvg=11]="ExportSvg",ke[ke.ExportPng=12]="ExportPng",ke[ke.ExportJpg=13]="ExportJpg",ke[ke.BindDocument=14]="BindDocument",ke[ke.UnbindDocument=15]="UnbindDocument",ke[ke.Bold=16]="Bold",ke[ke.Italic=17]="Italic",ke[ke.Underline=18]="Underline",ke[ke.FontName=19]="FontName",ke[ke.FontSize=20]="FontSize",ke[ke.FontColor=21]="FontColor",ke[ke.FillColor=22]="FillColor",ke[ke.StrokeColor=23]="StrokeColor",ke[ke.TextLeftAlign=24]="TextLeftAlign",ke[ke.TextCenterAlign=25]="TextCenterAlign",ke[ke.TextRightAlign=26]="TextRightAlign",ke[ke.ConnectorLineOption=27]="ConnectorLineOption",ke[ke.ConnectorStartLineEnding=28]="ConnectorStartLineEnding",ke[ke.ConnectorEndLineEnding=29]="ConnectorEndLineEnding",ke[ke.BringToFront=30]="BringToFront",ke[ke.SendToBack=31]="SendToBack",ke[ke.MoveLeft=32]="MoveLeft",ke[ke.MoveStepLeft=33]="MoveStepLeft",ke[ke.MoveRight=34]="MoveRight",ke[ke.MoveStepRight=35]="MoveStepRight",ke[ke.MoveUp=36]="MoveUp",ke[ke.MoveStepUp=37]="MoveStepUp",ke[ke.MoveDown=38]="MoveDown",ke[ke.MoveStepDown=39]="MoveStepDown",ke[ke.CloneLeft=40]="CloneLeft",ke[ke.CloneRight=41]="CloneRight",ke[ke.CloneUp=42]="CloneUp",ke[ke.CloneDown=43]="CloneDown",ke[ke.AutoLayoutTree=44]="AutoLayoutTree",ke[ke.AutoLayoutFlow=45]="AutoLayoutFlow",ke[ke.AutoLayoutTreeVertical=46]="AutoLayoutTreeVertical",ke[ke.AutoLayoutTreeHorizontal=47]="AutoLayoutTreeHorizontal",ke[ke.AutoLayoutLayeredVertical=48]="AutoLayoutLayeredVertical",ke[ke.AutoLayoutLayeredHorizontal=49]="AutoLayoutLayeredHorizontal",ke[ke.Lock=50]="Lock",ke[ke.Unlock=51]="Unlock",ke[ke.Units=52]="Units",ke[ke.ViewUnits=53]="ViewUnits",ke[ke.PageSize=54]="PageSize",ke[ke.PageLandscape=55]="PageLandscape",ke[ke.PageColor=56]="PageColor",ke[ke.GridSize=57]="GridSize",ke[ke.ShowGrid=58]="ShowGrid",ke[ke.SnapToGrid=59]="SnapToGrid",ke[ke.ZoomLevel=60]="ZoomLevel",ke[ke.Fullscreen=61]="Fullscreen",ke[ke.ToggleSimpleView=62]="ToggleSimpleView",ke[ke.ToggleReadOnly=63]="ToggleReadOnly",ke[ke.EditShapeImage=64]="EditShapeImage",ke[ke.FitToScreen=65]="FitToScreen",ke[ke.SwitchAutoZoom=66]="SwitchAutoZoom",ke[ke.ToggleAutoZoom=67]="ToggleAutoZoom",ke[ke.FitToWidth=68]="FitToWidth",ke[ke.ZoomLevelItems=69]="ZoomLevelItems",ke[ke.GridSizeItems=70]="GridSizeItems",ke[ke.PageSizeItems=71]="PageSizeItems",ke[ke.ImportXML=72]="ImportXML",ke[ke.InsertShapeImage=73]="InsertShapeImage",ke[ke.DeleteShapeImage=74]="DeleteShapeImage",ke[ke.StrokeStyle=75]="StrokeStyle",ke[ke.StrokeWidth=76]="StrokeWidth",ke[ke.AutoLayoutTreeVerticalBottomToTop=77]="AutoLayoutTreeVerticalBottomToTop",ke[ke.AutoLayoutTreeHorizontalRightToLeft=78]="AutoLayoutTreeHorizontalRightToLeft",ke[ke.AutoLayoutLayeredVerticalBottomToTop=79]="AutoLayoutLayeredVerticalBottomToTop",ke[ke.AutoLayoutLayeredHorizontalRightToLeft=80]="AutoLayoutLayeredHorizontalRightToLeft",ke[ke.Zoom25=81]="Zoom25",ke[ke.Zoom50=82]="Zoom50",ke[ke.Zoom75=83]="Zoom75",ke[ke.Zoom100=84]="Zoom100",ke[ke.Zoom125=85]="Zoom125",ke[ke.Zoom150=86]="Zoom150",ke[ke.Zoom200=87]="Zoom200",ke[ke.AutoZoomToContent=88]="AutoZoomToContent",ke[ke.AutoZoomToWidth=89]="AutoZoomToWidth",ke[ke.ZoomLevelInPercentage=90]="ZoomLevelInPercentage",ke[ke.ConnectorRoutingMode=91]="ConnectorRoutingMode";var nn=function(){function ke($e){this.commands={},this.shortcutsToCommand={},this.lastCommandsChain=[],this.executingCommandsChain=[],this.executingCommandCounter=0,this.isPublicApiCall=!1,this.createCommand($e,c.Undo,C.UndoCommand,T.ModifierKey.Ctrl|T.KeyCode.Key_z,T.ModifierKey.Meta|T.KeyCode.Key_z),this.createCommand($e,c.Redo,f.RedoCommand,T.ModifierKey.Ctrl|T.KeyCode.Key_y,T.ModifierKey.Ctrl|T.ModifierKey.Shift|T.KeyCode.Key_z,T.ModifierKey.Meta|T.ModifierKey.Shift|T.KeyCode.Key_z),this.createCommand($e,c.Cut,Y.CutSelectionCommand,T.KeyCode.Key_x|T.ModifierKey.Ctrl,T.KeyCode.Key_x|T.ModifierKey.Meta,T.KeyCode.Delete|T.ModifierKey.Shift),this.createCommand($e,c.Copy,K.CopySelectionCommand,T.KeyCode.Key_c|T.ModifierKey.Ctrl,T.KeyCode.Key_c|T.ModifierKey.Meta,T.KeyCode.Insert|T.ModifierKey.Ctrl),this.createCommand($e,c.Paste,J.PasteSelectionCommand),this.createCommand($e,c.PasteInPosition,ae.PasteSelectionInPositionCommand),this.createCommand($e,c.SelectAll,w.SelectAllCommand,T.KeyCode.Key_a|T.ModifierKey.Ctrl,T.KeyCode.Key_a|T.ModifierKey.Meta),this.createCommand($e,c.Delete,I.DeleteCommand,T.KeyCode.Delete,T.KeyCode.Backspace),this.createCommand($e,c.Import,a.ImportCommand),this.createCommand($e,c.ImportBPMN,j.ImportBPMNCommand),this.createCommand($e,c.ImportXML,te.ImportXMLCommand),this.createCommand($e,c.Export,p.ExportCommand),this.createCommand($e,c.ExportSvg,V.ExportSvgCommand),this.createCommand($e,c.ExportPng,N.ExportPngCommand),this.createCommand($e,c.ExportJpg,U.ExportJpgCommand),this.createCommand($e,c.BindDocument,M.BindDocumentCommand),this.createCommand($e,c.UnbindDocument,se.UnbindDocumentCommand),this.createCommand($e,c.Bold,s.ToggleFontBoldCommand,T.ModifierKey.Ctrl|T.KeyCode.Key_b,T.ModifierKey.Meta|T.KeyCode.Key_b),this.createCommand($e,c.Italic,u.ToggleFontItalicCommand,T.ModifierKey.Ctrl|T.KeyCode.Key_i,T.ModifierKey.Meta|T.KeyCode.Key_i),this.createCommand($e,c.Underline,d.ToggleFontUnderlineCommand,T.ModifierKey.Ctrl|T.KeyCode.Key_u,T.ModifierKey.Meta|T.KeyCode.Key_u),this.createCommand($e,c.FontName,h.ChangeFontNameCommand),this.createCommand($e,c.FontSize,g.ChangeFontSizeCommand),this.createCommand($e,c.FontColor,x.ChangeFontColorCommand),this.createCommand($e,c.FillColor,b.ChangeFillColorCommand),this.createCommand($e,c.StrokeColor,y.ChangeStrokeColorCommand),this.createCommand($e,c.StrokeStyle,ye.ChangeStrokeStyleCommand),this.createCommand($e,c.StrokeWidth,Pe.ChangeStrokeWidthCommand),this.createCommand($e,c.TextLeftAlign,E.TextLeftAlignCommand),this.createCommand($e,c.TextCenterAlign,E.TextCenterAlignCommand),this.createCommand($e,c.TextRightAlign,E.TextRightAlignCommand),this.createCommand($e,c.ConnectorLineOption,O.ChangeConnectorLineOptionCommand),this.createCommand($e,c.ConnectorStartLineEnding,S.ChangeConnectorStartLineEndingCommand),this.createCommand($e,c.ConnectorEndLineEnding,S.ChangeConnectorEndLineEndingCommand),this.createCommand($e,c.BringToFront,G.BringToFrontCommand),this.createCommand($e,c.SendToBack,ee.SendToBackCommand),this.createCommand($e,c.MoveLeft,Z.MoveLeftCommand,T.ModifierKey.Ctrl|T.KeyCode.Left,T.ModifierKey.Ctrl|T.ModifierKey.Shift|T.KeyCode.Left),this.createCommand($e,c.MoveRight,Z.MoveRightCommand,T.ModifierKey.Ctrl|T.KeyCode.Right,T.ModifierKey.Ctrl|T.ModifierKey.Shift|T.KeyCode.Right),this.createCommand($e,c.MoveUp,Z.MoveUpCommand,T.ModifierKey.Ctrl|T.KeyCode.Up,T.ModifierKey.Ctrl|T.ModifierKey.Shift|T.KeyCode.Up),this.createCommand($e,c.MoveDown,Z.MoveDownCommand,T.ModifierKey.Ctrl|T.KeyCode.Down,T.ModifierKey.Ctrl|T.ModifierKey.Shift|T.KeyCode.Down),this.createCommand($e,c.MoveStepLeft,Z.MoveStepLeftCommand,T.KeyCode.Left,T.ModifierKey.Shift|T.KeyCode.Left),this.createCommand($e,c.MoveStepRight,Z.MoveStepRightCommand,T.KeyCode.Right,T.ModifierKey.Shift|T.KeyCode.Right),this.createCommand($e,c.MoveStepUp,Z.MoveStepUpCommand,T.KeyCode.Up,T.ModifierKey.Shift|T.KeyCode.Up),this.createCommand($e,c.MoveStepDown,Z.MoveStepDownCommand,T.KeyCode.Down,T.ModifierKey.Shift|T.KeyCode.Down),this.createCommand($e,c.CloneLeft,ne.CloneLeftCommand,T.ModifierKey.Alt|T.KeyCode.Left,T.ModifierKey.Alt|T.ModifierKey.Shift|T.KeyCode.Left),this.createCommand($e,c.CloneRight,ne.CloneRightCommand,T.ModifierKey.Alt|T.KeyCode.Right,T.ModifierKey.Alt|T.ModifierKey.Shift|T.KeyCode.Right),this.createCommand($e,c.CloneUp,ne.CloneUpCommand,T.ModifierKey.Alt|T.KeyCode.Up,T.ModifierKey.Alt|T.ModifierKey.Shift|T.KeyCode.Up),this.createCommand($e,c.CloneDown,ne.CloneDownCommand,T.ModifierKey.Alt|T.KeyCode.Down,T.ModifierKey.Alt|T.ModifierKey.Shift|T.KeyCode.Down),this.createCommand($e,c.Lock,Fe.LockCommand),this.createCommand($e,c.Unlock,Ae.UnLockCommand),this.createCommand($e,c.AutoLayoutTree,k.AutoLayoutTreeVerticalCommand),this.createCommand($e,c.AutoLayoutFlow,q.AutoLayoutLayeredHorizontalCommand),this.createCommand($e,c.Units,fe.ChangeUnitsCommand),this.createCommand($e,c.ViewUnits,fe.ChangeViewUnitsCommand),this.createCommand($e,c.PageSize,W.ChangePageSizeCommand),this.createCommand($e,c.PageLandscape,B.ChangePageLandscapeCommand),this.createCommand($e,c.PageColor,_e.ChangePageColorCommand),this.createCommand($e,c.GridSize,P.ChangeGridSizeCommand),this.createCommand($e,c.ShowGrid,ie.ChangeShowGridCommand),this.createCommand($e,c.SnapToGrid,R.ChangeSnapToGridCommand),this.createCommand($e,c.ZoomLevel,X.ChangeZoomLevelCommand),this.createCommand($e,c.ZoomLevelInPercentage,X.ChangeZoomLevelInPercentageCommand),this.createCommand($e,c.AutoLayoutTreeVertical,k.AutoLayoutTreeVerticalCommand),this.createCommand($e,c.AutoLayoutTreeVerticalBottomToTop,Ne.AutoLayoutTreeVerticalBottomToTopCommand),this.createCommand($e,c.AutoLayoutTreeHorizontal,ge.AutoLayoutTreeHorizontalCommand),this.createCommand($e,c.AutoLayoutTreeHorizontalRightToLeft,ft.AutoLayoutTreeHorizontalRightToLeftCommand),this.createCommand($e,c.AutoLayoutLayeredVertical,De.AutoLayoutLayeredVerticalCommand),this.createCommand($e,c.AutoLayoutLayeredVerticalBottomToTop,tt.AutoLayoutLayeredVerticalBottomToTopCommand),this.createCommand($e,c.AutoLayoutLayeredHorizontal,q.AutoLayoutLayeredHorizontalCommand),this.createCommand($e,c.AutoLayoutLayeredHorizontalRightToLeft,Be.AutoLayoutLayeredHorizontalRightToLeftCommand),this.createCommand($e,c.Fullscreen,de.ToggleFullscreenCommand,T.KeyCode.F11),this.createCommand($e,c.ToggleSimpleView,le.ToggleSimpleViewCommand),this.createCommand($e,c.ToggleReadOnly,pe.ToggleReadOnlyCommand),this.createCommand($e,c.InsertShapeImage,re.InsertShapeImageCommand),this.createCommand($e,c.EditShapeImage,Ee.EditShapeImageCommand),this.createCommand($e,c.DeleteShapeImage,oe.DeleteShapeImageCommand),this.createCommand($e,c.FitToScreen,X.FitToScreenCommand),this.createCommand($e,c.FitToWidth,X.FitToWidthCommand),this.createCommand($e,c.SwitchAutoZoom,X.SwitchAutoZoomCommand),this.createCommand($e,c.ToggleAutoZoom,X.ToggleAutoZoomCommand),this.createCommand($e,c.ZoomLevelItems,X.ChangeZoomLevelItemsCommand),this.createCommand($e,c.GridSizeItems,P.ChangeGridSizeItemsCommand),this.createCommand($e,c.PageSizeItems,W.ChangePageSizeItemsCommand),this.createCommand($e,c.Zoom25,X.ChangeZoomLevelTo25Command),this.createCommand($e,c.Zoom50,X.ChangeZoomLevelTo50Command),this.createCommand($e,c.Zoom75,X.ChangeZoomLevelTo75Command),this.createCommand($e,c.Zoom100,X.ChangeZoomLevelTo100Command),this.createCommand($e,c.Zoom125,X.ChangeZoomLevelTo125Command),this.createCommand($e,c.Zoom150,X.ChangeZoomLevelTo150Command),this.createCommand($e,c.Zoom200,X.ChangeZoomLevelTo200Command),this.createCommand($e,c.AutoZoomToContent,X.ToggleAutoZoomToContentCommand),this.createCommand($e,c.AutoZoomToWidth,X.ToggleAutoZoomToWidthCommand),this.createCommand($e,c.ConnectorRoutingMode,mt.ChangeConnectorRoutingModeCommand)}return ke.prototype.getCommand=function($e){return this.commands[$e]},ke.prototype.beforeExecuting=function($e){this.executingCommandsChain.push($e),this.executingCommandCounter++},ke.prototype.afterExecuting=function(){this.executingCommandCounter--,0===this.executingCommandCounter&&(this.lastCommandsChain=this.executingCommandsChain,this.executingCommandsChain=[])},ke.prototype.processShortcut=function($e){var me=this.shortcutsToCommand[$e];return!!me&&me.execute()},ke.prototype.processPaste=function($e){var me=this.getCommand(c.Paste);return me&&me.isEnabled()&&me.execute($e),!0},ke.prototype.notifySelectionChanged=function($e){this.lastCommandsChain=[]},ke.prototype.notifyScrollPositionChanged=function(){},ke.prototype.createCommand=function($e,me,xe){for(var Te=[],Ye=3;Ye<arguments.length;Ye++)Te[Ye-3]=arguments[Ye];this.commands[me]=new xe($e);for(var St=0;St<Te.length;St++){var Ct=Te[St];"number"==typeof Ct&&(this.shortcutsToCommand[Ct]=this.commands[me])}},ke}();l.CommandManager=nn},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(177),I=o(178),C=function(){function f(){}return f.normalizeToDataUrl=function(a,p){return f.checkPrependDataUrl(a)||(a=f.prependByDataUrl(a,p)),a},f.prependByDataUrl=function(a,p){return"data:"+p+";base64,"+a},f.checkPrependDataUrl=function(a){return f.dataUrl.test(a)},f.deleteDataUrlPrefix=function(a){return a.replace(f.dataUrl,"")},f.getUint8Array=function(a){for(var p=(a=atob(a)).length,s=new Uint8Array(p);p--;)s[p]=a.charCodeAt(p);return s},f.fromArrayBuffer=function(a){for(var p=[],s=new Uint8Array(a),u=s.byteLength,d=0;d<u;d++)p.push(String.fromCharCode(s[d]));return window.btoa(p.join(""))},f.getFileFromBase64=function(a,p,s){void 0===p&&(p="");var u=f.getUint8Array(a);return c.FileUtils.createFile([u],p,s)},f.getMimeTypeAsString=function(a){var p=a.match(f.dataUrl);return p?p[1]:null},f.getKnownMimeType=function(a){var p=a.match(f.dataUrl);return p?I.MimeTypeUtils.stringTypeToType(p[1]):I.DxMimeType.Unknown},f.fromBlobAsArrayBuffer=function(a,p){var s=new FileReader;s.onloadend=function(){return p(f.fromArrayBuffer(s.result))},s.readAsArrayBuffer(a)},f.fromBlobAsDataUrl=function(a,p){var s=new FileReader;s.onloadend=function(){return p(s.result)},s.readAsDataURL(a)},f.dataUrl=/^data:(.*?)(;(.*?))??(;base64)?,/,f}();l.Base64Utils=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.NativeConnector=l.NativeShape=l.NativeItem=void 0;var C=o(4),f=function(){function s(u,d){this.id=u,this.key=d,this.unitsApplied=!1}return s.prototype.applyUnits=function(u){this.unitsApplied||void 0===u||(this.applyUnitsCore(u),this.unitsApplied=!0)},s}();l.NativeItem=f;var a=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.applyUnitsCore=function(d){this.position.x=C.ModelUtils.getlUnitValue(d,this.position.x),this.position.y=C.ModelUtils.getlUnitValue(d,this.position.y),this.size.width=C.ModelUtils.getlUnitValue(d,this.size.width),this.size.height=C.ModelUtils.getlUnitValue(d,this.size.height)},u}(f);l.NativeShape=a;var p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.applyUnitsCore=function(d){this.points.forEach(function(h){h.x=C.ModelUtils.getlUnitValue(d,h.x),h.y=C.ModelUtils.getlUnitValue(d,h.y)})},u}(f);l.NativeConnector=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorRenderPointsContext=void 0,l.ConnectorRenderPointsContext=function(I,C,f){this.renderPoints=I,this.lockCreateRenderPoints=C,this.actualRoutingMode=f}},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ReplaceConnectorPointsHistoryItem=l.ChangeConnectorPointsHistoryItem=l.UpdateConnectorPointsHistoryItem=void 0;var C=function(p){function s(u,d){var h=p.call(this)||this;return h.connectorKey=u,h.newPoints=d,h}return I(s,p),s.prototype.redo=function(u){var d=this,h=u.model.findConnector(this.connectorKey);this.oldRenderContext=h.tryCreateRenderPointsContext(),this.oldPoints=h.points.map(function(g){return g.clone()}),u.changeConnectorPoints(h,function(g){g.points=d.newPoints,d.updateRenderPoints(g)})},s.prototype.undo=function(u){var d=this,h=u.model.findConnector(this.connectorKey);u.changeConnectorPoints(h,function(g){g.points=d.oldPoints,g.replaceRenderPoints(d.oldRenderContext)})},s}(o(8).HistoryItem);l.UpdateConnectorPointsHistoryItem=C;var f=function(p){function s(u,d,h){var g=p.call(this,u,d)||this;return g.connectorKey=u,g.newPoints=d,g.newRenderContext=h,g}return I(s,p),s.prototype.updateRenderPoints=function(u){u.replaceRenderPoints(this.newRenderContext)},s}(C);l.ChangeConnectorPointsHistoryItem=f;var a=function(p){function s(u,d){var h=p.call(this,u,d)||this;return h.connectorKey=u,h.newPoints=d,h}return I(s,p),s.prototype.updateRenderPoints=function(u){u.clearRenderPoints()},s}(C);l.ReplaceConnectorPointsHistoryItem=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=function(){function I(C,f,a,p){this.left=C,this.right=f,this.top=a,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,f){return new I(C,C,f,f)},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,f,a,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*=f,this.bottom*=f,this;case 4:return this.left*=C,this.right*=f,this.top*=a,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}();l.Offsets=c},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeConnectorPropertyHistoryItem=void 0;var C=function(f){function a(p,s,u){var d=f.call(this)||this;return d.connectorKey=p,d.propertyName=s,d.value=u,d}return I(a,f),a.prototype.redo=function(p){var s=p.model.findConnector(this.connectorKey);this.oldValue=s.properties[this.propertyName],p.changeConnectorProperty(s,this.propertyName,this.value)},a.prototype.undo=function(p){var s=p.model.findConnector(this.connectorKey);p.changeConnectorProperty(s,this.propertyName,this.oldValue)},a}(o(8).HistoryItem);l.ChangeConnectorPropertyHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeStyleHistoryItem=void 0;var C=function(f){function a(p,s,u){return f.call(this,p,s,u)||this}return I(a,f),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey);this.oldStyleValue=s.style[this.styleProperty],p.changeStyle(s,this.styleProperty,this.styleValue)},a.prototype.undo=function(p){var s=p.model.findItem(this.itemKey);p.changeStyle(s,this.styleProperty,this.oldStyleValue)},a}(o(118).ChangeStyleHistoryItemBase);l.ChangeStyleHistoryItem=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.HashSet=void 0;var c=function(){function I(C,f){var a=this;void 0===C&&(C=[]),void 0===f&&(f=function(p){return p.toString()}),this.items=[],this.map={},this.getHashCode=f,C.forEach(function(p){return a.tryPush(p)})}return I.prototype.tryPush=function(C){var f=this.getHashCode(C);return void 0===this.map[f]&&(this.map[f]=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 f=this.getHashCode(C),a=this.map[f];if("number"!=typeof a)throw"Item not found";delete this.map[f],this.items.splice(a,1);for(var p=a;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}();l.HashSet=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ShapeDescriptionManager=void 0;var c=o(202),I=o(203),C=o(204),f=o(205),a=o(206),p=o(207),s=o(208),u=o(209),d=o(210),h=o(211),g=o(120),x=o(72),b=o(212),y=o(19),E=o(121),S=o(122),O=o(123),w=o(213),T=o(214),k=o(215),R=o(216),P=o(217),B=o(124),W=o(125),N=o(218),V=o(219),U=o(220),K=o(221),Y=o(222),J=o(223),j=o(224),ee=o(225),G=o(226),q=o(227),Z=o(228),X=o(229),M=o(230),se=o(126),ge=o(232),De=o(233),Fe=o(234),Ae=o(1),ne=o(236),fe=o(3),_e=o(237),ie=function(){function de(){this.descriptions={},this.descriptionTypes={},this.descriptionCategories={},this.onShapeDecriptionChanged=new fe.EventDispatcher,this.register(new E.TextShapeDescription,Ae.ShapeCategories.General),this.register(new y.RectangleShapeDescription,Ae.ShapeCategories.General),this.register(new x.EllipseShapeDescription,Ae.ShapeCategories.General),this.register(new h.CrossShapeDescription,Ae.ShapeCategories.General),this.register(new B.TriangleShapeDescription,Ae.ShapeCategories.General),this.register(new g.DiamondShapeDescription,Ae.ShapeCategories.General),this.register(new b.HeartShapeDescription,Ae.ShapeCategories.General),this.register(new S.PentagonShapeDescription,Ae.ShapeCategories.General),this.register(new O.HexagonShapeDescription,Ae.ShapeCategories.General),this.register(new w.OctagonShapeDescription,Ae.ShapeCategories.General),this.register(new T.StarShapeDescription,Ae.ShapeCategories.General),this.register(new d.ArrowUpShapeDescription,Ae.ShapeCategories.General),this.register(new k.ArrowDownShapeDescription,Ae.ShapeCategories.General),this.register(new P.ArrowLeftShapeDescription,Ae.ShapeCategories.General),this.register(new u.ArrowRightShapeDescription,Ae.ShapeCategories.General),this.register(new s.ArrowUpDownShapeDescription,Ae.ShapeCategories.General),this.register(new R.ArrowLeftRightShapeDescription,Ae.ShapeCategories.General),this.register(new c.ProcessShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new I.DecisionShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new a.TerminatorShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new p.PredefinedProcessShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new W.DocumentShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new N.MultipleDocumentsShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new C.ManualInputShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new V.PreparationShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new f.DataShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new K.DatabaseShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new U.HardDiskShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new Y.InternalStorageShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new J.PaperTapeShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new j.ManualOperationShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new ee.DelayShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new G.StoredDataShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new Z.DisplayShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new q.MergeShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new ne.ConnectorShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new X.OrShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new M.SummingJunctionShapeDescription,Ae.ShapeCategories.Flowchart),this.register(new _e.CardWithImageOnLeftDescription,Ae.ShapeCategories.OrgChart),this.register(new _e.CardWithImageOnRightDescription,Ae.ShapeCategories.OrgChart),this.register(new Fe.CardWithImageOnTopDescription,Ae.ShapeCategories.OrgChart),this.register(new ge.VerticalContainerDescription,Ae.ShapeCategories.Containers),this.register(new De.HorizontalContainerDescription,Ae.ShapeCategories.Containers)}return Object.defineProperty(de,"default",{get:function(){return de.defaultInstance},enumerable:!1,configurable:!0}),Object.defineProperty(de,"defaultContainer",{get:function(){return de.defaultContainerInstance},enumerable:!1,configurable:!0}),de.prototype.get=function(le){return this.descriptions[le]},de.prototype.getTypesByCategory=function(le){return this.descriptionTypes[le]||[]},de.prototype.getCategoryByType=function(le){return this.descriptionCategories[le]},de.prototype.getCategoryByDescription=function(le){return this.getCategoryByType(le.key)},de.prototype.register=function(le,pe,Ee){if(void 0===Ee&&(Ee=le.key),void 0!==this.descriptions[Ee])throw Error("Description key is duplicated");this.descriptions[Ee]=le,this.descriptionTypes[pe]||(this.descriptionTypes[pe]=[]),this.descriptionTypes[pe].push(Ee),this.descriptionCategories[Ee]=pe,le.onChanged.add(this)},de.prototype.registerCustomShape=function(le){if(void 0===le.type)throw Error("Custom shape type is not defined");if(void 0!==this.descriptions[le.type])throw Error("Custom shape type is duplicated");var pe=le.baseType&&this.descriptions[le.baseType];le.minWidth>le.maxWidth&&(le.maxWidth=le.minWidth),le.minHeight>le.maxHeight&&(le.maxHeight=le.minHeight),this.register(new se.CustomShapeDescription(le,pe),le.category||Ae.ShapeCategories.Custom)},de.prototype.unregisterCustomShape=function(le){var pe=this.descriptions[le];if(pe instanceof se.CustomShapeDescription){pe.onChanged.remove(this);var Ee=this.descriptionCategories[le];delete this.descriptions[le],delete this.descriptionCategories[le];var ae=this.descriptionTypes[Ee].indexOf(le);this.descriptionTypes[Ee].splice(ae,1),0===this.descriptionTypes[Ee].length&&delete this.descriptionTypes[Ee]}},de.prototype.unregisterAllCustomShapes=function(){var le=this;Object.keys(this.descriptions).forEach(function(pe){le.unregisterCustomShape(pe)})},de.prototype.notifyShapeDescriptionChanged=function(le){this.onShapeDecriptionChanged.raise1(function(pe){return pe.notifyShapeDescriptionChanged(le)})},de.defaultInstance=new y.RectangleShapeDescription,de.defaultContainerInstance=new ge.VerticalContainerDescription,de}();l.ShapeDescriptionManager=ie},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.ArrowVerticalShapeDescription=l.ArrowVerticalLineWidthParameterName=l.ArrowVerticalTriangleHeightParameterName=void 0;var C=o(7),f=o(2),a=o(37),p=o(9);l.ArrowVerticalTriangleHeightParameterName="th",l.ArrowVerticalLineWidthParameterName="lw";var s=function(u){function d(){return u.call(this,new f.Size(.375*C.ShapeDefaultDimension,C.ShapeDefaultDimension))||this}return I(d,u),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d.prototype.createParameters=function(h){h.addRange([new a.ShapeParameter(l.ArrowVerticalTriangleHeightParameterName,Math.sqrt(Math.pow(this.defaultSize.width,2)-Math.pow(this.defaultSize.width/2,2))),new a.ShapeParameter(l.ArrowVerticalLineWidthParameterName,this.defaultSize.width/3)])},d.prototype.normalizeParameters=function(h,g){this.changeParameterValue(g,l.ArrowVerticalTriangleHeightParameterName,function(x){return Math.max(0,Math.min(h.size.height,x.value))}),this.changeParameterValue(g,l.ArrowVerticalLineWidthParameterName,function(x){return Math.max(0,Math.min(h.size.width,x.value))})},d.prototype.processConnectionPoint=function(h,g){var x=(h.size.width-h.parameters.get(l.ArrowVerticalLineWidthParameterName).value)/2,b=h.getConnectionPointSide(g);b===p.ConnectionPointSide.East?g.x-=x:b===p.ConnectionPointSide.West&&(g.x+=x)},d.prototype.getTextRectangle=function(h){return h.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},d.prototype.getSizeByText=function(h,g){return h.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},d}(C.ShapeDescription);l.ArrowVerticalShapeDescription=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.ArrowHorizontalShapeDescription=l.ArrowVerticalLineHeightParameterName=l.ArrowVerticalTriangleWidthParameterName=void 0;var C=o(7),f=o(2),a=o(37),p=o(9);l.ArrowVerticalTriangleWidthParameterName="tw",l.ArrowVerticalLineHeightParameterName="lh";var s=function(u){function d(){return u.call(this,new f.Size(C.ShapeDefaultDimension,.375*C.ShapeDefaultDimension))||this}return I(d,u),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d.prototype.createParameters=function(h){h.addRange([new a.ShapeParameter(l.ArrowVerticalTriangleWidthParameterName,Math.sqrt(Math.pow(this.defaultSize.height,2)-Math.pow(this.defaultSize.height/2,2))),new a.ShapeParameter(l.ArrowVerticalLineHeightParameterName,this.defaultSize.height/3)])},d.prototype.normalizeParameters=function(h,g){this.changeParameterValue(g,l.ArrowVerticalTriangleWidthParameterName,function(x){return Math.max(0,Math.min(h.size.width,x.value))}),this.changeParameterValue(g,l.ArrowVerticalLineHeightParameterName,function(x){return Math.max(0,Math.min(h.size.height,x.value))})},d.prototype.processConnectionPoint=function(h,g){var x=(h.size.height-h.parameters.get(l.ArrowVerticalLineHeightParameterName).value)/2,b=h.getConnectionPointSide(g);b===p.ConnectionPointSide.North?g.y+=x:b===p.ConnectionPointSide.South&&(g.y-=x)},d.prototype.getTextRectangle=function(h){return h.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},d.prototype.getSizeByText=function(h,g){return h.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},d}(C.ShapeDescription);l.ArrowHorizontalShapeDescription=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.PolygonShapeDescription=void 0;var C=o(7),f=function(a){function p(s){var u=a.call(this,void 0,s)||this;return u.defaultSize.height=u.calculateHeight(C.ShapeDefaultDimension),u}return I(p,a),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);l.PolygonShapeDescription=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ImportUtils=void 0;var c=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}();l.ImportUtils=c},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeStyleTextPropertyCommand=void 0;var C=o(135),f=o(70),a=o(26),p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentTextStylePropertyValue(this.getStyleProperty())},u.prototype.getStyleObj=function(d){return d.styleText},u.prototype.getDefaultStyleObj=function(){return new a.TextStyle},u.prototype.createHistoryItem=function(d,h,g){return new f.ChangeStyleTextHistoryItem(d.key,h,g)},u.prototype.updateInputPosition=function(d){this.control.selection.inputPosition.setTextStylePropertyValue(this.getStyleProperty(),d)},u}(C.ChangeStylePropertyCommandBase);l.ChangeStyleTextPropertyCommand=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(l,"__esModule",{value:!0}),l.TreeLayoutBuilder=void 0;var C=o(138),f=o(252),a=o(71),p=o(3),s=o(0),u=o(139),d=o(38),h=o(9),g=o(20),x=o(54),b=function(y){function E(){var S=null!==y&&y.apply(this,arguments)||this;return S.nodeToLevel={},S.levelDepthSize={},S}return I(E,y),E.prototype.build=function(){var S=this,O=new C.GraphLayout,w=0;return this.graph.getConnectedComponents().forEach(function(T){for(var k=f.Tree.createSpanningTree(T),R=S.processTree(k),P=S.getComponentOffset(R);R.nodeKeys.length<T.nodes.length;){var B=new x.Graph(T.nodes.filter(function(V){return!R.nodeToLayout[V]}).map(function(V){return T.getNode(V)}),T.edges.filter(function(V){return!R.edgeToPosition[V.key]})),W=f.Tree.createSpanningTree(B),N=S.processTree(W);R.extend(S.setComponentOffset(N,P)),P+=S.getComponentOffset(N)}O.extend(S.setComponentOffset(R,w)),w+=S.getComponentOffset(R)}),O},E.prototype.preProcessTree=function(S,O,w){var T=this;if((O=O.filter(function(R){return(void 0===T.nodeToLevel[R.key]?T.nodeToLevel[R.key]=w:-1)>=0})).length){var k=this.getMaxDepthSize(O);this.levelDepthSize[w]=k,this.preProcessTree(S,[].concat.apply([],O.map(function(R){return S.getChildren(R)})),w+1)}},E.prototype.loadNodes=function(S,O,w){return w?S.getChildren(w.info).map(function(T){return O.hasNode(T.key)?void 0:O.addNode(new a.NodeLayout(T,s.Point.zero()))}).filter(function(T){return T}):[O.addNode(new a.NodeLayout(S.root,s.Point.zero()))]},E.prototype.processTree=function(S){var O=this,w=new C.GraphLayout;if(this.preProcessTree(S,[S.root],0),this.processLevel(S,w,0,new p.Range(0),0),this.settings.direction===g.LogicalDirectionKind.Backward){var T=Object.keys(this.levelDepthSize).map(function(R){return O.levelDepthSize[R]}),k=T.reduce(function(R,P){return R+P},0)+(T.length-1)*this.settings.layerSpacing;w.forEachNode(function(R){return O.setDepthPos(R,O.getDepthPos(R)+k)})}return w},E.prototype.processLevel=function(S,O,w,T,k,R){var P,B=this,W=this.addNodes(S,O,k,R),N=R?this.graph.getAdjacentEdges(R.key,d.ConnectionMode.Outgoing):[],V=this.getDirectionValue(this.levelDepthSize[k]),U=this.getDirectionValue(this.settings.layerSpacing);if(W.forEach(function(J){var j=p.Range.fromLength(P?P.to+B.settings.columnSpacing:T.from,B.getBreadthNodeSizeCore(J.info));J.position=B.getNodePosition(j.from,w,V).clone().offset(J.info.margin.left,J.info.margin.top),B.processLevel(S,O,w+V+U,j,k+1,J),B.updateEdgeConnections(O,N,J),T.extend(j),P=j}),R&&W.length){var K=W[W.length-1],Y=new p.Range(this.getBreadthPos(W[0]),this.getBreadthPos(K)+this.getBreadthNodeSizeCore(K.info,!0));this.alignParent(R,Y,T)}},E.prototype.addNodes=function(S,O,w,T){var k=this;return 0===w?[O.addNode(new a.NodeLayout(S.root,s.Point.zero()))]:S.getChildren(T.info).reduce(function(R,P){return k.nodeToLevel[P.key]!==w||O.hasNode(P.key)||R.push(O.addNode(new a.NodeLayout(P,s.Point.zero()))),R},[])},E.prototype.getMaxDepthSize=function(S){var O=this;return S.reduce(function(w,T){return Math.max(w,O.getDepthNodeSizeCore(T))},0)},E.prototype.getNodePosition=function(S,O,w){return this.settings.direction===g.LogicalDirectionKind.Forward?this.settings.orientation===g.DataLayoutOrientation.Vertical?new s.Point(S,O):new s.Point(O,S):this.settings.orientation===g.DataLayoutOrientation.Vertical?new s.Point(S,O+w):new s.Point(O+w,S)},E.prototype.updateEdgeConnections=function(S,O,w){var T=this;O.filter(function(k){return k.to===w.key}).forEach(function(k){var R=T.getBeginEdgeIndex(),P=T.getEndEdgeIndex();S.addEdge(new a.EdgeLayout(k.key,R,P))})},E.prototype.getBeginEdgeIndex=function(){return this.settings.direction===g.LogicalDirectionKind.Forward?this.isVertical()?h.ConnectionPointSide.South:h.ConnectionPointSide.East:this.isVertical()?h.ConnectionPointSide.North:h.ConnectionPointSide.West},E.prototype.getEndEdgeIndex=function(){return this.settings.direction===g.LogicalDirectionKind.Forward?this.isVertical()?h.ConnectionPointSide.North:h.ConnectionPointSide.West:this.isVertical()?h.ConnectionPointSide.South:h.ConnectionPointSide.East},E.prototype.alignParent=function(S,O,w){if(this.settings.alignment===g.Alignment.Center){var T=O.from+O.length/2-this.getBreadthNodeSizeCore(S.info,!0)/2;this.settings.orientation===g.DataLayoutOrientation.Vertical?(S.position.x=Math.max(w.from+S.info.margin.left,T),S.position.x=Math.min(w.to-S.info.size.width-S.info.margin.right,S.position.x)):(S.position.y=Math.max(w.from+S.info.margin.top,T),S.position.y=Math.min(w.to-S.info.size.height-S.info.margin.bottom,S.position.y))}},E.prototype.getDepthPos=function(S){return this.settings.orientation===g.DataLayoutOrientation.Vertical?S.position.y:S.position.x},E.prototype.getBreadthPos=function(S){return this.settings.orientation===g.DataLayoutOrientation.Vertical?S.position.x:S.position.y},E.prototype.setDepthPos=function(S,O){this.settings.orientation===g.DataLayoutOrientation.Vertical?S.position.y=O:S.position.x=O},E.prototype.isVertical=function(){return this.settings.orientation===g.DataLayoutOrientation.Vertical},E}(u.LayoutBuilder);l.TreeLayoutBuilder=b},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(x,b){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var S in E)E.hasOwnProperty(S)&&(y[S]=E[S])})(x,b)},function(x,b){function y(){this.constructor=x}c(x,b),x.prototype=null===b?Object.create(b):(y.prototype=b.prototype,new y)});Object.defineProperty(l,"__esModule",{value:!0}),l.ExportImageCommand=void 0;var C=o(78),f=o(260),a=o(57),p=o(73),s=o(15),u=o(79),d=o(100),h=o(46),g=function(x){function b(y){var E=x.call(this,y)||this;return E.exporter=new p.Exporter,E}return I(b,x),b.prototype.isEnabled=function(){return!h.ImageCache.instance.hasNonLoadedImages()},b.prototype.executeCore=function(y,E){var S=this;try{var O=this.getExportManager();this.getExportFunc()(this.control.model.size.clone(),this.control.model.pageColor,O,function(w){E(w,S.getExtension()),S.tryDispose()},this.control.settings.useCanvgForExportToImage)}catch(w){throw this.tryDispose(),w}return!0},b.prototype.getExportManager=function(){var y=this.getOrCreateMeasurer(),E=this.control.render&&this.control.render.items||this.createItemsManager(y);return this.exportManager||(this.exportManager=new f.CanvasExportManager(E.itemsContainer,y))},b.prototype.createItemsManager=function(y){this.svgElement=s.RenderHelper.createSvgElement(document.body,!0);var E=new C.CanvasItemsManager(this.svgElement,1,new d.ExportDOMManipulator(y));return this.control.modelManipulator.onModelChanged.add(E),this.control.modelManipulator.commitItemsCreateChanges(),E},b.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},b.prototype.getOrCreateMeasurer=function(){return this.control.measurer||(this.tempMeasurer=new u.TextMeasurer(document.body))},b}(a.ExportImportCommandBase);l.ExportImageCommand=g},function(he,l,o){"use strict";var I;Object.defineProperty(l,"__esModule",{value:!0}),l.ItemChange=l.ItemChangeType=void 0,(I=l.ItemChangeType||(l.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 c=function(){function I(C,f,a){void 0===a&&(a=!0),this.item=C,this.type=f,this.isValid=a}return Object.defineProperty(I.prototype,"key",{get:function(){return this.item.key},enumerable:!1,configurable:!0}),I}();l.ItemChange=c},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ExportDOMManipulator=l.DOMManipulator=void 0;var C=o(61),f=function(){function p(s){this.measurer=s,this.queue=[]}return p.prototype.createElement=function(s,u,d){return s.createElement(function(h){null!=u&&(void 0!==d?u.insertBefore(h,d):u.appendChild(h))})},p.prototype.changeChildrenByPrimitives=function(s,u){var d=this;s.forEach(function(h,g){d.changeByPrimitive(u.childNodes[g],h)})},p.prototype.changeByFunc=function(s,u){this.doChange(s,u)},p.prototype.changeByPrimitive=function(s,u){this.doChange(s,u)},p.prototype.cancelAnimation=function(){void 0!==this.rafId&&(cancelAnimationFrame(this.rafId),this.queue=[])},p.prototype.doChange=function(s,u){C.Diagnostics.optimizeUsingRAF?(this.queue.push([s,u]),this.requestAnimation()):this.doChangeSync(s,u)},p.prototype.doChangeSync=function(s,u){"function"==typeof u?u(s):u.applyElementProperties(s,this.measurer)},p.prototype.requestAnimation=function(){var s=this;if(!this.rafRequested){this.rafRequested=!0;var u=function(){s.queue.splice(0,2e3).forEach(function(d){return s.doChangeSync(d[0],d[1])}),s.queue.length?s.rafId=requestAnimationFrame(u):(s.rafRequested=!1,s.rafId=void 0)};this.rafId=requestAnimationFrame(u)}},p}();l.DOMManipulator=f;var a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.doChange=function(u,d){this.doChangeSync(u,d)},s}(f);l.ExportDOMManipulator=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ClipboardCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.setClipboardData=function(p){this.control.render&&this.control.render.input.setClipboardData(p),a.clipboardData=p},a.prototype.getClipboardData=function(p){this.control.render&&this.isPasteSupportedByBrowser()?this.control.render.input.getClipboardData(p):p(a.clipboardData)},a.prototype.isPasteSupportedByBrowser=function(){return this.control.render&&this.control.render.input.isPasteSupportedByBrowser()},a}(o(10).SimpleCommandBase);l.ClipboardCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeZindexHistoryItem=void 0;var C=function(f){function a(p,s){var u=f.call(this)||this;return u.itemKey=p.key,u.zIndex=s,u}return I(a,f),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey);this.oldZIndex=s.zIndex,p.changeZIndex(s,this.zIndex)},a.prototype.undo=function(p){var s=p.model.findItem(this.itemKey);p.changeZIndex(s,this.oldZIndex)},a}(o(8).HistoryItem);l.ChangeZindexHistoryItem=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DataLayoutParameters=l.DataLayoutType=void 0;var c,p,I=o(20),C=o(97),f=o(80);(p=c=l.DataLayoutType||(l.DataLayoutType={}))[p.Tree=0]="Tree",p[p.Sugiyama=1]="Sugiyama";var a=function(){function p(s,u){this.sizeSettings=s,u&&(void 0!==u.type&&(this.layoutType=u.type,this.layoutSettings=this.layoutType===c.Sugiyama?new I.LayoutSettings:new I.TreeLayoutSettings),void 0!==u.orientation&&(this.layoutSettings.orientation=u.orientation),this.skipPointIndices=u.skipPointIndices,this.autoSizeEnabled=u.autoSizeEnabled)}return Object.defineProperty(p.prototype,"needAutoLayout",{get:function(){return void 0!==this.layoutType},enumerable:!1,configurable:!0}),p.prototype.getLayoutBuilder=function(s){return this.layoutType===c.Tree?new C.TreeLayoutBuilder(this.layoutSettings,s):new f.SugiyamaLayoutBuilder(this.layoutSettings,s)},p}();l.DataLayoutParameters=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.EditShapeImageCommandBase=void 0;var C=o(146),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabled=function(){var s=this.getSelectedShape();return a.prototype.isEnabled.call(this)&&!!s&&!s.locked&&s.enableImage&&s.allowEditImage},p.prototype.getValue=function(){var s=this.getSelectedShape();return s?s.image.exportUrl:void 0},p.prototype.getSelectedShape=function(){var s=this.control.selection.getSelectedShapes(!0);return 1===s.length?s[0]:void 0},p.prototype.executeCore=function(s,u){this.control.history.beginTransaction();var d=this.control.selection.getSelectedShapes(!1);return this.control.history.addAndRedo(new C.ChangeShapeImageHistoryItem(d[0],u)),this.control.history.endTransaction(),!0},p}(o(10).SimpleCommandBase);l.EditShapeImageCommandBase=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(165),I=o(166),C=function(){function f(){}return f.remove=function(a,p){var s=a.indexOf(p,0);s>=0&&a.splice(s,1)},f.removeBy=function(a,p){for(var s=a.length,u=0;u<s;u++)if(p(a[u],u))return a.splice(u,1)[0];return null},f.shallowCopy=function(a){return a.slice()},f.deepCopy=function(a){return f.map(a,function(p){return p.clone()})},f.initByValue=function(a,p){for(var s=[];a>0;a--)s.push(p);return s},f.initByCallback=function(a,p){for(var s=[],u=0;u<a;u++)s.push(p(u));return s},f.forEachOnInterval=function(a,p){for(var s=a.end,u=a.start;u<s;u++)p(u)},f.reverseForEachOnInterval=function(a,p){for(var s=a.start,u=a.end-1;u>=s;u--)p(u)},f.reducedMap=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=[],h=s;h<u;h++){var g=p(a[h],h);null!==g&&d.push(g)}return d},f.filter=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=[],h=s;h<u;h++){var g=a[h];p(g,h)&&d.push(g)}return d},f.map=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=[],h=s;h<u;h++)d.push(p(a[h],h));return d},f.indexBy=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=s;d<u;d++)if(p(a[d],d))return d;return-1},f.reverseIndexBy=function(a,p,s,u){void 0===s&&(s=a.length-1),void 0===u&&(u=0);for(var d=s;d>=u;d--)if(p(a[d],d))return d;return-1},f.elementBy=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);var d=f.indexBy(a,p,s,u);return d<0?null:a[d]},f.reverseElementBy=function(a,p,s,u){void 0===s&&(s=a.length-1),void 0===u&&(u=0);var d=f.reverseIndexBy(a,p,s,u);return d<0?null:a[d]},f.last=function(a){return a[a.length-1]},f.setLast=function(a,p){return a[a.length-1]=p},f.incLast=function(a){return++a[a.length-1]},f.decLast=function(a){return--a[a.length-1]},f.equals=function(a,p){return a.length===p.length&&f.allOf2(a,p,function(s,u){return s.equals(u)})},f.equalsByReference=function(a,p){var s=a.length;if(s!==a.length)return!1;for(var u=0;u<s;u++)if(a[u]!==p[u])return!1;return!0},f.unique=function(a,p,s,u){void 0===s&&(s=p),void 0===u&&(u=function(){});var d=a.length;if(0===d)return[];var h=(a=a.sort(p))[0],g=f.reducedMap(a,function(x){return 0!==s(h,x)?(h=x,x):(u(x),null)},1,d);return g.unshift(a[0]),g},f.uniqueNumber=function(a){a=a.sort(I.Comparers.number);for(var p=Number.NaN,s=a.length-1;s>=0;s--)p===a[s]?a.splice(s,1):p=a[s];return a},f.forEach=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=s;d<u;d++)p(a[d],d)},f.forEach2=function(a,p,s,u,d){void 0===u&&(u=0),void 0===d&&(d=a.length);for(var h=u;h<d;h++)s(a[h],p[h],h)},f.reverseForEach=function(a,p,s,u){void 0===s&&(s=a.length-1),void 0===u&&(u=0);for(var d=s;d>=u;d--)p(a[d],d)},f.reverseIndexOf=function(a,p,s,u){void 0===s&&(s=a.length-1),void 0===u&&(u=0);for(var d=s;d>=u;d--)if(a[d]===p)return d;return-1},f.accumulate=function(a,p,s,u,d){void 0===u&&(u=0),void 0===d&&(d=a.length);for(var h=p,g=u;g<d;g++)h=s(h,a[g],g);return h},f.accumulateNumber=function(a,p,s,u,d){void 0===s&&(s=0),void 0===u&&(u=0),void 0===d&&(d=a.length);for(var h=s,g=u;g<d;g++)h+=p(a[g],g,h);return h},f.anyOf=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=s;d<u;d++)if(p(a[d],d))return!0;return!1},f.unsafeAnyOf=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=s;d<u;d++){var h=p(a[d],d);if(h)return h}return null},f.reverseAnyOf=function(a,p,s,u){void 0===s&&(s=a.length-1),void 0===u&&(u=0);for(var d=s;d>=u;d--)if(p(a[d],d))return!0;return!1},f.unsafeReverseAnyOf=function(a,p,s,u){void 0===s&&(s=a.length-1),void 0===u&&(u=0);for(var d=s;d>=u;d--){var h=p(a[d],d);if(h)return h}return null},f.anyOf2=function(a,p,s,u,d){void 0===u&&(u=0),void 0===d&&(d=a.length);for(var h=u;h<d;h++)if(s(a[h],p[h],h))return!0;return!1},f.allOf=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=s;d<u;d++)if(!p(a[d],d))return!1;return!0},f.allOf2=function(a,p,s,u,d){void 0===u&&(u=0),void 0===d&&(d=a.length);for(var h=u;h<d;h++)if(!s(a[h],p[h],h))return!1;return!0},f.allOfOnInterval=function(a,p){for(var s=a.end,u=a.start;u<s;u++)if(!p(u))return!1;return!0},f.addListOnTail=function(a,p){for(var s=0,u=void 0;u=p[s];s++)a.push(u);return a},f.joinLists=function(a){for(var p=[],s=1;s<arguments.length;s++)p[s-1]=arguments[s];return f.accumulate(p,[],function(u,d){return f.addListOnTail(u,a(d)),u})},f.push=function(a,p){return a.push(p),a},f.countIf=function(a,p){return f.accumulateNumber(a,function(s,u){return p(s,u)?1:0})},f.clear=function(a){a.splice(0)},f.merge=function(a,p,s,u,d,h){if(void 0===d&&(d=0),void 0===h&&(h=a.length),a=a.slice(d,h),h-d<2)return a;for(var g=(a=a.sort(p))[d],x=[g],b=d+1;b<h;b++){var y=a[b];s(g,y)?u(g,y):x.push(g=y)}return x},f.min=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);var d=f.minExtended(a,p,s,u);return d?d.minElement:null},f.max=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);var d=f.maxExtended(a,p,s,u);return d?d.maxElement:null},f.minMax=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);var d=f.minMaxExtended(a,p,s,u);return d?new c.MinMax(d.minElement,d.maxElement):null},f.minExtended=function(a,p,s,u){if(void 0===s&&(s=0),void 0===u&&(u=a.length),0===a.length)return null;for(var d=a[s],h=p(d),g=s+1;g<u;g++){var x=a[g],b=p(x);b<h&&(h=b,d=x)}return new c.ExtendedMin(d,h)},f.maxExtended=function(a,p,s,u){if(void 0===s&&(s=0),void 0===u&&(u=a.length),0===a.length)return null;for(var d=a[s],h=p(d),g=s+1;g<u;g++){var x=a[g],b=p(x);b>h&&(h=b,d=x)}return new c.ExtendedMax(d,h)},f.minMaxExtended=function(a,p,s,u){if(void 0===s&&(s=0),void 0===u&&(u=a.length),0===a.length)return null;for(var d=a[s],h=d,g=p(d),x=g,b=s+1;b<u;b++){var y=a[b],E=p(y);E<g?(g=E,d=y):E>x&&(x=E,h=y)}return new c.ExtendedMinMax(d,g,h,x)},f.minByCmp=function(a,p,s,u){if(void 0===s&&(s=0),void 0===u&&(u=a.length),0===a.length)return null;for(var d=a[s],h=s+1;h<u;h++){var g=a[h];p(g,d)<0&&(d=g)}return d},f.maxByCmp=function(a,p,s,u){if(void 0===s&&(s=0),void 0===u&&(u=a.length),0===a.length)return null;for(var d=a[s],h=s+1;h<u;h++){var g=a[h];p(g,d)>0&&(d=g)}return d},f.minMaxByCmp=function(a,p,s,u){if(void 0===s&&(s=0),void 0===u&&(u=a.length),0===a.length)return null;for(var d=a[s],h=d,g=s+1;g<u;g++){var x=a[g],b=p(x,d);b>0?h=x:b<0&&(d=x)}return new c.MinMax(d,h)},f}();l.ListUtils=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(59),I=function(C){function f(a,p){var s=C.call(this)||this;return s.start=a,s.length=p,s}return c.__extends(f,C),Object.defineProperty(f.prototype,"end",{get:function(){return this.start+this.length},set:function(a){this.length=a-this.start},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"center",{get:function(){return this.start+this.length/2},enumerable:!0,configurable:!0}),f.prototype.copyFrom=function(a){this.start=a.start,this.length=a.length},f.prototype.equals=function(a){return a&&this.start===a.start&&this.length===a.length},f.prototype.clone=function(){return new f(this.start,this.length)},f.prototype.makeByStartEnd=function(a,p){return new f(a,p-a)},f.prototype.makeByStartLength=function(a,p){return new f(a,p)},f.prototype.makeByLengthEnd=function(a,p){return new f(p-a,a)},f.fromPositions=function(a,p){return new f(a,p-a)},f.makeByConstInterval=function(a){return new f(a.start,a.length)},f.prototype.expand=function(a){var p=Math.max(a.end,this.end);return this.start=Math.min(a.start,this.start),this.end=p,this},f}(o(167).MutableInterval);l.FixedInterval=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=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}();l.SparseIntervalsIterator=c},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.FilterPrimitive=void 0;var C=o(15),f=function(a){function p(s,u,d,h,g){var x=a.call(this)||this;return x.id=s,x.x=u,x.y=d,x.width=h,x.height=g,x}return I(p,a),p.prototype.createMainElement=function(){var s=document.createElementNS(C.svgNS,"filter");return s.setAttribute("id",this.id),s},p.prototype.applyElementProperties=function(s,u){this.id&&s.setAttribute("id",this.id),this.setUnitAttribute(s,"x",this.x),this.setUnitAttribute(s,"y",this.y),this.setUnitAttribute(s,"width",this.width),this.setUnitAttribute(s,"height",this.height),this.setPositionCorrectionAttribute(s),a.prototype.applyElementProperties.call(this,s,u)},p}(o(24).SvgPrimitive);l.FilterPrimitive=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PrimitiveObject=void 0;var c=o(12),I=function(){function C(f){this.style=f}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(f){return"number"==typeof f?c.UnitConverter.twipsToPixels(f).toString():f},C.prototype.setUnitAttribute=function(f,a,p){null!=p&&f.setAttribute(a,this.getUnitVaue(p))},C.prototype.setPositionCorrectionAttribute=function(f){f.setAttribute("transform",this.strokeWidthPx%2==1?"translate("+this.strokeOffset+", "+this.strokeOffset+")":"")},C}();l.PrimitiveObject=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.isColorProperty=void 0;var c={stroke:!0,fill:!0};l.isColorProperty=function(I){return c[I]}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorPointsCalculatorBase=void 0,l.ConnectorPointsCalculatorBase=function(I){this.connector=I}},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeShapeParametersHistoryItem=void 0;var C=function(f){function a(p,s){var u=f.call(this)||this;return u.shapeKey=p,u.parameters=s,u}return I(a,f),a.prototype.redo=function(p){var s=p.model.findShape(this.shapeKey);this.oldParameters=s.parameters.clone(),p.changeShapeParameters(s,this.parameters)},a.prototype.undo=function(p){var s=p.model.findShape(this.shapeKey);p.changeShapeParameters(s,this.oldParameters)},a}(o(8).HistoryItem);l.ChangeShapeParametersHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.DeleteConnectorHistoryItem=void 0;var C=function(f){function a(p){var s=f.call(this)||this;return s.connectorKey=p,s}return I(a,f),a.prototype.redo=function(p){var s=p.model.findConnector(this.connectorKey);this.connector=s.clone(),p.deleteConnector(s)},a.prototype.undo=function(p){p.addConnector(this.connector,this.connector.key)},a}(o(8).HistoryItem);l.DeleteConnectorHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.DeleteShapeHistoryItem=void 0;var C=function(f){function a(p,s){void 0===s&&(s=!0);var u=f.call(this)||this;return u.shapeKey=p,u.allowed=s,u}return I(a,f),a.prototype.redo=function(p){var s=p.model.findShape(this.shapeKey);this.shape=s.clone(),p.deleteShape(s,this.allowed)},a.prototype.undo=function(p){p.addShape(this.shape,this.shape.key)},a}(o(8).HistoryItem);l.DeleteShapeHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ResizeShapeHistoryItem=void 0;var C=function(f){function a(p,s,u){var d=f.call(this)||this;return d.shapeKey=p,d.position=s,d.size=u,d}return I(a,f),a.prototype.redo=function(p){var s=p.model.findShape(this.shapeKey);this.oldPosition=s.position.clone(),this.oldSize=s.size.clone(),p.resizeShape(s,this.position,this.size)},a.prototype.undo=function(p){var s=p.model.findShape(this.shapeKey);p.resizeShape(s,this.oldPosition,this.oldSize)},a}(o(8).HistoryItem);l.ResizeShapeHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeCustomDataHistoryItem=void 0;var C=o(8),f=o(3),a=function(p){function s(u,d){var h=p.call(this)||this;return h.itemKey=u,h.customData=f.ObjectUtils.cloneObject(d),h}return I(s,p),s.prototype.redo=function(u){var d=u.model.findItem(this.itemKey);this.oldCustomData=f.ObjectUtils.cloneObject(d.customData),u.changeCustomData(d,this.customData)},s.prototype.undo=function(u){var d=u.model.findItem(this.itemKey);u.changeCustomData(d,this.oldCustomData)},s}(C.HistoryItem);l.ChangeCustomDataHistoryItem=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeLockedHistoryItem=void 0;var C=function(f){function a(p,s){var u=f.call(this)||this;return u.itemKey=p.key,u.locked=s,u}return I(a,f),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey);this.oldLocked=s.locked,p.changeLocked(s,this.locked)},a.prototype.undo=function(p){var s=p.model.findItem(this.itemKey);p.changeLocked(s,this.oldLocked)},a}(o(8).HistoryItem);l.ChangeLockedHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeStyleHistoryItemBase=void 0;var C=function(f){function a(p,s,u){var d=f.call(this)||this;return d.itemKey=p,d.styleProperty=s,d.styleValue=u,d}return I(a,f),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey);this.oldStyleValue=s.style[this.styleProperty],p.changeStyle(s,this.styleProperty,this.styleValue)},a.prototype.undo=function(p){var s=p.model.findItem(this.itemKey);p.changeStyle(s,this.styleProperty,this.oldStyleValue)},a}(o(8).HistoryItem);l.ChangeStyleHistoryItemBase=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(l,"__esModule",{value:!0}),l.Importer=void 0;var C=o(14),f=o(3),a=o(2),p=o(0),s=o(91),u=o(6),d=o(51),h=o(133),g=o(95),x=o(22),b=function(y){function E(S,O){var w=y.call(this,S)||this;return w.obj=g.ImportUtils.parseJSON(O),w}return I(E,y),E.prototype.getObject=function(){return this.obj},E.prototype.getPageObject=function(S){return S.page},E.prototype.getShapeObjects=function(S){return S.shapes},E.prototype.getConnectorObjects=function(S){return S.connectors},E.prototype.importPageSettings=function(S,O){O&&(this.assert(O.width,"number"),this.assert(O.height,"number"),"number"==typeof O.width&&(S.size.width=O.width),"number"==typeof O.height&&(S.size.height=O.height),"number"==typeof O.pageColor?S.pageColor=O.pageColor:"string"==typeof O.pageColor&&(S.pageColor=x.ColorUtils.fromString(O.pageColor)),"number"==typeof O.pageWidth&&(S.pageSize.width=O.pageWidth),"number"==typeof O.pageHeight&&(S.pageSize.height=O.pageHeight),"boolean"==typeof O.pageLandscape&&(S.pageLandscape=O.pageLandscape))},E.prototype.importShape=function(S){this.assert(S.key,"string"),this.assert(S.x,"number"),this.assert(S.y,"number"),this.assert(S.type,"string");var w=this.shapeDescriptionManager.get(S.type),T=new p.Point(S.x,S.y),k=new C.Shape(w||s.ShapeDescriptionManager.default,T);return k.key=S.key,"string"!=typeof S.dataKey&&"number"!=typeof S.dataKey||(k.dataKey=S.dataKey),"object"==typeof S.customData&&(k.customData=f.ObjectUtils.cloneObject(S.customData)),"boolean"==typeof S.locked&&(k.locked=S.locked),"number"==typeof S.width&&(k.size.width=S.width),"number"==typeof S.height&&(k.size.height=S.height),"string"==typeof S.text&&(k.text=S.text),"string"==typeof S.imageUrl&&(k.image=new d.ImageInfo(S.imageUrl)),S.parameters&&(k.parameters.fromObject(S.parameters),k.description.normalizeParameters(k,k.parameters)),S.style&&k.style.fromObject(S.style),S.styleText&&k.styleText.fromObject(S.styleText),"number"==typeof S.zIndex&&(k.zIndex=S.zIndex),Array.isArray(S.childKeys)&&(k.childKeys=S.childKeys.slice()),"boolean"==typeof S.expanded&&(k.expanded=S.expanded),"number"==typeof S.expandedWidth&&"number"==typeof S.expandedHeight&&(k.expandedSize=new a.Size(S.expandedWidth,S.expandedHeight)),k},E.prototype.importShapeChildren=function(S,O){return[]},E.prototype.importConnector=function(S){var O=this;if(this.assert(S.key,"string"),!Array.isArray(S.points))throw Error("Invalid Format");var w=S.points.map(function(k){return O.assert(k.x,"number"),O.assert(k.y,"number"),new p.Point(k.x,k.y)}),T=new u.Connector(w);return T.key=S.key,"string"!=typeof S.dataKey&&"number"!=typeof S.dataKey||(T.dataKey=S.dataKey),"object"==typeof S.customData&&(T.customData=f.ObjectUtils.cloneObject(S.customData)),"boolean"==typeof S.locked&&(T.locked=S.locked),T.endConnectionPointIndex="number"==typeof S.endConnectionPointIndex?S.endConnectionPointIndex:-1,T.beginConnectionPointIndex="number"==typeof S.beginConnectionPointIndex?S.beginConnectionPointIndex:-1,void 0!==S.endItemKey&&this.assert(S.endItemKey,"string"),void 0!==S.beginItemKey&&this.assert(S.beginItemKey,"string"),T.endItemKey=S.endItemKey,T.beginItemKey=S.beginItemKey,S.texts&&T.texts.fromObject(S.texts),S.properties&&T.properties.fromObject(S.properties),S.style&&T.style.fromObject(S.style),S.styleText&&T.styleText.fromObject(S.styleText),"number"==typeof S.zIndex&&(T.zIndex=S.zIndex),T},E}(h.ImporterBase);l.Importer=b},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.DiamondShapeDescription=void 0;var C=o(7),f=o(5),a=o(1),p=function(s){function u(d,h){return void 0===d&&(d=C.ShapeDefaultSize.clone()),s.call(this,d,h)||this}return I(u,s),Object.defineProperty(u.prototype,"key",{get:function(){return a.ShapeTypes.Diamond},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),u.prototype.createShapePrimitives=function(d){var h=d.rectangle,g=h.x,b=h.right,y=h.bottom,E=h.center,S=E.x,O=E.y;return[new f.PathPrimitive([new f.PathPrimitiveMoveToCommand(S,h.y),new f.PathPrimitiveLineToCommand(b,O),new f.PathPrimitiveLineToCommand(S,y),new f.PathPrimitiveLineToCommand(g,O),new f.PathPrimitiveClosePathCommand],d.style)]},u.prototype.getTextRectangle=function(d){return d.rectangle.clone().inflate(-d.size.width/4,-d.size.height/4)},u.prototype.getSizeByText=function(d,h){return d.clone().multiply(2,2)},u}(C.ShapeDescription);l.DiamondShapeDescription=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.TextShapeDescription=void 0;var C=o(7),f=o(2),a=o(1),p=o(56),s=o(21),u=o(17),d=function(h){function g(){var x=h.call(this,new f.Size(C.ShapeDefaultDimension,.5*C.ShapeDefaultDimension),!0)||this;return x.textClipPathId=u.RenderUtils.generateSvgElementId("clipRect"),x}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return a.ShapeTypes.Text},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x,b){if(b){var y=x.rectangle,E=y.x,S=y.y,O=y.width,w=y.height;return[new p.ClipPathPrimitive(this.getTextClipPathId(b),[new s.RectanglePrimitive(E,S,O,w)])]}return[]},g.prototype.getTextClipPathId=function(x){return x?this.textClipPathId:void 0},g.prototype.getSizeByTextRectangle=function(x){return x},g.prototype.getSizeByText=function(x,b){return x.clone()},g.prototype.getTextRectangle=function(x){return x.rectangle},g}(C.ShapeDescription);l.TextShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.PentagonShapeDescription=void 0;var C=o(5),f=o(1),a=o(94),p=o(9),s=o(3),u=o(13),d=function(h){function g(x){var b=h.call(this,x)||this;return b.defaultRatio=b.defaultSize.height/b.defaultSize.width,b}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return f.ShapeTypes.Pentagon},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"angleCount",{get:function(){return 5},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,w=b.width,T=b.height,k=b.center.x,R=T/w/this.defaultRatio,P=Math.PI-this.angle,B=w/2*Math.tan(P/2)*R,W=E+B,N=(T-B)/Math.tan(P)/R,V=y+N,U=S-N;return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(k,E),new C.PathPrimitiveLineToCommand(S,W),new C.PathPrimitiveLineToCommand(U,O),new C.PathPrimitiveLineToCommand(V,O),new C.PathPrimitiveLineToCommand(y,W),new C.PathPrimitiveClosePathCommand],x.style)]},g.prototype.processConnectionPoint=function(x,b){var y=x.getConnectionPointSide(b);if(y===p.ConnectionPointSide.East||y===p.ConnectionPointSide.West){var E=x.rectangle,O=E.width,w=E.height/O/this.defaultRatio,T=Math.PI-this.angle,k=E.y+O/2*Math.tan(T/2)*w;(y===p.ConnectionPointSide.East||y===p.ConnectionPointSide.West)&&(b.y=k)}},g.prototype.calculateHeight=function(x){var b=Math.PI-this.angle;return x/2*Math.tan(b/2)+x/2/Math.cos(b/2)*Math.sin(b)},g.prototype.getTextRectangle=function(x){var b=s.GeometryUtils.getMaxRectangleEnscribedInEllipse(x.size);return u.Rectangle.fromGeometry(x.position.clone().offset((x.size.width-b.width)/2,(x.size.height-b.height)/2),b)},g.prototype.getSizeByText=function(x,b){return s.GeometryUtils.getEllipseByEnscribedRectangle(x)},g}(a.PolygonShapeDescription);l.PentagonShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.HexagonShapeDescription=void 0;var C=o(5),f=o(1),a=o(94),p=o(3),s=o(13),u=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return f.ShapeTypes.Hexagon},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"angleCount",{get:function(){return 6},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(g){var x=g.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.width,w=x.center.y,T=Math.PI-this.angle,k=O/(1+2*Math.cos(T)),R=b+(O-k)/2,P=R+k;return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(R,y),new C.PathPrimitiveLineToCommand(P,y),new C.PathPrimitiveLineToCommand(E,w),new C.PathPrimitiveLineToCommand(P,S),new C.PathPrimitiveLineToCommand(R,S),new C.PathPrimitiveLineToCommand(b,w),new C.PathPrimitiveClosePathCommand],g.style)]},h.prototype.calculateHeight=function(g){var x=Math.PI-this.angle;return g/(1+2*Math.cos(x))*2*Math.sin(x)},h.prototype.getTextRectangle=function(g){var x=p.GeometryUtils.getMaxRectangleEnscribedInEllipse(g.size);return s.Rectangle.fromGeometry(g.position.clone().offset((g.size.width-x.width)/2,(g.size.height-x.height)/2),x)},h.prototype.getSizeByText=function(g,x){return p.GeometryUtils.getEllipseByEnscribedRectangle(g)},h}(a.PolygonShapeDescription);l.HexagonShapeDescription=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(g,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(g,x)},function(g,x){function b(){this.constructor=g}c(g,x),g.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(l,"__esModule",{value:!0}),l.TriangleShapeDescription=void 0;var C=o(7),f=o(5),a=o(1),p=o(45),s=o(9),u=o(13),d=o(2),h=function(g){function x(b){var y=g.call(this,void 0,b)||this;return y.defaultSize.height=y.calculateHeight(C.ShapeDefaultDimension),y}return I(x,g),Object.defineProperty(x.prototype,"key",{get:function(){return a.ShapeTypes.Triangle},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),x.prototype.createConnectionPoints=function(){return[new p.ConnectionPoint(.5,0,s.ConnectionPointSide.North),new p.ConnectionPoint(.75,.5,s.ConnectionPointSide.East),new p.ConnectionPoint(.5,1,s.ConnectionPointSide.South),new p.ConnectionPoint(.25,.5,s.ConnectionPointSide.West)]},x.prototype.createShapePrimitives=function(b){var y=b.rectangle,E=y.x,O=y.right,w=y.bottom;return[new f.PathPrimitive([new f.PathPrimitiveMoveToCommand(y.center.x,y.y),new f.PathPrimitiveLineToCommand(O,w),new f.PathPrimitiveLineToCommand(E,w),new f.PathPrimitiveClosePathCommand],b.style)]},x.prototype.calculateHeight=function(b){return Math.sqrt(Math.pow(b,2)-Math.pow(b/2,2))},x.prototype.getTextRectangle=function(b){return new u.Rectangle(b.position.x+b.size.width/4,b.position.y+b.size.height/2,b.size.width/2,b.size.height/2-C.ShapeTextPadding).nonNegativeSize()},x.prototype.getSizeByText=function(b,y){return new d.Size(2*b.width,2*b.height+C.ShapeTextPadding)},x}(C.ShapeDescription);l.TriangleShapeDescription=h},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.DocumentShapeDescription=void 0;var C=o(19),f=o(1),a=o(5),p=o(9),s=function(u){function d(){return u.call(this,void 0,!0)||this}return I(d,u),Object.defineProperty(d.prototype,"key",{get:function(){return f.ShapeTypes.Document},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d.prototype.createShapePrimitives=function(h){return this.createDocumentPrimitives(h.rectangle,h.style)},d.prototype.createDocumentPrimitives=function(h,g){var x=h.x,b=h.y,y=h.right,E=h.bottom,S=h.width,w=h.center.x,T=h.height*d.curveOffsetRatio;return[].concat([new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(x,b),new a.PathPrimitiveLineToCommand(y,b),new a.PathPrimitiveLineToCommand(y,E),new a.PathPrimitiveQuadraticCurveToCommand(y-.25*S,E-2*T,w,E-T),new a.PathPrimitiveQuadraticCurveToCommand(x+.25*S,E+T,x,E-T),new a.PathPrimitiveClosePathCommand],g)])},d.prototype.processConnectionPoint=function(h,g){h.getConnectionPointSide(g)===p.ConnectionPointSide.South&&(g.y-=h.size.height*d.curveOffsetRatio)},d.prototype.getTextRectangle=function(h){var g=h.rectangle;return g.clone().resize(0,-g.height*d.curveOffsetRatio)},d.curveOffsetRatio=.1,d}(C.RectangleShapeDescription);l.DocumentShapeDescription=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(S,O){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var k in T)T.hasOwnProperty(k)&&(w[k]=T[k])})(S,O)},function(S,O){function w(){this.constructor=S}c(S,O),S.prototype=null===O?Object.create(O):(w.prototype=O.prototype,new w)});Object.defineProperty(l,"__esModule",{value:!0}),l.CustomShapeDescription=void 0;var C=o(127),f=o(13),a=o(2),p=o(0),s=o(45),u=o(9),d=o(128),h=o(7),g=o(51),x=o(46),b=o(130),y=o(231),E=function(S){function O(w,T){var k=S.call(this,new a.Size(w.defaultWidth||T&&T.defaultSize.width||h.ShapeDefaultDimension,w.defaultHeight||T&&T.defaultSize.height||h.ShapeDefaultDimension))||this;if(k.properties=w,k.baseDescription=T,k.imageLoader=new b.ImageLoader(k.updateSvgImage.bind(k)),k.defaultText=void 0!==w.defaultText?w.defaultText:T&&T.getDefaultText(),k.defaultImageUrl=w.defaultImageUrl||T&&T.getDefaultImageUrl(),k.title=w.title||T&&T.getTitle()||k.defaultText||"",k.connectionPoints=k.createConnectionPoints(),w.svgUrl){k.svgImage=new g.ImageInfo(w.svgUrl);var R=x.ImageCache.instance.createUnloadedInfoByShapeImageInfo(k.svgImage);k.imageLoader.load(R)}return w.svgToolboxUrl&&(k.svgToolboxImage=new g.ImageInfo(w.svgToolboxUrl),R=x.ImageCache.instance.createUnloadedInfoByShapeImageInfo(k.svgToolboxImage),k.imageLoader.load(R)),k}return I(O,S),Object.defineProperty(O.prototype,"key",{get:function(){return this.properties.type},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"allowEditText",{get:function(){return!1!==this.properties.allowEditText},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"allowEditImage",{get:function(){return this.baseDescription?this.baseDescription.allowEditImage:!0===this.properties.allowEditImage},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"enableChildren",{get:function(){return this.baseDescription&&this.baseDescription.enableChildren},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hasTemplate",{get:function(){return!!this.properties.createTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minWidth",{get:function(){return this.properties.minWidth||this.baseDescription&&this.baseDescription.minWidth},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minHeight",{get:function(){return this.properties.minHeight||this.baseDescription&&this.baseDescription.minHeight},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"maxWidth",{get:function(){return this.properties.maxWidth||this.baseDescription&&this.baseDescription.maxWidth},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"maxHeight",{get:function(){return this.properties.maxHeight||this.baseDescription&&this.baseDescription.maxHeight},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"keepRatioOnAutoSize",{get:function(){return this.properties.keepRatioOnAutoSize},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"toolboxSize",{get:function(){return this.properties.toolboxWidthToHeightRatio?new a.Size(this.defaultSize.width,this.defaultSize.width/this.properties.toolboxWidthToHeightRatio):this.defaultSize},enumerable:!1,configurable:!0}),O.prototype.getTextAngle=function(){return this.baseDescription&&this.baseDescription.getTextAngle()||S.prototype.getTextAngle.call(this)},O.prototype.getTitle=function(){return void 0!==this.title?this.title:S.prototype.getTitle.call(this)},O.prototype.getDefaultText=function(){return void 0!==this.defaultText?this.defaultText:S.prototype.getDefaultText.call(this)},O.prototype.getDefaultImageUrl=function(){return void 0!==this.defaultImageUrl?this.defaultImageUrl:S.prototype.getDefaultImageUrl.call(this)},O.prototype.allowResizeHorizontally=function(w){return!1!==this.properties.allowResize&&(this.baseDescription?this.baseDescription.allowResizeHorizontally(w):S.prototype.allowResizeHorizontally.call(this,w))},O.prototype.allowResizeVertically=function(w){return!1!==this.properties.allowResize&&(this.baseDescription?this.baseDescription.allowResizeVertically(w):S.prototype.allowResizeVertically.call(this,w))},O.prototype.createConnectionPoints=function(){return this.properties&&this.properties.connectionPoints&&this.properties.connectionPoints.length?this.properties.connectionPoints.map(function(w){if(w&&"number"==typeof w.x&&"number"==typeof w.y)return new s.ConnectionPoint(w.x,w.y,"number"==typeof w.side?w.side:u.ConnectionPointSide.Undefined)}).filter(function(w){return w}):S.prototype.createConnectionPoints.call(this)},O.prototype.getConnectionPointSides=function(){for(var w={},T=0;T<this.connectionPoints.length;T++){var k=h.ShapeDescription.getConnectionPointSideByGeometry(this.connectionPoints[T]);w[k]||(w[k]=[]),w[k].push(T)}return w},O.prototype.getConnectionPointIndexForSide=function(w){var T=this.getConnectionPointSides(),k=T[w];if(k){var R=Math.floor(k.length/2);return k.length%2==0&&R--,k[R]}return(k=T[(w+1)%4])?k[0]:(k=T[(w+3)%4])?k[k.length-1]:(k=T[(w+2)%4])?k[0]:w},O.prototype.createImagePrimitives=function(w,T){return this.baseDescription?this.baseDescription.createImagePrimitives(w,T):S.prototype.createImagePrimitives.call(this,w,T)},O.prototype.createShapePrimitives=function(w,T){var k=[],R=w.rectangle,P=R.x,B=R.y,W=R.width,N=R.height;if(this.baseDescription)k=this.baseDescription.createShapePrimitives(w,T);else{var V=T&&this.svgToolboxImage?this.svgToolboxImage:this.svgImage;V&&(k=k.concat([new C.ImagePrimitive(P+(this.properties.svgLeft&&!T?this.properties.svgLeft*W:0),B+(this.properties.svgTop&&!T?this.properties.svgTop*N:0),this.properties.svgWidth&&!T?this.properties.svgWidth*W:W,this.properties.svgHeight&&!T?this.properties.svgHeight*N:N,V.exportUrl)]))}var j=T&&this.properties.createToolboxTemplate||this.properties.createTemplate;if(j){var ee=P+(this.properties.templateLeft&&!T?this.properties.templateLeft*W:0),G=B+(this.properties.templateTop&&!T?this.properties.templateTop*N:0),q=this.properties.templateWidth&&!T?this.properties.templateWidth*W:W,Z=this.properties.templateHeight&&!T?this.properties.templateHeight*N:N,X=this.properties.apiController?this.properties.apiController.createNativeShape(w):w.toNative();k=k.concat([new y.SvgElementPrimitive(ee,G,q,Z,j,this.properties.destroyTemplate,X)])}return k},O.prototype.createParameters=function(w){return this.baseDescription?this.baseDescription.createParameters(w):S.prototype.createParameters.call(this,w)},O.prototype.normalizeParameters=function(w,T){this.baseDescription?this.baseDescription.normalizeParameters(w,T):S.prototype.normalizeParameters.call(this,w,T)},O.prototype.modifyParameters=function(w,T,k,R){this.baseDescription?this.baseDescription.modifyParameters(w,T,k,R):S.prototype.modifyParameters.call(this,w,T,k,R)},O.prototype.getParameterPoints=function(w){return this.baseDescription?this.baseDescription.getParameterPoints(w):S.prototype.getParameterPoints.call(this,w)},O.prototype.getTextRectangle=function(w){if(this.baseDescription)return this.baseDescription.getTextRectangle(w);var T=w.rectangle,P=T.width,B=T.height;return new f.Rectangle(T.x+(this.properties.textLeft?this.properties.textLeft*P:0),T.y+(this.properties.textTop?this.properties.textTop*B:0),this.properties.textWidth?this.properties.textWidth*P:P,this.properties.textHeight?this.properties.textHeight*B:B)},O.prototype.getSizeByText=function(w,T){if(this.baseDescription)return this.baseDescription.getSizeByText(w,T);var k=this.properties.textWidth;k||(k=1);var R=this.properties.textHeight;return R||(R=1),new a.Size(w.width/k,w.height/R)},O.prototype.getImageSize=function(w,T,k){return this.baseDescription?this.baseDescription instanceof d.ShapeWithImageDescription?this.baseDescription.getImageSize(w,T,k):a.Size.empty():new a.Size(this.properties.imageWidth?this.properties.imageWidth*w.width:w.width,this.properties.imageHeight?this.properties.imageHeight*w.height:w.height).nonNegativeSize()},O.prototype.getImagePlacementRectangle=function(w,T){if(this.baseDescription)return this.baseDescription instanceof d.ShapeWithImageDescription?this.baseDescription.getImagePlacementRectangle(w,T):f.Rectangle.fromGeometry(p.Point.zero(),a.Size.empty());var P=w.width,B=w.height;return new f.Rectangle(w.x+(this.properties.imageLeft&&!T?this.properties.imageLeft*P:0),w.y+(this.properties.imageTop&&!T?this.properties.imageTop*B:0),this.properties.imageWidth&&!T?this.properties.imageWidth*P:P,this.properties.imageHeight&&!T?this.properties.imageHeight*B:B)},O.prototype.updateSvgImage=function(w){var T=w.imageUrl&&w.imageUrl===this.properties.svgToolboxUrl,k=T?this.svgToolboxImage:this.svgImage;w.base64?k.loadBase64Content(w.base64):k.setUnableToLoadFlag(),T||this.raiseShapeDescriptionChanged(this)},O}(d.ShapeWithImageDescription);l.CustomShapeDescription=E},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.ImagePrimitive=void 0;var C=o(15),f=function(a){function p(s,u,d,h,g,x,b,y){void 0===x&&(x="none");var E=a.call(this,b,y)||this;return E.x=s,E.y=u,E.width=d,E.height=h,E.url=g,E.preserveAspectRatio=x,E}return I(p,a),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"image")},p.prototype.applyElementProperties=function(s,u){this.setUnitAttribute(s,"x",this.x),this.setUnitAttribute(s,"y",this.y),this.setUnitAttribute(s,"width",this.width),this.setUnitAttribute(s,"height",this.height),this.setPositionCorrectionAttribute(s),s.setAttribute("href",this.url),s.setAttribute("preserveAspectRatio",this.preserveAspectRatio),a.prototype.applyElementProperties.call(this,s,u)},p}(o(24).SvgPrimitive);l.ImagePrimitive=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(E,S){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(E,S)},function(E,S){function O(){this.constructor=E}c(E,S),E.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)});Object.defineProperty(l,"__esModule",{value:!0}),l.ShapeWithImageDescription=l.SHAPE_IMAGE_CLASSNAMES=l.ShapeDefaultSize=l.ShapeDefaultDimension=void 0;var C=o(7),f=o(13),a=o(2),p=o(0),s=o(12),u=o(127),d=o(21),h=o(39),g=o(17),x=o(56),b=o(129);l.ShapeDefaultDimension=1440,l.ShapeDefaultSize=new a.Size(l.ShapeDefaultDimension,l.ShapeDefaultDimension),l.SHAPE_IMAGE_CLASSNAMES={IMAGE:"dxdi-image",IMAGE_PLACEHOLDER:"dxdi-image-placeholder",LOADING_INDICATOR:"dxdi-spinner",USER_PIC:"dxdi-user",WARNING_MARK:"dxdi-warning"};var y=function(E){function S(O,w){void 0===O&&(O=l.ShapeDefaultSize.clone());var T=E.call(this,O,w)||this;return T.hasDefaultText=w,T.defaultIconSize=480,T}return I(S,E),Object.defineProperty(S.prototype,"enableImage",{get:function(){return!0},enumerable:!1,configurable:!0}),S.prototype.getImageMargin=function(O){return s.UnitConverter.pixelsToTwips(O?2:3)},S.prototype.createImagePrimitives=function(O,w){if(!this.enableImage)return[];var T=this.getImagePlacementRectangle(O.rectangle,w);if(w)return this.createImagePlaceholder(T);var k=[];if(k=k.concat(O.image.isEmpty||O.image.unableToLoad?this.createEmptyImagePrimitives(T,O.image.unableToLoad):""===O.image.renderUrl?this.createLoadingImagePrimitives(T):this.createLoadedImagePrimitives(T,O.image.renderUrl)),""===O.image.renderUrl){var R=g.RenderUtils.generateSvgElementId("clipImage");return[].concat([new h.GroupPrimitive(k,l.SHAPE_IMAGE_CLASSNAMES.IMAGE,void 0,R),new x.ClipPathPrimitive(R,[new d.RectanglePrimitive(T.x,T.y,T.width,T.height)])])}return k},S.prototype.createImagePlaceholder=function(O){return[]},S.prototype.createLoadedImagePrimitives=function(O,w){return[new u.ImagePrimitive(O.x,O.y,O.width,O.height,w,S.imageScalingRule,void 0,l.SHAPE_IMAGE_CLASSNAMES.IMAGE)]},S.prototype.createLoadingImagePrimitives=function(O){var w=this.getIconPlacementRectangle(O);return[b.ShapeImageIndicator.createLoadingIndicatorPrimitives(w.x,w.y,this.defaultIconSize,s.UnitConverter.pixelsToTwips(5),l.SHAPE_IMAGE_CLASSNAMES.LOADING_INDICATOR)]},S.prototype.createEmptyImagePrimitives=function(O,w){var T=this.getIconPlacementRectangle(O),k=[];return k=k.concat(this.createEmptyImagePrimitive(T)),w&&(k=k.concat(this.createWarningPrimitive(T))),k},S.prototype.createEmptyImagePrimitive=function(O){return new h.GroupPrimitive([])},S.prototype.createWarningPrimitive=function(O){return new h.GroupPrimitive([])},S.prototype.getIconPlacementRectangle=function(O){var w=f.Rectangle.fromGeometry(new p.Point(O.x,O.y),new a.Size(this.defaultIconSize,this.defaultIconSize));return w.width<O.width&&(w.x=O.x+(O.width-w.width)/2),w.height<O.height&&(w.y=O.y+(O.height-w.height)/2),w},S.imageScalingRule="xMidYMid meet",S}(C.ShapeDescription);l.ShapeWithImageDescription=y},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ShapeImageIndicator=void 0;var c=o(55),I=o(5),C=o(39),f=o(18),a=o(21),p=o(12),s=function(){function u(d,h,g,x,b){this.x=d,this.y=h,this.size=g,this.borderThickness=x,this.className=b,this.animationStarted=!1}return u.createLoadingIndicatorPrimitives=function(d,h,g,x,b){return new u(d,h,g,x,b).createLoadingIndicatorPrimitive()},u.createUserIconPrimitives=function(d,h,g,x,b){return new u(d,h,g,x,b).createUserIconPrimitive()},u.createWarningIconPrimitives=function(d,h,g,x){return new u(d,h,g,void 0,x).createWarningIconPrimitive()},u.prototype.rotate=function(d,h,g,x){if(this.animationStarted){var b="rotate("+Math.round(x)%1080/3+" "+h+" "+g+")";d.setAttribute("transform",b),this.animationRequestId=requestAnimationFrame(function(y){this.rotate(d,h,g,y)}.bind(this))}},u.prototype.onApplyLoadingIndicatorElementProperties=function(d){var h=[p.UnitConverter.twipsToPixelsF(this.x+this.size/2),p.UnitConverter.twipsToPixelsF(this.y+this.size/2)],g=h[0],x=h[1];f.Browser.IE?(this.animationRequestId=requestAnimationFrame(function(b){this.rotate(d,g,x,b)}.bind(this)),this.animationStarted=!0):d.style.setProperty("transform-origin",g+"px "+x+"px")},u.prototype.center=function(){return[p.UnitConverter.twipsToPixelsF(this.x+this.size/2),p.UnitConverter.twipsToPixelsF(this.y+this.size/2)]},u.prototype.createLoadingIndicatorPrimitive=function(){var d=this.center(),h=d[0],g=d[1],x=p.UnitConverter.twipsToPixelsF(this.size/2-this.borderThickness/2);return new C.GroupPrimitive([new c.EllipsePrimitive(h+"",g+"",x+"",x+""),new I.PathPrimitive([new I.PathPrimitiveMoveToCommand(h+x+"",g+""),new I.PathPrimitiveArcToCommand(x+"",x+"",0,!1,!1,h+"",g-x+"")])],this.className,void 0,void 0,this.onApplyLoadingIndicatorElementProperties.bind(this),this.onBeforeDispose.bind(this))},u.prototype.createUserIconPrimitive=function(){var d=this.center(),h=d[0],g=d[1],x=p.UnitConverter.twipsToPixelsF(this.size/2-this.borderThickness/2),b=p.UnitConverter.twipsToPixelsF(this.size);return new C.GroupPrimitive([new c.EllipsePrimitive(h+"",g+"",x+"",x+"",void 0,"dxdi-background"),new c.EllipsePrimitive(h+"",g-b/8+"",b/8+"",b/8+""),new I.PathPrimitive([new I.PathPrimitiveMoveToCommand(h+"",g+b/16+""),new I.PathPrimitiveCubicCurveToCommand(h+.1375*b+"",g+b/16+"",h+b/4+"",g+.11875*b+"",h+b/4+"",g+.1875*b+""),new I.PathPrimitiveLineToCommand(h+b/4+"",g+b/4+""),new I.PathPrimitiveLineToCommand(h-b/4+"",g+b/4+""),new I.PathPrimitiveLineToCommand(h-b/4+"",g+.1875*b+""),new I.PathPrimitiveCubicCurveToCommand(h-b/4+"",g+.11875*b+"",h-.1375*b+"",g+b/16+"",h+"",g+b/16+""),new I.PathPrimitiveClosePathCommand])],this.className)},u.prototype.createWarningIconPrimitive=function(){var d=this.center(),h=d[0],g=d[1],x=p.UnitConverter.twipsToPixelsF(this.size/2)-1,b=p.UnitConverter.twipsToPixelsF(this.size/8);return new C.GroupPrimitive([new c.EllipsePrimitive(h+"",g+"",x+"",x+""),new a.RectanglePrimitive(h-b/2+.5+"",g+x-p.UnitConverter.twipsToPixelsF(this.size/4)+"",b+"",b+""),new a.RectanglePrimitive(h-b/2+.5+"",g-x+p.UnitConverter.twipsToPixelsF(this.size/4)-b+"",b+"",x+"")],this.className)},u.prototype.onBeforeDispose=function(){this.animationRequestId&&cancelAnimationFrame(this.animationRequestId),this.animationStarted=!1},u}();l.ShapeImageIndicator=s},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ImageLoader=void 0;var c=o(46),I=function(){function C(f){this.loadedCallback=f}return C.prototype.load=function(f){f.isLoaded?this.loadedCallback(f):f.isLoading||this.loadInner(f)},C.prototype.loadInner=function(f){var a=this;return f.imageUrl?this.loadPictureByUrl(f,function(){return a.finalizeLoading(f,f)}):f.base64&&this.loadPictureByBase64(f,function(){return a.finalizeLoading(f,f)}),f},C.prototype.finalizeLoading=function(f,a){a||(a=c.ImageCache.instance.getImageData(f.actualId)),a.isLoaded||c.ImageCache.instance.finalizeLoading(a,f),this.loadedCallback(a)},C.prototype.loadPictureByBase64=function(f,a){var p=new Image;p.onload=function(){a(f)},p.src=f.base64},C.prototype.loadPictureByUrl=function(f,a){var p=this,s=new XMLHttpRequest;try{s.onload=function(){var u=new FileReader;u.onloadend=function(){f.base64=u.result,p.loadPictureByBase64(f,function(d){return a(d)})},u.readAsDataURL(s.response)},s.onerror=function(){return a(f)},s.onloadend=function(){404===s.status&&a(f)},s.open("GET",f.imageUrl,!0),s.responseType="blob",f.startLoading(),s.send()}catch{}},C}();l.ImageLoader=I},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(E,S){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(E,S)},function(E,S){function O(){this.constructor=E}c(E,S),E.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)});Object.defineProperty(l,"__esModule",{value:!0}),l.ContainerDescription=l.CONTAINER_EXPAND_BUTTON_SIGN_RATIO=l.CONTAINER_EXPAND_BUTTON_RECT_RATIO=l.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO=l.CONTAINER_HEADER_SIZE=void 0;var C=o(7),f=o(2),a=o(1),p=o(21),s=o(5),u=o(17),d=o(11),h=o(39),g=o(45),x=o(9),b=o(36);l.CONTAINER_HEADER_SIZE=360,l.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO=.2,l.CONTAINER_EXPAND_BUTTON_RECT_RATIO=.5,l.CONTAINER_EXPAND_BUTTON_SIGN_RATIO=.3;var y=function(E){function S(O){return void 0===O&&(O=new f.Size(2*C.ShapeDefaultDimension,1.5*C.ShapeDefaultDimension)),E.call(this,O,!0)||this}return I(S,E),Object.defineProperty(S.prototype,"enableChildren",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),S.prototype.getDefaultText=function(){return b.DiagramLocalizationService.shapeTexts[a.ShapeTypes.Container]},S.prototype.createConnectionPoints=function(){return[new g.ConnectionPoint(.25,0,x.ConnectionPointSide.North),new g.ConnectionPoint(.5,0,x.ConnectionPointSide.North),new g.ConnectionPoint(.75,0,x.ConnectionPointSide.North),new g.ConnectionPoint(1,.25,x.ConnectionPointSide.East),new g.ConnectionPoint(1,.5,x.ConnectionPointSide.East),new g.ConnectionPoint(1,.75,x.ConnectionPointSide.East),new g.ConnectionPoint(.75,1,x.ConnectionPointSide.South),new g.ConnectionPoint(.5,1,x.ConnectionPointSide.South),new g.ConnectionPoint(.25,1,x.ConnectionPointSide.South),new g.ConnectionPoint(0,.75,x.ConnectionPointSide.West),new g.ConnectionPoint(0,.5,x.ConnectionPointSide.West),new g.ConnectionPoint(0,.25,x.ConnectionPointSide.West)]},S.prototype.getConnectionPointIndexForItem=function(O,w){return 4===(O&&O.getConnectionPoints()).length?3*w+1:w},S.prototype.getConnectionPointIndexForSide=function(O){return 3*O+1},S.prototype.createShapePrimitives=function(O,w){var T=O.rectangle,W=[];return O.expanded&&(W=W.concat([new p.RectanglePrimitive(T.x,T.y,T.width,T.height,O.style)])),W.concat(this.createHeaderPrimitives(O,w))},S.prototype.createExpandButtonPrimitives=function(O,w){var T=[new s.PathPrimitiveMoveToCommand(w.x+w.width*((1-l.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2),w.center.y),new s.PathPrimitiveLineToCommand(w.x+w.width*((1-l.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2+l.CONTAINER_EXPAND_BUTTON_SIGN_RATIO),w.center.y)];O.expanded||(T=T.concat([new s.PathPrimitiveMoveToCommand(w.center.x,w.y+w.height*((1-l.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2)),new s.PathPrimitiveLineToCommand(w.center.x,w.y+w.height*((1-l.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2+l.CONTAINER_EXPAND_BUTTON_SIGN_RATIO))]));var k=w.clone().inflate(-w.width*(1-l.CONTAINER_EXPAND_BUTTON_RECT_RATIO)/2,-w.height*(1-l.CONTAINER_EXPAND_BUTTON_RECT_RATIO)/2);return[new h.GroupPrimitive([new p.RectanglePrimitive(k.x,k.y,k.width,k.height,O.style),new s.PathPrimitive(T,O.style)],"shape-expand-btn",null,null,function(R){u.RenderUtils.setElementEventData(R,d.MouseEventElementType.ShapeExpandButton,O.key)})]},S}(C.ShapeDescription);l.ContainerDescription=y},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(S,O){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var k in T)T.hasOwnProperty(k)&&(w[k]=T[k])})(S,O)},function(S,O){function w(){this.constructor=S}c(S,O),S.prototype=null===O?Object.create(O):(w.prototype=O.prototype,new w)});Object.defineProperty(l,"__esModule",{value:!0}),l.CardBaseDescription=void 0;var C=o(7),f=o(13),a=o(2),p=o(128),s=o(235),u=o(5),d=o(39),h=o(129),g=o(1),x=o(36),b=o(12),y=o(0),E=function(S){function O(w){return void 0===w&&(w=new a.Size(C.ShapeDefaultDimension,26/46*C.ShapeDefaultDimension)),S.call(this,w,!0)||this}return I(O,S),Object.defineProperty(O.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),O.prototype.getDefaultText=function(){return x.DiagramLocalizationService.shapeTexts[g.ShapeTypes.Card]},O.prototype.createShapePrimitives=function(w,T){var k=w.rectangle;return[new s.RoundedRectanglePrimitive(k.x,k.y,k.width,k.height,T?30:60,T?30:60,w.style)]},O.prototype.createImagePlaceholder=function(w){return[new s.RoundedRectanglePrimitive(w.x,w.y,w.width,w.height,b.UnitConverter.pixelsToTwips(2),b.UnitConverter.pixelsToTwips(2),void 0,p.SHAPE_IMAGE_CLASSNAMES.IMAGE_PLACEHOLDER)]},O.prototype.createEmptyImagePrimitive=function(w){return h.ShapeImageIndicator.createUserIconPrimitives(w.x,w.y,this.defaultIconSize,b.UnitConverter.pixelsToTwips(1),p.SHAPE_IMAGE_CLASSNAMES.USER_PIC)},O.prototype.createWarningPrimitive=function(w){return h.ShapeImageIndicator.createWarningIconPrimitives(w.x+this.defaultIconSize/2,w.y+this.defaultIconSize/2,this.defaultIconSize/2,p.SHAPE_IMAGE_CLASSNAMES.WARNING_MARK)},O.prototype.getTextRectangle=function(w){var T=w.rectangle,k=T.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding),R=this.getImageSize(T.createSize(),!0);return this.isTextAfterImage&&k.moveRectangle(this.isHorizontal?R.width:0,this.isHorizontal?0:R.height),k.resize(this.isHorizontal?-R.width:0,this.isHorizontal?0:-R.height),k.nonNegativeSize()},O.prototype.getSizeByText=function(w,T){var k=w.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding),R=this.getImageSizeByTextBlockSize(k);return this.isHorizontal?k.width+=R.width:k.height+=R.height,k},O.prototype.createTextPrimitives=function(w,T){return T?this.createGraphicalTextRepresentation(w.rectangle):S.prototype.createTextPrimitives.call(this,w,T)},O.prototype.createGraphicalTextRepresentation=function(w){var T=new f.Rectangle(0,0,0,0),k=this.getImageSize(w.createSize(),!0,!0);if(this.isHorizontal){var R=this.isTextAfterImage?w.width/2-b.UnitConverter.pixelsToTwips(2):0;T.x=w.x+R+b.UnitConverter.pixelsToTwips(4),T.y=w.y+b.UnitConverter.pixelsToTwips(5),T.width=k.width-b.UnitConverter.pixelsToTwips(4),T.height=w.height-b.UnitConverter.pixelsToTwips(6)}else{var P=this.isTextAfterImage?w.height/2-b.UnitConverter.pixelsToTwips(2):0;T.x=w.x+w.width/4,T.y=w.y+P+b.UnitConverter.pixelsToTwips(4),T.width=w.width/2,T.height=k.height-b.UnitConverter.pixelsToTwips(2)}return this.createTextRepresentationPrimitives(T)},O.prototype.getImagePlacementRectangle=function(w,T){var k=this.getImageSize(w.createSize(),!1,T),R=f.Rectangle.fromGeometry(new y.Point(w.x,w.y),k),P=this.getImageSize(w.createSize(),!0,T);return this.isHorizontal&&this.isTextAfterImage?R.x+=this.getImageMargin(T):this.isHorizontal&&(R.x=w.right-P.width-this.getImageMargin(T)),this.isHorizontal||this.isTextAfterImage?R.y+=this.getImageMargin(T):R.y=w.bottom-P.height-this.getImageMargin(T),this.isHorizontal||(R.x+=(w.width-R.width)/2),R},O.prototype.createTextRepresentationPrimitives=function(w){var T=b.UnitConverter.pixelsToTwips(b.UnitConverter.twipsToPixels(w.height/3));return[new d.GroupPrimitive([new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(w.x,w.y),new u.PathPrimitiveLineToCommand(w.x+w.width,w.y)]),new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(w.x,w.y+T),new u.PathPrimitiveLineToCommand(w.x+w.width,w.y+T)]),new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(w.x,w.y+2*T),new u.PathPrimitiveLineToCommand(w.x+.66*w.width,w.y+2*T)])],"dxdi-shape-text")]},O}(p.ShapeWithImageDescription);l.CardBaseDescription=E},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ImporterBase=void 0;var c=o(62),I=o(14),C=function(){function f(a){this.shapeDescriptionManager=a}return f.prototype.import=function(){var a=new c.DiagramModel,p=this.getObject();this.importPageSettings(a,this.getPageObject(p));for(var s=this.importShapes(this.getShapeObjects(p)),u=0;u<s.length;u++){var d=s[u];if(a.findItem(d.key))throw Error("Item key is duplicated");a.pushItem(d)}var h=this.importConnectors(this.getConnectorObjects(p));for(u=0;u<h.length;u++){var g=h[u];if(g.endItem=a.findItem(g.endItemKey)||void 0,delete g.endItemKey,g.beginItem=a.findItem(g.beginItemKey)||void 0,delete g.beginItemKey,a.findItem(g.key))throw Error("Item key is duplicated");a.pushItem(g),this.updateConnections(g)}return this.updateChildren(a.items,function(x){return a.findItem(x)}),a},f.prototype.importItems=function(a){for(var p,s=[],u=this.getObject(),d={},h=this.importShapes(this.getShapeObjects(u)),g=0;g<h.length;g++){var x=h[g],b=x.key;p=a.getNextKey(),x.key=p,d[b]=x,void 0!==x.dataKey&&(x.dataKey=void 0),s.push(x)}var y=this.importConnectors(this.getConnectorObjects(u));for(g=0;g<y.length;g++){var E=y[g];b=E.key,p=a.getNextKey(),E.key=p,d[b]=E,void 0!==E.dataKey&&(E.dataKey=void 0),E.endItem=d[E.endItemKey],delete E.endItemKey,E.beginItem=d[E.beginItemKey],delete E.beginItemKey,s.push(E),this.updateConnections(E)}return this.updateChildren(s,function(w){return d[w]}),s},f.prototype.importItemsData=function(a){for(var p=this.getObject(),s=this.importShapes(this.getShapeObjects(p)),u={},d=0;d<s.length;d++){var h=s[d],g=void 0;void 0!==h.dataKey&&(g=a.findShapeByDataKey(h.dataKey)),g&&(g.dataKey=h.dataKey,u[h.key]=h.dataKey,g.locked=h.locked,g.position=h.position.clone(),g.expanded=h.expanded,h.expandedSize&&(g.expandedSize=h.expandedSize.clone()),g.size=h.size.clone(),g.parameters=h.parameters.clone(),g.style=h.style.clone(),g.styleText=h.styleText.clone(),g.zIndex=h.zIndex,g.text=h.text,g.description=h.description,g.image=h.image.clone())}var x=this.importConnectors(this.getConnectorObjects(p));for(d=0;d<x.length;d++){var b=x[d],y=void 0;void 0!==b.dataKey&&(y=a.findConnectorByDataKey(b.dataKey)),y||(y=a.findConnectorByBeginEndDataKeys(u[b.beginItemKey],u[b.endItemKey])),y&&(y.dataKey=b.dataKey,y.locked=b.locked,y.points=b.points.slice(),y.properties=b.properties.clone(),y.style=b.style.clone(),y.endConnectionPointIndex=b.endConnectionPointIndex,y.beginConnectionPointIndex=b.beginConnectionPointIndex,y.texts=b.texts.clone(),y.styleText=b.styleText.clone(),y.zIndex=b.zIndex)}},f.prototype.importShapes=function(a){var p=[];if(!a)return p;if(!Array.isArray(a))throw Error("Invalid Format");for(var s=0;s<a.length;s++){var u=a[s],d=this.importShape(u);p.push(d),p=p.concat(this.importShapeChildren(u,d))}return p},f.prototype.importConnectors=function(a){var p=[];if(!a)return p;if(!Array.isArray(a))throw Error("Invalid Format");for(var s=0;s<a.length;s++)p.push(this.importConnector(a[s]));return p},f.prototype.updateChildren=function(a,p){a.forEach(function(s){s instanceof I.Shape&&s.childKeys&&(s.childKeys.forEach(function(u){var d=p(u);d&&(-1===s.children.indexOf(d)&&s.children.push(d),d.container=s)}),delete s.childKeys)})},f.prototype.updateConnections=function(a){a.endItem&&(a.endItem instanceof I.Shape?(a.endItem.attachedConnectors.push(a),a.points[a.points.length-1]=a.endItem.getConnectionPointPosition(a.endConnectionPointIndex,a.points[a.points.length-2])):(a.endItem=void 0,a.endConnectionPointIndex=-1)),a.beginItem&&(a.beginItem instanceof I.Shape?(a.beginItem.attachedConnectors.push(a),a.points[0]=a.beginItem.getConnectionPointPosition(a.beginConnectionPointIndex,a.points[1])):(a.beginItem=void 0,a.beginConnectionPointIndex=-1))},f.prototype.assert=function(a,p){if(void 0===a||void 0!==p&&typeof a!==p)throw Error("Invalid Format")},f}();l.ImporterBase=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.StylePropertyCommandBase=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.lockInputPositionUpdating=function(){return!0},a}(o(10).SimpleCommandBase);l.StylePropertyCommandBase=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeStylePropertyCommandBase=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.executeCore=function(p,s){var u=this;this.control.history.beginTransaction();var d=this.control.selection.getSelectedItems();return s=this.processParameter(s),d.forEach(function(h){var g=u.getStyleProperty();u.control.history.addAndRedo(u.createHistoryItem(h,g,s))}),this.updateInputPosition(s),this.control.history.endTransaction(),!0},a.prototype.getDefaultValue=function(){return this.getDefaultStyleObj()[this.getStyleProperty()]},a.prototype.processParameter=function(p){return p},a}(o(134).StylePropertyCommandBase);l.ChangeStylePropertyCommandBase=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeConnectorPropertyCommand=void 0;var C=o(88),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentConnectorPropertyValue(this.getPropertyName())},p.prototype.getDefaultValue=function(){return this.getPropertyDefaultValue()},p.prototype.executeCore=function(s,u){var d=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedConnectors().forEach(function(h){var g=d.getPropertyName();d.control.history.addAndRedo(new C.ChangeConnectorPropertyHistoryItem(h.key,g,u))}),this.control.selection.inputPosition.setConnectorPropertyValue(this.getPropertyName(),u),this.control.history.endTransaction(),!0},p.prototype.lockInputPositionUpdating=function(){return!0},p.prototype.isEnabled=function(){var s=this.control.selection.getSelectedConnectors();return a.prototype.isEnabled.call(this)&&s.length>0},p}(o(10).SimpleCommandBase);l.ChangeConnectorPropertyCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.AutoLayoutTreeVerticalCommand=void 0;var C=o(76),f=o(97),a=o(20),p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.createLayoutSettings=function(){var h=new a.TreeLayoutSettings(this.control.settings.snapToGrid?this.control.settings.gridSize:void 0);return h.orientation=a.DataLayoutOrientation.Vertical,h},u.prototype.createLayout=function(d,h){return new f.TreeLayoutBuilder(d,h).build()},u}(C.AutoLayoutCommandBase);l.AutoLayoutTreeVerticalCommand=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GraphLayout=void 0;var c=o(3),I=o(71),C=function(){function f(){this.nodeKeys=[],this.nodeToLayout={},this.edgeToPosition={}}return f.prototype.forEachNode=function(a){var p=this;this.nodeKeys.forEach(function(s){return a(p.nodeToLayout[s],s)})},f.prototype.reduce=function(a,p){var s=this;return this.nodeKeys.reduce(function(u,d,h){return a(u,s.nodeToLayout[d],h)},p)},f.prototype.addNode=function(a){if(this.nodeToLayout[a.key])throw Error("Node layout is already registered");return this.nodeKeys.push(a.key),this.nodeToLayout[a.key]=a,a},f.prototype.hasNode=function(a){return!!this.nodeToLayout[a]},f.prototype.addEdge=function(a){if(this.edgeToPosition[a.key])throw Error("Edge layout is already registered");this.edgeToPosition[a.key]=a},f.prototype.getRectangle=function(a){var p=this;return c.GeometryUtils.getCommonRectangle(this.nodeKeys.map(function(s){return p.nodeToLayout[s].rectangle}))},f.prototype.offsetNodes=function(a,p){var s=this;void 0===a&&(a=0),void 0===p&&(p=0);var u=new f;return this.nodeKeys.forEach(function(d){var h=s.nodeToLayout[d];u.addNode(new I.NodeLayout(h.info,h.position.clone().offset(a,p)))}),u.copyEdges(this),u},f.prototype.extend=function(a){var p=this;a.forEachNode(function(s){return p.addNode(s)}),this.copyEdges(a)},f.prototype.copyEdges=function(a){var p=this;Object.keys(a.edgeToPosition).forEach(function(s){var u=a.edgeToPosition[s];p.addEdge(new I.EdgeLayout(u.key,u.beginIndex,u.endIndex))})},f}();l.GraphLayout=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.LayoutBuilder=void 0;var c=o(20),I=function(){function C(f,a){this.settings=f,this.graph=a}return C.prototype.getBreadthNodeSizeCore=function(f,a){var p=this.settings.orientation===c.DataLayoutOrientation.Vertical?f.size.width:f.size.height;return a||(p+=this.settings.orientation===c.DataLayoutOrientation.Vertical?f.margin.left+f.margin.right:f.margin.top+f.margin.bottom),p},C.prototype.getDepthNodeSizeCore=function(f){return this.settings.orientation===c.DataLayoutOrientation.Horizontal?f.size.width+f.margin.left+f.margin.right:f.size.height+f.margin.top+f.margin.bottom},C.prototype.chooseDirectionValue=function(f,a){return this.settings.direction===c.LogicalDirectionKind.Forward?f:a},C.prototype.getDirectionValue=function(f){return this.settings.direction===c.LogicalDirectionKind.Forward?f:-f},C.prototype.getComponentOffset=function(f){var a=f.getRectangle(!0);return(this.settings.orientation===c.DataLayoutOrientation.Vertical?a.width:a.height)+this.settings.componentSpacing},C.prototype.setComponentOffset=function(f,a){return this.settings.orientation===c.DataLayoutOrientation.Vertical?f.offsetNodes(a):f.offsetNodes(0,a)},C}();l.LayoutBuilder=I},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.CanvasManager=void 0;var C=o(99),f=function(a){function p(){var s=null!==a&&a.apply(this,arguments)||this;return s.pendingChanges={},s.pendingRemoveChanges={},s.updatesLock=0,s}return I(p,a),p.prototype.beginUpdate=function(){this.updatesLock++},p.prototype.endUpdate=function(){this.updatesLock--,0===this.updatesLock&&this.applyPendingChanges()},p.prototype.getPendingChanges=function(){var s=this;return Object.keys(this.pendingChanges).map(function(u){return s.pendingChanges[u]})},p.prototype.getPendingRemoveChanges=function(){var s=this;return Object.keys(this.pendingRemoveChanges).map(function(u){return s.pendingRemoveChanges[u]})},p.prototype.applyPendingChanges=function(){var s=this.getPendingRemoveChanges();s.length&&(this.applyChangesCore(s),this.pendingRemoveChanges={});var u=this.getPendingChanges();u.length&&(this.applyChangesCore(u),this.pendingChanges={})},p.prototype.applyChangesCore=function(s){var u=this,d=[];s.forEach(function(h){u.applyChange(h)||d.push(h)}),d.length&&d.length!==s.length&&this.applyChangesCore(d)},p.prototype.postponeChanges=function(s){var u=this;s.forEach(function(d){if(d.type===C.ItemChangeType.Remove)u.pendingRemoveChanges[d.key]=d,delete u.pendingChanges[d.key];else if(u.pendingChanges[d.key])d.type===C.ItemChangeType.Create?u.pendingChanges[d.key]=d:d.type===C.ItemChangeType.UpdateStructure?u.pendingChanges[d.key].type===C.ItemChangeType.UpdateProperties&&(u.pendingChanges[d.key]=d):d.type===C.ItemChangeType.UpdateProperties?u.pendingChanges[d.key].type===C.ItemChangeType.Update&&(u.pendingChanges[d.key]=d):d.type===C.ItemChangeType.UpdateClassName&&u.pendingChanges[d.key].type===C.ItemChangeType.UpdateClassName&&(u.pendingChanges[d.key]=d);else{if(u.pendingRemoveChanges[d.key]&&d.type!==C.ItemChangeType.Create)throw new Error("Incorrect model changes sequence.");u.pendingChanges[d.key]=d}})},p.prototype.applyOrPostponeChanges=function(s){0===this.updatesLock?this.applyChangesCore(s):this.postponeChanges(s)},p.prototype.notifyModelChanged=function(s){this.applyOrPostponeChanges(s)},p.prototype.notifyPageColorChanged=function(s){},p.prototype.notifyPageSizeChanged=function(s,u){},p}(o(42).CanvasManagerBase);l.CanvasManager=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(l,"__esModule",{value:!0}),l.PasteSelectionCommandBase=void 0;var C=o(101),f=o(119),a=o(14),p=o(266),s=o(6),u=o(267),d=o(4),h=o(68),g=o(0),x=o(12),b=function(y){function E(){return null!==y&&y.apply(this,arguments)||this}return I(E,y),E.prototype.isEnabled=function(){return y.prototype.isEnabled.call(this)&&(this.isPasteSupportedByBrowser()||void 0!==C.ClipboardCommand.clipboardData)},E.prototype.isVisible=function(){return this.isPasteSupportedByBrowser()||void 0!==C.ClipboardCommand.clipboardData},E.prototype.parseClipboardData=function(S){var O;O=new f.Importer(this.control.shapeDescriptionManager,S).importItems(this.control.model);var w=this.getEventPositionOffset(O,this.control.contextMenuPosition);w=this.getCorrectedOffsetByModel(O,w);for(var T=0;T<O.length;T++){var k=O[T];k instanceof a.Shape?k.position.offsetByPoint(w):k instanceof s.Connector&&k.points.forEach(function(R){return R.offsetByPoint(w)})}return O},E.prototype.getCorrectedOffsetByModel=function(S,O){var w=S.reduce(function(R,P){var B=P instanceof a.Shape?P.position.x:P instanceof s.Connector?P.getMinX():Number.MAX_VALUE,W=P instanceof a.Shape?P.position.y:P instanceof s.Connector?P.getMinY():Number.MAX_VALUE;return(W<R.y||W===R.y&&B<R.x)&&(R.topLeftItem=P,R.x=B,R.y=W),R},{topLeftItem:S[0],x:Number.MAX_VALUE,y:Number.MAX_VALUE}).topLeftItem;if(w instanceof a.Shape){var T=this.getShapeCorrectedPosition(this.control.model,w,O);return new g.Point(T.x-w.position.x,T.y-w.position.y)}if(w instanceof s.Connector){var k=this.getConnectorCorrectedPoints(this.control.model,w,O);return new g.Point(w.points[0].x-k[0].x,w.points[0].y-k[0].y)}},E.prototype.executeCore=function(S,O){var w=this,T=!0;return O?this.performPaste(O):this.getClipboardData(function(k){T=w.execute(k)}),T},E.prototype.addItemForSortingRecursive=function(S,O){if(S[O.key])return S[O.key];if(O instanceof s.Connector)return S[O.key]=O.endItem?this.addItemForSortingRecursive(S,O.endItem)-.5:O.beginItem?this.addItemForSortingRecursive(S,O.beginItem)+.5:-1,S[O.key];if(0===O.attachedConnectors.length)return S[O.key]=0;for(var w=0;w<O.attachedConnectors.length;w++){var T=O.attachedConnectors[w].beginItem;return S[O.key]=O.attachedConnectors[w].endItem===O&&T&&T!==O.attachedConnectors[w].endItem?this.addItemForSortingRecursive(S,T)+1:0}},E.prototype.getSortedPasteItems=function(S){for(var O=[],w=[],T={},k=0;k<S.length;k++){var R=S[k];R instanceof a.Shape?O.push(R):R instanceof s.Connector&&(w.push(R),this.addItemForSortingRecursive(T,R))}return w.sort(function(P,B){return T[B.key]-T[P.key]}),O.concat(w)},E.prototype.performPaste=function(S){this.control.beginUpdateCanvas(),this.control.history.beginTransaction();var O={},w=this.parseClipboardData(S);w=this.getSortedPasteItems(w);for(var T=0;T<w.length;T++){var k=w[T];k instanceof a.Shape?this.control.history.addAndRedo(new p.ImportShapeHistoryItem(k)):k instanceof s.Connector&&this.control.history.addAndRedo(new u.ImportConnectorHistoryItem(k));var R=k.container&&k.container.key;R&&void 0!==O[R]?R&&void 0!==O[R]&&(O[k.key]=!1):O[k.key]=!0}d.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.addAndRedo(new h.SetSelectionHistoryItem(this.control.selection,Object.keys(O).filter(function(P){return O[P]}))),this.control.history.endTransaction(),this.control.endUpdateCanvas(),this.control.barManager.updateItemsState()},E.prototype.getShapeCorrectedPosition=function(S,O,w){for(var T=O.position.clone().offsetByPoint(w);S.findShapeAtPosition(T);)T.offset(E.positionOffset,E.positionOffset);return T},E.prototype.getConnectorCorrectedPoints=function(S,O,w){for(var T=O.points.map(function(k){return k.clone().offsetByPoint(w)});S.findConnectorAtPoints(T);)T.forEach(function(k){k.x+=E.positionOffset,k.y+=E.positionOffset});return T},Object.defineProperty(E.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),E.positionOffset=x.UnitConverter.pixelsToTwips(10),E}(C.ClipboardCommand);l.PasteSelectionCommandBase=b},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.AutoLayoutLayeredHorizontalCommand=void 0;var C=o(76),f=o(80),a=o(20),p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.createLayoutSettings=function(){var d=new a.LayoutSettings;return d.orientation=a.DataLayoutOrientation.Horizontal,d},u.prototype.createLayout=function(d,h){return new f.SugiyamaLayoutBuilder(d,h).build()},u}(C.AutoLayoutCommandBase);l.AutoLayoutLayeredHorizontalCommand=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.AutoLayoutTreeHorizontalCommand=void 0;var C=o(76),f=o(97),a=o(20),p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.createLayoutSettings=function(){var h=new a.TreeLayoutSettings(this.control.settings.snapToGrid?this.control.settings.gridSize:void 0);return h.orientation=a.DataLayoutOrientation.Horizontal,h},u.prototype.createLayout=function(d,h){return new f.TreeLayoutBuilder(d,h).build()},u}(C.AutoLayoutCommandBase);l.AutoLayoutTreeHorizontalCommand=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.AutoLayoutLayeredVerticalCommand=void 0;var C=o(76),f=o(80),a=o(20),p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.createLayoutSettings=function(){var d=new a.LayoutSettings;return d.orientation=a.DataLayoutOrientation.Vertical,d},u.prototype.createLayout=function(d,h){return new f.SugiyamaLayoutBuilder(d,h).build()},u}(C.AutoLayoutCommandBase);l.AutoLayoutLayeredVerticalCommand=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeLockedCommand=void 0;var C=o(4),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabled=function(){var s=this,u=this.control.selection.getSelectedItems(!0),d=!1;return u.forEach(function(h){h.locked!==s.getLockState()&&(d=!0)}),a.prototype.isEnabled.call(this)&&d},p.prototype.executeCore=function(s,u){return C.ModelUtils.changeSelectionLocked(this.control.history,this.control.model,this.control.selection,this.getLockState()),!0},p}(o(10).SimpleCommandBase);l.ChangeLockedCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeShapeImageHistoryItem=void 0;var C=o(8),f=o(51),a=function(p){function s(u,d){var h=p.call(this)||this;return h.shapeKey=u.key,h.imageUrl=d,h}return I(s,p),s.prototype.redo=function(u){var d=u.model.findShape(this.shapeKey);this.oldImage=d.image,u.changeShapeImage(d,new f.ImageInfo(this.imageUrl))},s.prototype.undo=function(u){var d=u.model.findShape(this.shapeKey);u.changeShapeImage(d,this.oldImage)},s}(C.HistoryItem);l.ChangeShapeImageHistoryItem=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(O,w){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,k){T.__proto__=k}||function(T,k){for(var R in k)k.hasOwnProperty(R)&&(T[R]=k[R])})(O,w)},function(O,w){function T(){this.constructor=O}c(O,w),O.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerDefaultState=void 0;var C=o(11),f=o(305),a=o(306),p=o(307),s=o(308),u=o(309),d=o(310),h=o(311),g=o(312),x=o(149),b=o(319),y=o(6),E=o(320),S=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.finish=function(){this.visualizerManager.resetConnectionPoints(),O.prototype.finish.call(this)},w.prototype.onMouseDownCore=function(T){this.handler.canScrollPage(T)?this.startScrolling(T):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ConnectorText?(this.handler.changeSingleSelection(T.source.key),this.handler.switchState(new g.MouseHandlerMoveConnectorTextState(this.handler,this.history,this.model))):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ShapeResizeBox?this.handler.switchState(new a.MouseHandlerResizeShapeState(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.settings)):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ShapeParameterBox?this.handler.switchState(new s.MouseHandlerDragParameterPointState(this.handler,this.history,this.model)):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ConnectorPoint?this.handler.switchState(new f.MouseHandlerMoveConnectorPointState(this.handler,this.history,this.model,this.visualizerManager)):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ConnectorSide?this.handler.switchState(new p.MouseHandlerMoveConnectorSideState(this.handler,this.history,this.model)):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ConnectorOrthogonalSide?this.handler.switchState(new d.MouseHandlerMoveConnectorOrthogonalSideState(this.handler,this.history,this.model)):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ShapeConnectionPoint?this.handler.switchState(new u.MouseHandlerCreateConnectorState(this.handler,this.history,this.model,this.visualizerManager,this.shapeDescriptionManager,this.selection)):O.prototype.onMouseDownCore.call(this,T)},w.prototype.onDragDiagramItemOnMouseDown=function(T){this.handler.canAddDiagramItemToSelection(T)?T.source.type===C.MouseEventElementType.Shape?this.handler.switchState(new b.MouseHandlerMoveShapeState(this.handler,this.history,this.model,this.selection,this.visualizerManager)):T.source.type===C.MouseEventElementType.Connector&&this.handler.switchState(new E.MouseHandlerMoveConnectorState(this.handler,this.history,this.model,this.selection,this.visualizerManager)):O.prototype.onDragDiagramItemOnMouseDown.call(this,T)},w.prototype.onDragStart=function(T){this.handler.switchState(new h.MouseHandlerBeforeToolboxDraggingState(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.shapeDescriptionManager)),this.handler.state.onDragStart(T)},w.prototype.onMouseMoveCore=function(T){this.updateConnectionsOnMouseMove(T),O.prototype.onMouseMoveCore.call(this,T)},w.prototype.onMouseUp=function(T){this.handler.canRemoveDiagramItemToSelection(T)?this.handler.removeDiagramItemFromSelection(T.button,T.source.key):O.prototype.onMouseUp.call(this,T)},w.prototype.updateConnectionsOnMouseMove=function(T){var k=this.model.findItem(T.source.key);this.visualizerManager.updateConnections(k,T.source.type,T.source.value)},w.prototype.canDragObjectOnMouseDown=function(T){return!0},w.prototype.canExpandContainerOnMouseDown=function(T){return!0},w.prototype.canClearSelectionOnMouseDown=function(){return!1},w.prototype.canSelectOnMouseUp=function(T){return!1},w.prototype.canClearSelectionOnMouseUp=function(){return!0},w.prototype.onConnectionPointsShow=function(T,k){var R=this,P=this.model.findShape(T);P&&k.forEach(function(B,W){B.allowed=R.handler.canPerformChangeConnectionOnUpdateUI(void 0,{item:P,position:y.ConnectorPosition.Begin,connectionPointIndex:W})})},w}(x.MouseHandlerDefaultStateBase);l.MouseHandlerDefaultState=S},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerMoveConnectorPointStateBase=void 0;var C=o(6),f=o(11),a=o(34),p=o(67),s=o(48),u=o(4),d=function(h){function g(x,b,y,E){var S=h.call(this,x,b)||this;return S.model=y,S.visualizerManager=E,S}return I(g,h),g.prototype.finish=function(){this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),h.prototype.finish.call(this)},g.prototype.onMouseDown=function(x){h.prototype.onMouseDown.call(this,x),this.connector&&this.handler.addInteractingItem(this.connector)},g.prototype.onMouseMove=function(x){if(h.prototype.onMouseMove.call(this,x),this.allowAttachToObjects(x,!1,!1)){if(this.connector){var b=this.connector.getExtremeItem(this.pointPosition);this.visualizerManager.setConnectionTarget(b,x.source.type);var y=this.connector.getExtremeConnectionPointIndex(this.pointPosition);(b||-1===this.oppositeConnectionPointIndex)&&this.allowAttachToObjects(x,!0,!1)||(b=this.model.findItem(x.source.key)),this.visualizerManager.setConnectionPoints(b,x.source.type,y,!0)}}else this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints()},g.prototype.onApplyChanges=function(x){var b=this.getSnappedPoint(x,x.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(x.source.key);var y=this.allowAttachToObjects(x,!0,!0)?this.targetItem:void 0,E=-1;x.source.type===f.MouseEventElementType.ShapeConnectionPoint&&(E=parseInt(x.source.value)),!y||x.source.type!==f.MouseEventElementType.Shape&&x.source.type!==f.MouseEventElementType.ShapeConnectionPoint||this.connector.getExtremeItem(this.oppositePointPosition)===y&&(-1===E||-1===this.oppositeConnectionPointIndex||E===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)===y&&this.connector.getExtremeConnectionPointIndex(this.pointPosition)===E||(this.connector.getExtremeItem(this.pointPosition)&&this.history.addAndRedo(new p.DeleteConnectionHistoryItem(this.connector,this.pointPosition)),this.history.addAndRedo(new s.AddConnectionHistoryItem(this.connector,y,E,this.pointPosition)),this.oppositeItem&&this.updateOppositeItemConnectionPointIndex(E)),b=y.getConnectionPointPosition(E,this.connector.points[this.pointIndex+(this.pointPosition===C.ConnectorPosition.End?-1:1)]),this.visualizerManager.setConnectionPointIndex(E))}u.ModelUtils.moveConnectorPoint(this.history,this.connector,this.pointIndex,b),u.ModelUtils.updateConnectorAttachedPoints(this.history,this.model,this.connector),this.handler.tryUpdateModelSize()},g.prototype.updateOppositeItemConnectionPointIndex=function(x){var b=-1===x?-1:this.oppositeConnectionPointIndex;b!==this.connector.getExtremeConnectionPointIndex(this.oppositePointPosition)&&(this.history.addAndRedo(new p.DeleteConnectionHistoryItem(this.connector,this.oppositePointPosition)),this.history.addAndRedo(new s.AddConnectionHistoryItem(this.connector,this.oppositeItem,b,this.oppositePointPosition)))},g.prototype.onFinishWithChanges=function(){u.ModelUtils.updateConnectorContainer(this.history,this.model,this.connector),u.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,this.connector),this.handler.tryUpdateModelSize()},g.prototype.getDraggingElementKeys=function(){return this.connector?[this.connector.key]:[]},g.prototype.getOppositePointPosition=function(){return this.pointPosition===C.ConnectorPosition.Begin?C.ConnectorPosition.End:C.ConnectorPosition.Begin},g.prototype.allowAttachToObjects=function(x,b,y){if(this.handler.canMultipleSelection(x))return!1;var E=this.connector;if(E&&x.source.type===f.MouseEventElementType.Shape){var S=this.model.findItem(x.source.key);if(b&&this.model.findItemContainerCore(E,function(O){return O===S})||b&&this.oppositeItem&&this.model.findItemContainerCore(this.oppositeItem,function(O){return O===S})||y&&this.oppositeItem===S&&-1===this.oppositeConnectionPointIndex)return!1}return!0},g.prototype.onConnectionPointsShow=function(x,b){var y=this;if(this.connector&&void 0!==this.pointPosition&&(this.connector.endItem&&this.connector.endItem.key===x||this.connector.beginItem&&this.connector.beginItem.key===x)){var E=this.connector.beginItem&&this.connector.beginItem.key===x?C.ConnectorPosition.Begin:C.ConnectorPosition.End;b.forEach(function(S,O){S.allowed=y.handler.canPerformChangeConnectionOnUpdateUI(y.connector,{item:y.connector.getExtremeItem(E),position:E,connectionPointIndex:O})})}},g.prototype.onConnectionTargetShow=function(x,b){if(this.connector&&void 0!==this.pointPosition&&(this.connector.endItem&&this.connector.endItem.key===x||this.connector.beginItem&&this.connector.beginItem.key===x)){var y=this.connector.beginItem&&this.connector.beginItem.key===x?C.ConnectorPosition.Begin:C.ConnectorPosition.End;b.allowed=this.handler.canPerformChangeConnectionOnUpdateUI(this.connector,{item:this.connector.getExtremeItem(y),position:y,connectionPointIndex:-1})}},g}(a.MouseHandlerDraggingState);l.MouseHandlerMoveConnectorPointStateBase=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(x,b){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var S in E)E.hasOwnProperty(S)&&(y[S]=E[S])})(x,b)},function(x,b){function y(){this.constructor=x}c(x,b),x.prototype=null===b?Object.create(b):(y.prototype=b.prototype,new y)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerDefaultStateBase=void 0;var C=o(40),f=o(11),a=o(314),p=o(316),s=o(317),u=o(150),d=o(12),h=o(318),g=function(x){function b(y,E,S,O,w,T,k,R){var P=x.call(this,y)||this;return P.history=E,P.selection=S,P.model=O,P.view=w,P.visualizerManager=T,P.shapeDescriptionManager=k,P.settings=R,P}return I(b,x),b.prototype.onKeyDown=function(y){this.handler.onStartScrollPageByKeyboard(y)},b.prototype.onKeyUp=function(y){this.handler.onFinishScrollPageByKeyboard(y)},b.prototype.onMouseDown=function(y){this.handler.canFinishTextEditing()&&(this.onMouseDownCore(y),this.handler.state!==this&&this.handler.state.onMouseDown(y))},b.prototype.onMouseDownCore=function(y){this.handler.canScrollPage(y)?this.startScrolling(y):this.hasDiagramItem(y)&&this.canDragObjectOnMouseDown(y.source.key)?this.onDragDiagramItemOnMouseDown(y):y.button===f.MouseButton.Left&&y.source.type===f.MouseEventElementType.ShapeExpandButton&&this.canExpandContainerOnMouseDown(y.source.key)?this.onShapeExpandBtnMouseDown(y):(!this.hasDiagramItem(y)&&this.canClearSelectionOnMouseDown()&&this.clearSelection(),this.startPoint=y.modelPoint)},b.prototype.onDragDiagramItemOnMouseDown=function(y){this.replaceSelection(y)},b.prototype.onMouseMove=function(y){this.onMouseMoveCore(y),this.handler.state!==this&&(this.handler.state.onMouseDown(this.handler.mouseDownEvent),this.handler.state.onMouseMove(y))},b.prototype.onMouseMoveCore=function(y){this.startPoint&&(Math.abs(this.startPoint.x-y.modelPoint.x)>b.startLimit||Math.abs(this.startPoint.y-y.modelPoint.y)>b.startLimit)&&(this.processOnMouseMoveAfterLimit(y),this.startPoint=void 0)},b.prototype.processOnMouseMoveAfterLimit=function(y){y.isTouchMode?y.touches.length>1?this.startZooming(y):this.startScrolling(y):this.startSelection(y)},b.prototype.onMouseUp=function(y){this.onMouseUpCore(y),this.handler.state!==this&&this.handler.state.onMouseUp(y)},b.prototype.onMouseUpCore=function(y){y.source.type===f.MouseEventElementType.Shape&&this.canSelectOnMouseUp(y.source.key)||y.source.type===f.MouseEventElementType.Connector&&this.canSelectOnMouseUp(y.source.key)||y.source.type===f.MouseEventElementType.ShapeExpandButton&&this.canSelectOnMouseUp(y.source.key)?this.replaceSelection(y):this.startPoint&&this.canClearSelectionOnMouseUp()&&this.clearSelection(),this.startPoint=void 0},b.prototype.onMouseWheel=function(y){return!!this.handler.canStartZoomOnWheel(y)&&(this.handler.switchState(new s.MouseHandlerZoomOnWheelState(this.handler,this.settings,this.view)),this.handler.state.onMouseWheel(y),!0)},b.prototype.onLongTouch=function(y){this.replaceMultipleSelection(y.source.key)},b.prototype.finish=function(){this.startPoint=void 0},b.prototype.startSelection=function(y){y.button===f.MouseButton.Left&&this.handler.switchState(new p.MouseHandlerSelectionState(this.handler,this.selection,this.visualizerManager))},b.prototype.startScrolling=function(y){y.button===f.MouseButton.Left&&(this.handler.raiseDragScrollStart(),this.handler.switchState(new u.MouseHandlerScrollingState(this.handler,this.view,this.selection)))},b.prototype.startZooming=function(y){this.handler.switchState(new h.MouseHandlerZoomOnPinchState(this.handler,this.selection,this.settings,this.view))},b.prototype.inSelection=function(y){return this.selection.hasKey(y)},b.prototype.hasDiagramItem=function(y){return y.source.type===f.MouseEventElementType.Shape||y.source.type===f.MouseEventElementType.Connector},b.prototype.onShapeExpandBtnMouseDown=function(y){this.handler.addDiagramItemToSelection(y),this.handler.switchState(new a.MouseHandlerToggleShapeExpandedState(this.handler,this.history,this.model,this.selection))},b.prototype.replaceSelection=function(y){this.handler.canMultipleSelection(y)?this.replaceMultipleSelection(y.source.key):this.handler.changeSingleSelection(y.source.key)},b.prototype.replaceMultipleSelection=function(y){this.selection.hasKey(y)?this.selection.remove(y):this.selection.add(y)},b.prototype.clearSelection=function(){this.selection.set([])},b.startLimit=d.UnitConverter.pixelsToTwips(1),b}(C.MouseHandlerStateBase);l.MouseHandlerDefaultStateBase=g},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerScrollingState=void 0;var C=o(40),f=o(11),a=o(0),p=function(s){function u(d,h,g){var x=s.call(this,d)||this;return x.view=h,x.selection=g,x.lastOffset=new a.Point(0,0),x}return I(u,s),u.prototype.onKeyUp=function(d){this.handler.onFinishScrollPageByKeyboard(d)},u.prototype.onMouseDown=function(d){d.preventDefault=!0,this.startPoint=this.getPointByEvent(d)},u.prototype.onMouseMove=function(d){if(d.button===f.MouseButton.Left){var h=this.currentPoint||this.startPoint;d.preventDefault=!0;var g=this.getPointByEvent(d),x=this.view.scrollBy(new a.Point(g.x-h.x,g.y-h.y));this.lastOffset=this.lastOffset.clone().offset(x.x,x.y),this.currentPoint=g}else this.handler.onFinishScrollPageByMouse(d)},u.prototype.onMouseUp=function(d){d.button===f.MouseButton.Left&&this.handler.onFinishScrollPageByMouse(d),this.handler.switchToDefaultState()},u.prototype.cancelChanges=function(){this.currentPoint&&this.view.scrollBy(this.lastOffset.clone().multiply(-1,-1))},u.prototype.finish=function(){this.currentPoint&&this.startPoint&&!this.currentPoint.equals(this.startPoint)||this.selection.set([]),s.prototype.finish.call(this)},u.prototype.getPointByEvent=function(d){return d.offsetPoint},u}(C.MouseHandlerCancellableState);l.MouseHandlerScrollingState=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerDragDiagramItemStateBase=l.DraggingConnector=void 0;var C=o(60),f=o(86),a=o(29),p=o(85),s=o(4),u=o(16),d=o(11),h=o(34),g=function(y){this.connector=y,this.startPoints=y.points.map(function(E){return E.clone()}),this.startRenderContext=y.tryCreateRenderPointsContext()};l.DraggingConnector=g;var x=function(y){this.shape=y,this.startPosition=y.position.clone()},b=function(y){function E(S,O,w,T,k){var R=y.call(this,S,O)||this;return R.model=w,R.selection=T,R.visualizerManager=k,R.startScrollLeft=0,R.startScrollTop=0,R}return I(E,y),E.prototype.finish=function(){this.visualizerManager.resetExtensionLines(),this.visualizerManager.resetContainerTarget(),this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),y.prototype.finish.call(this)},E.prototype.onMouseDown=function(S){var O=this;this.handler.addDiagramItemToSelection(S),this.shouldClone=this.handler.canCopySelectedItems(S),this.startPoint=S.modelPoint,this.initDrag(),this.lockInitDrag=!1,this.shouldClone||this.draggingShapes.forEach(function(w){return O.handler.addInteractingItem(w.shape,u.DiagramModelOperation.MoveShape)}),y.prototype.onMouseDown.call(this,S)},E.prototype.onMouseMove=function(S){this.mouseMoveEvent=S,S.button!==d.MouseButton.Left&&(this.cancelChanges(),this.handler.switchToDefaultState()),this.canApplyChangesOnMouseMove(this.startPoint,S.modelPoint)&&(this.handler.canCopySelectedItems(S)&&(this.lockInitDrag||(this.cancelChanges(),this.shouldClone=!0,this.copySelection(),this.initDrag(),this.lockInitDrag=!0)),this.onApplyChanges(S),this.onAfterApplyChanges(),this.updateContainers(S))},E.prototype.updateContainers=function(S){this.visualizerManager.setExtensionLines(this.selection.getSelectedShapes(!1,!0));var O=s.ModelUtils.findContainerByEventKey(this.model,this.selection,S.source.key);O&&this.allowInsertToContainer(S,O)?this.visualizerManager.setContainerTarget(O,S.source.type):this.visualizerManager.resetContainerTarget()},E.prototype.onMouseUp=function(S){y.prototype.onMouseUp.call(this,S),this.handler.canRemoveDiagramItemToSelection(S)&&this.handler.canMultipleSelection(S)&&this.handler.removeDiagramItemFromSelection(S.button,S.source.key)},E.prototype.onApplyChanges=function(S){var O=this;if(this.calculateFixedPosition(S),this.draggingShapes.length){var w=this.draggingShapes.map(function(P){return P.shape});this.draggingShapes.forEach(function(P){for(var B=P.shape;B.container;){if(-1!==w.indexOf(B.container))return!1;B=B.container}O.moveShape(P,S)});var T=this.draggingShapes[0],k=C.Vector.fromPoints(T.startPosition.clone(),T.shape.position.clone());(k.x||k.y)&&this.draggingConnectors.forEach(function(P){return O.moveConnectorCore(P.connector,P.startPoints,P.startRenderContext,k)})}else this.draggingConnectors.forEach(function(P){return O.moveConnector(P,S)});var R=s.ModelUtils.findContainerByEventKey(this.model,this.selection,S.source.key);R&&this.allowInsertToContainer(S,R)?s.ModelUtils.insertSelectionToContainer(this.history,this.model,this.selection,R):s.ModelUtils.removeSelectionFromContainer(this.history,this.model,this.selection),this.handler.tryUpdateModelSize(function(P,B){O.modelConnectorsWithoutBeginItemInfo.forEach(function(W){W.point.x+=P,W.point.y+=B}),O.modelConnectorsWithoutEndItemInfo.forEach(function(W){W.point.x+=P,W.point.y+=B})})},E.prototype.getDraggingElementKeys=function(){return this.draggingShapes.map(function(S){return S.shape.key}).concat(this.draggingConnectors.map(function(S){return S.connector.key}))},E.prototype.getSnappedPoint=function(S,O){return this.handler.getSnappedPointOnDragDiagramItem(S,O,this.fixedX,this.fixedY,this.startPoint)},E.prototype.initDrag=function(){this.selectedItems=s.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()},E.prototype.initDraggingShapes=function(){this.draggingShapes=this.selection.getSelectedShapes(!1,!0).map(function(S){return new x(S)})},E.prototype.initDraggingConnectors=function(){var S=this;this.draggingConnectors=[],this.draggingConnectorsIndexByKey={},this.selection.getSelectedConnectors(!1,!0).forEach(function(O){return S.registerConnector(O)}),this.shouldClone||this.draggingShapes.forEach(function(O){var w=O.shape.attachedConnectors;w&&w.forEach(function(T){S.containsDraggingConnectorByKey(T.key)||S.registerConnector(T)})})},E.prototype.copySelection=function(){var S=this;s.ModelUtils.cloneSelectionToOffset(this.history,this.model,function(O){var w=S.model.findItem(O);w&&S.handler.addInteractingItem(w,u.DiagramModelOperation.AddShape)},this.selection,0,0)},E.prototype.calculateFixedPosition=function(S){this.fixedX=!1,this.fixedY=!1,this.handler.canCalculateFixedPosition(S)&&(Math.abs(this.startPoint.x-S.modelPoint.x)<Math.abs(this.startPoint.y-S.modelPoint.y)?this.fixedX=!0:this.fixedY=!0)},E.prototype.containsDraggingConnectorByKey=function(S){return void 0!==this.draggingConnectorsIndexByKey[S]},E.prototype.allowInsertToContainer=function(S,O){return!this.handler.canMultipleSelection(S)&&O&&O.expanded&&s.ModelUtils.canInsertSelectionToContainer(this.model,this.selection,O)},E.prototype.registerConnector=function(S){this.draggingConnectorsIndexByKey[S.key]=this.draggingConnectors.push(new g(S))-1},E.prototype.createModelConnectorsWithoutBeginItemInfo=function(){var S=this;return this.model.findConnectorsCore(function(O){return!O.beginItem&&!S.containsDraggingConnectorByKey(O.key)}).map(function(O){return{connector:O,point:O.points[0].clone()}})},E.prototype.createModelConnectorsWithoutEndItemInfo=function(){var S=this;return this.model.findConnectorsCore(function(O){return!O.endItem&&!S.containsDraggingConnectorByKey(O.key)}).map(function(O){return{connector:O,point:O.points[O.points.length-1].clone()}})},E.prototype.moveConnector=function(S,O){var w=S.startPoints,T=C.Vector.fromPoints(w[0].clone(),this.getSnappedPoint(O,w[0]).clone());(T.x||T.y)&&this.moveConnectorCore(S.connector,w,S.startRenderContext,T)},E.prototype.moveConnectorCore=function(S,O,w,T){this.shouldClone||s.ModelUtils.canMoveConnector(this.selectedItems,S)?this.offsetConnector(S,O,w,T):this.changeConnector(S)},E.prototype.moveShape=function(S,O){var w=this,T=S.shape,k=this.getSnappedPoint(O,S.startPosition);s.ModelUtils.setShapePosition(this.history,this.model,T,k),s.ModelUtils.updateMovingShapeConnections(this.history,T,this.modelConnectorsWithoutBeginItemInfo,this.modelConnectorsWithoutEndItemInfo,function(){w.visualizerManager.resetConnectionTarget(),w.visualizerManager.resetConnectionPoints()},function(R,P){w.visualizerManager.setConnectionTarget(R,d.MouseEventElementType.Shape),w.visualizerManager.setConnectionPoints(R,d.MouseEventElementType.Shape,P,!0)},function(R){return w.handler.addInteractingItem(R)}),this.draggingConnectors.filter(function(R){return!!w.selectedItems[R.connector.key]}).length||s.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,T)},E.prototype.offsetConnector=function(S,O,w,T){var k=this,R=O.map(function(P){return k.offsetPoint(P,T)});R[0].equals(S.points[0])||this.history.addAndRedo(new f.ChangeConnectorPointsHistoryItem(S.key,R,this.offsetRenderContext(w,T)))},E.prototype.offsetRenderContext=function(S,O){var w=this;if(void 0!==S)return new p.ConnectorRenderPointsContext(S.renderPoints.map(function(T){var k=w.offsetPoint(T,O);return new a.ConnectorRenderPoint(k.x,k.y,T.pointIndex,T.skipped)}),!0,S.actualRoutingMode)},E.prototype.offsetPoint=function(S,O){var w=C.Vector.fromPoints(S,this.startPoint);return this.startPoint.clone().offset(O.x-w.x,O.y-w.y)},E.prototype.changeConnector=function(S){s.ModelUtils.tryRemoveConnectorIntermediatePoints(this.history,S),s.ModelUtils.updateConnectorAttachedPoints(this.history,this.model,S)},E}(h.MouseHandlerDraggingState);l.MouseHandlerDragDiagramItemStateBase=b},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerDefaultReadOnlyState=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.canDragObjectOnMouseDown=function(p){return!1},a.prototype.canExpandContainerOnMouseDown=function(p){return!1},a.prototype.canClearSelectionOnMouseDown=function(){return!1},a.prototype.canSelectOnMouseUp=function(p){return!0},a.prototype.canClearSelectionOnMouseUp=function(){return!0},a.prototype.updateConnectionsOnMouseMove=function(p){},a}(o(149).MouseHandlerDefaultStateBase);l.MouseHandlerDefaultReadOnlyState=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeShapeTextHistoryItem=void 0;var C=function(f){function a(p,s){var u=f.call(this)||this;return u.shapeKey=p.key,u.text=s,u}return I(a,f),a.prototype.redo=function(p){var s=p.model.findShape(this.shapeKey);this.oldText=s.text,p.changeShapeText(s,this.text)},a.prototype.undo=function(p){var s=p.model.findShape(this.shapeKey);p.changeShapeText(s,this.oldText)},a}(o(8).HistoryItem);l.ChangeShapeTextHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.ContextMenuHandler=void 0;var C=o(3),f=o(11),a=o(25),p=o(81),s=o(18),u=function(d){function h(){var g=null!==d&&d.apply(this,arguments)||this;return g.contextMenuVisible=!1,g.textInputStarted=!1,g.canHideContextMenu=!0,g.onVisibilityChanged=new C.EventDispatcher,g}return I(h,d),h.prototype.onMouseDown=function(g){g.button===f.MouseButton.Left&&g.source.type!==f.MouseEventElementType.Undefined&&this.hideContextMenu()},h.prototype.onMouseUp=function(g){(!s.Browser.MacOSPlatform||s.Browser.MacOSPlatform&&this.canHideContextMenu)&&this.hideContextMenu(),this.canHideContextMenu=!0},h.prototype.onContextMenu=function(g){s.Browser.MacOSPlatform&&(this.canHideContextMenu=!1),this.showContextMenu(g.eventPoint,g.modelPoint)},h.prototype.onFocus=function(g){},h.prototype.onBlur=function(g){},h.prototype.onTextInputFocus=function(g){},h.prototype.onTextInputBlur=function(g){},h.prototype.onLongTouch=function(g){},h.prototype.onKeyDown=function(g){g.keyCode===a.KeyCode.Esc&&this.hideContextMenu()},h.prototype.onShortcut=function(g){this.hideContextMenu()},h.prototype.showContextMenu=function(g,x){var b=this;this.textInputStarted||window.setTimeout(function(){b.onVisibilityChanged.raise1(function(y){return y.notifyShowContextMenu(g,x)}),b.contextMenuVisible=!0},0)},h.prototype.hideContextMenu=function(){var g=this;this.contextMenuVisible&&window.setTimeout(function(){g.onVisibilityChanged.raise1(function(x){return x.notifyHideContextMenu()}),g.contextMenuVisible=!1},0)},h.prototype.notifyDragStart=function(g){},h.prototype.notifyDragEnd=function(g){},h.prototype.notifyDragScrollStart=function(){},h.prototype.notifyDragScrollEnd=function(){},h.prototype.notifyShowContextToolbox=function(g,x,b,y,E){},h.prototype.notifyHideContextToolbox=function(){},h.prototype.notifyTextInputStart=function(g,x,b,y){this.textInputStarted=!0},h.prototype.notifyTextInputEnd=function(g,x){this.textInputStarted=!1},h.prototype.notifyTextInputPermissionsCheck=function(g,x){},h.prototype.onUpdateUnlocked=function(g){},h}(p.BatchUpdatableObject);l.ContextMenuHandler=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(T,k){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,P){R.__proto__=P}||function(R,P){for(var B in P)P.hasOwnProperty(B)&&(R[B]=P[B])})(T,k)},function(T,k){function R(){this.constructor=T}c(T,k),T.prototype=null===k?Object.create(k):(R.prototype=k.prototype,new R)});Object.defineProperty(l,"__esModule",{value:!0}),l.VisualizerManager=void 0;var C=o(325),f=o(326),a=o(157),p=o(11),s=o(327),u=o(14),d=o(3),h=o(33),g=o(0),x=o(158),b=o(4),y=o(328),E=o(329),S=o(81),O=o(36),w=function(T){function k(R,P,B,W,N){void 0===N&&(N=W.readOnly);var V=T.call(this)||this;return V.selection=R,V.model=P,V.eventManager=B,V.settings=W,V.readOnly=N,V.onVisualizersUpdate=new d.EventDispatcher,V.connectionPointsVisualizer=new s.ConnectionPointsVisualizer(V.onVisualizersUpdate),V.connectionPointsVisualizer=new s.ConnectionPointsVisualizer(V.onVisualizersUpdate),V.connectionTargetVisualizer=new C.ConnectionTargetVisualizer(V.onVisualizersUpdate),V.containerTargetVisualizer=new f.ContainerTargetVisualizer(V.onVisualizersUpdate),V.extensionLinesVisualizer=new a.ExtensionLinesVisualizer(V.onVisualizersUpdate),V.resizeInfoVisualizer=new y.ResizeInfoVisualizer(V.onVisualizersUpdate),V.selectionRectangleVisualizer=new E.SelectionRectVisualizer(V.onVisualizersUpdate),V}return I(k,T),k.prototype.initialize=function(R){this.model=R},k.prototype.onMouseDown=function(R){},k.prototype.onMouseUp=function(R){},k.prototype.onMouseEnter=function(R){},k.prototype.onMouseLeave=function(R){this.resetConnectionPoints(),this.resetConnectionTarget(),this.resetExtensionLines(),this.resetContainerTarget(),this.resetResizeInfo(),this.resetSelectionRectangle()},k.prototype.onBlur=function(R){},k.prototype.onFocus=function(R){},k.prototype.updateConnections=function(R,P,B){var W=-1;B&&P===p.MouseEventElementType.ShapeConnectionPoint&&(W=parseInt(B)),this.setConnectionPoints(R,P,W,R&&(!R.allowResizeHorizontally&&!R.allowResizeVertically||R.isLocked))},k.prototype.setConnectionPoints=function(R,P,B,W){if(this.eventManager.isFocused())if(!R||P!==p.MouseEventElementType.Shape&&P!==p.MouseEventElementType.ShapeResizeBox&&P!==p.MouseEventElementType.ShapeConnectionPoint||void 0===R)this.connectionPointsVisualizer.reset();else{var N=R.key,V=this.selection.hasKey(N),U=R.getConnectionPoints();this.connectionPointsVisualizer.setPoints(N,U.map(function(K){return new s.ConnectionPointInfo(K,R.getConnectionPointSide(K))}),B,V&&!W&&R.rectangle)}},k.prototype.setConnectionPointIndex=function(R){this.connectionPointsVisualizer.setPointIndex(R)},k.prototype.updateConnectionPoints=function(){void 0!==this.model.findItem(this.connectionPointsVisualizer.getKey())?this.connectionPointsVisualizer.update():this.connectionPointsVisualizer.reset()},k.prototype.resetConnectionPoints=function(){this.connectionPointsVisualizer.reset()},k.prototype.setConnectionTarget=function(R,P){!R||P!==p.MouseEventElementType.Shape&&P!==p.MouseEventElementType.ShapeConnectionPoint?this.connectionTargetVisualizer.reset():this.connectionTargetVisualizer.setTargetRect(R.key,R.rectangle,R.strokeWidth)},k.prototype.resetConnectionTarget=function(){this.connectionTargetVisualizer.reset()},k.prototype.setContainerTarget=function(R,P){R&&!R.isLocked&&P===p.MouseEventElementType.Shape&&R.enableChildren?this.containerTargetVisualizer.setTargetRect(R.key,R.rectangle,R.strokeWidth):this.containerTargetVisualizer.reset()},k.prototype.resetContainerTarget=function(){this.containerTargetVisualizer.reset()},k.prototype.setExtensionLines=function(R){var P=this;if(this.eventManager.isFocused()){this.extensionLinesVisualizer.reset();var B=b.ModelUtils.createRectangle(R.filter(function(W){return W}));this.addPageExtensionLines(B),this.model.items.forEach(function(W){R.indexOf(W)>-1||W instanceof u.Shape&&P.addShapeExtensionLines(W,B)})}},k.prototype.addPageExtensionLines=function(R){for(var P=Math.round(this.model.size.width/this.model.pageWidth),B=Math.round(this.model.size.height/this.model.pageHeight),W=0;W<P;W++)for(var N=0;N<B;N++){var V=new g.Point(W*this.model.pageWidth+this.model.pageWidth/2,N*this.model.pageHeight+this.model.pageHeight/2);if(Math.abs(R.center.x-V.x)<this.settings.gridSize/2){var U=new h.Segment(new g.Point(R.center.x,0),new g.Point(R.center.x,this.model.size.height));this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.HorizontalCenterToPageCenter,U,"")}Math.abs(R.center.y-V.y)<this.settings.gridSize/2&&(U=new h.Segment(new g.Point(0,R.center.y),new g.Point(this.model.size.width,R.center.y)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.VerticalCenterToPageCenter,U,"")),Math.abs(R.x-V.x)<this.settings.gridSize/2&&(U=new h.Segment(new g.Point(R.x,0),new g.Point(R.x,this.model.size.height)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.LeftToPageCenter,U,"")),Math.abs(R.y-V.y)<this.settings.gridSize/2&&(U=new h.Segment(new g.Point(0,R.y),new g.Point(this.model.size.width,R.y)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.TopToPageCenter,U,"")),Math.abs(R.right-V.x)<this.settings.gridSize/2&&(U=new h.Segment(new g.Point(R.right,0),new g.Point(R.right,this.model.size.height)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.RightToPageCenter,U,"")),Math.abs(R.bottom-V.y)<this.settings.gridSize/2&&(U=new h.Segment(new g.Point(0,R.bottom),new g.Point(this.model.size.width,R.bottom)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.BottomToPageCenter,U,""))}},k.prototype.addShapeExtensionLines=function(R,P){var B,W,N,V,U,K,Y,J,j=R.rectangle,ee=R.strokeWidth-x.CanvasSelectionManager.extensionLineWidth,G=!0;if(P.right<j.x?(U=(B=P.right)+ee+x.CanvasSelectionManager.extensionLineOffset,Y=(N=j.x)-x.CanvasSelectionManager.extensionLineOffset):P.x>j.right&&(U=(B=P.x)-x.CanvasSelectionManager.extensionLineOffset,Y=(N=j.right)+ee+x.CanvasSelectionManager.extensionLineOffset),P.bottom<j.y?(K=(W=P.bottom)+ee+x.CanvasSelectionManager.extensionLineOffset,J=(V=j.y)-x.CanvasSelectionManager.extensionLineOffset):P.y>j.bottom&&(K=(W=P.y)-x.CanvasSelectionManager.extensionLineOffset,J=(V=j.bottom)+ee+x.CanvasSelectionManager.extensionLineOffset),void 0!==U&&void 0!==Y){var q=this.getViewUnitText(Math.abs(B-N));if(P.center.y===j.center.y){var Z=new h.Segment(new g.Point(U,P.center.y),new g.Point(Y,j.center.y));this.extensionLinesVisualizer.addSegment(U>Y?a.ExtensionLineType.VerticalCenterAfter:a.ExtensionLineType.VerticalCenterBefore,Z,G?q:""),G=!1}P.y===j.y&&(Z=new h.Segment(new g.Point(U,P.y),new g.Point(Y,j.y)),this.extensionLinesVisualizer.addSegment(U>Y?a.ExtensionLineType.TopToTopAfter:a.ExtensionLineType.TopToTopBefore,Z,G?q:"")),P.bottom===j.bottom&&(Z=new h.Segment(new g.Point(U,P.bottom+ee),new g.Point(Y,j.bottom+ee)),this.extensionLinesVisualizer.addSegment(U>Y?a.ExtensionLineType.BottomToBottomAfter:a.ExtensionLineType.BottomToBottomBefore,Z,G?q:"")),P.y===j.bottom&&(Z=new h.Segment(new g.Point(U,P.y),new g.Point(Y,j.bottom+ee)),this.extensionLinesVisualizer.addSegment(U>Y?a.ExtensionLineType.TopToBottomAfter:a.ExtensionLineType.TopToBottomBefore,Z,G?q:"")),P.bottom===j.y&&(Z=new h.Segment(new g.Point(U,P.bottom+ee),new g.Point(Y,j.y)),this.extensionLinesVisualizer.addSegment(U>Y?a.ExtensionLineType.BottomToTopAfter:a.ExtensionLineType.BottomToTopBefore,Z,G?q:""))}void 0!==K&&void 0!==J&&(q=this.getViewUnitText(Math.abs(W-V)),P.center.x===j.center.x&&(Z=new h.Segment(new g.Point(P.center.x,K),new g.Point(j.center.x,J)),this.extensionLinesVisualizer.addSegment(K>J?a.ExtensionLineType.HorizontalCenterBelow:a.ExtensionLineType.HorizontalCenterAbove,Z,G?q:""),G=!1),P.x===j.x&&(Z=new h.Segment(new g.Point(P.x,K),new g.Point(j.x,J)),this.extensionLinesVisualizer.addSegment(K>J?a.ExtensionLineType.LeftToLeftBelow:a.ExtensionLineType.LeftToLeftAbove,Z,G?q:"")),P.right===j.right&&(Z=new h.Segment(new g.Point(P.right+ee,K),new g.Point(j.right+ee,J)),this.extensionLinesVisualizer.addSegment(K>J?a.ExtensionLineType.RightToRightBelow:a.ExtensionLineType.RightToRightAbove,Z,G?q:"")),P.x===j.right&&(Z=new h.Segment(new g.Point(P.x,K),new g.Point(j.right+ee,J)),this.extensionLinesVisualizer.addSegment(K>J?a.ExtensionLineType.LeftToRightBelow:a.ExtensionLineType.LeftToRightAbove,Z,G?q:"")),P.right===j.x&&(Z=new h.Segment(new g.Point(P.right+ee,K),new g.Point(j.x,J)),this.extensionLinesVisualizer.addSegment(K>J?a.ExtensionLineType.RightToLeftBelow:a.ExtensionLineType.RightToLeftAbove,Z,G?q:"")))},k.prototype.resetExtensionLines=function(){this.extensionLinesVisualizer.reset()},k.prototype.setResizeInfo=function(R){var P=b.ModelUtils.createRectangle(R),B=new g.Point(P.center.x,P.bottom+x.CanvasSelectionManager.resizeInfoOffset),W=this.getViewUnitText(P.width)+" x "+this.getViewUnitText(P.height);this.resizeInfoVisualizer.set(B,W)},k.prototype.resetResizeInfo=function(){this.resizeInfoVisualizer.reset()},k.prototype.setSelectionRectangle=function(R){this.selectionRectangleVisualizer.setRectangle(R)},k.prototype.resetSelectionRectangle=function(){this.selectionRectangleVisualizer.reset()},k.prototype.getViewUnitText=function(R){return b.ModelUtils.getUnitText(this.settings.viewUnits,O.DiagramLocalizationService.unitItems,O.DiagramLocalizationService.formatUnit,R)},k.prototype.notifyReadOnlyChanged=function(R){this.readOnly=R,this.readOnly&&(this.resetConnectionPoints(),this.resetConnectionTarget(),this.resetExtensionLines(),this.resetContainerTarget(),this.resetResizeInfo(),this.resetSelectionRectangle())},k.prototype.notifyDragStart=function(R){},k.prototype.notifyDragEnd=function(R){},k.prototype.notifyDragScrollStart=function(){},k.prototype.notifyDragScrollEnd=function(){},k.prototype.onUpdateUnlocked=function(R){},k}(S.BatchUpdatableObject);l.VisualizerManager=w},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TargetVisualizerBase=void 0;var c=function(){function I(C){this.dispatcher=C}return I.prototype.getKey=function(){return this.key},I.prototype.setTargetRect=function(C,f,a){this.key!==C&&(this.key=C,this.targetRect=f,this.targetStrokeWidth=a,this.raiseShow())},I.prototype.reset=function(){"-1"!==this.key&&(this.key="-1",this.targetRect=void 0,this.targetStrokeWidth=0,this.raiseHide())},I}();l.TargetVisualizerBase=c},function(he,l,o){"use strict";var C;Object.defineProperty(l,"__esModule",{value:!0}),l.ExtensionLinesVisualizer=l.ExtensionLine=l.ExtensionLineType=void 0,(C=l.ExtensionLineType||(l.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 c=function(C,f,a){this.type=C,this.segment=f,this.text=a};l.ExtensionLine=c;var I=function(){function C(f){this.dispatcher=f,this.lines=[],this.lineIndexByType={}}return C.prototype.addSegment=function(f,a,p){var s=this.lineIndexByType[f];if(void 0===s){var u=new c(f,a,p),d=this.lines.push(u);this.lineIndexByType[u.type]=d-1,this.raiseShow()}else a.length<this.lines[s].segment.length&&(u=new c(f,a,p),this.lines.splice(s,1,u),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 f=this;this.dispatcher.raise1(function(a){return a.notifyExtensionLinesShow(f.lines)})},C.prototype.raiseHide=function(){this.dispatcher.raise1(function(f){return f.notifyExtensionLinesHide()})},C}();l.ExtensionLinesVisualizer=I},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(q,Z){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,M){X.__proto__=M}||function(X,M){for(var se in M)M.hasOwnProperty(se)&&(X[se]=M[se])})(q,Z)},function(q,Z){function X(){this.constructor=q}c(q,Z),q.prototype=null===Z?Object.create(Z):(X.prototype=Z.prototype,new X)});Object.defineProperty(l,"__esModule",{value:!0}),l.CanvasSelectionManager=l.ACTIVE_SELECTION_CSSCLASS=l.SELECTION_ELEMENT_CLASSNAMES=void 0;var C=o(42),f=o(39),a=o(17),p=o(11),s=o(9),u=o(3),d=o(0),h=o(157),g=o(14),x=o(6),b=o(32),y=o(21),E=o(5),S=o(63),O=o(55),w=o(26),T=o(12),k=o(43),R=o(18),P=o(27),B=o(78),W=o(140),N=o(35),V=o(31),U=o(4);l.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"},l.ACTIVE_SELECTION_CSSCLASS="dxdi-active-selection";var K=function(q){function Z(X,M,se,ge){var De=q.call(this,M,ge)||this;return De.readOnly=se,De.connectionPointElements=[],De.extensionLineElements=[],De.selectionMap={},De.parentContainer=X,De.initializeContainerElements(X),De}return I(Z,q),Z.prototype.initializeContainerElements=function(X){this.itemSelectionContainer=this.createAndChangePrimitiveElement(new f.GroupPrimitive([],null),X),this.visualizersContainer=this.createAndChangePrimitiveElement(new f.GroupPrimitive([],null),X),this.selectionMarksContainer=this.createAndChangePrimitiveElement(new f.GroupPrimitive([],null),X)},Z.prototype.clear=function(){a.RenderUtils.removeContent(this.itemSelectionContainer),a.RenderUtils.removeContent(this.selectionMarksContainer),a.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={}},Z.prototype.showSelectionRect=function(X){P.DomUtils.addClassName(this.parentContainer,l.ACTIVE_SELECTION_CSSCLASS);var M=new y.RectanglePrimitive(X.x,X.y,X.width,X.height,w.StrokeStyle.default1pxInstance,l.SELECTION_ELEMENT_CLASSNAMES.SELECTION_RECTANGLE),se=this.getSelectionRectElement(M);this.changePrimitiveElement(M,se)},Z.prototype.hideSelectionRect=function(){P.DomUtils.removeClassName(this.parentContainer,l.ACTIVE_SELECTION_CSSCLASS),void 0!==this.selectionRectElement&&this.dom.changeByFunc(this.selectionRectElement,function(X){return X.style.display="none"})},Z.prototype.getSelectionRectElement=function(X){return void 0!==this.selectionRectElement?this.dom.changeByFunc(this.selectionRectElement,function(M){return M.style.display=""}):this.selectionRectElement=this.createPrimitiveElement(X,this.visualizersContainer),this.selectionRectElement},Z.prototype.showResizeInfo=function(X,M){var se=new y.RectanglePrimitive(X.x,X.y,0,0,w.StrokeStyle.default1pxInstance),ge=new f.GroupPrimitive([se,new S.TextPrimitive(X.x,X.y,M,k.TextOwner.Resize)],"resize-info"),De=this.getResizeInfoElement(ge);this.changePrimitiveElement(ge,De);var Fe=this.dom.measurer.measureTextLine(M,null,k.TextOwner.Resize).applyConverter(T.UnitConverter.pixelsToTwips);se.width=Fe.width+2*Z.resizeInfoTextOffset,se.height=Fe.height+2*Z.resizeInfoTextOffset,se.x=X.x-Fe.width/2-Z.resizeInfoTextOffset,se.y=X.y-Fe.height/2-Z.resizeInfoTextOffset,this.changePrimitiveElement(ge,De)},Z.prototype.hideResizeInfo=function(){void 0!==this.resizeInfoElement&&this.dom.changeByFunc(this.resizeInfoElement,function(X){return X.style.display="none"})},Z.prototype.getResizeInfoElement=function(X){return void 0!==this.resizeInfoElement?this.dom.changeByFunc(this.resizeInfoElement,function(M){return M.style.display=""}):this.resizeInfoElement=this.createPrimitiveElement(X,this.visualizersContainer),this.resizeInfoElement},Z.prototype.getConnectionPointClassName=function(X,M){var se=l.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_POINT;return X&&(se+=" "+l.SELECTION_ELEMENT_CLASSNAMES.ACTIVE),M||(se+=" "+B.NOT_VALID_CSSCLASS),se},Z.prototype.showConnectionPoint=function(X,M,se,ge,De,Fe){this.showConnectionPointCore(2*X,M.x,M.y,Z.connectionPointLargeSize,Z.connectionPointLargeSize,p.MouseEventElementType.ShapeConnectionPoint,se,ge,l.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_POINT+" selector"+(Fe?"":" "+B.NOT_VALID_CSSCLASS)),this.showConnectionPointCore(2*X+1,M.x,M.y,Z.connectionPointSmallSize,Z.connectionPointSmallSize,p.MouseEventElementType.ShapeConnectionPoint,se,ge,this.getConnectionPointClassName(De,Fe))},Z.prototype.showConnectionPointCore=function(X,M,se,ge,De,Fe,Ae,ne,fe){var _e=new O.EllipsePrimitive(M,se,ge,De,null,fe,function(de){return a.RenderUtils.setElementEventData(de,Fe,Ae,ne)}),ie=this.getConnectionPointElement(_e,X);this.changePrimitiveElement(_e,ie)},Z.prototype.hideConnectionPoints=function(){for(var X=0;X<this.connectionPointElements.length;X++)this.dom.changeByFunc(this.connectionPointElements[X],function(M){return M.style.display="none"})},Z.prototype.getConnectionPointElement=function(X,M){var se=this.connectionPointElements[M];return void 0!==se?this.dom.changeByFunc(se,function(ge){return ge.style.display=""}):(se=this.createPrimitiveElement(X,this.visualizersContainer),this.connectionPointElements[M]=se),se},Z.prototype.showContainerTarget=function(X,M){var se=new y.RectanglePrimitive(M.x,M.y,M.width,M.height,null,l.SELECTION_ELEMENT_CLASSNAMES.CONTAINER_TARGET),ge=this.getContainerTargetElement(se);this.changePrimitiveElement(se,ge)},Z.prototype.hideContainerTarget=function(){this.containerTargetElement&&this.dom.changeByFunc(this.containerTargetElement,function(X){return X.style.display="none"})},Z.prototype.getContainerTargetElement=function(X){return void 0!==this.containerTargetElement?this.dom.changeByFunc(this.containerTargetElement,function(M){return M.style.display=""}):this.containerTargetElement=this.createPrimitiveElement(X,this.itemSelectionContainer),this.containerTargetElement},Z.prototype.showConnectionTarget=function(X,M){var se=new y.RectanglePrimitive(M.x,M.y,M.width,M.height,null,l.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_TARGET),ge=this.getConnectionTargetElement(se);this.changePrimitiveElement(se,ge)},Z.prototype.hideConnectionTarget=function(){this.connectionTargetElement&&this.dom.changeByFunc(this.connectionTargetElement,function(X){return X.style.display="none"})},Z.prototype.getConnectionTargetElement=function(X){return void 0!==this.connectionTargetElement?this.dom.changeByFunc(this.connectionTargetElement,function(M){return M.style.display=""}):this.connectionTargetElement=this.createPrimitiveElement(X,this.itemSelectionContainer),this.connectionTargetElement},Z.prototype.showExtensionLine=function(X,M,se,ge,De){var Fe=l.SELECTION_ELEMENT_CLASSNAMES.EXTENSION_LINE;M!==h.ExtensionLineType.VerticalCenterAfter&&M!==h.ExtensionLineType.VerticalCenterBefore&&M!==h.ExtensionLineType.HorizontalCenterAbove&&M!==h.ExtensionLineType.HorizontalCenterBelow||(Fe+=" center"),M!==h.ExtensionLineType.VerticalCenterToPageCenter&&M!==h.ExtensionLineType.HorizontalCenterToPageCenter&&M!==h.ExtensionLineType.LeftToPageCenter&&M!==h.ExtensionLineType.RightToPageCenter&&M!==h.ExtensionLineType.TopToPageCenter&&M!==h.ExtensionLineType.BottomToPageCenter||(Fe+=" page");var Ae=0,ne=0,fe=0,_e=0,ie=0,de=0,le=0,pe=0;se.y===ge.y?(Ae=se.x-Z.extensionLineWidth,ne=se.y-Z.extensionLineEndingSize,fe=se.x-Z.extensionLineWidth,_e=se.y+Z.extensionLineEndingSize,ie=ge.x-Z.extensionLineWidth,de=se.y-Z.extensionLineEndingSize,le=ge.x-Z.extensionLineWidth,pe=se.y+Z.extensionLineEndingSize):se.x===ge.x&&(Ae=se.x-Z.extensionLineEndingSize,ne=se.y-Z.extensionLineWidth,fe=se.x+Z.extensionLineEndingSize,_e=se.y-Z.extensionLineWidth,ie=se.x-Z.extensionLineEndingSize,de=ge.y-Z.extensionLineWidth,le=se.x+Z.extensionLineEndingSize,pe=ge.y-Z.extensionLineWidth);var Ee=0,ae=0;M!==h.ExtensionLineType.RightToRightAbove&&M!==h.ExtensionLineType.RightToRightBelow||(Ee-=Z.extensionLineWidth),M!==h.ExtensionLineType.BottomToBottomAfter&&M!==h.ExtensionLineType.BottomToBottomBefore||(ae-=Z.extensionLineWidth);var te=[new E.PathPrimitive([E.PathPrimitiveMoveToCommand.fromPoint(se.clone().offset(Ee,ae)),E.PathPrimitiveLineToCommand.fromPoint(ge.clone().offset(Ee,ae))],w.StrokeStyle.default1pxInstance,"size-line"),new E.PathPrimitive([new E.PathPrimitiveMoveToCommand(Ae,ne),new E.PathPrimitiveLineToCommand(fe,_e),new E.PathPrimitiveMoveToCommand(ie,de),new E.PathPrimitiveLineToCommand(le,pe)],w.StrokeStyle.default1pxInstance),new S.TextPrimitive((ge.x+se.x)/2,(ge.y+se.y)/2,De,k.TextOwner.ExtensionLine,void 0,void 0,void 0,null,void 0,null,C.PAGE_BG_TEXTFLOOR_FILTER_ID)],re=new f.GroupPrimitive(te,Fe),oe=this.getExtensionLineElement(re,X);this.changePrimitiveElement(re,oe)},Z.prototype.hideExtensionLines=function(){for(var X=0;X<this.extensionLineElements.length;X++)this.extensionLineElements[X]&&this.dom.changeByFunc(this.extensionLineElements[X],function(M){return M.style.display="none"})},Z.prototype.getExtensionLineElement=function(X,M){var se=this.extensionLineElements[M];return void 0!==se?this.dom.changeByFunc(se,function(ge){return ge.style.display=""}):(se=this.createPrimitiveElement(X,this.visualizersContainer),this.extensionLineElements[M]=se),se},Z.prototype.getOrCreateShapeSelection=function(X,M){var se=this.selectionMap[X.key];return se||(se=new ee(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom,X.key,X.isLocked,X.rectangle,X.style,X.allowResizeHorizontally,X.allowResizeVertically,X.description.getParameterPoints(X)),this.selectionMap[X.key]=se),M&&(M[X.key]=!0),se},Z.prototype.getOrCreateConnectorSelection=function(X,M){var se=this.selectionMap[X.key],ge=X.getRenderPoints();return se||(se=new G(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom,X.key,X.isLocked,X.rectangle,ge,X.style,X.styleText,X.enableText,X.texts.map(function(De){var Fe=u.GeometryUtils.getPathPointByPosition(ge,De.position);return{text:X.getText(De.position),point:Fe[0],pointIndex:Fe[1],pos:De.position}}).sort(function(De,Fe){return De.pos-Fe.pos}),X.points,X.properties.lineOption),this.selectionMap[X.key]=se),M&&(M[X.key]=!0),se},Z.prototype.getOrCreateMultipleSelection=function(X){var M=this.selectionMap[-1];return M||(M=new j(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom),this.selectionMap[-1]=M),X[-1]=!0,M},Z.prototype.getMultipleSelection=function(){return this.selectionMap[-1]},Z.prototype.updateShapeSelection=function(X,M){X.key in this.selectionMap&&(this.getOrCreateShapeSelection(X).onModelChanged(X.isLocked,X.rectangle,X.style,X.allowResizeHorizontally,X.allowResizeVertically,X.description.getParameterPoints(X)),M&&M.onModelItemChanged(X.key,X.rectangle))},Z.prototype.updateConnectorSelection=function(X,M){if(X.key in this.selectionMap){var se=X.getRenderPoints();this.getOrCreateConnectorSelection(X).onModelChanged(X.isLocked,X.rectangle,se,X.style,X.styleText,X.enableText,X.texts.map(function(ge){var De=u.GeometryUtils.getPathPointByPosition(se,ge.position);return{text:X.getText(ge.position),pointIndex:De[1],pos:ge.position,point:De[0]}}).sort(function(ge,De){return ge.pos-De.pos}),X.points,X.properties.lineOption),M&&M.onModelItemChanged(X.key,X.rectangle)}},Z.prototype.hideOutdatedSelection=function(X){var M=this;Object.keys(this.selectionMap).filter(function(se){return!X[se]}).forEach(function(se){M.selectionMap[se].destroy(),delete M.selectionMap[se]})},Z.prototype.selectionCanBeDrawn=function(X){return!X.container||X.container.expanded&&this.selectionCanBeDrawn(X.container)},Z.prototype.notifySelectionChanged=function(X){var M=this,se=X.getSelectedItems(!0).filter(function(_e){return M.selectionCanBeDrawn(_e)}),ge={},De=se.length>1,Fe=X.getSelectedShapes(!0).filter(function(_e){return M.selectionCanBeDrawn(_e)}),Ae=X.getSelectedConnectors(!0).filter(function(_e){return M.selectionCanBeDrawn(_e)});if(Fe.forEach(function(_e){return M.getOrCreateShapeSelection(_e,ge).onSelectionChanged(De)}),Ae.forEach(function(_e){return M.getOrCreateConnectorSelection(_e,ge).onSelectionChanged(De)}),De){var ne=se.length>0?se[0].strokeWidth:0,fe={};se.filter(function(_e){return!_e.isLocked}).forEach(function(_e){return fe[_e.key]=_e.rectangle}),this.getOrCreateMultipleSelection(ge).onSelectionChanged(!!Fe.filter(function(_e){return!_e.isLocked}).length,ne,fe)}this.hideOutdatedSelection(ge)},Z.prototype.applyChangesCore=function(X){q.prototype.applyChangesCore.call(this,X);var M=this.getMultipleSelection();M&&M.onModelChanged()},Z.prototype.applyChange=function(X){var M=this.getMultipleSelection();X.item instanceof g.Shape?this.updateShapeSelection(X.item,M):X.item instanceof x.Connector&&this.updateConnectorSelection(X.item,M)},Z.prototype.notifyPageColorChanged=function(X){},Z.prototype.notifyPageSizeChanged=function(X,M){},Z.prototype.notifyActualZoomChanged=function(X){var M=this;Object.keys(this.selectionMap).forEach(function(se){return M.selectionMap[se].notifyZoomChanged(X)}),this.actualZoom=X},Z.prototype.notifyViewAdjusted=function(X){},Z.prototype.notifyReadOnlyChanged=function(X){var M=this;this.readOnly=X,Object.keys(this.selectionMap).forEach(function(se){return M.selectionMap[se].notifyReadOnlyChanged(X)})},Z.prototype.notifySelectionRectShow=function(X){this.showSelectionRect(X.clone().multiply(this.actualZoom,this.actualZoom))},Z.prototype.notifySelectionRectHide=function(){this.hideSelectionRect()},Z.prototype.notifyResizeInfoShow=function(X,M){this.showResizeInfo(X.clone().multiply(this.actualZoom,this.actualZoom),M)},Z.prototype.notifyResizeInfoHide=function(){this.hideResizeInfo()},Z.prototype.notifyConnectionPointsShow=function(X,M,se,ge){var De=this;this.hideConnectionPoints(),M.forEach(function(Fe,Ae){var ne=Fe.point.clone().multiply(De.actualZoom,De.actualZoom);if(ge)switch(Fe.side){case s.ConnectionPointSide.North:ne.y=ge.y*De.actualZoom-Z.connectionPointShift;break;case s.ConnectionPointSide.South:ne.y=ge.bottom*De.actualZoom+Z.connectionPointShift;break;case s.ConnectionPointSide.West:ne.x=ge.x*De.actualZoom-Z.connectionPointShift;break;case s.ConnectionPointSide.East:ne.x=ge.right*De.actualZoom+Z.connectionPointShift}De.showConnectionPoint(Ae,ne,X,Ae,Ae===se,Fe.allowed)})},Z.prototype.notifyConnectionPointsHide=function(){this.hideConnectionPoints()},Z.prototype.notifyConnectionTargetShow=function(X,M){if(M.allowed){var se=Z.correctSelectionRect(M.rect.clone().multiply(this.actualZoom,this.actualZoom),M.strokeWidth,Z.connectionTargetBorderWidth,this.actualZoom,0);this.showConnectionTarget(0,se)}},Z.prototype.notifyConnectionTargetHide=function(){this.hideConnectionTarget()},Z.prototype.notifyContainerTargetShow=function(X,M){var se=Z.correctSelectionRect(M.rect.clone().multiply(this.actualZoom,this.actualZoom),M.strokeWidth,Z.connectionTargetBorderWidth,this.actualZoom,0);this.showContainerTarget(0,se)},Z.prototype.notifyContainerTargetHide=function(){this.hideContainerTarget()},Z.prototype.notifyExtensionLinesShow=function(X){var M=this;this.hideExtensionLines(),X.forEach(function(se,ge){M.showExtensionLine(ge,se.type,se.segment.startPoint.clone().multiply(M.actualZoom,M.actualZoom),se.segment.endPoint.clone().multiply(M.actualZoom,M.actualZoom),se.text)})},Z.prototype.notifyExtensionLinesHide=function(){this.hideExtensionLines()},Z.prototype.notifyDragStart=function(X){this.dom.changeByFunc(this.selectionMarksContainer,function(M){return M.style.display="none"})},Z.prototype.notifyDragEnd=function(X){this.dom.changeByFunc(this.selectionMarksContainer,function(M){return M.style.display=""})},Z.prototype.notifyDragScrollStart=function(){},Z.prototype.notifyDragScrollEnd=function(){},Z.prototype.notifyTextInputStart=function(X,M,se,ge){this.dom.changeByFunc(this.visualizersContainer,function(De){return De.style.display="none"})},Z.prototype.notifyTextInputEnd=function(X,M){this.dom.changeByFunc(this.visualizersContainer,function(se){return se.style.display=""})},Z.prototype.notifyTextInputPermissionsCheck=function(X,M){},Z.correctSelectionRect=function(X,M,se,ge,De){void 0===De&&(De=Z.selectionOffset);var Fe=T.UnitConverter.twipsToPixels(M)%2!=T.UnitConverter.twipsToPixels(se)%2,Ae=Math.ceil(M/2*ge);X=X.clone().inflate(Ae,Ae);var ne=Math.floor(se/2);if(X.x-=ne,X.y-=ne,X.width+=se,X.height+=se,Fe){var fe=Z.evenOddSelectionCorrection*(T.UnitConverter.twipsToPixels(se)%2==1?-1:1);X=X.clone().moveRectangle(fe,fe)}return X.clone().inflate(De,De)},Z.selectionMarkSize=T.UnitConverter.pixelsToTwips(10),Z.lockedSelectionMarkSize=T.UnitConverter.pixelsToTwips(8),Z.selectionOffset=T.UnitConverter.pixelsToTwips(2),Z.selectionRectLineWidth=T.UnitConverter.pixelsToTwips(1),Z.multiSelectionRectLineWidth=T.UnitConverter.pixelsToTwips(1),Z.connectionPointSmallSize=T.UnitConverter.pixelsToTwips(5),Z.connectionPointLargeSize=T.UnitConverter.pixelsToTwips(12),Z.connectionPointShift=T.UnitConverter.pixelsToTwips(16),Z.connectionTargetBorderWidth=T.UnitConverter.pixelsToTwips(2),Z.geomertyMarkSize=T.UnitConverter.pixelsToTwips(8),Z.connectorPointMarkSize=T.UnitConverter.pixelsToTwips(6),Z.connectorSideMarkSize=T.UnitConverter.pixelsToTwips(6),Z.extensionLineWidth=T.UnitConverter.pixelsToTwips(1),Z.extensionLineOffset=T.UnitConverter.pixelsToTwips(1),Z.extensionLineEndingSize=T.UnitConverter.pixelsToTwips(6),Z.resizeInfoOffset=T.UnitConverter.pixelsToTwips(16),Z.resizeInfoTextOffset=T.UnitConverter.pixelsToTwips(2),Z.resizeInfoLineWidth=T.UnitConverter.pixelsToTwips(1),Z.evenOddSelectionCorrection=T.UnitConverter.pixelsToTwips(1),Z}(W.CanvasManager);l.CanvasSelectionManager=K;var Y=function(){function q(Z,X,M,se,ge,De){this.rectsContainer=Z,this.marksContainer=X,this.key=M,this.zoomLevel=se,this.readOnly=ge,this.dom=De,this.elements={},this.updatedElements={}}return q.prototype.notifyZoomChanged=function(Z){this.zoomLevel!==Z&&(this.zoomLevel=Z,this.redraw())},q.prototype.notifyReadOnlyChanged=function(Z){this.readOnly=Z,this.redraw()},q.prototype.destroy=function(){var Z=this;Object.keys(this.elements).forEach(function(X){Z.elements[X].parentNode.removeChild(Z.elements[X]),delete Z.elements[X]})},q.prototype.redraw=function(){var Z=this;this.updatedElements={},this.redrawCore(),Object.keys(this.elements).filter(function(X){return!Z.updatedElements[X]}).forEach(function(X){Z.elements[X].parentNode.removeChild(Z.elements[X]),delete Z.elements[X]}),this.updatedElements={}},q.prototype.drawSelectionMarks=function(Z,X,M){if(!this.readOnly){var se=X&&Z.height>3*K.selectionMarkSize,ge=M&&Z.width>3*K.selectionMarkSize,De=X||M;De&&this.drawSelectionMark(0,new d.Point(Z.x,Z.y),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_NW,l.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),ge&&!R.Browser.TouchUI&&this.drawSelectionMark(1,new d.Point(Z.x+Z.width/2,Z.y),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_N,l.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),De&&this.drawSelectionMark(2,new d.Point(Z.right,Z.y),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_NE,l.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),se&&!R.Browser.TouchUI&&this.drawSelectionMark(3,new d.Point(Z.right,Z.y+Z.height/2),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_E,l.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),De&&this.drawSelectionMark(4,new d.Point(Z.right,Z.bottom),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_SE,l.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),ge&&!R.Browser.TouchUI&&this.drawSelectionMark(5,new d.Point(Z.x+Z.width/2,Z.bottom),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_S,l.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),De&&this.drawSelectionMark(6,new d.Point(Z.x,Z.bottom),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_SW,l.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),se&&!R.Browser.TouchUI&&this.drawSelectionMark(7,new d.Point(Z.x,Z.y+Z.height/2),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_W,l.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK)}},q.prototype.drawSelectionMark=function(Z,X,M,se,ge,De){var Fe=this;this.getOrCreateElement("SM"+Z,new y.RectanglePrimitive(X.x-M/2,X.y-M/2,M,M,null,De,void 0,function(Ae){a.RenderUtils.setElementEventData(Ae,se,Fe.key,ge)}),this.marksContainer)},q.prototype.drawSelectionRect=function(Z,X,M){var se=new y.RectanglePrimitive(Z.x,Z.y,Z.width,Z.height,w.StrokeStyle.default1pxInstance,M,void 0,function(ge){a.RenderUtils.setElementEventData(ge,X,"-1",-1)});this.getOrCreateElement("shapeSelection",se,this.rectsContainer)},q.prototype.getOrCreateElement=function(Z,X,M){var se=this.elements[Z];return se||(se=X.createElement(function(ge){return M.appendChild(ge)}),this.elements[Z]=se),this.updatedElements[Z]=!0,this.dom.changeByPrimitive(se,X),se},q}(),J=function(q){function Z(X,M,se,ge,De,Fe,Ae,ne){var fe=q.call(this,X,M,se,ge,De,Fe)||this;return fe.isLocked=Ae,fe.rectangle=ne,fe}return I(Z,q),Z.prototype.onSelectionChanged=function(X){this.isMultipleSelection!==X&&(this.isMultipleSelection=X,this.redraw())},Z.prototype.isLockedRender=function(){return this.isLocked&&!this.readOnly},Z.prototype.drawLockedSelectionMark=function(X,M,se,ge){var De=new E.PathPrimitive([new E.PathPrimitiveMoveToCommand(M.x-se/2,M.y-se/2),new E.PathPrimitiveLineToCommand(M.x+se/2,M.y+se/2),new E.PathPrimitiveMoveToCommand(M.x+se/2,M.y-se/2),new E.PathPrimitiveLineToCommand(M.x-se/2,M.y+se/2)],null,ge);this.getOrCreateElement("LSM"+X,De,this.marksContainer)},Z}(Y),j=function(q){function Z(X,M,se,ge,De){var Fe=q.call(this,X,M,"-1",se,ge,De)||this;return Fe.rectangles={},Fe}return I(Z,q),Z.prototype.onModelItemChanged=function(X,M){X in this.rectangles&&(this.rectangles[X]=M)},Z.prototype.onModelChanged=function(){this.redraw()},Z.prototype.onSelectionChanged=function(X,M,se){this.needDrawSelectionMarks=X,this.strokeWidth=M,this.rectangles=se,this.redraw()},Z.prototype.redrawCore=function(){var X=this,M=Object.keys(this.rectangles);if(M.length){var se=u.GeometryUtils.getCommonRectangle(M.map(function(De){return X.rectangles[De]})).clone().multiply(this.zoomLevel,this.zoomLevel),ge=K.correctSelectionRect(se,this.strokeWidth,K.selectionRectLineWidth,this.zoomLevel);this.drawSelectionRect(ge,p.MouseEventElementType.SelectionRect,l.SELECTION_ELEMENT_CLASSNAMES.ITEMS_SELECTION_RECT),this.needDrawSelectionMarks&&this.drawSelectionMarks(se,!0,!0)}},Z}(Y),ee=function(q){function Z(X,M,se,ge,De,Fe,Ae,ne,fe,_e,ie,de){var le=q.call(this,X,M,Fe,se,ge,De,Ae,ne)||this;return le.style=fe,le.allowResizeHorizontally=_e,le.allowResizeVertically=ie,le.shapeParameterPoints=de,le}return I(Z,q),Z.prototype.onModelChanged=function(X,M,se,ge,De,Fe){this.isLocked=X,this.rectangle=M,this.style=se,this.allowResizeHorizontally=ge,this.allowResizeVertically=De,this.shapeParameterPoints=Fe,this.redraw()},Z.prototype.redrawCore=function(){var X=this.rectangle.clone().multiply(this.zoomLevel,this.zoomLevel);this.isLockedRender()?this.drawLockedSelection(X):this.drawUnlockedSelection(X)},Z.prototype.drawLockedSelection=function(X){this.drawLockedSelectionMark(0,new d.Point(X.x,X.y),K.lockedSelectionMarkSize,l.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(1,new d.Point(X.right,X.y),K.lockedSelectionMarkSize,l.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(2,new d.Point(X.right,X.bottom),K.lockedSelectionMarkSize,l.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(3,new d.Point(X.x,X.bottom),K.lockedSelectionMarkSize,l.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK)},Z.prototype.drawUnlockedSelection=function(X){var M=K.correctSelectionRect(X,this.style.strokeWidth,K.selectionRectLineWidth,this.zoomLevel);this.drawSelectionRect(M,p.MouseEventElementType.SelectionRect,this.isMultipleSelection?l.SELECTION_ELEMENT_CLASSNAMES.ITEM_MULTI_SELECTION:l.SELECTION_ELEMENT_CLASSNAMES.ITEM_SELECTION_RECT),this.isMultipleSelection||this.drawSelectionMarks(X,this.allowResizeHorizontally,this.allowResizeVertically),this.drawShapeParameterPoints()},Z.prototype.drawShapeParameterPoints=function(){var X=this;this.readOnly||this.shapeParameterPoints.forEach(function(M,se){var ge=M.point.clone().multiply(X.zoomLevel,X.zoomLevel);X.drawShapeParameterPoint(ge,se,M.key)})},Z.prototype.drawShapeParameterPoint=function(X,M,se){var ge=this,De=K.geomertyMarkSize,Fe=new y.RectanglePrimitive(X.x-De/2,X.y-De/2,De,De,null,"geometry-mark",void 0,function(Ae){a.RenderUtils.setElementEventData(Ae,p.MouseEventElementType.ShapeParameterBox,ge.key,se)});this.getOrCreateElement("pp"+M.toString(),Fe,this.marksContainer)},Z}(J),G=function(q){function Z(X,M,se,ge,De,Fe,Ae,ne,fe,_e,ie,de,le,pe,Ee){var ae=q.call(this,X,M,Fe,se,ge,De,Ae,ne)||this;return ae.renderPoints=fe,ae.style=_e,ae.styleText=ie,ae.enableText=de,ae.texts=le,ae.points=pe,ae.lineType=Ee,ae}return I(Z,q),Z.prototype.onModelChanged=function(X,M,se,ge,De,Fe,Ae,ne,fe){this.isLocked=X,this.rectangle=M,this.renderPoints=se,this.style=ge,this.styleText=De,this.enableText=Fe,this.texts=Ae,this.points=ne,this.lineType=fe,this.redraw()},Z.prototype.redrawCore=function(){this.isLockedRender()?this.drawLockedSelection():this.drawUnlockedSelection()},Z.prototype.drawLockedSelection=function(){var X=this;this.renderPoints.forEach(function(M,se){X.drawLockedSelectionMark(se,M,K.lockedSelectionMarkSize,l.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK)})},Z.prototype.drawUnlockedSelection=function(){this.drawConnectorSelection(),this.isMultipleSelection||this.readOnly||this.drawConnectorSelectionMarks()},Z.prototype.drawConnectorSelection=function(){var X=[],M=[],se=this.isMultipleSelection?l.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_MULTI_SELECTION:l.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_SELECTION;this.populateSelectionPrimitiveCommands(X,M);var ge=new E.PathPrimitive(X.concat(M.reverse()),w.StrokeStyle.default1pxInstance,se);this.getOrCreateElement("CS",ge,this.rectsContainer)},Z.prototype.populateSelectionPrimitiveCommands=function(X,M){for(var se,ge,De,Fe,Ae=this.texts,ne=this.styleText.getAlignment(),fe=this.createNotSkippedRenderPoints(),_e=this.zoomLevel,ie=this.style.strokeWidthPx,de=this.getSelectionOffset(ie),le=ie%2==0,pe=fe[0],Ee=0,ae=1,te=void 0;te=fe[ae];ae++){var re=fe[ae+1];if(void 0===se){if(ge=N.Metrics.euclideanDistance(pe,te),V.MathUtils.numberCloseTo(ge,0))continue;se=u.GeometryUtils.getSelectionOffsetPoint(pe,te,ge).multiply(de,de)}if(re){if(Fe=N.Metrics.euclideanDistance(te,re),V.MathUtils.numberCloseTo(Fe,0))continue;De=u.GeometryUtils.getSelectionOffsetPoint(te,re,Fe).multiply(de,de)}var oe=se.x,ye=se.y,Pe=-oe,Ne=-ye,ft=De&&De.x,tt=De&&De.y,Be=De&&-De.x,mt=De&&-De.y;for(le&&(Pe>0?Pe-=K.evenOddSelectionCorrection:oe>0&&(oe-=K.evenOddSelectionCorrection),Ne>0?Ne-=K.evenOddSelectionCorrection:ye>0&&(ye-=K.evenOddSelectionCorrection),Be>0?Be-=K.evenOddSelectionCorrection:ft>0&&(ft-=K.evenOddSelectionCorrection),mt>0?mt-=K.evenOddSelectionCorrection:tt>0&&(tt-=K.evenOddSelectionCorrection));Ae[Ee]&&Ae[Ee].pointIndex<=ae;){var nn=Ae[Ee],ke=this.getConnectorSelectionTextSize(nn.text,de),$e=u.GeometryUtils.getSelectionTextStartEndPoints(pe,te,ge,nn.point,ke,ne);Ae[Ee].pointIndex<ae?(X.push(E.PathPrimitiveMoveToCommand.fromPoint((pe=$e[1]).clone().offset(oe,ye).multiply(_e,_e))),M.push(E.PathPrimitiveLineToCommand.fromPoint(pe.clone().offset(Pe,Ne).multiply(_e,_e)))):(X.length||(X.push(E.PathPrimitiveMoveToCommand.fromPoint(pe.clone().offset(oe,ye).multiply(_e,_e))),M.push(E.PathPrimitiveLineToCommand.fromPoint(pe.clone().offset(Pe,Ne).multiply(_e,_e)))),X.push(E.PathPrimitiveLineToCommand.fromPoint($e[0].clone().offset(oe,ye).multiply(_e,_e))),X.push(E.PathPrimitiveMoveToCommand.fromPoint($e[1].clone().offset(oe,ye).multiply(_e,_e))),M.push(E.PathPrimitiveMoveToCommand.fromPoint($e[0].clone().offset(Pe,Ne).multiply(_e,_e))),M.push(E.PathPrimitiveLineToCommand.fromPoint($e[1].clone().offset(Pe,Ne).multiply(_e,_e))),pe=$e[1]),Ee++}X.length||(X.push(E.PathPrimitiveMoveToCommand.fromPoint(pe.clone().offset(oe,ye).multiply(_e,_e))),M.push(E.PathPrimitiveLineToCommand.fromPoint(pe.clone().offset(Pe,Ne).multiply(_e,_e)))),re?(u.GeometryUtils.addSelectedLinesTo(pe,te,re,oe,ye,Pe,Ne,ft,tt,Be,mt,function(me,xe){return X.push(new E.PathPrimitiveLineToCommand(me*_e,xe*_e))},function(me,xe){return M.push(new E.PathPrimitiveLineToCommand(me*_e,xe*_e))}),se=De,ge=Fe):(X.push(E.PathPrimitiveLineToCommand.fromPoint(te.clone().offset(oe,ye).multiply(_e,_e))),M.push(E.PathPrimitiveMoveToCommand.fromPoint(te.clone().offset(Pe,Ne).multiply(_e,_e)))),pe=te}},Z.prototype.createNotSkippedRenderPoints=function(){var X=this.renderPoints.map(function(M){return M.clone()});return this.lineType===b.ConnectorLineOption.Straight?(U.ModelUtils.removeUnnecessaryRenderPoints(X),X.filter(function(M){return!M.skipped})):(U.ModelUtils.removeUnnecessaryRightAngleRenderPoints(X),X.filter(function(M){return!M.skipped}))},Z.prototype.getSelectionOffset=function(X){return K.selectionOffset+T.UnitConverter.pixelsToTwips(Math.round(X/2)+(X+1)%2)},Z.prototype.getConnectorSelectionTextSize=function(X,M){return this.dom.measurer.measureTextLine(X,this.styleText,k.TextOwner.Connector).applyConverter(T.UnitConverter.pixelsToTwips).clone().offset(M,M).nonNegativeSize()},Z.prototype.drawConnectorSelectionMarks=function(){var X=this,M=this.points.length-1;this.points.forEach(function(se,ge){var De=0===ge||ge===M,Fe=De?l.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK:l.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_POINT_MARK,Ae=De?K.selectionMarkSize:K.connectorPointMarkSize;De||X.lineType===b.ConnectorLineOption.Straight?X.drawSelectionMark(ge,se.clone().multiply(X.zoomLevel,X.zoomLevel),Ae,p.MouseEventElementType.ConnectorPoint,ge,Fe):X.drawSelectionMark(ge,se.clone().multiply(X.zoomLevel,X.zoomLevel),Ae,p.MouseEventElementType.Undefined,-1,Fe+" disabled")}),this.drawConnectorSideMarks()},Z.prototype.drawConnectorSideMarks=function(){var X,M,se=this,ge=this.lineType===b.ConnectorLineOption.Straight?p.MouseEventElementType.ConnectorSide:p.MouseEventElementType.ConnectorOrthogonalSide;this.renderPoints.forEach(function(De,Fe){if(!De.skipped){if(void 0!==X&&se.canDrawConnectorSideMark(De,X)){var Ae=se.lineType===b.ConnectorLineOption.Orthogonal?De.x-X.x==0?"vertical":"horizontal":"";se.drawSelectionMark(se.points.length+Fe-1,new d.Point(X.x+(De.x-X.x)/2,X.y+(De.y-X.y)/2).clone().multiply(se.zoomLevel,se.zoomLevel),K.connectorSideMarkSize,ge,M+"_"+Fe,l.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_SIDE_MARK+" "+Ae)}X=De,M=Fe}})},Z.prototype.canDrawConnectorSideMark=function(X,M){if(this.lineType===b.ConnectorLineOption.Straight){var se=K.selectionMarkSize+K.connectorSideMarkSize;return N.Metrics.euclideanDistance(X,M)>se}if(this.lineType===b.ConnectorLineOption.Orthogonal){var ge=0===M.pointIndex,De=u.GeometryUtils.areDuplicatedPoints(this.points[this.points.length-1],X);return ge&&De?N.Metrics.euclideanDistance(X,M)>2*x.Connector.minOffset:!ge&&De||ge&&!De?N.Metrics.euclideanDistance(X,M)>x.Connector.minOffset:(se=K.selectionMarkSize+K.connectorSideMarkSize,N.Metrics.euclideanDistance(X,M)>se)}return!1},Z}(J)},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DiagramDraggingEvent=l.ToolboxDraggingObject=l.Toolbox=void 0;var c,b,I=o(3),C=o(0),f=o(65),a=o(44),p=o(27),s=o(18),u=o(15),d=o(78),h=function(){function b(y,E,S,O,w,T){this.readOnly=E,this.allowDragging=S,this.shapeDescriptionManager=O,this.shapeTypes=w,this.getAllowedShapeTypes=T,this.dragPrepareTimeout=-1,this.dragState=c.None,this.emulateDragEvents=s.Browser.WebKitTouchUI,this.onDragOperation=new I.EventDispatcher,this.onClickOperation=new I.EventDispatcher,y&&(this.mainElement=this.createMainElement(y),this.attachHandlers(this.mainElement))}return b.prototype.clean=function(y){this.detachHandlers(this.mainElement),y&&y(this.mainElement)},b.prototype.createMainElement=function(y){var E=document.createElement("div");return E.setAttribute("class","dxdi-toolbox"),E.draggable=!0,this.emulateDragEvents&&(E.tabIndex=0),y.appendChild(E),E},b.prototype.attachHandlers=function(y){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||u.RenderHelper.addEventListener(y,"dragstart",this.onDragStartHandler),I.EventUtils.isPointerEvents()?(this.mouseDownEventName="pointerdown",this.mouseMoveEventName="pointermove",this.mouseUpEventName="pointerup"):(this.mouseDownEventName=s.Browser.TouchUI?"touchstart":"mousedown",this.mouseMoveEventName=s.Browser.TouchUI?"touchmove":"mousemove",this.mouseUpEventName=s.Browser.TouchUI?"touchend":"mouseup"),u.RenderHelper.addEventListener(y,"touchmove",this.onTouchMoveHandler),u.RenderHelper.addEventListener(y,this.mouseDownEventName,this.onElementMouseDownHandler),u.RenderHelper.addEventListener(y,this.mouseUpEventName,this.onElementMouseUpHandler),u.RenderHelper.addEventListener(y,this.mouseDownEventName,this.onMouseDownHandler),u.RenderHelper.addEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),u.RenderHelper.addEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},b.prototype.detachHandlers=function(y){this.emulateDragEvents||u.RenderHelper.removeEventListener(y,"dragstart",this.onDragStartHandler),u.RenderHelper.removeEventListener(y,"touchmove",this.onTouchMoveHandler),u.RenderHelper.removeEventListener(y,this.mouseDownEventName,this.onElementMouseDownHandler),u.RenderHelper.removeEventListener(y,this.mouseUpEventName,this.onElementMouseUpHandler),u.RenderHelper.removeEventListener(y,this.mouseDownEventName,this.onMouseDownHandler),u.RenderHelper.removeEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),u.RenderHelper.removeEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},b.prototype.render=function(y){this.mainElement.childNodes&&(this.mainElement.innerHTML="");var E=this.shapeTypes;return E=this.getAllowedShapeTypes?this.getAllowedShapeTypes(E):E,(E=y?E.filter(y):E).length&&this.createElements(this.mainElement,E),!!E.length},b.prototype.createDraggingObject=function(y){var E=new x;return E.data=y,E.onFinishDragging=this.resetDragState.bind(this),E.onCaptured=this.capture.bind(this),new g(E)},b.prototype.getDragShapeType=function(y){for(;y&&!p.DomUtils.hasClassName(y,"dxdi-toolbox");){if(y.getAttribute&&y.getAttribute("data-tb-type"))return y.getAttribute("data-tb-type");y=y.parentNode}},b.prototype.getTouchPointFromEvent=function(y){var E,S=y.touches;return S&&S.length>0?E=new C.Point(S[0].clientX,S[0].clientY):y.clientX&&y.clientY&&(E=new C.Point(y.clientX,y.clientY)),E},b.prototype.onElementMouseDown=function(y){this.mouseDownShapeType=this.getDragShapeType(f.EvtUtils.getEventSource(y)),this.touchDownPoint=this.getTouchPointFromEvent(y)},b.prototype.onElementMouseUp=function(y){var E=this.getDragShapeType(f.EvtUtils.getEventSource(y));E&&E===this.mouseDownShapeType&&this.onClickOperation.raise("notifyToolboxClick",E),this.mouseDownShapeType=void 0,this.touchDownPoint=void 0},b.prototype.onMouseDown=function(y){this.setDragState(c.Prepare,y),s.Browser.TouchUI&&I.EventUtils.isMousePointer(y)&&this.setDragState(c.Start,y)},b.prototype.onDragStart=function(y){this.setDragState(c.Start,y),y.preventDefault()},b.prototype.onTouchMove=function(y){this.draggingObject&&y.preventDefault()},b.prototype.isLeftButtonPressed=function(y){return f.EvtUtils.isLeftButtonPressed(y)||"pointermove"===y.type&&s.Browser.TouchUI&&s.Browser.MacOSMobilePlatform&&I.EventUtils.isMousePointer(y)},b.prototype.onMouseMove=function(y){if(s.Browser.TouchUI&&s.Browser.MacOSMobilePlatform){var E=this.getTouchPointFromEvent(y);if(this.touchDownPoint&&E&&this.touchDownPoint.x===E.x&&this.touchDownPoint.y===E.y)return}this.setDragState(this.isLeftButtonPressed(y)?c.Dragging:c.None,y),I.EventUtils.isPointerEvents()&&this.raiseDraggingMouseMove(y)},b.prototype.onMouseUp=function(y){this.setDragState(c.None,y)},b.prototype.updateDraggingElementPosition=function(y,E){var S=this.draggingObject.element,w=E-S.offsetHeight/2;a.SetAbsoluteX(S,y-S.offsetWidth/2),a.SetAbsoluteY(S,w)},b.prototype.setDragState=function(y,E){if(!this.readOnly&&this.allowDragging&&!(y===c.None&&y===this.dragState||(this.dragPrepareTimeout>-1&&(clearTimeout(this.dragPrepareTimeout),this.dragPrepareTimeout=-1,this.dragPrepareEvent=void 0),y-this.dragState>1||y!==c.None&&y<this.dragState)))switch(this.dragState=y,y){case c.Prepare:this.prepareDragging(E)||this.setDragState(c.None,E),!this.emulateDragEvents&&I.EventUtils.isMousePointer(E)||(this.dragPrepareTimeout=setTimeout(this.onDragPrepareTimeout.bind(this),800),this.dragPrepareEvent=E);break;case c.Start:p.DomUtils.addClassName(document.body,"dxdi-dragging"),this.startDragging(E);break;case c.Dragging:this.doDragging(E);break;case c.None:this.finishDragging(E)}},b.prototype.resetDragState=function(){this.setDragState(c.None,void 0)},b.prototype.onDragPrepareTimeout=function(){this.dragPrepareTimeout=-1,this.dragState===c.Prepare&&this.setDragState(c.Start,this.dragPrepareEvent),this.dragPrepareEvent=void 0},b.prototype.prepareDragging=function(y){return this.dragStartPoint=new C.Point(f.EvtUtils.getEventX(y),f.EvtUtils.getEventY(y)),this.dragStartShapeType=this.getDragShapeType(f.EvtUtils.getEventSource(y)),I.EventUtils.isMousePointer(y)&&p.DomUtils.addClassName(this.mainElement,"dxdi-tb-start-drag-flag"),!this.emulateDragEvents&&I.EventUtils.isMousePointer(y)||I.HtmlFocusUtils.focusWithPreventScroll(this.mainElement),!!this.dragStartShapeType},b.prototype.startDragging=function(y){this.draggingObject=this.createDraggingObject(this.dragStartShapeType),this.dragStartShapeType?(this.raiseDragStart(y),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,d.NOT_VALID_CSSCLASS)},b.prototype.doDragging=function(y){this.draggingObject.element&&this.updateDraggingElementPosition(f.EvtUtils.getEventX(y),f.EvtUtils.getEventY(y))},b.prototype.finishDragging=function(y){if(this.draggingObject){this.raiseDragEnd(y);var E=this.draggingObject.element;E&&E.parentNode.removeChild(E),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,d.NOT_VALID_CSSCLASS),setTimeout(function(){return p.DomUtils.removeClassName(document.body,"dxdi-dragging")},500)},b.prototype.capture=function(y,E){this.draggingObject&&(this.draggingObject.captured!==y||E)&&(this.draggingObject.captured=y,this.draggingObject.element&&p.DomUtils.toggleClassName(this.draggingObject.element,"dxdi-tb-drag-captured",y))},b.prototype.raiseDragStart=function(y){this.onDragOperation.raise("notifyToolboxDragStart",y)},b.prototype.raiseDragEnd=function(y){this.onDragOperation.raise("notifyToolboxDragEnd",y)},b.prototype.raiseDraggingMouseMove=function(y){this.onDragOperation.raise("notifyToolboxDraggingMouseMove",y)},b.prototype.notifyReadOnlyChanged=function(y){this.readOnly=y},b}();l.Toolbox=h,(b=c||(c={}))[b.None=-1]="None",b[b.Prepare=0]="Prepare",b[b.Start=1]="Start",b[b.Dragging=2]="Dragging";var g=function(b){this.evt=b};l.ToolboxDraggingObject=g;var x=function(){};l.DiagramDraggingEvent=x},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RightAngleConnectorRoutingMathOperations=void 0;var c=o(33),I=o(31),C=o(161),f=o(3),a=o(9),p=function(){function s(){}return s.createUnionSegments=function(u,d){for(var h=[],g=u[0].startPoint,x=u[0].endPoint,b=1;b<u.length;b++){var y=u[b];d(x,y.startPoint)&&(h.push(new c.Segment(g.clone(),x.clone())),g=y.startPoint),x=y.endPoint}return h.push(new c.Segment(g,x)),h},s.unionPoints=function(u){for(var d=0;d<u.length-2;)f.GeometryUtils.isCorner(u[d],u[d+1],u[d+2])?d++:(u.splice(d+1,1),d=Math.max(0,d-1))},s.getTurnDirection=function(u){return I.MathUtils.numberCloseTo(u,0)?C.RightAngleTurnDirection.Straight:I.MathUtils.numberCloseTo(u,Math.PI)?C.RightAngleTurnDirection.Backwards:u<Math.PI?C.RightAngleTurnDirection.Left:C.RightAngleTurnDirection.Right},s.isSegmentNormal=function(u,d){return d?I.MathUtils.numberCloseTo(u.startPoint.y,u.endPoint.y):I.MathUtils.numberCloseTo(u.startPoint.x,u.endPoint.x)},s.isConnectionRectanleLineIntersected=function(u,d,h,g,x,b){switch(h){case a.ConnectionPointSide.North:return f.GeometryUtils.isLineIntersected(b(u.x,u.y),b(u.right,u.y),d,g,x);case a.ConnectionPointSide.South:return f.GeometryUtils.isLineIntersected(b(u.right,u.bottom),b(u.x,u.bottom),d,g,x);case a.ConnectionPointSide.West:return f.GeometryUtils.isLineIntersected(b(u.x,u.y),b(u.x,u.bottom),d,g,x);case a.ConnectionPointSide.East:return f.GeometryUtils.isLineIntersected(b(u.right,u.y),b(u.right,u.bottom),d,g,x);default:return!1}},s.createBeginConnectionSegment=function(u,d,h,g){switch(u){case a.ConnectionPointSide.North:return new c.Segment(d,g(d.x,d.y-h));case a.ConnectionPointSide.South:return new c.Segment(d,g(d.x,d.y+h));case a.ConnectionPointSide.West:return new c.Segment(d,g(d.x-h,d.y));case a.ConnectionPointSide.East:return new c.Segment(d,g(d.x+h,d.y));default:return d}},s.createEndConnectionSegment=function(u,d,h,g){switch(u){case a.ConnectionPointSide.North:return new c.Segment(g(d.x,d.y-h),d);case a.ConnectionPointSide.South:return new c.Segment(g(d.x,d.y+h),d);case a.ConnectionPointSide.West:return new c.Segment(g(d.x-h,d.y),d);case a.ConnectionPointSide.East:return new c.Segment(g(d.x+h,d.y),d);default:return d}},s}();l.RightAngleConnectorRoutingMathOperations=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.IntersectedShapeZone=l.AStarMetrics=l.IntersectedShapesMetrics=l.TurnDirectionMetrics=l.IntersectedShapeMetrics=l.RightAngleTurnDirection=void 0;var c,u,I=o(0),C=o(35);(u=c=l.RightAngleTurnDirection||(l.RightAngleTurnDirection={}))[u.Straight=0]="Straight",u[u.Left=1]="Left",u[u.Right=2]="Right",u[u.Backwards=3]="Backwards";var f=function(){function u(d,h){this.description=d,this.shapeMargin=h}return u.prototype.penalty=function(d,h,g,x){var b=x.rectangle;if(b.containsPoint(g))return d+this.description.shape*h;var y=this.createRelativeMarginPenalty(g,b,this.shapeMargin);return y>0?d+this.description.margin*y*h:d},u.prototype.createRelativeMarginPenalty=function(d,h,g){var x=this.isTopPosition(d,h,g),b=this.isLeftPosition(d,h,g),y=this.isBottomPosition(d,h,g),E=this.isRightPosition(d,h,g);if(x){if(b){var S=(T=h.clone().inflate(g)).createPosition(),O=h.createPosition(),w=C.Metrics.euclideanDistance(O,S);return 1-C.Metrics.euclideanDistance(O,d)/w}if(E){var T=h.clone().inflate(g),k=new I.Point(T.right,T.y),R=new I.Point(h.right,h.y),P=C.Metrics.euclideanDistance(R,k);return 1-C.Metrics.euclideanDistance(R,d)/P}return 1-(h.y-d.y)/g}if(y){if(b){T=h.clone().inflate(g);var B=new I.Point(T.x,T.bottom),W=new I.Point(h.x,h.bottom),N=C.Metrics.euclideanDistance(W,B);return 1-C.Metrics.euclideanDistance(W,d)/N}if(E){T=h.clone().inflate(g);var V=new I.Point(T.right,T.bottom),U=new I.Point(h.right,h.bottom),K=C.Metrics.euclideanDistance(U,V);return 1-C.Metrics.euclideanDistance(U,d)/K}return 1-(d.y-h.bottom)/g}return b?1-(h.x-d.x)/g:E?1-(d.x-h.right)/g:0},u.prototype.isTopPosition=function(d,h,g){return d.x>h.x-g&&d.x<h.right+g&&d.y>h.y-g&&d.y<h.y},u.prototype.isBottomPosition=function(d,h,g){return d.x>h.x-g&&d.x<h.right+g&&d.y>h.bottom&&d.y<h.bottom+g},u.prototype.isLeftPosition=function(d,h,g){return d.x>h.x-g&&d.x<h.x&&d.y>h.y-g&&d.y<h.bottom+g},u.prototype.isRightPosition=function(d,h,g){return d.x>h.right&&d.x<h.right+g&&d.y>h.y-g&&d.y<h.bottom+g},u}();l.IntersectedShapeMetrics=f;var a=function(){function u(d){this.description=d}return u.prototype.penalty=function(d,h){switch(h){case c.Backwards:return d*this.description.turnBack;case c.Left:return d*this.description.turnLeft;case c.Right:return d*this.description.turnRight}return d},u}();l.TurnDirectionMetrics=a;var p=function(){function u(d){this.shapeMetrics=d}return u.prototype.penalty=function(d,h,g,x){var b=this;if(!x||!x.length)return d;var y=d;return x.forEach(function(E){return y=b.shapeMetrics.penalty(y,h,g,E)}),y},u}();l.IntersectedShapesMetrics=p;var s=function(){function u(d,h){this.turnDirectionMetrics=d,this.shapesMetrics=h}return u.prototype.distance=function(d,h){return C.Metrics.manhattanDistance(d,h)},u.prototype.penalty=function(d,h,g,x){var b=d;return b=this.shapesMetrics.penalty(b,d,h,x),this.turnDirectionMetrics.penalty(b,g)},u}();l.AStarMetrics=s,function(u){u[u.None=0]="None",u[u.Shape=1]="Shape",u[u.Margin=2]="Margin"}(l.IntersectedShapeZone||(l.IntersectedShapeZone={}))},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.DeleteCommand=void 0;var C=o(4),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabled=function(){var s=this.control.selection.getSelectedItems();return a.prototype.isEnabled.call(this)&&s.length&&(s.length>1||this.permissionsProvider.canDeleteItems(s))},p.prototype.executeCore=function(s){var u=this.control.selection.getSelectedItems(!0,!0);return this.permissionsProvider.beginDeleteItems(u),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}(o(10).SimpleCommandBase);l.DeleteCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=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,f){return(this.value&C)===C!==f&&(f?this.value|=C:this.value^=C),this},I.prototype.add=function(C){this.value|=C},I.prototype.anyOf=function(){for(var C=[],f=0;f<arguments.length;f++)C[f]=arguments[f];for(var a=0,p=C;a<p.length;a++){var s=p[a];if((this.value&s)===s)return!0}return!1},I.prototype.getValue=function(){return this.value},I.prototype.clone=function(){return new I(this.value)},I}();l.Flag=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(105),I=o(41),C=o(106),f=o(169),a=function(){function p(){}return p.oneConstainsOtherArraysOfInterval=function(s,u){for(var d=c.ListUtils.deepCopy(u),h=d.pop();h;){if(!c.ListUtils.unsafeAnyOf(s,function(g){return g.containsInterval(h)}))return!1;h=d.pop()}return!0},p.getIntersection=function(s,u){return p.getIntersectionTemplate(s,u,s)},p.getIntersectionTemplate=function(s,u,d){var h=Math.max(s.start,u.start),g=Math.min(s.end,u.end);return h>g?null:d.makeByStartEnd(h,g)},p.getIntersectionNonNullLength=function(s,u){return p.getIntersectionNonNullLengthTemplate(s,u,s)},p.getIntersectionNonNullLengthTemplate=function(s,u,d){var h=p.getIntersectionTemplate(s,u,d);return h&&h.length?h:null},p.getIntersectionsTwoArraysOfInterval=function(s,u){return p.getIntersectionsTwoArraysOfIntervalTemplate(s,u,s[0])},p.getIntersectionsTwoArraysOfIntervalTemplate=function(s,u,d){for(var h=[],g=s.length,x=u.length,b=0,y=0,E=s[b],S=u[y],O=null;b<g&&y<x;){var w=p.getIntersectionTemplate(E,S,d);w&&(O&&O.end===w.start?O.length+=w.length:h.push(O=w)),E.end<S.end?E=s[++b]:S=u[++y]}return h},p.getAffectedObjects=function(s,u,d,h){return void 0===d&&(d=function(g){return I.SearchUtils.normedInterpolationIndexOf(s,function(x){return x.interval.start},g)}),void 0===h&&(h=function(g,x,b){return g.start===b&&0===x}),p.getAffectedObjectsTemplate(s,u,u[0],d,h)},p.getAffectedObjectsTemplate=function(s,u,d,h,g){void 0===h&&(h=function(k){return I.SearchUtils.normedInterpolationIndexOf(s,function(R){return R.interval.start},k)}),void 0===g&&(g=function(k,R,P){return k.start===P&&0===R});for(var x=new f.SparseIntervalsCollector(d),b=0,y=u;b<y.length;b++)for(var E=y[b],S=Math.max(0,h(E.start,s)),O=void 0;O=s[S];S++){var w=O.interval;if(w.start>E.end)break;var T=p.getIntersectionTemplate(w,E,d);T&&(T.length||g(w,E.length,T.start))&&x.add(S)}return x.getIntervals()},p.handleAffectedObjects=function(s,u,d,h){void 0===h&&(h=function(T){return I.SearchUtils.normedInterpolationIndexOf(s,function(k){return k.interval.start},T)});for(var g=new C.FixedInterval(0,0),x=0,b=u;x<b.length;x++)for(var y=b[x],E=Math.max(0,h(y.start,s)),S=void 0;S=s[E];E++){var O=S.interval;if(O.start>y.end)break;var w=p.getIntersectionTemplate(O,y,g);w&&d(S,E,y,w)}},p.getMergedIntervals=function(s,u){return p.getMergedIntervalsTemplate(s,u,s[0])},p.getMergedIntervalsTemplate=function(s,u,d){if(s.length<2)return s.length>0?[d.makeByStartLength(s[0].start,s[0].length)]:[];for(var h=u?[].concat(s).sort(function(S,O){return S.start-O.start}):s,g=[],x=0,b=void 0;b=h[x];){var y=b.start,E=b.end;for(++x;void 0!==(b=h[x])&&b.start<=E;x++)b.end>E&&(E=b.end);g.push(d.makeByStartEnd(y,E))}return g},p.reflectIntervals=function(s,u){return p.reflectIntervalsTemplate(s,u,u)},p.reflectIntervalsTemplate=function(s,u,d){if(!s.length)return[d.makeByStartLength(u.start,u.length)];var h=c.ListUtils.last(s).end,g=c.ListUtils.reducedMap(s,function(x,b){return p.getIntersectionNonNullLengthTemplate(d.makeByStartEnd(s[b-1].end,x.start),u,d)},1);return u.start<s[0].start&&g.unshift(d.makeByStartEnd(u.start,s[0].start)),u.end>h&&g.push(d.makeByStartEnd(h,u.end)),g},p.reflectionOfPointOnInterval=function(s,u,d){return(s-u.start)/u.length*d.length+d.start},p}();l.IntervalAlgorithms=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(59),I=function(s,u){this.minElement=s,this.maxElement=u};l.MinMax=I;var C=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return c.__extends(u,s),Object.defineProperty(u.prototype,"length",{get:function(){return this.maxElement-this.minElement},enumerable:!0,configurable:!0}),u}(I);l.MinMaxNumber=C,l.ExtendedMin=function(s,u){this.minElement=s,this.minValue=u},l.ExtendedMax=function(s,u){this.maxElement=s,this.maxValue=u};var p=function(s){function u(d,h,g,x){var b=s.call(this,d,g)||this;return b.minValue=h,b.maxValue=x,b}return c.__extends(u,s),u}(I);l.ExtendedMinMax=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=function(){function C(){}return C.number=function(f,a){return f-a},C.string=function(f,a){return f===a?0:f>a?1:-1},C.stringIgnoreCase=function(f,a){return(f=f.toLowerCase())===(a=a.toLowerCase())?0:f>a?1:-1},C}();l.Comparers=c;var I=function(){function C(){}return C.simpleType=function(f,a){return f===a},C.object=function(f,a){return f&&a&&(f===a||f.equals(a))},C}();l.Equals=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(59),I=function(C){function f(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(f,C),f.prototype.normalizeLength=function(){return this.length<0&&(this.length=0),this},f}(o(168).ConstInterval);l.MutableInterval=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=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}();l.ConstInterval=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(170),I=function(){function C(f){this.intervals=[],this.template=f}return C.prototype.add=function(f){this.curr&&this.curr.end===f?this.curr.length++:(this.curr=this.template.makeByStartLength(f,1),this.intervals.push(this.curr))},C.prototype.getIntervals=function(){return new c.SparseIntervals(this.intervals)},C}();l.SparseIntervalsCollector=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(107),I=o(171),C=function(){function f(a){void 0===a&&(a=[]),this.list=a,this._count=0,this._numIntervals=0;for(var p=0,s=a;p<s.length;p++)this._count+=s[p].length,this._numIntervals++}return Object.defineProperty(f.prototype,"count",{get:function(){return this._count},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"numIntervals",{get:function(){return this._numIntervals},enumerable:!0,configurable:!0}),f.prototype.getInterval=function(a){return this.list[a]},f.prototype.getNativeIterator=function(){return new c.SparseIntervalsIterator(this)},f.prototype.getObjectsIterator=function(a){return new I.SparseObjectsIterator(this,a)},f}();l.SparseIntervals=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(59),I=function(C){function f(a,p){var s=C.call(this,a)||this;return s.objects=p,s}return c.__extends(f,C),f.prototype.initObject=function(){this.obj=this.objects[this.index]},f}(o(107).SparseIntervalsIterator);l.SparseObjectsIterator=I},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.TextFloodFilterPrimitive=l.TextFilterPrimitive=void 0;var C=o(15),f=o(108),a=o(62),p=o(22),s=function(d){function h(g,x,b,y,E){void 0===x&&(x="-0.05"),void 0===b&&(b="-0.05"),void 0===y&&(y="1.1"),void 0===E&&(E="1.1");var S=d.call(this,g,x,b,y,E)||this;return S.id=g,S.x=x,S.y=b,S.width=y,S.height=E,S}return I(h,d),h.prototype.createChildElements=function(g){var x=document.createElementNS(C.svgNS,"feFlood");g.appendChild(x);var b=document.createElementNS(C.svgNS,"feComposite");b.setAttribute("in","SourceGraphic"),b.setAttribute("operator","atop"),g.appendChild(b)},h}(f.FilterPrimitive);l.TextFilterPrimitive=s;var u=function(d){function h(g,x,b,y,E,S){void 0===b&&(b="-0.05"),void 0===y&&(y="-0.05"),void 0===E&&(E="1.1"),void 0===S&&(S="1.1");var O=d.call(this,g,b,y,E,S)||this;return O.id=g,O.floodColor=x,O.x=b,O.y=y,O.width=E,O.height=S,O}return I(h,d),h.prototype.applyChildrenProperties=function(g){for(var x=void 0,b=0;x=g.childNodes[b];b++)if(x.nodeName&&"FEFLOOD"===x.nodeName.toUpperCase()){this.prepareFEFloodNode(x);break}},h.prototype.prepareFEFloodNode=function(g){var x=p.ColorUtils.colorToHash(this.floodColor);g.setAttribute("flood-color",x),g.setAttribute("class","text-filter-flood"),g.style.setProperty("flood-color",this.floodColor!==a.DiagramModel.defaultPageColor?x:"")},h}(s);l.TextFloodFilterPrimitive=u},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=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 f=document.createElement("TEXTAREA");return f.innerHTML=C,f.value},I}();l.EncodeUtils=c},function(he,l,o){"use strict";o(175).polyfill()},function(he,l,o){"use strict";function c(I,C){if(null==I)throw new TypeError("Cannot convert first argument to object");for(var f=Object(I),a=1;a<arguments.length;a++){var p=arguments[a];if(null!=p)for(var s=Object.keys(Object(p)),u=0,d=s.length;u<d;u++){var h=s[u],g=Object.getOwnPropertyDescriptor(p,h);void 0!==g&&g.enumerable&&(f[h]=p[h])}}return f}he.exports={assign:c,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:c})}}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(18),I=o(50),C=function(){function f(){}return f.onEventAttachingToDocument=function(a,p){return!c.Browser.MacOSMobilePlatform||!f.isTouchEventName(a)||(f.documentTouchHandlers[a]||(f.documentTouchHandlers[a]=[]),f.documentTouchHandlers[a].push(p),f.documentEventAttachingAllowed)},f.isTouchEventName=function(a){return c.Browser.WebKitTouchUI&&(a.indexOf("touch")>-1||a.indexOf("gesture")>-1)},f.isTouchEvent=function(a){return c.Browser.WebKitTouchUI&&I.isDefined(a.changedTouches)},f.getEventX=function(a){return c.Browser.IE?a.pageX:a.changedTouches[0].pageX},f.getEventY=function(a){return c.Browser.IE?a.pageY:a.changedTouches[0].pageY},f.touchMouseDownEventName=c.Browser.WebKitTouchUI?"touchstart":c.Browser.Edge&&c.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",f.touchMouseUpEventName=c.Browser.WebKitTouchUI?"touchend":c.Browser.Edge&&c.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",f.touchMouseMoveEventName=c.Browser.WebKitTouchUI?"touchmove":c.Browser.Edge&&c.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",f.msTouchDraggableClassName="dxMSTouchDraggable",f.documentTouchHandlers={},f.documentEventAttachingAllowed=!0,f}();l.TouchUtils=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var c=o(18),I=o(83),C=o(50),f=function(){function a(){}return a.loadJavascriptFile=function(p,s){var u,d=document.getElementsByTagName("head")[0];if(!d){d=document.createElement("head");var h=document.getElementsByTagName("body")[0];null===(u=h.parentNode)||void 0===u||u.insertBefore(d,h)}var g=document.createElement("script");return g.onload=s,g.src=p,d.appendChild(g),{htmlScriptElement:g}},a.startDownloadFileLocal=function(p,s){if(p instanceof ArrayBuffer&&(p=I.Base64Utils.fromArrayBuffer(p)),C.isString(p)&&(p=I.Base64Utils.getFileFromBase64(p)),window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(p,s);else{var u=document.createElement("a"),d=URL.createObjectURL(p);u.href=d,u.download=s,document.body.appendChild(u),u.click(),setTimeout(function(){document.body.removeChild(u),window.URL.revokeObjectURL(d)},0)}},a.createFile=function(p,s,u){var d;if(c.Browser.IE||c.Browser.Edge&&c.Browser.MajorVersion<86){var h=new Blob(p,u);return h.lastModifiedDate=null!==(d=u?.lastModified)&&void 0!==d?d:Date.now(),h.name=s,h}return new File(p,s,u)},a.isFile=function(p){return c.Browser.IE||c.Browser.Edge&&c.Browser.MajorVersion<86?p instanceof File||p instanceof Blob&&C.isDefined(p.name):p instanceof File},a}();l.FileUtils=f},function(he,l,o){"use strict";var c,I,C,f,p;Object.defineProperty(l,"__esModule",{value:!0}),l.OpenXmlMimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document",l.RtfMimeType="application/rtf",l.PlainTextMimeType="text/plain",l.DocmMimeType="application/vnd.ms-word.document.macroEnabled.12",l.ImagePngMimeType="image/png",l.ImageGifMimeType="image/gif",l.ImageJpegMimeType="image/jpeg",l.ImagePjpegMimeType="image/pjpeg",l.ImageSvgMimeType="image/svg+xml",l.ImageTiffMimeType="image/tiff",l.ImageIcoMimeType="image/vnd.microsoft.icon",l.ImageWbmpMimeType="image/vnd.wap.wbmp",l.ImageWebpMimeType="image/webp",(p=f=l.DxMimeType||(l.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 a=function(){function p(){}return p.stringTypeToExtension=function(s){var u=p.stringTypeToTypeMap[s];return void 0===u?"":p.typeToExtensionMap[u]},p.typeToExtension=function(s){return p.typeToExtensionMap[s]??""},p.extensionToType=function(s){return"."!==(s=s.toLowerCase())[0]&&(s+="."),p.extensionToTypeMap[s]??f.Unknown},p.typeToStringType=function(s){return p.typeToStringTypeMap[s]??""},p.stringTypeToType=function(s){var u=p.stringTypeToTypeMap[s];return void 0===u?f.Unknown:u},p.stringTypeToTypeMap=((c={})[l.OpenXmlMimeType]=f.OpenXml,c[l.RtfMimeType]=f.Rtf,c[l.PlainTextMimeType]=f.PlainText,c[l.DocmMimeType]=f.Docm,c[l.ImagePngMimeType]=f.Png,c[l.ImageGifMimeType]=f.Gif,c[l.ImageJpegMimeType]=f.Jpeg,c[l.ImagePjpegMimeType]=f.Pjpeg,c[l.ImageSvgMimeType]=f.Svg,c[l.ImageTiffMimeType]=f.Tiff,c[l.ImageIcoMimeType]=f.Ico,c[l.ImageWbmpMimeType]=f.Wbmp,c[l.ImageWebpMimeType]=f.Webp,c),p.typeToStringTypeMap=((I={})[f.Unknown]=void 0,I[f.OpenXml]=l.OpenXmlMimeType,I[f.Rtf]=l.RtfMimeType,I[f.PlainText]=l.PlainTextMimeType,I[f.Docm]=l.DocmMimeType,I[f.Png]=l.ImagePngMimeType,I[f.Gif]=l.ImageGifMimeType,I[f.Jpeg]=l.ImageJpegMimeType,I[f.Pjpeg]=l.ImagePjpegMimeType,I[f.Svg]=l.ImageSvgMimeType,I[f.Tiff]=l.ImageTiffMimeType,I[f.Ico]=l.ImageIcoMimeType,I[f.Wbmp]=l.ImageWbmpMimeType,I[f.Webp]=l.ImageWebpMimeType,I),p.typeToExtensionMap=((C={})[f.Unknown]=void 0,C[f.OpenXml]=".docx",C[f.Rtf]=".rtf",C[f.PlainText]=".txt",C[f.Docm]=".docm",C[f.Png]=".png",C[f.Gif]=".gif",C[f.Jpeg]=".jpeg",C[f.Pjpeg]=".pjpeg",C[f.Svg]=".svg",C[f.Tiff]=".tiff",C[f.Ico]=".ico",C[f.Wbmp]=".wbmp",C[f.Webp]=".webp",C),p.extensionToTypeMap={".docx":f.OpenXml,".rtf":f.Rtf,".txt":f.PlainText,".docm":f.Docm,".png":f.Png,".gif":f.Gif,".jpeg":f.Jpeg,".pjpeg":f.Pjpeg,".svg":f.Svg,".tiff":f.Tiff,".ico":f.Ico,".wbmp":f.Wbmp,".webp":f.Webp},p}();l.MimeTypeUtils=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorPointsCalculator=void 0;var C=o(111),f=o(29),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.getPoints=function(){return this.connector.points.map(function(u,d){return new f.ConnectorRenderPoint(u.x,u.y,d)})},s}(C.ConnectorPointsCalculatorBase);l.ConnectorPointsCalculator=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorPointsOrthogonalCalculator=void 0;var C=o(13),f=o(9),a=o(111),p=o(181),s=o(182),u=o(183),d=o(184),h=o(185),g=o(29),x=o(4),b=function(y){function E(S){var O=y.call(this,S)||this;return O.sideCalculators={},O.sideCalculators[f.ConnectionPointSide.Undefined]=new p.ConnectorPointsOrthogonalUndefinedSideCalculator(O),O.sideCalculators[f.ConnectionPointSide.South]=new s.ConnectorPointsOrthogonalSouthSideCalculator(O),O.sideCalculators[f.ConnectionPointSide.North]=new u.ConnectorPointsOrthogonalNorthSideCalculator(O),O.sideCalculators[f.ConnectionPointSide.East]=new d.ConnectorPointsOrthogonalEastSideCalculator(O),O.sideCalculators[f.ConnectionPointSide.West]=new h.ConnectorPointsOrthogonalWestSideCalculator(O),O}return I(E,y),Object.defineProperty(E.prototype,"beginRect",{get:function(){return this.connector.beginItem?this.connector.beginItem.rectangle:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"endRect",{get:function(){return this.connector.endItem?this.connector.endItem.rectangle:void 0},enumerable:!1,configurable:!0}),E.prototype.getPoints=function(){var S=this.connector.points.map(function(Y,J){return new g.ConnectorRenderPoint(Y.x,Y.y,J)});x.ModelUtils.removeUnnecessaryRenderPoints(S);var O=0,w=S.length-1,T=this.getPointSide(S,0),k=this.getPointSide(S,1),R=this.getPointSide(S,S.length-1),P=this.getPointSide(S,S.length-1-1),B=this.getSideCalculator(T),W=this.getSideCalculator(R),V=B.getCorrectOriginPoint(S[O],this.beginRect),U=S[O+1];if(2===S.length&&B.isOnSidePoint(V,U)&&B.isDirectConnectionAllowed(k,V,U))B.getDirectConnectionPoints(V,U).forEach(function(Y){S.splice(O+1,0,Y),O++,w++});else{var K=B.getBeginOffsetPoints(k,S[O],S[O+1],this.beginRect);K.forEach(function(Y){S.splice(O+1,0,Y)}),O+=K.length,W.getEndOffsetPoints(P,S[w+=K.length],S[w-1],this.endRect).forEach(function(Y,J){S.splice(w+J,0,Y)}),this.addMiddlePoints(S,O,w)}return x.ModelUtils.removeUnnecessaryRenderPoints(S),S},E.prototype.getSideCalculator=function(S){return this.sideCalculators[S]},E.prototype.getPointSide=function(S,O){if(0===O&&this.connector.beginItem){var w=this.connector.beginConnectionPointIndex;return this.connector.beginItem.getConnectionPointSideByIndex(w,S[1])}return O===S.length-1&&this.connector.endItem?this.connector.endItem.getConnectionPointSideByIndex(w=this.connector.endConnectionPointIndex,S[S.length-2]):f.ConnectionPointSide.Undefined},E.prototype.addMiddlePoints=function(S,O,w){for(var T=O;T<w;T++){var k=T+1,R=this.getMiddlePoint(S[T],S[T-1],T-1==0,S[k],S[k+1],k+1===S.length-1);void 0!==R&&(S.splice(T+1,0,R),T++,w++)}},E.prototype.getMiddlePoints=function(S,O){return S.x===O.x||S.y===O.y?[]:[new g.ConnectorRenderPoint(S.x,O.y),new g.ConnectorRenderPoint(O.x,S.y)]},E.prototype.getMiddlePoint=function(S,O,w,T,k,R){var P,B=this,W=this.getMiddlePoints(S,T);return W.forEach(function(N){var V=B.createPointsRect(S,N),U=B.createPointsRect(N,T),K=B.connector.beginItem?B.connector.beginItem.rectangle:void 0,Y=B.connector.endItem?B.connector.endItem.rectangle:void 0;K&&(C.Rectangle.areIntersected(K,V)||C.Rectangle.areIntersected(K,U))||Y&&(C.Rectangle.areIntersected(Y,V)||C.Rectangle.areIntersected(Y,U))||B.isReturnPoint(N,S,O)&&!B.isIntermediatePoints(S,O)||B.isReturnPoint(N,T,k)&&!B.isIntermediatePoints(T,k)||(void 0===P||B.isPriorMiddlePoint(N,S,O,T,k))&&(P=N)}),void 0===P&&W.length>0&&(P=W[0]),P},E.prototype.createPointsRect=function(S,O){var w=C.Rectangle.fromPoints(S,O);return w.width>0&&(w=w.clone().inflate(-1,0)),w.height>0&&(w=w.clone().inflate(0,-1)),w},E.prototype.isPriorMiddlePoint=function(S,O,w,T,k){return!(!w||S.x!==w.x&&S.y!==w.y)||!(!k||S.x!==k.x&&S.y!==k.y)},E.prototype.isReturnPoint=function(S,O,w){return void 0!==O&&void 0!==w&&(S.x===w.x&&(O.y<S.y&&S.y<w.y||O.y>S.y&&S.y>w.y)||S.y===w.y&&(O.x<S.x&&S.x<w.x||O.x>S.x&&S.x>w.x))},E.prototype.isIntermediatePoints=function(S,O){return 0<S.pointIndex&&S.pointIndex<this.connector.points.length-1&&0<O.pointIndex&&O.pointIndex<this.connector.points.length-1},E}(a.ConnectorPointsCalculatorBase);l.ConnectorPointsOrthogonalCalculator=b},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorPointsOrthogonalUndefinedSideCalculator=void 0;var C=o(52),f=o(29),a=function(p){function s(u){return p.call(this,u)||this}return I(s,p),s.prototype.getCorrectOriginPoint=function(u,d){return u},s.prototype.getSameShapeOffsetPoints=function(u,d,h,g){return[]},s.prototype.getOverlappedPointsOffsetPoints=function(u,d,h,g){return[]},s.prototype.getBeginOverlappedShapeOffsetPoints=function(u,d,h,g){return[]},s.prototype.getEndOverlappedShapeOffsetPoints=function(u,d,h,g){return[]},s.prototype.getBeginOnSideOffsetPoints=function(u,d,h,g){return[]},s.prototype.getEndOnSideOffsetPoints=function(u,d,h,g){return[]},s.prototype.getBeginOffSideOffsetPoints=function(u,d,h,g){return[]},s.prototype.getEndOffSideOffsetPoints=function(u,d,h,g){return[]},s.prototype.isOnSidePoint=function(u,d){return!0},s.prototype.isDirectConnectionAllowed=function(u,d,h){var g=this.getSideCalculator(d,h);return void 0===g||g.isDirectConnectionAllowed(u,d,h)},s.prototype.getDirectConnectionPoints=function(u,d){var h=Math.abs(d.x-u.x),g=Math.abs(d.y-u.y);if(h>g){var x=Math.min(u.x,d.x)+h/2;return[new f.ConnectorRenderPoint(x,u.y),new f.ConnectorRenderPoint(x,d.y)]}var b=Math.min(u.y,d.y)+g/2;return[new f.ConnectorRenderPoint(u.x,b),new f.ConnectorRenderPoint(d.x,b)]},s}(C.ConnectorPointsOrthogonalSideCalculatorBase);l.ConnectorPointsOrthogonalUndefinedSideCalculator=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorPointsOrthogonalSouthSideCalculator=void 0;var C=o(9),f=o(52),a=o(29),p=function(s){function u(d){return s.call(this,d)||this}return I(u,s),u.prototype.getCorrectOriginPoint=function(d,h){return d.y<h.bottom&&(d=d.clone().offset(0,h.bottom-d.y)),d},u.prototype.getSameShapeOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.East:case C.ConnectionPointSide.West:case C.ConnectionPointSide.South:return[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:return this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset())}},u.prototype.getOverlappedPointsOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.South:return[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:return[h.clone().offset(0,-this.getMinOffset())]}return[]},u.prototype.getBeginOverlappedShapeOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.East:return h.y<g.y?h.x>g.x?[]:[h.clone().offset(0,this.getMinOffset())]:h.y>this.endRect.bottom?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!1):[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.West:return h.y<g.y?h.x<g.x?[]:[h.clone().offset(0,this.getMinOffset())]:h.y>this.endRect.bottom?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!0):[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.South:return[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:return this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),h.x<g.x)}},u.prototype.getEndOverlappedShapeOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.East:return g.y<h.y?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!1):h.x<g.x?[h.clone().offset(0,this.getMinOffset())]:[];case C.ConnectionPointSide.West:return g.y<h.y?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!0):h.x>g.x?[h.clone().offset(0,this.getMinOffset())]:[];case C.ConnectionPointSide.South:return[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:var b=this.getMinOffset();return this.beginRect.bottom>h.y&&(b+=this.beginRect.bottom-h.y),[h.clone().offset(0,b)]}},u.prototype.getBeginOnSideOffsetPoints=function(d,h,g,x){return[h.clone().offset(0,this.getScaleableOffsetY(h,g,!1))]},u.prototype.getEndOnSideOffsetPoints=function(d,h,g,x){return[h.clone().offset(0,this.getScaleableOffsetY(h,g,!0))]},u.prototype.getBeginOffSideOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.East:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(h,g,x,!1,!1);break;case C.ConnectionPointSide.West:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(h,g,x,!1,!0);break;case C.ConnectionPointSide.South:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(h,g,x,!1);break;case C.ConnectionPointSide.Undefined:case C.ConnectionPointSide.North:return this.getScaleableAsideOffsetPoints(h,g,x,!1)}return[h.clone().offset(0,this.getScaleableOffsetY(h,g,!1))]},u.prototype.getEndOffSideOffsetPoints=function(d,h,g,x){return d===C.ConnectionPointSide.Undefined?this.getScaleableAsideOffsetPoints(h,g,x,!0):this.isBeginEndOverlappedX()?this.getScaleableAsideOffsetPoints(h,g,x,!0,this.beginRect.center.x>this.endRect.center.x):[h.clone().offset(0,this.getScaleableOffsetY(h,g,!0))]},u.prototype.getAsideOffsetPoints=function(d,h,g,x,b,y){var E=[];return void 0!==g&&(void 0===y&&(y=h.x<d.x),E.push(y?d.clone().offset(-(d.x-g.x+b),x):d.clone().offset(g.right-d.x+b,x))),E.push(d.clone().offset(0,x)),E},u.prototype.getScaleableAsideOffsetPoints=function(d,h,g,x,b){var y=this.getScaleableOffsetY(d,h,x),E=this.getScaleableOffsetX(d,h,x);return this.getAsideOffsetPoints(d,h,g,y,E,b)},u.prototype.getScaleableOffsetX=function(d,h,g){if(this.beginRect&&this.endRect&&!g&&!this.isBeginEndOverlappedX()){var x;if((x=h.x<d.x?this.beginRect.x-this.endRect.right:this.endRect.x-this.beginRect.right)<2*this.getMinOffset())return x/2}return this.getMinOffset()},u.prototype.getScaleableOffsetY=function(d,h,g){if(this.beginRect&&this.endRect){var x=g?this.beginRect.y-d.y:this.endRect.y-d.y;if(x>0&&x<2*this.getMinOffset())return x/2}return this.getMinOffset()},u.prototype.isOnSidePoint=function(d,h){return h.y>d.y},u.prototype.isDirectConnectionAllowed=function(d,h,g){return d===C.ConnectionPointSide.North||d===C.ConnectionPointSide.Undefined},u.prototype.getDirectConnectionPoints=function(d,h){var g=d.y+(h.y-d.y)/2;return[new a.ConnectorRenderPoint(d.x,g),new a.ConnectorRenderPoint(h.x,g)]},u}(f.ConnectorPointsOrthogonalSideCalculatorBase);l.ConnectorPointsOrthogonalSouthSideCalculator=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorPointsOrthogonalNorthSideCalculator=void 0;var C=o(9),f=o(52),a=o(29),p=function(s){function u(d){return s.call(this,d)||this}return I(u,s),u.prototype.getCorrectOriginPoint=function(d,h){return d.y>h.y&&(d=d.clone().offset(0,h.y-d.y)),d},u.prototype.getSameShapeOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.East:case C.ConnectionPointSide.West:case C.ConnectionPointSide.North:return[h.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.South:return this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset())}},u.prototype.getOverlappedPointsOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.South:return[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:return[h.clone().offset(0,-this.getMinOffset())]}return[]},u.prototype.getBeginOverlappedShapeOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.East:return h.y>g.y?h.x>g.x?[]:[h.clone().offset(0,-this.getMinOffset())]:h.y<this.endRect.y?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!1):[h.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.West:return h.y>g.y?h.x<g.x?[]:[h.clone().offset(0,-this.getMinOffset())]:h.y<this.endRect.y?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!0):[h.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.North:return[h.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.South:return this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),h.x<g.x)}},u.prototype.getEndOverlappedShapeOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.East:return g.y>h.y?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!1):h.x<g.x?[h.clone().offset(0,-this.getMinOffset())]:[];case C.ConnectionPointSide.West:return g.y>h.y?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!0):h.x>g.x?[h.clone().offset(0,-this.getMinOffset())]:[];case C.ConnectionPointSide.North:return[h.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.South:var b=-this.getMinOffset();return this.beginRect.y<h.y&&(b-=h.y-this.beginRect.y),[h.clone().offset(0,b)]}},u.prototype.getBeginOnSideOffsetPoints=function(d,h,g,x){return[h.clone().offset(0,-this.getScaleableOffsetY(h,g,!1))]},u.prototype.getEndOnSideOffsetPoints=function(d,h,g,x){return[h.clone().offset(0,-this.getScaleableOffsetY(h,g,!0))]},u.prototype.getBeginOffSideOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.East:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(h,g,x,!1,!1);break;case C.ConnectionPointSide.West:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(h,g,x,!1,!0);break;case C.ConnectionPointSide.North:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(h,g,x,!1);break;case C.ConnectionPointSide.Undefined:case C.ConnectionPointSide.South:return this.getScaleableAsideOffsetPoints(h,g,x,!1)}return[h.clone().offset(0,-this.getScaleableOffsetY(h,g,!1))]},u.prototype.getEndOffSideOffsetPoints=function(d,h,g,x){return d===C.ConnectionPointSide.Undefined?this.getScaleableAsideOffsetPoints(h,g,x,!0):this.isBeginEndOverlappedX()?this.getScaleableAsideOffsetPoints(h,g,x,!0,this.beginRect.center.x>this.endRect.center.x):[h.clone().offset(0,-this.getScaleableOffsetY(h,g,!0))]},u.prototype.getAsideOffsetPoints=function(d,h,g,x,b,y){var E=[];return void 0!==g&&(void 0===y&&(y=h.x<d.x),E.push(y?d.clone().offset(-(d.x-g.x+b),-x):d.clone().offset(g.right-d.x+b,-x))),E.push(d.clone().offset(0,-x)),E},u.prototype.getScaleableAsideOffsetPoints=function(d,h,g,x,b){var y=this.getScaleableOffsetY(d,h,x),E=this.getScaleableOffsetX(d,h,x);return this.getAsideOffsetPoints(d,h,g,y,E,b)},u.prototype.getScaleableOffsetX=function(d,h,g){if(this.beginRect&&this.endRect&&!g&&!this.isBeginEndOverlappedX()){var x;if((x=h.x<d.x?this.beginRect.x-this.endRect.right:this.endRect.x-this.beginRect.right)<2*this.getMinOffset())return x/2}return this.getMinOffset()},u.prototype.getScaleableOffsetY=function(d,h,g){if(this.beginRect&&this.endRect){var x=g?d.y-this.beginRect.bottom:d.y-this.endRect.bottom;if(x>0&&x<2*this.getMinOffset())return x/2}return this.getMinOffset()},u.prototype.isOnSidePoint=function(d,h){return h.y<d.y},u.prototype.isDirectConnectionAllowed=function(d,h,g){return d===C.ConnectionPointSide.South||d===C.ConnectionPointSide.Undefined},u.prototype.getDirectConnectionPoints=function(d,h){var g=h.y+(d.y-h.y)/2;return[new a.ConnectorRenderPoint(d.x,g),new a.ConnectorRenderPoint(h.x,g)]},u}(f.ConnectorPointsOrthogonalSideCalculatorBase);l.ConnectorPointsOrthogonalNorthSideCalculator=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorPointsOrthogonalEastSideCalculator=void 0;var C=o(9),f=o(52),a=o(29),p=function(s){function u(d){return s.call(this,d)||this}return I(u,s),u.prototype.getCorrectOriginPoint=function(d,h){return d.x<h.right&&(d=d.clone().offset(h.right-d.x,0)),d},u.prototype.getSameShapeOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.North:case C.ConnectionPointSide.South:case C.ConnectionPointSide.East:return[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:return this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset())}},u.prototype.getOverlappedPointsOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.East:return[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:return[h.clone().offset(-this.getMinOffset(),0)]}return[]},u.prototype.getBeginOverlappedShapeOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.North:return h.x<g.x?h.y<g.y?[]:[h.clone().offset(this.getMinOffset(),0)]:h.x>this.endRect.right?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!0):[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.South:return h.x<g.x?h.y>g.y?[]:[h.clone().offset(this.getMinOffset(),0)]:h.x>this.endRect.right?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!1):[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.East:return[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:return this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),h.y<g.y)}},u.prototype.getEndOverlappedShapeOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.East:return[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:var b=this.getMinOffset();return this.beginRect.right>h.x&&(b+=this.beginRect.right-h.x),[h.clone().offset(b,0)];case C.ConnectionPointSide.North:return g.x<h.x?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!0):h.y>g.y?[h.clone().offset(this.getMinOffset(),0)]:[];case C.ConnectionPointSide.South:return g.x<h.x?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!1):h.y<g.y?[h.clone().offset(this.getMinOffset(),0)]:[]}},u.prototype.getBeginOnSideOffsetPoints=function(d,h,g,x){return[h.clone().offset(this.getScaleableOffsetX(h,g,!1),0)]},u.prototype.getEndOnSideOffsetPoints=function(d,h,g,x){return[h.clone().offset(this.getScaleableOffsetX(h,g,!0),0)]},u.prototype.getBeginOffSideOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.South:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(h,g,x,!1,!1);break;case C.ConnectionPointSide.North:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(h,g,x,!1,!0);break;case C.ConnectionPointSide.East:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(h,g,x,!1);break;case C.ConnectionPointSide.Undefined:case C.ConnectionPointSide.West:return this.getScaleableAsideOffsetPoints(h,g,x,!1)}return[h.clone().offset(this.getScaleableOffsetX(h,g,!1),0)]},u.prototype.getEndOffSideOffsetPoints=function(d,h,g,x){return d===C.ConnectionPointSide.Undefined?this.getScaleableAsideOffsetPoints(h,g,x,!0):this.isBeginEndOverlappedY()?this.getScaleableAsideOffsetPoints(h,g,x,!0,this.beginRect.center.y>this.endRect.center.y):[h.clone().offset(this.getScaleableOffsetX(h,g,!0),0)]},u.prototype.getAsideOffsetPoints=function(d,h,g,x,b,y){var E=[];return void 0!==g&&(void 0===y&&(y=h.y<d.y),E.push(y?d.clone().offset(x,-(d.y-g.y+b)):d.clone().offset(x,g.bottom-d.y+b))),E.push(d.clone().offset(x,0)),E},u.prototype.getScaleableAsideOffsetPoints=function(d,h,g,x,b){var y=this.getScaleableOffsetX(d,h,x),E=this.getScaleableOffsetY(d,h,x);return this.getAsideOffsetPoints(d,h,g,y,E,b)},u.prototype.getScaleableOffsetX=function(d,h,g){if(this.beginRect&&this.endRect){var x=g?this.beginRect.x-d.x:this.endRect.x-d.x;if(x>0&&x<2*this.getMinOffset())return x/2}return this.getMinOffset()},u.prototype.getScaleableOffsetY=function(d,h,g){if(this.beginRect&&this.endRect&&!g&&!this.isBeginEndOverlappedY()){var x;if((x=h.y<d.y?this.beginRect.y-this.endRect.bottom:this.endRect.y-this.beginRect.bottom)<2*this.getMinOffset())return x/2}return this.getMinOffset()},u.prototype.isOnSidePoint=function(d,h){return h.x>d.x},u.prototype.isDirectConnectionAllowed=function(d,h,g){return d===C.ConnectionPointSide.West||d===C.ConnectionPointSide.Undefined},u.prototype.getDirectConnectionPoints=function(d,h){var g=d.x+(h.x-d.x)/2;return[new a.ConnectorRenderPoint(g,d.y),new a.ConnectorRenderPoint(g,h.y)]},u}(f.ConnectorPointsOrthogonalSideCalculatorBase);l.ConnectorPointsOrthogonalEastSideCalculator=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorPointsOrthogonalWestSideCalculator=void 0;var C=o(9),f=o(52),a=o(29),p=function(s){function u(d){return s.call(this,d)||this}return I(u,s),u.prototype.getCorrectOriginPoint=function(d,h){return d.x>h.x&&(d=d.clone().offset(h.x-d.x,0)),d},u.prototype.getSameShapeOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.North:case C.ConnectionPointSide.South:case C.ConnectionPointSide.West:return[h.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.East:return this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset())}},u.prototype.getOverlappedPointsOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.East:return[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:return[h.clone().offset(-this.getMinOffset(),0)]}return[]},u.prototype.getBeginOverlappedShapeOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.North:return h.x>g.x?h.y<g.y?[]:[h.clone().offset(-this.getMinOffset(),0)]:h.x<this.endRect.x?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!0):[h.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.South:return h.x>g.x?h.y>g.y?[]:[h.clone().offset(-this.getMinOffset(),0)]:h.x<this.endRect.x?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!1):[h.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.West:return[h.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.East:return this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),h.y<g.y)}},u.prototype.getEndOverlappedShapeOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.East:var b=-this.getMinOffset();return this.beginRect.x<h.x&&(b-=h.x-this.beginRect.x),[h.clone().offset(b,0)];case C.ConnectionPointSide.West:return[h.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.North:return g.x>h.x?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!0):h.y>g.y?[h.clone().offset(-this.getMinOffset(),0)]:[];case C.ConnectionPointSide.South:return g.x>h.x?this.getAsideOffsetPoints(h,g,x,this.getMinOffset(),this.getMinOffset(),!1):h.y<g.y?[h.clone().offset(-this.getMinOffset(),0)]:[]}},u.prototype.getBeginOnSideOffsetPoints=function(d,h,g,x){return[h.clone().offset(-this.getScaleableOffsetX(h,!1),0)]},u.prototype.getEndOnSideOffsetPoints=function(d,h,g,x){return[h.clone().offset(-this.getScaleableOffsetX(h,!0),0)]},u.prototype.getBeginOffSideOffsetPoints=function(d,h,g,x){switch(d){case C.ConnectionPointSide.South:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(h,g,x,!1,!1);break;case C.ConnectionPointSide.North:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(h,g,x,!1,!0);break;case C.ConnectionPointSide.West:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(h,g,x,!1);break;case C.ConnectionPointSide.Undefined:case C.ConnectionPointSide.East:return this.getScaleableAsideOffsetPoints(h,g,x,!1)}return[h.clone().offset(-this.getScaleableOffsetX(h,!1),0)]},u.prototype.getEndOffSideOffsetPoints=function(d,h,g,x){return d===C.ConnectionPointSide.Undefined?this.getScaleableAsideOffsetPoints(h,g,x,!0):this.isBeginEndOverlappedY()?this.getScaleableAsideOffsetPoints(h,g,x,!0,this.beginRect.center.y>this.endRect.center.y):[h.clone().offset(-this.getScaleableOffsetX(h,!0),0)]},u.prototype.getAsideOffsetPoints=function(d,h,g,x,b,y){var E=[];return void 0!==g&&(void 0===y&&(y=h.y<d.y),E.push(y?d.clone().offset(-x,-(d.y-g.y+b)):d.clone().offset(-x,g.bottom-d.y+b))),E.push(d.clone().offset(-x,0)),E},u.prototype.getScaleableAsideOffsetPoints=function(d,h,g,x,b){var y=this.getScaleableOffsetX(d,x),E=this.getScaleableOffsetY(d,h,x);return this.getAsideOffsetPoints(d,h,g,y,E,b)},u.prototype.getScaleableOffsetX=function(d,h){if(this.beginRect&&this.endRect){var g=h?d.x-this.beginRect.right:d.x-this.endRect.right;if(g>0&&g<2*this.getMinOffset())return g/2}return this.getMinOffset()},u.prototype.getScaleableOffsetY=function(d,h,g){if(this.beginRect&&this.endRect&&!g&&!this.isBeginEndOverlappedY()){var x;if((x=h.y<d.y?this.beginRect.y-this.endRect.bottom:this.endRect.y-this.beginRect.bottom)<2*this.getMinOffset())return x/2}return this.getMinOffset()},u.prototype.isOnSidePoint=function(d,h){return h.x<d.x},u.prototype.isDirectConnectionAllowed=function(d,h,g){return d===C.ConnectionPointSide.East||d===C.ConnectionPointSide.Undefined},u.prototype.getDirectConnectionPoints=function(d,h){var g=h.x+(d.x-h.x)/2;return[new a.ConnectorRenderPoint(g,d.y),new a.ConnectorRenderPoint(g,h.y)]},u}(f.ConnectorPointsOrthogonalSideCalculatorBase);l.ConnectorPointsOrthogonalWestSideCalculator=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorLineEndingFilledTriangleStrategy=l.ConnectorLineEndingOutlinedTriangleStrategy=l.ConnectorLineEndingArrowStrategy=l.ConnectorLineEndingNoneStrategy=l.ConnectorLineEndingStrategy=void 0;var C=o(3),f=o(5),a=function(){function h(g){this.style=g}return h.prototype.hasCommands=function(){return!0},h.prototype.needCreateSeparatePrimitive=function(){return!1},h.prototype.createPrimitive=function(){return new f.PathPrimitive([],this.getStyle(),this.getCssClass())},h.prototype.createCommands=function(g,x){return[]},h.prototype.getStyle=function(){var g=this.style.clone();return g.resetStrokeDashArray(),g},h.prototype.getCssClass=function(){},h}();l.ConnectorLineEndingStrategy=a;var p=function(h){function g(){return null!==h&&h.apply(this,arguments)||this}return I(g,h),g.prototype.hasCommands=function(){return!1},g}(a);l.ConnectorLineEndingNoneStrategy=p;var s=function(h){function g(){return null!==h&&h.apply(this,arguments)||this}return I(g,h),Object.defineProperty(g.prototype,"arrowHeight",{get:function(){return 6*this.style.strokeWidth},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"arrowWidth",{get:function(){return 2*this.style.strokeWidth},enumerable:!1,configurable:!0}),g.prototype.needCreateSeparatePrimitive=function(){return!this.style.isDefaultStrokeDashArray()},g.prototype.createCommands=function(x,b){var y=this.getArrowPoints(x,b),E=[new f.PathPrimitiveMoveToCommand(y.point1.x,y.point1.y),new f.PathPrimitiveLineToCommand(x.x,x.y),new f.PathPrimitiveLineToCommand(y.point2.x,y.point2.y)];return this.style.isDefaultStrokeDashArray()||(E=E.concat([new f.PathPrimitiveMoveToCommand(x.x,x.y),new f.PathPrimitiveLineToCommand(y.point3.x,y.point3.y)])),E},g.prototype.getArrowPoints=function(x,b){var y,E=this.arrowHeight;return x.x===b.x&&(y=Math.abs(x.y-b.y))<E&&(E=y),x.y===b.y&&(y=Math.abs(x.x-b.x))<E&&(E=y),C.GeometryUtils.getArrowPoints(x,b,E,this.arrowWidth)},g}(a);l.ConnectorLineEndingArrowStrategy=s;var u=function(h){function g(){return null!==h&&h.apply(this,arguments)||this}return I(g,h),g.prototype.needCreateSeparatePrimitive=function(){return!0},g.prototype.createCommands=function(x,b){var y=this.getArrowPoints(x,b);return[new f.PathPrimitiveMoveToCommand(y.point1.x,y.point1.y),new f.PathPrimitiveLineToCommand(x.x,x.y),new f.PathPrimitiveLineToCommand(y.point2.x,y.point2.y),new f.PathPrimitiveClosePathCommand]},g.prototype.getCssClass=function(){return"outlined-line-ending"},g}(s);l.ConnectorLineEndingOutlinedTriangleStrategy=u;var d=function(h){function g(){return null!==h&&h.apply(this,arguments)||this}return I(g,h),g.prototype.getStyle=function(){var x=h.prototype.getStyle.call(this);return x.fill=x.stroke,x},g.prototype.getCssClass=function(){return"filled-line-ending"},g}(u);l.ConnectorLineEndingFilledTriangleStrategy=d},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorTexts=l.ConnectorText=void 0;var c=function(C,f){this.position=C,this.value=f};l.ConnectorText=c;var I=function(){function C(){this.items={}}return C.prototype.get=function(f){return this.items[f]},C.prototype.set=function(f,a){this.items[f]=a},C.prototype.remove=function(f){delete this.items[f]},C.prototype.map=function(f){var a=[];return this.forEach(function(p){return a.push(f(p))}),a},C.prototype.forEach=function(f){for(var a in this.items)Object.prototype.hasOwnProperty.call(this.items,a)&&f(this.items[a])},C.prototype.count=function(){return Object.keys(this.items).length},C.prototype.clone=function(){var f=new C;return this.forEach(function(a){f.set(a.position,new c(a.position,a.value))}),f},C.prototype.toObject=function(){var f={},a=!1;return this.forEach(function(p){f[p.position]=p.value,a=!0}),a?f:null},C.prototype.fromObject=function(f){for(var a in f)if(Object.prototype.hasOwnProperty.call(f,a)){var p=parseFloat(a);isNaN(p)||"string"!=typeof f[a]||this.set(p,new c(p,f[a]))}},C}();l.ConnectorTexts=I},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.AddConnectorPointHistoryItem=void 0;var C=function(f){function a(p,s,u){var d=f.call(this)||this;return d.connectorKey=p,d.pointIndex=s,d.point=u,d}return I(a,f),a.prototype.redo=function(p){var s=this,u=p.model.findConnector(this.connectorKey);this.renderContext=u.tryCreateRenderPointsContext(),p.addDeleteConnectorPoint(u,function(d){d.addPoint(s.pointIndex,s.point),d.onAddPoint(s.pointIndex,s.point)})},a.prototype.undo=function(p){var s=this,u=p.model.findConnector(this.connectorKey);p.addDeleteConnectorPoint(u,function(d){d.deletePoint(s.pointIndex),d.replaceRenderPoints(s.renderContext)})},a}(o(8).HistoryItem);l.AddConnectorPointHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.InsertToContainerHistoryItem=void 0;var C=function(f){function a(p,s){var u=f.call(this)||this;return u.containerKey=s.key,u.itemKey=p.key,u}return I(a,f),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey),u=p.model.findShape(this.containerKey);p.insertToContainer(s,u)},a.prototype.undo=function(p){var s=p.model.findItem(this.itemKey);p.removeFromContainer(s)},a}(o(8).HistoryItem);l.InsertToContainerHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.MoveConnectorRightAnglePointsHistoryItem=l.MoveConnectorPointHistoryItem=void 0;var C=o(8),f=function(p){function s(u,d,h){var g=p.call(this)||this;return g.connectorKey=u,g.pointIndex=d,g.newPoint=h,g}return I(s,p),s.prototype.redo=function(u){var d=this,h=u.model.findConnector(this.connectorKey);this.oldPoint=h.points[this.pointIndex].clone(),this.renderContext=h.tryCreateRenderPointsContext(),u.moveConnectorPoint(h,this.pointIndex,function(g){g.movePoint(d.pointIndex,d.newPoint),g.onMovePoint(d.pointIndex,d.newPoint)})},s.prototype.undo=function(u){var d=this,h=u.model.findConnector(this.connectorKey);u.moveConnectorPoint(h,this.pointIndex,function(g){g.movePoint(d.pointIndex,d.oldPoint),g.replaceRenderPoints(d.renderContext)})},s}(C.HistoryItem);l.MoveConnectorPointHistoryItem=f;var a=function(p){function s(u,d,h,g,x){var b=p.call(this)||this;return b.connectorKey=u,b.beginPointIndex=d,b.newBeginPoint=h,b.lastPointIndex=g,b.newLastPoint=x,b}return I(s,p),s.prototype.redo=function(u){var d=this,h=u.model.findConnector(this.connectorKey);this.oldBeginPoint=h.points[this.beginPointIndex].clone(),this.oldLastPoint=h.points[this.lastPointIndex].clone(),this.renderContext=h.tryCreateRenderPointsContext(),u.changeConnectorPoints(h,function(g){g.movePoint(d.beginPointIndex,d.newBeginPoint),g.movePoint(d.lastPointIndex,d.newLastPoint),g.onMovePoints(d.beginPointIndex,d.newBeginPoint,d.lastPointIndex,d.newLastPoint)})},s.prototype.undo=function(u){var d=this,h=u.model.findConnector(this.connectorKey);u.changeConnectorPoints(h,function(g){g.movePoint(d.beginPointIndex,d.oldBeginPoint),g.movePoint(d.lastPointIndex,d.oldLastPoint),g.replaceRenderPoints(d.renderContext)})},s}(C.HistoryItem);l.MoveConnectorRightAnglePointsHistoryItem=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.MoveShapeHistoryItem=void 0;var C=function(f){function a(p,s){var u=f.call(this)||this;return u.shapeKey=p,u.position=s,u}return I(a,f),a.prototype.redo=function(p){var s=p.model.findShape(this.shapeKey);this.oldPosition=s.position.clone(),p.moveShape(s,this.position)},a.prototype.undo=function(p){var s=p.model.findShape(this.shapeKey);p.moveShape(s,this.oldPosition)},a}(o(8).HistoryItem);l.MoveShapeHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.RemoveFromContainerHistoryItem=void 0;var C=function(f){function a(p){var s=f.call(this)||this;return s.itemKey=p.key,s}return I(a,f),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey);this.containerKey=s.container&&s.container.key,p.removeFromContainer(s)},a.prototype.undo=function(p){var s=p.model.findContainer(this.containerKey),u=p.model.findItem(this.itemKey);p.insertToContainer(u,s)},a}(o(8).HistoryItem);l.RemoveFromContainerHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ModelResizeHistoryItem=void 0;var C=o(8),f=o(87),a=o(2),p=function(s){function u(d){var h=s.call(this)||this;return h.offset=d,h}return I(u,s),u.prototype.redo=function(d){this.oldSize=d.model.size.clone(),this.backOffset=new f.Offsets(-this.offset.left,-this.offset.right,-this.offset.top,-this.offset.bottom);var h=Math.max(this.oldSize.width+this.offset.left+this.offset.right,d.model.pageWidth),g=Math.max(this.oldSize.height+this.offset.top+this.offset.bottom,d.model.pageHeight);d.changeModelSize(new a.Size(h,g),this.offset)},u.prototype.undo=function(d){d.changeModelSize(this.oldSize,this.backOffset)},u}(C.HistoryItem);l.ModelResizeHistoryItem=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.UpdatePositionsOnPageResizeHistoryItem=void 0;var C=o(6),f=o(14),a=function(p){function s(u){var d=p.call(this)||this;return d.offset=u,d}return I(s,p),s.prototype.redo=function(u){var d=this;u.model.iterateItems(function(h){h instanceof f.Shape&&u.moveShape(h,d.applyOffset(h.position,d.offset.x,d.offset.y)),h instanceof C.Connector&&u.changeConnectorPoints(h,function(g){return g.updatePointsOnPageResize(d.offset.x,d.offset.y)})})},s.prototype.undo=function(u){var d=this;u.model.iterateItems(function(h){h instanceof f.Shape&&u.moveShape(h,d.applyOffset(h.position,-d.offset.x,-d.offset.y)),h instanceof C.Connector&&u.changeConnectorPoints(h,function(g){return g.updatePointsOnPageResize(-d.offset.x,-d.offset.y)})})},s.prototype.applyOffset=function(u,d,h){return u.clone().offset(d,h)},s}(o(8).HistoryItem);l.UpdatePositionsOnPageResizeHistoryItem=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GraphInfo=void 0;var c=o(196),I=function(){function C(f,a){this.container=f,this.sourceGraph=a}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(c.LayoutUtils.shapeToLayout)},C.prototype.getLevel=function(){var f=0;return this.container&&(f=this.getContainerLevel(this.container)),f},C.prototype.getContainerLevel=function(f){var a=1,p=f.container;return p&&(a+=this.getContainerLevel(p)),a},C}();l.GraphInfo=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.LayoutUtils=void 0;var c=o(71),I=function(){function C(){}return C.shapeToLayout=function(f){var a=new c.Margin(0),p=f.rectangle;f.attachedConnectors.filter(function(u){return!u.beginItem||!u.endItem}).forEach(function(u){var d=u.rectangle;a.left=Math.max(a.left,p.x-d.x),a.right=Math.max(a.right,d.right-p.right),a.top=Math.max(a.top,p.y-d.y),a.bottom=Math.max(a.bottom,d.bottom-p.bottom)});var s=new c.NodeInfo(f.key,a,f.size.clone());return s.connectionPoints=f.description.getConnectionPoints(),s},C}();l.LayoutUtils=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CommandBase=void 0;var c=function(){function I(C){this.control=C}return I.prototype.execute=function(C){this.isPermissionsRequired&&this.permissionsProvider.lockPermissions();var f=this.getState();if(this.isPermissionsRequired&&this.permissionsProvider.unlockPermissions(),!f.enabled)return!1;this.control.beginUpdate();var a;return a=this.isPermissionsRequired?this.executeWithPermissions(f,C):this.executeCore(f,C),this.control.endUpdate(),a&&this.updateControlState(),a},I.prototype.executeWithPermissions=function(C,f){var a=!1;return this.permissionsProvider.beginStorePermissions(),this.control.history.beginTransaction(),a=this.executeCore(C,f),this.permissionsProvider.isStoredPermissionsGranted()||(this.permissionsProvider.lockPermissions(),this.control.history.undoTransaction(),this.permissionsProvider.unlockPermissions(),a=!1),this.control.history.endTransaction(),this.permissionsProvider.endStorePermissions(),a},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}();l.CommandBase=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.SimpleCommandState=void 0,l.SimpleCommandState=function(I,C,f,a,p){this.visible=!0,this.denyUpdateValue=!1,this.enabled=I,this.value=C,this.items=a,this.visible=p,this.defaultValue=f}},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.UndoCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.executeCore=function(p){return this.control.beginUpdateCanvas(),this.permissionsProvider.lockPermissions(),this.control.history.undo(),this.permissionsProvider.unlockPermissions(),this.control.endUpdateCanvas(),!0},a.prototype.isEnabled=function(){return f.prototype.isEnabled.call(this)&&this.control.history.canUndo()},a}(o(10).SimpleCommandBase);l.UndoCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.RedoCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.executeCore=function(p){return this.control.beginUpdateCanvas(),this.permissionsProvider.lockPermissions(),this.control.history.redo(),this.permissionsProvider.unlockPermissions(),this.control.endUpdateCanvas(),!0},a.prototype.isEnabled=function(){return f.prototype.isEnabled.call(this)&&this.control.history.canRedo()},a}(o(10).SimpleCommandBase);l.RedoCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.ImportCommand=void 0;var C=o(119),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.executeCore=function(s,u){this.permissionsProvider.lockPermissions();var h=new C.Importer(this.control.shapeDescriptionManager,u.data?u.data:u);if(!0===u.keepExistingItems)h.importItemsData(this.control.model),this.control.importItemsData();else{var g=h.import();this.control.importModel(g)}return this.permissionsProvider.unlockPermissions(),!0},p}(o(57).ExportImportCommandBase);l.ImportCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ProcessShapeDescription=void 0;var C=o(19),f=o(1),a=function(p){function s(){return p.call(this,void 0,!0)||this}return I(s,p),Object.defineProperty(s.prototype,"key",{get:function(){return f.ShapeTypes.Process},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),s}(C.RectangleShapeDescription);l.ProcessShapeDescription=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.DecisionShapeDescription=void 0;var C=o(120),f=o(1),a=o(2),p=o(7),s=function(u){function d(){return u.call(this,new a.Size(p.ShapeDefaultDimension,.75*p.ShapeDefaultDimension),!0)||this}return I(d,u),Object.defineProperty(d.prototype,"key",{get:function(){return f.ShapeTypes.Decision},enumerable:!1,configurable:!0}),d}(C.DiamondShapeDescription);l.DecisionShapeDescription=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.ManualInputShapeDescription=void 0;var C=o(19),f=o(1),a=o(5),p=o(9),s=o(7),u=function(d){function h(){return d.call(this,void 0,!0)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return f.ShapeTypes.ManualInput},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(g){var x=g.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(b,y+x.height*h.slopeHeightRatio),new a.PathPrimitiveLineToCommand(E,y),new a.PathPrimitiveLineToCommand(E,S),new a.PathPrimitiveLineToCommand(b,S),new a.PathPrimitiveClosePathCommand],g.style)]},h.prototype.processConnectionPoint=function(g,x){g.getConnectionPointSide(x)===p.ConnectionPointSide.North&&(x.y+=h.slopeHeightRatio/2*g.size.height)},h.prototype.getTextRectangle=function(g){var x=g.size.height*h.slopeHeightRatio;return g.rectangle.clone().moveRectangle(s.ShapeTextPadding,x).resize(2*-s.ShapeTextPadding,-x-s.ShapeTextPadding).nonNegativeSize()},h.slopeHeightRatio=.1,h}(C.RectangleShapeDescription);l.ManualInputShapeDescription=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.DataShapeDescription=void 0;var C=o(19),f=o(1),a=o(5),p=o(9),s=o(7),u=function(d){function h(){return d.call(this,void 0,!0)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return f.ShapeTypes.Data},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(g){var x=g.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.width,T=Math.min(Math.max(0,x.height/Math.tan(h.slopeAngle)),O),R=E-T;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(b+T,y),new a.PathPrimitiveLineToCommand(E,y),new a.PathPrimitiveLineToCommand(R,S),new a.PathPrimitiveLineToCommand(b,S),new a.PathPrimitiveClosePathCommand],g.style)]},h.prototype.processConnectionPoint=function(g,x){var b=g.size.height/Math.tan(h.slopeAngle),y=g.getConnectionPointSide(x);y===p.ConnectionPointSide.East?x.x-=b/2:y===p.ConnectionPointSide.West&&(x.x+=b/2)},h.prototype.getTextRectangle=function(g){var x=Math.min(Math.max(0,g.size.height/Math.tan(h.slopeAngle)),g.size.width);return g.rectangle.clone().moveRectangle(x,s.ShapeTextPadding).resize(2*-x,2*-s.ShapeTextPadding)},h.slopeAngle=81*Math.PI/180,h}(C.RectangleShapeDescription);l.DataShapeDescription=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(g,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(g,x)},function(g,x){function b(){this.constructor=g}c(g,x),g.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(l,"__esModule",{value:!0}),l.TerminatorShapeDescription=void 0;var C=o(19),f=o(1),a=o(5),p=o(2),s=o(7),u=o(13),d=o(3),h=function(g){function x(){return g.call(this,new p.Size(s.ShapeDefaultDimension,.5*s.ShapeDefaultDimension),!0)||this}return I(x,g),Object.defineProperty(x.prototype,"key",{get:function(){return f.ShapeTypes.Terminator},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),x.prototype.createShapePrimitives=function(b){var y=b.rectangle,E=y.x,S=y.y,O=y.right,w=y.bottom,T=y.width,k=y.center.y,R=E+T*x.curveWidthRatio,P=E+T*(1-x.curveWidthRatio);return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(R,S),new a.PathPrimitiveLineToCommand(P,S),new a.PathPrimitiveQuadraticCurveToCommand(O,S,O,k),new a.PathPrimitiveQuadraticCurveToCommand(O,w,P,w),new a.PathPrimitiveLineToCommand(R,w),new a.PathPrimitiveQuadraticCurveToCommand(E,w,E,k),new a.PathPrimitiveQuadraticCurveToCommand(E,S,R,S),new a.PathPrimitiveClosePathCommand],b.style)]},x.prototype.getTextRectangle=function(b){var y=d.GeometryUtils.getMaxRectangleEnscribedInEllipse(b.size);return u.Rectangle.fromGeometry(b.position.clone().offset((b.size.width-y.width)/2,(b.size.height-y.height)/2),y)},x.prototype.getSizeByText=function(b,y){return d.GeometryUtils.getEllipseByEnscribedRectangle(b)},x.curveWidthRatio=.3,x}(C.RectangleShapeDescription);l.TerminatorShapeDescription=h},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.PredefinedProcessShapeDescription=l.PredefinedProcessEdgeParameterName=void 0;var C=o(19),f=o(1),a=o(37),p=o(30),s=o(0),u=o(5);l.PredefinedProcessEdgeParameterName="e";var d=function(h){function g(){return h.call(this,void 0,!0)||this}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return f.ShapeTypes.PredefinedProcess},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x){var b=x.rectangle,E=b.y,S=b.right,O=b.bottom,w=b.x+x.parameters.get(l.PredefinedProcessEdgeParameterName).value,T=S-x.parameters.get(l.PredefinedProcessEdgeParameterName).value;return h.prototype.createShapePrimitives.call(this,x).concat([new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(w,E),new u.PathPrimitiveLineToCommand(w,O),new u.PathPrimitiveMoveToCommand(T,E),new u.PathPrimitiveLineToCommand(T,O)],x.style)])},g.prototype.createParameters=function(x){x.add(new a.ShapeParameter(l.PredefinedProcessEdgeParameterName,.1*this.defaultSize.width))},g.prototype.normalizeParameters=function(x,b){this.changeParameterValue(b,l.PredefinedProcessEdgeParameterName,function(y){return Math.max(g.minEdge,Math.min(.3*x.size.width,y.value))})},g.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,l.PredefinedProcessEdgeParameterName,function(S){return S.value+y}),this.normalizeParameters(x,b)},g.prototype.getParameterPoints=function(x){return[new p.ShapeParameterPoint("c",new s.Point(x.normalizeX(x.position.x+x.parameters.get(l.PredefinedProcessEdgeParameterName).value),x.position.y))]},g.prototype.getTextRectangle=function(x){var b=x.rectangle,y=x.parameters.get(l.PredefinedProcessEdgeParameterName).value;return b.clone().resize(-2*y,0).clone().moveRectangle(y,0)},g.minEdge=72,g}(C.RectangleShapeDescription);l.PredefinedProcessShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.ArrowUpDownShapeDescription=void 0;var C=o(5),f=o(30),a=o(0),p=o(92),s=o(1),u=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return s.ShapeTypes.ArrowUpDown},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(g){var x=g.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,w=x.center.x,T=(x.width-g.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2,k=g.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value,R=g.normalizeX(b+T),P=g.normalizeY(y+k),B=g.normalizeX(E-T),W=g.normalizeY(S-k);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(w,y),new C.PathPrimitiveLineToCommand(E,P),new C.PathPrimitiveLineToCommand(B,P),new C.PathPrimitiveLineToCommand(B,W),new C.PathPrimitiveLineToCommand(E,W),new C.PathPrimitiveLineToCommand(w,S),new C.PathPrimitiveLineToCommand(b,W),new C.PathPrimitiveLineToCommand(R,W),new C.PathPrimitiveLineToCommand(R,P),new C.PathPrimitiveLineToCommand(b,P),new C.PathPrimitiveClosePathCommand],g.style)]},h.prototype.normalizeParameters=function(g,x){this.changeParameterValue(x,p.ArrowVerticalTriangleHeightParameterName,function(b){return Math.max(0,Math.min(g.size.height/2-2*g.strokeWidth,b.value))}),this.changeParameterValue(x,p.ArrowVerticalLineWidthParameterName,function(b){return Math.max(0,Math.min(g.size.width,b.value))})},h.prototype.modifyParameters=function(g,x,b,y){this.changeParameterValue(x,p.ArrowVerticalTriangleHeightParameterName,function(E){return E.value+y}),this.changeParameterValue(x,p.ArrowVerticalLineWidthParameterName,function(E){return E.value-2*b}),this.normalizeParameters(g,x)},h.prototype.getParameterPoints=function(g){return[new f.ShapeParameterPoint("c",new a.Point(g.normalizeX(g.position.x+(g.size.width-g.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2),g.normalizeY(g.position.y+g.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value)))]},h}(p.ArrowVerticalShapeDescription);l.ArrowUpDownShapeDescription=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.ArrowRightShapeDescription=void 0;var C=o(5),f=o(93),a=o(30),p=o(0),s=o(1),u=o(9),d=function(h){function g(){return null!==h&&h.apply(this,arguments)||this}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return s.ShapeTypes.ArrowRight},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,T=b.height,k=b.center.y,R=b.width-x.parameters.get(f.ArrowVerticalTriangleWidthParameterName).value,P=(T-x.parameters.get(f.ArrowVerticalLineHeightParameterName).value)/2,B=x.normalizeX(y+R),W=x.normalizeY(E+P),N=x.normalizeY(O-P);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(y,W),new C.PathPrimitiveLineToCommand(B,W),new C.PathPrimitiveLineToCommand(B,E),new C.PathPrimitiveLineToCommand(S,k),new C.PathPrimitiveLineToCommand(B,O),new C.PathPrimitiveLineToCommand(B,N),new C.PathPrimitiveLineToCommand(y,N),new C.PathPrimitiveClosePathCommand],x.style)]},g.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,f.ArrowVerticalTriangleWidthParameterName,function(S){return S.value-y}),this.changeParameterValue(b,f.ArrowVerticalLineHeightParameterName,function(S){return S.value-2*E}),this.normalizeParameters(x,b)},g.prototype.getParameterPoints=function(x){return[new a.ShapeParameterPoint("c",new p.Point(x.normalizeX(x.position.x+x.size.width-x.parameters.get(f.ArrowVerticalTriangleWidthParameterName).value),x.normalizeY(x.position.y+(x.size.height-x.parameters.get(f.ArrowVerticalLineHeightParameterName).value)/2)))]},g.prototype.processConnectionPoint=function(x,b){var y=x.parameters.get(f.ArrowVerticalTriangleWidthParameterName).value;if(b.x>x.position.x+x.size.width-y){var S=x.size.height/2/y*(b.x-(x.position.x+x.size.width-y)),O=x.getConnectionPointSide(b);O===u.ConnectionPointSide.North?b.y+=S:O===u.ConnectionPointSide.South&&(b.y-=S)}else h.prototype.processConnectionPoint.call(this,x,b)},g}(f.ArrowHorizontalShapeDescription);l.ArrowRightShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.ArrowUpShapeDescription=void 0;var C=o(5),f=o(30),a=o(0),p=o(92),s=o(1),u=o(9),d=function(h){function g(){return null!==h&&h.apply(this,arguments)||this}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return s.ShapeTypes.ArrowUp},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,T=b.center.x,k=(b.width-x.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2,R=x.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value,P=x.normalizeX(y+k),B=x.normalizeY(E+R),W=x.normalizeX(S-k);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(T,E),new C.PathPrimitiveLineToCommand(S,B),new C.PathPrimitiveLineToCommand(W,B),new C.PathPrimitiveLineToCommand(W,O),new C.PathPrimitiveLineToCommand(P,O),new C.PathPrimitiveLineToCommand(P,B),new C.PathPrimitiveLineToCommand(y,B),new C.PathPrimitiveClosePathCommand],x.style)]},g.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,p.ArrowVerticalTriangleHeightParameterName,function(S){return S.value+E}),this.changeParameterValue(b,p.ArrowVerticalLineWidthParameterName,function(S){return S.value-2*y}),this.normalizeParameters(x,b)},g.prototype.getParameterPoints=function(x){return[new f.ShapeParameterPoint("c",new a.Point(x.normalizeX(x.position.x+(x.size.width-x.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2),x.normalizeY(x.position.y+x.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value)))]},g.prototype.processConnectionPoint=function(x,b){var y=x.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value;if(b.y<x.position.y+y){var S=x.size.width/2/y*(x.position.y+y-b.y),O=x.getConnectionPointSide(b);O===u.ConnectionPointSide.East?b.x-=S:O===u.ConnectionPointSide.West&&(b.x+=S)}else h.prototype.processConnectionPoint.call(this,x,b)},g}(p.ArrowVerticalShapeDescription);l.ArrowUpShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.CrossShapeDescription=l.CrossVerticalWidthParameterName=l.CrossHorizontalWidthParameterName=void 0;var C=o(7),f=o(0),a=o(37),p=o(30),s=o(5),u=o(1);l.CrossHorizontalWidthParameterName="chw",l.CrossVerticalWidthParameterName="cvw";var d=function(h){function g(){return null!==h&&h.apply(this,arguments)||this}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return u.ShapeTypes.Cross},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,T=b.height,k=(b.width-x.parameters.get(l.CrossHorizontalWidthParameterName).value)/2,R=(T-x.parameters.get(l.CrossVerticalWidthParameterName).value)/2,P=x.normalizeX(y+k),B=x.normalizeY(E+R),W=x.normalizeX(S-k),N=x.normalizeY(O-R);return[new s.PathPrimitive([new s.PathPrimitiveMoveToCommand(y,B),new s.PathPrimitiveLineToCommand(P,B),new s.PathPrimitiveLineToCommand(P,E),new s.PathPrimitiveLineToCommand(W,E),new s.PathPrimitiveLineToCommand(W,B),new s.PathPrimitiveLineToCommand(S,B),new s.PathPrimitiveLineToCommand(S,N),new s.PathPrimitiveLineToCommand(W,N),new s.PathPrimitiveLineToCommand(W,O),new s.PathPrimitiveLineToCommand(P,O),new s.PathPrimitiveLineToCommand(P,N),new s.PathPrimitiveLineToCommand(y,N),new s.PathPrimitiveClosePathCommand],x.style)]},g.prototype.createParameters=function(x){x.addRange([new a.ShapeParameter(l.CrossHorizontalWidthParameterName,.2*this.defaultSize.width),new a.ShapeParameter(l.CrossVerticalWidthParameterName,.2*this.defaultSize.height)])},g.prototype.normalizeParameters=function(x,b){this.changeParameterValue(b,l.CrossHorizontalWidthParameterName,function(y){return Math.max(0,Math.min(x.size.width,y.value))}),this.changeParameterValue(b,l.CrossVerticalWidthParameterName,function(y){return Math.max(0,Math.min(x.size.height,y.value))})},g.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,l.CrossHorizontalWidthParameterName,function(S){return S.value-2*y}),this.changeParameterValue(b,l.CrossVerticalWidthParameterName,function(S){return S.value-2*E}),this.normalizeParameters(x,b)},g.prototype.getParameterPoints=function(x){return[new p.ShapeParameterPoint("c",new f.Point(x.normalizeX(x.position.x+(x.size.width-x.parameters.get(l.CrossHorizontalWidthParameterName).value)/2),x.normalizeY(x.position.y+(x.size.height-x.parameters.get(l.CrossVerticalWidthParameterName).value)/2)))]},g.prototype.getTextRectangle=function(x){return x.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},g.prototype.getSizeByText=function(x,b){return x.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},g}(C.ShapeDescription);l.CrossShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.HeartShapeDescription=void 0;var C=o(7),f=o(5),a=o(1),p=o(45),s=o(9),u=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return a.ShapeTypes.Heart},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),h.prototype.createConnectionPoints=function(){return[new p.ConnectionPoint(.5,.15,s.ConnectionPointSide.North),new p.ConnectionPoint(1,.25,s.ConnectionPointSide.East),new p.ConnectionPoint(.5,1,s.ConnectionPointSide.South),new p.ConnectionPoint(0,.25,s.ConnectionPointSide.West)]},h.prototype.createShapePrimitives=function(g){var x=g.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.width,w=x.height;return[new f.PathPrimitive([new f.PathPrimitiveMoveToCommand(E-.25*O,y),new f.PathPrimitiveCubicCurveToCommand(E-.15*O,y,E,y+.1*w,E,y+.25*w),new f.PathPrimitiveCubicCurveToCommand(E,y+.3*w,E-.02*O,y+.35*w,E-.05*O,y+.4*w),new f.PathPrimitiveLineToCommand(x.center.x,S),new f.PathPrimitiveLineToCommand(b+.05*O,y+.4*w),new f.PathPrimitiveCubicCurveToCommand(b+.02*O,y+.35*w,b,y+.3*w,b,y+.25*w),new f.PathPrimitiveCubicCurveToCommand(b,y+.1*w,b+.15*O,y,b+.25*O,y),new f.PathPrimitiveCubicCurveToCommand(b+.3*O,y,b+.45*O,y+.03*w,b+.5*O,y+.15*w),new f.PathPrimitiveCubicCurveToCommand(E-.45*O,y+.03*w,E-.3*O,y,E-.25*O,y),new f.PathPrimitiveClosePathCommand],g.style)]},h.prototype.getTextRectangle=function(g){return g.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},h.prototype.getSizeByText=function(g,x){return x.size.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},h}(C.ShapeDescription);l.HeartShapeDescription=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.OctagonShapeDescription=void 0;var C=o(5),f=o(1),a=o(94),p=o(3),s=o(13),u=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return f.ShapeTypes.Octagon},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"angleCount",{get:function(){return 8},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(g){var x=g.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.width,w=x.height,T=Math.PI-this.angle,k=O/(1+2*Math.cos(T)),R=w/(1+2*Math.cos(T)),P=b+(O-k)/2,B=P+k,W=y+(w-R)/2,N=W+R;return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(P,y),new C.PathPrimitiveLineToCommand(B,y),new C.PathPrimitiveLineToCommand(E,W),new C.PathPrimitiveLineToCommand(E,N),new C.PathPrimitiveLineToCommand(B,S),new C.PathPrimitiveLineToCommand(P,S),new C.PathPrimitiveLineToCommand(b,N),new C.PathPrimitiveLineToCommand(b,W),new C.PathPrimitiveClosePathCommand],g.style)]},h.prototype.calculateHeight=function(g){return g},h.prototype.getTextRectangle=function(g){var x=p.GeometryUtils.getMaxRectangleEnscribedInEllipse(g.size);return s.Rectangle.fromGeometry(g.position.clone().offset((g.size.width-x.width)/2,(g.size.height-x.height)/2),x)},h.prototype.getSizeByText=function(g,x){return p.GeometryUtils.getEllipseByEnscribedRectangle(g)},h}(a.PolygonShapeDescription);l.OctagonShapeDescription=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(g,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(g,x)},function(g,x){function b(){this.constructor=g}c(g,x),g.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(l,"__esModule",{value:!0}),l.StarShapeDescription=l.StarConvexParameterName=void 0;var C=o(5),f=o(1),a=o(122),p=o(37),s=o(30),u=o(0),d=o(9);l.StarConvexParameterName="sc";var h=function(g){function x(){return null!==g&&g.apply(this,arguments)||this}return I(x,g),Object.defineProperty(x.prototype,"key",{get:function(){return f.ShapeTypes.Star},enumerable:!1,configurable:!0}),x.prototype.createShapePrimitives=function(b){var y=b.rectangle,E=y.x,S=y.y,O=y.right,w=y.width,T=y.height,k=this.getActualBottom(S,y.bottom,w,T),R=y.center.x,P=S+(k-S)/2,B=T/w,W=Math.PI-this.angle,N=w/2*Math.tan(W/2)*B,V=S+N,U=(T-N)/Math.tan(W)/B,K=E+U,Y=O-U,J=b.parameters.get(l.StarConvexParameterName).value,j=this.getInnerPointDistance(R,R,O,P,S,V);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(R,S),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(R,R,O,J,j),this.getInnerPointPos(P,S,V,J,j)),new C.PathPrimitiveLineToCommand(O,V),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(R,O,Y,J,j),this.getInnerPointPos(P,V,k,J,j)),new C.PathPrimitiveLineToCommand(Y,k),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(R,Y,K,J,j),this.getInnerPointPos(P,k,k,J,j)),new C.PathPrimitiveLineToCommand(K,k),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(R,K,E,J,j),this.getInnerPointPos(P,k,V,J,j)),new C.PathPrimitiveLineToCommand(E,V),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(R,E,R,J,j),this.getInnerPointPos(P,V,S,J,j)),new C.PathPrimitiveClosePathCommand],b.style)]},x.prototype.createParameters=function(b){b.addRange([new p.ShapeParameter(l.StarConvexParameterName,300)])},x.prototype.normalizeParameters=function(b,y){var E=b.rectangle,S=E.y,O=E.right,w=E.width,T=E.height,k=this.getActualBottom(S,E.bottom,w,T),R=E.center.x,P=S+(k-S)/2,B=T/w,W=Math.PI-this.angle,N=S+w/2*Math.tan(W/2)*B,V=this.getInnerPointDistance(R,R,O,P,S,N);this.changeParameterValue(y,l.StarConvexParameterName,function(U){return Math.max(0,Math.min(V,U.value))})},x.prototype.modifyParameters=function(b,y,E,S){var O=Math.sqrt(Math.pow(E,2)+Math.pow(S,2));(E<0||S>0)&&(O=-O),this.changeParameterValue(y,l.StarConvexParameterName,function(w){return w.value+O}),this.normalizeParameters(b,y)},x.prototype.getParameterPoints=function(b){var y=b.rectangle,E=y.y,S=y.right,O=y.width,w=y.height,T=this.getActualBottom(E,y.bottom,O,w),k=y.center.x,R=E+(T-E)/2,P=w/O,B=Math.PI-this.angle,W=E+O/2*Math.tan(B/2)*P,N=b.parameters.get(l.StarConvexParameterName).value,V=this.getInnerPointDistance(k,k,S,R,E,W),U=this.getInnerPointPos(k,k,S,N,V),K=this.getInnerPointPos(R,E,W,N,V);return[new s.ShapeParameterPoint("c",new u.Point(U,K))]},x.prototype.processConnectionPoint=function(b,y){if(g.prototype.processConnectionPoint.call(this,b,y),b.getConnectionPointSide(y)===d.ConnectionPointSide.South){var E=b.rectangle,S=E.y,O=E.right,w=E.width,T=E.height,k=this.getActualBottom(S,E.bottom,w,T),R=E.center.x,P=S+(k-S)/2,B=T/w,W=Math.PI-this.angle,N=S+w/2*Math.tan(W/2)*B,V=b.parameters.get(l.StarConvexParameterName).value,U=this.getInnerPointDistance(R,R,O,P,S,N);y.y=this.getInnerPointPos(P,k,k,V,U)}},x.prototype.getInnerPointDistanceByAxis=function(b,y,E){return Math.min(y,E)+Math.abs(y-E)/2-b},x.prototype.getInnerPointPos=function(b,y,E,S,O){var w=Math.min(1,S/O);return b+this.getInnerPointDistanceByAxis(b,y,E)*w},x.prototype.getInnerPointDistance=function(b,y,E,S,O,w){var T=this.getInnerPointDistanceByAxis(b,y,E),k=this.getInnerPointDistanceByAxis(S,O,w);return Math.sqrt(Math.pow(T,2)+Math.pow(k,2))},x.prototype.getActualBottom=function(b,y,E,S){var O=b+g.prototype.calculateHeight.call(this,E)*S/E;return O<y?O:y},x.prototype.calculateHeight=function(b){return b},x}(a.PentagonShapeDescription);l.StarShapeDescription=h},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.ArrowDownShapeDescription=void 0;var C=o(5),f=o(30),a=o(0),p=o(92),s=o(1),u=o(9),d=function(h){function g(){return null!==h&&h.apply(this,arguments)||this}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return s.ShapeTypes.ArrowDown},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,T=b.height,k=b.center.x,R=(b.width-x.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2,P=T-x.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value,B=x.normalizeX(y+R),W=x.normalizeY(E+P),N=x.normalizeX(S-R);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(B,E),new C.PathPrimitiveLineToCommand(N,E),new C.PathPrimitiveLineToCommand(N,W),new C.PathPrimitiveLineToCommand(S,W),new C.PathPrimitiveLineToCommand(k,O),new C.PathPrimitiveLineToCommand(y,W),new C.PathPrimitiveLineToCommand(B,W),new C.PathPrimitiveClosePathCommand],x.style)]},g.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,p.ArrowVerticalTriangleHeightParameterName,function(S){return S.value-E}),this.changeParameterValue(b,p.ArrowVerticalLineWidthParameterName,function(S){return S.value-2*y}),this.normalizeParameters(x,b)},g.prototype.getParameterPoints=function(x){return[new f.ShapeParameterPoint("c",new a.Point(x.normalizeX(x.position.x+(x.size.width-x.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2),x.normalizeY(x.position.y+x.size.height-x.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value)))]},g.prototype.processConnectionPoint=function(x,b){var y=x.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value;if(b.y>x.position.y+x.size.height-y){var S=x.size.width/2/y*(b.y-(x.position.y+x.size.height-y)),O=x.getConnectionPointSide(b);O===u.ConnectionPointSide.East?b.x-=S:O===u.ConnectionPointSide.West&&(b.x+=S)}else h.prototype.processConnectionPoint.call(this,x,b)},g}(p.ArrowVerticalShapeDescription);l.ArrowDownShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.ArrowLeftRightShapeDescription=void 0;var C=o(5),f=o(93),a=o(30),p=o(0),s=o(1),u=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return s.ShapeTypes.ArrowLeftRight},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(g){var x=g.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.height,w=x.center.y,T=g.parameters.get(f.ArrowVerticalTriangleWidthParameterName).value,k=(O-g.parameters.get(f.ArrowVerticalLineHeightParameterName).value)/2,R=g.normalizeX(b+T),P=g.normalizeY(y+k),B=g.normalizeX(E-T),W=g.normalizeY(S-k);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(b,w),new C.PathPrimitiveLineToCommand(R,y),new C.PathPrimitiveLineToCommand(R,P),new C.PathPrimitiveLineToCommand(B,P),new C.PathPrimitiveLineToCommand(B,y),new C.PathPrimitiveLineToCommand(E,w),new C.PathPrimitiveLineToCommand(B,S),new C.PathPrimitiveLineToCommand(B,W),new C.PathPrimitiveLineToCommand(R,W),new C.PathPrimitiveLineToCommand(R,S),new C.PathPrimitiveClosePathCommand],g.style)]},h.prototype.normalizeParameters=function(g,x){this.changeParameterValue(x,f.ArrowVerticalTriangleWidthParameterName,function(b){return Math.max(0,Math.min(g.size.width/2-2*g.strokeWidth,b.value))}),this.changeParameterValue(x,f.ArrowVerticalLineHeightParameterName,function(b){return Math.max(0,Math.min(g.size.height,b.value))})},h.prototype.modifyParameters=function(g,x,b,y){this.changeParameterValue(x,f.ArrowVerticalTriangleWidthParameterName,function(E){return E.value+b}),this.changeParameterValue(x,f.ArrowVerticalLineHeightParameterName,function(E){return E.value-2*y}),this.normalizeParameters(g,x)},h.prototype.getParameterPoints=function(g){return[new a.ShapeParameterPoint("c",new p.Point(g.normalizeX(g.position.x+g.parameters.get(f.ArrowVerticalTriangleWidthParameterName).value),g.normalizeY(g.position.y+(g.size.height-g.parameters.get(f.ArrowVerticalLineHeightParameterName).value)/2)))]},h}(f.ArrowHorizontalShapeDescription);l.ArrowLeftRightShapeDescription=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.ArrowLeftShapeDescription=void 0;var C=o(5),f=o(93),a=o(30),p=o(0),s=o(1),u=o(9),d=function(h){function g(){return null!==h&&h.apply(this,arguments)||this}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return s.ShapeTypes.ArrowLeft},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,w=b.height,T=b.center.y,k=x.parameters.get(f.ArrowVerticalTriangleWidthParameterName).value,R=(w-x.parameters.get(f.ArrowVerticalLineHeightParameterName).value)/2,P=x.normalizeX(y+k),B=x.normalizeY(E+R),W=x.normalizeY(O-R);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(y,T),new C.PathPrimitiveLineToCommand(P,E),new C.PathPrimitiveLineToCommand(P,B),new C.PathPrimitiveLineToCommand(S,B),new C.PathPrimitiveLineToCommand(S,W),new C.PathPrimitiveLineToCommand(P,W),new C.PathPrimitiveLineToCommand(P,O),new C.PathPrimitiveClosePathCommand],x.style)]},g.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,f.ArrowVerticalTriangleWidthParameterName,function(S){return S.value+y}),this.changeParameterValue(b,f.ArrowVerticalLineHeightParameterName,function(S){return S.value-2*E}),this.normalizeParameters(x,b)},g.prototype.getParameterPoints=function(x){return[new a.ShapeParameterPoint("c",new p.Point(x.normalizeX(x.position.x+x.parameters.get(f.ArrowVerticalTriangleWidthParameterName).value),x.normalizeY(x.position.y+(x.size.height-x.parameters.get(f.ArrowVerticalLineHeightParameterName).value)/2)))]},g.prototype.processConnectionPoint=function(x,b){var y=x.parameters.get(f.ArrowVerticalTriangleWidthParameterName).value;if(b.x<x.position.x+y){var S=x.size.height/2/y*(x.position.x+y-b.x),O=x.getConnectionPointSide(b);O===u.ConnectionPointSide.North?b.y+=S:O===u.ConnectionPointSide.South&&(b.y-=S)}else h.prototype.processConnectionPoint.call(this,x,b)},g}(f.ArrowHorizontalShapeDescription);l.ArrowLeftShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(g,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(g,x)},function(g,x){function b(){this.constructor=g}c(g,x),g.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(l,"__esModule",{value:!0}),l.MultipleDocumentsShapeDescription=void 0;var C=o(1),f=o(5),a=o(125),p=o(56),s=o(17),u=o(7),d=o(2),h=function(g){function x(){return null!==g&&g.apply(this,arguments)||this}return I(x,g),Object.defineProperty(x.prototype,"key",{get:function(){return C.ShapeTypes.MultipleDocuments},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),x.prototype.createShapePrimitives=function(b,y){var E=b.rectangle,S=b.rectangle,w=S.height,T=y?x.documentsOffsetRatioForToolbox:x.documentsOffsetRatio,k=Math.ceil(S.width*T),R=Math.ceil(w*T),P=(E=E.clone().inflate(-k,-R).clone().moveRectangle(-k,-R)).clone().moveRectangle(k,R),B=P.clone().moveRectangle(k,R),W=s.RenderUtils.generateSvgElementId("clipRect");return[].concat(this.createDocumentPrimitives(E,b.style,W+"1",P)).concat(this.createDocumentPrimitives(P,b.style,W+"2",B)).concat(this.createDocumentPrimitives(B,b.style))},x.prototype.createDocumentPrimitives=function(b,y,E,S){var O=b.x,w=b.y,T=b.right,k=b.bottom,R=b.width,B=b.center.x,W=b.height*a.DocumentShapeDescription.curveOffsetRatio,N=[];return N=N.concat([new f.PathPrimitive([new f.PathPrimitiveMoveToCommand(O,w),new f.PathPrimitiveLineToCommand(T,w),new f.PathPrimitiveLineToCommand(T,k),new f.PathPrimitiveQuadraticCurveToCommand(T-.25*R,k-2*W,B,k-W),new f.PathPrimitiveQuadraticCurveToCommand(O+.25*R,k+W,O,k-W),new f.PathPrimitiveClosePathCommand],y,void 0,S&&E)]),S&&E&&(N=N.concat([new p.ClipPathPrimitive(E,[new f.PathPrimitive([new f.PathPrimitiveMoveToCommand(O-y.strokeWidth,w-y.strokeWidth),new f.PathPrimitiveLineToCommand(T+y.strokeWidth,w-y.strokeWidth),new f.PathPrimitiveLineToCommand(T+y.strokeWidth,S.y),new f.PathPrimitiveLineToCommand(S.x,S.y),new f.PathPrimitiveLineToCommand(S.x,k+y.strokeWidth),new f.PathPrimitiveLineToCommand(O-y.strokeWidth,k+y.strokeWidth),new f.PathPrimitiveClosePathCommand])])])),N},x.prototype.getTextRectangle=function(b){var y=b.rectangle,E=y.width*x.documentsOffsetRatio,S=y.height*x.documentsOffsetRatio;return(y=y.clone().inflate(-E,-S).clone().moveRectangle(-E,-S)).clone().moveRectangle(2*E+u.ShapeTextPadding,2*S+u.ShapeTextPadding).clone().resize(-2*u.ShapeTextPadding,-y.height*a.DocumentShapeDescription.curveOffsetRatio-2*u.ShapeTextPadding)},x.prototype.getSizeByText=function(b,y){return new d.Size((b.width+2*u.ShapeTextPadding)/(1-2*x.documentsOffsetRatio),(b.height+2*u.ShapeTextPadding)/((1-a.DocumentShapeDescription.curveOffsetRatio)*(1-x.documentsOffsetRatio))).nonNegativeSize()},x.documentsOffsetRatio=.1,x.documentsOffsetRatioForToolbox=.16,x}(a.DocumentShapeDescription);l.MultipleDocumentsShapeDescription=h},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.PreparationShapeDescription=void 0;var C=o(1),f=o(2),a=o(7),p=function(s){function u(){var d=s.call(this,!0)||this;return d.defaultSize=new f.Size(a.ShapeDefaultDimension,.75*a.ShapeDefaultDimension),d}return I(u,s),Object.defineProperty(u.prototype,"key",{get:function(){return C.ShapeTypes.Preparation},enumerable:!1,configurable:!0}),u}(o(123).HexagonShapeDescription);l.PreparationShapeDescription=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.HardDiskShapeDescription=void 0;var C=o(19),f=o(1),a=o(5),p=o(55),s=o(7),u=o(2),d=function(h){function g(){return h.call(this,void 0,!0)||this}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return f.ShapeTypes.HardDisk},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,T=b.center.y,k=b.width*g.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(S-k/2,E),new a.PathPrimitiveLineToCommand(y+k/2,E),new a.PathPrimitiveArcToCommand(k/2,(O-E)/2,0,!1,!1,y+k/2,O),new a.PathPrimitiveLineToCommand(S-k/2,O)],x.style),new p.EllipsePrimitive(S-k/2,T,k/2,(O-E)/2,x.style)]},g.prototype.getTextRectangle=function(x){var b=x.rectangle,y=b.width*g.arcWidthRatio*1.5;return b.clone().resize(-y-2*s.ShapeTextPadding,-2*s.ShapeTextPadding).moveRectangle(s.ShapeTextPadding,s.ShapeTextPadding).nonNegativeSize()},g.prototype.getSizeByText=function(x,b){return new u.Size((x.width+2*s.ShapeTextPadding)/(1-1.5*g.arcWidthRatio),b.size.height+s.ShapeTextPadding)},g.arcWidthRatio=.2,g}(C.RectangleShapeDescription);l.HardDiskShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.DatabaseShapeDescription=void 0;var C=o(19),f=o(1),a=o(5),p=o(55),s=function(u){function d(){var h=u.call(this,void 0,!0)||this;return h.defaultSize.width=h.defaultSize.height,h}return I(d,u),Object.defineProperty(d.prototype,"key",{get:function(){return f.ShapeTypes.Database},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d.prototype.createShapePrimitives=function(h){var g=h.rectangle,x=g.x,b=g.y,y=g.right,E=g.bottom,O=g.center.x,w=g.height*d.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(y,b+w/2),new a.PathPrimitiveLineToCommand(y,E-w/2),new a.PathPrimitiveArcToCommand((y-x)/2,w/2,0,!1,!0,x,E-w/2),new a.PathPrimitiveLineToCommand(x,b+w/2)],h.style),new p.EllipsePrimitive(O,b+w/2,(y-x)/2,w/2,h.style)]},d.prototype.getTextRectangle=function(h){var g=h.rectangle,x=g.height*d.arcWidthRatio;return g.clone().resize(0,-x).clone().moveRectangle(0,x)},d.arcWidthRatio=.2,d}(C.RectangleShapeDescription);l.DatabaseShapeDescription=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.InternalStorageShapeDescription=l.InternalStorageVerticalEdgeParameterName=l.InternalStorageHorizontalEdgeParameterName=void 0;var C=o(19),f=o(1),a=o(37),p=o(30),s=o(0),u=o(5);l.InternalStorageHorizontalEdgeParameterName="he",l.InternalStorageVerticalEdgeParameterName="ve";var d=function(h){function g(){return h.call(this,void 0,!0)||this}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return f.ShapeTypes.InternalStorage},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,w=y+x.parameters.get(l.InternalStorageHorizontalEdgeParameterName).value,T=E+x.parameters.get(l.InternalStorageVerticalEdgeParameterName).value;return h.prototype.createShapePrimitives.call(this,x).concat([new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(w,E),new u.PathPrimitiveLineToCommand(w,O),new u.PathPrimitiveMoveToCommand(y,T),new u.PathPrimitiveLineToCommand(S,T)],x.style)])},g.prototype.createParameters=function(x){x.addRange([new a.ShapeParameter(l.InternalStorageHorizontalEdgeParameterName,.1*this.defaultSize.width),new a.ShapeParameter(l.InternalStorageVerticalEdgeParameterName,.1*this.defaultSize.width)])},g.prototype.normalizeParameters=function(x,b){this.changeParameterValue(b,l.InternalStorageHorizontalEdgeParameterName,function(y){return Math.max(g.minEdge,Math.min(.3*x.size.width,y.value))}),this.changeParameterValue(b,l.InternalStorageVerticalEdgeParameterName,function(y){return Math.max(g.minEdge,Math.min(.3*x.size.height,y.value))})},g.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,l.InternalStorageHorizontalEdgeParameterName,function(S){return S.value+y}),this.changeParameterValue(b,l.InternalStorageVerticalEdgeParameterName,function(S){return S.value+E}),this.normalizeParameters(x,b)},g.prototype.getParameterPoints=function(x){return[new p.ShapeParameterPoint("c",new s.Point(x.normalizeX(x.position.x+x.parameters.get(l.InternalStorageHorizontalEdgeParameterName).value),x.normalizeY(x.position.y+x.parameters.get(l.InternalStorageVerticalEdgeParameterName).value)))]},g.prototype.getTextRectangle=function(x){var b=x.rectangle,y=x.parameters.get(l.InternalStorageHorizontalEdgeParameterName).value;return b.clone().resize(-y,0).clone().moveRectangle(y,0)},g.minEdge=72,g}(C.RectangleShapeDescription);l.InternalStorageShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.PaperTapeShapeDescription=void 0;var C=o(19),f=o(1),a=o(5),p=o(9),s=o(7),u=o(2),d=function(h){function g(){return h.call(this,void 0,!0)||this}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return f.ShapeTypes.PaperTape},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x){return this.createDocumentPrimitives(x.rectangle,x.style)},g.prototype.createDocumentPrimitives=function(x,b){var y=x.x,E=x.y,S=x.right,O=x.bottom,w=x.width,k=x.center.x,R=x.height*g.curveOffsetRatio;return[].concat([new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(y,E),new a.PathPrimitiveQuadraticCurveToCommand(y+.25*w,E+2*R,k,E+R),new a.PathPrimitiveQuadraticCurveToCommand(S-.25*w,E-R,S,E+R),new a.PathPrimitiveLineToCommand(S,O),new a.PathPrimitiveQuadraticCurveToCommand(S-.25*w,O-2*R,k,O-R),new a.PathPrimitiveQuadraticCurveToCommand(y+.25*w,O+R,y,O-R),new a.PathPrimitiveClosePathCommand],b)])},g.prototype.processConnectionPoint=function(x,b){var y=x.getConnectionPointSide(b);y===p.ConnectionPointSide.North&&(b.y+=x.size.height*g.curveOffsetRatio),y===p.ConnectionPointSide.South&&(b.y-=x.size.height*g.curveOffsetRatio)},g.prototype.getTextRectangle=function(x){var b=x.rectangle;return b.clone().inflate(s.ShapeTextPadding,-b.height*g.curveOffsetRatio)},g.prototype.getSizeByText=function(x,b){return new u.Size(x.width+2*s.ShapeTextPadding,x.height/(1-2*g.curveOffsetRatio))},g.curveOffsetRatio=.1,g}(C.RectangleShapeDescription);l.PaperTapeShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.ManualOperationShapeDescription=void 0;var C=o(19),f=o(1),a=o(5),p=o(9),s=o(7),u=function(d){function h(){return d.call(this,void 0,!0)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return f.ShapeTypes.ManualOperation},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(g){var x=g.rectangle,b=g.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,w=b.width,k=Math.min(Math.max(0,b.height/Math.tan(h.slopeAngle)),w),R=x.center.x,P=Math.min(y+k,R),B=Math.max(S-k,R);return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(y,E),new a.PathPrimitiveLineToCommand(S,E),new a.PathPrimitiveLineToCommand(B,O),new a.PathPrimitiveLineToCommand(P,O),new a.PathPrimitiveClosePathCommand],g.style)]},h.prototype.processConnectionPoint=function(g,x){var b=g.size.height/Math.tan(h.slopeAngle),y=g.getConnectionPointSide(x);y===p.ConnectionPointSide.East?x.x-=b/2:y===p.ConnectionPointSide.West&&(x.x+=b/2)},h.prototype.getTextRectangle=function(g){var x=Math.min(Math.max(0,g.size.height/Math.tan(h.slopeAngle)),g.size.width);return g.rectangle.clone().moveRectangle(x,s.ShapeTextPadding).resize(2*-x,2*-s.ShapeTextPadding).nonNegativeSize()},h.slopeAngle=81*Math.PI/180,h}(C.RectangleShapeDescription);l.ManualOperationShapeDescription=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.DelayShapeDescription=void 0;var C=o(19),f=o(1),a=o(5),p=o(3),s=o(7),u=o(2),d=function(h){function g(){var x=h.call(this,void 0,!0)||this;return x.defaultSize.width=x.defaultSize.height,x}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return f.ShapeTypes.Delay},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,w=b.center.x;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(y,E),new a.PathPrimitiveLineToCommand(w,E),new a.PathPrimitiveArcToCommand((S-y)/2,(O-E)/2,0,!1,!0,w,O),new a.PathPrimitiveLineToCommand(y,O),new a.PathPrimitiveClosePathCommand],x.style)]},g.prototype.getTextRectangle=function(x){var b=p.GeometryUtils.getMaxRectangleEnscribedInEllipse(x.size);return x.rectangle.clone().moveRectangle(s.ShapeTextPadding,s.ShapeTextPadding).setSize({width:b.width/2+x.size.width/2-s.ShapeTextPadding,height:b.height/2+x.size.height/2-s.ShapeTextPadding}).nonNegativeSize()},g.prototype.getSizeByText=function(x,b){var y=p.GeometryUtils.getEllipseByEnscribedRectangle(x);return new u.Size(y.width/2+x.width/2+s.ShapeTextPadding,y.height/2+x.height/2+s.ShapeTextPadding)},g.arcWidthRatio=.2,g}(C.RectangleShapeDescription);l.DelayShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.StoredDataShapeDescription=void 0;var C=o(19),f=o(1),a=o(5),p=o(7),s=o(2),u=function(d){function h(){return d.call(this,void 0,!0)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return f.ShapeTypes.StoredData},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(g){var x=g.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.width*h.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(E,y),new a.PathPrimitiveLineToCommand(b+O/2,y),new a.PathPrimitiveArcToCommand(O/2,(S-y)/2,0,!1,!1,b+O/2,S),new a.PathPrimitiveLineToCommand(E,S),new a.PathPrimitiveArcToCommand(O/2,(S-y)/2,0,!1,!0,E,y)],g.style)]},h.prototype.getTextRectangle=function(g){var x=g.rectangle,b=x.width*h.arcWidthRatio/2;return x.clone().resize(-b-2*p.ShapeTextPadding,-2*p.ShapeTextPadding).moveRectangle(p.ShapeTextPadding,p.ShapeTextPadding).nonNegativeSize()},h.prototype.getSizeByText=function(g,x){return new s.Size((g.width+2*p.ShapeTextPadding)/(1-h.arcWidthRatio/2),g.height+2*p.ShapeTextPadding)},h.arcWidthRatio=.2,h}(C.RectangleShapeDescription);l.StoredDataShapeDescription=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.MergeShapeDescription=void 0;var C=o(1),f=o(13),a=o(124),p=o(5),s=o(7),u=o(2),d=function(h){function g(){return h.call(this,!0)||this}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return C.ShapeTypes.Merge},enumerable:!1,configurable:!0}),g.prototype.createShapePrimitives=function(x){var b=x.rectangle,E=b.y,S=b.right,O=b.bottom;return[new p.PathPrimitive([new p.PathPrimitiveMoveToCommand(b.x,E),new p.PathPrimitiveLineToCommand(S,E),new p.PathPrimitiveLineToCommand(b.center.x,O),new p.PathPrimitiveClosePathCommand],x.style)]},g.prototype.calculateHeight=function(x){return.75*x},g.prototype.getTextRectangle=function(x){return f.Rectangle.fromGeometry(x.position.clone().offset(x.size.width/4,s.ShapeTextPadding),new u.Size(x.size.width/2,x.size.height/2-s.ShapeTextPadding))},g.prototype.getSizeByText=function(x,b){return new u.Size(2*x.width,2*(x.height+s.ShapeTextPadding))},g}(a.TriangleShapeDescription);l.MergeShapeDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.DisplayShapeDescription=void 0;var C=o(19),f=o(1),a=o(5),p=o(7),s=function(u){function d(){return u.call(this,void 0,!0)||this}return I(d,u),Object.defineProperty(d.prototype,"key",{get:function(){return f.ShapeTypes.Display},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d.prototype.createShapePrimitives=function(h){var g=h.rectangle,x=g.x,b=g.y,y=g.right,E=g.bottom,O=g.center.y,w=g.width*d.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(y-w/2,b),new a.PathPrimitiveLineToCommand(x+w/2,b),new a.PathPrimitiveLineToCommand(x,O),new a.PathPrimitiveLineToCommand(x+w/2,E),new a.PathPrimitiveLineToCommand(y-w/2,E),new a.PathPrimitiveArcToCommand(w/2,(E-b)/2,0,!1,!1,y-w/2,b)],h.style)]},d.prototype.getTextRectangle=function(h){var g=h.size.width*d.arcWidthRatio;return h.rectangle.clone().moveRectangle(g/2,p.ShapeTextPadding).resize(-g,2*-p.ShapeTextPadding).nonNegativeSize()},d.arcWidthRatio=.2,d}(C.RectangleShapeDescription);l.DisplayShapeDescription=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.OrShapeDescription=void 0;var C=o(1),f=o(2),a=o(7),p=o(72),s=o(5),u=function(d){function h(){var g=d.call(this,!0)||this;return g.defaultSize=new f.Size(.5*a.ShapeDefaultDimension,.5*a.ShapeDefaultDimension),g}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return C.ShapeTypes.Or},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"enableText",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(g){var x=g.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.center,w=O.x,T=O.y;return[].concat(d.prototype.createShapePrimitives.call(this,g)).concat([new s.PathPrimitive([new s.PathPrimitiveMoveToCommand(w,y),new s.PathPrimitiveLineToCommand(w,S),new s.PathPrimitiveMoveToCommand(b,T),new s.PathPrimitiveLineToCommand(E,T)],g.style)])},h}(p.EllipseShapeDescription);l.OrShapeDescription=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.SummingJunctionShapeDescription=void 0;var C=o(1),f=o(2),a=o(7),p=o(72),s=o(5),u=function(d){function h(){var g=d.call(this,!0)||this;return g.defaultSize=new f.Size(.5*a.ShapeDefaultDimension,.5*a.ShapeDefaultDimension),g}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return C.ShapeTypes.SummingJunction},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"enableText",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(g){var x=g.rectangle,E=x.center,S=E.x,O=E.y,w=x.width/2,T=x.height/2,k=Math.atan(T/w),R=1/Math.sqrt(1/Math.pow(w,2)+Math.pow(Math.tan(k),2)/Math.pow(T,2)),P=R*Math.tan(k);return[].concat(d.prototype.createShapePrimitives.call(this,g)).concat([new s.PathPrimitive([new s.PathPrimitiveMoveToCommand(S-R,O-P),new s.PathPrimitiveLineToCommand(S+R,O+P),new s.PathPrimitiveMoveToCommand(S-R,O+P),new s.PathPrimitiveLineToCommand(S+R,O-P)],g.style)])},h}(p.EllipseShapeDescription);l.SummingJunctionShapeDescription=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.SvgElementPrimitive=void 0;var C=o(15),f=function(a){function p(s,u,d,h,g,x,b,y,E){var S=a.call(this,null,y,void 0,E)||this;return S.x=s,S.y=u,S.width=d,S.height=h,S.createContent=g,S.destroyContent=x,S.data=b,S}return I(p,a),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"svg")},p.prototype.applyElementProperties=function(s,u){this.setUnitAttribute(s,"x",this.x),this.setUnitAttribute(s,"y",this.y),this.setUnitAttribute(s,"width",this.width),this.setUnitAttribute(s,"height",this.height),this.setPositionCorrectionAttribute(s),a.prototype.applyElementProperties.call(this,s,u)},p.prototype.createCustomContent=function(s){this.createContent&&this.createContent(s,this.data)},p.prototype.destroyCustomContent=function(s){this.destroyContent&&this.destroyContent(s)},p}(o(24).SvgPrimitive);l.SvgElementPrimitive=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(g,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(g,x)},function(g,x){function b(){this.constructor=g}c(g,x),g.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(l,"__esModule",{value:!0}),l.VerticalContainerDescription=void 0;var C=o(0),f=o(2),a=o(21),p=o(13),s=o(1),u=o(7),d=o(131),h=function(g){function x(){return g.call(this,new f.Size(2*u.ShapeDefaultDimension,1.5*u.ShapeDefaultDimension))||this}return I(x,g),Object.defineProperty(x.prototype,"key",{get:function(){return s.ShapeTypes.VerticalContainer},enumerable:!1,configurable:!0}),x.prototype.getExpandedSize=function(b){return new f.Size(b.size.width,b.expandedSize.height)},x.prototype.getCollapsedSize=function(b){return new f.Size(b.size.width,d.CONTAINER_HEADER_SIZE+2*b.strokeWidth)},x.prototype.allowResizeVertically=function(b){return b.expanded},x.prototype.createHeaderPrimitives=function(b,y){var E=b.rectangle,S=E.x,O=E.y,w=E.width,T=this.getHeaderSize(b,y),k=[];return k=k.concat([new a.RectanglePrimitive(S,O,w,T,b.style)]),y||(k=k.concat(this.createExpandButtonPrimitives(b,new p.Rectangle(S,O,T,T)))),k},x.prototype.getClientRectangle=function(b){var y=b.rectangle,E=this.getHeaderSize(b);return p.Rectangle.fromGeometry(new C.Point(y.x,y.y+E),new f.Size(y.width,y.height-E))},x.prototype.getTextRectangle=function(b){var y=b.rectangle,E=this.getHeaderSize(b);return p.Rectangle.fromGeometry(new C.Point(y.x+E,y.y),new f.Size(y.width-E,E))},x.prototype.getSizeByText=function(b,y){var E=this.getHeaderSize(y);return new f.Size(Math.max(y.size.width,b.width+E),y.size.height)},x.prototype.getHeaderSize=function(b,y){return y?b.rectangle.height*d.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO:d.CONTAINER_HEADER_SIZE+2*b.strokeWidth},x}(d.ContainerDescription);l.VerticalContainerDescription=h},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(x,b){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var S in E)E.hasOwnProperty(S)&&(y[S]=E[S])})(x,b)},function(x,b){function y(){this.constructor=x}c(x,b),x.prototype=null===b?Object.create(b):(y.prototype=b.prototype,new y)});Object.defineProperty(l,"__esModule",{value:!0}),l.HorizontalContainerDescription=void 0;var C=o(7),f=o(13),a=o(2),p=o(0),s=o(1),u=o(131),d=o(21),h=o(63),g=function(x){function b(){return x.call(this,new a.Size(2*C.ShapeDefaultDimension,1.5*C.ShapeDefaultDimension))||this}return I(b,x),Object.defineProperty(b.prototype,"key",{get:function(){return s.ShapeTypes.HorizontalContainer},enumerable:!1,configurable:!0}),b.prototype.getExpandedSize=function(y){return new a.Size(y.expandedSize.width,y.size.height)},b.prototype.getCollapsedSize=function(y){return new a.Size(u.CONTAINER_HEADER_SIZE+2*y.strokeWidth,y.size.height)},b.prototype.allowResizeHorizontally=function(y){return y.expanded},b.prototype.createHeaderPrimitives=function(y,E){var S=y.rectangle,O=S.x,w=S.y,T=S.height,k=this.getHeaderSize(y,E),R=[];return R=R.concat([new d.RectanglePrimitive(O,w,k,T,y.style)]),E||(R=R.concat(this.createExpandButtonPrimitives(y,new f.Rectangle(O,w,k,k)))),R},b.prototype.getClientRectangle=function(y){var E=y.rectangle,S=this.getHeaderSize(y);return f.Rectangle.fromGeometry(new p.Point(E.x+S,E.y),new a.Size(E.width-S,E.height))},b.prototype.getTextRectangle=function(y){var E=y.rectangle,S=this.getHeaderSize(y);return f.Rectangle.fromGeometry(new p.Point(E.x,E.y+S),new a.Size(S,E.height-S)).nonNegativeSize()},b.prototype.getSizeByText=function(y,E){var S=this.getHeaderSize(E);return new a.Size(E.size.width,Math.max(E.size.height,Math.max(y.width+S,E.size.height)))},b.prototype.getTextEditRectangle=function(y){var E=this.getTextRectangle(y);return f.Rectangle.fromGeometry(new p.Point(E.x,E.y+E.height),new a.Size(E.height,E.width))},b.prototype.getTextAngle=function(){return h.TextAngle.Angle270deg},b.prototype.getHeaderSize=function(y,E){return E?y.rectangle.height*u.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO:u.CONTAINER_HEADER_SIZE+2*y.strokeWidth},b}(u.ContainerDescription);l.HorizontalContainerDescription=g},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.CardWithImageOnTopDescription=void 0;var C=o(7),f=o(2),a=o(1),p=o(132),s=o(12),u=function(d){function h(){var g=d.call(this,new f.Size(.8*C.ShapeDefaultDimension,C.ShapeDefaultDimension))||this;return g.isTextAfterImage=!0,g.isHorizontal=!1,g}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return a.ShapeTypes.CardWithImageOnTop},enumerable:!1,configurable:!0}),h.prototype.getImageSize=function(g,x,b){var y=g.width/2;s.UnitConverter.twipsToPixels(y)%2==1&&(y-=s.UnitConverter.pixelsToTwips(1));var E=Math.max(0,g.height-(x?0:2*this.getImageMargin(b)));return E=Math.min(y,E),new f.Size(E,E)},h.prototype.getImageSizeByTextBlockSize=function(g){return this.getImageSize(new f.Size(g.width,Number.MAX_VALUE),!0)},h}(p.CardBaseDescription);l.CardWithImageOnTopDescription=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.RoundedRectanglePrimitive=void 0;var C=o(15),f=function(a){function p(s,u,d,h,g,x,b,y,E,S){void 0===g&&(g=0),void 0===x&&(x=0);var O=a.call(this,s,u,d,h,b,y,E,S)||this;return O.x=s,O.y=u,O.width=d,O.height=h,O.rx=g,O.ry=x,O}return I(p,a),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"rect")},p.prototype.applyElementProperties=function(s,u){this.setUnitAttribute(s,"rx",this.rx),this.setUnitAttribute(s,"ry",this.ry),a.prototype.applyElementProperties.call(this,s,u)},p}(o(21).RectanglePrimitive);l.RoundedRectanglePrimitive=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorShapeDescription=void 0;var C=o(1),f=o(2),a=o(7),p=function(s){function u(){var d=s.call(this,!1)||this;return d.defaultSize=new f.Size(.5*a.ShapeDefaultDimension,.5*a.ShapeDefaultDimension),d}return I(u,s),Object.defineProperty(u.prototype,"key",{get:function(){return C.ShapeTypes.Connector},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),u}(o(72).EllipseShapeDescription);l.ConnectorShapeDescription=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.CardWithImageOnRightDescription=l.CardWithImageOnLeftDescription=void 0;var C=o(7),f=o(1),a=o(132),p=o(2),s=function(h){function g(){var x=h.call(this,new p.Size(1.5*C.ShapeDefaultDimension,.5*C.ShapeDefaultDimension))||this;return x.isHorizontal=!0,x}return I(g,h),g.prototype.getToolboxHeightToWidthRatio=function(x,b){return 26/46},g.prototype.getImageSize=function(x,b,y){var E=Math.min(x.height,x.width);return b||(E=Math.max(0,E-2*this.getImageMargin(y))),new p.Size(E,E)},g.prototype.getImageSizeByTextBlockSize=function(x){return this.getImageSize(new p.Size(Number.MAX_VALUE,x.height),!0)},g}(a.CardBaseDescription),u=function(h){function g(){var x=null!==h&&h.apply(this,arguments)||this;return x.isTextAfterImage=!0,x}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return f.ShapeTypes.CardWithImageOnLeft},enumerable:!1,configurable:!0}),g}(s);l.CardWithImageOnLeftDescription=u;var d=function(h){function g(){var x=null!==h&&h.apply(this,arguments)||this;return x.isTextAfterImage=!1,x}return I(g,h),Object.defineProperty(g.prototype,"key",{get:function(){return f.ShapeTypes.CardWithImageOnRight},enumerable:!1,configurable:!0}),g}(s);l.CardWithImageOnRightDescription=d},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.ExportCommand=void 0;var C=o(73),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.executeCore=function(s,u){return u((new C.Exporter).export(this.control.model)),!0},p}(o(57).ExportImportCommandBase);l.ExportCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ToggleFontBoldCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.getStyleProperty=function(){return"font-weight"},a.prototype.getStylePropertyValue=function(){return"bold"},a}(o(74).ToggleStyleTextPropertyCommand);l.ToggleFontBoldCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ToggleFontItalicCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.getStyleProperty=function(){return"font-style"},a.prototype.getStylePropertyValue=function(){return"italic"},a}(o(74).ToggleStyleTextPropertyCommand);l.ToggleFontItalicCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ToggleFontUnderlineCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.getStyleProperty=function(){return"text-decoration"},a.prototype.getStylePropertyValue=function(){return"underline"},a}(o(74).ToggleStyleTextPropertyCommand);l.ToggleFontUnderlineCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeFontNameCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.getStyleProperty=function(){return"font-family"},a}(o(96).ChangeStyleTextPropertyCommand);l.ChangeFontNameCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeFontSizeCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.getStyleProperty=function(){return"font-size"},a}(o(96).ChangeStyleTextPropertyCommand);l.ChangeFontSizeCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeFontColorCommand=void 0;var C=o(96),f=o(22),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.processParameter=function(u){return f.ColorUtils.stringToHash(u)},s.prototype.getStyleProperty=function(){return"fill"},s}(C.ChangeStyleTextPropertyCommand);l.ChangeFontColorCommand=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeFillColorCommand=void 0;var C=o(75),f=o(22),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.processParameter=function(u){return f.ColorUtils.stringToHash(u)},s.prototype.getStyleProperty=function(){return"fill"},s}(C.ChangeStylePropertyCommand);l.ChangeFillColorCommand=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeStrokeColorCommand=void 0;var C=o(75),f=o(22),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.processParameter=function(u){return f.ColorUtils.stringToHash(u)},s.prototype.getStyleProperty=function(){return"stroke"},s}(C.ChangeStylePropertyCommand);l.ChangeStrokeColorCommand=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.TextRightAlignCommand=l.TextCenterAlignCommand=l.TextLeftAlignCommand=l.ChangeTextAlignCommand=void 0;var C=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.getStyleProperty=function(){return"text-anchor"},u}(o(74).ToggleStyleTextPropertyCommand);l.ChangeTextAlignCommand=C;var f=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.getStylePropertyValue=function(){return"start"},u}(C);l.TextLeftAlignCommand=f;var a=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.getStylePropertyValue=function(){return"middle"},u}(C);l.TextCenterAlignCommand=a;var p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.getStylePropertyValue=function(){return"end"},u}(C);l.TextRightAlignCommand=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeConnectorEndLineEndingCommand=l.ChangeConnectorStartLineEndingCommand=void 0;var C=o(136),f=o(32),a=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.getPropertyName=function(){return"startLineEnding"},u.prototype.getPropertyDefaultValue=function(){return f.ConnectorLineEnding.None},u}(C.ChangeConnectorPropertyCommand);l.ChangeConnectorStartLineEndingCommand=a;var p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return I(u,s),u.prototype.getPropertyName=function(){return"endLineEnding"},u.prototype.getPropertyDefaultValue=function(){return f.ConnectorLineEnding.Arrow},u}(C.ChangeConnectorPropertyCommand);l.ChangeConnectorEndLineEndingCommand=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeConnectorLineOptionCommand=void 0;var C=o(136),f=o(32),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.getPropertyName=function(){return"lineOption"},s.prototype.getPropertyDefaultValue=function(){return f.ConnectorLineOption.Straight},s}(C.ChangeConnectorPropertyCommand);l.ChangeConnectorLineOptionCommand=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.SelectAllCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.isEnabledInReadOnlyMode=function(){return!0},a.prototype.executeCore=function(p,s){var u=[];return this.control.model.iterateItems(function(d){return u.push(d.key)}),this.control.selection.set(u),!0},a}(o(10).SimpleCommandBase);l.SelectAllCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ScrollIntoViewOnUndoHistoryItem=l.ScrollIntoViewOnRedoHistoryItem=void 0;var C=o(8),f=function(p){function s(u,d){var h=p.call(this)||this;return h.view=u,h.rectangle=d,h.view=u,h.rectangle=d.clone(),h}return I(s,p),s.prototype.redo=function(u){this.view.scrollIntoView(this.rectangle)},s.prototype.undo=function(u){},s}(C.HistoryItem);l.ScrollIntoViewOnRedoHistoryItem=f;var a=function(p){function s(u,d){var h=p.call(this)||this;return h.view=u,h.rectangle=d,h.view=u,h.rectangle=d.clone(),h}return I(s,p),s.prototype.redo=function(u){},s.prototype.undo=function(u){this.view.scrollIntoView(this.rectangle)},s}(C.HistoryItem);l.ScrollIntoViewOnUndoHistoryItem=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Tree=void 0;var c=o(38),I=function(){function C(f,a){var p=this;this.childToParent={},this.root=f,this.parentToChildren=a;var s=function(d){if(!Object.prototype.hasOwnProperty.call(a,d))return"continue";a[d].forEach(function(h){return p.childToParent[h.key]=d})};for(var u in a)s(u)}return C.prototype.getChildren=function(f){return f&&this.parentToChildren[f.key]?this.parentToChildren[f.key]:[]},C.prototype.hasChildren=function(f){return this.parentToChildren[f.key]&&this.parentToChildren[f.key].length>0},C.prototype.iterate=function(f){this.iterateCore(this.root,0,f)},C.createSpanningTree=function(f){var a=C.findRoot(f),p=f.createIterator(c.ConnectionMode.Outgoing),s={};return p.skipEdge=function(u){return void 0===u.to||p.isNodeVisited(u.to)},p.onNode=function(u){return s[u.key]=[]},p.onEdge=function(u){var d=f.getNode(u.to);d&&s[u.from].push(d)},p.iterate(a),new C(f.getNode(a),s)},C.prototype.iterateCore=function(f,a,p){var s=this;p(f,a),this.getChildren(f).forEach(function(u){return s.iterateCore(u,a+1,p)})},C.findRoot=function(f){return f.nodes.reduce(function(a,p){var s=f.getAdjacentEdges(p),u=s.filter(function(h){return h.to===p}).length,d=s.filter(function(h){return h.from===p}).length;return(void 0===a.candidate||0===u&&a.inc>0||0!==a.inc&&a.out-a.inc<d-u)&&(a.candidate=p,a.inc=u,a.out=d),a},{inc:-1,out:-1,candidate:void 0}).candidate},C}();l.Tree=I},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeSnapToGridCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.executeCore=function(p,s){var u=void 0===s?!this.control.settings.snapToGrid:!!s;return this.control.settings.snapToGrid!==u&&(this.control.settings.snapToGrid=u,!0)},a.prototype.getValue=function(){return this.control.settings.snapToGrid},a}(o(10).SimpleCommandBase);l.ChangeSnapToGridCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeGridSizeItemsCommand=l.ChangeGridSizeCommand=void 0;var C=o(10),f=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.isEnabledInReadOnlyMode=function(){return!0},s.prototype.getValue=function(){return this.getModelUnit(this.control.settings.gridSize)},s.prototype.executeCore=function(u,d){return this.control.settings.gridSize=this.getModelUnitTwipsValue(d),!0},s.prototype.getItems=function(){var u=this;return this.control.settings.gridSizeItems.map(function(d){return{value:u.getModelUnit(d),text:u.getViewUnitText(d)}})},s}(C.SimpleCommandBase);l.ChangeGridSizeCommand=f;var a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.isEnabledInReadOnlyMode=function(){return!0},s.prototype.getValue=function(){var u=this;return this.control.settings.gridSizeItems.map(function(d){return u.getModelUnit(d)})},s.prototype.executeCore=function(u,d){var h=this;return this.control.settings.gridSizeItems=d.map(function(g){return h.getModelUnitTwipsValue(g)}),!0},s}(C.SimpleCommandBase);l.ChangeGridSizeItemsCommand=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangePageLandscapeCommand=void 0;var C=o(77),f=o(256),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.getValue=function(){return this.control.model.pageLandscape},s.prototype.createHistoryItems=function(u){return[new f.ChangePageLandscapeHistoryItem(u)]},s}(C.ChangePagePropertyCommand);l.ChangePageLandscapeCommand=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangePageLandscapeHistoryItem=void 0;var C=function(f){function a(p){var s=f.call(this)||this;return s.value=p,s}return I(a,f),a.prototype.redo=function(p){this.oldValue=p.model.pageLandscape,p.changePageLandscape(this.value)},a.prototype.undo=function(p){p.changePageLandscape(this.oldValue)},a}(o(8).HistoryItem);l.ChangePageLandscapeHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangePageSizeItemsCommand=l.ChangePageSizeCommand=void 0;var C=o(77),f=o(2),a=o(258),p=o(10),s=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.getValue=function(){return this.getModelUnitSize(this.control.model.pageSize)},h.prototype.createHistoryItems=function(g){return[new a.ChangePageSizeHistoryItem(new f.Size(this.getModelUnitTwipsValue(g.width),this.getModelUnitTwipsValue(g.height)))]},h.prototype.getItems=function(){var g=this;return this.control.settings.pageSizeItems.map(function(x){return{value:g.getModelUnitSize(x.size),text:x.text.replace("{width}",g.getViewUnitText(x.size.width)).replace("{height}",g.getViewUnitText(x.size.height))}})},h.prototype.getModelUnitSize=function(g){return new f.Size(this.getModelUnit(g.width),this.getModelUnit(g.height))},h}(C.ChangePagePropertyCommand);l.ChangePageSizeCommand=s;var u=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.isEnabled=function(){return!0},h.prototype.getValue=function(){var g=this;return this.control.settings.pageSizeItems.map(function(x){return{size:new f.Size(g.getModelUnit(x.width),g.getModelUnit(x.height)),text:x.text}})},h.prototype.executeCore=function(g,x){var b=this;return this.control.settings.pageSizeItems=x.map(function(y){return{size:new f.Size(b.getModelUnitTwipsValue(y.width),b.getModelUnitTwipsValue(y.height)),text:y.text}}),!0},h}(p.SimpleCommandBase);l.ChangePageSizeItemsCommand=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangePageSizeHistoryItem=void 0;var C=function(f){function a(p){var s=f.call(this)||this;return s.size=p,s}return I(a,f),a.prototype.redo=function(p){this.oldSize=p.model.pageSize,p.changePageSize(this.size)},a.prototype.undo=function(p){p.changePageSize(this.oldSize)},a}(o(8).HistoryItem);l.ChangePageSizeHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ExportPngCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.getExtension=function(){return"png"},a.prototype.getExportFunc=function(){return this.exporter.exportPng},a}(o(98).ExportImageCommand);l.ExportPngCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(b,y){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var O in S)S.hasOwnProperty(O)&&(E[O]=S[O])})(b,y)},function(b,y){function E(){this.constructor=b}c(b,y),b.prototype=null===y?Object.create(y):(E.prototype=y.prototype,new E)}),C=this&&this.__awaiter||function(b,y,E,S){return new(E||(E=Promise))(function(O,w){function T(P){try{R(S.next(P))}catch(B){w(B)}}function k(P){try{R(S.throw(P))}catch(B){w(B)}}function R(P){var B;P.done?O(P.value):(B=P.value,B instanceof E?B:new E(function(W){W(B)})).then(T,k)}R((S=S.apply(b,y||[])).next())})},f=this&&this.__generator||function(b,y){var E,S,O,w,T={label:0,sent:function(){if(1&O[0])throw O[1];return O[1]},trys:[],ops:[]};return w={next:k(0),throw:k(1),return:k(2)},"function"==typeof Symbol&&(w[Symbol.iterator]=function(){return this}),w;function k(R){return function(P){return function(B){if(E)throw new TypeError("Generator is already executing.");for(;T;)try{if(E=1,S&&(O=2&B[0]?S.return:B[0]?S.throw||((O=S.return)&&O.call(S),0):S.next)&&!(O=O.call(S,B[1])).done)return O;switch(S=0,O&&(B=[2&B[0],O.value]),B[0]){case 0:case 1:O=B;break;case 4:return T.label++,{value:B[1],done:!1};case 5:T.label++,S=B[1],B=[0];continue;case 7:B=T.ops.pop(),T.trys.pop();continue;default:if(!(O=(O=T.trys).length>0&&O[O.length-1])&&(6===B[0]||2===B[0])){T=0;continue}if(3===B[0]&&(!O||B[1]>O[0]&&B[1]<O[3])){T.label=B[1];break}if(6===B[0]&&T.label<O[1]){T.label=O[1],O=B;break}if(O&&T.label<O[2]){T.label=O[2],T.ops.push(B);break}O[2]&&T.ops.pop(),T.trys.pop();continue}B=y.call(b,T)}catch(W){B=[6,W],S=0}finally{E=O=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([R,P])}}};Object.defineProperty(l,"__esModule",{value:!0}),l.CanvasExportManager=void 0;var a=o(12),p=o(18),s=o(17),u=o(42),d=o(15),h=o(100),g=o(22),x=function(b){function y(E,S){var O=b.call(this,1,new h.ExportDOMManipulator(S))||this;return O.itemsContainer=E,O}return I(y,b),y.prototype.getSvgImage=function(E,S,O,w){var T=d.RenderHelper.createSvgElement(void 0,!0),k=E.clone().applyConverter(a.UnitConverter.twipsToPixelsF).clone().applyConverter(Math.ceil);s.RenderUtils.updateSvgElementSize(T,k.width,k.height,!0),T.style.backgroundColor=g.ColorUtils.colorToHash(S),this.createTextFloodFilter(void 0,T,S);var R=!O&&!p.Browser.IE&&this.getExportCssRules();if(R){var P=document.createElementNS(d.svgNS,"style");P.innerHTML=R,T.appendChild(P)}if(w){var B=document.createElementNS(d.svgNS,"rect");B.setAttributeNS(null,"x","0"),B.setAttributeNS(null,"y","0"),B.setAttributeNS(null,"height",k.height.toString()),B.setAttributeNS(null,"width",k.width.toString()),B.setAttributeNS(null,"fill",T.style.backgroundColor),T.appendChild(B)}for(var W=0;W<this.itemsContainer.childNodes.length;W++){var N=this.itemsContainer.childNodes[W].cloneNode(!0);R||this.inlineStyle(N,this.itemsContainer.childNodes[W]),T.appendChild(N)}return T},y.prototype.getSvgImageUrl=function(E,S,O){var w=this.getSvgImage(E,S,O,!1);return this.getSvgBase64String(w)},y.prototype.getSvgString=function(E){return(new XMLSerializer).serializeToString(E)},y.prototype.getSvgBase64String=function(E){var S=this.getSvgString(E);return y.base64Start+this.getBase64EncodeUnicode(S)},y.prototype.getBase64EncodeUnicode=function(E){return btoa(encodeURIComponent(E).replace(/%([0-9A-F]{2})/g,function(S,O){return String.fromCharCode(parseInt("0x"+O,16))}))},y.prototype.getExportCssRules=function(){for(var E=0;E<document.styleSheets.length;E++){var S=this.getRules(document.styleSheets[E]);if(S){for(var O="",w=0;w<S.length;w++){var T=S[w],k=this.isCSSStyleRule(T)?T.selectorText:null;k&&this.checkSelector(k)&&(O+=T.cssText+"\n")}if(O.length>0)return"\n"+O}}},y.prototype.checkSelector=function(E){for(var S=0;S<y.exportStyleRules.length;S++)if(0===E.indexOf(y.exportStyleRules[S]))return!0;return!1},y.prototype.getRules=function(E){try{return this.isCSSStyleSheet(E)?E.rules||E.cssRules:null}catch{}},y.prototype.isCSSStyleSheet=function(E){return void 0!==E.rules},y.prototype.isCSSStyleRule=function(E){return void 0!==E.selectorText},y.prototype.inlineStyle=function(E,S){for(var O=0;O<E.childNodes.length;O++){var w=E.childNodes[O];if(w.tagName)if("g"===w.tagName)this.inlineStyle(w,S.childNodes[O]);else if(w.style){var T=window.getComputedStyle(S.childNodes[O]);if(void 0!==T)for(var k=0;k<y.exportStyleAttributes.length;k++){var R=y.exportStyleAttributes[k];w.style.setProperty(R,T.getPropertyValue(R))}this.inlineStyle(w,S.childNodes[O])}}},y.prototype.exportSvgImage=function(E,S,O){O(this.getSvgImageUrl(E,S,!0))},y.prototype.exportBinaryImage=function(E,S,O,w,T){var k=this.getAbsoluteSize(E).clone().applyConverter(Math.ceil),R=document.createElement("canvas");R.width=k.width,R.height=k.height;var P=R.getContext("2d");if(P.fillStyle=g.ColorUtils.colorToHash(S),P.fillRect(0,0,k.width,k.height),(T||p.Browser.IE)&&"object"==typeof canvg)this.exportBinaryImageCanvgAsync(E,S,R,P,O).then(function(W){return w(W)});else if(p.Browser.IE&&"function"==typeof canvg)this.exportBinaryImageCanvgOld(E,S,R,P,O,w);else{var B=new Image;B.width=k.width,B.height=k.height,B.setAttribute("crossOrigin","anonymous"),B.onload=function(){P.drawImage(B,0,0),w(R.toDataURL(O,1))},B.src=this.getSvgImageUrl(E,S,!0)}},y.prototype.exportBinaryImageCanvgOld=function(E,S,O,w,T,k){var R=this.getSvgImage(E,S,!0,!1),P=this.getSvgString(R);w.drawSvg(P,0,0,null,null,{renderCallback:function(){k(O.toDataURL(T,1))}})},y.prototype.exportBinaryImageCanvgAsync=function(E,S,O,w,T){return C(this,void 0,void 0,function(){var k,R;return f(this,function(P){switch(P.label){case 0:return k=this.getSvgImage(E,S,!0,!0),R=this.getSvgString(k),[4,canvg.Canvg.fromString(w,R).render()];case 1:return P.sent(),[2,O.toDataURL(T,1)]}})})},y.prototype.exportPngImage=function(E,S,O,w){this.exportBinaryImage(E,S,"image/png",O,w)},y.prototype.exportJpgImage=function(E,S,O,w){this.exportBinaryImage(E,S,"image/jpeg",O,w)},y.prototype.notifyModelChanged=function(E){},y.prototype.notifyPageColorChanged=function(E){},y.prototype.notifyPageSizeChanged=function(E,S){},y.base64Start="data:image/svg+xml;base64,",y.exportStyleRules=[".dxdi-canvas .shape ",".dxdi-canvas .connector ",".dxdi-canvas text",".dxdi-canvas.export"],y.exportStyleAttributes=["fill","stroke","stroke-width","stroke-linejoin","font-family","font-size","font-weight","font-style","text-decoration","text-anchor"],y}(u.CanvasManagerBase);l.CanvasExportManager=x},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ExportSvgCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.getExtension=function(){return"svg"},a.prototype.getExportFunc=function(){return this.exporter.exportSvg},a}(o(98).ExportImageCommand);l.ExportSvgCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ExportJpgCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.getExtension=function(){return"jpg"},a.prototype.getExportFunc=function(){return this.exporter.exportJpg},a}(o(98).ExportImageCommand);l.ExportJpgCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.CopySelectionCommand=void 0;var C=o(73),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabled=function(){return a.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty(!0)},p.prototype.isEnabledInReadOnlyMode=function(){return!0},p.prototype.executeCore=function(s){var u=(new C.Exporter).exportItems(this.control.selection.getSelectedItems(!0,!0));return this.setClipboardData(u),!0},p}(o(101).ClipboardCommand);l.CopySelectionCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.CutSelectionCommand=void 0;var C=o(73),f=o(4),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.isEnabled=function(){var u=this.control.selection.getSelectedItems();return p.prototype.isEnabled.call(this)&&u.length&&(u.length>1||this.permissionsProvider.canDeleteItems(u))},s.prototype.executeCore=function(u){var d=new C.Exporter,h=this.control.selection.getSelectedItems(!0,!0),g=d.exportItems(h);return this.permissionsProvider.beginDeleteItems(h),this.setClipboardData(g),f.ModelUtils.deleteSelection(this.control.history,this.control.model,this.control.selection),this.permissionsProvider.endDeleteItems(),!0},Object.defineProperty(s.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),s}(o(101).ClipboardCommand);l.CutSelectionCommand=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.PasteSelectionCommand=void 0;var C=o(0),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.getEventPositionOffset=function(s,u){return new C.Point(0,0)},p}(o(141).PasteSelectionCommandBase);l.PasteSelectionCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ImportShapeHistoryItem=void 0;var C=function(f){function a(p){var s=f.call(this)||this;return s.shape=p,s}return I(a,f),a.prototype.redo=function(p){this.shapeKey=this.shape.key,p.insertShape(this.shape)},a.prototype.undo=function(p){p.removeShape(p.model.findShape(this.shapeKey),!0)},a}(o(8).HistoryItem);l.ImportShapeHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ImportConnectorHistoryItem=void 0;var C=function(f){function a(p){var s=f.call(this)||this;return s.connector=p,s}return I(a,f),a.prototype.redo=function(p){this.connectorKey=this.connector.key,p.insertConnector(this.connector)},a.prototype.undo=function(p){var s=p.model.findConnector(this.connectorKey);p.removeConnector(s)},a}(o(8).HistoryItem);l.ImportConnectorHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(b,y){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var O in S)S.hasOwnProperty(O)&&(E[O]=S[O])})(b,y)},function(b,y){function E(){this.constructor=b}c(b,y),b.prototype=null===y?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(l,"__esModule",{value:!0}),l.ImportBPMNCommand=void 0;var C=o(269),f=o(4),a=o(53),p=o(0),s=o(6),u=o(66),d=o(48),h=o(80),g=o(20),x=function(b){function y(){return null!==b&&b.apply(this,arguments)||this}return I(y,b),y.prototype.executeCore=function(E,S){var O=new C.BPMNImporter(S).import();return this.updateModel(O),!0},y.prototype.updateModel=function(E){var S=this,O={},w=[],T=[];this.control.history.beginTransaction(),E.items.forEach(function(R){var P=new a.AddShapeHistoryItem(S.getShapeDescription(R.type),new p.Point(0,0),R.text,R.key);S.control.history.addAndRedo(P),O[R.key]=P.shapeKey;var B=S.control.model.findShape(P.shapeKey);w.push(B)}),E.edges.forEach(function(R){var P=S.control.model.findShape(O[R.from]),B=S.control.model.findShape(O[R.to]),W=new u.AddConnectorHistoryItem([P.getConnectionPointPosition(0),B.getConnectionPointPosition(0)]);S.control.history.addAndRedo(W);var N=S.control.model.findConnector(W.connectorKey);S.control.history.addAndRedo(new d.AddConnectionHistoryItem(N,P,0,s.ConnectorPosition.Begin)),S.control.history.addAndRedo(new d.AddConnectionHistoryItem(N,B,0,s.ConnectorPosition.End)),T.push(N)});var k=new g.LayoutSettings;f.ModelUtils.getGraphInfoByItems(this.control.model,w,T).forEach(function(R){var P=new h.SugiyamaLayoutBuilder(k,R.graph).build(),B=f.ModelUtils.getNonGraphItems(S.control.model,R.container,P.nodeToLayout,w,T);f.ModelUtils.applyLayout(S.control.history,S.control.model,void 0,R.graph,P,B,k,S.control.settings.snapToGrid,S.control.settings.gridSize,!1)}),f.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.endTransaction()},y.prototype.getShapeDescription=function(E){return this.control.shapeDescriptionManager.get(E)},y}(o(57).ExportImportCommandBase);l.ImportBPMNCommand=x},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(h,g){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,g)},function(h,g){function x(){this.constructor=h}c(h,g),h.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)});Object.defineProperty(l,"__esModule",{value:!0}),l.BPMNNode=l.BPMNImporter=void 0;var C=o(54),f=o(1),a=o(38),p=o(95),s=function(){function h(g){this.doc=p.ImportUtils.createDocument(g),this.graph=new C.Graph([],[])}return h.prototype.import=function(){for(var g=void 0,x=0;g=this.doc.children[x];x++)"DEFINITIONS"===g.nodeName.toUpperCase()&&this.onDefinitionsElement(g);return this.validate(),this.graph},h.prototype.validate=function(){var g={};this.graph.nodes.forEach(function(y){return g[y]=!0});for(var x=0,b=void 0;b=this.graph.edges[x];x++)g[b.from]&&g[b.to]||(this.graph.edges.splice(x,1),x--)},h.prototype.onDefinitionsElement=function(g){this.dataSourceKey=g.getAttribute("id");for(var x=void 0,b=0;x=g.children[b];b++)"PROCESS"===x.nodeName.toUpperCase()&&this.onProcessElement(x)},h.prototype.onProcessElement=function(g){for(var x=void 0,b=0;x=g.children[b];b++)switch(x.nodeName.toUpperCase()){case"STARTEVENT":this.onStartEventElement(x);break;case"SEQUENCEFLOW":this.onSequenceFlowElement(x);break;case"SCRIPTTASK":this.onScriptTaskElement(x);break;case"USERTASK":this.onUserTaskElement(x);break;case"SERVICETASK":this.onServiceTaskElement(x);break;case"SENDTASK":this.onSendTaskElement(x);break;case"EXCLUSIVEGATEWAY":this.onExclusiveGateway(x);break;case"ENDEVENT":this.onEndEventGateway(x)}},h.prototype.onStartEventElement=function(g){var x=this.createNode(g);x.type=f.ShapeTypes.Ellipse,x.text=g.getAttribute("name"),this.graph.addNode(x)},h.prototype.onSequenceFlowElement=function(g){var x=g.getAttribute("sourceRef"),b=g.getAttribute("targetRef"),y=this.createEdge(g,x,b);g.hasAttribute("name")&&(y.text=g.getAttribute("name")),this.graph.addEdge(y)},h.prototype.onScriptTaskElement=function(g){var x=this.createNode(g);x.text=g.getAttribute("name"),this.graph.addNode(x)},h.prototype.onUserTaskElement=function(g){var x=this.createNode(g);x.text=g.getAttribute("name"),this.graph.addNode(x)},h.prototype.onServiceTaskElement=function(g){var x=this.createNode(g);x.text=g.getAttribute("name"),this.graph.addNode(x)},h.prototype.onSendTaskElement=function(g){var x=this.createNode(g);x.text=g.getAttribute("name"),this.graph.addNode(x)},h.prototype.onExclusiveGateway=function(g){var x=this.createNode(g);x.text=g.getAttribute("name"),x.type=f.ShapeTypes.Decision,this.graph.addNode(x)},h.prototype.onEndEventGateway=function(g){var x=this.createNode(g);x.text=g.getAttribute("name"),x.type=f.ShapeTypes.Ellipse,this.graph.addNode(x)},h.prototype.createNode=function(g){return new u(this.dataSourceKey,g.getAttribute("id"))},h.prototype.createEdge=function(g,x,b){return new d(this.dataSourceKey,g.getAttribute("id"),x,b)},h}();l.BPMNImporter=s;var u=function(h,g){this.sourceKey=h,this.key=g,this.type=f.ShapeTypes.Rectangle};l.BPMNNode=u;var d=function(h){function g(x,b,y,E){var S=h.call(this,b,y,E)||this;return S.sourceKey=x,S}return I(g,h),g}(a.Edge)},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CycleRemover=void 0;var c=o(54),I=o(38),C=o(90),f=function(){function a(){}return a.removeCycles=function(p){var s=this.getFeedbackSet(p);return this.reverseEdges(p,s)},a.getFeedbackSet=function(p){for(var s=this,u={},d=this.getNonTrivialStronglyConnectedComponents(p);d.length;)d.forEach(function(h){var g=s.getMaxCyclicEdges(h);g.forEach(function(x){return delete u[x.reverse().getHashKey()]}),g.forEach(function(x){return u[x.getHashKey()]=!0})}),d=this.getNonTrivialStronglyConnectedComponents(this.reverseEdges(p,u).graph);return u},a.getMaxCyclicEdges=function(p){var s={},u={},d={},h=[],g=[],x=p.createIterator(I.ConnectionMode.Outgoing);x.visitEachEdgeOnce=!1,x.onNode=function(y){u[y.key]=!0},x.skipNode=function(y){if(u[y.key]){for(var E=[],S=0;S<h.length;S++){var O=h[S];if(void 0===d[O.key]&&(d[O.key]=0),d[O.key]++,E.push(O),O.from===y.key)break}g.push(E)}return u[y.key]||s[y.key]},x.skipEdge=function(y){return!1},x.onEdge=function(y){h.splice(0,0,y)},x.onAfterEdge=function(y){h.splice(0,1)},x.onAllEdges=function(y){s[y.key]=!0,u[y.key]=!1},x.iterate(p.nodes[0]);var b=new C.HashSet([],function(y){return y.key});return g.forEach(function(y){b.tryPush(y.reduce(function(E,S){return d[S.key]>d[E.key]?S:E},y[0]))}),b.list()},a.reverseEdges=function(p,s){var u=new C.HashSet([],function(g){return g.getHashKey()}),d={},h={};return p.edges.forEach(function(g){s[g.getHashKey()]&&(g=g.reverse(),d[g.key]=!0),u.tryPush(g)||(h[g.key]=!0,delete d[g.key])}),{graph:new c.Graph(p.nodes.map(function(g){return p.getNode(g)}),u.list()),reversedEdges:d,removedEdges:h}},a.getNonTrivialStronglyConnectedComponents=function(p){return this.getStronglyConnectedComponents(p).filter(function(s){return s.edges.length})},a.getStronglyConnectedComponents=function(p){for(var s=this,u=[],d=0,h={},g={},x={},b=[],y={},E=0;E<p.nodes.length;E++){var S=p.nodes[E],O=p.createIterator(I.ConnectionMode.Outgoing);O.visitEachEdgeOnce=!1,O.visitEachNodeOnce=!1,O.onNode=function(w){y[w.key]=!0,u.push(w),x[w.key]=!0,g[w.key]=d,h[w.key]=d,d++},O.skipNode=function(w){return y[w.key]},O.skipEdge=function(w){var T=y[w.to];return T&&x[w.to]&&(g[w.from]=Math.min(g[w.from],h[w.to])),T},O.onAfterEdge=function(w){g[w.from]=Math.min(g[w.from],g[w.to])},O.onAllEdges=function(w,T){T&&g[w.key]===h[w.key]&&b.push(s.getStronglyConnectedComponent(p,w,u,x))},O.iterate(S)}return b},a.getStronglyConnectedComponent=function(p,s,u,d){var h,g={},x=[],b=[];do{h=u.pop(),g[h.key]||x.push(h),g[h.key]=!0,d[h.key]=!1}while(h!==s);return x.forEach(function(y){var E=p.getAdjacentEdges(y.key,I.ConnectionMode.Outgoing);b=b.concat(E.filter(function(S){return!g[S.key]&&g[S.to]})),E.forEach(function(S){return g[S.key]=!0})}),new c.Graph(x,b)},a}();l.CycleRemover=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.SendToBackCommand=void 0;var C=o(102),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabled=function(){var s=this.control.selection.getSelectedItems();return a.prototype.isEnabled.call(this)&&s.length>0&&this.needSendToBack(s)},p.prototype.executeCore=function(s,u){var d=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedItems().forEach(function(h){var g=d.control.model.getIntersectItemsMinZIndex(h)-1;d.control.history.addAndRedo(new C.ChangeZindexHistoryItem(h,g))}),this.control.history.endTransaction(),!0},p.prototype.needSendToBack=function(s){for(var u=this,d=function(b){var y=h.control.model.getIntersectItemsMinZIndex(s[b]);if(y<s[b].zIndex)return{value:!0};if(y===s[b].zIndex){var E=!1;return h.control.model.getIntersectItems(s[b]).filter(function(S){return S.zIndex===s[b].zIndex}).forEach(function(S){u.control.model.getItemIndex(S)<u.control.model.getItemIndex(s[b])&&(E=!0)}),{value:E}}},h=this,g=0;g<s.length;g++){var x=d(g);if("object"==typeof x)return x.value}return!1},p}(o(10).SimpleCommandBase);l.SendToBackCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.BringToFrontCommand=void 0;var C=o(102),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabled=function(){var s=this.control.selection.getSelectedItems();return a.prototype.isEnabled.call(this)&&s.length>0&&this.needBringToFront(s)},p.prototype.executeCore=function(s,u){var d=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedItems().forEach(function(h){var g=d.control.model.getIntersectItemsMaxZIndex(h)+1;d.control.history.addAndRedo(new C.ChangeZindexHistoryItem(h,g))}),this.control.history.endTransaction(),!0},p.prototype.needBringToFront=function(s){for(var u=this,d=function(b){var y=h.control.model.getIntersectItemsMaxZIndex(s[b]);if(y>s[b].zIndex)return{value:!0};if(y===s[b].zIndex){var E=!1;return h.control.model.getIntersectItems(s[b]).filter(function(S){return S.zIndex===s[b].zIndex}).forEach(function(S){u.control.model.getItemIndex(S)>u.control.model.getItemIndex(s[b])&&(E=!0)}),{value:E}}},h=this,g=0;g<s.length;g++){var x=d(g);if("object"==typeof x)return x.value}return!1},p}(o(10).SimpleCommandBase);l.BringToFrontCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(O,w){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,k){T.__proto__=k}||function(T,k){for(var R in k)k.hasOwnProperty(R)&&(T[R]=k[R])})(O,w)},function(O,w){function T(){this.constructor=O}c(O,w),O.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)});Object.defineProperty(l,"__esModule",{value:!0}),l.MoveStepDownCommand=l.MoveDownCommand=l.MoveStepUpCommand=l.MoveUpCommand=l.MoveStepRightCommand=l.MoveRightCommand=l.MoveStepLeftCommand=l.MoveLeftCommand=l.MoveCommand=void 0;var C=o(0),f=o(4),a=o(12),p=o(10),s=o(58),u=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.isEnabled=function(){return O.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty()},w.prototype.executeCore=function(T,k){var R=this;this.control.history.beginTransaction();var P=this.control.selection,B=P.getSelectedShapes();B.filter(function(N){for(;N.container;){if(-1!==B.indexOf(N.container))return!1;N=N.container}return!0}).forEach(function(N){R.permissionsProvider.addInteractingItem(N,s.DiagramModelOperation.MoveShape);var V=R.getPosition(N.position);f.ModelUtils.setShapePosition(R.control.history,R.control.model,N,V),f.ModelUtils.updateShapeAttachedConnectors(R.control.history,R.control.model,N),R.permissionsProvider.clearInteractingItems()});var W=f.ModelUtils.createSelectedItems(P);return P.getSelectedConnectors().forEach(function(N){if(f.ModelUtils.canMoveConnector(W,N))for(var U=N.endItem?N.points.length-2:N.points.length-1,K=N.beginItem?1:0;K<=U;K++){var Y=R.getPosition(N.points[K]);f.ModelUtils.moveConnectorPoint(R.control.history,N,K,Y)}}),f.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.endTransaction(),!0},Object.defineProperty(w.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),w}(p.SimpleCommandBase);l.MoveCommand=u;var d=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return T.clone().offset(-a.UnitConverter.pixelsToTwips(1),0)},w}(u);l.MoveLeftCommand=d;var h=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return this.control.settings.snapToGrid?new C.Point(f.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,T.x-(this.control.settings.gridSize/2+2),!0),T.y):T.clone().offset(-this.control.settings.gridSize,0)},w}(u);l.MoveStepLeftCommand=h;var g=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return T.clone().offset(a.UnitConverter.pixelsToTwips(1),0)},w}(u);l.MoveRightCommand=g;var x=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return this.control.settings.snapToGrid?new C.Point(f.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,T.x+(this.control.settings.gridSize/2+2),!0),T.y):T.clone().offset(this.control.settings.gridSize,0)},w}(u);l.MoveStepRightCommand=x;var b=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return T.clone().offset(0,-a.UnitConverter.pixelsToTwips(1))},w}(u);l.MoveUpCommand=b;var y=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return this.control.settings.snapToGrid?new C.Point(T.x,f.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,T.y-(this.control.settings.gridSize/2+2),!1)):T.clone().offset(0,-this.control.settings.gridSize)},w}(u);l.MoveStepUpCommand=y;var E=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return T.clone().offset(0,a.UnitConverter.pixelsToTwips(1))},w}(u);l.MoveDownCommand=E;var S=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return this.control.settings.snapToGrid?new C.Point(T.x,f.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,T.y+(this.control.settings.gridSize/2+2),!1)):T.clone().offset(0,this.control.settings.gridSize)},w}(u);l.MoveStepDownCommand=S},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(B,W){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,V){N.__proto__=V}||function(N,V){for(var U in V)V.hasOwnProperty(U)&&(N[U]=V[U])})(B,W)},function(B,W){function N(){this.constructor=B}c(B,W),B.prototype=null===W?Object.create(W):(N.prototype=W.prototype,new N)});Object.defineProperty(l,"__esModule",{value:!0}),l.ToggleAutoZoomCommand=l.ToggleAutoZoomToWidthCommand=l.ToggleAutoZoomToContentCommand=l.SwitchAutoZoomCommand=l.FitToWidthCommand=l.FitToScreenCommand=l.ChangeZoomLevelItemsCommand=l.ChangeZoomLevelTo200Command=l.ChangeZoomLevelTo150Command=l.ChangeZoomLevelTo125Command=l.ChangeZoomLevelTo100Command=l.ChangeZoomLevelTo75Command=l.ChangeZoomLevelTo50Command=l.ChangeZoomLevelTo25Command=l.ChangeZoomLevelInPercentageCommand=l.ChangeZoomLevelCommand=void 0;var C=o(10),f=o(28),a=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.getValue=function(){return this.control.view.getZoom()},W.prototype.executeCore=function(N,V){return this.control.settings.zoomLevel=V,this.control.settings.autoZoom=f.AutoZoomMode.Disabled,this.control.updateLayout(!0),!0},W.prototype.getItems=function(){return this.control.settings.zoomLevelItems.map(function(N){return{value:N,text:100*N+"%"}})},W}(C.SimpleCommandBase);l.ChangeZoomLevelCommand=a;var p=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.executeCore=function(N,V){return B.prototype.executeCore.call(this,N,V/100)},W.prototype.getValue=function(){return 100*this.control.view.getZoom()},W}(a);l.ChangeZoomLevelInPercentageCommand=p;var s=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.getValue=function(){return this.control.view.getZoom()===this.exactValue},W.prototype.executeCore=function(N,V){return B.prototype.executeCore.call(this,N,this.exactValue),!0},W.prototype.getItems=function(){},W}(a),u=function(B){function W(){var N=null!==B&&B.apply(this,arguments)||this;return N.exactValue=.25,N}return I(W,B),W}(s);l.ChangeZoomLevelTo25Command=u;var d=function(B){function W(){var N=null!==B&&B.apply(this,arguments)||this;return N.exactValue=.5,N}return I(W,B),W}(s);l.ChangeZoomLevelTo50Command=d;var h=function(B){function W(){var N=null!==B&&B.apply(this,arguments)||this;return N.exactValue=.75,N}return I(W,B),W}(s);l.ChangeZoomLevelTo75Command=h;var g=function(B){function W(){var N=null!==B&&B.apply(this,arguments)||this;return N.exactValue=1,N}return I(W,B),W}(s);l.ChangeZoomLevelTo100Command=g;var x=function(B){function W(){var N=null!==B&&B.apply(this,arguments)||this;return N.exactValue=1.25,N}return I(W,B),W}(s);l.ChangeZoomLevelTo125Command=x;var b=function(B){function W(){var N=null!==B&&B.apply(this,arguments)||this;return N.exactValue=1.5,N}return I(W,B),W}(s);l.ChangeZoomLevelTo150Command=b;var y=function(B){function W(){var N=null!==B&&B.apply(this,arguments)||this;return N.exactValue=2,N}return I(W,B),W}(s);l.ChangeZoomLevelTo200Command=y;var E=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.getValue=function(){return this.control.settings.zoomLevelItems},W.prototype.executeCore=function(N,V){return this.control.settings.zoomLevelItems=V,!0},W}(C.SimpleCommandBase);l.ChangeZoomLevelItemsCommand=E;var S=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.isEnabled=function(){return B.prototype.isEnabled.call(this)&&!!this.control.render},W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.executeCore=function(N){var V=this.getZoomLevel();return this.control.settings.zoomLevel=V,this.control.settings.autoZoom=f.AutoZoomMode.Disabled,this.control.updateLayout(!0),!0},W}(C.SimpleCommandBase),O=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.getZoomLevel=function(){return this.control.render.view.getActualAutoZoomLevel(f.AutoZoomMode.FitContent)},W}(S);l.FitToScreenCommand=O;var w=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.getZoomLevel=function(){return this.control.render.view.getActualAutoZoomLevel(f.AutoZoomMode.FitToWidth)},W}(S);l.FitToWidthCommand=w;var T=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.getValue=function(){return this.control.settings.autoZoom},W.prototype.executeCore=function(N,V){return V=parseInt(V),this.control.settings.autoZoom!==V&&(V===f.AutoZoomMode.Disabled&&(this.control.settings.zoomLevel=this.control.view.getZoom()),this.control.settings.autoZoom=V,this.control.updateLayout(!0),!0)},W}(C.SimpleCommandBase);l.SwitchAutoZoomCommand=T;var k=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.getValue=function(){return this.control.settings.autoZoom===f.AutoZoomMode.FitContent},W.prototype.executeCore=function(N,V){return B.prototype.executeCore.call(this,N,f.AutoZoomMode.FitContent)},W}(T);l.ToggleAutoZoomToContentCommand=k;var R=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.getValue=function(){return this.control.settings.autoZoom===f.AutoZoomMode.FitToWidth},W.prototype.executeCore=function(N,V){return B.prototype.executeCore.call(this,N,f.AutoZoomMode.FitToWidth)},W}(T);l.ToggleAutoZoomToWidthCommand=R;var P=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.isEnabled=function(){return B.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(N,V){var U;return this.control.settings.autoZoom!==(U=void 0===V?this.control.settings.autoZoom===f.AutoZoomMode.Disabled?f.AutoZoomMode.FitContent:f.AutoZoomMode.Disabled:V?f.AutoZoomMode.FitContent:f.AutoZoomMode.Disabled)&&(U||(this.control.settings.zoomLevel=this.control.view.getZoom()),this.control.settings.autoZoom=U,this.control.updateLayout(!0),!0)},W}(C.SimpleCommandBase);l.ToggleAutoZoomCommand=P},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.BindDocumentCommand=void 0;var C=o(103),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabledInReadOnlyMode=function(){return!0},p.prototype.executeCore=function(s,u){if(!u||!Array.isArray(u.nodeDataSource))throw Error("Format exception");return this.performImportData(u),this.control.updateLayout(!0),!0},p.prototype.performImportData=function(s){var u=this.control.createDocumentDataSource(s.nodeDataSource,s.edgeDataSource,s.dataParameters,s.nodeDataImporter,s.edgeDataImporter);this.control.beginUpdateCanvas(),this.permissionsProvider.lockPermissions();var d=new C.DataLayoutParameters(this.control.settings,s.layoutParameters);u.createModelItems(this.control.history,this.control.model,this.control.shapeDescriptionManager,this.control.selection,d,this.control.settings.snapToGrid,this.control.settings.gridSize,this.control.measurer),this.permissionsProvider.unlockPermissions(),this.control.endUpdateCanvas()},p}(o(10).SimpleCommandBase);l.BindDocumentCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.UnbindDocumentCommand=void 0;var C=o(4),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabledInReadOnlyMode=function(){return!0},p.prototype.executeCore=function(s){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}(o(10).SimpleCommandBase);l.UnbindDocumentCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.LockCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.getLockState=function(){return!0},a}(o(145).ChangeLockedCommand);l.LockCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.UnLockCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.getLockState=function(){return!1},a}(o(145).ChangeLockedCommand);l.UnLockCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.CloneDownCommand=l.CloneUpCommand=l.CloneRightCommand=l.CloneLeftCommand=l.CloneCommand=void 0;var C=o(4),f=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.isEnabled=function(){var g=this.control.selection.getSelectedItems();return d.prototype.isEnabled.call(this)&&g.length&&g.length>0&&this.permissionsProvider.canAddItems(g)},h.prototype.executeCore=function(g,x){var b=C.ModelUtils.createRectangle(this.control.selection.getSelectedItems());return C.ModelUtils.cloneSelectionToOffset(this.control.history,this.control.model,void 0,this.control.selection,this.getOffsetX(b),this.getOffsetY(b)),!0},Object.defineProperty(h.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),h.prototype.getOffsetX=function(g){return 0},h.prototype.getOffsetY=function(g){return 0},h}(o(10).SimpleCommandBase);l.CloneCommand=f;var a=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.getOffsetX=function(g){return-g.width},h}(f);l.CloneLeftCommand=a;var p=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.getOffsetX=function(g){return g.width},h}(f);l.CloneRightCommand=p;var s=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.getOffsetY=function(g){return-g.height},h}(f);l.CloneUpCommand=s;var u=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.getOffsetY=function(g){return g.height},h}(f);l.CloneDownCommand=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeViewUnitsCommand=l.ChangeUnitsCommand=void 0;var C=o(77),f=o(281),a=o(10),p=o(36),s=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.isEnabledInReadOnlyMode=function(){return!0},h.prototype.getValue=function(){return this.control.model.units},h.prototype.createHistoryItems=function(g){return[new f.ChangeUnitsHistoryItem(g)]},h.prototype.getItems=function(){return Object.keys(p.DiagramLocalizationService.unitItems).map(function(g){return{value:parseInt(g),text:p.DiagramLocalizationService.unitItems[g]}})},h}(C.ChangePagePropertyCommand);l.ChangeUnitsCommand=s;var u=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.isEnabledInReadOnlyMode=function(){return!0},h.prototype.getValue=function(){return this.control.settings.viewUnits},h.prototype.executeCore=function(g,x){return this.control.settings.viewUnits=x,!0},h.prototype.getItems=function(){return Object.keys(p.DiagramLocalizationService.unitItems).map(function(g){return{value:parseInt(g),text:p.DiagramLocalizationService.unitItems[g]}})},h}(a.SimpleCommandBase);l.ChangeViewUnitsCommand=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeUnitsHistoryItem=void 0;var C=function(f){function a(p){var s=f.call(this)||this;return s.units=p,s}return I(a,f),a.prototype.redo=function(p){this.oldUnits=p.model.units,p.model.units=this.units},a.prototype.undo=function(p){p.model.units=this.oldUnits},a}(o(8).HistoryItem);l.ChangeUnitsHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangePageColorCommand=void 0;var C=o(77),f=o(283),a=o(62),p=o(22),s=function(u){function d(){return null!==u&&u.apply(this,arguments)||this}return I(d,u),d.prototype.getValue=function(){return p.ColorUtils.colorToHash(this.control.model.pageColor)},d.prototype.getDefaultValue=function(){return p.ColorUtils.colorToHash(a.DiagramModel.defaultPageColor)},d.prototype.createHistoryItems=function(h){return[new f.ChangePageColorHistoryItem(p.ColorUtils.fromString(h))]},d}(C.ChangePagePropertyCommand);l.ChangePageColorCommand=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangePageColorHistoryItem=void 0;var C=function(f){function a(p){var s=f.call(this)||this;return s.value=p,s}return I(a,f),a.prototype.redo=function(p){this.oldValue=p.model.pageColor,p.changePageColor(this.value)},a.prototype.undo=function(p){p.changePageColor(this.oldValue)},a}(o(8).HistoryItem);l.ChangePageColorHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeShowGridCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.isEnabledInReadOnlyMode=function(){return!0},a.prototype.executeCore=function(p,s){var u=void 0===s?!this.control.settings.showGrid:!!s;return this.control.settings.showGrid!==u&&(this.control.settings.showGrid=u,!0)},a.prototype.getValue=function(){return this.control.settings.showGrid},a}(o(10).SimpleCommandBase);l.ChangeShowGridCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ToggleFullscreenCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.isEnabledInReadOnlyMode=function(){return!0},a.prototype.getValue=function(){return this.control.settings.fullscreen},a.prototype.executeCore=function(p,s){return this.control.settings.fullscreen!==("boolean"==typeof s?s:!p.value)&&(this.control.settings.fullscreen=!p.value,this.control.notifyToggleFullscreen(this.control.settings.fullscreen)),!0},a}(o(10).SimpleCommandBase);l.ToggleFullscreenCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ToggleSimpleViewCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.isEnabledInReadOnlyMode=function(){return!0},a.prototype.getValue=function(){return this.control.settings.simpleView},a.prototype.executeCore=function(p,s){return"boolean"==typeof s?this.control.settings.simpleView=s:void 0===s&&(this.control.settings.simpleView=!p.value),this.control.updateLayout(!0),!0},a}(o(10).SimpleCommandBase);l.ToggleSimpleViewCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ToggleReadOnlyCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.isEnabledInReadOnlyMode=function(){return!0},a.prototype.getValue=function(){return this.control.settings.readOnly},a.prototype.executeCore=function(p,s){return"boolean"==typeof s?this.control.settings.readOnly=s:void 0===s&&(this.control.settings.readOnly=!p.value),!0},a}(o(10).SimpleCommandBase);l.ToggleReadOnlyCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.EditShapeImageCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.isEnabled=function(){var p=this.getSelectedShape();return f.prototype.isEnabled.call(this)&&!p.image.isEmpty},a}(o(104).EditShapeImageCommandBase);l.EditShapeImageCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.PasteSelectionInPositionCommand=void 0;var C=o(141),f=o(14),a=o(6),p=o(0),s=function(u){function d(){return null!==u&&u.apply(this,arguments)||this}return I(d,u),d.prototype.getEventPositionOffset=function(h,g){var x=h.reduce(function(y,E){return{x:Math.min(y.x,E instanceof f.Shape?E.position.x:E instanceof a.Connector?E.getMinX():Number.MAX_VALUE),y:Math.min(y.y,E instanceof f.Shape?E.position.y:E instanceof a.Connector?E.getMinY():Number.MAX_VALUE)}},{x:Number.MAX_VALUE,y:Number.MAX_VALUE}),b=this.control.render.getModelPointByEventPoint(g.x,g.y);return new p.Point(b.x-x.x,b.y-x.y)},d}(C.PasteSelectionCommandBase);l.PasteSelectionInPositionCommand=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.ImportXMLCommand=void 0;var C=o(291),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.executeCore=function(s,u){var d=new C.XmlImporter(this.control.shapeDescriptionManager,u).import();return this.control.importModel(d),!0},p}(o(57).ExportImportCommandBase);l.ImportXMLCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(l,"__esModule",{value:!0}),l.XmlImporter=void 0;var C=o(6),f=o(14),a=o(133),p=o(1),s=o(91),u=o(2),d=o(0),h=o(95),g=o(22),x=o(12),b=function(y){function E(S,O){var w=y.call(this,S)||this;return w.doc=h.ImportUtils.createDocument(O),w}return I(E,y),E.prototype.getObject=function(){return this.doc},E.prototype.getPageObject=function(S){var O=this.doc.querySelectorAll("[ItemKind='DiagramRoot']");return O&&O[0]},E.prototype.getShapeObjects=function(S){var O=[];return this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramShape']").forEach(function(w){O.push(w)}),this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramContainer']").forEach(function(w){O.push(w)}),O},E.prototype.getConnectorObjects=function(S){var O=[];return this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramConnector']").forEach(function(w){O.push(w)}),O},E.prototype.importPageSettings=function(S,O){if(O){var w=O.getAttribute("PageSize"),T=this.getSize(w);T&&(S.size=T.clone(),S.pageSize=T.clone())}},E.prototype.importShape=function(S){var O=S.getAttribute("Position"),w=this.getPoint(O),T=S.getAttribute("Shape"),k=this.getShapeType(T),R=this.shapeDescriptionManager.get(k),P=new f.Shape(R||s.ShapeDescriptionManager.default,w);P.key=this.getItemKey(S);var B=S.getAttribute("Size"),W=this.getSize(B);W&&(P.size=W);var N=S.getAttribute("Content");if("string"==typeof N)P.text=N;else{var V=S.getAttribute("Header");"string"==typeof V&&(P.text=V)}return this.importStyle(S,P),P},E.prototype.importShapeChildren=function(S,O){var w=[];S.setAttribute("dxDiagram",""),this.doc.querySelectorAll("[dxDiagram] > Children > [ItemKind='DiagramShape']").forEach(function(W){w.push(W)}),this.doc.querySelectorAll("[dxDiagram] > Children > [ItemKind='DiagramContainer']").forEach(function(W){w.push(W)}),S.removeAttribute("dxDiagram");var T=[];if(!w)return T;for(var k=0;k<w.length;k++){var R=w[k],P=this.importShape(R);P.key=O.key+","+P.key;var B=O.clientRectangle;P.position=P.position.clone().offset(B.x,B.y),O.childKeys||(O.childKeys=[]),O.childKeys.push(P.key),T.push(P),T=T.concat(this.importShapeChildren(R,P))}return T},E.prototype.importConnector=function(S){var O=this,w=[],T=S.getAttribute("BeginPoint"),k=this.getPoint(T);k&&w.push(k),S.getAttribute("Points").split(" ").forEach(function(j){var ee=O.getPoint(j);ee&&w.push(ee)});var R=S.getAttribute("EndPoint"),P=this.getPoint(R);P&&w.push(P);var B=new C.Connector(w);B.key=this.getItemKey(S);var W=S.getAttribute("EndItemPointIndex"),N=parseInt(W);B.endConnectionPointIndex=isNaN(N)?-1:N;var V=S.getAttribute("BeginItemPointIndex"),U=parseInt(V);B.beginConnectionPointIndex=isNaN(U)?-1:U;var K=S.getAttribute("EndItem");void 0!==K&&this.assert(K,"string");var Y=S.getAttribute("BeginItem");void 0!==Y&&this.assert(Y,"string"),B.endItemKey=K,B.beginItemKey=Y;var J=S.getAttribute("Content");return"string"==typeof J&&B.setText(J),this.importStyle(S,B),B},E.prototype.importStyle=function(S,O){var w=S.getAttribute("Background");"string"==typeof w&&(O.style.fill=this.getColor(w));var T=S.getAttribute("Stroke");"string"==typeof T&&(O.style.stroke=this.getColor(T));var k=S.getAttribute("Foreground");"string"==typeof k&&(O.styleText.fill=this.getColor(k));var R=S.getAttribute("FontFamily");"string"==typeof R&&(O.styleText["font-family"]=R);var P=S.getAttribute("FontSize");"string"==typeof P&&(O.styleText["font-size"]=P),"Bold"===S.getAttribute("FontWeight")&&(O.styleText["font-weight"]="bold"),"Italic"===S.getAttribute("FontStyle")&&(O.styleText["font-style"]="italic"),"Underline"===S.getAttribute("TextDecorations")&&(O.styleText["text-decoration"]="underline");var B=S.getAttribute("TextAlignment");"Left"===B?O.styleText["text-anchor"]="start":"Right"===B?O.styleText["text-anchor"]="end":"Center"===B&&(O.styleText["text-anchor"]="middle")},E.prototype.getShapeType=function(S){return E.shapeTypes[S]?E.shapeTypes[S]:S&&S.toLowerCase().indexOf("container")>-1?p.ShapeTypes.VerticalContainer:p.ShapeTypes.Rectangle},E.prototype.getItemKey=function(S){return(parseInt(S.tagName.replace("Item",""))-1).toString()},E.prototype.getNumbers=function(S){var O=S.split(",");return O&&O.length?O.map(function(w){return+w}):[]},E.prototype.getSize=function(S){if(S){var O=this.getNumbers(S);if(O.length>=2)return this.assert(O[0],"number"),this.assert(O[1],"number"),new u.Size(x.UnitConverter.pixelsToTwips(O[0]),x.UnitConverter.pixelsToTwips(O[1]))}},E.prototype.getPoint=function(S){if(S){var O=this.getNumbers(S);if(O.length>=2)return this.assert(O[0],"number"),this.assert(O[1],"number"),new d.Point(x.UnitConverter.pixelsToTwips(O[0]),x.UnitConverter.pixelsToTwips(O[1]))}},E.prototype.getColor=function(S){S="#"===S.charAt(0)?S.substr(1):S;var O=parseInt(S,16);return isNaN(O)?void 0:g.ColorUtils.colorToHash(O)},E.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},E}(a.ImporterBase);l.XmlImporter=b},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.InsertShapeImageCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.isEnabled=function(){var p=this.getSelectedShape();return f.prototype.isEnabled.call(this)&&p.image.isEmpty},a}(o(104).EditShapeImageCommandBase);l.InsertShapeImageCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.DeleteShapeImageCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.isEnabled=function(){var p=this.getSelectedShape();return f.prototype.isEnabled.call(this)&&!p.image.isEmpty},a.prototype.executeCore=function(p,s){return f.prototype.executeCore.call(this,p,void 0)},a}(o(104).EditShapeImageCommandBase);l.DeleteShapeImageCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeStrokeStyleCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.getStyleProperty=function(){return"stroke-dasharray"},a}(o(75).ChangeStylePropertyCommand);l.ChangeStrokeStyleCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeStrokeWidthCommand=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.getStyleProperty=function(){return"stroke-width"},a}(o(75).ChangeStylePropertyCommand);l.ChangeStrokeWidthCommand=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.AutoLayoutTreeVerticalBottomToTopCommand=void 0;var C=o(20),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.createLayoutSettings=function(){var s=a.prototype.createLayoutSettings.call(this);return s.direction=C.LogicalDirectionKind.Backward,s},p}(o(137).AutoLayoutTreeVerticalCommand);l.AutoLayoutTreeVerticalBottomToTopCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.AutoLayoutTreeHorizontalRightToLeftCommand=void 0;var C=o(20),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.createLayoutSettings=function(){var s=a.prototype.createLayoutSettings.call(this);return s.direction=C.LogicalDirectionKind.Backward,s},p}(o(143).AutoLayoutTreeHorizontalCommand);l.AutoLayoutTreeHorizontalRightToLeftCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.AutoLayoutLayeredVerticalBottomToTopCommand=void 0;var C=o(20),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.createLayoutSettings=function(){var s=a.prototype.createLayoutSettings.call(this);return s.direction=C.LogicalDirectionKind.Backward,s},p}(o(144).AutoLayoutLayeredVerticalCommand);l.AutoLayoutLayeredVerticalBottomToTopCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.AutoLayoutLayeredHorizontalRightToLeftCommand=void 0;var C=o(20),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.createLayoutSettings=function(){var s=a.prototype.createLayoutSettings.call(this);return s.direction=C.LogicalDirectionKind.Backward,s},p}(o(142).AutoLayoutLayeredHorizontalCommand);l.AutoLayoutLayeredHorizontalRightToLeftCommand=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeConnectorRoutingModeCommand=void 0;var C=o(10),f=o(28),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.getValue=function(){return this.control.settings.connectorRoutingMode},s.prototype.executeCore=function(u,d){return this.control.settings.connectorRoutingMode=void 0!==d?d:f.ConnectorRoutingMode.None,!0},s}(C.SimpleCommandBase);l.ChangeConnectorRoutingModeCommand=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DiagramControl=void 0;var c=o(0),I=o(302),C=o(82),f=o(303),a=o(62),p=o(332),s=o(335),u=o(336),d=o(337),h=o(91),g=o(345),x=o(28),b=o(16),y=o(349),E=o(4),S=o(350),O=o(3),w=o(353),T=o(46),k=o(354),R=o(368),P=o(79),B=o(6),W=o(103),N=o(379),V=o(17),U=o(58),K=function(){function Y(){this.updateLockCount=0,this.shouldUpdateItemsByModel=!1,this.reloadContentNeeded=!1,this.reloadContentParameters=new N.ReloadContentParameters,this.reloadContentByExternalChangesParameters=new N.ReloadContentParameters,this.settings=new x.DiagramSettings,this.shapeDescriptionManager=new h.ShapeDescriptionManager,this.shapeDescriptionManager.onShapeDecriptionChanged.add(this),this.model=new a.DiagramModel,this.selection=new p.Selection(this.model),this.onNativeAction=new O.EventDispatcher,this.apiController=new w.ApiController(this.onNativeAction,this.selection,this.model),this.permissionsProvider=new k.PermissionsProvider(this.apiController),this.permissionsProvider.onRequestOperation.add(this),this.routingModel=new R.ConnectorRoutingModel,this.modelManipulator=new I.ModelManipulator(this.model,this.routingModel,this.permissionsProvider),this.modelManipulator.onModelChanged.add(this.permissionsProvider),this.history=new s.History(this.modelManipulator,this),this.barManager=new u.BarManager(this),this.view=new y.ViewController(this.settings,this.barManager),this.commandManager=new C.CommandManager(this),this.eventManager=new f.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 S.ToolboxManager(this.shapeDescriptionManager),this.settings.onConnectorRoutingModeChanged.add(this.routingModel),T.ImageCache.instance.onReadyStateChanged.add(this)}return Object.defineProperty(Y.prototype,"operationSettings",{get:function(){return this.permissionsProvider.operationSettings},enumerable:!1,configurable:!0}),Y.prototype.cleanMarkup=function(J){this.toolboxManager.clean(J=J||function(j){V.RenderUtils.removeElement(j)}),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(J),this.render=void 0),this.measurer&&this.measurer instanceof P.TextMeasurer&&this.measurer.clean()},Y.prototype.dispose=function(){T.ImageCache.instance.onReadyStateChanged.remove(this)},Y.prototype.createDocument=function(J,j,ee){this.measurer||this.initMeasurer(J),this.render?this.render.replaceParent(J,j):(this.render=new d.RenderManager(J,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)},j,ee),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())},Y.prototype.createToolbox=function(J,j,ee,G){var q=this.toolboxManager.create(J,this.settings.readOnly,!0,j,ee,this.getToolboxAllowedShapeTypes.bind(this),G);this.settings.onReadOnlyChanged.add(q),q.onDragOperation.add(this),q.onDragOperation.add(this.apiController),this.eventManager.registerToolbox(q)},Y.prototype.createContextToolbox=function(J,j,ee,G,q){this.cleanContextToolbox(),this.contextToolbox=this.toolboxManager.create(J,this.settings.readOnly,!1,j,ee,this.getToolboxAllowedShapeTypes.bind(this),G),this.contextToolbox.onClickOperation.add(this),this.contextToolboxOnClick=q},Y.prototype.getToolboxAllowedShapeTypes=function(J){var j=this,ee=[];return this.permissionsProvider.beginUpdateUI(),J.forEach(function(G){j.permissionsProvider.canAddShapeFromToolbox(G)&&ee.push(G)}),this.permissionsProvider.endUpdateUI(),ee},Y.prototype.cleanContextToolbox=function(){this.contextToolbox&&(this.toolboxManager.clean(void 0,this.contextToolbox),this.contextToolbox=void 0,this.contextToolboxOnClick=void 0)},Y.prototype.refreshToolbox=function(J){this.permissionsProvider.clearCache(b.DiagramModelOperation.AddShapeFromToolbox),this.toolboxManager.refresh(J)},Y.prototype.applyToolboxFilter=function(J,j){return this.toolboxManager.applyFilter(J,j)},Y.prototype.notifyToolboxClick=function(J){this.contextToolboxOnClick&&this.contextToolboxOnClick(J)},Y.prototype.initMeasurer=function(J){this.measurer=new P.TextMeasurer(J)},Y.prototype.onDimensionChanged=function(){U.Browser.TouchUI||this.updateLayout(!0)},Y.prototype.updateLayout=function(J){void 0===J&&(J=!1),this.render&&this.render.update(!J)},Y.prototype.captureFocus=function(){this.render&&this.render.input.captureFocus()},Y.prototype.isFocused=function(){return!this.render||this.render.input.isFocused()},Y.prototype.registerBar=function(J){this.barManager.registerBar(J)},Y.prototype.updateBarItemsState=function(J,j){this.barManager.updateBarItemsState(J,j)},Y.prototype.getCommand=function(J){return this.commandManager.getCommand(J)},Y.prototype.getNativeItemByKey=function(J){var j=this.model.findItem(J);return j&&this.apiController.createNativeItem(j)},Y.prototype.getNativeItemByDataKey=function(J){var j=this.model.findItemByDataKey(J);return j&&this.apiController.createNativeItem(j)},Y.prototype.getNativeItems=function(){var J=this;return this.model.items.map(function(j){return J.apiController.createNativeItem(j)})},Y.prototype.getNativeSelectedItems=function(){var J=this;return this.selection.getKeys().map(function(j){return J.apiController.createNativeItem(J.model.findItem(j))})},Y.prototype.setSelectedItems=function(J){this.selection.set(J)},Y.prototype.scrollToItems=function(J){var j=this,ee=O.GeometryUtils.getCommonRectangle(J.map(function(G){return j.model.findItem(G).rectangle}));this.view.scrollIntoView(ee)},Y.prototype.setInitialStyleProperties=function(J){this.selection.inputPosition.setInitialStyleProperties(J)},Y.prototype.setInitialTextStyleProperties=function(J){this.selection.inputPosition.setInitialTextStyleProperties(J)},Y.prototype.setInitialConnectorProperties=function(J){this.selection.inputPosition.setInitialConnectorProperties(J)},Y.prototype.addCustomShapes=function(J){var j=this;J.forEach(function(ee){ee.apiController=j.apiController,ee.defaultWidth&&(ee.defaultWidth=E.ModelUtils.getTwipsValue(j.model.units,ee.defaultWidth)),ee.defaultHeight&&(ee.defaultHeight=E.ModelUtils.getTwipsValue(j.model.units,ee.defaultHeight)),ee.minWidth&&(ee.minWidth=E.ModelUtils.getTwipsValue(j.model.units,ee.minWidth)),ee.minHeight&&(ee.minHeight=E.ModelUtils.getTwipsValue(j.model.units,ee.minHeight)),ee.maxWidth&&(ee.maxWidth=E.ModelUtils.getTwipsValue(j.model.units,ee.maxWidth)),ee.maxHeight&&(ee.maxHeight=E.ModelUtils.getTwipsValue(j.model.units,ee.maxHeight)),j.shapeDescriptionManager.registerCustomShape(ee)})},Y.prototype.removeCustomShapes=function(J){var j=this;J.forEach(function(ee){j.shapeDescriptionManager.unregisterCustomShape(ee)})},Y.prototype.removeAllCustomShapes=function(){this.shapeDescriptionManager.unregisterAllCustomShapes()},Y.prototype.importModel=function(J){J.units=this.model.units,this.model=J,this.model.initializeKeyCounter(),this.apiController.model=J,this.onImportData()},Y.prototype.importItemsData=function(){this.onImportData()},Y.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()},Y.prototype.createDocumentDataSource=function(J,j,ee,G,q){return this.documentDataSource=new g.DocumentDataSource(this,J,j,ee,G,q),this.apiController.setDataSource(this.documentDataSource),this.documentDataSource},Y.prototype.deleteDocumentDataSource=function(){this.apiController.setDataSource(null),delete this.documentDataSource},Y.prototype.applyShapeSizeSettings=function(J){this.settings.applyShapeSizeSettings(J,this.model.units)},Y.prototype.applyOperationSettings=function(J){this.permissionsProvider.operationSettings.applySettings(J)},Y.prototype.beginUpdateCanvas=function(){this.render&&(this.render.items.beginUpdate(),this.render.selection.beginUpdate())},Y.prototype.endUpdateCanvas=function(){this.render&&(this.render.items.endUpdate(),this.render.selection.endUpdate())},Y.prototype.beginUpdate=function(){this.barManager.beginUpdate(),this.apiController.beginUpdate(),this.eventManager.beginUpdate()},Y.prototype.endUpdate=function(){this.barManager.endUpdate(),this.apiController.endUpdate(),this.eventManager.endUpdate()},Y.prototype.notifyEdgeInserted=function(J,j,ee){this.onEdgeInserted?this.onEdgeInserted(J,j,ee):j(J)},Y.prototype.notifyEdgeUpdated=function(J,j,ee,G){this.onEdgeUpdated?this.onEdgeUpdated(J,j,ee,G):ee(J,j)},Y.prototype.notifyEdgeRemoved=function(J,j,ee,G){this.onEdgeUpdated?this.onEdgeRemoved(J,j,ee,G):ee(J,j)},Y.prototype.notifyNodeInserted=function(J,j,ee){this.onNodeInserted?this.onNodeInserted(J,j,ee):j(J)},Y.prototype.notifyNodeUpdated=function(J,j,ee,G){this.onNodeUpdated?this.onNodeUpdated(J,j,ee,G):ee(J,j)},Y.prototype.notifyNodeRemoved=function(J,j,ee,G){this.onNodeRemoved?this.onNodeRemoved(J,j,ee,G):ee(J,j)},Y.prototype.reloadInsertedItem=function(J){this.settings.reloadInsertedItemRequired&&this.reloadContent(J)},Y.prototype.reloadContent=function(J,j,ee,G){if(this.documentDataSource){this.isChangesLocked()&&(this.reloadContentNeeded=!0);var q=!0===G||void 0===G&&!this.reloadContentNeeded,Z=q?this.reloadContentByExternalChangesParameters:this.reloadContentParameters;Z.add(J,j,ee),this.isChangesLocked()||(this.reloadContentCore(Z,q),this.barManager.updateItemsState())}},Y.prototype.reloadContentCore=function(J,j){var ee=this,G=J.getData&&J.getData(),q=this.documentDataSource.refetchData(G&&G.nodeDataSource,G&&G.edgeDataSource);this.beginUpdateCanvas(),this.permissionsProvider.lockPermissions(),this.documentDataSource.updateModelItems(this.history,this.model,this.shapeDescriptionManager,this.selection,new W.DataLayoutParameters(this.settings,J.layoutParameters),j,J.dataKeys,function(Z){ee.modelManipulator.commitItemUpdateChanges(Z)},q,this.settings.snapToGrid,this.settings.gridSize,this.measurer),this.permissionsProvider.unlockPermissions(),this.endUpdateCanvas(),J.clear()},Y.prototype.notifyHistoryChanged=function(){this.documentDataSource?(this.shouldUpdateItemsByModel=!0,this.settings.readOnly||this.notifyDataChanges()):this.raiseOnChanged()},Y.prototype.notifyViewChanged=function(){this.settings.notifyViewChanged()},Y.prototype.notifyToolboxDragStart=function(J){this.render.notifyToolboxDragStart(J),this.onToolboxDragStart&&this.onToolboxDragStart()},Y.prototype.notifyToolboxDragEnd=function(J){this.render.notifyToolboxDragEnd(J),this.onToolboxDragEnd&&this.onToolboxDragEnd()},Y.prototype.notifyToolboxDraggingMouseMove=function(J){this.render&&this.render.notifyToolboxDraggingMouseMove(J)},Y.prototype.notifyTextInputStart=function(J,j,ee,G){this.onTextInputStart&&this.onTextInputStart()},Y.prototype.notifyTextInputEnd=function(J,j){this.onTextInputEnd&&this.onTextInputEnd()},Y.prototype.notifyTextInputPermissionsCheck=function(J,j){},Y.prototype.notifyToggleFullscreen=function(J){this.onToggleFullscreen&&this.onToggleFullscreen(J)},Y.prototype.notifyShowContextMenu=function(J,j){if(this.onShowContextMenu&&this.render){var ee=void 0;if(this.selection.getSelectedItems(!0).length>0){var G=E.ModelUtils.createRectangle(this.selection.getSelectedItems(!0)),q=this.render.getEventPointByModelPoint(G.createPosition()),Z=this.render.view.getAbsoluteSize(G.createSize());ee={x:q.x,y:q.y,width:Z.width,height:Z.height}}if(J)this.contextMenuPosition=new c.Point(J.x,J.y),this.onShowContextMenu(J.x,J.y,ee);else if(j){var X=this.render.getEventPointByModelPoint(j);this.contextMenuPosition=X.clone(),this.onShowContextMenu(X.x,X.y,ee)}}},Y.prototype.notifyHideContextMenu=function(){this.onHideContextMenu&&this.render&&this.onHideContextMenu()},Y.prototype.notifyShowContextToolbox=function(J,j,ee,G,q){if(this.onShowContextToolbox&&this.render){var Z=this.render.getEventPointByModelPoint(J);this.onShowContextToolbox(Z.x,Z.y,ee,G,q),this.render.view.notifyShowContextToolbox()}},Y.prototype.notifyHideContextToolbox=function(){this.onHideContextToolbox&&this.render&&(this.onHideContextToolbox(),this.render.view.notifyHideContextToolbox()),this.cleanContextToolbox()},Y.prototype.notifyShapeDescriptionChanged=function(J){this.modelManipulator.updateShapeDescription(J)},Y.prototype.notifyImageCacheReadyStateChanged=function(J){this.barManager.updateItemsState()},Y.prototype.raiseCanvasViewActualZoomChanged=function(){this.render.view.raiseActualZoomChanged()},Y.prototype.notifyRequestOperation=function(J,j){this.requestOperationByDataSource(J,j)||this.onRequestOperation&&this.onRequestOperation(J,j)},Y.prototype.requestOperationByDataSource=function(J,j){if(!this.documentDataSource||!this.documentDataSource.IsNodeParentIdMode()&&!this.documentDataSource.IsNodeItemsMode())return!1;if(J===b.DiagramModelOperation.ChangeConnection){var ee=j,G=ee.shape&&this.model.findItem(ee.shape.id),q=ee.connector&&this.model.findItem(ee.connector.id);if(!G||!q)return;if(ee.position===B.ConnectorPosition.End)for(var Z=0;Z<G.attachedConnectors.length;Z++){var X=G.attachedConnectors[Z];if(X!==q&&X.endItem&&X.endItem===G){ee.allowed=!1;break}}ee.allowed&&q.beginItem&&q.endItem&&this.isShapeParent(q.endItem,q.beginItem)&&(ee.allowed=!1)}return!j.allowed},Y.prototype.isShapeParent=function(J,j){if(J===j)return!0;for(var ee=0;ee<J.attachedConnectors.length;ee++){var G=J.attachedConnectors[ee];if(G.beginItem===J&&G.endItem){var q=G.endItem;if(q===j||this.isShapeParent(q,j))return!0}}return!1},Y.prototype.isChangesLocked=function(){return this.updateLockCount>0},Y.prototype.beginChangesNotification=function(){this.isChangesLocked()||this.changesLockChanged&&this.changesLockChanged(!0),this.updateLockCount++},Y.prototype.endChangesNotification=function(J){var j=this;this.updateLockCount--,this.isChangesLocked()||(this.changesLockChanged(!1),J||setTimeout(function(){j.notifyReloadContent(),j.notifyDataChanges()},0))},Y.prototype.changesLockChanged=function(J){J?this.lockedReadOnly=this.settings.readOnly:J=this.lockedReadOnly,this.commandManager.getCommand(C.DiagramCommand.ToggleReadOnly).execute(J)},Y.prototype.notifyDataChanges=function(){this.isChangesLocked()||(this.shouldUpdateItemsByModel&&(this.documentDataSource.updateItemsByModel(this.model),this.shouldUpdateItemsByModel=!1),this.raiseOnChanged())},Y.prototype.notifyReloadContent=function(){this.reloadContentNeeded&&(this.reloadContentParameters.empty||this.reloadContentCore(this.reloadContentParameters,!1),this.reloadContentByExternalChangesParameters.empty||this.reloadContentCore(this.reloadContentByExternalChangesParameters,!0),this.reloadContentNeeded=!1)},Y.prototype.raiseOnChanged=function(){this.onChanged&&this.onChanged()},Y}();l.DiagramControl=K},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ModelManipulator=void 0;var c=o(87),I=o(2),C=o(61),f=o(46),a=o(130),p=o(16),s=o(3),u=o(6),d=o(99),h=o(4),g=function(){function x(b,y,E){this.onModelChanged=new s.EventDispatcher,this.onModelSizeChanged=new s.EventDispatcher,this.initializeCore(b,y),this.permissionsProvider=E,this.imageLoader=new a.ImageLoader(this.updateShapeImage.bind(this))}return x.prototype.initialize=function(b,y){this.initializeCore(b,y),this.model.loadAllImages(this.imageLoader),this.updateModelSize()},x.prototype.initializeCore=function(b,y){var E=this;this.model=b,this.routingModel=y,this.routingModel&&(this.routingModel.initialize(b),b.iterateItems(function(S){if(S instanceof u.Connector){var O=E.routingModel.createStrategy(S.properties.lineOption);O?S.changeRoutingStrategy(O):S.invalidateRenderPoints()}}))},x.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(h.ModelUtils.createRectangle(this.model.items))},x.prototype.commitItemsCreateChanges=function(){C.Diagnostics.timer("new model: model changes"),this.commitItemsChangesCore(d.ItemChangeType.Create,this.model.items),C.Diagnostics.endTimer()},x.prototype.commitItemUpdateChanges=function(b){this.commitItemsChangesCore(d.ItemChangeType.UpdateStructure,[b])},x.prototype.commitItemsChangesCore=function(b,y){var E=[];y.forEach(function(S){E.push(new d.ItemChange(S,b))}),E.length&&this.raiseModelChanged(E)},x.prototype.insertToContainer=function(b,y){if(b.container&&y&&b.container.key!==y.key)throw Error("To insert an item to a container it's necessary to remove it from the current container.");y&&(-1===y.children.indexOf(b)&&y.children.push(b),b.container=y,this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Update)]))},x.prototype.removeFromContainer=function(b){if(b.container){var y=b.container.children.indexOf(b);b.container.children.splice(y,1),b.container=void 0,this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Update)])}},x.prototype.changeStyle=function(b,y,E){this.changeStyleCore(b,b.style,y,E)},x.prototype.changeStyleText=function(b,y,E){this.changeStyleCore(b,b.styleText,y,E)},x.prototype.changeStyleCore=function(b,y,E,S){void 0!==S?y[E]=S:delete y[E],this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties)])},x.prototype.changeZIndex=function(b,y){b.zIndex=y,this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Update)])},x.prototype.changeLocked=function(b,y){b.locked=y,this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateClassName)])},x.prototype.changeCustomData=function(b,y){b.customData=s.ObjectUtils.cloneObject(y),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateStructure)])},x.prototype.addShape=function(b,y){if(b.attachedConnectors.length)throw Error("A creating shape should not contain existing connectors.");return b.key=void 0!==y?y:this.model.getNextKey(),this.insertShape(b)},x.prototype.insertShape=function(b){this.model.pushItem(b);var y=this.permissionsProvider.canAddItems([b]);return this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Create,y)]),this.model.loadAllImages(this.imageLoader),b},x.prototype.resizeShape=function(b,y,E){b.position=y,b.size=E;var S=this.permissionsProvider.isStoredPermissionsGranted(),O=this.getInteractingItem(b,p.DiagramModelOperation.ResizeShape);if(O){var w=O.size.clone(),T=b.size.clone();T.equals(w)||(S=this.permissionsProvider.canResizeShapes([{shape:b,size:T,oldSize:w}]))}var k=this.getInteractingItem(b,p.DiagramModelOperation.MoveShape);if(k){var R=k.position.clone(),P=b.position.clone();P.equals(R)||(S=this.permissionsProvider.canMoveShapes([{shape:b,position:P,oldPosition:R}]))}this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,S)])},x.prototype.moveShape=function(b,y){b.position=y;var E=this.permissionsProvider.isStoredPermissionsGranted();this.getInteractingItem(b,p.DiagramModelOperation.AddShape)&&(E=this.permissionsProvider.canAddItems([b]));var S=this.getInteractingItem(b,p.DiagramModelOperation.MoveShape);if(S){var O=S.position.clone(),w=b.position.clone();w.equals(O)||(E=this.permissionsProvider.canMoveShapes([{shape:b,position:w,oldPosition:O}]))}this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,E)])},x.prototype.changeShapeParameters=function(b,y){b.parameters.forEach(function(E){var S=y.get(E.key);S&&(E.value=S.value)}),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties)])},x.prototype.changeShapeText=function(b,y){b.text=y,this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateStructure)])},x.prototype.changeShapeImage=function(b,y){b.image=y;var E=f.ImageCache.instance.createUnloadedInfoByShapeImageInfo(y);this.imageLoader.load(E),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateStructure)])},x.prototype.changeShapeExpanded=function(b,y){b.expanded=y,b.toggleExpandedSize(),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateStructure)])},x.prototype.deleteShape=function(b,y){if(b.attachedConnectors.length)throw Error("A removing shape should not contain existing connectors.");this.removeShape(b,y)},x.prototype.removeShape=function(b,y){this.model.removeItem(b),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Remove,y)])},x.prototype.updateShapeImage=function(b){if(b.imageUrl){var y=this.model.findShapesByImageUrl(b.imageUrl);y.forEach(function(E){b.base64?E.image.loadBase64Content(b.base64):E.image.setUnableToLoadFlag()}),this.commitItemsChangesCore(d.ItemChangeType.UpdateStructure,y)}},x.prototype.updateShapeDescription=function(b){var y=this.model.findShapesByDescription(b);this.commitItemsChangesCore(d.ItemChangeType.UpdateProperties,y)},x.prototype.addConnector=function(b,y){if(b.beginItem||b.endItem)throw Error("Creating connector should not contain begin/end items");return b.key=void 0!==y?y:this.model.getNextKey(),this.insertConnector(b)},x.prototype.insertConnector=function(b){this.model.pushItem(b);var y=this.routingModel.createStrategy(b.properties.lineOption);y?b.changeRoutingStrategy(y):b.clearRoutingStrategy();var E=this.permissionsProvider.canAddItems([b]);return this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Create,E)]),b},x.prototype.deleteConnector=function(b){if(b.beginItem||b.endItem)throw Error("Creating connector should not contain begin/end items");this.removeConnector(b)},x.prototype.removeConnector=function(b){this.model.removeItem(b);var y=this.permissionsProvider.canDeleteItems([b]);this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Remove,y)])},x.prototype.addDeleteConnectorPoint=function(b,y){var E=this.getConnectorInteractingPoints(b);y(b),this.addDeleteConnectorPointCore(b,E)},x.prototype.moveConnectorPoint=function(b,y,E){E(b),this.moveConnectorPointCore(b,y)},x.prototype.changeConnectorPoints=function(b,y){var E=this;y(b),b.points.forEach(function(S,O){return E.moveConnectorPointCore(b,O)})},x.prototype.moveConnectorPointCore=function(b,y){var E=this.getInteractingItem(b),S=this.permissionsProvider.isStoredPermissionsGranted();if(E){var O=0<y&&y<b.points.length-1;if(O=(O=O||0===y&&!b.beginItem)||y===b.points.length-1&&!b.endItem){var w=E.points.map(function(k){return k.clone()}),T=b.points.map(function(k){return k.clone()});s.GeometryUtils.arePointsEqual(w,T)||(S=this.permissionsProvider.canChangeConnectorPoints(b,w,T))}}this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,S)])},x.prototype.getConnectorInteractingPoints=function(b){var y=this.getInteractingItem(b);return y?y.points.map(function(E){return E.clone()}):b.points.map(function(E){return E.clone()})},x.prototype.addDeleteConnectorPointCore=function(b,y){var E=this.permissionsProvider.isStoredPermissionsGranted(),S=b.points.map(function(O){return O.clone()});s.GeometryUtils.arePointsEqual(y,S)||(E=this.permissionsProvider.canChangeConnectorPoints(b,y,S)),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,E)])},x.prototype.addConnection=function(b,y,E,S){var O=b.getExtremeItem(S),w=b.getExtremeConnectionPointIndex(S);if(O!==y||w!==E){if(O)throw Error("Connector is already connected");y.attachedConnectors.push(b),S===u.ConnectorPosition.Begin?(b.beginItem=y,b.beginConnectionPointIndex=E):(b.endItem=y,b.endConnectionPointIndex=E),b.invalidateRenderPoints();var T=this.permissionsProvider.canChangeConnection(b,y,void 0,S,E);this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,T)])}},x.prototype.setConnectionPointIndex=function(b,y,E){if(!b.getExtremeItem(E))throw Error("Connection should be connected");E===u.ConnectorPosition.Begin?b.beginConnectionPointIndex=y:b.endConnectionPointIndex=y,b.invalidateRenderPoints();var S=b.getExtremeItem(E),O=this.permissionsProvider.canChangeConnection(b,S,S,E,y);this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,O)])},x.prototype.deleteConnection=function(b,y){var E=b.getExtremeItem(y);if(E){E.attachedConnectors.splice(E.attachedConnectors.indexOf(b),1),y===u.ConnectorPosition.Begin?(b.beginItem=null,b.beginConnectionPointIndex=-1):(b.endItem=null,b.endConnectionPointIndex=-1),b.invalidateRenderPoints();var S=this.permissionsProvider.canChangeConnection(b,void 0,E,y,-1);this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,S)])}},x.prototype.changeConnectorProperty=function(b,y,E){if(b.properties[y]=E,"lineOption"===y){var S=this.routingModel?this.routingModel.createStrategy(b.properties.lineOption):void 0;S?b.changeRoutingStrategy(S):b.clearRoutingStrategy()}else b.invalidateRenderPoints();this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties)])},x.prototype.changeConnectorText=function(b,y,E){b.setText(y,E),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateStructure)])},x.prototype.changeConnectorTextPosition=function(b,y,E){var S=b.getText(y);b.setText(null,y),b.setText(S,E),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties)])},x.prototype.changeModelSize=function(b,y){this.model.size.width=b.width,this.model.size.height=b.height,this.raiseModelSizeChanged(this.model.size.clone(),y),(y.left||y.top)&&(this.model.snapStartPoint=this.model.snapStartPoint.clone().offset(y.left,y.top),this.raiseSnapPointChange(this.model.snapStartPoint))},x.prototype.changePageSize=function(b){this.model.pageSize.equals(b)||(this.model.pageSize=b,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))},x.prototype.changePageLandscape=function(b){this.model.pageLandscape!==b&&(this.model.pageLandscape=b,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)))},x.prototype.changePageColor=function(b){this.model.pageColor!==b&&(this.model.pageColor=b,this.raisePageColorChanged(b))},x.prototype.updateModelSize=function(){var b=this.getModelSizeUpdateOffset();if(!b.isEmpty()){var y=Math.max(this.model.size.width+b.left+b.right,this.model.pageWidth),E=Math.max(this.model.size.height+b.top+b.bottom,this.model.pageHeight);this.model.size=new I.Size(y,E)}},x.prototype.getModelSizeUpdateOffset=function(){var b=this.model.getRectangle(!1),y=this.model.getRectangle(!0);return y.equals(b)||this.raiseModelRectangleChanged(y),this.createModelRectangleOffset(y)},x.prototype.createModelRectangleOffset=function(b){var y=this.model.pageWidth,E=this.model.pageHeight,S=this.model.size;return new c.Offsets(-Math.floor(b.x/y)*y,-Math.floor((S.width-b.right)/y)*y,-Math.floor(b.y/E)*this.model.pageHeight,-Math.floor((S.height-b.bottom)/E)*E)},x.prototype.raiseModelChanged=function(b){this.onModelChanged.raise1(function(y){return y.notifyModelChanged(b)})},x.prototype.raisePageColorChanged=function(b){this.onModelChanged.raise1(function(y){return y.notifyPageColorChanged(b)})},x.prototype.raisePageSizeChanged=function(b,y){this.onModelChanged.raise1(function(E){return E.notifyPageSizeChanged(b,y)})},x.prototype.raiseModelSizeChanged=function(b,y){this.onModelSizeChanged.raise1(function(E){return E.notifyModelSizeChanged(b,y)})},x.prototype.raiseModelRectangleChanged=function(b){this.onModelSizeChanged.raise1(function(y){return y.notifyModelRectangleChanged(b)})},x.prototype.raiseSnapPointChange=function(b){this.onModelSizeChanged.raise1(function(y){return y.notifySnapPointPositionChanged(b)})},x.prototype.getInteractingItem=function(b,y){return this.permissionsProvider.getInteractingItem(b,y)},x}();l.ModelManipulator=g},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.EventManager=void 0;var c=o(304),I=o(3),C=o(323),f=o(154),a=o(324),p=o(155),s=o(330),u=o(331),d=o(18),h=o(25),g=function(){function x(b){this.onMouseOperation=new I.EventDispatcher,this.onTextInputOperation=new I.EventDispatcher,this.toolboxes=[],this.control=b,this.visualizersManager=I.EventUtils.isTouchMode()?new s.VisualizerTouchManager(b.selection,b.model,this,b.settings):new p.VisualizerManager(b.selection,b.model,this,b.settings),this.onMouseOperation.add(this.visualizersManager),this.contextMenuHandler=d.Browser.TouchUI?new a.ContextMenuTouchHandler(b.selection):new f.ContextMenuHandler,this.contextMenuHandler.onVisibilityChanged.add(b),this.onMouseOperation.add(this.contextMenuHandler),this.onTextInputOperation.add(this.contextMenuHandler),this.contextToolboxHandler=new u.ContextToolboxHandler,this.contextToolboxHandler.onVisibilityChanged.add(b),this.contextToolboxHandler.onVisibilityChanged.add(this.contextMenuHandler),this.mouseHandler=new c.MouseHandler(b.history,b.selection,b.model,this,b.settings.readOnly,b.view,this.visualizersManager,this.contextToolboxHandler,b.shapeDescriptionManager,b.settings,b.permissionsProvider),this.textInputHandler=new C.TextInputHandler(b),this.visualizersManager.onVisualizersUpdate.add(this.mouseHandler)}return Object.defineProperty(x.prototype,"onVisualizersUpdate",{get:function(){return this.visualizersManager.onVisualizersUpdate},enumerable:!1,configurable:!0}),x.prototype.registerToolbox=function(b){this.toolboxes.push(b)},x.prototype.cleanToolboxes=function(b){this.toolboxes.forEach(function(y){b.remove(y)}),this.toolboxes=[]},x.prototype.initialize=function(){this.visualizersManager.initialize(this.control.model),this.mouseHandler.initialize(this.control.model)},x.prototype.beginUpdate=function(b){this.contextMenuHandler.beginUpdate(),this.visualizersManager.beginUpdate()},x.prototype.endUpdate=function(){this.contextMenuHandler.endUpdate(),this.visualizersManager.endUpdate()},x.prototype.onMouseDown=function(b){this.mouseHandler.onMouseDown(b),this.contextMenuHandler.onMouseDown(b),this.visualizersManager.onMouseDown(b),this.contextToolboxHandler.onMouseDown(b)},x.prototype.onMouseMove=function(b){this.processDragging(b),this.mouseHandler.onMouseMove(b)},x.prototype.onMouseUp=function(b){this.contextToolboxHandler.onMouseUp(b),this.mouseHandler.onMouseUp(b),this.contextMenuHandler.onMouseUp(b),this.visualizersManager.onMouseUp(b),this.processDragging(b)},x.prototype.onMouseEnter=function(b){this.visualizersManager.onMouseEnter(b)},x.prototype.onMouseLeave=function(b){this.visualizersManager.onMouseLeave(b)},x.prototype.onDblClick=function(b){this.mouseHandler.onMouseDblClick(b),this.textInputHandler.onDblClick(b),this.control.apiController.notifyDblClick(b)},x.prototype.onClick=function(b){this.mouseHandler.onMouseClick(b),this.control.apiController.notifyClick(b)},x.prototype.onContextMenu=function(b){this.contextMenuHandler.onContextMenu(b)},x.prototype.onLongTouch=function(b){this.mouseHandler.onLongTouch(b),this.contextMenuHandler.onLongTouch(b)},x.prototype.onBlur=function(b){this.contextMenuHandler.onBlur(b),this.contextToolboxHandler.onBlur(b),this.visualizersManager.onBlur(b)},x.prototype.onFocus=function(b){this.contextMenuHandler.onFocus(b),this.contextToolboxHandler.onFocus(b),this.visualizersManager.onFocus(b)},x.prototype.onKeyDown=function(b){var y=b.getShortcutCode();this.onShortcut(y)?(this.visualizersManager.updateConnectionPoints(),this.contextMenuHandler.onShortcut(b),this.contextToolboxHandler.onShortcut(b),b.preventDefault=!0):this.isShortcutForFocusInput(y)&&(b.preventDefault=!0),this.contextMenuHandler.onKeyDown(b),this.contextToolboxHandler.onKeyDown(b),this.mouseHandler.onKeyDown(b)},x.prototype.onKeyUp=function(b){this.mouseHandler.onKeyUp(b)},x.prototype.onTextInputBlur=function(b){this.textInputHandler.onBlur(b),this.contextMenuHandler.onTextInputBlur(b)},x.prototype.onTextInputFocus=function(b){this.textInputHandler.onFocus(b),this.contextMenuHandler.onTextInputFocus(b)},x.prototype.onTextInputKeyDown=function(b){this.textInputHandler.onKeyDown(b)},x.prototype.onShortcut=function(b){return!!this.control.commandManager.processShortcut(b)||!!this.mouseHandler.onShortcut(b)||void 0},x.prototype.isShortcutForFocusInput=function(b){return b===h.KeyCode.Delete||b===(h.KeyCode.Delete|h.ModifierKey.Ctrl)||b===(h.KeyCode.Delete|h.ModifierKey.Meta)||b===h.KeyCode.Backspace||b===(h.KeyCode.Backspace|h.ModifierKey.Ctrl)||b===(h.KeyCode.Backspace|h.ModifierKey.Shift)||b===(h.KeyCode.Backspace|h.ModifierKey.Meta)||b===h.KeyCode.Home||b===h.KeyCode.End||b===h.KeyCode.Up||b===(h.KeyCode.Up|h.ModifierKey.Ctrl)||b===(h.KeyCode.Up|h.ModifierKey.Meta)||b===h.KeyCode.Down||b===(h.KeyCode.Down|h.ModifierKey.Ctrl)||b===(h.KeyCode.Down|h.ModifierKey.Meta)||b===h.KeyCode.Left||b===(h.KeyCode.Left|h.ModifierKey.Ctrl)||b===(h.KeyCode.Left|h.ModifierKey.Meta)||b===h.KeyCode.Right||b===(h.KeyCode.Right|h.ModifierKey.Ctrl)||b===(h.KeyCode.Right|h.ModifierKey.Meta)},x.prototype.onPaste=function(b){!this.textInputHandler.isTextInputActive()&&this.control.commandManager.processPaste(b.clipboardData)&&(this.visualizersManager.updateConnectionPoints(),b.preventDefault=!0)},x.prototype.onMouseWheel=function(b){this.mouseHandler.onWheel(b)&&(b.preventDefault=!0)},x.prototype.isFocused=function(){return this.control.isFocused()},x.prototype.processDragging=function(b){var y=this.getDraggingEvent();y&&this.draggingEvent!==y?(this.draggingEvent=y,this.mouseHandler.onDragStart(this.draggingEvent),this.control.captureFocus()):!y&&this.draggingEvent&&(delete this.draggingEvent,this.mouseHandler.onDragEnd(b))},x.prototype.getDraggingEvent=function(){return this.toolboxes.filter(function(b){return b.draggingObject}).map(function(b){return b.draggingObject.evt})[0]},x.prototype.onDocumentDragStart=function(b){this.control.beginUpdate(),this.control.captureFocus(),this.onMouseOperation.raise("notifyDragStart",b)},x.prototype.onDocumentDragEnd=function(b){this.onMouseOperation.raise("notifyDragEnd",b),this.control.endUpdate(),this.control.barManager.updateItemsState()},x.prototype.onDocumentDragScrollStart=function(){this.onMouseOperation.raise1(function(b){return b.notifyDragScrollStart()})},x.prototype.onDocumentDragScrollEnd=function(){this.onMouseOperation.raise1(function(b){return b.notifyDragScrollEnd()})},x.prototype.onDocumentClick=function(b){this.control.beginUpdate(),this.control.endUpdate(),this.control.barManager.updateItemsState()},x.prototype.raiseTextInputStart=function(b,y,E,S){this.onTextInputOperation.raise("notifyTextInputStart",b,y,E,S)},x.prototype.raiseTextInputEnd=function(b,y){this.onTextInputOperation.raise("notifyTextInputEnd",b,y)},x.prototype.raiseTextInputPermissionsCheck=function(b,y){this.onTextInputOperation.raise("notifyTextInputPermissionsCheck",b,y)},x.prototype.canFinishTextEditing=function(){return this.textInputHandler.canFinishTextEditing()},x}();l.EventManager=g},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandler=void 0;var c=o(147),I=o(11),C=o(0),f=o(4),a=o(321),p=o(152),s=o(322),u=o(25),d=o(3),h=function(){function g(x,b,y,E,S,O,w,T,k,R,P){this.history=x,this.selection=b,this.model=y,this.eventManager=E,this.readOnly=S,this.view=O,this.visualizerManager=w,this.contextToolboxHandler=T,this.shapeDescriptionManager=k,this.settings=R,this.permissionsProvider=P,this.finishStateLock=0,this.initialize(y),this.selection.onChanged.add(this)}return g.prototype.initialize=function(x){this.model=x,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()},g.prototype.initializeDefaultState=function(){this.defaultState=this.readOnly?d.EventUtils.isTouchMode()?new a.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):d.EventUtils.isTouchMode()?new s.MouseHandlerDefaultTouchState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):new c.MouseHandlerDefaultState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings),this.switchToDefaultState()},g.prototype.onMouseDown=function(x){this.mouseDownEvent=x,this.state.onMouseDown(x)},g.prototype.onMouseMove=function(x){this.state.onMouseMove(x)},g.prototype.onMouseUp=function(x){this.state.onMouseUp(x)},g.prototype.onMouseDblClick=function(x){this.state.onMouseDblClick(x)},g.prototype.onMouseClick=function(x){this.state.onMouseClick(x)},g.prototype.onLongTouch=function(x){if(x.touches&&!(x.touches.length>1)){var b=x.source.key;void 0===b?this.selection.clear():this.selection.hasKey(b)?this.selection.remove(b):this.selection.add(b)}},g.prototype.onShortcut=function(x){return this.state.onShortcut(x)},g.prototype.onWheel=function(x){return this.state.onMouseWheel(x)},g.prototype.onDragStart=function(x){this.state.onDragStart(x)},g.prototype.onDragEnd=function(x){this.state.onDragEnd(x)},g.prototype.onKeyDown=function(x){this.state.onKeyDown(x)},g.prototype.onKeyUp=function(x){this.state.onKeyUp(x)},g.prototype.showContextToolbox=function(x,b,y,E,S,O){this.contextToolboxHandler.showContextToolbox(x,b,y,E,S,O)},g.prototype.hideContextToolbox=function(x){this.contextToolboxHandler.hideContextToolbox(x)},g.prototype.canScrollPage=function(x){return this.startScrollingPageByCtrl?!!this.hasCtrlModifier(x.modifiers)&&(!this.copyDiagramItemsByCtrlAndShift||x.source.type!==I.MouseEventElementType.Shape&&x.source.type!==I.MouseEventElementType.Connector):this.allowScrollPage&&this.shouldScrollPage},g.prototype.canMultipleSelection=function(x){return this.allowMultipleSelection&&this.hasCtrlOrShiftModifier(x.modifiers)},g.prototype.canCopySelectedItems=function(x){return!!this.allowCopyDiagramItems&&(this.copyDiagramItemsByCtrlAndShift?this.hasCtrlAndShiftModifier(x.modifiers):this.hasAltModifier(x.modifiers))},g.prototype.canCalculateFixedPosition=function(x){return!(!this.allowFixedDrag||!this.hasShiftModifier(x.modifiers)||this.copyDiagramItemsByCtrlAndShift&&this.hasCtrlModifier(x.modifiers))},g.prototype.canStartZoomOnWheel=function(x){return this.allowZoomOnWheel&&this.hasCtrlModifier(x.modifiers)},g.prototype.canFinishZoomOnWheel=function(x){return this.allowZoomOnWheel&&!this.hasCtrlModifier(x.modifiers)},g.prototype.onStartScrollPageByKeyboard=function(x){this.canStartScrollingPageByKeyboard(x)&&(this.raiseDragScrollStart(),this.shouldScrollPage=!0)},g.prototype.onFinishScrollPageByKeyboard=function(x){this.canEndScrollingPageByKeyboard(x)&&this.finishScrollingPage()},g.prototype.onFinishScrollPageByMouse=function(x){this.canEndScrollingPage(x)&&this.finishScrollingPage()},g.prototype.finishScrollingPage=function(){this.shouldScrollPage=!1,this.raiseDragScrollEnd(),this.switchToDefaultState()},g.prototype.hasCtrlOrShiftModifier=function(x){return this.hasCtrlModifier(x)||this.hasShiftModifier(x)},g.prototype.hasCtrlAndShiftModifier=function(x){return this.hasCtrlModifier(x)&&this.hasShiftModifier(x)},g.prototype.hasCtrlModifier=function(x){return(x&u.ModifierKey.Ctrl)>0},g.prototype.hasAltModifier=function(x){return(x&u.ModifierKey.Alt)>0},g.prototype.hasShiftModifier=function(x){return(x&u.ModifierKey.Shift)>0},g.prototype.canStartScrollingPageByKeyboard=function(x){return!this.startScrollingPageByCtrl&&!this.shouldScrollPage&&x.keyCode===u.KeyCode.Space},g.prototype.canEndScrollingPageByKeyboard=function(x){return!this.startScrollingPageByCtrl&&x.keyCode===u.KeyCode.Space},g.prototype.canEndScrollingPage=function(x){return!this.startScrollingPageByCtrl||this.hasCtrlModifier(x.modifiers)},g.prototype.getSnappedPointOnDragDiagramItem=function(x,b,y,E,S){var O=this.getSnapToCellOnDragDiagramItem(x);return new C.Point(this.getSnappedPos(this.getFixedXPosition(x,b,y,S),!0,O),this.getSnappedPos(this.getFixedYPosition(x,b,E,S),!1,O))},g.prototype.getSnappedPointOnDragPoint=function(x,b,y){var E=this.getSnapToCellOnDragPoint(x),S=this.getSnappedPos(b.x,!0,E),O=this.getSnappedPos(b.y,!1,E);return void 0===y||Math.pow(b.x-S,2)+Math.pow(b.y-O,2)<Math.pow(b.x-y.x,2)+Math.pow(b.y-y.y,2)?new C.Point(S,O):y},g.prototype.getSnappedOffsetOnDragPoint=function(x,b){var y=this.getSnapToCellOnDragPoint(x);return new C.Point(this.getSnappedPos(x.modelPoint.x-b.x,!0,y),this.getSnappedPos(x.modelPoint.y-b.y,!1,y))},g.prototype.lockAspectRatioOnShapeResize=function(x){return this.hasShiftModifier(x.modifiers)},g.prototype.getSnappedPositionOnResizeShape=function(x,b,y){return this.getSnapToCellOnResizeShape(x)?f.ModelUtils.getSnappedPos(this.model,this.settings.gridSize,b,y):b},g.prototype.getSnappedPos=function(x,b,y){return y?f.ModelUtils.getSnappedPos(this.model,this.settings.gridSize,x,b):x},g.prototype.getFixedXPosition=function(x,b,y,E){return y?b.x:b.x+x.modelPoint.x-E.x},g.prototype.getFixedYPosition=function(x,b,y,E){return y?b.y:b.y+x.modelPoint.y-E.y},g.prototype.getSnapToCellOnDragDiagramItem=function(x){return this.allowSnapToCellOnDragDiagramItem&&this.settings.snapToGrid&&!this.hasCtrlModifier(x.modifiers)},g.prototype.getSnapToCellOnDragPoint=function(x){return this.allowSnapToCellOnDragPoint&&this.settings.snapToGrid&&!this.hasCtrlModifier(x.modifiers)},g.prototype.getSnapToCellOnResizeShape=function(x){return this.allowSnapToCellOnResizeShape&&this.settings.snapToGrid&&!this.hasCtrlModifier(x.modifiers)},g.prototype.tryUpdateModelSize=function(x){this.lockPermissions(),f.ModelUtils.tryUpdateModelRectangle(this.history,x),this.unlockPermissions()},g.prototype.canAddDiagramItemToSelection=function(x){return x.source.key&&(x.button===I.MouseButton.Left||x.button===I.MouseButton.Right)},g.prototype.addDiagramItemToSelection=function(x){this.pressedDiagramItemKey=x.source.key,this.pressedDiagramItemInSelection=this.selection.hasKey(this.pressedDiagramItemKey),this.canMultipleSelection(x)?this.selection.add(x.source.key):this.changeSingleSelection(x.source.key)},g.prototype.canRemoveDiagramItemToSelection=function(x){return this.pressedDiagramItemKey&&x.source.key&&this.pressedDiagramItemKey===x.source.key&&(x.button===I.MouseButton.Left||x.button===I.MouseButton.Right)},g.prototype.removeDiagramItemFromSelection=function(x,b){this.pressedDiagramItemInSelection&&this.selection.getKeys().length>1&&x===I.MouseButton.Left&&this.selection.remove(b)},g.prototype.changeSingleSelection=function(x){this.selection.hasKey(x)||this.selection.set([x])},g.prototype.notifySelectionChanged=function(x){this.pressedDiagramItemKey&&!this.selection.hasKey(this.pressedDiagramItemKey)&&(this.pressedDiagramItemKey=void 0,this.pressedDiagramItemInSelection=!1)},g.prototype.raiseDragStart=function(x){this.eventManager.onDocumentDragStart(x)},g.prototype.raiseDragEnd=function(x){this.eventManager.onDocumentDragEnd(x)},g.prototype.raiseDragScrollStart=function(){this.eventManager.onDocumentDragScrollStart()},g.prototype.raiseDragScrollEnd=function(){this.eventManager.onDocumentDragScrollEnd()},g.prototype.raiseClick=function(x){this.eventManager.onDocumentClick(x)},g.prototype.beginStorePermissions=function(){this.permissionsProvider.beginStorePermissions()},g.prototype.endStorePermissions=function(){this.permissionsProvider.endStorePermissions()},g.prototype.isStoredPermissionsGranted=function(){return this.permissionsProvider.isStoredPermissionsGranted()},g.prototype.lockPermissions=function(){this.permissionsProvider.lockPermissions()},g.prototype.unlockPermissions=function(){this.permissionsProvider.unlockPermissions()},g.prototype.canPerformChangeConnection=function(x,b){var y=!0;return x?y=this.permissionsProvider.canChangeConnection(x,b.item,b.oldItem,b.position,b.connectionPointIndex):b.item&&(y=this.permissionsProvider.canChangeConnection(void 0,b.item,b.oldItem,b.position,b.connectionPointIndex)),y},g.prototype.canPerformChangeConnectionOnUpdateUI=function(x,b){this.permissionsProvider.beginUpdateUI();var y=this.canPerformChangeConnection(x,b);return this.permissionsProvider.endUpdateUI(),y},g.prototype.canFinishTextEditing=function(){return this.eventManager.canFinishTextEditing()},g.prototype.restartState=function(){this.state&&!this.finishStateLock&&(this.finishStateLock++,this.state.finish(),this.finishStateLock--),this.state.start()},g.prototype.switchToDefaultState=function(){this.switchState(this.defaultState)},g.prototype.switchState=function(x){this.newState=x,this.state&&!this.finishStateLock&&(this.finishStateLock++,this.state.finish(),this.finishStateLock--),this.newState&&(this.state=this.newState,this.state.start(),this.newState=void 0)},g.prototype.addInteractingItem=function(x,b){this.permissionsProvider.addInteractingItem(x,b)},g.prototype.clearInteractingItems=function(){this.permissionsProvider.clearInteractingItems()},g.prototype.notifyReadOnlyChanged=function(x){this.readOnly=x,this.initializeDefaultState()},g.prototype.notifySelectionRectShow=function(x){},g.prototype.notifySelectionRectHide=function(){},g.prototype.notifyResizeInfoShow=function(x,b){},g.prototype.notifyResizeInfoHide=function(){},g.prototype.notifyConnectionPointsShow=function(x,b,y,E){this.state.onConnectionPointsShow(x,b)},g.prototype.notifyConnectionPointsHide=function(){},g.prototype.notifyConnectionTargetShow=function(x,b){this.state.onConnectionTargetShow(x,b)},g.prototype.notifyConnectionTargetHide=function(){},g.prototype.notifyContainerTargetShow=function(x,b){},g.prototype.notifyContainerTargetHide=function(){},g.prototype.notifyExtensionLinesShow=function(x){},g.prototype.notifyExtensionLinesHide=function(){},g}();l.MouseHandler=h},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerMoveConnectorPointState=void 0;var C=o(0),f=o(148),a=o(6),p=o(4),s=o(32),u=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.onMouseDown=function(g){this.connector=this.model.findConnector(g.source.key),this.pointIndex=parseInt(g.source.value),0===this.pointIndex?this.pointPosition=a.ConnectorPosition.Begin:this.pointIndex===this.connector.points.length-1&&(this.pointPosition=a.ConnectorPosition.End),this.handler.addInteractingItem(this.connector),d.prototype.onMouseDown.call(this,g)},h.prototype.onApplyChanges=function(g){this.connector.properties.lineOption===s.ConnectorLineOption.Orthogonal&&0!==this.pointIndex&&this.pointIndex!==this.connector.points.length-1||d.prototype.onApplyChanges.call(this,g)},h.prototype.onFinishWithChanges=function(){d.prototype.onFinishWithChanges.call(this),p.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,this.connector),this.handler.tryUpdateModelSize()},h.prototype.getSnappedPoint=function(g,x){var b=this.connector.points,y=this.pointIndex;if(0<y&&y<b.length-1){var S=x.x;return this.handler.getSnappedPointOnDragPoint(g,x,new C.Point(S,b[y+1].y-(b[y+1].y-b[y-1].y)/(b[y+1].x-b[y-1].x)*(b[y+1].x-S)))}return this.handler.getSnappedPointOnDragPoint(g,x)},h}(f.MouseHandlerMoveConnectorPointStateBase);l.MouseHandlerMoveConnectorPointState=u},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(g,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(g,x)},function(g,x){function b(){this.constructor=g}c(g,x),g.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerResizeShapeState=void 0;var C=o(2),f=o(0),a=o(11),p=o(34),s=o(4),u=o(7),d=o(16),h=function(g){function x(b,y,E,S,O,w){var T=g.call(this,b,y)||this;return T.model=E,T.selection=S,T.visualizerManager=O,T.settings=w,T.startScrollLeft=0,T.startScrollTop=0,T.rotation=0,T}return I(x,g),x.prototype.finish=function(){this.visualizerManager.resetResizeInfo(),this.visualizerManager.resetExtensionLines(),g.prototype.finish.call(this)},x.prototype.onMouseDown=function(b){var y=this,E=parseInt(b.source.value);this.resizeEventSource=E,this.startPoint=b.modelPoint,this.lockH=E===a.ResizeEventSource.ResizeBox_S||E===a.ResizeEventSource.ResizeBox_N,this.lockV=E===a.ResizeEventSource.ResizeBox_E||E===a.ResizeEventSource.ResizeBox_W,this.sideH=E===a.ResizeEventSource.ResizeBox_E||E===a.ResizeEventSource.ResizeBox_NE||E===a.ResizeEventSource.ResizeBox_SE,this.sideV=E===a.ResizeEventSource.ResizeBox_SE||E===a.ResizeEventSource.ResizeBox_S||E===a.ResizeEventSource.ResizeBox_SW,this.shapes=this.selection.getSelectedShapes(),0!==this.shapes.length?(this.shapes.forEach(function(S){y.handler.addInteractingItem(S,d.DiagramModelOperation.ResizeShape),y.handler.addInteractingItem(S,d.DiagramModelOperation.MoveShape)}),this.connectors=this.selection.getSelectedConnectors(),this.startRectangle=s.ModelUtils.createRectangle(this.shapes),this.startShapeSizes=this.shapes.map(function(S){return S.size.clone()}),this.startShapePositions=this.shapes.map(function(S){return S.position.clone()}),this.startConnectorPoints=this.connectors.map(function(S){return S.points.map(function(O){return O.clone()})}),g.prototype.onMouseDown.call(this,b)):this.handler.switchToDefaultState()},x.prototype.onMouseMove=function(b){g.prototype.onMouseMove.call(this,b);var y=this.selection.getSelectedShapes();this.visualizerManager.setExtensionLines(y)},x.prototype.onApplyChanges=function(b){var y=this,E=s.ModelUtils.createRectangle(this.shapes),S=1===this.shapes.length?this.shapes[0].getMinWidth(this.settings.shapeMinWidth):u.ShapeMinDimension,O=1===this.shapes.length?this.shapes[0].getMinHeight(this.settings.shapeMinHeight):u.ShapeMinDimension,w=1===this.shapes.length?this.shapes[0].getMaxWidth(this.settings.shapeMaxWidth):void 0,T=1===this.shapes.length?this.shapes[0].getMaxHeight(this.settings.shapeMaxHeight):void 0,k=this.getSize(b,E.createPosition(),this.startRectangle.createSize(),S,O,w,T,this.handler.lockAspectRatioOnShapeResize(b)),R=this.getPosition(b,k,this.startRectangle.createSize(),this.startRectangle.createPosition()),P=k.width/this.startRectangle.width,B=k.height/this.startRectangle.height;this.shapes.forEach(function(W,N){var V=y.startShapeSizes[N].width*(W.allowResizeHorizontally?P:1);V=y.getNormalizedSize(V,W.getMinWidth(y.settings.shapeMinWidth),W.getMaxWidth(y.settings.shapeMaxWidth));var U=y.startShapeSizes[N].height*(W.allowResizeVertically?B:1);U=y.getNormalizedSize(U,W.getMinHeight(y.settings.shapeMinHeight),W.getMaxHeight(y.settings.shapeMaxHeight)),s.ModelUtils.setShapeSize(y.history,y.model,W,new f.Point(W.allowResizeHorizontally?R.x+(y.startShapePositions[N].x-y.startRectangle.x)*P:y.startShapePositions[N].x,W.allowResizeVertically?R.y+(y.startShapePositions[N].y-y.startRectangle.y)*B:y.startShapePositions[N].y),new C.Size(V,U))}),this.connectors.forEach(function(W,N){for(var U=W.endItem?W.points.length-2:W.points.length-1,K=W.beginItem?1:0;K<=U;K++){var Y=new f.Point(R.x+(y.startConnectorPoints[N][K].x-y.startRectangle.x)*P,R.y+(y.startConnectorPoints[N][K].y-y.startRectangle.y)*B);s.ModelUtils.moveConnectorPoint(y.history,W,K,Y)}}),this.selection.getSelectedShapes(!1,!0).forEach(function(W){s.ModelUtils.updateShapeAttachedConnectors(y.history,y.model,W)}),this.tryUpdateModelSize(),this.visualizerManager.setResizeInfo(this.shapes)},x.prototype.tryUpdateModelSize=function(){var b=this;this.handler.tryUpdateModelSize(function(y,E){b.startShapePositions.forEach(function(S){S.x+=y,S.y+=E}),b.startConnectorPoints.forEach(function(S){S.forEach(function(O){O.x+=y,O.y+=E})}),b.startRectangle.x+=y,b.startRectangle.y+=E,b.startPoint.x+=y,b.startPoint.y+=E})},x.prototype.getDraggingElementKeys=function(){return this.shapes.map(function(b){return b.key})},x.prototype.getNormalizedSize=function(b,y,E){return void 0!==y&&(b=Math.max(b,y)),void 0!==E&&(b=Math.min(b,E)),b},x.prototype.getSize=function(b,y,E,S,O,w,T,k){var R,P,B=b.modelPoint.x-(this.startScrollLeft-b.scrollX)-this.startPoint.x,W=b.modelPoint.y-(this.startScrollTop-b.scrollY)-this.startPoint.y,N=B*Math.cos(this.rotation)- -W*Math.sin(this.rotation),V=-(B*Math.sin(this.rotation)+-W*Math.cos(this.rotation));return V=!this.sideV&&V>0?Math.min(E.height+1,V):V,N=!this.sideH&&N>0?Math.min(E.width+1,N):N,this.lockH||this.lockV||!k?(N=this.lockH?0:N,V=this.lockV?0:V,R=this.getNormalizedSize(this.sideH?E.width+N:E.width-N,S,w),P=this.getNormalizedSize(this.sideV?E.height+V:E.height-V,O,T)):Math.abs(N)>Math.abs(V)?(R=this.getNormalizedSize(this.sideH?E.width+N:E.width-N,S,w),P=E.height*(R/E.width)):(P=this.getNormalizedSize(this.sideV?E.height+V:E.height-V,O,T),R=E.width*(P/E.height)),this.lockH||(R=this.getSnappedPosition(b,y.x+R,!0)-y.x),this.lockV||(P=this.getSnappedPosition(b,y.y+P,!1)-y.y),new C.Size(R,P)},x.prototype.getPosition=function(b,y,E,S){var O=S.x,w=S.y;if(this.resizeEventSource===a.ResizeEventSource.ResizeBox_N||this.resizeEventSource===a.ResizeEventSource.ResizeBox_NE||this.resizeEventSource===a.ResizeEventSource.ResizeBox_NW){var T=this.getSnappedPosition(b,w+=E.height-y.height,!1);y.height+=w-T,w=T}if(this.resizeEventSource===a.ResizeEventSource.ResizeBox_W||this.resizeEventSource===a.ResizeEventSource.ResizeBox_NW||this.resizeEventSource===a.ResizeEventSource.ResizeBox_SW){var k=this.getSnappedPosition(b,O+=E.width-y.width,!0);y.width+=O-k,O=k}return new f.Point(O,w)},x.prototype.getSnappedPosition=function(b,y,E){return this.handler.getSnappedPositionOnResizeShape(b,y,E)},x}(p.MouseHandlerDraggingState);l.MouseHandlerResizeShapeState=h},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerMoveConnectorSideState=void 0;var C=o(34),f=o(4),a=function(p){function s(u,d,h){var g=p.call(this,u,d)||this;return g.model=h,g}return I(s,p),s.prototype.onMouseDown=function(u){this.startPoint=u.modelPoint,this.connectorKey=u.source.key,this.pointIndex=parseInt(u.source.value)+1,p.prototype.onMouseDown.call(this,u)},s.prototype.onApplyChanges=function(u){var d=this.getSnappedPoint(u,u.modelPoint),h=this.model.findConnector(this.connectorKey);this.pointCreated?f.ModelUtils.moveConnectorPoint(this.history,h,this.pointIndex,d):(this.handler.addInteractingItem(h),f.ModelUtils.addConnectorPoint(this.history,this.connectorKey,this.pointIndex,d.clone()),this.pointCreated=!0),this.handler.tryUpdateModelSize()},s.prototype.onFinishWithChanges=function(){var u=this.model.findConnector(this.connectorKey);f.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,u),f.ModelUtils.fixConnectorBeginEndConnectionIndex(this.history,u),this.handler.tryUpdateModelSize()},s.prototype.getDraggingElementKeys=function(){return[this.connectorKey]},s}(C.MouseHandlerDraggingState);l.MouseHandlerMoveConnectorSideState=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerDragParameterPointState=void 0;var C=o(34),f=o(112),a=function(p){function s(u,d,h){var g=p.call(this,u,d)||this;return g.model=h,g.startScrollLeft=0,g.startScrollTop=0,g}return I(s,p),s.prototype.onMouseDown=function(u){this.startPoint=u.modelPoint,this.shape=this.model.findShape(u.source.key),this.parameterPointKey=u.source.value,this.startParameters=this.shape.parameters.clone(),p.prototype.onMouseDown.call(this,u)},s.prototype.onApplyChanges=function(u){var d=this.handler.getSnappedOffsetOnDragPoint(u,this.startPoint),h=this.startParameters.clone();this.shape.description.modifyParameters(this.shape,h,d.x,d.y),this.history.addAndRedo(new f.ChangeShapeParametersHistoryItem(this.shape.key,h))},s.prototype.getDraggingElementKeys=function(){return[this.shape.key]},s}(C.MouseHandlerDraggingState);l.MouseHandlerDragParameterPointState=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerCreateConnectorState=void 0;var C=o(6),f=o(48),a=o(66),p=o(9),s=o(148),u=o(68),d=o(53),h=o(4),g=o(67),x=o(113),b=function(y){function E(S,O,w,T,k,R,P){var B=y.call(this,S,O,w,T)||this;return B.shapeDescriptionManager=k,B.selection=R,B.connectionPointIndex=P,B}return I(E,y),E.prototype.onMouseDown=function(S){void 0===this.connectionPointIndex&&(this.connectionPointIndex=parseInt(S.source.value)),this.connectedItem=this.model.findItem(S.source.key),this.pointIndex=1,this.pointPosition=C.ConnectorPosition.End,y.prototype.onMouseDown.call(this,S)},E.prototype.onMouseUp=function(S){this.connector&&!this.connector.endItem&&this.createNewShapeAtConnectorEnd(S),y.prototype.onMouseUp.call(this,S)},E.prototype.onApplyChanges=function(S){var O=this.getSnappedPoint(S,S.modelPoint);if(this.connector)y.prototype.onApplyChanges.call(this,S);else{var w=new a.AddConnectorHistoryItem([this.connectedItem.getConnectionPointPosition(this.connectionPointIndex,O),O]);this.history.addAndRedo(w),this.connector=this.model.findConnector(w.connectorKey),this.handler.addInteractingItem(this.connector),this.history.addAndRedo(new f.AddConnectionHistoryItem(this.connector,this.connectedItem,this.connectionPointIndex,C.ConnectorPosition.Begin)),h.ModelUtils.updateNewConnectorProperties(this.history,this.selection,this.connector.key)}},E.prototype.checkStoredPermissionsOnFinish=function(){this.connector&&this.connector.endItem&&y.prototype.checkStoredPermissionsOnFinish.call(this)},E.prototype.onFinishWithChanges=function(){y.prototype.onFinishWithChanges.call(this),this.history.addAndRedo(new u.SetSelectionHistoryItem(this.selection,[this.connector.key]))},E.prototype.createNewShapeAtConnectorEnd=function(S){var O=this,w=this.connector&&this.connector.beginItem;if(w)if(!this.connector||this.handler.canPerformChangeConnection(this.connector,{position:C.ConnectorPosition.End,connectionPointIndex:-1})){var T=this.getNewShapeSide(this.connector),k=this.getSnappedPoint(S,S.modelPoint),R=this.shapeDescriptionManager.getCategoryByDescription(w.description);this.handler.showContextToolbox(k,function(P){var B=P.clone();B.position=k.clone();var W=O.getNewShapePosition(B,T);return O.handler.getSnappedPointOnDragPoint(S,W)},T,R,function(P){if(P){O.handler.beginStorePermissions(),O.history.beginTransaction();var B=new d.AddShapeHistoryItem(O.shapeDescriptionManager.get(P),k);O.history.addAndRedo(B);var W=O.model.findShape(B.shapeKey),N=O.targetItem&&O.model.findNearestContainer(O.targetItem.key);N&&h.ModelUtils.insertToContainer(O.history,O.model,W,N);var V=O.getNewShapePosition(W,T);h.ModelUtils.setShapePosition(O.history,O.model,W,O.getSnappedPoint(S,V)),h.ModelUtils.updateNewShapeProperties(O.history,O.selection,W.key),O.history.addAndRedo(new f.AddConnectionHistoryItem(O.connector,W,W.getConnectionPointIndexForSide(T),C.ConnectorPosition.End)),N&&h.ModelUtils.updateConnectorContainer(O.history,O.model,O.connector),h.ModelUtils.updateShapeAttachedConnectors(O.history,O.model,W),O.handler.isStoredPermissionsGranted()?(O.handler.tryUpdateModelSize(),O.history.addAndRedo(new u.SetSelectionHistoryItem(O.selection,[W.key]))):(O.handler.lockPermissions(),O.history.undoTransaction(),O.handler.unlockPermissions(),O.checkNewConnectorPermissions()),O.history.endTransaction(),O.handler.endStorePermissions(),O.handler.hideContextToolbox(!0)}},function(){O.checkNewConnectorPermissions()})}else this.cancelChanges()},E.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 u.SetSelectionHistoryItem(this.selection,[])),this.connector.beginItem&&this.history.addAndRedo(new g.DeleteConnectionHistoryItem(this.connector,C.ConnectorPosition.Begin)),this.connector.endItem&&this.history.addAndRedo(new g.DeleteConnectionHistoryItem(this.connector,C.ConnectorPosition.End)),this.history.addAndRedo(new x.DeleteConnectorHistoryItem(this.connector.key)),this.history.endTransaction(),this.handler.unlockPermissions())},E.prototype.getNewShapePosition=function(S,O){switch(O){case p.ConnectionPointSide.North:return S.position.clone().offset(-S.size.width/2,0);case p.ConnectionPointSide.South:return S.position.clone().offset(-S.size.width/2,-S.size.height);case p.ConnectionPointSide.East:return S.position.clone().offset(-S.size.width,-S.size.height/2);case p.ConnectionPointSide.West:return S.position.clone().offset(0,-S.size.height/2)}},E.prototype.getNewShapeSide=function(S){var O=S.getRenderPoints();return E.getNewShapeSideByConnectorPoints(O[O.length-1],O[O.length-2])},E.prototype.getSourceItem=function(){return this.connectedItem},E.getNewShapeSideByConnectorPoints=function(S,O){return S.x===O.x?S.y>O.y?p.ConnectionPointSide.North:p.ConnectionPointSide.South:S.x>O.x?S.y===O.y?p.ConnectionPointSide.West:S.y>O.y?Math.abs(S.x-O.x)>Math.abs(S.y-O.y)?p.ConnectionPointSide.West:p.ConnectionPointSide.North:Math.abs(S.x-O.x)>Math.abs(S.y-O.y)?p.ConnectionPointSide.West:p.ConnectionPointSide.South:S.y===O.y?p.ConnectionPointSide.East:S.y>O.y?Math.abs(S.x-O.x)>Math.abs(S.y-O.y)?p.ConnectionPointSide.East:p.ConnectionPointSide.North:Math.abs(S.x-O.x)>Math.abs(S.y-O.y)?p.ConnectionPointSide.East:p.ConnectionPointSide.South},E}(s.MouseHandlerMoveConnectorPointStateBase);l.MouseHandlerCreateConnectorState=b},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerMoveConnectorOrthogonalSideState=void 0;var C=o(0),f=o(6),a=o(9),p=o(4),s=function(u){function d(h,g,x){var b=u.call(this,h,g)||this;return b.model=x,b}return I(d,u),d.prototype.onMouseDown=function(h){this.startPoint=h.modelPoint,this.connector=this.model.findConnector(h.source.key),this.handler.addInteractingItem(this.connector);var g=h.source.value.split("_"),x=parseInt(g[0]),b=parseInt(g[1]),y=this.connector.getRenderPoints(!0);this.renderPoint1=y[x].clone(),this.renderPoint2=y[b].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(y,x,!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(y,b,!0),u.prototype.onMouseDown.call(this,h)},d.prototype.onApplyChanges=function(h){var g=this;if(!this.pointCreated){var x=void 0,b=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()),x=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()),b=this.point2.clone());var y=[];x&&y.push(x),b&&y.push(b);var E=this.createUnnecessaryPoints(this.connector,y);Object.keys(E).forEach(function(O){var w=parseInt(O);w<g.pointIndex1&&g.pointIndex1--,w<g.pointIndex2&&g.pointIndex2--}),this.pointCreated=!0}var S=this.getSnappedPoint(h,h.modelPoint);this.isVerticalOrientation?(this.point1.x=S.x,this.point2.x=S.x):(this.point1.y=S.y,this.point2.y=S.y),p.ModelUtils.moveConnectorRightAnglePoints(this.history,this.connector,this.point1.clone(),this.pointIndex1,this.point2.clone(),this.pointIndex2),this.handler.tryUpdateModelSize()},d.prototype.createUnnecessaryPoints=function(h,g){var x=h.getRenderPoints(!0).map(function(O){return O.clone()}),b=p.ModelUtils.createUnnecessaryRenderPoints(x.filter(function(O){return!O.skipped}).map(function(O){return O.clone()}),h.skippedRenderPoints,function(O){return p.ModelUtils.findFirstPointIndex(x,function(w){return w.equals(O)})},function(O){return!g.some(function(w){return w.equals(O)})}),y={};if(Object.keys(b).length){var E=h.points.map(function(O){return O.clone()}),S=E.length-1;E.forEach(function(O,w){0===w||w===S||p.ModelUtils.isNecessaryPoint(O,w,b)||(y[w]=O)})}return y},d.prototype.onFinishWithChanges=function(){p.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,this.connector),p.ModelUtils.fixConnectorBeginEndConnectionIndex(this.history,this.connector),this.handler.tryUpdateModelSize()},d.prototype.findPointIndex=function(h,g,x){for(var b;b=h[g];){if(-1!==b.pointIndex)return b.pointIndex;g+=x?1:-1}},d.prototype.correctEdgePoint=function(h,g,x,b){var y=0;if(x){var E=x.getConnectionPointSideByIndex(b),S=x.rectangle;switch(y=f.Connector.minOffset,E){case a.ConnectionPointSide.South:y+=S.bottom-h.y;break;case a.ConnectionPointSide.North:y+=h.y-S.y;break;case a.ConnectionPointSide.East:y+=S.right-h.x;break;case a.ConnectionPointSide.West:y+=h.x-S.x}}this.isVerticalOrientation?h.y>g.y?h.y-=Math.min(y,h.y-g.y):h.y+=Math.min(y,g.y-h.y):h.x>g.x?h.x-=Math.min(y,h.x-g.x):h.x+=Math.min(y,g.x-h.x)},d.prototype.getDraggingElementKeys=function(){return[this.connector.key]},d}(o(34).MouseHandlerDraggingState);l.MouseHandlerMoveConnectorOrthogonalSideState=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(E,S){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(E,S)},function(E,S){function O(){this.constructor=E}c(E,S),E.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerToolboxDraggingState=l.MouseHandlerBeforeToolboxDraggingState=void 0;var C=o(11),f=o(0),a=o(53),p=o(68),s=o(34),u=o(114),d=o(4),h=o(40),g=o(16),b=function(E){function S(O,w,T,k,R,P){var B=E.call(this,O)||this;return B.history=w,B.model=T,B.selection=k,B.visualizerManager=R,B.shapeDescriptionManager=P,B.isModelEmpty=0===T.items.length,B}return I(S,E),S.prototype.cancelChanges=function(){this.tryRemoveTimer()},S.prototype.onDragStart=function(O){this.dragging=O},S.prototype.onDragEnd=function(O){this.cancelChanges(),this.handler.switchToDefaultState()},S.prototype.onMouseMove=function(O){var w=this;O.source.type>C.MouseEventElementType.Background?(this.tryRemoveTimer(),this.switchToDraggingState(O,!1)):O.source.type!==C.MouseEventElementType.Background||this.isModelEmpty?void 0!==this.nonPageAreaTimer&&this.tryRemoveTimer():(this.savedEvt=O,void 0===this.nonPageAreaTimer&&(this.nonPageAreaTimer=setTimeout(function(){return w.switchToDraggingState(w.savedEvt,!0)},500)))},S.prototype.switchToDraggingState=function(O,w){this.handler.switchState(new y(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.shapeDescriptionManager,w)),this.handler.state.onDragStart(this.dragging),this.handler.state.onMouseMove(O)},S.prototype.tryRemoveTimer=function(){void 0!==this.nonPageAreaTimer&&(clearTimeout(this.nonPageAreaTimer),delete this.nonPageAreaTimer)},S.prototype.finish=function(){this.tryRemoveTimer()},S}(h.MouseHandlerCancellableState);l.MouseHandlerBeforeToolboxDraggingState=b;var y=function(E){function S(O,w,T,k,R,P,B){var W=E.call(this,O,w)||this;return W.model=T,W.selection=k,W.visualizerManager=R,W.shapeDescriptionManager=P,B||(W.updatePageSizeTimer=setTimeout(function(){W.processAndRemoveUpdatePageSizeTimer()},300)),W}return I(S,E),S.prototype.cancelChanges=function(){this.tryRemoveUpdatePageSizeTimer(),E.prototype.cancelChanges.call(this)},S.prototype.tryRemoveUpdatePageSizeTimer=function(){void 0!==this.updatePageSizeTimer&&(clearTimeout(this.updatePageSizeTimer),delete this.updatePageSizeTimer)},S.prototype.processAndRemoveUpdatePageSizeTimer=function(){void 0!==this.updatePageSizeTimer&&(this.handler.tryUpdateModelSize(),delete this.updatePageSizeTimer)},S.prototype.onMouseMove=function(O){E.prototype.onMouseMove.call(this,O);var w=this.model.findShape(this.shapeKey);if(w){this.visualizerManager.setExtensionLines([w]);var T=d.ModelUtils.findContainerByEventKey(this.model,this.selection,O.source.key);T&&this.allowInsertToContainer(O,w,T)?this.visualizerManager.setContainerTarget(T,O.source.type):this.visualizerManager.resetContainerTarget()}},S.prototype.getDraggingElementKeys=function(){return void 0===this.shapeKey?[]:[this.shapeKey]},S.prototype.onApplyChanges=function(O){var w=this;if(O.source.type===C.MouseEventElementType.Undefined){if(this.dragging.onCaptured(!1),void 0!==this.shapeKey&&!this.deleteHistoryItem){var T=this.model.findShape(this.shapeKey);d.ModelUtils.detachConnectors(this.history,T),d.ModelUtils.removeFromContainer(this.history,this.model,T),this.deleteHistoryItem=new u.DeleteShapeHistoryItem(this.shapeKey,!0),this.history.addAndRedo(this.deleteHistoryItem)}}else{if(this.dragging.onCaptured(!0),void 0===this.shapeKey){this.startPoint=O.modelPoint,this.shapeKey=this.insertToolboxItem(O);var k=this.model.findShape(this.shapeKey);k&&this.handler.addInteractingItem(k,g.DiagramModelOperation.AddShape)}this.deleteHistoryItem&&(this.history.undoTransactionTo(this.deleteHistoryItem),delete this.deleteHistoryItem);var R=this.getPosition(O,this.startShapePosition);T=this.model.findShape(this.shapeKey),d.ModelUtils.setShapePosition(this.history,this.model,T,R),d.ModelUtils.updateMovingShapeConnections(this.history,T,this.connectorsWithoutBeginItemInfo,this.connectorsWithoutEndItemInfo,function(){w.visualizerManager.resetConnectionTarget(),w.visualizerManager.resetConnectionPoints()},function(B,W){w.visualizerManager.setConnectionTarget(B,C.MouseEventElementType.Shape),w.visualizerManager.setConnectionPoints(B,C.MouseEventElementType.Shape,W,!0)},function(B){return w.handler.addInteractingItem(B)}),d.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,T);var P=d.ModelUtils.findContainerByEventKey(this.model,this.selection,O.source.key);T&&P&&this.allowInsertToContainer(O,T,P)?d.ModelUtils.insertToContainer(this.history,this.model,T,P):d.ModelUtils.removeFromContainer(this.history,this.model,T),void 0===this.updatePageSizeTimer&&this.handler.tryUpdateModelSize(function(B,W){w.connectorsWithoutBeginItemInfo.forEach(function(N){N.point.x+=B,N.point.y+=W}),w.connectorsWithoutEndItemInfo.forEach(function(N){N.point.x+=B,N.point.y+=W})})}},S.prototype.onFinishWithChanges=function(){this.deleteHistoryItem||this.history.addAndRedo(new p.SetSelectionHistoryItem(this.selection,[this.shapeKey]))},S.prototype.onDragStart=function(O){this.dragging=O,this.connectorsWithoutBeginItemInfo=d.ModelUtils.getConnectorsWithoutBeginItemInfo(this.model),this.connectorsWithoutEndItemInfo=d.ModelUtils.getConnectorsWithoutEndItemInfo(this.model)},S.prototype.onDragEnd=function(O){void 0!==this.shapeKey&&O.source.type===C.MouseEventElementType.Undefined&&this.cancelChanges(),this.handler.switchToDefaultState()},S.prototype.finish=function(){this.visualizerManager.resetExtensionLines(),this.visualizerManager.resetContainerTarget(),this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),this.processAndRemoveUpdatePageSizeTimer(),this.dragging.onFinishDragging(),E.prototype.finish.call(this)},S.prototype.insertToolboxItem=function(O){var w=this.shapeDescriptionManager.get(this.dragging.data);this.startShapePosition=this.getSnappedPoint(O,new f.Point(O.modelPoint.x-w.defaultSize.width/2,O.modelPoint.y-w.defaultSize.height/2));var T=new a.AddShapeHistoryItem(w,this.startShapePosition);return this.history.addAndRedo(T),d.ModelUtils.updateNewShapeProperties(this.history,this.selection,T.shapeKey),T.shapeKey},S.prototype.allowInsertToContainer=function(O,w,T){return!this.handler.canMultipleSelection(O)&&T&&T.expanded&&d.ModelUtils.canInsertToContainer(this.model,w,T)},S.prototype.getPosition=function(O,w){return this.getSnappedPoint(O,new f.Point(w.x+O.modelPoint.x-this.startPoint.x,w.y+O.modelPoint.y-this.startPoint.y))},S}(s.MouseHandlerDraggingState);l.MouseHandlerToolboxDraggingState=y},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerMoveConnectorTextState=void 0;var C=o(34),f=o(313),a=o(69),p=function(s){function u(d,h,g){var x=s.call(this,d,h)||this;return x.model=g,x}return I(u,s),u.prototype.onMouseDown=function(d){this.connector=this.model.findConnector(d.source.key),this.position=parseFloat(d.source.value),this.text=this.connector.getText(this.position),this.savedText="",s.prototype.onMouseDown.call(this,d)},u.prototype.onApplyChanges=function(d){var h=this.connector.getTextPositionByPoint(d.modelPoint);if(h!==this.position){var g=this.connector.getText(h);""!==g&&g!==this.text&&(this.history.addAndRedo(new a.ChangeConnectorTextHistoryItem(this.connector,h,"")),this.savedText=g),this.history.addAndRedo(new f.ChangeConnectorTextPositionHistoryItem(this.connector,this.position,h)),""!==this.savedText&&this.savedText!==g&&(this.history.addAndRedo(new a.ChangeConnectorTextHistoryItem(this.connector,this.position,this.savedText)),this.savedText=""),this.position=h}},u.prototype.getDraggingElementKeys=function(){return[this.connector.key]},u}(C.MouseHandlerDraggingState);l.MouseHandlerMoveConnectorTextState=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeConnectorTextPositionHistoryItem=void 0;var C=function(f){function a(p,s,u){var d=f.call(this)||this;return d.connectorKey=p.key,d.position=s,d.newPosition=u,d}return I(a,f),a.prototype.redo=function(p){var s=p.model.findConnector(this.connectorKey);p.changeConnectorTextPosition(s,this.position,this.newPosition)},a.prototype.undo=function(p){var s=p.model.findConnector(this.connectorKey);p.changeConnectorTextPosition(s,this.newPosition,this.position)},a}(o(8).HistoryItem);l.ChangeConnectorTextPositionHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerToggleShapeExpandedState=void 0;var C=o(40),f=o(315),a=o(4),p=function(s){function u(d,h,g,x){var b=s.call(this,d)||this;return b.history=h,b.model=g,b.selection=x,b}return I(u,s),u.prototype.onMouseUp=function(d){var h=this.model.findShape(d.source.key);h&&!h.isLocked&&(this.history.beginTransaction(),this.history.addAndRedo(new f.ToggleShapeExpandedHistoryItem(h)),a.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,h),a.ModelUtils.updateContainerConnectorsAttachedPoints(this.history,this.model,h),a.ModelUtils.updateSelection(this.history,this.selection),this.handler.tryUpdateModelSize(),this.history.endTransaction(),this.handler.raiseClick([h.key])),this.handler.switchToDefaultState()},u}(C.MouseHandlerStateBase);l.MouseHandlerToggleShapeExpandedState=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.ToggleShapeExpandedHistoryItem=void 0;var C=function(f){function a(p){var s=f.call(this)||this;return s.shapeKey=p.key,s.expanded=p.expanded,s}return I(a,f),a.prototype.redo=function(p){var s=p.model.findShape(this.shapeKey);p.changeShapeExpanded(s,!this.expanded)},a.prototype.undo=function(p){var s=p.model.findShape(this.shapeKey);p.changeShapeExpanded(s,this.expanded)},a}(o(8).HistoryItem);l.ToggleShapeExpandedHistoryItem=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerSelectionState=void 0;var C=o(11),f=o(13),a=function(p){function s(u,d,h){var g=p.call(this,u)||this;return g.selection=d,g.visualizerManager=h,g}return I(s,p),s.prototype.finish=function(){this.handler.raiseDragEnd([]),this.visualizerManager.resetSelectionRectangle(),p.prototype.finish.call(this)},s.prototype.cancelChanges=function(){},s.prototype.onMouseDown=function(u){this.startPoint=u.modelPoint,this.handler.raiseDragStart([])},s.prototype.onMouseMove=function(u){u.button!==C.MouseButton.Left?this.handler.switchToDefaultState():(this.rectangle=f.Rectangle.fromPoints(this.startPoint,u.modelPoint),this.visualizerManager.setSelectionRectangle(this.rectangle))},s.prototype.onMouseUp=function(u){void 0!==this.rectangle?this.selection.selectRect(this.rectangle):this.selection.set([]),this.rectangle=void 0,this.handler.switchToDefaultState()},s}(o(40).MouseHandlerCancellableState);l.MouseHandlerSelectionState=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerZoomOnWheelState=void 0;var C=o(40),f=o(11),a=o(28),p=function(s){function u(d,h,g){var x=s.call(this,d)||this;return x.settings=h,x.view=g,x}return I(u,s),u.prototype.onMouseWheel=function(d){return this.trySwitchToDefault(d)?this.handler.state.onMouseWheel(d):(this.settings.zoomLevel=this.view.getNextStepZoom(d.deltaY<0),d.source.type===f.MouseEventElementType.Background?this.view.resetScroll():(this.view.scrollTo(d.modelPoint,d.offsetPoint),this.view.normalize()),d.preventDefault=!0,!0)},u.prototype.onMouseUp=function(d){this.handler.switchToDefaultState(),this.handler.state.onMouseUp(d)},u.prototype.onMouseDown=function(d){this.handler.switchToDefaultState(),this.handler.state.onMouseDown(d)},u.prototype.onMouseMove=function(d){this.trySwitchToDefault(d)&&this.handler.state.onMouseMove(d)},u.prototype.trySwitchToDefault=function(d){return!!this.handler.canFinishZoomOnWheel(d)&&(this.handler.switchToDefaultState(),!0)},u.prototype.start=function(){s.prototype.start.call(this),this.settings.zoomLevel=this.view.getZoom(),this.settings.autoZoom=a.AutoZoomMode.Disabled},u}(C.MouseHandlerStateBase);l.MouseHandlerZoomOnWheelState=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerZoomOnPinchState=void 0;var C=o(28),f=o(0),a=o(150),p=o(35),s=function(u){function d(h,g,x,b){var y=u.call(this,h,b,g)||this;return y.selection=g,y.settings=x,y.view=b,y}return I(d,u),d.prototype.onMouseDown=function(h){u.prototype.onMouseDown.call(this,h),h.touches.length>1&&(this.startDistance=this.getTouchDistance(h),this.startZoomLevel=this.settings.zoomLevel,this.prevDistance=this.startDistance)},d.prototype.onMouseMove=function(h){if(h.touches.length>1){var g=this.getTouchDistance(h);Math.abs(this.prevDistance-g)>1&&(this.settings.zoomLevel=this.startZoomLevel*(g/this.startDistance),this.view.scrollTo(this.getMiddleLayoutPoint(h),this.getMiddleAbsPoint(h)),this.view.normalize(),this.prevDistance=g)}u.prototype.onMouseMove.call(this,h)},d.prototype.onMouseUp=function(h){0===h.touches.length&&setTimeout(function(){this.handler.switchToDefaultState()}.bind(this),1)},d.prototype.start=function(){u.prototype.start.call(this),this.settings.zoomLevel=this.view.getZoom(),this.settings.autoZoom=C.AutoZoomMode.Disabled},d.prototype.getTouchDistance=function(h){var g=new f.Point(h.touches[0].offsetPoint.x,h.touches[0].offsetPoint.y),x=new f.Point(h.touches[1].offsetPoint.x,h.touches[1].offsetPoint.y);return p.Metrics.euclideanDistance(g,x)},d.prototype.getPointByEvent=function(h){return this.getMiddleAbsPoint(h)},d.prototype.getMiddleAbsPoint=function(h){return h.touches.length>1?d.getMiddlePointByEvent(h,function(g){return g.offsetPoint}):h.offsetPoint},d.prototype.getMiddleLayoutPoint=function(h){return h.touches.length>1?d.getMiddlePointByEvent(h,function(g){return g.modelPoint}):h.modelPoint},d.getMiddlePointByEvent=function(h,g){if(h.touches.length>1)return new f.Point((g(h.touches[0]).x+g(h.touches[1]).x)/2,(g(h.touches[0]).y+g(h.touches[1]).y)/2)},d}(a.MouseHandlerScrollingState);l.MouseHandlerZoomOnPinchState=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerMoveShapeState=void 0;var C=function(f){function a(p,s,u,d,h){var g=f.call(this,p,s,u,d,h)||this;return g.model=u,g.selection=d,g.visualizerManager=h,g}return I(a,f),Object.defineProperty(a.prototype,"areValidDraggingShapes",{get:function(){return this.shouldClone||this.draggingShapes.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"areValidDraggingConnectors",{get:function(){return!0},enumerable:!1,configurable:!0}),a}(o(151).MouseHandlerDragDiagramItemStateBase);l.MouseHandlerMoveShapeState=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerMoveConnectorState=void 0;var C=o(4),f=function(a){function p(s,u,d,h,g){var x=a.call(this,s,u,d,h,g)||this;return x.model=d,x.selection=h,x.visualizerManager=g,x}return I(p,a),Object.defineProperty(p.prototype,"areValidDraggingShapes",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"areValidDraggingConnectors",{get:function(){var s=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(u){return!C.ModelUtils.canMoveConnector(s.selectedItems,u.connector)}))},enumerable:!1,configurable:!0}),p}(o(151).MouseHandlerDragDiagramItemStateBase);l.MouseHandlerMoveConnectorState=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerDefaultReadOnlyTouchState=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.canDragObjectOnMouseDown=function(p){return!1},a.prototype.canExpandContainerOnMouseDown=function(p){return!1},a.prototype.canClearSelectionOnMouseDown=function(){return!0},a.prototype.canSelectOnMouseUp=function(p){return!this.inSelection(p)},a.prototype.canClearSelectionOnMouseUp=function(){return!1},a}(o(152).MouseHandlerDefaultReadOnlyState);l.MouseHandlerDefaultReadOnlyTouchState=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.MouseHandlerDefaultTouchState=void 0;var C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return I(a,f),a.prototype.updateConnectionsOnMouseMove=function(p){},a.prototype.canDragObjectOnMouseDown=function(p){return this.inSelection(p)},a.prototype.canExpandContainerOnMouseDown=function(p){return!0},a.prototype.canClearSelectionOnMouseDown=function(){return!0},a.prototype.canSelectOnMouseUp=function(p){return!this.inSelection(p)},a.prototype.canClearSelectionOnMouseUp=function(){return!1},a}(o(147).MouseHandlerDefaultState);l.MouseHandlerDefaultTouchState=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TextInputHandler=void 0;var c=o(153),I=o(11),C=o(25),f=o(14),a=o(6),p=o(69),s=function(){function u(d){this.control=d}return u.prototype.startTextInput=function(d,h){if(!d.isLocked&&d.enableText&&d.allowEditText&&!this.control.settings.readOnly&&this.canFinishTextEditing()){this.control.beginUpdate(),this.textInputItem=d;var g=!0;if(this.textInputItem instanceof f.Shape){var x=this.textInputItem.textEditRectangle;(g=this.control.permissionsProvider.canChangeShapeText(this.textInputItem))&&this.control.eventManager.raiseTextInputStart(this.textInputItem,this.textInputItem.text,x.createPosition(),x.createSize())}else this.textInputItem instanceof a.Connector&&(this.textInputPosition=h,(g=this.control.permissionsProvider.canChangeConnectorText(this.textInputItem,this.textInputPosition))&&this.control.eventManager.raiseTextInputStart(this.textInputItem,this.textInputItem.getText(this.textInputPosition),this.textInputItem.getTextPoint(this.textInputPosition)));g||(delete this.textInputItem,this.control.endUpdate())}},u.prototype.endTextInput=function(d){var h=this.textInputItem;delete this.textInputItem,this.control.eventManager.raiseTextInputEnd(h,d),this.control.endUpdate(),this.control.barManager.updateItemsState()},u.prototype.raiseTextInputPermissionsCheck=function(d){this.control.eventManager.raiseTextInputPermissionsCheck(this.textInputItem,d)},u.prototype.applyTextInput=function(d,h){if(this.canFinishTextEditing(d)){var g=this.textInputItem,x=this.textInputPosition;this.endTextInput(h),g instanceof f.Shape?g.text!==d&&this.control.history.addAndRedo(new c.ChangeShapeTextHistoryItem(g,d)):g instanceof a.Connector&&g.getText(x)!==d&&this.control.history.addAndRedo(new p.ChangeConnectorTextHistoryItem(g,x,d))}},u.prototype.canFinishTextEditing=function(d){var h=!0;if(this.isTextInputActive()){var g=d||this.getTextInputElementValue();this.textInputItem instanceof f.Shape?h=this.control.permissionsProvider.canApplyShapeTextChange(this.textInputItem,g):this.textInputItem instanceof a.Connector&&(h=this.control.permissionsProvider.canApplyConnectorTextChange(this.textInputItem,this.textInputPosition,g)),this.raiseTextInputPermissionsCheck(h)}return h},u.prototype.getTextInputElementValue=function(){return this.control.render?this.control.render.input.getTextInputElementValue():""},u.prototype.cancelTextInput=function(){this.raiseTextInputPermissionsCheck(!0),this.endTextInput(!0)},u.prototype.isTextInputActive=function(){return void 0!==this.textInputItem},u.prototype.processDblClick=function(d){if(d.source.type===I.MouseEventElementType.Shape){var h=this.control.model.findShape(d.source.key);this.startTextInput(h)}else if(d.source.type===I.MouseEventElementType.Connector){var g=(x=this.control.model.findConnector(d.source.key)).getTextPositionByPoint(d.modelPoint);this.startTextInput(x,g)}else if(d.source.type===I.MouseEventElementType.ConnectorText){var x=this.control.model.findConnector(d.source.key);g=parseFloat(d.source.value),this.startTextInput(x,g)}},u.prototype.onDblClick=function(d){var h=this;setTimeout(function(){h.processDblClick(d)},10)},u.prototype.onKeyDown=function(d){this.isTextInputActive()&&(13===d.keyCode&&this.hasCtrlModifier(d.modifiers)&&(d.preventDefault=!0,this.applyTextInput(d.inputText,!0)),27===d.keyCode&&this.cancelTextInput())},u.prototype.onBlur=function(d){this.isTextInputActive()&&this.applyTextInput(d.inputText)},u.prototype.onFocus=function(d){},u.prototype.hasCtrlModifier=function(d){return(d&C.ModifierKey.Ctrl)>0},u}();l.TextInputHandler=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ContextMenuTouchHandler=void 0;var C=o(11),f=o(154),a=o(4),p=function(s){function u(d){var h=s.call(this)||this;return h.selection=d,h.contextToolboxVisible=!1,h.selection.onChanged.add(h),h}return I(u,s),u.prototype.onMouseDown=function(d){void 0===d.source.key&&this.hideContextMenu()},u.prototype.onMouseUp=function(d){},u.prototype.onFocus=function(d){var h=this;setTimeout(function(){h.showContextMenuAtSelection()},1)},u.prototype.onBlur=function(d){var h=this;setTimeout(function(){h.hideContextMenu()},1)},u.prototype.onTextInputFocus=function(d){var h=this;setTimeout(function(){h.hideContextMenu()},1)},u.prototype.onTextInputBlur=function(d){var h=this;setTimeout(function(){h.showContextMenuAtSelection()},1)},u.prototype.onLongTouch=function(d){d.source.type===C.MouseEventElementType.Document&&this.showContextMenuAtEmptySelection(d.modelPoint)},u.prototype.onKeyDown=function(d){},u.prototype.onShortcut=function(d){},u.prototype.getSelectedItems=function(){return this.selection.getSelectedItems(!0)},u.prototype.showContextMenuAtSelection=function(){if(!this.contextToolboxVisible){var d=this.getSelectedItems();0!==d.length&&this.showContextMenu(void 0,a.ModelUtils.createRectangle(d).createPosition())}},u.prototype.showContextMenuAtEmptySelection=function(d){this.contextToolboxVisible||0===this.getSelectedItems().length&&this.showContextMenu(void 0,d)},u.prototype.notifyDragStart=function(d){this.hideContextMenu()},u.prototype.notifyDragEnd=function(d){this.showContextMenuAtSelection()},u.prototype.notifySelectionChanged=function(d){this.isUpdateLocked()?this.registerOccurredEvent(1):this.raiseSelectionChanged()},u.prototype.raiseSelectionChanged=function(){0!==this.getSelectedItems().length?this.showContextMenuAtSelection():this.hideContextMenu()},u.prototype.onUpdateUnlocked=function(d){1&d&&this.raiseSelectionChanged()},u.prototype.notifyShowContextToolbox=function(d,h,g,x,b){this.contextToolboxVisible=!0,this.hideContextMenu()},u.prototype.notifyHideContextToolbox=function(){this.contextToolboxVisible=!1,this.showContextMenuAtSelection()},u}(f.ContextMenuHandler);l.ContextMenuTouchHandler=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectionTargetVisualizer=l.ConnectionTargetInfo=void 0;var C=o(156),f=function(p,s){this.rect=p,this.strokeWidth=s,this.allowed=!0};l.ConnectionTargetInfo=f;var a=function(p){function s(u){return p.call(this,u)||this}return I(s,p),s.prototype.raiseShow=function(){var u=this,d=new f(this.targetRect,this.targetStrokeWidth);this.dispatcher.raise1(function(h){return h.notifyConnectionTargetShow(u.key,d)})},s.prototype.raiseHide=function(){this.dispatcher.raise1(function(u){return u.notifyConnectionTargetHide()})},s}(C.TargetVisualizerBase);l.ConnectionTargetVisualizer=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ContainerTargetVisualizer=l.ContainerTargetInfo=void 0;var C=o(156),f=function(p,s){this.rect=p,this.strokeWidth=s};l.ContainerTargetInfo=f;var a=function(p){function s(u){return p.call(this,u)||this}return I(s,p),s.prototype.raiseShow=function(){var u=this,d=new f(this.targetRect,this.targetStrokeWidth);this.dispatcher.raise1(function(h){return h.notifyContainerTargetShow(u.key,d)})},s.prototype.raiseHide=function(){this.dispatcher.raise1(function(u){return u.notifyContainerTargetHide()})},s}(C.TargetVisualizerBase);l.ContainerTargetVisualizer=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectionPointsVisualizer=l.ConnectionPointInfo=void 0,l.ConnectionPointInfo=function(C,f){this.point=C,this.side=f,this.allowed=!0};var I=function(){function C(f){this.dispatcher=f}return C.prototype.getKey=function(){return this.key},C.prototype.setPoints=function(f,a,p,s){this.key===f&&this.pointIndex===p||(this.key=f,this.points=a,this.pointIndex=p,this.outsideRectangle=s,this.raiseShow())},C.prototype.setPointIndex=function(f){0<=f&&f<this.points.length&&this.pointIndex!==f&&(this.pointIndex=f,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 f=this;this.dispatcher.raise1(function(a){return a.notifyConnectionPointsShow(f.key,f.points,f.pointIndex,f.outsideRectangle)})},C.prototype.raiseHide=function(){this.dispatcher.raise1(function(f){return f.notifyConnectionPointsHide()})},C}();l.ConnectionPointsVisualizer=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResizeInfoVisualizer=void 0;var c=function(){function I(C){this.dispatcher=C}return I.prototype.set=function(C,f){this.point=C,this.text=f,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(f){return f.notifyResizeInfoShow(C.point,C.text)})},I.prototype.raiseHide=function(){this.dispatcher.raise1(function(C){return C.notifyResizeInfoHide()})},I}();l.ResizeInfoVisualizer=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.SelectionRectVisualizer=void 0;var c=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(f){return f.notifySelectionRectShow(C.rect)})},I.prototype.raiseHide=function(){this.dispatcher.raise1(function(C){return C.notifySelectionRectHide()})},I}();l.SelectionRectVisualizer=c},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.VisualizerTouchManager=void 0;var C=o(155),f=o(11),a=function(p){function s(u,d,h,g,x){void 0===x&&(x=g.readOnly);var b=p.call(this,u,d,h,g,x)||this;return u.onChanged.add(b),b}return I(s,p),s.prototype.onBlur=function(u){var d=this;setTimeout(function(){d.hideConnections()},1)},s.prototype.onFocus=function(u){var d=this;setTimeout(function(){d.showConnections()},1)},s.prototype.hideConnections=function(){this.readOnly||this.resetConnectionPoints()},s.prototype.showConnections=function(){if(!this.readOnly&&this.needShowConnections()){var u=this.selection.getSelectedShapes();1===u.length&&this.setConnectionPoints(u[0],f.MouseEventElementType.ShapeConnectionPoint,-1,!u[0].allowResizeHorizontally&&!u[0].allowResizeVertically||u[0].isLocked)}},s.prototype.needShowConnections=function(){var u=this.selection.getSelectedItems(),d=this.selection.getSelectedShapes();return 1===u.length&&1===d.length},s.prototype.notifySelectionChanged=function(u){this.isUpdateLocked()?this.registerOccurredEvent(1):this.raiseSelectionChanged()},s.prototype.raiseSelectionChanged=function(){this.needShowConnections()?this.showConnections():this.hideConnections()},s.prototype.onUpdateUnlocked=function(u){1&u&&this.raiseSelectionChanged()},s.prototype.notifyDragStart=function(u){this.hideConnections()},s.prototype.notifyDragEnd=function(u){this.showConnections()},s}(C.VisualizerManager);l.VisualizerTouchManager=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ContextToolboxHandler=void 0;var c=o(11),I=o(3),C=o(25),f=o(18),a=function(){function p(){this.contextToolboxVisible=!1,this.onVisibilityChanged=new I.EventDispatcher}return p.prototype.onMouseDown=function(s){s.source.type!==c.MouseEventElementType.Undefined&&this.hideContextToolbox()},p.prototype.onMouseUp=function(s){s.source.type===c.MouseEventElementType.Undefined&&f.Browser.TouchUI||this.hideContextToolbox()},p.prototype.onFocus=function(s){},p.prototype.onBlur=function(s){},p.prototype.onKeyDown=function(s){s.keyCode===C.KeyCode.Esc&&this.hideContextToolbox()},p.prototype.onShortcut=function(s){this.hideContextToolbox()},p.prototype.showContextToolbox=function(s,u,d,h,g,x){this.onVisibilityChanged.raise1(function(b){return b.notifyShowContextToolbox(s,u,d,h,g)}),this.contextToolboxVisible=!0,this.contextToolboxCancelCallback=x},p.prototype.hideContextToolbox=function(s){this.contextToolboxVisible&&(this.onVisibilityChanged.raise1(function(u){return u.notifyHideContextToolbox()}),this.contextToolboxCancelCallback&&(s||this.contextToolboxCancelCallback(),this.contextToolboxCancelCallback=void 0),this.contextToolboxVisible=!1)},p}();l.ContextToolboxHandler=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Selection=void 0;var c=o(3),I=o(333),C=o(14),f=o(6),a=o(44),p=function(){function s(u){this.onChanged=new c.EventDispatcher,this.inputPosition=new I.InputPosition(this),this.onChanged.add(this.inputPosition),this.initialize(u)}return s.prototype.initialize=function(u){this.model=u,this.keys=[],this.inputPosition.initialize()},s.prototype.add=function(u){this.keys.indexOf(u)<0&&(this.keys.push(u),this.raiseSelectionChanged())},s.prototype.remove=function(u){this.keys.indexOf(u)>=0&&(this.keys.splice(this.keys.indexOf(u),1),this.raiseSelectionChanged())},s.prototype.clear=function(){this.keys.length>0&&(this.keys=[],this.raiseSelectionChanged())},s.prototype.set=function(u,d){!d&&a.Data.ArrayEqual(u,this.keys)||(this.keys=u,this.raiseSelectionChanged())},s.prototype.getKeys=function(){return this.keys},s.prototype.getKey=function(u){return this.keys[u]},s.prototype.getSelectedItemsInsideContainers=function(u){var d=this,h=u.slice();return u.forEach(function(g){g instanceof C.Shape&&d.getSelectedItemsInsideContainers(d.model.getChildren(g)).forEach(function(x){-1!==h.indexOf(x)||d.hasKey(x.key)||h.push(x)})}),h},s.prototype.getSelectedItemsCore=function(u){var d=this;return this.keys.map(function(h){return d.model.findItem(h)}).filter(function(h){return h&&(u||!h.isLocked)})},s.prototype.getSelectedItems=function(u,d){return d?this.getSelectedItemsInsideContainers(this.getSelectedItemsCore(u)):this.getSelectedItemsCore(u)},s.prototype.getSelectedShapes=function(u,d){var h=this;if(d){var g=this.getSelectedItemsCore(u);return this.getSelectedItemsInsideContainers(g).map(function(x){return x instanceof C.Shape?x:void 0}).filter(function(x){return x})}return this.keys.map(function(x){return h.model.findShape(x)}).filter(function(x){return x&&(u||!x.isLocked)})},s.prototype.getSelectedConnectors=function(u,d){var h=this;if(d){var g=this.keys.map(function(x){return h.model.findItem(x)});return this.getSelectedItemsInsideContainers(g).map(function(x){return x instanceof f.Connector?x:void 0}).filter(function(x){return x&&(u||!x.isLocked)})}return this.keys.map(function(x){return h.model.findConnector(x)}).filter(function(x){return x&&(u||!x.isLocked)})},s.prototype.hasKey=function(u){return this.keys.indexOf(u)>=0},s.prototype.isEmpty=function(u){return!this.getSelectedItems(u).length},s.prototype.selectRect=function(u){var d=[];this.model.iterateItems(function(h){h.intersectedByRect(u)&&d.push(h.key)}),this.set(d)},s.prototype.raiseSelectionChanged=function(){this.onChanged.raise("notifySelectionChanged",this)},s}();l.Selection=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.InputPosition=void 0;var c=o(334),I=o(44),C=function(){function f(a){this.selection=a,this.initialProperties=new c.InputPositionProperties(this.selection),this.defaultProperties=new c.InputPositionProperties(this.selection,this.initialProperties,!0),this.currentProperties=new c.InputPositionProperties(this.selection,this.defaultProperties)}return f.prototype.initialize=function(){this.reset(),this.defaultProperties.reset()},f.prototype.reset=function(){this.currentProperties.reset()},f.prototype.getDefaultConnectorProperties=function(){return this.defaultProperties.getConnectorProperties()},f.prototype.getDefaultConnectorPropertyValue=function(a){return this.defaultProperties.getConnectorPropertyValue(a)},f.prototype.getCurrentConnectorPropertyValue=function(a){return this.currentProperties.getConnectorPropertyValue(a)},f.prototype.setConnectorPropertyValue=function(a,p){this.currentProperties.setConnectorPropertyValue(a,p),this.selection.isEmpty(!0)&&this.defaultProperties.setConnectorPropertyValue(a,p)},f.prototype.setInitialConnectorProperties=function(a){for(var p in this.defaultProperties.reset(),this.currentProperties.reset(),a)Object.prototype.hasOwnProperty.call(a,p)&&this.initialProperties.setConnectorPropertyValue(p,a[p])},f.prototype.getDefaultStyle=function(){return this.defaultProperties.getStyle()},f.prototype.getDefaultStylePropertyValue=function(a){return this.defaultProperties.getStylePropertyValue(a)},f.prototype.getDefaultTextStyle=function(){return this.defaultProperties.getTextStyle()},f.prototype.getDefaultTextStylePropertyValue=function(a){return this.defaultProperties.getTextStylePropertyValue(a)},f.prototype.getCurrentStylePropertyValue=function(a){return this.currentProperties.getStylePropertyValue(a)},f.prototype.getCurrentTextStylePropertyValue=function(a){return this.currentProperties.getTextStylePropertyValue(a)},f.prototype.setStylePropertyValue=function(a,p){this.currentProperties.setStylePropertyValue(a,p),this.selection.isEmpty(!0)&&this.defaultProperties.setStylePropertyValue(a,p)},f.prototype.setTextStylePropertyValue=function(a,p){this.currentProperties.setTextStylePropertyValue(a,p),this.selection.isEmpty(!0)&&this.defaultProperties.setTextStylePropertyValue(a,p)},f.prototype.setInitialStyleProperties=function(a){this.defaultProperties.reset(),this.currentProperties.reset();var p="string"==typeof a?I.Data.cssTextToObject(a):a;for(var s in p)Object.prototype.hasOwnProperty.call(p,s)&&this.initialProperties.setStylePropertyValue(s,p[s])},f.prototype.setInitialTextStyleProperties=function(a){this.defaultProperties.reset(),this.currentProperties.reset();var p="string"==typeof a?I.Data.cssTextToObject(a):a;for(var s in p)Object.prototype.hasOwnProperty.call(p,s)&&this.initialProperties.setTextStylePropertyValue(s,p[s])},f.prototype.notifySelectionChanged=function(a){this.reset()},f}();l.InputPosition=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.InputPositionProperties=void 0;var c=o(32),I=o(26),C=function(){function f(a,p,s){this.selection=a,this.baseProperties=p,this.disableMergingStyles=s,this.selection=a}return f.prototype.reset=function(){this.connectorProperties=null,this.style=null,this.textStyle=null},f.prototype.getConnectorProperties=function(){return this.connectorProperties||(this.connectorProperties=this.baseProperties?this.baseProperties.getConnectorProperties().clone():new c.ConnectorProperties,this.updateConnectorProperties(this.connectorProperties)),this.connectorProperties},f.prototype.getConnectorPropertyValue=function(a){return this.getConnectorProperties()[a]},f.prototype.setConnectorPropertyValue=function(a,p){this.getConnectorProperties()[a]=p},f.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},f.prototype.getStylePropertyValue=function(a){return this.getStyle()[a]},f.prototype.setStylePropertyValue=function(a,p){this.getStyle()[a]=p},f.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},f.prototype.getTextStylePropertyValue=function(a){return this.getTextStyle()[a]},f.prototype.setTextStylePropertyValue=function(a,p){this.getTextStyle()[a]=p},f.prototype.updateConnectorProperties=function(a){var p=this,s=this.selection.getSelectedConnectors(!0);a.forEach(function(u){p.updatePropertyValue(a,s,function(d){return d.properties},u)})},f.prototype.updateStyle=function(a,p){var s=this,u=this.selection.getSelectedItems(!0);a.forEach(function(d){s.updatePropertyValue(a,u,function(h){return h[p]},d)})},f.prototype.updatePropertyValue=function(a,p,s,u){var d,h=!1;p.forEach(function(g){var x=s(g)[u];if(void 0===d&&void 0!==x)d=x,h=!0;else if(h&&d!==x)return void(d=void 0)}),h&&(a[u]=d)},f}();l.InputPositionProperties=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.History=void 0;var c=o(8),I=o(3),C=function(){function f(a,p){this.modelManipulator=a,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 f.prototype.isModified=function(){if(this.unmodifiedIndex===this.currentIndex)return!1;for(var a=Math.min(this.unmodifiedIndex,this.currentIndex),p=Math.max(this.unmodifiedIndex,this.currentIndex),s=a+1;s<=p;s++)if(this.historyItems[s].changeModified())return!0;return!1},f.prototype.undo=function(){this.canUndo()&&(this.historyItems[this.currentIndex].undo(this.modelManipulator),this.currentIndex--,this.raiseChanged())},f.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())},f.prototype.canUndo=function(){return this.currentIndex>=0},f.prototype.canRedo=function(){return this.currentIndex<this.historyItems.length-1},f.prototype.beginTransaction=function(){return this.transactionLevel++,0===this.transactionLevel&&(this.transaction=new c.CompositionHistoryItem),this.currTransactionId++},f.prototype.endTransaction=function(a){if(!(--this.transactionLevel>=0)){var p=this.transaction.historyItems.length;if(p>0){var s=p>1?this.transaction:this.transaction.historyItems.pop();a?this.addDataSyncItem(s):this.addInternal(s)}p>0&&!a&&this.raiseChanged(),delete this.transaction}},f.prototype.addAndRedo=function(a){this.add(a),a.redo(this.modelManipulator),this.raiseChanged()},f.prototype.add=function(a){this.transactionLevel>=0?this.transaction.add(a):this.addInternal(a)},f.prototype.addInternal=function(a){this.currentIndex<this.historyItems.length-1&&(this.historyItems.splice(this.currentIndex+1),this.unmodifiedIndex=Math.min(this.unmodifiedIndex,this.currentIndex)),this.historyItems.push(a),this.currentIndex++,this.deleteOldItems()},f.prototype.addDataSyncItem=function(a){var p=this.historyItems[this.currentIndex];if(p){var s=void 0;p instanceof c.CompositionHistoryItem?s=p:(this.historyItems.splice(this.currentIndex,1),s=new c.CompositionHistoryItem,this.historyItems.push(s),s.historyItems.push(p)),s.dataSyncItems.push(a)}else this.historyItems.length&&(this.startDataSyncItem=a)},f.prototype.deleteOldItems=function(){var a=this.historyItems.length-f.MAX_HISTORY_ITEM_COUNT;a>0&&this.currentIndex>a&&(this.historyItems.splice(0,a),this.currentIndex-=a)},f.prototype.getNextId=function(){return this.incrementalId++,this.incrementalId},f.prototype.clear=function(){this.currentIndex=-1,this.unmodifiedIndex=-1,this.incrementalId=-1,this.historyItems=[],delete this.transaction,this.transactionLevel=-1},f.prototype.resetModified=function(){this.unmodifiedIndex=this.currentIndex},f.prototype.getCurrentItemId=function(){if(-1===this.currentIndex)return-1;var a=this.historyItems[this.currentIndex];return-1===a.uniqueId&&(a.uniqueId=this.getNextId()),a.uniqueId},f.prototype.undoTransaction=function(){this.diagram.beginUpdateCanvas();for(var a=this.transaction.historyItems;a.length;)a.pop().undo(this.modelManipulator);this.diagram.endUpdateCanvas()},f.prototype.undoTransactionTo=function(a){this.diagram.beginUpdateCanvas();for(var p=this.transaction.historyItems;p.length;){var s=p.pop();if(s.undo(this.modelManipulator),s===a)return}this.diagram.endUpdateCanvas()},f.prototype.raiseChanged=function(){-1===this.transactionLevel&&this.onChanged.raise("notifyHistoryChanged")},f.MAX_HISTORY_ITEM_COUNT=100,f}();l.History=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.BarManager=void 0;var C=function(f){function a(p){var s=f.call(this)||this;return s.bars=[],s.control=p,s}return I(a,f),a.prototype.clean=function(){var p=this;this.bars.forEach(function(s){return s.onChanged.remove(p)}),this.bars=[]},a.prototype.registerBar=function(p){this.bars.push(p),p.onChanged.add(this),this.updateBarItemsState(p)},a.prototype.updateItemsState=function(p){if(!this.isUpdateLocked())for(var s=0,u=void 0;u=this.bars[s];s++)this.updateBarItemsState(u,p)},a.prototype.updateBarItemsState=function(p,s){if(!this.isUpdateLocked()){if(this.control.permissionsProvider.beginUpdateUI(),p.isVisible()){var u=void 0;if(s){var d=p.getCommandKeys().reduce(function(x,b){return x[b]=!0,x},{});u=s.filter(function(x){return d[x]})}else u=p.getCommandKeys();for(var h=u.length,g=0;g<h;g++)this.updateBarItem(p,u[g])}this.control.permissionsProvider.endUpdateUI()}},a.prototype.updateBarItem=function(p,s){var u=this.control.commandManager.getCommand(s);if(u){var d=u.getState();if(p.setItemVisible(s,d.visible),d.visible&&(p.setItemEnabled(s,d.enabled),!d.denyUpdateValue)){var h=this.getItemValue(d.value);d.items&&p.setItemSubItems(s,d.items),p.setItemValue(s,h,this.getDefaultItemValue(d.defaultValue))}}},a.prototype.setEnabled=function(p){for(var s=0,u=void 0;u=this.bars[s];s++)u.setEnabled(p)},a.prototype.notifyBarCommandExecuted=function(p,s){this.control.commandManager.getCommand(p).execute(s)||this.updateItemsState([p])},a.prototype.notifyBarUpdateRequested=function(){this.updateItemsState()},a.prototype.notifySelectionChanged=function(p){this.updateItemsState()},a.prototype.onUpdateUnlocked=function(p){},a.prototype.getItemValue=function(p){return p},a.prototype.getDefaultItemValue=function(p){return p},a}(o(81).BatchUpdatableObject);l.BarManager=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RenderManager=l.DBL_CLICK_TIMEOUT=l.LONG_TOUCH_TIMEOUT=void 0;var c=o(11),I=o(65),C=o(27),f=o(0),a=o(25),p=o(18),s=o(17),u=o(78),d=o(338),h=o(28),g=o(339),x=o(340),b=o(342),y=o(158),E=o(344),S=o(79),O=o(15),w=o(100),T=o(3);l.LONG_TOUCH_TIMEOUT=500,l.DBL_CLICK_TIMEOUT=500;var k=function(){function R(P,B,W,N,V,U){this.moveLocked=!1,this.lockMouseMoveTimer=-1,this.lastClickElement=void 0,this.longTouchTimer=void 0,this.dblTouchTimer=void 0,this.pointers={};var K=O.RenderHelper.createMainElement(P),Y=O.RenderHelper.createSvgElement(K);this.scroll=V||new d.NativeScrollView(P),this.measurer=W,this.dom=new w.DOMManipulator(this.measurer),this.view=new b.CanvasViewManager(this.scroll,Y,N.modelSize,N.zoomLevel,N.autoZoom,N.simpleView,N.rectangle,this.dom),this.input=new g.InputManager(K,this.view,B,this.measurer,N.zoomLevel,U),this.items=new u.CanvasItemsManager(this.view.canvasElement,N.zoomLevel,this.dom),this.page=new x.CanvasPageManager(this.view.pageElement,N,this.dom),this.selection=new y.CanvasSelectionManager(this.view.canvasElement,N.zoomLevel,N.readOnly,this.dom),this.contextMenuEnabled=N.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 E.AutoScrollController(this.scroll,Y,this.view,this.dom),this.attachEvents(Y),this.mainElement=K,this.svgElement=Y,this.events=B,this.notifyReadOnlyChanged(N.readOnly)}return R.prototype.clean=function(P){this.killLockMouseMoveTimer(),this.clearLastMouseDownEvent(),this.detachEvents(this.svgElement),this.scroll.detachEvents(),this.input.detachEvents(),this.dom.cancelAnimation(),P&&P(this.mainElement)},R.prototype.replaceParent=function(P,B){this.mainElement&&this.mainElement.parentNode!==P&&P.appendChild(this.mainElement),B&&B!==this.scroll&&(this.scroll&&this.scroll.detachEvents(),this.scroll=B),this.measurer instanceof S.TextMeasurer&&this.measurer.replaceParent(P)},R.prototype.update=function(P){this.view.adjust({horizontal:!P,vertical:!P}),this.page.redraw()},R.prototype.onNewModel=function(P){this.measurer.onNewModel(P,this.dom)},R.prototype.clear=function(){this.items.clear(),this.selection.clear()},R.prototype.attachPointerEvents=function(P){C.DomUtils.addClassName(P,"dxdi-touch-action"),O.RenderHelper.addEventListener(P,"pointerdown",this.onPointerDownHandler),O.RenderHelper.addEventListener(p.Browser.TouchUI?P:document,"pointerup",this.onPointerUpHandler),O.RenderHelper.addEventListener(p.Browser.TouchUI?P:document,"pointermove",this.onPointerMoveHandler),O.RenderHelper.addEventListener(P,"pointercancel",this.onPointerCancelHandler),O.RenderHelper.addEventListener(P,"pointerleave",this.onPointerLeaveHandler)},R.prototype.detachPointerEvents=function(P){O.RenderHelper.removeEventListener(P,"pointerdown",this.onPointerDownHandler),O.RenderHelper.removeEventListener(p.Browser.TouchUI?P:document,"pointerup",this.onPointerUpHandler),O.RenderHelper.removeEventListener(p.Browser.TouchUI?P:document,"pointermove",this.onPointerMoveHandler),O.RenderHelper.removeEventListener(P,"pointercancel",this.onPointerCancelHandler),O.RenderHelper.removeEventListener(P,"pointerleave",this.onPointerLeaveHandler),C.DomUtils.removeClassName(P,"dxdi-touch-action")},R.prototype.attachMouseTouchEvents=function(P){O.RenderHelper.addEventListener(P,this.mouseDownEventName,this.onMouseDownHandler),O.RenderHelper.addEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),O.RenderHelper.addEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},R.prototype.detachMouseTouchEvents=function(P){O.RenderHelper.removeEventListener(P,this.mouseDownEventName,this.onMouseDownHandler),O.RenderHelper.removeEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),O.RenderHelper.removeEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},R.prototype.attachEvents=function(P){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),T.EventUtils.isPointerEvents()?this.attachPointerEvents(P):(this.attachMouseTouchEvents(P),O.RenderHelper.addEventListener(P,"mouseenter",this.onMouseEnterHandler),O.RenderHelper.addEventListener(P,"mouseleave",this.onMouseLeaveHandler)),O.RenderHelper.addEventListener(P,"wheel",this.onMouseWheelHandler),O.RenderHelper.addEventListener(P,"dblclick",this.onMouseDblClickHandler),O.RenderHelper.addEventListener(P,"click",this.onMouseClickHandler),O.RenderHelper.addEventListener(P,"contextmenu",this.onContextMenuHandler),O.RenderHelper.addEventListener(window,"resize",this.onWindowResizelHandler),O.RenderHelper.addEventListener(window,"orientationchange",this.onOrientationChangeHandler),this.input.mouseWheelHandler=this.onMouseWheelHandler},R.prototype.detachEvents=function(P){T.EventUtils.isPointerEvents()?this.detachPointerEvents(P):(this.detachMouseTouchEvents(P),O.RenderHelper.removeEventListener(P,"mouseenter",this.onMouseEnterHandler),O.RenderHelper.removeEventListener(P,"mouseleave",this.onMouseLeaveHandler)),O.RenderHelper.removeEventListener(P,"wheel",this.onMouseWheelHandler),O.RenderHelper.removeEventListener(P,"dblclick",this.onMouseDblClickHandler),O.RenderHelper.removeEventListener(P,"contextmenu",this.onContextMenuHandler),O.RenderHelper.removeEventListener(P,"click",this.onMouseClickHandler),O.RenderHelper.removeEventListener(window,"resize",this.onWindowResizelHandler),O.RenderHelper.removeEventListener(window,"orientationchange",this.onOrientationChangeHandler)},R.prototype.setPointerPosition=function(P){this.pointers[P.pointerId]={clientX:P.clientX,clientY:P.clientY}},R.prototype.clearPointerPosition=function(P){delete this.pointers[P.pointerId]},R.prototype.onPointerDown=function(P){this.setPointerPosition(P),this.getPointerCount()>2&&(this.pointers={}),this.onMouseDown(P)},R.prototype.onPointerUp=function(P){this.clearPointerPosition(P),this.onMouseUp(P)},R.prototype.onPointerMove=function(P){(p.Browser.TouchUI&&!T.EventUtils.isMousePointer(P)||T.EventUtils.isLeftButtonPressed(P))&&this.setPointerPosition(P),this.onMouseMove(P)},R.prototype.onPointerCancel=function(P){this.clearPointerPosition(P)},R.prototype.onPointerLeave=function(P){T.EventUtils.isMousePointer(P)&&this.onMouseLeave(P),this.clearPointerPosition(P)},R.prototype.onMouseDown=function(P){var B=this;this.lockMouseMove(),this.input.lockFocus(),this.autoScroll.onMouseDown(P),this.lastDownMouseEvent=this.createDiagramMouseEvent(P),s.raiseEvent(P,this.lastDownMouseEvent,function(V){return B.events.onMouseDown(V)}),this.events.canFinishTextEditing()&&this.input.captureFocus(),T.EventUtils.isTouchEvent(P)&&this.processTouchDown(P);var W=I.EvtUtils.getEventSource(P),N=W&&W.tagName;if(p.Browser.TouchUI||"img"===N.toLowerCase()||"image"===N.toLowerCase())return I.EvtUtils.preventEventAndBubble(P),!1},R.prototype.onMouseMove=function(P){var B=this;this.moveLocked||(this.autoScroll.onMouseMove(P,function(){return B.onMouseMoveCore(P)}),this.onMouseMoveCore(P),p.Browser.IE&&this.lockMouseMove(),T.EventUtils.isTouchEvent(P)&&this.processTouchMove(P))},R.prototype.onMouseMoveCore=function(P){var B=this;s.raiseEvent(P,this.createDiagramMouseEvent(P),function(W){return B.events.onMouseMove(W)})},R.prototype.onMouseUp=function(P){var B=this;this.lockMouseMove();var W=this.createDiagramMouseEvent(P);s.raiseEvent(P,W,function(N){return B.events.onMouseUp(N)}),this.autoScroll.onMouseUp(P),W.source.type!==c.MouseEventElementType.Undefined&&this.input.captureFocus(!0),T.EventUtils.isTouchEvent(P)&&this.processTouchUp(P)},R.prototype.onMouseEnter=function(P){var B=this;this.autoScroll.onMouseEnter(P),s.raiseEvent(P,this.createDiagramMouseEvent(P),function(W){return B.events.onMouseEnter(W)})},R.prototype.onMouseLeave=function(P){var B=this;s.raiseEvent(P,this.createDiagramMouseEvent(P),function(W){return B.events.onMouseLeave(W)})},R.prototype.onMouseDblClick=function(P){var B=this;s.raiseEvent(P,this.createDiagramMouseEvent(P),function(W){return B.events.onDblClick(W)})},R.prototype.onMouseClick=function(P){var B=this;T.EventUtils.isTouchEvent(P)?T.EventUtils.isMousePointer(P)||this.input.captureFocus():s.raiseEvent(P,this.createActualMouseClickEvent(P),function(W){return B.events.onClick(W)})},R.prototype.createActualMouseClickEvent=function(P){return this.lastDownMouseEvent?new c.DiagramMouseEvent(this.lastDownMouseEvent.modifiers,this.lastDownMouseEvent.button,this.lastDownMouseEvent.offsetPoint.clone(),this.lastDownMouseEvent.modelPoint.clone(),this.lastDownMouseEvent.source,this.createDiagramMouseEventTouches(P)):this.createDiagramMouseEvent(P)},R.prototype.onContextMenu=function(P){var B=this;return s.raiseEvent(P,this.createDiagramContextMenuEvent(P),function(W){return B.events.onContextMenu(W)}),this.input.captureFocus(),I.EvtUtils.preventEventAndBubble(P)},R.prototype.processTouchDown=function(P){var B=this;this.touchDownPoint=this.getTouchPointFromEvent(P),this.resetLongTouch(),this.longTouchTimer=setTimeout(function(){s.raiseEvent(P,B.createDiagramMouseEvent(P),function(W){return B.events.onLongTouch(W)}),B.resetLongTouch(),B.resetDblClick()},l.LONG_TOUCH_TIMEOUT)},R.prototype.processTouchMove=function(P){var B=this.getTouchPointFromEvent(P);this.touchDownPoint&&B&&(Math.abs(this.touchDownPoint.x-B.x)>R.touchPositionLimit||Math.abs(this.touchDownPoint.y-B.y)>R.touchPositionLimit)&&(this.resetLongTouch(),this.resetDblClick())},R.prototype.getPointers=function(){var P=this;return Object.keys(this.pointers).map(function(B){return P.pointers[B]})},R.prototype.getPointerCount=function(){return Object.keys(this.pointers).length},R.prototype.getTouchPointFromEvent=function(P){var B,W=P.touches;if(W&&W.length>0)B=new f.Point(W[0].clientX,W[0].clientY);else{var N=this.getPointers();N.length&&(B=new f.Point(N[0].clientX,N[0].clientY))}return B},R.prototype.processTouchUp=function(P){var B=this;if(void 0!==this.longTouchTimer){s.raiseEvent(P,this.createDiagramMouseEvent(P),function(N){return B.events.onClick(N)});var W=I.EvtUtils.getEventSource(P);void 0!==this.dblTouchTimer&&this.lastClickElement===W?(s.raiseEvent(P,this.createDiagramMouseEvent(P),function(N){return B.events.onDblClick(N)}),this.resetDblClick()):(this.resetDblClick(),this.dblTouchTimer=setTimeout(function(){return B.dblTouchTimer=void 0},l.DBL_CLICK_TIMEOUT)),this.lastClickElement=W}this.resetLongTouch(),this.touchDownPoint=void 0},R.prototype.resetLongTouch=function(){void 0!==this.longTouchTimer&&clearTimeout(this.longTouchTimer),this.longTouchTimer=void 0},R.prototype.resetDblClick=function(){void 0!==this.dblTouchTimer&&clearTimeout(this.dblTouchTimer),this.dblTouchTimer=void 0},R.prototype.onOrientationChange=function(){var P=this;setTimeout(function(){return P.onWindowResize()},100)},R.prototype.onWindowResize=function(){var P={horizontal:!1,vertical:!1};if(this.view.autoZoom!==h.AutoZoomMode.Disabled)P.horizontal=!0,P.vertical=!0;else{var B=this.view.checkFitToCanvas(),W=this.view.checkFitToCanvas(this.scroll.getSize());P={horizontal:B.horizontal!==W.horizontal||W.horizontal,vertical:B.vertical!==W.vertical||W.vertical}}this.view.adjust(P)},R.prototype.onMouseWheel=function(P){var B=this;s.raiseEvent(P,this.createDiagramWheelEvent(P),function(W){return B.events.onMouseWheel(W)})},R.prototype.notifyModelSizeChanged=function(P,B){this.view.notifyModelSizeChanged(P,B)},R.prototype.notifyModelRectangleChanged=function(P){this.view.notifyModelRectangleChanged(P)},R.prototype.notifyReadOnlyChanged=function(P){C.DomUtils.toggleClassName(this.mainElement,"dxdi-read-only",P)},R.prototype.notifyDragStart=function(P){},R.prototype.notifyDragEnd=function(P){},R.prototype.notifyDragScrollStart=function(){this.autoScroll.onDragScrollStart()},R.prototype.notifyDragScrollEnd=function(){this.autoScroll.onDragScrollEnd()},R.prototype.notifyToolboxDragStart=function(P){this.onMouseEnter(P)},R.prototype.notifyToolboxDragEnd=function(P){P&&T.EventUtils.isPointerEvents()&&this.onMouseUp(P)},R.prototype.notifyToolboxDraggingMouseMove=function(P){this.onMouseMove(P)},R.prototype.createDiagramMouseEvent=function(P){var J,B=a.KeyUtils.getKeyModifiers(P),W=(J=P,(p.Browser.MSTouchUI?2!==J.button:T.EventUtils.isLeftButtonPressed(J))?c.MouseButton.Left:c.MouseButton.Right),N=this.getOffsetPointByEvent(P),V=this.getModelPoint(N),U=T.EventUtils.isTouchEvent(P),K=this.getEventSource(P,U),Y=this.createDiagramMouseEventTouches(P);return new c.DiagramMouseEvent(B,W,N,V,K,Y,U)},R.prototype.createDiagramMouseEventTouches=function(P){var B=[];if(P.touches)for(var W=0;W<P.touches.length;W++){var N=P.touches[W].clientX,V=P.touches[W].clientY,U=this.getOffsetPointByEventPoint(N,V),K=this.getModelPoint(U);B.push(new c.DiagramMouseEventTouch(U,K))}else{var Y=this.getPointers();for(W=0;W<Y.length;W++)U=this.getOffsetPointByEventPoint(N=Y[W].clientX,V=Y[W].clientY),K=this.getModelPoint(U),B.push(new c.DiagramMouseEventTouch(U,K))}return B},R.prototype.createDiagramContextMenuEvent=function(P){var B=a.KeyUtils.getKeyModifiers(P),W=new f.Point(P.pageX,P.pageY),N=this.getOffsetPointByEvent(P),V=this.getModelPoint(N);return new c.DiagramContextMenuEvent(B,W,V)},R.prototype.createDiagramWheelEvent=function(P){var B=a.KeyUtils.getKeyModifiers(P),W=this.getOffsetPointByEvent(P),N=this.view.getModelPoint(W),V=this.getEventSource(P);return new c.DiagramWheelEvent(B,P.deltaX||P.originalEvent&&P.originalEvent.deltaX,P.deltaY||P.originalEvent&&P.originalEvent.deltaY,W,N,V)},R.prototype.getEventSource=function(P,B){var W=B?I.EvtUtils.getEventSourceByPosition(P):I.EvtUtils.getEventSource(P);if(this.isDiagramControl(W))for(;W&&!this.isDocumentContainer(W);){var N=s.RenderUtils.getElementEventData(W);if(void 0!==N)return N;if(this.input.isTextInputElement(W))return new c.MouseEventSource(c.MouseEventElementType.Document);W=W.parentNode}var V=new c.MouseEventSource(c.MouseEventElementType.Undefined);return W&&this.isDocumentContainer(W)&&(V.type=c.MouseEventElementType.Background),V},R.prototype.isDiagramControl=function(P){for(;P;){if(this.isDocumentContainer(P))return!0;P=P.parentNode}return!1},R.prototype.isDocumentContainer=function(P){return P===this.mainElement},R.prototype.lockMouseMove=function(){var P=this;this.moveLocked=!0,this.lockMouseMoveTimer=setTimeout(function(){P.moveLocked=!1,P.lockMouseMoveTimer=-1},10)},R.prototype.killLockMouseMoveTimer=function(){-1!==this.lockMouseMoveTimer&&(clearTimeout(this.lockMouseMoveTimer),this.lockMouseMoveTimer=-1)},R.prototype.clearLastMouseDownEvent=function(){this.lastDownMouseEvent=void 0},R.prototype.getModelPoint=function(P){return this.view.getModelPoint(P)},R.prototype.getOffsetPointByEvent=function(P){var B=I.EvtUtils.getEventX(P),W=I.EvtUtils.getEventY(P);return this.getOffsetPointByEventPoint(B,W)},R.prototype.getOffsetPointByEventPoint=function(P,B){var W=this.scroll.getScrollContainer(),N=C.DomUtils.getAbsolutePositionX(W),V=C.DomUtils.getAbsolutePositionY(W);return new f.Point(P-N,B-V)},R.prototype.getModelPointByEventPoint=function(P,B){var W=this.getOffsetPointByEventPoint(P,B);return this.view.getModelPoint(W)},R.prototype.getEventPointByModelPoint=function(P){var B=this.view.getAbsolutePoint(P),W=this.scroll.getScrollContainer();return new f.Point(C.DomUtils.getAbsolutePositionX(W)+B.x,C.DomUtils.getAbsolutePositionY(W)+B.y)},R.touchPositionLimit=4,R}();l.RenderManager=k},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.NativeScrollView=void 0;var c=o(3),I=o(2),C=o(0),f=o(27),a=o(15),p=function(){function s(u){this.onScroll=new c.EventDispatcher,this.scrollBarWidth=f.DomUtils.getVerticalScrollBarWidth(),this.mainElement=u,this.attachEvents()}return s.prototype.attachEvents=function(){var u=this;this.onScrollHandler=function(){return u.onScroll.raise1(function(d){return d.notifyScrollChanged(function(){return u.getScroll()})})},a.RenderHelper.addEventListener(this.mainElement,"scroll",this.onScrollHandler)},s.prototype.detachEvents=function(){a.RenderHelper.removeEventListener(this.mainElement,"scroll",this.onScrollHandler)},s.prototype.getScrollContainer=function(){return this.mainElement},s.prototype.setScroll=function(u,d){var h=this;this.mainElement.style.overflow="scroll",this.mainElement.scrollLeft=u,this.mainElement.scrollTop=d,this.mainElement.style.overflow="",this.onScroll.raise1(function(g){return g.notifyScrollChanged(function(){return h.getScroll()})})},s.prototype.offsetScroll=function(u,d){var h=this;u&&(this.mainElement.scrollLeft+=u),d&&(this.mainElement.scrollTop+=d),this.onScroll.raise1(function(g){return g.notifyScrollChanged(function(){return h.getScroll()})})},s.prototype.getScroll=function(){return new C.Point(this.mainElement.scrollLeft,this.mainElement.scrollTop)},s.prototype.getSize=function(){var u=this.mainElement.getBoundingClientRect();return new I.Size(Math.floor(u.width),Math.floor(u.height))},s.prototype.getScrollBarWidth=function(){return this.scrollBarWidth},s}();l.NativeScrollView=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.InputManager=void 0;var c=o(25),I=o(27),C=o(17),f=o(11),a=o(14),p=o(6),s=o(65),u=o(43),d=o(18),h=o(12),g=o(15),x=o(64),b=o(3),y=function(){function E(S,O,w,T,k,R){this.mainElement=S,this.layoutPointResolver=O,this.eventManager=w,this.textMeasurer=T,this.actualZoom=k,this.focusElementsParent=R,this.focused=!1,this.focusLocked=!1,this.createInputElements(this.mainElement,this.focusElementsParent)}return E.prototype.detachEvents=function(){this.detachInputElementEvents(),this.detachTextInputElementEvents()},E.prototype.isFocused=function(){return this.focused},E.prototype.captureFocus=function(S){S&&document.activeElement===this.textInputElement?b.HtmlFocusUtils.focusWithPreventScroll(this.textInputElement||this.inputElement):b.HtmlFocusUtils.focusWithPreventScroll(this.inputElement)},E.prototype.setClipboardData=function(S){this.clipboardInputElement.value=S,b.HtmlFocusUtils.focusWithPreventScroll(this.clipboardInputElement),this.clipboardInputElement.select(),document.execCommand("copy"),this.captureFocus()},E.prototype.getClipboardData=function(S){var O=this;navigator&&navigator.clipboard?navigator.clipboard.readText().then(function(w){S(w),O.captureFocus()}).catch(function(){S(""),O.captureFocus()}):d.Browser.IE&&(this.clipboardInputElement.value="",b.HtmlFocusUtils.focusWithPreventScroll(this.clipboardInputElement),this.clipboardInputElement.select(),document.execCommand("Paste"),S(this.clipboardInputElement.value),this.captureFocus())},E.prototype.isPasteSupportedByBrowser=function(){return d.Browser.IE||d.Browser.WebKitFamily&&navigator&&void 0!==navigator.clipboard},E.prototype.createInputElements=function(S,O){this.createFocusInputElement(O||S),this.createTextInputElement(S),this.createClipboardInputElement(O||S),this.attachInputElementEvents()},E.prototype.setInputElementFocusHandlerMode=function(S){this.textInputElementContainer.setAttribute("class","dxdi-text-input-container"),S&&this.captureFocus()},E.prototype.setInputElementTextInputMode=function(S,O,w,T,k,R){this.textInputElementContainer.setAttribute("class","dxdi-text-input-container "+k),this.textInputElement.value=S,this.setTextInputElementBounds(O,w,R),this.setTextInputElementStyle(T),this.updateTextInputPadding();var P=this.textInputElement||this.inputElement;b.HtmlFocusUtils.focusWithPreventScroll(P),P.select&&P.select()},E.prototype.setTextInputElementBounds=function(S,O,w){this.savedTextInputPosition=S,this.savedTextInputSize=O,this.savedTextInputAngle=w;var T=this.layoutPointResolver.getAbsolutePoint(S,!0);this.textInputElementContainer.style.left=T.x+"px",this.textInputElementContainer.style.top=T.y+"px",this.textInputElementContainer.style.width=O&&O.width+"px"||"0px",this.textInputElementContainer.style.height=O&&O.height+"px"||"0px";var k=[];this.textInputElementContainer.style.transform="",1!==this.actualZoom&&k.push("scale("+this.actualZoom+")"),w&&k.push("rotate("+w+"deg)"),this.textInputElementContainer.style.transform=k.join(" "),this.textInputElement.style.width=O&&O.width+"px"||"",this.textInputElement.style.height=O&&O.height+"px"||"auto"},E.prototype.setTextInputElementStyle=function(S){this.savedTextInputStyle=S,C.RenderUtils.applyStyleToElement(S,this.textInputElement)},E.prototype.createFocusInputElement=function(S){this.inputElement=document.createElement("textarea"),this.inputElement.readOnly=d.Browser.TouchUI,this.inputElement.setAttribute("class","dxdi-focus-input"),S.appendChild(this.inputElement)},E.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),g.RenderHelper.addEventListener(this.inputElement,"blur",this.onInputBlurHandler),g.RenderHelper.addEventListener(this.inputElement,"focus",this.onInputFocusHandler),g.RenderHelper.addEventListener(this.inputElement,"keydown",this.onInputKeyDownHandler),g.RenderHelper.addEventListener(this.inputElement,"keypress",this.onInputKeyPressHandler),g.RenderHelper.addEventListener(this.inputElement,"keyup",this.onInputKeyUpHandler),g.RenderHelper.addEventListener(this.inputElement,"paste",this.onPasteHandler)},E.prototype.detachInputElementEvents=function(){g.RenderHelper.removeEventListener(this.inputElement,"blur",this.onInputBlurHandler),g.RenderHelper.removeEventListener(this.inputElement,"focus",this.onInputFocusHandler),g.RenderHelper.removeEventListener(this.inputElement,"keydown",this.onInputKeyDownHandler),g.RenderHelper.removeEventListener(this.inputElement,"keypress",this.onInputKeyPressHandler),g.RenderHelper.removeEventListener(this.inputElement,"keyup",this.onInputKeyUpHandler),g.RenderHelper.removeEventListener(this.inputElement,"paste",this.onPasteHandler)},E.prototype.createTextInputElement=function(S){this.textInputElementContainer=document.createElement("div"),this.textInputElementContainer.setAttribute("class","dxdi-text-input-container"),S.appendChild(this.textInputElementContainer),this.textInputElement=document.createElement("textarea"),this.textInputElement.setAttribute("class","dxdi-text-input"),this.attachTextInputElementEvents(),this.textInputElementContainer.appendChild(this.textInputElement)},E.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),g.RenderHelper.addEventListener(this.textInputElement,"mousewheel",this.onTextInputMouseWheelHandler),g.RenderHelper.addEventListener(this.textInputElement,"mouseup",this.onTextInputMouseUpHandler),g.RenderHelper.addEventListener(this.textInputElement,"blur",this.onTextInputBlurHandler),g.RenderHelper.addEventListener(this.textInputElement,"focus",this.onTextInputFocusHandler),g.RenderHelper.addEventListener(this.textInputElement,"keydown",this.onTextInputKeyDownHandler),g.RenderHelper.addEventListener(this.textInputElement,"keyup",this.onTextInputKeyUpHandler),g.RenderHelper.addEventListener(this.textInputElement,"change",this.onTextInputChangeHandler)},E.prototype.detachTextInputElementEvents=function(){g.RenderHelper.removeEventListener(this.textInputElement,"mousewheel",this.onTextInputMouseWheelHandler),g.RenderHelper.removeEventListener(this.textInputElement,"mouseup",this.onTextInputMouseUpHandler),g.RenderHelper.removeEventListener(this.textInputElement,"blur",this.onTextInputBlurHandler),g.RenderHelper.removeEventListener(this.textInputElement,"focus",this.onTextInputFocusHandler),g.RenderHelper.removeEventListener(this.textInputElement,"keydown",this.onTextInputKeyDownHandler),g.RenderHelper.removeEventListener(this.textInputElement,"keyup",this.onTextInputKeyUpHandler),g.RenderHelper.removeEventListener(this.textInputElement,"change",this.onTextInputChangeHandler)},E.prototype.createClipboardInputElement=function(S){this.clipboardInputElement=document.createElement("textarea"),this.clipboardInputElement.setAttribute("class","dxdi-clipboard-input"),S.appendChild(this.clipboardInputElement)},E.prototype.blurControl=function(){this.focusLocked||(this.focused=!1,I.DomUtils.removeClassName(this.mainElement,"focused"))},E.prototype.focusControl=function(){this.focused=!0,this.focusLocked=!1,I.DomUtils.addClassName(this.mainElement,"focused")},E.prototype.updateTextInputPadding=function(){var S=this.textInputElement.value;if(this.savedTextInputSize){w=this.textMeasurer.measureWords(S,this.savedTextInputStyle,u.TextOwner.Shape),T=x.getTextHeight(S,this.savedTextInputSize.width,w,!0);var O=Math.max(0,.5*(this.savedTextInputSize.height-T));this.textInputElement.style.paddingTop=Math.ceil(O)+"px",this.textInputElement.style.height=Math.floor(this.savedTextInputSize.height)+"px"}else{var w=this.textMeasurer.measureWords(" ",this.savedTextInputStyle,u.TextOwner.Connector),T=x.getLineHeight(w)*((x.textToParagraphs(S).length||1)+1);this.textInputElement.style.height=Math.ceil(T)+"px"}},E.prototype.onInputBlur=function(S){var O=this;this.blurControl(),C.raiseEvent(S,this.getDiagramFocusEvent(S),function(w){return O.eventManager.onBlur(w)})},E.prototype.onInputFocus=function(S){var O=this;this.focusControl(),C.raiseEvent(S,this.getDiagramFocusEvent(S),function(w){return O.eventManager.onFocus(w)})},E.prototype.onInputKeyDown=function(S){var O=this;C.raiseEvent(S,this.getDiagramKeyboardEvent(S),function(w){return O.eventManager.onKeyDown(w)})},E.prototype.onInputKeyPress=function(S){!S.preventDefault||d.Browser.Safari&&"KeyV"===S.code||S.preventDefault()},E.prototype.onInputKeyUp=function(S){var O=this;C.raiseEvent(S,this.getDiagramKeyboardEvent(S),function(w){return O.eventManager.onKeyUp(w)})},E.prototype.onTextInputBlur=function(S){var O=this;if(this.eventManager.canFinishTextEditing())this.blurControl(),C.raiseEvent(S,this.getDiagramFocusEvent(S),function(T){return O.eventManager.onTextInputBlur(T)});else{var w=s.EvtUtils.getEventSource(S);document.activeElement!==w&&w.focus()}},E.prototype.onTextInputFocus=function(S){var O=this;this.focusControl(),C.raiseEvent(S,this.getDiagramFocusEvent(S),function(w){return O.eventManager.onTextInputFocus(w)})},E.prototype.onTextInputKeyDown=function(S){var O=this;C.raiseEvent(S,this.getDiagramKeyboardEvent(S),function(w){return O.eventManager.onTextInputKeyDown(w)})},E.prototype.onTextInputKeyUp=function(S){this.updateTextInputPadding()},E.prototype.onTextInputChange=function(S){this.updateTextInputPadding()},E.prototype.onPaste=function(S){var O=this;C.raiseEvent(S,this.getDiagramClipboardEvent(S),function(w){return O.eventManager.onPaste(w)})},E.prototype.onTextInputMouseWheel=function(S){this.mouseWheelHandler&&this.mouseWheelHandler(S)},E.prototype.onTextInputMouseUp=function(S){S.stopPropagation&&S.stopPropagation(),s.EvtUtils.cancelBubble(S)},E.prototype.getDiagramKeyboardEvent=function(S){return new f.DiagramKeyboardEvent(c.KeyUtils.getKeyModifiers(S),c.KeyUtils.getEventKeyCode(S),this.textInputElement.value)},E.prototype.getTextInputElementValue=function(){return this.textInputElement.value},E.prototype.getDiagramFocusEvent=function(S){return new f.DiagramFocusEvent(S.target.value)},E.prototype.getDiagramClipboardEvent=function(S){var O,w=S.clipboardData||S.originalEvent&&S.originalEvent.clipboardData;return O=void 0!==w?w.getData("text/plain"):window.clipboardData.getData("Text"),new f.DiagramClipboardEvent(O)},E.prototype.isTextInputElement=function(S){return"string"==typeof S.className&&S.className.indexOf("dxdi-text-input")>-1},E.prototype.lockFocus=function(){var S=this;this.focusLocked=!0,setTimeout(function(){return S.focusLocked=!1},10)},E.prototype.notifyViewAdjusted=function(S){},E.prototype.notifyActualZoomChanged=function(S){this.actualZoom=S,this.savedTextInputPosition&&this.savedTextInputSize&&this.setTextInputElementBounds(this.savedTextInputPosition,this.savedTextInputSize,this.savedTextInputAngle)},E.prototype.notifyTextInputStart=function(S,O,w,T){var k,R="";S instanceof a.Shape?(R="shape-text",k=S.textAngle):S instanceof p.Connector&&(R="connector-text"),T=T&&T.clone().applyConverter(h.UnitConverter.twipsToPixels),this.setInputElementTextInputMode(O,w,T,S.styleText,R,k)},E.prototype.notifyTextInputEnd=function(S,O){this.setInputElementFocusHandlerMode(O)},E.prototype.notifyTextInputPermissionsCheck=function(S,O){},E}();l.InputManager=y},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(E,S){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(E,S)},function(E,S){function O(){this.constructor=E}c(E,S),E.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)});Object.defineProperty(l,"__esModule",{value:!0}),l.CanvasPageManager=void 0;var C=o(26),f=o(21),a=o(5),p=o(341),s=o(56),u=o(42),d=o(2),h=o(0),g=o(17),x=o(22),b=o(12),y=function(E){function S(O,w,T){var k=E.call(this,w.zoomLevel,T)||this;return k.snapPoint=new h.Point(0,0),k.gridPatternId=g.RenderUtils.generateSvgElementId("gridPattern"),k.pagesGridPatternId=g.RenderUtils.generateSvgElementId("pagesGridPattern"),k.pagesGridClipId=g.RenderUtils.generateSvgElementId("pagesGridClip"),k.pageColor=w.pageColor,k.modelSize=w.modelSize,k.simpleView=w.simpleView,k.gridSize=w.gridSize,k.gridVisible=w.gridVisible,k.pageSize=w.pageLandscape?new d.Size(w.pageSize.height,w.pageSize.width):w.pageSize,k.canvasViewOffset=new h.Point(0,0),k.initContainers(O),k}return I(S,E),S.prototype.initContainers=function(O){this.backgroundContainer=O},S.prototype.redraw=function(){this.redrawPage(this.pageColor),this.redrawGrid()},S.prototype.redrawPage=function(O){var w=new C.Style;w.fill=x.ColorUtils.colorToHash(O),this.getOrCreateElement("page-bg",new f.RectanglePrimitive(0,0,"100%","100%",w,"page"),this.backgroundContainer),this.createTextFloodFilter("page-bg-textflood-filter",this.backgroundContainer,O)},S.prototype.redrawGrid=function(){this.updateGridElements(),this.updatePagesGridElements()},S.prototype.getGridRectElement=function(O){return void 0===this.gridRectElement&&(this.gridRectElement=this.createPrimitiveElement(O,this.backgroundContainer)),this.gridRectElement},S.prototype.getGridPatternElement=function(O){return void 0===this.gridPatternElement&&(this.gridPatternElement=this.createPrimitiveElement(O,this.backgroundContainer)),this.gridPatternElement},S.prototype.updateGridElements=function(){var O=this,w=new f.RectanglePrimitive("0","0","100%","100%",null,"grid",null,function(K){K.style.setProperty("fill",g.RenderUtils.getUrlPathById(O.gridPatternId))}),T=this.getGridRectElement(w);if(this.gridVisible){T.style.display="",this.changePrimitiveElement(w,T);for(var k=b.UnitConverter.twipsToPixelsF(this.gridSize)*this.actualZoom,R=[0,1,2,3,4].map(function(K){return Math.round(k*K)}),P=[new a.PathPrimitiveMoveToCommand(R[4].toString(),"0"),new a.PathPrimitiveLineToCommand(R[4].toString(),R[4].toString()),new a.PathPrimitiveLineToCommand("0",R[4].toString())],B=[],W=1;W<=3;W++)B.push(new a.PathPrimitiveMoveToCommand(R[W].toString(),"0")),B.push(new a.PathPrimitiveLineToCommand(R[W].toString(),R[4].toString()));for(W=1;W<=3;W++)B.push(new a.PathPrimitiveMoveToCommand("0",R[W].toString())),B.push(new a.PathPrimitiveLineToCommand(R[4].toString(),R[W].toString()));var N=4*k,V=this.simpleView?this.canvasViewOffset:h.Point.zero(),U=new p.PatternPrimitive(this.gridPatternId,[this.createGridPathPrimitive(P,"grid-outer-line"),this.createGridPathPrimitive(B,"grid-inner-line")],this.createGridPatternPrimitivePosition(V.x,this.snapPoint.x,N),this.createGridPatternPrimitivePosition(V.y,this.snapPoint.y,N),N.toString(),N.toString());this.changePrimitiveElement(U,this.getGridPatternElement(U))}else T.style.display="none"},S.prototype.createGridPatternPrimitivePosition=function(O,w,T){return(((O+w*this.actualZoom)%T-T)%T).toString()},S.prototype.createGridPathPrimitive=function(O,w){return new a.PathPrimitive(O,C.StrokeStyle.default1pxNegativeOffsetInstance,w)},S.prototype.getPagesGridRectElement=function(O){return this.getOrCreateElement("grid-pages-rect",O,this.backgroundContainer)},S.prototype.getPagesGridClipPathElement=function(O){return void 0===this.pagesGridClipPathElement&&(this.pagesGridClipPathElement=this.createPrimitiveElement(O,this.backgroundContainer)),this.pagesGridClipPathElement},S.prototype.getPagesGridPatternElement=function(O){return void 0===this.pagesGridPatternElement&&(this.pagesGridPatternElement=this.createPrimitiveElement(O,this.backgroundContainer)),this.pagesGridPatternElement},S.prototype.updatePagesGridElements=function(){var O=this,w=this.getAbsoluteSize(this.pageSize),T=new f.RectanglePrimitive("0","0","100%","100%",null,"grid-page",this.pagesGridClipId,function(W){W.style.setProperty("fill",g.RenderUtils.getUrlPathById(O.pagesGridPatternId)),W.style.setProperty("display",O.simpleView?"none":"")});if(this.getPagesGridRectElement(T),!this.simpleView){var k=this.modelSize.clone().multiply(this.actualZoom,this.actualZoom),R=[new a.PathPrimitiveMoveToCommand((w.width-1).toString(),"0"),new a.PathPrimitiveLineToCommand((w.width-1).toString(),(w.height-1).toString()),new a.PathPrimitiveLineToCommand("0",(w.height-1).toString())],P=new p.PatternPrimitive(this.pagesGridPatternId,[new a.PathPrimitive(R,null,"pages-grid-line")],0,0,w.width.toString(),w.height.toString());this.changePrimitiveElement(P,this.getPagesGridPatternElement(P));var B=new s.ClipPathPrimitive(this.pagesGridClipId,[new f.RectanglePrimitive(0,0,(b.UnitConverter.twipsToPixelsF(k.width)-4).toString(),(b.UnitConverter.twipsToPixelsF(k.height)-4).toString())]);this.changePrimitiveElement(B,this.getPagesGridClipPathElement(B))}},S.prototype.notifyModelSizeChanged=function(O,w){this.modelSize=O.clone(),this.redraw()},S.prototype.notifyModelRectangleChanged=function(O){},S.prototype.notifySnapPointPositionChanged=function(O){this.snapPoint=O.clone().applyConverter(b.UnitConverter.twipsToPixelsF),this.redrawGrid()},S.prototype.notifyPageColorChanged=function(O){this.pageColor=O,this.redrawPage(this.pageColor)},S.prototype.notifyModelChanged=function(O){},S.prototype.notifyPageSizeChanged=function(O,w){this.pageSize=w?new d.Size(O.height,O.width):O.clone(),this.redraw()},S.prototype.notifyActualZoomChanged=function(O){this.actualZoom=O,this.redraw()},S.prototype.notifyViewAdjusted=function(O){this.canvasViewOffset.equals(O)||(this.canvasViewOffset=O,this.simpleView&&this.redraw())},S.prototype.notifyViewChanged=function(O){this.simpleView=O,this.redraw()},S.prototype.notifyGridChanged=function(O,w){this.gridVisible=O,this.gridSize=w,this.redraw()},S}(u.CanvasManagerBase);l.CanvasPageManager=y},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(l,"__esModule",{value:!0}),l.PatternPrimitive=void 0;var C=o(15),f=function(a){function p(s,u,d,h,g,x,b){var y=a.call(this,b)||this;return y.id=s,y.x=d,y.y=h,y.width=g,y.height=x,y.children=u,y}return I(p,a),p.prototype.createMainElement=function(){var s=document.createElementNS(C.svgNS,"pattern");return s.setAttribute("patternUnits","userSpaceOnUse"),s.setAttribute("id",this.id),s},p.prototype.applyElementProperties=function(s,u){this.setUnitAttribute(s,"x",this.x),this.setUnitAttribute(s,"y",this.y),this.setUnitAttribute(s,"width",this.width),this.setUnitAttribute(s,"height",this.height),this.setPositionCorrectionAttribute(s),a.prototype.applyElementProperties.call(this,s,u)},p}(o(24).SvgPrimitive);l.PatternPrimitive=f},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(w,T){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,R){k.__proto__=R}||function(k,R){for(var P in R)R.hasOwnProperty(P)&&(k[P]=R[P])})(w,T)},function(w,T){function k(){this.constructor=w}c(w,T),w.prototype=null===T?Object.create(T):(k.prototype=T.prototype,new k)});Object.defineProperty(l,"__esModule",{value:!0}),l.CanvasViewManager=l.CROP_OFFSET=l.CANVAS_SCROLL_PADDING=l.CANVAS_MIN_PADDING=void 0;var C=o(42),f=o(28),a=o(3),p=o(87),s=o(2),u=o(0),d=o(39),h=o(56),g=o(21),x=o(17),b=o(343),y=o(26),E=o(27),S=o(12);l.CANVAS_MIN_PADDING=8,l.CANVAS_SCROLL_PADDING=18,l.CROP_OFFSET=40;var O=function(w){function T(k,R,P,B,W,N,V,U){var K=w.call(this,B,U)||this;return K.svgElement=R,K.paddings=new p.Offsets(0,0,0,0),K.scroll=new u.Point(0,0),K.crop=p.Offsets.empty(),K.lockAutoZoom=!1,K.autoScrollLocker=0,K.pageClipPathId=x.RenderUtils.generateSvgElementId("page-clip"),K.pageShadowId=x.RenderUtils.generateSvgElementId("page-shadow"),K.onViewChanged=new a.EventDispatcher,k.onScroll.add(K),P=P.clone().applyConverter(S.UnitConverter.twipsToPixelsF),K.scrollView=k,K.modelSize=P,K.simpleView=N,K.fixedZoomLevel=B,K.autoZoom=W,K.crop=K.rectangleToCrop(V,P),K.updateElements(P.clone().multiply(B,B),u.Point.zero(),N),K.getOrCreateElement("shadow",new b.ShadowFilterPrimitive(K.pageShadowId),K.svgElement),K.containerSize=k.getSize(),K}return I(T,w),T.prototype.adjust=function(k,R){var P;k||(k={vertical:!1,horizontal:!1},P=p.Offsets.empty()),this.containerSize=this.scrollView.getSize(),this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,this.simpleView,this.crop,k,this.containerSize,P,R),this.tryNormalizePaddings()},T.prototype.notifyModelSizeChanged=function(k,R){k=k.clone().applyConverter(S.UnitConverter.twipsToPixelsF),this.adjustCore(k,this.fixedZoomLevel,this.autoZoom,this.simpleView,this.crop,{horizontal:!R,vertical:!R},this.containerSize,R&&R.clone().applyConverter(S.UnitConverter.twipsToPixelsF)),this.modelSize=k},T.prototype.notifyModelRectangleChanged=function(k){var R=this.rectangleToCrop(k,this.modelSize);this.crop&&this.crop.equals(R)||(this.simpleView&&this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,this.simpleView,R,{horizontal:!1,vertical:!1},this.containerSize,p.Offsets.empty()),this.crop=R)},T.prototype.notifySnapPointPositionChanged=function(k){},T.prototype.notifyZoomChanged=function(k,R){this.adjustCore(this.modelSize,k,R,this.simpleView,this.crop,{horizontal:!1,vertical:!1},this.containerSize),this.fixedZoomLevel=k,this.autoZoom=R},T.prototype.notifyViewChanged=function(k){this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,k,this.crop,{vertical:!0,horizontal:!0},this.containerSize),this.simpleView=k},T.prototype.notifyGridChanged=function(k,R){},T.prototype.notifyDragStart=function(k){this.lockAutoZoom=!0,E.DomUtils.addClassName(this.svgElement,"dxdi-drag-item")},T.prototype.notifyDragEnd=function(k){this.lockAutoZoom=!1,E.DomUtils.removeClassName(this.svgElement,"dxdi-drag-item"),this.adjustAfterDragEnd()},T.prototype.adjustAfterDragEnd=function(){this.autoZoom&&!this.autoZoomLocked&&this.adjust({horizontal:!0,vertical:this.autoZoom===f.AutoZoomMode.FitContent},this.autoZoom===f.AutoZoomMode.FitToWidth)},T.prototype.notifyShowContextToolbox=function(){this.autoZoomLocked=!0},T.prototype.notifyHideContextToolbox=function(){this.autoZoomLocked=!1,this.adjustAfterDragEnd()},T.prototype.notifyDragScrollStart=function(){E.DomUtils.addClassName(this.svgElement,"dxdi-drag-scroll")},T.prototype.notifyDragScrollEnd=function(){E.DomUtils.removeClassName(this.svgElement,"dxdi-drag-scroll")},T.prototype.notifyScrollChanged=function(k){this.scroll=k()},T.prototype.checkFitToCanvas=function(k){k=k||this.containerSize;var R=this.scrollView.getScrollBarWidth();k=k.clone().offset(2*-l.CANVAS_MIN_PADDING,2*-l.CANVAS_MIN_PADDING).nonNegativeSize();var P=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).clone().multiply(this.actualZoom,this.actualZoom),B=this.checkScrollBars(k,R,P,p.Offsets.empty());return{vertical:(k=k.clone().offset(B.vertical?-R:0,B.horizontal?-R:0).nonNegativeSize()).height>=P.height,horizontal:k.width>=P.width}},T.prototype.rectangleToCrop=function(k,R){var P=k.clone().applyConverter(S.UnitConverter.twipsToPixelsF);return new p.Offsets(this.correctCrop(P.x),this.correctCrop(R.width-P.right),this.correctCrop(P.y),this.correctCrop(R.height-P.bottom))},T.prototype.correctCrop=function(k){return l.CROP_OFFSET*Math.floor(k/l.CROP_OFFSET)},T.prototype.setActualZoom=function(k){this.actualZoom!==k&&(this.actualZoom=k,this.raiseActualZoomChanged())},T.prototype.getActualAutoZoomLevel=function(k){if(k===f.AutoZoomMode.Disabled)return this.actualZoom;var R=this.containerSize,P=this.scrollView.getScrollBarWidth(),B=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop);return this.getActualAutoZoom(R,P,B,k)},T.prototype.getActualZoom=function(k,R,P,B,W){return this.lockAutoZoom?this.actualZoom:W===f.AutoZoomMode.Disabled?B:this.getActualAutoZoom(k,R,P,W)},T.prototype.getActualAutoZoom=function(k,R,P,B){return 0===k.width||0===k.height?1:B===f.AutoZoomMode.FitContent?Math.min((k.width-2*l.CANVAS_MIN_PADDING)/P.width,(k.height-2*l.CANVAS_MIN_PADDING)/P.height,1):Math.min((k.width-2*l.CANVAS_MIN_PADDING-R)/P.width,1)},T.prototype.raiseActualZoomChanged=function(){var k=this;this.onViewChanged.raise1(function(R){return R.notifyActualZoomChanged(k.actualZoom)})},T.prototype.tryNormalizePaddings=function(){var k=this.scrollView.getScrollBarWidth(),R=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).clone().multiply(this.actualZoom,this.actualZoom),P=new u.Point(this.paddings.left,this.paddings.top),B=new s.Size(this.paddings.right,this.paddings.bottom),W=this.getTailSpace(P,this.scroll,R,this.containerSize,k);W.equals(B)||this.applyChanges(new p.Offsets(P.x,W.width,P.y,W.height),R,this.simpleView,this.crop.clone().multiply(this.actualZoom))},T.prototype.scrollBy=function(k){var R,P,B,W=this.scroll,N=this.containerSize,V=this.scrollView.getScrollBarWidth(),U=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).clone().multiply(this.actualZoom,this.actualZoom),K=this.checkScrollBars(N,V,U,this.paddings),Y=new u.Point(this.paddings.left,this.paddings.top),J=new s.Size(this.paddings.right,this.paddings.bottom);return W=(R=this.changeScrollByOffset(Y,W,J,U,k,N,K)).scroll,Y=(P=this.changeTranslateByOffset(Y,J,k=R.offset,K)).translate,k=P.offset,Y=(B=this.cropHiddenHead(Y,W)).translate,J=this.getTailSpace(Y,W=B.scroll,U,N,V),this.applyChanges(new p.Offsets(Y.x,J.width,Y.y,J.height),U,this.simpleView,this.crop.clone().multiply(this.actualZoom),W),k},T.prototype.changeScrollByOffset=function(k,R,P,B,W,N,V){var U=R.clone(),K=W.clone();return W.x&&V.horizontal&&(U.x-=K.x=-this.getScrollDeltaByOffset(W.x,R.x,k.x+B.width+P.width,N.width,V.vertical)),W.y&&V.vertical&&(U.y-=K.y=-this.getScrollDeltaByOffset(W.y,R.y,k.y+B.height+P.height,N.height,V.horizontal)),{scroll:U,offset:K}},T.prototype.changeTranslateByOffset=function(k,R,P,B){var W=k.clone(),N=P.clone();return P.x&&!B.horizontal&&(W.x+=N.x=this.getTranslateDeltaByOffset(P.x,W.x,R.width)),P.y&&!B.vertical&&(W.y+=N.y=this.getTranslateDeltaByOffset(P.y,W.y,R.height)),{translate:W,offset:N}},T.prototype.getScrollDeltaByOffset=function(k,R,P,B,W){if(k>0)return-Math.min(R,k);var N=P-(B-(W?this.scrollView.getScrollBarWidth():0));return Math.min(N-R,-k)},T.prototype.getTranslateDeltaByOffset=function(k,R,P){return k?k<0?-Math.min(R-l.CANVAS_MIN_PADDING,-k):Math.min(P-l.CANVAS_MIN_PADDING,k):0},T.prototype.getActualModelSizeWithoutZoom=function(k,R,P){return R&&P?k.clone().offset(-P.horizontal,-P.vertical).nonNegativeSize():k},T.prototype.setScrollTo=function(k,R){var P=this.containerSize,B=this.getVisibileAreaAbsShift(),W=k.clone().applyConverter(S.UnitConverter.twipsToPixelsF).clone().multiply(this.actualZoom,this.actualZoom).clone().offset(B.x,B.y),N=this.scroll;R?(N.x+=W.x-R.x,N.y+=W.y-R.y):(W.x<0&&(N.x+=W.x-l.CANVAS_MIN_PADDING),W.y<0&&(N.y+=W.y-l.CANVAS_MIN_PADDING),W.x>P.width&&(N.x+=W.x-P.width+l.CANVAS_MIN_PADDING),W.y>P.height&&(N.y+=W.y-P.height+l.CANVAS_MIN_PADDING)),this.setScroll(N)},T.prototype.scrollIntoView=function(k){k=k.clone().applyConverter(S.UnitConverter.twipsToPixelsF).multiply(this.actualZoom,this.actualZoom).moveRectangle(this.paddings.left,this.paddings.top);var R=this.scroll,P=this.containerSize;if(!(k.x>=R.x&&k.y>=R.y&&k.right<=R.x+P.width&&k.bottom<=R.y+P.height)){var B=R.clone();k.x<R.x?B.x=k.x-l.CANVAS_SCROLL_PADDING:k.right>R.x+P.width&&(B.x=Math.min(k.x-l.CANVAS_SCROLL_PADDING,k.right+l.CANVAS_SCROLL_PADDING-P.width)),B.y=k.y<R.y?k.y-l.CANVAS_SCROLL_PADDING:Math.min(k.y-l.CANVAS_SCROLL_PADDING,k.bottom+l.CANVAS_SCROLL_PADDING-P.height),this.setScroll(B)}},T.prototype.setScroll=function(k){var R=this,P=this.modelSize.clone().multiply(this.actualZoom,this.actualZoom);k.x=Math.max(0,Math.min(k.x,P.width+this.paddings.horizontal-this.containerSize.width)),k.y=Math.max(0,Math.min(k.y,P.height+this.paddings.vertical-this.containerSize.height)),this.dom.changeByFunc(null,function(){R.scrollView.setScroll(k.x,k.y)}),this.scroll=k.clone()},T.prototype.updateElements=function(k,R,P){this.updatePageElement(k,R,P),this.updateCanvasElement(R)},T.prototype.updateCanvasElement=function(k){this.canvasElement=this.getOrCreateElement("dxdi-main",new d.GroupPrimitive([],"dxdi-main",null,null,function(R){R.setAttribute("transform","translate("+Math.round(k.x)+", "+Math.round(k.y)+")")}),this.svgElement)},T.prototype.updatePageElement=function(k,R,P){if(P)this.updatePageElementCore("",0,0,k.width,k.height);else{var B=R.x,W=R.y,N=k.width,V=k.height;this.createPageShadow(B,W,N,V),this.updatePageElementCore(this.pageClipPathId,Math.round(B),Math.round(W),N,V)}},T.prototype.createPageShadow=function(k,R,P,B){this.getOrCreateElement("pageShadowRect",new g.RectanglePrimitive(k.toString(),R.toString(),P.toString(),B.toString(),new y.EmptyStyle({filter:x.RenderUtils.getUrlPathById(this.pageShadowId)}),"dxdi-page-shadow"),this.svgElement,this.svgElement.firstChild)},T.prototype.updatePageElementCore=function(k,R,P,B,W){this.pageElement=this.getOrCreateElement("page",new d.GroupPrimitive([],"dxdi-page",null,k,function(N){N.setAttribute("transform","translate("+R+", "+P+")")}),this.svgElement),this.getOrCreateElement("pageClip",this.createPageClipPathPrimitive(B,W),this.svgElement)},T.prototype.createPageClipPathPrimitive=function(k,R){return new h.ClipPathPrimitive(this.pageClipPathId,[new g.RectanglePrimitive(0,0,k.toString(),R.toString())])},T.prototype.adjustCore=function(k,R,P,B,W,N,V,U,K){var Y=this.getActualModelSizeWithoutZoom(k,B,W);if(this.lockAutoZoom||!P&&U&&this.modelSize)this.resizeView(Y,this.actualZoom,V,B,W,U);else{var J=this.scrollView.getScrollBarWidth(),j=this.getActualZoom(V,J,Y,R,P);!P||j!==this.actualZoom||N.horizontal&&(N.vertical||K)?(this.resetView(Y,j,V,B,W,N),this.setActualZoom(j)):this.resizeView(Y,j,V,B,W,U||p.Offsets.empty())}},T.prototype.resetView=function(k,R,P,B,W,N){var V=k.clone().multiply(R,R),U=p.Offsets.fromNumber(l.CANVAS_MIN_PADDING);!(N=N||{horizontal:!0,vertical:!0}).horizontal&&this.paddings&&(U.left=this.paddings.left,U.right=this.paddings.right),!N.vertical&&this.paddings&&(U.top=this.paddings.top,U.bottom=this.paddings.bottom);var K=this.checkScrollBars(P,this.scrollView.getScrollBarWidth(),V,U),Y=this.scrollView.getScrollBarWidth(),J=N.horizontal||N.vertical?this.scroll:void 0;if(N.horizontal){var j=Math.max((P.width-(K.vertical?Y:0)-V.width)/2,l.CANVAS_MIN_PADDING);U.left=j,U.right=j,J.x=0}if(N.vertical){var ee=Math.max((P.height-(K.horizontal?Y:0)-V.height)/2,l.CANVAS_MIN_PADDING);U.top=ee,U.bottom=ee,J.y=0}this.applyChanges(U,V,B,W.clone().multiply(R),J)},T.prototype.resizeView=function(k,R,P,B,W,N){var V,U,K=this.actualZoom,Y=this.simpleView&&this.crop?this.crop.clone().multiply(K):p.Offsets.empty(),J=k.clone().multiply(R,R);N=N.clone().multiply(R);var j=B&&W?W.clone().multiply(R):p.Offsets.empty(),ee=new u.Point(this.paddings.left,this.paddings.top),G=this.scroll;ee=(V=this.applyOffset(ee,G,Y,j,N)).translate,ee=(U=this.cropHiddenHead(ee,G=V.scroll)).translate;var q=this.getTailSpace(ee,G=U.scroll,J,P,this.scrollView.getScrollBarWidth());if(!B){var Z=P.width-l.CANVAS_SCROLL_PADDING,X=P.height-l.CANVAS_SCROLL_PADDING;N.left<0&&ee.x>Z&&(ee.x=Z,G.x=0),N.right<0&&q.width>Z&&(q.width=Z,G.x>J.width&&(G.x=J.width)),N.top<0&&ee.y>X&&(ee.y=X,G.y=0),N.bottom<0&&q.height>X&&(q.height=X,G.y>J.height&&(G.y=J.height))}var M=new p.Offsets(ee.x,q.width,ee.y,q.height);this.applyChanges(M,J,B,j,G)},T.prototype.applyChanges=function(k,R,P,B,W){var N=this,V=new u.Point(k.left,k.top);P&&B&&(V=V.clone().offset(-B.left,-B.top)),this.updateElements(R,V,P),this.setSvgSize(R.width+k.horizontal,R.height+k.vertical),this.onViewChanged.raise1(function(U){return U.notifyViewAdjusted(new u.Point(V.x,V.y))}),W&&(this.lockAutoScroll(),W&&this.dom.changeByFunc(this.scrollView,function(U){U.setScroll(W.x,W.y),N.unlockAutoScroll()}),this.scroll=W),this.paddings=k},T.prototype.isAutoScrollLocked=function(){return 0!==this.autoScrollLocker},T.prototype.lockAutoScroll=function(){this.autoScrollLocker++},T.prototype.unlockAutoScroll=function(){this.autoScrollLocker--},T.prototype.applyOffset=function(k,R,P,B,W){var N=k.clone(),V=R.clone(),U=this.getActualOffset(P,B,W);return U.left&&(N.x=Math.max(l.CANVAS_MIN_PADDING,N.x-U.left),V.x+=U.left-(k.x-N.x)),U.top&&(N.y=Math.max(l.CANVAS_MIN_PADDING,N.y-U.top),V.y+=U.top-(k.y-N.y)),{translate:N,scroll:V}},T.prototype.cropHiddenHead=function(k,R){var P=R.clone(),B=k.clone();if(P.x&&B.x>l.CANVAS_MIN_PADDING){var W=B.x-Math.max(l.CANVAS_MIN_PADDING,B.x-P.x);B.x-=W,P.x-=W}return P.y&&B.y>l.CANVAS_MIN_PADDING&&(W=B.y-Math.max(l.CANVAS_MIN_PADDING,B.y-P.y),B.y-=W,P.y-=W),{translate:B,scroll:P}},T.prototype.getTailSpace=function(k,R,P,B,W){var N=k.clone(),V=R.clone(),U=Math.max(B.width+V.x-(N.x+P.width),l.CANVAS_MIN_PADDING),K=Math.max(B.height+V.y-(N.y+P.height),l.CANVAS_MIN_PADDING),Y=this.checkScrollBars(B,W,P,new p.Offsets(N.x,U,N.y,K));return Y.vertical&&(U=Math.max(l.CANVAS_MIN_PADDING,U-W)),Y.horizontal&&(K=Math.max(l.CANVAS_MIN_PADDING,K-W)),new s.Size(U,K)},T.prototype.getActualOffset=function(k,R,P){return new p.Offsets(-(R.left-k.left)+P.left,-(R.right-k.right)+P.right,-(R.top-k.top)+P.top,-(R.bottom-k.bottom)+P.bottom)},T.prototype.checkScrollBars=function(k,R,P,B){var W=k.width<P.width+B.horizontal,N=k.height<P.height+B.vertical;return W&&!N&&(N=k.height-R<P.height+B.vertical),N&&!W&&(W=k.width-R<P.width+B.horizontal),{horizontal:W,vertical:N}},T.prototype.setSvgSize=function(k,R){k===this.lastWidth&&R===this.lastHeight||(this.dom.changeByFunc(this.svgElement,function(P){return x.RenderUtils.updateSvgElementSize(P,k,R)}),this.lastWidth=k,this.lastHeight=R)},T.prototype.getVisibileAreaAbsShift=function(k){var R=this.scroll,P=this.paddings.clone(),B=this.simpleView;return new u.Point(P.left-(B&&this.crop?this.crop.left*this.actualZoom:0)-(k?0:R.x),P.top-(B&&this.crop?this.crop.top*this.actualZoom:0)-(k?0:R.y))},T.prototype.getModelPoint=function(k,R){var P=this.getVisibileAreaAbsShift(),B=k.clone().offset(-P.x,-P.y).multiply(1/this.actualZoom,1/this.actualZoom);if(R){var W=this.containerSize;if(k.x<0||k.y<0||k.x>W.width||k.y>W.height||B.x<0||B.y<0||B.x>this.modelSize.width||B.y>this.modelSize.height)return null}return B.clone().applyConverter(S.UnitConverter.pixelsToTwips)},T.prototype.getAbsolutePoint=function(k,R,P){var B=this.getVisibileAreaAbsShift(R),W=k.clone().multiply(this.actualZoom,this.actualZoom).clone().applyConverter(S.UnitConverter.twipsToPixelsF).clone().offset(B.x,B.y);if(P){if(W.x<0||W.y<0)return null;var N=this.containerSize;if(W.x>N.width||W.y>N.height)return null}return W},T}(C.CanvasManagerBase);l.CanvasViewManager=O},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.ShadowFilterPrimitive=void 0;var C=o(108),f=o(15),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.createChildElements=function(u){var d=document.createElementNS(f.svgNS,"feGaussianBlur");d.setAttribute("in","SourceGraphic"),d.setAttribute("stdDeviation","4.6"),u.appendChild(d);var h=document.createElementNS(f.svgNS,"feOffset");h.setAttribute("dx","0"),h.setAttribute("dy","0"),u.appendChild(h);var g=document.createElementNS(f.svgNS,"feMerge");u.appendChild(g);var x=document.createElementNS(f.svgNS,"feMergeNode");g.appendChild(x);var b=document.createElementNS(f.svgNS,"feMergeNode");b.setAttribute("in","SourceGraphic"),g.appendChild(b)},s}(C.FilterPrimitive);l.ShadowFilterPrimitive=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.AutoScrollController=void 0;var c=o(15),I=o(27),C=o(2),f=o(3),a=function(){function p(s,u,d,h){this.scroll=s,this.svgElement=u,this.view=d,this.dom=h,this.leftButtonPressed=!1,this.scrollDragging=!1,this.scrollTimer=-1,this.scrollBarWidth=I.DomUtils.getVerticalScrollBarWidth()}return p.prototype.onMouseMove=function(s,u){this.clearScrollTimer(),f.EventUtils.isLeftButtonPressed(s)||(this.leftButtonPressed=!1),this.canAutoScroll()&&this.changeScrollPosition(s,u,!1)},p.prototype.onMouseDown=function(s){this.leftButtonPressed=!!f.EventUtils.isLeftButtonPressed(s)},p.prototype.onMouseUp=function(s){this.clearScrollTimer(),this.leftButtonPressed=!1},p.prototype.onMouseEnter=function(s){var u=this;f.EventUtils.isLeftButtonPressed(s)&&setTimeout(function(){u.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(s,u,d){var h=this,g=!1;if(!this.view.isAutoScrollLocked()){var x=this.scroll.getScrollContainer(),b=s.pageX-I.DomUtils.getAbsolutePositionX(x),y=s.pageY-I.DomUtils.getAbsolutePositionY(x),E=this.scroll.getSize(),S=new C.Size(parseFloat(this.svgElement.style.width),parseFloat(this.svgElement.style.height)),O=E.width;E.width<S.width&&(O-=this.scrollBarWidth);var w=E.height;E.height<S.height&&(w-=this.scrollBarWidth),b<=40?(this.dom.changeByFunc(null,function(){h.view.isAutoScrollLocked()||h.scroll.offsetScroll(-h.getScrollingOffset(b),0)}),g=!0):O-40<=b&&(this.dom.changeByFunc(null,function(){h.view.isAutoScrollLocked()||h.scroll.offsetScroll(h.getScrollingOffset(O-b),0)}),g=!0),y<=40?(this.dom.changeByFunc(null,function(){h.view.isAutoScrollLocked()||h.scroll.offsetScroll(0,-h.getScrollingOffset(y))}),g=!0):w-40<=y&&(this.dom.changeByFunc(null,function(){h.view.isAutoScrollLocked()||h.scroll.offsetScroll(0,h.getScrollingOffset(w-y))}),g=!0)}(g||this.view.isAutoScrollLocked())&&(this.scrollTimer=window.setTimeout(function(){return h.changeScrollPosition(s,u,g)},50)),d&&u()},p.prototype.clearScrollTimer=function(){this.scrollTimer>-1&&(window.clearTimeout(this.scrollTimer),this.scrollTimer=-1)},p.prototype.getScrollingOffset=function(s){var u=Math.pow((40-s)/5,2);return Math.round(Math.min(u,5))},p.createMainElement=function(s){var u=document.createElement("div");return u.setAttribute("class","dxdi-control"),s.appendChild(u),u},p.createSvgElement=function(s,u){void 0===u&&(u=!1);var d=document.createElementNS(c.svgNS,"svg");return d.className.baseVal="dxdi-canvas"+(u?" export":""),s.appendChild(d),d},p}();l.AutoScrollController=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(E,S){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(E,S)},function(E,S){function O(){this.constructor=E}c(E,S),E.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)});Object.defineProperty(l,"__esModule",{value:!0}),l.DocumentDataSource=l.UpdateNodeKeyRelatedObjectsStackAction=l.UpdateNodeKeyRelatedObjectsStackItem=void 0;var C=o(1),f=o(14),a=o(6),p=o(346),s=o(4),u=o(44),d=o(3),h=o(49),g=o(31),x=function(E,S){this.shape=E,this.nodeObj=S};l.UpdateNodeKeyRelatedObjectsStackItem=x;var b=function(E,S){this.kind=E,this.nodeObj=S};l.UpdateNodeKeyRelatedObjectsStackAction=b;var y=function(E){function S(O,w,T,k,R,P){var B=E.call(this,"Document",w,T,k,R,P)||this;return B.changesListener=O,B.nodeInsertingLockCount=0,B.updateNodeKeyRelatedObjectsCount=0,B.updateNodeKeyRelatedObjectsStack=[],B.updateNodeKeyRelatedObjectsStackActions=[],B}return I(S,E),S.prototype.updateItemsByModel=function(O){var w=this;this.beginChangesNotification(),this.deleteNodes(O),this.deleteEdges(O),O.items.forEach(function(T){T instanceof f.Shape&&w.updateNode(O,T),T instanceof a.Connector&&w.updateEdge(O,T)}),this.endChangesNotification(!1)},S.prototype.isItemObjectModified=function(O,w,T){var k=T.setLocked&&w.locked!==O.locked||T.setZIndex&&w.zIndex!==O.zIndex||T.setCustomData&&!d.ObjectUtils.compareObjects(w.customData,O.customData);if(!k&&T.setStyle){var R=O.style.getDefaultInstance();O.style.forEach(function(B){O.style[B]!==R[B]&&O.style[B]!==(w.style&&w.style[B])&&(k=!0)})}if(!k&&T.setStyleText){var P=O.styleText.getDefaultInstance();O.styleText.forEach(function(B){O.styleText[B]!==P[B]&&O.styleText[B]!==(w.styleText&&w.styleText[B])&&(k=!0)})}return k},S.prototype.setDataObjectKeyRelatedProperty=function(O,w,T,k){(k||void 0===this.autoGeneratedDataKeys[T])&&O(w,T)},S.prototype.updateItemObjectProperties=function(O,w,T){if(T.setCustomData&&(O.customData=d.ObjectUtils.cloneObject(w.customData),O.dataObj&&void 0!==O.customData&&T.setCustomData(O.dataObj,w.customData)),T.setLocked&&(O.locked=w.locked,O.dataObj&&void 0!==O.locked&&T.setLocked(O.dataObj,w.locked)),T.setStyle){var k=w.style.toObject();O.style=k,O.dataObj&&void 0!==O.style&&T.setStyle(O.dataObj,u.Data.objectToCssText(k))}if(T.setStyleText){var R=w.styleText.toObject();O.styleText=R,O.dataObj&&void 0!==O.styleText&&T.setStyleText(O.dataObj,u.Data.objectToCssText(R))}T.setZIndex&&(O.zIndex=w.zIndex,O.dataObj&&void 0!==O.zIndex&&T.setZIndex(O.dataObj,w.zIndex))},S.prototype.deleteItems=function(O,w,T,k){O.slice().forEach(function(R){if(null!=R.key&&!w(R.key)){var P=T(R),B=P.indexOf(R.dataObj);P.splice(B,1),k(R,B>-1)}})},S.prototype.updateNode=function(O,w){var T=this,k=this.findNode(w.dataKey);if(k)this.isNodeObjectModified(w,k,O.units)?(this.updateNodeObjectProperties(w,k,O.units),this.updateNodeObjectConnectedProperties(w,k),this.beginChangesNotification(),this.changesListener.notifyNodeUpdated.call(this.changesListener,this.nodeDataImporter.getKey(k.dataObj||k.key),k.dataObj,function(P,B){T.endChangesNotification(!1)},function(P){T.endChangesNotification(!1)})):this.updateNodeObjectConnectedProperties(w,k,this.changesListener);else{var R={};null!=w.dataKey&&this.nodeDataImporter.setKey(R,w.dataKey),k=this.addNodeInternal(R,w.description.key,w.text),this.nodeDataSource.push(k.dataObj),this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setKey,R,k.key,this.addInternalKeyOnInsert),this.updateNodeObjectProperties(w,k,O.units),this.updateNodeObjectConnectedProperties(w,k),this.updateNodeObjectKey(w,k,k.dataObj),this.beginChangesNotification(),this.beginNodeInserting(),this.changesListener.notifyNodeInserted.call(this.changesListener,k.dataObj,function(P){T.updateNodeObjectKey(w,k,P),T.endNodeInserting(),T.endChangesNotification(!1)},function(P){T.endNodeInserting(),T.endChangesNotification(!1)})}},S.prototype.areImageUrlsEqual=function(O,w){return O===w||h.StringUtils.isNullOrEmpty(O)&&h.StringUtils.isNullOrEmpty(w)},S.prototype.isNodeObjectModified=function(O,w,T){return this.isItemObjectModified(O,w,this.nodeDataImporter)||w.type!==O.description.key&&!(void 0===w.type&&O.description.key===C.ShapeTypes.Rectangle)||!this.compareStrings(w.text,O.text)||this.nodeDataImporter.setImage&&!this.areImageUrlsEqual(w.image,O.image.actualUrl)||this.nodeDataImporter.setLeft&&!g.MathUtils.numberCloseTo(w.left,s.ModelUtils.getlUnitValue(T,O.position.x))||this.nodeDataImporter.setTop&&!g.MathUtils.numberCloseTo(w.top,s.ModelUtils.getlUnitValue(T,O.position.y))||this.nodeDataImporter.setWidth&&!g.MathUtils.numberCloseTo(w.width,s.ModelUtils.getlUnitValue(T,O.size.width))||this.nodeDataImporter.setHeight&&!g.MathUtils.numberCloseTo(w.height,s.ModelUtils.getlUnitValue(T,O.size.height))},S.prototype.updateNodeObjectProperties=function(O,w,T){if(this.updateItemObjectProperties(w,O,this.nodeDataImporter),this.nodeDataImporter.setType&&(w.type=O.description.key,this.nodeDataImporter.setType(w.dataObj,O.description.key)),this.nodeDataImporter.setText&&(w.text=O.text,this.nodeDataImporter.setText(w.dataObj,O.text)),this.nodeDataImporter.setImage&&(w.image=O.image.actualUrl,this.nodeDataImporter.setImage(w.dataObj,void 0===O.image.actualUrl?null:O.image.actualUrl)),this.nodeDataImporter.setLeft){var k=s.ModelUtils.getlUnitValue(T,O.position.x);w.left=k,this.nodeDataImporter.setLeft(w.dataObj,k)}if(this.nodeDataImporter.setTop){var R=s.ModelUtils.getlUnitValue(T,O.position.y);w.top=R,this.nodeDataImporter.setTop(w.dataObj,R)}if(this.nodeDataImporter.setWidth){var P=s.ModelUtils.getlUnitValue(T,O.size.width);w.width=P,this.nodeDataImporter.setWidth(w.dataObj,P)}if(this.nodeDataImporter.setHeight){var B=s.ModelUtils.getlUnitValue(T,O.size.height);w.height=B,this.nodeDataImporter.setHeight(w.dataObj,B)}},S.prototype.updateNodeObjectConnectedProperties=function(O,w,T){if(this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey){var k=this.getParentItemKey(O),R=this.findNode(k);this.updateNodeObjectParentKey(w,R,T)}if(this.useNodeContainerId&&void 0!==this.nodeDataImporter.setContainerKey){var P=this.getContainerShapeKey(O),B=this.findNode(P);this.updateNodeObjectContainerKey(w,B,T)}this.useNodeItems&&void 0!==this.nodeDataImporter.setItems&&(k=this.getParentItemKey(O),R=this.findNode(k),this.updateNodeObjectItems(w,R,T)),this.useNodeChildren&&void 0!==this.nodeDataImporter.setChildren&&(P=this.getContainerShapeKey(O),B=this.findNode(P),this.updateNodeObjectChildren(w,B,T))},S.prototype.IsNodeParentIdMode=function(){return this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey},S.prototype.IsNodeItemsMode=function(){return this.useNodeItems&&void 0!==this.nodeDataImporter.setItems},S.prototype.updateNodeObjectParentKey=function(O,w,T){var k=this.nodeDataImporter.getParentKey(O.dataObj),R=w?this.nodeDataImporter.getKey(w.dataObj):void 0;k===R||this.isRootParentKey(k)&&this.isRootParentKey(R)||(this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setParentKey,O.dataObj,R,!1),T&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("shape",O):this.updateNodeObjectContainerOrParentKeyInternal(O,T)))},S.prototype.updateNodeObjectParentKeyInternal=function(O,w){var T=this;this.beginChangesNotification(),w.notifyNodeUpdated.call(w,this.nodeDataImporter.getKey(O.dataObj)||O.key,O.dataObj,function(k,R){T.endChangesNotification(!1)},function(k){T.endChangesNotification(!1)})},S.prototype.updateNodeObjectContainerKey=function(O,w,T){var k=this.nodeDataImporter.getContainerKey(O.dataObj),R=w?this.nodeDataImporter.getKey(w.dataObj):void 0;k===R||this.isRootParentKey(k)&&this.isRootParentKey(R)||(this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setContainerKey,O.dataObj,R,!1),T&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("shape",O):this.updateNodeObjectContainerOrParentKeyInternal(O,T)))},S.prototype.updateNodeObjectContainerOrParentKeyInternal=function(O,w){var T=this;this.beginChangesNotification(),w.notifyNodeUpdated.call(w,this.nodeDataImporter.getKey(O.dataObj)||O.key,O.dataObj,function(k,R){T.endChangesNotification(!1)},function(k){T.endChangesNotification(!1)})},S.prototype.isRootParentKey=function(O){return null==O||!this.findNode(O)},S.prototype.updateNodeObjectItems=function(O,w,T){var k=this;if((w&&O.parentDataObj!==w.dataObj||!w&&O.parentDataObj)&&(!w||!this.checkNodeCyrcleItems(O.dataObj,w.dataObj))){var R=O.parentDataObj?this.nodeDataImporter.getItems(O.parentDataObj):this.nodeDataSource,P=R.indexOf(O.dataObj);R.splice(P,1);var B=w?this.nodeDataImporter.getItems(w.dataObj):this.nodeDataSource;B?B.push(O.dataObj):this.nodeDataImporter.setItems(w.dataObj,[O.dataObj]),O.parentDataObj=w&&w.dataObj,T&&(this.beginChangesNotification(),T.notifyNodeUpdated.call(T,this.nodeDataImporter.getKey(O.dataObj)||O.key,O.dataObj,function(W,N){k.endChangesNotification(!1)},function(W){k.endChangesNotification(!1)}))}},S.prototype.updateNodeObjectChildren=function(O,w,T){var k=this;if(w&&O.containerDataObj!==w.dataObj||!w&&O.containerDataObj){var R=O.containerDataObj?this.nodeDataImporter.getChildren(O.containerDataObj):this.nodeDataSource,P=R.indexOf(O.dataObj);R.splice(P,1);var B=w?this.nodeDataImporter.getChildren(w.dataObj):this.nodeDataSource;B?B.push(O.dataObj):this.nodeDataImporter.setChildren(w.dataObj,[O.dataObj]),O.containerDataObj=w&&w.dataObj,T&&(this.beginChangesNotification(),T.notifyNodeUpdated.call(T,this.nodeDataImporter.getKey(O.dataObj)||O.key,O.dataObj,function(W,N){k.endChangesNotification(!1)},function(W){k.endChangesNotification(!1)}))}},S.prototype.checkNodeCyrcleItems=function(O,w){var T=this,k=!1,R=this.nodeDataImporter.getItems(O);return R&&R.forEach(function(P){k=k||P===w||T.checkNodeCyrcleItems(P,w)}),k},S.prototype.updateNodeObjectKey=function(O,w,T){var k=this.nodeDataImporter.getKey(T),R=!1;if(null!=k&&k!==w.key&&(delete this.autoGeneratedDataKeys[w.key],w.key=k,R=!0),O.dataKey=w.key,w.dataObj!==T){var P=this.getNodeArray(w),B=P.indexOf(w.dataObj);P.splice(B,1,T),w.dataObj=T}R&&this.updateNodeKeyRelatedObjects(O,w)},S.prototype.updateNodeKeyRelatedObjects=function(O,w){var T=this;this.isInNodeInserting()?this.addToUpdateNodeKeyRelatedObjectsStack(O,w):(this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey&&this.getChildItems(O).forEach(function(k){var R=T.findNode(k.dataKey);R&&T.updateNodeObjectParentKey(R,w,T.changesListener)}),this.useNodeContainerId&&void 0!==this.nodeDataImporter.setContainerKey&&O.children.forEach(function(k){var R=k instanceof f.Shape?T.findNode(k.dataKey):void 0;R&&T.updateNodeObjectContainerKey(R,w,T.changesListener)}),this.useEdgesArray()&&O.attachedConnectors.forEach(function(k){var R=T.findEdge(k.dataKey);R&&(O===k.beginItem&&T.updateEdgeObjectFromProperty(w,R,T.changesListener),O===k.endItem&&T.updateEdgeObjectToProperty(w,R,T.changesListener))}))},S.prototype.deleteNodes=function(O){var w=this;this.deleteItems(this.nodes,function(T){return O.findShapeByDataKey(T)},function(T){return w.getNodeArray(T)},function(T,k){var R=T.dataObj&&w.nodeDataImporter.getKey(T.dataObj)||T.key,P=w.findNode(R);P&&w.nodes.splice(w.nodes.indexOf(P),1),k&&(w.beginChangesNotification(),w.changesListener.notifyNodeRemoved.call(w.changesListener,R,T.dataObj,function(B,W){w.endChangesNotification(!1)},function(B){w.endChangesNotification(!1)}))})},S.prototype.getParentItem=function(O){for(var w=0;w<O.attachedConnectors.length;w++)if(O.attachedConnectors[w].endItem===O)return O.attachedConnectors[w].beginItem},S.prototype.getParentItemKey=function(O){var w=this.getParentItem(O);return w&&w.dataKey},S.prototype.getNodeArray=function(O){var w;return this.useNodeItems&&O.parentDataObj?w=this.nodeDataImporter.getItems(O.parentDataObj):O.containerDataObj&&(w=this.nodeDataImporter.getChildren(O.containerDataObj)),w||this.nodeDataSource},S.prototype.getContainerShapeKey=function(O){return O.container&&O.container.dataKey},S.prototype.getChildItems=function(O){for(var w=[],T=0;T<O.attachedConnectors.length;T++)O.attachedConnectors[T].beginItem===O&&O.attachedConnectors[T].endItem&&w.push(O.attachedConnectors[T].endItem);return w},S.prototype.updateEdge=function(O,w){var T=this,k=w.beginItem?w.beginItem.dataKey:void 0,R=w.endItem?w.endItem.dataKey:void 0,P=this.findEdge(w.dataKey);if(P)this.isEdgeObjectModified(w,P,O.units)&&(this.updateEdgeObjectProperties(w,P,O.units),P.dataObj&&(this.beginChangesNotification(),this.changesListener.notifyEdgeUpdated.call(this.changesListener,this.edgeDataImporter.getKey(P.dataObj)||P.key,P.dataObj,function(W,N){T.endChangesNotification(!1)},function(W){T.endChangesNotification(!1)})));else{var B=this.useEdgesArray()&&this.canUpdateEdgeDataSource?{}:void 0;B&&null!=w.dataKey&&this.edgeDataImporter.setKey(B,w.dataKey),P=this.addEdgeInternal(B,k,R),B&&(this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setKey,B,P.key,this.addInternalKeyOnInsert),this.edgeDataSource.push(P.dataObj)),this.updateEdgeObjectProperties(w,P,O.units),this.updateEdgeObjectKey(w,P,P.dataObj),B&&(this.beginChangesNotification(),this.beginNodeInserting(),this.changesListener.notifyEdgeInserted.call(this.changesListener,P.dataObj,function(W){T.updateEdgeObjectKey(w,P,W),T.endNodeInserting(),T.endChangesNotification(!1)},function(W){T.endNodeInserting(),T.endChangesNotification(!1)}))}},S.prototype.isEdgeObjectModified=function(O,w,T){return this.isItemObjectModified(O,w,this.edgeDataImporter)||(null!==w.from?w.from:void 0)!==(O.beginItem?O.beginItem.dataKey:void 0)||(null===w.to?void 0:w.to)!==(O.endItem?O.endItem.dataKey:void 0)||this.edgeDataImporter.setFromPointIndex&&w.fromPointIndex!==O.beginConnectionPointIndex||this.edgeDataImporter.setToPointIndex&&w.toPointIndex!==O.endConnectionPointIndex||this.edgeDataImporter.setPoints&&(!w.points||!this.pointsAreEqual(w.points.map(function(k){return k.x}),O.points.map(function(k){return s.ModelUtils.getlUnitValue(T,k.x)}))||!this.pointsAreEqual(w.points.map(function(k){return k.y}),O.points.map(function(k){return s.ModelUtils.getlUnitValue(T,k.y)})))||this.edgeDataImporter.setText&&!this.compareTexts(w,O)||this.edgeDataImporter.setLineOption&&w.lineOption!==O.properties.lineOption||this.edgeDataImporter.setStartLineEnding&&w.startLineEnding!==O.properties.startLineEnding||this.edgeDataImporter.setEndLineEnding&&w.endLineEnding!==O.properties.endLineEnding},S.prototype.pointsAreEqual=function(O,w){var T=O.length;if(T!==O.length)return!1;for(var k=0;k<T;k++)if(!g.MathUtils.numberCloseTo(O[k],w[k]))return!1;return!0},S.prototype.updateEdgeObjectFromProperty=function(O,w,T){if(w.from=O&&O.key,w.dataObj){var k=O&&O.dataObj&&this.nodeDataImporter.getKey(O.dataObj);this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setFrom,w.dataObj,k,!1),T&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("edge",w):this.updateEdgeObjectFromOrToPropertyInternal(w,T))}},S.prototype.updateEdgeObjectFromOrToPropertyInternal=function(O,w){var T=this;this.beginChangesNotification(),w.notifyEdgeUpdated.call(w,this.nodeDataImporter.getKey(O.dataObj)||O.key,O.dataObj,function(k,R){T.endChangesNotification(!1)},function(k){T.endChangesNotification(!1)})},S.prototype.updateEdgeObjectToProperty=function(O,w,T){if(w.to=O&&O.key,w.dataObj){var k=O&&O.dataObj&&this.nodeDataImporter.getKey(O.dataObj);this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setTo,w.dataObj,k,!1),T&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("edge",w):this.updateEdgeObjectFromOrToPropertyInternal(w,T))}},S.prototype.updateEdgeObjectProperties=function(O,w,T){if(this.updateItemObjectProperties(w,O,this.edgeDataImporter),this.edgeDataImporter.setFrom){var k=this.findNode(O.beginItem&&O.beginItem.dataKey);this.updateEdgeObjectFromProperty(k,w)}if(this.edgeDataImporter.setTo){var R=this.findNode(O.endItem&&O.endItem.dataKey);this.updateEdgeObjectToProperty(R,w)}if(this.edgeDataImporter.setFromPointIndex&&(w.fromPointIndex=O.beginConnectionPointIndex,w.dataObj&&this.edgeDataImporter.setFromPointIndex(w.dataObj,O.beginConnectionPointIndex)),this.edgeDataImporter.setToPointIndex&&(w.toPointIndex=O.endConnectionPointIndex,w.dataObj&&this.edgeDataImporter.setToPointIndex(w.dataObj,O.endConnectionPointIndex)),this.edgeDataImporter.setPoints){var P=O.points.map(function(V){return{x:s.ModelUtils.getlUnitValue(T,V.x),y:s.ModelUtils.getlUnitValue(T,V.y)}});w.points=P,w.dataObj&&this.edgeDataImporter.setPoints(w.dataObj,P)}if(this.edgeDataImporter.setText){var B=void 0;1===O.getTextCount()&&O.getText()&&(B=O.getText());var W={};if(O.texts.forEach(function(V){W[V.position]=V.value}),w.texts=W,w.dataObj){var N="";B?N=B:W&&Object.keys(W).length&&(N=W),this.edgeDataImporter.setText(w.dataObj,N)}}this.edgeDataImporter.setLineOption&&(w.lineOption=O.properties.lineOption,w.dataObj&&this.edgeDataImporter.setLineOption(w.dataObj,O.properties.lineOption)),this.edgeDataImporter.setStartLineEnding&&(w.startLineEnding=O.properties.startLineEnding,w.dataObj&&this.edgeDataImporter.setStartLineEnding(w.dataObj,O.properties.startLineEnding)),this.edgeDataImporter.setEndLineEnding&&(w.endLineEnding=O.properties.endLineEnding,w.dataObj&&this.edgeDataImporter.setEndLineEnding(w.dataObj,O.properties.endLineEnding))},S.prototype.updateEdgeObjectKey=function(O,w,T){var k=T&&this.edgeDataImporter.getKey(T);if(null!=k&&k!==w.key&&(delete this.autoGeneratedDataKeys[w.key],w.key=k),O.dataKey=w.key,w.dataObj!==T){var R=this.edgeDataSource,P=R.indexOf(w.dataObj);R.splice(P,1,T),w.dataObj=T}},S.prototype.deleteEdges=function(O){var w=this;this.deleteItems(this.edges,function(T){return O.findConnectorByDataKey(T)},function(T){return w.edgeDataSource},function(T,k){var R=T.dataObj&&w.edgeDataImporter.getKey(T.dataObj)||T.key,P=w.findEdge(R);P&&w.edges.splice(w.edges.indexOf(P),1),k&&(w.beginChangesNotification(),w.changesListener.notifyEdgeRemoved.call(w.changesListener,R,T.dataObj,function(B,W){w.endChangesNotification(!1)},function(B){w.endChangesNotification(!1)}))})},S.prototype.beginNodeInserting=function(){this.nodeInsertingLockCount++},S.prototype.endNodeInserting=function(){this.nodeInsertingLockCount--,0===this.nodeInsertingLockCount&&this.raiseNodeInsertingStack()},S.prototype.isInNodeInserting=function(){return this.nodeInsertingLockCount>0},S.prototype.addToUpdateNodeKeyRelatedObjectsStack=function(O,w){var T=new x(O,w);this.updateNodeKeyRelatedObjectsStack.push(T)},S.prototype.raiseNodeInsertingStack=function(){for(this.beginUpdateNodeKeyRelatedObjects();this.updateNodeKeyRelatedObjectsStack.length>0;){var O=this.updateNodeKeyRelatedObjectsStack[0];this.updateNodeKeyRelatedObjects(O.shape,O.nodeObj),this.updateNodeKeyRelatedObjectsStack.splice(0,1),O.shape.description.hasTemplate&&O.nodeObj&&this.changesListener.reloadInsertedItem(O.nodeObj.key)}this.endUpdateNodeKeyRelatedObjects()},S.prototype.beginUpdateNodeKeyRelatedObjects=function(){this.updateNodeKeyRelatedObjectsCount++},S.prototype.endUpdateNodeKeyRelatedObjects=function(){this.updateNodeKeyRelatedObjectsCount--,0===this.updateNodeKeyRelatedObjectsCount&&this.raiseUpdateNodeKeyRelatedObjectsStack()},S.prototype.isInUpdateNodeKeyRelatedObjects=function(){return this.updateNodeKeyRelatedObjectsCount>0},S.prototype.addToUpdateNodeKeyRelatedObjectsStackAction=function(O,w){for(var T=new b(O,w),k=0;k<this.updateNodeKeyRelatedObjectsStackActions.length;k++)if(this.updateNodeKeyRelatedObjectsStackActions[k].kind===O&&this.updateNodeKeyRelatedObjectsStackActions[k].nodeObj===w)return;this.updateNodeKeyRelatedObjectsStackActions.push(T)},S.prototype.raiseUpdateNodeKeyRelatedObjectsStack=function(){for(;this.updateNodeKeyRelatedObjectsStackActions.length>0;){var O=this.updateNodeKeyRelatedObjectsStackActions[0];switch(O.kind){case"shape":this.updateNodeObjectContainerOrParentKeyInternal(O.nodeObj,this.changesListener);break;case"edge":this.updateEdgeObjectFromOrToPropertyInternal(O.nodeObj,this.changesListener)}this.updateNodeKeyRelatedObjectsStackActions.splice(0,1)}},S.prototype.beginChangesNotification=function(){this.changesListener.beginChangesNotification()},S.prototype.endChangesNotification=function(O){this.changesListener.endChangesNotification(O)},S}(p.DataSource);l.DocumentDataSource=y},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DataSource=void 0;var c=o(12),I=o(0),C=o(2),f=o(48),a=o(66),p=o(53),s=o(67),u=o(115),d=o(88),h=o(69),g=o(116),x=o(117),b=o(146),y=o(153),E=o(102),S=o(89),O=o(70),w=o(6),T=o(4),k=o(1),R=o(43),P=o(3),B=o(22),W=o(44),N=o(110),V=o(64),U=o(347),K=o(348),Y=o(86),J=function(){function j(ee,G,q,Z,X,M){if(this.key=ee,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==ee)throw new Error("DataSource key must be specified");this.key=ee.toString(),this.loadParameters(Z||{}),this.nodeDataImporter=this.createNodeDataImporter(X),this.edgeDataImporter=this.createEdgeDataImporter(M),this.nodeDataSource=G||[],this.edgeDataSource=q||[],this.canUpdateEdgeDataSource=!!q,this.fetchData()}return j.prototype.loadParameters=function(ee){this.addInternalKeyOnInsert=!!ee.addInternalKeyOnInsert},j.prototype.isAutoGeneratedKey=function(ee){return ee&&!!this.autoGeneratedDataKeys[ee]},j.prototype.createNodeDataImporter=function(ee){var G=new U.DataSourceNodeDataImporter;return ee&&this.assignNodeDataImporterProperties(ee,G),G},j.prototype.createEdgeDataImporter=function(ee){var G=new U.DataSourceEdgeDataImporter;return ee&&this.assignEdgeDataImporterProperties(ee,G),G},j.prototype.assignItemDataImporterProperties=function(ee,G){ee.getKey&&(G.getKey=ee.getKey),ee.setKey&&(G.setKey=ee.setKey),ee.getCustomData&&(G.getCustomData=ee.getCustomData),ee.setCustomData&&(G.setCustomData=ee.setCustomData),ee.getLocked&&(G.getLocked=ee.getLocked),ee.setLocked&&(G.setLocked=ee.setLocked),ee.getStyle&&(G.getStyle=ee.getStyle),ee.setStyle&&(G.setStyle=ee.setStyle),ee.getStyleText&&(G.getStyleText=ee.getStyleText),ee.setStyleText&&(G.setStyleText=ee.setStyleText),ee.getZIndex&&(G.getZIndex=ee.getZIndex),ee.setZIndex&&(G.setZIndex=ee.setZIndex)},j.prototype.assignNodeDataImporterProperties=function(ee,G){this.assignItemDataImporterProperties(ee,G),ee.getType&&(G.getType=ee.getType),ee.setType&&(G.setType=ee.setType),ee.getImage&&(G.getImage=ee.getImage),ee.setImage&&(G.setImage=ee.setImage),ee.getText&&(G.getText=ee.getText),ee.setText&&(G.setText=ee.setText),ee.getLeft&&(G.getLeft=ee.getLeft),ee.setLeft&&(G.setLeft=ee.setLeft),ee.getTop&&(G.getTop=ee.getTop),ee.setTop&&(G.setTop=ee.setTop),ee.getWidth&&(G.getWidth=ee.getWidth),ee.setWidth&&(G.setWidth=ee.setWidth),ee.getHeight&&(G.getHeight=ee.getHeight),ee.setHeight&&(G.setHeight=ee.setHeight),ee.getChildren&&(G.getChildren=ee.getChildren),ee.setChildren&&(G.setChildren=ee.setChildren),ee.getParentKey&&(G.getParentKey=ee.getParentKey),ee.setParentKey&&(G.setParentKey=ee.setParentKey),ee.getItems&&(G.getItems=ee.getItems),ee.setItems&&(G.setItems=ee.setItems),ee.getContainerKey&&(G.getContainerKey=ee.getContainerKey),ee.setContainerKey&&(G.setContainerKey=ee.setContainerKey)},j.prototype.assignEdgeDataImporterProperties=function(ee,G){this.assignItemDataImporterProperties(ee,G),ee.getFrom&&(G.getFrom=ee.getFrom),ee.setFrom&&(G.setFrom=ee.setFrom),ee.getFromPointIndex&&(G.getFromPointIndex=ee.getFromPointIndex),ee.setFromPointIndex&&(G.setFromPointIndex=ee.setFromPointIndex),ee.getTo&&(G.getTo=ee.getTo),ee.setTo&&(G.setTo=ee.setTo),ee.getToPointIndex&&(G.getToPointIndex=ee.getToPointIndex),ee.setToPointIndex&&(G.setToPointIndex=ee.setToPointIndex),ee.getPoints&&(G.getPoints=ee.getPoints),ee.setPoints&&(G.setPoints=ee.setPoints),ee.getText&&(G.getText=ee.getText),ee.setText&&(G.setText=ee.setText),ee.getLineOption&&(G.getLineOption=ee.getLineOption),ee.setLineOption&&(G.setLineOption=ee.setLineOption),ee.getStartLineEnding&&(G.getStartLineEnding=ee.getStartLineEnding),ee.setStartLineEnding&&(G.setStartLineEnding=ee.setStartLineEnding),ee.getEndLineEnding&&(G.getEndLineEnding=ee.getEndLineEnding),ee.setEndLineEnding&&(G.setEndLineEnding=ee.setEndLineEnding)},j.prototype.fetchData=function(){var ee=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(G){ee.addNode(G)}),this.useEdgesArray()?this.edgeDataSource.forEach(function(G){ee.addEdge(G)}):this.nodes.forEach(function(G){ee.addNodeEdgesByParentId(G)})},j.prototype.isContainer=function(ee){var G=this;return!this.containers&&this.useNodeContainerId&&(this.containers=this.nodeDataSource.map(function(q){return G.nodeDataImporter.getContainerKey(q)}).filter(function(q){return null!=q}).reduce(function(q,Z){return q[Z]=!0,q},{})),this.containers&&this.containers[ee]},j.prototype.refetchData=function(ee,G){var q=this;this.nodeDataSource=ee||this.nodeDataSource,this.edgeDataSource=G||this.edgeDataSource;var Z=this.nodes.slice(),X=this.edges.slice();return this.fetchData(),{nodes:this.getItemChanges(Z,this.nodes,function(M,se){return M.key===se.key||M.dataObj===se.dataObj}),edges:this.getItemChanges(X,this.edges,function(M,se){return q.useNodeParentId||q.useNodeItems?M.key===se.key||M.from===se.from&&M.to===se.to:M.key===se.key||M.dataObj===se.dataObj})}},j.prototype.getItemChanges=function(ee,G,q){var Z=this,X=ee.filter(function(ge){return Z.containsItem(G,ge,q)}),M=ee.filter(function(ge){return!Z.containsItem(G,ge,q)}),se=G.filter(function(ge){return!Z.containsItem(ee,ge,q)});return{remained:X.map(function(ge){return ge.key}),remainedNewKeys:X.map(function(ge){var De;return null===(De=G.find(function(Fe){return q(ge,Fe)}))||void 0===De?void 0:De.key}),removed:M.map(function(ge){return ge.key}),added:se.map(function(ge){return ge.key})}},j.prototype.containsItem=function(ee,G,q){var Z=!1;return ee.forEach(function(X){!Z&&q(X,G)&&(Z=!0)}),Z},j.prototype.useEdgesArray=function(){return Array.isArray(this.edgeDataSource)&&(this.edgeDataSource.length||!(this.useNodeParentId||this.useNodeItems))},j.prototype.addNode=function(ee,G,q,Z){var X=this,M=this.nodeDataImporter.getChildren&&this.nodeDataImporter.getChildren(ee),se=M&&Array.isArray(M)&&M.length,ge=se||this.isContainer(this.nodeDataImporter.getKey(ee)),De=this.nodeDataImporter.getType&&this.nodeDataImporter.getType(ee)||ge&&k.ShapeTypes.VerticalContainer||k.ShapeTypes.Rectangle,Fe=this.nodeDataImporter.getText&&(this.nodeDataImporter.getText(ee)||""),Ae=this.addNodeInternal(ee,De,Fe,G,q,Z);if(this.assignNodeProperties(Ae,ee),se&&M.forEach(function(fe){X.addNode(fe,void 0,Ae.key,ee)}),this.useNodeItems){var ne=this.nodeDataImporter.getItems(ee);Array.isArray(ne)&&ne.length&&ne.forEach(function(fe){var _e=X.addNode(fe,ee,q,Z);X.addEdgeInternal(void 0,Ae.key,_e.key)})}return Ae},j.prototype.addNodeEdgesByParentId=function(ee){if(this.useNodeParentId){var G=this.nodeDataImporter.getParentKey(ee.dataObj);null!=G&&this.findNode(G)&&this.addEdgeInternal(void 0,this.getNodeKey(ee.dataObj,this.nodeDataImporter.getParentKey),this.getNodeKey(ee.dataObj,this.nodeDataImporter.getKey))}},j.prototype.addNodeInternal=function(ee,G,q,Z,X,M){var se=this.nodeDataImporter.getKey(ee),ge=se??T.ModelUtils.getGuidItemKey(),De=new K.DataSourceNodeItem(this.key,ge,ee,G,q,Z,X,M);return this.nodes.push(De),null==se&&(se=ge,this.autoGeneratedDataKeys[ge]=!0),De},j.prototype.addEdge=function(ee){var G=this.addEdgeInternal(ee,this.getNodeKey(ee,this.edgeDataImporter.getFrom),this.getNodeKey(ee,this.edgeDataImporter.getTo));return this.assignEdgeProperties(G,ee),G},j.prototype.addEdgeInternal=function(ee,G,q){var Z=ee&&this.edgeDataImporter.getKey(ee),X=Z??T.ModelUtils.getGuidItemKey(),M=new K.DataSourceEdgeItem(this.key,X,ee,G,q);return this.edges.push(M),null==Z&&(Z=X,this.autoGeneratedDataKeys[X]=!0),M},j.prototype.assignItemProperties=function(ee,G,q){if(q.getCustomData&&(ee.customData=P.ObjectUtils.cloneObject(q.getCustomData(G))),q.getLocked&&(ee.locked=q.getLocked(G)),q.getStyle){var Z=q.getStyle(G);ee.style="string"==typeof Z?W.Data.cssTextToObject(Z):Z}q.getStyleText&&(Z=q.getStyleText(G),ee.styleText="string"==typeof Z?W.Data.cssTextToObject(Z):Z),q.getZIndex&&(ee.zIndex=q.getZIndex(G))},j.prototype.assignNodeProperties=function(ee,G){this.assignItemProperties(ee,G,this.nodeDataImporter),this.nodeDataImporter.getImage&&(ee.image=this.nodeDataImporter.getImage(G)),this.nodeDataImporter.getLeft&&(ee.left=this.nodeDataImporter.getLeft(G)),this.nodeDataImporter.getTop&&(ee.top=this.nodeDataImporter.getTop(G)),this.nodeDataImporter.getWidth&&(ee.width=this.nodeDataImporter.getWidth(G)),this.nodeDataImporter.getHeight&&(ee.height=this.nodeDataImporter.getHeight(G)),this.nodeDataImporter.getContainerKey&&(ee.containerKey=this.nodeDataImporter.getContainerKey(G))},j.prototype.assignEdgeProperties=function(ee,G){if(this.assignItemProperties(ee,G,this.edgeDataImporter),this.edgeDataImporter.getFromPointIndex&&(ee.fromPointIndex=this.edgeDataImporter.getFromPointIndex(G)),this.edgeDataImporter.getToPointIndex&&(ee.toPointIndex=this.edgeDataImporter.getToPointIndex(G)),this.edgeDataImporter.getPoints&&(ee.points=this.edgeDataImporter.getPoints(G)),this.edgeDataImporter.getText){var q=this.edgeDataImporter.getText(G);if(ee.texts={},"object"==typeof q){for(var Z in q)if(Object.prototype.hasOwnProperty.call(q,Z)){var X=parseFloat(Z),M=q[Z];isNaN(X)||"string"!=typeof M||""===M||(X=Math.min(1,Math.max(0,X)),ee.texts[X]=M)}}else"string"==typeof q&&""!==q&&(ee.texts[w.CONNECTOR_DEFAULT_TEXT_POSITION]=q)}this.edgeDataImporter.getLineOption&&(ee.lineOption=this.edgeDataImporter.getLineOption(G)),this.edgeDataImporter.getStartLineEnding&&(ee.startLineEnding=this.edgeDataImporter.getStartLineEnding(G)),this.edgeDataImporter.getEndLineEnding&&(ee.endLineEnding=this.edgeDataImporter.getEndLineEnding(G))},j.prototype.findNode=function(ee){return this.nodes.filter(function(G){return void 0!==ee&&G.key===ee})[0]},j.prototype.findEdge=function(ee){return this.edges.filter(function(G){return void 0!==ee&&G.key===ee})[0]},j.prototype.getNodeKey=function(ee,G){return G(ee)},j.prototype.createModelItems=function(ee,G,q,Z,X,M,se,ge){var De=this;this.beginChangesNotification(),ee.clear(),ee.beginTransaction(),T.ModelUtils.deleteAllItems(ee,G,Z),G.initializeKeyCounter();var Fe=0,Ae=0,ne={},fe=[],_e=[];this.nodes.forEach(function(ie){var de=new I.Point(2e3*Ae++,2e3*Fe),le=De.createShapeByNode(ee,G,Z,q,ie,de,X,M,se,ge);void 0!==ie.key&&(ne[ie.key]=le.key),Ae>4&&(Ae=0,Fe++),fe.push(le)}),this.nodes.forEach(function(ie){if(null!=ie.containerKey){var le=G.findShape(ne[ie.key]),Ee=G.findShape(ne[ie.containerKey]);Ee&&T.ModelUtils.insertToContainer(ee,G,le,Ee)}}),this.edges.forEach(function(ie){var de=G.findShape(ne[ie.to]),le=G.findShape(ne[ie.from]),pe=De.createConnectorByEdge(ee,G,Z,ie,le,de);pe&&(_e.push(pe),T.ModelUtils.updateConnectorContainer(ee,G,pe))}),X.needAutoLayout&&this.applyLayout(ee,G,fe,_e,X,M,se),T.ModelUtils.tryUpdateModelRectangle(ee),ee.endTransaction(!0),this.endChangesNotification(!0)},j.prototype.updateModelItems=function(ee,G,q,Z,X,M,se,ge,De,Fe,Ae,ne){var fe=this;this.beginChangesNotification(),ee.beginTransaction();var _e=[],ie=[],de=[],le=De.nodes.removed.map(function(ae){return G.findShapeByDataKey(ae)}).filter(function(ae){return ae});le.forEach(function(ae){ae.attachedConnectors.forEach(function(te){te.beginItem&&te.beginItem!==ae&&ie.push(te.beginItem),te.endItem&&te.endItem!==ae&&ie.push(te.endItem)})}),T.ModelUtils.deleteItems(ee,G,Z,le,!0);var pe=De.edges.removed.map(function(ae){return G.findConnectorByDataKey(ae)}).filter(function(ae){return ae});pe.forEach(function(ae){ae.beginItem&&ie.push(ae.beginItem),ae.endItem&&ie.push(ae.endItem)}),T.ModelUtils.deleteItems(ee,G,Z,pe,!0),ie=this.purgeLayoutShapes(ie,le),(se||[]).forEach(function(ae){if(-1!==De.nodes.remained.indexOf(ae)){var te=fe.findNode(ae);if(te){var re=G.findShapeByDataKey(ae);if(re){var oe=re.position.clone();fe.changeShapeByDataItem(ee,G,re,te,oe),fe.changeItemByDataItem(ee,re,te)}else re=fe.createShapeByNode(ee,G,Z,q,te,new I.Point(0,0),X,Fe,Ae,ne);fe.updateShapeContainer(ee,G,re,te),ie.push(re),_e.push(re)}}}),De.nodes.remained.forEach(function(ae,te){var re=G.findShapeByDataKey(ae);re&&(re.dataKey=De.nodes.remainedNewKeys[te])}),De.nodes.added.forEach(function(ae){var te=fe.findNode(ae),re=fe.createShapeByNode(ee,G,Z,q,te,new I.Point(0,0),X,Fe,Ae,ne);fe.updateShapeContainer(ee,G,re,te),ie.push(re)}),De.edges.added.forEach(function(ae){var te=fe.findEdge(ae),re=G.findShapeByDataKey(te.from),oe=G.findShapeByDataKey(te.to),ye=fe.createConnectorByEdge(ee,G,Z,te,re,oe);ye&&(T.ModelUtils.updateConnectorContainer(ee,G,ye),de.push(ye))});var Ee=se||[];De.edges.remained.forEach(function(ae){var te=fe.findEdge(ae);!te||-1===De.nodes.added.indexOf(te.from)&&-1===De.nodes.added.indexOf(te.to)||Ee.push(ae)}),Ee.forEach(function(ae){if(-1!==De.edges.remained.indexOf(ae)){var te=fe.findEdge(ae);if(te){var re=G.findShapeByDataKey(te.from),oe=G.findShapeByDataKey(te.to),ye=G.findConnectorByDataKey(ae);ye?(fe.changeConnectorPointsByDataItem(ee,ye,fe.getConnectorPointsByEdge(G,te,re,oe,!1)),fe.changeConnectorByDataItem(ee,G,ye,re,oe,te),fe.changeItemByDataItem(ee,ye,te)):ye=fe.createConnectorByEdge(ee,G,Z,te,re,oe),ye&&(T.ModelUtils.updateConnectorContainer(ee,G,ye),de.push(ye),_e.push(ye))}}}),De.edges.remained.forEach(function(ae,te){var re=G.findConnectorByDataKey(ae);re&&(re.dataKey=De.edges.remainedNewKeys[te])}),_e.length&&ge&&_e.forEach(function(ae){ae.hasTemplate&&ge(ae)}),X.needAutoLayout&&(ie.length||de.length)&&this.applyLayout(ee,G,ie,de,X,Fe,Ae),T.ModelUtils.tryUpdateModelRectangle(ee),ee.endTransaction(!M),this.endChangesNotification(!1)},j.prototype.purgeLayoutShapes=function(ee,G){var q=G.reduce(function(Z,X){return(Z[X.key]=!0)&&Z},{});return ee.reduce(function(Z,X){return void 0===Z.keySet[X.key]&&void 0===q[X.key]&&(Z.uniqueShapes.push(X),Z.keySet[X.key]=!0),Z},{uniqueShapes:[],keySet:{}}).uniqueShapes},j.prototype.applyShapeAutoSize=function(ee,G,q,Z,X,M){if(Z.description.enableText){var se=Z.textRectangle.createSize(),ge=Z.size,De=se.width-ge.width,Fe=se.height-ge.height,Ae=Z.getMaxWidth(q.shapeMaxWidth),ne=Z.getMaxHeight(q.shapeMaxHeight),fe=function(de,le){return"number"==typeof de?c.UnitConverter.twipsToPixelsF(de+(le?De:Fe)):void 0},_e=V.getOptimalTextRectangle(Z.text,Z.styleText,R.TextOwner.Shape,G,se.clone().applyConverter(c.UnitConverter.twipsToPixelsF),Z.description.keepRatioOnAutoSize,fe(Z.getMinWidth(q.shapeMinWidth),!0),fe(Ae,!0),fe(Z.getMinHeight(q.shapeMinHeight),!1),fe(ne,!1)).clone().applyConverter(c.UnitConverter.pixelsToTwips);if(!_e.equals(se)){var ie=Z.description.getSizeByText(_e,Z);X&&M&&(ie=new C.Size(Math.min(M*Math.ceil(ie.width/M),Ae||Number.MAX_VALUE),Math.min(M*Math.ceil(ie.height/M),ne||Number.MAX_VALUE))),ee.addAndRedo(new u.ResizeShapeHistoryItem(Z.key,Z.position,ie))}}},j.prototype.applyLayout=function(ee,G,q,Z,X,M,se){T.ModelUtils.getGraphInfoByItems(G,q,Z).forEach(function(ge){var De=X.getLayoutBuilder(ge.graph).build(),Fe=T.ModelUtils.getNonGraphItems(G,ge.container,De.nodeToLayout,q,Z);T.ModelUtils.applyLayout(ee,G,ge.container,ge.graph,De,Fe,X.layoutSettings,M,se,X.skipPointIndices)})},j.prototype.changeItemByDataItem=function(ee,G,q){if(void 0===q.customData||P.ObjectUtils.compareObjects(q.customData,G.customData)||ee.addAndRedo(new g.ChangeCustomDataHistoryItem(G.key,q.customData)),void 0!==q.zIndex&&q.zIndex!==G.zIndex&&ee.addAndRedo(new E.ChangeZindexHistoryItem(G,q.zIndex)),void 0!==q.style)for(var Z in q.style)Object.prototype.hasOwnProperty.call(q.style,Z)&&(M=this.getPreparedStyleValue(q.style[Z],N.isColorProperty(Z)))!==G.style[Z]&&ee.addAndRedo(new S.ChangeStyleHistoryItem(G.key,Z,M));var X=G.style.getDefaultInstance();if(G.style.forEach(function(ge){q.style&&void 0===q.style[ge]&&G.style[ge]!==X[ge]&&ee.addAndRedo(new S.ChangeStyleHistoryItem(G.key,ge,X[ge]))}),void 0!==q.styleText)for(var Z in q.styleText){var M;Object.prototype.hasOwnProperty.call(q.styleText,Z)&&(M=this.getPreparedStyleValue(q.styleText[Z],N.isColorProperty(Z)))!==G.styleText[Z]&&ee.addAndRedo(new O.ChangeStyleTextHistoryItem(G.key,Z,M))}var se=G.styleText.getDefaultInstance();G.styleText.forEach(function(ge){q.styleText&&void 0===q.styleText[ge]&&G.styleText[ge]!==se[ge]&&ee.addAndRedo(new O.ChangeStyleTextHistoryItem(G.key,ge,se[ge]))}),void 0!==q.locked&&q.locked!==G.locked&&ee.addAndRedo(new x.ChangeLockedHistoryItem(G,q.locked))},j.prototype.getPreparedStyleValue=function(ee,G){if(G){var q=B.ColorUtils.stringToHash(ee);null!==q&&(ee=q)}return ee},j.prototype.createShapeByNode=function(ee,G,q,Z,X,M,se,ge,De,Fe){var Ae=new p.AddShapeHistoryItem(Z.get(X.type),M,"",X.key);ee.addAndRedo(Ae);var ne=G.findShape(Ae.shapeKey);return T.ModelUtils.updateNewShapeProperties(ee,q,Ae.shapeKey),this.changeShapeByDataItem(ee,G,ne,X,M),this.changeItemByDataItem(ee,ne,X),Fe&&this.canUseAutoSize&&se.autoSizeEnabled&&this.applyShapeAutoSize(ee,Fe,se.sizeSettings,ne,ge,De),ne},j.prototype.changeShapeByDataItem=function(ee,G,q,Z,X){void 0!==Z.left&&(X.x=T.ModelUtils.getTwipsValue(G.units,Z.left)),void 0!==Z.top&&(X.y=T.ModelUtils.getTwipsValue(G.units,Z.top)),T.ModelUtils.setShapePosition(ee,G,q,X,!1);var M=q.size.clone();void 0!==Z.width&&(M.width=T.ModelUtils.getTwipsValue(G.units,Z.width)),void 0!==Z.height&&(M.height=T.ModelUtils.getTwipsValue(G.units,Z.height)),T.ModelUtils.setShapeSize(ee,G,q,X,M),T.ModelUtils.updateShapeAttachedConnectors(ee,G,q),void 0!==Z.text&&Z.text!==q.text&&ee.addAndRedo(new y.ChangeShapeTextHistoryItem(q,Z.text)),void 0!==Z.image&&Z.image!==q.image.actualUrl&&ee.addAndRedo(new b.ChangeShapeImageHistoryItem(q,Z.image))},j.prototype.updateShapeContainer=function(ee,G,q,Z){var X=void 0!==Z.containerKey?G.findShapeByDataKey(Z.containerKey):void 0;X!==q.container&&(X?T.ModelUtils.insertToContainer(ee,G,q,X):T.ModelUtils.removeFromContainer(ee,G,q))},j.prototype.getConnectorPointsByEdge=function(ee,G,q,Z,X){var M=[],se=this.createModelPointFromDataSourceEdgeItemPoints(ee.units,G);if(se&&se.length>1)for(var ge=se.length-1,De=0;De<=ge;De++){var Fe=se[De];if(null!==Fe)M.push(Fe);else{if(!q&&!Z)return;0===De&&q?M.push(q.position.clone()):De===ge&&Z&&M.push(Z.position.clone())}}else X&&(q&&M.push(q.position.clone()),Z&&M.push(Z.position.clone()));return M},j.prototype.createModelPointFromDataSourceEdgeItemPoints=function(ee,G){var q=this,Z=[];if(Array.isArray(G.points))return G.points.forEach(function(X){return Z.push(q.isValidDataSourceEdgeItemPoint(X)?q.createModelPoint(ee,X):null)}),Z},j.prototype.createModelPoint=function(ee,G){return new I.Point(T.ModelUtils.getTwipsValue(ee,G.x),T.ModelUtils.getTwipsValue(ee,G.y))},j.prototype.isValidDataSourceEdgeItemPoint=function(ee){return null!=ee&&void 0!==ee.x&&void 0!==ee.y&&null!==ee.x&&null!==ee.y},j.prototype.createConnectorByEdge=function(ee,G,q,Z,X,M){var se,ge=Z.key,De=this.getConnectorPointsByEdge(G,Z,X,M,!0);if(De&&De.length>1){var Fe=new a.AddConnectorHistoryItem(De,ge);ee.addAndRedo(Fe),se=G.findConnector(Fe.connectorKey),T.ModelUtils.updateNewConnectorProperties(ee,q,Fe.connectorKey),this.changeConnectorByDataItem(ee,G,se,X,M,Z),this.changeItemByDataItem(ee,se,Z)}return se},j.prototype.changeConnectorByDataItem=function(ee,G,q,Z,X,M){var se=void 0!==M.fromPointIndex?M.fromPointIndex:q.beginConnectionPointIndex;q.beginItem===Z&&q.beginConnectionPointIndex===se||(q.beginItem&&ee.addAndRedo(new s.DeleteConnectionHistoryItem(q,w.ConnectorPosition.Begin)),Z&&ee.addAndRedo(new f.AddConnectionHistoryItem(q,Z,se,w.ConnectorPosition.Begin)));var ge=void 0!==M.toPointIndex?M.toPointIndex:q.endConnectionPointIndex;if(q.endItem===X&&q.endConnectionPointIndex===ge||(q.endItem&&ee.addAndRedo(new s.DeleteConnectionHistoryItem(q,w.ConnectorPosition.End)),X&&ee.addAndRedo(new f.AddConnectionHistoryItem(q,X,ge,w.ConnectorPosition.End))),T.ModelUtils.updateConnectorAttachedPoints(ee,G,q),void 0!==M.texts&&!this.compareTexts(M,q))for(var De in q.texts.forEach(function(Ae){ee.addAndRedo(new h.ChangeConnectorTextHistoryItem(q,Ae.position,void 0))}),M.texts)if(Object.prototype.hasOwnProperty.call(M.texts,De)){var Fe=parseFloat(De);ee.addAndRedo(new h.ChangeConnectorTextHistoryItem(q,Fe,M.texts[De]))}void 0!==M.lineOption&&M.lineOption!==q.properties.lineOption&&ee.addAndRedo(new d.ChangeConnectorPropertyHistoryItem(q.key,"lineOption",M.lineOption)),void 0!==M.startLineEnding&&M.startLineEnding!==q.properties.startLineEnding&&ee.addAndRedo(new d.ChangeConnectorPropertyHistoryItem(q.key,"startLineEnding",M.startLineEnding)),void 0!==M.endLineEnding&&M.endLineEnding!==q.properties.endLineEnding&&ee.addAndRedo(new d.ChangeConnectorPropertyHistoryItem(q.key,"endLineEnding",M.endLineEnding))},j.prototype.changeConnectorPointsByDataItem=function(ee,G,q){q&&q.length>1&&q.join(",")!==G.points.join(",")&&ee.addAndRedo(new Y.ReplaceConnectorPointsHistoryItem(G.key,q))},j.prototype.compareTexts=function(ee,G){var q=ee.texts||{},Z=Object.keys(q).length===G.getTextCount();if(Z)for(var X in q)if(Object.prototype.hasOwnProperty.call(q,X)){var M=parseFloat(X);this.compareStrings(G.getText(M),q[X])||(Z=!1)}return Z},j.prototype.compareStrings=function(ee,G){return"string"==typeof ee&&"string"==typeof G?ee===G:this.isEmptyString(ee)&&this.isEmptyString(G)},j.prototype.isEmptyString=function(ee){return""===ee||null==ee},j}();l.DataSource=J},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])})(p,s)},function(p,s){function u(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(u.prototype=s.prototype,new u)});Object.defineProperty(l,"__esModule",{value:!0}),l.DataSourceEdgeDataImporter=l.DataSourceNodeDataImporter=l.DataSourceItemDataImporter=void 0;var C=function(){this.getKey=function(p){return p.id},this.setKey=function(p,s){p.id=s},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};l.DataSourceItemDataImporter=C;var f=function(p){function s(){var u=null!==p&&p.apply(this,arguments)||this;return u.getType=void 0,u.setType=void 0,u.getText=void 0,u.setText=void 0,u.getImage=void 0,u.setImage=void 0,u.getLeft=void 0,u.setLeft=void 0,u.getTop=void 0,u.setTop=void 0,u.getWidth=void 0,u.setWidth=void 0,u.getHeight=void 0,u.setHeight=void 0,u.getChildren=void 0,u.setChildren=void 0,u.getParentKey=void 0,u.setParentKey=void 0,u.getItems=void 0,u.setItems=void 0,u.getContainerKey=void 0,u.setContainerKey=void 0,u}return I(s,p),s}(C);l.DataSourceNodeDataImporter=f;var a=function(p){function s(){var u=null!==p&&p.apply(this,arguments)||this;return u.getFrom=function(d){return d.from},u.setFrom=function(d,h){d.from=h},u.getFromPointIndex=void 0,u.setFromPointIndex=void 0,u.getTo=function(d){return d.to},u.setTo=function(d,h){d.to=h},u.getToPointIndex=void 0,u.setToPointIndex=void 0,u.getPoints=void 0,u.setPoints=void 0,u.getText=void 0,u.setText=void 0,u.getLineOption=void 0,u.setLineOption=void 0,u.getStartLineEnding=void 0,u.setStartLineEnding=void 0,u.getEndLineEnding=void 0,u.setEndLineEnding=void 0,u}return I(s,p),s}(C);l.DataSourceEdgeDataImporter=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.DataSourceEdgeItem=l.DataSourceNodeItem=l.DataSourceItem=void 0;var C=o(6),f=function(s,u,d){this.sourceKey=s,this.key=u,this.dataObj=d};l.DataSourceItem=f;var a=function(s){function u(d,h,g,x,b,y,E,S){var O=s.call(this,d,h,g)||this;return O.type=x,O.text=b,O.parentDataObj=y,O.containerKey=E,O.containerDataObj=S,O}return I(u,s),u}(f);l.DataSourceNodeItem=a;var p=function(s){function u(d,h,g,x,b){var y=s.call(this,d,h,g)||this;return y.sourceKey=d,y.from=x,y.to=b,y}return I(u,s),Object.defineProperty(u.prototype,"text",{get:function(){return this.texts&&this.texts[C.CONNECTOR_DEFAULT_TEXT_POSITION]},enumerable:!1,configurable:!0}),u}(f);l.DataSourceEdgeItem=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ViewController=void 0;var c=o(82),I=Math.log(.05),C=Math.log(3),a=d(1),p=[c.DiagramCommand.ZoomLevel,c.DiagramCommand.ZoomLevelInPercentage,c.DiagramCommand.Zoom100,c.DiagramCommand.Zoom125,c.DiagramCommand.Zoom200,c.DiagramCommand.Zoom25,c.DiagramCommand.Zoom50,c.DiagramCommand.Zoom75],s=[c.DiagramCommand.SwitchAutoZoom,c.DiagramCommand.ToggleAutoZoom,c.DiagramCommand.AutoZoomToContent,c.DiagramCommand.AutoZoomToWidth],u=function(){function h(g,x){this.settings=g,this.bars=x,g.onZoomChanged.add(this),this.autoZoom=g.autoZoom}return h.prototype.initialize=function(g){this.view=g,this.view.onViewChanged.add(this)},h.prototype.scrollTo=function(g,x){this.view&&this.view.setScrollTo(g,x)},h.prototype.scrollBy=function(g){return!this.view||0===g.x&&0===g.y?g:this.view.scrollBy(g)},h.prototype.scrollIntoView=function(g){this.view&&this.view.scrollIntoView(g)},h.prototype.normalize=function(){this.view.tryNormalizePaddings()},h.prototype.getNextStepZoom=function(g){var x=this.getNearestCurrentZoomStep(),y=Math.min(39,Math.max(0,x+(g?1:-1)));return y!==a?Math.exp(I+(C-I)*y/39):1},h.prototype.getNearestCurrentZoomStep=function(){return d(this.getZoom())},h.prototype.getZoom=function(){return this.view?this.view.actualZoom:this.settings.zoomLevel},h.prototype.resetScroll=function(){this.view.adjust({horizontal:!0,vertical:!0})},h.prototype.notifyViewAdjusted=function(g){},h.prototype.notifyActualZoomChanged=function(g){this.bars.updateItemsState(p)},h.prototype.notifyZoomChanged=function(g,x){this.autoZoom!==x&&(this.autoZoom=x,this.bars.updateItemsState(s))},h}();function d(h){var g=Math.log(h);return Math.round(39*(g-I)/(C-I))}l.ViewController=u},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ToolboxManager=void 0;var c=o(351),I=o(352),C=o(79),f=o(31),a=function(){function p(s){this.shapeDescriptionManager=s,this.toolboxes=[],this.measurers={}}return p.prototype.create=function(s,u,d,h,g,x,b){var y=Array.isArray(g)?g:this.shapeDescriptionManager.getTypesByCategory(g),E=h?new c.TextToolbox(s,u,d,this.shapeDescriptionManager,y,x):new I.IconToolbox(s,u,d,this.shapeDescriptionManager,y,x,b,this.getOrCreateMeasurer(s));return E.render(),this.toolboxes.push(E),E},p.prototype.clean=function(s,u){var d=this;if(u)u.clean(s),this.toolboxes.splice(this.toolboxes.indexOf(u),1),Object.keys(this.measurers).forEach(function(g){d.measurers[g]===u.measurer&&delete d.measurers[g]});else{for(var h=0;h<this.toolboxes.length;h++)this.toolboxes[h].clean(s);this.toolboxes=[],this.measurers={}}},p.prototype.refresh=function(s){this.toolboxes.forEach(function(u,d){(!s||Array.isArray(s)&&s.indexOf(d)>-1||d===s)&&u.render()})},p.prototype.applyFilter=function(s,u){var d=this;return this.toolboxes.reduce(function(h,g,x){return(!u||Array.isArray(u)&&u.indexOf(x)>-1||x===u)&&g.render(function(b){return d.searchFilter(b,s,x)})&&h.push(x),h},[])},p.prototype.searchFilter=function(s,u,d,h){if(!u||h&&-1===h.indexOf(d))return!0;u=u.toLowerCase();var g=this.shapeDescriptionManager.get(s);return g.getTitle().toLowerCase().indexOf(u)>-1||g.getDefaultText().toLowerCase().indexOf(u)>-1},p.prototype.getOrCreateMeasurer=function(s){var u=s.getAttribute("data-dxdiMeasurerID");return u&&this.measurers[u]||(u=f.MathUtils.generateGuid(),this.measurers[u]=new C.TextMeasurer(s),s.setAttribute("data-dxdiMeasurerID",u)),this.measurers[u]},p}();l.ToolboxManager=a},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(f,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var u in s)s.hasOwnProperty(u)&&(p[u]=s[u])})(f,a)},function(f,a){function p(){this.constructor=f}c(f,a),f.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(l,"__esModule",{value:!0}),l.TextToolbox=void 0;var C=function(f){function a(p,s,u,d,h,g){return f.call(this,p,s,u,d,h,g)||this}return I(a,f),a.prototype.createElements=function(p,s){var u=this;s.forEach(function(d){var h=u.shapeDescriptionManager.get(d),g=document.createElement("div");g.setAttribute("class","toolbox-text-item"),g.setAttribute("data-tb-type",d),g.textContent=h.getDefaultText()||h.getTitle(),p.appendChild(g)})},a.prototype.createDraggingElement=function(p){var s=document.createElement("DIV");s.setAttribute("class","dxdi-toolbox-drag-text-item");var u=this.shapeDescriptionManager.get(p.evt.data);return s.textContent=u.getDefaultText()||u.getTitle(),document.body.appendChild(s),s},a}(o(159).Toolbox);l.TextToolbox=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(b,y){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var O in S)S.hasOwnProperty(O)&&(E[O]=S[O])})(b,y)},function(b,y){function E(){this.constructor=b}c(b,y),b.prototype=null===y?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(l,"__esModule",{value:!0}),l.IconToolbox=void 0;var C=o(159),f=o(15),a=o(14),p=o(12),s=o(0),u=o(121),d=o(26),h=o(126),g=o(21),x=function(b){function y(E,S,O,w,T,k,R,P){var B=b.call(this,E,S,O,w,T,k)||this;return B.options=R,B.measurer=P,B}return I(y,b),y.prototype.createElements=function(E,S){var O=document.createElementNS(f.svgNS,"svg");O.className.baseVal="dxdi-canvas",E.appendChild(O),this.drawShapeIcons(O,S,this.options.toolboxWidth||O.getBoundingClientRect().width)},y.prototype.drawShapeIcons=function(E,S,O){var w=this,T=d.DEFAULT_STROKE_WIDTH,k=O-2*T,R=this.options.shapeIconSize;!R&&this.options.shapeIconSpacing&&this.options.shapeIconCountInRow&&(R=Math.floor((k-(this.options.shapeIconCountInRow-1)*this.options.shapeIconSpacing)/this.options.shapeIconCountInRow)),R||(R=32);var P=R=Math.max(R,this.options.shapeIconSpacing/2),B=this.options.shapeIconCountInRow;if(!B)for(B=1;P<k;)(P+=this.options.shapeIconSpacing+R)<k&&B++;var W=B>1?(k-R*B)/(B-1):0,N=T,V=T,U=p.UnitConverter.pixelsToTwips(R);S.forEach(function(K,Y){Y>0&&Y%B==0&&(N=T,V+=R+W);var J=w.shapeDescriptionManager.get(K),j=w.createShape(J,N,V,R<26);w.updateShapeIconBounds(j,R);var ee=w.drawShape(E,j);w.drawSelector(ee,p.UnitConverter.pixelsToTwips(N),p.UnitConverter.pixelsToTwips(V),U),N+=R+W}),E.style.height=V+R+T+"px",E.style.width=O+"px"},y.prototype.drawShape=function(E,S){var O=this,w=S.description.createPrimitives(S,!0),T=document.createElementNS(f.svgNS,"g");if(T.setAttribute("data-tb-type",S.description.key.toString()),T.setAttribute("class","toolbox-item"),T.setAttribute("title",S.description.getTitle()),this.options.shapeIconAttributes)for(var k in this.options.shapeIconAttributes)Object.prototype.hasOwnProperty.call(this.options.shapeIconAttributes,k)&&T.setAttribute(k,this.options.shapeIconAttributes[k]);return E.appendChild(T),w.forEach(function(R){var P=R.createElement(function(B){return T.appendChild(B)});R.applyElementProperties(P,O.measurer)}),T},y.prototype.drawSelector=function(E,S,O,w){var T=this,k=new g.RectanglePrimitive(S,O,w,w,void 0,"selector");k.createElement(function(R){k.applyElementProperties(R,T.measurer),E.appendChild(R)})},y.prototype.createShape=function(E,S,O,w){var T=p.UnitConverter.pixelsToTwips(S),k=p.UnitConverter.pixelsToTwips(O),R=new a.Shape(E,new s.Point(T,k),!0);return this.needResetShapeText(E)?R.text="":w&&(R.text="T"),R},y.prototype.needResetShapeText=function(E){return!(E instanceof u.TextShapeDescription||E instanceof h.CustomShapeDescription&&E.baseDescription instanceof u.TextShapeDescription)},y.prototype.updateShapeIconBounds=function(E,S){var O=p.UnitConverter.pixelsToTwips(S);if(E.size.height=E.size.width*E.getToolboxHeightToWidthRatio(),E.size.width>E.size.height){var w=E.size.height/E.size.width;E.size.width=O,E.size.height=O*w,E.position.y=E.position.y+(O-E.size.height)/2,E.parameters.forEach(function(T){T.value=T.value*O/E.description.defaultSize.width})}else E.size.width<E.size.height?(w=E.size.width/E.size.height,E.size.height=O,E.size.width=O*w,E.position.x=E.position.x+(O-E.size.width)/2,E.parameters.forEach(function(T){T.value=T.value*O/E.description.defaultSize.height})):(E.size.width=O,E.size.height=O,E.parameters.forEach(function(T){T.value=T.value*O/E.description.defaultSize.width}))},y.prototype.createDraggingElement=function(E){var S=document.createElement("DIV");S.setAttribute("class","dxdi-toolbox-drag-item"),document.body.appendChild(S);var O=document.createElementNS(f.svgNS,"svg");O.className.baseVal="dxdi-canvas",S.appendChild(O);var w=this.shapeDescriptionManager.get(E.evt.data),T=this.createShape(w,d.DEFAULT_STROKE_WIDTH,d.DEFAULT_STROKE_WIDTH);return this.drawShape(O,T),S.style.width=p.UnitConverter.twipsToPixels(T.size.width)+2*d.DEFAULT_STROKE_WIDTH+"px",S.style.height=p.UnitConverter.twipsToPixels(T.size.height)+2*d.DEFAULT_STROKE_WIDTH+"px",S},y}(C.Toolbox);l.IconToolbox=x},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,x){g.__proto__=x}||function(g,x){for(var b in x)x.hasOwnProperty(b)&&(g[b]=x[b])})(d,h)},function(d,h){function g(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(l,"__esModule",{value:!0}),l.ApiController=void 0;var C,d,f=o(81),a=o(11),p=o(4),s=o(58),u=function(d){function h(g,x,b){var y=d.call(this)||this;return y.events=g,y.model=b,y.selection=x,y}return I(h,d),h.prototype.notifySelectionChanged=function(g){this.isUpdateLocked()?this.registerOccurredEvent(C.SelectionChanged):this.raiseSelectionChanged()},h.prototype.notifyToolboxDragStart=function(){this.events.raise("notifyToolboxItemDragStart")},h.prototype.notifyToolboxDragEnd=function(){this.events.raise("notifyToolboxItemDragEnd")},h.prototype.notifyToolboxDraggingMouseMove=function(){},h.prototype.notifyClick=function(g){var x=this;this.tryRaiseUserAction(g,function(b){return x.events.raise("notifyItemClick",b)})},h.prototype.notifyDblClick=function(g){var x=this;this.tryRaiseUserAction(g,function(b){return x.events.raise("notifyItemDblClick",b)})},h.prototype.createNativeItem=function(g){return g&&this.cleanupNativeItem(g.toNative(this.model.units))},h.prototype.createNativeShape=function(g){return this.createNativeItem(g)},h.prototype.createNativeConnector=function(g){return this.createNativeItem(g)},h.prototype.convertUnit=function(g){return p.ModelUtils.getlUnitValue(this.model.units,g)},h.prototype.convertPoint=function(g){return new s.Point(this.convertUnit(g.x),this.convertUnit(g.y))},h.prototype.convertSize=function(g){return new s.Size(this.convertUnit(g.width),this.convertUnit(g.height))},h.prototype.cleanupNativeItem=function(g){var x=this.dataSource;return x&&(x.isAutoGeneratedKey(g.fromKey)&&(g.fromKey=void 0),x.isAutoGeneratedKey(g.key)&&(g.key=void 0),x.isAutoGeneratedKey(g.toKey)&&(g.toKey=void 0)),g},h.prototype.setDataSource=function(g){this.dataSource=g},h.prototype.tryRaiseUserAction=function(g,x){var b=this;if(this.isUserAction(g)){var y=this.model.findItem(g.source.key);y&&this.events.raise1(function(E){return x(b.createNativeItem(y))})}},h.prototype.isUserAction=function(g){return g.source&&(g.source.type===a.MouseEventElementType.Shape||g.source.type===a.MouseEventElementType.ShapeExpandButton||g.source.type===a.MouseEventElementType.ShapeParameterBox||g.source.type===a.MouseEventElementType.ShapeResizeBox||g.source.type===a.MouseEventElementType.ShapeConnectionPoint||g.source.type===a.MouseEventElementType.Connector||g.source.type===a.MouseEventElementType.ConnectorPoint||g.source.type===a.MouseEventElementType.ConnectorSide||g.source.type===a.MouseEventElementType.ConnectorOrthogonalSide||g.source.type===a.MouseEventElementType.ConnectorText)},h.prototype.onUpdateUnlocked=function(g){g&C.SelectionChanged&&this.raiseSelectionChanged()},h.prototype.raiseSelectionChanged=function(){var g=this,x=this.selection.getKeys().map(function(b){return g.createNativeItem(g.model.findItem(b))});this.events.raise1(function(b){return b.notifySelectionChanged(x)})},h}(f.BatchUpdatableObject);l.ApiController=u,(d=C||(C={}))[d.SelectionChanged=1]="SelectionChanged"},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PermissionsProvider=void 0;var c=o(14),I=o(3),C=o(16),f=o(6),a=o(355),p=o(356),s=o(357),u=o(358),d=o(359),h=o(360),g=o(361),x=o(362),b=o(363),y=o(364),E=o(365),S=o(366),O=o(367),w=function(){function T(k){this.onRequestOperation=new I.EventDispatcher,this.cache=[],this.permissionsLockCount=0,this.requestDeleteItems={},this.updateUICount=0,this.apiController=k,this.operationSettings=new C.ModelOperationSettings,this.storage=new E.PermissionsProviderStorage}return T.prototype.notifySelectionChanged=function(k){this.clearCache()},T.prototype.notifyModelChanged=function(k){this.clearCache()},T.prototype.notifyPageColorChanged=function(k){},T.prototype.notifyPageSizeChanged=function(k,R){},T.prototype.clearCache=function(k){this.cache=void 0!==k?this.cache.filter(function(R){return R.operation!==k}):[]},T.prototype.canDeleteItems=function(k){var R=this,P=!0;return k.forEach(function(B){var W;B instanceof c.Shape&&(W=new p.DeleteShapeRequestedEntity(R.apiController,B)),B instanceof f.Connector&&(W=new s.DeleteConnectorRequestedEntity(R.apiController,B)),P=P&&R.requestOperation(W)}),P},T.prototype.canAddItems=function(k){var R=this,P=!0;return k.forEach(function(B){B instanceof c.Shape&&(P=P&&R.requestOperation(new a.AddShapeRequestedEntity(R.apiController,B))),B instanceof f.Connector&&(P=(P=P&&R.canChangeConnection(B,B.beginItem,void 0,f.ConnectorPosition.Begin,B.beginConnectionPointIndex))&&R.canChangeConnection(B,B.endItem,void 0,f.ConnectorPosition.End,B.endConnectionPointIndex))}),P},T.prototype.canAddShapeFromToolbox=function(k){return this.requestOperation(new u.AddShapeFromToolboxRequestedEntity(this.apiController,k))},T.prototype.canChangeConnection=function(k,R,P,B,W){return!(!k||!this.requestDeleteItems[k.key])||!(null==R||R instanceof c.Shape)||this.requestOperation(new d.ChangeConnectionRequestedEntity(this.apiController,k,R,P,B,W))},T.prototype.canChangeConnectorPoints=function(k,R,P){return!(!k||!this.requestDeleteItems[k.key])||this.requestOperation(new h.ChangeConnectorPointsRequestedEntity(this.apiController,k,R,P))},T.prototype.canChangeShapeText=function(k){return this.requestOperation(new g.BeforeChangeShapeTextRequestedEntity(this.apiController,k))},T.prototype.canChangeConnectorText=function(k,R){return this.requestOperation(new x.BeforeChangeConnectorTextRequestedEntity(this.apiController,k,R))},T.prototype.canApplyShapeTextChange=function(k,R){return this.requestOperation(new b.ChangeShapeTextRequestedEntity(this.apiController,k,R))},T.prototype.canApplyConnectorTextChange=function(k,R,P){return this.requestOperation(new y.ChangeConnectorTextRequestedEntity(this.apiController,k,R,P))},T.prototype.canResizeShapes=function(k){var R=this,P=!0;return k.forEach(function(B){P=P&&R.requestOperation(new S.ResizeShapeRequestedEntity(R.apiController,B.shape,B.oldSize,B.size))}),P},T.prototype.canMoveShapes=function(k){var R=this,P=!0;return k.forEach(function(B){P=P&&R.requestOperation(new O.MoveShapeRequestedEntity(R.apiController,B.shape,B.oldPosition,B.position))}),P},T.prototype.requestOperation=function(k){var R,P=!0;return!this.permissionsLockCount&&(this.updateUICount>0&&this.cache.forEach(function(B){B.equals(k)&&(R=B)}),R?P=R.allowed:(this.requestOperationCore(k),this.updateUICount>0&&this.cache.push(k),P=k.allowed),0===this.updateUICount&&this.storage.needStorePermissions())?(this.storage.storePermission(k.storageKey,P),this.storage.isStoredPermissionsGranted()):P},T.prototype.requestOperationCore=function(k){k.eventArgs.allowed=this.operationSettings[k.settingsKey],k.eventArgs.updateUI=this.updateUICount>0,k.allowed&&this.onRequestOperation.raise("notifyRequestOperation",k.operation,k.eventArgs)},T.prototype.lockPermissions=function(){this.permissionsLockCount++},T.prototype.unlockPermissions=function(){this.permissionsLockCount--},T.prototype.beginDeleteItems=function(k){var R=this;k.forEach(function(P){return R.requestDeleteItems[P.key]=P})},T.prototype.endDeleteItems=function(){this.requestDeleteItems={}},T.prototype.beginUpdateUI=function(){this.updateUICount++},T.prototype.endUpdateUI=function(){this.updateUICount--},T.prototype.addInteractingItem=function(k,R){this.storage.addInteractingItem(k,R)},T.prototype.getInteractingItem=function(k,R){return this.storage.getInteractingItem(k,R)},T.prototype.getInteractingItemCount=function(){return this.storage.getInteractingItemCount()},T.prototype.clearInteractingItems=function(){this.storage.clearInteractingItems()},T.prototype.beginStorePermissions=function(){this.storage.beginStorePermissions()},T.prototype.endStorePermissions=function(){this.storage.endStorePermissions()},T.prototype.isStoredPermissionsGranted=function(){return this.permissionsLockCount>0||this.storage.isStoredPermissionsGranted()},T}();l.PermissionsProvider=w},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.AddShapeEventArgs=l.AddShapeRequestedEntity=void 0;var C=o(16),f=o(23),a=function(s){function u(d,h){var g=s.call(this,d)||this;return g.shape=h,g}return I(u,s),Object.defineProperty(u.prototype,"operation",{get:function(){return C.DiagramModelOperation.AddShape},enumerable:!1,configurable:!0}),u.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape),this.apiController.convertPoint(this.shape.position))},Object.defineProperty(u.prototype,"settingsKey",{get:function(){return"addShape"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),u.prototype.equals=function(d){return d instanceof u&&this.shape===d.shape&&this.shape.position.equals(d.shape.position)},u}(f.RequestedEntity);l.AddShapeRequestedEntity=a;var p=function(s){function u(d,h){var g=s.call(this)||this;return g.shape=d,g.position=h,g}return I(u,s),u}(f.PermissionRequestEventArgs);l.AddShapeEventArgs=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.DeleteShapeEventArgs=l.DeleteShapeRequestedEntity=void 0;var C=o(16),f=o(23),a=function(s){function u(d,h){var g=s.call(this,d)||this;return g.shape=h,g}return I(u,s),Object.defineProperty(u.prototype,"operation",{get:function(){return C.DiagramModelOperation.DeleteShape},enumerable:!1,configurable:!0}),u.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape))},Object.defineProperty(u.prototype,"settingsKey",{get:function(){return"deleteShape"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),u.prototype.equals=function(d){return d instanceof u&&this.shape===d.shape},u}(f.RequestedEntity);l.DeleteShapeRequestedEntity=a;var p=function(s){function u(d){var h=s.call(this)||this;return h.shape=d,h}return I(u,s),u}(f.PermissionRequestEventArgs);l.DeleteShapeEventArgs=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.DeleteConnectorEventArgs=l.DeleteConnectorRequestedEntity=void 0;var C=o(16),f=o(23),a=function(s){function u(d,h){var g=s.call(this,d)||this;return g.connector=h,g}return I(u,s),Object.defineProperty(u.prototype,"operation",{get:function(){return C.DiagramModelOperation.DeleteConnector},enumerable:!1,configurable:!0}),u.prototype.createEventArgs=function(){return new p(this.apiController.createNativeConnector(this.connector))},Object.defineProperty(u.prototype,"settingsKey",{get:function(){return"deleteConnector"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),u.prototype.equals=function(d){return d instanceof u&&this.connector===d.connector},u}(f.RequestedEntity);l.DeleteConnectorRequestedEntity=a;var p=function(s){function u(d){var h=s.call(this)||this;return h.connector=d,h}return I(u,s),u}(f.PermissionRequestEventArgs);l.DeleteConnectorEventArgs=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.AddShapeFromToolboxEventArgs=l.AddShapeFromToolboxRequestedEntity=void 0;var C=o(16),f=o(23),a=function(s){function u(d,h){var g=s.call(this,d)||this;return g.shapeType=h,g}return I(u,s),Object.defineProperty(u.prototype,"operation",{get:function(){return C.DiagramModelOperation.AddShapeFromToolbox},enumerable:!1,configurable:!0}),u.prototype.createEventArgs=function(){return new p(this.shapeType)},Object.defineProperty(u.prototype,"settingsKey",{get:function(){return"addShapeFromToolbox"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+this.shapeType},enumerable:!1,configurable:!0}),u.prototype.equals=function(d){return d instanceof u&&this.shapeType===d.shapeType},u}(f.RequestedEntity);l.AddShapeFromToolboxRequestedEntity=a;var p=function(s){function u(d){var h=s.call(this)||this;return h.shapeType=d,h}return I(u,s),u}(f.PermissionRequestEventArgs);l.AddShapeFromToolboxEventArgs=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeConnectionEventArgs=l.ChangeConnectionRequestedEntity=void 0;var C=o(16),f=o(23),a=function(s){function u(d,h,g,x,b,y){var E=s.call(this,d)||this;return E.connector=h,E.shape=g,E.oldShape=x,E.position=b,E.connectionPointIndex=y,E}return I(u,s),Object.defineProperty(u.prototype,"operation",{get:function(){return C.DiagramModelOperation.ChangeConnection},enumerable:!1,configurable:!0}),u.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(u.prototype,"settingsKey",{get:function(){return"changeConnection"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)+"_"+this.position},enumerable:!1,configurable:!0}),u.prototype.equals=function(d){return d instanceof u&&(!this.shape&&!d.shape||this.shape&&d.shape&&this.shape===d.shape)&&(!this.oldShape&&!d.oldShape||this.oldShape&&d.oldShape&&this.oldShape===d.oldShape)&&(!this.connector&&!d.connector||this.connector&&d.connector&&this.connector===d.connector)&&this.position===d.position&&this.connectionPointIndex===d.connectionPointIndex},u}(f.RequestedEntity);l.ChangeConnectionRequestedEntity=a;var p=function(s){function u(d,h,g,x,b){var y=s.call(this)||this;return y.connector=d,y.shape=h,y.oldShape=g,y.position=x,y.connectionPointIndex=b,y}return I(u,s),u}(f.PermissionRequestEventArgs);l.ChangeConnectionEventArgs=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(u,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])})(u,d)},function(u,d){function h(){this.constructor=u}c(u,d),u.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeConnectorPointsEventArgs=l.ChangeConnectorPointsRequestedEntity=void 0;var C=o(16),f=o(23),a=o(3),p=function(u){function d(h,g,x,b){var y=u.call(this,h)||this;return y.connector=g,y.oldPoints=x,y.points=b,y}return I(d,u),Object.defineProperty(d.prototype,"operation",{get:function(){return C.DiagramModelOperation.ChangeConnectorPoints},enumerable:!1,configurable:!0}),d.prototype.createEventArgs=function(){var h=this;return new s(this.apiController.createNativeConnector(this.connector),this.oldPoints.map(function(g){return h.apiController.convertPoint(g)}),this.points.map(function(g){return h.apiController.convertPoint(g)}))},Object.defineProperty(d.prototype,"settingsKey",{get:function(){return"changeConnectorPoints"},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),d.prototype.equals=function(h){return h instanceof d&&this.connector===h.connector&&a.GeometryUtils.arePointsEqual(this.oldPoints,h.oldPoints)&&a.GeometryUtils.arePointsEqual(this.points,h.points)},d}(f.RequestedEntity);l.ChangeConnectorPointsRequestedEntity=p;var s=function(u){function d(h,g,x){var b=u.call(this)||this;return b.connector=h,b.oldPoints=g,b.points=x,b}return I(d,u),d}(f.PermissionRequestEventArgs);l.ChangeConnectorPointsEventArgs=s},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.BeforeChangeShapeTextEventArgs=l.BeforeChangeShapeTextRequestedEntity=void 0;var C=o(16),f=o(23),a=function(s){function u(d,h){var g=s.call(this,d)||this;return g.shape=h,g}return I(u,s),Object.defineProperty(u.prototype,"operation",{get:function(){return C.DiagramModelOperation.BeforeChangeShapeText},enumerable:!1,configurable:!0}),u.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape))},Object.defineProperty(u.prototype,"settingsKey",{get:function(){return"changeShapeText"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"storageKey",{get:function(){return"before"+this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),u.prototype.equals=function(d){return d instanceof u&&this.shape===d.shape&&this.shape.text===d.shape.text},u}(f.RequestedEntity);l.BeforeChangeShapeTextRequestedEntity=a;var p=function(s){function u(d){var h=s.call(this)||this;return h.shape=d,h}return I(u,s),u}(f.PermissionRequestEventArgs);l.BeforeChangeShapeTextEventArgs=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.BeforeChangeConnectorTextEventArgs=l.BeforeChangeConnectorTextRequestedEntity=void 0;var C=o(16),f=o(23),a=function(s){function u(d,h,g){var x=s.call(this,d)||this;return x.connector=h,x.position=g,x}return I(u,s),Object.defineProperty(u.prototype,"operation",{get:function(){return C.DiagramModelOperation.BeforeChangeConnectorText},enumerable:!1,configurable:!0}),u.prototype.createEventArgs=function(){return new p(this.apiController.createNativeConnector(this.connector),this.position,this.connector.texts.map(function(d){return d}).sort(function(d,h){return d.position-h.position}).indexOf(this.connector.texts.get(this.position)))},Object.defineProperty(u.prototype,"settingsKey",{get:function(){return"changeConnectorText"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"storageKey",{get:function(){return"before"+this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),u.prototype.equals=function(d){return d instanceof u&&this.connector===d.connector&&this.position===d.position&&this.connector.texts.get(this.position)===d.connector.texts.get(d.position)},u}(f.RequestedEntity);l.BeforeChangeConnectorTextRequestedEntity=a;var p=function(s){function u(d,h,g){var x=s.call(this)||this;return x.connector=d,x.position=h,x.index=g,x}return I(u,s),u}(f.PermissionRequestEventArgs);l.BeforeChangeConnectorTextEventArgs=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeShapeTextEventArgs=l.ChangeShapeTextRequestedEntity=void 0;var C=o(16),f=o(23),a=function(s){function u(d,h,g){var x=s.call(this,d)||this;return x.shape=h,x.text=g,x}return I(u,s),Object.defineProperty(u.prototype,"operation",{get:function(){return C.DiagramModelOperation.ChangeShapeText},enumerable:!1,configurable:!0}),u.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape),this.text)},Object.defineProperty(u.prototype,"settingsKey",{get:function(){return"changeShapeText"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),u.prototype.equals=function(d){return d instanceof u&&this.shape===d.shape&&this.text===d.text},u}(f.RequestedEntity);l.ChangeShapeTextRequestedEntity=a;var p=function(s){function u(d,h){var g=s.call(this)||this;return g.shape=d,g.text=h,g}return I(u,s),u}(f.PermissionRequestEventArgs);l.ChangeShapeTextEventArgs=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ChangeConnectorTextEventArgs=l.ChangeConnectorTextRequestedEntity=void 0;var C=o(16),f=o(23),a=function(s){function u(d,h,g,x){var b=s.call(this,d)||this;return b.connector=h,b.position=g,b.text=x,b}return I(u,s),Object.defineProperty(u.prototype,"operation",{get:function(){return C.DiagramModelOperation.ChangeConnectorText},enumerable:!1,configurable:!0}),u.prototype.createEventArgs=function(){return new p(this.apiController.createNativeConnector(this.connector),this.position,this.connector.texts.map(function(d){return d}).sort(function(d,h){return d.position-h.position}).indexOf(this.connector.texts.get(this.position)),this.text)},Object.defineProperty(u.prototype,"settingsKey",{get:function(){return"changeConnectorText"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),u.prototype.equals=function(d){return d instanceof u&&this.connector===d.connector&&this.position===d.position&&this.text===d.text},u}(f.RequestedEntity);l.ChangeConnectorTextRequestedEntity=a;var p=function(s){function u(d,h,g,x){var b=s.call(this)||this;return b.connector=d,b.position=h,b.index=g,b.text=x,b}return I(u,s),u}(f.PermissionRequestEventArgs);l.ChangeConnectorTextEventArgs=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PermissionsProviderStorage=void 0;var c=o(14),I=o(6),C=function(){function f(){this.interactingItems={},this.storedPermissions={}}return f.prototype.addInteractingItem=function(a,p){var s=this.getInteractingItemKey(a,p);void 0===this.interactingItems[s]&&(a instanceof c.Shape||a instanceof I.Connector)&&(this.interactingItems[s]=a.clone())},f.prototype.getInteractingItem=function(a,p){var s=this.getInteractingItemKey(a,p);return this.interactingItems[s]},f.prototype.getInteractingItemCount=function(){return Object.keys(this.interactingItems).length},f.prototype.clearInteractingItems=function(){this.interactingItems={}},f.prototype.getInteractingItemKey=function(a,p){return a.key+(void 0!==p?"_"+p.toString():"")},f.prototype.needStorePermissions=function(){return this.storePermissions},f.prototype.beginStorePermissions=function(){this.storePermissions=!0},f.prototype.endStorePermissions=function(){this.storePermissions=!1,this.storedPermissions={}},f.prototype.isStoredPermissionsGranted=function(){for(var a=Object.keys(this.storedPermissions),p=!0,s=0;s<a.length;s++)p=p&&this.storedPermissions[a[s]];return p},f.prototype.storePermission=function(a,p){this.storedPermissions[a]=p},f}();l.PermissionsProviderStorage=C},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.ResizeShapeEventArgs=l.ResizeShapeRequestedEntity=void 0;var C=o(16),f=o(23),a=function(s){function u(d,h,g,x){var b=s.call(this,d)||this;return b.shape=h,b.oldSize=g,b.size=x,b}return I(u,s),Object.defineProperty(u.prototype,"operation",{get:function(){return C.DiagramModelOperation.ResizeShape},enumerable:!1,configurable:!0}),u.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape),this.apiController.convertSize(this.oldSize),this.apiController.convertSize(this.size))},Object.defineProperty(u.prototype,"settingsKey",{get:function(){return"resizeShape"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),u.prototype.equals=function(d){return d instanceof u&&this.shape===d.shape&&this.oldSize.equals(d.oldSize)&&this.size.equals(d.size)},u}(f.RequestedEntity);l.ResizeShapeRequestedEntity=a;var p=function(s){function u(d,h,g){var x=s.call(this)||this;return x.shape=d,x.oldSize=h,x.size=g,x}return I(u,s),u}(f.PermissionRequestEventArgs);l.ResizeShapeEventArgs=p},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(s,u){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])})(s,u)},function(s,u){function d(){this.constructor=s}c(s,u),s.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(l,"__esModule",{value:!0}),l.MoveShapeEventArgs=l.MoveShapeRequestedEntity=void 0;var C=o(16),f=o(23),a=function(s){function u(d,h,g,x){var b=s.call(this,d)||this;return b.shape=h,b.oldPosition=g,b.position=x,b}return I(u,s),Object.defineProperty(u.prototype,"operation",{get:function(){return C.DiagramModelOperation.MoveShape},enumerable:!1,configurable:!0}),u.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape),this.apiController.convertPoint(this.oldPosition),this.apiController.convertPoint(this.position))},Object.defineProperty(u.prototype,"settingsKey",{get:function(){return"moveShape"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),u.prototype.equals=function(d){return d instanceof u&&this.shape===d.shape&&this.oldPosition.equals(d.oldPosition)&&this.position.equals(d.position)},u}(f.RequestedEntity);l.MoveShapeRequestedEntity=a;var p=function(s){function u(d,h,g){var x=s.call(this)||this;return x.shape=d,x.oldPosition=h,x.position=g,x}return I(u,s),u}(f.PermissionRequestEventArgs);l.MoveShapeEventArgs=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorRoutingModel=l.ConnectorRoutingPenaltyDescription=void 0;var c=o(28),I=o(14),C=o(6),f=o(32),a=o(369),p=function(){this.shape=20,this.margin=2,this.turnBack=20,this.turnLeft=3.1,this.turnRight=3};l.ConnectorRoutingPenaltyDescription=p;var s=function(){function u(){this.connectorRoutingMode=c.ConnectorRoutingMode.AllShapesOnly,this.shapeMargins=C.Connector.minOffset,this.shouldReverseConnections=!0,this.shouldResizeConnections=!0,this.penaltyDescription=new p}return u.prototype.initialize=function(d){this.model=d},u.prototype.createStrategy=function(d){if(void 0!==this.model&&this.connectorRoutingMode!==c.ConnectorRoutingMode.None&&d===f.ConnectorLineOption.Orthogonal)return new a.RightAngleConnectorRoutingStrategy(this)},u.prototype.getItems=function(d,h){return this.getShapes(d,h)},u.prototype.notifyConnectorRoutingModeChanged=function(d){this.connectorRoutingMode=d},u.prototype.getShapes=function(d,h){return void 0===this.model||void 0===this.connectorRoutingMode||this.connectorRoutingMode===c.ConnectorRoutingMode.None?[]:this.connectorRoutingMode===c.ConnectorRoutingMode.AllShapesOnly?this.model.items.filter(function(g){return g instanceof I.Shape}):this.getConnectorShapes(d,h)},u.prototype.getConnectorShapes=function(d,h){var g=[];return d&&g.push(d),h&&d!==h&&g.push(h),g},u}();l.ConnectorRoutingModel=s},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RightAngleConnectorRoutingStrategy=void 0;var c=o(33),I=o(29),C=o(370),f=o(4),a=function(){function p(s){this.model=s}return p.prototype.createRenderPoints=function(s,u,d,h,g,x,b){if(u.length>1){var y=new C.RightAngleConnectorRoutingContext(this.model,s,u,d,h,g,x);if(y.initialize(b),y.shouldCreateRenderPoints)return this.createRenderPointsCore(y)}},p.prototype.clone=function(){return new p(this.model)},p.prototype.onAddPoint=function(s,u,d,h){var g=h.map(function(O){return new I.ConnectorRenderPoint(O.x,O.y,O.pointIndex)}),x=f.ModelUtils.findFirstPointIndex(g,function(O){return O.equals(d)});if(0===x)return g.splice(1,0,new I.ConnectorRenderPoint(d.x,d.y,u)),f.ModelUtils.validateRenderPointIndexes(s,g,2);var b=g.length-1;if(x===b)return g.splice(b,0,new I.ConnectorRenderPoint(d.x,d.y,u)),g[b+1].pointIndex=u+1,g;if(x>0){var y=g[x];return g[x]=new I.ConnectorRenderPoint(y.x,y.y,u,y.skipped),f.ModelUtils.validateRenderPointIndexes(s,g,x+1)}var E=new c.Segment(g[0],g[1]),S=new I.ConnectorRenderPoint(d.x,d.y);return E.containsPoint(S)?(g.splice(1,0,new I.ConnectorRenderPoint(S.x,S.y,-1)),g.splice(2,0,new I.ConnectorRenderPoint(S.x,S.y,u)),f.ModelUtils.validateRenderPointIndexes(s,g,3)):new c.Segment(g[b-1],g[b]).containsPoint(S)?(g.splice(b,0,new I.ConnectorRenderPoint(S.x,S.y,u)),g.splice(b+1,0,new I.ConnectorRenderPoint(S.x,S.y,-1)),g[b+2].pointIndex=u+1,g):h},p.prototype.onDeletePoint=function(s,u,d){var h=d.map(function(k){return new I.ConnectorRenderPoint(k.x,k.y,k.pointIndex)}),g=this.getRenderPointIndexByPointIndex(h,u);if(1===g){var x=h[0],b=h[1];return x.equals(b)?(h.splice(1,1),f.ModelUtils.validateRenderPointIndexes(s,h,1)):(h[1]=new I.ConnectorRenderPoint(b.x,b.y,-1,b.skipped),f.ModelUtils.validateRenderPointIndexes(s,h,2))}if(2===g){var y=h[2];return(x=h[1]).equals(y)?(h.splice(1,2),f.ModelUtils.validateRenderPointIndexes(s,h,1)):(h[2]=new I.ConnectorRenderPoint(y.x,y.y,-1,y.skipped),f.ModelUtils.validateRenderPointIndexes(s,h,3))}var E=h.length-1;if(g===E-1){var S=h[E-1],O=h[E];return S.equals(O)?(h.splice(E-1,1),f.ModelUtils.validateRenderPointIndexes(s,h,E-1)):(h[E-1]=new I.ConnectorRenderPoint(S.x,S.y,-1,S.skipped),f.ModelUtils.validateRenderPointIndexes(s,h,E))}if(g===E-2){var w=h[E-2];return w.equals(O=h[E-1])?(h.splice(E-2,2),f.ModelUtils.validateRenderPointIndexes(s,h,E-2)):(h[E-2]=new I.ConnectorRenderPoint(w.x,w.y,-1,w.skipped),f.ModelUtils.validateRenderPointIndexes(s,h,E-1))}var T=h[g];return h[g]=new I.ConnectorRenderPoint(T.x,T.y,-1,T.skipped),f.ModelUtils.validateRenderPointIndexes(s,h,g+1)},p.prototype.onMovePoint=function(s,u,d,h){if(0===u||u===s.length-1)return h;var g=h.map(function(x){return new I.ConnectorRenderPoint(x.x,x.y,x.pointIndex)});return this.onMovePointCore(g,u,d),f.ModelUtils.skipUnnecessaryRightAngleRenderPoints(g),g},p.prototype.onMovePoints=function(s,u,d,h,g,x){if(0===u||h===s.length-1)return x;var b=x.map(function(y){return new I.ConnectorRenderPoint(y.x,y.y,y.pointIndex)});return this.onMovePointCore(b,u,d),this.onMovePointCore(b,h,g),f.ModelUtils.skipUnnecessaryRightAngleRenderPoints(b),b},p.prototype.onMovePointCore=function(s,u,d){var h=this.getRenderPointIndexByPointIndex(s,u);h>=0&&(s[h]=new I.ConnectorRenderPoint(d.x,d.y,u,s[h].skipped))},p.prototype.createRenderPointsCore=function(s){var u,d=[],h=-1,g=-1;s.setup();var x=s.renderSegments,b=x[x.length-1].endPoint,y=s.points;do{this.registerCustomPoints(d,y,g+2,x[h+1].startPointIndex-1),g=(u=x[++h]).startPointIndex,this.registerRenderPoints(d,s.createRoutedPoints(u.startInfo,u.endInfo,u.createProhibitedSegments()),g)}while(!u.endPoint.equals(b));return s.validateRenderPoints(d),d},p.prototype.getRenderPointIndexByPointIndex=function(s,u){return f.ModelUtils.findFirstPointIndex(s,function(d){return d.pointIndex===u})},p.prototype.registerRenderPoints=function(s,u,d){var h=this;u.forEach(function(g,x){h.registerPoint(s,g,0===x?d:x===u.length-1?d+1:-1)})},p.prototype.registerCustomPoints=function(s,u,d,h){for(var g=d;g<=h;g++)this.registerPoint(s,u[g],g)},p.prototype.registerPoint=function(s,u,d){s.push(new I.ConnectorRenderPoint(u.x,u.y,d))},p}();l.RightAngleConnectorRoutingStrategy=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RightAngleConnectorRoutingContext=l.IntersectingItemsByPointsContext=l.CuttingItemsContext=void 0;var c=o(0),I=o(33),C=o(60),f=o(9),a=o(160),p=o(371),s=o(373),u=o(4),d=o(161),h=o(374),g=o(378),x=o(3),b=function(){function S(){this.cuttingItemKeys=[]}return Object.defineProperty(S.prototype,"isEmpty",{get:function(){return 0===this.cuttingItemKeys.length},enumerable:!1,configurable:!0}),S.prototype.registerShape=function(O,w,T){return!!x.GeometryUtils.areSegmentsCutRectangle(T,w)&&(this.cuttingItemKeys.push(O),!0)},S}();l.CuttingItemsContext=b;var y=function(){function S(){this.items={}}return S.prototype.getOrAddItems=function(O,w){if(O){var T=O.toString(),k=this.items[T];if(void 0!==k)return k.items;if(w){var R=w(O);return this.items[T]={point:O,items:R},R}}},S}();l.IntersectingItemsByPointsContext=y;var E=function(){function S(O,w,T,k,R,P,B){this.routingModel=O,this.points=w,this.supportRenderPoints=T,this.beginConnectionShape=k,this.endConnectionShape=R,this.beginConnectionSide=this.getConnectionSide(this.beginConnectionShape,P,this.beginPoint),this.endConnectionSide=this.getConnectionSide(this.endConnectionShape,B,this.endPoint),this.ignorableItemKeys={},this.cuttingShapesContext=new b,this.intersectedItemsByPointsContext=new y,this.isInvalidRenderSegments=!0}return Object.defineProperty(S.prototype,"shapeMargins",{get:function(){return this.routingModel.shapeMargins},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"beginPoint",{get:function(){return this.points[0]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"endPoint",{get:function(){return this.points[this.points.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"hasIntersecting",{get:function(){return!this.cuttingShapesContext.isEmpty},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"shouldCreateRenderPoints",{get:function(){return this.isInvalidRenderSegments||!this.isSmallPath&&(this.hasIntersecting||this.isReversedStartConnection||this.isReversedEndConnection)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"beginPathPoint",{get:function(){return this.beginConnectionSegment instanceof I.Segment?this.beginConnectionSegment.startPoint:this.beginConnectionSegment},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"endPathPoint",{get:function(){return this.endConnectionSegment instanceof I.Segment?this.endConnectionSegment.endPoint:this.endConnectionSegment},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isReversedStartConnection",{get:function(){if(!this.beginConnectionShape||this.beginConnectionSide===f.ConnectionPointSide.Undefined)return!1;var O=this.beginConnectionSegment;return!(O instanceof c.Point)&&this.isReversedConnectionSegment(this.supportSegments[0],O)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isReversedEndConnection",{get:function(){if(!this.endConnectionShape||this.endConnectionSide===f.ConnectionPointSide.Undefined)return!1;var O=this.endConnectionSegment;return!(O instanceof c.Point)&&this.isReversedConnectionSegment(this.supportSegments[this.supportSegments.length-1],O)},enumerable:!1,configurable:!0}),S.prototype.isReversedConnectionSegment=function(O,w){return C.Vector.scalarProduct(C.Vector.fromSegment(O),C.Vector.fromPoints(w.startPoint,w.endPoint))<=0},Object.defineProperty(S.prototype,"isSmallPath",{get:function(){var O=2*this.routingModel.shapeMargins;return Math.abs(this.beginPathPoint.x-this.endPathPoint.x)<O&&Math.abs(this.beginPathPoint.y-this.endPathPoint.y)<O},enumerable:!1,configurable:!0}),S.prototype.initialize=function(O){this.processContainers(O),this.processSupportSegments(),this.processIntersection(),this.processConnections(),this.processRenderSegments()},S.prototype.setup=function(){this.processRoutingGrid(),this.processRoutingMetrics()},S.prototype.createRoutedPoints=function(O,w,T){var P=this.createAStarContext(O instanceof c.Point?O:O.endPoint,w instanceof c.Point?w:w.startPoint,T);g.AStarCalculator.calculate(P);var B=P.path;return this.addConnectionRoutedPoints(B,O,w),a.RightAngleConnectorRoutingMathOperations.unionPoints(B),B},S.prototype.getIntersectedItems=function(O,w){var T=this;return this.intersectedItemsByPointsContext.getOrAddItems(O,function(k){return T.routingModel.getItems(T.beginConnectionShape,T.endConnectionShape).filter(function(R){return!T.isIgnorableItem(R)&&w(k,R)})})},S.prototype.validateRenderPoints=function(O){this.isInvalidRenderSegments&&(a.RightAngleConnectorRoutingMathOperations.unionPoints(O),u.ModelUtils.validateRenderPointIndexes(this.points,O,0)),u.ModelUtils.skipUnnecessaryRightAngleRenderPoints(O)},S.prototype.processContainers=function(O){if(O&&this.registerIgnorableShape(O),this.beginConnectionShape){var w=this.beginConnectionShape.container;w&&this.registerIgnorableShape(w)}if(this.endConnectionShape){var T=this.endConnectionShape.container;T&&this.registerIgnorableShape(T)}},S.prototype.processSupportSegments=function(){this.supportSegments=this.createSupportSegments()},S.prototype.processIntersection=function(){var O=this,w=this.routingModel.getItems(this.beginConnectionShape,this.endConnectionShape);w&&w.forEach(function(T){var k=T.key,R=T.rectangle;O.cuttingShapesContext.registerShape(k,R,O.supportSegments)?void 0!==O.ignorableItemKeys[k]&&delete O.ignorableItemKeys[k]:(!O.isConnectedByStart(T)&&R.containsPoint(O.beginPoint)||!O.isConnectedByEnd(T)&&R.containsPoint(O.endPoint))&&O.registerIgnorableShape(T)})},S.prototype.processConnections=function(){var O=!1,w=!1;this.beginConnectionShape!==this.endConnectionShape&&(O=this.shapeContainsOtherConnection(this.beginConnectionShape,this.endConnectionShape,this.endPoint),w=this.shapeContainsOtherConnection(this.endConnectionShape,this.beginConnectionShape,this.beginPoint),O&&this.registerIgnorableShape(this.beginConnectionShape),w&&this.registerIgnorableShape(this.endConnectionShape));var T=this.routingModel.shapeMargins;this.beginConnectionSegment=this.createBeginConnectionSegment(T,O),this.endConnectionSegment=this.createEndConnectionSegment(T,w)},S.prototype.processRenderSegments=function(){this.isInvalidRenderSegments=!1,this.renderSegments=this.createRenderSegments();for(var O=0;O<this.renderSegments.length-1;O++)if(this.renderSegments[O].endPoint.equals(this.renderSegments[O+1].startPoint))return void(this.isInvalidRenderSegments=!0)},S.prototype.createGridPoints=function(){var O=[];return this.renderSegments.forEach(function(w){return w.createGridPoints().forEach(function(T){return O.push(T)})}),O},S.prototype.processRoutingGrid=function(){this.routingGrid=this.createGrid()},S.prototype.processRoutingMetrics=function(){this.metrics=this.createAStarMetrics()},S.prototype.createAStarMetrics=function(){return new d.AStarMetrics(new d.TurnDirectionMetrics(this.routingModel.penaltyDescription),new d.IntersectedShapesMetrics(new d.IntersectedShapeMetrics(this.routingModel.penaltyDescription,this.routingModel.shapeMargins)))},S.prototype.createAStarContext=function(O,w,T){return new h.AStarContext(this,O,w,T,this.routingGrid,this.metrics)},S.prototype.addConnectionRoutedPoints=function(O,w,T){w instanceof I.Segment&&O.splice(0,0,w.startPoint),T instanceof I.Segment&&O.push(T.endPoint)},S.prototype.createSupportSegments=function(){var O=this;return this.supportRenderPoints.length<=1?[]:x.GeometryUtils.createSegments(this.supportRenderPoints).filter(function(w){return!O.isCustomSegment(w,O.supportRenderPoints[0],O.supportRenderPoints[O.supportRenderPoints.length-1])})},S.prototype.isCustomSegment=function(O,w,T){var k=O.startPoint;if(k.equals(w))return!1;var R=O.endPoint;return!R.equals(T)&&R.pointIndex-k.pointIndex==1},S.prototype.createRenderSegments=function(){var O=this,w=a.RightAngleConnectorRoutingMathOperations.createUnionSegments(this.supportSegments,function(k,R){return O.shouldCreateSegment(k,R)}),T=w.length-1;return w.map(function(k,R){return new p.ConnectorRenderSegment(R>0?new c.Point(k.startPoint.x,k.startPoint.y):O.beginConnectionSegment,R<T?new c.Point(k.endPoint.x,k.endPoint.y):O.endConnectionSegment,k.startPoint.pointIndex,O.createPreviousCustomSegment(k.startPoint))})},S.prototype.createPreviousCustomSegment=function(O){var w=O.pointIndex-1;return w>=0?new I.Segment(this.points[w].clone(),new c.Point(O.x,O.y)):void 0},S.prototype.shouldCreateSegment=function(O,w){return!O.equals(w)||w.pointIndex>0},S.prototype.isPathNormal=function(O){return O===f.ConnectionPointSide.Undefined||a.RightAngleConnectorRoutingMathOperations.isSegmentNormal(new I.Segment(this.beginPoint,this.endPoint),O===f.ConnectionPointSide.East||O===f.ConnectionPointSide.West)},S.prototype.registerIgnorableShape=function(O){this.ignorableItemKeys[O.key]=!0},S.prototype.isConnectedByStart=function(O){return this.beginConnectionShape&&this.beginConnectionShape.key===O.key&&this.beginConnectionSide!==f.ConnectionPointSide.Undefined},S.prototype.isConnectedByEnd=function(O){return this.endConnectionShape&&this.endConnectionShape.key===O.key&&this.endConnectionSide!==f.ConnectionPointSide.Undefined},S.prototype.getConnectionSide=function(O,w,T){return O?O.getConnectionPointSideByIndex(w,T):f.ConnectionPointSide.Undefined},S.prototype.shapeContainsOtherConnection=function(O,w,T){if(!O)return!1;var k=O.rectangle;return k.containsPoint(T)&&(!w||!w.rectangle.equals(k))},S.prototype.createBeginConnectionSegment=function(O,w){if(this.beginConnectionSide===f.ConnectionPointSide.Undefined)return this.createBeginConnectionSegmentCore(O);if(!w||!this.routingModel.shouldReverseConnections){var T=this.createBeginConnectionSegmentCore(O);if(T instanceof c.Point||!this.routingModel.shouldResizeConnections)return T;for(var k=T.startPoint,R=T.endPoint,P=O;this.hasIntersectedItemsByPoint(R,k,this.beginConnectionShape);)R=(T=this.createBeginConnectionSegmentCore(P/=2)).endPoint;return T}if(!this.endConnectionShape)return this.createBeginConnectionSegmentCore(-O);if(this.isPathNormal(this.endConnectionSide))return this.createBeginConnectionSegmentCore(-O);var B=this.createBeginConnectionSegmentCore(-2*O);return this.isEndConnectionRectanleLineIntersected(B,!1,!0)?this.createBeginConnectionSegmentCore(O):this.createBeginConnectionSegmentCore(-O)},S.prototype.hasIntersectedItemsByPoint=function(O,w,T){var k=this.getIntersectedItems(O,function(R,P){return P.rectangle.containsPoint(R)&&!P.rectangle.containsPoint(w)&&P.key!==T.key});return void 0!==k&&k.length>0},S.prototype.createEndConnectionSegment=function(O,w){if(this.endConnectionSide===f.ConnectionPointSide.Undefined)return this.createEndConnectionSegmentCore(O);if(!w||!this.routingModel.shouldReverseConnections){var T=this.createEndConnectionSegmentCore(O);if(T instanceof c.Point||!this.routingModel.shouldResizeConnections)return T;for(var k=T.endPoint,R=T.startPoint,P=O;this.hasIntersectedItemsByPoint(R,k,this.endConnectionShape);)R=(T=this.createEndConnectionSegmentCore(P/=2)).startPoint;return T}if(!this.beginConnectionShape)return this.createEndConnectionSegmentCore(-O);if(this.isPathNormal(this.beginConnectionSide))return this.createEndConnectionSegmentCore(-O);var B=this.createEndConnectionSegmentCore(-2*O);return this.isBeginConnectionRectanleLineIntersected(B,!0,!1)?this.createEndConnectionSegmentCore(O):this.createEndConnectionSegmentCore(-O)},S.prototype.createBeginConnectionSegmentCore=function(O){return a.RightAngleConnectorRoutingMathOperations.createBeginConnectionSegment(this.beginConnectionSide,this.beginPoint,O,function(w,T){return new c.Point(w,T)})},S.prototype.createEndConnectionSegmentCore=function(O){return a.RightAngleConnectorRoutingMathOperations.createEndConnectionSegment(this.endConnectionSide,this.endPoint,O,function(w,T){return new c.Point(w,T)})},S.prototype.isBeginConnectionRectanleLineIntersected=function(O,w,T){return a.RightAngleConnectorRoutingMathOperations.isConnectionRectanleLineIntersected(this.beginConnectionShape.rectangle,O,this.beginConnectionSide,w,T,function(k,R){return new c.Point(k,R)})},S.prototype.isEndConnectionRectanleLineIntersected=function(O,w,T){return a.RightAngleConnectorRoutingMathOperations.isConnectionRectanleLineIntersected(this.endConnectionShape.rectangle,O,this.endConnectionSide,w,T,function(k,R){return new c.Point(k,R)})},S.prototype.isIgnorableItem=function(O){return void 0!==this.ignorableItemKeys[O.key]},S.prototype.createExtendedShapesBounds=function(){var O=this;return this.routingModel.getItems(this.beginConnectionShape,this.endConnectionShape).map(function(w){return w.rectangle.clone().inflate(O.routingModel.shapeMargins)})},S.prototype.createGrid=function(){return s.RoutingGrid.create(this.createGridPoints(),this.createExtendedShapesBounds(),function(O,w){return new c.Point(O,w)})},S}();l.RightAngleConnectorRoutingContext=E},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorRenderSegment=void 0;var c=o(33),I=o(372),C=function(){function f(a,p,s,u){this.startInfo=a,this.endInfo=p,this.startPointIndex=s,this.previousCustomSegment=u}return Object.defineProperty(f.prototype,"startPathPoint",{get:function(){return this.startInfo instanceof c.Segment?this.startInfo.endPoint:this.startInfo},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"endPathPoint",{get:function(){return this.endInfo instanceof c.Segment?this.endInfo.startPoint:this.endInfo},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"startPoint",{get:function(){return this.startInfo instanceof c.Segment?this.startInfo.startPoint:this.startInfo},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"endPoint",{get:function(){return this.endInfo instanceof c.Segment?this.endInfo.endPoint:this.endInfo},enumerable:!1,configurable:!0}),f.prototype.createGridPoints=function(){var a=[];return this.endInfo instanceof c.Segment?(a.push(this.endInfo.startPoint),a.push(this.endInfo.endPoint)):a.push(this.endInfo),a},f.prototype.createProhibitedSegments=function(){if(this.startInfo instanceof c.Segment){var a=this.createProhibitedSegmentsCore(this.startInfo);return this.endInfo instanceof c.Segment&&(a.addSegment(this.endInfo),a.addExludedPoint(this.endInfo.startPoint)),this.previousCustomSegment&&a.addSegment(this.previousCustomSegment),a}return this.endInfo instanceof c.Segment?((a=this.createProhibitedSegmentsCore(this.endInfo)).addExludedPoint(this.endInfo.startPoint),this.previousCustomSegment&&a.addSegment(this.previousCustomSegment),a):this.previousCustomSegment?this.createProhibitedSegmentsCore(this.previousCustomSegment):void 0},f.prototype.createProhibitedSegmentsCore=function(a){var p=new I.ConnectorProhibitedSegments;return p.addSegment(a),p},f}();l.ConnectorRenderSegment=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorProhibitedSegments=void 0;var c=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 f=0;f<this.segments.length;f++)if(this.segments[f].containsPoint(C))return!1;return!0},I}();l.ConnectorProhibitedSegments=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RoutingGrid=void 0;var c=o(41),I=function(){function C(f,a,p){this.verticalGridLines=f,this.horizontalGridLines=a,this.createPoint=p}return C.create=function(f,a,p){var s=this,u=[],d=[],h={},g={};return a.forEach(function(x){s.addLine(x.x,u,h),s.addLine(x.right,u,h),s.addLine(x.y,d,g),s.addLine(x.bottom,d,g)}),f.forEach(function(x){s.addLine(x.x,u,h),s.addLine(x.y,d,g)}),u.sort(function(x,b){return x-b}),d.sort(function(x,b){return x-b}),new C(u,d,p)},C.addLine=function(f,a,p){p[f]||(a.push(f),p[f]=!0)},C.prototype.getNeighborPoints=function(f){var a=[];if(!(this.horizontalGridLines&&this.horizontalGridLines.length&&this.verticalGridLines&&this.verticalGridLines.length))return a;var p=c.SearchUtils.binaryIndexOf(this.verticalGridLines,function(u){return u-f.x});p<0?this.isValidArrayIndex(this.verticalGridLines,p=~p)&&a.push(this.createPoint(this.verticalGridLines[p],f.y)):this.isValidArrayIndex(this.verticalGridLines,p+1)&&a.push(this.createPoint(this.verticalGridLines[p+1],f.y)),this.isValidArrayIndex(this.verticalGridLines,p-1)&&a.push(this.createPoint(this.verticalGridLines[p-1],f.y));var s=c.SearchUtils.binaryIndexOf(this.horizontalGridLines,function(u){return u-f.y});return s<0?this.isValidArrayIndex(this.horizontalGridLines,s=~s)&&a.push(this.createPoint(f.x,this.horizontalGridLines[s])):this.isValidArrayIndex(this.horizontalGridLines,s+1)&&a.push(this.createPoint(f.x,this.horizontalGridLines[s+1])),this.isValidArrayIndex(this.horizontalGridLines,s-1)&&a.push(this.createPoint(f.x,this.horizontalGridLines[s-1])),a},C.prototype.isValidArrayIndex=function(f,a){return f&&a>=0&&a<f.length},C}();l.RoutingGrid=I},function(he,l,o){"use strict";var c,I=this&&this.__extends||(c=function(g,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(g,x)},function(g,x){function b(){this.constructor=g}c(g,x),g.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(l,"__esModule",{value:!0}),l.AStarContext=l.AStarContextBase=void 0;var C=o(375),f=o(376),a=o(377),p=o(33),s=o(160),u=o(3),d=function(){function g(x,b,y){this.startPosition=x,this.targetPosition=b,this.maxStepsCount=y,this.prohibitedPoints={}}return Object.defineProperty(g.prototype,"shouldStartContinue",{get:function(){return this.updatableSet.count>0&&this.stepsCount<this.maxStepsCount},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"shouldFinish",{get:function(){return this.currentNode.position.equals(this.targetPosition)},enumerable:!1,configurable:!0}),g.prototype.start=function(){this.generalSet=new C.SortedQueues(function(b){return b.key}),this.updatableSet=new f.UniqueAStarNodePositions;var x=new a.AStarNode(this.startPosition,this.getDistance(this.startPosition,this.targetPosition));this.currentNode=x,this.generalSet.enqueue(x),this.updatableSet.add(x.position,x),this.stepsCount=0,this.openNode=void 0},g.prototype.startContinue=function(){this.currentNode=this.generalSet.dequeueMin()},g.prototype.endContinue=function(){var x=this,b=this.currentNode.position;this.updatableSet.remove(b),this.addProhibitedPoint(b),this.getNeighborPoints(b).forEach(function(y){var E=x.getPenalty(x.currentNode,y),S=x.updatableSet.getNode(y);if(void 0===S)(S=new a.AStarNode(y,x.getDistance(y,x.targetPosition))).parent=x.currentNode,S.penalty=E,x.generalSet.enqueue(S),x.updatableSet.add(y,S);else if(S.penalty>E){var O=x.generalSet;O.remove(S),S.parent=x.currentNode,S.penalty=E,O.enqueue(S)}x.openNode=S}),this.stepsCount++},g.prototype.finishWithPath=function(){this.path=this.currentNode.getPath()},g.prototype.finishWithoutPath=function(){this.path=[]},g}();l.AStarContextBase=d;var h=function(g){function x(b,y,E,S,O,w){var T=g.call(this,y,E,1e4)||this;return T.routingContext=b,T.startPosition=y,T.targetPosition=E,T.prohibitedSegments=S,T.grid=O,T.metrics=w,T}return I(x,g),x.prototype.addProhibitedPoint=function(b){this.prohibitedPoints[b.toString()]=b},x.prototype.getNeighborPoints=function(b){var y=this;return this.grid.getNeighborPoints(b).filter(function(E){return y.allowPoint(E)})},x.prototype.getDistance=function(b,y){return this.metrics.distance(b,y)},x.prototype.getPenalty=function(b,y){var E=b.parent,S=b.position,O=this.getTurnDirection(E?u.GeometryUtils.createAngle(E.position,S,y):0),w=this.getDistance(S,y),T=new p.Segment(S,y).center;return b.penalty+this.metrics.penalty(w,T,O,this.getIntersectedItems(T))},x.prototype.allowPoint=function(b){return void 0===this.prohibitedPoints[b.toString()]&&(!this.prohibitedSegments||this.prohibitedSegments.allowPoint(b))},x.prototype.getTurnDirection=function(b){return s.RightAngleConnectorRoutingMathOperations.getTurnDirection(b)},x.prototype.getIntersectedItems=function(b){var y=this,E=this.routingContext.shapeMargins;return this.routingContext.getIntersectedItems(b,function(S,O){return y.hasIntersectedItem(S,O,E)})},x.prototype.hasIntersectedItem=function(b,y,E){return!(!this.isIntersectedWithExtendedRectangle(b,y,E)||!this.hasOneShapeConnection(y)&&this.itemContainsConnectionPoints(y))},x.prototype.isIntersectedWithExtendedRectangle=function(b,y,E){return y.rectangle.clone().inflate(E).containsPoint(b)},x.prototype.itemContainsConnectionPoints=function(b){var y=b.rectangle;return y.containsPoint(this.routingContext.beginPoint)&&y.containsPoint(this.routingContext.endPoint)},x.prototype.hasOneShapeConnection=function(b){var y=b.getConnectionPoints();return this.isConnectionPoint(y,this.routingContext.beginPoint)&&this.isConnectionPoint(y,this.routingContext.endPoint)},x.prototype.isConnectionPoint=function(b,y){return b.filter(function(E){return E.equals(y)}).length>0},x}(d);l.AStarContext=h},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.SortedQueues=void 0;var c=o(41),I=function(){function C(f){this.getKey=f,this._itemsArrays={},this._sortedKeys=[]}return Object.defineProperty(C.prototype,"sortedKeys",{get:function(){return this._sortedKeys},enumerable:!1,configurable:!0}),C.prototype.getQueue=function(f){return this._itemsArrays[f]},C.prototype.enqueue=function(f){var a=this.getKey(f);void 0===this._itemsArrays[a]?(this._itemsArrays[a]=[f],this.addSortedKey(a)):this._itemsArrays[a].push(f)},C.prototype.remove=function(f){var a=this.getKey(f),p=this._itemsArrays[a];void 0!==p&&(p.length?p[0]===f?(p.shift(),p.length||this.removeCore(a)):this._itemsArrays[a]=p.filter(function(s){return s!==f}):this.removeCore(a))},C.prototype.dequeueMin=function(){if(this._sortedKeys.length){var f=this._sortedKeys[0],a=this._itemsArrays[f],p=a.shift();return a.length||this.removeCore(f),p}},C.prototype.removeCore=function(f){delete this._itemsArrays[f],this.removeSortedKey(f)},C.prototype.removeSortedKey=function(f){var a=c.SearchUtils.binaryIndexOf(this._sortedKeys,function(p){return p-f});a>=0&&this.sortedKeys.splice(a,1)},C.prototype.addSortedKey=function(f){var a=c.SearchUtils.binaryIndexOf(this._sortedKeys,function(p){return p-f});a<0&&this._sortedKeys.splice(-(a+1),0,f)},C}();l.SortedQueues=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.UniqueAStarNodePositions=void 0;var c=function(){function I(C){void 0===C&&(C=function(f){return f.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 f=this.items[this.getKey(C)];return void 0!==f?f.node:void 0},I.prototype.add=function(C,f){var a=this.getKey(C);void 0===this.items[a]&&(this.items[a]={position:C,node:f})},I.prototype.remove=function(C){var f=this.getKey(C);void 0!==this.items[f]&&delete this.items[f]},I}();l.UniqueAStarNodePositions=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.AStarNode=void 0;var c=function(){function I(C,f){this.position=C,this.distance=f,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=[],f=this;void 0!==f;)C.splice(0,0,f.position),f=f.parent;return C},I}();l.AStarNode=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.AStarCalculator=void 0;var c=function(){function I(){}return I.calculate=function(C){if(C)for(var f=this.start(C);f;)f=f(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}();l.AStarCalculator=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ReloadContentParameters=void 0;var c=function(){function I(){this.isEmpty=!0}return I.prototype.add=function(C,f,a){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||f,this._layoutParameters=this._layoutParameters||a,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}();l.ReloadContentParameters=c},function(he,l,o){}])},6660:function(kn){kn.exports=function(he){var l={};function o(c){if(l[c])return l[c].exports;var I=l[c]={i:c,l:!1,exports:{}};return he[c].call(I.exports,I,I.exports,o),I.l=!0,I.exports}return o.m=he,o.c=l,o.d=function(c,I,C){o.o(c,I)||Object.defineProperty(c,I,{enumerable:!0,get:C})},o.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},o.t=function(c,I){if(1&I&&(c=o(c)),8&I||4&I&&"object"==typeof c&&c&&c.__esModule)return c;var C=Object.create(null);if(o.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:c}),2&I&&"string"!=typeof c)for(var f in c)o.d(C,f,function(a){return c[a]}.bind(null,f));return C},o.n=function(c){var I=c&&c.__esModule?function(){return c.default}:function(){return c};return o.d(I,"a",I),I},o.o=function(c,I){return Object.prototype.hasOwnProperty.call(c,I)},o.p="",o(o.s=73)}([function(he,l,o){"use strict";o.r(l),o.d(l,"__extends",function(){return I}),o.d(l,"__assign",function(){return C}),o.d(l,"__rest",function(){return f}),o.d(l,"__decorate",function(){return a}),o.d(l,"__param",function(){return p}),o.d(l,"__metadata",function(){return s}),o.d(l,"__awaiter",function(){return u}),o.d(l,"__generator",function(){return d}),o.d(l,"__createBinding",function(){return h}),o.d(l,"__exportStar",function(){return g}),o.d(l,"__values",function(){return x}),o.d(l,"__read",function(){return b}),o.d(l,"__spread",function(){return y}),o.d(l,"__spreadArrays",function(){return E}),o.d(l,"__spreadArray",function(){return S}),o.d(l,"__await",function(){return O}),o.d(l,"__asyncGenerator",function(){return w}),o.d(l,"__asyncDelegator",function(){return T}),o.d(l,"__asyncValues",function(){return k}),o.d(l,"__makeTemplateObject",function(){return R}),o.d(l,"__importStar",function(){return B}),o.d(l,"__importDefault",function(){return W}),o.d(l,"__classPrivateFieldGet",function(){return N}),o.d(l,"__classPrivateFieldSet",function(){return V});var c=function(U,K){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,J){Y.__proto__=J}||function(Y,J){for(var j in J)Object.prototype.hasOwnProperty.call(J,j)&&(Y[j]=J[j])})(U,K)};function I(U,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function Y(){this.constructor=U}c(U,K),U.prototype=null===K?Object.create(K):(Y.prototype=K.prototype,new Y)}var C=function(){return(C=Object.assign||function(U){for(var K,Y=1,J=arguments.length;Y<J;Y++)for(var j in K=arguments[Y])Object.prototype.hasOwnProperty.call(K,j)&&(U[j]=K[j]);return U}).apply(this,arguments)};function f(U,K){var Y={};for(var J in U)Object.prototype.hasOwnProperty.call(U,J)&&K.indexOf(J)<0&&(Y[J]=U[J]);if(null!=U&&"function"==typeof Object.getOwnPropertySymbols){var j=0;for(J=Object.getOwnPropertySymbols(U);j<J.length;j++)K.indexOf(J[j])<0&&Object.prototype.propertyIsEnumerable.call(U,J[j])&&(Y[J[j]]=U[J[j]])}return Y}function a(U,K,Y,J){var j,ee=arguments.length,G=ee<3?K:null===J?J=Object.getOwnPropertyDescriptor(K,Y):J;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)G=Reflect.decorate(U,K,Y,J);else for(var q=U.length-1;q>=0;q--)(j=U[q])&&(G=(ee<3?j(G):ee>3?j(K,Y,G):j(K,Y))||G);return ee>3&&G&&Object.defineProperty(K,Y,G),G}function p(U,K){return function(Y,J){K(Y,J,U)}}function s(U,K){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(U,K)}function u(U,K,Y,J){return new(Y||(Y=Promise))(function(j,ee){function G(X){try{Z(J.next(X))}catch(M){ee(M)}}function q(X){try{Z(J.throw(X))}catch(M){ee(M)}}function Z(X){var M;X.done?j(X.value):(M=X.value,M instanceof Y?M:new Y(function(se){se(M)})).then(G,q)}Z((J=J.apply(U,K||[])).next())})}function d(U,K){var Y,J,j,ee,G={label:0,sent:function(){if(1&j[0])throw j[1];return j[1]},trys:[],ops:[]};return ee={next:q(0),throw:q(1),return:q(2)},"function"==typeof Symbol&&(ee[Symbol.iterator]=function(){return this}),ee;function q(Z){return function(X){return function(M){if(Y)throw new TypeError("Generator is already executing.");for(;G;)try{if(Y=1,J&&(j=2&M[0]?J.return:M[0]?J.throw||((j=J.return)&&j.call(J),0):J.next)&&!(j=j.call(J,M[1])).done)return j;switch(J=0,j&&(M=[2&M[0],j.value]),M[0]){case 0:case 1:j=M;break;case 4:return G.label++,{value:M[1],done:!1};case 5:G.label++,J=M[1],M=[0];continue;case 7:M=G.ops.pop(),G.trys.pop();continue;default:if(!((j=(j=G.trys).length>0&&j[j.length-1])||6!==M[0]&&2!==M[0])){G=0;continue}if(3===M[0]&&(!j||M[1]>j[0]&&M[1]<j[3])){G.label=M[1];break}if(6===M[0]&&G.label<j[1]){G.label=j[1],j=M;break}if(j&&G.label<j[2]){G.label=j[2],G.ops.push(M);break}j[2]&&G.ops.pop(),G.trys.pop();continue}M=K.call(U,G)}catch(se){M=[6,se],J=0}finally{Y=j=0}if(5&M[0])throw M[1];return{value:M[0]?M[1]:void 0,done:!0}}([Z,X])}}}var h=Object.create?function(U,K,Y,J){void 0===J&&(J=Y),Object.defineProperty(U,J,{enumerable:!0,get:function(){return K[Y]}})}:function(U,K,Y,J){void 0===J&&(J=Y),U[J]=K[Y]};function g(U,K){for(var Y in U)"default"===Y||Object.prototype.hasOwnProperty.call(K,Y)||h(K,U,Y)}function x(U){var K="function"==typeof Symbol&&Symbol.iterator,Y=K&&U[K],J=0;if(Y)return Y.call(U);if(U&&"number"==typeof U.length)return{next:function(){return U&&J>=U.length&&(U=void 0),{value:U&&U[J++],done:!U}}};throw new TypeError(K?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(U,K){var Y="function"==typeof Symbol&&U[Symbol.iterator];if(!Y)return U;var J,j,ee=Y.call(U),G=[];try{for(;(void 0===K||K-- >0)&&!(J=ee.next()).done;)G.push(J.value)}catch(q){j={error:q}}finally{try{J&&!J.done&&(Y=ee.return)&&Y.call(ee)}finally{if(j)throw j.error}}return G}function y(){for(var U=[],K=0;K<arguments.length;K++)U=U.concat(b(arguments[K]));return U}function E(){for(var U=0,K=0,Y=arguments.length;K<Y;K++)U+=arguments[K].length;var J=Array(U),j=0;for(K=0;K<Y;K++)for(var ee=arguments[K],G=0,q=ee.length;G<q;G++,j++)J[j]=ee[G];return J}function S(U,K,Y){if(Y||2===arguments.length)for(var J,j=0,ee=K.length;j<ee;j++)!J&&j in K||(J||(J=Array.prototype.slice.call(K,0,j)),J[j]=K[j]);return U.concat(J||Array.prototype.slice.call(K))}function O(U){return this instanceof O?(this.v=U,this):new O(U)}function w(U,K,Y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var J,j=Y.apply(U,K||[]),ee=[];return J={},G("next"),G("throw"),G("return"),J[Symbol.asyncIterator]=function(){return this},J;function G(se){j[se]&&(J[se]=function(ge){return new Promise(function(De,Fe){ee.push([se,ge,De,Fe])>1||q(se,ge)})})}function q(se,ge){try{(De=j[se](ge)).value instanceof O?Promise.resolve(De.value.v).then(Z,X):M(ee[0][2],De)}catch(Fe){M(ee[0][3],Fe)}var De}function Z(se){q("next",se)}function X(se){q("throw",se)}function M(se,ge){se(ge),ee.shift(),ee.length&&q(ee[0][0],ee[0][1])}}function T(U){var K,Y;return K={},J("next"),J("throw",function(j){throw j}),J("return"),K[Symbol.iterator]=function(){return this},K;function J(j,ee){K[j]=U[j]?function(G){return(Y=!Y)?{value:O(U[j](G)),done:"return"===j}:ee?ee(G):G}:ee}}function k(U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var K,Y=U[Symbol.asyncIterator];return Y?Y.call(U):(U=x(U),K={},J("next"),J("throw"),J("return"),K[Symbol.asyncIterator]=function(){return this},K);function J(j){K[j]=U[j]&&function(ee){return new Promise(function(G,q){var Z,X,M;Z=G,X=q,M=(ee=U[j](ee)).done,Promise.resolve(ee.value).then(function(ge){Z({value:ge,done:M})},X)})}}}function R(U,K){return Object.defineProperty?Object.defineProperty(U,"raw",{value:K}):U.raw=K,U}var P=Object.create?function(U,K){Object.defineProperty(U,"default",{enumerable:!0,value:K})}:function(U,K){U.default=K};function B(U){if(U&&U.__esModule)return U;var K={};if(null!=U)for(var Y in U)"default"!==Y&&Object.prototype.hasOwnProperty.call(U,Y)&&h(K,U,Y);return P(K,U),K}function W(U){return U&&U.__esModule?U:{default:U}}function N(U,K,Y,J){if("a"===Y&&!J)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof K?U!==K||!J:!K.has(U))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===Y?J:"a"===Y?J.call(U):J?J.value:K.get(U)}function V(U,K,Y,J,j){if("m"===J)throw new TypeError("Private method is not writable");if("a"===J&&!j)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof K?U!==K||!j:!K.has(U))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===J?j.call(U,Y):j?j.value=Y:K.set(U,Y),Y}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.numberToStringHex=l.numberToStringBin=l.isOdd=l.isEven=l.isNonNullString=l.isString=l.isNumber=l.boolToString=l.boolToInt=l.isDefined=void 0;var c=o(39);l.isDefined=function(I){return null!=I},l.boolToInt=function(I){return I?1:0},l.boolToString=function(I){return I?"1":"0"},l.isNumber=function(I){return"number"==typeof I},l.isString=function(I){return"string"==typeof I},l.isNonNullString=function(I){return!!I},l.isEven=function(I){return I%2!=0},l.isOdd=function(I){return I%2==0},l.numberToStringBin=function(I,C){return void 0===C&&(C=0),c.StringUtils.padLeft(I.toString(2),C,"0")},l.numberToStringHex=function(I,C){return void 0===C&&(C=0),c.StringUtils.padLeft(I.toString(16),C,"0")}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GanttDataObjectNames=l.DataObject=void 0;var c=o(1),I=o(18),C=function(){function f(){this.internalId=I.MathUtils.generateGuid()}return f.prototype.assignFromObject=function(a){(0,c.isDefined)(a)&&(0,c.isDefined)(a.id)&&this.updateId(a.id)},f.prototype.updateId=function(a){this.id=a,this.internalId=String(a)},f}();l.DataObject=C,l.GanttDataObjectNames={task:"task",dependency:"dependency",resource:"resource",resourceAssignment:"assignment"}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DomUtils=void 0;var c=o(10),I=o(1),C=o(18),f=o(39),a=function(){function u(){}return u.clearInnerHtml=function(d){for(;d.firstChild;)d.removeChild(d.firstChild)},u.setStylePosition=function(d,h){d.left=C.MathUtils.round(h.x,3)+"px",d.top=C.MathUtils.round(h.y,3)+"px"},u.setStyleSize=function(d,h){d.width=C.MathUtils.round(h.width,3)+"px",d.height=C.MathUtils.round(h.height,3)+"px"},u.setStyleSizeAndPosition=function(d,h){u.setStylePosition(d,h),u.setStyleSize(d,h)},u.hideNode=function(d){if(d){var h=d.parentNode;h&&h.removeChild(d)}},u.isHTMLElementNode=function(d){return d.nodeType===Node.ELEMENT_NODE},u.isTextNode=function(d){return d.nodeType===Node.TEXT_NODE},u.isElementNode=function(d){return d.nodeType===Node.ELEMENT_NODE},u.isHTMLTableRowElement=function(d){return"TR"===d.tagName},u.isItParent=function(d,h){if(!d||!h)return!1;for(;h;){if(h===d)return!0;if("BODY"===h.tagName)return!1;h=h.parentNode}return!1},u.getParentByTagName=function(d,h){for(h=h.toUpperCase();d;){if("BODY"===d.tagName)return null;if(d.tagName===h)return d;d=d.parentNode}return null},u.getDocumentScrollTop=function(){var d=c.Browser.IE&&"hidden"===u.getCurrentStyle(document.body).overflow&&document.body.scrollTop>0;return c.Browser.WebKitFamily||c.Browser.Edge||d?c.Browser.MacOSMobilePlatform?window.pageYOffset:c.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop},u.getDocumentScrollLeft=function(){var d=c.Browser.IE&&"hidden"===u.getCurrentStyle(document.body).overflow&&document.body.scrollLeft>0;return c.Browser.Edge||d?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:c.Browser.WebKitFamily?document.documentElement.scrollLeft||document.body.scrollLeft:document.documentElement.scrollLeft},u.getCurrentStyle=function(d){if(d.currentStyle)return d.currentStyle;if(document.defaultView&&document.defaultView.getComputedStyle){var h=document.defaultView.getComputedStyle(d,null);if(!h&&c.Browser.Firefox&&window.frameElement){for(var g=[],x=window.frameElement;!(h=document.defaultView.getComputedStyle(d,null));)g.push([x,x.style.display]),x.style.setProperty("display","block","important"),x="BODY"===x.tagName?x.ownerDocument.defaultView.frameElement:x.parentNode;h=function(E){if("object"!=typeof E||!I.isDefined(E))return E;var S={};for(var O in E)S[O]=E[O];return S}(h);for(var b=void 0,y=0;b=g[y];y++)b[0].style.display=b[1];document}return h}return window.getComputedStyle(d,null)},u.setFocus=function(d){function h(){try{d.focus(),c.Browser.IE&&document.activeElement!==d&&d.focus()}catch{}}c.Browser.MacOSMobilePlatform?h():setTimeout(function(){h()},100)},u.hasClassName=function(d,h){try{var g=h.split(" "),x=d.classList;if(x){for(var b=g.length-1;b>=0;b--)if(!x.contains(g[b]))return!1}else{var y=d.getAttribute&&d.getAttribute("class");if(!y)return!1;var E=y.split(" ");for(b=g.length-1;b>=0;b--)if(E.indexOf(g[b])<0)return!1}return!0}catch{return!1}},u.addClassName=function(d,h){if(!u.hasClassName(d,h)){var g=d.getAttribute&&d.getAttribute("class");d.setAttribute("class",""===g?h:g+" "+h)}},u.removeClassName=function(d,h){var g=" "+(d.getAttribute&&d.getAttribute("class"))+" ",x=g.replace(" "+h+" "," ");g.length!==x.length&&d.setAttribute("class",f.StringUtils.trim(x))},u.toggleClassName=function(d,h,g){void 0===g?u.hasClassName(d,h)?u.removeClassName(d,h):u.addClassName(d,h):g?u.addClassName(d,h):u.removeClassName(d,h)},u.pxToInt=function(d){return p(d,parseInt)},u.pxToFloat=function(d){return p(d,parseFloat)},u.getAbsolutePositionY=function(d){function h(g){return Math.round(g.getBoundingClientRect().top+u.getDocumentScrollTop())}return d?c.Browser.IE?(g=d,c.Browser.IE&&null===g.parentNode?0:g.getBoundingClientRect().top+u.getDocumentScrollTop()):c.Browser.Firefox&&c.Browser.Version>=3?h(d):c.Browser.Opera?function(g){var x=!0;g&&u.isHTMLTableRowElement(g)&&g.cells.length>0&&(g=g.cells[0]);for(var b=s(g,!1);null!=g;)b+=g.offsetTop,x||(b-=g.scrollTop),g=g.offsetParent,x=!1;return b+document.body.scrollTop}(d):c.Browser.NetscapeFamily&&(!c.Browser.Firefox||c.Browser.Version<3)?function(g){for(var x=s(g,!1),b=!0;null!=g;){if(x+=g.offsetTop,b||null==g.offsetParent||(x-=g.scrollTop),!b&&c.Browser.Firefox){var y=u.getCurrentStyle(g);"DIV"===g.tagName&&"visible"!==y.overflow&&(x+=u.pxToInt(y.borderTopWidth))}b=!1,g=g.offsetParent}return x}(d):c.Browser.WebKitFamily||c.Browser.Edge?h(d):function(g){for(var x=0,b=!0;null!=g;)x+=g.offsetTop,b||null==g.offsetParent||(x-=g.scrollTop),b=!1,g=g.offsetParent;return x}(d):0;var g},u.getAbsolutePositionX=function(d){function h(g){return Math.round(g.getBoundingClientRect().left+u.getDocumentScrollLeft())}return d?c.Browser.IE?(g=d,c.Browser.IE&&null===g.parentNode?0:g.getBoundingClientRect().left+u.getDocumentScrollLeft()):c.Browser.Firefox&&c.Browser.Version>=3?h(d):c.Browser.Opera&&c.Browser.Version<=12?function(g){for(var x=!0,b=s(g,!0);null!=g;)b+=g.offsetLeft,x||(b-=g.scrollLeft),g=g.offsetParent,x=!1;return b+document.body.scrollLeft}(d):c.Browser.NetscapeFamily&&(!c.Browser.Firefox||c.Browser.Version<3)?function(g){for(var x=s(g,!0),b=!0;null!=g;){if(x+=g.offsetLeft,b||null==g.offsetParent||(x-=g.scrollLeft),!b&&c.Browser.Firefox){var y=u.getCurrentStyle(g);"DIV"===g.tagName&&"visible"!==y.overflow&&(x+=u.pxToInt(y.borderLeftWidth))}b=!1,g=g.offsetParent}return x}(d):c.Browser.WebKitFamily||c.Browser.Edge?h(d):function(g){for(var x=0,b=!0;null!=g;)x+=g.offsetLeft,b||null==g.offsetParent||(x-=g.scrollLeft),b=!1,g=g.offsetParent;return x}(d):0;var g},u.isInteractiveControl=function(d){return["A","INPUT","SELECT","OPTION","TEXTAREA","BUTTON","IFRAME"].indexOf(d.tagName)>-1},u.getClearClientHeight=function(d){return d.offsetHeight-(u.getTopBottomPaddings(d)+u.getVerticalBordersWidth(d))},u.getTopBottomPaddings=function(d,h){var g=h||u.getCurrentStyle(d);return u.pxToInt(g.paddingTop)+u.pxToInt(g.paddingBottom)},u.getVerticalBordersWidth=function(d,h){I.isDefined(h)||(h=c.Browser.IE&&9!==c.Browser.MajorVersion&&window.getComputedStyle?window.getComputedStyle(d):u.getCurrentStyle(d));var g=0;return"none"!==h.borderTopStyle&&(g+=u.pxToFloat(h.borderTopWidth)),"none"!==h.borderBottomStyle&&(g+=u.pxToFloat(h.borderBottomWidth)),g},u.getNodes=function(d,h){for(var g=d.all||d.getElementsByTagName("*"),x=[],b=0;b<g.length;b++){var y=g[b];h(y)&&x.push(y)}return x},u.getChildNodes=function(d,h){for(var g=d.childNodes,x=[],b=0;b<g.length;b++){var y=g[b];h(y)&&x.push(y)}return x},u.getNodesByClassName=function(d,h){if(d.querySelectorAll){var g=d.querySelectorAll("."+h),x=[];return g.forEach(function(b){return x.push(b)}),x}return u.getNodes(d,function(b){return u.hasClassName(b,h)})},u.getChildNodesByClassName=function(d,h){return d.querySelectorAll?function(g,x){for(var b=[],y=0;y<g.length;y++){var E=g[y];x(E)&&b.push(E)}return b}(d.querySelectorAll("."+h),function(g){return g.parentNode===d}):u.getChildNodes(d,function(g){return!!u.isElementNode(g)&&I.isNonNullString(g.className)&&u.hasClassName(g,g.className)})},u.getVerticalScrollBarWidth=function(){if(void 0===u.verticalScrollBarWidth){var d=document.createElement("DIV");d.style.cssText="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 200px; height: 150px; overflow: hidden; box-sizing: content-box",document.body.appendChild(d);var h=document.createElement("P");d.appendChild(h),h.style.cssText="width: 100%; height: 200px;";var g=h.offsetWidth;d.style.overflow="scroll";var x=h.offsetWidth;g===x&&(x=d.clientWidth),u.verticalScrollBarWidth=g-x,document.body.removeChild(d)}return u.verticalScrollBarWidth},u.getHorizontalBordersWidth=function(d,h){I.isDefined(h)||(h=c.Browser.IE&&window.getComputedStyle?window.getComputedStyle(d):u.getCurrentStyle(d));var g=0;return"none"!==h.borderLeftStyle&&(g+=u.pxToFloat(h.borderLeftWidth)),"none"!==h.borderRightStyle&&(g+=u.pxToFloat(h.borderRightWidth)),g},u.getFontFamiliesFromCssString=function(d){return d.split(",").map(function(h){return f.StringUtils.trim(h.replace(/'|"/gi,""))})},u.getInnerText=function(d){if(c.Browser.Safari&&c.Browser.MajorVersion<=5){null===u.html2PlainTextFilter&&((u.html2PlainTextFilter=document.createElement("DIV")).style.width="0",u.html2PlainTextFilter.style.height="0",u.html2PlainTextFilter.style.overflow="visible",u.html2PlainTextFilter.style.display="none",document.body.appendChild(u.html2PlainTextFilter));var h=u.html2PlainTextFilter;h.innerHTML=d.innerHTML,h.style.display="";var g=h.innerText;return h.style.display="none",g}return c.Browser.NetscapeFamily||c.Browser.WebKitFamily||c.Browser.IE&&c.Browser.Version>=9||c.Browser.Edge?d.textContent:d.innerText},u.html2PlainTextFilter=null,u.verticalScrollBarWidth=void 0,u}();function p(u,d){var h=0;if(I.isDefined(u)&&""!==u)try{var g=u.indexOf("px");g>-1&&(h=d(u.substr(0,g)))}catch{}return h}function s(u,d){for(var h=0,g=!0;null!=u&&"BODY"!==u.tagName;){var x=a.getCurrentStyle(u);if("absolute"===x.position)break;g||"DIV"!==u.tagName||""!==x.position&&"static"!==x.position||(h-=d?u.scrollLeft:u.scrollTop),u=u.parentNode,g=!1}return h}l.DomUtils=a},function(he,l,o){"use strict";var c;Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaEventSource=l.TaskTitlePosition=l.Position=l.ViewType=void 0,(c=l.ViewType||(l.ViewType={}))[c.TenMinutes=0]="TenMinutes",c[c.Hours=1]="Hours",c[c.SixHours=2]="SixHours",c[c.Days=3]="Days",c[c.Weeks=4]="Weeks",c[c.Months=5]="Months",c[c.Quarter=6]="Quarter",c[c.Years=7]="Years",c[c.FiveYears=8]="FiveYears",function(c){c[c.Left=0]="Left",c[c.Top=1]="Top",c[c.Right=2]="Right",c[c.Bottom=3]="Bottom"}(l.Position||(l.Position={})),function(c){c[c.Inside=0]="Inside",c[c.Outside=1]="Outside",c[c.None=2]="None"}(l.TaskTitlePosition||(l.TaskTitlePosition={})),function(c){c[c.TaskArea=0]="TaskArea",c[c.TaskEdit_Frame=1]="TaskEdit_Frame",c[c.TaskEdit_Progress=2]="TaskEdit_Progress",c[c.TaskEdit_Start=3]="TaskEdit_Start",c[c.TaskEdit_End=4]="TaskEdit_End",c[c.TaskEdit_DependencyStart=5]="TaskEdit_DependencyStart",c[c.TaskEdit_DependencyFinish=6]="TaskEdit_DependencyFinish",c[c.Successor_Wrapper=7]="Successor_Wrapper",c[c.Successor_DependencyStart=8]="Successor_DependencyStart",c[c.Successor_DependencyFinish=9]="Successor_DependencyFinish"}(l.TaskAreaEventSource||(l.TaskAreaEventSource={}))},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Point=void 0;var c=function(){function I(C,f){this.x=C,this.y=f}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,f){return this.x+=C,this.y+=f,this},I.prototype.offsetByPoint=function(C){return this.x+=C.x,this.y+=C.y,this},I.prototype.multiply=function(C,f){return this.x*=C,this.y*=f,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,f){return new I(C.x+f.x,C.y+f.y)},I.minus=function(C,f){return new I(C.x-f.x,C.y-f.y)},I.xComparer=function(C,f){return C.x-f.x},I.yComparer=function(C,f){return C.y-f.y},I.equals=function(C,f){return C.x===f.x&&C.y===f.y},I}();l.Point=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CommandBase=void 0;var c=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=[],f=0;f<arguments.length;f++)C[f]=arguments[f];if(!this.state.enabled)return!1;var a=this.executeInternal.apply(this,C);return a&&this.control.barManager.updateItemsState([]),a},I.prototype.isEnabled=function(){return this.control.settings.editing.enabled},I.prototype.executeInternal=function(){for(var C=[],f=0;f<arguments.length;f++)C[f]=arguments[f];throw new Error("Not implemented")},I}();l.CommandBase=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.SimpleCommandState=void 0,l.SimpleCommandState=function(I,C){this.visible=!0,this.enabled=I,this.value=C}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DateTimeUtils=void 0;var c=o(55),I=o(56),C=o(1),f=o(19),a=o(57),p=function(){function s(){}return s.compareDates=function(u,d){return u&&d?d.getTime()-u.getTime():-1},s.areDatesEqual=function(u,d){return 0==this.compareDates(u,d)},s.getMaxDate=function(u,d){return u||d?u?d&&this.compareDates(u,d)>0?d:u:d:null},s.getMinDate=function(u,d){return u||d?u?d?this.compareDates(u,d)>0?u:d:u:d:null},s.getDaysBetween=function(u,d){var h=Math.abs(d.getTime()-u.getTime());return Math.ceil(h/this.msInDay)},s.getWeeksBetween=function(u,d){var h=this.getDaysBetween(u,d),g=Math.floor(h/7);return u.getDay()>d.getDay()&&g++,g},s.getMonthsDifference=function(u,d){var h=this.compareDates(u,d),g=h>=0?u:d,x=h>=0?d:u;return 12*(x.getFullYear()-g.getFullYear())+(x.getMonth()-g.getMonth())},s.getYearsDifference=function(u,d){return Math.abs(d.getFullYear()-u.getFullYear())},s.getDayNumber=function(u){return Math.ceil(u.getTime()/this.msInDay)},s.getDateByDayNumber=function(u){var d=new Date(u*this.msInDay);return d.setHours(0),d.setMinutes(0),d.setSeconds(0),d},s.addDays=function(u,d){return new Date(u.getTime()+d*this.msInDay)},s.checkDayOfMonth=function(u,d){return u==d.getDate()},s.checkDayOfWeek=function(u,d){return u==d.getDay()},s.checkMonth=function(u,d){return u==d.getMonth()},s.checkYear=function(u,d){return u==d.getFullYear()},s.checkDayOfWeekOccurrenceInMonth=function(u,d,h){var g=this.getSpecificDayOfWeekInMonthDates(d,u.getFullYear(),u.getMonth());return this.areDatesEqual(u,h==a.DayOfWeekMonthlyOccurrence.Last?g[g.length-1]:g[h])},s.getFirstDayOfWeekInMonth=function(u,d){return new Date(u,d,1).getDay()},s.getSpecificDayOfWeekInMonthDates=function(u,d,h){for(var g=this.getFirstDayOfWeekInMonth(d,h),x=u>=g?u-g:u+7-g,b=new Array,y=new Date(d,h,x+1);y.getMonth()==h;)b.push(y),y=this.addDays(y,7);return b},s.getSpecificDayOfWeekInMonthDate=function(u,d,h,g){var x=this.getSpecificDayOfWeekInMonthDates(u,d,h);return g==a.DayOfWeekMonthlyOccurrence.Last?x[x.length-1]:x[g]},s.checkValidDayInMonth=function(u,d,h){return!(h<1||h>31||new Date(u,d,h).getMonth()!=d)},s.getNextMonth=function(u,d){return void 0===d&&(d=1),(u+d)%12},s.convertToDate=function(u){if(u instanceof Date)return new Date(u);var d=Date.parse(u);return isNaN(d)?null:new Date(d)},s.convertTimeRangeToDateRange=function(u,d){var h=this.getDateByDayNumber(d),g=h.getFullYear(),x=h.getMonth(),b=h.getDate(),y=u.start,E=new Date(g,x,b,y.hour,y.min,y.sec,y.msec),S=u.end,O=new Date(g,x,b,S.hour,S.min,S.sec,S.msec);return new f.DateRange(E,O)},s.convertToTimeRanges=function(u){var d=this;return u instanceof Array?u.map(function(h){return d.convertToTimeRange(h)}):this.parseTimeRanges(u)},s.convertToTimeRange=function(u){return u?u instanceof I.TimeRange?u:(0,C.isDefined)(u.start)&&(0,C.isDefined)(u.end)?new I.TimeRange(this.convertToTime(u.start),this.convertToTime(u.end)):this.parseTimeRange(u):null},s.convertToTime=function(u){return u?u instanceof c.Time?u:u instanceof Date?this.getTimeGromJsDate(u):this.parseTime(u):null},s.parseTimeRanges=function(u){var d=this;return u?u.split(/;|,/).map(function(h){return d.parseTimeRange(h)}).filter(function(h){return!!h}):null},s.parseTimeRange=function(u){if(!u)return null;var d=u.split("-"),h=d[0],g=d[1];return(0,C.isDefined)(h)&&(0,C.isDefined)(g)?new I.TimeRange(this.parseTime(h),this.parseTime(g)):null},s.parseTime=function(u){if(!u)return null;var d=u.split(":"),h=parseInt(d[0])||0,g=parseInt(d[1])||0,x=parseInt(d[2])||0,b=parseInt(d[3])||0;return new c.Time(h,g,x,b)},s.getTimeGromJsDate=function(u){if(!u)return null;var d=u.getHours(),h=u.getMinutes(),g=u.getSeconds(),x=u.getMilliseconds();return new c.Time(d,h,g,x)},s.caclTimeDifference=function(u,d){return d.getTimeInMilleconds()-u.getTimeInMilleconds()},s.areTimesEqual=function(u,d){return 0==this.caclTimeDifference(u,d)},s.getMaxTime=function(u,d){return u||d?u?d&&this.caclTimeDifference(u,d)>0?d:u:d:null},s.getMinTime=function(u,d){return u||d?u?d?this.caclTimeDifference(u,d)>0?u:d:u:d:null},s.getLastTimeOfDay=function(){return new c.Time(23,59,59,999)},s.msInDay=864e5,s}();l.DateTimeUtils=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.EvtUtils=void 0;var c=o(10),I=o(1),C=o(3),f=o(167),a=function(){function p(){}return p.preventEvent=function(s){s.cancelable&&(s.preventDefault?s.preventDefault():s.returnValue=!1)},p.getEventSource=function(s){return I.isDefined(s)?p.getEventSourceCore(s):null},p.getEventSourceByPosition=function(s){if(!I.isDefined(s))return null;if(!document.elementFromPoint)return p.getEventSourceCore(s);var u=p.getEventX(s)-(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollLeft():0),d=p.getEventY(s)-(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollTop():0);return void 0===u||void 0===d?p.getEventSourceCore(s):document.elementFromPoint(u,d)},p.getEventSourceCore=function(s){return s.srcElement?s.srcElement:s.target},p.getMouseWheelEventName=function(){return c.Browser.Safari?"mousewheel":c.Browser.NetscapeFamily&&c.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},p.isLeftButtonPressed=function(s){return!!f.TouchUtils.isTouchEvent(s)||!!(s=c.Browser.IE&&I.isDefined(event)?event:s)&&(c.Browser.IE&&c.Browser.Version<11?!!c.Browser.MSTouchUI||s.button%2==1:c.Browser.WebKitFamily?"pointermove"===s.type||"pointerenter"===s.type||"pointerleave"===s.type?1===s.buttons:1===s.which:c.Browser.NetscapeFamily||c.Browser.Edge||c.Browser.IE&&c.Browser.Version>=11?p.isMoveEventName(s.type)?1===s.buttons:1===s.which:!c.Browser.Opera||0===s.button)},p.isMoveEventName=function(s){return s===f.TouchUtils.touchMouseMoveEventName||s===p.getMoveEventName()},p.getMoveEventName=function(){return window.PointerEvent?"pointermove":c.Browser.TouchUI?"touchmove":"mousemove"},p.preventEventAndBubble=function(s){p.preventEvent(s),s.stopPropagation&&s.stopPropagation(),s.cancelBubble=!0},p.clientEventRequiresDocScrollCorrection=function(){return c.Browser.AndroidDefaultBrowser||c.Browser.AndroidChromeBrowser||!(c.Browser.Safari&&c.Browser.Version<3||c.Browser.MacOSMobilePlatform&&c.Browser.Version<5.1)},p.getEventX=function(s){return f.TouchUtils.isTouchEvent(s)?f.TouchUtils.getEventX(s):s.clientX+(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollLeft():0)},p.getEventY=function(s){return f.TouchUtils.isTouchEvent(s)?f.TouchUtils.getEventY(s):s.clientY+(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollTop():0)},p.cancelBubble=function(s){s.cancelBubble=!0},p.getWheelDelta=function(s){var u;return u=c.Browser.NetscapeFamily&&c.Browser.MajorVersion<17?-s.detail:c.Browser.Safari?s.wheelDelta:-s.deltaY,c.Browser.Opera&&c.Browser.Version<9&&(u=-u),u},p}();l.EvtUtils=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Browser=void 0;var c=function(){function I(){}return I.IdentUserAgent=function(C,f){void 0===f&&(f=!1);var a=["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 s={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"},u="(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",d={Safari:"applewebkit(?:.*?(?:version/(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)(?:/|\\s*)?"+u,Mozilla:"mozilla(?:.*rv:"+u+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+u,Firefox:"firefox(?:/|\\s*)?"+u,Opera:"(?:opera|\\sopr)(?:/|\\s*)?"+u,Opera10:"opera.*\\s*version(?:/|\\s*)?"+u,IE:"msie\\s*"+u,Edge:"edge(?:/|\\s*)?"+u},h=null,g=-1,x=0;x<a.length;x++){var b=a[x],y=new RegExp(d[b],"i").exec(C);if(y&&y.index>=0){if("IE"===h&&g>=11&&"Safari"===b)continue;"Opera10"===(h=b)&&(h="Opera"),g=I.GetBrowserVersion(C,y,"trident(?:/|\\s*)?(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",I.getIECompatibleVersionString()),"Mozilla"===h&&g>=11&&(h="IE")}}h||(h="IE");var E=-1!==g;E||(g=p[h]);var S=null,O=Number.MAX_VALUE;for(var w in s)if(Object.prototype.hasOwnProperty.call(s,w)){var T="!"===w.substr(0,1),k=C.indexOf((T?w.substr(1):w).toLowerCase());k>=0&&(k<O||T)&&(O=T?0:k,S=s[w])}var R=C.toUpperCase().match("SM-[A-Z]"),P=R&&R.length>0;"WinPhone"===S&&g<9&&(g=Math.floor(I.getVersionFromTrident(C,"trident(?:/|\\s*)?"+u))),!f&&"IE"===h&&g>7&&document.documentMode<g&&(g=document.documentMode),"WinPhone"===S&&(g=Math.max(9,g)),S||(S="Win"),S!==s["cpu os"]||E||(g=4),I.fillUserAgentInfo(a,h,g,S,P)}catch{I.fillUserAgentInfo(a,"IE",p.IE,"Win")}}else I.fillUserAgentInfo(a,"IE",p.IE,"Win")},I.GetBrowserVersion=function(C,f,a,p){var s=I.getVersionFromMatches(f);if(p){var u=I.getVersionFromTrident(C,a);if("edge"===p||parseInt(p)===u)return u}return s},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,f,a,p,s){void 0===s&&(s=!1);for(var u=0;u<C.length;u++){var d=C[u];I[d]=d===f}I.Version=Math.floor(10*a)/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 h=I.IE&&I.MajorVersion>9&&I.WindowsPlatform&&I.UserAgent.toLowerCase().indexOf("touch")>=0;if(I.MSTouchUI=h||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,s&&(I.SamsungAndroidDevice=s),I.MSTouchUI){var g=I.UserAgent.toLowerCase().indexOf("arm;")>-1;I.VirtualKeyboardSupported=g||I.WindowsPhonePlatform}else I.VirtualKeyboardSupported=I.WebKitTouchUI;I.fillDocumentElementBrowserTypeClassNames(C)},I.indentPlatformMajorVersion=function(C){var f=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(C);f&&(I.PlaformMajorVersion=f[1])},I.getVersionFromMatches=function(C){var f=-1,a="";return C&&(C[1]&&(a+=C[1],C[2]&&(a+="."+C[2])),""!==a&&(f=parseFloat(a),isNaN(f)&&(f=-1))),f},I.getVersionFromTrident=function(C,f){var a=new RegExp(f,"i").exec(C);return I.getVersionFromMatches(a)+4},I.fillDocumentElementBrowserTypeClassNames=function(C){for(var f="",a=C.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),p=0;p<a.length;p++){var s=a[p];I[s]&&(f+="dx"+s+" ")}f+="dxBrowserVersion-"+I.MajorVersion,typeof document<"u"&&document&&document.documentElement&&(""!==document.documentElement.className&&(f=" "+f),document.documentElement.className+=f,I.Info=f)},I.getUserAgent=function(){return I.hasNavigator()&&navigator.userAgent?navigator.userAgent.toLowerCase():""},I.UserAgent=I.getUserAgent(),I._foo=I.IdentUserAgent(I.UserAgent),I}();l.Browser=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.BaseArguments=void 0,l.BaseArguments=function(I){this.cancel=!1,this.values={},this.key=I}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Size=void 0;var c=function(){function I(C,f){this.width=C,this.height=f}return I.empty=function(){return new I(0,0)},I.fromNumber=function(C){return new I(C,C)},I.initByCommonAction=function(C){var f=function(p){return p.width},a=function(p){return p.height};return new I(C(f,a),C(a,f))},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,f){return this.width=this.width+C,this.height=this.height+f,this},I.prototype.multiply=function(C,f){return this.width*=C,this.height*=f,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,f){return C.width===f.width&&C.height===f.height},I}();l.Size=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaStateEventNames=void 0;var c=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}();l.TaskAreaStateEventNames=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.HistoryItem=void 0;var c=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}();l.HistoryItem=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DateUtils=void 0;var c=o(4),I=function(){function C(){}var f;return C.getDaysInQuarter=function(a){var p=3*Math.floor(a.getMonth()/3);return[p,p+1,p+2].reduce(function(s,u){return s+C.getDaysInMonth(u,a.getFullYear())},0)},C.getDaysInMonth=function(a,p){return new Date(p,a+1,0).getDate()},C.getOffsetInMonths=function(a,p){return 12*(p.getFullYear()-a.getFullYear())+p.getMonth()-a.getMonth()},C.getOffsetInQuarters=function(a,p){return 4*(p.getFullYear()-a.getFullYear())+Math.floor(p.getMonth()/3)-Math.floor(a.getMonth()/3)},C.getNearestScaleTickDate=function(a,p,s,u){var d=new Date,h=p.start.getTime(),g=p.end.getTime();if(d.setTime(a.getTime()),a.getTime()<h)d.setTime(h);else if(a.getTime()>g)d.setTime(g);else if(this.needCorrectDate(a,h,s,u)){var x=this.getNearestLeftTickTime(a,h,s,u),b=this.getNextTickTime(x,s,u);Math.abs(a.getTime()-x)>Math.abs(a.getTime()-b)?d.setTime(b):d.setTime(x)}return d},C.needCorrectDate=function(a,p,s,u){return u==c.ViewType.Months?a.getTime()!==new Date(a.getFullYear(),a.getMonth(),1).getTime():(a.getTime()-p)%s!=0},C.getNearestLeftTickTime=function(a,p,s,u){return u==c.ViewType.Months?new Date(a.getFullYear(),a.getMonth(),1).getTime():p+Math.floor((a.getTime()-p)/s)*s},C.getNextTickTime=function(a,p,s){if(s==c.ViewType.Months){var u=new Date;return u.setTime(a),u.setMonth(u.getMonth()+1),u.getTime()}return a+p},C.adjustStartDateByViewType=function(a,p,s){switch(void 0===s&&(s=0),p){case c.ViewType.TenMinutes:return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours());case c.ViewType.SixHours:case c.ViewType.Hours:return new Date(a.getFullYear(),a.getMonth(),a.getDate());case c.ViewType.Days:case c.ViewType.Weeks:return new Date(a.getFullYear(),a.getMonth(),a.getDate()-a.getDay()+s);case c.ViewType.Months:case c.ViewType.Quarter:case c.ViewType.Years:return new Date(a.getFullYear(),0,1);default:return new Date}},C.adjustEndDateByViewType=function(a,p,s){switch(void 0===s&&(s=0),p){case c.ViewType.TenMinutes:return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours()+1);case c.ViewType.SixHours:case c.ViewType.Hours:return new Date(a.getFullYear(),a.getMonth(),a.getDate()+1);case c.ViewType.Days:case c.ViewType.Weeks:return new Date(a.getFullYear(),a.getMonth(),a.getDate()+7-a.getDay()+s);case c.ViewType.Months:case c.ViewType.Quarter:case c.ViewType.Years:return new Date(a.getFullYear()+1,0,1);default:return new Date}},C.roundStartDate=function(a,p){switch(p){case c.ViewType.TenMinutes:case c.ViewType.Hours:return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours()-1);case c.ViewType.SixHours:case c.ViewType.Days:return new Date(a.getFullYear(),a.getMonth(),a.getDate()-1);case c.ViewType.Weeks:return new Date(a.getFullYear(),a.getMonth(),a.getDate()-a.getDay());case c.ViewType.Months:return new Date(a.getFullYear(),a.getMonth()-1);case c.ViewType.Quarter:case c.ViewType.Years:return new Date(a.getFullYear()-1,0,1);default:return new Date}},C.getTickTimeSpan=function(a){switch(a){case c.ViewType.TenMinutes:return C.msPerHour/6;case c.ViewType.Hours:return C.msPerHour;case c.ViewType.SixHours:return 6*C.msPerHour;case c.ViewType.Days:return C.msPerDay;case c.ViewType.Weeks:return C.msPerWeek;case c.ViewType.Months:return C.msPerMonth;case c.ViewType.Quarter:return 3*C.msPerMonth;case c.ViewType.Years:return C.msPerYear}},C.getRangeTickCount=function(a,p,s){return s===c.ViewType.Months?this.getRangeTickCountInMonthsViewType(a,p):s===c.ViewType.Quarter?this.getRangeTickCountInQuarterViewType(a,p):C.getRangeMSPeriod(a,p)/C.getTickTimeSpan(s)},C.getRangeMSPeriod=function(a,p){return p.getTime()-C.getDSTDelta(a,p)-a.getTime()},C.getRangeTickCountInMonthsViewType=function(a,p){var s=new Date(a.getFullYear(),a.getMonth(),1),u=new Date(p.getFullYear(),p.getMonth(),1);return C.getOffsetInMonths(s,u)+(p.getTime()-u.getTime())/(C.getDaysInMonth(p.getMonth(),p.getFullYear())*C.msPerDay)-(a.getTime()-s.getTime())/(C.getDaysInMonth(a.getMonth(),a.getFullYear())*C.msPerDay)},C.getRangeTickCountInQuarterViewType=function(a,p){var s=new Date(a.getFullYear(),3*Math.floor(a.getMonth()/3),1),u=new Date(p.getFullYear(),3*Math.floor(p.getMonth()/3),1);return C.getOffsetInQuarters(s,u)+(p.getTime()-u.getTime())/(C.getDaysInQuarter(u)*C.msPerDay)-(a.getTime()-s.getTime())/(C.getDaysInQuarter(s)*C.msPerDay)},C.parse=function(a){return"function"==typeof a?new Date(a()):new Date(a)},C.getOrCreateUTCDate=function(a){var p=a.getTimezoneOffset();return p?new Date(a.valueOf()+6e4*p):a},C.getTimezoneOffsetDiff=function(a,p){return p.getTimezoneOffset()-a.getTimezoneOffset()},C.getDSTDelta=function(a,p){var s=C.getTimezoneOffsetDiff(a,p)*C.msPerMinute;return s>0?s:0},C.getDSTCorrectedTaskEnd=function(a,p){var s=a.getTime()+p,u=C.getDSTDelta(a,new Date(s));return new Date(s+u)},C.msPerMinute=6e4,C.msPerWeek=7*(C.msPerDay=24*(C.msPerHour=36e5)),C.msPerMonth=30*C.msPerDay,C.msPerYear=365*C.msPerDay,C.ViewTypeToScaleMap=((f={})[c.ViewType.TenMinutes]=c.ViewType.Hours,f[c.ViewType.Hours]=c.ViewType.Days,f[c.ViewType.SixHours]=c.ViewType.Days,f[c.ViewType.Days]=c.ViewType.Weeks,f[c.ViewType.Weeks]=c.ViewType.Months,f[c.ViewType.Months]=c.ViewType.Years,f[c.ViewType.Quarter]=c.ViewType.Years,f[c.ViewType.Years]=c.ViewType.FiveYears,f),C}();l.DateUtils=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RenderElementUtils=void 0;var c=function(){function I(){}return I.create=function(C,f,a,p){var s=document.createElement("DIV");for(var u in C.assignToElement(s),a.appendChild(s),p&&(p instanceof Array&&null!==f?p[f]=s:p[C.id]=s),C.attr)Object.prototype.hasOwnProperty.call(C.attr,u)&&s.setAttribute(u,C.attr[u]);for(var u in C.style)Object.prototype.hasOwnProperty.call(C.style,u)&&(s.style[u]=C.style[u]);return s},I.remove=function(C,f,a,p){var s;p instanceof Array&&null!==f?(s=p[f],delete p[f]):(s=p[C.id],delete p[C.id]),s&&s.parentNode==a&&a.removeChild(s)},I.recreate=function(C,f,a,p){C.filter(function(s){return-1===f.indexOf(s)}).forEach(function(s){a(s)}),f.filter(function(s){return-1===C.indexOf(s)}).forEach(function(s){p(s)})},I}();l.RenderElementUtils=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Color=void 0;var c=o(1),I=function(){function C(f){this._num=null,this._opacity=1,this._rgb=null,this.assign(f)}return Object.defineProperty(C.prototype,"opacity",{get:function(){return this._opacity},enumerable:!1,configurable:!0}),C.prototype.hasValue=function(){return(0,c.isDefined)(this._num)||!!this._rgb||0===this._opacity},C.prototype.getValue=function(){return!(0===this._opacity&&!this._rgb)&&((0,c.isDefined)(this._num)?this._num:this._rgb?this.getRBGColor():null)},C.prototype.assign=function(f){this.reset(),"string"==typeof f&&this.assignFromString(f),"number"==typeof f&&(this._num=f),f instanceof Array&&this.assignFromRgbArray(f),f instanceof C&&this.assignFromColor(f)},C.prototype.reset=function(){this._opacity=1,this._num=null,this._rgb=null},C.prototype.assignFromString=function(f){f&&("transparent"===f&&(this._opacity=0),0===f.indexOf("#")&&this.assignFromHexString(f),"rgb"===f.substr(0,3).toLowerCase()&&this.assignFromRgbString(f))},C.prototype.assignFromHexString=function(f){if(4===f.length&&(f="#"+f[1].repeat(2)+f[2].repeat(2)+f[3].repeat(2)),f.length>6){var a=parseInt(f.substr(1,2),16),p=parseInt(f.substr(3,2),16),s=parseInt(f.substr(5,2),16);this._rgb=[a,p,s]}},C.prototype.assignFromRgbString=function(f){var a="rgba"===f.substr(0,4).toLowerCase(),p=f.toLowerCase().match(a?C.rgbaRegexp:C.rgbRegexp);if(p){var s=parseInt(p[1]),u=parseInt(p[2]),d=parseInt(p[3]);this._rgb=[s,u,d],a&&(this._opacity=parseFloat(p[4]))}},C.prototype.assignFromRgbArray=function(f){f&&f.length>2&&(this._rgb=[f[0],f[1],f[2]],(0,c.isDefined)(f[3])&&(this._opacity=f[3]))},C.prototype.assignFromColor=function(f){this._opacity=f._opacity,this._num=f._num,this._rgb=f._rgb},C.prototype.getRBGColor=function(){return this._rgb?this._rgb:[0,0,0]},C.prototype.applyOpacityToBackground=function(f){if(1!==this._opacity){var a=(f instanceof C?f:new C(f)).getValue();if(a instanceof Array){var p=this.opacity,s=Math.round((1-p)*a[0]+p*this._rgb[0]),u=Math.round((1-p)*a[1]+p*this._rgb[1]),d=Math.round((1-p)*a[2]+p*this._rgb[2]);this._rgb=[s,u,d]}}},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}();l.Color=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.MathUtils=void 0;var c=o(82),I=function(){function C(){}return C.round=function(f,a){void 0===a&&(a=0);var p=C.powFactor[a];return Math.round(f*p)/p},C.numberCloseTo=function(f,a,p){return void 0===p&&(p=1e-5),Math.abs(f-a)<p},C.restrictValue=function(f,a,p){return p<a&&(p=a),f>p?p:f<a?a:f},C.getRandomInt=function(f,a){return Math.floor(Math.random()*(a-f+1))+f},C.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(f){var a=16*Math.random()|0;return("x"===f?a:3&a|8).toString(16)})},C.powFactor=c.ListUtils.initByCallback(20,function(f){return Math.pow(10,f)}),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}();l.MathUtils=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DateRange=void 0;var c=function(){function I(C,f){this.start=C,this.end=f}return I.prototype.equal=function(C){var f=!0;return(f=f&&this.start.getTime()===C.start.getTime())&&this.end.getTime()===C.end.getTime()},I}();l.DateRange=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DialogBase=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){var s=null!==a&&a.apply(this,arguments)||this;return s.isApiCall=!1,s._canRefresh=!0,s}return c.__extends(p,a),p.prototype.execute=function(s,u){return void 0===s&&(s=void 0),void 0===u&&(u=!1),this.isApiCall=u,a.prototype.execute.call(this,s)},p.prototype.executeInternal=function(s){return this.options=s,this.showDialog(s)},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(s){var u=this,d=this.createParameters(s),h=d.clone();return!!this.onBeforeDialogShow(d)&&(p.activeInstance=this,this.control.showDialog(this.getDialogName(),d,function(g){g&&(u._canRefresh=!1,u.applyParameters(g,h),u._canRefresh=!0)},function(){delete p.activeInstance,u.afterClosing()}),!0)},p.prototype.onBeforeDialogShow=function(s){return!0},p.prototype.applyParameters=function(s,u){return!1},p.prototype.afterClosing=function(){},p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p.activeInstance=null,p}(I.CommandBase);l.DialogBase=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourceCollection=void 0;var c=o(0),I=o(22),C=o(48),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.createItem=function(){return new C.Resource},p}(I.CollectionBase);l.ResourceCollection=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CollectionBase=void 0;var c=o(1),I=o(80),C=function(){function f(){this._items=new Array,this._isGanttCollection=!0}return f.prototype.add=function(a){if((0,c.isDefined)(a)){if(this.getItemById(a.internalId))throw"The collection item with id ='"+a.internalId+"' already exists.";this._addItem(a)}},f.prototype.addRange=function(a){for(var p=0;p<a.length;p++)this.add(a[p])},f.prototype.remove=function(a){var p=this._items.indexOf(a);p>-1&&p<this._items.length&&this._removeItems(p,1)},f.prototype.clear=function(){this._removeItems(0,this._items.length)},f.prototype.invalidate=function(){delete this._invertedItems},f.prototype._addItem=function(a){this._items.push(a),delete this._invertedItems},f.prototype._removeItems=function(a,p){this._items.splice(a,p),delete this._invertedItems},Object.defineProperty(f.prototype,"items",{get:function(){return this._items.slice()},set:function(a){a&&(this._items=a.slice())},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),f.prototype.getItem=function(a){return a>-1&&a<this._items.length?this._items[a]:null},Object.defineProperty(f.prototype,"invertedItems",{get:function(){var a;return null!==(a=this._invertedItems)&&void 0!==a||(this._invertedItems=this._createInvertedItems()),this._invertedItems},enumerable:!1,configurable:!0}),f.prototype._createInvertedItems=function(){for(var a={},p=0;p<this._items.length;p++){var s=this._items[p];a[s.internalId]=s}return a},f.prototype.getItemById=function(a){return this.invertedItems[a]},f.prototype.getItemByPublicId=function(a){return this._items.filter(function(p){return p.id===a||p.id.toString()===a})[0]},f.prototype.assign=function(a){(0,c.isDefined)(a)&&(this.items=a.items)},f.prototype.importFromObject=function(a){(0,c.isDefined)(a)&&(this.clear(),a._isGanttCollection?this.assign(a):a instanceof Array?this.importFromArray(a):this.createItemFromObjectAndAdd(a))},f.prototype.createItemFromObjectAndAdd=function(a){if((0,c.isDefined)(a)&&Object.keys(a).length>0){var p=this.createItem();p.assignFromObject(a),this.add(p)}},f.prototype.importFromArray=function(a){for(var p=0;p<a.length;p++)this.createItemFromObjectAndAdd(a[p])},f.prototype.importFromJSON=function(a){this.importFromObject(I.GanttJsonUtils.parseJson(a))},f}();l.CollectionBase=C},function(he,l,o){"use strict";var c;Object.defineProperty(l,"__esModule",{value:!0}),l.DependencyType=l.TaskType=void 0,(c=l.TaskType||(l.TaskType={}))[c.Regular=0]="Regular",c[c.Summary=1]="Summary",c[c.Milestone=2]="Milestone",function(c){c[c.FS=0]="FS",c[c.SS=1]="SS",c[c.FF=2]="FF",c[c.SF=3]="SF"}(l.DependencyType||(l.DependencyType={}))},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskCommandBase=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){var s=null!==a&&a.apply(this,arguments)||this;return s.isApiCall=!1,s}return c.__extends(p,a),p.prototype.getState=function(){var s=new C.SimpleCommandState(this.isEnabled());return s.visible=this.control.settings.editing.enabled&&!this.control.taskEditController.dependencyId,s},p.prototype.updateParent=function(s){this.validationController._parentAutoCalc&&s&&s.children.length>0&&this.control.validationController.updateParentsIfRequired(s.children[0].task.internalId)},p}(I.CommandBase);l.TaskCommandBase=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GridLayoutCalculator=void 0;var c=o(12),I=o(19),C=o(4),f=o(58),a=o(5),p=o(15),s=o(59),u=o(23),d=o(129),h=o(1),g=function(){function x(){this.tileToDependencyMap=[],this.tileToNoWorkingIntervalsMap=[],this.minLineLength=10,this.resourceMaxWidth=500,this.minTaskWidth=2,this._taskWrapperPoints=Array(),this._taskElementInfoList=Array(),this._scaleCalculator=new d.ScaleCalculator}return x.prototype.setSettings=function(b,y,E,S,O,w,T,k){void 0===T&&(T=0),void 0===k&&(k=0),this.visibleTaskAreaSize=b,this.tickSize=y,this._viewType=w,this.range=S,this.verticalTickCount=O.itemCount,this.viewModel=O,this.elementSizeValues=E,this.taskHeight=E.taskHeight,this.parentTaskHeight=E.parentTaskHeight,this.milestoneWidth=E.milestoneWidth,this.scaleHeight=E.scaleItemHeight,this.arrowSize=new c.Size(E.connectorArrowWidth,E.connectorArrowWidth),this.lineThickness=E.connectorLineThickness,this.minConnectorSpaceFromTask=(this.tickSize.height-this.taskHeight)/2,this.tickTimeSpan=p.DateUtils.getTickTimeSpan(w),this.scrollBarHeight=T,this.createTileToNonWorkingIntervalsMap(),this._scaleCalculator.setSettings(S,w,y,k),this.reset()},Object.defineProperty(x.prototype,"viewType",{get:function(){return this._viewType},set:function(b){this._viewType!==b&&(this._viewType=b,this._scaleCalculator.setViewType(b))},enumerable:!1,configurable:!0}),x.prototype.reset=function(){this._taskWrapperPoints=new Array,this._taskElementInfoList=Array()},x.prototype.resetTaskInfo=function(b){delete this._taskWrapperPoints[b],delete this._taskElementInfoList[b]},x.prototype.getTaskAreaBorderInfo=function(b,y){var E=y?this.getVerticalGridLineHeight():this.getTotalWidth();return this.getGridBorderInfo(b,y,E)},x.prototype.getTotalWidth=function(){return this._scaleCalculator.scaleWidth},x.prototype.getScaleBorderInfo=function(b,y){var E=new f.GridElementInfo;return E.setPosition(new a.Point(this._scaleCalculator.getScaleBorderPosition(b,y),void 0)),E.setSize(new c.Size(0,this.scaleHeight)),E.className="dx-gantt-vb",E},x.prototype.getGridBorderInfo=function(b,y,E){var S=new f.GridElementInfo;return S.setPosition(this.getGridBorderPosition(b,y)),E&&S.setSize(this.getGridBorderSize(y,E)),S.className=y?"dx-gantt-vb":"dx-gantt-hb",S},x.prototype.getGridBorderPosition=function(b,y){var E=new a.Point(void 0,void 0),O=y?this._scaleCalculator.getScaleBorderPosition(b,this.viewType):(b+1)*this.tickSize.height;return y?E.x=O:E.y=O,E},x.prototype.getGridBorderSize=function(b,y){var E=new c.Size(0,0);return b?E.height=y:E.width=y,E},x.prototype.getScaleElementInfo=function(b,y){var E=new f.GridElementInfo,S=this.getScaleItemInfo(b,y);if(S){E.setPosition(S.position),E.setSize(S.size),E.className=this.getScaleItemClassName(y,E,this.getRenderedNoWorkingIntervals(E.position.x));var O=this._scaleCalculator.getScaleItems(y);(0===b||b===O.length-1)&&(E.style.overflowX="hidden",E.style.textOverflow="ellipsis"),E.additionalInfo.range=new I.DateRange(S.start,S.end)}return E},x.prototype.getScaleItemStart=function(b,y){return this._scaleCalculator.getScaleItemAdjustedStart(b,y)},x.prototype.getScaleItemClassName=function(b,y,E){var S="dx-gantt-si";return b.valueOf()==this.viewType.valueOf()&&this.isScaleItemInsideNoWorkingInterval(y,E)&&(S+=" dx-gantt-holiday-scaleItem"),S},x.prototype.getScaleItemInfo=function(b,y){return this._scaleCalculator.getScaleItem(b,y)},x.prototype.getScaleRangesInArea=function(b,y){var E=p.DateUtils.ViewTypeToScaleMap[this.viewType],S=this._scaleCalculator,O=Math.max(S.getScaleIndexByPos(b,E),0),w=S.getScaleIndexByPos(y,E);-1===w&&(w=S.topScaleItems.length-1);var T=Math.max(S.getScaleIndexByPos(b),0),k=S.getScaleIndexByPos(y);return-1===k&&(k=S.bottomScaleItems.length-1),[[O,w],[T,k]]},x.prototype.isScaleItemInsideNoWorkingInterval=function(b,y){for(var E=b.position.x,S=b.position.x+b.size.width,O=0;O<y.length;O++)if(E>=y[O].position.x&&S<=y[O].position.x+y[O].size.width)return!0;return!1},x.prototype.getScaleItemColSpan=function(b){return this._scaleCalculator.getScaleItemColSpan(b)},x.prototype.getTaskWrapperElementInfo=function(b){var y=new f.GridElementInfo;return y.className=this.getTaskWrapperClassName(b),y.setPosition(this.getTaskWrapperPoint(b)),y.setAttribute("task-index",b),y},x.prototype.getTaskWrapperClassName=function(b){var y="dx-gantt-taskWrapper",E=this.getViewItem(b);return E.task.isMilestone()&&!E.isCustom&&(y="dx-gantt-milestoneWrapper"),E.selected&&(y+=" dx-gantt-selectedTask"),y},x.prototype.getTaskWrapperPoint=function(b){if(!(0,h.isDefined)(this._taskWrapperPoints[b])){var y=this.getViewItem(b),E=this.getTaskHeight(b),S=b*this.tickSize.height+(this.tickSize.height-E)/2,O=new a.Point(this.getPosByDate(y.task.start),S);y.task.isMilestone()&&!y.isCustom&&(O.x-=E/2),this._taskWrapperPoints[b]=O}return this._taskWrapperPoints[b].clone()},x.prototype.getTaskElementInfo=function(b,y){if(void 0===y&&(y=!1),!(0,h.isDefined)(this._taskElementInfoList[b])){var E=new f.GridElementInfo,S=this.getTask(b),O=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(b);if(!S.isMilestone()){var w=this.getTaskWidth(b);E.size.width=this.getCorrectedTaskWidthByRange(b,w),E.size.width<w&&(E.additionalInfo.taskCut=!0),y&&(E.size.height=this.getTaskHeight(b))}E.className=this.getTaskClassName(b,E.size.width),S.color&&(E.style.backgroundColor=S.color,O&&(E.style.borderLeftColor=S.color,E.style.borderRightColor=S.color,E.style.borderTopColor=S.color)),this._taskElementInfoList[b]=E}return this._taskElementInfoList[b]},x.prototype.getTaskClassName=function(b,y){var E=x.taskClassName,S=this.getViewItem(b),O=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(b);return S.task.isMilestone()&&!S.isCustom?E+=" "+x.milestoneClassName:(y<=this.elementSizeValues.smallTaskWidth&&(E+=" "+x.smallTaskClassName),O&&(E+=this.getAutoCalcParentTaskClassName(S.task))),E},x.prototype.getAutoCalcParentTaskClassName=function(b){var y=" "+x.parentTaskClassName;return 0==b.progress&&(y+=" dx-gantt-noPrg"),b.progress>=100&&(y+=" dx-gantt-cmpl"),y},x.prototype.getTaskPoint=function(b){var y=this.getTaskWrapperPoint(b);return this.getTask(b).isMilestone()||(y.y+=this.elementSizeValues.taskWrapperTopPadding),y},x.prototype.getTaskSize=function(b){return new c.Size(this.getTaskWidth(b),this.getTaskHeight(b))},x.prototype.getTaskWidth=function(b){var y=this.getViewItem(b);return y.isCustom&&y.size.width?y.size.width:y.task.isMilestone()&&!y.isCustom?this.getTaskHeight(b):Math.max(this.getWidthByDateRange(y.task.start,y.task.end),this.minTaskWidth)},x.prototype.getTaskHeight=function(b){var y=this.getViewItem(b);return y.task.isMilestone()&&!y.isCustom?this.milestoneWidth:this.viewModel.isTaskToCalculateByChildren(y.task.internalId)?this.parentTaskHeight:y.isCustom&&y.size.height?y.size.height:this.taskHeight},x.prototype.getTask=function(b){return this.getViewItem(b)?.task},x.prototype.getViewItem=function(b){return this.viewModel.items[b]},x.prototype.getTaskProgressElementInfo=function(b){var y=new f.GridElementInfo;return y.className=x.taskProgressClassName,y.setSize(this.getTaskProgressSize(b)),y},x.prototype.getTaskProgressSize=function(b){var y=this.getTaskProgressWidth(b);return this.isTaskCutByRange(b)&&(y=this.getCorrectedTaskWidthByRange(b,y)),new c.Size(y,0)},x.prototype.getTaskProgressWidth=function(b){return this.getTaskWidth(b)*this.getTask(b).normalizedProgress/100},x.prototype.getTaskTextElementInfo=function(b,y){var E=new f.GridElementInfo;if(E.className=this.getTaskTextElementClassName(y),!y){var S=this.getTaskPoint(b).x;if(S<this.elementSizeValues.outsideTaskTextDefaultWidth){var O=Math.max(S,0);E.size.width=O,O>0?E.margins.left=-O:E.additionalInfo.hidden=!0}}return E},x.prototype.getTaskTextElementClassName=function(b){return x.taskTitleClassName.concat(" ",b?x.titleInClassName:x.titleOutClassName)},x.prototype.getTaskResourcesWrapperElementInfo=function(b){var y=new f.GridElementInfo,E=this.getTaskSize(b).width;return y.className="dx-gantt-taskResWrapper",y.setPosition(this.getTaskWrapperPoint(b)),y.position.x=y.position.x+E,y},x.prototype.getTaskResourceElementInfo=function(){var b=new f.GridElementInfo;return b.className=x.taskResourceClassName,b},x.prototype.getSelectionElementInfo=function(b){return this.getRowElementInfo(b,"dx-gantt-sel")},x.prototype.getSelectionPosition=function(b){var y=new a.Point(void 0,void 0);return y.y=b*this.tickSize.height,y},x.prototype.getSelectionSize=function(){return new c.Size(this.getTotalWidth(),this.tickSize.height)},x.prototype.getHighlightRowInfo=function(b){return this.getRowElementInfo(b,"dx-gantt-altRow")},x.prototype.getRowElementInfo=function(b,y){var E=new f.GridElementInfo;return E.className=y,E.setPosition(this.getSelectionPosition(b)),E.setSize(this.getSelectionSize()),E},x.prototype.getNoWorkingIntervalInfo=function(b){var y=new f.GridElementInfo;return y.className="dx-gantt-nwi",y.setPosition(this.getNoWorkingIntervalPosition(b.start)),y.setSize(this.getNoWorkingIntervalSize(b)),y},x.prototype.getNoWorkingIntervalPosition=function(b){var y=new a.Point(void 0,void 0);return y.x=this.getPosByDate(b),y},x.prototype.getNoWorkingIntervalSize=function(b){return new c.Size(this.getWidthByDateRange(b.start,b.end),this.getVerticalGridLineHeight())},x.prototype.getVerticalGridLineHeight=function(){return Math.max(this.visibleTaskAreaSize.height-this.scrollBarHeight,this.tickSize.height*this.verticalTickCount)},x.prototype.getConnectorInfo=function(b,y,E,S){for(var O=new Array,w=this.getConnectorPoints(y,E,S),T=0;T<w.length-1;T++)O.push(this.getConnectorLineInfo(b,w[T],w[T+1],0==T||T==w.length-2));return O.push(this.getArrowInfo(b,w,O,y,E)),this.checkAndCorrectConnectorLinesByRange(O),O.filter(function(k){return!!k})},x.prototype.getConnectorLineInfo=function(b,y,E,S){var O=new f.GridElementInfo,w=y.x==E.x;return O.className=this.getConnectorClassName(w),O.setPosition(this.getConnectorPosition(y,E)),O.setSize(this.getConnectorSize(y,E,w,S)),O.setAttribute("dependency-id",b),O},x.prototype.getConnectorClassName=function(b){return b?x.CLASSNAMES.CONNECTOR_VERTICAL:x.CLASSNAMES.CONNECTOR_HORIZONTAL},x.prototype.getConnectorPosition=function(b,y){return new a.Point(Math.min(b.x,y.x),Math.min(b.y,y.y))},x.prototype.getConnectorSize=function(b,y,E,S){var O=new c.Size(0,0),w=S?0:1;return E?O.height=Math.abs(y.y-b.y)+w:O.width=Math.abs(y.x-b.x)+w,O},x.prototype.getArrowInfo=function(b,y,E,S,O){var w=new f.GridElementInfo,T=this.findArrowLineInfo(E,S,O),k=this.getArrowPosition(y,S,O);return w.className=this.getArrowClassName(k),w.setPosition(this.getArrowPoint(T,k)),w.setAttribute("dependency-id",b),w},x.prototype.findArrowLineInfo=function(b,y,E){return b[y<E?b.length-1:0]},x.prototype.getArrowPosition=function(b,y,E){var S=b[y<E?b.length-2:1],O=b[y<E?b.length-1:0];return S.x==O.x?S.y>O.y?C.Position.Top:C.Position.Bottom:S.x>O.x?C.Position.Left:C.Position.Right},x.prototype.getArrowClassName=function(b){var y=x.arrowClassName;switch(b){case C.Position.Left:y=y.concat(" ",x.leftArrowClassName);break;case C.Position.Top:y=y.concat(" ",x.topArrowClassName);break;case C.Position.Right:y=y.concat(" ",x.rightArrowClassName);break;case C.Position.Bottom:y=y.concat(" ",x.bottomArrowClassName)}return y},x.prototype.getArrowPositionByClassName=function(b){return b.indexOf(x.leftArrowClassName)>-1?C.Position.Left:b.indexOf(x.topArrowClassName)>-1?C.Position.Top:b.indexOf(x.rightArrowClassName)>-1?C.Position.Right:b.indexOf(x.bottomArrowClassName)>-1?C.Position.Bottom:void 0},x.prototype.getArrowPoint=function(b,y){return new a.Point(this.getArrowX(b,y),this.getArrowY(b,y))},x.prototype.getArrowX=function(b,y){switch(y){case C.Position.Left:return b.position.x-this.arrowSize.width/2;case C.Position.Right:return b.position.x+b.size.width-this.arrowSize.width/2;case C.Position.Top:case C.Position.Bottom:return b.position.x-(this.arrowSize.width-this.lineThickness)/2}},x.prototype.getArrowY=function(b,y){switch(y){case C.Position.Top:return b.position.y-this.arrowSize.height/2;case C.Position.Bottom:return b.position.y+b.size.height-this.arrowSize.height/2;case C.Position.Left:case C.Position.Right:return b.position.y-(this.arrowSize.height-this.lineThickness)/2}},x.prototype.getPosByDate=function(b){return this.getWidthByDateRange(this.range.start,b)},x.prototype.getWidthByDateRange=function(b,y){return p.DateUtils.getRangeTickCount(b,y,this.viewType)*this.tickSize.width},x.prototype.getDateByPos=function(b){if(this.viewType===C.ViewType.Months||this.viewType===C.ViewType.Quarter)return this.getDateByPosInMonthBasedViewTypes(b);var y=b/this.tickSize.width,E=new Date(this.range.start);return p.DateUtils.getDSTCorrectedTaskEnd(E,y*this.tickTimeSpan)},x.prototype.getDateByPosInMonthBasedViewTypes=function(b){return this._scaleCalculator.getDateInScale(b)},x.prototype.getConnectorPoints=function(b,y,E){switch(E){case u.DependencyType.FS:return this.getFinishToStartConnectorPoints(b,y);case u.DependencyType.SF:return this.getStartToFinishConnectorPoints(b,y);case u.DependencyType.SS:return this.getStartToStartConnectorPoints(b,y);case u.DependencyType.FF:return this.getFinishToFinishConnectorPoints(b,y);default:return new Array}},x.prototype.getFinishToStartConnectorPoints=function(b,y){return b<y?this.getTask(b).end<=this.getTask(y).start?this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide(b,y,!1):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(b,y,!1):this.getTask(b).end<=this.getTask(y).start?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide(y,b,!1):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(y,b,!0)},x.prototype.getFinishToFinishConnectorPoints=function(b,y){return b<y?this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide(b,y):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide(y,b)},x.prototype.getStartToStartConnectorPoints=function(b,y){return b<y?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide(b,y):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide(y,b)},x.prototype.getStartToFinishConnectorPoints=function(b,y){return b<y?this.getTask(b).start>=this.getTask(y).end?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide(b,y,!0):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(b,y,!1):this.getTask(b).start>=this.getTask(y).end?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide(y,b,!0):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(y,b,!0)},x.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide=function(b,y,E){var S=new Array,O=this.getTaskPoint(b),w=this.getTaskPoint(y),T=this.getTaskRightCenter(O,b),k=this.getTask(y).isMilestone(),R=this.getTaskTopCenter(w,y),P=this.getHorizontalIndentFromTaskEdge(y,E);return S.push(new a.Point(Math.floor(T.x),Math.floor(T.y))),S.push(new a.Point(Math.floor(k?R.x:w.x+P),Math.floor(S[0].y))),S.push(new a.Point(Math.floor(S[1].x),Math.floor(R.y))),S},x.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide=function(b,y){var E=new Array,S=this.getTaskPoint(b),O=this.getTaskPoint(y),w=this.getTaskRightCenter(S,b),T=this.getTaskRightCenter(O,y);return E.push(new a.Point(Math.floor(w.x),Math.floor(w.y))),E.push(new a.Point(Math.floor(Math.max(w.x,T.x)+this.minLineLength),Math.floor(E[0].y))),E.push(new a.Point(Math.floor(E[1].x),Math.floor(T.y))),E.push(new a.Point(Math.floor(T.x),Math.floor(T.y))),E},x.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide=function(b,y,E){var S=new Array,O=this.getTaskPoint(b),w=this.getTaskPoint(y),T=this.getTaskRightCenter(O,b),k=this.getTaskBottomCenter(O,b),R=this.getTaskLeftCenter(w,y),P=this.getTaskTopCenter(w,y),B=this.getViewItem(E?b:y),W=B.isCustom?(this.tickSize.height-B.size.height)/2:this.minConnectorSpaceFromTask;return S.push(new a.Point(Math.floor(T.x),Math.floor(T.y))),S.push(new a.Point(Math.floor(S[0].x+this.minLineLength),Math.floor(S[0].y))),S.push(new a.Point(Math.floor(S[1].x),Math.floor(E?k.y+W:P.y-W))),S.push(new a.Point(Math.floor(R.x-this.minLineLength),Math.floor(S[2].y))),S.push(new a.Point(Math.floor(S[3].x),Math.floor(R.y))),S.push(new a.Point(Math.floor(R.x),Math.floor(R.y))),S},x.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide=function(b,y,E){var S=new Array,O=this.getTaskPoint(b),w=this.getTaskPoint(y),T=this.getTaskBottomCenter(O,b),k=this.getTask(b).isMilestone(),R=this.getTaskRightCenter(w,y),P=this.getHorizontalIndentFromTaskEdge(b,E);return S.push(new a.Point(Math.floor(k?T.x:O.x+P),Math.floor(T.y))),S.push(new a.Point(Math.floor(S[0].x),Math.floor(R.y))),S.push(new a.Point(Math.floor(R.x),Math.floor(R.y))),S},x.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide=function(b,y,E){var S=new Array,O=this.getTaskPoint(b),w=this.getTaskPoint(y),T=this.getTaskBottomCenter(O,b),k=this.getTask(b).isMilestone(),R=this.getTaskLeftCenter(w,y),P=this.getHorizontalIndentFromTaskEdge(b,E);return S.push(new a.Point(Math.floor(k?T.x:O.x+P),Math.floor(T.y))),S.push(new a.Point(Math.floor(S[0].x),Math.floor(R.y))),S.push(new a.Point(Math.floor(R.x),Math.floor(R.y))),S},x.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide=function(b,y,E){var S=new Array,O=this.getTaskPoint(b),w=this.getTaskPoint(y),T=this.getTaskLeftCenter(O,b),k=this.getTaskTopCenter(w,y),R=this.getTask(y).isMilestone(),P=this.getHorizontalIndentFromTaskEdge(y,E);return S.push(new a.Point(Math.floor(T.x),Math.floor(T.y))),S.push(new a.Point(Math.floor(R?k.x:w.x+P),Math.floor(S[0].y))),S.push(new a.Point(Math.floor(S[1].x),Math.floor(k.y))),S},x.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide=function(b,y,E){var S=new Array,O=this.getTaskPoint(b),w=this.getTaskPoint(y),T=this.getTaskLeftCenter(O,b),k=this.getTaskBottomCenter(O,b),R=this.getTaskRightCenter(w,y),P=this.getTaskTopCenter(w,y),B=this.getViewItem(E?b:y),W=B.isCustom?(this.tickSize.height-B.size.height)/2:this.minConnectorSpaceFromTask;return S.push(new a.Point(Math.floor(T.x),T.y)),S.push(new a.Point(Math.floor(S[0].x-this.minLineLength),S[0].y)),S.push(new a.Point(Math.floor(S[1].x),Math.floor(E?k.y+W:P.y-W))),S.push(new a.Point(Math.floor(R.x+this.minLineLength),Math.floor(S[2].y))),S.push(new a.Point(Math.floor(S[3].x),Math.floor(R.y))),S.push(new a.Point(Math.floor(R.x),Math.floor(R.y))),S},x.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide=function(b,y){var E=new Array,S=this.getTaskPoint(b),O=this.getTaskPoint(y),w=this.getTaskLeftCenter(S,b),T=this.getTaskLeftCenter(O,y);return E.push(new a.Point(Math.floor(w.x),Math.floor(w.y))),E.push(new a.Point(Math.floor(Math.min(w.x,T.x)-this.minLineLength),Math.floor(E[0].y))),E.push(new a.Point(Math.floor(E[1].x),Math.floor(T.y))),E.push(new a.Point(Math.floor(T.x),Math.floor(T.y))),E},x.prototype.getTaskSidePoints=function(b){var y=this.getTaskPoint(b);return[this.getTaskLeftCenter(y,b),this.getTaskTopCenter(y,b),this.getTaskRightCenter(y,b),this.getTaskBottomCenter(y,b)]},x.prototype.getTaskLeftCenter=function(b,y){return new a.Point(b.x-this.getTaskEdgeCorrection(y),b.y+this.getTaskHeight(y)/2)},x.prototype.getTaskRightCenter=function(b,y){return new a.Point(b.x+this.getTaskWidth(y)+this.getTaskEdgeCorrection(y),b.y+this.getTaskHeight(y)/2)},x.prototype.getTaskTopCenter=function(b,y){return new a.Point(b.x+this.getTaskWidth(y)/2,b.y-this.getTaskEdgeCorrection(y))},x.prototype.getTaskBottomCenter=function(b,y){return new a.Point(b.x+this.getTaskWidth(y)/2,b.y+this.getTaskHeight(y)+this.getTaskEdgeCorrection(y))},x.prototype.getTaskEdgeCorrection=function(b){var y=this.getViewItem(b);return y.task.isMilestone()&&!y.isCustom?this.getTaskHeight(b)*(Math.sqrt(2)-1)/2:0},x.prototype.getHorizontalIndentFromTaskEdge=function(b,y){void 0===y&&(y=!1);var E=this.getTaskWidth(b),S=this.minLineLength<E/3?this.minLineLength:.2*E;return y?E-S:S},x.prototype.getRenderedRowColumnIndices=function(b,y){for(var E=y?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width,S=y?this.getFirstVisibleGridCellIndex(b,this.tickSize.height):this.getFirstScaleVisibleIndex(b),O=y?this.getLastVisibleGridCellIndex(b,this.tickSize.height,E,this.verticalTickCount):this.getLastScaleVisibleIndex(b),w=new Array,T=S;T<=O;T++)w.push(T);return w},x.prototype.getRenderedScaleItemIndices=function(b,y){for(var E=b===this.viewType,S=this._scaleCalculator,O=y[0],w=y[y.length-1],T=E?O:S.getTopScaleIndexByBottomIndex(O),k=E?w:S.getTopScaleIndexByBottomIndex(w),R=new Array,P=T;P<=k;P++)R.push(P);return R},x.prototype.getFirstScaleVisibleIndex=function(b){return this._scaleCalculator.getFirstScaleIndexForRender(b)},x.prototype.getLastScaleVisibleIndex=function(b){return this._scaleCalculator.getLastScaleIndexForRender(b+this.visibleTaskAreaSize.width)},x.prototype.getFirstVisibleGridCellIndex=function(b,y){var E=Math.floor(b/y);return Math.max(E-10,0)},x.prototype.getLastVisibleGridCellIndex=function(b,y,E,S){var O=Math.floor((b+E)/y);return Math.min(O+10,S-1)},x.prototype.createTileToConnectorLinesMap=function(){this.tileToDependencyMap=[];for(var b=0;b<this.viewModel.items.length;b++)for(var y=0;y<this.viewModel.items[b].dependencies.length;y++)this.createConnecotInfo(this.viewModel.items[b].dependencies[y],this.viewModel.items[b].visibleIndex)},x.prototype.updateTileToConnectorLinesMap=function(b){this.tileToDependencyMap.forEach(function(O,w,T){T[w]=O.filter(function(k){return k.attr["dependency-id"]!=b})});var y=[],E=this.viewModel.items.filter(function(O){return O.dependencies.filter(function(w){return w.id==b}).length>0})[0];if(E){var S=E.dependencies.filter(function(O){return O.id===b})[0];y=this.createConnecotInfo(S,E.visibleIndex)}return y},x.prototype.createConnecotInfo=function(b,y){var E=this,T=this.getConnectorInfo(b.id,b.predecessor.visibleIndex,y,b.type);return T.forEach(function(k){E.addElementInfoToTileMap(k,E.tileToDependencyMap,!0)}),T},x.prototype.createTileToNonWorkingIntervalsMap=function(){this.tileToNoWorkingIntervalsMap=[];for(var b=0;b<this.viewModel.noWorkingIntervals.length;b++){var y=this.getAdjustedNoWorkingInterval(this.viewModel.noWorkingIntervals[b]);if(y){var E=this.getNoWorkingIntervalInfo(y);this.addElementInfoToTileMap(E,this.tileToNoWorkingIntervalsMap,!1)}}},x.prototype.getAdjustedNoWorkingInterval=function(b){return b.end.getTime()-b.start.getTime()<this.tickTimeSpan-1?null:new I.DateRange(p.DateUtils.getNearestScaleTickDate(b.start,this.range,this.tickTimeSpan,this.viewType),p.DateUtils.getNearestScaleTickDate(b.end,this.range,this.tickTimeSpan,this.viewType))},x.prototype.addElementInfoToTileMap=function(b,y,E){var S=E?b.position.y:b.position.x,O=E?b.size.height:b.size.width,w=2*(E?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width);if(w>0)for(var T=Math.floor(S/w),k=Math.floor((S+O)/w),R=T;R<=k;R++)y[R]||(y[R]=new Array),y[R].push(b)},x.prototype.getRenderedConnectorLines=function(b){return this.getElementsInRenderedTiles(this.tileToDependencyMap,!0,b)},x.prototype.getRenderedNoWorkingIntervals=function(b){return this.getElementsInRenderedTiles(this.tileToNoWorkingIntervalsMap,!1,b)},x.prototype.getRenderedStripLines=function(b){var y=new Array,E=b.stripLines.map(function(P){return P.clone()});b.showCurrentTime&&E.push(new s.StripLine(new Date,null,b.currentTimeTitle,b.currentTimeCssClass,!0));for(var S=0,O=void 0;O=E[S];S++){var w=p.DateUtils.parse(O.start),T=O.end?p.DateUtils.parse(O.end):null;if(w>=this.range.start&&w<=this.range.end||T&&T>=this.range.start&&T<=this.range.end){var k=w>this.range.start?w:this.range.start,R=new f.GridElementInfo;R.size.height=this.getVerticalGridLineHeight(),R.position.x=this.getPosByDate(k),R.size.width=T?this.getWidthByDateRange(k,T<this.range.end?T:this.range.end):0,R.className=O.isCurrent?"dx-gantt-tc":T?"dx-gantt-ti":"dx-gantt-tm",R.className+=O.cssClass?" "+O.cssClass:"",R.attr.title=O.title,y.push(R)}}return y},x.prototype.getElementsInRenderedTiles=function(b,y,E){var S=new Array,O=y?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width;if(O>0)for(var w=Math.floor(E/(2*O)),T=Math.floor((E+O)/(2*O)),k=w;k<=T;k++)b[k]&&b[k].forEach(function(R){-1===S.indexOf(R)&&S.push(R)});return S},x.prototype.isTaskInRenderedRange=function(b){var y=this.getViewItem(b),E=this.getTaskPoint(b);return y.task.isMilestone()?E.x+this.getTaskWidth(b)<this.getTotalWidth():E.x<this.getTotalWidth()},x.prototype.isTaskCutByRange=function(b){return!!this.getTaskElementInfo(b).additionalInfo.taskCut},x.prototype.checkAndCorrectElementDisplayByRange=function(b){b.parentElement.offsetLeft+b.offsetLeft+b.offsetWidth>this.getTotalWidth()&&(b.style.display="none")},x.prototype.checkAndCorrectArrowElementDisplayByRange=function(b){b.offsetLeft+b.offsetWidth>this.getTotalWidth()&&(b.style.display="none")},x.prototype.checkAndCorrectConnectorLinesByRange=function(b){if(b?.length)for(var y=this.getTotalWidth(),E=0;E<b.length;E++){var S=b[E],O=!S.size.width;S.position.x>y?delete b[E]:!O&&S.position.x+S.size.width>y&&(S.size.width=y-S.position.x)}},x.prototype.getCorrectedTaskWidthByRange=function(b,y){var E=this.getTotalWidth()-this.getTaskPoint(b).x;return Math.min(E,y)},x.taskClassName=(x.dxGanttPrefix="dx-gantt-")+"task",x.milestoneClassName=x.dxGanttPrefix+"milestone",x.smallTaskClassName=x.dxGanttPrefix+"smallTask",x.parentTaskClassName=x.dxGanttPrefix+"parent",x.taskProgressClassName=x.dxGanttPrefix+"tPrg",x.taskTitleClassName=x.dxGanttPrefix+"taskTitle",x.titleInClassName=x.dxGanttPrefix+"titleIn",x.titleOutClassName=x.dxGanttPrefix+"titleOut",x.taskResourceClassName=x.dxGanttPrefix+"taskRes",x.arrowClassName=x.dxGanttPrefix+"arrow",x.leftArrowClassName=x.dxGanttPrefix+"LA",x.topArrowClassName=x.dxGanttPrefix+"TA",x.rightArrowClassName=x.dxGanttPrefix+"RA",x.bottomArrowClassName=x.dxGanttPrefix+"BA",x.CLASSNAMES={CONNECTOR_VERTICAL:"dx-gantt-conn-v",CONNECTOR_HORIZONTAL:"dx-gantt-conn-h"},x}();l.GridLayoutCalculator=g},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.StyleDef=void 0;var c=o(1),I=o(3),C=o(17),f=o(35),a=o(36),p=o(62),s=function(){function u(d){this._fillColor=new C.Color,this._textColor=new C.Color,this._lineColor=new C.Color,this._cellWidth=new p.Width,this._cellPadding=new a.Margin,d&&this.assign(d)}return Object.defineProperty(u.prototype,"font",{get:function(){return this._fontFamily},set:function(d){this._fontFamily=f.PredefinedStyles.getPredefinedStringOrUndefined(d,f.PredefinedStyles.fontFamilies)||d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(d){this._fontStyle=f.PredefinedStyles.getPredefinedStringOrUndefined(d,f.PredefinedStyles.fontStyles)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"fontSize",{get:function(){return this._fontSize},set:function(d){this._fontSize=d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"overflow",{get:function(){return this._overflow},set:function(d){this._overflow=f.PredefinedStyles.getPredefinedStringOrUndefined(d,f.PredefinedStyles.overflow)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"halign",{get:function(){return this._horizontalAlign},set:function(d){this._horizontalAlign=f.PredefinedStyles.getPredefinedStringOrUndefined(d,f.PredefinedStyles.horizontalAlign)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"valign",{get:function(){return this._verticalAlign},set:function(d){this._verticalAlign=f.PredefinedStyles.getPredefinedStringOrUndefined(d,f.PredefinedStyles.verticalAlign)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"fillColor",{get:function(){return this._fillColor},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"textColor",{get:function(){return this._textColor},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"lineColor",{get:function(){return this._lineColor},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"cellWidth",{get:function(){return this._cellWidth},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"cellPadding",{get:function(){return this._cellPadding},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(d){this._lineWidth=d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"minCellWidth",{get:function(){return this._minCellWidth},set:function(d){this._minCellWidth=d},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"minCellHeight",{get:function(){return this._minCellHeight},set:function(d){this._minCellHeight=d},enumerable:!1,configurable:!0}),u.prototype.assign=function(d){d&&(d instanceof u?((0,c.isDefined)(d.font)&&(this.font=d.font),(0,c.isDefined)(d.fontStyle)&&(this.fontStyle=d.fontStyle),(0,c.isDefined)(d.overflow)&&(this.overflow=d.overflow),(0,c.isDefined)(d.halign)&&(this.halign=d.halign),(0,c.isDefined)(d.valign)&&(this.valign=d.valign),(0,c.isDefined)(d.fontSize)&&(this.fontSize=d.fontSize),(0,c.isDefined)(d.lineWidth)&&(this.lineWidth=d.lineWidth),(0,c.isDefined)(d.minCellWidth)&&(this.minCellWidth=d.minCellWidth),(0,c.isDefined)(d.minCellHeight)&&(this.minCellHeight=d.minCellHeight),(0,c.isDefined)(d.fillColor)&&this.fillColor.assign(d.fillColor),(0,c.isDefined)(d.textColor)&&this.textColor.assign(d.textColor),(0,c.isDefined)(d.lineColor)&&this.lineColor.assign(d.lineColor),(0,c.isDefined)(d.cellWidth)&&this.cellWidth.assign(d.cellWidth),(0,c.isDefined)(d.cellPadding)&&this.cellPadding.assign(d.cellPadding)):this.assignFromCssStyle(d))},u.prototype.assignFromCssStyle=function(d){if(d.fontFamily&&(this.font=this.getPdfFontFamily(d)),this.fontStyle=this.getPdfFontStyle(d),(0,c.isDefined)(d.fontSize)&&(this.fontSize=this.getPfrFontSize(d.fontSize)),d.textAlign&&(this.halign=d.textAlign),d.verticalAlign&&(this.valign=d.verticalAlign),(0,c.isDefined)(d.borderWidth)&&(this.lineWidth=d.borderWidth),(0,c.isDefined)(d.cellWidth)&&this.cellWidth.assign(d.cellWidth),(0,c.isDefined)(d.width)&&(this.minCellWidth="number"==typeof d.width?d.width:I.DomUtils.pxToInt(d.width)),(0,c.isDefined)(d.height)&&(this.minCellHeight="number"==typeof d.height?d.height:I.DomUtils.pxToInt(d.height)),d.backgroundColor&&this.fillColor.assign(d.backgroundColor),d.color&&this.textColor.assign(d.color),d.borderColor&&this.lineColor.assign(d.borderColor),(0,c.isDefined)(d.width)&&this.cellWidth.assign(d.width),this.assignPaddingFromCss(d),(0,c.isDefined)(d.extraLeftPadding)){var h=this._cellPadding.left;this._cellPadding.left=h?h+d.extraLeftPadding:d.extraLeftPadding}},u.prototype.getPdfFontStyle=function(d){var h=d.fontWeight,g=parseInt(h),x="bold"===h||!isNaN(g)&&g>500,b=x?"bold":"normal";return"italic"===d.fontStyle&&(b=x?"bolditalic":"italic"),b},u.prototype.getPdfFontFamily=function(d){var h=d.fontFamily&&d.fontFamily.toLowerCase(),g="helvetica";return h.indexOf("times")>-1&&(g="times"),h.indexOf("courier")>-1&&(g="courier"),g},u.prototype.getPfrFontSize=function(d){var h=I.DomUtils.pxToInt(d);if(!isNaN(h))return Math.ceil(h/96*72)},u.prototype.assignPaddingFromCss=function(d){if(d.padding)this._cellPadding.assign(d.padding);else{var h={};d.paddingLeft&&(h.left=I.DomUtils.pxToInt(d.paddingLeft)),d.paddingTop&&(h.top=I.DomUtils.pxToInt(d.paddingTop)),d.paddingRight&&(h.right=I.DomUtils.pxToInt(d.paddingRight)),d.paddingBottom&&(h.bottom=I.DomUtils.pxToInt(d.paddingBottom)),this._cellPadding.assign(h)}},u.prototype.hasValue=function(){return!0},u.prototype.getValue=function(){var d=this,h={};return(0,c.isDefined)(this.font)&&(h.font=this.font),(0,c.isDefined)(this.fontStyle)&&(h.fontStyle=this.fontStyle),(0,c.isDefined)(this.fontSize)&&(h.fontSize=this.fontSize),(0,c.isDefined)(this.overflow)&&(h.overflow=this.overflow),(0,c.isDefined)(this.halign)&&(h.halign=this.halign),(0,c.isDefined)(this.valign)&&(h.valign=this.valign),(0,c.isDefined)(this.lineWidth)&&(h.lineWidth=this.lineWidth),(0,c.isDefined)(this.minCellWidth)&&(h.minCellWidth=this.minCellWidth),(0,c.isDefined)(this.minCellHeight)&&(h.minCellHeight=this.minCellHeight),this.getJsPdfProviderProps().forEach(function(g){var x=d[g];x&&x.hasValue()&&(h[g]=x.getValue())}),h},u.prototype.getJsPdfProviderProps=function(){return["fillColor","textColor","lineColor","cellWidth","cellPadding"]},u}();l.StyleDef=s},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PdfPageTableNames=void 0;var c=function(){function I(){}return I.treeListHeader="treeListHeader",I.treeListMain="treeListMain",I.chartMain="chartMain",I.chartScaleTop="chartScaleTop",I.chartScaleBottom="chartScaleBottom",I}();l.PdfPageTableNames=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.BaseManipulator=void 0;var c=function(){function I(C,f){this.viewModel=C,this.dispatcher=f}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}();l.BaseManipulator=c},function(he,l,o){"use strict";var c;Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaDomHelper=void 0;var I=o(3),C=o(9),f=o(46),a=o(4),p=o(25),s=function(){function u(){}return u.getEventSource=function(d){var h,g=(d.nodeType===(null===(h=window?.Node)||void 0===h?void 0:h.ELEMENT_NODE)?d:d.parentNode).classList[0];return u.classToSource[g]||a.TaskAreaEventSource.TaskArea},u.isConnectorLine=function(d){var h=C.EvtUtils.getEventSource(d);return I.DomUtils.hasClassName(h,p.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL)||I.DomUtils.hasClassName(h,p.GridLayoutCalculator.CLASSNAMES.CONNECTOR_VERTICAL)},u.isTaskElement=function(d){var h=C.EvtUtils.getEventSource(d),g=u.classToSource[h.classList[0]];return g===a.TaskAreaEventSource.TaskEdit_Frame||g===a.TaskAreaEventSource.TaskEdit_Progress||g===a.TaskAreaEventSource.TaskEdit_Start||g===a.TaskAreaEventSource.TaskEdit_End||g===a.TaskAreaEventSource.TaskEdit_DependencyStart||g===a.TaskAreaEventSource.TaskEdit_DependencyFinish},u.isMouseEvent=function(d){return d instanceof MouseEvent},u.isTouchEvent=function(d){return window.TouchEvent&&d instanceof TouchEvent},u.isPointerEvent=function(d){return window.PointerEvent&&d instanceof PointerEvent},u.isMousePointer=function(d){return this.isPointerEvent(d)&&"mouse"===d.pointerType},u.classToSource=((c={})[f.TaskEditController.CLASSNAMES.TASK_EDIT_PROGRESS]=a.TaskAreaEventSource.TaskEdit_Progress,c[f.TaskEditController.CLASSNAMES.TASK_EDIT_START]=a.TaskAreaEventSource.TaskEdit_Start,c[f.TaskEditController.CLASSNAMES.TASK_EDIT_END]=a.TaskAreaEventSource.TaskEdit_End,c[f.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME]=a.TaskAreaEventSource.TaskEdit_Frame,c[f.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH]=a.TaskAreaEventSource.TaskEdit_DependencyStart,c[f.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT]=a.TaskAreaEventSource.TaskEdit_DependencyFinish,c[f.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH]=a.TaskAreaEventSource.Successor_DependencyStart,c[f.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT]=a.TaskAreaEventSource.Successor_DependencyFinish,c),u}();l.TaskAreaDomHelper=s},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaStateBase=void 0;var c=o(10),I=o(5),C=o(3),f=o(9),a=o(66),p=o(172),s=o(29),u=o(13),d=function(){function h(g,x,b){this.position=new I.Point(-1,-1),this.isCursorInArea=!1,this._listener=g,this._taskArea=x,this._cellSize=b}return h.prototype.start=function(){},h.prototype.finish=function(){},h.prototype.isTouchEvent=function(g){return s.TaskAreaDomHelper.isTouchEvent(g)},h.prototype.isPointerEvent=function(g){return s.TaskAreaDomHelper.isPointerEvent(g)},h.prototype.isMouseEvent=function(g){return s.TaskAreaDomHelper.isMouseEvent(g)},h.prototype.onMouseWheel=function(g){},h.prototype.onScroll=function(g){this.raiseEvent(u.TaskAreaStateEventNames.TASK_AREA_SCROLL)},h.prototype.onKeyDown=function(g){this.isCursorInArea&&this.raiseEvent(u.TaskAreaStateEventNames.TASK_AREA_KEY_DOWN,g,null,{code:this.getShortcutCode(g)})},h.prototype.onContextMenu=function(g){var x=this.getClickedRowIndex(g),b=s.TaskAreaDomHelper.isConnectorLine(g);b||this.raiseTaskSelection(g,x),g.stopPropagation(),g.preventDefault(),c.Browser.WebKitFamily&&(g.returnValue=!1),this.raiseEvent(u.TaskAreaStateEventNames.CONTEXTMENU_SHOW,g,x,{type:b?"dependency":"task"})},h.prototype.onTaskPointerEnter=function(g){this.onTaskPointerEnterBase(g)},h.prototype.onDocumentPointerMove=function(g){this.processPointerMove(g)},h.prototype.onDocumentPointerDown=function(g){this.processPointerDown(g)},h.prototype.onDocumentPointerUp=function(g){this.processPointerUp(g)},h.prototype.onTaskTouchStart=function(g){this.onTaskPointerEnterBase(g)},h.prototype.onTouchMove=function(g){this.processPointerMove(g)},h.prototype.onTouchStart=function(g){this.processPointerDown(g)},h.prototype.onTouchEnd=function(g){this.processPointerUp(g)},h.prototype.onMouseDown=function(g){this.processPointerDown(g)},h.prototype.onMouseUp=function(g){},h.prototype.onMouseMove=function(g){this.processPointerMove(g)},h.prototype.onTaskHover=function(g){this.onTaskPointerEnterBase(g)},h.prototype.onTaskLeave=function(g){this.raiseEvent(u.TaskAreaStateEventNames.TASK_LEAVE,g,this.getClickedRowIndex(g))},h.prototype.onClick=function(g){var x=this.getClickedRowIndex(g);this.raiseTaskSelection(g,x),this.raiseEvent(u.TaskAreaStateEventNames.TASK_AREA_CLICK,g,x)},h.prototype.onDblClick=function(g){g.preventDefault(),this.raiseEvent(u.TaskAreaStateEventNames.TASK_AREA_DBLCLICK,g,this.getClickedRowIndex(g))},h.prototype.onTaskAreaLeave=function(g){(!this.isPointerEvent(g)||s.TaskAreaDomHelper.isMousePointer(g))&&(this.isCursorInArea=!1,this.raiseEvent(u.TaskAreaStateEventNames.TASK_EDIT_END,g)),this.onTaskAreaLeaveInternal(g)},h.prototype.onTaskPointerEnterBase=function(g){this.isTouchEvent(g)||this.isPointerEvent(g)||g.preventDefault(),this.raiseEvent(u.TaskAreaStateEventNames.TASK_EDIT_START,g,this.getClickedRowIndex(g))},h.prototype.processPointerDown=function(g){var x=this.isTouchEvent(g),b=this.isPointerEvent(g);(x||b)&&this.checkAndProcessTouchOutsideArea(g)||(this.position=new I.Point(f.EvtUtils.getEventX(g),f.EvtUtils.getEventY(g)),(x||b)&&g.preventDefault(),x?this.onTouchStartInternal(g):b?this.onDocumentPointerDownInternal(g):this.onMouseDownInternal(g))},h.prototype.processPointerMove=function(g){var x,b=this.isTouchEvent(g),y=this.isPointerEvent(g);null!==(x=this.position)&&void 0!==x||(this.position=new I.Point(f.EvtUtils.getEventX(g),f.EvtUtils.getEventY(g)));var E=Math.abs(this.position.x-f.EvtUtils.getEventX(g))>2||Math.abs(this.position.y-f.EvtUtils.getEventY(g))>2;(!b&&!y||!this.checkAndProcessTouchOutsideArea(g))&&E&&((b||y)&&g.preventDefault(),this.isTouchEvent(g)?this.onTouchMoveInternal(g):this.isPointerEvent(g)?this.onDocumentPointerMoveInternal(g):(this.isCursorInArea=!0,this.onMouseMoveInternal(g)))},h.prototype.processPointerUp=function(g){this.checkAndProcessTouchOutsideArea(g)||(g.preventDefault(),this.isTouchEvent(g)?this.onTouchEndInternal(g):this.onDocumentPointerUpInternal(g))},h.prototype.onMouseDownInternal=function(g){},h.prototype.onMouseMoveInternal=function(g){},h.prototype.onDocumentPointerUpInternal=function(g){},h.prototype.onDocumentPointerDownInternal=function(g){},h.prototype.onDocumentPointerMoveInternal=function(g){},h.prototype.onTouchStartInternal=function(g){},h.prototype.onTouchEndInternal=function(g){},h.prototype.onTouchMoveInternal=function(g){},h.prototype.onTaskAreaLeaveInternal=function(g){},h.prototype.checkAndProcessTouchOutsideArea=function(g){var x=!this.isInTaskArea(g);return x&&this.raiseEvent(u.TaskAreaStateEventNames.TASK_EDIT_END,g),this.isCursorInArea=!x,x},h.prototype.raiseEvent=function(g,x,b,y){var E=new p.TaskAreaEventArgs(g,x,b,y),S=this._listener.getHandler(g);return S&&S(E)},h.prototype.raiseDependencySelection=function(g,x){this.raiseEvent(u.TaskAreaStateEventNames.DEPENDENCY_SELECTION,g,null,{key:x})},h.prototype.raiseTaskSelection=function(g,x){C.DomUtils.isItParent(this._taskArea,f.EvtUtils.getEventSource(g))&&!s.TaskAreaDomHelper.isConnectorLine(g)&&this.raiseEvent(u.TaskAreaStateEventNames.TASK_SELECTION,g,x)},h.prototype.getClickedRowIndex=function(g){if(!g)return-1;var x=f.EvtUtils.getEventY(g)-C.DomUtils.getAbsolutePositionY(this._taskArea);return Math.floor(x/this._cellSize.height)},h.prototype.getRelativePos=function(g){var x=C.DomUtils.getAbsolutePositionX(this._taskArea),b=C.DomUtils.getAbsolutePositionY(this._taskArea);return new I.Point(g.x-x,g.y-b)},h.prototype.isInTaskArea=function(g){return C.DomUtils.isItParent(this._taskArea,f.EvtUtils.getEventSource(g))},h.prototype.getShortcutCode=function(g){var x=a.KeyUtils.getEventKeyCode(g),b=0;return g.altKey&&(b|=a.ModifierKey.Alt),g.ctrlKey&&(b|=a.ModifierKey.Ctrl),g.shiftKey&&(b|=a.ModifierKey.Shift),g.metaKey&&c.Browser.MacOSPlatform&&(b|=a.ModifierKey.Meta),b|x},h}();l.TaskAreaStateBase=d},function(he,l,o){"use strict";var c;Object.defineProperty(l,"__esModule",{value:!0}),l.ConstraintViolationOption=l.ConfirmationType=void 0,(c=l.ConfirmationType||(l.ConfirmationType={}))[c.TaskDelete=0]="TaskDelete",c[c.DependencyDelete=1]="DependencyDelete",c[c.ResourcesDelete=2]="ResourcesDelete",function(c){c[c.DoNothing=0]="DoNothing",c[c.RemoveDependency=1]="RemoveDependency",c[c.KeepDependency=2]="KeepDependency"}(l.ConstraintViolationOption||(l.ConstraintViolationOption={}))},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DialogParametersBase=void 0,l.DialogParametersBase=function(){}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DeassignResourceHistoryItem=void 0;var c=o(0),I=o(14),C=o(2),f=function(a){function p(s,u){var d=a.call(this,s)||this;return d.assignmentId=u,d}return c.__extends(p,a),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 s=this;return[{objectType:C.GanttDataObjectNames.resourceAssignment,getKey:function(){return s.assignmentId},updateKey:function(u){return s.assignmentId=u}},{objectType:C.GanttDataObjectNames.task,getKey:function(){var u;return null===(u=s.assignment)||void 0===u?void 0:u.taskId},updateKey:function(u){return s.assignment.taskId=u}},{objectType:C.GanttDataObjectNames.resource,getKey:function(){var u;return null===(u=s.assignment)||void 0===u?void 0:u.resourceId},updateKey:function(u){return s.assignment.resourceId=u}}]},enumerable:!1,configurable:!0}),p}(I.HistoryItem);l.DeassignResourceHistoryItem=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourceCommandBase=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p}(I.CommandBase);l.ResourceCommandBase=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PredefinedStyles=void 0;var c=function(){function I(){}return I.getPredefinedStringOrUndefined=function(C,f){var a=C&&f&&C.toLowerCase()||void 0;return a&&(f.filter(function(p){return p.toLowerCase()===a})[0]||f.filter(function(p){return a.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}();l.PredefinedStyles=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Margin=void 0;var c=o(1),I=o(3),C=function(){function f(a){this.assign(a)}return f.prototype.assign=function(a){(0,c.isDefined)(a)&&("string"==typeof a?this.assignFromString(a):"number"==typeof a||a instanceof Array?this.assignWithValues(a):this.assignWithMargin(a||a))},f.prototype.assignFromString=function(a){var p=a.split(" ").map(function(s){return I.DomUtils.pxToInt(s)});this.assignWithValues(p)},f.prototype.assignWithMargin=function(a){(0,c.isDefined)(a.top)&&(this.top=a.top),(0,c.isDefined)(a.right)&&(this.right=a.right),(0,c.isDefined)(a.bottom)&&(this.bottom=a.bottom),(0,c.isDefined)(a.left)&&(this.left=a.left)},f.prototype.assignWithValues=function(a){var p=this.getCorrectedValues(a);this.top=p[0],this.right=p[1],this.bottom=p[2],this.left=p[3]},f.prototype.getCorrectedValues=function(a){var p=[this.top,this.right,this.bottom,this.left];if("number"==typeof a)p=[a,a,a,a];else{var s=a;switch(s.length){case 1:p=[s[0],s[0],s[0],s[0]];break;case 2:p=[s[0],s[1],s[0],s[1]];break;case 3:p=[s[0],s[1],s[2],s[1]];break;default:s.forEach(function(u,d){return p[d]=u})}}return p},f.prototype.hasValue=function(){return(0,c.isDefined)(this.top)||(0,c.isDefined)(this.left)||(0,c.isDefined)(this.right)||(0,c.isDefined)(this.bottom)},f.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 a={};return(0,c.isDefined)(this.top)&&(a.top=this.top),(0,c.isDefined)(this.left)&&(a.left=this.left),(0,c.isDefined)(this.right)&&(a.right=this.right),(0,c.isDefined)(this.bottom)&&(a.bottom=this.bottom),a},f}();l.Margin=C},function(he,l,o){"use strict";var c;Object.defineProperty(l,"__esModule",{value:!0}),l.DataExportMode=l.ExportMode=void 0,(c=l.ExportMode||(l.ExportMode={}))[c.all=0]="all",c[c.treeList=1]="treeList",c[c.chart=2]="chart",function(c){c[c.all=0]="all",c[c.visible=1]="visible"}(l.DataExportMode||(l.DataExportMode={}))},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RecurrenceBase=void 0;var c=o(0),I=o(203),C=o(57),f=o(204),a=o(1),p=o(8),s=o(71),u=function(d){function h(g,x,b,y){void 0===g&&(g=null),void 0===x&&(x=null),void 0===b&&(b=1),void 0===y&&(y=0);var E=d.call(this)||this;return E._start=null,E._end=null,E._interval=1,E._occurrenceCount=0,E._dayOfWeek=0,E._day=1,E._dayOfWeekOccurrence=0,E._month=0,E._calculateByDayOfWeek=!1,E.start=g,E.end=x,E.interval=b,E.occurrenceCount=y,E}return c.__extends(h,d),h.prototype.assignFromObject=function(g){(0,a.isDefined)(g)&&(d.prototype.assignFromObject.call(this,g),this.start=p.DateTimeUtils.convertToDate(g.start),this.end=p.DateTimeUtils.convertToDate(g.end),(0,a.isDefined)(g.interval)&&(this.interval=g.interval),(0,a.isDefined)(g.occurrenceCount)&&(this.occurrenceCount=g.occurrenceCount),(0,a.isDefined)(g.dayOfWeek)&&(this.dayOfWeekInternal=s.RecurrenceFactory.getEnumValue(I.DayOfWeek,g.dayOfWeek)),(0,a.isDefined)(g.day)&&(this.dayInternal=g.day),(0,a.isDefined)(g.dayOfWeekOccurrence)&&(this.dayOfWeekOccurrenceInternal=s.RecurrenceFactory.getEnumValue(C.DayOfWeekMonthlyOccurrence,g.dayOfWeekOccurrence)),(0,a.isDefined)(g.month)&&(this.monthInternal=s.RecurrenceFactory.getEnumValue(f.Month,g.month)),(0,a.isDefined)(g.calculateByDayOfWeek)&&(this._calculateByDayOfWeek=!!g.calculateByDayOfWeek))},h.prototype.calculatePoints=function(g,x){if(!g||!x)return new Array;var b=p.DateTimeUtils.getMaxDate(g,this._start),y=p.DateTimeUtils.getMinDate(x,this._end);return this._occurrenceCount>0?this.calculatePointsByOccurrenceCount(b,y):this.calculatePointsByDateRange(b,y)},h.prototype.calculatePointsByOccurrenceCount=function(g,x){for(var b=new Array,y=this.getFirstPoint(g);y&&b.length<this._occurrenceCount&&p.DateTimeUtils.compareDates(y,x)>=0;)this.isRecurrencePoint(y)&&b.push(y),y=this.getNextPoint(y);return b},h.prototype.calculatePointsByDateRange=function(g,x){for(var b=new Array,y=this.getFirstPoint(g);y&&p.DateTimeUtils.compareDates(y,x)>=0;)this.isRecurrencePoint(y)&&b.push(y),y=this.getNextPoint(y);return b},h.prototype.getFirstPoint=function(g){return this.isRecurrencePoint(g)?g:this.getNextPoint(g)},h.prototype.isRecurrencePoint=function(g){return this.isDateInRange(g)&&this.checkDate(g)&&(!this.useIntervalInCalc()||this.checkInterval(g))},h.prototype.isDateInRange=function(g){return!(!g||this._start&&p.DateTimeUtils.compareDates(this.start,g)<0||0==this._occurrenceCount&&this.end&&p.DateTimeUtils.compareDates(g,this.end)<0)},h.prototype.useIntervalInCalc=function(){return this.interval>1&&!!this._start},h.prototype.getNextPoint=function(g){return this.isDateInRange(g)?this.useIntervalInCalc()?this.calculatePointByInterval(g):this.calculateNearestPoint(g):null},h.prototype.getSpecDayInMonth=function(g,x){return this._calculateByDayOfWeek?p.DateTimeUtils.getSpecificDayOfWeekInMonthDate(this.dayOfWeekInternal,g,x,this.dayOfWeekOccurrenceInternal):new Date(g,x,this.dayInternal)},Object.defineProperty(h.prototype,"dayInternal",{get:function(){return this._day},set:function(g){g>0&&g<=31&&(this._day=g)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"dayOfWeekInternal",{get:function(){return this._dayOfWeek},set:function(g){g>=I.DayOfWeek.Sunday&&g<=I.DayOfWeek.Saturday&&(this._dayOfWeek=g)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"dayOfWeekOccurrenceInternal",{get:function(){return this._dayOfWeekOccurrence},set:function(g){g>=C.DayOfWeekMonthlyOccurrence.First&&g<=C.DayOfWeekMonthlyOccurrence.Last&&(this._dayOfWeekOccurrence=g)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"monthInternal",{get:function(){return this._month},set:function(g){g>=f.Month.January&&g<=f.Month.December&&(this._month=g)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"start",{get:function(){return this._start},set:function(g){g&&(this._start=g,this._end&&g>this._end&&(this._end=g))},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"end",{get:function(){return this._end},set:function(g){g&&(this._end=g,this._start&&g<this._start&&(this._start=g))},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"occurrenceCount",{get:function(){return this._occurrenceCount},set:function(g){g<0&&(g=0),this._occurrenceCount=g},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"interval",{get:function(){return this._interval},set:function(g){g>0&&(this._interval=g)},enumerable:!1,configurable:!0}),h}(o(2).DataObject);l.RecurrenceBase=u},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.StringUtils=void 0;var c=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 f=0;if(0===C.length)return f;for(var a=C.length,p=0;p<a;p++)f=(f<<5)-f+C.charCodeAt(p),f|=0;return f},I.endsAt=function(C,f){var a=C.length-1,p=f.length-1,s=a-p;if(s<0)return!1;for(;a>=s;a--,p--)if(C[a]!==f[p])return!1;return!0},I.startsAt=function(C,f){return C.substr(0,f.length)===f},I.stringInLowerCase=function(C){return C.toLowerCase()===C},I.stringInUpperCase=function(C){return C.toUpperCase()===C},I.atLeastOneSymbolInUpperCase=function(C){for(var f=0,a=void 0;a=C[f];f++)if(I.stringInUpperCase(a)&&!I.stringInLowerCase(a))return!0;return!1},I.getSymbolFromEnd=function(C,f){return C[C.length-f]},I.trim=function(C,f){if(void 0===f)return I.trimInternal(C,!0,!0);var a=f.join("");return C.replace(new RegExp("(^["+a+"]*)|(["+a+"]*$)","g"),"")},I.trimStart=function(C,f){if(void 0===f)return I.trimInternal(C,!0,!1);var a=f.join("");return C.replace(new RegExp("^["+a+"]*","g"),"")},I.trimEnd=function(C,f){if(void 0===f)return I.trimInternal(C,!1,!0);var a=f.join("");return C.replace(new RegExp("["+a+"]*$","g"),"")},I.getDecimalSeparator=function(){return 1.1.toLocaleString().substr(1,1)},I.repeat=function(C,f){return new Array(f<=0?0:f+1).join(C)},I.isNullOrEmpty=function(C){return!C||!C.length},I.padLeft=function(C,f,a){return I.repeat(a,Math.max(0,f-C.length))+C},I.trimInternal=function(C,f,a){var p=C.length;if(!p)return C;if(p<764833){var s=C;return f&&(s=s.replace(/^\s+/,"")),a&&(s=s.replace(/\s+$/,"")),s}var u=0;if(a)for(;p>0&&/\s/.test(C[p-1]);)p--;if(f&&p>0)for(;u<p&&/\s/.test(C[u]);)u++;return C.substring(u,p)},I}();l.StringUtils=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConfirmationDialogParameters=void 0;var c=o(0),I=function(C){function f(a,p){var s=C.call(this)||this;return s.type=a,s.callback=p,s}return c.__extends(f,C),f.prototype.clone=function(){var a=new f(this.type,this.callback);return a.message=this.message,a},f}(o(32).DialogParametersBase);l.ConfirmationDialogParameters=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RemoveDependencyHistoryItem=void 0;var c=o(0),I=o(2),C=function(f){function a(p,s){var u=f.call(this,p)||this;return u.dependencyId=s,u}return c.__extends(a,f),a.prototype.redo=function(){this.dependency=this.modelManipulator.dependency.removeDependency(this.dependencyId)},a.prototype.undo=function(){this.modelManipulator.dependency.insertDependency(this.dependency.predecessorId,this.dependency.successorId,this.dependency.type,this.dependencyId)},Object.defineProperty(a.prototype,"keyUpdaters",{get:function(){var p=this;return[{objectType:I.GanttDataObjectNames.dependency,getKey:function(){return p.dependencyId},updateKey:function(s){return p.dependencyId=s}},{objectType:I.GanttDataObjectNames.task,getKey:function(){var s;return null===(s=p.dependency)||void 0===s?void 0:s.predecessorId},updateKey:function(s){return p.dependency.predecessorId=s}},{objectType:I.GanttDataObjectNames.task,getKey:function(){var s;return null===(s=p.dependency)||void 0===s?void 0:s.successorId},updateKey:function(s){return p.dependency.successorId=s}}]},enumerable:!1,configurable:!0}),a}(o(14).HistoryItem);l.RemoveDependencyHistoryItem=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CompositionHistoryItem=void 0;var c=o(0),I=function(C){function f(){var a=C.call(this,null)||this;return a.historyItems=[],a}return c.__extends(f,C),f.prototype.redo=function(){for(var a,p=0;a=this.historyItems[p];p++)a.redo()},f.prototype.undo=function(){for(var a,p=this.historyItems.length-1;a=this.historyItems[p];p--)a.undo()},f.prototype.add=function(a){if(null==a)throw new Error("Can't add null HistoryItem");this.historyItems.push(a)},f.prototype.undoItemsQuery=function(){this.undo()},f.prototype.setModelManipulator=function(a){if(C.prototype.setModelManipulator.call(this,a),this.historyItems)for(var p=0;p<this.historyItems.length;p++)this.historyItems[p].setModelManipulator(a)},f}(o(14).HistoryItem);l.CompositionHistoryItem=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CreateTaskHistoryItem=void 0;var c=o(0),I=o(18),C=o(2),f=function(a){function p(s,u){var d=a.call(this,s)||this;return d.data=u,d}return c.__extends(p,a),p.prototype.redo=function(){var s;null!==(s=this.insertedKey)&&void 0!==s||(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 s,u=this,d=[{objectType:C.GanttDataObjectNames.task,getKey:function(){return u.insertedKey},updateKey:function(h){return u.insertedKey=h}}];return!(null===(s=this.data)||void 0===s)&&s.parentId&&d.push({objectType:C.GanttDataObjectNames.task,getKey:function(){var h;return null===(h=u.data)||void 0===h?void 0:h.parentId},updateKey:function(h){return u.data.parentId=h}}),d},enumerable:!1,configurable:!0}),p}(o(14).HistoryItem);l.CreateTaskHistoryItem=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PdfTaskInfo=void 0;var c=o(5),I=o(17),C=o(26),f=function(){function a(){}return Object.defineProperty(a.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(a.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(a.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(a.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(a.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"height",{get:function(){var p=this.bottom-this.top;return this.isParent&&(p-=a.defaultParentHeightCorrection),p},enumerable:!1,configurable:!0}),a.prototype.assign=function(p){var s,u,d;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!==(s=this.progressColor)&&void 0!==s||(this.progressColor=new I.Color),this.progressColor.assign(p.progressColor),null!==(u=this.taskColor)&&void 0!==u||(this.taskColor=new I.Color),this.taskColor.assign(p.taskColor),null!==(d=this.textStyle)&&void 0!==d||(this.textStyle=new C.StyleDef),this.textStyle.assign(p.textStyle),this.isParent=p.isParent},a.prototype._copyPoints=function(p){var s=this;this.sidePoints=new Array,p?.forEach(function(u){return s.sidePoints.push(new c.Point(u.x,u.y))})},a.defaultParentHeightCorrection=4,a}();l.PdfTaskInfo=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CellDef=void 0;var c=o(1),I=o(26),C=function(){function f(a,p,s){this.content="","string"==typeof a?(this.content=a,this.colSpan=p,s&&this.appendStyles(s)):a&&this.assign(a)}return Object.defineProperty(f.prototype,"styles",{get:function(){return this._styles||(this._styles=new I.StyleDef),this._styles},enumerable:!1,configurable:!0}),f.prototype.assign=function(a){(0,c.isDefined)(a.content)&&(this.content=a.content),(0,c.isDefined)(a.colSpan)&&(this.colSpan=a.colSpan),a.styles&&this.appendStyles(a.styles)},f.prototype.appendStyles=function(a){a&&this.styles.assign(a)},f.prototype.hasValue=function(){return!0},f.prototype.getValue=function(){var a={};return a.content=this.content,this.colSpan>1&&(a.colSpan=this.colSpan),this._styles&&(a.styles=this._styles.getValue()),a},f}();l.CellDef=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskEditController=void 0;var c=o(4),I=o(19),C=o(3),f=o(10),a=o(169),p=o(65),s=o(15),u=function(){function d(h){this.showInfoDelay=1e3,this.taskIndex=-1,this.successorIndex=-1,this.isEditingInProgress=!1,this.disableTaskEditBox=!1,this.isTaskEditBoxShown=!1,this.settings=h,this.createElements()}return Object.defineProperty(d.prototype,"taskId",{get:function(){return this.viewModel.items[this.taskIndex].task.internalId},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"successorId",{get:function(){return this.viewModel.items[this.successorIndex].task.internalId},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"task",{get:function(){return this.viewItem.task},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"viewItem",{get:function(){return this.viewModel.items[this.taskIndex]},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"renderHelper",{get:function(){return this.settings.getRenderHelper()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"ganttSettings",{get:function(){return this.settings.getGanttSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"viewModel",{get:function(){return this.settings.getViewModel()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"commandManager",{get:function(){return this.settings.getCommandManager()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"updateTaskCommand",{get:function(){return this.commandManager.updateTaskCommand},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"validationController",{get:function(){return this.settings.getValidationController()},enumerable:!1,configurable:!0}),d.prototype.raiseTaskMoving=function(h,g,x,b){return this.settings.getModelManipulator().dispatcher.raiseTaskMoving(h,g,x,b)},Object.defineProperty(d.prototype,"tooltip",{get:function(){var h;return null!==(h=this._tooltip)&&void 0!==h||(this._tooltip=new a.TaskEditTooltip(this.baseElement,this.tooltipSettings,this.renderHelper.elementTextHelperCultureInfo)),this._tooltip.tooltipSettings=this.tooltipSettings,this._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"tooltipSettings",{get:function(){var h=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(g){h.settings.destroyTemplate(g)},formatDate:function(g){return h.settings.formatDate(g)}})},enumerable:!1,configurable:!0}),d.prototype.show=function(h){if(!this.isEditingInProgress&&!this.disableTaskEditBox){this.taskIndex=h,this.hide(),this.changeWrapInfo(),this.baseElement.className=d.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+" "+d.CLASSNAMES.TASK_EDIT_HIDE_UPDATING),this.viewItem.isCustom&&this.baseElement.classList.add(d.CLASSNAMES.TASK_EDIT_BOX_CUSTOM));var g=this.settings.getGanttSettings().editing.taskHoverDelay||0;this.taskDateRange=new I.DateRange(this.task.start,this.task.end),this.displayTaskEditBox(g),this.displayProgressEdit(),this.displayStartEndEditElements()}},d.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")},d.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"},d.prototype.displayDependency=function(){this.ganttSettings.editing.enabled&&this.ganttSettings.editing.allowDependencyInsert&&this.ganttSettings.showDependencies||(this.baseElement.className=this.baseElement.className+" hide-dependency")},d.prototype.changeWrapInfo=function(){this.updateWrapInfo(),this.wrapInfo.assignPosition(this.baseElement),this.wrapInfo.assignSize(this.baseElement)},d.prototype.displayTaskEditBox=function(h){var g=this;void 0===h&&(h=0);var x=function(){g.renderHelper.taskArea.appendChild(g.baseElement),g.isTaskEditBoxShown=!0};h?this.timerId=setTimeout(x,h):x()},d.prototype.endEditing=function(){this.isEditingInProgress=!1,this.hide()},d.prototype.hide=function(){this.isTaskEditBoxShown=!1;var h=this.baseElement.parentNode;h&&h.removeChild(this.baseElement),this.tooltip.hide(),clearTimeout(this.timerId)},d.prototype.cancel=function(){clearTimeout(this.timerId)},d.prototype.showTaskInfo=function(h,g){void 0===g&&(g=500),this.timerId&&(g=this.showInfoDelay),this.tooltip.showInfo(this.task,h,g)},d.prototype.updateWrapInfo=function(){this.wrapInfo=this.getTaskWrapperElementInfo(this.taskIndex),this.wrapInfo.position.x--},d.prototype.isAllowedToConnectTasks=function(h){var g;return this.validationController.canCreateDependency(this.taskId,null===(g=this.viewModel.items[h].task)||void 0===g?void 0:g.internalId)},d.prototype.showDependencySuccessor=function(h){if(this.isAllowedToConnectTasks(h)){this.successorIndex=h;var g=this.getTaskWrapperElementInfo(h);g.assignPosition(this.dependencySuccessorBaseElement),g.assignSize(this.dependencySuccessorBaseElement),g.assignSize(this.dependencySuccessorFrame),this.renderHelper.taskArea.appendChild(this.dependencySuccessorBaseElement)}},d.prototype.hideDependencySuccessor=function(){var h=this.dependencySuccessorBaseElement.parentNode;h&&h.removeChild(this.dependencySuccessorBaseElement),this.successorIndex=-1},d.prototype.processProgress=function(h){if(this.isTaskUpdateAllowed()){this.isEditingInProgress=!0;var x=0;h.x>this.wrapInfo.position.x&&(x=h.x<this.wrapInfo.position.x+this.wrapInfo.size.width?Math.round((h.x-this.wrapInfo.position.x)/this.baseElement.clientWidth*100):100),this.progressEdit.style.left=x/100*this.wrapInfo.size.width-this.progressEdit.offsetWidth/2+"px",this.tooltip.showProgress(x,C.DomUtils.getAbsolutePositionX(this.progressEdit)+this.progressEdit.offsetWidth/2)}},d.prototype.confirmProgress=function(){if(this.isTaskUpdateAllowed()){this.isEditingInProgress=!1;var h=Math.round((this.progressEdit.offsetLeft+this.progressEdit.offsetWidth/2)/this.wrapInfo.size.width*100);this.updateTaskCommand.execute(this.taskId,{progress:h})}},d.prototype.processEnd=function(h){if(this.isTaskUpdateAllowed()){this.baseElement.className=this.baseElement.className+" move",this.isEditingInProgress=!0;var g=h.x>this.wrapInfo.position.x?h.x:this.wrapInfo.position.x,x=g-this.wrapInfo.position.x;this.baseElement.style.width=(x<1?0:x)+"px";var b=this.task.start,y=this.renderHelper.gridLayoutCalculator.getDateByPos(g);y.setSeconds(0),y<b||x<1?this.taskDateRange.end.setTime(b.getTime()):this.taskDateRange.end=this.getCorrectedDate(this.task.end,y),this.tooltip.showTime(b,this.taskDateRange.end,C.DomUtils.getAbsolutePositionX(this.baseElement)+this.baseElement.clientWidth)}},d.prototype.confirmEnd=function(){this.isTaskUpdateAllowed()&&(this.baseElement.className=d.CLASSNAMES.TASK_EDIT_BOX,this.isEditingInProgress=!1,this.updateTaskCommand.execute(this.taskId,{end:this.taskDateRange.end}),this.hide(),this.updateWrapInfo())},d.prototype.processStart=function(h){if(this.isTaskUpdateAllowed()){this.baseElement.className=this.baseElement.className+" move",this.isEditingInProgress=!0;var g=h.x<this.wrapInfo.position.x+this.wrapInfo.size.width?h.x:this.wrapInfo.position.x+this.wrapInfo.size.width,x=this.wrapInfo.size.width-(g-this.wrapInfo.position.x);this.baseElement.style.left=g+"px",this.baseElement.style.width=(x<1?0:x)+"px";var b=this.task.end,y=this.renderHelper.gridLayoutCalculator.getDateByPos(g);y.setSeconds(0),y>b||x<1?this.taskDateRange.start.setTime(b.getTime()):this.taskDateRange.start=this.getCorrectedDate(this.task.start,y),this.tooltip.showTime(this.taskDateRange.start,b,C.DomUtils.getAbsolutePositionX(this.baseElement))}},d.prototype.confirmStart=function(){this.isTaskUpdateAllowed()&&(this.baseElement.className=d.CLASSNAMES.TASK_EDIT_BOX,this.isEditingInProgress=!1,this.updateTaskCommand.execute(this.taskId,{start:this.taskDateRange.start}),this.hide(),this.updateWrapInfo())},d.prototype.processMove=function(h){if(this.isTaskUpdateAllowed()&&this.isTaskEditBoxShown){this.baseElement.className=this.baseElement.className+" move";var g=this.baseElement.offsetLeft+h;this.baseElement.style.left=g+"px";var x=this.renderHelper.gridLayoutCalculator.getDateByPos(g);this.taskDateRange.start=this.getCorrectedDate(this.task.start,x);var b=s.DateUtils.getRangeMSPeriod(this.task.start,this.task.end);return this.taskDateRange.end=s.DateUtils.getDSTCorrectedTaskEnd(this.taskDateRange.start,b),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},d.prototype.onTaskMovingCallback=function(h,g){if(this.taskDateRange.start!==h||this.taskDateRange.end!==g){var x=this.renderHelper.gridLayoutCalculator,b=x.getPosByDate(h),y=x.getPosByDate(g)-b;this.baseElement.style.left=b+"px",this.baseElement.style.width=(y<1?0:y)+"px",this.taskDateRange.start=h,this.taskDateRange.end=g}},d.prototype.confirmMove=function(){this.isTaskUpdateAllowed()&&(this.ganttSettings.editing.allowDependencyInsert||(this.baseElement.className=this.baseElement.className+" hide-dependency"),this.isEditingInProgress&&(this.baseElement.className=d.CLASSNAMES.TASK_EDIT_BOX,this.updateTaskCommand.execute(this.taskId,{start:this.taskDateRange.start,end:this.taskDateRange.end}),this.updateWrapInfo(),this.hide(),this.isEditingInProgress=!1))},d.prototype.getCorrectedDate=function(h,g){if(this.ganttSettings.viewType>c.ViewType.SixHours){var x=g.getFullYear(),b=g.getMonth(),y=g.getDate(),E=this.ganttSettings.viewType===c.ViewType.Days?g.getHours():h.getHours(),S=h.getMinutes(),O=h.getSeconds(),w=h.getMilliseconds();return new Date(x,b,y,E,S,O,w)}return g},d.prototype.startDependency=function(h){this.dependencyLine=document.createElement("DIV"),this.dependencyLine.className=d.CLASSNAMES.TASK_EDIT_DEPENDENCY_LINE,this.renderHelper.taskArea.appendChild(this.dependencyLine),this.startPosition=h},d.prototype.processDependency=function(h){this.isEditingInProgress=!0,this.drawline(this.startPosition,h)},d.prototype.endDependency=function(h){this.isEditingInProgress=!1,null!=h&&this.commandManager.createDependencyCommand.execute(this.task.internalId,this.successorId,h);var g=this.dependencyLine.parentNode;g&&g.removeChild(this.dependencyLine),this.dependencyLine=null,this.hideDependencySuccessor(),this.hide()},d.prototype.selectDependency=function(h){this.ganttSettings.editing.allowDependencyDelete&&(this.dependencyId=h)},d.prototype.isDependencySelected=function(h){return this.dependencyId&&this.dependencyId===h},d.prototype.deleteSelectedDependency=function(){this.dependencyId&&this.commandManager.removeDependencyCommand.execute(this.dependencyId)},d.prototype.getTaskWrapperElementInfo=function(h){var g=this.renderHelper.gridLayoutCalculator,x=g.getTaskWrapperElementInfo(h);return x.size.width=g.getTaskWidth(h),x.size.height=g.getTaskHeight(h),x},d.prototype.createElements=function(){this.baseElement=document.createElement("DIV"),this.baseFrame=document.createElement("DIV"),this.baseFrame.className=d.CLASSNAMES.TASK_EDIT_FRAME,this.baseElement.appendChild(this.baseFrame),this.progressEdit=document.createElement("DIV"),this.progressEdit.className=d.CLASSNAMES.TASK_EDIT_PROGRESS,this.baseFrame.appendChild(this.progressEdit),this.progressEdit.appendChild(document.createElement("DIV")),this.dependencyFinish=document.createElement("DIV"),this.dependencyFinish.classList.add(d.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH),f.Browser.TouchUI&&this.dependencyFinish.classList.add(d.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyFinish),this.dependencyStart=document.createElement("DIV"),this.dependencyStart.classList.add(d.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT),f.Browser.TouchUI&&this.dependencyStart.classList.add(d.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyStart),this.startEdit=document.createElement("DIV"),this.startEdit.className=d.CLASSNAMES.TASK_EDIT_START,this.baseFrame.appendChild(this.startEdit),this.endEdit=document.createElement("DIV"),this.endEdit.className=d.CLASSNAMES.TASK_EDIT_END,this.baseFrame.appendChild(this.endEdit),this.dependencySuccessorBaseElement=document.createElement("DIV"),this.dependencySuccessorBaseElement.className=d.CLASSNAMES.TASK_EDIT_BOX_SUCCESSOR,this.dependencySuccessorFrame=document.createElement("DIV"),this.dependencySuccessorFrame.className=d.CLASSNAMES.TASK_EDIT_FRAME_SUCCESSOR,this.dependencySuccessorBaseElement.appendChild(this.dependencySuccessorFrame),this.dependencySuccessorStart=document.createElement("DIV"),this.dependencySuccessorStart.classList.add(d.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH),f.Browser.TouchUI&&this.dependencySuccessorStart.classList.add(d.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorStart),this.dependencySuccessorFinish=document.createElement("DIV"),this.dependencySuccessorFinish.classList.add(d.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT),f.Browser.TouchUI&&this.dependencySuccessorFinish.classList.add(d.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorFinish),this._tooltip=new a.TaskEditTooltip(this.baseElement,this.tooltipSettings,this.renderHelper.elementTextHelperCultureInfo),this.attachEvents()},d.prototype.attachEvents=function(){this.onMouseLeaveHandler=function(){this.isEditingInProgress||this.hide()}.bind(this),this.baseElement.addEventListener("mouseleave",this.onMouseLeaveHandler)},d.prototype.drawline=function(h,g){if(h.x>g.x){var x=g;g=h,h=x}var b=Math.atan((h.y-g.y)/(g.x-h.x));b=-(b=180*b/Math.PI);var y=Math.sqrt((h.x-g.x)*(h.x-g.x)+(h.y-g.y)*(h.y-g.y));this.dependencyLine.style.left=h.x+"px",this.dependencyLine.style.top=h.y+"px",this.dependencyLine.style.width=y+"px",this.dependencyLine.style.transform="rotate("+b+"deg)"},d.prototype.canUpdateTask=function(){return!this.viewModel.isTaskToCalculateByChildren(this.task.internalId)},d.prototype.isTaskUpdateAllowed=function(){var h=this.ganttSettings.editing;return h.enabled&&h.allowTaskUpdate},d.prototype.detachEvents=function(){var h;null===(h=this.baseElement)||void 0===h||h.removeEventListener("mouseleave",this.onMouseLeaveHandler)},d.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"},d}();l.TaskEditController=u},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GanttView=void 0;var c=o(75),I=o(10),C=o(76),f=o(43),a=o(19),p=o(8),s=o(15),u=o(123),d=o(124),h=o(126),g=o(137),x=o(1),b=o(139),y=o(145),E=o(152),S=o(157),O=o(185),w=o(12),T=o(68),k=o(46),R=o(189),P=o(190),B=o(192),W=o(4),N=o(193),V=o(210),U=o(9),K=o(3),Y=o(5),J=o(211),j=o(20),ee=o(2),G=function(){function q(Z,X,M){var se=this;this.currentSelectedTaskID="",this.isFocus=!1,this._updateWithModelReloadLockedCounter=0,this.scaleCount=2,this.tickSize=new w.Size(0,0),this.currentZoom=1,this.stripLinesUpdaterId=null,this.ganttOwner=X,this.settings=O.Settings.parse(M),this.initValidationController(),this.renderHelper=new S.RenderHelper(this),this.renderHelper.initMarkup(Z),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 c.BarManager(this.commandManager,this.ganttOwner.bars),this.initTaskEditController(),this.history=new g.History(this._getHistoryListener()),this.initFullScreenModeHelper(),this.updateView(),this._scrollTimeOut=setTimeout(function(){se.scrollLeftByViewType()},0),this.initializeStripLinesUpdater(),this.initGanttViewApi()}return q.prototype.initGanttViewApi=function(){this.ganttViewApi=new V.GanttViewApi(this)},q.prototype._getHistoryListener=function(){return{onTransactionStart:this.onHistoryTransactionStart.bind(this),onTransactionEnd:this.onHistoryTransactionEnd.bind(this)}},q.prototype.onHistoryTransactionStart=function(){this.lockUpdateWithReload()},q.prototype.onHistoryTransactionEnd=function(){this.unlockUpdateWithReload()},q.prototype.lockUpdateWithReload=function(){this._updateWithModelReloadLockedCounter++},q.prototype.unlockUpdateWithReload=function(){this._updateWithModelReloadLockedCounter--,0===this._updateWithModelReloadLockedCounter&&this._pendingUpdateInfo&&(this.updateWithDataReload(this._pendingUpdateInfo.keepExpandState),this._pendingUpdateInfo=null)},q.prototype.initValidationController=function(){var Z=this,X=B.ValidationControllerSettings.parse({getViewModel:function(){return Z.viewModel},getHistory:function(){return Z.history},getModelManipulator:function(){return Z.modelManipulator},getRange:function(){return Z.range},getValidationSettings:function(){return Z.settings.validation},updateOwnerInAutoParentMode:function(){Z.updateOwnerInAutoParentMode()},getIsValidateDependenciesRequired:function(){return Z.isValidateDependenciesRequired()}});this.validationController=new P.ValidationController(X)},q.prototype.initTaskEditController=function(){var Z=this,X=R.TaskEditSettings.parse({destroyTemplate:function(M){Z.destroyTemplate(M)},formatDate:function(M){return Z.getDateFormat(M)},getRenderHelper:function(){return Z.renderHelper},getGanttSettings:function(){return Z.settings},getViewModel:function(){return Z.viewModel},getCommandManager:function(){return Z.commandManager},getModelManipulator:function(){return Z.modelManipulator},getValidationController:function(){return Z.validationController}});this.taskEditController=new k.TaskEditController(X)},Object.defineProperty(q.prototype,"taskAreaEventsListener",{get:function(){var Z;return null!==(Z=this._taskAreaEventsListener)&&void 0!==Z||(this._taskAreaEventsListener=new J.TaskAreaEventsListener(this)),this._taskAreaEventsListener},enumerable:!1,configurable:!0}),q.prototype.initFullScreenModeHelper=function(){var Z=this,X=u.FullScreenHelperSettings.parse({getMainElement:function(){return Z.getOwnerControlMainElement()},adjustControl:function(){Z.adjustOwnerControl()}});this.fullScreenModeHelper=new d.FullScreenModeHelper(X)},q.prototype.getDateRange=function(Z,X){var M=this.getVisibleAreaTime(),se=this.settings.startDateRange||s.DateUtils.adjustStartDateByViewType(new Date(Z.getTime()-M),this.settings.viewType,this.settings.firstDayOfWeek),ge=this.settings.endDateRange||s.DateUtils.adjustEndDateByViewType(new Date(X.getTime()+M),this.settings.viewType,this.settings.firstDayOfWeek);return this.settings.startDateRange&&se>ge?ge=se:this.settings.endDateRange&&se>ge&&(se=ge),new a.DateRange(se,ge)},q.prototype.getVisibleAreaTime=function(){return Math.ceil(this.renderHelper.getTaskAreaContainerWidth()/this.tickSize.width)*s.DateUtils.getTickTimeSpan(this.settings.viewType)},q.prototype.zoomIn=function(Z){void 0===Z&&(Z=this.renderHelper.getTaskAreaContainerWidth()/2),this.ganttViewApi.zoomIn(Z)},q.prototype.zoomOut=function(Z){void 0===Z&&(Z=this.renderHelper.getTaskAreaContainerWidth()/2),this.ganttViewApi.zoomOut(Z)},q.prototype.scrollToDate=function(Z){if(Z){var X=Z instanceof Date?s.DateUtils.getOrCreateUTCDate(Z):s.DateUtils.parse(Z);this.scrollToDateCore(X,0)}},q.prototype.showDialog=function(Z,X,M,se){this.ganttOwner.showDialog(Z,X,M,se)},q.prototype.showPopupMenu=function(Z){this.ganttOwner.showPopupMenu(Z)},q.prototype.hidePopupMenu=function(){this.ganttOwner.hidePopupMenu&&this.ganttOwner.hidePopupMenu()},q.prototype.collapseAll=function(){this.ganttOwner.collapseAll()},q.prototype.expandAll=function(){this.ganttOwner.expandAll()},q.prototype.onGanttViewContextMenu=function(Z,X,M){return this.ganttOwner.onGanttViewContextMenu(Z,X,M)},q.prototype.changeGanttTaskSelection=function(Z,X){this.ganttOwner.changeGanttTaskSelection(Z,X)},q.prototype.hideTaskEditControl=function(){this.taskEditController.hide()},q.prototype.scrollLeftByViewType=function(){var Z=s.DateUtils.roundStartDate(this.dataRange.start,this.settings.viewType);this.scrollToDateCore(Z,1)},q.prototype.scrollToDateCore=function(Z,X){this.renderHelper.setTaskAreaContainerScrollLeftToDate(Z,X)},q.prototype.onVisualModelChanged=function(){this.resetAndUpdate()},q.prototype.initializeStripLinesUpdater=function(){var Z=this;this.settings.stripLines.showCurrentTime&&(this.stripLinesUpdaterId=setInterval(function(){Z.renderHelper.recreateStripLines()},Math.max(this.settings.stripLines.currentTimeUpdateInterval,100)))},q.prototype.clearStripLinesUpdater=function(){this.stripLinesUpdaterId&&clearInterval(this.stripLinesUpdaterId),this.stripLinesUpdaterId=null},q.prototype.getGanttViewStartDate=function(Z){if(!Z)return new Date;var X=Z.map(function(M){return"string"==typeof M.start?new Date(M.start):M.start}).filter(function(M){return(0,x.isDefined)(M)});return X.length>0?X.reduce(function(M,se){return se<M?se:M},X[0]):new Date},q.prototype.getGanttViewEndDate=function(Z){if(!Z)return new Date;var X=Z.map(function(M){return"string"==typeof M.end?new Date(M.end):M.end}).filter(function(M){return(0,x.isDefined)(M)});return X.length>0?X.reduce(function(M,se){return se>M?se:M},X[0]):new Date},q.prototype.getTask=function(Z){return this.getViewItem(Z)?.task},q.prototype.getViewItem=function(Z){var X;return null===(X=this.viewModel)||void 0===X?void 0:X.items[Z]},q.prototype.isValidateDependenciesRequired=function(){return this.settings.validation.validateDependencies&&this.settings.showDependencies},q.prototype.updateTickSizeWidth=function(){this.tickSize.width=this.renderHelper.etalonScaleItemWidths*this.currentZoom},q.prototype.updateView=function(){this.onBeginUpdateView(),this.renderHelper.setTimeScaleContainerScrollLeft(this.taskAreaContainerScrollLeft),this.processScroll(!1),this.processScroll(!0),this.ganttOwner.onGanttScroll(this.taskAreaContainerScrollTop),this.onEndUpdateView()},q.prototype.onBeginUpdateView=function(){this[q.taskAreaScrollTopKey]=this.renderHelper.taskAreaContainerScrollTop,this[q.taskAreaScrollLeftKey]=this.renderHelper.taskAreaContainerScrollLeft},q.prototype.onEndUpdateView=function(){delete this[q.taskAreaScrollTopKey],delete this[q.taskAreaScrollLeftKey],delete this[q.taskTextHeightKey]},Object.defineProperty(q.prototype,"taskAreaContainerScrollTop",{get:function(){var Z;return null!==(Z=this[q.taskAreaScrollTopKey])&&void 0!==Z?Z:this.renderHelper.taskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"taskAreaContainerScrollLeft",{get:function(){var Z;return null!==(Z=this[q.taskAreaScrollLeftKey])&&void 0!==Z?Z:this.renderHelper.taskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),q.prototype.processScroll=function(Z){this.hideTaskEditControl(),this.renderHelper.processScroll(Z)},q.prototype.allowTaskAreaBorders=function(Z){return Z?this.settings.areHorizontalBordersEnabled:this.settings.areVerticalBordersEnabled},q.prototype.getScaleItemText=function(Z,X){return this.renderHelper.getScaleItemText(Z,X)},q.prototype.getTaskText=function(Z){return this.renderHelper.getTaskText(Z)},q.prototype.rowHasChildren=function(Z){return this.getViewItem(Z)?.children.length>0},q.prototype.rowHasSelection=function(Z){return this.getViewItem(Z)?.selected},q.prototype.getAllVisibleTaskIndices=function(Z,X){return this.viewModel.getAllVisibleTaskIndices(Z,X)},q.prototype.getVisibleDependencyKeysByTaskRange=function(Z){var X=this.viewModel,M=Z.map(function(se){return X.tasks.items[se].internalId});return X.dependencies.items.filter(function(se){return M.indexOf(se.successorId)>-1||M.indexOf(se.predecessorId)>-1}).map(function(se){return se.internalId})},q.prototype.getTreeListTableStyle=function(){var Z,X;return null===(X=(Z=this.ganttOwner).getTreeListTableStyle)||void 0===X?void 0:X.call(Z)},q.prototype.getTreeListColCount=function(){var Z,X;return null===(X=(Z=this.ganttOwner).getTreeListColCount)||void 0===X?void 0:X.call(Z)},q.prototype.getTreeListHeaderInfo=function(Z){var X,M;return null===(M=(X=this.ganttOwner).getTreeListHeaderInfo)||void 0===M?void 0:M.call(X,Z)},q.prototype.getTreeListCellInfo=function(Z,X,M){var se,ge;return null===(ge=(se=this.ganttOwner).getTreeListCellInfo)||void 0===ge?void 0:ge.call(se,Z,X,M)},q.prototype.getTreeListEmptyDataCellInfo=function(){var Z,X;return null===(X=(Z=this.ganttOwner).getTreeListEmptyDataCellInfo)||void 0===X?void 0:X.call(Z)},q.prototype.exportToPdf=function(Z){var X;return null!==(X=Z.docCreateMethod)&&void 0!==X||(Z.docCreateMethod=this.getDefaultPdfDocCreateMethod()),new E.PdfGanttExporter(new h.GanttExportCalculator(this,Z)).export()},q.prototype.getDefaultPdfDocCreateMethod=function(){var Z;return null===(Z=window.jspdf)||void 0===Z?void 0:Z.jsPDF},q.prototype.getTaskDependencies=function(Z){return this.viewModel.dependencies.items.filter(function(X){return X.predecessorId==Z||X.successorId==Z})},q.prototype.isHighlightRowElementAllowed=function(Z){var X=this.getViewItem(Z);return Z%2!=0&&this.settings.areAlternateRowsEnabled||X?.children.length>0},q.prototype.calculateAutoViewType=function(Z,X){var M=(X.getTime()-Z.getTime())/36e5;return M>8760?W.ViewType.Years:M>720?W.ViewType.Months:M>168?W.ViewType.Weeks:M>24?W.ViewType.Days:M>6?W.ViewType.SixHours:M>1?W.ViewType.Hours:W.ViewType.TenMinutes},q.prototype.getExternalTaskAreaContainer=function(Z){return this.ganttOwner.getExternalTaskAreaContainer(Z)},q.prototype.prepareExternalTaskAreaContainer=function(Z,X){return this.ganttOwner.prepareExternalTaskAreaContainer(Z,X)},q.prototype.getHeaderHeight=function(){return this.ganttOwner.getHeaderHeight()},q.prototype.changeTaskExpanded=function(Z,X){var M=this.getTaskByPublicId(Z);M&&this.viewModel.changeTaskExpanded(M.internalId,X)},q.prototype.expandTask=function(Z){this.viewModel.changeTaskExpanded(Z,!0)},q.prototype.collapseTask=function(Z){this.viewModel.changeTaskExpanded(Z,!1)},q.prototype.showTask=function(Z){this.viewModel.changeTaskVisibility(Z,!0)},q.prototype.hideTask=function(Z){this.viewModel.changeTaskVisibility(Z,!1)},q.prototype.getTaskVisibility=function(Z){return this.viewModel.getTaskVisibility(Z)},q.prototype.unselectCurrentSelectedTask=function(){this.unselectTask(this.currentSelectedTaskID)},q.prototype.getTaskSelected=function(Z){return this.viewModel.getTaskSelected(Z)},q.prototype.setViewType=function(Z,X){void 0===X&&(X=!0),this.ganttViewApi.setViewType(Z,X)},q.prototype.setViewTypeRange=function(Z,X){this.ganttViewApi.setViewTypeRange(Z,X)},q.prototype.setTaskTitlePosition=function(Z){this.settings.taskTitlePosition!==Z&&(this.settings.taskTitlePosition=Z,this.resetAndUpdate())},q.prototype.setShowResources=function(Z){this.settings.showResources!==Z&&(this.settings.showResources=Z,this.resetAndUpdate())},q.prototype.toggleResources=function(){this.setShowResources(!this.settings.showResources)},q.prototype.setShowDependencies=function(Z){this.settings.showDependencies!==Z&&(this.settings.showDependencies=Z,this.resetAndUpdate())},q.prototype.toggleDependencies=function(){this.setShowDependencies(!this.settings.showDependencies)},q.prototype.setFirstDayOfWeek=function(Z){this.settings.firstDayOfWeek!==Z&&(this.settings.firstDayOfWeek=Z,this.resetAndUpdate())},q.prototype.setStartDateRange=function(Z){p.DateTimeUtils.areDatesEqual(this.settings.startDateRange,Z)||(this.settings.startDateRange=new Date(Z),this.resetAndUpdate())},q.prototype.setEndDateRange=function(Z){p.DateTimeUtils.areDatesEqual(this.settings.endDateRange,Z)||(this.settings.endDateRange=new Date(Z),this.resetAndUpdate())},q.prototype.loadOptionsFromGanttOwner=function(){var Z,X=this;this.tickSize.height=this.ganttOwner.getRowHeight();var M=this.ganttOwner.getGanttTasksData();this.dataRange=new a.DateRange(this.getGanttViewStartDate(M),this.getGanttViewEndDate(M)),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 b.ModelChangesDispatcher;var se=this.ganttOwner.getModelChangesListener();se&&this.dispatcher.onModelChanged.add(se),this.viewModel=new N.ViewVisualModel(this,M,this.ganttOwner.getGanttDependenciesData(),this.ganttOwner.getGanttResourcesData(),this.ganttOwner.getGanttResourceAssignmentsData(),this.range,this.ganttOwner.getGanttWorkTimeRules()),this.modelManipulator=new y.ModelManipulator(this.viewModel,this.dispatcher),null===(Z=this.history)||void 0===Z||Z.historyItems.forEach(function(ge){return ge.setModelManipulator(X.modelManipulator)})},q.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()},q.prototype.cleanMarkup=function(){this.renderHelper.taskAreaManagerDetachEvents(),this.taskEditController.detachEvents(),this.clearStripLinesUpdater(),this.renderHelper.reset(),clearTimeout(this._scrollTimeOut)},q.prototype.checkAndProcessModelChanges=function(){var Z=this.ganttOwner.getGanttTasksData(),X=this.viewModel.refreshTaskDataIfRequires(Z);return X&&this.resetAndUpdate(),X},q.prototype.updateHistoryObsoleteInsertedKey=function(Z,X,M){var se;null===(se=this.history)||void 0===se||se.updateObsoleteInsertedKey(Z,X,M),M===ee.GanttDataObjectNames.dependency&&this.renderHelper.updateRenderedConnectorLinesId(Z,X)},q.prototype.updateRowHeights=function(Z){if(this.tickSize.height!==Z){this.tickSize.height=Z;var X=this.renderHelper.getTaskAreaContainerScrollLeft();this.resetAndUpdate(),this.renderHelper.setTaskAreaContainerScrollLeft(X)}},q.prototype.selectTask=function(Z){this.selectDependency(null),this.viewModel.changeTaskSelected(Z,!0),this.currentSelectedTaskID=Z,this.updateBarManager()},q.prototype.unselectTask=function(Z){this.viewModel.changeTaskSelected(Z,!1),this.updateBarManager()},q.prototype.selectTaskById=function(Z){this.unselectCurrentSelectedTask();var X=this.getTaskByPublicId(Z);X&&this.selectTask(X.internalId)},q.prototype.selectDependency=function(Z){this.taskEditController.selectDependency(Z),this.renderHelper.createConnectorLines()},q.prototype.getTaskAreaContainer=function(){return this.renderHelper.taskAreaContainer},q.prototype.setWidth=function(Z){this.renderHelper.setMainElementWidth(Z)},q.prototype.setHeight=function(Z){this.renderHelper.setMainElementHeight(Z)},q.prototype.setAllowSelection=function(Z){this.settings.allowSelectTask=Z},q.prototype.setEditingSettings=function(Z){this.settings.editing=Z,this.updateBarManager()},q.prototype.setValidationSettings=function(Z){this.settings.validation=Z},q.prototype.setRowLinesVisible=function(Z){this.settings.areHorizontalBordersEnabled=Z,this.renderHelper.prepareTaskAreaContainer(),this.resetAndUpdate()},q.prototype.setStripLines=function(Z){this.settings.stripLines=T.StripLineSettings.parse(Z),this.clearStripLinesUpdater(),this.initializeStripLinesUpdater(),this.renderHelper.recreateStripLines()},q.prototype.deleteTask=function(Z){var X=this.getTaskByPublicId(Z.toString());X&&this.commandManager.removeTaskCommand.execute(X.internalId,!1,!0)},q.prototype.insertTask=function(Z){if(Z){var X=null!=Z.parentId?String(Z.parentId):null,M=this.getTaskByPublicId(X),se=this.viewModel.getRootTaskId(),ge="string"==typeof Z.start?new Date(Z.start):Z.start,De="string"==typeof Z.end?new Date(Z.end):Z.end,Fe={parentId:se&&X===se?X:M?.internalId,title:Z.title,start:ge,end:De,progress:parseInt(Z.progress)||0,color:Z.color};if(this.commandManager.createTaskCommand.execute(Fe))return this.getLastInsertedTaskId()}return""},q.prototype.updateTask=function(Z,X){var M=this.getTaskByPublicId(Z.toString()),se=this._getTaskDataForUpdate(X,M);se&&this.commandManager.updateTaskCommand.execute(M.internalId,se)},q.prototype.getTaskData=function(Z){var X=this.getTaskByPublicId(Z.toString());if(X)return this.viewModel.getTaskObjectForDataSource(X)},q.prototype.insertDependency=function(Z){if(Z){var X=String(Z.predecessorId),M=this.getTaskByPublicId(X),se=String(Z.successorId),ge=this.getTaskByPublicId(se),De=Z.type;M&&ge&&this.validationController.canCreateDependency(X,se)&&this.commandManager.createDependencyCommand.execute(M.internalId,ge.internalId,De)}},q.prototype.deleteDependency=function(Z){var X=this.viewModel.convertPublicToInternalKey("dependency",Z);(0,x.isDefined)(X)&&this.commandManager.removeDependencyCommand.execute(X)},q.prototype.getDependencyData=function(Z){return this.viewModel.getDependencyObjectForDataSource(Z)},q.prototype.insertResource=function(Z,X){var M=this;Z&&this.commandManager.createResourceCommand.execute(String(Z.text),Z.color&&String(Z.color),function(se){if((0,x.isDefined)(X))for(var ge=0;ge<X.length;ge++)M.assignResourceToTask(se,X[ge])})},q.prototype.deleteResource=function(Z){var X=this.viewModel.convertPublicToInternalKey("resource",Z);(0,x.isDefined)(X)&&this.commandManager.removeResourceCommand.execute(X)},q.prototype.assignResourceToTask=function(Z,X){var M=this.viewModel.convertPublicToInternalKey("resource",Z),se=this.viewModel.convertPublicToInternalKey("task",X);(0,x.isDefined)(M)&&(0,x.isDefined)(se)&&this.commandManager.assignResourceCommand.execute(M,se)},q.prototype.unassignResourceFromTask=function(Z,X){var M=this.viewModel.findAssignment(Z,X);M&&this.commandManager.deassignResourceCommand.execute(M.internalId)},q.prototype.unassignAllResourcesFromTask=function(Z){var X=this,M=this.viewModel.convertPublicToInternalKey("task",Z);this.viewModel.findAllTaskAssignments(M).forEach(function(se){return X.commandManager.deassignResourceCommand.execute(se.internalId)})},q.prototype.getResourceData=function(Z){return this.viewModel.getResourceObjectForDataSource(Z)},q.prototype.getResourceAssignmentData=function(Z){return this.viewModel.getResourceAssignmentObjectForDataSource(Z)},q.prototype.getTaskResources=function(Z){var X=this.viewModel,M=X.getItemByPublicId("task",Z);return M&&X.getAssignedResources(M).items},q.prototype.getVisibleTaskKeys=function(){return this.viewModel.getVisibleTasks().map(function(Z){return Z.id})},q.prototype.getVisibleDependencyKeys=function(){return this.viewModel.getVisibleDependencies().map(function(Z){return Z.id})},q.prototype.getVisibleResourceKeys=function(){return this.viewModel.getVisibleResources().map(function(Z){return Z.id})},q.prototype.getVisibleResourceAssignmentKeys=function(){return this.viewModel.getVisibleResourceAssignments().map(function(Z){return Z.id})},q.prototype.getTasksExpandedState=function(){return this.viewModel.getTasksExpandedState()},q.prototype.applyTasksExpandedState=function(Z){this.viewModel.applyTasksExpandedState(Z)},q.prototype.updateWithDataReload=function(Z){if(this._updateWithModelReloadLockedCounter>0)this._pendingUpdateInfo={keepExpandState:Z};else{var X=Z&&this.getTasksExpandedState();this.loadOptionsFromGanttOwner(),Z?this.applyTasksExpandedState(X):this.resetAndUpdate();var M=j.DialogBase.activeInstance;M&&M.canRefresh&&"TaskEdit"===M.getDialogName()&&M.refresh()}},q.prototype.onBrowserWindowResize=function(){this.fullScreenModeHelper.isInFullScreenMode?this.fullScreenModeHelper.adjustControlInFullScreenMode():this.adjustOwnerControl()},q.prototype.setTaskValue=function(Z,X,M){var se=this.commandManager.updateTaskCommand,ge=this.getTaskByPublicId(Z),De={};return ge&&("title"===X&&(De[X]=M||""),"progress"===X&&(De[X]=M),"start"===X&&(De[X]=p.DateTimeUtils.getMinDate(M,ge.end)),"end"===X&&(De[X]=p.DateTimeUtils.getMaxDate(M,ge.start))),Object.keys(De).length>0&&se.execute(ge.internalId,De)},q.prototype.getLastInsertedTaskId=function(){var Z=this.history.historyItems.filter(function(M){return M instanceof f.CreateTaskHistoryItem}),X=Z[Z.length-1];return X&&X.insertedKey},q.prototype.getTaskByPublicId=function(Z){return this.viewModel.tasks.getItemByPublicId(Z)},q.prototype.getPrevTask=function(Z){var X=this.viewModel.findItem(Z),M=(X.parent||this.viewModel.root).children.indexOf(X)-1;return M>-1?X.parent.children[M].task:X.parent.task},q.prototype.getTaskIdByInternalId=function(Z){var X=this.viewModel.findItem(Z),M=X&&X.task;return M?M.id:null},q.prototype.isTaskHasChildren=function(Z){var X=this.viewModel.findItem(Z);return X&&X.children.length>0},q.prototype.requireFirstLoadParentAutoCalc=function(){var Z=this.ganttOwner;return Z.getRequireFirstLoadParentAutoCalc&&Z.getRequireFirstLoadParentAutoCalc()},q.prototype.updateOwnerInAutoParentMode=function(){this.viewModel.parentAutoCalc&&this.dispatcher.notifyParentDataRecalculated(this.viewModel.getCurrentTaskData())},q.prototype.getOwnerControlMainElement=function(){var Z=this.ganttOwner;return Z.getMainElement&&Z.getMainElement()},q.prototype.adjustOwnerControl=function(){var Z=this.ganttOwner;Z.adjustControl&&Z.adjustControl()},q.prototype.applySettings=function(Z,X){void 0===X&&(X=!1);var M=O.Settings.parse(Z),se=X||this.settings.equal(M);this.settings=M,se||this.resetAndUpdate()},q.prototype.getDataUpdateErrorCallback=function(){var Z=this,X=this.history,M=X.getCurrentProcessingItemInfo();return function(){Z.dispatcher.lock(),X.rollBackAndRemove(M),Z.dispatcher.unlock(),Z.updateBarManager()}},q.prototype.setTaskTooltipContentTemplate=function(Z){this.settings.taskTooltipContentTemplate=Z},q.prototype.setTaskProgressTooltipContentTemplate=function(Z){this.settings.taskProgressTooltipContentTemplate=Z},q.prototype.setTaskTimeTooltipContentTemplate=function(Z){this.settings.taskTimeTooltipContentTemplate=Z},q.prototype.setTaskContentTemplate=function(Z){this.settings.taskContentTemplate=Z},q.prototype.updateBarManager=function(){this.barManager.updateItemsState([])},q.prototype.onTaskAreaClick=function(Z,X){var M,se=this.viewModel.items[Z];return se&&this.onTaskClick(null===(M=se.task)||void 0===M?void 0:M.id,X)},q.prototype.onTaskAreaDblClick=function(Z,X){var M=this.viewModel.items[Z];M&&this.onTaskDblClick(M.task.id,X)&&this.commandManager.showTaskEditDialog.execute(M.task)},q.prototype.onTaskAreaContextMenu=function(Z,X,M){var se,ge,Fe=X,Ae=this.viewModel,ne="dependency"===M?Ae.convertInternalToPublicKey("dependency",U.EvtUtils.getEventSource(X).getAttribute("dependency-id")):null===(ge=null===(se=Ae.items[Z])||void 0===se?void 0:se.task)||void 0===ge?void 0:ge.id;if(this.onGanttViewContextMenu(X,ne,M)){var fe={event:X,type:M,key:ne,position:new Y.Point(U.EvtUtils.getEventX(Fe),U.EvtUtils.getEventY(Fe))};this.showPopupMenu(fe)}},q.prototype.onTaskSelectionChanged=function(Z,X){var M=this,se=this.viewModel.items[Z];this.isFocus=K.DomUtils.isItParent(this.renderHelper.taskArea,U.EvtUtils.getEventSource(X)),se&&this.isFocus&&this.settings.allowSelectTask&&setTimeout(function(){M.changeGanttTaskSelection(se.task.id,!0)},0)},q.prototype.onTaskClick=function(Z,X){return!this.ganttOwner.onTaskClick||this.ganttOwner.onTaskClick(Z,X)},q.prototype.onTaskDblClick=function(Z,X){return!this.ganttOwner.onTaskDblClick||this.ganttOwner.onTaskDblClick(Z,X)},q.prototype.getDateFormat=function(Z){return this.ganttOwner.getFormattedDateText?this.ganttOwner.getFormattedDateText(Z):this.getDefaultDateFormat(Z)},q.prototype.getDefaultDateFormat=function(Z){return("0"+Z.getDate()).slice(-2)+"/"+("0"+(Z.getMonth()+1)).slice(-2)+"/"+Z.getFullYear()+" "+("0"+Z.getHours()).slice(-2)+":"+("0"+Z.getMinutes()).slice(-2)},q.prototype.destroyTemplate=function(Z){this.ganttOwner.destroyTemplate?this.ganttOwner.destroyTemplate(Z):Z.innerHTML=""},q.prototype.onTaskAreaSizeChanged=function(Z){this.ganttOwner.onTaskAreaSizeChanged&&this.ganttOwner.onTaskAreaSizeChanged(Z)},q.prototype.showTaskEditDialog=function(){this.commandManager.showTaskEditDialog.execute()},q.prototype.showTaskDetailsDialog=function(Z){var X=this.getTaskByPublicId(Z);X&&this.commandManager.showTaskEditDialog.execute(X,!0)},q.prototype.showResourcesDialog=function(){this.commandManager.showResourcesDialog.execute()},q.prototype.getCommandByKey=function(Z){return this.commandManager.getCommand(Z)},q.prototype._getTaskDataForUpdate=function(Z,X){var M={};return X&&Z&&((0,x.isDefined)(Z.title)&&Z.title!==X.title&&(M.title=Z.title),(0,x.isDefined)(Z.progress)&&Z.progress!==X.progress&&(M.progress=Z.progress),(0,x.isDefined)(Z.start)&&Z.start!==X.start&&(M.start=Z.start),(0,x.isDefined)(Z.end)&&Z.end!==X.end&&(M.end=Z.end),(0,x.isDefined)(Z.color)&&Z.color!==X.color&&(M.color=Z.color)),Object.keys(M).length>0?M:null},q.prototype.updateViewDataRange=function(){var Z=this.viewModel,X=Z.getTaskMinStart(),M=Z.getTaskMaxEnd(),se=X.getTime()<this.dataRange.start.getTime(),ge=M.getTime()>this.dataRange.end.getTime();se&&(this.dataRange.start=X),ge&&(this.dataRange.end=M),(se||ge)&&this.resetAndUpdate()},q.taskAreaScrollLeftKey=(q.cachedPrefix="cached_")+"taskAreaScrollLeft",q.taskAreaScrollTopKey=q.cachedPrefix+"taskAreaScrollTop",q.taskTextHeightKey=q.cachedPrefix+"taskTextHeight",q}();l.GanttView=G},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Resource=void 0;var c=o(0),I=o(1),C=function(f){function a(){var p=f.call(this)||this;return p.text="",p.color="",p}return c.__extends(a,f),a.prototype.assignFromObject=function(p){(0,I.isDefined)(p)&&(f.prototype.assignFromObject.call(this,p),this.text=p.text,(0,I.isDefined)(p.color)&&(this.color=p.color))},a}(o(2).DataObject);l.Resource=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourceAssigningArguments=void 0;var c=o(0),I=function(C){function f(a,p){var s=C.call(this,null)||this;return s.values={resourceId:a,taskId:p},s}return c.__extends(f,C),Object.defineProperty(f.prototype,"resourceId",{get:function(){return this.values.resourceId},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"taskId",{get:function(){return this.values.taskId},enumerable:!1,configurable:!0}),f}(o(11).BaseArguments);l.ResourceAssigningArguments=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.AssignResourceHistoryItem=void 0;var c=o(0),I=o(14),C=o(2),f=o(18),a=function(p){function s(u,d,h){var g=p.call(this,u)||this;return g.resourceId=d,g.taskId=h,g}return c.__extends(s,p),s.prototype.redo=function(){var u;null!==(u=this.insertedKey)&&void 0!==u||(this.insertedKey=f.MathUtils.generateGuid()),this.modelManipulator.resource.assign(this.resourceId,this.taskId,this.insertedKey)},s.prototype.undo=function(){this.modelManipulator.resource.deassig(this.insertedKey)},Object.defineProperty(s.prototype,"keyUpdaters",{get:function(){var u=this;return[{objectType:C.GanttDataObjectNames.resourceAssignment,getKey:function(){return u.insertedKey},updateKey:function(d){return u.insertedKey=d}},{objectType:C.GanttDataObjectNames.task,getKey:function(){return u.taskId},updateKey:function(d){return u.taskId=d}},{objectType:C.GanttDataObjectNames.resource,getKey:function(){return u.resourceId},updateKey:function(d){return u.resourceId=d}}]},enumerable:!1,configurable:!0}),s}(I.HistoryItem);l.AssignResourceHistoryItem=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DependencyCommandBase=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p}(I.CommandBase);l.DependencyCommandBase=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskInsertingArguments=void 0;var c=o(0),I=function(C){function f(a,p){var s=C.call(this,a)||this;return s.values=p??{},s}return c.__extends(f,C),Object.defineProperty(f.prototype,"start",{get:function(){return this.values.start},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"end",{get:function(){return this.values.end},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"title",{get:function(){return this.values.title},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"progress",{get:function(){return this.values.progress},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"parentId",{get:function(){return this.values.parentId},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"color",{get:function(){return this.values.color},enumerable:!1,configurable:!0}),f}(o(11).BaseArguments);l.TaskInsertingArguments=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.UpdateTaskHistoryItem=void 0;var c=o(0),I=o(2),C=o(14),f=o(54),a=function(p){function s(u,d,h){var g=p.call(this,u)||this;return g.taskId=d,g.newValues=h,g}return c.__extends(s,p),s.prototype.redo=function(){var u=this.modelManipulator.task.update(this.taskId,this.newValues);this.oldState=new f.HistoryItemState(this.taskId,u)},s.prototype.undo=function(){this.modelManipulator.task.update(this.taskId,this.oldState.value)},Object.defineProperty(s.prototype,"keyUpdaters",{get:function(){var u=this;return[{objectType:I.GanttDataObjectNames.task,getKey:function(){return u.taskId},updateKey:function(d){return u.taskId=d}}]},enumerable:!1,configurable:!0}),s}(C.HistoryItem);l.UpdateTaskHistoryItem=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.HistoryItemState=void 0,l.HistoryItemState=function(I,C){this.id=I,this.value=C}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Time=void 0;var c=function(){function I(C,f,a,p){void 0===C&&(C=0),void 0===f&&(f=0),void 0===a&&(a=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=f,this.sec=a,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}();l.Time=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TimeRange=void 0;var c=o(8),I=function(){function C(f,a){c.DateTimeUtils.caclTimeDifference(f,a)>=0?(this._start=f,this._end=a):(this._start=a,this._end=f)}return Object.defineProperty(C.prototype,"start",{get:function(){return this._start},set:function(f){f&&c.DateTimeUtils.caclTimeDifference(f,this._end)>=0&&(this._start=f)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"end",{get:function(){return this._end},set:function(f){f&&c.DateTimeUtils.caclTimeDifference(this._start,f)>=0&&(this._end=f)},enumerable:!1,configurable:!0}),C.prototype.isTimeInRange=function(f){return c.DateTimeUtils.caclTimeDifference(this._start,f)>=0&&c.DateTimeUtils.caclTimeDifference(f,this._end)>=0},C.prototype.hasIntersect=function(f){return this.isTimeInRange(f.start)||this.isTimeInRange(f.end)||f.isTimeInRange(this.start)||f.isTimeInRange(this.end)},C.prototype.concatWith=function(f){return!!this.hasIntersect(f)&&(this.start=c.DateTimeUtils.getMinTime(this.start,f.start),this.end=c.DateTimeUtils.getMaxTime(this.end,f.end),!0)},C}();l.TimeRange=I},function(he,l,o){"use strict";var c;Object.defineProperty(l,"__esModule",{value:!0}),l.DayOfWeekMonthlyOccurrence=void 0,(c=l.DayOfWeekMonthlyOccurrence||(l.DayOfWeekMonthlyOccurrence={}))[c.First=0]="First",c[c.Second=1]="Second",c[c.Third=2]="Third",c[c.Forth=3]="Forth",c[c.Last=4]="Last"},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GridElementInfo=void 0;var c=o(5),I=o(12),C=o(127),f=function(){function a(p,s,u){this.id=a.id++,this.position=new c.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),s&&this.setPosition(s),u&&this.setSize(u)}return a.prototype.setSize=function(p){this.size.width=p.width,this.size.height=p.height},a.prototype.setPosition=function(p){this.position.x=p.x,this.position.y=p.y},a.prototype.assignToElement=function(p){this.assignPosition(p),this.assignSize(p),this.assignMargins(p),this.className&&(p.className=this.className)},a.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")},a.prototype.assignSize=function(p){this.size.width&&(p.style.width=this.size.width+"px"),this.size.height&&(p.style.height=this.size.height+"px")},a.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")},a.prototype.setAttribute=function(p,s){this.attr[p]=s},a.id=0,a}();l.GridElementInfo=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.StripLine=void 0;var c=o(1),I=function(){function C(f,a,p,s,u){this.isCurrent=!1,this.start=f,this.end=a,this.title=p,this.cssClass=s,this.isCurrent=u}return C.parse=function(f){var a=new C;return f&&((0,c.isDefined)(f.start)&&(a.start=f.start),(0,c.isDefined)(f.end)&&(a.end=f.end),(0,c.isDefined)(f.title)&&(a.title=f.title),(0,c.isDefined)(f.cssClass)&&(a.cssClass=f.cssClass)),a},C.prototype.clone=function(){return new C(this.start,this.end,this.title,this.cssClass,this.isCurrent)},C.prototype.equal=function(f){var a=!0;return(a=(a=(a=a&&this.start==f.start)&&this.end==f.end)&&this.title==f.title)&&this.cssClass==f.cssClass},C}();l.StripLine=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PdfDependencyLineInfo=void 0;var c=o(5),I=o(17),C=function(){function f(){}return f.prototype.assign=function(a){var p;this._copyPoints(a.points),this.arrowInfo=a.arrowInfo,null!==(p=this.fillColor)&&void 0!==p||(this.fillColor=new I.Color),this.fillColor.assign(a.fillColor)},f.prototype._copyPoints=function(a){var p=this;this.points=new Array,a?.forEach(function(s){return p.points.push(new c.Point(s.x,s.y))})},f}();l.PdfDependencyLineInfo=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PdfTaskResourcesInfo=void 0;var c=o(1),I=o(26),C=function(){function f(a,p,s,u){a&&(this.text=a),p&&(this.style=new I.StyleDef(p)),(0,c.isDefined)(s)&&(this.x=s),(0,c.isDefined)(u)&&(this.y=u)}return f.prototype.assign=function(a){this.text=a.text,this.style=new I.StyleDef(a.style),this.x=a.x,this.y=a.y},f}();l.PdfTaskResourcesInfo=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Width=void 0;var c=o(35),I=o(3),C=function(){function f(a){this.assign(a)}return f.prototype.assign=function(a){if(a instanceof f)this._widthInternal=a._widthInternal;else{var p="number"==typeof a?a:parseInt(a);isNaN(p)?this.assignFromString(a):this._widthInternal=p}},f.prototype.assignFromString=function(a){if(a){var p=I.DomUtils.pxToInt(a);this._widthInternal=p||c.PredefinedStyles.getPredefinedStringOrUndefined(a,c.PredefinedStyles.width)}},f.prototype.hasValue=function(){return!!this._widthInternal},f.prototype.getValue=function(){return this._widthInternal},f}();l.Width=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PdfTimeMarkerInfo=void 0;var c=o(5),I=o(12),C=o(1),f=o(17),a=function(){function p(s,u,d,h,g){this.lineColor=new f.Color,this.color=new f.Color,s&&(this.start=new c.Point(s.x,s.y)),u&&(this.size=new I.Size(u.width,u.height)),d&&this.color.assign(d),h&&this.lineColor.assign(h),(0,C.isDefined)(g)&&(this.isStripLine=g)}return p.prototype.assign=function(s){var u,d,h,g;s&&(this.start=new c.Point(null===(u=s.start)||void 0===u?void 0:u.x,null===(d=s.start)||void 0===d?void 0:d.y),this.size=new I.Size(null===(h=s.size)||void 0===h?void 0:h.width,null===(g=s.size)||void 0===g?void 0:g.height),this.isStripLine=s.isStripLine,this.color.assign(s.color),this.lineColor.assign(s.lineColor))},p}();l.PdfTimeMarkerInfo=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.EllipsisHelper=void 0;var c=function(){function I(){}return I.limitPdfTextWithEllipsis=function(C,f,a){if(!f?.getTextWidth||!a)return C;if(f.getTextWidth(C.toString())>a){for(var p=C,s=C.length-1;f.getTextWidth(p)>a&&s>0;)p=p.substring(0,s)+I.ellipsis,s--;return p}return C},I.ellipsis="...",I}();l.EllipsisHelper=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TooltipSettings=void 0;var c=o(1),I=function(){function C(){}return C.parse=function(f){var a=new C;return f&&((0,c.isDefined)(f.getHeaderHeight)&&(a.getHeaderHeight=f.getHeaderHeight),(0,c.isDefined)(f.getTaskTooltipContentTemplate)&&(a.getTaskTooltipContentTemplate=f.getTaskTooltipContentTemplate),(0,c.isDefined)(f.getTaskProgressTooltipContentTemplate)&&(a.getTaskProgressTooltipContentTemplate=f.getTaskProgressTooltipContentTemplate),(0,c.isDefined)(f.getTaskTimeTooltipContentTemplate)&&(a.getTaskTimeTooltipContentTemplate=f.getTaskTimeTooltipContentTemplate),(0,c.isDefined)(f.destroyTemplate)&&(a.destroyTemplate=f.destroyTemplate),(0,c.isDefined)(f.formatDate)&&(a.formatDate=f.formatDate)),a},C}();l.TooltipSettings=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.KeyCode=l.ModifierKey=l.KeyUtils=void 0;var c,I,s,C=o(10),f=o(171),a=o(39),p=function(){function s(){}return s.getKeyModifiers=function(u){var d=0;return u.altKey&&(d|=c.Alt),u.ctrlKey&&(d|=c.Ctrl),u.shiftKey&&(d|=c.Shift),u.metaKey&&(d|=c.Meta),d},s.getShortcutCode=function(u,d,h,g,x){var b=u;return b|=d?c.Ctrl:0,b|=h?c.Shift:0,(b|=g?c.Alt:0)|(x?c.Meta:0)},s.getShortcutCodeByEvent=function(u){return s.getShortcutCode(s.getEventKeyCode(u),u.ctrlKey,u.shiftKey,u.altKey,!!C.Browser.MacOSPlatform&&u.metaKey)},s.getEventKeyCode=function(u){return C.Browser.NetscapeFamily||C.Browser.Opera?u.which:u.keyCode},s.parseShortcutString=function(u){if(!u)return 0;var d=!1,h=!1,g=!1,x=!1,b=null,y=u.toString().split("+");if(y.length>0)for(var E=0;E<y.length;E++){var S=a.StringUtils.trim(y[E].toUpperCase());switch(S){case"CONTROL":case"CONTROLKEY":case"CTRL":d=!0;break;case"SHIFT":case"SHIFTKEY":h=!0;break;case"ALT":g=!0;break;case"CMD":x=!0;break;case"F1":b=I.F1;break;case"F2":b=I.F2;break;case"F3":b=I.F3;break;case"F4":b=I.F4;break;case"F5":b=I.F5;break;case"F6":b=I.F6;break;case"F7":b=I.F7;break;case"F8":b=I.F8;break;case"F9":b=I.F9;break;case"F10":b=I.F10;break;case"F11":b=I.F11;break;case"F12":b=I.F12;break;case"RETURN":case"ENTER":b=I.Enter;break;case"HOME":b=I.Home;break;case"END":b=I.End;break;case"LEFT":b=I.Left;break;case"RIGHT":b=I.Right;break;case"UP":b=I.Up;break;case"DOWN":b=I.Down;break;case"PAGEUP":b=I.PageUp;break;case"PAGEDOWN":b=I.PageDown;break;case"SPACE":b=I.Space;break;case"TAB":b=I.Tab;break;case"BACKSPACE":case"BACK":b=I.Backspace;break;case"CONTEXT":b=I.ContextMenu;break;case"ESCAPE":case"ESC":b=I.Esc;break;case"DELETE":case"DEL":b=I.Delete;break;case"INSERT":case"INS":b=I.Insert;break;case"PLUS":b="+".charCodeAt(0);break;default:b=S.charCodeAt(0)}}else alert(f.EncodeUtils.decodeViaTextArea("Invalid shortcut"));return s.getShortcutCode(b,d,h,g,x)},s}();l.KeyUtils=p,(s=c=l.ModifierKey||(l.ModifierKey={}))[s.None=0]="None",s[s.Ctrl=65536]="Ctrl",s[s.Shift=262144]="Shift",s[s.Alt=1048576]="Alt",s[s.Meta=16777216]="Meta",function(s){s[s.Backspace=8]="Backspace",s[s.Tab=9]="Tab",s[s.Enter=13]="Enter",s[s.Pause=19]="Pause",s[s.CapsLock=20]="CapsLock",s[s.Esc=27]="Esc",s[s.Space=32]="Space",s[s.PageUp=33]="PageUp",s[s.PageDown=34]="PageDown",s[s.End=35]="End",s[s.Home=36]="Home",s[s.Left=37]="Left",s[s.Up=38]="Up",s[s.Right=39]="Right",s[s.Down=40]="Down",s[s.Insert=45]="Insert",s[s.Delete=46]="Delete",s[s.Key_0=48]="Key_0",s[s.Key_1=49]="Key_1",s[s.Key_2=50]="Key_2",s[s.Key_3=51]="Key_3",s[s.Key_4=52]="Key_4",s[s.Key_5=53]="Key_5",s[s.Key_6=54]="Key_6",s[s.Key_7=55]="Key_7",s[s.Key_8=56]="Key_8",s[s.Key_9=57]="Key_9",s[s.Key_a=65]="Key_a",s[s.Key_b=66]="Key_b",s[s.Key_c=67]="Key_c",s[s.Key_d=68]="Key_d",s[s.Key_e=69]="Key_e",s[s.Key_f=70]="Key_f",s[s.Key_g=71]="Key_g",s[s.Key_h=72]="Key_h",s[s.Key_i=73]="Key_i",s[s.Key_j=74]="Key_j",s[s.Key_k=75]="Key_k",s[s.Key_l=76]="Key_l",s[s.Key_m=77]="Key_m",s[s.Key_n=78]="Key_n",s[s.Key_o=79]="Key_o",s[s.Key_p=80]="Key_p",s[s.Key_q=81]="Key_q",s[s.Key_r=82]="Key_r",s[s.Key_s=83]="Key_s",s[s.Key_t=84]="Key_t",s[s.Key_u=85]="Key_u",s[s.Key_v=86]="Key_v",s[s.Key_w=87]="Key_w",s[s.Key_x=88]="Key_x",s[s.Key_y=89]="Key_y",s[s.Key_z=90]="Key_z",s[s.Windows=91]="Windows",s[s.ContextMenu=93]="ContextMenu",s[s.Numpad_0=96]="Numpad_0",s[s.Numpad_1=97]="Numpad_1",s[s.Numpad_2=98]="Numpad_2",s[s.Numpad_3=99]="Numpad_3",s[s.Numpad_4=100]="Numpad_4",s[s.Numpad_5=101]="Numpad_5",s[s.Numpad_6=102]="Numpad_6",s[s.Numpad_7=103]="Numpad_7",s[s.Numpad_8=104]="Numpad_8",s[s.Numpad_9=105]="Numpad_9",s[s.Multiply=106]="Multiply",s[s.Add=107]="Add",s[s.Subtract=109]="Subtract",s[s.Decimal=110]="Decimal",s[s.Divide=111]="Divide",s[s.F1=112]="F1",s[s.F2=113]="F2",s[s.F3=114]="F3",s[s.F4=115]="F4",s[s.F5=116]="F5",s[s.F6=117]="F6",s[s.F7=118]="F7",s[s.F8=119]="F8",s[s.F9=120]="F9",s[s.F10=121]="F10",s[s.F11=122]="F11",s[s.F12=123]="F12",s[s.NumLock=144]="NumLock",s[s.ScrollLock=145]="ScrollLock",s[s.Semicolon=186]="Semicolon",s[s.Equals=187]="Equals",s[s.Comma=188]="Comma",s[s.Dash=189]="Dash",s[s.Period=190]="Period",s[s.ForwardSlash=191]="ForwardSlash",s[s.GraveAccent=192]="GraveAccent",s[s.OpenBracket=219]="OpenBracket",s[s.BackSlash=220]="BackSlash",s[s.CloseBracket=221]="CloseBracket",s[s.SingleQuote=222]="SingleQuote"}(I=l.KeyCode||(l.KeyCode={}))},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskDragBaseState=void 0;var c=o(0),I=o(5),C=o(9),f=o(30),a=o(13),p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return c.__extends(u,s),u.prototype.onMouseDownInternal=function(d){this.onStart(d)},u.prototype.onMouseUp=function(d){this.onEnd(d)},u.prototype.onMouseMoveInternal=function(d){this.onDrag(d)},u.prototype.onTouchStartInternal=function(d){this.onStart(d)},u.prototype.onTouchEndInternal=function(d){this.onEnd(d)},u.prototype.onTouchMoveInternal=function(d){this.onDrag(d)},u.prototype.onDocumentPointerDownInternal=function(d){this.onStart(d)},u.prototype.onDocumentPointerUpInternal=function(d){this.onEnd(d)},u.prototype.onDocumentPointerMoveInternal=function(d){this.onDrag(d)},u.prototype.onStart=function(d){this.currentPosition=new I.Point(C.EvtUtils.getEventX(d),C.EvtUtils.getEventY(d)),this.raiseDependencySelection(d,null),this.onStartInternal(d)},u.prototype.onDrag=function(d){var h;d.preventDefault();var g=new I.Point(C.EvtUtils.getEventX(d),C.EvtUtils.getEventY(d));null!==(h=this.currentPosition)&&void 0!==h||(this.currentPosition=g),this.onDragInternal(g),this.currentPosition=g},u.prototype.onEnd=function(d){this.onEndInternal(d),this.raiseEvent(a.TaskAreaStateEventNames.STATE_EXIT,d)},u.prototype.onStartInternal=function(d){},u.prototype.onEndInternal=function(d){},u.prototype.onDragInternal=function(d){},u.prototype.finish=function(){this.raiseEvent(a.TaskAreaStateEventNames.TASK_EDIT_END)},u}(f.TaskAreaStateBase);l.TaskDragBaseState=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.StripLineSettings=void 0;var c=o(1),I=o(59),C=function(){function f(){this.showCurrentTime=!1,this.currentTimeUpdateInterval=6e4,this.stripLines=[]}return f.parse=function(a){var p=new f;if(a&&((0,c.isDefined)(a.showCurrentTime)&&(p.showCurrentTime=a.showCurrentTime),(0,c.isDefined)(a.currentTimeUpdateInterval)&&(p.currentTimeUpdateInterval=a.currentTimeUpdateInterval),(0,c.isDefined)(a.currentTimeTitle)&&(p.currentTimeTitle=a.currentTimeTitle),(0,c.isDefined)(a.currentTimeCssClass)&&(p.currentTimeCssClass=a.currentTimeCssClass),(0,c.isDefined)(a.stripLines)))for(var s=0;s<a.stripLines.length;s++)p.stripLines.push(I.StripLine.parse(a.stripLines[s]));return p},f.prototype.equal=function(a){var p=!0;if(p=(p=(p=(p=(p=p&&this.showCurrentTime==a.showCurrentTime)&&this.currentTimeUpdateInterval==a.currentTimeUpdateInterval)&&this.currentTimeTitle==a.currentTimeTitle)&&this.currentTimeCssClass==a.currentTimeCssClass)&&this.stripLines.length===a.stripLines.length)for(var s=0;s<a.stripLines.length;s++)p=p&&this.stripLines[s].equal(a.stripLines[s]);return p},f}();l.StripLineSettings=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Dependency=void 0;var c=o(0),I=o(1),C=o(2),f=o(23),a=function(p){function s(){var u=p.call(this)||this;return u.predecessorId="",u.successorId="",u.type=null,u}return c.__extends(s,p),Object.defineProperty(s.prototype,"isStartDependency",{get:function(){return this.type===f.DependencyType.SS||this.type===f.DependencyType.SF},enumerable:!1,configurable:!0}),s.prototype.assignFromObject=function(u){(0,I.isDefined)(u)&&(p.prototype.assignFromObject.call(this,u),this.predecessorId=String(u.predecessorId),this.successorId=String(u.successorId),this.type=this.parseType(u.type))},s.prototype.parseType=function(u){if(!(0,I.isDefined)(u))return f.DependencyType.FS;switch(u.toString().toUpperCase()){case"SS":case"1":return f.DependencyType.SS;case"FF":case"2":return f.DependencyType.FF;case"SF":case"3":return f.DependencyType.SF;default:return f.DependencyType.FS}},s}(C.DataObject);l.Dependency=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourceAssignment=void 0;var c=o(0),I=o(1),C=function(f){function a(){var p=f.call(this)||this;return p.taskId="",p.resourceId="",p}return c.__extends(a,f),a.prototype.assignFromObject=function(p){(0,I.isDefined)(p)&&(f.prototype.assignFromObject.call(this,p),this.taskId=String(p.taskId),this.resourceId=String(p.resourceId))},a}(o(2).DataObject);l.ResourceAssignment=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RecurrenceFactory=void 0;var c=o(1),I=o(72),C=o(205),f=o(206),a=o(208),p=function(){function s(){}return s.createRecurrenceByType=function(u){if(!u)return null;switch(u.toLowerCase()){case"daily":return new I.Daily;case"weekly":return new C.Weekly;case"monthly":return new f.Monthly;case"yearly":return new a.Yearly}return null},s.createRecurrenceFromObject=function(u){if(!u)return null;var d=this.createRecurrenceByType(u.type);return d&&d.assignFromObject(u),d},s.getEnumValue=function(u,d){if(!(0,c.isDefined)(u[d]))return null;var h=parseInt(d);return isNaN(h)?u[d]:h},s}();l.RecurrenceFactory=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Daily=void 0;var c=o(0),I=o(38),C=o(8),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.checkDate=function(s){return!0},p.prototype.checkInterval=function(s){return C.DateTimeUtils.getDaysBetween(this.start,s)%this.interval==0},p.prototype.calculatePointByInterval=function(s){var u=this.interval;return this.isRecurrencePoint(s)||(u-=C.DateTimeUtils.getDaysBetween(this.start,s)%this.interval),C.DateTimeUtils.addDays(s,u)},p.prototype.calculateNearestPoint=function(s){return C.DateTimeUtils.addDays(s,1)},p}(I.RecurrenceBase);l.Daily=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GanttView=l.default=void 0,o(74);var c=o(47);Object.defineProperty(l,"default",{enumerable:!0,get:function(){return c.GanttView}}),Object.defineProperty(l,"GanttView",{enumerable:!0,get:function(){return c.GanttView}})},function(he,l,o){},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.BarManager=void 0;var c=function(){function I(C,f){this.commandManager=C,this.bars=f}return I.prototype.updateContextMenu=function(){for(var C=0,f=void 0;f=this.bars[C];C++)if(f.isContextMenu()){f.updateItemsList();for(var a=f.getCommandKeys(),p=0;p<a.length;p++)this.updateBarItem(f,a[p])}},I.prototype.updateItemsState=function(C){for(var f=!!C.length,a=function(d,h){if(h.isVisible()){for(var g=h.getCommandKeys(),x=function(y){if(f&&!C.filter(function(E){return E==g[y]}).length)return"continue";p.updateBarItem(h,g[y])},b=0;b<g.length;b++)x(b);h.completeUpdate()}},p=this,s=0,u=void 0;u=this.bars[s];s++)a(0,u)},I.prototype.updateBarItem=function(C,f){var a=this.commandManager.getCommand(f);if(a){var p=a.getState();C.setItemVisible(f,p.visible),p.visible&&(C.setItemEnabled(f,p.enabled),C.setItemValue(f,p.value))}},I}();l.BarManager=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CommandManager=void 0;var c=o(77),I=o(78),C=o(79),f=o(86),a=o(88),p=o(89),s=o(90),u=o(91),d=o(94),h=o(96),g=o(97),x=o(98),b=o(99),y=o(100),E=o(101),S=o(104),O=o(105),w=o(109),T=o(112),k=o(113),R=o(114),P=o(115),B=o(117),W=o(120),N=o(121),V=o(122),U=function(){function K(Y){this.control=Y,this.commands={},this.createCommand(a.GanttClientCommand.CreateTask,this.createTaskCommand),this.createCommand(a.GanttClientCommand.CreateSubTask,this.createSubTaskCommand),this.createCommand(a.GanttClientCommand.RemoveTask,this.removeTaskCommand),this.createCommand(a.GanttClientCommand.RemoveDependency,this.removeDependencyCommand),this.createCommand(a.GanttClientCommand.TaskInformation,this.showTaskEditDialog),this.createCommand(a.GanttClientCommand.ResourceManager,this.showResourcesDialog),this.createCommand(a.GanttClientCommand.TaskAddContextItem,new W.TaskAddContextItemCommand(this.control)),this.createCommand(a.GanttClientCommand.Undo,new b.UndoCommand(this.control)),this.createCommand(a.GanttClientCommand.Redo,new x.RedoCommand(this.control)),this.createCommand(a.GanttClientCommand.ZoomIn,new N.ZoomInCommand(this.control)),this.createCommand(a.GanttClientCommand.ZoomOut,new V.ZoomOutCommand(this.control)),this.createCommand(a.GanttClientCommand.FullScreen,new g.ToggleFullScreenCommand(this.control)),this.createCommand(a.GanttClientCommand.CollapseAll,new p.CollapseAllCommand(this.control)),this.createCommand(a.GanttClientCommand.ExpandAll,new s.ExpandAllCommand(this.control)),this.createCommand(a.GanttClientCommand.ToggleResources,this.toggleResources),this.createCommand(a.GanttClientCommand.ToggleDependencies,this.toggleDependencies)}return Object.defineProperty(K.prototype,"createTaskCommand",{get:function(){return new R.CreateTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"createSubTaskCommand",{get:function(){return new k.CreateSubTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"removeTaskCommand",{get:function(){return new B.RemoveTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"updateTaskCommand",{get:function(){return new P.UpdateTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"createDependencyCommand",{get:function(){return new u.CreateDependencyCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"removeDependencyCommand",{get:function(){return new d.RemoveDependencyCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"createResourceCommand",{get:function(){return new E.CreateResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"removeResourceCommand",{get:function(){return new w.RemoveResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"assignResourceCommand",{get:function(){return new y.AssignResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"deassignResourceCommand",{get:function(){return new S.DeassignResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"changeResourceColorCommand",{get:function(){return new O.ResourceColorCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"showTaskEditDialog",{get:function(){return new f.TaskEditDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"showConstraintViolationDialog",{get:function(){return new I.ConstraintViolationDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"showConfirmationDialog",{get:function(){return new c.ConfirmationDialog(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"showResourcesDialog",{get:function(){return new C.ResourcesDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"toggleResources",{get:function(){return new T.ToggleResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"toggleDependencies",{get:function(){return new h.ToggleDependenciesCommand(this.control)},enumerable:!1,configurable:!0}),K.prototype.getCommand=function(Y){return this.commands[Y]},K.prototype.createCommand=function(Y,J){this.commands[Y]=J},K}();l.CommandManager=U},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConfirmationDialog=void 0;var c=o(0),I=function(C){function f(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(f,C),f.prototype.applyParameters=function(a,p){return this.history.beginTransaction(),p.callback(),this.history.endTransaction(),this.control.barManager.updateItemsState([]),!0},f.prototype.createParameters=function(a){return a},f.prototype.getDialogName=function(){return"Confirmation"},f}(o(20).DialogBase);l.ConfirmationDialog=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConstraintViolationDialogCommand=void 0;var c=o(0),I=function(C){function f(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(f,C),f.prototype.applyParameters=function(a,p){return p.callback(a),!0},f.prototype.createParameters=function(a){return a},f.prototype.getDialogName=function(){return"ConstraintViolation"},f}(o(20).DialogBase);l.ConstraintViolationDialogCommand=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourcesDialogCommand=void 0;var c=o(0),I=o(21),C=o(20),f=o(31),a=o(40),p=o(85),s=function(u){function d(){var h=null!==u&&u.apply(this,arguments)||this;return h.resourcesForDelete=[],h}return c.__extends(d,u),d.prototype.onBeforeDialogShow=function(h){return this.modelManipulator.dispatcher.raiseResourceManagerDialogShowing(h,function(g){h.resources=g.values.resources})},d.prototype.applyParameters=function(h,g){this.history.beginTransaction();for(var x=0;x<h.resources.length;x++)g.resources.getItemById(h.resources.getItem(x).internalId)||this.control.commandManager.createResourceCommand.execute(h.resources.getItem(x).text);for(x=0;x<g.resources.length;x++)h.resources.getItemById(g.resources.getItem(x).internalId)||this.resourcesForDelete.push(g.resources.getItem(x));return this.history.endTransaction(),!1},d.prototype.createParameters=function(h){this.callBack=h;var g=new p.ResourcesDialogParameters;return g.resources=new I.ResourceCollection,g.resources.addRange(this.control.viewModel.resources.items),g},d.prototype.afterClosing=function(){var h=this;if(this.resourcesForDelete.length){var g=this.control.commandManager.showConfirmationDialog,x=new a.ConfirmationDialogParameters(f.ConfirmationType.ResourcesDelete,function(){h.history.beginTransaction();for(var b=0;b<h.resourcesForDelete.length;b++)h.control.commandManager.removeResourceCommand.execute(h.resourcesForDelete[b].internalId);h.history.endTransaction()});x.message=this.resourcesForDelete.reduce(function(b,y){return c.__spreadArray(c.__spreadArray([],b,!0),[y.text],!1)},[]).join(", "),this.callBack&&(g.afterClosing=function(){delete C.DialogBase.activeInstance,h.callBack()}),g.execute(x)}else this.callBack&&this.callBack()},d.prototype.getDialogName=function(){return"Resources"},d}(C.DialogBase);l.ResourcesDialogCommand=s},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GanttJsonUtils=void 0;var c=o(81),I=function(){function C(){}return C.parseJson=function(f){return c.JsonUtils.isValid(f)?JSON.parse(f):null},C}();l.GanttJsonUtils=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.JsonUtils=void 0;var c=function(){function I(){}return I.isValid=function(C){return!/[^,:{}[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(C.replace(/"(\\.|[^"\\])*"/g,""))},I}();l.JsonUtils=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ListUtils=void 0;var c=o(83),I=o(84),C=function(){function f(){}return f.remove=function(a,p){var s=a.indexOf(p,0);s>=0&&a.splice(s,1)},f.removeBy=function(a,p){for(var s=a.length,u=0;u<s;u++)if(p(a[u],u))return a.splice(u,1)[0];return null},f.shallowCopy=function(a){return a.slice()},f.deepCopy=function(a){return f.map(a,function(p){return p.clone()})},f.initByValue=function(a,p){for(var s=[];a>0;a--)s.push(p);return s},f.initByCallback=function(a,p){for(var s=[],u=0;u<a;u++)s.push(p(u));return s},f.forEachOnInterval=function(a,p){for(var s=a.end,u=a.start;u<s;u++)p(u)},f.reverseForEachOnInterval=function(a,p){for(var s=a.start,u=a.end-1;u>=s;u--)p(u)},f.reducedMap=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=[],h=s;h<u;h++){var g=p(a[h],h);null!==g&&d.push(g)}return d},f.filter=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=[],h=s;h<u;h++){var g=a[h];p(g,h)&&d.push(g)}return d},f.map=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=[],h=s;h<u;h++)d.push(p(a[h],h));return d},f.indexBy=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=s;d<u;d++)if(p(a[d],d))return d;return-1},f.reverseIndexBy=function(a,p,s,u){void 0===s&&(s=a.length-1),void 0===u&&(u=0);for(var d=s;d>=u;d--)if(p(a[d],d))return d;return-1},f.elementBy=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);var d=f.indexBy(a,p,s,u);return d<0?null:a[d]},f.reverseElementBy=function(a,p,s,u){void 0===s&&(s=a.length-1),void 0===u&&(u=0);var d=f.reverseIndexBy(a,p,s,u);return d<0?null:a[d]},f.last=function(a){return a[a.length-1]},f.setLast=function(a,p){return a[a.length-1]=p},f.incLast=function(a){return++a[a.length-1]},f.decLast=function(a){return--a[a.length-1]},f.equals=function(a,p){return a.length===p.length&&f.allOf2(a,p,function(s,u){return s.equals(u)})},f.equalsByReference=function(a,p){var s=a.length;if(s!==a.length)return!1;for(var u=0;u<s;u++)if(a[u]!==p[u])return!1;return!0},f.unique=function(a,p,s,u){void 0===s&&(s=p),void 0===u&&(u=function(){});var d=a.length;if(0===d)return[];var h=(a=a.sort(p))[0],g=f.reducedMap(a,function(x){return 0!==s(h,x)?(h=x,x):(u(x),null)},1,d);return g.unshift(a[0]),g},f.uniqueNumber=function(a){a=a.sort(I.Comparers.number);for(var p=Number.NaN,s=a.length-1;s>=0;s--)p===a[s]?a.splice(s,1):p=a[s];return a},f.forEach=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=s;d<u;d++)p(a[d],d)},f.forEach2=function(a,p,s,u,d){void 0===u&&(u=0),void 0===d&&(d=a.length);for(var h=u;h<d;h++)s(a[h],p[h],h)},f.reverseForEach=function(a,p,s,u){void 0===s&&(s=a.length-1),void 0===u&&(u=0);for(var d=s;d>=u;d--)p(a[d],d)},f.reverseIndexOf=function(a,p,s,u){void 0===s&&(s=a.length-1),void 0===u&&(u=0);for(var d=s;d>=u;d--)if(a[d]===p)return d;return-1},f.accumulate=function(a,p,s,u,d){void 0===u&&(u=0),void 0===d&&(d=a.length);for(var h=p,g=u;g<d;g++)h=s(h,a[g],g);return h},f.accumulateNumber=function(a,p,s,u,d){void 0===s&&(s=0),void 0===u&&(u=0),void 0===d&&(d=a.length);for(var h=s,g=u;g<d;g++)h+=p(a[g],g,h);return h},f.anyOf=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=s;d<u;d++)if(p(a[d],d))return!0;return!1},f.unsafeAnyOf=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=s;d<u;d++){var h=p(a[d],d);if(h)return h}return null},f.reverseAnyOf=function(a,p,s,u){void 0===s&&(s=a.length-1),void 0===u&&(u=0);for(var d=s;d>=u;d--)if(p(a[d],d))return!0;return!1},f.unsafeReverseAnyOf=function(a,p,s,u){void 0===s&&(s=a.length-1),void 0===u&&(u=0);for(var d=s;d>=u;d--){var h=p(a[d],d);if(h)return h}return null},f.anyOf2=function(a,p,s,u,d){void 0===u&&(u=0),void 0===d&&(d=a.length);for(var h=u;h<d;h++)if(s(a[h],p[h],h))return!0;return!1},f.allOf=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);for(var d=s;d<u;d++)if(!p(a[d],d))return!1;return!0},f.allOf2=function(a,p,s,u,d){void 0===u&&(u=0),void 0===d&&(d=a.length);for(var h=u;h<d;h++)if(!s(a[h],p[h],h))return!1;return!0},f.allOfOnInterval=function(a,p){for(var s=a.end,u=a.start;u<s;u++)if(!p(u))return!1;return!0},f.addListOnTail=function(a,p){for(var s=0,u=void 0;u=p[s];s++)a.push(u);return a},f.joinLists=function(a){for(var p=[],s=1;s<arguments.length;s++)p[s-1]=arguments[s];return f.accumulate(p,[],function(u,d){return f.addListOnTail(u,a(d)),u})},f.push=function(a,p){return a.push(p),a},f.countIf=function(a,p){return f.accumulateNumber(a,function(s,u){return p(s,u)?1:0})},f.clear=function(a){a.splice(0)},f.merge=function(a,p,s,u,d,h){if(void 0===d&&(d=0),void 0===h&&(h=a.length),a=a.slice(d,h),h-d<2)return a;for(var g=(a=a.sort(p))[d],x=[g],b=d+1;b<h;b++){var y=a[b];s(g,y)?u(g,y):x.push(g=y)}return x},f.min=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);var d=f.minExtended(a,p,s,u);return d?d.minElement:null},f.max=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);var d=f.maxExtended(a,p,s,u);return d?d.maxElement:null},f.minMax=function(a,p,s,u){void 0===s&&(s=0),void 0===u&&(u=a.length);var d=f.minMaxExtended(a,p,s,u);return d?new c.MinMax(d.minElement,d.maxElement):null},f.minExtended=function(a,p,s,u){if(void 0===s&&(s=0),void 0===u&&(u=a.length),0===a.length)return null;for(var d=a[s],h=p(d),g=s+1;g<u;g++){var x=a[g],b=p(x);b<h&&(h=b,d=x)}return new c.ExtendedMin(d,h)},f.maxExtended=function(a,p,s,u){if(void 0===s&&(s=0),void 0===u&&(u=a.length),0===a.length)return null;for(var d=a[s],h=p(d),g=s+1;g<u;g++){var x=a[g],b=p(x);b>h&&(h=b,d=x)}return new c.ExtendedMax(d,h)},f.minMaxExtended=function(a,p,s,u){if(void 0===s&&(s=0),void 0===u&&(u=a.length),0===a.length)return null;for(var d=a[s],h=d,g=p(d),x=g,b=s+1;b<u;b++){var y=a[b],E=p(y);E<g?(g=E,d=y):E>x&&(x=E,h=y)}return new c.ExtendedMinMax(d,g,h,x)},f.minByCmp=function(a,p,s,u){if(void 0===s&&(s=0),void 0===u&&(u=a.length),0===a.length)return null;for(var d=a[s],h=s+1;h<u;h++){var g=a[h];p(g,d)<0&&(d=g)}return d},f.maxByCmp=function(a,p,s,u){if(void 0===s&&(s=0),void 0===u&&(u=a.length),0===a.length)return null;for(var d=a[s],h=s+1;h<u;h++){var g=a[h];p(g,d)>0&&(d=g)}return d},f.minMaxByCmp=function(a,p,s,u){if(void 0===s&&(s=0),void 0===u&&(u=a.length),0===a.length)return null;for(var d=a[s],h=d,g=s+1;g<u;g++){var x=a[g],b=p(x,d);b>0?h=x:b<0&&(d=x)}return new c.MinMax(d,h)},f}();l.ListUtils=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ExtendedMinMax=l.ExtendedMax=l.ExtendedMin=l.MinMaxNumber=l.MinMax=void 0;var c=o(0),I=function(s,u){this.minElement=s,this.maxElement=u};l.MinMax=I;var C=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return c.__extends(u,s),Object.defineProperty(u.prototype,"length",{get:function(){return this.maxElement-this.minElement},enumerable:!1,configurable:!0}),u}(I);l.MinMaxNumber=C,l.ExtendedMin=function(s,u){this.minElement=s,this.minValue=u},l.ExtendedMax=function(s,u){this.maxElement=s,this.maxValue=u};var p=function(s){function u(d,h,g,x){var b=s.call(this,d,g)||this;return b.minValue=h,b.maxValue=x,b}return c.__extends(u,s),u}(I);l.ExtendedMinMax=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Equals=l.Comparers=void 0;var c=function(){function C(){}return C.number=function(f,a){return f-a},C.string=function(f,a){return f===a?0:f>a?1:-1},C.stringIgnoreCase=function(f,a){return(f=f.toLowerCase())===(a=a.toLowerCase())?0:f>a?1:-1},C}();l.Comparers=c;var I=function(){function C(){}return C.simpleType=function(f,a){return f===a},C.object=function(f,a){return f&&a&&(f===a||f.equals(a))},C}();l.Equals=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourcesDialogParameters=void 0;var c=o(0),I=o(21),C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return c.__extends(a,f),a.prototype.clone=function(){var p=new a;return p.resources=new I.ResourceCollection,p.resources.addRange(this.resources.items),p},a}(o(32).DialogParametersBase);l.ResourcesDialogParameters=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskEditDialogCommand=void 0;var c=o(0),I=o(21),C=o(49),f=o(50),a=o(33),p=o(20),s=o(87),u=o(1),d=function(h){function g(){return null!==h&&h.apply(this,arguments)||this}return c.__extends(g,h),g.prototype.onBeforeDialogShow=function(x){return this.modelManipulator.dispatcher.raiseTaskTaskEditDialogShowing(x,function(b){var y=b.values;x.start=y.start,x.end=y.end,x.progress=y.progress,x.title=y.title,x.readOnlyFields=b.readOnlyFields,x.hiddenFields=b.hiddenFields})},g.prototype.applyParameters=function(x,b){var y=this;this.history.beginTransaction();var E=this.getUpdatedTaskData(x,b);Object.keys(E).length>0&&setTimeout(function(){return y.control.commandManager.updateTaskCommand.execute(b.id,E)},0);for(var S=0;S<x.assigned.length;S++)if(!b.assigned.getItemById(x.assigned.getItem(S).internalId)){var O=x.assigned.getItem(S).internalId,T=new C.ResourceAssigningArguments(O,b.id);this.modelManipulator.dispatcher.notifyResourceAssigning(T),T.cancel||this.history.addAndRedo(new f.AssignResourceHistoryItem(this.modelManipulator,T.resourceId,T.taskId))}var k=function(P){var B=b.assigned.getItem(P);if(!x.assigned.getItemById(B.internalId)){var W=R.control.viewModel.assignments.items.filter(function(N){return N.resourceId===B.internalId&&N.taskId===b.id})[0];R.modelManipulator.dispatcher.fireResourceUnassigning(W)&&R.history.addAndRedo(new a.DeassignResourceHistoryItem(R.modelManipulator,W.internalId))}},R=this;for(S=0;S<b.assigned.length;S++)k(S);return this.history.endTransaction(),!1},g.prototype.getUpdatedTaskData=function(x,b){var y={};return(0,u.isDefined)(x.title)&&b.title!==x.title&&(y.title=x.title),(0,u.isDefined)(x.progress)&&b.progress!==x.progress&&(y.progress=x.progress),(0,u.isDefined)(x.start)&&b.start!==x.start&&(y.start=x.start),(0,u.isDefined)(x.end)&&b.end!==x.end&&(y.end=x.end),y},g.prototype.createParameters=function(x){var b=this;x=x||this.control.viewModel.tasks.getItemById(this.control.currentSelectedTaskID);var y=new s.TaskEditParameters;return y.id=x.internalId,y.title=x.title,y.progress=x.progress,y.start=x.start,y.end=x.end,y.assigned=this.control.viewModel.getAssignedResources(x),y.resources=new I.ResourceCollection,y.resources.addRange(this.control.viewModel.resources.items),y.showResourcesDialogCommand=this.control.commandManager.showResourcesDialog,y.showTaskEditDialogCommand=this.control.commandManager.showTaskEditDialog,y.enableEdit=this.isTaskEditEnabled(),y.enableRangeEdit=this.isTaskRangeEditEnabled(x),y.isValidationRequired=this.control.isValidateDependenciesRequired(),y.getCorrectDateRange=function(E,S,O){return b.control.validationController.getCorrectDateRange(E,S,O)},y},g.prototype.isTaskEditEnabled=function(){var x=this.control.settings;return x.editing.enabled&&x.editing.allowTaskUpdate},g.prototype.isTaskRangeEditEnabled=function(x){return!this.control.viewModel.isTaskToCalculateByChildren(x.internalId)},g.prototype.isEnabled=function(){var x=this.control,b=x.viewModel.findItem(x.currentSelectedTaskID);return!!b&&b.selected||this.isApiCall},g.prototype.getState=function(){var x=h.prototype.getState.call(this);return x.visible=x.visible&&!this.control.taskEditController.dependencyId,x},g.prototype.getDialogName=function(){return"TaskEdit"},g}(p.DialogBase);l.TaskEditDialogCommand=d},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskEditParameters=void 0;var c=o(0),I=o(21),C=function(f){function a(){var p=null!==f&&f.apply(this,arguments)||this;return p.enableEdit=!0,p.enableRangeEdit=!0,p.isValidationRequired=!1,p.hiddenFields=[],p.readOnlyFields=[],p}return c.__extends(a,f),a.prototype.clone=function(){var p=new a;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},a}(o(32).DialogParametersBase);l.TaskEditParameters=C},function(he,l,o){"use strict";var c;Object.defineProperty(l,"__esModule",{value:!0}),l.GanttClientCommand=void 0,(c=l.GanttClientCommand||(l.GanttClientCommand={}))[c.CreateTask=0]="CreateTask",c[c.CreateSubTask=1]="CreateSubTask",c[c.RemoveTask=2]="RemoveTask",c[c.RemoveDependency=3]="RemoveDependency",c[c.TaskInformation=4]="TaskInformation",c[c.TaskAddContextItem=5]="TaskAddContextItem",c[c.Undo=6]="Undo",c[c.Redo=7]="Redo",c[c.ZoomIn=8]="ZoomIn",c[c.ZoomOut=9]="ZoomOut",c[c.FullScreen=10]="FullScreen",c[c.CollapseAll=11]="CollapseAll",c[c.ExpandAll=12]="ExpandAll",c[c.ResourceManager=13]="ResourceManager",c[c.ToggleResources=14]="ToggleResources",c[c.ToggleDependencies=15]="ToggleDependencies"},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CollapseAllCommand=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.collapseAll(),!0},p.prototype.isEnabled=function(){return!0},p}(I.CommandBase);l.CollapseAllCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ExpandAllCommand=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.expandAll(),!0},p.prototype.isEnabled=function(){return!0},p}(I.CommandBase);l.ExpandAllCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CreateDependencyCommand=void 0;var c=o(0),I=o(23),C=o(92),f=o(93),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return c.__extends(s,p),s.prototype.execute=function(u,d,h){return p.prototype.execute.call(this,u,d,h)},s.prototype.executeInternal=function(u,d,h){if(this.control.viewModel.dependencies.items.filter(function(b){return b.predecessorId===u&&b.successorId===d||b.successorId===u&&b.predecessorId===d}).length)return!1;var g=new C.DependencyInsertingArguments(u,d,h);if(this.modelManipulator.dispatcher.notifyDependencyInserting(g),g.cancel)return!1;if(u=g.predecessorId,d=g.successorId,h=g.type,this.control.history.beginTransaction(),this.history.addAndRedo(new f.InsertDependencyHistoryItem(this.modelManipulator,u,d,h)),this.control.isValidateDependenciesRequired()){var x=this.control.viewModel.tasks.getItemById(u);h===I.DependencyType.SF||h===I.DependencyType.SS?this.control.validationController.moveStartDependTasks(u,x.start):this.control.validationController.moveEndDependTasks(u,x.end)}return this.control.history.endTransaction(),!0},s.prototype.isEnabled=function(){return p.prototype.isEnabled.call(this)&&this.control.settings.editing.allowDependencyInsert},s}(o(51).DependencyCommandBase);l.CreateDependencyCommand=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DependencyInsertingArguments=void 0;var c=o(0),I=function(C){function f(a,p,s){var u=C.call(this,null)||this;return u.values={predecessorId:a,successorId:p,type:s},u}return c.__extends(f,C),Object.defineProperty(f.prototype,"predecessorId",{get:function(){return this.values.predecessorId},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"successorId",{get:function(){return this.values.successorId},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"type",{get:function(){return this.values.type},enumerable:!1,configurable:!0}),f}(o(11).BaseArguments);l.DependencyInsertingArguments=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.InsertDependencyHistoryItem=void 0;var c=o(0),I=o(18),C=o(2),f=function(a){function p(s,u,d,h){var g=a.call(this,s)||this;return g.predecessorId=u,g.successorId=d,g.type=h,g}return c.__extends(p,a),p.prototype.redo=function(){var s;null!==(s=this.insertedKey)&&void 0!==s||(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 s=this;return[{objectType:C.GanttDataObjectNames.dependency,getKey:function(){return s.insertedKey},updateKey:function(u){return s.insertedKey=u}},{objectType:C.GanttDataObjectNames.task,getKey:function(){return s.predecessorId},updateKey:function(u){return s.predecessorId=u}},{objectType:C.GanttDataObjectNames.task,getKey:function(){return s.successorId},updateKey:function(u){return s.successorId=u}}]},enumerable:!1,configurable:!0}),p}(o(14).HistoryItem);l.InsertDependencyHistoryItem=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RemoveDependencyCommand=void 0;var c=o(0),I=o(31),C=o(40),f=o(95),a=o(41),p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return c.__extends(u,s),u.prototype.execute=function(d,h){var g=this;return void 0===h&&(h=!0),h?(this.control.commandManager.showConfirmationDialog.execute(new C.ConfirmationDialogParameters(I.ConfirmationType.DependencyDelete,function(){g.executeInternal(d)})),!1):s.prototype.execute.call(this,d)},u.prototype.executeInternal=function(d){if(null!=(d=d||this.control.taskEditController.dependencyId)){var h=this.control.viewModel.dependencies.items.filter(function(x){return x.internalId===d})[0];if(h){var g=new f.DependencyRemovingArguments(h);if(this.modelManipulator.dispatcher.notifyDependencyRemoving(g),!g.cancel)return this.history.addAndRedo(new a.RemoveDependencyHistoryItem(this.modelManipulator,d)),d===this.control.taskEditController.dependencyId&&this.control.taskEditController.selectDependency(null),this.control.barManager.updateItemsState([]),!0}}return!1},u.prototype.isEnabled=function(){return s.prototype.isEnabled.call(this)&&this.control.settings.editing.allowDependencyDelete},u.prototype.getState=function(){var d=s.prototype.getState.call(this);return d.visible=d.enabled&&null!=this.control.taskEditController.dependencyId,d},u}(o(51).DependencyCommandBase);l.RemoveDependencyCommand=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DependencyRemovingArguments=void 0;var c=o(0),I=function(C){function f(a){var p=C.call(this,a.id)||this;return p.values=a,p}return c.__extends(f,C),f}(o(11).BaseArguments);l.DependencyRemovingArguments=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ToggleDependenciesCommand=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(!0)},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.toggleDependencies(),!0},p}(I.CommandBase);l.ToggleDependenciesCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ToggleFullScreenCommand=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){var s=null!==a&&a.apply(this,arguments)||this;return s.isInFullScreenMode=!1,s.fullScreenTempVars={},s}return c.__extends(p,a),p.prototype.getState=function(){var s=new C.SimpleCommandState(!0);return s.value=this.control.fullScreenModeHelper.isInFullScreenMode,s},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.fullScreenModeHelper.toggle(),!0},p}(I.CommandBase);l.ToggleFullScreenCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RedoCommand=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){var s=new C.SimpleCommandState(this.isEnabled());return s.visible=this.control.settings.editing.enabled,s},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.history.redo(),!0},p.prototype.isEnabled=function(){return a.prototype.isEnabled.call(this)&&this.history.canRedo()},p}(I.CommandBase);l.RedoCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.UndoCommand=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){var s=new C.SimpleCommandState(this.isEnabled());return s.visible=this.control.settings.editing.enabled,s},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.history.undo(),!0},p.prototype.isEnabled=function(){return a.prototype.isEnabled.call(this)&&this.history.canUndo()},p}(I.CommandBase);l.UndoCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.AssignResourceCommand=void 0;var c=o(0),I=o(49),C=o(50),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.execute=function(s,u){return a.prototype.execute.call(this,s,u)},p.prototype.executeInternal=function(s,u){if(!this.control.viewModel.assignments.items.filter(function(g){return g.resourceId===s&&g.taskId===u})[0]){var d=this.control.viewModel,h=new I.ResourceAssigningArguments(d.convertInternalToPublicKey("resource",s),d.convertInternalToPublicKey("task",u));if(this.modelManipulator.dispatcher.notifyResourceAssigning(h),!h.cancel)return this.history.addAndRedo(new C.AssignResourceHistoryItem(this.modelManipulator,d.convertPublicToInternalKey("resource",h.resourceId),d.convertPublicToInternalKey("task",h.taskId))),!0}return!1},p.prototype.isEnabled=function(){return a.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskResourceUpdate},p}(o(34).ResourceCommandBase);l.AssignResourceCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CreateResourceCommand=void 0;var c=o(0),I=o(102),C=o(103),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.execute=function(s,u,d){return void 0===u&&(u=""),a.prototype.execute.call(this,s,u,d)},p.prototype.executeInternal=function(s,u,d){void 0===u&&(u="");var h=new I.ResourceInsertingArguments(s,u);return this.modelManipulator.dispatcher.notifyResourceCreating(h),h.cancel||this.history.addAndRedo(new C.CreateResourceHistoryItem(this.modelManipulator,h.text,h.color,d)),!h.cancel},p.prototype.isEnabled=function(){return a.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceInsert},p}(o(34).ResourceCommandBase);l.CreateResourceCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourceInsertingArguments=void 0;var c=o(0),I=function(C){function f(a,p){void 0===p&&(p="");var s=C.call(this,null)||this;return s.values={text:a,color:p},s}return c.__extends(f,C),Object.defineProperty(f.prototype,"text",{get:function(){return this.values.text},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"color",{get:function(){return this.values.color},enumerable:!1,configurable:!0}),f}(o(11).BaseArguments);l.ResourceInsertingArguments=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CreateResourceHistoryItem=void 0;var c=o(0),I=o(14),C=o(2),f=o(18),a=function(p){function s(u,d,h,g){void 0===h&&(h="");var x=p.call(this,u)||this;return x.text=d,x.color=h,x.createCallback=g,x}return c.__extends(s,p),s.prototype.redo=function(){var u;null!==(u=this.insertedKey)&&void 0!==u||(this.insertedKey=f.MathUtils.generateGuid()),this.modelManipulator.resource.create(this.text,this.color,this.insertedKey,this.createCallback)},s.prototype.undo=function(){this.modelManipulator.resource.remove(this.insertedKey)},Object.defineProperty(s.prototype,"keyUpdaters",{get:function(){var u=this;return[{objectType:C.GanttDataObjectNames.resource,getKey:function(){return u.insertedKey},updateKey:function(d){return u.insertedKey=d}}]},enumerable:!1,configurable:!0}),s}(I.HistoryItem);l.CreateResourceHistoryItem=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DeassignResourceCommand=void 0;var c=o(0),I=o(33),C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return c.__extends(a,f),a.prototype.execute=function(p){return f.prototype.execute.call(this,p)},a.prototype.executeInternal=function(p){var s=this.control.viewModel.assignments.items.filter(function(u){return u.internalId===p})[0];return!(!s||!this.modelManipulator.dispatcher.fireResourceUnassigning(s)||(this.history.addAndRedo(new I.DeassignResourceHistoryItem(this.modelManipulator,p)),0))},a.prototype.isEnabled=function(){return f.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskResourceUpdate},a}(o(34).ResourceCommandBase);l.DeassignResourceCommand=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourceColorCommand=void 0;var c=o(0),I=o(106),C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return c.__extends(a,f),a.prototype.execute=function(p,s){return f.prototype.execute.call(this,p,s)},a.prototype.executeInternal=function(p,s){return this.control.viewModel.resources.getItemById(p).color!==s&&(this.history.addAndRedo(new I.ResourceColorHistoryItem(this.modelManipulator,p,s)),!0)},a}(o(108).ResourcePropertyCommandBase);l.ResourceColorCommand=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourceColorHistoryItem=void 0;var c=o(0),I=function(C){function f(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(f,C),f.prototype.getPropertiesManipulator=function(){return this.modelManipulator.resource.properties.color},f}(o(107).ResourcePropertiesHistoryItemBase);l.ResourceColorHistoryItem=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourcePropertiesHistoryItemBase=void 0;var c=o(0),I=o(2),C=function(f){function a(p,s,u){var d=f.call(this,p)||this;return d.resourceId=s,d.newValue=u,d}return c.__extends(a,f),a.prototype.redo=function(){this.oldState=this.getPropertiesManipulator().setValue(this.resourceId,this.newValue)},a.prototype.undo=function(){this.getPropertiesManipulator().restoreValue(this.oldState)},a.prototype.getPropertiesManipulator=function(){throw new Error("Not Implemented")},Object.defineProperty(a.prototype,"keyUpdaters",{get:function(){var p=this;return[{objectType:I.GanttDataObjectNames.resource,getKey:function(){return p.resourceId},updateKey:function(s){return p.resourceId=s}}]},enumerable:!1,configurable:!0}),a}(o(14).HistoryItem);l.ResourcePropertiesHistoryItemBase=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourcePropertyCommandBase=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p.prototype.isEnabled=function(){return a.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceUpdate},p}(I.CommandBase);l.ResourcePropertyCommandBase=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RemoveResourceCommand=void 0;var c=o(0),I=o(110),C=o(111),f=o(33),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return c.__extends(s,p),s.prototype.execute=function(u){return p.prototype.execute.call(this,u)},s.prototype.executeInternal=function(u){var d=this,h=this.control.viewModel.resources.items.filter(function(b){return b.internalId===u})[0];if(h){var g=new I.ResourceRemovingArguments(h);if(this.modelManipulator.dispatcher.notifyResourceRemoving(g),!g.cancel){var x=new C.RemoveResourceHistoryItem(this.modelManipulator,u);return this.control.viewModel.assignments.items.filter(function(b){return b.resourceId===u}).forEach(function(b){d.modelManipulator.dispatcher.fireResourceUnassigning(b)&&x.add(new f.DeassignResourceHistoryItem(d.modelManipulator,b.internalId))}),this.history.addAndRedo(x),!0}}return!1},s.prototype.isEnabled=function(){return p.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceDelete},s}(o(34).ResourceCommandBase);l.RemoveResourceCommand=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourceRemovingArguments=void 0;var c=o(0),I=function(C){function f(a){var p=C.call(this,a.id)||this;return p.values=a,p}return c.__extends(f,C),f}(o(11).BaseArguments);l.ResourceRemovingArguments=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RemoveResourceHistoryItem=void 0;var c=o(0),I=o(42),C=o(2),f=function(a){function p(s,u){var d=a.call(this)||this;return d.modelManipulator=s,d.resourceId=u,d}return c.__extends(p,a),p.prototype.redo=function(){a.prototype.redo.call(this),this.resource=this.modelManipulator.resource.remove(this.resourceId)},p.prototype.undo=function(){var s=this;this.modelManipulator.resource.create(this.resource.text,this.resource.color,this.resourceId,function(){s.resource.color&&s.modelManipulator.resource.properties.color.setValue(s.resource.internalId,s.resource.color),window.setTimeout(function(){return a.prototype.undo.call(s)},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),a.prototype.undo.call(this)},Object.defineProperty(p.prototype,"keyUpdaters",{get:function(){var s=this;return[{objectType:C.GanttDataObjectNames.resource,getKey:function(){return s.resourceId},updateKey:function(u){return s.resourceId=u}}]},enumerable:!1,configurable:!0}),p}(I.CompositionHistoryItem);l.RemoveResourceHistoryItem=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ToggleResourceCommand=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(!0)},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.toggleResources(),!0},p}(I.CommandBase);l.ToggleResourceCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CreateSubTaskCommand=void 0;var c=o(0),I=o(52),C=o(43),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.execute=function(s){return a.prototype.execute.call(this,s)},p.prototype.executeInternal=function(s){var u=this.control.viewModel.findItem(s=s||this.control.currentSelectedTaskID);if(u.selected){var d={start:new Date(u.task.start.getTime()),end:new Date(u.task.end.getTime()),title:"New task",progress:0,parentId:s},h=new I.TaskInsertingArguments(null,d);if(this.modelManipulator.dispatcher.notifyTaskCreating(h),!h.cancel){this.history.addAndRedo(new C.CreateTaskHistoryItem(this.modelManipulator,h));var g=this.control.viewModel.findItem(d.parentId);a.prototype.updateParent.call(this,g)}return!h.cancel}return!1},p.prototype.isEnabled=function(){var s=this.control,u=s.viewModel.findItem(s.currentSelectedTaskID);return a.prototype.isEnabled.call(this)&&!!u&&u.selected},p.prototype.getState=function(){var s=a.prototype.getState.call(this);return s.visible=s.visible&&this.control.settings.editing.allowTaskInsert,s},p}(o(24).TaskCommandBase);l.CreateSubTaskCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CreateTaskCommand=void 0;var c=o(0),I=o(52),C=o(43),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.execute=function(s){return a.prototype.execute.call(this,s)},p.prototype.executeInternal=function(s){var u,d;if(null!=s||(s={}),!s.parentId){var h=this.control.viewModel.findItem(this.control.currentSelectedTaskID),g=h&&h.task;g&&(s.parentId=g.parentId)}var x=this.control.viewModel.findItem(s.parentId)||this.control.viewModel.items[0],b=x&&x.task;s.start||(s.start=b?new Date(b.start.getTime()):new Date(this.control.range.start.getTime())),s.end||(s.end=b?new Date(b.end.getTime()):new Date(this.control.range.end.getTime())),null!==(u=s.title)&&void 0!==u||(s.title="New task"),null!==(d=s.progress)&&void 0!==d||(s.progress=0);var y=new I.TaskInsertingArguments(null,s);if(this.modelManipulator.dispatcher.notifyTaskCreating(y),!y.cancel){this.history.addAndRedo(new C.CreateTaskHistoryItem(this.modelManipulator,y));var E=this.control.viewModel.findItem(s.parentId);a.prototype.updateParent.call(this,E)}return!y.cancel},p.prototype.getState=function(){var s=a.prototype.getState.call(this);return s.visible=s.visible&&this.control.settings.editing.allowTaskInsert,s},p}(o(24).TaskCommandBase);l.CreateTaskCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.UpdateTaskCommand=void 0;var c=o(0),I=o(1),C=o(31),f=o(116),a=o(41),p=o(53),s=o(15),u=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return c.__extends(h,d),h.prototype.execute=function(g,x){return d.prototype.execute.call(this,g,x)},h.prototype.executeInternal=function(g,x){var b=this.control.viewModel.tasks.getItemById(g);if(!b)return!1;var y=this.control.modelManipulator.dispatcher.raiseTaskUpdating(b,x,function(S){x.title=S.title,x.progress=S.progress,x.start=S.start,x.end=S.end,x.color=S.color});if(y){(0,I.isDefined)(x.start)&&(0,I.isDefined)(x.end)&&x.end.getTime()<x.start.getTime()&&(x.end=x.start),(0,I.isDefined)(x.progress)&&(x.progress=Math.max(Math.min(x.progress,100),0));var E=this.filterChangedValues(x,b);this.processDependecyValidation(E,b)}return y},h.prototype.isEnabled=function(){return d.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskUpdate},h.prototype.filterChangedValues=function(g,x){if(!g)return null;var b={};for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(0,I.isDefined)(g[y])&&x[y]!==g[y]&&(b[y]=g[y]);return b},h.prototype.processDependecyValidation=function(g,x){var b=this,y=function(T){b.onAfterValidationCallback(g,x,T)},E=this.control.isValidateDependenciesRequired();if(E){var S=[],O=(0,I.isDefined)(g.start)&&g.start!==x.start,w=(0,I.isDefined)(g.end)&&g.end!==x.end;O&&E&&(S=S.concat(this.control.validationController.checkStartDependencies(x.internalId,g.start))),w&&E&&(S=S.concat(this.control.validationController.checkEndDependencies(x.internalId,g.end))),S.length>0?this.control.commandManager.showConstraintViolationDialog.execute(new f.ConstraintViolationDialogParameters(S,y)):y(null)}else y(null)},h.prototype.onAfterValidationCallback=function(g,x,b){var y=this;if(!b||b.option!==C.ConstraintViolationOption.DoNothing||(delete g.start,delete g.end),Object.keys(g).length>0){this.history.beginTransaction(),b?.option===C.ConstraintViolationOption.RemoveDependency&&b.validationErrors.forEach(function(T){return y.history.addAndRedo(new a.RemoveDependencyHistoryItem(y.modelManipulator,T.dependencyId))});var E=this.control.isValidateDependenciesRequired(),S=x.internalId,O=x.start,w=x.end;this.history.addAndRedo(new p.UpdateTaskHistoryItem(this.modelManipulator,S,g)),(0,I.isDefined)(g.start)&&E&&this.control.validationController.moveStartDependTasks(S,O),(0,I.isDefined)(g.end)&&E&&this.control.validationController.moveEndDependTasks(S,w),this.processAutoParentUpdate(S,g,O,w),this.history.endTransaction(),b?.option!==C.ConstraintViolationOption.RemoveDependency&&b?.option!==C.ConstraintViolationOption.KeepDependency||this.control.updateBarManager(),this.control.updateViewDataRange()}},h.prototype.processAutoParentUpdate=function(g,x,b,y){var E=(0,I.isDefined)(x.start),S=(0,I.isDefined)(x.end),O=(0,I.isDefined)(x.progress)||E||S,w=E?x.start.getTime()-b.getTime():null,T=S?x.end.getTime()-y.getTime():null,k=E&&0!==s.DateUtils.getTimezoneOffsetDiff(b,x.start),R=S&&0!==s.DateUtils.getTimezoneOffsetDiff(y,x.end),P=(k||R)&&Math.abs(T-w)===s.DateUtils.msPerHour;O?0===w||w!==T&&!P?this.validationController.updateParentsIfRequired(g):this.validationController.correctParentsOnChildMoving(g,w):this.control.updateOwnerInAutoParentMode()},h}(o(24).TaskCommandBase);l.UpdateTaskCommand=u},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConstraintViolationDialogParameters=void 0;var c=o(0),I=function(C){function f(a,p){var s=C.call(this)||this;return s.validationErrors=a,s.callback=p,s}return c.__extends(f,C),f.prototype.clone=function(){var a=new f(this.validationErrors,this.callback);return a.option=this.option,a},Object.defineProperty(f.prototype,"hasCriticalErrors",{get:function(){var a;return null===(a=this.validationErrors)||void 0===a?void 0:a.some(function(p){return p.critical})},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"errorsCount",{get:function(){var a;return null===(a=this.validationErrors)||void 0===a?void 0:a.length},enumerable:!1,configurable:!0}),f}(o(32).DialogParametersBase);l.ConstraintViolationDialogParameters=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RemoveTaskCommand=void 0;var c=o(0),I=o(31),C=o(40),f=o(118),a=o(41),p=o(33),s=o(119),u=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return c.__extends(h,d),h.prototype.execute=function(g,x,b,y,E,S){var O=this;return void 0===x&&(x=!0),void 0===b&&(b=!1),void 0===y&&(y=!0),this.isApiCall=b,this.isUpdateParentTaskRequired=y,x?(this.control.commandManager.showConfirmationDialog.execute(new C.ConfirmationDialogParameters(I.ConfirmationType.TaskDelete,function(){O.executeInternal(g,E,S)})),!1):d.prototype.execute.call(this,g,E,S)},h.prototype.executeInternal=function(g,x,b){var y=this,E=b||[],S=this.control.viewModel.findItem(g=g||this.control.currentSelectedTaskID),O=S?S.task:this.control.viewModel.tasks.getItemById(g),w=new f.TaskRemovingArguments(O);if(this.modelManipulator.dispatcher.notifyTaskRemoving(w),w.cancel)return!1;var T=this.history,k=this.control.viewModel;T.beginTransaction(),k.beginUpdate();var R=!!x,P=new s.RemoveTaskHistoryItem(this.modelManipulator,g),B=k.tasks.items.filter(function(U){return U.parentId===g}),W=B.map(function(U){return U.internalId}),N=k.dependencies.items.filter(function(U){return-1===E.indexOf(U.internalId)&&(U.predecessorId===g||U.successorId===g)&&!W.some(function(K){return U.predecessorId===K||U.successorId===K})});if(N.length){if(!this.control.settings.editing.allowDependencyDelete)return!1;N.forEach(function(U){P.add(new a.RemoveDependencyHistoryItem(y.modelManipulator,U.internalId)),E.push(U.internalId)})}if(k.assignments.items.filter(function(U){return U.taskId===g}).forEach(function(U){y.modelManipulator.dispatcher.fireResourceUnassigning(U)&&P.add(new p.DeassignResourceHistoryItem(y.modelManipulator,U.internalId))}),B.reverse().forEach(function(U){return new h(y.control).execute(U.internalId,!1,!0,!1,P,E)}),R?x.add(P):T.addAndRedo(P),this.isUpdateParentTaskRequired){var V=this.control.viewModel.findItem(O.parentId);d.prototype.updateParent.call(this,V)}return T.endTransaction(),k.endUpdate(),!0},h.prototype.isEnabled=function(){var g=this.control,x=g.viewModel.findItem(g.currentSelectedTaskID);return d.prototype.isEnabled.call(this)&&(!!x&&x.selected||this.isApiCall)},h.prototype.getState=function(){var g=d.prototype.getState.call(this);return g.visible=g.visible&&this.control.settings.editing.allowTaskDelete,g},h}(o(24).TaskCommandBase);l.RemoveTaskCommand=u},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskRemovingArguments=void 0;var c=o(0),I=function(C){function f(a){var p=C.call(this,a.id)||this;return p.values=a,p}return c.__extends(f,C),f}(o(11).BaseArguments);l.TaskRemovingArguments=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RemoveTaskHistoryItem=void 0;var c=o(0),I=o(2),C=o(42),f=function(a){function p(s,u){var d=a.call(this)||this;return d.modelManipulator=s,d.taskId=u,d}return c.__extends(p,a),p.prototype.redo=function(){a.prototype.redo.call(this),this.task=this.modelManipulator.task.remove(this.taskId)},p.prototype.undo=function(){var s=this;this.modelManipulator.task.create(this.task,this.taskId,function(){window.setTimeout(function(){return a.prototype.undo.call(s)},0)})},p.prototype.undoItemsQuery=function(){var s;this.modelManipulator.task.create(this.task,this.taskId);for(var u=this.historyItems.length-1;s=this.historyItems[u];u--)s instanceof C.CompositionHistoryItem?s.undoItemsQuery():s.undo()},Object.defineProperty(p.prototype,"keyUpdaters",{get:function(){var s=this;return[{objectType:I.GanttDataObjectNames.task,getKey:function(){return s.taskId},updateKey:function(u){return s.taskId=u}},{objectType:I.GanttDataObjectNames.task,getKey:function(){var u;return null===(u=s.task)||void 0===u?void 0:u.parentId},updateKey:function(u){return s.task.parentId=u}}]},enumerable:!1,configurable:!0}),p}(C.CompositionHistoryItem);l.RemoveTaskHistoryItem=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAddContextItemCommand=void 0;var c=o(0),I=function(C){function f(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(f,C),f.prototype.getState=function(){var a=C.prototype.getState.call(this);return a.visible=a.visible&&this.control.settings.editing.allowTaskInsert,a},f.prototype.execute=function(){return!1},f}(o(24).TaskCommandBase);l.TaskAddContextItemCommand=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ZoomInCommand=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(!0)},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.zoomIn(),!0},p}(I.CommandBase);l.ZoomInCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ZoomOutCommand=void 0;var c=o(0),I=o(6),C=o(7),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(!0)},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.zoomOut(),!0},p}(I.CommandBase);l.ZoomOutCommand=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.FullScreenHelperSettings=void 0;var c=o(1),I=function(){function C(){}return C.parse=function(f){var a=new C;return f&&((0,c.isDefined)(f.getMainElement)&&(a.getMainElement=f.getMainElement),(0,c.isDefined)(f.adjustControl)&&(a.adjustControl=f.adjustControl)),a},C}();l.FullScreenHelperSettings=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.FullScreenModeHelper=void 0;var c=o(10),I=o(125),C=o(3),f=function(){function a(p){this._isInFullScreenMode=!1,this.fullScreenTempVars={},this.settings=p}return Object.defineProperty(a.prototype,"isInFullScreenMode",{get:function(){return this._isInFullScreenMode},enumerable:!1,configurable:!0}),a.prototype.getMainElement=function(){return this.settings.getMainElement()},a.prototype.adjustControl=function(){this.settings.adjustControl()},a.prototype.toggle=function(){return this._isInFullScreenMode=!this._isInFullScreenMode,this._isInFullScreenMode?this.setFullScreenMode():this.setNormalMode(),!0},a.prototype.setFullScreenMode=function(){this.prepareFullScreenMode(),this.adjustControlInFullScreenMode()},a.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)},a.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()},a.prototype.adjustControlInFullScreenMode=function(){var p=0==document.documentElement.clientWidth?document.body.clientWidth:document.documentElement.clientWidth,s=0==document.documentElement.clientHeight?document.body.clientHeight:document.documentElement.clientHeight;this.setWidth(p),this.setHeight(s),this.adjustControl()},a.prototype.requestFullScreen=function(p){p.requestFullscreen?p.requestFullscreen():p.mozRequestFullScreen?p.mozRequestFullScreen():p.webkitRequestFullscreen?p.webkitRequestFullscreen():p.msRequestFullscreen&&p.msRequestFullscreen()},a.prototype.cancelFullScreen=function(p){c.Browser.Firefox&&!this.getFullScreenElement(p)||(p.webkitExitFullscreen?p.webkitExitFullscreen():p.mozCancelFullScreen?p.mozCancelFullScreen():p.msExitFullscreen?p.msExitFullscreen():p.exitFullscreen&&p.exitFullscreen())},a.prototype.getFullScreenElement=function(p){return p.fullscreenElement||p.webkitFullscreenElement||p.mozFullScreenElement||p.msFullscreenElement},a.prototype.setWidth=function(p){this.getMainElement().style.width=this.isNumber(p)?p+"px":p},a.prototype.setHeight=function(p){this.getMainElement().style.height=this.isNumber(p)?p+"px":p},a.prototype.isNumber=function(p){return!isNaN(parseFloat(p))&&isFinite(p)},a}();l.FullScreenModeHelper=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.AttrUtils=void 0;var c=o(10),I=function(){function C(){}return C.setElementAttribute=function(f,a,p){f.setAttribute&&(c.Browser.IE&&c.Browser.MajorVersion>=11&&"src"===a.toLowerCase()&&f.setAttribute(a,""),f.setAttribute(a,p))},C.setStyleAttribute=function(f,a,p){f.setProperty&&f.setProperty(a,p,"")},C.getElementAttribute=function(f,a){return f.getAttribute(a)},C.getStyleAttribute=function(f,a){if(f.getPropertyValue){if(c.Browser.Firefox)try{return f.getPropertyValue(a)}catch{return f[a]}return f.getPropertyValue(a)}return null},C.removeElementAttribute=function(f,a){f.removeAttribute&&f.removeAttribute(a)},C.removeStyleAttribute=function(f,a){f.removeProperty&&f.removeProperty(a)},C.changeElementStyleAttribute=function(f,a,p){C.saveStyleAttributeInElement(f,a),C.setStyleAttribute(f.style,a,p)},C.restoreElementStyleAttribute=function(f,a){var p="dxwu_saved"+a,s=f.style;if(C.isExistsAttributeInElement(f,p)){var u=C.getElementAttribute(f,p);return u===C.emptyObject||null===u?C.removeStyleAttribute(s,a):C.setStyleAttribute(s,a,u),C.removeElementAttribute(f,p),!0}return!1},C.saveStyleAttributeInElement=function(f,a){var p="dxwu_saved"+a,s=f.style;if(!C.isExistsAttributeInElement(f,p)){var u=C.getStyleAttribute(s,a);C.setElementAttribute(f,p,C.isAttributeExists(u)?u:C.emptyObject)}},C.isExistsAttributeInElement=function(f,a){var p=C.getElementAttribute(f,a);return C.isAttributeExists(p)},C.isAttributeExists=function(f){return null!==f&&""!==f},C.emptyObject="DxEmptyValue",C}();l.AttrUtils=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GanttExportCalculator=void 0;var c=o(5),I=o(3),C=o(4),f=o(25),a=o(60),p=o(61),s=o(44),u=o(17),d=o(26),h=o(36),g=o(45),x=o(130),b=o(131),y=o(27),E=o(12),S=o(134),O=o(136),w=o(63),T=o(37),k=o(35),R=function(){function P(B,W){var N,V;this._owner=B,this._props=new b.GanttPdfExportProps(W),null!==(N=(V=this._props).margins)&&void 0!==N||(V.margins=new h.Margin(P._defaultPageMargin))}return Object.defineProperty(P.prototype,"chartTableScaleTopMatrix",{get:function(){var B;return null!==(B=this._chartTableScaleTopMatrix)&&void 0!==B||(this._chartTableScaleTopMatrix=this.calculateChartScaleMatrix(0)),this._chartTableScaleTopMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"chartTableScaleBottomMatrix",{get:function(){var B;return null!==(B=this._chartTableScaleBottomMatrix)&&void 0!==B||(this._chartTableScaleBottomMatrix=this.calculateChartScaleMatrix(1)),this._chartTableScaleBottomMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"chartTableBodyMatrix",{get:function(){return this._chartTableBodyMatrix||this.calculateChartTableBodyMatrix(),this._chartTableBodyMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"treeListHeaderMatrix",{get:function(){return this._treeListHeaderMatrix||this.calculateTreeListTableHeaderMatrix(),this._treeListHeaderMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"treeListBodyMatrix",{get:function(){return this._treeListBodyMatrix||this.calculateTreeListTableBodyMatrix(),this._treeListBodyMatrix},enumerable:!1,configurable:!0}),P.prototype.getPages=function(B){return new S.PdfGanttPaginator(B,this.settings,this.createGlobalInfo()).getPages()},Object.defineProperty(P.prototype,"settings",{get:function(){return this.settingsForPaging},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"layoutCalculator",{get:function(){return this._taskAreaHelper.layoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"taskAreaHelper",{get:function(){var B;return null!==(B=this._taskAreaHelper)&&void 0!==B||(this._taskAreaHelper=new x.TaskAreaExportHelper(this._owner,this._props)),this._taskAreaHelper},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"scalingHelper",{get:function(){var B,W;return null!==(B=this._scalingHelper)&&void 0!==B||(this._scalingHelper=new O.ScalingHelper(null===(W=this._props)||void 0===W?void 0:W.pdfDoc)),this._scalingHelper},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"visibleTaskIndices",{get:function(){return this.taskAreaHelper.visibleTaskIndices},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"baseCellWidth",{get:function(){return this.taskAreaHelper.baseCellSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"baseCellHeight",{get:function(){return this.taskAreaHelper.baseCellHeight},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"chartScaleTableStyle",{get:function(){var B;return null!==(B=this._chartScaleTableStyle)&&void 0!==B||(this._chartScaleTableStyle=this.getChartScaleTableStyle()),this._chartScaleTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"chartMainTableStyle",{get:function(){var B;return null!==(B=this._chartMainTableStyle)&&void 0!==B||(this._chartMainTableStyle=this.getChartMainTableStyle()),this._chartMainTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"treeListTableStyle",{get:function(){return this._treeListTableStyle||this.calculateTreeListTableStyle(),this._treeListTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"pageTopMargin",{get:function(){return this._props.margins.top},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"pageLeftMargin",{get:function(){return this._props.margins.left},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"pageRightMargin",{get:function(){return this._props.margins.right},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"pageBottomMargin",{get:function(){return this._props.margins.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"headerTableTop",{get:function(){var B;return null!==(B=this._headerTableTop)&&void 0!==B||(this._headerTableTop=this.pageTopMargin),this._headerTableTop},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"mainTableTop",{get:function(){var B;return null!==(B=this._mainTableTop)&&void 0!==B||(this._mainTableTop=this.getMainTableTop()),this._mainTableTop},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"exportDataMode",{get:function(){return this._props.exportDataMode},enumerable:!1,configurable:!0}),P.prototype.getMainTableTop=function(){return this.headerTableTop+this.headerTableHeight-this.taskAreaHelper.offsetTop},Object.defineProperty(P.prototype,"chartLeft",{get:function(){var B;return null!==(B=this._chartLeft)&&void 0!==B||(this._chartLeft=this.getChartLeft()),this._chartLeft},enumerable:!1,configurable:!0}),P.prototype.getChartLeft=function(){var B;return(((null===(B=this._props)||void 0===B?void 0:B.exportMode)||T.ExportMode.all)===T.ExportMode.chart?this.pageLeftMargin:this.treeListLeft+this.treeListWidth)-this.taskAreaHelper.offsetLeft},Object.defineProperty(P.prototype,"treeListLeft",{get:function(){var B;return null!==(B=this._treeListLeft)&&void 0!==B||(this._treeListLeft=this.pageLeftMargin),this._treeListLeft},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"headerTableHeight",{get:function(){return 2*this.taskAreaHelper.headerRowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"mainTableHeight",{get:function(){var B;return null!==(B=this._mainTableHeight)&&void 0!==B||(this._mainTableHeight=this.taskAreaHelper.taskAreaHeight),this._mainTableHeight},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"treeListWidth",{get:function(){var B;return null!==(B=this._treeListWidth)&&void 0!==B||(this._treeListWidth=this.getTreeListTableWidth()),this._treeListWidth},enumerable:!1,configurable:!0}),P.prototype.getTreeListTableWidth=function(){var B,W=this;return null!==(B=this.treeListHeaderMatrix[0].map(function(V,U){return W.getTreeListColumnWidth(U)})?.reduce(function(V,U){return V+U},0))&&void 0!==B?B:0},Object.defineProperty(P.prototype,"chartWidth",{get:function(){var B=this;return this._chartWidth||(this._chartWidth=this.chartTableScaleBottomMatrix[0].reduce(function(N,V){return N+(V.styles.cellWidth.hasValue()?V.styles.cellWidth.getValue():B.baseCellWidth)},0)),this._chartWidth},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"settingsForPaging",{get:function(){return this._settingsForPaging||(this._settingsForPaging=new b.GanttPdfExportProps(this._props),this.prepareAutoFormat(this._settingsForPaging),this.scalingHelper.scalePageMargins(this._settingsForPaging)),this._settingsForPaging},enumerable:!1,configurable:!0}),P.prototype.prepareAutoFormat=function(B){if(B.format===b.GanttPdfExportProps.autoFormatKey){B.format=null;var W=B.landscape,N=this.autoFormatWidth,V=this.autoFormatHeight;(W&&V>N||!W&&V<N)&&(B.landscape=!W),B.pageSize=new E.Size(N,V)}},Object.defineProperty(P.prototype,"autoFormatWidth",{get:function(){var B,W=((null===(B=this._props)||void 0===B?void 0:B.exportMode)||T.ExportMode.all)!==T.ExportMode.treeList,N=this.pageRightMargin;return(N+=W?this.chartLeft+this.chartWidth:this.treeListLeft+this.treeListWidth)+P._autoFormatWidthAddStock},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"autoFormatHeight",{get:function(){return this.mainTableTop+this.mainTableHeight+this.pageBottomMargin},enumerable:!1,configurable:!0}),P.prototype.createGlobalInfo=function(){var B={objects:this._canExportChart()?this.getGanttObjectsInfo():null,tables:this.getTablesInfo()};return this.scalingHelper.scaleSizes(B),B},P.prototype.getTablesInfo=function(){var B={};return this._canExportTreelist()&&(B[y.PdfPageTableNames.treeListHeader]=this.createTreeListHeaderTableInfo(),B[y.PdfPageTableNames.treeListMain]=this.createTreeListMainTableInfo()),this._canExportChart()&&(B[y.PdfPageTableNames.chartMain]=this.createChartMainTableInfo(),B[y.PdfPageTableNames.chartScaleTop]=this._createChartScaleTopInfo(),B[y.PdfPageTableNames.chartScaleBottom]=this._createChartScaleBottomInfo()),B},Object.defineProperty(P.prototype,"exportMode",{get:function(){var B,W;return null!==(W=null===(B=this._props)||void 0===B?void 0:B.exportMode)&&void 0!==W?W:T.ExportMode.all},enumerable:!1,configurable:!0}),P.prototype._canExportTreelist=function(){return this.exportMode===T.ExportMode.all||this.exportMode===T.ExportMode.treeList},P.prototype._canExportChart=function(){return this.exportMode===T.ExportMode.all||this.exportMode===T.ExportMode.chart},Object.defineProperty(P.prototype,"_predefinedFont",{get:function(){var B,W,N,V;return(null===(W=null===(B=this._props)||void 0===B?void 0:B.pdfDoc)||void 0===W?void 0:W.getFont())?.fontName||(null===(V=null===(N=this._props)||void 0===N?void 0:N.font)||void 0===V?void 0:V.name)},enumerable:!1,configurable:!0}),P.prototype._createChartScaleTopInfo=function(){return{name:y.PdfPageTableNames.chartScaleTop,size:new E.Size(this.chartWidth,this.taskAreaHelper.headerRowHeight),position:new c.Point(this.chartLeft,this.headerTableTop),style:this.chartScaleTableStyle,baseCellSize:new E.Size(this.baseCellWidth,this.taskAreaHelper.headerRowHeight),cells:this.chartTableScaleTopMatrix}},P.prototype._createChartScaleBottomInfo=function(){var B=this.taskAreaHelper.headerRowHeight;return{name:y.PdfPageTableNames.chartScaleBottom,size:new E.Size(this.chartWidth,B),position:new c.Point(this.chartLeft,this.headerTableTop+B),style:this.chartScaleTableStyle,baseCellSize:new E.Size(this.baseCellWidth,B),cells:this.chartTableScaleBottomMatrix}},P.prototype.createChartMainTableInfo=function(){return{name:y.PdfPageTableNames.chartMain,size:new E.Size(this.chartWidth,this.mainTableHeight),position:new c.Point(this.chartLeft,this.mainTableTop),style:this.chartMainTableStyle,baseCellSize:new E.Size(this.baseCellWidth,this.baseCellHeight),cells:this.chartTableBodyMatrix,hideRowLines:!this._owner.settings.areHorizontalBordersEnabled}},P.prototype.createTreeListHeaderTableInfo=function(){return{name:y.PdfPageTableNames.treeListHeader,size:new E.Size(this.treeListWidth,this.headerTableHeight),position:new c.Point(this.treeListLeft,this.headerTableTop),style:this.treeListTableStyle,baseCellSize:new E.Size(null,this.headerTableHeight),cells:this.treeListHeaderMatrix}},P.prototype.createTreeListMainTableInfo=function(){return{name:y.PdfPageTableNames.treeListMain,size:new E.Size(this.treeListWidth,this.mainTableHeight),position:new c.Point(this.treeListLeft,this.mainTableTop),style:this.treeListTableStyle,baseCellSize:new E.Size(null,this.baseCellHeight),cells:this.treeListBodyMatrix,hideRowLines:!this._owner.settings.areHorizontalBordersEnabled}},P.prototype.calculateChartScaleMatrix=function(B){for(var W=this.taskAreaHelper,N=W.scaleRanges,V=new Array,K=N[B][1],Y=N[B][0];Y<=K;Y++){var J=this.layoutCalculator.getScaleItemStart(Y,W.scales[B]),j=new g.CellDef(this._owner.renderHelper.getScaleItemTextByStart(J,W.scales[B]));j.styles.cellPadding.assign(0),j.styles.minCellHeight=this.taskAreaHelper.headerRowHeight,j.styles.cellWidth.assign(0===B?W.scaleTopWidths[Y]:W.scaleBottomWidths[Y]),V.push(j)}return[V]},P.prototype.calculateChartTableBodyMatrix=function(){var B=this;this._chartTableBodyMatrix=new Array,this.visibleTaskIndices.length>0?this.visibleTaskIndices.forEach(function(W){return B._chartTableBodyMatrix.push(B.createChartTableBodyRow(W))}):this._chartTableBodyMatrix.push(this.createChartTableBodyRow(-1))},P.prototype.createChartTableBodyRow=function(B){var W=new g.CellDef;return this.rowHasChildren(B)&&W.styles.fillColor.assign(this.taskAreaHelper.parentRowBackColor),this.chartTableScaleBottomMatrix[0].map(function(N){var V=new g.CellDef(W);return V.styles.cellWidth.assign(N.styles.cellWidth),V})},P.prototype.rowHasSelection=function(B){return this._owner.rowHasSelection(B)},P.prototype.rowHasChildren=function(B){return this._owner.rowHasChildren(B)},P.prototype.calculateTreeListTableHeaderMatrix=function(){this._treeListHeaderMatrix=new Array;for(var B=this._owner,W=B.getTreeListColCount(),N=new Array,V=0;V<W;V++){var U=new g.CellDef(B.getTreeListHeaderInfo(V));U.styles.minCellHeight=2*this.taskAreaHelper.headerRowHeight,N.push(U)}this._treeListHeaderMatrix.push(N)},P.prototype.calculateTreeListTableBodyMatrix=function(){this._treeListBodyMatrix=new Array,this.visibleTaskIndices.length>0?this.fillTreeListTableBodyMatrix(this._treeListBodyMatrix):this.fillTreeListEmptyTableBodyMatrix(this._treeListBodyMatrix)},P.prototype.fillTreeListTableBodyMatrix=function(B){for(var W,N=this.visibleTaskIndices,V=this.treeListHeaderMatrix[0].length,U=0;U<N.length;U++){for(var K=new Array,Y=N[U],J=null===(W=this._owner.getTask(Y))||void 0===W?void 0:W.id,j=0;j<V;j++){var ee=new g.CellDef(this._owner.getTreeListCellInfo(Y,j,J));ee.styles.cellWidth.hasValue()||ee.styles.cellWidth.assign(this.getTreeListColumnWidth(j)),this.rowHasChildren(N[U])&&ee.styles.fillColor.assign(this.taskAreaHelper.parentRowBackColor),K.push(ee)}B.push(K)}},P.prototype.fillTreeListEmptyTableBodyMatrix=function(B){var W=new Array,N=new g.CellDef(this._owner.getTreeListEmptyDataCellInfo());N.styles.cellWidth.assign(this.treeListWidth),N.styles.halign=k.PredefinedStyles.horizontalAlign[1],N.styles.valign=k.PredefinedStyles.verticalAlign[1],W.push(N),B.push(W)},P.prototype.getTreeListColumnWidth=function(B){var W=this.treeListHeaderMatrix[0][B],N=W&&W.styles;return N.cellWidth.getValue()||N.minCellWidth||0},P.prototype.getObjectsLeftOffset=function(B){void 0===B&&(B=!1);var W=this.dataObjectLeftDelta;return B||(W+=this.taskAreaHelper.customRangeLeftOffset),W},Object.defineProperty(P.prototype,"dataObjectLeftDelta",{get:function(){var B;return null!==(B=this._dataObjectLeftDelta)&&void 0!==B||(this._dataObjectLeftDelta=this.getDataObjectLeftDelta()),this._dataObjectLeftDelta},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"dataObjectTopDelta",{get:function(){var B;return null!==(B=this._dataObjectTopDelta)&&void 0!==B||(this._dataObjectTopDelta=this.getDataObjectTopDelta()),this._dataObjectTopDelta},enumerable:!1,configurable:!0}),P.prototype.getChartScaleTableStyle=function(){var B=new d.StyleDef(this.taskAreaHelper.scaleTableStyle);return this._predefinedFont&&(B.font=this._predefinedFont),B},P.prototype.getChartMainTableStyle=function(){var B=new d.StyleDef(this.taskAreaHelper.chartMainTableStyle);return this._predefinedFont&&(B.font=this._predefinedFont),B},P.prototype.calculateTreeListTableStyle=function(){this._treeListTableStyle=new d.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)},P.prototype.getGanttObjectsInfo=function(){return{tasks:this.tasksInfo,dependencies:this.dependenciesInfo,resources:this.resourcesInfo,timeMarkers:this.timeMarkersInfo}},Object.defineProperty(P.prototype,"tasksInfo",{get:function(){var B;return null!==(B=this._tasksInfo)&&void 0!==B||(this._tasksInfo=this.calculateTasksInfo()),this._tasksInfo},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"dependenciesInfo",{get:function(){var B;return null!==(B=this._dependenciesInfo)&&void 0!==B||(this._dependenciesInfo=this.calculateDependenciesInfo()),this._dependenciesInfo},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"resourcesInfo",{get:function(){var B;return null!==(B=this._resourcesInfo)&&void 0!==B||(this._resourcesInfo=this.calculateResourcesInfo()),this._resourcesInfo},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"timeMarkersInfo",{get:function(){var B;return null!==(B=this._timeMarkersInfo)&&void 0!==B||(this._timeMarkersInfo=this.calculateTimeMarkersInfoInfo()),this._timeMarkersInfo},enumerable:!1,configurable:!0}),P.prototype.getDataObjectLeftDelta=function(){return this.chartLeft-this.taskAreaHelper.objectsLeftDelta},P.prototype.getDataObjectTopDelta=function(){return this.headerTableTop+this.headerTableHeight-this.taskAreaHelper.objectsTopDelta},P.prototype.calculateTasksInfo=function(){var B=this,W=new Array;return this.visibleTaskIndices.forEach(function(N){return W.push(B.calculateTaskInfo(N))}),W},P.prototype.calculateTaskInfo=function(B){var W=new s.PdfTaskInfo,N=this.layoutCalculator.getTaskElementInfo(B);return W.taskColor=this.getTaskColor(B),W.sidePoints=this.getTaskSidePoints(B),W.isMilestone=N.className.indexOf(f.GridLayoutCalculator.milestoneClassName)>0,W.isMilestone||(W.isSmallTask=N.className.indexOf(f.GridLayoutCalculator.smallTaskClassName)>0,W.isParent=N.className.indexOf(f.GridLayoutCalculator.parentTaskClassName)>0,this.appendTaskTitle(W,B),this.appendTaskProgress(W,B)),W},P.prototype.appendTaskTitle=function(B,W){var N=this._owner.settings.taskTitlePosition;B.isSmallTask&&N!==C.TaskTitlePosition.Outside||N===C.TaskTitlePosition.None||(B.text=this._owner.getTaskText(W),B.textPosition=N,B.textStyle=this.getTaskTextStyle(W))},P.prototype.appendTaskProgress=function(B,W){var N=this.layoutCalculator.getTaskProgressElementInfo(W);B.progressWidth=N.size.width,B.progressColor=this.getTaskProgressColor(W),B.progressColor.applyOpacityToBackground(B.taskColor)},P.prototype.getTaskSidePoints=function(B){var W=this,N=this.layoutCalculator.getTaskSidePoints(B);return N.forEach(function(V){V.x+=W.getObjectsLeftOffset(!0),V.y+=W.dataObjectTopDelta}),N},P.prototype.getTaskColor=function(B){var W=this.taskAreaHelper.getTaskElementBackColor(B,f.GridLayoutCalculator.taskClassName);return new u.Color(W)},P.prototype.getTaskProgressColor=function(B){return new u.Color(this.taskAreaHelper.getTaskElementBackColor(B,f.GridLayoutCalculator.taskProgressClassName))},P.prototype.getTaskTextStyle=function(B){var W=new d.StyleDef;return W.cellPadding.assign(0),W.assign(this.taskAreaHelper.getTaskElementStyle(B,f.GridLayoutCalculator.taskTitleClassName)),W},P.prototype.calculateDependenciesInfo=function(){var B=this,W=new Array,N=this.taskAreaHelper,V=new u.Color(N.dependencyColor);return N.connectorLines.forEach(function(U){return W.push(B.createLineInfo(U,V,N.arrowWidth))}),W},P.prototype.createLineInfo=function(B,W,N){var V=new a.PdfDependencyLineInfo;if(V.fillColor=W,B.className.indexOf(f.GridLayoutCalculator.arrowClassName)>-1){var U=this.layoutCalculator.getArrowPositionByClassName(B.className);V.arrowInfo={position:U,width:N},V.points=[this.getArrowTopCorner(B,U,N)]}else V.points=this.getLinePoints(B);return V},P.prototype.getArrowTopCorner=function(B,W,N){var V=B.position.x+this.getObjectsLeftOffset(),U=B.position.y+this.dataObjectTopDelta;switch(W){case C.Position.Left:V+=N;break;case C.Position.Top:U+=N}return new c.Point(V,U)},P.prototype.getLinePoints=function(B){var W=B.position.x+this.getObjectsLeftOffset(),N=B.position.y+this.dataObjectTopDelta,V=W+B.size.width,U=N+B.size.height;return[new c.Point(W,N),new c.Point(V,U)]},P.prototype.calculateResourcesInfo=function(){var B=this,W=new Array;return this.taskAreaHelper.resourcesElements.forEach(function(N){return W=W.concat(B.calculateResourcesInLine(N))}),W},P.prototype.calculateResourcesInLine=function(B){var W=new Array;if(B)for(var N=I.DomUtils.pxToInt(B.style.left)+this.getObjectsLeftOffset(),V=I.DomUtils.pxToInt(B.style.top)+this.dataObjectTopDelta,U=B.getElementsByClassName(f.GridLayoutCalculator.taskResourceClassName),K=0;K<U.length;K++){var Y=U[K],J=getComputedStyle(Y);N+=this.getMargin(J).left,W.push(new p.PdfTaskResourcesInfo(Y.textContent,new d.StyleDef(J),N,V)),N+=I.DomUtils.pxToInt(J.width)}return W},P.prototype.calculateTimeMarkersInfoInfo=function(){var B=this,W=new Array;return this.taskAreaHelper.stripLinesElements.forEach(function(N){return W.push(B.createTimeMarkerInfo(N,!0))}),this.taskAreaHelper.noWorkingIntervalsElements.forEach(function(N){return W.push(B.createTimeMarkerInfo(N,!1))}),W},P.prototype.createTimeMarkerInfo=function(B,W){var N=getComputedStyle(B),V=I.DomUtils.pxToInt(N.left)+this.getObjectsLeftOffset(),U=I.DomUtils.pxToInt(N.top)+this.dataObjectTopDelta,K=I.DomUtils.pxToInt(N.width),Y=I.DomUtils.pxToInt(N.height);return new w.PdfTimeMarkerInfo(new c.Point(V,U),new E.Size(K,Y),new u.Color(N.backgroundColor),new u.Color(N.borderLeftColor),W)},P.prototype.getMargin=function(B){var W=new h.Margin(0);if(B){var N=B.margin;N||(N+=B.marginTop||"0",N+=" "+B.marginRight||0,N+=" "+B.marginBottom||0,N+=" "+B.marginLeft||0),W.assign(N)}return W},P._defaultPageMargin=10,P._autoFormatWidthAddStock=1,P}();l.GanttExportCalculator=R},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Margins=void 0;var c=o(0),I=function(C){function f(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(f,C),f.empty=function(){return new f(0,0,0,0)},f.prototype.clone=function(){return new f(this.left,this.right,this.top,this.bottom)},f}(o(128).Offsets);l.Margins=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Offsets=void 0;var c=function(){function I(C,f,a,p){this.left=C,this.right=f,this.top=a,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,f){return new I(C,C,f,f)},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,f,a,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*=f,this.bottom*=f,this;case 4:return this.left*=C,this.right*=f,this.top*=a,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}();l.Offsets=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ScaleCalculator=l.ScaleItemInfo=void 0;var c=o(5),I=o(12),C=o(15),f=o(4),a=function(s,u,d,h){this.start=s,this.end=u,this.position=d,this.size=h};l.ScaleItemInfo=a;var p=function(){function s(){this.firstDayOfWeek=0}return s.prototype.setSettings=function(u,d,h,g){void 0===g&&(g=0),this.range=u,this.viewType=d,this.tickSize=h,this.firstDayOfWeek=g,this.reset()},s.prototype.setViewType=function(u){this.viewType=u,this.reset()},s.prototype.reset=function(){delete this._bottomScaleItems,delete this._topScaleItems,delete this._scaleWidth},s.prototype.getScaleIndexByPos=function(u,d){null!=d||(d=this.viewType);var h=d===this.viewType?this.bottomScaleItems:this.topScaleItems,g=-1;if(h.findIndex)g=h.findIndex(function(b){return u>=b.position.x&&u<=b.position.x+b.size.width});else{var x=h.filter(function(b){return u>=b.position.x&&u<=b.position.x+b.size.width})[0];x&&(g=h.indexOf(x))}return g},s.prototype.getScaleBorderPosition=function(u,d){var h=this.getScaleItems(d)[u];if(h)return h.position.x+h.size.width},s.prototype.getScaleItems=function(u){return u===this.viewType?this.bottomScaleItems:u===C.DateUtils.ViewTypeToScaleMap[this.viewType]?this.topScaleItems:null},s.prototype.getScaleItem=function(u,d){return this.getScaleItems(d)[u]},s.prototype.getScaleItemAdjustedStart=function(u,d){var h=this.getScaleItems(d)[u];if(u>0)return h.start;var g=d!==this.viewType,x=g?C.DateUtils.adjustStartDateByViewType(this.range.start,this.viewType,this.firstDayOfWeek):this.getAdjustedBottomScaleItemStart(h.start,d,this.firstDayOfWeek);if(g&&d===f.ViewType.Months){var b=this.range.start;x=new Date(b.getFullYear(),b.getMonth(),1)}if(g&&d===f.ViewType.FiveYears){var y=5*Math.trunc(x.getFullYear()/5);x=new Date(y,x.getMonth(),x.getDate())}return x},Object.defineProperty(s.prototype,"topScaleItems",{get:function(){var u;return null!==(u=this._topScaleItems)&&void 0!==u||(this._topScaleItems=this.calculateTopScale(C.DateUtils.ViewTypeToScaleMap[this.viewType])),this._topScaleItems},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"bottomScaleItems",{get:function(){var u;return null!==(u=this._bottomScaleItems)&&void 0!==u||(this._bottomScaleItems=this.calculateBottomScale(this.viewType)),this._bottomScaleItems},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleWidth",{get:function(){var u;return null!==(u=this._scaleWidth)&&void 0!==u||(this._scaleWidth=this.calculateScaleWidth()),this._scaleWidth},enumerable:!1,configurable:!0}),s.prototype.getFirstScaleIndexForRender=function(u){var d=this.getScaleIndexByPos(u);return Math.max(d-10,0)},s.prototype.getLastScaleIndexForRender=function(u){var d=this.getScaleIndexByPos(u);return-1===d?this.bottomScaleItems.length-1:Math.min(d+10,this.bottomScaleItems.length-1)},s.prototype.getTopScaleIndexByBottomIndex=function(u){var d=this.bottomScaleItems[u];return d?this.getScaleIndexByPos(d.position.x,C.DateUtils.ViewTypeToScaleMap[this.viewType]):-1},s.prototype.calculateBottomScale=function(u){for(var d=new Array,h=this.tickSize.width,g=this.range.start,x=0;g.getTime()<this.range.end.getTime();){var b=this.getNextScaleDate(g,u),y=g.getTime()===this.range.start.getTime(),E=b.getTime()>=this.range.end.getTime(),S=y||E?this.getRangeTickCount(g,b)*h:h;d.push(new a(g,b,new c.Point(x,void 0),new I.Size(S,0))),g=b,x+=S}return d},s.prototype.calculateTopScale=function(u){for(var d=new Array,h=this.range.end.getTime(),g=this.range.start,x=0,b=0;g.getTime()<h;)for(var y=this.getNextScaleDate(g,u),E=y.getTime(),S=b;S<this.bottomScaleItems.length;S++){var O=this.bottomScaleItems[S],w=O.start.getTime(),T=O.end.getTime();if(E>=w&&E<=T){var k=(E-w)/(T-w)*O.size.width+O.position.x;d.push(new a(g,y,new c.Point(x,void 0),new I.Size(k-x,0))),b=S,x=k,g=y;break}}return d},s.prototype.getDateInScale=function(u){for(var d=0;d<this.bottomScaleItems.length;d++){var h=this.bottomScaleItems[d],g=h.size.width,x=h.position.x;if(u>=x&&u<=x+g){var b=h.start.getTime(),y=(u-x)/g*(h.end.getTime()-b);return new Date(h.start.getTime()+y)}}return new Date(this.range.end)},s.prototype.getNextScaleDate=function(u,d){var h;switch(d){case f.ViewType.TenMinutes:h=this.getNextDateInTenMinutesScale(u);break;case f.ViewType.Hours:h=this.getNextDateInHoursScale(u);break;case f.ViewType.SixHours:h=this.getNextDateInSixHoursScale(u);break;case f.ViewType.Days:h=this.getNextDateInDaysScale(u);break;case f.ViewType.Weeks:h=this.getNextDateInWeeksScale(u,this.firstDayOfWeek);break;case f.ViewType.Months:h=this.getNextDateInMonthsScale(u);break;case f.ViewType.Quarter:h=this.getNextDateInQuartersScale(u);break;case f.ViewType.Years:h=this.getNextDateInYearsScale(u);break;case f.ViewType.FiveYears:h=this.getNextDateInFiveYearsScale(u)}return h.getTime()>this.range.end.getTime()&&(h=this.range.end),h},s.prototype.getNextTimeBySpan=function(u,d){return(Math.trunc(u/d)+1)*d},s.prototype.getNextDateInTenMinutesScale=function(u){var d=this.getNextTimeBySpan(u.getMinutes(),10);return new Date(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),d)},s.prototype.getNextDateInHoursScale=function(u){return new Date(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours()+1)},s.prototype.getNextDateInSixHoursScale=function(u){var d=this.getNextTimeBySpan(u.getHours(),6);return new Date(u.getFullYear(),u.getMonth(),u.getDate(),d)},s.prototype.getNextDateInDaysScale=function(u){return new Date(u.getFullYear(),u.getMonth(),u.getDate()+1)},s.prototype.getNextDateInWeeksScale=function(u,d){return void 0===d&&(d=0),new Date(u.getFullYear(),u.getMonth(),u.getDate()-u.getDay()+d+7)},s.prototype.getNextDateInMonthsScale=function(u){return new Date(u.getFullYear(),u.getMonth()+1,1)},s.prototype.getNextDateInQuartersScale=function(u){var d=this.getNextTimeBySpan(u.getMonth(),3);return new Date(u.getFullYear(),d,1)},s.prototype.getNextDateInYearsScale=function(u){return new Date(u.getFullYear()+1,0,1)},s.prototype.getNextDateInFiveYearsScale=function(u){var d=this.getNextTimeBySpan(u.getFullYear(),5);return new Date(d,0,1)},s.prototype.getAdjustedBottomScaleItemStart=function(u,d,h){switch(void 0===h&&(h=0),d){case f.ViewType.TenMinutes:return new Date(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),10*Math.floor(u.getMinutes()/10));case f.ViewType.SixHours:return new Date(u.getFullYear(),u.getMonth(),u.getDate(),6*Math.floor(u.getHours()/6));case f.ViewType.Hours:return new Date(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours());case f.ViewType.Days:return new Date(u.getFullYear(),u.getMonth(),u.getDate());case f.ViewType.Weeks:return new Date(u.getFullYear(),u.getMonth(),u.getDate()-u.getDay()+h);case f.ViewType.Months:return new Date(u.getFullYear(),u.getMonth(),1);case f.ViewType.Quarter:return new Date(u.getFullYear(),3*Math.floor(u.getMonth()/3),1);case f.ViewType.Years:return new Date(u.getFullYear(),0,1);default:return new Date}},s.prototype.calculateScaleWidth=function(){return this.bottomScaleItems.reduce(function(u,d){return u+d.size.width},0)},s.prototype.getScaleItemColSpan=function(u){return u.valueOf()===this.viewType.valueOf()?1:this.viewType===f.ViewType.TenMinutes?6:this.viewType===f.ViewType.Hours?24:this.viewType===f.ViewType.SixHours?4:this.viewType===f.ViewType.Days?7:this.viewType===f.ViewType.Weeks?4.29:this.viewType===f.ViewType.Months?12:this.viewType===f.ViewType.Quarter?4:this.viewType===f.ViewType.Years?5:1},s.prototype.getRangeTickCount=function(u,d){return C.DateUtils.getRangeTickCount(u,d,this.viewType)},s}();l.ScaleCalculator=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaExportHelper=void 0;var c=o(3),I=o(19),C=o(25),f=o(15),a=o(17),p=o(37),s=function(){function u(d,h){this._owner=d,this._props=h}return Object.defineProperty(u.prototype,"customRangeLeftOffset",{get:function(){var d;return null!==(d=this._customRangeLeftOffset)&&void 0!==d||(this._customRangeLeftOffset=this.layoutCalculator.getWidthByDateRange(this.startDate,this.ownerStartDate)),this._customRangeLeftOffset},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"baseCellSize",{get:function(){return this._owner.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"objectsLeftDelta",{get:function(){return this.renderedScaleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"objectsTopDelta",{get:function(){if(!this.hasTasks)return 0;var d=this.visibleTaskIndices[0];return this.getCellTop(d)+this.getTaskCellOffsetTop(d)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"offsetLeft",{get:function(){var d;return null!==(d=this._offsetLeft)&&void 0!==d||(this._offsetLeft=Math.max(this.visibleLeft-this.renderedScaleLeft,0)),this._offsetLeft},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"offsetTop",{get:function(){var d;return null!==(d=this._offsetTop)&&void 0!==d||(this._offsetTop=this.getOffsetTop()),this._offsetTop},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"scales",{get:function(){var d=this.settings.viewType;return[f.DateUtils.ViewTypeToScaleMap[d],d]},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"scaleRanges",{get:function(){var d;return null!==(d=this._scaleRanges)&&void 0!==d||(this._scaleRanges=this.layoutCalculator.getScaleRangesInArea(this.scaleLeft,this.scaleRight)),this._scaleRanges},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"scaleBottomStartIndex",{get:function(){return this.scaleRanges[1][0]},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"scaleBottomEndIndex",{get:function(){return this.scaleRanges[1][1]},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"scaleTopStartIndex",{get:function(){return this.scaleRanges[0][0]},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"scaleTopEndIndex",{get:function(){return this.scaleRanges[0][1]},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"scaleTopWidths",{get:function(){var d;return null!==(d=this._scaleTopWidths)&&void 0!==d||(this._scaleTopWidths=this.getScaleTopWidths()),this._scaleTopWidths},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"scaleBottomWidths",{get:function(){var d;return null!==(d=this._scaleBottomWidths)&&void 0!==d||(this._scaleBottomWidths=this.getScaleBottomWidths()),this._scaleBottomWidths},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"headerRowHeight",{get:function(){if(!this._headerRowHeight){var d=this.scaleElements[0].filter(function(h){return!!h})[0];this._headerRowHeight=d?.offsetHeight}return this._headerRowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"visibleTaskIndices",{get:function(){var d;return null!==(d=this._visibleTaskIndices)&&void 0!==d||(this._visibleTaskIndices=this.getTaskIndices()),this._visibleTaskIndices},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"baseCellHeight",{get:function(){return this.hasTasks?this.baseCellSize.height:this.taskAreaHeight},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"taskAreaHeight",{get:function(){return this.hasTasks?this.visibleTaskIndices.length*this.baseCellHeight:this._owner.renderHelper.taskArea.offsetHeight},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"scaleTableStyle",{get:function(){var d;return null!==(d=this._scaleTableStyle)&&void 0!==d||(this._scaleTableStyle=this.getScaleTableStyle()),this._scaleTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"chartMainTableStyle",{get:function(){var d;return null!==(d=this._chartMainTableStyle)&&void 0!==d||(this._chartMainTableStyle=this.getChartMainTableStyle()),this._chartMainTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"parentRowBackColor",{get:function(){var d;return null!==(d=this._parentRowBackColor)&&void 0!==d||(this._parentRowBackColor=this.getParentBackColor()),this._parentRowBackColor},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"arrowWidth",{get:function(){var d;return null!==(d=this._arrowWidth)&&void 0!==d||(this._arrowWidth=this.getArrowWidth()),this._arrowWidth},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"dependencyColor",{get:function(){var d;return null!==(d=this._dependencyColor)&&void 0!==d||(this._dependencyColor=this.getDependencyColor()),this._dependencyColor},enumerable:!1,configurable:!0}),u.prototype.getTaskElementBackColor=function(d,h){return this.getTaskElementStyle(d,h)?.backgroundColor},u.prototype.getTaskElementStyle=function(d,h){var g=this.getTaskWrapper(d);return this.getElementStyle(g.getElementsByClassName(h)[0])},Object.defineProperty(u.prototype,"hasTasks",{get:function(){return this.visibleTaskIndices.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"visibleLeft",{get:function(){var d;return null!==(d=this._visibleLeft)&&void 0!==d||(this._visibleLeft=this.isVisibleMode?this.container.scrollLeft:0),this._visibleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"visibleTop",{get:function(){var d;return null!==(d=this._visibleTop)&&void 0!==d||(this._visibleTop=this.isVisibleMode?this.container.scrollTop:0),this._visibleTop},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"visibleRight",{get:function(){var d;return null!==(d=this._visibleRight)&&void 0!==d||(this._visibleRight=this.getVisibleRight()),this._visibleRight},enumerable:!1,configurable:!0}),u.prototype.getVisibleRight=function(){var d=this.container.getElement().offsetWidth;return this.visibleLeft+d},Object.defineProperty(u.prototype,"visibleBottom",{get:function(){var d;return null!==(d=this._visibleBottom)&&void 0!==d||(this._visibleBottom=this.getVisibleBottom()),this._visibleBottom},enumerable:!1,configurable:!0}),u.prototype.getVisibleBottom=function(){return this.isVisibleMode?this.visibleTop+this.container.getHeight():this.visibleTaskIndices.length*this.baseCellSize.height},Object.defineProperty(u.prototype,"scaleLeft",{get:function(){var d;return null!==(d=this._scaleLeft)&&void 0!==d||(this._scaleLeft=this.isVisibleMode?this.visibleLeft:this.getPosByDate(this.startDate)),this._scaleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"scaleRight",{get:function(){var d;return null!==(d=this._scaleRight)&&void 0!==d||(this._scaleRight=this.isVisibleMode?this.visibleRight:this.getPosByDate(this.endDate)-1),this._scaleRight},enumerable:!1,configurable:!0}),u.prototype.getScaleTopWidths=function(){var d=this.getScaleWidths(this.scaleTopStartIndex,this.scaleTopEndIndex,this.scales[0]),h=this.layoutCalculator,g=h.getScaleItemInfo(this.scaleBottomStartIndex,this.scales[1]),x=h.getScaleItemInfo(this.scaleTopStartIndex,this.scales[0]),b=Math.max(g.position.x-x.position.x,0);d[this.scaleTopStartIndex]-=b;var y=h.getScaleItemInfo(this.scaleTopEndIndex,this.scales[0]),E=h.getScaleItemInfo(this.scaleBottomEndIndex,this.scales[1]);return b=Math.max(y.position.x+y.size.width-E.position.x-E.size.width,0),d[this.scaleTopEndIndex]-=b,d},u.prototype.getScaleBottomWidths=function(){return this.getScaleWidths(this.scaleBottomStartIndex,this.scaleBottomEndIndex,this.scales[1])},u.prototype.getScaleWidths=function(d,h,g){for(var x=new Array,b=d;b<=h;b++)x[b]=this.layoutCalculator.getScaleItemInfo(b,g).size.width;return x},u.prototype.getOffsetTop=function(){return this.isVisibleMode&&this.hasTasks?this.getTaskCellOffsetTop(this.visibleTaskIndices[0]):0},Object.defineProperty(u.prototype,"renderedScaleLeft",{get:function(){return this.getCellLeft(this.scaleBottomStartIndex)},enumerable:!1,configurable:!0}),u.prototype.getTaskCellOffsetTop=function(d){var h=this.getCellTop(d);return Math.max(this.visibleTop-h,0)},u.prototype.getCellTop=function(d){return this.layoutCalculator.getGridBorderPosition(d-1,!1).y},u.prototype.getCellLeft=function(d){return this.layoutCalculator.getScaleItemInfo(d,this.scales[1]).position.x},u.prototype.getTaskIndices=function(){var d,h;return this.dataMode===p.DataExportMode.all||this.exportRange?this._owner.getAllVisibleTaskIndices(null===(d=this.exportRange)||void 0===d?void 0:d.startIndex,null===(h=this.exportRange)||void 0===h?void 0:h.endIndex):this.getVisibleTaskIndices()},u.prototype.getVisibleTaskIndices=function(){var d=this,h=[];return this.taskElements.forEach(function(g,x){if(g){var b=c.DomUtils.pxToInt(g.style.top),y=b+g.offsetHeight;(b>=d.visibleTop&&b<=d.visibleBottom||y>=d.visibleTop&&y<=d.visibleBottom)&&h.push(x)}}),h},Object.defineProperty(u.prototype,"scaleElements",{get:function(){return this._owner.renderHelper.scaleElements.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"scaleBorders",{get:function(){return this._owner.renderHelper.scaleBorders.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hlRowElements",{get:function(){return this._owner.renderHelper.hlRowElements.filter(function(d){return!!d})},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"selectionElements",{get:function(){return this._owner.renderHelper.selectionElements.filter(function(d){return!!d})},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"taskElements",{get:function(){return this._owner.renderHelper.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"connectorLines",{get:function(){var d,h=this;return null!==(d=this._connectorLines)&&void 0!==d||(this._connectorLines=this._owner.renderHelper.allConnectorLines.filter(function(g){return h.isLineVisible(g)})),this._connectorLines},enumerable:!1,configurable:!0}),u.prototype.isLineVisible=function(d){return this.dataMode===p.DataExportMode.all||this.visibleDependencyKeys.indexOf(d.attr["dependency-id"])>-1},Object.defineProperty(u.prototype,"visibleDependencyKeys",{get:function(){var d;return null!==(d=this._visibleDependencyKeys)&&void 0!==d||(this._visibleDependencyKeys=this._owner.getVisibleDependencyKeysByTaskRange(this.visibleTaskIndices)),this._visibleDependencyKeys},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"resourcesElements",{get:function(){var d,h=this;return null!==(d=this._resourcesElements)&&void 0!==d||(this._resourcesElements=this.visibleTaskIndices.map(function(g){return h._owner.renderHelper.resourcesElements[g]}).filter(function(g){return g&&g.parentElement})),this._resourcesElements},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"stripLinesElements",{get:function(){if(!this._stripLinesElements){var d=this._owner.renderHelper.stripLinesMap.filter(function(h){return!!h}).map(function(h){return h});this._stripLinesElements=d.map(function(h){return h})}return this._stripLinesElements},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"noWorkingIntervalsElements",{get:function(){if(!this._noWorkingIntervalsElements){this._noWorkingIntervalsElements=[];var d=this._owner.renderHelper.noWorkingIntervalsToElementsMap;for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&this._noWorkingIntervalsElements.push(d[h])}return this._noWorkingIntervalsElements},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"taskArea",{get:function(){return this._owner.renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"settings",{get:function(){return this._owner.settings},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"dataMode",{get:function(){var d;return null===(d=this._props)||void 0===d?void 0:d.exportDataMode},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"exportRange",{get:function(){var d;return null===(d=this._props)||void 0===d?void 0:d.dateRange},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isVisibleMode",{get:function(){return this.dataMode===p.DataExportMode.visible&&!this.exportRange},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"ownerStartDate",{get:function(){return this._owner.range.start},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"ownerEndDate",{get:function(){return this._owner.range.end},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"startDate",{get:function(){var d,h,g,x;if(null!==(d=this.exportRange)&&void 0!==d&&d.startDate&&null!==(h=this.exportRange)&&void 0!==h&&h.endDate){var b=Math.min(null===(g=this.exportRange)||void 0===g?void 0:g.startDate.getTime(),null===(x=this.exportRange)||void 0===x?void 0:x.endDate.getTime());return new Date(b)}return this.ownerStartDate},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"endDate",{get:function(){var d,h,g,x;if(null!==(d=this.exportRange)&&void 0!==d&&d.startDate&&null!==(h=this.exportRange)&&void 0!==h&&h.endDate){var b=Math.max(null===(g=this.exportRange)||void 0===g?void 0:g.startDate.getTime(),null===(x=this.exportRange)||void 0===x?void 0:x.endDate.getTime());return new Date(b)}return this.ownerEndDate},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasCustomRangeOutOfRender",{get:function(){return this.startDate.getTime()!==this.ownerStartDate.getTime()||this.endDate.getTime()!==this.ownerEndDate.getTime()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"layoutCalculator",{get:function(){if(!this._layoutCalculator){var d=this._owner.renderHelper.gridLayoutCalculator;this.hasCustomRangeOutOfRender?(this._layoutCalculator=new C.GridLayoutCalculator,this._layoutCalculator.setSettings(d.visibleTaskAreaSize,d.tickSize,d.elementSizeValues,new I.DateRange(this.startDate,this.endDate),d.viewModel,d.viewType,d.scrollBarHeight,this._owner.settings.firstDayOfWeek)):this._layoutCalculator=d}return this._layoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"container",{get:function(){return this._owner.renderHelper.taskAreaContainer},enumerable:!1,configurable:!0}),u.prototype.getPosByDate=function(d){return this.layoutCalculator.getPosByDate(d)},u.prototype.getScaleTableStyle=function(){var d={},h=this.scaleElements[0].filter(function(x){return!!x})[0],g=this.getElementStyle(h);return d.backgroundColor=this.findElementBackColor(h),d.borderColor=this.getChartTableBorderColor(),d.verticalAlign="middle",d.textAlign="center",d.fontSize=g.fontSize,d.fontFamily=g.fontFamily,d.fontWeight=g.fontWeight,d.fontStyle=g.fontStyle,d.color=g.color,d},u.prototype.getChartMainTableStyle=function(){var d={};return d.backgroundColor=this.findElementBackColor(this.taskArea),d.borderColor=this.getChartTableBorderColor(),d},u.prototype.findElementBackColor=function(d){if(!d)return null;for(var h=d,g=new a.Color("transparent");0===g.opacity&&h;){var x=this.getElementStyle(h);g.assign(x.backgroundColor),h=h.parentElement}return g},u.prototype.getChartTableBorderColor=function(){return this.getElementStyle(this.scaleBorders[0].filter(function(h){return!!h})[0])?.borderColor},u.prototype.getParentBackColor=function(){return this.getElementStyle(this.hlRowElements[0])?.backgroundColor},u.prototype.getArrowWidth=function(){var d=this.getDependencyLineStyle(C.GridLayoutCalculator.arrowClassName);return d&&c.DomUtils.pxToInt(d.borderWidth||d.borderLeftWidth||d.borderRightWidth||d.borderTopWidth||d.borderBottomWidth)},u.prototype.getDependencyColor=function(){return this.getDependencyLineStyle(C.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL)?.borderColor},u.prototype.getDependencyLineStyle=function(d){return this.getElementStyle(this.taskArea.getElementsByClassName(d)[0])},u.prototype.getElementStyle=function(d){return d&&getComputedStyle(d)},u.prototype.getTaskWrapper=function(d){return this.isTaskTemplateMode?this._owner.renderHelper.fakeTaskWrapper:(this.taskElements[d]||this._owner.renderHelper.createDefaultTaskElement(d),this.taskElements[d])},Object.defineProperty(u.prototype,"isTaskTemplateMode",{get:function(){return!!this._owner.settings.taskContentTemplate},enumerable:!1,configurable:!0}),u}();l.TaskAreaExportHelper=s},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GanttPdfExportProps=void 0;var c=o(12),I=o(1),C=o(36),f=o(132),a=o(133),p=o(37),s=function(){function u(d){this.landscape=!1,this.margins=null,this.exportMode=p.ExportMode.all,this.exportDataMode=p.DataExportMode.visible,d&&this.assign(d)}return u.prototype.assign=function(d){if(d){if((0,I.isDefined)(d.pdfDocument)&&(this.pdfDoc=d.pdfDocument),(0,I.isDefined)(d.pdfDoc)&&(this.pdfDoc=d.pdfDoc),this.docCreateMethod=d.docCreateMethod,(0,I.isDefined)(d.fileName)&&(this.fileName=d.fileName),this.landscape=!!d.landscape,(0,I.isDefined)(d.margins)&&(this.margins=new C.Margin(d.margins)),(0,I.isDefined)(d.format)){var h=d.format;if("string"==typeof h)this.format=h;else{var g=parseInt(h.width),x=parseInt(h.height);this.pageSize=new c.Size(g,x)}}else if((0,I.isDefined)(d.pageSize)){var b=d.pageSize;this.pageSize=b instanceof c.Size?b.clone():new c.Size(b.width,b.height)}if((0,I.isDefined)(d.exportMode)&&(this.exportMode=this.getEnumValue(p.ExportMode,d.exportMode)),(0,I.isDefined)(d.dateRange)){var y=d.dateRange;"number"==typeof y||"string"==typeof y?this.exportDataMode=this.getEnumValue(p.DataExportMode,y):this.dateRange=new f.PdfDataRange(y)}(0,I.isDefined)(d.font)&&(this.font=new a.PdfCustomFontSettings(d.font))}},u.prototype.getEnumValue=function(d,h){if(!(0,I.isDefined)(d[h]))return null;var g=parseInt(h);return isNaN(g)?d[h]:g},u.autoFormatKey="auto",u}();l.GanttPdfExportProps=s},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PdfDataRange=void 0;var c=o(1),I=function(){function C(f,a,p,s){var u=!f||f instanceof Date?{startDate:f,endDate:a,startIndex:p,endIndex:s}:f;u&&this.assign(u)}return C.prototype.assign=function(f){(0,c.isDefined)(f.startDate)&&(this.startDate=f.startDate instanceof Date?f.startDate:new Date(f.startDate)),(0,c.isDefined)(f.endDate)&&(this.endDate=f.endDate instanceof Date?f.endDate:new Date(f.endDate)),(0,c.isDefined)(f.startIndex)&&(this.startIndex=parseInt(f.startIndex)),(0,c.isDefined)(f.endIndex)&&(this.endIndex=parseInt(f.endIndex))},C}();l.PdfDataRange=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PdfCustomFontSettings=void 0;var c=o(1),I=function(){function C(f){this.style="normal",f&&this.assign(f)}return C.prototype.assign=function(f){(0,c.isDefined)(f.fontObject)&&(this.fontObject=f.fontObject),(0,c.isDefined)(f.name)&&(this.name=f.name),(0,c.isDefined)(f.style)&&(this.style=f.style),(0,c.isDefined)(f.weight)&&(this.weight=f.weight)},C.prototype.applyToDoc=function(f){try{if(f&&this.fontObject&&this.name){var a=this.name+"-"+this.style+".ttf";f.addFileToVFS(a,this.fontObject),f.addFont(a,this.name,this.style,this.weight),f.setFont(this.name)}}catch{}},C}();l.PdfCustomFontSettings=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PdfGanttPaginator=void 0;var c=o(5),I=o(12),C=o(60),f=o(44),a=o(61),p=o(63),s=o(27),u=o(45),d=o(135),h=function(b,y,E,S,O){this.pageVerIndex=y,this.pageHorIndex=b,this.cellRowIndexOnPage=E,this.cellColIndexOnPage=S,this.cell=O},g=function(){function b(y,E,S,O){this.pageIndex=y,this.globalCellIndex=E,this.pageOffset=S,this.cutSize=O}return Object.defineProperty(b.prototype,"isCutted",{get:function(){return this.cutSize>0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"cellIndexOnPage",{get:function(){return this.globalCellIndex-this.pageOffset},enumerable:!1,configurable:!0}),b}(),x=function(){function b(y,E,S){this._pdfDoc=y,this._props=E,this._globalInfo=S}return b.prototype.getPages=function(){return delete this._pages,this._paginateTables(),this._paginateObjects(),this.pageMatrixToArray},b.prototype._paginateTables=function(){this._paginateTable(s.PdfPageTableNames.treeListHeader),this._paginateTable(s.PdfPageTableNames.treeListMain),this._paginateTable(s.PdfPageTableNames.chartScaleBottom),this._paginateTable(s.PdfPageTableNames.chartScaleTop),this._paginateTable(s.PdfPageTableNames.chartMain)},b.prototype._paginateObjects=function(){this._paginateTasks(),this._paginateDependencies(),this._paginateResources(),this._paginateTimeMarkers()},Object.defineProperty(b.prototype,"pageMatrixToArray",{get:function(){var y,E=new Array;return null===(y=this._pages)||void 0===y||y.forEach(function(S){E=E.concat(S)}),E},enumerable:!1,configurable:!0}),b.prototype._paginateTasks=function(){var y,E,S=this;null===(E=null===(y=this._globalInfo.objects)||void 0===y?void 0:y.tasks)||void 0===E||E.forEach(function(O){return S._paginateTask(O)})},b.prototype._paginateDependencies=function(){var y,E,S=this;null===(E=null===(y=this._globalInfo.objects)||void 0===y?void 0:y.dependencies)||void 0===E||E.forEach(function(O){O.arrowInfo?S._paginateArrow(O):S._paginateDependencyLine(O)})},b.prototype._paginateResources=function(){var y,E,S=this;null===(E=null===(y=this._globalInfo.objects)||void 0===y?void 0:y.resources)||void 0===E||E.forEach(function(O){return S._paginateResource(O)})},b.prototype._paginateTimeMarkers=function(){var y,E,S=this;null===(E=null===(y=this._globalInfo.objects)||void 0===y?void 0:y.timeMarkers)||void 0===E||E.forEach(function(O){return S._paginateTimeMarker(O)})},b.prototype._paginateTable=function(y){var E,S=null===(E=this._globalInfo)||void 0===E?void 0:E.tables[y];if(S){for(var O=this._getTableStart(S),w=this._preparePagesNavigationMatrixForTable(O,S),T=w.length,k=0;k<T;k++)for(var R=w[k].length,P=0;P<R;P++){var B=w[k][P],W=this._getPage(B.pageVerIndex,B.pageHorIndex,!0);this._setTablePositionOnPage(W,y,B.pageHorIndex===O.hIndex?O.pageX:this.pageLeft,B.pageVerIndex===O.vIndex?O.pageY:this.pageTop),this._addCellToPage(W,y,B)}this._updateTableSizeOnPages(y)}},b.prototype._paginateTask=function(y){for(var E=this._getTaskPagination(y),S=this._getTaskPagination(y,!0),O=0;O<S.length;O++)for(var w=0;w<E.length;w++){var T=new f.PdfTaskInfo;T.assign(y),this._offsetPoints(T.sidePoints,E[w].offset,S[O].offset),this._addTaskToPage(S[O].pageIndex,E[w].pageIndex,T)}},b.prototype._paginateArrow=function(y){var E=this._getPointPageInfo(y.points[0]),S=new C.PdfDependencyLineInfo;S.assign(y),this._offsetPoints(S.points,E.offsetX,E.offsetY),this._addDependencyToPage(E.pageVerIndex,E.pageHorIndex,S)},b.prototype._paginateDependencyLine=function(y){for(var E=this._getDependencyLinePagination(y),S=this._getDependencyLinePagination(y,!0),O=0;O<S.length;O++)for(var w=0;w<E.length;w++){var T=new C.PdfDependencyLineInfo;T.assign(y),this._offsetPoints(T.points,E[w].offset,S[O].offset),this._addDependencyToPage(S[O].pageIndex,E[w].pageIndex,T)}},b.prototype._paginateResource=function(y){var E=this._getPointPageInfo(new c.Point(y.x,y.y)),S=new a.PdfTaskResourcesInfo;S.assign(y),S.x-=E.offsetX,S.y-=E.offsetY,this._addResourceToPage(E.pageVerIndex,E.pageHorIndex,S)},b.prototype._paginateTimeMarker=function(y){for(var E=this._getTimeMarkerPagination(y),S=this._getTimeMarkerPagination(y,!0),O=0;O<S.length;O++)for(var w=0;w<E.length;w++){var T=new p.PdfTimeMarkerInfo;T.assign(y),T.start.x-=E[w].offset,T.start.y-=S[O].offset,this._addTimeMarkerToPage(S[O].pageIndex,E[w].pageIndex,T)}},b.prototype._getTableStart=function(y){var E=new d.PageNavigation(this.pageBorders,0,0,0,0,this.correctedPageBottoms);return E.offset(y.position.x,y.position.y),E},b.prototype._getPage=function(y,E,S){return S&&this._extendPageMatrixIfRequired(y,E),this._pages[y]&&this._pages[y][E]},b.prototype._getTableOrCreate=function(y,E){var S,O;return null!==(S=(O=y.tables)[E])&&void 0!==S||(O[E]=this._createTable(E)),y.tables[E]},b.prototype._preparePagesNavigationMatrixForTable=function(y,E){for(var S=new Array,O=this._getTableNavigationVector(y,E,!0),w=O.length,T=0;T<w;T++){for(var k=new Array,R=O[T],P=this._getTableNavigationVector(y,E,!1,R.globalCellIndex),B=P.length,W=0;W<B;W++){var N=P[W],U=this._prepareCuttedCell(E.cells[R.globalCellIndex][N.globalCellIndex],N,R,E.name===s.PdfPageTableNames.chartScaleTop),K=new h(N.pageIndex,R.pageIndex,R.cellIndexOnPage,N.cellIndexOnPage,U);k.push(K)}S.push(k)}return S},b.prototype._setTablePositionOnPage=function(y,E,S,O){this._getTableOrCreate(y,E).position=new c.Point(S,O)},b.prototype._extendPageMatrixIfRequired=function(y,E){var S;null!==(S=this._pages)&&void 0!==S||(this._pages=new Array);for(var O=this._pages.length;O<=y;O++)this._pages.push(new Array);var w=this._pages[y];for(O=w.length;O<=E;O++)w.push(this._createPage())},b.prototype._getTableAndExtendIfRequired=function(y,E,S,O){for(var w=this._getTableOrCreate(y,E),T=w.cells,k=T.length;k<=S;k++)T.push(new Array);var R=T[S];for(k=R.length;k<=O;k++)R.push(new u.CellDef);return w},b.prototype._createPage=function(){return{objects:{tasks:null,dependencies:null,resources:null,timeMarkers:null},tables:{}}},b.prototype._createTable=function(y){var E,S=null===(E=this._globalInfo)||void 0===E?void 0:E.tables[y];return{name:y,size:null,position:null,style:S.style,baseCellSize:S.baseCellSize,cells:new Array,hideRowLines:S.hideRowLines}},b.prototype._addCellToPage=function(y,E,S){var O=S.cellRowIndexOnPage,w=S.cellColIndexOnPage;this._getTableAndExtendIfRequired(y,E,O,w).cells[O][w].assign(S.cell)},b.prototype._updateTableSizeOnPages=function(y){for(var E,S=null===(E=this._pages[0])||void 0===E?void 0:E.length,O=this._pages.length,w=0;w<O;w++)for(var T=0;T<S;T++)this._updateTableSizeOnPage(this._pages[w][T],y)},b.prototype._updateTableSizeOnPage=function(y,E){var S,O=this,w=y?.tables[E];if(w){var T=w.cells.length*w.baseCellSize.height||0,k=(null===(S=w.cells[0])||void 0===S?void 0:S.reduce(function(R,P,B){return R+O._getCellWidth(w,0,B)},0))||0;w.size=new I.Size(k,T)}},b.prototype._getTableNavigationVector=function(y,E,S,O){var w,T;void 0===S&&(S=!1),void 0===O&&(O=0);for(var k=new Array,R=d.PageNavigation.createFrom(y),P=S?null===(w=E.cells)||void 0===w?void 0:w.length:null===(T=E.cells[O])||void 0===T?void 0:T.length,B=0;B<P;B++){var W=S?E.baseCellSize.height:this._getCellWidth(E,O,B);this._placeCell(k,R,B,W,S)}return k},b.prototype._placeCell=function(y,E,S,O,w){var T,k,R=w?E.vIndex:E.hIndex,P=null!==(k=null===(T=y[y.length-1])||void 0===T?void 0:T.pageOffset)&&void 0!==k?k:S,B=O,W=E.getSpaceToBorder(w);E.offsetOneD(O,w);var N=w?E.vIndex:E.hIndex;if(!w)for(var V=R;V<N;V++){var U=new g(V,S,P,W);P=S,y.push(U),B-=W,W=E.getPageSize(w)}N!==R&&(P=S);var K=new g(N,S,P,B!==O?B:null);y.push(K)},b.prototype._prepareCuttedCell=function(y,E,S,O){var w=new u.CellDef(y);if(E.isCutted){var T=E.cutSize;if(!O){var k=w.content,R=y.styles,B=this._pdfDoc.splitTextToSize(k,T-(R&&R.cellPadding.left||0)-(R&&R.cellPadding.right||0));y.content=k.replace(B[0],""),w.content=B[0]}w.styles.cellWidth.assign(T)}return S.isCutted&&(w.styles.minCellHeight=S.cutSize),w},b.prototype._getCellWidth=function(y,E,S){var O,w=y.cells[E][S],T=w.styles;return T.cellWidth.getValue()??T.minCellWidth??y.baseCellSize.width*(null!==(O=w.colSpan)&&void 0!==O?O:1)},b.prototype._getTaskPagination=function(y,E){return this._getLinePagination(E?y.top:y.left,E?y.height:y.width,E)},b.prototype._getDependencyLinePagination=function(y,E){var S=y.points[0],O=y.points[1];return this._getLinePagination(E?S.y:S.x,E?O.y-S.y:O.x-S.x,E)},b.prototype._getTimeMarkerPagination=function(y,E){return this._getLinePagination(E?y.start.y:y.start.x,E?y.size.height:y.size.width,E)},b.prototype._getLinePagination=function(y,E,S){var O=new Array,w=this.pageNavigator.clone();w.offsetOneD(y,S);var T=S?w.vIndex:w.hIndex;w.offsetOneD(E,S);for(var k=S?w.vIndex:w.hIndex,R=T;R<=k;R++)O.push({offset:w.getPageGlobalOffset(R,S),pageIndex:R});return O},b.prototype._getPointPageInfo=function(y){var E=this.pageNavigator.clone();return E.offset(y.x,y.y),{offsetX:E.getPageGlobalOffset(E.hIndex),offsetY:E.getPageGlobalOffset(E.vIndex,!0),pageHorIndex:E.hIndex,pageVerIndex:E.vIndex}},Object.defineProperty(b.prototype,"pageWidth",{get:function(){var y;return null===(y=this._pdfDoc)||void 0===y?void 0:y.getPageWidth()},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageHeight",{get:function(){var y;return null===(y=this._pdfDoc)||void 0===y?void 0:y.getPageHeight()},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageLeftMargin",{get:function(){var y;return null===(y=this._props)||void 0===y?void 0:y.margins.left},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageTopMargin",{get:function(){var y;return null===(y=this._props)||void 0===y?void 0:y.margins.top},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageRightMargin",{get:function(){var y;return null===(y=this._props)||void 0===y?void 0:y.margins.right},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageBottomMargin",{get:function(){var y;return null===(y=this._props)||void 0===y?void 0:y.margins.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageLeft",{get:function(){var y;return null!==(y=this._pageLeft)&&void 0!==y||(this._pageLeft=this.pageLeftMargin),this._pageLeft},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageRight",{get:function(){var y;return null!==(y=this._pageRight)&&void 0!==y||(this._pageRight=this.pageWidth-this.pageRightMargin),this._pageRight},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageTop",{get:function(){var y;return null!==(y=this._pageTop)&&void 0!==y||(this._pageTop=this.pageTopMargin),this._pageTop},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageBottom",{get:function(){var y;return null!==(y=this._pageBottom)&&void 0!==y||(this._pageBottom=this.pageHeight-this.pageBottomMargin),this._pageBottom},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageBorders",{get:function(){return{left:this.pageLeft,top:this.pageTop,bottom:this.pageBottom,right:this.pageRight}},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"correctedPageBottoms",{get:function(){var y;return null!==(y=this._correctedPageBottoms)&&void 0!==y||(this._correctedPageBottoms=this._getCorrectedPagesBottom()),this._correctedPageBottoms},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageNavigator",{get:function(){var y;return null!==(y=this._pageNavigator)&&void 0!==y||(this._pageNavigator=new d.PageNavigation(this.pageBorders,0,0,0,0,this.correctedPageBottoms)),this._pageNavigator},enumerable:!1,configurable:!0}),b.prototype._getCorrectedPagesBottom=function(){var y,E,S,O,w=new Array,T=null===(y=this._globalInfo)||void 0===y?void 0:y.tables,k=null!==(E=T[s.PdfPageTableNames.treeListMain])&&void 0!==E?E:T[s.PdfPageTableNames.chartMain],R=new d.PageNavigation(this.pageBorders);R.pageY=k.position.y;for(var P=0;P<k.cells.length;P++){var B=null!==(O=null===(S=k.cells[P][0].styles)||void 0===S?void 0:S.minCellHeight)&&void 0!==O?O:k.baseCellSize.height,W=R.vIndex,N=R.pageY;R.offsetOneD(B,!0),W!==R.vIndex&&(w.push(N),R.pageY=R.getPageStart(!0)+B)}return w},b.prototype._addTaskToPage=function(y,E,S){var O,w,T=this._getPage(y,E);T&&(null!==(O=(w=T.objects).tasks)&&void 0!==O||(w.tasks=new Array),T.objects.tasks.push(S))},b.prototype._addDependencyToPage=function(y,E,S){var O,w,T=this._getPage(y,E);T&&(null!==(O=(w=T.objects).dependencies)&&void 0!==O||(w.dependencies=new Array),T.objects.dependencies.push(S))},b.prototype._addResourceToPage=function(y,E,S){var O,w,T=this._getPage(y,E);T&&(null!==(O=(w=T.objects).resources)&&void 0!==O||(w.resources=new Array),T.objects.resources.push(S))},b.prototype._addTimeMarkerToPage=function(y,E,S){var O,w,T=this._getPage(y,E);T&&(null!==(O=(w=T.objects).timeMarkers)&&void 0!==O||(w.timeMarkers=new Array),T.objects.timeMarkers.push(S))},b.prototype._offsetPoints=function(y,E,S){y.forEach(function(O){O.x-=E,O.y-=S})},b}();l.PdfGanttPaginator=x},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PageNavigation=void 0;var c=function(){function I(C,f,a,p,s,u){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=f??this.vIndex,this.hIndex=a??this.hIndex,this.pageX=p??this.pageX,this.pageY=s??this.pageY,u&&(this._correctedBottoms=u)}return I.prototype.offset=function(C,f){C&&this.offsetOneD(C),f&&this.offsetOneD(f,!0)},I.prototype.offsetOneD=function(C,f){for(var a=C,p=this.getSpaceToBorder(f);p<a;)f?(this.vIndex++,this.pageY=this._top):(this.hIndex++,this.pageX=this._left),a-=p,p=this.getSpaceToBorder(f);f?this.pageY+=a:this.pageX+=a},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,f){return C?this.getPageHeight(f):this.defaultPageWidth},I.prototype.getSpaceToBorder=function(C){return C?this.getCurrentPageBottom()-this.pageY:this._right-this.pageX},I.prototype.getPageGlobalOffset=function(C,f){if(!f)return C*this.defaultPageWidth;for(var a=0,p=1;p<=C;p++)a+=this.getPageHeight(p-1);return a},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 f=new I;return f.assign(C),f},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 f;return null!==(f=this._correctedBottoms[C])&&void 0!==f?f:this._bottom},I.prototype.getPageHeight=function(C){return this.getPageBottom(C)-this._top},I}();l.PageNavigation=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ScalingHelper=void 0;var c=o(27),I=function(){function C(f){this._doc=f}return Object.defineProperty(C.prototype,"_docScaleFactor",{get:function(){var f,a;return null===(a=null===(f=this._doc)||void 0===f?void 0:f.internal)||void 0===a?void 0:a.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(f){return f*C._defaultScaleFactor/this._docScaleFactor},C.prototype.scalePageMargins=function(f){var a,p,s,u;this._correctScaleNeeded&&(!(null===(a=f?.margins)||void 0===a)&&a.left&&(f.margins.left=this.getScaledSize(f.margins.left)),!(null===(p=f?.margins)||void 0===p)&&p.right&&(f.margins.right=this.getScaledSize(f.margins.right)),!(null===(s=f?.margins)||void 0===s)&&s.top&&(f.margins.top=this.getScaledSize(f.margins.top)),null!==(u=f?.margins)&&void 0!==u&&u.bottom&&(f.margins.bottom=this.getScaledSize(f.margins.bottom)))},C.prototype.scaleSizes=function(f){this._correctScaleNeeded&&(this.scaleTables(f),this.scaleObjects(f.objects))},C.prototype.scaleTables=function(f){f?.tables&&(this.scaleTable(f.tables[c.PdfPageTableNames.treeListHeader]),this.scaleTable(f.tables[c.PdfPageTableNames.treeListMain]),this.scaleTable(f.tables[c.PdfPageTableNames.chartMain]),this.scaleTable(f.tables[c.PdfPageTableNames.chartScaleTop]),this.scaleTable(f.tables[c.PdfPageTableNames.chartScaleBottom]))},C.prototype.scaleTable=function(f){var a,p,s,u,d,h;if(f&&(!(null===(a=f.size)||void 0===a)&&a.width&&(f.size.width=this.getScaledSize(f.size.width)),!(null===(p=f.size)||void 0===p)&&p.height&&(f.size.height=this.getScaledSize(f.size.height)),!(null===(s=f.position)||void 0===s)&&s.x&&(f.position.x=this.getScaledSize(f.position.x)),!(null===(u=f.position)||void 0===u)&&u.y&&(f.position.y=this.getScaledSize(f.position.y)),!(null===(d=f.baseCellSize)||void 0===d)&&d.width&&(f.baseCellSize.width=this.getScaledSize(f.baseCellSize.width)),!(null===(h=f.baseCellSize)||void 0===h)&&h.height&&(f.baseCellSize.height=this.getScaledSize(f.baseCellSize.height)),f.cells))for(var g=0;g<f.cells.length;g++)for(var x=f.cells[g],b=0;b<x.length;b++)this.scaleStyle(x[b].styles)},C.prototype.scaleObjects=function(f){this.scaleTasks(f?.tasks),this.scaleDependencies(f?.dependencies),this.scaleResources(f?.resources),this.scaleTimeMarkers(f?.timeMarkers)},C.prototype.scaleTasks=function(f){var a=this;f?.forEach(function(p){a.scalePoints(p.sidePoints),p.progressWidth=a.getScaledSize(p.progressWidth),a.scaleStyle(p.textStyle)})},C.prototype.scaleDependencies=function(f){var a=this;f?.forEach(function(p){var s;a.scalePoints(p.points),null!==(s=p.arrowInfo)&&void 0!==s&&s.width&&(p.arrowInfo.width=a.getScaledSize(p.arrowInfo.width))})},C.prototype.scaleResources=function(f){var a=this;f?.forEach(function(p){p.x=a.getScaledSize(p.x),p.y=a.getScaledSize(p.y),a.scaleStyle(p.style)})},C.prototype.scaleTimeMarkers=function(f){var a=this;f?.forEach(function(p){p.start.x=a.getScaledSize(p.start.x),p.start.y=a.getScaledSize(p.start.y),p.size.width=a.getScaledSize(p.size.width),p.size.height=a.getScaledSize(p.size.height)})},C.prototype.scaleStyle=function(f){var a,p,s,u;if(f){var d=f.cellWidth;if(d?.hasValue()){var h=this.getScaledSize(Number(d.getValue()));d.assign(h)}f.minCellHeight&&(f.minCellHeight=this.getScaledSize(f.minCellHeight)),f.minCellWidth&&(f.minCellWidth=this.getScaledSize(f.minCellWidth)),!(null===(a=f.cellPadding)||void 0===a)&&a.left&&(f.cellPadding.left=this.getScaledSize(f.cellPadding.left)),!(null===(p=f.cellPadding)||void 0===p)&&p.right&&(f.cellPadding.right=this.getScaledSize(f.cellPadding.right)),!(null===(s=f.cellPadding)||void 0===s)&&s.top&&(f.cellPadding.top=this.getScaledSize(f.cellPadding.top)),null!==(u=f.cellPadding)&&void 0!==u&&u.bottom&&(f.cellPadding.bottom=this.getScaledSize(f.cellPadding.bottom))}},C.prototype.scalePoints=function(f){var a=this;f?.forEach(function(p){p.x=a.getScaledSize(p.x),p.y=a.getScaledSize(p.y)})},C._defaultScaleFactor=.75,C}();l.ScalingHelper=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.History=void 0;var c=o(138),I=o(42),C=function(){function f(a){this.historyItems=[],this.currentIndex=-1,this.currentProcessingItemInfo=null,this.transaction=null,this.transactionLevel=-1,this._listener=a}return f.prototype.undo=function(){this.canUndo()&&(this.activateItem(this.historyItems[this.currentIndex],!0),this.currentIndex--)},f.prototype.redo=function(){this.canRedo()&&(this.currentIndex++,this.activateItem(this.historyItems[this.currentIndex]))},f.prototype.beginTransaction=function(){var a;this.transactionLevel++,0==this.transactionLevel&&(this.transaction=new I.CompositionHistoryItem,null===(a=this._listener)||void 0===a||a.onTransactionStart())},f.prototype.endTransaction=function(){var a;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===(a=this._listener)||void 0===a||a.onTransactionEnd()}},f.prototype.addAndRedo=function(a){this.add(a),this.activateItem(a)},f.prototype.add=function(a){this.transactionLevel>=0?this.transaction.add(a):this.addInternal(a)},f.prototype.canUndo=function(){return this.currentIndex>=0},f.prototype.canRedo=function(){return this.currentIndex<this.historyItems.length-1},f.prototype.addInternal=function(a){this.currentIndex<this.historyItems.length-1&&this.historyItems.splice(this.currentIndex+1),this.historyItems.push(a),this.currentIndex++,this.deleteOldItems()},f.prototype.deleteOldItems=function(){var a=this.historyItems.length-f.MAX_HISTORY_ITEM_COUNT;a>0&&this.currentIndex>a&&(this.historyItems.splice(0,a),this.currentIndex-=a)},f.prototype.clear=function(){this.currentIndex=-1,this.historyItems=[]},f.prototype.activateItem=function(a,p){void 0===p&&(p=!1),this.currentProcessingItemInfo=new c.HistoryItemInfo(a,p),p?a.undo():a.redo(),this.currentProcessingItemInfo=null},f.prototype.getCurrentProcessingItemInfo=function(){return this.currentProcessingItemInfo},f.prototype.rollBackAndRemove=function(a){var p=a.item;this.checkAndRemoveItem(p)&&(a.isUndo?p.redo():p instanceof I.CompositionHistoryItem?p.undoItemsQuery():p.undo())},f.prototype.checkAndRemoveItem=function(a){var p=this.historyItems.indexOf(a);return p>-1?(this.historyItems.splice(p,1),this.currentIndex--):this.transaction&&(p=this.transaction.historyItems.indexOf(a))>-1&&this.transaction.historyItems.splice(p,1),p>-1},f.prototype.updateObsoleteInsertedKey=function(a,p,s){this.transaction&&this.updateItemsObsoleteInsertedKey(a,p,s,[this.transaction]),this.updateItemsObsoleteInsertedKey(a,p,s,this.historyItems)},f.prototype.updateItemsObsoleteInsertedKey=function(a,p,s,u){if(u)for(var d=0;d<u.length;d++){var h=u[d];h.keyUpdaters.filter(function(g){return g.getKey()===a&&g.objectType===s}).forEach(function(g){return g.updateKey(p)}),h instanceof I.CompositionHistoryItem&&this.updateItemsObsoleteInsertedKey(a,p,s,h.historyItems)}},f.MAX_HISTORY_ITEM_COUNT=100,f}();l.History=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.HistoryItemInfo=void 0,l.HistoryItemInfo=function(I,C){void 0===C&&(C=!1),this.item=I,this.isUndo=C}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ModelChangesDispatcher=void 0;var c=o(140),I=o(141),C=o(142),f=o(143),a=o(144),p=function(){function s(){this.onModelChanged=new a.EventDispatcher,this.isLocked=!1}return s.prototype.notifyTaskCreating=function(u){this.isLocked||this.onModelChanged.raise("NotifyTaskCreating",u)},s.prototype.notifyTaskCreated=function(u,d,h){this.isLocked||this.onModelChanged.raise("NotifyTaskCreated",u,d,h)},s.prototype.notifyTaskRemoving=function(u){this.isLocked||this.onModelChanged.raise("NotifyTaskRemoving",u)},s.prototype.notifyTaskRemoved=function(u,d,h){this.isLocked||this.onModelChanged.raise("NotifyTaskRemoved",u,d,h)},s.prototype.notifyTaskUpdating=function(u){this.isLocked||this.onModelChanged.raise("NotifyTaskUpdating",u)},s.prototype.notifyTaskMoving=function(u){this.isLocked||this.onModelChanged.raise("NotifyTaskMoving",u)},s.prototype.notifyTaskEditDialogShowing=function(u){this.isLocked||this.onModelChanged.raise("NotifyTaskEditDialogShowing",u)},s.prototype.notifyResourceManagerDialogShowing=function(u){this.isLocked||this.onModelChanged.raise("NotifyResourceManagerDialogShowing",u)},s.prototype.notifyTaskUpdated=function(u,d,h){this.isLocked||this.onModelChanged.raise("NotifyTaskUpdated",u,d,h)},s.prototype.notifyParentTaskUpdated=function(u,d){this.isLocked||this.onModelChanged.raise("NotifyParentTaskUpdated",u,d)},s.prototype.notifyDependencyInserting=function(u){this.isLocked||this.onModelChanged.raise("NotifyDependencyInserting",u)},s.prototype.notifyDependencyInserted=function(u,d,h){this.isLocked||this.onModelChanged.raise("NotifyDependencyInserted",u,d,h)},s.prototype.notifyDependencyRemoving=function(u){this.isLocked||this.onModelChanged.raise("NotifyDependencyRemoving",u)},s.prototype.notifyDependencyRemoved=function(u,d,h){this.isLocked||this.onModelChanged.raise("NotifyDependencyRemoved",u,d,h)},s.prototype.notifyResourceCreating=function(u){this.isLocked||this.onModelChanged.raise("NotifyResourceCreating",u)},s.prototype.notifyResourceCreated=function(u,d,h){this.isLocked||this.onModelChanged.raise("NotifyResourceCreated",u,d,h)},s.prototype.notifyResourceRemoving=function(u){this.isLocked||this.onModelChanged.raise("NotifyResourceRemoving",u)},s.prototype.notifyResourceRemoved=function(u,d,h){this.isLocked||this.onModelChanged.raise("NotifyResourceRemoved",u,d,h)},s.prototype.notifyResourceColorChanged=function(u,d,h){this.isLocked||this.onModelChanged.raise("NotifyResourceColorChanged",u,d,h)},s.prototype.notifyResourceAssigning=function(u){this.isLocked||this.onModelChanged.raise("NotifyResourceAssigning",u)},s.prototype.notifyResourceAssigned=function(u,d,h){this.isLocked||this.onModelChanged.raise("NotifyResourceAssigned",u,d,h)},s.prototype.notifyResourceUnassigning=function(u){this.isLocked||this.onModelChanged.raise("NotifyResourceUnassigning",u)},s.prototype.notifyResourceUnassigned=function(u,d,h){this.isLocked||this.onModelChanged.raise("NotifyResourceUnassigned",u,d,h)},s.prototype.notifyParentDataRecalculated=function(u){this.onModelChanged.raise("NotifyParentDataRecalculated",u)},s.prototype.notifyScaleCellPrepared=function(u){this.onModelChanged.raise("NotifyScaleCellPrepared",u)},s.prototype.fireResourceUnassigning=function(u){var d=new C.ResourceUnassigningArguments(u);return this.notifyResourceUnassigning(d),!d.cancel},s.prototype.raiseTaskUpdating=function(u,d,h){var g=new f.TaskUpdatingArguments(u,d);return this.notifyTaskUpdating(g),!g.cancel&&(h(g.newValues),!0)},s.prototype.raiseTaskMoving=function(u,d,h,g){var x=new f.TaskUpdatingArguments(u,{start:d,end:h});return this.notifyTaskMoving(x),!x.cancel&&(g(x.start,x.end),!0)},s.prototype.raiseTaskTaskEditDialogShowing=function(u,d){var h=new I.TaskEditDialogShowingArguments(u);return this.notifyTaskEditDialogShowing(h),!h.cancel&&(d(h),!0)},s.prototype.raiseResourceManagerDialogShowing=function(u,d){var h=new c.ResourceManagerDialogShowingArguments(u);return this.notifyResourceManagerDialogShowing(h),!h.cancel&&(d(h),!0)},s.prototype.lock=function(){this.isLocked=!0},s.prototype.unlock=function(){this.isLocked=!1},s}();l.ModelChangesDispatcher=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourceManagerDialogShowingArguments=void 0;var c=o(0),I=function(C){function f(a){var p=C.call(this,void 0)||this;return p.values.resources=a.resources,p}return c.__extends(f,C),f}(o(11).BaseArguments);l.ResourceManagerDialogShowingArguments=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskEditDialogShowingArguments=void 0;var c=o(0),I=function(C){function f(a){var p=C.call(this,a.id)||this;return p.values={start:a.start,end:a.end,title:a.title,progress:a.progress},p.hiddenFields=a.hiddenFields,p.readOnlyFields=a.readOnlyFields,p}return c.__extends(f,C),f}(o(11).BaseArguments);l.TaskEditDialogShowingArguments=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourceUnassigningArguments=void 0;var c=o(0),I=function(C){function f(a){var p=C.call(this,a.internalId)||this;return p.values=a,p}return c.__extends(f,C),f}(o(11).BaseArguments);l.ResourceUnassigningArguments=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskUpdatingArguments=void 0;var c=o(0),I=function(C){function f(a,p){var s=C.call(this,a.id)||this;return s.values=a,s.createNewValues(p),s}return c.__extends(f,C),f.prototype.createNewValues=function(a){var p=this;this.newValues={};var s=function(h){Object.prototype.hasOwnProperty.call(a,h)&&(u.newValues[h]=a[h],Object.defineProperty(u,h,{get:function(){return p.newValues[h]}}))},u=this;for(var d in a)s(d)},f}(o(11).BaseArguments);l.TaskUpdatingArguments=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.EventDispatcher=void 0;var c=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 f=0,a=void 0;a=this.listeners[f];f++)if(a===C){this.listeners.splice(f,1);break}},I.prototype.raise=function(C){for(var f=[],a=1;a<arguments.length;a++)f[a-1]=arguments[a];for(var p=0,s=void 0;s=this.listeners[p];p++)s[C]?.apply(s,f)},I.prototype.hasEventListener=function(C){for(var f=0,a=this.listeners.length;f<a;f++)if(this.listeners[f]===C)return!0;return!1},I}();l.EventDispatcher=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ModelManipulator=void 0;var c=o(146),I=o(147),C=o(151);l.ModelManipulator=function(a,p){this.task=new C.TaskManipulator(a,p),this.dependency=new c.TaskDependencyManipulator(a,p),this.resource=new I.ResourcesManipulator(a,p),this.dispatcher=p}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskDependencyManipulator=void 0;var c=o(0),I=o(2),C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return c.__extends(a,f),a.prototype.insertDependency=function(p,s,u,d){var h=this.viewModel;h.onBeginDataObjectCreate();var g=h.dependencies.createItem();return g.predecessorId=p,g.successorId=s,g.type=u,d&&(g.internalId=d),g.id=g.internalId,h.dependencies.add(g),h.updateVisibleItemDependencies(),this.renderHelper.recreateConnectorLineElement(g.internalId,!0),this.dispatcher.notifyDependencyInserted(this.getObjectForDataSource(g),function(x){var b=g.internalId;g.updateId(x),h.processServerInsertedKey(b,g.internalId,I.GanttDataObjectNames.dependency)},this.getErrorCallback()),h.onEndDataObjectCreate(),g},a.prototype.removeDependency=function(p){var s=this.viewModel.dependencies.getItemById(p);return this.viewModel.dependencies.remove(s),this.dispatcher.notifyDependencyRemoved(s.id,this.getErrorCallback(),this.viewModel.getDependencyObjectForDataSource(s)),this.viewModel.updateVisibleItemDependencies(),this.renderHelper.recreateConnectorLineElement(s.internalId),s},a.prototype.getObjectForDataSource=function(p){var s=this.viewModel.tasks.getItemById(p.predecessorId),u=this.viewModel.tasks.getItemById(p.successorId);return{id:p.id,predecessorId:s.id,successorId:u.id,type:p.type}},a}(o(28).BaseManipulator);l.TaskDependencyManipulator=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourcesManipulator=void 0;var c=o(0),I=o(2),C=o(28),f=o(148),a=function(p){function s(u,d){var h=p.call(this,u,d)||this;return h.properties=new f.ResourcePropertiesManipulator(u,d),h}return c.__extends(s,p),s.prototype.create=function(u,d,h,g){var x=this.viewModel;x.onBeginDataObjectCreate();var b=x.resources.createItem();return b.text=u,d&&(b.color=d),h&&(b.internalId=h),b.id=b.internalId,this.viewModel.resources.add(b),this.dispatcher.notifyResourceCreated(this.getResourceObjectForDataSource(b),function(y){var E=b.internalId;b.updateId(y),x.processServerInsertedKey(E,b.internalId,I.GanttDataObjectNames.resource),g&&g(y)},this.getErrorCallback()),x.onEndDataObjectCreate(),b},s.prototype.remove=function(u){var d=this.viewModel.resources.getItemById(u);if(!d)throw new Error("Invalid resource id");if(this.viewModel.assignments.items.filter(function(h){return h.resourceId===u}).length)throw new Error("Can't delete assigned resource");return this.viewModel.resources.remove(d),this.dispatcher.notifyResourceRemoved(d.id,this.getErrorCallback(),this.viewModel.getResourceObjectForDataSource(d)),d},s.prototype.assign=function(u,d,h){var g=this.viewModel;g.onBeginDataObjectCreate();var x=g.assignments.createItem();return x.resourceId=u,x.taskId=d,h&&(x.internalId=h),x.id=x.internalId,this.viewModel.assignments.add(x),this.dispatcher.notifyResourceAssigned(this.getResourceAssignmentObjectForDataSource(x),function(b){var y=x.internalId;x.updateId(b),g.processServerInsertedKey(y,x.internalId,I.GanttDataObjectNames.resourceAssignment)},this.getErrorCallback()),this.viewModel.updateModel(),g.onEndDataObjectCreate(),this.viewModel.owner.resetAndUpdate(),x},s.prototype.deassig=function(u){var d=this.viewModel.assignments.getItemById(u);return this.viewModel.assignments.remove(d),this.dispatcher.notifyResourceUnassigned(d.id,this.getErrorCallback(),this.viewModel.getResourceAssignmentObjectForDataSource(d)),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),d},s.prototype.getResourceObjectForDataSource=function(u){return{id:u.id,text:u.text}},s.prototype.getResourceAssignmentObjectForDataSource=function(u){return{id:u.id,taskId:this.viewModel.tasks.getItemById(u.taskId).id,resourceId:this.viewModel.resources.getItemById(u.resourceId).id}},s}(C.BaseManipulator);l.ResourcesManipulator=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourcePropertiesManipulator=void 0;var c=o(0),I=o(28),C=o(149),f=function(a){function p(s,u){var d=a.call(this,s,u)||this;return d.color=new C.ResourceColorManipulator(s,u),d}return c.__extends(p,a),p}(I.BaseManipulator);l.ResourcePropertiesManipulator=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourceColorManipulator=void 0;var c=o(0),I=function(C){function f(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(f,C),f.prototype.getPropertyValue=function(a){return a.color},f.prototype.setPropertyValue=function(a,p){a.color=p,this.dispatcher.notifyResourceColorChanged(a.id,p,this.getErrorCallback())},f}(o(150).ResourcePropertyManipulator);l.ResourceColorManipulator=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourcePropertyManipulator=void 0;var c=o(0),I=o(54),C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return c.__extends(a,f),a.prototype.setValue=function(p,s){var u=this,d=this.viewModel.resources.getItemById(p),h=new I.HistoryItemState(p,this.getPropertyValue(d));return this.setPropertyValue(d,s),this.viewModel.assignments.items.filter(function(g){return g.resourceId===d.internalId}).forEach(function(g){var x=u.viewModel.findItem(g.taskId).visibleIndex;u.renderHelper.recreateTaskElement(x)}),h},a.prototype.restoreValue=function(p){var s=this;if(p){var u=p.value,d=this.viewModel.resources.getItemById(p.id);this.setPropertyValue(d,u),this.viewModel.assignments.items.filter(function(h){return h.resourceId===d.internalId}).forEach(function(h){var g=s.viewModel.findItem(h.taskId).visibleIndex;s.renderHelper.recreateTaskElement(g)})}},a}(o(28).BaseManipulator);l.ResourcePropertyManipulator=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskManipulator=void 0;var c=o(0),I=o(1),C=o(2),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.create=function(s,u,d){var h=this,g=this.viewModel;g.onBeginDataObjectCreate();var x=g.tasks.createItem();x.start=s.start,x.end=s.end,x.title=s.title,x.progress=s.progress,s.color&&(x.color=s.color);var b=g.tasks.getItemById(s.parentId);return b&&(b.expanded=!0),x.parentId=s.parentId,u&&(x.internalId=u),x.id=x.internalId,g.tasks.add(x),g.updateModel(),this.dispatcher.notifyTaskCreated(this.getObjectForDataSource(x),function(y){var E=x.internalId;if(x.updateId(y),g.processServerInsertedKey(E,x.internalId,C.GanttDataObjectNames.task),d&&d(),h.viewModel.requireFirstLoadParentAutoCalc){var S=g.getCurrentTaskData().map(function(O){return""===O.parentId&&(O.parentId=null),O});h.dispatcher.notifyParentDataRecalculated(S)}},this.getErrorCallback()),g.onEndDataObjectCreate(),g.owner.resetAndUpdate(),x},p.prototype.remove=function(s){var u=this.viewModel.tasks.getItemById(s);if(!u)throw new Error("Invalid task id");if(this.viewModel.dependencies.items.filter(function(d){return d.predecessorId==s||d.successorId==s}).length)throw new Error("Can't delete task with dependency");if(this.viewModel.assignments.items.filter(function(d){return d.taskId==s}).length)throw new Error("Can't delete task with assigned resource");return this.viewModel.tasks.remove(u),this.dispatcher.notifyTaskRemoved(u.id,this.getErrorCallback(),this.viewModel.getTaskObjectForDataSource(u)),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),u},p.prototype.update=function(s,u){var d=this.viewModel.tasks.getItemById(s),h={};Object.keys(u).forEach(function(x){(0,I.isDefined)(d[x])&&(h[x]=d[x],d[x]=u[x])});var g=this.viewModel.findItem(s);return g&&this.renderHelper.recreateTaskElement(g.visibleIndex),this.dispatcher.notifyTaskUpdated(d.id,u,this.getErrorCallback()),h},p.prototype.getObjectForDataSource=function(s){return this.viewModel.getTaskObjectForDataSource(s)},p}(o(28).BaseManipulator);l.TaskManipulator=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PdfGanttExporter=void 0;var c=o(153),I=function(){function C(f){if(!f.settings.pdfDoc&&!f.settings.docCreateMethod)throw new Error("Cannot convert gantt to pdf without document instance!");this._info=f}return C.prototype.export=function(){var f,a,p=this.pdfDoc;this.applyCustomFont();for(var s=this._info,u=new c.PdfGanttPageDrawer(p,s.settings),d=s.getPages(p),h=d.length,g=0;g<h;g++)g>0&&p.addPage(this.getDocumentFormat(),this.getOrientation()),u.drawPage(d[g]);return!(null===(f=this.props)||void 0===f)&&f.fileName&&p.save(null===(a=this.props)||void 0===a?void 0:a.fileName),p},Object.defineProperty(C.prototype,"pdfDoc",{get:function(){var f,a;return null!==(f=this._pdfDoc)&&void 0!==f||(this._pdfDoc=null!==(a=this._info.settings.pdfDoc)&&void 0!==a?a: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 f=this.getJsPDFProps();return this._info.settings.docCreateMethod(f)},C.prototype.getJsPDFProps=function(){var f={putOnlyUsedFonts:!0,unit:"px",hotfixes:["px_scaling"]};return f.orientation=this.getOrientation(),f.format=this.getDocumentFormat(),f},C.prototype.getOrientation=function(){var f;return null!==(f=this.props)&&void 0!==f&&f.landscape?"l":"p"},C.prototype.getDocumentFormat=function(){var f,a,p,s;return null!==(f=this.props)&&void 0!==f&&f.format||null!==(a=this.props)&&void 0!==a&&a.pageSize?null!==(p=this.props)&&void 0!==p&&p.pageSize?[this.props.pageSize.height,this.props.pageSize.width]:null===(s=this.props)||void 0===s?void 0:s.format:"a4"},C.prototype.applyCustomFont=function(){this.props.font&&this.props.font.applyToDoc(this.pdfDoc)},C}();l.PdfGanttExporter=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PdfGanttPageDrawer=void 0;var c=o(5),I=o(154),C=o(27),f=o(37),a=o(155),p=function(){function s(u,d){this._pdfDoc=u,this._props=d}return s.prototype.drawPage=function(u){var d=this._pdfDoc,h=new a.PdfGanttTableDrawer(d);return this.needDrawChart()&&(h.drawTable(u.tables[C.PdfPageTableNames.chartMain]),new I.PdfObjectDrawer(d,u.objects).draw(),h.drawTable(u.tables[C.PdfPageTableNames.chartScaleTop]),h.drawTable(u.tables[C.PdfPageTableNames.chartScaleBottom])),this.needDrawTreeList()&&(h.drawTable(u.tables[C.PdfPageTableNames.treeListMain]),h.drawTable(u.tables[C.PdfPageTableNames.treeListHeader])),this.drawMargins(u),d},s.prototype.needDrawChart=function(){return!this._props||this._props.exportMode===f.ExportMode.all||this._props.exportMode===f.ExportMode.chart},s.prototype.needDrawTreeList=function(){return!this._props||this._props.exportMode===f.ExportMode.all||this._props.exportMode===f.ExportMode.treeList},s.prototype.getContentRightBottom=function(u){var d=new c.Point(0,0);for(var h in u.tables)if(Object.prototype.hasOwnProperty.call(u.tables,h)){var g=u.tables[h];d.x=Math.max(d.x,g.position.x+g.size.width),d.y=Math.max(d.y,g.position.y+g.size.height)}return d},s.prototype.drawMargins=function(u){var d=this._pdfDoc,h=this._props,g=d.getPageWidth(),x=d.getPageHeight(),b=this.getContentRightBottom(u);d.setFillColor(255,255,255),d.rect(0,0,h.margins.left,x,"F"),d.rect(0,0,g,h.margins.top,"F"),d.rect(b.x,0,g,x,"F"),d.rect(0,b.y,g,x,"F")},s}();l.PdfGanttPageDrawer=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PdfObjectDrawer=void 0;var c=o(4),I=o(64),C=o(44),f=function(){function a(p,s){this._FONT_ROW_RATIO=1.15,this._info=s,this._pdfDoc=p}return a.prototype.draw=function(){this.drawTimeMarkers(),this.drawDependencies(),this.drawTasks(),this.drawResources()},a.prototype.drawTasks=function(){var p,s=this,u=null===(p=this._info)||void 0===p?void 0:p.tasks;u&&u.forEach(function(d){return s.drawTask(d)})},a.prototype.drawTask=function(p){var s=this._pdfDoc;s.setFillColor.apply(s,p.taskColor.getRBGColor()),s.setDrawColor.apply(s,p.taskColor.getRBGColor()),p.isMilestone?this.drawMilestone(p):this.drawRegularTask(p)},a.prototype.drawMilestone=function(p){var s=this._pdfDoc,u=p.sidePoints[0].x,d=p.sidePoints[0].y,x=p.sidePoints[2].x,b=p.sidePoints[2].y,y=p.sidePoints[3].x,E=p.sidePoints[3].y;s.triangle(u,d,p.sidePoints[1].x,p.sidePoints[1].y,x,b,"FD"),s.triangle(u,d,y,E,x,b,"FD")},a.prototype.drawRegularTask=function(p){var s=this._pdfDoc;s.rect(p.left,p.top,p.width,p.height,"FD"),p.isParent&&this.drawParentBorder(p),p.progressWidth&&(s.setFillColor.apply(s,p.progressColor.getRBGColor()),s.rect(p.left,p.top,p.progressWidth,p.height,"F")),p.text&&this.printTaskTitle(p)},a.prototype.drawParentBorder=function(p){var s=this._pdfDoc,u=p.sidePoints[0].x,d=p.sidePoints[1].y,h=p.sidePoints[3].y,g=p.sidePoints[2].x,x=p.sidePoints[3].y-p.sidePoints[1].y,b=p.progressWidth>x?p.progressColor.getRBGColor():p.taskColor.getRBGColor();s.setFillColor.apply(s,b),s.triangle(u,d,u,h,u+x,d,"FD"),s.setFillColor.apply(s,p.taskColor.getRBGColor()),s.triangle(g,d,g,h,g-x,d,"FD")},a.prototype.printTaskTitle=function(p){var s,u=this._pdfDoc,d=p.textStyle,h=d&&d.textColor.getRBGColor(),g=d&&d.fontSize;u.setTextColor.apply(u,h),u.setFontSize(g);var x=p.top+g*this._FONT_ROW_RATIO/u.internal.scaleFactor;p.isParent&&(x-=C.PdfTaskInfo.defaultParentHeightCorrection);var b=d&&d.cellPadding.left||0,y=d&&d.cellPadding.right||0;p.textPosition===c.TaskTitlePosition.Inside?(s=p.left+b,u.text(I.EllipsisHelper.limitPdfTextWithEllipsis(p.text,u,p.width-b-y),s,x)):u.text(p.text,s=p.left-y,x,{align:"right"})},a.prototype.drawDependencies=function(){var p,s=this,u=null===(p=this._info)||void 0===p?void 0:p.dependencies;u&&u.forEach(function(d){return s.drawDependencyLine(d)})},a.prototype.drawDependencyLine=function(p){var s,u;if((s=this._pdfDoc).setFillColor.apply(s,p.fillColor.getRBGColor()),(u=this._pdfDoc).setDrawColor.apply(u,p.fillColor.getRBGColor()),p.arrowInfo)this.drawArrow(p);else{var d=p.points;this._pdfDoc.line(d[0].x,d[0].y,d[1].x,d[1].y)}},a.prototype.isValidLine=function(p){var s=p.points;return!(isNaN(s[0].x)||isNaN(s[0].y)||isNaN(s[1].x)||isNaN(s[1].y))},a.prototype.drawArrow=function(p){var s=p.arrowInfo.width||0,u=p.points[0].x,d=p.points[0].y;switch(p.arrowInfo.position){case c.Position.Left:this._pdfDoc.triangle(u,d+s,u+s,d,u+s,d+2*s,"FD");break;case c.Position.Right:this._pdfDoc.triangle(u,d,u,d+2*s,u+s,d+s,"FD");break;case c.Position.Top:this._pdfDoc.triangle(u,d+s,u+s,d,u+2*s,d+s,"FD");break;case c.Position.Bottom:this._pdfDoc.triangle(u,d,u+s,d+s,u+2*s,d,"FD")}},a.prototype.drawResources=function(){var p,s=this,u=this._pdfDoc,d=null===(p=this._info)||void 0===p?void 0:p.resources;d&&d.forEach(function(h){var g,x,b;u.setFontSize(null!==(g=h.style.fontSize)&&void 0!==g?g:11);var y=h.y+h.style.fontSize*s._FONT_ROW_RATIO/u.internal.scaleFactor,E=null!==(x=h.style.cellPadding.left)&&void 0!==x?x:0,S=null!==(b=h.style.cellPadding.right)&&void 0!==b?b:1,O=Math.max(h.style.cellWidth.getValue(),E+u.getTextWidth(h.text)+S);u.setFillColor.apply(u,h.style.fillColor.getRBGColor()),u.rect(h.x,h.y,O,h.style.minCellHeight,"F"),u.setTextColor.apply(u,h.style.textColor.getRBGColor()),u.text(h.text,h.x+E,y)})},a.prototype.drawTimeMarkers=function(){var p,s=this;(null===(p=this._info)||void 0===p?void 0:p.timeMarkers)?.forEach(function(d){return s.drawTimeMarker(d)})},a.prototype.drawTimeMarker=function(p){var s,u,d=this._pdfDoc,h=p.size.width>1,g=p.start.x,x=p.start.y,b=p.size.width,y=p.size.height,E=p.isStripLine;h&&(d.setFillColor.apply(d,p.color.getRBGColor()),d.saveGraphicsState(),d.setGState(new d.GState({opacity:null!==(u=p.color.opacity)&&void 0!==u?u:1})),d.rect(g,x,b,y,"F"),d.restoreGraphicsState()),E&&(this._pdfDoc.setLineDashPattern([3]),(s=this._pdfDoc).setDrawColor.apply(s,p.lineColor.getRBGColor()),h&&this._pdfDoc.line(g+b,x,g+b,x+y,"S"),this._pdfDoc.line(g,x,g,x+y,"S"),this._pdfDoc.setLineDashPattern())},a}();l.PdfObjectDrawer=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.PdfGanttTableDrawer=void 0;var c=o(1),I=o(27),C=o(64),f=o(156),a=function(){function p(s){this._pdfDoc=s}return p.prototype.drawTable=function(s){var u,d;if(s){var h=this.createTableOptions(s);!(null===(u=s.style)||void 0===u)&&u.fontSize&&this._pdfDoc.setFontSize(null===(d=s.style)||void 0===d?void 0:d.fontSize),this._pdfDoc.autoTable(h.getValue())}},p.prototype.createTableOptions=function(s){var u=this.createDefaultTableOptions();return this.addTableCommonSettings(s,u),this.addCommonTableStyles(s,u),this.prepareBodyCells(s),u.addBody(s.cells),s.hideRowLines&&this.hideRowLines(u),u},p.prototype.createDefaultTableOptions=function(){var s=new f.TableOptions;return s.pageBreak="auto",s.margin.assign(0),s.tableWidth.assign("auto"),s.styles.cellPadding.assign(0),s.styles.halign="center",s.styles.valign="middle",s.styles.lineWidth=1,s.styles.overflow="hidden",s},p.prototype.addTableCommonSettings=function(s,u){u.startY=s.position.y,u.margin.assign({left:s.position.x}),u.tableWidth.assign(s.size.width)},p.prototype.addCommonTableStyles=function(s,u){var d=u.styles;d.assign(s.style),0===d.fillColor.opacity&&d.fillColor.assign("#FFFFFF"),d.minCellHeight=s.baseCellSize.height,u.alternateRowStyles.minCellHeight=u.styles.minCellHeight,u.alternateRowStyles.fillColor.assign(u.styles.fillColor),(0,c.isDefined)(s.baseCellSize.width)&&d.cellWidth.assign(s.baseCellSize.width)},p.prototype.prepareBodyCells=function(s){var u,d,h;if(s.name===I.PdfPageTableNames.treeListMain||s.name===I.PdfPageTableNames.chartScaleTop||s.name===I.PdfPageTableNames.chartScaleBottom)for(var g=s.cells,x=0;x<g.length;x++)for(var b=g[x],y=0;y<b.length;y++){var E=b[y],S=E.styles,O=(null===(u=S?.cellWidth)||void 0===u?void 0:u.getValue())||s.baseCellSize.width||0,w=null!==(d=S?.cellPadding.left)&&void 0!==d?d:0,T=null!==(h=S?.cellPadding.right)&&void 0!==h?h:0,k=Math.max(O-w-T-p.cellEllipsisSpace,0);E.content=C.EllipsisHelper.limitPdfTextWithEllipsis(E.content,this._pdfDoc,k)}},p.prototype.hideRowLines=function(s){s.styles.lineWidth=0,s.onDrawCellCallback=function(u){var d=u.cell,h=u.doc,g=d.styles.lineColor,x=d.x,b=d.x+d.styles.cellWidth,y=d.y,E=d.y+u.row.height,S=u.column.index===u.table.columns.length-1,O=u.row.index===u.table.body.length-1,w=0===u.row.index;h.setDrawColor(g[0],g[1],g[2]),h.setLineWidth(1),h.line(x,E,x,y),S&&h.line(b,E,b,y),w&&h.line(x,y,b,y),O&&h.line(x,E,b,E)}},p.cellEllipsisSpace=3,p}();l.PdfGanttTableDrawer=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TableOptions=void 0;var c=o(1),I=o(45),C=o(17),f=o(35),a=o(36),p=o(26),s=o(62),u=function(){function d(){this._margin=new a.Margin,this._tableLineColor=new C.Color,this._tableWidth=new s.Width,this._styles=new p.StyleDef,this._alternateRowStyles=new p.StyleDef}return Object.defineProperty(d.prototype,"pageBreak",{get:function(){return this._pageBreak},set:function(h){this._pageBreak=f.PredefinedStyles.getPredefinedStringOrUndefined(h,f.PredefinedStyles.pageBreak)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"rowPageBreak",{get:function(){return this._rowPageBreak},set:function(h){this._rowPageBreak=f.PredefinedStyles.getPredefinedStringOrUndefined(h,f.PredefinedStyles.rowPageBreak)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"showHead",{get:function(){return this._showHead},set:function(h){this._showHead=f.PredefinedStyles.getPredefinedStringOrUndefined(h,f.PredefinedStyles.headerFooterVisibility)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"showFoot",{get:function(){return this._showFoot},set:function(h){this._showFoot=f.PredefinedStyles.getPredefinedStringOrUndefined(h,f.PredefinedStyles.headerFooterVisibility)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"startY",{get:function(){return this._startY},set:function(h){this._startY=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"tableLineWidth",{get:function(){return this._tableLineWidth},set:function(h){this._tableLineWidth=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"margin",{get:function(){return this._margin},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"tableLineColor",{get:function(){return this._tableLineColor},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"tableWidth",{get:function(){return this._tableWidth},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"body",{get:function(){return this._body},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"styles",{get:function(){return this._styles},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"alternateRowStyles",{get:function(){return this._alternateRowStyles},enumerable:!1,configurable:!0}),d.prototype.hasValue=function(){return!0},d.prototype.getValue=function(){var h=this,g={};return g.pageBreak=this.pageBreak,g.rowPageBreak=this.rowPageBreak,g.showFoot=this.showFoot,g.showHead=this.showHead,g.startY=this.startY,g.tableLineWidth=this.tableLineWidth,this.getJsPdfProviderProps().forEach(function(x){var b=h[x];b&&b.hasValue()&&(g[x]=b.getValue())}),g.body=this.getBodyForJsPdf(),g.columnStyles=this.getColumnStylesForJsPdf(),this.onDrawCellCallback&&(g.didDrawCell=this.onDrawCellCallback),g},d.prototype.getJsPdfProviderProps=function(){return["margin","tableLineColor","tableWidth","styles","alternateRowStyles"]},d.prototype.getBodyForJsPdf=function(){for(var h=[],g=0;g<this._body.length;g++){for(var x=this._body[g],b=[],y=0;y<x.length;y++)b.push(x[y].getValue());h.push(b)}return h},d.prototype.assign=function(h){h&&((0,c.isDefined)(h.margin)&&this.margin.assign(h.margin),(0,c.isDefined)(h.pageBreak)&&(this.pageBreak=h.pageBreak),(0,c.isDefined)(h.rowPageBreak)&&(this.rowPageBreak=h.rowPageBreak),(0,c.isDefined)(h.showFoot)&&(this.showFoot=h.showFoot),(0,c.isDefined)(h.showHead)&&(this.showHead=h.showHead),(0,c.isDefined)(h.startY)&&(this.startY=h.startY),(0,c.isDefined)(h.tableLineWidth)&&(this.tableLineWidth=h.tableLineWidth),(0,c.isDefined)(h.tableLineColor)&&this.tableLineColor.assign(h.tableLineColor),(0,c.isDefined)(h.tableWidth)&&this.tableWidth.assign(h.tableWidth))},d.prototype.addBody=function(h){h&&(this._body=new Array,this.addCells(h,this._body))},d.prototype.addCells=function(h,g){for(var x=this.styles.fillColor,b=0;b<h.length;b++){for(var y=h[b],E=new Array,S=0;S<y.length;S++){var O=new I.CellDef(y[S]);x.hasValue()&&O.styles&&O.styles.fillColor.hasValue()&&O.styles.fillColor.applyOpacityToBackground(x),E.push(O)}g.push(E)}},d.prototype.applyColumnStyle=function(h,g){var x;null!==(x=this._columnStyles)&&void 0!==x||(this._columnStyles=new Array),this._columnStyles[h]=new p.StyleDef(g)},d.prototype.getColumnStylesForJsPdf=function(){if(this._columnStyles){var h={};return this._columnStyles.forEach(function(g,x){g&&(h[x]=g.getValue())}),h}return null},d}();l.TableOptions=u},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.RenderHelper=void 0;var c=o(158),I=o(159),C=o(160),f=o(47),a=o(25),p=o(161),s=o(162),u=o(163),d=o(165),h=o(166),g=o(179),x=o(180),b=o(182),y=o(12),E=o(183),S=o(184),O=function(){function w(T){this.hlRowElements=[],this.renderedColIndices=[],this.renderedRowIndices=[],this.invalidTaskDependencies=[],this.etalonSizeValues=new C.EtalonSizeValues,this._gridLayoutCalculator=new a.GridLayoutCalculator,this._ganttView=T,this._connectorLinesRender=new c.ConnectorLinesRender(this),this._etalonsHelper=new I.EtalonsHelper(this),this._noWorkingIntervalRender=new p.NoWorkingIntervalRender(this),this._resourceRender=new s.ResourseRender(this),this._scaleRender=new u.ScaleRender(this),this._stripLinesRender=new d.StripLinesRender(this),this._taskAreaRender=new g.TaskAreaRender(this),this._taskRender=new x.TaskRender(this),this._mainElementsRender=new b.MainElementsRender}return w.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()},w.prototype.createMainElement=function(T){this.mainElement=this._mainElementsRender.createMainElement(T),T.appendChild(this.mainElement)},w.prototype.createHeader=function(){this.header=this._mainElementsRender.createHeader(),this.mainElement.appendChild(this.header)},w.prototype.init=function(T,k,R,P,B){void 0===B&&(B=0),this._elementTextHelper.setFont(this.mainElement),this.setupHelpers(T,k,R,P,B),this.setSizeForTaskArea(),this.createTimeScale(),this._taskAreaManager=new h.TaskAreaManager(this._ganttView.taskAreaEventsListener,this.taskArea,this.tickSize)},w.prototype.initMarkup=function(T){this._elementTextHelper=new S.ElementTextHelper(this.ganttViewSettings.cultureInfo),this.createMainElement(T),this.createHeader(),this._etalonsHelper.calculateEtalonSizeValues(),this._taskAreaRender.createTaskAreaContainer()},w.prototype.processScroll=function(T){this._taskAreaRender.recreateTaskAreaBordersAndTaskElements(T),T?this._connectorLinesRender.recreateConnectorLineElements():(this._noWorkingIntervalRender.recreateNoWorkingIntervalElements(),this._stripLinesRender.recreateStripLines(),this._scaleRender.recreateScalesElements())},Object.defineProperty(w.prototype,"ganttViewSettings",{get:function(){return this._ganttView.settings},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskTextHeightKey",{get:function(){return f.GanttView.taskTextHeightKey},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"showResources",{get:function(){return this.ganttViewSettings.showResources},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"showDependencies",{get:function(){return this.ganttViewSettings.showDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"viewModelItems",{get:function(){return this._ganttView.viewModel.items},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"stripLines",{get:function(){return this.ganttViewSettings.stripLines},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"range",{get:function(){return this._ganttView.range},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"viewType",{get:function(){return this.ganttViewSettings.viewType},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskTitlePosition",{get:function(){return this.ganttViewSettings.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"tickSize",{get:function(){return this._ganttView.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"ganttViewTaskAreaContainerScrollTop",{get:function(){return this._ganttView.taskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"ganttTaskAreaContainerScrollLeft",{get:function(){return this._ganttView.taskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"scaleCount",{get:function(){return this._ganttView.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"areHorizontalBordersEnabled",{get:function(){return this.ganttViewSettings.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskEditController",{get:function(){return this._ganttView.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"dispatcher",{get:function(){return this._ganttView.dispatcher},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskAreaManager",{get:function(){var T;return null!==(T=this._taskAreaManager)&&void 0!==T||(this._taskAreaManager=new h.TaskAreaManager(this._ganttView.taskAreaEventsListener,this.taskArea,this.tickSize)),this._taskAreaManager},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskAreaContainerScrollTop",{get:function(){return this._taskAreaRender.taskAreaContainer.scrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._taskAreaRender.taskAreaContainer.scrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskAreaContainer",{get:function(){return this._taskAreaRender.taskAreaContainer},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"isExternalTaskAreaContainer",{get:function(){return this._taskAreaRender.taskAreaContainer.isExternal},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"fakeTaskWrapper",{get:function(){return this._taskRender.fakeTaskWrapper},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskElements",{get:function(){return this._taskRender.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"selectionElements",{get:function(){return this._taskRender.selectionElements},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"scaleElements",{get:function(){return this._scaleRender.scaleElements},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"scaleBorders",{get:function(){return this._scaleRender.scaleBorders},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"timeScaleContainer",{get:function(){return this._scaleRender.timeScaleContainer},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"gridLayoutCalculator",{get:function(){return this._gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"etalonScaleItemWidths",{get:function(){return this.etalonSizeValues.scaleItemWidths[this.viewType]},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"elementTextHelperCultureInfo",{get:function(){return this._elementTextHelper.cultureInfo},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"noWorkingIntervalsToElementsMap",{get:function(){return this._noWorkingIntervalRender.noWorkingIntervalsToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"stripLinesMap",{get:function(){return this._stripLinesRender.stripLinesMap},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"renderedConnectorLines",{get:function(){return this._connectorLinesRender.renderedConnectorLines},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"allConnectorLines",{get:function(){return this.gridLayoutCalculator.tileToDependencyMap.reduce(function(T,k){return T.concat(k)},[])},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"resourcesElements",{get:function(){return this._resourceRender.resourcesElements},enumerable:!1,configurable:!0}),w.prototype.setupHelpers=function(T,k,R,P,B){void 0===B&&(B=0);var W=new y.Size(this._taskAreaRender.taskAreaContainer.getWidth(),this._taskAreaRender.taskAreaContainer.getHeight()),N=this._taskAreaRender.taskAreaContainer.getHeight()-this._taskAreaRender.taskAreaContainer.getElement().clientHeight;this._gridLayoutCalculator.setSettings(W,T,this.etalonSizeValues,k,P,R,N,B),this._elementTextHelper.setSettings(k.start.getTime(),R,P.items)},w.prototype.resetAndUpdate=function(T,k,R,P,B){void 0===B&&(B=0);var W=this.getTaskAreaContainerScrollLeft();this.reset(),this.setupHelpers(T,k,R,P,B),this._scaleRender.createTimeScaleAreas(),this.setSizeForTaskArea(),this.setTaskAreaContainerScrollLeft(W)},w.prototype.createConnectorLines=function(){this._gridLayoutCalculator.createTileToConnectorLinesMap(),this._connectorLinesRender.recreateConnectorLineElements()},w.prototype.getTargetDateByPos=function(T){return this._gridLayoutCalculator.getDateByPos(this._taskAreaRender.taskAreaContainer.scrollLeft+T)},w.prototype.getExternalTaskAreaContainer=function(T){return this._ganttView.getExternalTaskAreaContainer(T)},w.prototype.prepareExternalTaskAreaContainer=function(T,k){return this._ganttView.prepareExternalTaskAreaContainer(T,k)},w.prototype.isAllowTaskAreaBorders=function(T){return this._ganttView.allowTaskAreaBorders(T)},w.prototype.getHeaderHeight=function(){return this._ganttView.getHeaderHeight()},w.prototype.getViewItem=function(T){return this._ganttView.getViewItem(T)},w.prototype.getTask=function(T){return this._ganttView.getTask(T)},w.prototype.hasTaskTemplate=function(){return!!this._ganttView.settings.taskContentTemplate},w.prototype.destroyTemplate=function(T){this._ganttView.destroyTemplate(T)},w.prototype.getTaskDependencies=function(T){return this._ganttView.getTaskDependencies(T)},w.prototype.getTaskResources=function(T){return this._ganttView.getTaskResources(T)},w.prototype.isHighlightRowElementAllowed=function(T){return this._ganttView.isHighlightRowElementAllowed(T)},w.prototype.updateRenderedConnectorLinesId=function(T,k){this._connectorLinesRender.updateRenderedConnectorLinesId(T,k)},w.prototype.recreateConnectorLineElement=function(T,k){void 0===k&&(k=!1),this._connectorLinesRender.recreateConnectorLineElement(T,k)},w.prototype.recreateConnectorLineElemensts=function(){this._connectorLinesRender.recreateConnectorLineElements()},w.prototype.setMainElementWidth=function(T){this.mainElement.style.width=T+"px"},w.prototype.setMainElementHeight=function(T){this.mainElement.style.height=T+"px"},w.prototype.createResources=function(T){this._resourceRender.createResourcesWrapperElement(T),this._resourceRender.createResources(T)},w.prototype.createTimeScale=function(){this._scaleRender.createTimeScaleContainer(this.header),this._scaleRender.createTimeScaleAreas()},w.prototype.setTimeScaleContainerScrollLeft=function(T){this._scaleRender.setTimeScaleContainerScrollLeft(T)},w.prototype.recreateStripLines=function(){this._stripLinesRender.recreateStripLines&&this._stripLinesRender.recreateStripLines()},w.prototype.createTaskArea=function(T){this._taskArea=this._taskAreaRender.createTaskArea(),this._taskArea.setAttribute("task-edit-enabled",this.isTaskUpdateAllowed().toString()),T.appendChild(this._taskArea)},w.prototype.isTaskUpdateAllowed=function(){var T=this.ganttViewSettings.editing;return T.enabled&&T.allowTaskUpdate},w.prototype.setSizeForTaskArea=function(){var T=this.getTaskAreaWidth(),k=this.getTaskAreaHeight();this._taskAreaRender.setSizeForTaskArea(T,k),this._ganttView.onTaskAreaSizeChanged({width:T,height:k})},w.prototype.getTaskAreaWidth=function(){return this.gridLayoutCalculator.getTotalWidth()},w.prototype.getTaskAreaHeight=function(){return this.gridLayoutCalculator.getVerticalGridLineHeight()},w.prototype.getTaskAreaContainerScrollLeft=function(){return this._taskAreaRender.taskAreaContainer.scrollLeft},w.prototype.setTaskAreaContainerScrollLeft=function(T){this._taskAreaRender.taskAreaContainer.scrollLeft=T},w.prototype.setTaskAreaContainerScrollLeftToDate=function(T,k){this._taskAreaRender.taskAreaContainer.scrollLeft=Math.round(this._gridLayoutCalculator.getPosByDate(T))+k},w.prototype.getTaskAreaContainer=function(T){return new E.TaskAreaContainer(T,this._ganttView)},w.prototype.prepareTaskAreaContainer=function(){this._taskAreaRender.prepareTaskAreaContainer()},w.prototype.getTaskAreaContainerWidth=function(){return this._taskAreaRender.taskAreaContainer.getWidth()},w.prototype.createHighlightRowElement=function(T){this._taskAreaRender.createHighlightRowElement(T)},w.prototype.getSmallTaskWidth=function(T){return this._taskRender.getSmallTaskWidth(T)},w.prototype.createTaskElement=function(T){this._taskRender.createTaskElement(T,this._ganttView.settings.taskContentTemplate)},w.prototype.removeTaskElement=function(T){this._taskRender.removeTaskElement(T)},w.prototype.recreateTaskElement=function(T){this._taskRender.recreateTaskElement(T)},w.prototype.createDefaultTaskElement=function(T){this._taskRender.createDefaultTaskElement(T)},w.prototype.getScaleItemText=function(T,k){var R=this._gridLayoutCalculator.getScaleItemStart(T,k);return this.getScaleItemTextByStart(R,k)},w.prototype.getScaleItemTextByStart=function(T,k){return this._elementTextHelper.getScaleItemText(T,k)},w.prototype.getTextWidth=function(T){return this._elementTextHelper.getTextWidth(T)},w.prototype.getTaskVisibility=function(T){return this.gridLayoutCalculator.isTaskInRenderedRange(T)&&this._elementTextHelper.getTaskVisibility(T)},w.prototype.getTaskResourcesVisibility=function(T){return this.getTaskVisibility(T)&&!this.gridLayoutCalculator.isTaskCutByRange(T)},w.prototype.getScaleItemTextTemplate=function(T){return this._elementTextHelper.getScaleItemTextTemplate(T)},w.prototype.getTaskText=function(T){return this._elementTextHelper.getTaskText(T)},w.prototype.taskAreaManagerDetachEvents=function(){this.taskAreaManager.detachEvents()},w.prototype.attachEventsOnTask=function(T){this.taskAreaManager.attachEventsOnTask(this._taskRender.taskElements[T])},w.prototype.detachEventsOnTask=function(T){this.taskAreaManager.detachEventsOnTask(this._taskRender.taskElements[T])},w}();l.RenderHelper=O},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ConnectorLinesRender=void 0;var c=o(16),I=o(25),C=function(){function f(a){this._connectorLinesToElementsMap={},this._renderedConnectorLines=[],this._renderHelper=a}return Object.defineProperty(f.prototype,"taskEditController",{get:function(){return this._renderHelper.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"taskAreaContainerScrollTop",{get:function(){return this._renderHelper.ganttViewTaskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"connectorLinesToElementsMap",{get:function(){return this._connectorLinesToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"invalidTaskDependencies",{get:function(){return this._renderHelper.invalidTaskDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"showDependencies",{get:function(){return this._renderHelper.showDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"renderedConnectorLines",{get:function(){return this._renderedConnectorLines},enumerable:!1,configurable:!0}),f.prototype.reset=function(){this._connectorLinesToElementsMap={},this._renderedConnectorLines=[]},f.prototype.createConnectorLineElement=function(a){if(this.showDependencies){var p=a.attr["dependency-id"];if(!this.invalidTaskDependencies.some(function(d){return d.id==p})){this.taskEditController.isDependencySelected(p)&&(a.className=a.className+" active");var s=a.className.indexOf(I.GridLayoutCalculator.arrowClassName)>-1,u=c.RenderElementUtils.create(a,null,this.taskArea,this.connectorLinesToElementsMap);return s&&this.gridLayoutCalculator.checkAndCorrectArrowElementDisplayByRange(u),u}}},f.prototype.removeConnectorLineElement=function(a){c.RenderElementUtils.remove(a,null,this.taskArea,this.connectorLinesToElementsMap)},f.prototype.recreateConnectorLineElement=function(a,p){var s=this;void 0===p&&(p=!1);var u=[];this._renderedConnectorLines=this.renderedConnectorLines.filter(function(h){return h.attr["dependency-id"]!=a||(u.push(h),!1)});var d=u.length>0;u.forEach(function(h){s.removeConnectorLineElement(h)}),u=this.gridLayoutCalculator.updateTileToConnectorLinesMap(a),(d||p)&&u.forEach(function(h){s.createConnectorLineElement(h),s.renderedConnectorLines.push(h)})},f.prototype.recreateConnectorLineElements=function(){var a=this,p=this.gridLayoutCalculator.getRenderedConnectorLines(this.taskAreaContainerScrollTop);c.RenderElementUtils.recreate(this.renderedConnectorLines,p,function(s){a.removeConnectorLineElement(s)},function(s){a.createConnectorLineElement(s)}),this._renderedConnectorLines=p},f.prototype.updateRenderedConnectorLinesId=function(a,p){for(var s in this._renderedConnectorLines.forEach(function(d){d.attr["dependency-id"]===a&&(d.attr["dependency-id"]=p)}),this.connectorLinesToElementsMap)if(Object.prototype.hasOwnProperty.call(this.connectorLinesToElementsMap,s)){var u=this.connectorLinesToElementsMap[s];u.getAttribute("dependency-id")===a&&u.setAttribute("dependency-id",p)}this.gridLayoutCalculator.updateTileToConnectorLinesMap(a),this.gridLayoutCalculator.updateTileToConnectorLinesMap(p)},f}();l.ConnectorLinesRender=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.EtalonsHelper=void 0;var c=o(3),I=o(4),C=o(58),f=o(16),a=function(){function p(s){this._renderHelper=s}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(s){return this._renderHelper.getScaleItemTextTemplate(s)},p.prototype.getHeaderHeight=function(){return this._renderHelper.getHeaderHeight()},p.prototype.getSmallTaskWidth=function(s){return this._renderHelper.getSmallTaskWidth(s)},p.prototype.createEtalonElementsContainer=function(){var s=document.createElement("DIV");return s.style.visibility="hidden",s.style.position="absolute",s.style.left="-1000px",this.mainElement.appendChild(s),s},p.prototype.createEtalonElements=function(s){var u=[],d=f.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskWrapper"),null,s),h=f.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-task"),null,d);f.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,h).innerText="WWW",u.push(d);var g=f.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskWrapper"),null,s);f.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-task dx-gantt-milestone"),null,g),u.push(g);for(var x=["dx-gantt-conn-h","dx-gantt-arrow","dx-gantt-si","dx-gantt-taskTitle dx-gantt-titleOut"],b=0;b<x.length;b++){var y=new C.GridElementInfo(x[b]);u.push(f.RenderElementUtils.create(y,null,s))}var E=f.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskWrapper"),null,s),S=f.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-task dx-gantt-parent"),null,E);return f.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,S).innerText="WWW",u.push(E),u},p.prototype.calculateEtalonSizeValues=function(){var s=this.createEtalonElementsContainer(),u=this.createEtalonElements(s);this.calculateEtalonSizeValuesCore(u),this.mainElement.removeChild(s)},p.prototype.calculateEtalonSizeValuesCore=function(s){this.etalonSizeValues.taskHeight=s[0].firstChild.offsetHeight,this.etalonSizeValues.milestoneWidth=s[1].firstChild.offsetWidth,this.etalonSizeValues.taskWrapperTopPadding=c.DomUtils.pxToInt(c.DomUtils.getCurrentStyle(s[0]).paddingTop),this.etalonSizeValues.connectorLineThickness=c.DomUtils.getVerticalBordersWidth(s[2]),this.etalonSizeValues.connectorArrowWidth=c.DomUtils.getHorizontalBordersWidth(s[3]);for(var u=0;u<=I.ViewType.Years;u++)s[4].innerText=this.getScaleItemTextTemplate(u),this.etalonSizeValues.scaleItemWidths[u]=s[4].offsetWidth;this.etalonSizeValues.smallTaskWidth=this.getSmallTaskWidth(c.DomUtils.getCurrentStyle(s[0].firstChild.firstChild).paddingLeft),this.etalonSizeValues.outsideTaskTextDefaultWidth=c.DomUtils.pxToFloat(c.DomUtils.getCurrentStyle(s[5]).width),this.etalonSizeValues.scaleItemHeight=this.getHeaderHeight()/this.scaleCount,this.etalonSizeValues.parentTaskHeight=s[s.length-1].firstChild.offsetHeight},p}();l.EtalonsHelper=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.EtalonSizeValues=void 0,l.EtalonSizeValues=function(){this.scaleItemWidths={}}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.NoWorkingIntervalRender=void 0;var c=o(16),I=function(){function C(f){this._noWorkingIntervalsToElementsMap={},this._renderedNoWorkingIntervals=[],this._renderHelper=f}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(f){this._renderedNoWorkingIntervals=f},enumerable:!1,configurable:!0}),C.prototype.reset=function(){this._noWorkingIntervalsToElementsMap={},this._renderedNoWorkingIntervals=[]},C.prototype.createNoWorkingIntervalElement=function(f){return c.RenderElementUtils.create(f,null,this.taskArea,this.noWorkingIntervalsToElementsMap)},C.prototype.removeNoWorkingIntervalElement=function(f){c.RenderElementUtils.remove(f,null,this.taskArea,this.noWorkingIntervalsToElementsMap)},C.prototype.recreateNoWorkingIntervalElements=function(){var f=this,a=this.gridLayoutCalculator.getRenderedNoWorkingIntervals(this.taskAreaContainerScrollLeft);c.RenderElementUtils.recreate(this.renderedNoWorkingIntervals,a,function(p){f.removeNoWorkingIntervalElement(p)},function(p){f.createNoWorkingIntervalElement(p)}),this.renderedNoWorkingIntervals=a},C}();l.NoWorkingIntervalRender=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourseRender=void 0;var c=o(16),I=function(){function C(f){this._resourcesElements=[],this._renderHelper=f}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(f){return this._renderHelper.getViewItem(f)},C.prototype.getTaskResourcesVisibility=function(f){return this._renderHelper.getTaskResourcesVisibility(f)},C.prototype.createResources=function(f){for(var a=this.getViewItem(f).resources.items,p=0;p<a.length;p++)this.createResourceElement(f,a[p])},C.prototype.createResourcesWrapperElement=function(f){var a=this.gridLayoutCalculator.getTaskResourcesWrapperElementInfo(f);c.RenderElementUtils.create(a,f,this.taskArea,this.resourcesElements),this.resourcesElements[f].style.display=this.getTaskResourcesVisibility(f)?"":"none"},C.prototype.createResourceElement=function(f,a){var p=this.gridLayoutCalculator.getTaskResourceElementInfo();a.color&&(p.style.backgroundColor=a.color);var s=c.RenderElementUtils.create(p,f,this.resourcesElements[f]);s.innerText=a.text,this.gridLayoutCalculator.checkAndCorrectElementDisplayByRange(s)},C}();l.ResourseRender=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ScaleRender=void 0;var c=o(3),I=o(4),C=o(15),f=o(164),a=o(16),p=function(){function s(u){this._scaleBorders=[],this._scaleElements=[],this._renderedScaleItemIndices=[],this._timeScaleAreas=new Array,this._renderHelper=u}return Object.defineProperty(s.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"timeScaleContainer",{get:function(){return this._timeScaleContainer},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"range",{get:function(){return this._renderHelper.range},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"viewType",{get:function(){return this._renderHelper.viewType},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"timeScaleAreas",{get:function(){return this._timeScaleAreas},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleElements",{get:function(){return this._scaleElements},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleBorders",{get:function(){return this._scaleBorders},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"renderedColIndices",{get:function(){return this._renderHelper.renderedColIndices},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"renderedScaleItemIndices",{get:function(){return this._renderedScaleItemIndices},enumerable:!1,configurable:!0}),s.prototype.getScaleItemText=function(u,d){return this._renderHelper.getScaleItemText(u,d)},s.prototype.getTaskAreaWidth=function(){return this._renderHelper.getTaskAreaWidth()},s.prototype.reset=function(){this._scaleBorders=[],this._scaleElements=[],this._renderedScaleItemIndices=[],this._timeScaleAreas=[],this._timeScaleContainer.innerHTML=""},s.prototype.setTimeScaleContainerScrollLeft=function(u){this._timeScaleContainer.scrollLeft=u},s.prototype.createTimeScaleContainer=function(u){var d=document.createElement("DIV");d.className="dx-gantt-tsac",d.style.height=this.etalonSizeValues.scaleItemHeight*this.scaleCount+"px",this._timeScaleContainer=d,u.appendChild(this.timeScaleContainer)},s.prototype.createTimeScaleArea=function(){var u=document.createElement("DIV");return u.className="dx-gantt-tsa",u.style.width=this.getTaskAreaWidth()+"px",u.style.height=this.etalonSizeValues.scaleItemHeight+"px",this.timeScaleContainer.appendChild(u),this.timeScaleAreas.unshift(u),u},s.prototype.createTimeScaleAreas=function(){for(var u=0;u<this.scaleCount;u++)this.createTimeScaleArea()},s.prototype.createScaleElementCore=function(u,d,h,g){return g[h]||(g[h]=[]),a.RenderElementUtils.create(d,u,this.timeScaleAreas[h],g[h])},s.prototype.createScaleElement=function(u,d,h,g){var x=this._renderHelper.getTextWidth("a"),b=this.createScaleElementCore(u,g,d,this.scaleElements);if(b.style.lineHeight=this.etalonSizeValues.scaleItemHeight+"px",g?.size.width>5*x){var y=this.getScaleItemText(u,h);b.innerText=y,h===I.ViewType.Quarter&&(b.style.padding="0");var E=getComputedStyle(b);g.size.width-c.DomUtils.pxToInt(E.paddingLeft)-c.DomUtils.pxToInt(E.paddingRight)<this._renderHelper.getTextWidth(y)&&(b.title=y)}return b},s.prototype.createScaleBorder=function(u,d,h){var g=this.gridLayoutCalculator.getScaleBorderInfo(u,h);return this.createScaleElementCore(u,g,d,this.scaleBorders)},s.prototype.createScaleElementAndBorder=function(u,d,h){var g=this.gridLayoutCalculator.getScaleElementInfo(u,h),x=this.createScaleElement(u,d,h,g),b=this.createScaleBorder(u,d,h);this.onScaleCellPrepared(h,d,x,b,g.additionalInfo.range)},s.prototype.removeScaleElementAndBorder=function(u,d){a.RenderElementUtils.remove(null,u,this.timeScaleAreas[d],this.scaleElements[d]),a.RenderElementUtils.remove(null,u,this.timeScaleAreas[d],this.scaleBorders[d])},s.prototype.recreateScalesElements=function(){this.recreateScaleElements(this.viewType,0),this.recreateScaleElements(C.DateUtils.ViewTypeToScaleMap[this.viewType],1)},s.prototype.recreateScaleElements=function(u,d){var h=this,g=this.gridLayoutCalculator.getRenderedScaleItemIndices(u,this.renderedColIndices);a.RenderElementUtils.recreate(this.renderedScaleItemIndices[u-this.viewType]||[],g,function(b){h.removeScaleElementAndBorder(b,d)},function(b){h.createScaleElementAndBorder(b,d,u)}),this.renderedScaleItemIndices[u-this.viewType]=g},Object.defineProperty(s.prototype,"dispatcher",{get:function(){return this._renderHelper.dispatcher},enumerable:!1,configurable:!0}),s.prototype.onScaleCellPrepared=function(u,d,h,g,x){var b=new f.ScaleCellPreparedArguments({scaleType:u,scaleIndex:d,range:x,scaleElement:h,separatorElement:g});this.dispatcher.notifyScaleCellPrepared(b)},s}();l.ScaleRender=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ScaleCellPreparedArguments=void 0;var c=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,f;return null===(f=null===(C=this.info)||void 0===C?void 0:C.range)||void 0===f?void 0:f.start},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"end",{get:function(){var C,f;return null===(f=null===(C=this.info)||void 0===C?void 0:C.range)||void 0===f?void 0:f.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}();l.ScaleCellPreparedArguments=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.StripLinesRender=void 0;var c=o(16),I=function(){function C(f){this._stripLinesMap=[],this._renderedStripLines=[],this._renderHelper=f}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(f){this._renderedStripLines=f},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 f=this,a=this.gridLayoutCalculator.getRenderedStripLines(this.stripLines);c.RenderElementUtils.recreate(this.renderedStripLines,a,function(p){c.RenderElementUtils.remove(p,null,f.taskArea,f.stripLinesMap)},function(p){return c.RenderElementUtils.create(p,null,f.taskArea,f.stripLinesMap)}),this.renderedStripLines=a},C}();l.StripLinesRender=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaManager=l.TOUCH_ACTION_NONE=void 0;var c=o(10),I=o(3),C=o(9),f=o(168);l.TOUCH_ACTION_NONE="dx-gantt-touch-action";var a=function(){function p(s,u,d){this._eventListener=s,this._taskArea=u,this._cellSize=d,this.attachEvents()}return p.prototype.attachEvents=function(){window.PointerEvent?this.attachPointerEvents():c.Browser.TouchUI?this.attachTouchEvents():this.attachMouseEvents(),this.attachCommonEvents()},p.prototype.detachEvents=function(){window.PointerEvent?this.detachPointerEvents():c.Browser.TouchUI?this.detachTouchEvents():this.detachMouseEvents(),this.detachCommonEvents()},p.prototype.attachEventsOnTask=function(s){window.PointerEvent?s?.addEventListener("pointerenter",this.onTaskPointerEnterHandler):c.Browser.TouchUI?s?.addEventListener("touchstart",this.onTaskTouchStartHandler):(s?.addEventListener("mouseenter",this.onTaskMouseEnterHandler),s?.addEventListener("mouseleave",this.onTaskMouseLeaveHandler))},p.prototype.detachEventsOnTask=function(s){window.PointerEvent?s?.removeEventListener("pointerenter",this.onTaskPointerEnterHandler):c.Browser.TouchUI?s?.removeEventListener("touchstart",this.onTaskTouchStartHandler):(s?.removeEventListener("mouseenter",this.onTaskMouseEnterHandler),s?.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,l.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,l.TOUCH_ACTION_NONE)},p.prototype.attachTouchEvents=function(){I.DomUtils.addClassName(this.taskArea,l.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,l.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 s;return null!==(s=this._stateController)&&void 0!==s||(this._stateController=new f.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(s,u){this.taskArea.addEventListener(s,u)},p.prototype.taskAreaRemoveEventListener=function(s,u){this.taskArea.removeEventListener(s,u)},Object.defineProperty(p.prototype,"onContextMenuHandler",{get:function(){var s,u=this;return null!==(s=this._onContextMenuHandler)&&void 0!==s||(this._onContextMenuHandler=function(d){u.stateController.onContextMenu(d)}),this._onContextMenuHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseWheelHandler",{get:function(){var s,u=this;return null!==(s=this._onMouseWheelHandler)&&void 0!==s||(this._onMouseWheelHandler=function(d){u.stateController.onMouseWheel(d)}),this._onMouseWheelHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onScrollHandler",{get:function(){var s,u=this;return null!==(s=this._onScrollHandler)&&void 0!==s||(this._onScrollHandler=function(d){u.stateController.onScroll(d)}),this._onScrollHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onKeyDownHandler",{get:function(){var s,u=this;return null!==(s=this._onKeyDownHandler)&&void 0!==s||(this._onKeyDownHandler=function(d){u.stateController.onKeyDown(d)}),this._onKeyDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskPointerEnterHandler",{get:function(){var s,u=this;return null!==(s=this._onTaskPointerEnterHandler)&&void 0!==s||(this._onTaskPointerEnterHandler=function(d){u.stateController.onTaskPointerEnter(d)}),this._onTaskPointerEnterHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskAreaPointerLeaveHandler",{get:function(){var s,u=this;return null!==(s=this._onTaskAreaPointerLeaveHandler)&&void 0!==s||(this._onTaskAreaPointerLeaveHandler=function(d){u.stateController.onTaskAreaPointerLeave(d)}),this._onTaskAreaPointerLeaveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDocumentPointerDownHandler",{get:function(){var s,u=this;return null!==(s=this._onDocumentPointerDownHandler)&&void 0!==s||(this._onDocumentPointerDownHandler=function(d){u.stateController.onDocumentPointerDown(d)}),this._onDocumentPointerDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDocumentPointerUpHandler",{get:function(){var s,u=this;return null!==(s=this._onDocumentPointerUpHandler)&&void 0!==s||(this._onDocumentPointerUpHandler=function(d){u.stateController.onDocumentPointerUp(d)}),this._onDocumentPointerUpHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDocumentPointerCancelUpHandler",{get:function(){var s,u=this;return null!==(s=this._onDocumentPointerCancelHandler)&&void 0!==s||(this._onDocumentPointerCancelHandler=function(d){u.stateController.onDocumentPointerCancel(d)}),this._onDocumentPointerCancelHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDocumentPointerMoveHandler",{get:function(){var s,u=this;return null!==(s=this._onDocumentPointerMoveHandler)&&void 0!==s||(this._onDocumentPointerMoveHandler=function(d){u.stateController.onDocumentPointerMove(d)}),this._onDocumentPointerMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTouchStartHandler",{get:function(){var s,u=this;return null!==(s=this._onTouchStartHandler)&&void 0!==s||(this._onTouchStartHandler=function(d){u.stateController.onTouchStart(d)}),this._onTouchStartHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTouchEndHandler",{get:function(){var s,u=this;return null!==(s=this._onTouchEndHandler)&&void 0!==s||(this._onTouchEndHandler=function(d){u.stateController.onTouchEnd(d)}),this._onTouchEndHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTouchMoveHandler",{get:function(){var s,u=this;return null!==(s=this._onTouchMoveHandler)&&void 0!==s||(this._onTouchMoveHandler=function(d){u.stateController.onTouchMove(d)}),this._onTouchMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskTouchStartHandler",{get:function(){var s,u=this;return null!==(s=this._onTaskTouchStartHandler)&&void 0!==s||(this._onTaskTouchStartHandler=function(d){u.stateController.onTaskTouchStart(d)}),this._onTaskTouchStartHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseClickHandler",{get:function(){var s,u=this;return null!==(s=this._onMouseClickHandler)&&void 0!==s||(this._onMouseClickHandler=function(d){u.stateController.onClick(d)}),this._onMouseClickHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseDblClickHandler",{get:function(){var s,u=this;return null!==(s=this._onMouseDblClickHandler)&&void 0!==s||(this._onMouseDblClickHandler=function(d){u.stateController.onDblClick(d)}),this._onMouseDblClickHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseDownHandler",{get:function(){var s,u=this;return null!==(s=this._onMouseDownHandler)&&void 0!==s||(this._onMouseDownHandler=function(d){u.stateController.onMouseDown(d)}),this._onMouseDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskAreaMouseLeaveHandler",{get:function(){var s,u=this;return null!==(s=this._onTaskAreaMouseLeaveHandler)&&void 0!==s||(this._onTaskAreaMouseLeaveHandler=function(d){u.stateController.onTaskAreaMouseLeave(d)}),this._onTaskAreaMouseLeaveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseMoveHandler",{get:function(){var s,u=this;return null!==(s=this._onMouseMoveHandler)&&void 0!==s||(this._onMouseMoveHandler=function(d){u.stateController.onMouseMove(d)}),this._onMouseMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseUpHandler",{get:function(){var s,u=this;return null!==(s=this._onMouseUpHandler)&&void 0!==s||(this._onMouseUpHandler=function(d){u.stateController.onMouseUp(d)}),this._onMouseUpHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskMouseEnterHandler",{get:function(){var s,u=this;return null!==(s=this._onTaskMouseEnterHandler)&&void 0!==s||(this._onTaskMouseEnterHandler=function(d){u.stateController.onTaskElementHover(d)}),this._onTaskMouseEnterHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskMouseLeaveHandler",{get:function(){var s,u=this;return null!==(s=this._onTaskMouseLeaveHandler)&&void 0!==s||(this._onTaskMouseLeaveHandler=function(d){u.stateController.onTaskElementLeave(d)}),this._onTaskMouseLeaveHandler},enumerable:!1,configurable:!0}),p.DBLCLICK_INTERVAL=300,p.MS_POINTER_ACTIVE_CLASS="ms-pointer-active",p}();l.TaskAreaManager=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TouchUtils=void 0;var c=o(10),I=o(1),C=function(){function f(){}return f.onEventAttachingToDocument=function(a,p){return!c.Browser.MacOSMobilePlatform||!f.isTouchEventName(a)||(f.documentTouchHandlers[a]||(f.documentTouchHandlers[a]=[]),f.documentTouchHandlers[a].push(p),f.documentEventAttachingAllowed)},f.isTouchEventName=function(a){return c.Browser.WebKitTouchUI&&(a.indexOf("touch")>-1||a.indexOf("gesture")>-1)},f.isTouchEvent=function(a){return c.Browser.WebKitTouchUI&&I.isDefined(a.changedTouches)},f.getEventX=function(a){return c.Browser.IE?a.pageX:a.changedTouches[0].pageX},f.getEventY=function(a){return c.Browser.IE?a.pageY:a.changedTouches[0].pageY},f.touchMouseDownEventName=c.Browser.WebKitTouchUI?"touchstart":c.Browser.Edge&&c.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",f.touchMouseUpEventName=c.Browser.WebKitTouchUI?"touchend":c.Browser.Edge&&c.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",f.touchMouseMoveEventName=c.Browser.WebKitTouchUI?"touchmove":c.Browser.Edge&&c.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",f.msTouchDraggableClassName="dxMSTouchDraggable",f.documentTouchHandlers={},f.documentEventAttachingAllowed=!0,f}();l.TouchUtils=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaStateController=void 0;var c=o(5),I=o(3),C=o(9),f=o(46),a=o(4),p=o(170),s=o(173),u=o(29),d=o(174),h=o(13),g=o(175),x=o(177),b=o(178),y=function(){function E(S,O,w){var T=this;this.position=new c.Point(-1,-1),this._pointers={},this._listener=S,this._listener.setHandler(h.TaskAreaStateEventNames.STATE_EXIT,function(){T.switchToDefaultState()}),this._listener.setHandler(h.TaskAreaStateEventNames.GET_POINTERS_INFO,function(k){return T.getPointersInfo(k.triggerEvent)}),this._taskArea=O,this._cellSize=w,this.switchToDefaultState()}return E.prototype.onKeyDown=function(S){this._state.onKeyDown(S)},E.prototype.onScroll=function(S){this._state.onScroll(S)},E.prototype.onContextMenu=function(S){this._state.onContextMenu(S)},E.prototype.onMouseWheel=function(S){S.ctrlKey&&(S.preventDefault(),S.stopPropagation(),this.switchState(g.TaskAreaZoomState)),this._state.onMouseWheel(S)},Object.defineProperty(E.prototype,"currentState",{get:function(){return this._state},enumerable:!1,configurable:!0}),E.prototype.onTaskPointerEnter=function(S){this._state.onTaskPointerEnter(S)},E.prototype.onTaskAreaPointerLeave=function(S){this._state.onTaskAreaLeave(S)},E.prototype.onDocumentPointerCancel=function(S){this._clearPointerInfo(S)},E.prototype.onDocumentPointerDown=function(S){this._updatePinterInfo(S),this.toggleStateOnPointerDown(S),this._state.onDocumentPointerDown(S)},E.prototype.onDocumentPointerMove=function(S){this._updatePinterInfo(S),this.toggleStateOnPointerMove(S),this._state.onDocumentPointerMove(S)},E.prototype.onDocumentPointerUp=function(S){this._clearPointerInfo(S),this._state.onDocumentPointerUp(S)},E.prototype.onTaskTouchStart=function(S){this._state.onTaskTouchStart(S)},E.prototype.onTouchStart=function(S){this.toggleStateOnPointerDown(S),this._state.onTouchStart(S)},E.prototype.onTouchEnd=function(S){this._state.onTouchEnd(S)},E.prototype.onTouchMove=function(S){this.toggleStateOnPointerMove(S),this._state.onTouchMove(S)},E.prototype.onClick=function(S){this._state.onClick(S)},E.prototype.onDblClick=function(S){this._state.onDblClick(S)},E.prototype.onTaskAreaMouseLeave=function(S){this._state.onTaskAreaLeave(S)},E.prototype.onTaskElementHover=function(S){this._state.onTaskHover(S)},E.prototype.onTaskElementLeave=function(S){this._state.onTaskLeave(S)},E.prototype.onMouseUp=function(S){this._state.onMouseUp(S)},E.prototype.onMouseMove=function(S){this._state.onMouseMove(S)},E.prototype.onMouseDown=function(S){switch(this.getTaskAreaEventSource(S)){case a.TaskAreaEventSource.TaskArea:this.processMouseDownOnTaskArea(S);break;case a.TaskAreaEventSource.TaskEdit_Frame:this.switchState(b.TaskMoveState);break;case a.TaskAreaEventSource.TaskEdit_Progress:case a.TaskAreaEventSource.TaskEdit_Start:case a.TaskAreaEventSource.TaskEdit_End:this.switchState(x.TaskEditState);break;case a.TaskAreaEventSource.TaskEdit_DependencyStart:case a.TaskAreaEventSource.TaskEdit_DependencyFinish:this.switchState(s.TaskAreaDependencyState)}this._state.onMouseDown(S)},Object.defineProperty(E.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),E.prototype.switchToDefaultState=function(){this._state=new p.TaskAreaDefaultState(this._listener,this.taskArea,this._cellSize)},E.prototype.switchState=function(S){this._state instanceof S||(this._state&&this._state.finish(),this._state=new S(this._listener,this.taskArea,this._cellSize),this._state.start())},E.prototype.processMouseDownOnTaskArea=function(S){C.EvtUtils.isLeftButtonPressed(S)&&!u.TaskAreaDomHelper.isConnectorLine(S)&&this.switchState(d.TaskAreaScrollState)},E.prototype.toggleStateOnPointerDown=function(S){var O=this.toggleStateWhenMultiOrOutsideTouch(S);if(this.position=new c.Point(C.EvtUtils.getEventX(S),C.EvtUtils.getEventY(S)),!O&&this._canStartDrag(S))switch(this.getTaskAreaEventSource(S)){case a.TaskAreaEventSource.TaskEdit_DependencyStart:case a.TaskAreaEventSource.TaskEdit_DependencyFinish:this.switchState(s.TaskAreaDependencyState);break;case a.TaskAreaEventSource.TaskEdit_Progress:case a.TaskAreaEventSource.TaskEdit_Start:case a.TaskAreaEventSource.TaskEdit_End:this.switchState(x.TaskEditState)}},E.prototype.toggleStateOnPointerMove=function(S){var O=this.toggleStateWhenMultiOrOutsideTouch(S),w=Math.abs(this.position.x-C.EvtUtils.getEventX(S))>1||Math.abs(this.position.y-C.EvtUtils.getEventY(S))>1;if(!O&&w&&this._canStartDrag(S)&&this._state instanceof p.TaskAreaDefaultState)switch(this.getTaskAreaEventSource(S)){case a.TaskAreaEventSource.TaskArea:this.checkEventInTaskEditFrameArea(S)?this.switchState(b.TaskMoveState):this.switchState(d.TaskAreaScrollState);break;case a.TaskAreaEventSource.TaskEdit_Frame:this.isTaskUpdateDisabled()?this.switchState(d.TaskAreaScrollState):this.switchState(b.TaskMoveState);break;case a.TaskAreaEventSource.TaskEdit_Progress:case a.TaskAreaEventSource.TaskEdit_Start:case a.TaskAreaEventSource.TaskEdit_End:this.switchState(x.TaskEditState)}},E.prototype.toggleStateWhenMultiOrOutsideTouch=function(S){var O=this._getActivePointersCount(S),w=!this.isInTaskArea(S),T=O>=2||w;return O>2||w?this.switchState(p.TaskAreaDefaultState):2===O&&this.switchState(g.TaskAreaZoomState),T},E.prototype.checkEventInTaskEditFrameArea=function(S){var O,w,T=this.getTaskEditFrameElement();if(this.isTaskUpdateDisabled()||!T)return!1;var k=S?.clientX||(null===(O=S?.touches[0])||void 0===O?void 0:O.clientX),R=S?.clientY||(null===(w=S?.touches[0])||void 0===w?void 0:w.clientY),P=T.getBoundingClientRect();return k>=P.left&&k<=P.left+P.width&&R>=P.top&&R<=P.top+P.height},E.prototype.isTaskUpdateDisabled=function(){return"false"===this._taskArea.getAttribute("task-edit-enabled")},E.prototype.isInTaskArea=function(S){return I.DomUtils.isItParent(this._taskArea,C.EvtUtils.getEventSource(S))},E.prototype.getTaskEditFrameElement=function(){return this._taskArea.getElementsByClassName(f.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME)[0]},E.prototype._updatePinterInfo=function(S){this._pointers[S.pointerId]={pageX:S.pageX,pageY:S.pageY,pointerType:S.pointerType}},E.prototype._clearPointerInfo=function(S){delete this._pointers[S.pointerId]},E.prototype.isTouchEvent=function(S){return u.TaskAreaDomHelper.isTouchEvent(S)},E.prototype.isPointerEvent=function(S){return u.TaskAreaDomHelper.isPointerEvent(S)},E.prototype._getActivePointersCount=function(S){var O=this;return this.isTouchEvent(S)?S.touches.length:Object.keys(this._pointers).filter(function(w){return O._pointers[w].pointerType===S.pointerType}).length},E.prototype.getPointersInfo=function(S){var O=this,w=S?.pointerType,T=Object.keys(this._pointers).map(function(k){return O._pointers[k]});return w&&(T=T.filter(function(k){return k.pointerType===w})),T},E.prototype._canStartDrag=function(S){return!(this._getActivePointersCount(S)>1||u.TaskAreaDomHelper.isMousePointer(S)&&1!==S.buttons||u.TaskAreaDomHelper.isConnectorLine(S))},E.prototype.getTaskAreaEventSource=function(S){return u.TaskAreaDomHelper.getEventSource(C.EvtUtils.getEventSource(S))},E}();l.TaskAreaStateController=y},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskEditTooltip=void 0;var c=o(3),I=function(){function C(f,a,p){this.parentElement=f,this.cultureInfo=p,this.tooltipSettings=a}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(f){this.tooltipSettings.destroyTemplate(f)},C.prototype.formatDate=function(f){return this.tooltipSettings.formatDate(f)},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(f){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=C.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT;var a=document.createElement("DIV");a.className=C.CLASSNAMES.TASK_EDIT_TASK_TITLE;var p=document.createElement("SPAN");if(a.appendChild(p),this.defaultTooltip.appendChild(a),p.innerText=f.title,this.defaultTooltip.appendChild(this.getTimeContent(f.start,f.end)),!isNaN(f.progress)){var s=document.createElement("DIV");s.className=C.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var u=document.createElement("SPAN"),d=document.createElement("SPAN");s.appendChild(u),s.appendChild(d),this.defaultTooltip.appendChild(s),u.innerText=(this.cultureInfo.progress?this.cultureInfo.progress:"Progress")+": ",d.innerText=f.progress+"%"}this.baseElement.appendChild(this.defaultTooltip)},C.prototype.setDefaultProgressTooltip=function(f){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=C.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT,this.defaultTooltip.innerText=f+"%",this.baseElement.appendChild(this.defaultTooltip)},C.prototype.setDefaultTimeTooltip=function(f,a){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=C.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT,this.defaultTooltip.appendChild(this.getTimeContent(f,a)),this.baseElement.appendChild(this.defaultTooltip)},C.prototype.showInfo=function(f,a,p){var s=this;void 0===p&&(p=0);var u=this.taskTooltipContentTemplate;this.destroyTemplate(this.baseElement),u?u(this.baseElement,f,function(){s.showTooltip(a,!1,p)}):(this.setDefaultTooltip(f),this.showTooltip(a,!1,p))},C.prototype.showProgress=function(f,a){var p=this,s=this.taskProgressTooltipContentTemplate;this.destroyTemplate(this.baseElement),s?s(this.baseElement,{progress:f},function(){p.showTooltip(a)}):(this.setDefaultProgressTooltip(f),this.show(a))},C.prototype.showTime=function(f,a,p){var s=this,u=this.taskTimeTooltipContentTemplate;this.destroyTemplate(this.baseElement),u?u(this.baseElement,{start:f,end:a},function(){s.showTooltip(p)}):(this.setDefaultTimeTooltip(f,a),this.show(p))},C.prototype.showTooltip=function(f,a,p){var s,u=this;if(void 0===a&&(a=!0),void 0===p&&(p=0),null===(s=this.baseElement)||void 0===s?void 0:s.innerHTML){var d=function(){u.show(f,a)};p?this.timerId=setTimeout(d,p):d()}},C.prototype.show=function(f,a){var p,s,u,d,h=this;void 0===a&&(a=!0),null===(p=this.defaultTooltip)||void 0===p||p.classList.remove(C.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER),null===(s=this.defaultTooltip)||void 0===s||s.classList.remove(C.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE),this.baseElement.style.display="block";var g=c.DomUtils.getAbsolutePositionY(this.parentElement),x=f-c.DomUtils.getAbsolutePositionX(this.parentElement)-10,b=g-this.headerHeight-c.DomUtils.getDocumentScrollTop()-15,E=-this.baseElement.clientHeight-5;this.baseElement.clientHeight>b||this.baseElement.clientHeight>this.parentElement.offsetTop?(E=this.parentElement.clientHeight+5,null===(u=this.defaultTooltip)||void 0===u||u.classList.add(C.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER)):null===(d=this.defaultTooltip)||void 0===d||d.classList.add(C.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE),this.baseElement.style.left=x+"px",this.baseElement.style.top=E+"px",a&&(this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){h.hide()},1500))},C.prototype.hide=function(){this.baseElement.style.display="none",this.destroyTemplate(this.baseElement),clearTimeout(this.timerId)},C.prototype.getTimeContent=function(f,a){var p=document.createElement("TABLE");p.className=C.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var s=document.createElement("TBODY");p.appendChild(s);var u=document.createElement("TR"),d=document.createElement("TD"),h=document.createElement("TD"),g=document.createElement("TR"),x=document.createElement("TD"),b=document.createElement("TD");return u.appendChild(d),u.appendChild(h),g.appendChild(x),g.appendChild(b),s.appendChild(u),s.appendChild(g),d.innerText=(this.cultureInfo.start?this.cultureInfo.start:"Start")+": ",h.innerText=this.formatDate(f),x.innerText=(this.cultureInfo.end?this.cultureInfo.end:"End")+": ",b.innerText=this.formatDate(a),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}();l.TaskEditTooltip=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaDefaultState=void 0;var c=o(0),I=o(9),C=o(29),f=o(30),a=o(13),p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return c.__extends(u,s),u.prototype.finish=function(){this.clearTimers(),this.raiseEvent(a.TaskAreaStateEventNames.CONTEXTMENU_HIDE)},u.prototype.onMouseDownInternal=function(d){this.onPointerDownBase(d)},u.prototype.onDocumentPointerDownInternal=function(d){this.onPointerDownBase(d)},u.prototype.onDocumentPointerUpInternal=function(d){this.onPointerUpBase(d)},u.prototype.onDocumentPointerMoveInternal=function(d){this.clearTimers()},u.prototype.onTouchStartInternal=function(d){this.onPointerDownBase(d)},u.prototype.onTouchEndInternal=function(d){this.onPointerUpBase(d)},u.prototype.onTouchMoveInternal=function(d){this.clearTimers()},u.prototype.onPointerDownBase=function(d){var h=this;d.preventDefault(),this._lastTouchRowIndex=this.getClickedRowIndex(d),(this.isPointerEvent(d)?C.TaskAreaDomHelper.isMousePointer(d):this.isMouseEvent(d))?this.changeSelectionOnTouchDown(d):(setTimeout(function(){C.TaskAreaDomHelper.isMousePointer(d)||h.raiseEvent(a.TaskAreaStateEventNames.CONTEXTMENU_HIDE,d),h.changeSelectionOnTouchDown(d)},0),clearTimeout(this._contextMenuTimer),this._contextMenuTimer=setTimeout(function(){return h.showContextMenuOnTouchDown(d)},u.defaultContextMenuTimeout))},u.prototype.onPointerUpBase=function(d){var h=this;if(clearTimeout(this._contextMenuTimer),d.preventDefault(),this.canToEmulateClick(d)){var g=this.getClickedRowIndex(d),x=new Date;if(this._lastEmulatedClickTime)x.getTime()-this._lastEmulatedClickTime.getTime()<u.defaultDblClickTimeout&&(this.raiseEvent(a.TaskAreaStateEventNames.TASK_AREA_DBLCLICK,d,g),delete this._lastEmulatedClickTime);else{var b=!this.raiseEvent(a.TaskAreaStateEventNames.TASK_AREA_CLICK,d,g);clearTimeout(this._dblClickClearTimer),C.TaskAreaDomHelper.isMousePointer(d)&&this.raiseEvent(a.TaskAreaStateEventNames.CONTEXTMENU_HIDE,d),b||(this._lastEmulatedClickTime=x,this._dblClickClearTimer=setTimeout(function(){delete h._lastEmulatedClickTime},u.defaultDblClickClearTimeout))}}},u.prototype.canToEmulateClick=function(d){var h=!C.TaskAreaDomHelper.isConnectorLine(d)&&this.getClickedRowIndex(d)===this._lastTouchRowIndex;return h&&C.TaskAreaDomHelper.isMousePointer(d)&&h&&(h=2!==d.button),h},u.prototype.changeSelectionOnTouchDown=function(d){var h=C.TaskAreaDomHelper.isConnectorLine(d);h||this.raiseTaskSelection(d,this.getClickedRowIndex(d)),this.raiseDependencySelection(d,h?I.EvtUtils.getEventSource(d).getAttribute("dependency-id"):null)},u.prototype.showContextMenuOnTouchDown=function(d){var h=C.TaskAreaDomHelper.isConnectorLine(d);this.raiseEvent(a.TaskAreaStateEventNames.CONTEXTMENU_SHOW,d,this.getClickedRowIndex(d),{type:h?"dependency":"task"})},u.prototype.clearTimers=function(){clearTimeout(this._contextMenuTimer),clearTimeout(this._dblClickClearTimer),delete this._lastEmulatedClickTime},u.defaultContextMenuTimeout=3e3,u.defaultDblClickClearTimeout=(u.defaultDblClickTimeout=500)+100,u}(f.TaskAreaStateBase);l.TaskAreaDefaultState=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.EncodeUtils=void 0;var c=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 f=document.createElement("TEXTAREA");return f.innerHTML=C,f.value},I}();l.EncodeUtils=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaEventArgs=void 0;var c=o(1);l.TaskAreaEventArgs=function(C,f,a,p){this.rowIndex=-1,this.info={},this.eventName=C,this.triggerEvent=f,(0,c.isDefined)(a)&&(this.rowIndex=a),p&&(this.info=p)}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaDependencyState=l.dependencyMap=void 0;var c=o(0),I=o(5),C=o(3),f=o(9),a=o(23),p=o(4),s=o(29),u=o(30),d=o(13);l.dependencyMap=[],l.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyStart]=[],l.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyFinish]=[],l.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyStart][p.TaskAreaEventSource.Successor_DependencyStart]=a.DependencyType.SS,l.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyStart][p.TaskAreaEventSource.Successor_DependencyFinish]=a.DependencyType.SF,l.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyFinish][p.TaskAreaEventSource.Successor_DependencyStart]=a.DependencyType.FS,l.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyFinish][p.TaskAreaEventSource.Successor_DependencyFinish]=a.DependencyType.FF;var h=function(g){function x(){return null!==g&&g.apply(this,arguments)||this}return c.__extends(x,g),x.prototype.onMouseUp=function(b){this.onDependencyEndByMouse(b)},x.prototype.onMouseDownInternal=function(b){this.onDependencyStart(b)},x.prototype.onMouseMoveInternal=function(b){this.onDependencyMoveStep(b)},x.prototype.onTouchStartInternal=function(b){this.onDependencyStart(b)},x.prototype.onTouchEndInternal=function(b){this.onDependencyEndByTouch(b)},x.prototype.onTouchMoveInternal=function(b){this.onDependencyMoveStep(b)},x.prototype.onDocumentPointerDownInternal=function(b){this.onDependencyStart(b)},x.prototype.onDocumentPointerUpInternal=function(b){this.onDependencyEndByTouch(b)},x.prototype.onDocumentPointerMoveInternal=function(b){this.onDependencyMoveStep(b)},x.prototype.onDependencyStart=function(b){var y=f.EvtUtils.getEventSource(b);this.source=s.TaskAreaDomHelper.getEventSource(y);var E=this.getRelativePos(new I.Point(C.DomUtils.getAbsolutePositionX(y)+y.clientWidth/2,C.DomUtils.getAbsolutePositionY(y)+y.clientHeight/2));this.raiseEvent(d.TaskAreaStateEventNames.DEPENDENCY_START,b,null,{pos:E})},x.prototype.onDependencyMoveStep=function(b){b.preventDefault();var y=this.getRelativePos(new I.Point(f.EvtUtils.getEventX(b),f.EvtUtils.getEventY(b)));this.raiseEvent(d.TaskAreaStateEventNames.DEPENDENCY_PROCESS,b,this.getClickedRowIndex(b),{pos:y})},x.prototype.onDependencyEndByMouse=function(b){var y=s.TaskAreaDomHelper.getEventSource(f.EvtUtils.getEventSource(b));this.processEndDependency(b,y===p.TaskAreaEventSource.Successor_DependencyStart||y===p.TaskAreaEventSource.Successor_DependencyFinish?l.dependencyMap[this.source][y]:null)},x.prototype.onDependencyEndByTouch=function(b){var y=this.raiseEvent(d.TaskAreaStateEventNames.GET_DEPENDENCY_POINTS,b),E=this.getRelativePos(y.successorStart),S=this.getRelativePos(y.successorFinish),O=this.getRelativePos(new I.Point(f.EvtUtils.getEventX(b),f.EvtUtils.getEventY(b))),w=this.isTouchNearby(O,E)?p.TaskAreaEventSource.Successor_DependencyStart:this.isTouchNearby(O,S)?p.TaskAreaEventSource.Successor_DependencyFinish:null;this.processEndDependency(b,w===p.TaskAreaEventSource.Successor_DependencyStart||w===p.TaskAreaEventSource.Successor_DependencyFinish?l.dependencyMap[this.source][w]:null)},x.prototype.onTaskAreaLeaveInternal=function(b){this.processEndDependency(b,null)},x.prototype.processEndDependency=function(b,y){this.raiseEvent(d.TaskAreaStateEventNames.DEPENDENCY_END,b,null,{type:y}),this.raiseEvent(d.TaskAreaStateEventNames.STATE_EXIT,b)},x.prototype.isTouchNearby=function(b,y){return Math.abs(y.x-b.x)<=20&&Math.abs(y.y-b.y)<=20},x}(u.TaskAreaStateBase);l.TaskAreaDependencyState=h},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaScrollState=void 0;var c=o(0),I=o(30),C=o(13),f=function(a){function p(){var s=null!==a&&a.apply(this,arguments)||this;return s._isStarted=!1,s}return c.__extends(p,a),p.prototype.finish=function(){this.raiseEvent(C.TaskAreaStateEventNames.TASK_AREA_END_MOVE,null)},p.prototype.onMouseUp=function(s){this.onEnd(s)},p.prototype.onMouseDownInternal=function(s){this.onBeforeStart(s)},p.prototype.onMouseMoveInternal=function(s){this.onMove(s)},p.prototype.onDocumentPointerUpInternal=function(s){this.onEnd(s)},p.prototype.onDocumentPointerMoveInternal=function(s){this.onMoveByPointer(s)},p.prototype.onTouchEndInternal=function(s){this.onEnd(s)},p.prototype.onTouchMoveInternal=function(s){this.onMoveByPointer(s)},p.prototype.onBeforeStart=function(s){s.preventDefault(),this.raiseDependencySelection(s,null),this.raiseEvent(C.TaskAreaStateEventNames.TASK_EDIT_END,s),this.raiseEvent(C.TaskAreaStateEventNames.TASK_AREA_START_MOVE,s),this._isStarted=!0},p.prototype.onMoveByPointer=function(s){this._isStarted?this.onMove(s):this.onBeforeStart(s)},p.prototype.onMove=function(s){s.preventDefault(),this.raiseEvent(C.TaskAreaStateEventNames.TASK_AREA_PROCESS_MOVE,s)},p.prototype.onEnd=function(s){s.preventDefault(),this.raiseEvent(C.TaskAreaStateEventNames.TASK_AREA_END_MOVE,s),this.raiseEvent(C.TaskAreaStateEventNames.STATE_EXIT,s),this._isStarted=!1},p}(I.TaskAreaStateBase);l.TaskAreaScrollState=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaZoomState=void 0;var c=o(0),I=o(5),C=o(9),f=o(176),a=o(30),p=o(13),s=function(u){function d(){var h=null!==u&&u.apply(this,arguments)||this;return h._isInZooming=!1,h}return c.__extends(d,u),d.prototype.onMouseWheel=function(h){h.ctrlKey&&(h.preventDefault(),h.stopPropagation(),this._isInZooming||this.processZoom(h,C.EvtUtils.getWheelDelta(h)>0,50))},d.prototype.onDocumentPointerUpInternal=function(h){this.onEndZoom(h)},d.prototype.onDocumentPointerMoveInternal=function(h){this.onTouchZoom(h)},d.prototype.onTouchEndInternal=function(h){this.onEndZoom(h)},d.prototype.onTouchMoveInternal=function(h){this.onTouchZoom(h)},d.prototype.onTouchZoom=function(h){var g;if(h.stopPropagation(),h.preventDefault(),!this._isInZooming){var x=this.getTouchDistance(h);null!==(g=this.prevDistance)&&void 0!==g||(this.prevDistance=x);var b=this.prevDistance-x;Math.abs(b)>3&&(this.processZoom(h,b>0,1e3),this.prevDistance=x)}},d.prototype.processZoom=function(h,g,x){var b=this;this._isInZooming=!0,setTimeout(function(){b._isInZooming=!1},x),this.raiseEvent(g?p.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN:p.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT,h,null,{leftPos:this.getLeftPosition(h)})},d.prototype.onEndZoom=function(h){this.prevDistance=null,this.raiseEvent(p.TaskAreaStateEventNames.STATE_EXIT,h)},d.prototype.getTouchDistance=function(h){var g=this.GetTouchPoints(h);return this.getDistance(g[0],g[1])},d.prototype.GetTouchPoints=function(h){var g,x,b,y;if(this.isTouchEvent(h)){var E=h.touches;return[new I.Point(E[0].pageX,E[0].pageY),new I.Point(E[1].pageX,E[1].pageY)]}var S=this.raiseEvent(p.TaskAreaStateEventNames.GET_POINTERS_INFO,h);return[new I.Point(null===(g=S[0])||void 0===g?void 0:g.pageX,null===(x=S[0])||void 0===x?void 0:x.pageY),new I.Point(null===(b=S[1])||void 0===b?void 0:b.pageX,null===(y=S[1])||void 0===y?void 0:y.pageY)]},d.prototype.getDistance=function(h,g){return f.Metrics.euclideanDistance(h,g)},d.prototype.getLeftPosition=function(h){var g=0;return this.isTouchEvent(h)||this.isPointerEvent(h)?g=this.getZoomMiddlePoint(h).x:this.isMouseEvent(h)&&(g=this.getMouseZoomLeftPos(h)),g},d.prototype.getMouseZoomLeftPos=function(h){var g=this.raiseEvent(p.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT);return C.EvtUtils.getEventX(h)-g.x},d.prototype.getZoomMiddlePoint=function(h){var g=this.raiseEvent(p.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT),x=this.GetTouchPoints(h),b=this.convertScreenToChartCoordinates(x[0],g),y=this.convertScreenToChartCoordinates(x[1],g);return new I.Point((b.x+y.x)/2,(b.y+y.y)/2)},d.prototype.convertScreenToChartCoordinates=function(h,g){return new I.Point(h.x-g.x,h.y-g.y)},d}(a.TaskAreaStateBase);l.TaskAreaZoomState=s},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Metrics=void 0;var c=function(){function I(){}return I.euclideanDistance=function(C,f){var a=C.x-f.x,p=C.y-f.y;return Math.sqrt(a*a+p*p)},I.manhattanDistance=function(C,f){return Math.abs(C.x-f.x)+Math.abs(C.y-f.y)},I}();l.Metrics=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskEditState=void 0;var c=o(0),I=o(9),C=o(4),f=o(29),a=o(13),p=function(s){function u(){return null!==s&&s.apply(this,arguments)||this}return c.__extends(u,s),u.prototype.onStartInternal=function(d){var h;null!==(h=this._source)&&void 0!==h||(this._source=f.TaskAreaDomHelper.getEventSource(I.EvtUtils.getEventSource(d)))},u.prototype.onEndInternal=function(d){this.raiseEvent(this.getEventOnEndKey(),d)},u.prototype.onDragInternal=function(d){var h=this.getRelativePos(d);this.raiseEvent(this.getEventOnDragKey(),null,null,{position:h})},u.prototype.getEventOnDragKey=function(){switch(this._source){case C.TaskAreaEventSource.TaskEdit_Start:return a.TaskAreaStateEventNames.TASK_PROCESS_START;case C.TaskAreaEventSource.TaskEdit_End:return a.TaskAreaStateEventNames.TASK_PROCESS_END;case C.TaskAreaEventSource.TaskEdit_Progress:return a.TaskAreaStateEventNames.TASK_PROCESS_PROGRESS}},u.prototype.getEventOnEndKey=function(){switch(this._source){case C.TaskAreaEventSource.TaskEdit_Start:return a.TaskAreaStateEventNames.TASK_CONFIRM_START;case C.TaskAreaEventSource.TaskEdit_End:return a.TaskAreaStateEventNames.TASK_CONFIRM_END;case C.TaskAreaEventSource.TaskEdit_Progress:return a.TaskAreaStateEventNames.TASK_END_PROGRESS}},u}(o(67).TaskDragBaseState);l.TaskEditState=p},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskMoveState=void 0;var c=o(0),I=o(13),C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return c.__extends(a,f),a.prototype.onEndInternal=function(p){this.raiseEvent(I.TaskAreaStateEventNames.TASK_END_MOVE,p)},a.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)},a}(o(67).TaskDragBaseState);l.TaskMoveState=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaRender=void 0;var c=o(3),I=o(16),C=function(){function f(a){this._vertTaskAreaBorders=[],this._horTaskAreaBorders=[],this._isExternalTaskAreaContainer=!1,this._renderHelper=a}return Object.defineProperty(f.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"mainElement",{get:function(){return this._renderHelper.mainElement},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"tickSize",{get:function(){return this._renderHelper.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"taskAreaContainerScrollTop",{get:function(){return this._renderHelper.ganttViewTaskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._renderHelper.ganttTaskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"areHorizontalBordersEnabled",{get:function(){return this._renderHelper.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"renderedRowIndices",{get:function(){return this._renderHelper.renderedRowIndices},set:function(a){this._renderHelper.renderedRowIndices=a},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"renderedColIndices",{get:function(){return this._renderHelper.renderedColIndices},set:function(a){this._renderHelper.renderedColIndices=a},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"vertTaskAreaBorders",{get:function(){return this._vertTaskAreaBorders},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"horTaskAreaBorders",{get:function(){return this._horTaskAreaBorders},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"hlRowElements",{get:function(){return this._renderHelper.hlRowElements},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"taskAreaContainer",{get:function(){return this._taskAreaContainer},enumerable:!1,configurable:!0}),f.prototype.getExternalTaskAreaContainer=function(a){return this._renderHelper.getExternalTaskAreaContainer(a)},f.prototype.prepareExternalTaskAreaContainer=function(a,p){return this._renderHelper.prepareExternalTaskAreaContainer(a,p)},f.prototype.isAllowTaskAreaBorders=function(a){return this._renderHelper.isAllowTaskAreaBorders(a)},f.prototype.getTaskAreaContainerElement=function(){return this._taskAreaContainer.getElement()},f.prototype.initTaskAreaContainer=function(a){this._renderHelper.createTaskArea(a),this._taskAreaContainer=this.getExternalTaskAreaContainer(a),this._isExternalTaskAreaContainer=!!this._taskAreaContainer,null==this.taskAreaContainer&&(this._taskAreaContainer=this._renderHelper.getTaskAreaContainer(a))},f.prototype.createTaskElement=function(a){this._renderHelper.createTaskElement(a)},f.prototype.removeTaskElement=function(a){this._renderHelper.removeTaskElement(a)},f.prototype.reset=function(){this._horTaskAreaBorders=[],this._vertTaskAreaBorders=[]},f.prototype.prepareTaskAreaContainer=function(){var a=this.getTaskAreaContainerElement();this.areHorizontalBordersEnabled?c.DomUtils.addClassName(a,"dx-gantt-tac-hb"):c.DomUtils.removeClassName(a,"dx-gantt-tac-hb");var p=parseInt(getComputedStyle(a).getPropertyValue("margin-top"))||0,s="calc(100% - ".concat(this.etalonSizeValues.scaleItemHeight*this.scaleCount+p,"px)");this._isExternalTaskAreaContainer?this.prepareExternalTaskAreaContainer(a,{height:s}):a.style.height=s},f.prototype.createTaskAreaContainer=function(){var a=document.createElement("DIV");a.className="dx-gantt-tac",this.mainElement.appendChild(a),this.initTaskAreaContainer(a),this.prepareTaskAreaContainer()},f.prototype.createTaskAreaBorder=function(a,p){var s=this.gridLayoutCalculator.getTaskAreaBorderInfo(a,p);I.RenderElementUtils.create(s,a,this.taskArea,this.getTaskAreaBordersDictionary(p))},f.prototype.createTaskArea=function(){var a=document.createElement("DIV");return a.id="dx-gantt-ta",a},f.prototype.removeTaskAreaBorder=function(a,p){I.RenderElementUtils.remove(null,a,this.taskArea,this.getTaskAreaBordersDictionary(p))},f.prototype.createTaskAreaBorderAndTaskElement=function(a,p){this.isAllowTaskAreaBorders(p)&&this.createTaskAreaBorder(a,!p),p&&this.createTaskElement(a)},f.prototype.removeTaskAreaBorderAndTaskElement=function(a,p){this.isAllowTaskAreaBorders(p)&&this.removeTaskAreaBorder(a,!p),p&&this.removeTaskElement(a)},f.prototype.recreateTaskAreaBordersAndTaskElements=function(a){var p=this,u=this.gridLayoutCalculator.getRenderedRowColumnIndices(a?this.taskAreaContainerScrollTop:this.taskAreaContainerScrollLeft,a);I.RenderElementUtils.recreate(a?this.renderedRowIndices:this.renderedColIndices,u,function(h){p.removeTaskAreaBorderAndTaskElement(h,a)},function(h){p.createTaskAreaBorderAndTaskElement(h,a)}),a?this.renderedRowIndices=u:this.renderedColIndices=u,this.gridLayoutCalculator.createTileToConnectorLinesMap()},f.prototype.getTaskAreaBordersDictionary=function(a){return a?this.vertTaskAreaBorders:this.horTaskAreaBorders},f.prototype.setSizeForTaskArea=function(a,p){this.taskArea.style.width=a+"px",this.taskArea.style.height=p+"px"},f.prototype.createHighlightRowElement=function(a){var p=this.gridLayoutCalculator.getHighlightRowInfo(a);I.RenderElementUtils.create(p,a,this.taskArea,this.hlRowElements)},f}();l.TaskAreaRender=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskRender=void 0;var c=o(3),I=o(4),C=o(181),f=o(16),a=function(){function p(s){this._selectionElements=[],this._taskElements=[],this._renderHelper=s,this.customTaskRender=new C.CustomTaskRender(s,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(s){return this._renderHelper.isHighlightRowElementAllowed(s)},p.prototype.getTaskVisibility=function(s){return this._renderHelper.getTaskVisibility(s)},p.prototype.getTaskText=function(s){return this._renderHelper.getTaskText(s)},Object.defineProperty(p.prototype,"invalidTaskDependencies",{get:function(){return this._renderHelper.invalidTaskDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"fakeTaskWrapper",{get:function(){var s;return null!==(s=this._fakeTaskWrapper)&&void 0!==s||(this._fakeTaskWrapper=this.createFakeTaskWrapper()),this._fakeTaskWrapper},enumerable:!1,configurable:!0}),p.prototype.getViewItem=function(s){return this._renderHelper.getViewItem(s)},p.prototype.getTask=function(s){return this._renderHelper.getTask(s)},p.prototype.createHighlightRowElement=function(s){this._renderHelper.createHighlightRowElement(s)},p.prototype.getTaskDependencies=function(s){return this._renderHelper.getTaskDependencies(s)},p.prototype.addInvalidTaskDependencies=function(s){this._renderHelper.invalidTaskDependencies=this._renderHelper.invalidTaskDependencies.concat(s)},p.prototype.removeInvalidTaskDependencies=function(s){this._renderHelper.invalidTaskDependencies=this._renderHelper.invalidTaskDependencies.filter(function(u){return u.predecessorId!=s||u.successorId!=s})},p.prototype.createResources=function(s){this.showResources&&this._renderHelper.createResources(s)},p.prototype.attachEventsOnTask=function(s){this._renderHelper.attachEventsOnTask(s)},p.prototype.detachEventsOnTask=function(s){this._renderHelper.detachEventsOnTask(s)},p.prototype.recreateConnectorLineElement=function(s,u){void 0===u&&(u=!1),this._renderHelper.recreateConnectorLineElement(s,u)},p.prototype.renderTaskElement=function(s){this._renderHelper.createTaskElement(s)},p.prototype.reset=function(){var s=this;this._taskElements.forEach(function(u,d){return s.removeTaskElement(d)}),this._selectionElements=[],this._taskElements=[]},p.prototype.createTaskWrapperElement=function(s){var u=this.gridLayoutCalculator.getTaskWrapperElementInfo(s);f.RenderElementUtils.create(u,s,this.taskArea,this.taskElements),this.taskElements[s].style.display=this.getTaskVisibility(s)?"":"none"},p.prototype.createTaskElement=function(s,u){var d=this.getViewItem(s);if(u&&this.customTaskRender.createCustomTaskElement(s,u),d.task.isValid()&&d.visible)d.isCustom||this.createDefaultTaskElement(s);else{var h=this.getTaskDependencies(d.task.internalId);this.addInvalidTaskDependencies(h)}},p.prototype.createTaskVisualElement=function(s){var u=this.gridLayoutCalculator.getTaskElementInfo(s,this.taskTitlePosition!==I.TaskTitlePosition.Inside),d=f.RenderElementUtils.create(u,s,this.taskElements[s]);return this.attachEventsOnTask(s),d},p.prototype.createDefaultTaskElement=function(s){var u=this.getViewItem(s);this.isHighlightRowElementAllowed(s)&&this.createHighlightRowElement(s),u.selected&&this.createTaskSelectionElement(s),this.createTaskWrapperElement(s),this.taskTitlePosition===I.TaskTitlePosition.Outside&&this.createTaskTextElement(s,this.taskElements[s]);var d=this.createTaskVisualElement(s);u.task.isMilestone()||(this.taskTitlePosition===I.TaskTitlePosition.Inside&&this.createTaskTextElement(s,d),this.createTaskProgressElement(s,d)),this.createResources(s)},p.prototype.removeTaskElement=function(s){var u=this.getTask(s);if(u&&this.removeInvalidTaskDependencies(u.id),this.detachEventsOnTask(s),this._renderHelper.hasTaskTemplate()){var d=this.taskElements[s],h=d?.firstElementChild;h&&(this._renderHelper.destroyTemplate(h),d.removeChild(h))}f.RenderElementUtils.remove(null,s,this.taskArea,this.taskElements),f.RenderElementUtils.remove(null,s,this.taskArea,this.resourcesElements),f.RenderElementUtils.remove(null,s,this.taskArea,this.selectionElements),this.isHighlightRowElementAllowed(s)&&f.RenderElementUtils.remove(null,s,this.taskArea,this.hlRowElements),this.gridLayoutCalculator.resetTaskInfo(s)},p.prototype.recreateTaskElement=function(s){var u=this,d=this.renderedRowIndices.filter(function(x){return x===s}).length>0,h=this.getTask(s);if(h){d&&(this.removeTaskElement(s),this.renderTaskElement(s));var g=this.getTaskDependencies(h.internalId);g.length&&g.forEach(function(x){return u.recreateConnectorLineElement(x.internalId,!0)})}},p.prototype.createFakeTaskWrapper=function(){var s,u,d=null!==(u=null===(s=this.viewModelItems.filter(function(b){return b.task&&!b.task.isMilestone})[0])||void 0===s?void 0:s.visibleIndex)&&void 0!==u?u:0,h=this.gridLayoutCalculator,g=f.RenderElementUtils.create(h.getTaskWrapperElementInfo(d),null,this.taskArea),x=f.RenderElementUtils.create(h.getTaskElementInfo(d),null,g);return this.createTaskTextElement(d,x),this.createTaskProgressElement(d,x),g.style.display="none",g},p.prototype.createTaskProgressElement=function(s,u){var d=this.gridLayoutCalculator.getTaskProgressElementInfo(s);f.RenderElementUtils.create(d,s,u)},p.prototype.getTextWidth=function(s){return this._renderHelper.getTextWidth(s)},Object.defineProperty(p.prototype,"minTextWidth",{get:function(){var s;return null!==(s=this._minTextWidth)&&void 0!==s||(this._minTextWidth=5*this.getTextWidth("a")),this._minTextWidth},enumerable:!1,configurable:!0}),p.prototype.createTaskTextElement=function(s,u){var d,h,g=this.gridLayoutCalculator.getTaskTextElementInfo(s,this.taskTitlePosition===I.TaskTitlePosition.Inside);if(!g.additionalInfo.hidden){var x=f.RenderElementUtils.create(g,s,u),b=this.getTaskText(s);if(this.taskTitlePosition===I.TaskTitlePosition.Outside&&g.size.width>0){var y=getComputedStyle(x),E=g.size.width-c.DomUtils.pxToInt(y.paddingLeft);if(E>=this.minTextWidth){var S=c.DomUtils.pxToInt(y.paddingRight),O=b?this.getTextWidth(b):0;S&&O>E-S&&(S=Math.min(p.minTitleOutRightPadding,E-this.minTextWidth),x.style.paddingRight=S+"px"),O>E-S&&(x.style.overflowX="hidden",x.style.textOverflow="ellipsis")}else x.style.display="none"}b||(null!==(d=this[h=this.taskTextHeightKey])&&void 0!==d||(this[h]=this.getTaskTextHeight(x)),x.style.height=this[this.taskTextHeightKey]),x.innerText=b}},p.prototype.createTaskSelectionElement=function(s){var u=this.gridLayoutCalculator.getSelectionElementInfo(s);this.isExternalTaskAreaContainer&&!this.areHorizontalBordersEnabled&&u.size.height++,f.RenderElementUtils.create(u,s,this.taskArea,this.selectionElements)},p.prototype.getTaskTextHeight=function(s){s.innerText="WWW";var u=getComputedStyle(s).height;return s.innerText="",u},p.prototype.getSmallTaskWidth=function(s){var u=0;if(null!=s&&""!==s){var d=s.indexOf("rem");if(d>-1)try{u=parseFloat(s.substr(0,d))*parseFloat(getComputedStyle(document.documentElement).fontSize)}catch{}else u=c.DomUtils.pxToInt(s)}return 2*u},p.minTitleOutRightPadding=5,p}();l.TaskRender=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.CustomTaskRender=void 0;var c=o(4),I=o(16),C=function(){function f(a,p){this._pendingTemplateFuncsToRender=[],this._renderHelper=a,this._taskRender=p}return Object.defineProperty(f.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"tickSize",{get:function(){return this._renderHelper.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"taskTitlePosition",{get:function(){return this._renderHelper.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"taskElements",{get:function(){return this._taskRender.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),f.prototype.getViewItem=function(a){return this._renderHelper.getViewItem(a)},f.prototype.getTask=function(a){return this._renderHelper.getTask(a)},f.prototype.destroyTemplate=function(a){this._renderHelper.destroyTemplate(a)},f.prototype.getTaskDependencies=function(a){return this._renderHelper.getTaskDependencies(a)},f.prototype.getTaskResources=function(a){return this._renderHelper.getTaskResources(a)},f.prototype.attachEventsOnTask=function(a){this._renderHelper.attachEventsOnTask(a)},f.prototype.recreateConnectorLineElement=function(a,p){void 0===p&&(p=!1),this._renderHelper.recreateConnectorLineElement(a,p)},f.prototype.createTaskSelectionElement=function(a){this._taskRender.createTaskSelectionElement(a)},f.prototype.createCustomTaskElement=function(a,p){if(this._saveTemplateFuncToStack(a,p),!this._hasRepeatedTemplateRenderCall(a)){var s=this.getViewItem(a);s.isCustom=!1;var u=document.createElement("DIV"),d=this.createCustomTaskInformation(a);s.isCustom=!0,p(u,d,this.onTaskTemplateContainerRendered.bind(this),a)}},f.prototype.onTaskTemplateContainerRendered=function(a,p){var s=this;if(this._hasRepeatedTemplateRenderCall(p)){a&&this._renderHelper.destroyTemplate(a);var u=this._getLastPendingTemplateFunc(p);setTimeout(function(){return s.createCustomTaskElement(p,u)})}else this.drawCustomTask(a,p);this._clearTemplateFuncsStack(p)},f.prototype._saveTemplateFuncToStack=function(a,p){var s,u;null!==(s=(u=this._pendingTemplateFuncsToRender)[a])&&void 0!==s||(u[a]=[]),this._pendingTemplateFuncsToRender[a].push(p)},f.prototype._clearTemplateFuncsStack=function(a){this._pendingTemplateFuncsToRender[a]=[]},f.prototype._hasRepeatedTemplateRenderCall=function(a){return this._pendingTemplateFuncsToRender[a].length>1},f.prototype._getLastPendingTemplateFunc=function(a){var p=this._pendingTemplateFuncsToRender[a];return p[p.length-1]},f.prototype.createCustomTaskWrapperElement=function(a,p){I.RenderElementUtils.create(p,a,this.taskArea,this.taskElements)},f.prototype.createCustomTaskVisualElement=function(a,p){return I.RenderElementUtils.create(p,a,this.taskElements[a])},f.prototype.drawCustomTask=function(a,p){var s=this;if(this.taskElements[p]){var u=this.getViewItem(p);if(u.visible=!!a.innerHTML,this.taskElements[p].innerHTML=a.innerHTML,u.size.height=this.taskElements[p].offsetHeight,u.size.width=this.taskElements[p].offsetWidth,this.destroyTemplate(this.taskElements[p]),this._taskRender.removeTaskElement(p),u.visible){var d=this.gridLayoutCalculator.getTaskWrapperElementInfo(p);this.createCustomTaskWrapperElement(p,d),this.taskElements[p].appendChild(a),this.attachEventsOnTask(p)}else{var h=this.getTaskDependencies(u.task.internalId);h.length&&(this._taskRender.addInvalidTaskDependencies(h),h.forEach(function(g){return s.recreateConnectorLineElement(g.internalId,!0)}))}this._taskRender.isHighlightRowElementAllowed(p)&&this._taskRender.createHighlightRowElement(p),u.selected&&this.createTaskSelectionElement(p)}},f.prototype.createCustomTaskInformation=function(a){var p=this.getTask(a),s=this.getViewItem(a),u=this.gridLayoutCalculator.getTaskWrapperElementInfo(a),d=this.gridLayoutCalculator.getTaskElementInfo(a,this.taskTitlePosition!==c.TaskTitlePosition.Inside);this.createCustomTaskWrapperElement(a,u);var h=this.createCustomTaskVisualElement(a,d);this._taskRender.createTaskTextElement(a,h);var g=this.getTaskResources(p.id);return{cellSize:this.tickSize,isMilestone:p.isMilestone(),isParent:!!s?.children.length,taskData:p,taskHTML:h,taskPosition:u.position,taskResources:g,taskSize:d.size}},f}();l.CustomTaskRender=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.MainElementsRender=void 0;var c=function(){function I(){}return I.prototype.createMainElement=function(C){var f=document.createElement("DIV");return f.style.width=C.offsetWidth+"px",f.style.height=C.offsetHeight+"px",f},I.prototype.createHeader=function(){var C=document.createElement("DIV");return C.className="dx-gantt-header",C},I}();l.MainElementsRender=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaContainer=void 0;var c=function(){function I(C,f){this.element=C,this.onScrollHandler=function(){f.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}();l.TaskAreaContainer=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ElementTextHelper=void 0;var c=o(3),I=o(4),C=o(15),f=function(){function a(p){this.longestAbbrMonthName=null,this.longestMonthName=null,this.longestAbbrDayName=null;var s=document.createElement("canvas");this.textMeasureContext=s.getContext("2d"),this.cultureInfo=p}return a.prototype.setFont=function(p){var s=c.DomUtils.getCurrentStyle(p);this.textMeasureContext.font=s.font?s.font:s.fontStyle+" "+s.fontVariant+" "+s.fontWeight+" "+s.fontSize+" / "+s.lineHeight+" "+s.fontFamily},a.prototype.setSettings=function(p,s,u){this.startTime=p,this.viewType=s,this.modelItems=u},a.prototype.getScaleItemText=function(p,s){var u=this.viewType.valueOf()===s.valueOf();switch(s){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,u);case I.ViewType.Weeks:return this.getWeeksScaleItemText(p,u);case I.ViewType.Months:return this.getMonthsScaleItemText(p,u);case I.ViewType.Quarter:return this.getQuarterScaleItemText(p,u);case I.ViewType.Years:return this.getYearsScaleItemText(p);case I.ViewType.FiveYears:return this.getFiveYearsScaleItemText(p)}},a.prototype.getTenMinutesScaleItemText=function(p){var s=p.getMinutes()+1;return(10*Math.ceil(s/10)).toString()},a.prototype.getThirtyMinutesScaleItemText=function(p){return p.getMinutes()<30?"30":"60"},a.prototype.getHoursScaleItemText=function(p){var s=p.getHours(),u=this.getHourDisplayText(s),d=s<12?this.getAmText():this.getPmText();return this.getHoursScaleItemTextCore(u,d)},a.prototype.getDaysScaleItemText=function(p,s){return this.getDayTotalText(p,!0,s,s,!s)},a.prototype.getWeeksScaleItemText=function(p,s){var u=C.DateUtils.getDSTCorrectedTaskEnd(p,C.DateUtils.msPerWeek-C.DateUtils.msPerDay);return this.getWeeksScaleItemTextCore(this.getDayTotalText(p,s,!0,s,!s),this.getDayTotalText(u,s,!0,s,!s))},a.prototype.getMonthsScaleItemText=function(p,s){var u=this.getMonthNames(),d=s?"":p.getFullYear().toString();return this.getMonthsScaleItemTextCore(u[p.getMonth()],d)},a.prototype.getQuarterScaleItemText=function(p,s){var u=this.getQuarterNames(),d=s?"":p.getFullYear().toString();return this.getMonthsScaleItemTextCore(u[Math.floor(p.getMonth()/3)],d)},a.prototype.getYearsScaleItemText=function(p){return p.getFullYear().toString()},a.prototype.getFiveYearsScaleItemText=function(p){return p.getFullYear().toString()+" - "+(p.getFullYear()+4).toString()},a.prototype.getHourDisplayText=function(p){return this.hasAmPm()?(0==p?12:p<=12?p:p-12).toString():p<10?"0"+p:p.toString()},a.prototype.getDayTotalText=function(p,s,u,d,h){var g=d?this.getAbbrMonthNames():this.getMonthNames(),x=u?this.getAbbrDayNames():this.getDayNames(),b=s?x[p.getDay()]:"",y=p.getDate(),E=g[p.getMonth()],S=h?p.getFullYear().toString():"";return this.getDayTotalTextCore(b,y.toString(),E,S)},a.prototype.getTaskText=function(p){var s=this.modelItems[p];return s?s.task.title:""},a.prototype.getTaskVisibility=function(p){var s=this.modelItems[p];return!!s&&s.getVisible()},a.prototype.hasAmPm=function(){return this.getAmText().length>0||this.getPmText().length>0},a.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"}},a.prototype.getDayTextTemplate=function(){return this.getDayTotalTextCore(this.getLongestAbbrDayName(),"00",this.getLongestAbbrMonthName(),"")},a.prototype.getWeekTextTemplate=function(){var p=this.getDayTextTemplate();return this.getWeeksScaleItemTextCore(p,p)},a.prototype.getHoursScaleItemTextCore=function(p,s){return p+":00"+(this.hasAmPm()?" "+s:"")},a.prototype.getDayTotalTextCore=function(p,s,u,d){var h=p.length>0?p+", ":"";return(h+=s+" "+u)+(d.length>0?" "+d:"")},a.prototype.getWeeksScaleItemTextCore=function(p,s){return p+" - "+s},a.prototype.getMonthsScaleItemTextCore=function(p,s){var u=p;return s.length>0&&(u+=" "+s),u},a.prototype.getLongestAbbrMonthName=function(){return null==this.longestAbbrMonthName&&(this.longestAbbrMonthName=this.getLongestText(this.getAbbrMonthNames())),this.longestAbbrMonthName},a.prototype.getLongestMonthName=function(){return null==this.longestMonthName&&(this.longestMonthName=this.getLongestText(this.getMonthNames())),this.longestMonthName},a.prototype.getLongestAbbrDayName=function(){return null==this.longestAbbrDayName&&(this.longestAbbrDayName=this.getLongestText(this.getAbbrDayNames())),this.longestAbbrDayName},a.prototype.getLongestText=function(p){var s=this,u="",d=0;return p.forEach(function(h){var g=s.getTextWidth(h);g>d&&(d=g,u=h)}),u},a.prototype.getTextWidth=function(p){return Math.round(this.textMeasureContext.measureText(p).width)},a.prototype.getAmText=function(){return this.cultureInfo.amText},a.prototype.getPmText=function(){return this.cultureInfo.pmText},a.prototype.getQuarterNames=function(){return this.cultureInfo.quarterNames},a.prototype.getMonthNames=function(){return this.cultureInfo.monthNames},a.prototype.getDayNames=function(){return this.cultureInfo.dayNames},a.prototype.getAbbrMonthNames=function(){return this.cultureInfo.abbrMonthNames},a.prototype.getAbbrDayNames=function(){return this.cultureInfo.abbrDayNames},a}();l.ElementTextHelper=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Settings=void 0;var c=o(1),I=o(8),C=o(4),f=o(186),a=o(68),p=o(187),s=o(188),u=function(){function d(){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 f.EditingSettings,this.validation=new p.ValidationSettings,this.stripLines=new a.StripLineSettings,this.viewTypeRange=new s.ViewTypeRangeSettings}return d.parse=function(h){var g=new d;return h&&((0,c.isDefined)(h.viewType)&&(g.viewType=h.viewType),(0,c.isDefined)(h.taskTitlePosition)&&(g.taskTitlePosition=h.taskTitlePosition),(0,c.isDefined)(h.showResources)&&(g.showResources=h.showResources),(0,c.isDefined)(h.showDependencies)&&(g.showDependencies=h.showDependencies),(0,c.isDefined)(h.areHorizontalBordersEnabled)&&(g.areHorizontalBordersEnabled=h.areHorizontalBordersEnabled),(0,c.isDefined)(h.areVerticalBordersEnabled)&&(g.areHorizontalBordersEnabled=h.areHorizontalBordersEnabled),(0,c.isDefined)(h.areAlternateRowsEnabled)&&(g.areAlternateRowsEnabled=h.areAlternateRowsEnabled),(0,c.isDefined)(h.allowSelectTask)&&(g.allowSelectTask=h.allowSelectTask),(0,c.isDefined)(h.firstDayOfWeek)&&(g.firstDayOfWeek=h.firstDayOfWeek),(0,c.isDefined)(h.startDateRange)&&(g.startDateRange=new Date(h.startDateRange)),(0,c.isDefined)(h.endDateRange)&&(g.endDateRange=new Date(h.endDateRange)),(0,c.isDefined)(h.editing)&&(g.editing=f.EditingSettings.parse(h.editing)),(0,c.isDefined)(h.validation)&&(g.validation=p.ValidationSettings.parse(h.validation)),(0,c.isDefined)(h.stripLines)&&(g.stripLines=a.StripLineSettings.parse(h.stripLines)),(0,c.isDefined)(h.viewTypeRange)&&(g.viewTypeRange=s.ViewTypeRangeSettings.parse(h.viewTypeRange)),(0,c.isDefined)(h.taskTooltipContentTemplate)&&(g.taskTooltipContentTemplate=h.taskTooltipContentTemplate),(0,c.isDefined)(h.taskProgressTooltipContentTemplate)&&(g.taskProgressTooltipContentTemplate=h.taskProgressTooltipContentTemplate),(0,c.isDefined)(h.taskTimeTooltipContentTemplate)&&(g.taskTimeTooltipContentTemplate=h.taskTimeTooltipContentTemplate),(0,c.isDefined)(h.taskContentTemplate)&&(g.taskContentTemplate=h.taskContentTemplate),(0,c.isDefined)(h.cultureInfo)&&(g.cultureInfo=h.cultureInfo)),g},d.prototype.equal=function(h){var g=!0;return(g=(g=(g=(g=(g=(g=(g=(g=(g=(g=(g=g&&this.viewType===h.viewType)&&this.taskTitlePosition===h.taskTitlePosition)&&this.showResources===h.showResources)&&this.showDependencies===h.showDependencies)&&this.areHorizontalBordersEnabled===h.areHorizontalBordersEnabled)&&this.areAlternateRowsEnabled===h.areAlternateRowsEnabled)&&this.allowSelectTask===h.allowSelectTask)&&this.editing.equal(h.editing))&&this.validation.equal(h.validation))&&this.stripLines.equal(h.stripLines))&&I.DateTimeUtils.areDatesEqual(this.startDateRange,h.startDateRange))&&I.DateTimeUtils.areDatesEqual(this.endDateRange,h.endDateRange)},d}();l.Settings=u},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.EditingSettings=void 0;var c=o(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(f){var a=new C;return f&&((0,c.isDefined)(f.enabled)&&(a.enabled=f.enabled),(0,c.isDefined)(f.allowDependencyDelete)&&(a.allowDependencyDelete=f.allowDependencyDelete),(0,c.isDefined)(f.allowDependencyInsert)&&(a.allowDependencyInsert=f.allowDependencyInsert),(0,c.isDefined)(f.allowTaskDelete)&&(a.allowTaskDelete=f.allowTaskDelete),(0,c.isDefined)(f.allowTaskInsert)&&(a.allowTaskInsert=f.allowTaskInsert),(0,c.isDefined)(f.allowTaskUpdate)&&(a.allowTaskUpdate=f.allowTaskUpdate),(0,c.isDefined)(f.allowResourceDelete)&&(a.allowResourceDelete=f.allowResourceDelete),(0,c.isDefined)(f.allowResourceInsert)&&(a.allowResourceInsert=f.allowResourceInsert),(0,c.isDefined)(f.allowResourceUpdate)&&(a.allowResourceUpdate=f.allowResourceUpdate),(0,c.isDefined)(f.allowTaskResourceUpdate)&&(a.allowTaskResourceUpdate=f.allowTaskResourceUpdate),(0,c.isDefined)(f.taskHoverDelay)&&(a.taskHoverDelay=f.taskHoverDelay)),a},C.prototype.equal=function(f){var a=!0;return(a=(a=(a=(a=(a=(a=(a=(a=(a=a&&this.enabled===f.enabled)&&this.allowDependencyDelete===f.allowDependencyDelete)&&this.allowDependencyInsert===f.allowDependencyInsert)&&this.allowTaskDelete===f.allowTaskDelete)&&this.allowTaskInsert===f.allowTaskInsert)&&this.allowTaskUpdate===f.allowTaskUpdate)&&this.allowResourceDelete===f.allowResourceDelete)&&this.allowResourceInsert===f.allowResourceInsert)&&this.allowResourceUpdate===f.allowResourceUpdate)&&this.allowTaskResourceUpdate===f.allowTaskResourceUpdate},C}();l.EditingSettings=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ValidationSettings=void 0;var c=o(1),I=function(){function C(){this.validateDependencies=!1,this.autoUpdateParentTasks=!1,this.enablePredecessorGap=!1}return C.parse=function(f){var a=new C;return f&&((0,c.isDefined)(f.validateDependencies)&&(a.validateDependencies=f.validateDependencies),(0,c.isDefined)(f.autoUpdateParentTasks)&&(a.autoUpdateParentTasks=f.autoUpdateParentTasks),(0,c.isDefined)(f.enablePredecessorGap)&&(a.enablePredecessorGap=f.enablePredecessorGap)),a},C.prototype.equal=function(f){var a=!0;return(a=(a=a&&this.validateDependencies===f.validateDependencies)&&this.autoUpdateParentTasks===f.autoUpdateParentTasks)&&this.enablePredecessorGap===f.enablePredecessorGap},C}();l.ValidationSettings=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ViewTypeRangeSettings=void 0;var c=o(1),I=o(4),C=function(){function f(){this.min=I.ViewType.TenMinutes,this.max=I.ViewType.Years}return f.parse=function(a){var p=new f;return a&&((0,c.isDefined)(a.min)&&(p.min=a.min),(0,c.isDefined)(a.max)&&(p.max=a.max)),p},f.prototype.equal=function(a){var p=!0;return(p=p&&this.min===a.min)&&this.max===a.max},f}();l.ViewTypeRangeSettings=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskEditSettings=void 0;var c=o(0),I=o(1),C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return c.__extends(a,f),a.parse=function(p){var s=new a;return p&&((0,I.isDefined)(p.getCommandManager)&&(s.getCommandManager=p.getCommandManager),(0,I.isDefined)(p.getViewModel)&&(s.getViewModel=p.getViewModel),(0,I.isDefined)(p.getGanttSettings)&&(s.getGanttSettings=p.getGanttSettings),(0,I.isDefined)(p.getRenderHelper)&&(s.getRenderHelper=p.getRenderHelper),(0,I.isDefined)(p.destroyTemplate)&&(s.destroyTemplate=p.destroyTemplate),(0,I.isDefined)(p.formatDate)&&(s.formatDate=p.formatDate),(0,I.isDefined)(p.getModelManipulator)&&(s.getModelManipulator=p.getModelManipulator),(0,I.isDefined)(p.getValidationController)&&(s.getValidationController=p.getValidationController)),s},a}(o(65).TooltipSettings);l.TaskEditSettings=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ValidationController=void 0;var c=o(0),I=o(1),C=o(15),f=o(23),a=o(53),p=o(19),s=o(8),u=o(191),d=function(){function h(g){this.lockPredecessorToSuccessor=!0,this.settings=g}return Object.defineProperty(h.prototype,"viewModel",{get:function(){return this.settings.getViewModel()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"history",{get:function(){return this.settings.getHistory()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"modelManipulator",{get:function(){return this.settings.getModelManipulator()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"range",{get:function(){return this.settings.getRange()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"validationSettings",{get:function(){return this.settings.getValidationSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"_parentAutoCalc",{get:function(){return this.viewModel.parentAutoCalc},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"enablePredecessorGap",{get:function(){return this.viewModel.enablePredecessorGap},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isValidateDependenciesRequired",{get:function(){return this.settings.getIsValidateDependenciesRequired()},enumerable:!1,configurable:!0}),h.prototype.updateOwnerInAutoParentMode=function(){this.settings.updateOwnerInAutoParentMode()},h.prototype.checkStartDependencies=function(g,x){var b=this,y=[],E=this.viewModel.tasks.getItemById(g);return this.viewModel.dependencies.items.filter(function(S){return S.successorId===g}).forEach(function(S){var O=b.viewModel.tasks.getItemById(S.predecessorId);(S.type===f.DependencyType.FS&&O.end>x||S.type===f.DependencyType.SS&&O.start>x)&&y.push(new u.ValidationError(S.internalId,!0)),(S.type===f.DependencyType.FS&&O.end.valueOf()===E.start.valueOf()&&x>O.end||S.type===f.DependencyType.SS&&O.start.valueOf()===E.start.valueOf()&&x>O.start)&&y.push(new u.ValidationError(S.internalId))}),y},h.prototype.checkEndDependencies=function(g,x){var b=this,y=[],E=this.viewModel.tasks.getItemById(g);return this.viewModel.dependencies.items.filter(function(S){return S.successorId===g}).forEach(function(S){var O=b.viewModel.tasks.getItemById(S.predecessorId);(S.type===f.DependencyType.SF&&O.start>x||S.type===f.DependencyType.FF&&O.end>x)&&y.push(new u.ValidationError(S.internalId,!0)),(S.type===f.DependencyType.SF&&O.start.valueOf()===E.end.valueOf()&&x>O.start||S.type===f.DependencyType.FF&&O.end.valueOf()===E.end.valueOf()&&x>O.end)&&y.push(new u.ValidationError(S.internalId))}),y},h.prototype.moveEndDependTasks=function(g,x,b){var y=this;void 0===b&&(b=!1);var E=this.viewModel.dependencies.items.filter(function(O){return O.predecessorId===g&&!O.isStartDependency}),S=this.viewModel.tasks.getItemById(g);E.forEach(function(O){var w=y.viewModel.tasks.getItemById(O.successorId);if(w&&(!b||S.parentId!==w.parentId)&&w.parentId!=S.id){var T=new p.DateRange(new Date(w.start.getTime()),new Date(w.end.getTime())),k=new p.DateRange(new Date(w.start.getTime()),new Date(w.end.getTime())),R=S.end.getTime()-x.getTime(),P=y.enablePredecessorGap?S.end:x;O.type===f.DependencyType.FS&&(w.start<P||y.lockPredecessorToSuccessor&&w.start.getTime()===x.getTime())?(k.start.setTime(S.end.getTime()),k.end.setTime(k.start.getTime()+(w.end.getTime()-w.start.getTime())),y.correctMoving(w.internalId,k)):O.type===f.DependencyType.FF&&(w.end<P||y.lockPredecessorToSuccessor&&w.end.getTime()===x.getTime())?(k.start.setTime(S.end.getTime()-(w.end.getTime()-w.start.getTime())),k.end.setTime(S.end.getTime()),y.correctMoving(w.internalId,k)):y.enablePredecessorGap||(k.start.setTime(w.start.getTime()+R),k.end.setTime(w.end.getTime()+R)),T.equal(k)||(y.history.addAndRedo(new a.UpdateTaskHistoryItem(y.modelManipulator,O.successorId,{start:k.start,end:k.end})),y.moveRelatedTasks(O,T,w,k))}})},h.prototype.moveStartDependTasks=function(g,x,b){var y=this;void 0===b&&(b=!1);var E=this.viewModel.dependencies.items.filter(function(O){return O.predecessorId===g&&O.isStartDependency}),S=this.viewModel.tasks.getItemById(g);E.forEach(function(O){var w=y.viewModel.tasks.getItemById(O.successorId);if(w&&(!b||S.parentId!==w.parentId)&&w.parentId!=S.id){var T=new p.DateRange(new Date(w.start.getTime()),new Date(w.end.getTime())),k=new p.DateRange(new Date(w.start.getTime()),new Date(w.end.getTime())),R=S.start.getTime()-x.getTime(),P=y.enablePredecessorGap?S.start:x;O.type===f.DependencyType.SF&&(w.end<P||y.lockPredecessorToSuccessor&&w.end.getTime()===x.getTime())?(k.start.setTime(S.start.getTime()-(w.end.getTime()-w.start.getTime())),k.end.setTime(S.start.getTime()),y.correctMoving(w.internalId,k)):O.type===f.DependencyType.SS&&(w.start<P||y.lockPredecessorToSuccessor&&w.start.getTime()===x.getTime())?(k.start.setTime(S.start.getTime()),k.end.setTime(S.start.getTime()+(w.end.getTime()-w.start.getTime())),y.correctMoving(w.internalId,k)):y.enablePredecessorGap||(k.start.setTime(w.start.getTime()+R),k.end.setTime(w.end.getTime()+R)),T.equal(k)||(y.history.addAndRedo(new a.UpdateTaskHistoryItem(y.modelManipulator,O.successorId,{start:k.start,end:k.end})),y.moveRelatedTasks(O,T,w,k))}})},h.prototype.moveRelatedTasks=function(g,x,b,y){var E=y.start.getTime()-x.start.getTime();this.correctParentsOnChildMoving(b.internalId,E),this.moveStartDependTasks(g.successorId,x.start),this.moveEndDependTasks(g.successorId,x.end)},h.prototype.getCorrectDateRange=function(g,x,b){var y=this,E=new p.DateRange(new Date(x),new Date(b));return c.__spreadArray(c.__spreadArray([],this.checkStartDependencies(g,E.start),!0),this.checkEndDependencies(g,E.end),!0).filter(function(S){return S.critical}).forEach(function(S){var O=y.viewModel.dependencies.getItemById(S.dependencyId),w=y.viewModel.tasks.getItemById(O.predecessorId);O.type===f.DependencyType.FS&&E.start<w.end&&E.start.setTime(w.end.getTime()),O.type===f.DependencyType.SS&&E.start<w.start&&E.start.setTime(w.start.getTime()),O.type===f.DependencyType.FF&&E.end<w.end&&E.end.setTime(w.end.getTime()),O.type===f.DependencyType.SF&&E.end<w.start&&E.end.setTime(w.start.getTime())}),E},h.prototype.correctMoving=function(g,x){var b=this,y=x.end.getTime()-x.start.getTime();return c.__spreadArray(c.__spreadArray([],this.checkStartDependencies(g,x.start),!0),this.checkEndDependencies(g,x.end),!0).filter(function(E){return E.critical}).forEach(function(E){var S=b.viewModel.dependencies.getItemById(E.dependencyId),O=b.viewModel.tasks.getItemById(S.predecessorId);S.type===f.DependencyType.FS&&x.start<O.end&&(x.start.setTime(O.end.getTime()),x.end.setTime(x.start.getTime()+y)),S.type===f.DependencyType.SS&&x.start<O.start&&(x.start.setTime(O.start.getTime()),x.end.setTime(x.start.getTime()+y)),S.type===f.DependencyType.FF&&x.end<O.end&&(x.end.setTime(O.end.getTime()),x.start.setTime(x.end.getTime()-y)),S.type===f.DependencyType.SF&&x.end<O.start&&(x.end.setTime(O.start.getTime()),x.start.setTime(x.end.getTime()-y))}),x},h.prototype.recalculateParents=function(g,x){for(var b=g&&g.parent;b&&b.task;){for(var y=b.children,E=this.range.end,S=this.range.start,O=0,w=0,T={id:b.task.internalId},k=0;k<y.length;k++){var R=y[k].task;if(R.isValid()){E=s.DateTimeUtils.getMinDate(E,R.start),S=s.DateTimeUtils.getMaxDate(S,R.end);var P=R.getDuration();O+=R.progress*P,w+=P}}s.DateTimeUtils.areDatesEqual(b.task.start,E)||(T.start=E),s.DateTimeUtils.areDatesEqual(b.task.end,S)||(T.end=S),T.oldStart=b.task.start,T.oldEnd=b.task.end,(O=w>0?Math.round(O/w):0)!==b.task.progress&&(T.progress=O),x(T),b=b.parent}},h.prototype.updateParentsRangeByChild=function(g){var x=this;this.recalculateParents(this.viewModel.findItem(g),function(b){if((0,I.isDefined)(b.id)){var y=x.history,E=x.modelManipulator;(0,I.isDefined)(b.start)&&(y.addAndRedo(new a.UpdateTaskHistoryItem(E,b.id,{start:b.start})),x.moveStartDependTasks(b.id,b.oldStart)),(0,I.isDefined)(b.end)&&(y.addAndRedo(new a.UpdateTaskHistoryItem(E,b.id,{end:b.end})),x.moveEndDependTasks(b.id,b.oldEnd)),(0,I.isDefined)(b.progress)&&y.addAndRedo(new a.UpdateTaskHistoryItem(E,b.id,{progress:b.progress}))}})},h.prototype.updateChildRangeByParent=function(g,x,b){var y=this.viewModel.findItem(g);if(y&&0!==y.children.length)for(var E=y.children,S=0;S<E.length;S++){var O=E[S].task,w=new Date(O.start.getTime()+x),T=C.DateUtils.getRangeMSPeriod(O.start,O.end),k=C.DateUtils.getDSTCorrectedTaskEnd(w,T);b.push({id:O.internalId,start:O.start,end:O.end}),this.history.addAndRedo(new a.UpdateTaskHistoryItem(this.modelManipulator,O.internalId,{start:w,end:k})),this.updateChildRangeByParent(O.internalId,x,b)}},h.prototype.updateParentsIfRequired=function(g){this._parentAutoCalc&&(this.updateParentsRangeByChild(g),this.updateOwnerInAutoParentMode())},h.prototype.correctParentsOnChildMoving=function(g,x){var b=this;if(this._parentAutoCalc&&0!==x){this.updateParentsRangeByChild(g);var y=[];this.updateChildRangeByParent(g,x,y),this.isValidateDependenciesRequired&&y.forEach(function(E){b.moveStartDependTasks(E.id,E.start,!0),b.moveEndDependTasks(E.id,E.end,!0)}),this.updateOwnerInAutoParentMode()}},h.prototype.canCreateDependency=function(g,x){return this.viewModel.canCreateDependency(g,x)},h}();l.ValidationController=d},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ValidationError=void 0,l.ValidationError=function(I,C){void 0===C&&(C=!1),this.dependencyId=I,this.critical=C}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ValidationControllerSettings=void 0;var c=o(1),I=function(){function C(){}return C.parse=function(f){var a=new C;return f&&((0,c.isDefined)(f.getViewModel)&&(a.getViewModel=f.getViewModel),(0,c.isDefined)(f.getHistory)&&(a.getHistory=f.getHistory),(0,c.isDefined)(f.getModelManipulator)&&(a.getModelManipulator=f.getModelManipulator),(0,c.isDefined)(f.getRange)&&(a.getRange=f.getRange),(0,c.isDefined)(f.getValidationSettings)&&(a.getValidationSettings=f.getValidationSettings),(0,c.isDefined)(f.updateOwnerInAutoParentMode)&&(a.updateOwnerInAutoParentMode=f.updateOwnerInAutoParentMode),(0,c.isDefined)(f.getIsValidateDependenciesRequired)&&(a.getIsValidateDependenciesRequired=f.getIsValidateDependenciesRequired)),a},C}();l.ValidationControllerSettings=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ViewVisualModel=void 0;var c=o(21),I=o(194),C=o(196),f=o(197),a=o(198),p=o(199),s=o(200),u=o(1),d=o(2),h=o(69),g=o(48),x=o(70),b=function(){function y(E,S,O,w,T,k,R){this._fLockCount=0,this.lockChangesProcessing=!1,this.owner=E,this.tasks=new I.TaskCollection,this.tasks.importFromObject(S),this.dependencies=new C.DependencyCollection,this.dependencies.importFromObject(O),this.resources=new c.ResourceCollection,this.resources.importFromObject(w),this.assignments=new f.ResourceAssignmentCollection,this.assignments.importFromObject(T),this._itemList=new Array,this._viewItemList=new Array,this._workTimeCalculator=new s.WorkingTimeCalculator(k,R),this.updateModel(!0)}return Object.defineProperty(y.prototype,"renderHelper",{get:function(){return this.owner.renderHelper},enumerable:!1,configurable:!0}),y.prototype.updateModel=function(E){this._itemList.splice(0,this._itemList.length);for(var S=this.tasks.items,O=0;O<S.length;O++){var w=S[O];w&&this._itemList.push(new a.ViewVisualModelItem(w,this.getAssignedResources(w)))}this.createHierarchy(E),this.populateItemsForView(),this.owner&&this.owner.currentSelectedTaskID&&this.changeTaskSelected(this.owner.currentSelectedTaskID,!0)},y.prototype.createHierarchy=function(E){var S=this;this.root=new a.ViewVisualModelItem(null,null);for(var O=this._itemList,w=O.reduce(function(B,W){var N,V=null===(N=W.task)||void 0===N?void 0:N.internalId;return(0,u.isDefined)(V)&&(B[V]=W),B},{}),T=this.requireFirstLoadParentAutoCalc&&E,k=0;k<O.length;k++){var R=O[k],P=w[R.task.parentId]||this.root;R.parent=P,P.addChild(R),T&&this.owner.validationController.recalculateParents(R,function(B){if((0,u.isDefined)(B.id)){var W=S.tasks.getItemById(B.id);(0,u.isDefined)(B.start)&&(W.start=B.start),(0,u.isDefined)(B.end)&&(W.end=B.end),(0,u.isDefined)(B.progress)&&(W.progress=B.progress)}})}T&&this.owner.dispatcher.notifyParentDataRecalculated(this.getCurrentTaskData())},y.prototype.getCurrentTaskData=function(){var E=this;return this.tasks.items.map(function(S){return E.getTaskObjectForDataSource(S)})},y.prototype.getTaskObjectForDataSource=function(E){var S=E.parentId&&this.tasks.getItemById(E.parentId),O=this.getRootTaskId();return{id:E.id,start:E.start,end:E.end,duration:E.duration,description:E.description,parentId:O&&E.parentId===O?E.parentId:S?.id,progress:E.progress,color:E.color,taskType:E.taskType,title:E.title,customFields:E.customFields,expanded:E.expanded}},y.prototype.getDependencyObjectForDataSource=function(E){var S=E instanceof h.Dependency?E:this.getItemByPublicId("dependency",E);if(S){var O=this.convertInternalToPublicKey("task",S.predecessorId),w=this.convertInternalToPublicKey("task",S.successorId);return{id:S.id,predecessorId:(0,u.isDefined)(O)?O:S.predecessorId,successorId:(0,u.isDefined)(w)?w:S.successorId,type:S.type}}return null},y.prototype.getResourceObjectForDataSource=function(E){var S=E instanceof g.Resource?E:this.getItemByPublicId("resource",E);return S?{id:S.id,text:S.text,color:S.color}:null},y.prototype.getResourceAssignmentObjectForDataSource=function(E){var S=E instanceof x.ResourceAssignment?E:this.getItemByPublicId("assignment",E);if(S){var O=this.convertInternalToPublicKey("task",S.taskId),w=this.convertInternalToPublicKey("resource",S.resourceId);return{id:S.id,taskId:(0,u.isDefined)(O)?O:S.taskId,resourceId:(0,u.isDefined)(w)?w:S.resourceId}}return null},y.prototype.populateItemsForView=function(){this._viewItemList.splice(0,this._viewItemList.length),this.populateVisibleItems(this.root),this.updateVisibleItemDependencies()},y.prototype.populateVisibleItems=function(E){var S=this,O=E===this.root;E&&(E.task||O)&&(O||(this._viewItemList.push(E),E.visibleIndex=this._viewItemList.length-1),(E.getExpanded()||E===this.root)&&E.children.forEach(function(w){return S.populateVisibleItems(w)}))},y.prototype.updateVisibleItemDependencies=function(){for(var E=this._viewItemList,S=0;S<E.length;S++){var O=E[S],w=this.getTasVisibleDependencies(O.task);O.setDependencies(w)}},y.prototype.getAssignedResources=function(E){var S=this,O=new c.ResourceCollection;return this.assignments.items.filter(function(w){return w.taskId==E.internalId}).forEach(function(w){O.add(S.resources.getItemById(w.resourceId))}),O},y.prototype.getTasVisibleDependencies=function(E){for(var S=new Array,O=E.internalId,w=this.dependencies.items.filter(function(P){return P.successorId==O}),T=0;T<w.length;T++){var k=w[T],R=this.findItem(k.predecessorId);R&&R.getVisible()&&S.push(new p.ViewVisualModelDependencyInfo(k.internalId,R,k.type))}return S},y.prototype.changeTaskExpanded=function(E,S){var O=this.tasks.getItemById(String(E));O&&(O.expanded=S,this.changed())},y.prototype.changeTaskVisibility=function(E,S){var O=this.findItem(E);O&&(O.visible=S,this.changed())},y.prototype.changeTaskSelected=function(E,S){var O=this._itemList.filter(function(k){return k.task&&k.task.internalId===E})[0];if(O){O.selected=S;var w=this.findItem(E),T=w&&w.visibleIndex;T>-1&&this.renderHelper.recreateTaskElement(T)}},y.prototype.beginUpdate=function(){this._fLockCount++},y.prototype.endUpdate=function(){this._fLockCount--,0==this._fLockCount&&this.changed()},y.prototype.compareTaskOrder=function(E){var S=new I.TaskCollection;S.importFromObject(E);var O=S.items,w=this.tasks.items;if(O.length!==w.length)return!1;for(var T=0;T<O.length;T++)if(O[T].id!==w[T].id)return!1;return!0},y.prototype.refreshTaskDataIfRequires=function(E){var S=!this.lockChangesProcessing&&!this.compareTaskOrder(E);if(S){var O=this.saveTaskInternalIds();this.tasks.importFromObject(E),this.restoreTaskInternalIds(O),this.updateModel()}return S},y.prototype.saveTaskInternalIds=function(){var E={};return this.tasks.items.map(function(S){return E[S.id]=S.internalId}),E},y.prototype.restoreTaskInternalIds=function(E){for(var S in E)if(Object.prototype.hasOwnProperty.call(E,S)){var O=this.tasks.getItemByPublicId(S);O&&(O.internalId=E[S])}},y.prototype.canCreateDependency=function(E,S){if(!E||!S||E===S)return!1;var O=!1;if(this.enableDependencyValidation){var w=this.getDependentTasksHash();O=this.parentAutoCalc?this.checkTasksInterdependence(E,S,w)||this.checkParent(E,S)||this.checkParent(S,E):this.checkDependencyChain([E],[S],w,[])}return!O},y.prototype.checkParent=function(E,S){return this.getTaskTreeLine(E).indexOf(S)>-1},y.prototype.getTaskTreeLine=function(E){var S=[E],O=this.findItem(E);if(O)for(O=O.parent;O?.task;)S.push(O?.task.internalId),O=O.parent;return S},y.prototype.getDependentTasksHash=function(){var E={};return this.dependencies.items.forEach(function(S){var O,w,T=S.predecessorId,k=S.successorId;null!==(O=E[T])&&void 0!==O||(E[T]=[]),E[T].indexOf(k)<0&&E[T].push(k),null!==(w=E[k])&&void 0!==w||(E[k]=[]),E[k].indexOf(T)<0&&E[k].push(T)}),E},y.prototype.checkTasksInterdependence=function(E,S,O){for(var w,T,k=this.getTaskTreeLine(E).reverse(),R=this.getTaskTreeLine(S).reverse(),P=0;P<k.length-1;P++){var W=R.indexOf(k[P]);W>-1&&(w=k[P+1],T=R[W+1])}return w||T||(w=k[0],T=R[0]),this.checkDependencyChain(this.getBranchIds(w),this.getBranchIds(T),O,[])},y.prototype.checkDependencyChain=function(E,S,O,w){if(E.some(function(R){return S.indexOf(R)>-1}))return!0;w.push.apply(w,E);for(var T=0;T<E.length;T++){var k=O[E[T]];if(k&&this.checkDependencyChain(k.filter(function(R){return-1===w.indexOf(R)}),S,O,w))return!0}return!1},y.prototype.getBranchIds=function(E){var S=this,O=[E],T=this.findItem(E)?.children;return T&&T.forEach(function(k){var R,P=null===(R=k.task)||void 0===R?void 0:R.internalId;P&&(O=O.concat(S.getBranchIds(P)))}),O},y.prototype.getTasksExpandedState=function(){var S={};return this.tasks.items.forEach(function(O){return S[O.id]=O.expanded}),S},y.prototype.applyTasksExpandedState=function(E){if(E){for(var S in this.beginUpdate(),E)Object.prototype.hasOwnProperty.call(E,S)&&this.changeTaskExpanded(S,E[S]);this.endUpdate()}},y.prototype.changed=function(){0===this._fLockCount&&(this.populateItemsForView(),this.owner&&this.owner.onVisualModelChanged&&this.owner.onVisualModelChanged())},y.prototype.findItem=function(E){return this._viewItemList.filter(function(S){return S.task&&S.task.internalId===E})[0]},Object.defineProperty(y.prototype,"items",{get:function(){return this._viewItemList},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"itemCount",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),y.prototype.getTaskVisibility=function(E){var S=this.findItem(E);return!!S&&S.getVisible()},y.prototype.getTaskSelected=function(E){var S=this.findItem(E);return!!S&&S.selected},Object.defineProperty(y.prototype,"noWorkingIntervals",{get:function(){return this._workTimeCalculator.noWorkingIntervals},enumerable:!1,configurable:!0}),y.prototype.updateRange=function(E){this._workTimeCalculator.updateRange(E)},y.prototype.taskHasChildrenByIndex=function(E){return this._viewItemList[E].children.length>0},y.prototype.taskHasChildren=function(E){var S=this.findItem(E);return S&&S.children.length>0},Object.defineProperty(y.prototype,"enableDependencyValidation",{get:function(){var E;return null===(E=(this.owner&&this.owner.settings)?.validation)||void 0===E?void 0:E.validateDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"parentAutoCalc",{get:function(){var E=this.owner&&this.owner.settings;return E&&E.validation&&E.validation.autoUpdateParentTasks},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"enablePredecessorGap",{get:function(){var E=this.owner&&this.owner.settings;return E&&E.validation&&E.validation.enablePredecessorGap},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"requireFirstLoadParentAutoCalc",{get:function(){return this.parentAutoCalc&&this.owner.requireFirstLoadParentAutoCalc()},enumerable:!1,configurable:!0}),y.prototype.isTaskToCalculateByChildren=function(E){return this.parentAutoCalc&&this.taskHasChildren(E)},y.prototype.hasTasks=function(){return this.tasks.length>0},y.prototype.getDataUpdateErrorCallback=function(){return this.owner.getDataUpdateErrorCallback&&this.owner.getDataUpdateErrorCallback()},y.prototype.convertPublicToInternalKey=function(E,S){var O=this.getItemByPublicId(E,S);return O&&O.internalId},y.prototype.convertInternalToPublicKey=function(E,S){var O=this.getItemByInternalId(E,S);return O&&O.id},y.prototype.getItemByPublicId=function(E,S){var O=S.toString();switch(E){case"task":return this.tasks.getItemByPublicId(O);case"dependency":return this.dependencies.getItemByPublicId(O);case"resource":return this.resources.getItemByPublicId(O);case"assignment":return this.assignments.getItemByPublicId(O)}return null},y.prototype.getItemByInternalId=function(E,S){switch(E){case"task":return this.tasks.getItemById(S);case"dependency":return this.dependencies.getItemById(S);case"resource":return this.resources.getItemById(S);case"assignment":return this.assignments.getItemById(S)}return null},y.prototype.findAssignment=function(E,S){var O=this.convertPublicToInternalKey("resource",E),w=this.convertPublicToInternalKey("task",S);return this.assignments.items.filter(function(T){return T.resourceId===O&&T.taskId===w})[0]},y.prototype.findAllTaskAssignments=function(E){return this.assignments.items.filter(function(S){return S.taskId===E})},y.prototype.getAllVisibleTaskIndices=function(E,S){var O,w=[];null!=E||(E=0),null!=S||(S=this._viewItemList.length-1);for(var T=E;T<=S;T++){var k=this._viewItemList[T];k?.getVisible()&&null!==(O=k?.task)&&void 0!==O&&O.isValid&&w.push(T)}return w},y.prototype.getVisibleTasks=function(){var E=this;return this.tasks.items.filter(function(S){return S&&E.getTaskVisibility(S.internalId)&&S.isValid()})},y.prototype.getVisibleDependencies=function(){var E=this.getVisibleTasks().map(function(S){return S.internalId});return this.dependencies.items.filter(function(S){return S&&E.indexOf(S.successorId)>-1&&E.indexOf(S.predecessorId)>-1})},y.prototype.getVisibleResourceAssignments=function(){var E=this.getVisibleTasks().map(function(S){return S.internalId});return this.assignments.items.filter(function(S){return S&&E.indexOf(S.taskId)>-1})},y.prototype.getVisibleResources=function(){for(var E=[],S=this.getVisibleResourceAssignments(),O=0;O<S.length;O++){var w=this.getItemByInternalId("resource",S[O].resourceId);w&&-1===E.indexOf(w)&&E.push(w)}return E},y.prototype.getRootTaskId=function(){var E;return null!==(E=this.rootTaskId)&&void 0!==E||(this.rootTaskId=this.calculateRootTaskId()),this.rootTaskId},y.prototype.calculateRootTaskId=function(){var E=this.items[0];if(!E)return null;for(;E.parent&&E.task;)E=E.parent;return E.children[0].task.parentId},y.prototype.getTaskMinStart=function(){var E=this.owner.dataRange.start;return this.tasks.items.forEach(function(S){S.isValid()&&S.start.getTime()<E.getTime()&&(E=S.start)}),E},y.prototype.getTaskMaxEnd=function(){var E=this.owner.dataRange.end;return this.tasks.items.forEach(function(S){S.isValid()&&S.end.getTime()>E.getTime()&&(E=S.end)}),E},y.prototype.processServerInsertedKey=function(E,S,O){var w;O===d.GanttDataObjectNames.task&&this.tasks.invalidate(),O===d.GanttDataObjectNames.dependency&&(this.dependencies.invalidate(),this.updateVisibleItemDependencies()),O===d.GanttDataObjectNames.resource&&this.resources.invalidate(),O===d.GanttDataObjectNames.resourceAssignment&&this.assignments.invalidate(),null===(w=this.owner)||void 0===w||w.updateHistoryObsoleteInsertedKey(E,S,O)},y.prototype.onBeginDataObjectCreate=function(){var E,S;null===(S=(E=this.owner).lockUpdateWithReload)||void 0===S||S.call(E)},y.prototype.onEndDataObjectCreate=function(){var E,S;null===(S=(E=this.owner).unlockUpdateWithReload)||void 0===S||S.call(E)},y}();l.ViewVisualModel=b},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskCollection=void 0;var c=o(0),I=o(195),C=function(f){function a(){return null!==f&&f.apply(this,arguments)||this}return c.__extends(a,f),a.prototype.createItem=function(){return new I.Task},a}(o(22).CollectionBase);l.TaskCollection=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Task=void 0;var c=o(0),I=o(1),C=function(f){function a(){var p=f.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 c.__extends(a,f),Object.defineProperty(a.prototype,"normalizedProgress",{get:function(){return Math.max(Math.min(this.progress,100),0)},enumerable:!1,configurable:!0}),a.prototype.assignFromObject=function(p){(0,I.isDefined)(p)&&(f.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))},a.prototype.assignCustomFields=function(p){if(p)for(var s in p)Object.prototype.hasOwnProperty.call(p,s)&&(this.customFields[s]=p[s])},a.prototype.isMilestone=function(){return this.start.getTime()===this.end.getTime()},a.prototype.getDuration=function(){return this.end.getTime()-this.start.getTime()},a.prototype.isValid=function(){return!!this.start.getTime()&&!!this.end.getTime()},a}(o(2).DataObject);l.Task=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DependencyCollection=void 0;var c=o(0),I=o(22),C=o(69),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.createItem=function(){return new C.Dependency},p}(I.CollectionBase);l.DependencyCollection=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ResourceAssignmentCollection=void 0;var c=o(0),I=o(22),C=o(70),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.createItem=function(){return new C.ResourceAssignment},p}(I.CollectionBase);l.ResourceAssignmentCollection=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ViewVisualModelItem=void 0;var c=o(1),I=o(12),C=function(){function f(a,p){this.dependencies=new Array,this.parent=null,this.visible=!0,this.selected=!1,this.visibleIndex=-1,this.task=a,this.resources=p,this.children=new Array,this.isCustom=!1,this.size=new I.Size(0,0)}return Object.defineProperty(f.prototype,"resourceText",{get:function(){var a="";return this.resources.items.forEach(function(p){return a+=p.text+" "}),a},enumerable:!1,configurable:!0}),f.prototype.addChild=function(a){(0,c.isDefined)(a)&&this.children.indexOf(a)<0&&this.children.push(a)},f.prototype.removeChild=function(a){var p=this.children.indexOf(a);p>-1&&this.children.splice(p,1)},f.prototype.getExpanded=function(){return!!this.task&&this.task.expanded},f.prototype.getVisible=function(){if(!this.visible)return!1;for(var a=this.parent;a;){if(!a.visible)return!1;a=a.parent}return!0},f.prototype.changeVisibility=function(a){this.visible=a},f.prototype.changeSelection=function(a){this.selected=a},f.prototype.setDependencies=function(a){a&&(this.dependencies=a.slice())},f}();l.ViewVisualModelItem=C},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.ViewVisualModelDependencyInfo=void 0,l.ViewVisualModelDependencyInfo=function(I,C,f){this.id=I,this.predecessor=C,this.type=f}},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.WorkingTimeCalculator=void 0;var c=o(201),I=o(209),C=o(8),f=function(){function a(p,s){this._workingRules=new c.WorkingDayRuleCollection,this._workDayList=new Array,this._calculationRange=p,this._workingRules.importFromObject(s)}return a.prototype.calculateWorkDayList=function(){if(this._calculationRange){this.clearList();for(var p=this._workingRules.items,s=0;s<p.length;s++)this.processRule(p[s]);this.sortList()}},a.prototype.processRule=function(p){for(var s=p.recurrence.calculatePoints(this._calculationRange.start,this._calculationRange.end),u=function(g){var b=C.DateTimeUtils.getDayNumber(s[g]),y=d._workDayList.filter(function(E){return E.dayNumber==b})[0];y?(y.isWorkDay=y.isWorkDay&&p.isWorkDay,y.addWorkingIntervals(p.workTimeRanges)):d._workDayList.push(new I.DayWorkingTimeInfo(b,p.isWorkDay,p.workTimeRanges))},d=this,h=0;h<s.length;h++)u(h)},a.prototype.sortList=function(){this._workDayList.sort(function(p,s){return p.dayNumber-s.dayNumber})},a.prototype.clearList=function(){this._workDayList.splice(0,this._workDayList.length)},a.prototype.calculateNoWorkTimeIntervals=function(){var p=this,s=new Array;return 0==this._workDayList.length&&this.calculateWorkDayList(),this._workDayList.forEach(function(u){return s=s.concat(p.getNoWorkTimeRangesFromDay(u))}),this.concatJointedRanges(s)},a.prototype.concatJointedRanges=function(p){for(var s=new Array,u=0;u<p.length;u++){var d=p[u];s.length>0&&C.DateTimeUtils.compareDates(s[s.length-1].end,d.start)<2?s[s.length-1].end=d.end:s.push(d)}return s},a.prototype.getNoWorkTimeRangesFromDay=function(p){return p.noWorkingIntervals.map(function(s){return C.DateTimeUtils.convertTimeRangeToDateRange(s,p.dayNumber)})},Object.defineProperty(a.prototype,"noWorkingIntervals",{get:function(){return this._noWorkingIntervals||(this._noWorkingIntervals=this.calculateNoWorkTimeIntervals()),this._noWorkingIntervals.slice()},enumerable:!1,configurable:!0}),a.prototype.updateRange=function(p){this._calculationRange=p,this.invalidate()},a.prototype.invalidate=function(){this._noWorkingIntervals=null,this.clearList()},a}();l.WorkingTimeCalculator=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.WorkingDayRuleCollection=void 0;var c=o(0),I=o(22),C=o(202),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.createItem=function(){return new C.WorkingTimeRule},p}(I.CollectionBase);l.WorkingDayRuleCollection=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.WorkingTimeRule=void 0;var c=o(0),I=o(2),C=o(1),f=o(8),a=o(71),p=o(72),s=function(u){function d(h,g,x){void 0===h&&(h=null),void 0===g&&(g=!0),void 0===x&&(x=null);var b=u.call(this)||this;return b.isWorkDay=!0,b.workTimeRanges=new Array,b.recurrence=h,b.isWorkDay=g,x&&b.workTimeRanges.concat(x),b}return c.__extends(d,u),d.prototype.assignFromObject=function(h){if((0,C.isDefined)(h)){u.prototype.assignFromObject.call(this,h),this.recurrence=a.RecurrenceFactory.createRecurrenceByType(h.recurrenceType)||new p.Daily,(0,C.isDefined)(h.recurrence)&&this.recurrence.assignFromObject(h.recurrence),(0,C.isDefined)(h.isWorkDay)&&(this.isWorkDay=!!h.isWorkDay);var g=f.DateTimeUtils.convertToTimeRanges(h.workTimeRanges);g&&(this.workTimeRanges=g)}},d}(I.DataObject);l.WorkingTimeRule=s},function(he,l,o){"use strict";var c;Object.defineProperty(l,"__esModule",{value:!0}),l.DayOfWeek=void 0,(c=l.DayOfWeek||(l.DayOfWeek={}))[c.Sunday=0]="Sunday",c[c.Monday=1]="Monday",c[c.Tuesday=2]="Tuesday",c[c.Wednesday=3]="Wednesday",c[c.Thursday=4]="Thursday",c[c.Friday=5]="Friday",c[c.Saturday=6]="Saturday"},function(he,l,o){"use strict";var c;Object.defineProperty(l,"__esModule",{value:!0}),l.Month=void 0,(c=l.Month||(l.Month={}))[c.January=0]="January",c[c.February=1]="February",c[c.March=2]="March",c[c.April=3]="April",c[c.May=4]="May",c[c.June=5]="June",c[c.July=6]="July",c[c.August=7]="August",c[c.September=8]="September",c[c.October=9]="October",c[c.November=10]="November",c[c.December=11]="December"},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Weekly=void 0;var c=o(0),I=o(38),C=o(8),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.checkDate=function(s){return C.DateTimeUtils.checkDayOfWeek(this.dayOfWeekInternal,s)},p.prototype.checkInterval=function(s){return C.DateTimeUtils.getWeeksBetween(this.start,s)%this.interval==0},p.prototype.calculatePointByInterval=function(s){var u=C.DateTimeUtils.getWeeksBetween(this.start,s),d=Math.floor(u/this.interval);return(u%this.interval>0||s.getDay()>=this.dayOfWeekInternal)&&d++,this.calcNextPointWithWeekCount(this.start,d*this.interval)},p.prototype.calculateNearestPoint=function(s){var u=this.dayOfWeekInternal-s.getDay();return u>0?C.DateTimeUtils.addDays(new Date(s),u):this.calcNextPointWithWeekCount(s,1)},p.prototype.calcNextPointWithWeekCount=function(s,u){void 0===u&&(u=1);var d=7*u+this.dayOfWeekInternal-s.getDay();return C.DateTimeUtils.addDays(new Date(s),d)},Object.defineProperty(p.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(s){this.dayOfWeekInternal=s},enumerable:!1,configurable:!0}),p}(I.RecurrenceBase);l.Weekly=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Monthly=void 0;var c=o(0),I=o(38),C=o(8),f=o(207),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return c.__extends(s,p),s.prototype.checkDate=function(u){return this._calculateByDayOfWeek?C.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(u,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):C.DateTimeUtils.checkDayOfMonth(this.dayInternal,u)},s.prototype.checkInterval=function(u){return C.DateTimeUtils.getMonthsDifference(this.start,u)%this.interval==0},s.prototype.calculatePointByInterval=function(u){var d=this.start,h=C.DateTimeUtils.getMonthsDifference(d,u),g=Math.floor(h/this.interval)*this.interval,x=new f.MonthInfo(d.getMonth(),d.getFullYear());x.addMonths(g);var b=this.getSpecDayInMonth(x.year,x.month);return C.DateTimeUtils.compareDates(b,u)>=0&&(x.addMonths(this.interval),b=this.getSpecDayInMonth(x.year,x.month)),b},s.prototype.calculateNearestPoint=function(u){var d=u.getMonth(),h=u.getFullYear(),g=this.getSpecDayInMonth(h,d);if(C.DateTimeUtils.compareDates(g,u)>=0){var x=new f.MonthInfo(d,h);x.addMonths(1),g=this.getSpecDayInMonth(x.year,x.month)}return g},Object.defineProperty(s.prototype,"day",{get:function(){return this.dayInternal},set:function(u){this.dayInternal=u},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(u){this.dayOfWeekInternal=u},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(u){this.dayOfWeekOccurrenceInternal=u},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(u){this._calculateByDayOfWeek=u},enumerable:!1,configurable:!0}),s}(I.RecurrenceBase);l.Monthly=a},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.MonthInfo=void 0;var c=o(8),I=function(){function C(f,a){this.month=f,this.year=a}return C.prototype.addMonths=function(f){var a=c.DateTimeUtils.getNextMonth(this.month,f),p=Math.floor(f/12);a<this.month&&++p,this.month=a,this.year+=p},C}();l.MonthInfo=I},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.Yearly=void 0;var c=o(0),I=o(38),C=o(8),f=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.checkDate=function(s){return!!C.DateTimeUtils.checkMonth(this.month,s)&&(this._calculateByDayOfWeek?C.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(s,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):C.DateTimeUtils.checkDayOfMonth(this.dayInternal,s))},p.prototype.checkInterval=function(s){return C.DateTimeUtils.getYearsDifference(this.start,s)%this.interval==0},p.prototype.calculatePointByInterval=function(s){var u=C.DateTimeUtils.getYearsDifference(this.start,s),d=Math.floor(u/this.interval)*this.interval,h=this.start.getFullYear()+d,g=this.getSpecDayInMonth(h,this.monthInternal);return C.DateTimeUtils.compareDates(g,s)>=0&&(g=this.getSpecDayInMonth(h+=this.interval,this.monthInternal)),g},p.prototype.calculateNearestPoint=function(s){var u=s.getFullYear(),d=this.getSpecDayInMonth(u,this.monthInternal);return C.DateTimeUtils.compareDates(d,s)>=0&&(d=this.getSpecDayInMonth(++u,this.monthInternal)),d},Object.defineProperty(p.prototype,"month",{get:function(){return this.monthInternal},set:function(s){this.monthInternal=s},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"day",{get:function(){return this.dayInternal},set:function(s){this.dayInternal=s},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(s){this.dayOfWeekInternal=s},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(s){this.dayOfWeekOccurrenceInternal=s},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(s){this._calculateByDayOfWeek=s},enumerable:!1,configurable:!0}),p}(I.RecurrenceBase);l.Yearly=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DayWorkingTimeInfo=void 0;var c=o(56),I=o(8),C=o(55),f=function(){function a(p,s,u){void 0===p&&(p=0),void 0===s&&(s=!0),void 0===u&&(u=null),this._workingIntervals=new Array,this.dayNumber=p,this.isWorkDay=s,this.addWorkingIntervals(u)}return a.prototype.addWorkingIntervals=function(p){p&&(this._workingIntervals=this._workingIntervals.concat(p.filter(function(s){return!!s})),this.rearrangeWorkingIntervals())},a.prototype.rearrangeWorkingIntervals=function(){for(var p=0;p<this._workingIntervals.length;p++)this.concatWithIntersectedRanges(this._workingIntervals[p]);this.sortIntervals()},a.prototype.concatWithIntersectedRanges=function(p){var s=this;this.getIntersectedIntervals(p).forEach(function(u){p.concatWith(u),s.removeInterval(u)})},a.prototype.getIntersectedIntervals=function(p){return this._workingIntervals.filter(function(s){return s.hasIntersect(p)&&s!==p})},a.prototype.sortIntervals=function(){this._workingIntervals.sort(function(p,s){return I.DateTimeUtils.caclTimeDifference(s.start,p.start)})},a.prototype.removeInterval=function(p){var s=this._workingIntervals.indexOf(p);s>-1&&s<this._workingIntervals.length&&this._workingIntervals.splice(s,1)},a.prototype.clearIntervals=function(){this._workingIntervals.splice(0,this._workingIntervals.length)},Object.defineProperty(a.prototype,"workingIntervals",{get:function(){return this._workingIntervals.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"noWorkingIntervals",{get:function(){var p=new Array;if(this.isWorkDay&&0===this._workingIntervals.length)return p;var s=this._workingIntervals.map(function(x){return x.end});s.splice(0,0,new C.Time);var u=this._workingIntervals.map(function(x){return x.start});u.push(I.DateTimeUtils.getLastTimeOfDay());for(var d=0;d<s.length;d++){var h=s[d],g=u[d];I.DateTimeUtils.areTimesEqual(h,g)||p.push(new c.TimeRange(h,g))}return p},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"isWorkDay",{get:function(){return this._isWorkDay},set:function(p){this._isWorkDay=p,p||this.clearIntervals()},enumerable:!1,configurable:!0}),a}();l.DayWorkingTimeInfo=f},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GanttViewApi=void 0;var c=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,f){this._ganttView.scrollToDateCore(C,f)},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,f){return this._ganttView.calculateAutoViewType(C,f)},I.prototype.zoomIn=function(C){void 0===C&&(C=this.getTaskAreaContainerWidth()/2);var f=this.renderHelper.getTargetDateByPos(C),a=this.settings.viewTypeRange.min;this.currentZoom<this.maxZoom?(this.currentZoom++,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewType>a&&(this.currentZoom=1,this.setViewType(this.settings.viewType-1,!1)),this.scrollToDateCore(f,-C)},I.prototype.zoomOut=function(C){void 0===C&&(C=this.renderHelper.getTaskAreaContainerWidth()/2);var f=this.renderHelper.getTargetDateByPos(C),a=this.settings.viewTypeRange.max;this.currentZoom>1?(this.currentZoom--,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewType<a&&(this.currentZoom=this.maxZoom,this.setViewType(this.settings.viewType+1,!1)),this.scrollToDateCore(f,-C)},I.prototype.setViewType=function(C,f){void 0===f&&(f=!0),null==C&&(C=this.calculateAutoViewType(this.dataRange.start,this.dataRange.end)),this.settings.viewType!==C&&(this.settings.viewType=C,this.updateTickSizeWidth(),this.resetAndUpdate(),f&&this.scrollLeftByViewType(),this.ganttOwner.UpdateGanttViewType&&this.ganttOwner.UpdateGanttViewType(C))},I.prototype.setViewTypeRange=function(C,f){void 0!==C&&(this.settings.viewTypeRange.min=Math.min(C,f)),void 0!==f&&(this.settings.viewTypeRange.max=Math.max(C,f));var a=this.settings.viewTypeRange.min,p=this.settings.viewTypeRange.max,s=this.settings.viewType;a>s?this.setViewType(a):p<s&&this.setViewType(p)},I}();l.GanttViewApi=c},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.TaskAreaEventsListener=void 0;var c=o(5),I=o(1),C=o(3),f=o(9),a=o(66),p=o(212),s=o(13),u=function(){function d(h){this._owner=h}return Object.defineProperty(d.prototype,"taskEditController",{get:function(){var h;return null===(h=this._owner)||void 0===h?void 0:h.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"renderHelper",{get:function(){var h;return null===(h=this._owner)||void 0===h?void 0:h.renderHelper},enumerable:!1,configurable:!0}),d.prototype.getHandler=function(h){return this.handlers[h]},d.prototype.setHandler=function(h,g){this.handlers[h]=g},Object.defineProperty(d.prototype,"handlers",{get:function(){var h;return null!==(h=this._handlers)&&void 0!==h||(this._handlers=this.createTaskAreaEventHandlers()),this._handlers},enumerable:!1,configurable:!0}),d.prototype.createTaskAreaEventHandlers=function(){var h={};return h[s.TaskAreaStateEventNames.TASK_AREA_CLICK]=this.taskAreaClickHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_DBLCLICK]=this.taskAreaDblClickHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_SCROLL]=this.taskAreaScrollHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_START_MOVE]=this.taskAreaStartMoveHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_PROCESS_MOVE]=this.taskAreaProcessMoveHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_END_MOVE]=this.taskAreaEndMoveHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN]=this.taskAreaZoomInHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT]=this.taskAreaZoomOutHandler.bind(this),h[s.TaskAreaStateEventNames.CONTEXTMENU_SHOW]=this.taskAreaContextMenuShowHandler.bind(this),h[s.TaskAreaStateEventNames.CONTEXTMENU_HIDE]=this.taskAreaContextMenuHideHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_SELECTION]=this.taskSelectionHandler.bind(this),h[s.TaskAreaStateEventNames.DEPENDENCY_SELECTION]=this.dependencySelectionHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_EDIT_START]=this.taskEditStartHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_EDIT_END]=this.taskEditEndHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_LEAVE]=this.taskLeaveHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_PROCESS_MOVE]=this.taskProcessMoveHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_END_MOVE]=this.taskEndMoveHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_PROCESS_PROGRESS]=this.taskProcessProgressHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_END_PROGRESS]=this.taskEndProgressHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_PROCESS_START]=this.taskProcessStartHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_CONFIRM_START]=this.taskConfirmStartHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_PROCESS_END]=this.taskProcessEndHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_CONFIRM_END]=this.taskConfirmEndHandler.bind(this),h[s.TaskAreaStateEventNames.GET_DEPENDENCY_POINTS]=this.getDependencyPoints.bind(this),h[s.TaskAreaStateEventNames.DEPENDENCY_START]=this.dependencyStartHandler.bind(this),h[s.TaskAreaStateEventNames.DEPENDENCY_END]=this.dependencyEndHandler.bind(this),h[s.TaskAreaStateEventNames.DEPENDENCY_PROCESS]=this.dependencyProcessHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_KEY_DOWN]=this.onTaskAreaKeyDown.bind(this),h[s.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT]=this.getCoordinatesRefPoint.bind(this),h[s.TaskAreaStateEventNames.STATE_EXIT]=function(){},h},d.prototype.taskAreaClickHandler=function(h){return this._owner.onTaskAreaClick(h.rowIndex,h.triggerEvent)},d.prototype.taskAreaDblClickHandler=function(h){this._owner.onTaskAreaDblClick(h.rowIndex,h.triggerEvent)},d.prototype.taskSelectionHandler=function(h){this._owner.onTaskSelectionChanged(h.rowIndex,h.triggerEvent)},d.prototype.taskAreaContextMenuShowHandler=function(h){this._owner.onTaskAreaContextMenu(h.rowIndex,h.triggerEvent,h.info.type)},d.prototype.taskAreaContextMenuHideHandler=function(){this._owner.hidePopupMenu()},d.prototype.taskAreaScrollHandler=function(h){this._owner.updateView()},d.prototype.dependencySelectionHandler=function(h){var g=h.info.key,x=this.taskEditController.dependencyId;(g!==x||!g&&(0,I.isDefined)(x))&&this._owner.selectDependency(g)},Object.defineProperty(d.prototype,"ganttMovingHelper",{get:function(){var h;return null!==(h=this._ganttMovingHelper)&&void 0!==h||(this._ganttMovingHelper=new p.GanttMovingHelper(this._owner.renderHelper.taskAreaContainer)),this._ganttMovingHelper},enumerable:!1,configurable:!0}),d.prototype.taskAreaStartMoveHandler=function(h){this.ganttMovingHelper.startMoving(h.triggerEvent)},d.prototype.taskAreaProcessMoveHandler=function(h){this.ganttMovingHelper.movingInfo&&(this.ganttMovingHelper.onMouseMove(h.triggerEvent),h.triggerEvent.preventDefault())},d.prototype.taskAreaEndMoveHandler=function(h){this.ganttMovingHelper.onMouseUp(h.triggerEvent)},d.prototype.taskAreaZoomInHandler=function(h){this._owner.zoomIn(h.info.leftPos)},d.prototype.taskAreaZoomOutHandler=function(h){this._owner.zoomOut(h.info.leftPos)},d.prototype.getCoordinatesRefPoint=function(h){var g=C.DomUtils.getAbsolutePositionX(this.renderHelper.taskAreaContainer.getElement()),x=C.DomUtils.getAbsolutePositionY(this.renderHelper.taskAreaContainer.getElement());return new c.Point(g,x)},d.prototype.taskEditStartHandler=function(h){this.taskEditController.show(h.rowIndex),this.taskEditController.showTaskInfo(f.EvtUtils.getEventX(h.triggerEvent))},d.prototype.taskLeaveHandler=function(h){this.taskEditController.cancel()},d.prototype.taskEditEndHandler=function(h){this.taskEditController.endEditing()},d.prototype.taskEndMoveHandler=function(h){this.taskEditController.confirmMove()},d.prototype.taskProcessMoveHandler=function(h){var g;return this.taskEditController.processMove(null!==(g=h.info.delta)&&void 0!==g?g:0)},d.prototype.taskEndProgressHandler=function(h){this.taskEditController.confirmProgress()},d.prototype.taskProcessProgressHandler=function(h){this.taskEditController.processProgress(h.info.position)},d.prototype.taskProcessStartHandler=function(h){this.taskEditController.processStart(h.info.position)},d.prototype.taskConfirmStartHandler=function(h){this.taskEditController.confirmStart()},d.prototype.taskProcessEndHandler=function(h){this.taskEditController.processEnd(h.info.position)},d.prototype.taskConfirmEndHandler=function(h){this.taskEditController.confirmEnd()},d.prototype.getDependencyPoints=function(h){var g={};return g.successorStart=new c.Point(C.DomUtils.getAbsolutePositionX(this.taskEditController.dependencySuccessorStart)+this.taskEditController.dependencySuccessorStart.clientWidth/2,C.DomUtils.getAbsolutePositionY(this.taskEditController.dependencySuccessorStart)+this.taskEditController.dependencySuccessorStart.clientHeight/2),g.successorFinish=new c.Point(C.DomUtils.getAbsolutePositionX(this.taskEditController.dependencySuccessorFinish)+this.taskEditController.dependencySuccessorFinish.clientWidth/2,C.DomUtils.getAbsolutePositionY(this.taskEditController.dependencySuccessorFinish)+this.taskEditController.dependencySuccessorFinish.clientHeight/2),g},d.prototype.dependencyStartHandler=function(h){this.taskEditController.startDependency(h.info.pos)},d.prototype.dependencyEndHandler=function(h){this.taskEditController.endDependency(h.info.type)},d.prototype.dependencyProcessHandler=function(h){this.taskEditController.processDependency(h.info.pos),this._owner.viewModel.tasks.items[h.rowIndex]&&this.taskEditController.showDependencySuccessor(h.rowIndex)},d.prototype.onTaskAreaKeyDown=function(h){var g=h.info.code;g==(a.ModifierKey.Ctrl|a.KeyCode.Key_z)&&this._owner.history.undo(),g==(a.ModifierKey.Ctrl|a.KeyCode.Key_y)&&this._owner.history.redo(),g==a.KeyCode.Delete&&this.taskEditController.deleteSelectedDependency()},d}();l.TaskAreaEventsListener=u},function(he,l,o){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GanttMovingHelper=void 0;var c=o(10),I=o(9),C=function(){function f(a){this.taskAreaContainer=a,this.movingInfo=null}return f.prototype.startMoving=function(a){this.movingInfo=this.calcMovingInfo(a),this.updateGanttAreaCursor(!0)},f.prototype.cancelMoving=function(){this.movingInfo=null},f.prototype.onMouseMove=function(a){this.move(a)},f.prototype.onMouseUp=function(a){this.cancelMoving(),this.updateGanttAreaCursor(!1)},f.prototype.move=function(a){this.updateScrollPosition(a)},f.prototype.updateScrollPosition=function(a){var p=Math.round(I.EvtUtils.getEventX(a)),s=Math.round(I.EvtUtils.getEventY(a)),u=p-this.movingInfo.eventX,d=s-this.movingInfo.eventY,h=u<0?-1:1,g=d<0?-1:1,x=h<0?this.movingInfo.maxRightDelta:this.movingInfo.maxLeftDelta,b=g<0?this.movingInfo.maxBottomDelta:this.movingInfo.maxTopDelta;Math.abs(u)>x&&(u=x*h),Math.abs(d)>b&&(d=b*g);var y=this.movingInfo.scrollLeft-u,E=this.movingInfo.scrollTop-d,S=this.taskAreaContainer;S.scrollLeft!==y&&(S.scrollLeft=y),S.scrollTop!==E&&(S.scrollTop=E)},f.prototype.calcMovingInfo=function(a){var p=this.taskAreaContainer;return{eventX:I.EvtUtils.getEventX(a),eventY:I.EvtUtils.getEventY(a),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}},f.prototype.updateGanttAreaCursor=function(a){var p=c.Browser.IE?"move":"grabbing";this.taskAreaContainer.getElement().style.cursor=a?p:"default"},f}();l.GanttMovingHelper=C}])},1759:(kn,he,l)=>{"use strict";l.d(he,{Ay:()=>ee,Fx:()=>N,Lz:()=>De,RW:()=>W,UX:()=>U,VB:()=>G,_5:()=>S,_h:()=>Y,al:()=>K,i9:()=>Fe,ie:()=>k,p6:()=>T});var o=l(4370),c=l(8692),I=l(5998),C=l(9897),f=l(2721),a=l(9904),p=l(7674),s=l(3007),u=l(3068),d=l(913),h=l(5732);l(9800),l(4270);class b{constructor(fe,_e){this.instance=fe,this.zone=_e,this.subscriptions={},this.events={}}hasEvent(fe){return 0!==this.getEmitter(fe).observers.length}fireEvent(fe,_e){let ie=this.getEmitter(fe);ie.observers.length&&((this.subscriptions[fe]||[]).length===ie.observers.length?ie.next(_e&&_e[0]):this.zone.run(()=>ie.next(_e&&_e[0])))}on(fe,_e){if("string"==typeof fe){let ie=this.subscriptions[fe]||[],de=this.getEmitter(fe).subscribe(_e.bind(this.instance)),le=de.unsubscribe.bind(de);ie.push({handler:_e,unsubscribe:le}),this.subscriptions[fe]=ie}else{let ie=fe;Object.keys(ie).forEach(de=>this.on(de,ie[de]))}}off(fe,_e){let ie=this.subscriptions[fe]||[];_e?ie.some((de,le)=>{if(de.handler===_e)return de.unsubscribe(),ie.splice(le,1),!0}):(ie.forEach(de=>{de.unsubscribe()}),ie.splice(0,ie.length))}dispose(){}addEmitter(fe,_e){this.events[fe]=_e}getEmitter(fe){return this.events[fe]||(this.events[fe]=new o.vpe),this.events[fe]}}class y{constructor(fe,_e){this.zone=fe,this.component=_e,this.lockedValueChangeEvent=!1}fireNgEvent(fe,_e){if(this.lockedValueChangeEvent&&"valueChange"===fe)return;let ie=this.component[fe];ie&&ie.observers.length&&this.zone.run(()=>{ie.next(_e&&_e[0])})}createEmitters(fe){fe.forEach(_e=>{this.component[_e.emit]=new o.vpe})}}function E(ne){return ne.get?ne.get(0):ne}class S{setHost(fe){this.host=fe}setTemplate(fe){this.host.setTemplate(fe)}}const O="dx-template-wrapper";let T=(()=>{class ne{constructor(_e,ie,de,le,pe){this.templateRef=_e,this.viewContainerRef=ie,this.renderer=le,this.zone=pe,de.setTemplate(this)}set dxTemplateOf(_e){this.name=_e}renderTemplate(_e){const ie=this.viewContainerRef.createEmbeddedView(this.templateRef,{$implicit:_e.model,index:_e.index}),de=E(_e.container);return _e.container&&ie.rootNodes.forEach(le=>{this.renderer.appendChild(de,le)}),ie}render(_e){let ie;return ie=this.zone.isStable?this.zone.run(()=>this.renderTemplate(_e)):this.renderTemplate(_e),ie.detectChanges(),ie.rootNodes.forEach(de=>{1===de.nodeType&&C.Z.setClass(de,O,!0),(0,f.J_)(de,"dxremove",({},le)=>{(!le||!le._angularIntegration)&&ie.destroy()})}),ie.rootNodes}}return ne.\u0275fac=function(_e){return new(_e||ne)(o.Y36(o.Rgc),o.Y36(o.s_b),o.Y36(S),o.Y36(o.Qsj),o.Y36(o.R0b))},ne.\u0275dir=o.lG2({type:ne,selectors:[["","dxTemplate",""]],inputs:{dxTemplateOf:"dxTemplateOf"}}),ne})(),k=(()=>{class ne{}return ne.\u0275fac=function(_e){return new(_e||ne)},ne.\u0275mod=o.oAB({type:ne}),ne.\u0275inj=o.cJS({}),ne})();const R="dx-visibility-change-handler";let P=(()=>{class ne{constructor(){this._initialOptions={},this._collectionContainerImpl=new B(this._setOption.bind(this),this._filterItems.bind(this))}_optionChangedHandler(_e){let ie=this._fullOptionPath();if(0===_e.fullName.indexOf(ie)){let le=this[_e.fullName.slice(ie.length)+"Change"];le&&le.next(_e.value)}}_createEventEmitters(_e){_e.forEach(ie=>{this[ie.emit]=new o.vpe})}_getOption(_e){return this.isLinked?this.instance.option(this._fullOptionPath()+_e):this._initialOptions[_e]}_setOption(_e,ie){if(this.isLinked){const de=this._fullOptionPath()+_e;this.instance.option(de,ie)}else this._initialOptions[_e]=ie}_addRemovedOption(_e){this.instance&&this.removedNestedComponents&&this.removedNestedComponents.push(_e)}_deleteRemovedOptions(_e){this.instance&&this.removedNestedComponents&&(this.removedNestedComponents=this.removedNestedComponents.filter(ie=>!ie.startsWith(_e)))}_addRecreatedComponent(){this.instance&&this.recreatedNestedComponents&&this.recreatedNestedComponents.push({getOptionPath:()=>this._getOptionPath()})}_getOptionPath(){return this._hostOptionPath()+this._optionPath}setHost(_e,ie){this._host=_e,this._hostOptionPath=ie,this.optionChangedHandlers.subscribe(this._optionChangedHandler.bind(this))}setChildren(_e,ie){return this.resetOptions(_e),this._collectionContainerImpl.setChildren(_e,ie)}_filterItems(_e){return _e.filter(ie=>ie!==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 ne.\u0275fac=function(_e){return new(_e||ne)},ne.\u0275cmp=o.Xpm({type:ne,selectors:[["ng-component"]],decls:0,vars:0,template:function(_e,ie){},encapsulation:2}),ne})();class B{constructor(fe,_e){this._setOption=fe,this._filterItems=_e,this._activatedQueries={}}setChildren(fe,_e){if(this._filterItems&&(_e=this._filterItems(_e)),_e.length&&(this._activatedQueries[fe]=!0),this._activatedQueries[fe]){let ie=_e.map((de,le)=>(de._index=le,de._value));this._setOption(fe,ie)}}}let W=(()=>{class ne extends P{setHost(_e,ie){super.setHost(_e,ie),this._host[this._optionPath]=this._initialOptions}_fullOptionPath(){return this._getOptionPath()+"."}}return ne.\u0275fac=function(){let fe;return function(ie){return(fe||(fe=o.n5z(ne)))(ie||ne)}}(),ne.\u0275cmp=o.Xpm({type:ne,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(_e,ie){},encapsulation:2}),ne})(),N=(()=>{class ne extends P{_fullOptionPath(){return`${this._getOptionPath()}[${this._index}].`}get _value(){return this._initialOptions}get isLinked(){return void 0!==this._index&&!!this.instance&&this._host.isLinked}}return ne.\u0275fac=function(){let fe;return function(ie){return(fe||(fe=o.n5z(ne)))(ie||ne)}}(),ne.\u0275cmp=o.Xpm({type:ne,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(_e,ie){},encapsulation:2}),ne})();function U(ne,fe,_e,ie){void 0===!ne.template||!fe.nativeElement.hasChildNodes()||![].slice.call(fe.nativeElement.childNodes).filter(pe=>{if(pe.tagName){let Ee=pe.tagName.toLowerCase().substr(0,3);return!("dxi"===Ee||"dxo"===Ee)}return"#comment"!==pe.nodeName&&pe.textContent.replace(/\s/g,"").length}).length||(ne.template={render:pe=>{let Ee=fe.nativeElement;if(C.Z.setClass(Ee,O,!0),pe.container){let ae=E(pe.container),te=ae.contains(fe.nativeElement);_e.appendChild(ae,fe.nativeElement),te||ie.body.contains(ae)&&function(ne){let fe=[];(0,a.Z)(ne).hasClass(R)||fe.push(ne),fe.push.apply(fe,ne.querySelectorAll("."+R));for(let _e=0;_e<fe.length;_e++)(0,f.y_)(fe[_e],"dxshown")}(Ee)}return Ee}})}class K{getHost(){return this._host}setHost(fe,_e){this._host=fe,this._optionPath=_e||(()=>"")}setNestedOption(fe){fe.setHost(this._host,this._optionPath)}}let J,Y=(()=>{class ne{constructor(){this._watchers=[]}getWatchMethod(){return(ie,de,le)=>{let pe=ie();(le=le||{}).skipImmediate||de(pe);let Ee=()=>{let ae=ie();this._isDifferentValues(pe,ae,le.deep)&&(de(ae),pe=ae)};return this._watchers.push(Ee),()=>{let ae=this._watchers.indexOf(Ee);-1!==ae&&this._watchers.splice(ae,1)}}}_isDifferentValues(_e,ie,de){let le=this._toComparable(ie),pe=this._toComparable(_e);return de&&le instanceof Object&&pe instanceof Object?this._checkObjectsFields(ie,_e):le!==pe}_toComparable(_e){return _e instanceof Date?_e.getTime():_e}_checkObjectsFields(_e,ie){for(let de in _e){let le=this._toComparable(_e[de]),pe=this._toComparable(ie[de]),Ee=!1;if("object"==typeof le&&"object"==typeof pe&&(Ee=(0,p.bY)(le,pe)),le!==pe&&!Ee)return!0}}checkWatchers(){for(let _e of this._watchers)_e()}}return ne.\u0275fac=function(_e){return new(_e||ne)},ne.\u0275prov=o.Yz7({token:ne,factory:ne.\u0275fac}),ne})();const j=()=>(J||(J=(0,I.Cb)("DX_isPlatformServer")),J);let ee=(()=>{class ne{constructor(_e,ie,de,le,pe,Ee){this.element=_e,this.ngZone=ie,this.watcherHelper=le,this.transferState=pe,this.platformId=Ee,this._initialOptions={},this._optionsToUpdate={},this.optionChangedHandlers=new o.vpe,this.isLinked=!0,this.changedOptions={},this.removedNestedComponents=[],this.widgetUpdateLocked=!1,this.templateUpdateRequired=!1,this.templates=[],de.setHost(this),this._collectionContainerImpl=new B(this._setOption.bind(this)),this.eventHelper=new y(ie,this)}_updateTemplates(){if(this.templates.length&&this.templateUpdateRequired){let _e={};this.templates.forEach(ie=>{_e[ie.name]=ie}),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 ie=_e.name===_e.fullName?_e.value:_e.component.option(_e.name);this.eventHelper.fireNgEvent(_e.name+"Change",[ie]),this.optionChangedHandlers.emit(_e)})}_initOptions(){this._initialOptions.integrationOptions.watchMethod=this.watcherHelper.getWatchMethod()}_initPlatform(){this.transferState.hasKey(j())?this._initialOptions.integrationOptions.renderedOnServer=this.transferState.get(j(),null):(0,c.PM)(this.platformId)&&this.transferState.set(j(),!0)}_createEventEmitters(_e){const ie=this.ngZone;this.eventHelper.createEmitters(_e),this._initialOptions.eventsStrategy=de=>{let le=new b(de,ie);return _e.filter(pe=>pe.subscribe).forEach(pe=>{le.addEmitter(pe.subscribe,this[pe.emit])}),le},this._initialOptions.nestedComponentOptions=function(de){return{eventsStrategy:le=>new b(le,ie),nestedComponentOptions:de.option("nestedComponentOptions")}}}_shouldOptionChange(_e,ie){if(this.changedOptions.hasOwnProperty(_e)){const de=this.changedOptions[_e];return delete this.changedOptions[_e],ie!==de}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,ie){this.lockWidgetUpdate(),this._shouldOptionChange(_e,ie)&&(this.instance?this.instance.option(_e,ie):this._initialOptions[_e]=ie)}_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();(0,f.y_)(_e,"dxremove",{_angularIntegration:!0}),this.instance.dispose(),C.Z.removeElement(_e)}}ngOnChanges(_e){for(let ie in _e)_e[ie].currentValue!==this[ie]&&(this._optionsToUpdate[ie]=_e[ie].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(ie=>!(ie&&!this.isRecreated(ie)&&_e)||ie.startsWith(_e)).forEach(ie=>{this.instance.resetOption(ie)}),this.removedNestedComponents=[],this.recreatedNestedComponents=[])}isRecreated(_e){return this.recreatedNestedComponents&&this.recreatedNestedComponents.some(ie=>ie.getOptionPath()===_e)}setTemplate(_e){this.templates.push(_e),this.templateUpdateRequired=!0}setChildren(_e,ie){return this.resetOptions(_e),this._collectionContainerImpl.setChildren(_e,ie)}}return ne.\u0275fac=function(_e){return new(_e||ne)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(S),o.Y36(Y),o.Y36(I.ki),o.Y36(o.Lbi))},ne.\u0275cmp=o.Xpm({type:ne,selectors:[["ng-component"]],features:[o.TTD],decls:0,vars:0,template:function(_e,ie){},encapsulation:2}),ne})(),G=(()=>{class ne extends ee{createInstance(_e){this._createWidget(_e)}ngOnInit(){}ngAfterViewInit(){this._createWidget(this.element.nativeElement),this.instance.endUpdate()}}return ne.\u0275fac=function(){let fe;return function(ie){return(fe||(fe=o.n5z(ne)))(ie||ne)}}(),ne.\u0275cmp=o.Xpm({type:ne,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(_e,ie){},encapsulation:2}),ne})();const q=["mousemove","mouseover","mouseout"],Z=["mouseup","click","mousedown","transitionend","wheel"];let X,M=[],se=function(ne){X||(X=this.callBase.bind(this)),M.push(ne)};u.Z.inject({add:function(ne){return se.call(this,ne)}});let ge=(ne,fe,_e)=>{Number(o.q4F.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"),C.Z.inject({_document:ne,listen:function(...de){const le=de[1];return-1!==q.indexOf(le)?fe.runOutsideAngular(()=>this.callBase.apply(this,de)):fe.isStable&&-1!==Z.indexOf(le)?fe.run(()=>this.callBase.apply(this,de)):this.callBase.apply(this,de)},isElementNode:function(de){return de&&1===de.nodeType},isTextNode:function(de){return de&&3===de.nodeType},isDocument:function(de){return de&&9===de.nodeType}}),s.Z.inject({getXhr:function(){if(!_e)return this.callBase.apply(this);let de=_e.build();return"withCredentials"in de||(de.withCredentials=!1),de}});const ie=()=>{fe.run(()=>{d.Z.set({}),M.forEach(de=>X.call(null,de)),M=[],u.Z.fire()})};ie(),se=de=>fe.run(()=>de()),ge=ie},De=(()=>{class ne{constructor(_e,ie,de){ge(_e,ie,de)}}return ne.\u0275fac=function(_e){return new(_e||ne)(o.LFG(c.K0),o.LFG(o.R0b),o.LFG(h.rs,8))},ne.\u0275mod=o.oAB({type:ne}),ne.\u0275inj=o.cJS({}),ne})(),Fe=(()=>{class ne{constructor(_e){this._differs=_e,this._propertyDiffers={}}setHost(_e){this._host=_e}setup(_e,ie){_e in ie&&this.setupSingle(_e,ie[_e].currentValue)}setupSingle(_e,ie){if(ie&&Array.isArray(ie)){if(!this._propertyDiffers[_e])try{return this._propertyDiffers[_e]=this._differs.find(ie).create(null),!0}catch{}}else delete this._propertyDiffers[_e];return!1}getChanges(_e,ie){if(this._propertyDiffers[_e])return this._propertyDiffers[_e].diff(ie)}checkChangedOptions(_e,ie){return this._host.changedOptions[_e]===ie}doCheck(_e){if(this._propertyDiffers[_e]){let ie=this._host[_e],de=this.checkChangedOptions(_e,ie);this.getChanges(_e,ie)&&this._host.instance&&!de&&(this._host.lockWidgetUpdate(),this._host.instance.option(_e,ie))}}}return ne.\u0275fac=function(_e){return new(_e||ne)(o.LFG(o.ZZ4))},ne.\u0275prov=o.Yz7({token:ne,factory:ne.\u0275fac}),ne})()},32:(kn,he,l)=>{"use strict";l.d(he,{n:()=>a,o:()=>p});var o=l(5998),c=l(4370),I=l(6530),C=l(1759),f=l(8208);let a=(()=>{class s extends C.Ay{constructor(d,h,g,x,b,y,E,S){super(d,h,g,x,E,S),this._watcherHelper=x,this._idh=b,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),y.setHost(this)}get cancelText(){return this._getOption("cancelText")}set cancelText(d){this._setOption("cancelText",d)}get dataSource(){return this._getOption("dataSource")}set dataSource(d){this._setOption("dataSource",d)}get disabled(){return this._getOption("disabled")}set disabled(d){this._setOption("disabled",d)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(d){this._setOption("elementAttr",d)}get height(){return this._getOption("height")}set height(d){this._setOption("height",d)}get hint(){return this._getOption("hint")}set hint(d){this._setOption("hint",d)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(d){this._setOption("hoverStateEnabled",d)}get itemHoldTimeout(){return this._getOption("itemHoldTimeout")}set itemHoldTimeout(d){this._setOption("itemHoldTimeout",d)}get items(){return this._getOption("items")}set items(d){this._setOption("items",d)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(d){this._setOption("itemTemplate",d)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(d){this._setOption("rtlEnabled",d)}get showCancelButton(){return this._getOption("showCancelButton")}set showCancelButton(d){this._setOption("showCancelButton",d)}get showTitle(){return this._getOption("showTitle")}set showTitle(d){this._setOption("showTitle",d)}get target(){return this._getOption("target")}set target(d){this._setOption("target",d)}get title(){return this._getOption("title")}set title(d){this._setOption("title",d)}get usePopover(){return this._getOption("usePopover")}set usePopover(d){this._setOption("usePopover",d)}get visible(){return this._getOption("visible")}set visible(d){this._setOption("visible",d)}get width(){return this._getOption("width")}set width(d){this._setOption("width",d)}get itemsChildren(){return this._getOption("items")}set itemsChildren(d){this.setChildren("items",d)}_createInstance(d,h){return new I.Z(d,h)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(d){super.ngOnChanges(d),this.setupChanges("dataSource",d),this.setupChanges("items",d)}setupChanges(d,h){d in this._optionsToUpdate||this._idh.setup(d,h)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(d,h){let g=this._idh.setupSingle(d,h),x=null!==this._idh.getChanges(d,h);(g||x)&&super._setOption(d,h)}}return s.\u0275fac=function(d){return new(d||s)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(C._5),c.Y36(C._h),c.Y36(C.i9),c.Y36(C.al),c.Y36(o.ki),c.Y36(c.Lbi))},s.\u0275cmp=c.Xpm({type:s,selectors:[["dx-action-sheet"]],contentQueries:function(d,h,g){if(1&d&&c.Suo(g,f.ZT3,4),2&d){let x;c.iGM(x=c.CRH())&&(h.itemsChildren=x)}},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:[c._Bn([C._5,C._h,C.al,C.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(d,h){},encapsulation:2}),s})(),p=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[[f.Q8p,C.Lz,C.ie,o.Cu],f.Q8p,C.ie]}),s})()},39:(kn,he,l)=>{"use strict";l.d(he,{K:()=>a,e:()=>p});var o=l(5998),c=l(4370),I=l(219),C=l(1759);const f=["*"];let a=(()=>{class s extends C.Ay{constructor(d,h,g,x,b,y,E){super(d,h,g,x,y,E),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"}]),b.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(d){this._setOption("accessKey",d)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(d){this._setOption("activeStateEnabled",d)}get disabled(){return this._getOption("disabled")}set disabled(d){this._setOption("disabled",d)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(d){this._setOption("elementAttr",d)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(d){this._setOption("focusStateEnabled",d)}get height(){return this._getOption("height")}set height(d){this._setOption("height",d)}get hint(){return this._getOption("hint")}set hint(d){this._setOption("hint",d)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(d){this._setOption("hoverStateEnabled",d)}get icon(){return this._getOption("icon")}set icon(d){this._setOption("icon",d)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(d){this._setOption("rtlEnabled",d)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(d){this._setOption("stylingMode",d)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(d){this._setOption("tabIndex",d)}get template(){return this._getOption("template")}set template(d){this._setOption("template",d)}get text(){return this._getOption("text")}set text(d){this._setOption("text",d)}get type(){return this._getOption("type")}set type(d){this._setOption("type",d)}get useSubmitBehavior(){return this._getOption("useSubmitBehavior")}set useSubmitBehavior(d){this._setOption("useSubmitBehavior",d)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(d){this._setOption("validationGroup",d)}get visible(){return this._getOption("visible")}set visible(d){this._setOption("visible",d)}get width(){return this._getOption("width")}set width(d){this._setOption("width",d)}_createInstance(d,h){return new I.Z(d,h)}ngOnDestroy(){this._destroyWidget()}}return s.\u0275fac=function(d){return new(d||s)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(C._5),c.Y36(C._h),c.Y36(C.al),c.Y36(o.ki),c.Y36(c.Lbi))},s.\u0275cmp=c.Xpm({type:s,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:[c._Bn([C._5,C._h,C.al]),c.qOj],ngContentSelectors:f,decls:1,vars:0,template:function(d,h){1&d&&(c.F$t(),c.Hsn(0))},encapsulation:2}),s})(),p=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[[C.Lz,C.ie,o.Cu],C.ie]}),s})()},6193:(kn,he,l)=>{"use strict";l.d(he,{W:()=>s,v:()=>p});var o=l(5998),c=l(4370),I=l(344),C=l(8942),f=l(1759);const a={provide:C.JU,useExisting:(0,c.Gpc)(()=>p),multi:!0};let p=(()=>{class u extends f.Ay{constructor(h,g,x,b,y,E,S,O){super(h,g,x,b,S,O),this._watcherHelper=b,this._idh=y,this.touched=w=>{},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),E.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(h){this._setOption("accessKey",h)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(h){this._setOption("activeStateEnabled",h)}get disabled(){return this._getOption("disabled")}set disabled(h){this._setOption("disabled",h)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(h){this._setOption("elementAttr",h)}get enableThreeStateBehavior(){return this._getOption("enableThreeStateBehavior")}set enableThreeStateBehavior(h){this._setOption("enableThreeStateBehavior",h)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(h){this._setOption("focusStateEnabled",h)}get height(){return this._getOption("height")}set height(h){this._setOption("height",h)}get hint(){return this._getOption("hint")}set hint(h){this._setOption("hint",h)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(h){this._setOption("hoverStateEnabled",h)}get iconSize(){return this._getOption("iconSize")}set iconSize(h){this._setOption("iconSize",h)}get isValid(){return this._getOption("isValid")}set isValid(h){this._setOption("isValid",h)}get name(){return this._getOption("name")}set name(h){this._setOption("name",h)}get readOnly(){return this._getOption("readOnly")}set readOnly(h){this._setOption("readOnly",h)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(h){this._setOption("rtlEnabled",h)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(h){this._setOption("tabIndex",h)}get text(){return this._getOption("text")}set text(h){this._setOption("text",h)}get validationError(){return this._getOption("validationError")}set validationError(h){this._setOption("validationError",h)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(h){this._setOption("validationErrors",h)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(h){this._setOption("validationMessageMode",h)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(h){this._setOption("validationMessagePosition",h)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(h){this._setOption("validationStatus",h)}get value(){return this._getOption("value")}set value(h){this._setOption("value",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get width(){return this._getOption("width")}set width(h){this._setOption("width",h)}change(h){}_createInstance(h,g){return new I.Z(h,g)}writeValue(h){this.eventHelper.lockedValueChangeEvent=!0,this.value=h,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(h){this.disabled=h}registerOnChange(h){this.change=h}registerOnTouched(h){this.touched=h}_createWidget(h){super._createWidget(h),this.instance.on("focusOut",g=>{this.eventHelper.fireNgEvent("onBlur",[g])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(h){super.ngOnChanges(h),this.setupChanges("validationErrors",h)}setupChanges(h,g){h in this._optionsToUpdate||this._idh.setup(h,g)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(h,g){let x=this._idh.setupSingle(h,g),b=null!==this._idh.getChanges(h,g);(x||b)&&super._setOption(h,g)}}return u.\u0275fac=function(h){return new(h||u)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(f._5),c.Y36(f._h),c.Y36(f.i9),c.Y36(f.al),c.Y36(o.ki),c.Y36(c.Lbi))},u.\u0275cmp=c.Xpm({type:u,selectors:[["dx-check-box"]],hostBindings:function(h,g){1&h&&c.NdJ("valueChange",function(b){return g.change(b)})("onBlur",function(b){return g.touched(b)})},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:[c._Bn([f._5,f._h,a,f.al,f.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(h,g){},encapsulation:2}),u})(),s=(()=>{class u{}return u.\u0275fac=function(h){return new(h||u)},u.\u0275mod=c.oAB({type:u}),u.\u0275inj=c.cJS({imports:[[f.Lz,f.ie,o.Cu],f.ie]}),u})()},2625:(kn,he,l)=>{"use strict";l.d(he,{e:()=>p,x:()=>s});var o=l(5998),c=l(4370);const C=l(1378).Z;var f=l(1759),a=l(8208);let p=(()=>{class u extends f.Ay{constructor(h,g,x,b,y,E,S,O){super(h,g,x,b,S,O),this._watcherHelper=b,this._idh=y,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),E.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(h){this._setOption("accessKey",h)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(h){this._setOption("activeStateEnabled",h)}get allowColumnReordering(){return this._getOption("allowColumnReordering")}set allowColumnReordering(h){this._setOption("allowColumnReordering",h)}get allowColumnResizing(){return this._getOption("allowColumnResizing")}set allowColumnResizing(h){this._setOption("allowColumnResizing",h)}get autoNavigateToFocusedRow(){return this._getOption("autoNavigateToFocusedRow")}set autoNavigateToFocusedRow(h){this._setOption("autoNavigateToFocusedRow",h)}get cacheEnabled(){return this._getOption("cacheEnabled")}set cacheEnabled(h){this._setOption("cacheEnabled",h)}get cellHintEnabled(){return this._getOption("cellHintEnabled")}set cellHintEnabled(h){this._setOption("cellHintEnabled",h)}get columnAutoWidth(){return this._getOption("columnAutoWidth")}set columnAutoWidth(h){this._setOption("columnAutoWidth",h)}get columnChooser(){return this._getOption("columnChooser")}set columnChooser(h){this._setOption("columnChooser",h)}get columnFixing(){return this._getOption("columnFixing")}set columnFixing(h){this._setOption("columnFixing",h)}get columnHidingEnabled(){return this._getOption("columnHidingEnabled")}set columnHidingEnabled(h){this._setOption("columnHidingEnabled",h)}get columnMinWidth(){return this._getOption("columnMinWidth")}set columnMinWidth(h){this._setOption("columnMinWidth",h)}get columnResizingMode(){return this._getOption("columnResizingMode")}set columnResizingMode(h){this._setOption("columnResizingMode",h)}get columns(){return this._getOption("columns")}set columns(h){this._setOption("columns",h)}get columnWidth(){return this._getOption("columnWidth")}set columnWidth(h){this._setOption("columnWidth",h)}get customizeColumns(){return this._getOption("customizeColumns")}set customizeColumns(h){this._setOption("customizeColumns",h)}get dataRowTemplate(){return this._getOption("dataRowTemplate")}set dataRowTemplate(h){this._setOption("dataRowTemplate",h)}get dataSource(){return this._getOption("dataSource")}set dataSource(h){this._setOption("dataSource",h)}get dateSerializationFormat(){return this._getOption("dateSerializationFormat")}set dateSerializationFormat(h){this._setOption("dateSerializationFormat",h)}get disabled(){return this._getOption("disabled")}set disabled(h){this._setOption("disabled",h)}get editing(){return this._getOption("editing")}set editing(h){this._setOption("editing",h)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(h){this._setOption("elementAttr",h)}get errorRowEnabled(){return this._getOption("errorRowEnabled")}set errorRowEnabled(h){this._setOption("errorRowEnabled",h)}get export(){return this._getOption("export")}set export(h){this._setOption("export",h)}get filterBuilder(){return this._getOption("filterBuilder")}set filterBuilder(h){this._setOption("filterBuilder",h)}get filterBuilderPopup(){return this._getOption("filterBuilderPopup")}set filterBuilderPopup(h){this._setOption("filterBuilderPopup",h)}get filterPanel(){return this._getOption("filterPanel")}set filterPanel(h){this._setOption("filterPanel",h)}get filterRow(){return this._getOption("filterRow")}set filterRow(h){this._setOption("filterRow",h)}get filterSyncEnabled(){return this._getOption("filterSyncEnabled")}set filterSyncEnabled(h){this._setOption("filterSyncEnabled",h)}get filterValue(){return this._getOption("filterValue")}set filterValue(h){this._setOption("filterValue",h)}get focusedColumnIndex(){return this._getOption("focusedColumnIndex")}set focusedColumnIndex(h){this._setOption("focusedColumnIndex",h)}get focusedRowEnabled(){return this._getOption("focusedRowEnabled")}set focusedRowEnabled(h){this._setOption("focusedRowEnabled",h)}get focusedRowIndex(){return this._getOption("focusedRowIndex")}set focusedRowIndex(h){this._setOption("focusedRowIndex",h)}get focusedRowKey(){return this._getOption("focusedRowKey")}set focusedRowKey(h){this._setOption("focusedRowKey",h)}get grouping(){return this._getOption("grouping")}set grouping(h){this._setOption("grouping",h)}get groupPanel(){return this._getOption("groupPanel")}set groupPanel(h){this._setOption("groupPanel",h)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(h){this._setOption("headerFilter",h)}get height(){return this._getOption("height")}set height(h){this._setOption("height",h)}get highlightChanges(){return this._getOption("highlightChanges")}set highlightChanges(h){this._setOption("highlightChanges",h)}get hint(){return this._getOption("hint")}set hint(h){this._setOption("hint",h)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(h){this._setOption("hoverStateEnabled",h)}get keyboardNavigation(){return this._getOption("keyboardNavigation")}set keyboardNavigation(h){this._setOption("keyboardNavigation",h)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(h){this._setOption("keyExpr",h)}get loadPanel(){return this._getOption("loadPanel")}set loadPanel(h){this._setOption("loadPanel",h)}get masterDetail(){return this._getOption("masterDetail")}set masterDetail(h){this._setOption("masterDetail",h)}get noDataText(){return this._getOption("noDataText")}set noDataText(h){this._setOption("noDataText",h)}get pager(){return this._getOption("pager")}set pager(h){this._setOption("pager",h)}get paging(){return this._getOption("paging")}set paging(h){this._setOption("paging",h)}get remoteOperations(){return this._getOption("remoteOperations")}set remoteOperations(h){this._setOption("remoteOperations",h)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(h){this._setOption("renderAsync",h)}get repaintChangesOnly(){return this._getOption("repaintChangesOnly")}set repaintChangesOnly(h){this._setOption("repaintChangesOnly",h)}get rowAlternationEnabled(){return this._getOption("rowAlternationEnabled")}set rowAlternationEnabled(h){this._setOption("rowAlternationEnabled",h)}get rowDragging(){return this._getOption("rowDragging")}set rowDragging(h){this._setOption("rowDragging",h)}get rowTemplate(){return this._getOption("rowTemplate")}set rowTemplate(h){this._setOption("rowTemplate",h)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(h){this._setOption("rtlEnabled",h)}get scrolling(){return this._getOption("scrolling")}set scrolling(h){this._setOption("scrolling",h)}get searchPanel(){return this._getOption("searchPanel")}set searchPanel(h){this._setOption("searchPanel",h)}get selectedRowKeys(){return this._getOption("selectedRowKeys")}set selectedRowKeys(h){this._setOption("selectedRowKeys",h)}get selection(){return this._getOption("selection")}set selection(h){this._setOption("selection",h)}get selectionFilter(){return this._getOption("selectionFilter")}set selectionFilter(h){this._setOption("selectionFilter",h)}get showBorders(){return this._getOption("showBorders")}set showBorders(h){this._setOption("showBorders",h)}get showColumnHeaders(){return this._getOption("showColumnHeaders")}set showColumnHeaders(h){this._setOption("showColumnHeaders",h)}get showColumnLines(){return this._getOption("showColumnLines")}set showColumnLines(h){this._setOption("showColumnLines",h)}get showRowLines(){return this._getOption("showRowLines")}set showRowLines(h){this._setOption("showRowLines",h)}get sortByGroupSummaryInfo(){return this._getOption("sortByGroupSummaryInfo")}set sortByGroupSummaryInfo(h){this._setOption("sortByGroupSummaryInfo",h)}get sorting(){return this._getOption("sorting")}set sorting(h){this._setOption("sorting",h)}get stateStoring(){return this._getOption("stateStoring")}set stateStoring(h){this._setOption("stateStoring",h)}get summary(){return this._getOption("summary")}set summary(h){this._setOption("summary",h)}get syncLookupFilterValues(){return this._getOption("syncLookupFilterValues")}set syncLookupFilterValues(h){this._setOption("syncLookupFilterValues",h)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(h){this._setOption("tabIndex",h)}get toolbar(){return this._getOption("toolbar")}set toolbar(h){this._setOption("toolbar",h)}get twoWayBindingEnabled(){return this._getOption("twoWayBindingEnabled")}set twoWayBindingEnabled(h){this._setOption("twoWayBindingEnabled",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get width(){return this._getOption("width")}set width(h){this._setOption("width",h)}get wordWrapEnabled(){return this._getOption("wordWrapEnabled")}set wordWrapEnabled(h){this._setOption("wordWrapEnabled",h)}get columnsChildren(){return this._getOption("columns")}set columnsChildren(h){this.setChildren("columns",h)}get sortByGroupSummaryInfoChildren(){return this._getOption("sortByGroupSummaryInfo")}set sortByGroupSummaryInfoChildren(h){this.setChildren("sortByGroupSummaryInfo",h)}_createInstance(h,g){return new C(h,g)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(h){super.ngOnChanges(h),this.setupChanges("columns",h),this.setupChanges("dataSource",h),this.setupChanges("keyExpr",h),this.setupChanges("selectedRowKeys",h),this.setupChanges("sortByGroupSummaryInfo",h)}setupChanges(h,g){h in this._optionsToUpdate||this._idh.setup(h,g)}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(h,g){let x=this._idh.setupSingle(h,g),b=null!==this._idh.getChanges(h,g);(x||b)&&super._setOption(h,g)}}return u.\u0275fac=function(h){return new(h||u)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(f._5),c.Y36(f._h),c.Y36(f.i9),c.Y36(f.al),c.Y36(o.ki),c.Y36(c.Lbi))},u.\u0275cmp=c.Xpm({type:u,selectors:[["dx-data-grid"]],contentQueries:function(h,g,x){if(1&h&&(c.Suo(x,a.qvW,4),c.Suo(x,a.KkC,4)),2&h){let b;c.iGM(b=c.CRH())&&(g.columnsChildren=b),c.iGM(b=c.CRH())&&(g.sortByGroupSummaryInfoChildren=b)}},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:[c._Bn([f._5,f._h,f.al,f.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(h,g){},encapsulation:2}),u})(),s=(()=>{class u{}return u.\u0275fac=function(h){return new(h||u)},u.\u0275mod=c.oAB({type:u}),u.\u0275inj=c.cJS({imports:[[a.Uz5,a.LNK,a.mtS,a.tRk,a.idP,a.HaS,a.CxW,a.FZZ,a.Inm,a.e1H,a.$D5,a.SCM,a.DTR,a.ZCX,a.Oll,a.Q8p,a.Jiy,a._9O,a.kSd,a.fOF,a.IOm,a.kOw,a.weU,a.D_l,a.JxK,a.zZW,a.ynY,a.lgR,a.sni,a.waX,a.pxS,a.pGy,a.lj9,a.SH1,a.FJZ,a.RbS,a.$wd,a.xHg,a.p6x,a.vLN,a.rH1,a.lUW,a.kIp,a.yFA,a.$9q,a.nD3,a.Pj6,a.Upd,a.WSE,a.LHj,a._PP,a.ywL,a.WyY,a.$YR,a.kEo,a.aLr,a.uKt,a.YOZ,a.Axk,a.Zjs,a.GaT,a.zLN,a.azD,f.Lz,f.ie,o.Cu],a.Uz5,a.LNK,a.mtS,a.tRk,a.idP,a.HaS,a.CxW,a.FZZ,a.Inm,a.e1H,a.$D5,a.SCM,a.DTR,a.ZCX,a.Oll,a.Q8p,a.Jiy,a._9O,a.kSd,a.fOF,a.IOm,a.kOw,a.weU,a.D_l,a.JxK,a.zZW,a.ynY,a.lgR,a.sni,a.waX,a.pxS,a.pGy,a.lj9,a.SH1,a.FJZ,a.RbS,a.$wd,a.xHg,a.p6x,a.vLN,a.rH1,a.lUW,a.kIp,a.yFA,a.$9q,a.nD3,a.Pj6,a.Upd,a.WSE,a.LHj,a._PP,a.ywL,a.WyY,a.$YR,a.kEo,a.aLr,a.uKt,a.YOZ,a.Axk,a.Zjs,a.GaT,a.zLN,a.azD,f.ie]}),u})()},132:(kn,he,l)=>{"use strict";l.d(he,{M:()=>s,k:()=>u});var o=l(5998),c=l(4370),I=l(1884),C=l(8942),f=l(1759),a=l(8208);const p={provide:C.JU,useExisting:(0,c.Gpc)(()=>s),multi:!0};let s=(()=>{class d extends f.Ay{constructor(g,x,b,y,E,S,O,w){super(g,x,b,y,O,w),this._watcherHelper=y,this._idh=E,this.touched=T=>{},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(g){this._setOption("acceptCustomValue",g)}get accessKey(){return this._getOption("accessKey")}set accessKey(g){this._setOption("accessKey",g)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(g){this._setOption("activeStateEnabled",g)}get adaptivityEnabled(){return this._getOption("adaptivityEnabled")}set adaptivityEnabled(g){this._setOption("adaptivityEnabled",g)}get applyButtonText(){return this._getOption("applyButtonText")}set applyButtonText(g){this._setOption("applyButtonText",g)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(g){this._setOption("applyValueMode",g)}get buttons(){return this._getOption("buttons")}set buttons(g){this._setOption("buttons",g)}get calendarOptions(){return this._getOption("calendarOptions")}set calendarOptions(g){this._setOption("calendarOptions",g)}get cancelButtonText(){return this._getOption("cancelButtonText")}set cancelButtonText(g){this._setOption("cancelButtonText",g)}get dateOutOfRangeMessage(){return this._getOption("dateOutOfRangeMessage")}set dateOutOfRangeMessage(g){this._setOption("dateOutOfRangeMessage",g)}get dateSerializationFormat(){return this._getOption("dateSerializationFormat")}set dateSerializationFormat(g){this._setOption("dateSerializationFormat",g)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(g){this._setOption("deferRendering",g)}get disabled(){return this._getOption("disabled")}set disabled(g){this._setOption("disabled",g)}get disabledDates(){return this._getOption("disabledDates")}set disabledDates(g){this._setOption("disabledDates",g)}get displayFormat(){return this._getOption("displayFormat")}set displayFormat(g){this._setOption("displayFormat",g)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(g){this._setOption("dropDownButtonTemplate",g)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(g){this._setOption("dropDownOptions",g)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(g){this._setOption("elementAttr",g)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(g){this._setOption("focusStateEnabled",g)}get height(){return this._getOption("height")}set height(g){this._setOption("height",g)}get hint(){return this._getOption("hint")}set hint(g){this._setOption("hint",g)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(g){this._setOption("hoverStateEnabled",g)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(g){this._setOption("inputAttr",g)}get interval(){return this._getOption("interval")}set interval(g){this._setOption("interval",g)}get invalidDateMessage(){return this._getOption("invalidDateMessage")}set invalidDateMessage(g){this._setOption("invalidDateMessage",g)}get isValid(){return this._getOption("isValid")}set isValid(g){this._setOption("isValid",g)}get label(){return this._getOption("label")}set label(g){this._setOption("label",g)}get labelMode(){return this._getOption("labelMode")}set labelMode(g){this._setOption("labelMode",g)}get max(){return this._getOption("max")}set max(g){this._setOption("max",g)}get maxLength(){return this._getOption("maxLength")}set maxLength(g){this._setOption("maxLength",g)}get min(){return this._getOption("min")}set min(g){this._setOption("min",g)}get name(){return this._getOption("name")}set name(g){this._setOption("name",g)}get opened(){return this._getOption("opened")}set opened(g){this._setOption("opened",g)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(g){this._setOption("openOnFieldClick",g)}get pickerType(){return this._getOption("pickerType")}set pickerType(g){this._setOption("pickerType",g)}get placeholder(){return this._getOption("placeholder")}set placeholder(g){this._setOption("placeholder",g)}get readOnly(){return this._getOption("readOnly")}set readOnly(g){this._setOption("readOnly",g)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(g){this._setOption("rtlEnabled",g)}get showAnalogClock(){return this._getOption("showAnalogClock")}set showAnalogClock(g){this._setOption("showAnalogClock",g)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(g){this._setOption("showClearButton",g)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(g){this._setOption("showDropDownButton",g)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(g){this._setOption("spellcheck",g)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(g){this._setOption("stylingMode",g)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(g){this._setOption("tabIndex",g)}get text(){return this._getOption("text")}set text(g){this._setOption("text",g)}get todayButtonText(){return this._getOption("todayButtonText")}set todayButtonText(g){this._setOption("todayButtonText",g)}get type(){return this._getOption("type")}set type(g){this._setOption("type",g)}get useMaskBehavior(){return this._getOption("useMaskBehavior")}set useMaskBehavior(g){this._setOption("useMaskBehavior",g)}get validationError(){return this._getOption("validationError")}set validationError(g){this._setOption("validationError",g)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(g){this._setOption("validationErrors",g)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(g){this._setOption("validationMessageMode",g)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(g){this._setOption("validationMessagePosition",g)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(g){this._setOption("validationStatus",g)}get value(){return this._getOption("value")}set value(g){this._setOption("value",g)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(g){this._setOption("valueChangeEvent",g)}get visible(){return this._getOption("visible")}set visible(g){this._setOption("visible",g)}get width(){return this._getOption("width")}set width(g){this._setOption("width",g)}change(g){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(g){this.setChildren("buttons",g)}_createInstance(g,x){return new I.Z(g,x)}writeValue(g){this.eventHelper.lockedValueChangeEvent=!0,this.value=g,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(g){this.disabled=g}registerOnChange(g){this.change=g}registerOnTouched(g){this.touched=g}_createWidget(g){super._createWidget(g),this.instance.on("focusOut",x=>{this.eventHelper.fireNgEvent("onBlur",[x])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(g){super.ngOnChanges(g),this.setupChanges("buttons",g),this.setupChanges("disabledDates",g),this.setupChanges("validationErrors",g)}setupChanges(g,x){g in this._optionsToUpdate||this._idh.setup(g,x)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("disabledDates"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(g,x){let b=this._idh.setupSingle(g,x),y=null!==this._idh.getChanges(g,x);(b||y)&&super._setOption(g,x)}}return d.\u0275fac=function(g){return new(g||d)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(f._5),c.Y36(f._h),c.Y36(f.i9),c.Y36(f.al),c.Y36(o.ki),c.Y36(c.Lbi))},d.\u0275cmp=c.Xpm({type:d,selectors:[["dx-date-box"]],contentQueries:function(g,x,b){if(1&g&&c.Suo(b,a.k4o,4),2&g){let y;c.iGM(y=c.CRH())&&(x.buttonsChildren=y)}},hostBindings:function(g,x){1&g&&c.NdJ("valueChange",function(y){return x.change(y)})("onBlur",function(y){return x.touched(y)})},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:[c._Bn([f._5,f._h,p,f.al,f.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(g,x){},encapsulation:2}),d})(),u=(()=>{class d{}return d.\u0275fac=function(g){return new(g||d)},d.\u0275mod=c.oAB({type:d}),d.\u0275inj=c.cJS({imports:[[a.idP,a.UxI,a.sRG,a.o0O,a.ggs,a.IOm,a.kOw,a.weU,a.D_l,a.JxK,a.zZW,a.ynY,a.lgR,a.sni,a.waX,a.pxS,a.pGy,f.Lz,f.ie,o.Cu],a.idP,a.UxI,a.sRG,a.o0O,a.ggs,a.IOm,a.kOw,a.weU,a.D_l,a.JxK,a.zZW,a.ynY,a.lgR,a.sni,a.waX,a.pxS,a.pGy,f.ie]}),d})()},1980:(kn,he,l)=>{"use strict";l.d(he,{Q:()=>s,z:()=>p});var o=l(5998),c=l(4370),I=l(4471),C=l(8942),f=l(1759);const a={provide:C.JU,useExisting:(0,c.Gpc)(()=>p),multi:!0};let p=(()=>{class u extends f.Ay{constructor(h,g,x,b,y,E,S,O){super(h,g,x,b,S,O),this._watcherHelper=b,this._idh=y,this.touched=w=>{},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),E.setHost(this)}get abortUpload(){return this._getOption("abortUpload")}set abortUpload(h){this._setOption("abortUpload",h)}get accept(){return this._getOption("accept")}set accept(h){this._setOption("accept",h)}get accessKey(){return this._getOption("accessKey")}set accessKey(h){this._setOption("accessKey",h)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(h){this._setOption("activeStateEnabled",h)}get allowCanceling(){return this._getOption("allowCanceling")}set allowCanceling(h){this._setOption("allowCanceling",h)}get allowedFileExtensions(){return this._getOption("allowedFileExtensions")}set allowedFileExtensions(h){this._setOption("allowedFileExtensions",h)}get chunkSize(){return this._getOption("chunkSize")}set chunkSize(h){this._setOption("chunkSize",h)}get dialogTrigger(){return this._getOption("dialogTrigger")}set dialogTrigger(h){this._setOption("dialogTrigger",h)}get disabled(){return this._getOption("disabled")}set disabled(h){this._setOption("disabled",h)}get dropZone(){return this._getOption("dropZone")}set dropZone(h){this._setOption("dropZone",h)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(h){this._setOption("elementAttr",h)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(h){this._setOption("focusStateEnabled",h)}get height(){return this._getOption("height")}set height(h){this._setOption("height",h)}get hint(){return this._getOption("hint")}set hint(h){this._setOption("hint",h)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(h){this._setOption("hoverStateEnabled",h)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(h){this._setOption("inputAttr",h)}get invalidFileExtensionMessage(){return this._getOption("invalidFileExtensionMessage")}set invalidFileExtensionMessage(h){this._setOption("invalidFileExtensionMessage",h)}get invalidMaxFileSizeMessage(){return this._getOption("invalidMaxFileSizeMessage")}set invalidMaxFileSizeMessage(h){this._setOption("invalidMaxFileSizeMessage",h)}get invalidMinFileSizeMessage(){return this._getOption("invalidMinFileSizeMessage")}set invalidMinFileSizeMessage(h){this._setOption("invalidMinFileSizeMessage",h)}get isValid(){return this._getOption("isValid")}set isValid(h){this._setOption("isValid",h)}get labelText(){return this._getOption("labelText")}set labelText(h){this._setOption("labelText",h)}get maxFileSize(){return this._getOption("maxFileSize")}set maxFileSize(h){this._setOption("maxFileSize",h)}get minFileSize(){return this._getOption("minFileSize")}set minFileSize(h){this._setOption("minFileSize",h)}get multiple(){return this._getOption("multiple")}set multiple(h){this._setOption("multiple",h)}get name(){return this._getOption("name")}set name(h){this._setOption("name",h)}get progress(){return this._getOption("progress")}set progress(h){this._setOption("progress",h)}get readOnly(){return this._getOption("readOnly")}set readOnly(h){this._setOption("readOnly",h)}get readyToUploadMessage(){return this._getOption("readyToUploadMessage")}set readyToUploadMessage(h){this._setOption("readyToUploadMessage",h)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(h){this._setOption("rtlEnabled",h)}get selectButtonText(){return this._getOption("selectButtonText")}set selectButtonText(h){this._setOption("selectButtonText",h)}get showFileList(){return this._getOption("showFileList")}set showFileList(h){this._setOption("showFileList",h)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(h){this._setOption("tabIndex",h)}get uploadAbortedMessage(){return this._getOption("uploadAbortedMessage")}set uploadAbortedMessage(h){this._setOption("uploadAbortedMessage",h)}get uploadButtonText(){return this._getOption("uploadButtonText")}set uploadButtonText(h){this._setOption("uploadButtonText",h)}get uploadChunk(){return this._getOption("uploadChunk")}set uploadChunk(h){this._setOption("uploadChunk",h)}get uploadCustomData(){return this._getOption("uploadCustomData")}set uploadCustomData(h){this._setOption("uploadCustomData",h)}get uploadedMessage(){return this._getOption("uploadedMessage")}set uploadedMessage(h){this._setOption("uploadedMessage",h)}get uploadFailedMessage(){return this._getOption("uploadFailedMessage")}set uploadFailedMessage(h){this._setOption("uploadFailedMessage",h)}get uploadFile(){return this._getOption("uploadFile")}set uploadFile(h){this._setOption("uploadFile",h)}get uploadHeaders(){return this._getOption("uploadHeaders")}set uploadHeaders(h){this._setOption("uploadHeaders",h)}get uploadMethod(){return this._getOption("uploadMethod")}set uploadMethod(h){this._setOption("uploadMethod",h)}get uploadMode(){return this._getOption("uploadMode")}set uploadMode(h){this._setOption("uploadMode",h)}get uploadUrl(){return this._getOption("uploadUrl")}set uploadUrl(h){this._setOption("uploadUrl",h)}get validationError(){return this._getOption("validationError")}set validationError(h){this._setOption("validationError",h)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(h){this._setOption("validationErrors",h)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(h){this._setOption("validationStatus",h)}get value(){return this._getOption("value")}set value(h){this._setOption("value",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get width(){return this._getOption("width")}set width(h){this._setOption("width",h)}change(h){}_createInstance(h,g){return new I.Z(h,g)}writeValue(h){this.eventHelper.lockedValueChangeEvent=!0,this.value=h,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(h){this.disabled=h}registerOnChange(h){this.change=h}registerOnTouched(h){this.touched=h}_createWidget(h){super._createWidget(h),this.instance.on("focusOut",g=>{this.eventHelper.fireNgEvent("onBlur",[g])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(h){super.ngOnChanges(h),this.setupChanges("allowedFileExtensions",h),this.setupChanges("validationErrors",h),this.setupChanges("value",h)}setupChanges(h,g){h in this._optionsToUpdate||this._idh.setup(h,g)}ngDoCheck(){this._idh.doCheck("allowedFileExtensions"),this._idh.doCheck("validationErrors"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(h,g){let x=this._idh.setupSingle(h,g),b=null!==this._idh.getChanges(h,g);(x||b)&&super._setOption(h,g)}}return u.\u0275fac=function(h){return new(h||u)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(f._5),c.Y36(f._h),c.Y36(f.i9),c.Y36(f.al),c.Y36(o.ki),c.Y36(c.Lbi))},u.\u0275cmp=c.Xpm({type:u,selectors:[["dx-file-uploader"]],hostBindings:function(h,g){1&h&&c.NdJ("valueChange",function(b){return g.change(b)})("onBlur",function(b){return g.touched(b)})},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:[c._Bn([f._5,f._h,a,f.al,f.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(h,g){},encapsulation:2}),u})(),s=(()=>{class u{}return u.\u0275fac=function(h){return new(h||u)},u.\u0275mod=c.oAB({type:u}),u.\u0275inj=c.cJS({imports:[[f.Lz,f.ie,o.Cu],f.ie]}),u})()},7050:(kn,he,l)=>{"use strict";l.d(he,{A:()=>p,Y:()=>a});var o=l(5998),c=l(4370),I=l(7449),C=l(1759),f=l(8208);let a=(()=>{class s extends C.Ay{constructor(d,h,g,x,b,y,E,S){super(d,h,g,x,E,S),this._watcherHelper=x,this._idh=b,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),y.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(d){this._setOption("accessKey",d)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(d){this._setOption("activeStateEnabled",d)}get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(d){this._setOption("alignItemLabels",d)}get alignItemLabelsInAllGroups(){return this._getOption("alignItemLabelsInAllGroups")}set alignItemLabelsInAllGroups(d){this._setOption("alignItemLabelsInAllGroups",d)}get colCount(){return this._getOption("colCount")}set colCount(d){this._setOption("colCount",d)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(d){this._setOption("colCountByScreen",d)}get customizeItem(){return this._getOption("customizeItem")}set customizeItem(d){this._setOption("customizeItem",d)}get disabled(){return this._getOption("disabled")}set disabled(d){this._setOption("disabled",d)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(d){this._setOption("elementAttr",d)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(d){this._setOption("focusStateEnabled",d)}get formData(){return this._getOption("formData")}set formData(d){this._setOption("formData",d)}get height(){return this._getOption("height")}set height(d){this._setOption("height",d)}get hint(){return this._getOption("hint")}set hint(d){this._setOption("hint",d)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(d){this._setOption("hoverStateEnabled",d)}get items(){return this._getOption("items")}set items(d){this._setOption("items",d)}get labelLocation(){return this._getOption("labelLocation")}set labelLocation(d){this._setOption("labelLocation",d)}get labelMode(){return this._getOption("labelMode")}set labelMode(d){this._setOption("labelMode",d)}get minColWidth(){return this._getOption("minColWidth")}set minColWidth(d){this._setOption("minColWidth",d)}get optionalMark(){return this._getOption("optionalMark")}set optionalMark(d){this._setOption("optionalMark",d)}get readOnly(){return this._getOption("readOnly")}set readOnly(d){this._setOption("readOnly",d)}get requiredMark(){return this._getOption("requiredMark")}set requiredMark(d){this._setOption("requiredMark",d)}get requiredMessage(){return this._getOption("requiredMessage")}set requiredMessage(d){this._setOption("requiredMessage",d)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(d){this._setOption("rtlEnabled",d)}get screenByWidth(){return this._getOption("screenByWidth")}set screenByWidth(d){this._setOption("screenByWidth",d)}get scrollingEnabled(){return this._getOption("scrollingEnabled")}set scrollingEnabled(d){this._setOption("scrollingEnabled",d)}get showColonAfterLabel(){return this._getOption("showColonAfterLabel")}set showColonAfterLabel(d){this._setOption("showColonAfterLabel",d)}get showOptionalMark(){return this._getOption("showOptionalMark")}set showOptionalMark(d){this._setOption("showOptionalMark",d)}get showRequiredMark(){return this._getOption("showRequiredMark")}set showRequiredMark(d){this._setOption("showRequiredMark",d)}get showValidationSummary(){return this._getOption("showValidationSummary")}set showValidationSummary(d){this._setOption("showValidationSummary",d)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(d){this._setOption("tabIndex",d)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(d){this._setOption("validationGroup",d)}get visible(){return this._getOption("visible")}set visible(d){this._setOption("visible",d)}get width(){return this._getOption("width")}set width(d){this._setOption("width",d)}get itemsChildren(){return this._getOption("items")}set itemsChildren(d){this.setChildren("items",d)}_createInstance(d,h){return new I.Z(d,h)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(d){super.ngOnChanges(d),this.setupChanges("items",d)}setupChanges(d,h){d in this._optionsToUpdate||this._idh.setup(d,h)}ngDoCheck(){this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(d,h){let g=this._idh.setupSingle(d,h),x=null!==this._idh.getChanges(d,h);(g||x)&&super._setOption(d,h)}}return s.\u0275fac=function(d){return new(d||s)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(C._5),c.Y36(C._h),c.Y36(C.i9),c.Y36(C.al),c.Y36(o.ki),c.Y36(c.Lbi))},s.\u0275cmp=c.Xpm({type:s,selectors:[["dx-form"]],contentQueries:function(d,h,g){if(1&d&&c.Suo(g,f.ZT3,4),2&d){let x;c.iGM(x=c.CRH())&&(h.itemsChildren=x)}},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:[c._Bn([C._5,C._h,C.al,C.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(d,h){},encapsulation:2}),s})(),p=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[[f.Oll,f.Q8p,f.e1H,f.$D5,f.Jiy,f._9O,f.kSd,C.Lz,C.ie,o.Cu],f.Oll,f.Q8p,f.e1H,f.$D5,f.Jiy,f._9O,f.kSd,C.ie]}),s})()},8712:(kn,he,l)=>{"use strict";l.d(he,{C:()=>pn,O:()=>qn});var B,o=l(5998),c=l(4370),I=l(9904),C=l(5873),f=l(1828),a=l(6881),p=l(7674),s=l(8506),u=l(1880),d=l(1031),h=l(8159),g=l(5365),x=l(4270),b=l(913),y=l(8225),E=l(2721),S=l(7772),O=l(8474),w=l(8690),T=l(2941),k=l(8699),R=l.n(k);function P(){if(!R())throw h.Z.Error("E1041","Quill");return R()}if(R()){var W=R().import("core/theme");B=class extends W{constructor(Qe,lt){super(Qe,lt),this.quill.root.classList.add("dx-htmleditor-content"),this.quill.root.setAttribute("role","textbox")}}}else B={};const N=B;var V={};if(R()){var U=R().import("formats/image");(V=class extends U{static create(Qe){var xt=super.create(Qe&&Qe.src||Qe);if((0,f.Kn)(Qe)){var Tn=(ii,wi)=>{Qe[ii]&&xt.setAttribute(ii,wi)};Tn("alt",Qe.alt),Tn("width",Qe.width),Tn("height",Qe.height)}return xt}static formats(Qe){var lt=super.formats(Qe);return lt.imageSrc=Qe.getAttribute("src"),lt}formats(){var Qe=super.formats(),lt=this.domNode.style.float;return lt&&(Qe.float=lt),Qe}format(Qe,lt){"float"===Qe?this.domNode.style[Qe]=lt:super.format(Qe,lt)}static value(Qe){return{src:Qe.getAttribute("src"),width:Qe.getAttribute("width"),height:Qe.getAttribute("height"),alt:Qe.getAttribute("alt")}}}).blotName="extendedImage"}const K=V;var Y={};if(R()){var J=R().import("formats/link");Y=class q3 extends J{static create(lt){var Tn=super.create(lt&&lt.href||lt);return(0,f.Kn)(lt)&&(lt.text&&(Tn.innerText=lt.text),lt.target||Tn.removeAttribute("target")),Tn}static formats(lt){return{href:lt.getAttribute("href"),target:lt.getAttribute("target")}}formats(){var lt=super.formats(),{href:xt,target:Tn}=q3.formats(this.domNode);return lt.link=xt,lt.target=Tn,lt}format(lt,xt){"link"===lt&&(0,f.Kn)(xt)?(xt.text&&(this.domNode.innerText=xt.text),xt.target?this.domNode.setAttribute("target","_blank"):this.domNode.removeAttribute("target"),this.domNode.setAttribute("href",xt.href)):super.format(lt,xt)}static value(lt){return{href:lt.getAttribute("href"),text:lt.innerText,target:!!lt.getAttribute("target")}}}}const j=Y;var ee={};R()&&((ee=R().import("attributors/style/font")).whitelist=null);const G=ee;var q={};R()&&((q=R().import("attributors/style/size")).whitelist=null);const Z=q;var X={};R()&&(X=R().import("attributors/style/align")).whitelist.push("left");const M=X;var ge=class se{};if(R()){var De=R().import("core/module");ge=class extends De{constructor(Qe,lt){super(Qe,lt),this.editorInstance=lt.editorInstance}saveValueChangeEvent(Qe){this.editorInstance._saveValueChangeEvent(Qe)}addCleanCallback(Qe){this.editorInstance.addCleanCallback(Qe)}handleOptionChangeValue(Qe){(0,f.Kn)(Qe)?Object.entries(Qe).forEach(lt=>{var[xt,Tn]=lt;return this.option(xt,Tn)}):(0,f.$K)(Qe)||null==this||this.clean()}}}const Fe=ge;var Ae=l(7858),ie=(l(5079),l(7014),l(1946),l(2718));class de{constructor(){this._collection=[]}clear(){this._collection=[]}add(lt,xt){this._collection.push({name:lt,instance:xt})}remove(lt){this._collection=this._collection.filter(xt=>xt.name!==lt)}getByName(lt){var xt=null;return(0,ie.S6)(this._collection,(Tn,ii)=>{var{name:wi,instance:Pi}=ii;if(wi===lt)return xt=Pi,!1}),xt}each(lt){this._collection.forEach(xt=>{var{name:Tn,instance:ii}=xt;return ii&&lt(Tn,ii)})}}var le=l(9009),pe=l(7981),Ee=["table","tableHeaderCell"],ae=["insertTable","insertHeaderRow","insertRowAbove","insertRowBelow","insertColumnLeft","insertColumnRight","deleteColumn","deleteRow","deleteTable","cellProperties","tableProperties"];function te(Qe){var lt=Qe.getModule("table");return null!=lt&&lt.tableFormats?lt.tableFormats():Ee}function re(Qe,lt){return!!lt&&Qe.quill.getText(lt).trim().length<lt.length}function oe(Qe,lt){var{tableBlot:xt,quill:Tn}=lt;(xt??Tn.scroll.find(Qe.get(0))).format("tableWidth","initial")}function ye(Qe){var lt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Qe.find("tr").eq(lt).find("th, td")}function Pe(Qe){var lt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"horizontal",xt=[],Tn="horizontal"===lt,ii=Tn?ye(Qe):tt(Qe);return ii.each((wi,Pi)=>{var Li=(0,I.Z)(Pi);""===Li.get(0).style[Tn?"width":"height"]&&xt.push(Li)}),xt}function Ne(Qe,lt){var{elements:xt,property:Tn,value:ii}=lt,wi=Qe.quill.getModule("table").tableBlots,Pi="cell".concat((0,pe._A)(Tn,!0));(0,ie.S6)(xt,(Li,rr)=>{var Cr,qr=Qe.quill.scroll.find(rr);if(!wi.includes(qr.statics.blotName)){var lo=qr.descendant(mo=>wi.includes(mo.statics.blotName));qr=lo?lo[0]:null}null===(Cr=qr)||void 0===Cr||Cr.format(Pi,ii+"px")})}function ft(Qe,lt){var xt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"horizontal";return"horizontal"===xt?tt(Qe,lt):ye(Qe,lt)}function tt(Qe){var lt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Qe.find("th:nth-child(".concat(1+lt,"), td:nth-child(").concat(1+lt,")"))}function Be(Qe,lt){for(var xt=arguments.length,Tn=new Array(xt>2?xt-2:0),ii=2;ii<xt;ii++)Tn[ii-2]=arguments[ii];return()=>{var wi=Qe.getModule("table");if(wi)return Qe.focus(),wi[lt](...Tn)}}var mt=l(7449),nn=l(970),ke=l(7565),$e=l(3862),me=l(1805),xe=l(4817),Te=l(9943),Ye=l(4471),St=l(3447),Ct=["imageSrc","src"],Rt="phone"===T.Z.current().deviceType,Ai="dx-formdialog";class Sn{constructor(lt,xt){this.module=lt,this.config=xt??{},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 lt=this.getFormConfig();this.updatePopupConfig(),this.updateAddButtonState(),this.editorInstance.showFormDialog(lt).done((xt,Tn)=>{this.tabs[this.getActiveTabIndex()].strategy.pasteImage(xt,Tn)}).always(()=>{this.resetDialogPopupOptions(),this.quill.focus()})}getCurrentTab(){return this.tabs[this.tabPanelIndex]}updateAddButtonState(){var lt=this.getCurrentTab().isDisableButton();this.setAddButtonDisabled(lt)}setAddButtonDisabled(lt){this.editorInstance.formDialogOption({"toolbarItems[0].options.disabled":lt})}getActiveTabIndex(){return this.isUpdating?0:this.tabPanelIndex}getFormData(){return this.getUpdateDialogFormData(this.quill.getFormat())}getUpdateDialogFormData(lt){var{imageSrc:xt,src:Tn}=lt,ii=(0,Te.Z)(lt,Ct);return(0,xe.Z)({src:xt??Tn},ii)}createUrlTab(lt){return new ti(this.module,{config:this.config,formData:lt,isUpdating:this.isUpdating},()=>this.updateAddButtonState())}createFileTab(){return new Wn(this.module,{config:this.config},()=>this.updateAddButtonState())}createTabsModel(){var lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0===lt.length||this.isUpdating?["url"]:lt.map(xt=>"object"==typeof xt?xt.name:xt)}createTabs(lt){return this.tabsModel.map(xt=>"url"===xt?this.createUrlTab(lt):this.createFileTab())}isImageUpdating(){var lt;return Object.prototype.hasOwnProperty.call(null!==(lt=this.module.quill.getFormat())&&void 0!==lt?lt:{},"imageSrc")}updatePopupConfig(){var lt="".concat("dx-htmleditor-add-image-popup"," ").concat(Ai);this.useTabbedItems()&&(lt+=" ".concat("dx-htmleditor-add-image-popup-with-tabs"));var Tn=this.isUpdating?"dxHtmlEditor-dialogImageUpdateButton":"dxHtmlEditor-dialogImageAddButton";this.editorInstance.formDialogOption({title:le.Z.format(this.isUpdating?"dxHtmlEditor-dialogUpdateImageCaption":"dxHtmlEditor-dialogImageCaption"),"toolbarItems[0].options.text":le.Z.format(Tn),wrapperAttr:{class:lt}})}resetDialogPopupOptions(){this.editorInstance.formDialogOption({"toolbarItems[0].options.text":le.Z.format("OK"),"toolbarItems[0].options.visible":!0,"toolbarItems[0].options.disabled":!1,wrapperAttr:{class:Ai}})}useTabbedItems(){return this.tabsModel.length>1}getFormWidth(){return Rt?"100%":493}getFormConfig(){return{formData:this.formData,width:this.getFormWidth(),labelLocation:"top",colCount:this.useTabbedItems()?1:11,items:this.getItemsConfig()}}getItemsConfig(){return this.useTabbedItems()?[{itemType:"tabbed",tabPanelOptions:{onSelectionChanged:xt=>{this.tabPanelIndex=xt.component.option("selectedIndex"),this.updateAddButtonState()}},tabs:(0,ie.UI)(this.tabs,xt=>({title:xt.getTabName(),colCount:11,items:xt.getItemsConfig()}))}]:this.tabs[0].getItemsConfig()}}class An{constructor(lt,xt,Tn){var{config:ii,formData:wi,isUpdating:Pi}=xt;this.module=lt,this.config=ii,this.formData=wi,this.isUpdating=Pi,this.onFileSelected=Tn,this.strategy=this.createStrategy()}getItemsConfig(){return this.strategy.getItemsConfig()}createStrategy(){return this.isUpdating?new ei(this.module,this.config,this.formData):new On(this.module,this.config,this.onFileSelected)}isDisableButton(){return!1}upload(){return this.strategy.upload()}}class ti extends An{getTabName(){return le.Z.format("dxHtmlEditor-dialogImageSpecifyUrl")}}class Wn extends An{getTabName(){return le.Z.format("dxHtmlEditor-dialogImageSelectFile")}createStrategy(){return new ni(this.module,this.config,this.onFileSelected)}isDisableButton(){return!this.strategy.isValid()}}class Yi{constructor(lt,xt){this.module=lt,this.config=xt,this.editorInstance=lt.editorInstance,this.quill=lt.quill,this.selection=this.getQuillSelection()}getQuillSelection(){return this.quill.getSelection()??{index:this.quill.getLength(),length:0}}pasteImage(){}isValid(){return!0}upload(){}}class On extends Yi{constructor(lt,xt,Tn){super(lt,xt,Tn),this.shouldKeepAspectRatio=!0}pasteImage(lt,xt){this.module.saveValueChangeEvent(xt),$i(this.quill,this.selection.index,lt)}keepAspectRatio(lt,xt){var{dependentEditor:Tn,e:ii}=xt,wi=parseInt(ii.value),Pi=parseInt(ii.previousValue),Li=parseInt(Tn.option("value"));lt.component.updateData(lt.dataField,wi),this.shouldKeepAspectRatio&&Li&&Pi&&!this.preventRecalculating&&(this.preventRecalculating=!0,Tn.option("value",Math.round(wi*Li/parseInt(Pi)).toString())),this.preventRecalculating=!1}createKeepAspectRatioEditor(lt,xt,Tn){return this.editorInstance._createComponent(lt,St.Z,(0,C.l)(!0,xt.editorOptions,{value:xt.component.option("formData")[xt.dataField],onEnterKey:xt.component.option("onEditorEnterKey").bind(this.editorInstance._formDialog,xt),onValueChanged:ii=>{this.keepAspectRatio(xt,{dependentEditor:this[Tn+"Editor"],e:ii})}}))}upload(){return this.editorInstance._formDialog._form.validate().isValid}getItemsConfig(){return[{dataField:"src",colSpan:11,label:{text:le.Z.format("dxHtmlEditor-dialogImageUrlField")},validationRules:[{type:"required"},{type:"stringLength",min:1}]},{dataField:"width",colSpan:6,label:{text:le.Z.format("dxHtmlEditor-dialogImageWidthField")},template:lt=>{var xt=(0,I.Z)("<div>").addClass("dx-fix-ratio-container"),Tn=(0,I.Z)("<div>").appendTo(xt);this.widthEditor=this.createKeepAspectRatioEditor(Tn,lt,"height");var ii=(0,I.Z)("<div>").appendTo(xt);return this.editorInstance._createComponent(ii,nn.Z,{items:[{icon:"imgarlock",value:"keepRatio"}],hint:le.Z.format("dxHtmlEditor-dialogImageKeepAspectRatio"),focusStateEnabled:!1,keyExpr:"value",stylingMode:"outlined",selectionMode:"multiple",selectedItemKeys:["keepRatio"],onSelectionChanged:wi=>{this.shouldKeepAspectRatio=!!wi.component.option("selectedItems").length}}),xt}},{dataField:"height",colSpan:5,label:{text:le.Z.format("dxHtmlEditor-dialogImageHeightField")},template:lt=>{var xt=(0,I.Z)("<div>");return this.heightEditor=this.createKeepAspectRatioEditor(xt,lt,"width"),xt}},{dataField:"alt",colSpan:11,label:{text:le.Z.format("dxHtmlEditor-dialogImageAltField")}}]}}class ei extends On{constructor(lt,xt,Tn,ii){super(lt,xt,ii),this.formData=Tn,this.modifyFormData()}modifyFormData(){var{imageSrc:lt}=this.quill.getFormat(this.selection.index-1,1);(!lt||0===this.selection.index)&&(this.selection={index:this.selection.index+1,length:0},this.quill.setSelection(this.selection.index,this.selection.length,"silent"));var Tn,ii,xt=this.quill.getLeaf(this.selection.index)[0].domNode;xt&&(this.formData.width=null!==(Tn=this.formData.width)&&void 0!==Tn?Tn:(0,me.dz)((0,I.Z)(xt)),this.formData.height=null!==(ii=this.formData.height)&&void 0!==ii?ii:(0,me.Cr)((0,I.Z)(xt)))}pasteImage(lt,xt){this.quill.deleteText(this.embedFormatIndex(),1,"silent"),this.selection.index-=1,super.pasteImage(lt,xt)}embedFormatIndex(){var lt,xt=null!==(lt=this.selection)&&void 0!==lt?lt:this.quill.getSelection();return xt?xt.length?xt.index:xt.index-1:this.quill.getLength()}}class ni extends Yi{constructor(lt,xt,Tn){super(lt,xt,Tn),this.useBase64=!(0,f.$K)(this.config.fileUploadMode)||"base64"===this.config.fileUploadMode,this.isValidInternal=!1,this.onFileSelected=Tn,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(lt){this.editorInstance._formDialog.hide({file:lt.value?lt.value[0]:lt.file},lt.event)}serverUpload(lt){if(!this.useBase64){var xt=di(this.config.uploadDirectory)+lt.file.name;$i(this.quill,this.selection.index,{src:xt}),this.closeDialogPopup(lt)}}base64Upload(lt){this.quill.getModule("uploader").upload(this.selection,lt.value,!0),this.closeDialogPopup(lt)}pasteImage(lt,xt){this.useBase64&&super.pasteImage(lt,xt)}isBase64Editable(){return"both"===this.config.fileUploadMode}validate(lt){var xt=lt.component;this.isValidInternal=!xt._files.some(Tn=>!Tn.isValid()),0===xt._files.length&&(this.isValidInternal=!1)}getFileUploaderOptions(){return(0,C.l)({},{value:[],name:"dx-htmleditor-image",accept:"image/*",uploadMode:"useButtons"},{uploadUrl:this.config.uploadUrl,onValueChanged:xt=>{this.validate(xt),this.data=xt,this.onFileSelected()},onUploaded:xt=>this.serverUpload(xt)},this.config.fileUploaderOptions)}getItemsConfig(){return[{itemType:"simple",dataField:"files",colSpan:11,label:{visible:!1},template:()=>{var lt=(0,I.Z)("<div>");return this.module.editorInstance._createComponent(lt,Ye.Z,this.getFileUploaderOptions()),lt}},{itemType:"simple",colSpan:11,label:{visible:!1},editorType:"dxCheckBox",editorOptions:{value:this.useBase64,visible:this.isBase64Editable(),text:le.Z.format("dxHtmlEditor-dialogImageEncodeToBase64"),onValueChanged:lt=>{this.isBase64Editable()&&(this.useBase64=lt.value)}}}]}}function di(Qe){return"/"!==Qe[Qe.length-1]?Qe+"/":Qe}function $i(Qe,lt,xt){Qe.insertEmbed(lt,"extendedImage",xt,"user"),Qe.setSelection(lt+1,0,"user")}var Qi=l(4514),yn=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],Rn="user",Tr={insertHeaderRow:"header",clear:"clearformat"};function so(Qe){return{clear:lt=>{var ii,{event:xt}=lt,Tn=Qe.quill.getSelection();Tn&&(Qe.saveValueChangeEvent(xt),Qe.quill.removeFormat(Tn),null===(ii=$n(Qe))||void 0===ii||ii.updateFormatWidgets())},link:to(Qe),image:uo(Qe,Qe.editorInstance.option("imageUpload")),color:At(Qe,"color"),background:At(Qe,"background"),orderedList:tn(Qe,"list","ordered"),bulletList:tn(Qe,"list","bullet"),alignLeft:tn(Qe,"align","left"),alignCenter:tn(Qe,"align","center"),alignRight:tn(Qe,"align","right"),alignJustify:tn(Qe,"align","justify"),codeBlock:_i(Qe,"code-block"),undo:lt=>{var{event:xt}=lt;Qe.saveValueChangeEvent(xt),Qe.quill.history.undo()},redo:lt=>{var{event:xt}=lt;Qe.saveValueChangeEvent(xt),Qe.quill.history.redo()},increaseIndent:lt=>{var{event:xt}=lt;fi(Qe,["indent","+1",Rn],xt)},decreaseIndent:lt=>{var{event:xt}=lt;fi(Qe,["indent","-1",Rn],xt)},superscript:tn(Qe,"script","super"),subscript:tn(Qe,"script","sub"),insertTable:dn(Qe),insertHeaderRow:Be(Qe.quill,"insertHeaderRow"),insertRowAbove:Be(Qe.quill,"insertRowAbove"),insertRowBelow:Be(Qe.quill,"insertRowBelow"),insertColumnLeft:Be(Qe.quill,"insertColumnLeft"),insertColumnRight:Be(Qe.quill,"insertColumnRight"),deleteColumn:Be(Qe.quill,"deleteColumn"),deleteRow:Be(Qe.quill,"deleteRow"),deleteTable:Be(Qe.quill,"deleteTable"),cellProperties:oo(Qe,"cell"),tableProperties:oo(Qe,"table")}}function Er(Qe,lt){var{contentTemplate:xt,title:Tn,minHeight:ii,minWidth:wi,maxWidth:Pi}=lt;Qe.formDialogOption({contentTemplate:xt,title:Tn,minHeight:ii??0,minWidth:wi??0,maxWidth:Pi??"none"})}function oo(Qe,lt){return xt=>{var Tn,ii;null!==(Tn=xt)&&void 0!==Tn&&Tn.length||(xt=(0,I.Z)(function ir(Qe,lt){var xt=Qe.quill.getModule("table").getTable();return"table"===lt?xt[0].domNode:xt[2].domNode}(Qe,lt)));var Lo,[wi,Pi]=null!==(ii=Qe.quill.getModule("table").getTable())&&void 0!==ii?ii:[],Li=Qe.quill.getFormat(Qe.editorInstance.getSelection(!0)),rr=function gi(Qe){return"cell"===Qe?Zn:In}(lt)(Qe,{$element:xt,formats:Li,tableBlot:wi,rowBlot:Pi}),{contentTemplate:Cr,title:qr,minHeight:lo,minWidth:mo,maxWidth:bo}=Qe.editorInstance._formDialog._popup.option(),wo={contentTemplate:Cr,title:qr,minHeight:lo,minWidth:mo,maxWidth:bo};Qe.editorInstance.formDialogOption({contentTemplate:ia=>{var Wo=(0,I.Z)("<div>").appendTo(ia),aa=(0,I.Z)("<div>").appendTo(Wo);return Qe.editorInstance._createComponent(aa,mt.Z,rr.formOptions),Qe.editorInstance._createComponent(Wo,$e.Z,{}),Lo=aa.dxForm("instance"),Wo},title:le.Z.format("dxHtmlEditor-".concat(lt,"Properties")),minHeight:400,minWidth:Math.min(800,.9*(0,me.dz)((0,Qi.Jj)())-1),maxWidth:.9*(0,me.dz)((0,Qi.Jj)())});var Jo=Qe.editorInstance.showFormDialog();Jo.done((ia,Wo)=>{Qe.saveValueChangeEvent(Wo),rr.applyHandler(Lo),Er(Qe.editorInstance,wo)}),Jo.fail(()=>{Qe.quill.focus(),Er(Qe.editorInstance,wo)})}}function fi(Qe,lt,xt){Qe.editorInstance._saveValueChangeEvent(xt),Qe.quill.format(...lt)}function to(Qe){return()=>{var lt;Qe.quill.focus();var xt=Qe.quill.getSelection(),Tn=re(Qe,xt),ii=xt?Qe.quill.getFormat():{},wi=ii.link&&0===(null===(lt=xt)||void 0===lt?void 0:lt.length),Pi=ii.link||"";if(wi){var Li=function Kr(Qe,lt){var Tn=P().import("formats/link"),[ii,wi]=Qe.quill.scroll.descendant(Tn,lt.index);return ii?{index:lt.index-wi,length:ii.length()}:null}(Qe,xt);Li?xt=Li:Pi=""}var rr={href:Pi,text:xt&&!Tn?Qe.quill.getText(xt):"",target:!Object.prototype.hasOwnProperty.call(ii,"target")||!!ii.target};Qe.editorInstance.formDialogOption("title",le.Z.format("dxHtmlEditor-dialogLinkCaption"));var Cr=Qe.editorInstance.showFormDialog({formData:rr,items:po(Qe,xt)});Cr.done((qr,lo)=>{if(xt&&!Tn){var mo=qr.text||qr.href,{index:bo,length:wo}=xt;qr.text=void 0,Qe.saveValueChangeEvent(lo),wo&&Qe.quill.deleteText(bo,wo,"silent"),Qe.quill.insertText(bo,mo,"link",qr,Rn),Qe.quill.setSelection(bo+mo.length,0,Rn)}else qr.text=xt||qr.text?qr.text:qr.href,fi(Qe,["link",qr,Rn],lo)}),Cr.fail(()=>{Qe.quill.focus()})}}function uo(Qe,lt){var xt=new Sn(Qe,lt);return()=>{xt.render()}}function po(Qe,lt){return[{dataField:"href",label:{text:le.Z.format("dxHtmlEditor-dialogLinkUrlField")}},{dataField:"text",label:{text:le.Z.format("dxHtmlEditor-dialogLinkTextField")},visible:!re(Qe,lt)},{dataField:"target",editorType:"dxCheckBox",editorOptions:{text:le.Z.format("dxHtmlEditor-dialogLinkTargetField")},cssClass:"dx-formdialog-field-target",label:{visible:!1}}]}function At(Qe,lt){return()=>{var xt=Qe.quill.getFormat();Qe.editorInstance.formDialogOption("title",le.Z.format("color"===lt?"dxHtmlEditor-dialogColorCaption":"dxHtmlEditor-dialogBackgroundCaption"));var ii=Qe.editorInstance.showFormDialog({formData:xt,items:[{dataField:lt,editorType:"dxColorView",editorOptions:{focusStateEnabled:!1},label:{visible:!1}}]});ii.done((wi,Pi)=>{fi(Qe,[lt,wi[lt],Rn],Pi)}),ii.fail(()=>{Qe.quill.focus()})}}function tn(Qe,lt,xt){return Tn=>{var ii,{event:wi}=Tn,Pi=Qe.quill.getFormat();fi(Qe,[lt,Pi[lt]!==xt&&xt,Rn],wi),null===(ii=$n(Qe))||void 0===ii||ii.updateFormatWidgets(!0)}}function $n(Qe){return Qe._updateFormatWidget?Qe:Qe.quill.getModule("toolbar")}function _i(Qe,lt){return xt=>{var Tn,{event:ii}=xt,wi=Qe.quill.getFormat(),Pi=wi[lt],Li=!((0,f.jn)(Pi)?Pi:(0,f.$K)(Pi));fi(Qe,[lt,Li,Rn],ii),null===(Tn=$n(Qe))||void 0===Tn||Tn._updateFormatWidget(lt,Li,wi)}}function dn(Qe){return()=>{var lt=Qe.quill.getFormat();Qe._tableFormats.some(ii=>Object.prototype.hasOwnProperty.call(lt,ii))?Qe.quill.focus():(Qe.editorInstance.formDialogOption("title",le.Z.format("dxHtmlEditor-dialogInsertTableCaption")),Qe.editorInstance.showFormDialog({formData:{rows:1,columns:1},items:[{dataField:"columns",editorType:"dxNumberBox",editorOptions:{min:1},label:{text:le.Z.format("dxHtmlEditor-dialogInsertTableRowsField")}},{dataField:"rows",editorType:"dxNumberBox",editorOptions:{min:1},label:{text:le.Z.format("dxHtmlEditor-dialogInsertTableColumnsField")}}]}).done((ii,wi)=>{Qe.quill.focus();var Pi=Qe.quill.getModule("table");if(Pi){Qe.saveValueChangeEvent(wi);var{columns:Li,rows:rr}=ii;Pi.insertTable(Li,rr)}}).always(()=>{Qe.quill.focus()}))}}function In(Qe,lt){var Pi,Li,rr,{$element:xt,formats:Tn,tableBlot:ii}=lt,wi=(0,Qi.Jj)(),Cr=xt,qr=Qe.editorInstance,lo=parseInt(Tn.tableWidth)||(0,me.Y_)(Cr),mo=wi.getComputedStyle(Cr.get(0)),bo="start"===mo.textAlign?"left":mo.textAlign;return{formOptions:{colCount:2,formData:{width:lo,height:(0,f.$K)(Tn.tableHeight)?parseInt(Tn.tableHeight):(0,me.zp)(Cr),backgroundColor:Tn.tableBackgroundColor||mo.backgroundColor,borderStyle:Tn.tableBorderStyle||mo.borderTopStyle,borderColor:Tn.tableBorderColor||mo.borderTopColor,borderWidth:parseInt((0,f.$K)(Tn.tableBorderWidth)?Tn.tableBorderWidth:mo.borderTopWidth),alignment:Tn.tableAlign||bo},items:[{itemType:"group",caption:le.Z.format("dxHtmlEditor-border"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"borderStyle",label:{text:le.Z.format("dxHtmlEditor-style")},editorType:"dxSelectBox",editorOptions:{items:yn,placeholder:"Select style"}},{dataField:"borderWidth",label:{text:le.Z.format("dxHtmlEditor-borderWidth")},editorOptions:{placeholder:le.Z.format("dxHtmlEditor-pixels")}},{itemType:"simple",dataField:"borderColor",label:{text:le.Z.format("dxHtmlEditor-borderColor")},colSpan:2,template:Lo=>{var Jo=(0,I.Z)("<div>");return qr._createComponent(Jo,ke.Z,{editAlphaChannel:!0,value:Lo.component.option("formData").borderColor,onInitialized:ia=>{Li=ia.component}}),Jo}}]},{itemType:"group",caption:le.Z.format("dxHtmlEditor-dimensions"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"width",label:{text:le.Z.format("dxHtmlEditor-width")},editorOptions:{min:0,placeholder:le.Z.format("dxHtmlEditor-pixels")}},{dataField:"height",label:{text:le.Z.format("dxHtmlEditor-height")},editorOptions:{min:0,placeholder:le.Z.format("dxHtmlEditor-pixels")}}]},{itemType:"group",caption:le.Z.format("dxHtmlEditor-tableBackground"),items:[{itemType:"simple",dataField:"backgroundColor",label:{text:le.Z.format("dxHtmlEditor-borderColor")},template:Lo=>{var Jo=(0,I.Z)("<div>");return qr._createComponent(Jo,ke.Z,{editAlphaChannel:!0,value:Lo.component.option("formData").backgroundColor,onInitialized:ia=>{rr=ia.component}}),Jo}}]},{itemType:"group",caption:le.Z.format("dxHtmlEditor-alignment"),items:[{itemType:"simple",label:{text:le.Z.format("dxHtmlEditor-horizontal")},template:()=>{var Lo=(0,I.Z)("<div>");return qr._createComponent(Lo,nn.Z,{items:[{value:"left",icon:"alignleft"},{value:"center",icon:"aligncenter"},{value:"right",icon:"alignright"},{value:"justify",icon:"alignjustify"}],keyExpr:"value",selectedItemKeys:[bo],onInitialized:Jo=>{Pi=Jo.component}}),Lo}}]}],showColonAfterLabel:!0,labelLocation:"top",minColWidth:400},applyHandler:Lo=>{var Jo=Lo.option("formData");(function Ri(Qe,lt){var{$table:xt,newHeight:Tn,newWidth:ii,tableBlot:wi}=lt;if((0,f.$K)(ii))if(Pe(xt).length>0)Qe.editorInstance.format("tableWidth",ii+"px");else{var Li=ye(xt),rr=(0,me.Y_)(xt);oe(xt,{tableBlot:wi}),(0,ie.S6)(Li,(mo,bo)=>{var wo=(0,I.Z)(bo),Lo=ii/rr*(0,me.Y_)(wo),Jo=ft(xt,wo.index(),"horizontal");Ne(Qe,{elements:Jo,property:"width",value:Lo})})}if(Pe(xt,"vertical")?.length>0)wi.format("tableHeight",Tn+"px");else{var qr=tt(xt),lo=(0,me.zp)(xt);(0,ie.S6)(qr,(mo,bo)=>{var wo=(0,I.Z)(bo),Lo=Tn/lo*(0,me.zp)(wo),Jo=ft(xt,mo,"vertical");Ne(Qe,{elements:Jo,property:"height",value:Lo})})}})(Qe,{$table:Cr,newHeight:Jo.height,newWidth:Jo.width===lo?void 0:Jo.width,tableBlot:ii}),Qe.editorInstance.format("tableBorderStyle",Jo.borderStyle),Qe.editorInstance.format("tableBorderWidth",Jo.borderWidth+"px"),Qe.editorInstance.format("tableBorderColor",Li.option("value")),Qe.editorInstance.format("tableBackgroundColor",rr.option("value")),Qe.editorInstance.format("tableTextAlign",Pi.option("selectedItemKeys")[0])}}}function Zn(Qe,lt){var Li,rr,Cr,qr,{$element:xt,formats:Tn,tableBlot:ii,rowBlot:wi}=lt,Pi=(0,Qi.Jj)(),lo=xt,mo=(0,f.$K)(Tn.cellWidth)?parseInt(Tn.cellWidth):(0,me.Y_)(lo),bo=Qe.editorInstance,wo=Pi.getComputedStyle(lo.get(0)),Lo="start"===wo.textAlign?"left":wo.textAlign;return{formOptions:{colCount:2,formData:{width:mo,height:(0,f.$K)(Tn.cellHeight)?parseInt(Tn.cellHeight):(0,me.zp)(lo),backgroundColor:Tn.cellBackgroundColor||wo.backgroundColor,borderStyle:Tn.cellBorderStyle||wo.borderTopStyle,borderColor:Tn.cellBorderColor||wo.borderTopColor,borderWidth:parseInt((0,f.$K)(Tn.cellBorderWidth)?Tn.cellBorderWidth:wo.borderTopWidth),alignment:Tn.cellTextAlign||Lo,verticalAlignment:Tn.cellVerticalAlign||wo.verticalAlign,verticalPadding:parseInt((0,f.$K)(Tn.cellPaddingTop)?Tn.cellPaddingTop:wo.paddingTop),horizontalPadding:parseInt((0,f.$K)(Tn.cellPaddingLeft)?Tn.cellPaddingLeft:wo.paddingLeft)},items:[{itemType:"group",caption:le.Z.format("dxHtmlEditor-border"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"borderStyle",label:{text:le.Z.format("dxHtmlEditor-style")},editorType:"dxSelectBox",editorOptions:{items:yn}},{dataField:"borderWidth",label:{text:le.Z.format("dxHtmlEditor-borderWidth")},editorOptions:{placeholder:le.Z.format("dxHtmlEditor-pixels")}},{itemType:"simple",dataField:"borderColor",colSpan:2,label:{text:le.Z.format("dxHtmlEditor-borderColor")},template:ia=>{var Wo=(0,I.Z)("<div>");return bo._createComponent(Wo,ke.Z,{editAlphaChannel:!0,value:ia.component.option("formData").borderColor,onInitialized:aa=>{Cr=aa.component}}),Wo}}]},{itemType:"group",caption:le.Z.format("dxHtmlEditor-dimensions"),colCount:2,colCountByScreen:{xs:2},items:[{dataField:"width",label:{text:le.Z.format("dxHtmlEditor-width")},editorOptions:{min:0,placeholder:le.Z.format("dxHtmlEditor-pixels")}},{dataField:"height",label:{text:le.Z.format("dxHtmlEditor-height")},editorOptions:{min:0,placeholder:le.Z.format("dxHtmlEditor-pixels")}},{dataField:"verticalPadding",label:{text:le.Z.format("dxHtmlEditor-paddingVertical")},editorOptions:{placeholder:le.Z.format("dxHtmlEditor-pixels")}},{label:{text:le.Z.format("dxHtmlEditor-paddingHorizontal")},dataField:"horizontalPadding",editorOptions:{placeholder:le.Z.format("dxHtmlEditor-pixels")}}]},{itemType:"group",caption:le.Z.format("dxHtmlEditor-tableBackground"),items:[{itemType:"simple",dataField:"backgroundColor",label:{text:le.Z.format("dxHtmlEditor-borderColor")},template:ia=>{var Wo=(0,I.Z)("<div>");return bo._createComponent(Wo,ke.Z,{editAlphaChannel:!0,value:ia.component.option("formData").backgroundColor,onInitialized:aa=>{qr=aa.component}}),Wo}}]},{itemType:"group",caption:le.Z.format("dxHtmlEditor-alignment"),colCount:2,items:[{itemType:"simple",label:{text:le.Z.format("dxHtmlEditor-horizontal")},template:()=>{var ia=(0,I.Z)("<div>");return bo._createComponent(ia,nn.Z,{items:[{value:"left",icon:"alignleft"},{value:"center",icon:"aligncenter"},{value:"right",icon:"alignright"},{value:"justify",icon:"alignjustify"}],keyExpr:"value",selectedItemKeys:[Lo],onInitialized:Wo=>{Li=Wo.component}}),ia}},{itemType:"simple",label:{text:le.Z.format("dxHtmlEditor-vertical")},template:()=>{var ia=(0,I.Z)("<div>");return bo._createComponent(ia,nn.Z,{items:[{value:"top",icon:"verticalaligntop"},{value:"middle",icon:"verticalaligncenter"},{value:"bottom",icon:"verticalalignbottom"}],keyExpr:"value",selectedItemKeys:[wo.verticalAlign],onInitialized:Wo=>{rr=Wo.component}}),ia}}]}],showColonAfterLabel:!0,labelLocation:"top",minColWidth:400},applyHandler:ia=>{var Wo=ia.option("formData"),aa=Wo.width===parseInt(mo)?void 0:Wo.width;(function or(Qe,lt){var{$cell:xt,newHeight:Tn,newWidth:ii,tableBlot:wi,rowBlot:Pi}=lt,Li=(0,I.Z)(xt.closest("table"));if((0,f.$K)(ii)){var rr=(0,I.Z)(xt).index(),Cr=ft(Li,rr),qr=ii-(0,me.Y_)(xt);ii>(0,me.Y_)(Li)&&oe(Li,{tableBlot:wi}),Ne(Qe,{elements:Cr,property:"width",value:ii});var mo=xt.next();if(0===Pe(Li).length)if(oe(Li,{tableBlot:wi}),1===mo.length){Cr=ft(Li,rr+1);var wo=(0,me.Y_)(Cr.eq(0))-qr;Ne(Qe,{elements:Cr,property:"width",value:Math.max(wo,0)})}else if(1===xt.prev().length){Cr=ft(Li,rr-1);var Jo=(0,me.Y_)(Cr.eq(0))-qr;Ne(Qe,{elements:Cr,property:"width",value:Math.max(Jo,0)})}}Pi.children.forEach(Wo=>{Wo.format("cellHeight",Tn+"px")}),0===Pe(Li,"vertical").length&&Li.css("height","auto")})(Qe,{$cell:lo,newHeight:Wo.height,newWidth:aa,tableBlot:ii,rowBlot:wi}),Qe.editorInstance.format("cellBorderWidth",Wo.borderWidth+"px"),Qe.editorInstance.format("cellBorderColor",Cr.option("value")),Qe.editorInstance.format("cellBorderStyle",Wo.borderStyle),Qe.editorInstance.format("cellBackgroundColor",qr.option("value")),Qe.editorInstance.format("cellTextAlign",Li.option("selectedItemKeys")[0]),Qe.editorInstance.format("cellVerticalAlign",rr.option("selectedItemKeys")[0]),Qe.editorInstance.format("cellPaddingLeft",Wo.horizontalPadding+"px"),Qe.editorInstance.format("cellPaddingRight",Wo.horizontalPadding+"px"),Qe.editorInstance.format("cellPaddingTop",Wo.verticalPadding+"px"),Qe.editorInstance.format("cellPaddingBottom",Wo.verticalPadding+"px")}}}var cr=Fe;if(R()){var en="dx-htmleditor-toolbar-wrapper",Wt="dx-format-active",pt={66:"bold",73:"italic",85:"underline"},an={b:66,i:73,u:85},hn=Qe=>le.Z.format("dxHtmlEditor-".concat((0,pe._A)(Qe)));cr=class extends Fe{constructor(Qe,lt){var xt;if(super(Qe,lt),xt=this,this._toolbarWidgets=new de,this._formatHandlers=so(this),this._tableFormats=te(Qe),(0,f.$K)(lt.items)){this._addCallbacks(),this._renderToolbar();var Tn=this.toolbarInstance._layoutStrategy._menu;if(Tn){var ii=Tn._renderPopup;Tn._renderPopup=function(){for(var wi=arguments.length,Pi=new Array(wi),Li=0;Li<wi;Li++)Pi[Li]=arguments[Li];ii.apply(Tn,...Pi),Tn._popup.on("showing",()=>{xt._updateToolbar(!0)})}}this.quill.on("editor-change",(wi,Pi,Li,rr)=>{"silent"===rr&&(0,f.Qr)(this.quill.getFormat())||this._updateToolbar("selection-change"===wi)})}}_addCallbacks(){this.addCleanCallback(this.clean.bind(this)),this.editorInstance.addContentInitializedCallback(this.updateHistoryWidgets.bind(this))}_updateToolbar(Qe){this.updateFormatWidgets(Qe),this.updateHistoryWidgets(),this.updateTableWidgets()}_updateFormatWidget(Qe,lt,xt){var Tn=this._toolbarWidgets.getByName(Qe);Tn&&(lt?this._markActiveFormatWidget(Qe,Tn,xt):(this._resetFormatWidget(Qe,Tn),Object.prototype.hasOwnProperty.call(Qe)&&delete xt[Qe]),this._toggleClearFormatting(lt||!(0,f.Qr)(xt)))}_renderToolbar(){var Qe=this.options.container||this._getContainer();this._$toolbar=(0,I.Z)("<div>").addClass("dx-htmleditor-toolbar").appendTo(Qe),this._$toolbarContainer=(0,I.Z)(Qe).addClass(en),b.Z.on(this._$toolbarContainer,(0,y.V4)("mousedown",this.editorInstance.NAME),lt=>{lt.preventDefault()}),this._subscribeFormatHotKeys(),this.toolbarInstance=this.editorInstance._createComponent(this._$toolbar,Ae.Z,this.toolbarConfig),this.editorInstance.on("optionChanged",lt=>{var{name:xt}=lt;("readOnly"===xt||"disabled"===xt)&&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 Qe;return null===(Qe=this.options.multiline)||void 0===Qe||Qe}clean(){this._toolbarWidgets.clear(),this._$toolbarContainer&&this._$toolbarContainer.empty().removeClass(en)}repaint(){this.toolbarInstance&&this.toolbarInstance.repaint()}_getContainer(){var Qe=(0,I.Z)("<div>");return this.editorInstance.$element().prepend(Qe),Qe}_detectRenamedOptions(Qe){(0,f.Kn)(Qe)&&(0,ie.S6)([{newName:"name",oldName:"formatName"},{newName:"acceptedValues",oldName:"formatValues"}],(lt,xt)=>{Object.prototype.hasOwnProperty.call(Qe,xt.oldName)&&h.Z.log("W1016",xt.oldName,xt.newName)})}_subscribeFormatHotKeys(){this.quill.keyboard.addBinding({which:an.b,shortKey:!0},this._handleFormatHotKey.bind(this)),this.quill.keyboard.addBinding({which:an.i,shortKey:!0},this._handleFormatHotKey.bind(this)),this.quill.keyboard.addBinding({which:an.u,shortKey:!0},this._handleFormatHotKey.bind(this))}_handleFormatHotKey(Qe,lt,xt){var{which:Tn}=xt;this._updateButtonState(pt[Tn])}_updateButtonState(Qe){var lt=this._toolbarWidgets.getByName(Qe),xt=this.quill.getFormat();xt[Qe]?this._markActiveFormatWidget(Qe,lt,xt):this._resetFormatWidget(Qe,lt)}_prepareToolbarItems(){var Qe=[];return(0,ie.S6)(this.options.items,(lt,xt)=>{var Tn;if(this._detectRenamedOptions(xt),(0,f.Kn)(xt))Tn=this._handleObjectItem(xt);else if((0,f.HD)(xt)){var ii=this._prepareButtonItemConfig(xt);Tn=this._getToolbarItem(ii)}Tn&&Qe.push(Tn)}),Qe}_handleObjectItem(Qe){if(Qe.name&&Qe.acceptedValues&&this._isAcceptableItem(Qe.widget,"dxSelectBox")){var lt=this._prepareSelectItemConfig(Qe);return this._getToolbarItem(lt)}if(Qe.name&&this._isAcceptableItem(Qe.widget,"dxButton")){var xt=this._prepareButtonItemConfig(Qe.name),Tn=(0,C.l)(!0,xt,Qe);return this._getToolbarItem(Tn)}return this._getToolbarItem(Qe)}_isAcceptableItem(Qe,lt){return!Qe||Qe===lt}_prepareButtonItemConfig(Qe){var lt,xt=null!==(lt=Tr[Qe])&&void 0!==lt?lt:Qe,Tn=(0,pe.MI)(Qe);return{widget:"dxButton",name:Qe,options:{hint:hn(Tn),text:hn(Tn),icon:xt.toLowerCase(),onClick:this._formatHandlers[Qe]||_i(this,Qe),stylingMode:"text"},showText:"inMenu"}}_prepareSelectItemConfig(Qe){var{name:lt,acceptedValues:xt}=Qe;return(0,C.l)(!0,{widget:"dxSelectBox",name:lt,options:{stylingMode:"filled",dataSource:xt,displayExpr:Tn=>((Qe,lt)=>"header"===lt?(0,f.$K)(Qe)&&!1!==Qe?"".concat(hn("heading")," ").concat(Qe):hn("normalText"):hn(Qe)||Qe)(Tn,lt),placeholder:hn(lt),onValueChanged:Tn=>{this._isReset||(this._hideAdaptiveMenu(),fi(this,[lt,Tn.value,"user"],Tn.event),this._setValueSilent(Tn.component,Tn.value))}}},Qe)}_hideAdaptiveMenu(){this.toolbarInstance.option("overflowMenuVisible")&&this.toolbarInstance.option("overflowMenuVisible",!1)}_getToolbarItem(Qe){var lt={options:{onInitialized:xt=>{Qe.name&&(xt.component.$element().addClass("dx-htmleditor-toolbar-format"),xt.component.$element().toggleClass("dx-".concat(Qe.name.toLowerCase(),"-format"),!!Qe.name),this._toolbarWidgets.add(Qe.name,xt.component))},onDisposing:()=>{this._toolbarWidgets.remove(Qe.name)}}};return(0,C.l)(!0,{location:"before",locateInMenu:"auto"},this._getDefaultConfig(Qe.name),Qe,lt)}_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:(Qe,lt,xt)=>{(0,I.Z)(xt).addClass("dx-htmleditor-toolbar-separator")},menuItemTemplate:(Qe,lt,xt)=>{(0,I.Z)(xt).addClass("dx-htmleditor-toolbar-menu-separator")}}}}_getDefaultConfig(Qe){return this._getDefaultItemsConfig()[Qe]}updateHistoryWidgets(){var Qe=this.quill.history;if(Qe){var{undo:lt,redo:xt}=Qe.stack;this._updateManipulationWidget(this._toolbarWidgets.getByName("undo"),Boolean(lt.length)),this._updateManipulationWidget(this._toolbarWidgets.getByName("redo"),Boolean(xt.length))}}updateTableWidgets(){if(this.quill.getModule("table")){var lt=this.quill.getSelection(),xt=lt&&this.quill.getFormat(lt)||{},Tn=this._tableFormats.some(ii=>Boolean(xt[ii]));ae.forEach(ii=>{var wi="insertTable"===ii,Pi=this._toolbarWidgets.getByName(ii);this._updateManipulationWidget(Pi,wi?!Tn:Tn)})}}_updateManipulationWidget(Qe,lt){Qe&&Qe.option("disabled",!lt)}updateFormatWidgets(Qe){var lt=this.quill.getSelection();if(lt){var xt=this.quill.getFormat(lt),Tn=!(0,f.Qr)(xt);for(var ii in(!Tn||Qe)&&this._resetFormatWidgets(),xt){var wi=this._getFormatWidgetName(ii,xt),Pi=this._toolbarWidgets.getByName(wi)||this._toolbarWidgets.getByName(ii);Pi&&this._markActiveFormatWidget(ii,Pi,xt)}this._toggleClearFormatting(Tn||lt.length>1)}}_markActiveFormatWidget(Qe,lt,xt){this._isColorFormat(Qe)&&this._updateColorWidget(Qe,xt[Qe]),"value"in lt.option()?this._setValueSilent(lt,xt[Qe]):lt.$element().addClass(Wt)}_toggleClearFormatting(Qe){var lt=this._toolbarWidgets.getByName("clear");lt&&lt.option("disabled",!Qe)}_isColorFormat(Qe){return"color"===Qe||"background"===Qe}_updateColorWidget(Qe,lt){var xt=this._toolbarWidgets.getByName(Qe);xt&&xt.$element().find(".".concat("dx-icon")).css("borderBottomColor",lt||"transparent")}_getFormatWidgetName(Qe,lt){var xt;switch(Qe){case"align":xt=Qe+(0,pe.MI)(lt[Qe]);break;case"list":xt=lt[Qe]+(0,pe.MI)(Qe);break;case"code-block":xt="codeBlock";break;case"script":xt=lt[Qe]+Qe;break;case"imageSrc":xt="image";break;default:xt=Qe}return xt}_setValueSilent(Qe,lt){this._isReset=!0,Qe.option("value",lt),this._isReset=!1}_resetFormatWidgets(){this._toolbarWidgets.each((Qe,lt)=>{this._resetFormatWidget(Qe,lt)})}_resetFormatWidget(Qe,lt){lt.$element().removeClass(Wt),this._isColorFormat(Qe)&&this._updateColorWidget(Qe),"clear"===Qe&&lt.option("disabled",!0),"dxSelectBox"===lt.NAME&&this._setValueSilent(lt,null)}addClickHandler(Qe,lt){this._formatHandlers[Qe]=lt;var xt=this._toolbarWidgets.getByName(Qe);xt&&"dxButton"===xt.NAME&&xt.option("onClick",lt)}}}const Nn=cr;var Yn=l(4722),st=Fe;R()&&(st=class extends Fe{constructor(Qe,lt){super(Qe,lt);var xt=this.editorInstance.NAME;b.Z.on(this.quill.root,(0,y.V4)("drop",xt),this._dropHandler.bind(this)),b.Z.on(this.quill.root,(0,y.V4)("paste",xt),this._pasteHandler.bind(this))}_dropHandler(Qe){var lt,xt=Qe.originalEvent.dataTransfer,Tn=null==xt||null===(lt=xt.files)||void 0===lt?void 0:lt.length;this.saveValueChangeEvent(Qe),Qe.preventDefault(),Tn&&this._getImage(xt.files,this._addImage.bind(this))}_pasteHandler(Qe){var lt,{clipboardData:xt}=Qe.originalEvent;if(this.saveValueChangeEvent(Qe),xt){var Tn=null===(lt=xt.items)||void 0===lt?void 0:lt.length;!xt.getData("text/html")&&Tn&&this._getImage(xt.items,wi=>{this._isBrowserSupportImagePaste(Yn.Z)||this._addImage(wi)})}}_isBrowserSupportImagePaste(Qe){var{mozilla:lt,chrome:xt,version:Tn}=Qe;return lt||xt&&Tn>82}_isImage(Qe){return!!Qe.type.match(/^image\/(a?png|bmp|gif|p?jpe?g|svg|vnd\.microsoft\.icon|webp)/i)}_getImage(Qe,lt){var xt=(0,Qi.Jj)();(0,ie.S6)(Qe,(Tn,ii)=>{if(this._isImage(ii)){var wi=new xt.FileReader;wi.onload=Li=>{var{target:rr}=Li;lt(rr.result)};var Pi=ii.getAsFile?ii.getAsFile():ii;Pi instanceof xt.Blob&&wi.readAsDataURL(Pi)}})}_addImage(Qe){var lt=this.quill.getSelection(),xt=lt?lt.index:this.quill.getLength();this.quill.insertEmbed(xt,"extendedImage",Qe,"user")}});const Vt=st;var rn=l(5450),Dn=l(9609),rt=l(4137),gt=Fe;R()&&(gt=class extends Fe{_getDefaultOptions(){return{dataSource:null}}constructor(Qe,lt){super(Qe,lt),this.options=(0,C.l)({},this._getDefaultOptions(),lt),this._popup=this.renderPopup(),this._popup.$wrapper().addClass("dx-suggestion-list-wrapper"),this._renderPreventFocusOut()}renderList(Qe,lt){var xt=(0,I.Z)("<div>").addClass("dx-suggestion-list").appendTo(Qe);this._list=this.options.editorInstance._createComponent(xt,rt.Z,lt)}renderPopup(){var Qe=this.options.editorInstance,lt=(0,I.Z)("<div>").appendTo(Qe.$element()),xt=this._getPopupConfig();return Qe._createComponent(lt,Dn.Z,xt)}_getPopupConfig(){return{contentTemplate:Qe=>{var lt=this._getListConfig(this.options);this.renderList((0,I.Z)(Qe),lt)},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(Qe){return{dataSource:Qe.dataSource,onSelectionChanged:this.selectionChangedHandler.bind(this),selectionMode:"single",pageLoadMode:"scrollBottom"}}get maxHeight(){var Qe=(0,Qi.Jj)(),lt=Qe&&(0,me.Cr)(Qe)||0;return Math.max(100,.5*lt)}selectionChangedHandler(Qe){this._popup.option("visible")&&(this._popup.hide(),this.insertEmbedContent(Qe))}_renderPreventFocusOut(){var Qe=(0,y.V4)("mousedown","dxHtmlEditorPopupModule");b.Z.on(this._popup.$wrapper(),Qe,lt=>{lt.preventDefault()})}insertEmbedContent(Qe){}showPopup(){this._popup&&this._popup.show()}savePosition(Qe){this.caretPosition=Qe}getPosition(){return this.caretPosition}});const Ci=gt;var Ii={};if(R()){var zi=R().import("blots/embed");(Ii=class extends zi{static create(Qe){var xt,Tn,lt=super.create(),ii=Qe.value;return Array.isArray(Qe.escapeChar)?(xt=(0,p.IS)(Qe.escapeChar[0],""),Tn=(0,p.IS)(Qe.escapeChar[1],"")):xt=Tn=Qe.escapeChar,lt.innerText=xt+ii+Tn,lt.dataset.varStartEscChar=xt,lt.dataset.varEndEscChar=Tn,lt.dataset.varValue=Qe.value,lt}static value(Qe){return(0,C.l)({},{value:Qe.dataset.varValue,escapeChar:[Qe.dataset.varStartEscChar||"",Qe.dataset.varEndEscChar||""]})}}).blotName="variable",Ii.tagName="span",Ii.className="dx-variable"}const Xi=Ii;var wr=Fe;R()&&(R().register({"formats/variable":Xi},!0),wr=class extends Ci{_getDefaultOptions(){var Qe=super._getDefaultOptions();return(0,C.l)(Qe,{escapeChar:""})}constructor(Qe,lt){super(Qe,lt);var xt=Qe.getModule("toolbar");xt&&xt.addClickHandler("variable",this.showPopup.bind(this)),Qe.keyboard.addBinding({key:"P",altKey:!0},this.showPopup.bind(this)),this._popup.on("shown",Tn=>{var ii=(0,I.Z)(Tn.component.option("position").of);ii.hasClass("dx-variable-format")&&ii.addClass("dx-format-active")})}showPopup(Qe){var lt=this.quill.getSelection(!0),xt=lt?lt.index:this.quill.getLength();this.savePosition(xt),this._resetPopupPosition(Qe,xt),super.showPopup()}_resetPopupPosition(Qe,lt){if(Qe&&Qe.element)this._popup.option("position",{of:Qe.element,offset:{h:0,v:0},my:"top center",at:"bottom center",collision:"fit"});else{var xt=this.quill.getBounds(lt),Tn=(0,rn.l)(this.quill.root);this._popup.option("position",{of:this.quill.root,offset:{h:xt.left,v:xt.bottom-Tn.height},my:"top center",at:"bottom left",collision:"fit flip"})}}insertEmbedContent(Qe){var lt=this.getPosition(),xt=Qe.component.option("selectedItem"),Tn=(0,C.l)({},{value:xt,escapeChar:this.options.escapeChar});setTimeout(function(){this.quill.insertEmbed(lt,"variable",Tn),this.quill.setSelection(lt+1)}.bind(this))}});const Xr=wr;var ko=l(227),no=l(6961),Uo=l(6498),go="dxHtmlResizingModule",Vo=(0,y.V4)("keydown",go),So=(0,y.V4)("scroll",go),ba=(0,y.V4)("mousedown",go);class Ho extends Fe{constructor(lt,xt){super(lt,xt),this.allowedTargets=xt.allowedTargets||["image"],this.enabled=!!xt.enabled,this._hideFrameWithContext=this.hideFrame.bind(this),this._framePositionChangedHandler=this._prepareFramePositionChangedHandler(),this.enabled&&(this._attachEvents(),this._createResizeFrame())}_attachEvents(){b.Z.on(this.quill.root,(0,y.V4)(ko.u,go),this._clickHandler.bind(this)),b.Z.on(this.quill.root,So,this._framePositionChangedHandler),this.editorInstance.on("focusOut",this._hideFrameWithContext),this.quill.on("text-change",this._framePositionChangedHandler)}_detachEvents(){b.Z.off(this.quill.root,go),this.editorInstance.off("focusOut",this._hideFrameWithContext),this.quill.off("text-change",this._framePositionChangedHandler)}_clickHandler(lt){if(this._isAllowedTarget(lt.target)){if(this._$target===lt.target)return;this._$target=lt.target;var xt=(0,I.Z)(this._$target),Tn=Math.max((0,me.Y_)(xt)-(0,me.dz)(xt),this.resizable.option("minWidth")),ii=Math.max((0,me.zp)(xt)-(0,me.Cr)(xt),this.resizable.option("minHeight"));this.resizable.option({minWidth:Tn,minHeight:ii}),this.updateFramePosition(),this.showFrame(),this._adjustSelection()}else this._$target&&this.hideFrame()}_prepareFramePositionChangedHandler(lt){return()=>{this._$target&&this.updateFramePosition()}}_adjustSelection(){this.quill.getSelection()||this.quill.setSelection(0,0)}_isAllowedTarget(lt){return this._isImage(lt)}_isImage(lt){return-1!==this.allowedTargets.indexOf("image")&&"IMG"===lt.tagName.toUpperCase()}showFrame(){this._$resizeFrame.show(),b.Z.on(this.quill.root,Vo,this._handleFrameKeyDown.bind(this))}_handleFrameKeyDown(lt){var xt=(0,y.EV)(lt);("del"===xt||"backspace"===xt)&&this._deleteImage(),this.hideFrame()}hideFrame(){this._$target=null,this._$resizeFrame.hide(),b.Z.off(this.quill.root,Vo)}updateFramePosition(){var{height:lt,width:xt,top:Tn,left:ii}=(0,rn.l)(this._$target),{top:wi,left:Pi}=(0,rn.l)(this.quill.root),Li=this._getBorderWidth();this._$resizeFrame.css({height:lt,width:xt,padding:1,top:Tn-wi-Li-1,left:ii-Pi-Li-1}),(0,no.pB)(this._$resizeFrame,{left:0,top:0})}_getBorderWidth(){return parseInt(this._$resizeFrame.css("borderTopWidth"))}_createResizeFrame(){if(!this._$resizeFrame){var{deviceType:lt}=T.Z.current();this._$resizeFrame=(0,I.Z)("<div>").addClass("dx-resize-frame").toggleClass("dx-touch-device","desktop"!==lt).appendTo(this.editorInstance._getQuillContainer()).hide(),b.Z.on(this._$resizeFrame,ba,xt=>{xt.preventDefault()}),this.resizable=this.editorInstance._createComponent(this._$resizeFrame,Uo.Z,{onResize:xt=>{this._$target&&((0,I.Z)(this._$target).attr({height:xt.height,width:xt.width}),this.updateFramePosition())}})}}_deleteImage(){var lt;this._isAllowedTarget(this._$target)&&(null===(lt=R().find(this._$target))||void 0===lt||lt.deleteAt(0))}option(lt,xt){"mediaResizing"!==lt?"enabled"===lt?(this.enabled=xt,xt?this._attachEvents():this._detachEvents()):"allowedTargets"===lt&&Array.isArray(xt)&&(this.allowedTargets=xt):this.handleOptionChangeValue(xt)}clean(){this._detachEvents(),this._$resizeFrame.remove(),this._$resizeFrame=void 0}}var da=l(3824),ja=l(130),us="dx-htmleditor-column-resizer",Ko="dx-htmleditor-row-resizer",ca={minColumnWidth:40,minRowHeight:24},La="dxHtmlTableResizingModule",jo=(0,y.V4)("dxpointerdown",La),ta=(0,y.V4)("scroll",La);class Oa extends Fe{constructor(lt,xt){super(lt,xt),this.enabled=!!xt.enabled,this._tableResizeFrames=[],this._minColumnWidth=this._minSizeLimit("minColumnWidth",xt.minColumnWidth),this._minRowHeight=this._minSizeLimit("minRowHeight",xt.minRowHeight),this._quillContainer=this.editorInstance._getQuillContainer(),this._tableData=[],this.enabled&&this._applyResizing()}_applyResizing(lt){lt?this._applyResizingImpl():this.editorInstance.addContentInitializedCallback(this._applyResizingImpl.bind(this)),this.addCleanCallback(this.clean.bind(this)),this._resizeHandlerWithContext=da.Z.add(this._resizeHandler.bind(this))}_minSizeLimit(lt,xt){return(0,f.$K)(xt)?Math.max(xt,0):ca[lt]}_applyResizingImpl(){var lt=this._findTables();lt.length&&(this._fixTablesWidths(lt),this._createResizeFrames(lt),this._updateFramesPositions(),this._updateFramesSeparators()),this._attachEvents()}_attachEvents(){b.Z.on(this.editorInstance._getContent(),ta,this._updateFramesPositions.bind(this)),this.quill.on("text-change",this._getQuillTextChangeHandler())}_detachEvents(){b.Z.off(this.editorInstance._getContent(),La),this.quill.off("text-change",this._quillTextChangeHandler)}_getQuillTextChangeHandler(lt,xt,Tn){return(ii,wi,Pi)=>{if(this._isTableChanging()){var Li=this._findTables();this._removeResizeFrames(),"api"===Pi&&this._fixTablesWidths(Li),this._updateTablesColumnsWidth(Li),this._createResizeFrames(Li),this._updateFramesPositions(),this._updateFramesSeparators()}else this._updateFramesPositions(),this._isDragging||this._updateFramesSeparators()}}_getFrameForTable(lt){var xt;return null===(xt=this._framesForTables)||void 0===xt?void 0:xt.get(lt.get(0))}_resizeHandler(){this._windowResizeTimeout=setTimeout(()=>{var lt=this._findTables();(0,ie.S6)(lt,(xt,Tn)=>{var ii=(0,I.Z)(Tn),wi=this._tableResizeFrames[xt],Pi=(0,me.Y_)(ii),Li=this._tableLastWidth(wi);Math.abs(Pi-Li)>1&&(this._tableLastWidth(wi,Pi),this._updateColumnsWidth(ii,xt))}),this._updateFramesPositions(),this._updateFramesSeparators()})}_findTables(){return(0,I.Z)(this._quillContainer).find("table")}_getWidthStyleValue(lt){var xt=lt[0].style.width;return""!==xt?parseInt(xt):void 0}_tableLastWidth(lt,xt){if(!(0,f.$K)(xt))return lt?.lastWidth;lt.lastWidth=xt}_fixTablesWidths(lt){(0,ie.S6)(lt,(xt,Tn)=>{var ii=(0,I.Z)(Tn),wi=this._getTableDeterminantElements(ii,"horizontal");this._tableResizeFrames[xt]||(this._tableResizeFrames[xt]={lastWidth:void 0});var Pi=this._getFrameForTable(ii);if(Pi||this._tableResizeFrames.push({$table:ii}),0===Pe(ii).length){var Li,{columnsSum:rr}=this._getColumnElementsSum(wi);oe(ii,{quill:this.quill});var Cr=null!==(Li=this._tableLastWidth(Pi))&&void 0!==Li?Li:(0,me.Y_)(ii);Pi&&this._tableLastWidth(Pi,Math.max(rr,Cr))}})}_createResizeFrames(lt){this._framesForTables=new Map,lt.each((xt,Tn)=>{var ii,wi=(0,I.Z)(Tn),Pi=null===(ii=this._tableResizeFrames[xt])||void 0===ii?void 0:ii.$table,Li=this._tableResizeFrames[xt].lastWidth;this._tableResizeFrames[xt]={$frame:this._createTableResizeFrame(Tn),$table:wi,index:xt,lastWidth:Pi&&Tn===Pi.get(0)?Li:void 0,columnsCount:this._getTableDeterminantElements(wi,"horizontal").length,rowsCount:this._getTableDeterminantElements(wi,"vertical").length},this._framesForTables.set(Tn,this._tableResizeFrames[xt])}),this._tableResizeFrames.length=lt.length}_isTableChanging(){var lt=this._findTables(),xt=!1;return lt.length!==this._tableResizeFrames.length?xt=!0:(0,ie.S6)(lt,(Tn,ii)=>{var wi=(0,I.Z)(ii),Pi=this._tableResizeFrames[Tn],Li=Pi?.columnsCount!==this._getTableDeterminantElements(wi,"horizontal").length,rr=Pi?.rowsCount!==this._getTableDeterminantElements(wi,"vertical").length;if(Li||rr)return xt=!0,!1}),xt}_removeResizeFrames(lt){var xt;(0,ie.S6)(this._tableResizeFrames,(Tn,ii)=>{if(ii.$frame){var wi,Pi=".".concat(us,", .").concat(Ko);this._detachSeparatorEvents(null===(wi=ii.$frame)||void 0===wi?void 0:wi.find(Pi)),ii.$frame.remove()}}),null===(xt=this._framesForTables)||void 0===xt||xt.clear(),lt&&(this._tableResizeFrames=[])}_detachSeparatorEvents(lt){lt.each((xt,Tn)=>{b.Z.off(Tn,jo)})}_createTableResizeFrame(){return(0,I.Z)("<div>").addClass("dx-table-resize-frame").appendTo(this._quillContainer)}_updateFramesPositions(){(0,ie.S6)(this._tableResizeFrames,(lt,xt)=>{this._updateFramePosition(xt.$table,xt.$frame)})}_updateFramePosition(lt,xt){var{height:Tn,width:ii,top:wi,left:Pi}=(0,rn.l)(lt.get(0)),{top:Li,left:rr}=(0,rn.l)(this.quill.root);xt.css({height:Tn,width:ii,top:wi-Li,left:Pi-rr}),(0,no.pB)(xt,{left:0,top:0})}_updateFramesSeparators(lt){(0,ie.S6)(this._tableResizeFrames,(xt,Tn)=>{lt?this._updateFrameSeparators(Tn,lt):(this._updateFrameSeparators(Tn,"vertical"),this._updateFrameSeparators(Tn,"horizontal"))})}_isDraggable(lt){return lt.hasClass("dx-draggable")&&lt.is(":visible")}_removeDraggable(lt,xt){this._isDraggable(lt)&&((0,I.Z)(lt).dxDraggable("instance").dispose(),(0,I.Z)(lt).addClass(xt))}_getDirectionInfo(lt){return"vertical"===lt?{lineResizerClass:Ko,sizeFunction:xt=>(0,me.zp)(xt),positionCoordinate:"top",positionStyleProperty:"height",positionCoordinateName:"y"}:{lineResizerClass:us,sizeFunction:xt=>(0,me.Y_)(xt),positionCoordinate:this.editorInstance.option("rtlEnabled")?"right":"left",positionStyleProperty:"width",positionCoordinateName:"x"}}_getSize(lt,xt){return xt.sizeFunction(lt)}_updateFrameSeparators(lt,xt){for(var Tn=this._getTableDeterminantElements(lt.$table,xt),wi=Tn.length-1,Pi=this._getDirectionInfo(xt),Li=lt.$frame.find(".".concat(Pi.lineResizerClass)),rr={transform:"none"},Cr=0,qr=0;qr<=wi;qr++){Cr+=this._getSize(Tn.eq(qr),Pi),(0,f.$K)(Li[qr])||(Li[qr]=(0,I.Z)("<div>").addClass(Pi.lineResizerClass).appendTo(lt.$frame).get(0));var lo=(0,I.Z)(Li[qr]);this._removeDraggable(lo,Pi.lineResizerClass),rr[Pi.positionCoordinate]=Cr-2,(0,I.Z)(lo).css(rr),this._attachColumnSeparatorEvents({lineSeparator:Li[qr],index:qr,$determinantElements:Tn,frame:lt,direction:xt})}}_getTableDeterminantElements(lt,xt){return"vertical"===xt?lt.find("th:first-child, td:first-child"):ye(lt)}_attachColumnSeparatorEvents(lt){b.Z.on(lt.lineSeparator,jo,()=>{this._createDraggableElement(lt)})}_dragStartHandler(lt){var{$determinantElements:xt,index:Tn,frame:ii,direction:wi,lineSeparator:Pi}=lt,Li=this._getDirectionInfo(wi);this._isDragging=!0,this._fixColumnsWidth(ii.$table),this._startLineSize=parseInt(this._getSize((0,I.Z)(xt[Tn]),Li)),this._startTableWidth=(0,me.Y_)(ii.$table),this._startLineSeparatorPosition=parseInt((0,I.Z)(Pi).css(Li.positionCoordinate)),this._nextLineSize=0,xt[Tn+1]?this._nextLineSize=parseInt(this._getSize((0,I.Z)(xt[Tn+1]),Li)):"horizontal"===wi&&oe(ii.$table,{quill:this.quill})}_shouldRevertOffset(lt){return"horizontal"===lt&&this.editorInstance.option("rtlEnabled")}_isNextColumnWidthEnough(lt,xt,Tn){if(!this._nextLineSize)return!0;if(lt>=this._minColumnWidth){var ii=this._nextColumnOffsetLimit?Tn<this._nextColumnOffsetLimit:Tn<0,wi=Math.abs(this._getWidthStyleValue(xt)-(0,me.Y_)(xt))>3;return ii||!wi}return!1}_shouldSetNextColumnWidth(lt){return this._nextLineSize&&lt>0}_horizontalDragHandler(lt){var{currentLineNewSize:xt,directionInfo:Tn,eventOffset:ii,$determinantElements:wi,index:Pi,frame:Li}=lt,rr=this._nextLineSize&&this._nextLineSize-ii,Cr=xt>=this._minColumnWidth,qr=ft(Li.$table,Pi),lo=ft(Li.$table,Pi+1),mo=(0,me.Y_)(qr.eq(0))-xt;if(Cr)if(this._isNextColumnWidthEnough(rr,wi.eq(Pi+1),ii)){Ne(this,{elements:qr,property:Tn.positionStyleProperty,value:xt}),this._shouldSetNextColumnWidth(rr)&&Ne(this,{elements:lo,property:Tn.positionStyleProperty,value:rr});var bo=Math.abs(this._startTableWidth-(0,me.Y_)(Li.$table))<3;(Math.abs(mo)>3||!this._nextLineSize&&bo)&&(Ne(this,{elements:qr,property:Tn.positionStyleProperty,value:(0,me.Y_)(qr.eq(0))}),rr+=xt-(0,me.Y_)(qr.eq(0)),this._shouldSetNextColumnWidth(rr)&&Ne(this,{elements:lo,property:Tn.positionStyleProperty,value:rr}))}else this._nextColumnOffsetLimit=this._nextColumnOffsetLimit||ii;this._$highlightedElement.css(Tn.positionCoordinate,this._startLineSeparatorPosition+ii+mo+"px")}_verticalDragHandler(lt){var{currentLineNewSize:xt,directionInfo:Tn,eventOffset:ii,$determinantElements:wi,index:Pi,frame:Li}=lt,rr=Math.max(xt,this._minRowHeight);Ne(this,{elements:ft(Li.$table,Pi,"vertical"),property:Tn.positionStyleProperty,value:rr});var qr=(0,me.zp)(wi.eq(Pi))-xt;this._$highlightedElement.css(Tn.positionCoordinate,this._startLineSeparatorPosition+ii+qr+"px")}_dragMoveHandler(lt,xt){var{$determinantElements:Tn,index:ii,frame:wi,direction:Pi}=xt,Li=this._getDirectionInfo(Pi),rr=lt.offset[Li.positionCoordinateName];this.editorInstance._saveValueChangeEvent(lt),this._shouldRevertOffset(Pi)&&(rr=-rr);var Cr=this._startLineSize+rr;"horizontal"===Pi?this._horizontalDragHandler({currentLineNewSize:Cr,directionInfo:Li,eventOffset:rr,$determinantElements:Tn,index:ii,frame:wi}):this._verticalDragHandler({currentLineNewSize:Cr,directionInfo:Li,eventOffset:rr,$determinantElements:Tn,index:ii,frame:wi}),this._updateFramePosition(wi.$table,wi.$frame)}_dragEndHandler(lt){var xt;null===(xt=this._$highlightedElement)||void 0===xt||xt.remove(),this._isDragging=void 0,this._nextColumnOffsetLimit=void 0,this._tableLastWidth(lt.frame,(0,me.Y_)(lt.frame.$table)),this._updateFramesPositions(),this._updateFramesSeparators()}_isLastColumnResizing(lt){var{$determinantElements:xt,index:Tn}=lt;return!(0,f.$K)(xt[Tn+1])}_getBoundaryConfig(lt){var xt={};if("vertical"===lt.direction)xt.boundary=lt.frame.$table,xt.boundOffset={bottom:(0,Qi.Ym)()?-(0,me.Cr)((0,Qi.Jj)()):-(0,me.zp)(this._quillContainer),top:0,left:0,right:0};else if(this._isLastColumnResizing(lt)){var Tn=this.editorInstance._getContent();xt.boundary=Tn,xt.boundOffset={bottom:0,top:0,left:Tn.css("paddingLeft"),right:Tn.css("paddingRight")}}else xt.boundary=lt.frame.$table;return xt}_createDraggableElement(lt){var xt,Tn=this._getBoundaryConfig(lt),ii="vertical"===lt.direction?"dx-htmleditor-highlighted-row":"dx-htmleditor-highlighted-column";null===(xt=this._$highlightedElement)||void 0===xt||xt.remove(),this._$highlightedElement=(0,I.Z)("<div>").addClass("".concat(ii)).insertAfter((0,I.Z)(lt.lineSeparator));var wi={contentTemplate:null,allowMoveByClick:!1,dragDirection:lt.direction,onDragMove:Pi=>{var{event:rr}=Pi;this._dragMoveHandler(rr,lt)},onDragStart:()=>{this._dragStartHandler(lt)},onDragEnd:()=>{this._dragEndHandler(lt)}};(0,C.l)(wi,Tn),this._currentDraggableElement=this.editorInstance._createComponent(lt.lineSeparator,ja.Z,wi)}_fixColumnsWidth(lt){var xt=this._getTableDeterminantElements(lt);(0,ie.S6)(xt,(Tn,ii)=>{var wi=(0,me.Y_)(ii);Ne(this,{elements:ft(lt,Tn),property:"width",value:Math.max(wi,this._minColumnWidth)})})}_getColumnElementsSum(lt){var xt=[],Tn=0;return(0,ie.S6)(lt,(ii,wi)=>{var Pi=(0,I.Z)(wi),Li=this._getWidthStyleValue(Pi)||(0,me.Y_)(Pi);xt[ii]=Math.max(Li,this._minColumnWidth),Tn+=xt[ii]}),{columnsWidths:xt,columnsSum:Tn}}_setColumnsRatioWidth(lt,xt,Tn,ii){(0,ie.S6)(lt,wi=>{Ne(this,{elements:ft(ii,wi),property:"width",value:xt>0?this._minColumnWidth+Math.round((Tn[wi]-this._minColumnWidth)*xt):this._minColumnWidth})})}_updateColumnsWidth(lt,xt){var Tn=this._getTableDeterminantElements(lt),ii=this._tableResizeFrames[xt];ii||(this._tableResizeFrames[xt]={});var Pi,wi=this._tableLastWidth(ii=this._tableResizeFrames[xt])||(0,me.Y_)(lt),{columnsWidths:Li,columnsSum:rr}=this._getColumnElementsSum(Tn),Cr=Tn.length*this._minColumnWidth;this._tableLastWidth(ii,(Pi=rr>Cr?(wi-Cr)/(rr-Cr):-1)>0?wi:Cr),this._setColumnsRatioWidth(Tn,Pi,Li,lt)}_updateTablesColumnsWidth(lt){(0,ie.S6)(lt,(xt,Tn)=>{this._updateColumnsWidth((0,I.Z)(Tn),xt)})}option(lt,xt){"tableResizing"!==lt?"enabled"===lt?(this.enabled=xt,xt?this._applyResizing(!0):this.clean()):["minColumnWidth","minRowHeight"].includes(lt)&&(this["_".concat(lt)]=this._minSizeLimit(lt,xt)):this.handleOptionChangeValue(xt)}clean(){this._removeResizeFrames(!0),this._detachEvents(),da.Z.remove(this._resizeHandlerWithContext),clearTimeout(this._windowResizeTimeout),this._resizeHandlerWithContext=void 0,this._isDragging=void 0,this._startTableWidth=void 0,clearTimeout(this._attachResizerTimeout)}}var ma=l(1875),$o=(0,y.V4)("dxcontextmenu","dxHtmlEditorTableContextMenu"),Da=Fe,_a=Qe=>le.Z.format("dxHtmlEditor-".concat((0,pe._A)(Qe)));R()&&(Da=class extends Fe{constructor(Qe,lt){super(Qe,lt),this.enabled=!!lt.enabled,this._quillContainer=this.editorInstance._getQuillContainer(),this.addCleanCallback(this.prepareCleanCallback()),this._formatHandlers=so(this),this._tableFormats=te(Qe),this.enabled&&this._enableContextMenu(lt.items)}_enableContextMenu(Qe){var lt;null===(lt=this._contextMenu)||void 0===lt||lt.dispose(),this._contextMenu=this._createContextMenu(Qe),this._attachEvents()}_attachEvents(){b.Z.on(this.editorInstance._getContent(),$o,this._prepareContextMenuHandler())}_detachEvents(){b.Z.off(this.editorInstance._getContent(),$o)}_createContextMenu(Qe){var lt=(0,I.Z)("<div>").appendTo(this.editorInstance.$element()),xt=this._getMenuConfig(Qe);return this.editorInstance._createComponent(lt,ma.Z,xt)}showPropertiesForm(){var Qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cell",lt=(0,I.Z)(this._targetElement).closest("cell"===Qe?"th, td":"table");this._contextMenu.hide(),this._formatHandlers["".concat(Qe,"Properties")](lt),this._targetElement=null}_isAcceptableItem(Qe,lt){return!Qe||Qe===lt}_handleObjectItem(Qe){if(Qe.name&&this._isAcceptableItem(Qe.widget,"dxButton")){var lt=this._prepareMenuItemConfig(Qe.name);return(0,C.l)(!0,lt,Qe)}return Qe.items&&(Qe.items=this._prepareMenuItems(Qe.items)),Qe}_prepareMenuItemConfig(Qe){var lt,xt,Tn=null!==(lt=Tr[Qe])&&void 0!==lt?lt:Qe,ii=(0,pe.MI)(Qe);return{text:_a(ii),icon:Tn.toLowerCase(),onClick:null!==(xt=this._formatHandlers[Qe])&&void 0!==xt?xt:_i(this,Qe)}}_prepareMenuItems(Qe){var lt=[];return(0,ie.S6)(Qe,(xt,Tn)=>{var ii;(0,f.Kn)(Tn)?ii=this._handleObjectItem(Tn):(0,f.HD)(Tn)&&(ii=this._prepareMenuItemConfig(Tn)),ii&&lt.push(ii)}),lt}_getMenuConfig(Qe){var lt=[{text:_a("insert"),items:["insertHeaderRow","insertRowAbove","insertRowBelow",(0,C.l)(this._prepareMenuItemConfig("insertColumnLeft"),{beginGroup:!0}),"insertColumnRight"]},{text:_a("delete"),items:["deleteColumn","deleteRow","deleteTable"]},(0,C.l)(this._prepareMenuItemConfig("cellProperties"),{onClick:Tn=>{this.showPropertiesForm("cell")}}),(0,C.l)(this._prepareMenuItemConfig("tableProperties"),{onClick:Tn=>{this.showPropertiesForm("table")}})],xt=this._prepareMenuItems(null!=Qe&&Qe.length?Qe:lt);return{target:this._quillContainer,showEvent:null,hideOnParentScroll:!1,items:xt}}_prepareContextMenuHandler(){return Qe=>{this._isTableTarget(Qe.target)&&(this._targetElement=Qe.target,this._setContextMenuPosition(Qe),this._contextMenu.show(),Qe.preventDefault())}}_setContextMenuPosition(Qe){var lt=this._quillContainer.get(0).getBoundingClientRect();this._contextMenu.option({position:{my:"left top",at:"left top",collision:"fit fit",offset:{x:Qe.clientX-lt.left,y:Qe.clientY-lt.top}}})}_isTableTarget(Qe){return!!(0,I.Z)(Qe).closest(".dx-htmleditor-content td, .dx-htmleditor-content th").length}clean(){this._detachEvents()}option(Qe,lt){if("tableContextMenu"!==Qe){if("enabled"===Qe)this.enabled=lt,lt?this._enableContextMenu():this.clean();else if("items"===Qe){var xt;null===(xt=this._contextMenu)||void 0===xt||xt.dispose(),this._contextMenu=this._createContextMenu(lt)}}else this.handleOptionChangeValue(lt)}prepareCleanCallback(){return()=>{this.clean()}}});const va=Da;var pa="dxHtmlEditorImageUpload",Kt=Fe;R()&&(Kt=class extends Fe{constructor(Qe,lt){super(Qe,lt),this.options=lt,this._quillContainer=this.editorInstance._getQuillContainer(),this.addCleanCallback(this.prepareCleanCallback()),this._handleServerUpload()}_handleServerUpload(){(0,f.$K)(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 Qe;this._getUploaderModule().preventImageUploading(!1),this._detachEvents(),null===(Qe=this._fileUploader)||void 0===Qe||Qe.dispose()}_enableDragAndDropUploading(){this._initFileUploader(),this._getUploaderModule().preventImageUploading(!0),this._attachEvents()}_initFileUploader(){var Qe=(0,I.Z)("<div>").addClass("dx-htmleditor-hidden-content").appendTo(this._quillContainer),lt=(0,C.l)({},{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(Qe,Ye.Z,lt),Qe}_onUploaded(Qe){var lt,{index:xt}=null!==(lt=this.quill.getSelection())&&void 0!==lt?lt:{index:this.quill.getLength()},Tn=di(this.options.uploadDirectory)+Qe.file.name;$i(this.quill,xt,{src:Tn}),this.quill.setSelection(xt+1,0)}_attachEvents(){b.Z.on(this.quill.root,(0,y.V4)("drop",pa),this._dropHandler.bind(this)),b.Z.on(this.quill.root,(0,y.V4)("paste",pa),this._pasteHandler.bind(this))}_detachEvents(){b.Z.off(this.quill.root,pa)}_dropHandler(Qe){this._handleInsertImages(Qe,"dataTransfer")}_pasteHandler(Qe){this._handleInsertImages(Qe,"clipboardData")}_handleInsertImages(Qe,lt){this.saveValueChangeEvent(Qe);var Tn=Array.from(Qe.originalEvent[lt].files||[]);Tn.length&&(Qe.preventDefault(),Qe.stopPropagation(),this._fileUploader.option("value",Tn),this._fileUploader.upload())}clean(){this._disableDragAndDropUploading()}prepareCleanCallback(){return()=>{this.clean()}}option(Qe,lt){switch(Qe){case"imageUpload":this.handleOptionChangeValue(lt);break;case"fileUploadMode":this.options.fileUploadMode=lt,this._handleServerUpload();break;case"fileUploaderOptions":this._fileUploader.option(lt)}}});const Pt=Kt;var Vi=(0,y.V4)("dxclick","dxHtmlEditorImageCursor"),Wr=Fe;R()&&(Wr=class extends Fe{constructor(Qe,lt){super(Qe,lt),this.addCleanCallback(this.clean.bind(this)),this._attachEvents()}_attachEvents(){b.Z.on(this.quill.root,Vi,this._clickHandler.bind(this))}_detachEvents(){b.Z.off(this.quill.root,Vi)}_clickHandler(Qe){this._isAllowedTarget(Qe.target)&&this._adjustSelection(Qe)}_isAllowedTarget(Qe){return this._isImage(Qe)}_isImage(Qe){return"IMG"===Qe.tagName.toUpperCase()}_adjustSelection(Qe){var lt=this.quill.scroll.find(Qe.target);if(lt){var xt=lt.offset(this.quill.scroll);this.quill.setSelection(xt+1,0)}else this.quill.setSelection(0,0)}clean(){this._detachEvents()}});const fo=Wr;var vt=l(6738),ot={};if(R()){var We=R().import("blots/embed");(ot=class extends We{static create(Qe){var lt=super.create();return lt.setAttribute("spellcheck",!1),lt.dataset.marker=Qe.marker,lt.dataset.mentionValue=Qe.value,lt.dataset.id=Qe.id,this.renderContent(lt,Qe),lt}static value(Qe){return{marker:Qe.dataset.marker,id:Qe.dataset.id,value:Qe.dataset.mentionValue}}static renderContent(Qe,lt){var xt=this._templates.get(lt.marker);xt?xt.render({model:lt,container:Qe}):this.baseContentRender(Qe,lt)}static baseContentRender(Qe,lt){var xt=(0,I.Z)("<span>").text(lt.marker);(0,I.Z)(Qe).append(xt).append(lt.value)}static addTemplate(Qe,lt){this._templates.set(Qe,lt)}static removeTemplate(Qe){this._templates.delete(Qe)}}).blotName="mention",ot.tagName="span",ot.className="dx-mention",ot._templates=new Map}const at=ot;var Yt=Fe;if(R()){var Qn={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"},Mi=[Qn.ARROW_LEFT,Qn.ARROW_RIGHT,Qn.PAGE_UP,Qn.PAGE_DOWN,Qn.END,Qn.HOME],vi=[" ","\n"];R().register({"formats/mention":at},!0),Yt=class extends Ci{_getDefaultOptions(){var Qe=super._getDefaultOptions();return(0,C.l)(Qe,{itemTemplate:"item",valueExpr:"this",displayExpr:"this",template:null,searchExpr:null,searchTimeout:500,minSearchLength:0})}constructor(Qe,lt){super(Qe,lt),this._mentions={},lt.mentions.forEach(xt=>{var Tn=xt.marker;Tn||(xt.marker=Tn="@");var ii=xt.template;if(ii){var wi=this.editorInstance._getTemplate(ii);wi&&at.addTemplate(Tn,wi)}this._mentions[Tn]=(0,C.l)({},this._getDefaultOptions(),xt)}),this._attachKeyboardHandlers(),this.addCleanCallback(this.clean.bind(this)),this.quill.on("text-change",this.onTextChange.bind(this))}_attachKeyboardHandlers(){this.quill.keyboard.addBinding({key:Qn.ARROW_UP},this._moveToItem.bind(this,"prev")),this.quill.keyboard.addBinding({key:Qn.ARROW_DOWN},this._moveToItem.bind(this,"next")),this.quill.keyboard.addBinding({key:[Qn.ENTER,Qn.SPACE]},this._selectItemHandler.bind(this));var Qe=this.quill.keyboard.bindings[Qn.ENTER];Qe.unshift(Qe.pop()),this.quill.keyboard.addBinding({key:Qn.ESCAPE},this._escapeKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:[Qn.ARROW_LEFT,Qn.ARROW_RIGHT],shiftKey:!0},this._ignoreKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:Mi},this._ignoreKeyHandler.bind(this))}_moveToItem(Qe){var lt=this._list.getDataSource();if(this._isMentionActive&&!lt.isLoading()){var Tn="next"===Qe?"first":"last",ii=(0,I.Z)(this._list.option("focusedElement"))[Qe]();ii=ii.length?ii:this._activeListItems[Tn](),this._list.option("focusedElement",(0,a.u)(ii)),this._list.scrollToItem(ii)}return!this._isMentionActive}_ignoreKeyHandler(){return!this._isMentionActive}_fitIntoRange(Qe,lt,xt){return Qe>xt?lt:Qe<lt?xt:Qe}_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(Qe,lt){this.compileGetters(this.options),super.renderList(Qe,lt)}compileGetters(Qe){var{displayExpr:lt,valueExpr:xt}=Qe;this._valueGetter=(0,vt.vb)(lt),this._idGetter=(0,vt.vb)(xt)}_getListConfig(Qe){var lt=super._getListConfig(Qe);return(0,C.l)(lt,{itemTemplate:this.options.itemTemplate,onContentReady:()=>{this._hasSearch&&(this._popup.repaint(),this._focusFirstElement(),this._hasSearch=!1)}})}insertEmbedContent(){var Qe=this._activeMentionConfig.marker.length,lt=Qe+this._searchValue.length,xt=this.getPosition(),Tn=this._list.option("selectedItem"),ii={value:this._valueGetter(Tn),id:this._idGetter(Tn),marker:this._activeMentionConfig.marker},wi=R().import("delta"),Pi=Math.max(0,xt-Qe),Li=(new wi).retain(Pi).delete(lt).insert({mention:ii}).insert(" ");this.quill.updateContents(Li),this.quill.setSelection(Pi+2)}_getLastInsertOperation(Qe){var lt=Qe[Qe.length-1];if("insert"in lt)return lt;var Tn="delete"in lt;if(Tn&&Qe.length>=2){var ii=Qe[Qe.length-2];if(Tn&&"insert"in ii)return ii}return null}onTextChange(Qe,lt,xt){if("user"===xt)if(this._isMentionActive&&this._isPopupVisible)this._processSearchValue(Qe.ops[Qe.ops.length-1])&&this._filterList(this._searchValue);else{var{ops:ii}=Qe,wi=this._getLastInsertOperation(ii);wi&&this.checkMentionRequest(wi,ii)}}get _isPopupVisible(){var Qe;return null===(Qe=this._popup)||void 0===Qe?void 0:Qe.option("visible")}_processSearchValue(Qe){if("insert"in Qe)this._searchValue+=Qe.insert;else{if(!this._searchValue.length||Qe.delete>1)return this._popup.hide(),!1;this._searchValue=this._searchValue.slice(0,-1)}return!0}checkMentionRequest(Qe,lt){var{insert:xt}=Qe,Tn=this.quill.getSelection();if(xt&&(0,f.HD)(xt)&&Tn&&!this._isMarkerPartOfText(lt[0].retain)&&(this._activeMentionConfig=this._mentions[xt],this._activeMentionConfig)){this._updateList(this._activeMentionConfig);var ii=Tn.index&&"\n"===this._getCharByIndex(Tn.index-1);this.savePosition(Tn.index+ii),this._popup.option("position",this._popupPosition),this._searchValue="",this._popup.show()}}_isMarkerPartOfText(Qe){return!(!Qe||-1!==vi.indexOf(this._getCharByIndex(Qe-1)))}_getCharByIndex(Qe){return this.quill.getContents(Qe,1).ops[0].insert}_updateList(Qe){var{dataSource:lt,displayExpr:xt,valueExpr:Tn,itemTemplate:ii,searchExpr:wi}=Qe;this.compileGetters({displayExpr:xt,valueExpr:Tn}),this._list.unselectAll(),this._list.option({dataSource:lt,displayExpr:xt,itemTemplate:ii,searchExpr:wi})}_filterList(Qe){if(this._isMinSearchLengthExceeded(Qe)){var lt=this._activeMentionConfig.searchTimeout;lt?(clearTimeout(this._searchTimer),this._searchTimer=setTimeout(()=>{this._search(Qe)},lt)):this._search(Qe)}else this._resetFilter()}_isMinSearchLengthExceeded(Qe){return Qe.length>=this._activeMentionConfig.minSearchLength}_resetFilter(){clearTimeout(this._searchTimer),this._search(null)}_search(Qe){this._hasSearch=!0,this._list.option("searchValue",Qe)}_focusFirstElement(){if(this._list){var Qe=this._activeListItems.first();this._list.option("focusedElement",(0,a.u)(Qe)),this._list.scrollToItem(Qe)}}get _popupPosition(){var Qe=this.getPosition(),{left:lt,top:xt,height:Tn}=this.quill.getBounds(Qe&&Qe-1),{left:ii,top:wi}=(0,I.Z)(this.quill.root).offset();return{of:b.Z.Event("positionEvent",{pageX:ii+lt,pageY:wi+xt}),offset:{v:Tn},my:"top left",at:"top left",collision:{y:"flip",x:"flipfit"}}}_getPopupConfig(){return(0,C.l)(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(Qe=>{this._mentions[Qe].template&&at.removeTemplate(Qe)})}}}const bi=Yt;class tr{constructor(){if(!tr.initialized){var lt=this.getQuill(),xt=lt.import("attributors/style/direction");lt.register({"formats/align":M,"formats/direction":xt,"formats/font":G,"formats/size":Z,"formats/extendedImage":K,"formats/link":j,"modules/toolbar":Nn,"modules/dropImage":Vt,"modules/variables":Xr,"modules/resizing":Ho,"modules/tableResizing":Oa,"modules/tableContextMenu":va,"modules/imageUpload":Pt,"modules/imageCursor":fo,"modules/mentions":bi,"themes/basic":N},!0),this._customModules=[],tr._initialized=!0}}createEditor(lt,xt){return new(this.getQuill())(lt,xt)}registerModules(lt){var xt=RegExp("modules/*"),Tn=this.getQuill();for(var wi in lt)xt.test(wi)&&!Tn.imports[wi]&&this._customModules.push(wi.slice(8));Tn.register(lt,!0)}getRegisteredModuleNames(){return this._customModules}getQuill(){return P()}}const pr=tr,Gi=new class sr{constructor(){this._converters={}}addConverter(lt,xt){this._converters[lt]=xt}getConverter(lt){return this._converters[lt]}};function Lr(Qe){return Qe[1].match(/\S+\./)?"ordered":"bullet"}Gi.addConverter("delta",class er{setQuillInstance(lt){this.quillInstance=lt}toHtml(){if(this.quillInstance)return this._isQuillEmpty()?"":this.quillInstance.getSemanticHTML(0,this.quillInstance.getLength()+1)}_isQuillEmpty(){var lt=this.quillInstance.getContents();return 1===lt.length()&&this._isDeltaEmpty(lt)}_isDeltaEmpty(lt){return lt.reduce((xt,Tn)=>{var{insert:ii}=Tn;return-1!==ii.indexOf("\n")})}});var Br=l(2722),To="dx-formdialog";var Ma="markdown",wa="htmlContent",Aa="ios"===T.Z.current().platform,Xl=d.Z.inherit({_getDefaultOptions:function(){return(0,C.l)(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=(0,g.Z)(),this._contentInitializedCallback=(0,g.Z)()},_getAnonymousTemplateName:function(){return wa},_initTemplates:function(){this._templateManager.addDefaultTemplates({[wa]:new u.s}),this.callBase()},_focusTarget:function(){return this._getContent()},_getContent:function(){return this.$element().find(".".concat("dx-htmleditor-content"))},_focusInHandler:function(Qe){var{relatedTarget:lt}=Qe;this._shouldSkipFocusEvent(lt)||(this._toggleFocusClass(!0,this.$element()),this.callBase.apply(this,arguments))},_focusOutHandler:function(Qe){var{relatedTarget:lt}=Qe;this._shouldSkipFocusEvent(lt)||(this._toggleFocusClass(!1,this.$element()),this.callBase.apply(this,arguments))},_shouldSkipFocusEvent:function(Qe){return(0,I.Z)(Qe).hasClass("ql-clipboard")},_initMarkup:function(){this._$htmlContainer=(0,I.Z)("<div>").addClass("dx-quill-container"),this.$element().attr("role","application").addClass("dx-htmleditor").wrapInner(this._$htmlContainer),this._renderStylingMode();var Qe=this._getTemplate(wa);this._$templateResult=Qe&&Qe.render({container:(0,a.u)(this._$htmlContainer),noModel:!0,transclude:!0}),this._renderSubmitElement(),this.callBase(),this._updateContainerMarkup()},_renderSubmitElement:function(){this._$submitElement=(0,I.Z)("<textarea>").addClass("dx-htmleditor-submit-element").attr("hidden",!0).appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(Qe){this._getSubmitElement().val(Qe)},_getSubmitElement:function(){return this._$submitElement},_removeXSSVulnerableHtml:function(Qe){var lt=(0,I.Z)("<iframe>").css("display","none").attr({id:"xss-frame",sandbox:"allow-same-origin"}).appendTo("body"),wi=lt.get(0).contentWindow.document.body;wi.innerHTML=Qe;var Pi=rr=>{if(rr.attributes)for(var Cr=0;Cr<rr.attributes.length;Cr++){var qr=rr.attributes[Cr].name;qr.startsWith("on")&&rr.removeAttribute(qr)}if(rr.childNodes)for(var lo=0;lo<rr.childNodes.length;lo++)Pi(rr.childNodes[lo])};Pi(wi),(0,I.Z)(wi).find("script").remove();var Li=wi.innerHTML;return lt.remove(),Li},_updateContainerMarkup:function(){var Qe=this.option("value");if(this._isMarkdownValue()&&(this._prepareMarkdownConverter(),Qe=this._markdownConverter.toHtml(Qe)),Qe){var lt=this._removeXSSVulnerableHtml(Qe);this._$htmlContainer.html(lt)}},_prepareMarkdownConverter:function(){var Qe=Gi.getConverter("markdown");if(!Qe)throw h.Z.Error("E1051","markdown");this._markdownConverter=new Qe},_render:function(){this._prepareConverters(),this.callBase()},_prepareQuillRegistrator:function(){this._quillRegistrator||(this._quillRegistrator=new pr)},_getRegistrator:function(){return this._prepareQuillRegistrator(),this._quillRegistrator},_prepareConverters:function(){if(!this._deltaConverter){var Qe=Gi.getConverter("delta");Qe&&(this._deltaConverter=new Qe)}this.option("valueType")===Ma&&!this._markdownConverter&&this._prepareMarkdownConverter()},_renderContentImpl:function(){this._contentRenderedDeferred=new x.BH;var Qe=this._contentRenderedDeferred.promise();return this.callBase(),this._renderHtmlEditor(),this._renderFormDialog(),this._addKeyPressHandler(),Qe},_pointerMoveHandler:function(Qe){Aa&&Qe.stopPropagation()},_attachFocusEvents:function(){(0,p.g0)(this.callBase.bind(this))},_addKeyPressHandler:function(){var Qe=(0,y.V4)("keydown","".concat(this.NAME,"TextChange"));b.Z.on(this._$htmlContainer,Qe,this._keyDownHandler.bind(this))},_keyDownHandler:function(Qe){this._saveValueChangeEvent(Qe)},_renderHtmlEditor:function(){var Qe=this.option("customizeModules"),lt=this._getModulesConfig();(0,f.mf)(Qe)&&Qe(lt),this._quillInstance=this._getRegistrator().createEditor(this._$htmlContainer[0],{placeholder:this.option("placeholder"),readOnly:this.option("readOnly")||this.option("disabled"),modules:lt,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=(0,p.Wi)(()=>{this._applyTranscludedContent()}):this._finalizeContentRendering()},_renderScrollHandler:function(){var Qe=this._getContent(),lt=(0,O.M)(Qe);b.Z.on(Qe,(0,y.V4)(S.Z.init,this.NAME),lt,p.ZT),b.Z.on(Qe,(0,y.V4)(w.Z.move,this.NAME),this._pointerMoveHandler.bind(this))},_applyTranscludedContent:function(){var Qe=this.option("value");if(!(0,f.$K)(Qe)){var lt=this._deltaConverter.toHtml(),xt=this._quillInstance.clipboard.convert({html:lt});if(xt.ops.length)return void this._quillInstance.setContents(xt)}this._finalizeContentRendering()},_hasTranscludedContent:function(){return this._$templateResult&&this._$templateResult.length},_getModulesConfig:function(){var lt=(Qe=>{var lt=Qe.import("delta");return(xt,Tn)=>{var ii=Tn.ops.slice(),wi=ii[0];wi.insert=wi.insert.replace(/^\s+/,"");var Pi=wi.insert.match(/^(\S+)\s+/),Li=Pi&&function Sr(Qe){var lt=Qe.getAttribute("style");if(lt){var xt=lt.replace(/\n+/g,"").match(/level(\d+)/);return xt?xt[1]-1:0}return!1}(xt);return Pi&&!1!==Li?(wi.insert=wi.insert.substring(Pi[0].length,wi.insert.length),function Or(Qe){var lt=Qe[Qe.length-1];lt.insert=lt.insert.trim()}(ii),ii.push({insert:"\n",attributes:{list:Lr(Pi),indent:Li}}),new lt(ii)):Tn}})(this._getRegistrator().getQuill());return(0,C.l)({},{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:Tn=>this._saveValueChangeEvent((0,E.ju)(Tn)),imageBlot:"extendedImage"},keyboard:{onKeydown:Tn=>this._saveValueChangeEvent((0,E.ju)(Tn))},clipboard:{onPaste:Tn=>this._saveValueChangeEvent((0,E.ju)(Tn)),onCut:Tn=>this._saveValueChangeEvent((0,E.ju)(Tn)),matchers:[["p.MsoListParagraphCxSpFirst",lt],["p.MsoListParagraphCxSpMiddle",lt],["p.MsoListParagraphCxSpLast",lt]]},multiline:Boolean(this.option("allowSoftLineBreak"))},this._getCustomModules())},_getModuleConfigByOption:function(Qe){var lt=this.option(Qe),xt={};if((0,f.$K)(lt))return Array.isArray(lt)?xt[Qe]=lt:xt=lt,(0,C.l)(this._getBaseModuleConfig(),xt)},_getBaseModuleConfig:function(){return{editorInstance:this}},_getCustomModules:function(){var Qe={};return this._getRegistrator().getRegisteredModuleNames().forEach(xt=>{Qe[xt]=this._getBaseModuleConfig()}),Qe},_textChangeHandler:function(Qe,lt,xt){var Tn=this._deltaConverter.toHtml(),ii=this._isMarkdownValue()?this._updateValueByType(Ma,Tn):Tn,wi=this.option("value");wi!==ii&&!this._isNullValueConverted(wi,ii)&&(this._isEditorUpdating=!0,this.option("value",ii)),this._finalizeContentRendering()},_isNullValueConverted:function(Qe,lt){return null===Qe&&""===lt},_finalizeContentRendering:function(){this._contentRenderedDeferred&&(this.clearHistory(),this._contentInitializedCallback.fire(),this._contentRenderedDeferred.resolve(),this._contentRenderedDeferred=void 0)},_updateValueByType:function(Qe,lt){var xt=this._markdownConverter;if((0,f.$K)(xt)){var Tn=(0,p.IS)(lt,this.option("value"));return Qe===Ma?xt.toMarkdown(Tn):xt.toHtml(Tn)}},_isMarkdownValue:function(){return this.option("valueType")===Ma},_resetEnabledState:function(){if(this._quillInstance){var Qe=!(this.option("readOnly")||this.option("disabled"));this._quillInstance.enable(Qe)}},_renderFormDialog:function(){var Qe=(0,C.l)(!0,{width:"auto",height:"auto",hideOnOutsideClick:!0},this.option("formDialogOptions"));this._formDialog=new class na{constructor(lt,xt){this._editorInstance=lt,this._popupUserConfig=xt,this._renderPopup(),this._attachOptionChangedHandler()}_renderPopup(){var lt=this._editorInstance,xt=(0,I.Z)("<div>").addClass(To).appendTo(lt.$element()),Tn=this._getPopupConfig();return lt._createComponent(xt,Dn.Z,Tn)}_attachOptionChangedHandler(){var lt;null===(lt=this._popup)||void 0===lt||lt.on("optionChanged",xt=>{var{name:Tn,value:ii}=xt;"title"===Tn&&this._updateFormLabel(ii)})}_escKeyHandler(){this._popup.hide()}_addEscapeHandler(lt){lt.component.registerKeyHandler("escape",this._escKeyHandler.bind(this))}_isSmallScreen(){var lt=(0,Qi.Ym)()?(0,Qi.Wf)():null;return"phone"===T.Z.real().deviceType||"xs"===lt}_getPopupConfig(){return(0,C.l)({onInitialized:lt=>{this._popup=lt.component,this._popup.on("hiding",()=>this.onHiding()),this._popup.on("shown",()=>{this._form.focus()})},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,fullScreen:this._isSmallScreen(),contentTemplate:lt=>{var xt=(0,I.Z)("<div>").appendTo(lt);this._renderForm(xt,{onEditorEnterKey:Tn=>this.callAddButtonAction(Tn.event),customizeItem:Tn=>{"simple"===Tn.itemType&&(Tn.editorOptions=(0,C.l)(!0,{},Tn.editorOptions,{onInitialized:this._addEscapeHandler.bind(this)}))}})},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:le.Z.format("OK"),onClick:lt=>this.callAddButtonAction(lt.event)}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:le.Z.format("Cancel"),onClick:()=>{this._popup.hide()}}}],_wrapperClassExternal:To},this._popupUserConfig)}onHiding(){this.beforeAddButtonAction=void 0,this.deferred.reject()}callAddButtonAction(lt){this.beforeAddButtonAction&&!this.beforeAddButtonAction()||this.hide(this._form.option("formData"),lt)}_renderForm(lt,xt){lt.addClass("dx-formdialog-form"),this._form=this._editorInstance._createComponent(lt,mt.Z,xt),this._updateFormLabel()}_updateFormLabel(lt){var xt,Tn=lt??this.popupOption("title");null===(xt=this._form)||void 0===xt||xt.$element().attr("aria-label",Tn)}_getDefaultFormOptions(){return{colCount:1,width:"auto",labelLocation:(0,Br.x2)()?"top":"left"}}formOption(lt,xt){return this._form.option.apply(this._form,arguments)}show(lt){if(!this._popup.option("visible")){this.deferred=new x.BH;var xt=(0,C.l)(this._getDefaultFormOptions(),lt);return this._form.option(xt),this._popup.show(),this.deferred.promise()}}hide(lt,xt){this.deferred.resolve(lt,xt),this._popup.hide()}popupOption(lt,xt){return this._popup.option.apply(this._popup,arguments)}}(this,Qe)},_getStylingModePrefix:function(){return"dx-htmleditor-"},_getQuillContainer:function(){return this._$htmlContainer},_prepareModuleOptions(Qe){var lt,xt=null===(lt=Qe.fullName)||void 0===lt?void 0:lt.split("."),Tn=Qe.value;return 3===xt.length&&(Tn={[xt[2]]:Tn}),[xt.length>=2?xt[1]:Qe.name,Tn]},_moduleOptionChanged:function(Qe,lt){var xt,Tn=null===(xt=this._quillInstance)||void 0===xt?void 0:xt.getModule(Qe);Boolean(Tn)?Tn.option(...this._prepareModuleOptions(lt)):this._invalidate()},_optionChanged:function(Qe){switch(Qe.name){case"value":if(this._quillInstance)if(this._isEditorUpdating)this._isEditorUpdating=!1;else{var lt=this._isMarkdownValue()?this._updateValueByType("HTML",Qe.value):Qe.value;this._updateHtmlContent(lt)}else this._$htmlContainer.html(Qe.value);this._setSubmitValue(Qe.value),this.callBase(Qe);break;case"placeholder":case"variables":case"toolbar":case"mentions":case"customizeModules":case"allowSoftLineBreak":this._invalidate();break;case"tableResizing":this._moduleOptionChanged("tableResizing",Qe);break;case"valueType":this._prepareConverters();var xt=this._updateValueByType(Qe.value);"html"===Qe.value&&this._quillInstance?this._updateHtmlContent(xt):this.option("value",xt);break;case"stylingMode":this._renderStylingMode();break;case"readOnly":case"disabled":this.callBase(Qe),this._resetEnabledState();break;case"formDialogOptions":this._renderFormDialog();break;case"tableContextMenu":this._moduleOptionChanged("tableContextMenu",Qe);break;case"mediaResizing":Qe.previousValue&&Qe.value?this._quillInstance.getModule("resizing").option(Qe.name,Qe.value):this._invalidate();break;case"width":this.callBase(Qe),this._repaintToolbar();break;case"imageUpload":this._moduleOptionChanged("imageUpload",Qe);break;default:this.callBase(Qe)}},_repaintToolbar:function(){var Qe=this._quillInstance.getModule("toolbar");Qe&&Qe.repaint()},_updateHtmlContent:function(Qe){var lt=this._quillInstance.clipboard.convert({html:Qe});this._quillInstance.setContents(lt)},_clean:function(){this._quillInstance&&(b.Z.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(Qe,lt){if(this._quillInstance)return this._quillInstance[Qe].apply(this._quillInstance,lt)},_applyQuillHistoryMethod(Qe){this._quillInstance&&this._quillInstance.history&&this._quillInstance.history[Qe]()},addCleanCallback(Qe){this._cleanCallback.add(Qe)},addContentInitializedCallback(Qe){this._contentInitializedCallback.add(Qe)},register:function(Qe){this._getRegistrator().registerModules(Qe),this._quillInstance&&this.repaint()},get:function(Qe){return this._getRegistrator().getQuill().import(Qe)},getModule:function(Qe){return this._applyQuillMethod("getModule",arguments)},getQuillInstance:function(){return this._quillInstance},getSelection:function(Qe){return this._applyQuillMethod("getSelection",arguments)},setSelection:function(Qe,lt){this._applyQuillMethod("setSelection",arguments)},getText:function(Qe,lt){return this._applyQuillMethod("getText",arguments)},format:function(Qe,lt){this._applyQuillMethod("format",arguments)},formatText:function(Qe,lt,xt,Tn){this._applyQuillMethod("formatText",arguments)},formatLine:function(Qe,lt,xt,Tn){this._applyQuillMethod("formatLine",arguments)},getFormat:function(Qe,lt){return this._applyQuillMethod("getFormat",arguments)},removeFormat:function(Qe,lt){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(Qe,lt){return this._applyQuillMethod("getBounds",arguments)},delete:function(Qe,lt){this._applyQuillMethod("deleteText",arguments)},insertText:function(Qe,lt,xt){this._applyQuillMethod("insertText",arguments)},insertEmbed:function(Qe,lt,xt){this._applyQuillMethod("insertEmbed",arguments)},showFormDialog:function(Qe){return this._formDialog.show(Qe)},formDialogOption:function(Qe,lt){return this._formDialog.popupOption.apply(this._formDialog,arguments)},focus:function(){this.callBase(),this._applyQuillMethod("focus")},blur:function(){this._applyQuillMethod("blur")}});(0,s.Z)("dxHtmlEditor",Xl);const Ut=Xl;var Zt=l(8942),jn=l(1759),Xe=l(8208);const Lt=["*"],wt={provide:Zt.JU,useExisting:(0,c.Gpc)(()=>pn),multi:!0};let pn=(()=>{class Qe extends jn.Ay{constructor(xt,Tn,ii,wi,Pi,Li,rr,Cr){super(xt,Tn,ii,wi,rr,Cr),this._watcherHelper=wi,this._idh=Pi,this.touched=qr=>{},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),Li.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(xt){this._setOption("accessKey",xt)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(xt){this._setOption("activeStateEnabled",xt)}get allowSoftLineBreak(){return this._getOption("allowSoftLineBreak")}set allowSoftLineBreak(xt){this._setOption("allowSoftLineBreak",xt)}get customizeModules(){return this._getOption("customizeModules")}set customizeModules(xt){this._setOption("customizeModules",xt)}get disabled(){return this._getOption("disabled")}set disabled(xt){this._setOption("disabled",xt)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(xt){this._setOption("elementAttr",xt)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(xt){this._setOption("focusStateEnabled",xt)}get height(){return this._getOption("height")}set height(xt){this._setOption("height",xt)}get hint(){return this._getOption("hint")}set hint(xt){this._setOption("hint",xt)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(xt){this._setOption("hoverStateEnabled",xt)}get imageUpload(){return this._getOption("imageUpload")}set imageUpload(xt){this._setOption("imageUpload",xt)}get isValid(){return this._getOption("isValid")}set isValid(xt){this._setOption("isValid",xt)}get mediaResizing(){return this._getOption("mediaResizing")}set mediaResizing(xt){this._setOption("mediaResizing",xt)}get mentions(){return this._getOption("mentions")}set mentions(xt){this._setOption("mentions",xt)}get name(){return this._getOption("name")}set name(xt){this._setOption("name",xt)}get placeholder(){return this._getOption("placeholder")}set placeholder(xt){this._setOption("placeholder",xt)}get readOnly(){return this._getOption("readOnly")}set readOnly(xt){this._setOption("readOnly",xt)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(xt){this._setOption("rtlEnabled",xt)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(xt){this._setOption("stylingMode",xt)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(xt){this._setOption("tabIndex",xt)}get tableContextMenu(){return this._getOption("tableContextMenu")}set tableContextMenu(xt){this._setOption("tableContextMenu",xt)}get tableResizing(){return this._getOption("tableResizing")}set tableResizing(xt){this._setOption("tableResizing",xt)}get toolbar(){return this._getOption("toolbar")}set toolbar(xt){this._setOption("toolbar",xt)}get validationError(){return this._getOption("validationError")}set validationError(xt){this._setOption("validationError",xt)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(xt){this._setOption("validationErrors",xt)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(xt){this._setOption("validationMessageMode",xt)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(xt){this._setOption("validationMessagePosition",xt)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(xt){this._setOption("validationStatus",xt)}get value(){return this._getOption("value")}set value(xt){this._setOption("value",xt)}get valueType(){return this._getOption("valueType")}set valueType(xt){this._setOption("valueType",xt)}get variables(){return this._getOption("variables")}set variables(xt){this._setOption("variables",xt)}get visible(){return this._getOption("visible")}set visible(xt){this._setOption("visible",xt)}get width(){return this._getOption("width")}set width(xt){this._setOption("width",xt)}change(xt){}get mentionsChildren(){return this._getOption("mentions")}set mentionsChildren(xt){this.setChildren("mentions",xt)}_createInstance(xt,Tn){return new Ut(xt,Tn)}writeValue(xt){this.eventHelper.lockedValueChangeEvent=!0,this.value=xt,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(xt){this.disabled=xt}registerOnChange(xt){this.change=xt}registerOnTouched(xt){this.touched=xt}_createWidget(xt){super._createWidget(xt),this.instance.on("focusOut",Tn=>{this.eventHelper.fireNgEvent("onBlur",[Tn])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(xt){super.ngOnChanges(xt),this.setupChanges("mentions",xt),this.setupChanges("validationErrors",xt)}setupChanges(xt,Tn){xt in this._optionsToUpdate||this._idh.setup(xt,Tn)}ngDoCheck(){this._idh.doCheck("mentions"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(xt,Tn){let ii=this._idh.setupSingle(xt,Tn),wi=null!==this._idh.getChanges(xt,Tn);(ii||wi)&&super._setOption(xt,Tn)}}return Qe.\u0275fac=function(xt){return new(xt||Qe)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(jn._5),c.Y36(jn._h),c.Y36(jn.i9),c.Y36(jn.al),c.Y36(o.ki),c.Y36(c.Lbi))},Qe.\u0275cmp=c.Xpm({type:Qe,selectors:[["dx-html-editor"]],contentQueries:function(xt,Tn,ii){if(1&xt&&c.Suo(ii,Xe.QZF,4),2&xt){let wi;c.iGM(wi=c.CRH())&&(Tn.mentionsChildren=wi)}},hostBindings:function(xt,Tn){1&xt&&c.NdJ("valueChange",function(wi){return Tn.change(wi)})("onBlur",function(wi){return Tn.touched(wi)})},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:[c._Bn([jn._5,jn._h,wt,jn.al,jn.i9]),c.qOj,c.TTD],ngContentSelectors:Lt,decls:1,vars:0,template:function(xt,Tn){1&xt&&(c.F$t(),c.Hsn(0))},encapsulation:2}),Qe})(),qn=(()=>{class Qe{}return Qe.\u0275fac=function(xt){return new(xt||Qe)},Qe.\u0275mod=c.oAB({type:Qe}),Qe.\u0275inj=c.cJS({imports:[[Xe.w4f,Xe.wBe,Xe._9O,Xe.hB5,Xe.N2O,Xe.BcR,Xe.Q8p,Xe.z4e,Xe.azD,Xe.xwG,jn.Lz,jn.ie,o.Cu],Xe.w4f,Xe.wBe,Xe._9O,Xe.hB5,Xe.N2O,Xe.BcR,Xe.Q8p,Xe.z4e,Xe.azD,Xe.xwG,jn.ie]}),Qe})()},4332:(kn,he,l)=>{"use strict";l.d(he,{k:()=>P,O:()=>B});var o=l(5998),c=l(4370),I=l(4137),a=(l(107),l(9156),l(1805)),p=l(9904),s=l(913),u=l(5873),d=l(8225),h=l(5252),g=l(1247),x=l(1414),y="dx-list-reorder-handle";(0,h.z)("reorder","default",g.Z.inherit({_init:function(){var W=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=W._createComponent(W._scrollView.content(),x.Z,(0,u.l)({component:W,contentTemplate:null,allowReordering:!1,filter:N,container:W.$element(),dragDirection:W.option("itemDragging.group")?"both":"vertical",handle:".".concat(y),dragTemplate:this._dragTemplate,onDragStart:this._dragStartHandler.bind(this),onDragChange:this._dragChangeHandler.bind(this),onReorder:this._reorderHandler.bind(this)},W.option("itemDragging")))},afterRender:function(){this._sortable.update()},_dragTemplate:function(W){var N=(0,p.Z)(W.itemElement).clone().addClass("dx-list-item-ghost-reordering").addClass("dx-state-hover");return(0,a.cl)(N,(0,a.dz)(W.itemElement)),N},_dragStartHandler:function(W){this._lockedDrag&&(W.cancel=!0)},_dragChangeHandler:function(W){!this._groupedEnabled||this._sameParent(W.fromIndex,W.toIndex)||(W.cancel=!0)},_sameParent:function(W,N){var V=this._list.getItemElementByFlatIndex(W);return this._list.getItemElementByFlatIndex(N).parent().get(0)===V.parent().get(0)},_reorderHandler:function(W){var N=this._list.getItemElementByFlatIndex(W.toIndex);this._list.reorderItem((0,p.Z)(W.itemElement),N)},afterBag:function(W){var N=(0,p.Z)("<div>").addClass(y);s.Z.on(N,"dxpointerdown",V=>{this._lockedDrag=!(0,d.N5)(V)}),s.Z.on(N,"dxhold",{timeout:30},V=>{V.cancel=!0,this._lockedDrag=!1}),W.$container.addClass("dx-list-reorder-handle-container").append(N)}})),l(4955),l(3930);const T=I.Z;var k=l(1759),R=l(8208);let P=(()=>{class W extends k.Ay{constructor(V,U,K,Y,J,j,ee,G){super(V,U,K,Y,ee,G),this._watcherHelper=Y,this._idh=J,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),j.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(V){this._setOption("accessKey",V)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(V){this._setOption("activeStateEnabled",V)}get allowItemDeleting(){return this._getOption("allowItemDeleting")}set allowItemDeleting(V){this._setOption("allowItemDeleting",V)}get bounceEnabled(){return this._getOption("bounceEnabled")}set bounceEnabled(V){this._setOption("bounceEnabled",V)}get collapsibleGroups(){return this._getOption("collapsibleGroups")}set collapsibleGroups(V){this._setOption("collapsibleGroups",V)}get dataSource(){return this._getOption("dataSource")}set dataSource(V){this._setOption("dataSource",V)}get disabled(){return this._getOption("disabled")}set disabled(V){this._setOption("disabled",V)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(V){this._setOption("displayExpr",V)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(V){this._setOption("elementAttr",V)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(V){this._setOption("focusStateEnabled",V)}get grouped(){return this._getOption("grouped")}set grouped(V){this._setOption("grouped",V)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(V){this._setOption("groupTemplate",V)}get height(){return this._getOption("height")}set height(V){this._setOption("height",V)}get hint(){return this._getOption("hint")}set hint(V){this._setOption("hint",V)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(V){this._setOption("hoverStateEnabled",V)}get indicateLoading(){return this._getOption("indicateLoading")}set indicateLoading(V){this._setOption("indicateLoading",V)}get itemDeleteMode(){return this._getOption("itemDeleteMode")}set itemDeleteMode(V){this._setOption("itemDeleteMode",V)}get itemDragging(){return this._getOption("itemDragging")}set itemDragging(V){this._setOption("itemDragging",V)}get itemHoldTimeout(){return this._getOption("itemHoldTimeout")}set itemHoldTimeout(V){this._setOption("itemHoldTimeout",V)}get items(){return this._getOption("items")}set items(V){this._setOption("items",V)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(V){this._setOption("itemTemplate",V)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(V){this._setOption("keyExpr",V)}get menuItems(){return this._getOption("menuItems")}set menuItems(V){this._setOption("menuItems",V)}get menuMode(){return this._getOption("menuMode")}set menuMode(V){this._setOption("menuMode",V)}get nextButtonText(){return this._getOption("nextButtonText")}set nextButtonText(V){this._setOption("nextButtonText",V)}get noDataText(){return this._getOption("noDataText")}set noDataText(V){this._setOption("noDataText",V)}get pageLoadingText(){return this._getOption("pageLoadingText")}set pageLoadingText(V){this._setOption("pageLoadingText",V)}get pageLoadMode(){return this._getOption("pageLoadMode")}set pageLoadMode(V){this._setOption("pageLoadMode",V)}get pulledDownText(){return this._getOption("pulledDownText")}set pulledDownText(V){this._setOption("pulledDownText",V)}get pullingDownText(){return this._getOption("pullingDownText")}set pullingDownText(V){this._setOption("pullingDownText",V)}get pullRefreshEnabled(){return this._getOption("pullRefreshEnabled")}set pullRefreshEnabled(V){this._setOption("pullRefreshEnabled",V)}get refreshingText(){return this._getOption("refreshingText")}set refreshingText(V){this._setOption("refreshingText",V)}get repaintChangesOnly(){return this._getOption("repaintChangesOnly")}set repaintChangesOnly(V){this._setOption("repaintChangesOnly",V)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(V){this._setOption("rtlEnabled",V)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(V){this._setOption("scrollByContent",V)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(V){this._setOption("scrollByThumb",V)}get scrollingEnabled(){return this._getOption("scrollingEnabled")}set scrollingEnabled(V){this._setOption("scrollingEnabled",V)}get searchEditorOptions(){return this._getOption("searchEditorOptions")}set searchEditorOptions(V){this._setOption("searchEditorOptions",V)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(V){this._setOption("searchEnabled",V)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(V){this._setOption("searchExpr",V)}get searchMode(){return this._getOption("searchMode")}set searchMode(V){this._setOption("searchMode",V)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(V){this._setOption("searchTimeout",V)}get searchValue(){return this._getOption("searchValue")}set searchValue(V){this._setOption("searchValue",V)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(V){this._setOption("selectAllMode",V)}get selectAllText(){return this._getOption("selectAllText")}set selectAllText(V){this._setOption("selectAllText",V)}get selectedItemKeys(){return this._getOption("selectedItemKeys")}set selectedItemKeys(V){this._setOption("selectedItemKeys",V)}get selectedItems(){return this._getOption("selectedItems")}set selectedItems(V){this._setOption("selectedItems",V)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(V){this._setOption("selectionMode",V)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(V){this._setOption("showScrollbar",V)}get showSelectionControls(){return this._getOption("showSelectionControls")}set showSelectionControls(V){this._setOption("showSelectionControls",V)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(V){this._setOption("tabIndex",V)}get useNativeScrolling(){return this._getOption("useNativeScrolling")}set useNativeScrolling(V){this._setOption("useNativeScrolling",V)}get visible(){return this._getOption("visible")}set visible(V){this._setOption("visible",V)}get width(){return this._getOption("width")}set width(V){this._setOption("width",V)}get itemsChildren(){return this._getOption("items")}set itemsChildren(V){this.setChildren("items",V)}get menuItemsChildren(){return this._getOption("menuItems")}set menuItemsChildren(V){this.setChildren("menuItems",V)}_createInstance(V,U){return new T(V,U)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(V){super.ngOnChanges(V),this.setupChanges("dataSource",V),this.setupChanges("items",V),this.setupChanges("menuItems",V),this.setupChanges("searchExpr",V),this.setupChanges("selectedItemKeys",V),this.setupChanges("selectedItems",V)}setupChanges(V,U){V in this._optionsToUpdate||this._idh.setup(V,U)}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(V,U){let K=this._idh.setupSingle(V,U),Y=null!==this._idh.getChanges(V,U);(K||Y)&&super._setOption(V,U)}}return W.\u0275fac=function(V){return new(V||W)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(k._5),c.Y36(k._h),c.Y36(k.i9),c.Y36(k.al),c.Y36(o.ki),c.Y36(c.Lbi))},W.\u0275cmp=c.Xpm({type:W,selectors:[["dx-list"]],contentQueries:function(V,U,K){if(1&V&&(c.Suo(K,R.ZT3,4),c.Suo(K,R.r9F,4)),2&V){let Y;c.iGM(Y=c.CRH())&&(U.itemsChildren=Y),c.iGM(Y=c.CRH())&&(U.menuItemsChildren=Y)}},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:[c._Bn([k._5,k._h,k.al,k.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(V,U){},encapsulation:2}),W})(),B=(()=>{class W{}return W.\u0275fac=function(V){return new(V||W)},W.\u0275mod=c.oAB({type:W}),W.\u0275inj=c.cJS({imports:[[R.by9,R.ywL,R.Q8p,R.m30,R.ZOF,R.idP,R.UxI,k.Lz,k.ie,o.Cu],R.by9,R.ywL,R.Q8p,R.m30,R.ZOF,R.idP,R.UxI,k.ie]}),W})()},6023:(kn,he,l)=>{"use strict";l.d(he,{N:()=>Ee,n:()=>ae});var o=l(5998),c=l(4370),I=l(1805),C=l(9904),f=l(913),a=l(4514),p=l(4505),s=l(7674),u=l(6881),d=l(2718),h=l(5873),g=l(3238),x=l(9009),b=l(2941),y=l(8506),E=l(8225),S=l(5287),O=l(2722),w=l(227),T=l(4567),k=l(3447),R=l(1927),P=l(6961),B=l(1828),W=l(4094),N=(0,a.Jj)(),j="dx-lookup-field-wrapper",De="dx-list-item-selected",fe=S.Z.inherit({_supportedKeys:function(){return(0,h.l)(this.callBase(),{space:function(te){te.preventDefault(),this._validatedOpening()},enter:function(){this._validatedOpening()}})},_getDefaultOptions:function(){return(0,h.l)(this.callBase(),{placeholder:x.Z.format("Select"),searchPlaceholder:x.Z.format("Search"),searchEnabled:!0,searchStartEvent:"input change keyup",cleanSearchOnOpening:!0,showCancelButton:!0,showClearButton:!1,clearButtonText:x.Z.format("Clear"),applyButtonText:x.Z.format("OK"),pullRefreshEnabled:!1,useNativeScrolling:!0,pullingDownText:x.Z.format("dxList-pullingDownText"),pulledDownText:x.Z.format("dxList-pulledDownText"),refreshingText:x.Z.format("dxList-refreshingText"),pageLoadingText:x.Z.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:x.Z.format("dxList-nextButtonText"),grouped:!1,groupTemplate:"group",usePopover:!1,showDropDownButton:!1,focusStateEnabled:!1,dropDownOptions:{showTitle:!0,width:function(){return.8*(0,I.dz)(N)},height:function(){return.8*(0,I.Cr)(N)},shading:!0,hideOnOutsideClick:!1,position:void 0,animation:{},title:"",titleTemplate:"title",onTitleRendered:null,fullScreen:!1},dropDownCentered:!1,_scrollToSelectedItemEnabled:!1,useHiddenSubmitElement:!0})},_setDeprecatedOptions(){this.callBase(),(0,h.l)(this._deprecatedOptions,{valueChangeEvent:{since:"22.1",alias:"searchStartEvent"}})},_defaultOptionsRules:function(){var te=(0,O.Vk)();return this.callBase().concat([{device:function(){return!p.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(re){return!b.Z.isSimulator()&&"desktop"===b.Z.real().deviceType&&"generic"===re.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((0,I.dz)(N),(0,I.Cr)(N))},height:"auto"},usePopover:!0}},{device:function(){return"desktop"===b.Z.real().deviceType&&!b.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,O.x2)(te)},options:{usePopover:!1,searchEnabled:!1,showCancelButton:!1,dropDownCentered:!0,_scrollToSelectedItemEnabled:!0,dropDownOptions:{hideOnOutsideClick:!0,_ignoreFunctionValueDeprecation:!0,width:()=>(0,W.m)(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(te){this._scrollAction(te)},_pullRefreshHandler:function(te){this._pullRefreshAction(te)},_pageLoadingHandler:function(te){this._pageLoadingAction(te)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({group:new R.s("group"),title:new R.s("title")})},_initMarkup:function(){this.$element().addClass("dx-lookup").toggleClass("dx-lookup-popover-mode",this.option("usePopover")),this.callBase()},_inputWrapper:function(){return this.$element().find("."+j)},_dataSourceOptions:function(){return(0,h.l)(this.callBase(),{paginate:!0})},_fireContentReadyAction:s.ZT,_popupWrapperClass:function(){return""},_renderInput:function(){var te=this._createAction(()=>{this._toggleOpenState()});this._$field=(0,C.Z)("<div>").addClass("dx-lookup-field"),f.Z.on(this._$field,(0,E.V4)(w.u,this.NAME),oe=>{te({event:oe})});var re=(0,C.Z)("<div>").addClass("dx-lookup-arrow");this._$fieldWrapper=(0,C.Z)("<div>").addClass(j).append(this._$field).append(re).appendTo(this.$element())},_getInputContainer(){return this._$fieldWrapper},_renderField:function(){var te=this._getTemplateByOption("fieldTemplate");if(te&&this.option("fieldTemplate"))this._renderFieldTemplate(te);else{var re=this.option("displayValue");this._updateField(re),this.$element().toggleClass("dx-lookup-empty",!this.option("selectedItem"))}},_getLabelContainer:function(){return this._$field},_renderDisplayText:function(te){this._input().length?this.callBase(te):this._updateField(te)},_updateField:function(te){te=(0,B.$K)(te)&&String(te)||this.option("placeholder"),this._$field.text(te)},_renderFieldTemplate:function(te){this._$field.empty();var re=this._fieldRenderData();te.render({model:re,container:(0,u.u)(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=(0,C.Z)(N))},_popupShownHandler:function(){var te=this.option("_scrollToSelectedItemEnabled");!this.option("dropDownOptions.fullScreen")&&te&&this._setPopupPosition(),this.callBase()},_scrollToSelectedItem:function(){var te=this._list.option("selectedIndex"),re=this._list.option("items"),oe=re.length;0!==oe&&(this._list.option("grouped")?this._list.scrollToItem({group:oe-1,item:re[oe-1].items.length-1}):this._list.scrollToItem(oe-1),this._list.scrollToItem(te))},_getDifferenceOffsets:function(te){return te.offset().top-(0,C.Z)(this.element()).offset().top},_isCenteringEnabled:(te,re)=>1<te&&te<re-2,_getPopupOffset:function(){var te=this._listItemElements().length;if(0!==te){var re=(0,C.Z)(this._list.element()).find("."+De),oe=this._listItemElements().index(re),ye=((0,I.Cr)(re)-(0,I.Cr)(this.element()))/2,Pe=(0,C.Z)(this._list.element()).offset().top,Ne=this.option("dropDownOptions.height"),ft="function"==typeof Ne?Ne():Ne,tt=(0,I.Cr)(N),Be=0;if(-1!==oe){if(this._isCenteringEnabled(oe,te)){this._scrollToSelectedItem();var mt=(ft-(0,I.Cr)(re))/2-this._getDifferenceOffsets(re);this._list.scrollTo(this._list.scrollTop()+4-mt),Pe<(Be=ye+this._getDifferenceOffsets(re))&&oe!==te-3&&(this._list.scrollTo(this._list.scrollTop()+this._getDifferenceOffsets(re)/2),Be=ye+this._getDifferenceOffsets(re))}else oe<=1?(this._list.scrollTo(0),Be=ye+this._getDifferenceOffsets(re)):oe>=te-2&&(this._scrollToSelectedItem(),Be=ye+this._getDifferenceOffsets(re));Pe<Be&&(this._scrollToSelectedItem(),Be=ye+8)}var nn=ft-Be-(0,I.Cr)(this.element());return tt-Pe<nn&&(this._list.scrollTo(this._list.scrollTop()+ye-nn),Be=ft-(0,I.Cr)(this.element())-8),Be}},_setPopupPosition:function(){if(this.option("dropDownCentered")&&!this._popup.$wrapper().hasClass("dx-popover-flipped-vertical")){var re=(0,C.Z)(this._popup.$content()).parent(),oe=this._getPopupOffset(),ye=(0,P.jt)(re);(0,P.pB)(re,{top:ye.top-oe})}},_listItemGroupedElements:function(){var te=this._list._itemContainer().children(),re=[];return te.each((oe,ye)=>{re.push((0,C.Z)(ye).find(".dx-list-group-header")[0]),(0,C.Z)(ye).find(".dx-list-item").each((Ne,ft)=>{re.push(ft)})}),(0,C.Z)(re)},_calculateListHeight:function(te){var re=te?this._listItemGroupedElements():this._listItemElements(),oe=(0,C.Z)("."+De),ye=re.index(oe),Pe=0;return 0===re.length?Pe+=8:re.length<5?re.each((ft,tt)=>{Pe+=(0,I.zp)(tt)}):(ye<=1?re.slice(0,5):this._isCenteringEnabled(ye,re.length)?re.slice(ye-2,ye+3):re.slice(re.length-5,re.length)).each((ft,tt)=>{Pe+=(0,I.zp)(tt)}),Pe+(te?8:16)},_getPopupHeight:function(){var te;return null!==(te=this._list)&&void 0!==te&&te.itemElements().length?this._calculateListHeight(this.option("grouped"))+(this._$searchWrapper?(0,I.zp)(this._$searchWrapper):0)+(this._popup._$bottom?(0,I.zp)(this._popup._$bottom):0)+(this._popup._$title?(0,I.zp)(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,T.Z,(0,h.l)(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(0,I.Y_)(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")&&(0,P.Kx)((0,C.Z)(this._popup.content()).parent())},_preventFocusOnPopup:s.ZT,_popupConfig:function(){var te=(0,h.l)(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 te.animation,delete te.position,this.option("_scrollToSelectedItemEnabled")&&(te.position=this.option("dropDownCentered")?{my:"left top",at:"left top",of:this.element()}:{my:"left top",at:"left bottom",of:this.element()},te.hideOnParentScroll=!0),(0,d.S6)(["position","animation","width","height"],(re,oe)=>{var ye=this.option("dropDownOptions.".concat(oe));void 0!==ye&&(te[oe]=ye)}),te},_getPopupToolbarItems:function(){var te="useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[],re=this._getCancelButtonConfig();re&&te.push(re);var oe=this._getClearButtonConfig();return oe&&te.push(oe),this._applyButtonsLocation(te)},_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:te=>{te.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(te){te&&this._saveValueChangeEvent(te.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",(0,I.dz)(this.$element())),this._updateListDimensions()},_input:function(){return this._$searchBox||this.callBase()},_renderPopupContent:function(){this.callBase(),this._renderSearch()},_renderValueChangeEvent:s.ZT,_renderSearch:function(){var te=this.option("searchEnabled");if(this._toggleSearchClass(te),te){var re=this._$searchWrapper=(0,C.Z)("<div>").addClass("dx-lookup-search-wrapper"),oe=this._$searchBox=(0,C.Z)("<div>").addClass("dx-lookup-search").appendTo(re),ye=b.Z.current(),Ne=!1;this._searchBox=this._createComponent(oe,k.Z,{onDisposing:()=>Ne=!1,onFocusIn:()=>Ne=!0,onFocusOut:()=>Ne=!1,onKeyboardHandled:ft=>Ne&&this._list._keyboardHandler(ft),mode:ye.android?"text":"search",showClearButton:!0,valueChangeEvent:this.option("searchStartEvent"),onValueChanged:ft=>{this._searchHandler(ft)}}),this._registerSearchKeyHandlers(),re.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(te){var re=(0,C.Z)(this._list.option("focusedElement"));re.length&&(te.preventDefault(),te.target=re.get(0),this._saveValueChangeEvent(te),this._selectListItem(te.itemData,re))},_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",s.ZT),this._searchBox.registerKeyHandler("home",s.ZT)},_toggleSearchClass:function(te){this._popup&&this._popup.$wrapper().toggleClass("dx-lookup-popup-search",te)},_setSearchPlaceholder:function(){if(this._$searchBox){var te=this.option("minSearchLength"),re=this.option("searchPlaceholder");te&&re===x.Z.format("Search")&&(re=x.Z.getFormatter("dxLookup-searchPlaceholder")(te)),this._searchBox.option("placeholder",re)}},_setAriaTargetForList:s.ZT,_renderList:function(){this.callBase(),this._list.registerKeyHandler("escape",()=>{this.close()})},_listConfig:function(){return(0,h.l)(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):s.ZT},_listContentReadyHandler:function(){this.callBase(...arguments),this._refreshSelected()},_runWithoutCloseOnScroll:function(te){var{_scrollToSelectedItemEnabled:re}=this.option(),oe=this._popup.option("hideOnParentScroll");re?(this._popup.option("hideOnParentScroll",!1),te(),this._hideOnParentScrollTimer=setTimeout(()=>{this._popup.option("hideOnParentScroll",oe)})):te()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._runWithoutCloseOnScroll(()=>{this.option("searchEnabled")?this._searchBox.focus():f.Z.trigger(this._$list,"focus")})},_focusTarget:function(){return this._$field},_keyboardEventBindingTarget:function(){return this._$field},_listItemClickHandler:function(te){this._saveValueChangeEvent(te.event),this._selectListItem(te.itemData,te.event.currentTarget)},_selectListItem:function(te,re){this._list.selectItem(re),"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(te){this._saveValueChangeEvent(te.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(te){var re,{name:oe,fullName:ye,value:Pe}=te;switch(oe){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(oe);break;case"searchStartEvent":null===(re=this._searchBox)||void 0===re||re.option("valueChangeEvent",Pe);break;case"onScroll":this._initScrollAction();break;case"pageLoadMode":this._setListOption("pageLoadMode",this.option("pageLoadMode"));break;case"cleanSearchOnOpening":case"_scrollToSelectedItemEnabled":break;case"dropDownOptions":switch(ye){case"dropDownOptions.width":case"dropDownOptions.height":this._popupOptionChanged({name:oe,fullName:ye,value:"auto"===Pe?this.initialOption("dropDownOptions")[(0,g.Ts)(ye)]:Pe}),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():f.Z.trigger(this._focusTarget(),"focus")},field:function(){return this._$field}});(0,y.Z)("dxLookup",fe);const _e=fe;var ie=l(8942),de=l(1759),le=l(8208);const pe={provide:ie.JU,useExisting:(0,c.Gpc)(()=>Ee),multi:!0};let Ee=(()=>{class te extends de.Ay{constructor(oe,ye,Pe,Ne,ft,tt,Be,mt){super(oe,ye,Pe,Ne,Be,mt),this._watcherHelper=Ne,this._idh=ft,this.touched=nn=>{},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),tt.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(oe){this._setOption("accessKey",oe)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(oe){this._setOption("activeStateEnabled",oe)}get applyButtonText(){return this._getOption("applyButtonText")}set applyButtonText(oe){this._setOption("applyButtonText",oe)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(oe){this._setOption("applyValueMode",oe)}get cancelButtonText(){return this._getOption("cancelButtonText")}set cancelButtonText(oe){this._setOption("cancelButtonText",oe)}get cleanSearchOnOpening(){return this._getOption("cleanSearchOnOpening")}set cleanSearchOnOpening(oe){this._setOption("cleanSearchOnOpening",oe)}get clearButtonText(){return this._getOption("clearButtonText")}set clearButtonText(oe){this._setOption("clearButtonText",oe)}get dataSource(){return this._getOption("dataSource")}set dataSource(oe){this._setOption("dataSource",oe)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(oe){this._setOption("deferRendering",oe)}get disabled(){return this._getOption("disabled")}set disabled(oe){this._setOption("disabled",oe)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(oe){this._setOption("displayExpr",oe)}get displayValue(){return this._getOption("displayValue")}set displayValue(oe){this._setOption("displayValue",oe)}get dropDownCentered(){return this._getOption("dropDownCentered")}set dropDownCentered(oe){this._setOption("dropDownCentered",oe)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(oe){this._setOption("dropDownOptions",oe)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(oe){this._setOption("elementAttr",oe)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(oe){this._setOption("fieldTemplate",oe)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(oe){this._setOption("focusStateEnabled",oe)}get fullScreen(){return this._getOption("fullScreen")}set fullScreen(oe){this._setOption("fullScreen",oe)}get grouped(){return this._getOption("grouped")}set grouped(oe){this._setOption("grouped",oe)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(oe){this._setOption("groupTemplate",oe)}get height(){return this._getOption("height")}set height(oe){this._setOption("height",oe)}get hint(){return this._getOption("hint")}set hint(oe){this._setOption("hint",oe)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(oe){this._setOption("hoverStateEnabled",oe)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(oe){this._setOption("inputAttr",oe)}get isValid(){return this._getOption("isValid")}set isValid(oe){this._setOption("isValid",oe)}get items(){return this._getOption("items")}set items(oe){this._setOption("items",oe)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(oe){this._setOption("itemTemplate",oe)}get label(){return this._getOption("label")}set label(oe){this._setOption("label",oe)}get labelMode(){return this._getOption("labelMode")}set labelMode(oe){this._setOption("labelMode",oe)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(oe){this._setOption("minSearchLength",oe)}get name(){return this._getOption("name")}set name(oe){this._setOption("name",oe)}get nextButtonText(){return this._getOption("nextButtonText")}set nextButtonText(oe){this._setOption("nextButtonText",oe)}get noDataText(){return this._getOption("noDataText")}set noDataText(oe){this._setOption("noDataText",oe)}get opened(){return this._getOption("opened")}set opened(oe){this._setOption("opened",oe)}get pageLoadingText(){return this._getOption("pageLoadingText")}set pageLoadingText(oe){this._setOption("pageLoadingText",oe)}get pageLoadMode(){return this._getOption("pageLoadMode")}set pageLoadMode(oe){this._setOption("pageLoadMode",oe)}get placeholder(){return this._getOption("placeholder")}set placeholder(oe){this._setOption("placeholder",oe)}get pulledDownText(){return this._getOption("pulledDownText")}set pulledDownText(oe){this._setOption("pulledDownText",oe)}get pullingDownText(){return this._getOption("pullingDownText")}set pullingDownText(oe){this._setOption("pullingDownText",oe)}get pullRefreshEnabled(){return this._getOption("pullRefreshEnabled")}set pullRefreshEnabled(oe){this._setOption("pullRefreshEnabled",oe)}get refreshingText(){return this._getOption("refreshingText")}set refreshingText(oe){this._setOption("refreshingText",oe)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(oe){this._setOption("rtlEnabled",oe)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(oe){this._setOption("searchEnabled",oe)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(oe){this._setOption("searchExpr",oe)}get searchMode(){return this._getOption("searchMode")}set searchMode(oe){this._setOption("searchMode",oe)}get searchPlaceholder(){return this._getOption("searchPlaceholder")}set searchPlaceholder(oe){this._setOption("searchPlaceholder",oe)}get searchStartEvent(){return this._getOption("searchStartEvent")}set searchStartEvent(oe){this._setOption("searchStartEvent",oe)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(oe){this._setOption("searchTimeout",oe)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(oe){this._setOption("selectedItem",oe)}get showCancelButton(){return this._getOption("showCancelButton")}set showCancelButton(oe){this._setOption("showCancelButton",oe)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(oe){this._setOption("showClearButton",oe)}get showDataBeforeSearch(){return this._getOption("showDataBeforeSearch")}set showDataBeforeSearch(oe){this._setOption("showDataBeforeSearch",oe)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(oe){this._setOption("stylingMode",oe)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(oe){this._setOption("tabIndex",oe)}get text(){return this._getOption("text")}set text(oe){this._setOption("text",oe)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(oe){this._setOption("useItemTextAsTitle",oe)}get useNativeScrolling(){return this._getOption("useNativeScrolling")}set useNativeScrolling(oe){this._setOption("useNativeScrolling",oe)}get usePopover(){return this._getOption("usePopover")}set usePopover(oe){this._setOption("usePopover",oe)}get validationError(){return this._getOption("validationError")}set validationError(oe){this._setOption("validationError",oe)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(oe){this._setOption("validationErrors",oe)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(oe){this._setOption("validationMessageMode",oe)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(oe){this._setOption("validationMessagePosition",oe)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(oe){this._setOption("validationStatus",oe)}get value(){return this._getOption("value")}set value(oe){this._setOption("value",oe)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(oe){this._setOption("valueChangeEvent",oe)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(oe){this._setOption("valueExpr",oe)}get visible(){return this._getOption("visible")}set visible(oe){this._setOption("visible",oe)}get width(){return this._getOption("width")}set width(oe){this._setOption("width",oe)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(oe){this._setOption("wrapItemText",oe)}change(oe){}get itemsChildren(){return this._getOption("items")}set itemsChildren(oe){this.setChildren("items",oe)}_createInstance(oe,ye){return new _e(oe,ye)}writeValue(oe){this.eventHelper.lockedValueChangeEvent=!0,this.value=oe,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(oe){this.disabled=oe}registerOnChange(oe){this.change=oe}registerOnTouched(oe){this.touched=oe}_createWidget(oe){super._createWidget(oe),this.instance.on("focusOut",ye=>{this.eventHelper.fireNgEvent("onBlur",[ye])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(oe){super.ngOnChanges(oe),this.setupChanges("dataSource",oe),this.setupChanges("items",oe),this.setupChanges("searchExpr",oe),this.setupChanges("validationErrors",oe)}setupChanges(oe,ye){oe in this._optionsToUpdate||this._idh.setup(oe,ye)}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(oe,ye){let Pe=this._idh.setupSingle(oe,ye),Ne=null!==this._idh.getChanges(oe,ye);(Pe||Ne)&&super._setOption(oe,ye)}}return te.\u0275fac=function(oe){return new(oe||te)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(de._5),c.Y36(de._h),c.Y36(de.i9),c.Y36(de.al),c.Y36(o.ki),c.Y36(c.Lbi))},te.\u0275cmp=c.Xpm({type:te,selectors:[["dx-lookup"]],contentQueries:function(oe,ye,Pe){if(1&oe&&c.Suo(Pe,le.ZT3,4),2&oe){let Ne;c.iGM(Ne=c.CRH())&&(ye.itemsChildren=Ne)}},hostBindings:function(oe,ye){1&oe&&c.NdJ("valueChange",function(Ne){return ye.change(Ne)})("onBlur",function(Ne){return ye.touched(Ne)})},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:[c._Bn([de._5,de._h,pe,de.al,de.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(oe,ye){},encapsulation:2}),te})(),ae=(()=>{class te{}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275mod=c.oAB({type:te}),te.\u0275inj=c.cJS({imports:[[le.ggs,le.IOm,le.kOw,le.weU,le.D_l,le.JxK,le.zZW,le.ynY,le.lgR,le.sni,le.waX,le.pxS,le.nT1,le.Fkd,le.pGy,le.Q8p,de.Lz,de.ie,o.Cu],le.ggs,le.IOm,le.kOw,le.weU,le.D_l,le.JxK,le.zZW,le.ynY,le.lgR,le.sni,le.waX,le.pxS,le.nT1,le.Fkd,le.pGy,le.Q8p,de.ie]}),te})()},8208:(kn,he,l)=>{"use strict";l.d(he,{$9q:()=>lo,$D5:()=>re,$Tm:()=>Z,$YR:()=>Nh,$a2:()=>Dc,$wd:()=>ca,AUf:()=>oo,Aai:()=>ze,Afe:()=>od,Axk:()=>Zd,Az0:()=>rp,BEi:()=>st,BcR:()=>yg,Bh5:()=>Ps,Bib:()=>Pc,Bpy:()=>cd,C1H:()=>md,CxW:()=>td,DB7:()=>ct,DHG:()=>Nr,DQr:()=>B,DTQ:()=>Fe,DTR:()=>Oi,D_l:()=>Lh,DrR:()=>ia,Dtt:()=>Ou,ENI:()=>Al,EgX:()=>Yh,Ejv:()=>w,Ezz:()=>Yo,F9A:()=>Or,F9Z:()=>tu,FGH:()=>Sg,FJZ:()=>cr,FQ1:()=>vn,FYN:()=>aa,FZZ:()=>Pt,Fkd:()=>Ks,Flw:()=>Qe,GTS:()=>fm,GaT:()=>Tg,Gc$:()=>_e,HC7:()=>ad,HM6:()=>Iu,HaS:()=>ga,I3K:()=>Zc,IIk:()=>rs,IOm:()=>b,Inm:()=>_a,IqU:()=>Rd,Irw:()=>yl,JID:()=>$n,Jiy:()=>_g,JxK:()=>M,K5Q:()=>Ec,K5R:()=>gn,K9Y:()=>mi,KOH:()=>S,KjY:()=>Up,KkC:()=>Wd,KvI:()=>Jn,Kx:()=>rm,L6l:()=>Mg,LHj:()=>iu,LNK:()=>lr,LS2:()=>k,Llc:()=>J,Lxh:()=>zd,Lz9:()=>l_,M2g:()=>u,M5u:()=>or,MHt:()=>h,Mel:()=>vt,N2O:()=>Is,NsS:()=>nu,Obv:()=>Ze,Ois:()=>Hh,Oll:()=>On,P5j:()=>Kh,PR8:()=>ap,PXJ:()=>Qp,Pj6:()=>bc,Q8p:()=>Te,QKQ:()=>bi,QQ4:()=>Cc,QZF:()=>rd,QjJ:()=>ai,R5e:()=>Jp,RbS:()=>mn,Re4:()=>pm,Rjt:()=>Su,Rue:()=>gd,Rvn:()=>lg,SCM:()=>vr,SGB:()=>id,SH1:()=>us,SUG:()=>no,SiA:()=>yd,ToC:()=>Li,Tq8:()=>to,UCw:()=>ua,UQn:()=>gm,UV$:()=>gt,Uo8:()=>wr,Upd:()=>Rh,UuT:()=>zn,UxI:()=>jp,Uz5:()=>yn,Vp2:()=>f,WSE:()=>Ss,Wi7:()=>Ud,Wj0:()=>xr,Wwk:()=>ed,WyY:()=>Zs,XDP:()=>dd,XXE:()=>Vh,Xdm:()=>ra,XfX:()=>ne,Y25:()=>b_,YOZ:()=>Lc,YTJ:()=>Je,YXG:()=>ha,Ye1:()=>Zt,ZCX:()=>Qt,ZLS:()=>An,ZLV:()=>Oc,ZOF:()=>pd,ZT3:()=>xe,Zjs:()=>fr,ZmN:()=>xg,ZnP:()=>E,Zt4:()=>V,_7s:()=>so,_7y:()=>Cl,_9O:()=>nn,_PP:()=>jr,_Sx:()=>$e,_ZT:()=>In,_hi:()=>Xi,aLr:()=>Rc,aXB:()=>Gp,aZm:()=>vi,aa6:()=>Ms,azD:()=>wg,bHv:()=>Ne,bcN:()=>Sn,bgw:()=>de,by9:()=>Tn,c6p:()=>jh,cRZ:()=>Bd,cdq:()=>xn,ck:()=>Xp,cp7:()=>Jf,cuJ:()=>ki,d0Q:()=>hn,dVY:()=>Wn,dXi:()=>Qi,d_Q:()=>am,dwQ:()=>ir,e1H:()=>bo,eAZ:()=>Pl,enW:()=>wo,erZ:()=>Aa,fOF:()=>hs,fhR:()=>Ja,fj7:()=>qt,fsq:()=>Bh,gI1:()=>Kd,gMt:()=>Lo,gN6:()=>Os,ggs:()=>zi,hB5:()=>ql,hFl:()=>Mt,hb3:()=>Ml,hfY:()=>qh,i3B:()=>ni,idP:()=>qe,ilc:()=>Ws,irQ:()=>Tu,jUr:()=>wi,ji7:()=>xl,jq_:()=>lm,jri:()=>Uh,jtD:()=>Ln,jyG:()=>tt,k4o:()=>Dt,kBH:()=>Vo,kEo:()=>Ya,kIp:()=>Qr,kOw:()=>Ma,kSd:()=>ht,kWr:()=>Dg,kZH:()=>To,kln:()=>Ru,krR:()=>Jo,l95:()=>Au,lTN:()=>Xh,lUW:()=>ud,lar:()=>Nn,lgR:()=>el,lj9:()=>Xr,lsC:()=>p,m$R:()=>At,m30:()=>Es,mR_:()=>sg,mbS:()=>im,mtS:()=>_d,n18:()=>St,nD3:()=>wu,nRD:()=>Yp,nSX:()=>Bn,nT1:()=>Qo,nah:()=>oa,ngB:()=>We,o0O:()=>rt,oyT:()=>ng,p6x:()=>da,p7n:()=>_t,pGy:()=>Ci,pxS:()=>nm,qB1:()=>pn,qlz:()=>K,qvW:()=>ci,r9F:()=>Fd,rH1:()=>ta,rHV:()=>Eu,rNf:()=>ei,rUb:()=>Rs,rrz:()=>ep,s2f:()=>Og,sBj:()=>mo,sRG:()=>bn,sXh:()=>vs,sd1:()=>pt,sni:()=>Sc,t$9:()=>kl,tAX:()=>fd,tRk:()=>Si,tis:()=>um,uKt:()=>Gs,uQR:()=>li,ukr:()=>ge,vLN:()=>Go,vZC:()=>Hc,vci:()=>zc,vl5:()=>Nc,vrV:()=>te,w4f:()=>Lt,w89:()=>eu,wBe:()=>Yr,wMw:()=>ee,waX:()=>C_,wcV:()=>$r,weU:()=>Wr,wrG:()=>sd,xHg:()=>er,xNt:()=>Rt,xOr:()=>at,xwG:()=>Gd,y1h:()=>Cr,y6c:()=>hg,yFA:()=>Lr,yWq:()=>kc,ynY:()=>Hi,ywL:()=>gi,z30:()=>rn,z4e:()=>wn,z8p:()=>pr,zLN:()=>dm,zZW:()=>pe,zk3:()=>zr,zvd:()=>Qn});var o=l(4370),c=l(1759),I=l(8692);let f=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),p=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),u=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),h=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),b=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),y=(()=>{class L extends c.Fx{get allowDragging(){return this._getOption("allowDragging")}set allowDragging(m){this._setOption("allowDragging",m)}get argument(){return this._getOption("argument")}set argument(m){this._setOption("argument",m)}get arrowLength(){return this._getOption("arrowLength")}set arrowLength(m){this._setOption("arrowLength",m)}get arrowWidth(){return this._getOption("arrowWidth")}set arrowWidth(m){this._setOption("arrowWidth",m)}get axis(){return this._getOption("axis")}set axis(m){this._setOption("axis",m)}get border(){return this._getOption("border")}set border(m){this._setOption("border",m)}get color(){return this._getOption("color")}set color(m){this._setOption("color",m)}get customizeTooltip(){return this._getOption("customizeTooltip")}set customizeTooltip(m){this._setOption("customizeTooltip",m)}get data(){return this._getOption("data")}set data(m){this._setOption("data",m)}get description(){return this._getOption("description")}set description(m){this._setOption("description",m)}get font(){return this._getOption("font")}set font(m){this._setOption("font",m)}get height(){return this._getOption("height")}set height(m){this._setOption("height",m)}get image(){return this._getOption("image")}set image(m){this._setOption("image",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}get offsetX(){return this._getOption("offsetX")}set offsetX(m){this._setOption("offsetX",m)}get offsetY(){return this._getOption("offsetY")}set offsetY(m){this._setOption("offsetY",m)}get opacity(){return this._getOption("opacity")}set opacity(m){this._setOption("opacity",m)}get paddingLeftRight(){return this._getOption("paddingLeftRight")}set paddingLeftRight(m){this._setOption("paddingLeftRight",m)}get paddingTopBottom(){return this._getOption("paddingTopBottom")}set paddingTopBottom(m){this._setOption("paddingTopBottom",m)}get series(){return this._getOption("series")}set series(m){this._setOption("series",m)}get shadow(){return this._getOption("shadow")}set shadow(m){this._setOption("shadow",m)}get template(){return this._getOption("template")}set template(m){this._setOption("template",m)}get text(){return this._getOption("text")}set text(m){this._setOption("text",m)}get textOverflow(){return this._getOption("textOverflow")}set textOverflow(m){this._setOption("textOverflow",m)}get tooltipEnabled(){return this._getOption("tooltipEnabled")}set tooltipEnabled(m){this._setOption("tooltipEnabled",m)}get tooltipTemplate(){return this._getOption("tooltipTemplate")}set tooltipTemplate(m){this._setOption("tooltipTemplate",m)}get type(){return this._getOption("type")}set type(m){this._setOption("type",m)}get value(){return this._getOption("value")}set value(m){this._setOption("value",m)}get width(){return this._getOption("width")}set width(m){this._setOption("width",m)}get wordWrap(){return this._getOption("wordWrap")}set wordWrap(m){this._setOption("wordWrap",m)}get x(){return this._getOption("x")}set x(m){this._setOption("x",m)}get y(){return this._getOption("y")}set y(m){this._setOption("y",m)}get location(){return this._getOption("location")}set location(m){this._setOption("location",m)}get angle(){return this._getOption("angle")}set angle(m){this._setOption("angle",m)}get radius(){return this._getOption("radius")}set radius(m){this._setOption("radius",m)}get coordinates(){return this._getOption("coordinates")}set coordinates(m){this._setOption("coordinates",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),E=(()=>{class L extends y{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"annotations"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-annotation"]],inputs:{allowDragging:"allowDragging",argument:"argument",arrowLength:"arrowLength",arrowWidth:"arrowWidth",axis:"axis",border:"border",color:"color",customizeTooltip:"customizeTooltip",data:"data",description:"description",font:"font",height:"height",image:"image",name:"name",offsetX:"offsetX",offsetY:"offsetY",opacity:"opacity",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",series:"series",shadow:"shadow",template:"template",text:"text",textOverflow:"textOverflow",tooltipEnabled:"tooltipEnabled",tooltipTemplate:"tooltipTemplate",type:"type",value:"value",width:"width",wordWrap:"wordWrap",x:"x",y:"y",location:"location",angle:"angle",radius:"radius",coordinates:"coordinates"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),S=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),w=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),k=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),B=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),W=(()=>{class L extends c.Fx{get endValue(){return this._getOption("endValue")}set endValue(m){this._setOption("endValue",m)}get startValue(){return this._getOption("startValue")}set startValue(m){this._setOption("startValue",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),N=(()=>{class L extends W{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"breaks"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-break"]],inputs:{endValue:"endValue",startValue:"startValue"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),V=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),U=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get color(){return this._getOption("color")}set color(m){this._setOption("color",m)}get dashStyle(){return this._getOption("dashStyle")}set dashStyle(m){this._setOption("dashStyle",m)}get displayBehindSeries(){return this._getOption("displayBehindSeries")}set displayBehindSeries(m){this._setOption("displayBehindSeries",m)}get extendAxis(){return this._getOption("extendAxis")}set extendAxis(m){this._setOption("extendAxis",m)}get label(){return this._getOption("label")}set label(m){this._setOption("label",m)}get paddingLeftRight(){return this._getOption("paddingLeftRight")}set paddingLeftRight(m){this._setOption("paddingLeftRight",m)}get paddingTopBottom(){return this._getOption("paddingTopBottom")}set paddingTopBottom(m){this._setOption("paddingTopBottom",m)}get value(){return this._getOption("value")}set value(m){this._setOption("value",m)}get width(){return this._getOption("width")}set width(m){this._setOption("width",m)}get _optionPath(){return"constantLines"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-constant-line"]],inputs:{color:"color",dashStyle:"dashStyle",displayBehindSeries:"displayBehindSeries",extendAxis:"extendAxis",label:"label",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",value:"value",width:"width"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),K=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Y=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get color(){return this._getOption("color")}set color(m){this._setOption("color",m)}get endValue(){return this._getOption("endValue")}set endValue(m){this._setOption("endValue",m)}get label(){return this._getOption("label")}set label(m){this._setOption("label",m)}get paddingLeftRight(){return this._getOption("paddingLeftRight")}set paddingLeftRight(m){this._setOption("paddingLeftRight",m)}get paddingTopBottom(){return this._getOption("paddingTopBottom")}set paddingTopBottom(m){this._setOption("paddingTopBottom",m)}get startValue(){return this._getOption("startValue")}set startValue(m){this._setOption("startValue",m)}get _optionPath(){return"strips"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-strip"]],inputs:{color:"color",endValue:"endValue",label:"label",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",startValue:"startValue"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),J=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ee=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Z=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),M=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ge=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Fe=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ne=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),_e=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),de=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),pe=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ae=(()=>{class L extends c.Fx{get disabled(){return this._getOption("disabled")}set disabled(m){this._setOption("disabled",m)}get html(){return this._getOption("html")}set html(m){this._setOption("html",m)}get icon(){return this._getOption("icon")}set icon(m){this._setOption("icon",m)}get template(){return this._getOption("template")}set template(m){this._setOption("template",m)}get text(){return this._getOption("text")}set text(m){this._setOption("text",m)}get title(){return this._getOption("title")}set title(m){this._setOption("title",m)}get titleTemplate(){return this._getOption("titleTemplate")}set titleTemplate(m){this._setOption("titleTemplate",m)}get visible(){return this._getOption("visible")}set visible(m){this._setOption("visible",m)}get onClick(){return this._getOption("onClick")}set onClick(m){this._setOption("onClick",m)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(m){this._setOption("stylingMode",m)}get type(){return this._getOption("type")}set type(m){this._setOption("type",m)}get baseSize(){return this._getOption("baseSize")}set baseSize(m){this._setOption("baseSize",m)}get box(){return this._getOption("box")}set box(m){this._setOption("box",m)}get ratio(){return this._getOption("ratio")}set ratio(m){this._setOption("ratio",m)}get shrink(){return this._getOption("shrink")}set shrink(m){this._setOption("shrink",m)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(m){this._setOption("elementAttr",m)}get hint(){return this._getOption("hint")}set hint(m){this._setOption("hint",m)}get beginGroup(){return this._getOption("beginGroup")}set beginGroup(m){this._setOption("beginGroup",m)}get closeMenuOnClick(){return this._getOption("closeMenuOnClick")}set closeMenuOnClick(m){this._setOption("closeMenuOnClick",m)}get items(){return this._getOption("items")}set items(m){this._setOption("items",m)}get selectable(){return this._getOption("selectable")}set selectable(m){this._setOption("selectable",m)}get selected(){return this._getOption("selected")}set selected(m){this._setOption("selected",m)}get colSpan(){return this._getOption("colSpan")}set colSpan(m){this._setOption("colSpan",m)}get cssClass(){return this._getOption("cssClass")}set cssClass(m){this._setOption("cssClass",m)}get dataField(){return this._getOption("dataField")}set dataField(m){this._setOption("dataField",m)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(m){this._setOption("editorOptions",m)}get editorType(){return this._getOption("editorType")}set editorType(m){this._setOption("editorType",m)}get helpText(){return this._getOption("helpText")}set helpText(m){this._setOption("helpText",m)}get isRequired(){return this._getOption("isRequired")}set isRequired(m){this._setOption("isRequired",m)}get itemType(){return this._getOption("itemType")}set itemType(m){this._setOption("itemType",m)}get label(){return this._getOption("label")}set label(m){this._setOption("label",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}get validationRules(){return this._getOption("validationRules")}set validationRules(m){this._setOption("validationRules",m)}get visibleIndex(){return this._getOption("visibleIndex")}set visibleIndex(m){this._setOption("visibleIndex",m)}get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(m){this._setOption("alignItemLabels",m)}get caption(){return this._getOption("caption")}set caption(m){this._setOption("caption",m)}get colCount(){return this._getOption("colCount")}set colCount(m){this._setOption("colCount",m)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(m){this._setOption("colCountByScreen",m)}get tabPanelOptions(){return this._getOption("tabPanelOptions")}set tabPanelOptions(m){this._setOption("tabPanelOptions",m)}get tabs(){return this._getOption("tabs")}set tabs(m){this._setOption("tabs",m)}get badge(){return this._getOption("badge")}set badge(m){this._setOption("badge",m)}get tabTemplate(){return this._getOption("tabTemplate")}set tabTemplate(m){this._setOption("tabTemplate",m)}get buttonOptions(){return this._getOption("buttonOptions")}set buttonOptions(m){this._setOption("buttonOptions",m)}get horizontalAlignment(){return this._getOption("horizontalAlignment")}set horizontalAlignment(m){this._setOption("horizontalAlignment",m)}get verticalAlignment(){return this._getOption("verticalAlignment")}set verticalAlignment(m){this._setOption("verticalAlignment",m)}get locateInMenu(){return this._getOption("locateInMenu")}set locateInMenu(m){this._setOption("locateInMenu",m)}get location(){return this._getOption("location")}set location(m){this._setOption("location",m)}get menuItemTemplate(){return this._getOption("menuItemTemplate")}set menuItemTemplate(m){this._setOption("menuItemTemplate",m)}get options(){return this._getOption("options")}set options(m){this._setOption("options",m)}get showText(){return this._getOption("showText")}set showText(m){this._setOption("showText",m)}get widget(){return this._getOption("widget")}set widget(m){this._setOption("widget",m)}get height(){return this._getOption("height")}set height(m){this._setOption("height",m)}get width(){return this._getOption("width")}set width(m){this._setOption("width",m)}get imageAlt(){return this._getOption("imageAlt")}set imageAlt(m){this._setOption("imageAlt",m)}get imageSrc(){return this._getOption("imageSrc")}set imageSrc(m){this._setOption("imageSrc",m)}get acceptedValues(){return this._getOption("acceptedValues")}set acceptedValues(m){this._setOption("acceptedValues",m)}get formatName(){return this._getOption("formatName")}set formatName(m){this._setOption("formatName",m)}get formatValues(){return this._getOption("formatValues")}set formatValues(m){this._setOption("formatValues",m)}get key(){return this._getOption("key")}set key(m){this._setOption("key",m)}get showChevron(){return this._getOption("showChevron")}set showChevron(m){this._setOption("showChevron",m)}get heightRatio(){return this._getOption("heightRatio")}set heightRatio(m){this._setOption("heightRatio",m)}get widthRatio(){return this._getOption("widthRatio")}set widthRatio(m){this._setOption("widthRatio",m)}get expanded(){return this._getOption("expanded")}set expanded(m){this._setOption("expanded",m)}get hasItems(){return this._getOption("hasItems")}set hasItems(m){this._setOption("hasItems",m)}get id(){return this._getOption("id")}set id(m){this._setOption("id",m)}get parentId(){return this._getOption("parentId")}set parentId(m){this._setOption("parentId",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),te=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get message(){return this._getOption("message")}set message(m){this._setOption("message",m)}get trim(){return this._getOption("trim")}set trim(m){this._setOption("trim",m)}get type(){return this._getOption("type")}set type(m){this._setOption("type",m)}get ignoreEmptyValue(){return this._getOption("ignoreEmptyValue")}set ignoreEmptyValue(m){this._setOption("ignoreEmptyValue",m)}get max(){return this._getOption("max")}set max(m){this._setOption("max",m)}get min(){return this._getOption("min")}set min(m){this._setOption("min",m)}get reevaluate(){return this._getOption("reevaluate")}set reevaluate(m){this._setOption("reevaluate",m)}get validationCallback(){return this._getOption("validationCallback")}set validationCallback(m){this._setOption("validationCallback",m)}get comparisonTarget(){return this._getOption("comparisonTarget")}set comparisonTarget(m){this._setOption("comparisonTarget",m)}get comparisonType(){return this._getOption("comparisonType")}set comparisonType(m){this._setOption("comparisonType",m)}get pattern(){return this._getOption("pattern")}set pattern(m){this._setOption("pattern",m)}get _optionPath(){return"validationRules"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,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:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),re=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),oe=(()=>{class L extends c.Fx{get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(m){this._setOption("alignItemLabels",m)}get badge(){return this._getOption("badge")}set badge(m){this._setOption("badge",m)}get colCount(){return this._getOption("colCount")}set colCount(m){this._setOption("colCount",m)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(m){this._setOption("colCountByScreen",m)}get disabled(){return this._getOption("disabled")}set disabled(m){this._setOption("disabled",m)}get icon(){return this._getOption("icon")}set icon(m){this._setOption("icon",m)}get items(){return this._getOption("items")}set items(m){this._setOption("items",m)}get tabTemplate(){return this._getOption("tabTemplate")}set tabTemplate(m){this._setOption("tabTemplate",m)}get template(){return this._getOption("template")}set template(m){this._setOption("template",m)}get title(){return this._getOption("title")}set title(m){this._setOption("title",m)}get commands(){return this._getOption("commands")}set commands(m){this._setOption("commands",m)}get groups(){return this._getOption("groups")}set groups(m){this._setOption("groups",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),ye=(()=>{class L extends c.Fx{get icon(){return this._getOption("icon")}set icon(m){this._setOption("icon",m)}get items(){return this._getOption("items")}set items(m){this._setOption("items",m)}get location(){return this._getOption("location")}set location(m){this._setOption("location",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}get text(){return this._getOption("text")}set text(m){this._setOption("text",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),Pe=(()=>{class L extends ye{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"commands"}get itemsChildren(){return this._getOption("items")}set itemsChildren(m){this.setChildren("items",m)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-command"]],contentQueries:function(m,je,ui){if(1&m&&o.Suo(ui,xe,4),2&m){let Ti;o.iGM(Ti=o.CRH())&&(je.itemsChildren=Ti)}},inputs:{icon:"icon",items:"items",location:"location",name:"name",text:"text"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Ne=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ft=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get commands(){return this._getOption("commands")}set commands(m){this._setOption("commands",m)}get title(){return this._getOption("title")}set title(m){this._setOption("title",m)}get category(){return this._getOption("category")}set category(m){this._setOption("category",m)}get displayMode(){return this._getOption("displayMode")}set displayMode(m){this._setOption("displayMode",m)}get expanded(){return this._getOption("expanded")}set expanded(m){this._setOption("expanded",m)}get shapes(){return this._getOption("shapes")}set shapes(m){this._setOption("shapes",m)}get _optionPath(){return"groups"}get commandsChildren(){return this._getOption("commands")}set commandsChildren(m){this.setChildren("commands",m)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-group"]],contentQueries:function(m,je,ui){if(1&m&&o.Suo(ui,Pe,4),2&m){let Ti;o.iGM(Ti=o.CRH())&&(je.commandsChildren=Ti)}},inputs:{commands:"commands",title:"title",category:"category",displayMode:"displayMode",expanded:"expanded",shapes:"shapes"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),tt=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})();const Be=["*"];let mt=(()=>{class L extends oe{constructor(m,je,ui,Ti,ou,Ls){super(),this.renderer=ui,this.document=Ti,this.element=Ls,m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this)),ou.setHost(this)}get _optionPath(){return"tabs"}get itemsChildren(){return this._getOption("items")}set itemsChildren(m){this.setChildren("items",m)}get commandsChildren(){return this._getOption("commands")}set commandsChildren(m){this.setChildren("commands",m)}get groupsChildren(){return this._getOption("groups")}set groupsChildren(m){this.setChildren("groups",m)}setTemplate(m){this.template=m}ngAfterViewInit(){(0,c.UX)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1),o.Y36(o.Qsj),o.Y36(I.K0),o.Y36(c._5,1),o.Y36(o.SBq))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-tab"]],contentQueries:function(m,je,ui){if(1&m&&(o.Suo(ui,xe,4),o.Suo(ui,Pe,4),o.Suo(ui,ft,4)),2&m){let Ti;o.iGM(Ti=o.CRH())&&(je.itemsChildren=Ti),o.iGM(Ti=o.CRH())&&(je.commandsChildren=Ti),o.iGM(Ti=o.CRH())&&(je.groupsChildren=Ti)}},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:[o._Bn([c.al,c._5]),o.qOj],ngContentSelectors:Be,decls:1,vars:0,template:function(m,je){1&m&&(o.F$t(),o.Hsn(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),L})(),nn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ke=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get lat(){return this._getOption("lat")}set lat(m){this._setOption("lat",m)}get lng(){return this._getOption("lng")}set lng(m){this._setOption("lng",m)}get col(){return this._getOption("col")}set col(m){this._setOption("col",m)}get colspan(){return this._getOption("colspan")}set colspan(m){this._setOption("colspan",m)}get row(){return this._getOption("row")}set row(m){this._setOption("row",m)}get rowspan(){return this._getOption("rowspan")}set rowspan(m){this._setOption("rowspan",m)}get screen(){return this._getOption("screen")}set screen(m){this._setOption("screen",m)}get _optionPath(){return"location"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-location"]],inputs:{lat:"lat",lng:"lng",col:"col",colspan:"colspan",row:"row",rowspan:"rowspan",screen:"screen"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),$e=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})();const me=["*"];let xe=(()=>{class L extends ae{constructor(m,je,ui,Ti,ou,Ls){super(),this.renderer=ui,this.document=Ti,this.element=Ls,m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this)),ou.setHost(this)}get _optionPath(){return"items"}get itemsChildren(){return this._getOption("items")}set itemsChildren(m){this.setChildren("items",m)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(m){this.setChildren("validationRules",m)}get tabsChildren(){return this._getOption("tabs")}set tabsChildren(m){this.setChildren("tabs",m)}get locationChildren(){return this._getOption("location")}set locationChildren(m){this.setChildren("location",m)}setTemplate(m){this.template=m}ngAfterViewInit(){(0,c.UX)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1),o.Y36(o.Qsj),o.Y36(I.K0),o.Y36(c._5,1),o.Y36(o.SBq))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-item"]],contentQueries:function(m,je,ui){if(1&m&&(o.Suo(ui,L,4),o.Suo(ui,te,4),o.Suo(ui,mt,4),o.Suo(ui,ke,4)),2&m){let Ti;o.iGM(Ti=o.CRH())&&(je.itemsChildren=Ti),o.iGM(Ti=o.CRH())&&(je.validationRulesChildren=Ti),o.iGM(Ti=o.CRH())&&(je.tabsChildren=Ti),o.iGM(Ti=o.CRH())&&(je.locationChildren=Ti)}},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:[o._Bn([c.al,c._5]),o.qOj],ngContentSelectors:me,decls:1,vars:0,template:function(m,je){1&m&&(o.F$t(),o.Hsn(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),L})(),Te=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),St=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Rt=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ct=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),He=(()=>{class L extends c.Fx{get location(){return this._getOption("location")}set location(m){this._setOption("location",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}get options(){return this._getOption("options")}set options(m){this._setOption("options",m)}get cssClass(){return this._getOption("cssClass")}set cssClass(m){this._setOption("cssClass",m)}get disabled(){return this._getOption("disabled")}set disabled(m){this._setOption("disabled",m)}get hint(){return this._getOption("hint")}set hint(m){this._setOption("hint",m)}get icon(){return this._getOption("icon")}set icon(m){this._setOption("icon",m)}get onClick(){return this._getOption("onClick")}set onClick(m){this._setOption("onClick",m)}get template(){return this._getOption("template")}set template(m){this._setOption("template",m)}get text(){return this._getOption("text")}set text(m){this._setOption("text",m)}get visible(){return this._getOption("visible")}set visible(m){this._setOption("visible",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),Dt=(()=>{class L extends He{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"buttons"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,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:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),qe=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ht=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),bn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),xn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Jn=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get lat(){return this._getOption("lat")}set lat(m){this._setOption("lat",m)}get lng(){return this._getOption("lng")}set lng(m){this._setOption("lng",m)}get _optionPath(){return"center"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-center"]],inputs:{lat:"lat",lng:"lng"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),li=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ai=(()=>{class L extends c.Fx{get data(){return this._getOption("data")}set data(m){this._setOption("data",m)}get insertAfterKey(){return this._getOption("insertAfterKey")}set insertAfterKey(m){this._setOption("insertAfterKey",m)}get insertBeforeKey(){return this._getOption("insertBeforeKey")}set insertBeforeKey(m){this._setOption("insertBeforeKey",m)}get key(){return this._getOption("key")}set key(m){this._setOption("key",m)}get type(){return this._getOption("type")}set type(m){this._setOption("type",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),Vn=(()=>{class L extends Ai{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"changes"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-change"]],inputs:{data:"data",insertAfterKey:"insertAfterKey",insertBeforeKey:"insertBeforeKey",key:"key",type:"type"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Oi=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Hn=(()=>{class L extends c.Fx{get aggregation(){return this._getOption("aggregation")}set aggregation(m){this._setOption("aggregation",m)}get argumentField(){return this._getOption("argumentField")}set argumentField(m){this._setOption("argumentField",m)}get axis(){return this._getOption("axis")}set axis(m){this._setOption("axis",m)}get barOverlapGroup(){return this._getOption("barOverlapGroup")}set barOverlapGroup(m){this._setOption("barOverlapGroup",m)}get barPadding(){return this._getOption("barPadding")}set barPadding(m){this._setOption("barPadding",m)}get barWidth(){return this._getOption("barWidth")}set barWidth(m){this._setOption("barWidth",m)}get border(){return this._getOption("border")}set border(m){this._setOption("border",m)}get closeValueField(){return this._getOption("closeValueField")}set closeValueField(m){this._setOption("closeValueField",m)}get color(){return this._getOption("color")}set color(m){this._setOption("color",m)}get cornerRadius(){return this._getOption("cornerRadius")}set cornerRadius(m){this._setOption("cornerRadius",m)}get dashStyle(){return this._getOption("dashStyle")}set dashStyle(m){this._setOption("dashStyle",m)}get highValueField(){return this._getOption("highValueField")}set highValueField(m){this._setOption("highValueField",m)}get hoverMode(){return this._getOption("hoverMode")}set hoverMode(m){this._setOption("hoverMode",m)}get hoverStyle(){return this._getOption("hoverStyle")}set hoverStyle(m){this._setOption("hoverStyle",m)}get ignoreEmptyPoints(){return this._getOption("ignoreEmptyPoints")}set ignoreEmptyPoints(m){this._setOption("ignoreEmptyPoints",m)}get innerColor(){return this._getOption("innerColor")}set innerColor(m){this._setOption("innerColor",m)}get label(){return this._getOption("label")}set label(m){this._setOption("label",m)}get lowValueField(){return this._getOption("lowValueField")}set lowValueField(m){this._setOption("lowValueField",m)}get maxLabelCount(){return this._getOption("maxLabelCount")}set maxLabelCount(m){this._setOption("maxLabelCount",m)}get minBarSize(){return this._getOption("minBarSize")}set minBarSize(m){this._setOption("minBarSize",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}get opacity(){return this._getOption("opacity")}set opacity(m){this._setOption("opacity",m)}get openValueField(){return this._getOption("openValueField")}set openValueField(m){this._setOption("openValueField",m)}get pane(){return this._getOption("pane")}set pane(m){this._setOption("pane",m)}get point(){return this._getOption("point")}set point(m){this._setOption("point",m)}get rangeValue1Field(){return this._getOption("rangeValue1Field")}set rangeValue1Field(m){this._setOption("rangeValue1Field",m)}get rangeValue2Field(){return this._getOption("rangeValue2Field")}set rangeValue2Field(m){this._setOption("rangeValue2Field",m)}get reduction(){return this._getOption("reduction")}set reduction(m){this._setOption("reduction",m)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(m){this._setOption("selectionMode",m)}get selectionStyle(){return this._getOption("selectionStyle")}set selectionStyle(m){this._setOption("selectionStyle",m)}get showInLegend(){return this._getOption("showInLegend")}set showInLegend(m){this._setOption("showInLegend",m)}get sizeField(){return this._getOption("sizeField")}set sizeField(m){this._setOption("sizeField",m)}get stack(){return this._getOption("stack")}set stack(m){this._setOption("stack",m)}get tag(){return this._getOption("tag")}set tag(m){this._setOption("tag",m)}get tagField(){return this._getOption("tagField")}set tagField(m){this._setOption("tagField",m)}get type(){return this._getOption("type")}set type(m){this._setOption("type",m)}get valueErrorBar(){return this._getOption("valueErrorBar")}set valueErrorBar(m){this._setOption("valueErrorBar",m)}get valueField(){return this._getOption("valueField")}set valueField(m){this._setOption("valueField",m)}get visible(){return this._getOption("visible")}set visible(m){this._setOption("visible",m)}get width(){return this._getOption("width")}set width(m){this._setOption("width",m)}get argumentType(){return this._getOption("argumentType")}set argumentType(m){this._setOption("argumentType",m)}get minSegmentSize(){return this._getOption("minSegmentSize")}set minSegmentSize(m){this._setOption("minSegmentSize",m)}get smallValuesGrouping(){return this._getOption("smallValuesGrouping")}set smallValuesGrouping(m){this._setOption("smallValuesGrouping",m)}get closed(){return this._getOption("closed")}set closed(m){this._setOption("closed",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),Sn=(()=>{class L extends Hn{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"series"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-series"]],inputs:{aggregation:"aggregation",argumentField:"argumentField",axis:"axis",barOverlapGroup:"barOverlapGroup",barPadding:"barPadding",barWidth:"barWidth",border:"border",closeValueField:"closeValueField",color:"color",cornerRadius:"cornerRadius",dashStyle:"dashStyle",highValueField:"highValueField",hoverMode:"hoverMode",hoverStyle:"hoverStyle",ignoreEmptyPoints:"ignoreEmptyPoints",innerColor:"innerColor",label:"label",lowValueField:"lowValueField",maxLabelCount:"maxLabelCount",minBarSize:"minBarSize",name:"name",opacity:"opacity",openValueField:"openValueField",pane:"pane",point:"point",rangeValue1Field:"rangeValue1Field",rangeValue2Field:"rangeValue2Field",reduction:"reduction",selectionMode:"selectionMode",selectionStyle:"selectionStyle",showInLegend:"showInLegend",sizeField:"sizeField",stack:"stack",tag:"tag",tagField:"tagField",type:"type",valueErrorBar:"valueErrorBar",valueField:"valueField",visible:"visible",width:"width",argumentType:"argumentType",minSegmentSize:"minSegmentSize",smallValuesGrouping:"smallValuesGrouping",closed:"closed"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),An=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Wn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),On=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ei=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get baseSize(){return this._getOption("baseSize")}set baseSize(m){this._setOption("baseSize",m)}get ratio(){return this._getOption("ratio")}set ratio(m){this._setOption("ratio",m)}get screen(){return this._getOption("screen")}set screen(m){this._setOption("screen",m)}get shrink(){return this._getOption("shrink")}set shrink(m){this._setOption("shrink",m)}get _optionPath(){return"cols"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-col"]],inputs:{baseSize:"baseSize",ratio:"ratio",screen:"screen",shrink:"shrink"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),ni=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Hi=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Qi=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),yn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Rn=(()=>{class L extends c.Fx{get alignment(){return this._getOption("alignment")}set alignment(m){this._setOption("alignment",m)}get allowEditing(){return this._getOption("allowEditing")}set allowEditing(m){this._setOption("allowEditing",m)}get allowExporting(){return this._getOption("allowExporting")}set allowExporting(m){this._setOption("allowExporting",m)}get allowFiltering(){return this._getOption("allowFiltering")}set allowFiltering(m){this._setOption("allowFiltering",m)}get allowFixing(){return this._getOption("allowFixing")}set allowFixing(m){this._setOption("allowFixing",m)}get allowGrouping(){return this._getOption("allowGrouping")}set allowGrouping(m){this._setOption("allowGrouping",m)}get allowHeaderFiltering(){return this._getOption("allowHeaderFiltering")}set allowHeaderFiltering(m){this._setOption("allowHeaderFiltering",m)}get allowHiding(){return this._getOption("allowHiding")}set allowHiding(m){this._setOption("allowHiding",m)}get allowReordering(){return this._getOption("allowReordering")}set allowReordering(m){this._setOption("allowReordering",m)}get allowResizing(){return this._getOption("allowResizing")}set allowResizing(m){this._setOption("allowResizing",m)}get allowSearch(){return this._getOption("allowSearch")}set allowSearch(m){this._setOption("allowSearch",m)}get allowSorting(){return this._getOption("allowSorting")}set allowSorting(m){this._setOption("allowSorting",m)}get autoExpandGroup(){return this._getOption("autoExpandGroup")}set autoExpandGroup(m){this._setOption("autoExpandGroup",m)}get buttons(){return this._getOption("buttons")}set buttons(m){this._setOption("buttons",m)}get calculateCellValue(){return this._getOption("calculateCellValue")}set calculateCellValue(m){this._setOption("calculateCellValue",m)}get calculateDisplayValue(){return this._getOption("calculateDisplayValue")}set calculateDisplayValue(m){this._setOption("calculateDisplayValue",m)}get calculateFilterExpression(){return this._getOption("calculateFilterExpression")}set calculateFilterExpression(m){this._setOption("calculateFilterExpression",m)}get calculateGroupValue(){return this._getOption("calculateGroupValue")}set calculateGroupValue(m){this._setOption("calculateGroupValue",m)}get calculateSortValue(){return this._getOption("calculateSortValue")}set calculateSortValue(m){this._setOption("calculateSortValue",m)}get caption(){return this._getOption("caption")}set caption(m){this._setOption("caption",m)}get cellTemplate(){return this._getOption("cellTemplate")}set cellTemplate(m){this._setOption("cellTemplate",m)}get columns(){return this._getOption("columns")}set columns(m){this._setOption("columns",m)}get cssClass(){return this._getOption("cssClass")}set cssClass(m){this._setOption("cssClass",m)}get customizeText(){return this._getOption("customizeText")}set customizeText(m){this._setOption("customizeText",m)}get dataField(){return this._getOption("dataField")}set dataField(m){this._setOption("dataField",m)}get dataType(){return this._getOption("dataType")}set dataType(m){this._setOption("dataType",m)}get editCellTemplate(){return this._getOption("editCellTemplate")}set editCellTemplate(m){this._setOption("editCellTemplate",m)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(m){this._setOption("editorOptions",m)}get encodeHtml(){return this._getOption("encodeHtml")}set encodeHtml(m){this._setOption("encodeHtml",m)}get falseText(){return this._getOption("falseText")}set falseText(m){this._setOption("falseText",m)}get filterOperations(){return this._getOption("filterOperations")}set filterOperations(m){this._setOption("filterOperations",m)}get filterType(){return this._getOption("filterType")}set filterType(m){this._setOption("filterType",m)}get filterValue(){return this._getOption("filterValue")}set filterValue(m){this._setOption("filterValue",m)}get filterValues(){return this._getOption("filterValues")}set filterValues(m){this._setOption("filterValues",m)}get fixed(){return this._getOption("fixed")}set fixed(m){this._setOption("fixed",m)}get fixedPosition(){return this._getOption("fixedPosition")}set fixedPosition(m){this._setOption("fixedPosition",m)}get format(){return this._getOption("format")}set format(m){this._setOption("format",m)}get formItem(){return this._getOption("formItem")}set formItem(m){this._setOption("formItem",m)}get groupCellTemplate(){return this._getOption("groupCellTemplate")}set groupCellTemplate(m){this._setOption("groupCellTemplate",m)}get groupIndex(){return this._getOption("groupIndex")}set groupIndex(m){this._setOption("groupIndex",m)}get headerCellTemplate(){return this._getOption("headerCellTemplate")}set headerCellTemplate(m){this._setOption("headerCellTemplate",m)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(m){this._setOption("headerFilter",m)}get hidingPriority(){return this._getOption("hidingPriority")}set hidingPriority(m){this._setOption("hidingPriority",m)}get isBand(){return this._getOption("isBand")}set isBand(m){this._setOption("isBand",m)}get lookup(){return this._getOption("lookup")}set lookup(m){this._setOption("lookup",m)}get minWidth(){return this._getOption("minWidth")}set minWidth(m){this._setOption("minWidth",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}get ownerBand(){return this._getOption("ownerBand")}set ownerBand(m){this._setOption("ownerBand",m)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(m){this._setOption("renderAsync",m)}get selectedFilterOperation(){return this._getOption("selectedFilterOperation")}set selectedFilterOperation(m){this._setOption("selectedFilterOperation",m)}get setCellValue(){return this._getOption("setCellValue")}set setCellValue(m){this._setOption("setCellValue",m)}get showEditorAlways(){return this._getOption("showEditorAlways")}set showEditorAlways(m){this._setOption("showEditorAlways",m)}get showInColumnChooser(){return this._getOption("showInColumnChooser")}set showInColumnChooser(m){this._setOption("showInColumnChooser",m)}get showWhenGrouped(){return this._getOption("showWhenGrouped")}set showWhenGrouped(m){this._setOption("showWhenGrouped",m)}get sortIndex(){return this._getOption("sortIndex")}set sortIndex(m){this._setOption("sortIndex",m)}get sortingMethod(){return this._getOption("sortingMethod")}set sortingMethod(m){this._setOption("sortingMethod",m)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(m){this._setOption("sortOrder",m)}get trueText(){return this._getOption("trueText")}set trueText(m){this._setOption("trueText",m)}get type(){return this._getOption("type")}set type(m){this._setOption("type",m)}get validationRules(){return this._getOption("validationRules")}set validationRules(m){this._setOption("validationRules",m)}get visible(){return this._getOption("visible")}set visible(m){this._setOption("visible",m)}get visibleIndex(){return this._getOption("visibleIndex")}set visibleIndex(m){this._setOption("visibleIndex",m)}get width(){return this._getOption("width")}set width(m){this._setOption("width",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),ci=(()=>{class L extends Rn{constructor(m,je){super(),this._createEventEmitters([{emit:"filterValueChange"},{emit:"filterValuesChange"},{emit:"groupIndexChange"},{emit:"selectedFilterOperationChange"},{emit:"sortIndexChange"},{emit:"sortOrderChange"},{emit:"visibleChange"},{emit:"visibleIndexChange"}]),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"columns"}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(m){this.setChildren("buttons",m)}get columnsChildren(){return this._getOption("columns")}set columnsChildren(m){this.setChildren("columns",m)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(m){this.setChildren("validationRules",m)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-column"]],contentQueries:function(m,je,ui){if(1&m&&(o.Suo(ui,Dt,4),o.Suo(ui,L,4),o.Suo(ui,te,4)),2&m){let Ti;o.iGM(Ti=o.CRH())&&(je.buttonsChildren=Ti),o.iGM(Ti=o.CRH())&&(je.columnsChildren=Ti),o.iGM(Ti=o.CRH())&&(je.validationRulesChildren=Ti)}},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:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Si=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),lr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),zr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),xr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Nr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),so=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Er=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get x(){return this._getOption("x")}set x(m){this._setOption("x",m)}get y(){return this._getOption("y")}set y(m){this._setOption("y",m)}get _optionPath(){return"connectionPoints"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-connection-point"]],inputs:{x:"x",y:"y"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),oo=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ir=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),to=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),At=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),$n=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),mi=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),In=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),gi=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ri=(()=>{class L extends c.Fx{get calculateFilterExpression(){return this._getOption("calculateFilterExpression")}set calculateFilterExpression(m){this._setOption("calculateFilterExpression",m)}get caption(){return this._getOption("caption")}set caption(m){this._setOption("caption",m)}get customizeText(){return this._getOption("customizeText")}set customizeText(m){this._setOption("customizeText",m)}get dataTypes(){return this._getOption("dataTypes")}set dataTypes(m){this._setOption("dataTypes",m)}get editorTemplate(){return this._getOption("editorTemplate")}set editorTemplate(m){this._setOption("editorTemplate",m)}get hasValue(){return this._getOption("hasValue")}set hasValue(m){this._setOption("hasValue",m)}get icon(){return this._getOption("icon")}set icon(m){this._setOption("icon",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),or=(()=>{class L extends Ri{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"customOperations"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-custom-operation"]],inputs:{calculateFilterExpression:"calculateFilterExpression",caption:"caption",customizeText:"customizeText",dataTypes:"dataTypes",editorTemplate:"editorTemplate",hasValue:"hasValue",icon:"icon",name:"name"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),cr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})();const en=["*"];let vn=(()=>{class L extends c.Fx{constructor(m,je,ui,Ti,ou,Ls){super(),this.renderer=ui,this.document=Ti,this.element=Ls,m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this)),ou.setHost(this)}get allowEditImage(){return this._getOption("allowEditImage")}set allowEditImage(m){this._setOption("allowEditImage",m)}get allowEditText(){return this._getOption("allowEditText")}set allowEditText(m){this._setOption("allowEditText",m)}get allowResize(){return this._getOption("allowResize")}set allowResize(m){this._setOption("allowResize",m)}get backgroundImageHeight(){return this._getOption("backgroundImageHeight")}set backgroundImageHeight(m){this._setOption("backgroundImageHeight",m)}get backgroundImageLeft(){return this._getOption("backgroundImageLeft")}set backgroundImageLeft(m){this._setOption("backgroundImageLeft",m)}get backgroundImageToolboxUrl(){return this._getOption("backgroundImageToolboxUrl")}set backgroundImageToolboxUrl(m){this._setOption("backgroundImageToolboxUrl",m)}get backgroundImageTop(){return this._getOption("backgroundImageTop")}set backgroundImageTop(m){this._setOption("backgroundImageTop",m)}get backgroundImageUrl(){return this._getOption("backgroundImageUrl")}set backgroundImageUrl(m){this._setOption("backgroundImageUrl",m)}get backgroundImageWidth(){return this._getOption("backgroundImageWidth")}set backgroundImageWidth(m){this._setOption("backgroundImageWidth",m)}get baseType(){return this._getOption("baseType")}set baseType(m){this._setOption("baseType",m)}get category(){return this._getOption("category")}set category(m){this._setOption("category",m)}get connectionPoints(){return this._getOption("connectionPoints")}set connectionPoints(m){this._setOption("connectionPoints",m)}get defaultHeight(){return this._getOption("defaultHeight")}set defaultHeight(m){this._setOption("defaultHeight",m)}get defaultImageUrl(){return this._getOption("defaultImageUrl")}set defaultImageUrl(m){this._setOption("defaultImageUrl",m)}get defaultText(){return this._getOption("defaultText")}set defaultText(m){this._setOption("defaultText",m)}get defaultWidth(){return this._getOption("defaultWidth")}set defaultWidth(m){this._setOption("defaultWidth",m)}get imageHeight(){return this._getOption("imageHeight")}set imageHeight(m){this._setOption("imageHeight",m)}get imageLeft(){return this._getOption("imageLeft")}set imageLeft(m){this._setOption("imageLeft",m)}get imageTop(){return this._getOption("imageTop")}set imageTop(m){this._setOption("imageTop",m)}get imageWidth(){return this._getOption("imageWidth")}set imageWidth(m){this._setOption("imageWidth",m)}get keepRatioOnAutoSize(){return this._getOption("keepRatioOnAutoSize")}set keepRatioOnAutoSize(m){this._setOption("keepRatioOnAutoSize",m)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(m){this._setOption("maxHeight",m)}get maxWidth(){return this._getOption("maxWidth")}set maxWidth(m){this._setOption("maxWidth",m)}get minHeight(){return this._getOption("minHeight")}set minHeight(m){this._setOption("minHeight",m)}get minWidth(){return this._getOption("minWidth")}set minWidth(m){this._setOption("minWidth",m)}get template(){return this._getOption("template")}set template(m){this._setOption("template",m)}get templateHeight(){return this._getOption("templateHeight")}set templateHeight(m){this._setOption("templateHeight",m)}get templateLeft(){return this._getOption("templateLeft")}set templateLeft(m){this._setOption("templateLeft",m)}get templateTop(){return this._getOption("templateTop")}set templateTop(m){this._setOption("templateTop",m)}get templateWidth(){return this._getOption("templateWidth")}set templateWidth(m){this._setOption("templateWidth",m)}get textHeight(){return this._getOption("textHeight")}set textHeight(m){this._setOption("textHeight",m)}get textLeft(){return this._getOption("textLeft")}set textLeft(m){this._setOption("textLeft",m)}get textTop(){return this._getOption("textTop")}set textTop(m){this._setOption("textTop",m)}get textWidth(){return this._getOption("textWidth")}set textWidth(m){this._setOption("textWidth",m)}get title(){return this._getOption("title")}set title(m){this._setOption("title",m)}get toolboxTemplate(){return this._getOption("toolboxTemplate")}set toolboxTemplate(m){this._setOption("toolboxTemplate",m)}get toolboxWidthToHeightRatio(){return this._getOption("toolboxWidthToHeightRatio")}set toolboxWidthToHeightRatio(m){this._setOption("toolboxWidthToHeightRatio",m)}get type(){return this._getOption("type")}set type(m){this._setOption("type",m)}get _optionPath(){return"customShapes"}get connectionPointsChildren(){return this._getOption("connectionPoints")}set connectionPointsChildren(m){this.setChildren("connectionPoints",m)}setTemplate(m){this.template=m}ngAfterViewInit(){(0,c.UX)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1),o.Y36(o.Qsj),o.Y36(I.K0),o.Y36(c._5,1),o.Y36(o.SBq))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-custom-shape"]],contentQueries:function(m,je,ui){if(1&m&&o.Suo(ui,Er,4),2&m){let Ti;o.iGM(Ti=o.CRH())&&(je.connectionPointsChildren=Ti)}},inputs:{allowEditImage:"allowEditImage",allowEditText:"allowEditText",allowResize:"allowResize",backgroundImageHeight:"backgroundImageHeight",backgroundImageLeft:"backgroundImageLeft",backgroundImageToolboxUrl:"backgroundImageToolboxUrl",backgroundImageTop:"backgroundImageTop",backgroundImageUrl:"backgroundImageUrl",backgroundImageWidth:"backgroundImageWidth",baseType:"baseType",category:"category",connectionPoints:"connectionPoints",defaultHeight:"defaultHeight",defaultImageUrl:"defaultImageUrl",defaultText:"defaultText",defaultWidth:"defaultWidth",imageHeight:"imageHeight",imageLeft:"imageLeft",imageTop:"imageTop",imageWidth:"imageWidth",keepRatioOnAutoSize:"keepRatioOnAutoSize",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",template:"template",templateHeight:"templateHeight",templateLeft:"templateLeft",templateTop:"templateTop",templateWidth:"templateWidth",textHeight:"textHeight",textLeft:"textLeft",textTop:"textTop",textWidth:"textWidth",title:"title",toolboxTemplate:"toolboxTemplate",toolboxWidthToHeightRatio:"toolboxWidthToHeightRatio",type:"type"},features:[o._Bn([c.al,c._5]),o.qOj],ngContentSelectors:en,decls:1,vars:0,template:function(m,je){1&m&&(o.F$t(),o.Hsn(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),L})(),Ze=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),_t=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ot=(()=>{class L extends c.Fx{get calculateFilterExpression(){return this._getOption("calculateFilterExpression")}set calculateFilterExpression(m){this._setOption("calculateFilterExpression",m)}get caption(){return this._getOption("caption")}set caption(m){this._setOption("caption",m)}get customizeText(){return this._getOption("customizeText")}set customizeText(m){this._setOption("customizeText",m)}get dataField(){return this._getOption("dataField")}set dataField(m){this._setOption("dataField",m)}get dataType(){return this._getOption("dataType")}set dataType(m){this._setOption("dataType",m)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(m){this._setOption("editorOptions",m)}get editorTemplate(){return this._getOption("editorTemplate")}set editorTemplate(m){this._setOption("editorTemplate",m)}get falseText(){return this._getOption("falseText")}set falseText(m){this._setOption("falseText",m)}get filterOperations(){return this._getOption("filterOperations")}set filterOperations(m){this._setOption("filterOperations",m)}get format(){return this._getOption("format")}set format(m){this._setOption("format",m)}get lookup(){return this._getOption("lookup")}set lookup(m){this._setOption("lookup",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}get trueText(){return this._getOption("trueText")}set trueText(m){this._setOption("trueText",m)}get allowCrossGroupCalculation(){return this._getOption("allowCrossGroupCalculation")}set allowCrossGroupCalculation(m){this._setOption("allowCrossGroupCalculation",m)}get allowExpandAll(){return this._getOption("allowExpandAll")}set allowExpandAll(m){this._setOption("allowExpandAll",m)}get allowFiltering(){return this._getOption("allowFiltering")}set allowFiltering(m){this._setOption("allowFiltering",m)}get allowSorting(){return this._getOption("allowSorting")}set allowSorting(m){this._setOption("allowSorting",m)}get allowSortingBySummary(){return this._getOption("allowSortingBySummary")}set allowSortingBySummary(m){this._setOption("allowSortingBySummary",m)}get area(){return this._getOption("area")}set area(m){this._setOption("area",m)}get areaIndex(){return this._getOption("areaIndex")}set areaIndex(m){this._setOption("areaIndex",m)}get calculateCustomSummary(){return this._getOption("calculateCustomSummary")}set calculateCustomSummary(m){this._setOption("calculateCustomSummary",m)}get calculateSummaryValue(){return this._getOption("calculateSummaryValue")}set calculateSummaryValue(m){this._setOption("calculateSummaryValue",m)}get displayFolder(){return this._getOption("displayFolder")}set displayFolder(m){this._setOption("displayFolder",m)}get expanded(){return this._getOption("expanded")}set expanded(m){this._setOption("expanded",m)}get filterType(){return this._getOption("filterType")}set filterType(m){this._setOption("filterType",m)}get filterValues(){return this._getOption("filterValues")}set filterValues(m){this._setOption("filterValues",m)}get groupIndex(){return this._getOption("groupIndex")}set groupIndex(m){this._setOption("groupIndex",m)}get groupInterval(){return this._getOption("groupInterval")}set groupInterval(m){this._setOption("groupInterval",m)}get groupName(){return this._getOption("groupName")}set groupName(m){this._setOption("groupName",m)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(m){this._setOption("headerFilter",m)}get isMeasure(){return this._getOption("isMeasure")}set isMeasure(m){this._setOption("isMeasure",m)}get precision(){return this._getOption("precision")}set precision(m){this._setOption("precision",m)}get runningTotal(){return this._getOption("runningTotal")}set runningTotal(m){this._setOption("runningTotal",m)}get selector(){return this._getOption("selector")}set selector(m){this._setOption("selector",m)}get showGrandTotals(){return this._getOption("showGrandTotals")}set showGrandTotals(m){this._setOption("showGrandTotals",m)}get showTotals(){return this._getOption("showTotals")}set showTotals(m){this._setOption("showTotals",m)}get showValues(){return this._getOption("showValues")}set showValues(m){this._setOption("showValues",m)}get sortBy(){return this._getOption("sortBy")}set sortBy(m){this._setOption("sortBy",m)}get sortBySummaryField(){return this._getOption("sortBySummaryField")}set sortBySummaryField(m){this._setOption("sortBySummaryField",m)}get sortBySummaryPath(){return this._getOption("sortBySummaryPath")}set sortBySummaryPath(m){this._setOption("sortBySummaryPath",m)}get sortingMethod(){return this._getOption("sortingMethod")}set sortingMethod(m){this._setOption("sortingMethod",m)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(m){this._setOption("sortOrder",m)}get summaryDisplayMode(){return this._getOption("summaryDisplayMode")}set summaryDisplayMode(m){this._setOption("summaryDisplayMode",m)}get summaryType(){return this._getOption("summaryType")}set summaryType(m){this._setOption("summaryType",m)}get visible(){return this._getOption("visible")}set visible(m){this._setOption("visible",m)}get width(){return this._getOption("width")}set width(m){this._setOption("width",m)}get wordWrapEnabled(){return this._getOption("wordWrapEnabled")}set wordWrapEnabled(m){this._setOption("wordWrapEnabled",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),qt=(()=>{class L extends Ot{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"fields"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,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:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),mn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),pt=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),hn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Nn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),st=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),rn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),rt=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),gt=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})();const Un=["*"];let ai=(()=>{class L extends c.Fx{constructor(m,je,ui,Ti,ou,Ls){super(),this.renderer=ui,this.document=Ti,this.element=Ls,m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this)),ou.setHost(this)}get cssClass(){return this._getOption("cssClass")}set cssClass(m){this._setOption("cssClass",m)}get disabled(){return this._getOption("disabled")}set disabled(m){this._setOption("disabled",m)}get html(){return this._getOption("html")}set html(m){this._setOption("html",m)}get locateInMenu(){return this._getOption("locateInMenu")}set locateInMenu(m){this._setOption("locateInMenu",m)}get location(){return this._getOption("location")}set location(m){this._setOption("location",m)}get menuItemTemplate(){return this._getOption("menuItemTemplate")}set menuItemTemplate(m){this._setOption("menuItemTemplate",m)}get options(){return this._getOption("options")}set options(m){this._setOption("options",m)}get showText(){return this._getOption("showText")}set showText(m){this._setOption("showText",m)}get template(){return this._getOption("template")}set template(m){this._setOption("template",m)}get text(){return this._getOption("text")}set text(m){this._setOption("text",m)}get toolbar(){return this._getOption("toolbar")}set toolbar(m){this._setOption("toolbar",m)}get visible(){return this._getOption("visible")}set visible(m){this._setOption("visible",m)}get widget(){return this._getOption("widget")}set widget(m){this._setOption("widget",m)}get _optionPath(){return"toolbarItems"}setTemplate(m){this.template=m}ngAfterViewInit(){(0,c.UX)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1),o.Y36(o.Qsj),o.Y36(I.K0),o.Y36(c._5,1),o.Y36(o.SBq))},L.\u0275cmp=o.Xpm({type:L,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:[o._Bn([c.al,c._5]),o.qOj],ngContentSelectors:Un,decls:1,vars:0,template:function(m,je){1&m&&(o.F$t(),o.Hsn(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),L})(),Ci=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),zi=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Xi=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),wr=(()=>{class L extends c.RW{constructor(m,je){super(),this._createEventEmitters([{emit:"changesChange"},{emit:"editColumnNameChange"},{emit:"editRowKeyChange"}]),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get allowAdding(){return this._getOption("allowAdding")}set allowAdding(m){this._setOption("allowAdding",m)}get allowDeleting(){return this._getOption("allowDeleting")}set allowDeleting(m){this._setOption("allowDeleting",m)}get allowUpdating(){return this._getOption("allowUpdating")}set allowUpdating(m){this._setOption("allowUpdating",m)}get changes(){return this._getOption("changes")}set changes(m){this._setOption("changes",m)}get confirmDelete(){return this._getOption("confirmDelete")}set confirmDelete(m){this._setOption("confirmDelete",m)}get editColumnName(){return this._getOption("editColumnName")}set editColumnName(m){this._setOption("editColumnName",m)}get editRowKey(){return this._getOption("editRowKey")}set editRowKey(m){this._setOption("editRowKey",m)}get form(){return this._getOption("form")}set form(m){this._setOption("form",m)}get mode(){return this._getOption("mode")}set mode(m){this._setOption("mode",m)}get newRowPosition(){return this._getOption("newRowPosition")}set newRowPosition(m){this._setOption("newRowPosition",m)}get popup(){return this._getOption("popup")}set popup(m){this._setOption("popup",m)}get refreshMode(){return this._getOption("refreshMode")}set refreshMode(m){this._setOption("refreshMode",m)}get selectTextOnEditStart(){return this._getOption("selectTextOnEditStart")}set selectTextOnEditStart(m){this._setOption("selectTextOnEditStart",m)}get startEditAction(){return this._getOption("startEditAction")}set startEditAction(m){this._setOption("startEditAction",m)}get texts(){return this._getOption("texts")}set texts(m){this._setOption("texts",m)}get useIcons(){return this._getOption("useIcons")}set useIcons(m){this._setOption("useIcons",m)}get allowAddShape(){return this._getOption("allowAddShape")}set allowAddShape(m){this._setOption("allowAddShape",m)}get allowChangeConnection(){return this._getOption("allowChangeConnection")}set allowChangeConnection(m){this._setOption("allowChangeConnection",m)}get allowChangeConnectorPoints(){return this._getOption("allowChangeConnectorPoints")}set allowChangeConnectorPoints(m){this._setOption("allowChangeConnectorPoints",m)}get allowChangeConnectorText(){return this._getOption("allowChangeConnectorText")}set allowChangeConnectorText(m){this._setOption("allowChangeConnectorText",m)}get allowChangeShapeText(){return this._getOption("allowChangeShapeText")}set allowChangeShapeText(m){this._setOption("allowChangeShapeText",m)}get allowDeleteConnector(){return this._getOption("allowDeleteConnector")}set allowDeleteConnector(m){this._setOption("allowDeleteConnector",m)}get allowDeleteShape(){return this._getOption("allowDeleteShape")}set allowDeleteShape(m){this._setOption("allowDeleteShape",m)}get allowMoveShape(){return this._getOption("allowMoveShape")}set allowMoveShape(m){this._setOption("allowMoveShape",m)}get allowResizeShape(){return this._getOption("allowResizeShape")}set allowResizeShape(m){this._setOption("allowResizeShape",m)}get allowDependencyAdding(){return this._getOption("allowDependencyAdding")}set allowDependencyAdding(m){this._setOption("allowDependencyAdding",m)}get allowDependencyDeleting(){return this._getOption("allowDependencyDeleting")}set allowDependencyDeleting(m){this._setOption("allowDependencyDeleting",m)}get allowResourceAdding(){return this._getOption("allowResourceAdding")}set allowResourceAdding(m){this._setOption("allowResourceAdding",m)}get allowResourceDeleting(){return this._getOption("allowResourceDeleting")}set allowResourceDeleting(m){this._setOption("allowResourceDeleting",m)}get allowResourceUpdating(){return this._getOption("allowResourceUpdating")}set allowResourceUpdating(m){this._setOption("allowResourceUpdating",m)}get allowTaskAdding(){return this._getOption("allowTaskAdding")}set allowTaskAdding(m){this._setOption("allowTaskAdding",m)}get allowTaskDeleting(){return this._getOption("allowTaskDeleting")}set allowTaskDeleting(m){this._setOption("allowTaskDeleting",m)}get allowTaskResourceUpdating(){return this._getOption("allowTaskResourceUpdating")}set allowTaskResourceUpdating(m){this._setOption("allowTaskResourceUpdating",m)}get allowTaskUpdating(){return this._getOption("allowTaskUpdating")}set allowTaskUpdating(m){this._setOption("allowTaskUpdating",m)}get enabled(){return this._getOption("enabled")}set enabled(m){this._setOption("enabled",m)}get allowDragging(){return this._getOption("allowDragging")}set allowDragging(m){this._setOption("allowDragging",m)}get allowResizing(){return this._getOption("allowResizing")}set allowResizing(m){this._setOption("allowResizing",m)}get allowTimeZoneEditing(){return this._getOption("allowTimeZoneEditing")}set allowTimeZoneEditing(m){this._setOption("allowTimeZoneEditing",m)}get _optionPath(){return"editing"}get changesChildren(){return this._getOption("changes")}set changesChildren(m){this.setChildren("changes",m)}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-editing"]],contentQueries:function(m,je,ui){if(1&m&&o.Suo(ui,Vn,4),2&m){let Ti;o.iGM(Ti=o.CRH())&&(je.changesChildren=Ti)}},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:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),vr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Xr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),no=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ua=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Vo=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Yr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),da=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),us=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ca=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Go=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ta=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ha=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),_a=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Qt=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Pt=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Wr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),vt=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),We=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),at=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),gn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Qn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),vi=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),bi=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),pr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),fr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),er=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Lr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Or=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Qr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),To=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ga=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),oa=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Qo=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ma=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Aa=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ln=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Zt=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Lt=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),pn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Qe=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Tn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),wi=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Li=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Cr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),lo=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),mo=(()=>{class L extends c.RW{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get connectorColor(){return this._getOption("connectorColor")}set connectorColor(m){this._setOption("connectorColor",m)}get connectorWidth(){return this._getOption("connectorWidth")}set connectorWidth(m){this._setOption("connectorWidth",m)}get customizeText(){return this._getOption("customizeText")}set customizeText(m){this._setOption("customizeText",m)}get font(){return this._getOption("font")}set font(m){this._setOption("font",m)}get format(){return this._getOption("format")}set format(m){this._setOption("format",m)}get indent(){return this._getOption("indent")}set indent(m){this._setOption("indent",m)}get visible(){return this._getOption("visible")}set visible(m){this._setOption("visible",m)}get horizontalAlignment(){return this._getOption("horizontalAlignment")}set horizontalAlignment(m){this._setOption("horizontalAlignment",m)}get position(){return this._getOption("position")}set position(m){this._setOption("position",m)}get text(){return this._getOption("text")}set text(m){this._setOption("text",m)}get verticalAlignment(){return this._getOption("verticalAlignment")}set verticalAlignment(m){this._setOption("verticalAlignment",m)}get alignment(){return this._getOption("alignment")}set alignment(m){this._setOption("alignment",m)}get customizeHint(){return this._getOption("customizeHint")}set customizeHint(m){this._setOption("customizeHint",m)}get displayMode(){return this._getOption("displayMode")}set displayMode(m){this._setOption("displayMode",m)}get indentFromAxis(){return this._getOption("indentFromAxis")}set indentFromAxis(m){this._setOption("indentFromAxis",m)}get overlappingBehavior(){return this._getOption("overlappingBehavior")}set overlappingBehavior(m){this._setOption("overlappingBehavior",m)}get rotationAngle(){return this._getOption("rotationAngle")}set rotationAngle(m){this._setOption("rotationAngle",m)}get staggeringSpacing(){return this._getOption("staggeringSpacing")}set staggeringSpacing(m){this._setOption("staggeringSpacing",m)}get template(){return this._getOption("template")}set template(m){this._setOption("template",m)}get textOverflow(){return this._getOption("textOverflow")}set textOverflow(m){this._setOption("textOverflow",m)}get wordWrap(){return this._getOption("wordWrap")}set wordWrap(m){this._setOption("wordWrap",m)}get argumentFormat(){return this._getOption("argumentFormat")}set argumentFormat(m){this._setOption("argumentFormat",m)}get backgroundColor(){return this._getOption("backgroundColor")}set backgroundColor(m){this._setOption("backgroundColor",m)}get border(){return this._getOption("border")}set border(m){this._setOption("border",m)}get connector(){return this._getOption("connector")}set connector(m){this._setOption("connector",m)}get displayFormat(){return this._getOption("displayFormat")}set displayFormat(m){this._setOption("displayFormat",m)}get horizontalOffset(){return this._getOption("horizontalOffset")}set horizontalOffset(m){this._setOption("horizontalOffset",m)}get showForZeroValues(){return this._getOption("showForZeroValues")}set showForZeroValues(m){this._setOption("showForZeroValues",m)}get verticalOffset(){return this._getOption("verticalOffset")}set verticalOffset(m){this._setOption("verticalOffset",m)}get hideFirstOrLast(){return this._getOption("hideFirstOrLast")}set hideFirstOrLast(m){this._setOption("hideFirstOrLast",m)}get indentFromTick(){return this._getOption("indentFromTick")}set indentFromTick(m){this._setOption("indentFromTick",m)}get useRangeColors(){return this._getOption("useRangeColors")}set useRangeColors(m){this._setOption("useRangeColors",m)}get location(){return this._getOption("location")}set location(m){this._setOption("location",m)}get showColon(){return this._getOption("showColon")}set showColon(m){this._setOption("showColon",m)}get radialOffset(){return this._getOption("radialOffset")}set radialOffset(m){this._setOption("radialOffset",m)}get topIndent(){return this._getOption("topIndent")}set topIndent(m){this._setOption("topIndent",m)}get shadow(){return this._getOption("shadow")}set shadow(m){this._setOption("shadow",m)}get useNodeColors(){return this._getOption("useNodeColors")}set useNodeColors(m){this._setOption("useNodeColors",m)}get dataField(){return this._getOption("dataField")}set dataField(m){this._setOption("dataField",m)}get enabled(){return this._getOption("enabled")}set enabled(m){this._setOption("enabled",m)}get _optionPath(){return"label"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,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:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),bo=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),wo=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get borderColor(){return this._getOption("borderColor")}set borderColor(m){this._setOption("borderColor",m)}get borderWidth(){return this._getOption("borderWidth")}set borderWidth(m){this._setOption("borderWidth",m)}get color(){return this._getOption("color")}set color(m){this._setOption("color",m)}get colorGroupingField(){return this._getOption("colorGroupingField")}set colorGroupingField(m){this._setOption("colorGroupingField",m)}get colorGroups(){return this._getOption("colorGroups")}set colorGroups(m){this._setOption("colorGroups",m)}get customize(){return this._getOption("customize")}set customize(m){this._setOption("customize",m)}get dataField(){return this._getOption("dataField")}set dataField(m){this._setOption("dataField",m)}get dataSource(){return this._getOption("dataSource")}set dataSource(m){this._setOption("dataSource",m)}get elementType(){return this._getOption("elementType")}set elementType(m){this._setOption("elementType",m)}get hoveredBorderColor(){return this._getOption("hoveredBorderColor")}set hoveredBorderColor(m){this._setOption("hoveredBorderColor",m)}get hoveredBorderWidth(){return this._getOption("hoveredBorderWidth")}set hoveredBorderWidth(m){this._setOption("hoveredBorderWidth",m)}get hoveredColor(){return this._getOption("hoveredColor")}set hoveredColor(m){this._setOption("hoveredColor",m)}get hoverEnabled(){return this._getOption("hoverEnabled")}set hoverEnabled(m){this._setOption("hoverEnabled",m)}get label(){return this._getOption("label")}set label(m){this._setOption("label",m)}get maxSize(){return this._getOption("maxSize")}set maxSize(m){this._setOption("maxSize",m)}get minSize(){return this._getOption("minSize")}set minSize(m){this._setOption("minSize",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}get opacity(){return this._getOption("opacity")}set opacity(m){this._setOption("opacity",m)}get palette(){return this._getOption("palette")}set palette(m){this._setOption("palette",m)}get paletteIndex(){return this._getOption("paletteIndex")}set paletteIndex(m){this._setOption("paletteIndex",m)}get paletteSize(){return this._getOption("paletteSize")}set paletteSize(m){this._setOption("paletteSize",m)}get selectedBorderColor(){return this._getOption("selectedBorderColor")}set selectedBorderColor(m){this._setOption("selectedBorderColor",m)}get selectedBorderWidth(){return this._getOption("selectedBorderWidth")}set selectedBorderWidth(m){this._setOption("selectedBorderWidth",m)}get selectedColor(){return this._getOption("selectedColor")}set selectedColor(m){this._setOption("selectedColor",m)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(m){this._setOption("selectionMode",m)}get size(){return this._getOption("size")}set size(m){this._setOption("size",m)}get sizeGroupingField(){return this._getOption("sizeGroupingField")}set sizeGroupingField(m){this._setOption("sizeGroupingField",m)}get sizeGroups(){return this._getOption("sizeGroups")}set sizeGroups(m){this._setOption("sizeGroups",m)}get type(){return this._getOption("type")}set type(m){this._setOption("type",m)}get _optionPath(){return"layers"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-layer"]],inputs:{borderColor:"borderColor",borderWidth:"borderWidth",color:"color",colorGroupingField:"colorGroupingField",colorGroups:"colorGroups",customize:"customize",dataField:"dataField",dataSource:"dataSource",elementType:"elementType",hoveredBorderColor:"hoveredBorderColor",hoveredBorderWidth:"hoveredBorderWidth",hoveredColor:"hoveredColor",hoverEnabled:"hoverEnabled",label:"label",maxSize:"maxSize",minSize:"minSize",name:"name",opacity:"opacity",palette:"palette",paletteIndex:"paletteIndex",paletteSize:"paletteSize",selectedBorderColor:"selectedBorderColor",selectedBorderWidth:"selectedBorderWidth",selectedColor:"selectedColor",selectionMode:"selectionMode",size:"size",sizeGroupingField:"sizeGroupingField",sizeGroups:"sizeGroups",type:"type"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Lo=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Jo=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get backgroundColor(){return this._getOption("backgroundColor")}set backgroundColor(m){this._setOption("backgroundColor",m)}get border(){return this._getOption("border")}set border(m){this._setOption("border",m)}get columnCount(){return this._getOption("columnCount")}set columnCount(m){this._setOption("columnCount",m)}get columnItemSpacing(){return this._getOption("columnItemSpacing")}set columnItemSpacing(m){this._setOption("columnItemSpacing",m)}get customizeHint(){return this._getOption("customizeHint")}set customizeHint(m){this._setOption("customizeHint",m)}get customizeItems(){return this._getOption("customizeItems")}set customizeItems(m){this._setOption("customizeItems",m)}get customizeText(){return this._getOption("customizeText")}set customizeText(m){this._setOption("customizeText",m)}get font(){return this._getOption("font")}set font(m){this._setOption("font",m)}get horizontalAlignment(){return this._getOption("horizontalAlignment")}set horizontalAlignment(m){this._setOption("horizontalAlignment",m)}get itemsAlignment(){return this._getOption("itemsAlignment")}set itemsAlignment(m){this._setOption("itemsAlignment",m)}get itemTextPosition(){return this._getOption("itemTextPosition")}set itemTextPosition(m){this._setOption("itemTextPosition",m)}get margin(){return this._getOption("margin")}set margin(m){this._setOption("margin",m)}get markerColor(){return this._getOption("markerColor")}set markerColor(m){this._setOption("markerColor",m)}get markerShape(){return this._getOption("markerShape")}set markerShape(m){this._setOption("markerShape",m)}get markerSize(){return this._getOption("markerSize")}set markerSize(m){this._setOption("markerSize",m)}get markerTemplate(){return this._getOption("markerTemplate")}set markerTemplate(m){this._setOption("markerTemplate",m)}get orientation(){return this._getOption("orientation")}set orientation(m){this._setOption("orientation",m)}get paddingLeftRight(){return this._getOption("paddingLeftRight")}set paddingLeftRight(m){this._setOption("paddingLeftRight",m)}get paddingTopBottom(){return this._getOption("paddingTopBottom")}set paddingTopBottom(m){this._setOption("paddingTopBottom",m)}get rowCount(){return this._getOption("rowCount")}set rowCount(m){this._setOption("rowCount",m)}get rowItemSpacing(){return this._getOption("rowItemSpacing")}set rowItemSpacing(m){this._setOption("rowItemSpacing",m)}get source(){return this._getOption("source")}set source(m){this._setOption("source",m)}get title(){return this._getOption("title")}set title(m){this._setOption("title",m)}get verticalAlignment(){return this._getOption("verticalAlignment")}set verticalAlignment(m){this._setOption("verticalAlignment",m)}get visible(){return this._getOption("visible")}set visible(m){this._setOption("visible",m)}get _optionPath(){return"legends"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-legend"]],inputs:{backgroundColor:"backgroundColor",border:"border",columnCount:"columnCount",columnItemSpacing:"columnItemSpacing",customizeHint:"customizeHint",customizeItems:"customizeItems",customizeText:"customizeText",font:"font",horizontalAlignment:"horizontalAlignment",itemsAlignment:"itemsAlignment",itemTextPosition:"itemTextPosition",margin:"margin",markerColor:"markerColor",markerShape:"markerShape",markerSize:"markerSize",markerTemplate:"markerTemplate",orientation:"orientation",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",rowCount:"rowCount",rowItemSpacing:"rowItemSpacing",source:"source",title:"title",verticalAlignment:"verticalAlignment",visible:"visible"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),ia=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),aa=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Rd=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ed=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),wu=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Eu=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),td=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Cc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Up=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Su=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get iconSrc(){return this._getOption("iconSrc")}set iconSrc(m){this._setOption("iconSrc",m)}get location(){return this._getOption("location")}set location(m){this._setOption("location",m)}get onClick(){return this._getOption("onClick")}set onClick(m){this._setOption("onClick",m)}get tooltip(){return this._getOption("tooltip")}set tooltip(m){this._setOption("tooltip",m)}get _optionPath(){return"markers"}get locationChildren(){return this._getOption("location")}set locationChildren(m){this.setChildren("location",m)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-marker"]],contentQueries:function(m,je,ui){if(1&m&&o.Suo(ui,ke,4),2&m){let Ti;o.iGM(Ti=o.CRH())&&(je.locationChildren=Ti)}},inputs:{iconSrc:"iconSrc",location:"location",onClick:"onClick",tooltip:"tooltip"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Ou=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Bd=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),bc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),id=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Du=(()=>{class L extends c.RW{get allowedTargets(){return this._getOption("allowedTargets")}set allowedTargets(m){this._setOption("allowedTargets",m)}get enabled(){return this._getOption("enabled")}set enabled(m){this._setOption("enabled",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),Ec=(()=>{class L extends Du{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"mediaResizing"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-media-resizing"]],inputs:{allowedTargets:"allowedTargets",enabled:"enabled"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),ql=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ws=(()=>{class L extends c.Fx{get dataSource(){return this._getOption("dataSource")}set dataSource(m){this._setOption("dataSource",m)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(m){this._setOption("displayExpr",m)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(m){this._setOption("itemTemplate",m)}get marker(){return this._getOption("marker")}set marker(m){this._setOption("marker",m)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(m){this._setOption("minSearchLength",m)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(m){this._setOption("searchExpr",m)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(m){this._setOption("searchTimeout",m)}get template(){return this._getOption("template")}set template(m){this._setOption("template",m)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(m){this._setOption("valueExpr",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),rd=(()=>{class L extends ws{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"mentions"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-mention"]],inputs:{dataSource:"dataSource",displayExpr:"displayExpr",itemTemplate:"itemTemplate",marker:"marker",minSearchLength:"minSearchLength",searchExpr:"searchExpr",searchTimeout:"searchTimeout",template:"template",valueExpr:"valueExpr"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Is=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Fd=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get action(){return this._getOption("action")}set action(m){this._setOption("action",m)}get text(){return this._getOption("text")}set text(m){this._setOption("text",m)}get _optionPath(){return"menuItems"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-menu-item"]],inputs:{action:"action",text:"text"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Es=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ja=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Tu=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),od=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),yl=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ad=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),el=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ml=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Gp=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),sd=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Sc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ud=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),jp=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Iu=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ws=(()=>{class L extends c.RW{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get allowedPageSizes(){return this._getOption("allowedPageSizes")}set allowedPageSizes(m){this._setOption("allowedPageSizes",m)}get displayMode(){return this._getOption("displayMode")}set displayMode(m){this._setOption("displayMode",m)}get infoText(){return this._getOption("infoText")}set infoText(m){this._setOption("infoText",m)}get label(){return this._getOption("label")}set label(m){this._setOption("label",m)}get showInfo(){return this._getOption("showInfo")}set showInfo(m){this._setOption("showInfo",m)}get showNavigationButtons(){return this._getOption("showNavigationButtons")}set showNavigationButtons(m){this._setOption("showNavigationButtons",m)}get showPageSizeSelector(){return this._getOption("showPageSizeSelector")}set showPageSizeSelector(m){this._setOption("showPageSizeSelector",m)}get visible(){return this._getOption("visible")}set visible(m){this._setOption("visible",m)}get _optionPath(){return"pager"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-pager"]],inputs:{allowedPageSizes:"allowedPageSizes",displayMode:"displayMode",infoText:"infoText",label:"label",showInfo:"showInfo",showNavigationButtons:"showNavigationButtons",showPageSizeSelector:"showPageSizeSelector",visible:"visible"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Rh=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),vs=(()=>{class L extends c.RW{constructor(m,je){super(),this._createEventEmitters([{emit:"pageIndexChange"},{emit:"pageSizeChange"}]),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get enabled(){return this._getOption("enabled")}set enabled(m){this._setOption("enabled",m)}get pageIndex(){return this._getOption("pageIndex")}set pageIndex(m){this._setOption("pageIndex",m)}get pageSize(){return this._getOption("pageSize")}set pageSize(m){this._setOption("pageSize",m)}get _optionPath(){return"paging"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-paging"]],inputs:{enabled:"enabled",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Ss=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),dd=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get backgroundColor(){return this._getOption("backgroundColor")}set backgroundColor(m){this._setOption("backgroundColor",m)}get border(){return this._getOption("border")}set border(m){this._setOption("border",m)}get height(){return this._getOption("height")}set height(m){this._setOption("height",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}get _optionPath(){return"panes"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-pane"]],inputs:{backgroundColor:"backgroundColor",border:"border",height:"height",name:"name"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),cd=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Oc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Dc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),hs=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),dl=(()=>{class L extends c.RW{get at(){return this._getOption("at")}set at(m){this._setOption("at",m)}get boundary(){return this._getOption("boundary")}set boundary(m){this._setOption("boundary",m)}get boundaryOffset(){return this._getOption("boundaryOffset")}set boundaryOffset(m){this._setOption("boundaryOffset",m)}get collision(){return this._getOption("collision")}set collision(m){this._setOption("collision",m)}get my(){return this._getOption("my")}set my(m){this._setOption("my",m)}get of(){return this._getOption("of")}set of(m){this._setOption("of",m)}get offset(){return this._getOption("offset")}set offset(m){this._setOption("offset",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),eu=(()=>{class L extends dl{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"position"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-position"]],inputs:{at:"at",boundary:"boundary",boundaryOffset:"boundaryOffset",collision:"collision",my:"my",of:"of",offset:"offset"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Lh=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Yp=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Xp=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Bh=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),tu=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Au=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),nu=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),zd=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),iu=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Je=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ze=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get allowMultiple(){return this._getOption("allowMultiple")}set allowMultiple(m){this._setOption("allowMultiple",m)}get colorExpr(){return this._getOption("colorExpr")}set colorExpr(m){this._setOption("colorExpr",m)}get dataSource(){return this._getOption("dataSource")}set dataSource(m){this._setOption("dataSource",m)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(m){this._setOption("displayExpr",m)}get fieldExpr(){return this._getOption("fieldExpr")}set fieldExpr(m){this._setOption("fieldExpr",m)}get label(){return this._getOption("label")}set label(m){this._setOption("label",m)}get useColorAsDefault(){return this._getOption("useColorAsDefault")}set useColorAsDefault(m){this._setOption("useColorAsDefault",m)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(m){this._setOption("valueExpr",m)}get _optionPath(){return"resources"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-resource"]],inputs:{allowMultiple:"allowMultiple",colorExpr:"colorExpr",dataSource:"dataSource",displayExpr:"displayExpr",fieldExpr:"fieldExpr",label:"label",useColorAsDefault:"useColorAsDefault",valueExpr:"valueExpr"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Mt=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Bn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),zn=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get color(){return this._getOption("color")}set color(m){this._setOption("color",m)}get locations(){return this._getOption("locations")}set locations(m){this._setOption("locations",m)}get mode(){return this._getOption("mode")}set mode(m){this._setOption("mode",m)}get opacity(){return this._getOption("opacity")}set opacity(m){this._setOption("opacity",m)}get weight(){return this._getOption("weight")}set weight(m){this._setOption("weight",m)}get _optionPath(){return"routes"}get locationsChildren(){return this._getOption("locations")}set locationsChildren(m){this.setChildren("locations",m)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-route"]],contentQueries:function(m,je,ui){if(1&m&&o.Suo(ui,ke,4),2&m){let Ti;o.iGM(Ti=o.CRH())&&(je.locationsChildren=Ti)}},inputs:{color:"color",locations:"locations",mode:"mode",opacity:"opacity",weight:"weight"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),ki=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),jr=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),$r=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get baseSize(){return this._getOption("baseSize")}set baseSize(m){this._setOption("baseSize",m)}get ratio(){return this._getOption("ratio")}set ratio(m){this._setOption("ratio",m)}get screen(){return this._getOption("screen")}set screen(m){this._setOption("screen",m)}get shrink(){return this._getOption("shrink")}set shrink(m){this._setOption("shrink",m)}get _optionPath(){return"rows"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-row"]],inputs:{baseSize:"baseSize",ratio:"ratio",screen:"screen",shrink:"shrink"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),ra=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ms=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Al=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Jf=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Jp=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Qf=(()=>{class L extends c.RW{get columnRenderingMode(){return this._getOption("columnRenderingMode")}set columnRenderingMode(m){this._setOption("columnRenderingMode",m)}get mode(){return this._getOption("mode")}set mode(m){this._setOption("mode",m)}get preloadEnabled(){return this._getOption("preloadEnabled")}set preloadEnabled(m){this._setOption("preloadEnabled",m)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(m){this._setOption("renderAsync",m)}get rowRenderingMode(){return this._getOption("rowRenderingMode")}set rowRenderingMode(m){this._setOption("rowRenderingMode",m)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(m){this._setOption("scrollByContent",m)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(m){this._setOption("scrollByThumb",m)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(m){this._setOption("showScrollbar",m)}get useNative(){return this._getOption("useNative")}set useNative(m){this._setOption("useNative",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),Qp=(()=>{class L extends Qf{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"scrolling"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-scrolling"]],inputs:{columnRenderingMode:"columnRenderingMode",mode:"mode",preloadEnabled:"preloadEnabled",renderAsync:"renderAsync",rowRenderingMode:"rowRenderingMode",scrollByContent:"scrollByContent",scrollByThumb:"scrollByThumb",showScrollbar:"showScrollbar",useNative:"useNative"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Zs=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),pd=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Vh=(()=>{class L extends c.RW{constructor(m,je){super(),this._createEventEmitters([{emit:"textChange"}]),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get highlightCaseSensitive(){return this._getOption("highlightCaseSensitive")}set highlightCaseSensitive(m){this._setOption("highlightCaseSensitive",m)}get highlightSearchText(){return this._getOption("highlightSearchText")}set highlightSearchText(m){this._setOption("highlightSearchText",m)}get placeholder(){return this._getOption("placeholder")}set placeholder(m){this._setOption("placeholder",m)}get searchVisibleColumnsOnly(){return this._getOption("searchVisibleColumnsOnly")}set searchVisibleColumnsOnly(m){this._setOption("searchVisibleColumnsOnly",m)}get text(){return this._getOption("text")}set text(m){this._setOption("text",m)}get visible(){return this._getOption("visible")}set visible(m){this._setOption("visible",m)}get width(){return this._getOption("width")}set width(m){this._setOption("width",m)}get _optionPath(){return"searchPanel"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-search-panel"]],inputs:{highlightCaseSensitive:"highlightCaseSensitive",highlightSearchText:"highlightSearchText",placeholder:"placeholder",searchVisibleColumnsOnly:"searchVisibleColumnsOnly",text:"text",visible:"visible",width:"width"},outputs:{textChange:"textChange"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Nh=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Os=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),l_=(()=>{class L extends c.RW{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get allowSelectAll(){return this._getOption("allowSelectAll")}set allowSelectAll(m){this._setOption("allowSelectAll",m)}get deferred(){return this._getOption("deferred")}set deferred(m){this._setOption("deferred",m)}get mode(){return this._getOption("mode")}set mode(m){this._setOption("mode",m)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(m){this._setOption("selectAllMode",m)}get showCheckBoxesMode(){return this._getOption("showCheckBoxesMode")}set showCheckBoxesMode(m){this._setOption("showCheckBoxesMode",m)}get recursive(){return this._getOption("recursive")}set recursive(m){this._setOption("recursive",m)}get _optionPath(){return"selection"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-selection"]],inputs:{allowSelectAll:"allowSelectAll",deferred:"deferred",mode:"mode",selectAllMode:"selectAllMode",showCheckBoxesMode:"showCheckBoxesMode",recursive:"recursive"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Ya=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),gd=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Hh=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ks=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Pc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ng=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),nm=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),im=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),rm=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ps=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),kc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),rs=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Wd=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get groupColumn(){return this._getOption("groupColumn")}set groupColumn(m){this._setOption("groupColumn",m)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(m){this._setOption("sortOrder",m)}get summaryItem(){return this._getOption("summaryItem")}set summaryItem(m){this._setOption("summaryItem",m)}get _optionPath(){return"sortByGroupSummaryInfo"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-sort-by-group-summary-info"]],inputs:{groupColumn:"groupColumn",sortOrder:"sortOrder",summaryItem:"summaryItem"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Rc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Gs=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),sg=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Yo=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),lg=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Uh=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ud=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),am=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Kh=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ru=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Lc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),jh=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),fd=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),hg=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),lm=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),$h=(()=>{class L extends c.Fx{get cssClass(){return this._getOption("cssClass")}set cssClass(m){this._setOption("cssClass",m)}get end(){return this._getOption("end")}set end(m){this._setOption("end",m)}get start(){return this._getOption("start")}set start(m){this._setOption("start",m)}get title(){return this._getOption("title")}set title(m){this._setOption("title",m)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(m,je){},encapsulation:2}),L})(),Cl=(()=>{class L extends $h{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"stripLines"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-strip-line"]],inputs:{cssClass:"cssClass",end:"end",start:"start",title:"title"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),Yh=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),um=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Xh=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),qh=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),dm=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Zd=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),_g=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),yg=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),wn=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),md=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Rs=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),_d=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),xg=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),xl=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),yd=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ep=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),C_=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),wg=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Nc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Hc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Sg=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),pm=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Og=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),gm=(()=>{class L extends c.Fx{constructor(m,je){super(),this._createEventEmitters([{emit:"visualRangeChange"}]),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get aggregatedPointsPosition(){return this._getOption("aggregatedPointsPosition")}set aggregatedPointsPosition(m){this._setOption("aggregatedPointsPosition",m)}get allowDecimals(){return this._getOption("allowDecimals")}set allowDecimals(m){this._setOption("allowDecimals",m)}get autoBreaksEnabled(){return this._getOption("autoBreaksEnabled")}set autoBreaksEnabled(m){this._setOption("autoBreaksEnabled",m)}get axisDivisionFactor(){return this._getOption("axisDivisionFactor")}set axisDivisionFactor(m){this._setOption("axisDivisionFactor",m)}get breaks(){return this._getOption("breaks")}set breaks(m){this._setOption("breaks",m)}get breakStyle(){return this._getOption("breakStyle")}set breakStyle(m){this._setOption("breakStyle",m)}get categories(){return this._getOption("categories")}set categories(m){this._setOption("categories",m)}get color(){return this._getOption("color")}set color(m){this._setOption("color",m)}get constantLines(){return this._getOption("constantLines")}set constantLines(m){this._setOption("constantLines",m)}get constantLineStyle(){return this._getOption("constantLineStyle")}set constantLineStyle(m){this._setOption("constantLineStyle",m)}get customPosition(){return this._getOption("customPosition")}set customPosition(m){this._setOption("customPosition",m)}get discreteAxisDivisionMode(){return this._getOption("discreteAxisDivisionMode")}set discreteAxisDivisionMode(m){this._setOption("discreteAxisDivisionMode",m)}get endOnTick(){return this._getOption("endOnTick")}set endOnTick(m){this._setOption("endOnTick",m)}get grid(){return this._getOption("grid")}set grid(m){this._setOption("grid",m)}get inverted(){return this._getOption("inverted")}set inverted(m){this._setOption("inverted",m)}get label(){return this._getOption("label")}set label(m){this._setOption("label",m)}get linearThreshold(){return this._getOption("linearThreshold")}set linearThreshold(m){this._setOption("linearThreshold",m)}get logarithmBase(){return this._getOption("logarithmBase")}set logarithmBase(m){this._setOption("logarithmBase",m)}get maxAutoBreakCount(){return this._getOption("maxAutoBreakCount")}set maxAutoBreakCount(m){this._setOption("maxAutoBreakCount",m)}get maxValueMargin(){return this._getOption("maxValueMargin")}set maxValueMargin(m){this._setOption("maxValueMargin",m)}get minorGrid(){return this._getOption("minorGrid")}set minorGrid(m){this._setOption("minorGrid",m)}get minorTick(){return this._getOption("minorTick")}set minorTick(m){this._setOption("minorTick",m)}get minorTickCount(){return this._getOption("minorTickCount")}set minorTickCount(m){this._setOption("minorTickCount",m)}get minorTickInterval(){return this._getOption("minorTickInterval")}set minorTickInterval(m){this._setOption("minorTickInterval",m)}get minValueMargin(){return this._getOption("minValueMargin")}set minValueMargin(m){this._setOption("minValueMargin",m)}get minVisualRangeLength(){return this._getOption("minVisualRangeLength")}set minVisualRangeLength(m){this._setOption("minVisualRangeLength",m)}get multipleAxesSpacing(){return this._getOption("multipleAxesSpacing")}set multipleAxesSpacing(m){this._setOption("multipleAxesSpacing",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}get offset(){return this._getOption("offset")}set offset(m){this._setOption("offset",m)}get opacity(){return this._getOption("opacity")}set opacity(m){this._setOption("opacity",m)}get pane(){return this._getOption("pane")}set pane(m){this._setOption("pane",m)}get placeholderSize(){return this._getOption("placeholderSize")}set placeholderSize(m){this._setOption("placeholderSize",m)}get position(){return this._getOption("position")}set position(m){this._setOption("position",m)}get showZero(){return this._getOption("showZero")}set showZero(m){this._setOption("showZero",m)}get strips(){return this._getOption("strips")}set strips(m){this._setOption("strips",m)}get stripStyle(){return this._getOption("stripStyle")}set stripStyle(m){this._setOption("stripStyle",m)}get synchronizedValue(){return this._getOption("synchronizedValue")}set synchronizedValue(m){this._setOption("synchronizedValue",m)}get tick(){return this._getOption("tick")}set tick(m){this._setOption("tick",m)}get tickInterval(){return this._getOption("tickInterval")}set tickInterval(m){this._setOption("tickInterval",m)}get title(){return this._getOption("title")}set title(m){this._setOption("title",m)}get type(){return this._getOption("type")}set type(m){this._setOption("type",m)}get valueMarginsEnabled(){return this._getOption("valueMarginsEnabled")}set valueMarginsEnabled(m){this._setOption("valueMarginsEnabled",m)}get valueType(){return this._getOption("valueType")}set valueType(m){this._setOption("valueType",m)}get visible(){return this._getOption("visible")}set visible(m){this._setOption("visible",m)}get visualRange(){return this._getOption("visualRange")}set visualRange(m){this._setOption("visualRange",m)}get visualRangeUpdateMode(){return this._getOption("visualRangeUpdateMode")}set visualRangeUpdateMode(m){this._setOption("visualRangeUpdateMode",m)}get wholeRange(){return this._getOption("wholeRange")}set wholeRange(m){this._setOption("wholeRange",m)}get width(){return this._getOption("width")}set width(m){this._setOption("width",m)}get _optionPath(){return"valueAxis"}get breaksChildren(){return this._getOption("breaks")}set breaksChildren(m){this.setChildren("breaks",m)}get constantLinesChildren(){return this._getOption("constantLines")}set constantLinesChildren(m){this.setChildren("constantLines",m)}get stripsChildren(){return this._getOption("strips")}set stripsChildren(m){this.setChildren("strips",m)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-value-axis"]],contentQueries:function(m,je,ui){if(1&m&&(o.Suo(ui,N,4),o.Suo(ui,U,4),o.Suo(ui,Y,4)),2&m){let Ti;o.iGM(Ti=o.CRH())&&(je.breaksChildren=Ti),o.iGM(Ti=o.CRH())&&(je.constantLinesChildren=Ti),o.iGM(Ti=o.CRH())&&(je.stripsChildren=Ti)}},inputs:{aggregatedPointsPosition:"aggregatedPointsPosition",allowDecimals:"allowDecimals",autoBreaksEnabled:"autoBreaksEnabled",axisDivisionFactor:"axisDivisionFactor",breaks:"breaks",breakStyle:"breakStyle",categories:"categories",color:"color",constantLines:"constantLines",constantLineStyle:"constantLineStyle",customPosition:"customPosition",discreteAxisDivisionMode:"discreteAxisDivisionMode",endOnTick:"endOnTick",grid:"grid",inverted:"inverted",label:"label",linearThreshold:"linearThreshold",logarithmBase:"logarithmBase",maxAutoBreakCount:"maxAutoBreakCount",maxValueMargin:"maxValueMargin",minorGrid:"minorGrid",minorTick:"minorTick",minorTickCount:"minorTickCount",minorTickInterval:"minorTickInterval",minValueMargin:"minValueMargin",minVisualRangeLength:"minVisualRangeLength",multipleAxesSpacing:"multipleAxesSpacing",name:"name",offset:"offset",opacity:"opacity",pane:"pane",placeholderSize:"placeholderSize",position:"position",showZero:"showZero",strips:"strips",stripStyle:"stripStyle",synchronizedValue:"synchronizedValue",tick:"tick",tickInterval:"tickInterval",title:"title",type:"type",valueMarginsEnabled:"valueMarginsEnabled",valueType:"valueType",visible:"visible",visualRange:"visualRange",visualRangeUpdateMode:"visualRangeUpdateMode",wholeRange:"wholeRange",width:"width"},outputs:{visualRangeChange:"visualRangeChange"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),fm=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Kd=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Dg=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Tg=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),zc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Gd=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),rp=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Pl=(()=>{class L extends c.Fx{constructor(m,je){super(),m.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get agendaDuration(){return this._getOption("agendaDuration")}set agendaDuration(m){this._setOption("agendaDuration",m)}get allDayPanelMode(){return this._getOption("allDayPanelMode")}set allDayPanelMode(m){this._setOption("allDayPanelMode",m)}get appointmentCollectorTemplate(){return this._getOption("appointmentCollectorTemplate")}set appointmentCollectorTemplate(m){this._setOption("appointmentCollectorTemplate",m)}get appointmentTemplate(){return this._getOption("appointmentTemplate")}set appointmentTemplate(m){this._setOption("appointmentTemplate",m)}get appointmentTooltipTemplate(){return this._getOption("appointmentTooltipTemplate")}set appointmentTooltipTemplate(m){this._setOption("appointmentTooltipTemplate",m)}get cellDuration(){return this._getOption("cellDuration")}set cellDuration(m){this._setOption("cellDuration",m)}get dataCellTemplate(){return this._getOption("dataCellTemplate")}set dataCellTemplate(m){this._setOption("dataCellTemplate",m)}get dateCellTemplate(){return this._getOption("dateCellTemplate")}set dateCellTemplate(m){this._setOption("dateCellTemplate",m)}get dropDownAppointmentTemplate(){return this._getOption("dropDownAppointmentTemplate")}set dropDownAppointmentTemplate(m){this._setOption("dropDownAppointmentTemplate",m)}get endDayHour(){return this._getOption("endDayHour")}set endDayHour(m){this._setOption("endDayHour",m)}get firstDayOfWeek(){return this._getOption("firstDayOfWeek")}set firstDayOfWeek(m){this._setOption("firstDayOfWeek",m)}get groupByDate(){return this._getOption("groupByDate")}set groupByDate(m){this._setOption("groupByDate",m)}get groupOrientation(){return this._getOption("groupOrientation")}set groupOrientation(m){this._setOption("groupOrientation",m)}get groups(){return this._getOption("groups")}set groups(m){this._setOption("groups",m)}get intervalCount(){return this._getOption("intervalCount")}set intervalCount(m){this._setOption("intervalCount",m)}get maxAppointmentsPerCell(){return this._getOption("maxAppointmentsPerCell")}set maxAppointmentsPerCell(m){this._setOption("maxAppointmentsPerCell",m)}get name(){return this._getOption("name")}set name(m){this._setOption("name",m)}get resourceCellTemplate(){return this._getOption("resourceCellTemplate")}set resourceCellTemplate(m){this._setOption("resourceCellTemplate",m)}get scrolling(){return this._getOption("scrolling")}set scrolling(m){this._setOption("scrolling",m)}get startDate(){return this._getOption("startDate")}set startDate(m){this._setOption("startDate",m)}get startDayHour(){return this._getOption("startDayHour")}set startDayHour(m){this._setOption("startDayHour",m)}get timeCellTemplate(){return this._getOption("timeCellTemplate")}set timeCellTemplate(m){this._setOption("timeCellTemplate",m)}get type(){return this._getOption("type")}set type(m){this._setOption("type",m)}get _optionPath(){return"views"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(m){return new(m||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-view"]],inputs:{agendaDuration:"agendaDuration",allDayPanelMode:"allDayPanelMode",appointmentCollectorTemplate:"appointmentCollectorTemplate",appointmentTemplate:"appointmentTemplate",appointmentTooltipTemplate:"appointmentTooltipTemplate",cellDuration:"cellDuration",dataCellTemplate:"dataCellTemplate",dateCellTemplate:"dateCellTemplate",dropDownAppointmentTemplate:"dropDownAppointmentTemplate",endDayHour:"endDayHour",firstDayOfWeek:"firstDayOfWeek",groupByDate:"groupByDate",groupOrientation:"groupOrientation",groups:"groups",intervalCount:"intervalCount",maxAppointmentsPerCell:"maxAppointmentsPerCell",name:"name",resourceCellTemplate:"resourceCellTemplate",scrolling:"scrolling",startDate:"startDate",startDayHour:"startDayHour",timeCellTemplate:"timeCellTemplate",type:"type"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(m,je){},styles:[""]}),L})(),kl=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Mg=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ap=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),b_=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Zc=(()=>{class L{}return L.\u0275fac=function(m){return new(m||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})()},1740:(kn,he,l)=>{"use strict";l.d(he,{C:()=>s,x:()=>p});var o=l(5998),c=l(4370),I=l(9609),C=l(1759),f=l(8208);const a=["*"];let p=(()=>{class u extends C.Ay{constructor(h,g,x,b,y,E,S,O){super(h,g,x,b,S,O),this._watcherHelper=b,this._idh=y,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),E.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(h){this._setOption("accessKey",h)}get animation(){return this._getOption("animation")}set animation(h){this._setOption("animation",h)}get closeOnOutsideClick(){return this._getOption("closeOnOutsideClick")}set closeOnOutsideClick(h){this._setOption("closeOnOutsideClick",h)}get container(){return this._getOption("container")}set container(h){this._setOption("container",h)}get contentTemplate(){return this._getOption("contentTemplate")}set contentTemplate(h){this._setOption("contentTemplate",h)}get copyRootClassesToWrapper(){return this._getOption("copyRootClassesToWrapper")}set copyRootClassesToWrapper(h){this._setOption("copyRootClassesToWrapper",h)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(h){this._setOption("deferRendering",h)}get disabled(){return this._getOption("disabled")}set disabled(h){this._setOption("disabled",h)}get dragAndResizeArea(){return this._getOption("dragAndResizeArea")}set dragAndResizeArea(h){this._setOption("dragAndResizeArea",h)}get dragEnabled(){return this._getOption("dragEnabled")}set dragEnabled(h){this._setOption("dragEnabled",h)}get dragOutsideBoundary(){return this._getOption("dragOutsideBoundary")}set dragOutsideBoundary(h){this._setOption("dragOutsideBoundary",h)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(h){this._setOption("elementAttr",h)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(h){this._setOption("focusStateEnabled",h)}get fullScreen(){return this._getOption("fullScreen")}set fullScreen(h){this._setOption("fullScreen",h)}get height(){return this._getOption("height")}set height(h){this._setOption("height",h)}get hideOnOutsideClick(){return this._getOption("hideOnOutsideClick")}set hideOnOutsideClick(h){this._setOption("hideOnOutsideClick",h)}get hideOnParentScroll(){return this._getOption("hideOnParentScroll")}set hideOnParentScroll(h){this._setOption("hideOnParentScroll",h)}get hint(){return this._getOption("hint")}set hint(h){this._setOption("hint",h)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(h){this._setOption("hoverStateEnabled",h)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(h){this._setOption("maxHeight",h)}get maxWidth(){return this._getOption("maxWidth")}set maxWidth(h){this._setOption("maxWidth",h)}get minHeight(){return this._getOption("minHeight")}set minHeight(h){this._setOption("minHeight",h)}get minWidth(){return this._getOption("minWidth")}set minWidth(h){this._setOption("minWidth",h)}get position(){return this._getOption("position")}set position(h){this._setOption("position",h)}get resizeEnabled(){return this._getOption("resizeEnabled")}set resizeEnabled(h){this._setOption("resizeEnabled",h)}get restorePosition(){return this._getOption("restorePosition")}set restorePosition(h){this._setOption("restorePosition",h)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(h){this._setOption("rtlEnabled",h)}get shading(){return this._getOption("shading")}set shading(h){this._setOption("shading",h)}get shadingColor(){return this._getOption("shadingColor")}set shadingColor(h){this._setOption("shadingColor",h)}get showCloseButton(){return this._getOption("showCloseButton")}set showCloseButton(h){this._setOption("showCloseButton",h)}get showTitle(){return this._getOption("showTitle")}set showTitle(h){this._setOption("showTitle",h)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(h){this._setOption("tabIndex",h)}get title(){return this._getOption("title")}set title(h){this._setOption("title",h)}get titleTemplate(){return this._getOption("titleTemplate")}set titleTemplate(h){this._setOption("titleTemplate",h)}get toolbarItems(){return this._getOption("toolbarItems")}set toolbarItems(h){this._setOption("toolbarItems",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get width(){return this._getOption("width")}set width(h){this._setOption("width",h)}get wrapperAttr(){return this._getOption("wrapperAttr")}set wrapperAttr(h){this._setOption("wrapperAttr",h)}get toolbarItemsChildren(){return this._getOption("toolbarItems")}set toolbarItemsChildren(h){this.setChildren("toolbarItems",h)}_createInstance(h,g){return new I.Z(h,g)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(h){super.ngOnChanges(h),this.setupChanges("toolbarItems",h)}setupChanges(h,g){h in this._optionsToUpdate||this._idh.setup(h,g)}ngDoCheck(){this._idh.doCheck("toolbarItems"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(h,g){let x=this._idh.setupSingle(h,g),b=null!==this._idh.getChanges(h,g);(x||b)&&super._setOption(h,g)}}return u.\u0275fac=function(h){return new(h||u)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(C._5),c.Y36(C._h),c.Y36(C.i9),c.Y36(C.al),c.Y36(o.ki),c.Y36(c.Lbi))},u.\u0275cmp=c.Xpm({type:u,selectors:[["dx-popup"]],contentQueries:function(h,g,x){if(1&h&&c.Suo(x,f.QjJ,4),2&h){let b;c.iGM(b=c.CRH())&&(g.toolbarItemsChildren=b)}},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:[c._Bn([C._5,C._h,C.al,C.i9]),c.qOj,c.TTD],ngContentSelectors:a,decls:1,vars:0,template:function(h,g){1&h&&(c.F$t(),c.Hsn(0))},encapsulation:2}),u})(),s=(()=>{class u{}return u.\u0275fac=function(h){return new(h||u)},u.\u0275mod=c.oAB({type:u}),u.\u0275inj=c.cJS({imports:[[f.IOm,f.kOw,f.weU,f.D_l,f.JxK,f.zZW,f.ynY,f.lgR,f.sni,f.waX,f.pxS,f.pGy,C.Lz,C.ie,o.Cu],f.IOm,f.kOw,f.weU,f.D_l,f.JxK,f.zZW,f.ynY,f.lgR,f.sni,f.waX,f.pxS,f.pGy,C.ie]}),u})()},944:(kn,he,l)=>{"use strict";l.d(he,{N:()=>a,r:()=>p});var o=l(5998),c=l(4370),I=l(3862),C=l(1759);const f=["*"];let a=(()=>{class s extends C.Ay{constructor(d,h,g,x,b,y,E){super(d,h,g,x,y,E),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"}]),b.setHost(this)}get bounceEnabled(){return this._getOption("bounceEnabled")}set bounceEnabled(d){this._setOption("bounceEnabled",d)}get direction(){return this._getOption("direction")}set direction(d){this._setOption("direction",d)}get disabled(){return this._getOption("disabled")}set disabled(d){this._setOption("disabled",d)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(d){this._setOption("elementAttr",d)}get height(){return this._getOption("height")}set height(d){this._setOption("height",d)}get pulledDownText(){return this._getOption("pulledDownText")}set pulledDownText(d){this._setOption("pulledDownText",d)}get pullingDownText(){return this._getOption("pullingDownText")}set pullingDownText(d){this._setOption("pullingDownText",d)}get reachBottomText(){return this._getOption("reachBottomText")}set reachBottomText(d){this._setOption("reachBottomText",d)}get refreshingText(){return this._getOption("refreshingText")}set refreshingText(d){this._setOption("refreshingText",d)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(d){this._setOption("rtlEnabled",d)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(d){this._setOption("scrollByContent",d)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(d){this._setOption("scrollByThumb",d)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(d){this._setOption("showScrollbar",d)}get useNative(){return this._getOption("useNative")}set useNative(d){this._setOption("useNative",d)}get width(){return this._getOption("width")}set width(d){this._setOption("width",d)}_createInstance(d,h){return new I.Z(d,h)}ngOnDestroy(){this._destroyWidget()}}return s.\u0275fac=function(d){return new(d||s)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(C._5),c.Y36(C._h),c.Y36(C.al),c.Y36(o.ki),c.Y36(c.Lbi))},s.\u0275cmp=c.Xpm({type:s,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:[c._Bn([C._5,C._h,C.al]),c.qOj],ngContentSelectors:f,decls:1,vars:0,template:function(d,h){1&d&&(c.F$t(),c.Hsn(0))},encapsulation:2}),s})(),p=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[[C.Lz,C.ie,o.Cu],C.ie]}),s})()},6229:(kn,he,l)=>{"use strict";l.d(he,{D:()=>u,_:()=>s});var o=l(5998),c=l(4370),I=l(5079),C=l(8942),f=l(1759),a=l(8208);const p={provide:C.JU,useExisting:(0,c.Gpc)(()=>s),multi:!0};let s=(()=>{class d extends f.Ay{constructor(g,x,b,y,E,S,O,w){super(g,x,b,y,O,w),this._watcherHelper=y,this._idh=E,this.touched=T=>{},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(g){this._setOption("acceptCustomValue",g)}get accessKey(){return this._getOption("accessKey")}set accessKey(g){this._setOption("accessKey",g)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(g){this._setOption("activeStateEnabled",g)}get buttons(){return this._getOption("buttons")}set buttons(g){this._setOption("buttons",g)}get customItemCreateEvent(){return this._getOption("customItemCreateEvent")}set customItemCreateEvent(g){this._setOption("customItemCreateEvent",g)}get dataSource(){return this._getOption("dataSource")}set dataSource(g){this._setOption("dataSource",g)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(g){this._setOption("deferRendering",g)}get disabled(){return this._getOption("disabled")}set disabled(g){this._setOption("disabled",g)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(g){this._setOption("displayExpr",g)}get displayValue(){return this._getOption("displayValue")}set displayValue(g){this._setOption("displayValue",g)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(g){this._setOption("dropDownButtonTemplate",g)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(g){this._setOption("dropDownOptions",g)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(g){this._setOption("elementAttr",g)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(g){this._setOption("fieldTemplate",g)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(g){this._setOption("focusStateEnabled",g)}get grouped(){return this._getOption("grouped")}set grouped(g){this._setOption("grouped",g)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(g){this._setOption("groupTemplate",g)}get height(){return this._getOption("height")}set height(g){this._setOption("height",g)}get hint(){return this._getOption("hint")}set hint(g){this._setOption("hint",g)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(g){this._setOption("hoverStateEnabled",g)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(g){this._setOption("inputAttr",g)}get isValid(){return this._getOption("isValid")}set isValid(g){this._setOption("isValid",g)}get items(){return this._getOption("items")}set items(g){this._setOption("items",g)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(g){this._setOption("itemTemplate",g)}get label(){return this._getOption("label")}set label(g){this._setOption("label",g)}get labelMode(){return this._getOption("labelMode")}set labelMode(g){this._setOption("labelMode",g)}get maxLength(){return this._getOption("maxLength")}set maxLength(g){this._setOption("maxLength",g)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(g){this._setOption("minSearchLength",g)}get name(){return this._getOption("name")}set name(g){this._setOption("name",g)}get noDataText(){return this._getOption("noDataText")}set noDataText(g){this._setOption("noDataText",g)}get opened(){return this._getOption("opened")}set opened(g){this._setOption("opened",g)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(g){this._setOption("openOnFieldClick",g)}get placeholder(){return this._getOption("placeholder")}set placeholder(g){this._setOption("placeholder",g)}get readOnly(){return this._getOption("readOnly")}set readOnly(g){this._setOption("readOnly",g)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(g){this._setOption("rtlEnabled",g)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(g){this._setOption("searchEnabled",g)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(g){this._setOption("searchExpr",g)}get searchMode(){return this._getOption("searchMode")}set searchMode(g){this._setOption("searchMode",g)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(g){this._setOption("searchTimeout",g)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(g){this._setOption("selectedItem",g)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(g){this._setOption("showClearButton",g)}get showDataBeforeSearch(){return this._getOption("showDataBeforeSearch")}set showDataBeforeSearch(g){this._setOption("showDataBeforeSearch",g)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(g){this._setOption("showDropDownButton",g)}get showSelectionControls(){return this._getOption("showSelectionControls")}set showSelectionControls(g){this._setOption("showSelectionControls",g)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(g){this._setOption("spellcheck",g)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(g){this._setOption("stylingMode",g)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(g){this._setOption("tabIndex",g)}get text(){return this._getOption("text")}set text(g){this._setOption("text",g)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(g){this._setOption("useItemTextAsTitle",g)}get validationError(){return this._getOption("validationError")}set validationError(g){this._setOption("validationError",g)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(g){this._setOption("validationErrors",g)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(g){this._setOption("validationMessageMode",g)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(g){this._setOption("validationMessagePosition",g)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(g){this._setOption("validationStatus",g)}get value(){return this._getOption("value")}set value(g){this._setOption("value",g)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(g){this._setOption("valueChangeEvent",g)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(g){this._setOption("valueExpr",g)}get visible(){return this._getOption("visible")}set visible(g){this._setOption("visible",g)}get width(){return this._getOption("width")}set width(g){this._setOption("width",g)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(g){this._setOption("wrapItemText",g)}change(g){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(g){this.setChildren("buttons",g)}get itemsChildren(){return this._getOption("items")}set itemsChildren(g){this.setChildren("items",g)}_createInstance(g,x){return new I.Z(g,x)}writeValue(g){this.eventHelper.lockedValueChangeEvent=!0,this.value=g,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(g){this.disabled=g}registerOnChange(g){this.change=g}registerOnTouched(g){this.touched=g}_createWidget(g){super._createWidget(g),this.instance.on("focusOut",x=>{this.eventHelper.fireNgEvent("onBlur",[x])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(g){super.ngOnChanges(g),this.setupChanges("buttons",g),this.setupChanges("dataSource",g),this.setupChanges("items",g),this.setupChanges("searchExpr",g),this.setupChanges("validationErrors",g)}setupChanges(g,x){g in this._optionsToUpdate||this._idh.setup(g,x)}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(g,x){let b=this._idh.setupSingle(g,x),y=null!==this._idh.getChanges(g,x);(b||y)&&super._setOption(g,x)}}return d.\u0275fac=function(g){return new(g||d)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(f._5),c.Y36(f._h),c.Y36(f.i9),c.Y36(f.al),c.Y36(o.ki),c.Y36(c.Lbi))},d.\u0275cmp=c.Xpm({type:d,selectors:[["dx-select-box"]],contentQueries:function(g,x,b){if(1&g&&(c.Suo(b,a.k4o,4),c.Suo(b,a.ZT3,4)),2&g){let y;c.iGM(y=c.CRH())&&(x.buttonsChildren=y),c.iGM(y=c.CRH())&&(x.itemsChildren=y)}},hostBindings:function(g,x){1&g&&c.NdJ("valueChange",function(y){return x.change(y)})("onBlur",function(y){return x.touched(y)})},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:[c._Bn([f._5,f._h,p,f.al,f.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(g,x){},encapsulation:2}),d})(),u=(()=>{class d{}return d.\u0275fac=function(g){return new(g||d)},d.\u0275mod=c.oAB({type:d}),d.\u0275inj=c.cJS({imports:[[a.idP,a.UxI,a.ggs,a.IOm,a.kOw,a.weU,a.D_l,a.JxK,a.zZW,a.ynY,a.lgR,a.sni,a.waX,a.pxS,a.pGy,a.Q8p,f.Lz,f.ie,o.Cu],a.idP,a.UxI,a.ggs,a.IOm,a.kOw,a.weU,a.D_l,a.JxK,a.zZW,a.ynY,a.lgR,a.sni,a.waX,a.pxS,a.pGy,a.Q8p,f.ie]}),d})()},4162:(kn,he,l)=>{"use strict";l.d(he,{U:()=>s,_:()=>u});var o=l(5998),c=l(4370),I=l(117),C=l(8942),f=l(1759),a=l(8208);const p={provide:C.JU,useExisting:(0,c.Gpc)(()=>s),multi:!0};let s=(()=>{class d extends f.Ay{constructor(g,x,b,y,E,S,O,w){super(g,x,b,y,O,w),this._watcherHelper=y,this._idh=E,this.touched=T=>{},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(g){this._setOption("acceptCustomValue",g)}get accessKey(){return this._getOption("accessKey")}set accessKey(g){this._setOption("accessKey",g)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(g){this._setOption("activeStateEnabled",g)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(g){this._setOption("applyValueMode",g)}get buttons(){return this._getOption("buttons")}set buttons(g){this._setOption("buttons",g)}get customItemCreateEvent(){return this._getOption("customItemCreateEvent")}set customItemCreateEvent(g){this._setOption("customItemCreateEvent",g)}get dataSource(){return this._getOption("dataSource")}set dataSource(g){this._setOption("dataSource",g)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(g){this._setOption("deferRendering",g)}get disabled(){return this._getOption("disabled")}set disabled(g){this._setOption("disabled",g)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(g){this._setOption("displayExpr",g)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(g){this._setOption("dropDownButtonTemplate",g)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(g){this._setOption("dropDownOptions",g)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(g){this._setOption("elementAttr",g)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(g){this._setOption("fieldTemplate",g)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(g){this._setOption("focusStateEnabled",g)}get grouped(){return this._getOption("grouped")}set grouped(g){this._setOption("grouped",g)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(g){this._setOption("groupTemplate",g)}get height(){return this._getOption("height")}set height(g){this._setOption("height",g)}get hideSelectedItems(){return this._getOption("hideSelectedItems")}set hideSelectedItems(g){this._setOption("hideSelectedItems",g)}get hint(){return this._getOption("hint")}set hint(g){this._setOption("hint",g)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(g){this._setOption("hoverStateEnabled",g)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(g){this._setOption("inputAttr",g)}get isValid(){return this._getOption("isValid")}set isValid(g){this._setOption("isValid",g)}get items(){return this._getOption("items")}set items(g){this._setOption("items",g)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(g){this._setOption("itemTemplate",g)}get label(){return this._getOption("label")}set label(g){this._setOption("label",g)}get labelMode(){return this._getOption("labelMode")}set labelMode(g){this._setOption("labelMode",g)}get maxDisplayedTags(){return this._getOption("maxDisplayedTags")}set maxDisplayedTags(g){this._setOption("maxDisplayedTags",g)}get maxFilterQueryLength(){return this._getOption("maxFilterQueryLength")}set maxFilterQueryLength(g){this._setOption("maxFilterQueryLength",g)}get maxLength(){return this._getOption("maxLength")}set maxLength(g){this._setOption("maxLength",g)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(g){this._setOption("minSearchLength",g)}get multiline(){return this._getOption("multiline")}set multiline(g){this._setOption("multiline",g)}get name(){return this._getOption("name")}set name(g){this._setOption("name",g)}get noDataText(){return this._getOption("noDataText")}set noDataText(g){this._setOption("noDataText",g)}get opened(){return this._getOption("opened")}set opened(g){this._setOption("opened",g)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(g){this._setOption("openOnFieldClick",g)}get placeholder(){return this._getOption("placeholder")}set placeholder(g){this._setOption("placeholder",g)}get readOnly(){return this._getOption("readOnly")}set readOnly(g){this._setOption("readOnly",g)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(g){this._setOption("rtlEnabled",g)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(g){this._setOption("searchEnabled",g)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(g){this._setOption("searchExpr",g)}get searchMode(){return this._getOption("searchMode")}set searchMode(g){this._setOption("searchMode",g)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(g){this._setOption("searchTimeout",g)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(g){this._setOption("selectAllMode",g)}get selectAllText(){return this._getOption("selectAllText")}set selectAllText(g){this._setOption("selectAllText",g)}get selectedItems(){return this._getOption("selectedItems")}set selectedItems(g){this._setOption("selectedItems",g)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(g){this._setOption("showClearButton",g)}get showDataBeforeSearch(){return this._getOption("showDataBeforeSearch")}set showDataBeforeSearch(g){this._setOption("showDataBeforeSearch",g)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(g){this._setOption("showDropDownButton",g)}get showMultiTagOnly(){return this._getOption("showMultiTagOnly")}set showMultiTagOnly(g){this._setOption("showMultiTagOnly",g)}get showSelectionControls(){return this._getOption("showSelectionControls")}set showSelectionControls(g){this._setOption("showSelectionControls",g)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(g){this._setOption("stylingMode",g)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(g){this._setOption("tabIndex",g)}get tagTemplate(){return this._getOption("tagTemplate")}set tagTemplate(g){this._setOption("tagTemplate",g)}get text(){return this._getOption("text")}set text(g){this._setOption("text",g)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(g){this._setOption("useItemTextAsTitle",g)}get validationError(){return this._getOption("validationError")}set validationError(g){this._setOption("validationError",g)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(g){this._setOption("validationErrors",g)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(g){this._setOption("validationMessageMode",g)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(g){this._setOption("validationMessagePosition",g)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(g){this._setOption("validationStatus",g)}get value(){return this._getOption("value")}set value(g){this._setOption("value",g)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(g){this._setOption("valueChangeEvent",g)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(g){this._setOption("valueExpr",g)}get visible(){return this._getOption("visible")}set visible(g){this._setOption("visible",g)}get width(){return this._getOption("width")}set width(g){this._setOption("width",g)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(g){this._setOption("wrapItemText",g)}change(g){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(g){this.setChildren("buttons",g)}get itemsChildren(){return this._getOption("items")}set itemsChildren(g){this.setChildren("items",g)}_createInstance(g,x){return new I.Z(g,x)}writeValue(g){this.eventHelper.lockedValueChangeEvent=!0,this.value=g,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(g){this.disabled=g}registerOnChange(g){this.change=g}registerOnTouched(g){this.touched=g}_createWidget(g){super._createWidget(g),this.instance.on("focusOut",x=>{this.eventHelper.fireNgEvent("onBlur",[x])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(g){super.ngOnChanges(g),this.setupChanges("buttons",g),this.setupChanges("dataSource",g),this.setupChanges("items",g),this.setupChanges("searchExpr",g),this.setupChanges("selectedItems",g),this.setupChanges("validationErrors",g),this.setupChanges("value",g)}setupChanges(g,x){g in this._optionsToUpdate||this._idh.setup(g,x)}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(g,x){let b=this._idh.setupSingle(g,x),y=null!==this._idh.getChanges(g,x);(b||y)&&super._setOption(g,x)}}return d.\u0275fac=function(g){return new(g||d)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(f._5),c.Y36(f._h),c.Y36(f.i9),c.Y36(f.al),c.Y36(o.ki),c.Y36(c.Lbi))},d.\u0275cmp=c.Xpm({type:d,selectors:[["dx-tag-box"]],contentQueries:function(g,x,b){if(1&g&&(c.Suo(b,a.k4o,4),c.Suo(b,a.ZT3,4)),2&g){let y;c.iGM(y=c.CRH())&&(x.buttonsChildren=y),c.iGM(y=c.CRH())&&(x.itemsChildren=y)}},hostBindings:function(g,x){1&g&&c.NdJ("valueChange",function(y){return x.change(y)})("onBlur",function(y){return x.touched(y)})},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:[c._Bn([f._5,f._h,p,f.al,f.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(g,x){},encapsulation:2}),d})(),u=(()=>{class d{}return d.\u0275fac=function(g){return new(g||d)},d.\u0275mod=c.oAB({type:d}),d.\u0275inj=c.cJS({imports:[[a.idP,a.UxI,a.ggs,a.IOm,a.kOw,a.weU,a.D_l,a.JxK,a.zZW,a.ynY,a.lgR,a.sni,a.waX,a.pxS,a.pGy,a.Q8p,f.Lz,f.ie,o.Cu],a.idP,a.UxI,a.ggs,a.IOm,a.kOw,a.weU,a.D_l,a.JxK,a.zZW,a.ynY,a.lgR,a.sni,a.waX,a.pxS,a.pGy,a.Q8p,f.ie]}),d})()},6812:(kn,he,l)=>{"use strict";l.d(he,{I:()=>s,a:()=>u});var o=l(5998),c=l(4370),I=l(3447),C=l(8942),f=l(1759),a=l(8208);const p={provide:C.JU,useExisting:(0,c.Gpc)(()=>s),multi:!0};let s=(()=>{class d extends f.Ay{constructor(g,x,b,y,E,S,O,w){super(g,x,b,y,O,w),this._watcherHelper=y,this._idh=E,this.touched=T=>{},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(g){this._setOption("accessKey",g)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(g){this._setOption("activeStateEnabled",g)}get buttons(){return this._getOption("buttons")}set buttons(g){this._setOption("buttons",g)}get disabled(){return this._getOption("disabled")}set disabled(g){this._setOption("disabled",g)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(g){this._setOption("elementAttr",g)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(g){this._setOption("focusStateEnabled",g)}get height(){return this._getOption("height")}set height(g){this._setOption("height",g)}get hint(){return this._getOption("hint")}set hint(g){this._setOption("hint",g)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(g){this._setOption("hoverStateEnabled",g)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(g){this._setOption("inputAttr",g)}get isValid(){return this._getOption("isValid")}set isValid(g){this._setOption("isValid",g)}get label(){return this._getOption("label")}set label(g){this._setOption("label",g)}get labelMode(){return this._getOption("labelMode")}set labelMode(g){this._setOption("labelMode",g)}get mask(){return this._getOption("mask")}set mask(g){this._setOption("mask",g)}get maskChar(){return this._getOption("maskChar")}set maskChar(g){this._setOption("maskChar",g)}get maskInvalidMessage(){return this._getOption("maskInvalidMessage")}set maskInvalidMessage(g){this._setOption("maskInvalidMessage",g)}get maskRules(){return this._getOption("maskRules")}set maskRules(g){this._setOption("maskRules",g)}get maxLength(){return this._getOption("maxLength")}set maxLength(g){this._setOption("maxLength",g)}get mode(){return this._getOption("mode")}set mode(g){this._setOption("mode",g)}get name(){return this._getOption("name")}set name(g){this._setOption("name",g)}get placeholder(){return this._getOption("placeholder")}set placeholder(g){this._setOption("placeholder",g)}get readOnly(){return this._getOption("readOnly")}set readOnly(g){this._setOption("readOnly",g)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(g){this._setOption("rtlEnabled",g)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(g){this._setOption("showClearButton",g)}get showMaskMode(){return this._getOption("showMaskMode")}set showMaskMode(g){this._setOption("showMaskMode",g)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(g){this._setOption("spellcheck",g)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(g){this._setOption("stylingMode",g)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(g){this._setOption("tabIndex",g)}get text(){return this._getOption("text")}set text(g){this._setOption("text",g)}get useMaskedValue(){return this._getOption("useMaskedValue")}set useMaskedValue(g){this._setOption("useMaskedValue",g)}get validationError(){return this._getOption("validationError")}set validationError(g){this._setOption("validationError",g)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(g){this._setOption("validationErrors",g)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(g){this._setOption("validationMessageMode",g)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(g){this._setOption("validationMessagePosition",g)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(g){this._setOption("validationStatus",g)}get value(){return this._getOption("value")}set value(g){this._setOption("value",g)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(g){this._setOption("valueChangeEvent",g)}get visible(){return this._getOption("visible")}set visible(g){this._setOption("visible",g)}get width(){return this._getOption("width")}set width(g){this._setOption("width",g)}change(g){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(g){this.setChildren("buttons",g)}_createInstance(g,x){return new I.Z(g,x)}writeValue(g){this.eventHelper.lockedValueChangeEvent=!0,this.value=g,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(g){this.disabled=g}registerOnChange(g){this.change=g}registerOnTouched(g){this.touched=g}_createWidget(g){super._createWidget(g),this.instance.on("focusOut",x=>{this.eventHelper.fireNgEvent("onBlur",[x])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(g){super.ngOnChanges(g),this.setupChanges("buttons",g),this.setupChanges("validationErrors",g)}setupChanges(g,x){g in this._optionsToUpdate||this._idh.setup(g,x)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(g,x){let b=this._idh.setupSingle(g,x),y=null!==this._idh.getChanges(g,x);(b||y)&&super._setOption(g,x)}}return d.\u0275fac=function(g){return new(g||d)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(f._5),c.Y36(f._h),c.Y36(f.i9),c.Y36(f.al),c.Y36(o.ki),c.Y36(c.Lbi))},d.\u0275cmp=c.Xpm({type:d,selectors:[["dx-text-box"]],contentQueries:function(g,x,b){if(1&g&&c.Suo(b,a.k4o,4),2&g){let y;c.iGM(y=c.CRH())&&(x.buttonsChildren=y)}},hostBindings:function(g,x){1&g&&c.NdJ("valueChange",function(y){return x.change(y)})("onBlur",function(y){return x.touched(y)})},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:[c._Bn([f._5,f._h,p,f.al,f.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(g,x){},encapsulation:2}),d})(),u=(()=>{class d{}return d.\u0275fac=function(g){return new(g||d)},d.\u0275mod=c.oAB({type:d}),d.\u0275inj=c.cJS({imports:[[a.idP,a.UxI,f.Lz,f.ie,o.Cu],a.idP,a.UxI,f.ie]}),d})()},2653:(kn,he,l)=>{"use strict";l.d(he,{B:()=>p,S:()=>a});var o=l(5998),c=l(4370),I=l(9109),C=l(1759),f=l(8208);let a=(()=>{class s extends C.VB{constructor(d,h,g,x,b,y,E,S,O){super(d,h,g,x,S,O),this._watcherHelper=x,this._idh=b,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(y),this._idh.setHost(this),E.setHost(this)}get adapter(){return this._getOption("adapter")}set adapter(d){this._setOption("adapter",d)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(d){this._setOption("elementAttr",d)}get height(){return this._getOption("height")}set height(d){this._setOption("height",d)}get name(){return this._getOption("name")}set name(d){this._setOption("name",d)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(d){this._setOption("validationGroup",d)}get validationRules(){return this._getOption("validationRules")}set validationRules(d){this._setOption("validationRules",d)}get width(){return this._getOption("width")}set width(d){this._setOption("width",d)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(d){this.setChildren("validationRules",d)}_createInstance(d,h){return new I.Z(this.parentElement?this.parentElement:d,h)}getParentElement(d){if(d)return d.getHost().element.nativeElement}ngOnDestroy(){this._destroyWidget()}ngOnChanges(d){super.ngOnChanges(d),this.setupChanges("validationRules",d)}setupChanges(d,h){d in this._optionsToUpdate||this._idh.setup(d,h)}ngDoCheck(){this._idh.doCheck("validationRules"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(d,h){let g=this._idh.setupSingle(d,h),x=null!==this._idh.getChanges(d,h);(g||x)&&super._setOption(d,h)}}return s.\u0275fac=function(d){return new(d||s)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(C._5),c.Y36(C._h),c.Y36(C.i9),c.Y36(C.al,13),c.Y36(C.al),c.Y36(o.ki),c.Y36(c.Lbi))},s.\u0275cmp=c.Xpm({type:s,selectors:[["dx-validator"]],contentQueries:function(d,h,g){if(1&d&&c.Suo(g,f.vrV,4),2&d){let x;c.iGM(x=c.CRH())&&(h.validationRulesChildren=x)}},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:[c._Bn([C._5,C._h,C.al,C.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(d,h){},encapsulation:2}),s})(),p=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[[f.Vp2,f.$D5,C.Lz,C.ie,o.Cu],f.Vp2,f.$D5,C.ie]}),s})()},4167:(kn,he,l)=>{"use strict";l.d(he,{NDt:()=>Bfe});var o={};l.r(o),l.d(o,{circular:()=>Nm,circularSpider:()=>gE,linear:()=>q1,linearSpider:()=>J1});var c={};l.r(c),l.d(c,{donut:()=>FM,doughnut:()=>BM,pie:()=>nb});var I={};l.r(I),l.d(I,{candlestick:()=>hO,stock:()=>cO});var C={};l.r(C),l.d(C,{ChartTracker:()=>Zr,PieTracker:()=>ro});var f=l(1759),a=l(4370),p=l(5998),s=l(1805),u=l(9904),d=l(913),h=l(3553),g=l(227),x=l(2941),b=l(9897),y=l(5873),E=l(7674),S=l(6881),O=l(2718),w=l(1828),T=l(8506),k=l(8225),R=l(5286),P=l(4270),B=l(4823),W=l(4328),N=l(2722),K="dx-accordion-item",Y="dx-accordion-item-opened",J="dx-accordion-item-closed",j="dx-accordion-item-title",ee="dx-accordion-item-body",Z=R.Z.inherit({_activeStateUnit:"."+K,_getDefaultOptions:function(){return(0,y.l)(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"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,N.x2)()},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 n=this.$element();n.addClass("dx-accordion"),this._$container=(0,u.Z)("<div>").addClass("dx-accordion-wrapper"),n.append(this._$container)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new B.c(function(n,t){if((0,w.PO)(t)){var e=(0,W.H)(t.icon);e&&n.append(e),(0,w.$K)(t.title)&&!(0,w.PO)(t.title)&&n.append(b.Z.createTextNode(t.title))}else(0,w.$K)(t)&&n.text(String(t));n.wrapInner((0,u.Z)("<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")}),(0,E.g0)(()=>{var n=this._getSelectedItemIndices();this._renderSelection(n,[])})},_render:function(){this.callBase(),this._updateItemHeightsWrapper(!0)},_itemDataKey:function(){return"dxAccordionItemData"},_itemClass:function(){return K},_itemContainer:function(){return this._$container},_itemTitles:function(){return this._itemElements().find("."+j)},_itemContents:function(){return this._itemElements().find("."+ee)},_getItemData:function(n){return(0,u.Z)(n).parent().data(this._itemDataKey())||this.callBase.apply(this,arguments)},_executeItemRenderAction:function(n){n.type||this.callBase.apply(this,arguments)},_itemSelectHandler:function(n){(0,u.Z)(n.target).closest(this._itemContents()).length||this.callBase.apply(this,arguments)},_afterItemElementDeleted:function(n,t){this._deferredItems.splice(t.itemIndex,1),this.callBase.apply(this,arguments)},_renderItemContent:function(n){var t=this.callBase((0,y.l)({},n,{contentClass:j,templateProperty:"titleTemplate",defaultTemplateName:this.option("itemTitleTemplate")}));this._attachItemTitleClickAction(t);var e=new P.BH;(0,w.$K)(this._deferredItems[n.index])?this._deferredItems[n.index]=e:this._deferredItems.push(e),(!this.option("deferRendering")||this._getSelectedItemIndices().indexOf(n.index)>=0)&&e.resolve(),e.done(this.callBase.bind(this,(0,y.l)({},n,{contentClass:ee,container:(0,S.u)((0,u.Z)("<div>").appendTo((0,u.Z)(t).parent()))})))},_attachItemTitleClickAction:function(n){var t=(0,k.V4)(g.u,this.NAME);d.Z.off(n,t),d.Z.on(n,t,this._itemTitleClickHandler.bind(this))},_itemTitleClickHandler:function(n){this._itemDXEventHandler(n,"onItemTitleClick")},_renderSelection:function(n,t){this._itemElements().addClass(J),this.setAria("hidden",!0,this._itemContents()),this._updateItems(n,t)},_updateSelection:function(n,t){this._updateItems(n,t),this._updateItemHeightsWrapper(!1)},_updateItems:function(n,t){var e=this._itemElements();O.S6(n,(i,r)=>{this._deferredItems[r].resolve();var v=e.eq(r).addClass(Y).removeClass(J);this.setAria("hidden",!1,v.find("."+ee))}),O.S6(t,(i,r)=>{var v=e.eq(r).removeClass(Y);this.setAria("hidden",!0,v.find("."+ee))})},_updateItemHeightsWrapper:function(n){this.option("templatesRenderAsynchronously")?this._animationTimer=setTimeout(function(){this._updateItemHeights(n)}.bind(this)):this._updateItemHeights(n)},_updateItemHeights:function(n){var t=this,e=t._deferredAnimate,i=this._splitFreeSpace(this._calculateFreeSpace());return clearTimeout(this._animationTimer),P.gx.apply(u.Z,[].slice.call(this._itemElements()).map(function(r){return t._updateItemHeight((0,u.Z)(r),i,n)})).done(function(){e&&e.resolveWith(t)})},_updateItemHeight:function(n,t,e){var i=n.children("."+j);h.Z.isAnimating(n)&&h.Z.stop(n);var v,r=(0,s.zp)(n);return n.hasClass(Y)?(v=t+(0,s.zp)(i))||((0,s.QQ)(n,"auto"),v=(0,s.zp)(n)):v=(0,s.zp)(i),this._animateItem(n,r,v,e,!!t)},_animateItem:function(n,t,e,i,r){var v;return i||t===e?(n.css("height",e),v=(new P.BH).resolve()):v=h.Z.animate(n,{type:"custom",from:{height:t},to:{height:e},duration:this.option("animationDuration"),easing:this.option("_animationEasing")}),v.done(function(){n.hasClass(Y)&&!r&&n.css("height",""),n.not("."+Y).addClass(J)})},_splitFreeSpace:function(n){return n&&n/this.option("selectedItems").length},_calculateFreeSpace:function(){var n=this.option("height");if(void 0!==n&&"auto"!==n){var t=this._itemTitles(),e=0;return O.S6(t,function(i,r){e+=(0,s.zp)(r)}),(0,s.Cr)(this.$element())-e}},_visibilityChanged:function(n){n&&this._dimensionChanged()},_dimensionChanged:function(){this._updateItemHeights(!0)},_clean:function(){clearTimeout(this._animationTimer),this.callBase()},_tryParseItemPropertyName:function(n){var t=n.match(/.*\.(.*)/);if((0,w.$K)(t)&&t.length>=1)return t[1]},_optionChanged:function(n){switch(n.name){case"items":this.callBase(n),"title"===this._tryParseItemPropertyName(n.fullName)&&this._renderSelection(this._getSelectedItemIndices(),[]),"visible"===this._tryParseItemPropertyName(n.fullName)&&this._updateItemHeightsWrapper(!0),!0===this.option("repaintChangesOnly")&&"items"===n.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",n.value?"multiple":"single");break;default:this.callBase(n)}},expandItem:function(n){return this._deferredAnimate=new P.BH,this.selectItem(n),this._deferredAnimate.promise()},collapseItem:function(n){return this._deferredAnimate=new P.BH,this.unselectItem(n),this._deferredAnimate.promise()},updateDimensions:function(){return this._updateItemHeights(!1)}});(0,T.Z)("dxAccordion",Z);const X=Z;var M=l(8208);let ge=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,f.Lz,f.ie,p.Cu],M.Q8p,f.ie]}),n})();var De=l(32),fe=l(5287).Z.inherit({_supportedKeys:function(){var n=this._list?this._list.option("focusedElement"):null,t=this.callBase();return n=n&&(0,u.Z)(n),(0,y.l)({},t,{upArrow:function(e){return!(!(0,k.j1)(e)&&(e.preventDefault(),e.stopPropagation(),n&&!this._calcNextItem(-1))&&(this._clearFocusedItem(),1))},downArrow:function(e){return!(!(0,k.j1)(e)&&(e.preventDefault(),e.stopPropagation(),n&&!this._calcNextItem(1))&&(this._clearFocusedItem(),1))},enter:function(e){n||this.close();var i=this.option("opened");return i&&e.preventDefault(),i}})},_getDefaultOptions:function(){return(0,y.l)(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(n){var{target:t}=n;return!(0,u.Z)(t).closest(this.$element()).length},_renderDimensions:function(){this.callBase(),this._updatePopupWidth(),this._updateListDimensions()},_popupWrapperClass:function(){return this.callBase()+" dx-autocomplete-popup-wrapper"},_listConfig:function(){return(0,y.l)(this.callBase(),{pageLoadMode:"none",onSelectionChanged:n=>{this._setSelectedItem(n.addedItems[0])}})},_listItemClickHandler:function(n){this._saveValueChangeEvent(n.event);var t=this._displayGetter(n.itemData);this.option("value",t),this.close()},_setListDataSource:function(){this._list&&(this._list.option("selectedItems",[]),this.callBase())},_refreshSelected:E.ZT,_searchCanceled:function(){this.callBase(),this.close()},_loadItem:function(n,t){var e=this._getItemFromPlain(n,t);return(new P.BH).resolve(e).promise()},_dataSourceOptions:function(){return{paginate:!0,pageSize:this.option("maxItemCount")}},_searchDataSource:function(n){this._dataSource.pageSize(this.option("maxItemCount")),this.callBase(n),this._clearFocusedItem()},_clearFocusedItem:function(){this._list&&(this._list.option("focusedElement",null),this._list.option("selectedIndex",-1))},_renderValueEventName:function(){return"input keyup"},_valueChangeEventHandler:function(n){var t=this._input().val()||null;return this.callBase(n,t)},_optionChanged:function(n){switch(n.name){case"maxItemCount":this._searchDataSource();break;case"valueExpr":this._compileDisplayGetter(),this._setListOption("displayExpr",this._displayGetterExpr()),this.callBase(n);break;default:this.callBase(n)}},reset:function(){this.callBase(),this.close()}});(0,T.Z)("dxAutocomplete",fe);const _e=fe;var ie=l(8942);const de={provide:ie.JU,useExisting:(0,a.Gpc)(()=>le),multi:!0};let le=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),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 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 _e(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(a.Suo(r,M.k4o,4),a.Suo(r,M.ZT3,4)),2&e){let v;a.iGM(v=a.CRH())&&(i.buttonsChildren=v),a.iGM(v=a.CRH())&&(i.itemsChildren=v)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,de,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),pe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,f.Lz,f.ie,p.Cu],M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,f.ie]}),n})();var Ee=l(2834),ae=l(3487),te=l(8204),re=l(3058),{PI:oe,LN10:ye,abs:Pe,log:Ne,floor:ft,ceil:tt,pow:Be,sqrt:mt,atan2:nn}=Math,$e=(Math,Math.max),me=Math.cos,xe=Math.sin,Te=Math.round,Ye=te.Z.dateToMilliseconds,St=1e10,Ct=oe/180,Rt=isNaN,fn=Number,Dt=function(n,t){return n?Ne(n)/Ne(t):NaN},qe=function(n){return(0,ae.zB)(Dt(n,10))},Ht=function(n,t){return Be(t,n)},dt=function(n){return(n%360+360)%360},ht=function(n){return 90-n},yt=function(n){return oe*n/180},Ft=function(n){var t=yt(n);return{cos:me(t),sin:xe(t)}},_n=function(n,t,e,i){var r=e-n,v=i-t;return mt(v*v+r*r)},xn=function(n){var e,t=Pe(n);return Rt(t)?NaN:t>0?(t=Ne(t)/ye,(e=tt(t))-t<1e-14?e:ft(t)):0},Ai=function(n){return n.toExponential().split("e")[1]};function Vn(n,t){for(var v,e=0,i=n.length,r=[];e<i;)null!==(v=t(n[e],e))&&r.push(v),e++;return r}function Sn(n){return String(n).toLowerCase()}function An(n){return n&&(n.originalTop=n.top,n.originalBottom=n.bottom,n.originalLeft=n.left,n.originalRight=n.right),n}function ti(n){return-St<n&&n<+St?n:0}function Wn(n){var t=ti(ft(n.x)),e=ti(ft(n.y)),v={x:t,y:e,width:ti(tt(n.width+n.x))-t,height:ti(tt(n.height+n.y))-e};return v.isEmpty=!(v.x||v.y||v.width||v.height),v}function Yi(n,t,e){var i=fn(me(e*Ct).toFixed(3)),r=fn(xe(e*Ct).toFixed(3)),v=n.width/2,D=n.height/2,A=n.x+v,z=n.y+D,Q=Pe(v*i)+Pe(D*r),ue=Pe(v*r)+Pe(D*i);return Wn({x:t[0]+(A-t[0])*i+(z-t[1])*r-Q,y:t[1]-(A-t[0])*r+(z-t[1])*i-ue,width:2*Q,height:2*ue})}var ei=function(n,t){return void 0!==n?n:t},ni=function(n){var e,i,t={};for(e=0,i=n.length;e<i;++e)t[Sn(n[e])]=1;return function(r,v){var D=Sn(r);return t[D]?D:v}},di=function(n){var t={};return(0,O.S6)(n||{},function(e,i){if(!/^(cursor)$/i.test(e))if("opacity"===e)i=null;else if("color"===e){if(e="fill","opacity"in n){var r=new re.Z(i);i="rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(n.opacity,")")}}else e="font-"+e;t[e]=i}),t};function Hi(n,t,e,i){var r=i>0?i:0;e=(0,w.$K)(e)?e+t-90:0;var v=Ft(e);return{x:Te(n.x+r*v.cos),y:Te(n.y+r*v.sin)}}var $i=function(n,t,e){var i=_n(n.x,n.y,t,e),r=nn(e-n.y,t-n.x);return{phi:Te(dt(180*r/oe)),r:Te(i)}},Qi=function(n,t){var D,z,Q,e=(0,w.mf)(n.customizeSeries)?n.customizeSeries:E.ZT,i=n.nameField,r={},v=[],A=0;for(z=(t=t||[]).length;A<z;A++)i in(Q=t[A])&&((D=r[Q[i]])||(D=r[Q[i]]={name:Q[i],nameFieldValue:Q[i]},v.push(D.name)));return Vn(v,function(ue){var we=r[ue];return(0,y.l)(we,e.call(null,we.name))})},_r=function(n,t,e){if(0===n.length)return{categories:[]};t=(0,w.$K)(t)?t:n[0],e=(0,w.$K)(e)?e:n[n.length-1];var D,i=Vn(n,ue=>ue?.valueOf()),r=i.indexOf(t.valueOf()),v=i.indexOf(e.valueOf()),A=!1;r<0&&(r=0),v<0&&(v=n.length-1),v<r&&(D=v,v=r,r=D,A=!0);var z=n.slice(r,v+1),Q=z.length-1;return{categories:z,start:z[A?Q:0],end:z[A?0:Q],inverted:A}};function yn(n){return!(n.unit%2)}var Si=function(n){var t={};return Vn(n,function(e){var i=t[e]?null:e;return t[e]=!0,i})},ji=function(n,t,e){var i=n.x+n.width/2>=e.x,r=(i?n.x:n.x+n.width)-e.x,v=n.y-e.y,D=v+t,A=Te(mt(r*r+v*v-D*D)),z=(i?+A:-A)||r;return{x:e.x+(i?z:z-n.width),y:n.y+t}};function lr(n,t){return{checkInterval:n.checkInterval||t.checkInterval,size:$e(n.size||0,t.size||0),percentStick:n.percentStick||t.percentStick,sizePointNormalState:$e(n.sizePointNormalState||0,t.sizePointNormalState||0)}}function Dr(n){return Array.isArray(n)?{startValue:n[0],endValue:n[1]}:n||{}}function kr(n,t){return t?n:[n.startValue,n.endValue]}function zr(n,t){return"datetime"===n.dataType?function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return new Date(e.getTime()+r*i)}:"logarithmic"===n.axisType?function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,v=xr(e,n.base)+r*i;return Vr(v,n.base)}:function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,v=e+r*i;return t&&v*e<=0?0:v}}function Gr(n,t,e,i){var r=(0,w.$K)(t.startValue),v=(0,w.$K)(t.endValue),D="discrete"!==n.axisType;i=i||e;var A=zr(n,!1),z=r?t.startValue:i.min,Q=v?t.endValue:i.max,ue=t.length,we=i.categories;if(D&&!(0,w.$K)(z)&&!(0,w.$K)(Q))return{startValue:z,endValue:Q};if((0,w.$K)(ue))if(D)"datetime"===n.dataType&&!(0,w.kE)(ue)&&(ue=Ye(ue)),v&&!r||!v&&!r?((0,w.$K)(e.max)&&(Q=Q>e.max?e.max:Q),z=A(Q,ue,-1)):r&&!v&&((0,w.$K)(e.min)&&(z=z<e.min?e.min:z),Q=A(z,ue));else if(ue=parseInt(ue),!isNaN(ue)&&isFinite(ue))if(ue--,v||r){if(r&&!v)Q=_r(we,z,void 0).categories[ue];else if(!r&&v){var Ue=_r(we,void 0,Q);z=Ue.categories[Ue.categories.length-1-ue]}}else Q=we[we.length-1],z=we[we.length-1-ue];return D&&((0,w.$K)(e.max)&&Q>e.max&&(Q=e.max),(0,w.$K)(e.min)&&z<e.min&&(z=e.min)),{startValue:z,endValue:Q}}function xr(n,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!e)return Dt(n,t);if(0===n)return 0;var r=Dt(Pe(n),t)-(i-1);return r<0?0:(0,ae.zB)((0,ae.Xx)(n)*r,Number(Be(t,i-1).toFixed(Pe(i))))}function Vr(n,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!e)return Ht(n,t);if(0===n)return 0;var r=Ht(Pe(n)+(i-1),t);return r<0?0:(0,ae.zB)((0,ae.Xx)(n)*r,Number(Be(t,i).toFixed(Pe(i))))}function Nr(n,t){return Array.isArray(t)?n.length===t.length&&n.every((e,i)=>Tr(e)===Tr(t[i])):Tr(n.startValue)===Tr(t.startValue)&&Tr(n.endValue)===Tr(t.endValue)}function Tr(n){return n&&n.valueOf()}function so(n,t,e){return t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}var Er=Number;function oo(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3]).setInverted(!1)}oo.prototype={constructor:oo,setDomain:function(n,t){return this._domain1=Er(n),this._domain2=Er(t),this._domainDelta=this._domain2-this._domain1,this},setCodomain:function(n,t){return this._codomain1=Er(n),this._codomain2=Er(t),this._codomainDelta=this._codomain2-this._codomain1,this},setInverted(n){this.inverted=n},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(n){var t=(Er(n)-this._domain1)/this._domainDelta;return this.inverted&&(t=1-t),0<=t&&t<=1?this._codomain1+t*this._codomainDelta:NaN},adjust:function(n){var t=(Er(n)-this._domain1)/this._domainDelta,e=NaN;return t<0?e=this._domain1:t>1?e=this._domain2:0<=t&&t<=1&&(e=Er(n)),e}};var _i,fi=l(4514),ir=l(5031),Kr=Math.floor,to=Math.ceil,uo=Array.isArray,At="material",$n={[At]:{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 mi(n){if(void 0===n)return _i||At;n=Sn(n),_i=n in $n?n:void 0}function In(n,t){t=t||{},n=n||(void 0===_i?t.themeDefault:mi());var e,i=t.type;return uo(n)?n.slice(0):((0,w.HD)(n)&&(e=$n[Sn(n)]),e||(e=$n[mi()]),i?e[i].slice(0):e)}function Ri(n){var t=0;this.next=function(){var e=n[t++];return t===n.length&&this.reset(),e},this.reset=function(){t=0}}function vn(n,t,e){var i={dispose(){this._extensionStrategy=null},getNextColor(D){return this._extensionStrategy.getColor(this._currentColor++,D)},generateColors(D,A){return this._extensionStrategy.generateColors(D,(A||{}).repeat)},reset(){return this._currentColor=0,this._extensionStrategy.reset(),this}},r=((t=t||{}).extensionMode||"").toLowerCase(),v=In(n,{type:t.type||"simpleSet",themeDefault:e});return i._extensionStrategy="alternate"===r?function or(n,t){var e=t.useHighlight?50:0,i=new Ri([0,e,-e]),r=[];function v(){var D=i.next();r=D?function Ze(n,t){var i,e=[],r=n.length;for(i=0;i<r;++i)e.push(bt(n[i],t));return e}(n,D):n.slice(0)}return{getColor:function(D){var A=r[D%n.length];return D%n.length==n.length-1&&v(),A},generateColors:function(D){var A=[];D=D||t.count;for(var z=0;z<D;z++)A.push(this.getColor(z));return A},reset:function(){i.reset(),v()}}}(v,t):"extrapolate"===r?function cr(n,t){return{getColor:function(e,i){var A,z,Q,ue,we,Le,Ue,ut,It,Gt,r=n.length,v=Kr((i-1)/r+1),D=n[e%r];return v>1?(A=D,z=Kr(e/r),Q=v,ut=(we=(ue=new re.Z(A).hsl).l/100)+.5*(Le=Q-1/Q),Gt=z-(It=(Q-1)/2),(Ue=we-.5*Le)<Math.min(.5,.9*we)&&(Ue=Math.min(.5,.9*we)),ut>Math.max(.8,we+.15*(1-we))&&(ut=Math.max(.8,we+.15*(1-we))),Gt<0?we-=(Ue-we)*Gt/It:we+=Gt/It*(ut-we),ue.l=100*we,re.Z.prototype.fromHSL(ue).toHex()):D},generateColors:function(e){var i=[];e=e||t.count;for(var r=0;r<e;r++)i.push(this.getColor(r,e));return i},reset:function(){}}}(v,t):function en(n,t){var e=n.length,i=[];function r(A,z,Q,ue){for(var ut,It,we=Math.floor(A/z),Le=A-z*we,Ue=Q;Ue<Q+A;)It=we,Le>0&&(It+=1,Le--),ut=It>2?Math.floor(It/2):0,ue.push(Ue+ut),Ue+=It;return ue.sort(function(Gt,ln){return Gt-ln})}function v(A,z,Q){for(var ue=0,we=z=(Q+z)%Q;we<2*Q;we+=1){var Le=(Q+we)%Q;if(A[Le])return[A[Le],ue];ue++}}function D(A){if(A<=e)return n;var z=[],ue=0,we=[];we=t.keepLastColorInEnd?r(A-2,e-2,1,[0,A-1]):r(A-1,e-1,1,[0]);for(var Le=0;Le<A;Le++)we.indexOf(Le)>-1&&(z[Le]=n[ue++]);return function(Ue,ut){for(var It=0;It<ut;It++)if(!Ue[It]){var ln=Ue[It-1];if(!ln)continue;var En=v(Ue,It,ut),on=new re.Z(En[0]);ln=new re.Z(ln);for(var Nt=0;Nt<En[1];Nt++,It++)Ue[It]=ln.blend(on,(Nt+1)/(En[1]+1)).toHex()}return Ue}(z,A)}return{getColor:function(A,z){return i.length!==(z=z||t.count||e)&&(i=D(z)),i[A%z]},generateColors:function(A,z){if(A=A||t.count||e,z&&A>e){for(var Q=D(e),ue=0;ue<A-e;ue++)Q.push(Q[ue]);return Q}return e>0?D(A).slice(0,A):[]},reset:function(){}}}(v,t),i.reset(),i}function bt(n,t){var e=new re.Z(n).alter(t),i=function _t(n){return.3*n.r+.59*n.g+.11*n.b}(e);return(i>200||i<55)&&(e=new re.Z(n).alter(-t/2)),e.toHex()}var mn="#ffffff",Ke="#000000",pt="#d3d3d3",an="#303030",sn="#ff0000",Nn="#232323",Yn="#767676",st="none",Vt="solid",rn="top",Dn="right",rt="bottom",Bt="left",gt="center",$t="inside",Un="outside";const ai=[{theme:{name:"generic.light",isDefault:!0,font:{color:Yn,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:400,size:12,cursor:"default"},redrawOnResize:!0,backgroundColor:mn,primaryTitleColor:Nn,secondaryTitleColor:Yn,gridColor:pt,axisColor:Yn,title:{backgroundColor:mn,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:mn,margin:10,font:{size:14,color:Nn,weight:400},button:{margin:{top:8,left:10,right:10,bottom:8},default:{color:"#333",borderColor:"#ddd",backgroundColor:mn},hover:{color:"#333",borderColor:"#bebebe",backgroundColor:"#e6e6e6"},focus:{color:Ke,borderColor:"#9d9d9d",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#9d9d9d",backgroundColor:"#d4d4d4"}},shadowColor:pt},tooltip:{enabled:!1,border:{width:1,color:pt,dashStyle:Vt,visible:!0},font:{color:Nn},color:mn,arrowLength:10,paddingLeftRight:18,paddingTopBottom:15,textAlignment:"center",shared:!1,location:gt,shadow:{opacity:.4,offsetX:0,offsetY:4,blur:2,color:Ke},interactive:!1},legend:{hoverMode:"includePoints",verticalAlignment:rn,horizontalAlignment:Dn,position:Un,visible:!0,margin:10,markerSize:12,border:{visible:!1,width:1,cornerRadius:0,dashStyle:Vt},paddingLeftRight:20,paddingTopBottom:15,columnCount:0,rowCount:0,columnItemSpacing:20,rowItemSpacing:8,title:{backgroundColor:mn,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:Dn,width:2,step:6,opacity:.75},border:{visible:!1,width:3}},selectionStyle:{hatching:{direction:Dn,width:2,step:6,opacity:.5},border:{visible:!1,width:3}},valueErrorBar:{displayMode:"auto",value:1,color:Ke,lineWidth:2,edgeLength:8},label:{visible:!1,alignment:gt,rotationAngle:0,horizontalOffset:0,verticalOffset:0,radialOffset:0,showForZeroValues:!0,customizeText:void 0,maxLabelCount:void 0,position:Un,font:{color:mn},border:{visible:!1,width:1,color:pt,dashStyle:Vt},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:Bt}},resolveLabelOverlapping:st},"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:Ke,dashStyle:Vt,label:{visible:!0,position:$t}},marker:{label:{}}},"chart:common:annotation":{font:{color:"#333333"},tooltipEnabled:!0,border:{width:1,color:"#dddddd",dashStyle:Vt,visible:!0},color:mn,opacity:.9,arrowLength:14,arrowWidth:14,paddingLeftRight:10,paddingTopBottom:10,shadow:{opacity:.15,offsetX:0,offsetY:1,blur:4,color:Ke},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:Vt,hoverStyle:{width:3,hatching:{direction:st}},selectionStyle:{width:3}},stackedline:{width:2,dashStyle:Vt,hoverStyle:{width:3,hatching:{direction:st}},selectionStyle:{width:3}},stackedspline:{width:2,dashStyle:Vt,hoverStyle:{width:3,hatching:{direction:st}},selectionStyle:{width:3}},fullstackedline:{width:2,dashStyle:Vt,hoverStyle:{width:3,hatching:{direction:st}},selectionStyle:{width:3}},fullstackedspline:{width:2,dashStyle:Vt,hoverStyle:{width:3,hatching:{direction:st}},selectionStyle:{width:3}},stepline:{width:2,dashStyle:Vt,hoverStyle:{width:3,hatching:{direction:st}},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:st}},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:$t}},fullstackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:$t}},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:sn},hoverStyle:{width:3,hatching:{direction:st}},selectionStyle:{width:3},point:{border:{visible:!0}}},stock:{width:1,reduction:{color:sn},hoverStyle:{width:3,hatching:{direction:st}},selectionStyle:{width:3},point:{border:{visible:!0}}}},crosshair:{enabled:!1,color:"#f05b41",width:1,dashStyle:Vt,label:{visible:!1,font:{color:mn,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:gt},constantLineStyle:{paddingLeftRight:10,paddingTopBottom:10}},horizontalAxis:{position:rt,axisDivisionFactor:70,label:{rotationAngle:90,staggeringSpacing:5,alignment:gt},stripStyle:{label:{horizontalAlignment:gt,verticalAlignment:rn}},constantLineStyle:{label:{horizontalAlignment:Dn,verticalAlignment:rn}},constantLines:[]},verticalAxis:{position:Bt,axisDivisionFactor:40,label:{alignment:Dn},stripStyle:{label:{horizontalAlignment:Bt,verticalAlignment:gt}},constantLineStyle:{label:{horizontalAlignment:Bt,verticalAlignment:rn}},constantLines:[]},argumentAxis:{endOnTick:!1,workWeek:[1,2,3,4,5]},valueAxis:{grid:{visible:!0},autoBreaksEnabled:!1,maxAutoBreakCount:4},commonPaneSettings:{backgroundColor:st,border:{color:pt,width:1,visible:!1,top:!0,bottom:!0,left:!0,right:!0,dashStyle:Vt}},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:mn},hoverStyle:{hatching:{direction:Dn,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:Dn,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},doughnut:{border:{visible:!1,width:2,color:mn},hoverStyle:{hatching:{direction:Dn,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:Dn,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},donut:{border:{visible:!1,width:2,color:mn},hoverStyle:{hatching:{direction:Dn,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:Dn,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},label:{textOverflow:"ellipsis",wordWrap:"normal"}},legend:{hoverMode:"allArgumentPoints",backgroundColor:st},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:gt,hideFirstOrLast:"last",overlappingBehavior:"hide"},position:rn,endOnTick:!1},rangeContainer:{offset:0,width:5,backgroundColor:"#808080"},valueIndicators:{_default:{color:"#c2c2c2"},rangebar:{space:2,size:10,color:"#cbc5cf",backgroundColor:st,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:mn,size:18}}}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:gt,verticalAlignment:rt},text:{font:{size:18}}},_circular:{scale:{scaleDivisionFactor:17,orientation:Un,label:{indentFromTick:10}},rangeContainer:{orientation:Un},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:Dn,verticalOrientation:rt,label:{indentFromTick:-10}},rangeContainer:{horizontalOrientation:Dn,verticalOrientation:rt},valueIndicatorType:"rangebar",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangle",_default:{offset:2.5,length:15,width:15},rectangle:{width:10},rangebar:{offset:10,horizontalOrientation:Dn,verticalOrientation:rt},trianglemarker:{offset:10,horizontalOrientation:Bt,verticalOrientation:rn},textcloud:{offset:-1,horizontalOrientation:Bt,verticalOrientation:rn}}}},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:gt,verticalAlignment:rt},text:{font:{size:18}}}},rangeSelector:{scale:{valueMarginsEnabled:!0,width:1,color:Ke,opacity:.1,showCustomBoundaryTicks:!0,label:{overlappingBehavior:"hide",alignment:gt,visible:!0,topIndent:7,font:{size:11}},tick:{width:1,color:Ke,opacity:.17,visible:!0,length:12},minorTick:{width:1,color:Ke,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:sn,font:{color:mn,size:11}},sliderHandle:{width:1,color:Ke,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:mn,"stroke-width":1,"stroke-opacity":.7,font:{color:"#2b2b2b",size:12}}},"layer:area":{borderWidth:1,borderColor:mn,color:"#d2d2d2",hoveredBorderColor:an,selectedBorderWidth:2,selectedBorderColor:an,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:mn,size:8,selectedStep:2,backStep:18,backColor:mn,backOpacity:.32,shadow:!0},"layer:marker:bubble":{minSize:20,maxSize:50,hoveredBorderWidth:1,hoveredBorderColor:an,selectedBorderWidth:2,selectedBorderColor:an},"layer:marker:pie":{size:50,hoveredBorderWidth:1,hoveredBorderColor:an,selectedBorderWidth:2,selectedBorderColor:an},"layer:marker:image":{size:20},legend:{verticalAlignment:rt,horizontalAlignment:Dn,position:$t,backgroundOpacity:.65,border:{visible:!0},paddingLeftRight:16,paddingTopBottom:12},controlBar:{borderColor:"#5d5d5d",borderWidth:3,color:mn,margin:20,opacity:.3},_rtl:{legend:{itemTextPosition:Bt}}},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:Yn,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:mn,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:Vt,hoverStyle:{width:3,hatching:{direction:st}},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:rn,axisDivisionFactor:50,label:{alignment:gt}},verticalAxis:{position:rn,axisDivisionFactor:30,label:{alignment:Dn}}},funnel:{sortData:!0,valueField:"val",colorField:"color",argumentField:"arg",hoverEnabled:!0,selectionMode:"single",item:{border:{visible:!1,width:2,color:mn},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:Dn},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:Dn},border:{}}},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},legend:{visible:!1},_rtl:{legend:{itemTextPosition:Bt}},tooltip:{customizeTooltip:function(n){return{text:n.item.argument+" "+n.valueText}}},inverted:!1,algorithm:"dynamicSlope",neckWidth:0,neckHeight:0,resolveLabelOverlapping:"shift",label:{textOverflow:"ellipsis",wordWrap:"normal",visible:!0,horizontalAlignment:Dn,horizontalOffset:0,verticalOffset:0,showForZeroValues:!1,customizeText:function(n){return n.item.argument+" "+n.valueText},position:"columns",font:{color:mn},border:{visible:!1,width:1,color:pt,dashStyle:Vt},connector:{visible:!0,width:1,opacity:.5}}},sankey:{sourceField:"source",targetField:"target",weightField:"weight",hoverEnabled:!0,alignment:gt,adaptiveLayout:{width:80,height:80,keepLabels:!0},label:{visible:!0,horizontalOffset:8,verticalOffset:0,overlappingBehavior:"ellipsis",useNodeColors:!1,font:{color:Ke,weight:500},border:{visible:!1,width:2,color:mn},customizeText:function(n){return n.title},shadow:{opacity:.2,offsetX:0,offsetY:1,blur:1,color:mn}},title:{margin:10,font:{size:28,weight:200},subtitle:{font:{size:16}}},tooltip:{enabled:!0},node:{padding:30,width:8,opacity:1,border:{color:mn,width:1,visible:!1},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:Dn},border:{}}},link:{color:"#888888",colorMode:"none",opacity:.3,border:{color:mn,width:1,visible:!1},hoverStyle:{opacity:.5,hatching:{opacity:.75,step:6,width:2,direction:Dn},border:{}}}}},baseThemeName:void 0},{theme:{name:"generic.light.compact"},baseThemeName:"generic.light"}];var Ci="#f05b41",Ii="#fff",zi="#333",Ki="#8899a8",Xi="#707070",wr="#dee1e3";const vr=[{theme:{name:"generic.carmine",defaultPalette:"Carmine",backgroundColor:Ii,primaryTitleColor:zi,secondaryTitleColor:Ki,gridColor:wr,axisColor:Xi,export:{backgroundColor:Ii,font:{color:zi},button:{default:{color:zi,borderColor:"#b1b7bd",backgroundColor:Ii},hover:{color:zi,borderColor:"#b1b7bd",backgroundColor:"#faf2f0"},focus:{color:zi,borderColor:"#6d7781",backgroundColor:"#faf2f0"},active:{color:zi,borderColor:"#6d7781",backgroundColor:"#f5e7e4"}}},legend:{font:{color:Xi}},tooltip:{color:Ii,border:{color:wr},font:{color:zi}},"chart:common":{commonSeriesSettings:{label:{border:{color:wr}}}},"chart:common:annotation":{font:{color:zi},border:{color:wr},color:Ii},chart:{commonPaneSettings:{border:{color:wr}},commonAxisSettings:{breakStyle:{color:"#c1c5c7"}}},rangeSelector:{scale:{breakStyle:{color:"#c1c5c7"},tick:{opacity:.12}},selectedRangeColor:Ci,sliderMarker:{color:Ci},sliderHandle:{color:Ci,opacity:.5}},sparkline:{pointColor:Ii,minColor:"#f0ad4e",maxColor:"#f74d61"},treeMap:{group:{color:wr,label:{font:{color:Ki}}}},bullet:{color:Ci},gauge:{valueIndicators:{rangebar:{color:Ci},textcloud:{color:Ci}}}},baseThemeName:"generic.light"},{theme:{name:"generic.carmine.compact"},baseThemeName:"generic.carmine"}];var Jr="#ffffff",ko="#2b2b2b",no="#b5b5b5",Uo="#303030",qo="#c7c7c7",go="#8e8e8e",Vo="#b8b8b8",So="#494949";const ba=[{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:ko,border:{color:So},font:{color:"#929292"}},"chart:common":{commonSeriesSettings:{label:{border:{color:So}},valueErrorBar:{color:Jr}}},"chart:common:axis":{constantLineStyle:{color:Jr}},"chart:common:annotation":{font:{color:"#929292"},border:{color:So},color:ko,shadow:{opacity:.008,offsetY:4,blur:8}},chart:{commonPaneSettings:{border:{color:So}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:Jr}}},gauge:{rangeContainer:{backgroundColor:no},valueIndicators:{_default:{color:no},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:Jr,opacity:.32},minorTick:{color:Jr,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:no,sliderMarker:{color:no,font:{color:Uo}},sliderHandle:{color:Jr,opacity:.2},shutter:{color:ko,opacity:.9}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:Jr}}},"layer:area":{borderColor:Uo,color:"#686868",hoveredBorderColor:Jr,selectedBorderColor:Jr},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:Jr,selectedBorderColor:Jr},"layer:marker:pie":{hoveredBorderColor:Jr,selectedBorderColor:Jr},legend:{border:{color:"#3f3f3f"},font:{color:Jr}},controlBar:{borderColor:qo,color:Uo}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:qo,firstLastColor:qo,barPositiveColor:Vo,barNegativeColor:go,winColor:Vo,lossColor:go,pointColor:Uo},bullet:{targetColor:go},funnel:{item:{border:{color:"#2a2a2a"}}},sankey:{label:{font:{color:Jr},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",Ho="#000000",da="#cf00da",ja="#f8ca00";const us=[{theme:{name:"generic.contrast",defaultPalette:"Bright",font:{color:Yr},backgroundColor:Ho,primaryTitleColor:Yr,secondaryTitleColor:Yr,gridColor:Yr,axisColor:Yr,export:{backgroundColor:Ho,font:{color:Yr},button:{default:{color:Yr,borderColor:Yr,backgroundColor:Ho},hover:{color:Yr,borderColor:Yr,backgroundColor:"#cf00d7"},focus:{color:Yr,borderColor:"#cf00d7",backgroundColor:Ho},active:{color:Ho,borderColor:Yr,backgroundColor:Yr}},borderColor:Yr,menuButtonColor:Ho,activeBackgroundColor:Yr,activeColor:Ho,selectedBorderColor:da,selectedColor:da,shadowColor:"none"},tooltip:{border:{color:Yr},font:{color:Yr},color:Ho},"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:Ho},chart:{commonSeriesSettings:{},crosshair:{color:"#cf00d7"},commonPaneSettings:{backgroundColor:Ho,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:Ho},twocolorneedle:{secondColor:Yr},trianglemarker:{color:Yr},textcloud:{color:Yr,text:{font:{color:Ho}}}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:Yr,opacity:.4},minorTick:{color:Yr,opacity:.12},breakStyle:{color:"#cf00d7"}},selectedRangeColor:da,sliderMarker:{color:da},sliderHandle:{color:da,opacity:1},shutter:{opacity:.75},background:{color:Ho}},map:{background:{borderColor:Yr},layer:{label:{stroke:Ho,font:{color:Yr}}},"layer:area":{borderColor:Ho,color:"#686868",hoveredBorderColor:Yr,selectedBorderColor:Yr,label:{font:{opacity:1}}},"layer:line":{color:"#267cff",hoveredColor:"#f613ff",selectedColor:Yr},"layer:marker:dot":{borderColor:Ho,color:ja,backColor:Ho,backOpacity:.32},"layer:marker:bubble":{color:ja,hoveredBorderColor:Yr,selectedBorderColor:Yr},"layer:marker:pie":{hoveredBorderColor:Yr,selectedBorderColor:Yr},controlBar:{borderColor:Yr,color:Ho,opacity:.3}},treeMap:{tile:{color:"#70c92f"},group:{color:"#797979",label:{font:{color:Yr}}}},sparkline:{pointColor:Ho},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 Ko="#3debd3",ca="#465672",Sa="#fff",La="#c7ccd4",jo="#596980";const ta=[{theme:{name:"generic.darkmoon",defaultPalette:"Dark Moon",backgroundColor:ca,primaryTitleColor:Sa,secondaryTitleColor:"#919bac",gridColor:jo,axisColor:La,export:{backgroundColor:ca,font:{color:Sa},button:{default:{color:Sa,borderColor:"#7a889e",backgroundColor:ca},hover:{color:Sa,borderColor:"#9da8b8",backgroundColor:"#596e92"},focus:{color:Sa,borderColor:"#c4cad4",backgroundColor:"#596e92"},active:{color:Sa,borderColor:"#c4cad4",backgroundColor:"#6b80a4"}}},legend:{font:{color:La}},tooltip:{color:"#62789e",border:{color:jo},font:{color:Sa}},"chart:common":{commonSeriesSettings:{label:{border:{color:jo}}}},"chart:common:annotation":{font:{color:Sa},border:{color:jo},color:"#62789e"},chart:{commonPaneSettings:{border:{color:jo}},commonAxisSettings:{breakStyle:{color:"#73869e"}}},gauge:{valueIndicators:{rangebar:{color:Ko},textcloud:{color:Ko,text:{font:{color:ca}}}}},barGauge:{backgroundColor:"#526280"},funnel:{item:{border:{color:ca}}},sparkline:{pointColor:ca,minColor:"#f0ad4e",maxColor:"#f9517e"},treeMap:{group:{color:jo,label:{font:{color:Sa}}}},map:{background:{borderColor:jo},"layer:area":{color:"#97a3b6",borderColor:ca}},rangeSelector:{shutter:{color:ca},scale:{breakStyle:{color:"#73869e"},tick:{opacity:.2}},selectedRangeColor:Ko,sliderMarker:{color:Ko,font:{color:"#000"}},sliderHandle:{color:Ko,opacity:.5}},bullet:{color:Ko},sankey:{link:{border:{color:ca}},node:{border:{color:ca}}}},baseThemeName:"generic.dark"},{theme:{name:"generic.darkmoon.compact"},baseThemeName:"generic.darkmoon"}];var Oa="#9c63ff",ma="#17171f",ha="#f5f6f7",Da="#b2b2b6",_a="#343840";const va=[{theme:{name:"generic.darkviolet",defaultPalette:"Dark Violet",backgroundColor:ma,primaryTitleColor:ha,secondaryTitleColor:"#fff",gridColor:_a,axisColor:Da,export:{backgroundColor:ma,font:{color:ha},button:{default:{color:ha,borderColor:"#414152",backgroundColor:ma},hover:{color:ha,borderColor:"#5c5c74",backgroundColor:"#2d2d3c"},focus:{color:ha,borderColor:"#7c7c97",backgroundColor:"#2d2d3c"},active:{color:ha,borderColor:"#7c7c97",backgroundColor:"#3c3c51"}}},legend:{font:{color:Da}},tooltip:{color:ma,border:{color:"#414152"},font:{color:ha}},"chart:common":{commonSeriesSettings:{label:{border:{color:_a}}}},"chart:common:annotation":{font:{color:ha},border:{color:"#414152"},color:ma},chart:{commonPaneSettings:{border:{color:_a}},commonAxisSettings:{breakStyle:{color:"#575e6b"}}},funnel:{item:{border:{color:ma}}},sparkline:{pointColor:ma,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:_a,label:{font:{color:"#fff"}}}},rangeSelector:{shutter:{color:ma},scale:{breakStyle:{color:"#575e6b"},tick:{opacity:.2}},selectedRangeColor:Oa,sliderMarker:{color:Oa,font:{color:"#fff"}},sliderHandle:{color:Oa,opacity:.5}},bullet:{color:Oa},gauge:{valueIndicators:{rangebar:{color:Oa},textcloud:{color:Oa}}},sankey:{link:{border:{color:ma}},node:{border:{color:ma}}}},baseThemeName:"generic.dark"},{theme:{name:"generic.darkviolet.compact"},baseThemeName:"generic.darkviolet"}];var pa="#3cbab2",Qt="#f5f5f5",Kt="#28484f",Pt="#7eb2be",Pn="#657c80",Vi="#dedede";const Wr=[{theme:{name:"generic.greenmist",defaultPalette:"Green Mist",backgroundColor:Qt,primaryTitleColor:Kt,secondaryTitleColor:Pt,gridColor:Vi,axisColor:Pn,export:{backgroundColor:Qt,font:{color:Kt},button:{default:{color:Kt,borderColor:"#a2b4b8",backgroundColor:Qt},hover:{color:Kt,borderColor:"#7f989e",backgroundColor:"rgba(222, 222, 222, 0.4)"},focus:{color:Kt,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.4)"},active:{color:Kt,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.8)"}}},legend:{font:{color:Pn}},tooltip:{color:"#fff",border:{color:Vi},font:{color:Kt}},"chart:common":{commonSeriesSettings:{label:{border:{color:Vi}}}},"chart:common:annotation":{color:"#fff",border:{color:Vi},font:{color:Kt}},chart:{commonPaneSettings:{border:{color:Vi}},commonAxisSettings:{breakStyle:{color:"#c1c1c1"}}},funnel:{item:{border:{color:Qt}}},sparkline:{pointColor:Qt,minColor:"#ffc852",maxColor:"#f74a5e"},treeMap:{group:{color:Vi,label:{font:{color:Pt}}}},rangeSelector:{shutter:{color:Qt},scale:{breakStyle:{color:"#c1c1c1"},tick:{opacity:.12}},selectedRangeColor:pa,sliderMarker:{color:pa},sliderHandle:{color:pa,opacity:.5}},bullet:{color:pa},gauge:{valueIndicators:{rangebar:{color:pa},textcloud:{color:pa}}}},baseThemeName:"generic.light"},{theme:{name:"generic.greenmist.compact"},baseThemeName:"generic.greenmist"}];var fo="#7ab8eb",vt="#fff",ot="#333",We="#99a1a8",nt="#707070",at="#e8eaeb";const Yt=[{theme:{name:"generic.softblue",defaultPalette:"Soft Blue",backgroundColor:vt,primaryTitleColor:ot,secondaryTitleColor:We,gridColor:at,axisColor:nt,export:{backgroundColor:vt,font:{color:ot},button:{default:{color:ot,borderColor:"#c9d0d4",backgroundColor:vt},hover:{color:ot,borderColor:"#a7b2b9",backgroundColor:"#e6e6e6"},focus:{color:ot,borderColor:"#82929b",backgroundColor:"#e6e6e6"},active:{color:ot,borderColor:"#82929b",backgroundColor:"#d4d4d4"}}},legend:{font:{color:nt}},tooltip:{color:vt,border:{color:at},font:{color:ot}},"chart:common":{commonSeriesSettings:{label:{border:{color:at}}}},"chart:common:annotation":{color:vt,border:{color:at},font:{color:ot}},chart:{commonPaneSettings:{border:{color:at}},commonAxisSettings:{breakStyle:{color:"#cfd2d3"}}},rangeSelector:{scale:{breakStyle:{color:"#cfd2d3"},tick:{opacity:.12}},selectedRangeColor:fo,sliderMarker:{color:fo},sliderHandle:{color:fo,opacity:.5}},sparkline:{pointColor:vt,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:at,label:{font:{color:We}}}},bullet:{color:fo},gauge:{valueIndicators:{rangebar:{color:fo},textcloud:{color:fo}}}},baseThemeName:"generic.light"},{theme:{name:"generic.softblue.compact"},baseThemeName:"generic.softblue"}];var gn="'Roboto', 'RobotoFallback', 'Helvetica', 'Arial', sans-serif",Qn="rgba(0,0,0,0.54)",Mi="rgba(255,255,255,0.87)",vi="rgba(255,255,255,0.54)",Ei="#363640",bi="#ffffff",pr="#b5b5b5",fr="#c7c7c7",Gi="#8e8e8e",er="#b8b8b8",Ir="#494949",Lr="#818181",Sr=[{theme:{name:"material",defaultPalette:"Material",font:{family:gn},title:{margin:{top:20,bottom:20,left:0,right:0},font:{size:20,family:gn,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:bi},cornerRadius:4},chart:{commonAxisSettings:{minorTick:{opacity:.5},label:{font:{size:11}}},commonAnnotationSettings:{font:{color:bi},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:Qn,primaryTitleColor:"rgba(0,0,0,0.87)",legend:{font:{color:Qn}},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:Ei,axisColor:vi,font:{color:vi},primaryTitleColor:Mi,secondaryTitleColor:Mi,tooltip:{color:"#000"},export:{backgroundColor:Ei,font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:Ei},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:Ir}},valueErrorBar:{color:bi}}},"chart:common:axis":{constantLineStyle:{color:bi}},"chart:common:annotation":{border:{color:"#000"},color:"#000"},chart:{commonPaneSettings:{border:{color:Ir}},commonAxisSettings:{breakStyle:{color:Lr}},zoomAndPan:{dragBoxStyle:{color:bi}}},gauge:{rangeContainer:{backgroundColor:pr},valueIndicators:{_default:{color:pr},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:bi,opacity:.32},minorTick:{color:bi,opacity:.1},breakStyle:{color:Lr}},selectedRangeColor:pr,sliderMarker:{color:pr,font:{color:Ei}},sliderHandle:{color:bi,opacity:.2},shutter:{color:bi,opacity:.1}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:bi}}},"layer:area":{borderColor:Ei,color:"#686868",hoveredBorderColor:bi,selectedBorderColor:bi},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:bi,selectedBorderColor:bi},"layer:marker:pie":{hoveredBorderColor:bi,selectedBorderColor:bi},legend:{border:{color:"#3f3f3f"},font:{color:bi}},controlBar:{borderColor:fr,color:Ei}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:fr,firstLastColor:fr,barPositiveColor:er,barNegativeColor:Gi,winColor:er,lossColor:Gi,pointColor:Ei},bullet:{targetColor:Gi},funnel:{item:{border:{color:Ei}}},sankey:{label:{font:{color:bi}}}},baseThemeName:"material"}];function Or(n,t,e){return{theme:{name:"material."+n+"."+t,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."+t}}var Rr={blue:"#03a9f4",lime:"#cddc39",orange:"#ff5722",purple:"#9c27b0",teal:"#009688"};for(var Qr in Rr)if(Object.prototype.hasOwnProperty.call(Rr,Qr)){var Br=Rr[Qr];Sr.push(Or(Qr,"light",Br),Or(Qr,"dark",Br),{theme:{name:"material.".concat(Qr,".light.compact")},baseThemeName:"material.".concat(Qr,".light")},{theme:{name:"material.".concat(Qr,".dark.compact")},baseThemeName:"material.".concat(Qr,".dark")})}const To=Sr;var Qo,Ro={},na={},ga={},zo=y.l,oa=O.S6,Ta=null,Ia=0,Ma={};function wa(n){var t=Sn(n);return Ro[t]||Ro[na[t]||function Ln(n,t){if(!arguments.length)return Ta||Aa((0,N.Vk)())||Qo;var e=Sn(t);return Ta=(n&&n.platform?Xl(Sn(n.platform),n.version,e):Aa(Sn(n),e))||Ta,this}()]}function Aa(n,t){return na[n+"."+t]||ga[n+"."+t]||na[n]}function Xl(n,t,e){return Aa(n+t,e)||Aa(n,e)}function Lt(n,t,e,i){var r=e?e[t]:i;void 0!==r&&void 0===n[t]&&(n[t]=r)}function wt(n,t,e,i){var r=e?e[t]:i;void 0!==r&&(n[t]=zo(!0,{},r,n[t]))}(0,w.Qr)(Ro)&&(0,w.Qr)(na)&&!Qo&&[].concat(ai,vr,ba,us,ta,va,Wr,Yt,To).forEach(n=>{!function jn(n,t){var e=Sn(n&&n.name);e&&(n.isDefault&&(Qo=e),function Zt(n,t){var e=function Ut(n,t){var e=n.indexOf(t);return e>0?{name:n.substring(0,e),scheme:n.substring(e+1)}:null}(n,".")||{name:n},i=e.name,r=e.scheme;r?(na[i]=na[i]||t,na[i+"."+r]=t):na[i]=t}(e,e),Ro[e]=zo(!0,{},wa(t),function pn(n){return Lt((n=zo(!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:{}},n)).loadingIndicator,"backgroundColor",n),Lt(n.chart.commonSeriesSettings.candlestick,"innerColor",null,n.backgroundColor),Lt(n.map.background,"color",null,n.backgroundColor),Lt(n.title.font,"color",null,n.primaryTitleColor),wt(n.title,"subtitle",null,n.title),Lt(n.legend.font,"color",null,n.secondaryTitleColor),Lt(n.legend.border,"color",null,n.gridColor),function qn(n){var t=n["chart:common:axis"];oa([t.grid,t.minorGrid],function(e,i){Lt(i,"color",null,n.gridColor)}),oa([t,t.tick,t.minorTick,t.label.font],function(e,i){Lt(i,"color",null,n.axisColor)}),Lt(t.title.font,"color",null,n.secondaryTitleColor),Lt(n.gauge.scale.label.font,"color",null,n.axisColor),Lt(n.gauge.scale.tick,"color",null,n.backgroundColor),Lt(n.gauge.scale.minorTick,"color",null,n.backgroundColor),Lt(n.rangeSelector.scale.label.font,"color",null,n.axisColor)}(n),oa(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet","sankey"],function(t,e){Lt(n[e],"redrawOnResize",n),Lt(n[e],"containerBackgroundColor",null,n.backgroundColor),wt(n[e],"tooltip",n),wt(n[e],"export",n)}),oa(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sankey"],function(t,e){wt(n[e],"loadingIndicator",n),wt(n[e],"legend",n),wt(n[e],"title",n)}),oa(["chart","pie","polar"],function(t,e){wt(n,e,null,n["chart:common"])}),oa(["chart","polar"],function(t,e){n[e]=n[e]||{},wt(n[e],"commonAxisSettings",null,n["chart:common:axis"])}),oa(["chart","polar","map","pie"],function(t,e){n[e]=n[e]||{},wt(n[e],"commonAnnotationSettings",null,n["chart:common:annotation"])}),wt(n.rangeSelector.chart,"commonSeriesSettings",n.chart),wt(n.rangeSelector.chart,"dataPrepareSettings",n.chart),Lt(n.treeMap.group.border,"color",null,n.gridColor),Lt(n.treeMap.tile.selectionStyle.border,"color",null,n.primaryTitleColor),Lt(n.treeMap.group.selectionStyle.border,"color",null,n.primaryTitleColor),Lt(n.map.legend,"backgroundColor",n),function Qe(n){var t=n.map;oa(["area","line","marker"],function(e,i){wt(t,"layer:"+i,null,t.layer)}),oa(["dot","bubble","pie","image"],function(e,i){wt(t,"layer:marker:"+i,null,t["layer:marker"])})}(n),n}(n)))}(n.theme,n.baseThemeName)});var ii=wa,Li=y.l,rr=O.S6;function Cr(n,t){var e=n;return t&&rr(t.split("."),function(i,r){return e=e[r]}),e}var qr=ir.Z.inherit({ctor:function(n){this._themeSection=n.themeSection,this._fontFields=n.fontFields||[],function lt(n){var t=++Ia;n._cache=t,Ma[t]=n}(this)},dispose:function(){return function xt(n){delete Ma[n._cache]}(this),this._callback=this._theme=this._font=null,this},setCallback:function(n){return this._callback=n,this},setTheme:function(n,t){return this._current=n,this._rtl=t,this.refresh()},refresh:function(){var n=this._current||{},t=ii(n.name||n);return this._themeName=t.name,this._defaultPalette=t.defaultPalette,this._font=Li({},t.font,n.font),this._themeSection&&rr(this._themeSection.split("."),function(e,i){t=Li(!0,{},t[i])}),this._theme=Li(!0,{},t,(0,w.HD)(n)?{}:n),this._initializeTheme(),ei(this._rtl,this._theme.rtlEnabled)&&Li(!0,this._theme,this._theme._rtl),this._callback(),this},theme:function(n){return Cr(this._theme,n)},themeName:function(){return this._themeName},createPalette:function(n,t){return vn(n,t,this._defaultPalette)},createDiscretePalette:function(n,t){return function Wt(n,t,e){var i=t>0?function Ot(n,t){var D,e=t-1,i=n.length-1,r=[],v=[];function A(z){var Q=i*z,ue=Kr(Q),we=to(Q);v.push(r[ue].blend(r[we],Q-ue).toHex())}for(D=0;D<=i;++D)r.push(new re.Z(n[D]));if(e>0)for(D=0;D<=e;++D)A(D/e);else A(.5);return v}(In(n,{type:"gradientSet",themeDefault:e}),t):[];return{getColor:function(r){return i[r]||null}}}(n,t,this._defaultPalette)},createGradientPalette:function(n){return function qt(n,t){var e=In(n,{type:"gradientSet",themeDefault:t}),i=new re.Z(e[0]),r=new re.Z(e[1]);return{getColor:function(v){return 0<=v&&v<=1?i.blend(r,v).toHex():null}}}(n,this._defaultPalette)},getAccentColor:function(n){return function gi(n,t){return(n=In(n,{themeDefault:t})).accentColor||n[0]}(n,this._defaultPalette)},_initializeTheme:function(){var n=this;rr(n._fontFields||[],function(t,e){n._initializeFont(Cr(n._theme,e))})},_initializeFont:function(n){Li(n,this._font,Li({},n))}}),lo=l(8893),mo=!(0,fi.Ym)();function bo(){this.reset()}function wo(n,t){return n!==t?(0,y.l)({},n,t):(0,y.l)({},n)}function Lo(n,t){return n!==t?n.concat(t):n.slice()}function Jo(n){n._totalChangesOrder=n._optionChangesOrder.concat(n._layoutChangesOrder,n._customChangesOrder)}function ia(n){var t=this.prototype,e=n.code;t["_change_"+e]=n.handler,n.isThemeDependent&&t._themeDependentChanges.push(e),n.option&&(t._optionChangesMap[n.option]=e),(n.isOptionChange?t._optionChangesOrder:t._customChangesOrder).push(e),Jo(t)}function Wo(){var n=function t(){var e,r,i=t._chain.length;for(e=0;e<i;++e)r=t._chain[e].apply(this,arguments);return r};return n._chain=[],n.add=function(t){n._chain.push(t)},n.copy=function(t){n._chain=t._chain.slice()},n}function aa(n,t,e){var i=n[t];i?i.add?(!1===Object.prototype.hasOwnProperty.call(n,t)&&(i=Wo()).copy(n[t]),i.add(e)):((i=Wo()).add(n[t]),i.add(e)):i=e,n[t]=i}function Il(n){var t=this.prototype;t._plugins.push(n),n.fontFields&&t._fontFields.push.apply(t._fontFields,n.fontFields),n.members&&(0,y.l)(this.prototype,n.members),n.customize&&n.customize(this),n.extenders&&Object.keys(n.extenders).forEach(function(e){aa(t,e,n.extenders[e])},this)}bo.prototype={constructor:bo,add:function(n){var t,e=n.length,i=this._flags;for(t=0;t<e;++t)i[n[t]]=1},has:function(n){return this._flags[n]>0},count:function(){return Object.keys(this._flags).length},reset:function(){this._flags={}}};var Rd=mo?function(n){var t=n.inherit;n.inherit=function(){var e=t.apply(this,arguments),i=e.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach(function(r){i[r]={}}),e.addPlugin=E.ZT,e},n.addChange=E.ZT,n.addPlugin=E.ZT}:function(n){var t=n.inherit;n.inherit=function(){var e=this.prototype,i=e._plugins,r=e._fontFields,v=e._eventsMap,D=e._initialChanges,A=e._themeDependentChanges,z=e._optionChangesMap,Q=e._partialOptionChangesMap,ue=e._partialOptionChangesPath,we=e._optionChangesOrder,Le=e._layoutChangesOrder,Ue=e._customChangesOrder,ut=t.apply(this,arguments);return(e=ut.prototype)._plugins=Lo(i,e._plugins),e._fontFields=Lo(r,e._fontFields),e._eventsMap=wo(v,e._eventsMap),e._initialChanges=Lo(D,e._initialChanges),e._themeDependentChanges=Lo(A,e._themeDependentChanges),e._optionChangesMap=wo(z,e._optionChangesMap),e._partialOptionChangesMap=wo(Q,e._partialOptionChangesMap),e._partialOptionChangesPath=wo(ue,e._partialOptionChangesPath),e._optionChangesOrder=Lo(we,e._optionChangesOrder),e._layoutChangesOrder=Lo(Le,e._layoutChangesOrder),e._customChangesOrder=Lo(Ue,e._customChangesOrder),Jo(e),ut.addPlugin=Il,ut},n.prototype._plugins=[],n.prototype._fontFields=[],n.addChange=ia,n.addPlugin=Il};function Ph(){return new bo}var ed=l(9389),bu=l(9644);const wu=(0,ed.Z)(bu.Z.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 Ld=l(4304),Eu=l(9834),Wp=l(1536),td=function(){},yc={easeOutCubic:function(n,t,e){return 1===n?e:(1-Math.pow(1-n,3))*(e-t)+ +t},linear:function(n,t,e){return 1===n?e:n*(e-t)+ +t}},Cc={segments:function(n,t,e,i,r){var A,z,Q,ue,v=t.from,D=t.to,we=[];for(Q=0;Q<v.length;Q++){if(z=[(A=v[Q])[0]],A.length>1)for(ue=1;ue<A.length;ue++)z.push(i(e,A[ue],D[Q][ue]));we.push(z)}r.segments=t.end&&1===e?t.end:we,n.attr({segments:we})},arc:function(n,t,e,i){var r=t.from,v=t.to,D={};for(var A in r)D[A]=i(e,r[A],v[A]);n.attr(D)},transform:function(n,t,e,i,r){var v=t.from,D=t.to,A={};for(var z in v)A[z]=r[z]=i(e,v[z],D[z]);n.attr(A)},base:function(n,t,e,i,r,v){var D={};D[v]=r[v]=i(e,t.from,t.to),n.attr(D)},_:td,complete:function(n,t){n.attr(t)}};function Hs(n){var e,t=this._animateStep;for(e in this._progress=this._calcProgress(n),this.params)(t[e]||t.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 Up(n){return n-this._startTime>=this.delay&&(this.tick=Hs),!0}function Su(n){return this._startTime=n,this.tick=this.delay?Up:Hs,!0}function Ou(n,t,e){this._progress=0,this.element=n,this.params=t,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||Cc,this._easing=yc[e.easing]||yc.easeOutCubic,this._currentParams={},this.tick=Su}function xc(n){this._animationCount=0,this._timerId=null,this._animations={},this.element=n}Ou.prototype={_calcProgress:function(n){return Math.min(1,(n-this.delay-this._startTime)/this.duration)},stop:function(n){var t=this.options,e=this._animateStep;this.stop=this.tick=td,e.complete&&e.complete(this.element,this._currentParams),t.complete&&!n&&t.complete()}},xc.prototype={_loop:function(){var r,n=this,t=n._animations,e=0,i=(new Date).getTime(),v=n._endAnimation;for(r in t)t[r].tick(i)||delete t[r],e++;if(0===e)return n.stop(),void(n._endAnimationTimer=v&&setTimeout(function(){0===n._animationCount&&(v(),n._endAnimation=null)}));n._timerId=Wp.U.call(null,function(){n._loop()},n.element)},addAnimation:function(n){var t=this;t._animations[t._animationCount++]=n,clearTimeout(t._endAnimationTimer),t._timerId||(clearTimeout(t._startDelay),t._startDelay=setTimeout(function(){t._timerId=1,t._loop()},0))},animateElement:function(n,t,e){n&&t&&e&&(n.animation&&n.animation.stop(),this.addAnimation(n.animation=new Ou(n,t,e)))},onEndAnimation:function(n){this._animationCount?this._endAnimation=n:n()},dispose:function(){this.stop(),this.element=null},stop:function(){this._animations={},this._animationCount=0,(0,Wp.W)(this._timerId),clearTimeout(this._startDelay),clearTimeout(this._endAnimationTimer),this._timerId=null},lock:function(){var n,e,i,t=this._animations;for(n in t)e=t[n].options.unstoppable,i=i||e,e||(t[n].stop(!0),delete t[n]);!i&&this.stop()}};var n,Bd=(0,fi.Jj)(),{max:nd,min:Zp,floor:bc,round:wc,sin:id,cos:Du,abs:Ec,PI:ql}=Math,ws=ql/180,Fd={"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},Es="text",zs="stroke",Ja="stroke-width",vl="stroke-opacity",Tu="font-size",Vd="font-style",od="font-weight",Jl="text-decoration",yl="textsAlignment",ds="none",Ql="...",el=Object.create?function(n){return Object.create(n)}:function(n){var t=function(){};return t.prototype=n,new t},Kp={scaleX:1,scaleY:1,"pointer-events":null},Ml=(0,Ld.Z)(function(){var n=b.Z.createElement("div");return n.style.left="-9999px",n.style.position="absolute",{backupContainer:n,backupCounter:0}}),$a=(n=1,function(){return"DevExpress_"+n++});function sd(n){return n&&"string"!=typeof n}function ld(n){return b.Z.createElementNS("http://www.w3.org/2000/svg",n)}function Sc(n,t){return null!==n?"url("+(t?Bd.location.href.split("#")[0]:"")+"#"+n+")":n}function cs(n,t){var e;for(e in t)n[e]=t[e];return n}function kh(n,t){return n=n.toString().split("e"),+((n=(n=wc(+(n[0]+"e"+(n[1]?+n[1]+t:t)))).toString().split("e"))[0]+"e"+(n[1]?+n[1]-t:-t))}var ud={full:ds,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"};function Xf(n,t){return t.hatching&&"none"!==Sn(t.hatching.direction)?((t=cs({},t)).fill=n._hatching=n.renderer.lockHatching(t.fill,t.hatching,n._hatching),delete t.hatching):n._hatching&&(n.renderer.releaseHatching(n._hatching),n._hatching=null),t}var Ba=function(n,t,e,i,r,v,D,A,z,Q){return["M",(n+i*r).toFixed(5),(t-i*v).toFixed(5),"A",i.toFixed(5),i.toFixed(5),0,Q,0,(n+i*D).toFixed(5),(t-i*A).toFixed(5),z?"M":"L",(n+e*D).toFixed(5),(t-e*A).toFixed(5),"A",e.toFixed(5),e.toFixed(5),0,Q,1,(n+e*r).toFixed(5),(t-e*v).toFixed(5),"Z"].join(" ")};function Iu(n,t){var e=[["M",0,0]];switch(t){case"line":e=Ws(n);break;case"area":e=Ws(n,!0);break;case"bezier":e=Rh(n);break;case"bezierarea":e=Rh(n,!0)}return e}function Ws(n,t){return vs(n,Ss,t)}function Rh(n,t){return vs(n,dd,t)}function vs(n,t,e){var i,r,v,D=[];if(null!==(i=n[0])&&void 0!==i&&i.length)for(r=0,v=n.length;r<v;++r)t(n[r],e,D);else t(n,e,D);return D}function Ss(n,t,e){var i=0,r=e.length,v=r,D=(n||[]).length;if(D){if(void 0!==n[0].x)for(;i<D;)e[v++]=["L",n[i].x,n[i++].y];else for(;i<D;)e[v++]=["L",n[i++],n[i++]];e[r][0]="M"}else e[v]=["M",0,0];return t&&e.push(["Z"]),e}function dd(n,t,e){var i,r=e.length,v=(n||[]).length;if(v)if(void 0!==n[0].x)for(e[r++]=["M",n[0].x,n[0].y],i=1;i<v;)e[r++]=["C",n[i].x,n[i++].y,n[i].x,n[i++].y,n[i].x,n[i++].y];else for(e[r++]=["M",n[0],n[1]],i=2;i<v;)e[r++]=["C",n[i++],n[i++],n[i++],n[i++],n[i++],n[i++]];else e[r]=["M",0,0];return t&&e.push(["Z"]),e}function Oc(n,t){var e=n[n.length-2],i=n[n.length-1];switch(t){case"line":case"area":n[0]="L";break;case"bezier":case"bezierarea":n[0]="C",n[1]=n[3]=n[5]=e,n[2]=n[4]=n[6]=i}}function $p(n,t,e){var i=n[n.length-1].slice(),r=n.length;for(Oc(i,e);r<t.length;r++)n[r]=i.slice(0)}function Dc(n,t,e){var i,r,A,z,v=n.length,D=t.length;if((v-1)%2==0&&(D-1)%2==0){A=(r=n.slice(0,1+(i=(v-1)/2-1)))[r.length-1].slice(0),z=n.slice(i+1)[0].slice(0),Oc(A,e),Oc(z,e);for(var Q=i;Q<(D-1)/2-1;Q++)n.splice(Q+1,0,A),n.splice(Q+3,0,z)}}function Hd(n,t){var i,r,e=n._styles;for(i in t=t||{})(0,w.$K)(r=t[i])&&(e[i]=""!=(r+="number"!=typeof r||Fd[i]?"":"px")?r:null);for(i in e)(r=e[i])?n.element.style[i]=r:null===r&&(n.element.style[i]="");return n}function hs(n,t){var e=n.element,i=n.attr(t);i&&-1!==i.indexOf("DevExpress")&&(e.removeAttribute(t),e.setAttribute(t,Sc(i,n.renderer.pathModified)))}function dl(n,t){var r,v,Q,ue,we,Le,e=n._settings,i={},D=n.element,A=n.renderer,z=A.rtl;if(!sd(t=t||{}))return t in e?e[t]:t in Kp?Kp[t]:0;for(r in cs(i,t),i)if(void 0!==(v=i[r])){if(e[r]=v,"align"===r)r="text-anchor",v={left:z?"end":"start",center:"middle",right:z?"start":"end"}[v]||null;else{if("dashStyle"===r){ue=!0;continue}if(r===Ja)ue=!0;else if(!v||"fill"!==r&&"clip-path"!==r&&"filter"!==r||0!==v.indexOf("DevExpress")){if(/^(translate(X|Y)|rotate[XY]?|scale(X|Y)|sharp|sharpDirection)$/i.test(r)){Q=!0;continue}/^(x|y|d)$/i.test(r)&&(Q=!0)}else n._addFixIRICallback(),v=Sc(v,A.pathModified)}null===v?D.removeAttribute(r):D.setAttribute(r,v)}if(ue&&"dashStyle"in e)if(we=("_originalSW"in n?n._originalSW:e[Ja])||1,r="stroke-dasharray",""===(v=null===(v=e.dashStyle)?"":Sn(v))||"solid"===v||v===ds)n.element.removeAttribute(r);else{for(Le=(v=v.replace(/longdash/g,"8,3,").replace(/dash/g,"4,3,").replace(/dot/g,"1,3,").replace(/,$/,"").split(",")).length;Le--;)v[Le]=parseInt(v[Le])*we;n.element.setAttribute(r,v.join(","))}return Q&&n._applyTransformation(),n}function Mu(n,t,e,i,r){var v,D,A,z,Q;if(void 0!==e.wholeText)n.push({value:e.wholeText,style:i,className:r,line:t,height:i[Tu]||0});else if("BR"===e.tagName)++t;else if(b.Z.isElementNode(e)){switch(cs(v={},i),e.tagName){case"B":case"STRONG":v[od]="bold";break;case"I":case"EM":v[Vd]="italic";break;case"U":v[Jl]="underline"}for((D=e.style).color&&(v.fill=D.color),D.fontSize&&(v[Tu]=D.fontSize),D.fontStyle&&(v[Vd]=D.fontStyle),D.fontWeight&&(v[od]=D.fontWeight),D.textDecoration&&(v[Jl]=D.textDecoration),A=0,z=(Q=e.childNodes).length;A<z;++A)t=Mu(n,t,Q[A],v,e.className||r)}return t}function tu(n,t,e){var i,r,v;for(i=0,r=n.length;i<r;++i)(v=n[i])[e]=ld("tspan"),v[e].appendChild(b.Z.createTextNode(v.value)),v.style&&Hd({element:v[e],_styles:{}},v.style),v.className&&v[e].setAttribute("class",v.className),t.appendChild(v[e])}function hd(){this._hasEllipsis&&this.attr({text:this._settings.text})}function Ac(n){var t;return n&&((t=n.cloneNode()).removeAttribute("y"),t.removeAttribute("x")),t||n}function nu(n){for(var t=b.Z.querySelectorAll(n,"title"),e=0;e<t.length;e++)n.removeChild(t[e]);return t}function qp(n){var t=nu(n);return()=>{for(var e=0;e<t.length;e++)n.appendChild(t[e])}}function Pu(n,t,e,i){var r,v;if(e<=t&&i>t)for(r=1,v=n.value.length;r<=v;++r)if(e+n.tspan.getSubStringLength(0,r)>t)return r-1}function iu(n){return n.value.length?n.tspan.getSubStringLength(0,n.value.length):0}function Mt(n,t){var{hideOverflowEllipsis:e}=t;return e&&0===n?"":Ql}function Xt(n,t,e){var i=Mt(t,e);if(n.value.length&&n.tspan.parentNode)for(var r=n.value.length-1;r>=1;r--){if(n.startBox+n.tspan.getSubStringLength(0,r)<t){jr(n,r,i);break}1===r&&jr(n,0,i)}}function Bn(n,t,e,i,r){var D,v=n.value;"none"!==i.wordWrap&&(D="normal"===i.wordWrap?function Je(n,t){for(var e=n.startBox>0?[0]:[],i=n.value.split("").reduce((v,D,A)=>(" "===D&&v.push(A),v),e),r=0;void 0!==i[r+1]&&n.startBox+n.tspan.getSubStringLength(0,i[r+1])<t;)r++;return i[r]}(n,t):function ze(n,t){for(var e=0;e<n.value.length-1;e++)if(n.startBox+n.tspan.getSubStringLength(0,e+1)>t)return e}(n,t));var z,A=[];if(isFinite(D)&&(0!==r||0!==D)){jr(n,D,"");var ue=v.slice(D+(" "===v[D]?1:0));if(ue.length){var we=Ac(n.tspan);if(we.textContent=ue,n.tspan.parentNode.appendChild(we),(z=cs(cs({},n),{value:ue,startBox:0,height:0,tspan:we,stroke:Ac(n.stroke),endBox:we.getSubStringLength(0,ue.length)})).stroke&&(z.stroke.textContent=ue),z.endBox>t&&!(A=Bn(z,t,e,i,D)).length)return[]}}if(n.value.length){if("ellipsis"===i.textOverflow&&n.tspan.getSubStringLength(0,n.value.length)>t&&Xt(n,e,i),"hide"===i.textOverflow&&n.tspan.getSubStringLength(0,n.value.length)>t)return[]}else n.tspan.parentNode.removeChild(n.tspan);var Le=[];return z&&Le.push(z),[{commonLength:v.length,parts:Le}].concat(A)}function ki(n,t,e,i,r){var v=e.textOverflow;if(!isFinite(i)||0===Number(i)||"none"===v)return n;var D=n.reduce((A,z,Q,ue)=>{var[we,Le]=A,Ue=function zn(n,t){return n.parts.reduce((e,i)=>nd(e,Ms(i,t)),0)}(z,r);if((Le+=Ue)<i)we.push(z);else if(z.parts.forEach(Gt=>{$r(Gt)}),"ellipsis"===v){var ut=ue[Q-1];if(ut){var It=ut.parts[ut.parts.length-1];It.hasEllipsis||(0===t||It.endBox<t?jr(It,It.value.length,Mt(t,e)):Xt(It,t,e))}}return[we,Le]},[[],0]);return"hide"===v&&D[1]>i?(D[0].forEach(A=>{A.parts.forEach(z=>{$r(z)})}),[]):D[0]}function dr(n,t,e,i,r){if(!t){var D={value:n.textContent,height:0,line:0};n.textContent="",tu([D],n,"tspan"),t=[D]}return t.reduce((A,z)=>{var[Q,ue,we,Le,Ue]=A,ut=Q[Q.length-1];if(Le)return[Q,ue,we,Le];if(ut&&z.line===Ue){if(z.startBox=ue,ue>i&&"none"===r.wordWrap&&"ellipsis"===r.textOverflow)return $r(z),[Q,ue,we,Le,Ue];ut.parts.push(z),ut.commonLength+=z.value.length}else z.startBox=ue=0,Q.push({commonLength:z.value.length,parts:[z]});if(z.endBox=we=ue+iu(z),ue=we,(0,w.$K)(e)&&we>e){var It=Bn(z,e,i,r);It.length?Q=Q.concat(It.filter(Gt=>Gt.parts.length>0)):(Q=[],Le=!0)}return[Q,ue,we,Le,z.line]},[[],0,0,!1,0])[0]}function jr(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ql,i=n.value.substr(0,t)+e;n.value=n.tspan.textContent=i,n.stroke&&(n.stroke.textContent=i),e===Ql&&(n.hasEllipsis=!0)}function $r(n){n.tspan.parentNode&&n.tspan.parentNode.removeChild(n.tspan),n.stroke&&n.stroke.parentNode&&n.stroke.parentNode.removeChild(n.stroke)}function Pa(n,t,e){n.tspan.setAttribute(t,e),n.stroke&&n.stroke.setAttribute(t,e)}function Ms(n,t){return n.inherits?As(n.height,t):n.height||t}function Us(n){if(n._texts){var r,v,t=n._texts,e=n._settings.x,i=n._getLineHeight(),D=t[0];for(Pa(D,"x",e),Pa(D,"y",n._settings.y),r=1,v=t.length;r<v;++r)D=t[r],parseFloat(D.height)>=0&&(Pa(D,"x",e),Pa(D,"dy",Ms(D,i)))}}function As(n,t){var e=parseFloat(n),i=parseFloat(t),r=e||12,v=i||12;return r>v?isNaN(e)?r:n:isNaN(i)?v:t}function ku(n,t,e,i){e=e||{};var r,v,D=n.renderer,A=n._settings,z={},Q={translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,rotateX:0,rotateY:0};if(i&&(e.complete=i),D.animationEnabled()){for(r in t)v=t[r],/^(translate(X|Y)|rotate[XY]?|scale(X|Y))$/i.test(r)?(z.transform=z.transform||{from:{},to:{}},z.transform.from[r]=r in A?Number(A[r].toFixed(3)):Q[r],z.transform.to[r]=v):z[r]="arc"===r||"segments"===r?v:{from:r in A?A[r]:parseFloat(n.element.getAttribute(r)||0),to:v};D.animateElement(n,z,cs(cs({},D._animation),e))}else e.step&&e.step.call(n,1,1),e.complete&&e.complete.call(n),n.attr(t);return n}function Qp(n,t){var e={is:!1,name:t.name||t,after:t.after};return n?e.to=n:e.virtual=!0,e}var Zs=function(n,t,e){this.renderer=n,this.element=ld(t),this._settings={},this._styles={},"path"===t&&(this.type=e||"line")};function em(n){gd.remove(n)}Zs.prototype={constructor:Zs,_getJQElement:function(){return this._$element||(this._$element=(0,u.Z)(this.element))},_addFixIRICallback:function(){var n=this,t=function(){hs(n,"fill"),hs(n,"clip-path"),hs(n,"filter")};n.element._fixFuncIri=t,t.renderer=n.renderer,gd.add(t),n._addFixIRICallback=function(){}},_clearChildrenFuncIri:function(){!function n(t){var e;for(e=0;e<t.childNodes.length;e++)em(t.childNodes[e]._fixFuncIri),n(t.childNodes[e])}(this.element)},dispose:function(){return em(this.element._fixFuncIri),this._clearChildrenFuncIri(),this._getJQElement().remove(),this},append:function(n){return(n||this.renderer.root).element.appendChild(this.element),this},remove:function(){var n=this.element;return n.parentNode&&n.parentNode.removeChild(n),this},enableLinks:function(){return this._links=[],this},virtualLink:function(n){return Os({_link:Qp(null,n)},this),this},linkAfter:function(n){return this._linkAfter=n,this},linkOn:function(n,t){return this._link=Qp(n,t),Os(this,n),this},linkOff:function(){return function l_(n){var t,e=n._link.to._links;for(t=0;e[t]!==n;++t);e.splice(t,1),s_(e,t)}(this),this._link=null,this},linkAppend:function(){var e,i,n=this._link,t=n.to._links;for(e=n.i+1;(i=t[e])&&!i._link.is;++e);return this._insert(n.to,i),n.is=!0,this},_insert:function(n,t){n.element.insertBefore(this.element,t?t.element:null)},linkRemove:function(){return this.remove(),this._link.is=!1,this},clear:function(){return this._clearChildrenFuncIri(),this._getJQElement().empty(),this},toBackground:function(){var n=this.element,t=n.parentNode;return t&&t.insertBefore(n,t.firstChild),this},toForeground:function(){var n=this.element,t=n.parentNode;return t&&t.appendChild(n),this},attr:function(n){return dl(this,n)},smartAttr:function(n){return this.attr(Xf(this,n))},css:function(n){return Hd(this,n)},animate:function(n,t,e){return ku(this,n,t,e)},sharp(n,t){return this.attr({sharp:n||!0,sharpDirection:t})},_applyTransformation(){var n=this._settings,i=[],r=n.sharp,v=n.sharpDirection||1,D=n[Ja]%2;i.push("translate("+((n.translateX||0)+(!D||"h"!==r&&!0!==r?0:.5*v))+","+((n.translateY||0)+(!D||"v"!==r&&!0!==r?0:.5*v))+")"),n.rotate&&i.push("rotate("+n.rotate+","+(("rotateX"in n?n.rotateX:n.x)||0)+","+(("rotateY"in n?n.rotateY:n.y)||0)+")");var Q=(0,w.$K)(n.scaleX),ue=(0,w.$K)(n.scaleY);(Q||ue)&&i.push("scale("+(Q?n.scaleX:1)+","+(ue?n.scaleY:1)+")"),i.length&&this.element.setAttribute("transform",i.join(" "))},move:function(n,t,e,i){var r={};return(0,w.$K)(n)&&(r.translateX=n),(0,w.$K)(t)&&(r.translateY=t),e?this.animate(r,i):this.attr(r),this},rotate:function(n,t,e,i,r){var v={rotate:n||0};return(0,w.$K)(t)&&(v.rotateX=t),(0,w.$K)(e)&&(v.rotateY=e),i?this.animate(v,r):this.attr(v),this},_getElementBBox:function(){var t,n=this.element;try{t=n.getBBox&&n.getBBox()}catch{}return t||{x:0,y:0,width:n.offsetWidth||0,height:n.offsetHeight||0}},getBBox:function(){var n=this._settings,t=this._getElementBBox();return n.rotate?Yi(t,[("rotateX"in n?n.rotateX:n.x)||0,("rotateY"in n?n.rotateY:n.y)||0],-n.rotate):Wn(t)},markup:function(){return(0,Eu.yD)(this.element)},getOffset:function(){return this._getJQElement().offset()},stopAnimation:function(n){var t=this.animation;return t&&t.stop(n),this},setTitle:function(n){var t=ld("title");t.textContent=n||"",this.element.appendChild(t)},removeTitle(){nu(this.element)},data:function(n,t){var i,e=this.element;if(void 0!==t)e[n]=t;else for(i in n)e[i]=n[i];return this},on:function(){var n=[this._getJQElement()];return n.push.apply(n,arguments),d.Z.on.apply(d.Z,n),this},off:function(){var n=[this._getJQElement()];return n.push.apply(n,arguments),d.Z.off.apply(d.Z,n),this},trigger:function(){var n=[this._getJQElement()];return n.push.apply(n,arguments),d.Z.trigger.apply(d.Z,n),this}};var Fh=function(n,t){Zs.call(this,n,"path",t)};cs(Fh.prototype=el(Zs.prototype),{constructor:Fh,attr:function eu(n){var t;return sd(n)&&(t=(n=cs({},n)).segments,"points"in n&&(t=Iu(n.points,this.type),delete n.points),t&&(n.d=function cd(n){var i,v,D,A,t=[],e=0,r=n.length;for(i=0;i<r;++i)for(D=0,A=(v=n[i]).length;D<A;++D)t[e++]=v[D];return t.join(" ")}(t),this.segments=t,delete n.segments)),dl(this,n)},animate:function Jp(n,t,e){var r,v,i=this.segments||[];return this.renderer.animationEnabled()&&"points"in n&&(v=function Nd(n,t,e){var v,D,i=n.length,r=t.length,A=-1!==e.indexOf("area")?Dc:$p;if(0===i)for(v=0;v<r;v++)n.push(t[v].slice(0));else i<r?A(n,t,e):i>r&&(D=t.slice(0),A(t,n,e));return D}(i,r=Iu(n.points,this.type),this.type),n.segments={from:i,to:r,end:v},delete n.points),ku(this,n,t,e)}});var pd=function(n){Zs.call(this,n,"path","arc")};cs(pd.prototype=el(Zs.prototype),{constructor:pd,attr:function Lh(n){var e,i,r,v,D,A,t=this._settings;return sd(n)&&("x"in(n=cs({},n))||"y"in n||"innerRadius"in n||"outerRadius"in n||"startAngle"in n||"endAngle"in n)&&(t.x=e="x"in n?n.x:t.x,delete n.x,t.y=i="y"in n?n.y:t.y,delete n.y,t.innerRadius=r="innerRadius"in n?n.innerRadius:t.innerRadius,delete n.innerRadius,t.outerRadius=v="outerRadius"in n?n.outerRadius:t.outerRadius,delete n.outerRadius,t.startAngle=D="startAngle"in n?n.startAngle:t.startAngle,delete n.startAngle,t.endAngle=A="endAngle"in n?n.endAngle:t.endAngle,delete n.endAngle,n.d=Ba.apply(null,function jp(n,t,e,i,r,v){var D,A=!0,z=kh(v,3)-kh(r,3);return z&&(Ec(z)%360==0&&(r=0,v=360,D=!0,v-=.01),r>360&&(r%=360),v>360&&(v%=360),r>v&&(r-=360),A=!1),r*=ws,v*=ws,[n,t,Zp(i,e),nd(i,e),Du(r),id(r),Du(v),id(v),D,bc(Ec(v-r)/ql)%2?"1":"0",A]}(e,i,r,v,D,A))),dl(this,n)},animate:function Qf(n,t,e){var i=this._settings,r={from:{},to:{}};return this.renderer.animationEnabled()&&("x"in n||"y"in n||"innerRadius"in n||"outerRadius"in n||"startAngle"in n||"endAngle"in n)&&(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 n?n.x:i.x,delete n.x,r.to.y="y"in n?n.y:i.y,delete n.y,r.to.innerRadius="innerRadius"in n?n.innerRadius:i.innerRadius,delete n.innerRadius,r.to.outerRadius="outerRadius"in n?n.outerRadius:i.outerRadius,delete n.outerRadius,r.to.startAngle="startAngle"in n?n.startAngle:i.startAngle,delete n.startAngle,r.to.endAngle="endAngle"in n?n.endAngle:i.endAngle,delete n.endAngle,n.arc=r),ku(this,n,t,e)}});var Vh=function(n){Zs.call(this,n,"rect")};cs(Vh.prototype=el(Zs.prototype),{constructor:Vh,attr:function Tc(n){var t,e,i,r,v,D,A;return sd(n)&&((void 0!==(n=cs({},n)).x||void 0!==n.y||void 0!==n.width||void 0!==n.height||void 0!==n[Ja])&&(t=void 0!==n.x?this._originalX=n.x:this._originalX||0,e=void 0!==n.y?this._originalY=n.y:this._originalY||0,i=void 0!==n.width?this._originalWidth=n.width:this._originalWidth||0,r=void 0!==n.height?this._originalHeight=n.height:this._originalHeight||0,v=void 0!==n[Ja]?this._originalSW=n[Ja]:this._originalSW,n.x=t+(A=(v||0)<(D=~~((i<r?i:r)/2))?v||0:D)/2,n.y=e+A/2,n.width=i-A,n.height=r-A,((v||0)!==A||!(0===A&&void 0===v))&&(n[Ja]=A)),"sharp"in n&&delete n.sharp),dl(this,n)}});var Nh=function(n){Zs.call(this,n,"text"),this.css({"white-space":"pre"})};function s_(n,t){var e,i;for(e=t;i=n[e];++e)i._link.i=e}function Os(n,t){var r,v,e=t._links,i=n._link.after=n._link.after||t._linkAfter;if(i){for(r=0;(v=e[r])&&v._link.name!==i;++r);if(v)for(++r;(v=e[r])&&v._link.after===i;++r);}else r=e.length;e.splice(r,0,n),s_(e,r)}function Ya(n){this.root=this._createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:ds,stroke:ds,"stroke-width":0}).attr({class:n.cssClass}).css({"line-height":"normal","-ms-user-select":ds,"-moz-user-select":ds,"-webkit-user-select":ds,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"}),this._init(),this.pathModified=!!n.pathModified,this._$container=(0,u.Z)(n.container),this.root.append({element:n.container}),this._locker=0,this._backed=!1}cs(Nh.prototype=el(Zs.prototype),{constructor:Nh,attr:function qf(n){var t;if(!sd(n))return dl(this,n);n=cs({},n);var e=this._settings,i=(0,w.$K)(e[zs])&&(0,w.$K)(e[Ja]);void 0!==n[Es]&&(e[Es]=n[Es],delete n[Es],t=!0),void 0!==n[zs]&&(e[zs]=n[zs],delete n[zs]),void 0!==n[Ja]&&(e[Ja]=n[Ja],delete n[Ja]),void 0!==n[vl]&&(e[vl]=n[vl],delete n[vl]),void 0!==n[yl]&&(function Al(n,t){if(n._texts&&"center"!==t)for(var e=n._texts,i="left"===t?-1:1,r=Math.max.apply(Math,e.map(z=>iu(z))),v=0;v<e.length;v++){var D=e[v],A=iu(D);0!==r&&r!==A&&Pa(D,"dx",i*wc((r-A)/2*10)/10)}}(this,n[yl]),delete n[yl]);var r=(0,w.$K)(e[zs])&&(0,w.$K)(e[Ja]);return dl(this,n),(t=t||r!==i&&e[Es])&&(function ra(n,t,e){var i,r;n._texts=null,n.clear(),null!==t&&(t=""+t,n.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(t)&&-1===t.indexOf("&")?/\n/g.test(t)?i=function Mc(n){for(var t=n.replace(/\r/g,"").split(/\n/g),e=0,i=[];e<t.length;e++)i.push({value:t[e].trim(),height:0,line:e});return i}(t):e&&(i=[{value:t.trim(),height:0}]):(r=function Ic(n){var t=/(style|class)\s*=\s*(["'])(?:(?!\2).)*\2\s?/gi;return n.replace(/(?:(<[a-z0-9]+\s*))([\s\S]*?)(>|\/>)/gi,function(e,i,r,v){return i+(r=(r&&r.match(t)||[]).map(function(D){return D}).join(" "))+v})}(t),i=function Bh(n){var t=[],e=b.Z.createElement("div");return e.innerHTML=n.replace(/\r/g,"").replace(/\n/g,"<br/>"),Mu(t,0,e,{},""),function Xp(n){var t,e,r,i=n[0];for(t=1,e=n.length;t<e;++t)(r=n[t]).line===i.line?(i.height=As(i.height,r.height),i.inherits=i.inherits||0===parseFloat(r.height),r.height=NaN):i=r}(t),t}(r)),i?i.length&&(n._texts=i,e&&tu(i,n.element,zs),tu(i,n.element,"tspan")):n.element.appendChild(b.Z.createTextNode(t)))}(this,e.text,r),this._hasEllipsis=!1),(t||void 0!==n.x||void 0!==n.y)&&Us(this),r&&function Jf(n){if(n._texts){var v,D,A,t=n._texts,e=n._settings[zs],i=n._settings[Ja],r=n._settings[vl]||1;for(D=0,A=t.length;D<A;++D)(v=t[D].stroke).setAttribute(zs,e),v.setAttribute(Ja,i),v.setAttribute(vl,r),v.setAttribute("stroke-linejoin","round")}}(this),this},css:function Yp(n){return Hd(this,n=n||{}),Tu in n&&Us(this),this},applyEllipsis:function Au(n){var t,i,r,v,D,A,z,e=!1;hd.call(this);var Q=this.renderer.text(Ql).attr(this._styles).append(this.renderer.root),ue=Q.getBBox().width;if(this._getElementBBox().width>n)for(n-ue<0?n=0:n-=ue,t=function it(n,t,e){var r,v,D,A,z,i=[];if(t)for(r=0,v=t.length;r<v;++r)i[(D=t[r]).line]?(D.startBox=A,i[D.line].parts.push(D),i[D.line].commonLength+=D.value.length):(D.startBox=A=0,i.push({commonLength:D.value.length,parts:[D]})),z=A+D.tspan.getSubStringLength(0,D.value.length),D.endIndex=Pu(D,e,A,z),A=z;else(D={value:n.textContent,tspan:n}).startBox=A=0,z=A+iu(D),D.endIndex=Pu(D,e,A,z),i=[{commonLength:n.textContent.length,parts:[D]}];return i}(this.element,this._texts,n),i=0,r=t.length;i<r;++i)if(v=t[i].parts,1!==t[i].commonLength)for(D=0,A=v.length;D<A;++D)(0,w.$K)((z=v[D]).endIndex)?(jr(z,z.endIndex),e=!0):z.startBox>n&&$r(z);return Q.remove(),this._hasEllipsis=e,e},setMaxSize:function zd(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,r=[],v=!1,D=!1,A=n;hd.call(i);var z=qp(this.element),Q=i.renderer.text(Ql).attr(i._styles).append(i.renderer.root),ue=Q.getBBox().width,{width:we,height:Le}=i._getElementBBox();return(we||Le)&&(we>n||t&&Le>t)&&(n-ue<0?A=0:A-=ue,r=ki(r=dr(i.element,i._texts,n,A,e),A,e,t,parseFloat(this._getLineHeight())),this._texts=r.reduce((Ue,ut)=>Ue.concat(ut.parts),[]).filter(Ue=>""!==Ue.value).map(Ue=>(Ue.stroke&&Ue.tspan.parentNode.appendChild(Ue.stroke),Ue)).map(Ue=>(Ue.tspan.parentNode.appendChild(Ue.tspan),Ue)),!this._texts.length&&(this._texts=null),v=!0,this._texts?Us(this):(this.element.textContent="",D=!0)),Q.remove(),i._hasEllipsis=v,z(),{rowCount:r.length,textChanged:v,textIsEmpty:D}},restoreText:hd,_getLineHeight(){return isNaN(parseFloat(this._styles[Tu]))?12:this._styles[Tu]}}),Ya.prototype={constructor:Ya,_init:function(){this._defs=this._createElement("defs").append(this.root),this._animationController=new xc(this.root.element),this._animation={enabled:!0,duration:1e3,easing:"easeOutCubic"}},setOptions:function(n){return this.rtl=!!n.rtl,this.encodeHtml=!!n.encodeHtml,this.updateAnimationOptions(n.animation||{}),this.root.attr({direction:this.rtl?"rtl":"ltr"}),this},_createElement:function(n,t,e){var i=new Zs(this,n,e);return t&&i.attr(t),i},lock:function(){return 0===this._locker&&(this._backed=!this._$container.is(":visible"),this._backed&&function ya(n){0===Ml().backupCounter&&b.Z.getBody().appendChild(Ml().backupContainer),++Ml().backupCounter,n.append({element:Ml().backupContainer})}(this.root)),++this._locker,this},unlock:function(){return--this._locker,0===this._locker&&(this._backed&&function Gp(n,t){n.append({element:t}),--Ml().backupCounter,0===Ml().backupCounter&&b.Z.getBody().removeChild(Ml().backupContainer)}(this.root,this._$container[0]),this._backed=!1),this},resize:function(n,t){return n>=0&&t>=0&&this.root.attr({width:n,height:t}),this},dispose:function(){var n;for(n in this.root.dispose(),this._defs.dispose(),this._animationController.dispose(),gd.removeByRenderer(this),this)this[n]=null;return this},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(n){return cs(this._animation,n),this},stopAllAnimations:function(n){return this._animationController[n?"lock":"stop"](),this},animateElement:function(n,t,e){return this._animationController.animateElement(n,t,e),this},svg:function(){return this.root.markup()},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(n){this._animationController.onEndAnimation(n)},rect:function(n,t,e,i){return new Vh(this).attr({x:n||0,y:t||0,width:e||0,height:i||0})},simpleRect:function(){return this._createElement("rect")},circle:function(n,t,e){return this._createElement("circle",{cx:n||0,cy:t||0,r:e||0})},g:function(){return this._createElement("g")},image:function(n,t,e,i,r,v){var D=this._createElement("image",{x:n||0,y:t||0,width:e||0,height:i||0,preserveAspectRatio:ud[Sn(v)]||ds});return D.element.setAttributeNS("http://www.w3.org/1999/xlink","href",r||""),D},path:function(n,t){return new Fh(this,t).attr({points:n||[]})},arc:function(n,t,e,i,r,v){return new pd(this).attr({x:n||0,y:t||0,innerRadius:e||0,outerRadius:i||0,startAngle:r||0,endAngle:v||0})},text:function(n,t,e){return new Nh(this).attr({text:n,x:t||0,y:e||0})},linearGradient:function(n){var t=$a(),e=this,i=e._createElement("linearGradient",{id:t}).append(e._defs);return i.id=t,n.forEach(r=>{e._createElement("stop",{offset:r.offset,"stop-color":r["stop-color"]}).append(i)}),i},pattern:function(n,t,e){var i=(t=t||{}).step||6,r=i/2,v=1.5*i,D=e||$a(),A="right"===Sn(t.direction)?"M "+r+" "+-r+" L "+-r+" "+r+" M 0 "+i+" L "+i+" 0 M "+v+" "+r+" L "+r+" "+v:"M 0 0 L "+i+" "+i+" M "+-r+" "+r+" L "+r+" "+v+" M "+r+" "+-r+" L "+v+" "+r,z=this._createElement("pattern",{id:D,width:i,height:i,patternUnits:"userSpaceOnUse"}).append(this._defs);return z.id=D,this.rect(0,0,i,i).attr({fill:n,opacity:t.opacity}).append(z),new Fh(this).attr({d:A,"stroke-width":t.width||1,stroke:n}).append(z),z},_getPointsWithYOffset:function(n,t){return n.map(function(e,i){return i%2!=0?e+t:e})},clipShape:function(n,t){var e=$a(),i=this._createElement("clipPath",{id:e}).append(this._defs),r=n.apply(this,t).append(i);return r.id=e,r.remove=function(){throw"Not implemented"},r.dispose=function(){return i.dispose(),i=null,this},r},clipRect(n,t,e,i){return this.clipShape(this.rect,arguments)},clipCircle(n,t,e){return this.clipShape(this.circle,arguments)},shadowFilter:function(n,t,e,i,r,v,D,A,z){var Q=$a(),ue=this._createElement("filter",{id:Q,x:n||0,y:t||0,width:e||0,height:i||0}).append(this._defs),we=this._createElement("feGaussianBlur",{in:"SourceGraphic",result:"gaussianBlurResult",stdDeviation:D||0}).append(ue),Le=this._createElement("feOffset",{in:"gaussianBlurResult",result:"offsetResult",dx:r||0,dy:v||0}).append(ue),Ue=this._createElement("feFlood",{result:"floodResult","flood-color":A||"","flood-opacity":z}).append(ue),ut=this._createElement("feComposite",{in:"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(ue),It=this._createElement("feComposite",{in:"SourceGraphic",in2:"compositeResult",operator:"over"}).append(ue);return ue.id=Q,ue.gaussianBlur=we,ue.offset=Le,ue.flood=Ue,ue.composite=ut,ue.finalComposite=It,ue.attr=function(Gt){var ln={},En={},on={};return"x"in Gt&&(ln.x=Gt.x),"y"in Gt&&(ln.y=Gt.y),"width"in Gt&&(ln.width=Gt.width),"height"in Gt&&(ln.height=Gt.height),dl(this,ln),"blur"in Gt&&this.gaussianBlur.attr({stdDeviation:Gt.blur}),"offsetX"in Gt&&(En.dx=Gt.offsetX),"offsetY"in Gt&&(En.dy=Gt.offsetY),this.offset.attr(En),"color"in Gt&&(on["flood-color"]=Gt.color),"opacity"in Gt&&(on["flood-opacity"]=Gt.opacity),this.flood.attr(on),this},ue},brightFilter:function(n,t){var e=$a(),i=this._createElement("filter",{id:e}).append(this._defs),r=this._createElement("feComponentTransfer").append(i),v={type:n,slope:t};return i.id=e,this._createElement("feFuncR",v).append(r),this._createElement("feFuncG",v).append(r),this._createElement("feFuncB",v).append(r),i},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var n=$a(),t=this._createElement("filter",{id:n}).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(t),t.id=n,this._grayScaleFilter=t,t},initHatching:function(){var e,n=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:$a()},t=n.byHash;for(e in t)t[e].pattern.dispose();n.byHash={},n.refToHash={},n.nextId=0},lockHatching:function(n,t,e){var v,D,i=this._hatchingStorage,r=function tm(n,t){return"@"+n+"::"+t.step+":"+t.width+":"+t.opacity+":"+t.direction}(n,t);return i.refToHash[e]!==r&&(e&&this.releaseHatching(e),(v=i.byHash[r])||(D=this.pattern(n,t,i.baseId+"-hatching-"+i.nextId++),v=i.byHash[r]={pattern:D,count:0},i.refToHash[D.id]=r),++v.count,e=v.pattern.id),e},releaseHatching:function(n){var t=this._hatchingStorage,e=t.refToHash[n],i=t.byHash[e];i&&0==--i.count&&(i.pattern.dispose(),delete t.byHash[e],delete t.refToHash[n])}};var gd=function(){var n=[];return{add:function(t){n.push(t)},remove:function(t){n=n.filter(function(e){return e!==t})},removeByRenderer:function(t){n=n.filter(function(e){return e.renderer!==t})},fire:function(){n.forEach(function(t){t()})}}}(),Hh=Math.min,eg=Math.max,Ks=Math.round,ng={left:0,center:1,right:2},ig={top:0,center:1,bottom:2},nm={horizontal:0,vertical:1},zh={};function Wh(n,t,e){var i=Sn(n);return i in t?t[i]:e}function rm(n){var t=Wh(n.side,nm,1),e=[Wh(n.horizontalAlignment,ng,1),Wh(n.verticalAlignment,ig,0)];return{side:t,primary:d_(e[t]),secondary:e[1-t],weak:n.weak,priority:n.priority||0,header:n.header,position:n.position}}function d_(n){return n<2?0:2}function kc(n,t){return(n>0?-1:1)*t}function og(n,t,e){var i=n.side,r=n.element.measure([t[2]-t[0],t[3]-t[1]]),D=r[i]<t[2+i]-t[i]-("indside"===n.position?0:e[i]);return D&&("inside"!==n.position&&(t[n.primary+i]+=kc(n.primary,r[i])),n.size=r),D}function rs(n,t,e){var i=n.side,r=function Ps(n){return 1-n}(i),v=[],D=function rg(n,t,e,i){return zh[n](t,e,i)}(n.secondary,e[r],e[2+r],n.size[r]);return v[i]=Ks(v[2+i]=t[n.primary+i]+("inside"===n.position?kc(n.primary,n.size[i]):0)),v[n.primary+i]=Ks(t[n.primary+i]-kc(n.primary,n.size[i])),"inside"!==n.position&&(t[n.primary+i]=v[n.primary+i]),v[r]=Ks(D[0]),v[2+r]=Ks(D[1]),v}function Wd(n,t,e,i,r,v){var D=rs(n,t,e),A=rs(n,i,i);r[n.side]>0?(r[n.side]-=n.size[n.side],v[n.primary+n.side]=D[n.primary+n.side],n.element.freeSpace()):n.element.move(D,A)}function Rc(){this._targets=[]}function Gs(n,t){var e=t.slice(),i=rs(n,e,e);return i[n.side]=t[n.side],i[2+n.side]=t[2+n.side],i}function h_(n,t){var e=n.side,i=n.primary;return{side:e,primary:i,secondary:n.secondary,priority:0,element:{measure:function(v){var D=v.slice(),A=t.element.measure(v.slice());v[i]-=A[i];var z=n.element.measure(v.slice());return D[e]=A[e]=z[e]=Math.max(z[e],A[e]),t.size=A,n.size=z,D},move:function(v,D){if(D[2]-D[0]<n.size[0]+t.size[0]-2)this.freeSpace();else{var A=Gs(t,D);D[2+t.primary]=A[t.primary];var z=Gs(n,D);D[2+t.primary]<v[2+t.primary]&&n.size[n.primary]>v[2+n.primary]-v[n.primary]&&(v[2+t.primary]=D[2+t.primary]);var Q=Gs(n,v);Q[2+t.primary]>D[2+t.primary]&&(v[2+t.primary]=D[2+t.primary],Q=Gs(n,v)),t.element.move(A),n.element.move(Q,z)}},freeSpace:function(){n.element.freeSpace(),t.element.freeSpace()}}}}zh[0]=function(n,t,e){return[n,Hh(t,n+e)]},zh[1]=function(n,t,e){return[eg(n,(n+t-e)/2),Hh(t,(n+t+e)/2)]},zh[2]=function(n,t,e){return[eg(n,t-e),t]},Rc.prototype={constructor:Rc,dispose:function(){this._targets=null},add:function(n){this._targets.push(n)},forward:function(n,t){var r,e=n.slice(),i=function ag(n){var t,r,e=n.length,i=[];for(t=0;t<e;++t)(r=n[t].layoutOptions())&&((r=rm(r)).element=n[t],i.push(r));return i.sort(function(v,D){return D.side-v.side||v.priority-D.priority}),i=function c_(n){var e,t=n.filter(function(i){return!0===i.weak})[0];return t&&(e=n.filter(function(i){return t.primary===i.primary&&i.side===t.side&&i!==t})[0]),t&&e?[h_(e,t)].concat(n.filter(function(i){return!(i===e||i===t)})):n}(i),i}(this._targets),v=i.length,D=[];for(r=0;r<v;++r)og(i[r],e,t)?D.push(i[r]):i[r].element.freeSpace();return this._cache=D.reverse(),e},backward:function(n,t){var A,z,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],i=n.slice(),r=n.slice(),v=this._cache,D=0,Q=v.length;for(z=0;z<Q;++z)(A=v[z]).side!==D&&(i=n.slice()),Wd(A,i,t,r,e,n),D=A.side;return e}};const sg=Rc;var p_=l(2805),Yo=l(9589),om=l(3824),lg=l(9870),ug=wu.ERROR_MESSAGES,g_=function(n,t){return function(e,i){t("incidentOccurred",{target:{id:e,type:"E"===e[0]?"error":"warning",args:i,text:Yo.WU.apply(null,[ug[e]].concat(i||[])),widget:n,version:p_.i}})}};var Zh=Math.floor,Kh=wu.log,dg="rtlEnabled",Ru="dx-sized-element",Gh=lo.Z.prototype.option;function Lc(){return!0}function cg(){return!1}function sm(n){n.component._eventsStrategy.hasEvent("incidentOccurred")||Kh.apply(null,[n.target.id].concat(n.target.args||[]))}function fd(n){return n.reduce(function(t,e){return e>0&&!t?e:t},0)}function hg(n){n.forEach(t=>t())}var t,e,$h=(0,fi.Ym)()?lo.Z.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred",actionSettings:{excludeValidators:["disabled"]}},onDrawn:{name:"drawn",actionSettings:{excludeValidators:["disabled"]}}},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{onIncidentOccurred:sm})},_useLinks:!0,_init:function(){var n=this;n._$element.children("."+Ru).remove(),n.callBase.apply(n,arguments),n._changesLocker=0,n._optionChangedLocker=0,n._asyncFirstDrawing=!0,n._changes=Ph(),n._suspendChanges(),n._themeManager=n._createThemeManager(),n._themeManager.setCallback(function(){n._requestChange(n._themeDependentChanges)}),n._renderElementAttributes(),n._initRenderer();var t=n._useLinks&&n._renderer.root;t&&t.enableLinks().virtualLink("core").virtualLink("peripheral"),n._renderVisibilityChange(),n._attachVisibilityChangeHandlers(),n._toggleParentsScrollSubscription(this._isVisible()),n._initEventTrigger(),n._incidentOccurred=g_(n.NAME,n._eventTrigger),n._layout=new sg,t&&t.linkAfter("core"),n._initPlugins(),n._initCore(),t&&t.linkAfter(),n._change(n._initialChanges)},_createThemeManager(){return new qr(this._getThemeManagerOptions())},_getThemeManagerOptions(){return{themeSection:this._themeSection,fontFields:this._fontFields}},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins:function(){var n=this;(0,O.S6)(n._plugins,function(t,e){e.init.call(n)})},_disposePlugins:function(){var n=this;(0,O.S6)(n._plugins.slice().reverse(),function(t,e){e.dispose.call(n)})},_change:function(n){this._changes.add(n)},_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(n){this._resolveDeferred(this._getTemplatesItems(n))},_collectTemplatesFromItems:n=>n.reduce((t,e)=>({items:t.items.concat(e.getTemplatesDef()),groups:t.groups.concat(e.getTemplatesGroups())}),{items:[],groups:[]}),_getTemplatesItems(n){var t=this._collectTemplatesFromItems(n),e=this._getExtraTemplatesItems();return{items:e.items.concat(t.items),groups:e.groups.concat(t.groups),launchRequest:[e.launchRequest],doneRequest:[e.doneRequest]}},_getExtraTemplatesItems:()=>({items:[],groups:[],launchRequest:()=>{},doneRequest:()=>{}}),_resolveDeferred(n){var{items:t,launchRequest:e,doneRequest:i,groups:r}=n,v=this;if(v._setGroupsVisibility(r,"hidden"),v._changesApplying)return v._changesApplying=!1,void hg(i);var D=!0;P.gx.apply(v,t).done(()=>{if(D)v._setGroupsVisibility(r,"visible");else{hg(e),v._changesApplying=!0;var A=["LAYOUT","FULL_RENDER"];v._asyncFirstDrawing?(A.push("FORCE_FIRST_DRAWING"),v._asyncFirstDrawing=!1):A.push("FORCE_DRAWING"),v._requestChange(A),v._setGroupsVisibility(r,"visible")}}),D=!1},_setGroupsVisibility(n,t){n.forEach(e=>e.attr({visibility:t}))},_applyQueuedOptions:function(){var n=this._optionsQueue;this._optionsQueue=null,this.beginUpdate(),(0,O.S6)(n,function(t,e){e()}),this.endUpdate()},_requestChange:function(n){this._suspendChanges(),this._change(n),this._resumeChanges()},_applyChanges:function(){var e,n=this._changes,t=this._totalChangesOrder,i=t.length;for(e=0;e<i;++e)n.has(t[e])&&this["_change_"+t[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 n=this._renderer,t=n.root;this.option("disabled")?(this._initDisabledState=t.attr("pointer-events"),t.attr({"pointer-events":"none",filter:n.getGrayScaleFilter().id})):"none"===t.attr("pointer-events")&&t.attr({"pointer-events":(0,w.$K)(this._initDisabledState)?this._initDisabledState:null,filter:null})},_themeDependentChanges:["RENDERER"],_initRenderer:function(){this._canvas=this._calculateCanvas(),this._renderer=new Ya({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:E.ZT,render:function(){this._requestChange(["CONTAINER_SIZE"]);var n=this._isVisible();this._toggleParentsScrollSubscription(n),!n&&this._stopCurrentHandling()},_toggleParentsScrollSubscription:function(n){var t=(0,u.Z)(this._renderer.root.element).parents();"generic"===x.Z.real().platform&&(t=t.add((0,fi.Jj)())),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(){this._stopCurrentHandling()}.bind(this),d.Z.off((0,u.Z)().add(this._$prevRootParents),"scroll.viz_widgets",this._proxiedTargetParentsScrollHandler),n&&(d.Z.on(t,"scroll.viz_widgets",this._proxiedTargetParentsScrollHandler),this._$prevRootParents=t)},_stopCurrentHandling:E.ZT,_dispose:function(){var n=this;this._disposed||(n.callBase.apply(n,arguments),n._toggleParentsScrollSubscription(!1),n._removeResizeHandler(),n._layout.dispose(),n._eventTrigger.dispose(),n._disposeCore(),n._disposePlugins(),n._disposeRenderer(),n._themeManager.dispose(),n._themeManager=n._renderer=n._eventTrigger=null)},_initEventTrigger:function(){var n=this;n._eventTrigger=function Uh(n,t){var i,e={};return(0,O.S6)(n,function(D,A){A.name&&r(D)}),v.change=function(D){var A=n[D];return A&&((i=i||{})[D]=A),!!A},v.applyChanges=function(){i&&((0,O.S6)(i,function(D,A){r(A.newName||D)}),i=null)},v.dispose=function(){n=t=e=null},v;function r(D){var A=n[D];e[A.name]=t(D,A.actionSettings)}function v(D,A,z){e[D](A),z&&z()}}(n._eventsMap,function(t,e){return n._createActionByOption(t,e)})},_calculateCanvas:function(){var n=this,t=n.option("size")||{},e=n.option("margin")||{},i=n._getDefaultSize()||{},r=(z,Q,ue)=>{if(function lm(n){return(0,w.$K)(n)&&n>0}(z[Q])||!(0,fi.Ym)())return 0;var we=ue(n._$element);return we<=1?0:we},v=r(t,"width",z=>(0,s.dz)(z)),D=r(t,"height",z=>(0,s.Cr)(z)),A={width:t.width<=0?0:Zh(fd([t.width,v,i.width])),height:t.height<=0?0:Zh(fd([t.height,D,i.height])),left:fd([e.left,i.left]),top:fd([e.top,i.top]),right:fd([e.right,i.right]),bottom:fd([e.bottom,i.bottom])};return(A.width-A.left-A.right<=0||A.height-A.top-A.bottom<=0)&&(A={width:0,height:0}),A},_updateSize:function(){var n=this._calculateCanvas();(function jh(n,t){return!(n.width===t.width&&n.height===t.height&&n.left===t.left&&n.top===t.top&&n.right===t.right&&n.bottom===t.bottom)}(this._canvas,n)||this.__forceRender)&&(this._canvas=n,this._recreateSizeDependentObjects(!0),this._renderer.resize(n.width,n.height),this._change(["LAYOUT"]))},_recreateSizeDependentObjects:E.ZT,_getMinSize:function(){return[0,0]},_getAlignmentRect:E.ZT,_setContentSize:function(){var n=this._canvas,t=this._layout,e=n.width>0&&n.height>0?[n.left,n.top,n.width-n.right,n.height-n.bottom]:[0,0,0,0];e=t.forward(e,this._getMinSize());var i=this._applySize(e)||e;t.backward(i,this._getAlignmentRect()||i)},_getOption:function(n,t){var e=this._themeManager.theme(n),i=this.option(n);return t?void 0!==i?i:e:(0,y.l)(!0,{},e,i)},_setupResizeHandler:function(){var n=this,t=ei(n._getOption("redrawOnResize",!0),!0);n._disposeResizeHandler&&n._removeResizeHandler(),n._disposeResizeHandler=function am(n,t,e){var i,r=function Ud(n){return(t,e)=>{var{handler:i,dispose:r}=function f_(n,t){var e,i=function(){clearTimeout(e),e=setTimeout(n,100)};return{handler:i,dispose(){clearTimeout(e),t(i)}}}(n,e);return t(i),r}}(e);return"windowonly"===Sn(t)?i=r(v=>om.Z.add(v),v=>om.Z.remove(v)):!0===t&&(i=r(v=>lg.Z.observe(n,v),()=>lg.Z.unobserve(n))),i}(n._$element[0],t,()=>n._requestChange(["CONTAINER_SIZE"]))},_removeResizeHandler:function(){this._disposeResizeHandler&&(this._disposeResizeHandler(),this._disposeResizeHandler=null)},_onBeginUpdate:E.ZT,beginUpdate:function(){var n=this;return n._initialized&&n._isUpdateAllowed()&&(n._onBeginUpdate(),n._suspendChanges()),n.callBase.apply(n,arguments),n},endUpdate:function(){return this.callBase(),this._isUpdateAllowed()&&this._resumeChanges(),this},option:function(n){var t=this;if(!(t._initialized&&t._applyingChanges&&(arguments.length>1||(0,w.Kn)(n))))return Gh.apply(t,arguments);t._optionsQueue=t._optionsQueue||[],t._optionsQueue.push(t._getActionForUpdating(arguments))},_getActionForUpdating:function(n){var t=this;return function(){Gh.apply(t,n)}},_clean:E.ZT,_render:E.ZT,_optionChanged:function(n){var t=this;if(!t._optionChangedLocker){var e=t.getPartialChangeOptionsName(n),i=[];e.length>0?e.forEach(r=>i.push(t._partialOptionChangesMap[r])):i.push(t._optionChangesMap[n.name]),i=i.filter(r=>!!r),t._eventTrigger.change(n.name)?t._change(["EVENTS"]):i.length>0?t._change(i):t.callBase.apply(t,arguments)}},_notify:E.ZT,_changesApplied:E.ZT,_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(n){var t=this,e=n.fullName,i=e.split(/[.]/),r=n.name,v=n.value,D=this._partialOptionChangesPath[r],A=[];return D&&(!0===D?A.push(r):(D.forEach(z=>{e.indexOf(z)>=0&&A.push(z)}),1===i.length&&("object"===(0,w.dt)(v)?t._addOptionsNameForPartialUpdate(v,D,A):"array"===(0,w.dt)(v)&&v.length>0&&v.every(z=>t._checkOptionsForPartialUpdate(z,D))&&v.forEach(z=>t._addOptionsNameForPartialUpdate(z,D,A))))),A.filter((z,Q,ue)=>ue.indexOf(z)===Q)},_checkOptionsForPartialUpdate:function(n,t){return!Object.keys(n).some(e=>-1===t.indexOf(e))},_addOptionsNameForPartialUpdate:function(n,t,e){var i=Object.keys(n);this._checkOptionsForPartialUpdate(n,t)&&i.forEach(r=>t.indexOf(r)>-1&&e.push(r))},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(dg))},_getRendererOptions:function(){return{rtl:this.option(dg),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var n=this._canvas||{};return{width:n.width,height:n.height}},isReady:cg,_dataIsReady:Lc,_resetIsReady:function(){this.isReady=cg},_drawn:function(){var n=this;n.isReady=cg,n._dataIsReady()&&n._renderer.onEndAnimation(function(){n.isReady=Lc}),n._eventTrigger("drawn",{})}}):(t=lo.Z.inherit({_initTemplates(){},ctor(i,r){this.callBase(i,r);var v=b.Z.createElement("div"),D=r&&(0,w.kE)(r.width)?r.width+"px":"100%",A=r&&(0,w.kE)(r.height)?r.height+"px":this._getDefaultSize().height+"px";b.Z.setStyle(v,"width",D),b.Z.setStyle(v,"height",A),b.Z.setClass(v,Ru),b.Z.insertElement(i,v)}}),e=t.inherit,t.inherit=function(i){for(var r in i)((0,w.mf)(i[r])&&"_"!==r.substr(0,1)&&"option"!==r||"_dispose"===r||"_optionChanged"===r)&&(i[r]=E.ZT);return e.call(this,i)},t);const Cl=$h;Rd($h);var Yh=y.l,pg=qr.inherit({ctor(n){this.callBase.apply(this,arguments),this._subTheme=n.subTheme},_initializeTheme:function(){var t,n=this;n._subTheme&&(t=Yh(!0,{},n._theme[n._subTheme],n._theme),Yh(!0,n._theme,t)),n.callBase.apply(n,arguments)}});const um={ThemeManager:pg};var gg=l(1186),Xh=l(3068),_o=l(8690),js="gauge-tooltip",fg=Xh.Z.add,dm=ir.Z.inherit({ctor:function(n){var t=this;t._element=n.renderer.g().attr({class:"dxg-tracker",stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).linkOn(n.container,{name:"tracker",after:"peripheral"}),t._showTooltipCallback=function(){var e=t._tooltipEvent.target,i=e["gauge-data-target"],r=e["gauge-data-info"];if(t._targetEvent=null,t._tooltipTarget!==e){var v=D=>{D&&(t._tooltipTarget=e)};v(t._callbacks["tooltip-show"](i,r,v))}},t._hideTooltipCallback=function(){t._hideTooltipTimeout=null,t._targetEvent=null,t._tooltipTarget&&(t._callbacks["tooltip-hide"](),t._tooltipTarget=null)},t._dispose=function(){clearTimeout(t._hideTooltipTimeout),t._showTooltipCallback=t._hideTooltipCallback=t._dispose=null}},dispose:function(){return this._dispose(),this.deactivate(),this._element.off("."+js),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(n,t,e){return n.data({"gauge-data-target":t,"gauge-data-info":e}).append(this._element),this},detach:function(n){return n.remove(),this},setTooltipState:function(n){if(this._element.off("."+js),n){var t={tracker:this};this._element.on((0,k.V4)([_o.Z.move],js),t,Zd).on((0,k.V4)([_o.Z.out],js),t,cm).on((0,k.V4)([_o.Z.down],js),t,_g).on((0,k.V4)([_o.Z.up],js),t,vg).on((0,k.V4)([gg.u],js),t,Jh)}return this},setCallbacks:function(n){return this._callbacks=n,this},_showTooltip:function(n){clearTimeout(this._hideTooltipTimeout),this._hideTooltipTimeout=null,this._tooltipTarget!==n.target&&(this._tooltipEvent=n,this._showTooltipCallback())},_hideTooltip:function(n){clearTimeout(this._hideTooltipTimeout),n?this._hideTooltipTimeout=setTimeout(this._hideTooltipCallback,n):this._hideTooltipCallback()}}),mg=null;function Zd(n){var t=n.data.tracker;t._x=n.pageX,t._y=n.pageY,t._showTooltip(n)}function cm(n){n.data.tracker._hideTooltip(100)}function Jh(n){n.data.tracker._hideTooltip()}function _g(n){(mg=n.data.tracker)._touch=!0,Zd(n)}function vg(){mg._touch=!1}function Bc(n){mg&&!mg._touch&&(mg._hideTooltip(100),mg=null)}fg(function(){d.Z.subscribeGlobal(b.Z.getDocument(),(0,k.V4)([_o.Z.down],js),Bc)});const yg=dm;var Fa=l(5062),tl=l(8606),wn=l(9009),Qh=l(5239),md=l(2160),ks=[_o.Z.down,_o.Z.move].join(" "),hm=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],y_=["PNG","JPEG","GIF"],C_=["PDF","SVG"],Vc="dx-export-menu",wg="export-element-type",Eg="export-element-format";function tp(){var n=tl.BH.testFormats(y_);return{unsupported:n.unsupported,supported:n.supported.concat(C_)}}function Hc(n,t,e){if(e=e||tp(),n=String(n).toUpperCase(),-1!==e.supported.indexOf(n))return n;-1!==e.unsupported.indexOf(n)&&t&&t("W2108",[n])}function np(n){return"SVG"===n?tl.YP.getData:"PDF"===n?tl.eA.getData:tl.BH.getData}function Og(n,t,e){var i={},r=e.type,v=e.format,D=function x_(n,t,e){var r=40+30*e,v={rect:{width:118,height:30,x:-84,y:r},text:{x:(n.rtl?105:15)-85,y:r+30-8}};return"printing"===t&&(v.separator={stroke:n.button.default.borderColor,"stroke-width":1,cursor:"pointer",sharp:"v",d:"M -85 "+(r+30-1)+" L 35 "+(r+30-1)}),v}(t,r,e.itemIndex),A=di(t.font);A["pointer-events"]="none";var z=n.g().attr({class:Vc+"-list-item"});i[wg]=r,v&&(i[Eg]=v);var Q=n.rect();Q.attr(D.rect).css({cursor:"pointer","pointer-events":"all"}).data(i),Q.on(Qh.B+".export",()=>Q.attr({fill:t.button.hover.backgroundColor})).on(Qh.u+".export",()=>Q.attr({fill:null})),Q.append(z);var ue=n.text(e.text).css(A).attr(D.text).append(z);return"printing"===r&&n.path(null,"line").attr(D.separator).append(z),{g:z,rect:Q,resetState:()=>Q.attr({fill:null}),fixPosition:()=>{var we=ue.getBBox();ue.move(D.text.x-we.x-(t.rtl?we.width:0))}}}var mm=function(n){var t=this._renderer=n.renderer;this._incidentOccurred=n.incidentOccurred,this._exportTo=n.exportTo,this._print=n.print,this._shadow=t.shadowFilter("-50%","-50%","200%","200%",2,6,3),this._shadow.attr({opacity:.8}),this._group=t.g().attr({class:Vc,[Eu.Nc]:!0}).linkOn(t.root,{name:"export-menu",after:"peripheral"}),this._buttonGroup=t.g().attr({class:Vc+"-button"}).append(this._group),this._listGroup=t.g().attr({class:Vc+"-list"}).append(this._group),this._overlay=t.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=tp(),this._subscribeEvents()};function Tg(n,t,e,i){(i||t.format)&&(i=Hc(i||t.format,n._incidentOccurred));var{width:r,height:v}=n.getSize();return{format:i||"PNG",fileName:e||t.fileName||"file",backgroundColor:t.backgroundColor,width:r,height:v,margin:t.margin,svgToCanvas:t.svgToCanvas,exportingAction:n._createActionByOption("onExporting",{excludeValidators:["disabled"]}),exportedAction:n._createActionByOption("onExported",{excludeValidators:["disabled"]}),fileSavingAction:n._createActionByOption("onFileSaving",{excludeValidators:["disabled"]})}}(0,y.l)(mm.prototype,{getLayoutOptions(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var n=this._buttonGroup.getBBox();return n.cutSide="vertical",n.cutLayoutSide="top",n.height+=10,n.position={vertical:"top",horizontal:"right"},n.verticalAlignment="top",n.horizontalAlignment="right",n},shift(n,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw(n,t,e){this._group.move(n-35-2-3+e.left,Math.floor(t/2-17.5));var i=this.getLayoutOptions();return(i.width>n||i.height>t)&&this.freeSpace(),this},show(){this._group.linkAppend()},hide(){this._group.linkRemove()},setOptions(n){this._options=n,n.formats=n.formats?n.formats.reduce((t,e)=>((e=Hc(e,this._incidentOccurred,this.validFormats))&&t.push(e),t),[]):this.validFormats.supported.slice(),n.printingEnabled=void 0===n.printingEnabled||n.printingEnabled,n.enabled&&(n.formats.length||n.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 n=this._options.button.margin;return[35+n.left+n.right,35+n.top+n.bottom]},move(n){var t=this._options.button.margin;this._group.attr({translateX:Math.round(n[0])+t.left,translateY:Math.round(n[1])+t.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(n=>n.resetState())},_showList(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach(n=>n.fixPosition())},_setButtonState(n){var t=this._options.button[n];this._button.attr({stroke:t.borderColor,fill:t.backgroundColor}),this._icon.attr({fill:t.color})},_subscribeEvents(){this._renderer.root.on(_o.Z.up+".export",n=>{var t=n.target[wg];t?"button"===t?this._listShown?(this._setButtonState("default"),this._hideList()):(this._setButtonState("focus"),this._showList()):"printing"===t?(this._print(),this._hideList()):"exporting"===t&&(this._exportTo(n.target[Eg]),this._hideList()):this._button&&this._hideList()}),this._listGroup.on(ks,n=>n.stopPropagation()),this._buttonGroup.on(_o.Z.enter,()=>this._setButtonState("hover")),this._buttonGroup.on(_o.Z.leave,()=>this._setButtonState(this._listShown?"focus":"default")),this._buttonGroup.on(_o.Z.down+".export",()=>this._setButtonState("active"))},_unsubscribeEvents(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton(){var n=this._renderer,t=this._options,e={"export-element-type":"button"};this._button||(this._button=n.rect(0,0,35,35).append(this._buttonGroup),this._button.attr({rx:4,ry:4,fill:t.button.default.backgroundColor,stroke:t.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),this._button.data(e),this._icon=n.path(hm).append(this._buttonGroup),this._icon.attr({fill:t.button.default.color,cursor:"pointer"}),this._icon.data(e),this._buttonGroup.setTitle(wn.Z.format("vizExport-titleMenuText")))},_updateList(){var n=this._options,t=n.button.default,e=this._listGroup,i=function gm(n,t){var e=[];return t.printingEnabled&&e.push(Og(n,t,{type:"printing",text:wn.Z.format("vizExport-printingButtonText"),itemIndex:e.length})),t.formats.reduce((i,r)=>(i.push(Og(n,t,{type:"exporting",text:wn.Z.getFormatter("vizExport-exportButtonText")(r),format:r,itemIndex:i.length})),i),e)}(this._renderer,n);this._shadow.attr({color:n.shadowColor}),this._overlay.attr({height:30*i.length+2,fill:t.backgroundColor,stroke:t.borderColor}),e.clear(),this._overlay.append(e),i.forEach(r=>r.g.append(e)),this._menuItems=i}});var Bu={name:"export",init(){this._exportMenu=new mm({renderer:this._renderer,incidentOccurred:this._incidentOccurred,print:()=>this.print(),exportTo:n=>this.exportTo(void 0,n)}),this._layout.add(this._exportMenu)},dispose(){this._exportMenu.dispose()},members:{_getExportMenuOptions(){return(0,y.l)({},this._getOption("export"),{rtl:this._getOption("rtlEnabled",!0)})},_disablePointerEvents(){var n=this._renderer.root.attr("pointer-events");return this._renderer.root.attr({"pointer-events":"none"}),n},exportTo(n,t){var e=this._exportMenu,i=Tg(this,this._getOption("export")||{},n,t);e&&e.hide();var r=this._disablePointerEvents(),v=(0,tl.xD)(this._renderer.root.element,i,np(i.format)).fail(md.k.error).always(()=>{this._renderer.root.attr({"pointer-events":r})});return e&&e.show(),v},print(){var n=this._exportMenu,t=Tg(this,this._getOption("export")||{});t.exportingAction=null,t.exportedAction=null,t.margin=0,t.format="PNG",t.useBase64=!0,t.fileSavingAction=r=>{(function Sg(n,t){var e=(0,fi.Jj)().document,i=e.createElement("iframe");i.onload=function pm(n,t){return function(){var e=this.contentWindow,i=e.document.createElement("img");e.document.body.appendChild(i);var r=function Cd(n){n.style.width="21cm";var t=(0,s.dz)(n);return n.style.width="",t}(e.document.body)/t.width;r<1&&(e.document.body.style.transform="scale(".concat(r,")"),e.document.body.style["transform-origin"]="0 0");var v=()=>{this.parentElement.removeChild(this)};i.addEventListener("load",()=>{e.focus(),e.print()}),i.addEventListener("error",v),e.addEventListener("afterprint",()=>{setTimeout(v,0)}),i.src=n}}(n,t),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:t.width,__test:t.__test}),r.cancel=!0};var e=this._disablePointerEvents();n&&n.hide();var i=(0,tl.xD)(this._renderer.root.element,t,np(t.format)).fail(md.k.error).always(()=>{this._renderer.root.attr({"pointer-events":e})});return n&&n.show(),i}},customize(n){var t=n.prototype;n.addChange({code:"EXPORT",handler(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),t._optionChangesMap.onExporting="EXPORT",t._optionChangesMap.onExported="EXPORT",t._optionChangesMap.onFileSaving="EXPORT"},fontFields:["export.font"]},zc=Math.round,Ig={horizontal:0,vertical:0},ip={center:.5,right:1,bottom:1,left:0,top:0};function Gd(n){this._options=n}function Wc(n,t){this._renderElement=n,this._cacheBBox=t}Gd.prototype={constructor:Gd,position:function(n){var t=n.of.getLayoutOptions(),e=this.getLayoutOptions(),i=n.at,r=n.my,v=n.offset||Ig,D=-ip[r.horizontal]*e.width+t.x+ip[i.horizontal]*t.width+parseInt(v.horizontal),A=-ip[r.vertical]*e.height+t.y+ip[i.vertical]*t.height+parseInt(v.vertical);this.shift(zc(D),zc(A))},getLayoutOptions:E.ZT};var rp=Wc.prototype=(0,Ee.d9)(Gd.prototype);rp.constructor=Wc,rp.getLayoutOptions=function(){return this._cacheBBox||this._renderElement.getBBox()},rp.shift=function(n,t){var e=this.getLayoutOptions();this._renderElement.move(zc(n-e.x),zc(t-e.y))};var Pl=Number,kl=ni(["left","center","right"]),Uc=ni(["top","bottom"]);function op(n){return!!(n&&String(n).length>0)}function ap(n,t,e,i,r){n.attr({text:t}).setMaxSize(e,r,i).textChanged&&n.setTitle(t)}function Ag(n){return n>=0?Pl(n):10}var Zc=function(n){this._params=n,this._group=n.renderer.g().attr({class:n.cssClass}).linkOn(n.root||n.renderer.root,"title"),this._hasText=!1};(0,y.l)(Zc.prototype,Gd.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(n){this._options=n,this._options.horizontalAlignment=kl(n.horizontalAlignment,"center"),this._options.verticalAlignment=Uc(n.verticalAlignment,"top"),this._options.margin=function b_(n){return n>=0?{left:Pl(n),top:Pl(n),right:Pl(n),bottom:Pl(n)}:{left:Ag((n=n||{}).left),top:Ag(n.top),right:Ag(n.right),bottom:Ag(n.bottom)}}(n.margin)},_updateStructure:function(){var n=this._params.renderer,t=this._group,e=this._options,i=e.horizontalAlignment;this._titleElement||(this._titleElement=n.text().append(t),this._subtitleElement=n.text(),this._clipRect=n.clipRect(),t.attr({"clip-path":this._clipRect.id})),this._titleElement.attr({align:i,class:e.cssClass}),this._subtitleElement.attr({align:i,class:e.subtitle.cssClass}),t.linkAppend(),op(e.subtitle.text)?this._subtitleElement.append(t):this._subtitleElement.remove()},_updateTexts:function(){var r,n=this._options,t=n.subtitle,e=this._titleElement,i=this._subtitleElement;e.attr({text:"A",y:0}).css(di(n.font)),r=e.getBBox(),this._baseLineCorrection=r.height+r.y,e.attr({text:n.text}),r=e.getBBox(),e.attr({y:-r.y}),op(t.text)&&i.attr({text:t.text,y:0}).css(di(t.font))},_shiftSubtitle(){var n=this._titleElement.getBBox(),t=this._subtitleElement,e=this._options.subtitle.offset;t.move(0,n.y+n.height-t.getBBox().y-e)},_updateBoundingRectAlignment:function(){var n=this._boundingRect,t=this._options;n.verticalAlignment=t.verticalAlignment,n.horizontalAlignment=t.horizontalAlignment,n.cutLayoutSide=t.verticalAlignment,n.cutSide="vertical",n.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment}},hasText:function(){return this._hasText},update:function(n,t){var e=(0,y.l)(!0,{},n,function L(n){var t=(0,w.HD)(n)?{text:n}:n||{};return t.subtitle=(0,w.HD)(t.subtitle)?{text:t.subtitle}:t.subtitle||{},t}(t)),i=op(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(n,t){return this._hasText&&(this._group.linkAppend(),this._correctTitleLength(n),this._group.getBBox().height>t&&this.freeSpace()),this},_correctTitleLength:function(n){var t=this._options,e=t.margin,i=n-e.left-e.right,r=t.placeholderSize;ap(this._titleElement,t.text,i,t,r),this._subtitleElement&&(Pl(r)>0&&(r-=this._titleElement.getBBox().height),ap(this._subtitleElement,t.subtitle.text,i,t.subtitle,r),this._shiftSubtitle()),this._updateBoundingRect();var{x:v,y:D,height:A}=this.getCorrectedLayoutOptions();this._clipRect.attr({x:v,y:D,width:n,height:A})},getLayoutOptions:function(){return this._boundingRect||null},shift:function(n,t){var e=this.getLayoutOptions();return this._group.move(n-e.x,t-e.y),this},_updateBoundingRect:function(){var n=this._options,t=n.margin,e=this._boundingRect,i=this._hasText?this._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0};i.isEmpty||(i.height+=t.top+t.bottom-this._baseLineCorrection,i.width+=t.left+t.right,i.x-=t.left,i.y+=this._baseLineCorrection-t.top),n.placeholderSize>0&&(i.height=n.placeholderSize),e.height=i.height,e.width=i.width,e.x=i.x,e.y=i.y},getCorrectedLayoutOptions(){var n=this.getLayoutOptions(),t=this._baseLineCorrection;return(0,y.l)({},n,{y:n.y-t,height:n.height+t})},layoutOptions:function(){return this._hasText?{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}:null},measure:function(n){return this.draw(n[0],n[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(n,t){!function Uy(n,t){return n[2]-n[0]<t.width||n[3]-n[1]<t.height}(n,this._boundingRect)?this.shift(Math.round(n[0]),Math.round(n[1])):this.shift(t[0],t[1])},freeSpace:function(){this._params.incidentOccurred("W2103"),this._group.linkRemove(),this._boundingRect.width=this._boundingRect.height=0},getOptions:function(){return this._options},changeLink:function(n){this._group.linkRemove(),this._group.linkOn(n,"title")}});var Oe={name:"title",init:function(){this._title=new Zc({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(n){n.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"]},m=l(6520),je=l(7981),ui=l(4817),Ti=l(9943),ou=["x","y","canvas","offsetX","offsetY","offset"],Ls=Math,Fu=Ls.round,Rl=Ls.max,_m=Ls.min,ys=Ls.sin,$s=Ls.cos,Va=Ls.asin,Pg=Ls.PI,Ll=function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];return t.join("")};function Xa(n,t,e){return"a ".concat(n," ").concat(n," 0 0 1 ").concat(t*n," ").concat(e*n)}function Kc(n,t,e){return"A ".concat(n," ").concat(n," 0 0 1 ").concat(t," ").concat(e)}function Dw(n,t,e,i,r){return(n-i)*Fu($s(e))+(t-r)*Fu(ys(e))+i}function Tw(n,t,e,i,r){return-(n-i)*Fu(ys(e))+(t-r)*Fu($s(e))+r}function Iw(n,t){return t%90==0&&t%180!=0?{width:n.height,height:n.width}:n}function vm(n,t,e,i,r){var{width:v,height:D}=n,A=v/2,z=D/2,Q=Math.ceil(t+A),ue=Math.floor(t-A),we=Math.floor(e-z),Le=Math.ceil(e+z);return i<ue&&r<we||i>=ue&&i<=Q&&r<we?270:i>Q&&r>Le||i>=ue&&i<=Q&&r>Le?90:i<ue&&r>Le||i<ue&&r>=we&&r<=Le?180:0}function w_(n,t,e,i,r,v,D){var pi,{width:A,height:z}=n,{arrowWidth:Q,cornerRadius:ue=0}=v,we=Q/2,Le=A/2,Ue=z/2,ut=Math.ceil(t+Le),It=Math.floor(t-Le),Gt=Math.floor(e-Ue),ln=Math.ceil(e+Ue),En=[It,Gt],on=[ut,Gt],Nt=[ut,ln],Jt=[It,ln],un=i<=It?It:ut<=i?ut:i,Mn=r<=Gt?Gt:ln<=r?ln:r,Kn=_m(Mn+we,ln),Xn=Rl(Mn-we,Gt),si=Rl(un-we,It);if(ue=Math.min(A/2,z/2,ue),En[1]+=ue,on[0]-=ue,Nt[1]-=ue,Jt[0]+=ue,!D||It<=i&&i<=ut&&Gt<=r&&r<=ln)pi=Ll(En,Xa(ue,1,-1),"L",on,Xa(ue,1,1),"L",Nt,Xa(ue,-1,1),"L",Jt,Xa(ue,-1,-1));else if(i>ut&&r<Gt){var yi=Q/ue||0,Ui=Pg/4+yi/2,Bi=Pg/4-yi/2,oi=on[0]+$s(Bi)*ue,Fi=on[1]+(1-ys(Bi))*ue,Zi=Ll("L",on,Xa(ue,$s(Ui),1-ys(Ui)),"L",[i,r,oi,Fi],Kc(ue,on[0]+ue,on[1]+ue));Math.abs(Ui)>Pg/2&&(Zi=Ll("L",[si,Gt,i,r,ut,Kn])),pi=Ll(En,Xa(ue,1,-1),Zi,"L",Nt,Xa(ue,-1,1),"L",Jt,Xa(ue,-1,-1))}else if(i>ut&&r>=Gt&&r<=ln){var nr;if(Xn>=on[1]+ue&&Kn<=Nt[1])nr=Ll(Xa(ue,1,1),"L",[ut,Xn,i,r,ut,Kn],"L",Nt,Xa(ue,-1,1));else if(Xn<on[1]+ue&&Kn>=on[1]+ue&&Kn<=Nt[1]){var gr=(on[1]+ue-Xn)/ue,Ur=on[0]+$s(gr)*ue,Ar=on[1]+(1-ys(gr))*ue;nr=Ll(Xa(ue,$s(gr),1-ys(gr)),"L",[Ur,Ar,i,r,ut,Kn],"L",Nt,Xa(ue,-1,1))}else if(Xn<on[1]+ue&&Kn<on[1]+ue){var io=(on[1]+ue-Xn)/ue,Hr=on[0]+$s(io)*ue,xo=on[1]+(1-ys(io))*ue,Fo=Math.sin((on[1]+ue-Kn)/ue),yo=on[0]+ue*$s(Fo),Do=on[1]+ue*(1-ys(Fo));nr=Ll(Xa(ue,$s(io),1-ys(io)),"L",[Hr,xo,i,r,yo,Do],Kc(ue,on[0]+ue,on[1]+ue),"L",Nt,Xa(ue,-1,1))}else if(Xn<=on[1]+ue&&Kn>=Nt[1]){var la=Va((on[1]+ue-Xn)/ue),Wa=on[0]+ue*$s(la),xa=on[1]+ue*(1-ys(la)),Ua=Va((Kn-Nt[1])/ue),_l=Nt[0]+ue*($s(Ua)-1),Ra=Nt[1]+ue*ys(Ua);nr=Ll(Xa(ue,$s(la),1-ys(la)),"L",[Wa,xa,i,r,_l,Ra],Kc(ue,Nt[0]-ue,Nt[1]+ue))}else if(Xn>on[1]+ue&&Xn<=Nt[1]&&Kn>Nt[1]){var xu=Va((Kn-Nt[1])/ue),Qu=Nt[0]+ue*($s(xu)-1),Hy=Nt[1]+ue*ys(xu);nr=Ll(Xa(ue,1,1),"L",[ut,Xn,i,r,Qu,Hy],Kc(ue,Nt[0]-ue,Nt[1]+ue))}else if(Xn>on[1]+ue&&Kn>Nt[1]){var zy=Va((Kn-Nt[1])/ue),d1=Nt[0]+ue*($s(zy)-1),Ow=Nt[1]+ue*ys(zy),c1=Va((Xn-Nt[1])/ue),Ffe=Nt[0]+ue*($s(c1)-1),Vfe=Nt[1]+ue*ys(c1);nr=Ll(Xa(ue,1,1),"L",Nt,Xa(ue,$s(c1)-1,ys(c1)),"L",[Ffe,Vfe,i,r,d1,Ow],Kc(ue,Nt[0]-ue,Nt[1]+ue))}pi=Ll(En,Xa(ue,1,-1),"L",on,nr,"L",Jt,Xa(ue,-1,-1))}return Ll("M",pi,"Z")}class Zy{constructor(t,e,i,r){var v=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],D=arguments.length>5&&void 0!==arguments[5]?arguments[5]:(z,Q)=>Q.getBBox(),A=arguments.length>6&&void 0!==arguments[6]?arguments[6]:(z,Q,ue,we)=>Q.move(ue,we);this.widget=e,this.options=t,this.root=i,this.contentTemplate=r,this.bonded=v,this.measureContent=D,this.moveContentGroup=A}draw(t){var{x:e,y:i,canvas:r={},offsetX:v,offsetY:D,offset:A=0}=t,z=(0,Ti.Z)(t,ou),Q=this.options,{x:ue,y:we}=Q,Le=r.left,Ue=r.width-r.right,ut=r.width-r.right-r.left,It=r.top,Gt=r.height-r.bottom,ln=r.height-r.bottom-r.top;if((!(0,w.$K)(e)||!(0,w.$K)(i))&&(!(0,w.$K)(ue)||!(0,w.$K)(we))||(0,w.$K)(e)&&(e<Le||Ue<e||i<It||Gt<i))return!1;this._root||this._draw();var En=(0,y.l)({x:"-50%",y:"-50%",width:"200%",height:"200%"},Q.shadow),on=Q.width>0?Q.width:null,Nt=Q.height>0?Q.height:null,Jt=()=>{var un,Mn=this._contentBBox=this.measureContent(this.widget,this._contentGroup),Kn=this._size={width:Rl(on,Mn.width)+2*Q.paddingLeftRight,height:Rl(Nt,Mn.height)+2*Q.paddingTopBottom,offset:A},Xn=En.offsetX,si=En.offsetY,pi=2*En.blur+1,yi=Rl(pi-Xn,0),Ui=Rl(pi+Xn,0),Bi=Rl(pi-si,0),oi=Rl(pi+si,0);if(this.margins={lm:yi,rm:Ui,tm:Bi,bm:oi},(0,w.$K)(ue)?(ue+=v||0,(0,w.$K)(e)||(e=ue)):ue=(0,w.$K)(v)?e+v:ut<Kn.width?Fu(Le+ut/2):_m(Rl(e,Math.ceil(Le+Kn.width/2+yi)),Math.floor(Ue-Kn.width/2-Ui)),(0,w.$K)(we))we+=D||0,(0,w.$K)(i)||(i=we+Kn.height/2);else if((0,w.$K)(D))we=i+D;else{var Fi=i-Q.arrowLength-Kn.height/2-A,Zi=i+Q.arrowLength+Kn.height/2+A;ln<Kn.height+Q.arrowLength?we=Fu(It+Kn.height/2):Fi-Kn.height/2-Bi<It?Zi+Kn.height/2+oi<Gt?(we=Zi,i+=A):we=Fu(It+Kn.height/2):(we=Fi,i-=A)}this.anchorX=e,this.anchorY=i,this.move(ue,we),null===(un=this._root)||void 0===un||un.append(this.root)};return this.contentTemplate.render?(this.contentTemplate.render({model:Q,container:this._contentGroup.element,onRendered:Jt}),!0):this.contentTemplate((0,ui.Z)({group:this._contentGroup,onRender:Jt},z))}_draw(){var t=this.widget._renderer,e=this.options,i=(0,y.l)({x:"-50%",y:"-50%",width:"200%",height:"200%"},e.shadow),r=this._shadow=t.shadowFilter().attr(i),v={opacity:e.opacity,"stroke-width":0,fill:e.color},D=e.border||{};D.visible&&(0,y.l)(v,{"stroke-width":D.width,stroke:D.color,"stroke-opacity":D.opacity,dashStyle:D.dashStyle});var A=this._root=t.g().append(this.root);e.type&&A.attr({class:"dxc-".concat(e.type,"-annotation")});var z=t.g().attr({filter:r.id}).append(A);this._cloud=t.path([],"area").attr(v).sharp().append(z),this._contentGroup=t.g().append(A)}getBBox(){var t=this._size||{},e=this.margins||{},i=vm(t,this.x,this.y,this.anchorX,this.anchorY);return{x:Math.floor(this.x-t.width/2-e.lm),y:Math.floor(this.y-t.height/2-e.tm-(270===i?this.options.arrowLength:0)),width:t.width+e.lm+e.rm,height:t.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(t){this._cloud&&this._cloud.attr(t)}moveRoot(t,e){this._root&&this._root.move(t,e)}move(t,e){t=Fu(t),e=Fu(e),this.x=t,this.y=e;var i=vm(this._size,t,e,this.anchorX,this.anchorY),r=i*Pg/180;this._cloud.attr({d:w_(Iw(this._size,i),t,e,Dw(this.anchorX,this.anchorY,r,t,e),Tw(this.anchorX,this.anchorY,r,t,e),this.options,this.bonded)}).rotate(i,t,e),this.moveContentGroup(this.widget,this._contentGroup,t-this._contentBBox.x-this._contentBBox.width/2,e-this._contentBBox.y-this._contentBBox.height/2)}hitTest(t,e){var{width:i,height:r}=this._size||{};return Math.abs(t-this.x)<=i/2&&Math.abs(e-this.y)<=r/2}}var Mw=Fa.Z.format,jd=Math.ceil,Bl=Math.max,ym=Math.min,kg=(0,fi.Jj)();function Ie(n){n.css({left:"-9999px"}).detach()}function ve(){return(0,u.Z)("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"})}var Me=function(n){this._eventTrigger=n.eventTrigger,this._widgetRoot=n.widgetRoot,this._widget=n.widget,this._textHtmlContainers=[],this._wrapper=(0,u.Z)("<div>").css({position:"absolute",overflow:"hidden",pointerEvents:"none"}).addClass(n.cssClass);var t=this._renderer=new Ya({pathModified:n.pathModified,container:this._wrapper[0]});t.root.attr({"pointer-events":"none"}),this._text=t.text(void 0,0,0),this._textGroupHtml=(0,u.Z)("<div>").css({position:"absolute",padding:0,margin:0,border:"0px solid transparent"}).appendTo(this._wrapper),this._textHtml=ve().appendTo(this._textGroupHtml)};Me.prototype={constructor:Me,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var n=this._options,t=(0,u.Z)(this._widgetRoot).closest(n.container);return 0===t.length&&(t=(0,u.Z)(n.container)),(t.length?t:(0,u.Z)("body")).get(0)},setTemplate(n){this._template=n?this._widget._getTemplate(n):null},setOptions:function(n){var t=this;t._options=n=n||{},t._textFontStyles=di(n.font),t._textFontStyles.color=t._textFontStyles.fill,t._wrapper.css({zIndex:n.zIndex}),t._customizeTooltip=n.customizeTooltip;var e=t._textGroupHtml;this.plaque&&this.plaque.clear(),this.setTemplate(n.contentTemplate);var i=n.interactive?"auto":"none";return n.interactive&&this._renderer.root.css({"-ms-user-select":"auto","-moz-user-select":"auto","-webkit-user-select":"auto"}),this.plaque=new Zy({opacity:t._options.opacity,color:t._options.color,border:t._options.border,paddingLeftRight:t._options.paddingLeftRight,paddingTopBottom:t._options.paddingTopBottom,arrowLength:t._options.arrowLength,arrowWidth:20,shadow:t._options.shadow,cornerRadius:t._options.cornerRadius},t,t._renderer.root,r=>{var{group:v,onRender:D,eventData:A,isMoving:z,templateCallback:Q=(()=>{})}=r,ue=t._state;if(!z){var we=t._template,Le=we&&!ue.formatObject.skipTemplate;if(ue.html||Le){if(e.css({color:ue.textColor,width:3e3,pointerEvents:i}),Le){var Ue=t._textHtmlContainers,ut=ve().appendTo(t._textGroupHtml);return Ue.push(ut),void we.render({model:ue.formatObject,container:ut,onRendered:()=>{if(function Se(n){n.forEach(t=>t.remove())}(Ue.splice(0,Ue.length-1)),t._textHtml=(0,m.dL)(t._textHtml,ut),ue.html=t._textHtml.html(),0===(0,s.dz)(t._textHtml)&&0===(0,s.Cr)(t._textHtml))return this.plaque.clear(),void Q(!1);D(),t._riseEvents(A),t._moveWrapper(),t.plaque.customizeCloud({fill:ue.color,stroke:ue.borderColor,"pointer-events":i}),Q(!0),t._textHtmlContainers=[]}})}t._text.attr({text:""}),t._textHtml.html(ue.html)}else t._text.css({fill:ue.textColor}).attr({text:ue.text,class:n.cssClass,"pointer-events":i}).append(v.attr({align:n.textAlignment}));t._riseEvents(A),t.plaque.customizeCloud({fill:ue.color,stroke:ue.borderColor,"pointer-events":i})}return D(),t._moveWrapper(),!0},!0,(r,v)=>{if(r._state.html){var A=kg.getComputedStyle(t._textHtml.get(0));return{x:0,y:0,width:jd(parseFloat(A.width)),height:jd(parseFloat(A.height))}}return v.getBBox()},(r,v,D,A)=>{r._state.html?t._textGroupHtml.css({left:D,top:A}):v.move(D,A)}),t},_riseEvents:function(n){this._eventData&&this._eventTrigger("tooltipHidden",this._eventData),this._eventData=n,this._eventTrigger("tooltipShown",this._eventData)},setRendererOptions:function(n){return this._renderer.setOptions(n),this._textGroupHtml.css({direction:n.rtl?"rtl":"ltr"}),this},update:function(n){this.setOptions(n),Ie(this._wrapper);var t={};for(var e in this._textFontStyles)t[(0,je._A)(e)]=this._textFontStyles[e];return this._textGroupHtml.css(t),this._text.css(this._textFontStyles),this._eventData=null,this},_prepare:function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._customizeTooltip,i=this._options,r={};return(0,w.mf)(e)&&(r=e.call(n,n),"text"in(r=(0,w.PO)(r)?r:{})&&(t.text=(0,w.$K)(r.text)?String(r.text):""),"html"in r&&(t.html=(0,w.$K)(r.html)?String(r.html):"")),!("text"in t)&&!("html"in t)&&(t.text=n.valueText||n.description||""),t.color=r.color||i.color,t.borderColor=r.borderColor||(i.border||{}).color,t.textColor=r.fontColor||(this._textFontStyles||{}).color,!!t.text||!!t.html||!!this._template},show:function(n,t,e,i,r){if(this._options.forceEvents)return e.x=t.x,e.y=t.y-t.offset,this._riseEvents(e),!0;var v={formatObject:n,eventData:e,templateCallback:r};if(!this._prepare(n,v,i))return!1;this._state=v,this._wrapper.appendTo(this._getContainer()),this._clear();var D=(0,y.l)({},this._options,{canvas:this._getCanvas()},v,{x:t.x,y:t.y,offset:t.offset});return this.plaque.clear().draw(D)},isCursorOnTooltip:function(n,t){if(this._options.interactive){var e=this.plaque.getBBox();return n>e.x&&n<e.x+e.width&&t>e.y&&t<e.y+e.height}return!1},hide:function(n){Ie(this._wrapper),this._eventData&&(this._eventTrigger("tooltipHidden",this._options.forceEvents?(0,y.l)({isPointerOut:n},this._eventData):this._eventData),this._clear(),this._eventData=null)},_clear(){this._textHtml.empty()},move:function(n,t,e){this.plaque.draw({x:n,y:t,offset:e,canvas:this._getCanvas(),isMoving:!0})},_moveWrapper:function(){var n=this.plaque.getBBox();this._renderer.resize(n.width,n.height);var t=this._wrapper.css({left:0,top:0}).offset(),e=n.x,i=n.y;this._wrapper.css({left:e-t.left,top:i-t.top}),this.plaque.moveRoot(-e,-i),this._state.html&&(this._textHtml.css({left:-e,top:-i}),this._textGroupHtml.css({width:jd((0,s.dz)(this._textHtml))}))},formatValue:function(n,t){var e=t?function Ce(n,t){var e=n;switch(t){case"argument":e={format:n.argumentFormat};break;case"percent":e={format:{type:"percent",precision:n.format&&n.format.percentPrecision}}}return e}(this._options,t):this._options;return Mw(n,e.format)},getOptions(){return this._options},getLocation:function(){return Sn(this._options.location)},isEnabled:function(){return!!this._options.enabled||!!this._options.forceEvents},isShared:function(){return!!this._options.shared},_getCanvas:function(){var n=this._getContainer(),t=n.getBoundingClientRect(),e=b.Z.getDocumentElement(),i=b.Z.getDocument(),r=kg.pageXOffset||e.scrollLeft||0,v=kg.pageYOffset||e.scrollTop||0,D={left:r,top:v,width:Bl(e.clientWidth,i.body.clientWidth)+r,height:Bl(i.body.scrollHeight,e.scrollHeight,i.body.offsetHeight,e.offsetHeight,i.body.clientHeight,e.clientHeight),right:0,bottom:0};return n!==b.Z.getBody()&&(r=Bl(D.left,D.left+t.left),v=Bl(D.top,D.top+t.top),D.width=ym(t.width,D.width)+r+D.left,D.height=ym(t.height,D.height)+v+D.top,D.left=r,D.top=v),D}};var Ve={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new Me({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(n){var t=n.prototype;t._eventsMap.onTooltipShown={name:"tooltipShown"},t._eventsMap.onTooltipHidden={name:"tooltipHidden"},n.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),n.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})},fontFields:["tooltip.font"]},Cn="loadingIndicatorReady",hi=function(n){var t=n.renderer;this._group=t.g().attr({class:"dx-loading-indicator"}).linkOn(t.root,{name:"loading-indicator",after:"peripheral"}),this._rect=t.rect().attr({opacity:0}).append(this._group),this._text=t.text().attr({align:"center"}).append(this._group),this._createStates(n.eventTrigger,this._group,t.root,n.notify)};hi.prototype={constructor:hi,_createStates:function(n,t,e,i){this._states=[{opacity:0,start:function(){i(!1)},complete:function(){t.linkRemove(),e.css({"pointer-events":""}),n(Cn)}},{opacity:.85,start:function(){t.linkAppend(),e.css({"pointer-events":"none"}),i(!0)},complete:function(){n(Cn)}}],this._state=0},setSize:function(n){var t=n.width,e=n.height;this._rect.attr({width:t,height:e}),this._text.attr({x:t/2,y:e/2})},setOptions:function(n){this._rect.attr({fill:n.backgroundColor}),this._text.css(di(n.font)).attr({text:n.text,class:n.cssClass}),this[n.show?"show":"hide"]()},dispose:function(){this._group.linkRemove().linkOff(),this._group=this._rect=this._text=this._states=null},_transit:function(n){var t;this._state!==n&&(this._state=n,this._isHiding=!1,t=this._states[n],this._rect.stopAnimation().animate({opacity:t.opacity},{complete:t.complete,easing:"linear",duration:400,unstoppable:!0}),this._noHiding=!0,t.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 xi={name:"loading_indicator",init:function(){var n=this;n._loadingIndicator=new hi({eventTrigger:n._eventTrigger,renderer:n._renderer,notify:function(t){n._skipLoadingIndicatorOptions=!0,n.option("loadingIndicator",{show:t}),n._skipLoadingIndicatorOptions=!1,t&&n._stopCurrentHandling()}}),n._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(n){n&&(this._options.silent("loadingIndicator")||{}).enabled&&this._loadingIndicator.show()},_setContentSize(){this._loadingIndicator.setSize(this._canvas)},endUpdate(){this._initialized&&this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},customize:function(n){var t=n.prototype;if(t._dataSourceChangedHandler){var e=t._dataSourceChangedHandler;t._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),e.apply(this,arguments)}}n.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),t._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var i=t._drawn;t._drawn=function(){i.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},fontFields:["loadingIndicator.font"]},Wi=Number,qi=y.l,ur=Fa.Z.format,br=Cl.inherit({_rootClassPrefix:"dxg",_themeSection:"gauge",_createThemeManager:function(){return new um.ThemeManager(this._getThemeManagerOptions())},_initCore:function(){var n=this._renderer.root;this._valueChangingLocker=0,this._translator=this._factory.createTranslator(),this._tracker=this._factory.createTracker({renderer:this._renderer,container:n}),this._setTrackerCallbacks()},_beginValueChanging:function(){this._resetIsReady(),this._onBeginUpdate(),++this._valueChangingLocker},_endValueChanging:function(){0==--this._valueChangingLocker&&this._drawn()},_setTrackerCallbacks:function(){var n=this._renderer,t=this._tooltip;this._tracker.setCallbacks({"tooltip-show":function(e,i,r){var v=e.getTooltipParameters(),D=n.getRootOffset(),A=qi({value:v.value,valueText:t.formatValue(v.value),color:v.color},i);return t.show(A,{x:v.x+D.left,y:v.y+D.top,offset:v.offset},{target:i},void 0,r)},"tooltip-hide":function(){return t.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 n=this;n._resizing=n._noAnimation=2===n._changes.count(),n.callBase.apply(n,arguments)},_applySize:function(n){this._innerRect={left:n[0],top:n[1],right:n[2],bottom:n[3]};var t=this._layout._cache;return this._cleanCore(),this._renderCore(),this._layout._cache=this._layout._cache||t,[n[0],this._innerRect.top,n[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 n=this.option("animation");this._animationSettings=null,(void 0===n||n)&&(n=qi({enabled:!0,duration:1e3,easing:"easeOutCubic"},n)).enabled&&n.duration>0&&(this._animationSettings={duration:Wi(n.duration),easing:n.easing}),this._containerBackgroundColor=this.option("containerBackgroundColor")||this._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var n=this._translator.getDomain();this._defaultFormatOptions=function(n,t,e){var v,i=$e(xn(n),xn(t)),r=-xn(Pe(t-n)/e);return Rt(i)||Rt(r)?null:(Pe(i)<=4?(v="fixedPoint",r<0&&(r=0),r>4&&(r=4)):(v="exponential",(r+=i-1)>3&&(r=3)),{type:v,precision:r})}(n[0],n[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new oo},createTracker:function(n){return new yg(n)}}}),eo=function(n,t,e){Object.is(n,-0)&&(n=0);var r,i=ur(n,(t=t||{}).format);return"function"==typeof t.customizeText?(r=qi({value:n,valueText:i},e),String(t.customizeText.call(r,r))):i},ao=function(n,t){var e=eo(n.getDomainStart(),t),i=eo(n.getDomainEnd(),t);return e.length>=i.length?e:i};function Io(n,t){return n&&t&&n.length===t.length&&function es(n,t){var e,i=n.length;for(e=0;e<i;++e)if(!(n[e]!=n[e]&&t[e]!=t[e]||n[e]===t[e]))return!1;return!0}(n,t)}br.addPlugin(Bu),br.addPlugin(Oe),br.addPlugin(Ve),br.addPlugin(xi);var su=br.prototype._setTooltipOptions;br.prototype._setTooltipOptions=function(){su.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())};var $d=Fa.Z.format,{abs:Fl,floor:Yd}=Math,E_="exponential",Cm=["fixedPoint","thousands","millions","billions","trillions",E_],sp=["millisecond","second","minute","hour","day","month","year"];function Rg(n,t,e,i){var r,v,D,z,Q,A=sp.length;"week"===i?i="day":"quarter"===i?i="month":"shorttime"===i?i="hour":"longtime"===i&&(i="second");var ue=sp.indexOf(i);if(e){if(v=te.Z.getDatesDifferences(t,e),r=te.Z.getDatesDifferences(t,n),v[i])for(z=A-1;z>=ue;z--)if(D=sp[z],z===ue)p1(v,ue+(v.millisecond?2:1));else if(v[D]){S_(v,z);break}}else for(r=te.Z.getDatesDifferences(n,t),z=A-1;z>=ue;z--)if(r[D=sp[z]]){if(z-ue>1){for(Q=ue+1;Q>=0;Q--)S_(r,Q);break}if(h1(t,D)){for(Q=z-1;Q>0;Q--)S_(r,Q);break}}return e?v:r}function h1(n,t){var r,e=[n.getMilliseconds(),n.getSeconds(),n.getMinutes(),n.getHours(),n.getDate(),n.getMonth()],i=sp.indexOf(t);for(r=0;r<i;r++)if(4===r&&1!==e[r]||4!==r&&0!==e[r])return!1;return!0}function S_(n,t){var e=sp[t];n[e]&&(n[e]=!1,n.count--)}function p1(n,t){var e=sp[t];!1===n[e]&&(n[e]=!0,n.count++)}function g1(n,t){var e,i,r,v=0;for(r=Fl(t-n[0]),e=1;e<n.length;e++)(i=Fl(t-n[e]))<r&&(r=i,v=e);return v}function Ky(n){return n.toString().split(".")}function Gc(n){var t;return(0,w.mf)(n)&&(t=n,n=null),{type:n,formatter:t}}function xm(n,t){var e=Fl(n).toString();return(0,w.Cp)(n)?Math.max(Fl((0,ae.dG)(n)-(0,ae.dG)(t)),Fl((0,ae.p8)(n)-(0,ae.p8)(t))):Fl(function Aw(n){return n.length-parseInt(n).toString().length}(e.split(".")[1])-(0,ae.dG)(t)+1)}function bm(n,t){var e=t.tickInterval,i=Fl(n).toString(),r=t.labelOptions.format,v=t.ticks,D="logarithmic"===t.type;if(1===v.length&&0===v.indexOf(n)&&!(0,w.$K)(e)&&(e=Fl(n)>=1?1:(0,ae.zB)(1-Fl(n),n)),Object.is(n,-0)&&(n=0),!(0,w.$K)(r)&&"discrete"!==t.type&&n&&(10===t.logarithmBase||!D))if("datetime"!==t.dataType&&(0,w.$K)(e)){if(v.length&&-1===v.indexOf(n)){var A=g1(v,n);e=(0,ae.zB)(Fl(n-v[A]),n)}if(D)return function f1(n){var e,t=qe(Fl(n));if(t>0)e=Cm[Yd(t/3)]||E_;else{if(!(t<-4))return $d((0,ae.zB)(n));e=E_}return $d(n,{type:e,precision:0})}(n);var z=Ky(e);z<2&&(z=Ky(n)),r=z.length>1&&!(0,w.Cp)(e)?{type:Cm[0],precision:z[1].length}:(0,w.Cp)(e)&&(-1!==i.indexOf(".")||(0,w.Cp)(n))?{type:E_,precision:xm(n,e)}:function m1(n,t){var i,r,e=Yd(qe(t)),v=0,D=i=Yd(qe(Fl(n)));i-e>=2&&(D=e);var A=Yd(D/3),z=3*A;if(A<5?(e-z==2&&i>=3&&(z=3*++A),r=Cm[A]):r=Cm[Cm.length-1],z>0){var Q=Ky(t/Math.pow(10,z));Q[1]&&(v=Q[1].length)}return{precision:v,type:r}}(n,e)}else"datetime"===t.dataType&&(r=function Lg(n,t){var D,A,{showTransition:e,ticks:i,tickInterval:r}=t,v=te.Z.getDateFormatByTickInterval(r);if(e&&i.length){var z=i.map(Number).indexOf(+n);if(1===i.length&&0===z)v=Fa.Z.getDateFormatByTicks(i);else{-1===z?D=g1(i,n):(D=0===z?i.length-1:z-1,A=0===z?1:-1);var Q=Rg(i[D],n,i[A],v);v=Fa.Z.getDateFormatByDifferences(Q,v)}}return Gc(v)}(n,t));return $d(n,r)}function kw(n){var{startValue:t,endValue:e,tickInterval:i,argumentFormat:r,axisOptions:{dataType:v,type:D,logarithmBase:A}}=n;if("discrete"===D)return"";if("datetime"===v)return function v1(n,t,e){var i=Rg(n,t),r=te.Z.getDateFormatByTickInterval(e),D=Gc(Fa.Z.getDateFormatByDifferences(i,r)),A=[];if(e in i){var z=function _1(n,t){var e=!1;for(var i in n)e?n[i]=!1:i===t?e=!0:n[i]=!0;return Gc(Fa.Z.getDateFormatByDifferences(n))}(Rg(n,t),e),Q=$d(n,z);Q&&A.push(Q)}else{var ue=function Pw(n){var t=!1;for(var e in n)!0===n[e]||"hour"===e||t?(n[e]=!1,t=!0):!1===n[e]&&(n[e]=!0);return Gc(Fa.Z.getDateFormatByDifferences(n))}(Rg(n,t)),we=$d(n,ue);we&&A.push(we),A.push("".concat($d(n,D)," - ").concat($d(t,D)))}return A.join(", ")}(t,e,function y1(n){if((0,w.Kn)(n)){var t=Object.keys(n);if(1===t.reduce((r,v)=>n[v]+r,0)){var i=t.filter(r=>1===n[r])[0];return i.slice(0,i.length-1)}}return n}(i));var z={ticks:[],type:D,dataType:v,tickInterval:i,logarithmBase:A,labelOptions:{format:r}};return"".concat(bm(t,z)," - ").concat(bm(e,z))}const Eo_validateOverlappingMode=function(n){return"ignore"===n||"none"===n?n:"hide"},Eo_getTicksCountInRange=function(n,t,e){var i=1;if(n.length>1)for(;i<n.length&&!(Math.abs(n[i].coords[t]-n[0].coords[t])>=e);i++);return i},Eo_areLabelsOverlap=function(n,t,e,i){var D=n.x,A=t.x,z=n.width,Q=t.width;return"left"===i?(D+=z/2,A+=Q/2):"right"===i&&(D-=z/2,A-=Q/2),(n.x>t.x?A+Q+e>D:D+z+e>A)&&(n.y>t.y?t.y+t.height>n.y:n.y+n.height>t.y)};var Cs=l(8492),C1={string:function(n){return(0,w.$K)(n)?""+n:n},numeric:function(n){if(!(0,w.$K)(n))return n;var t=Number(n);return isNaN(t)&&(t=void 0),t},datetime:function(n){if(!(0,w.$K)(n))return n;var t,e=Number(n);return t=isNaN(e)?Cs.Z.deserializeDate(n):new Date(e),isNaN(Number(t))&&(t=void 0),t}};function O_(n){return"numeric"===n||"datetime"===n||"string"===n?n:""}var lp=function(n){return C1[O_(n)]||E.ZT},Rw=te.Z.convertDateUnitToMilliseconds,jc=te.Z.dateToMilliseconds,up=Math,$c=up.abs,Yc=up.floor,dp=up.ceil,x1=up.pow,cp=[1,2,2.5,5],Xd=[1,2,3,5],Lw={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]},b1=(0,y.l)({},Lw,{day:[1]}),h2={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]},p2=[2,4,5,8,10],qa=n=>n,Gy=(n,t,e)=>i=>xr(i,n,t,e),D_=(n,t,e)=>(i,r)=>(0,ae.zB)(n(t((0,ae.zB)(e(i)/r))*r));function T_(n,t,e,i){return(0,w.$K)(i)?i?n:t:function(r,v,D,A){var z=n(r,v);return r-z==0||!(0,w.$K)(D)||e(r,z,v,D)||A?z:t(r,v)}}function I_(n,t,e,i){var r=e-$c(t-n),v=up.max(dp(i.businessDelta/e),2),D=i.screenDelta/(v*e),A=up.round(D*r),z=xr(D*e/i.axisDivisionFactor,2)+1,ue=up.round((i.isSpacedMargin?2:1)*z*3);return i.businessDelta>i.interval&&A>=ue}function Nw(n){return function(t,e,i,r){return I_(xr(t,n),xr(e,n),i,r)}}function Hw(n,t,e,i){return I_(n.valueOf(),t.valueOf(),jc(e),i)}function zw(n,t){var e=0;return t&&(e=t.reduce((i,r)=>i+(r.to-r.from),0)),$c(n.max-n.min-e)}function M_(n,t,e,i){var r=t/e-(i||0);return n/(r<1?1:r)}function Uw(n,t){return x1(10,Yc(xr(n,10))+(t||0))}function O1(n,t,e,i,r,v,D,A,z,Q){var ue=M_(n,t,r,A),we=1,Le=!1===D;return(!i||!e)&&((ue>=1||!Le&&ue>0)&&(we=Ao(ue,v,Le)),(!e||!i&&e<we)&&(e=we)),!i&&Q&&(Q=Ao(Q,v,Le))>e&&(e=Q),e}function Ao(n,t,e){var i=Uw(n,-1),r=1;return t=t||cp,n>0&&(n/=i,r=t.concat(10*t[0]).map(v=>10*v).reduce((v,D)=>.1===i&&e&&25===D?v:v<n?D:v,0),r=(0,ae.zB)(r*i,i)),r}function jy(n,t,e,i){var r=M_(n,t,i);return e||p2.reduce((v,D)=>{var A=n/D;return A>=r?A:v},0)}function $y(n){return function(t,e){var i=Uw(t);return!n&&i<1&&(i=1),(e=e||Xd).concat(10*e[0]).reduce((r,v)=>r<t?v*i:r,0)}}function T1(n,t){return function(e,i){return!e&&n<=Rw(t,i)&&((e={})[t+"s"]=i),e}}function Kw(n,t){return function(e,i){var r=t*i;return!e&&n<=Rw("year",r)&&2.5!==r&&(e={years:r}),e}}function Gw(n,t,e,i,r,v,D,A,z,Q){if(!i||!e){var ue=wm(M_(n,t,r),v,0,z);(!e||!i&&jc(e)<=jc(ue))&&(e=ue)}return!i&&Q&&(Q=wm(Q,v,0,z),jc(Q)>jc(e)&&(e=Q)),e}function wm(n,t,e,i){var r;for(var v in t=t||function D1(n){return n&&n>2?b1:Lw}(i),t)if(r=t[v].reduce(T1(n,v),r))break;if(!r)for(var D=1;!(r=cp.reduce(Kw(n,D),r));D*=10);return r}function I1(n,t,e,i){return Gw(n,t,e,!0,i,h2)}function A_(n,t){return e=>e&&t($c((0,ae.zB)(n(e[1])-n(e[0]))))||void 0}function Em(n,t,e){return te.Z.addInterval(n,t,e)}function Sm(n,t,e){return Em(n,t,e)}function Xc(n,t,e){return t=t.filter(i=>!i.gapSize),function(i,r,v){var D;return i=n(i,r,v),t.every(A=>(i>=n(A.from,r)&&n(i,r)<A.to&&(D=A.to-A.from-2*(n(A.from,r)-A.from)),!D))||(i=e(n(i,D),r)),i}}function Yy(n,t,e,i){return function(r,v,D,A,z,Q,ue,we,Le){var on,Ue=function M1(n,t){return function(e){var i;return t.every(r=>(e>=r.from&&e<r.to&&(i=r.gapSize),!i))||(e=n(e,i)),e}}(n,A),ut=r.min,It=r.max,Gt={screenDelta:ue,businessDelta:Q,axisDivisionFactor:we,isSpacedMargin:r.isSpacedMargin,interval:v},ln=t(ut,v,Gt),En=[];for(null!=z&&z.length&&(n=Xc(n,z,t)),ln>It&&(ln=t(ut,e(Q/2),Gt))>It&&(ln=t(ut,v,Gt,D=!0)),ln=Ue(ln);ln<It&&ln!==on||Le&&ln<=It;)En.push(ln),on=ln,ln=Ue(n(ln,v));return(D||ln-It==0||!(0,w.$K)(D)&&i(It,ln,v,Gt))&&En.push(ln),En}}function Om(n,t,e,i,r){return function(v,D,A,z,Q,ue,we){var Le=Q/z,Ue=A[A.length-1],ut=A[0],It=we-1;if(null!=ue&&ue.length&&(t=Xc(t,ue,e)),0===(z=n(z,ut,ut,Le)))return[];var Gt=i(e(v,Q,v),z);z=n(z,ut,Gt,Le);for(var ln=[];Gt<ut&&(!It||It>0);)Gt>=v&&ln.push(Gt),It--,Gt=t(Gt,z);var En=A.reduce((Jt,un)=>{if(It=we-1,null===Jt.prevTick)return Jt.prevTick=un,Jt;z=n(z,un,Jt.prevTick,Le);for(var Mn=i(Jt.prevTick,z);Mn<un&&(!It||It>0);)Mn!==Jt.prevTick&&Jt.minors.push(Mn),It--,Mn=t(Mn,z);return Jt.prevTick=un,Jt},{prevTick:null,minors:[]});ln=ln.concat(En.minors);var Nt,on=r(D,Q,v);for(z=n(z,on,on,Le),Gt=i(Ue,z);Gt<D&&Gt!==Nt;)ln.push(Gt),Nt=Gt,Gt=t(Gt,z);return Ue-D!=0&&Gt-D==0&&ln.push(Gt),ln}}function P_(n,t){if(t.length){var e=t.reduce((i,r)=>{var D,v=[];for(D=i[1];D<n.length;D++){var A=n[D];if(A<r.from&&v.push(A),A>=r.to)break}return[i[0].concat(v),D]},[[],0]);return e[0].concat(n.slice(e[1]))}return n}function $w(n,t,e,i,r,v,D,A,z,Q){function ue(we,Le,Ue){return we&&Le/D(we)>=Ue+1&&(n.incidentOccurred("W2003"),we=void 0),we}return function(we,Le,Ue,ut,It,Gt,ln,En){It=It||{};var Jt,on=t(we,En),Nt={tickInterval:r((Jt=It).majors),ticks:Jt.majors||[],minorTickInterval:v(Jt.minors),minorTicks:Jt.minors||[]};return isNaN(on)||(0!==on||It.majors?(Nt=function(Jt,un,Mn,Kn,Xn,si,pi,yi){if(pi.majors)return Jt.breaks=yi,Jt;var Bi,Ui=yi.filter(oi=>oi.gapSize);return Xn=n.skipCalculationLimits?Xn:ue(Xn,Mn,Kn),Xn=e(Mn,Kn,Xn,si,n.axisDivisionFactor,n.numberMultipliers,n.allowDecimals,yi.length,Ui[0]&&Ui[0].gapSize.days,n.minTickInterval),n.skipTickGeneration||(Bi=P_(Bi=A(un,Xn,n.endOnTick,Ui,yi,Mn,Kn,n.axisDivisionFactor,n.generateExtraTick),yi=Q(yi,Bi,Xn)),Jt.breaks=yi,Jt.ticks=Jt.ticks.concat(Bi)),Jt.tickInterval=Xn,Jt}(Nt,we,on,Le,Ue,ut,It,En||[]),!n.skipTickGeneration&&on>0&&(Nt=function(Jt,un,Mn,Kn,Xn,si,pi){if(!n.calculateMinors||pi.minors)return Jt;var yi=D(Jt.tickInterval),Ui=Kn*yi/Mn,Bi=Jt.breaks;return!Xn&&si?Xn=v([yi/(si+1),yi/(si+1)*2]):si=void 0,Xn=ue(Xn,yi,Ui),Xn=i(yi,Ui,Xn,n.minorAxisDivisionFactor),Jt.minorTicks=P_(Jt.minorTicks.concat(z(un.min,un.max,Jt.ticks,Xn,Jt.tickInterval,Bi,si)),Bi),Jt.minorTickInterval=Xn,Jt}(Nt,we,on,Le,Gt,ln,It))):Nt.ticks=[we.min]),Nt}}function A1(n,t,e,i){var[r,v]=t;return(!(0,w.$K)(r)||$c(i(n)-i(r))/e>.25)&&((0,w.$K)(v)&&$c(i(v)-i(r))/e<2?r=v:(0,w.$K)(r)||(r=n)),r}function Yw(n,t,e){return function(i,r,v){var D=n(v),A=.5*D;return i.reduce((z,Q)=>{var ue=r.filter(Ue=>Ue<=Q.from),we=e(A1(Q.from,[].concat(ue[ue.length-1],r[ue.length]),D,t),A);ue=r.filter(Ue=>Ue>=Q.to);var Le=e(A1(Q.to,[].concat(ue[0],r[r.length-ue.length-1]),D,t),-A);return t(Le)-t(we)<D&&!Q.gapSize?z:z.concat(Q.gapSize?[Q]:[{from:we,to:Le,cumulativeWidth:Q.cumulativeWidth}])},[])}}var Xy=(n,t,e)=>(i,r)=>(0,ae.Xx)(i)*(0,ae.zB)(n(t(i)((0,ae.zB)(e(i)/r))*r));var hp=function(n){var t;return t=n.rangeIsEmpty?function Fw(n){return function(t,e,i,r){var v=Yc(e/n.axisDivisionFactor),D=e/(v=v<1?1:v);return{ticks:D>0?Array.apply(null,new Array(v+1)).map((A,z)=>D*z):[],tickInterval:D}}}(n):"discrete"===n.axisType?function Vw(n){return function(t,e,i,r){var v=_r(t.categories,t.min,t.max).categories;return{ticks:v,tickInterval:dp(v.length*n.axisDivisionFactor/e)}}}(n):"logarithmic"===n.axisType?function g2(n){var t=n.logBase,e=((n,t,e)=>i=>Vr(i,n,t,e))(t,n.allowNegatives,n.linearThreshold),i=Gy(t,n.allowNegatives,n.linearThreshold),r=(n=>t=>0===t?0:Dt($c(t),n))(t),v=(n=>t=>Ht(t,n))(t),D=Xy(v,Q=>Q<0?dp:Yc,r),A=Xy(v,Q=>Q<0?Yc:dp,r),z=D_(qa,dp,qa);return $w(n,function Ww(n,t,e){var i=Gy(n,t,e);return function(r,v){var D=0;return v&&(D=v.reduce((A,z)=>A+$c(i(z.to/z.from)),0)),dp($c(i(r.max)-i(r.min))-D)}}(t,n.allowNegatives,n.linearThreshold),function Zw(n){return function(t,e,i,r,v,D,A,z,Q,ue){var we=M_(t,e,v),Le=0,Ue=$y(n);return(!r||!i)&&(we>0&&(Le=Ue(we,D)),(!i||!r&&i<Le)&&(i=Le)),!r&&ue&&(ue=Ue(ue,D))>i&&(i=ue),i}}(n.skipCalculationLimits),jy,A_(i,qa),A_(qa,qa),qa,Yy(function jw(n,t){return(e,i,r)=>t(Em(n(e),i,r))}(i,e),T_(D,A,Nw(t),n.endOnTick),$y(n.skipCalculationLimits),Nw(t)),Om((Q,ue,we,Le)=>Math.max(Math.abs(ue),Math.abs(we))/Le,Em,D,z,A),Yw(qa,i,(Q,ue)=>e(i(Q)+ue)))}(n):"datetime"===n.dataType?function k1(n){function t(i,r){var v=D_(qa,Yc,qa),D=(0,w.HD)(r)?te.Z.getDateIntervalByString(r.toLowerCase()):r,A=jc(r);(D.days%7==0||r.quarters)&&(D=wm(A));var z=ue=>te.Z.correctDateWithUnitBeginning(ue,D,null,n.firstDayOfWeek),Q=ue=>new Date(Yc((ue.getTime()-6e4*ue.getTimezoneOffset())/A)*A+6e4*ue.getTimezoneOffset());return i=z(i),"years"in D?i.setFullYear(v(i.getFullYear(),D.years)):"quarters"in D?i=z(Q(i)):"months"in D?i.setMonth(v(i.getMonth(),D.months)):"weeks"in D||"days"in D?i=z(Q(i)):"hours"in D?i.setHours(v(i.getHours(),D.hours)):"minutes"in D?i.setMinutes(v(i.getMinutes(),D.minutes)):"seconds"in D?i.setSeconds(v(i.getSeconds(),D.seconds)):"milliseconds"in D&&(i=Q(i)),i}var e=A_(qa,te.Z.convertMillisecondsToDateUnits);return $w(n,zw,Gw,I1,e,e,jc,Yy(Sm,T_(t,function(i,r){for(var v=t(i,r);i-v>0;)v=Sm(v,r);return v},Hw,n.endOnTick),wm,Hw),Om(qa,Sm,t,Sm,qa),Yw(jc,qa,(i,r)=>new Date(i.getTime()+r)))}(n):function P1(n){var t=D_(qa,Yc,qa),e=D_(qa,dp,qa),i=A_(qa,qa);return $w(n,zw,O1,jy,i,i,qa,Yy(Em,T_(t,e,I_,n.endOnTick),Ao,I_),Om(qa,Em,t,Em,qa),Yw(qa,qa,(r,v)=>r+v))}(n),t},Dm=w.$K,qy=w.J_,k_=w.mf,Bg="min",pp="max",Tm="minVisible",Im="maxVisible",R_="axisType";function Fg(n,t){return t<n}function Mm(n,t){return t>n}function qw(n,t,e,i){var r=Dm(t);Dm(n)?r&&i(n,t)&&e(t):r&&e(t)}var os=function(n){n&&(0,y.l)(this,n)};os.prototype={constructor:os,addRange:function(n){var t=this,e=t.categories,i=n.categories,r="discrete"===t[R_],v=function(z,Q){qw(t[z],n[z],function(ue){t[z]=ue},Q)},D=function(z,Q,ue){qw(t[z],t[Q],function(we){Dm(t[z])&&(t[z]=we)},ue)},A=function(z){t[z]=t[z]||n[z]};return A("invert"),A("containsConstantLine"),A(R_),A("dataType"),A("isSpacedMargin"),"logarithmic"===t[R_]?A("base"):t.base=void 0,v(Bg,Fg),v(pp,Mm),r?(A(Tm),A(Im)):(v(Tm,Fg),v(Im,Mm)),v("interval",Fg),r||(D(Bg,Tm,Fg),D(Bg,Im,Fg),D(pp,Im,Mm),D(pp,Tm,Mm)),t.categories=void 0===e?i:i?Si(e.concat(i)):e,"logarithmic"===t[R_]&&(A("allowNegatives"),v("linearThreshold",Fg)),t},isEmpty:function(){return!(Dm(this[Bg])&&Dm(this[pp])||this.categories&&0!==this.categories.length)},correctValueZeroLevel:function(){var n=this;if(qy(n[pp])||qy(n[Bg]))return n;function t(e,i){n[e]<0&&n[i]<0&&(n[i]=0),n[e]>0&&n[i]>0&&(n[e]=0)}return t(Bg,pp),t(Tm,Im),n},sortCategories(n){if(!1!==n&&this.categories)if(Array.isArray(n)){var t=n.map(r=>r.valueOf()),e=this.categories.filter(r=>-1===t.indexOf(r.valueOf()));this.categories=n.concat(e)}else{var i=!k_(n);i&&"string"!==this.dataType?n=(r,v)=>r.valueOf()-v.valueOf():i&&(n=!1),n&&this.categories.sort(n)}}};var Vg=Math.round;function R1(n){return n}const Qy={translate:function(n,t){var e=this._canvasOptions,i=this._categoriesToPoints[n?.valueOf()],r=this.translateSpecialCase(n),v=e.startPointIndex||0,D=this._options.stick?0:.5;return(0,w.$K)(r)?Vg(r):i||0===i?Vg(this._calculateProjection(e.interval*(i+D-v+.5*(t=t||0)))):null},getInterval:function(){return this._canvasOptions.interval},getEventScale:function(n){return 1-(1-(n.deltaScale||1))/(.75+this.visibleCategories.length/this._categories.length)},zoom:function(n,t){var we,e=this._categories,i=this._canvasOptions,r=this._options.stick,v=i.invert,D=i.interval*t,A=n/D,z=(this.visibleCategories||[]).length,Q=parseInt((i.startPointIndex||0)+A+.5),ue=parseInt((0,ae.zB)(i.canvasLength/D)+(r?1:0))||1;v&&(Q=parseInt((i.startPointIndex||0)+z-A+.5)-ue),Q<0&&(Q=0),(we=Q+ue)>e.length&&(Q=(we=e.length)-ue)<0&&(Q=0);var Le=e.slice(parseInt(Q),parseInt(we)),Ue=this._getDiscreteInterval(Le.length,i);return t=Ue/i.interval,n=this.translate(v?Le[Le.length-1]:Le[0])*t-(i.startPoint+(r?0:Ue/2)),{min:Le[0],max:Le[Le.length-1],translate:n,scale:t}},getMinScale:function(n){var t=this._canvasOptions,e=(this.visibleCategories||this._categories).length;return e+=(parseInt(.1*e)||1)*(n?-2:2),t.canvasLength/(Math.max(e,1)*t.interval)},getScale:function(n,t){var e=this._canvasOptions,i=this.getCanvasVisibleArea(),r=!this._options.stick&&1,v=(0,w.$K)(n)?this.translate(n,-r):null,D=(0,w.$K)(t)?this.translate(t,+r):null;return null===v&&(v=e.invert?i.max:i.min),null===D&&(D=e.invert?i.min:i.max),this.canvasLength/Math.abs(D-v)},isValid:function(n){return!!(0,w.$K)(n)&&this._categoriesToPoints[n.valueOf()]>=0},getCorrectValue:R1,to:function(n,t){var e=this._canvasOptions,i=this._categoriesToPoints[n?.valueOf()];return Vg(this._calculateProjection(e.interval*(i+(this._options.stick?0:.5)-(e.startPointIndex||0)+(this._businessRange.invert?-1:1)*t*.5)))},from:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this._canvasOptions,i=e.startPoint,r=this.visibleCategories||this._categories,v=r.length,D=this._options.stick?.5:0,A=Vg((n-i)/e.interval+D-.5-.5*t);return A>=v&&(A=v-1),A<0&&(A=0),e.invert&&(A=v-A-1),r[A]},_add:function(){return NaN},toValue:R1,isValueProlonged:!0,getRangeByMinZoomValue(n,t){var e=this._categories,i=e.indexOf(t.minVisible),r=e.indexOf(t.maxVisible),v=i+n-1;return e[v]?[t.minVisible,e[v]]:[e[r-n+1],t.maxVisible]}};var Jw=Math.floor;const f2={_intervalize:function(n,t){if((0,w.$K)(n))return"datetime"===this._businessRange.dataType?(n=(0,w.kE)(n)?new Date(n):new Date(n.getTime()),n=te.Z.correctDateWithUnitBeginning(n,t,null,this._options.firstDayOfWeek)):n=(0,ae.zB)(Jw((0,ae.zB)(n/t))*t,t),n},translate:function(n,t,e){var i=this.translateSpecialCase(n);return(0,w.$K)(i)?Math.round(i):this.isValid(n,e=e||this._options.interval)?this.to(n,t,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(n){return"datetime"===this._businessRange.dataType?new Date(n):Number(n)},fromValue:function(n){return this._parse(n)},toValue:function(n){return this._parse(n)},isValid:function(n,t){var e=this._canvasOptions,i=e.rangeMin,r=e.rangeMax;return t=t||this._options.interval,!(null===n||isNaN(n)||(n="datetime"===this._businessRange.dataType&&(0,w.kE)(n)?new Date(n):n,t!==this._options.interval&&(i=this._intervalize(i,t),r=this._intervalize(r,t)),n.valueOf()<i||n.valueOf()>=te.Z.addInterval(r,t)))},to:function(n,t,e){var i=this._intervalize(n,e=e||this._options.interval),r=te.Z.addInterval(i,e),v=this._to(i),D=this._to(r);return t?t>0&&(v=D):v=Jw((v+D)/2),v},_to:function(n){var t=this._canvasOptions,e=t.rangeMinVisible,i=t.rangeMaxVisible,r=n-e;return n<e?r=0:n>i&&(r=te.Z.addInterval(i,this._options.interval)-e),this._conversionValue(this._calculateProjection(r*this._canvasOptions.ratioOfCanvasRange))},from:function(n,t){var A,e=this._options.interval,i=e,r=this._canvasOptions,v=r.rangeMinVisible,D=r.rangeMaxVisible;return"datetime"===this._businessRange.dataType&&(i=te.Z.dateToMilliseconds(e)),A=this._calculateUnProjection((n-this._canvasOptions.startPoint)/this._canvasOptions.ratioOfCanvasRange),(A=this._intervalize(te.Z.addInterval(A,i/2,t>0),e))<v?A=v:A>D&&(A=D),A},_add:function(){return NaN},isValueProlonged:!0};function gp(n){return null!==n?new Date(n):n}const Qw={fromValue:gp,toValue:gp,_add:te.Z.addDateInterval,convert:te.Z.dateToMilliseconds},L1={fromValue:function(n){return null!==n?xr(n,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):n},toValue:function(n){return null!==n?Vr(n,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):n},getMinBarSize:function(n){var t=this.getCanvasVisibleArea(),e=this.from(t.min+n),i=this._canvasOptions;return Math.pow(i.base,i.rangeMinVisible+this.fromValue(this.from(t.min))-this.fromValue((0,w.$K)(e)?e:this.from(t.max)))},checkMinBarSize:function(n,t,e){var D,A,i=this._canvasOptions,r=e-n,v=this.constructor.prototype.checkMinBarSize;return(0,w.$K)(t)&&r>0?(D=v(this.fromValue(e/r),this.fromValue(t)-i.rangeMinVisible),A=Math.pow(i.base,this.fromValue(r)+D)-r):A=v(n,t),A}};var L_=Math.abs,B1=["width","height","left","top","bottom","right"],F1={to(n){var t=this._canvasOptions.startPoint+(this._options.conversionValue?n:Math.round(n));return t>this._canvasOptions.endPoint?this._canvasOptions.endPoint:t},from(n){return n-this._canvasOptions.startPoint}},Am=function(n){return(0,O.S6)(B1,function(t,e){n[e]=parseInt(n[e])||0}),n};function km(n){return{isStartSide:n?function(t,e,i,r){return t<=e[e.length-1][r]}:function(t,e,i,r){return t<e[0][i]},isEndSide:n?function(t,e,i,r){return t>e[0][i]}:function(t,e,i,r){return t>=e[e.length-1][r]},isInBreak:n?function(t,e,i,r){return t>e[r]&&t<=e[i]}:function(t,e,i,r){return t>=e[i]&&t<e[r]},isBetweenBreaks:n?function(t,e,i,r,v){return t>=e[v]&&t<i[r]}:function(t,e,i,r,v){return t<e[r]&&t>=i[v]},getLength:n?function(t,e){return e.length-t.length}:function(t){return t.length},getBreaksSize:n?function(t,e){return e.cumulativeWidth-t.cumulativeWidth}:function(t){return t.cumulativeWidth}}}var Hg=function(n,t,e){this.update(n,t,e)};function B_(n){return{stroke:n.color,"stroke-width":n.width,"stroke-opacity":n.opacity,opacity:1}}function zg(n,t,e,i,r,v,D){var A=D||n._tickOffset,z=n._axisLineGroup,Q=n._axisElementsGroup,ue=B_(e),we=B_(i),Le=/^\s+$/,ut=n.getOptions().label,It=n._textOptions;function Gt(En){var on=n._textFontStyles,Nt=ut.customizeColor;return Nt&&Nt.call&&(on=(0,y.l)({},n._textFontStyles,{fill:Nt.call(En,En)})),on}function ln(En,on){var Nt=n.formatHint(En.value,ut,on);(0,w.$K)(Nt)&&""!==Nt&&En.getContentContainer().setTitle(Nt)}return function(En){var on={value:En,updateValue(Nt){this.value=En=Nt},initCoords:function(){this.coords=n._getTranslatedValue(En,A),this.labelCoords=n._getTranslatedValue(En)},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(Nt){!e.visible||r===En||n.areCoordsOutsideAxis(this.coords)||(this.mark?(this.mark.append(z),n.sharp(this.mark,n.getSharpDirectionByCoords(this.coords)),this.updateTickPosition(Nt)):(this.mark=n._createPathElement([],ue,n.getSharpDirectionByCoords(this.coords)).append(z),this.updateTickPosition(Nt)))},setSkippedCategory(Nt){r=Nt},_updateLine(Nt,Jt,un,Mn,Kn){if(Nt){if(null===Jt.points||null===Jt.r)return void Nt.remove();Mn&&un&&null!==un.points?(Jt.opacity=1,Nt.attr(un),Nt.animate(Jt)):(Jt.opacity=Mn?0:1,Nt.attr(Jt),Mn&&Nt.animate({opacity:1},{delay:.5,partitionDuration:.5})),this.coords.angle&&n._rotateTick(Nt,this.coords,Kn)}},updateTickPosition:function(Nt,Jt){this._updateLine(this.mark,{points:n._getTickMarkPoints(on.coords,e.length,Nt)},this._storedCoords&&{points:n._getTickMarkPoints(on._storedCoords,e.length,Nt)},Jt,!1)},drawLabel:function(Nt,Jt){if(this.templateContainer&&n.isRendered())this.updateLabelPosition();else if(!ut.visible||v||n.getTranslator().getBusinessRange().isEmpty()||n.areCoordsOutsideAxis(this.labelCoords))this.label&&this.removeLabel();else{var Mn=ut.template,Kn=n.formatLabel(En,ut,Nt);if(this.label)return this.label.attr({text:Kn,rotate:0}).append(Q),ln(this,Nt),void this.updateLabelPosition();Mn?(this.templateContainer=t.g().append(Q),this._templateDef&&this._templateDef.reject(),this._templateDef=new P.BH,Jt.render({model:{valueText:Kn,value:this.value,labelFontStyle:Gt(this),labelStyle:It},container:this.templateContainer.element,onRendered:()=>{this.updateLabelPosition(),this._templateDef&&this._templateDef.resolve()}})):(0,w.$K)(Kn)&&""!==Kn&&!Le.test(Kn)&&(this.label=t.text(Kn).css(Gt(this)).attr(It).append(Q),this.updateLabelPosition(),ln(this,Nt));var Xn=this.getContentContainer();Xn&&Xn.data("chart-data-argument",this.value),this.templateContainer&&ln(this,Nt)}},getTemplateDeferred(){return this._templateDef},getContentContainer(){return this.templateContainer||this.label},fadeOutElements(){var Nt={opacity:1},Jt={opacity:0},un={partitionDuration:.5};this.getContentContainer()&&this._fadeOutLabel(),this.grid&&this.grid.append(n._axisGridGroup).attr(Nt).animate(Jt,un),this.mark&&this.mark.append(n._axisLineGroup).attr(Nt).animate(Jt,un)},_fadeInLabel(){var Nt=n._renderer.g().attr({opacity:0}).append(n._axisElementsGroup).animate({opacity:1},{delay:.5,partitionDuration:.5});this.getContentContainer().append(Nt)},_fadeOutLabel(){var Nt=n._renderer.g().attr({opacity:1}).animate({opacity:0},{partitionDuration:.5}).append(n._axisElementsGroup).toBackground();this.getContentContainer().append(Nt)},_getTemplateCoords(){return n._getLabelAdjustedCoord(this,(n._constantLabelOffset||0)+(on.labelOffset||0))},updateLabelPosition:function(Nt){var Jt=this.templateContainer;if(this.getContentContainer())if(Nt&&this._storedLabelsCoords)if(Jt){Jt.attr(this._storedLabelsCoords);var un=this._getTemplateCoords();Jt.animate(un)}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(Jt){var Mn=this._getTemplateCoords();Jt.attr(Mn)}else this.label.attr({x:this.labelCoords.x,y:this.labelCoords.y});Nt&&this._fadeInLabel()}},updateMultilineTextAlignment(){ut.template||!this.label||this.label.attr({textsAlignment:this.labelAlignment||n.getOptions().label.alignment})},drawGrid:function(Nt){i.visible&&r!==this.value&&(this.grid?(this.grid.append(n._axisGridGroup),n.sharp(this.grid,n.getSharpDirectionByCoords(this.coords)),this.updateGridPosition()):(this.grid=Nt(this,we),this.grid&&this.grid.append(n._axisGridGroup)))},updateGridPosition:function(Nt){this._updateLine(this.grid,n._getGridPoints(on.coords),this._storedCoords&&n._getGridPoints(this._storedCoords),Nt,!0)},removeLabel(){var Nt=this.getContentContainer();Nt&&Nt.remove(),this._templateDef&&this._templateDef.reject(),this._templateDef=this.templateContainer=this.label=null}};return on}}Hg.prototype={constructor:Hg,reinit:function(){var n=this,t=n._options,e=n._businessRange,i=e.categories||[],r={},v=n._prepareCanvasOptions(),D=_r(i,e.minVisible,e.maxVisible).categories,A=D.length;if(e.isEmpty())r=F1;else switch(e.axisType){case"logarithmic":r=L1;break;case"semidiscrete":r=f2,v.ratioOfCanvasRange=v.canvasLength/(te.Z.addInterval(v.rangeMaxVisible,t.interval)-v.rangeMinVisible);break;case"discrete":r=Qy,n._categories=i,v.interval=n._getDiscreteInterval(t.addSpiderCategory?A+1:A,v),n._categoriesToPoints=function(n){var t={};return n.forEach(function(e,i){t[e.valueOf()]=i}),t}(i),A&&(v.startPointIndex=n._categoriesToPoints[D[0].valueOf()],n.visibleCategories=D);break;default:"datetime"===e.dataType&&(r=Qw)}(n._oldMethods||[]).forEach(function(z){delete n[z]}),n._oldMethods=Object.keys(r),(0,y.l)(n,r),n._conversionValue=t.conversionValue?function(z){return z}:function(z){return Math.round(z)},n.sc={},n._checkingMethodsAboutBreaks=[km(!1),km(n.isInverted())],n._translateBreaks(),n._calculateSpecialValues()},_translateBreaks:function(){var e,i,r,v,n=this._breaks,t=this._options.breaksSize;if(void 0!==n)for(e=0,v=n.length;e<v;e++)r=this.translate((i=n[e]).to),i.end=r,i.start=i.gapSize?r:this.isInverted()?r+t:r-t},_checkValueAboutBreaks:function(n,t,e,i,r){var v,D,z,Q,A={length:0,breaksSize:void 0,inBreak:!1},ue=n[n.length-1];if(r.isStartSide(t,n,e,i))return A;if(r.isEndSide(t,n,e,i))return{length:ue.length,breaksSize:ue.cumulativeWidth,inBreak:!1};for(v=0,D=n.length;v<D;v++){if(Q=n[v-1],r.isInBreak(t,z=n[v],e,i)){A.inBreak=!0,A.break=z;break}if(Q&&r.isBetweenBreaks(t,z,Q,e,i)){A={length:r.getLength(Q,ue),breaksSize:r.getBreaksSize(Q,ue),inBreak:!1};break}}return A},isInverted:function(){return!(this._options.isHorizontal^this._businessRange.invert)},_getDiscreteInterval:function(n,t){var e=n-(this._options.stick?1:0);return e>0?t.canvasLength/e:t.canvasLength},_prepareCanvasOptions(){var r,n=this._businessRange,t=this._canvasOptions=function tC(n){var t=n.min,e=n.max,i=n.minVisible,r=n.maxVisible;return"logarithmic"===n.axisType&&(r=xr(r,n.base,n.allowNegatives,n.linearThreshold),i=xr(i,n.base,n.allowNegatives,n.linearThreshold),t=xr(t,n.base,n.allowNegatives,n.linearThreshold),e=xr(e,n.base,n.allowNegatives,n.linearThreshold)),{base:n.base,rangeMin:t,rangeMax:e,rangeMinVisible:i,rangeMaxVisible:r}}(n),e=this._canvas,i=this._breaks;return t.startPadding=e.startPadding||0,t.endPadding=e.endPadding||0,this._options.isHorizontal?(t.startPoint=e.left+t.startPadding,r=e.width,t.endPoint=e.width-e.right-t.endPadding,t.invert=n.invert):(t.startPoint=e.top+t.startPadding,r=e.height,t.endPoint=e.height-e.bottom-t.endPadding,t.invert=!n.invert),this.canvasLength=t.canvasLength=t.endPoint-t.startPoint,t.rangeDoubleError=Math.pow(10,Ai(t.rangeMax-t.rangeMin)-Ai(r)-2),t.ratioOfCanvasRange=t.canvasLength/(t.rangeMaxVisible-t.rangeMinVisible),void 0!==i&&(t.ratioOfCanvasRange=(t.canvasLength-i[i.length-1].cumulativeWidth)/(t.rangeMaxVisible-t.rangeMinVisible-i[i.length-1].length)),t},updateCanvas:function(n){this._canvas=Am(n),this.reinit()},updateBusinessRange:function(n){var t=n.breaks||[];this._userBreaks=n.userBreaks||[],this._businessRange=function(n){function t(e,i){!(0,w.$K)(n[e])&&(0,w.$K)(n[i])&&(n[e]=n[i])}return n instanceof os||(n=new os(n)),t("minVisible","min"),t("maxVisible","max"),n}(n),this._breaks=t.length?function Pm(n,t){var r,v,D,A,e="logarithmic"===t.axisType?function(ue){return xr(ue,t.base)}:function(ue){return ue},i=[],z=n.length,Q=0;for(A=0;A<z;A++)v=e((r=n[A]).from),D=e(r.to),i.push({trFrom:v,trTo:D,from:r.from,to:r.to,length:Q+=D-v,cumulativeWidth:r.cumulativeWidth});return i}(t,this._businessRange):void 0,this.reinit()},update:function(n,t,e){this._options=(0,y.l)(this._options||{},e),this._canvas=Am(t),this.updateBusinessRange(n)},getBusinessRange:function(){return this._businessRange},getEventScale:function(n){return n.deltaScale||1},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var A,n=this._canvasOptions,t=n.startPoint-n.startPadding,e=n.endPoint+n.endPadding,i=this._businessRange,r=i.minVisible,v=i.maxVisible,D=t+n.canvasLength/2;if(r<0&&v>0&&r!==v&&(A=this.translate(0,1)),!(0,w.$K)(A)){var z=i.invert^(r<0&&v<=0);A=this._options.isHorizontal?z?e:t:z?t:e}this.sc={canvas_position_default:A,canvas_position_left:t,canvas_position_top:t,canvas_position_center:D,canvas_position_middle:D,canvas_position_right:e,canvas_position_bottom:e,canvas_position_start:n.invert?e:t,canvas_position_end:n.invert?t:e}},translateSpecialCase(n){return this.sc[n]},_calculateProjection:function(n){var t=this._canvasOptions;return t.invert?t.endPoint-n:t.startPoint+n},_calculateUnProjection:function(n){var t=this._canvasOptions;return"datetime"===this._businessRange.dataType&&(n=Math.round(n)),t.invert?t.rangeMaxVisible.valueOf()-n:t.rangeMinVisible.valueOf()+n},getMinBarSize:function(n){var t=this.getCanvasVisibleArea(),e=this.from(t.min+n);return L_(this.from(t.min)-((0,w.$K)(e)?e:this.from(t.max)))},checkMinBarSize:function(n,t,e){return L_(n)<t?n>=0?t:-t:n},translate(n,t){var e=this.translateSpecialCase(n);return(0,w.$K)(e)?Math.round(e):isNaN(n)?null:this.to(n,t)},getInterval:function(n){var t,e=this._canvasOptions;return n=null!==(t=n)&&void 0!==t?t:this._businessRange.interval,Math.round(n?e.ratioOfCanvasRange*n:e.endPoint-e.startPoint)},zoom(n,t,e){var i=this._canvasOptions;if(i.rangeMinVisible.valueOf()===i.rangeMaxVisible.valueOf()&&0!==n)return this.zoomZeroLengthRange(n,t);var r=i.startPoint,v=i.endPoint,D=this.isInverted(),A=(r+n)/t,z=(v+n)/t;e=e||{};var we,Le,Q=this.to(D?e.endValue:e.startValue),ue=this.to(D?e.startValue:e.endValue);return Q>A&&(z-=A-Q,A=Q,we=D?e.endValue:e.startValue),ue<z&&(A-=z-ue,z=ue,Le=D?e.startValue:e.endValue),ue-Q<z-A&&(A=Q,z=ue),t=(r+(n=(v-r)*A/(z-A)-r))/A||1,we=(0,w.$K)(we)?we:(0,ae.zB)(this.from(A,1)),Le=(0,w.$K)(Le)?Le:(0,ae.zB)(this.from(z,-1)),t<=1&&(we=this._correctValueAboutBreaks(we,1===t?n:-1),Le=this._correctValueAboutBreaks(Le,1===t?n:1)),we>Le?(we=we>e.endValue?e.endValue:we,Le=Le<e.startValue?e.startValue:Le):(we=we<e.startValue?e.startValue:we,Le=Le>e.endValue?e.endValue:Le),{min:we,max:Le,translate:(0,ae.zB)(n),scale:(0,ae.zB)(t)}},_correctValueAboutBreaks(n,t){var e=this._userBreaks.filter(i=>n>=i.from&&n<=i.to);return e.length?t>0?e[0].to:e[0].from:n},zoomZeroLengthRange(n,t){var e=this._canvasOptions,i=e.rangeMin,r=e.rangeMax,v=(r.valueOf()!==i.valueOf()?r.valueOf()-i.valueOf():L_(e.rangeMinVisible.valueOf()-i.valueOf()))/e.canvasLength,D=(0,w.J_)(r)||(0,w.J_)(i),A="logarithmic"===this._businessRange.axisType,z=e.rangeMinVisible.valueOf()-v,Q=e.rangeMaxVisible.valueOf()+v;return{min:z=A?(0,ae.zB)(Vr(z,e.base)):D?new Date(z):z,max:Q=A?(0,ae.zB)(Vr(Q,e.base)):D?new Date(Q):Q,translate:n,scale:t}},getMinScale:function(n){var{dataType:t,interval:e}=this._businessRange;return"datetime"===t&&1===e?this.getDateTimeMinScale(n):n?1.1:.9},getDateTimeMinScale(n){var t=this._canvasOptions,e=t.canvasLength/t.ratioOfCanvasRange;return e+=(parseInt(.1*e)||1)*(n?-2:2),t.canvasLength/(Math.max(e,1)*t.ratioOfCanvasRange)},getScale:function(n,t){var e=this._canvasOptions;return e.rangeMax===e.rangeMin?1:(n=(0,w.$K)(n)?this.fromValue(n):e.rangeMin,t=(0,w.$K)(t)?this.fromValue(t):e.rangeMax,(e.rangeMax-e.rangeMin)/Math.abs(n-t))},isValid:function(n){var t=this._canvasOptions;return null!==(n=this.fromValue(n))&&!isNaN(n)&&n.valueOf()+t.rangeDoubleError>=t.rangeMin&&n.valueOf()-t.rangeDoubleError<=t.rangeMax},getCorrectValue:function(n,t){var i,e=this._breaks;return n=this.fromValue(n),this._breaks&&!0===(i=this._checkValueAboutBreaks(e,n,"trFrom","trTo",this._checkingMethodsAboutBreaks[0])).inBreak?this.toValue(t>0?i.break.trTo:i.break.trFrom):this.toValue(n)},to:function(n,t){var e=this.getBusinessRange();if((0,w.$K)(e.maxVisible)&&(0,w.$K)(e.minVisible)&&e.maxVisible.valueOf()===e.minVisible.valueOf())return(0,w.$K)(n)&&e.maxVisible.valueOf()===n.valueOf()?this.translateSpecialCase(0===n&&this._options.shiftZeroValue?"canvas_position_default":"canvas_position_middle"):null;n=this.fromValue(n);var i=this._canvasOptions,r=this._breaks,v={length:0},D=0;return void 0!==r&&(v=this._checkValueAboutBreaks(r,n,"trFrom","trTo",this._checkingMethodsAboutBreaks[0]),D=(0,w.$K)(v.breaksSize)?v.breaksSize:0),!0===v.inBreak?t>0?v.break.start:t<0?v.break.end:null:this._conversionValue(this._calculateProjection((n-i.rangeMinVisible-v.length)*i.ratioOfCanvasRange+D))},from:function(n,t){var e=this._breaks,i={length:0},r=this._canvasOptions,v=r.startPoint,D=0;return void 0!==e&&(i=this._checkValueAboutBreaks(e,n,"start","end",this._checkingMethodsAboutBreaks[1]),D=(0,w.$K)(i.breaksSize)?i.breaksSize:0),!0===i.inBreak?t>0?this.toValue(i.break.trTo):t<0?this.toValue(i.break.trFrom):null:this.toValue(this._calculateUnProjection((n-v-D)/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(n,t,e){return this._add(n,t,(this._businessRange.invert?-1:1)*e)},_add:function(n,t,e){return this.toValue(this.fromValue(n)+t*e)},fromValue:function(n){return null!==n?Number(n):null},toValue:function(n){return null!==n?Number(n):null},ratioOfCanvasRange(){return this._canvasOptions.ratioOfCanvasRange},convert:n=>n,getRangeByMinZoomValue(n,t){return t.minVisible+n<=this._businessRange.max?[t.minVisible,t.minVisible+n]:[t.maxVisible-n,t.maxVisible]}};var nC=[0,1,2,3,4,5,6];function qc(n){return(n+1)%7}function V1(n,t){for(var e=n.start,i=n.end;e!==i;){if(e===t)return!0;e=qc(e)}return!1}function N1(n,t){for(var e=0;n!==t;)n=qc(n),e++;return e}function Vl(n,t,e,i,r){var v=function H1(n){var t=function eE(n){return nC.filter(function(t){return!n.some(function(e){return e===t})})}(n);if(t.length<7)for(;qc(t[t.length-1])===t[0];)t.unshift(t.pop());return t}(e),D=function nE(n,t,e){var i=n.getDate(),r=[];return e.reduce(function(D,A){var z=D[1];return void 0===z.start?(z={start:A,end:qc(A)},D[0].push(z),[D[0],z]):z.end===A?(z.end=qc(A),D):(z={start:A,end:qc(A)},D[0].push(z),[D[0],z])},[[],{}])[0].forEach(function(D){var A=new Date(n);for(A=te.Z.trimTime(A);A<t;){i=A.getDay();var z=A.getDate();if(V1(D,i)){var Q=new Date(A);A.setDate(z+N1(i,D.end));var ue=new Date(A);r.push({from:Q,to:ue})}A.setDate(A.getDate()+1)}}),r}(n,t,v);return D.push.apply(D,function z1(n,t,e,i){var r,v=function(z){return z===r},D=te.Z.trimTime(n),A=te.Z.trimTime(t);return A.setDate(t.getDate()+1),e.reduce(function(z,Q){var ue,we;return Q=new Date(Q),r=Q.getDay(),!i.some(v)&&Q>=D&&Q<=A&&(ue=te.Z.trimTime(Q),(we=new Date(ue)).setDate(ue.getDate()+1),z.push({from:ue,to:we})),z},[])}(n,t,r||[],v)),function W1(n){return n.map(function(t){return{from:t.from,to:t.to,gapSize:te.Z.convertMillisecondsToDateUnits(t.to-t.from)}})}(function iE(n,t){var i,e=n.slice(),r=function(v){if(v=te.Z.trimTime(new Date(v)),e[i].from<=v&&e[i].to>v){var D=function tE(n,t){var e=[],i=new Date(t);return i.setDate(t.getDate()+1),t>n.from&&e.push({from:n.from,to:t}),i<n.to&&e.push({from:i,to:n.to}),e}(e[i],v);2===D.length?e.splice(i,1,D[0],D[1]):1===D.length?e.splice(i,1,D[0]):e.splice(i,1)}};for(i=0;i<e.length;i++)t.forEach(r);return e}(D,i||[]))}var iC=te.Z.getNextDateUnit,rE=te.Z.correctDateWithUnitBeginning,xd=Math,Jc=xd.max,Ys="top",Ds="bottom",ts="left",nl="right",Nl="center",K1={left:-1,top:-1,right:0,bottom:0,center:-.5};function Nu(n){return n.sort(function(t,e){return t.from-e.from})}function lE(n,t,e,i){var r=i,v=t&&te.Z.getDatesDifferences(t,n);return t&&"year"!==e&&(function G1(n,t){var e,i;if("week"===t&&(t="day"),"quarter"===t&&(t="month"),n[t])for(i=0;i<te.Z.dateUnitIntervals.length&&(n[e=te.Z.dateUnitIntervals[i]]&&(n[e]=!1,n.count--),e!==t);i++);}(v,e),r=Fa.Z.getDateFormatByDifferences(v)),r}function uE(n,t){return t.reduce(function(e,i){return Jc(e,n(i))},0)}function dE(n,t,e){return n.some(function(i){return i.label.verticalAlignment===t})&&e||0}function cE(n){return xd.abs(n.x)||0}function Rm(n){return xd.abs(n.width-xd.abs(n.x))||0}const X1={linear:{_getStep:function(n,t){var e=this._options.label.minSpacing,r=uE(this._isHorizontal?function(v){return v.width+e}:function(v){return v.height},n);return t&&(r=function Y1(n,t){var e=(t=(t=xd.abs(t))%180>=90?90-t%90:t%90)*(xd.PI/180);return e>=xd.atan(n.height/n.width)?n.height/xd.abs(xd.sin(e)):n.width}({width:r,height:this._getMaxLabelHeight(n,0)},t)),Eo_getTicksCountInRange(this._majorTicks,this._isHorizontal?"x":"y",r)},_getMaxLabelHeight:function(n,t){return uE(function(e){return e.height},n)+t},_validateOverlappingMode:function(n,t){return this._isHorizontal&&("rotate"===t||"stagger"===t)||!this._isHorizontal?Eo_validateOverlappingMode(n):n},_validateDisplayMode:function(n){return this._isHorizontal?n:"standard"},getMarkerTrackers:function(){return this._markerTrackers},_getSharpParam:function(n){return this._isHorizontal^n?"h":"v"},_createAxisElement:function(){return this._renderer.path([],"line")},_updateAxisElementPosition:function(){var n=this._axisPosition,t=this._getCanvasStartEnd();this._axisElement.attr({points:this._isHorizontal?[t.start,n,t.end,n]:[n,t.start,n,t.end]})},_getTranslatedCoord:function(n,t){return this._translator.translate(n,t)},_initAxisPositions(){this.customPositionIsAvailable()&&(this._customBoundaryPosition=this.getCustomBoundaryPosition()),this._axisPosition=!this.customPositionIsAvailable()||this.customPositionIsBoundary()?this.getPredefinedPosition(this.getResolvedBoundaryPosition()):this.getCustomPosition()},_getTickMarkPoints(n,t,e){var D,i=this._isHorizontal,r=this._options.tickOrientation,v=this._options.label.position;if((0,w.$K)(r))D=K1[r]*t;else{var A=e.shift||0;(!i&&v===ts||i&&v!==Ds)&&(A=-A),D=A+this.getTickStartPositionShift(t)}return[n.x+(i?0:D),n.y+(i?D:0),n.x+(i?0:D+t),n.y+(i?D+t:0)]},getTickStartPositionShift(n){var t=this._options.width,e=this.getResolvedBoundaryPosition();return n%2==1?(t%2!=0||e!==ts&&e!==Ys)&&(t%2!=1||e!==nl&&e!==Ds||this.hasNonBoundaryPosition())?-Math.floor(n/2):Math.floor(-n/2):-n/2+(t%2==0?0:e===Ds||e===nl?-1:1)},_getTitleCoords:function(){var n=this._isHorizontal,t=this._axisPosition,e=this._axisPosition,i=this._options.title.alignment,r=this._getCanvasStartEnd(),v=n||this._options.position===ts,z=i===ts?v?r.start:r.end:i===nl?v?r.end:r.start:r.start+(r.end-r.start)/2;return n?t=z:e=z,{x:t,y:e}},_drawTitleText:function(n,t){var e=this._options,i=e.title,r={opacity:i.opacity,align:i.alignment,class:i.cssClass};if(i.text&&n){t=t||this._getTitleCoords(),this._isHorizontal||(r.rotate=e.position===ts?270:90);var v=this._renderer.text(i.text,t.x,t.y).css(di(i.font)).attr(r).append(n);return this._checkTitleOverflow(v),v}},_updateTitleCoords:function(){this._title&&this._title.element.attr(this._getTitleCoords())},_drawTitle:function(){var n=this._drawTitleText(this._axisTitleGroup);n&&(this._title={element:n})},_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(n,t,e){var D,i=this._options.marker,r=this._translator.getBusinessRange().invert,v=i.width+i.textLeftIndent;if(null!==t.x){t.withoutStick||(D=this._renderer.path([t.x,t.y,t.x,t.y+i.separatorHeight],"line").attr({"stroke-width":i.width,stroke:i.color,"stroke-opacity":i.opacity,sharp:"h"}).append(this._axisElementsGroup));var A=String(this.formatLabel(n,t.labelOptions,e));return{date:n,x:t.x,y:t.y,cropped:t.withoutStick,label:this._renderer.text(A,t.x,t.y).css(di(i.label.font)).append(this._axisElementsGroup),line:D,getContentContainer(){return this.label},getEnd:function(){return this.x+(r?-1:1)*(v+this.labelBBox.width)},setTitle:function(){this.title=A},hideLabel:function(){this.label.dispose(),this.label=null,this.title=A},hide:function(){D&&(D.dispose(),D=null),this.label.dispose(),this.label=null,this.hidden=!0}}}},_drawDateMarkers:function(){var D,n=this,t=n._options,e=n._translator,i=n._getViewportRange(),r=i.minVisible,v=[];function A(Le,Ue,ut){return n._drawDateMarker(Le,{x:e.translate(Le),y:z,labelOptions:n._getLabelFormatOptions(Ue),withoutStick:ut},i)}if(i.isEmpty()||!t.marker.visible||"datetime"!==t.argumentType||"discrete"===t.type||n._majorTicks.length<=1)return[];var z=n._axisPosition+t.marker.topIndent,Q=te.Z.getDateUnitInterval(this._tickInterval),ue=function sE(n){var t=iC(n);return"quarter"===t&&(t=iC(t)),t}(Q),we=function oC(n,t,e){var r,i=n;return n=rE(n,e),t=rE(t,e),(r=te.Z.getSequenceByInterval(n,t,e)).length&&i>r[0]&&(r=r.slice(1)),r}(r,i.maxVisible,ue);return(we.length>1||1===we.length&&r<we[0])&&(v=we.reduce(function(Le,Ue,ut,It){var Gt=A(Ue,lE(Ue,It[ut-1]||r<Ue&&r,Q,ue));return Gt&&Le.push(Gt),Le},[]),r<we[0]&&(D=A(r,lE(r,we[0],Q,ue),!0))&&v.unshift(D)),v},_adjustDateMarkers:function(n){n=n||0;var A,t=this,e=this._options.marker,i=e.width+e.textLeftIndent,r=this._translator.getBusinessRange().invert,v=t._getCanvasStartEnd(),D=this._dateMarkers;return D.length?(D[0].cropped&&(this._checkMarkersPosition(r,D[1],D[0])||D[0].hideLabel()),D.forEach(function(z,Q,ue){z.cropped||((r?z.getEnd()<v.end:z.getEnd()>v.end)?z.hideLabel():t._checkMarkersPosition(r,z,A)?A=z:z.hide())}),this._dateMarkers.forEach(function(z){if(z.label){var Q=z.labelBBox;z.label.attr({translateX:r?z.x-i-Q.x-Q.width:z.x+i-Q.x,translateY:z.y+e.textTopIndent-Q.y+n})}z.line&&z.line.attr({translateY:n})}),t._initializeMarkersTrackers(n),n+e.topIndent+e.separatorHeight):n},_checkMarkersPosition:function(n,t,e){return void 0===e||(n?t.x<e.getEnd():t.x>e.getEnd())},_initializeMarkersTrackers:function(n){var t=this._options.marker.separatorHeight,e=this._renderer,i=this._translator.getBusinessRange(),r=this._getCanvasStartEnd(),v=this._axisElementsGroup;this._markerTrackers=this._dateMarkers.filter(function(D){return!D.hidden}).map(function(D,A,z){var Q=z[A+1]||{x:r.end,date:i.max},ue=D.x,we=D.y+n,Le=e.path([ue,we,ue,we+t,Q.x,we+t,Q.x,we,ue,we],"area").attr({"stroke-width":1,stroke:"grey",fill:"grey",opacity:1e-4}).append(v);return Le.data("range",{startValue:D.date,endValue:Q.date}),D.title&&Le.setTitle(D.title),Le})},_getLabelFormatOptions:function(n){var t=this._markerLabelOptions;return t||(this._markerLabelOptions=t=(0,y.l)(!0,{},this._options.marker.label)),(0,w.$K)(this._options.marker.label.format)||(t.format=n),t},_adjustConstantLineLabels:function(n){var t=this,e=t._options.position,i=t.getCanvas(),r=i.left,v=i.width-i.right,D=i.top,A=i.height-i.bottom,z=D+(A-D)/2,Q=r+(v-r)/2,ue=0;return n.forEach(function(we){var un,Mn,Ue=we.options,ut=Ue.paddingTopBottom,It=Ue.paddingLeftRight,Gt=Ue.label,ln=Gt.verticalAlignment,En=Gt.horizontalAlignment,on="inside"===Gt.position,Nt=we.label,Jt=we.labelBBox;if(null!==Nt&&!Jt.isEmpty){if(t._isHorizontal)if(on)switch(un=En===ts?we.coord-It-Jt.x-Jt.width:we.coord+It-Jt.x,ln){case Nl:Mn=z-Jt.y-Jt.height/2;break;case Ds:Mn=A-ut-Jt.y-Jt.height;break;default:Mn=D+ut-Jt.y}else e===ln&&(ue=Jc(ue,Jt.height+ut)),un=we.coord-Jt.x-Jt.width/2,Mn=ln===Ds?A+ut-Jt.y:D-ut-Jt.y-Jt.height;else if(on)switch(Mn=ln===Ds?we.coord+ut-Jt.y:we.coord-ut-Jt.y-Jt.height,En){case Nl:un=Q-Jt.x-Jt.width/2;break;case nl:un=v-It-Jt.x-Jt.width;break;default:un=r+It-Jt.x}else e===En&&(ue=Jc(ue,Jt.width+It)),Mn=we.coord-Jt.y-Jt.height/2,un=En===nl?v+It-Jt.x:r-It-Jt.x-Jt.width;Nt.attr({translateX:un,translateY:Mn})}}),ue},_drawConstantLinesForEstimating:function(n){var t=this,e=this._renderer,i=e.g();return n.forEach(function(r){t._drawConstantLineLabelText(r.label.text,0,0,r.label,i).attr({align:"center"})}),i.append(e.root)},_estimateLabelHeight:function(n,t){var e=n.height,i=t.drawingType;if(("stagger"===this._validateDisplayMode(i)||"stagger"===this._validateOverlappingMode(t.overlappingBehavior,i))&&(e=2*e+t.staggeringSpacing),"rotate"===this._validateDisplayMode(i)||"rotate"===this._validateOverlappingMode(t.overlappingBehavior,i)){var r=Ft(t.rotationAngle);e=e*r.cos+n.width*r.sin}return e&&(e+t.indentFromAxis||0)||0},estimateMargins:function(n){this.updateCanvas(n);var t=this._getViewportRange(),e=this._createTicksAndLabelFormat(t),i=e.ticks,r=e.tickInterval,v=this._options,D=this._outsideConstantLines.filter(Jt=>Jt.labelOptions.visible).map(Jt=>Jt.options),A=this._renderer.root,z=v.label.visible&&!t.isEmpty()&&i.length,Q=z&&this.formatLabel(i[i.length-1],v.label,void 0,void 0,r,i),ue=z&&this._renderer.text(Q,0,0).css(this._textFontStyles).attr(this._textOptions).append(A),we=this._drawTitleText(A,{x:0,y:0}),Le=this._drawConstantLinesForEstimating(D),Ue=!v.label.template&&ue&&ue.getBBox()||{x:0,y:0,width:0,height:0},ut=we&&we.getBBox()||{x:0,y:0,width:0,height:0},It=Le.getBBox(),Gt=ut.height?ut.height+v.title.margin:0,ln=this._estimateLabelHeight(Ue,v.label),En=It.height?It.height+function aC(n){return n.reduce(function(t,e){return Jc(t,e.paddingTopBottom)},0)}(D):0,on=ln+Gt,Nt={left:Jc(cE(Ue),cE(It)),right:Jc(Rm(Ue),Rm(It)),top:("top"===v.position?on:0)+dE(D,"top",En),bottom:("top"!==v.position?on:0)+dE(D,"bottom",En)};return ue&&ue.remove(),we&&we.remove(),Le&&Le.remove(),Nt},_checkAlignmentConstantLineLabels:function(n){var t=n.position,e=(n.verticalAlignment||"").toLowerCase(),i=(n.horizontalAlignment||"").toLowerCase();this._isHorizontal?"outside"===t?(e=e===Ds?Ds:Ys,i=Nl):(e=e===Nl?Nl:e===Ds?Ds:Ys,i=i===ts?ts:nl):"outside"===t?(e=Nl,i=i===ts?ts:nl):(e=e===Ds?Ds:Ys,i=i===nl?nl:i===Nl?Nl:ts),n.verticalAlignment=e,n.horizontalAlignment=i},_getConstantLineLabelsCoords:function(n,t){var e=n,i=n;return this._isHorizontal?i=this._orthogonalPositions["top"===t.verticalAlignment?"start":"end"]:e=this._orthogonalPositions["right"===t.horizontalAlignment?"end":"start"],{x:e,y:i}},_getAdjustedStripLabelCoords:function(n){var t=n.options,e=t.paddingTopBottom,i=t.paddingLeftRight,r=t.label.horizontalAlignment,v=t.label.verticalAlignment,D=n.labelBBox,A=D.height,z=D.width,Q=n.labelCoords,ue=Q.y-D.y,we=Q.x-D.x;return v===Ys?ue+=e:v===Nl?ue-=A/2:v===Ds&&(ue-=e+A),r===ts?we+=i:r===Nl?we-=z/2:r===nl&&(we-=i+z),{translateX:we,translateY:ue}},_adjustTitle:function(n){if(n=n||0,this._title){var t=this._options,e=t.position,i=t.title.margin,r=this._title,v=r.bBox,D=v.x,A=v.y,z=v.width,ue=this._axisPosition,we=ue-i-n,Le=ue+i+n,Ue={};this._isHorizontal?Ue.translateY=e===Ys?we-(A+v.height):Le-A:Ue.translateX=e===ts?we-(D+z):Le-D,r.element.attr(Ue)}},_checkTitleOverflow:function(n){if(this._title||n){var t=this._getScreenDelta(),e=n?{bBox:n.getBBox(),element:n}:this._title,i=this._options.title,r=e.bBox;(this._isHorizontal?r.width:r.height)>t?(e.element.setMaxSize(t,void 0,{wordWrap:i.wordWrap||"none",textOverflow:i.textOverflow||"ellipsis"}),this._wrapped=i.wordWrap&&"none"!==i.wordWrap):!this._wrapped&&e.originalSize&&t>(this._isHorizontal?e.originalSize.width:e.originalSize.height)&&e.element.restoreText()}},coordsIn:function(n,t){var e=this.getCanvas(),i=this._options.isHorizontal,r=this._options.position,v=i?t:n;return!(i&&(n<e.left||n>e.width-e.right)||!i&&(t<e.top||t>e.height-e.bottom))&&(i&&"top"===r||!i&&"left"===r?v<e[r]:v>e[i?"height":"width"]-e[r])},_boundaryTicksVisibility:{min:!0,max:!0},adjust(){var n=this._seriesData,t=this._series.filter(e=>e.isVisible()).reduce((e,i)=>{var r=i.getViewport();return e.min=(0,w.$K)(r.min)?e.min<r.min?e.min:r.min:e.min,e.max=(0,w.$K)(r.max)?e.max>r.max?e.max:r.max:e.max,i.showZero&&(e=new os(e)).correctValueZeroLevel(),e},{});(0,w.$K)(t.min)&&(0,w.$K)(t.max)&&(n.minVisible=t.min,n.maxVisible=t.max),n.userBreaks=this._getScaleBreaks(this._options,{minVisible:n.minVisible,maxVisible:n.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(n,t,e){var A,z,i=this._orthogonalPositions,v=e.horizontalAlignment,D=e.verticalAlignment;return this._isHorizontal?(v===Nl?A=n+(t-n)/2:v===ts?A=n:v===nl&&(A=t),z=i[function $1(n){var t="start";return"center"===n&&(t="center"),"bottom"===n&&(t="end"),t}(D)]):(A=i[function j1(n){var t="start";return"center"===n&&(t="center"),"right"===n&&(t="end"),t}(v)],D===Ys?z=n:D===Nl?z=t+(n-t)/2:D===Ds&&(z=t)),{x:A,y:z}},_getTranslatedValue:function(n,t){var e=this._translator.translate(n,t,"semidiscrete"===this._options.type&&this._options.tickInterval),i=this._axisPosition,r=this._isHorizontal;return{x:r?e:i,y:r?i:e}},areCoordsOutsideAxis:function(n){var t=this._isHorizontal?n.x:n.y,e=this.getVisibleArea();return t<e[0]||t>e[1]},_getSkippedCategory:function(n){var t;return"discrete"===this._options.type&&this._tickOffset&&0!==n.length&&(t=n[n.length-1]),t},_filterBreaks:function(n,t,e){var i=t.minVisible,r=t.maxVisible,v=e?e.width:0;return n.reduce(function(D,A){var we,z=A.from,Q=A.to,ue=D[D.length-1];if(!(0,w.$K)(z)||!(0,w.$K)(Q))return D;if(z>Q&&(Q=[z,z=Q][0]),D.length&&z<ue.to)Q>ue.to&&(ue.to=Q>r?r:Q,ue.gapSize&&(ue.gapSize=void 0,ue.cumulativeWidth+=v));else if((z>=i&&z<r||Q<=r&&Q>i)&&(Q=Q<=r?Q:r)-(z=z>=i?z:i)<r-i){var Le,Ue;we={from:z,to:Q,cumulativeWidth:(null!==(Le=ue?.cumulativeWidth)&&void 0!==Le?Le:0)+v},A.gapSize&&(we.gapSize=te.Z.convertMillisecondsToDateUnits(Q-z),we.cumulativeWidth=null!==(Ue=ue?.cumulativeWidth)&&void 0!==Ue?Ue:0),D.push(we)}return D},[])},_getScaleBreaks:function(n,t,e,i){var r=this,v=(n.breaks||[]).map(function(D){return{from:r.parser(D.startValue),to:r.parser(D.endValue)}});return"discrete"!==n.type&&"datetime"===n.dataType&&n.workdaysOnly&&(v=v.concat(Vl(t.minVisible,t.maxVisible,n.workWeek,n.singleWorkdays,n.holidays))),!i&&"discrete"!==n.type&&"datetime"!==n.dataType&&n.autoBreaksEnabled&&0!==n.maxAutoBreakCount&&(v=v.concat(function V_(n,t,e){for(var{logarithmBase:i,type:r,maxAutoBreakCount:v}=n,{minVisible:D,maxVisible:A}=e,z=[],Q="logarithmic"===r?(on,Nt)=>Dt(Nt/on,i):(on,Nt)=>Nt-on,ue=Q(D,A),we=t.reduce((on,Nt)=>{var Jt=Nt.getPointsInViewPort();return on[0]=on[0].concat(Jt[0]),on[1]=on[1].concat(Jt[1]),on},[[],[]]),ut=.3*ue,It=function sC(n,t,e){var i,r,A,z,Q,v=null,D=[];for(i=1,r=n.length;i<r;i++)Q=e(A=n[i],z=n[i-1]),t.indexOf(A)>=0?(!v||Q>v.length)&&(v={start:A,end:z,length:Q}):(D.push(v&&Q<v.length?v:{start:A,end:z,length:Q}),v=null);return v&&D.push(v),D}(we[0].concat(we[1]).sort((on,Nt)=>Nt-on),we[1].filter(on=>we[0].indexOf(on)<0),Q).sort((on,Nt)=>Nt.length-on.length),Gt=xd.min.apply(null,It.map(on=>on.length))/1e3,ln=(0,w.$K)(v)?xd.min(v,It.length):It.length,En=0;En<ln&&It[En].length>=ut&&!(ue<=It[En].length);En++)((ue-=It[En].length)>Gt||ue<-Gt)&&(z.push({from:It[En].start,to:It[En].end}),ut=.3*ue);return Nu(z),z}(n,e,t))),Nu(v)},_drawBreak:function(n,t,e,i,r,v){var D=n-(this._translator.isInverted()?0:i+1),A={"stroke-width":1,stroke:r.borderColor,sharp:r.isWaved?void 0:r.isHorizontal?"h":"v"},z={stroke:r.color,"stroke-width":i},ue=function lC(n,t,e,i,r,v,D){var A=D?"bezier":"line",z=n.g().append(t);return function(Q,ue){n.path(e(function m2(n,t,e,i,r){if(!r)return[n,t+i,e,t+i];var v,D=(t+=i)+0,A=t+2,z=t+4,Q=[[n,A]];for(v=n;v<e+24;v+=24)Q.push([v+6,D,v+6,D,v+12,A,v+18,z,v+18,z,v+24,A]);return[].concat.apply([],Q)}(i,r,v,Q,D)),A).attr(ue).append(z)}}(this._renderer,v,this._isHorizontal?hE:function(we){return we},t,D,e,r.isWaved);ue(i/2,z),ue(0,A),ue(i,A)},_createBreakClipRect:function(n,t){var r,e=this._canvas,i=t-n;return r=this._isHorizontal?this._renderer.clipRect(e.left,n,e.width,i):this._renderer.clipRect(n,e.top,i,e.height),this._breaksElements=this._breaksElements||[],this._breaksElements.push(r),r.id},_createBreaksGroup:function(n,t){var e=this._renderer.g().attr({class:this._axisCssPrefix+"breaks","clip-path":this._createBreakClipRect(n,t)}).append(this._scaleBreaksGroup);return this._breaksElements=this._breaksElements||[],this._breaksElements.push(e),e},_disposeBreaksGroup:function(){(this._breaksElements||[]).forEach(function(n){n.dispose()}),this._breaksElements=null},drawScaleBreaks:function(n){var v,D,z,Q,ue,t=this,e=t._options,i=e.breakStyle,r=e.position,A=t._translator.getBusinessRange().breaks||[];if(t._disposeBreaksGroup(),A&&A.length){var we={color:t._options.containerColor,borderColor:i.color,isHorizontal:t._isHorizontal,isWaved:"straight"!==i.line.toLowerCase()};n?(v=n.start,D=n.end):(v=t._orthogonalPositions.start-(!e.visible||t._axisShift||r!==ts&&r!==Ys?0:3),D=t._orthogonalPositions.end+(!e.visible||r!==nl&&r!==Ds?0:3));var Le=t._createBreaksGroup(v,D);t._axisShift&&e.visible&&(z=t._createBreaksGroup(Q=t._axisPosition-t._axisShift-3,ue=Q+6)),A.forEach(function(Ue){if(!Ue.gapSize){var ut=t._getTranslatedCoord(Ue.to);t._drawBreak(ut,v,D,i.width,we,Le),t._axisShift&&e.visible&&t._drawBreak(ut,Q,ue,i.width,we,z)}})}},_getSpiderCategoryOption:E.ZT,shift:function(n){var t=this._options,e=t.isHorizontal,i=this.getMultipleAxesSpacing(),r=this._axisConstantLineGroups;function v(D,A){var z={translateX:0,translateY:0},Q=n[D]?n[D]+i:0;return z[e?"translateY":"translateX"]=(D===ts||D===Ys?-1:1)*Q,(A[D]||A).attr(z),Q}this._axisShift=v(t.position,this._axisGroup),v(t.position,this._axisElementsGroup),(e?[Ys,Ds]:[ts,nl]).forEach(D=>{v(D,r.above),v(D,r.under)})},getCustomPosition(n){var A,t=this.getOrthogonalAxis(),e=n??this.getResolvedPositionOption(),i=this.getOptions().offset,r=t.getTranslator(),v=t.getOptions().type,D=t.validateUnit(e);return"discrete"===v&&(!r._categories||r._categories.indexOf(D)<0)&&(D=void 0),A=this.positionIsBoundary(e)?this.getPredefinedPosition(e):(0,w.$K)(D)?r.to(D,-1):this.getPredefinedPosition(this.getOptions().position),isFinite(A)&&isFinite(i)&&(A+=i),A},getCustomBoundaryPosition(n){var{customPosition:t,offset:e}=this.getOptions(),i=n??this.getResolvedPositionOption(),r=this.getOrthogonalAxis(),v=r.getTranslator(),D=v.getCanvasVisibleArea();if((0,w.$K)(r._orthogonalPositions)&&0!==v.canvasLength){var A=this.getCustomPosition(i);if(!(0,w.$K)(A))return this.getResolvedBoundaryPosition();if((0,w.$K)(t)){if(A<=D.min)return this._isHorizontal?Ys:ts;if(A>=D.max)return this._isHorizontal?Ds:nl}else if((0,w.$K)(e)){if(A<=this._orthogonalPositions.start)return this._isHorizontal?Ys:ts;if(A>=this._orthogonalPositions.end)return this._isHorizontal?Ds:nl}return A}},getResolvedPositionOption(){var n,t=this.getOptions();return null!==(n=t.customPosition)&&void 0!==n?n:t.position},customPositionIsAvailable(){var n=this.getOptions();return(0,w.$K)(this.getOrthogonalAxis())&&((0,w.$K)(n.customPosition)||isFinite(n.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:n=>[Ys,ts,Ds,nl].indexOf(n)>=0,getPredefinedPosition(n){var t;return null===(t=this._orthogonalPositions)||void 0===t?void 0:t[n===Ys||n===ts?"start":"end"]},resolveOverlappingForCustomPositioning(n){var t=this;if(t.hasNonBoundaryPosition()||t.customPositionIsBoundary()||n.some(i=>i.hasNonBoundaryPosition())){var e={axes:[],ticks:[]};n.filter(i=>i.pane===t.pane).forEach(i=>{for(var r=0;r<t._majorTicks.length;r++){var v=t._majorTicks[r],D=v.label;if(D){e.axes.indexOf(i)<0&&t._detectElementsOverlapping(D,i._axisElement)&&(e.axes.push(i),t._shiftThroughOrthogonalAxisOverlappedTick(D,i));for(var A=0;A<i._majorTicks.length;A++){var Q=i._majorTicks[A].label;if(Q&&t._detectElementsOverlapping(D,Q)){e.ticks.push(v),t._shiftThroughAxisOverlappedTick(v),r=t._majorTicks.length;break}}}v.mark&&e.ticks.indexOf(v)<0&&(t._isHorizontal&&v.mark.attr("translateY")?v.mark.attr({translateY:0}):!t._isHorizontal&&v.mark.attr("translateX")&&v.mark.attr({translateX:0}))}})}},_shiftThroughOrthogonalAxisOverlappedTick(n,t){var e=n.getBBox(),i=t.getAxisPosition(),r=t.getOptions().label,v=r.position,D=r.indentFromAxis/2,A=this._isHorizontal?"translateX":"translateY",z=this._isHorizontal?ts:Ys,Q=n.attr(A),ue=(this._isHorizontal?e.x:e.y)+Q,Le=i-ue,Ue=ue+(this._isHorizontal?e.width:e.height)-i,ut={};ut[A]=Q,Le>0&&Ue>0&&(Ue-Le>1?ut[A]+=Le+D:Le-Ue>1?ut[A]-=Ue+D:ut[A]+=v===z?Le+D:-(Ue+D),n.attr(ut))},_shiftThroughAxisOverlappedTick(n){var t,e=n.label;if(e){var i=e.getBBox(),r=null===(t=n.mark)||void 0===t?void 0:t.getBBox(),v=this.getAxisPosition(),D=this.getOptions().label,A=D.indentFromAxis,z=D.position,Q=this._isHorizontal?Ys:ts,ue=this._isHorizontal?"translateY":"translateX",we=e.attr(ue),Le=(this._isHorizontal?i.y:i.x)+we,ut={};ut[ue]=we+(z===Q?v-Le+A:-(Le-v+(this._isHorizontal?i.height:i.width)+A)),e.attr(ut),n.mark&&(ut[ue]=(z===Q?1:-1)*((this._isHorizontal?r.height:r.width)-1),n.mark.attr(ut))}},_detectElementsOverlapping(n,t){if(!n||!t)return!1;var e=n.getBBox(),i=e.x+n.attr("translateX"),r=e.y+n.attr("translateY"),v=t.getBBox(),D=v.x+t.attr("translateX"),A=v.y+t.attr("translateY");return(D>=i&&D<=i+e.width||i>=D&&i<=D+v.width)&&(A>=r&&A<=r+e.height||r>=A&&r<=A+v.height)}}};function hE(n){var e,t=[];for(e=0;e<n.length;e+=2)t.push(n[e+1]),t.push(n[e]);return t}var Lm=Math.max,uC=function(n,t){var e=t.left,i=t.top,r=t.width-t.right,v=t.height-t.bottom;return n.reduce(function(D,A){return!A||A.isEmpty?D:{left:Lm(D.left,e-A.x),top:Lm(D.top,i-A.y),right:Lm(D.right,A.x+A.width-r),bottom:Lm(D.bottom,A.y+A.height-v)}},{left:0,right:0,top:0,bottom:0})},Qc=function(n){n.forEach(function(t){var e=t.getContentContainer();t.labelBBox=e?e.getBBox():{x:0,y:0,width:0,height:0}})},{PI:Bm,abs:cl,atan:Fm,round:Hu}=Math,Vm=Math.min,dC=Math.max,cC=X1.linear;function pE(n){var t;return(n=dt(n))>=315&&n<=360||n<45&&n>=0?t=1:n>=45&&n<135?t=2:n>=135&&n<225?t=3:n>=225&&n<315&&(t=4),t}var bd={_calculateValueMargins(n){var{minVisible:t,maxVisible:e}=this._getViewportRange();return n&&n.length>1&&(e=(t=t<n[0].value?t:n[0].value)>n[n.length-1].value?e:n[n.length-1].value),{minValue:t,maxValue:e}},applyMargins(){var n=this._calculateValueMargins(this._majorTicks),t=this._translator.getBusinessRange();t.addRange({minVisible:n.minValue,maxVisible:n.maxValue,interval:this._calculateRangeInterval(t.interval)}),this._translator.updateBusinessRange(t)},_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 n=this._options;return[n.startAngle,n.endAngle]},_updateRadius(n){var t=Vm(n.width-n.left-n.right,n.height-n.top-n.bottom)/2;this._radius=t<0?0:t},_updateCenter:function(n){this._center={x:n.left+(n.width-n.right-n.left)/2,y:n.top+(n.height-n.top-n.bottom)/2}},_processCanvas:function(n){return this._updateRadius(n),this._updateCenter(n),{left:0,right:0,width:this._getScreenDelta()}},_createAxisElement:function(){return this._renderer.circle()},_updateAxisElementPosition:function(){var n=this.getCenter();this._axisElement.attr({cx:n.x,cy:n.y,r:this.getRadius()})},_boundaryTicksVisibility:{min:!0},_getSpiderCategoryOption:function(){return this._options.firstPointOnStartAngle},_validateOptions(n){var t=n.originValue,e=n.wholeRange={},i=n.period;(0,w.$K)(t)&&(t=this.validateUnit(t)),i>0&&"numeric"===n.argumentType&&(e.endValue=(t=t||0)+i,this._viewport=Dr([t,e.endValue])),(0,w.$K)(t)&&(e.startValue=t)},getMargins(){var n=this._options.tick,t=dC(n.visible?n.length/2+n.shift:0,0),e=this.getRadius(),{x:i,y:r}=this._center,v=this._majorTicks.map(z=>z.label&&z.label.getBBox()).filter(z=>z),D=(0,y.l)({},this._canvas,{left:i-e,top:r-e,right:this._canvas.width-(i+e),bottom:this._canvas.height-(r+e)}),A=uC(v,D);return Object.keys(A).forEach(z=>A[z]=A[z]<t?t:A[z]),A},_updateLabelsPosition(){Qc(this._majorTicks),this._adjustLabelsCoord(0,0,!0),this._checkBoundedLabelsOverlapping(this._majorTicks,this._majorTicks.map(n=>n.labelBBox))},_setVisualRange:E.ZT,applyVisualRangeSetter:E.ZT,_getStick:function(){return this._options.firstPointOnStartAngle||"discrete"!==this._options.type},_getTranslatedCoord:function(n,t){return this._translator.translate(n,t)-90},_getCanvasStartEnd:function(){return{start:-90,end:270}},_getStripGraphicAttributes:function(n,t){var e=this.getCenter(),i=this.getAngles()[0],r=this.getRadius();return{x:e.x,y:e.y,innerRadius:0,outerRadius:r,startAngle:-t-i,endAngle:-n-i}},_createStrip:function(n){return this._renderer.arc(n.x,n.y,n.innerRadius,n.outerRadius,n.startAngle,n.endAngle)},_getStripLabelCoords:function(n,t){var e=this._getStripGraphicAttributes(n,t),r=Ft(e.startAngle+(e.endAngle-e.startAngle)/2),v=this.getRadius()/2,D=this.getCenter();return{x:Hu(D.x+v*r.cos),y:Hu(D.y-v*r.sin),align:"center"}},_getConstantLineGraphicAttributes:function(n){var t=this.getCenter(),e=this.getRadius();return{points:[t.x,t.y,t.x+e,t.y]}},_createConstantLine:function(n,t){return this._createPathElement(this._getConstantLineGraphicAttributes(n).points,t)},_rotateConstantLine(n,t){var{x:e,y:i}=this.getCenter();n.rotate(t+this.getAngles()[0],e,i)},_getConstantLineLabelsCoords:function(n){var t=Ft(-n-this.getAngles()[0]),e=this.getRadius()/2,i=this.getCenter();return{x:Hu(i.x+e*t.cos),y:Hu(i.y-e*t.sin)}},_checkAlignmentConstantLineLabels:E.ZT,_adjustDivisionFactor:function(n){return 180*n/(this.getRadius()*Bm)},_getScreenDelta:function(){var n=this.getAngles();return cl(n[0]-n[1])},_getTickMarkPoints:function(n,t,e){var{shift:i=0}=e,r=this.getCenter(),v=this.getRadius()+t*{inside:-1,center:-.5,outside:0}[this._options.tickOrientation||"center"];return[r.x+v+i,r.y,r.x+v+t+i,r.y]},_getLabelAdjustedCoord:function(n,t,e,i){var r=n.labelCoords,v=r.y,D=r.angle,A=Ft(D),z=A.cos,Q=A.sin,ue=n.labelBBox,we=ue.width/2,Le=ue.height/2,Ue=this._options.label.indentFromAxis||0,ut=r.x+Ue*z,It=v+(v-ue.y-Le)+Ue*Q,Gt=0,ln=0;switch(pE(D)){case 1:Gt=we,ln=Le*Q;break;case 2:Gt=we*z,ln=Le;break;case 3:Gt=-we,ln=Le*Q;break;case 4:Gt=we*z,ln=-Le}if(i){var En=this._canvas,on=ut-r.x+Gt,Nt=It-r.y+ln;ue.x+on<En.originalLeft&&(Gt-=ue.x+on-En.originalLeft),ue.x+ue.width+on>En.width-En.originalRight&&(Gt-=ue.x+ue.width+on-(En.width-En.originalRight)),ue.y+Nt<En.originalTop&&(ln-=ue.y+Nt-En.originalTop),ue.y+ue.height+Nt>En.height-En.originalBottom&&(ln-=ue.y+ue.height+Nt-(En.height-En.originalBottom))}return{x:ut+Gt,y:It+ln}},_getGridLineDrawer:function(){var n=this;return function(t,e){var i=n.getCenter();return n._createPathElement(n._getGridPoints().points,e).rotate(t.coords.angle,i.x,i.y)}},_getGridPoints:function(){var n=this.getRadius(),t=this.getCenter();return{points:[t.x,t.y,t.x+n,t.y]}},_getTranslatedValue:function(n,t){var e=this.getAngles()[0],i=this._translator.translate(n,-t),r=Hi(this.getCenter(),e,i,this.getRadius());return{x:r.x,y:r.y,angle:this.getTranslatedAngle(i)}},_getAdjustedStripLabelCoords:function(n){var t=n.labelBBox;return{translateY:n.label.attr("y")-t.y-t.height/2}},coordsIn:function(n,t){return $i(this.getCenter(),n,t).r>this.getRadius()},_rotateTick:function(n,t){var e=this.getCenter();n.rotate(t.angle,e.x,e.y)},_validateOverlappingMode:function(n){return Eo_validateOverlappingMode(n)},_validateDisplayMode:function(){return"standard"},_getStep:function(n){var t=this.getRadius()+(this._options.label.indentFromAxis||0),e=n.reduce(function(v,D){var A=v;return v.width<D.width&&(A.width=D.width),v.height<D.height&&(A.height=D.height),A},{width:0,height:0}),i=cl(2*Fm(e.height/(2*t-e.width))*180/Bm),r=cl(2*Fm(e.width/(2*t-e.height))*180/Bm);return Eo_getTicksCountInRange(this._majorTicks,"angle",dC(i,r))},_checkBoundedLabelsOverlapping:function(n,t,e){var i=this._options.label;if("hide"===(e=e||this._validateOverlappingMode(i.overlappingBehavior))){var r=n.reduce((v,D,A)=>D.label?A:v,null);r&&Eo_areLabelsOverlap(t[0],t[r],i.minSpacing,"center")&&("first"===i.hideFirstOrLast?n[0].removeLabel():n[r].removeLabel())}},shift:function(n){this._axisGroup.attr({translateX:n.right,translateY:n.bottom}),this._axisElementsGroup.attr({translateX:n.right,translateY:n.bottom})},getTranslatedAngle(n){return n+this.getAngles()[0]-90}},Nm=bd,gE=(0,y.l)({},bd,{_createAxisElement:function(){return this._renderer.path([],"area")},_updateAxisElementPosition:function(){this._axisElement.attr({points:Vn(this.getSpiderTicks(),function(n){return{x:n.coords.x,y:n.coords.y}})})},_getStick:function(){return!0},_getSpiderCategoryOption:function(){return!0},getSpiderTicks:function(){var n=this.getFullTicks();return this._spiderTicks=n.map(zg(this,this.renderer,{},{},this._getSkippedCategory(n),!0)),this._spiderTicks.forEach(function(t){t.initCoords()}),this._spiderTicks},_getStripGraphicAttributes:function(n,t){for(var r,v,D,A,e=this.getCenter(),i=this.getSpiderTicks(),z=[],Q=0,ue=i.length;Q<ue;)(A=i[Q].coords).angle>=n&&A.angle<=t&&(r||z.push((A.x+(r=(i[Q-1]||i[i.length-1]).coords).x)/2,(A.y+r.y)/2),z.push(A.x,A.y),v={x:(A.x+(D=(i[Q+1]||i[0]).coords).x)/2,y:(A.y+D.y)/2}),Q++;return z.push(v.x,v.y),z.push(e.x,e.y),{points:z}},_createStrip:function(n){var{points:t}=n;return this._renderer.path(t,"area")},_getTranslatedCoord:function(n,t){return this._translator.translate(n,t)-90},_setTickOffset:function(){this._tickOffset=!1}}),q1={_resetMargins(){this._reinitTranslator(this._getViewportRange())},_getStick:cC._getStick,_getSpiderCategoryOption:E.ZT,_getTranslatorOptions:function(){return{isHorizontal:!0,stick:this._getStick()}},getRadius:bd.getRadius,getCenter:bd.getCenter,getAngles:bd.getAngles,_updateRadius:bd._updateRadius,_updateCenter:bd._updateCenter,_processCanvas(n){return this._updateRadius(n),this._updateCenter(n),{left:0,right:0,startPadding:n.startPadding,endPadding:n.endPadding,width:this.getRadius()}},_createAxisElement:cC._createAxisElement,_updateAxisElementPosition:function(){var n=this.getCenter();this._axisElement.attr({points:[n.x,n.y,n.x+this.getRadius(),n.y]}).rotate(this.getAngles()[0]-90,n.x,n.y)},_getScreenDelta:function(){return this.getRadius()},_getTickMarkPoints:function(n,t){return[n.x-t/2,n.y,n.x+t/2,n.y]},_getLabelAdjustedCoord:function(n){var t=n.labelCoords,e=t.y,i=Ft(t.angle),r=this._options.label.indentFromAxis||0,v=n.labelBBox;return{x:t.x-cl(r*i.sin)+cl(v.width/2*i.cos)-v.width/2,y:e+(e-v.y)-cl(v.height/2*i.sin)+cl(r*i.cos)}},_getGridLineDrawer:function(){var n=this;return function(t,e){var i=n._getGridPoints(t.coords);return n._renderer.circle(i.cx,i.cy,i.r).attr(e).sharp()}},_getGridPoints:function(n){var t=this.getCenter(),e=_n(t.x,t.y,n.x,n.y);return e>this.getRadius()?{cx:null,cy:null,r:null}:{cx:t.x,cy:t.y,r:e}},_getTranslatedValue:function(n,t){var e=this.getAngles()[0],i=Hi(this.getCenter(),e,0,this._translator.translate(n,t));return{x:i.x,y:i.y,angle:e-90}},_getTranslatedCoord:function(n,t){return this._translator.translate(n,t)},_getCanvasStartEnd(){var n=this.getTranslator().getBusinessRange().invert,t=[0,this.getRadius()];return n&&t.reverse(),{start:t[0],end:t[1]}},_getStripGraphicAttributes:function(n,t){var e=this.getCenter();return{x:e.x,y:e.y,innerRadius:n,outerRadius:t}},_createStrip:function(n){return this._renderer.arc(n.x,n.y,n.innerRadius,n.outerRadius,0,360)},_getAdjustedStripLabelCoords:bd._getAdjustedStripLabelCoords,_getStripLabelCoords:function(n,t){var e=n+(t-n)/2,i=this.getCenter(),r=Hu(i.y-e);return{x:i.x,y:r,align:"center"}},_getConstantLineGraphicAttributes:function(n){var t=this.getCenter();return{cx:t.x,cy:t.y,r:n}},_createConstantLine:function(n,t){var e=this._getConstantLineGraphicAttributes(n);return this._renderer.circle(e.cx,e.cy,e.r).attr(t).sharp()},_getConstantLineLabelsCoords:function(n){var t=this.getCenter(),e=Hu(t.y-n);return{x:t.x,y:e}},_checkAlignmentConstantLineLabels:E.ZT,_rotateTick:function(n,t,e){!e&&n.rotate(t.angle+90,t.x,t.y)},_validateOverlappingMode:bd._validateOverlappingMode,_validateDisplayMode:bd._validateDisplayMode,_getStep:function(n){var t=pE(this.getAngles()[0]),e=this._options.label.minSpacing,i=2===t||4===t?function(v){return v.width+e}:function(v){return v.height},r=n.reduce((v,D)=>dC(v,i(D)),0);return Eo_getTicksCountInRange(this._majorTicks,2===t||4===t?"x":"y",r)}},J1=(0,y.l)({},q1,{_createPathElement:function(n,t){return this._renderer.path(n,"area").attr(t).sharp()},setSpiderTicks:function(n){this._spiderTicks=n},_getGridLineDrawer:function(){var n=this;return function(t,e){return n._createPathElement(n._getGridPoints(t.coords).points,e)}},_getGridPoints:function(n){var t=this.getCenter(),e=_n(t.x,t.y,n.x,n.y);return this._getGridPointsByRadius(e)},_getGridPointsByRadius:function(n){var t=this.getCenter();return n>this.getRadius()?{points:null}:{points:Vn(this._spiderTicks,function(e){var i=Ft(e.coords.angle);return{x:Hu(t.x+n*i.cos),y:Hu(t.y+n*i.sin)}})}},_getStripGraphicAttributes:function(n,t){var e=this._getGridPointsByRadius(t).points;return{points:[this._getGridPointsByRadius(n).points,e.reverse()]}},_createStrip:gE._createStrip,_getConstantLineGraphicAttributes:function(n){return this._getGridPointsByRadius(n)},_createConstantLine:function(n,t){return this._createPathElement(this._getConstantLineGraphicAttributes(n).points,t)}}),Wg=function(n){return Vn(n||[],function(t){return t.value})},Hm=Math,zu=Hm.abs,wd=Hm.max,zm=Hm.min,N_=Array.isArray,fp="top",eh="bottom",lu="left",Wu="right",Ug="center",Jd="keep",hC="shift",Qd="reset",Zg="rotate";function Um(n,t,e,i,r,v){var D,{allowNegatives:A,linearThreshold:z}=v;return hp({axisType:n.type,dataType:n.dataType,logBase:n.logarithmBase,allowNegatives:A,linearThreshold:z,axisDivisionFactor:r(n.axisDivisionFactor||50),minorAxisDivisionFactor:r(n.minorAxisDivisionFactor||15),numberMultipliers:n.numberMultipliers,calculateMinors:n.minorTick.visible||n.minorGrid.visible||n.calculateMinors,allowDecimals:n.allowDecimals,endOnTick:n.endOnTick,incidentOccurred:t,firstDayOfWeek:null===(D=n.workWeek)||void 0===D?void 0:D[0],skipTickGeneration:e,skipCalculationLimits:n.skipCalculationLimits,generateExtraTick:n.generateExtraTick,minTickInterval:n.minTickInterval,rangeIsEmpty:i})}function mE(n,t,e){var i=n.getOptions();return zg(n,t,i.tick,i.grid,e,!1)}function _E(n,t){var e=n.getOptions();return zg(n,t,e.minorTick,e.minorGrid)}function W_(n,t,e){var i=n.getOptions();return zg(n,t,(0,y.l)({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,e?-1:1)}function ns(n,t,e,i){(n||[]).forEach(r=>r[t](e,i))}function hl(n){ns(n,"initCoords")}function _p(n,t){ns(n,"drawMark",t)}function Xs(n,t){ns(n,"drawGrid",t)}function ec(n,t,e){ns(n,"updateTickPosition",t,e)}function Zm(n,t){ns(n,"updateGridPosition",t)}function bl(n){for(var t=n.length-1;t>=0&&U_(n,t);t--);for(t=0;t<n.length&&U_(n,t);t++)t--}function U_(n,t){return(null===n[t].coords.x||null===n[t].coords.y)&&(n.splice(t,1),!0)}function Gg(n,t){return 180*Hm.asin((n[0].height+t.minSpacing)/(n[1].x-n[0].x))/Hm.PI<45?-45:-90}function th(n,t,e){n.forEach(function(i,r){i.getContentContainer()&&(r%t!=0?i.removeLabel():e&&e(i,r))})}function tc(n,t){return void 0===n?t:null===n?void 0:n}var Hl=function(n){this._renderer=n.renderer,this._incidentOccurred=n.incidentOccurred,this._eventTrigger=n.eventTrigger,this._stripsGroup=n.stripsGroup,this._stripLabelAxesGroup=n.stripLabelAxesGroup,this._labelsAxesGroup=n.labelsAxesGroup,this._constantLinesGroup=n.constantLinesGroup,this._scaleBreaksGroup=n.scaleBreaksGroup,this._axesContainerGroup=n.axesContainerGroup,this._gridContainerGroup=n.gridGroup,this._axisCssPrefix=n.widgetClass+"-"+(n.axisClass?n.axisClass+"-":""),this._setType(n.axisType,n.drawingType),this._createAxisGroups(),this._translator=this._createTranslator(),this.isArgumentAxis=n.isArgumentAxis,this._viewport={},this._prevDataInfo={},this._firstDrawing=!0,this._initRange={},this._getTemplate=n.getTemplate};Hl.prototype={constructor:Hl,_drawAxis(){var n=this._options;n.visible&&(this._axisElement=this._createAxisElement(),this._updateAxisElementPosition(),this._axisElement.attr({"stroke-width":n.width,stroke:n.color,"stroke-opacity":n.opacity}).sharp(this._getSharpParam(!0),this.getAxisSharpDirection()).append(this._axisLineGroup))},_createPathElement(n,t,e){return this.sharp(this._renderer.path(n,"line").attr(t),e)},sharp(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n.sharp(this._getSharpParam(),t)},customPositionIsAvailable:()=>!1,getOrthogonalAxis:E.ZT,getCustomPosition:E.ZT,getCustomBoundaryPosition:E.ZT,resolveOverlappingForCustomPositioning:E.ZT,hasNonBoundaryPosition:()=>!1,customPositionIsBoundaryOrthogonalAxis:()=>!1,getResolvedBoundaryPosition(){return this.getOptions().position},getAxisSharpDirection(){var n=this.getResolvedBoundaryPosition();return this.hasNonBoundaryPosition()||n!==eh&&n!==Wu?1:-1},getSharpDirectionByCoords(n){var t=this._getCanvasStartEnd(),e=Math.max(t.start,t.end);return this.getRadius?0:e!==n[this._isHorizontal?"x":"y"]?1:-1},_getGridLineDrawer:function(){var n=this;return function(t,e){var i=n._getGridPoints(t.coords);return i.points?n._createPathElement(i.points,e,n.getSharpDirectionByCoords(t.coords)):null}},_getGridPoints:function(n){var t=this._isHorizontal,e=t?"x":"y",i=this._orthogonalPositions,r=i.start,v=i.end,D=this.borderOptions,A=t?lu:fp,z=t?Wu:eh,Q=this.getCanvas(),ue={left:Q.left,right:Q.width-Q.right,top:Q.top,bottom:Q.height-Q.bottom},Ue=4+(D.visible&&D[A]?ue[A]:void 0),ut=(D.visible&&D[z]?ue[z]:void 0)-4;return this.areCoordsOutsideAxis(n)||void 0===n[e]||n[e]<Ue||n[e]>ut?{points:null}:{points:t?null!==n[e]?[n[e],r,n[e],v]:null:null!==n[e]?[r,n[e],v,n[e]]:null}},_getConstantLinePos:function(n,t,e){var i=this._getTranslatedCoord(n);if(!(!(0,w.$K)(i)||i<zm(t,e)||i>wd(t,e)))return i},_getConstantLineGraphicAttributes:function(n){var t=this._orthogonalPositions.start,e=this._orthogonalPositions.end;return{points:this._isHorizontal?[n,t,n,e]:[t,n,e,n]}},_createConstantLine:function(n,t){return this._createPathElement(this._getConstantLineGraphicAttributes(n).points,t,function $g(n,t){return Math.max(t.start,t.end)!==n?1:-1}(n,this._getCanvasStartEnd()))},_drawConstantLineLabelText:function(n,t,e,i,r){var{font:v,cssClass:D}=i;return this._renderer.text(n,t,e).css(di((0,y.l)({},this._options.label.font,v))).attr({align:"center",class:D}).append(r)},_drawConstantLineLabels:function(n,t,e,i){var r,v=t.text,A=this._options.label;this._checkAlignmentConstantLineLabels(t),v=null!==(r=v)&&void 0!==r?r:this.formatLabel(n,A);var z=this._getConstantLineLabelsCoords(e,t);return this._drawConstantLineLabelText(v,z.x,z.y,t,i)},_getStripPos:function(n,t,e,i,r){var A,z,Q,ue,we,v=!(!r.minVisible&&!r.maxVisible),D=(r.categories||[]).reduce(function(En,on){return En.push(on.valueOf()),En},[]);if(!v&&(0,w.$K)(n)&&(0,w.$K)(t)){var Le,Ue,ut=this.parser(n),It=this.parser(t);if(ue=D.indexOf(null!==(Le=ut?.valueOf())&&void 0!==Le?Le:void 0),we=D.indexOf(null!==(Ue=It?.valueOf())&&void 0!==Ue?Ue:void 0),-1===ue||-1===we)return{from:0,to:0,outOfCanvas:!0};ue>we&&(Q=t,t=n,n=Q)}(0,w.$K)(n)?(n=this.validateUnit(n,"E2105","strip"),A=this._getTranslatedCoord(n,-1)):A=e,(0,w.$K)(t)?(t=this.validateUnit(t,"E2105","strip"),z=this._getTranslatedCoord(t,1)):z=i;var Gt=A<z?{from:A,to:z}:{from:z,to:A},ln=this.getVisibleArea();return(Gt.from<=ln[0]&&Gt.to<=ln[0]||Gt.from>=ln[1]&&Gt.to>=ln[1])&&(Gt.outOfCanvas=!0),Gt},_getStripGraphicAttributes:function(n,t){var e,i,r,v,D=this._orthogonalPositions,A=D.start,z=D.end;return this._isHorizontal?(e=n,i=zm(A,z),r=t-n,v=zu(A-z)):(e=zm(A,z),i=n,r=zu(A-z),v=zu(n-t)),{x:e,y:i,width:r,height:v}},_createStrip:function(n){return this._renderer.rect(n.x,n.y,n.width,n.height)},_adjustStripLabels:function(){var n=this;this._strips.forEach(function(t){t.label&&t.label.attr(n._getAdjustedStripLabelCoords(t))})},_adjustLabelsCoord(n,t,e){var i=r=>this._getLabelAdjustedCoord(r,n+(r.labelOffset||0),t,e);this._majorTicks.forEach(function(r){r.label?(r.updateMultilineTextAlignment(),r.label.attr(i(r))):r.templateContainer&&r.templateContainer.attr(i(r))})},_adjustLabels:function(n){var t=this.getOptions(),e=t.position===t.label.position,i=this._majorTicks.reduce(function(v,D){if(!D.getContentContainer())return v;var A=D.labelRotationAngle?Yi(D.labelBBox,[D.labelCoords.x,D.labelCoords.y],-D.labelRotationAngle):D.labelBBox;return{width:wd(v.width||0,A.width),height:wd(v.height||0,A.height),offset:wd(v.offset||0,D.labelOffset||0)}},{}),r=e?this._isHorizontal?i.height:i.width:0;return this._adjustLabelsCoord(n,i.width),n+r+(r&&this._options.label.indentFromAxis)+(e?i.offset:0)},_getLabelAdjustedCoord:function(n,t,e){t=t||0;var ut,It,i=this._options,v=n.templateContainer&&n.templateContainer.getBBox()||Yi(n.labelBBox,[n.labelCoords.x,n.labelCoords.y],-n.labelRotationAngle||0),D=n.labelAlignment||i.label.alignment,A="discrete"===this._options.type,z=n.labelRotationAngle%90==0,Q=i.label.indentFromAxis,ue=i.label.position,we=this._axisPosition,Le=n.labelCoords,Ue=Le.x;return this._isHorizontal?(It=ue===eh?we+Q-v.y+t:we-Q-(v.y+v.height)-t,ut=D===Wu?A&&z?n.coords.x-(v.x+v.width):Ue-v.x-v.width:D===lu?A&&z?Ue-v.x-(n.coords.x-Ue):Ue-v.x:Ue-v.x-v.width/2):(It=Le.y-v.y-v.height/2,ue===lu?(ut=D===lu?we-Q-e-v.x:D===Ug?we-Q-e/2-v.x-v.width/2:we-Q-v.x-v.width,ut-=t):(ut=D===Wu?we+Q+e-v.x-v.width:D===Ug?we+Q+e/2-v.x-v.width/2:we+Q-v.x,ut+=t)),{translateX:ut,translateY:It}},_createAxisConstantLineGroups:function(){var n=this._renderer,e=this._axisCssPrefix+"constant-lines",i=n.g().attr({class:e}),r=n.g().attr({class:e}),v=n.g().attr({class:e});return{inside:i,outside1:r,left:r,top:r,outside2:v,right:v,bottom:v,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 n=this._renderer,t=this._axisCssPrefix;this._axisGroup=n.g().attr({class:t+"axis"}).enableLinks(),this._axisStripGroup=n.g().attr({class:t+"strips"}),this._axisGridGroup=n.g().attr({class:t+"grid"}),this._axisElementsGroup=n.g().attr({class:t+"elements"}),this._axisLineGroup=n.g().attr({class:t+"line"}).linkOn(this._axisGroup,"axisLine").linkAppend(),this._axisTitleGroup=n.g().attr({class:t+"title"}).append(this._axisGroup),this._axisConstantLineGroups={above:this._createAxisConstantLineGroups(),under:this._createAxisConstantLineGroups()},this._axisStripLabelGroup=n.g().attr({class:t+"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(n,t,e,i,r,v){e=e||this._getViewportRange();var D={value:n,valueText:bm(n,{labelOptions:t,ticks:v||Wg(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&&(D.point=i),D},formatLabel:function(n,t,e,i,r,v){var D=this._getLabelFormatObject(n,t,e,i,r,v);return(0,w.mf)(t.customizeText)?t.customizeText.call(D,D):D.valueText},formatHint:function(n,t,e){var i=this._getLabelFormatObject(n,t,e);return(0,w.mf)(t.customizeHint)?t.customizeHint.call(i,i):void 0},formatRange(n,t,e,i){return kw({startValue:n,endValue:t,tickInterval:e,argumentFormat:i,axisOptions:this.getOptions()})},_setTickOffset:function(){var t=this._options.discreteAxisDivisionMode;this._tickOffset=+("crossLabels"!==t||!t)},aggregatedPointBetweenTicks(){return"crossTicks"===this._options.aggregatedPointsPosition},resetApplyingAnimation:function(n){this._resetApplyingAnimation=!0,n&&(this._firstDrawing=!0)},isFirstDrawing(){return this._firstDrawing},getMargins:function(){var Jt,un,n=this,{position:t,offset:e,customPosition:i,placeholderSize:r,grid:v,tick:D,crosshairMargin:A}=n._options,z=(0,w.$K)(i),Q=n.getResolvedBoundaryPosition(),ue=n.getCanvas(),we=ue.left,Le=ue.top,Ue=ue.width-ue.right,ut=ue.height-ue.bottom,It=wd(v.visible&&v.width||0,D.visible&&D.width||0),Gt=n._axisConstantLineGroups.above,ln=n._axisConstantLineGroups.under,En=[n._axisElementsGroup,Gt.outside1,Gt.outside2,ln.outside1,ln.outside2,n._axisLineGroup].map(Jt=>Jt&&Jt.getBBox()).concat((!(un=(Jt=n._axisTitleGroup)&&Jt.getBBox())||un.isEmpty||(n._isHorizontal?(un.x=we,un.width=Ue-we):(un.y=Le,un.height=ut-Le)),un)),on=uC(En,ue);if(on[t]+=A,n.hasNonBoundaryPosition()&&z&&(on[Q]=0),r&&(on[t]=r),It&&(n._isHorizontal&&ue.right<It&&on.right<It&&(on.right=It),!n._isHorizontal&&ue.bottom<It&&on.bottom<It&&(on.bottom=It)),!z&&(0,w.$K)(e)){var Nt=n.customPositionIsBoundary()&&(e>0&&(Q===lu||Q===fp)||e<0&&(Q===Wu||Q===eh));on[Q]-=Nt?e:0}return on},validateUnit:function(n,t,e){return void 0===(n=this.parser(n))&&t&&this._incidentOccurred(t,[e]),n},_setType:function(n,t){var e;switch(n){case"xyAxes":e=X1;break;case"polarAxes":e=o}(0,y.l)(this,e[t])},_getSharpParam:function(){return!0},_disposeBreaksGroup:E.ZT,dispose:function(){[this._axisElementsGroup,this._axisStripGroup,this._axisGroup].forEach(function(n){n.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(n){this.pane=n,this._options.pane=n},setTypes:function(n,t,e){this._options.type=n||this._options.type,this._options[e]=t||this._options[e],this._updateTranslator()},resetTypes:function(n){this._options.type=this._initTypes.type,this._options[n]=this._initTypes[n]},getTranslator:function(){return this._translator},updateOptions:function(n){var t=this,e=n.label;(function Kg(n){var t,e=n.label,i=n.position,r=n.isHorizontal?eh:lu,v=n.isHorizontal?fp:Wu,D=e.position;i!==r&&i!==v&&(i=r),D&&"outside"!==D?"inside"===D&&(D={[fp]:eh,[eh]:fp,[lu]:Wu,[Wu]:lu}[i]):D=i,D!==r&&D!==v&&(D=i),e.alignment!==Ug&&!e.userAlignment&&(e.alignment={[fp]:Ug,[eh]:Ug,[lu]:Wu,[Wu]:lu}[D]),n.position=i,e.position=D,n.hoverMode=n.hoverMode?n.hoverMode.toLowerCase():"none",e.minSpacing=null!==(t=e.minSpacing)&&void 0!==t?t:5,n.type&&(n.type=n.type.toLowerCase()),n.argumentType&&(n.argumentType=n.argumentType.toLowerCase()),n.valueType&&(n.valueType=n.valueType.toLowerCase())})(n),t._options=n,n.tick=n.tick||{},n.minorTick=n.minorTick||{},n.grid=n.grid||{},n.minorGrid=n.minorGrid||{},n.title=n.title||{},n.marker=n.marker||{},t._initTypes={type:n.type,argumentType:n.argumentType,valueType:n.valueType},t._setTickOffset(),t._isHorizontal=n.isHorizontal,t.pane=n.pane,t.name=n.name,t.priority=n.priority,t._hasLabelFormat=""!==e.format&&(0,w.$K)(e.format),t._textOptions={opacity:e.opacity,align:"center",class:e.cssClass},t._textFontStyles=di(e.font),"logarithmic"===n.type&&n.logarithmBaseError&&(t._incidentOccurred("E2104"),delete n.logarithmBaseError),t._updateTranslator(),t._createConstantLines(),t._strips=(n.strips||[]).map(i=>function eI(n,t){var e,i,r=t.label||{};return{options:t,label:null,rect:null,_getCoord(){var v=n._getCanvasStartEnd(),D=n._translator.getBusinessRange();return n._getStripPos(t.startValue,t.endValue,v.start,v.end,D)},_drawLabel:v=>n._renderer.text(r.text,v.x,v.y).css(di((0,y.l)({},n.getOptions().label.font,r.font))).attr({align:"center",class:r.cssClass}).append(n._axisStripLabelGroup),draw(){if(!n._translator.getBusinessRange().isEmpty()&&((0,w.$K)(t.startValue)||(0,w.$K)(t.endValue))&&(0,w.$K)(t.color)){var v=this._getCoord();if(this.labelCoords=r.text?n._getStripLabelCoords(v.from,v.to,r):null,v.outOfCanvas||!(0,w.$K)(v.to)||!(0,w.$K)(v.from))return;this.rect=n._createStrip(n._getStripGraphicAttributes(v.from,v.to)).attr({fill:t.color}).append(n._axisStripGroup),this.label=r.text?this._drawLabel(this.labelCoords):null}},getContentContainer(){return this.label},removeLabel(){},updatePosition(v){var D=this._getCoord();v&&e?(this.label&&this.label.attr(n._getStripLabelCoords(e.from,e.to,t.label)),this.rect&&this.rect.attr(n._getStripGraphicAttributes(e.from,e.to)),this.label&&this.label.animate(n._getStripLabelCoords(D.from,D.to,t.label)),this.rect&&this.rect.animate(n._getStripGraphicAttributes(D.from,D.to))):(this.label&&this.label.attr(n._getStripLabelCoords(D.from,D.to,t.label)),this.rect&&this.rect.attr(n._getStripGraphicAttributes(D.from,D.to)))},saveCoords(){i=e,e=this._getCoord()},resetCoordinates(){e=i}}}(t,i)),t._majorTicks=t._minorTicks=null,t._firstDrawing=!0},calculateInterval:function(n,t){var e=this._options;if(!e||"logarithmic"!==e.type)return zu(n-t);var{allowNegatives:i,linearThreshold:r}=new os(this.getTranslator().getBusinessRange());return zu(xr(n,e.logarithmBase,i,r)-xr(t,e.logarithmBase,i,r))},getCanvasRange(){var n=this._translator;return{startValue:n.from(n.translate("canvas_position_start")),endValue:n.from(n.translate("canvas_position_end"))}},_processCanvas:function(n){return n},updateCanvas:function(n,t){if(t)this._orthogonalPositions=null;else{var e=this._orthogonalPositions={start:this._isHorizontal?n.top:n.left,end:this._isHorizontal?n.height-n.bottom:n.width-n.right};e.center=e.start+(e.end-e.start)/2}this._canvas=n,this._translator.updateCanvas(this._processCanvas(n)),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(),ns(this._outsideConstantLines,"removeLabel"))},_resolveLogarithmicOptionsForRange(n){var t=this._options;"logarithmic"===t.type&&(n.addRange({allowNegatives:void 0!==t.allowNegatives?t.allowNegatives:n.min<=0}),isNaN(t.linearThreshold)||(n.linearThreshold=t.linearThreshold))},adjustViewport(n){var t=this._options,e="discrete"===t.type,i=this._seriesData&&this._seriesData.categories||[],r=this.adjustRange(Dr(t.wholeRange)),v=this.getViewport()||{},D=new os(n);this._addConstantLinesToRange(D);var A=(0,w.$K)(v.startValue),z=(0,w.$K)(v.endValue);e||(A=A&&(!(0,w.$K)(r.endValue)||v.startValue<r.endValue),z=z&&(!(0,w.$K)(r.startValue)||v.endValue>r.startValue));var Q=A?v.startValue:D.minVisible,ue=z?v.endValue:D.maxVisible;if(e){var Ue=_r(i,r.startValue,r.endValue);D.categories=i=Ue.categories}else{var we,Le;D.min=null!==(we=r.startValue)&&void 0!==we?we:D.min,D.max=null!==(Le=r.endValue)&&void 0!==Le?Le:D.max}var ut=Gr({axisType:t.type,dataType:t.dataType,base:t.logarithmBase},{startValue:A?v.startValue:void 0,endValue:z?v.endValue:void 0,length:v.length},{categories:i,min:r.startValue,max:r.endValue},{categories:i,min:Q,max:ue});return D.minVisible=ut.startValue,D.maxVisible=ut.endValue,!(0,w.$K)(D.min)&&(D.min=D.minVisible),!(0,w.$K)(D.max)&&(D.max=D.maxVisible),D.addRange({}),this._resolveLogarithmicOptionsForRange(D),D},adjustRange(n){n=n||{};var t="discrete"===this._options.type,i=!1===this._options.allowNegatives;if("logarithmic"===this._options.type&&(n.startValue=i&&n.startValue<=0?null:n.startValue,n.endValue=i&&n.endValue<=0?null:n.endValue),!t&&(0,w.$K)(n.startValue)&&(0,w.$K)(n.endValue)&&n.startValue>n.endValue){var r=n.endValue;n.endValue=n.startValue,n.startValue=r}return n},_getVisualRangeUpdateMode(n,t,e){var i=this._options.visualRangeUpdateMode,r=this._translator,v=this._seriesData,D=this._prevDataInfo;if(D.isEmpty&&!D.containsConstantLine)return Jd;if(!this.isArgumentAxis){var A=this.getViewport();if(!(0,w.$K)(A.startValue)&&!(0,w.$K)(A.endValue)&&!(0,w.$K)(A.length))return Qd}if(this.isArgumentAxis){if(-1===[hC,Jd,Qd].indexOf(i)){if("discrete"===v.axisType){var z=v.categories,Q=t.categories,ue=this.visualRange();i=z&&Q&&z.length&&-1!==Q.map(It=>It.valueOf()).join(",").indexOf(z.map(It=>It.valueOf()).join(","))&&(ue.startValue.valueOf()!==z[0].valueOf()||ue.endValue.valueOf()!==z[z.length-1].valueOf())?Jd:Qd}else{var we=r.translate(v.min),Le=r.translate(n.startValue),Ue=r.translate(v.max),ut=r.translate(n.endValue);i=we===Le&&Ue===ut?Qd:we!==Le&&Ue===ut?hC:Jd}i===Jd&&D.isEmpty&&D.containsConstantLine&&(i=Qd)}}else-1===[Jd,Qd].indexOf(i)&&(i=e===Jd?Jd:Qd);return i},_handleBusinessRangeChanged(n,t,e){var i=this.visualRange();if(!t&&!this._translator.getBusinessRange().isEmpty()){var r=this._lastVisualRangeUpdateMode=this._getVisualRangeUpdateMode(i,e,n);r===Jd?this._setVisualRange([i.startValue,i.endValue]):r===Qd?this._setVisualRange([null,null]):r===hC&&this._setVisualRange({length:this.getVisualRangeLength()})}},getVisualRangeLength(n){var t=n||this._translator.getBusinessRange(),{type:e}=this._options;return"logarithmic"===e?(0,ae.zB)(this.calculateInterval(t.maxVisible,t.minVisible)):"discrete"===e?_r(t.categories,t.minVisible,t.maxVisible).categories.length:t.maxVisible-t.minVisible},getVisualRangeCenter(n,t){var A,e=this.getTranslator(),i=e.getBusinessRange(),r=t?(0,y.l)(!0,{},i,n||{}):n||i,{type:v,logarithmBase:D}=this._options;if((0,w.$K)(r.minVisible)&&(0,w.$K)(r.maxVisible)){if("logarithmic"===v){var{allowNegatives:z,linearThreshold:Q,minVisible:ue,maxVisible:we}=r;A=Vr((0,ae.zB)(xr(we,D,z,Q)+xr(ue,D,z,Q))/2,D,z,Q)}else if("discrete"===v){var Le=_r(r.categories,r.minVisible,r.maxVisible),Ue=Math.ceil(Le.categories.length/2)-1;A=i.categories.indexOf(Le.categories[Ue])}else A=e.toValue((r.maxVisible.valueOf()+r.minVisible.valueOf())/2);return A}},setBusinessRange(n,t,e,i){var r,v,D=this._options,A="discrete"===D.type;this._handleBusinessRangeChanged(e,t,n),this._seriesData=new os(n);var z=this._seriesData.isEmpty(),Q=new os(this._seriesData);if(this._addConstantLinesToRange(Q),this._prevDataInfo={isEmpty:z,containsConstantLine:Q.containsConstantLine},this._seriesData.addRange({categories:D.categories,dataType:D.dataType,axisType:D.type,base:D.logarithmBase,invert:D.inverted}),this._resolveLogarithmicOptionsForRange(this._seriesData),!A){if(!(0,w.$K)(this._seriesData.min)&&!(0,w.$K)(this._seriesData.max)){var ue=this.getViewport();ue&&this._seriesData.addRange({min:ue.startValue,max:ue.endValue})}var we=D.synchronizedValue;(0,w.$K)(we)&&this._seriesData.addRange({min:we,max:we})}this._seriesData.minVisible=null!==(r=this._seriesData.minVisible)&&void 0!==r?r:this._seriesData.min,this._seriesData.maxVisible=null!==(v=this._seriesData.maxVisible)&&void 0!==v?v:this._seriesData.max,!this.isArgumentAxis&&D.showZero&&this._seriesData.correctValueZeroLevel(),this._seriesData.sortCategories(this.getCategoriesSorter(i)),this._seriesData.userBreaks=this._seriesData.isEmpty()?[]:this._getScaleBreaks(D,this._seriesData,this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},_addConstantLinesToRange(n){this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(t=>{if(t.options.extendAxis){var e=t.getParsedValue();n.addRange({containsConstantLine:!0,minVisible:e,maxVisible:e,min:(0,w.$K)(n.min)?n.min:e,max:(0,w.$K)(n.max)?n.max:e})}})},setGroupSeries:function(n){this._series=n},getLabelsPosition:function(){var n=this._options,t=n.position,e=n.label.indentFromAxis+(this._axisShift||0)+this._constantLabelOffset,i=this._axisPosition;return t===fp||t===lu?i-e:i+e},getFormattedValue:function(n,t,e){var i=this._options.label;return(0,w.$K)(n)?this.formatLabel(n,(0,y.l)(!0,{},i,t),void 0,e):null},_getBoundaryTicks:function(n,t){var e=n.length,i=this._options,r=i.customBoundTicks,v=t.minVisible,D=t.maxVisible,A=i.showCustomBoundaryTicks?this._boundaryTicksVisibility:{},z=[];return"discrete"===i.type?this._tickOffset&&0!==n.length&&(z=[n[0],n[n.length-1]]):r?(A.min&&(0,w.$K)(r[0])&&z.push(r[0]),A.max&&(0,w.$K)(r[1])&&z.push(r[1])):(A.min&&(0===e||n[0]>v)&&z.push(v),A.max&&(0===e||n[e-1]<D)&&z.push(D)),z},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:Wg(this._majorTicks),minorTicksValues:Wg(this._minorTicks)}},estimateTickInterval:function(n){return this.updateCanvas(n),this._tickInterval!==this._getTicks(this._getViewportRange(),E.ZT,!0).tickInterval},setTicks:function(n){var t=n.majorTicks||[];this._majorTicks=t.map(mE(this,this._renderer,this._getSkippedCategory(t))),this._minorTicks=(n.minorTicks||[]).map(_E(this,this._renderer)),this._isSynchronized=!0},_adjustDivisionFactor:function(n){return n},_getTicks:function(n,t,e){var i=this._options,r=i.customTicks,v=i.customMinorTicks;return Um(i,t||this._incidentOccurred,e,this._translator.getBusinessRange().isEmpty(),this._adjustDivisionFactor.bind(this),n)({min:n.minVisible,max:n.maxVisible,categories:n.categories,isSpacedMargin:n.isSpacedMargin},this._getScreenDelta(),i.tickInterval,"ignore"===i.label.overlappingBehavior||i.forceUserTickInterval,{majors:r,minors:v},i.minorTickInterval,i.minorTickCount,this._initialBreaks)},_createTicksAndLabelFormat:function(n,t){var e=this._options,i=this._getTicks(n,t,!1);return!n.isEmpty()&&"discrete"===e.type&&"datetime"===e.dataType&&!this._hasLabelFormat&&i.ticks.length&&(e.label.format=Fa.Z.getDateFormatByTicks(i.ticks)),i},getAggregationInfo(n,t){var e,i,r,v=this._options,D=this._marginOptions,A=new os(this.getTranslator().getBusinessRange()).addRange(t),z=this.getViewport(),Q=null!==(e=z?.startValue)&&void 0!==e?e:A.minVisible,ue=null!==(i=z?.endValue)&&void 0!==i?i:A.maxVisible,we=[];if("discrete"===v.type&&v.aggregateByCategory)return{aggregateByCategory:!0};var Le=v.aggregationInterval,Ue=v.aggregationGroupWidth;!Ue&&D&&(D.checkInterval&&(Ue=v.axisDivisionFactor),D.sizePointNormalState&&(Ue=Math.min(D.sizePointNormalState,v.axisDivisionFactor)));var ut=!v.aggregationGroupWidth&&!Le&&t.interval,It=function jg(n,t,e,i,r){var v=(0,y.l)({},n,{endOnTick:!0,axisDivisionFactor:t,skipCalculationLimits:!0,generateExtraTick:!0,minTickInterval:r});return function(D,A,z,Q,ue){return Um(v,E.ZT,A,e.isEmpty(),we=>we,e)({min:z,max:Q,categories:e.categories,isSpacedMargin:e.isSpacedMargin},i,D,(0,w.$K)(D),void 0,void 0,void 0,ue)}}(v,Ue,A,this._getScreenDelta(),ut),Gt=It(Le,!0,Q,ue,null===(r=this._seriesData)||void 0===r?void 0:r.breaks).tickInterval;if("discrete"!==v.type){var ln=n?A.min:Q,En=n?A.max:ue;if((0,w.$K)(ln)&&(0,w.$K)(En)){var on=zr({base:v.logarithmBase,axisType:v.type,dataType:v.dataType},!1),Nt=ln,Jt=En;if(!n){var un=Math.max(this.calculateInterval(En,ln),"datetime"===v.dataType?te.Z.dateToMilliseconds(Gt):Gt);Nt=on(ln,un,-1),Jt=on(En,un)}var Mn=this._getScaleBreaks(v,{minVisible:Nt=Nt<A.min?A.min:Nt,maxVisible:Jt=Jt>A.max?A.max:Jt},this._series,this.isArgumentAxis);we=It(Gt,!1,Nt,Jt,this._filterBreaks(Mn,{minVisible:Nt,maxVisible:Jt},v.breakStyle)).ticks}}return this._aggregationInterval=Gt,{interval:Gt,ticks:we}},getTickInterval(){return this._tickInterval},getAggregationInterval(){return this._aggregationInterval},createTicks:function(n){var t=this,e=t._renderer,i=t._options;if(n){t._isSynchronized=!1,t.updateCanvas(n);var r=t._getViewportRange();t._initialBreaks=r.breaks=this._seriesData.breaks=t._filterBreaks(this._seriesData.userBreaks,r,i.breakStyle),t._estimatedTickInterval=t._getTicks(t.adjustViewport(this._seriesData),E.ZT,!0).tickInterval;var v=this._calculateValueMargins();r.addRange({minVisible:v.minValue,maxVisible:v.maxValue,isSpacedMargin:v.isSpacedMargin});var D=t._createTicksAndLabelFormat(r),A=t._getBoundaryTicks(D.ticks,t._getViewportRange());i.showCustomBoundaryTicks&&A.length?(t._boundaryTicks=[A[0]].map(W_(t,e,!0)),A.length>1&&(t._boundaryTicks=t._boundaryTicks.concat([A[1]].map(W_(t,e,!1))))):t._boundaryTicks=[];var z=(D.minorTicks||[]).filter(function(It){return!A.some(function(Gt){return Tr(Gt)===Tr(It)})});t._tickInterval=D.tickInterval,t._minorTickInterval=D.minorTickInterval;var Q=t._majorTicks||[],ue=Q.reduce((It,Gt)=>(It[Gt.value.valueOf()]=Gt,It),{}),we=(0,w.dt)(D.ticks[0])===(0,w.dt)(Q[0]&&Q[0].value),Le=t._getSkippedCategory(D.ticks),Ue=D.ticks.map(It=>{var Gt=ue[It.valueOf()];return Gt&&we?(delete ue[It.valueOf()],Gt.setSkippedCategory(Le),Gt):mE(t,e,Le)(It)});t._majorTicks=Ue;var ut=t._minorTicks||[];t._minorTicks=z.map((It,Gt)=>{var ln=ut[Gt];return ln?(ln.updateValue(It),ln):_E(t,e)(It)}),t._ticksToRemove=Object.keys(ue).map(It=>ue[It]).concat(ut.slice(t._minorTicks.length,ut.length)),t._ticksToRemove.forEach(It=>{var Gt;return null===(Gt=It.label)||void 0===Gt?void 0:Gt.removeTitle()}),D.breaks&&(t._seriesData.breaks=D.breaks),t._reinitTranslator(t._getViewportRange())}},_reinitTranslator:function(n){this._isSynchronized||this._translator.updateBusinessRange(n)},_getViewportRange(){return this.adjustViewport(this._seriesData)},setMarginOptions:function(n){this._marginOptions=n},getMarginOptions(){var n;return null!==(n=this._marginOptions)&&void 0!==n?n:{}},_calculateRangeInterval:function(n){var t="datetime"===this._options.dataType,e=[],i=function(r){(0,w.$K)(r)&&e.push(t?te.Z.dateToMilliseconds(r):r)};return i(this._tickInterval),i(this._estimatedTickInterval),(0,w.$K)(n)&&e.push(n),i(this._aggregationInterval),this._calculateWorkWeekInterval(zm.apply(this,e))},_calculateWorkWeekInterval(n){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&n){var e=864e5*t.workWeek.length,i=6048e5-e;e!==n&&i<n?n-=i*Math.ceil(n/6048e5):i>=n&&n>864e5&&(n=864e5)}return n},_getConvertIntervalCoefficient(n,t){var e=this._translator.ratioOfCanvasRange();return e/(e*t/(n+t))},_calculateValueMargins(n){this._resetMargins();var It,t=this.getMarginOptions(),e=(t.size||0)/2,i=this._options,r=this._getViewportRange(),v=this.getViewport(),D=this._getScreenDelta(),A=-1!==(i.type||"").indexOf("discrete"),z=i.valueMarginsEnabled&&!A&&!this.customPositionIsBoundaryOrthogonalAxis(),Q=this._translator,ue=i.minValueMargin,we=i.maxValueMargin,Le=0,Ue=0,ut=0;if(r.stubData||!D)return{startPadding:0,endPadding:0};if(this.isArgumentAxis&&t.checkInterval){It=this._calculateRangeInterval(r.interval);var Gt=Q.getInterval(It);isFinite(Gt)?ut=Math.ceil(Gt/(2*this._getConvertIntervalCoefficient(Gt,D))):It=0}var ln,En,on=.8*D/2;z&&((0,w.$K)(ue)?ln=isFinite(ue)?ue:0:!this.isArgumentAxis&&t.checkInterval&&Tr(r.minVisible)>0&&Tr(r.minVisible)===Tr(r.min)?Le=5:(Le=Math.max(e,ut),Le=Math.min(on,Le)),(0,w.$K)(we)?En=isFinite(we)?we:0:!this.isArgumentAxis&&t.checkInterval&&Tr(r.maxVisible)<0&&Tr(r.maxVisible)===Tr(r.max)?Ue=5:(Ue=Math.max(e,ut),Ue=Math.min(on,Ue))),t.percentStick&&!this.isArgumentAxis&&(1===zu(r.max)&&(Ue=0),1===zu(r.min)&&(Le=0));var Kn,Xn,Jt=this._getCanvasStartEnd(),Mn=(D-Le-Ue)/(1+(ln||0)+(En||0))||D;if((void 0!==ln||void 0!==En)&&(void 0!==ln&&(Le=Mn*ln),void 0!==En&&(Ue=Mn*En)),"discrete"!==i.type&&n&&n.length>1&&!i.skipViewportExtending&&!v.action&&!1!==i.endOnTick){var si=n.length,pi=Q.translate(n[0].value),yi=Q.translate(n[si-1].value),Ui=pi>yi?-1:1,Bi=wd(Ui*(Jt.start-pi),0),oi=wd(Ui*(yi-Jt.end),0);if(Bi>Le||oi>Ue){var Zi=this._getConvertIntervalCoefficient(oi+Bi,D);Bi>=Le&&(Kn=n[0].value),oi>=Ue&&(Xn=n[si-1].value),Le=wd(Bi,Le)/Zi,Ue=wd(oi,Ue)/Zi}}if(ln=void 0===ln?Le/Mn:ln,En=void 0===En?Ue/Mn:En,!A)if(this._translator.isInverted()){var nr,hr;Kn=null!==(nr=Kn)&&void 0!==nr?nr:Q.from(Jt.start+D*ln,-1),Xn=null!==(hr=Xn)&&void 0!==hr?hr:Q.from(Jt.end-D*En,1)}else{var gr,Ur;Kn=null!==(gr=Kn)&&void 0!==gr?gr:Q.from(Jt.start-D*ln,-1),Xn=null!==(Ur=Xn)&&void 0!==Ur?Ur:Q.from(Jt.end+D*En,1)}var{correctedMin:Ar,correctedMax:Pr,start:Fr,end:io}=this.getCorrectedValuesToZero(Kn,Xn);return Le=Fr??Le,Ue=io??Ue,{startPadding:Q.isInverted()?Ue:Le,endPadding:Q.isInverted()?Le:Ue,minValue:Ar??Kn,maxValue:Pr??Xn,interval:It,isSpacedMargin:Le===Ue&&0!==Le}},getCorrectedValuesToZero(n,t){var z,Q,ue,we,e=this,i=e._translator,r=e._getCanvasStartEnd(),v=e._getViewportRange(),D=e._getScreenDelta(),Le=(Ue,ut)=>{var It=zu(r.start-Ue),Gt=zu(r.end-ut),ln=e._getConvertIntervalCoefficient(It+Gt,D);z=It/ln,Q=Gt/ln};return!e.isArgumentAxis&&"datetime"!==e._options.dataType&&(n*v.min<=0&&n*v.minVisible<=0&&(Le(i.translate(0),i.translate(t)),ue=0),t*v.max<=0&&t*v.maxVisible<=0&&(Le(i.translate(n),i.translate(0)),we=0)),{start:isFinite(z)?z:null,end:isFinite(Q)?Q:null,correctedMin:ue,correctedMax:we}},applyMargins(){if(!this._isSynchronized){var n=this._calculateValueMargins(this._majorTicks),t=(0,y.l)({},this._canvas,{startPadding:n.startPadding,endPadding:n.endPadding});if(this._translator.updateCanvas(this._processCanvas(t)),isFinite(n.interval)){var e=this._translator.getBusinessRange();e.addRange({interval:n.interval}),this._translator.updateBusinessRange(e)}}},_resetMargins:function(){this._reinitTranslator(this._getViewportRange()),this._canvas&&this._translator.updateCanvas(this._processCanvas(this._canvas))},_createConstantLines(){var n=(this._options.constantLines||[]).map(t=>function Q1(n,t){var r,D,A,e=t.label||{},i=e.position||"inside",v=!1;return n._checkAlignmentConstantLineLabels(e),{options:t,labelOptions:e,labelPosition:i,label:null,line:null,getParsedValue:()=>(v||(r=n.validateUnit(t.value,"E2105","constantLine"),v=!0),r),draw(){if(!(0,w.$K)(t.value)||n._translator.getBusinessRange().isEmpty())return this;var z=n._getCanvasStartEnd(),Q=this.getParsedValue();this.coord=n._getConstantLinePos(Q,z.start,z.end);var ue=t.displayBehindSeries?n._axisConstantLineGroups.under:n._axisConstantLineGroups.above,we=ue[i];if(we||(we=ue[n._isHorizontal?e.verticalAlignment:e.horizontalAlignment]),!(0,w.$K)(this.coord))return this;var Ue=n._createConstantLine(this.coord,{stroke:t.color,"stroke-width":t.width,dashStyle:t.dashStyle});return this.line=Ue.append(ue.inside),this.label=e.visible?n._drawConstantLineLabels(Q,e,this.coord,we):null,this.updatePosition(),this},getContentContainer(){return this.label},removeLabel(){this.label&&this.label.remove()},updatePosition(z){var Q=n._getCanvasStartEnd(),ue=n._getConstantLinePos(this.getParsedValue(),Q.start,Q.end);(0,w.$K)(ue)&&(this.coord=ue,z&&A?(this.label&&this.label.attr(n._getConstantLineLabelsCoords(A,this.labelOptions)),this.line&&this.line.attr(n._getConstantLineGraphicAttributes(A)),this.label&&this.label.animate(n._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.animate(n._getConstantLineGraphicAttributes(this.coord))):(this.label&&this.label.attr(n._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.attr(n._getConstantLineGraphicAttributes(this.coord)),n._rotateConstantLine(this.line,this.coord)))},saveCoords(){D=A,A=this.coord},resetCoordinates(){A=D}}}(this,t));this._outsideConstantLines=n.filter(t=>"outside"===t.labelPosition),this._insideConstantLines=n.filter(t=>"inside"===t.labelPosition)},draw:function(n,t){var e=this,i=this._options;e.borderOptions=t||{visible:!1},e._resetMargins(),e.createTicks(n),e.applyMargins(),e._clearAxisGroups(),hl(e._majorTicks),hl(e._minorTicks),hl(e._boundaryTicks),e._axisGroup.append(e._axesContainerGroup),e._drawAxis(),e._drawTitle(),_p(e._majorTicks,i.tick),_p(e._minorTicks,i.minorTick),_p(e._boundaryTicks,i.tick);var r=e._getGridLineDrawer();Xs(e._majorTicks,r),Xs(e._minorTicks,r),ns(e._majorTicks,"drawLabel",e._getViewportRange(),e._getTemplate(i.label.template)),e._templatesRendered&&e._templatesRendered.reject(),e._templatesRendered=new P.BH,e._majorTicks.forEach(function(D){D.labelRotationAngle=0,D.labelAlignment=void 0,D.labelOffset=0}),ns(e._outsideConstantLines.concat(e._insideConstantLines),"draw"),ns(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(),Qc(e._majorTicks),!i.label.template&&e._applyWordWrap(),Qc(e._outsideConstantLines),Qc(e._insideConstantLines),Qc(e._strips),Qc(e._dateMarkers),e._adjustConstantLineLabels(e._insideConstantLines),e._adjustStripLabels();var v=e._constantLabelOffset=e._adjustConstantLineLabels(e._outsideConstantLines);e._translator.getBusinessRange().isEmpty()||(e._setLabelsPlacement(),v=e._adjustLabels(v)),P.gx.apply(this,e._majorTicks.map(D=>D.getTemplateDeferred())).done(()=>{e._templatesRendered.resolve()}),v=e._adjustDateMarkers(v),e._adjustTitle(v)},getTemplatesDef(){return this._templatesRendered},setRenderedState(n){this._drawn=n},isRendered(){return this._drawn},_applyWordWrap(){var n,t,e,i=this._options,r=this._tickInterval;(0,w.$K)(r)&&(n=this.getTranslator().getInterval("datetime"===i.dataType?te.Z.dateToMilliseconds(r):r));var v=this._validateDisplayMode(i.label.displayMode),D=this._validateOverlappingMode(i.label.overlappingBehavior,v);if(("none"!==(i.label.wordWrap||"none")||"none"!==(i.label.textOverflow||"none"))&&v!==Zg&&D!==Zg&&"auto"!==D){var Q=(0,w.$K)(i.placeholderSize)?i.placeholderSize-i.label.indentFromAxis:void 0;this._isHorizontal?(t=n,e=Q):(t=Q,e=n);var ue=!1,we=!1;t&&this._majorTicks.some(Le=>Le.labelBBox.width>t)&&(ue=!0),e&&this._majorTicks.some(Le=>Le.labelBBox.height>e)&&(we=!0),(ue||we)&&(this._majorTicks.forEach(Le=>{Le.label&&Le.label.setMaxSize(t,e,i.label)}),Qc(this._majorTicks))}},_measureTitle:E.ZT,animate(){ns(this._majorTicks,"animateLabels")},updateSize(n,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.updateCanvas(n),e&&(this._checkTitleOverflow(),this._measureTitle(),this._updateTitleCoords()),this._reinitTranslator(this._getViewportRange()),this.applyMargins();var i=!this._firstDrawing&&t,r=this._options;hl(this._majorTicks),hl(this._minorTicks),hl(this._boundaryTicks),this._resetApplyingAnimation&&!this._firstDrawing&&this._resetStartCoordinates(),bl(this._majorTicks),bl(this._minorTicks),bl(this._boundaryTicks),this._axisElement&&this._updateAxisElementPosition(),ec(this._majorTicks,r.tick,i),ec(this._minorTicks,r.minorTick,i),ec(this._boundaryTicks,r.tick),ns(this._majorTicks,"updateLabelPosition",i),this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(v=>v.updatePosition(i)),ns(this._strips,"updatePosition",i),Zm(this._majorTicks,i),Zm(this._minorTicks,i),i&&ns(this._ticksToRemove||[],"fadeOutElements"),this.prepareAnimation(),this._ticksToRemove=null,this._translator.getBusinessRange().isEmpty()||(this._firstDrawing=!1),this._resetApplyingAnimation=!1,this._updateLabelsPosition()},_updateLabelsPosition:E.ZT,prepareAnimation(){var n="saveCoords";ns(this._majorTicks,n),ns(this._minorTicks,n),ns(this._insideConstantLines,n),ns(this._outsideConstantLines,n),ns(this._strips,n)},_resetStartCoordinates(){var n="resetCoordinates";ns(this._majorTicks,n),ns(this._minorTicks,n),ns(this._insideConstantLines,n),ns(this._outsideConstantLines,n),ns(this._strips,n)},applyClipRects:function(n,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":n}),this._axisElementsGroup.attr({"clip-path":t})},_validateVisualRange(n){var t=Dr(n);return void 0!==t.startValue&&(t.startValue=this.validateUnit(t.startValue)),void 0!==t.endValue&&(t.endValue=this.validateUnit(t.endValue)),kr(t,!N_(n))},_validateOptions(n){n.wholeRange=this._validateVisualRange(n.wholeRange),n.visualRange=n._customVisualRange=this._validateVisualRange(n._customVisualRange),this._setVisualRange(n._customVisualRange)},validate(){var n=this._options,t=this.isArgumentAxis?n.argumentType:n.valueType,e=t?lp(t):function(i){return i};this.parser=e,n.dataType=t,this._validateOptions(n)},resetVisualRange(n){this._seriesData.minVisible=this._seriesData.min,this._seriesData.maxVisible=this._seriesData.max,this.handleZooming([null,null],{start:!!n,end:!!n})},_setVisualRange(n,t){var e=this.adjustRange(Dr(n));t?((0,w.$K)(e.startValue)&&(this._viewport.startValue=e.startValue),(0,w.$K)(e.endValue)&&(this._viewport.endValue=e.endValue)):this._viewport=e},_applyZooming(n,t){this._resetVisualRangeOption(),this._setVisualRange(n,t);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(n,t){return{axis:this,range:this.visualRange(),cancel:!1,event:n,actionType:t}},_getZoomEndEventArg(n,t,e,i,r){var v=this.visualRange();return{axis:this,previousRange:n,range:v,cancel:!1,event:t,actionType:e,zoomFactor:i,shift:r,rangeStart:v.startValue,rangeEnd:v.endValue}},getZoomBounds(){var n=Dr(this._options.wholeRange),t=this.getTranslator().getBusinessRange(),e={startValue:tc(this._initRange.startValue,t.min),endValue:tc(this._initRange.endValue,t.max)};return{startValue:tc(n.startValue,e.startValue),endValue:tc(n.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(t=>t.templateContainer).filter(t=>(0,w.$K)(t)):[]},setCustomVisualRange(n){this._options._customVisualRange=n},visualRange(){var t,n=arguments;if(0===n.length){var v,D,e=this._getAdjustedBusinessRange(),i=e.minVisible,r=e.maxVisible;return"discrete"===this._options.type?{startValue:i=null!==(v=i)&&void 0!==v?v:e.categories[0],endValue:r=null!==(D=r)&&void 0!==D?D:e.categories[e.categories.length-1],categories:_r(e.categories,i,r).categories}:{startValue:i,endValue:r}}t=N_(n[0])?n[0]:(0,w.PO)(n[0])?(0,y.l)({},n[0]):[n[0],n[1]];var A=this.handleZooming(t,n[1]);A.isPrevented||this._visualRange(this,A)},handleZooming(n,t,e,i){t=t||{},(0,w.$K)(n)&&((n=this._validateVisualRange(n)).action=i);var r=this.getZoomStartEventArg(e,i),v=r.range;!t.start&&this._eventTrigger("zoomStart",r);var D={isPrevented:r.cancel,skipEventRising:t.skipEventRising,range:n||r.range};return r.cancel||((0,w.$K)(n)&&this._applyZooming(n,t.allowPartialUpdate),(0,w.$K)(this._storedZoomEndParams)||(this._storedZoomEndParams={startRange:v,type:this.getOptions().type}),this._storedZoomEndParams.event=e,this._storedZoomEndParams.action=i,this._storedZoomEndParams.prevent=!!t.end),D},handleZoomEnd(){if((0,w.$K)(this._storedZoomEndParams)&&!this._storedZoomEndParams.prevent){var n=this._storedZoomEndParams.startRange,t=this._storedZoomEndParams.event,e=this._storedZoomEndParams.action,i={minVisible:n.startValue,maxVisible:n.endValue,categories:n.categories},r=this.getOptions().type===this._storedZoomEndParams.type,v=r?(0,ae.zB)(this.getVisualRangeCenter()-this.getVisualRangeCenter(i,!1)):NaN,D=r?+(Math.round(this.getVisualRangeLength(i)/(this.getVisualRangeLength()||1)+"e+2")+"e-2"):NaN,A=this._getZoomEndEventArg(n,t,e,D,v);A.cancel=this.checkZoomingLowerLimitOvercome(1===D?"pan":"zoom",D).stopInteraction,this._eventTrigger("zoomEnd",A),A.cancel&&this._restorePreviousVisualRange(n),this._storedZoomEndParams=null}},_restorePreviousVisualRange(n){this._storedZoomEndParams=null,this._applyZooming(n),this._visualRange(this,n)},checkZoomingLowerLimitOvercome(n,t,e){var A,i=this._options,r=this._translator,v=i.minVisualRangeLength,D=e,z="zoom"===n&&t>=1,Q=r.getBusinessRange();e&&(A={minVisible:(A=this.adjustRange(Dr(e))).startValue,maxVisible:A.endValue,categories:Q.categories});var ue=this.getVisualRangeLength(Q),we=this.getVisualRangeLength(A);if((0,w.$K)(v)||"discrete"===i.type)v=r.convert(v),A&&v<ue&&v>=we?(D=Dr(r.getRangeByMinZoomValue(v,A)),z=!1):z&=v>we;else{var Le=this._translator.canvasLength;z&=this.getVisualRangeLength({minVisible:Q.min,maxVisible:Q.max,categories:Q.categories})/Le>=we}return{stopInteraction:!!z,correctedRange:D}},isExtremePosition(n){var t,e;"discrete"===this._options.type?(e=this._translator.getBusinessRange(),t=n?e.categories[e.categories.length-1]:e.categories[0]):(e=this.getZoomBounds(),t=n?e.endValue:e.startValue);var i=this.getTranslator(),r=i.translate(t),v=this.visualRange(),D=i.translate(n?v.endValue:v.startValue);return zu(D-r)<5},getViewport(){return this._viewport},getFullTicks:function(){var n=this._majorTicks||[];return"discrete"===this._options.type?Wg(n):Wg(n.concat(this._minorTicks,this._boundaryTicks)).sort(function(t,e){return Tr(t)-Tr(e)})},measureLabels:function(n,t){var v,A,e=this,i=e._options,r=i.visible?i.width:0,D=t?i.label.indentFromAxis+.5*i.tick.length:0,z=e._getViewportRange();if(z.isEmpty()||!i.label.visible||!e._axisElementsGroup)return{height:r,width:r,x:0,y:0};e._majorTicks?v=Wg(e._majorTicks):(e.updateCanvas(n),v=e._createTicksAndLabelFormat(z,E.ZT),A=v.tickInterval,v=v.ticks);var Q=v.reduce(function(Le,Ue,ut){var It=e.formatLabel(Ue,i.label,z,void 0,A,v);return Le.length<It.length?It:Le},e.formatLabel(v[0],i.label,z,void 0,A,v)),ue=e._renderer.text(Q,0,0).css(e._textFontStyles).attr(e._textOptions).append(e._renderer.root),we=ue.getBBox();return ue.remove(),{x:we.x,y:we.y,width:we.width+D,height:we.height+D}},_setLabelsPlacement:function(){if(this._options.label.visible){var v,n=this._options.label,t=this._validateDisplayMode(n.displayMode),e=this._validateOverlappingMode(n.overlappingBehavior,t),i="none"===e||"ignore"===e,r={rotationAngle:n.rotationAngle,staggeringSpacing:n.staggeringSpacing},D=this._majorTicks.map(function(z){return z.labelBBox}),A=this._getStep(D);switch(t){case Zg:i&&(v=!0,A=1),this._applyLabelMode(t,A,D,n,v);break;case"stagger":i&&(A=2),this._applyLabelMode(t,wd(A,2),D,n);break;default:this._applyLabelOverlapping(D,e,A,r)}}},_applyLabelOverlapping:function(n,t,e,i){var r=this._options.label,v=this._majorTicks;"none"===t||"ignore"===t||(e>1&&n.some(function(D,A,z){return 0!==A&&Eo_areLabelsOverlap(D,z[A-1],r.minSpacing,r.alignment)})&&this._applyLabelMode(t,e,n,i),this._checkBoundedLabelsOverlapping(v,n,t),this._checkShiftedLabels(v,n,r.minSpacing,r.alignment))},_applyLabelMode:function(n,t,e,i,r){var z,Q,v=this._majorTicks,D=this._options.label,A=i.rotationAngle;switch(n){case Zg:D.userAlignment||(Q=A<0?Wu:lu,A%90==0&&(Q=Ug)),th(v,t=r?t:this._getStep(e,A),function(we){var Le=we.getContentContainer();Le&&(Le.rotate(A),we.labelRotationAngle=A,Q&&(we.labelAlignment=Q))});break;case"stagger":z=this._getMaxLabelHeight(e,i.staggeringSpacing),th(v,t-1,function(we,Le){Le/(t-1)%2!=0&&(we.labelOffset=z)});break;case"auto":case"_auto":2===t?this._applyLabelMode("stagger",t,e,i):this._applyLabelMode(Zg,t,e,{rotationAngle:Gg(e,D)});break;default:th(v,t)}},getMarkerTrackers:E.ZT,_drawDateMarkers:E.ZT,_adjustDateMarkers:E.ZT,coordsIn:E.ZT,areCoordsOutsideAxis:E.ZT,_getSkippedCategory:E.ZT,_initAxisPositions:E.ZT,_drawTitle:E.ZT,_updateTitleCoords:E.ZT,_adjustConstantLineLabels:E.ZT,_createTranslator:function(){return new Hg({},{},{})},_updateTranslator:function(){var n=this._translator;n.update(n.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var n,t,e,i=this._options;return{isHorizontal:this._isHorizontal,shiftZeroValue:!this.isArgumentAxis,interval:i.semiDiscreteInterval,firstDayOfWeek:null===(n=i.workWeek)||void 0===n?void 0:n[0],stick:this._getStick(),breaksSize:null!==(t=null===(e=i.breakStyle)||void 0===e?void 0:e.width)&&void 0!==t?t:0}},getVisibleArea(){var n=this._getCanvasStartEnd();return[n.start,n.end].sort((t,e)=>t-e)},_getCanvasStartEnd:function(){var n=this._isHorizontal,t=this._canvas||{},e=this._translator.getBusinessRange().invert,i=n?[t.left,t.width-t.right]:[t.height-t.bottom,t.top];return e&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var n=this._getCanvasStartEnd(),t=this._seriesData&&this._seriesData.breaks||[],e=t.length;return zu(n.start-n.end)-(e?t[e-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_filterBreaks:function(){return[]},_adjustTitle:E.ZT,_checkTitleOverflow:E.ZT,getSpiderTicks:E.ZT,setSpiderTicks:E.ZT,_checkBoundedLabelsOverlapping:E.ZT,_checkShiftedLabels:E.ZT,drawScaleBreaks:E.ZT,_visualRange:E.ZT,_rotateConstantLine:E.ZT,applyVisualRangeSetter(n){this._visualRange=n},getCategoriesSorter(n){return this.isArgumentAxis?n:this._options.categoriesSortingMethod??this._options.categories},_getAdjustedBusinessRange(){return this.adjustViewport(this._translator.getBusinessRange())}};var nc=Array.isArray,nh=isFinite,vp=Number,Z_=Math.min,K_=Math.max,G_=y.l,Yg="value",Xg="subvalues",yE=[1,2,5];function j_(n,t){return null===n?n:nh(n)?vp(n):t}function gC(n){return nc(n)?n:(0,w.kE)(n)?[n]:null}var fC=br.inherit({_initCore:function(){var n=this,t=n._renderer;n._setupValue(n.option(Yg)),n.__subvalues=gC(n.option(Xg)),n._setupSubvalues(n.__subvalues),_C(n),n.callBase.apply(n,arguments),n._rangeContainer=new n._factory.RangeContainer({renderer:t,container:t.root,translator:n._translator,themeManager:n._themeManager}),n._initScale(),n._subvalueIndicatorContainer=n._renderer.g().attr({class:"dxg-subvalue-indicators"}).linkOn(n._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 Hl({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 n=this;n.callBase.apply(n,arguments),n._scale.dispose(),n._scaleGroup.linkOff(),n._labelsAxesGroup.linkOff(),n._rangeContainer.dispose(),n._disposeValueIndicators(),n._subvalueIndicatorContainer.linkOff(),n._scale=n._scaleGroup=n._labelsAxesGroup=n._rangeContainer=null},_disposeValueIndicators:function(){this._valueIndicator&&this._valueIndicator.dispose(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.dispose(),this._valueIndicator=this._subvalueIndicatorsSet=null},_setupDomainCore:function(){var n=this.option("scale")||{},t=this.option("startValue"),e=this.option("endValue");t=(0,w.kE)(t)?vp(t):(0,w.kE)(n.startValue)?vp(n.startValue):0,e=(0,w.kE)(e)?vp(e):(0,w.kE)(n.endValue)?vp(n.endValue):100,this._baseValue=t<e?t:e,this._translator.setDomain(t,e)},_cleanContent:function(){this._rangeContainer.clean(),this._cleanValueIndicators()},_measureScale:function(n){var t=n.tick,e=t.visible&&t.length>0&&t.width>0,i=n.minorTick,r=i.visible&&i.length>0&&i.width>0,v=n.label,D=Number(v.indentFromTick);if(!e&&!r&&!v.visible)return{};var A=this._scale.measureLabels((0,y.l)({},this._canvas)),z=this._getScaleLayoutValue(),Q={min:z,max:z},ue=this._getTicksCoefficients(n),we=ue.inner,Le=ue.outer;return e&&(Q.min=Z_(Q.min,z-we*t.length),Q.max=K_(Q.max,z+Le*t.length)),r&&(Q.min=Z_(Q.min,z-we*i.length),Q.max=K_(Q.max,z+Le*i.length)),v.visible&&this._correctScaleIndents(Q,D,A),Q},_renderContent:function(){var n=this,t=n._prepareScaleSettings();n._rangeContainer.render(G_(n._getOption("rangeContainer"),{vertical:n._area.vertical})),n._renderScale(t),n._subvalueIndicatorContainer.linkAppend();var e=Vn([n._rangeContainer].concat(n._prepareValueIndicators()),function(i){return i&&i.enabled?i:null});n._applyMainLayout(e,n._measureScale(t)),e.forEach(i=>i.resize(n._getElementLayout(i.getOffset()))),n._shiftScale(n._getElementLayout(0),t),n._beginValueChanging(),n._updateActiveElements(),n._endValueChanging()},_prepareScaleSettings:function(){var n=this,t=n.option("scale"),e=(0,y.l)(!0,{},n._themeManager.theme("scale"),t);return e.label.indentFromAxis=0,e.isHorizontal=!n._area.vertical,e.forceUserTickInterval|=(0,w.$K)(t)&&(0,w.$K)(t.tickInterval)&&!(0,w.$K)(t.scaleDivisionFactor),e.axisDivisionFactor=e.scaleDivisionFactor||n._gridSpacingFactor,e.minorAxisDivisionFactor=e.minorScaleDivisionFactor||5,e.numberMultipliers=yE,e.tickOrientation=n._getTicksOrientation(e),e.label.useRangeColors&&(e.label.customizeColor=function(){return n._rangeContainer.getColorForValue(this.value)}),e},_renderScale:function(n){var t=this._translator.getDomain(),e=t[0],i=t[1],r=this._translator.getCodomain(),v=!!(e>i^n.inverted),D=Z_(e,i),A=K_(e,i);n.min=D,n.max=A,n.startAngle=90-r[0],n.endAngle=90-r[1],n.skipViewportExtending=!0,n.inverted=v,this._scale.updateOptions(n),this._scale.setBusinessRange({axisType:"continuous",dataType:"numeric",min:D,max:A,invert:v}),this._updateScaleTickIndent(n),this._scaleGroup.linkAppend(),this._labelsAxesGroup.linkAppend(),this._scale.draw((0,y.l)({},this._canvas))},_updateIndicatorSettings:function(n){n.currentValue=n.baseValue=nh(this._translator.translate(n.baseValue))?vp(n.baseValue):this._baseValue,n.vertical=this._area.vertical,n.text&&!n.text.format&&(n.text.format=this._defaultFormatOptions)},_prepareIndicatorSettings:function(n,t){var e=this._themeManager.theme("valueIndicators"),i=Sn(n.type||this._themeManager.theme(t)),r=G_(!0,{},e._default,e[i],n);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 n=this._valueIndicator,t=this._prepareIndicatorSettings(this.option("valueIndicator")||{},"valueIndicatorType");n&&n.type!==t.type&&(n.dispose(),n=null),n||(n=this._valueIndicator=this._createIndicator(t.type,this._renderer.root,"dxg-value-indicator","value-indicator")),n.render(t)},_createSubvalueIndicatorsSet:function(){var n=this,t=n._subvalueIndicatorContainer;return new Km({createIndicator:function(e,i){return n._createIndicator(e,t,"dxg-subvalue-indicator","subvalue-indicator",i)},createPalette:function(e){return n._themeManager.createPalette(e)}})},_prepareSubvalueIndicators:function(){var n=this._subvalueIndicatorsSet,t=this._prepareIndicatorSettings(this.option("subvalueIndicator")||{},"subvalueIndicatorType");n||(n=this._subvalueIndicatorsSet=this._createSubvalueIndicatorsSet());var e=t.type!==n.type;n.type=t.type;var i=this._createIndicator(t.type,this._renderer.root);i&&(i.dispose(),n.render(t,e))},_setupValue:function(n){this.__value=j_(n,this.__value)},_setupSubvalues:function(n){var e,i,r,t=void 0===n?this.__subvalues:gC(n);if(null!==t){for(e=0,i=t.length,r=[];e<i;++e)r.push(j_(t[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(n){return void 0!==n?(this._changeValue(n),this):this.__value},subvalues:function(n){return void 0!==n?(this._changeSubvalues(n),this):null!==this.__subvalues?this.__subvalues.slice():void 0},_changeValue:function(n){this._setupValue(n),this._beginValueChanging(),this._updateValueIndicator(),this.__value!==this.option(Yg)&&this.option(Yg,this.__value),this._endValueChanging()},_changeSubvalues:function(n){null!==this.__subvalues?(this._setupSubvalues(n),this._beginValueChanging(),this._updateSubvalueIndicators(),this._endValueChanging()):(this.__subvalues=gC(n),this._setContentSize(),this._renderContent()),Io(this.__subvalues,this.option(Xg))||this.option(Xg,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(Yg))},_change_SUBVALUES:function(){this._changeSubvalues(this.option(Xg))},_applyMainLayout:null,_getElementLayout:null,_createIndicator:function(n,t,e,i,r,v){var D=this._factory.createIndicator({renderer:this._renderer,translator:this._translator,owner:t,tracker:this._tracker,className:e},n,v);return D&&(D.type=n,D._trackerInfo={type:i,index:r}),D},_getApproximateScreenRange:null});function iI(n){return n?n.value:null}function mC(n,t,e){for(var i=n[t],r=nc(e)?Vn(e,iI):[],v=0,D=r.length,A=[];v<D;++v)A.push(j_(r[v],i[v]));n[t]=A}function _C(n){void 0===n.option(Yg)&&void 0===n.option(Xg)&&void 0!==n.option("valueIndicators")&&(function vC(n){n.value=n.subvalues=E.ZT,n._setupValue=n._setupSubvalues=n._updateValueIndicator=n._updateSubvalueIndicators=null}(n),function rI(n){n._indicatorValues=[],mC(n,"_indicatorValues",n.option("valueIndicators")),n._valueIndicators=[];var t=n._applyMostlyTotalChange;n._applyMostlyTotalChange=function(){mC(this,"_indicatorValues",this.option("valueIndicators")),t.call(this)},n._updateActiveElements=$_,n._prepareValueIndicators=Y_,n._disposeValueIndicators=yC,n._cleanValueIndicators=oI,n.indicatorValue=X_}(n))}function $_(){var n=this;n._valueIndicators.forEach(t=>{t.value(n._indicatorValues[t.index],n._noAnimation)})}function Y_(){var v,n=this,t=n._valueIndicators||[],e=n.option("valueIndicators"),i=[],r=0;for(v=nc(e)?e.length:0;r<v;++r)i.push(e[r]);for(v=t.length;r<v;++r)i.push(null);var D=[];return i.forEach((A,z)=>{var Q=t[z];if(A){var ue=n._prepareIndicatorSettings(A,"valueIndicatorType");Q&&Q.type!==ue.type&&(Q.dispose(),Q=null),Q||(Q=n._createIndicator(ue.type,n._renderer.root,"dxg-value-indicator","value-indicator",z,!0)),Q&&(Q.index=z,Q.render(ue),D.push(Q))}else Q&&Q.dispose()}),n._valueIndicators=D,n._valueIndicators}function yC(){this._valueIndicators.forEach(n=>n.dispose()),this._valueIndicators=null}function oI(){this._valueIndicators.forEach(n=>n.clean())}function X_(n,t){return function q_(n,t,e,i,r){return void 0!==r?(void 0!==e[i]&&(e[i]=j_(r,e[i]),t[i]&&t[i].value(e[i])),n):e[i]}(this,this._valueIndicators,this._indicatorValues,n,t)}function Km(n){this._parameters=n,this._indicators=[]}function CC(n){return function(t,e,i){var r=n[Sn(e)]||!i&&n._default;return r?new r(t):null}}Km.prototype={constructor:Km,dispose:function(){return this._indicators.forEach(n=>n.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(n=>n.clean()),this._sample=this._options=this._palette=null,this},render:function(n,t){var e=this;return e._options=n,e._sample=e._parameters.createIndicator(e.type),e._sample.render(n),e.enabled=e._sample.enabled,e._palette=(0,w.$K)(n.palette)?e._parameters.createPalette(n.palette):null,e.enabled&&(e._generatePalette(e._indicators.length),e._indicators=Vn(e._indicators,function(i,r){return t&&(i.dispose(),i=e._parameters.createIndicator(e.type,r)),i.render(e._getIndicatorOptions(r)),i})),e},getOffset:function(){return this._sample.getOffset()},resize:function(n){return this._layout=n,this._indicators.forEach(t=>t.resize(n)),this},measure:function(n){return this._sample.measure(n)},_getIndicatorOptions:function(n){var t=this._options;return this._colorPalette&&(t=G_({},t,{color:this._colorPalette[n]})),t},_generatePalette:function(n){var t=null;this._palette&&(this._palette.reset(),t=this._palette.generateColors(n,{repeat:!0})),this._colorPalette=t},_adjustIndicatorsCount:function(n){var e,i,r,t=this._indicators,v=t.length;if(v>n){for(e=n,i=v;e<i;++e)t[e].clean().dispose();this._indicators=t.slice(0,n),this._generatePalette(t.length)}else if(v<n)for(this._generatePalette(n),e=v,i=n;e<i;++e)(r=this._parameters.createIndicator(this.type,e)).render(this._getIndicatorOptions(e)).resize(this._layout),t.push(r)},values:function(n,t){if(this.enabled)return void 0!==n?(nc(n)||(n=nh(n)?[Number(n)]:null),n&&(this._adjustIndicatorsCount(n.length),this._indicators.forEach((e,i)=>e.value(n[i],t))),this):Vn(this._indicators,function(e){return e.value()})}};var xC=isFinite,bC=Number,zl=Math.round,J_=eo,wC=ao,CE=ir.Z.inherit({ctor:function(n){var t=this;(0,O.S6)(n,function(e,i){t["_"+e]=i}),t._init()},dispose:function(){var n=this;return n._dispose(),(0,O.S6)(n,function(t){n[t]=null}),n},getOffset:function(){return bC(this._options.offset)||0}}),Gm=CE.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 n=this;n._options.animation&&(n._animation={step:function(t){n._actualValue=n._animation.start+n._animation.delta*t,n._actualPosition=n._translator.translate(n._actualValue),n._move()},duration:n._options.animation.duration>0?bC(n._options.animation.duration):0,easing:n._options.animation.easing})},_runAnimation:function(n){var t=this._animation;t.start=this._actualValue,t.delta=n-this._actualValue,this._rootElement.animate({_:0},{step:t.step,duration:t.duration,easing:t.easing})},_createRoot:function(){return this._renderer.g().attr({class:this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:E.ZT,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(n){return this.type=n.type,this._options=n,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(n){return this._rootElement.clear(),this._clear(),this.visible=this._isVisible(n),this.visible&&((0,y.l)(this._options,n),this._actualPosition=this._translator.translate(this._actualValue),this._render(),this._trackerElement.attr(this._getTrackerSettings()),this._move()),this},value:function(n,t){var e,i=this._rootElement,r=null;return void 0===n?this._currentValue:(null===n?(r="hidden",this._currentValue=n):(e=this._translator.adjust(n),this._currentValue!==e&&xC(e)&&(this._currentValue=e,this.visible&&(this._animation&&!t?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}),Bs={};Bs["right-bottom"]=Bs.rb=[0,-1,-1,0,0,1,1,0],Bs["bottom-right"]=Bs.br=[-1,0,0,-1,1,0,0,1],Bs["left-bottom"]=Bs.lb=[0,-1,1,0,0,1,-1,0],Bs["bottom-left"]=Bs.bl=[1,0,0,-1,-1,0,0,1],Bs["left-top"]=Bs.lt=[0,1,1,0,0,-1,-1,0],Bs["top-left"]=Bs.tl=[1,0,0,1,-1,0,0,-1],Bs["right-top"]=Bs.rt=[0,1,-1,0,0,-1,1,0],Bs["top-right"]=Bs.tr=[-1,0,0,1,1,0,0,-1];var EC=Gm.inherit({_move:function(){var n=this._options,t=this._getTextCloudOptions(),e=J_(this._actualValue,n.text);this._text.attr({text:e});var i=this._text.getBBox(),r=t.x,v=t.y,D=(i.width||e.length*this._textUnitWidth)+2*n.horizontalOffset,A=(i.height||this._textHeight)+2*n.verticalOffset,z=function xE(n){var D,A,t=n.x,e=n.y,i=Bs[n.type],r=n.cloudWidth,v=n.cloudHeight,z=t,Q=e;return D=A=n.tailLength,1&i[0]?A=Math.min(A,v/3):D=Math.min(D,r/3),{cx:zl(z+i[0]*D+(i[0]+i[2])*r/2),cy:zl(Q+i[1]*A+(i[1]+i[3])*v/2),points:[zl(t),zl(e),zl(t+=i[0]*(r+D)),zl(e+=i[1]*(v+A)),zl(t+=i[2]*r),zl(e+=i[3]*v),zl(t+=i[4]*r),zl(e+=i[5]*v),zl(t+=i[6]*(r-D)),zl(e+=i[7]*(v-A))]}}({x:r,y:v,cloudWidth:D,cloudHeight:A,tailLength:n.arrowLength,type:this._correctCloudType(t.type,{x:r,y:v},{width:D,height:A})});this._text.attr({x:z.cx,y:z.cy+this._textVerticalOffset}),this._cloud.attr({points:z.points}),this._trackerElement&&this._trackerElement.attr({points:z.points})},_measureText:function(){var n,e,i;this._textVerticalOffset||(n=this._createRoot().append(this._owner),i=wC(this._translator,this._options.text),e=this._renderer.text(i,0,0).attr({align:"center"}).css(di(this._options.text.font)).append(n).getBBox(),n.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(di(this._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var n=this._getTextCloudOptions();return{x:n.x,y:n.y,value:this._currentValue,color:this._options.color}},_correctCloudType:n=>n}),bE=Gm.inherit({_measureText:function(){var n,e;this._hasText=this._isTextVisible(),this._hasText&&!this._textVerticalOffset&&(n=this._createRoot().append(this._owner),e=this._renderer.text(wC(this._translator,this._options.text),0,0).attr({class:"dxg-text",align:"center"}).css(di(this._options.text.font)).append(n).getBBox(),n.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:J_(this._actualValue,this._options.text)}),this._updateTextPosition(),this._updateLinePosition())},_updateBarItems:function(){var t,n=this._options,e=this._translator;this._setBarSides(),this._startPosition=e.translate(e.getDomainStart()),this._endPosition=e.translate(e.getDomainEnd()),this._basePosition=e.translate(n.baseValue),this._space=this._getSpace();var i=n.backgroundColor||"none";"none"!==i&&this._space>0?t=n.containerBackgroundColor||"none":(this._space=0,t="none"),this._backItem1.attr({fill:i}),this._backItem2.attr({fill:i}),this._spaceItem1.attr({fill:t}),this._spaceItem2.attr({fill:t})},_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 n=this._options,t=n.text.font;return(!t||!t.color)&&(t=(0,y.l)({},t,{color:n.color})),di(t)},_updateBarItemsPositions:function(){var n=this._getPositions();this._backItem1.attr(this._buildItemSettings(n.start,n.back1)),this._backItem2.attr(this._buildItemSettings(n.back2,n.end)),this._spaceItem1.attr(this._buildItemSettings(n.back1,n.main1)),this._spaceItem2.attr(this._buildItemSettings(n.main2,n.back2)),this._mainItem.attr(this._buildItemSettings(n.main1,n.main2)),this._trackerElement&&this._trackerElement.attr(this._buildItemSettings(n.main1,n.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 n=this._getTooltipPosition();return{x:n.x,y:n.y,value:this._currentValue,color:this._options.color,offset:0}}}),il=Number,qg=Ft,Q_=ht;function jm(n,t){return n&&n.radius-t<=0&&(n.radius=t+1),n}var SC=Gm.inherit({_move:function(){var n=this._options,t=Q_(this._actualPosition);this._rootElement.rotate(t,n.x,n.y),this._trackerElement&&this._trackerElement.rotate(t,n.x,n.y)},_isEnabled:function(){return this._options.width>0},_isVisible:function(n){return n.radius-il(this._options.indentFromCenter)>0},_getTrackerSettings:function(){var n=this._options,t=this._getRadius(),e=this._getIndentFromCenter(),i=n.x,r=n.y-(t+e)/2,v=n.width/2,D=(t-e)/2;return v>10||(v=10),D>10||(D=10),{points:[i-v,r-D,i-v,r+D,i+v,r+D,i+v,r-D]}},_render:function(){this._renderPointer()},_clearPointer:function(){delete this._element},_clear:function(){this._clearPointer()},_getIndentFromCenter:function(n){return Number(this._options.indentFromCenter)||0},_getRadius:function(){return 0},measure:function(n){var t={max:n.radius};return this._options.indentFromCenter<0&&(t.inverseHorizontalOffset=t.inverseVerticalOffset=-il(this._options.indentFromCenter)),t},getTooltipParameters:function(){var n=this._options,t=qg(this._actualPosition),e=(this._getRadius()+this._getIndentFromCenter())/2;return{x:n.x+t.cos*e,y:n.y-t.sin*e,value:this._currentValue,color:n.color,offset:n.width/2}}}),ev=SC.inherit({_isVisible:function(n){var t=this._adjustOffset(Number(this._options.indentFromCenter),n.radius),e=this._adjustOffset(Number(this._options.offset),n.radius);return n.radius-t-e>0},getOffset:function(){return 0},_adjustOffset:function(n,t){var i=t/Number(this._options.beginAdaptingAtRadius);return i<1&&(n=Math.floor(n*i)),n||0},_getIndentFromCenter:function(n){return this._adjustOffset(Number(this._options.indentFromCenter),this._options.radius)},_getRadius:function(){var n=this._options;return n.radius-this._adjustOffset(Number(n.offset),n.radius)},_renderSpindle:function(){var n=this._options,t=n.radius,e=2*this._adjustOffset(il(n.spindleSize)/2,t),i=2*this._adjustOffset(il(n.spindleGapSize)/2,t)||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:n.x,cy:n.y,r:e/2}),this._spindleInner.attr({class:"dxg-spindle-hole",cx:n.x,cy:n.y,r:i/2,fill:n.containerBackgroundColor}))},_render:function(){this.callBase(),this._renderSpindle()},_clear:function(){this.callBase(),delete this._spindleOuter,delete this._spindleInner}}),OC=ev.inherit({_renderPointer:function(){var n=this._options,t=n.y-this._getRadius(),e=n.y-this._getIndentFromCenter(),i=n.x-n.width/2,r=i+il(n.width);this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[i,e,i,t,r,t,r,e]})}}),wE=ev.inherit({_renderPointer:function(){var n=this._options,t=n.y-this._getRadius(),e=n.y-this._getIndentFromCenter(),i=n.x-n.width/2,r=n.x+n.width/2;this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[i,e,n.x,t,r,e]})}}),EE=ev.inherit({_renderPointer:function(){var D,A,n=this._options,t=n.x-n.width/2,e=n.x+n.width/2,i=n.y-this._getRadius(),r=n.y-this._getIndentFromCenter(),v=il(n.secondFraction)||0;D=v>=1?A=r:v<=0?A=i:(A=i+(r-i)*v)+il(n.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:[t,r,t,D,e,D,e,r]}),this._spaceElement.attr({points:[t,D,t,A,e,A,e,D],class:"dxg-hole",fill:n.containerBackgroundColor}),this._secondElement.attr({points:[t,A,t,i,e,i,e,A],class:"dxg-part",fill:n.secondColor})},_clearPointer:function(){delete this._firstElement,delete this._secondElement,delete this._spaceElement}}),SE=SC.inherit({_isEnabled:function(){return this._options.length>0&&this._options.width>0},_isVisible:n=>!0,resize(n){return this.callBase(jm(n,0))},_render:function(){var n=this._options,t=n.x,e=n.y-n.radius,i=n.width/2||0,r=e-il(n.length);this._element=this._element||this._renderer.path([],"area").append(this._rootElement);var v={points:[t,e,t-i,r,t+i,r],stroke:"none","stroke-width":0,"stroke-linecap":"square"};n.space>0&&(v["stroke-width"]=Math.min(n.space,n.width/4)||0,v.stroke=v["stroke-width"]>0&&n.containerBackgroundColor||"none"),this._element.attr(v).sharp()},_clear:function(){delete this._element},_getTrackerSettings:function(){var n=this._options,t=n.x,e=n.y-n.radius-n.length/2,i=n.width/2,r=n.length/2;return i>10||(i=10),r>10||(r=10),{points:[t-i,e-r,t-i,e+r,t+i,e+r,t+i,e-r]}},measure:function(n){return{min:n.radius,max:n.radius+il(this._options.length)}},getTooltipParameters:function(){var n=this._options,t=qg(this._actualPosition),e=n.radius+n.length/2,i=this.callBase();return i.x=n.x+t.cos*e,i.y=n.y-t.sin*e,i.offset=n.length/2,i}}),OE=EC.inherit({_isEnabled:function(){return!0},_isVisible:n=>!0,resize(n){return this.callBase(jm(n,0))},_getTextCloudOptions:function(){var n=qg(this._actualPosition),t=dt(this._actualPosition);return{x:this._options.x+n.cos*this._options.radius,y:this._options.y-n.sin*this._options.radius,type:t>270?"left-top":t>180?"top-right":t>90?"right-bottom":"bottom-left"}},measure:function(n){var t=il(this._options.arrowLength)||0;this._measureText();var e=this._textFullHeight+t,i=this._textFullWidth+t;return{min:n.radius,max:n.radius,horizontalOffset:i,verticalOffset:e,inverseHorizontalOffset:i,inverseVerticalOffset:e}}}),DE=bE.inherit({_isEnabled:function(){return this._options.size>0},_isVisible:n=>!0,resize(n){return this.callBase(jm(n,il(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-il(this._options.size)},_getSpace:function(){var n=this._options;return n.space>0?180*n.space/n.radius/Math.PI:0},_isTextVisible:function(){return(this._options.text||{}).indent>0},_setTextItemsSides:function(){var n=this._options,t=il(n.text.indent);this._lineFrom=n.y-n.radius,this._lineTo=this._lineFrom-t,this._textRadius=n.radius+t},_getPositions:function(){var e,i,n=this._basePosition,t=this._actualPosition;return n>=t?(e=n,i=t):(e=t,i=n),{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(n,t){return{x:this._options.x,y:this._options.y,innerRadius:this._minSide,outerRadius:this._maxSide,startAngle:t,endAngle:n}},_updateTextPosition:function(){var n=qg(this._actualPosition),t=this._options.x+this._textRadius*n.cos,e=this._options.y-this._textRadius*n.sin;this._text.attr({x:t+=n.cos*this._textWidth*.6,y:(e-=n.sin*this._textHeight*.6)+this._textVerticalOffset})},_updateLinePosition:function(){var t,e,n=this._options.x;this._basePosition>this._actualPosition?(t=n-2,e=n):this._basePosition<this._actualPosition?(t=n,e=n+2):(t=n-1,e=n+1),this._line.attr({points:[t,this._lineFrom,t,this._lineTo,e,this._lineTo,e,this._lineFrom]}).rotate(Q_(this._actualPosition),n,this._options.y).sharp()},_getTooltipPosition:function(){var n=qg((this._basePosition+this._actualPosition)/2),t=(this._minSide+this._maxSide)/2;return{x:this._options.x+n.cos*t,y:this._options.y-n.sin*t}},measure:function(n){var t={min:n.radius-il(this._options.size),max:n.radius};return this._measureText(),this._hasText&&(t.max+=il(this._options.text.indent),t.horizontalOffset=this._textWidth,t.verticalOffset=this._textHeight),t}}),$m=Number,ic=Array.isArray,TE=isFinite,aI=CE.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 A,n=this._options,t=this._translator,e=t.getDomain()[0],i=t.getDomain()[1],r=i-e,v=r>=0?sI:TC,D=r>=0?DC:yp,z=[],Q=[{start:e,end:i}],ue=(0,w.HD)(n.backgroundColor)?n.backgroundColor:"none",we=n.width||{},Le=$m(we>0?we:we.start),Ue=$m(we>0?we:we.end),ut=Ue-Le;if(void 0!==n.ranges&&!ic(n.ranges)||!(Le>=0&&Ue>=0&&Le+Ue>0))return null;A=(ic(n.ranges)?n.ranges:[]).reduce((Gt,ln,En)=>{var on=t.adjust((ln=ln||{}).startValue),Nt=t.adjust(ln.endValue);return TE(on)&&TE(Nt)&&v(on,Nt,ln)&&Gt.push({start:on,end:Nt,color:ln.color,classIndex:En}),Gt},[]);var It=this._themeManager.createPalette(n.palette,{type:"indicatingSet",extensionMode:n.paletteExtensionMode,keepLastColorInEnd:!0,count:A.length});return(0,O.S6)(A,function(Gt,ln){var En=It.getNextColor();ln.color=(0,w.HD)(ln.color)&&ln.color||En||"none",ln.className="dxg-range dxg-range-"+ln.classIndex,delete ln.classIndex}),(0,O.S6)(A,function(Gt,ln){var En,on,Nt,Jt,un,Mn=[],Kn=[];for(En=0,on=z.length;En<on;++En)(Nt=(Jt=D((un=z[En]).start,un.end,ln.start,ln.end))[0])&&(Nt.color=un.color)&&(Nt.className=un.className)&&Mn.push(Nt),(Nt=Jt[1])&&(Nt.color=un.color)&&(Nt.className=un.className)&&Mn.push(Nt);for(Mn.push(ln),z=Mn,En=0,on=Q.length;En<on;++En)(Nt=(Jt=D((un=Q[En]).start,un.end,ln.start,ln.end))[0])&&Kn.push(Nt),(Nt=Jt[1])&&Kn.push(Nt);Q=Kn}),(0,O.S6)(Q,function(Gt,ln){ln.color=ue,ln.className="dxg-range dxg-background-range",z.push(ln)}),(0,O.S6)(z,function(Gt,ln){ln.startWidth=(ln.start-e)/r*ut+Le,ln.endWidth=(ln.end-e)/r*ut+Le}),z},render:function(n){return this._options=n,this._processOptions(),this._ranges=this._getRanges(),this._ranges&&(this.enabled=!0,this._root.linkAppend()),this},resize:function(n){var t=this;return t._root.clear(),t._isVisible(n)&&(0,O.S6)(t._ranges,function(e,i){t._createRange(i,n).attr({fill:i.color,class:i.className}).append(t._root)}),t},_processOptions:null,_isVisible:null,_createRange:null,getColorForValue:function(n){var t=null;return(0,O.S6)(this._ranges,function(e,i){if(i.start<=n&&n<=i.end||i.start>=n&&n>=i.end)return t=i.color,!1}),t}});function DC(n,t,e,i){var r;return e>n&&i<t?r=[{start:n,end:e},{start:i,end:t}]:e>=t||i<=n?r=[{start:n,end:t}]:e<=n&&i>=t?r=[]:e>n?r=[{start:n,end:e}]:i<t&&(r=[{start:i,end:t}]),r}function yp(n,t,e,i){var r;return e<n&&i>t?r=[{start:n,end:e},{start:i,end:t}]:e<=t||i>=n?r=[{start:n,end:t}]:e>=n&&i<=t?r=[]:e<n?r=[{start:n,end:e}]:i>t&&(r=[{start:i,end:t}]),r}function tv(n,t,e){var{startValue:i,endValue:r}=e;return r===i&&i===n&&t===n}function sI(n,t,e){return t-n>0||tv(n,t,e)}function TC(n,t,e){return n-t>0||tv(n,t,e)}const lI=aI;var Ym=Number,IE=Math.max,uI=lI.inherit({_processOptions:function(){switch(this._inner=this._outer=0,Sn(this._options.orientation)){case"inside":this._inner=1;break;case"center":this._inner=this._outer=.5;break;default:this._outer=1}},_isVisible:function(n){var t=this._options.width;return t=Ym(t)||IE(Ym(t.start),Ym(t.end)),n.radius-this._inner*t>0},_createRange:function(n,t){var e=(n.startWidth+n.endWidth)/2;return this._renderer.arc(t.x,t.y,t.radius-this._inner*e,t.radius+this._outer*e,this._translator.translate(n.end),this._translator.translate(n.start)).attr({"stroke-linejoin":"round"})},measure:function(n){var t=this._options.width;return t=Ym(t)||IE(Ym(t.start),Ym(t.end)),{min:n.radius-this._inner*t,max:n.radius+this._outer*t}}});const ME=uI;var AE=isFinite,xs=dt,IC=Ft,dI=Math.abs,Uu=Math.max,Jg=Math.min,MC=Math.round,PE=O.S6,kE=Math.PI,Xm=fC.inherit({_rootClass:"dxg-circular-gauge",_factoryMethods:{rangeContainer:"createCircularRangeContainer",indicator:"createCircularIndicator"},_gridSpacingFactor:17,_scaleTypes:{type:"polarAxes",drawingType:"circular"},_getThemeManagerOptions(){var n=this.callBase.apply(this,arguments);return n.subTheme="_circular",n},_updateScaleTickIndent:function(n){var t=n.label.indentFromTick,e=n.tick.visible?n.tick.length:0,i=this._scale.measureLabels((0,y.l)({},this._canvas)),r=n.orientation,v=e,D=t;t>=0?"outside"===r?D+=v:"center"===r&&(D+=v/2):(D-=Uu(i.width,i.height),"inside"===r?D-=v:"center"===r&&(D-=v/2)),n.label.indentFromAxis=D,this._scale.updateOptions(n)},_setupCodomain:function(){var i,n=this.option("geometry")||{},t=n.startAngle,e=n.endAngle;t=AE(t)?xs(t):225,e=AE(e)?xs(e):-45,dI(t-e)<1?(e-=360,i={left:-1,up:-1,right:1,down:1}):(t<e&&(e-=360),i=function Qg(n,t){var e=IC(n),i=IC(t),r=e.cos,v=e.sin,D=i.cos,A=i.sin;return{left:v<=0&&A>=0||v<=0&&A<=0&&r<=D||v>=0&&A>=0&&r>=D?-1:Jg(r,D,0),right:v>=0&&A<=0||v>=0&&A>=0&&r>=D||v<=0&&A<=0&&r<=D?1:Uu(r,D,0),up:r<=0&&D>=0||r<=0&&D<=0&&v>=A||r>=0&&D>=0&&v<=A?-1:-Uu(v,A,0),down:r>=0&&D<=0||r>=0&&D>=0&&v<=A||r<=0&&D<=0&&v>=A?1:-Jg(v,A,0)}}(t,e)),this._area={x:0,y:0,radius:100,startCoord:t,endCoord:e,sides:i},this._translator.setCodomain(t,e)},_shiftScale:function(n){var t=this._scale,e=t.getCanvas();e.width=e.height=2*n.radius,t.draw(e);var i=t.getCenter();t.shift({right:n.x-i.x,bottom:n.y-i.y})},_getScaleLayoutValue:function(){return this._area.radius},_getTicksOrientation:function(n){return n.orientation},_getTicksCoefficients:function(n){var t={inner:0,outer:1};return"inside"===n.orientation?(t.inner=1,t.outer=0):"center"===n.orientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(n,t,e){t>=0?(n.horizontalOffset=t+e.width,n.verticalOffset=t+e.height):(n.horizontalOffset=n.verticalOffset=0,n.min-=-t+Uu(e.width,e.height)),n.inverseHorizontalOffset=e.width/2,n.inverseVerticalOffset=e.height/2},_measureMainElements:function(n,t){var e=this._area.radius,i=0,r=1/0,v=0,D=0,A=0,z=0;return PE(n.concat(this._scale),function(ue,we){var Le=we.measure?we.measure({radius:e-we.getOffset()}):t;Le.min>0&&(r=Jg(r,Le.min)),Le.max>0&&(i=Uu(i,Le.max)),Le.horizontalOffset>0&&(v=Uu(v,Le.max+Le.horizontalOffset)),Le.verticalOffset>0&&(D=Uu(D,Le.max+Le.verticalOffset)),Le.inverseHorizontalOffset>0&&(A=Uu(A,Le.inverseHorizontalOffset)),Le.inverseVerticalOffset>0&&(z=Uu(z,Le.inverseVerticalOffset))}),v=Uu(v-i,0),D=Uu(D-i,0),{minRadius:r,maxRadius:i,horizontalMargin:v,verticalMargin:D,inverseHorizontalMargin:A,inverseVerticalMargin:z}},_applyMainLayout:function(n,t){var e=this._measureMainElements(n,t),i=this._area,r=i.sides,v={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},D=function cI(n,t,e){var r,i=(0,y.l)({},n),v=0,D=0;return e=e||{},t>0&&(i.left+=e.left||0,i.right-=e.right||0,i.top+=e.top||0,i.bottom-=e.bottom||0,Cp(i)>0&&ih(i)>0?((r=ih(i)/Cp(i))>1?t<r?v=Cp(i):D=ih(i):t>r?D=ih(i):v=Cp(i),v>0||(v=D/t),D>0||(D=v*t),v=(Cp(i)-v)/2,D=(ih(i)-D)/2,i.left+=v,i.right-=v,i.top+=D,i.bottom-=D):(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),v),A=Jg(Cp(D)/(r.right-r.left),ih(D)/(r.down-r.up));A=A-e.maxRadius+i.radius;var z=D.left-Cp(D)*r.left/(r.right-r.left),Q=D.top-ih(D)*r.up/(r.down-r.up);i.x=MC(z),i.y=MC(Q),i.radius=A,D.left-=v.left,D.right+=v.right,D.top-=v.top,D.bottom+=v.bottom,this._innerRect=D},_getElementLayout:function(n){return{x:this._area.x,y:this._area.y,radius:MC(this._area.radius-n)}},_getApproximateScreenRange:function(){var n=this._area,t=Jg(this._canvas.width/(n.sides.right-n.sides.left),this._canvas.height/(n.sides.down-n.sides.up));return t>n.totalRadius&&(t=n.totalRadius),t*=.8,-this._translator.getCodomainRange()*t*kE/180},_getDefaultSize:function(){return{width:300,height:300}},_factory:(0,Ee.d9)(br.prototype._factory)});function Cp(n){return n.right-n.left}function ih(n){return n.bottom-n.top}var rc=Xm.prototype._factory.indicators={};Xm.prototype._factory.createIndicator=CC(rc),rc._default=OC,rc.rectangleneedle=OC,rc.triangleneedle=wE,rc.twocolorneedle=EE,rc.trianglemarker=SE,rc.textcloud=OE,rc.rangebar=DE,Xm.prototype._factory.RangeContainer=ME,(0,T.Z)("dxCircularGauge",Xm);const RE=Xm;var rh=Number,ef=Math,Wl=ef.round,oc=ef.max,AC=ef.min,uu=ef.ceil,du=w.$K,cu=w.mf,xp=ni,PC=Sn,hI=y.l,bs="center",Ts="right",hu="left",Zu="top",Ed="bottom",tf="horizontal",kC="vertical",RC="outside",Jm="none",rv=xp([hu,bs,Ts]),BC=xp([Zu,Ed]),LE=xp([kC,tf]),BE=xp([hu,Ts,Zu,Ed]),FE=xp([RC,"inside"]),VE=xp([hu,bs,Ts]);function FC(n,t,e){if(n){var i=n.fill;return(0,y.l)({},{state:e,fill:i===Jm?t:i,opacity:n.opacity,hatching:hI({},n.hatching,{step:5,width:2})})}}function VC(n,t,e){var i=Xf(n,t);return i.fill&&0===i.fill.indexOf("DevExpress")&&(i.fill=Sc(i.fill)),i.opacity=i.opacity>=0?i.opacity:1,(0,y.l)({},i,{size:e})}function NC(n,t,e,i){var r=t&&e[t[n]];r&&r.renderMarker(r.states[i])}function mI(n,t,e){return n?(function NE(n){var t=n.margin;t=t>=0?{top:t=rh(n.margin),bottom:t,left:t,right:t}:{top:t.top>=0?rh(t.top):10,bottom:t.bottom>=0?rh(t.bottom):10,left:t.left>=0?rh(t.left):10,right:t.right>=0?rh(t.right):10},n.margin=t}(n),n.horizontalAlignment=rv(n.horizontalAlignment,Ts),n.verticalAlignment=BC(n.verticalAlignment,n.horizontalAlignment===bs?Ed:Zu),n.orientation=LE(n.orientation,n.horizontalAlignment===bs?tf:kC),n.itemTextPosition=BE(n.itemTextPosition,n.orientation===tf?Ed:Ts),n.position=e?FE(n.position,RC):RC,n.itemsAlignment=VE(n.itemsAlignment,null),n.hoverMode=PC(n.hoverMode),n.customizeText=cu(n.customizeText)?n.customizeText:function(){return this[t]},n.customizeHint=cu(n.customizeHint)?n.customizeHint:E.ZT,n._incidentOccurred=n._incidentOccurred||E.ZT,n):null}function _I(n,t){return n.rect(0,0,t,t)}function vI(n,t){return n.circle(t/2,t/2,t/2)}function CI(n,t,e){return t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}function xI(n,t,e,i){var A,r={x:0,y:0},v=0,D=0;if(A="y"===t.direction?i.top+i.bottom:i.left+i.right,n.forEach(function(z,Q){var ue=z[0],we=z.length;z.forEach(function(Le,Ue){r[t.direction]+=Le[t.measure]+(Ue!==we-1?Le.offset||t.spacing:0),v=oc(v,r[t.direction])}),r[t.direction]=0,r[t.altDirection]+=ue[t.altMeasure]+ue.altOffset||t.altSpacing,D=oc(D,r[t.altDirection])}),v+A>t.length)return t.countItem=function zE(n,t){return n.altCountItem++,uu(t/n.altCountItem)}(t,e),!0}function WE(n,t){return n.reduce((e,i)=>e+i[t.measure]+(i.offset||t.spacing),0)}function EI(n){switch(n.itemTextPosition){case Ed:return{horizontal:bs,vertical:Zu};case Zu:return{horizontal:bs,vertical:Ed};case hu:return{horizontal:Ts,vertical:bs};case Ts:return{horizontal:hu,vertical:bs}}}function UE(n,t){var e=n.reduce((i,r)=>oc(i,r?r[t]:i),0);n.forEach(i=>{i&&(i[t]=e)})}function ZE(n){var i,r,t=n.length,e=n[0].length,v=[];for(i=0;i<e;i++)for(v[i]=[],r=0;r<t;r++)v[i][r]=n[r][i];return v}function GE(n){return n.horizontalAlignment===bs?bs:n.itemTextPosition===Ts?hu:n.itemTextPosition===hu?Ts:bs}var oh=function(n){this._renderer=n.renderer,this._legendGroup=n.group,this._backgroundClass=n.backgroundClass,this._itemGroupClass=n.itemGroupClass,this._textField=n.textField,this._getCustomizeObject=n.getFormatObject,this._titleGroupClass=n.titleGroupClass,this._allowInsidePosition=n.allowInsidePosition,this._widget=n.widget,this._updated=!1},HC=oh,jE=HC.prototype=(0,Ee.d9)(Gd.prototype);(0,y.l)(jE,{constructor:HC,getOptions:function(){return this._options},update:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,r=(t=i._options=mI(t,i._textField,i._allowInsidePosition)||{}).markerSize;if(this._updated=!0,this._data=n.map(D=>(D.size=rh(D.size>0?D.size:r),D.marker=VC(D,D.states.normal),Object.defineProperty(D.marker,"size",{get:()=>D.size,set(A){D.size=A}}),Object.defineProperty(D.marker,"opacity",{get:()=>D.states.normal.opacity,set(A){D.states.normal.opacity=D.states.hover.opacity=D.states.selection.opacity=A}}),D)),t.customizeItems&&(i._data=t.customizeItems(n.slice())||n),i._boundingRect={width:0,height:0,x:0,y:0},i.isVisible()&&!i._title&&(i._title=new Zc({renderer:i._renderer,cssClass:i._titleGroupClass,root:i._legendGroup})),i._title){var v=t.title;e.horizontalAlignment=GE(t),i._title.update(e,v)}return this.erase(),i},isVisible:function(){return this._options&&this._options.visible},draw:function(n,t){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(n-(this._background?2*this._options.paddingLeftRight:0),t),this._markersGroup=this._renderer.g().attr({class:this._itemGroupClass}).append(this._insideLegendGroup),this._createItems(e),this._updateElementsPosition(n,t),this):this},_measureElements:function(){var n=this._options,t=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 v=function HE(n,t,e){var i,r;switch(n.itemTextPosition){case hu:case Ts:i=t.width+7+e.width,r=oc(t.height,e.height);break;case Zu:case Ed:i=oc(t.width,e.width),r=t.height+4+e.height}return{width:i,height:r}}(n,r,i);e.labelBBox=i,e.bBox=v,t=oc(t,v.height)}),n.equalRowHeight&&this._items.forEach(e=>e.bBox.height=t)},_updateElementsPosition:function(n,t){var e=this._options;this._size={width:n,height:t},this._measureElements(),this._locateElements(e),this._finalUpdate(e);var i=this.getLayoutOptions();(i.width>n||i.height>t)&&this.freeSpace()},_createItems:function(n){var t=this,e=t._options,i=t._renderer,r=function(n){return function yI(n){return"circle"===PC(n)}(n)?vI:_I}(e.markerShape);t._markersId={};var D=t._widget._getTemplate(e.markerTemplate?e.markerTemplate:(z,Q)=>{var ue=z.marker;r(i,ue.size).attr({fill:ue.fill,opacity:ue.opacity}).append({element:Q})}),A=t._markersGroup;A.css(di(e.font)),t._deferredItems=[],t._templatesGroups=[],t._items=(n||[]).map((z,Q)=>{var ue=z.states,we=ue.normal,Le=we.fill;z.size=z.marker.size;var Ue={normal:(0,y.l)(we,{fill:Le||e.markerColor||e.defaultColor,state:"normal"}),hover:FC(ue.hover,Le,"hovered"),selection:FC(ue.selection,Le,"selected")};z.states=Ue;var ut=i.g().append(A),It=i.g().attr({class:"dxl-marker"}).append(ut);t._deferredItems[Q]=new P.BH,t._templatesGroups.push(It);var Gt={label:t._createLabel(z,ut),marker:It,renderer:i,group:ut,tracker:{id:z.id,argument:z.argument,argumentIndex:z.argumentIndex},states:Ue,itemTextPosition:e.itemTextPosition,markerOffset:0,bBoxes:[],renderMarker(ln){z.marker=VC(Gt,ln,z.size),It.clear(),D.render({model:z,container:It.element,onRendered:t._deferredItems[Q].resolve})}};return Gt.renderMarker(Ue.normal),t._createHint(z,ut),void 0!==z.id&&(t._markersId[z.id]=Q),Gt})},getTemplatesGroups:function(){return this._templatesGroups||[]},getTemplatesDef:function(){return this._deferredItems||[]},_getItemData:function(){var n=this._data||[];return(this._options||{}).inverted&&(n=n.slice().reverse()),n.filter(e=>e.visible)},_finalUpdate:function(n){this._adjustBackgroundSettings(n),this._setBoundingRect(n.margin)},erase:function(){var n=this._insideLegendGroup;return n&&n.dispose(),this._insideLegendGroup=this._markersGroup=this._x1=this._x2=this._y2=this._y2=null,this},_locateElements:function(n){this._moveInInitialValues(),this._locateRowsColumns(n)},_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(n){return NC(n,this._markersId,this._items,"selection"),this},applyHover:function(n){return NC(n,this._markersId,this._items,"hover"),this},resetItem:function(n){return NC(n,this._markersId,this._items,"normal"),this},_createLabel:function(n,t){var e=this._getCustomizeObject(n),i=this._options,r=function OI(n){switch(n){case Zu:case Ed:return bs;case hu:return Ts;case Ts:return hu}}(i.itemTextPosition),v=i.customizeText.call(e,e),D=du(n.textOpacity)?{color:i.font.color,opacity:n.textOpacity}:{};return this._renderer.text(v,0,0).css(di(D)).attr({align:r,class:i.cssClass}).append(t)},_createHint:function(n,t){var e=this._getCustomizeObject(n),i=this._options.customizeHint.call(e,e);du(i)&&""!==i&&t.setTitle(i)},_createBackground:function(){var n="inside"===this._options.position,t=this._options.backgroundColor,e=t||(n?this._options.containerBackgroundColor:Jm);(this._options.border.visible||(n||t)&&t!==Jm)&&(this._background=this._renderer.rect(0,0,0,0).attr({fill:e,class:this._backgroundClass}).append(this._insideLegendGroup))},_locateRowsColumns:function(n){var r,t=0,e=this._getItemsLayoutOptions(),i=this._items.length;do{this._createLines(r=[],e),this._alignLines(r,e),t++}while(xI(r,e,i,n.margin)&&t<i);this._applyItemPosition(r,e)},_createLines:function(n,t){this._items.forEach((e,i)=>{var A,z,r=function SI(n,t,e){var i={};return e%t.countItem==0&&(t.markerOffset?n.push([],[]):n.push([])),t.markerOffset?(i.firstLine=n[n.length-1],i.secondLine=n[n.length-2]):i.firstLine=i.secondLine=n[n.length-1],i}(n,t,i),v={width:e.labelBBox.width,height:e.labelBBox.height,element:e.label,bBox:e.labelBBox,pos:EI(t),itemIndex:i},D={width:e.markerBBox.width,height:e.markerBBox.height,element:e.marker,pos:{horizontal:bs,vertical:bs},bBox:{width:e.markerBBox.width,height:e.markerBBox.height,x:e.markerBBox.x,y:e.markerBBox.y},itemIndex:i};t.inverseLabelPosition?(A=v,z=D):(A=D,z=v),A[t.markerOffset?"altOffset":"offset"]=t.labelOffset,r.secondLine.push(A),r.firstLine.push(z)})},_alignLines:function(n,t){var e,i=t.altMeasure;if(n.forEach(v=>UE(v,i)),i=t.measure,t.itemsAlignment){if(t.markerOffset)for(e=0;e<n.length;)ZE([n[e++],n[e++]]).forEach(r)}else ZE(n).forEach(r);function r(v){UE(v,i)}},_applyItemPosition:function(n,t){var e=this,i={x:0,y:0},r=function bI(n,t){return n.reduce((e,i)=>oc(e,WE(i,t)),0)}(n,t);n.forEach(v=>{var D=v[0],A=D.altOffset||t.altSpacing;i[t.direction]=function wI(n,t,e){var r,i=WE(n,t);switch(t.itemsAlignment){case Ts:r=e-i;break;case bs:r=(e-i)/2;break;default:r=0}return r}(v,t,r),v.forEach(z=>{var Q=z.offset||t.spacing,ue=new Wc(z.element,z.bBox),Le=new Wc(null,{x:i.x,y:i.y,width:z.width,height:z.height}),Ue=e._items[z.itemIndex];ue.position({of:Le,my:z.pos,at:z.pos}),Ue.bBoxes.push(Le),i[t.direction]+=z[t.measure]+Q}),i[t.altDirection]+=D[t.altMeasure]+A}),this._items.forEach(v=>{var D=function fI(n,t){var e={};return e.left=AC(n.x,t.x),e.top=AC(n.y,t.y),e.right=oc(n.x+n.width,t.x+t.width),e.bottom=oc(n.y+n.height,t.y+t.height),e}(v.bBoxes[0].getLayoutOptions(),v.bBoxes[1].getLayoutOptions()),A=e._options.columnItemSpacing/2,z=e._options.rowItemSpacing/2;v.tracker.left=D.left-A,v.tracker.right=D.right+A,v.tracker.top=D.top-z,v.tracker.bottom=D.bottom+z})},_getItemsLayoutOptions:function(){var n=this._options,e={itemsAlignment:n.itemsAlignment,orientation:n.orientation},r=this._size.height-(this._background?2*n.paddingTopBottom:0);return n.orientation===tf?(e.length=this._size.width-(this._background?2*n.paddingLeftRight:0),e.spacing=n.columnItemSpacing,e.direction="x",e.measure="width",e.altMeasure="height",e.altDirection="y",e.altSpacing=n.rowItemSpacing,e.countItem=n.columnCount,e.altCountItem=n.rowCount,e.marginTextLabel=4,e.labelOffset=7,(n.itemTextPosition===Ed||n.itemTextPosition===Zu)&&(e.labelOffset=4,e.markerOffset=!0)):(e.length=r,e.spacing=n.rowItemSpacing,e.direction="y",e.measure="height",e.altMeasure="width",e.altDirection="x",e.altSpacing=n.columnItemSpacing,e.countItem=n.rowCount,e.altCountItem=n.columnCount,e.marginTextLabel=7,e.labelOffset=4,(n.itemTextPosition===Ts||n.itemTextPosition===hu)&&(e.labelOffset=7,e.markerOffset=!0)),e.countItem||(e.countItem=e.altCountItem?uu(this._items.length/e.altCountItem):this._items.length),(n.itemTextPosition===Zu||n.itemTextPosition===hu)&&(e.inverseLabelPosition=!0),e.itemTextPosition=n.itemTextPosition,e.altCountItem=e.altCountItem||uu(this._items.length/e.countItem),e},_adjustBackgroundSettings:function(n){if(this._background){var t=n.border,e=this._calculateTotalBox(),i={x:Wl(e.x-n.paddingLeftRight),y:Wl(e.y-n.paddingTopBottom),width:Wl(e.width)+2*n.paddingLeftRight,height:Wl(e.height),opacity:n.backgroundOpacity};t.visible&&t.width&&t.color&&t.color!==Jm&&(i["stroke-width"]=t.width,i.stroke=t.color,i["stroke-opacity"]=t.opacity,i.dashStyle=t.dashStyle,i.rx=t.cornerRadius||0,i.ry=t.cornerRadius||0),this._background.attr(i)}},_setBoundingRect:function(n){if(this._insideLegendGroup){var t=this._calculateTotalBox();t.height+=n.top+n.bottom,t.widthWithoutMargins=t.width,t.width+=n.left+n.right,t.x-=n.left,t.y-=n.top,this._boundingRect=t}},_calculateTotalBox:function(){var n=this._markersGroup.getBBox(),t=this._title.getCorrectedLayoutOptions(),e=this._insideLegendGroup.getBBox();return e.height=n.height+t.height+(this._background?2*this._options.paddingTopBottom:0),t.width>e.width&&(e.width=t.width),e},getActionCallback:function(n){var t=this;return t._options.visible?function(e){t[e](n.index)}:E.ZT},getLayoutOptions:function(){var n=this._options,t=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return n?(t.verticalAlignment=n.verticalAlignment,t.horizontalAlignment=n.horizontalAlignment,n.orientation===tf||n.horizontalAlignment===bs?(t.cutLayoutSide=n.verticalAlignment,t.cutSide="vertical"):(t.cutLayoutSide=n.horizontalAlignment,t.cutSide="horizontal"),t.position={horizontal:n.horizontalAlignment,vertical:n.verticalAlignment},t):null},shift:function(n,t){var e={};return this._insideLegendGroup&&this._insideLegendGroup.attr({translateX:n-this._boundingRect.x,translateY:t-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(n){var t=this._title,e=t.getCorrectedLayoutOptions();if(e&&t.hasText()){var i=n-(this._background?2*this._options.paddingLeftRight:0),r=t.getOptions(),v=e.y+r.margin.top,D=0;r.verticalAlignment===Ed&&this._markersGroup&&(v+=this._markersGroup.getBBox().height),r.horizontalAlignment===Ts?D=i-e.width:r.horizontalAlignment===bs&&(D=(i-e.width)/2),t.shift(D,v)}},_shiftMarkers:function(){var n=this._title.getLayoutOptions(),t=this._markersGroup.getBBox(),e=this._title.getOptions()||{},i=0,r=0;n.width>t.width&&this._options.horizontalAlignment===bs&&(i=n.width/2-t.width/2),e.verticalAlignment===Zu&&(r=n.height),(0!==i||0!==r)&&(this._markersGroup.attr({translateX:i,translateY:r}),this._items.forEach(v=>{v.tracker.left+=i,v.tracker.right+=i,v.tracker.top+=r,v.tracker.bottom+=r}))},getPosition:function(){return this._options.position},coordsIn:function(n,t){return n>=this._x1&&n<=this._x2&&t>=this._y1&&t<=this._y2},getItemByCoord:function(n,t){var e=this._items,i=this._insideLegendGroup;n-=i.attr("translateX"),t-=i.attr("translateY");for(var r=0;r<e.length;r++)if(CI(e[r].tracker,n,t))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 n=this.getLayoutOptions();return{horizontalAlignment:this._options.horizontalAlignment,verticalAlignment:this._options.verticalAlignment,side:n.cutSide,priority:1,position:this.getPosition()}},measure:function(n){this._updated||!this._insideLegendGroup?(this.draw(n[0],n[1]),this._updated=!1):(this._items.forEach(e=>{e.bBoxes=[]}),this._updateElementsPosition(n[0],n[1]));var t=this.getLayoutOptions();return[t.width,t.height]},move:function(n){this.shift(n[0],n[1])},freeSpace:function(){this._options._incidentOccurred("W2104"),this.erase()}});var ZC,zC={name:"legend",init:function(){var n=this._renderer.g().attr({class:this._rootClassPrefix+"-legend"}).enableLinks().append(this._renderer.root);this._legend=new oh({renderer:this._renderer,group:n,widget:this,itemGroupClass:this._rootClassPrefix+"-item",titleGroupClass:this._rootClassPrefix+"-title",textField:"text",getFormatObject:function(t){return{item:t.item,text:t.text}}}),this._layout.add(this._legend)},extenders:{_applyTilesAppearance:function(){var n=this;this._items.forEach(function(t){n._applyLegendItemStyle(t.id,t.getState())})},_buildNodes:function(){this._createLegendItems()}},members:{_applyLegendItemStyle:function(n,t){var e=this._legend;switch(t){case"hover":e.applyHover(n);break;case"selection":e.applySelected(n);break;default:e.resetItem(n)}},_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(n){n.prototype._proxyData.push(function(t,e){if(this._legend.coordsIn(t,e)){var i=this._legend.getItemByCoord(t,e);if(i)return{id:i.id,type:"legend"}}}),n.addChange({code:"LEGEND",handler:function(){this._createLegendItems()},isThemeDependent:!0,option:"legend",isOptionChange:!0})}},$E=Math.PI/180,ov=Math.abs,av=Math.round,sv=Math.floor,lv=Math.min,ah=Math.max,DI=ao,YE=eo,nf=Io,v2=Array.isArray,WC=ht,TI=Ft,XE=di,rf=Number,Qm=isFinite,vo=E.ZT,bp=y.l,UC="values",sh=br.inherit({_rootClass:"dxbg-bar-gauge",_themeSection:"barGauge",_fontFields:["label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initCore:function(){var n=this;n.callBase.apply(n,arguments),n._barsGroup=n._renderer.g().attr({class:"dxbg-bars"}).linkOn(n._renderer.root,"bars"),n._values=[],n._context={renderer:n._renderer,translator:n._translator,tracker:n._tracker,group:n._barsGroup},n._animateStep=function(t){var i,r,e=n._bars;for(i=0,r=e.length;i<r;++i)e[i].animate(t)},n._animateComplete=function(){n._bars.forEach(t=>t.endAnimation()),n._checkOverlap()}},_disposeCore:function(){var n=this;n._barsGroup.linkOff(),n._barsGroup=n._values=n._context=n._animateStep=n._animateComplete=null,n.callBase.apply(n,arguments)},_setupDomainCore:function(){var n=this.option("startValue"),t=this.option("endValue");Qm(n)||(n=0),Qm(t)||(t=100),this._translator.setDomain(n,t),this._baseValue=this._translator.adjust(this.option("baseValue")),Qm(this._baseValue)||(this._baseValue=n<t?n:t)},_getDefaultSize:function(){return{width:300,height:300}},_setupCodomain:RE.prototype._setupCodomain,_getApproximateScreenRange:function(){var n=this._area.sides,t=this._canvas.width/(n.right-n.left),e=this._canvas.height/(n.down-n.up),i=t<e?t:e;return-this._translator.getCodomainRange()*i*$E},_setupAnimationSettings:function(){var n=this;n.callBase.apply(n,arguments),n._animationSettings&&(n._animationSettings.step=n._animateStep,n._animationSettings.complete=n._animateComplete)},_cleanContent:function(){this._barsGroup.linkRemove(),this._animationSettings&&this._barsGroup.stopAnimation(),this._barsGroup.clear()},_renderContent:function(){var t,e,n=this.option("label"),i=this._context;this._barsGroup.linkAppend(),i.textEnabled=void 0===n||n&&(!("visible"in n)||n.visible),i.textEnabled&&(i.textColor=n&&n.font&&n.font.color||null,n=bp(!0,{},this._themeManager.theme().label,n),i.formatOptions={format:void 0!==n.format?n.format:this._defaultFormatOptions,customizeText:n.customizeText},i.textOptions={align:"center"},i.fontStyles=XE(bp({},this._themeManager.theme().label.font,n.font,{color:null})),this._textIndent=n.indent>0?rf(n.indent):0,i.lineWidth=n.connectorWidth>0?rf(n.connectorWidth):0,i.lineColor=n.connectorColor||null,e=(t=this._renderer.text(DI(this._translator,i.formatOptions),0,0).attr(i.textOptions).css(i.fontStyles).append(this._barsGroup)).getBBox(),t.remove(),i.textY=e.y,i.textWidth=e.width,i.textHeight=e.height),RE.prototype._applyMainLayout.call(this),this._renderBars()},_measureMainElements:function(){var n={maxRadius:this._area.radius};return this._context.textEnabled&&(n.horizontalMargin=this._context.textWidth,n.verticalMargin=this._context.textHeight,n.inverseHorizontalMargin=this._context.textWidth/2,n.inverseVerticalMargin=this._context.textHeight/2),n},_renderBars:function(){var t,n=bp({},this._themeManager.theme(),this.option()),e=this._area,i=n.relativeInnerRadius>0&&n.relativeInnerRadius<1?rf(n.relativeInnerRadius):.1;t=e.radius,this._context.textEnabled&&(this._textIndent=av(lv(this._textIndent,t/2)),t-=this._textIndent),this._outerRadius=sv(t),this._innerRadius=sv(t*i),this._barSpacing=n.barSpacing>0?rf(n.barSpacing):0,bp(this._context,{backgroundColor:n.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,n=this._outerRadius-this._innerRadius,t=this._context,i=this._bars.length;this._beginValueChanging(),t.barSize=i>0?ah((n-(i-1)*this._barSpacing)/i,1):0;var r=i>1?ah(lv((n-i*t.barSize)/(i-1),this._barSpacing),0):0,v=lv(sv((n+r)/t.barSize),i);this._setBarsCount(i),t.textRadius=n=this._outerRadius,t.textIndent=this._textIndent,this._palette.reset();var D=t.barSize+r,A=this._palette.generateColors(v);for(e=0;e<v;++e,n-=D)this._bars[e].arrange({radius:n,color:A[e]});for(var z=v;z<i;z++)this._bars[z].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(n=>n.applyValue()),this._checkOverlap()},_checkOverlap:function(){var n=this._bars;if("none"!==Sn(this._getOption("resolveLabelOverlapping",!0)))for(var e=n.concat().sort((A,z)=>A.getValue()-z.getValue()),i=0,r=1;i<e.length&&r<e.length;){var D=e[r];e[i].checkIntersect(D)?(D.hideLabel(),r++):r=(i=r)+1}},_animateBars:function(){var n,t=this._bars.length;if(t>0){for(n=0;n<t;++n)this._bars[n].beginAnimation();this._barsGroup.animate({_:0},this._animationSettings)}},_buildNodes(){var n=this,t=n._options.silent();n._palette=n._themeManager.createPalette(t.palette,{useHighlight:!0,extensionMode:t.paletteExtensionMode}),n._palette.reset(),n._bars=n._bars||[],n._animationSettings&&n._barsGroup.stopAnimation();var e=n._values.filter(Qm),i=e.length;if(n._bars.length>i){for(var r=n._bars.length,v=i;v<r;++v)n._bars[v].dispose();n._bars.splice(i,r-i)}else if(n._bars.length<i)for(var D=n._bars.length;D<i;++D)n._bars.push(new ZC(D,n._context));n._bars.forEach((A,z)=>{A.update({color:n._palette.getNextColor(i),value:e[z]})})},_updateValues:function(n){var e,r,t=v2(n)&&n||Qm(n)&&[n]||[],i=t.length;for(this._values.length=i,e=0;e<i;++e)this._values[e]=rf(Qm(r=t[e])?r:this._values[e]);this._resizing||nf(this._values,this.option(UC))||this.option(UC,this._values.slice()),this._change(["NODES"])},values:function(n){return void 0!==n?(this._updateValues(n),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(UC))},_factory:(0,Ee.d9)(br.prototype._factory),_optionChangesOrder:["VALUES","NODES"],_initialChanges:["VALUES"],_change_NODES(){this._buildNodes()},_change_MOSTLY_TOTAL:function(){this._change(["NODES"]),this.callBase()},_proxyData:[],_getLegendData(){var n={},t=this._options.silent();return n.format=(t.legend||{}).itemTextFormat||(t.label||{}).format||this._defaultFormatOptions,(this._bars||[]).map(r=>({id:r.index,item:{value:r.getValue(),color:r.getColor(),index:r.index},text:YE(r.getValue(),n),visible:!0,states:{normal:{fill:r.getColor()}}}))}});function qE(n,t,e){n.startAngle=t<e?t:e,n.endAngle=t<e?e:t}function e0(n,t){return ov(n-t)<1e-4}ZC=function(n,t){this._context=t,this._tracker=t.renderer.arc().attr({"stroke-linejoin":"round"}),this.index=n},bp(ZC.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(n){var t=this._context;return this._visible=!0,t.tracker.attach(this._tracker,this,{index:this.index}),this._background=t.renderer.arc().attr({"stroke-linejoin":"round",fill:t.backgroundColor}).append(t.group),this._settings=this._settings||{x:t.x,y:t.y,startAngle:t.baseAngle,endAngle:t.baseAngle},this._bar=t.renderer.arc().attr(bp({"stroke-linejoin":"round"},this._settings)).append(t.group),t.textEnabled&&(this._line=t.renderer.path([],"line").attr({"stroke-width":t.lineWidth}).append(t.group),this._text=t.renderer.text().css(t.fontStyles).attr(t.textOptions).append(t.group)),this._angle=isFinite(this._angle)?this._angle:t.baseAngle,this._settings.outerRadius=n.radius,this._settings.innerRadius=n.radius-t.barSize,this._settings.x=t.x,this._settings.y=t.y,this._background.attr(bp({},this._settings,{startAngle:t.endAngle,endAngle:t.startAngle,fill:this._context.backgroundColor})),this._bar.attr({x:t.x,y:t.y,outerRadius:this._settings.outerRadius,innerRadius:this._settings.innerRadius,fill:this._color}),this._tracker.attr(this._settings),t.textEnabled&&(this._line.attr({points:[t.x,t.y-this._settings.innerRadius,t.x,t.y-t.textRadius-t.textIndent],stroke:t.lineColor||this._color}).sharp(),this._text.css({fill:t.textColor||this._color})),this},getTooltipParameters:function(){var n=TI((this._angle+this._context.baseAngle)/2);return{x:av(this._context.x+(this._settings.outerRadius+this._settings.innerRadius)/2*n.cos),y:av(this._context.y-(this._settings.outerRadius+this._settings.innerRadius)/2*n.sin),offset:0,color:this._color,value:this._value}},setAngle:function(n){var i,t=this._context,e=this._settings;if(this._angle=n,qE(e,t.baseAngle,n),this._bar.attr(e),this._tracker.attr(e),t.textEnabled){i=TI(n);var r=t.textIndent,v=t.textRadius+r,D=t.x+v*i.cos,A=t.y-v*i.sin,z=.5*t.textWidth,Q=t.textHeight,ue=t.textY;ov(D-t.x)>r&&(D+=D<t.x?-z:z),ov(A-t.y)<=r?A-=ue+.5*Q:A-=A<t.y?ue+Q:ue;var we=YE(this._value,t.formatOptions,{index:this.index}),Le=""===we?"hidden":null;this._text.attr({text:we,x:D,y:A,visibility:Le}),this._line.attr({visibility:Le}),this._line.rotate(WC(n),t.x,t.y)}return this},hideLabel:function(){this._text.attr({visibility:"hidden"}),this._line.attr({visibility:"hidden"})},checkIntersect:function(n){var t=this.calculateLabelCoords(),e=n.calculateLabelCoords();return!(!t||!e)&&Math.max(0,Math.min(t.bottomRight.x,e.bottomRight.x)-Math.max(t.topLeft.x,e.topLeft.x))*Math.max(0,Math.min(t.bottomRight.y,e.bottomRight.y)-Math.max(t.topLeft.y,e.topLeft.y))!=0},calculateLabelCoords:function(){if(this._text){var n=this._text.getBBox();return{topLeft:{x:n.x,y:n.y},bottomRight:{x:n.x+n.width,y:n.y+n.height}}}},_processValue:function(n){return this._context.translator.translate(this._context.translator.adjust(n))},applyValue(){return this._visible?this.setAngle(this._processValue(this.getValue())):this},update(n){var{color:t,value:e}=n;this._color=t,this._value=e},hide(){this._visible=!1},getColor(){return this._color},getValue(){return this._value},beginAnimation:function(){if(!this._visible)return this;var n=this._processValue(this.getValue());e0(this._angle,n)?(this.animate=vo,this.setAngle(this._angle)):(this._start=this._angle,this._delta=n-this._angle,this._tracker.attr({visibility:"hidden"}),this._context.textEnabled&&(this._line.attr({visibility:"hidden"}),this._text.attr({visibility:"hidden"})))},animate:function(n){if(!this._visible)return this;this._angle=this._start+this._delta*n,qE(this._settings,this._context.baseAngle,this._angle),this._bar.attr(this._settings)},endAnimation:function(){void 0!==this._delta?e0(this._angle,this._start+this._delta)&&(this._tracker.attr({visibility:null}),this.setAngle(this._angle)):delete this.animate,delete this._start,delete this._delta}}),(0,T.Z)("dxBarGauge",sh),sh.addPlugin(zC);let II=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.lj9,M.aZm,M.e1H,M.YXG,M.FZZ,M.FYN,M.bgw,M.jUr,M.KjY,M.rrz,M.lTN,M.rHV,M.Kx,M.vZC,M.Ois,f.Lz,f.ie,p.Cu],M.IOm,M.lj9,M.aZm,M.e1H,M.YXG,M.FZZ,M.FYN,M.bgw,M.jUr,M.KjY,M.rrz,M.lTN,M.rHV,M.Kx,M.vZC,M.Ois,f.ie]}),n})();l(6026);let QE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,M.n18,f.Lz,f.ie,p.Cu],M.Q8p,M.n18,f.ie]}),n})();var dv="sparkline-tooltip",cv=(0,k.V4)([_o.Z.down,_o.Z.move],dv),hv=y.l,tS=Math.floor;function PI(n){var{data:t}=n,e=t.widget;e._enableOutHandler(),e._showTooltip()}function kI(n,t,e){var i=function t0(n,t){var i=(n.lineSpacing??2)+n.size;return function(r){for(var v="",D=r.valueText,A=0;A<D.length;A+=2)v+="<tr><td>"+D[A]+"</td><td style='width: 15px'></td><td style='text-align: "+(t?"left":"right")+"'>"+D[A+1]+"</td></tr>";return{html:"<table style='border-spacing:0px; line-height: "+i+"px'>"+v+"</table>"}}}(t,e);return(0,w.mf)(n)?function(r){var v=n.call(r,r);return!("html"in v)&&!("text"in v)&&hv(v,i.call(r,r)),v}:i}function nS(n){var t=new Hg({},{},{shiftZeroValue:!n,isHorizontal:!!n});return{getTranslator:function(){return t},update:function(e,i,r){t.update(e,i,r)},getVisibleArea(){var e=t.getCanvasVisibleArea();return[e.min,e.max]},visualRange:E.ZT,calculateInterval:E.ZT,getMarginOptions:()=>({}),aggregatedPointBetweenTicks:()=>!1}}var iS,pu=Cl.inherit({_getLayoutItems:E.ZT,_useLinks:!1,_themeDependentChanges:["OPTIONS"],_initCore:function(){this._tooltipTracker=this._renderer.root,this._tooltipTracker.attr({"pointer-events":"visible"}),this._createHtmlElements(),this._initTooltipEvents(),this._argumentAxis=nS(!0),this._valueAxis=nS()},_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 n=this._getCorrectCanvas();this._updateRange(),this._argumentAxis.update(this._ranges.arg,n,this._getStick()),this._valueAxis.update(this._ranges.val,n)},_getStick:function(){},_applySize:function(n){this._allOptions.size={width:n[2]-n[0],height:n[3]-n[1]},this._change(["UPDATE"])},_setupResizeHandler:E.ZT,_prepareOptions:function(){return hv(!0,{},this._themeManager.theme(),this.option())},_getTooltipCoords:function(){var n=this._canvas,t=this._renderer.getRootOffset();return{x:n.width/2+t.left,y:n.height/2+t.top}},_initTooltipEvents(){var n={widget:this};this._renderer.root.off("."+dv).on(cv,n,PI)},_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 n=this;if(!n._outHandler){var t=e=>{var{pageX:i,pageY:r}=e,{left:v,top:D}=n._renderer.getRootOffset(),A=tS(i-v),z=tS(r-D);(function AI(n,t,e){var{width:i,height:r}=n;return so({left:0,top:0,right:i,bottom:r,width:i,height:r},t,e)})(n._canvas,A,z)||(n._hideTooltip(),n._disableOutHandler())};d.Z.on(b.Z.getDocument(),cv,t),this._outHandler=t}},_disableOutHandler(){this._outHandler&&d.Z.off(b.Z.getDocument(),cv,this._outHandler),this._outHandler=null},_disposeTooltipEvents:function(){this._tooltipTracker.off(),this._disableOutHandler(),this._renderer.root.off("."+dv)},_getTooltip:function(){var n=this;return n._tooltip||(iS.apply(this,arguments),n._setTooltipRendererOptions(n._tooltipRendererOptions),n._tooltipRendererOptions=null,n._setTooltipOptions()),n._tooltip}});const KC=pu;pu.addPlugin(Ve),iS=pu.prototype._initTooltip,pu.prototype._initTooltip=E.ZT;var rS=pu.prototype._disposeTooltip;pu.prototype._disposeTooltip=function(){this._tooltip&&rS.apply(this,arguments)},pu.prototype._setTooltipRendererOptions=function(){var n=this._getRendererOptions();this._tooltip?this._tooltip.setRendererOptions(n):this._tooltipRendererOptions=n},pu.prototype._setTooltipOptions=function(){var n=this._tooltip,t=n&&this._getOption("tooltip");n&&n.update(hv({},t,{customizeTooltip:kI(t.customizeTooltip,t.font,this.option("rtlEnabled")),enabled:t.enabled&&this._isTooltipEnabled()}))};var oS=(0,y.l)(!0,{},Bu,{init:E.ZT,dispose:E.ZT,customize:null,members:{_getExportMenuOptions:null}});pu.addPlugin(oS);var r0=Number,pv=isFinite,gv=KC.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 n=this._renderer;this._zeroLevelPath=n.path(void 0,"line").attr({class:"dxb-zero-level","stroke-linecap":"square"}),this._targetPath=n.path(void 0,"line").attr({class:"dxb-target","stroke-linecap":"square"}),this._barValuePath=n.path(void 0,"line").attr({class:"dxb-bar-value","stroke-linecap":"square"})},_prepareOptions:function(){var n,t,e,i,r,v;this._allOptions=n=this.callBase();var D=void 0===this._allOptions.value,A=void 0===this._allOptions.target;this._tooltipEnabled=!(D&&A),D&&(this._allOptions.value=0),A&&(this._allOptions.target=0),n.value=r=r0(n.value),n.target=v=r0(n.target),void 0===this._allOptions.startScaleValue&&(this._allOptions.startScaleValue=v<r?v:r,this._allOptions.startScaleValue=this._allOptions.startScaleValue<0?this._allOptions.startScaleValue:0),void 0===this._allOptions.endScaleValue&&(this._allOptions.endScaleValue=v>r?v:r),n.startScaleValue=t=r0(n.startScaleValue),n.endScaleValue=e=r0(n.endScaleValue),e<t&&(i=e,this._allOptions.endScaleValue=t,this._allOptions.startScaleValue=i,this._allOptions.inverted=!0)},_updateRange:function(){var n=this._allOptions;this._ranges={arg:{invert:n.rtlEnabled?!n.inverted:n.inverted,min:n.startScaleValue,max:n.endScaleValue,axisType:"continuous",dataType:"numeric"},val:{min:0,max:1,axisType:"continuous",dataType:"numeric"}}},_drawBullet:function(){var n=this._allOptions,t=n.startScaleValue!==n.endScaleValue,e=pv(n.startScaleValue),i=pv(n.endScaleValue),r=pv(n.value),v=pv(n.target);t&&i&&e&&v&&r&&(this._drawBarValue(),this._drawTarget(),this._drawZeroLevel())},_getTargetParams:function(){var n=this._allOptions,t=this._valueAxis.getTranslator(),e=this._argumentAxis.getTranslator().translate(n.target);return{points:[e,t.translate(.02),e,t.translate(.98)],stroke:n.targetColor,"stroke-width":n.targetWidth}},_getBarValueParams:function(){var z,Q,n=this._allOptions,t=this._argumentAxis.getTranslator(),e=this._valueAxis.getTranslator(),i=n.startScaleValue,r=n.endScaleValue,v=n.value,D=e.translate(.1),A=e.translate(.9);return v>0?(z=i<=0?0:i,Q=v>=r?r:v<z?z:v):(z=r>=0?0:r,Q=v<i?i:v>z?z:v),{points:[z=t.translate(z),A,Q=t.translate(Q),A,Q,D,z,D],fill:n.color}},_getCorrectCanvas:function(){return this._canvas},_getZeroLevelParams:function(){var n=this._valueAxis.getTranslator(),t=this._argumentAxis.getTranslator().translate(0);return{points:[t,n.translate(.02),t,n.translate(.98)],stroke:this._allOptions.targetColor,"stroke-width":1}},_drawZeroLevel:function(){var n=this._allOptions;0>n.endScaleValue||0<n.startScaleValue||!n.showZeroLevel||this._zeroLevelPath.attr(this._getZeroLevelParams()).sharp().append(this._renderer.root)},_drawTarget:function(){var n=this._allOptions,t=n.target;t>n.endScaleValue||t<n.startScaleValue||!n.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 n=this._canvas,t=this._renderer.getRootOffset(),e=this._barValuePath.getBBox();return{x:e.x+e.width/2+t.left,y:n.height/2+t.top}},_getTooltipData:function(){var n=this._tooltip,t=this._allOptions,e=t.value,i=t.target,r=n.formatValue(e),v=n.formatValue(i);return{originalValue:e,originalTarget:i,value:r,target:v,valueText:["Actual Value:",r,"Target Value:",v]}},_isTooltipEnabled:function(){return this._tooltipEnabled}});(0,O.S6)(["color","targetColor","targetWidth","showTarget","showZeroLevel","value","target","startScaleValue","endScaleValue"],function(n,t){gv.prototype._optionChangesMap[t]="OPTIONS"}),(0,T.Z)("dxBullet",gv);let VI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.KjY,M.Kx,M.vZC,M.bgw,M.YXG,M.FZZ,M.Ois,f.Lz,f.ie,p.Cu],M.KjY,M.Kx,M.vZC,M.bgw,M.YXG,M.FZZ,M.Ois,f.ie]}),n})();var NI=l(39),HI=l(970);let o0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,f.Lz,f.ie,p.Cu],M.Q8p,f.ie]}),n})();var sS=l(3180);const WI={provide:ie.JU,useExisting:(0,a.Gpc)(()=>lS),multi:!0};let lS=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),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 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 sS.Z(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-calendar"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,WI,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),sf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[f.Lz,f.ie,p.Cu],f.ie]}),n})();var wp="string",$C="numeric",YC="datetime",XC="discrete",qC="semidiscrete",fv="continuous",JC="logarithmic",uS="valueType",lf="argumentType",dS=ni([wp,$C,YC]),cS=Array.isArray;function pS(n,t,e){var i=t?function(r,v){return r-v}:function(r,v){return v-r};return n.sort(function(r,v){var D=e(r),A=e(v),z=(0,w.$K)(D)?1:0,Q=(0,w.$K)(A)?1:0;return z&&Q?i(D,A):i(z,Q)}),n}function fS(n,t){var e=[];return n.forEach(function(i){var r=t(i);void 0!==r&&e.push(r)}),e}function mS(n){return n}function ex(n,t){var e=t;return t===wp||(0,w.HD)(n)?e=wp:t===YC||(0,w.J_)(n)?e=YC:(0,w.kE)(n)&&(e=$C),e}function tx(n,t,e,i){return n===wp&&(t===fv||t===JC||t===qC)&&i("E2002"),t===JC?JC:e||t===XC||n===wp?XC:t===qC?qC:fv}function nx(n,t,e){var i=n?lp(n):mS,r=t!==XC?function(v){return isFinite(v)||void 0===v?v:null}:mS;return function(v,D){var A=r(i(v));return void 0===A&&function KI(n,t,e){n&&e((0,w.kE)(n)||(0,w.J_)(n)||(0,w.HD)(n)?"E2004":"E2003",[t])}(v,D,e),A}}function ix(n,t){var e,v,i=t.length,r=(0,y.l)({},n);for(e=0;e<i;++e)r[v=t[e][0]]=t[e][1](n[v],v);return r}function vS(n,t){var e=n-t;return isNaN(e)?(0,w.$K)(n)?(0,w.$K)(t)?0:-1:1:e}function JI(n,t){return n.slice().sort(function(e,i){return vS(e[t],i[t])})}function a0(n,t,e,i){n=function oM(n,t){var v,D,A,z,e=[],i=(0,w.$K)(n),r=i&&!cS(n);if(i&&!r)for(v=0,D=n.length,A=0;v<D;++v)(0,w.Kn)(z=n[v])?e[A++]=z:z&&(r=!0);return r&&t("E2001"),e}(n,e),t.argumentType=t.argumentAxisType=null,function hS(n){n.forEach(function(t){t.valueType=t.valueAxisType=null,t.series.forEach(function(e){e.updateDataType({})}),t.valueAxis&&t.valueAxis.resetTypes(uS)})}(t.groups),function gS(n){n&&n.forEach(function(t){t.resetTypes(lf)})}(t.argumentAxes),function iM(n,t,e){var D,i=[],r=[],v=t.argumentOptions&&dS(t.argumentOptions.argumentType);t.groups.forEach(function(A){if(A.series.length){var z=A.valueOptions&&dS(A.valueOptions.valueType);A.valueType=z,t.argumentType=v,!z&&i.push(A),!v&&r.push(A)}}),(i.length||r.length)&&(D=i.map(function(A,z){return z}),n.some(function(A){var z;if(i.forEach(function(Q,ue){(function eM(n,t){return n.series.forEach(function(e){e.getValueFields().forEach(function(i){n.valueType=ex(t[i],n.valueType)})}),n.valueType})(Q,A)&&D.indexOf(ue)>=0&&D.splice(ue,1)}),z||r.forEach(function(Q){z=function xS(n,t,e){return n.forEach(function(i){e.argumentType=ex(t[i.getArgumentField()],e.argumentType)}),e.argumentType}(Q.series,A,t)}),!e&&z&&0===D.length)return!0}))}(n,t,i.checkTypeForAllData),function rM(n,t){var e=n.argumentOptions||{},r=tx(n.argumentType,e.type,!!(e&&e.categories||[]).length,t);n.groups.forEach(function(v){var D=v.valueOptions||{},z=tx(v.valueType,D.type,!!(D.categories||[]).length,t);v.series.forEach(function(Q){var ue={};ue.argumentAxisType=r,ue.valueAxisType=z,n.argumentAxisType=n.argumentAxisType||ue.argumentAxisType,v.valueAxisType=v.valueAxisType||ue.valueAxisType,ue.argumentType=n.argumentType,ue.valueType=v.valueType,ue.showZero=D.showZero,Q.updateDataType(ue)}),v.valueAxisType=v.valueAxisType||z,v.valueAxis&&(v.valueAxis.setTypes(v.valueAxisType,v.valueType,uS),v.valueAxis.validate())}),n.argumentAxisType=n.argumentAxisType||r,n.argumentAxes&&n.argumentAxes.forEach(function(v){v.setTypes(n.argumentAxisType,n.argumentType,lf),v.validate()})}(t,e),i.convertToAxisDataType&&(n=function jI(n,t){var i,e=[],r=n.length;for(e.length=r,i=0;i<r;++i)e[i]=ix(n[i],t);return e}(n,function GI(n,t){var i,r,e=nx(n.argumentType,n.argumentAxisType,t),v=[e],D={},A=[];for(var z in n.groups.forEach(function(Q,ue){Q.series.forEach(function(we){r=nx(Q.valueType,Q.valueAxisType,t),i=nx($C,fv,t),D[we.getArgumentField()]=e,we.getValueFields().forEach(function(Le){v[ue+1]=r,D[Le]=r}),we.getSizeField()&&(D[we.getSizeField()]=i)})}),D)A.push([z,D[z]]);return A.length&&function QC(n,t){var e=n.argumentOptions&&n.argumentOptions.categories;n.groups.forEach(function(i,r){var v=i.valueOptions&&i.valueOptions.categories;v&&(i.valueOptions.categories=fS(v,t[r+1]))}),e&&(n.argumentOptions.categories=fS(e,t[0]))}(n,v),A}(t,e))),function YI(n,t){var e=t.groups[0]&&t.groups[0].series[0];e&&("pie"===e.type||"doughnut"===e.type||"donut"===e.type)&&t.groups.forEach(function(r){r.series.forEach(function(v){!function $I(n,t,e,i){var r=(i=i||{}).mode,v={};if(r&&"none"!==r){v[t]=String(i.groupName||"others"),v[e]=0;var D=pS(n.slice(),!1,function(A){return A[e]});(function ZI(n,t,e,i){i>=0&&n.slice(i).forEach(function(r){(0,w.$K)(r[e])&&(t[e]+=r[e],r[e]=void 0)})})(D,v,e,"smallValueThreshold"===r?function _S(n,t,e){var i,v,r=n.length;for(i=0;i<r&&!((0,w.$K)(v=n[i][t])&&e>v);++i);return i}(D,e,i.threshold):i.topCount),v[e]&&n.push(v)}}(n,v.getArgumentField(),v.getValueFields()[0],v.getOptions().smallValuesGrouping)})})}(n,t);var r=function CS(n,t,e,i){var Q,r={},v=t.argumentAxisType===XC,D=v&&t.argumentOptions&&t.argumentOptions.categories,A=function(ue){return ue},z=e.sortingMethod;return!D&&(0,w.mf)(z)&&(n=function QI(n,t){return n.slice().sort(t)}(n,z)),v&&(t.categories=function nM(n,t,e){var i=e?e.slice():[];return t.forEach(function(r){n.forEach(function(v){var D=v[r];(0,w.$K)(D)&&function tM(n,t){return-1===n.map(function(e){return e.valueOf()}).indexOf(t.valueOf())}(i,D)&&i.push(D)})}),i}(n,i,D)),D||!(0,w.mf)(z)&&t.argumentType===wp&&!e._skipArgumentSorting?A=function yS(n){var t={};return n.forEach(function(e,i){t[e]=i}),function(e,i){return pS(e.slice(),!0,function(r){return t[r[i]]})}}(t.categories):!0===z&&t.argumentType!==wp&&(A=JI,Q=v),i.forEach(function(ue){r[ue]=A(n,ue)}),Q&&(t.categories=t.categories.sort(vS)),r}(n,t,i,function qI(n){var t=[],e={};return n.groups.forEach(function(i){i.series.forEach(function(r){!function XI(n,t,e){e[n]||(t.push(n),e[n]=!0)}(r.getArgumentField(),t,e)})}),t}(t));return r}const Ul={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};var rx=l(8198);function lM(n,t){var e="",i=n.indexOf(":");return i>0&&(e=n.substr(i+1),n=n.substr(0,i)),function ax(n,t){if(t){if(n instanceof Date)return(0,rx.p6)(n,t);if("number"==typeof n)return(0,rx.uf)(n,t)}return n}(t[n],e)}var wl=Fa.Z.format,mv=Math,ac=mv.round,sx=mv.floor,sc=mv.abs;function wS(n,t){var i,e=1/0;return(0,O.S6)(t,function(r,v){var D=n[0]-v[0],A=n[1]-v[1],z=D*D+A*A;z<e&&(e=z,i=v)}),[sx(i[0]),sx(i[1])]}function lx(n,t,e){return(t-n[0+e])/(n[2+e]-n[0+e])*(n[3-e]-n[1-e])+n[1-e]}var df={isLabelInside:function(n,t){var e=n.x+n.width/2,i=n.y+n.height/2;return t.x<=e&&e<=t.x+t.width&&t.y<=i&&i<=t.y+t.height},prepareLabelPoints:function(n,t,e,i,r){var v=t.x,D=v+t.width/2,A=v+t.width-1,z=t.y,Q=z+t.height/2,ue=z+t.height-1,Le=sc(i)%90==0;return r[0]>v&&r[0]<A?Le?[[r[0],sc(r[1]-z)<sc(r[1]-ue)?z:ue]]:[[r[0],lx([v,z,A,ue],r[0],0)]]:r[1]>z&&r[1]<ue?Le?[[sc(r[0]-v)<sc(r[0]-A)?v:A,r[1]]]:[[lx([v,z,A,ue],r[1],1),r[1]]]:Le?[[v,z],[e?v:D,e?Q:z],[A,z],[v,ue],[e?A:D,e?Q:ue],[A,ue]]:[[D,Q]]},isHorizontal:function(n,t){return n.x>t.x+t.width||n.x+n.width<t.x},getFigureCenter:function(n){return[sx(n.x+n.width/2),sx(n.y+n.height/2)]},findFigurePoint:function(n,t){var e=df.getFigureCenter(n);return wS(t,[[n.x,e[1]],[e[0],n.y+n.height],[n.x+n.width,e[1]],[e[0],n.y]])},adjustPoints:function(n){var t=sc(n[1]-n[3])<=1;return sc(n[0]-n[2])<=1&&(n[0]=n[2]),t&&(n[1]=n[3]),n}},ux={isLabelInside:function(){return!1},prepareLabelPoints:df.prepareLabelPoints,isHorizontal:function(n,t){return n.x>t.x+t.r||n.x+n.width<t.x-t.r},getFigureCenter:function(n){return[n.x,n.y]},findFigurePoint:function(n,t){var e=Math.atan2(n.y-t[1],t[0]-n.x);return[ac(n.x+n.r*Math.cos(e)),ac(n.y-n.r*Math.sin(e))]},adjustPoints:df.adjustPoints},ES={isLabelInside:function(n,t,e){return!e},prepareLabelPoints:function(n,t,e,i){var r=n.x,v=r+n.width,D=r+ac(n.width/2),A=n.y,z=A+n.height,Q=A+ac(n.height/2),ue=[[[r,A],[v,A]],[[v,A],[v,z]],[[v,z],[r,z]],[[r,z],[r,A]]],we=Ft(i);return 0===i?e?[[r,Q],[v,Q]]:[[D,A],[D,z]]:ue.map(function(Le){return Le.map(function(Ue){return[ac((Ue[0]-D)*we.cos+(Ue[1]-Q)*we.sin+D),ac(-(Ue[0]-D)*we.sin+(Ue[1]-Q)*we.cos+Q)]})}).reduce(function(Le,Ue){var ut=Ue[0][0],It=Ue[0][1],Gt=Ue[1][0],ln=Ue[1][1];return e?(It>=Q&&Q>=ln||It<=Q&&Q<=ln)&&Le.push([(Q-It)*(Gt-ut)/(ln-It)+ut,Q]):(ut>=D&&D>=Gt||ut<=D&&D<=Gt)&&Le.push([D,(D-ut)*(ln-It)/(Gt-ut)+It]),Le},[])},isHorizontal:function(n,t){return n.x>t.x||t.x>n.x+n.width},getFigureCenter:ux.getFigureCenter,findFigurePoint:function(n,t,e){if(!e)return[n.x,n.y];var i=t[0],r=ac(n.x+(n.y-t[1])/Math.tan(yt(n.angle))),v=[n.x,n.y,r,t[1]];return!(n.x<=r&&r<=i)&&!(i<=r&&r<=n.x)&&(sc(n.x-i)<12?v=[n.x,n.y]:v[2]=n.x<=i?n.x+12:n.x-12),v},adjustPoints:function(n){return n}};function dx(n){return void 0!==n.angle&&ES||void 0!==n.r&&ux||df}function s0(n,t){n[t]&&n[t].dispose(),n[t]=null}function cx(n){return n&&(n.fill&&"none"!==n.fill||n["stroke-width"]>0&&n.stroke&&"none"!==n.stroke)}function SS(n){return n&&n["stroke-width"]>0&&n.stroke&&"none"!==n.stroke}function cf(n){this._renderer=n.renderer,this._container=n.labelsGroup,this._point=n.point,this._strategy=n.strategy,this._rowCount=1}cf.prototype={constructor:cf,setColor:function(n){this._color=n},setOptions:function(n){this._options=n},setData:function(n){this._data=n},setDataField:function(n,t){this._data=this._data||{},this._data[n]=t},getData:function(){return this._data},setFigureToDrawConnector:function(n){this._figure=n},dispose:function(){s0(this,"_group"),this._data=this._options=this._textContent=this._visible=this._insideGroup=this._text=this._background=this._connector=this._figure=null},_setVisibility:function(n,t){this._group&&this._group.attr({visibility:n}),this._visible=t},isVisible:function(){return this._visible},hide:function(n){this._holdVisibility=!!n,this._hide()},_hide:function(){this._setVisibility("hidden",!1)},show:function(n){var t=!this._drawn;this._point.hasValue()&&(this._holdVisibility=!!n,this._show(),t&&this._point.correctLabelPosition(this))},_show:function(){var n=this._renderer,t=this._container,e=this._options||{},i=this._textContent=function uM(n,t){var e=t.format;return n.valueText=wl(n.value,e),n.argumentText=wl(n.argument,t.argumentFormat),void 0!==n.percent&&(n.percentText=wl(n.percent,{type:"percent",precision:e&&e.percentPrecision})),void 0!==n.total&&(n.totalText=wl(n.total,e)),void 0!==n.openValue&&(n.openValueText=wl(n.openValue,e)),void 0!==n.closeValue&&(n.closeValueText=wl(n.closeValue,e)),void 0!==n.lowValue&&(n.lowValueText=wl(n.lowValue,e)),void 0!==n.highValue&&(n.highValueText=wl(n.highValue,e)),void 0!==n.reductionValue&&(n.reductionValueText=wl(n.reductionValue,e)),t.customizeText?t.customizeText.call(n,n):t.displayFormat?function bS(n,t){for(var e=n,i=!0;i;){var r=e.indexOf("{"),v=e.indexOf("}");if(r>=0&&v>0){var A=lM(e.substring(r+1,v),t);e=e.substr(0,r)+A+e.substr(v+1)}else i=!1}return e}(t.displayFormat,n):n.valueText}(this._data,e)||null;i?(this._group||(this._group=n.g().append(t),this._insideGroup=n.g().append(this._group),this._text=n.text("",0,0).append(this._insideGroup)),this._text.css(e.attributes?di(e.attributes.font):{}),cx(e.background)?(this._background=this._background||n.rect().append(this._insideGroup).toBackground(),this._background.attr(e.background),this._color&&this._background.attr({fill:this._color})):s0(this,"_background"),SS(e.connector)?(this._connector=this._connector||n.path([],"line").sharp().append(this._group).toBackground(),this._connector.attr(e.connector),this._color&&this._connector.attr({stroke:this._color})):s0(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(n){return this._holdVisibility?this.isVisible():n},draw:function(n){return this._getLabelVisibility(n)?(this._show(),this._point&&this._point.correctLabelPosition(this)):(this._drawn=!1,this._hide()),this},_updateBackground:function(n){this._background&&(n.x-=8,n.y-=4,n.width+=16,n.height+=8,this._background.attr(n)),this._bBoxWithoutRotation=(0,y.l)({},n);var t=this._options.rotationAngle||0;this._insideGroup.rotate(t,n.x+n.width/2,n.y+n.height/2),n=Yi(n,[n.x+n.width/2,n.y+n.height/2],-t),this._bBox=n},getFigureCenter(){var n=this._figure;return(this._strategy||dx(n)).getFigureCenter(n)},_getConnectorPoints:function(){var v,A,n=this._figure,t=this._options,e=this._strategy||dx(n),i=this._shiftBBox(this._bBoxWithoutRotation),r=this.getBoundingRect(),D=[];if(!e.isLabelInside(i,n,"inside"!==t.position)){A=e.isHorizontal(i,n);var z=this.getFigureCenter();v=wS(z,D=e.prepareLabelPoints(i,r,A,-t.rotationAngle||0,z)),D=(D=e.findFigurePoint(n,v,A)).concat(v)}return e.adjustPoints(D)},fit:function(n){var e=!1;if(this._text){var i=this._text.setMaxSize(n-(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&&s0(this,"_background")}return this._updateBackground(this._text.getBBox()),e},resetEllipsis:function(){this._text&&this._text.restoreText(),this._updateBackground(this._text.getBBox())},setTrackerData:function(n){this._text.data({"chart-data-point":n}),this._background&&this._background.data({"chart-data-point":n})},hideInsideLabel:function(n){return this._point.hideInsideLabel(this,n)},getPoint(){return this._point},shift:function(n,t){return this._textContent&&(this._insideGroup.attr({translateX:this._x=ac(n-this._bBox.x),translateY:this._y=ac(t-this._bBox.y)}),this._connector&&this._connector.attr({points:this._getConnectorPoints()})),this},getBoundingRect:function(){return this._shiftBBox(this._bBox)},_shiftBBox:function(n){return this._textContent?{x:n.x+this._x,y:n.y+this._y,width:n.width,height:n.height}:{}},getLayoutOptions:function(){var n=this._options;return{alignment:n.alignment,background:cx(n.background),horizontalOffset:n.horizontalOffset,verticalOffset:n.verticalOffset,radialOffset:n.radialOffset,position:n.position,connectorOffset:(SS(n.connector)?12:0)+(cx(n.background)?8:0)}}};var OS=(0,fi.Jj)(),hx=y.l,yv=Math,hf=yv.round,px=yv.floor,DS=yv.ceil,l0="canvas_position_default";const gs={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var n=this.graphic;n&&n.attr("visibility")&&n.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var n=this.graphic;n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),this._errorBar&&this._errorBar.attr({visibility:"hidden"}),this._label.draw(!1)},clearMarker:function(){var n=this.graphic;n&&n.attr(this._emptySettings)},_createLabel:function(){this._label=new cf({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_calculateVisibility:function(n,t){var{minX:e,maxX:i,minY:r,maxY:v}=this._getVisibleArea();this.inVisibleArea=e<=n&&i>=n&&r<=t&&v>=t},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(n){return(0,w.$K)(n)&&("string"==typeof n||(0,w.$K)(n.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(n,t){var e=n.symbol,i=t.symbol,r="circle"===e&&"circle"!==i||"circle"!==e&&"circle"===i,v=this._checkImage(n.image)!==this._checkImage(t.image);return!(!r&&!v)},_populatePointShape:function(n,t){switch(n){case"square":return function TS(n){return[-n,-n,n,-n,n,n,-n,n,-n,-n]}(t);case"polygon":return function dM(n){var t=DS(n);return[-t,0,0,-t,t,0,0,t,-t,0]}(t);case"triangle":case"triangleDown":return function hM(n){return[-n,-n,n,-n,0,n,-n,-n]}(t);case"triangleUp":return function pM(n){return[-n,n,n,n,0,-n,-n,n]}(t);case"cross":return function cM(n){var t=DS(n),e=px(t/2),i=DS(t/2);return[-t,-e,-e,-t,0,-i,e,-t,t,-e,i,0,t,e,e,t,0,i,-e,t,-t,e,-i,0]}(t)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(n){var t=this.series.getValueAxis();this.hasValue()&&(this.value=this.properValue=t.validateUnit(this.initialValue.valueOf()+n.valueOf()),this.minValue=t.validateUnit(n))},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=l0},resetValue:function(){this.hasValue()&&(this.value=this.properValue=this.initialValue=0,this.minValue=0,this._label.setDataField("value",this.value))},_getTranslates:function(n){var t=this.x,e=this.y;return n&&(this._options.rotated?t=this.defaultX:e=this.defaultY),{x:t,y:e}},_createImageMarker:function(n,t,e){var i=e.width||20,r=e.height||20;return n.image(-hf(.5*i),-hf(.5*r),i,r,e.url?e.url.toString():e.toString(),"center").attr({translateX:t.translateX,translateY:t.translateY,visibility:t.visibility})},_createSymbolMarker:function(n,t){var e,i=this._options.symbol;return"circle"===i?(delete t.points,e=n.circle().attr(t)):("square"===i||"polygon"===i||"triangle"===i||"triangleDown"===i||"triangleUp"===i||"cross"===i)&&(e=n.path([],"area").attr(t).sharp()),e},_createMarker:function(n,t,e,i){var r=this._checkImage(e)?this._createImageMarker(n,i,e):this._createSymbolMarker(n,i);return r&&r.data({"chart-data-point":this}).append(t),r},_getSymbolBBox:function(n,t,e){return{x:n-e,y:t-e,width:2*e,height:2*e}},_getImageBBox:function(n,t){var e=this._options.image,i=e.width||20,r=e.height||20;return{x:n-hf(i/2),y:t-hf(r/2),width:i,height:r}},_getGraphicBBox:function(){var n=this._options,t=this.x,e=this.y;return n.visible?this._checkImage(n.image)?this._getImageBBox(t,e):this._getSymbolBBox(t,e,n.styles.normal.r):{x:t,y:e,width:0,height:0}},hideInsideLabel:E.ZT,_getShiftLabelCoords:function(n){var t=this._addLabelAlignmentAndOffset(n,this._getLabelCoords(n));return this._checkLabelPosition(n,t)},_drawLabel:function(){var n=this._getCustomLabelVisibility(),t=this._label,e=this._showForZeroValues()&&this.hasValue()&&!1!==n&&(this.series.getLabelVisibility()||n);t.draw(!!e)},correctLabelPosition:function(n){var t=this._getShiftLabelCoords(n);this.hideInsideLabel(n,t)||(n.setFigureToDrawConnector(this._getLabelConnector(n.pointPosition)),n.shift(hf(t.x),hf(t.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(n){var t=this._getGraphicBBox(n),e=t.width/2,i=t.height/2;return{x:t.x+e,y:t.y+i,r:this._options.visible?Math.max(e,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(n,t){return n.minX<=t.x+t.width&&n.maxX>=t.x&&n.minY<=t.y+t.height&&n.maxY>=t.y},_checkLabelPosition:function(n,t){var e=this._getVisibleArea(),i=n.getBoundingRect(),r=this._getGraphicBBox(n.pointPosition),v=this._getGraphicBBox(),D="inside"===n.getLayoutOptions().position;return this._isPointInVisibleArea(e,v)&&(this._options.rotated?(e.minX>t.x&&(t.x=D?e.minX:r.x+r.width+10),e.maxX<t.x+i.width&&(t.x=D?e.maxX-i.width:r.x-10-i.width),e.minY>t.y&&(t.y=e.minY),e.maxY<t.y+i.height&&(t.y=e.maxY-i.height)):(e.minX>t.x&&(t.x=e.minX),e.maxX<t.x+i.width&&(t.x=e.maxX-i.width),e.minY>t.y&&(t.y=D?e.minY:r.y+r.height+10),e.maxY<t.y+i.height&&(t.y=D?e.maxY-i.height:r.y-i.height-10))),t},_addLabelAlignmentAndOffset:function(n,t){var e=n.getBoundingRect(),i=n.getLayoutOptions();return this._options.rotated||("left"===i.alignment?t.x+=e.width/2:"right"===i.alignment&&(t.x-=e.width/2)),t.x+=i.horizontalOffset,t.y+=i.verticalOffset,t},_getLabelCoords:function(n){return this._getLabelCoordOfPosition(n,this._getLabelPosition(n.pointPosition))},_getLabelCoordOfPosition:function(n,t){var e=n.getBoundingRect(),i=this._getGraphicBBox(n.pointPosition),v=i.height/2-e.height/2,D=i.width/2-e.width/2,A=i.x,z=i.y;switch(t){case"left":A-=e.width+10,z+=v;break;case"right":A+=i.width+10,z+=v;break;case"top":A+=D,z-=e.height+10;break;case"bottom":A+=D,z+=i.height+10;break;case"inside":A+=D,z+=v}return{x:A,y:z}},_drawMarker:function(n,t,e){var i=this._options,r=this._getTranslates(e),v=this._getStyle();this.graphic=this._createMarker(n,t,i.image,hx({translateX:r.x,translateY:r.y,points:this._populatePointShape(i.symbol,v.r)},v))},_getErrorBarSettings:function(){return{visibility:"visible"}},_getErrorBarBaseEdgeLength(){return 2*this.getPointRadius()},_drawErrorBar:function(n,t){if(this._options.errorBars){var v,e=this._options,i=e.errorBars,r=[],D=this._errorBarPos,A=this._highErrorCoord,z=this._lowErrorCoord,Q=Sn(i.displayMode),ue="high"===Q,we="low"===Q,Le=(ue||!(0,w.$K)(z))&&(0,w.$K)(A)&&!we,Ue=(we||!(0,w.$K)(A))&&(0,w.$K)(z)&&!ue,ut=i.edgeLength;ut<=1&&ut>0&&(ut=this._getErrorBarBaseEdgeLength()*i.edgeLength),ut=px(parseInt(ut)/2),Le&&(z=this._baseErrorBarPos),Ue&&(A=this._baseErrorBarPos),"none"!==Q&&(0,w.$K)(A)&&(0,w.$K)(z)&&(0,w.$K)(D)?(!Ue&&r.push([D-ut,A,D+ut,A]),r.push([D,A,D,z]),!Le&&r.push([D+ut,z,D-ut,z]),e.rotated&&(0,O.S6)(r,function(It,Gt){Gt.reverse()}),v=this._getErrorBarSettings(i),this._errorBar?(v.points=r,this._errorBar.attr(v)):this._errorBar=n.path(r,"line").attr(v).append(t)):this._errorBar&&this._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var n=this.graphic;return{x:this.x,y:this.y,offset:n?n.getBBox().height/2:0}},setPercentValue:function(n,t,e,i){var r=this.value/n||0,v=this.minValue/n||0;this._label.setDataField("percent",r-v),this._label.setDataField("total",t),this.series.isFullStackedSeries()&&this.hasValue()&&(this.leftHole&&(this.leftHole/=n-e,this.minLeftHole/=n-e),this.rightHole&&(this.rightHole/=n-i,this.minRightHole/=n-i),this.value=this.properValue=r,this.minValue=v||this.minValue)},_storeTrackerR:function(){var n=OS.navigator,t=this._options.styles.normal.r,e=(0,fi.l$)("ontouchstart")||n.msPointerEnabled&&n.msMaxTouchPoints||n.pointerEnabled&&n.maxTouchPoints?20:6;return this._options.trackerR=t<e?e:t,this._options.trackerR},_translateErrorBars:function(){var n=this._options,t=n.rotated,e=n.errorBars,i=this._getValTranslator();e&&((0,w.$K)(this.lowError)&&(this._lowErrorCoord=i.translate(this.lowError)),(0,w.$K)(this.highError)&&(this._highErrorCoord=i.translate(this.highError)),this._errorBarPos=px(t?this.vy:this.vx),this._baseErrorBarPos="stdDeviation"===e.type?this._lowErrorCoord+(this._highErrorCoord-this._lowErrorCoord)/2:t?this.vx:this.vy)},_translate:function(){var n=this._getValTranslator(),t=this._getArgTranslator();this._options.rotated?(this.vx=this.x=n.translate(this.value),this.vy=this.y=t.translate(this.argument),this.minX=n.translate(this.minValue),this.defaultX=n.translate(l0)):(this.vy=this.y=n.translate(this.value),this.vx=this.x=t.translate(this.argument),this.minY=n.translate(this.minValue),this.defaultY=n.translate(l0)),this._translateErrorBars(),this._calculateVisibility(this.x,this.y)},_updateData:function(n){this.value=this.properValue=this.initialValue=this.originalValue=n.value,this.minValue=this.initialMinValue=this.originalMinValue=(0,w.$K)(n.minValue)?n.minValue:l0},_getImageSettings:function(n){return{href:n.url||n.toString(),width:n.width||20,height:n.height||20}},getCrosshairData:function(){var n=this._options.rotated,t=this.properValue,e=this.argument;return{x:this.vx,y:this.vy,xValue:n?t:e,yValue:n?e:t,axis:this.series.axis}},getPointRadius:function(){var n=this._getStyle(),t=this._options,e=n.r,r=t.symbol;return t.visible&&!t.image&&e?("square"===r||"triangle"===r||"triangleDown"===r||"triangleUp"===r?1.4*e:e)+n["stroke-width"]/2:0},_updateMarker:function(n,t){var i,e=this._options,r=e.image,v=this.isVisible()?{}:{visibility:"hidden"};i=this._checkImage(r)?hx({},{visibility:t.visibility},v,this._getImageSettings(r)):hx({},t,v,{points:this._populatePointShape(e.symbol,t.r)}),n||(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 n=this._options.rotated;return this.initialValue>0?n?"right":"top":n?"left":"bottom"},_getFormatObject:function(n){var t=this._label.getData();return hx({},t,{argumentText:n.formatValue(this.initialArgument,"argument"),valueText:n.formatValue(this.initialValue)},(0,w.$K)(t.percent)?{percentText:n.formatValue(t.percent,"percent")}:{},(0,w.$K)(t.total)?{totalText:n.formatValue(t.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(n,t){var e=this._storeTrackerR();return n>=this.x-e&&n<=this.x+e&&t>=this.y-e&&t<=this.y+e},getMinValue:function(n){var t=this._options.errorBars;if(t&&!n){var e=t.displayMode,i="high"!==e&&(0,w.$K)(this.lowError)?this.lowError:this.value,r="low"!==e&&(0,w.$K)(this.highError)?this.highError:this.value;return i<r?i:r}return this.value},getMaxValue:function(n){var t=this._options.errorBars;if(t&&!n){var e=t.displayMode,i="high"!==e&&(0,w.$K)(this.lowError)?this.lowError:this.value,r="low"!==e&&(0,w.$K)(this.highError)?this.highError:this.value;return i>r?i:r}return this.value}};var IS=y.l,MS=Math,u0=MS.floor,AS=MS.abs;function xx(n){var t=n.initialValue,e=n._getValTranslator().getBusinessRange().invert,i="discrete"===n.series.valueAxisType,r=n.series.isFullStackedSeries();return!i&&(t>=0&&!e||t<0&&e)||i&&!e||r?"top":"bottom"}const d0=IS({},gs,{correctCoordinates(n){var t=u0(n.offset-n.width/2);this._options.rotated?(this.height=n.width,this.yCorrection=t,this.xCorrection=null):(this.width=n.width,this.xCorrection=t,this.yCorrection=null)},_calculateVisibility:function(n,t,e,i){var{minX:r,maxX:v,minY:D,maxY:A}=this._getVisibleArea();this.inVisibleArea=r<n+e&&v>n&&D<t+i&&A>t},_getGraphicBBox:function(n){var t={x:this.x,y:this.y,width:this.width,height:this.height};if(n){var e="top"===n;this._options.rotated?(t.x=e?t.x+t.width:t.x,t.width=0):(t.y=e?t.y:t.y+t.height,t.height=0)}return t},_getLabelConnector:function(n){return this._getGraphicBBox(n)},_getLabelPosition:function(){var n=xx(this);return this._options.rotated&&(n="top"===n?"right":"left"),n},_getLabelCoords:function(n){return 0===this.initialValue&&this.series.isFullStackedSeries()?this._getLabelCoordOfPosition(n,this._options.rotated?"right":"top"):"inside"===n.getLayoutOptions().position?this._getLabelCoordOfPosition(n,"inside"):gs._getLabelCoords.call(this,n)},_drawLabel:function(){this._label.pointPosition="inside"!==this._label.getLayoutOptions().position&&xx(this),gs._drawLabel.call(this)},hideInsideLabel:function(n,t){var e=this._getGraphicBBox(),i=n.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(t.y<=e.y&&t.y+i.height>=e.y+e.height||t.x<=e.x&&t.x+i.width>=e.x+e.width)||t.y>e.y+e.height||t.y+i.height<e.y||t.x>e.x+e.width||t.x+i.width<e.x||(n.draw(!1),0))},_showForZeroValues:function(){return this._options.label.showForZeroValues||this.initialValue},_drawMarker(n,t,e){var i=this._getStyle(),r=this._options.cornerRadius,v=this._options.rotated,{x:D,y:A,width:z,height:Q}=this.getMarkerCoords();e&&(v?(z=0,D=this.defaultX):(Q=0,A=this.defaultY)),this.graphic=n.rect(D,A,z,Q).attr({rx:r,ry:r}).smartAttr(i).data({"chart-data-point":this}).append(t)},_getSettingsForTracker:function(){var n=this.y,t=this.height,e=this.x,i=this.width;return this._options.rotated?1===i&&(i=9,e-=4):1===t&&(t=9,n-=4),{x:e,y:n,width:i,height:t}},getGraphicSettings:function(){var n=this.graphic;return{x:n.attr("x"),y:n.attr("y"),height:n.attr("height"),width:n.attr("width")}},_getEdgeTooltipParams(){var t,e,n=this.value>=0,i=this._getValTranslator().getBusinessRange().invert,{x:r,y:v,width:D,height:A}=this;return this._options.rotated?(e=v+A/2,t=i?n?r:r+D:n?r+D:r):(t=r+D/2,e=i?n?v+A:v:n?v:v+A),{x:t,y:e,offset:0}},getTooltipParams:function(n){if("edge"===n)return this._getEdgeTooltipParams();var t=this.getCenterCoord();return t.offset=0,t},getCenterCoord(){var{width:n,height:t,x:e,y:i}=this;return{x:e+n/2,y:i+t/2}},_truncateCoord:function(n,t){return null===n?n:n<t[0]?t[0]:n>t[1]?t[1]:n},_getErrorBarBaseEdgeLength(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(n){gs._translateErrorBars.call(this),(this._errorBarPos<n[0]||this._errorBarPos>n[1])&&(this._errorBarPos=void 0)},_translate:function(){var n=this._options.rotated,t=n?"x":"y",e=n?"y":"x",i=n?"width":"height",r=n?"height":"width",v=this._getArgTranslator(),D=this._getValTranslator(),A=this.series.getArgumentAxis().getVisibleArea(),z=this.series.getValueAxis().getVisibleArea(),Q=v.translate(this.argument),ue=D.translate(this.value,1),we=D.translate(this.minValue,-1);this[e]=Q=null===Q?Q:Q+(this[e+"Correction"]||0),this["v"+t]=ue,this["v"+e]=Q+this[r]/2,ue=this._truncateCoord(ue,z),we=this._truncateCoord(we,z),this[i]=AS(ue-we),ue=ue<we?ue:we,this._calculateVisibility(n?ue:Q,n?Q:ue,this.width,this.height),this[t]=null===ue?ue:ue+(this[t+"Correction"]||0),this["min"+t.toUpperCase()]=null===we?we:we+(this[t+"Correction"]||0),this["default"+t.toUpperCase()]=D.translate("canvas_position_default"),this._translateErrorBars(A),this.inVisibleArea&&null!==this[e]&&(this[e]<A[0]&&(this[r]=this[r]-(A[0]-this[e]),this[e]=A[0]),this[e]+this[r]>A[1]&&(this[r]=A[1]-this[e]))},_updateMarker:function(n,t){this.graphic.smartAttr(IS({},t,n?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var n=this.x,t=this.y,e=this.width,i=this.height,r=this.series.getArgumentAxis(),v=this._options.rotated;if(r.getAxisPosition){var D=r.getOptions(),A=Math.round(D.width/2),z=r.getAxisPosition();if(D.visible)if(v){var Q=this.minX===this.defaultX&&this.minX===z-r.getAxisShift();n+=Q?A:0,(e-=Q?A:0)<0&&(e=0)}else(i-=this.minY===this.defaultY&&this.minY===z-r.getAxisShift()?A:0)<0&&(i=0)}return{x:n,y:t,width:e,height:i}},coordsIn:function(n,t){return n>=this.x&&n<=this.x+this.width&&t>=this.y&&t<=this.y+this.height}});var bx=y.l;const fM=bx({},gs,{correctCoordinates:function(n){this.bubbleSize=n/2},_drawMarker:function(n,t,e){var i=bx({translateX:this.x,translateY:this.y},this._getStyle());this.graphic=n.circle(0,0,e?0:this.bubbleSize).smartAttr(i).data({"chart-data-point":this}).append(t)},getTooltipParams:function(n){var t=this.graphic;if(t){var e=t.getBBox().height;return{x:this.x,y:this.y,offset:e<20||"edge"===n?e/2:0}}},_getLabelFormatObject:function(){var n=gs._getLabelFormatObject.call(this);return n.size=this.initialSize,n},_updateData:function(n){gs._updateData.call(this,n),this.size=this.initialSize=n.size},_getGraphicBBox:function(){return this._getSymbolBBox(this.x,this.y,this.bubbleSize)},_updateMarker:function(n,t){n||(t=bx({r:this.bubbleSize,translateX:this.x,translateY:this.y},t)),this.graphic.smartAttr(t)},_getFormatObject:function(n){var t=gs._getFormatObject.call(this,n);return t.sizeText=n.formatValue(this.initialSize),t},_storeTrackerR:function(){return this.bubbleSize},_getLabelCoords:function(n){return"inside"===n.getLayoutOptions().position?this._getLabelCoordOfPosition(n,"inside"):gs._getLabelCoords.call(this,n)}});var pf=y.l,lh=Math.round,wx=Math.sqrt,Sd=Math.acos,mM=180/Math.PI,Ex=Math.abs,c0=Ul.radialLabelIndent;const uh=pf({},gs,{_updateData:function(n,t){gs._updateData.call(this,n),(t||!(0,w.$K)(this._visible))&&(this._visible=!0),this.minValue=this.initialMinValue=this.originalMinValue=(0,w.$K)(n.minValue)?n.minValue:0},animate:function(n,t,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:t},n)},correctPosition:function(n){this.correctRadius(n),this.correctLabelRadius(n.radiusOuter+c0),this.centerX=n.centerX,this.centerY=n.centerY},correctRadius:function(n){this.radiusInner=n.radiusInner,this.radiusOuter=n.radiusOuter},correctLabelRadius:function(n){this.radiusLabels=n},correctValue:function(n,t,e){this.value=(e||this.normalInitialValue)+n,this.minValue=n,this.percent=t,this._label.setDataField("percent",t)},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var n=this._label.getBoundingRect(),t=this._getLabelCoords(this._label),e=this._getVisibleArea();return this._isLabelDrawingWithoutPoints?this._checkLabelPosition(t,n,e):this._getLabelExtraCoord(t,this._checkVerticalLabelPosition(t,n,e),n)},_getLabelPosition:function(n){return n.position},getAnnotationCoords:function(n){return this._getElementCoords("edge"!==n?"inside":"outside",this.radiusOuter,0)},_getElementCoords:function(n,t,e){var Q,ue,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:0,y:0,width:0,height:0},r=this,v=Ft(r.middleAngle),D=r.radiusInner,A=r.radiusOuter,z="columns"===n;return"inside"===n?ue=r.centerX+(Q=D+(A-D)/2+e)*v.cos-i.width/2:(Q=t+e,ue=v.cos>.1||z&&v.cos>=0?r.centerX+Q*v.cos:v.cos<-.1||z&&v.cos<0?r.centerX+Q*v.cos-i.width:r.centerX+Q*v.cos-i.width/2),{x:ue,y:lh(r.centerY-Q*v.sin-i.height/2)}},_getLabelCoords:function(n){var t=n.getBoundingRect(),e=n.getLayoutOptions(),i=this._getLabelPosition(e);return this._getElementCoords(i,this.radiusLabels,e.radialOffset,t)},_correctLabelCoord:function(n,t){var e=this._label,r=e.getBoundingRect().width,v=e.getLayoutOptions(),D=this._getVisibleArea(),A=D.maxX-r,z=D.minX,Q=dt(this.middleAngle),ue=this.centerX,we=v.connectorOffset,Le=n.x;return"columns"===v.position?n.x=Le=Q<=90||Q>=270?A:z:"inside"!==v.position&&t&&(Q<=90||Q>=270?Le-we<ue&&(Le=ue+we):Le+r+we>ue&&(Le=ue-r-we),n.x=Le),n},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(n){var t=this._label.getBoundingRect(),e=this._correctLabelCoord(t,n);e=this._checkHorizontalLabelPosition(e,t,this._getVisibleArea()),this._label.shift(lh(e.x),lh(t.y))},_checkVerticalLabelPosition:function(n,t,e){var r=n.y;return n.y+t.height>e.maxY?r=e.maxY-t.height:n.y<e.minY&&(r=e.minY),{x:n.x,y:r}},_getLabelExtraCoord:function(n,t,e){return n.y!==t.y?ji({x:n.x,y:n.y,width:e.width,height:e.height},t.y-n.y,{x:this.centerX,y:this.centerY}):n},_checkHorizontalLabelPosition:function(n,t,e){var i=n.x;return n.x+t.width>e.maxX?i=e.maxX-t.width:n.x<e.minX&&(i=e.minX),{x:i,y:n.y}},applyWordWrap:function(n){var t=this._label,e=t.getBoundingRect(),i=this._getVisibleArea(),r=t.getLayoutOptions().position,v=e.width,D=!1;return"columns"===r&&this.series.index>0?v=i.maxX-this.centerX-this.radiusLabels:"inside"===r?v>i.maxX-i.minX&&(v=i.maxX-i.minX):n&&e.x<this.centerX&&e.width+e.x>this.centerX?v=Math.floor((i.maxX-i.minX)/2):e.x+v>i.maxX?v=i.maxX-e.x:e.x<i.minX&&(v=e.x+v-i.minX),v<e.width&&(D=t.fit(v)),D},setLabelTrackerData:function(){this._label.setTrackerData(this)},_checkLabelPosition:function(n,t,e){return n=this._checkHorizontalLabelPosition(n,t,e),this._checkVerticalLabelPosition(n,t,e)},_getLabelConnector:function(){var n=this.radiusOuter,t=this._options.styles.normal,e=t["stroke-width"]/2,i=this.series.getOptions().containerBackgroundColor===t.stroke?lh(e):lh(-e),r=Ft(lh(this.middleAngle));return{x:lh(this.centerX+(n-i)*r.cos),y:lh(this.centerY-(n-i)*r.sin),angle:this.middleAngle}},_drawMarker:function(n,t,e,i){var r=this.radiusOuter,v=this.radiusInner,D=this.fromAngle,A=this.toAngle;e&&(v=r=0,i||(D=A=this.shiftedAngle)),this.graphic=n.arc(this.centerX,this.centerY,v,r,A,D).attr({"stroke-linejoin":"round"}).smartAttr(this._getStyle()).data({"chart-data-point":this}).sharp().append(t)},getTooltipParams:function(){var n=Ft(this.middleAngle),t=this.radiusInner,e=this.radiusOuter;return{x:this.centerX+(t+(e-t)/2)*n.cos,y:this.centerY-(t+(e-t)/2)*n.sin,offset:0}},_translate:function(){var n=this.shiftedAngle||0,t=this.value,e=this.minValue,i=this._getValTranslator();this.fromAngle=i.translate(e)+n,this.toAngle=i.translate(t)+n,this.middleAngle=i.translate((t-e)/2+e)+n,this.isVisible()||(this.middleAngle=this.toAngle=this.fromAngle=this.fromAngle||n)},getMarkerVisibility:function(){return!0},_updateMarker:function(n,t,e,i){n||(t=pf({x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.radiusInner,startAngle:this.toAngle,endAngle:this.fromAngle},t)),this.graphic.smartAttr(t).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(n){var t=gs._getFormatObject.call(this,n),e=this.percent;return t.percent=e,t.percentText=n.formatValue(e,"percent"),t},getColor:function(){return this._styles.normal.fill},coordsIn:function(n,t){var A,e=n-this.centerX,i=t-this.centerY,r=wx(e*e+i*i),v=this.fromAngle%360,D=this.toAngle%360;return!(r<this.radiusInner||r>this.radiusOuter||0===r)&&((A=Sd(e/r)*mM*(i>0?-1:1))<0&&(A+=360),v===D&&Ex(this.toAngle-this.fromAngle)>1e-4||(v>=D?A<=v&&A>=D:!(A>=v&&A<=D)))}});var Sx=y.l,Cv=Math,lc=Cv.abs,El=Cv.min,h0=Cv.max,_M=Cv.round;const as=Sx({},gs,{deleteLabel:function(){this._topLabel.dispose(),this._topLabel=null,this._bottomLabel.dispose(),this._bottomLabel=null},hideMarker:function(n){var t=this.graphic,e=t&&t[n+"Marker"],i=this["_"+n+"Label"];e&&"hidden"!==e.attr("visibility")&&e.attr({visibility:"hidden"}),i.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var n=this.graphic,t=n&&n.topMarker,e=n&&n.bottomMarker;t&&t.attr("visibility")&&t.attr({visibility:null}),e&&e.attr("visibility")&&e.attr({visibility:null})},clearMarker:function(){var n=this.graphic,t=n&&n.topMarker,e=n&&n.bottomMarker,i=this._emptySettings;t&&t.attr(i),e&&e.attr(i)},_getLabelPosition:function(n){var e="inside"===this._options.label.position;return this._options.rotated?"top"===n^e?"right":"left":"top"===n^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 n=this._getLabelFormatObject();n.index=1,this._topLabel.setData(n),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var n=this._options.label;(!this._topLabel||!this._bottomLabel)&&this._createLabel(),this._topLabel.setOptions(n),this._bottomLabel.setOptions(n)},_createLabel:function(){var n={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new cf(n),this._bottomLabel=new cf(n)},_getGraphicBBox:function(n){var t=this._options,e=this._getImage(t.image),i=this._checkImage("top"===n?e.top:e.bottom),v=this._getPositionFromLocation(n);return t.visible?i?this._getImageBBox(v.x,v.y):this._getSymbolBBox(v.x,v.y,t.styles.normal.r):{x:v.x,y:v.y,width:0,height:0}},_getPositionFromLocation:function(n){var t,e,i="top"===n;return this._options.rotated?(t=i?h0(this.x,this.minX):El(this.x,this.minX),e=this.y):(t=this.x,e=i?El(this.y,this.minY):h0(this.y,this.minY)),{x:t,y:e}},_checkOverlay:function(n,t,e){return n<t+e},_getOverlayCorrections:function(n,t){var e=this._options.rotated,i=e?"x":"y",r=e?"width":"height",v=this.series.getValueAxis().getVisibleArea(),D=v[0],A=v[1],z=_M((n[i]+n[r]-t[i])/2),Q=n[i]-z,ue=t[i]+z;return Q<D?(Q+=z=D-Q,ue+=z):ue+t[r]>A&&(Q+=z=A-ue-t[r],ue+=z),{coord1:Q,coord2:ue}},_checkLabelsOverlay:function(n){var t=this._topLabel.getBoundingRect(),e=this._bottomLabel.getBoundingRect(),i={};this._options.rotated?"top"===n?this._checkOverlay(t.x,e.x,e.width)&&(i=this._getOverlayCorrections(e,t),this._topLabel.shift(i.coord2,t.y),this._bottomLabel.shift(i.coord1,e.y)):this._checkOverlay(e.x,t.x,t.width)&&(i=this._getOverlayCorrections(t,e),this._topLabel.shift(i.coord1,t.y),this._bottomLabel.shift(i.coord2,e.y)):"top"===n?this._checkOverlay(e.y,t.y,t.height)&&(i=this._getOverlayCorrections(t,e),this._topLabel.shift(t.x,i.coord1),this._bottomLabel.shift(e.x,i.coord2)):this._checkOverlay(t.y,e.y,e.height)&&(i=this._getOverlayCorrections(e,t),this._topLabel.shift(t.x,i.coord2),this._bottomLabel.shift(e.x,i.coord1))},_drawLabel:function(){var n=[],t=this._options.rotated?this.x>=this.minX:this.y<this.minY,e=this._getCustomLabelVisibility(),i=this._topLabel,r=this._bottomLabel;i.pointPosition=t?"top":"bottom",r.pointPosition=t?"bottom":"top",(this.series.getLabelVisibility()||e)&&this.hasValue()&&!1!==e?(!1!==this.visibleTopMarker&&n.push(i),!1!==this.visibleBottomMarker&&n.push(r),(0,O.S6)(n,function(v,D){D.draw(!0)}),this._checkLabelsOverlay(this._topLabel.pointPosition)):(i.draw(!1),r.draw(!1))},_getImage:function(n){var t={};return(0,w.$K)(n)&&("string"==typeof n?t.top=t.bottom=n:(t.top={url:"string"==typeof n.url?n.url:n.url&&n.url.rangeMaxPoint,width:"number"==typeof n.width?n.width:n.width&&n.width.rangeMaxPoint,height:"number"==typeof n.height?n.height:n.height&&n.height.rangeMaxPoint},t.bottom={url:"string"==typeof n.url?n.url:n.url&&n.url.rangeMinPoint,width:"number"==typeof n.width?n.width:n.width&&n.width.rangeMinPoint,height:"number"==typeof n.height?n.height:n.height&&n.height.rangeMinPoint})),t},_checkSymbol:function(n,t){var e=n.symbol,i=t.symbol,r="circle"===e&&"circle"!==i||"circle"!==e&&"circle"===i,v=this._getImage(n.image),D=this._getImage(t.image),A=this._checkImage(v.top)!==this._checkImage(D.top),z=this._checkImage(v.bottom)!==this._checkImage(D.bottom);return r||A||z},_getSettingsForTwoMarkers:function(n){var t=this._options,e={},i=t.rotated?El(this.x,this.minX):this.x,r=t.rotated?this.y:El(this.y,this.minY),v=n.r,D=this._populatePointShape(t.symbol,v);return e.top=Sx({translateX:i+this.width,translateY:r,r:v},n),e.bottom=Sx({translateX:i,translateY:r+this.height,r:v},n),D&&(e.top.points=e.bottom.points=D),e},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(n,t,e,i){var r=this.graphic;r[t]?this._updateOneMarker(t,i):r[t]=this._createMarker(n,r,e,i)},_drawMarker:function(n,t,e,i,r){var v=this._getSettingsForTwoMarkers(r||this._getStyle()),D=this._getImage(this._options.image);this._checkImage(D.top)&&(v.top=this._getImageSettings(v.top,D.top)),this._checkImage(D.bottom)&&(v.bottom=this._getImageSettings(v.bottom,D.bottom)),this.graphic=this.graphic||n.g().append(t),this.visibleTopMarker&&this._drawOneMarker(n,"topMarker",D.top,v.top),this.visibleBottomMarker&&this._drawOneMarker(n,"bottomMarker",D.bottom,v.bottom)},_getSettingsForTracker:function(n){var t=this._options.rotated;return{translateX:t?El(this.x,this.minX)-n:this.x-n,translateY:t?this.y-n:El(this.y,this.minY)-n,width:this.width+2*n,height:this.height+2*n}},isInVisibleArea:function(){var r,v,D,n=this._options.rotated,t=n?this.y:this.x,e=n?h0(this.minX,this.x):h0(this.minY,this.y),i=n?El(this.minX,this.x):El(this.minY,this.y),A=!0,z=this.series.getArgumentAxis().getVisibleArea(),Q=this.series.getValueAxis().getVisibleArea();return z[1]<t||z[0]>t||Q[0]>i&&Q[0]>e||Q[1]<i&&Q[1]<e?v=D=A=!1:(v=Q[0]<=i&&Q[1]>i,D=Q[0]<e&&Q[1]>=e,n&&(r=v,v=D,D=r)),this.visibleTopMarker=v,this.visibleBottomMarker=D,A},getTooltipParams:function(){var n,t,e=this._options.rotated,i=e?El(this.x,this.minX):El(this.y,this.minY),r=e?"width":"height",v=this._getVisibleArea(),A=e?v.maxX:v.maxY,z=h0(e?v.minX:v.minY,i),Q=El(A,i+this[r]);return e?(t=this.y,n=z+(Q-z)/2):(n=this.x,t=z+(Q-z)/2),{x:n,y:t,offset:0}},_translate:function(){var n=this._options.rotated;gs._translate.call(this),this.height=n?0:lc(this.minY-this.y),this.width=n?lc(this.x-this.minX):0},hasCoords:function(){return gs.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(n){gs._updateData.call(this,n),this.minValue=this.initialMinValue=this.originalMinValue=n.minValue},_getImageSettings:function(n,t){return{href:t.url||t.toString(),width:t.width||20,height:t.height||20,translateX:n.translateX,translateY:n.translateY}},getCrosshairData:function(n,t){var i=this.minX,r=this.minY,v=this.vx,D=this.vy,A=this.value,z=this.minValue,Q=this.argument,ue={axis:this.series.axis,x:v,y:D,yValue:A,xValue:Q};return this._options.rotated?(ue.yValue=Q,lc(v-n)<lc(i-n)?ue.xValue=A:(ue.x=i,ue.xValue=z)):lc(D-t)>=lc(r-t)&&(ue.y=r,ue.yValue=z),ue},_updateOneMarker:function(n,t){this.graphic&&this.graphic[n]&&this.graphic[n].attr(t)},_updateMarker:function(n,t){this._drawMarker(void 0,void 0,!1,!1,t)},_getFormatObject:function(n){var t=this.initialMinValue,e=this.initialValue,i=this.initialArgument,r=n.formatValue(t),v=n.formatValue(e);return{argument:i,argumentText:n.formatValue(i,"argument"),valueText:r+" - "+v,rangeValue1Text:r,rangeValue2Text:v,rangeValue1:t,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:E.ZT,coordsIn:function(n,t){var e=this._storeTrackerR(),i=n>=this.x-e&&n<=this.x+e,r=t>=this.y-e&&t<=this.y+e;return this._options.rotated?r&&(i||n>=this.minX-e&&n<=this.minX+e):i&&(r||t>=this.minY-e&&t<=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}}),Ox=(0,y.l)({},d0,{deleteLabel:as.deleteLabel,_getFormatObject:as._getFormatObject,clearVisibility:function(){var n=this.graphic;n&&n.attr("visibility")&&n.attr({visibility:null})},setInvisibility:function(){var n=this.graphic;n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),this._topLabel.draw(!1),this._bottomLabel.draw(!1)},getTooltipParams:function(n){var e,i,t="edge"===n;return this._options.rotated?(e=t?this.x+this.width:this.x+this.width/2,i=this.y+this.height/2):(e=this.x+this.width/2,i=t?this.y:this.y+this.height/2),{x:e,y:i,offset:0}},_translate:function(){d0._translate.call(this),this._options.rotated?this.width=this.width||1:this.height=this.height||1},hasCoords:as.hasCoords,_updateData:as._updateData,_getLabelPosition:as._getLabelPosition,_getLabelMinFormatObject:as._getLabelMinFormatObject,_updateLabelData:as._updateLabelData,_updateLabelOptions:as._updateLabelOptions,getCrosshairData:as.getCrosshairData,_createLabel:as._createLabel,_checkOverlay:as._checkOverlay,_checkLabelsOverlay:as._checkLabelsOverlay,_getOverlayCorrections:as._getOverlayCorrections,_drawLabel:as._drawLabel,_getLabelCoords:as._getLabelCoords,getLabel:as.getLabel,getLabels:as.getLabels,getBoundingRect:E.ZT,getMinValue:as.getMinValue,getMaxValue:as.getMaxValue});var gf=Math,gu=gf.abs,uc=gf.min,ff=gf.max,FS=gf.round;const VS=(0,y.l)({},d0,{_calculateVisibility:gs._calculateVisibility,_getContinuousPoints:function(n,t){var e=this.x,i=this._options.rotated?function(Q,ue){return[ue,Q]}:function(Q,ue){return[Q,ue]},r=this.width,v=this.highY,D=gu(v-n)<gu(v-t)?n:t,A=D===t?n:t;return A===D?[].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,D)).concat(i(e+r/2,D)).concat(i(e+r/2,A)).concat(i(e,A)).concat(i(e,this.lowY)).concat(i(e,A)).concat(i(e-r/2,A)).concat(i(e-r/2,D)).concat(i(e,D))},_getCrockPoints:function(n){var t=this.x,e=this._options.rotated?function(i,r){return[r,i]}:function(i,r){return[i,r]};return[].concat(e(t,this.highY)).concat(e(t,this.lowY)).concat(e(t,n)).concat(e(t-this.width/2,n)).concat(e(t+this.width/2,n)).concat(e(t,n))},_getPoints:function(){var t=this.closeY,e=this.openY;return null!==t&&null!==e?this._getContinuousPoints(e,t):e===t?[this.x,this.highY,this.x,this.lowY]:this._getCrockPoints(null!==e?e:t)},getColor:function(){return this._isReduction?this._options.reduction.color:this._styles.normal.stroke||this.series.getColor()},_drawMarkerInGroup:function(n,t,e){this.graphic=e.path(this._getPoints(),"area").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":this}).sharp().append(n)},_fillStyle:function(){var n=this._options.styles;this._styles=this._isReduction&&this._isPositive?n.reductionPositive:this._isReduction?n.reduction:this._isPositive?n.positive:n},_getMinTrackerWidth:function(){return 2+2*this._styles.normal["stroke-width"]},correctCoordinates:function(n){var t=this._getMinTrackerWidth(),e=n.width;this.width=(e=e<t?t:e>10?10:e)+e%2,this.xCorrection=n.offset},_getMarkerGroup:function(n){return this._isReduction&&this._isPositive?n.reductionPositiveMarkersGroup:this._isReduction?n.reductionMarkersGroup:this._isPositive?n.defaultPositiveMarkersGroup:n.defaultMarkersGroup},_drawMarker:function(n,t){this._drawMarkerInGroup(this._getMarkerGroup(t),this._getStyle(),n)},_getSettingsForTracker:function(){var i,r,v,D,n=this.highY,t=this.lowY,e=this._options.rotated;return n===t&&(n=e?n+2:n-2,t=e?t-2:t+2),e?(i=uc(t,n),r=this.x-this.width/2,v=gu(t-n),D=this.width):(i=this.x-this.width/2,r=uc(t,n),v=this.width,D=gu(t-n)),{x:i,y:r,width:v,height:D}},_getGraphicBBox:function(n){var t=this._options.rotated,e=this.x,i=this.width,r=this.lowY,v=this.highY;if(n){var D=this.series.getValueAxis().getVisibleArea();v=this._truncateCoord(v,D),r=this._truncateCoord(r,D)}var A={x:t?r:e-FS(i/2),y:t?e-FS(i/2):v,width:t?v-r:i,height:t?i:r-v};if(n){var z="top"===n;this._options.rotated?(A.x=z?A.x+A.width:A.x,A.width=0):(A.y=z?A.y:A.y+A.height,A.height=0)}return A},getTooltipParams:function(n){if(this.graphic){var t=uc(this.lowY,this.highY),e=ff(this.lowY,this.highY),i=this._getVisibleArea(),r=this._options.rotated,D=r?i.maxX:i.maxY,A=ff(r?i.minX:i.minY,t),z=uc(D,e),Q=this.getCenterCoord();return"edge"===n&&(Q[r?"x":"y"]=r?z:A),Q.offset=0,Q}},getCenterCoord(){if(this.graphic){var n,t,e=uc(this.lowY,this.highY),i=ff(this.lowY,this.highY),r=this._getVisibleArea(),v=this._options.rotated,A=v?r.maxX:r.maxY,z=ff(v?r.minX:r.minY,e),ue=z+(uc(A,i)-z)/2;return v?(t=this.x,n=ue):(n=this.x,t=ue),{x:n,y:t}}},hasValue:function(){return null!==this.highValue&&null!==this.lowValue},hasCoords:function(){return null!==this.x&&null!==this.lowY&&null!==this.highY},_translate:function(){var n=this._options.rotated,t=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?t.translate(this.openValue):null,this.highY=t.translate(this.highValue),this.lowY=t.translate(this.lowValue),this.closeY=null!==this.closeValue?t.translate(this.closeValue):null;var i=uc(this.lowY,this.highY)+gu(this.lowY-this.highY)/2;this._calculateVisibility(n?i:this.x,n?this.x:i)},getCrosshairData:function(n,t){var r,D,e=this._options.rotated,i=e?n:t,v=this.argument,A="low";return gu(this.lowY-i)<gu(this.closeY-i)?r=this.lowY:(r=this.closeY,A="close"),gu(r-i)>=gu(this.openY-i)&&(r=this.openY,A="open"),gu(r-i)>=gu(this.highY-i)&&(r=this.highY,A="high"),(D=e?{y:this.vy,x:r,xValue:this[A+"Value"],yValue:v}:{x:this.vx,y:r,xValue:v,yValue:this[A+"Value"]}).axis=this.series.axis,D},_updateData:function(n){var t=this._label,e=this._options.reduction.color;this.value=this.initialValue=n.reductionValue,this.originalValue=n.value,this.lowValue=this.originalLowValue=n.lowValue,this.highValue=this.originalHighValue=n.highValue,this.openValue=this.originalOpenValue=n.openValue,this.closeValue=this.originalCloseValue=n.closeValue,this._isPositive=n.openValue<n.closeValue,this._isReduction=n.isReduction,this._isReduction&&t.setColor(e)},_updateMarker:function(n,t,e){var i=this.graphic;i.attr({points:this._getPoints()}).smartAttr(t).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(n){var t=n.formatValue(this.highValue),e=n.formatValue(this.openValue),i=n.formatValue(this.closeValue),r=n.formatValue(this.lowValue),D=gs._getFormatObject.call(this,n);return(0,y.l)({},D,{valueText:"h: "+t+(""!==e?" o: "+e:"")+(""!==i?" c: "+i:"")+" l: "+r,highValueText:t,openValueText:e,closeValueText:i,lowValueText:r})},getMaxValue:function(){return this.highValue},getMinValue:function(){return this.lowValue}});var Dx=w.kE;const Tx=(0,y.l)({},VS,{_getPoints:function(){var n=this._options.rotated?function(D,A){return[A,D]}:function(D,A){return[D,A]},t=Dx(this.openY),e=Dx(this.closeY),i=this.x,r=this.width,v=[].concat(n(i,this.highY));return t&&(v=v.concat(n(i,this.openY))),t&&(v=v.concat(n(i-r/2,this.openY))),t&&(v=v.concat(n(i,this.openY))),e&&(v=v.concat(n(i,this.closeY))),e&&(v=v.concat(n(i+r/2,this.closeY))),e&&(v=v.concat(n(i,this.closeY))),v.concat(n(i,this.lowY))},_drawMarkerInGroup:function(n,t,e){this.graphic=e.path(this._getPoints(),"line").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":this}).sharp().append(n)},_getMinTrackerWidth:function(){var n=2+this._styles.normal["stroke-width"];return n+n%2}});var Ix=y.l,p0=Math,NS=p0.max,Mx=Ul.radialLabelIndent,Ax="canvas_position_start",Px="canvas_position_end",HS="canvas_position_default",Ep=Ix({},gs,{_getLabelCoords:uh._getLabelCoords,_getElementCoords:uh._getElementCoords,_moveLabelOnCanvas:function(n,t,e){var i=n.x,r=n.y;return t.minX>i&&(i=t.minX),t.maxX<i+e.width&&(i=t.maxX-e.width),t.minY>r&&(r=t.minY),t.maxY<r+e.height&&(r=t.maxY-e.height),{x:i,y:r}},_getLabelPosition:function(){return"outside"},_getCoords:function(n,t){var e=this.series.getValueAxis(),i=e.getAngles()[0],r=this._getArgTranslator().translate(n),v=this._getValTranslator().translate(t),D=Hi(e.getCenter(),e.getAngles()[0],r,v);return D.angle=r+i-90,D.radius=v,D},_translate(){var n=this.series.getValueAxis().getCenter(),t=this._getCoords(this.argument,this.value),e=this._getValTranslator(),i=e.isInverted()?e.translate(Ax):e.translate(Px),r=(0,w.$K)(t.radius)&&t.radius>=0?t.radius:null;this.vx=dt(t.angle),this.vy=this.radiusOuter=this.radiusLabels=r,this.radiusLabels+=Mx,this.radius=r,this.middleAngle=-t.angle,this.angle=-t.angle,this.x=t.x,this.y=t.y,this.defaultX=this.centerX=n.x,this.defaultY=this.centerY=n.y,this._translateErrorBars(),this.inVisibleArea=this._checkRadiusForVisibleArea(r,i)},_checkRadiusForVisibleArea:(n,t)=>(0,w.$K)(n)&&n<=t,_translateErrorBars:function(){var n=this._options.errorBars,t=this._getValTranslator();n&&((0,w.$K)(this.lowError)&&(this._lowErrorCoord=this.centerY-t.translate(this.lowError)),(0,w.$K)(this.highError)&&(this._highErrorCoord=this.centerY-t.translate(this.highError)),this._errorBarPos=this.centerX,this._baseErrorBarPos="stdDeviation"===n.type?this._lowErrorCoord+(this._highErrorCoord-this._lowErrorCoord)/2:this.centerY-this.radius)},_getTranslates:function(n){return n?this.getDefaultCoords():{x:this.x,y:this.y}},getDefaultCoords:function(){var n=Ft(-this.angle),t=this._getValTranslator().translate(HS);return{x:this.defaultX+t*n.cos,y:this.defaultY+t*n.sin}},_addLabelAlignmentAndOffset:function(n,t){return t},_checkLabelPosition:function(n,t){var e=this._getVisibleArea(),i=this._getGraphicBBox();return this._isPointInVisibleArea(e,i)&&(t=this._moveLabelOnCanvas(t,e,n.getBoundingRect())),t},_getErrorBarSettings:function(n,t){var e=gs._getErrorBarSettings.call(this,n,t);return e.rotate=90-this.angle,e.rotateX=this.centerX,e.rotateY=this.centerY,e},getCoords:function(n){return n?this.getDefaultCoords():{x:this.x,y:this.y}}}),zS=Ix({},d0,{_translateErrorBars:Ep._translateErrorBars,_getErrorBarSettings:Ep._getErrorBarSettings,_moveLabelOnCanvas:Ep._moveLabelOnCanvas,_getLabelCoords:uh._getLabelCoords,_getElementCoords:uh._getElementCoords,_getLabelConnector:uh._getLabelConnector,getTooltipParams:uh.getTooltipParams,_getLabelPosition:uh._getLabelPosition,_getCoords:Ep._getCoords,_translate(){var n=this._getValTranslator(),t=n.getBusinessRange(),e=n.isInverted()?n.translate(Ax):n.translate(Px);this.radiusInner=n.translate(this.minValue),Ep._translate.call(this),null===this.radiusInner?this.radiusInner=this.radius=e:null===this.radius?this.radius=this.value>=t.minVisible?e:0:this.radius>e&&(this.radius=e),this.radiusOuter=this.radiusLabels=NS(this.radiusInner,this.radius),this.radiusLabels+=Mx,this.radiusInner=this.defaultRadius=p0.min(this.radiusInner,this.radius),this.middleAngle=this.angle=-dt(this.middleAngleCorrection-this.angle)},_checkRadiusForVisibleArea(n){return(0,w.$K)(n)||this._getValTranslator().translate(this.minValue)>0},_getErrorBarBaseEdgeLength(){var n=this.getMarkerCoords();return p0.PI*n.outerRadius*p0.abs(n.startAngle-n.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(n,t,e){var i=this._getStyle(),r=this.getMarkerCoords(),v=r.innerRadius,D=r.outerRadius,A=this._getCoords(this.argument,HS),z=r.x,Q=r.y;e&&(v=0,D=0,z=A.x,Q=A.y),this.graphic=n.arc(z,Q,v,D,r.startAngle,r.endAngle).attr(i).data({"chart-data-point":this}).append(t)},_checkLabelPosition:function(n,t){var e=this._getVisibleArea(),i=Ft(this.middleAngle),r=this.centerX+this.defaultRadius*i.cos,v=this.centerY-this.defaultRadius*i.sin;return r>e.minX&&r<e.maxX&&v>e.minY&&v<e.maxY&&(t=this._moveLabelOnCanvas(t,e,n.getBoundingRect())),t},_addLabelAlignmentAndOffset:function(n,t){return t},correctCoordinates:function(n){this.middleAngleCorrection=n.offset,this.interval=n.width},coordsIn:function(n,t){var e=$i(this.series.getValueAxis().getCenter(),n,t),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)}}),Na={},mf=y.l,_f=Ul.states,pl="symbolPoint",WS="polarSymbolPoint",US="barPoint",kx="polarBarPoint",bv="piePoint",Sp=_f.selectedMark,Rx=_f.hoverMark,wv=_f.normalMark,Lx=_f.hover,ZS=_f.normal,Ev=_f.selection,KS={chart:{scatter:pl,line:pl,spline:pl,stepline:pl,stackedline:pl,fullstackedline:pl,stackedspline:pl,fullstackedspline:pl,stackedsplinearea:pl,fullstackedsplinearea:pl,area:pl,splinearea:pl,steparea:pl,stackedarea:pl,fullstackedarea:pl,rangearea:"rangeSymbolPoint",bar:US,stackedbar:US,fullstackedbar:US,rangebar:"rangeBarPoint",bubble:"bubblePoint",stock:"stockPoint",candlestick:"candlestickPoint"},pie:{pie:bv,doughnut:bv,donut:bv},polar:{scatter:WS,line:WS,area:WS,bar:kx,stackedbar:kx}};function GS(n){return"none"===Sn(n)}function g0(n,t,e){this.fullState=wv,this.series=n,this.update(t,e),this._viewCounters={hover:0,selection:0},this._emptySettings={fill:null,stroke:null,dashStyle:null}}Na.symbolPoint=gs,Na.barPoint=d0,Na.bubblePoint=fM,Na.piePoint=uh,Na.rangeSymbolPoint=as,Na.rangeBarPoint=Ox,Na.candlestickPoint=VS,Na.stockPoint=Tx,Na.polarSymbolPoint=Ep,Na.polarBarPoint=zS,g0.prototype={constructor:g0,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(n,t){this.updateOptions(t),this.updateData(n)},updateData:function(n){var t=this.argument!==n.argument;this.argument=this.initialArgument=this.originalArgument=n.argument,this.tag=n.tag,this.index=n.index,this._dataItem=n,this.data=n.data,this.lowError=n.lowError,this.highError=n.highError,this.aggregationInfo=n.aggregationInfo,this._updateData(n,t),!this.hasValue()&&this.setInvisibility(),this._fillStyle(),this._updateLabelData()},deleteMarker:function(){this.graphic&&this.graphic.dispose(),this.graphic=null},draw:function(n,t,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(),t.markers):this.getMarkerVisibility()&&!this.series.autoHidePointMarkers&&this._drawMarker(n,t.markers,e,i),this._drawLabel(),this._drawErrorBar(n,t.errorBars,e),this},_getViewStyle:function(){var n=wv,t=this.fullState,e=[ZS,Lx,Ev,Ev];return this._viewCounters.hover&&(n|=Rx),this._viewCounters.selection&&(n|=Sp),GS(this.getOptions().selectionMode)&&(t&=~Sp),GS(this.getOptions().hoverMode)&&(t&=~Rx),e[n|=t]},applyView:function(n){var t=this._getViewStyle();this._currentStyle=t,!this.graphic&&this.getMarkerVisibility()&&this.series.autoHidePointMarkers&&(t===Ev||t===Lx)&&this._drawMarker(this.series.getRenderer(),this.series.getMarkersGroup()),this.graphic&&(this.series.autoHidePointMarkers&&t!==Ev&&t!==Lx?this.deleteMarker():("normal"===t?this.clearMarker():this.graphic.toForeground(),this._updateMarker(!0,this._styles[t],void 0,n)))},setView:function(n){this._viewCounters[n]++,this.applyView()},resetView:function(n){var t=this._viewCounters;--t[n],t[n]<0&&(t[n]=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(n,t){var e=~t.indexOf("range"),i=~n.indexOf("range");return i&&!e||!i&&e},updateOptions:function(n){if(n){var t=this._options,i=t&&t.type,r=n.type,v=KS[n.widgetType][r];i!==r?(this._needDeletingOnDraw=!0,this._needClearingOnDraw=!1,i&&(this._checkLabelsChanging(i,r)&&this.deleteLabel(),this._resetType(Na[KS[i]])),this._setType(Na[v])):(this._needDeletingOnDraw=this._checkSymbol(t,n),this._needClearingOnDraw=this._checkCustomize(t,n)),this._options=n,this._fillStyle(),this._updateLabelOptions(v)}},translate:function(){this.hasValue()&&(this._translate(),this.translated=!0)},_checkCustomize:function(n,t){return n.styles.usePointCustomOptions&&!t.styles.usePointCustomOptions},_getCustomLabelVisibility:function(){return this._styles.useLabelCustomOptions?!!this._options.label.visible:null},getBoundingRect:function(){return this._getGraphicBBox()},_resetType:function(n){for(var t in n)delete this[t]},_setType:function(n){for(var t in n)this[t]=n[t]},isInVisibleArea:function(){return this.inVisibleArea},isSelected:function(){return!!(this.fullState&Sp)},isHovered:function(){return!!(this.fullState&Rx)},getOptions:function(){return this._options},animate:function(n,t,e){this.graphic?this.graphic.animate(t,{partitionDuration:e},n):n&&n()},getCoords:function(n){return n?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 n=this.getDefaultCoords();this.x=n.x,this.y=n.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 n=this.series._valueChecker;return n(this.getMinValue())&&n(this.getMaxValue())},hasValue:function(){return null!==this.value&&null!==this.minValue&&this.isArgumentCorrect()&&this.isValueCorrect()},hasCoords:E.ZT,correctPosition:E.ZT,correctRadius:E.ZT,correctLabelRadius:E.ZT,getCrosshairData:E.ZT,getPointRadius:E.ZT,_populatePointShape:E.ZT,_checkSymbol:E.ZT,getMarkerCoords:E.ZT,hide:E.ZT,show:E.ZT,hideMarker:E.ZT,setInvisibility:E.ZT,clearVisibility:E.ZT,isVisible:E.ZT,resetCorrection:E.ZT,correctValue:E.ZT,resetValue:E.ZT,setPercentValue:E.ZT,correctCoordinates:E.ZT,coordsIn:E.ZT,getTooltipParams:E.ZT,applyWordWrap:E.ZT,setLabelTrackerData:E.ZT,updateLabelCoord:E.ZT,drawLabel:E.ZT,correctLabelPosition:E.ZT,getMinValue:E.ZT,getMaxValue:E.ZT,_drawErrorBar:E.ZT,getMarkerVisibility:E.ZT,dispose:function(){this.deleteMarker(),this.deleteLabel(),this._errorBar&&this._errorBar.dispose(),this._options=this._styles=this.series=this._errorBar=null},getTooltipFormatObject:function(n,t){var e=this._getFormatObject(n),i=[],r=[];t&&(t.forEach(z=>{if(z.isVisible()){var Q=z._getFormatObject(n);r.push(Q),i.push(Q.seriesName+": "+Q.valueText)}}),mf(e,{points:r,valueText:i.join("\n"),stackName:this.series.getStackName()||null}));var v=this.aggregationInfo;if(v){var A=this.series.getArgumentAxis().formatRange(v.intervalStart,v.intervalEnd,v.aggregationInterval,n.getOptions().argumentFormat);A&&(e.valueText+="\n".concat(A))}return e},setHole:function(n,t){var e=isFinite(this.minValue)?this.minValue:0;(0,w.$K)(n)&&("left"===t?(this.leftHole=this.value-n,this.minLeftHole=e-n):(this.rightHole=this.value-n,this.minRightHole=e-n))},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 f0="discrete",{abs:jS,floor:Sv,ceil:Bx,min:CM}=Math;function Fx(n,t,e){n.min=n.min<t?n.min:t,n.max=n.max>e?n.max:e}function $S(n,t){if("logarithmic"!==n)return null;var e=t.getOptions().logarithmBase;return i=>{var r=Dt(jS(i),e);return(r<0?Sv:Bx)(r)}}function Ov(n,t,e){var i=Fx;return n===f0?i=function(r,v,D){v!==D&&r.categories.push(D),r.categories.push(v)}:t&&(i=function(r,v){var D=t.calculateInterval(v,r.prevValue),A=r.interval;r.interval=(A<D?A:D)||A,r.prevValue=v,Fx(r,v,v)}),e?(r,v,D)=>{var A=[];i(r,v,D),0!==v&&A.push(e(v)),0!==D&&A.push(e(D));var z=CM.apply(null,A);r.linearThreshold=r.linearThreshold<z?r.linearThreshold:z}:i}function dc(n,t,e){var i={axisType:n,dataType:t};return n===f0?i.categories=[]:(i.min=(0,w.Kn)(e)?e.min:e,i.max=(0,w.Kn)(e)?e.max:e),i}function Vx(n){return n.categories&&(n.categories=Si(n.categories)),n}function Nx(n,t,e,i,r){var v=function YS(n,t,e,i){if(t&&(0,w.$K)(t.value)){var r=n.value,D=n.argument,z=(e-D)*(t.value-r)/(t.argument-D)+r.valueOf();return"datetime"===i.dataType?new Date(z):z}return n.value}(e,i,r,t);n(t,v,v)}function xM(n){return n.type.toLowerCase().indexOf("line")>=0||n.type.toLowerCase().indexOf("area")>=0}function XS(n){var t=Ov(n.valueAxisType),e=n.getArgumentAxis(),i=e&&n.getArgumentAxis().visualRange()||{},r=xM(n)?Nx:E.ZT;if(e&&e.getMarginOptions().checkInterval){var v=n.getArgumentAxis().getTranslator().getBusinessRange(),D=zr(v,!1),A=v.interval;isFinite(A)&&(0,w.$K)(i.startValue)&&(0,w.$K)(i.endValue)&&(i.startValue=D(i.startValue,A,-1),i.endValue=D(i.endValue,A))}var z=Hx(i);return function(Q,ue,we,Le){var Ue=ue.argument;return ue.hasValue()&&(z(Ue)?(Q.startCalc||(Q.startCalc=!0,r(t,Q,ue,Le[we-1],i.startValue)),t(Q,ue.getMinValue(),ue.getMaxValue())):!i.categories&&(0,w.$K)(i.startValue)&&Ue>i.startValue&&(Q.startCalc||r(t,Q,ue,Le[we-1],i.startValue),Q.endCalc=!0,r(t,Q,ue,Le[we-1],i.endValue))),Q}}function Hx(n){if(n.categories){var t=n.categories.reduce((e,i)=>(e[i.valueOf()]=!0,e),{});return e=>(0,w.$K)(e)&&t[e.valueOf()]}return(0,w.$K)(n.startValue)||(0,w.$K)(n.endValue)?(0,w.$K)(n.endValue)?(0,w.$K)(n.startValue)?e=>e>=n.startValue&&e<=n.endValue:e=>e<=n.endValue:e=>e>=n.startValue:()=>!0}const dh={getViewPortFilter:Hx,getArgumentRange:function(n){var t=n._data||[],e={};if(t.length)if(n.argumentAxisType===f0)e={categories:t.map(D=>D.argument)};else{var i;if(t.length>1){var r=n.getArgumentAxis().calculateInterval(t[0].argument,t[1].argument),v=n.getArgumentAxis().calculateInterval(t[t.length-1].argument,t[t.length-2].argument);i=CM(r,v)}e={min:t[0].argument,max:t[t.length-1].argument,interval:i}}return Vx(e)},getRangeData:function(n){var t=n.getPoints(),e=n.useAggregation(),i=n.getArgumentAxis(),r=Ov(n.argumentAxisType,t.length>1&&i,$S(n.argumentAxisType,i)),v=Ov(n.valueAxisType,null,$S(n.valueAxisType,n.getValueAxis())),D=XS(n),A=t.reduce(function(ue,we,Le,Ue){var ut=we.argument;return we.isArgumentCorrect()&&(r(ue.arg,ut,ut),we.hasValue()&&(v(ue.val,we.getMinValue(),we.getMaxValue()),D(ue.viewport,we,Le,Ue))),ue},{arg:dc(n.argumentAxisType,n.argumentType,null!=i&&i.aggregatedPointBetweenTicks()?void 0:n.getArgumentRangeInitialValue()),val:dc(n.valueAxisType,n.valueType,t.length?n.getValueRangeInitialValue():void 0),viewport:dc(n.valueAxisType,n.valueType,t.length?n.getValueRangeInitialValue():void 0)});if(e){var z=this.getArgumentRange(n);if(n.argumentAxisType===f0)A.arg=z;else{var Q=i.getViewport();((0,w.$K)(Q.startValue)||(0,w.$K)(Q.length))&&r(A.arg,z.min,z.min),((0,w.$K)(Q.endValue)||(0,w.$K)(Q.length)&&(0,w.$K)(Q.startValue))&&r(A.arg,z.max,z.max)}}return Vx(A.arg),Vx(A.val),A},getViewport:function(n){var e,t=n.getPoints(),i=XS(n);return e=dc(n.valueAxisType,n.valueType,t.length?n.getValueRangeInitialValue():void 0),t.some(function(r,v){return i(e,r,v,t),e.endCalc}),e},getPointsInViewPort:function(n){var t=Hx(n.getArgumentAxis().visualRange()||{}),e=n.getValueAxis().visualRange()||{},i=Hx(e),r=n.getPoints(),v=function(A,z,Q){var ue=z.getMinValue(),we=z.getMaxValue(),Le=i(ue),Ue=i(we);Le&&A.push(ue),we!==ue&&Ue&&A.push(we),Q&&!Le&&!Ue&&A.push(A.length?e.endValue:e.startValue)},D=xM(n)?function(A,z,Q){var ue=z[Q],we=z[Q-1],Le=z[Q+1];Le&&t(Le.argument)&&v(A[1],ue,!0),we&&t(we.argument)&&v(A[1],ue,!0)}:E.ZT;return r.reduce(function(A,z,Q){return t(z.argument)?v(A[0],z):D(A,r,Q),A},[[],[]])}};var _0,zx=Math,qS=zx.abs,Wx=zx.sqrt,JS=zx.max,m0="highError",Dv="lowError",eO="variance",Ux="stddeviation",tO="stderror",Zx="percent",Kx="fixed",fs={};function Gx(n){var t=0;return(0,O.S6)(n,function(e,i){t+=i}),t}function rO(n,t){return Gx(Vn(n,function(e){return(e-t)*(e-t)}))/n.length}function SM(n){return(t,e)=>{var{intervalStart:i,intervalEnd:r,data:v}=t,D=e.getValueFields()[0],A=v[0];return A=v.reduce((z,Q)=>{var ue=Q[D];return null===z[D]&&(z=Q),null!==ue&&n(ue,z[D])?Q:z},A),(0,y.l)({},A,{[e.getArgumentField()]:e._getIntervalCenter(i,r)})}}var OM={_defaultDuration:400,_defaultTrackerWidth:12,_applyStyle:E.ZT,_updateOptions:E.ZT,_parseStyle:E.ZT,_prepareSegment:E.ZT,_drawSegment:E.ZT,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(n,t){return{fill:n.color||t,hatching:n.hatching?(0,y.l)({},n.hatching,{direction:"right"}):void 0}},_applyElementsClipRect:function(n){n["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(n){n["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(n,t,e,i){var r=t[n]=t[n]||this._renderer.g();e&&r.append(e),i&&r.attr(i)},_applyClearingSettings:function(n){n.opacity=null,n.scale=null,this._options.rotated?n.translateX=null:n.translateY=null},_createGroups:function(){this._createGroup("_markersGroup",this,this._group),this._createGroup("_labelsGroup",this)},_setMarkerGroupSettings:function(){var n=this._createPointStyles(this._getMarkerGroupOptions()).normal;n.class="dxc-markers",n.opacity=1,this._applyMarkerClipRect(n),this._markersGroup.attr(n)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var n=this._options.valueErrorBar;return n&&this._errorBarsEnabled()&&"none"!==n.displayMode&&(function x2(n){return[Kx,Zx,eO,Ux,tO].includes(n)}(Sn(n.type))||(0,w.$K)(n.lowValueField)||(0,w.$K)(n.highValueField))},groupPointsByCoords(n){var t=[];return(0,O.S6)(this.getVisiblePoints(),function(e,i){var r=parseInt(n?i.vy:i.vx);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t},_createErrorBarGroup:function(n){var t=this._options.valueErrorBar;this.areErrorBarsVisible()&&this._createGroup("_errorBarGroup",this,this._group,{class:"dxc-error-bars",stroke:t.color,"stroke-width":t.lineWidth,opacity:n?.001:t.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":this._forceClipping?this._paneClipRectID:this._widePaneClipRectID})},_setGroupsSettings:function(n){this._setMarkerGroupSettings(),this._setLabelGroupSettings(n),this._createErrorBarGroup(n)},_getCreatingPointOptions:function(){var n,e,t=this._predefinedPointOptions;return t||(n=this._getPointOptions(),this._predefinedPointOptions=t=(0,y.l)(!0,{styles:{}},n),e=n.styles&&n.styles.normal||{},t.styles=t.styles||{},t.styles.normal={"stroke-width":e["stroke-width"],r:e.r,opacity:e.opacity}),t},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(n,t,e,i){var r=n.border||{},v=void 0!==n.size?n.size:i;return{fill:n.color||t,stroke:r.color||e,"stroke-width":r.visible?r.width:0,r:v/2+(r.visible&&0!==v&&~~(r.width/2)||0)}},_createPointStyles:function(n){var t=n.color||this._options.mainSeriesColor,e=this._options.containerBackgroundColor,i=this._parsePointStyle(n,t,t);return i.visibility=n.visible?"visible":"hidden",{normal:i,hover:this._parsePointStyle(n.hoverStyle,e,t,n.size),selection:this._parsePointStyle(n.selectionStyle,e,t,n.size)}},_checkData:function(n,t,e){return(e=e||{value:this.getValueFields()[0]}).argument=this.getArgumentField(),function E2(n,t,e){var i=!0;for(var r in t){var v="argument"===r;if(v||"size"===r?!(0,w.$K)(n[r]):void 0===n[r]){var D=t[r];v||(e[D]=(e[D]||0)+1),i=!1}}return i}(n,e,t||{})&&n.value==n.value},getArgumentRangeInitialValue(){var t,e,n=this.getPoints();if(this.useAggregation()&&n.length)return{min:null===(t=n[0].aggregationInfo)||void 0===t?void 0:t.intervalStart,max:null===(e=n[n.length-1].aggregationInfo)||void 0===e?void 0:e.intervalEnd}},getValueRangeInitialValue:function(){},_getRangeData:function(){return dh.getRangeData(this)},_getPointDataSelector:function(){var r,v,n=this.getValueFields()[0],t=this.getArgumentField(),e=this.getTagField(),i=this.areErrorBarsVisible();if(i){var D=this._options.valueErrorBar;r=D.lowValueField||Dv,v=D.highValueField||m0}return A=>{var z={value:this._processEmptyValue(A[n]),argument:A[t],tag:A[e],data:A};return i&&(z.lowError=A[r],z.highError=A[v]),z}},_errorBarsEnabled:function(){return"discrete"!==this.valueAxisType&&"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType},_drawPoint:function(n){var t=n.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,n.groups,n.hasAnimation,n.firstDrawing),this._drawnPoints.push(t)):t.setInvisibility()},_animateComplete:function(){var n={duration:this._defaultDuration};this._labelsGroup&&this._labelsGroup.animate({opacity:1},n),this._errorBarGroup&&this._errorBarGroup.animate({opacity:this._options.valueErrorBar.opacity||1},n)},_animate:function(){var n=this,t=n._drawnPoints.length-1;(0,O.S6)(n._drawnPoints||[],function(e,i){i.animate(e===t?function(){n._animateComplete()}:void 0,{translateX:i.x,translateY:i.y})})},_getIntervalCenter(n,t){var e=this.getArgumentAxis(),i=e.getOptions();return e.aggregatedPointBetweenTicks()?n:"discrete"!==i.type?e.getVisualRangeCenter({minVisible:n,maxVisible:t},!0):n},_defaultAggregator:"avg",_aggregators:{avg(n,t){var{data:e,intervalStart:i,intervalEnd:r}=n;if(e.length){var v=t.getValueFields()[0],D=e.reduce((A,z)=>{var Q=z[v];return(0,w.$K)(Q)?(A[0]+=Q,A[1]++):null===Q&&A[2]++,A},[0,0,0]);return function b2(n,t,e){var i=e.getOptions().valueErrorBar,r=e.getValueFields()[0],v=i.lowValueField||Dv,D=i.highValueField||m0;if(e.areErrorBarsVisible()&&void 0===i.type){var A=t.reduce(function(z,Q){return(0,w.$K)(Q[v])&&(z[0]+=Q[r]-Q[v],z[1]++),(0,w.$K)(Q[D])&&(z[2]+=Q[D]-Q[r],z[3]++),z},[0,0,0,0]);A[1]&&(n[v]=n[r]-A[0]/A[1]),A[2]&&(n[D]=n[r]+A[2]/A[3])}return n}({[v]:D[2]===e.length?null:D[0]/D[1],[t.getArgumentField()]:t._getIntervalCenter(i,r)},e,t)}},sum(n,t){var{intervalStart:e,intervalEnd:i,data:r}=n;if(r.length){var v=t.getValueFields()[0],D=r.reduce((z,Q)=>{var ue=Q[v];return void 0!==ue&&(z[0]+=ue),null===ue?z[1]++:void 0===ue&&z[2]++,z},[0,0,0]),A=D[0];if(D[1]===r.length&&(A=null),D[2]!==r.length)return function w2(n,t,e){var i=e.getOptions().valueErrorBar,r=i.lowValueField||Dv,v=i.highValueField||m0;return e.areErrorBarsVisible()&&void 0===i.type&&(n[r]=0,n[v]=0,n=t.reduce(function(D,A){return D[r]+=A[r],D[v]+=A[v],D},n)),n}({[v]:A,[t.getArgumentField()]:t._getIntervalCenter(e,i)},r,t)}},count(n,t){var{data:e,intervalStart:i,intervalEnd:r}=n,v=t.getValueFields()[0];return{[t.getArgumentField()]:t._getIntervalCenter(i,r),[v]:e.filter(D=>void 0!==D[v]).length}},min:SM((n,t)=>n<t),max:SM((n,t)=>n>t)},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var i,r,n=this._options,t=n.valueErrorBar,e=[n.valueField||"val"];return t&&(r=t.highValueField,(0,w.HD)(i=t.lowValueField)&&e.push(i),(0,w.HD)(r)&&e.push(r)),e},_calculateErrorBars:function(n){if(this.areErrorBarsVisible()){var D,Q,ue,we,Le,e=this._options.valueErrorBar,i=Sn(e.type),r=parseFloat(e.value),v=this.getValueFields()[0],A=e.lowValueField||Dv,z=e.highValueField||m0,Ue=function(ut,It){It.lowError=(D=It.value)-r,It.highError=D+r};switch(i){case Kx:Le=Ue;break;case Zx:Le=function(ut,It){var Gt=(D=It.value)*r/100;It.lowError=D-Gt,It.highError=D+Gt};break;case"undefined":Le=function(ut,It){It.lowError=It.data[A],It.highError=It.data[z]};break;default:switch(ue=(Q=Vn(n,function(ut){return(0,w.$K)(ut.data[v])?ut.data[v]:null})).length,r=r||1,i){case eO:r=rO(Q,Gx(Q)/ue)*r,Le=Ue;break;case Ux:we=Gx(Q)/ue,r=Wx(rO(Q,we))*r,Le=function(ut,It){It.lowError=we-r,It.highError=we+r};break;case tO:r=Wx(rO(Q,Gx(Q)/ue)/ue)*r,Le=Ue}}Le&&(0,O.S6)(n,Le)}},_patchMarginOptions:function(n){var t=this._getCreatingPointOptions(),e=t.styles,i=[e.normal,e.hover,e.selection].reduce(function(r,v){return JS(r,2*v.r+v["stroke-width"])},0);return n.size=t.visible?i:0,n.sizePointNormalState=t.visible?2*e.normal.r+e.normal["stroke-width"]:2,n},usePointsToDefineAutoHiding:()=>!0};fs=(0,y.l)({},OM,{drawTrackers:function(){var t,e,n=this,i=n._segments||[],r=n._options.rotated;n.isVisible()&&(i.length&&(t=n._trackers=n._trackers||[],e=n._trackersGroup=(n._trackersGroup||n._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray",class:"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(n._group),(0,O.S6)(i,function(v,D){t[v]?n._updateTrackerElement(D,t[v]):t[v]=n._drawTrackerElement(D).data({"chart-data-series":n}).append(e)})),n._trackersTranslator=n.groupPointsByCoords(r))},_checkAxisVisibleAreaCoord(n,t){var i=(n?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();return(0,w.$K)(t)&&i[0]<=t&&i[1]>=t},checkSeriesViewportCoord(n,t){return this.getPoints().length&&this.isVisible()},getSeriesPairCoord(n,t){for(var e=null,i=!t&&!this._options.rotated||t&&this._options.rotated,r=i?"vy":"vx",v=i?"vx":"vy",D=this.getVisiblePoints(),A=0;A<D.length;A++){var z=D[A],Q=z[r]===n?z[v]:void 0;if(this._checkAxisVisibleAreaCoord(!t,Q)){e=Q;break}}return e},_getNearestPoints:(n,t)=>[n,t],_getBezierPoints:()=>[],_getNearestPointsByCoord(n,t){var e=this,i=e.getOptions().rotated,v=!t&&!i||t&&i?"vy":"vx",D=e.getPoints(),A=e._getBezierPoints(),z=[];return D.length>1?D.forEach((Q,ue)=>{var we=D[ue+1];we&&(Q[v]<=n&&we[v]>=n||Q[v]>=n&&we[v]<=n)&&z.push(e._getNearestPoints(Q,we,A))}):z.push([D[0],D[0]]),z},getNeighborPoint:function(n,t){var D,e=this._options.rotated?t:n,i=e,r=this._trackersTranslator,v=null,A=this._options.rotated?n:t,z=this._options.rotated?"vx":"vy";if(this.isVisible()&&r){v=r[e];do{v=r[i]||r[e],e--,i++}while((e>=0||i<r.length)&&!v);Array.isArray(v)&&(D=qS(v[0][z]-A),(0,O.S6)(v,function(Q,ue){var we=qS(ue[z]-A);D>=we&&(D=we,v=ue)}))}return v},_applyVisibleArea:function(){var n=this._options.rotated,t=(n?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),e=(n?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();this._visibleArea={minX:t[0],maxX:t[1],minY:e[0],maxY:e[1]}},getPointCenterByArg(n){var t=this.getPointsByArg(n)[0];return t?t.getCenterCoord():void 0}}),_0=(0,y.l)({},OM,{drawTrackers:function(){fs.drawTrackers.call(this);var t,n=this._trackersTranslator;this.isVisible()&&((0,O.S6)(n,function(e,i){if(i)return t=e,!1}),n[t+360]=n[t])},getNeighborPoint:function(n,t){var e=$i(this.getValueAxis().getCenter(),n,t);return fs.getNeighborPoint.call(this,e.phi,e.r)},_applyVisibleArea:function(){var n=this.getValueAxis().getCanvas();this._visibleArea={minX:n.left,maxX:n.width-n.right,minY:n.top,maxY:n.height-n.bottom}},getSeriesPairCoord(n,t){for(var e=null,i=t?"argument":"radius",r=this.getVisiblePoints(),v=0;v<r.length;v++){var D=r[v],A=(0,w.$K)(D[i])&&(0,w.$K)(n[i])&&D[i].valueOf()===n[i].valueOf()?{x:D.x,y:D.y}:void 0;if((0,w.$K)(A)){e=A;break}}return e}});var Op="discrete",{round:DM,sqrt:Tv,pow:ch,min:jx,max:$x,abs:S2}=Math,ss={},v0={};function vf(n,t,e,i){var r=(0,Ee.d9)(n);return r.x=t,r.y=e,r.angle=i,r}function Iv(n,t,e,i,r){var v=n.angle+r,D=Ft(v);return vf(t,e.x+(n.radius+i*r)*D.cos,e.y-(n.radius+i*r)*D.sin,v)}var TM={autoHidePointMarkersEnabled:()=>!0,_applyGroupSettings:function(n,t,e){t=(0,y.l)(t,n),this._applyElementsClipRect(t),e.attr(t)},_setGroupsSettings:function(n){var t=this._styles.normal;this._applyGroupSettings(t.elements,{class:"dxc-elements"},this._elementsGroup),this._bordersGroup&&this._applyGroupSettings(t.border,{class:"dxc-borders"},this._bordersGroup),fs._setGroupsSettings.call(this,n),n&&this._markersGroup&&this._markersGroup.attr({opacity:.001})},_createGroups:function(){this._createGroup("_elementsGroup",this,this._group),this._areBordersVisible()&&this._createGroup("_bordersGroup",this,this._group),fs._createGroups.call(this)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(n){return{line:Vn(n.line||[],function(t){return t.getDefaultCoords()})}},_prepareSegment:function(n){return{line:n}},_parseLineOptions:function(n,t){return{stroke:n.color||t,"stroke-width":n.width,dashStyle:n.dashStyle||"solid"}},_parseStyle:function(n,t){return{elements:this._parseLineOptions(n,t)}},_applyStyle:function(n){this._elementsGroup&&this._elementsGroup.attr(n.elements),(0,O.S6)(this._graphics||[],function(t,e){e.line&&e.line.attr({"stroke-width":n.elements["stroke-width"]}).sharp()})},_drawElement:function(n,t){return{line:this._createMainElement(n.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(t)}},_removeElement:function(n){n.line.remove()},_updateElement:function(n,t,e,i){var r={points:t.line},v=n.line;e?v.animate(r,{},i):v.attr(r)},_animateComplete:function(){fs._animateComplete.call(this),this._markersGroup&&this._markersGroup.animate({opacity:1},{duration:this._defaultDuration})},_animate:function(){var n=this,t=n._graphics.length-1;(0,O.S6)(n._graphics||[],function(e,i){var r;e===t&&(r=function(){n._animateComplete()}),n._updateElement(i,n._segments[e],!0,r)})},_drawPoint:function(n){fs._drawPoint.call(this,{point:n.point,groups:n.groups})},_createMainElement:function(n,t){return this._renderer.path(n,"line").attr(t)},_sortPoints:function(n,t){return n.sort(t?function(e,i){return i.y-e.y}:function(e,i){return e.x-i.x})},_drawSegment:function(n,t,e,i){var v=this._prepareSegment(n,this._options.rotated,i);this._segments.push(v),this._graphics[e]?t||this._updateElement(this._graphics[e],v):this._graphics[e]=this._drawElement(t?this._getDefaultSegment(v):v,this._elementsGroup)},_getTrackerSettings:function(){var n=this._defaultTrackerWidth,t=this._styles.normal.elements["stroke-width"];return{"stroke-width":t>n?t:n,fill:"none"}},_getMainPointsFromSegment:function(n){return n.line},_drawTrackerElement:function(n){return this._createMainElement(this._getMainPointsFromSegment(n),this._getTrackerSettings(n))},_updateTrackerElement:function(n,t){var e=this._getTrackerSettings(n);e.points=this._getMainPointsFromSegment(n),t.attr(e)},checkSeriesViewportCoord(n,t){if(!fs.checkSeriesViewportCoord.call(this))return!1;var e=n.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=n.getTranslator().translate(e.categories?e.categories[0]:e.min),r=n.getTranslator().translate(e.categories?e.categories[e.categories.length-1]:e.max),v=this.getOptions().rotated,D=n.getOptions().inverted;return n.isArgumentAxis&&(!v&&!D||v&&D)||!n.isArgumentAxis&&(v&&!D||!v&&D)?t>=i&&t<=r:t>=r&&t<=i}},y0=ss.line=(0,y.l)({},fs,TM,{getPointCenterByArg(n){var t=this.getArgumentAxis().getTranslator().translate(n);return{x:t,y:t}},getSeriesPairCoord(n,t){for(var e=null,i=this._getNearestPointsByCoord(n,t),r=t&&!this._options.rotated||!t&&this._options.rotated,v=0;v<i.length;v++){var Q,D=i[v],A=(D[1].vy-D[0].vy)/(D[1].vx-D[0].vx),z=D[0].vy-D[0].vx*A;if(this._checkAxisVisibleAreaCoord(!t,Q=D[1].vx-D[0].vx==0?r?D[0].vy:D[0].vx:r?A*n+z:(n-z)/A)){e=Q;break}}return e}});ss.stepline=(0,y.l)({},y0,{_calculateStepLinePoints(n){var t=[],e=this._options.rotated?"x":"y";return(0,O.S6)(n,function(i,r){var v;if(i){var D=t[t.length-1][e];D!==r[e]&&((v=(0,Ee.d9)(r))[e]=D,t.push(v)),t.push(r)}else t.push(r)}),t},_prepareSegment:function(n){return y0._prepareSegment(this._calculateStepLinePoints(n))},getSeriesPairCoord(n,t){for(var e,i=this._options.rotated,r=!t&&!i||t&&i,v=r?"vy":"vx",D=r?"vx":"vy",A=this._getNearestPointsByCoord(n,t),z=0;z<A.length;z++){var ue,Q=A[z];if(this._checkAxisVisibleAreaCoord(!t,ue=t?n!==Q[1][v]?Q[0][D]:Q[1][D]:n===Q[0][v]?Q[0][D]:Q[1][D])){e=ue;break}}return e}}),ss.spline=(0,y.l)({},y0,{_calculateBezierPoints:function(n,t){var e=[],i=n,r=function(v,D,A){return v>D&&A>v||v<D&&A<v?v:A};return 1!==i.length?i.forEach(function(v,D){var A,z,Q,ue,Ue,ut,It,Gt,ln,En,on,un,we=i[D-1],Le=i[D+1];if(D&&D!==i.length-1){var Mn=v.x,Kn=v.y;if(Ue=we.x,ut=Le.x,It=we.y,Gt=Le.y,!t&&(Kn<=we.y&&Kn<=Le.y||Kn>=we.y&&Kn>=Le.y)||t&&(Mn<=we.x&&Mn<=Le.x||Mn>=we.x&&Mn>=Le.x))t?(Q=A=Mn,ue=(Kn+Le.y)/2,z=(Kn+we.y)/2):(ue=z=Kn,Q=(Mn+Le.x)/2,A=(Mn+we.x)/2);else{if(ln=Gt-It,En=Ue-ut,on=It*ut-Ue*Gt,t){if(!ln)return void e.push(v,v,v);Ue-=un=-1*(En*Kn+on)/ln-Mn,ut-=un}else{if(!En)return void e.push(v,v,v);It-=un=-1*(ln*Mn+on)/En-Kn,Gt-=un}Q=(Mn+.5*ut)/1.5,ue=(Kn+.5*Gt)/1.5,A=(Mn+.5*Ue)/1.5,z=(Kn+.5*It)/1.5}t?(A=r(we.x,Mn,A),Q=r(Le.x,Mn,Q)):(z=r(we.y,Kn,z),ue=r(Le.y,Kn,ue));var si=vf(v,A,z),pi=vf(v,Q,ue);e.push(si,v,pi)}else e.push(v,v)}):e.push(i[0]),e},_prepareSegment:function(n,t){return y0._prepareSegment(this._calculateBezierPoints(n,t))},_createMainElement:function(n,t){return this._renderer.path(n,"bezier").attr(t)},getSeriesPairCoord(n,t){for(var e=null,i=!t&&!this._options.rotated||t&&this._options.rotated,r=i?"vy":"vx",v=i?"y":"x",D=i?"vx":"vy",A=i?"x":"y",Q=(t?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),ue=this._getNearestPointsByCoord(n,t),we=function(ut){var It=ue[ut];if(1===It.length)Q[0]<=It[0][D]&&Q[1]>=It[0][D]&&(e=It[0][D]);else{var Gt=function O2(n,t,e,i,r){return(0,ae.LO)(r-3*i+3*e-t,3*i-6*e+3*t,3*e-3*t,t-n)}(n,It[0][r],It[1][v],It[2][v],It[3][r]);Gt.forEach(ln=>{if(ln>=0&&ln<=1){var En=Math.pow(1-ln,3)*It[0][D]+3*Math.pow(1-ln,2)*ln*It[1][A]+3*(1-ln)*ln*ln*It[2][A]+ln*ln*ln*It[3][D];Q[0]<=En&&Q[1]>=En&&(e=En)}})}if(null!==e)return"break"},Le=0;Le<ue.length&&"break"!==we(Le);Le++);return e},_getNearestPoints(n,t,e){var i=e.indexOf(n);return[n,e[i+1],e[i+2],t]},_getBezierPoints(){return this._segments.length>0?this._segments.reduce((n,t)=>n.concat(t.line),[]):[]}}),v0.line=(0,y.l)({},_0,TM,{_sortPoints:function(n){return n},_prepareSegment:function(n,t,e){var v,i=[],r=this.getValueAxis().getCenter();if(e&&this._closeSegment(n),this.argumentAxisType===Op||this.valueAxisType===Op)return y0._prepareSegment.call(this,n);for(v=1;v<n.length;v++)i=i.concat(this._getTangentPoints(n[v],n[v-1],r,v===n.length-1));return i.length||(i=n),{line:i}},_getRemainingAngle:function(n){var t=dt(n);return n>=0?360-t:-t},_closeSegment(n){var t;t=this._segments.length?this._segments[0].line[0]:vf(n[0],n[0].x,n[0].y,n[0].angle),(t=this._modifyReflectedPoint(t,n[n.length-1]))&&n.push(t)},_modifyReflectedPoint(n,t){if(t.angle!==n.angle)return n.angle=dt(DM(t.angle))===dt(DM(n.angle))?t.angle:t.angle+this._getRemainingAngle(t.angle-n.angle),n},_getTangentPoints:function(n,t,e,i){var A,r=[],v=Math.round(t.angle-n.angle),D=(t.radius-n.radius)/v;if(0===v)r=[t,n];else if(v>0)for(A=i?v:v-1;A>=0;A--)r.push(Iv(n,t,e,D,A));else{var Q=i?v:v+1;for(A=0;A>=Q;A--)r.push(Iv(n,t,e,D,v-A))}return r},getSeriesPairCoord(n,t){var A,e=this.getArgumentAxis(),i=t?"angle":"radius",r=n[i],v=e.getCenter(),D=(oi,Fi,Zi)=>{var gr,Ur,{x:nr,y:hr}=Zi;return Tv(ch((gr={x:nr,y:hr}).x-(Ur=v).x,2)+ch(gr.y-Ur.y,2))<=e.getRadius()&&jx(oi.x,Fi.x)<=nr&&$x(oi.x,Fi.x)>=nr&&jx(oi.y,Fi.y)<=hr&&$x(oi.y,Fi.y)>=hr},z=this.getNeighborPoints(r,i);if(1===z.length)A=z[0];else if(z.length>1){var we,Le,Q=z[0],ue=z[1];if(this.argumentAxisType!==Op&&this.valueAxisType!==Op)t?(we=(Q.radius-ue.radius)/(Q.angle-ue.angle),Le=r-ue.angle):Le=(r-ue.radius)/(we=(Q.radius-ue.radius)/(Q.angle-ue.angle)),A=Iv(ue,Q,v,we,Le);else if(t){var Ue=Ft(-r),ut=(ue.y-Q.y)/(ue.x-Q.x),It=Q.y-Q.x*ut,Gt=Ue.sin/Ue.cos,En=(v.y-Gt*v.x-It)/(ut-Gt),on=ut*En+It;if(D(Q,ue,{x:En,y:on})){var Nt=S2((0,ae.RF)((360+r)/90)%4);(0===Nt&&En>=v.x&&on<=v.y||1===Nt&&En<=v.x&&on<=v.y||2===Nt&&En<=v.x&&on>=v.y||3===Nt&&En>=v.x&&on>=v.y)&&(A={x:En,y:on})}}else{var Jt=(ue.y-Q.y)/(ue.x-Q.x),un=Q.y-Q.x*Jt,Mn=1+Jt*Jt,Kn=-2*v.x+2*Jt*un-2*Jt*v.y,si=Kn*Kn-4*Mn*(-ch(r,2)+ch(un-v.y,2)+ch(v.x,2));if(si>=0){var pi=(-Kn-Tv(si))/(2*Mn),yi=(-Kn+Tv(si))/(2*Mn),Ui=Jt*pi+un,Bi=Jt*yi+un;A=D(Q,ue,{x:pi,y:Ui})?{x:pi,y:Ui}:D(Q,ue,{x:yi,y:Bi})?{x:yi,y:Bi}:void 0}}}return A},getNeighborPoints(n,t){var e=this.getPoints(),i=[];if(this.getOptions().closed){var r=(e=(0,y.l)(!0,[],e))[e.length-1],v=vf(e[0],e[0].x,e[0].y,e[0].angle),D=vf(r,r.x,r.y,r.angle),A=this._modifyReflectedPoint(v,r),z=this._modifyReflectedPoint(D,e[0]);z&&e.unshift(z),A&&e.push(A)}for(var Q=1;Q<e.length&&(e[Q-1][t]===n?i.push(e[Q-1]):e[Q][t]===n?i.push(e[Q]):(e[Q][t]>n&&e[Q-1][t]<n||e[Q-1][t]>n&&e[Q][t]<n)&&(i.push(e[Q-1]),i.push(e[Q])),!(i.length>0));Q++);return i}});var Mv=ss.line,C0=v0.line,Av=y.l,D2=ss.spline._calculateBezierPoints,fu={},IM={},oO={_createBorderElement:Mv._createMainElement,_createLegendState:function(n,t){return{fill:n.color||t,opacity:n.opacity,hatching:n.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&!1!==this.showZero?0:fs.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(n){var t=Mv._getDefaultSegment(n);return t.area=t.line.concat(t.line.slice().reverse()),t},_updateElement:function(n,t,e,i){var r={points:t.line},v={points:t.area},D=n.line;e?(D&&D.animate(r),n.area.animate(v,{},i)):(D&&D.attr(r),n.area.attr(v))},_removeElement:function(n){n.line&&n.line.remove(),n.area.remove()},_drawElement:function(n){return{line:this._bordersGroup&&this._createBorderElement(n.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(n.area).append(this._elementsGroup)}},_applyStyle:function(n){this._elementsGroup&&this._elementsGroup.smartAttr(n.elements),this._bordersGroup&&this._bordersGroup.attr(n.border),(this._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":n.border["stroke-width"]}).sharp()})},_parseStyle:function(n,t,e){var i=n.border||{},r=Mv._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:n.color||t,hatching:n.hatching,opacity:n.opacity}}},_areBordersVisible:function(){var n=this._options;return n.border.visible||n.hoverStyle.border.visible||n.selectionStyle.border.visible},_createMainElement:function(n,t){return this._renderer.path(n,"area").attr(t)},_getTrackerSettings:function(n){return{"stroke-width":n.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(n){return n.area}},hh=fu.area=Av({},Mv,oO,{_prepareSegment(n,t){var e=this._processSinglePointsAreaSegment(n,t),i=function MM(n){return Vn(n,function(t){return t.getCoords()}).concat(Vn(n.slice().reverse(),function(t){return t.getCoords(!0)}))}(e),r=this.getArgumentAxis();if(r.getAxisPosition){var v=r.getAxisPosition(),D=r.getOptions(),A=(t?1:-1)*Math.round(D.width/2);D.visible&&i.forEach((z,Q)=>{if(z){var ue=1===n.length?0:Q<n.length?Q:i.length-1-Q;t&&z.x===n[ue].defaultX&&z.x===v-r.getAxisShift()&&(z.x+=A),!t&&z.y===n[ue].defaultY&&z.y===v-r.getAxisShift()&&(z.y+=A)}})}return{line:e,area:i,singlePointSegment:e!==n}},_processSinglePointsAreaSegment:function(n,t){if(n&&1===n.length){var e=n[0],i=(0,Ee.d9)(e);return i[t?"y":"x"]+=1,i.argument=null,[e,i]}return n}});IM.area=Av({},C0,oO,{_prepareSegment:function(n,t,e){return e&&C0._closeSegment.call(this,n),hh._prepareSegment.call(this,n)},_processSinglePointsAreaSegment:function(n){return v0.line._prepareSegment.call(this,n).line}}),fu.steparea=Av({},hh,{_prepareSegment:function(n,t){var e=ss.stepline;return n=hh._processSinglePointsAreaSegment(n,t),hh._prepareSegment.call(this,e._calculateStepLinePoints.call(this,n),t)},getSeriesPairCoord:ss.stepline.getSeriesPairCoord}),fu.splinearea=Av({},hh,{_areaPointsToSplineAreaPoints:function(n){var t=n[n.length/2-1],e=n[n.length/2];n.splice(n.length/2,0,{x:t.x,y:t.y},{x:e.x,y:e.y})},_prepareSegment:function(n,t){var e=hh._processSinglePointsAreaSegment(n,t),i=hh._prepareSegment.call(this,D2(e,t));return this._areaPointsToSplineAreaPoints(i.area),i.singlePointSegment=e!==n,i},_getDefaultSegment:function(n){var t=hh._getDefaultSegment(n);return this._areaPointsToSplineAreaPoints(t.area),t},_createMainElement:function(n,t){return this._renderer.path(n,"bezierarea").attr(t)},_createBorderElement:ss.spline._createMainElement,getSeriesPairCoord:ss.spline.getSeriesPairCoord,_getNearestPoints:ss.spline._getNearestPoints,_getBezierPoints:ss.spline._getBezierPoints,obtainCubicBezierTCoef:ss.spline.obtainCubicBezierTCoef});var AM=fu.area,ph=fs,aO=_0,Pv=y.l,T2=O.S6,qs={},kv={},x0={_createLegendState:function(n,t){return{fill:n.color||t,hatching:n.hatching}},_parsePointStyle:function(n,t,e){var i=n.color||t,r=ph._parsePointStyle.call(this,n,i,e);return r.fill=i,r.hatching=n.hatching,r.dashStyle=n.border&&n.border.dashStyle||"solid",delete r.r,r},_applyMarkerClipRect:function(n){n["clip-path"]=null},_setGroupsSettings:function(n,t){var e=this,i={};ph._setGroupsSettings.apply(e,arguments),n&&t?i=this._getAffineCoordOptions():n||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),e._markersGroup.attr(i)},_drawPoint:function(n){n.hasAnimation=n.hasAnimation&&!n.firstDrawing,n.firstDrawing=!1,ph._drawPoint.call(this,n)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(n){var t=n.color||this._getMainColor();return{normal:this._parsePointStyle(n,t,t),hover:this._parsePointStyle(n.hoverStyle||{},t,t),selection:this._parsePointStyle(n.selectionStyle||{},t,t)}},_updatePointsVisibility:function(){var n=this._options.visible;(0,O.S6)(this._points,function(t,e){e._options.visible=n})},_getOptionsForPoint:function(){return this._options},_animate:function(n){var t=this;t._animatePoints(n,function(){t._animateComplete()},function(e,i){var r=e.length-1;T2(e||[],function(v,D){D.animate(v===r?i:void 0,D.getMarkerCoords())})})},getValueRangeInitialValue:AM.getValueRangeInitialValue,_patchMarginOptions:function(n){var t;return n.checkInterval=!this.useAggregation()||(null===(t=this.getArgumentAxis())||void 0===t?void 0:t.aggregatedPointBetweenTicks()),n},_defaultAggregator:"sum",_defineDrawingState(){},usePointsToDefineAutoHiding:()=>!1};qs.bar=Pv({},ph,x0,{_getAffineCoordOptions:function(){var n=this._options.rotated,e={scaleX:n?.001:1,scaleY:n?1:.001};return e["translate"+(n?"X":"Y")]=this.getValueAxis().getTranslator().translate("canvas_position_default"),e},_animatePoints:function(n,t,e){this._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),n||e(this._drawnPoints,t)},checkSeriesViewportCoord(n,t){if(!ph.checkSeriesViewportCoord.call(this))return!1;if(n.isArgumentAxis)return!0;var e=n.getTranslator(),i=this.getViewport(),r=e.translate(i.categories?i.categories[0]:i.min),v=e.translate(i.categories?i.categories[i.categories.length-1]:i.max),D=this.getOptions().rotated,A=n.getOptions().inverted;return D&&!A||!D&&A?t>=r&&t<=v:t>=v&&t<=r},getSeriesPairCoord(n,t){for(var e=null,{rotated:i}=this._options,r=!t&&!i||t&&i,v=r?"vy":"vx",D=r?"vx":"vy",A=this.getPoints(),z=0;z<A.length;z++){var ue,Q=A[z];if(ue=t?Q.getCenterCoord()[v[1]]===n?Q[D]:void 0:Q[v]===n?Q[D]:void 0,this._checkAxisVisibleAreaCoord(!t,ue)){e=ue;break}}return e}}),kv.bar=Pv({},aO,x0,{_animatePoints:function(n,t,e){e(this._drawnPoints,t)},_setGroupsSettings:ph._setGroupsSettings,_drawPoint:function(n,t,e){ph._drawPoint.call(this,n,t,e)},_parsePointStyle:function(n){var t=x0._parsePointStyle.apply(this,arguments);return t.opacity=n.opacity,t},_createGroups:ph._createGroups,_setMarkerGroupSettings:function(){var n=this._createPointStyles(this._getMarkerGroupOptions()).normal;n.class="dxc-markers",this._applyMarkerClipRect(n);var t=Pv({},n);delete t.opacity,this._markersGroup.attr(t)},getSeriesPairCoord(n,t){for(var e=null,i=t?"argument":"radius",r=this.getVisiblePoints(),v=this.getArgumentAxis(),D=v.getAngles()[0],A=0;A<r.length;A++){var z=r[A],Q=(0,w.$K)(z[i])&&(0,w.$K)(n[i])&&z[i].valueOf()===n[i].valueOf()?Hi(v.getCenter(),D,-v.getTranslatedAngle(z.angle),z.radius):void 0;if((0,w.$K)(Q)){e=Q;break}}return e},_createLegendState:AM._createLegendState});var sO=y.l,rl=fu.area,Yx={},Rv={areErrorBarsVisible:E.ZT,_createErrorBarGroup:E.ZT,_checkData:function(n,t){var e=this.getValueFields();return fs._checkData.call(this,n,t,{minValue:e[0],value:e[1]})&&n.minValue==n.minValue},getValueRangeInitialValue:fs.getValueRangeInitialValue,_getPointDataSelector:function(n){var t=this.getValueFields(),e=t[0],i=t[1],r=this.getTagField(),v=this.getArgumentField();return D=>({tag:D[r],minValue:this._processEmptyValue(D[e]),value:this._processEmptyValue(D[i]),argument:D[v],data:D})},_defaultAggregator:"range",_aggregators:{range(n,t){var{intervalStart:e,intervalEnd:i,data:r}=n;if(r.length){var v=t.getValueFields(),D=v[0],A=v[1],z=r.reduce((Q,ue)=>{var we=ue[D],Le=ue[A];return!(0,w.$K)(we)||!(0,w.$K)(Le)||(Q[D]=Math.min(Q[D],Math.min(we,Le)),Q[A]=Math.max(Q[A],Math.max(we,Le))),Q},{[D]:1/0,[A]:-1/0,[t.getArgumentField()]:t._getIntervalCenter(e,i)});if(!isFinite(z[D])||!isFinite(z[A])){if(r.filter(Q=>null===Q[D]&&null===Q[A]).length!==r.length)return;z[D]=z[A]=null}return z}}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]},getSeriesPairCoord(n,t){for(var e=null,{rotated:i}=this._options,r=!t&&!i||t&&i,v=r?"vy":"vx",D=i?"minX":"minY",A=r?"vx":"vy",z=this.getPoints(),Q=0;Q<z.length;Q++){var ue=z[Q],we=void 0;if(t)we=ue.getCenterCoord()[v[1]]===n?ue[A]:void 0;else{var Le=[Math.min(ue[v],ue[D]),Math.max(ue[v],ue[D])];we=n>=Le[0]&&n<=Le[1]?ue[A]:void 0}if(this._checkAxisVisibleAreaCoord(!t,we)){e=we;break}}return e}};Yx.rangebar=sO({},qs.bar,Rv),Yx.rangearea=sO({},rl,{_drawPoint:function(n){var t=n.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,n.groups),this._drawnPoints.push(t),t.visibleTopMarker||t.hideMarker("top"),t.visibleBottomMarker||t.hideMarker("bottom")):t.setInvisibility()},_prepareSegment:function(n,t){var e=this._processSinglePointsAreaSegment(n,t),i=Vn(e,function(r){return r.getCoords(!0)});return{line:e,bottomLine:i,area:Vn(e,function(r){return r.getCoords()}).concat(i.slice().reverse()),singlePointSegment:e!==n}},_getDefaultSegment:function(n){var t=rl._getDefaultSegment.call(this,n);return t.bottomLine=t.line,t},_removeElement:function(n){rl._removeElement.call(this,n),n.bottomLine&&n.bottomLine.remove()},_drawElement:function(n,t){var e=rl._drawElement.call(this,n,t);return e.bottomLine=this._bordersGroup&&this._createBorderElement(n.bottomLine,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),e},_applyStyle:function(n){var t=this._elementsGroup,e=this._bordersGroup;t&&t.smartAttr(n.elements),e&&e.attr(n.border),(this._graphics||[]).forEach(function(i){i.line&&i.line.attr({"stroke-width":n.border["stroke-width"]}),i.bottomLine&&i.bottomLine.attr({"stroke-width":n.border["stroke-width"]})})},_updateElement:function(n,t,e,i){var r={points:t.bottomLine},v=n.bottomLine;rl._updateElement.apply(this,arguments),v&&(e?v.animate(r):v.attr(r))}},Rv);var yf=qs.bar,Xx=kv.bar,RM=O.S6,Lv=E.ZT,qx={};qx.bubble=(0,y.l)({},fs,{_calculateErrorBars:Lv,_getMainColor:yf._getMainColor,_createPointStyles:yf._createPointStyles,_updatePointsVisibility:yf._updatePointsVisibility,_getOptionsForPoint:yf._getOptionsForPoint,_applyMarkerClipRect:ss.line._applyElementsClipRect,_parsePointStyle:Xx._parsePointStyle,_createLegendState:fu.area._createLegendState,_setMarkerGroupSettings:Xx._setMarkerGroupSettings,areErrorBarsVisible:Lv,_createErrorBarGroup:Lv,_checkData:function(n,t){return fs._checkData.call(this,n,t,{value:this.getValueFields()[0],size:this.getSizeField()})},_getPointDataSelector:function(n,t){var e=this.getSizeField(),i=fs._getPointDataSelector.call(this);return r=>{var v=i(r);return v.size=r[e],v}},_aggregators:{avg(n,t){var{data:e,intervalStart:i,intervalEnd:r}=n;if(e.length){var v=t.getValueFields()[0],D=t.getSizeField(),A=e.reduce((z,Q)=>(z[0]+=Q[v],z[1]+=Q[D],z[2]++,z),[0,0,0]);return{[v]:A[0]/A[2],[D]:A[1]/A[2],[t.getArgumentField()]:t._getIntervalCenter(i,r)}}}},getValueFields:function(){return[this._options.valueField||"val"]},getSizeField:function(){return this._options.sizeField||"size"},_animate:function(){var n=this,t=n._drawnPoints.length-1,e=n._labelsGroup,i=function(){e&&e.animate({opacity:1},{duration:n._defaultDuration})};RM(n._drawnPoints||[],function(r,v){v.animate(r===t?i:void 0,{r:v.bubbleSize,translateX:v.x,translateY:v.y})})},_patchMarginOptions:function(n){return n.processBubbleSize=!0,n}});var Jx=fs,Qx=qs.bar,b0=O.S6,mu=E.ZT,eb=Vn,tb=isFinite,cc=Math.max,nb=(0,y.l)({},Qx,{_setGroupsSettings:function(){Jx._setGroupsSettings.apply(this,arguments),this._labelsGroup.attr({"pointer-events":null})},_createErrorBarGroup:mu,_drawPoint:function(n){var t=n.point,e=this._legendCallback;Jx._drawPoint.call(this,n),!t.isVisible()&&t.setInvisibility(),t.isSelected()&&e()},_getOldPoint:function(n,t,e){var i=(this._points||[])[e];return i&&(t[i.argument.valueOf()]=t[i.argument.valueOf()].filter(r=>r!==i)),i},adjustLabels:function(n){return(this._points||[]).reduce((t,e)=>{if(e._label.isVisible())return e.setLabelTrackerData(),t=e.applyWordWrap(n)||t,e.updateLabelCoord(n),t},!1)},_applyElementsClipRect:mu,getColor:mu,areErrorBarsVisible:mu,drawLabelsWOPoints:function(){return"inside"!==this._options.label.position&&(this._labelsGroup.append(this._extGroups.labelsGroup),(this._points||[]).forEach(function(n){n.drawLabel()}),!0)},getPointsCount:function(){return this._data.filter(n=>this._checkData(n)).length},setMaxPointsCount:function(n){this._pointsCount=n},_getCreatingPointOptions:function(n,t){return this._getPointOptions(n,t)},_updateOptions:function(n){this.labelSpace=0,this.innerRadius="pie"===this.type?0:n.innerRadius},_checkData:function(n,t){var e=Qx._checkData.call(this,n,t,{value:this.getValueFields()[0]});return this._options.paintNullPoints?e:e&&null!==n.value},_createGroups:Jx._createGroups,_setMarkerGroupSettings:function(){this._markersGroup.attr({class:"dxc-markers"})},_getMainColor(n,t){var e=this.getPointsByArg(n.argument),i=t?e.indexOf(t):e.length;return this._options.mainSeriesColor(n.argument,i,this._pointsCount)},_getPointOptions:function(n){return this._parsePointOptions(this._preparePointOptions(),this._options.label,n)},_getRangeData:function(){return this._rangeData},_createPointStyles:function(n,t,e){var i=n.color||this._getMainColor(t,e);return{normal:this._parsePointStyle(n,i,i),hover:this._parsePointStyle(n.hoverStyle,i,i),selection:this._parsePointStyle(n.selectionStyle,i,i),legendStyles:{normal:this._createLegendState(n,i),hover:this._createLegendState(n.hoverStyle,i),selection:this._createLegendState(n.selectionStyle,i)}}},_getArrangeMinShownValue:function(n,t){var e=this._options.minSegmentSize,i=0,r=0;return t=t||n.length,b0(n,function(v,D){D.isVisible()&&(D.normalInitialValue<e*t/360?i+=e:r+=D.normalInitialValue)}),i<360?e*r/(360-i):0},_applyArrangeCorrection:function(n,t,e){var i=this._options,r="anticlockwise"!==i.segmentsDirection,v=tb(i.startAngle)?dt(i.startAngle):0,D=i.minSegmentSize,z=0,Q=0;0===e&&(e=n.filter(function(ue){return ue.isVisible()}).length,Q=1),b0(r?n:n.concat([]).reverse(),function(ue,we){var Ue,Le=we.isVisible()?Q||we.normalInitialValue:0;D&&we.isVisible()&&Le<t&&(Ue=t),we.correctValue(z,Le/e,Q+(Ue||0)),we.shiftedAngle=v,z+=Ue||Le}),this._rangeData={val:{min:0,max:z}}},_removePoint:function(n){var t=this.getPointsByArg(n.argument);t.splice(t.indexOf(n),1),n.dispose()},arrangePoints:function(){for(var i,n=this,t=n._points||[],e=n._options.minSegmentSize,r=!0,v=0,D=t.length;v<D&&r;)r=t[v].value<=0,v++;var A=n._points=eb(t,function(ue){return null===ue.value||!r&&ue.value<0?(n._removePoint(ue),null):ue}),z=A.reduce(function(ue,we){return cc(ue,Math.abs(we.initialValue))},0);A.forEach(function(ue){ue.normalInitialValue=ue.initialValue/(0!==z?z:1)});var Q=A.reduce(function(ue,we){return ue+(we.isVisible()?we.normalInitialValue:0)},0);e&&(i=this._getArrangeMinShownValue(A,Q)),n._applyArrangeCorrection(A,i,Q)},correctPosition:function(n,t){b0(this._points,function(e,i){i.correctPosition(n)}),this.setVisibleArea(t)},correctRadius:function(n){this._points.forEach(function(t){t.correctRadius(n)})},correctLabelRadius:function(n){this._points.forEach(function(t){t.correctLabelRadius(n)})},setVisibleArea:function(n){this._visibleArea={minX:n.left,maxX:n.width-n.right,minY:n.top,maxY:n.height-n.bottom}},_applyVisibleArea:mu,_animate:function(n){var t=this,e=t._points,i=e&&e.length,r=function(){t._animateComplete()};e.forEach(n?function(D,A){D.animate(A===i-1?r:void 0,.7,(1-.7)*A/(i-1))}:function(D,A){D.animate(A===i-1?r:void 0)})},getVisiblePoints:function(){return eb(this._points,function(n){return n.isVisible()?n:null})},getPointsByKeys:function(n,t){var e=this.getPointsByArg(n);return e[t]&&[e[t]]||[]}}),BM=nb,FM=nb,dO=qs.bar,cO=(0,y.l)({},fs,{_animate:E.ZT,_applyMarkerClipRect:function(n){n["clip-path"]=this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},_updatePointsVisibility:dO._updatePointsVisibility,_getOptionsForPoint:dO._getOptionsForPoint,_createErrorBarGroup:E.ZT,areErrorBarsVisible:E.ZT,_createGroups:fs._createGroups,_setMarkerGroupSettings:function(){var n=this._markersGroup,t=this._createPointStyles(this._getMarkerGroupOptions()),e=(0,y.l)(t.normal,{class:"default-markers"}),i=(0,y.l)(t.positive.normal,{class:"default-positive-markers"}),r=(0,y.l)(t.reduction.normal,{class:"reduction-markers"}),v=(0,y.l)(t.reductionPositive.normal,{class:"reduction-positive-markers"}),D={class:"dxc-markers"};this._applyMarkerClipRect(D),n.attr(D),this._createGroup("defaultMarkersGroup",n,n,e),this._createGroup("reductionMarkersGroup",n,n,r),this._createGroup("defaultPositiveMarkersGroup",n,n,i),this._createGroup("reductionPositiveMarkersGroup",n,n,v)},_setGroupsSettings:function(){fs._setGroupsSettings.call(this,!1)},_getCreatingPointOptions:function(){var n,t=this._predefinedPointOptions;return t||(n=this._getPointOptions(),this._predefinedPointOptions=t=(0,y.l)(!0,{styles:{}},n),t.styles.normal=t.styles.positive.normal=t.styles.reduction.normal=t.styles.reductionPositive.normal={"stroke-width":n.styles&&n.styles.normal&&n.styles.normal["stroke-width"]}),t},_checkData:function(n,t){var e=this.getValueFields();return fs._checkData.call(this,n,t,{openValue:e[0],highValue:e[1],lowValue:e[2],closeValue:e[3]})&&n.highValue==n.highValue&&n.lowValue==n.lowValue},_getPointDataSelector:function(n,t){var i,ue,e=this,r=e.getValueFields(),v=e.getArgumentField(),D=r[0],A=r[1],z=r[2],Q=r[3];switch(e.level=e._options.reduction.level,Sn(e.level)){case"open":i=D;break;case"high":i=A;break;case"low":i=z;break;default:i=Q,e.level="close"}return we=>{var Le=we[i],Ue=!1;return(0,w.$K)(Le)&&((0,w.$K)(ue)&&(Ue=Le<ue),ue=Le),{argument:we[v],highValue:this._processEmptyValue(we[A]),lowValue:this._processEmptyValue(we[z]),closeValue:this._processEmptyValue(we[Q]),openValue:this._processEmptyValue(we[D]),reductionValue:Le,tag:we[e.getTagField()],isReduction:Ue,data:we}}},_parsePointStyle:function(n,t,e){return{stroke:n.color||t,"stroke-width":n.width,fill:n.color||e}},_getDefaultStyle:function(n){var t=n.color||this._options.mainSeriesColor;return{normal:this._parsePointStyle(n,t,t),hover:this._parsePointStyle(n.hoverStyle,t,t),selection:this._parsePointStyle(n.selectionStyle,t,t)}},_getReductionStyle:function(n){var t=n.reduction.color;return{normal:this._parsePointStyle({color:t,width:n.width,hatching:n.hatching},t,t),hover:this._parsePointStyle(n.hoverStyle,t,t),selection:this._parsePointStyle(n.selectionStyle,t,t)}},_createPointStyles:function(n){var t=this._options.innerColor,e=this._getDefaultStyle(n),i=(0,y.l)(!0,{},e),r=this._getReductionStyle(n),v=(0,y.l)(!0,{},r);return i.normal.fill=i.hover.fill=i.selection.fill=t,v.normal.fill=v.hover.fill=v.selection.fill=t,e.positive=i,e.reduction=r,e.reductionPositive=v,e},_endUpdateData:function(){delete this._predefinedPointOptions},_defaultAggregator:"ohlc",_aggregators:{ohlc:(n,t)=>{var{intervalStart:e,intervalEnd:i,data:r}=n;if(r.length){var v={},D=t.getValueFields(),A=D[1],z=D[2];return v[A]=-1/0,v[z]=1/0,(v=r.reduce(function(Q,ue){return null!==ue[A]&&(Q[A]=Math.max(Q[A],ue[A])),null!==ue[z]&&(Q[z]=Math.min(Q[z],ue[z])),Q},v))[D[0]]=r[0][D[0]],v[D[3]]=r[r.length-1][D[3]],isFinite(v[A])||(v[A]=null),isFinite(v[z])||(v[z]=null),v[t.getArgumentField()]=t._getIntervalCenter(e,i),v}}},getValueFields:function(){var n=this._options;return[n.openValueField||"open",n.highValueField||"high",n.lowValueField||"low",n.closeValueField||"close"]},getArgumentField:function(){return this._options.argumentField||"date"},_patchMarginOptions:function(n){var e=this._getCreatingPointOptions().styles,i=[e.normal,e.hover,e.selection].reduce(function(r,v){return Math.max(r,v["stroke-width"])},0);return n.size=10+i,n.sizePointNormalState=10,n},getSeriesPairCoord(n,t){for(var e=null,i=this.getVisiblePoints(),r=0;r<i.length;r++){var v=i[r],D=void 0;if(t)D=v.vx===n?(v.openY+v.closeY)/2:void 0;else{var A=[Math.min(v.lowY,v.highY),Math.max(v.lowY,v.highY)];D=n>=A[0]&&n<=A[1]?v.vx:void 0}if(this._checkAxisVisibleAreaCoord(!t,D)){e=D;break}}return e},usePointsToDefineAutoHiding:()=>!1}),hO=(0,y.l)({},cO,{_parsePointStyle:function(n,t,e){var i=n.color||e,r=cO._parsePointStyle.call(this,n,t,i);return r.fill=i,r.hatching=n.hatching,r}}),rb=fu.area,ob=qs.bar,Ku={_calculateErrorBars:E.ZT,_updateOptions:function(n){this._stackName="axis_"+(n.axis||"default")}},Fs={},Bv={};Fs.stackedline=(0,y.l)({},ss.line,Ku,{}),Fs.stackedspline=(0,y.l)({},ss.spline,Ku,{}),Fs.fullstackedline=(0,y.l)({},ss.line,Ku,{getValueRangeInitialValue:fu.area.getValueRangeInitialValue}),Fs.fullstackedspline=(0,y.l)({},ss.spline,Ku,{getValueRangeInitialValue:fu.area.getValueRangeInitialValue});var pO=Fs.stackedbar=(0,y.l)({},ob,Ku,{_updateOptions:function(n){Ku._updateOptions.call(this,n),this._stackName=this._stackName+"_stack_"+(n.stack||"default")}});function ab(n,t,e,i){return(n=(0,Ee.d9)(n)).value=t,n.minValue=e,n.translate(),n.argument=n.argument+i,n}function sb(n){for(var e,r,t=0,i=[],v=n.length;t<v;)r=[e=n[t]],e.leftHole&&(r=[ab(e,e.leftHole,e.minLeftHole,"left"),e]),e.rightHole&&r.push(ab(e,e.rightHole,e.minRightHole,"right")),i.push(r),t++;return[].concat.apply([],i)}Fs.fullstackedbar=(0,y.l)({},ob,Ku,{_updateOptions:pO._updateOptions}),Fs.stackedarea=(0,y.l)({},rb,Ku,{_prepareSegment:function(n,t){return rb._prepareSegment.call(this,sb(n),t)},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup).toBackground()}}),Fs.stackedsplinearea=(0,y.l)({},fu.splinearea,Ku,{_prepareSegment:function(n,t){var i,e=this;if(n=sb(n),this._prevSeries&&1!==n.length){for(var r=ss.spline._calculateBezierPoints(n,t),v=Vn(n,function(ue){var we=ue.getCoords(!0);return we.argument=ue.argument,we}),D=[],A={},z=0,Q=e._prevSeries._segments.length;z<Q;)D=D.concat(e._prevSeries._segments[z].line),z++;(0,O.S6)(D,function(ue,we){if(null!==we.argument){var Le=we.argument.valueOf();A[Le]?A[Le].push(we):A[Le]=[we]}}),e._prevSeries._segmentByArg=A,v=ss.spline._calculateBezierPoints(v,t),(0,O.S6)(v,function(ue,we){var Ue,Le=we.argument.valueOf();ue%3==0&&(Ue=A[Le]||function gO(n,t){for(var e;!e&&n;)e=n._segmentByArg&&n._segmentByArg[t],n=n._prevSeries;return e}(e._prevSeries,Le),Ue&&(v[ue-1]&&Ue[0]&&(v[ue-1]=Ue[0]),v[ue+1]&&(v[ue+1]=Ue[2]||we)))}),i={line:r,area:r.concat(v.reverse())},e._areaPointsToSplineAreaPoints(i.area)}else i=fu.splinearea._prepareSegment.call(this,n,t);return i},_appendInGroup:Fs.stackedarea._appendInGroup}),Fs.fullstackedarea=(0,y.l)({},rb,Ku,{_prepareSegment:Fs.stackedarea._prepareSegment,_appendInGroup:Fs.stackedarea._appendInGroup}),Fs.fullstackedsplinearea=(0,y.l)({},fu.splinearea,Ku,{_prepareSegment:Fs.stackedsplinearea._prepareSegment,_appendInGroup:Fs.stackedarea._appendInGroup}),Bv.stackedbar=(0,y.l)({},kv.bar,Ku,{});var Zl={},Gu=Ul.states,w0="discrete",E0=Gu.selectedMark,Fv=Gu.hoverMark,Od=Gu.hover,A2=Gu.normal,Dp=Gu.selection,lb=Gu.applySelected,VM=Gu.applyHover,NM=Gu.resetItem,Cf="none",HM="seriesSelectionChanged",zM="pointSelectionChanged",WM="seriesHoverChanged",fO="pointHoverChanged",gh="allseriespoints",Vv="allargumentpoints",mO="pointHover",ub="clearPointHover",fh="seriesSelect",db="pointSelect",Nv="pointDeselect";function _O(n,t,e){n&&n.trigger(t,e)}function xf(n){return"includepoints"===(n=Sn(n))||n===gh}function vO(n,t){var e=(0,y.l)({},n,t);return e.border=(0,y.l)({},n&&n.border,t&&t.border),e}function S0(n,t){this.fullState=0,this._extGroups=n,this._renderer=n.renderer,this._group=n.renderer.g().attr({class:"dxc-series"}),this._eventTrigger=n.eventTrigger,this._eventPipe=n.eventPipe,this._incidentOccurred=n.incidentOccurred,this._legendCallback=E.ZT,this.updateOptions(t,n)}function Wv(n){return n.data}function CO(n,t){return t&&"logarithmic"===n&&!1===t.getOptions().allowNegatives?e=>e>0:()=>!0}Zl.mixins={chart:{},pie:{},polar:{}},Zl.mixins.chart.scatter=fs,Zl.mixins.polar.scatter=_0,(0,y.l)(Zl.mixins.pie,c),(0,y.l)(Zl.mixins.chart,ss,fu,qs,Yx,qx,I,Fs),(0,y.l)(Zl.mixins.polar,v0,IM,kv,Bv),S0.prototype={constructor:S0,_createLegendState:E.ZT,getLegendStyles:function(){return this._styles.legendStyles},_createStyles:function(n){var t=n.mainSeriesColor;this._styles={normal:this._parseStyle(n,t,t),hover:this._parseStyle(n.hoverStyle||{},t,t),selection:this._parseStyle(n.selectionStyle||{},t,t),legendStyles:{normal:this._createLegendState(n,t),hover:this._createLegendState(n.hoverStyle||{},t),selection:this._createLegendState(n.selectionStyle||{},t)}}},setClippingParams(n,t,e){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._paneClipRectID=n,this._widePaneClipRectID=t,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:E.ZT,getSizeField:E.ZT,getArgumentField:E.ZT,getPoints:function(){return this._points},getPointsInViewPort:function(){return dh.getPointsInViewPort(this)},_createPoint:function(n,t,e){n.index=t;var i=this.pointsByArgument,r=this._getCreatingPointOptions(n),v=n.argument.valueOf(),D=e;D?D.update(n,r):(D=new g0(this,n,r),this.isSelected()&&xf(this.lastSelectionMode)&&D.setView(Dp));var A=i[v];return A?A.push(D):i[v]=[D],D.hasValue()&&this.customizePoint(D,n),D},getRangeData:function(){return this._visible?this._getRangeData():{arg:{},val:{}}},getArgumentRange:function(){return this._visible?dh.getArgumentRange(this):{arg:{},val:{}}},getViewport:function(){return dh.getViewport(this)},_deleteGroup:function(n){var t=this[n];t&&(t.dispose(),this[n]=null)},updateOptions(n,t){var e=n.widgetType,i=this.type,r=n.type;if(this.type=r&&Sn(r.toString()),!this._checkType(e)||this._checkPolarBarType(e,n))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=n,this._pointOptions=null,this.name=n.name,this.pane=n.pane,this.tag=n.tag,t&&(this._seriesModes=t.commonSeriesModes||this._seriesModes,this._valueAxis=t.valueAxis||this._valueAxis,this.axis=this._valueAxis&&this._valueAxis.name,this._argumentAxis=t.argumentAxis||this._argumentAxis),this._createStyles(n),this._stackName=null,this._updateOptions(n),this._visible=n.visible,this.isUpdated=!0,this.stack=n.stack,this.barOverlapGroup=n.barOverlapGroup,this._createGroups(),this._processEmptyValue=n.ignoreEmptyPoints?v=>null===v?void 0:v:v=>v},_defineDrawingState(){this._firstDrawing=!0},_disposePoints:function(n){(0,O.S6)(n||[],function(t,e){e.dispose()})},updateDataType:function(n){return this.argumentType=n.argumentType,this.valueType=n.valueType,this.argumentAxisType=n.argumentAxisType,this.valueAxisType=n.valueAxisType,this.showZero=n.showZero,this._argumentChecker=CO(n.argumentAxisType,this.getArgumentAxis()),this._valueChecker=CO(n.valueAxisType,this.getValueAxis()),this},_argumentChecker:function(){return!0},_valueChecker:function(){return!0},getOptions:function(){return this._options},_getOldPoint:function(n,t,e){var i=n.argument&&n.argument.valueOf(),r=(t[i]||[])[0];return r&&t[i].splice(0,1),r},updateData:function(n){var t=this._options,e=t.nameField;(n=n||[]).length&&(this._canRenderCompleteHandle=!0);var i=this._getPointDataSelector(),r=0;this._data=n.reduce((v,D,A)=>{var z=i(D);return(0,w.$K)(z.argument)?(!e||D[e]===t.nameFieldValue)&&(z.index=A,v.push(z)):r++,v},[]),r&&r===n.length&&this._incidentOccurred("W2002",[this.name,this.getArgumentField()]),this._endUpdateData()},_getData(){var n=this._data||[];return this.useAggregation()&&(n=this._resample(this.getArgumentAxis().getAggregationInfo(this._useAllAggregatedPoints,this.argumentAxisType!==w0?this.getArgumentRange():{}),n)),n},useAggregation:function(){var n=this.getOptions().aggregation;return n&&n.enabled},autoHidePointMarkersEnabled:E.ZT,usePointsToDefineAutoHiding:E.ZT,createPoints(n){this._normalizeUsingAllAggregatedPoints(n),this._createPoints()},_normalizeUsingAllAggregatedPoints:function(n){this._useAllAggregatedPoints=this.useAggregation()&&(this.argumentAxisType===w0||(this._data||[]).length>1&&!!n)},_createPoints:function(){var n=this,t=n.pointsByArgument||{},e=n._getData();n.pointsByArgument={},n._calculateErrorBars(e);var i={},r=e.reduce((D,A)=>{if(n._checkData(A,i)){var z=D.length,Q=n._getOldPoint(A,t,z),ue=n._createPoint(A,z,Q);D.push(ue)}return D},[]);for(var v in i)i[v]===e.length&&n._incidentOccurred("W2002",[n.name,v]);Object.keys(t).forEach(D=>n._disposePoints(t[D])),n._points=r},_removeOldSegments:function(){var n=this,t=n._segments.length;(0,O.S6)(n._graphics.splice(t,n._graphics.length)||[],function(e,i){n._removeElement(i)}),n._trackers&&(0,O.S6)(n._trackers.splice(t,n._trackers.length)||[],function(e,i){i.remove()})},_drawElements:function(n,t,e){var i=this,r=i._points||[],v=r[0]&&r[0].hasValue()&&i._options.closed,D={markers:i._markersGroup,errorBars:i._errorBarGroup};i._drawnPoints=[],i._graphics=i._graphics||[],i._segments=[];var A=r.reduce(function(z,Q){var ue=z[z.length-1];return(!Q.translated||e)&&(Q.translate(),!e&&Q.setDefaultCoords()),Q.hasValue()&&Q.hasCoords()?(e&&i._drawPoint({point:Q,groups:D,hasAnimation:n,firstDrawing:t}),ue.push(Q)):Q.hasValue()?Q.setInvisibility():ue.length&&z.push([]),z},[[]]);A.forEach(function(z,Q){z.length&&i._drawSegment(z,n,Q,v&&Q===this.length-1)},A),i._firstDrawing=!r.length,i._removeOldSegments(),n&&i._animate(t)},draw:function(n,t,e){var i=this._firstDrawing;this._legendCallback=e||this._legendCallback,this._visible?(this._appendInGroup(),this._applyVisibleArea(),this._setGroupsSettings(n,i),!i&&!this._resetApplyingAnimation&&this._drawElements(!1,i,!1),this._drawElements(n,i,!0),t&&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(n){var t={class:"dxc-labels","pointer-events":"none"};this._clipLabels&&this._applyElementsClipRect(t),this._applyClearingSettings(t),n&&(t.opacity=.001),this._labelsGroup.attr(t).append(this._extGroups.labelsGroup)},_checkType:function(n){return!!Zl.mixins[n][this.type]},_checkPolarBarType:function(n,t){return"polar"===n&&t.spiderWidget&&-1!==this.type.indexOf("bar")},_resetType:function(n,t){var e;if(n)for(e in Zl.mixins[t][n])delete this[e]},_setType:function(n,t){var e,i=Zl.mixins[t][n];for(e in i)this[e]=i[e]},_setPointsView:function(n,t){this.getPoints().forEach(function(e){t!==e&&e.setView(n)})},_resetPointsView:function(n,t){this.getPoints().forEach(function(e){t!==e&&e.resetView(n)})},_resetNearestPoint:function(){this._nearestPoint&&null!==this._nearestPoint.series&&this._nearestPoint.resetView(Od),this._nearestPoint=null},_setSelectedState:function(n){this.lastSelectionMode=Sn(n||this._options.selectionMode),this.fullState=this.fullState|E0,this._resetNearestPoint(),this._changeStyle(this.lastSelectionMode),this.lastSelectionMode!==Cf&&this.isHovered()&&xf(this.lastHoverMode)&&this._resetPointsView(Od)},_releaseSelectedState:function(){this.fullState=this.fullState&~E0,this._changeStyle(this.lastSelectionMode,Dp),this.lastSelectionMode!==Cf&&this.isHovered()&&xf(this.lastHoverMode)&&this._setPointsView(Od)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},resetApplyingAnimation:function(n){this._resetApplyingAnimation=!0,n&&(this._firstDrawing=!0)},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&Sn(this._options.hoverMode)!==Cf},_changeStyle:function(n,t,e){var i=this.fullState,r=[A2,Od,Dp,Dp];"none"===this.lastHoverMode&&(i&=~Fv),"none"===this.lastSelectionMode&&(i&=~E0),xf(n)&&!e&&(t?this._resetPointsView(t):this._setPointsView(r[i])),this._legendCallback([NM,VM,lb,lb][i]),this._applyStyle(this._styles[r[i]])},updateHover:function(n,t){var e=this._nearestPoint,i=this.isHovered()&&"nearestpoint"===this.lastHoverMode&&this.getNeighborPoint(n,t);i!==e&&(!this.isSelected()||this.lastSelectionMode===Cf)&&(this._resetNearestPoint(),i&&(i.setView(Od),this._nearestPoint=i))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!(0,w.$K)(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function(n,t){var r,v,D,A,Q,ue,e=this._options,i=e.customizePoint,z=e.customizeLabel;z&&z.call&&((r=(0,y.l)({seriesName:this.name},t)).series=this,D=(Q=(D=z.call(r,r))&&!(0,w.Qr)(D))?(0,y.l)(!0,{},e.label,D):null),i&&i.call&&((r=r||(0,y.l)({seriesName:this.name},t)).series=this,ue=(A=i.call(r,r))&&!(0,w.Qr)(A)),(Q||ue)&&((v=this._parsePointOptions(this._preparePointOptions(A),D||e.label,t,n)).styles.useLabelCustomOptions=Q,v.styles.usePointCustomOptions=ue,n.updateOptions(v))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(n){this._visible=this._options.visible=n,this._updatePointsVisibility(),this.hidePointTooltip(),this._options.visibilityChanged(this)},_updatePointsVisibility:E.ZT,hideLabels:function(){(0,O.S6)(this._points,function(n,t){t._label.draw(!1)})},_parsePointOptions:function(n,t,e,i){var r=this._options,v=this._createPointStyles(n,e,i),D=(0,y.l)({},n,{type:r.type,rotated:r.rotated,styles:v,widgetType:r.widgetType,visibilityChanged:r.visibilityChanged});return D.label=function cb(n,t){var e=n||{},i=(0,y.l)({},e.font)||{},r=e.border||{},v=e.connector||{},D={fill:e.backgroundColor||t,"stroke-width":r.visible&&r.width||0,stroke:r.visible&&r.width?r.color:"none",dashStyle:r.dashStyle},A={stroke:v.visible&&v.width?v.color||t:"none","stroke-width":v.visible&&v.width||0};return i.color="none"===e.backgroundColor&&"#ffffff"===Sn(i.color)&&"inside"!==e.position?t:i.color,{alignment:e.alignment,format:e.format,argumentFormat:e.argumentFormat,customizeText:(0,w.mf)(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:D,position:e.position,connector:A,rotationAngle:e.rotationAngle,wordWrap:e.wordWrap,textOverflow:e.textOverflow,cssClass:e.cssClass,displayFormat:e.displayFormat}}(t,v.normal.fill),this.areErrorBarsVisible()&&(D.errorBars=r.valueErrorBar),D},_preparePointOptions:function(n){var t=this._getOptionsForPoint();return n?function yO(n,t){var e=vO(n,t);return e.image=(0,y.l)(!0,{},n.image,t.image),e.selectionStyle=vO(n.selectionStyle,t.selectionStyle),e.hoverStyle=vO(n.hoverStyle,t.hoverStyle),e}(t,n):t},_getMarkerGroupOptions:function(){return(0,y.l)(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(n,t){var e=this.getOptions().aggregation,i=Sn(e.method);return"custom"===i&&e.calculate||(n&&!t?D=>{var{data:A}=D;return A[0]}:this._aggregators[i]||this._aggregators[this._defaultAggregator])},_resample(n,t){var{interval:e,ticks:i,aggregateByCategory:r}=n,v=this,D=v.argumentAxisType===w0||v.valueAxisType===w0,A=0,z=this._getPointDataSelector(),Q=v.getOptions(),ue=(Jt,un,Mn)=>{if(un){var Kn=Xn=>{var si=Xn&&z(Xn,Q);si&&v._checkData(si)&&(si.aggregationInfo=Mn,Jt.push(si))};Array.isArray(un)?un.forEach(Kn):Kn(un)}},we=this._getAggregationMethod(D,r);if(D){if(r){var Le=this.getArgumentAxis().getTranslator().getBusinessRange().categories,Ue=Le.reduce((Jt,un)=>(Jt[un.valueOf()]=[],Jt),{});return t.forEach(Jt=>{Ue[Jt.argument.valueOf()].push(Jt)}),Le.reduce((Jt,un)=>(ue(Jt,we({aggregationInterval:null,intervalStart:un,intervalEnd:un,data:Ue[un.valueOf()].map(Wv)},v)),Jt),[])}return t.reduce((Jt,un,Mn,Kn)=>{if(Jt[1].push(un),Mn===Kn.length-1||(Mn+1)%e==0){var si={aggregationInterval:e,data:Jt[1].map(Wv)};ue(Jt[0],we(si,v)),Jt[1]=[]}return Jt},[[],[]])[0]}var ut=[];if(1===i.length){var It={intervalStart:i[0],intervalEnd:i[0],aggregationInterval:null,data:t.map(Wv)};ue(ut,we(It,v),It)}else for(var Gt=1;Gt<i.length;Gt++){for(var ln=i[Gt],En=i[Gt-1],on=[];t[A]&&t[A].argument<ln;)t[A].argument>=En&&on.push(t[A]),A++;var Nt={intervalStart:En,intervalEnd:ln,aggregationInterval:e,data:on.map(Wv)};ue(ut,we(Nt,v),Nt)}return v._endUpdateData(),ut},canRenderCompleteHandle:function(){var n=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!n},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(n){return this._createAllAggregatedPoints(),(this._points||[])[n]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(n){n.isSelected()||(function L2(n,t){n.fullState|=E0,n.applyView(t)}(n,this._legendCallback),this._eventPipe({action:db,target:n}),this._eventTrigger(zM,{target:n}))},deselectPoint:function(n){n.isSelected()&&(function B2(n,t){n.fullState&=~E0,n.applyView(t)}(n,this._legendCallback),this._eventPipe({action:Nv,target:n}),this._eventTrigger(zM,{target:n}))},hover:function(n){var t=this._eventTrigger;this.isHovered()||(this.lastHoverMode=Sn(n||this._options.hoverMode),this.fullState=this.fullState|Fv,this._changeStyle(this.lastHoverMode,void 0,this.isSelected()&&this.lastSelectionMode!==Cf),t(WM,{target:this}))},clearHover:function(){var n=this._eventTrigger;this.isHovered()&&(this._resetNearestPoint(),this.fullState=this.fullState&~Fv,this._changeStyle(this.lastHoverMode,Od,this.isSelected()&&this.lastSelectionMode!==Cf),n(WM,{target:this}))},hoverPoint:function(n){n.isHovered()||(n.clearHover(),function zv(n,t){n.fullState|=Fv,n.applyView(t)}(n,this._legendCallback),this._canChangeView()&&this._applyStyle(this._styles.hover),this._eventPipe({action:mO,target:n}),this._eventTrigger(fO,{target:n}))},clearPointHover:function(){var n=this;n.getPoints().some(function(t){return!!t.isHovered()&&(function R2(n,t){n.fullState&=~Fv,n.applyView(t),n.releaseHoverState()}(t,n._legendCallback),n._canChangeView()&&n._applyStyle(n._styles.normal),n._eventPipe({action:ub,target:t}),n._eventTrigger(fO,{target:t}),!0)})},showPointTooltip:function(n){_O(this._extGroups.seriesGroup,"showpointtooltip",n)},hidePointTooltip:function(n){_O(this._extGroups.seriesGroup,"hidepointtooltip",n)},select:function(){this.isSelected()||(this._setSelectedState(this._options.selectionMode),this._eventPipe({action:fh,target:this}),this._group.toForeground(),this._eventTrigger(HM,{target:this}))},clearSelection:function(){this.isSelected()&&(this._releaseSelectedState(),this._eventTrigger(HM,{target:this}))},getPointsByArg:function(n,t){var e=n.valueOf(),i=this.pointsByArgument[e];return!i&&!t&&this._createAllAggregatedPoints()&&(i=this.pointsByArgument[e]),i||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints||(this.createPoints(!0),0))},getPointsByKeys:function(n){return this.getPointsByArg(n)},notify:function(n){var t=this,e=n.action,i=t._seriesModes,r=n.target,v=r.getOptions(),D=Sn(v.hoverMode),A=Sn(v.selectionMode);e===mO?t._hoverPointHandler(r,D,n.notifyLegend):e===ub?t._clearPointHoverHandler(r,D,n.notifyLegend):e===fh?r!==t&&"single"===i.seriesSelectionMode&&t.clearSelection():e===db?("single"===i.pointSelectionMode&&t.getPoints().some(function(z){return!(z===r||!z.isSelected()||(t.deselectPoint(z),0))}),t._selectPointHandler(r,A)):e===Nv&&t._deselectPointHandler(r,A)},_selectPointHandler:function(n,t){t===gh?n.series===this&&this._setPointsView(Dp,n):t===Vv&&this.getPointsByKeys(n.argument,n.argumentIndex).forEach(function(e){e!==n&&e.setView(Dp)})},_deselectPointHandler:function(n,t){t===gh?n.series===this&&this._resetPointsView(Dp,n):t===Vv&&this.getPointsByKeys(n.argument,n.argumentIndex).forEach(function(e){e!==n&&e.resetView(Dp)})},_hoverPointHandler:function(n,t,e){n.series!==this&&t===Vv?(this.getPointsByKeys(n.argument,n.argumentIndex).forEach(function(i){i.setView(Od)}),e&&this._legendCallback(n)):t===gh&&n.series===this&&this._setPointsView(Od,n)},_clearPointHoverHandler:function(n,t,e){t===Vv?(n.series!==this&&this.getPointsByKeys(n.argument,n.argumentIndex).forEach(function(i){i.resetView(Od)}),e&&this._legendCallback(n)):t===gh&&n.series===this&&this._resetPointsView(Od,n)},_deletePoints:function(){this._disposePoints(this._points),this._points=this._drawnPoints=null},_deleteTrackers:function(){(0,O.S6)(this._trackers||[],function(n,t){t.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:E.ZT,drawTrackers:E.ZT,getNeighborPoint:E.ZT,areErrorBarsVisible:E.ZT,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(n,t){var e=this.getNeighborPoint(n,t);return null!=e&&e.coordsIn(n,t)?e:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis},getMarkersGroup(){return this._markersGroup},getRenderer(){return this._renderer},removePointElements(){this._markersGroup&&((0,O.S6)(this._points,(n,t)=>t.deleteMarker()),this._markersGroup.dispose(),this._markersGroup=null)},removeGraphicElements(){var n=this;n._elementsGroup&&(n._elementsGroup.dispose(),n._elementsGroup=null),(0,O.S6)(n._graphics||[],(t,e)=>{n._removeElement(e)}),n._graphics=null},removeBordersGroup(){this._bordersGroup&&(this._bordersGroup.dispose(),this._bordersGroup=null)}};var hb=qr.inherit(function(){var n=function(r){return r?((r=(0,y.l)(!0,{},r)).title=(0,w.HD)(v=r.title)?{text:v}:v,("logarithmic"===r.type&&r.logarithmBase<=0||r.logarithmBase&&!(0,w.kE)(r.logarithmBase))&&(r.logarithmBase=void 0,r.logarithmBaseError=!0),r.label&&r.label.alignment&&(r.label.userAlignment=!0),r):{};var v},t=function(r,v,D){var A=this._theme,z=D^"valueAxis"===r?"verticalAxis":"horizontalAxis",Q=n(v),ue=n(this._userOptions.commonAxisSettings),we=(0,y.l)(!0,{},A.commonAxisSettings,A[z],A[r],ue,Q);return we.workWeek=Q.workWeek||A[r].workWeek,we.forceUserTickInterval|=(0,w.$K)(Q.tickInterval)&&!(0,w.$K)(Q.axisDivisionFactor),we},e=function(r,v){v=v||this._userOptions[r];var D=this._theme[r],A=this._mergedSettings[r];return A||(A=(0,w.PO)(D)&&(0,w.PO)(v)?(0,y.l)(!0,{},D,v):(0,w.$K)(v)?v:D,this._mergedSettings[r]=A,A)},i={base:e,argumentAxis:t,valueAxisRangeSelector:function(){return e.call(this,"valueAxis")},valueAxis:t,series:function(r,v,D){var En,un,A=this,z=A._theme,Q=A._userOptions.commonSeriesSettings||{},ue=z.commonSeriesSettings,we=A._themeSection.split(".").slice(-1)[0],Le=Sn(v.type||Q.type||ue.type||"pie"===we&&z.type),Ue=A.palette,ut=~Le.indexOf("bar"),It=~Le.indexOf("line"),Gt=~Le.indexOf("area"),ln="bubble"===Le,on=A.getOptions("resolveLabelsOverlapping"),Nt=A.getOptions("containerBackgroundColor"),Jt=i.seriesTemplate.call(this);(ut||ln)&&(un=(v=(0,y.l)(!0,{},Q,Q[Le],v)).visible,Q={type:{}},(0,y.l)(!0,v,v.point),v.visible=un);var Mn=(0,y.l)(!0,{aggregation:{}},ue,ue[Le],Q,Q[Le],v);return Mn.aggregation.enabled="chart"===we&&!!Mn.aggregation.enabled,Mn.type=Le,Mn.widgetType=we,Mn.containerBackgroundColor=Nt,En="pie"!==we?Mn.color||Ue.getNextColor(D):function(Kn,Xn,si){var pi="".concat(Kn,"-").concat(Xn);return A._multiPieColors[pi]||(A._multiPieColors[pi]=Ue.getNextColor(si)),A._multiPieColors[pi]},Mn.mainSeriesColor=En,Mn.resolveLabelsOverlapping=on,Mn.label&&(It||Gt&&"rangearea"!==Le||"scatter"===Le)&&(Mn.label.position="outside"),Jt&&(Mn.nameField=Jt.nameField),Mn},animation:function(r){var v=this._userOptions[r];return v=(0,w.PO)(v)?v:(0,w.$K)(v)?{enabled:!!v}:{},e.call(this,r,v)},seriesTemplate(){var r=e.call(this,"seriesTemplate");return r&&(r.nameField=r.nameField||"series"),r},zoomAndPan(){function r(D){var A="pan"===(D=Sn(D))||"both"===D,z="zoom"===D||"both"===D;return{pan:A,zoom:z,none:!A&&!z}}var v=e.call(this,"zoomAndPan");return{valueAxis:r(v.valueAxis),argumentAxis:r(v.argumentAxis),dragToZoom:!!v.dragToZoom,dragBoxStyle:{class:"dxc-shutter",fill:v.dragBoxStyle.color,opacity:v.dragBoxStyle.opacity},panKey:v.panKey,allowMouseWheel:!!v.allowMouseWheel,allowTouchGestures:!!v.allowTouchGestures}}};return{_themeSection:"chart",ctor:function(r){var v=this;v.callBase.apply(v,arguments);var D=r.options||{};v._userOptions=D,v._mergeAxisTitleOptions=[],v._multiPieColors={},v._callback=E.ZT},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:_u,sqrt:xO}=Math,O0=Math.min,pb=Math.max,mh=Ul.radialLabelIndent;function UM(n,t,e){return e<n?n:t<e?t:e}function gb(n){if(n._label.isVisible()&&"inside"!==n._label.getLayoutOptions().position)return n._label.getBoundingRect()}function wO(n){return n.reduce(function(t,e){var i=e.getVisiblePoints().reduce(function(v,D){var A=gb(D);return A&&A.width>v&&(v=A.width),v},0),r=i;return i&&(t.outerLabelsCount++,t.outerLabelsCount>1&&(i+=Ul.pieLabelSpacing),r+=Ul.pieLabelSpacing),t.sizes.push(i),t.rSizes.push(r),t.common+=i,t},{sizes:[],rSizes:[],common:0,outerLabelsCount:0})}function EO(n,t,e,i,r,v){var D,A,z=0,Q=n.sizes,ue=n.rSizes;for(A=0;A<e.length;A++)0!==Q[A]?(D=_u(D?D+ue[A-1]:t),e[A].correctLabelRadius(D),z+=r||Q[A],ue[A]=r||ue[A],e[A].setVisibleArea({left:_u(v-t-z),right:_u(i.width-(v+t+z)),top:i.top,bottom:i.bottom,width:i.width,height:i.height})):D&&(D+=ue[A-1])}function ZM(n){var{type:t,innerRadius:e}=n;return"pie"===t?0:(0,w.kE)(e)?Number(e):.5}function Uv(){}function SO(n,t,e,i){return(n-t-mh-e.left)/i.outerLabelsCount}function N2(n,t,e,i,r,v){var A,D=wO(e),z=function KM(n,t,e){return n-t.left-(e.outerLabelsCount>0?e.common+mh:0)}(r,t,D);return z<i?A=SO(r,n=i,t,D):n=O0(function fb(n,t,e,i,r){return n.some(function(v){return v.getVisiblePoints().reduce(function(D,A){var z=gb(A);if(z){var Q=UM(z.x,z.x+z.width,t),ue=UM(z.y,z.y+z.height,e);i=O0(pb(function V2(n,t,e,i){return xO((n-e)*(n-e)+(t-i)*(t-i))}(Q,ue,t,e)-mh,r),i),D=!0}return D},!1)}),i}(e,r,v,n,i),z),EO(D,n+mh,e,t,A,r),n}function H2(n){return new Wc(null,{x:n.left,y:n.top,width:n.width-n.left-n.right,height:n.height-n.top-n.bottom})}Uv.prototype={constructor:Uv,setOptions:function(n){this._options=n},applyPieChartSeriesLayout:function(n,t,e){var z,Q,i=n.height-n.top-n.bottom,r=n.width-n.left-n.right,v=r/2+n.left,D=i/2+n.top,A=this._options.piePercentage;return(0,w.kE)(A)?z=Q=A*O0(n.height,n.width)/2:(z=O0(r,i)/2,Q=this._options.minPiePercentage*z),e||(z=N2(z,n,t,Q,v,D)),{centerX:_u(v),centerY:_u(D),radiusInner:_u(z*ZM(t[0])),radiusOuter:_u(z)}},applyEqualPieChartLayout:function(n,t){var e=t.radius;return{centerX:_u(t.x),centerY:_u(t.y),radiusInner:_u(e*ZM(n[0])),radiusOuter:_u(e)}},correctPieLabelRadius:function(n,t,e){var r,i=wO(n),v=t.radiusOuter+mh;i.common+mh>t.centerX-e.left-v&&(r=SO(t.centerX,t.radiusOuter,e,i)),EO(i,v,n,e,r,t.centerX)},needMoreSpaceForPanesCanvas(n,t,e){var i=this._options,r=i.width,v=i.height,D=i.piePercentage,A=(0,w.kE)(D),z=0,Q=0;return n.forEach(ue=>{var we=ue.canvas,Le=A?O0(we.width,we.height)*D:void 0,Ue=e?e(ue):{width:!1,height:!1},ut=Ue.width?0:(A?Le:r)-(we.width-we.left-we.right),It=Ue.height?0:(A?Le:v)-(we.height-we.top-we.bottom);t?(z+=ut>0?ut:0,Q=pb(It>0?It:0,Q)):(z=pb(ut>0?ut:0,z),Q+=It>0?It:0)}),(z>0||Q>0)&&{width:z,height:Q}},layoutInsideLegend:function(n,t){var e=n.getLayoutOptions();if(e){var i=e.position,r=e.cutSide,v={horizontal:i.horizontal,vertical:i.vertical};t[e.cutLayoutSide]+="horizontal"===e.cutSide?e.width:e.height,v[r]={left:"right",right:"left",top:"bottom",bottom:"top",center:"center"}[v[r]],n.position({of:H2(t),my:v,at:i})}}};var D0=Math.floor,GM=Ul.events,jM=Ul.states,$M=jM.hoverMark,z2=jM.normalMark,T0="dxChartTracker",mb="."+T0,OO=(0,k.V4)([_o.Z.down,_o.Z.move],T0),YM="legendClick",DO="seriesClick",F="pointClick",H="chart-data-point",$="chart-data-series",ce="chart-data-argument",Tt="allargumentpoints",zt="includepoints",Fn=[zt,"excludepoints","none"];function ri(n,t,e){var i=n.target;if("tspan"===i.tagName)return i.parentNode[t];var r=i[t];return e&&!(0,w.$K)(r)?function v(D){if(D.parentNode)return(0,w.$K)(D.parentNode[t])?D.parentNode[t]:v(D.parentNode)}(i):r}function Di(n,t,e){var{event:i,cancel:r}=n,v=i.cancel,D=r||v;return v&&bu.Z.log("W0003","".concat(e,"Ckick handler argument"),"event.cancel","22.1","Use the 'cancel' field instead"),D||!t.getOptions()}function ar(n){var t=n.getOptions().hoverMode;return"none"===t?t:Tt}var yr={ctor:function(n){var t=this,e={tracker:t};t._renderer=n.renderer,t._legend=n.legend,t._tooltip=n.tooltip,t._eventTrigger=n.eventTrigger,t._seriesGroup=n.seriesGroup,n.seriesGroup.off(mb).on((0,k.V4)(GM.showPointTooltip,T0),e,t._showPointTooltip).on((0,k.V4)(GM.hidePointTooltip,T0),e,t._hidePointTooltip),t._renderer.root.off(mb).on(OO,e,t._pointerHandler).on((0,k.V4)(_o.Z.up,T0),()=>clearTimeout(t._holdTimer)).on((0,k.V4)(g.u,T0),e,t._clickHandler)},update:function(n){this._chart=n.chart},updateSeries(n,t){var e=this,i=!(null!=n&&n.some(r=>r===e.hoveredSeries)||e._hoveredPoint&&e._hoveredPoint.series);e._storedSeries!==n&&(e._storedSeries=n||[]),i&&(e._clean(),e._renderer.initHatching()),t&&(e.clearSelection(),i||(e._hideTooltip(e.pointAtShownTooltip),e.clearHover()))},setCanvases:function(n,t){this._mainCanvas=n,this._canvases=t},repairTooltip:function(){var n=this.pointAtShownTooltip;n&&n.series&&n.isVisible()?this._showTooltip(n):this._hideTooltip(n,!0)},_setHoveredPoint:function(n){n!==this._hoveredPoint&&(this._releaseHoveredPoint(),n.hover(),this._hoveredPoint=n)},_releaseHoveredPoint:function(n){this._hoveredPoint&&this._hoveredPoint.getOptions()&&(this._hoveredPoint.clearHover(),this._hoveredPoint=null,this._tooltip.isEnabled()&&this._hideTooltip(this._hoveredPoint,!1,n))},_setHoveredSeries:function(n,t){this._releaseHoveredSeries(),this._releaseHoveredPoint(),n.hover(t),this.hoveredSeries=n},_releaseHoveredSeries(){this.hoveredSeries&&(this.hoveredSeries.clearHover(),this.hoveredSeries=null)},clearSelection(){this._storedSeries.forEach(n=>{n&&(n.clearSelection(),n.getPoints().forEach(t=>t.clearSelection()))})},_clean:function(){this.hoveredPoint=this.hoveredSeries=this._hoveredArgumentPoints=null,this._hideTooltip(this.pointAtShownTooltip)},clearHover:function(n){this._resetHoveredArgument(),this._releaseHoveredSeries(),this._releaseHoveredPoint(n)},_hideTooltip:function(n,t,e){!this._tooltip||n&&this.pointAtShownTooltip!==n||(!t&&this.pointAtShownTooltip&&(this.pointAtShownTooltip=null),this._tooltip.hide(!!e))},_showTooltip:function(n){var e,t=this,i={target:n};if(null!=n&&n.getOptions()){if(e=n.getTooltipFormatObject(t._tooltip,t._tooltip.isShared()&&t._chart.getStackedPoints(n)),!(0,w.$K)(e.valueText)&&!e.points||!n.isVisible())return;var r=n.getTooltipParams(t._tooltip.getLocation()),v=t._renderer.getRootOffset();r.x+=v.left,r.y+=v.top;var D=A=>{A&&(t.pointAtShownTooltip=n)};D(t._tooltip.show(e,r,i,void 0,D))}},_showPointTooltip:function(n,t){var e=n.data.tracker,i=e.pointAtShownTooltip;i&&i!==t&&e._hideTooltip(i),e._showTooltip(t)},_hidePointTooltip:function(n,t){n.data.tracker._hideTooltip(t,!1,!0)},_enableOutHandler:function(){if(!this._outHandler){var n=this,t=function(e){var i=n._renderer.getRootOffset(),r=D0(e.pageX-i.left),v=D0(e.pageY-i.top);!so(n._mainCanvas,r,v)&&!n._isCursorOnTooltip(e)&&(n._pointerOut(),n._disableOutHandler())};d.Z.on(b.Z.getDocument(),OO,t),this._outHandler=t}},_isCursorOnTooltip:function(n){return this._tooltip.isEnabled()&&this._tooltip.isCursorOnTooltip(n.pageX,n.pageY)},_disableOutHandler:function(){this._outHandler&&d.Z.off(b.Z.getDocument(),OO,this._outHandler),this._outHandler=null},stopCurrentHandling:function(){this._pointerOut(!0)},_pointerOut:function(n){this.clearHover(!0),(n||this._tooltip.isEnabled())&&this._hideTooltip(this.pointAtShownTooltip,!1,!0)},_triggerLegendClick:function(n,t){var e=this._eventTrigger;e(YM,n,function(){!Di(n,n.target,"Legend")&&e(t,n)})},_hoverLegendItem:function(n,t){var i,e=this._legend.getItemByCoord(n,t),r=function Ni(n){return Fn.indexOf(n)>-1?n:zt}(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(n,t){var e=this._getArgumentHoverMode();(0,w.$K)(n)&&(this._releaseHoveredPoint(),this._hoveredArgument=n,this._argumentIndex=t,this._notifySeries({action:"pointHover",notifyLegend:this._notifyLegendOnHoverArgument,target:{argument:n,fullState:$M,argumentIndex:t,getOptions:function(){return{hoverMode:e}}}}))},_resetHoveredArgument:function(){var n;(0,w.$K)(this._hoveredArgument)&&(n=this._getArgumentHoverMode(),this._notifySeries({action:"clearPointHover",notifyLegend:this._notifyLegendOnHoverArgument,target:{fullState:z2,argumentIndex:this._argumentIndex,argument:this._hoveredArgument,getOptions:function(){return{hoverMode:n}}}}),this._hoveredArgument=null)},_notifySeries:function(n){this._storedSeries.forEach(function(t){t.notify(n)})},_pointerHandler:function(n){var t,e=n.data.tracker,i=e._renderer.getRootOffset(),r=D0(n.pageX-i.left),v=D0(n.pageY-i.top),D=e._getCanvas(r,v),A=ri(n,$),z=ri(n,H)||(null===(t=A)||void 0===t?void 0:t.getPointByCoord(r,v));if(e._isHolding=!1,clearTimeout(e._holdTimer),n.type===_o.Z.down&&(e._holdTimer=setTimeout(()=>e._isHolding=!0,300)),z&&!z.getMarkerVisibility()&&(z=void 0),e._enableOutHandler(),e._legend.coordsIn(r,v))e._hoverLegendItem(r,v);else if(e.hoveredSeries&&e.hoveredSeries!==e._stuckSeries&&e._releaseHoveredSeries(),!e._hoverArgumentAxis(r,v,n)&&(e._isPointerOut(D,z)&&e._pointerOut(),D||z)){if(A&&!z){if(z=A.getNeighborPoint(r,v),!e._stickyHovering&&z&&!z.coordsIn(r,v)&&(z=null),A!==e.hoveredSeries)return void e._setTimeout(function(){e._setHoveredSeries(A),e._setStuckSeries(n,A,r,v),e._pointerComplete(z,r,v)},A)}else{if(z){if(n.type!==_o.Z.move&&"touch"!==n.pointerType)return;return void(e.hoveredSeries?e._setTimeout(()=>e._pointerOnPoint(z,r,v,n),z):e._pointerOnPoint(z,r,v,n))}var Q;e._setStuckSeries(n,void 0,r,v)&&e._stickyHovering?(z=(A=e._stuckSeries).getNeighborPoint(r,v),e._releaseHoveredSeries(),null!==(Q=z)&&void 0!==Q&&Q.getMarkerVisibility()&&e._setHoveredPoint(z)):e._stickyHovering||e._pointerOut()}e._pointerComplete(z,r,v)}},_pointerOnPoint:function(n,t,e){this._resetHoveredArgument(),this._setHoveredPoint(n),this._pointerComplete(n,t,e)},_pointerComplete:function(n){this.pointAtShownTooltip!==n&&this._tooltip.isEnabled()&&this._showTooltip(n)},_clickHandler:function(n){var t,e=n.data.tracker;if(!e._isHolding){var i=e._renderer.getRootOffset(),r=D0(n.pageX-i.left),v=D0(n.pageY-i.top),D=ri(n,H),A=e._stuckSeries||ri(n,$)||(null===(t=D)||void 0===t?void 0:t.series),z=e._argumentAxis;if(e._legend.coordsIn(r,v)){var Q=e._legend.getItemByCoord(r,v);Q&&e._legendClick(Q,n)}else if(null!=z&&z.coordsIn(r,v)){var ue=ri(n,ce,!0);(0,w.$K)(ue)&&e._eventTrigger("argumentAxisClick",{argument:ue,event:n})}else if(A){var we;null!==(we=D=D||A.getPointByCoord(r,v))&&void 0!==we&&we.getMarkerVisibility()?e._pointClick(D,n):ri(n,$)&&e._eventTrigger(DO,{target:A,event:n})}}},dispose:function(){this._disableOutHandler(),this._renderer.root.off(mb),this._seriesGroup.off(mb)}},Zr=function(n){this.ctor(n)};(0,y.l)(Zr.prototype,yr,{_pointClick:function(n,t){var e=this._eventTrigger,i=n.series,r={target:n,event:t};e(F,r,function(){!Di(r,i,"Point")&&e(DO,{target:i,event:t})})},update:function(n){yr.update.call(this,n),this._argumentAxis=n.argumentAxis||{},this._axisHoverEnabled=this._argumentAxis&&Sn(this._argumentAxis.getOptions().hoverMode)===Tt,this._rotated=n.rotated,this._crosshair=n.crosshair,this._stickyHovering=n.stickyHovering},_getCanvas:function(n,t){for(var e=this._canvases||[],i=0;i<e.length;i++){var r=e[i];if(so(r,n,t))return r}return null},_isPointerOut:function(n){return!n&&this._stuckSeries},_hideCrosshair:function(){var n;null===(n=this._crosshair)||void 0===n||n.hide()},_moveCrosshair:function(n,t,e){this._crosshair&&null!=n&&n.isVisible()&&this._crosshair.show({point:n,x:t,y:e})},_clean:function(){yr._clean.call(this),this._resetTimer(),this._stuckSeries=null},_getSeriesForShared:function(n,t){var e,i=[],r=null,v=1/0;return this._tooltip.isShared()&&!this.hoveredSeries&&((0,O.S6)(this._storedSeries,function(D,A){var z=A.getNeighborPoint(n,t);z&&i.push(z)}),(0,O.S6)(i,function(D,A){var z=A.getCrosshairData(n,t),Q=_n(n,t,z.x,z.y);Q<v&&(r=A,v=Q)})),null===(e=r)||void 0===e?void 0:e.series},_setTimeout:function(n,t){var e=this;e._timeoutKeeper!==t&&(e._resetTimer(),e._hoverTimeout=setTimeout(function(){n(),e._timeoutKeeper=null},100),e._timeoutKeeper=t)},_resetTimer:function(){clearTimeout(this._hoverTimeout),this._timeoutKeeper=this._hoverTimeout=null},_stopEvent:function(n){(!(0,w.$K)(n.cancelable)||n.cancelable)&&(n.preventDefault(),n.stopPropagation())},_setStuckSeries:function(n,t,e,i){return this._stuckSeries="mouse"!==n.pointerType?null:t||this._stuckSeries||this._getSeriesForShared(e,i),!!this._stuckSeries},_pointerOut:function(){var n=this;n._stuckSeries=null,n._hideCrosshair(),n._resetTimer(),yr._pointerOut.apply(n,arguments)},_hoverArgumentAxis:function(n,t,e){if(this._resetHoveredArgument(),this._axisHoverEnabled&&this._argumentAxis.coordsIn(n,t))return this._hoverArgument(ri(e,ce,!0)),!0},_pointerComplete:function(n,t,e){this.hoveredSeries&&this.hoveredSeries.updateHover(t,e),this._resetTimer(),this._moveCrosshair(n,t,e),yr._pointerComplete.call(this,n)},_legendClick:function(n,t){this._triggerLegendClick({target:this._storedSeries[n.id],event:t},DO)},_hoverLegendItem:function(n,t){this._stuckSeries=null,this._hideCrosshair(),yr._hoverLegendItem.call(this,n,t)},_pointerOnPoint:function(n,t,e,i){this._setStuckSeries(i,n.series,t,e),this._releaseHoveredSeries(),yr._pointerOnPoint.call(this,n,t,e,i)},_notifyLegendOnHoverArgument:!1,_getArgumentHoverMode:function(){return ar(this._argumentAxis)},dispose:function(){this._resetTimer(),yr.dispose.call(this)}});var ro=function(n){this.ctor(n)};(0,y.l)(ro.prototype,yr,{_isPointerOut:function(n,t){return!t},_legendClick:function(n,t){var e=[];this._storedSeries.forEach(i=>e.push.apply(e,i.getPointsByKeys(n.argument,n.argumentIndex))),this._eventTrigger(YM,{target:n.argument,points:e,event:t})},_pointClick:function(n,t){this._eventTrigger(F,{target:n,event:t})},_hoverLegendItem:function(n,t){var e=this._legend.getItemByCoord(n,t);e&&this._hoveredArgument!==e.argument?(this._resetHoveredArgument(),this._hoverArgument(e.argument,e.argumentIndex)):e||this.clearHover()},_getArgumentHoverMode:function(){return ar(this._legend)},_hoverArgumentAxis:E.ZT,_setStuckSeries:E.ZT,_getCanvas:E.ZT,_notifyLegendOnHoverArgument:!0});var Oo,co=l(8264),mr=co.Z.postCtor,Za={_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(Oo in co.Z)"postCtor"!==Oo&&(Za[Oo]=co.Z[Oo]);var Ha={name:"data_source",init:function(){mr.call(this)},dispose:E.ZT,members:Za},W2=Array.isArray,U2="_reinit",TO="_forceRender",Z2="_resize",K2=[U2,"_updateDataSource","_dataInit",TO,Z2],IO="font";function r7(n,t){var e=t.end-t.start,i=0;for(n.forEach(function(r){i+=r.getBoundingRect().width});e<i;)i-=o7(n)}function o7(n){var t=n.reduce(function(i,r,v){if(!r)return i;var D=r.value();return D<i.value?{value:D,rollingStock:r,index:v}:i},{rollingStock:void 0,value:1/0,index:void 0});t.rollingStock.getLabels()[0].draw(!1);var e=t.rollingStock.getBoundingRect().width;return n[t.index]=null,e}function a7(n){var t,e,i,r,v=!1;for(t=0,i=n.length-1;t<i;t++){for(e=t+1,r=n.length;e<r;e++)if(t!==e&&G2(n[t],n[e],!0)){v=!0;break}if(v)break}return v}function G2(n,t,e){if(n&&t){var i=n.getBoundingRect(),r=t.getBoundingRect();return i.end>r.start&&(!e||i.oppositeStart<=r.oppositeStart&&i.oppositeEnd>r.oppositeStart||r.oppositeStart<=i.oppositeStart&&r.oppositeEnd>i.oppositeStart)}}function l7(n){var t=[],e=[];return n.forEach(i=>{i.value()>0?t.push(i):e.unshift(i)}),t.concat(e)}function u7(n){var t,e,i;for(t=0;t<n.length-1;t++)G2(e=i||n[t],n[t+1])?(e.toChain(n[t+1]),n[t+1]=null,i=e):i=n[t+1]||e}function d7(n,t){var e,i,r,v,D;for(e=0;e<n.length;e++){if(c7(r=n[e],t))for(D=r.getBoundingRect(),i=e+1;i<n.length;i++)if((v=n[i])&&v.getBoundingRect().end>D.start-(D.end-t.end)){v.toChain(r),n[e]=r=null;break}r&&r.setRollingStockInCanvas(t)}}function c7(n,t){return n&&n.getBoundingRect().end>t.end}function j2(n,t,e){var i=n.getBoundingRect(),r=i.x,v=i.y,D=i.x+i.width,A=i.y+i.height;return this.labels=[n],this.shiftFunction=e,this._bBox={start:t?r:v,width:t?i.width:i.height,end:t?D:A,oppositeStart:t?v:r,oppositeEnd:t?A:D},this._initialPosition=t?i.x:i.y,this}function g7(n,t){return(n.x<=t.x&&t.x<=n.x+n.width||n.x>=t.x&&n.x<=t.x+t.width)&&(n.y<=t.y&&t.y<=n.y+n.height||n.y>=t.y&&n.y<=t.y+t.height)}j2.prototype={toChain:function(n){var t=n.getBoundingRect();n.shift(t.start-this._bBox.end),this._changeBoxWidth(t.width),this.labels=this.labels.concat(n.labels)},getBoundingRect:function(){return this._bBox},shift:function(n){var t=this.shiftFunction;(0,O.S6)(this.labels,function(e,i){var r=i.getBoundingRect(),v=t(r,n);i.hideInsideLabel(v)||i.shift(v.x,v.y)}),this._bBox.end-=n,this._bBox.start-=n},setRollingStockInCanvas:function(n){this._bBox.end>n.end&&this.shift(this._bBox.end-n.end)},getLabels:function(){return this.labels},value(){return this.labels[0].getData().value},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(n){this._bBox.end+=n,this._bBox.width+=n}};var qM_resolveLabelOverlappingInOneDirection=function s7(n,t,e,i,r){var Q,v=arguments.length>5&&void 0!==arguments[5]?arguments[5]:()=>0,D=[],A={start:e?t.left:t.top,end:e?t.width-t.right:t.height-t.bottom},z=!1;if(n.forEach(function(we){we&&(z=z||we.series.isStackedSeries()||we.series.isFullStackedSeries(),we.getLabels().forEach(function(Le){Le.isVisible()&&D.push(new j2(Le,e,r))}))}),z)!e^i&&D.reverse(),Q=i?D:l7(D);else{var ue=D.slice();Q=D.sort(function(we,Le){return v(we,Le)||we.getInitialPosition()-Le.getInitialPosition()||ue.indexOf(we)-ue.indexOf(Le)})}return!!a7(Q)&&(r7(Q,A),u7(Q),Q.reverse(),d7(Q,A),!0)},Dd=Cl.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."+IO,"legend.title."+IO,"legend.title.subtitle."+IO,"commonSeriesSettings.label."+IO],_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["INIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_getThemeManagerOptions(){var n=this.callBase.apply(this,arguments);return n.options=this.option(),n},_createThemeManager:function(){var n=this.option(),t=new hb(this._getThemeManagerOptions());return t.setTheme(n.theme,n.rtlEnabled),t},_initCore:function(){this._canvasClipRect=this._renderer.clipRect(),this._createHtmlStructure(),this._createLegend(),this._createTracker(),this._needHandleRenderComplete=!0,this.layoutManager=new Uv,this._createScrollBar(),d.Z.on(this._$element,"contextmenu",function(n){((0,k.z6)(n)||(0,k.bX)(n))&&n.preventDefault()}),d.Z.on(this._$element,"MSHoldVisual",function(n){n.preventDefault()})},_getLayoutItems:E.ZT,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit(){An(this._canvas),this._reinitAxes(),this._requestChange(["DATA_SOURCE","DATA_INIT","CORRECT_AXIS","FULL_RENDER"])},_correctAxes:E.ZT,_createHtmlStructure:function(){var n=this,t=n._renderer,e=t.root,i=function(){return t.g().attr({class:"dxc-constant-lines-group"}).linkOn(e,"constant-lines")};n._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()}},n._labelsAxesGroup=t.g().attr({class:"dxc-elements-axes-group"});var r=()=>{n._labelsAxesGroup.linkOn(e,"elements")};n._backgroundRect=t.rect().attr({fill:"gray",opacity:1e-4}).append(e),n._panesBackgroundGroup=t.g().attr({class:"dxc-background"}).append(e),n._stripsGroup=t.g().attr({class:"dxc-strips-group"}).linkOn(e,"strips"),n._gridGroup=t.g().attr({class:"dxc-grids-group"}).linkOn(e,"grids"),n._panesBorderGroup=t.g().attr({class:"dxc-border"}).linkOn(e,"border"),n._axesGroup=t.g().attr({class:"dxc-axes-group"}).linkOn(e,"axes"),n._executeAppendBeforeSeries(r),n._stripLabelAxesGroup=t.g().attr({class:"dxc-strips-labels-group"}).linkOn(e,"strips-labels"),n._constantLinesGroup.under=i(),n._seriesGroup=t.g().attr({class:"dxc-series-group"}).linkOn(e,"series"),n._executeAppendAfterSeries(r),n._constantLinesGroup.above=i(),n._scaleBreaksGroup=t.g().attr({class:"dxc-scale-breaks"}).linkOn(e,"scale-breaks"),n._labelsGroup=t.g().attr({class:"dxc-labels-group"}).linkOn(e,"labels"),n._crosshairCursorGroup=t.g().attr({class:"dxc-crosshair-cursor"}).linkOn(e,"crosshair"),n._legendGroup=t.g().attr({class:"dxc-legend","clip-path":n._getCanvasClipRectID()}).linkOn(e,"legend").linkAppend(e).enableLinks(),n._scrollBarGroup=t.g().attr({class:"dxc-scroll-bar"}).linkOn(e,"scroll-bar")},_executeAppendBeforeSeries(){},_executeAppendAfterSeries(){},_disposeObjectsInArray:function(n,t){(0,O.S6)(this[n]||[],function(e,i){t&&i?(0,O.S6)(t,function(r,v){i[v]&&i[v].dispose()}):i&&i.dispose()}),this[n]=null},_disposeCore:function(){var n=this,t=function(r){n[r]&&(n[r].dispose(),n[r]=null)},e=function(r){n[r].linkOff()},i=this._disposeObjectsInArray;n._renderer.stopAllAnimations(),i.call(n,"series"),t("_tracker"),t("_crosshair"),n.layoutManager=n._userOptions=n._canvas=n._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"),t("_canvasClipRect"),t("_panesBackgroundGroup"),t("_backgroundRect"),t("_stripsGroup"),t("_gridGroup"),t("_axesGroup"),t("_constantLinesGroup"),t("_stripLabelAxesGroup"),t("_panesBorderGroup"),t("_seriesGroup"),t("_labelsGroup"),t("_crosshairCursorGroup"),t("_legendGroup"),t("_scrollBarGroup"),t("_scaleBreaksGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(n){return this._themeManager.getOptions(n)},_applySize:function(n){this._rect=n.slice(),this._changes.has("FULL_RENDER")||this._processRefreshData(Z2)},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){this._tracker=new C[this._trackerType]({seriesGroup:this._seriesGroup,renderer:this._renderer,tooltip:this._tooltip,legend:this._legend,eventTrigger:this._eventTrigger})},_getTrackerSettings:function(){return(0,y.l)({chart:this},this._getSelectionModes())},_getSelectionModes:function(){var n=this._themeManager;return{seriesSelectionMode:n.getOptions("seriesSelectionMode"),pointSelectionMode:n.getOptions("pointSelectionMode")}},_updateTracker:function(n){this._tracker.update(this._getTrackerSettings()),this._tracker.setCanvases({left:0,right:this._canvas.width,top:0,bottom:this._canvas.height},n)},_createCanvasFromRect(n){var t=this._canvas;return An({left:n[0],top:n[1],right:t.width-n[2],bottom:t.height-n[3],width:t.width,height:t.height})},_doRender:function(n){if(0!==this._canvas.width||0!==this._canvas.height){this._resetIsReady();var t=this._prepareDrawOptions(n),e=t.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(t),this._lastRenderingTime=new Date-i}},_preserveOriginalCanvas(){this.__originalCanvas=this._canvas,this._canvas=(0,y.l)({},this._canvas)},_layoutAxes:E.ZT,_renderElements:function(n){var D,A,z,t=this,e=t._prepareToRender(n),i=t._isRotated(),r=t._isLegendInside(),v=[];(0,y.l)({},t._canvas),t._renderer.lock(),n.drawLegend&&t._legend&&t._legendGroup.linkAppend(),t.layoutManager.setOptions(t._layoutManagerOptions());var Q=t._getLayoutTargets();this._layoutAxes(ue=>{var we=ue?(0,y.l)({},n,{animate:!1,recreateCanvas:!0}):n,Le=t._renderAxes(we,e);t._shrinkAxes(ue,Le)}),t._applyClipRects(e),t._appendSeriesGroups(),t._createCrosshairCursor(),Q.forEach(ue=>{var{canvas:we}=ue;v.push({left:we.left,right:we.width-we.right,top:we.top,bottom:we.height-we.bottom})}),t._scrollBar&&("discrete"===(D=t._argumentAxes[0].getTranslator().getBusinessRange()).axisType&&D.categories&&D.categories.length<=1||"discrete"!==D.axisType&&D.min===D.max?A=z=void 0:(A=D.minVisible,z=D.maxVisible),t._scrollBar.init(D,!t._argumentAxes[0].getOptions().valueMarginsEnabled).setPosition(A,z)),t._updateTracker(v),t._updateLegendPosition(n,r),t._applyPointMarkersAutoHiding(),t._renderSeries(n,i,r),t._renderer.unlock()},_updateLegendPosition:E.ZT,_createCrosshairCursor:E.ZT,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(n,t,e){this._calculateSeriesLayout(n,t),this._renderSeriesElements(n,e)},_calculateSeriesLayout:function(n,t){n.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),t)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(n)},_getArgFilter:()=>()=>!0,_getValFilter:n=>()=>!0,_getPointsToAnimation(n){var t=this._getArgFilter();return n.map(e=>{var i=this._getValFilter(e);return e.getPoints().filter(r=>r.getOptions().visible&&t(r.argument)&&(i(r.getMinValue(!0))||i(r.getMaxValue(!0)))).length})},_renderSeriesElements:function(n,t){var e,r,i=this.series,v=i.length,D=this._themeManager.getOptions("resolveLabelOverlapping"),A=this._getPointsToAnimation(i);for(e=0;e<v;e++)this._applyExtraSettings(r=i[e],n),r.draw(n.animate&&A[e]<=n.animationPointsLimit&&this._renderer.animationEnabled(),n.hideLayoutLabels,this._getLegendCallBack(r));"none"===D?this._adjustSeriesLabels(!1):this._locateLabels(D),this._renderTrackers(t),this._tracker.repairTooltip(),this._renderExtraElements(),this._clearCanvas(),this._seriesElementsDrawn=!0},_changesApplied(){this._seriesElementsDrawn&&(this._seriesElementsDrawn=!1,this._drawn(),this._renderCompleteHandler())},_locateLabels(n){this._resolveLabelOverlapping(n)},_renderExtraElements(){},_clearCanvas:function(){this._canvas=this.__originalCanvas},_resolveLabelOverlapping:function(n){var t;switch(n){case"stack":t=this._resolveLabelOverlappingStack;break;case"hide":t=this._resolveLabelOverlappingHide;break;case"shift":t=this._resolveLabelOverlappingShift}return(0,w.mf)(t)&&t.call(this)},_getVisibleSeries:function(){return(0,E.h3)(this.getAllSeries(),function(n){return n.isVisible()})},_resolveLabelOverlappingHide:function(){var t,e,i,v,D,A,n=[],z=this._getVisibleSeries();for(v=0;v<z.length;v++)for(A=z[v].getVisiblePoints(),D=0;D<A.length;D++)n.push.apply(n,A[D].getLabels());for(v=0;v<n.length;v++)if((t=n[v]).isVisible())for(i=t.getBoundingRect(),D=v+1;D<n.length;D++)g7(i,(e=n[D]).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 n=function p7(n){var t=function h7(n){return{nameField:n+"Name",colorField:n+"Color",indexField:n+"Index"}}(n);return{getFormatObject:function(e){var i={};return i[t.indexField]=e.id,i[t.colorField]=e.states.normal.fill,i[t.nameField]=e.text,i},textField:t.nameField}}(this._legendDataField);this._legend=new oh({renderer:this._renderer,widget:this,group:this._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",titleGroupClass:"dxc-title",textField:n.textField,getFormatObject:n.getFormatObject,allowInsidePosition:this._allowLegendInsidePosition()}),this._updateLegend(),this._layout.add(this._legend)},_updateLegend:function(){var n=this._themeManager,t=n.getOptions("legend"),e=this._getLegendData();t.containerBackgroundColor=n.getOptions("containerBackgroundColor"),t._incidentOccurred=this._incidentOccurred,this._legend.update(e,t,n.theme("legend").title),this._change(["LAYOUT"])},_prepareDrawOptions:function(n){var t=this._getAnimationOptions(),e=(0,y.l)({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,animate:t.enabled,animationPointsLimit:t.maxPointCountSupported},n,this.__renderOptions);return(0,w.$K)(e.recreateCanvas)||(e.recreateCanvas=e.adjustAxes&&e.drawLegend&&e.drawTitle),e},_processRefreshData:function(n){var t=K2.indexOf(this._currentRefreshData),e=K2.indexOf(n);(!this._currentRefreshData||t>=0&&e<t)&&(this._currentRefreshData=n),this._requestChange(["REFRESH"])},_getLegendData:function(){return Vn(this._getLegendTargets(),function(n){var t=n.legendData,e=n.getLegendStyles,i=e.normal.opacity;n.visible||((!(0,w.$K)(i)||i>.3)&&(i=.3),t.textOpacity=.3);var r={opacity:i};return t.states={hover:(0,y.l)({},e.hover,r),selection:(0,y.l)({},e.selection,r),normal:(0,y.l)({},e.normal,r)},t})},_getLegendOptions:function(n){return{legendData:{text:n[this._legendItemTextField],id:n.index,visible:!0},getLegendStyles:n.getLegendStyles(),visible:n.isVisible()}},_disposeSeries(n){var t;this.series&&((0,w.$K)(n)?(this.series[n].dispose(),this.series.splice(n,1)):((0,O.S6)(this.series,(e,i)=>i.dispose()),this.series.length=0)),null!==(t=this.series)&&void 0!==t&&t.length||(this.series=[])},_disposeSeriesFamilies(){(0,O.S6)(this.seriesFamilies||[],function(n,t){t.dispose()}),this.seriesFamilies=null,this._needHandleRenderComplete=!0},_optionChanged:function(n){this._themeManager.resetOptions(n.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(TO)},_change_FORCE_RENDER:function(){this._processRefreshData(TO)},_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(){An(this._canvas),this._reinitAxes(),this._requestChange(["CORRECT_AXIS","FULL_RENDER"])},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData(TO)},_change_REINIT:function(){this._processRefreshData(U2)},_change_FORCE_DRAWING:function(){this._resetComponentsAnimation()},_change_FORCE_FIRST_DRAWING:function(){this._resetComponentsAnimation(!0)},_resetComponentsAnimation:function(n){this.series.forEach(t=>{t.resetApplyingAnimation(n)}),this._resetAxesAnimation(n)},_resetAxesAnimation:E.ZT,_refreshSeries:function(n){this.needToPopulateSeries=!0,this._requestChange([n])},_change_CORRECT_AXIS(){this._correctAxes()},_doRefresh:function(){var n=this._currentRefreshData;n&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[n]())},_updateCanvasClipRect:function(n){var t=Math.max(n.width-n.left-n.right,0),e=Math.max(n.height-n.top-n.bottom,0);this._canvasClipRect.attr({x:n.left,y:n.top,width:t,height:e}),this._backgroundRect.attr({x:n.left,y:n.top,width:t,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(n){n.createPoints(!1)},_handleSeriesDataUpdated(){this._getVisibleSeries().some(n=>n.useAggregation())&&this._populateMarginOptions(),this.series.forEach(n=>this._processSingleSeries(n),this)},_dataSpecificInit(n){(!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(),n&&this._requestChange(["FULL_RENDER"])},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var n=this._themeManager,t=this._dataSourceItems(),e=n.getOptions("dataPrepareSettings");n.getOptions("seriesTemplate")&&this._populateSeries(t),this._groupSeries();var r=a0(t,this._groupsData,this._incidentOccurred,e);n.resetPalette(),this.series.forEach(function(v){v.updateData(r[v.getArgumentField()])}),this._handleSeriesDataUpdated()},_renderCompleteHandler:function(){var n=!0;this._needHandleRenderComplete&&((0,O.S6)(this.series,function(t,e){n=n&&e.canRenderCompleteHandle()}),n&&(this._needHandleRenderComplete=!1,this._eventTrigger("done",{target:this})))},_dataIsReady:function(){return(0,w.$K)(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeriesOptions(n){for(var A,z,t=this,e=t._themeManager,i=e.getOptions("seriesTemplate"),r=i?Qi(i,n||[]):t.option("series"),v=W2(r)?r:r?[r]:[],D=t._getExtraOptions(),Q=[],ue=Le=>{t._specialProcessSeries(),t._populateBusinessRange(Le&&Le.getValueAxis(),!0),t._renderer.stopAllAnimations(!0),t._updateLegend(),t._requestChange(["FULL_RENDER"])},we=0;we<v.length;we++)A=(0,y.l)(!0,{},v[we],D),(!(0,w.$K)(A.name)||""===A.name)&&(A.name="Series "+(we+1).toString()),A.rotated=t._isRotated(),A.customizePoint=e.getOptions("customizePoint"),A.customizeLabel=e.getOptions("customizeLabel"),A.visibilityChanged=ue,A.incidentOccurred=t._incidentOccurred,z=e.getOptions("series",A,v.length),t._checkPaneName(z)&&Q.push(z);return Q},_populateSeries(n){var t,D,e=this,i=[],r=e._incidentOccurred,v=e._populateSeriesOptions(n),A=!1;e.needToPopulateSeries=!1,(0,O.S6)(v,(Q,ue)=>{var we=e.series&&e.series.filter(Le=>Le.name===ue.name&&-1===i.map(Ue=>Ue.series).indexOf(Le))[0];we&&we.type===ue.type?i.push({series:we,options:ue}):(i.push({options:ue}),A=!0)}),0!==(null===(t=e.series)||void 0===t?void 0:t.length)&&e._tracker.clearHover(),(0,O.iY)(e.series,(Q,ue)=>{i.some(we=>ue===we.series)||(e._disposeSeries(Q),A=!0)}),!A&&(A=i.some(Q=>Q.series.name!==v[Q.series.index].name)),e.series=[],A&&e._disposeSeriesFamilies(),e._themeManager.resetPalette();var z=function(Q){e.series.forEach(function(ue){ue.notify(Q)})};return(0,O.S6)(i,(Q,ue)=>{var we,Le,Ue=ue.options,ut=null!==(we=null===(Le=e._argumentAxes)||void 0===Le?void 0:Le.filter(Gt=>Gt.pane===Ue.pane)[0])&&void 0!==we?we:e.getArgumentAxis(),It={commonSeriesModes:e._getSelectionModes(),argumentAxis:ut,valueAxis:e._getValueAxis(Ue.pane,Ue.axis)};ue.series?(D=ue.series).updateOptions(Ue,It):D=new S0((0,y.l)({renderer:e._renderer,seriesGroup:e._seriesGroup,labelsGroup:e._labelsGroup,eventTrigger:e._eventTrigger,eventPipe:z,incidentOccurred:r},It),Ue),D.isUpdated?(D.index=e.series.length,e.series.push(D)):r("E2101",[Ue.type])}),e.series},getStackedPoints:function(n){var t=n.series.getStackName();return this._getVisibleSeries().reduce((e,i)=>((!(0,w.$K)(i.getStackName())||!(0,w.$K)(t)||t===i.getStackName())&&(e=e.concat(i.getPointsByArg(n.argument))),e),[])},getAllSeries:function(){return(this.series||[]).slice()},getSeriesByName:function(n){var t=null;return(0,O.S6)(this.series,function(e,i){if(i.name===n)return t=i,!1}),t},getSeriesByPos:function(n){return(this.series||[])[n]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip:function(){this._tracker._hideTooltip()},clearHover(){this._tracker.clearHover()},render:function(n){var t=this;return t.__renderOptions=n,t.__forceRender=n&&n.force,t.callBase.apply(t,arguments),t.__renderOptions=t.__forceRender=null,t},refresh:function(){this._disposeSeries(),this._disposeSeriesFamilies(),this._requestChange(["CONTAINER_SIZE","REFRESH_SERIES_REINIT"])},_getMinSize(){var n=this._layoutManagerOptions();return[n.width,n.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(n){Dd.prototype._optionChangesMap[n]="REFRESH_SERIES_DATA_INIT"}),["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","stickyHovering"].forEach(function(n){Dd.prototype._optionChangesMap[n]="FORCE_RENDER"}),["minBubbleSize","maxBubbleSize","barGroupPadding","barGroupWidth","negativesAsZeroes","negativesAsZeros"].forEach(function(n){Dd.prototype._optionChangesMap[n]="REFRESH_SERIES_FAMILIES"}),Dd.addPlugin(Bu),Dd.addPlugin(Oe),Dd.addPlugin(Ha),Dd.addPlugin(Ve),Dd.addPlugin(xi);var f7=Dd.prototype._change_TITLE;Dd.prototype._change_TITLE=function(){f7.apply(this,arguments),this._change(["FORCE_RENDER"])};var MO=Math,AO=MO.floor,JM=MO.max,$2=MO.abs,_7=n=>({transform:function(t,e){return(0,ae.zB)(xr(t,e,n.allowNegatives,n.linearThreshold))},getTicks:function(t,e,i){for(var r=[],v=this.transform(e[0],i);r.length<e.length;)r.push(v),v=(0,ae.zB)(v+t);return r}}),v7=n=>({transform:function(t,e){return(0,ae.zB)(Vr(t,e,n.allowNegatives,n.linearThreshold))},getTicks:function(t,e,i){for(var v,r=[],D=0;D<e.length;D+=1)v=this.transform(e[D],i),r.push(v);return r}});function Y2(n,t){if(n.isLogarithmic){var e=n.logarithmicBase,i=n.tickValues;n.minValue=t.transform(n.minValue,e),n.oldMinValue=t.transform(n.oldMinValue,e),n.maxValue=t.transform(n.maxValue,e),n.oldMaxValue=t.transform(n.oldMaxValue,e),n.tickInterval=MO.round(n.tickInterval),n.tickInterval<1&&(n.tickInterval=1);var r=t.getTicks(n.tickInterval,i,e);r.tickInterval=n.tickInterval,n.tickValues=r}}function bf(n){return n.maxValue-n.minValue||1}function X2(n){for(var t=0;t<n.length;t++)if(!n[t].stubData)return n[t];return null}var I7={synchronize:function(n){(0,O.S6)(function m7(n){var t={};return n.forEach(e=>{var i=e.pane;t[i]||(t[i]=[]),t[i].push(e)}),t}(n),function(t,e){var i,r;if(e.length>1){if(i=function y7(n){return n.reduce(function(t,e){var z,i=e.getTicksValues(),r=i.majorTicksValues,v=e.getOptions(),D=e.getTranslator().getBusinessRange(),A=e.getVisibleArea(),Q=e._tickInterval,ue=v.synchronizedValue,we=e.getViewport().action;if(r&&r.length>0&&(0,w.kE)(r[0])&&"discrete"!==v.type&&!D.isEmpty()&&(!D.breaks||!D.breaks.length)&&"zoom"!==we&&"pan"!==we){e.applyMargins();var Le=e.getTranslator().from(A[0]),Ue=e.getTranslator().from(A[1]),ut=Le<Ue?Le:Ue,It=Le<Ue?Ue:Le;ut===It&&(0,w.$K)(ue)&&(Q=$2(r[0]-ue)||1,ut=r[0]-Q,It=r[0]+Q),Y2(z={axis:e,isLogarithmic:"logarithmic"===v.type,logarithmicBase:D.base,tickValues:r,minorValues:i.minorTicksValues,minorTickInterval:e._minorTickInterval,minValue:ut,oldMinValue:ut,maxValue:It,oldMaxValue:It,inverted:D.invert,tickInterval:Q,synchronizedValue:ue},_7(e.getTranslator().getBusinessRange())),t.push(z)}return t},[])}(e),i.length<2||!X2(i))return;(function C7(n){var t=n.reduce((e,i)=>JM(e,i.tickValues.length),0);n.forEach(e=>{var i,r,v=0,D=e.synchronizedValue,A=e.tickValues,z=e.tickInterval;if((0,w.$K)(D))e.baseTickValue=e.invertedBaseTickValue=D,e.tickValues=[e.baseTickValue];else{if(A.length>1&&z){for(r=(i=AO((t+1)/A.length))>1?AO((t+1)/i):t,v=AO((r-A.length)/2);v>0&&0!==A[0];)A.unshift((0,ae.zB)(A[0]-z)),v--;for(;A.length<r;)A.push((0,ae.zB)(A[A.length-1]+z));e.tickInterval=z/i}e.baseTickValue=A[0],e.invertedBaseTickValue=A[A.length-1]}})})(i),function x7(n){var t=X2(n),e=t.tickInterval;n.forEach(i=>{var r,v,D,A;i!==t&&(e&&i.tickInterval&&(i.stubData&&(0,w.$K)(i.synchronizedValue)&&(i.oldMinValue=i.minValue=i.baseTickValue-(t.baseTickValue-t.minValue)/e*i.tickInterval,i.oldMaxValue=i.maxValue=i.baseTickValue-(t.baseTickValue-t.maxValue)/e*i.tickInterval),r=e/bf(t)/i.tickInterval*bf(i),i.maxValue=i.minValue+bf(i)/r),D=t.inverted&&!i.inverted||!t.inverted&&i.inverted?t.maxValue-t.invertedBaseTickValue:t.baseTickValue-t.minValue,A=bf(i),v=(D/bf(t)-(i.baseTickValue-i.minValue)/A)*A,i.minValue-=v,i.maxValue-=v)})}(i),r=function b7(n){var t,e,i=0,r=0;return n.forEach(v=>{var D=v.inverted;t=v.minValue>v.oldMinValue?(v.minValue-v.oldMinValue)/bf(v):0,e=v.maxValue<v.oldMaxValue?(v.oldMaxValue-v.maxValue)/bf(v):0,i=JM(i,D?e:t),r=JM(r,D?t:e)}),{start:i,end:r}}(i),r=function T7(n,t){return n.reduce((e,i)=>{var r=i.inverted,{start:v,end:D}=i.axis.getCorrectedValuesToZero(i.minValue,i.maxValue);return(0,w.$K)(v)||(0,w.$K)(D)?r?{start:e.start,end:Math.min(e.end,D)}:{start:Math.min(e.start,v),end:e.end}:e},t)}(i,r),function w7(n,t){n.forEach(e=>{var i=bf(e),r=e.inverted;e.minValue=(0,ae.zB)(e.minValue-t[r?"end":"start"]*i),e.maxValue=(0,ae.zB)(e.maxValue+t[r?"start":"end"]*i)})}(i,r),function O7(n){var e,t=[];n.forEach(i=>{i.oldMaxValue-i.oldMinValue==0?t.push(i):!(0,w.$K)(e)&&!(0,w.$K)(i.synchronizedValue)&&(e=$2((i.maxValue-i.minValue)/(i.tickValues[AO(i.tickValues.length/2)]-i.minValue||i.maxValue)))}),(0,w.$K)(e)&&t.forEach(i=>{var r=i.tickValues[0],v=r*e;r>0?(i.maxValue=v,i.minValue=0):r<0&&(i.minValue=v,i.maxValue=0)})}(i),function E7(n){var t=!1;n.forEach(e=>{t=t||(0,w.$K)(e.synchronizedValue)}),n.forEach(e=>{var A,i=e.tickInterval,r=e.tickValues,v=e.maxValue,D=e.minValue;if(t&&i){for(;(A=(0,ae.zB)(r[0]-i))>=D;)r.unshift(A);for(A=r[r.length-1];(A=(0,ae.zB)(A+i))<=v;)r.push(A)}for(;r[0]+i/10<D;)r.shift();for(;r[r.length-1]-i/10>v;)r.pop()})}(i),function D7(n){n.forEach(function(t){if(t.minorTickInterval){for(var e=[],i=t.minorTickInterval,r=t.tickInterval/i-1,v=1;v<t.tickValues.length;v++)for(var D=t.tickValues[v-1],A=0;A<r;A++)e.push(D+=i);t.minorValues=e}})}(i),i.forEach(v=>{Y2(v,v7(v.axis.getTranslator().getBusinessRange()))}),function S7(n){n.forEach(t=>{var e=t.axis,i=e.getTranslator().getBusinessRange();i.min===i.minVisible&&(i.min=t.minValue),i.max===i.maxVisible&&(i.max=t.maxValue),i.minVisible=t.minValue,i.maxVisible=t.maxValue,i.min>i.minVisible&&(i.min=i.minVisible),i.max<i.maxVisible&&(i.max=i.maxVisible),e.getTranslator().updateBusinessRange(i),e.setTicks({majorTicks:t.tickValues,minorTicks:t.minorValues})})}(i)}})}};const M7=I7;var{round:I0,abs:QM,pow:q2,sqrt:A7}=Math,J2=Math.min;function eA(n){return n.getStackName()||n.getBarOverlapGroup()}function Q2(n,t,e){var i,r,ue,v=[],D=[],A={},z=t.barGroupWidth,Q=null===(i=n[0])||void 0===i?void 0:i.getArgumentAxis();if(null!==(r=n[0])&&void 0!==r&&r.useAggregation()){var we,Le="datetime"===(null===(we=n[0])||void 0===we?void 0:we.argumentType),Ue=Q.getTickInterval(),ut=Q.getAggregationInterval();Ue=Le?te.Z.dateToMilliseconds(Ue):Ue,ue=(ut=Le?te.Z.dateToMilliseconds(ut):ut)<Ue?ut:Ue}ue=Q?.getTranslator().getInterval(ue);var It=z?ue>z?z:ue:ue*(1-function R7(n){return n<0||n>1?.3:n}(t.barGroupPadding));n.forEach(function(Gt,ln){var on,En=eA(Gt)||ln.toString();for(on in Gt.pointsByArgument)-1===D.indexOf(on.valueOf())&&D.push(on.valueOf());-1===v.indexOf(En)&&(v.push(En),A[En]=[]),A[En].push(Gt)}),D.forEach(function(Gt){var ln=v.reduce((on,Nt)=>(function L7(n,t){return n.some(function(e){return!e.getOptions().ignoreEmptyPoints||e.getPointsByArg(t,!0).some(function(i){return i.hasValue()})})}(A[Nt],Gt)&&on.push(Nt),on),[]),En=eL(It,ln.length);v.forEach(on=>{!function B7(n,t,e,i,r,v,D){n.forEach(function(A){var ut,z=D(t.indexOf(i),t.length),Q=A.getPointsByArg(e,!0),ue=function k7(n){return n<0||n>1?void 0:n}(A.getOptions().barPadding),we=A.getOptions().barWidth,Le=tL(z,r),Ue=r.width;-1!==z&&(((0,w.$K)(ue)||(0,w.$K)(we))&&(Ue=(ut=eL(v,t.length,1-ue,we)).width,A.getBarOverlapGroup()||(Le=tL(z,ut))),function F7(n,t,e){(0,O.S6)(n,function(i,r){r.correctCoordinates({width:t,offset:e})})}(Q,Ue,Le))})}(A[on],ln,Gt,on,En,It,e)})})}function eL(n,t,e,i){var r,v;return i?(v=J2(i,n/t),r=t>1?I0((n-I0(v)*t)/(t-1)):0):(0,w.$K)(e)?(v=n*e/t,r=t>1?I0((n-n*e)/(t-1)):0):v=(n-(r=I0(n/t*.2))*(t-1))/t,{width:v>1?I0(v):1,spacing:r,middleIndex:t/2,rawWidth:v}}function tL(n,t){return(n-t.middleIndex+.5)*(t.rawWidth<1?t.rawWidth:t.width)-(t.middleIndex-n-.5)*t.spacing}function Zv(n){return n.series.filter(function(t){return t.isVisible()})}function tA(n,t,e){return((n.positive[t]||{})[e]||0)+(-(n.negative[t]||{})[e]||0)}function nL(n){return n?function(t,e){return e-t-1}:function(t){return t}}function iL(n){return n[0]&&n[0].getArgumentAxis().getTranslator().isInverted()}function PO(){var n=Zv(this);Q2(n,this._options,nL(iL(n)))}function _b(){var n=this._options.negativesAsZeroes,t=Zv(this),e={positive:{},negative:{}},i={left:{},right:{}},r={},v={};t.forEach(function(D){var A=eA(D),z=!1,Q=function H7(n){for(var e,t=n.getPoints(),i=0;i<t.length;i++){var r=t[i];if(e=r.initialValue&&r.initialValue.valueOf(),QM(e)>0)break}return(0,ae.Xx)(e)}(D)<0?v:r;D._prevSeries=Q[A],Q[A]=D,D.holes=(0,y.l)(!0,{},i),D.getPoints().forEach(function(ue,we,Le){var Ue=ue.initialValue&&ue.initialValue.valueOf(),ut=ue.argument.valueOf(),It=Ue>=0?e.positive:e.negative,Gt="bar"!==D.type;n&&Ue<0&&(It=e.positive,Ue=0,ue.resetValue()),It[A]=It[A]||{};var ln=It[A];if(ln[ut]?(Gt&&ue.correctValue(ln[ut]),ln[ut]+=Ue):(ln[ut]=Ue,Gt&&ue.resetCorrection()),ue.hasValue())z&&(z=!1,i.left[ut]=(i.left[ut]||0)+(ue.value.valueOf()-(isFinite(ue.minValue)?ue.minValue.valueOf():0)),ue._skipSetLeftHole=!0);else{var En=Le[we-1];!z&&En&&En.hasValue()&&(ut=En.argument.valueOf(),En._skipSetRightHole=!0,i.right[ut]=(i.right[ut]||0)+(En.value.valueOf()-(isFinite(En.minValue)?En.minValue.valueOf():0))),z=!0}})}),t.forEach(function(D){var A=D.holes;D.getPoints().forEach(function(z){var Q=z.argument.valueOf();z.resetHoles(),!z._skipSetLeftHole&&z.setHole(A.left[Q]||i.left[Q]&&0,"left"),!z._skipSetRightHole&&z.setHole(A.right[Q]||i.right[Q]&&0,"right"),z._skipSetLeftHole=null,z._skipSetRightHole=null})}),this._stackKeepers=e,t.forEach(function(D){D.getPoints().forEach(function(A){var z=A.argument.valueOf(),Q=eA(D),ue=tA(e,Q,z),we=function N7(n,t,e){return((n.positive[t]||{})[e]||0)+((n.negative[t]||{})[e]||0)}(e,Q,z);A.setPercentValue(ue,we,i.left[z],i.right[z])})})}function rL(){var n=this,t=Zv(n),e=n._stackKeepers,i={positive:{},negative:{}};(0,O.S6)(t,function(r,v){var D=v.getOptions().minBarSize,A=v.getValueAxis().getTranslator(),z=D&&A.getMinBarSize(D),Q=v.getStackName();(0,O.S6)(v.getPoints(),function(ue,we){if(we.hasValue()){var Le=we.initialValue&&we.initialValue.valueOf(),Ue=we.argument.valueOf();n.fullStacked&&(Le=Le/tA(e,Q,Ue)||0);var ut=A.checkMinBarSize(Le,z,we.value),It=function V7(n){return n>=0?"positive":"negative"}(ut),Gt=i[It][Q]=i[It][Q]||{};Gt[Ue]?(we.minValue=Gt[Ue],Gt[Ue]+=ut):Gt[Ue]=ut,we.value=Gt[Ue]}})}),n.fullStacked&&function z7(n,t){(0,O.S6)(n,function(e,i){var r=i.getStackName?i.getStackName():"default";(0,O.S6)(i.getPoints(),function(v,D){var A=tA(t,r,D.argument.valueOf());0!==A&&(D.value=D.value/A,(0,w.kE)(D.minValue)&&(D.minValue=D.minValue/A))})})}(t,i)}function W7(){var n=Zv(this);(0,O.S6)(n,function(t,e){var i=e.getOptions().minBarSize,r=e.getValueAxis().getTranslator(),v=i&&r.getMinBarSize(i);v&&(0,O.S6)(e.getPoints(),function(D,A){A.hasValue()&&A.value.valueOf()-A.minValue.valueOf()<v&&(A.value=A.value.valueOf()+v/2,A.minValue=A.minValue.valueOf()-v/2)})})}function U7(){(0,O.S6)(this.series,function(n,t){var e=t.getOptions().minBarSize,i=t.getValueAxis().getTranslator(),r=e&&i.getMinBarSize(e);r&&(0,O.S6)(t.getPoints(),function(v,D){D.hasValue()&&(D.value=i.checkMinBarSize(D.initialValue,r))})})}function Z7(){var n=Zv(this);Q2(n,{barGroupPadding:.3},nL(iL(n)))}function K7(){var n=Zv(this);if(n.length){var ue,Le,t=this._options,e=n[0].getArgumentAxis().getVisibleArea(),i=n[0].getValueAxis().getVisibleArea(),r=J2(e[1]-e[0],i[1]-i[0]),v=q2(t.minBubbleSize,2),D=q2(r*t.maxBubbleSize,2),A=(r*t.maxBubbleSize+t.minBubbleSize)/2,z=1/0,Q=-1/0;(0,O.S6)(n,function(It,Gt){(0,O.S6)(Gt.getPoints(),function(ln,En){Q=Q>En.size?Q:En.size,z=z<En.size?z:En.size})});var Ue=Q-z,ut=QM(D-v);(0,O.S6)(n,function(It,Gt){(0,O.S6)(Gt.getPoints(),function(ln,En){Q===z?ue=I0(A):(Le=QM(En.size-z)/Ue,ue=I0(A7(ut*Le+v))),En.correctCoordinates(ue)})})}}function kO(n){switch(this.type=Sn(n.type),this.pane=n.pane,this.series=[],this.updateOptions(n),this.type){case"bar":this.adjustSeriesDimensions=PO,this.updateSeriesValues=U7,this.adjustSeriesValues=_b;break;case"rangebar":this.adjustSeriesDimensions=PO,this.updateSeriesValues=W7;break;case"fullstackedbar":this.fullStacked=!0,this.adjustSeriesDimensions=PO,this.adjustSeriesValues=_b,this.updateSeriesValues=rL;break;case"stackedbar":this.adjustSeriesDimensions=PO,this.adjustSeriesValues=_b,this.updateSeriesValues=rL;break;case"fullstackedarea":case"fullstackedline":case"fullstackedspline":case"fullstackedsplinearea":this.fullStacked=!0,this.adjustSeriesValues=_b;break;case"stackedarea":case"stackedsplinearea":case"stackedline":case"stackedspline":this.adjustSeriesValues=_b;break;case"candlestick":case"stock":this.adjustSeriesDimensions=Z7;break;case"bubble":this.adjustSeriesDimensions=K7}}kO.prototype={constructor:kO,adjustSeriesDimensions:E.ZT,adjustSeriesValues:E.ZT,updateSeriesValues:E.ZT,updateOptions:function(n){this._options=n},dispose:function(){this.series=null},add:function(n){var t=this.type;this.series=Vn(n,e=>e.type===t?e:null)}};var M0=Array.isArray,aL="commonAxisSettings",sL="default",RO="VISUAL_RANGE";function lL(n){return M0(n)?0===n.length?[{}]:n:[n]}function uL(n,t,e,i){var r,v;if(e){r={skipEventRising:!0};var D=dL(n.fullName,v=n.value);D&&(r={allowPartialUpdate:!0},v=D)}else v=((0,w.$K)(i)?n.value[i]:n.value).visualRange;t.visualRange(v,r)}function dL(n,t){var e=n.split("."),i=e[e.length-1];if("endValue"===i||"startValue"===i)return{[i]:t}}var cL=Dd.inherit({_fontFields:[aL+".label.font",aL+".title.font"],_partialOptionChangesMap:{visualRange:RO,_customVisualRange:RO,strips:"REFRESH_AXES",constantLines:"REFRESH_AXES"},_partialOptionChangesPath:{argumentAxis:["strips","constantLines","visualRange","_customVisualRange"],valueAxis:["strips","constantLines","visualRange","_customVisualRange"]},_initCore(){this._panesClipRects={},this.callBase()},_disposeCore(){var n=this._disposeObjectsInArray,t=this._panesClipRects;this.callBase(),n.call(t,"fixed"),n.call(t,"base"),n.call(t,"wide"),this._panesClipRects=null,this._labelsAxesGroup.linkOff(),this._labelsAxesGroup.dispose(),this._labelsAxesGroup=null},_dispose:function(){var n=this._disposeObjectsInArray;this.callBase(),this.panes=null,this._legend&&(this._legend.dispose(),this._legend=null),n.call(this,"panesBackground"),n.call(this,"seriesFamilies"),this._disposeAxes()},_createPanes:function(){this._cleanPanesClipRects("fixed"),this._cleanPanesClipRects("base"),this._cleanPanesClipRects("wide")},_cleanPanesClipRects(n){(this._panesClipRects[n]||[]).forEach(e=>e&&e.dispose()),this._panesClipRects[n]=[]},_getElementsClipRectID(n){var t=this._panesClipRects.fixed[this._getPaneIndex(n)];return t&&t.id},_getPaneIndex(n){var t,e=n||sL;return(0,O.S6)(this.panes,(i,r)=>{if(r.name===e)return t=i,!1}),t},_updateSize(){this.callBase(),An(this._canvas)},_reinitAxes:function(){this.panes=this._createPanes(),this._populateAxes(),this._axesReinitialized=!0},_populateAxes(){var D,ue,n=this,t=n.panes,e=n._isRotated(),i=lL(n.option("argumentAxis")||{})[0],r=n.option("valueAxis"),v=lL(r||{}),A=[],z=[],Q=0,we=n._getCrosshairMargins();ue=e?"right"===i.position?t[t.length-1].name:t[0].name:"top"===i.position?t[0].name:t[t.length-1].name,D=Vn(t,Le=>n._populateAxesOptions("argumentAxis",i,{pane:Le.name,name:null,optionPath:"argumentAxis",crosshairMargin:e?we.x:we.y},e,Le.name!==ue)),(0,O.S6)(v,(Le,Ue)=>{var ut,It=[],Gt=Ue.name;Gt&&z.includes(Gt)?n._incidentOccurred("E2102"):(Gt&&z.push(Gt),Ue.pane&&It.push(Ue.pane),null!==(ut=Ue.panes)&&void 0!==ut&&ut.length&&(It=It.concat(Ue.panes.slice(0))),(It=Si(It)).length||It.push(void 0),(0,O.S6)(It,(ln,En)=>{var on=M0(r)?"valueAxis[".concat(Le,"]"):"valueAxis";A.push(n._populateAxesOptions("valueAxis",Ue,{name:Gt||"defaultAxisName"+Q++,pane:En,priority:Le,optionPath:on,crosshairMargin:e?we.y:we.x},e))}))}),n._redesignAxes(D,!0,ue),n._redesignAxes(A,!1)},_redesignAxes(n,t,e){var i=this,r=[],v=t?i._argumentAxes:i._valueAxes;(0,O.S6)(n,(D,A)=>{var z=v&&v.filter(Q=>Q.name===A.name&&(!(0,w.$K)(A.pane)&&i.panes.some(ue=>ue.name===Q.pane)||Q.pane===A.pane));z&&z.length>0?(0,O.S6)(z,(Q,ue)=>{var we=function Y7(n,t,e){if(e)return{argumentAxisType:n.argumentAxisType,argumentType:n.argumentType};var{valueAxisType:i,valueType:r}=n.groups.filter(v=>v.valueAxis===t)[0];return{valueAxisType:i,valueType:r}}(i._groupsData,ue,t);ue.updateOptions(A),t?ue.setTypes(we.argumentAxisType,we.argumentType,"argumentType"):ue.setTypes(we.valueAxisType,we.valueType,"valueType"),ue.validate(),r.push({axis:ue})}):r.push({options:A})}),v?(0,O.iY)(v,(D,A)=>{r.some(z=>z.axis&&z.axis===A)||i._disposeAxis(D,t)}):v=t?i._argumentAxes=[]:i._valueAxes=[],(0,O.S6)(r,(D,A)=>{var z=A.axis;A.axis&&t?A.axis.isVirtual=A.axis.pane!==e:A.options&&(z=i._createAxis(t,A.options,t?A.options.pane!==e:void 0),v.push(z)),z.applyVisualRangeSetter(i._getVisualRangeSetter())})},_disposeAxis(n,t){var e=t?this._argumentAxes:this._valueAxes,i=e[n];i&&(i.dispose(),e.splice(n,1))},_disposeAxes:function(){var n=this._disposeObjectsInArray;n.call(this,"_argumentAxes"),n.call(this,"_valueAxes")},_appendAdditionalSeriesGroups:function(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets:function(){return(this.series||[]).map(n=>{var t=this._getLegendOptions(n);return t.legendData.series=n,n.getOptions().showInLegend||(t.legendData.visible=!1),t})},_legendItemTextField:"name",_seriesPopulatedHandlerCore:function(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers:function(){var n;for(n=0;n<this.series.length;++n)this.series[n].drawTrackers()},_specialProcessSeries:function(){this._processSeriesFamilies()},_processSeriesFamilies:function(){var n,r,t=this,e=[],i=[],v=t._themeManager,D=v.getOptions("negativesAsZeroes"),A=v.getOptions("negativesAsZeros"),z={minBubbleSize:v.getOptions("minBubbleSize"),maxBubbleSize:v.getOptions("maxBubbleSize"),barGroupPadding:v.getOptions("barGroupPadding"),barGroupWidth:v.getOptions("barGroupWidth"),negativesAsZeroes:(0,w.$K)(D)?D:A};null!==(n=t.seriesFamilies)&&void 0!==n&&n.length?(0,O.S6)(t.seriesFamilies,function(Q,ue){ue.updateOptions(z),ue.adjustSeriesValues()}):((0,O.S6)(t.series,function(Q,ue){e.includes(ue.type)||e.push(ue.type)}),(0,O.S6)(t._getLayoutTargets(),function(Q,ue){r=t._getSeriesForPane(ue.name),(0,O.S6)(e,function(we,Le){var Ue=new kO({type:Le,pane:ue.name,minBubbleSize:z.minBubbleSize,maxBubbleSize:z.maxBubbleSize,barGroupPadding:z.barGroupPadding,barGroupWidth:z.barGroupWidth,negativesAsZeroes:z.negativesAsZeroes,rotated:t._isRotated()});Ue.add(r),Ue.adjustSeriesValues(),i.push(Ue)})}),t.seriesFamilies=i)},_updateSeriesDimensions:function(){var n,t=this.seriesFamilies||[];for(n=0;n<t.length;n++){var e=t[n];e.updateSeriesValues(),e.adjustSeriesDimensions()}},_getLegendCallBack:function(n){return this._legend&&this._legend.getActionCallback(n)},_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 n=this,t=function $7(n,t,e,i){return Math.min(i?n.width/t:n.width,i?n.height:n.height/t)*e}(n.getSize(),n.panes.length,n._themeManager.getOptions("maxBubbleSize"),n._isRotated()),e={};n._valueAxes.forEach(i=>{var r=n.series.filter(function(D){return D.getValueAxis()===i}),v={};r.forEach(D=>{if(D.isVisible()){var A=function j7(n,t){return n.processBubbleSize&&(n.size=t),n}(D.getMarginOptions(),t);v=lr(v,A),e=lr(e,A)}}),i.setMarginOptions(v)}),n._argumentAxes.forEach(i=>i.setMarginOptions(e))},_populateBusinessRange(n,t){var e=this,i=e._isRotated(),r=e._getVisibleSeries(),v={},D=new os({rotated:!!i}),A=Q=>Q.pane||sL;if(e.panes.forEach(Q=>v[Q.name]=new os({rotated:!!i})),e._valueAxes.forEach(Q=>{var ue=new os({rotated:!!i,pane:Q.pane,axis:Q.name}),we=r.filter(Le=>Le.getValueAxis()===Q);we.forEach(Le=>{var Ue=Le.getRangeData();ue.addRange(Ue.val),v[A(Q)].addRange(Ue.arg)}),(!n||n&&we.length&&Q===n)&&(Q.setGroupSeries(we),Q.setBusinessRange(ue,e._axesReinitialized||t,e._argumentAxes[0]._lastVisualRangeUpdateMode))}),!n||n&&r.length){Object.keys(v).forEach(Q=>D.addRange(v[Q]));var z=D.interval;e._argumentAxes.forEach(Q=>{var ue,we=null!==(ue=v[A(Q)].interval)&&void 0!==ue?ue:z;Q.setBusinessRange(new os((0,ui.Z)({},D,{interval:we})),e._axesReinitialized,void 0,e._groupsData.categories)})}e._populateMarginOptions()},getArgumentAxis:function(){return(this._argumentAxes||[]).filter(n=>!n.isVirtual)[0]},getValueAxis:function(n){return(this._valueAxes||[]).filter((0,w.$K)(n)?t=>t.name===n:t=>t.pane===this.defaultPane)[0]},_getGroupsData:function(){var n=this,t=[];return n._valueAxes.forEach(function(e){t.push({series:n.series.filter(function(i){return i.getValueAxis()===e}),valueAxis:e,valueOptions:e.getOptions()})}),{groups:t,argumentAxes:n._argumentAxes,argumentOptions:n._argumentAxes[0].getOptions()}},_groupSeries:function(){this._correctValueAxes(!1),this._groupsData=this._getGroupsData()},_processValueAxisFormat:function(){var n=[];this.series.forEach(function(t){var e=t.getValueAxis();t.isFullStackedSeries()&&(e.setPercentLabelFormat(),n.push(e))}),this._valueAxes.forEach(function(t){-1===n.indexOf(t)&&t.resetAutoLabelFormat()})},_populateAxesOptions(n,t,e,i,r){var v=this._prepareStripsAndConstantLines(n,t,i),D=(0,y.l)(!0,{},v,e,this._prepareAxisOptions(n,v,i));return r&&(D.visible=D.tick.visible=D.minorTick.visible=D.label.visible=!1,D.title={}),D},_getValFilter:n=>dh.getViewPortFilter(n.getValueAxis().visualRange()||{}),_createAxis(n,t,e){var i=this,v=(0,y.l)({renderer:i._renderer,incidentOccurred:i._incidentOccurred,eventTrigger:i._eventTrigger,axisClass:n?"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:n,getTemplate:A=>i._getTemplate(A)},i._getAxisRenderingOptions(n?"argumentAxis":"valueAxis")),D=new Hl(v);return D.updateOptions(t),D.isVirtual=e,D},_applyVisualRangeByVirtualAxes:(n,t)=>!1,_applyCustomVisualRangeOption(n,t){n.getOptions().optionPath&&this._parseVisualRangeOption("".concat(n.getOptions().optionPath,".visualRange"),t)},_getVisualRangeSetter(){var n=this;return function(t,e){var{skipEventRising:i,range:r}=e;n._applyCustomVisualRangeOption(t,r),t.setCustomVisualRange(r),t.skipEventRising=i,n._applyVisualRangeByVirtualAxes(t,r)||(n._applyingChanges?n._change_VISUAL_RANGE():n._requestChange([RO]))}},_getTrackerSettings:function(){return(0,y.l)(this.callBase(),{argumentAxis:this.getArgumentAxis()})},_prepareStripsAndConstantLines:function(n,t,e){return(t=this._themeManager.getOptions(n,t,e)).strips&&(0,O.S6)(t.strips,function(i){t.strips[i]=(0,y.l)(!0,{},t.stripStyle,t.strips[i])}),t.constantLines&&(0,O.S6)(t.constantLines,function(i,r){t.constantLines[i]=(0,y.l)(!0,{},t.constantLineStyle,r)}),t},refresh:function(){this._disposeAxes(),this.callBase()},_layoutAxes(n){n();var t=this.checkForMoreSpaceForPanesCanvas();if(t){var e=this._rect.slice(),i=this._layout.backward(e,e,[t.width,t.height]);t.width=Math.max(0,i[0]),t.height=Math.max(0,i[1]),this._canvas=this._createCanvasFromRect(e),n(t)}},checkForMoreSpaceForPanesCanvas(){return this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),this._isRotated())},_parseVisualRangeOption(n,t){var e=this,i=n.split(/[.[]/)[0],r=n.match(/\d+/g);r=(0,w.$K)(r)?parseInt(r[0]):r,n.indexOf("visualRange")>0?("object"!==(0,w.dt)(t)&&(t=dL(n,t)||t),e._setCustomVisualRange(i,r,t)):("object"===(0,w.dt)(t)||M0(t))&&i.indexOf("Axis")>0&&JSON.stringify(t).indexOf("visualRange")>0&&((0,w.$K)(t.visualRange)?e._setCustomVisualRange(i,r,t.visualRange):M0(t)&&t.forEach((v,D)=>(0,w.$K)(v.visualRange)&&e._setCustomVisualRange(i,D,v.visualRange)))},_setCustomVisualRange(n,t,e){var i=this._options.silent(n);i&&((0,w.$K)(t)?i[t]._customVisualRange=e:i._customVisualRange=e,this._axesReinitialized=!0)},_raiseZoomEndHandlers(){this._valueAxes.forEach(n=>n.handleZoomEnd())},_setOptionsByReference(){this.callBase(),(0,y.l)(this._optionsByReference,{"valueAxis.visualRange":!0})},_notifyOptionChanged(n,t,e){this.callBase.apply(this,arguments),this._optionChangedLocker||this._parseVisualRangeOption(n,t)},_notifyVisualRange(){var n=this;n._valueAxes.forEach(t=>{var e=t.getOptions().optionPath;if(e){var i="".concat(e,".visualRange"),r=kr(t.visualRange(),!M0(n.option(i)));t.skipEventRising&&Nr(r,n.option(i))?t.skipEventRising=null:n.option(e)||"valueAxis"===e?n.option(i,r):n.option(e,{name:t.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(n,t,e){var v,i=this._getAxesForScaling(),r=[];return t?(n.fullName&&(v=n.fullName.slice(0,n.fullName.indexOf("."))),r=i.filter(D=>D.getOptions().optionPath===v)):"object"===(0,w.dt)(n.value)?r=i.filter(D=>D.getOptions().optionPath===n.name):M0(n.value)&&n.value.forEach((D,A)=>{var z=i.filter(Q=>Q.getOptions().optionPath==="".concat(n.name,"[").concat(A,"]"))[0];(0,w.$K)(D[e])&&(0,w.$K)(z)&&(r[A]=z)}),r},_optionChanged(n){if(!this._optionChangedLocker){var t,e=n.fullName.indexOf("visualRange")>0||!(this.getPartialChangeOptionsName(n).indexOf("visualRange")>-1)&&void 0;(0,w.$K)(e)&&(t=this._getAxesByOptionPath(n,e,"visualRange"))&&(t.length>1||M0(n.value)?t.forEach((i,r)=>uL(n,i,e,r)):1===t.length&&uL(n,t[0],e))}this.callBase(n)},_change_VISUAL_RANGE:function(){if(this._recreateSizeDependentObjects(!1),!this._changes.has("FULL_RENDER")){var n=this.option("resizePanesOnZoom");this._doRender({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:n??(this.option("adjustAxesOnZoom")||!1),animate:!1}),this._raiseZoomEndHandlers()}},resetVisualRange(){var n=this;n._valueAxes.forEach(t=>{t.resetVisualRange(!1),n._applyCustomVisualRangeOption(t)}),n._requestChange([RO])},_getCrosshairMargins:()=>({x:0,y:0}),_legendDataField:"series",_adjustSeriesLabels:E.ZT,_correctValueAxes:E.ZT}),ls=l(6722),LO=Math.min,nA=Math.max,pL=function(n,t){this._translator=new Hg({},{},{}),this._scroll=n.rect().append(t),this._addEvents()};function X7(n,t,e,i){var r=0;return"right"===t?r=n.width-n.right+e:"left"===t&&(r=n.left-e-i),r}function q7(n,t,e,i){var r=0;return"top"===t?r=n.top-e:"bottom"===t&&(r=n.height-n.bottom+i+e),r}pL.prototype={_addEvents:function(){var n=this._scroll.element;d.Z.on(n,ls.BL,t=>{(0,k.BX)({type:"dxc-scroll-start",originalEvent:t,target:n})}),d.Z.on(n,ls.pB,t=>{var e=-t.offset.x*this._scale,i=-t.offset.y*this._scale,r=this._offset-(this._layoutOptions.vertical?i:e)/this._scale;this._applyPosition(r,r+this._translator.canvasLength/this._scale),(0,k.BX)({type:"dxc-scroll-move",originalEvent:t,target:n,offset:{x:e,y:i}})}),d.Z.on(n,ls.ut,t=>{(0,k.BX)({type:"dxc-scroll-end",originalEvent:t,target:n,offset:{x:-t.offset.x*this._scale,y:-t.offset.y*this._scale}})})},update:function(n){var t=n.position,e=n.rotated,i=e?"right":"top";return t!==i&&t!==(e?"left":"bottom")&&(t=i),this._scroll.attr({rotate:n.rotated?0:-90,rotateX:0,rotateY:0,fill:n.color,width:n.width,opacity:n.opacity}),this._layoutOptions={width:n.width,offset:n.offset,vertical:e,position:t},this},init:function(n,t){var e="discrete"===n.axisType;return this._translateWithOffset=e&&!t?1:0,this._translator.update((0,y.l)({},n,{minVisible:null,maxVisible:null,visibleCategories:null},e&&{min:null,max:null}||{}),this._canvas,{isHorizontal:!this._layoutOptions.vertical,stick:t}),this},getOptions:function(){return this._layoutOptions},setPane:function(n){var t=this._layoutOptions.position;return this.pane=("left"===t||"top"===t?n[0]:n[n.length-1]).name,this},updateSize:function(n){this._canvas=(0,y.l)({},n);var t=this._layoutOptions,e=t.position,i=t.offset,r=t.width;this._scroll.attr({translateX:X7(n,e,i,r),translateY:q7(n,e,i,r)})},getMultipleAxesSpacing:function(){return 0},estimateMargins:function(){return this.getMargins()},getMargins:function(){var n=this._layoutOptions,t={left:0,top:0,right:0,bottom:0};return t[n.position]=n.width+n.offset,t},shift:function(n){var t,e,i=this._layoutOptions,r=i.position,v=i.vertical,D={translateX:null!==(t=this._scroll.attr("translateX"))&&void 0!==t?t:0,translateY:null!==(e=this._scroll.attr("translateY"))&&void 0!==e?e:0};D[v?"translateX":"translateY"]+=("left"===r||"top"===r?-1:1)*n[r],this._scroll.attr(D)},hideTitle:E.ZT,hideOuterElements:E.ZT,setPosition:function(n,t){var e=this._translator,i=(0,w.$K)(n)?e.translate(n,-this._translateWithOffset):e.translate("canvas_position_start"),r=(0,w.$K)(t)?e.translate(t,this._translateWithOffset):e.translate("canvas_position_end");this._offset=LO(i,r),this._scale=e.getScale(n,t),this._applyPosition(LO(i,r),nA(i,r))},customPositionIsAvailable:()=>!1,dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(n,t){var e=this._translator.getCanvasVisibleArea();n=nA(n,e.min),n=LO(n,e.max),t=LO(t,e.max),t=nA(t,e.min);var i=Math.abs(t-n);this._scroll.attr({y:n,height:i<2?2:i})}};var BO=Math,gL=BO.abs,fL=BO.min,mL=BO.max,_L=BO.floor;function CL(n){return{x:n.x-8,y:n.y-4,width:n.width+16,height:n.height+8}}function xL(n,t,e,i){var r=e?["x","width","y","height",t,0]:["y","height","x","width",n,1];return function(v,D,A){var z={x:A.x,y:A.y},Q=CL(v),ue=e?A.y-v.y-v.height/2:A.y-v.y;return z.y=e||!e&&"bottom"===D?A.y+ue:A.y,Q[r[0]]<0?z[r[0]]-=Q[r[0]]:Q[r[0]]+Q[r[1]]+ue*r[5]>i[r[1]]&&(z[r[0]]-=Q[r[0]]+Q[r[1]]+ue*r[5]-i[r[1]]),r[4]-Q[r[3]]/2<0?z[r[2]]-=r[4]-Q[r[3]]/2:r[4]+Q[r[3]]/2>i[r[3]]&&(z[r[2]]-=r[4]+Q[r[3]]/2-i[r[3]]),z}}function oA(n,t,e,i){this._renderer=n,this._crosshairGroup=i,this._options={},this.update(t,e)}oA.prototype={constructor:oA,update:function(n,t){var e=t.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=t.axes,this._panes=t.panes,this._prepareOptions(n,"horizontal"),this._prepareOptions(n,"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(n,t){var e=n[t+"Line"];this._options[t]={visible:e.visible,line:{stroke:e.color||n.color,"stroke-width":e.width||n.width,dashStyle:e.dashStyle||n.dashStyle,opacity:e.opacity||n.opacity,"stroke-linecap":"butt"},label:(0,y.l)(!0,{},n.label,e.label)}},_createLines:function(n,t,e){for(var i=[],r=this._canvas,v=[r.left,r.top,r.left,r.top],D=0;D<2;D++)i.push(this._renderer.path(v,"line").attr(n).sharp(t).append(e));return i},render:function(){var n=this._renderer,t=this._options,e=t.vertical,i=t.horizontal,r=i.visible?i.line:e.line,v={stroke:r.stroke,"stroke-width":r["stroke-width"],dashStyle:r.dashStyle,opacity:r.opacity},D=this._canvas;this._horizontal={},this._vertical={},this._circle=n.circle(D.left,D.top,0).attr(v).append(this._crosshairGroup),this._horizontalGroup=n.g().append(this._crosshairGroup),this._verticalGroup=n.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(n,t,e,i){var D,A,z,ue,we,r=this._canvas,v=this._renderer,Q=[],Le=t.label;return Le.visible&&n.forEach(function(Ue){var ut=Ue.getOptions().position;if(!Ue.getTranslator().getBusinessRange().isEmpty()){we=Ue.getLabelsPosition(),e?(A=r.top,D=we):(D=r.left,A=we);var It="top"===ut||"bottom"===ut?"center":"right"===ut?"left":"right";ue=v.rect(0,0,0,0).attr({fill:Le.backgroundColor||t.line.stroke}).append(i),z=v.text("0",0,0).css(di(t.label.font)).attr({align:It,class:Le.cssClass}).append(i),Q.push({text:z,background:ue,axis:Ue,options:Le,pos:{coord:we,side:ut},startXY:{x:D,y:A}})}}),Q},_updateText:function(n,t,e,i,r){var v=this;e.forEach(function(D){var A=D.axis,z=D.startXY,Q=D.text,ue=D.background,we="";(!A.name||A.name===t)&&(we=A.getFormattedValue(n,D.options,i)),we?(Q.attr({text:we,x:z.x,y:z.y}),Q.attr(r(Q.getBBox(),D.pos.side,z)),v._updateLinesCanvas(D),ue.attr(CL(Q.getBBox()))):(Q.attr({text:""}),ue.attr({x:0,y:0,width:0,height:0}))})},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(n){var t=n.pos.side,e=n.pos.coord,i=this._linesCanvas,r=this._canvas;i[t]=i[t]!==r[t]&&gL(i[t]-r[t])<gL(e-r[t])?i[t]:e},_updateLines:function(n,t,e,i,r){for(var v=this._linesCanvas,D=this._canvas,A=r?[[fL(t-i,v.left),D.top,t-i,D.top],[t+i,D.top,mL(v.right,t+i),D.top]]:[[D.left,fL(v.top,e-i),D.left,e-i],[D.left,e+i,D.left,mL(v.bottom,e+i)]],z=0;z<2;z++)n[z].attr({points:A[z]}).sharp(r?"v":"h",r?e===D.bottom?-1:1:t===D.right?-1:1)},_resetLinesCanvas:function(){var n=this._canvas;this._linesCanvas={left:n.left,right:n.right,top:n.top,bottom:n.bottom}},_getClipRectForPane:function(n,t){var i,r,e=this._panes;for(i=0;i<e.length;i++)if((r=e[i].coords).left<=n&&r.right>=n&&r.top<=t&&r.bottom>=t)return e[i].clipRect;return{id:null}},show:function(n){var t=n.point,e=t.getCrosshairData(n.x,n.y),i=t.getPointRadius(),r=this._horizontal,v=this._vertical,D=i?i+3:0,A=this._canvas,z=_L(e.x),Q=_L(e.y);z>=A.left&&z<=A.right&&Q>=A.top&&Q<=A.bottom?(this._crosshairGroup.attr({visibility:"visible"}),this._resetLinesCanvas(),this._circle.attr({cx:z,cy:Q,r:D,"clip-path":this._getClipRectForPane(z,Q).id}),r.lines&&(this._updateText(e.yValue,e.axis,r.labels,t,xL(z,Q,!0,A)),this._updateLines(r.lines,z,Q,D,!0),this._horizontalGroup.attr({translateY:Q-A.top})),v.lines&&(this._updateText(e.xValue,e.axis,v.labels,t,xL(z,Q,!1,A)),this._updateLines(v.lines,z,Q,D,!1),this._verticalGroup.attr({translateX:z-A.left}))):this.hide()}};var vb=".shutter-zoom",rW=ls.BL+vb,oW=ls.pB+vb,aW=ls.ut+vb;function bL(n,t,e,i){var r=Math.floor(e?i.pageY-n.top:i.pageX-n.left),v=e?t.y1:t.x1,D=e?t.y2:t.x2;return r<v?r=v:r>D&&(r=D),r}const hW={name:"shutter_zoom",init:function(){var n=this.option("shutterZoom")||{};n.enabled&&(this._shutterZoom=function cW(n){var t=n.chart,e=n.renderer,i=n.rotated,r=e.rect(0,0,0,0).attr(n.shutterOptions),v={rect:r,root:e.root,rotated:i,triggerStart:function(){t._eventTrigger("zoomStart")},triggerEnd:function(){var D=t._argumentAxes[0].getTranslator(),A=Math.min(this.startCoord,this.curCoord),z=Math.max(this.startCoord,this.curCoord);t._eventTrigger("zoomEnd",{rangeStart:D.from(A),rangeEnd:D.from(z)})},dispose:function(){e.root.off(vb),r.dispose()},getRootOffset:function(){return e.getRootOffset()},getCanvas:function(){var D=t._canvas,A=t.panes,z=A[0].canvas,Q=A[A.length-1].canvas;return{x1:z.left,y1:z.top,x2:D.width-Q.right,y2:D.height-Q.bottom,width:D.width-z.left-Q.right,height:D.height-z.top-Q.bottom}}};return e.root.off(vb).on(rW,{direction:i?"vertical":"horizontal",immediate:!0},function lW(n){return function(t){var e=n.getRootOffset(),i=n.getCanvas();!function sW(n,t,e){var i=e.pageX-n.left,r=e.pageY-n.top;return i>=t.x1&&i<=t.x2&&r>=t.y1&&r<=t.y2}(e,i,t)?t.cancel=!0:(n.rootOffset=e,n.canvas=i,n.startCoord=bL(e,i,n.rotated,t),n.triggerStart(),n.rect.attr({x:i.x1,y:i.y1,width:i.width,height:i.height}).append(n.root))}}(v)).on(oW,function uW(n){return function(t){var e=bL(n.rootOffset,n.canvas,n.rotated,t),i={};n.curCoord=e,i[n.rotated?"y":"x"]=Math.min(n.startCoord,e),i[n.rotated?"height":"width"]=Math.abs(n.startCoord-e),n.rect.attr(i)}}(v)).on(aW,function dW(n){return function(t){n.triggerEnd(),n.rect.remove()}}(v)),v}({chart:this,renderer:this._renderer,rotated:this.option("rotated"),shutterOptions:n}))},dispose:function(){this._shutterZoom&&this._shutterZoom.dispose()}};var pW=l(3873),gW=l(2203),wL="start",EL="",SL="end",sA=[],FO=function(n,t){sA.push({name:n,args:t})};FO("transform",{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),FO("translate",{translation:!0,deltaTranslation:!0}),FO("pinch",{scale:!0,deltaScale:!0}),FO("rotate",{rotation:!0,deltaRotation:!0});var OL=function(n){var t=n.pointers;return function(n,t){return{x:t.pageX-n.pageX,y:-t.pageY+n.pageY,centerX:.5*(t.pageX+n.pageX),centerY:.5*(t.pageY+n.pageY)}}(t[0],t[1])},VO=function(n){return Math.sqrt(n.x*n.x+n.y*n.y)},DL=function(n,t){return VO(n)/VO(t)},TL=function(n,t){var e=n.x*t.x+n.y*t.y,i=VO(n)*VO(t);return 0===i?0:(0,ae.Xx)(n.x*t.y-t.x*n.y)*Math.acos((0,ae.n$)(e/i,-1,1))},IL=function(n,t){return{x:n.centerX-t.centerX,y:n.centerY-t.centerY}},CW=pW.Z.inherit({validatePointers:function(n){return(0,k.G7)(n)>1},start:function(n){this._accept(n);var t=OL(n);this._startVector=t,this._prevVector=t,this._fireEventAliases(wL,n)},move:function(n){var t=OL(n),e=this._getEventArgs(t);this._fireEventAliases(EL,n,e),this._prevVector=t},end:function(n){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(SL,n,t)},_getEventArgs:function(n){return{scale:DL(n,this._startVector),deltaScale:DL(n,this._prevVector),rotation:TL(n,this._startVector),deltaRotation:TL(n,this._prevVector),translation:IL(n,this._startVector),deltaTranslation:IL(n,this._prevVector)}},_fireEventAliases:function(n,t,e){e=e||{},O.S6(sA,function(i,r){var v={};O.S6(r.args,function(D){D in e&&(v[D]=e[D])}),this._fireEvent("dx"+r.name+n,t,v)}.bind(this))}}),ML=sA.reduce((n,t)=>([wL,EL,SL].forEach(e=>{n.push("dx"+t.name+e)}),n),[]);(0,gW.Z)({emitter:CW,events:ML});var AL={};O.S6(ML,function(n,t){AL[t.substring("dx".length)]=t});var{pinchstart:xW,pinch:bW,pinchend:wW}=AL,hc=".zoomAndPanNS",EW=ls.BL+hc,SW=ls.pB+hc,OW=ls.ut+hc,DW=xW+hc,TW=bW+hc,IW=wW+hc,PL="dxc-scroll-start"+hc,MW="dxc-scroll-move"+hc,AW="dxc-scroll-end"+hc,Kv=Math.min,kL=Math.max,yb=Math.abs;function Gv(n){return{x:n.left,y:n.top,width:n.width-n.left-n.right,height:n.height-n.top-n.bottom}}function Cb(n,t){var e=t.x,i=t.y;return e>=n.x&&e<=n.width+n.x&&i>=n.y&&i<=n.height+n.y}function xb(n){return n.filter(t=>!t.getTranslator().getBusinessRange().isEmpty())}function uA(n){return n.some(t=>!t.isExtremePosition(!1)||!t.isExtremePosition(!0))}function RL(n,t,e,i,r,v,D){var A=t&&n!==t,z=e(n),{stopInteraction:Q,correctedRange:ue}=n.checkZoomingLowerLimitOvercome(r,v,z),we=n.handleZooming(Q?null:ue,i(A),D,r);return Q&&n.handleZoomEnd(),{stopInteraction:Q,result:we}}function NO(n,t,e,i,r,v){t=function kW(n,t){return t&&(n=n.sort((e,i)=>e===t?-1:i===t?1:0)),n}(t,v);var D=!1,A=z=>({start:!!z,end:!!z});return xb(t).some(z=>{var Q=z.getTranslator(),ue=Q.getMinScale(i),{stopInteraction:we,result:Le}=RL(z,v,e((0,ui.Z)({scale:ue,translator:Q,axis:z},r)),A,"zoom",ue,n);return D=!we,v&&Le.isPrevented}),D}function HO(n){n.originalEvent&&HO(n.originalEvent),!1!==n.cancelable&&(n.cancel=!0)}const RW={name:"zoom_and_pan",init:function(){var n=this,t=this._renderer;function e(Ue,ut){var It=[],Gt=Ue.options,ln=Ue.actionData;return Gt.argumentAxis[ut]&&It.push(n.getArgumentAxis()),Gt.valueAxis[ut]&&(It=It.concat(ln.valueAxes)),It}function i(Ue,ut,It){xb(e(Ue,ut)).some(ln=>ln.handleZooming(null,{end:!0},It,ut).isPrevented)&&HO(It)}function r(Ue,ut,It,Gt,ln){function En(pi,yi,Ui,Bi,oi){var Fi={zoomed:!1};return yi&&xb(pi).forEach(Zi=>{var nr=Zi.getOptions(),hr=Zi.visualRange(),gr=Zi.getTranslator().getEventScale(Bi),Ur=-Gt(Bi,oi,Ui,gr);Fi=(0,y.l)(!0,Fi,Zi.getTranslator().zoom(Ur,gr,Zi.getZoomBounds()));var Ar=Zi.adjustRange(Dr([Fi.min,Fi.max])),{stopInteraction:Pr,correctedRange:Fr}=Zi.checkZoomingLowerLimitOvercome(ut,gr,Ar);if((0,w.$K)(hr)&&hr.startValue.valueOf()===Fr.startValue.valueOf()&&hr.endValue.valueOf()===Fr.endValue.valueOf()){if("touch"===Bi.pointerType&&"discrete"===nr.type){var io=Zi.isExtremePosition(!1),Hr=Zi.isExtremePosition(!0);Fi.enabled=gr>1&&!Pr||gr<1&&(!io||!Hr)||1===gr&&!(io&&(Ur<0&&!nr.inverted||Ur>0&&nr.inverted)||Hr&&(Ur>0&&!nr.inverted||Ur<0&&nr.inverted))}}else Zi.handleZooming(Pr?null:Fr,{start:!0,end:!0},Bi,ut),Pr||(Fi.zoomed=!0,Fi.deltaTranslate=Ur-Fi.translate)}),Fi}function on(pi,yi,Ui,Bi){Ui.zoomed&&(yi.offset[Bi]=(pi.offset?pi.offset[Bi]:yi.offset[Bi])+Ui.deltaTranslate)}function Nt(pi,yi,Ui,Bi){Ui.zoomed&&(yi.center[Bi]=pi[Bi]+Ui.deltaTranslate)}var Jt=n.option("rotated"),un=Ue.actionData,Mn=Ue.options,Kn={},Xn={};un.fallback||(Kn=En(n._argumentAxes,Mn.argumentAxis[ut],Jt?"y":"x",It,un),Xn=En(un.valueAxes,Mn.valueAxis[ut],Jt?"x":"y",It,un),n._requestChange(["VISUAL_RANGE"]),on(It,un,Kn,Jt?"y":"x"),on(It,un,Xn,Jt?"x":"y"));var si=ln(It);return Nt(si,un,Kn,Jt?"y":"x"),Nt(si,un,Xn,Jt?"x":"y"),!Kn.zoomed&&!Xn.zoomed&&(un.center=si),Kn.zoomed||Xn.zoomed||un.fallback||Kn.enabled||Xn.enabled}function v(Ue,ut,It,Gt){function ln(Mn,Kn,Xn,si){var pi=!1,yi=It.scale||1,Ui=oi=>{var Fi=oi.getTranslator().zoom(-Gt(It,Xn,Kn,yi),yi,oi.getZoomBounds());return{startValue:Fi.min,endValue:Fi.max}},Bi=oi=>({start:!0,end:oi});return xb(Mn).forEach(oi=>{pi=!RL(oi,si,Ui,Bi,ut,yi,It).stopInteraction}),pi}var En=n.option("rotated"),on=Ue.actionData,Nt=Ue.options,Jt=!0;if(on.fallback)Jt&=Nt.argumentAxis[ut]&&ln(n._argumentAxes,En?"y":"x",on,n.getArgumentAxis()),Jt|=Nt.valueAxis[ut]&&ln(on.valueAxes,En?"x":"y",on);else{var un=e(Ue,ut);xb(un).forEach(Mn=>{Mn.handleZooming(null,{start:!0},It,ut)}),Jt=un.length}Jt&&n._requestChange(["VISUAL_RANGE"])}function D(Ue,ut){var It=n._argumentAxes.filter(Gt=>Cb(Gv(Gt.getCanvas()),Ue));return{fallback:n._lastRenderingTime>300,cancel:!It.length||!(0,w.$K)(ut),action:ut,curAxisRect:It.length&&Gv(It[0].getCanvas()),valueAxes:It.length&&n._valueAxes.filter(Gt=>Cb(Gv(Gt.getCanvas()),Ue)),offset:{x:0,y:0},center:Ue,startCenter:Ue}}function A(Ue,ut){var It=t.getRootOffset();return{x:Kv(kL(ut.pageX-It.left,Ue.x),Ue.width+Ue.x),y:Kv(kL(ut.pageY-It.top,Ue.y),Ue.height+Ue.y)}}function z(Ue){var ut=t.getRootOffset(),It=Ue.pointers[0].pageX,Gt=Ue.pointers[1].pageX,ln=Ue.pointers[0].pageY,En=Ue.pointers[1].pageY;return{x:Kv(It,Gt)+yb(Gt-It)/2-ut.left,y:Kv(ln,En)+yb(En-ln)/2-ut.top}}function Q(Ue){var ut=t.getRootOffset();return{x:Ue.pageX-ut.left,y:Ue.pageY-ut.top}}function ue(Ue,ut,It){return Ue.offset[It]-ut.offset[It]}function we(Ue){!1!==Ue.cancelable&&(Ue.preventDefault(),Ue.stopPropagation()),n._stopCurrentHandling()}var Le={dragStartHandler:function(Ue){var Nt,ut=Le.options,It="touch"===Ue.pointerType,Gt=ut.argumentAxis.pan||ut.valueAxis.pan,ln=ut.argumentAxis.zoom||ut.valueAxis.zoom,En=(0,w.$K)(ut.panKey)&&Ue[Sn(ut.panKey)+"Key"],on=ut.dragToZoom;Ue._cancelPreventDefault=!0,It?ut.allowTouchGestures&&Gt&&(Nt=!Le.panningVisualRangeEnabled()||Le.skipEvent?null:"pan"):on&&Gt&&En||!on&&Gt?Nt="pan":on&&ln&&(Nt="zoom");var un=D(Q(Ue),Nt);if(un.cancel)return Le.skipEvent=!1,void(!1!==Ue.cancelable&&(Ue.cancel=!0));Le.actionData=un,"zoom"===Nt?(un.startCoords=A(un.curAxisRect,Ue),un.rect=t.rect(0,0,0,0).attr(ut.dragBoxStyle).append(t.root)):i(Le,"pan",Ue)},dragHandler:function(Ue){var ut=n.option("rotated"),It=Le.options,Gt=Le.actionData,ln="touch"===Ue.pointerType;if(Ue._cancelPreventDefault=!0,Gt&&(!ln||Le.panningVisualRangeEnabled()))if("zoom"===Gt.action){we(Ue);var En=Gt.curAxisRect,on=Gt.startCoords,Nt=A(En,Ue),Jt=It.argumentAxis.zoom,un=It.valueAxis.zoom,Mn={x:Kv(on.x,Nt.x),y:Kv(on.y,Nt.y),width:yb(on.x-Nt.x),height:yb(on.y-Nt.y)};(!Jt||!un)&&(!Jt&&!ut||!un&&ut?(Mn.x=En.x,Mn.width=En.width):(Mn.y=En.y,Mn.height=En.height)),Gt.rect.attr(Mn)}else if("pan"===Gt.action){r(Le,"pan",Ue,ue,si=>si.offset);var Kn=Math.abs(Ue.offset.y-Gt.offset.y),Xn=Math.abs(Ue.offset.x-Gt.offset.x);if(ln&&(Kn>5&&Kn>Math.abs(Gt.offset.x)||Xn>5&&Xn>Math.abs(Gt.offset.y)))return;we(Ue)}},dragEndHandler:function(Ue){var ut=n.option("rotated"),It=Le.options,Gt=Le.actionData,ln="touch"===Ue.pointerType,En=pi=>{var{translator:yi,startCoord:Ui,curCoord:Bi}=pi;return()=>[yi.from(Ui),yi.from(Bi)]},on=(pi,yi,Ui)=>({curCoord:pi[Ui],startCoord:yi[Ui]}),Nt=(pi,yi)=>pi.zoom&&yb(yi.curCoord-yi.startCoord)>5,Jt=Gt&&"pan"===Gt.action&&!Gt.fallback&&0===Gt.offset.x&&0===Gt.offset.y;if(Gt&&(!ln||Le.panningVisualRangeEnabled())&&!Jt){if(!ln&&we(Ue),"zoom"===Gt.action){var un=A(Gt.curAxisRect,Ue),Mn=on(un,Gt.startCoords,ut?"y":"x"),Kn=on(un,Gt.startCoords,ut?"x":"y"),Xn=Nt(It.argumentAxis,Mn)&&NO(Ue,n._argumentAxes,En,!0,Mn,n.getArgumentAxis());(Nt(It.valueAxis,Kn)&&NO(Ue,Gt.valueAxes,En,!0,Kn)||Xn)&&n._requestChange(["VISUAL_RANGE"]),Gt.rect.dispose()}else"pan"===Gt.action&&v(Le,"pan",Ue,ue);Le.actionData=null}},pinchStartHandler:function(Ue){var ut=D(z(Ue),"zoom");ut.cancel?HO(Ue):(Le.actionData=ut,i(Le,"zoom",Ue))},pinchHandler:function(Ue){Le.actionData&&(r(Le,"zoom",Ue,(ut,It,Gt,ln)=>z(ut)[Gt]-It.center[Gt]+(It.center[Gt]-It.center[Gt]*ln),z),we(Ue))},pinchEndHandler:function(Ue){Le.actionData&&(v(Le,"zoom",Ue,(ut,It,Gt,ln)=>It.center[Gt]-It.startCenter[Gt]+(It.startCenter[Gt]-It.startCenter[Gt]*ln)),Le.actionData=null)},mouseWheelHandler:function(Ue){var on,ut=Le.options,It=n.option("rotated"),Gt=un=>{var{translator:Mn,coord:Kn,scale:Xn,axis:si}=un;return()=>{var pi=Mn.zoom(-(Kn-Kn*Xn),Xn,si.getZoomBounds());return{startValue:pi.min,endValue:pi.max}}},ln=Q(Ue),En=!1;if(ut.valueAxis.zoom){if(0===(on=n._valueAxes.filter(un=>Cb(Gv(un.getCanvas()),ln))).length){var Nt=n._valueAxes.reduce((un,Mn)=>(!un&&Mn.coordsIn(ln.x,ln.y)&&(un=Mn.getCanvas()),un),null);Nt&&(on=n._valueAxes.filter(un=>Cb(Gv(un.getCanvas()),{x:Nt.left,y:Nt.top})))}En|=NO(Ue,on,Gt,Ue.delta>0,{coord:It?ln.x:ln.y})}ut.argumentAxis.zoom&&(En|=n._argumentAxes.some(un=>!(!Cb(Gv(un.getCanvas()),ln)&&!un.coordsIn(ln.x,ln.y)))&&NO(Ue,n._argumentAxes,Gt,Ue.delta>0,{coord:It?ln.y:ln.x},n.getArgumentAxis())),En&&(n._requestChange(["VISUAL_RANGE"]),(on&&uA(on)||!on&&Le.panningVisualRangeEnabled())&&we(Ue))},cleanup:function(){t.root.off(hc),Le.actionData&&Le.actionData.rect&&Le.actionData.rect.dispose(),Le.actionData=null,t.root.css({"touch-action":"","-ms-touch-action":""})},setup:function(Ue){Le.cleanup(),Ue.argumentAxis.pan||t.root.on(PL,HO),(!Ue.argumentAxis.none||!Ue.valueAxis.none)&&(Le.options=Ue,(Ue.argumentAxis.zoom||Ue.valueAxis.zoom)&&Ue.allowMouseWheel&&t.root.on(gg.u+hc,Le.mouseWheelHandler),(Ue.argumentAxis.zoom||Ue.valueAxis.zoom)&&Ue.allowTouchGestures&&t.root.on(DW,{passive:!1},Le.pinchStartHandler).on(TW,{passive:!1},Le.pinchHandler).on(IW,Le.pinchEndHandler),t.root.on(EW,{immediate:!0,passive:!1},Le.dragStartHandler).on(SW,{immediate:!0,passive:!1},Le.dragHandler).on(OW,Le.dragEndHandler),t.root.on(PL,function(ut){Le.actionData={valueAxes:[],offset:{x:0,y:0},center:{x:0,y:0}},we(ut),i(Le,"pan",ut)}).on(MW,function(ut){we(ut),r(Le,"pan",ut,ue,It=>It.offset)}).on(AW,function(ut){we(ut),v(Le,"pan",ut,ue),Le.actionData=null}))},panningVisualRangeEnabled:function(){return uA(n._valueAxes)||uA(n._argumentAxes)}};this._zoomAndPan=Le},members:{_setupZoomAndPan:function(){this._zoomAndPan.setup(this._themeManager.getOptions("zoomAndPan"))}},dispose:function(){this._zoomAndPan.cleanup()},customize:function(n){n.addChange({code:"ZOOM_AND_PAN",handler:function(){this._setupZoomAndPan()},isThemeDependent:!0,isOptionChange:!0,option:"zoomAndPan"})}};var dA=b.Z.getDocument,cA="annotations",bb="."+cA,LL=(0,k.V4)([_o.Z.down,_o.Z.move],cA),LW=(0,k.V4)(_o.Z.up,cA),BW=ls.BL+bb,FW=ls.pB+bb,VW=ls.ut+bb;function NW(n,t){return{draw:function(e,i){var r=e._renderer.g().append(i).css(di(n.font));this.plaque&&this.plaque.clear(),this.plaque=new Zy((0,y.l)(!0,{},n,{cornerRadius:(n.border||{}).cornerRadius}),e,r,t,e._isAnnotationBounded(n)),this.plaque.draw(e._getAnnotationCoords(this)),n.allowDragging&&r.on(BW,{immediate:!0},v=>{this._dragOffsetX=this.plaque.x-v.pageX,this._dragOffsetY=this.plaque.y-v.pageY}).on(FW,v=>{this.plaque.move(v.pageX+this._dragOffsetX,v.pageY+this._dragOffsetY)}).on(VW,v=>{this.offsetX=(this.offsetX||0)+v.offset.x,this.offsetY=(this.offsetY||0)+v.offset.y})},hitTest(e,i){return this.plaque.hitTest(e,i)},showTooltip(e,i){var{x:r,y:v}=i,D=this,A=D.options;if(e.annotation!==D){e.setTemplate(A.tooltipTemplate);var z=Q=>{Q&&(e.annotation=D)};z(e.show(A,{x:r,y:v},{target:A},A.customizeTooltip,z))}else e.isCursorOnTooltip(r,v)||e.move(r,v)}}}function HW(n,t){var e;return"text"===n.type?e=function(i,r){var v=t._renderer.text(i.text).attr({class:i.cssClass}).append({element:r});(i.width>0||i.height>0)&&v.setMaxSize(i.width,i.height,{wordWrap:i.wordWrap,textOverflow:i.textOverflow})}:"image"===n.type?e=function(i,r){var{width:v,height:D,url:A,location:z}=i.image||{},{width:Q,height:ue}=i,we=Q>0?Math.min(v,Q):v,Le=ue>0?Math.min(D,ue):D;t._renderer.image(0,0,we,Le,A,z||"center").append({element:r})}:"custom"===n.type&&(e=n.template),e}function hA(n){return"string"==typeof n?{url:n}:n}var Td={name:"annotations_chart",init(){},dispose(){},members:{_getAnnotationCoords(n){var t,e,Q,we,i={offsetX:n.offsetX,offsetY:n.offsetY},r=this._options.silent("rotated")?"y":"x",v=this._options.silent("rotated")?"x":"y",D=this.getArgumentAxis(),A=D.validateUnit(n.argument),z=this.getValueAxis(n.axis),ue=null===(t=z)||void 0===t?void 0:t.pane;if(n.series&&(Q=this.series.filter(Gt=>Gt.name===n.series)[0],z=null===(we=Q)||void 0===we?void 0:we.getValueAxis(),(0,w.$K)(z)&&(ue=z.pane)),(0,w.$K)(A)){if(Q){var Le=Q.getPointCenterByArg(A);Le&&(i[r]=Le[r])}else i[r]=D.getTranslator().translate(A);!(0,w.$K)(ue)&&(ue=D.pane)}var ut,It,Ue=null===(e=z)||void 0===e?void 0:e.validateUnit(n.value);return(0,w.$K)(Ue)&&(i[v]=null===(ut=z)||void 0===ut?void 0:ut.getTranslator().translate(Ue),!(0,w.$K)(ue)&&(0,w.$K)(z)&&(ue=z.pane)),i.canvas=this._getCanvasForPane(ue),(0,w.$K)(i[r])&&!(0,w.$K)(Ue)&&((0,w.$K)(z)||(0,w.$K)(Q)?(0,w.$K)(z)&&!(0,w.$K)(Q)?i[v]=this._argumentAxes.filter(Gt=>Gt.pane===z.pane)[0].getAxisPosition():null!==(It=Q)&&void 0!==It&&It.checkSeriesViewportCoord(D,i[r])&&(i[v]=Q.getSeriesPairCoord(i[r],!0)):i[v]=D.getAxisPosition()),!(0,w.$K)(A)&&(0,w.$K)(i[v])&&((0,w.$K)(z)&&!(0,w.$K)(Q)?i[r]=z.getAxisPosition():(0,w.$K)(Q)&&Q.checkSeriesViewportCoord(z,i[v])&&(i[r]=Q.getSeriesPairCoord(i[v],!1))),i},_annotationsPointerEventHandler(n){if(!this._disposed){var t=n.originalEvent||{},e=t.touches&&t.touches[0]||{},i=this._renderer.getRootOffset(),r={x:e.pageX||t.pageX||n.pageX,y:e.pageY||t.pageY||n.pageY},v=this._annotations.items.filter(D=>D.hitTest(r.x-i.left,r.y-i.top))[0];if(!v||!v.options.tooltipEnabled)return void this._annotations.hideTooltip();this._clear(),v.options.allowDragging&&n.type===_o.Z.down&&(this._annotations._hideToolTipForDrag=!0),this._annotations._hideToolTipForDrag||(v.showTooltip(this._annotations.tooltip,r),n.stopPropagation())}},_isAnnotationBounded:n=>(0,w.$K)(n.value)||(0,w.$K)(n.argument),_pullOptions:n=>({type:n.type,name:n.name,x:n.x,y:n.y,value:n.value,argument:n.argument,axis:n.axis,series:n.series,options:n,offsetX:n.offsetX,offsetY:n.offsetY}),_forceAnnotationRender(){this._change(["FORCE_RENDER"])},_clear(){this.hideTooltip(),this.clearHover()}}},WW={name:"annotations_polar_chart",init(){},dispose(){},members:{_getAnnotationCoords(n){var A,z,t={offsetX:n.offsetX,offsetY:n.offsetY,canvas:this._calcCanvas()},e=this.getArgumentAxis(),i=e.validateUnit(n.argument),r=this.getValueAxis().validateUnit(n.value),v=n.radius,D=n.angle;return n.series&&(z=this.series.filter(Q=>Q.name===n.series)[0]),(0,y.l)(!0,t,this.getXYFromPolar(D,v,i,r)),(0,w.$K)(z)&&(!(0,w.$K)(t.angle)||(0,w.$K)(r)||(0,w.$K)(v)?(0,w.$K)(t.radius)&&!(0,w.$K)(i)&&!(0,w.$K)(D)&&(A=z.getSeriesPairCoord({radius:t.radius},!1)):((0,w.$K)(i)||(i=e.getTranslator().from(isFinite(D)?this.getActualAngle(D):t.angle)),A=z.getSeriesPairCoord({argument:i,angle:-t.angle},!0)),(0,w.$K)(A)&&(t.x=A.x,t.y=A.y)),n.series&&!(0,w.$K)(A)&&(t.x=t.y=void 0),t},_annotationsPointerEventHandler:Td.members._annotationsPointerEventHandler,_isAnnotationBounded:Td.members._isAnnotationBounded,_pullOptions(n){var t=(0,y.l)({},{radius:n.radius,angle:n.angle},Td.members._pullOptions(n));return delete t.axis,t},_forceAnnotationRender:Td.members._forceAnnotationRender,_clear:Td.members._clear}},UW={name:"annotations_vector_map",init(){},dispose(){this._annotations._offTracker(),this._annotations._offTracker=null},members:{_getAnnotationCoords(n){var t={offsetX:n.offsetX,offsetY:n.offsetY};if(t.canvas=this._projection.getCanvas(),n.coordinates){var e=this._projection.toScreenPoint(n.coordinates);t.x=e[0],t.y=e[1]}return t},_annotationsPointerEventHandler:Td.members._annotationsPointerEventHandler,_isAnnotationBounded:n=>(0,w.$K)(n.coordinates),_pullOptions(n){var t=(0,y.l)({},{coordinates:n.coordinates},Td.members._pullOptions(n));return delete t.axis,delete t.series,delete t.argument,delete t.value,t},_forceAnnotationRender(){this._change(["EXTRA_ELEMENTS"])},_getAnnotationStyles:()=>({"text-anchor":"start"}),_clear(){}},extenders:{_prepareExtraElements(){var n=this,t=()=>{n._renderExtraElements()};n._annotations._offTracker=n._tracker.on({move:t,zoom:t,end:t})}}},ZW={name:"annotations_pie_chart",init(){},dispose(){},members:{_getAnnotationCoords(n){var e={offsetX:n.offsetX,offsetY:n.offsetY,canvas:this._canvas};if(n.argument){var i=(n.series?this.getSeriesByName(n.series):this.series[0]).getPointsByArg(n.argument)[0],{x:r,y:v}=i.getAnnotationCoords(n.location);e.x=r,e.y=v}return e},_isAnnotationBounded:n=>n.argument,_annotationsPointerEventHandler:Td.members._annotationsPointerEventHandler,_pullOptions(n){var t=(0,y.l)({},{location:n.location},Td.members._pullOptions(n));return delete t.axis,t},_clear:Td.members._clear,_forceAnnotationRender:Td.members._forceAnnotationRender}},KW={name:"annotations_core",init(){this._annotations={items:[],_hideToolTipForDrag:!1,tooltip:new Me({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(n=>n.plaque.clear()),this.items=[]}},this._annotations.tooltip.setRendererOptions(this._getRendererOptions())},dispose(){this._annotationsGroup.linkRemove().linkOff(),d.Z.off(dA(),bb),this._annotationsGroup.off(bb),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(),d.Z.on(dA(),LL,n=>{this._disposed||this._annotations.tooltip.isCursorOnTooltip(n.pageX,n.pageY)||this._annotations.hideTooltip()}),d.Z.on(dA(),LW,n=>{this._annotations._hideToolTipForDrag=!1,this._annotationsPointerEventHandler(n)}),this._annotationsGroup.on(LL,this._annotationsPointerEventHandler.bind(this))},_renderExtraElements(){this._annotationsGroup.clear(),this._annotations.items.forEach(n=>n.draw(this,this._annotationsGroup))},_stopCurrentHandling(){this._annotations.hideTooltip()}},members:{_buildAnnotations(){this._annotations.clearItems();var n=this._getOption("annotations",!0);null!=n&&n.length&&(this._annotations.items=function(n,t){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,v=hA(e.image);return t.reduce((D,A)=>{var z=hA(A.image),Q=(0,w.mf)(i)?i(A):{};Q&&(Q.image=hA(Q.image));var ue=(0,y.l)(!0,{},e,A,{image:v},{image:z},Q),we=HW(ue,n),Le=we&&(0,y.l)(!0,r(ue),NW(ue,n._getTemplate(we)));return Le&&D.push(Le),D},[])}(this,n,this._getOption("commonAnnotationSettings"),this._getOption("customizeAnnotation",!0),this._pullOptions))},_setAnnotationTooltipOptions(){var n=(0,y.l)({},this._getOption("tooltip"));n.contentTemplate=n.customizeTooltip=void 0,this._annotations.tooltip.update(n)},_getAnnotationCoords:()=>({}),_pullOptions:()=>({}),_getAnnotationStyles:()=>({})},customize(n){n.addChange({code:"ANNOTATIONITEMS",handler(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"annotations"}),n.addChange({code:"ANNOTATIONSSETTINGS",handler(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"commonAnnotationSettings"}),n.addChange({code:"ANNOTATIONS",handler(){this._buildAnnotations(),this._setAnnotationTooltipOptions(),this._forceAnnotationRender()},isThemeDependent:!0,isOptionChange:!0})},fontFields:["commonAnnotationSettings.font"]},wf={core:KW,chart:Td,polarChart:WW,vectorMap:UW,pieChart:ZW},BL="default",jW=[{name:BL,border:{}}],zO="discrete",wb=Array.isArray;function WO(n,t,e){var i=n.getOptions().grid,r=n.getOptions().minorGrid;i.visible=t,r&&(r.visible=e)}function FL(n,t,e){var i,r;for(r=0;r<e.length;r++)if((i=e[r]).name===t&&i.pane===n)return i;if(n)return FL(void 0,t,e)}function qW(n,t){return n.priority-t.priority}function VL(n,t){var e=!1;return(0,O.S6)(n,function(i,r){if(r.name===t)return e=!0,!1}),e}function jv(n,t,e,i){var r=t[n]||0,v=e[n]||0;return r+v+(r&&v?i:0)}function Id(n,t,e){return NL(t[n],e[n])}function NL(n,t){return Math.max(n||0,t||0)}function UO(n){return n.getMargins()}function ZO(n,t){return n.reduce(function(e,i){var r,v=t(i),D=e.panes[i.pane]=e.panes[i.pane]||{},A=i.getMultipleAxesSpacing();D.top=jv("top",D,v,A),D.bottom=jv("bottom",D,v,A),D.left=Id("left",D,v),D.right=Id("right",D,v),e.top=Id("top",D,e),e.bottom=Id("bottom",D,e),e.left=Id("left",D,e),e.right=Id("right",D,e);var z=null===(r=i.getOrthogonalAxis)||void 0===r?void 0:r.call(i);return z&&z.customPositionIsAvailable()&&(!i.customPositionIsBoundaryOrthogonalAxis()||!z.customPositionEqualsToPredefined())&&(e[z.getResolvedBoundaryPosition()]=0),e},{panes:{}})}function pA(n){return n.reduce(function(t,e){var i=e.getMargins(),r=t.panes[e.pane]=t.panes[e.pane]||{},v=e.getMultipleAxesSpacing();return r.top=Id("top",r,i),r.bottom=Id("bottom",r,i),r.left=jv("left",r,i,v),r.right=jv("right",r,i,v),t.top=Id("top",r,t),t.bottom=Id("bottom",r,t),t.left=Id("left",r,t),t.right=Id("right",r,t),t},{panes:{}})}function _h(n,t,e,i,r){n.forEach(function(v){v[t](e&&e[v.pane],i&&i[v.pane]||i,r)})}function KO(n,t,e,i,r){function v(ue,we,Le){return(-1===(n?["left","right"]:["top","bottom"]).indexOf(ue)?we:we.panes[Le]||{})[ue]}function D(ue,we,Le,Ue){return NL(v(ue,we,Ue),v(ue,Le,Ue))}var A=ue=>"original".concat(ue[0].toUpperCase()).concat(ue.slice(1));function z(ue,we,Le,Ue,ut,It){(we=we.sort((En,on)=>ue[on][Ue]-ue[En][Ue])).forEach(En=>{var on=ue[En];It.forEach(Nt=>{on[Nt]=on[A(Nt)]+D(Nt,i,r,En)})});var Gt=ue[we[0]],ln=we.reduce((En,on)=>En-(D(Ue,i,r,on)+D(ut,i,r,on)),Gt[Le]-Gt[A(ut)]-ue[we[we.length-1]][A(Ue)])-10*(we.length-1);ln-=Object.keys(e).reduce((En,on)=>En+(yn(e[on])?0:e[on].height),0),we.reduce((En,on)=>{var Nt=ue[on],Jt=e[on];return En-=D(ut,i,r,on),Nt[ut]=Gt[Le]-En,En-=yn(Jt)?Math.floor(ln*Jt.height):Jt.height,Nt[Ue]=En,En-(D(Ue,i,r,on)+10)},Gt[Le]-Gt[A(ut)]-(ln<0?ln:0))}var Q=Object.keys(t);return n?z(t,Q,"width","left","right",["top","bottom"]):z(t,Q,"height","top","bottom",["left","right"]),t}function gA(n,t,e,i){t&&(_h(n,"createTicks",e),M7.synchronize(n)),_h(n,"draw",!t&&e,i)}function GO(n,t){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},v=i.getMultipleAxesSpacing(),D=i.getMargins();i.shift(r),r[n]=jv(n,r,D,v),r[t]=jv(t,r,D,v)}else i.shift({top:0,left:0,bottom:0,right:0})}}function HL(n,t){var i,r,e=0;for(i in t.panes)r=t.panes[i],e+="height"===n?r.top+r.bottom:r.left+r.right;return e}function zL(n,t,e,i){var r=0;n[t]>0&&(r=HL(t,i(e,UO)),_h(e,"hideTitle"),n[t]-=r-HL(t,i(e,UO))),n[t]>0&&_h(e,"hideOuterElements")}var $v=cL.inherit({_themeSection:"chart",_fontFields:["crosshair.label.font"],_initCore:function(){this.paneAxis={},this.callBase()},_init(){this._containerInitialHeight=(0,fi.Ym)()?(0,s.Cr)(this._$element):0,this.callBase()},_correctAxes:function(){this._correctValueAxes(!0)},_getExtraOptions:E.ZT,_createPanes:function(){var e,n=this.option("panes"),t=0;return(!n||wb(n)&&!n.length)&&(n=jW),this.callBase(),e=this.option("defaultPane"),n=(0,y.l)(!0,[],wb(n)?n:[n]),(0,O.S6)(n,function(i,r){r.name=(0,w.$K)(r.name)?r.name:BL+t++}),(0,w.$K)(e)?VL(n,e)||(this._incidentOccurred("W2101",[e]),e=n[n.length-1].name):e=n[n.length-1].name,this.defaultPane=e,this._isRotated()?n.reverse():n},_getAxisRenderingOptions:function(){return{axisType:"xyAxes",drawingType:"linear"}},_prepareAxisOptions:function(n,t,e){return{isHorizontal:"argumentAxis"===n!==e,containerColor:this._themeManager.getOptions("containerBackgroundColor")}},_checkPaneName:function(n){var t=Vn(this.panes,function(e){return e.name});return n.pane=n.pane||this.defaultPane,t.includes(n.pane)},_initCustomPositioningAxes(){var n=this,t=n.getArgumentAxis(),e=t.getOptions().customPositionAxis,i=n._valueAxes.filter(r=>r.pane===t.pane&&(!e||e===r.name))[0];n._valueAxes.forEach(r=>{t!==r.getOrthogonalAxis()&&(r.getOrthogonalAxis=()=>t,r.customPositionIsBoundaryOrthogonalAxis=()=>t.customPositionIsBoundary())}),(0,w.$K)(i)&&i!==t.getOrthogonalAxis()?(t.getOrthogonalAxis=()=>i,t.customPositionIsBoundaryOrthogonalAxis=()=>n._valueAxes.some(r=>r.customPositionIsBoundary())):(0,w.$K)(t.getOrthogonalAxis())&&!(0,w.$K)(i)&&(t.getOrthogonalAxis=E.ZT)},_getAllAxes(){return this._argumentAxes.concat(this._valueAxes)},_resetAxesAnimation(n,t){((0,w.$K)(t)?t^this._isRotated()?this._argumentAxes:this._valueAxes:this._getAllAxes()).forEach(i=>{i.resetApplyingAnimation(n)})},_axesBoundaryPositioning(){var n=this._getAllAxes(),t=!1;return n.forEach(e=>{if(!e.customPositionIsAvailable())return!1;var i=e.customPositionIsBoundary();e._customBoundaryPosition=e.getCustomBoundaryPosition(),t|=i!==e.customPositionIsBoundary()}),t},_getCrosshairMargins:function(){var n=this._getCrosshairOptions()||{},t=n.enabled,e_x=8,e_y=4,i=(0,y.l)(!0,{},n.label,n.horizontalLine.label),r=(0,y.l)(!0,{},n.label,n.verticalLine.label);return{x:t&&n.horizontalLine.visible&&i.visible?e_x:0,y:t&&n.verticalLine.visible&&r.visible?e_y:0}},_getValueAxis:function(n,t){var A,z,e=this._valueAxes,i=this.option("valueAxis")||{},r=wb(i)?i:[i],v=this._isRotated(),D=this._getCrosshairMargins();return t=t||function $W(n,t,e){for(var i,r=0;r<n.length;r++)if(n[r].pane===t||void 0===n[r].pane&&t===e){i=n[r].name;break}return i||(i=n[0].name),i}(e,n,this.defaultPane),(z=FL(n,t,e))||(A=function XW(n,t,e){var i,r;for(r=0;r<t.length;r++)if(t[r].name===e){(i=t[r]).priority=r;break}if(!i)for(r=0;r<n.length;r++)if(n[r].name===e){(i=n[r].getOptions()).priority=n[r].priority;break}return i}(e,r,t),A||(this._incidentOccurred("W2102",[t]),A={name:t,priority:e.length}),(z=this._createAxis(!1,this._populateAxesOptions("valueAxis",A,{pane:n,name:t,optionPath:wb(i)?"valueAxis[".concat(A.priority,"]"):"valueAxis",crosshairMargin:v?D.y:D.x},v))).applyVisualRangeSetter(this._getVisualRangeSetter()),e.push(z)),z.setPane(n),z},_correctValueAxes:function(n){var t=this,e=t._themeManager.getOptions("synchronizeMultiAxes"),i=t._valueAxes,r={};t.series.forEach(function(D){var A=D.getValueAxis();r[A.pane]=!0}),t.panes.forEach(function(D){var A=D.name;r[A]||t._getValueAxis(A),n&&e&&function YW(n){var t=!1,e=[],i=n.some(function(v){var D=v.getOptions().minorGrid;return D&&D.visible}),r=n.some(function(v){var D=v.getOptions().grid;return D&&D.visible});n.length>1&&(n.forEach(function(v){var D=v.getOptions().grid;t?WO(v,!1,!1):D&&D.visible&&(v.getTranslator().getBusinessRange().isEmpty()?(WO(v,!1,!1),e.push(v)):(t=!0,WO(v,r,i)))}),!t&&e.length&&WO(e[0],r,i))}(i.filter(function(z){return z.pane===A}))}),t._valueAxes=i.filter(function(D){D.pane||D.setPane(t.defaultPane);var A=VL(t.panes,D.pane);return A||(D.dispose(),D=null),A}).sort(qW);var v=this.getValueAxis();t._valueAxes.forEach(D=>{var A=D.getOptions().optionPath;if(A){var z=t._valueAxes.filter(Q=>Q.getOptions().optionPath===A);z.length>1&&(z.some(Q=>Q===v)?z.forEach(Q=>{Q!==v&&(Q.getOptions().optionPath=null)}):z.forEach((Q,ue)=>{0!==ue&&(Q.getOptions().optionPath=null)}))}})},_getSeriesForPane:function(n){var t=[];return(0,O.S6)(this.series,function(e,i){i.pane===n&&t.push(i)}),t},_createPanesBorderOptions:function(){var n=this._themeManager.getOptions("commonPaneSettings").border,t={};return this.panes.forEach(e=>t[e.name]=(0,y.l)(!0,{},n,e.border)),t},_createScrollBar:function(){var n=this._themeManager.getOptions("scrollBar")||{},t=this._scrollBarGroup;n.visible?(n.rotated=this._isRotated(),this._scrollBar=(this._scrollBar||new pL(this._renderer,t)).update(n)):(t.linkRemove(),this._scrollBar&&this._scrollBar.dispose(),this._scrollBar=null)},_executeAppendAfterSeries(n){n()},_prepareToRender(n){var t=this._createPanesBorderOptions();return this._createPanesBackground(),this._appendAxesGroups(),this._adjustViewport(),t},_adjustViewport(){this._themeManager.getOptions("adjustOnZoom")&&this._valueAxes.forEach(t=>t.adjust())},_recreateSizeDependentObjects(n){var t=this,e=t._getVisibleSeries(),i=e.some(v=>v.useAggregation()),r=t._isZooming();i&&(t._argumentAxes.forEach(function(v){v.updateCanvas(t._canvas,!0)}),e.forEach(function(v){v.useAggregation()&&(n||r||!v._useAllAggregatedPoints)&&v.createPoints()}),t._processSeriesFamilies())},_isZooming(){var n=this.getArgumentAxis();if(!n||!n.getTranslator())return!1;var t=n.getTranslator().getBusinessRange(),e=n.getViewport(),i=e?e.min:0,r=e?e.max:0;"logarithmic"===t.axisType&&(i=Dt(i,t.base),r=Dt(r,t.base));var v=t.axisType===zO?_r(t.categories,i,r).categories.length:Math.abs(r-i),D=(0,ae.p8)(v);D=D>1?Math.pow(10,D-2):1;var A=Math.round((this._zoomLength-v)*D)/D!=0;return this._zoomLength=v,A},_handleSeriesDataUpdated:function(){var n=this,t=new os;n.series.forEach(function(e){t.addRange(e.getArgumentRange())}),n._argumentAxes.forEach(function(e){e.updateCanvas(n._canvas,!0),e.setBusinessRange(t,n._axesReinitialized)}),n.callBase()},_isLegendInside:function(){return this._legend&&"inside"===this._legend.getPosition()},_isRotated:function(){return this._themeManager.getOptions("rotated")},_getLayoutTargets:function(){return this.panes},_applyClipRects:function(n){this._drawPanesBorders(n),this._createClipRectsForPanes(),this._applyClipRectsForAxes(),this._fillPanesBackground()},_updateLegendPosition:function(n,t){if(n.drawLegend&&this._legend&&t){var e=this.panes,i=(0,y.l)({},e[0].canvas),r=new Uv;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(n){var t=this._getPaneIndex(n.pane),e=this._panesClipRects,i=e.wide[t];n.setClippingParams(e.base[t].id,i&&i.id,this._getPaneBorderVisibility(t))},_updatePanesCanvases:function(n){n.recreateCanvas&&function ci(n,t,e){var i=0,v=e?t.width-t.left-t.right:t.height-t.top-t.bottom,D=n.reduce((ue,we)=>ue+(yn(we)?0:we.height),0),A=v-10*(n.length-1)-D,z=e?"left":"top",Q=e?"right":"bottom";n.forEach(ue=>{var we=yn(ue)?Te(ue.height*A):ue.height;ue.canvas=ue.canvas||{},(0,y.l)(ue.canvas,t),ue.canvas[z]=t[z]+i,ue.canvas[Q]=t[Q]+(v-we-i),i=i+we+10,An(ue.canvas)})}(this.panes,this._canvas,this._isRotated())},_normalizePanesHeight:function(){!function Rn(n){n.forEach(z=>{var Q=z.height,ue=0,we=parseFloat(Q)||void 0;((0,w.HD)(Q)&&Q.indexOf("px")>-1||(0,w.kE)(Q)&&Q>1)&&(we=Te(we),ue=1),!ue&&we&&((0,w.HD)(Q)&&Q.indexOf("%")>-1?(we/=100,ue=2):we<0&&(we=we<-1?1:Pe(we))),z.height=we,z.unit=ue});var t=n.filter(yn),e=t.reduce((z,Q)=>z+(Q.height||0),0),i=t.length,r=t.filter(z=>!z.height),v=r.length;if(e<1&&v)r.forEach(z=>z.height=(1-e)/v);else if(e>1||e<1&&!v||1===e&&v){if(v){var D=e/i,A=v*D;t.filter(z=>z.height).forEach(z=>z.height*=(e-A)/e),r.forEach(z=>z.height=D)}t.forEach(z=>z.height*=1/e)}}(this.panes)},_renderScaleBreaks:function(){this._valueAxes.concat(this._argumentAxes).forEach(function(n){n.drawScaleBreaks()})},_getArgFilter(){return dh.getViewPortFilter(this.getArgumentAxis().visualRange()||{})},_applyPointMarkersAutoHiding(){var n=this,t=n.series;n._themeManager.getOptions("autoHidePointMarkers")?n.panes.forEach(e=>{var{borderCoords:i,name:r}=e,v=t.filter(Le=>Le.pane===r&&Le.usePointsToDefineAutoHiding()),D=n.getArgumentAxis(),A=function QW(n,t,e){var i=[],r={},v=e.visualRange(),D=e.getTranslator(),A=dh.getViewPortFilter(v||{});return t.forEach(z=>{var Q=z.getValueAxis(),ue=Q.getCanvasRange(),we=Q.getTranslator(),Le=n.indexOf(z),Ue=dh.getViewPortFilter(ue||{});r[Le]={},t.forEach(It=>r[Le][n.indexOf(It)]=0);var ut=[];z.getPoints().filter(It=>It.getOptions().visible&&A(It.argument)&&(Ue(It.getMinValue(!0))||Ue(It.getMaxValue(!0)))).forEach(It=>{var Gt={seriesIndex:Le,argument:It.argument,value:It.getMaxValue(!0),size:It.bubbleSize||It.getOptions().size};if(It.getMinValue(!0)!==It.getMaxValue(!0)){var ln=(0,y.l)({},Gt);ln.value=It.getMinValue(!0),ln.x=D.to(ln.argument,1),ln.y=we.to(ln.value,1),ut.push(ln)}Gt.x=D.to(Gt.argument,1),Gt.y=we.to(Gt.value,1),ut.push(Gt)}),r[Le].pointsCount=ut.length,r[Le].total=0,r[Le].continuousSeries=0,i.push({name:z.name,index:Le,points:ut})}),{series:i,overloadedSeries:r}}(t,v,D);if(function tU(n,t,e){for(var i=n.width*n.height,r=t.series,v=function(A){var z=e.filter(Ue=>Ue.name===r[A].name)[0],Q=r[A].points,ue=Q.length?Q[0].size:0,we=ue*ue*Q.length;if(z.autoHidePointMarkersEnabled()&&we>=i/r.length){var Le=r[A].index;z.autoHidePointMarkers=!0,r.splice(A,1),e.splice(e.indexOf(z),1),delete t.overloadedSeries[Le]}},D=r.length-1;D>=0;D--)v(D)}(i,A,v),A.series.length){var z=D.visualRange(),ue=D.getOptions().type===zO?(Le,Ue)=>z.categories.indexOf(Le.argument)-z.categories.indexOf(Ue.argument):(Le,Ue)=>Le.argument-Ue.argument,we=[];A.series.forEach(Le=>we=we.concat(Le.points)),we.sort(ue),function nU(n,t){for(var e=!1,i=0;i<n.length-1;i++){var r=n[i],v=r.size;if((0,w.$K)(r.x)&&(0,w.$K)(r.y))for(var D=i+1;D<n.length;D++){var A=n[D],z=A?.x,Q=A?.y;if(!(0,w.$K)(z)||Math.abs(r.x-z)>=v){e&=D!==i+1;break}var ue=(0,w.$K)(z)&&(0,w.$K)(Q)&&Math.sqrt(Math.pow(r.x-z,2)+Math.pow(r.y-Q,2));ue&&ue<v&&(t[r.seriesIndex][A.seriesIndex]++,t[r.seriesIndex].total++,e||(t[r.seriesIndex].continuousSeries++,e=!0))}}}(we,A.overloadedSeries),function eU(n,t,e,i){var r=i.getOptions().type;t.forEach(v=>{var D=n.indexOf(v);v.autoHidePointMarkers=!1;var A=i.getTicksValues().majorTicksValues.length;if(v.autoHidePointMarkersEnabled()&&(r===zO||e[D].pointsCount>A))for(var z in e[D]){var Q=parseInt(z);if(!(isNaN(Q)||e[D].total/e[D].continuousSeries<3))if(Q===D){if(2*e[Q][Q]>=e[Q].pointsCount){v.autoHidePointMarkers=!0;break}}else if(e[D].total>=e[D].pointsCount){v.autoHidePointMarkers=!0;break}}})}(t,v,A.overloadedSeries,D)}}):t.forEach(e=>e.autoHidePointMarkers=!1)},_renderAxes:function(n,t){function e(si){return si.map(pi=>{if(!pi.getTitle)return 0;var yi=pi.getTitle();return yi?yi.bBox.width:0})}var i=this,r=i._isRotated(),v=i._themeManager.getOptions("synchronizeMultiAxes"),D=i._scrollBar?[i._scrollBar]:[],A=i._isArgumentAxisBeforeScrollBar()?i._argumentAxes.concat(D):D.concat(i._argumentAxes),z=r?i._argumentAxes:i._valueAxes,Q=r?A:i._valueAxes,ue=r?i._valueAxes:i._argumentAxes,we=r?i._valueAxes:A,Le=z.concat(ue),Ue=Le.concat(D),ut=z.some(si=>si.isFirstDrawing());i._normalizePanesHeight(),i._updatePanesCanvases(n);var It=i.panes.reduce(function(si,pi){return si[pi.name]=(0,y.l)({},pi.canvas),si},{}),Gt=i.panes.reduce((si,pi)=>(si[pi.name]={height:pi.height,unit:pi.unit},si),{}),ln=(0,y.l)(!0,{},It);i._initCustomPositioningAxes();var En=i._axesBoundaryPositioning();if(!n.adjustAxes&&!En)return gA(z,!r&&v,It,t),gA(ue,r&&v,It,t),_h(Le,"prepareAnimation"),i._renderScaleBreaks(),ue.forEach(si=>si.resolveOverlappingForCustomPositioning(z)),z.forEach(si=>si.resolveOverlappingForCustomPositioning(ue)),!1;En&&Le.forEach(si=>si.customPositionIsAvailable()&&si.shift({top:0,left:0,bottom:0,right:0})),i._scrollBar&&i._scrollBar.setPane(i.panes);var on={panes:{}},Nt=ZO(we,si=>si.estimateMargins(It[si.pane]));It=KO(r,It,Gt,on,Nt);var Jt=si=>{gA(si?ue:z,(si?r:!r)&&v,It,t),si?Nt=ZO(we,UO):on=pA(Q),It=KO(r,It,Gt,on,Nt)};Jt(!1),Jt(!0),!i._changesApplying&&i._estimateTickIntervals(z,It)&&Jt(!1);var un=e(z),Mn=i._getVisibleSeries(),Xn=function JW(n,t){var e=t.reduce((i,r)=>i+r,0)/t.length;return n.animate&&e<=n.animationPointsLimit}(n,i._getPointsToAnimation(Mn));return _h(Ue,"updateSize",It,Xn),we.forEach(GO("top","bottom")),Q.forEach(GO("left","right")),i._renderScaleBreaks(),i.panes.forEach(function(si){(0,y.l)(si.canvas,It[si.name])}),i._valueAxes.forEach(si=>{si.setInitRange()}),z.forEach((si,pi)=>{var yi;if(null!==(yi=si.hasWrap)&&void 0!==yi&&yi.call(si)){var Ui=si.getTitle(),oi=(Ui?Ui.bBox.width:0)-un[pi];"right"===si.getOptions().position?on.right+=oi:(on.left+=oi,i.panes.forEach(Fi=>{var{name:Zi}=Fi;return on.panes[Zi].left+=oi})),It=KO(r,It,Gt,on,Nt),_h(Ue,"updateSize",It,!1,!1),un=e(z)}}),z.some(si=>si.customPositionIsAvailable()&&si.getCustomPosition()!==si._axisPosition)&&(Xn&&i._resetAxesAnimation(ut,!1),_h(z,"updateSize",It,Xn)),ue.forEach(si=>si.resolveOverlappingForCustomPositioning(z)),z.forEach(si=>si.resolveOverlappingForCustomPositioning(ue)),ln},_getExtraTemplatesItems(){var n=(this._argumentAxes||[]).concat(this._valueAxes||[]),t=this._collectTemplatesFromItems(n);return{items:t.items,groups:t.groups,launchRequest(){n.forEach(function(e){e.setRenderedState(!0)})},doneRequest(){n.forEach(function(e){e.setRenderedState(!1)})}}},_estimateTickIntervals:(n,t)=>n.some(e=>e.estimateTickInterval(t[e.pane])),checkForMoreSpaceForPanesCanvas(){var n=this._isRotated(),e=!1;if(this.panes.filter(Ue=>Ue.unit).length===this.panes.length){var i=0,r=0;if(n){var v=this.getArgumentAxis().getMargins().right,D=Math.min.apply(Math,this.panes.map(Ue=>Ue.canvas.right));i=this._canvas.right+v-D}else{var A=this.getArgumentAxis().getMargins().bottom,z=Math.min.apply(Math,this.panes.map(Ue=>Ue.canvas.bottom));r=this._canvas.bottom+A-z}if(e=(i>0||r>0)&&{width:i,height:r},0!==r){var Q=this.getSize(),ue=this.option("size"),Le=!!parseInt(this._$element[0].style.height)||0!==this._containerInitialHeight;!n&&(!ue||!ue.height)&&!Le&&(this._forceResize(Q.width,Q.height+r),e=!1)}}else e=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),n,Ue=>({width:n&&!!Ue.unit,height:!n&&!!Ue.unit}));return e},_forceResize(n,t){this._renderer.resize(n,t),this._updateSize(),this._setContentSize(),this._preserveOriginalCanvas(),this._updateCanvasClipRect(this._canvas)},_shrinkAxes(n,t){if(n&&t){this._renderer.stopAllAnimations(!0);var e=this._isRotated(),i=this._scrollBar?[this._scrollBar]:[],r=this._isArgumentAxisBeforeScrollBar()?this._argumentAxes.concat(i):i.concat(this._argumentAxes),v=e?r:this._valueAxes,D=e?this._valueAxes:r,A=v.concat(D);if(n.width||n.height){zL(n,"height",D,ZO),zL(n,"width",v,pA),_h(A,"updateSize",t);var z=this.panes.reduce((Q,ue)=>(Q[ue.name]={height:ue.height,unit:ue.unit},Q),{});_h(A,"updateSize",t=KO(e,t,z,pA(v),ZO(D,UO))),D.forEach(GO("top","bottom")),v.forEach(GO("left","right")),this.panes.forEach(Q=>(0,y.l)(Q.canvas,t[Q.name]))}}},_isArgumentAxisBeforeScrollBar(){var n=this.getArgumentAxis();if(this._scrollBar){var t,e=n.getResolvedBoundaryPosition(),i=null===(t=n.getOptions().label)||void 0===t?void 0:t.position,r=this._scrollBar.getOptions().position;return n.hasNonBoundaryPosition()||r===e&&i!==r}return!1},_getPanesParameters:function(){var t,n=this.panes,e=[];for(t=0;t<n.length;t++)this._getPaneBorderVisibility(t)&&e.push({coords:n[t].borderCoords,clipRect:this._panesClipRects.fixed[t]});return e},_createCrosshairCursor:function(){var n=this._themeManager.getOptions("crosshair")||{},t=this.getArgumentAxis(),e=this._isRotated()?[this._valueAxes,[t]]:[[t],this._valueAxes],i={canvas:this._getCommonCanvas(),panes:this._getPanesParameters(),axes:e};!n||!n.enabled||(this._crosshair?this._crosshair.update(n,i):this._crosshair=new oA(this._renderer,n,i,this._crosshairCursorGroup),this._crosshair.render())},_getCommonCanvas:function(){var n,t,e,i=this.panes;for(n=0;n<i.length;n++)t=i[n].canvas,e?(e.right=t.right,e.bottom=t.bottom):e=(0,y.l)({},t);return e},_createPanesBackground:function(){var t,i,r,n=this._themeManager.getOptions("commonPaneSettings").backgroundColor,e=this._renderer,v=[];for(this._panesBackgroundGroup.clear(),r=0;r<this.panes.length;r++)(t=this.panes[r].backgroundColor||n)&&"none"!==t?(i=e.rect(0,0,0,0).attr({fill:t,"stroke-width":0}).append(this._panesBackgroundGroup),v.push(i)):v.push(null);this.panesBackground=v},_fillPanesBackground:function(){var t,n=this;(0,O.S6)(n.panes,function(e,i){t=i.borderCoords,null!==n.panesBackground[e]&&n.panesBackground[e].attr({x:t.left,y:t.top,width:t.width,height:t.height})})},_calcPaneBorderCoords:function(n){var t=n.canvas,e=n.borderCoords=n.borderCoords||{};e.left=t.left,e.top=t.top,e.right=t.width-t.right,e.bottom=t.height-t.bottom,e.width=Math.max(e.right-e.left,0),e.height=Math.max(e.bottom-e.top,0)},_drawPanesBorders:function(n){var t=this,e=t._isRotated();t._panesBorderGroup.linkRemove().clear(),(0,O.S6)(t.panes,function(i,r){var v=n[r.name],D={fill:"none",stroke:v.color,"stroke-opacity":v.opacity,"stroke-width":v.width,dashStyle:v.dashStyle,"stroke-linecap":"square"};if(t._calcPaneBorderCoords(r,e),v.visible){var A=r.borderCoords,z=function(n,t,e,i,r){var Le,v=~~((e<i?e:i)/2),D=r.width||0,A=D<v?D:v,z=(n+=A/2)+(e-=A),Q=(t+=A/2)+(i-=A),ue=[],we=[],Ue=0,ut=0,It={top:[[n,t],[z,t]],right:[[z,t],[z,Q]],bottom:[[z,Q],[n,Q]],left:[[n,Q],[n,t]]};switch((0,O.S6)(It,function(Gt){Ue=2*Ue+~~!!r[Gt]}),Ue){case 13:case 9:Le=["left","top","right","bottom"];break;case 11:Le=["bottom","left","top","right"];break;default:Le=["top","right","bottom","left"]}return(0,O.S6)(Le,function(Gt,ln){var En=!!r[ln];!ut&&we.length&&(ue.push(we),we=[]),En&&(0,O.S6)(It[ln].slice(ut),function(on,Nt){we=we.concat(Nt)}),ut=~~En}),we.length&&ue.push(we),1===ue.length&&(ue=ue[0]),{points:ue,pathType:15===Ue?"area":"line"}}(A.left,A.top,A.width,A.height,v);t._renderer.path(z.points,z.pathType).attr(D).append(t._panesBorderGroup)}}),t._panesBorderGroup.linkAppend()},_createClipRect:function(n,t,e,i,r,v){var D=n[t];D?D.attr({x:e,y:i,width:r,height:v}):(D=this._renderer.clipRect(e,i,r,v),n[t]=D)},_createClipRectsForPanes:function(){var n=this,t=n._canvas;(0,O.S6)(n.panes,function(e,i){var r=!1,v=i.borderCoords,D=v.left,A=v.top,z=v.width,Q=v.height,ue=n._panesClipRects;n._createClipRect(ue.fixed,e,D,A,z,Q),n._createClipRect(ue.base,e,D,A,z,Q),(0,O.S6)(n.series,function(we,Le){Le.pane===i.name&&(Le.isFinancialSeries()||Le.areErrorBarsVisible())&&(r=!0)}),r?(n._isRotated()?(A=0,Q=t.height):(D=0,z=t.width),n._createClipRect(ue.wide,e,D,A,z,Q)):ue.wide[e]=null})},_applyClipRectsForAxes(){for(var n=this._getAllAxes(),t=this._getCanvasClipRectID(),e=0;e<n.length;e++){var i=this._getElementsClipRectID(n[e].pane);n[e].applyClipRects(i,t)}},_getPaneBorderVisibility:function(n){var t=this._themeManager.getOptions("commonPaneSettings").border.visible,i=(this.panes[n]||{}).border||{};return"visible"in i?i.visible:t},_getCanvasForPane:function(n){var i,t=this.panes,e=t.length;for(i=0;i<e;i++)if(t[i].name===n)return t[i].canvas},_getTrackerSettings:function(){var n=this._themeManager;return(0,y.l)(this.callBase(),{chart:this,rotated:this._isRotated(),crosshair:this._getCrosshairOptions().enabled?this._crosshair:null,stickyHovering:n.getOptions("stickyHovering")})},_resolveLabelOverlappingStack:function(){var n=this,t=n._isRotated(),e=t?function(i,r){return{x:i.x-r,y:i.y}}:function(i,r){return{x:i.x,y:i.y-r}};(0,O.S6)(n._getStackPoints(),function(i,r){(0,O.S6)(r,function(v,D){var A=D[0].series.getValueAxis().getOptions().inverted;qM_resolveLabelOverlappingInOneDirection(D,n._getCommonCanvas(),t,A,e,(z,Q)=>{var ue=t?1:0;return z.labels[0].getFigureCenter()[ue]-Q.labels[0].getFigureCenter()[ue]==0?(z.value()-Q.value())*(z.labels[0].getPoint().series.getValueAxis().getTranslator().isInverted()?-1:1):0})})})},_getStackPoints:function(){var n={},t=this._getVisibleSeries();return(0,O.S6)(t,function(e,i){var r=i.getPoints(),v=i.getStackName()||null;(0,O.S6)(r,function(D,A){var z=A.argument;n[z]||(n[z]={}),n[z][v]||(n[z][v]=[]),n[z][v].push(A)})}),n},_getCrosshairOptions:function(){return this._getOption("crosshair")},zoomArgument(n,t){!this._initialized||!(0,w.$K)(n)&&!(0,w.$K)(t)||this.getArgumentAxis().visualRange([n,t])},resetVisualRange(){var n=this,t=n._argumentAxes,e=n.getArgumentAxis();t.forEach(i=>{i.resetVisualRange(e!==i),n._applyCustomVisualRangeOption(i)}),n.callBase()},getVisibleArgumentBounds:function(){var t=this._argumentAxes[0].getTranslator().getBusinessRange(),e=t.axisType===zO,i=t.categories;return{minVisible:e?t.minVisible||i[0]:t.minVisible,maxVisible:e?t.maxVisible||i[i.length-1]:t.maxVisible}},_change_FULL_RENDER(){this.callBase(),this._changes.has("VISUAL_RANGE")&&this._raiseZoomEndHandlers()},_getAxesForScaling(){return[this.getArgumentAxis()].concat(this._valueAxes)},_applyVisualRangeByVirtualAxes(n,t){if(n.isArgumentAxis){if(n!==this.getArgumentAxis())return!0;this._argumentAxes.filter(e=>e!==n).forEach(e=>e.visualRange(t,{start:!0,end:!0}))}return!1},_raiseZoomEndHandlers(){this._argumentAxes.forEach(n=>n.handleZoomEnd()),this.callBase()},_setOptionsByReference(){this.callBase(),(0,y.l)(this._optionsByReference,{"argumentAxis.visualRange":!0})},option(){var n=this.callBase.apply(this,arguments),t=this._options.silent("valueAxis");if("array"===(0,w.dt)(t))for(var e=0;e<t.length;e++){var i="valueAxis[".concat(e,"].visualRange");this._optionsByReference[i]=!0}return n},_notifyVisualRange(){var n=this._argumentAxes[0],t=kr(n.visualRange(),!wb(this.option("argumentAxis.visualRange")));n.skipEventRising&&Nr(t,this.option("argumentAxis.visualRange"))?n.skipEventRising=null:this.option("argumentAxis.visualRange",t),this.callBase()}});$v.addPlugin(hW),$v.addPlugin(RW),$v.addPlugin(wf.core),$v.addPlugin(wf.chart),(0,T.Z)("dxChart",$v);let WL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.lsC,M.IOm,M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.wMw,M.M2g,M.Zt4,M.xNt,M.qlz,M.e1H,M.Tq8,M.z8p,M.FZZ,M.Afe,M.HC7,M.Irw,M.irQ,M.Llc,M.tis,M.ji7,M.ZmN,M.rrz,M.zk3,M.Wj0,M.DHG,M._7s,M.MHt,M.DQr,M.Ye1,M.kZH,M.dwQ,M.$a2,M.nah,M.Re4,M.PR8,M.gN6,M.Lxh,M.kWr,M.XfX,M.DB7,M.cdq,M.Mel,M.ngB,M.xOr,M.K5R,M.zvd,M.$Tm,M.IqU,M.l95,M.NsS,M.cp7,M.Ezz,M.Rvn,M.jri,M.Wi7,M.d_Q,M.P5j,M.kln,M.c6p,M.tAX,M.y6c,M._ZT,M.jtD,M.Az0,M.p7n,M.lj9,M.FYN,M.KjY,M.lTN,M.rHV,M.Bpy,M.R5e,M.ZLS,M.Rue,M.Kx,M.vZC,M.GTS,M.Y25,M.UV$,f.Lz,f.ie,p.Cu],M.lsC,M.IOm,M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.wMw,M.M2g,M.Zt4,M.xNt,M.qlz,M.e1H,M.Tq8,M.z8p,M.FZZ,M.Afe,M.HC7,M.Irw,M.irQ,M.Llc,M.tis,M.ji7,M.ZmN,M.rrz,M.zk3,M.Wj0,M.DHG,M._7s,M.MHt,M.DQr,M.Ye1,M.kZH,M.dwQ,M.$a2,M.nah,M.Re4,M.PR8,M.gN6,M.Lxh,M.kWr,M.XfX,M.DB7,M.cdq,M.Mel,M.ngB,M.xOr,M.K5R,M.zvd,M.$Tm,M.IqU,M.l95,M.NsS,M.cp7,M.Ezz,M.Rvn,M.jri,M.Wi7,M.d_Q,M.P5j,M.kln,M.c6p,M.tAX,M.y6c,M._ZT,M.jtD,M.Az0,M.p7n,M.lj9,M.FYN,M.KjY,M.lTN,M.rHV,M.Bpy,M.R5e,M.ZLS,M.Rue,M.Kx,M.vZC,M.GTS,M.Y25,M.UV$,f.ie]}),n})();var UL=l(6193);let ZL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.lj9,M.aZm,M.rHV,M.YXG,M.KjY,M.F9Z,M.fsq,M.ENI,M.e1H,M.FZZ,M.HC7,M.ji7,M.Kx,M.hfY,M.rUb,M.rrz,M.lTN,M.vZC,M.bgw,M.Ois,M.vci,f.Lz,f.ie,p.Cu],M.IOm,M.lj9,M.aZm,M.rHV,M.YXG,M.KjY,M.F9Z,M.fsq,M.ENI,M.e1H,M.FZZ,M.HC7,M.ji7,M.Kx,M.hfY,M.rUb,M.rrz,M.lTN,M.vZC,M.bgw,M.Ois,M.vci,f.ie]}),n})();var oU=l(7565);const aU={provide:ie.JU,useExisting:(0,a.Gpc)(()=>sU),multi:!0};let sU=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),A.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 oU.Z(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-color-box"]],contentQueries:function(e,i,r){if(1&e&&a.Suo(r,M.k4o,4),2&e){let v;a.iGM(v=a.CRH())&&(i.buttonsChildren=v)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,aU,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),KL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,f.Lz,f.ie,p.Cu],M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,f.ie]}),n})();var Yv=l(1875);let GL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.Q8p,M.Fkd,M.oyT,M.lar,f.Lz,f.ie,p.Cu],M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.Q8p,M.Fkd,M.oyT,M.lar,f.ie]}),n})();var jL=l(2625),$L=l(132),fA=l(4430),jO={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},uU=fA.w.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(n){return n.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return x.Z.current().android||x.Z.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(n){return"preset_"+n},_createAndroidSlideAnimationConfig:function(n,t){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,v){var D=(0,s.dz)(r.parent())*t,A=v.direction,z=i(v);return z.to={left:0,opacity:1},z.from="forward"===A?{left:D,opacity:n}:"backward"===A?{left:-D,opacity:n}:{left:0,opacity:0},h.Z.createAnimation(r,z)},leave:function(r,v){var D=(0,s.dz)(r.parent())*t,A=v.direction,z=i(v);return z.from={left:0,opacity:1},z.to="forward"===A?{left:-D,opacity:n}:"backward"===A?{left:D,opacity:n}:{left:0,opacity:0},h.Z.createAnimation(r,z)}}},_createOpenDoorConfig:function(){var n=this,t=function(e){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(e,i){var r=i.direction,v=t(i);return v.delay="none"===r?v.delay:v.duration,v.from="dx-enter dx-opendoor-animation"+jO[r],v.to="dx-enter-active",h.Z.createAnimation(e,v)},leave:function(e,i){var r=i.direction,v=t(i);return v.from="dx-leave dx-opendoor-animation"+jO[r],v.to="dx-leave-active",h.Z.createAnimation(e,v)}}},_createWinPopConfig:function(){var n=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:n.option("defaultAnimationDuration")};return{enter:function(e,i){var r=t,v=i.direction;return r.delay="none"===v?n.option("defaultAnimationDelay"):n.option("defaultAnimationDuration")/2,r.from="dx-enter dx-win-pop-animation"+jO[v],r.to="dx-enter-active",h.Z.createAnimation(e,r)},leave:function(e,i){var r=t,v=i.direction;return r.delay=n.option("defaultAnimationDelay"),r.from="dx-leave dx-win-pop-animation"+jO[v],r.to="dx-leave-active",h.Z.createAnimation(e,r)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(n){var t=this,e=[];(0,O.S6)(this._registeredPresets,function(i,r){n&&n!==r.name?e.push(r):t.option(t._getPresetOptionName(r.name),void 0)}),this._registeredPresets=e,this.applyChanges()},registerPreset:function(n,t){this._registeredPresets.push({name:n,config:t})},applyChanges:function(){var n=this,t=[];(0,O.S6)(this._registeredPresets,function(e,i){var r={device:i.config.device,options:{}};r.options[n._getPresetOptionName(i.name)]=i.config.animation,t.push(r)}),this._setOptionsByDevice(t)},getPreset:function(n){for(var t=n;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},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 x.Z.current().android||x.Z.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!x.Z.current().android&&!x.Z.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!x.Z.current().android&&!x.Z.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return x.Z.current().android||x.Z.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")}})}}),dU=new uU,cU={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},YL="dx-animating",hU=ir.Z.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(n,t,e,i){n=(0,u.Z)(n);var r=this,v=[],D=this._prepareElementAnimationConfig(t,e=e||{},i);return D&&n.each(function(){var A=r._createAnimation((0,u.Z)(this),D,e);A&&(A.element.addClass(YL),A.setup(),v.push(A))}),v},_prepareElementAnimationConfig:function(n,t,e){var i;if("string"==typeof n&&(n=dU.getPreset(n)),n)if((0,w.mf)(n[e]))i=n[e];else{if(!(i=(0,y.l)({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},n,t)).type||"css"===i.type){var v="dx-"+e,D=(i.extraCssClasses?" "+i.extraCssClasses:"")+cU[i.direction];i.type="css",i.from=(i.from||v)+D,i.to=i.to||v+"-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(n,t,e){var i;return(0,w.PO)(t)?i=h.Z.createAnimation(n,t):(0,w.mf)(t)&&(i=t(n,e)),i},_startAnimations:function(){for(var n=this._animations,t=0;t<n.length;t++)n[t].start()},_stopAnimations:function(n){for(var t=this._animations,e=0;e<t.length;e++)t[e].stop(n)},_clearAnimations:function(){for(var n=this._animations,t=0;t<n.length;t++)n[t].element.removeClass(YL);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new P.BH,this._completePromise=this._completeDeferred.promise()},enter:function(n,t,e){var i=this._createAnimations(n,t,e,"enter");this._animations.push.apply(this._animations,i)},leave:function(n,t,e){var i=this._createAnimations(n,t,e,"leave");this._animations.push.apply(this._animations,i)},start:function(){var t,n=this;if(this._animations.length){var e=(0,O.UI)(this._animations,function(i){var r=new P.BH;return i.deferred.always(function(){r.resolve()}),r.promise()});t=P.gx.apply(u.Z,e).always(function(){n._completeDeferred.resolve(),n.reset()}),(0,E.Wi)(function(){n._startAnimations()})}else n.reset(),t=(new P.BH).resolve().promise();return t},stop:function(n){this._stopAnimations(n)}}),Eb=l(2526),mA=l(1427),sa=l(6853),Zo=l(5450),XL=(0,fi.Jj)(),qL="dx-pending-rendering",JL="dx-pending-rendering-manual",QL="dx-pending-rendering-active",xU=["onRendered","onShown"],eB=sa.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(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 hU,this._initElement(),this._initRender(),this._$initialContent=this.$element().clone().contents(),this._initActions(),this.callBase()},_initElement:function(){this.$element().addClass("dx-deferrendering")},_initRender:function(){var n=this,t=this.$element(),e=this.option("renderWhen"),i=()=>n._renderDeferredContent();(0,w.tI)(e)?(0,P.p4)(e).done(i):(t.data("dx-render-delegate",i),void 0===e&&t.addClass(JL))},_initActions:function(){this._actions={},(0,O.S6)(xU,(n,t)=>{this._actions[t]=this._createActionByOption(t)||E.ZT})},_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 n=this,t=this.$element(),e=new P.BH;return t.removeClass(JL),t.addClass(QL),this._abortRenderTask(),this._renderTask=(0,E.Wi)(()=>{n._renderImpl().done(()=>{var i={element:t};n._actions.onShown([i]),e.resolve(i)}).fail(function(){e.rejectWith(e,arguments)})}),e.promise()},_isElementInViewport:function(n){var t=(0,Zo.l)(n);return t.bottom>=0&&t.right>=0&&t.top<=(XL.innerHeight||b.Z.getDocumentElement().clientHeight)&&t.left<=(XL.innerWidth||b.Z.getDocumentElement().clientWidth)},_animate:function(){var r,n=this,t=this.$element(),e=(0,fi.Ym)()&&this.option("animation"),i=this.option("staggerItemSelector");return n.transitionExecutor.stop(),e?(i?t.find(i).each(function(){n._isElementInViewport(this)&&n.transitionExecutor.enter((0,u.Z)(this),e)}):n.transitionExecutor.enter(t,e),r=n.transitionExecutor.start()):r=(new P.BH).resolve().promise(),r},_renderImpl:function(){var n=this.$element(),t={element:n},e=this._getTemplate(this._templateManager.anonymousTemplateName);return e&&e.render({container:n.empty(),noModel:!0}),this._setRenderedState(n),d.Z.trigger(n,"dxcontentrendered"),this._actions.onRendered([t]),this._isRendered=!0,this._animate()},_setLoadingState:function(){var n=this.$element(),t=!!n.find(".dx-visible-while-pending-rendering").length;n.addClass(qL),t||n.children().addClass("dx-invisible-while-pending-rendering"),this.option("showLoadIndicator")&&this._showLoadIndicator(n)},_showLoadIndicator:function(n){this._$loadIndicator=new mA.Z((0,u.Z)("<div>"),{visible:!0}).$element().addClass("dx-deferrendering-load-indicator"),(0,u.Z)("<div>").addClass("dx-loadindicator-container").addClass("dx-deferrendering-loadindicator-container").append(this._$loadIndicator).appendTo(n)},_setRenderedState:function(){var n=this.$element();this._$loadIndicator&&this._$loadIndicator.remove(),n.removeClass(qL),n.removeClass(QL),(0,Eb.Uo)(n.children())},_optionChanged:function(n){var t=n.value,e=n.previousValue;switch(n.name){case"renderWhen":!1===e&&!0===t?this._renderOrAnimate():!0===e&&!1===t&&(this.transitionExecutor.stop(),this._setLoadingState());break;case"showLoadIndicator":case"onRendered":case"onShown":break;default:this.callBase(n)}},_renderOrAnimate:function(){var n;return this._isRendered?(this._setRenderedState(),n=this._animate()):n=this._renderDeferredContent(),n},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()}});(0,T.Z)("dxDeferRendering",eB);let tB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,f.Lz,f.ie,p.Cu],M.IOm,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,f.ie]}),n})();var No=l(6738),$O=l(5791),Js=l(8159),nB=l(8991),wU=l.n(nB);function Co(){if(!wU())throw Js.Z.Error("E1041","devexpress-diagram");return nB}var Xv=l(658),YO=l(4362),XO=l(3576),Sb=l(7858);const _A=class EU{constructor(t){var{EventDispatcher:e}=Co();this.onChanged=new e,this._owner=t}raiseBarCommandExecuted(t,e){this.onChanged.raise("notifyBarCommandExecuted",parseInt(t),e)}getCommandKeys(){throw"Not Implemented"}setItemValue(t,e){}setItemEnabled(t,e){}setItemVisible(t,e){}setEnabled(t){}setItemSubItems(t,e){}isVisible(){return!0}_getKeys(t){return t.reduce((i,r)=>(void 0!==r.command&&i.push(r.command),r.items&&(i=i.concat(this._getKeys(r.items))),i),[])}};var iB=(0,k.V4)(_o.Z.up,"dxDiagramPanel");const rB=class OU extends sa.Z{_init(){super._init(),this._createOnPointerUpAction()}_render(){super._render(),this._attachPointerUpEvent()}_getPointerUpElements(){return[this.$element()]}_attachPointerUpEvent(){this._getPointerUpElements().forEach(e=>{d.Z.off(e,iB),d.Z.on(e,iB,i=>{(0,u.Z)(i.target).closest(".dx-textbox").length||this._onPointerUpAction()})})}_createOnPointerUpAction(){this._onPointerUpAction=this._createActionByOption("onPointerUp")}_optionChanged(t){"onPointerUp"===t.name?this._createOnPointerUpAction():super._optionChanged(t)}};var vA={getContextMenuItemTemplate(n,t,e,i){var r=(0,u.Z)(i);r.empty();var v=void 0!==t.rootCommand?t.rootCommand:-1;if(t.icon&&!t.checked){var D=(0,W.H)(t.icon);r.append(D)}else if(n._menuHasCheckedItems&&!0===n._menuHasCheckedItems[v]){var A=(0,W.H)("check");A.css("visibility",t.checked?"visible":"hidden"),r.append(A)}r.append('<span class="dx-menu-item-text">'+t.text+"</span>"),Array.isArray(t.items)&&t.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(n,t,e){if(void 0===t.command&&void 0===t.name||Array.isArray(t.items)&&t.items.length){if(void 0!==t.rootCommand&&void 0!==t.value){var r=vA.getItemCommandParameter(n,t,t.value);e.call(this,t.rootCommand,void 0,r)}}else{var i=vA.getItemCommandParameter(n,t);e.call(this,t.command,t.name,i)}},getItemValue:n=>"object"==typeof n.value?JSON.stringify(n.value):n.value,getItemOptionText(n,t){if(n){t=t.slice();var e=this._getParentItemOptionText(t);n._originalItemsInfo&&n._originalItemsInfo[e]&&(t[t.length-1]+=n._originalItemsInfo[e].indexPathCorrection)}return this._getItemOptionTextCore(t)},_getParentItemOptionText(n){var t=n.slice(0,n.length-1);return this._getItemOptionTextCore(t)},_getItemOptionTextCore:n=>n.reduce((t,e)=>t+"items[".concat(e,"]."),""),getItemCommandParameter:(n,t,e)=>t.getParameter?t.getParameter(n):e,updateContextMenuItems(n,t,e,i){n._originalItemsInfo||(n._originalItemsInfo={}),n._originalItemsInfo[t]||(n._originalItemsInfo[t]={items:n.option(t+"items")||[]}),i=i.map(v=>({value:this.getItemValue(v),text:v.text,checked:v.checked,widget:n,rootCommand:e}));var r=n._originalItemsInfo[t].items;n.option(t+"items",i.concat(r)),n._originalItemsInfo[t]&&r.length&&(n._originalItemsInfo[t].indexPathCorrection=i.length)},updateContextMenuItemVisible(n,t,e){n.option(t+"visible",e)},updateContextMenuItemValue(n,t,e,i){var r=n.option(t+"items");"boolean"!=typeof i||r&&r.length?void 0!==i&&(this._setContextMenuHasCheckedItems(n,e),Array.isArray(r)&&r.forEach((v,D)=>{v.checked=v.value===i})):(this._setContextMenuHasCheckedItems(n,-1),n.option(t+"checked",i))},_setContextMenuHasCheckedItems(n,t){n._menuHasCheckedItems||(n._menuHasCheckedItems={}),n._menuHasCheckedItems[t]=!0}};const ol=vA;l(5079),l(344);var yA="dx-diagram-mobile-toolbar-color-box-opened";class kU extends _A{getCommandKeys(){return this._getKeys(this._owner._commands)}setItemValue(t,e){this._owner._setItemValue(t,e)}setItemEnabled(t,e){this._owner._setItemEnabled(t,e)}setEnabled(t){this._owner._setEnabled(t)}setItemSubItems(t,e){this._owner._setItemSubItems(t,e)}}class oB{constructor(t){this._widget=t}canUpdate(t){return void 0===t}setEnabled(t){this._widget.option("disabled",!t)}setValue(t,e,i,r){"value"in this._widget.option()?this._updateEditorValue(t,e):void 0!==t&&this._updateButtonValue(t),i&&this._updateContextMenuItemValue(i,"",r,t)}setItems(t,e,i){e?this._updateContextMenuItems(e,"",i,t):this._updateEditorItems(t)}_updateContextMenuItems(t,e,i,r){ol.updateContextMenuItems(t,e,i,r)}_updateEditorItems(t){"items"in this._widget.option()&&this._widget.option("items",t.map(e=>({value:ol.getItemValue(e),text:e.text})))}_updateEditorValue(t,e){this._widget.option("value",t),!this._widget.option("selectedItem")&&e&&this._widget.option("value",e)}_updateButtonValue(t){this._widget.option("iconChecked")&&this._widget.option("iconUnchecked")?this._widget.option("icon",this._widget.option(t?"iconChecked":"iconUnchecked")):this._widget.$element().toggleClass("dx-format-active",t)}_updateContextMenuItemValue(t,e,i,r){ol.updateContextMenuItemValue(t,e,i,r)}}class RU extends oB{constructor(t,e,i,r){super(t),this._indexPath=e,this._rootCommandKey=i,this._rootWidget=r}canUpdate(t){return super.canUpdate(t)||t===this._widget}setEnabled(t){this._widget.option(this._getItemOptionText()+"disabled",!t);var e=this._hasEnabledCommandItems(this._widget.option("items"));this._rootWidget.option("disabled",!e)}_hasEnabledCommandItems(t){return!!t&&t.some(e=>void 0!==e.command&&!e.disabled||this._hasEnabledCommandItems(e.items))}setValue(t){this._updateContextMenuItemValue(this._widget,this._getItemOptionText(),this._rootCommandKey,t)}setItems(t){this._updateContextMenuItems(this._widget,this._getItemOptionText(),this._rootCommandKey,t)}_getItemOptionText(){return ol.getItemOptionText(this._widget,this._indexPath)}}const Ob=class PU extends rB{_init(){this._commands=[],this._itemHelpers={},this._commandContextMenus={},this._contextMenuList=[],this._valueConverters={},this.bar=new kU(this),this._createOnInternalCommand(),this._createOnCustomCommand(),this._createOnSubMenuVisibilityChangingAction(),super._init()}_initMarkup(){super._initMarkup();var t=!(0,fi.Ym)();!this.option("skipAdjustSize")&&!t&&(0,s.cl)(this.$element(),""),this._commands=this._getCommands(),this._itemHelpers={},this._commandContextMenus={},this._contextMenuList=[];var e=this._createMainElement();if(this._renderToolbar(e),!this.option("skipAdjustSize")&&!t){var i=this.$element().find(".dx-toolbar-before");(0,s.cl)(this.$element(),(0,s.dz)(i))}}_createMainElement(){return(0,u.Z)("<div>").addClass("dx-diagram-toolbar").appendTo(this._$element)}_getCommands(){return this.option("commands")||[]}_renderToolbar(t){var e=this._commands.filter(D=>-1===["after","center"].indexOf(D.location)),i=this._commands.filter(D=>"center"===D.location),r=this._commands.filter(D=>"after"===D.location),v=[].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(t,Sb.Z,{dataSource:v})}_prepareToolbarItems(t,e,i){return t.map(r=>(0,y.l)(!0,{location:e,locateInMenu:this.option("locateInMenu")},this._createItem(r,e,i),this._createItemOptions(r),this._createItemActionOptions(r,i)))}_createItem(t,e,i){return(t.getCommandValue||t.getEditorValue||t.getEditorDisplayValue)&&(this._valueConverters[t.command]={getCommandValue:t.getCommandValue,getEditorValue:t.getEditorValue,getEditorDisplayValue:t.getEditorDisplayValue}),"separator"===t.widget?{template:(r,v,D)=>{(0,u.Z)(D).addClass("dx-diagram-toolbar-separator")},menuItemTemplate:(r,v,D)=>{(0,u.Z)(D).addClass("dx-diagram-toolbar-menu-separator")}}:{widget:t.widget||"dxButton",cssClass:t.cssClass,options:{stylingMode:this.option("buttonStylingMode"),type:this.option("buttonType"),text:t.text,hint:t.hint,icon:t.icon||t.iconUnchecked||t.iconChecked,iconChecked:t.iconChecked,iconUnchecked:t.iconUnchecked,onInitialized:r=>this._onItemInitialized(r.component,t),onContentReady:r=>this._onItemContentReady(r.component,t,i)}}}_createItemOptions(t){var{widget:e,command:i,items:r,valueExpr:v,displayExpr:D,showText:A,hint:z,icon:Q}=t;return"dxSelectBox"===e?this._createSelectBoxItemOptions(i,z,r,v,D):"dxTextBox"===e?this._createTextBoxItemOptions(i,z):"dxColorBox"===e?this._createColorBoxItemOptions(i,z,Q):e&&"dxButton"!==e?void 0:{showText:A||"inMenu"}}_createSelectBoxItemOptions(t,e,i,r,v){var D=this._createTextEditorItemOptions(e);return D=(0,y.l)(!0,D,{options:{dataSource:i,displayExpr:v||"text",valueExpr:r||"value"}}),i&&i.every(z=>void 0!==z.icon)&&(D=(0,y.l)(!0,D,{options:{fieldTemplate:(z,Q)=>{(0,u.Z)("<i>").addClass(z&&z.icon||"dx-diagram-i-selectbox-null-icon dx-diagram-i").appendTo(Q),(0,u.Z)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(Q)},itemTemplate:(z,Q,ue)=>((0,u.Z)(ue).attr("title",z.hint),'<i class="'.concat(z.icon,'"></i>'))}})),D}_createTextBoxItemOptions(t,e){var i=this._createTextEditorItemOptions(e);return(0,y.l)(!0,i,{options:{readOnly:!0,focusStateEnabled:!1,hoverStateEnabled:!1,buttons:[{name:"dropDown",location:"after",options:{icon:"spindown",disabled:!1,stylingMode:"text",onClick:r=>{var v=this._commandContextMenus[t];v&&this._toggleContextMenu(v)}}}]}})}_createColorBoxItemOptions(t,e,i){var r=this._createTextEditorItemOptions(e);return i&&(r=(0,y.l)(!0,r,{options:{openOnFieldClick:!0,fieldTemplate:(v,D)=>{(0,u.Z)("<i>").addClass(i).css("borderBottomColor",v).appendTo(D),(0,u.Z)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(D)}}})),(0,y.l)(!0,r,{options:{onOpened:()=>{this.option("isMobileView")&&(0,u.Z)("body").addClass(yA)},onClosed:()=>{(0,u.Z)("body").removeClass(yA)}}})}_createTextEditorItemOptions(t){return{options:{stylingMode:this.option("editorStylingMode"),hint:t}}}_createItemActionOptions(t,e){switch(t.widget){case"dxSelectBox":case"dxColorBox":case"dxCheckBox":return{options:{onValueChanged:i=>{var r=ol.getItemCommandParameter(this,t,i.component.option("value"));e.call(this,t.command,t.name,r)}}};case"dxTextBox":return{};default:return{options:{onClick:i=>{if(t.items){var v=i.component._contextMenu;v&&this._toggleContextMenu(v)}else{var r=ol.getItemCommandParameter(this,t);e.call(this,t.command,t.name,r)}}}}}}_toggleContextMenu(t){this._contextMenuList.forEach(e=>{t!==e&&e.hide()}),t.toggle()}_onItemInitialized(t,e){this._addItemHelper(e.command,new oB(t))}_onItemContentReady(t,e,i){if(("dxButton"===t.NAME||"dxTextBox"===t.NAME)&&e.items){var r=this._isTouchMode(),v=(0,u.Z)("<div>").appendTo(this.$element());t._contextMenu=this._createComponent(v,Yv.Z,{items:e.items,target:t.$element(),cssClass:ol.getContextMenuCssClass(),showEvent:"",hideOnOutsideClick:D=>!r&&0===(0,u.Z)(D.target).closest(t._contextMenu._dropDownButtonElement).length,focusStateEnabled:!1,position:{at:"left bottom"},itemTemplate:function(D,A,z){ol.getContextMenuItemTemplate(this,D,A,z)},onItemClick:D=>{var{component:A,itemData:z}=D;ol.onContextMenuItemClick(this,z,i.bind(this)),(!z.items||!z.items.length)&&A.hide()},onShowing:D=>{this._showingSubMenu||(this._showingSubMenu=D.component,this._onSubMenuVisibilityChangingAction({visible:!0,component:this}),D.component.option("items",D.component.option("items")),delete this._showingSubMenu)},onInitialized:D=>{var{component:A}=D;return this._onContextMenuInitialized(A,e,t)},onDisposing:D=>{var{component:A}=D;return this._onContextMenuDisposing(A,e)}}),r||(t._contextMenu._dropDownButtonElement=t.$element(),"dxTextBox"===t.NAME&&(t._contextMenu._dropDownButtonElement=t.getButton("dropDown").element()))}}_isTouchMode(){var{Browser:t}=Co();return t.TouchUI}_onContextMenuInitialized(t,e,i){this._contextMenuList.push(t),e.command&&(this._commandContextMenus[e.command]=t),this._addContextMenuHelper(e,t,[],i)}_addItemHelper(t,e){if(void 0!==t){if(this._itemHelpers[t])throw new Error("Toolbar cannot contain duplicated commands.");this._itemHelpers[t]=e}}_addContextMenuHelper(t,e,i,r){t.items&&t.items.forEach((v,D)=>{var A=i.concat(D);this._addItemHelper(v.command,new RU(e,A,v.command,r)),this._addContextMenuHelper(v,e,A,r)})}_onContextMenuDisposing(t,e){this._contextMenuList.splice(this._contextMenuList.indexOf(t),1),delete this._commandContextMenus[e.command]}_executeCommand(t,e,i){if(!this._updateLocked){if("number"==typeof t){var r=this._valueConverters[t];r&&r.getCommandValue&&(i=r.getCommandValue(i)),this.bar.raiseBarCommandExecuted(t,i)}else"string"==typeof t&&this._onInternalCommandAction({command:t});void 0!==e&&this._onCustomCommandAction({name:e})}}_createOnInternalCommand(){this._onInternalCommandAction=this._createActionByOption("onInternalCommand")}_createOnCustomCommand(){this._onCustomCommandAction=this._createActionByOption("onCustomCommand")}_setItemEnabled(t,e){if(t in this._itemHelpers){var i=this._itemHelpers[t];i.canUpdate(this._showingSubMenu)&&i.setEnabled(e)}}_setEnabled(t){this._toolbarInstance.option("disabled",!t),this._contextMenuList.forEach(e=>{e.option("disabled",!t)})}_setItemValue(t,e){try{if(this._updateLocked=!0,t in this._itemHelpers){var i=this._itemHelpers[t];if(i.canUpdate(this._showingSubMenu)){var v,r=this._valueConverters[t];r&&r.getEditorValue&&(e=r.getEditorValue(e)),r&&r.getEditorDisplayValue&&(v=r.getEditorDisplayValue(e));var D=this._commandContextMenus[t];i.setValue(e,v,D,D&&t)}}}finally{this._updateLocked=!1}}_setItemSubItems(t,e){if(this._updateLocked=!0,t in this._itemHelpers){var i=this._itemHelpers[t];if(i.canUpdate(this._showingSubMenu)){var r=this._commandContextMenus[t];i.setItems(e,r,r&&t)}}this._updateLocked=!1}_createOnSubMenuVisibilityChangingAction(){this._onSubMenuVisibilityChangingAction=this._createActionByOption("onSubMenuVisibilityChanging")}_optionChanged(t){switch(t.name){case"isMobileView":(0,u.Z)("body").removeClass(yA),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(t)}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{isMobileView:!1,export:{fileName:"Diagram"},locateInMenu:"auto",buttonStylingMode:"text",buttonType:"normal",editorStylingMode:"filled",skipAdjustSize:!1})}setCommandChecked(t,e){this._setItemValue(t,e)}setCommandEnabled(t,e){this._setItemEnabled(t,e)}};var CA=l(8114),qO="separator",xA={widget:qO},ms_LARGE_ICON_ITEM="dx-diagram-lg-icon-item",LU={SHOW_TOOLBOX_COMMAND_NAME:"toolbox",SHOW_PROPERTIES_PANEL_COMMAND_NAME:"propertiesPanel",getAllCommands:function(){var{DiagramCommand:n}=Co();return this._allCommands||(this._allCommands={separator:xA,exportSvg:{command:n.ExportSvg,text:wn.Z.format("dxDiagram-commandExportToSvg"),getParameter:t=>e=>this._exportTo(t,e,"SVG","image/svg+xml")},exportPng:{command:n.ExportPng,text:wn.Z.format("dxDiagram-commandExportToPng"),getParameter:t=>e=>this._exportTo(t,e,"PNG","image/png")},exportJpg:{command:n.ExportJpg,text:wn.Z.format("dxDiagram-commandExportToJpg"),getParameter:t=>e=>this._exportTo(t,e,"JPEG","image/jpeg")},undo:{command:n.Undo,hint:wn.Z.format("dxDiagram-commandUndo"),text:wn.Z.format("dxDiagram-commandUndo"),icon:"undo",menuIcon:"undo"},redo:{command:n.Redo,hint:wn.Z.format("dxDiagram-commandRedo"),text:wn.Z.format("dxDiagram-commandRedo"),icon:"redo",menuIcon:"redo"},cut:{command:n.Cut,hint:wn.Z.format("dxDiagram-commandCut"),text:wn.Z.format("dxDiagram-commandCut"),icon:"cut",menuIcon:"cut"},copy:{command:n.Copy,hint:wn.Z.format("dxDiagram-commandCopy"),text:wn.Z.format("dxDiagram-commandCopy"),icon:"copy",menuIcon:"copy"},paste:{command:n.PasteInPosition,hint:wn.Z.format("dxDiagram-commandPaste"),text:wn.Z.format("dxDiagram-commandPaste"),icon:"paste",menuIcon:"paste"},selectAll:{command:n.SelectAll,hint:wn.Z.format("dxDiagram-commandSelectAll"),text:wn.Z.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:n.Delete,hint:wn.Z.format("dxDiagram-commandDelete"),text:wn.Z.format("dxDiagram-commandDelete"),icon:"remove",menuIcon:"remove"},fontName:{command:n.FontName,hint:wn.Z.format("dxDiagram-commandFontName"),text:wn.Z.format("dxDiagram-commandFontName"),widget:"dxSelectBox",items:["Arial","Arial Black","Helvetica","Times New Roman","Courier New","Courier","Verdana","Georgia","Comic Sans MS","Trebuchet MS"].map(t=>({text:t,value:t})),cssClass:"dx-diagram-md-edit-item"},fontSize:{command:n.FontSize,hint:wn.Z.format("dxDiagram-commandFontSize"),text:wn.Z.format("dxDiagram-commandFontSize"),widget:"dxSelectBox",items:[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72].map(t=>({text:t+"pt",value:t+"pt"})),cssClass:"dx-diagram-sm-edit-item"},bold:{command:n.Bold,hint:wn.Z.format("dxDiagram-commandBold"),text:wn.Z.format("dxDiagram-commandBold"),icon:"bold",menuIcon:"bold"},italic:{command:n.Italic,hint:wn.Z.format("dxDiagram-commandItalic"),text:wn.Z.format("dxDiagram-commandItalic"),icon:"italic",menuIcon:"italic"},underline:{command:n.Underline,hint:wn.Z.format("dxDiagram-commandUnderline"),text:wn.Z.format("dxDiagram-commandUnderline"),icon:"underline",menuIcon:"underline"},fontColor:{command:n.FontColor,text:wn.Z.format("dxDiagram-commandTextColor"),hint:wn.Z.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:n.StrokeColor,text:wn.Z.format("dxDiagram-commandLineColor"),hint:wn.Z.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:n.StrokeWidth,text:wn.Z.format("dxDiagram-commandLineWidth"),hint:wn.Z.format("dxDiagram-commandLineWidth"),widget:"dxSelectBox",items:[1,2,3,4,5,6,7,8].map(t=>({text:t+"px",value:t.toString()})),cssClass:"dx-diagram-sm-edit-item"},lineStyle:{command:n.StrokeStyle,text:wn.Z.format("dxDiagram-commandLineStyle"),hint:wn.Z.format("dxDiagram-commandLineStyle"),widget:"dxSelectBox",items:[{value:"",menuIcon:"dx-diagram-i-line-solid dx-diagram-i",hint:wn.Z.format("dxDiagram-commandLineStyleSolid")},{value:"2,2",menuIcon:"dx-diagram-i-line-dotted dx-diagram-i",hint:wn.Z.format("dxDiagram-commandLineStyleDotted")},{value:"6,2",menuIcon:"dx-diagram-i-line-dashed dx-diagram-i",hint:wn.Z.format("dxDiagram-commandLineStyleDashed")}],cssClass:"dx-diagram-image-dropdown-item"},fillColor:{command:n.FillColor,text:wn.Z.format("dxDiagram-commandFillColor"),hint:wn.Z.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:n.TextLeftAlign,hint:wn.Z.format("dxDiagram-commandAlignLeft"),text:wn.Z.format("dxDiagram-commandAlignLeft"),icon:"alignleft",menuIcon:"alignleft"},textAlignCenter:{command:n.TextCenterAlign,hint:wn.Z.format("dxDiagram-commandAlignCenter"),text:wn.Z.format("dxDiagram-commandAlignCenter"),icon:"aligncenter",menuIcon:"aligncenter"},textAlignRight:{command:n.TextRightAlign,hint:wn.Z.format("dxDiagram-commandAlignRight"),text:wn.Z.format("dxDiagram-commandAlignRight"),icon:"alignright",menuIcon:"alignright"},lock:{command:n.Lock,hint:wn.Z.format("dxDiagram-commandLock"),text:wn.Z.format("dxDiagram-commandLock"),icon:"dx-diagram-i-button-lock dx-diagram-i",menuIcon:"dx-diagram-i-menu-lock dx-diagram-i"},unlock:{command:n.Unlock,hint:wn.Z.format("dxDiagram-commandUnlock"),text:wn.Z.format("dxDiagram-commandUnlock"),icon:"dx-diagram-i-button-unlock dx-diagram-i",menuIcon:"dx-diagram-i-menu-unlock dx-diagram-i"},bringToFront:{command:n.BringToFront,hint:wn.Z.format("dxDiagram-commandBringToFront"),text:wn.Z.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:n.SendToBack,hint:wn.Z.format("dxDiagram-commandSendToBack"),text:wn.Z.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:n.InsertShapeImage,text:wn.Z.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:n.EditShapeImage,text:wn.Z.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:n.DeleteShapeImage,text:wn.Z.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:n.ConnectorLineOption,widget:"dxSelectBox",hint:wn.Z.format("dxDiagram-commandConnectorLineType"),text:wn.Z.format("dxDiagram-commandConnectorLineType"),items:[{value:0,menuIcon:"dx-diagram-i-connector-straight dx-diagram-i",hint:wn.Z.format("dxDiagram-commandConnectorLineStraight"),text:wn.Z.format("dxDiagram-commandConnectorLineStraight")},{value:1,menuIcon:"dx-diagram-i-connector-orthogonal dx-diagram-i",hint:wn.Z.format("dxDiagram-commandConnectorLineOrthogonal"),text:wn.Z.format("dxDiagram-commandConnectorLineOrthogonal")}],cssClass:"dx-diagram-image-dropdown-item"},connectorLineStart:{command:n.ConnectorStartLineEnding,widget:"dxSelectBox",items:[{value:0,menuIcon:"dx-diagram-i-connector-begin-none dx-diagram-i",hint:wn.Z.format("dxDiagram-commandConnectorLineNone"),text:wn.Z.format("dxDiagram-commandConnectorLineNone")},{value:1,menuIcon:"dx-diagram-i-connector-begin-arrow dx-diagram-i",hint:wn.Z.format("dxDiagram-commandConnectorLineArrow"),text:wn.Z.format("dxDiagram-commandConnectorLineArrow")},{value:2,menuIcon:"dx-diagram-i-connector-begin-outlined-triangle dx-diagram-i",hint:wn.Z.format("dxDiagram-commandConnectorLineArrow"),text:wn.Z.format("dxDiagram-commandConnectorLineArrow")},{value:3,menuIcon:"dx-diagram-i-connector-begin-filled-triangle dx-diagram-i",hint:wn.Z.format("dxDiagram-commandConnectorLineArrow"),text:wn.Z.format("dxDiagram-commandConnectorLineArrow")}],hint:wn.Z.format("dxDiagram-commandConnectorLineStart"),text:wn.Z.format("dxDiagram-commandConnectorLineStart"),cssClass:"dx-diagram-image-dropdown-item"},connectorLineEnd:{command:n.ConnectorEndLineEnding,widget:"dxSelectBox",items:[{value:0,menuIcon:"dx-diagram-i-connector-end-none dx-diagram-i",hint:wn.Z.format("dxDiagram-commandConnectorLineNone"),text:wn.Z.format("dxDiagram-commandConnectorLineNone")},{value:1,menuIcon:"dx-diagram-i-connector-end-arrow dx-diagram-i",hint:wn.Z.format("dxDiagram-commandConnectorLineArrow"),text:wn.Z.format("dxDiagram-commandConnectorLineArrow")},{value:2,menuIcon:"dx-diagram-i-connector-end-outlined-triangle dx-diagram-i",hint:wn.Z.format("dxDiagram-commandConnectorLineArrow"),text:wn.Z.format("dxDiagram-commandConnectorLineArrow")},{value:3,menuIcon:"dx-diagram-i-connector-end-filled-triangle dx-diagram-i",hint:wn.Z.format("dxDiagram-commandConnectorLineArrow"),text:wn.Z.format("dxDiagram-commandConnectorLineArrow")}],hint:wn.Z.format("dxDiagram-commandConnectorLineEnd"),text:wn.Z.format("dxDiagram-commandConnectorLineEnd"),cssClass:"dx-diagram-image-dropdown-item"},layoutTreeTopToBottom:{command:n.AutoLayoutTreeVertical,text:wn.Z.format("dxDiagram-commandLayoutTopToBottom"),hint:wn.Z.format("dxDiagram-commandLayoutTopToBottom"),icon:"dx-diagram-i-button-layout-tree-tb dx-diagram-i",cssClass:ms_LARGE_ICON_ITEM},layoutTreeBottomToTop:{command:n.AutoLayoutTreeVerticalBottomToTop,text:wn.Z.format("dxDiagram-commandLayoutBottomToTop"),hint:wn.Z.format("dxDiagram-commandLayoutBottomToTop"),icon:"dx-diagram-i-button-layout-tree-bt dx-diagram-i",cssClass:ms_LARGE_ICON_ITEM},layoutTreeLeftToRight:{command:n.AutoLayoutTreeHorizontal,text:wn.Z.format("dxDiagram-commandLayoutLeftToRight"),hint:wn.Z.format("dxDiagram-commandLayoutLeftToRight"),icon:"dx-diagram-i-button-layout-tree-lr dx-diagram-i",cssClass:ms_LARGE_ICON_ITEM},layoutTreeRightToLeft:{command:n.AutoLayoutTreeHorizontalRightToLeft,text:wn.Z.format("dxDiagram-commandLayoutRightToLeft"),hint:wn.Z.format("dxDiagram-commandLayoutRightToLeft"),icon:"dx-diagram-i-button-layout-tree-rl dx-diagram-i",cssClass:ms_LARGE_ICON_ITEM},layoutLayeredTopToBottom:{command:n.AutoLayoutLayeredVertical,text:wn.Z.format("dxDiagram-commandLayoutTopToBottom"),hint:wn.Z.format("dxDiagram-commandLayoutTopToBottom"),icon:"dx-diagram-i-button-layout-layered-tb dx-diagram-i",cssClass:ms_LARGE_ICON_ITEM},layoutLayeredBottomToTop:{command:n.AutoLayoutLayeredVerticalBottomToTop,text:wn.Z.format("dxDiagram-commandLayoutBottomToTop"),hint:wn.Z.format("dxDiagram-commandLayoutBottomToTop"),icon:"dx-diagram-i-button-layout-layered-bt dx-diagram-i",cssClass:ms_LARGE_ICON_ITEM},layoutLayeredLeftToRight:{command:n.AutoLayoutLayeredHorizontal,text:wn.Z.format("dxDiagram-commandLayoutLeftToRight"),hint:wn.Z.format("dxDiagram-commandLayoutLeftToRight"),icon:"dx-diagram-i-button-layout-layered-lr dx-diagram-i",cssClass:ms_LARGE_ICON_ITEM},layoutLayeredRightToLeft:{command:n.AutoLayoutLayeredHorizontalRightToLeft,text:wn.Z.format("dxDiagram-commandLayoutRightToLeft"),hint:wn.Z.format("dxDiagram-commandLayoutRightToLeft"),icon:"dx-diagram-i-button-layout-layered-rl dx-diagram-i",cssClass:ms_LARGE_ICON_ITEM},fullScreen:{command:n.Fullscreen,hint:wn.Z.format("dxDiagram-commandFullscreen"),text:wn.Z.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:n.ViewUnits,hint:wn.Z.format("dxDiagram-commandUnits"),text:wn.Z.format("dxDiagram-commandUnits"),widget:"dxSelectBox"},simpleView:{command:n.ToggleSimpleView,hint:wn.Z.format("dxDiagram-commandSimpleView"),text:wn.Z.format("dxDiagram-commandSimpleView"),widget:"dxCheckBox"},showGrid:{command:n.ShowGrid,hint:wn.Z.format("dxDiagram-commandShowGrid"),text:wn.Z.format("dxDiagram-commandShowGrid"),widget:"dxCheckBox"},snapToGrid:{command:n.SnapToGrid,hint:wn.Z.format("dxDiagram-commandSnapToGrid"),text:wn.Z.format("dxDiagram-commandSnapToGrid"),widget:"dxCheckBox"},gridSize:{command:n.GridSize,hint:wn.Z.format("dxDiagram-commandGridSize"),text:wn.Z.format("dxDiagram-commandGridSize"),widget:"dxSelectBox"},pageSize:{command:n.PageSize,hint:wn.Z.format("dxDiagram-commandPageSize"),text:wn.Z.format("dxDiagram-commandPageSize"),widget:"dxSelectBox",cssClass:"dx-diagram-lg-edit-item",getCommandValue:t=>JSON.parse(t),getEditorValue:t=>JSON.stringify(t)},pageOrientation:{command:n.PageLandscape,hint:wn.Z.format("dxDiagram-commandPageOrientation"),text:wn.Z.format("dxDiagram-commandPageOrientation"),widget:"dxSelectBox",items:[{value:!0,text:wn.Z.format("dxDiagram-commandPageOrientationLandscape")},{value:!1,text:wn.Z.format("dxDiagram-commandPageOrientationPortrait")}],cssClass:"dx-diagram-md-edit-item"},pageColor:{command:n.PageColor,hint:wn.Z.format("dxDiagram-commandPageColor"),text:wn.Z.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:n.ZoomLevel,hint:wn.Z.format("dxDiagram-commandZoomLevel"),text:wn.Z.format("dxDiagram-commandZoomLevel"),widget:"dxTextBox",items:[xA,{command:n.FitToScreen,hint:wn.Z.format("dxDiagram-commandFitToContent"),text:wn.Z.format("dxDiagram-commandFitToContent")},{command:n.FitToWidth,hint:wn.Z.format("dxDiagram-commandFitToWidth"),text:wn.Z.format("dxDiagram-commandFitToWidth")},xA,{command:n.AutoZoomToContent,hint:wn.Z.format("dxDiagram-commandAutoZoomByContent"),text:wn.Z.format("dxDiagram-commandAutoZoomByContent")},{command:n.AutoZoomToWidth,hint:wn.Z.format("dxDiagram-commandAutoZoomByWidth"),text:wn.Z.format("dxDiagram-commandAutoZoomByWidth")}],getEditorDisplayValue:t=>Math.round(100*t)+"%",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:wn.Z.format("dxDiagram-uiShowToolbox"),text:wn.Z.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:wn.Z.format("dxDiagram-uiProperties"),text:wn.Z.format("dxDiagram-uiProperties")}})},getMainToolbarCommands:function(n,t){var e=this.getAllCommands(),i=n?this._getPreparedCommands(e,n):this._getDefaultMainToolbarCommands(e);return this._prepareToolbarCommands(i,t)},_getDefaultMainToolbarCommands:function(n){return this._defaultMainToolbarCommands||(this._defaultMainToolbarCommands=[n.undo,n.redo,n.separator,n.fontName,n.fontSize,n.bold,n.italic,n.underline,n.separator,n.lineWidth,n.lineStyle,n.separator,n.fontColor,n.lineColor,n.fillColor,n.separator,n.textAlignLeft,n.textAlignCenter,n.textAlignRight,n.separator,n.connectorLineType,n.connectorLineStart,n.connectorLineEnd,n.separator,{text:wn.Z.format("dxDiagram-uiLayout"),showText:"always",items:[{text:wn.Z.format("dxDiagram-uiLayoutTree"),items:[n.layoutTreeTopToBottom,n.layoutTreeBottomToTop,n.layoutTreeLeftToRight,n.layoutTreeRightToLeft]},{text:wn.Z.format("dxDiagram-uiLayoutLayered"),items:[n.layoutLayeredTopToBottom,n.layoutLayeredBottomToTop,n.layoutLayeredLeftToRight,n.layoutLayeredRightToLeft]}]}])},getHistoryToolbarCommands:function(n,t){var e=this.getAllCommands(),i=n?this._getPreparedCommands(e,n):this._getDefaultHistoryToolbarCommands(e);return this._prepareToolbarCommands(i,t)},_getDefaultHistoryToolbarCommands:function(n){return this._defaultHistoryToolbarCommands||(this._defaultHistoryToolbarCommands=[n.undo,n.redo,n.separator,n.toolbox])},getViewToolbarCommands:function(n,t){var e=this.getAllCommands(),i=n?this._getPreparedCommands(e,n):this._getDefaultViewToolbarCommands(e);return this._prepareToolbarCommands(i,t)},_getDefaultViewToolbarCommands:function(n){return this._defaultViewToolbarCommands||(this._defaultViewToolbarCommands=[n.zoomLevel,n.separator,n.fullScreen,n.separator,{widget:"dxButton",icon:"export",text:wn.Z.format("dxDiagram-uiExport"),hint:wn.Z.format("dxDiagram-uiExport"),items:[n.exportSvg,n.exportPng,n.exportJpg]},{icon:"preferences",hint:wn.Z.format("dxDiagram-uiSettings"),text:wn.Z.format("dxDiagram-uiSettings"),items:[n.units,n.separator,n.showGrid,n.snapToGrid,n.gridSize,n.separator,n.simpleView,n.toolbox]}])},getPropertiesToolbarCommands:function(n,t){var e=this.getAllCommands(),i=n?this._getPreparedCommands(e,n):this._getDefaultPropertiesToolbarCommands(e);return this._prepareToolbarCommands(i,t)},_getDefaultPropertiesToolbarCommands:function(n){return this._defaultPropertiesToolbarCommands||(this._defaultPropertiesToolbarCommands=[n.propertiesPanel])},_getDefaultPropertyPanelCommandGroups:function(){return this._defaultPropertyPanelCommandGroups||(this._defaultPropertyPanelCommandGroups=[{title:wn.Z.format("dxDiagram-uiStyle"),groups:[{title:wn.Z.format("dxDiagram-uiText"),commands:["fontName","fontSize","bold","italic","underline","textAlignLeft","textAlignCenter","textAlignRight","fontColor"]},{title:wn.Z.format("dxDiagram-uiObject"),commands:["lineStyle","lineWidth","lineColor","fillColor"]},{title:wn.Z.format("dxDiagram-uiConnector"),commands:["connectorLineType","connectorLineStart","connectorLineEnd"]}]},{title:wn.Z.format("dxDiagram-uiLayout"),groups:[{title:wn.Z.format("dxDiagram-uiLayoutLayered"),commands:["layoutLayeredTopToBottom","layoutLayeredBottomToTop","layoutLayeredLeftToRight","layoutLayeredRightToLeft"]},{title:wn.Z.format("dxDiagram-uiLayoutTree"),commands:["layoutTreeTopToBottom","layoutTreeBottomToTop","layoutTreeLeftToRight","layoutTreeRightToLeft"]}]},{title:wn.Z.format("dxDiagram-uiDiagram"),groups:[{title:wn.Z.format("dxDiagram-uiPage"),commands:["pageSize","pageOrientation","pageColor"]}]}])},_preparePropertyPanelGroups:function(n){var t=this.getAllCommands(),e=[];return n.forEach(i=>{var v,r=i.commands;r&&(r=this._getPreparedCommands(t,r),r=this._prepareToolbarCommands(r)),i.groups&&(v=[],i.groups.forEach(D=>{var A=D.commands;A&&(A=this._getPreparedCommands(t,A),A=this._prepareToolbarCommands(A)),v.push({title:D.title,commands:A})})),e.push({title:i.title,commands:r,groups:v})}),e},getPropertyPanelCommandTabs:function(n){return n=n||this._getDefaultPropertyPanelCommandGroups(),this._preparePropertyPanelGroups(n)},getContextMenuCommands:function(n){var t=this.getAllCommands(),e=n?this._getPreparedCommands(t,n):this._getDefaultContextMenuCommands(t);return this._prepareContextMenuCommands(e)},_getDefaultContextMenuCommands:function(n){return this._defaultContextMenuCommands||(this._defaultContextMenuCommands=[n.cut,n.copy,n.paste,n.delete,n.separator,n.selectAll,n.separator,n.bringToFront,n.sendToBack,n.separator,n.lock,n.unlock,n.separator,n.insertShapeImage,n.editShapeImage,n.deleteShapeImage])},_getPreparedCommands(n,t){return t.map(e=>{if(e.widget&&e.widget===qO)return{command:e,location:e.location};if(n[e])return n[e];if(e.text||e.icon||e.name){var r=e.name&&n[e.name],v={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 v.items=Array.isArray(e.items)?this._getPreparedCommands(n,e.items):r&&r.items,v}}).filter(e=>e)},_prepareContextMenuCommands(n,t,e){var i=!1;return n.map(r=>{if(this._isValidCommand(r,t)){if(!r.widget||r.widget!==qO){var v=this._cloneCommand(r,t);return v.icon=v.menuIcon,v.beginGroup=i,v.rootCommand=v.command?void 0:e&&e.command,i=!1,v}i=!0}}).filter(r=>r)},_prepareToolbarCommands(n,t){return n.map(e=>{if(this._isValidCommand(e,t))return this._cloneCommand(e,t)}).filter(e=>e).filter((e,i,r)=>(e.widget!==qO||i!==r.length-1)&&e)},_cloneCommand(n,t){var e=(0,y.l)({},n);return Array.isArray(n.items)&&(e.items=this._prepareContextMenuCommands(n.items,t,e)),e},_isValidCommand:(n,t)=>-1===(t=t||[]).indexOf(n.command),_exportTo(n,t,e,i){var r=(0,fi.Jj)();if(r&&r.atob&&(0,w.mf)(r.Blob)){var v=this._getBlobByDataURI(r,t,i),D=n.option("export");CA.A.saveAs(D.fileName||"foo",e,v)}},_getBlobByDataURI(n,t,e){for(var i=n.atob(t.split(",")[1]),r=new Uint8Array(i.length),v=0;v<i.length;v++)r[v]=i.charCodeAt(v);return new n.Blob([r.buffer],{type:e})}};const gl=LU,FU=class BU extends Ob{_getCommands(){return gl.getMainToolbarCommands(this.option("commands"),this.option("excludeCommands"))}},NU=class VU extends Ob{_getCommands(){return gl.getHistoryToolbarCommands(this.option("commands"),this._getExcludeCommands())}_getExcludeCommands(){var t=[].concat(this.option("excludeCommands"));return this.option("isMobileView")||t.push(gl.SHOW_TOOLBOX_COMMAND_NAME),t}},zU=class HU extends Ob{_getCommands(){return gl.getViewToolbarCommands(this.option("commands"),this.option("excludeCommands"))}},UU=class WU extends Ob{_getCommands(){return gl.getPropertiesToolbarCommands()}};class lB extends Yv.Z{_renderContextMenuOverlay(){super._renderContextMenuOverlay(),this._overlay&&this.option("isTouchBarMode")&&this._overlay&&this._overlay.option("onShown",()=>{(0,u.Z)(this._overlay.$content()).parent().addClass("dx-diagram-touchbar-overlay")})}}class $U extends _A{constructor(t){super(t)}getCommandKeys(){return this._getKeys(this._owner._commands)}setItemValue(t,e){this._owner._setItemValue(t,e)}setItemEnabled(t,e){this._owner._setItemEnabled(t,e)}setItemVisible(t,e){this._owner._setItemVisible(t,e)}setItemSubItems(t,e){this._owner._setItemSubItems(t,e)}setEnabled(t){this._owner._setEnabled(t)}isVisible(){return this._owner.isVisible()}}const YU_DiagramContextMenuWrapper=class jU extends sa.Z{_init(){super._init(),this._createOnVisibilityChangingAction(),this._createOnInternalCommand(),this._createOnCustomCommand(),this._createOnItemClickAction(),this._tempState=void 0,this._commands=[],this._commandToIndexMap={},this.bar=new $U(this)}_initMarkup(){super._initMarkup(),this._commands=this._getCommands(),this._commandToIndexMap={},this._fillCommandToIndexMap(this._commands,[]),this._$contextMenuTargetElement=(0,u.Z)("<div>").addClass("dx-diagram-touchbar-target").appendTo(this.$element());var t=(0,u.Z)("<div>").appendTo(this.$element());this._contextMenuInstance=this._createComponent(t,lB,{isTouchBarMode:this._isTouchBarMode(),cssClass:this._isTouchBarMode()?"dx-diagram-touchbar":ol.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){ol.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(t,e,i){if(this._contextMenuInstance.hide(),this._isTouchBarMode()){this._$contextMenuTargetElement.show(),i||(i={x:t,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:t+" "+e}),this._contextMenuInstance.show()}_hide(){this._$contextMenuTargetElement.hide(),this._contextMenuInstance.hide()}_isTouchBarMode(){var{Browser:t}=Co();return t.TouchUI}_onItemClick(t){var e=!1;this._onItemClickAction&&(e=this._onItemClickAction(t)),e||(ol.onContextMenuItemClick(this,t,this._executeCommand.bind(this)),this._contextMenuInstance.hide())}_executeCommand(t,e,i){"number"==typeof t?this.bar.raiseBarCommandExecuted(t,i):"string"==typeof t&&this._onInternalCommandAction({command:t}),void 0!==e&&this._onCustomCommandAction({name:e})}_createOnInternalCommand(){this._onInternalCommandAction=this._createActionByOption("onInternalCommand")}_createOnCustomCommand(){this._onCustomCommandAction=this._createActionByOption("onCustomCommand")}_getCommands(){return gl.getContextMenuCommands(this.option("commands"))}_fillCommandToIndexMap(t,e){t.forEach((i,r)=>{var v=e.concat([r]);void 0!==i.command&&(this._commandToIndexMap[i.command]=v),Array.isArray(i.items)&&this._fillCommandToIndexMap(i.items,v)})}_setItemEnabled(t,e){this._setItemVisible(t,e)}_setItemVisible(t,e){var i=ol.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[t]);ol.updateContextMenuItemVisible(this._contextMenuInstance,i,e)}_setItemValue(t,e){var i=ol.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[t]);ol.updateContextMenuItemValue(this._contextMenuInstance,i,t,e)}_setItemSubItems(t,e){var i=ol.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[t]);ol.updateContextMenuItems(this._contextMenuInstance,i,t,e)}_setEnabled(t){this._contextMenuInstance.option("disabled",!t)}isVisible(){return this._inOnShowing}_createOnVisibilityChangingAction(){this._onVisibilityChangingAction=this._createActionByOption("onVisibilityChanging")}_createOnItemClickAction(){this._onItemClickAction=this._createActionByOption("onItemClick")}_optionChanged(t){switch(t.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(t)}}};var Db=l(4567),uB="dx-diagram-context-toolbox-content";const e5=class QU extends sa.Z{_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=(0,u.Z)("<div>").addClass("dx-diagram-context-toolbox-target").appendTo(this.$element());var t=(0,u.Z)("<div>").appendTo(this.$element()),e="dx-diagram-context-toolbox";this._isTouchMode()&&(e+=" dx-diagram-touch-context-toolbox"),this._popoverInstance=this._createComponent(t,Db.Z,{hideOnOutsideClick:!1,container:this.$element()}),this._popoverInstance.$element().addClass(e)}_isTouchMode(){var{Browser:t}=Co();return t.TouchUI}_show(t,e,i,r,v){this._popoverInstance.hide();var D=(0,u.Z)("<div>").addClass(uB);void 0!==this.option("toolboxWidth")&&D.css("width",this.option("toolboxWidth")),this._$popoverTargetElement.css({left:t+this._popoverPositionData[i].offset.x,top:e+this._popoverPositionData[i].offset.y}).show();var A=(0,fi.Jj)(),z=this._$popoverTargetElement.get(0);this._$popoverTargetElement.css({left:z.offsetLeft-(z.getBoundingClientRect().left+A.scrollX-z.offsetLeft),top:z.offsetTop-(z.getBoundingClientRect().top+A.scrollY-z.offsetTop)}),this._popoverInstance.option({position:{my:this._popoverPositionData[i].my,at:this._popoverPositionData[i].at,of:this._$popoverTargetElement},contentTemplate:D,onContentReady:function(){var Q=this.$element().find("."+uB);this._onShownAction({category:r,callback:v,$element:Q,hide:()=>this._popoverInstance.hide()})}.bind(this)}),this._popoverInstance.show()}_hide(){this._$popoverTargetElement.hide(),this._popoverInstance.hide()}};var Tp=l(8531);const n5=class t5 extends sa.Z{_init(){super._init(),this._command=void 0,this._isShown=!1,this._createOnGetContentOption(),this._createOnHiddenOption()}_initMarkup(){super._initMarkup(),this._command=this.option("command"),this._$popupElement=(0,u.Z)("<div>").appendTo(this.$element()),this._popup=this._createComponent(this._$popupElement,Tp.Z,{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(0,y.l)(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:wn.Z.format("dxDiagram-dialogButtonOK"),onClick:function(){this._command.execute(this._commandParameter),this._hide()}.bind(this)}}}_getCancelToolbarItem(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:wn.Z.format("dxDiagram-dialogButtonCancel"),onClick:this._hide.bind(this)}}}_optionChanged(t){switch(t.name){case"title":case"maxWidth":case"height":case"toolbarItems":this._popup.option(t.name,t.value);break;case"command":this._command=t.value;break;case"onGetContent":this._createOnGetContentOption();break;case"onHidden":this._createOnHiddenOption();break;default:super._optionChanged(t)}}_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 Ef=l(3862),dB=(0,Ld.Z)(function(){var n=b.Z.getDocument();n.body.insertAdjacentHTML("beforeend","<div style='position: absolute; overflow: scroll; width: 100px; height: 100px; top: -9999;'></div>");var t=n.body.lastElementChild,e=function i5(n){return n.offsetWidth-n.clientWidth}(t);return n.body.removeChild(t),e});const o5=class r5 extends sa.Z{_init(){super._init();var{EventDispatcher:t}=Co();this.onScroll=new t,this._createOnCreateDiagramAction()}_initMarkup(){super._initMarkup();var t=(0,u.Z)("<div>").appendTo(this.$element()),e={direction:"both",bounceEnabled:!1,scrollByContent:!1,onScroll:r=>{var{scrollOffset:v}=r;this._raiseOnScroll(v.left,v.top)}},i=this.option("useNativeScrolling");void 0!==i&&(e.useNative=i),this._scrollView=this._createComponent(t,Ef.Z,e),this._onCreateDiagramAction({$parent:(0,u.Z)(this._scrollView.content()),scrollView:this})}setScroll(t,e){this._scrollView.scrollTo({left:t,top:e}),this._raiseOnScrollWithoutPoint()}offsetScroll(t,e){this._scrollView.scrollBy({left:t,top:e}),this._raiseOnScrollWithoutPoint()}getSize(){var{Size:t}=Co(),e=this._scrollView.$element();return new t(Math.floor((0,s.dz)(e)),Math.floor((0,s.Cr)(e)))}getScrollContainer(){return this._scrollView.$element()[0]}getScrollBarWidth(){return this.option("useNativeScrolling")?dB():0}detachEvents(){}_raiseOnScroll(t,e){var{Point:i}=Co();this.onScroll.raise("notifyScrollChanged",()=>new i(t,e))}_raiseOnScrollWithoutPoint(){var{Point:t}=Co();this.onScroll.raise("notifyScrollChanged",()=>new t(this._scrollView.scrollLeft(),this._scrollView.scrollTop()))}_createOnCreateDiagramAction(){this._onCreateDiagramAction=this._createActionByOption("onCreateDiagram")}_optionChanged(t){switch(t.name){case"onCreateDiagram":this._createOnCreateDiagramAction();break;case"useNativeScrolling":break;default:super._optionChanged(t)}}};var a5={getDefaultGroups(){return this._groups||(this._groups={general:{category:"general",title:wn.Z.format("dxDiagram-categoryGeneral")},flowchart:{category:"flowchart",title:wn.Z.format("dxDiagram-categoryFlowchart")},orgChart:{category:"orgChart",title:wn.Z.format("dxDiagram-categoryOrgChart")},containers:{category:"containers",title:wn.Z.format("dxDiagram-categoryContainers")},custom:{category:"custom",title:wn.Z.format("dxDiagram-categoryCustom")}})},getGroups:function(n){var t=this.getDefaultGroups();return n?n.map(function(e){return"string"==typeof e?{category:e,title:t[e]&&t[e].title||e}:e}).filter(function(e){return e}):[t.general,t.flowchart,t.orgChart,t.containers]}};const s5=a5;var bA=l(3447),vh=l(6492),cB=Db.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(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 vh.Z,this.$overlayContent().attr({id:this._contentId,role:"tooltip"}),this._toggleAriaDescription(!0)},_toggleAriaDescription:function(n){var t=(0,u.Z)(this.option("target")),e=n?this._contentId:void 0;(0,w.FJ)(t.get(0))||this.setAria("describedby",e,t)}});(0,T.Z)("dxTooltip",cB);const hB=cB,JO=hB,pB=class c5 extends rB{_init(){super._init(),this._createOnVisibilityChangingAction(),this._createOnVisibilityChangedAction()}isVisible(){return this.option("isVisible")}isMobileView(){return this.option("isMobileView")}_initMarkup(){super._initMarkup();var t=this.$element(),e=(0,u.Z)("<div>").addClass(this._getPopupClass()).addClass(this.isMobileView()&&"dx-diagram-mobile-popup").appendTo(t);this._popup=this._createComponent(e,Tp.Z,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(0,u.Z)(this._getPopupContent()).parent().find(".dx-popup-title")}_getPointerUpElements(){return[this._getPopupContent(),this._getPopupTitle()]}_getVerticalPaddingsAndBorders(){var t=(0,u.Z)(this._getPopupContent());return(0,s.zp)(t)-(0,s.Cr)(t)}_getHorizontalPaddingsAndBorders(){var t=(0,u.Z)(this._getPopupContent());return(0,s.Y_)(t)-(0,s.dz)(t)}_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(t){return(0,y.l)({type:"slide",start:()=>{(0,u.Z)("body").css("overflow","hidden")},complete:()=>{(0,u.Z)("body").css("overflow","")}},t)}_getPopupAnimation(){return{hide:{type:"fadeOut"},show:{type:"fadeIn"}}}_getPopupOptions(){var t=this;return{animation:(0,fi.Ym)()?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(){t._renderPopupContent(t._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(t){}_updatePopupVisible(){this._popup.option("visible",this.isVisible())}_createOnVisibilityChangingAction(){this._onVisibilityChangingAction=this._createActionByOption("onVisibilityChanging")}_createOnVisibilityChangedAction(){this._onVisibilityChangedAction=this._createActionByOption("onVisibilityChanged")}_optionChanged(t){switch(t.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(t)}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{isVisible:!0,isMobileView:!1,offsetX:0,offsetY:0})}};var gB="shape-toolbox-tooltip";const y5=class v5 extends pB{_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:(0,y.l)(e,{offset:this.option("offsetX")+" "+this.option("offsetY")})}_getPopupAnimation(){var t=this.option("offsetParent");return this.isMobileView()?{hide:this._getPopupSlideAnimationObject({direction:"left",from:{position:{my:"left top",at:"left top",of:t}},to:{position:{my:"right top",at:"left top",of:t}}}),show:this._getPopupSlideAnimationObject({direction:"right",from:{position:{my:"right top",at:"left top",of:t}},to:{position:{my:"left top",at:"left top",of:t}}})}:super._getPopupAnimation()}_getPopupOptions(){var t=super._getPopupOptions();return this.isMobileView()?t:(0,y.l)(t,{showTitle:!0,toolbarItems:[{widget:"dxButton",location:"center",options:{activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,icon:"diagram-toolbox-drag",stylingMode:"outlined",type:"normal"}}]})}_renderPopupContent(t){var e="100%";if(this.option("showSearch")){var i=(0,u.Z)("<div>").addClass("dx-diagram-toolbox-input-container").appendTo(t);this._updateElementWidth(i),this._renderSearchInput(i),(0,fi.Ym)()&&(e="calc(100% - "+(0,s.Cr)(this._searchInput.$element())+"px)")}var r=(0,u.Z)("<div>").addClass("dx-diagram-toolbox-panel").appendTo(t);(0,s.QQ)(r,e),this._updateElementWidth(r),this._renderScrollView(r)}_updateElementWidth(t){void 0!==this.option("toolboxWidth")&&t.css("width",this.option("toolboxWidth"))}updateMaxHeight(){if(!this.isMobileView()){var t=6;if(this._popup){var e=this._getPopupTitle();t+=(0,s.zp)(e)}this._accordion&&(t+=(0,s.zp)(this._accordion.$element())),this._searchInput&&(t+=(0,s.zp)(this._searchInput.$element())),this.option("maxHeight",t)}}_renderSearchInput(t){var e=(0,u.Z)("<div>").addClass("dx-diagram-toolbox-input").appendTo(t);this._searchInput=this._createComponent(e,bA.Z,{stylingMode:"outlined",placeholder:wn.Z.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(t){var e=(0,u.Z)("<div>").appendTo(t);this._scrollView=this._createComponent(e,Ef.Z);var i=this._scrollView._moveIsAllowed.bind(this._scrollView);this._scrollView._moveIsAllowed=v=>{for(var D=0;D<this._toolboxes.length;D++)if((0,u.Z)(this._toolboxes[D]).children(".dxdi-tb-start-drag-flag").length)return!1;return i(v)};var r=(0,u.Z)("<div>").appendTo(this._scrollView.content());this._updateElementWidth(r),this._renderAccordion(r)}_getAccordionDataSource(){for(var t=[],e=this.option("toolboxGroups"),i=0;i<e.length;i++){var r=e[i].category;t.push({category:r,title:e[i].title||r,expanded:e[i].expanded,displayMode:e[i].displayMode,shapes:e[i].shapes,onTemplate:(A,z,Q)=>{var ue=(0,u.Z)(z);this._onShapeCategoryRenderedAction({category:Q.category,displayMode:Q.displayMode,dataToggle:gB,shapes:Q.shapes,$element:ue}),this._toolboxes.push(ue),""!==this._filterText&&this._onFilterChangedAction({text:this._filterText,filteringToolboxes:this._toolboxes.length-1}),this._createTooltips(ue)}})}return t}_createTooltips(t){if(!this._isTouchMode()){var e=t.find('[data-toggle="'+gB+'"]'),i=this.$element();e.each((r,v)=>{var D=(0,u.Z)(v),A=D.attr("title");if(A){var z=(0,u.Z)("<div>").text(A).appendTo(i);this._createComponent(z,JO,{target:D.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:t}=Co();return t.TouchUI}_renderAccordion(t){this._accordion=this._createComponent(t,X,{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(t){t._deferredAnimate=new P.BH,t._deferredAnimate.done(()=>{this.updateMaxHeight(),this._scrollView.update(),this._updateScrollAnimateSubscription(t)})}_onInputChanged(t){this._filterText=t,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(t=>{var e=(0,u.Z)(t);this._createTooltips(e)})}_createOnShapeCategoryRenderedAction(){this._onShapeCategoryRenderedAction=this._createActionByOption("onShapeCategoryRendered")}_createOnFilterChangedAction(){this._onFilterChangedAction=this._createActionByOption("onFilterChanged")}_optionChanged(t){switch(t.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(t)}}};var fB=l(3078);const T5=class D5 extends pB{_init(){super._init(),this._commandTabs=gl.getPropertyPanelCommandTabs(this.option("propertyTabs")),this._createOnCreateToolbar(),this._createOnSelectedGroupChanged()}_initMarkup(){this._toolbars=[],this._selectedToolbar=void 0,super._initMarkup()}_getPopupClass(){var t="dx-diagram-properties-popup";return this._hasTabPanel()||(t+=" dx-diagram-properties-popup-notabs"),t}_getPopupWidth(){return this.isMobileView()?"100%":420}_getPopupHeight(){return 340}_getPopupPosition(){var t=this.option("offsetParent");return this.isMobileView()?{my:"left bottom",at:"left bottom",of:t}:{my:"right bottom",at:"right bottom",of:t,offset:"-"+this.option("offsetX")+" -"+this.option("offsetY")}}_getPopupAnimation(){var t=this.option("offsetParent");return this.isMobileView()?{hide:this._getPopupSlideAnimationObject({direction:"bottom",from:{position:{my:"left bottom",at:"left bottom",of:t}},to:{position:{my:"left top",at:"left bottom",of:t}}}),show:this._getPopupSlideAnimationObject({direction:"top",from:{position:{my:"left top",at:"left bottom",of:t}},to:{position:{my:"left bottom",at:"left bottom",of:t}}})}:super._getPopupAnimation()}_getPopupOptions(){return(0,y.l)(super._getPopupOptions(),{showTitle:this.isMobileView(),showCloseButton:this.isMobileView()})}_renderPopupContent(t){if(this._commandTabs.length){var e=(0,u.Z)("<div>").addClass("dx-diagram-properties-panel").appendTo(t);this._hasTabPanel()?this._renderTabPanel(e):this._renderTabContent(e,this._commandTabs[0],0,!0)}}_hasTabPanel(){return this._commandTabs.length>1}_renderTabPanel(t){var e=(0,u.Z)("<div>").appendTo(t);this._tabPanel=this._createComponent(e,fB.Z,{focusStateEnabled:!1,dataSource:this._commandTabs,itemTemplate:(i,r,v)=>{this._renderTabContent(v,i,r)},onSelectionChanged:i=>{this._onSelectedGroupChangedAction(),this._onPointerUpAction()},onContentReady:i=>{this._popup.option("height",(0,s.Cr)(i.component.$element())+this._getVerticalPaddingsAndBorders()),this._firstScrollView&&(this._scrollViewHeight=(0,s.zp)(this._firstScrollView.$element()),this._firstScrollView.option("height",this._scrollViewHeight))}})}_renderTabContent(t,e,i,r){var v=(0,u.Z)("<div>").appendTo(t),D=this._createComponent(v,Ef.Z,{height:this._scrollViewHeight});this._renderTabInnerContent(D.content(),e,i),r?this._popup.option("height",(0,s.Cr)(D.$element())+this._getVerticalPaddingsAndBorders()):this._firstScrollView=this._firstScrollView||D}_renderTabInnerContent(t,e,i){e.groups?e.groups.forEach((r,v)=>{this._renderTabGroupContent(t,i,r.title,r.commands)}):e.commands&&this._renderTabGroupContent(t,i,void 0,e.commands)}_renderTabGroupContent(t,e,i,r){i&&(0,u.Z)("<div>").addClass("dx-diagram-properties-panel-group-title").appendTo(t).text(i);var D={$parent:(0,u.Z)("<div>").addClass("dx-diagram-properties-panel-group-toolbar").appendTo(t),commands:r};this._onCreateToolbarAction(D),this._toolbars[e]||(this._toolbars[e]=[]),this._toolbars[e].push(D.toolbar),this._selectedToolbar=D.toolbar}getActiveToolbars(){var t=this._tabPanel?this._tabPanel.option("selectedIndex"):0;return this._toolbars[t]}_createOnCreateToolbar(){this._onCreateToolbarAction=this._createActionByOption("onCreateToolbar")}_createOnSelectedGroupChanged(){this._onSelectedGroupChangedAction=this._createActionByOption("onSelectedGroupChanged")}_optionChanged(t){switch(t.name){case"onCreateToolbar":this._createOnCreateToolbar();break;case"onSelectedGroupChanged":this._createOnSelectedGroupChanged();break;case"propertyTabs":this._invalidate();break;default:super._optionChanged(t)}}},M5=class I5 extends _A{constructor(t){super(t);var{DiagramCommand:e}=Co();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}=Co();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}=Co();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(t){return parseInt(t)})}setItemValue(t,e){if(!this.isUpdateLocked()){this.beginUpdate();try{"function"==typeof this.commandOptions[t]?this.commandOptions[t].call(this,e):this._setOption(this.commandOptions[t],e)}finally{this.endUpdate()}}}beginUpdate(){this._updateLock++}endUpdate(){this._updateLock--}isUpdateLocked(){return this._updateLock>0}_getOption(t){return this._owner.option(t)}_setOption(t,e){this._owner.option(t,e)}};var mB=l(4471),A5={getConfigurations:function(){var{DiagramCommand:n}=Co();return this.dialogList||(this.dialogList=[{command:n.InsertShapeImage,title:wn.Z.format("dxDiagram-dialogInsertShapeImageTitle"),onGetContent:this.getChangeImageDialogContent},{command:n.EditShapeImage,title:wn.Z.format("dxDiagram-dialogEditShapeImageTitle"),onGetContent:this.getChangeImageDialogContent}])},getChangeImageDialogContent:function(n){var t=(0,u.Z)("<div>");return n.component._createComponent(t,mB.Z,{selectButtonText:wn.Z.format("dxDiagram-dialogEditShapeImageSelectButton"),accept:"image/*",uploadMode:"useForm",onValueChanged:function(e){var r=new((0,fi.Jj)().FileReader);r.onload=function(v){n.component._commandParameter=v.target.result},r.readAsDataURL(e.value[0])}}),t},getDialogParameters(n){var t=this.getConfigurations().map(e=>e.command).indexOf(n);return t>=0?this.getConfigurations()[t]:null}};const P5=A5;var k5=fA.w.inherit({}).include(co.Z);const _B=class R5 extends k5{constructor(t){super(),this._diagramWidget=t,this._resetCache()}_dataSourceChangedHandler(t,e){if(this._resetCache(),this._items=t.map(v=>(0,y.l)(!0,{},v)),this._dataSourceItems=t.slice(),e&&e.changes){var i=e.changes.filter(v=>v.internalChange),r=e.changes.filter(v=>!v.internalChange);i.length&&this._reloadContentByChanges(i,!1),r.length&&this._reloadContentByChanges(r,!0)}else this._diagramWidget._onDataSourceChanged()}_dataSourceLoadingChangedHandler(t){t&&!this._dataSource.isLoaded()?this._diagramWidget._showLoadingIndicator():this._diagramWidget._hideLoadingIndicator()}_prepareData(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0===t[e]&&(t[e]=null);return t}insert(t,e,i){this._resetCache();var r=this._getStore();r.insert(this._prepareData(t)).done((v,D)=>{r.push([{type:"insert",key:D,data:v,internalChange:!0}]),e&&e(v),this._resetCache()}).fail(v=>{i&&i(v),this._resetCache()})}update(t,e,i,r){var v=this._getStore(),D=this._getStoreKey(v,t,e);v.update(D,this._prepareData(e)).done((A,z)=>{v.push([{type:"update",key:z,data:A,internalChange:!0}]),i&&i(z,A)}).fail(A=>{r&&r(A)})}remove(t,e,i,r){this._resetCache();var v=this._getStore(),D=this._getStoreKey(v,t,e);v.remove(D).done(A=>{v.push([{type:"remove",key:A,internalChange:!0}]),i&&i(A),this._resetCache()}).fail(A=>{r&&r(A),this._resetCache()})}findItem(t){return this._items?this._getItemByKey(t):null}getItems(){return this._items}hasItems(){return!!this._items}_reloadContentByChanges(t,e){t=t.map(i=>(0,y.l)(i,{internalKey:this._getInternalKey(i.key)})),this._diagramWidget._reloadContentByChanges(t,e)}_getItemByKey(t){this._ensureCache();var e=this._cache,i=this._getIndexByKey(t);return e.items[i]}_getIndexByKey(t){this._ensureCache();var e=this._cache;if("object"!=typeof t){var v=e.keySet||e.keys.reduce((D,A,z)=>(D[A]=z,D),{});return e.keySet||(e.keySet=v),v[t]}for(var i=0,r=e.keys.length;i<r;i++)if(e.keys[i]===t)return i;return-1}_ensureCache(){var t=this._cache;t.keys||(t.keys=[],t.items=[],this._fillCache(t,this._items))}_fillCache(t,e){if(e&&e.length){var i=this._getKeyExpr();i&&e.forEach(D=>{t.keys.push(i(D)),t.items.push(D)});var r=this._getItemsExpr();r&&e.forEach(D=>this._fillCache(t,r(D)));var v=this._getContainerChildrenExpr();v&&e.forEach(D=>this._fillCache(t,v(D)))}}_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(t,e,i){var r=t.keyOf(i);if(r===i){var v=this._getKeyExpr();this._dataSourceItems.forEach(D=>{v(D)===e&&(r=D)})}return r}_getInternalKey(t){return"object"==typeof t?this._getKeyExpr()(t):t}_resetCache(){this._cache={}}},B5=class L5 extends _B{_getKeyExpr(){return this._diagramWidget._createOptionGetter("nodes.keyExpr")}_getItemsExpr(){return this._diagramWidget._createOptionGetter("nodes.itemsExpr")}_getContainerChildrenExpr(){return this._diagramWidget._createOptionGetter("nodes.containerChildrenExpr")}},V5=class F5 extends _B{_getKeyExpr(){return this._diagramWidget._createOptionGetter("edges.keyExpr")}};var Sf="dx-diagram",H5=Sf+"-toolbar-wrapper",z5=Sf+"-content-wrapper",W5=Sf+"-content",U5=Sf+"-scroll-view",wA=Sf+"-floating-toolbar-container",Z5=Sf+"-properties-panel-toolbar-container",K5=Sf+"-loading-indicator",yB="disabled",CB="portrait",xB="#ffffff",eD="dxDiagramEvent",bB=(0,k.V4)("fullscreenchange",eD),wB=(0,k.V4)("msfullscreenchange",eD),EB=(0,k.V4)("webkitfullscreenchange",eD),SB=(0,k.V4)("mozfullscreenchange",eD);(0,T.Z)("dxDiagram",class OB extends sa.Z{_init(){this._updateDiagramLockCount=0,this.toggleFullscreenLock=0,this._toolbars=[],super._init(),this._initDiagram(),this._createCustomCommand()}_initMarkup(){super._initMarkup(),this._toolbars=[],delete this._isMobileScreenSize;var t=!(0,fi.Ym)();this.$element().addClass(Sf),delete this._mainToolbar,this.option("mainToolbar.visible")&&this._renderMainToolbar();var e=(0,u.Z)("<div>").addClass(z5).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=(0,u.Z)("<div>").addClass(W5).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),!t){var i=(0,u.Z)("<div>").addClass(U5).appendTo(this._$content);this._createComponent(i,o5,{useNativeScrolling:this.option("useNativeScrolling"),onCreateDiagram:r=>{this._diagramInstance.createDocument(r.$parent[0],r.scrollView,e[0])}})}this._setCustomCommandChecked(gl.SHOW_PROPERTIES_PANEL_COMMAND_NAME,this._isPropertiesPanelVisible()),this._setCustomCommandChecked(gl.SHOW_TOOLBOX_COMMAND_NAME,this._isToolboxVisible()),this._createOptionsUpdateBar()}_dimensionChanged(){this._isMobileScreenSize=void 0,this._processDiagramResize()}_visibilityChanged(t){t&&(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=(0,fi.Ym)()&&(0,s.Y_)(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(t){this._registerBar(t),this._toolbars.push(t)}_registerBar(t){t.bar.onChanged.add(this),this._diagramInstance.registerBar(t.bar)}_getExcludeCommands(){var t=[];return this._isToolboxEnabled()||t.push(gl.SHOW_TOOLBOX_COMMAND_NAME),this._isPropertiesPanelEnabled()||t.push(gl.SHOW_PROPERTIES_PANEL_COMMAND_NAME),t}_getToolbarBaseOptions(){return{onContentReady:t=>{var{component:e}=t;return this._registerToolbar(e)},onSubMenuVisibilityChanging:t=>{var{component:e}=t;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(t){switch(t.command){case gl.SHOW_TOOLBOX_COMMAND_NAME:this._toolbox&&this._toolbox.toggle();break;case gl.SHOW_PROPERTIES_PANEL_COMMAND_NAME:this._propertiesPanel&&this._propertiesPanel.toggle()}}_onCustomCommand(t){this._customCommandAction({name:t.name})}_renderMainToolbar(){var t=(0,u.Z)("<div>").addClass(H5).appendTo(this.$element());this._mainToolbar=this._createComponent(t,FU,(0,y.l)(this._getToolbarBaseOptions(),{commands:this.option("mainToolbar.commands"),skipAdjustSize:!0}))}_isHistoryToolbarVisible(){return this.option("historyToolbar.visible")&&!this.isReadOnlyMode()}_renderHistoryToolbar(t){var e=(0,u.Z)("<div>").addClass(wA).appendTo(t);this._historyToolbar=this._createComponent(e,NU,(0,y.l)(this._getToolbarBaseOptions(),{commands:this.option("historyToolbar.commands"),locateInMenu:"never"})),this._updateHistoryToolbarPosition(),this._historyToolbarResizeCallback=()=>{this._historyToolbar.option("isMobileView",this.isMobileScreenSize())}}_updateHistoryToolbarPosition(){(0,fi.Ym)()&&$O.Z.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(t){var e=!(0,fi.Ym)(),i=(0,u.Z)("<div>").appendTo(t),r=this._getToolboxBounds(t,e);this._toolbox=this._createComponent(i,y5,{isMobileView:this.isMobileScreenSize(),isVisible:this._isToolboxVisible(),container:this.$element(),height:r.height,offsetParent:t,offsetX:r.offsetX,offsetY:r.offsetY,showSearch:this.option("toolbox.showSearch"),toolboxGroups:this._getToolboxGroups(),toolboxWidth:this.option("toolbox.width"),onShapeCategoryRendered:v=>{e||this._diagramInstance.createToolbox(v.$element[0],"texts"===v.displayMode,v.shapes||v.category,{shapeIconSpacing:12,shapeIconCountInRow:this.option("toolbox.shapeIconsPerRow"),shapeIconAttributes:{"data-toggle":v.dataToggle}})},onFilterChanged:v=>{e||this._diagramInstance.applyToolboxFilter(v.text,v.filteringToolboxes)},onVisibilityChanging:v=>{e||(this._setCustomCommandChecked(gl.SHOW_TOOLBOX_COMMAND_NAME,v.visible),this._propertiesPanel&&v.visible&&this.isMobileScreenSize()&&this._propertiesPanel.hide(),this._historyToolbar&&v.visible&&this.isMobileScreenSize()&&(this._historyToolbarZIndex=YO.Ue(XO.Z.baseZIndex()),this._historyToolbar.$element().css("zIndex",this._historyToolbarZIndex),this._historyToolbar.$element().css("boxShadow","none")),this._viewToolbar&&(this._viewToolbar.$element().css("opacity",v.visible&&this.isMobileScreenSize()?"0":"1"),this._viewToolbar.$element().css("pointerEvents",v.visible&&this.isMobileScreenSize()?"none":"")))},onVisibilityChanged:v=>{!v.visible&&!this._textInputStarted&&this._captureFocus(),e||this._historyToolbar&&!v.visible&&this.isMobileScreenSize()&&this._historyToolbarZIndex&&(YO.Od(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 v=this._getToolboxBounds(t,e);this._toolbox.option("height",v.height),this._toolbox.option("isMobileView")!==this.isMobileScreenSize()&&(this._toolbox.option({isMobileView:this.isMobileScreenSize(),isVisible:this._isToolboxVisible()}),this._setCustomCommandChecked(gl.SHOW_TOOLBOX_COMMAND_NAME,this._isToolboxVisible())),this._toolbox.updateMaxHeight()}}_getToolboxBounds(t,e){var i={offsetX:12,offsetY:12,height:e?0:(0,s.Cr)(t)-24};return this._historyToolbar&&!e&&(i.offsetY+=(0,s.zp)(this._historyToolbar.$element())+12,i.height-=(0,s.zp)(this._historyToolbar.$element())+12),this._viewToolbar&&!e&&(i.height-=(0,s.zp)(this._viewToolbar.$element())+this._getViewToolbarYOffset(e)),i}_renderViewToolbar(t){var e=!(0,fi.Ym)(),i=(0,u.Z)("<div>").addClass(wA).appendTo(t);this._viewToolbar=this._createComponent(i,zU,(0,y.l)(this._getToolbarBaseOptions(),{commands:this.option("viewToolbar.commands"),locateInMenu:"never"})),this._updateViewToolbarPosition(i,t,e),this._viewToolbarResizeCallback=()=>{this._updateViewToolbarPosition(i,t,e)}}_getViewToolbarYOffset(t){if(!t){var e=12;return this._viewToolbar&&this._propertiesToolbar&&(e+=((0,s.zp)(this._propertiesToolbar.$element())-(0,s.zp)(this._viewToolbar.$element()))/2),e}}_updateViewToolbarPosition(t,e,i){i||$O.Z.setup(t,{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(t){var e=!(0,fi.Ym)(),i=(0,u.Z)("<div>").addClass(wA).addClass(Z5).appendTo(t);this._propertiesToolbar=this._createComponent(i,UU,(0,y.l)(this._getToolbarBaseOptions(),{buttonStylingMode:"contained",buttonType:"default",locateInMenu:"never"})),this._updatePropertiesToolbarPosition(i,t,e),this._propertiesToolbarResizeCallback=()=>{this._updatePropertiesToolbarPosition(i,t,e)}}_updatePropertiesToolbarPosition(t,e,i){i||$O.Z.setup(t,{my:"right bottom",at:"right bottom",of:e,offset:"-12 -12"})}_renderPropertiesPanel(t){var e=!(0,fi.Ym)(),i=(0,u.Z)("<div>").appendTo(t),v=24+(e?0:(0,s.zp)(this._propertiesToolbar.$element()));this._propertiesPanel=this._createComponent(i,T5,{isMobileView:this.isMobileScreenSize(),isVisible:this._isPropertiesPanelVisible(),container:this.$element(),offsetParent:t,offsetX:12,offsetY:v,propertyTabs:this.option("propertiesPanel.tabs"),onCreateToolbar:D=>{D.toolbar=this._createComponent(D.$parent,Ob,(0,y.l)(this._getToolbarBaseOptions(),{commands:D.commands,locateInMenu:"never",editorStylingMode:"outlined"}))},onVisibilityChanging:D=>{e||(this._updatePropertiesPanelGroupBars(D.component),this._setCustomCommandChecked(gl.SHOW_PROPERTIES_PANEL_COMMAND_NAME,D.visible),this._toolbox&&D.visible&&this.isMobileScreenSize()&&this._toolbox.hide())},onVisibilityChanged:D=>{!D.visible&&!this._textInputStarted&&this._captureFocus()},onSelectedGroupChanged:D=>{var{component:A}=D;return this._updatePropertiesPanelGroupBars(A)},onPointerUp:this._onPanelPointerUp.bind(this)}),this._propertiesPanelResizeCallback=()=>{this._propertiesPanel.option("isMobileView")!==this.isMobileScreenSize()&&(this._propertiesPanel.option({isMobileView:this.isMobileScreenSize(),isVisible:this._isPropertiesPanelVisible()}),this._setCustomCommandChecked(gl.SHOW_PROPERTIES_PANEL_COMMAND_NAME,this._isPropertiesPanelVisible()))}}_updatePropertiesPanelGroupBars(t){t.getActiveToolbars().forEach(e=>{this._diagramInstance.updateBarItemsState(e.bar)})}_onPanelPointerUp(){this._captureFocusOnTimeout()}_renderContextMenu(t){var e=(0,u.Z)("<div>").appendTo(t);this._contextMenu=this._createComponent(e,YU_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(t){var e=!(0,fi.Ym)(),i=this.option("contextToolbox.category"),r=this.option("contextToolbox.displayMode"),v=this.option("contextToolbox.shapes"),D=(0,u.Z)("<div>").appendTo(t);this._contextToolbox=this._createComponent(D,e5,{toolboxWidth:this.option("contextToolbox.width"),onShown:A=>{if(!e){var z=(0,u.Z)(A.$element),Q="texts"===r;if(!v&&!i&&!Q){var ue=this._getToolboxGroups().filter(function(we){return we.category===A.category})[0];ue&&(Q="texts"===ue.displayMode)}this._diagramInstance.createContextToolbox(z[0],Q,v||i||A.category,{shapeIconSpacing:12,shapeIconCountInRow:this.option("contextToolbox.shapeIconsPerRow")},we=>{A.callback(we),this._captureFocus(),A.hide()})}}})}_setCustomCommandChecked(t,e){this._toolbars.forEach(i=>{i.setCommandChecked(t,e)})}_onBeforeCommandExecuted(t){var e=P5.getDialogParameters(t);return e&&this._showDialog(e),!!e}_renderDialog(t){var e=(0,u.Z)("<div>").appendTo(t);this._dialogInstance=this._createComponent(e,n5,{})}_showDialog(t){this._dialogInstance&&(this._dialogInstance.option("onGetContent",t.onGetContent),this._dialogInstance.option("onHidden",function(){this._captureFocus()}.bind(this)),this._dialogInstance.option("command",this._diagramInstance.getCommand(t.command)),this._dialogInstance.option("title",t.title),this._dialogInstance._show())}_showLoadingIndicator(){this._loadingIndicator=(0,u.Z)("<div>").addClass(K5),this._createComponent(this._loadingIndicator,mA.Z,{}),(this._$content||this.$element()).append(this._loadingIndicator)}_hideLoadingIndicator(){this._loadingIndicator&&(this._loadingIndicator.remove(),this._loadingIndicator=null)}_initDiagram(){var{DiagramControl:t}=Co();if(this._diagramInstance=new t,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()),this.option("pageOrientation")!==CB&&this._updatePageOrientationState(),this.option("pageColor")!==xB&&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(),this.option("autoZoomMode")!==yB&&this._updateAutoZoomState(),this.option("fullScreen")){var e=(0,fi.Jj)();e&&e.self!==e.top?this.option("fullScreen",!1):this._updateFullscreenState()}this._createOptionsUpdateBar(),(0,fi.Ym)()&&this._diagramInstance.initMeasurer(this.$element()[0]),this._updateCustomShapes(this._getCustomShapes()),this._refreshDataSources()}_createOptionsUpdateBar(){this.optionsUpdateBar||(this.optionsUpdateBar=new M5(this),this._diagramInstance.registerBar(this.optionsUpdateBar))}_deleteOptionsUpdateBar(){delete this.optionsUpdateBar}_clean(){this._diagramInstance&&(this._diagramInstance.cleanMarkup(t=>{(0,u.Z)(t).empty()}),this._deleteOptionsUpdateBar()),super._clean()}_dispose(){this._killCaptureFocusTimeout(),super._dispose(),this._diagramInstance&&(this._diagramInstance.dispose(),this._diagramInstance=void 0)}_executeDiagramCommand(t,e){this._diagramInstance.getCommand(t).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 B5(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 V5(this),this._edgesOption.option("dataSource",this.option("edges.dataSource")),this._edgesOption._refreshDataSource())}_getDiagramData(){var t,{DiagramCommand:e}=Co();return this._executeDiagramCommand(e.Export,function(i){t=i}),t}_setDiagramData(t,e){var{DiagramCommand:i}=Co();this._executeDiagramCommand(i.Import,{data:t,keepExistingItems:e})}isReadOnlyMode(){return this.option("readOnly")||this.option("disabled")}_onDataSourceChanged(){this._bindDiagramData()}_getChangesKeys(t){return t.map(e=>(0,w.$K)(e.internalKey)?e.internalKey:(0,w.$K)(e.key)?e.key:null).filter(e=>(0,w.$K)(e))}_createOptionGetter(t){var e=this.option(t);return e&&(0,No.vb)(e)}_onRequestUpdateLayout(t){this._requestLayoutUpdateAction||this._createRequestLayoutUpdateAction();var e={changes:t,allowed:!1};return this._requestLayoutUpdateAction(e),e.allowed}_createOptionSetter(t){var e=this.option(t);return(0,w.mf)(e)?e:e&&(0,No.OM)(e)}_bindDiagramData(){if(!this._updateDiagramLockCount&&this._isBindingMode()){var r,v,D,A,z,Q,ue,we,{DiagramCommand:t,ConnectorLineOption:e,ConnectorLineEnding:i}=Co(),Le={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:ue=this._createOptionGetter("nodes.containerChildrenExpr"),setChildren:we=this._createOptionSetter("nodes.containerChildrenExpr"),getContainerKey:!ue&&!we&&this._createOptionGetter("nodes.containerKeyExpr"),setContainerKey:!ue&&!we&&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(Ue){var ut=r(Ue);return this._getConnectorLineOption(ut)}.bind(this),setLineOption:(v=this._createOptionSetter("edges.lineTypeExpr"))&&function(Ue,ut){switch(ut){case e.Straight:ut="straight";break;case e.Orthogonal:ut="orthogonal"}v(Ue,ut)}.bind(this),getStartLineEnding:(D=this._createOptionGetter("edges.fromLineEndExpr"))&&function(Ue){var ut=D(Ue);return this._getConnectorLineEnding(ut)}.bind(this),setStartLineEnding:(A=this._createOptionSetter("edges.fromLineEndExpr"))&&function(Ue,ut){switch(ut){case i.Arrow:ut="arrow";break;case i.OutlinedTriangle:ut="outlinedTriangle";break;case i.FilledTriangle:ut="filledTriangle";break;case i.None:ut="none"}A(Ue,ut)}.bind(this),getEndLineEnding:(z=this._createOptionGetter("edges.toLineEndExpr"))&&function(Ue){var ut=z(Ue);return this._getConnectorLineEnding(ut)}.bind(this),setEndLineEnding:(Q=this._createOptionSetter("edges.toLineEndExpr"))&&function(Ue,ut){switch(ut){case i.Arrow:ut="arrow";break;case i.OutlinedTriangle:ut="outlinedTriangle";break;case i.FilledTriangle:ut="filledTriangle";break;case i.None:ut="none"}Q(Ue,ut)}.bind(this)},layoutParameters:this._getDataBindingLayoutParameters()};this._executeDiagramCommand(t.BindDocument,Le)}}_reloadContentByChanges(t,e){var i=this._getChangesKeys(t),r=this._onRequestUpdateLayout(t);this._reloadContent(i,r,e)}_reloadContent(t,e,i){this._diagramInstance.reloadContent(t,()=>{var r,v;return this._nodesOption&&i&&(r=this._nodesOption.getItems()),this._edgesOption&&i&&(v=this._edgesOption.getItems()),{nodeDataSource:r,edgeDataSource:v}},e&&this._getDataBindingLayoutParameters(),i)}_getConnectorLineOption(t){var{ConnectorLineOption:e}=Co();return"straight"===t?e.Straight:e.Orthogonal}_getConnectorLineEnding(t){var{ConnectorLineEnding:e}=Co();switch(t){case"arrow":return e.Arrow;case"outlinedTriangle":return e.OutlinedTriangle;case"filledTriangle":return e.FilledTriangle;default:return e.None}}_getDataBindingLayoutParameters(){var{DataLayoutType:t,DataLayoutOrientation:e}=Co(),i=this.option("nodes.autoLayout")||"off",r=i.type||i,v={};if("off"!==r&&("auto"!==r||!this._hasNodePositionExprs())){switch(v.type="tree"===r?t.Tree:t.Sugiyama,i.orientation){case"vertical":v.orientation=e.Vertical;break;case"horizontal":v.orientation=e.Horizontal}(this.option("edges.fromPointIndexExpr")||this.option("edges.toPointIndexExpr"))&&(v.skipPointIndices=!0)}return v.autoSizeEnabled=!!this.option("nodes.autoSizeEnabled"),v}_hasNodePositionExprs(){return this.option("nodes.topExpr")&&this.option("nodes.leftExpr")}_getAutoZoomValue(t){var{AutoZoomMode:e}=Co();switch(t){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 s5.getGroups(this.option("toolbox.groups"))}_updateAllCustomShapes(){this._diagramInstance.removeAllCustomShapes(),this._updateCustomShapes(this._getCustomShapes())}_updateCustomShapes(t,e){Array.isArray(e)&&this._diagramInstance.removeCustomShapes(e.map(i=>i.type)),Array.isArray(t)&&this._diagramInstance.addCustomShapes(t.map(i=>{var r=i.template||this.option("customShapeTemplate"),v=r&&this._getTemplate(r),D=i.toolboxTemplate||this.option("customShapeToolboxTemplate"),A=D&&this._getTemplate(D);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(z=>({x:z.x,y:z.y})),createTemplate:v&&((z,Q)=>{v.render({model:this._nativeItemToDiagramItem(Q),container:(0,S.u)((0,u.Z)(z))})}),createToolboxTemplate:A&&((z,Q)=>{A.render({model:this._nativeItemToDiagramItem(Q),container:(0,S.u)((0,u.Z)(z))})}),destroyTemplate:v&&(z=>{(0,u.Z)(z).empty()}),templateLeft:i.templateLeft,templateTop:i.templateTop,templateWidth:i.templateWidth,templateHeight:i.templateHeight,keepRatioOnAutoSize:i.keepRatioOnAutoSize}}))}_getViewport(){var t=this.$element().closest(".dx-viewport");return t.length?t:(0,u.Z)("body")}_onToggleFullScreen(t){this.toggleFullscreenLock>0||(this._changeNativeFullscreen(t),t?(this._prevParent=this.$element().parent(),this._prevFullScreenZIndex=this.$element().css("zIndex"),this._fullScreenZIndex=YO.Ue(XO.Z.baseZIndex()),this.$element().css("zIndex",this._fullScreenZIndex),this.$element().appendTo(this._getViewport())):(this.$element().appendTo(this._prevParent),this._fullScreenZIndex&&(YO.Od(this._fullScreenZIndex),this.$element().css("zIndex",this._prevFullScreenZIndex))),this.$element().toggleClass("dx-diagram-fullscreen",t),this._processDiagramResize(),this._toolbox&&(this._toolbox.repaint(),this._toolbox._popup.option("propagateOutsideClick",!t)),this._propertiesPanel&&this._propertiesPanel.repaint(),this._historyToolbar&&this._updateHistoryToolbarPosition())}_changeNativeFullscreen(t){var e=(0,fi.Jj)();e.self===e.top||t===this._inNativeFullscreen()||(t?this._subscribeFullscreenNativeChanged():this._unsubscribeFullscreenNativeChanged(),this._setNativeFullscreen(t))}_setNativeFullscreen(t){var e=(0,fi.Jj)(),i=e.self.document,r=e.self.document.body;t?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 t=(0,fi.Jj)().document;return!((t.fullscreenElement||t.msFullscreenElement||t.webkitFullscreenElement)!==t.body&&!t.webkitIsFullscreen)}_subscribeFullscreenNativeChanged(){var t=(0,fi.Jj)().document,e=this._onNativeFullscreenChangeHandler.bind(this);d.Z.on(t,bB,e),d.Z.on(t,wB,e),d.Z.on(t,EB,e),d.Z.on(t,SB,e)}_unsubscribeFullscreenNativeChanged(){var t=(0,fi.Jj)().document;d.Z.off(t,bB),d.Z.off(t,wB),d.Z.off(t,EB),d.Z.off(t,SB)}_onNativeFullscreenChangeHandler(){this._inNativeFullscreen()||(this._unsubscribeFullscreenNativeChanged(),this.option("fullScreen",!1))}_executeDiagramFullscreenCommand(t){var{DiagramCommand:e}=Co();this.toggleFullscreenLock++,this._executeDiagramCommand(e.Fullscreen,t),this.toggleFullscreenLock--}_onShowContextMenu(t,e,i){this._contextMenu&&this._contextMenu._show(t,e,i)}_onHideContextMenu(){this._contextMenu&&this._contextMenu._hide()}_onShowContextToolbox(t,e,i,r,v){this._contextToolbox&&this._contextToolbox._show(t,e,i,r,v)}_onHideContextToolbox(){this._contextToolbox&&this._contextToolbox._hide()}_getDiagramUnitValue(t){var{DiagramUnit:e}=Co();switch(t){case"in":default:return e.In;case"cm":return e.Cm;case"px":return e.Px}}_updateReadOnlyState(){var{DiagramCommand:t}=Co(),e=this.isReadOnlyMode();this._executeDiagramCommand(t.ToggleReadOnly,e)}_updateZoomLevelState(){if(this.option("zoomLevel.items")){this._updateZoomLevelItemsState();var t=this.option("zoomLevel.value");if(!t)return;var{DiagramCommand:e}=Co();this._executeDiagramCommand(e.ZoomLevel,t)}else{var i=this.option("zoomLevel.value")||this.option("zoomLevel");if(!i)return;var{DiagramCommand:r}=Co();this._executeDiagramCommand(r.ZoomLevel,i)}}_updateZoomLevelItemsState(){var t=this.option("zoomLevel.items");if(Array.isArray(t)){var{DiagramCommand:e}=Co();this._executeDiagramCommand(e.ZoomLevelItems,t)}}_updateAutoZoomState(){var{DiagramCommand:t}=Co();this._executeDiagramCommand(t.SwitchAutoZoom,this._getAutoZoomValue(this.option("autoZoomMode")))}_updateSimpleViewState(){var{DiagramCommand:t}=Co();this._executeDiagramCommand(t.ToggleSimpleView,this.option("simpleView"))}_updateFullscreenState(){var t=this.option("fullScreen");this._executeDiagramFullscreenCommand(t),this._onToggleFullScreen(t)}_updateShowGridState(){var{DiagramCommand:t}=Co();this._executeDiagramCommand(t.ShowGrid,this.option("showGrid"))}_updateSnapToGridState(){var{DiagramCommand:t}=Co();this._executeDiagramCommand(t.SnapToGrid,this.option("snapToGrid"))}_updateGridSizeState(){if(this.option("gridSize.items")){this._updateGridSizeItemsState();var t=this.option("gridSize.value");if(!t)return;var{DiagramCommand:e}=Co();this._executeDiagramCommand(e.GridSize,t)}else{var i=this.option("gridSize.value")||this.option("gridSize");if(!i)return;var{DiagramCommand:r}=Co();this._executeDiagramCommand(r.GridSize,i)}}_updateGridSizeItemsState(){var t=this.option("gridSize.items");if(Array.isArray(t)){var{DiagramCommand:e}=Co();this._executeDiagramCommand(e.GridSizeItems,t)}}_updateUnitItems(){var{DiagramLocalizationService:t}=Co(),e=this._getUnitItems();this._unitItems!==e&&(this._unitItems=e,t.unitItems=e)}_getUnitItems(){var{DiagramUnit:t}=Co(),e={};return e[t.In]=wn.Z.format("dxDiagram-unitIn"),e[t.Cm]=wn.Z.format("dxDiagram-unitCm"),e[t.Px]=wn.Z.format("dxDiagram-unitPx"),e}_updateFormatUnitsMethod(){var{DiagramLocalizationService:t}=Co();t.formatUnit=function(e){return Xv.Z.format(e)}}_updateViewUnitsState(){var{DiagramCommand:t}=Co();this._executeDiagramCommand(t.ViewUnits,this._getDiagramUnitValue(this.option("viewUnits")))}_updateUnitsState(){var{DiagramCommand:t}=Co();this._executeDiagramCommand(t.Units,this._getDiagramUnitValue(this.option("units")))}_updatePageSizeState(){var t=this.option("pageSize");if(t&&t.width&&t.height){var{DiagramCommand:e}=Co();this._executeDiagramCommand(e.PageSize,t)}}_updatePageSizeItemsState(){var t=this.option("pageSize.items");if(Array.isArray(t)){var{DiagramCommand:e}=Co();this._executeDiagramCommand(e.PageSizeItems,t)}}_updatePageOrientationState(){var{DiagramCommand:t}=Co();this._executeDiagramCommand(t.PageLandscape,"landscape"===this.option("pageOrientation"))}_updatePageColorState(){var{DiagramCommand:t}=Co();this._executeDiagramCommand(t.PageColor,this.option("pageColor"))}_updateShapeTexts(){var{DiagramLocalizationService:t}=Co(),e=this._getShapeTexts();this._shapeTexts!==e&&(this._shapeTexts=e,t.shapeTexts=e)}_getShapeTexts(){var{ShapeTypes:t}=Co(),e={};return e[t.Text]=wn.Z.format("dxDiagram-shapeText"),e[t.Rectangle]=wn.Z.format("dxDiagram-shapeRectangle"),e[t.Ellipse]=wn.Z.format("dxDiagram-shapeEllipse"),e[t.Cross]=wn.Z.format("dxDiagram-shapeCross"),e[t.Triangle]=wn.Z.format("dxDiagram-shapeTriangle"),e[t.Diamond]=wn.Z.format("dxDiagram-shapeDiamond"),e[t.Heart]=wn.Z.format("dxDiagram-shapeHeart"),e[t.Pentagon]=wn.Z.format("dxDiagram-shapePentagon"),e[t.Hexagon]=wn.Z.format("dxDiagram-shapeHexagon"),e[t.Octagon]=wn.Z.format("dxDiagram-shapeOctagon"),e[t.Star]=wn.Z.format("dxDiagram-shapeStar"),e[t.ArrowLeft]=wn.Z.format("dxDiagram-shapeArrowLeft"),e[t.ArrowUp]=wn.Z.format("dxDiagram-shapeArrowUp"),e[t.ArrowRight]=wn.Z.format("dxDiagram-shapeArrowRight"),e[t.ArrowDown]=wn.Z.format("dxDiagram-shapeArrowDown"),e[t.ArrowUpDown]=wn.Z.format("dxDiagram-shapeArrowUpDown"),e[t.ArrowLeftRight]=wn.Z.format("dxDiagram-shapeArrowLeftRight"),e[t.Process]=wn.Z.format("dxDiagram-shapeProcess"),e[t.Decision]=wn.Z.format("dxDiagram-shapeDecision"),e[t.Terminator]=wn.Z.format("dxDiagram-shapeTerminator"),e[t.PredefinedProcess]=wn.Z.format("dxDiagram-shapePredefinedProcess"),e[t.Document]=wn.Z.format("dxDiagram-shapeDocument"),e[t.MultipleDocuments]=wn.Z.format("dxDiagram-shapeMultipleDocuments"),e[t.ManualInput]=wn.Z.format("dxDiagram-shapeManualInput"),e[t.Preparation]=wn.Z.format("dxDiagram-shapePreparation"),e[t.Data]=wn.Z.format("dxDiagram-shapeData"),e[t.Database]=wn.Z.format("dxDiagram-shapeDatabase"),e[t.HardDisk]=wn.Z.format("dxDiagram-shapeHardDisk"),e[t.InternalStorage]=wn.Z.format("dxDiagram-shapeInternalStorage"),e[t.PaperTape]=wn.Z.format("dxDiagram-shapePaperTape"),e[t.ManualOperation]=wn.Z.format("dxDiagram-shapeManualOperation"),e[t.Delay]=wn.Z.format("dxDiagram-shapeDelay"),e[t.StoredData]=wn.Z.format("dxDiagram-shapeStoredData"),e[t.Display]=wn.Z.format("dxDiagram-shapeDisplay"),e[t.Merge]=wn.Z.format("dxDiagram-shapeMerge"),e[t.Connector]=wn.Z.format("dxDiagram-shapeConnector"),e[t.Or]=wn.Z.format("dxDiagram-shapeOr"),e[t.SummingJunction]=wn.Z.format("dxDiagram-shapeSummingJunction"),e[t.Container]=wn.Z.format("dxDiagram-shapeContainerDefaultText"),e[t.VerticalContainer]=wn.Z.format("dxDiagram-shapeVerticalContainer"),e[t.HorizontalContainer]=wn.Z.format("dxDiagram-shapeHorizontalContainer"),e[t.Card]=wn.Z.format("dxDiagram-shapeCardDefaultText"),e[t.CardWithImageOnLeft]=wn.Z.format("dxDiagram-shapeCardWithImageOnLeft"),e[t.CardWithImageOnTop]=wn.Z.format("dxDiagram-shapeCardWithImageOnTop"),e[t.CardWithImageOnRight]=wn.Z.format("dxDiagram-shapeCardWithImageOnRight"),e}_updateEventSubscriptionMethods(){var{RenderHelper:t}=Co();t.addEventListener=(e,i,r)=>{d.Z.on(e,i,r)},t.removeEventListener=(e,i,r)=>{d.Z.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:t}=Co();this._executeDiagramCommand(t.FitToScreen)}fitToWidth(){var{DiagramCommand:t}=Co();this._executeDiagramCommand(t.FitToWidth)}focus(){this._captureFocus()}export(){return this._getDiagramData()}exportTo(t,e){var i=this._getDiagramExportToCommand(t);this._executeDiagramCommand(i,e)}_getDiagramExportToCommand(t){var{DiagramCommand:e}=Co();switch(t){case"png":return e.ExportPng;case"jpg":return e.ExportJpg;default:return e.ExportSvg}}import(t,e){this._setDiagramData(t,e),this._raiseDataChangeAction()}updateToolbox(){this._diagramInstance&&this._diagramInstance.refreshToolbox(),this._toolbox&&(this._toolbox.updateTooltips(),this._toolbox.updateFilter(),this._toolbox.updateMaxHeight())}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{readOnly:!1,zoomLevel:1,simpleView:!1,autoZoomMode:yB,fullScreen:!1,showGrid:!0,snapToGrid:!0,units:"in",viewUnits:"in",pageOrientation:CB,pageColor:xB,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(t,e,i){this._edgesOption&&this._edgesOption.insert(t,e,i)}_raiseEdgeUpdatedAction(t,e,i,r){this._edgesOption&&this._edgesOption.update(t,e,i,r)}_raiseEdgeRemovedAction(t,e,i,r){this._edgesOption&&this._edgesOption.remove(t,e,i,r)}_raiseNodeInsertedAction(t,e,i){this._nodesOption&&this._nodesOption.insert(t,e,i)}_raiseNodeUpdatedAction(t,e,i,r){this._nodesOption&&this._nodesOption.update(t,e,i,r)}_raiseNodeRemovedAction(t,e,i,r){this._nodesOption&&this._nodesOption.remove(t,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(t){this._itemClickAction||this._createItemClickAction(),this._itemClickAction({item:this._nativeItemToDiagramItem(t)})}_raiseItemDblClickAction(t){this._itemDblClickAction||this._createItemDblClickAction(),this._itemDblClickAction({item:this._nativeItemToDiagramItem(t)})}_raiseSelectionChanged(t){this._selectionChangedAction||this._createSelectionChangedAction(),this._selectionChangedAction({items:t.map(this._nativeItemToDiagramItem.bind(this))})}_raiseRequestEditOperation(t,e){this._requestEditOperationAction||this._createRequestEditOperationAction();var i=this._getRequestEditOperationEventArgs(t,e);this._requestEditOperationAction(i),e.allowed=i.allowed}_getModelOperation(t){var{DiagramModelOperation:e}=Co();switch(t){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(t,e){var{DiagramModelOperation:i,ConnectorPosition:r}=Co(),v={operation:this._getModelOperation(t),allowed:e.allowed,updateUI:e.updateUI,reason:e.updateUI?"checkUIElementAvailability":"modelModification"};switch(t){case i.AddShape:v.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape),position:e.position&&{x:e.position.x,y:e.position.y}};break;case i.AddShapeFromToolbox:v.args={shapeType:e.shapeType};break;case i.DeleteShape:v.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape)};break;case i.DeleteConnector:v.args={connector:e.connector&&this._nativeItemToDiagramItem(e.connector)};break;case i.ChangeConnection:v.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:v.args={connector:e.connector&&this._nativeItemToDiagramItem(e.connector),newPoints:e.points&&e.points.map(D=>({x:D.x,y:D.y})),oldPoints:e.oldPoints&&e.oldPoints.map(D=>({x:D.x,y:D.y}))};break;case i.BeforeChangeShapeText:v.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape)};break;case i.ChangeShapeText:v.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape),text:e.text};break;case i.BeforeChangeConnectorText:v.args={connector:e.connector&&this._nativeItemToDiagramItem(e.connector),index:e.index};break;case i.ChangeConnectorText:v.args={connector:e.connector&&this._nativeItemToDiagramItem(e.connector),index:e.index,text:e.text};break;case i.ResizeShape:v.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:v.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 v}_nativeItemToDiagramItem(t){var{NativeShape:e}=Co(),i=t instanceof e?this._nativeShapeToDiagramShape.bind(this):this._nativeConnectorToDiagramConnector.bind(this);return(0,y.l)({id:t.id,key:t.key,dataItem:void 0},i(t))}_nativeShapeToDiagramShape(t){return{dataItem:this._nodesOption&&this._nodesOption.findItem(t.key),itemType:"shape",text:t.text,type:t.type,position:{x:t.position.x,y:t.position.y},size:{width:t.size.width,height:t.size.height},attachedConnectorIds:t.attachedConnectorIds,containerId:t.containerId,containerChildItemIds:t.containerChildItemIds,containerExpanded:t.containerExpanded}}_nativeConnectorToDiagramConnector(t){return{dataItem:this._edgesOption&&this._edgesOption.findItem(t.key),itemType:"connector",texts:t.texts,fromKey:t.fromKey,toKey:t.toKey,fromId:t.fromId,fromPointIndex:t.fromPointIndex,toId:t.toId,toPointIndex:t.toPointIndex,points:t.points.map(e=>({x:e.x,y:e.y}))}}getItemByKey(t){var e=this._diagramInstance&&this._diagramInstance.getNativeItemByDataKey(t);return e&&this._nativeItemToDiagramItem(e)}getItemById(t){var e=this._diagramInstance&&this._diagramInstance.getNativeItemByKey(t);return e&&this._nativeItemToDiagramItem(e)}getItems(){return this._diagramInstance.getNativeItems().map(t=>t&&this._nativeItemToDiagramItem(t))}getSelectedItems(){return this._diagramInstance.getNativeSelectedItems().map(t=>t&&this._nativeItemToDiagramItem(t))}setSelectedItems(t){return this._diagramInstance.setSelectedItems(t.map(e=>e.id))}scrollToItem(t){return this._diagramInstance.scrollToItems([t.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(t){if(this.optionsUpdateBar&&!this.optionsUpdateBar.isUpdateLocked()){this.optionsUpdateBar.beginUpdate();try{this._optionChangedCore(t)}finally{this.optionsUpdateBar.endUpdate()}}}_optionChangedCore(t){switch(t.name){case"readOnly":case"disabled":this._updateReadOnlyState(),this._invalidate();break;case"zoomLevel":("zoomLevel"===t.fullName||"zoomLevel.items"===t.fullName||"zoomLevel.value"===t.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"===t.fullName||"gridSize.items"===t.fullName||"gridSize.value"===t.fullName)&&this._updateGridSizeState();break;case"viewUnits":this._updateViewUnitsState();break;case"units":this._updateUnitsState();break;case"pageSize":("pageSize"===t.fullName||"pageSize.items"===t.fullName)&&this._updatePageSizeItemsState(),("pageSize"===t.fullName||"pageSize.width"===t.fullName||"pageSize.height"===t.fullName)&&this._updatePageSizeState();break;case"pageOrientation":this._updatePageOrientationState();break;case"pageColor":this._updatePageColorState();break;case"nodes":0===t.fullName.indexOf("nodes.autoLayout")?this._refreshDataSources():this._refreshNodesDataSource();break;case"edges":this._refreshEdgesDataSource();break;case"customShapes":t.fullName!==t.name?this._updateAllCustomShapes():this._updateCustomShapes(t.value,t.previousValue),this._invalidate();break;case"contextMenu":"contextMenu.commands"===t.fullName?this._invalidateContextMenuCommands():this._invalidate();break;case"toolbox":"toolbox.groups"===t.fullName?this._invalidateToolboxGroups():this._invalidate();break;case"mainToolbar":"mainToolbar.commands"===t.fullName?this._invalidateMainToolbarCommands():this._invalidate();break;case"historyToolbar":"historyToolbar.commands"===t.fullName?this._invalidateHistoryToolbarCommands():this._invalidate();break;case"viewToolbar":"viewToolbar.commands"===t.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(t)}}});let DB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.m$R,M.bHv,M.Q8p,M.JID,M.Obv,M.AUf,M.d0Q,M._hi,M.SCM,M.lj9,M.QKQ,M.erZ,M.QQ4,M.aXB,M.ukr,M.HM6,M.ck,M._9O,M.jyG,M.vl5,M.L6l,M.I3K,f.Lz,f.ie,p.Cu],M.m$R,M.bHv,M.Q8p,M.JID,M.Obv,M.AUf,M.d0Q,M._hi,M.SCM,M.lj9,M.QKQ,M.erZ,M.QQ4,M.aXB,M.ukr,M.HM6,M.ck,M._9O,M.jyG,M.vl5,M.L6l,M.I3K,f.ie]}),n})();var TB=l(130);let IB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.ywL,f.Lz,f.ie,p.Cu],M.ywL,f.ie]}),n})();var tD=l(1880),A0={moveTo(n){var v,t=n.$element,e=n.position,r={};switch(n.direction||"left"){case"right":r.transform="translate("+e+"px, 0px)",v="custom";break;case"left":r.left=e,v="slide";break;case"top":case"bottom":r.top=e,v="slide"}h.Z.animate(t,{type:v,to:r,duration:n.duration,complete:n.complete})},margin(n){var t=n.$element,e=n.margin,r={};r["margin"+(0,je._A)(n.direction||"left",!0)]=e,h.Z.animate(t,{to:r,duration:n.duration,complete:n.complete})},fade(n,t,e,i){h.Z.animate(n,{type:"fade",to:t.to,from:t.from,duration:e,complete:i})},size(n){var t=n.$element,e=n.size,i=n.direction||"left",r=n.marginTop||0,v=n.duration,D={};"right"===i||"left"===i?D.width=e:D.height=e,"bottom"===i&&(D.marginTop=r),h.Z.animate(t,{to:D,duration:v,complete:n.complete})},complete(n){h.Z.stop(n,!0)}};const EA=class eZ{constructor(t){this._drawer=t}getDrawerInstance(){return this._drawer}renderPanelContent(t){var e=this.getDrawerInstance(),i=e._getTemplate(e.option("template"));i&&i.render({container:e.content(),onRendered:()=>{t.resolve()}})}renderPosition(t,e){var i=new P.BH,r=new P.BH,v=this.getDrawerInstance();t&&P.gx.apply(u.Z,[i,r]).done(()=>{v._animationCompleteHandler()}),this._internalRenderPosition(t,i),t||v.resizeViewContent(),this.renderShaderVisibility(t,e,r)}_getPanelOffset(t){var e=this.getDrawerInstance(),i=e.isHorizontalDirection()?e.getRealPanelWidth():e.getRealPanelHeight();return t?-(i-e.getMaxSize()):-(i-e.getMinSize())}_getPanelSize(t){return t?this.getDrawerInstance().getMaxSize():this.getDrawerInstance().getMinSize()}renderShaderVisibility(t,e,i){var r=this.getDrawerInstance(),v=r.option("opened"),D=v?{from:0,to:1}:{from:1,to:0};t?A0.fade((0,u.Z)(r._$shader),D,e,()=>{this._drawer._toggleShaderVisibility(v),i.resolve()}):(r._toggleShaderVisibility(v),r._$shader.css("opacity",D.to))}getPanelContent(){return(0,u.Z)(this.getDrawerInstance().content())}setPanelSize(t){this.refreshPanelElementSize(t)}refreshPanelElementSize(t){var e=this.getDrawerInstance(),i=this._getPanelSize(e.option("opened"));e.isHorizontalDirection()?(0,s.cl)((0,u.Z)(e.content()),t?e.getRealPanelWidth():i):(0,s.QQ)((0,u.Z)(e.content()),t?e.getRealPanelHeight():i)}isViewContentFirst(){return!1}onPanelContentRendered(){}};var al=l(6961);const MB=class tZ extends EA{_internalRenderPosition(t,e){var i=this.getDrawerInstance(),r=this._getPanelSize(!0),v=this._getPanelSize(i.option("opened"))*i._getPositionCorrection();if((0,u.Z)(i.content()).css(i.isHorizontalDirection()?"width":"height",r),i.getMinSize()){var D="padding";switch(i.calcTargetPosition()){case"left":D+="Right";break;case"right":D+="Left";break;case"top":D+="Bottom";break;case"bottom":D+="Top"}(0,u.Z)(i.viewContent()).css(D,i.getMinSize())}t?A0.moveTo({$element:(0,u.Z)(i.viewContent()),position:v,direction:i.calcTargetPosition(),duration:i.option("animationDuration"),complete:()=>{e.resolve()}}):i.isHorizontalDirection()?(0,al.pB)((0,u.Z)(i.viewContent()),{left:v}):(0,al.pB)((0,u.Z)(i.viewContent()),{top:v})}onPanelContentRendered(){(0,u.Z)(this.getDrawerInstance().viewContent()).addClass("dx-theme-background-color")}},iZ=class nZ extends EA{_internalRenderPosition(t,e){var i=this.getDrawerInstance(),r=i.calcTargetPosition(),v=(0,u.Z)(i.content()),D=this._getPanelSize(i.option("opened")),A=this._getPanelOffset(i.option("opened")),z=i.option("revealMode");t?"slide"===z?A0.margin({complete:()=>{e.resolve()},$element:v,duration:i.option("animationDuration"),direction:r,margin:A}):"expand"===z&&A0.size({complete:()=>{e.resolve()},$element:v,duration:i.option("animationDuration"),direction:r,size:D}):"slide"===z?v.css("margin"+(0,je._A)(r,!0),A):"expand"===z&&v.css(i.isHorizontalDirection()?"width":"height",D)}isViewContentFirst(t,e){return(e?"left"===t:"right"===t)||"bottom"===t}},oZ=class rZ extends EA{renderPanelContent(t){delete this._initialPosition;var e=this.getDrawerInstance(),{opened:i,minSize:r}=e.option();e._overlay=e._createComponent(e.content(),XO.Z,{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(v){this._fixOverlayPosition(v.component.$content())}.bind(this),contentTemplate:e.option("template"),onContentReady:v=>{t.resolve(),this._processOverlayZIndex(v.component.content())},visible:!0,propagateOutsideClick:!0})}_fixOverlayPosition(t){var e=(0,E.IS)(this._initialPosition,{left:0,top:0});(0,al.pB)(t,e),"right"===this.getDrawerInstance().calcTargetPosition()&&t.css("left","auto"),"bottom"===this.getDrawerInstance().calcTargetPosition()&&(t.css("top","auto"),t.css("bottom","0px"))}_getOverlayPosition(){var t=this.getDrawerInstance(),e=t.calcTargetPosition(),i={};switch(e){case"left":i={my:"top left",at:"top left"};break;case"right":i={my:t.option("rtlEnabled")?"top left":"top right",at:"top right"};break;case"top":case"bottom":i={my:e,at:e}}return i.of=t.getOverlayTarget(),i}refreshPanelElementSize(t){var e=this.getDrawerInstance(),i=e.getOverlay();e.isHorizontalDirection()?(i.option("height","100%"),i.option("width",t?e.getRealPanelWidth():this._getPanelSize(e.option("opened")))):(i.option("width",(0,s.dz)(e.getOverlayTarget())),i.option("height",t?e.getRealPanelHeight():this._getPanelSize(e.option("opened"))))}onPanelContentRendered(){this._updateViewContentStyles()}_updateViewContentStyles(){var t=this.getDrawerInstance();(0,u.Z)(t.viewContent()).css("padding"+(0,je._A)(t.calcTargetPosition(),!0),t.option("minSize")),(0,u.Z)(t.viewContent()).css("transform","inherit")}_internalRenderPosition(t,e){var i=this.getDrawerInstance(),r=(0,u.Z)(i.content()),v=i.getOverlay().$content(),D=i.option("revealMode"),A=i.calcTargetPosition(),z=this._getPanelSize(i.option("opened")),Q=this._getPanelOffset(i.option("opened"))*i._getPositionCorrection(),ue=i.getRealPanelHeight()-z;this._updateViewContentStyles(),t?"slide"===D?(this._initialPosition=i.isHorizontalDirection()?{left:Q}:{top:Q},A0.moveTo({complete:()=>{e.resolve()},duration:i.option("animationDuration"),direction:A,$element:r,position:Q})):"expand"===D&&(this._initialPosition={left:0},(0,al.pB)(v,this._initialPosition),A0.size({complete:()=>{e.resolve()},duration:i.option("animationDuration"),direction:A,$element:v,size:z,marginTop:ue})):"slide"===D?(this._initialPosition=i.isHorizontalDirection()?{left:Q}:{top:Q},(0,al.pB)(r,this._initialPosition)):"expand"===D&&(this._initialPosition={left:0},(0,al.pB)(v,this._initialPosition),i.isHorizontalDirection()?(0,u.Z)(v).css("width",z):((0,u.Z)(v).css("height",z),"bottom"===A&&(0,u.Z)(v).css("marginTop",ue)))}getPanelContent(){return(0,u.Z)(this.getDrawerInstance().getOverlay().content())}_processOverlayZIndex(t){var i=(0,u.Z)(t).get(0).style.zIndex||1;this.getDrawerInstance().setZIndex(i)}isViewContentFirst(t){return"right"===t||"bottom"===t}};var P0="dx-drawer",AB="dx-drawer-panel-content",PB="dx-drawer-shader",kB="dx-state-invisible",SA="content",LB=sa.Z.inherit({_getDefaultOptions(){return(0,y.l)(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:SA})},_init(){this.callBase(),this._initStrategy(),this.$element().addClass(P0),this._whenAnimationCompleted=void 0,this._whenPanelContentRendered=void 0,this._whenPanelContentRefreshed=void 0,this._$wrapper=(0,u.Z)("<div>").addClass("dx-drawer-wrapper"),this._$viewContentWrapper=(0,u.Z)("<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 MB(this);break;case"shrink":this._strategy=new iZ(this);break;case"overlap":this._strategy=new oZ(this)}},_getAnonymousTemplateName:function(){return SA},_initTemplates(){var n={};n.panel=new tD.s,n[SA]=new tD.s,this._templateManager.addDefaultTemplates(n),this.callBase()},_viewContentWrapperClickHandler(n){var t=this.option("closeOnOutsideClick");(0,w.mf)(t)&&(t=t(n)),t&&this.option("opened")&&(this.stopAnimations(),this.option("shading")&&n.preventDefault(),this.hide())},_initMarkup(){this.callBase(),this._toggleOpenedStateClass(this.option("opened")),this._renderPanelContentWrapper(),this._refreshOpenedStateModeClass(),this._refreshRevealModeClass(),this._renderShader(),this._refreshPositionClass(),this._whenPanelContentRendered=new P.BH,this._strategy.renderPanelContent(this._whenPanelContentRendered),this._strategy.onPanelContentRendered(),this._renderViewContent(),d.Z.off(this._$viewContentWrapper,g.u),d.Z.on(this._$viewContentWrapper,g.u,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=(0,u.Z)("<div>").addClass(AB);var n=this.calcTargetPosition();"push"===this.option("openedStateMode")&&["top","bottom"].indexOf(n)>-1&&this._$panelContentWrapper.addClass(AB+"-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(n){n&&this.$element().removeClass(P0+"-"+n),this.$element().addClass(P0+"-"+this.option("openedStateMode"))},_refreshPositionClass(n){n&&this.$element().removeClass(P0+"-"+n),this.$element().addClass(P0+"-"+this.calcTargetPosition())},_refreshWrapperChildrenOrder(){var n=this.calcTargetPosition();this._strategy.isViewContentFirst(n,this.option("rtlEnabled"))?this._$wrapper.prepend(this._$viewContentWrapper):this._$wrapper.prepend(this._$panelContentWrapper)},_refreshRevealModeClass(n){n&&this.$element().removeClass(P0+"-"+n),this.$element().addClass(P0+"-"+this.option("revealMode"))},_renderViewContent(){var n=this.option("contentTemplate"),t=this._getTemplate(n);if(t){var e=t.render({container:this.viewContent(),noModel:!0,transclude:this._templateManager.anonymousTemplateName===n});e.hasClass("ng-scope")&&(0,u.Z)(this._$viewContentWrapper).children().not(".".concat(PB)).replaceWith(e)}},_renderShader(){this._$shader=this._$shader||(0,u.Z)("<div>").addClass(PB),this._$shader.appendTo(this.viewContent()),this._toggleShaderVisibility(this.option("opened"))},_initSize(){this._initMinMaxSize()},_initMinMaxSize(){var n=this.isHorizontalDirection()?this.getRealPanelWidth():this.getRealPanelHeight();this._maxSize=this.option("maxSize")||n,this._minSize=this.option("minSize")||0},calcTargetPosition(){var n=this.option("position"),t=this.option("rtlEnabled"),e=n;return"before"===n?e=t?"right":"left":"after"===n&&(e=t?"left":"right"),e},getOverlayTarget(){return this._$wrapper},getOverlay(){return this._overlay},getMaxSize(){return this._maxSize},getMinSize(){return this._minSize},getRealPanelWidth(){return(0,fi.Ym)()?(0,w.$K)(this.option("templateSize"))?this.option("templateSize"):(0,Zo.l)(this._getPanelTemplateElement()).width:0},getRealPanelHeight(){return(0,fi.Ym)()?(0,w.$K)(this.option("templateSize"))?this.option("templateSize"):(0,Zo.l)(this._getPanelTemplateElement()).height:0},_getPanelTemplateElement(){var n=this._strategy.getPanelContent(),t=n;return n.children().length&&(t=n.children().eq(0),n.hasClass("dx-overlay-content")&&t.hasClass("dx-template-wrapper")&&t.children().length&&(t=t.children().eq(0))),t.get(0)},getElementHeight(n){var t=n.children();return t.length?(0,Zo.l)(t.eq(0).get(0)).height:(0,Zo.l)(n.get(0)).height},isHorizontalDirection(){var n=this.calcTargetPosition();return"left"===n||"right"===n},stopAnimations(n){h.Z.stop(this._$shader,n),h.Z.stop((0,u.Z)(this.content()),n),h.Z.stop((0,u.Z)(this.viewContent()),n);var t=this.getOverlay();t&&h.Z.stop((0,u.Z)(t.$content()),n)},setZIndex(n){this._$shader.css("zIndex",n-1),this._$panelContentWrapper.css("zIndex",n)},resizeContent(){},resizeViewContent(){(0,Eb.U_)(this.viewContent())},_isInvertedPosition(){var n=this.calcTargetPosition();return"right"===n||"bottom"===n},_renderPosition(n,t,e){if(this.stopAnimations(e),(0,fi.Ym)()){(0,u.Z)(this.viewContent()).css("paddingLeft",0),(0,u.Z)(this.viewContent()).css("paddingRight",0),(0,u.Z)(this.viewContent()).css("paddingTop",0),(0,u.Z)(this.viewContent()).css("paddingBottom",0);var i=this.option("animationEnabled");!0===t&&(i=!1),n&&this._toggleShaderVisibility(n),this._strategy.renderPosition(i,this.option("animationDuration"))}},_animationCompleteHandler(){this.resizeViewContent(),this._whenAnimationCompleted&&this._whenAnimationCompleted.resolve()},_getPositionCorrection(){return this._isInvertedPosition()?-1:1},_dispose(){A0.complete((0,u.Z)(this.viewContent())),this.callBase()},_visibilityChanged(n){n&&this._dimensionChanged()},_dimensionChanged(){this._initMinMaxSize(),this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")),this._renderPosition(this.option("opened"),!0)},_toggleShaderVisibility(n){this.option("shading")?(this._$shader.toggleClass(kB,!n),this._$shader.css("visibility",n?"visible":"hidden")):this._$shader.toggleClass(kB,!0)},_toggleOpenedStateClass(n){this.$element().toggleClass("dx-drawer-opened",n)},_refreshPanel(){(0,u.Z)(this.viewContent()).css("left",0),(0,u.Z)(this.viewContent()).css("transform","translate(0px, 0px)"),(0,u.Z)(this.viewContent()).removeClass("dx-theme-background-color"),this._removePanelContentWrapper(),this._removeOverlay(),this._renderPanelContentWrapper(),this._refreshWrapperChildrenOrder(),this._whenPanelContentRefreshed=new P.BH,this._strategy.renderPanelContent(this._whenPanelContentRefreshed),this._strategy.onPanelContentRendered(),(0,fi.Ym)()&&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(n){switch(n.name){case"width":this.callBase(n),this._dimensionChanged();break;case"opened":this._renderPosition(this.option("opened")),this._toggleOpenedStateClass(n.value);break;case"position":this._refreshPositionClass(n.previousValue),this._refreshWrapperChildrenOrder(),this._invalidate();break;case"contentTemplate":case"template":this._invalidate();break;case"openedStateMode":this._initStrategy(),this._refreshOpenedStateModeClass(n.previousValue),this._refreshPanel();break;case"minSize":case"maxSize":this._initMinMaxSize(),this._renderPosition(this.option("opened"),!0);break;case"revealMode":this._refreshRevealModeClass(n.previousValue),this._refreshPanel();break;case"shading":this._toggleShaderVisibility(this.option("opened"));break;case"animationEnabled":case"animationDuration":case"closeOnOutsideClick":break;default:this.callBase(n)}},content(){return(0,S.u)(this._$panelContentWrapper)},viewContent(){return(0,S.u)(this._$viewContentWrapper)},show(){return this.toggle(!0)},hide(){return this.toggle(!1)},toggle(n){var t=void 0===n?!this.option("opened"):n;return this._whenAnimationCompleted=new P.BH,this.option("opened",t),this._whenAnimationCompleted.promise()}});(0,T.Z)("dxDrawer",LB);const OA=LB;let BB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[f.Lz,f.ie,p.Cu],f.ie]}),n})();var cZ=l(4694),nD=l(5442),hZ=l(7),pZ=l(7320),gZ=l(114),fZ=b.Z.getActiveElement,iD="content",FB=x.Z.real(),VB=cZ.Z.inherit({_supportedKeys:function(){return(0,y.l)({},this.callBase(),{tab:function(n){if(this.option("opened")){var t=this._getTabbableElements(),e=n.shiftKey?t.last():t.first();e&&d.Z.trigger(e,"focus"),n.preventDefault()}}})},_getTabbableElements:function(){return this._getElements().filter(hZ.ht)},_getElements:function(){return(0,u.Z)(this.content()).find("*")},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{acceptCustomValue:!1,contentTemplate:iD,openOnFieldClick:!0,displayValueFormatter:function(n){return Array.isArray(n)?n.join(", "):n},useHiddenSubmitElement:!0})},_getAnonymousTemplateName:function(){return iD},_initTemplates:function(){this.callBase()},_initMarkup:function(){this._initDataExpressions(),this.$element().addClass("dx-dropdownbox"),this.callBase()},_setSubmitValue:function(){var n=this.option("value"),t=this._shouldUseDisplayValue(n)?this._displayGetter(n):n;this._getSubmitElement().val(t)},_shouldUseDisplayValue:function(n){return"this"===this.option("valueExpr")&&(0,w.Kn)(n)},_renderInputValue:function(){this._rejectValueLoading();var n=[];if(!this._dataSource)return this.callBase(n),(new P.BH).resolve();var e=this._getCurrentValue()??[];e=Array.isArray(e)?e:[e];var i=(0,O.UI)(e,v=>{var D=new P.BH;return this._loadItem(v).always(A=>{var z=this._displayGetter(A);(0,w.$K)(z)?n.push(z):this.option("acceptCustomValue")&&n.push(v),D.resolve()}),D}),r=this.callBase.bind(this);return P.gx.apply(this,i).always(()=>{this.option("displayValue",n),r(n.length&&n)})},_loadItem:function(n){var t=new P.BH,e=this,i=(0,E.h3)(this.option("items")||[],function(r){return this._isValueEquals(this._valueGetter(r),n)}.bind(this))[0];return void 0!==i?t.resolve(i):this._loadValue(n).done(function(r){t.resolve(r)}).fail(function(r){null!=r&&r.shouldSkipCallback||(e.option("acceptCustomValue")?t.resolve(n):t.reject())}),t.promise()},_popupElementTabHandler:function(n){if("tab"===(0,k.EV)(n)){var t=this._getTabbableElements().first().get(0),e=this._getTabbableElements().last().get(0),i=n.originalEvent.target,r=!(i!==t||!n.shift);(r||i===e&&!n.shift)&&(this.close(),d.Z.trigger(this._input(),"focus"),r&&n.originalEvent.preventDefault())}},_renderPopup:function(n){this.callBase(),this.option("focusStateEnabled")&&gZ.dG.on(this.content(),null,t=>this._popupElementTabHandler(t))},_renderPopupContent:function(){if(this.option("contentTemplate")!==iD){var n=this._getTemplateByOption("contentTemplate");if(n&&this.option("contentTemplate")){var t=this._popup.$content(),e={value:this._fieldRenderData(),component:this};t.empty(),n.render({container:(0,S.u)(t),model:e})}}},_canShowVirtualKeyboard:function(){return FB.mac},_isNestedElementActive:function(){var n=fZ();return n&&this._popup.$content().get(0).contains(n)},_shouldHideOnParentScroll:function(){return"desktop"===FB.deviceType&&this._canShowVirtualKeyboard()&&this._isNestedElementActive()},_popupHiddenHandler:function(){this.callBase(),this._popupPosition=void 0},_popupPositionedHandler:function(n){this.callBase(n),this._popupPosition=n.position},_getDefaultPopupPosition:function(n){var{my:t,at:e}=this.callBase(n);return{my:t,at:e,offset:{v:-1},collision:"flipfit"}},_popupConfig:function(){var{focusStateEnabled:n}=this.option();return(0,y.l)(this.callBase(),{tabIndex:-1,dragEnabled:!1,focusStateEnabled:n,contentTemplate:iD,hideOnParentScroll:this._shouldHideOnParentScroll.bind(this),position:(0,y.l)(this.option("popupPosition"),{of:this.$element()}),onKeyboardHandled:t=>this.option("focusStateEnabled")&&this._popupElementTabHandler(t),_ignoreFunctionValueDeprecation:!0,maxHeight:function(){var t,e=null===(t=this._popupPosition)||void 0===t?void 0:t.v.location;return(0,pZ._)(this.$element(),e)}.bind(this)})},_popupShownHandler:function(){this.callBase();var n=this._getTabbableElements().first();d.Z.trigger(n,"focus")},_setCollectionWidgetOption:E.ZT,_optionChanged:function(n){switch(this._dataExpressionOptionChanged(n),n.name){case"dataSource":this._renderInputValue();break;case"displayValue":this.option("text",n.value);break;case"displayExpr":this._renderValue();break;case"contentTemplate":this._invalidate();break;default:this.callBase(n)}}}).include(nD.Z);(0,T.Z)("dxDropDownBox",VB);const _Z=VB,vZ=["*"],yZ={provide:ie.JU,useExisting:(0,a.Gpc)(()=>CZ),multi:!0};let CZ=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),A.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 _Z(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-drop-down-box"]],contentQueries:function(e,i,r){if(1&e&&(a.Suo(r,M.k4o,4),a.Suo(r,M.ZT3,4)),2&e){let v;a.iGM(v=a.CRH())&&(i.buttonsChildren=v),a.iGM(v=a.CRH())&&(i.itemsChildren=v)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,yZ,f.al,f.i9]),a.qOj,a.TTD],ngContentSelectors:vZ,decls:1,vars:0,template:function(e,i){1&e&&(a.F$t(),a.Hsn(0))},encapsulation:2}),n})(),NB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,f.Lz,f.ie,p.Cu],M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,f.ie]}),n})();l(854);let HB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,f.Lz,f.ie,p.Cu],M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,f.ie]}),n})();var bZ=l(1007),DA=function(n,t,e){t=t||E.ZT,e=e||E.ZT,Array.isArray(n)||(n=[n]);var i=n.map((r,v)=>(0,P.gx)(r).then(D=>((0,w.mf)(t)&&t({item:r,index:v,result:D}),D),D=>(D||(D={}),D.index=v,(0,w.mf)(e)&&e(D),(new P.BH).resolve().promise())));return P.gx.apply(null,i)},zB=function(n){for(var t=["B","KB","MB","GB","TB"],e=0,i=n;i>=1024&&e<=t.length-1;)i/=1024,e++;return i=Math.round(10*i)/10,"".concat(i," ").concat(t[e])},k0=function(n,t,e){return e.forEach(i=>{(0,y.l)(!0,n,(0,w.$K)(t[i])?{[i]:t[i]}:{})}),n},WB=function(n){var t=Object.keys(n),e=[];return t.forEach(i=>e.push(n[i])),{keys:t,values:e}},UB=n=>{var t=n.lastIndexOf(".");return-1!==t?n.substr(t):""},ZB=n=>{var t=n.lastIndexOf("/");return-1!==t?n.substr(t+"/".length):n},KB=(n,t)=>{if(!n||"/"===n)return[];for(var e=[],i="",r=0;r<n.length;r++){var v=n.charAt(r);if("/"===v){var D=n.charAt(r+1);"/"!==D&&(i&&(e.push(i),i=""),v=D),r++}i+=v}if(i&&e.push(i),t)for(var A=0;A<e.length;A++)e[A]=yh(0===A?"":e[A-1],TA(e[A]));return e},TA=function(n){return n.replace(/\/{1,1}/g,"//")},yh=function(){var n="";return(0,O.S6)(arguments,(t,e)=>{e&&(n&&(n+="/"),n+=e)}),n};class IA{constructor(){((0,w.HD)(arguments[0])?this._publicCtor:this._internalCtor).apply(this,arguments)}_internalCtor(t,e,i,r){this.name=e||"",this.pathInfo=t&&[...t]||[],this.parentPath=this._getPathByPathInfo(this.pathInfo),this.relativeName=yh(this.parentPath,e),this.key=r||this._getPathByPathInfo(this.getFullPathInfo(),!0),this.path=yh(this.parentPath,e),this.pathKeys=this.pathInfo.map(v=>{var{key:D}=v;return D}),this.isRoot()||this.pathKeys.push(this.key),this._initialize(i)}_publicCtor(t,e,i){this.path=t||"",this.pathKeys=i||[];for(var r=[],v=KB(t,!0),D=0;D<v.length-1;D++){var A=v[D],z={key:this.pathKeys[D]||A,name:ZB(A)};r.push(z)}this.pathInfo=r,this.relativeName=t,this.name=ZB(t),this.key=this.pathKeys.length?this.pathKeys[this.pathKeys.length-1]:t,this.parentPath=v.length>1?v[v.length-2]:"",this._initialize(e)}_initialize(t){this.isDirectory=!!t,this.size=0,this.dateModified=new Date,this.thumbnail="",this.tooltipText=""}getFullPathInfo(){var t=[...this.pathInfo];return this.isRoot()||t.push({key:this.key,name:this.name}),t}isRoot(){return""===this.path}getFileExtension(){return this.isDirectory?"":UB(this.name)}equals(t){return t&&this.key===t.key}createClone(){var t=new IA(this.pathInfo,this.name,this.isDirectory,this.key);return t.key=this.key,t.size=this.size,t.dateModified=this.dateModified,t.thumbnail=this.thumbnail,t.tooltipText=this.tooltipText,t.hasSubDirectories=this.hasSubDirectories,t.dataItem=this.dataItem,t}_getPathByPathInfo(t,e){return t.map(i=>e?TA(i.name):i.name).join("/")}}const rD=IA,oD=class SZ{constructor(t){t=(0,E.IS)(t,{}),this._keyGetter=(0,No.vb)(this._getKeyExpr(t)),this._nameGetter=(0,No.vb)(this._getNameExpr(t)),this._isDirGetter=(0,No.vb)(this._getIsDirExpr(t)),this._sizeGetter=(0,No.vb)(this._getSizeExpr(t)),this._dateModifiedGetter=(0,No.vb)(this._getDateModifiedExpr(t)),this._thumbnailGetter=(0,No.vb)(t.thumbnailExpr||"thumbnail")}getItems(t){return[]}renameItem(t,e){}createDirectory(t,e){}deleteItems(t){}moveItems(t,e){}copyItems(t,e){}uploadFileChunk(t,e,i){}abortFileUpload(t,e,i){}downloadItems(t){}getItemsContent(t){}getFileUploadChunkSize(){return 2e5}_convertDataObjectsToFileItems(t,e){var i=[];return(0,O.S6)(t,(r,v)=>{var D=this._createFileItem(v,e);i.push(D)}),i}_createFileItem(t,e){var i=this._keyGetter(t),r=new rD(e,this._nameGetter(t),!!this._isDirGetter(t),i);return r.size=this._sizeGetter(t),void 0===r.size&&(r.size=0),r.dateModified=Cs.Z.deserializeDate(this._dateModifiedGetter(t)),void 0===r.dateModified&&(r.dateModified=new Date),r.isDirectory&&(r.hasSubDirectories=this._hasSubDirs(t)),i||(r.key=r.relativeName),r.thumbnail=this._thumbnailGetter(t)||"",r.dataItem=t,r}_hasSubDirs(t){return!0}_getKeyExpr(t){return t.keyExpr||this._defaultKeyExpr}_defaultKeyExpr(t){if(2!==arguments.length)return Object.prototype.hasOwnProperty.call(t,"__KEY__")?t.__KEY__:null;t.__KEY__=arguments[1]}_getNameExpr(t){return t.nameExpr||"name"}_getIsDirExpr(t){return t.isDirectoryExpr||"isDirectory"}_getSizeExpr(t){return t.sizeExpr||"size"}_getDateModifiedExpr(t){return t.dateModifiedExpr||"dateModified"}_executeActionAsDeferred(t,e){var i=new P.BH;try{var r=t();(0,w.tI)(r)?(0,P.p4)(r).done(v=>i.resolve(e&&v||void 0)).fail(v=>i.reject(v)):i.resolve(e&&r||void 0)}catch(v){return i.reject(v)}return i.promise()}};var Tb=l(6051),OZ=l(7586),GB=l.n(OZ);const Ib=class DZ{constructor(t,e,i){this.errorCode=t,this.fileSystemItem=e,this.errorText=i}},Sl_NoAccess=0,Sl_FileExists=1,Sl_FileNotFound=2,Sl_DirectoryExists=3,Sl_DirectoryNotFound=4,Sl_WrongFileExtension=5,Sl_MaxFileSizeExceeded=6,Sl_InvalidSymbols=7,Sl_Other=32767;var MA=(0,fi.Jj)();const jB=class IZ extends oD{constructor(t){super(t=(0,E.IS)(t,{}));var e=t.data;if(e&&!Array.isArray(e))throw Tb.R0.Error("E4006");var i=t.itemsExpr||"items";this._subFileItemsGetter=(0,No.vb)(i),this._subFileItemsSetter=this._getSetter(i);var r=t.contentExpr||"content";this._contentGetter=(0,No.vb)(r),this._contentSetter=this._getSetter(r);var v=this._getNameExpr(t);this._nameSetter=this._getSetter(v);var D=this._getIsDirExpr(t);this._getIsDirSetter=this._getSetter(D);var A=this._getKeyExpr(t);this._keySetter=this._getSetter(A);var z=this._getSizeExpr(t);this._sizeSetter=this._getSetter(z);var Q=this._getDateModifiedExpr(t);this._dateModifiedSetter=this._getSetter(Q),this._data=e||[]}getItems(t){return this._executeActionAsDeferred(()=>this._getItems(t),!0)}renameItem(t,e){return this._executeActionAsDeferred(()=>this._renameItemCore(t,e))}_renameItemCore(t,e){if(t){var i=this._findDataObject(t);this._nameSetter(i,e),t.name=e,t.key=this._ensureDataObjectKey(i)}}createDirectory(t,e){return this._executeActionAsDeferred(()=>{this._validateDirectoryExists(t),this._createDataObject(t,e,!0)})}deleteItems(t){return t.map(e=>this._executeActionAsDeferred(()=>this._deleteItem(e)))}moveItems(t,e){var i=this._findDataObject(e),r=this._getDirectoryDataItems(i);return t.map(D=>this._executeActionAsDeferred(()=>{this._checkAbilityToMoveOrCopyItem(D,e);var A=this._findDataObject(D);this._deleteItem(D),r.push(A)}))}copyItems(t,e){var i=this._findDataObject(e),r=this._getDirectoryDataItems(i);return t.map(D=>this._executeActionAsDeferred(()=>{this._checkAbilityToMoveOrCopyItem(D,e);var A=this._findDataObject(D),z=this._createCopy(A);r.push(z)}))}uploadFileChunk(t,e,i){if(e.chunkIndex>0)return e.customData.deferred;this._validateDirectoryExists(i);var r=e.customData.deferred=new P.BH,v=this._createFileReader();return v.readAsDataURL(t),v.onload=()=>{var D=v.result.split(",")[1],A=this._createDataObject(i,t.name,!1);this._sizeSetter(A,t.size),this._dateModifiedSetter(A,t.lastModifiedDate),this._contentSetter(A,D),r.resolve()},v.onerror=D=>r.reject(D),r}downloadItems(t){1===t.length?this._downloadSingleFile(t[0]):this._downloadMultipleFiles(t)}_downloadSingleFile(t){for(var e=this._getFileContent(t),i=MA.atob(e),r=new ArrayBuffer(i.length),v=new Uint8Array(r),D=0;D<i.length;D++)v[D]=i.charCodeAt(D);var A=new MA.Blob([r],{type:"application/octet-stream"});CA.A.saveAs(t.name,null,A)}_downloadMultipleFiles(t){var i=new(function MZ(){if(!GB())throw Js.Z.Error("E1041","JSZip");return GB()}());t.forEach(D=>i.file(D.name,this._getFileContent(D),{base64:!0}));var r={type:"blob",compression:"DEFLATE",mimeType:"application/zip"},v=new P.BH;i.generateAsync?i.generateAsync(r).then(v.resolve):v.resolve(i.generate(r)),v.done(D=>CA.A.saveAs("files.zip",null,D))}_getFileContent(t){var e=this._findDataObject(t);return this._contentGetter(e)||""}_validateDirectoryExists(t){if(!this._isFileItemExists(t)||this._isDirGetter(t.fileItem))throw new Ib(Sl_DirectoryNotFound,t)}_checkAbilityToMoveOrCopyItem(t,e){var i=this._findDataObject(t),r=this._getKeyFromDataObject(i,t.parentPath),v=e.getFullPathInfo(),D="";v.forEach(A=>{if(D=yh(D,A.name),this._getDataObjectKey(A.key,D)===r)throw new Ib(Sl_Other,t)})}_createDataObject(t,e,i){var r={};this._nameSetter(r,e),this._getIsDirSetter(r,i),this._keySetter(r,String(new vh.Z));var v=this._findDataObject(t);return this._getDirectoryDataItems(v).push(r),r}_createCopy(t){var e={};this._nameSetter(e,this._nameGetter(t)),this._getIsDirSetter(e,this._isDirGetter(t));var i=this._subFileItemsGetter(t);if(Array.isArray(i)){var r=[];i.forEach(v=>{var D=this._createCopy(v);r.push(D)}),this._subFileItemsSetter(e,r)}return e}_deleteItem(t){var e=this._findDataObject(t),i=this._findFileItemObj(t.pathInfo),r=this._getDirectoryDataItems(i),v=r.indexOf(e);r.splice(v,1)}_getDirectoryDataItems(t){if(!t)return this._data;var e=this._subFileItemsGetter(t);return Array.isArray(e)||this._subFileItemsSetter(t,e=[]),e}_getItems(t){this._validateDirectoryExists(t);var e=t.getFullPathInfo(),r=this._data;if(e&&e.length>0&&e[e.length-1].key){var v=this._findFileItemObj(e);r=v&&this._subFileItemsGetter(v)||[]}return this._ensureKeysForDuplicateNameItems(r),this._convertDataObjectsToFileItems(r,e)}_ensureKeysForDuplicateNameItems(t){var e={};t.forEach(i=>{var r=this._nameGetter(i);e[r]?this._ensureDataObjectKey(i):e[r]=!0})}_findDataObject(t){if(t.isRoot())return null;var e=this._findFileItemObj(t.getFullPathInfo());if(!e)throw new Ib(t.isDirectory?Sl_DirectoryNotFound:Sl_FileNotFound,t);return e}_findFileItemObj(t){var e=this;Array.isArray(t)||(t=[]);for(var i="",r=null,v=this._data,D=function(z){(r=v.find(Q=>{var ue=e._isDirGetter(Q)||z===t.length-1;return e._getKeyFromDataObject(Q,i)===t[z].key&&e._nameGetter(Q)===t[z].name&&ue}))&&(i=yh(i,e._nameGetter(r)),v=e._subFileItemsGetter(r))},A=0;A<t.length&&(0===A||r);A++)D(A);return r}_getKeyFromDataObject(t,e){var i=this._keyGetter(t),r=yh(e,this._nameGetter(t));return this._getDataObjectKey(i,r)}_getDataObjectKey(t,e){return t||e}_ensureDataObjectKey(t){var e=this._keyGetter(t);return e||(e=String(new vh.Z),this._keySetter(t,e)),e}_hasSubDirs(t){var e=(0,E.IS)(this._subFileItemsGetter(t),[]);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(t){return(0,w.mf)(t)?t:(0,No.OM)(t)}_isFileItemExists(t){return t.isDirectory&&t.isRoot()||!!this._findFileItemObj(t.getFullPathInfo())}_createFileReader(){return new MA.FileReader}};var qv=l(9800),AZ=(0,fi.Jj)();const RZ=class kZ extends oD{constructor(t){super(t=(0,E.IS)(t,{})),this._endpointUrl=t.endpointUrl,this._beforeAjaxSend=t.beforeAjaxSend,this._beforeSubmit=t.beforeSubmit,this._requestHeaders=t.requestHeaders,this._hasSubDirsGetter=(0,No.vb)(t.hasSubDirectoriesExpr||"hasSubDirectories")}getItems(t){var e=t.getFullPathInfo();return this._executeRequest("GetDirContents",{pathInfo:e}).then(i=>this._convertDataObjectsToFileItems(i.result,e))}renameItem(t,e){return this._executeRequest("Rename",{pathInfo:t.getFullPathInfo(),isDirectory:t.isDirectory,name:e})}createDirectory(t,e){return this._executeRequest("CreateDir",{pathInfo:t.getFullPathInfo(),name:e})}deleteItems(t){return t.map(e=>this._executeRequest("Remove",{pathInfo:e.getFullPathInfo(),isDirectory:e.isDirectory}))}moveItems(t,e){return t.map(i=>this._executeRequest("Move",{sourcePathInfo:i.getFullPathInfo(),sourceIsDirectory:i.isDirectory,destinationPathInfo:e.getFullPathInfo()}))}copyItems(t,e){return t.map(i=>this._executeRequest("Copy",{sourcePathInfo:i.getFullPathInfo(),sourceIsDirectory:i.isDirectory,destinationPathInfo:e.getFullPathInfo()}))}uploadFileChunk(t,e,i){0===e.chunkIndex&&(e.customData.uploadId=new vh.Z);var r={destinationPathInfo:i.getFullPathInfo(),chunkMetadata:JSON.stringify({UploadId:e.customData.uploadId,FileName:t.name,Index:e.chunkIndex,TotalCount:e.chunkCount,FileSize:t.size})},v={url:this._endpointUrl,headers:this._requestHeaders||{},method:"POST",dataType:"json",data:{chunk:e.chunkBlob,arguments:JSON.stringify(r),command:"UploadChunk"},upload:{onprogress:E.ZT,onloadstart:E.ZT,onabort:E.ZT},xhrFields:{},cache:!1},D=new P.BH;return this._beforeSendInternal(v),qv.Z.sendRequest(v).done(A=>{!A.success&&D.reject(A)||D.resolve()}).fail(D.reject),D.promise()}abortFileUpload(t,e,i){return this._executeRequest("AbortUpload",{uploadId:e.customData.uploadId})}downloadItems(t){var e=this._getDownloadArgs(t),i=(0,u.Z)("<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"),d.Z.trigger(i,"submit"),setTimeout(()=>i.remove())}getItemsContent(t){var e=this._getDownloadArgs(t),i={url:e.url,headers:this._requestHeaders||{},method:"POST",responseType:"arraybuffer",data:{command:e.command,arguments:e.arguments},upload:{onprogress:E.ZT,onloadstart:E.ZT,onabort:E.ZT},xhrFields:{},cache:!1};return this._beforeSendInternal(i),qv.Z.sendRequest(i)}_getDownloadArgs(t){var e=t.map(v=>v.getFullPathInfo()),r=JSON.stringify({pathInfoList:e});return{url:this._endpointUrl,arguments:r,command:"Download"}}_getItemsIds(t){return t.map(e=>e.relativeName)}_executeRequest(t,e){var i="GetDirContents"===t?"GET":"POST",r=new P.BH,v={url:this._getEndpointUrl(t,e),headers:this._requestHeaders||{},method:i,dataType:"json",data:{},xhrFields:{},cache:!1};return this._beforeSendInternal(v),qv.Z.sendRequest(v).then(D=>{!D.success&&r.reject(D)||r.resolve(D)},D=>r.reject(D)),r.promise()}_beforeSubmitInternal(t){(0,w.mf)(this._beforeSubmit)&&this._beforeSubmit({formData:t})}_beforeSendInternal(t){if((0,w.mf)(this._beforeAjaxSend)){var e={headers:t.headers,formData:t.data,xhrFields:t.xhrFields};this._beforeAjaxSend(e),t.headers=e.headers,t.data=e.formData,t.xhrFields=e.xhrFields}(0,w.Qr)(t.data)?delete t.data:(t.responseType||t.upload)&&(t.data=this._createFormData(t.data))}_createFormData(t){var e=new AZ.FormData;for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(0,w.$K)(t[i])&&e.append(i,t[i]);return e}_appendFormDataInputsToForm(t,e){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(0,w.$K)(t[i])&&(0,u.Z)("<input>").attr({type:"hidden",name:i,value:t[i]}).appendTo(e)}_getEndpointUrl(t,e){var i=this._getQueryString({command:t,arguments:JSON.stringify(e)}),r=this._endpointUrl&&this._endpointUrl.indexOf("?")>0?"&":"?";return this._endpointUrl+r+i}_getQueryString(t){for(var e=[],i=Object.keys(t),r=0;r<i.length;r++){var v=i[r],D=t[v];if(void 0!==D)if(null===D&&(D=""),Array.isArray(D))this._processQueryStringArrayParam(v,D,e);else{var A=this._getQueryStringPair(v,D);e.push(A)}}return e.join("&")}_processQueryStringArrayParam(t,e,i){(0,O.S6)(e,(r,v)=>{var D=this._getQueryStringPair(t,v);i.push(D)})}_getQueryStringPair(t,e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}_hasSubDirs(t){var e=this._hasSubDirsGetter(t);return"boolean"!=typeof e||e}_getKeyExpr(t){return t.keyExpr||"key"}},BZ=class LZ extends oD{constructor(t){super(t=(0,E.IS)(t,{})),this._hasSubDirsGetter=(0,No.vb)(t.hasSubDirectoriesExpr||"hasSubDirectories"),this._getItemsFunction=this._ensureFunction(t.getItems,()=>[]),this._renameItemFunction=this._ensureFunction(t.renameItem),this._createDirectoryFunction=this._ensureFunction(t.createDirectory),this._deleteItemFunction=this._ensureFunction(t.deleteItem),this._moveItemFunction=this._ensureFunction(t.moveItem),this._copyItemFunction=this._ensureFunction(t.copyItem),this._uploadFileChunkFunction=this._ensureFunction(t.uploadFileChunk),this._abortFileUploadFunction=this._ensureFunction(t.abortFileUpload),this._downloadItemsFunction=this._ensureFunction(t.downloadItems),this._getItemsContentFunction=this._ensureFunction(t.getItemsContent)}getItems(t){var e=t.getFullPathInfo();return this._executeActionAsDeferred(()=>this._getItemsFunction(t),!0).then(i=>this._convertDataObjectsToFileItems(i,e))}renameItem(t,e){return this._executeActionAsDeferred(()=>this._renameItemFunction(t,e))}createDirectory(t,e){return this._executeActionAsDeferred(()=>this._createDirectoryFunction(t,e))}deleteItems(t){return t.map(e=>this._executeActionAsDeferred(()=>this._deleteItemFunction(e)))}moveItems(t,e){return t.map(i=>this._executeActionAsDeferred(()=>this._moveItemFunction(i,e)))}copyItems(t,e){return t.map(i=>this._executeActionAsDeferred(()=>this._copyItemFunction(i,e)))}uploadFileChunk(t,e,i){return this._executeActionAsDeferred(()=>this._uploadFileChunkFunction(t,e,i))}abortFileUpload(t,e,i){return this._executeActionAsDeferred(()=>this._abortFileUploadFunction(t,e,i))}downloadItems(t){return this._executeActionAsDeferred(()=>this._downloadItemsFunction(t))}getItemsContent(t){return this._executeActionAsDeferred(()=>this._getItemsContentFunction(t))}_hasSubDirs(t){var e=this._hasSubDirsGetter(t);return"boolean"!=typeof e||e}_getKeyExpr(t){return t.keyExpr||"key"}_ensureFunction(t,e){return e=e||E.ZT,(0,w.mf)(t)?t:e}};class FZ{constructor(t){this._options=(0,y.l)({},t=t||{}),this._isInitialized=!1,this._dataLoading=!1,this._dataLoadingDeferred=null,this._rootDirectoryInfo=this._createRootDirectoryInfo(t.rootText),this._currentDirectoryInfo=this._rootDirectoryInfo,this._defaultIconMap=this._createDefaultIconMap(),this.startSingleLoad(),this._setSecurityController(),this._setProvider(t.fileProvider),this._initialize()}_initialize(){var t=this._options.currentPathKeys&&this._options.currentPathKeys.length?this.setCurrentPathByKeys(this._options.currentPathKeys):this.setCurrentPath(this._options.currentPath),e=()=>{this._isInitialized=!0,this._raiseInitialized()};t?(0,P.gx)(t).always(e):e()}_setSecurityController(){this._securityController=new VZ({allowedFileExtensions:this._options.allowedFileExtensions,maxFileSize:this._options.uploadMaxFileSize}),this._resetState()}setAllowedFileExtensions(t){(0,w.$K)(t)&&(this._options.allowedFileExtensions=t),this._setSecurityController(),this.refresh()}setUploadOptions(t){var{maxFileSize:e,chunkSize:i}=t;(0,w.$K)(i)&&(this._options.uploadChunkSize=i),(0,w.$K)(e)&&(this._options.uploadMaxFileSize=e,this._setSecurityController(),this.refresh())}_setProvider(t){this._fileProvider=this._createFileProvider(t),this._resetState()}updateProvider(t,e){return(0,w.$K)(e)?(0,P.gx)(this._getDirectoryByPathParts(this._rootDirectoryInfo,e,!0)).then(i=>{i!==this._rootDirectoryInfo&&this._resetCurrentDirectory(),this._setProvider(t)}).then(()=>this.setCurrentPathByKeys(e)):this._updateProviderOnly(t)}_updateProviderOnly(t){return this._resetCurrentDirectory(),this._setProvider(t),(0,P.gx)(this.refresh())}_createFileProvider(t){if(t||(t=[]),Array.isArray(t))return new jB({data:t});if(t instanceof oD)return t;switch(t.type){case"remote":return new RZ(t);case"custom":return new BZ(t)}return new jB(t)}setCurrentPath(t){var e=KB(t),i=yh(...e);return this.getCurrentDirectory().fileItem.relativeName===i?(new P.BH).resolve().promise():this._setCurrentDirectoryByPathParts(e)}setCurrentPathByKeys(t){return(0,E.bY)(this.getCurrentDirectory().fileItem.pathKeys,t,0,!0)?(new P.BH).resolve().promise():this._setCurrentDirectoryByPathParts(t,!0)}getCurrentPath(){for(var t="",e=this.getCurrentDirectory();e&&!e.fileItem.isRoot();){var i=TA(e.fileItem.name);t=yh(i,t),e=e.parentDirectory}return t}getCurrentPathKeys(){return this.getCurrentDirectory().fileItem.pathKeys}getCurrentDirectory(){return this._currentDirectoryInfo}setCurrentDirectory(t,e){if(t){if(e&&(t=this._getActualDirectoryInfo(t)),this._currentDirectoryInfo&&this._currentDirectoryInfo===t)return void this._raisePathPotentiallyChanged();var i=this._currentDirectoryInfo.fileItem.key!==t.fileItem.key;this._currentDirectoryInfo=t,i&&this._isInitialized&&(this._dataLoading||this._raiseDataLoading("navigation"),this._raiseSelectedDirectoryChanged(t))}}_resetCurrentDirectory(){this._currentDirectoryInfo=this._rootDirectoryInfo}getCurrentItems(t){return this._dataLoadingDeferred?this._dataLoadingDeferred.then(()=>this._getCurrentItemsInternal(t)):this._getCurrentItemsInternal(t)}_getCurrentItemsInternal(t){var e=this.getCurrentDirectory();return this.getDirectoryContents(e).then(r=>{var v=this._separateItemsByType(r);return e.fileItem.hasSubDirectories=!!v.folders.length,t?v.files:r})}getDirectories(t,e){return this.getDirectoryContents(t,e).then(i=>i.filter(r=>r.fileItem.isDirectory))}_separateItemsByType(t){var e=[],i=[];return t.forEach(r=>r.fileItem.isDirectory?e.push(r):i.push(r)),{folders:e,files:i}}getDirectoryContents(t,e){if(!t)return(new P.BH).resolve([this._rootDirectoryInfo]).promise();if(t.itemsLoaded)return(new P.BH).resolve(t.items).promise();if(this._singleOperationLockId&&t.itemsSingleLoadErrorId===this._singleOperationLockId)return this._changeDirectoryOnError(t,e,!0),(new P.BH).reject().promise();var i=t.getInternalKey(),r=this._loadedItems[i];return r||(r=this._getFileItems(t,e).then(v=>(t.items=(v=v||[]).map(D=>D.isDirectory&&this._createDirectoryInfo(D,t)||this._createFileInfo(D,t)),t.itemsLoaded=!0,t.items),()=>(this._singleOperationLockId&&t.itemsSingleLoadErrorId!==this._singleOperationLockId&&(t.itemsSingleLoadErrorId=this._singleOperationLockId),[])),this._loadedItems[i]=r,r.always(()=>{delete this._loadedItems[i]}),r)}_getFileItems(t,e){var i=null;try{i=this._fileProvider.getItems(t.fileItem)}catch(r){return this._handleItemLoadError(t,r,e)}return(0,P.gx)(i).then(r=>this._securityController.getAllowedItems(r),r=>this._handleItemLoadError(t,r,e))}createDirectory(t,e){var i=t.fileItem,r=this._createDirInfoByName(e,t),v=this._createEditActionInfo("create",r,t);return this._processEditAction(v,D=>{D.parentDirectory=i,D.name=e,this._editingEvents.onDirectoryCreating(D)},()=>this._fileProvider.createDirectory(i,e).done(D=>(i.isRoot()||(i.hasSubDirectories=!0),D)),()=>{this._editingEvents.onDirectoryCreated({parentDirectory:i,name:e})},()=>this._resetDirectoryState(t,!0))}renameItem(t,e){var i=t.fileItem.createClone(),r=this._createEditActionInfo("rename",t,t.parentDirectory,{itemNewName:e});return this._processEditAction(r,(v,D)=>{D.fileItem.isDirectory||this._securityController.validateExtension(e),v.item=i,v.newName=e,this._editingEvents.onItemRenaming(v)},v=>this._fileProvider.renameItem(v,e),()=>{this._editingEvents.onItemRenamed({sourceItem:i,itemName:e})},()=>{var v=this._getActualDirectoryInfo(t.parentDirectory);this._resetDirectoryState(v),this.setCurrentDirectory(v)})}moveItems(t,e){var i=this._createEditActionInfo("move",t,e);return this._processEditAction(i,(r,v)=>{r.item=v.fileItem,r.destinationDirectory=e.fileItem,this._editingEvents.onItemMoving(r)},r=>this._fileProvider.moveItems([r],e.fileItem),r=>{var v={sourceItem:r.fileItem,parentDirectory:e.fileItem,itemName:r.fileItem.name,itemPath:yh(e.fileItem.path,r.fileItem.name)};this._editingEvents.onItemMoved(v)},r=>{t.forEach(v=>this._resetDirectoryState(v.parentDirectory,!0)),r&&(this._resetDirectoryState(e),this.setCurrentPathByKeys(e.fileItem.pathKeys),e.expanded=!0)})}copyItems(t,e){var i=this._createEditActionInfo("copy",t,e);return this._processEditAction(i,(r,v)=>{r.item=v.fileItem,r.destinationDirectory=e.fileItem,this._editingEvents.onItemCopying(r)},r=>this._fileProvider.copyItems([r],e.fileItem),r=>{var v={sourceItem:r.fileItem,parentDirectory:e.fileItem,itemName:r.fileItem.name,itemPath:yh(e.fileItem.path,r.fileItem.name)};this._editingEvents.onItemCopied(v)},r=>{r&&(e=this._getActualDirectoryInfo(e),this._resetDirectoryState(e),this.setCurrentDirectory(e),e.expanded=!0)})}deleteItems(t){var i=this._createEditActionInfo("delete",t,t.length>0?t[0].parentDirectory:null);return this._processEditAction(i,(r,v)=>{r.item=v.fileItem,this._editingEvents.onItemDeleting(r)},r=>this._fileProvider.deleteItems([r]),r=>this._editingEvents.onItemDeleted({item:r.fileItem}),()=>{t.forEach(r=>{var v=this._getActualDirectoryInfo(r.parentDirectory);this._resetDirectoryState(v),this.setCurrentDirectory(v)})})}processUploadSession(t,e){var i=this._getItemInfosForUploaderFiles(t.files,e),r=this._createEditActionInfo("upload",i,e,{sessionInfo:t});return this._processEditAction(r,()=>{},(v,D)=>t.deferreds[D],()=>{},()=>this._resetDirectoryState(e,!0))}uploadFileChunk(t,e,i){var r=null;0===e.chunkIndex?(this._securityController.validateMaxFileSize(t.size),this._securityController.validateExtension(t.name),r=this._processBeforeItemEditAction(D=>{D.fileData=t,D.destinationDirectory=i,this._editingEvents.onFileUploading(D)})):r=(new P.BH).resolve().promise();var v=r.then(()=>this._fileProvider.uploadFileChunk(t,e,i));return e.chunkIndex===e.chunkCount-1&&(v=v.done(()=>{this._editingEvents.onFileUploaded({fileData:t,parentDirectory:i})})),v}abortFileUpload(t,e,i){return(0,P.gx)(this._fileProvider.abortFileUpload(t,e,i))}getFileUploadChunkSize(){var t=this._options.uploadChunkSize;return t&&t>0?t:this._fileProvider.getFileUploadChunkSize()}downloadItems(t){var e=t.map(i=>this._processBeforeItemEditAction(r=>{r.item=i.fileItem,this._editingEvents.onItemDownloading(r)},i));return(0,P.gx)(...e).then(()=>{var i=t.map(r=>r.fileItem);return(0,P.gx)(this._getItemActionResult(this._fileProvider.downloadItems(i))).then(()=>{},r=>{this._raiseDownloadItemsError(t,t[0].parentDirectory,r)})},i=>{this._raiseDownloadItemsError(t,t[0].parentDirectory,i)})}getItemContent(t){var e=t.map(i=>i.fileItem);return(0,P.gx)(this._fileProvider.getItemsContent(e))}_handleItemLoadError(t,e,i){return t=this._getActualDirectoryInfo(t),this._raiseGetItemsError(t,e),this._changeDirectoryOnError(t,i),(new P.BH).reject().promise()}_raiseGetItemsError(t,e){var i=this._createEditActionInfo("getItems",t,t);this._raiseEditActionStarting(i),this._raiseEditActionResultAcquired(i),this._raiseEditActionError(i,{errorCode:e.errorCode,errorText:e.errorText,fileItem:t.fileItem,index:0})}_raiseDownloadItemsError(t,e,i){var r=this._createEditActionInfo("download",t,e),v=t.length;r.singleRequest=1===v,this._raiseEditActionStarting(r),this._raiseEditActionResultAcquired(r);for(var D=0;D<v-1;D++)this._raiseEditActionItemError(r,{errorCode:i.errorCode,errorText:i.errorText,fileItem:t[D].fileItem,index:D});this._raiseEditActionError(r,{errorCode:i.errorCode,errorText:i.errorText,fileItem:t[v-1].fileItem,index:v-1})}_changeDirectoryOnError(t,e,i){i&&(t=this._getActualDirectoryInfo(t)),this._resetDirectoryState(t),t.expanded=!1,e||this.setCurrentDirectory(t.parentDirectory)}_getItemActionResult(t){return Array.isArray(t)?t[0]:t}_processEditAction(t,e,i,r,v){var D=!1;this._raiseEditActionStarting(t);var A=t.itemInfos.map((z,Q)=>this._processBeforeItemEditAction(e,z).then(()=>this._getItemActionResult(i(z.fileItem,Q)).done(()=>r(z))));return t.singleRequest=1===A.length,this._raiseEditActionResultAcquired(t),DA(A,z=>{D=!0,this._raiseCompleteEditActionItem(t,z)},z=>this._raiseEditActionItemError(t,z)).then(()=>{v(D),this._raiseCompleteEditAction(t)})}_createEditActionInfo(t,e,i,r){r=r||{};var v=(e=Array.isArray(e)?e:[e]).map(D=>D.fileItem);return{name:t,itemInfos:e,items:v,directory:i,customData:r,singleRequest:!0}}_processBeforeItemEditAction(t,e){var i=new P.BH,r=this._createBeforeActionArgs();try{t(r,e)}catch(v){return i.reject(v).promise()}if(r.cancel){if(!0===r.cancel)return i.reject({errorText:r.errorText,errorCode:r.errorCode});(0,w.tI)(r.cancel)&&(0,P.gx)(r.cancel).then(v=>{!0===v?i.reject():(0,w.Kn)(v)&&!0===v.cancel&&i.reject({errorText:v.errorText,errorCode:v.errorCode}),i.resolve()},i.resolve)}else i.resolve();return i.promise()}_createBeforeActionArgs(){return{errorCode:void 0,errorText:"",cancel:!1}}_getItemInfosForUploaderFiles(t,e){for(var i=this._getPathInfo(e),r=[],v=0;v<t.length;v++){var A=new rD(i,t[v].name,!1),z=this._createFileInfo(A,e);r.push(z)}return r}refresh(){return this._lockRefresh?this._refreshDeferred:(this._lockRefresh=!0,this._executeDataLoad(()=>this._refreshDeferred=this._refreshInternal(),"refresh"))}startSingleLoad(){this._singleOperationLockId=(new vh.Z).toString()}endSingleLoad(){delete this._singleOperationLockId}_refreshInternal(){var t={items:this._rootDirectoryInfo.items},e=this._getDirectoryPathKeyParts(this.getCurrentDirectory());return this._resetDirectoryState(this._rootDirectoryInfo),this._loadItemsRecursive(this._rootDirectoryInfo,t).then(()=>{var i=this._findDirectoryByPathKeyParts(e);this.setCurrentDirectory(i),delete this._lockRefresh})}_loadItemsRecursive(t,e){var i=this;return this.getDirectories(t).then(r=>{for(var v=[],D=function(Q){var ue=e.items.find(we=>r[Q].fileItem.key===we.fileItem.key);if(!ue)return"continue";r[Q].expanded=ue.expanded,r[Q].expanded&&v.push(i._loadItemsRecursive(r[Q],ue))},A=0;A<r.length;A++)D(A);return DA(v)},()=>null)}_setCurrentDirectoryByPathParts(t,e){return this._executeDataLoad(()=>this._setCurrentDirectoryByPathPartsInternal(t,e),"navigation")}_setCurrentDirectoryByPathPartsInternal(t,e){return this._getDirectoryByPathParts(this._rootDirectoryInfo,t,e).then(i=>{for(var r=i.parentDirectory;r;r=r.parentDirectory)r.expanded=!0;this.setCurrentDirectory(i)},()=>{this._raisePathPotentiallyChanged()})}_executeDataLoad(t,e){return this._dataLoadingDeferred?this._dataLoadingDeferred.then(()=>this._executeDataLoad(t,e)):(this._dataLoading=!0,this._dataLoadingDeferred=new P.BH,this._isInitialized&&this._raiseDataLoading(e),t().always(()=>{var i=this._dataLoadingDeferred;this._dataLoadingDeferred=null,this._dataLoading=!1,i.resolve()}))}_getDirectoryByPathParts(t,e,i){if(e.length<1)return(new P.BH).resolve(t).promise();var r=i?"key":"name";return this.getDirectories(t).then(v=>{var D=v.find(z=>z.fileItem[r]===e[0]);if(!D)return(new P.BH).reject().promise();var A=[...e].splice(1);return this._getDirectoryByPathParts(D,A,i)})}_getDirectoryPathKeyParts(t){for(var e=[];t&&t.parentDirectory;)e.unshift(t.fileItem.key),t=t.parentDirectory;return e}_findDirectoryByPathKeyParts(t){var e=this._rootDirectoryInfo;if(0===t.length)return e;for(var i=0,r=e;r&&i<t.length;)(r=e.items.find(v=>v.fileItem.key===t[i]))&&(e=r),i++;return e}_getActualDirectoryInfo(t){var e=this._getDirectoryPathKeyParts(t);return this._findDirectoryByPathKeyParts(e)}_createDirInfoByName(t,e){var i=this._getPathInfo(e),r=new rD(i,t,!0);return this._createDirectoryInfo(r,e)}_createDirectoryInfo(t,e){return(0,y.l)(this._createFileInfo(t,e),{icon:"folder",expanded:t.isRoot(),items:[]})}_createFileInfo(t,e){return{fileItem:t,parentDirectory:e,icon:this._getFileItemDefaultIcon(t),getInternalKey(){return"FIK_".concat(this.fileItem.key)},getDisplayName(){return this.displayName||this.fileItem.name}}}_resetDirectoryState(t,e){e&&(t=this._getActualDirectoryInfo(t)),t.itemsLoaded=!1,t.items=[]}_getFileItemDefaultIcon(t){if(t.isDirectory)return"folder";var e=t.getFileExtension();return this._defaultIconMap[e]||"doc"}_createDefaultIconMap(){var t={".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=>{t[e]="image"}),t}_createRootDirectoryInfo(t){var e=new rD(null,"",!0),i=this._createDirectoryInfo(e,null);return i.displayName=t||"Files",i}setRootText(t){this._rootDirectoryInfo.displayName=t||"Files"}_raiseInitialized(){this._tryCallAction("onInitialized",{controller:this})}_raiseDataLoading(t){this._tryCallAction("onDataLoading",{operation:t})}_raiseSelectedDirectoryChanged(t){this._tryCallAction("onSelectedDirectoryChanged",{selectedDirectoryInfo:t})}_raiseEditActionStarting(t){this._tryCallAction("onEditActionStarting",t)}_raiseEditActionResultAcquired(t){this._tryCallAction("onEditActionResultAcquired",t)}_raiseEditActionError(t,e){this._tryCallAction("onEditActionError",t,e)}_raiseEditActionItemError(t,e){this._tryCallAction("onEditActionItemError",t,e)}_raiseCompleteEditActionItem(t,e){this._tryCallAction("onCompleteEditActionItem",t,e)}_raiseCompleteEditAction(t){this._tryCallAction("onCompleteEditAction",t)}_raisePathPotentiallyChanged(){this._tryCallAction("onPathPotentiallyChanged")}_tryCallAction(t){var e=Array.prototype.slice.call(arguments,1);this._isInitialized&&this._options[t]&&this._options[t](...e)}_resetState(){this._selectedDirectory=null,this._rootDirectoryInfo.items=[],this._rootDirectoryInfo.itemsLoaded=!1,this._loadedItems={}}_getPathInfo(t){for(var e=[],i=t;i&&!i.fileItem.isRoot();i=i.parentDirectory)e.unshift({key:i.fileItem.key,name:i.fileItem.name});return e}on(t,e){var i="on".concat(t);this._options[i]=e}get _editingEvents(){return this._options.editingEvents}}class VZ{constructor(t){this._options=(0,y.l)({allowedFileExtensions:[],maxFileSize:0},t),this._extensionsMap={},this._allowedFileExtensions.forEach(e=>{this._extensionsMap[e.toUpperCase()]=!0})}getAllowedItems(t){return 0===this._allowedFileExtensions.length?t:t.filter(e=>e.isDirectory||this._isValidExtension(e.name))}validateExtension(t){if(!this._isValidExtension(t))throw new Ib(Sl_WrongFileExtension,null)}validateMaxFileSize(t){if(this._maxFileSize&&t>this._maxFileSize)throw new Ib(Sl_MaxFileSizeExceeded,null)}_isValidExtension(t){if(0===this._allowedFileExtensions.length)return!0;var e=UB(t).toUpperCase();return this._extensionsMap[e]}get _allowedFileExtensions(){return this._options.allowedFileExtensions}get _maxFileSize(){return this._options.maxFileSize}}var YB={create:!1,copy:!1,move:!1,delete:!1,rename:!1,upload:!1,download:!1};class NZ{constructor(t){this._actions={},this._permissions=t||{},this._initCommands()}_initCommands(){this._commands=[{name:"create",text:wn.Z.format("dxFileManager-commandCreate"),icon:"newfolder",enabled:this._permissions.create,noFileItemRequired:!0},{name:"rename",text:wn.Z.format("dxFileManager-commandRename"),icon:"rename",enabled:this._permissions.rename,isSingleFileItemCommand:!0},{name:"move",text:wn.Z.format("dxFileManager-commandMove"),icon:"movetofolder",enabled:this._permissions.move},{name:"copy",text:wn.Z.format("dxFileManager-commandCopy"),icon:"copy",enabled:this._permissions.copy},{name:"delete",text:wn.Z.format("dxFileManager-commandDelete"),icon:"trash",enabled:this._permissions.delete},{name:"download",text:wn.Z.format("dxFileManager-commandDownload"),icon:"download",enabled:this._permissions.download},{name:"upload",text:wn.Z.format("dxFileManager-commandUpload"),icon:"upload",enabled:this._permissions.upload,noFileItemRequired:!0},{name:"refresh",text:wn.Z.format("dxFileManager-commandRefresh"),icon:"dx-filemanager-i dx-filemanager-i-refresh",enabled:!0,noFileItemRequired:!0},{name:"thumbnails",text:wn.Z.format("dxFileManager-commandThumbnails"),icon:"mediumiconslayout",enabled:!0,noFileItemRequired:!0},{name:"details",text:wn.Z.format("dxFileManager-commandDetails"),icon:"detailslayout",enabled:!0,noFileItemRequired:!0},{name:"clearSelection",text:wn.Z.format("dxFileManager-commandClearSelection"),icon:"remove",enabled:!0},{name:"showNavPane",hint:wn.Z.format("dxFileManager-commandShowNavPane"),icon:"menu",enabled:!1,noFileItemRequired:!0}],this._commandMap={},this._commands.forEach(t=>{this._commandMap[t.name]=t})}registerActions(t){this._actions=(0,y.l)(this._actions,t)}executeCommand(t,e){var i=(0,w.HD)(t)?t:t.name,r=this._actions[i];if(r)return r(e)}updatePermissions(t){var e=(0,y.l)({},YB,t);this._permissions=e,(0,O.S6)(this._permissions,i=>{this._commandMap[i].enabled=this._permissions[i]})}setCommandEnabled(t,e){var i=this.getCommandByName(t);i&&(i.enabled=e)}getCommandByName(t){return this._commandMap[t]}isCommandAvailable(t,e){var i=this.getCommandByName(t);if(!i||!i.enabled)return!1;if(i.noFileItemRequired)return!0;var r=e&&e.length||0;return 0!==r&&!e.some(v=>v.fileItem.isRoot()||v.fileItem.isParentFolder)&&("download"===t?e.every(v=>!v.fileItem.isDirectory):!i.isSingleFileItemCommand||1===r)}}var HZ=l(7138),XB={create:{},upload:{},download:{},rename:{},move:{},copy:{},delete:{},refresh:{beginGroup:!0}},WZ=["beginGroup","closeMenuOnClick","disabled","icon","selectable","selected","text","visible"];const ZZ=class UZ extends sa.Z{_initMarkup(){this._initActions(),this._isVisible=!1;var t=(0,u.Z)("<div>").appendTo(this.$element());this._contextMenu=this._createComponent(t,HZ.Z,{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(t,e,i,r){var{itemData:v,itemElement:D,isActionButton:A=!1}=r;this._isVisible&&this._onContextMenuHidden(),this._menuShowingContext={targetElement:D,itemData:v,fileItems:t,event:i,isActionButton:A};var z={of:e,at:"top left",my:"top left",offset:""};i?z.offset=i.offsetX+" "+i.offsetY:(z.my="left top",z.at="left bottom",z.boundaryOffset="1"),this._contextMenu.option({target:e,position:z}),this._contextMenu.show()}createContextMenuItems(t,e,i){this._targetFileItems=t,this._targetFileItem=(0,w.$K)(i)?i:t?.[0];var r=[];return(e||this.option("items")).forEach(D=>{var A=(0,w.HD)(D)?D:D.name,z=this._configureItemByCommandName(A,D,t,this._targetFileItem);this._isContextMenuItemAvailable(z,t)&&r.push(z)}),r}_isContextMenuItemAvailable(t,e){return this._isDefaultItem(t.name)&&t._autoHide?!(this._isIsolatedCreationItemCommand(t.name)&&e&&e.length)&&this._commandManager.isCommandAvailable(t.name,e):(0,E.IS)(t.visible,!0)}_isIsolatedCreationItemCommand(t){return("create"===t||"upload"===t)&&this.option("isolateCreationItemCommands")}_isDefaultItem(t){return!!XB[t]}_configureItemByCommandName(t,e,i,r){if(!this._isDefaultItem(t)){var v=(0,y.l)(!0,{},e);return v.originalItemData=e,this._addItemClickHandler(t,v),Array.isArray(e.items)&&(v.items=this.createContextMenuItems(i,e.items,r)),v}var D=this._createMenuItemByCommandName(t);return(0,y.l)(D,XB[t]),D.originalItemData=e,k0(D,e,WZ),(0,w.$K)(D.visible)||(D._autoHide=!0),t&&!D.name&&(0,y.l)(D,{name:t}),D}_createMenuItemByCommandName(t){var{text:e,icon:i}=this._commandManager.getCommandByName(t),r={name:t,text:e,icon:i};return this._addItemClickHandler(t,r),r}_addItemClickHandler(t,e){e.onItemClick=i=>this._onContextMenuItemClick(t,i)}_onContextMenuItemClick(t,e){var i,r=(0,y.l)(!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(t)){var v=this._isIsolatedCreationItemCommand(t)?null:this._targetFileItems;this._commandManager.executeCommand(t,v)}}_initActions(){this._actions={onContextMenuHidden:this._createActionByOption("onContextMenuHidden"),onContextMenuShowing:this._createActionByOption("onContextMenuShowing"),onItemClick:this._createActionByOption("onItemClick")}}_onContextMenuShowing(t){if(this._isVisible&&this._onContextMenuHidden(!0),t=(0,y.l)(t,this._menuShowingContext,{options:this.option(),cancel:!1}),this._actions.onContextMenuShowing(t),!t.cancel){var e=this.createContextMenuItems(this._menuShowingContext.fileItems,null,this._menuShowingContext.fileSystemItem);this._contextMenu.option("dataSource",e)}}tryUpdateVisibleContextMenu(){if(this._isVisible){var t=this.createContextMenuItems(this._targetFileItems);this._contextMenu.option("dataSource",t)}}_onContextMenuShown(){this._isVisible=!0}_onContextMenuHidden(t){this._isVisible=!1,t||(this._menuShowingContext={}),this._contextMenu.option("visible",!1),this._raiseContextMenuHidden()}_raiseContextMenuHidden(){this._actions.onContextMenuHidden()}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{commandManager:null,onContextMenuHidden:null,onItemClick:null})}_optionChanged(t){var e=t.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(t)}}get _commandManager(){return this.option("commandManager")}};var KZ=l(3520),Jv=l(219);const qB=class YZ extends sa.Z{_initMarkup(){this._createClickAction();var t=(0,u.Z)("<div>");this.$element().append(t).addClass("dx-filemanager-file-actions-button"),this._button=this._createComponent(t,Jv.Z,{icon:"overflow",stylingMode:"text",onClick:e=>this._raiseClick(e)}),super._initMarkup()}_createClickAction(){this._clickAction=this._createActionByOption("onClick")}_raiseClick(t){this._clickAction(t)}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{cssClass:"",onClick:null})}_optionChanged(t){switch(t.name){case"cssClass":this.repaint();break;case"onClick":this._createClickAction();break;default:super._optionChanged(t)}}setActive(t){this.$element().toggleClass("dx-filemanager-file-actions-button-activated",t),setTimeout(()=>this._button.$element().toggleClass("dx-state-active",t))}};var JB="dx-filemanager-focused-item";const QB=class QZ extends sa.Z{_initMarkup(){this._initActions(),this._getCurrentDirectory=this.option("getCurrentDirectory"),this._createFileActionsButton=E.ZT,this._storeExpandedState=this.option("storeExpandedState")||!1;var t=(0,u.Z)("<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,qB,r)),this._filesTreeView=this._createComponent(t,KZ.Z,e)}_initActions(){this._actions={onDirectoryClick:this._createActionByOption("onDirectoryClick"),onFilesTreeViewContentReady:this._createActionByOption("onFilesTreeViewContentReady")}}_render(){super._render();var t=this;setTimeout(()=>{t._updateFocusedElement()})}_onFilesTreeViewCreateSubDirectories(t){var e=this.option("getDirectories");return e&&e(t&&t.itemData||null,!0)}_onFilesTreeViewItemRendered(t){var{itemData:e}=t,i=this._getCurrentDirectory();i&&i.fileItem.equals(e.fileItem)&&(this._updateFocusedElement(),this._restoreScrollTopPosition())}_onFilesTreeViewItemExpanded(t){var{itemData:e}=t;this._storeExpandedState&&(e.expanded=!0)}_onFilesTreeViewItemCollapsed(t){var{itemData:e}=t;this._storeExpandedState&&(e.expanded=!1)}_createFilesTreeViewItemTemplate(t,e,i){var r=(0,u.Z)(i);r.closest(this._filesTreeViewItemSelector).data("item",t);var D=(0,W.H)(t.icon),A=(0,u.Z)("<span>").text(t.getDisplayName()).addClass("dx-filemanager-dirs-tree-item-text"),z=(0,u.Z)("<div>");r.append(D,A,z),this._createFileActionsButton(z,{onClick:Q=>this._onFileItemActionButtonClick(Q)})}_onFilesTreeViewItemContextMenu(t){var{itemElement:e,event:i}=t;i.preventDefault(),i.stopPropagation();var r=(0,u.Z)(e).data("item");this._contextMenu.showAt([r],e,i,{itemData:r,itemElement:e})}_onFileItemActionButtonClick(t){var{component:e,element:i,event:r}=t;r.stopPropagation();var v=e.$element().closest(this._filesTreeViewItemSelector),D=v.data("item");this._contextMenu.showAt([D],i,r,{itemData:D,itemElement:v,isActionButton:!0}),this._activeFileActionsButton=e,this._activeFileActionsButton.setActive(!0)}_onContextMenuHidden(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}toggleNodeDisabledState(t,e){var i=this._getNodeByKey(t);if(i){var v=this._filesTreeView.option("items").map(D=>D.getInternalKey()).indexOf(i.getInternalKey());-1!==v&&this._filesTreeView.option("items[".concat(v,"].disabled"),e)}}_saveScrollTopPosition(){(0,fi.Ym)()&&(this._scrollTopPosition=this._filesTreeView.getScrollable().scrollTop())}_restoreScrollTopPosition(){!(0,fi.Ym)()||!(0,w.kE)(this._scrollTopPosition)||setTimeout(()=>this._filesTreeView.getScrollable().scrollTo(this._scrollTopPosition))}_updateFocusedElement(){var t=this._getCurrentDirectory(),e=this._getItemElementByKey(t?.getInternalKey());this._$focusedElement&&this._$focusedElement.toggleClass(JB,!1),this._$focusedElement=e||(0,u.Z)(),this._$focusedElement.toggleClass(JB,!0)}_getNodeByKey(t){var e;return null===(e=this._filesTreeView)||void 0===e?void 0:e._getNode(t)}_getPublicNode(t){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()===t)return r;r.children.length&&i.push(...r.children)}}_getItemElementByKey(t){var e=this._getNodeByKey(t);if(e){var i=this._filesTreeView._getNodeElement(e);if(i)return i.children(this._filesTreeViewItemSelector)}return null}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{storeExpandedState:!1,initialFolder:null,contextMenu:null,getItems:null,getCurrentDirectory:null,onDirectoryClick:null})}_optionChanged(t){var e=t.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(t)}}get _filesTreeViewItemSelector(){return".".concat("dx-treeview-item")}get _contextMenu(){return this.option("contextMenu")}toggleDirectoryExpandedState(t,e){var i=new P.BH,r=this._getPublicNode(t?.getInternalKey());return r?r.expanded===e||r.itemsLoaded&&!r.itemData.fileItem.hasSubDirectories?i.resolve().promise():this._filesTreeView[e?"expandItem":"collapseItem"](t.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(t,e){for(var i=[],r=t;r;r=r.parentDirectory)i.unshift(r);return this.toggleDirectoryLineExpandedState(i,e)}toggleDirectoryLineExpandedState(t,e){return t.length?this.toggleDirectoryExpandedState(t.shift(),e).then(()=>this.toggleDirectoryLineExpandedState(t,e)):(new P.BH).resolve().promise()}};var eK=l(1378),eF=l(1384),tF=l(7344);const nF=class iK extends sa.Z{_init(){this._initActions(),this._lockFocusedItemProcessing=!1,this._focusedItemKey=this.option("focusedItemKey"),super._init()}_initMarkup(){this.$element().addClass("dx-filemanager-files-view");var t=(0,k.V4)(eF.u,"dxFileManager_open");d.Z.on(this.$element(),t,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(0,y.l)(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(t){var e=t.name;switch(e){case"selectionMode":case"contextMenu":case"getItems":case"getItemThumbnail":this.repaint();break;case"selectedItemKeys":this._setSelectedItemKeys(t.value);break;case"focusedItemKey":this._lockFocusedItemProcessing||this._setFocusedItemKey(t.value);break;case"onError":case"onSelectedItemOpened":case"onSelectionChanged":case"onFocusedItemChanged":case"onContextMenuShowing":case"onItemListDataLoaded":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}_getItems(){return this._getItemsInternal().done(t=>{this._itemCount=t.length,0===this._itemCount&&this._resetFocus();var e=this._findParentDirectoryItem(t);this._hasParentDirectoryItem=!!e,this._parentDirectoryItemKey=e?e.fileItem.key:null}).always(()=>{this._onDataLoaded()})}_getItemsInternal(){var t=this.option("getItems"),e=t?t():[];return(0,P.gx)(e)}_raiseOnError(t){this._actions.onError({error:t})}_raiseSelectionChanged(t){this._actions.onSelectionChanged(t)}_raiseFocusedItemChanged(t){this._actions.onFocusedItemChanged(t)}_raiseSelectedItemOpened(t){this._actions.onSelectedItemOpened({fileItemInfo:t})}_raiseContextMenuShowing(t){this._actions.onContextMenuShowing(t)}_raiseItemListDataLoaded(){this._actions.onItemListDataLoaded()}_onDataLoaded(){var t;this._raiseItemListDataLoaded(),null===(t=this._refreshDeferred)||void 0===t||t.resolve()}_tryRaiseSelectionChanged(t){var{selectedItemInfos:e,selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:v,currentDeselectedItemKeys:D}=t,A=this._findParentDirectoryItem(this.getSelectedItems());A&&this._deselectItem(A);var z=!this._hasParentDirectoryItem;(z=z||this._hasValidKeys(v)||this._hasValidKeys(D))&&(e=this._filterOutItemByPredicate(e,Q=>Q.fileItem.key===this._parentDirectoryItemKey),i=this._filterOutParentDirectory(i),r=this._filterOutParentDirectoryKey(r,!0),v=this._filterOutParentDirectoryKey(v,!0),D=this._filterOutParentDirectoryKey(D,!0),this._raiseSelectionChanged({selectedItemInfos:e,selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:v,currentDeselectedItemKeys:D}))}_onFocusedItemChanged(t){this._focusedItemKey!==t.itemKey&&(this._focusedItemKey=t.itemKey,this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",t.itemKey),this._lockFocusedItemProcessing=!1,this._raiseFocusedItemChanged(t))}_resetFocus(){}_getItemThumbnail(t){var e=this.option("getItemThumbnail");return e?e(t):{thumbnail:""}}_getItemThumbnailContainer(t){var{thumbnail:e,cssClass:i}=this._getItemThumbnail(t),r=(0,W.H)(e).addClass(this._getItemThumbnailCssClass());return i&&r.addClass(i),r}_getItemThumbnailCssClass(){return""}_getItemSelector(){}_onItemDblClick(t){}_isDesktop(){return"desktop"===x.Z.real().deviceType}_showContextMenu(t,e,i,r){this._contextMenu.showAt(t,e,i,r)}get _contextMenu(){return this.option("contextMenu")}_findParentDirectoryItem(t){for(var e=0;e<t.length;e++){var i=t[e];if(this._isParentDirectoryItem(i))return i}return null}_getFileItemsForContextMenu(t){var e=this.getSelectedItems();return this._isParentDirectoryItem(t)&&e.push(t),e}_isParentDirectoryItem(t){return t.fileItem.isParentFolder}_hasValidKeys(t){return t.length>1||1===t.length&&t[0]!==this._parentDirectoryItemKey}_filterOutParentDirectory(t,e){return this._filterOutItemByPredicate(t,i=>i.key===this._parentDirectoryItemKey,e)}_filterOutParentDirectoryKey(t,e){return this._filterOutItemByPredicate(t,i=>i===this._parentDirectoryItemKey,e)}_filterOutItemByPredicate(t,e,i){for(var r=t,v=-1,D=0;D<t.length;D++)if(e(t[D])){v=D;break}return-1!==v&&(i&&(r=[...t]),r.splice(v,1)),r}_isMultipleSelectionMode(){return"multiple"===this.option("selectionMode")}_deselectItem(t){}_setSelectedItemKeys(t){}_setFocusedItemKey(t){}_createDataSource(){return{store:new tF.Z({key:"fileItem.key",load:this._getItems.bind(this)})}}getSelectedItems(){}clearSelection(){}selectItem(){}};var iF={thumbnail:{caption:"",calculateSortValue:"isDirectory",width:36,alignment:"center",cssClass:"dx-filemanager-details-item-is-directory"},name:{caption:wn.Z.format("dxFileManager-listDetailsColumnCaptionName")},dateModified:{caption:wn.Z.format("dxFileManager-listDetailsColumnCaptionDateModified"),width:110,hidingPriority:1},size:{caption:wn.Z.format("dxFileManager-listDetailsColumnCaptionFileSize"),width:90,alignment:"right",hidingPriority:0},isParentFolder:{caption:"isParentFolder",visible:!1,sortIndex:0,sortOrder:"asc"}};const hK=class cK extends nF{_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 t=(0,u.Z)("<div>").appendTo(this.$element()),e=this._isMultipleSelectionMode()?"multiple":"none";this._filesView=this._createComponent(t,eK.Z,{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 t=this.option("detailColumns");t=(t=t.slice(0)).map(i=>{var r=i;return(0,w.HD)(i)&&(r={dataField:i}),this._getPreparedColumn(r)});var e=this.option("customizeDetailColumns");return(0,w.mf)(e)&&(t=e(t)),t.push(this._getPreparedColumn({dataField:"isParentFolder"})),t.forEach(i=>this._updateColumnDataField(i)),t}_getPreparedColumn(t){var e={},i="";if(this._isDefaultColumn(t.dataField)){var r=(0,y.l)(!0,{},iF[t.dataField]);switch(i=r.cssClass||"",t.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=wn.Z.format("dxFileManager-listDetailsColumnCaptionName");break;case"size":r.calculateCellValue=this._calculateSizeColumnCellValue.bind(this),r.caption=wn.Z.format("dxFileManager-listDetailsColumnCaptionFileSize"),r.calculateSortValue=v=>v.fileItem.isDirectory?-1:v.fileItem.size;break;case"dateModified":r.caption=wn.Z.format("dxFileManager-listDetailsColumnCaptionDateModified")}(0,y.l)(!0,e,r)}return k0(e,t,["alignment","caption","dataField","dataType","hidingPriority","sortIndex","sortOrder","visible","visibleIndex","width"]),t.cssClass&&(i="".concat(i," ").concat(t.cssClass)),i&&(e.cssClass=i),e}_updateColumnDataField(t){var e=this._isDefaultColumn(t.dataField)?"":"dataItem.";return t.dataField="fileItem."+e+t.dataField,t}_isDefaultColumn(t){return!!iF[t]}_onFileItemActionButtonClick(t){var{component:e,element:i,event:r}=t;r.stopPropagation();var v=e.$element().closest(this._getItemSelector()),D=v.data("item");this._selectItem(D);var A={itemData:D,itemElement:v,isActionButton:!0},z=this._getFileItemsForContextMenu(D);this._showContextMenu(z,i,r,A),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(t){var i=(0,u.Z)(t.currentTarget).data("item");this._raiseSelectedItemOpened(i)}_isAllItemsSelected(){var t=this._hasParentDirectoryItem?this._itemCount-1:this._itemCount,e=this._filesView.option("selectedRowKeys");return!!e.length&&(e.length>=t||void 0)}_onEditorPreparing(t){var{component:e,command:i,row:r,parentType:v,editorOptions:D}=t;this._filesView||(this._filesView=e),"select"===i&&r?this._isParentDirectoryItem(r.data)&&(D.disabled=!0):"headerRow"===v&&(D.onInitialized=A=>{var{component:z}=A;this._selectAllCheckBox=z},D.value=this._isAllItemsSelected(),D.onValueChanged=A=>this._onSelectAllCheckBoxValueChanged(A))}_onSelectAllCheckBoxValueChanged(t){var{event:e,previousValue:i,value:r}=t;e?this._isAllItemsSelected()!==r&&(r?this._filesView.selectAll():this._filesView.deselectAll(),e.preventDefault()):i&&!this._selectAllCheckBoxUpdating&&this._selectAllCheckBox&&this._selectAllCheckBox.option("value",i)}_onRowPrepared(t){var{rowType:e,rowElement:i,data:r}=t;if("data"===e){var v=(0,u.Z)(i);v.data("item",r),this._isParentDirectoryItem(r)&&v.addClass("dx-filemanager-parent-directory-item")}}_onContextMenuPreparing(t){if(this._isDesktop()){var e=null,i={};t.row&&"data"===t.row.rowType&&(this._selectItem(i=t.row.data),e=this._getFileItemsForContextMenu(i));var r=(0,y.l)({},{targetElement:"content"===t.target&&(0,w.$K)(t.row)?this._filesView.getRowElement(t.rowIndex):void 0,itemData:i,options:this._contextMenu.option(),event:t.event,isActionButton:!1,cancel:!1});this._raiseContextMenuShowing(r),t.items=r.cancel?[]:this._contextMenu.createContextMenuItems(e,null,i)}}_onFilesViewSelectionChanged(t){var{component:e,selectedRowsData:i,selectedRowKeys:r,currentSelectedRowKeys:v,currentDeselectedRowKeys:D}=t;this._filesView=this._filesView||e,this._selectAllCheckBox&&(this._selectAllCheckBoxUpdating=!0,this._selectAllCheckBox.option("value",this._isAllItemsSelected()),this._selectAllCheckBoxUpdating=!1);var A=i.map(z=>z.fileItem);this._tryRaiseSelectionChanged({selectedItemInfos:i,selectedItems:A,selectedItemKeys:r,currentSelectedItemKeys:v,currentDeselectedItemKeys:D})}_onFilesViewFocusedRowChanged(t){var e,i;this._isMultipleSelectionMode()||this._selectItemSingleSelection(null===(i=t.row)||void 0===i?void 0:i.data);var r=(null===(e=t.row)||void 0===e?void 0:e.data.fileItem)||null;this._onFocusedItemChanged({item:r,itemKey:r?.key,itemElement:t.rowElement})}_onFilesViewOptionChanged(t){var{fullName:e}=t;e.indexOf("sortOrder")>-1&&this._filesView.columnOption("isParentFolder",{sortOrder:"asc",sortIndex:0})}_resetFocus(){this._setFocusedItemKey(void 0)}_createThumbnailColumnCell(t,e){this._getItemThumbnailContainer(e.data).appendTo(t)}_createNameColumnCell(t,e){var i=(0,u.Z)("<div>"),r=(0,u.Z)("<span>").text(e.data.fileItem.name).addClass("dx-filemanager-details-item-name"),v=(0,u.Z)("<div>").append(r,i).addClass("dx-filemanager-details-item-name-wrapper");(0,u.Z)(t).append(v),this._createComponent(i,qB,{onClick:D=>this._onFileItemActionButtonClick(D)})}_calculateSizeColumnCellValue(t){return t.fileItem.isDirectory?"":zB(t.fileItem.size)}_selectItem(t){(this._isMultipleSelectionMode()?this._selectItemMultipleSelection:this._selectItemSingleSelection).call(this,t)}_deselectItem(t){this._filesView.deselectRows([t.fileItem.key])}_selectItemSingleSelection(t){if(!this._focusedItem||!t||this._focusedItem.fileItem.key!==t.fileItem.key){var e=this._focusedItem;this._focusedItem=t;var i=[];e&&i.push(e.fileItem.key);var r=[],v=[];t&&!this._isParentDirectoryItem(t)&&(r.push(t.fileItem),v.push(t.fileItem.key)),this._raiseSelectionChanged({selectedItems:r,selectedItemKeys:v,currentSelectedItemKeys:[...v],currentDeselectedItemKeys:i})}}_selectItemMultipleSelection(t){var{fileItem:e}=t;if(!this._filesView.isRowSelected(e.key)){var r=this._filesView.getController("selection").isSelectionWithCheckboxes();this._filesView.selectRows([e.key],r)}}_setSelectedItemKeys(t){this._filesView.option("selectedRowKeys",t)}_setFocusedItemKey(t){var e;null===(e=this._filesView)||void 0===e||e.option("focusedRowKey",t)}clearSelection(){this._isMultipleSelectionMode()?this._filesView.clearSelection():this._filesView.option("focusedRowIndex",-1)}refresh(t){var e={dataSource:this._createDataSource()};return t&&Object.prototype.hasOwnProperty.call(t,"focusedItemKey")&&((0,w.$K)(t.focusedItemKey)?e.focusedRowKey=t.focusedItemKey:e.focusedRowIndex=-1),this._filesView.option(e),this._refreshDeferred=new P.BH,this._refreshDeferred.promise()}getSelectedItems(){return this._isMultipleSelectionMode()?this._filesView.getSelectedRowsData():this._focusedItem&&!this._isParentDirectoryItem(this._focusedItem)?[this._focusedItem]:[]}};var rF=l(2480),pK=l(5180),Ab=l(7307),gK=l(7398),oF=(0,k.V4)(pK.Z.name,"dxFileManagerThumbnailsListBox");class wK{constructor(t,e,i,r){this._layoutModel=null,this._scrollView=t,this._$viewPort=e,this._$itemContainer=i,this._$item=r}updateItems(t){this._$item=t}reset(){this._layoutModel=null}getLayoutModel(){return this._layoutModel||(this._layoutModel=this._createLayoutModel()),this._layoutModel}_createLayoutModel(){if(!this._$item)return null;var t=(0,s.Y_)(this._$item,!0);if(0===t)return null;var e=(0,s.zp)(this._$item,!0),i=(0,s.Xt)(this._$itemContainer),r=(0,s.fA)(this._$viewPort),v=this._scrollView.scrollTop();return{itemWidth:t,itemHeight:e,viewPortWidth:i,viewPortHeight:r,viewPortScrollTop:v,viewPortScrollBottom:v+r,itemPerRowCount:Math.floor(i/t),rowPerPageRate:r/e}}createItemLayoutModel(t){var e=this.getLayoutModel();if(!e)return null;var i=Math.floor(t/e.itemPerRowCount),v=i*e.itemHeight;return{itemRowIndex:i,itemColumnIndex:t%e.itemPerRowCount,itemTop:v,itemBottom:v+e.itemHeight}}scrollToItem(t){var e=this.getLayoutModel();if(e){var r=Math.floor(t/e.itemPerRowCount)*e.itemHeight,v=r+e.itemHeight,D=e.viewPortScrollTop;r<e.viewPortScrollTop?D=r:v>e.viewPortScrollBottom&&(D=v-e.viewPortHeight),this._scrollView.scrollTo(D)}}}const EK=class bK extends Ab.Z{_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 wK(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 B.c(function(t,e,i){var r=this._getDefaultItemTemplate(i,t);t.append(r)}.bind(this),["fileItem"],this.option("integrationOptions.watchMethod"))})}_createScrollViewControl(){this._scrollView||(this._scrollView=this._createComponent(this._$scrollView,Ef.Z,{scrollByContent:!0,scrollByThumb:!0,useKeyboard:!1,showScrollbar:"onHover"}))}_renderScrollView(){this._$scrollView||(this._$scrollView=(0,u.Z)("<div>").appendTo(this.$element()))}_renderItemsContainer(){this._$itemContainer||(this._$itemContainer=(0,u.Z)("<div>").addClass("dx-filemanager-thumbnails-container").appendTo(this._$scrollView))}_render(){super._render(),this._detachEventHandlers(),this._attachEventHandlers()}_clean(){this._detachEventHandlers(),super._clean()}_supportedKeys(){return(0,y.l)(super._supportedKeys(),{upArrow(t){this._beforeKeyProcessing(t),this._processArrowKeys(-1,!1,t)},downArrow(t){this._beforeKeyProcessing(t),this._processArrowKeys(1,!1,t)},home(t){this._beforeKeyProcessing(t),this._processHomeEndKeys(0,!0,t)},end(t){this._beforeKeyProcessing(t),this._processHomeEndKeys(this._getItemsLength()-1,!0,t)},pageUp(t){this._beforeKeyProcessing(t),this._processPageChange(!0,t)},pageDown(t){this._beforeKeyProcessing(t),this._processPageChange(!1,t)},enter(t){this._beforeKeyProcessing(t),this._actions.onItemEnterKeyPressed(this._getFocusedItem())},A(t){this._beforeKeyProcessing(t),(0,k.j1)(t)&&this.selectAll()}})}_beforeKeyProcessing(t){t.preventDefault(),this._layoutUtils.reset()}_processArrowKeys(t,e,i){var r=this._getFocusedItem();if(r){if(!e){var v=this._layoutUtils.getLayoutModel();if(!v)return;t*=v.itemPerRowCount}var D=this._getIndexByItem(r)+t;this._focusItemByIndex(D,!0,i)}}_processHomeEndKeys(t,e,i){this._focusItemByIndex(t,e,i)}_processPageChange(t,e){var i=this._getFocusedItem();if(i){var r=this._layoutUtils.getLayoutModel();if(r){var v=this._layoutUtils.createItemLayoutModel(this._getIndexByItem(i)),ue=(t?Math.ceil:Math.floor)(v.itemRowIndex-(t?r.rowPerPageRate:-r.rowPerPageRate))*r.itemPerRowCount+v.itemColumnIndex;ue<0?ue=0:ue>=this._getItemsLength()&&(ue=this._getItemsLength()-1),this._focusItemByIndex(ue,!0,e)}}}_processLongTap(t){var e=this._closestItemElement((0,u.Z)(t.target)),i=this._getIndexByItemElement(e);this._selection.changeItemSelection(i,{control:!0})}_attachEventHandlers(){"multiple"===this.option("selectionMode")&&d.Z.on(this._itemContainer(),oF,".".concat(this._itemContentClass()),t=>{this._processLongTap(t),t.stopPropagation()}),d.Z.on(this._itemContainer(),"mousedown selectstart",t=>{t.shiftKey&&t.preventDefault()})}_detachEventHandlers(){d.Z.off(this._itemContainer(),oF),d.Z.off(this._itemContainer(),"mousedown selectstart")}_itemContainer(){return this._$itemContainer}_itemClass(){return"dx-filemanager-thumbnails-item"}_itemDataKey(){return"dxFileManagerItemData"}_getDefaultItemTemplate(t,e){e.attr("title",this._getTooltipText(t));var i=this._itemThumbnailTemplate(t),r=(0,u.Z)("<div>").addClass("dx-filemanager-thumbnails-item-spacer"),v=(0,u.Z)("<div>").addClass("dx-filemanager-thumbnails-item-name").text(t.fileItem.name);e.append(i,r,v)}_itemSelectHandler(t){var e={};"multiple"===this.option("selectionMode")&&(this._isPreserveSelectionMode||(this._isPreserveSelectionMode=(0,k.j1)(t)||t.shiftKey),e={control:this._isPreserveSelectionMode,shift:t.shiftKey});var i=this._getIndexByItemElement(t.currentTarget);this._selection.changeItemSelection(i,e)}_initSelectionModule(){super._initSelectionModule();var t=(0,y.l)(this._selection.options,{selectedKeys:this.option("selectedItemKeys"),onSelectionChanged:e=>{this.option("selectedItems",this._getItemsByKeys(e.selectedItemKeys,e.selectedItems)),this._updateSelectedItems(e)}});this._selection=new gK.Z(t)}_updateSelectedItems(t){var e=t.addedItemKeys,i=t.removedItemKeys;if(this._rendered&&(e.length||i.length)){var r=this._selectionChangePromise;if(!this._rendering){var D,v=[],A=[];this._editStrategy.beginCache();for(var z=0;z<i.length;z++)D=this._getIndexByKey(i[z]),A.push(D),this._removeSelection(D);for(var Q=0;Q<e.length;Q++)D=this._getIndexByKey(e[Q]),v.push(D),this._addSelection(D);this._editStrategy.endCache(),this._updateSelection(v,A)}(0,P.gx)(r).done(()=>this._fireSelectionChangeEvent(t))}}_fireSelectionChangeEvent(t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})(t)}_updateSelection(t,e){0===this.getSelectedItems().length&&(this._isPreserveSelectionMode=!1)}_normalizeSelectedItems(){var t=this._getKeysByItems(this.option("selectedItems")),e=this._selection.getSelectedItemKeys();return this._compareKeys(e,t)||this._selection.setSelection(t),(new P.BH).resolve().promise()}_focusOutHandler(){}_getItems(){return this.option("items")||[]}_getItemsLength(){return this._getItems().length}_getIndexByItemElement(t){return this._editStrategy.getNormalizedIndex(t)}_getItemByIndex(t){return this._getItems()[t]}_getFocusedItem(){return this.getItemByItemElement(this.option("focusedElement"))}_focusItem(t,e){this.option("focusedElement",this.getItemElementByItem(t)),e&&this._layoutUtils.scrollToItem(this._getIndexByItem(t))}_focusItemByIndex(t,e,i){if(t>=0&&t<this._getItemsLength()){var r=this._getItemByIndex(t);this._focusItem(r,e,i)}}_syncFocusedItemKey(){this._syncFocusedItemKeyDeferred||(this._syncFocusedItemKeyDeferred=new P.BH);var t=this._syncFocusedItemKeyDeferred;if(this._dataSource&&this._dataSource.isLoading())return t.promise();var e=this.option("focusedItemKey");if((0,w.$K)(e)){var r=this.option("items").find(v=>this.keyOf(v)===e);r?(this._focusItem(r,!0),t.resolve()):(this.option("focusedItemKey",void 0),t.reject())}else t.resolve();return this._syncFocusedItemKeyDeferred=null,t.promise()}_onFocusedItemChanged(){var t=this._getFocusedItem(),e=this.keyOf(t);e!==this.option("focusedItemKey")&&(this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",e),this._lockFocusedItemProcessing=!1,this._raiseFocusedItemChanged(t))}_raiseFocusedItemChanged(t){var e={item:t,itemElement:this.option("focusedElement")};this._actions.onFocusedItemChanged(e)}_changeItemSelection(t,e){if(this.isItemSelected(t)!==e){var i=this.getItemElementByItem(t),r=this._getIndexByItemElement(i);this._selection.changeItemSelection(r,{control:this._isPreserveSelectionMode})}}_chooseSelectOption(){return"selectedItemKeys"}getSelectedItems(){return this._selection.getSelectedItems()}getItemElementByItem(t){return this._editStrategy.getItemElement(t)}getItemByItemElement(t){return this._getItemByIndex(this._getIndexByItemElement(t))}selectAll(){"multiple"===this.option("selectionMode")&&(this._selection.selectAll(),this._isPreserveSelectionMode=!0)}selectItem(t){this._changeItemSelection(t,!0)}deselectItem(t){this._changeItemSelection(t,!1)}clearSelection(){this._selection.deselectAll()}_optionChanged(t){switch(t.name){case"items":this._layoutUtils&&this._layoutUtils.updateItems(this.itemElements().first()),super._optionChanged(t);break;case"focusedItemKey":if(this._lockFocusedItemProcessing)break;(0,w.$K)(t.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[t.name]=this._createActionByOption(t.name);break;default:super._optionChanged(t)}}},MK=class IK extends nF{_initMarkup(){super._initMarkup(),this.$element().addClass("dx-filemanager-thumbnails");var t=(0,k.V4)(rF.u,"dxFileManager_thumbnails");d.Z.on(this.$element(),t,this._onContextMenu.bind(this)),this._createItemList()}_createItemList(){var t=this._isMultipleSelectionMode()?"multiple":"single",e=(0,u.Z)("<div>").appendTo(this.$element());this._itemList=this._createComponent(e,EK,{dataSource:this._createDataSource(),selectionMode:t,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(t){if(t.preventDefault(),t.stopPropagation(),this._isDesktop()){var e=null,i=(0,u.Z)(t.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,t.target,t,{itemData:r,itemElement:i.length?i:void 0})}}_getItemThumbnailCssClass(){return"dx-filemanager-thumbnails-item-thumbnail"}_getItemSelector(){return".".concat("dx-filemanager-thumbnails-item")}_getTooltipText(t){var e=t.fileItem;if(e.tooltipText)return e.tooltipText;var i="".concat(e.name,"\r\n");return e.isDirectory||(i+="".concat(wn.Z.format("dxFileManager-listThumbnailsTooltipTextSize"),": ").concat(zB(e.size),"\r\n")),i+"".concat(wn.Z.format("dxFileManager-listThumbnailsTooltipTextDateModified"),": ").concat(e.dateModified)}_onItemDblClick(t){var e=(0,u.Z)(t.currentTarget),i=this._itemList.getItemByItemElement(e);this._tryOpen(i)}_tryOpen(t){t&&this._raiseSelectedItemOpened(t)}_getItemsInternal(){return super._getItemsInternal().then(t=>{var e=new P.BH;return setTimeout(()=>e.resolve(t)),e.promise()})}_disableDragging(){return!1}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{focusStateEnabled:!0})}_onItemListSelectionChanged(t){var{addedItemKeys:e,removedItemKeys:i}=t,r=this.getSelectedItems(),v=r.map(A=>A.fileItem),D=v.map(A=>A.key);this._tryRaiseSelectionChanged({selectedItemInfos:r,selectedItems:v,selectedItemKeys:D,currentSelectedItemKeys:e,currentDeselectedItemKeys:i})}_onItemListFocusedItemChanged(t){var{item:e,itemElement:i}=t;this._isMultipleSelectionMode()||this._selectItemSingleSelection(e);var r=e?.fileItem||null;this._onFocusedItemChanged({item:r,itemKey:r?.key,itemElement:i||void 0})}_setSelectedItemKeys(t){this._itemList.option("selectedItemKeys",t)}_setFocusedItemKey(t){this._itemList.option("focusedItemKey",t)}refresh(t){var e={dataSource:this._createDataSource()};return t&&Object.prototype.hasOwnProperty.call(t,"focusedItemKey")&&(e.focusedItemKey=t.focusedItemKey),t&&Object.prototype.hasOwnProperty.call(t,"selectedItemKeys")&&(e.selectedItemKeys=t.selectedItemKeys),this._itemList.option(e),this._refreshDeferred=new P.BH,this._refreshDeferred.promise()}_deselectItem(t){var e=this._itemList.getItemElementByItem(t);this._itemList.unselectItem(e)}_selectItemSingleSelection(t){t?this._itemList.selectItem(t):this._itemList.clearSelection()}clearSelection(){this._itemList.clearSelection()}getSelectedItems(){return this._itemList.getSelectedItems()}};var aD="dx-filemanager-toolbar",aF="dx-filemanager-general-toolbar",PK=aD+"-separator-item",kK=aD+"-viewmode-item",sF={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:aD+"-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"}},BK=["visible","location","locateInMenu","disabled","showText"],FK=["accessKey","elementAttr","height","hint","icon","stylingMode","tabIndex","text","width"],VK=["separator","switchView"],lF={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 zK=class HK extends sa.Z{_init(){super._init(),this._generalToolbarVisible=!0,this._refreshItemState={message:"",status:"default"}}_initMarkup(){this._createItemClickedAction(),this._$viewSwitcherPopup=(0,u.Z)("<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(aD+" "+aF)}_render(){super._render();var t=this._getVisibleToolbar();this._checkCompactMode(t)}_clean(){delete this._commandManager,delete this._itemClickedAction,delete this._$viewSwitcherPopup,delete this._generalToolbar,delete this._fileToolbar,super._clean()}_dimensionChanged(t){if(!t||"height"!==t){var e=this._getVisibleToolbar();this._checkCompactMode(e)}}_getVisibleToolbar(){return this._generalToolbarVisible?this._generalToolbar:this._fileToolbar}_createToolbar(t,e){var i=this._getPreparedItems(t),r=(0,u.Z)("<div>").appendTo(this.$element()),v=this._createComponent(r,Sb.Z,{items:i,visible:!e,onItemClick:D=>this._raiseItemClicked(D)});return v.compactMode=!1,v}_getPreparedItems(t){return t=t.map(e=>{var i=e;(0,w.HD)(e)&&(i={name:e});var r=i.name,v=this._configureItemByCommandName(r,i);return v.originalItemData=e,"separator"!==r&&this._setItemVisibleAvailable(v),v}),this._updateSeparatorsVisibility(t),t}_updateSeparatorsVisibility(t,e){var i=!1,r=this._getMenuItems(e),v={before:!1,center:!1,after:!1},D={before:this._getItemsInGroup(t,r,"before"),center:this._getItemsInGroup(t,r,"center"),after:this._getItemsInGroup(t,r,"after")};return t.forEach((A,z)=>{var Q=A.location;if("separator"===A.name){var ue=v[Q]&&this._groupHasItemsAfter(D[Q]);A.visible!==ue&&(i=!0,A.visible=ue),v[Q]=!1}else this._isItemInMenu(r,A)||(v[Q]=v[Q]||A.visible),D[Q].shift()}),e&&i&&e.repaint(),i}_getMenuItems(t){return(t?t._getMenuItems():[]).map(i=>i.originalItemData)}_isItemInMenu(t,e){return!!t.length&&"never"!==(0,E.IS)(e.locateInMenu,"never")&&-1!==t.indexOf(e.originalItemData)}_getItemsInGroup(t,e,i){return t.filter(r=>r.location===i&&!this._isItemInMenu(e,r))}_groupHasItemsAfter(t){for(var e=0;e<t.length;e++)if("separator"!==t[e].name&&t[e].visible)return!0;return!1}_configureItemByCommandName(t,e){var i,r={},v=this._commandManager.getCommandByName(t);switch(v&&(r=this._createCommandItem(v)),t){case"separator":r=this._createSeparatorItem();break;case"switchView":r=this._createViewModeItem()}if(this._isDefaultItem(t)){(0,y.l)(!0,r,sF[t]);var A=r.cssClass||"";k0(r,e,BK),(0,w.$K)(e.options)&&k0(r.options,e.options,FK),k0(r.options,e,["text","icon"]),e.cssClass&&(A="".concat(A," ").concat(e.cssClass)),A&&(r.cssClass=A),(0,w.$K)(e.visible)||(r._autoHide=!0),"dxButton"===r.widget&&("inMenu"===r.showText&&!(0,w.$K)(r.options.hint)&&(r.options.hint=r.options.text),r.compactMode&&!(0,w.$K)(r.options.hint)&&this._configureHintForCompactMode(r))}else(0,y.l)(!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 t&&!r.name&&(0,y.l)(r,{name:t}),r.location=(0,E.IS)(r.location,"before"),(0,w.$K)(null===(i=r.options)||void 0===i?void 0:i.stylingMode)||("dxButton"===r.widget&&(0,y.l)(!0,r,{options:{stylingMode:"text"}}),"dxSelectBox"===r.widget&&(0,y.l)(!0,r,{options:{stylingMode:"filled"}})),r}_isDefaultItem(t){return!!sF[t]}_createCommandItem(t){return{widget:"dxButton",options:{text:t.text,hint:t.hint,commandText:t.text,icon:t.icon,stylingMode:"text",onClick:e=>this._executeCommand(t)}}}_createSeparatorItem(){return{template:(t,e,i)=>{(0,u.Z)(i).addClass(PK)}}}_createViewModeItem(){var t=["details","thumbnails"].map(i=>{var{text:r,icon:v}=this._commandManager.getCommandByName(i);return{name:i,text:r,icon:v}}),e="thumbnails"===this.option("itemViewMode")?1:0;return{cssClass:kK,widget:"dxDropDownButton",options:{items:t,keyExpr:"name",selectedItemKey:this.option("itemViewMode"),displayExpr:" ",hint:t[e].text,stylingMode:"text",showArrowIcon:!1,useSelectMode:!0,dropDownOptions:{container:this._$viewSwitcherPopup},onItemClick:i=>this._executeCommand(i.itemData.name)}}}_configureHintForCompactMode(t){t.options.hint="",t.compactMode.options=t.compactMode.options||{},t.compactMode.options.hint=t.options.text}_checkCompactMode(t){t.compactMode&&this._toggleCompactMode(t,!1);var e=this._toolbarHasItemsOverflow(t);t.compactMode!==e?(t.compactMode||this._toggleCompactMode(t,e),t.compactMode=e):t.compactMode&&this._toggleCompactMode(t,!0)}_toolbarHasItemsOverflow(t){return(0,s.dz)(t.$element())<t._getItemsWidth()}_toggleCompactMode(t,e){var i=!1,r=t.option("items");r.forEach(v=>{if(v.compactMode){var D=null;e?(v.saved=this._getCompactModeOptions(v,v._available),D=v.compactMode):D=v.saved;var A=this._getCompactModeOptions(D,v._available);(0,y.l)(!0,v,A),i=!0}}),(i=this._updateSeparatorsVisibility(r)||i)&&t.repaint(),this._updateSeparatorsVisibility(r,t)}_getCompactModeOptions(t,e){var{showText:i,locateInMenu:r,options:v}=t;return{visible:e,showText:(0,E.IS)(i,"always"),locateInMenu:(0,E.IS)(r,"never"),options:{hint:v?.hint}}}_ensureAvailableCommandsVisible(t){var e=!1,i=t.option("items");i.forEach(r=>{if("separator"!==r.name){var v=r._available;this._setItemVisibleAvailable(r),r._available!==v&&(e=!0)}}),(e=this._updateSeparatorsVisibility(i)||e)&&t.repaint(),this._updateSeparatorsVisibility(i,t)}_setItemVisibleAvailable(t){var e,i=null===(e=t.originalItemData)||void 0===e?void 0:e.visible;t._available=this._isToolbarItemAvailable(t),t.visible=(0,w.$K)(i)?i:t._available}_fileToolbarHasEffectiveItems(){return this._fileToolbar.option("items").some(e=>this._isFileToolbarItemAvailable(e))}_executeCommand(t){this._commandManager.executeCommand(t)}_isToolbarItemAvailable(t){return this._isDefaultItem(t.name)&&t._autoHide?"refresh"===t.name?this._generalToolbarVisible||!!this._isRefreshVisibleInFileToolbar:VK.indexOf(t.name)>-1||this._isCommandAvailable(t.name):(0,E.IS)(t.visible,!0)}_isFileToolbarItemAvailable(t){var{name:e,visible:i}=t;return!this._isDefaultItem(e)&&(0,E.IS)(i,!0)||"clearSelection"!==e&&"refresh"!==e&&this._isCommandAvailable(e)}_isCommandAvailable(t){return this._commandManager.isCommandAvailable(t,this.option("contextItems"))}_updateItemInToolbar(t,e,i){t.beginUpdate();for(var r=t.option("items"),v=0;v<r.length;v++)if(r[v].name===e){t.option("items[".concat(v,"]"),i);break}t.endUpdate()}_raiseItemClicked(t){var e=(0,y.l)(!0,{},t);e.itemData=t.itemData.originalItemData,this._itemClickedAction(e)}_createItemClickedAction(){this._itemClickedAction=this._createActionByOption("onItemClick")}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{commandManager:null,generalItems:[],fileItems:[],contextItems:[],itemViewMode:"details",onItemClick:null})}_optionChanged(t){var e=t.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(t)}}updateItemPermissions(){this.repaint(),this._restoreRefreshItemState()}_restoreRefreshItemState(){this.updateRefreshItem(this._refreshItemState.message,this._refreshItemState.status)}updateRefreshItem(t,e){var i=null,r=wn.Z.format("dxFileManager-commandRefresh"),v="inMenu";this._isRefreshVisibleInFileToolbar=!1,this._refreshItemState={message:t,status:e},"default"===e?i={options:{icon:lF.default}}:(i={options:{icon:lF[e]}},this._isRefreshVisibleInFileToolbar=!0,r=t,v="always");var D=(0,y.l)({},i,{visible:this._isRefreshVisibleInFileToolbar});this._applyRefreshItemOptions(i,D),this._refreshItemTextTimeout=this._updateRefreshItemText("progress"===e,r,v)}_updateRefreshItemText(t,e,i){var r={showText:i,options:{text:e}};if(t)return setTimeout(()=>{this._applyRefreshItemOptions(r),this._refreshItemTextTimeout=void 0},500);this._refreshItemTextTimeout&&clearTimeout(this._refreshItemTextTimeout),this._applyRefreshItemOptions(r)}_applyRefreshItemOptions(t,e){e||(e=(0,y.l)({},t)),this._updateItemInToolbar(this._generalToolbar,"refresh",t),this._updateItemInToolbar(this._fileToolbar,"refresh",e)}_update(){var t=0===this.option("contextItems").length||!this._fileToolbarHasEffectiveItems();this._generalToolbarVisible!==t&&(this._generalToolbar.option("visible",t),this._fileToolbar.option("visible",!t),this._generalToolbarVisible=t,this.$element().toggleClass(aF,t),this.$element().toggleClass("dx-filemanager-file-toolbar",!t));var e=this._getVisibleToolbar();this._ensureAvailableCommandsVisible(e),this._checkCompactMode(e)}get _commandManager(){return this.option("commandManager")}};var uF=l(4026),pc="dx-filemanager-progress-panel",WK="".concat(pc,"-container"),UK="".concat(pc,"-title"),ZK="".concat(pc,"-title-text"),KK="".concat(pc,"-close-button"),GK="".concat(pc,"-infos-container"),dF="".concat(pc,"-separator"),jK="".concat(pc,"-info"),$K="".concat(pc,"-common"),YK="".concat(pc,"-info-with-details"),XK="".concat(pc,"-details"),Of="dx-filemanager-progress-box",qK="".concat(Of,"-error"),cF="".concat(Of,"-without-close-button"),JK="".concat(Of,"-image"),QK="".concat(Of,"-wrapper"),eG="".concat(Of,"-common"),tG="".concat(Of,"-progress-bar"),nG="".concat(Of,"-close-button");const oG=class rG extends sa.Z{_initMarkup(){super._initMarkup(),this._initActions(),this._operationCount=0,this.$element().addClass(pc);var t=(0,u.Z)("<div>").appendTo(this.$element()),e=(0,u.Z)("<div>").addClass(WK).appendTo(t);this._scrollView=this._createComponent(t,Ef.Z,{scrollByContent:!0,scrollByThumb:!0,showScrollbar:"onScroll"});var i=(0,u.Z)("<div>").addClass(UK).appendTo(e);(0,u.Z)("<div>").text(wn.Z.format("dxFileManager-notificationProgressPanelTitle")).addClass(ZK).appendTo(i);var r=(0,u.Z)("<div>").addClass(KK).appendTo(i);this._createComponent(r,Jv.Z,{icon:"close",stylingMode:"text",onClick:()=>this._raisePanelClosed()}),this._$infosContainer=(0,u.Z)("<div>").addClass(GK).appendTo(e),this._renderEmptyListText()}_getDefaultOptions(){return(0,y.l)(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(t){var e=t.name;switch(e){case"test":break;case"onOperationClosed":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}addOperation(t,e,i){this._operationCount?(0,u.Z)("<div>").addClass(dF).prependTo(this._$infosContainer):this._$infosContainer.empty(),this._operationCount++;var r={customCloseHandling:e,allowProgressAutoUpdate:(0,E.IS)(i,!0)},v=(0,u.Z)("<div>").addClass(jK).prependTo(this._$infosContainer);r.$info=v;var D=(0,u.Z)("<div>").addClass($K).appendTo(v);return r.common=this._createProgressBox(D,{commonText:t,showCloseButton:!0,showCloseButtonAlways:e,onCloseButtonClick:()=>this._closeOperation(r)}),r}addOperationDetails(t,e,i){t.$info.addClass(YK);var r=(0,u.Z)("<div>").addClass(XK).appendTo(t.$info);t.details=e.map((v,D)=>(v.info=t,this._createDetailsItem(r,v,D,!1,i)))}_createDetailsItem(t,e,i,r,v){var D=(0,u.Z)("<div>").appendTo(t);return-1!==i&&D.addClass("dx-card"),this._createProgressBox(D,{commonText:e.commonText,imageUrl:e.imageUrl,skipProgressBox:r,showCloseButton:v,showCloseButtonAlways:v,onCloseButtonClick:()=>this._cancelOperationItem(e,i)})}completeOperationItem(t,e,i){t.allowProgressAutoUpdate&&this.updateOperationItemProgress(t,e,100,i),this._setCloseButtonVisible(t.details[e],!1)}updateOperationItemProgress(t,e,i,r){this.updateOperationCommonProgress(t,r),t.details&&t.details[e].progressBar.option("value",i)}updateOperationCommonProgress(t,e){var i;null===(i=t.common.progressBar)||void 0===i||i.option("value",e)}completeOperation(t,e,i,r){t.completed=!0,t.common.$commonText.text(e),i?this._removeProgressBar(t.common):t.allowProgressAutoUpdate&&this.updateOperationCommonProgress(t,100),r&&this._setProgressBarText(t.common,r),this._setCloseButtonVisible(t.common,!0)}completeSingleOperationWithError(t,e){var i,r=null===(i=t.details)||void 0===i?void 0:i[0];t.completed=!0,this._renderOperationError(r||t.common,e),this._setCloseButtonVisible(t.common,!0),r&&this._setCloseButtonVisible(r,!1)}addOperationDetailsError(t,e,i){var r=t.details[e];this._renderOperationError(r,i),this._setCloseButtonVisible(r,!1)}_renderError(t,e,i){(0,u.Z)("<div>").text(i).addClass(qK).appendTo(t)}_renderEmptyListText(){this._$infosContainer.text(wn.Z.format("dxFileManager-notificationProgressPanelEmptyListText"))}_renderOperationError(t,e){this._removeProgressBar(t),this._renderError(t.$wrapper,t.$commonText,e)}_removeProgressBar(t){t.progressBar&&(t.progressBar.dispose(),t.progressBar.$element().remove(),t.progressBar=null)}_createProgressBox(t,e){t.addClass(Of),e.showCloseButtonAlways||t.addClass(cF),e.imageUrl&&(0,W.H)(e.imageUrl).addClass(JK).appendTo(t);var i=(0,u.Z)("<div>").addClass(QK).appendTo(t),r=(0,u.Z)("<div>").addClass(eG).text(e.commonText).appendTo(i),v=null;if(!e.skipProgressBox){var D=(0,u.Z)("<div>").addClass(tG).appendTo(i);v=this._createComponent(D,uF.Z,{min:0,max:100,width:"100%",validationMessageMode:"always",statusFormat:(Q,ue)=>this._getStatusString(Q,ue)})}var A=null;if(e.showCloseButton){var z=(0,u.Z)("<div>").addClass(nG).appendTo(t);A=this._createComponent(z,Jv.Z,{icon:"dx-filemanager-i dx-filemanager-i-cancel",stylingMode:"text",visible:e.showCloseButtonAlways,onClick:e.onCloseButtonClick})}return{$commonText:r,progressBar:v,$element:t,$wrapper:i,closeButton:A}}_setCloseButtonVisible(t,e){t.closeButton&&(t.$element.toggleClass(cF,!e),t.closeButton.option("visible",e))}_setProgressBarText(t,e){t.progressBar.option("statusFormat",()=>e)}_closeOperation(t){t.customCloseHandling&&!t.completed?(this._raiseOperationCanceled(t),this._setCloseButtonVisible(t.common,!1),t.details.forEach(e=>this._displayClosedOperationItem(e))):(this._raiseOperationClosed(t),t.$info.next(".".concat(dF)).remove(),t.$info.remove(),this._operationCount--,this._operationCount||this._renderEmptyListText())}_cancelOperationItem(t,e){this._raiseOperationItemCanceled(t,e),this._displayClosedOperationItem(t.info.details[e])}_displayClosedOperationItem(t){this._setProgressBarText(t,wn.Z.format("dxFileManager-notificationProgressPanelOperationCanceled")),this._setCloseButtonVisible(t,!1)}_getStatusString(t,e){return 1===t?wn.Z.format("Done"):Math.round(100*t)+"%"}_raiseOperationClosed(t){this._actions.onOperationClosed({info:t})}_raiseOperationCanceled(t){this._actions.onOperationCanceled({info:t})}_raiseOperationItemCanceled(t,e){this._actions.onOperationItemCanceled({item:t,itemIndex:e})}_raisePanelClosed(){this._actions.onPanelClosed()}};var Pb="dx-filemanager-progress-box",aG="".concat(Pb,"-error"),sG="".concat(Pb,"-image"),lG="".concat(Pb,"-wrapper"),uG="".concat(Pb,"-common"),AA="__operationInfoManager";class hF{constructor(t){var{onActionProgressStatusChanged:e,isActual:i}=t;this._id=(new vh.Z).toString(),this._isActual=i||!1,this._actionProgressStatus="default",this._raiseActionProgress=e}getId(){return this._id}isActual(){return this._isActual}createErrorDetailsProgressBox(t,e,i){var r=this._createDetailsItem(t,e);this.renderError(r.$wrapper,i)}renderError(t,e){(0,u.Z)("<div>").text(e).addClass(aG).appendTo(t)}isActionProgressStatusDefault(){return"default"===this._actionProgressStatus}_createDetailsItem(t,e){var i=(0,u.Z)("<div>").appendTo(t);return this._createProgressBox(i,{commonText:e.commonText,imageUrl:e.imageUrl})}_createProgressBox(t,e){t.addClass(Pb),e.imageUrl&&(0,W.H)(e.imageUrl).addClass(sG).appendTo(t);var i=(0,u.Z)("<div>").addClass(lG).appendTo(t);return{$commonText:(0,u.Z)("<div>").addClass(uG).text(e.commonText).appendTo(i),$element:t,$wrapper:i}}}class dG extends hF{addOperation(){return{[AA]:this._id}}addOperationDetails(){}updateOperationItemProgress(){}completeOperationItem(){}completeOperation(){}completeSingleOperationWithError(){}addOperationDetailsError(){}handleDimensionChanged(){return!1}ensureProgressPanelCreated(){}tryHideActionProgress(){this._updateActionProgress("","default")}updateActionProgressStatus(){this._updateActionProgress("","default")}_updateActionProgress(t,e){"default"!==e&&"progress"!==e||(this._actionProgressStatus=e,this._raiseActionProgress(t,e))}hasNoOperations(){return!0}get _operationInProgressCount(){return 0}set _operationInProgressCount(t){}get _failedOperationCount(){return 0}set _failedOperationCount(t){}}class cG extends hF{constructor(t){super(t),this._failedOperationCount=0,this._operationInProgressCount=0}addOperation(t,e,i){this._operationInProgressCount++;var r=this._progressPanel.addOperation(t,e,i);return r[AA]=this._id,this._updateActionProgress(t,"progress"),r}addOperationDetails(t,e,i){this._progressPanel.addOperationDetails(t,e,i)}updateOperationItemProgress(t,e,i,r){this._progressPanel.updateOperationItemProgress(t,e,i,r)}completeOperationItem(t,e,i){this._progressPanel.completeOperationItem(t,e,i)}finishOperation(t,e){this._progressPanel.updateOperationCommonProgress(t,e)}completeOperation(t,e,i,r){this._operationInProgressCount--,i&&this._failedOperationCount++,this._progressPanel.completeOperation(t,e,i,r)}completeSingleOperationWithError(t,e){this._progressPanel.completeSingleOperationWithError(t,e.detailErrorText),this._notifyError(e)}addOperationDetailsError(t,e){this._progressPanel.addOperationDetailsError(t,e.itemIndex,e.detailErrorText),this._notifyError(e)}handleDimensionChanged(){return this._progressPanel&&this._progressPanel.$element().detach(),!0}ensureProgressPanelCreated(t,e){if(this._progressPanel)this._progressPanel.$element().appendTo(t);else{var i=(0,u.Z)("<div>").appendTo(t),r=this._getProgressPanelComponent();this._progressPanel=new r(i,(0,y.l)({},e,{onOperationClosed:v=>{var{info:D}=v;return this._onProgressPanelOperationClosed(D)}}))}}_getProgressPanelComponent(){return oG}_onProgressPanelOperationClosed(t){t.hasError&&(this._failedOperationCount--,this.tryHideActionProgress())}tryHideActionProgress(){this.hasNoOperations()&&this._updateActionProgress("","default")}updateActionProgressStatus(t){t&&this._updateActionProgress("",0===this._failedOperationCount?"success":"error")}_notifyError(t){var e=this.hasNoOperations()?"default":"error";this._updateActionProgress(t.commonErrorText,e)}_updateActionProgress(t,e){this._actionProgressStatus=e,this._raiseActionProgress(t,e)}hasNoOperations(){return 0===this._operationInProgressCount&&0===this._failedOperationCount}get _operationInProgressCount(){return this._operationInProgressCountInternal}set _operationInProgressCount(t){this._operationInProgressCountInternal=t}get _failedOperationCount(){return this._failedOperationCountInternal}set _failedOperationCount(t){this._failedOperationCountInternal=t}}var hG=(0,fi.Jj)(),L0="dx-filemanager-notification",pF="".concat(L0,"-drawer"),gF="".concat(pF,"-panel"),gG="".concat(L0,"-popup"),fG="".concat(L0,"-popup-error"),mG="".concat(L0,"-common"),_G="".concat(L0,"-separator"),vG="".concat(L0,"-details"),yG="".concat(L0,"-common-no-item");class CG extends sa.Z{_initMarkup(){super._initMarkup(),this._initActions(),this._isInAdaptiveState=this._isSmallScreen(),this._managerMap={},this._notificationManagerStubId=null,this._setNotificationManager();var t=this.option("progressPanelContainer"),e=(0,u.Z)("<div>").addClass(pF).appendTo(t);(0,u.Z)("<div>").addClass(gF).appendTo(e);var i=(0,y.l)({opened:!1,position:"right",template:D=>this._ensureProgressPanelCreated(D)},this._getProgressDrawerAdaptiveOptions());this._progressDrawer=this._createComponent(e,OA,i);var r=e.find(".".concat(gF)).first(),v=this.option("contentTemplate");(0,w.mf)(v)&&v(r,this)}_setNotificationManager(t){if(t=(0,y.l)({onActionProgressStatusChanged:this._raiseActionProgress.bind(this)},t),!this._notificationManagerStubId){var e=new dG(t);this._notificationManagerStubId=e.getId(),this._managerMap[this._notificationManagerStubId]=e}if(!this._isProgressDrawerDisabled()){var i=this._getProgressManagerComponent();t.isActual=!0;var r=new i(t);this._managerMap[r.getId()]=r}}_getNotificationManager(t){var e=t?.[AA]||this._getActualNotificationManagerId();return this._managerMap[e]||this._managerMap[this._notificationManagerStubId]}_clearManagerMap(){var t=this._managerMap[this._notificationManagerStubId];delete this._managerMap,this._managerMap={[this._notificationManagerStubId]:t}}_getActualNotificationManagerId(){return Object.keys(this._managerMap).filter(t=>this._managerMap[t].isActual())[0]}tryShowProgressPanel(){var t=new P.BH,e=this._getNotificationManager();return e.isActionProgressStatusDefault()||this._isProgressDrawerOpened()||this._isProgressDrawerDisabled()?t.resolve().promise():(setTimeout(()=>{this._progressDrawer.show().done(t.resolve),this._hidePopup(),e.tryHideActionProgress()}),t.promise())}addOperation(t,e,i){return this._getNotificationManager().addOperation(t,e,i)}addOperationDetails(t,e,i){this._getNotificationManager(t).addOperationDetails(t,e,i)}updateOperationItemProgress(t,e,i,r){this._getNotificationManager(t).updateOperationItemProgress(t,e,i,r)}completeOperationItem(t,e,i){this._getNotificationManager(t).completeOperationItem(t,e,i)}finishOperation(t,e){this._getNotificationManager(t).finishOperation(t,e)}completeOperation(t,e,i,r){var v=this._getNotificationManager(t);i||this._showPopup(e),v.completeOperation(t,e,i,r),this._isProgressDrawerOpened()&&v.hasNoOperations()?v.tryHideActionProgress():v.updateActionProgressStatus(t)}completeSingleOperationWithError(t,e){this._getNotificationManager(t).completeSingleOperationWithError(t,e),this._showPopupError(e)}addOperationDetailsError(t,e){this._getNotificationManager(t).addOperationDetailsError(t,e),this._showPopupError(e)}_hideProgressPanel(){setTimeout(()=>this._progressDrawer.hide())}_isSmallScreen(){return!!(0,fi.Ym)()&&(0,s.dz)(hG)<=1e3}_dimensionChanged(t){t&&"height"===t||this._checkAdaptiveState()}_checkAdaptiveState(){var t=this._isInAdaptiveState;if(this._isInAdaptiveState=this._isSmallScreen(),t!==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(t){this._getNotificationManager().ensureProgressPanelCreated(t,{onOperationCanceled:i=>{var{info:r}=i;return this._raiseOperationCanceled(r)},onOperationItemCanceled:i=>{var{item:r,itemIndex:v}=i;return this._raiseOperationItemCanceled(r,v)},onPanelClosed:()=>this._hideProgressPanel()})}_getProgressManagerComponent(){return cG}_isProgressDrawerDisabled(){return!this.option("showProgressPanel")}_isProgressDrawerOpened(){return this._progressDrawer.option("opened")}_hidePopup(t){!this.option("showNotificationPopup")&&!t||this._getNotificationPopup().hide()}_showPopup(t,e){this._isProgressDrawerOpened()||!this.option("showNotificationPopup")||(this._getNotificationPopup().$wrapper().toggleClass(fG,!!e),this._getNotificationPopup().option("contentTemplate",t),this._getNotificationPopup().option("visible")||this._getNotificationPopup().show())}_showPopupError(t){if(this.option("showNotificationPopup")){var e=this._getNotificationManager(),i=(0,u.Z)("<div>"),r=(0,u.Z)("<div>").addClass(mG).text(t.commonErrorText),v=(0,u.Z)("<div>").addClass(_G);(0,u.Z)("<div>").appendTo(v);var D=(0,u.Z)("<div>").addClass(vG);t.item?e.createErrorDetailsProgressBox(D,t.item,t.detailErrorText):(r.addClass(yG),e.renderError(D,t.detailErrorText)),i.append(r,v,D),this._showPopup(i,!0)}}_getNotificationPopup(){if(!this._notificationPopup){var t=(0,u.Z)("<div>").appendTo(this.$element());this._notificationPopup=this._createComponent(t,Tp.Z,{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:gG})}return this._notificationPopup}_raiseActionProgress(t,e){this._actions.onActionProgress({message:t,status:e})}_raiseOperationCanceled(t){this._actions.onOperationCanceled({info:t})}_raiseOperationItemCanceled(t,e){this._actions.onOperationItemCanceled({item:t,itemIndex:e})}_initActions(){this._actions={onActionProgress:this._createActionByOption("onActionProgress"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled")}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{progressPanelContainer:null,contentTemplate:null,onActionProgress:null,onOperationCanceled:null,onOperationItemCanceled:null,showProgressPanel:!0,showNotificationPopup:!0})}_optionChanged(t){var e=t.name;switch(e){case"progressPanelContainer":case"contentTemplate":break;case"showProgressPanel":this._setNotificationManager(),this._getNotificationManager().updateActionProgressStatus(),t.value||(this._hideProgressPanel(),this._clearManagerMap()),this._progressDrawer.repaint();break;case"showNotificationPopup":t.value||this._hidePopup(!0);break;case"onActionProgress":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}}const PA=class wG extends sa.Z{_initMarkup(){var t;super._initMarkup(),this._createOnClosedAction();var e=this._getDialogOptions(),i=(0,u.Z)("<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:wn.Z.format("dxFileManager-dialogButtonCancel"),onClick:this._closeDialog.bind(this)}}],onInitialized:v=>{var{component:D}=v;D.registerKeyHandler("enter",this._applyDialogChanges.bind(this))},onHidden:this._onPopupHidden.bind(this),onShown:this._onPopupShown.bind(this),_wrapperClassExternal:"".concat("dx-filemanager-dialog-popup"," ").concat(null!==(t=e.popupCssClass)&&void 0!==t?t:"")};(0,w.$K)(e.height)&&(r.height=e.height),(0,w.$K)(e.maxHeight)&&(r.maxHeight=e.maxHeight),this._popup=this._createComponent(i,Tp.Z,r)}show(){this._dialogResult=null,this._popup.show()}_getDialogOptions(){return{title:"Title",buttonText:"ButtonText",contentCssClass:"",popupCssClass:""}}_createContentTemplate(t){this._$contentElement=(0,u.Z)("<div>").appendTo(t).addClass("dx-filemanager-dialog");var e=this._getDialogOptions().contentCssClass;e&&this._$contentElement.addClass(e)}_getDialogResult(){return null}_applyDialogChanges(){var t=this._getDialogResult();t&&(this._dialogResult=t,this._closeDialog())}_closeDialog(){this._popup.hide()}_onPopupHidden(){this._onClosedAction({dialogResult:this._dialogResult})}_onPopupShown(){}_createOnClosedAction(){this._onClosedAction=this._createActionByOption("onClosed")}_setTitle(t){this._popup.option("title",t)}_setApplyButtonOptions(t){this._popup.option("toolbarItems[0].options",t)}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{onClosed:null})}_optionChanged(t){"onClosed"===t.name?this._createOnPathChangedAction():super._optionChanged(t)}},fF=class OG extends PA{show(t){t=t||"",this._nameTextBox?this._nameTextBox.option("value",t):this._initialNameValue=t,super.show()}_onPopupShown(){if(this._nameTextBox){var t=this._nameTextBox._input();t.length&&t[0].select(),this._nameTextBox.focus()}}_getDialogOptions(){return(0,y.l)(super._getDialogOptions(),{title:this.option("title"),buttonText:this.option("buttonText"),contentCssClass:"dx-filemanager-dialog-name-editor",popupCssClass:"dx-filemanager-dialog-name-editor-popup"})}_createContentTemplate(t){super._createContentTemplate(t),this._nameTextBox=this._createComponent((0,u.Z)("<div>"),bA.Z,{value:this._initialNameValue,onEnterKey:()=>this._hasCompositionJustEnded&&this._applyDialogChanges(),onKeyDown:e=>this._checkCompositionEnded(e)}),this._$contentElement.append(this._nameTextBox.$element())}_checkCompositionEnded(t){var{event:e}=t;this._hasCompositionJustEnded=229!==e.which}_getDialogResult(){var t=this._nameTextBox.option("value");return t?{name:t}:null}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{title:"",buttonText:""})}},MG=class IG extends PA{show(){var t;this._setSelectedDirInfo(null),null===(t=this._filesTreeView)||void 0===t||t.refresh(),super.show()}switchToCopyDialog(t){this._targetItemInfos=t,this._setTitle(wn.Z.format("dxFileManager-dialogDirectoryChooserCopyTitle")),this._setApplyButtonOptions({text:wn.Z.format("dxFileManager-dialogDirectoryChooserCopyButtonText"),disabled:!0})}switchToMoveDialog(t){this._targetItemInfos=t,this._setTitle(wn.Z.format("dxFileManager-dialogDirectoryChooserMoveTitle")),this._setApplyButtonOptions({text:wn.Z.format("dxFileManager-dialogDirectoryChooserMoveButtonText"),disabled:!0})}_getDialogOptions(){return(0,y.l)(super._getDialogOptions(),{contentCssClass:"dx-filemanager-dialog-folder-chooser",popupCssClass:"dx-filemanager-dialog-folder-chooser-popup"})}_createContentTemplate(t){super._createContentTemplate(t),this._filesTreeView=this._createComponent((0,u.Z)("<div>"),QB,{getDirectories:this.option("getDirectories"),getCurrentDirectory:()=>this._getDialogSelectedDirectory(),onDirectoryClick:e=>this._onFilesTreeViewDirectoryClick(e),onFilesTreeViewContentReady:()=>this._toggleUnavailableLocationsDisabled(!0)}),this._$contentElement.append(this._filesTreeView.$element())}_getDialogResult(){var t=this._getDialogSelectedDirectory();return t&&{folder:t}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{getItems:null})}_getDialogSelectedDirectory(){return this._selectedDirectoryInfo}_onFilesTreeViewDirectoryClick(t){var{itemData:e}=t;this._setSelectedDirInfo(e),this._filesTreeView.updateCurrentDirectory()}_setSelectedDirInfo(t){this._selectedDirectoryInfo=t,this._setApplyButtonOptions({disabled:!t})}_onPopupShown(){this._toggleUnavailableLocationsDisabled(!0),super._onPopupShown()}_onPopupHidden(){this._toggleUnavailableLocationsDisabled(!1),super._onPopupHidden()}_toggleUnavailableLocationsDisabled(t){if(this._filesTreeView){var e=this._getLocationsToProcess(t);this._filesTreeView.toggleDirectoryExpandedStateRecursive(e.locationsToExpand[0],t).then(()=>this._filesTreeView.toggleDirectoryLineExpandedState(e.locationsToCollapse,!t).then(()=>e.locationKeysToDisable.forEach(i=>this._filesTreeView.toggleNodeDisabledState(i,t))))}}_getLocationsToProcess(t){var e={},i={};this._targetItemInfos.forEach(D=>{D.parentDirectory&&(e[D.parentDirectory.getInternalKey()]=D.parentDirectory),D.fileItem.isDirectory&&(i[D.getInternalKey()]=D)});var r=WB(e),v=WB(i);return{locationsToExpand:t?r.values:[],locationsToCollapse:t?v.values:[],locationKeysToDisable:r.keys.concat(...v.keys)}}},RG=class kG extends PA{show(t){var{itemName:e,itemCount:i}=t,r=1===i?wn.Z.format("dxFileManager-dialogDeleteItemSingleItemConfirmation",e):wn.Z.format("dxFileManager-dialogDeleteItemMultipleItemsConfirmation",i);this._$text?this._$text.text(r):this._initialText=r,super.show()}_getDialogOptions(){return(0,y.l)(super._getDialogOptions(),{title:wn.Z.format("dxFileManager-dialogDeleteItemTitle"),buttonText:wn.Z.format("dxFileManager-dialogDeleteItemButtonText"),contentCssClass:"dx-filemanager-dialog-delete-item",popupCssClass:"dx-filemanager-dialog-delete-item-popup",height:"auto",maxHeight:"80vh"})}_createContentTemplate(t){super._createContentTemplate(t),this._$text=(0,u.Z)("<div>").text(this._initialText).appendTo(this._$contentElement),this._createComponent(this._$contentElement,Ef.Z,{width:"100%",height:"100%"})}_getDialogResult(){return{}}},HG=class NG extends sa.Z{_initMarkup(){this._initActions(),this.$element().addClass("dx-filemanager-fileuploader"),this._uploaderInfos=[],this._createInternalFileUploader(),this._createDropZonePlaceholder(),this._setDropZonePlaceholderVisible(!1),super._initMarkup()}_createInternalFileUploader(){var t=this._getController().chunkSize,e=(0,u.Z)("<div>").appendTo(this.$element()),i=this._createComponent(e,mB.Z,{name:"file",multiple:!0,showFileList:!1,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,labelText:"",readyToUploadMessage:"",accept:"*",chunkSize:t,dropZone:this.option("dropZone"),onValueChanged:v=>this._onFileUploaderValueChanged(v),onProgress:v=>this._onFileUploaderProgress(v),onUploaded:v=>this._onFileUploaderUploaded(v),onFilesUploaded:v=>this._onFileUploaderAllFilesUploaded(v),onUploadAborted:v=>this._onFileUploaderUploadAborted(v),onUploadError:v=>this._onFileUploaderUploadError(v),onDropZoneEnter:()=>this._setDropZonePlaceholderVisible(!0),onDropZoneLeave:()=>this._setDropZonePlaceholderVisible(!1)});i.option({uploadChunk:(v,D)=>this._fileUploaderUploadChunk(i,v,D),abortUpload:(v,D)=>this._fileUploaderAbortUpload(i,v,D)}),i._shouldRaiseDragLeaveBase=i._shouldRaiseDragLeave,i._shouldRaiseDragLeave=v=>this._shouldRaiseDragLeave(v,i),this._uploaderInfos.push({fileUploader:i})}tryUpload(){var t=this._findAndUpdateAvailableUploaderInfo();t&&t.fileUploader._selectButtonClickHandler()}cancelUpload(t){this._cancelUpload(t)}cancelFileUpload(t,e){this._cancelUpload(t,e)}_cancelUpload(t,e){var{fileUploader:i}=this._findUploaderInfoBySessionId(t);i.abortUpload(e)}_fileUploaderUploadChunk(t,e,i){var{session:r,fileIndex:v}=this._findSessionByFile(t,e),D=r.controller;return i.fileIndex=v,D.uploadFileChunk(e,i)}_fileUploaderAbortUpload(t,e,i){var{session:r,fileIndex:v}=this._findSessionByFile(t,e),D=r.controller;return i.fileIndex=v,D.abortFileUpload(e,i)}_onFileUploaderValueChanged(t){var{component:e,value:i}=t;if(0!==i.length){var r=i.slice(),v=this._findUploaderInfo(e);this._uploadFiles(v,r),setTimeout(()=>{this._findAndUpdateAvailableUploaderInfo()||this._createInternalFileUploader()})}}_onFileUploaderProgress(t){var{component:e,file:i,bytesLoaded:r,bytesTotal:v}=t,{session:D,fileIndex:A}=this._findSessionByFile(e,i),z=0!==v?r/v:1,Q=e.option("progress")/100;this._raiseUploadProgress({sessionId:D.id,fileIndex:A,commonValue:Q,fileValue:z})}_onFileUploaderAllFilesUploaded(t){var{component:e}=t,{session:i}=this._findSessionByFile(e,e._files[0].value);this._raiseUploadFinished({sessionId:i.id,commonValue:e.option("progress")/100})}_onFileUploaderUploaded(t){var{component:e,file:i}=t;this._getDeferredForFile(e,i).resolve()}_onFileUploaderUploadAborted(t){var{component:e,file:i}=t;this._getDeferredForFile(e,i).resolve({canceled:!0})}_onFileUploaderUploadError(t){var{component:e,file:i,error:r}=t;this._getDeferredForFile(e,i).reject(r)}_createDropZonePlaceholder(){this._$dropZonePlaceholder=(0,u.Z)("<div>").addClass("dx-filemanager-fileuploader-dropzone-placeholder").appendTo(this.option("dropZonePlaceholderContainer"))}_adjustDropZonePlaceholder(){var t=this.option("dropZone");if((0,fi.Ym)()&&0!==t.length){var e=parseFloat(this._$dropZonePlaceholder.css("borderTopWidth")),i=parseFloat(this._$dropZonePlaceholder.css("borderLeftWidth")),r=this.option("dropZonePlaceholderContainer"),v=parseFloat(r.css("borderBottomWidth")),D=parseFloat(r.css("borderLeftWidth")),A=(0,s.fA)(r),z=r.offset(),Q=t.offset();this._$dropZonePlaceholder.css({top:Q.top-z.top-A-v,left:Q.left-z.left-D}),(0,s.QQ)(this._$dropZonePlaceholder,t.get(0).offsetHeight-2*e),(0,s.cl)(this._$dropZonePlaceholder,t.get(0).offsetWidth-2*i)}}_setDropZonePlaceholderVisible(t){t?(this._adjustDropZonePlaceholder(),this._$dropZonePlaceholder.css("display","")):this._$dropZonePlaceholder.css("display","none")}_shouldRaiseDragLeave(t,e){return e.isMouseOverElement(t,this.option("splitterElement"))||e._shouldRaiseDragLeaveBase(t,!0)}_uploadFiles(t,e){this._setDropZonePlaceholderVisible(!1);var i=(new vh.Z).toString(),r=this._getController(),v=e.map(()=>new P.BH);return t.session={id:i,controller:r,files:e,deferreds:v},this._raiseUploadSessionStarted({sessionId:i,deferreds:v,files:e}),DA(v).always(()=>setTimeout(()=>{t.fileUploader.reset(),t.session=null}))}_getDeferredForFile(t,e){var{session:i,fileIndex:r}=this._findSessionByFile(t,e);return i.deferreds[r]}_findSessionByFile(t,e){var r=this._findUploaderInfo(t).session,v=r.files.indexOf(e);return{session:r,fileIndex:v}}_findUploaderInfoBySessionId(t){for(var e=0;e<this._uploaderInfos.length;e++){var i=this._uploaderInfos[e],r=i.session;if(r&&r.id===t)return i}return null}_findAndUpdateAvailableUploaderInfo(){for(var t,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===(t=e)||void 0===t||t.fileUploader.option("dropZone",this.option("dropZone")),e}_findUploaderInfo(t){for(var e=0;e<this._uploaderInfos.length;e++){var i=this._uploaderInfos[e];if(i.fileUploader===t)return i}return null}_getController(){return this.option("getController")()}_raiseUploadSessionStarted(t){this._actions.onUploadSessionStarted({sessionInfo:t})}_raiseUploadProgress(t){this._actions.onUploadProgress(t)}_raiseUploadFinished(t){this._actions.onUploadFinished(t)}_initActions(){this._actions={onUploadSessionStarted:this._createActionByOption("onUploadSessionStarted"),onUploadProgress:this._createActionByOption("onUploadProgress"),onUploadFinished:this._createActionByOption("onUploadFinished")}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{getController:null,onUploadSessionStarted:null,onUploadProgress:null,onUploadFinished:null,splitterElement:null})}_optionChanged(t){var e=t.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(t.value);break;case"splitterElement":break;default:super._optionChanged(t)}}};class UG{constructor(t,e,i){this._actionMetadata=t,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(t){this._singleRequest?this._completedItems=[...this._items]:this._completedItems.push(this._items[t]),this._actionMetadata.allowItemProgress||(this._commonProgress=this._completedItems.length/this._items.length*100)}processSingleRequestError(t){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,t)}processMultipleRequestError(t,e){this._errorState.failedCount++,this._errorState.commonErrorText=this._errorState.failedCount>1?(0,Yo.WU)(this._actionMetadata.multipleItemsErrorMessage,this._errorState.failedCount):this._actionMetadata.singleItemErrorMessage;var i=this.getItemForMultipleRequestError(t);this._setCurrentDetailError(t,i,e)}hasModifiedItems(){return this._hasCompletedItems()||this._singleRequest&&!this.success&&this._multipleItems}getItemForSingleRequestError(){return this._multipleItems?null:this._itemInfos[0]}getItemForMultipleRequestError(t){return this._itemInfos[t]}getItemName(t,e){var r=(this.singleRequest?this.getItemForSingleRequestError():this.getItemForMultipleRequestError(e))?.fileItem.name;return this.itemNewName&&this._isItemExistsErrorCode(t)&&(r=this.itemNewName),r}_isItemExistsErrorCode(t){return t===Sl_DirectoryExists||t===Sl_FileExists}_setCurrentDetailError(t,e,i){this._errorState.currentDetailError={itemIndex:t,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(t){this._itemNewName=t}get errorState(){return this._errorState}get singleRequest(){return this._singleRequest}set singleRequest(t){this._singleRequest=t}get multipleItems(){return this._multipleItems}get onlyFiles(){return this._onlyFiles}get processingMessage(){return this._multipleItems?(0,Yo.WU)(this._actionMetadata.multipleItemsProcessingMessage,this._items.length,this._location):(0,Yo.WU)(this._actionMetadata.singleItemProcessingMessage,this._location)}get successMessage(){return this._hasCompletedItems()?this._multipleItems?(0,Yo.WU)(this._actionMetadata.multipleItemsSuccessMessage,this._completedItems.length,this._location):(0,Yo.WU)(this._actionMetadata.singleItemSuccessMessage,this._location):this._multipleItems?(0,Yo.WU)(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 ZG=class WG extends sa.Z{_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 LG{constructor(t,e){this._$element=t,this._options=e;var i={onClosed:this._options.onDialogClosed,rtlEnabled:this._options.rtlEnabled},r=(0,u.Z)("<div>").appendTo(this._$element);this._chooseDirectoryDialog=new MG(r,(0,y.l)(i,this._options.chooseDirectoryDialog));var v=(0,u.Z)("<div>").appendTo(this._$element);this._renameItemDialog=new fF(v,(0,y.l)(i,{title:wn.Z.format("dxFileManager-dialogRenameItemTitle"),buttonText:wn.Z.format("dxFileManager-dialogRenameItemButtonText")}));var D=(0,u.Z)("<div>").appendTo(this._$element);this._createItemDialog=new fF(D,(0,y.l)(i,{title:wn.Z.format("dxFileManager-dialogCreateDirectoryTitle"),buttonText:wn.Z.format("dxFileManager-dialogCreateDirectoryButtonText")}));var A=(0,u.Z)("<div>").appendTo(this._$element);this._deleteItemDialog=new RG(A,i)}getCopyDialog(t){return this._chooseDirectoryDialog.switchToCopyDialog(t),this._chooseDirectoryDialog}getMoveDialog(t){return this._chooseDirectoryDialog.switchToMoveDialog(t),this._chooseDirectoryDialog}getRenameItemDialog(){return this._renameItemDialog}getCreateItemDialog(){return this._createItemDialog}getDeleteItemDialog(){return this._deleteItemDialog}updateDialogRtl(t){[this._chooseDirectoryDialog,this._renameItemDialog,this._createItemDialog,this._deleteItemDialog].forEach(e=>{e.option("rtlEnabled",t)})}}(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 t=this.option("notificationControl");t&&this._initNotificationControl(t),this._createMetadataMap()}_initNotificationControl(t){this._notificationControl=t,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 HG}_createFileUploader(){var t=(0,u.Z)("<div>").appendTo(this.$element());return this._createComponent(t,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(t){this._fileUploader.option("dropZone",t)}setUploaderSplitterElement(t){this._fileUploader.option("splitterElement",t)}_getFileUploaderController(){var t=this.uploadDirectoryInfo.fileItem;return{chunkSize:this._controller.getFileUploadChunkSize(),uploadFileChunk:(e,i)=>this._controller.uploadFileChunk(e,i,t),abortFileUpload:(e,i)=>this._controller.abortFileUpload(e,i,t)}}_createMetadataMap(){this._metadataMap={create:{action:t=>this._tryCreate(t),affectsAllItems:!0,singleItemProcessingMessage:wn.Z.format("dxFileManager-editingCreateSingleItemProcessingMessage"),singleItemSuccessMessage:wn.Z.format("dxFileManager-editingCreateSingleItemSuccessMessage"),singleItemErrorMessage:wn.Z.format("dxFileManager-editingCreateSingleItemErrorMessage"),commonErrorMessage:wn.Z.format("dxFileManager-editingCreateCommonErrorMessage")},rename:{action:t=>this._tryRename(t),singleItemProcessingMessage:wn.Z.format("dxFileManager-editingRenameSingleItemProcessingMessage"),singleItemSuccessMessage:wn.Z.format("dxFileManager-editingRenameSingleItemSuccessMessage"),singleItemErrorMessage:wn.Z.format("dxFileManager-editingRenameSingleItemErrorMessage"),commonErrorMessage:wn.Z.format("dxFileManager-editingRenameCommonErrorMessage")},delete:{action:t=>this._tryDelete(t),singleItemProcessingMessage:wn.Z.format("dxFileManager-editingDeleteSingleItemProcessingMessage"),multipleItemsProcessingMessage:wn.Z.format("dxFileManager-editingDeleteMultipleItemsProcessingMessage"),singleItemSuccessMessage:wn.Z.format("dxFileManager-editingDeleteSingleItemSuccessMessage"),multipleItemsSuccessMessage:wn.Z.format("dxFileManager-editingDeleteMultipleItemsSuccessMessage"),singleItemErrorMessage:wn.Z.format("dxFileManager-editingDeleteSingleItemErrorMessage"),multipleItemsErrorMessage:wn.Z.format("dxFileManager-editingDeleteMultipleItemsErrorMessage"),commonErrorMessage:wn.Z.format("dxFileManager-editingDeleteCommonErrorMessage")},move:{action:t=>this._tryMove(t),singleItemProcessingMessage:wn.Z.format("dxFileManager-editingMoveSingleItemProcessingMessage"),multipleItemsProcessingMessage:wn.Z.format("dxFileManager-editingMoveMultipleItemsProcessingMessage"),singleItemSuccessMessage:wn.Z.format("dxFileManager-editingMoveSingleItemSuccessMessage"),multipleItemsSuccessMessage:wn.Z.format("dxFileManager-editingMoveMultipleItemsSuccessMessage"),singleItemErrorMessage:wn.Z.format("dxFileManager-editingMoveSingleItemErrorMessage"),multipleItemsErrorMessage:wn.Z.format("dxFileManager-editingMoveMultipleItemsErrorMessage"),commonErrorMessage:wn.Z.format("dxFileManager-editingMoveCommonErrorMessage")},copy:{action:t=>this._tryCopy(t),singleItemProcessingMessage:wn.Z.format("dxFileManager-editingCopySingleItemProcessingMessage"),multipleItemsProcessingMessage:wn.Z.format("dxFileManager-editingCopyMultipleItemsProcessingMessage"),singleItemSuccessMessage:wn.Z.format("dxFileManager-editingCopySingleItemSuccessMessage"),multipleItemsSuccessMessage:wn.Z.format("dxFileManager-editingCopyMultipleItemsSuccessMessage"),singleItemErrorMessage:wn.Z.format("dxFileManager-editingCopySingleItemErrorMessage"),multipleItemsErrorMessage:wn.Z.format("dxFileManager-editingCopyMultipleItemsErrorMessage"),commonErrorMessage:wn.Z.format("dxFileManager-editingCopyCommonErrorMessage")},upload:{action:t=>this._tryUpload(t),allowCancel:!0,allowItemProgress:!0,singleItemProcessingMessage:wn.Z.format("dxFileManager-editingUploadSingleItemProcessingMessage"),multipleItemsProcessingMessage:wn.Z.format("dxFileManager-editingUploadMultipleItemsProcessingMessage"),singleItemSuccessMessage:wn.Z.format("dxFileManager-editingUploadSingleItemSuccessMessage"),multipleItemsSuccessMessage:wn.Z.format("dxFileManager-editingUploadMultipleItemsSuccessMessage"),singleItemErrorMessage:wn.Z.format("dxFileManager-editingUploadSingleItemErrorMessage"),multipleItemsErrorMessage:wn.Z.format("dxFileManager-editingUploadMultipleItemsErrorMessage"),canceledMessage:wn.Z.format("dxFileManager-editingUploadCanceledMessage")},download:{action:t=>this._download(t),singleItemProcessingMessage:"",multipleItemsProcessingMessage:"",singleItemErrorMessage:wn.Z.format("dxFileManager-editingDownloadSingleItemErrorMessage"),multipleItemsErrorMessage:wn.Z.format("dxFileManager-editingDownloadMultipleItemsErrorMessage")},getItemContent:{action:t=>this._getItemContent(t)},getItems:{singleItemProcessingMessage:"",singleItemErrorMessage:wn.Z.format("dxFileManager-errorDirectoryOpenFailed"),commonErrorMessage:wn.Z.format("dxFileManager-errorDirectoryOpenFailed")}}}getCommandActions(){var t={};return(0,O.S6)(this._metadataMap,e=>{Object.prototype.hasOwnProperty.call(this._metadataMap,e)&&(t[e]=i=>this._executeAction(e,i))}),t}_executeAction(t,e){var i=this._metadataMap[t];return i?i.action(e):null}_onCancelUploadSession(t){this._fileUploader.cancelUpload(t.uploadSessionId)}_onCancelFileUpload(t,e){this._fileUploader.cancelFileUpload(t.info.uploadSessionId,e)}_onUploadProgress(t){var{sessionId:e,fileIndex:i,commonValue:r,fileValue:v}=t,{operationInfo:D}=this._uploadOperationInfoMap[e];this._notificationControl.updateOperationItemProgress(D,i,100*v,100*r)}_onUploadFinished(t){var{sessionId:e,commonValue:i}=t,{operationInfo:r}=this._uploadOperationInfoMap[e];this._notificationControl.finishOperation(r,100*i),this._scheduleUploadSessionDisposal(e,"uploader")}_onUploadSessionStarted(t){var{sessionInfo:e}=t;this._controller.processUploadSession(e,this.uploadDirectoryInfo)}_onEditActionStarting(t){var e=this._metadataMap[t.name],i=new UG(e,t.itemInfos,t.directory),r=this._notificationControl.addOperation(i.processingMessage,e.allowCancel,!e.allowItemProgress);switch((0,y.l)(t.customData,{context:i,operationInfo:r}),t.name){case"upload":var v=t.customData.sessionInfo.sessionId;r.uploadSessionId=v,this._uploadOperationInfoMap[v]={operationInfo:r};break;case"rename":t.customData.context.itemNewName=t.customData.itemNewName}}_onEditActionResultAcquired(t){var{context:e,operationInfo:i}=t.customData;e.singleRequest=t.singleRequest;var r=e.itemInfos.map(v=>this._getItemProgressDisplayInfo(v));this._notificationControl.addOperationDetails(i,r,e.actionMetadata.allowCancel)}_onEditActionError(t,e){var{context:i,operationInfo:r}=t.customData;i.singleRequest=t.singleRequest,this._handleActionError(r,i,e),this._completeAction(r,i)}_onEditActionItemError(t,e){var{context:i,operationInfo:r}=t.customData;this._handleActionError(r,i,e)}_onCompleteEditActionItem(t,e){var{context:i,operationInfo:r}=t.customData;(!e.result||!e.result.canceled)&&(i.completeOperationItem(e.index),this._notificationControl.completeOperationItem(r,e.index,i.commonProgress))}_onCompleteEditAction(t){var{context:e,operationInfo:i}=t.customData;this._completeAction(i,e),"upload"===t.name&&this._scheduleUploadSessionDisposal(t.customData.sessionInfo.sessionId,"controller")}_scheduleUploadSessionDisposal(t,e){(0,w.$K)(this._uploadOperationInfoMap[t].requester)&&this._uploadOperationInfoMap[t].requester!==e?delete this._uploadOperationInfoMap[t]:this._uploadOperationInfoMap[t].requester=e}_tryCreate(t){var e=t&&t[0]||this._getCurrentDirectory(),i=wn.Z.format("dxFileManager-newDirectoryName");return this._showDialog(this._dialogManager.getCreateItemDialog(),i).then(r=>{var{name:v}=r;return this._controller.createDirectory(e,v)})}_tryRename(t){var e=t&&t[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 P.BH).reject().promise()}_tryDelete(t){if(0===(t=t||this._model.getMultipleSelectedItems()).length)return(new P.BH).reject().promise();var e=t[0].fileItem.name,i=t.length;return this._showDialog(this._dialogManager.getDeleteItemDialog(),{itemName:e,itemCount:i}).then(()=>this._controller.deleteItems(t))}_tryMove(t){return 0===(t=t||this._model.getMultipleSelectedItems()).length?(new P.BH).reject().promise():this._showDialog(this._dialogManager.getMoveDialog(t)).then(e=>{var{folder:i}=e;return this._controller.moveItems(t,i)})}_tryCopy(t){return 0===(t=t||this._model.getMultipleSelectedItems()).length?(new P.BH).reject().promise():this._showDialog(this._dialogManager.getCopyDialog(t)).then(e=>{var{folder:i}=e;return this._controller.copyItems(t,i)})}_tryUpload(t){this._uploadDirectoryInfo=t?.[0],this._fileUploader.tryUpload()}_download(t){return 0===(t=t||this._model.getMultipleSelectedItems()).length?(new P.BH).reject().promise():this._controller.downloadItems(t)}_getItemContent(t){return t=t||this._model.getMultipleSelectedItems(),this._controller.getItemContent(t)}_completeAction(t,e){this._notificationControl.completeOperation(t,e.completionMessage,!e.success,e.statusText),e.hasModifiedItems()&&this._raiseOnSuccess(e.onlyFiles)}_handleActionError(t,e,i){t.hasError=!0,e.singleRequest?this._handleSingleRequestActionError(t,e,i):this._handleMultipleRequestActionError(t,e,i)}_handleSingleRequestActionError(t,e,i){var r=e.getItemForSingleRequestError(),v=e.getItemName(i.errorCode),D=this._getErrorText(i,r,v);e.processSingleRequestError(D);var A=this._getOperationErrorInfo(e);this._notificationControl.completeSingleOperationWithError(t,A),e.multipleItems&&this._raiseOnSuccess(e.onlyFiles)}_handleMultipleRequestActionError(t,e,i){var r=e.getItemForMultipleRequestError(i.index),v=e.getItemName(i.errorCode,i.index),D=this._getErrorText(i,r,v);e.processMultipleRequestError(i.index,D);var A=this._getOperationErrorInfo(e);this._notificationControl.addOperationDetailsError(t,A)}_getOperationErrorInfo(t){var e=t.errorState.currentDetailError;return{commonErrorText:t.errorState.commonErrorText,item:e.itemInfo?this._getItemProgressDisplayInfo(e.itemInfo):null,itemIndex:e.itemIndex,detailErrorText:e.errorText}}_getErrorText(t,e,i){var r=t.errorText||((n,t)=>{switch(n){case Sl_NoAccess:return wn.Z.format("dxFileManager-errorNoAccess");case Sl_FileExists:return wn.Z.format("dxFileManager-errorFileExistsFormat",t);case Sl_FileNotFound:return wn.Z.format("dxFileManager-errorFileNotFoundFormat",t);case Sl_DirectoryExists:return wn.Z.format("dxFileManager-errorDirectoryExistsFormat",t);case Sl_DirectoryNotFound:return wn.Z.format("dxFileManager-errorDirectoryNotFoundFormat",t);case Sl_WrongFileExtension:return wn.Z.format("dxFileManager-errorWrongFileExtension");case Sl_MaxFileSizeExceeded:return wn.Z.format("dxFileManager-errorMaxFileSizeExceeded");case Sl_InvalidSymbols:return wn.Z.format("dxFileManager-errorInvalidSymbols")}return wn.Z.format("dxFileManager-errorDefault")})(t.errorCode,i),v={fileSystemItem:e?.fileItem,errorCode:t.errorCode,errorText:r};return this._raiseOnError(v),v.errorText}_getItemProgressDisplayInfo(t){return{commonText:t.fileItem.name,imageUrl:this._getItemThumbnail(t)}}_showDialog(t,e){return this._dialogDeferred=new P.BH,t.show(e),this._dialogDeferred.promise()}_onDialogClosed(t){var e=t.dialogResult;e?this._dialogDeferred.resolve(e):this._dialogDeferred.reject()}updateDialogRtl(t){this._dialogManager.updateDialogRtl(t)}_getItemThumbnail(t){var e=this.option("getItemThumbnail");if(!e)return null;var i=e(t);return i?i.thumbnail:null}_initActions(){this._actions={onSuccess:this._createActionByOption("onSuccess"),onError:this._createActionByOption("onError")}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{model:{getMultipleSelectedItems:null},notificationControl:null,getItemThumbnail:null,onSuccess:null,onError:null})}_optionChanged(t){var e=t.name;switch(e){case"model":this.repaint();break;case"notificationControl":this._initNotificationControl(t.value);break;case"getItemThumbnail":break;case"uploadDropZonePlaceholderContainer":this._fileUploader.option("dropZonePlaceholderContainer",t.value);break;case"onSuccess":case"onError":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}_raiseOnSuccess(t){this._actions.onSuccess({updatedOnlyFiles:t})}_raiseOnError(t){this._actions.onError(t)}_getCurrentDirectory(){return this._controller.getCurrentDirectory()}get uploadDirectoryInfo(){return this._uploadDirectoryInfo||this._getCurrentDirectory()}};var KG=l(1658),sD="dx-filemanager-breadcrumbs",GG=sD+"-parent-folder-item",jG=sD+"-separator-item",$G=sD+"-path-separator-item";const XG=class YG extends sa.Z{_init(){super._init(),this._currentDirectory=null}_initMarkup(){super._initMarkup(),this._initActions(),this._currentDirectory&&this._renderMenu(),this.$element().addClass(sD)}setCurrentDirectory(t){this._areDirsEqual(this._currentDirectory,t)||(this._currentDirectory=t,this.repaint())}_renderMenu(){var t=(0,u.Z)("<div>").appendTo(this.$element());this._menu=this._createComponent(t,KG.Z,{dataSource:this._getMenuItems(),onItemClick:this._onItemClick.bind(this),onItemRendered:this._onItemRendered.bind(this)})}_getMenuItems(){var t=this._getParentDirsLine(),e=[{icon:"arrowup",directory:this._currentDirectory.parentDirectory,isPathItem:!0,cssClass:GG},{text:"\xa0",cssClass:jG}];return t.forEach((i,r)=>{e.push({text:i.getDisplayName(),directory:i,isPathItem:!0}),r!==t.length-1&&e.push({icon:"spinnext",cssClass:$G})}),e}_onItemClick(t){var{itemData:e}=t;if(e.isPathItem){var i=e.directory;this._areDirsEqual(i,this._currentDirectory)||this._raiseCurrentDirectoryChanged(i)}}_onItemRendered(t){var{itemElement:e,itemData:i}=t;i.cssClass&&(0,u.Z)(e).addClass(i.cssClass)}_getParentDirsLine(){for(var t=this._currentDirectory,e=[];t;)e.unshift(t),t=t.parentDirectory;return e}_areDirsEqual(t,e){return t&&e&&t===e&&t.fileItem.key===e.fileItem.key}_initActions(){this._actions={onCurrentDirectoryChanging:this._createActionByOption("onCurrentDirectoryChanging")}}_raiseCurrentDirectoryChanged(t){this._actions.onCurrentDirectoryChanging({currentDirectory:t})}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{rootFolderDisplayName:"Files",onCurrentDirectoryChanging:null})}_optionChanged(t){var e=t.name;switch(e){case"rootFolderDisplayName":this.repaint();break;case"onCurrentDirectoryChanging":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}};var mF=(0,fi.Jj)(),kb="dx-splitter",qG="".concat(kb,"-wrapper"),kA="".concat(kb,"-inactive"),JG="".concat(kb,"-border"),RA="".concat(kb,"-initial"),_F="dx-state-disabled",LA="dxSplitterResizing";class vF extends sa.Z{_init(){super._init();var t=(new vh.Z).toString();this.SPLITTER_POINTER_DOWN_EVENT_NAME=(0,k.V4)(_o.Z.down,LA+t),this.SPLITTER_POINTER_MOVE_EVENT_NAME=(0,k.V4)(_o.Z.move,LA+t),this.SPLITTER_POINTER_UP_EVENT_NAME=(0,k.V4)(_o.Z.up,LA+t)}_initMarkup(){super._initMarkup(),this._initActions(),this._$container=this.option("container"),this._$leftElement=this.option("leftElement"),this._$rightElement=this.option("rightElement"),this.$element().addClass(qG).addClass(RA),this._$splitterBorder=(0,u.Z)("<div>").addClass(JG).appendTo(this.$element()),this._$splitter=(0,u.Z)("<div>").addClass(kb).addClass(kA).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 t=b.Z.getDocument();d.Z.on(this._$splitterBorder,this.SPLITTER_POINTER_DOWN_EVENT_NAME,this._onMouseDownHandler.bind(this)),d.Z.on(t,this.SPLITTER_POINTER_MOVE_EVENT_NAME,this._onMouseMoveHandler.bind(this)),d.Z.on(t,this.SPLITTER_POINTER_UP_EVENT_NAME,this._onMouseUpHandler.bind(this))}_detachEventHandlers(){var t=b.Z.getDocument();d.Z.off(this._$splitterBorder,this.SPLITTER_POINTER_DOWN_EVENT_NAME),d.Z.off(t,this.SPLITTER_POINTER_MOVE_EVENT_NAME),d.Z.off(t,this.SPLITTER_POINTER_UP_EVENT_NAME)}_dimensionChanged(t){(!t||"height"!==t)&&(this._containerWidth=this._$container.get(0).clientWidth,this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))}_onMouseDownHandler(t){t.preventDefault(),this._offsetX=t.pageX-this._$splitterBorder.offset().left<=this._getSplitterBorderWidth()?t.pageX-this._$splitterBorder.offset().left:0,this._containerWidth=this._$container.get(0).clientWidth,this.$element().removeClass(RA),this._toggleActive(!0),this._setSplitterPositionLeft({needUpdatePanels:!0})}_onMouseMoveHandler(t){this._isSplitterActive&&this._setSplitterPositionLeft({splitterPositionLeft:this._getNewSplitterPositionLeft(t),needUpdatePanels:!0})}_onMouseUpHandler(){this._isSplitterActive&&(this._leftPanelPercentageWidth=null,this._toggleActive(!1),this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))}_getNewSplitterPositionLeft(t){var e=t.pageX-this._getContainerLeftOffset()-this._offsetX;return e=Math.max(0-this._getSplitterOffset(),e),Math.min(this._containerWidth-this._getSplitterOffset()-this._getSplitterWidth(),e)}_getContainerLeftOffset(){var t=this._$container.offset().left;if(mF){var e=mF.getComputedStyle(this._$container.get(0));t+=(parseFloat(e.paddingLeft)||0)+(parseFloat(e.borderLeftWidth)||0)}return t}_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(t){this.$element().toggleClass(kA,!t),this._$splitter.toggleClass(kA,!t),this._isSplitterActive=t,this._actions.onActiveStateChanged({isActive:t})}toggleDisabled(t){this.$element().toggleClass(_F,t),this._$splitter.toggleClass(_F,t)}isSplitterMoved(){return!this.$element().hasClass(RA)}disableSplitterCalculation(t){this._isSplitterCalculationDisabled=t}_setSplitterPositionLeft(){var{splitterPositionLeft:t=null,needUpdatePanels:e=!1,usePercentagePanelsWidth:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(t=t||this._getLeftPanelWidth()-this._getSplitterOffset())+this._getSplitterOffset(),v=this._containerWidth-r;this._isSplitterCalculationDisabled||this.$element().css("left",t),this._leftPanelPercentageWidth=this._leftPanelPercentageWidth||this._convertToPercentage(r);var D=this._convertToPercentage(this._containerWidth-this._convertToPixels(this._leftPanelPercentageWidth));e&&this._actions.onApplyPanelSize({leftPanelWidth:i?"".concat(this._leftPanelPercentageWidth,"%"):r,rightPanelWidth:i?"".concat(D,"%"):v})}_optionChanged(t){switch(t.name){case"initialLeftPanelWidth":this._leftPanelPercentageWidth=this._convertToPercentage(t.value),this._dimensionChanged();break;case"leftElement":this.repaint();break;case"onActiveStateChanged":case"onApplyPanelSize":this._actions[t.name]=this._createActionByOption(t.name);break;default:super._optionChanged(t)}}_convertToPercentage(t){return t/this._$container.get(0).clientWidth*100}_convertToPixels(t){return t/100*this._$container.get(0).clientWidth}}var QG=(0,fi.Jj)(),yF="dx-filemanager-adaptivity-drawer-panel",CF="dx-drawer-panel-content-initial";const ij=class nj extends sa.Z{_initMarkup(){super._initMarkup(),this._initActions(),this._isInAdaptiveState=!1;var t=(0,u.Z)("<div>").appendTo(this.$element());(0,u.Z)("<div>").addClass(yF).appendTo(t),this._drawer=this._createComponent(t,OA),this._drawer.option({opened:!0,template:this._createDrawerTemplate.bind(this)}),(0,u.Z)(this._drawer.content()).addClass(CF);var e=t.find(".".concat(yF)).first(),i=this.option("contentTemplate");(0,w.mf)(i)&&i(e),this._updateDrawerMaxSize()}_createDrawerTemplate(t){this.option("drawerTemplate")(t),this._splitter=this._createComponent("<div>",vF,{container:this.$element(),leftElement:(0,u.Z)(this._drawer.content()),rightElement:(0,u.Z)(this._drawer.viewContent()),onApplyPanelSize:this._onApplyPanelSize.bind(this),onActiveStateChanged:this._onActiveStateChanged.bind(this)}),this._splitter.$element().appendTo(t),this._splitter.disableSplitterCalculation(!0)}_render(){super._render(),this._checkAdaptiveState()}_onApplyPanelSize(t){if((0,fi.Ym)()){if(!this._splitter.isSplitterMoved())return void this._setDrawerWidth("");(0,u.Z)(this._drawer.content()).removeClass(CF),this._setDrawerWidth(t.leftPanelWidth)}}_onActiveStateChanged(t){var{isActive:e}=t;this._splitter.disableSplitterCalculation(!e),!e&&this._splitter.$element().css("left","auto")}_setDrawerWidth(t){(0,u.Z)(this._drawer.content()).css("width",t),this._updateDrawerMaxSize(),this._drawer.resizeViewContent()}_updateDrawerMaxSize(){this._drawer.option("maxSize",this._drawer.getRealPanelWidth())}_dimensionChanged(t){(!t||"height"!==t)&&this._checkAdaptiveState()}_checkAdaptiveState(){var t=this._isInAdaptiveState;this._isInAdaptiveState=this._isSmallScreen(),t!==this._isInAdaptiveState&&(this.toggleDrawer(!this._isInAdaptiveState,!0),(0,u.Z)(this._drawer.content()).toggleClass("dx-drawer-panel-content-adaptive",this._isInAdaptiveState),this._raiseAdaptiveStateChanged(this._isInAdaptiveState)),this._isInAdaptiveState&&this._isDrawerOpened()&&this._updateDrawerMaxSize()}_isSmallScreen(){return(0,s.dz)(QG)<=573}_isDrawerOpened(){return this._drawer.option("opened")}_initActions(){this._actions={onAdaptiveStateChanged:this._createActionByOption("onAdaptiveStateChanged")}}_raiseAdaptiveStateChanged(t){this._actions.onAdaptiveStateChanged({enabled:t})}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{drawerTemplate:null,contentTemplate:null,onAdaptiveStateChanged:null})}_optionChanged(t){var e=t.name;switch(e){case"drawerTemplate":case"contentTemplate":this.repaint();break;case"onAdaptiveStateChanged":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}isInAdaptiveState(){return this._isInAdaptiveState}toggleDrawer(t,e){this._updateDrawerMaxSize(),this._drawer.option("animationEnabled",!e),this._drawer.toggle(t);var i=this._isDrawerOpened()&&!this.isInAdaptiveState();this._splitter.toggleDisabled(!i)}getSplitterElement(){return this._splitter.getSplitterBorderElement().get(0)}};var rj=l(3238),oj=l(3425),B0="dx-filemanager",aj=B0+"-wrapper",xF=B0+"-container",sj=B0+"-dirs-panel",lj=B0+"-editing-container",uj=B0+"-items-panel",dj=B0+"-item-custom-thumbnail";(0,T.Z)("dxFileManager",class bF extends sa.Z{_initTemplates(){}_init(){super._init(),this._initActions(),this._providerUpdateDeferred=null,this._lockCurrentPathProcessing=!1,this._wasRendered=!1,this._controller=new FZ({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 NZ(this.option("permissions")),this.$element().addClass(B0),this._wasRendered?this._prepareToLoad():this._wasRendered=!0,this._createNotificationControl(),this._initCommandManager()}_createNotificationControl(){var t=(0,u.Z)("<div>").addClass("dx-filemanager-notification-container").appendTo(this.$element());this._notificationControl=this._createComponent(t,CG,{progressPanelContainer:this.$element(),contentTemplate:(e,i)=>this._createWrapper(e,i),onActionProgress:e=>this._onActionProgress(e),positionTarget:".".concat(xF),showProgressPanel:this.option("notifications.showPanel"),showNotificationPopup:this.option("notifications.showPopup")})}_createWrapper(t,e){this._$wrapper=(0,u.Z)("<div>").addClass(aj).appendTo(t),this._createEditing(e);var i=(0,u.Z)("<div>").appendTo(this._$wrapper);this._toolbar=this._createComponent(i,zK,{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 t=(0,u.Z)("<div>").addClass(xF).appendTo(this._$wrapper);this._adaptivityControl=this._createComponent(t,ij,{drawerTemplate:e=>this._createFilesTreeView(e),contentTemplate:e=>this._createItemsPanel(e),onAdaptiveStateChanged:e=>this._onAdaptiveStateChanged(e)}),this._editing.setUploaderSplitterElement(this._adaptivityControl.getSplitterElement())}_createEditing(t){var e=(0,u.Z)("<div>").addClass(lj).appendTo(this.$element());this._editing=this._createComponent(e,ZG,{controller:this._controller,model:{getMultipleSelectedItems:this._getSelectedItemInfos.bind(this)},getItemThumbnail:this._getItemThumbnailInfo.bind(this),notificationControl:t,uploadDropZonePlaceholderContainer:this.$element(),rtlEnabled:this.option("rtlEnabled"),onSuccess:i=>{var{updatedOnlyFiles:r}=i;return this._redrawComponent(r)},onError:i=>this._onEditingError(i)})}_createItemsPanel(t){this._$itemsPanel=(0,u.Z)("<div>").addClass(uj).appendTo(t),this._createBreadcrumbs(this._$itemsPanel),this._createItemView(this._$itemsPanel),this._updateUploadDropZone()}_updateUploadDropZone(){var t=this._commandManager.isCommandAvailable("upload")?this._$itemsPanel:(0,u.Z)();this._editing.setUploaderDropZone(t)}_createFilesTreeView(t){this._filesTreeViewContextMenu=this._createContextMenu(!1,"navPane");var e=(0,u.Z)("<div>").addClass(sj).appendTo(t);this._filesTreeView=this._createComponent(e,QB,{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(t,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:A=>{var{error:z}=A;return this._showError(z)},onSelectionChanged:this._onItemViewSelectionChanged.bind(this),onFocusedItemChanged:this._onItemViewFocusedItemChanged.bind(this),onSelectedItemOpened:this._onSelectedItemOpened.bind(this),onContextMenuShowing:A=>this._onContextMenuShowing("itemView",A),onItemListItemsLoaded:()=>this._tryEndLoading("itemView"),getItemThumbnail:this._getItemThumbnailInfo.bind(this),customizeDetailColumns:this.option("customizeDetailColumns"),detailColumns:this.option("itemView.details.columns")},v=(0,u.Z)("<div>").appendTo(t);this._itemView=this._createComponent(v,"thumbnails"===(e=e||i.mode)?MK:hK,r)}_createBreadcrumbs(t){var e=(0,u.Z)("<div>").appendTo(t);this._breadcrumbs=this._createComponent(e,XG,{rootFolderDisplayName:this.option("rootFolderName"),onCurrentDirectoryChanging:i=>{var{currentDirectory:r}=i;return this._setCurrentDirectory(r,!0)}}),this._breadcrumbs.setCurrentDirectory(this._getCurrentDirectory())}_createContextMenu(t,e){var i=(0,u.Z)("<div>").appendTo(this._$wrapper);return this._createComponent(i,ZZ,{commandManager:this._commandManager,items:this.option("contextMenu.items"),onItemClick:r=>this._actions.onContextMenuItemClick(r),onContextMenuShowing:r=>this._onContextMenuShowing(e,r),isolateCreationItemCommands:t,viewArea:e})}_initCommandManager(){var t=(0,y.l)(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(t)}_onItemViewSelectionChanged(t){var{selectedItemInfos:e,selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:v,currentDeselectedItemKeys:D}=t;this._lockSelectionProcessing=!0,this.option("selectedItemKeys",r),this._lockSelectionProcessing=!1,this._actions.onSelectionChanged({selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:v,currentDeselectedItemKeys:D}),this._updateToolbar(e)}_onItemViewFocusedItemChanged(t){this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",t.itemKey),this._lockFocusedItemProcessing=!1,this._actions.onFocusedItemChanged({item:t.item,itemElement:t.itemElement})}_onAdaptiveStateChanged(t){var{enabled:e}=t;this._commandManager.setCommandEnabled("showNavPane",e),this._updateToolbar()}_onActionProgress(t){var{message:e,status:i}=t;this._toolbar.updateRefreshItem(e,i),this._updateToolbar()}_onEditingError(t){var e=k0({},t,["errorCode","errorText","fileSystemItem"]);this._actions.onErrorOccurred(e),t.errorText=e.errorText}_refreshAndShowProgress(){return this._prepareToLoad(),(0,P.gx)(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(t){this._loadedWidgets.push(t),this._isAllWidgetsLoaded()&&this._controller.endSingleLoad()}_prepareToLoad(){this._loadedWidgets=[],this._controller.startSingleLoad()}_updateToolbar(t){var e=t||this._getSelectedItemInfos();this._toolbar.option("contextItems",(0,E.IS)(e,[]))}_switchView(t){this._disposeWidget(this._itemView.option("contextMenu")),this._disposeWidget(this._itemView),this._createItemView(this._$itemsPanel,t),this._toolbar.option({itemViewMode:t})}_disposeWidget(t){t.dispose(),t.$element().remove()}_clearSelection(){this._itemView.clearSelection()}_showError(t){this._showNotification(t,!1)}_showNotification(t,e){(0,bZ.Z)({message:t,width:450},e?"success":"error",5e3)}_redrawComponent(t){this._itemView.refresh().then(()=>!t&&this._filesTreeView.refresh())}_getItemViewItems(){var t=this.option("itemView").showFolders,e=this._controller.getCurrentItems(!t);return this._updateToolbarWithSelectionOnFirstLoad(e),this.option("itemView.showParentFolder")&&(e=(0,P.gx)(e).then(i=>this._getPreparedItemViewItems(i))),e}_updateToolbarWithSelectionOnFirstLoad(t){if(this._firstItemViewLoad){this._firstItemViewLoad=!1;var e=this.option("selectedItemKeys");e.length>0&&(0,P.gx)(t).done(i=>{var r=((n,t)=>{var e={};t.forEach(r=>{e[r]=null}),n.forEach(r=>{var v=r.fileItem.key;Object.prototype.hasOwnProperty.call(e,v)&&(e[v]=r)});var i=[];return t.forEach(r=>{var v=e[r];v&&i.push(v)}),i})(i,e);r.length>0&&this._updateToolbar(r)})}}_getPreparedItemViewItems(t){var e=this._getCurrentDirectory();if(e.fileItem.isRoot())return t;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=[...t];return r.unshift({fileItem:i,icon:"parentfolder"}),r}_onContextMenuShowing(t,e){var i,r=k0({},e,["targetElement","cancel","event"]);r=(0,y.l)(r,{viewArea:t,fileSystemItem:null===(i=e.itemData)||void 0===i?void 0:i.fileItem,_isActionButton:e.isActionButton}),this._actions.onContextMenuShowing(r),e.cancel=(0,E.IS)(r.cancel,!1)}_getItemThumbnailInfo(t){var e=this.option("customizeThumbnail"),i=(0,w.mf)(e)?e(t.fileItem):t.fileItem.thumbnail;return i?{thumbnail:i,cssClass:dj}:{thumbnail:t.icon}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{fileSystemProvider:null,currentPath:"",currentPathKeys:[],rootFolderName:wn.Z.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:(0,y.l)({},YB),notifications:{showPanel:!0,showPopup:!0}})}option(t,e){var i=(0,rj.GR)(t,e),r=arguments.length<2&&"object"!==(0,w.dt)(t),v=A=>(0,w.$K)(i[A]),D=A=>{if(!v(A))return!1;var z=this.option(A);return!(0,oj.f)(z,i[A])};return!r&&v("fileSystemProvider")&&(this._providerUpdateDeferred=new P.BH,(D("currentPath")||D("currentPathKeys"))&&(this._lockCurrentPathProcessing=!0)),super.option(...arguments)}_optionChanged(t){var e=t.name;switch(e){case"currentPath":var i=()=>(this._lockCurrentPathProcessing=!1,this._controller.setCurrentPath(t.value));this._lockCurrentPathProcessing=!0,this._providerUpdateDeferred?this._providerUpdateDeferred.then(i):i();break;case"currentPathKeys":var r=()=>(this._lockCurrentPathProcessing=!1,this._controller.setCurrentPathByKeys(t.value));this._lockCurrentPathProcessing=!0,this._providerUpdateDeferred?this._providerUpdateDeferred.then(r):r();break;case"selectedItemKeys":!this._lockSelectionProcessing&&this._itemView&&this._itemView.option("selectedItemKeys",t.value);break;case"focusedItemKey":!this._lockFocusedItemProcessing&&this._itemView&&this._itemView.option("focusedItemKey",t.value);break;case"rootFolderName":this._controller.setRootText(t.value),this._invalidate();break;case"fileSystemProvider":this._lockCurrentPathProcessing||(this._providerUpdateDeferred=new P.BH);var v=this._lockCurrentPathProcessing?void 0:this.option("currentPathKeys");this._controller.updateProvider(t.value,v).then(()=>this._providerUpdateDeferred.resolve()).always(()=>{this._providerUpdateDeferred=null,this.repaint()});break;case"allowedFileExtensions":this._controller.setAllowedFileExtensions(t.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"===t.fullName?this._switchView(t.value):this._invalidate();break;case"toolbar":var D={};"toolbar"===t.fullName&&(t.value.items&&(D.generalItems=t.value.items),t.value.fileSelectionItems&&(D.fileItems=t.value.fileSelectionItems)),0===t.fullName.indexOf("toolbar.items")&&(D.generalItems=this.option("toolbar.items")),0===t.fullName.indexOf("toolbar.fileSelectionItems")&&(D.fileItems=this.option("toolbar.fileSelectionItems")),this._toolbar.option(D);break;case"contextMenu":if("contextMenu"===t.fullName&&t.value.items||0===t.fullName.indexOf("contextMenu.items")){var A=this.option("contextMenu.items");this._filesTreeViewContextMenu.option("items",A),this._itemViewContextMenu.option("items",A)}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(t.value),super._optionChanged(t);break;default:super._optionChanged(t)}}_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(t){return this._commandManager.executeCommand(t)}_setCurrentDirectory(t,e){this._controller.setCurrentDirectory(t,e)}_getCurrentDirectory(){return this._controller.getCurrentDirectory()}_onControllerInitialized(t){var{controller:e}=t;this._controller=this._controller||e,this._syncToCurrentDirectory()}_onDataLoading(t){var{operation:e}=t,i=null;"navigation"===e&&(i={focusedItemKey:this._itemKeyToFocus,selectedItemKeys:this.option("selectedItemKeys")},this._itemKeyToFocus=void 0),this._itemView.refresh(i)}_onSelectedDirectoryChanged(){var t=this._getCurrentDirectory();this._syncToCurrentDirectory(),this._actions.onCurrentDirectoryChanged({directory:t.fileItem})}_syncToCurrentDirectory(){var t=this._getCurrentDirectory();this._filesTreeView&&this._filesTreeView.updateCurrentDirectory(),this._breadcrumbs&&this._breadcrumbs.setCurrentDirectory(t),this._checkPathActuality()}_checkPathActuality(){if(!this._lockCurrentPathProcessing){var t=this._controller.getCurrentPath(),e=this._controller.getCurrentPathKeys(),i={};this.option("currentPath")!==t&&(i.currentPath=t),(0,E.bY)(this.option("currentPathKeys"),e)||(i.currentPathKeys=e),(0,w.Qr)(i)||this.option(i)}}getDirectories(t,e){return this._controller.getDirectories(t,e)}_getSelectedItemInfos(){return this._itemView?this._itemView.getSelectedItems():[]}refresh(){return this.executeCommand("refresh")}getCurrentDirectory(){var t=this._getCurrentDirectory();return t&&t.fileItem||null}getSelectedItems(){return this._getSelectedItemInfos().map(t=>t.fileItem)}_onSelectedItemOpened(t){var{fileItemInfo:e}=t,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 wF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.m$R,M.Q8p,M.ToC,M.z30,M.tRk,M.wrG,M.ZLV,M.azD,M.kBH,M.FGH,f.Lz,f.ie,p.Cu],M.m$R,M.Q8p,M.ToC,M.z30,M.tRk,M.wrG,M.ZLV,M.azD,M.kBH,M.FGH,f.ie]}),n})();var EF=l(1980),pj=l(4554);const gj={provide:ie.JU,useExisting:(0,a.Gpc)(()=>fj),multi:!0};let fj=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),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 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 pj.Z(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-filter-builder"]],contentQueries:function(e,i,r){if(1&e&&(a.Suo(r,M.M5u,4),a.Suo(r,M.fj7,4)),2&e){let v;a.iGM(v=a.CRH())&&(i.customOperationsChildren=v),a.iGM(v=a.CRH())&&(i.fieldsChildren=v)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,gj,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),SF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.FJZ,M.RbS,M.FZZ,M.CxW,M.$wd,M.xHg,f.Lz,f.ie,p.Cu],M.FJZ,M.RbS,M.FZZ,M.CxW,M.$wd,M.xHg,f.ie]}),n})();var DF,OF=l(7050),BA={};function TF(n,t,e){BA[n]=t,e&&(DF=BA[n])}const _j={getFigures:function(n){var t=1/n.length;return n.map(function(e,i,r){var v=r[i+1]?r[i+1]:r[i];return[.5-e/2,t*i,.5+e/2,t*i,.5+v/2,t*(i+1),.5-v/2,t*(i+1)]})},normalizeValues:function(n){var t=n.reduce(function(e,i){return Math.max(i.value,e)},n[0]&&n[0].value||0);return n.map(function(e){return e.value/t})}};var Cj=["normal","hover","selection","selection"];function NA(n,t,e){var i=t.border,r=e.border,v=(0,w.$K)(i.visible)?i.visible:r.visible,D=(0,w.$K)(i.width)?i.width:r.width;return{fill:n,hatching:t.hatching,stroke:i.color||r.color,"stroke-width":v?D:0}}function IF(n,t){var e=t.data;this.code=0,this.widget=n,this.figure=t.figure,this.argument=e.argument,this.value=e.value,this.data=e.dataItem,this.percent=t.percent,this.id=t.id,this.color=t.color,this.states={normal:NA(t.color,t.itemOptions,t.itemOptions),hover:NA(t.color,t.itemOptions.hoverStyle,t.itemOptions),selection:NA(t.color,t.itemOptions.selectionStyle,t.itemOptions)}}IF.prototype={getState:function(){return Cj[this.code]},getNormalStyle:function(){return this.states.normal},setHover:function(){this.hover(!0)},hover:function(n){!this.widget._getOption("hoverEnabled",!0)||n===this.isHovered()||(this.widget._suspend(),n&&this.widget.clearHover(),this.setState(1,n),this.widget._eventTrigger("hoverChanged",{item:this}),this.widget._resume())},setState:function(n,t){t?this.code|=n:this.code&=~n,this.widget._applyTilesAppearance()},select:function(n){var t=this.widget._getOption("selectionMode",!0);"none"===t||n===this.isSelected()||(this.widget._suspend(),n&&"multiple"!==t&&this.widget.clearSelection(),this.setState(2,n),this.widget._eventTrigger("selectionChanged",{item:this}),this.widget._resume())},showTooltip:function(n){this.widget._showTooltip(this.id,n)},getColor:function(){return this.color},isHovered:function(){return!!(1&this.code)},isSelected:function(){return!!(2&this.code)}};const xj=IF;var vu="NODES_CREATE";function HA(n){return{fill:n.fill,hatching:n.hatching}}TF("dynamicslope",_j,!0),TF("dynamicheight",{getFigures:function(n,t,e){var i=0,r=0,v=0,D=0,A=t/2,z=.5-A,Q=1-e,ue=.5-A,we=.5+A;return n.map(function(Le){return v=D,r=i,D=z*(i+=Le)/Q,r<=Q&&i<=Q?[v,r,1-v,r,1-D,i,0+D,i]:r<=Q&&i>Q?[v,r,1-v,r,we,Q,we,i,ue,i,ue,Q]:[ue,r,we,r,we,i,ue,i]})},normalizeValues:function(n){var t=n.reduce(function(e,i){return e+i.value},0);return n.map(function(e){return e.value/t})}});var zA=Cl.inherit({_rootClass:"dxf-funnel",_rootClassPrefix:"dxf",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",neckWidth:vu,neckHeight:vu,inverted:vu,algorithm:vu,item:vu,valueField:vu,argumentField:vu,colorField:vu,palette:vu,paletteExtensionMode:vu,sortData:vu},_themeDependentChanges:[vu],_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:E.ZT,_applySize:function(n){return this._rect=n.slice(),this._change(["TILING"]),this._rect},_getAlignmentRect:function(){return this._rect},_change_TILING:function(){var n=this,t=n._items,e=n._rect,i=function(r,v){var D=v%2;return e[0+D]+(e[2+D]-e[0+D])*r};this._group.clear(),t.forEach(function(r,v){var D=r.figure.map(i),A=n._renderer.path([],"area").attr({points:D}).append(n._group);r.coords=D,r.element=A}),this._requestChange(["TILES"])},_customChangesOrder:[vu,"LAYOUT","TILING","TILES","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange([vu])},_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(n){var t=n.getState();n.element.smartAttr(n.states[t])})},_hitTestTargets:function(n,t){var i,e=this;return this._proxyData.some(function(r){if(i=r.call(e,n,t))return!0}),i},clearHover:function(){this._suspend(),this._items.forEach(function(n){n.isHovered()&&n.hover(!1)}),this._resume()},clearSelection:function(){this._suspend(),this._items.forEach(function(n){n.isSelected()&&n.select(!1)}),this._resume()},_getData:function(){var n=this._dataSourceItems()||[],t=this._getOption("valueField",!0),e=this._getOption("argumentField",!0),i=this._getOption("colorField",!0),r=n.reduce(function(D,A){var z=Number(A[t]);return z>=0&&(D[0].push({value:z,color:A[i],argument:A[e],dataItem:A}),D[1]+=z),D},[[],0]),v=r[0];return n.length>0&&0===v.length&&this._incidentOccurred("E2005",t),r[1]?(this._getOption("sortData",!0)&&v.sort(function(D,A){return A.value-D.value}),v):[]},_buildNodes:function(){var n=this,t=n._getData(),e=function mj(n){return BA[Sn(n)]||DF}(n._getOption("algorithm",!0)),i=e.normalizeValues(t),r=n._getOption("item"),v=e.getFigures(i,n._getOption("neckWidth",!0),n._getOption("neckHeight",!0)),D=n._themeManager.createPalette(n._getOption("palette",!0),{useHighlight:!0,extensionMode:n._getOption("paletteExtensionMode",!0),count:v.length});n._items=v.map(function(A,z){var Q=t[z];return new xj(n,{figure:A,data:Q,percent:i[z],id:z,color:Q.color||D.getNextColor(),itemOptions:r})}),n._getOption("inverted",!0)&&n._items.forEach(function(A){A.figure=function bj(n){return n.map(function(t,e){return e%2?1-t:t})}(A.figure)}),n._renderer.initHatching(),n._change(["TILING","DRAWN"])},_showTooltip:E.ZT,hideTooltip:E.ZT,getAllItems:function(){return this._items.slice()},_getLegendData(){return this._items.map(n=>{var t=n.states;return{id:n.id,visible:!0,text:n.argument,item:n,states:{normal:HA(t.normal),hover:HA(t.hover),selection:HA(t.selection)}}})},_getMinSize:function(){var n=this._getOption("adaptiveLayout");return[n.width,n.height]}});(0,T.Z)("dxFunnel",zA);const Ip=zA;zA.addPlugin(Ha);var WA="outside";function V0(n){return(n=Sn(n))===WA||"inside"!==n}function uD(n,t,e){return e?n-t.height:n}function Ej(n,t,e,i){return{x:n[2]+e.horizontalOffset+5,y:uD(n[3]+e.verticalOffset,t,i)}}function Sj(n,t,e,i){return{x:n[0]-t.width-e.horizontalOffset-5,y:uD(n[1]+e.verticalOffset,t,i)}}function Oj(n,t,e){return{x:n[0]+(n[2]-n[0])/2+e.horizontalOffset-t.width/2,y:n[1]+e.verticalOffset+(n[7]-n[1])/2-t.height/2}}var kj={name:"lables",init:E.ZT,dispose:E.ZT,extenders:{_initCore:function(){this._labelsGroup=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._labels=[]},_applySize:function(){var n=this._getOption("label"),t=this._getOption("adaptiveLayout"),e=this._rect,i=0,r=e[2]-e[0];this._labelRect=e.slice(),this._labels.length&&V0(n.position)?(i=this._labels.map(function(D){return D.resetEllipsis(),D.getBoundingRect().width}).reduce(function(D,A){return Math.max(D,A)},0)+n.horizontalOffset+function wj(n){return(n=Sn(n))===WA?5:"inside"===n?0:20}(n.position),!t.keepLabels&&r-i<t.width?this._labels.forEach(function(D){D.draw(!1)}):(r-i<t.width&&(i=(i=r-t.width)>0?i:0),this._labels.forEach(function(D){D.draw(!0)}),"left"===n.horizontalAlignment?e[0]+=i:e[2]-=i)):Sn("none"!==this._getOption("resolveLabelOverlapping",!0))&&this._labels.forEach(D=>!D.isVisible()&&D.draw(!0))},_buildNodes:function(){this._createLabels()},_change_TILING:function(){var r,n=this,t=n._getOption("label"),e=Oj,i=n._getOption("inverted",!0);V0(t.position)&&(Sn(t.position)===WA?e="left"===t.horizontalAlignment?Sj:Ej:(r=this._defaultLabelTextAlignment(),e="left"===t.horizontalAlignment?function Tj(n,t,e){return function(i,r,v,D){return{x:"left"===e?n[0]:t[0]-r.width-v.horizontalOffset-20,y:uD(i[3]+v.verticalOffset,r,D)}}}(this._labelRect,this._rect,r):function Dj(n,t,e){return function(i,r,v,D){return{x:"left"===e?t[2]+v.horizontalOffset+20:n[2]-r.width,y:uD(i[3]+v.verticalOffset,r,D)}}}(this._labelRect,this._rect,r))),n._labels.forEach(function(v,D){var A=n._items[D],z=A.getNormalStyle()["stroke-width"],Q=i?z/2:-z/2,ue=Q?A.coords.map(function(Ue,ut){return 1===ut||3===ut?Ue-Q:2===ut?Ue-z:0===ut?Ue+z:Ue}):A.coords;if(t.showForZeroValues||0!==A.value){V0(t.position)&&n._correctLabelWidth(v,A.coords,t);var we=v.getBoundingRect(),Le=function Aj(n,t,e){return n.x<e[0]&&(n.x=e[0]),n.x+t.width>e[2]&&(n.x=e[2]-t.width),n.y<e[1]&&(n.y=e[1]),n.y+t.height>e[3]&&(n.y=e[3]-t.height),n}(e(ue,we,t,i),we,n._labelRect);v.setFigureToDrawConnector(ue),v.shift(Le.x,Le.y)}else v.draw(!1)}),n._resolveLabelOverlapping()}},members:{_resolveLabelOverlapping(){var n=this,t=Sn(n._getOption("resolveLabelOverlapping",!0)),e=this._getOption("inverted",!0)?n._labels.slice().reverse():n._labels;if("hide"===t)e.reduce((r,v)=>(v.getBoundingRect().y<r?v.hide():r=v.getBoundingRect().y+v.getBoundingRect().height,r),0);else if("shift"===t){var i=this._labelRect[3];e.reduce((r,v,D,A)=>{var[z,Q]=r,ue=v.getBoundingRect(),we=ue.y;return ue.y<z&&(v.shift(ue.x,z),we=z),we-z>0&&(Q+=we-z),we+ue.height>i?Q&&Q>we+ue.height-i?(function Pj(n,t,e){n.reduce((i,r,v,D)=>{var A=D[v+1];if(i>0){var z=r.getBoundingRect(),Q=A?A.getBoundingRect().y+A.getBoundingRect().height:e,we=Math.min(z.y-Q,i);D.slice(0,v+1).forEach(Le=>{var Ue=Le.getBoundingRect();Le.shift(Ue.x,Ue.y-we)}),i-=we}return i},t)}(A.slice(0,D).reverse(),we+ue.height-i,n._labelRect[1]),Q-=we+ue.height-i,v.shift(ue.x,we-(we+ue.height-i)),z=we-(we+ue.height-i)+ue.height):v.hide():z=we+ue.height,[z,Q]},[this._labelRect[1],0])}},_defaultLabelTextAlignment:function(){return this._getOption("rtlEnabled",!0)?"right":"left"},_correctLabelWidth:function(n,t,e){var i="left"===e.horizontalAlignment,D=(i?t[0]:this._labelRect[2])-(i?this._labelRect[0]:t[2]);n.getBoundingRect().width>D&&n.fit(D)},_createLabels:function(){var n=this,t=n._getOption("label"),e=function Ij(n,t){var e="left"===n.horizontalAlignment,i=e?4:-4,r=t?-1:0;function v(D){return e?[D[0]+1,D[1]+r]:[D[2]-1,D[3]+r]}return{isLabelInside:function(){return!V0(n.position)},getFigureCenter:v,prepareLabelPoints:function(D){var A=D.x+i,z=D.y,Q=A+D.width;return[...Array(D.height+1)].map((ue,we)=>[A,z+we]).concat([...Array(D.height+1)].map((ue,we)=>[Q,z+we]))},isHorizontal:function(){return!0},findFigurePoint:function(D){return v(D)},adjustPoints:function(D){return D.map(Math.round)}}}(t,n._getOption("inverted",!0));this._labelsGroup.clear(),t.visible&&(this._labels=n._items.map(function(i){var r=new cf({renderer:n._renderer,labelsGroup:n._labelsGroup,strategy:e});return r.setOptions(function Mj(n,t,e){var i=n||{},r=(0,y.l)({},i.font)||{},v=i.border||{},D=i.connector||{},A={fill:i.backgroundColor||t,"stroke-width":v.visible&&v.width||0,stroke:v.visible&&v.width?v.color:"none",dashStyle:v.dashStyle},z={stroke:D.visible&&D.width?D.color||t:"none","stroke-width":D.visible&&D.width||0,opacity:D.opacity};return r.color="none"===i.backgroundColor&&"#ffffff"===Sn(r.color)&&"inside"!==i.position?t:r.color,{format:i.format,textAlignment:i.textAlignment||(V0(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:A,connector:z,wordWrap:n.wordWrap,textOverflow:n.textOverflow}}(t,i.color,n._defaultLabelTextAlignment())),r.setData({item:i,value:i.value,percent:i.percent}),r.draw(!0),r}),this._labels.length&&V0(t.position)&&this._requestChange(["LAYOUT"]))}},customize:function(n){n.prototype._proxyData.push(function(t,e){var r,i=this;return i._labels.forEach(function(v,D){var A=v.getBoundingRect();if(t>=A.x&&t<=A.x+A.width&&e>=A.y&&e<=A.y+A.height){var z=V0(i._getOption("label").position)?"outside":"inside";return r={id:D,type:z+"-label"},!0}}),r}),["label","resolveLabelOverlapping"].forEach(t=>{n.addChange({code:t.toUpperCase(),handler:function(){this._createLabels(),this._requestChange(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:t})})},fontFields:["label.font"]},dD=_o.Z.down,PF=_o.Z.move;function Rb(n){this._initHandlers(n)}Rb.prototype={constructor:Rb,_initHandlers:function(n){var t=b.Z.getDocument();function e(D){!function Rj(n,t){var e=t.getData(n);e>=0&&t.click({node:t.getNode(e),coords:t.getCoords(n),event:n})}(D,n)}n.getCoords=function(D){var A=(0,k.a0)(D),z=n.widget._renderer.getRootOffset();return[A.x-z.left,A.y-z.top]},n.root.on(g.u,e),n.root.on(dD,r),d.Z.on(t,dD,r),d.Z.on(t,PF,v),this._disposeHandlers=function(){n.root.off(g.u,e),n.root.off(dD,r),d.Z.off(t,dD,r),d.Z.off(t,PF,v)};var i=!1;function r(D){i?i=!1:(void 0!==n.getData(D)&&(i=!0),v(D))}function v(D){(function Lj(n,t){var e=t.getData(n);e>=0?t.getNode(e).setHover():t.widget.clearHover()})(D,n),n.widget._getOption("tooltip").enabled&&function Bj(n,t){var i,e=t.getData(n,!0);e>=0?(i=(0,k.a0)(n),t.getNode(e).showTooltip([i.x,i.y])):t.widget.hideTooltip()}(D,n)}},dispose:function(){this._disposeHandlers()}};var Vj=0,kF=Ip.prototype;kF._eventsMap.onItemClick={name:"itemClick"},kF._eventsMap.onLegendClick={name:"legendClick"};var Hj={name:"tracker",init:function(){var n=this,t="__funnel_data_"+Vj++,e=function(i){var r=n._renderer.getRootOffset(),v=Math.floor(i.pageX-r.left),D=Math.floor(i.pageY-r.top);return n._hitTestTargets(v,D)};n._tracker=new Rb({widget:n,root:n._renderer.root,getData:function(i,r){var D=i.target[t];if((0,w.$K)(D))return D;var A=e(i);return r&&A&&"inside-label"!==A.type?void 0:A&&A.id},getNode:function(i){return n._items[i]},click:function(i){var r=e(i.event);n._eventTrigger("legend"===(r&&r.type)?"legendClick":"itemClick",{item:i.node,event:i.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_TILING:function(){var n=this._dataKey;this._items.forEach(function(t,e){t.element.data(n,e)})}}};function RF(n,t,e){var i=e.getRootOffset();return n||t&&[(t[0]+t[2])/2+i.left,(t[1]+t[5])/2+i.top]||[-1e3,-1e3]}var zj={name:"funnel-tooltip",init:E.ZT,dispose:E.ZT,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(n,t){var e=RF(t,n.coords,this._renderer);this._tooltip.move(e[0],e[1],0)},_showTooltip:function(n,t){var e=this,i=e._tooltip,r=e._items[n];if(e._tooltipIndex!==n){var v=A=>{void 0!==A&&(A||i.hide(),e._tooltipIndex=A?n:-1)},D=RF(t,r.coords,this._renderer);v(i.show({value:r.value,valueText:i.formatValue(r.value),percentText:i.formatValue(r.percent,"percent"),percent:r.percent,item:r},{x:D[0],y:D[1],offset:0},{item:r},void 0,v))}else e._moveTooltip(r,t)}},customize:function(n){n.addPlugin(Ve)}};Ip.addPlugin(kj),Ip.addPlugin(Bu),Ip.addPlugin(Oe),Ip.addPlugin(zC),Ip.addPlugin(Hj),Ip.addPlugin(zj),Ip.addPlugin(xi);let LF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.lsC,M.lj9,M.y1h,M.bgw,M.Ye1,M.kZH,M.gN6,M.e1H,M.dwQ,M.YXG,M.FZZ,M.FYN,M.KjY,M.rrz,M.lTN,M.rHV,M.Kx,M.vZC,M.Ois,f.Lz,f.ie,p.Cu],M.lsC,M.lj9,M.y1h,M.bgw,M.Ye1,M.kZH,M.gN6,M.e1H,M.dwQ,M.YXG,M.FZZ,M.FYN,M.KjY,M.rrz,M.lTN,M.rHV,M.Kx,M.vZC,M.Ois,f.ie]}),n})();var GA=l(4969),Df="dx-gallery",Uj=Df+"-wrapper",BF="dx-gallery-loop",Zj=Df+"-container",FF=Df+"-active",Lb=Df+"-item",Bb=Df+"-item-invisible",Fb=Lb+"-loop",Kj="."+Lb,jA=Lb+"-selected",VF=Df+"-indicator",$A=VF+"-item",NF="."+$A,HF=$A+"-selected",WF=sa.Z.inherit({_supportedKeys:function(){return(0,y.l)(this.callBase(),{pageUp:E.ZT,pageDown:E.ZT})},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{direction:"next",onClick:null,hoverStateEnabled:!0,activeStateEnabled:!0})},_render:function(){this.callBase();var n=this,t=this.$element(),e=(0,k.V4)(g.u,this.NAME);t.addClass(Df+"-nav-button-"+this.option("direction")),d.Z.off(t,e),d.Z.on(t,e,function(i){n._createActionByOption("onClick")({event:i})})},_optionChanged:function(n){switch(n.name){case"onClick":case"direction":this._invalidate();break;default:this.callBase(n)}}}),UF=Ab.Z.inherit({_activeStateUnit:Kj,_wasAnyItemTemplateRendered:!1,_getDefaultOptions:function(){return(0,y.l)(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"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.option("loopItemFocus",this.option("loop"))},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new B.c(function(n,t){var e=(0,u.Z)("<img>").addClass("dx-gallery-item-image");(0,w.PO)(t)?(this._prepareDefaultItemTemplate(t,n),e.attr({src:t.imageSrc,alt:t.imageAlt}).appendTo(n)):e.attr("src",String(t)).appendTo(n)}.bind(this),["imageSrc","imageAlt","text","html"],this.option("integrationOptions.watchMethod"))})},_dataSourceOptions:function(){return{paginate:!1}},_itemContainer:function(){return this._$container},_itemClass:function(){return Lb},_itemDataKey:function(){return"dxGalleryItemData"},_actualItemWidth:function(){var n=this.option("wrapAround");return this.option("stretchImages")?1/(n?this._itemsPerPage()+1:this._itemsPerPage()):n?this._itemPercentWidth()*this._itemsPerPage()/(this._itemsPerPage()+1):this._itemPercentWidth()},_itemPercentWidth:function(){var t=(0,s.Y_)(this.$element()),e=this.option("initialItemWidth");return e&&e<=t?e/t:1},_itemsPerPage:function(){var n=(0,fi.Ym)()?Math.floor(1/this._itemPercentWidth()):1;return Math.min(n,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(Df),this.$element().toggleClass(BF,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 n=this.option("selectedIndex")||0;this._stopItemAnimations(),this._clearCacheWidth(),this._cloneDuplicateItems(),this._renderItemSizes(),this._renderItemPositions(),this._renderIndicator(),this._renderContainerPosition(this._calculateIndexOffset(n),!0),this._renderItemVisibility()},_renderDragHandler:function(){var n=(0,k.V4)("dragstart",this.NAME);d.Z.off(this.$element(),n),d.Z.on(this.$element(),n,"img",function(){return!1})},_renderWrapper:function(){this._$wrapper||(this._$wrapper=(0,u.Z)("<div>").addClass(Uj).appendTo(this.$element()))},_renderItems:function(n){if(!(0,fi.Ym)()){var t=this.option("selectedIndex");n=n.length>t?n.slice(t,t+1):n.slice(0,1)}this.callBase(n),this._loadNextPageIfNeeded()},_onItemTemplateRendered(){return()=>{this._wasAnyItemTemplateRendered||(this._wasAnyItemTemplateRendered=!0,(0,Eb.U_)(this.$element()))}},_renderItemsContainer:function(){this._$container||(this._$container=(0,u.Z)("<div>").addClass(Zj).appendTo(this._$wrapper))},_cloneDuplicateItems:function(){if(this.option("loop")){var i,t=(this.option("items")||[]).length,e=t-1;if(t){this._getLoopedItems().remove();var r=Math.min(this._itemsPerPage(),t),v=this._getRealItems(),D=this._itemContainer();for(i=0;i<r;i++)this._cloneItemForDuplicate(v[i],D);for(i=0;i<r;i++)this._cloneItemForDuplicate(v[e-i],D)}}},_cloneItemForDuplicate:function(n,t){n&&(0,u.Z)(n).clone(!1).addClass(Fb).css("margin",0).appendTo(t)},_getRealItems:function(){var n="."+Lb+":not(."+Fb+")";return this.$element().find(n)},_getLoopedItems:function(){return this.$element().find("."+Fb)},_emptyMessageContainer:function(){return this._$wrapper},_renderItemSizes:function(n){var t=this._itemElements(),e=this._actualItemWidth();void 0!==n&&(t=t.slice(n)),t.each(function(i){(0,s.Ns)((0,u.Z)(t[i]),100*e+"%")})},_renderItemPositions:function(){var n=this._actualItemWidth(),t=this._itemsCount(),e=this._itemsPerPage(),i=this.$element().find("."+Fb).length,r=t+i-1,v=this.option("wrapAround")?.5:0,D=this._itemFreeSpace(),A=!!D,z=this.option("rtlEnabled"),Q=this.option("selectedIndex"),ue=z?"Right":"Left";this._itemElements().each(function(we){var Le=we,Ue=(0,u.Z)(this).hasClass(Fb);if(we>t+e-1&&(Le=r-Le-e),Ue||0===Le){var ut=n*(Le+v)+D*(Le+1-v),It=Ue?ue.toLowerCase():"margin"+ue;(0,u.Z)(this).css(It,100*ut+"%")}else A&&(0,u.Z)(this).css("margin"+ue,100*D+"%")}),this._relocateItems(Q,Q,!0)},_itemFreeSpace:function(){var n=this._itemsPerPage();return this.option("wrapAround")&&(n+=1),(1-this._actualItemWidth()*n)/(n+1)},_renderContainerPosition:function(n,t,e){this._releaseInvisibleItems(),n=n||0;var A,i=this,r=this._actualItemWidth(),v=n,D=this._offsetDirection()*v*(r+this._itemFreeSpace());return(0,w.$K)(this._animationOverride)&&(e=this._animationOverride,delete this._animationOverride),e?(i._startSwipe(),A=i._animate(D).done(i._endSwipe.bind(i))):((0,al.pB)(this._$container,{left:D*this._elementWidth(),top:0}),A=(new P.BH).resolveWith(i)),A.done(function(){this._deferredAnimate&&i._deferredAnimate.resolveWith(i),t&&this._renderItemVisibility()}),A.promise()},_startSwipe:function(){this.$element().addClass(FF)},_endSwipe:function(){this.$element().removeClass(FF)},_animate:function(n,t){var e=this,i=this._$container,r=new P.BH;return h.Z.animate(this._$container,(0,y.l)({type:"slide",to:{left:n*this._elementWidth()},duration:e.option("animationDuration"),complete:function(){e._needMoveContainerForward()&&(0,al.pB)(i,{left:0,top:0}),e._needMoveContainerBack()&&(0,al.pB)(i,{left:e._maxContainerOffset()*e._elementWidth(),top:0}),r.resolveWith(e)}},t||{})),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 n=this._itemElements().first().find(".dx-item-content");!n||n.is(":hidden")||(this.option("height")||this.option("height",(0,s.zp)(n)),this.option("width")||this.option("width",(0,s.Y_)(n)),this._dimensionChanged())},_renderIndicator:function(){if(this._cleanIndicators(),this.option("showIndicator")){for(var n=this._$indicator=(0,u.Z)("<div>").addClass(VF).appendTo(this._$wrapper),t=this.option("indicatorEnabled"),e=0;e<this._pagesCount();e++){var i=(0,u.Z)("<div>").addClass($A).appendTo(n);t&&this._attachIndicatorClickHandler(i,e)}this._renderSelectedPageIndicator()}},_attachIndicatorClickHandler:function(n,t){d.Z.on(n,(0,k.V4)(g.u,this.NAME),function(e){this._indicatorSelectHandler(e,t)}.bind(this))},_detachIndicatorClickHandler:function(n){d.Z.off(n,(0,k.V4)(g.u,this.NAME))},_toggleIndicatorInteraction:function(n){var t,e=(null===(t=this._$indicator)||void 0===t?void 0:t.find(NF))||[];e.length&&e.each(function(i,r){n?this._attachIndicatorClickHandler((0,u.Z)(r),i):this._detachIndicatorClickHandler((0,u.Z)(r))}.bind(this))},_cleanIndicators:function(){this._$indicator&&this._$indicator.remove()},_renderSelectedItem:function(){var n=this.option("selectedIndex");this._itemElements().removeClass(jA).eq(n).addClass(jA)},_renderItemVisibility:function(){this.option("initialItemWidth")||this.option("wrapAround")?this._releaseInvisibleItems():(this._itemElements().each(function(n,t){this.option("selectedIndex")===n?(0,u.Z)(t).removeClass(Bb):(0,u.Z)(t).addClass(Bb)}.bind(this)),this._getLoopedItems().addClass(Bb))},_releaseInvisibleItems:function(){this._itemElements().removeClass(Bb),this._getLoopedItems().removeClass(Bb)},_renderSelectedPageIndicator:function(){if(this._$indicator){var n=this.option("selectedIndex"),t=this._pagesCount()-1,e=Math.ceil(n/this._itemsPerPage());e=Math.min(t,e),this._$indicator.find(NF).removeClass(HF).eq(e).addClass(HF)}},_renderUserInteraction:function(){var n=this.$element(),t=this.option("swipeEnabled")&&this._itemsCount()>1;this._createComponent(n,GA.Z,{disabled:this.option("disabled")||!t,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._elementWidth.bind(this)})},_indicatorSelectHandler:function(n,t){if(this.option("indicatorEnabled")){var e=this._fitPaginatedIndex(t*this._itemsPerPage());this._needLongMove=!0,this.option("selectedIndex",e),this._loadNextPageIfNeeded(e)}},_renderNavButtons:function(){var n=this;n.option("showNavButtons")?(n._prevNavButton=(0,u.Z)("<div>").appendTo(this._$wrapper),n._createComponent(n._prevNavButton,WF,{direction:"prev",onClick:function(){n._prevPage()}}),n._nextNavButton=(0,u.Z)("<div>").appendTo(this._$wrapper),n._createComponent(n._nextNavButton,WF,{direction:"next",onClick:function(){n._nextPage()}}),this._renderNavButtonsVisibility()):n._cleanNavButtons()},_prevPage:function(){var n=this._itemsPerPage(),t=this.option("selectedIndex")-n;return t===-n&&n===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t))},_nextPage:function(){var n=this._itemsPerPage(),t=this.option("selectedIndex")+n;return t===n&&n===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t)).done(this._loadNextPageIfNeeded)},_loadNextPageIfNeeded:function(n){n=void 0===n?this.option("selectedIndex"):n,this._dataSource&&this._dataSource.paginate()&&this._shouldLoadNextPage(n)&&!this._isDataSourceLoading()&&!this._isLastPage()&&this._loadNextPage().done(function(){this._renderIndicator(),this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility(),this._renderItemSizes(n)}.bind(this))},_shouldLoadNextPage:function(n){return n+2*this._itemsPerPage()>this.option("items").length},_allowDynamicItemsAppend:function(){return!0},_fitPaginatedIndex:function(n){var t=this._itemsPerPage(),e=n<0?t+n:this._itemsCount()-n;return n>this._itemsCount()-1?(n=0,this._goToGhostItem=!0):e<t&&e>0&&(n>0?n-=t-e:n+=t-e),n},_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 n=this.option("selectedIndex"),t=this.option("loop"),e=this._itemsCount();if(this._prevNavButton.show(),this._nextNavButton.show(),0===e&&(this._prevNavButton.hide(),this._nextNavButton.hide()),!t){var i=n===e-this._itemsPerPage(),r=e<2||0===n;i=this._dataSource&&this._dataSource.paginate()?i&&this._isLastPage():i||e<2,r&&this._prevNavButton.hide(),i&&this._nextNavButton.hide()}}},_setupSlideShow:function(){var n=this,t=n.option("slideshowDelay");clearTimeout(n._slideshowTimer),t&&(n._slideshowTimer=setTimeout(function(){n._userInteraction?n._setupSlideShow():n.nextItem(!0).done(n._setupSlideShow)},t))},_elementWidth:function(){return this._cacheElementWidth||(this._cacheElementWidth=(0,s.dz)(this.$element())),this._cacheElementWidth},_clearCacheWidth:function(){delete this._cacheElementWidth},_swipeStartHandler:function(n){this._releaseInvisibleItems(),this._clearCacheWidth(),this._elementWidth();var t=this._itemsCount();if(t){if(this._stopItemAnimations(),this._startSwipe(),this._userInteraction=!0,!this.option("loop")){var e=this.option("selectedIndex"),i=t-e-this._itemsPerPage(),r=e,v=this.option("rtlEnabled");n.event.maxLeftOffset=v?r:i,n.event.maxRightOffset=v?i:r}}else n.event.cancel=!0},_stopItemAnimations:function(){h.Z.stop(this._$container,!0)},_swipeUpdateHandler:function(n){var t=this.option("wrapAround")?1:0,e=this._offsetDirection()*n.event.offset*(this._itemsPerPage()+t)-this.option("selectedIndex");e<0&&this._loadNextPageIfNeeded(Math.ceil(Math.abs(e))),this._renderContainerPosition(e)},_swipeEndHandler:function(n){var t=n.event.targetOffset*this._offsetDirection()*this._itemsPerPage(),e=this.option("selectedIndex"),i=this._fitIndex(e-t),r=this._fitPaginatedIndex(i);Math.abs(t)<this._itemsPerPage()?this._relocateItems(e):this._itemsPerPage()!==this._itemsCount()?this.option("selectedIndex",r):this._relocateItems(t>0?-t:0)},_setFocusOnSelect:function(){this._userInteraction=!0;var n=this.itemElements().filter("."+jA);this.option("focusedElement",(0,S.u)(n)),this._userInteraction=!1},_flipIndex:function(n){var t=this._itemsCount();return(n%=t)>(t+1)/2&&(n-=t),n<-(t-1)/2&&(n+=t),n},_fitIndex:function(n){if(!this.option("loop"))return n;var t=this._itemsCount();return(n>=t||n<0)&&(this._goToGhostItem=!0),n>=t&&(n=t-n),(n%=t)<0&&(n+=t),n},_clean:function(){this.callBase(),this._cleanIndicators(),this._cleanNavButtons()},_dispose:function(){this._wasAnyItemTemplateRendered=null,clearTimeout(this._slideshowTimer),this.callBase()},_updateSelection:function(n,t){this._stopItemAnimations(),this._renderNavButtonsVisibility(),this._renderSelectedItem(),this._relocateItems(n[0],t[0]),this._renderSelectedPageIndicator()},_relocateItems:function(n,t,e){void 0===t&&(t=n);var i=this._calculateIndexOffset(n,t);this._renderContainerPosition(i,!0,this.option("animationEnabled")&&!e).done(function(){this._setFocusOnSelect(),this._userInteraction=!1,this._setupSlideShow()})},_focusInHandler:function(){h.Z.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_focusOutHandler:function(){h.Z.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_selectFocusedItem:E.ZT,_moveFocus:function(){this._stopItemAnimations(),this.callBase.apply(this,arguments);var n=this.itemElements().index((0,u.Z)(this.option("focusedElement")));this.goToItem(n,this.option("animationEnabled"))},_visibilityChanged:function(n){n&&this._reviseDimensions()},_calculateIndexOffset:function(n,t){void 0===t&&(t=n);var e=t-n;return this.option("loop")&&!this._needLongMove&&this._goToGhostItem&&(this._isItemOnFirstPage(n)&&this._isItemOnLastPage(t)?e=-this._itemsPerPage():this._isItemOnLastPage(n)&&this._isItemOnFirstPage(t)&&(e=this._itemsPerPage()),this._goToGhostItem=!1),this._needLongMove=!1,e-t},_isItemOnLastPage:function(n){return n>=this._itemsCount()-this._itemsPerPage()},_isItemOnFirstPage:function(n){return n<=this._itemsPerPage()},_optionChanged:function(n){switch(n.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(BF,n.value),this.option("loopItemFocus",n.value),(0,fi.Ym)()&&(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":(0,fi.Ym)()&&(this._renderItemSizes(),this._renderItemPositions(),this._renderItemVisibility());break;case"swipeEnabled":this._renderUserInteraction();break;case"indicatorEnabled":this._toggleIndicatorInteraction(n.value);break;default:this.callBase(n)}},goToItem:function(n,t){var e=this.option("selectedIndex"),i=this._itemsCount();return void 0!==t&&(this._animationOverride=t),n=this._fitIndex(n),this._deferredAnimate=new P.BH,n>i-1||n<0||e===n?this._deferredAnimate.resolveWith(this).promise():(this.option("selectedIndex",n),this._deferredAnimate.promise())},prevItem:function(n){return this.goToItem(this.option("selectedIndex")-1,n)},nextItem:function(n){return this.goToItem(this.option("selectedIndex")+1,n)}});(0,T.Z)("dxGallery",UF);let ZF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,f.Lz,f.ie,p.Cu],M.Q8p,f.ie]}),n})();var N0="tasks",cD="dependencies",hD="resources",pD="resourceAssignments",Yj_create=n=>({NotifyTaskCreated:(t,e,i)=>{n._onRecordInserted(N0,t,e)},NotifyTaskRemoved:(t,e,i)=>{n._onRecordRemoved(N0,t,i)},NotifyTaskUpdated:(t,e,i)=>{n._onRecordUpdated(N0,t,e)},NotifyParentTaskUpdated:(t,e)=>{n._onParentTaskUpdated(t)},NotifyDependencyInserted:(t,e,i)=>{n._onRecordInserted(cD,t,e)},NotifyDependencyRemoved:(t,e,i)=>{n._onRecordRemoved(cD,t,i)},NotifyResourceCreated:(t,e,i)=>{n._onRecordInserted(hD,t,e)},NotifyResourceRemoved:(t,e,i)=>{n._onRecordRemoved(hD,t,i)},NotifyResourceAssigned:(t,e,i)=>{n._onRecordInserted(pD,t,e)},NotifyResourceUnassigned:(t,e,i)=>{n._onRecordRemoved(pD,t,i)},NotifyParentDataRecalculated:t=>{n._onParentTasksRecalculated(t)},NotifyTaskCreating:t=>{n._actionsManager.raiseInsertingAction(N0,t)},NotifyTaskRemoving:t=>{n._actionsManager.raiseDeletingAction(N0,t)},NotifyTaskUpdating:t=>{n._actionsManager.raiseUpdatingAction(N0,t)},NotifyTaskMoving:t=>{n._actionsManager.raiseUpdatingAction(N0,t,n._actionsManager.getTaskMovingAction())},NotifyTaskEditDialogShowing:t=>{n._actionsManager.raiseTaskEditDialogShowingAction(t)},NotifyResourceManagerDialogShowing:t=>{n._actionsManager.raiseResourceManagerDialogShowingAction(t)},NotifyDependencyInserting:t=>{n._actionsManager.raiseInsertingAction(cD,t)},NotifyDependencyRemoving:t=>{n._actionsManager.raiseDeletingAction(cD,t)},NotifyResourceCreating:t=>{n._actionsManager.raiseInsertingAction(hD,t)},NotifyResourceRemoving:t=>{n._actionsManager.raiseDeletingAction(hD,t)},NotifyResourceAssigning:t=>{n._actionsManager.raiseInsertingAction(pD,t)},NotifyResourceUnassigning:t=>{n._actionsManager.raiseDeletingAction(pD,t)},NotifyScaleCellPrepared:t=>{n._actionsManager.raiseScaleCellPreparedAction(t)}});class KF extends fA.w{constructor(t,e,i){super(),this._optionName=t,this._getLoadPanel=e,this._dataSourceChangedCallback=i}insert(t,e,i){this._showLoadPanel(),this._getStore().insert(t).done(r=>{e&&e(r),this._hideLoadPanel()}).fail(r=>{i&&i(r),this._hideLoadPanel()})}update(t,e,i,r){this._showLoadPanel(),this._getStore().update(t,e).done((v,D)=>{i&&i(v,D),this._hideLoadPanel()}).fail(v=>{r&&r(v),this._hideLoadPanel()})}remove(t,e,i){this._showLoadPanel(),this._getStore().remove(t).done(r=>{e&&e(r),this._hideLoadPanel()}).fail(r=>{i&&i(r),this._hideLoadPanel()})}_dataSourceChangedHandler(t,e){this._dataSourceChangedCallback(this._optionName,t)}_dataSourceOptions(){return{paginate:!1}}_dataSourceLoadingChangedHandler(t){t&&!this._dataSource.isLoaded()?this._showLoadPanel():this._hideLoadPanel()}_showLoadPanel(){var t;null===(t=this._getLoadPanel())||void 0===t||t.show()}_hideLoadPanel(){var t;null===(t=this._getLoadPanel())||void 0===t||t.hide()}_getStore(){return this._dataSource.store()}_getItems(){return this._getStore()._array||this._dataSource.items()}_reloadDataSource(){return this._dataSource.load()}dispose(){this._disposeDataSource()}_optionChanged(t){}}KF.include(co.Z);const Xj=KF;var YA=l(4265),yu="tasks",gD="dependencies",Vb="resources",fD="resourceAssignments";class Jj{constructor(t){this._gantt=t,this._mappingHelper=t._mappingHelper,this._customFieldsManager=t._customFieldsManager}_createActionByOption(t){return this._gantt._createActionByOption(t)}_getTaskData(t){return this._gantt.getTaskData(t)}_convertCoreToMappedData(t,e){return this._mappingHelper.convertCoreToMappedData(t,e)}_convertMappedToCoreData(t,e){return this._mappingHelper.convertMappedToCoreData(t,e)}_convertMappedToCoreFields(t,e){return this._mappingHelper.convertMappedToCoreFields(t,e)}_convertCoreToMappedFields(t,e){return this._mappingHelper.convertCoreToMappedFields(t,e)}_saveCustomFieldsDataToCache(t,e){this._customFieldsManager.saveCustomFieldsDataToCache(t,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(t){this._taskDblClickAction||this.createTaskDblClickAction(),this._taskDblClickAction(t)}raiseTaskDblClickAction(t,e){var i={cancel:!1,data:this._getTaskData(t),event:e,key:t};return this.taskDblClickAction(i),!i.cancel}createTaskClickAction(){this._taskClickAction=this._createActionByOption("onTaskClick")}taskClickAction(t){this._taskClickAction||this.createTaskClickAction(),this._taskClickAction(t)}raiseTaskClickAction(t,e){var i={key:t,event:e,data:this._getTaskData(t)};this.taskClickAction(i)}createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")}selectionChangedAction(t){this._selectionChangedAction||this.createSelectionChangedAction(),this._selectionChangedAction(t)}raiseSelectionChangedAction(t){this.selectionChangedAction({selectedRowKey:t})}createCustomCommandAction(){this._customCommandAction=this._createActionByOption("onCustomCommand")}customCommandAction(t){this._customCommandAction||this.createCustomCommandAction(),this._customCommandAction(t)}raiseCustomCommand(t){this.customCommandAction({name:t})}createContextMenuPreparingAction(){this._contextMenuPreparingAction=this._createActionByOption("onContextMenuPreparing")}contextMenuPreparingAction(t){this._contextMenuPreparingAction||this.createContextMenuPreparingAction(),this._contextMenuPreparingAction(t)}raiseContextMenuPreparing(t){this.contextMenuPreparingAction(t)}_getInsertingAction(t){switch(t){case yu:return this._getTaskInsertingAction();case gD:return this._getDependencyInsertingAction();case Vb:return this._getResourceInsertingAction();case fD:return this._getResourceAssigningAction()}return()=>{}}raiseInsertingAction(t,e){var i=this._getInsertingAction(t);if(i){var r={cancel:!1,values:this._convertCoreToMappedData(t,e.values)};i(r),e.cancel=r.cancel,e.values=this._convertMappedToCoreData(t,r.values),t===yu&&this._saveCustomFieldsDataToCache("gantt_new_task_key",r.values)}}createTaskInsertingAction(){this._taskInsertingAction=this._createActionByOption("onTaskInserting")}taskInsertingAction(t){this._getTaskInsertingAction()(t)}_getTaskInsertingAction(){return this._taskInsertingAction||this.createTaskInsertingAction(),this._taskInsertingAction}createDependencyInsertingAction(){this._dependencyInsertingAction=this._createActionByOption("onDependencyInserting")}dependencyInsertingAction(t){this._getDependencyInsertingAction()(t)}_getDependencyInsertingAction(){return this._dependencyInsertingAction||this.createDependencyInsertingAction(),this._dependencyInsertingAction}createResourceInsertingAction(){this._resourceInsertingAction=this._createActionByOption("onResourceInserting")}resourceInsertingAction(t){this._getResourceInsertingAction()(t)}_getResourceInsertingAction(){return this._resourceInsertingAction||this.createResourceInsertingAction(),this._resourceInsertingAction}createResourceAssigningAction(){this._resourceAssigningAction=this._createActionByOption("onResourceAssigning")}resourceAssigningAction(t){this._getResourceAssigningAction()(t)}_getResourceAssigningAction(){return this._resourceAssigningAction||this.createResourceAssigningAction(),this._resourceAssigningAction}_getInsertedAction(t){switch(t){case yu:return this._getTaskInsertedAction();case gD:return this._getDependencyInsertedAction();case Vb:return this._getResourceInsertedAction();case fD:return this._getResourceAssignedAction()}return()=>{}}raiseInsertedAction(t,e,i){var r=this._getInsertedAction(t);r&&r({values:e,key:i})}createTaskInsertedAction(){this._taskInsertedAction=this._createActionByOption("onTaskInserted")}taskInsertedAction(t){this._getTaskInsertedAction()(t)}_getTaskInsertedAction(){return this._taskInsertedAction||this.createTaskInsertedAction(),this._taskInsertedAction}createDependencyInsertedAction(){this._dependencyInsertedAction=this._createActionByOption("onDependencyInserted")}dependencyInsertedAction(t){this._getDependencyInsertedAction()(t)}_getDependencyInsertedAction(){return this._dependencyInsertedAction||this.createDependencyInsertedAction(),this._dependencyInsertedAction}createResourceInsertedAction(){this._resourceInsertedAction=this._createActionByOption("onResourceInserted")}resourceInsertedAction(t){this._getResourceInsertedAction()(t)}_getResourceInsertedAction(){return this._resourceInsertedAction||this.createResourceInsertedAction(),this._resourceInsertedAction}createResourceAssignedAction(){this._resourceAssignedAction=this._createActionByOption("onResourceAssigned")}resourceAssignedAction(t){this._getResourceAssignedAction()(t)}_getResourceAssignedAction(){return this._resourceAssignedAction||this.createResourceAssignedAction(),this._resourceAssignedAction}_getDeletingAction(t){switch(t){case yu:return this._getTaskDeletingAction();case gD:return this._getDependencyDeletingAction();case Vb:return this._getResourceDeletingAction();case fD:return this._getResourceUnassigningAction()}return()=>{}}raiseDeletingAction(t,e){var i=this._getDeletingAction(t);if(i){var r={cancel:!1,key:e.key,values:this._convertCoreToMappedData(t,e.values)};i(r),e.cancel=r.cancel}}createTaskDeletingAction(){this._taskDeletingAction=this._createActionByOption("onTaskDeleting")}taskDeletingAction(t){this._getTaskDeletingAction()(t)}_getTaskDeletingAction(){return this._taskDeletingAction||this.createTaskDeletingAction(),this._taskDeletingAction}createDependencyDeletingAction(){this._dependencyDeletingAction=this._createActionByOption("onDependencyDeleting")}dependencyDeletingAction(t){this._getDependencyDeletingAction()(t)}_getDependencyDeletingAction(){return this._dependencyDeletingAction||this.createDependencyDeletingAction(),this._dependencyDeletingAction}createResourceDeletingAction(){this._resourceDeletingAction=this._createActionByOption("onResourceDeleting")}resourceDeletingAction(t){this._getResourceDeletingAction()(t)}_getResourceDeletingAction(){return this._resourceDeletingAction||this.createResourceDeletingAction(),this._resourceDeletingAction}createResourceUnassigningAction(){this._resourceUnassigningAction=this._createActionByOption("onResourceUnassigning")}resourceUnassigningAction(t){this._getResourceUnassigningAction()(t)}_getResourceUnassigningAction(){return this._resourceUnassigningAction||this.createResourceUnassigningAction(),this._resourceUnassigningAction}_getDeletedAction(t){switch(t){case yu:return this._getTaskDeletedAction();case gD:return this._getDependencyDeletedAction();case Vb:return this._getResourceDeletedAction();case fD:return this._getResourceUnassignedAction()}return()=>{}}raiseDeletedAction(t,e,i){var r=this._getDeletedAction(t);r&&r({key:e,values:i})}createTaskDeletedAction(){this._taskDeletedAction=this._createActionByOption("onTaskDeleted")}taskDeletedAction(t){this._getTaskDeletedAction()(t)}_getTaskDeletedAction(){return this._taskDeletedAction||this.createTaskDeletedAction(),this._taskDeletedAction}createDependencyDeletedAction(){this._dependencyDeletedAction=this._createActionByOption("onDependencyDeleted")}dependencyDeletedAction(t){this._getDependencyDeletedAction()(t)}_getDependencyDeletedAction(){return this._dependencyDeletedAction||this.createDependencyDeletedAction(),this._dependencyDeletedAction}createResourceDeletedAction(){this._resourceDeletedAction=this._createActionByOption("onResourceDeleted")}resourceDeletedAction(t){this._getResourceDeletedAction()(t)}_getResourceDeletedAction(){return this._resourceDeletedAction||this.createResourceDeletedAction(),this._resourceDeletedAction}createResourceUnassignedAction(){this._resourceUnassignedAction=this._createActionByOption("onResourceUnassigned")}resourceUnassignedAction(t){this._getResourceUnassignedAction()(t)}_getResourceUnassignedAction(){return this._resourceUnassignedAction||this.createResourceUnassignedAction(),this._resourceUnassignedAction}_getUpdatingAction(t){return t===yu?this._getTaskUpdatingAction():()=>{}}raiseUpdatingAction(t,e,i){if(i=i||this._getUpdatingAction(t)){var r=t===yu,v={cancel:!1,key:e.key,newValues:this._convertCoreToMappedData(t,e.newValues),values:r?this._getTaskData(e.key):this._convertCoreToMappedData(t,e.values)};if(r&&this._customFieldsManager.cache.hasData(v.key)&&this._customFieldsManager.addCustomFieldsDataFromCache(v.key,v.newValues),i(v),e.cancel=v.cancel,e.newValues=this._convertMappedToCoreData(t,v.newValues),r)if(v.cancel)this._customFieldsManager.resetCustomFieldsDataCache(v.key);else{var D=!Object.keys(e.newValues).length;this._saveCustomFieldsDataToCache(v.key,v.newValues,D)}}}createTaskUpdatingAction(){this._taskUpdatingAction=this._createActionByOption("onTaskUpdating")}taskUpdatingAction(t){this._getTaskUpdatingAction()(t)}_getTaskUpdatingAction(){return this._taskUpdatingAction||this.createTaskUpdatingAction(),this._taskUpdatingAction}_getUpdatedAction(t){return t===yu?this._getTaskUpdatedAction():()=>{}}raiseUpdatedAction(t,e,i){var r=this._getUpdatedAction(t);r&&r({values:e,key:i})}createTaskUpdatedAction(){this._taskUpdatedAction=this._createActionByOption("onTaskUpdated")}taskUpdatedAction(t){this._getTaskUpdatedAction()(t)}_getTaskUpdatedAction(){return this._taskUpdatedAction||this.createTaskUpdatedAction(),this._taskUpdatedAction}createTaskEditDialogShowingAction(){this._taskEditDialogShowingAction=this._createActionByOption("onTaskEditDialogShowing")}taskEditDialogShowingAction(t){this._getTaskEditDialogShowingAction()(t)}_getTaskEditDialogShowingAction(){return this._taskEditDialogShowingAction||this.createTaskEditDialogShowingAction(),this._taskEditDialogShowingAction}raiseTaskEditDialogShowingAction(t){var e=this._getTaskEditDialogShowingAction();if(e){var i={cancel:!1,key:t.key,values:this._convertCoreToMappedData(yu,t.values),readOnlyFields:this._convertCoreToMappedFields(yu,t.readOnlyFields),hiddenFields:this._convertCoreToMappedFields(yu,t.hiddenFields)};e(i),t.cancel=i.cancel,t.values=this._convertMappedToCoreData(yu,i.values),t.readOnlyFields=this._convertMappedToCoreFields(yu,i.readOnlyFields),t.hiddenFields=this._convertMappedToCoreFields(yu,i.hiddenFields)}}createResourceManagerDialogShowingAction(){this._resourceManagerDialogShowingAction=this._createActionByOption("onResourceManagerDialogShowing")}resourceManagerDialogShowingAction(t){this._getResourceManagerDialogShowingAction()(t)}_getResourceManagerDialogShowingAction(){return this._resourceManagerDialogShowingAction||this.createResourceManagerDialogShowingAction(),this._resourceManagerDialogShowingAction}raiseResourceManagerDialogShowingAction(t){var e=this._getResourceManagerDialogShowingAction();if(e){var r={cancel:!1,values:t.values.resources.items.map(v=>this._convertMappedToCoreData(Vb,v))};e(r),t.cancel=r.cancel}}createTaskMovingAction(){this._taskMovingAction=this._createActionByOption("onTaskMoving")}taskMovingAction(t){this.getTaskMovingAction()(t)}getTaskMovingAction(){return this._taskMovingAction||this.createTaskMovingAction(),this._taskMovingAction}getScaleCellPreparedAction(){return this._scaleCellPreparedAction||this.createScaleCellPreparedAction(),this._scaleCellPreparedAction}createScaleCellPreparedAction(){this._scaleCellPreparedAction=this._createActionByOption("onScaleCellPrepared")}raiseScaleCellPreparedAction(t){var e=this.getScaleCellPreparedAction();e&&e({scaleIndex:t.scaleIndex,scaleType:this._getScaleType(t.scaleType),scaleElement:(0,S.u)((0,u.Z)(t.scaleElement)),separatorElement:(0,S.u)((0,u.Z)(t.separatorElement)),startDate:new Date(t.start),endDate:new Date(t.end)})}_getScaleType(t){switch(t){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 Qj{constructor(){this._cache={},this._timers={}}saveData(t,e,i){if(e){this._clearTimer(t);var r=this._getCache(t,!0);(0,y.x)(r,e,!0),i&&this._setExpireTimer(t,i)}}pullDataFromCache(t,e){var i=this._getCache(t);i&&(0,y.x)(e,i),this._onKeyExpired(t)}hasData(t){return!!this._cache[t]}resetCache(t){this._onKeyExpired(t)}_getCache(t,e){return!this._cache[t]&&e&&(this._cache[t]={}),this._cache[t]}_setExpireTimer(t,e){this._timers[t]=setTimeout(()=>{e(t,this._getCache(t)),this._onKeyExpired(t)},200)}_onKeyExpired(t){this._clearCache(t),this._clearTimer(t)}_clearCache(t){delete this._cache[t]}_clearTimer(t){var e=this._timers;e&&e[t]&&(clearTimeout(e[t]),delete e[t])}}var Vs={prepareMapHandler:n=>t=>Object.keys(n).reduce((e,i)=>(e["key"===i?"id":i]=n[i](t),e),{}),prepareSetterMapHandler:n=>t=>Object.keys(n).reduce((e,i)=>(n[i](e,t["key"===i?"id":i]),e),{}),compileGettersByOption(n){var t={};for(var e in n){var i=e.match(/(\w*)Expr/);i&&(t[i[1]]=(0,No.vb)(n[i[0]]))}return t},compileSettersByOption(n){var t={};for(var e in n){var i=e.match(/(\w*)Expr/);i&&(t[i[1]]=(0,No.OM)(n[i[0]]))}return t},getStoreObject(n,t){var e=Vs.compileSettersByOption(n);return Object.keys(e).reduce((i,r)=>("key"!==r&&e[r](i,t[r]),i),{})},getInvertedData(n,t){var e={};if(n)for(var i=0;i<n.length;i++){var r=n[i];e[t(r)]=r}return e},getArrayFromOneElement:n=>null==n?[]:[n],getSelectionMode:n=>n?"single":"none",convertTreeToList(n,t){null!=n&&n.data&&null!=n&&n.visible&&t.push(n.data);for(var e=0;e<(null===(i=n.children)||void 0===i?void 0:i.length);e++){var i;Vs.convertTreeToList(n.children[e],t)}},getAllParentNodesKeys(n,t){var e;null!=n&&n.data&&t.push(n.key),null!=n&&null!==(e=n.parent)&&void 0!==e&&e.data&&Vs.getAllParentNodesKeys(n.parent,t)},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:wn.Z.format("dxGantt-sortingAscendingText"),descendingText:wn.Z.format("dxGantt-sortingDescendingText"),clearText:wn.Z.format("dxGantt-sortingClearText"),mode:"single",showSortIndexes:!1},filterRow:void 0,headerFilter:void 0,rtlEnabled:!1})},XA="tasks";class e${constructor(t){this._gantt=t,this._mappingHelper=t._mappingHelper,this.cache=new Qj}_getTaskCustomFields(){var t=this._gantt.option("columns"),e=t&&t.map(r=>r.dataField),i=this._mappingHelper.getTaskMappedFieldNames();return e?e.filter(r=>i.indexOf(r)<0):[]}_getCustomFieldsData(t){return this._getTaskCustomFields().reduce((e,i)=>(t&&void 0!==t[i]&&(e[i]=t[i]),e),{})}addCustomFieldsData(t,e){if(e){var i=this._gantt._tasksOption&&this._gantt._tasksOption._getItems(),r=(0,No.vb)(this._gantt.option("".concat(XA,".keyExpr"))),v=i&&i.filter(Q=>r(Q)===t)[0],D=this._getTaskCustomFields();if(v)for(var A=0;A<D.length;A++){var z=D[A];Object.prototype.hasOwnProperty.call(v,z)&&(e[z]=v[z])}}}appendCustomFields(t){var e=this._gantt._tasksOption&&this._gantt._tasksOption._getItems(),i=this._gantt._getTaskKeyGetter(),r=Vs.getInvertedData(e,i);return t.reduce((v,D)=>{var A=i(D),z=r[A];if(z){var Q={};for(var ue in z)Q[ue]=Object.prototype.hasOwnProperty.call(D,ue)?D[ue]:z[ue];v.push(Q)}else v.push(D);return v},[])}addCustomFieldsDataFromCache(t,e){this.cache.pullDataFromCache(t,e)}saveCustomFieldsDataToCache(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],v=this._getCustomFieldsData(e);Object.keys(v).length>0&&this.cache.saveData(t,v,i?(D,A)=>{var z=this._gantt["_".concat(XA,"Option")];z&&A&&z.update(D,A,(Q,ue)=>{var we={};this.addCustomFieldsData(ue,we),z._reloadDataSource().done(Ue=>{this._gantt._ganttTreeList.updateDataSource(Ue??z._dataSource,!1,r)});var Le=this._gantt.option("selectedRowKey");this._gantt._ganttView._selectTask(Le),this._gantt._actionsManager.raiseUpdatedAction(XA,we,ue)})}:null)}resetCustomFieldsDataCache(t){this.cache.resetCache(t)}}var qA=l(7449),JA=(l(117),l(1031)),GF="dx-radiobutton",jF="dx-radiobutton-icon";class u$ extends Ab.Z{_focusTarget(){return this.$element().parent()}_nullValueSelectionSupported(){return!0}_getDefaultOptions(){var t=super._getDefaultOptions();return(0,y.l)(t,nD.Z._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})}_initMarkup(){super._initMarkup(),(0,E.g0)(()=>{this.itemElements().addClass(GF)})}_keyboardEventBindingTarget(){return this._focusTarget()}_postprocessRenderItem(t){var{itemData:{html:e},itemElement:i}=t;if(!e){var r=(0,u.Z)("<div>").addClass(jF);(0,u.Z)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(r);var v=(0,u.Z)("<div>").append(r).addClass("dx-radio-value-container");(0,u.Z)(i).prepend(v)}super._postprocessRenderItem(t)}_processSelectableItem(t,e){super._processSelectableItem(t,e),t.toggleClass("dx-radiobutton-checked",e).find(".".concat(jF)).first().toggleClass("dx-radiobutton-icon-checked",e),this.setAria("checked",e,t)}_refreshContent(){this._prepareContent(),this._renderContent()}_supportedKeys(){var t=super._supportedKeys();return(0,y.l)({},t,{enter:function(e){return e.preventDefault(),t.enter.apply(this,arguments)},space:function(e){return e.preventDefault(),t.space.apply(this,arguments)}})}_itemElements(){return this._itemContainer().children(this._itemSelector())}_setAriaSelected(){}}class QA extends JA.Z{_dataSourceOptions(){return{paginate:!1}}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:()=>"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator(),options:{focusStateEnabled:!0}}])}_fireContentReadyAction(t){t&&super._fireContentReadyAction()}_focusTarget(){return this.$element()}_getAriaTarget(){return this.$element()}_getDefaultOptions(){var t=super._getDefaultOptions();return(0,y.l)(t,(0,y.l)(nD.Z._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical"}))}_getItemValue(t){return this._valueGetter?this._valueGetter(t):t.text}_getSubmitElement(){return this._$submitElement}_init(){super._init(),this._activeStateUnit=".".concat(GF),this._feedbackHideTimeout=100,this._initDataExpressions()}_initMarkup(){this.$element().addClass("dx-radiogroup"),this._renderSubmitElement(),this.setAria("role","radiogroup"),this._renderRadios(),this._renderLayout(),super._initMarkup()}_itemClickHandler(t){var{itemElement:e,event:i,itemData:r}=t;if(this.itemElements().is(e)){var v=this._getItemValue(r);v!==this.option("value")&&(this._saveValueChangeEvent(i),this.option("value",v))}}_getSelectedItemKeys(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("value");return"this"!==this.option("valueExpr")&&null===t||(0,w.$K)(t)?[t]:[]}_setSelection(t){var e=this._unwrappedValue(t);this._setCollectionWidgetOption("selectedItemKeys",this._getSelectedItemKeys(e))}_optionChanged(t){var{name:e,value:i}=t;switch(this._dataExpressionOptionChanged(t),e){case"dataSource":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(e,i);break;case"disabled":super._optionChanged(t),this._setCollectionWidgetOption(e,i);break;case"valueExpr":this._setCollectionWidgetOption("keyExpr",this._getCollectionKeyExpr());break;case"value":this._setSelection(i),this._setSubmitValue(i),super._optionChanged(t);break;case"items":this._setSelection(this.option("value"));break;case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:super._optionChanged(t)}}_render(){super._render(),this._updateItemsSize()}_renderLayout(){var t=this.option("layout"),e=this.$element();e.toggleClass("dx-radiogroup-vertical","vertical"===t),e.toggleClass("dx-radiogroup-horizontal","horizontal"===t)}_renderRadios(){this._areRadiosCreated=new P.BH;var t=(0,u.Z)("<div>").appendTo(this.$element()),{displayExpr:e,accessKey:i,focusStateEnabled:r,itemTemplate:v,tabIndex:D}=this.option();this._createComponent(t,u$,{onInitialized:A=>{var{component:z}=A;this._radios=z},onContentReady:A=>{this._fireContentReadyAction(!0)},onItemClick:this._itemClickHandler.bind(this),displayExpr:e,accessKey:i,dataSource:this._dataSource,focusStateEnabled:r,itemTemplate:v,keyExpr:this._getCollectionKeyExpr(),noDataText:"",scrollingEnabled:!1,selectionByClick:!1,selectionMode:"single",selectedItemKeys:this._getSelectedItemKeys(),tabIndex:D}),this._areRadiosCreated.resolve()}_renderSubmitElement(){this._$submitElement=(0,u.Z)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue()}_setOptionsByReference(){super._setOptionsByReference(),(0,y.l)(this._optionsByReference,{value:!0})}_setSubmitValue(t){var e;t=null!==(e=t)&&void 0!==e?e:this.option("value");var i="this"===this.option("valueExpr")?this._displayGetter(t):t;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 t=this.option("items").length;this.itemElements().css("height",100/t+"%")}}focus(){var t;null===(t=this._radios)||void 0===t||t.focus()}itemElements(){var t;return null===(t=this._radios)||void 0===t?void 0:t.itemElements()}}QA.include(nD.Z),(0,T.Z)("dxRadioGroup",QA);const d$=QA;var Bo=l(8119);l(4137),l(9156);class c${constructor(t,e){this._popupInstance=t._createComponent(e,Tp.Z),this.infoMap={TaskEdit:h$,Resources:p$,Confirmation:g$,ConstraintViolation:f$}}_apply(){if(this._dialogInfo.isValidated()){var t=this._dialogInfo.getResult();this._callback(t),this.hide()}}show(t,e,i,r,v){if(this._callback=i,this._afterClosing=r,this.infoMap[t]){var D=this._popupInstance._isVisible()&&this._dialogInfo&&this._dialogInfo instanceof this.infoMap[t];this._dialogInfo=new this.infoMap[t](e,this._apply.bind(this),this.hide.bind(this),v),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),D||this._popupInstance.show()}}hide(){this._popupInstance.hide(),this._afterClosing&&this._afterClosing()}}class mD{constructor(t,e,i,r){this._parameters=t,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(t,e){return{widget:"dxButton",toolbar:"bottom",options:{text:wn.Z.format(t),onClick:e}}}getTitle(){return""}getToolbarItems(){return this._editingOptions.enabled?[this._getOkToolbarItem(),this._getCancelToolbarItem()]:[this._getCancelToolbarItem()]}getMaxWidth(){return 400}getHeight(){return"auto"}getContentTemplate(){return t=>(this._form=new qA.Z(t,{formData:this._getFormData(),items:this._getFormItems(),elementAttr:{class:this._getFormCssClass()},rtlEnabled:!1}),t)}getResult(){var t=this.getFormData();return this._updateParameters(t),this._parameters}getFormData(){return this._form&&this._form.option("formData")}isValidated(){return!0}}class h$ extends mD{getTitle(){return wn.Z.format("dxGantt-dialogTaskDetailsTitle")}_getFormItems(){var t=!this._editingOptions.enabled||!this._editingOptions.allowTaskUpdating,e=t||!this._parameters.enableRangeEdit;return[{dataField:"title",editorType:"dxTextBox",label:{text:wn.Z.format("dxGantt-dialogTitle")},editorOptions:{readOnly:t||this._isReadOnlyField("title")},visible:!this._isHiddenField("title")},{dataField:"start",editorType:"dxDateBox",label:{text:wn.Z.format("dxGantt-dialogStartTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:e||this._isReadOnlyField("start")},visible:!this._isHiddenField("start"),validationRules:[{type:"required",message:wn.Z.format("validation-required-formatted",wn.Z.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:wn.Z.format("dxGantt-dialogEndTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:e||this._isReadOnlyField("end")},visible:!this._isHiddenField("end"),validationRules:[{type:"required",message:wn.Z.format("validation-required-formatted",wn.Z.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:wn.Z.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:wn.Z.format("dxGantt-dialogResourcesTitle")},editorOptions:{readOnly:t||!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:wn.Z.format("dxGantt-dialogEditResourceListHint"),onClick:()=>{this._parameters.showResourcesDialogCommand.execute(()=>{this._parameters.showTaskEditDialogCommand.execute()})}}}]}}]}_getValidationMessage(t,e){return wn.Z.format(t?"dxGantt-dialogStartDateValidation":"dxGantt-dialogEndDateValidation",this._getFormattedDateText(e))}_getFormattedDateText(t){return t?Bo.Z.format(t,"shortDateShortTime"):""}_isReadOnlyField(t){return this._parameters.readOnlyFields.indexOf(t)>-1}_isHiddenField(t){return this._parameters.hiddenFields.indexOf(t)>-1}_getFormData(){var t={};for(var e in this._parameters)t[e]="progress"===e?this._parameters[e]/100:this._parameters[e];return t}_updateParameters(t){this._parameters.title=t.title,this._parameters.start=t.start,this._parameters.end=t.end,this._parameters.progress=100*t.progress,this._parameters.assigned=t.assigned}isValidated(){var t;return(null===(t=this._form)||void 0===t?void 0:t.validate())?.isValid}}class p$ extends mD{getTitle(){return wn.Z.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:wn.Z.format("dxGantt-dialogEditNoResources"),onInitialized:t=>{this.list=t.component},onItemDeleted:t=>{this._parameters.resources.remove(t.itemData)}}},{label:{visible:!1},editorType:"dxTextBox",editorOptions:{readOnly:!this._editingOptions.enabled||!this._editingOptions.allowResourceAdding,onInitialized:t=>{this.textBox=t.component},onInput:t=>{var e=t.component.getButton("addResource"),i=t.component.option("text");e.option("disabled",0===i.length)},buttons:[{name:"addResource",location:"after",options:{text:wn.Z.format("dxGantt-dialogButtonAdd"),disabled:!0,onClick:t=>{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(),t.component.option("disabled",!0)}}}]}}]}}class g$ extends mD{getContentTemplate(){return t=>this._getConfirmMessage()}_getConfirmMessage(){switch(this._parameters.type){case 0:return wn.Z.format("dxGantt-dialogTaskDeleteConfirmation");case 1:return wn.Z.format("dxGantt-dialogDependencyDeleteConfirmation");case 2:return wn.Z.format("dxGantt-dialogResourcesDeleteConfirmation",this._parameters.message);default:return""}}getToolbarItems(){return[this._getYesToolbarItem(),this._getNoToolbarItem()]}}class f$ extends mD{_getFormItems(){var D,t=this._parameters.hasCriticalErrors,e=this._parameters.errorsCount>1,i=[],r=e?"dxGantt-dialogDeleteDependenciesMessage":"dxGantt-dialogDeleteDependencyMessage",v=e?"dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"dxGantt-dialogMoveTaskAndKeepDependencyMessage";return D=t?e?"dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"dxGantt-dialogConstraintCriticalViolationMessage":e?"dxGantt-dialogConstraintViolationSeveralTasksMessage":"dxGantt-dialogConstraintViolationMessage",i.push({text:wn.Z.format("dxGantt-dialogCancelOperationMessage"),value:0}),i.push({text:wn.Z.format(r),value:1}),t||i.push({text:wn.Z.format(v),value:2}),[{template:wn.Z.format(D)},{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(t){this._parameters.option=t.option}}var Tf=l(2879),_D=(0,fi.Jj)();class v${constructor(t){this._gantt=t,this._treeList=t._treeList,this._cache={}}reset(){this._cache={}}getTreeListTableStyle(){var t=this._getTreeListTable(),e=_D.getComputedStyle(t);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(t){var e=this._getHeaderElement(t);if(!e)return null;var i=_D.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(t)};return{content:e.textContent,styles:r}}getTreeListCellInfo(t,e){var i,r=this._treeList.getNodeByKey(t),v=this._treeList.getRowIndexByKey(t),D=v>-1?this._getDataCell(v,e):null,A=D?_D.getComputedStyle(D):this._getColumnCellStyle(e),z={color:A.color,padding:A.padding,paddingLeft:A.paddingLeft,paddingTop:A.paddingTop,paddingRight:A.paddingRight,paddingBottom:A.paddingBottom,width:this._getColumnWidth(e)};return 0===e&&(z.extraLeftPadding=this._getEmptySpaceWidth(r.level)),{content:null!==(i=D?.textContent)&&void 0!==i?i:this._getDisplayText(t,e),styles:z}}getTreeListEmptyDataCellInfo(){return{content:this._treeList.option("noDataText")}}_ensureColumnWidthCache(t){var e,i;if(null!==(i=(e=this._cache).columnWidths)&&void 0!==i||(e.columnWidths={}),!this._cache.columnWidths[t]){var r,v=this._getHeaderElement(t);this._cache.columnWidths[t]=null!==(r=v?.clientWidth)&&void 0!==r?r:0}}_getColumnWidth(t){this._ensureColumnWidthCache(t);var e=this._cache.columnWidths;return e&&e[t]}_getEmptySpaceWidth(t){if(!this._cache.emptyWidth){var e,i,r,v=this._getTreeListElement("dx-treelist-empty-space");null!==(i=(e=this._cache).emptyWidth)&&void 0!==i||(e.emptyWidth=null!==(r=v.offsetWidth)&&void 0!==r?r:0)}return this._cache.emptyWidth*(t+1)}_getColumnCellStyle(t){return this._ensureColumnCellStyleCache(t),this._cache.columnStyles[t]}_ensureColumnCellStyleCache(t){var e,i;if(null!==(i=(e=this._cache).columnStyles)&&void 0!==i||(e.columnStyles={}),!this._cache.columnStyles[t]){var r=this._getDataCell(0,t);this._cache.columnStyles[t]=_D.getComputedStyle(r)}}_getTask(t){return this._ensureTaskCache(t),this._cache.tasks[t]}_ensureTaskCache(t){var e,i,r,v;null!==(i=(e=this._cache).tasks)&&void 0!==i||(e.tasks={}),null!==(v=(r=this._cache.tasks)[t])&&void 0!==v||(r[t]=this._gantt._findTaskByKey(t))}_getTreeListTable(){return this._getTreeListElement("dx-treelist-table")}_getTreeListElement(t){return this._treeList._$element.find("."+t).get(0)}_getDataCell(t,e){var r=this._treeList.getCellElement(t,e);return r&&r.length?r[0]:r}_getHeaderElement(t){return this._getHeaderView().getHeaderElement(t).get(0)}_getHeaderView(){return this._treeList._views.columnHeadersView}_getDisplayText(t,e){var i=this._getTask(t);return i&&this._getGridDisplayText(e,i)}_getGridDisplayText(t,e){var r=this._treeList.getController("columns").getColumns()[t],v=r?.dataField,D=r?.format,A=Tf.Z.getDisplayValue(r,e[v],e,"data");if((0,w.$K)(D)){if("date"===r?.dataType||"datetime"===r?.dataType){var z=(0,w.J_)(A)?A:new Date(A);return Bo.Z.format(z,D)}if((0,w.kE)(A))return Xv.Z.format(A,D)}return"string"==typeof A?A:A?.toString()}}var eP=/(\w*)Expr/;class C${constructor(t){this._gantt=t}_getMappedFieldName(t,e){var i=e;return"id"===e&&(i="key"),this._gantt.option("".concat(t,".").concat(i,"Expr"))}getTaskMappedFieldNames(){var t=[],e=this._gantt.option("tasks");for(var i in e){var r=i.match(eP),v=r&&e[r[0]];v&&t.push(v)}return t}convertCoreToMappedData(t,e){return Object.keys(e).reduce((i,r)=>{var v=this._getMappedFieldName(t,r);return v&&(0,No.OM)(v)(i,e[r]),i},{})}convertMappedToCoreData(t,e){var i={};if(e){var r=this._gantt.option(t);for(var v in r){var D=v.match(eP),A=D&&r[D[0]];if(A&&void 0!==e[A]){var z=(0,No.vb)(A);i[D[1]]=z(e)}}}return i}convertCoreToMappedFields(t,e){return e.reduce((i,r)=>{var v=this._getMappedFieldName(t,r);return v&&i.push(v),i},[])}convertMappedToCoreFields(t,e){var i=[],r=this._gantt.option(t);for(var v in r){var D=v.match(eP),A=D&&r[D[0]];A&&e.indexOf(A)>-1&&i.push(D[1])}return i}}class x${constructor(t){this._gantt=t}_setTreeListDimension(t,e){var i,v="width"===t?s.dz:s.Cr;("width"===t?s.cl:s.QQ)(this._gantt._$treeListWrapper,e),null===(i=this._gantt._ganttTreeList)||void 0===i||i.setOption(t,v(this._gantt._$treeListWrapper))}_setGanttViewDimension(t,e){var r="width"===t?s.dz:s.Cr;("width"===t?s.cl:s.QQ)(this._gantt._$ganttView,e),this._gantt._setGanttViewOption(t,r(this._gantt._$ganttView))}_getPanelsWidthByOption(){var t,e,v,i=(0,s.dz)(this._gantt._$element),r=this._gantt.option("taskListWidth");return isNaN(r)?(null===(t=r.indexOf)||void 0===t?void 0:t.call(r,"px"))>0?v=i-parseInt(r.replace("px",""))+"px":(null===(e=r.indexOf)||void 0===e?void 0:e.call(r,"%"))>0&&(v=100-parseInt(r.replace("%",""))+"%"):v=i-parseInt(r),{leftPanelWidth:r,rightPanelWidth:v}}onAdjustControl(){var t=(0,s.Cr)(this._gantt._$element);this.updateGanttWidth(),this.setGanttHeight(t)}onApplyPanelSize(t){this.setInnerElementsWidth(t),this.updateGanttRowHeights()}updateGanttRowHeights(){var e,t=this._gantt._ganttTreeList.getRowHeight();this._gantt._getGanttViewOption("rowHeight")!==t&&(this._gantt._setGanttViewOption("rowHeight",t),null===(e=this._gantt._ganttView)||void 0===e||e._ganttViewCore.updateRowHeights(t))}adjustHeight(){this._gantt._hasHeight||(this._gantt._setGanttViewOption("height",0),this._gantt._setGanttViewOption("height",this._gantt._ganttTreeList.getOffsetHeight()))}setInnerElementsWidth(t){(0,fi.Ym)()&&(t||(t=this._getPanelsWidthByOption(),this._gantt._splitter._setSplitterPositionLeft({splitterPositionLeft:t.leftPanelWidth}),this._setTreeListDimension("width",0),this._setGanttViewDimension("width",0)),this._setTreeListDimension("width",t.leftPanelWidth),this._setGanttViewDimension("width",t.rightPanelWidth))}updateGanttWidth(){this._gantt._splitter._dimensionChanged()}setGanttHeight(t){var e,r=t-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 b${constructor(t){this._gantt=t}getTaskTooltipContentTemplateFunc(t){var e=t&&this._gantt._getTemplate(t);return e&&((r,v,D)=>(e.render({model:this._gantt.getTaskDataByCoreData(v),container:(0,S.u)((0,u.Z)(r)),onRendered:()=>{D()}}),!0))}getTaskProgressTooltipContentTemplateFunc(t){var e=t&&this._gantt._getTemplate(t);return e&&((r,v,D)=>(e.render({model:v,container:(0,S.u)((0,u.Z)(r)),onRendered:()=>{D()}}),!0))}getTaskTimeTooltipContentTemplateFunc(t){var e=t&&this._gantt._getTemplate(t);return e&&((r,v,D)=>(e.render({model:v,container:(0,S.u)((0,u.Z)(r)),onRendered:()=>{D()}}),!0))}getTaskContentTemplateFunc(t){var e=t&&this._gantt._getTemplate(t);return e&&((r,v,D,A)=>(v.taskData=this._gantt.getTaskDataByCoreData(v.taskData),e.render({model:v,container:(0,S.u)((0,u.Z)(r)),onRendered:()=>{D(r,A)}}),!0))}}class $F{constructor(t,e){this._element=t,this._owner=e,this._items=[],this._createControl()}createItems(t){this._cache=null,this._items=this._createItemsCore(t),this._menu.option("items",this._items)}_createItemsCore(t){return t.map(e=>{var i;return i="string"==typeof e?this._createItemByText(e):(0,y.l)(e.name?this._createItemByText(e.name):this._getDefaultItemOptions(),e),e.items&&(i.items=this._createItemsCore(e.items)),i})}_createItemByText(t){switch(t.toLowerCase()){case"separator":return this._createSeparator();case"undo":return this._createDefaultItem(6,wn.Z.format("dxGantt-undo"),this._getIcon("undo"));case"redo":return this._createDefaultItem(7,wn.Z.format("dxGantt-redo"),this._getIcon("redo"));case"expandall":return this._createDefaultItem(12,wn.Z.format("dxGantt-expandAll"),this._getIcon("expand"));case"collapseall":return this._createDefaultItem(11,wn.Z.format("dxGantt-collapseAll"),this._getIcon("collapse"));case"addtask":return this._createDefaultItem(0,wn.Z.format("dxGantt-addNewTask"),this._getIcon("add"));case"addsubtask":return this._createDefaultItem(1,wn.Z.format("dxGantt-contextMenuNewSubtask"),this._getIcon("add-sub-task"));case"deletetask":return this._createDefaultItem(2,wn.Z.format("dxGantt-deleteSelectedTask"),this._getIcon("delete"));case"deletedependency":return this._createDefaultItem(3,wn.Z.format("dxGantt-contextMenuDeleteDependency"),this._getIcon("delete-dependency"));case"zoomin":return this._createDefaultItem(8,wn.Z.format("dxGantt-zoomIn"),this._getIcon("zoom-in"));case"zoomout":return this._createDefaultItem(9,wn.Z.format("dxGantt-zoomOut"),this._getIcon("zoom-out"));case"fullscreen":return this._createDefaultItem(10,wn.Z.format("dxGantt-fullScreen"),this._getIcon("full-screen"));case"taskdetails":return this._createDefaultItem(4,wn.Z.format("dxGantt-dialogTaskDetailsTitle")+"...",this._getIcon("task-details"));case"resourcemanager":return this._createDefaultItem(13,wn.Z.format("dxGantt-dialogResourceManagerTitle"),this._getIcon("resource-manager"));case"showresources":return this._createDefaultItem(14,wn.Z.format("dxGantt-showResources"),this._getIcon("toggle-resources"));case"showdependencies":return this._createDefaultItem(15,wn.Z.format("dxGantt-showDependencies"),this._getIcon("toggle-dependencies"));default:return(0,y.l)(this._getDefaultItemOptions(),{options:{text:t}})}}_getDefaultItemOptions(){return{}}_getItemsCache(){return this._cache||(this._cache={},this._fillCache(this._items)),this._cache}_fillCache(t){t.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(t){return"dx-gantt-i dx-gantt-i-"+t}getCommandKeys(){var t=this._getItemsCache(),e=[];for(var i in t)e.push(parseInt(i));return e}setItemEnabled(t,e){this._getItemsCache()[t].forEach(r=>{r.disabled=!e})}setItemVisible(t,e){this._getItemsCache()[t].forEach(r=>{r.visible=e})}setItemValue(t,e){}setEnabled(t){this._menu.option("disabled",!t)}updateItemsList(){}isVisible(){return!0}isContextMenu(){return!1}completeUpdate(){}}class E$ extends $F{_createControl(){this._menu=this._owner._createComponent(this._element,Sb.Z,{onItemClick:t=>{void 0!==t.itemData.commandId&&this._executeCommand(t.itemData.commandId)}})}_executeCommand(t){switch(t){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(t)}}_createDefaultItem(t,e,i){return{commandId:t,disabled:!0,widget:"dxButton",location:"before",options:{icon:i,stylingMode:"text",hint:e}}}_createSeparator(){return{location:"before",template:(t,e,i)=>{(0,u.Z)(i).addClass("dx-gantt-toolbar-separator")}}}_getDefaultItemOptions(){return{location:"before",widget:"dxButton"}}completeUpdate(){this._menu.option("items",this._items)}}class S$ extends $F{_createControl(){this._menu=this._owner._createComponent(this._element,Yv.Z,{showEvent:void 0,onItemClick:t=>{void 0!==t.itemData.commandId?this._owner._executeCoreCommand(t.itemData.commandId):void 0!==t.itemData.name&&this._owner._actionsManager.raiseCustomCommand(t.itemData.name)}})}createItems(t){(!t||0===t.length)&&(t=this._getDefaultItems()),super.createItems(t)}_getDefaultItems(){return[{text:wn.Z.format("dxGantt-dialogButtonAdd"),commandId:5,icon:this._getIcon("add"),items:[{text:wn.Z.format("dxGantt-contextMenuNewTask"),commandId:0,icon:this._getIcon("add-task")},{text:wn.Z.format("dxGantt-contextMenuNewSubtask"),commandId:1,icon:this._getIcon("add-sub-task")}]},{text:wn.Z.format("dxGantt-dialogTaskDetailsTitle")+"...",commandId:4,icon:this._getIcon("task-details")},{text:wn.Z.format("dxGantt-contextMenuDeleteTask"),commandId:2,icon:this._getIcon("delete")},{text:wn.Z.format("dxGantt-contextMenuDeleteDependency"),commandId:3,icon:this._getIcon("delete-dependency")}]}_createDefaultItem(t,e,i){return{commandId:t,text:e,icon:i}}show(t,e){this._menu.option("items",e||this._items),this._menu.option("position.offset",{x:t.x,y:t.y}),this._menu.option("position.collision","fit"),this._menu.show()}hide(){this._menu.hide()}isContextMenu(){return!0}}var O$=l(3390);const Po=(0,y.l)({},O$.Z,{modules:[],foreachNodes:function(n,t,e){for(var i=0;i<n.length;i++)!1!==t(n[i])&&(e||n[i].hasChildren)&&n[i].children.length&&this.foreachNodes(n[i].children,t,e)}});var D$=l(2496);Po.registerModule("columnHeaders",D$.q);var YF=l(980),T$=YF.W.controllers.columns.inherit({_getFirstItems:function(n){return this.callBase(n).map(function(t){return t.data})},getFirstDataColumnIndex:function(){for(var n=this.getVisibleColumns(),t=n.length,e=0,i=0;i<=t-1;i++)if(!(0,w.$K)(n[i].command)){e=n[i].index;break}return e}});Po.registerModule("columns",{defaultOptions:YF.W.defaultOptions,controllers:{columns:T$}});var I$=l(1771),Nb=l(820),If=l(7316),M$=l(6181),A$=l(3382),{queryByOptions:P$}=A$.Z,vD=n=>"fullBranch"===n.option("filterMode"),tP=M$.Z.inherit({_createKeyGetter:function(){var n=this.getKeyExpr();return(0,No.vb)(n)},_createKeySetter:function(){var n=this.getKeyExpr();return(0,w.mf)(n)?n:(0,No.OM)(n)},createParentIdGetter:function(){return(0,No.vb)(this.option("parentIdExpr"))},createParentIdSetter:function(){var n=this.option("parentIdExpr");return(0,w.mf)(n)?n:(0,No.OM)(n)},_createItemsGetter:function(){return(0,No.vb)(this.option("itemsExpr"))},_createHasItemsGetter:function(){var n=this.option("hasItemsExpr");return n&&(0,No.vb)(n)},_createHasItemsSetter:function(){var n=this.option("hasItemsExpr");return(0,w.mf)(n)?n:n&&(0,No.OM)(n)},_updateIndexByKeyObject:function(n){var t=this;t._indexByKey={},(0,O.S6)(n,function(e,i){t._indexByKey[i.key]=e})},_calculateHasItems:function(n,t){var i,e=t.storeLoadOptions.parentIds,r=vD(this);return this._hasItemsGetter&&(e||!t.storeLoadOptions.filter||r)&&(i=this._hasItemsGetter(n.data)),void 0===i&&(i=!(this._isChildrenLoaded[n.key]||!t.remoteOperations.filtering||!e&&!r)||(t.loadOptions.filter&&!t.remoteOperations.filtering&&r?n.children.length:n.hasChildren)),!!i},_fillVisibleItemsByNodes:function(n,t,e){for(var i=0;i<n.length;i++)n[i].visible&&e.push(n[i]),(this.isRowExpanded(n[i].key,t)||!n[i].visible)&&n[i].hasChildren&&n[i].children.length&&this._fillVisibleItemsByNodes(n[i].children,t,e)},_convertItemToNode:function(n,t,e){var i=this._keyGetter(n),r=this._parentIdGetter(n),v=e[r=(0,w.$K)(r)?r:t]=e[r]||{key:r,children:[]},D=e[i]=e[i]||{key:i,children:[]};return D.data=n,D.parent=v,D},_createNodesByItems:function(n,t){var v,e=this.option("rootValue"),i={},r=this._nodeByKey={};if(t)for(v=0;v<t.length;v++)i[this._keyGetter(t[v])]=!0;for(v=0;v<n.length;v++){var D=this._convertItemToNode(n[v],e,r);if(void 0===D.key)return;D.visible=!t||!!i[D.key],D.parent&&D.parent.children.push(D)}var A=r[e]||{key:e,children:[]};return A.level=-1,A},_convertDataToPlainStructure:function(n,t,e){var i;if(this._itemsGetter&&!n.isConverted){e=e||[];for(var r=0;r<n.length;r++){var v=(0,I$.FL)(n[r]);void 0===(i=this._keyGetter(v))&&this._keySetter(v,i=e.length+1),this._parentIdSetter(v,void 0===t?this.option("rootValue"):t),e.push(v);var D=this._itemsGetter(v);if(D&&D.length){this._convertDataToPlainStructure(D,i,e);var A=this.option("itemsExpr");(0,w.mf)(A)||delete v[A]}}return e.isConverted=!0,e}return n},_createIdFilter:function(n,t){for(var e=[],i=0;i<t.length;i++)e.push([n,"=",t[i]]);return Tf.Z.combineFilters(e,"or")},_customizeRemoteOperations:function(n,t){this.callBase.apply(this,arguments),n.remoteOperations.paging=!1;var e=!1;this.option("autoExpandAll")&&(n.remoteOperations.sorting=!1,n.remoteOperations.filtering=!1,(!this._lastLoadOptions||t.filtering&&!n.storeLoadOptions.filter)&&!n.isCustomLoading&&(e=!0)),n.isCustomLoading||(this._isReload=this._isReload||t.reload,n.cachedStoreData||(this._isChildrenLoaded={},this._isReload&&(this._nodeByKey={})),this.option("expandNodesOnFiltering")&&(t.filtering||this._isReload&&n.storeLoadOptions.filter)&&(n.storeLoadOptions.filter?e=!0:n.collapseVisibleNodes=!0)),n.expandVisibleNodes=e},_getParentIdsToLoad:function(n){for(var t=[],e=0;e<n.length;e++){var i=this.getNodeByKey(n[e]);(!i||i.hasChildren&&!i.children.length)&&t.push(n[e])}return t},_handleCustomizeStoreLoadOptions:function(n){var t=this.option("rootValue"),e=this.option("parentIdExpr"),i=n.storeLoadOptions.parentIds;if(i&&(n.isCustomLoading=!1),this.callBase.apply(this,arguments),n.remoteOperations.filtering&&!n.isCustomLoading&&(vD(this)&&n.cachedStoreData||!n.storeLoadOptions.filter)){var r=n.collapseVisibleNodes?[]:this.option("expandedRowKeys");i=[t].concat(r).concat(i||[]);var v=n.data?this._getParentIdsToLoad(i):i;v.length&&(n.cachedPagingData=void 0,n.data=void 0,n.mergeStoreLoadData=!0,n.delay=this.option("loadingTimeout")),n.storeLoadOptions.parentIds=v,n.storeLoadOptions.filter=this._createIdFilter(e,v)}},_generateInfoToLoad:function(n,t){var e,A,i={},r={},v=[],D=this.option("rootValue");for(A=0;A<n.length;A++)i[e=t?this._parentIdGetter(n[A]):this._keyGetter(n[A])]=!0;for(A=0;A<n.length;A++){e=t?this._keyGetter(n[A]):this._parentIdGetter(n[A]);var z=t?this.isRowExpanded(e):e!==D;!i[e]&&!r[e]&&z&&(r[e]=!0,v.push(e))}return{keyMap:r,keys:v}},_loadParentsOrChildren:function(n,t,e){var r,v,i=this,{keys:D,keyMap:A}=i._generateInfoToLoad(n,e),z=new P.BH,Q=t.remoteOperations.filtering,ue=i.option("maxFilterLengthInRequest"),we=Q?t.storeLoadOptions:t.loadOptions;function Le(ln){return Q&&(i._cachedStoreData=i._cachedStoreData.concat(ln)),n.concat(ln)}if(!D.length)return z.resolve(n);var Ue=D.map(ln=>this.getNodeByKey(ln)).filter(ln=>ln&&ln.data);if(Ue.length===D.length&&(e&&(Ue=Ue.reduce((ln,En)=>ln.concat(En.children),[])),Ue.length))return i._loadParentsOrChildren(Le(Ue.map(ln=>ln.data)),t,e);var ut=e?i.option("parentIdExpr"):i.getKeyExpr();r=i._createIdFilter(ut,D),encodeURI(JSON.stringify(r)).length>ue&&(r=function(ln){return A[e?i._parentIdGetter(ln):i._keyGetter(ln)]},v=Q),we=(0,y.l)({},we,{filter:v?null:r});var Gt=t.fullData?new Nb.Z(t.fullData):i._dataSource.store();return i.loadFromStore(we,Gt).done(function(ln){ln.length?(v&&(ln=(0,If.Z)(ln).filter(r).toArray()),i._loadParentsOrChildren(Le(ln),t,e).done(z.resolve).fail(z.reject)):z.resolve(n)}).fail(z.reject),z},_loadParents:function(n,t){return this._loadParentsOrChildren(n,t)},_loadChildrenIfNeed:function(n,t){return vD(this)?this._loadParentsOrChildren(n,t,!0):(0,P.gx)(n)},_updateHasItemsMap:function(n){var t=n.storeLoadOptions.parentIds;if(t)for(var e=0;e<t.length;e++)this._isChildrenLoaded[t[e]]=!0},_getKeyInfo:function(){return{key:()=>"key",keyOf:n=>n.key}},_processChanges:function(n){var t=[];return n.forEach(e=>{"insert"===e.type?t=t.concat(this._applyInsert(e)):"remove"===e.type?t=t.concat(this._applyRemove(e)):"update"===e.type&&t.push({type:e.type,key:e.key,data:{data:e.data}})}),t},_handleChanging:function(n){this.callBase.apply(this,arguments);var t=e=>{var i=e.filter(r=>"update"===r.type);return this._processChanges(i)};n.postProcessChanges=t},_applyBatch:function(n){var t=this._processChanges(n);this.callBase(t)},_setHasItems:function(n,t){var e=this._hasItemsSetter;n.hasChildren=t,e&&n.data&&e(n.data,t)},_applyInsert:function(n){var t=[],e=this.parentKeyOf(n.data),i=this.getNodeByKey(e);if(i){var r=this.option("rootValue"),v=this._convertItemToNode(n.data,r,this._nodeByKey);if(v.hasChildren=!1,v.level=i.level+1,v.visible=!0,i.children.push(v),this._isChildrenLoaded[v.key]=!0,this._setHasItems(i,!0),(!i.parent||this.isRowExpanded(i.key))&&void 0!==n.index){var D=this.items().indexOf(i)+1;D+=n.index>=0?Math.min(n.index,i.children.length):i.children.length,t.push({type:n.type,data:v,index:D})}}return t},_needToCopyDataObject:function(){return!1},_applyRemove:function(n){var t=[],e=this.getNodeByKey(n.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),t.push(n),t=t.concat(this.getChildNodeKeys(n.key).map(v=>({type:n.type,key:v}))))}return t},_handleDataLoaded:function(n){var t=n.data=this._convertDataToPlainStructure(n.data);!n.remoteOperations.filtering&&n.loadOptions.filter&&(n.fullData=P$((0,If.Z)(n.data),{sort:n.loadOptions&&n.loadOptions.sort}).toArray()),this._updateHasItemsMap(n),this.callBase(n),t.isConverted&&this._cachedStoreData&&(this._cachedStoreData.isConverted=!0)},_fillNodes:function(n,t,e,i){var r=vD(this);i=i||0;for(var v=0;v<n.length;v++){var D=n[v],A=!1;this._fillNodes(n[v].children,t,e,i+1),D.level=i,D.hasChildren=this._calculateHasItems(D,t),D.visible&&D.hasChildren&&(r?D.children.filter(z=>z.visible).length?A=!0:D.children.length&&Po.foreachNodes(D.children,function(z){z.visible=!0}):A=!0,t.expandVisibleNodes&&A&&e.push(D.key)),(D.visible||D.hasChildren)&&(D.parent.hasChildren=!0)}},_processTreeStructure:function(n,t){var e=n.data,i=n.storeLoadOptions.parentIds,r=[];if(i&&i.length||this._isReload){if(n.fullData&&n.fullData.length>n.data.length&&(e=n.fullData,t=t||n.data),this._rootNode=this._createNodesByItems(e,t),!this._rootNode)return void(n.data=(new P.BH).reject(Js.Z.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,n,r),this._isNodesInitializing=!0,(n.collapseVisibleNodes||r.length)&&this.option("expandedRowKeys",r),this._isReload=!1,this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1}var v=[];this._fillVisibleItemsByNodes(this._rootNode.children,n,v),n.data=v,this._totalItemsCount=v.length},_handleDataLoadedCore:function(n){var D,t=this,e=n.data,i=t.callBase,r=n.storeLoadOptions.filter||n.loadOptions.filter,v=t.option("filterMode"),A=n.storeLoadOptions.parentIds;if(!n.isCustomLoading){if(r&&(!A||!A.length)&&"standard"!==v){var Q=n.data=new P.BH;return"matchOnly"===v&&(D=e),t._loadParents(e,n).done(function(ue){t._loadChildrenIfNeed(ue,n).done(we=>{n.data=we,t._processTreeStructure(n,D),i.call(t,n),Q.resolve(n.data)})}).fail(Q.reject)}t._processTreeStructure(n)}t.callBase(n)},_handlePush:function(n){var{changes:t}=n,e=this._dataSource._reshapeOnPush,i=e&&!!t.length;i&&(this._isReload=!0),t.forEach(r=>{var v;return null!==(v=r.index)&&void 0!==v?v:r.index=-1}),this.callBase.apply(this,arguments)},init:function(n,t){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 n=this.store(),t=n&&n.key(),e=this.option("keyExpr");if((0,w.$K)(t)&&(0,w.$K)(e)&&!(0,E.bY)(t,e))throw Js.Z.Error("E1044");return t||e||"id"},keyOf:function(n){return this._keyGetter&&this._keyGetter(n)},parentKeyOf:function(n){return this._parentIdGetter&&this._parentIdGetter(n)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount+this._totalCountCorrection},isRowExpanded:function(n,t){if(t){var e=t.isExpandedByKey;return e||(e=t.isExpandedByKey={},this.option("expandedRowKeys").forEach(function(r){e[r]=!0})),!!e[n]}return Tf.Z.getIndexByKey(n,this.option("expandedRowKeys"),null)>=0},_changeRowExpandCore:function(n){var t=this.option("expandedRowKeys").slice(),e=Tf.Z.getIndexByKey(n,t,null);e<0?t.push(n):t.splice(e,1),this.option("expandedRowKeys",t)},changeRowExpand:function(n){return this._changeRowExpandCore(n),this._isNodesInitializing?(new P.BH).resolve():this.load()},getNodeByKey:function(n){if(this._nodeByKey)return this._nodeByKey[n]},getNodeLeafKeys:function(){var n=this,t=[];return(n._rootNode?[n._rootNode.key]:[]).forEach(function(i){var r=n.getNodeByKey(i);r&&Po.foreachNodes([r],function(v){!v.children.length&&t.push(v.key)})}),t},getChildNodeKeys:function(n){var t=this.getNodeByKey(n),e=[];return t&&Po.foreachNodes(t.children,function(i){e.push(i.key)}),e},loadDescendants:function(n,t){var e=this,i=new P.BH,r=e.remoteOperations();if(n=(0,w.$K)(n)?Array.isArray(n)?n:[n]:e.getNodeLeafKeys(),!r.filtering||!n.length)return i.resolve();var v=e._dataSource._createStoreLoadOptions();return v.parentIds=n,e.load(v).done(function(){if(!t){var D=(A=e,Q=[],n.forEach(function(ue){var we=A.getNodeByKey(ue);we&&we.children.forEach(function(Le){Q.push(Le.key)})}),Q);if(D.length)return void e.loadDescendants(D,t).done(i.resolve).fail(i.reject)}var A,Q;i.resolve()}).fail(i.reject),i.promise()},forEachNode:function(){var t,n=[];if(1===arguments.length){t=arguments[0];var e=this.getRootNode();n=e&&e.children||[]}else 2===arguments.length&&(t=arguments[1],n=arguments[0],n=Array.isArray(n)?n:[n]);Po.foreachNodes(n,t)}});const XF={extend:function(n){tP=tP.inherit(n)},create:function(n){return new tP(n)}};var qF=l(9799),R$=qF.p.controllers.data.inherit({_getDataSourceAdapter:function(){return XF},_getNodeLevel:function(n){for(var t=-1;n.parent;)n.visible&&t++,n=n.parent;return t},_generateDataItem:function(n,t){return{rowType:"data",node:n,key:n.key,data:n.data,isExpanded:this.isRowExpanded(n.key,t),level:this._getNodeLevel(n)}},_loadOnOptionChange:function(){this._dataSource.load()},_isItemEquals:function(n,t){return!(!this.callBase.apply(this,arguments)||n.node&&t.node&&n.node.hasChildren!==t.node.hasChildren||n.level!==t.level||n.isExpanded!==t.isExpanded)},init:function(){this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed"),this.callBase.apply(this,arguments)},keyOf:function(n){var t=this._dataSource;if(t)return t.keyOf(n)},key:function(){var n=this._dataSource;if(n)return n.getKeyExpr()},publicMethods:function(){return this.callBase().concat(["expandRow","collapseRow","isRowExpanded","getRootNode","getNodeByKey","loadDescendants","forEachNode"])},changeRowExpand:function(n){if(this._dataSource){var t={key:n},e=this.isRowExpanded(n);if(this.executeAction(e?"onRowCollapsing":"onRowExpanding",t),!t.cancel)return this._dataSource.changeRowExpand(n).done(()=>{this.executeAction(e?"onRowCollapsed":"onRowExpanded",t)})}return(new P.BH).resolve()},isRowExpanded:function(n,t){return this._dataSource&&this._dataSource.isRowExpanded(n,t)},expandRow:function(n){return this.isRowExpanded(n)?(new P.BH).resolve():this.changeRowExpand(n)},collapseRow:function(n){return this.isRowExpanded(n)?this.changeRowExpand(n):(new P.BH).resolve()},getRootNode:function(){return this._dataSource&&this._dataSource.getRootNode()},optionChanged:function(n){switch(n.name){case"rootValue":case"parentIdExpr":case"itemsExpr":case"filterMode":case"expandNodesOnFiltering":case"autoExpandAll":case"hasItemsExpr":case"dataStructure":this._columnsController.reset(),this._items=[],this._refreshDataSource(),n.handled=!0;break;case"expandedRowKeys":case"onNodesInitialized":this._dataSource&&!this._dataSource._isNodesInitializing&&!(0,E.bY)(n.value,n.previousValue)&&this._loadOnOptionChange(),n.handled=!0;break;case"maxFilterLengthInRequest":n.handled=!0;break;default:this.callBase(n)}},getNodeByKey:function(n){if(this._dataSource)return this._dataSource.getNodeByKey(n)},getChildNodeKeys:function(n){if(this._dataSource)return this._dataSource.getChildNodeKeys(n)},loadDescendants:function(n,t){if(this._dataSource)return this._dataSource.loadDescendants(n,t)},forEachNode:function(){this._dataSource.forEachNode.apply(this,arguments)}});Po.registerModule("data",{defaultOptions:function(){return(0,y.l)({},qF.p.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:R$}});var L$=l(3881);Po.registerModule("sorting",L$.G);var JF=l(6027),QF="dx-treelist-text-content",e8="dx-treelist-expanded",t8="dx-treelist-collapsed",N$=JF.U.views.rowsView.inherit(function(){var n=function(t,e){var i=(0,u.Z)("<div>").addClass("dx-treelist-empty-space");return t&&i.toggleClass(e8,e).toggleClass(t8,!e).append((0,u.Z)("<span>")),i};return{_renderIconContainer:function(t,e){var i=(0,u.Z)("<div>").addClass("dx-treelist-icon-container").appendTo(t);return e.watch&&e.watch(function(){return[e.row.level,e.row.isExpanded,e.row.node.hasChildren]},()=>{i.empty(),this._renderIcons(i,e)}),t.addClass("dx-treelist-cell-expandable"),this._renderIcons(i,e)},_renderIcons:function(t,e){for(var i=e.row,r=i.level,v=0;v<=r;v++)t.append(n(v===r&&i.node.hasChildren,i.isExpanded));return t},_renderCellCommandContent:function(t,e){return this._renderIconContainer(t,e),!0},_processTemplate:function(t,e){var i,r=this,D=this.callBase(t),A=r._columnsController.getFirstDataColumnIndex();return D&&(null===(i=e.column)||void 0===i?void 0:i.index)===A?{render:function(z){var ue,Q=z.container;r._renderCellCommandContent(Q,z.model)&&(z.container=(ue=Q,(0,u.Z)("<div>").addClass(QF).appendTo(ue))),D.render(z)}}:D},_updateCell:function(t,e){t=t.hasClass(QF)?t.parent():t,this.callBase(t,e)},_rowClick:function(t){var e=this._dataController,i=(0,u.Z)(t.event.target),r=this.isExpandIcon(i),v=e&&e.items()[t.rowIndex];r&&v&&e.changeRowExpand(v.key),this.callBase(t)},_createRow:function(t){var e=t&&t.node,i=this.callBase.apply(this,arguments);return e&&(this.setAria("level",t.level+1,i),e.hasChildren&&this.setAria("expanded",t.isExpanded,i)),i},isExpandIcon:function(t){return!!t.closest("."+e8+", ."+t8).length}}}());Po.registerModule("rows",{defaultOptions:JF.U.defaultOptions,views:{rowsView:N$}});var H$=l(9256);Po.registerModule("contextMenu",H$.y);var z$=l(3979);Po.registerModule("errorHandling",z$.M);var nP=l(3990),W$=nP.C.views.gridView.inherit({_getWidgetAriaLabel:function(){return"dxTreeList-ariaTreeList"},_getTableRoleName:function(){return"treegrid"}});Po.registerModule("gridView",{defaultOptions:nP.C.defaultOptions,controllers:nP.C.controllers,views:{gridView:W$},extenders:{controllers:{resizing:{_synchronizeColumns:function(){var n=this.option("wordWrapEnabled");n&&this._toggleContentMinHeight(!0),this.callBase(arguments),n&&(0,E.Su)(()=>{(0,E.g0)(()=>{(0,E.Su)(()=>{this._toggleContentMinHeight(!1)})})})},_toggleBestFitMode:function(n){this.callBase(n),this._rowsView.getTableElement().find(".dx-treelist-cell-expandable").toggleClass(this.addWidgetPrefix("best-fit"),n)}}}}});var U$=l(2758);Po.registerModule("headerPanel",U$.z);var Hb=Po.callModuleItemsMethod,K$="dx-treelist";Po.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 iP=sa.Z.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var n=this.callBase();return(0,O.S6)(Po.modules,function(){(0,w.mf)(this.defaultOptions)&&(0,y.l)(!0,n,this.defaultOptions())}),n},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,N.x2)()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}}])},_init:function(){this.callBase(),Po.processModules(this,Po),Hb(this,"init")},_clean:E.ZT,_optionChanged:function(n){Hb(this,"optionChanged",[n]),n.handled||this.callBase(n)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(n){n&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.$element().addClass(K$),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var n=this;(0,E.g0)(function(){n._renderContentImpl()})},_dispose:function(){this.callBase(),Hb(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),Hb(this,"beginUpdate")},endUpdate:function(){Hb(this,"endUpdate"),this.callBase()},getController:function(n){return this._controllers[n]},getView:function(n){return this._views[n]},focus:function(n){this.callBase(),(0,w.$K)(n)&&this.getController("keyboardNavigation").focus(n)}});iP.registerModule=Po.registerModule.bind(Po),(0,T.Z)("dxTreeList",iP);const G$=iP;var n8=l(5733),j$=n8.t.extenders.controllers.stateStoring.applyState;Po.registerModule("stateStoring",(0,y.l)(!0,{},n8.t,{extenders:{controllers:{stateStoring:{applyState:function(n){j$.apply(this,arguments),this.option("expandedRowKeys",n.expandedRowKeys?n.expandedRowKeys.slice():[])}},data:{getUserState:function(){var n=this.callBase.apply(this,arguments);return this.option("autoExpandAll")||(n.expandedRowKeys=this.option("expandedRowKeys")),n}}}}}));var $$=l(2116);Po.registerModule("columnChooser",$$.T);var Y$=l(6264);Po.registerModule("masterDetail",(0,y.l)(!0,{},Y$.h,{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)}}}}}));var X$=l(8543);Po.registerModule("editorFactory",X$.V);var H0=l(260),i8="dx-treelist-icon-container",Q$=H0.X.controllers.editing.inherit({_generateNewItem:function(n){var t=this.callBase(n);return t.data={key:n},t.children=[],t.level=0,t.parentKey=this.option("rootValue"),t},_isProcessedItem:function(){return!0},_setInsertAfterOrBeforeKey:function(n,t){void 0!==t&&t!==this.option("rootValue")?n.insertAfterKey=t:this.callBase.apply(this,arguments)},_getLoadedRowIndex:function(n,t){var e=this.getController("data"),i=e.dataSource(),r=i?.parentKeyOf(t.data);if(void 0!==r&&r!==this.option("rootValue")){var v=Tf.Z.getIndexByKey(r,n);return v>=0&&this._dataController.isRowExpanded(r)?v+1:-1}return this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var n=this.callBase.apply(this,arguments),t=this.option("editing");return n||t.allowAdding},_isDefaultButtonVisible:function(n,t){var e=this.callBase.apply(this,arguments),i=t.row;return"add"===n.name?this.allowAdding(t)&&i.rowIndex!==this._getVisibleEditRowIndex()&&!(i.removed||i.isNewRow):e},_getEditingButtons:function(n){var t=this.callBase.apply(this,arguments);return n.column.buttons||t.unshift(this._getButtonConfig("add",n)),t},_beforeSaveEditData:function(n){var t=this._dataController,e=this.callBase.apply(this,arguments);if(n&&"insert"!==n.type){var i=t?.store(),r=i?.key();if(!(0,w.$K)(r))throw Js.Z.Error("E1045")}return e},addRowByRowIndex:function(n){var e=this.getController("data").getVisibleRows()[n];return this.addRow(e?e.key:void 0)},addRow:function(n){return void 0===n&&(n=this.option("rootValue")),this.callBase.call(this,n)},_addRowCore:function(n,t,e){var i=this.callBase,r=this.option("rootValue"),v=this.getController("data"),A=v.dataSource().createParentIdGetter();if(void 0!==(t=A(n))&&t!==r&&!v.isRowExpanded(t)){var z=new P.BH;return v.expandRow(t).done(()=>{setTimeout(()=>{i.call(this,n,t,e).done(z.resolve).fail(z.reject)})}).fail(z.reject),z.promise()}return i.call(this,n,t,e)},_initNewRow:function(n,t){var e=this.getController("data"),i=e.dataSource(),r=i.createParentIdSetter();return r(n.data,t),this.callBase.apply(this,arguments)},allowAdding:function(n){return this._allowEditAction("allowAdding",n)},_needToCloseEditableCell:function(n){return this.callBase.apply(this,arguments)||n.closest("."+i8).length&&this.isEditing()},getButtonLocalizationNames(){var n=this.callBase.apply(this);return n.add="dxTreeList-editingAddRowToNode",n}}),eY=H0.X.extenders.views.rowsView._rowClick,tY=H0.X.extenders.views.rowsView._rowDblClick,r8=function(n){var t=(0,u.Z)(n.event.target),e="dxdblclick"===n.event.type?tY:eY;return!t.closest(".dx-select-checkbox").length&&!nY.call(this,n,e)};function nY(n,t){return!(0,u.Z)(n.event.target).closest("."+i8).length&&(t.call(this,n),!0)}var iY=(0,y.l)({},H0.X.extenders.views.rowsView,{_renderCellCommandContent:function(n,t){var e=this._editingController,i=t.row&&e.isEditRow(t.row.rowIndex),r=t.isEditing||i;return!r&&this.callBase.apply(this,arguments)},_rowClick:function(n){r8.call(this,n)&&this.callBase.apply(this,arguments)},_rowDblClick:function(n){r8.call(this,n)&&this.callBase.apply(this,arguments)}});Po.registerModule("editing",{defaultOptions:function(){return(0,y.l)(!0,H0.X.defaultOptions(),{editing:{texts:{addRowToNode:wn.Z.format("dxTreeList-editingAddRowToNode")}}})},controllers:{editing:Q$},extenders:{controllers:(0,y.l)(!0,{},H0.X.extenders.controllers,{data:{changeRowExpand:function(){return this._editingController.refresh(),this.callBase.apply(this,arguments)}}}),views:{rowsView:iY,headerPanel:H0.X.extenders.views.headerPanel}}});var rY=l(9057);Po.registerModule("editingRowBased",rY.j);var oY=l(8968);Po.registerModule("editingFormBased",oY.F);var aY=l(3098);Po.registerModule("editingCellBased",aY.Z);var zb=l(7867),rP=(0,y.l)({},zb.n.extenders.controllers.editing);delete rP.processItems,delete rP.processDataItem,Po.registerModule("validating",{defaultOptions:zb.n.defaultOptions,controllers:zb.n.controllers,extenders:{controllers:{editing:rP,editorFactory:zb.n.extenders.controllers.editorFactory},views:zb.n.extenders.views}});var z0=l(7031),sY=z0.b.defaultOptions,uY=z0.b.extenders.dataSourceAdapter;z0.b.extenders.controllers.data=(0,y.l)({},z0.b.extenders.controllers.data,{_loadOnOptionChange:function(){var n=this._dataSource&&this._dataSource._virtualScrollController;n&&n.reset(),this.callBase()}}),z0.b.extenders.dataSourceAdapter=(0,y.l)({},uY,{changeRowExpand:function(){return this.callBase.apply(this,arguments).done(()=>{var n=this.getViewportItemIndex();n>=0&&this.setViewportItemIndex(n)})}}),Po.registerModule("virtualScrolling",(0,y.l)({},z0.b,{defaultOptions:function(){return(0,y.l)(!0,sY(),{scrolling:{mode:"virtual"}})}})),XF.extend(z0.b.extenders.dataSourceAdapter);var dY=l(275);Po.registerModule("filterRow",dY.b);var cY=l(2314);Po.registerModule("headerFilter",cY.O);var hY=l(5841);Po.registerModule("filterSync",hY.H);var pY=l(7963);Po.registerModule("filterBuilder",pY.z);var gY=l(9624);Po.registerModule("filterPanel",gY.o);var fY=l(237);Po.registerModule("pager",fY.N);var mY=l(6359);Po.registerModule("columnsResizingReordering",mY.s);var _Y=l(4047);Po.registerModule("columnFixing",_Y.N);var vY=l(8395);Po.registerModule("adaptivity",vY.X);var yD=l(9143),bY=yD.e.extenders.views.rowsView._rowClick,wY=yD.e.extenders.controllers.data._handleDataChanged,EY=function(n,t){return!!n.filter(function(e){return e===t}).length};Po.registerModule("selection",(0,y.l)(!0,{},yD.e,{defaultOptions:function(){return(0,y.l)(!0,yD.e.defaultOptions(),{selection:{showCheckBoxesMode:"always",recursive:!1}})},extenders:{controllers:{data:{_handleDataChanged:function(n){var t=this.getController("selection"),e=t.isRecursiveSelection();e&&(!n||"updateSelectionState"!==n.changeType)&&t.updateSelectionState({selectedItemKeys:this.option("selectedRowKeys")}),wY.apply(this,arguments)},loadDescendants:function(){var n=this,t=n.callBase.apply(n,arguments),e=n.getController("selection"),i=e.isRecursiveSelection();return i&&t.done(function(){e.updateSelectionState({selectedItemKeys:n.option("selectedRowKeys")})}),t}},selection:{init:function(){this.callBase.apply(this,arguments),this._selectionStateByKey={}},_getSelectionConfig:function(){var n=this.callBase.apply(this,arguments),t=n.plainItems;return n.plainItems=e=>{var i;return e&&(i=this._dataController.getCachedStoreData()),i||(i=t.apply(this,arguments).map(r=>r.data)),i||[]},n.isItemSelected=e=>{var i=this._dataController.keyOf(e);return this.isRowSelected(i)},n.isSelectableItem=e=>!!e,n.getItemData=e=>e,n.allowLoadByRange=()=>!1,n},renderSelectCheckBoxContainer:function(n,t){var e=this.component.getView("rowsView");n.addClass("dx-cell-focus-disabled");var i=e._renderSelectCheckBox(n,{value:t.row.isSelected,row:t.row,column:t.column});e._attachCheckBoxClickEvent(i)},_updateSelectColumn:E.ZT,_getSelectAllNodeKeys:function(){var n=this.component,t=n.getRootNode(),e={},i=[],r=this.isRecursiveSelection();return t&&Po.foreachNodes(t.children,function(v){return void 0!==v.key&&(v.visible||r)&&i.push(v.key),!v.visible||!r&&n.isRowExpanded(v.key,e)}),i},isSelectAll:function(){if(0===(this.option("selectedRowKeys")||[]).length)return!1;var t=this.component,e=this._getSelectAllNodeKeys(),i=this.isRecursiveSelection(),r=!1,v=e.filter(function(D){var A=t.isRowSelected(D,i);return void 0===A&&(r=!0),A});return v.length?v.length===e.length||void 0:!!r&&void 0},selectAll:function(){var n=this._getSelectAllNodeKeys().filter(t=>!this.isRowSelected(t));return this.focusedItemIndex(-1),this.selectRows(n,!0)},deselectAll:function(){var n=this._getSelectAllNodeKeys();return this.focusedItemIndex(-1),this.deselectRows(n)},selectedItemKeys:function(n,t,e,i){var r=this,v=r.option("selectedRowKeys"),A=this.isRecursiveSelection()&&r._normalizeSelectionArgs({keys:(0,w.$K)(n)?n:[]},t,!e);return A&&!(0,E.bY)(A.selectedRowKeys,v)?(r._isSelectionNormalizing=!0,this.callBase(A.selectedRowKeys,!1,!1,!1).always(function(){r._isSelectionNormalizing=!1}).done(function(z){A.selectedRowsData=z,r._fireSelectionChanged(A)})):this.callBase(n,t,e,i)},changeItemSelection:function(n,t){var e=this.isRecursiveSelection();if(e&&!t.shift){var i=this._dataController.getKeyByRowIndex(n);return this.selectedItemKeys(i,!0,this.isRowSelected(i)).done(()=>{this.isRowSelected(i)&&this.callBase(n,t,!0)})}return this.callBase.apply(this,arguments)},_updateParentSelectionState:function(n,t){var e=this,i=t,r=n.parent;r&&(r.children.length>1&&(!1===t?i=!!r.children.some(function(A,z,Q){return e._selectionStateByKey[A.key]})&&void 0:!0===t&&(i=!r.children.some(function(A){return!e._selectionStateByKey[A.key]})||void 0)),this._selectionStateByKey[r.key]=i,r.parent&&r.parent.level>=0&&this._updateParentSelectionState(r,i))},_updateChildrenSelectionState:function(n,t){var e=this,i=n.children;i&&i.forEach(function(r){e._selectionStateByKey[r.key]=t,r.children.length>0&&e._updateChildrenSelectionState(r,t)})},_updateSelectionStateCore:function(n,t){for(var e=this._dataController,i=0;i<n.length;i++){this._selectionStateByKey[n[i]]=t;var r=e.getNodeByKey(n[i]);r&&(this._updateParentSelectionState(r,t),this._updateChildrenSelectionState(r,t))}},_getSelectedParentKeys:function(n,t,e){for(var i,r=this._dataController.getNodeByKey(n),v=r&&r.parent,D=[];v&&v.level>=0;){if(D.unshift(v.key),e?!EY(t,v.key)&&this.isRowSelected(v.key):t.indexOf(v.key)>=0){D=this._getSelectedParentKeys((i=v).key,t,e).concat(D);break}if(e)break;v=v.parent}return i&&D||[]},_getSelectedChildKeys:function(n,t){var e=[],i=this._dataController.getNodeByKey(n);return i&&Po.foreachNodes(i.children,r=>{var v=t.indexOf(r.key);return v<0&&e.push(r.key),v>0||v<0&&void 0===this._selectionStateByKey[r.key]}),e},_normalizeParentKeys:function(n,t){var e=[n],i=this._getSelectedParentKeys(n,t.selectedRowKeys);if(i.length){(e=e.concat(i)).forEach(function(v){var D=t.selectedRowKeys.indexOf(v);D>=0&&t.selectedRowKeys.splice(D,1)});var r=this._getSelectedChildKeys(i[0],e);t.selectedRowKeys=t.selectedRowKeys.concat(r)}},_normalizeChildrenKeys:function(n,t){var e=this._dataController.getNodeByKey(n);e&&e.children.forEach(i=>{var r=t.selectedRowKeys.indexOf(i.key);r>=0&&t.selectedRowKeys.splice(r,1),this._normalizeChildrenKeys(i.key,t)})},_normalizeSelectedRowKeysCore:function(n,t,e,i){var r=this;n.forEach(function(v){if(!e||r.isRowSelected(v)!==i){r._normalizeChildrenKeys(v,t);var D=t.selectedRowKeys.indexOf(v);i?(D<0&&t.selectedRowKeys.push(v),t.currentSelectedRowKeys.push(v)):(D>=0&&t.selectedRowKeys.splice(D,1),t.currentDeselectedRowKeys.push(v),r._normalizeParentKeys(v,t))}})},_normalizeSelectionArgs:function(n,t,e){var i,r=Array.isArray(n.keys)?n.keys:[n.keys],v=this.option("selectedRowKeys")||[];return r.length&&(i={currentSelectedRowKeys:[],currentDeselectedRowKeys:[],selectedRowKeys:t?v.slice(0):[]},this._normalizeSelectedRowKeysCore(r,i,t,e)),i},_updateSelectedItems:function(n){this.updateSelectionState(n),this.callBase(n)},_fireSelectionChanged:function(){this._isSelectionNormalizing||this.callBase.apply(this,arguments)},_isModeLeavesOnly:function(n){return"leavesOnly"===n},_removeDuplicatedKeys:function(n){var t=[],e={};return n.forEach(i=>{e[i]||(e[i]=!0,t.push(i))}),t},_getAllChildKeys(n){var t=[],e=this._dataController.getNodeByKey(n);return e&&Po.foreachNodes(e.children,function(i){t.push(i.key)},!0),t},_getAllSelectedRowKeys:function(n){var t=[];return n.forEach(e=>{var i=this._getSelectedParentKeys(e,[],!0),r=this._getAllChildKeys(e);t.push.apply(t,i.concat([e],r))}),t=this._removeDuplicatedKeys(t)},_getParentSelectedRowKeys:function(n){var t=this,e=[];return n.forEach(i=>{!t._getSelectedParentKeys(i,n).length&&e.push(i)}),e},_getLeafSelectedRowKeys:function(n){var t=[],e=this._dataController;return n.forEach(function(i){var r=e.getNodeByKey(i);r&&!r.hasChildren&&t.push(i)}),t},isRecursiveSelection:function(){var n=this.option("selection.mode"),t=this.option("selection.recursive");return"multiple"===n&&t},updateSelectionState:function(n){var t=n.removedItemKeys||[],e=n.selectedItemKeys||[];this.isRecursiveSelection()&&(this._updateSelectionStateCore(t,!1),this._updateSelectionStateCore(e,!0))},isRowSelected:function(n,t){var e,i=this.callBase.apply(this,arguments);return t=null!==(e=t)&&void 0!==e?e:this.isRecursiveSelection(),!i&&t?n in this._selectionStateByKey&&this._selectionStateByKey[n]:i},getSelectedRowKeys(n){if(!this._dataController)return[];var t=this.callBase.apply(this,arguments);return n&&(this.isRecursiveSelection()&&(t=this._getAllSelectedRowKeys(t)),"all"!==n&&("excludeRecursive"===n?t=this._getParentSelectedRowKeys(t):this._isModeLeavesOnly(n)&&(t=this._getLeafSelectedRowKeys(t)))),t},getSelectedRowsData:function(n){var t=this._dataController,e=this.getSelectedRowKeys(n)||[],i=[];return e.forEach(function(r){var v=t.getNodeByKey(r);v&&i.push(v.data)}),i},refresh:function(){return this._selectionStateByKey={},this.callBase.apply(this,arguments)}}},views:{columnHeadersView:{_processTemplate:function(n,t){var e=this,r=this.callBase(n,t),v=e._columnsController.getFirstDataColumnIndex();return r&&"header"===t.rowType&&t.column.index===v?{render:function(D){"multiple"===e.option("selection.mode")&&e.renderSelectAll(D.container,D.model),r.render(D)}}:r},renderSelectAll:function(n,t){n.addClass("dx-treelist-select-all"),this._renderSelectAllCheckBox(n)},_isSortableElement:function(n){return this.callBase(n)&&!n.closest(".dx-select-checkbox").length}},rowsView:{_renderIcons:function(n,t){return this.callBase.apply(this,arguments),!t.row.isNewRow&&"multiple"===this.option("selection.mode")&&this.getController("selection").renderSelectCheckBoxContainer(n,t),n},_rowClick:function(n){var t=(0,u.Z)(n.event.target);this.isExpandIcon(t)?this.callBase.apply(this,arguments):bY.apply(this,arguments)}}}}}));var SY=l(5542);Po.registerModule("search",SY.C);var OY=l(6726);Po.registerModule("keyboardNavigation",(0,y.l)(!0,{},OY.U,{extenders:{controllers:{keyboardNavigation:{_leftRightKeysHandler:function(n,t){var e=this.getVisibleRowIndex(),i=this._dataController;if(!n.ctrl)return this.callBase.apply(this,arguments);var r=this._getDirectionCodeByKey(n.keyName),v=i.getKeyByRowIndex(e);"nextInRow"===r?i.expandRow(v):i.collapseRow(v)}}}}}));var DY=l(7209);Po.registerModule("virtualColumns",DY.t);var TY=l(6775);Po.registerModule("focus",(0,y.l)(!0,{},TY.W,{extenders:{controllers:{data:{changeRowExpand:function(n){return this.option("focusedRowEnabled")&&this.isRowExpanded(n)&&this._isFocusedRowInside(n)&&this.option("focusedRowKey",n),this.callBase.apply(this,arguments)},_isFocusedRowInside:function(n){for(var t=this.option("focusedRowKey"),e=this.getRowIndexByKey(t),i=e>=0&&this.getVisibleRows()[e],r=i&&i.node.parent;r;){if(r.key===n)return!0;r=r.parent}return!1},getParentKey:function(n){var t=this._dataSource,e=this.getNodeByKey(n),i=new P.BH;return e?i.resolve(e.parent?e.parent.key:void 0):t.load({filter:[t.getKeyExpr(),"=",n]}).done(function(r){var v=r[0];v?i.resolve(t.parentKeyOf(v)):i.reject()}).fail(i.reject),i.promise()},expandAscendants:function(n){var t=this,e=t._dataSource,i=new P.BH;return t.getParentKey(n).done(function(r){e&&void 0!==r&&r!==t.option("rootValue")?(e._isNodesInitializing=!0,t.expandRow(r),e._isNodesInitializing=!1,t.expandAscendants(r).done(i.resolve).fail(i.reject)):i.resolve()}).fail(i.reject),i.promise()},getPageIndexByKey:function(n){var t=this,e=t._dataSource,i=new P.BH;return t.expandAscendants(n).done(function(){e.load({parentIds:[]}).done(function(r){var v=function IY(n,t){var e=-1;return n.forEach(function(i,r){t(i)&&(e=r)}),e}(r,function(A){return t.keyOf(A.data)===n}),D=-1;v>=0&&(D=Math.floor(v/t.pageSize())),i.resolve(D)}).fail(i.reject)}).fail(i.reject),i.promise()}}}}}));var MY=l(8702);Po.registerModule("rowDragging",MY.d);const o8=G$;var W0=l(7122),Wb="tasks";class PY{constructor(t){this._gantt=t,this._$treeList=this._gantt._$treeList}getTreeList(){var{keyExpr:t,parentIdExpr:e}=this._gantt.option(Wb);return this._treeList=this._gantt._createComponent(this._$treeList,o8,{dataSource:this.createDataSource(this._gantt._tasksRaw,t),keyExpr:t,filterSyncEnabled:!0,parentIdExpr:e,columns:this.getColumns(),columnResizingMode:"nextColumn",height:this._getHeight(),width:this._gantt.option("taskListWidth"),selection:{mode:Vs.getSelectionMode(this._gantt.option("allowSelection"))},selectedRowKeys:Vs.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(t){this._treeList?this._initGanttOnContentReady(t):this._postponedGanttInitRequired=!0,this._gantt._onTreeListContentReady(t)}_initGanttOnContentReady(t){t.component.getDataSource()&&(this._gantt._initGanttView(),this._initScrollSync(t.component)),this._gantt._sortAndFilter(),this._gantt._sizeHelper.updateGanttRowHeights()}_onSelectionChanged(t){var e=t.currentSelectedRowKeys[0];this._gantt._setGanttViewOption("selectedRowKey",e),this._gantt._setOptionWithoutOptionChange("selectedRowKey",e),this._gantt._actionsManager.raiseSelectionChangedAction(e)}_onRowCollapsed(t){this._gantt._onTreeListRowExpandChanged(t,!1)}_onRowExpanded(t){this._gantt._onTreeListRowExpandChanged(t,!0)}_onRowPrepared(t){"data"===t.rowType&&t.node.children.length>0&&(0,u.Z)(t.rowElement).addClass("dx-gantt-collapsable-row")}_onContextMenuPreparing(t){var e,i;if("header"!==t.target){"data"===(null===(e=t.row)||void 0===e?void 0:e.rowType)&&this.setOption("selectedRowKeys",[t.row.data[this._gantt.option("tasks.keyExpr")]]),t.items=[];var r={cancel:!1,event:t.event,type:"task",key:null===(i=t.row)||void 0===i?void 0:i.key,position:{x:t.event.pageX,y:t.event.pageY}};this._gantt._showPopupMenu(r)}}_getHeight(){return(0,s.Cr)(this._$treeList)?(0,s.Cr)(this._$treeList):(this._gantt._hasHeight=(0,w.$K)(this._gantt.option("height"))&&""!==this._gantt.option("height"),this._gantt._hasHeight?"100%":"")}_initScrollSync(t){var e=t.getScrollable();e&&(e.off("scroll"),e.on("scroll",i=>{this._onScroll(i)}))}_onScroll(t){var e=this._gantt._ganttView.getTaskAreaContainer();e.scrollTop!==t.component.scrollTop()&&(e.scrollTop=t.component.scrollTop())}_correctRowsViewRowHeight(t){var e=this._treeList._views&&this._treeList._views.rowsView;e?._rowHeight!==t&&(e._rowHeight=t)}_skipUpdateTreeListDataSource(){return this._gantt.option("validation.autoUpdateParentTasks")}selectRows(t){this.setOption("selectedRowKeys",t)}scrollBy(t){var e=this._treeList.getScrollable();if(e){var i=t-e.scrollTop();0!==i&&e.scrollBy({left:0,top:i})}}updateDataSource(t){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(t);else if(i){var r=this._treeList.option("dataSource");this._gantt._onParentTasksRecalculated(r)}}setDataSource(t){this.setOption("dataSource",this.createDataSource(t))}createDataSource(t,e){return t&&new W0.o({store:new Nb.Z({data:t,key:e||this.getOption("keyExpr")})})}onRowClick(t){this._gantt._actionsManager.raiseTaskClickAction(t.key,t.event)}onRowDblClick(t){this._gantt._actionsManager.raiseTaskDblClickAction(t.key,t.event)&&this._gantt._ganttView._ganttViewCore.showTaskEditDialog()}saveExpandedKeys(){var t,e=(null===(t=this._treeList)||void 0===t?void 0:t.getVisibleRows().length)>0,i=this.getOption("expandedRowKeys");e&&i&&(this._savedExpandedKeys=i)}_onNodesInitialized(t){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 t=this._treeList._$element.find(".dx-data-row"),e=t.length?(0,Zo.l)(t.last().get(0)).height:34;return e||(e=34),this._correctRowsViewRowHeight(e),e}getHeaderHeight(){return(0,Zo.l)(this._treeList._$element.find(".dx-treelist-headers").get(0)).height}getColumns(){var t=this._gantt.option("columns");if(t)for(var e=0;e<t.length;e++){var i=t[e];(i.dataField===this._gantt.option("".concat(Wb,".keyExpr"))||i.dataField===this._gantt.option("".concat(Wb,".parentIdExpr")))&&!i.dataType&&(i.dataType="object")}return t}getSievedItems(){var t=this._treeList.getRootNode();if(t){var e=[];Vs.convertTreeToList(t,e);var i=Vs.compileGettersByOption(this._gantt.option(Wb));return this._gantt._validateSourceData(Wb,e).map(Vs.prepareMapHandler(i))}}setOption(t,e){this._treeList&&this._treeList.option(t,e)}getOption(t){return this._treeList.option(t)}onTaskInserted(t,e){if((0,w.$K)(e)){var i=this.getOption("expandedRowKeys");-1===i.indexOf(e)&&(i.push(e),this.setOption("expandedRowKeys",i))}this.selectRows(Vs.getArrayFromOneElement(t)),this.setOption("focusedRowKey",t)}getDataSource(){var t;return null===(t=this._treeList)||void 0===t?void 0:t.getDataSource()}}var kY=l(6660),s8=l.n(kY);class LY{constructor(t,e){this._element=t,this._scrollView=e._createComponent(this._element,Ef.Z,{scrollByContent:!1,scrollByThumb:!0,showScrollbar:"onHover",direction:"both",onScroll:()=>{e.updateView()}})}get scrollTop(){return this._scrollView.scrollTop()}set scrollTop(t){var e=t-this._scrollView.scrollTop();0!==e&&this._scrollView.scrollBy({left:0,top:e})}get scrollLeft(){return this._scrollView.scrollLeft()}set scrollLeft(t){var e=t-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}}var BY=l(5404);class FY extends sa.Z{_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 t=function RY(){if(!s8())throw Js.Z.Error("E1041","devexpress-gantt");return s8()}();this._ganttViewCore=new t(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(t){return(0,w.$K)(t)?t:Bo.Z.firstDayOfWeekIndex()}getTaskAreaContainer(){return this._ganttViewCore.getTaskAreaContainer()}getBarManager(){return this._ganttViewCore.barManager}executeCoreCommand(t){var e=this._ganttViewCore.getCommandByKey(t);e&&e.execute()}changeTaskExpanded(t,e){this._ganttViewCore.changeTaskExpanded(t,e)}updateView(){var t;null===(t=this._ganttViewCore)||void 0===t||t.updateView()}updateBarItemsState(){this._ganttViewCore.barManager.updateItemsState([])}setWidth(t){this._ganttViewCore.setWidth(t)}_onDimensionChanged(){this._ganttViewCore.onBrowserWindowResize()}_selectTask(t){this._ganttViewCore.selectTaskById(t)}_update(t){var e;null===(e=this._ganttViewCore)||void 0===e||e.updateWithDataReload(t)}_getCultureInfo(){return{monthNames:Bo.Z.getMonthNames("wide"),dayNames:Bo.Z.getDayNames("wide"),abbrMonthNames:Bo.Z.getMonthNames("abbreviated"),abbrDayNames:Bo.Z.getDayNames("abbreviated"),quarterNames:this._getQuarterNames(),amText:this._getAmText(),pmText:this._getPmText(),start:wn.Z.format("dxGantt-dialogStartTitle"),end:wn.Z.format("dxGantt-dialogEndTitle"),progress:wn.Z.format("dxGantt-dialogProgressTitle")}}_getAmText(){return this._hasAmPM()?Bo.Z.getPeriodNames()[0]:""}_getPmText(){return this._hasAmPM()?Bo.Z.getPeriodNames()[1]:""}_hasAmPM(){var t=new Date(Date.UTC(2012,11,12,3,0,0));return t.toLocaleTimeString(BY.Z.locale()).match(/am|pm/i)||t.toString().match(/am|pm/i)}_getQuarterNames(){var t=wn.Z.format("dxGantt-quarter");return t?[(0,Yo.WU)(t,1),(0,Yo.WU)(t,2),(0,Yo.WU)(t,3),(0,Yo.WU)(t,4)]:Bo.Z.getQuarterNames()}_getTaskTitlePosition(t){switch(t){case"outside":return 1;case"none":return 2;default:return 0}}_getViewTypeByScaleType(t){switch(t){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(t){return{enabled:t.enabled,allowDependencyDelete:t.allowDependencyDeleting,allowDependencyInsert:t.allowDependencyAdding,allowTaskDelete:t.allowTaskDeleting,allowTaskInsert:t.allowTaskAdding,allowTaskUpdate:t.allowTaskUpdating,allowResourceDelete:t.allowResourceDeleting,allowResourceInsert:t.allowResourceAdding,allowResourceUpdate:t.allowResourceUpdating,allowTaskResourceUpdate:t.allowTaskResourceUpdating}}_parseViewTypeRangeSettings(t){return{min:this._getViewTypeByScaleType(t.min),max:this._getViewTypeByScaleType(t.max)}}_optionChanged(t){switch(t.name){case"width":super._optionChanged(t),this._ganttViewCore.setWidth(t.value);break;case"height":this._ganttViewCore.setHeight(t.value);break;case"tasks":case"dependencies":case"resources":case"resourceAssignments":this._sieveOptions=void 0,this._update(!0);break;case"showResources":this._ganttViewCore.setShowResources(t.value);break;case"showDependencies":this._ganttViewCore.setShowDependencies(t.value);break;case"taskTitlePosition":this._ganttViewCore.setTaskTitlePosition(this._getTaskTitlePosition(t.value));break;case"firstDayOfWeek":this._ganttViewCore.setFirstDayOfWeek(this._getFirstDayOfWeek(t.value));break;case"startDateRange":this._ganttViewCore.setStartDateRange(t.value);break;case"endDateRange":this._ganttViewCore.setEndDateRange(t.value);break;case"allowSelection":this._ganttViewCore.setAllowSelection(t.value);break;case"selectedRowKey":this._selectTask(t.value);break;case"editing":this._ganttViewCore.setEditingSettings(this._parseEditingSettings(t.value));break;case"validation":this._ganttViewCore.setValidationSettings(t.value),this._update(!0);break;case"showRowLines":this._ganttViewCore.setRowLinesVisible(t.value);break;case"scaleType":this._ganttViewCore.setViewType(this._getViewTypeByScaleType(t.value));break;case"scaleTypeRange":this._ganttViewCore.setViewTypeRange(this._getViewTypeByScaleType(t.value.min),this._getViewTypeByScaleType(t.value.max));break;case"stripLines":this._ganttViewCore.setStripLines({stripLines:t.value});break;case"taskTooltipContentTemplate":this._ganttViewCore.setTaskTooltipContentTemplate(t.value);break;case"taskProgressTooltipContentTemplate":this._ganttViewCore.setTaskProgressTooltipContentTemplate(t.value);break;case"taskTimeTooltipContentTemplate":this._ganttViewCore.setTaskTimeTooltipContentTemplate(t.value);break;case"taskContentTemplate":this._ganttViewCore.setTaskContentTemplate(t.value);break;case"sieve":this._sortAndFilter(t.value);break;default:super._optionChanged(t)}}get bars(){return this.option("bars")}getRowHeight(){return this.option("rowHeight")}getHeaderHeight(){return this.option("headerHeight")}getGanttTasksData(){var t=this.option("tasks"),e=this.getSieveOptions();return null!=e&&e.sievedItems&&null!=e&&e.sieveColumn?e.sievedItems:t}_sortAndFilter(t){this._sieveOptions=t,this._update(!(null!=t&&t.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(t){return this._taskAreaContainer||(this._taskAreaContainer=new LY(t,this)),this._taskAreaContainer}prepareExternalTaskAreaContainer(t,e){null!=e&&e.height&&this._taskAreaContainer._scrollView.option("height",e.height)}changeGanttTaskSelection(t,e){this._onSelectionChanged({id:t,selected:e})}onGanttScroll(t){this._onScroll({scrollTop:t})}showDialog(t,e,i,r){this._onDialogShowing({name:t,parameters:e,callback:i,afterClosing:r})}getModelChangesListener(){return this.option("modelChangesListener")}getExportInfo(){return this.option("exportInfo")}showPopupMenu(t){this._onPopupMenuShowing(t)}hidePopupMenu(t){this._onPopupMenuHiding(t)}getMainElement(){return this.option("mainElement").get(0)}adjustControl(){this._onAdjustControl()}getRequireFirstLoadParentAutoCalc(){return this.option("validation.autoUpdateParentTasks")}collapseAll(){this._collapseAll()}expandAll(){this._expandAll()}onTaskClick(t,e){return this._taskClick({key:t,event:e}),!0}onTaskDblClick(t,e){return this._taskDblClick({key:t,event:e})}onGanttViewContextMenu(t,e,i){return!0}getFormattedDateText(t){var e="";if(t){var i=Bo.Z.format(t,"shortDate"),r=this._hasAmPM()?"hh:mm a":"HH:mm";e=i+" "+Bo.Z.format(t,r)}return e}destroyTemplate(t){(0,u.Z)(t).empty()}onTaskAreaSizeChanged(t){var e=this._taskAreaContainer._scrollView;if((0,w.$K)(t?.height)){var i=t?.height>this._taskAreaContainer.getHeight()?"both":"horizontal";e.option("direction",i)}}getTreeListTableStyle(){return this.callExportHelperMethod("getTreeListTableStyle")}getTreeListColCount(){return this.callExportHelperMethod("getTreeListColCount")}getTreeListHeaderInfo(t){return this.callExportHelperMethod("getTreeListHeaderInfo",t)}getTreeListCellInfo(t,e,i){return this.callExportHelperMethod("getTreeListCellInfo",i,e)}getTreeListEmptyDataCellInfo(){return this.callExportHelperMethod("getTreeListEmptyDataCellInfo")}callExportHelperMethod(t){for(var e=this.option("exportHelper"),i=arguments.length,r=new Array(i>1?i-1:0),v=1;v<i;v++)r[v-1]=arguments[v];return e[t](...r)}}var l8=(0,fi.Jj)(),Kl="tasks",CD="dependencies",Ub="resources",oP="resourceAssignments",u8="gantt_new_task_key";(0,T.Z)("dxGantt",class d8 extends sa.Z{_init(){super._init(),this._initGantt(),this._isGanttRendered=!1,this._initHelpers()}_initGantt(){this._refreshDataSources()}_initMarkup(){super._initMarkup(),this.$element().addClass("dx-gantt"),this._$toolbarWrapper=(0,u.Z)("<div>").addClass("dx-gantt-toolbar-wrapper").appendTo(this.$element()),this._$toolbar=(0,u.Z)("<div>").appendTo(this._$toolbarWrapper),this._$mainWrapper=(0,u.Z)("<div>").addClass("dx-gantt-main-wrapper").appendTo(this.$element()),this._$treeListWrapper=(0,u.Z)("<div>").addClass("dx-gantt-treelist-wrapper").appendTo(this._$mainWrapper),this._$treeList=(0,u.Z)("<div>").appendTo(this._$treeListWrapper),this._$splitter=(0,u.Z)("<div>").appendTo(this._$mainWrapper),this._$ganttView=(0,u.Z)("<div>").addClass("dx-gantt-view").appendTo(this._$mainWrapper),this._$dialog=(0,u.Z)("<div>").appendTo(this.$element()),this._$loadPanel=(0,u.Z)("<div>").appendTo(this.$element()),this._$contextMenu=(0,u.Z)("<div>").appendTo(this.$element())}_clean(){var t;null===(t=this._ganttView)||void 0===t||t._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 t;null===(t=this._ganttView)||void 0===t||t._onDimensionChanged()}_visibilityChanged(t){t&&this._refreshGantt()}_refreshGantt(){this._refreshDataSources(),this._refresh()}_refreshDataSources(){this._refreshDataSource(Kl),this._refreshDataSource(CD),this._refreshDataSource(Ub),this._refreshDataSource(oP)}_renderContent(){this._isMainElementVisible=this.$element().is(":visible"),this._isMainElementVisible&&!this._isGanttRendered&&(this._isGanttRendered=!0,this._renderBars(),this._renderTreeList(),this._renderSplitter())}_renderTreeList(){this._ganttTreeList=new PY(this),this._treeList=this._ganttTreeList.getTreeList(),this._ganttTreeList.onAfterTreeListCreate()}_renderSplitter(){this._splitter=this._createComponent(this._$splitter,vF,{container:this.$element(),leftElement:this._$treeListWrapper,rightElement:this._$ganttView,onApplyPanelSize:t=>{this._sizeHelper.onApplyPanelSize(t)}}),this._splitter.option("initialLeftPanelWidth",this.option("taskListWidth"))}_renderBars(){this._bars=[],this._toolbar=new E$(this._$toolbar,this),this._updateToolbarContent(),this._bars.push(this._toolbar),this._contextMenuBar=new S$(this._$contextMenu,this),this._updateContextMenu(),this._bars.push(this._contextMenuBar)}_initHelpers(){this._mappingHelper=new C$(this),this._customFieldsManager=new e$(this),this._actionsManager=new Jj(this),this._ganttTemplatesManager=new b$(this),this._sizeHelper=new x$(this)}_initGanttView(){this._ganttView||(this._ganttView=this._createComponent(this._$ganttView,FY,{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:t=>{this._ganttTreeList.selectRows(Vs.getArrayFromOneElement(t.id))},onScroll:t=>{this._ganttTreeList.scrollBy(t.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:Yj_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:t=>{this._ganttTreeList.onRowClick(t)},onTaskDblClick:t=>{this._ganttTreeList.onRowDblClick(t)},onAdjustControl:()=>{this._sizeHelper.onAdjustControl()},onContentReady:this._onGanttViewContentReady.bind(this)}))}_onGanttViewContentReady(t){this._isParentAutoUpdateMode()||this._fireContentReadyAction()}_isParentAutoUpdateMode(){return this.option("validation.autoUpdateParentTasks")}_onTreeListContentReady(t){this._isParentAutoUpdateMode()&&this._treeListParentRecalculatedDataUpdating&&this._fireContentReadyAction(),delete this._treeListParentRecalculatedDataUpdating}_refreshDataSource(t){var e=this["_".concat(t,"Option")];e&&(e.dispose(),delete this["_".concat(t,"Option")],delete this["_".concat(t)]),(e=new Xj(t,this._getLoadPanel.bind(this),(i,r)=>{this._dataSourceChanged(i,r)})).option("dataSource",this._getSpecificDataSourceOption(t)),e._refreshDataSource(),this["_".concat(t,"Option")]=e}_getSpecificDataSourceOption(t){var e=this.option("".concat(t,".dataSource"));return!e||Array.isArray(e)?{store:{type:"array",data:e??[],key:this.option("".concat(t,".keyExpr"))}}:e}_dataSourceChanged(t,e){var i=Vs.compileGettersByOption(this.option(t)),r=this._validateSourceData(t,e),v=r.map(Vs.prepareMapHandler(i));if(this["_".concat(t)]=v,this._setGanttViewOption(t,v),t===Kl){var D,A,z;this._tasksRaw=r;var Q=!(null!==(D=this._ganttTreeList)&&void 0!==D&&D.getDataSource()||this._ganttView);null===(A=this._ganttTreeList)||void 0===A||A.saveExpandedKeys(),null===(z=this._ganttTreeList)||void 0===z||z.updateDataSource(r,Q)}}_validateSourceData(t,e){return e&&t===Kl?this._validateTaskData(e):e}_validateTaskData(t){for(var e,i=(0,No.vb)(this.option("".concat(Kl,".keyExpr"))),r=(0,No.vb)(this.option("".concat(Kl,".parentIdExpr"))),v=null!==(e=this.option("rootValue"))&&void 0!==e?e:"dx_dxt_gantt_default_root_value",D={},A=0;A<t.length;A++){var z=t[A];if(z){var Q,ue=i(z),we=ue===v,Le=null!==(Q=D[ue])&&void 0!==Q?Q:D[ue]={key:ue,children:[]};if(!we){var Ue,ut,It=null!==(Ue=r(z))&&void 0!==Ue?Ue:v,Gt=null!==(ut=D[It])&&void 0!==ut?ut:D[It]={key:It,children:[]};Gt.children.push(Le),Le.parent=Gt}}}var ln=[v];return this._appendChildKeys(D[v],ln),t.filter(En=>ln.indexOf(i(En))>-1)}_appendChildKeys(t,e){for(var i=t?.children,r=0;r<i?.length;r++){var v=i[r];e.push(v.key),this._appendChildKeys(v,e)}}_onRecordInserted(t,e,i){var r=this["_".concat(t,"Option")];if(r){var v=Vs.getStoreObject(this.option(t),e),D=t===Kl;D&&this._customFieldsManager.addCustomFieldsDataFromCache(u8,v),r.insert(v,A=>{var Q=(0,No.vb)(this.option("".concat(t,".keyExpr")))(A);i(Q),this._ganttTreeList.saveExpandedKeys(),r._reloadDataSource().done(ue=>{D&&this._ganttTreeList.onTaskInserted(Q,e.parentId)}),this._actionsManager.raiseInsertedAction(t,v,Q)})}}_onRecordUpdated(t,e,i){var r=this["_".concat(t,"Option")],v=t===Kl;if(r){var D=this._mappingHelper.convertCoreToMappedData(t,i);v&&this._customFieldsManager.cache.hasData(e)&&this._customFieldsManager.addCustomFieldsDataFromCache(e,D),r.update(e,D,()=>{this._ganttTreeList.saveExpandedKeys(),r._reloadDataSource(),this._actionsManager.raiseUpdatedAction(t,D,e)})}}_onRecordRemoved(t,e,i){var r=this["_".concat(t,"Option")];r&&r.remove(e,()=>{this._ganttTreeList.saveExpandedKeys(),r._reloadDataSource(),this._actionsManager.raiseDeletedAction(t,e,this._mappingHelper.convertCoreToMappedData(t,i))})}_onParentTaskUpdated(t){var e=this.getTaskDataByCoreData(t);this._actionsManager.raiseUpdatedAction(Kl,e,t.id)}_onParentTasksRecalculated(t){if(!this.isSieving){var e=Vs.compileSettersByOption(this.option(Kl)),i=this._customFieldsManager.appendCustomFields(t.map(Vs.prepareSetterMapHandler(e)));setTimeout(()=>{var r;this._treeListParentRecalculatedDataUpdating=!0,null===(r=this._ganttTreeList)||void 0===r||r.setDataSource(i)})}this.isSieving=!1}_sortAndFilter(){var t,e,i,r=this._treeList,v=r.getVisibleColumns(),D=v.filter(ut=>ut.sortIndex>-1),A=D.map(ut=>({sortIndex:ut.sortIndex,sortOrder:ut.sortOrder})),z=!this._compareSortedState(null===(t=this._savedSortFilterState)||void 0===t?void 0:t.sort,A),Q=r.option("filterValue"),ue=r.option("expandNodesOnFiltering")&&Q!==(null===(e=this._savedSortFilterState)||void 0===e?void 0:e.filter),we=D[0]||v.filter(ut=>{var It;return(0,w.$K)(ut.filterValue)||(null===(It=ut.filterValues)||void 0===It?void 0:It.length)})[0],Le=(null===(i=this._savedSortFilterState)||void 0===i?void 0:i.sieveColumn)&&!we;if(we||Le){var Ue=we&&{sievedItems:this._ganttTreeList.getSievedItems(),sieveColumn:we,expandTasks:ue||Q&&z};this.isSieving=!Le,this._setGanttViewOption("sieve",Ue)}this._savedSortFilterState={sort:A,filter:Q,sieveColumn:we}}_compareSortedState(t,e){return!(!t||!e||t.length!==e.length)&&t.every((i,r)=>i.sortIndex===e[r].sortIndex&&i.sortOrder===e[r].sortOrder)}_getToolbarItems(){return this.option("toolbar.items")||[]}_updateToolbarContent(){var t=this._getToolbarItems();t.length?this._$toolbarWrapper.show():this._$toolbarWrapper.hide(),this._toolbar&&this._toolbar.createItems(t),this._updateBarItemsState()}_updateContextMenu(){var t=this.option("contextMenu");t.enabled&&this._contextMenuBar&&(this._contextMenuBar.createItems(t.items),this._updateBarItemsState())}_updateBarItemsState(){this._ganttView&&this._ganttView.updateBarItemsState()}_showDialog(t){this._dialogInstance||(this._dialogInstance=new c$(this,this._$dialog)),this._dialogInstance.show(t.name,t.parameters,t.callback,t.afterClosing,this.option("editing"))}_showPopupMenu(t){if(this.option("contextMenu.enabled")){this._ganttView.getBarManager().updateContextMenu();var e={cancel:!1,event:t.event,targetType:t.type,targetKey:t.key,items:(0,y.l)(!0,[],this._contextMenuBar._items),data:"task"===t.type?this.getTaskData(t.key):this.getDependencyData(t.key)};this._actionsManager.raiseContextMenuPreparing(e),e.cancel||this._contextMenuBar.show(t.position,e.items)}}_hidePopupMenu(){this._contextMenuBar.hide()}_getLoadPanel(){return this._loadPanel||(this._loadPanel=this._createComponent(this._$loadPanel,YA.Z,{position:{of:this.$element()}})),this._loadPanel}_getTaskKeyGetter(){return(0,No.vb)(this.option("".concat(Kl,".keyExpr")))}_findTaskByKey(t){var e,i=null===(e=this._tasksOption)||void 0===e?void 0:e._getItems(),r=this._getTaskKeyGetter();return i.find(v=>r(v)===t)}_setGanttViewOption(t,e){this._ganttView&&this._ganttView.option(t,e)}_getGanttViewOption(t,e){var i;return null===(i=this._ganttView)||void 0===i?void 0:i.option(t)}_getExportHelper(){var t;return null!==(t=this._exportHelper)&&void 0!==t||(this._exportHelper=new v$(this)),this._exportHelper}_executeCoreCommand(t){this._ganttView.executeCoreCommand(t)}_expandAll(){this._changeExpandAll(!0)}_collapseAll(){this._changeExpandAll(!1)}_onTreeListRowExpandChanged(t,e){this._lockRowExpandEvent||(this._ganttView.changeTaskExpanded(t.key,e),this._sizeHelper.adjustHeight())}_changeExpandAll(t,e,i){var r,z,v=[],D=[];if(this._treeList.forEachNode(ue=>{var we;null!==(we=ue.children)&&void 0!==we&&we.length&&v.push(ue)}),i){var A=this._treeList.getNodeByKey(i);Vs.getAllParentNodesKeys(A,D)}this._lockRowExpandEvent=v.length>0;var Q=v.reduce((ue,we,Le)=>{i?t=D.includes(we.key):e&&(t=we.level<e),ue[we.key]=t;var Ue=t?this._treeList.expandRow:this._treeList.collapseRow;return Le===v.length-1?z=Ue(we.key):Ue(we.key),ue},{});null===(r=z)||void 0===r||r.then(()=>{this._ganttView._ganttViewCore.applyTasksExpandedState(Q),this._sizeHelper.adjustHeight(),delete this._lockRowExpandEvent})}getTaskResources(t){return(0,w.$K)(t)?this._ganttView._ganttViewCore.getTaskResources(t).map(i=>this._mappingHelper.convertCoreToMappedData(Ub,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(t){if(!(0,w.$K)(t))return null;var e=this._ganttView._ganttViewCore.getTaskData(t);return this.getTaskDataByCoreData(e)}getTaskDataByCoreData(t){var e=t?this._mappingHelper.convertCoreToMappedData(Kl,t):null;return this._customFieldsManager.addCustomFieldsData(t.id,e),e}insertTask(t){this._customFieldsManager.saveCustomFieldsDataToCache(u8,t),this._ganttView._ganttViewCore.insertTask(this._mappingHelper.convertMappedToCoreData(Kl,t))}deleteTask(t){this._ganttView._ganttViewCore.deleteTask(t)}updateTask(t,e){var i=this._mappingHelper.convertMappedToCoreData(Kl,e),r=!Object.keys(i).length;if(this._customFieldsManager.saveCustomFieldsDataToCache(t,e,!0,r),r){var v=this._customFieldsManager._getCustomFieldsData(e);Object.keys(v).length>0&&this._actionsManager.raiseUpdatingAction(Kl,{cancel:!1,key:t,newValues:{}})}else this._ganttView._ganttViewCore.updateTask(t,i)}getDependencyData(t){if(!(0,w.$K)(t))return null;var e=this._ganttView._ganttViewCore.getDependencyData(t);return e?this._mappingHelper.convertCoreToMappedData(CD,e):null}insertDependency(t){this._ganttView._ganttViewCore.insertDependency(this._mappingHelper.convertMappedToCoreData(CD,t))}deleteDependency(t){this._ganttView._ganttViewCore.deleteDependency(t)}getResourceData(t){var e=this._ganttView._ganttViewCore.getResourceData(t);return e?this._mappingHelper.convertCoreToMappedData(Ub,e):null}deleteResource(t){this._ganttView._ganttViewCore.deleteResource(t)}insertResource(t,e){this._ganttView._ganttViewCore.insertResource(this._mappingHelper.convertMappedToCoreData(Ub,t),e)}getResourceAssignmentData(t){var e=this._ganttView._ganttViewCore.getResourceAssignmentData(t);return e?this._mappingHelper.convertCoreToMappedData(oP,e):null}assignResourceToTask(t,e){this._ganttView._ganttViewCore.assignResourceToTask(t,e)}unassignResourceFromTask(t,e){this._ganttView._ganttViewCore.unassignResourceFromTask(t,e)}unassignAllResourcesFromTask(t){this._ganttView._ganttViewCore.unassignAllResourcesFromTask(t)}updateDimensions(){this._sizeHelper.onAdjustControl()}scrollToDate(t){this._ganttView._ganttViewCore.scrollToDate(t)}showResourceManagerDialog(){this._ganttView._ganttViewCore.showResourcesDialog()}showTaskDetailsDialog(t){this._ganttView._ganttViewCore.showTaskDetailsDialog(t)}exportToPdf(t){return this._exportToPdf(t)}_exportToPdf(t){var e,i,r,v,D;this._exportHelper.reset();var A=(0,y.l)({},t);return A.createDocumentMethod&&(A.docCreateMethod=A.createDocumentMethod),null!==(e=A.pdfDocument)&&void 0!==e||(A.pdfDocument=A.jsPDFDocument),null!==(i=A.docCreateMethod)&&void 0!==i||(A.docCreateMethod=null!==(r=null===(v=l8.jspdf)||void 0===v?void 0:v.jsPDF)&&void 0!==r?r:l8.jsPDF),null!==(D=A.format)&&void 0!==D||(A.format="a4"),new Promise(z=>{var Q;z(null===(Q=this._ganttView)||void 0===Q?void 0:Q._ganttViewCore.exportToPdf(A))})}refresh(){return new Promise((t,e)=>{try{this._refreshGantt(),t()}catch(i){e(i.message)}})}expandAll(){this._expandAll()}collapseAll(){this._collapseAll()}expandAllToLevel(t){this._changeExpandAll(!1,t)}expandToTask(t){var e,i=this._treeList.getNodeByKey(t);this._changeExpandAll(!1,0,null==i||null===(e=i.parent)||void 0===e?void 0:e.key)}collapseTask(t){this._treeList.collapseRow(t)}expandTask(t){this._treeList.expandRow(t)}showResources(t){this.option("showResources",t)}showDependencies(t){this.option("showDependencies",t)}zoomIn(){this._ganttView._ganttViewCore.zoomIn()}zoomOut(){this._ganttView._ganttViewCore.zoomOut()}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),Vs.getDefaultOptions())}_optionChanged(t){var e,i,r,v,D,A,z,Q,ue,we,Le,Ue,ut,It,Gt,ln,En,on,Nt,Jt,un,Mn,Kn,Xn,si,pi,yi,Ui,Bi,oi,Fi,Zi,nr,hr,gr,Ur,Ar,Pr,Fr,io,Hr,xo;switch(t.name){case"tasks":this._refreshDataSource(Kl);break;case"dependencies":this._refreshDataSource(CD);break;case"resources":this._refreshDataSource(Ub);break;case"resourceAssignments":this._refreshDataSource(oP);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",t.value);break;case"showDependencies":this._setGanttViewOption("showDependencies",t.value);break;case"taskTitlePosition":this._setGanttViewOption("taskTitlePosition",t.value);break;case"firstDayOfWeek":this._setGanttViewOption("firstDayOfWeek",t.value);break;case"startDateRange":this._setGanttViewOption("startDateRange",t.value);break;case"endDateRange":this._setGanttViewOption("endDateRange",t.value);break;case"selectedRowKey":null===(r=this._ganttTreeList)||void 0===r||r.selectRows(Vs.getArrayFromOneElement(t.value));break;case"onSelectionChanged":null===(v=this._actionsManager)||void 0===v||v.createSelectionChangedAction();break;case"onTaskClick":null===(D=this._actionsManager)||void 0===D||D.createTaskClickAction();break;case"onTaskDblClick":null===(A=this._actionsManager)||void 0===A||A.createTaskDblClickAction();break;case"onTaskInserting":null===(z=this._actionsManager)||void 0===z||z.createTaskInsertingAction();break;case"onTaskInserted":null===(Q=this._actionsManager)||void 0===Q||Q.createTaskInsertedAction();break;case"onTaskDeleting":null===(ue=this._actionsManager)||void 0===ue||ue.createTaskDeletingAction();break;case"onTaskDeleted":null===(we=this._actionsManager)||void 0===we||we.createTaskDeletedAction();break;case"onTaskUpdating":null===(Le=this._actionsManager)||void 0===Le||Le.createTaskUpdatingAction();break;case"onTaskUpdated":null===(Ue=this._actionsManager)||void 0===Ue||Ue.createTaskUpdatedAction();break;case"onTaskMoving":null===(ut=this._actionsManager)||void 0===ut||ut.createTaskMovingAction();break;case"onTaskEditDialogShowing":null===(It=this._actionsManager)||void 0===It||It.createTaskEditDialogShowingAction();break;case"onResourceManagerDialogShowing":null===(Gt=this._actionsManager)||void 0===Gt||Gt.createResourceManagerDialogShowingAction();break;case"onDependencyInserting":null===(ln=this._actionsManager)||void 0===ln||ln.createDependencyInsertingAction();break;case"onDependencyInserted":null===(En=this._actionsManager)||void 0===En||En.createDependencyInsertedAction();break;case"onDependencyDeleting":null===(on=this._actionsManager)||void 0===on||on.createDependencyDeletingAction();break;case"onDependencyDeleted":null===(Nt=this._actionsManager)||void 0===Nt||Nt.createDependencyDeletedAction();break;case"onResourceInserting":null===(Jt=this._actionsManager)||void 0===Jt||Jt.createResourceInsertingAction();break;case"onResourceInserted":null===(un=this._actionsManager)||void 0===un||un.createResourceInsertedAction();break;case"onResourceDeleting":null===(Mn=this._actionsManager)||void 0===Mn||Mn.createResourceDeletingAction();break;case"onResourceDeleted":null===(Kn=this._actionsManager)||void 0===Kn||Kn.createResourceDeletedAction();break;case"onResourceAssigning":null===(Xn=this._actionsManager)||void 0===Xn||Xn.createResourceAssigningAction();break;case"onResourceAssigned":null===(si=this._actionsManager)||void 0===si||si.createResourceAssignedAction();break;case"onResourceUnassigning":null===(pi=this._actionsManager)||void 0===pi||pi.createResourceUnassigningAction();break;case"onResourceUnassigned":null===(yi=this._actionsManager)||void 0===yi||yi.createResourceUnassignedAction();break;case"onCustomCommand":null===(Ui=this._actionsManager)||void 0===Ui||Ui.createCustomCommandAction();break;case"onContextMenuPreparing":null===(Bi=this._actionsManager)||void 0===Bi||Bi.createContextMenuPreparingAction();break;case"onScaleCellPrepared":null===(oi=this._actionsManager)||void 0===oi||oi.createScaleCellPreparedAction();break;case"allowSelection":null===(Fi=this._ganttTreeList)||void 0===Fi||Fi.setOption("selection.mode",Vs.getSelectionMode(t.value)),this._setGanttViewOption("allowSelection",t.value);break;case"showRowLines":null===(Zi=this._ganttTreeList)||void 0===Zi||Zi.setOption("showRowLines",t.value),this._setGanttViewOption("showRowLines",t.value);break;case"stripLines":this._setGanttViewOption("stripLines",t.value);break;case"scaleType":this._setGanttViewOption("scaleType",t.value);break;case"scaleTypeRange":this._setGanttViewOption("scaleTypeRange",this.option(t.name));break;case"editing":this._setGanttViewOption("editing",this.option(t.name));break;case"validation":this._setGanttViewOption("validation",this.option(t.name));break;case"toolbar":this._updateToolbarContent();break;case"contextMenu":this._updateContextMenu();break;case"taskTooltipContentTemplate":this._setGanttViewOption("taskTooltipContentTemplate",null===(nr=this._ganttTemplatesManager)||void 0===nr?void 0:nr.getTaskTooltipContentTemplateFunc(t.value));break;case"taskProgressTooltipContentTemplate":this._setGanttViewOption("taskProgressTooltipContentTemplate",null===(hr=this._ganttTemplatesManager)||void 0===hr?void 0:hr.getTaskProgressTooltipContentTemplateFunc(t.value));break;case"taskTimeTooltipContentTemplate":this._setGanttViewOption("taskTimeTooltipContentTemplate",null===(gr=this._ganttTemplatesManager)||void 0===gr?void 0:gr.getTaskTimeTooltipContentTemplateFunc(t.value));break;case"taskContentTemplate":this._setGanttViewOption("taskContentTemplate",null===(Ur=this._ganttTemplatesManager)||void 0===Ur?void 0:Ur.getTaskContentTemplateFunc(t.value));break;case"rootValue":null===(Ar=this._ganttTreeList)||void 0===Ar||Ar.setOption("rootValue",t.value);break;case"width":super._optionChanged(t),null===(Pr=this._sizeHelper)||void 0===Pr||Pr.updateGanttWidth();break;case"height":super._optionChanged(t),null===(Fr=this._sizeHelper)||void 0===Fr||Fr.setGanttHeight((0,s.Cr)(this._$element));break;case"sorting":null===(io=this._ganttTreeList)||void 0===io||io.setOption("sorting",this.option(t.name));break;case"filterRow":null===(Hr=this._ganttTreeList)||void 0===Hr||Hr.setOption("filterRow",this.option(t.name));break;case"headerFilter":null===(xo=this._ganttTreeList)||void 0===xo||xo.setOption("headerFilter",this.option(t.name));break;default:super._optionChanged(t)}}});let c8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.tRk,M.FZZ,M.HaS,M.m$R,M.Q8p,M.BEi,M.SCM,M.rH1,M.lUW,M.mtS,M.YTJ,M.nSX,M.aa6,M.uKt,M.EgX,M.C1H,M.azD,M.s2f,f.Lz,f.ie,p.Cu],M.tRk,M.FZZ,M.HaS,M.m$R,M.Q8p,M.BEi,M.SCM,M.rH1,M.lUW,M.mtS,M.YTJ,M.nSX,M.aa6,M.uKt,M.EgX,M.C1H,M.azD,M.s2f,f.ie]}),n})();var h8=l(8712),xh=Number,xD=Gm.inherit({_move:function(){var n=this._actualPosition-this._zeroPosition;this._rootElement.move(this.vertical?0:n,this.vertical?n:0),this._trackerElement&&this._trackerElement.move(this.vertical?0:n,this.vertical?n:0)},_isEnabled:function(){return this.vertical=this._options.vertical,this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_getTrackerSettings:function(){var t,e,i,r,n=this._options,v=n.width/2,D=n.length/2,A=this._zeroPosition;return v>10||(v=10),D>10||(D=10),this.vertical?(t=n.x-D,e=n.x+D,i=A+v,r=A-v):(t=A-v,e=A+v,i=n.y+D,r=n.y-D),{points:[t,i,t,r,e,r,e,i]}},_render:function(){this._zeroPosition=this._translator.getCodomainStart()},_clear:function(){delete this._element},measure:function(n){var t=this.vertical?n.x:n.y;return{min:t-this._options.length/2,max:t+this._options.length/2}},getTooltipParameters:function(){var n=this._options,t=this._actualPosition,e={x:t,y:t,value:this._currentValue,color:n.color,offset:n.width/2};return this.vertical?e.x=n.x:e.y=n.y,e}}),ZY=xD.inherit({_render:function(){var t,e,i,r,n=this._options;this.callBase();var v=this._zeroPosition;this.vertical?(t=n.x-n.length/2,e=n.x+n.length/2,i=v+n.width/2,r=v-n.width/2):(t=v-n.width/2,e=v+n.width/2,i=n.y+n.length/2,r=n.y-n.length/2),this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[t,i,t,r,e,r,e,i]})}}),KY=xD.inherit({_render:function(){var t,e,i,r,n=this._options;this.callBase(),this.vertical?(t=n.x,e=this._zeroPosition,i=n.length/2||0,r=n.width/2||0):(t=this._zeroPosition,e=n.y,i=n.width/2||0,r=n.length/2||0),this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[t-i,e,t,e-r,t+i,e,t,e+r]})}}),GY=xD.inherit({_render:function(){var t,e,n=this._options;this.callBase(),this.vertical?(t=n.x,e=this._zeroPosition):(t=this._zeroPosition,e=n.y);var i=n.length/2||0;this._element=this._element||this._renderer.circle().append(this._rootElement),this._element.attr({cx:t,cy:e,r:i})}}),jY=xD.inherit({_isEnabled:function(){return this.vertical=this._options.vertical,this._inverted=this.vertical?"right"===Sn(this._options.horizontalOrientation):"bottom"===Sn(this._options.verticalOrientation),this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_render:function(){var t,e,i,r,n=this._options,v={stroke:"none","stroke-width":0,"stroke-linecap":"square"};this.callBase(),this.vertical?(i=this._zeroPosition,e=(t=n.x)+xh(this._inverted?n.length:-n.length),v.points=[t,i,e,i-n.width/2,e,i+n.width/2]):(t=this._zeroPosition,r=(i=n.y)+xh(this._inverted?n.length:-n.length),v.points=[t,i,t-n.width/2,r,t+n.width/2,r]),n.space>0&&(v["stroke-width"]=Math.min(n.space,n.width/4)||0,v.stroke=v["stroke-width"]>0&&n.containerBackgroundColor||"none"),this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr(v).sharp()},_getTrackerSettings:function(){var i,r,v,D,n=this._options,t=n.width/2,e=xh(n.length);return t>10||(t=10),e>20||(e=20),{points:this.vertical?[i=n.x,v=this._zeroPosition+t,r=i+(this._inverted?e:-e),v,r,D=this._zeroPosition-t,i,D]:[i=this._zeroPosition-t,v=n.y,i,D=v+(this._inverted?e:-e),r=this._zeroPosition+t,D,r,v]}},measure:function(n){var e,i,t=xh(this._options.length);return this.vertical?(e=i=n.x,this._inverted?i=e+t:e=i-t):(e=i=n.y,this._inverted?i=e+t:e=i-t),{min:e,max:i}},getTooltipParameters:function(){var n=this._options,t=(this._inverted?n.length:-n.length)/2,e=this.callBase();return this.vertical?e.x+=t:e.y+=t,e.offset=n.length/2,e}}),$Y=EC.inherit({_isEnabled:function(){return this.vertical=this._options.vertical,this._inverted=this.vertical?"right"===Sn(this._options.horizontalOrientation):"bottom"===Sn(this._options.verticalOrientation),!0},_isVisible:function(){return!0},_getTextCloudOptions:function(){var e,n=this._actualPosition,t=this._actualPosition;return this.vertical?(n=this._options.x,e=this._inverted?"top-left":"top-right"):(t=this._options.y,e=this._inverted?"right-top":"right-bottom"),{x:n,y:t,type:e}},measure:function(n){var t,e,i=xh(this._options.arrowLength)||0;return this._measureText(),this.vertical?this._inverted?(t=n.x,e=n.x+i+this._textFullWidth):(t=n.x-i-this._textFullWidth,e=n.x):this._inverted?(t=n.y,e=n.y+i+this._textFullHeight):(t=n.y-i-this._textFullHeight,e=n.y),{min:t,max:e,indent:0}},_correctCloudType(n,t,e){var{x:i,y:r}=t,{width:v,height:D}=e;return"right-top"===n||"right-bottom"===n?i-v<this._translator.getCodomainStart()&&(n="left-".concat(n.split("-")[1])):("top-left"===n||"top-right"===n)&&r+D>this._translator.getCodomainStart()&&(n="bottom-".concat(n.split("-")[1])),n}}),p8=bE.inherit({_isEnabled:function(){return this.vertical=this._options.vertical,this._inverted=this.vertical?"right"===Sn(this._options.horizontalOrientation):"bottom"===Sn(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,n=this._options,t=xh(n.size);this.vertical?this._inverted?(e=n.x,i=n.x+t):(e=n.x-t,i=n.x):this._inverted?(e=n.y,i=n.y+t):(e=n.y-t,i=n.y),this._minSide=e,this._maxSide=i,this._minBound=e,this._maxBound=i},_getSpace:function(){var n=this._options;return n.space>0?xh(n.space):0},_isTextVisible:function(){var n=this._options.text||{};return n.indent>0||n.indent<0},_getTextAlign:function(){return this.vertical?this._options.text.indent>0?"left":"right":"center"},_setTextItemsSides:function(){var n=xh(this._options.text.indent);n>0?(this._lineStart=this._maxSide,this._lineEnd=this._maxSide+n,this._textPosition=this._lineEnd+(this.vertical?2:this._textHeight/2),this._maxBound=this._textPosition+(this.vertical?this._textWidth:this._textHeight/2)):n<0&&(this._lineStart=this._minSide,this._lineEnd=this._minSide+n,this._textPosition=this._lineEnd-(this.vertical?2:this._textHeight/2),this._minBound=this._textPosition-(this.vertical?this._textWidth:this._textHeight/2))},_getPositions:function(){var v,D,A,z,n=this._startPosition,t=this._endPosition,e=this._space,i=this._basePosition,r=this._actualPosition;return n<t?(i<r?(v=i,D=r):(v=r,D=i),A=v-e,z=D+e):(i>r?(v=i,D=r):(v=r,D=i),A=v+e,z=D-e),{start:n,end:t,main1:v,main2:D,back1:A,back2:z}},_buildItemSettings:function(n,t){var e=this._minSide,i=this._maxSide;return{points:this.vertical?[e,n,e,t,i,t,i,n]:[n,e,n,i,t,i,t,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 t,e,i,n=this._actualPosition;this.vertical?(this._basePosition>=n?(t=n,e=n+2):(t=n-2,e=n),i=[this._lineStart,t,this._lineStart,e,this._lineEnd,e,this._lineEnd,t]):(this._basePosition<=n?(t=n-2,e=n):(t=n,e=n+2),i=[t,this._lineStart,t,this._lineEnd,e,this._lineEnd,e,this._lineStart]),this._line.attr({points:i}).sharp()},_getTooltipPosition:function(){var n=(this._minSide+this._maxSide)/2,t=(this._basePosition+this._actualPosition)/2;return this.vertical?{x:n,y:t}:{x:t,y:n}},measure:function(n){var i,r,v,t=xh(this._options.size),e=xh(this._options.text.indent);return this._measureText(),this.vertical?(i=r=n.x,this._inverted?r+=t:i-=t,this._hasText&&(v=this._textHeight/2,e>0&&(r+=e+this._textWidth),e<0&&(i+=e-this._textWidth))):(i=r=n.y,this._inverted?r+=t:i-=t,this._hasText&&(v=this._textWidth/2,e>0&&(r+=e+this._textHeight),e<0&&(i+=e-this._textHeight))),{min:i,max:r,indent:v}}}),aP=Number,YY=Math.max,XY=lI.inherit({_processOptions:function(){if(this.vertical=this._options.vertical,this._inner=this._outer=0,this.vertical)switch(Sn(this._options.horizontalOrientation)){case"left":this._inner=1;break;case"center":this._inner=this._outer=.5;break;default:this._outer=1}else switch(Sn(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(n,t){var e=this._inner,i=this._outer,r=this._translator.translate(n.start),v=this._translator.translate(n.end),A=t.x,z=t.y,Q=n.startWidth,ue=n.endWidth;return this._renderer.path(this.vertical?[A-Q*e,r,A-ue*e,v,A+ue*i,v,A+Q*i,r]:[r,z+Q*i,r,z-Q*e,v,z-ue*e,v,z+ue*i],"area")},measure:function(n){var e,t={};return t.min=t.max=n[this.vertical?"x":"y"],e=aP(e=this._options.width)||YY(aP(e.start),aP(e.end)),t.min-=this._inner*e,t.max+=this._outer*e,t}});const qY=XY;var g8=Math.max,JY=Math.min,bD=Math.round,Zb=fC.inherit({_rootClass:"dxg-linear-gauge",_factoryMethods:{rangeContainer:"createLinearRangeContainer",indicator:"createLinearIndicator"},_gridSpacingFactor:25,_scaleTypes:{type:"xyAxes",drawingType:"linear"},_getTicksOrientation:function(n){return n.isHorizontal?n.verticalOrientation:n.horizontalOrientation},_getThemeManagerOptions(){var n=this.callBase.apply(this,arguments);return n.subTheme="_linear",n},_getInvertedState(){return!this._area.vertical&&this.option("rtlEnabled")},_prepareScaleSettings:function(){var n=this.callBase();return n.inverted=this._getInvertedState(),n},_updateScaleTickIndent:function(n){var A,z,t=n.label.indentFromTick,e=n.tick.length,i=this._scale.measureLabels((0,y.l)({},this._canvas)),v=t>0;n.isHorizontal?(z=e*(v?{center:.5,top:0,bottom:1}:{center:.5,top:1,bottom:0})[n.verticalOrientation],A=i.y):(z=e*(v?{center:.5,left:0,right:1}:{center:.5,left:1,right:0})[n.horizontalOrientation],A=-i.width),n.label.indentFromAxis=-t+(v?-z+A:z-(n.isHorizontal?i.height+i.y:0)),this._scale.updateOptions(n)},_shiftScale:function(n,t){var e=(0,y.l)({},this._canvas),i=t.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:-n.x,top:-n.y})},_setupCodomain:function(){var t="vertical"===Sn((this.option("geometry")||{}).orientation);this._area={vertical:t,x:0,y:0,startCoord:-100,endCoord:100},this._rangeContainer.vertical=t,this._translator.setInverted(this._getInvertedState()),this._translator.setCodomain(-100,100)},_getScaleLayoutValue:function(){return this._area[this._area.vertical?"x":"y"]},_getTicksCoefficients:function(n){var t={inner:0,outer:1};return this._area.vertical?"left"===n.horizontalOrientation?(t.inner=1,t.outer=0):"center"===n.horizontalOrientation&&(t.inner=t.outer=.5):"top"===n.verticalOrientation?(t.inner=1,t.outer=0):"center"===n.verticalOrientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(n,t,e){var i=this._area.vertical;t>=0?n.max+=t+e[i?"width":"height"]:n.min-=-t+e[i?"width":"height"],n.indent=e[i?"height":"width"]/2},_measureMainElements:function(n,t){var e=this._area.x,i=this._area.y,r=1e3,v=0,D=0;return(0,O.S6)(n.concat(this._scale),function(z,Q){var ue=Q.measure?Q.measure({x:e+Q.getOffset(),y:i+Q.getOffset()}):t;void 0!==ue.max&&(v=g8(v,ue.max)),void 0!==ue.min&&(r=JY(r,ue.min)),ue.indent>0&&(D=g8(D,ue.indent))}),{minBound:r,maxBound:v,indent:D}},_applyMainLayout:function(n,t){var r,v,e=this._measureMainElements(n,t),i=this._area;i.vertical?(v=((r=f8(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=bD(i.x+v)):(v=((r=f8(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=bD(i.y+v)),this._translator.setCodomain(i.startCoord,i.endCoord),this._innerRect=r},_getElementLayout:function(n){return{x:bD(this._area.x+n),y:bD(this._area.y+n)}},_getApproximateScreenRange:function(){var n=this._area,t=n.vertical?this._canvas.height:this._canvas.width;return t>n.totalSize&&(t=n.totalSize),.8*t},_getDefaultSize:function(){return"vertical"===(this.option("geometry")||{}).orientation?{width:100,height:300}:{width:300,height:100}},_factory:(0,Ee.d9)(br.prototype._factory)});function f8(n,t,e){var r,i=(0,y.l)({},n);return e=e||{},t&&(i.left+=e.left||0,i.right-=e.right||0,i.top+=e.top||0,i.bottom-=e.bottom||0,t.width>0&&(r=(i.right-i.left-t.width)/2)>0&&(i.left+=r,i.right-=r),t.height>0&&(r=(i.bottom-i.top-t.height)/2)>0&&(i.top+=r,i.bottom-=r)),i}var Mf=Zb.prototype._factory.indicators={};Zb.prototype._factory.createIndicator=CC(Mf),Mf._default=p8,Mf.rectangle=ZY,Mf.rhombus=KY,Mf.circle=GY,Mf.trianglemarker=jY,Mf.textcloud=$Y,Mf.rangebar=p8,Zb.prototype._factory.RangeContainer=qY,(0,T.Z)("dxLinearGauge",Zb);let m8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.lj9,M.aZm,M.rHV,M.YXG,M.KjY,M.F9Z,M.fsq,M.PR8,M.ENI,M.e1H,M.FZZ,M.HC7,M.ji7,M.Kx,M.hfY,M.rUb,M.rrz,M.lTN,M.vZC,M.bgw,M.Ois,M.vci,f.Lz,f.ie,p.Cu],M.IOm,M.lj9,M.aZm,M.rHV,M.YXG,M.KjY,M.F9Z,M.fsq,M.PR8,M.ENI,M.e1H,M.FZZ,M.HC7,M.ji7,M.Kx,M.hfY,M.rUb,M.rrz,M.lTN,M.vZC,M.bgw,M.Ois,M.vci,f.ie]}),n})();var _8=l(4332);let v8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[f.Lz,f.ie,p.Cu],f.ie]}),n})(),y8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,f.Lz,f.ie,p.Cu],M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,f.ie]}),n})();var C8=l(6023),gc=l(9960),$u=ir.Z.abstract,eX=ir.Z.inherit({_defaultRouteWeight:function(){return 5},_defaultRouteOpacity:function(){return.5},_defaultRouteColor:function(){return"#0000FF"},ctor:function(n,t){this._mapWidget=n,this._$container=t},render:function(n,t){return this._renderImpl().then(function(){return Promise.all([this._applyFunctionIfNeeded("addMarkers",n),this._applyFunctionIfNeeded("addRoutes",t)]).then(function(){return!0})}.bind(this))},_renderImpl:$u,updateDimensions:$u,updateMapType:$u,updateBounds:$u,updateCenter:$u,updateZoom:$u,updateControls:$u,updateMarkers:function(n,t){return new Promise(function(e){return this._applyFunctionIfNeeded("removeMarkers",n).then(function(i){this._applyFunctionIfNeeded("addMarkers",t).then(function(r){e(r||i)})}.bind(this))}.bind(this))},addMarkers:$u,removeMarkers:$u,adjustViewport:$u,updateRoutes:function(n,t){return new Promise(function(e){return this._applyFunctionIfNeeded("removeRoutes",n).then(function(i){this._applyFunctionIfNeeded("addRoutes",t).then(function(r){e(r||i)})}.bind(this))}.bind(this))},addRoutes:$u,removeRoutes:$u,clean:$u,map:function(){return this._map},isEventsCanceled:function(){return!1},_option:function(n,t){if(void 0===t)return this._mapWidget.option(n);this._mapWidget.setOptionSilent(n,t)},_keyOption:function(n){var t=this._option("apiKey");return void 0===t[n]?t:t[n]},_parseTooltipOptions:function(n){return{text:n.text||n,visible:n.isShown||!1}},_getLatLng:function(n){if("string"==typeof n){var t=(0,O.UI)(n.split(","),function(i){return i.trim()}),e=/^[-+]?[0-9]*\.?[0-9]*$/;if(2===t.length&&t[0].match(e)&&t[1].match(e))return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}else{if(Array.isArray(n)&&2===n.length)return{lat:n[0],lng:n[1]};if((0,w.PO)(n)&&(0,w.kE)(n.lat)&&(0,w.kE)(n.lng))return n}return null},_areBoundsSet:function(){return this._option("bounds.northEast")&&this._option("bounds.southWest")},_addEventNamespace:function(n){return(0,k.V4)(n,this._mapWidget.NAME)},_applyFunctionIfNeeded:function(n,t){return t.length?this[n](t):Promise.resolve()},_fireAction:function(n,t){this._mapWidget._createActionByOption(n)(t)},_fireClickAction:function(n){this._fireAction("onClick",n)},_fireMarkerAddedAction:function(n){this._fireAction("onMarkerAdded",n)},_fireMarkerRemovedAction:function(n){this._fireAction("onMarkerRemoved",n)},_fireRouteAddedAction:function(n){this._fireAction("onRouteAdded",n)},_fireRouteRemovedAction:function(n){this._fireAction("onRouteRemoved",n)}});const sP=eX;var nX=sP.inherit({_locationToString:function(n){var t=this._getLatLng(n);return t?t.lat+","+t.lng:n.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(n){var t=this;return this._updateMap().then(function(e){return(0,O.S6)(n,function(i,r){t._fireMarkerAddedAction({options:r})}),e})},removeMarkers:function(n){var t=this;return this._updateMap().then(function(e){return(0,O.S6)(n,function(i,r){t._fireMarkerRemovedAction({options:r})}),e})},adjustViewport:function(){return Promise.resolve()},addRoutes:function(n){var t=this;return this._updateMap().then(function(e){return(0,O.S6)(n,function(i,r){t._fireRouteAddedAction({options:r})}),e})},removeRoutes:function(n){var t=this;return this._updateMap().then(function(e){return(0,O.S6)(n,function(i,r){t._fireRouteRemovedAction({options:r})}),e})},clean:function(){return this._$container.css("backgroundImage","none"),d.Z.off(this._$container,this._addEventNamespace(g.u)),Promise.resolve()},mapRendered:function(){return!0},_updateMap:function(){var n=this._keyOption("googleStatic"),t=this._$container,e=["sensor=false","size="+Math.round((0,s.dz)(t))+"x"+Math.round((0,s.Cr)(t)),"maptype="+this._option("type"),"center="+this._locationToString(this._option("center")),"zoom="+this._option("zoom"),this._markersSubstring()];e.push.apply(e,this._routeSubstrings()),n&&e.push("key="+n);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 n=this,t=[],e=this._option("markerIconSrc");return e&&t.push("icon:"+e),(0,O.S6)(this._option("markers"),function(i,r){t.push(n._locationToString(r.location))}),"markers="+t.join("|")},_routeSubstrings:function(){var n=this,t=[];return(0,O.S6)(this._option("routes"),function(e,i){var r=new re.Z(i.color||n._defaultRouteColor()).toHex().replace("#","0x"),v=Math.round(255*(i.opacity||n._defaultRouteOpacity())).toString(16),D=i.weight||n._defaultRouteWeight(),A=[];(0,O.S6)(i.locations,function(z,Q){A.push(n._locationToString(Q))}),t.push("path=color:"+r+v+"|weight:"+D+"|"+A.join("|"))}),t},_attachClickEvent:function(){var n=this,t=this._addEventNamespace(g.u);d.Z.off(this._$container,t),d.Z.on(this._$container,t,function(e){n._fireClickAction({event:e})})}});const iX=nX;var Mp=sP.abstract,rX=sP.inherit({_geocodeLocation:function(n){return new Promise(function(t){var e=this._geocodedLocations,i=e[n];i?t(i):this._geocodeLocationImpl(n).then(function(r){e[n]=r,t(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(n){var t=setTimeout(function(){clearTimeout(t),n()})})}.bind(this))},_load:function(){return this._mapsLoader||(this._mapsLoader=this._loadImpl()),this._markers=[],this._routes=[],this._mapsLoader},_loadImpl:Mp,_init:Mp,_attachHandlers:Mp,addMarkers:function(n){return Promise.all((0,O.UI)(n,function(t){return this._addMarker(t)}.bind(this))).then(function(t){return this._fitBounds(),[!1,(0,O.UI)(t,function(e){return e.marker})]}.bind(this))},_addMarker:function(n){return this._renderMarker(n).then(function(t){return this._markers.push((0,y.l)({options:n},t)),this._fireMarkerAddedAction({options:n,originalMarker:t.marker}),t}.bind(this))},_renderMarker:Mp,removeMarkers:function(n){var t=this;return(0,O.S6)(n,function(e,i){t._removeMarker(i)}),Promise.resolve()},_removeMarker:function(n){var t=this;(0,O.S6)(this._markers,function(e,i){return i.options!==n||(t._destroyMarker(i),t._markers.splice(e,1),t._fireMarkerRemovedAction({options:i.options}),!1)})},_destroyMarker:Mp,_clearMarkers:function(){for(;this._markers.length>0;)this._removeMarker(this._markers[0].options)},addRoutes:function(n){return Promise.all((0,O.UI)(n,function(t){return this._addRoute(t)}.bind(this))).then(function(t){return this._fitBounds(),[!1,(0,O.UI)(t,function(e){return e.instance})]}.bind(this))},_addRoute:function(n){return this._renderRoute(n).then(function(t){return this._routes.push((0,y.l)({options:n},t)),this._fireRouteAddedAction({options:n,originalRoute:t.instance}),t}.bind(this))},_renderRoute:Mp,removeRoutes:function(n){var t=this;return(0,O.S6)(n,function(e,i){t._removeRoute(i)}),Promise.resolve()},_removeRoute:function(n){var t=this;(0,O.S6)(this._routes,function(e,i){return i.options!==n||(t._destroyRoute(i),t._routes.splice(e,1),t._fireRouteRemovedAction({options:n}),!1)})},_destroyRoute:Mp,_clearRoutes:function(){for(;this._routes.length>0;)this._removeRoute(this._routes[0].options)},adjustViewport:function(){return this._fitBounds()},isEventsCanceled:function(){return!0},_fitBounds:Mp,_updateBounds:function(){var n=this;this._clearBounds(),this._option("autoAdjust")&&((0,O.S6)(this._markers,function(t,e){n._extendBounds(e.location)}),(0,O.S6)(this._routes,function(t,e){e.northEast&&n._extendBounds(e.northEast),e.southWest&&n._extendBounds(e.southWest)}))},_clearBounds:function(){this._bounds=null},_extendBounds:Mp});const x8=rX;var Qv,lP,Kb=(0,fi.Jj)(),wD="_googleScriptReady",oX="https://maps.googleapis.com/maps/api/js?callback="+wD,b8=function(){return Kb.google&&Kb.google.maps},lX=x8.inherit({_mapType:function(n){var t={hybrid:google.maps.MapTypeId.HYBRID,roadmap:google.maps.MapTypeId.ROADMAP,satellite:google.maps.MapTypeId.SATELLITE};return t[n]||t.hybrid},_movementMode:function(n){var t={driving:google.maps.TravelMode.DRIVING,walking:google.maps.TravelMode.WALKING};return t[n]||t.driving},_resolveLocation:function(n){return new Promise(function(t){var e=this._getLatLng(n);e?t(new google.maps.LatLng(e.lat,e.lng)):this._geocodeLocation(n).then(function(i){t(i)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(n){return new Promise(function(t){(0,w.$K)(n)?(new google.maps.Geocoder).geocode({address:n},function(i,r){r===google.maps.GeocoderStatus.OK?t(i[0].geometry.location):(Js.Z.log("W1006",r),t(new google.maps.LatLng(0,0)))}):t(new google.maps.LatLng(0,0))})},_normalizeLocation:function(n){return{lat:n.lat(),lng:n.lng()}},_normalizeLocationRect:function(n){return{northEast:this._normalizeLocation(n.getNorthEast()),southWest:this._normalizeLocation(n.getSouthWest())}},_loadImpl:function(){return new Promise(function(n){b8()?n():(lP||(lP=this._loadMapScript()),lP.then(function(){b8()?n():this._loadMapScript().then(n)}.bind(this)))}.bind(this)).then(function(){Qv=function(n){this._position=n.position,this._offset=n.offset,this._$overlayContainer=(0,u.Z)("<div>").css({position:"absolute",display:"none",cursor:"pointer"}).append(n.html),this.setMap(n.map)},Qv.prototype=new google.maps.OverlayView,Qv.prototype.onAdd=function(){(0,u.Z)(this.getPanes().overlayMouseTarget).append(this._$overlayContainer),this._clickListener=google.maps.event.addDomListener(this._$overlayContainer.get(0),"click",function(t){google.maps.event.trigger(this,"click"),t.preventDefault()}.bind(this)),this.draw()},Qv.prototype.onRemove=function(){google.maps.event.removeListener(this._clickListener),this._$overlayContainer.remove()},Qv.prototype.draw=function(){var n=this.getProjection().fromLatLngToDivPixel(this._position);this._$overlayContainer.css({left:n.x+this._offset.left,top:n.y+this._offset.top,display:"block"})}})},_loadMapScript:function(){return new Promise(function(n){var t=this._keyOption("google");Kb[wD]=n,qv.Z.sendRequest({url:oX+(t?"&key="+t:""),dataType:"script"})}.bind(this)).then(function(){try{delete Kb[wD]}catch{Kb[wD]=void 0}})},_init:function(){return new Promise(function(n){this._resolveLocation(this._option("center")).then(function(t){var e=this._option("controls");this._map=new google.maps.Map(this._$container[0],{zoom:this._option("zoom"),center:t,disableDefaultUI:!e});var i=google.maps.event.addListener(this._map,"idle",function(){n(i)})}.bind(this))}.bind(this)).then(function(n){google.maps.event.removeListener(n)})},_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 n=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(n));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(n){this._fireClickAction({location:this._normalizeLocation(n.latLng)})},updateDimensions:function(){var n=this._option("center");return google.maps.event.trigger(this._map,"resize"),this._option("center",n),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(n){var t=new google.maps.LatLngBounds;t.extend(n[0]),t.extend(n[1]),this._map.fitBounds(t)}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(n){this._map.setCenter(n),this._option("center",this._normalizeLocation(n))}.bind(this))},updateZoom:function(){return this._map.setZoom(this._option("zoom")),Promise.resolve()},updateControls:function(){var n=this._option("controls");return this._map.setOptions({disableDefaultUI:!n}),Promise.resolve()},isEventsCanceled:function(n){var t=this._map&&this._map.get("gestureHandling");return!((0,u.Z)(n.target).closest(".".concat("gm-style-iw")).length>0||"desktop"!==x.Z.real().deviceType&&"cooperative"===t)&&this.callBase()},_renderMarker:function(n){return this._resolveLocation(n.location).then(function(t){var e;e=n.html?new Qv({map:this._map,position:t,html:n.html,offset:(0,y.l)({top:0,left:0},n.htmlOffset)}):new google.maps.Marker({position:t,map:this._map,icon:n.iconSrc||this._option("markerIconSrc")});var r,i=this._renderTooltip(e,n.tooltip);if(n.onClick||n.tooltip){var v=this._mapWidget._createAction(n.onClick||E.ZT),D=this._normalizeLocation(t);r=google.maps.event.addListener(e,"click",function(){v({location:D}),i&&i.open(this._map,e)}.bind(this))}return{location:t,marker:e,listener:r}}.bind(this))},_renderTooltip:function(n,t){if(t){t=this._parseTooltipOptions(t);var e=new google.maps.InfoWindow({content:t.text});return t.visible&&e.open(this._map,n),e}},_destroyMarker:function(n){n.marker.setMap(null),n.listener&&google.maps.event.removeListener(n.listener)},_renderRoute:function(n){return Promise.all((0,O.UI)(n.locations,function(t){return this._resolveLocation(t)}.bind(this))).then(function(t){return new Promise(function(e){var D={origin:t.shift(),destination:t.pop(),waypoints:(0,O.UI)(t,function(A){return{location:A,stopover:!0}}),optimizeWaypoints:!0,travelMode:this._movementMode(n.mode)};(new google.maps.DirectionsService).route(D,function(A,z){if(z===google.maps.DirectionsStatus.OK){var Q=new re.Z(n.color||this._defaultRouteColor()).toHex(),ue={directions:A,map:this._map,suppressMarkers:!0,preserveViewport:!0,polylineOptions:{strokeWeight:n.weight||this._defaultRouteWeight(),strokeOpacity:n.opacity||this._defaultRouteOpacity(),strokeColor:Q}},we=new google.maps.DirectionsRenderer(ue),Le=A.routes[0].bounds;e({instance:we,northEast:Le.getNorthEast(),southWest:Le.getSouthWest()})}else Js.Z.log("W1006",z),e({instance:new google.maps.DirectionsRenderer({})})}.bind(this))}.bind(this))}.bind(this))},_destroyRoute:function(n){n.instance.setMap(null)},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var n=this._map.getZoom();this._preventZoomChangeEvent=!0,this._map.fitBounds(this._bounds),this._boundsChangeHandler();var t=this._map.getZoom();n<t?this._map.setZoom(n):this._option("zoom",t),delete this._preventZoomChangeEvent}return Promise.resolve()},_extendBounds:function(n){this._bounds||(this._bounds=new google.maps.LatLngBounds),this._bounds.extend(n)},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 uX=lX;var uP,Gb=(0,fi.Jj)(),ED="_bingScriptReady",dX="https://www.bing.com/api/maps/mapcontrol?callback="+ED,E8=function(){return Gb.Microsoft&&Gb.Microsoft.Maps},pX=x8.inherit({_mapType:function(n){var t={roadmap:Microsoft.Maps.MapTypeId.road,hybrid:Microsoft.Maps.MapTypeId.aerial,satellite:Microsoft.Maps.MapTypeId.aerial};return t[n]||t.road},_movementMode:function(n){var t={driving:Microsoft.Maps.Directions.RouteMode.driving,walking:Microsoft.Maps.Directions.RouteMode.walking};return t[n]||t.driving},_resolveLocation:function(n){return new Promise(function(t){var e=this._getLatLng(n);e?t(new Microsoft.Maps.Location(e.lat,e.lng)):this._geocodeLocation(n).then(function(i){t(i)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(n){return new Promise(function(t){(0,w.$K)(n)?new Microsoft.Maps.Search.SearchManager(this._map).geocode({where:n,count:1,callback:function(r){if(r.results[0]){var D=r.results[0].location;t(new Microsoft.Maps.Location(D.latitude,D.longitude))}else t(new Microsoft.Maps.Location(0,0))}}):t(new Microsoft.Maps.Location(0,0))}.bind(this))},_normalizeLocation:function(n){return{lat:n.latitude,lng:n.longitude}},_normalizeLocationRect:function(n){var t=this._normalizeLocation(n.getNorthwest()),e=this._normalizeLocation(n.getSoutheast());return{northEast:{lat:t.lat,lng:e.lng},southWest:{lat:e.lat,lng:t.lng}}},_loadImpl:function(){return new Promise(function(n){E8()?n():(uP||(uP=this._loadMapScript()),uP.then(function(){E8()?n():this._loadMapScript().then(n)}.bind(this)))}.bind(this)).then(function(){return Promise.all([new Promise(function(n){Microsoft.Maps.loadModule("Microsoft.Maps.Search",{callback:n})}),new Promise(function(n){Microsoft.Maps.loadModule("Microsoft.Maps.Directions",{callback:n})})])})},_loadMapScript:function(){return new Promise(function(n){Gb[ED]=n,qv.Z.sendRequest({url:dX,dataType:"script"})}).then(function(){try{delete Gb[ED]}catch{Gb[ED]=void 0}})},_init:function(){return this._createMap(),Promise.resolve()},_createMap:function(){var n=this._option("controls");this._map=new Microsoft.Maps.Map(this._$container[0],{credentials:this._keyOption("bing")||"AhuxC0dQ1DBTNo8L-H9ToVMQStmizZzBJdraTSgCzDSWPsA1Qd8uIvFSflzxdaLH",zoom:this._option("zoom"),showDashboard:n,showMapTypeSelector:n,showScalebar:n})},_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 n=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(n));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(n){"map"===n.targetType&&this._fireClickAction({location:this._normalizeLocation(n.location)})},updateDimensions:function(){var n=this._$container;return this._map.setOptions({width:(0,s.dz)(n),height:(0,s.Cr)(n)}),Promise.resolve()},updateMapType:function(){var n=this._option("type"),t=Microsoft.Maps.LabelOverlay;return this._map.setView({animate:!1,mapTypeId:this._mapType(n),labelOverlay:"satellite"===n?t.hidden:t.visible}),Promise.resolve()},updateBounds:function(){return Promise.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(n){var t=new Microsoft.Maps.LocationRect.fromLocations(n[0],n[1]);this._map.setView({animate:!1,bounds:t})}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(n){this._map.setView({animate:!1,center:n})}.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(n){return this._resolveLocation(n.location).then(function(t){var e={icon:n.iconSrc||this._option("markerIconSrc")};if(n.html){(0,y.l)(e,{htmlContent:n.html,width:null,height:null});var i=n.htmlOffset;i&&(e.anchor=new Microsoft.Maps.Point(-i.left,-i.top))}var r=new Microsoft.Maps.Pushpin(t,e);this._map.entities.push(r);var D,v=this._renderTooltip(t,n.tooltip);if(n.onClick||n.tooltip){var A=this._mapWidget._createAction(n.onClick||E.ZT),z=this._normalizeLocation(t);D=Microsoft.Maps.Events.addHandler(r,"click",function(){A({location:z}),v&&v.setOptions({visible:!0})})}return{location:t,marker:r,infobox:v,handler:D}}.bind(this))},_renderTooltip:function(n,t){if(t){t=this._parseTooltipOptions(t);var e=new Microsoft.Maps.Infobox(n,{description:t.text,offset:new Microsoft.Maps.Point(0,13),visible:t.visible});return e.setMap(this._map),e}},_destroyMarker:function(n){this._map.entities.remove(n.marker),n.infobox&&n.infobox.setMap(null),n.handler&&Microsoft.Maps.Events.removeHandler(n.handler)},_renderRoute:function(n){return Promise.all((0,O.UI)(n.locations,function(t){return this._resolveLocation(t)}.bind(this))).then(function(t){return new Promise(function(e){var i=new Microsoft.Maps.Directions.DirectionsManager(this._map),r=new re.Z(n.color||this._defaultRouteColor()).toHex(),v=new Microsoft.Maps.Color.fromHex(r);v.a=255*(n.opacity||this._defaultRouteOpacity()),i.setRenderOptions({autoUpdateMapView:!1,displayRouteSelector:!1,waypointPushpinOptions:{visible:!1},drivingPolylineOptions:{strokeColor:v,strokeThickness:n.weight||this._defaultRouteWeight()},walkingPolylineOptions:{strokeColor:v,strokeThickness:n.weight||this._defaultRouteWeight()}}),i.setRequestOptions({routeMode:this._movementMode(n.mode),routeDraggable:!1}),(0,O.S6)(t,function(A,z){var Q=new Microsoft.Maps.Directions.Waypoint({location:z});i.addWaypoint(Q)});var D=[];D.push(Microsoft.Maps.Events.addHandler(i,"directionsUpdated",function(A){for(;D.length;)Microsoft.Maps.Events.removeHandler(D.pop());var z=A.routeSummary[0];e({instance:i,northEast:z.northEast,southWest:z.southWest})})),D.push(Microsoft.Maps.Events.addHandler(i,"directionsError",function(A){for(;D.length;)Microsoft.Maps.Events.removeHandler(D.pop());Js.Z.log("W1006","RouteResponseCode: "+A.responseCode+" - "+A.message),e({instance:i})})),i.calculateDirections()}.bind(this))}.bind(this))},_destroyRoute:function(n){n.instance.dispose()},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var n=this._map.getZoom();this._preventZoomChangeEvent=!0;var t=this._bounds.clone();t.height=1.1*t.height,t.width=1.1*t.width,this._map.setView({animate:!1,bounds:t,zoom:n});var e=this._map.getZoom();n<e?this._map.setView({animate:!1,zoom:n}):this._option("zoom",e),delete this._preventZoomChangeEvent}return Promise.resolve()},_extendBounds:function(n){this._bounds=this._bounds?new Microsoft.Maps.LocationRect.fromLocations(this._bounds.getNorthwest(),this._bounds.getSoutheast(),n):new Microsoft.Maps.LocationRect(n,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()}}),gX={googleStatic:iX,google:uX,bing:pX},S8="dx-map-shield",O8=sa.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(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"===x.Z.real().deviceType&&!x.Z.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(n){var t=this.option(n);if("markers"===n&&!Array.isArray(t))throw Js.Z.Error("E1022");if("routes"===n&&!Array.isArray(t))throw Js.Z.Error("E1023")},_initContainer:function(){this._$container=(0,u.Z)("<div>").addClass("dx-map-container"),this.$element().append(this._$container)},_grabEvents:function(){var n=(0,k.V4)(_o.Z.down,this.NAME);d.Z.on(this.$element(),n,this._cancelEvent.bind(this))},_cancelEvent:function(n){this._provider&&this._provider.isEventsCanceled(n)&&!this.option("disabled")&&n.stopPropagation()},_saveRendered:function(n){var t=this.option(n);this._rendered[n]=t.slice()},_render:function(){this.callBase(),this._renderShield(),this._saveRendered("markers"),this._saveRendered("routes"),this._provider=new(gX[this.option("provider")])(this,this._$container),this._queueAsyncAction("render",this._rendered.markers,this._rendered.routes)},_renderShield:function(){var n;this.option("disabled")?(n=(0,u.Z)("<div>").addClass(S8),this.$element().append(n)):(n=this.$element().find("."+S8)).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(n){var t=n.name,e=this._optionChangeBag;switch(this._optionChangeBag=null,t){case"disabled":this._renderShield(),this.callBase(n);break;case"width":case"height":this.callBase(n),this._dimensionChanged();break;case"provider":this._suppressAsyncAction=!0,this._invalidate();break;case"apiKey":Js.Z.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(t);var i=this._rendered[t];this._saveRendered(t),this._queueAsyncAction("update"+(0,je.MI)(t),e?e.removed:i,e?e.added:this._rendered[t]).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(n){n&&this._dimensionChanged()},_dimensionChanged:function(){this._queueAsyncAction("updateDimensions")},_queueAsyncAction:function(n){var t=[].slice.call(arguments).slice(1),e=this._suppressAsyncAction;return this._lastAsyncAction=this._lastAsyncAction.then(function(){return!this._provider||e?Promise.resolve():this._provider[n].apply(this._provider,t).then(function(i){return(i=(0,gc.sE)(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(n,t){this._setOptionWithoutOptionChange(n,t)},addMarker:function(n){return this._addFunction("markers",n)},removeMarker:function(n){return this._removeFunction("markers",n)},addRoute:function(n){return this._addFunction("routes",n)},removeRoute:function(n){return this._removeFunction("routes",n)},_addFunction:function(n,t){var e=this.option(n),i=(0,gc.sE)(t);return e.push.apply(e,i),this._partialArrayOptionChange(n,e,i,[])},_removeFunction:function(n,t){var e=this.option(n),i=(0,gc.sE)(t);return(0,O.S6)(i,function(r,v){var D=(0,w.kE)(v)?v:e?.indexOf(v);if(-1===D)throw Js.Z.log("E1021",(0,je.MI)(n.substring(0,n.length-1)),v);var A=e.splice(D,1)[0];i.splice(r,1,A)}),this._partialArrayOptionChange(n,e,[],i)},_partialArrayOptionChange:function(n,t,e,i){return(0,P.p4)(new Promise(function(r){this._optionChangeBag={resolve:r,added:e,removed:i},this.option(n,t)}.bind(this)).then(function(r){return r&&1===r.length?r[0]:r}),this)}});(0,T.Z)("dxMap",O8);let D8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Ejv,M.uQR,M.Dtt,M._Sx,M.vZC,M.cuJ,f.Lz,f.ie,p.Cu],M.Ejv,M.uQR,M.Dtt,M._Sx,M.vZC,M.cuJ,f.ie]}),n})();l(9998);let T8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.Q8p,M.Bib,M.lar,M.oyT,f.Lz,f.ie,p.Cu],M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.Q8p,M.Bib,M.lar,M.oyT,f.ie]}),n})();l(7257);let I8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,f.Lz,f.ie,p.Cu],M.Q8p,f.ie]}),n})();var M8=l(1946);const CX={provide:ie.JU,useExisting:(0,a.Gpc)(()=>xX),multi:!0};let xX=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),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 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 M8.Z(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-number-box"]],contentQueries:function(e,i,r){if(1&e&&a.Suo(r,M.k4o,4),2&e){let v;a.iGM(v=a.CRH())&&(i.buttonsChildren=v)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,CX,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),A8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.idP,M.UxI,M.FZZ,f.Lz,f.ie,p.Cu],M.idP,M.UxI,M.FZZ,f.ie]}),n})();var{states:U0}=Ul,P8=Ul.pieSeriesSpacing,wX=U0.normalMark,EX=U0.hoverMark,SX=U0.selectedMark,DX=[U0.resetItem,U0.applyHover,U0.applySelected,U0.applySelected];function k8(n){return(0,w.kE)(n)?n>1?n=1:n<0&&(n=0):n=void 0,n}var R8=function(){function n(i,r){return i.filter(function(v){return v!==r})}var t=[],e={};return{queue:function(i){var D,r=i.getSizeGroup();t=n(t,D=i).concat(D),clearTimeout(e[r]),e[r]=setTimeout(function(){var A,Q,ue,we;A=r,Q=t.filter(Le=>Le._isVisible()&&Le.getSizeGroup()===A),ue=Math.min.apply(null,Q.map(Le=>Le.getSizeGroupLayout().radius)),we=Q.filter(Le=>Le.getSizeGroupLayout().radius===ue),Q.forEach(Le=>Le.render({force:!0,sizeGroupLayout:we.length?we[0].getSizeGroupLayout():{}}))})},remove:function(i){(t=n(t,i)).length||(e={})}}}(),jb=Dd.inherit({_themeSection:"pie",_layoutManagerOptions:function(){return(0,y.l)(!0,{},this.callBase(),{piePercentage:k8(this._themeManager.getOptions("diameter")),minPiePercentage:k8(this._themeManager.getOptions("minDiameter"))})},_customChangesOrder:["CENTER_TEMPLATE"],_optionChangesMap:{diameter:"REINIT",minDiameter:"REINIT",sizeGroup:"REINIT",centerTemplate:"CENTER_TEMPLATE"},_change_CENTER_TEMPLATE(){this._renderCenterTemplate()},_disposeCore:function(){R8.remove(this),this.callBase(),this._centerTemplateGroup.linkOff().dispose()},_groupSeries:function(){var n=this.series;this._groupsData={groups:[{series:n,valueOptions:{valueType:"numeric"}}],argumentOptions:n[0]&&n[0].getOptions()}},getArgumentAxis:function(){return null},_getValueAxis:function(){var n=(new oo).setCodomain(360,0);return{getTranslator:function(){return n},setBusinessRange:function(t){n.setDomain(t.min,t.max)}}},_populateBusinessRange:function(){this.series.map(function(n){var t=new os;return t.addRange(n.getRangeData().val),n.getValueAxis().setBusinessRange(t),t})},_specialProcessSeries:function(){(0,O.S6)(this.series,function(n,t){t.arrangePoints()})},_checkPaneName:function(){return!0},_processSingleSeries:function(n){this.callBase(n),n.arrangePoints()},_handleSeriesDataUpdated:function(){var n=0;this.series.forEach(function(t){n=Math.max(t.getPointsCount(),n)}),this.series.forEach(function(t){t.setMaxPointsCount(n)}),this.callBase()},_getLegendOptions:function(n){var t=this.callBase(n),e=t.legendData;return e.argument=n.argument,e.argumentIndex=n.argumentIndex,e.points=[n],t},_getLegendTargets:function(){var n=this,t={};(n.series||[]).forEach(function(i){i.getPoints().forEach(function(r){var v=r.argument.valueOf(),D=i.getPointsByArg(v).indexOf(r),A=v.valueOf().toString()+D;t[A]=t[A]||[];var z=t[A].push(r);r.index=t[A][z-2]?t[A][z-2].index:Object.keys(t).length-1,r.argumentIndex=D})});var e=[];return(0,O.S6)(t,function(i,r){r.forEach(function(v,D){if(0!==D){var A=e[e.length-1];A.legendData.points.push(v),A.visible||(A.visible=v.isVisible())}else e.push(n._getLegendOptions(v))})}),e},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getLayoutSeries:function(n,t){var e,i=this._canvas,r=!1;return e=this.layoutManager.applyPieChartSeriesLayout(i,n,!0),n.forEach(function(v){v.correctPosition(e,i),r=v.drawLabelsWOPoints()||r}),r&&(e=this.layoutManager.applyPieChartSeriesLayout(i,n,t.hideLayoutLabels)),n.forEach(function(v){v.hideLabels()}),this._sizeGroupLayout={x:e.centerX,y:e.centerY,radius:e.radiusOuter,drawOptions:t},e},_getLayoutSeriesForEqualPies:function(n,t){var e=this._canvas,i=this.layoutManager.applyEqualPieChartLayout(n,t);return n.forEach(function(r){r.correctPosition(i,e),r.drawLabelsWOPoints()}),this.layoutManager.correctPieLabelRadius(n,i,e),i},_updateSeriesDimensions:function(n){var i,r,v,t=this._getVisibleSeries(),e=t.length,D=n.sizeGroupLayout;e&&(v=D?this._getLayoutSeriesForEqualPies(t,D):this._getLayoutSeries(t,n),r=(v.radiusOuter-v.radiusInner-P8*(e-1))/e,i=v.radiusInner,this._setGeometry(v),t.forEach(function(A){A.correctRadius({radiusInner:i,radiusOuter:i+r}),i+=r+P8}))},_renderSeries:function(n,t,e){if(this._calculateSeriesLayout(n,t),!n.sizeGroupLayout&&this.getSizeGroup())return R8.queue(this),void this._clearCanvas();this._renderSeriesElements(n,e)},_createHtmlStructure(){this.callBase(),this._centerTemplateGroup=this._renderer.g().attr({class:"dxc-hole-template"}).linkOn(this._renderer.root,"center-template").css(di(this._themeManager._font)).linkAppend()},_renderExtraElements(){this._requestChange(["CENTER_TEMPLATE"])},_renderCenterTemplate(){var n=this.option("centerTemplate"),t=this._centerTemplateGroup.clear();n&&(t.attr({visibility:"hidden"}),(n=this._getTemplate(n)).render({model:this,container:t.element,onRendered:()=>{var e=t,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 n=this,t=this._legend,e=this._getLegendTargets().map(function(i){return i.legendData});return function(i){e.forEach(function(r){var v=[],D=t.getActionCallback({index:r.id});n.series.forEach(function(A){var z=A.getPointsByKeys(r.argument,r.argumentIndex);v.push.apply(v,z)}),i&&i.argument===r.argument&&i.argumentIndex===r.argumentIndex&&v.push(i),D(function TX(n){var t=wX;return n.forEach(e=>{var i,r=null===(i=e.series)||void 0===i?void 0:i.getOptions(),v=e.fullState;"none"===r?.hoverMode&&(v&=~EX),"none"===r?.selectionMode&&(v&=~SX),t|=v}),DX[t]}(v))})}},_locateLabels(n){var e,i,t=0;do{i=this._adjustSeriesLabels("shift"===n),e=this._resolveLabelOverlapping(n)}while((e||i)&&++t<5)},_adjustSeriesLabels:function(n){return this.series.reduce((t,e)=>e.adjustLabels(n)||t,!1)},_applyExtraSettings:E.ZT,_resolveLabelOverlappingShift:function(){var n=this,t="anticlockwise"===n.option("segmentsDirection"),e=n.series.reduce(function(A,z){return(A[z.getOptions().label.position]||A.outside).push(z),A},{inside:[],columns:[],outside:[]}),i=!1;return e.inside.length>0&&(i=v(e.inside.reduce(function(A,z){return z.getVisiblePoints().reduce(function(Q,ue){return Q.left.push(ue),Q},A)},{left:[],right:[]}),D)||i),i=e.columns.reduce((A,z)=>v(r(z),D)||A,i),e.outside.length>0&&(i=v(e.outside.reduce(function(A,z){return r(z,A)},null),function(A,z){return ji(A,-z,n._center)})||i),i;function r(A,z){return A.getVisiblePoints().reduce(function(Q,ue){var we=dt(ue.middleAngle);return(we<=90||we>=270?Q.right:Q.left).push(ue),Q},z||{left:[],right:[]})}function v(A,z){var Q;return t&&(A.left.reverse(),A.right.reverse()),Q=qM_resolveLabelOverlappingInOneDirection(A.left,n._canvas,!1,!1,z),qM_resolveLabelOverlappingInOneDirection(A.right,n._canvas,!1,!1,z)||Q}function D(A,z){return{x:A.x,y:A.y-z}}},_setGeometry:function(n){var{centerX:t,centerY:e,radiusInner:i}=n;this._center={x:t,y:e},this._innerRadius=i},_disposeSeries(n){this.callBase.apply(this,arguments),this._abstractSeries=null},_legendDataField:"point",_legendItemTextField:"argument",_applyPointMarkersAutoHiding:E.ZT,_renderTrackers:E.ZT,_trackerType:"PieTracker",_createScrollBar:E.ZT,_updateAxesLayout:E.ZT,_applyClipRects:E.ZT,_appendAdditionalSeriesGroups:E.ZT,_prepareToRender:E.ZT,_isLegendInside:E.ZT,_renderAxes:E.ZT,_shrinkAxes:E.ZT,_isRotated:E.ZT,_seriesPopulatedHandlerCore:E.ZT,_reinitAxes:E.ZT,_correctAxes:E.ZT,_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||{}}});(0,O.S6)(["startAngle","innerRadius","segmentsDirection","type"],function(n,t){jb.prototype._optionChangesMap[t]="REFRESH_SERIES_DATA_INIT"}),jb.addPlugin(wf.core),jb.addPlugin(wf.pieChart),(0,T.Z)("dxPieChart",jb);let L8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.lsC,M.IOm,M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.zk3,M._7s,M.Ye1,M.kZH,M.e1H,M.$Tm,M.dwQ,M.FZZ,M.gN6,M.IIk,M.lj9,M.FYN,M.KjY,M.rrz,M.lTN,M.rHV,M.ZLS,M.Rue,M.Kx,M.vZC,f.Lz,f.ie,p.Cu],M.lsC,M.IOm,M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.zk3,M._7s,M.Ye1,M.kZH,M.e1H,M.$Tm,M.dwQ,M.FZZ,M.gN6,M.IIk,M.lj9,M.FYN,M.KjY,M.rrz,M.lTN,M.rHV,M.ZLS,M.Rue,M.Kx,M.vZC,f.ie]}),n})();var Ap=function(n,t,e,i){var r=n._initProperties=n._initProperties||{},v=i?e:n[t];(!Object.prototype.hasOwnProperty.call(r,t)||i)&&(r[t]=v),n[t]=e},B8=new Date;function F8(n){return function t(e,i,r,v,D,A){var z,Q;function ue(Ue,ut,It){(0,P.gx)(t(e,i,r,v,ut,It)).done(Ue.resolve)}for(v=v||[],e=e||[],z=D=D||0;z<e.length;z++){if(n&&z>D&&z%1e4==0&&new Date-B8>=300)return B8=new Date,Q=new P.BH,setTimeout(ue(Q,z,!1),0),Q;var we=e[z];if(!A){if(v.unshift(we),r&&!1===i(v,z))return;if(we.children){var Le=t(we.children,i,r,v);if(n&&Le)return Q=new P.BH,Le.done(ue(Q,z,!0)),Q}}if(A=!1,!r&&!1===i(v,z))return;v.shift(),e[z]!==we&&z--}}}var Qs=F8(!1),Af=F8(!0);function ey(n,t){if(n&&(0,w.$K)(t))for(var e=0;e<n.length;e++){var i=n[e];if(i.name===t||i.caption===t||i.dataField===t||i.index===t)return e}return-1}function dP(n,t){var i={value:n,valueText:n==n&&Fa.Z.format(n,t.format)||""};return t.customizeText?t.customizeText.call(t,i):i.valueText}function cP(n){return function(t,e){var i=0,r=n(t),v=n(e),D=(0,w.$K)(r),A=(0,w.$K)(v);return D&&A&&(r>v?i=1:r<v&&(i=-1)),D&&!A&&(i=1),!D&&A&&(i=-1),i}}function Yu(n){for(var t=[],e=n.length-1;e>=0;e--)t.push(n[e].key||n[e].value);return t}function hP(n,t,e,i){e=e||0,i=i||"children",n.length&&t(n,e);for(var r=0;r<n.length;r++){var v=n[r];v[i]&&v[i].length&&hP(v[i],t,e+1,i)}}function pP(n,t){var e=n[t],i=0;for(n.headerName===t?i=n.path.length:n.headerName&&n.headerName!==t&&n.oppositePath?i=n.oppositePath.length:(0,O.S6)(("columns"===t?n.columnExpandedPaths:n.rowExpandedPaths)||[],function(v,D){i=Math.max(i,D.length)});e[i+1]&&e[i].expanded;)i++;return i}function V8(n,t,e,i){var r=[];return Object.keys(t||[]).forEach(function(v){if(!v||0!==v.indexOf("__")){for(var we,D=1,A=e.length?e+"."+v:v,z=i[A],Q=(0,No.vb)(A),ue=t[v];!(0,w.$K)(ue)&&n[D];)ue=Q(n[D]),D++;!z&&(0,w.$K)(ue)&&(z=(0,w.dt)(ue)),we=[{dataField:A,dataType:z,groupName:"date"===z?v:void 0,groupInterval:void 0,displayFolder:e}],"date"===z?we=we.concat(function PX(n){return(0,O.UI)(["year","quarter","month"],function(t,e){return(0,y.l)({},n,{groupInterval:t,groupIndex:e})})}(we[0])):"object"===z&&(we=V8(n,ue,A,i)),r.push.apply(r,we)}}),r}function N8(n,t){var e=H8(t);return V8(n,n[0],"",e)}function H8(n){var t={};return(0,O.S6)(n,function(e,i){t[i.dataField]=t[i.dataField]||i.dataType}),t}var kX={month:function(n){return Bo.Z.getMonthNames()[n-1]},quarter:function(n){return Bo.Z.format(new Date(2e3,3*n-1),"quarter")},dayOfWeek:function(n){return Bo.Z.getDayNames()[n]}};function z8(n){if("date"===n.dataType)n.format||Ap(n,"format",kX[n.groupInterval]);else if("number"===n.dataType){var t=(0,w.kE)(n.groupInterval)&&n.groupInterval>0&&n.groupInterval;t&&!n.customizeText&&Ap(n,"customizeText",function(e){var r=Fa.Z.format(e.value+t,n.format);return e.valueText&&r?e.valueText+" - "+r:""})}}function ty(n,t){var e=[];t=t||[];for(var i=0;i<t.length;i++)e.push((0,y.l)({},n[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[t[i]]}));return e}var W8={createDrillDownDataSource:function(n,t){var e=this.getDrillDownItems(n,t);function i(v){return function(D){var A;return A=new P.BH,(0,P.gx)(e).done(function(z){new Nb.Z(z)[v](D).done(A.resolve).fail(A.reject)}).fail(A.reject),A}}return new W0.o({load:i("load"),totalCount:i("totalCount"),key:this.key()})}};function U8(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Pp=l(5365),RX=l(7954),gP=l(9853),LX=l(9006),SD=l(5981),BX=l(1937),FX=l(4562),Z8=l(2701),VX=ir.Z.inherit(function(){var n={year:function(on){return on&&on.getFullYear()},quarter:function(on){return on&&Math.floor(on.getMonth()/3)+1},month:function(on){return on&&on.getMonth()+1},day:function(on){return on&&on.getDate()},dayOfWeek:function(on){return on&&on.getDay()}};function t(on){return-1!==on.indexOf(".")?(0,No.vb)(on):function(Nt){return Nt[on]}}function e(on){return function(Nt){var Jt=on(Nt);return Jt&&!(Jt instanceof Date)&&(Jt=Cs.Z.deserializeDate(Jt)),Jt}}function i(on){(0,O.S6)(on||[],function(Nt,Jt){var un,Mn,Xn,pi,Kn=Jt.dataField,si=Jt.levels;if(!Jt.selector){if(pi=Kn?t(Kn):function(Ui){return Ui},si&&i(si),"date"===Jt.dataType){Mn=n[Jt.groupInterval];var yi=e(pi);un=function(Ui){var Bi=yi(Ui);return Mn?Mn(Bi):Bi}}else"number"===Jt.dataType?(Xn=(0,w.kE)(Jt.groupInterval)&&Jt.groupInterval>0&&Jt.groupInterval,un=function(Ui){var Bi=pi(Ui);return(0,w.HD)(Bi)&&(Bi=Number(Bi)),Xn?Math.floor(Bi/Xn)*Xn:Bi}):un=pi;z8(Jt),Ap(Jt,"selector",un)}})}function r(on,Nt,Jt,un){var Mn=[0],Xn="rows"===un?Nt.rowExpandedPaths:Nt.columnExpandedPaths;return function pi(yi,Ui,Bi,oi,Fi){var hr,gr,Ar,Pr,Fr,io,Zi=Ui.dimensions[oi],nr=Ui.expandedPathsHash;Zi&&(hr=Zi.selector(Ui.data),Ar=Bi,(io=(Fr=Ui.childrenHash)[Pr=Fi=void 0!==Fi?Fi+"/./"+hr:hr+""])||(io={value:hr,index:Fr.length++},Fr[Pr]=io,Ar.push(io)),yi.push((gr=io).index),(nr&&nr[Fi]||Zi.expanded)&&(gr.children||(gr.children=[]),pi(yi,Ui,gr.children,oi+1,Fi)))}(Mn,{data:on,childrenHash:Jt[un+"Hash"],dimensions:Nt[un],expandedPathsHash:Nt.headerName!==un&&Xn&&Xn.hash},Jt[un],Nt.headerName===un?Nt.path.length:0),Mn}function v(on,Nt,Jt,un){var Kn,Xn,si,pi,Mn=[],yi=r(on,un,Jt,"rows"),Ui=r(on,un,Jt,"columns");for(Xn=0;Xn<yi.length;Xn++)for(Nt[si=yi[Xn]]=Nt[si]||[],Kn=0;Kn<Ui.length;Kn++)Mn.push(Nt[si][pi=Ui[Kn]]=Nt[si][pi]||[]);return Mn}function D(on){if(on){var Nt=on.hash={};on.forEach(function(Jt){var un=Jt.map(function(Mn){return Mn+""}).join("/./");Nt[un]=!0})}}function A(on){on.rows=on.rows||[],on.columns=on.columns||[],on.filters=on.filters||[],D(on.columnExpandedPaths),D(on.rowExpandedPaths),i(on.columns),i(on.rows),i(on.values),i(on.filters)}function z(on){return"custom"===on.summaryType?(on.calculateCustomSummary=on.calculateCustomSummary||E.ZT,{seed:function(){var Nt={summaryProcess:"start",totalValue:void 0};return on.calculateCustomSummary(Nt),Nt},step:function(Nt,Jt){return Nt.summaryProcess="calculate",Nt.value=Jt,on.calculateCustomSummary(Nt),Nt},finalize:function(Nt){return Nt.summaryProcess="finalize",delete Nt.value,on.calculateCustomSummary(Nt),Nt.totalValue}}):Z8.bG[on.summaryType]||Z8.bG.count}function Q(on,Nt,Jt){for(var un=0;un<on.length;un++)for(var Mn=on[un],Kn=Mn.selector(Jt),Xn=z(Mn),si="function"==typeof Xn.seed,pi=0;pi<Nt.length;pi++){var yi=Nt[pi];yi.length<=un&&(yi[un]=si?Xn.seed():Xn.seed),void 0===yi[un]?yi[un]=Kn:(0,w.$K)(Kn)&&(yi[un]=Xn.step(yi[un],Kn))}}function ue(on,Nt){var Jt=on&&on.valueOf(),un=Nt&&Nt.valueOf();if(Array.isArray(on)){Nt=Nt||[];for(var Mn=0;Mn<on.length;Mn++)if((Jt=on[Mn]&&on[Mn].valueOf())!==(un=Nt[Mn]&&Nt[Mn].valueOf()))return!1;return!0}return Jt===un}function we(on){var Nt=[];return(0,O.S6)(on,function(Jt,un){var Mn=un.filterValues||[];un.groupName&&(0,w.kE)(un.groupIndex)||Mn.length&&Nt.push(function(Xn){for(var si=un.levels?function(Ui,Bi){var oi=[];return(0,O.S6)(Ui,function(Fi,Zi){oi.push(Zi.selector(Bi))}),oi}(un.levels,Xn):un.selector(Xn),pi=!1,yi=0;yi<Mn.length;yi++)if(ue(Mn[yi],si)){pi=!0;break}return"exclude"===un.filterType?!pi:pi})}),Nt}function Le(on){var Nt=we(on.rows).concat(we(on.columns)).concat(we(on.filters)),Jt=on[on.headerName],un=on.path;return Jt&&Nt.push(function(Mn){for(var Kn,Xn=0;Xn<un.length;Xn++)if(Kn=Jt[Xn].selector(Mn),(0,No.Ex)(Kn,!0)!==(0,No.Ex)(un[Xn],!0))return!1;return!0}),function(Mn){for(var Kn=0;Kn<Nt.length;Kn++)if(!Nt[Kn](Mn))return!1;return!0}}function ut(on,Nt){var Jt=on.filter();return on.store()instanceof tF.Z&&Jt?(Jt=En(Jt,Nt),(0,If.Z)(on.items()).filter(Jt).toArray()):on.items()}function It(on,Nt,Jt){var un=new P.BH,Mn=function(Xn){on.store()instanceof Nb.Z&&(Xn.storeLoadOptions.filter=En(Xn.storeLoadOptions.filter,Nt))};if(on.on("customizeStoreLoadOptions",Mn),!on.isLoaded()||Jt){var Kn=Jt?on.load():on.reload();(0,P.gx)(Kn).done(function(){It(on,Nt).done(function(){un.resolve(ut(on,Nt))}).fail(un.reject)}).fail(un.reject)}else un.resolve(ut(on,Nt));return un.always(function(){on.off("customizeStoreLoadOptions",Mn)})}function Gt(on,Nt){Nt.forEach(function(Jt){if(Jt.dataField&&"date"===Jt.dataType){var un=e(t(Jt.dataField));on[Jt.dataField]=function(Mn){return un(Mn)}}})}function ln(on){var Nt={};return Array.isArray(on)?Gt(Nt,on):on&&["rows","columns","filters"].forEach(function(Jt){on[Jt]&&Gt(Nt,on[Jt])}),Nt}function En(on,Nt){if(!Array.isArray(on))return on;on=on.slice(0),(0,w.HD)(on[0])&&(on[1]instanceof Date||on[2]instanceof Date)&&(on[0]=Nt[on[0]]);for(var Jt=0;Jt<on.length;Jt++)on[Jt]=En(on[Jt],Nt);return on}return{ctor:function(on){this._progressChanged=on.onProgressChanged||E.ZT,this._dataSource=new W0.o(on),this._dataSource.paginate(!1)},getFields:function(on){var Nt=this._dataSource,Jt=new P.BH;return It(Nt,ln(on)).done(function(un){Jt.resolve(N8(un,on))}).fail(Jt.reject),Jt},key:function(){return this._dataSource.key()},load:function(on){var Nt=this,Jt=Nt._dataSource,un=new P.BH;return A(on),It(Jt,ln(on),on.reload).done(function(Mn){(0,P.gx)(function Ue(on,Nt,Jt){var Kn,Xn,un={columns:[],rows:[],columnsHash:{length:1},rowsHash:{length:1}},Mn=[],si=new P.BH,pi=0,yi=Le(Nt);return function Ui(){for(var Bi=new Date,oi=pi;pi<on.length;pi++){if(pi>oi&&pi%1e4==0&&new Date-Bi>=300)return Jt(pi/on.length),void setTimeout(Ui,0);yi(Xn=on[pi])&&(Kn=v(Xn,Mn,un,Nt),Q(Nt.values,Kn,Xn))}var Zi;Zi=Mn,(0,O.S6)(Nt.values,function(nr,hr){var gr=z(hr);gr.finalize&&(0,O.S6)(Zi,function(Ur,Ar){(0,O.S6)(Ar,function(Pr,Fr){Fr&&void 0!==Fr[nr]&&(Fr[nr]=gr.finalize(Fr[nr]))})})}),Jt(1),si.resolve({rows:un.rows,columns:un.columns,values:Mn,grandTotalRowIndex:0,grandTotalColumnIndex:0})}(),si}(Mn,on,Nt._progressChanged)).done(un.resolve)}).fail(un.reject),un},filter:function(){var on=this._dataSource;return on.filter.apply(on,arguments)},supportPaging:function(){return!1},getDrillDownItems:function(on,Nt){Nt=Nt||{},A(on=on||{});for(var Mn,Jt=[],un=this._dataSource.items(),Kn=Nt.maxRowCount,Xn=Nt.customColumns,si=Le(on),pi=Le({rows:ty(on.rows,Nt.rowPath),columns:ty(on.columns,Nt.columnPath),filters:[]}),yi=0;yi<un.length;yi++){if(pi(un[yi])&&si(un[yi])){if(Xn){Mn={};for(var Ui=0;Ui<Xn.length;Ui++)Mn[Xn[Ui]]=un[yi][Xn[Ui]]}else Mn=un[yi];Jt.push(Mn)}if(Kn>0&&Jt.length===Kn)break}return Jt}}}()).include(W8),NX=function n(t,e,i){t=t||[],i=i||0;for(var r=0;r<t.length;r++){var v=t[r];e(v,i),v&&v.items&&v.items.length&&n(v.items,e,i+1)}};function G8(n,t){var e=[];return(0,O.S6)(n,function(i,r){e.push({selector:r.dataField,groupInterval:r.groupInterval,desc:t&&"desc"===r.sortOrder,isExpanded:i<n.length-1})}),e}function j8(n,t,e,i){return[[n,i?"<":">=",e],i?"or":"and",[n,i?">=":"<",e+t]]}function $8(n,t){var e=[];return n.searchValue?[n.dataField,"contains",n.searchValue]:(t="exclude"===n.filterType?t||"and":t||"or",(0,O.S6)(n.filterValues,function(i,r){var v=[];Array.isArray(r)?n.levels&&n.levels.length&&(v=$8({filterValues:r,filterType:n.filterType,levels:n.levels},"and")):v=function zX(n,t){var e=function HX(n){var t=n.dataField,e=n.groupInterval;return"date"===n.dataType&&"string"==typeof e&&("quarter"===e.toLowerCase()&&(e="Month"),t=t+"."+U8(e)),t}(n),i="exclude"===n.filterType,r=[e,i?"<>":"=",t];return(0,w.$K)(n.groupInterval)&&("string"==typeof n.groupInterval&&"quarter"===n.groupInterval.toLowerCase()?r=j8(e,3,3*(t-1)+1,i):"number"==typeof n.groupInterval&&"date"!==n.dataType&&(r=j8(e,n.groupInterval,t,i))),r}(n.levels?n.levels[i]:n,r),v.length&&(e.length&&e.push(t),e.push(v))}),e)}function Y8(n){var t=[];return(0,O.S6)(n,function(e,i){var r=$8(i);if(!r.length)return[];t.length&&t.push("and"),t.push(r)}),1===t.length&&(t=t[0]),t}function X8(n,t){var i=function(r){return r&&r.length};return i(n)&&i(t)?[n,"and",t]:i(n)?n:t}function q8(n,t,e,i,r){n[e]=n[e]||[],n[e][i]=n[e][i]||[],(0,w.$K)(n[e][i][r])||(n[e][i][r]=t)}function UX(n,t){return t&&"number"===t.dataType&&(0,w.HD)(n)?Number(n):!t||"date"!==t.dataType||t.groupInterval||n instanceof Date?n:Cs.Z.deserializeDate(n)}function ZX(n,t,e,i){var r=[],v=[],D=i.rowHash,A=i.columnHash;function Q(ue,we,Le,Ue,ut){var Gt,En,Nt,It=i[we+"Hash"],on=Le.slice(0,Ue+1).join("/");return void 0!==It[on]?En=It[on]:(En={value:UX(ue.key,ut),index:i[we+"Index"]++,displayText:ue.displayText},Nt=Le.slice(0,Ue).join("/"),(Ue>0&&void 0!==It[Nt]?(Gt=It[Nt]).children=Gt.children||[]:i[we+"s"]).push(En),It[on]=En),En}return t&&t.summary&&(0,O.S6)(t.summary,function(ue,we){q8(i.values,we,i.grandTotalRowIndex,i.grandTotalColumnIndex,ue)}),t&&t.groupCount>=0&&((n=[...Array(e.rows.length?e.rowSkip:e.columnSkip)].concat(n)).length=t.groupCount),NX(n,function(ue,we){var ut,It,Le=we>=e.rows.length?e.rows.length:we,Ue=we>=e.rows.length?we-e.rows.length:0;if(!(we>=e.rows.length&&Ue>=e.columns.length)){we<e.rows.length&&(v=[]),we>=e.rows.length?ue?(v[Ue]=ue.key+"",ut=Q(ue,"column",v,Ue,e.columns[Ue]),It=D[r.slice(0,Le+1).join("/")]):i.columns.push({}):ue?(r[Le]=ue.key+"",It=Q(ue,"row",r,Le,e.rows[Le]),ut=A[v.slice(0,Ue+1).join("/")]):i.rows.push({});var Gt=It&&It.index||i.grandTotalRowIndex,ln=ut&&ut.index||i.grandTotalColumnIndex;(0,O.S6)(ue&&ue.summary||[],function(En,on){q8(i.values,on,Gt,ln,En)})}}),i}function OD(n){return(n||[]).filter(t=>t.filterValues&&t.filterValues.length||t.searchValue)}function J8(n,t){if(n.headerName){if(t===n.headerName)return n.path.length;if(n.oppositePath)return n.oppositePath.length}return 0}function fP(n,t,e,i){var r=[],v=e>i?0:i,D=n.headerName!==t?n[t].slice(v,e):[],A="rows"===t?n.rowExpandedPaths:n.columnExpandedPaths;return(0,O.S6)(D,function(z,Q){var ue=[];(0,O.S6)(A,function(we,Le){if(Le=Le.slice(v,e),z<Le.length){var Ue=Le[z];-1===ue.indexOf(Ue)&&ue.push(Ue)}}),ue.length&&r.push((0,y.l)({},Q,{filterType:"include",filterValues:ue}))}),r}function Q8(n,t,e,i,r,v){var ue,A="columns"===t?"rows":"columns",z=n[t],Q=[];if((("columns"===t?n.columnExpandedPaths:n.rowExpandedPaths)||[]).length)for(var we=e;we<i+1;we++)(ue={filters:r.concat(fP(n,t,we,v))})[t]=z.slice(e,we+1),ue[A]=[],Q.push((0,y.l)({},n,ue));else(ue={filters:r})[t]=z.slice(e,i+1),ue[A]=[],Q.push((0,y.l)({},n,ue));return Q[0].includeTotalSummary=!0,Q}function e9(n){var t=0;return(0,O.S6)(n,function(e,i){if(!i.expanded)return t=e,!1}),t}function DD(n){(0,O.S6)(n||[],function(t,e){var i=e.levels;i&&DD(i),z8(e)})}const jX=ir.Z.inherit({ctor:function(n){this._dataSource=new W0.o(n),this._store=this._dataSource.store()},getFields:function(n){var t=new P.BH;return this._store.load({skip:0,take:20}).done(function(e){var i=(0,SD.r6)(e);t.resolve(N8(i.data,n))}).fail(t.reject),t},key:function(){return this._store.key()},load:function(n){var t=this,e=new P.BH,i={rows:[],columns:[],values:[],grandTotalRowIndex:0,grandTotalColumnIndex:0,rowHash:{},columnHash:{},rowIndex:1,columnIndex:1},r=function GX(n){var t=pP(n,"rows"),e=pP(n,"columns"),i=n.filters||[],r=J8(n,"columns"),v=e9(n.columns),D=e9(n.rows),A=J8(n,"rows"),z=[],Q=Q8(n,"columns",r,e,i=i.concat(OD(n.rows)).concat(OD(n.columns)).concat(function KX(n){return ty(n[n.headerName],n.path).concat(ty(n["rows"===n.headerName?"columns":"rows"],n.oppositePath||[]))}(n)),v);if(n.rows.length&&n.columns.length){"rows"!==n.headerName&&(z=z.concat(Q));for(var ue=A;ue<t+1;ue++)for(var we=n.rows.slice(A,ue+1),Le=fP(n,"rows",ue,D),Ue=r;Ue<e+1;Ue++){var ut=(0,y.l)({},n,{columns:n.columns.slice(r,Ue+1),rows:we,filters:i.concat(fP(n,"columns",Ue,v)).concat(Le)});z.push(ut)}}else z=n.columns.length?Q:Q8(n,"rows",A,t,i,D);return z}(n),v=[];return DD(n.rows),DD(n.columns),DD(n.filters),(0,O.S6)(r,function(D,A){v.push(t._store.load(function WX(n,t,e){var i=Y8(n.filters),r=G8(n.rows,n.rowTake).concat(G8(n.columns,n.columnTake)),v={groupSummary:[],totalSummary:[],group:r.length?r:void 0,take:r.length?void 0:1};return n.rows.length&&n.rowTake?(v.skip=n.rowSkip,v.take=n.rowTake,v.requireGroupCount=!0):n.columns.length&&n.columnTake&&!e&&(v.skip=n.columnSkip,v.take=n.columnTake,v.requireGroupCount=!0),t&&(i=X8(i,t)),i.length&&(v.filter=i),(0,O.S6)(n.values,function(D,A){var z={selector:A.dataField,summaryType:A.summaryType||"count"};v.groupSummary.push(z),n.includeTotalSummary&&v.totalSummary.push(z)}),v}(A,t.filter(),n.rows.length)))}),P.gx.apply(null,v).done(function(){var D=v.length>1?arguments:[arguments];(0,O.S6)(D,function(A,z){var Q=(0,SD.r6)(z[0],z[1]);ZX(Q.data,Q.extra,r[A],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(n,t){var e=this._store,r=Y8(ty((n=n||{}).rows,(t=t||{}).rowPath).concat(ty(n.columns,t.columnPath)).concat(OD(n.rows)).concat(n.filters||[]).concat(OD(n.columns)));return new W0.o({load:function(v){return e.load((0,y.l)({},v,{filter:X8(r,v.filter),select:t.customColumns}))}})}});function t9(n,t,e,i){var r=t[e]||[],D=[];hP(n[e],function(A,z){var ue=D[z]=D[z]||function YX(n,t,e,i,r){var v=r?"asc":n.sortOrder,D=function qX(n,t){var e="text";return"none"===n?e="index":(t||"displayText"!==n)&&(e="value"),e}(n.sortBy,r),A=n.sortingMethod?function(ue,we){return n.sortingMethod(ue,we)}:cP(function(ue){return ue[D]}),z=!r&&function XX(n,t,e,i){var r=t.values,v=ey(e.values,n.sortBySummaryField),D="rows"===i,z=D?t.grandTotalRowIndex:t.grandTotalColumnIndex,Q=n.sortBySummaryPath||[],ue=Q.length?function JX(n,t){var e=null,i=(t||[]).join(".");return i.length&&Qs(n,function(r){var v=r[0],D=Yu(r).join("."),A=(0,O.UI)(r,function(z){return z.text}).reverse().join(".");if(i===D||v.key&&A===i)return e=r[0].index,!1}),e}(D?t.columns:t.rows,Q):z;if(r&&r.length&&v>=0&&(0,w.$K)(ue))return function(we){var ut=((r[D?we.index:ue]||[[]])[D?ue:we.index]||[])[v];return(0,w.$K)(ut)?ut:null}}(n,t,e,i),Q=z&&cP(z);return function(ue,we){var Le=Q&&Q(ue,we)||A(ue,we);return"desc"===v?-Le:Le}}(r[z]||{},n,t,e,i);A.sort(ue)},t.headerName===e?t.path.length:0)}var QX=l(8379),eq=(0,fi.Jj)(),tq=ir.Z.inherit(function(){var n='<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>',t="SELECT {2} FROM {0} {1} CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS";function e(oi,Fi){var Zi=new P.BH,nr=oi.beforeSend,hr={url:oi.url,dataType:"text",data:Fi,headers:{"Content-Type":"text/xml"},xhrFields:{},method:"POST"};return(0,w.mf)(nr)&&nr(hr),function MX(n){return qv.Z.sendRequest(n)}(hr).fail(function(){Zi.reject(arguments)}).done(function(gr){var Ar,Ur=new eq.DOMParser;try{try{Ar=Ur.parseFromString(gr,"text/xml")}catch{Ar=void 0}if(!Ar||Ar.getElementsByTagName("parsererror").length||0===Ar.childNodes.length)throw new Tb.R0.Error("E4023",gr)}catch(Pr){Zi.reject({statusText:Pr.message,stack:Pr.stack,responseText:gr})}Zi.resolve(Ar)}),Zi}function i(){var oi=(0,QX.D)();return void 0!==oi?(0,Yo.WU)("<LocaleIdentifier>{0}</LocaleIdentifier>",oi):""}function r(oi){return(oi.hierarchyName||oi.dataField)+".[All]"}function v(oi){var Fi=oi.dataField+".allMembers",Zi=oi.searchValue;return Zi&&(Zi=Zi.replace(/'/g,"''"),Fi="Filter("+Fi+", instr("+oi.dataField+".currentmember.member_caption,'"+Zi+"') > 0)"),Fi}function D(oi){var Fi=oi.join(",");return oi.length>1?(0,Yo.WU)("CrossJoin({0})",Fi):Fi}function A(oi,Fi,Zi,nr,hr,gr,Ur,Ar){for(var Hr,xo,Fo,Pr=[],Fr=gr[Ur],io=[],yo=nr;yo<=Fi;yo++){var Do=Fr[yo],la=Do.dataField,Wa=Fr[yo-1]&&Fr[yo-1].hierarchyName,xa=Do.hierarchyName,Ua=!xa||!Fr[yo+1]||Fr[yo+1].hierarchyName!==xa,_l=oi.length+Zi+nr;if(Hr=null,io.push(Do),yo<oi.length)Ua&&(Hr="("+la+"."+un(oi[yo],la)+")");else if(yo<=_l)if(0===yo&&0===Zi){var Ra=r(Fr[nr]);Hr=xa?Ra+","+Fr[nr].dataField:v(Fr[nr])}else xa?(Fo=un(hr[hr.length-1]),(Ua||yo===_l)&&(Wa===xa?(hr.length&&(xo=Fr[hr.length-1]),(!xo||xo.hierarchyName!==xa)&&(xo=Fr[yo-1],Fo=""),Hr="Descendants({"+(Fo||xo.dataField)+"}, "+la+", SELF_AND_BEFORE)"):Hr=v(Do))):Hr=v(Do);else(!xa||Wa!==xa)&&(Hr="("+r(Do)+")");Hr&&(Hr=(0,Yo.WU)("{{0}}",Hr),Ar&&(Hr=(0,Yo.WU)("Order({0}, {1}, {2})",Hr,(Do.hierarchyName||Do.dataField)+("displayText"===Do.sortBy?".MEMBER_CAPTION":".MEMBER_VALUE"),"desc"===Do.sortOrder?"DESC":"ASC")),Pr.push(Hr))}return D(Pr)}function z(oi,Fi,Zi,nr,hr,gr,Ur,Ar,Pr,Fr){var xo,io=-1,Hr=gr[Ur];do{io++,xo=Fi.length+io+nr;var Fo=A(Fi,Zi,io,nr,hr,gr,Ur,Pr);!Pr&&!Fr&&(Fo=(0,Yo.WU)("NonEmpty({0}, {1})",Fo,Ar)),oi.push(Fo)}while(Hr[xo]&&Hr[xo+1]&&Hr[xo].expanded)}function Q(oi,Fi,Zi,nr){return Fi.push((0,Yo.WU)("{0} {1} as {2}",nr=nr||"set",Zi=Zi||"[DX_Set_"+Fi.length+"]",oi)),Zi}function ue(oi,Fi,Zi,nr,hr){var la,Wa,gr=oi[Fi],Ur=[],Ar=[],Pr=[],Fr=0,io=0,Hr=[],xo=(0,Yo.WU)("{{0}}",Zi.join(","));if(gr&&gr.length){oi.headerName===Fi?Fr=(Ar=oi.path).length:oi.headerName&&oi.oppositePath?Fr=(Ar=oi.oppositePath).length:Pr=("columns"===Fi?oi.columnExpandedPaths:oi.rowExpandedPaths)||Pr,io=pP(oi,Fi),z(Ur,[],io,Fr,Ar,oi,Fi,xo,"rows"===Fi?oi.rowTake:oi.columnTake,oi.totalsOnly),(0,O.S6)(Pr,function(xa,Ua){z(Ur,Ua,io,Fr,Ua,oi,Fi,xo)});for(var Fo=io;Fo>=Ar.length;Fo--)gr[Fo].hierarchyName&&(hr.visibleLevels[gr[Fo].hierarchyName]=hr.visibleLevels[gr[Fo].hierarchyName]||[],hr.visibleLevels[gr[Fo].hierarchyName].push(gr[Fo].dataField))}if(Ur.length){var yo=(Wa=(la=Ur).join(","),la.length>1?"Union("+Wa+")":Wa);"rows"===Fi&&oi.rowTake&&(yo=(0,Yo.WU)("Subset({0}, {1}, {2})",yo,oi.rowSkip>0?oi.rowSkip+1:0,oi.rowSkip>0?oi.rowTake:oi.rowTake+1)),"columns"===Fi&&oi.columnTake&&(yo=(0,Yo.WU)("Subset({0}, {1}, {2})",yo,oi.columnSkip>0?oi.columnSkip+1:0,oi.columnSkip>0?oi.columnTake:oi.columnTake+1));var Do="[DX_".concat(Fi,"]");Hr.push(Q(yo,nr,Do)),oi.totalsOnly&&Hr.push(Q("COUNT(".concat(Do,")"),nr,"[DX_".concat(Fi,"_count]"),"member"))}return"columns"===Fi&&Zi.length&&!oi.skipValues&&Hr.push(xo),(0,Yo.WU)("{0} DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME, MEMBER_VALUE ON {1}",D(Hr),Fi)}function we(oi){var Fi=[];return(0,O.S6)(oi,function(Zi,nr){var Ar,hr=nr.dataField,gr=[],Ur=nr.filterValues||[];nr.hierarchyName&&(0,w.kE)(nr.groupIndex)||((0,O.S6)(Ur,function(Pr,Fr){var io=hr+"."+un(Array.isArray(Fr)?Fr[Fr.length-1]:Fr,hr);"exclude"===nr.filterType&&(gr.push(io+".parent"),io="Descendants("+io+")"),gr.push(io)}),Ur.length&&(Ar=(0,Yo.WU)("{{0}}",gr.join(",")),"exclude"===nr.filterType&&(Ar="Except("+v(nr)+","+Ar+")"),Fi.push(Ar)))}),Fi.length?D(Fi):""}function Le(oi,Fi,Zi,nr){var hr="["+nr+"]";return(0,O.S6)([oi,Fi,Zi],function(gr,Ur){Ur&&(hr=(0,Yo.WU)("(SELECT {0} FROM {1})",Ur+"on 0",hr))}),hr}function Ue(oi,Fi,Zi,nr,hr,gr,Ur){var Ar=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},Pr="",Fr=(Fi.length?"with "+Fi.join(" "):"")+" ";if(oi.length){var io;if(Ar.totalsOnly){var Hr=[];nr.length&&Hr.push("[DX_rows_count]"),Zi.length&&Hr.push("[DX_columns_count]"),io="{".concat(Hr.join(","),"} on columns")}else io=oi.join(",");Pr=Fr+(0,Yo.WU)(t,Le(we(Zi),we(nr),we(hr||[]),Ur),gr.length?(0,Yo.WU)("WHERE ({0})",gr.join(",")):"",io)}return Pr}function ut(oi,Fi){return(0,O.UI)(Fi,function(Zi){return(0,w.HD)(Zi.expression)&&Q(Zi.expression,oi,Zi.dataField,"member"),Zi.dataField})}function It(oi,Fi,Zi,nr){(0,O.S6)(nr,function(hr,gr){var Ur=Fi[Zi][hr];(!Ur.hierarchyName||Ur.hierarchyName!==Fi[Zi][hr+1].hierarchyName)&&oi.push(Ur.dataField+"."+un(gr,Ur.dataField))})}function Gt(oi,Fi,Zi){var nr=oi.columns||[],hr=oi.rows||[],gr=oi.values&&oi.values.length?oi.values:[{dataField:"[Measures]"}],Ur=[],Ar=[],Pr=[],Fr=ut(Ar,gr);return Zi.measureCount=oi.skipValues?1:gr.length,Zi.visibleLevels={},oi.headerName&&oi.path&&It(Ur,oi,oi.headerName,oi.path),oi.headerName&&oi.oppositePath&&It(Ur,oi,"rows"===oi.headerName?"columns":"rows",oi.oppositePath),(nr.length||Fr.length)&&Pr.push(ue(oi,"columns",Fr,Ar,Zi)),hr.length&&Pr.push(ue(oi,"rows",Fr,Ar,Zi)),Ue(Pr,Ar,nr,hr,oi.filters,Ur,Fi,oi)}function ln(oi,Fi,Zi){(0,O.S6)(Zi,function(nr,hr){var gr=Fi[nr];gr.hierarchyName&&(Fi[nr+1]||{}).hierarchyName===gr.hierarchyName||oi.push(gr.dataField+"."+un(hr,gr.dataField))})}function En(oi){return parseInt(oi,10)}function on(oi,Fi){return Nt((oi.getElementsByTagName(Fi)||[])[0])}function Nt(oi){return oi&&(oi.textContent||oi.text||oi.innerHTML)||""}function Jt(oi,Fi,Zi){for(var nr=[],hr=[],gr=0,Ur=[],Ar=oi.getElementsByTagName("Cell"),Pr={},Fr=0;Fr<Ar.length;Fr++){var io=Ar[Fr],Hr=io.getElementsByTagName("Value")[0],xo=Hr&&Hr.getElementsByTagName("Error")||[],Fo=0===xo.length?Nt(Hr):"#N/A",yo=parseFloat(Fo),Do=Fo-yo+1>0,la=En(io.getAttribute("CellOrdinal"));xo.length&&(Pr[Nt(xo[0].getElementsByTagName("ErrorCode")[0])]=Nt(xo[0].getElementsByTagName("Description")[0])),Ur[la]={value:Do?yo:Fo||null}}return(0,O.S6)(Fi[1],function(){var Wa=[];nr.push(Wa),(0,O.S6)(Fi[0],function(){0==gr%Zi&&Wa.push(hr=[]),hr.push(Ur[gr]?Ur[gr].value:null),gr++})}),Object.keys(Pr).forEach(function(Wa){Tb.R0.log("W4002",Pr[Wa])}),nr}function un(oi,Fi){return oi&&(oi=(0,w.HD)(oi)&&-1!==oi.indexOf("&")?oi:"["+oi+"]",Fi&&0===oi.indexOf(Fi+".")&&(oi=oi.slice(Fi.length+1,oi.length))),oi}function Mn(oi,Fi,Zi,nr){var hr=oi[Fi];return hr||(oi[Fi]=hr={}),!(0,w.$K)(hr.value)&&Zi&&(hr.text=Zi.caption,hr.value=Zi.value,hr.key=Fi||"",hr.levelName=Zi.levelName,hr.hierarchyName=Zi.hierarchyName,hr.parentName=Zi.parentName,hr.index=nr,hr.level=Zi.level),hr}function Kn(oi,Fi){var Zi=[],nr=oi.children&&(oi.children.length?oi.children:Object.keys(oi.children.grandTotalHash||{}).reduce((Ar,Pr)=>Ar.concat(oi.children.grandTotalHash[Pr].children),[])),hr=nr&&nr[0];if(hr&&(Fi[hr.hierarchyName]&&Fi[hr.hierarchyName].includes(hr.levelName)||!Fi[hr.hierarchyName]||0===hr.level)){var gr=nr.filter(Ar=>Ar.hierarchyName===hr.hierarchyName);return gr.grandTotalHash=nr.grandTotalHash,gr}if(hr)for(var Ur=0;Ur<nr.length;Ur++)nr[Ur].hierarchyName===hr.hierarchyName&&Zi.push.apply(Zi,Kn(nr[Ur],Fi));return Zi}function Xn(oi,Fi,Zi,nr){var hr=[];(0,O.S6)(Fi,function(Ar,Pr){var Fr={children:hr},io=(0,w.$K)(Zi)?Math.floor(Ar/Zi):Ar;(0,O.S6)(Pr,function(Hr,xo){Fr=function(Fo,yo,Do){var la=Do.children=Do.children||[],Wa=la.hash=la.hash||{},xa=la.grandTotalHash=la.grandTotalHash||{};yo.parentName&&(la=(Do=Mn(Wa,yo.parentName)).children=Do.children||[]);var Ua=Mn(Wa,yo.name,yo,Fo);return yo.hasValue&&!Ua.added&&(Ua.index=Fo,Ua.added=!0,la.push(Ua)),Do.value&&Do.parentName||!yo.parentName?xa[Do.name]&&delete xa[yo.parentName]:xa[yo.parentName]=Do,Ua}(io,xo,Fr)})});var gr={children:hr};gr.children=Kn(gr,nr);var Ur=function(Ar,Pr){var Fr;if(1===Ar.children.length&&""===Ar.children[0].parentName){Fr=Ar.children[0].index;var io=Ar.children.grandTotalHash;Ar.children=Ar.children[0].children||[],Ar.children.grandTotalHash=io,Ar.children=Kn(Ar,Pr)}else 0===Ar.children.length&&(Fr=0);return Fr}(gr,nr);return Qs(gr.children,function(Ar){var Pr=Ar[0],Fr=Kn(Pr,nr);Fr.length?Pr.children=Fr:delete Pr.children,delete Pr.levelName,delete Pr.hierarchyName,delete Pr.added,delete Pr.parentName,delete Pr.level},!0),(0,O.S6)(gr.children||[],function(Ar,Pr){oi.push(Pr)}),Ur}function si(oi){var Fi=oi.getElementsByTagName("soap:Fault"),Zi=oi.getElementsByTagName("Fault"),nr=(0,u.Z)([].slice.call(Zi.length?Zi:Fi)).find("Error");if(nr.length){var hr=nr.attr("Description"),gr=new Tb.R0.Error("E4000",hr);return Tb.R0.log("E4000",hr),gr}return null}function yi(oi,Fi,Zi,nr){var hr=[],gr="MEASURE"===Fi,Ur=gr?"MEASUREGROUP_NAME":Fi+"_DISPLAY_FOLDER";return(0,O.S6)(oi.getElementsByTagName("row"),function(Ar,Pr){var Fr="LEVEL"===Fi?on(Pr,"HIERARCHY_UNIQUE_NAME"):void 0,io=on(Pr,"LEVEL_NUMBER"),Hr=on(Pr,Ur);if(gr&&(Hr=nr[Hr]||Hr),("0"!==io||"true"!==on(Pr,Fi+"_IS_VISIBLE"))&&"2"!==on(Pr,"DIMENSION_TYPE")){var xo=gr?"DX_MEASURES":on(Pr,"DIMENSION_UNIQUE_NAME"),Fo=on(Pr,Fi+"_UNIQUE_NAME");hr.push({dimension:Zi.names[xo]||xo,groupIndex:io?En(io)-1:void 0,dataField:Fo,caption:on(Pr,Fi+"_CAPTION"),hierarchyName:Fr,groupName:Fr,displayFolder:Hr,isMeasure:gr,isDefault:!!Zi.defaultHierarchies[Fo]})}}),hr}function Ui(oi){var Fi=(oi=oi.replace(/_x(....)_/g,function(Zi,nr){return String.fromCharCode(parseInt(nr,16))})).match(/\[.+?\]/gi);return Fi&&Fi.length&&(oi=Fi[Fi.length-1]),oi.replace(/\[/gi,"").replace(/\]/gi,"").replace(/\$/gi,"").replace(/\./gi," ")}function Bi(oi,Fi){return Fi=(0,u.Z)("<div>").text(Fi).html(),e(oi,(0,Yo.WU)('<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>',Fi,oi.catalog,i()))}return{ctor:function(oi){this._options=oi},getFields:function(){var oi=this._options,Fi=oi.catalog,Zi=oi.cube,nr=i(),hr=e(oi,(0,Yo.WU)(n,Fi,Zi,"MDSCHEMA_DIMENSIONS",nr)),gr=e(oi,(0,Yo.WU)(n,Fi,Zi,"MDSCHEMA_MEASURES",nr)),Ur=e(oi,(0,Yo.WU)(n,Fi,Zi,"MDSCHEMA_HIERARCHIES",nr)),Ar=e(oi,(0,Yo.WU)(n,Fi,Zi,"MDSCHEMA_LEVELS",nr)),Pr=new P.BH;return(0,P.gx)(hr,gr,Ur,Ar).then(function(Fr,io,Hr,xo){e(oi,(0,Yo.WU)(n,Fi,Zi,"MDSCHEMA_MEASUREGROUPS",nr)).done(function(Fo){var Ra,yo=(Ra={names:{},defaultHierarchies:{}},(0,O.S6)((0,u.Z)(Fr).find("row"),function(){var xu=(0,u.Z)(this),Hy="2"===xu.children("DIMENSION_TYPE").text()?"DX_MEASURES":xu.children("DIMENSION_UNIQUE_NAME").text();Ra.names[Hy]=xu.children("DIMENSION_CAPTION").text(),Ra.defaultHierarchies[xu.children("DEFAULT_HIERARCHY").text()]=!0}),Ra),Do=yi(Hr,"HIERARCHY",yo),la=yi(xo,"LEVEL",yo),Wa=function(_l){var Ra={};return(0,O.S6)(_l.getElementsByTagName("row"),function(xu,Qu){Ra[on(Qu,"MEASUREGROUP_NAME")]=on(Qu,"MEASUREGROUP_CAPTION")}),Ra}(Fo),xa=yi(io,"MEASURE",yo,Wa).concat(Do),Ua={};(0,O.S6)(la,function(_l,Ra){Ua[Ra.hierarchyName]=Ua[Ra.hierarchyName]||[],Ua[Ra.hierarchyName].push(Ra)}),(0,O.S6)(Do,function(_l,Ra){Ua[Ra.dataField]&&Ua[Ra.dataField].length>1&&(Ra.groupName=Ra.hierarchyName=Ra.dataField,xa.push.apply(xa,Ua[Ra.hierarchyName]))}),Pr.resolve(xa)}).fail(Pr.reject)}).fail(Pr.reject),Pr},load:function(oi){var gr,Fi=new P.BH,Zi=this._options,nr={skipValues:oi.skipValues},hr=Gt(oi,Zi.cube,nr);(oi.rowSkip||oi.rowTake||oi.columnTake||oi.columnSkip)&&(gr=Gt((0,y.l)({},oi,{totalsOnly:!0,rowSkip:null,rowTake:null,columnSkip:null,columnTake:null}),Zi.cube,{}));var Ur=()=>{hr?(0,P.gx)(Bi(Zi,hr),gr&&Bi(Zi,gr)).done(function(Ar,Pr){var Fr=si(Ar)||Pr&&si(Pr);if(Fr)Fi.reject(Fr);else{var io=function pi(oi,Fi){var Zi={columns:[],rows:[]},nr=Fi.measureCount,hr=function(gr,Ur){var Ar=[];for((0,O.S6)(gr.getElementsByTagName("Axis"),function(Pr,Fr){var io=Fr.getAttribute("name"),Hr=[],xo=0;0===io.indexOf("Axis")&&(0,w.kE)(En(io.substr(4)))&&(Ar.push(Hr),(0,O.S6)(Fr.getElementsByTagName("Tuple"),function(Fo,yo){var Qu,Do=yo.childNodes,la=0,Wa=[],xa=Ur?Do.length:Do.length-1;1===Ar.length&&xa--,Hr.push(Wa);for(var _l=xa;_l>=0;_l--){var Ra=Do[_l],xu=En(on(Ra,"LNum"));Wa[_l]={caption:on(Ra,"Caption"),value:(Qu=on(Ra,"MEMBER_VALUE"),(0,w.kE)(Qu)?parseFloat(Qu):Qu),level:xu,index:xo++,hasValue:!(la||!xu&&0!==_l),name:on(Ra,"UName"),hierarchyName:Do[_l].getAttribute("Hierarchy"),parentName:on(Ra,"PARENT_UNIQUE_NAME"),levelName:on(Ra,"LName")},la+=xu}}))});Ar.length<2;)Ar.push([[{level:0}]]);return Ar}(oi,Fi.skipValues);return Zi.grandTotalColumnIndex=Xn(Zi.columns,hr[0],nr,Fi.visibleLevels),Zi.grandTotalRowIndex=Xn(Zi.rows,hr[1],void 0,Fi.visibleLevels),Zi.values=Jt(oi,hr,nr),Zi}(Ar,nr);Pr&&function(Hr,xo,Fo){var yo=[],Do=xo.columns||[],la=xo.rows||[];Do.length&&yo.push({}),la.length&&yo.push({});var Wa=Jt(Fo,[[{}],[{},{}]],1);if(!Do.length&&la.length&&(Hr.rowCount=Math.max(Wa[0][0][0]-1,0)),!la.length&&Do.length&&(Hr.columnCount=Math.max(Wa[0][0][0]-1,0)),la.length&&Do.length&&(Hr.rowCount=Math.max(Wa[0][0][0]-1,0),Hr.columnCount=Math.max(Wa[1][0][0]-1,0)),void 0!==Hr.rowCount&&xo.rowTake){Hr.rows=[...Array(xo.rowSkip)].concat(Hr.rows),Hr.rows.length=Hr.rowCount;for(var xa=0;xa<Hr.rows.length;xa++)Hr.rows[xa]=Hr.rows[xa]||{}}if(void 0!==Hr.columnCount&&xo.columnTake){Hr.columns=[...Array(xo.columnSkip)].concat(Hr.columns),Hr.columns.length=Hr.columnCount;for(var Ua=0;Ua<Hr.columns.length;Ua++)Hr.columns[Ua]=Hr.columns[Ua]||{}}}(io,oi,Pr),Fi.resolve(io)}}).fail(Fi.reject):Fi.resolve({columns:[],rows:[],values:[],grandTotalColumnIndex:0,grandTotalRowIndex:0})};return oi.delay?setTimeout(Ur,oi.delay):Ur(),Fi},supportPaging:function(){return!0},getDrillDownItems:function(oi,Fi){var Zi=new P.BH,nr=this._options,hr=function(gr,Ur,Ar){var Pr=gr.columns||[],Fr=gr.rows||[],Hr=[],xo=[],Fo=[],yo=ut(xo,gr.values&&gr.values.length?gr.values:[{dataField:"[Measures]"}]),Do=Ar.maxRowCount,la=Ar.customColumns||[],Wa=la.length>0?" return "+la.join(","):"";ln(Hr,Pr,Ar.columnPath||[]),ln(Hr,Fr,Ar.rowPath||[]),(Pr.length||yo.length)&&Fo.push([(yo[Ar.dataIndex]||yo[0])+" on 0"]);var xa=Ue(Fo,xo,Pr,Fr,gr.filters,Hr,Ur);return xa&&"drillthrough"+(Do>0?" maxrows "+Do:"")+xa+Wa}(oi,nr.cube,Fi);return hr?(0,P.gx)(Bi(nr,hr)).done(function(gr){var Ur=si(gr);Ur?Zi.reject(Ur):Zi.resolve(function(Ar){for(var Pr=Ar.getElementsByTagName("row"),Fr=[],io={},Hr=0;Hr<Pr.length;Hr++){for(var xo=Pr[Hr].childNodes,Fo={},yo=0;yo<xo.length;yo++){var Do=xo[yo].tagName;Fo[io[Do]=io[Do]||Ui(Do)]=Nt(xo[yo])}Fr.push(Fo)}return Fr}(gr))}).fail(Zi.reject):Zi.resolve([]),Zi},key:E.ZT,filter:E.ZT}}()).include(W8),Z0="column",ny="row",Gl=null,n9=function(n,t){var e=n/t;return(!(0,w.$K)(n)||isNaN(e))&&(e=Gl),e},mP=function(n,t){return n9(n.value(),n.grandTotal(t).value())},i9=function(n,t){var e=n.parent(t),i=e?e.value():n.value();return n9(n.value(),i)},r9=function(n){return function(t){var e=t.prev(Z0,n),i=e&&e.value();return(0,w.$K)(i)&&(0,w.$K)(t.value())?t.value()-i:Gl}},iq={percentOfColumnTotal:function(n){return i9(n,ny)},percentOfRowTotal:function(n){return i9(n,Z0)},percentOfColumnGrandTotal:function(n){return mP(n,ny)},percentOfRowGrandTotal:function(n){return mP(n,Z0)},percentOfGrandTotal:function(n){return mP(n)}},rq=function n(t,e){if(t&&t.parent(e)){var i=t.prev(e);return i||(i=n(t.parent(e),e)),i}},oq=function(n){if(n.runningTotal){var t=n.runningTotal===Z0?ny:Z0;return function(e){var i=n.allowCrossGroupCalculation?rq(e,t):e.prev(t,!1),r=e.value(!0),v=i&&i.value(!0);return(0,w.$K)(v)&&(0,w.$K)(r)?r=v+r:(0,w.$K)(v)&&(r=v),r}}};function vP(n,t,e){var i={index:-1};if(!(0,w.Kn)(t))if(e.fields[t])t=e[t];else{var r=n.columns.concat(n.rows).concat(n.values),v=ey(r,t);t=e[t]=r[v]}if(t){var D=t.area||"data";i=e.positions[t.index]=e.positions[t.index]||{area:D,index:n["data"===D?"values":D+"s"].indexOf(t)}}return i}function $b(n){return n===ny?"_rowPath":"_columnPath"}var iy=function(n,t,e,i,r,v){this._columnPath=n,this._rowPath=t,this._fieldIndex=r,this._fieldsCache=v||{fields:{},positions:{}},this._data=e,this._descriptions=i;var D=e.values&&e.values[t[0].index]&&e.values[t[0].index][n[0].index];D&&(D.originalCell=D.originalCell||D.slice(),D.postProcessedFlags=D.postProcessedFlags||[],this._cell=D)};function aq(n){var t=n.summaryDisplayMode,e=n.allowCrossGroupCalculation,i=Gl;return(0,w.mf)(n.calculateSummaryValue)?i=n.calculateSummaryValue:t&&(i="absoluteVariation"===t?r9(e):"percentVariation"===t?function(n){var t=r9(n);return function(e){var i=t(e),r=e.prev(Z0,n),v=r&&r.value();return i!==Gl&&v?i/v:Gl}}(e):iq[t],i&&!n.format&&-1!==t.indexOf("percent")&&Ap(n,"format","percent")),i}function o9(n,t,e,i){var r=n.values[t][e]=n.values[t][e]||[],v=r.originalCell;v&&((r.allowResetting||!i)&&(n.values[t][e]=v.slice()),n.values[t][e].allowResetting=i)}iy.prototype=(0,y.l)(iy.prototype,{_getPath:function(n){return this[$b(n)]},_getDimension:function(n){return this._descriptions[n=n===ny?"rows":"columns"]},_createCell:function(n){return new iy(n._columnPath||this._columnPath,n._rowPath||this._rowPath,this._data,this._descriptions,this._fieldIndex)},parent:function(n){var t=this._getPath(n).slice(),e={};return t.shift(),t.length?(e[$b(n)]=t,this._createCell(e)):Gl},children:function(n){var t=this._getPath(n).slice(),e=t[0],i=[],r={};if(e.children)for(var v=0;v<e.children.length;v++)r[$b(n)]=[e.children[v]].concat(t.slice()),i.push(this._createCell(r));return i},grandTotal:function(n){var t={},e=this._rowPath,i=this._columnPath,r=this._getPath(n),v=$b(n);return n?t[v]=[r[r.length-1]]:(t._rowPath=[e[e.length-1]],t._columnPath=[i[i.length-1]]),this._createCell(t)},next:function(n,t){var v,e=this._getPath(n),i=e[0],r=this.parent(n);if(r){var D=e[1].children.indexOf(i);if((v=r.children(n))[D+1])return v[D+1]}if(t&&r){do{v=(r=r.next(n,t))?r.children(n):[]}while(r&&!v.length);return v[0]||Gl}return Gl},prev:function(n,t){var v,e=this._getPath(n),i=e[0],r=this.parent(n);if(r){var D=e[1].children.indexOf(i);if((v=r.children(n))[D-1])return v[D-1]}if(t&&r){do{v=(r=r.prev(n,t))?r.children(n):[]}while(r&&!v.length);return v[v.length-1]||Gl}return Gl},cell:function(){return this._cell},field:function(n){if("data"===n)return this._descriptions.values[this._fieldIndex];var t=this._getPath(n);return this._getDimension(n)[t.length-2]||Gl},child:function(n,t){for(var e=this.children(n),i=0;i<e.length;i++){var r=r||e[i].field(n);if(e[i].value(r)===t)return e[i]}return Gl},slice:function(n,t){var e={},i=vP(this._descriptions,n,this._fieldsCache),r=i.area,v=i.index,D=Gl;if(r===ny||r===Z0){var A=this._getPath(r).slice(),z=-1!==v&&A.length-2-v;if(A[z]){for(var Q=z;Q>=0;Q--){if(A[Q+1]){var ue=A[Q+1].children||[],we=Q===z?t:A[Q].value;A[Q]=void 0;for(var Le=0;Le<ue.length;Le++)if(ue[Le].value===we){A[Q]=ue[Le];break}}if(void 0===A[Q])return D}e[$b(r)]=A,D=this._createCell(e)}}return D},value:function(n,t){var e=this._cell,i=this._fieldIndex,r=!0===n||!1===n,v=r?Gl:n,D=r&&n||t;if((0,w.$K)(v)){var A=vP(this._descriptions,v,this._fieldsCache);if(i=A.index,"data"!==A.area){var z=this._getPath(A.area),Q=-1!==i&&z.length-2-i;return z[Q]&&z[Q].value}}return e&&e.originalCell?D?e[i]:e.originalCell[i]:Gl},isPostProcessed(n){var t=this._fieldIndex;if((0,w.$K)(n)){var e=vP(this._descriptions,n,this._fieldsCache);if(t=e.index,"data"!==e.area)return!1}return!(!this._cell||!this._cell.postProcessedFlags[t])}});var yP={row:"rows",column:"columns",data:"values",filter:"filters"},CP=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],xP=["format","selector","customizeText","caption"],a9=xP.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);function bP(n,t){var e=n._initProperties||{};(0,O.S6)(t,function(i,r){Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])})}function wP(n,t){bP(n,t),(0,w.$K)(n.caption)||Ap(n,"caption",function dq(n){var t=n.dataField||n.groupName||"",e=(n.summaryType||"").toLowerCase();return(0,w.HD)(n.groupInterval)&&(t+="_"+n.groupInterval),e&&"custom"!==e?(e=e.replace(/^./,e[0].toUpperCase()),t.length&&(e=" ("+e+")")):e="",(0,je.MI)(t)+e}(n))}function pq(n){return n.rows.length||n.columns.length||n.values.length}const s9=ir.Z.inherit(function(){var n=function(Nt,Jt){if(Nt._cacheByPath)return Nt._cacheByPath[Jt.join(".")]||null},t=function Nt(Jt,un){var Mn,Xn,Kn=-1;if(Jt)for(Mn=0;Mn<Jt.length;Mn++)void 0!==(Xn=Jt[Mn]).index&&(Kn=Math.max(Kn,Xn.index)),Xn.children?Kn=Math.max(Kn,Nt(Xn.children)):Xn.collapsedChildren&&(Kn=Math.max(Kn,Nt(Xn.collapsedChildren)));return(0,w.$K)(un)&&(Kn=Math.max(Kn,un)),Kn},e=function(Nt,Jt,un,Mn){var si,Kn=t(un)+1,Xn=t(Nt,Mn)+1,pi=[],yi=!1,Ui=new P.BH;if(Jt.children&&Jt.children.length===un.length)for(var Bi=0;Bi<un.length;Bi++){var oi=un[Bi];void 0!==oi.index&&(void 0===Jt.children[Bi].index?(oi.index=pi[oi.index]=Xn++,Jt.children[Bi]=oi):pi[oi.index]=Jt.children[Bi].index)}else{for(yi=!0,si=0;si<Kn;si++)pi[si]=Xn++;Jt.children=un}return(0,P.gx)(Af(Jt.children,function(Fi){yi&&(Fi[0].index=pi[Fi[0].index])})).done(function(){Ui.resolve(pi)}),Ui},i=function(Nt,Jt,un){var Mn=new P.BH,Kn=un>=0&&t(Nt,un)+1,Xn=[];return(0,P.gx)(Af(Nt,function(si){delete si[0].collapsedChildren})).done(function(){(0,P.gx)(Af(Jt,function(si,pi){var yi=si[0];if(yi.index>=0){var Ui=n(Nt,Yu(si));if(Ui&&Ui.index>=0)Xn[yi.index]=Ui.index;else if(Kn){var Bi=Yu(si.slice(1));Ui=n(Nt,Bi);var oi=Bi.length?Ui&&Ui.children:Nt;oi&&(oi[pi]=yi,yi.index=Xn[yi.index]=Kn++)}}})).done(function(){Mn.resolve(Xn)})}),Mn},r=function(Nt,Jt,un,Mn){var Kn,Xn,si,pi,yi,Ui,Bi=Nt.values;if(Jt)for(Kn=0;Kn<Jt.length;Kn++)if(si=Jt[Kn],(0,w.$K)(yi=un[Kn])||(yi=Nt.grandTotalRowIndex),si&&(0,w.$K)(yi))for(Bi[yi]||(Bi[yi]=[]),Xn=0;Xn<si.length;Xn++)pi=si[Xn],(0,w.$K)(Ui=Mn[Xn])||(Ui=Nt.grandTotalColumnIndex),(0,w.$K)(pi)&&(0,w.$K)(Ui)&&(Bi[yi][Ui]=pi)};function v(Nt,Jt){return new(Nt.remoteOperations||Nt.paginate?jX:VX)((0,y.l)((0,SD.aN)(Nt),{onChanged:null,onLoadingChanged:null,onProgressChanged:Jt}))}function D(Nt,Jt,un,Mn){var Kn=[],Xn=Jt&&Jt[un]||[],si=Mn&&Mn[un]||[];return Qs(Nt[un],function(pi){var yi=pi[0],Ui=Yu(pi);yi.children&&Xn[Ui.length-1]&&!Xn[Ui.length-1].expanded&&Ui.length<Xn.length&&(!Mn||function(Bi,oi,Fi){for(var Zi=0;Zi<Fi;Zi++)if(!Bi[Zi]||!oi[Zi]||Bi[Zi].index!==oi[Zi].index)return!1;return!0}(Xn,si,Ui.length))&&Kn.push(Ui.slice())},!0),Kn}function A(Nt,Jt,un,Mn){return Jt?(0,O.S6)(Mn,function(Kn,Xn){if(un)Nt[Xn]=Jt[Xn];else{if(("summaryType"===Xn||"summaryDisplayMode"===Xn)&&void 0===Jt[Xn])return;Ap(Nt,Xn,Jt[Xn])}}):bP(Nt,Mn),Nt}function z(Nt,Jt){var un=[];return(0,O.S6)(Nt,function(Mn,Kn){un.push(A({dataField:Kn.dataField,name:Kn.name},Kn,!0,Jt))}),un}function Q(Nt){return Nt.name?Nt.name:Nt.dataField+""}function ue(Nt,Jt){var un=[];return(0,O.S6)(Nt||[],function(Mn,Kn){Q(Kn)===Jt&&un.push(Kn)}),un}function we(Nt,Jt){Nt=Nt||[];var Mn,un={};return(0,O.S6)(Jt,function(Kn,Xn){Mn=Q(Xn),un[Mn]||(un[Mn]=ue(Jt,Q(Xn)))}),(0,O.S6)(un,function(Kn,Xn){var si;si=(si=ue(Nt,Kn))||[],(0,O.S6)(Xn,function(yi,Ui){A(Ui,si[yi],!1,CP),wP(Ui,xP)})}),Jt}function Le(Nt){Nt.sort(function(Jt,un){return Jt.areaIndex-un.areaIndex||Jt.groupIndex-un.groupIndex})}function Ue(Nt,Jt){var un=Nt.groupName||"";return(Nt.dataField||un)+(Nt.groupInterval?un+Nt.groupInterval:"NOGROUP")+(Jt?"":un)}function ut(Nt,Jt,un){var pi,Mn=[],Kn={},Xn={},si=H8(Nt);return Jt?((0,O.S6)(Jt,function(pi,yi){Kn[Ue(yi,un)]=yi}),(0,O.S6)(Nt,function(pi,yi){var oi,Ui=Ue(yi,un),Bi=Kn[Ui]||Xn[Ui];Bi?(Bi._initProperties&&bP(Bi,a9),oi=(0,y.l)({},Bi,yi,{_initProperties:null})):Kn[Ui]=oi=yi,(0,y.l)(oi,{dataType:si[yi.dataField]}),delete Kn[Ui],Xn[Ui]=Bi,Mn.push(oi)}),un&&(0,O.S6)(Kn,function(pi,yi){Mn.push(yi)})):Mn=Nt,Mn.push.apply(Mn,[]),(pi=Mn).forEach(yi=>{if(yi.groupName&&yi.groupInterval&&void 0===yi.groupIndex){var Ui=pi.filter(Bi=>Bi.groupName===yi.groupName&&(0,w.kE)(Bi.groupIndex)).map(Bi=>Bi.groupIndex).reduce((Bi,oi)=>Math.max(Bi,oi),-1);yi.groupIndex=Ui+1}}),Mn}function It(Nt){var Kn,Jt=new P.BH,un=Nt._store,Mn=un&&un.getFields(Nt._fields);return(0,P.gx)(Mn).done(function(Xn){Nt._storeFields=Xn,Kn=ut(Nt._fields,Xn,Nt._retrieveFields),Jt.resolve(Kn)}).fail(Jt.reject),Jt}function Gt(Nt,Jt,un){return Af(Nt[un],function(Mn){var Kn=Mn[0];Kn.text=Kn.text||dP(Kn.value,Jt[un][Yu(Mn).length-1])})}function ln(Nt,Jt){return(0,P.gx)(Gt(Jt,Nt,"columns"),Gt(Jt,Nt,"rows"))}function En(Nt){var Jt=new P.BH,un={};return(0,P.gx)(Af(Nt,function(Mn){var Kn=Yu(Mn).join(".");un[Kn]=Mn[0]})).done(Jt.resolve),Nt._cacheByPath=un,Jt}function on(Nt,Jt){var un=[];return(0,O.S6)(Nt,function(){var Kn,Xn;Xn="data"===(Kn=Jt)||!1!==this.visible,this.area===Kn&&!(0,w.$K)(this.groupIndex)&&Xn&&un.push(this)}),un}return{ctor:function(Nt){Nt=Nt||{},this._eventsStrategy=new FX.m(this);var Mn,Kn,Xn,si,Jt=this,un=(Kn=function(Mn){Jt._eventsStrategy.fireEvent("progressChanged",[Mn])},(0,w.PO)(Mn=Nt)&&Mn.load?Xn=v(Mn,Kn):(Mn&&!Mn.store&&(Mn={store:Mn}),"xmla"===(si=Mn.store).type?Xn=new tq(si):(0,w.PO)(si)&&si.type||si instanceof BX.Z||Array.isArray(si)?Xn=v(Mn,Kn):si instanceof ir.Z&&(Xn=si)),Xn);Jt._store=un,Jt._paginate=!!Nt.paginate,Jt._pageSize=Nt.pageSize||40,Jt._data={rows:[],columns:[],values:[]},Jt._loadingCount=0,Jt._isFieldsModified=!1,(0,O.S6)(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(Mn,Kn){var Xn="on"+Kn[0].toUpperCase()+Kn.slice(1);Object.prototype.hasOwnProperty.call(Nt,Xn)&&this.on(Kn,Nt[Xn])}.bind(this)),Jt._retrieveFields=!(0,w.$K)(Nt.retrieveFields)||Nt.retrieveFields,Jt._fields=Nt.fields||[],Jt._descriptions=Nt.descriptions?(0,y.l)(Jt._createDescriptions(),Nt.descriptions):void 0,un||(0,y.l)(!0,Jt._data,Nt.store||Nt)},getData:function(){return this._data},getAreaFields:function(Nt,Jt){var un=[];return Jt||"data"===Nt?Le(un=on(this._fields,Nt)):un=(this._descriptions||{})[yP[Nt]]||[],un},fields:function(Nt){return Nt&&(this._fields=ut(Nt,this._storeFields,this._retrieveFields),this._fieldsPrepared(this._fields)),this._fields},field:function(Nt,Jt){var Kn,un=this._fields,Mn=un&&un[(0,w.kE)(Nt)?Nt:ey(un,Nt)];return Mn&&Jt&&((0,O.S6)(Jt,function(Xn,si){var pi=!CP.includes(Xn);if(Ap(Mn,Xn,si,pi),"sortOrder"===Xn){Kn=Mn.levels||[];for(var yi=0;yi<Kn.length;yi++)Kn[yi][Xn]=si}}),wP(Mn,xP),this._descriptions=this._createDescriptions(Mn),this._isFieldsModified=!0,this._eventsStrategy.fireEvent("fieldChanged",[Mn])),Mn},getFieldValues:function(Nt,Jt,un){var yi,Mn=this,Kn=this._fields&&this._fields[Nt],Xn=this.store(),si=[],pi={columns:si,rows:[],values:this.getAreaFields("data"),filters:Jt?this._fields.filter(Bi=>Bi!==Kn&&Bi.area&&Bi.filterValues&&Bi.filterValues.length):[],skipValues:!0},Ui=new P.BH;return un&&(yi=un.searchValue,pi.columnSkip=un.skip,pi.columnTake=un.take),Kn&&Xn?((0,O.S6)(Kn.levels||[Kn],function(){si.push((0,y.l)({},this,{expanded:!0,filterValues:null,sortOrder:"asc",sortBySummaryField:null,searchValue:yi}))}),Xn.load(pi).done(function(Bi){pi.columnSkip&&(Bi.columns=Bi.columns.slice(pi.columnSkip)),pi.columnTake&&(Bi.columns=Bi.columns.slice(0,pi.columnTake)),ln(pi,Bi),pi.columnTake||Mn._sort(pi,Bi),Ui.resolve(Bi.columns)}).fail(Ui)):Ui.reject(),Ui},reload:function(){return this.load({reload:!0})},filter:function(){var Nt=this._store;return Nt.filter.apply(Nt,arguments)},load:function(Nt){var Jt=this,un=new P.BH;function Mn(){Jt._delayedLoadTask=void 0,Jt._descriptions?Jt._loadCore(Nt,un):(0,P.gx)(It(Jt)).done(function(Kn){Jt._fieldsPrepared(Kn),Jt._loadCore(Nt,un)}).fail(un.reject).fail(Jt._loadErrorHandler)}return Nt=Nt||{},Jt.beginLoading(),un.fail(function(Kn){Jt._eventsStrategy.fireEvent("loadError",[Kn])}).always(function(){Jt.endLoading()}),Jt.store()?Jt._delayedLoadTask=(0,E.Wi)(Mn):Mn(),un},createDrillDownDataSource:function(Nt){return this._store.createDrillDownDataSource(this._descriptions,Nt)},_createDescriptions:function(Nt){var Jt=this.fields(),un={rows:[],columns:[],values:[],filters:[]};(0,O.S6)(["row","column","data","filter"],function(Kn,Xn){(0,gc.Sq)(on(Jt,Xn),"areaIndex",Nt)}),(0,O.S6)(Jt||[],function(Kn,Xn){var Bi,pi=un[yP[Xn.area]],yi=Xn.groupName;yi&&!(0,w.kE)(Xn.groupIndex)&&(Xn.levels=(Bi=Xn,Jt.filter(oi=>oi.groupName===Bi.groupName&&(0,w.kE)(oi.groupIndex)&&!1!==oi.visible).map(function(oi){return(0,y.l)(oi,{areaIndex:Bi.areaIndex,area:Bi.area,expanded:(0,w.$K)(oi.expanded)?oi.expanded:Bi.expanded,dataField:oi.dataField||Bi.dataField,dataType:oi.dataType||Bi.dataType,sortBy:oi.sortBy||Bi.sortBy,sortOrder:oi.sortOrder||Bi.sortOrder,sortBySummaryField:oi.sortBySummaryField||Bi.sortBySummaryField,sortBySummaryPath:oi.sortBySummaryPath||Bi.sortBySummaryPath,visible:oi.visible||Bi.visible,showTotals:(0,w.$K)(oi.showTotals)?oi.showTotals:Bi.showTotals,showGrandTotals:(0,w.$K)(oi.showGrandTotals)?oi.showGrandTotals:Bi.showGrandTotals})}).sort(function(oi,Fi){return oi.groupIndex-Fi.groupIndex}))),!(!pi||yi&&(0,w.kE)(Xn.groupIndex)||!1===Xn.visible&&"data"!==Xn.area&&"filter"!==Xn.area)&&(Xn.levels&&pi!==un.filters&&pi!==un.values?(pi.push.apply(pi,Xn.levels),Xn.filterValues&&Xn.filterValues.length&&un.filters.push(Xn)):pi.push(Xn))}),(0,O.S6)(un,function(Kn,Xn){Le(Xn)});var Mn={};return(0,O.S6)(un.values,function(Kn,Xn){var si=Xn.calculateSummaryValue;if((0,w.mf)(si)){var pi=function uq(n,t,e){var i=new iy([],[],{},n,0);return i.value=function(r){if((0,w.$K)(r)){var v=ey(t,r),D=t[v];!e[v]&&D&&!(0,w.$K)(D.area)&&(n.values.push(D),e[v]=!0)}},i.grandTotal=function(){return this},i.children=function(){return[]},i}(un,Jt,Mn);si(pi)}}),un},_fieldsPrepared:function(Nt){this._fields=Nt,(0,O.S6)(Nt,function(Mn,Kn){Kn.index=Mn,wP(Kn,a9)});var Jt=z(Nt,["caption"]);this._eventsStrategy.fireEvent("fieldsPrepared",[Nt]);for(var un=0;un<Nt.length;un++)Nt[un].caption!==Jt[un].caption&&Ap(Nt[un],"caption",Nt[un].caption,!0);this._descriptions=this._createDescriptions()},isLoading:function(){return this._loadingCount>0},state:function(Nt,Jt){var un=this;if(!arguments.length)return{fields:z(un._fields,CP),columnExpandedPaths:D(un._data,un._descriptions,"columns",un._lastLoadOptions),rowExpandedPaths:D(un._data,un._descriptions,"rows",un._lastLoadOptions)};Nt=(0,y.l)({rowExpandedPaths:[],columnExpandedPaths:[]},Nt),un._descriptions?(un._fields=we(Nt.fields,un._fields),un._descriptions=un._createDescriptions(),!Jt&&un.load(Nt)):(un.beginLoading(),(0,P.gx)(It(un)).done(function(Mn){un._fields=we(Nt.fields,Mn),un._fieldsPrepared(Mn),!Jt&&un.load(Nt)}).always(function(){un.endLoading()}))},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(Nt){var Jt=this.isLoading();this._loadingCount+=Nt;var un=this.isLoading();Jt^un&&this._eventsStrategy.fireEvent("loadingChanged",[un])},_hasPagingValues:function(Nt,Jt,un){var Mn=Jt+"Take",Kn=Jt+"Skip",Xn=this._data.values,si=this._data[Jt+"s"],pi="row"===Jt?"column":"row",yi=[];if(Nt.path&&Nt.area===Jt){var Ui=n(si,Nt.path);if(!(si=Ui&&Ui.children))return!1}if(Nt.oppositePath&&Nt.area===pi){var Bi=n(si,Nt.oppositePath);if(!(si=Bi&&Bi.children))return!1}for(var oi=Nt[Kn];oi<Nt[Kn]+Nt[Mn];oi++)si[oi]&&yi.push(si[oi].index);return yi.every(Fi=>{if(void 0!==Fi)return"row"===Jt?(Xn[Fi]||[])[un]:(Xn[un]||[])[Fi]})},_processPagingCacheByArea:function(Nt,Jt,un){var pi,Mn=un+"Take",Kn=un+"Skip",Xn=this._data[un+"s"],si="row"===un?"column":"row";if(Nt[Mn]){if(Nt.path&&Nt.area===un){var yi=n(Xn,Nt.path);Xn=yi&&yi.children||[]}if(Nt.oppositePath&&Nt.area===si){var Ui=n(Xn,Nt.oppositePath);Xn=Ui&&Ui.children||[]}do{if((pi=Xn[Nt[Kn]])&&void 0!==pi.index){if(!this._hasPagingValues(Nt,si,pi.index))break;Nt[Kn]++,Nt[Mn]--}}while(pi&&void 0!==pi.index&&Nt[Mn]);if(Nt[Mn]){var Bi=Math.floor(Nt[Kn]/Jt)*Jt,oi=Math.ceil((Nt[Kn]+Nt[Mn])/Jt)*Jt;Nt[Kn]=Bi,Nt[Mn]=oi-Bi}}},_processPagingCache:function(Nt){var Jt=this._pageSize;if(!(Jt<0))for(var un=0;un<Nt.length;un++)this._processPagingCacheByArea(Nt[un],Jt,"row"),this._processPagingCacheByArea(Nt[un],Jt,"column")},_loadCore:function(Nt,Jt){var un=this,Mn=this._store,Kn=this._descriptions,Xn=Nt.reload||this.paginate()&&un._isFieldsModified,si=this.paginate(),pi=yP[Nt.area];if(Nt=Nt||{},Mn){(0,y.l)(Nt,Kn),Nt.columnExpandedPaths=Nt.columnExpandedPaths||D(this._data,Nt,"columns",un._lastLoadOptions),Nt.rowExpandedPaths=Nt.rowExpandedPaths||D(this._data,Nt,"rows",un._lastLoadOptions),si&&(Nt.pageSize=this._pageSize),pi&&(Nt.headerName=pi),un.beginLoading(),Jt.always(function(){un.endLoading()});var yi=[Nt];if(un._eventsStrategy.fireEvent("customizeStoreLoadOptions",[yi,Xn]),Xn||un._processPagingCache(yi),!(yi=yi.filter(Bi=>!(Bi.rows.length&&0===Bi.rowTake||Bi.columns.length&&0===Bi.columnTake))).length)return void un._update(Jt);var Ui=yi.map(Bi=>Mn.load(Bi));P.gx.apply(null,Ui).done(function(){for(var Bi=arguments,oi=0;oi<Bi.length;oi++){var Fi=yi[oi],Zi=Bi[oi],nr=oi===Bi.length-1;Fi.path?un.applyPartialDataSource(Fi.area,Fi.path,Zi,!!nr&&Jt,Fi.oppositePath):si&&!Xn&&pq(un._data)?un.mergePartialDataSource(Zi,!!nr&&Jt):((0,y.l)(un._data,Zi),un._lastLoadOptions=Fi,un._update(!!nr&&Jt))}}).fail(Jt.reject)}else un._update(Jt)},_sort:function(Nt,Jt,un){this._store&&!this._paginate&&function $X(n,t,e){t9(t,n,"rows",e),t9(t,n,"columns",e)}(Nt,Jt,un)},paginate:function(){return this._paginate&&this._store&&this._store.supportPaging()},isEmpty:function(){var Nt=this.getAreaFields("data").filter(un=>!1!==un.visible),Jt=this.getData();return!Nt.length||!Jt.values.length},_update:function(Nt){var Jt=this,un=Jt._descriptions,Mn=Jt._data,Kn=un.values,Xn=function cq(n){return n.some(function(t){return t.summaryDisplayMode||t.calculateSummaryValue})}(Kn);return(0,P.gx)(ln(un,Mn),En(Mn.rows),En(Mn.columns)).done(function(){Xn&&(Jt._sort(un,Mn,Xn),!Jt.isEmpty()&&function sq(n,t){var e=[],i=[{index:t.grandTotalColumnIndex,children:t.columns}],r=[{index:t.grandTotalRowIndex,children:t.rows}],v=n.values,D={fields:{},positions:{}};t.values=t.values||[],Qs(i,A=>{A[0].isEmpty=[]},!1),Qs(r,function(A){var z=A[0];z.isEmpty=[],t.values[z.index]=t.values[z.index]||[],Qs(i,function(Q){var we,ue=Q[0];o9(t,z.index,ue.index,!1);for(var Le=0;Le<v.length;Le++){var ut=e[Le]=void 0===e[Le]?aq(v[Le]):e[Le];if(we=!1,ut){var It=new iy(Q,A,t,n,Le,D),Gt=It.cell(),ln=Gt[Le]=ut(It);Gt.postProcessedFlags[Le]=!0,we=null==ln}void 0===ue.isEmpty[Le]&&(ue.isEmpty[Le]=!0),void 0===z.isEmpty[Le]&&(z.isEmpty[Le]=!0),we||(z.isEmpty[Le]=ue.isEmpty[Le]=!1)}},!1)},!1),t.isEmptyGrandTotalRow=r[0].isEmpty,t.isEmptyGrandTotalColumn=i[0].isEmpty}(un,Mn)),Jt._sort(un,Mn),!Jt.isEmpty()&&function hq(n){return n.some(function(t){return!!t.runningTotal})}(Kn)&&function lq(n,t){var e=[],i=[{index:t.grandTotalColumnIndex,children:t.columns}],r=[{index:t.grandTotalRowIndex,children:t.rows}],v=n.values,D={fields:{},positions:{}};t.values=t.values||[],Qs(r,function(A){var z=A[0];t.values[z.index]=t.values[z.index]||[],Qs(i,function(Q){o9(t,z.index,Q[0].index,!0);for(var we=0;we<v.length;we++){var Ue=e[we]=void 0===e[we]?oq(v[we]):e[we];if(Ue){var ut=new iy(Q,A,t,n,we,D),It=ut.cell();It[we]=Ue(ut),It.postProcessedFlags[we]=!0}}},!1)},!1)}(un,Mn),Jt._data=Mn,!1!==Nt&&(0,P.gx)(Nt).done(function(){Jt._isFieldsModified=!1,Jt._eventsStrategy.fireEvent("changed"),(0,w.$K)(Jt._data.grandTotalRowIndex)&&(Mn.grandTotalRowIndex=Jt._data.grandTotalRowIndex),(0,w.$K)(Jt._data.grandTotalColumnIndex)&&(Mn.grandTotalColumnIndex=Jt._data.grandTotalColumnIndex)}),Nt&&Nt.resolve(Jt._data)}),Nt},store:function(){return this._store},collapseHeaderItem:function(Nt,Jt){var Mn=n("column"===Nt?this._data.columns:this._data.rows,Jt),Kn=this.getAreaFields(Nt)[Jt.length-1];return!(!Mn||!Mn.children||(this._eventsStrategy.fireEvent("expandValueChanging",[{area:Nt,path:Jt,expanded:!1}]),Kn&&(Kn.expanded=!1),Mn.collapsedChildren=Mn.children,delete Mn.children,this._update(),this.paginate()&&this.load(),0))},collapseAll:function(Nt){var Jt=!1,un=this.field(Nt)||{},Mn=[this.getAreaFields(un.area).indexOf(un)];un.expanded=!1,un&&un.levels&&(Mn=[],un.levels.forEach(Kn=>{Mn.push(this.getAreaFields(un.area).indexOf(Kn)),Kn.expanded=!1})),Qs(this._data[un.area+"s"],function(Kn){var Xn=Kn[0],si=Yu(Kn);Xn&&Xn.children&&-1!==Mn.indexOf(si.length-1)&&(Xn.collapsedChildren=Xn.children,delete Xn.children,Jt=!0)},!0),Jt&&this._update()},expandAll:function(Nt){var Jt=this.field(Nt);Jt&&Jt.area&&(Jt.expanded=!0,Jt&&Jt.levels&&Jt.levels.forEach(un=>{un.expanded=!0}),this.load())},expandHeaderItem:function(Nt,Jt){var Mn=n("column"===Nt?this._data.columns:this._data.rows,Jt);if(Mn&&!Mn.children){var Kn=!!Mn.collapsedChildren,Xn={area:Nt,path:Jt,expanded:!0,needExpandData:!Kn};return this._eventsStrategy.fireEvent("expandValueChanging",[Xn]),Kn?(Mn.children=Mn.collapsedChildren,delete Mn.collapsedChildren,this._update()):this.store()&&this.load(Xn),Kn}return!1},mergePartialDataSource:function(Nt,Jt){var Kn,Xn,un=this,Mn=un._data;Nt&&Nt.values&&(Nt.rows=Nt.rows||[],Nt.columns=Nt.columns||[],Kn=i(Mn.rows,Nt.rows,Mn.grandTotalColumnIndex),Xn=i(Mn.columns,Nt.columns,Mn.grandTotalColumnIndex),(0,P.gx)(Kn,Xn).done(function(si,pi){(si.length||pi.length)&&r(Mn,Nt.values,si,pi),un._update(Jt)}))},applyPartialDataSource:function(Nt,Jt,un,Mn,Kn){var yi,Bi,oi,Fi,Xn=this,si=Xn._data,pi="column"===Nt?si.columns:si.rows,Ui="column"===Nt?si.rows:si.columns;un&&un.values&&(un.rows=un.rows||[],un.columns=un.columns||[],yi=n(pi,Jt),Bi=Kn&&n(Ui,Kn),yi&&("column"===Nt?(Fi=e(pi,yi,un.columns,si.grandTotalColumnIndex),oi=Bi?e(Ui,Bi,un.rows,si.grandTotalRowIndex):i(si.rows,un.rows,si.grandTotalRowIndex)):(oi=e(pi,yi,un.rows,si.grandTotalRowIndex),Fi=Bi?e(Ui,Bi,un.columns,si.grandTotalColumnIndex):i(si.columns,un.columns,si.grandTotalColumnIndex)),(0,P.gx)(oi,Fi).done(function(Zi,nr){("row"===Nt&&Zi.length||"column"===Nt&&nr.length)&&r(si,un.values,Zi,nr),Xn._update(Mn)})))},on(Nt,Jt){return this._eventsStrategy.on(Nt,Jt),this},off(Nt,Jt){return this._eventsStrategy.off(Nt,Jt),this},dispose:function(){var Nt=this._delayedLoadTask;this._eventsStrategy.dispose(),Nt&&Nt.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}());var EP=Math,Xb=function(n,t,e){n[t]||(n[t]=function(){var i=this._dataSource;return i?i[t].apply(i,arguments):e})},mq=ir.Z.inherit(function(){function n(A,z,Q){return"#N/A"===A?Q:dP(A,z)}var t=function(){function Q(ue,we,Le){var ut=(ue[we]=ue[we]||[])[Le]={};if(ue[we+1]){ut.children=ue[we+1];for(var It=we+1;It<ue.length;It++)ue[It]=void 0;ue.length=we+1}return ut}return function(ue,we,Le,Ue,ut){var on,It=[],Gt=(on=0,Qs(ue,function(Nt){on=EP.max(on,Nt.length)}),on||1),ln=new P.BH;return function(ue,we,Le,Ue,ut){var on,Nt,Kn,Jt,un,Mn,It=Le.length,Gt=(on=ue,Jt=(Nt=we)&&Nt.length||0,un=[],Mn=new P.BH,(0,P.gx)(Af(on,function(Xn,si){var pi=Xn[0],yi=Yu(Xn);(Kn=Q(un,yi.length,si)).type="D",Kn.value=pi.value,Kn.path=yi,Kn.text=pi.text,Kn.index=pi.index,Kn.displayText=pi.displayText,Kn.key=pi.key,Kn.isEmpty=pi.isEmpty,yi.length<Jt&&(!pi.children||0!==pi.children.length)&&(Kn.expanded=!!pi.children)})).done(function(){Mn.resolve(Q(un,0,0).children||[])}),Mn),ln=ut.dataFields,En=new P.BH;return(0,P.gx)(Gt).done(function(on){ut.notifyProgress(.5),ut.showGrandTotals&&on[ut.showTotalsPrior?"unshift":"push"]({type:"GT",isEmpty:ut.isEmptyGrandTotal});var Nt=!1===ut.showTotals||ln.length>0&&ln.length===ut.hiddenTotals.length,Jt=ln.length>0&&ut.hiddenValues.length===ln.length;Jt&&Nt&&(Ue=1),(!Nt||"tree"===ut.layout)&&function(un,Mn,Kn,Xn){Kn=Kn||Xn,Qs(un,function(si,pi){var yi=si[0];"D"===yi.type&&yi.expanded&&(!1!==Mn[si.length-1].showTotals||Xn)&&(-1!==pi&&((si[1]?si[1].children:un)||[]).splice(Kn?pi:pi+1,0,(0,y.l)({},yi,{children:null,type:"T",expanded:!!Kn||null,isAdditionalTotal:!0})),Kn&&(yi.expanded=null))})}(on,we,ut.showTotalsPrior,"tree"===ut.layout),(0,P.gx)(Af(on,function(un){var Mn=un[0];(!Mn.children||0===Mn.children.length)&&(Mn.depthSize=Ue-un.length+1)})).done(function(){It>1&&function(un,Mn,Kn){Qs(un,function(Xn){var pi,si=Xn[0];if(!si.children||0===si.children.length)for(si.children=[],pi=0;pi<Mn.length;pi++){var Ui="T"===si.type,Bi="D"===si.type;!1===Mn[pi].visible||"GT"===si.type&&Kn.hiddenGrandTotals.includes(pi)||Ui&&Kn.hiddenTotals.includes(pi)||Bi&&Kn.hiddenValues.includes(pi)||si.children.push({caption:Mn[pi].caption,path:si.path,type:si.type,value:pi,index:si.index,dataIndex:pi,isMetric:!0,isEmpty:si.isEmpty&&si.isEmpty[pi]})}})}(on,Le,ut),!ut.showEmpty&&function(un){Qs([{children:un}],function(Mn,Kn){var Xn=Mn[0],si=(Mn[1]?Mn[1].children:un)||[],pi=Xn.isEmpty;pi&&pi.length&&(pi=Xn.isEmpty.filter(function(yi){return yi}).length===pi.length),Xn&&!Xn.children&&pi&&(si.splice(Kn,1),function yi(Ui,Bi){var oi=Ui[Bi+1];!Ui[Bi].children.length&&oi&&oi.children&&(oi.children.splice(oi.children.indexOf(Ui[Bi]),1),yi(Ui,Bi+1))}(Mn,1))})}(on),ut.notifyProgress(.75),(0,P.gx)(Af(on,function(un){var Mn=un[0],Kn=Mn.isMetric,Xn=we[un.length-1]||{};if("D"===Mn.type&&!Kn&&(Mn.width=Xn.width),!0!==Jt||"D"!==Mn.type){var pi,Ui,Bi;Mn.wordWrapEnabled=Kn?Le[Mn.dataIndex].wordWrapEnabled:Xn.wordWrapEnabled,Mn.isLast=!Mn.children||!Mn.children.length,Mn.isLast&&(0,O.S6)(ut.sortBySummaryPaths,function(pi,yi){if((0,w.$K)(Mn.dataIndex)||(yi=yi.slice(0)).pop(),Fi=(Ui=un)[0],Zi=(0,w.HD)((Bi=yi)[0]),nr=Fi.dataIndex>=0?Ui[1]:Fi,oi=Zi&&-1!==Bi[0].indexOf("&[")&&nr.key||!nr.key?Yu(Ui):(0,O.UI)(Ui,function(hr){return hr.dataIndex>=0?hr.value:hr.text}).reverse(),"GT"===Fi.type&&(oi=oi.slice(1)),oi.join("/")===Bi.join("/"))return Mn.sorted=!0,!1;var Ui,Bi,oi,Fi,Zi,nr}),Mn.text=(Ui=ut,Bi=(pi=Mn).text,(0,w.$K)(pi.displayText)?Bi=pi.displayText:(0,w.$K)(pi.caption)?Bi=pi.caption:"GT"===pi.type&&(Bi=Ui.texts.grandTotal),pi.isAdditionalTotal&&(Bi=(0,Yo.WU)(Ui.texts.total||"",Bi)),Bi)}else{var si=(un[1]?un[1].children:on)||[];si.splice(si.indexOf(Mn),1)}})).done(function(){on.length||on.push({}),ut.notifyProgress(1),En.resolve(on)})})}),En}(ue,we,Le,Gt,ut).done(function(En){(function(on,Nt,Jt,un,Mn){var si,Kn=0,pi=[0];Qs(Nt,function(yi){var Ui=yi[0];for(si=Ui.isMetric?Jt:yi.length-1;pi.length-1<si;)pi.push(pi[pi.length-1]);Kn=function(ue,we){var ut,It,Gt,ln,En;return function(ut,It,Gt,ln,En){for(var on=En?ln:Gt;!ut[on];)ut.push([]);En?ut[on].push(It):ut[on].unshift(It)}(ue,(It=we.lastIndex-we.index||1,Gt=we.isHorizontal,ln=we.isTree,En={type:(ut=we.headerItem).type,text:ut.text},ut.path&&(En.path=ut.path),ut.width&&(En.width=ut.width),(0,w.$K)(ut.wordWrapEnabled)&&(En.wordWrapEnabled=ut.wordWrapEnabled),ut.isLast&&(En.isLast=!0),ut.sorted&&(En.sorted=!0),ut.isMetric&&(En.dataIndex=ut.dataIndex),(0,w.$K)(ut.expanded)&&(En.expanded=ut.expanded),It>1&&(En[Gt?"colspan":"rowspan"]=It),ut.depthSize&&ut.depthSize>1&&(En[Gt?"rowspan":"colspan"]=ut.depthSize),ut.index>=0&&(En.dataSourceIndex=ut.index),ln&&ut.children&&ut.children.length&&!ut.children[0].isMetric&&(En.width=null,En.isWhiteSpace=!0),En),we.index,we.depth,we.isHorizontal),we.headerItem.children&&0!==we.headerItem.children.length?we.lastIndex:we.lastIndex+1}(on,{headerItem:Ui,index:pi[si]||0,lastIndex:Kn,depth:si,isHorizontal:un,isTree:Mn}),pi.length=si,pi.push(Kn)})})(It,En,Gt,Ue,"tree"===ut.layout),ut.notifyProgress(1),ln.resolve(It)}),ln}}();function e(A,z){var Q=[];return(0,O.S6)(A,function(ue,we){var Le=ey(z,we.sortBySummaryField);Le>=0&&Q.push((we.sortBySummaryPath||[]).concat([Le]))}),Q}function i(A,z){for(var Q=0,ue=[],we=0;we<A.length;we++)for(var Le=0;Le<A[we].length;Le++){var ut=we+((A[we][Le].rowspan||1)-1);if(ue[we]&&(Q-=ue[we],ue[we]=0),!1===z(A[we][Le],ut,we,Le,Q))break;ue[we+(A[we][Le].rowspan||1)]=(ue[we+(A[we][Le].rowspan||1)]||0)+1,Q++}}function r(A,z){var Q=0,ue=[];return Qs(A,function(we){var Le=we[0],Ue=Yu(we);if(!Le.children||!1!==z.showTotals){var ut=(0,y.l)(!0,{},Le,{visibleIndex:Q++,path:Ue});(0,w.$K)(ut.index)?ue[ut.index]=ut:ue.push(ut)}}),ue}function v(A,z,Q){return new RX.z(z,(0,y.l)({hasKnownLastPage:function(){return!0},pageCount:function(){return EP.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 A.isLoading()},changingDuration:function(){return A._dataSource.paginate()?300:A._changingDuration||0}},Q))}var D={ctor:function(A){var z=this,Q=z._fireChanged.bind(z);A=z._options=A||{},z.dataSourceChanged=(0,Pp.Z)(),z._dataSource=z._createDataSource(A),A.component&&"virtual"===A.component.option("scrolling.mode")&&(z._rowsScrollController=v(z,A.component,{totalItemsCount:function(){return z.totalRowCount()},pageIndex:function(ue){return z.rowPageIndex(ue)},pageSize:function(){return z.rowPageSize()},load:function(){return z._rowsScrollController.pageIndex()>=this.pageCount()&&z._rowsScrollController.pageIndex(this.pageCount()-1),z._rowsScrollController.handleDataChanged(function(){z._dataSource.paginate()?z._dataSource.load():Q.apply(this,arguments)})}}),z._columnsScrollController=v(z,A.component,{totalItemsCount:function(){return z.totalColumnCount()},pageIndex:function(ue){return z.columnPageIndex(ue)},pageSize:function(){return z.columnPageSize()},load:function(){return z._columnsScrollController.pageIndex()>=this.pageCount()&&z._columnsScrollController.pageIndex(this.pageCount()-1),z._columnsScrollController.handleDataChanged(function(){z._dataSource.paginate()?z._dataSource.load():Q.apply(this,arguments)})}})),z._stateStoringController=new LX.G(A.component).init(),z._columnsInfo=[],z._rowsInfo=[],z._cellsInfo=[],z.expandValueChanging=(0,Pp.Z)(),z.loadingChanged=(0,Pp.Z)(),z.progressChanged=(0,Pp.Z)(),z.scrollChanged=(0,Pp.Z)(),z.load(),z._update(),z.changed=(0,Pp.Z)()},_fireChanged:function(){var A=new Date;this.changed&&!this._lockChanged&&this.changed.fire(),this._changingDuration=new Date-A},_correctSkipsTakes:function(A,z,Q,ue,we,Le){var Ue=Q?A+Q-1:A;we[ue.length]=we[ue.length]||0,Le[ue.length]=Le[ue.length]||0,Ue<z?we[ue.length]++:Le[ue.length]++},_calculatePagingForRowExpandedPaths:function(A,z,Q,ue,we){var ln,En,on,Le=this._rowsInfo,Ue=Math.min(A.rowSkip+A.rowTake,Le.length),It=[],Gt={};for(A.rowExpandedPaths.forEach((un,Mn)=>{Gt[un]=Mn}),ln=0;ln<Ue;ln++){for(Q.length=z.length=It.length+1,En=0;En<Le[ln].length;En++){var Nt=Le[ln][En];if("D"===Nt.type){this._correctSkipsTakes(ln,A.rowSkip,Nt.rowspan,It,z,Q);var Jt=(on=Nt.path||on)&&on.length>1?Gt[on.slice(0,-1)]:-1;Jt>=0&&(ue[Jt]=z[It.length]||0,we[Jt]=Q[It.length]||0),Nt.rowspan&&It.push(Nt.rowspan)}}It=It.map(un=>un-1).filter(un=>un>0)}},_calculatePagingForColumnExpandedPaths:function(A,z,Q,ue,we){var Le={},Ue={};(0,gP.L)(this._columnsInfo,function(ut,It){if("D"===ut.type&&ut.path&&void 0===ut.dataIndex){var Gt=ut.colspan||1,ln=ut.path.slice(0,-1).toString();Le[ln]=Le[ln]||0,Ue[ln]=Ue[ln]||0,It+Gt<=A.columnSkip?Le[ln]++:It<A.columnSkip+A.columnTake&&Ue[ln]++}}),z[0]=Le[""],Q[0]=Ue[""],A.columnExpandedPaths.forEach(function(ut,It){var Gt=Le[ut],ln=Ue[ut];void 0!==Gt&&(ue[It]=Gt),void 0!==ln&&(we[It]=ln)})},_processPagingForExpandedPaths:function(A,z,Q,ue){var we=A[z+"ExpandedPaths"],Le=we.map(()=>0),Ue=we.map(()=>ue?A.pageSize:0),ut=[],It=[];ue||("row"===z?this._calculatePagingForRowExpandedPaths(A,ut,It,Le,Ue):this._calculatePagingForColumnExpandedPaths(A,ut,It,Le,Ue)),this._savePagingForExpandedPaths(A,z,Q,ut[0],It[0],Le,Ue)},_savePagingForExpandedPaths:function(A,z,Q,ue,we,Le,Ue){var ut=A[z+"ExpandedPaths"];A[z+"ExpandedPaths"]=[],A[z+"Skip"]=void 0!==ue?ue:A[z+"Skip"],A[z+"Take"]=void 0!==we?we:A[z+"Take"];for(var It=0;It<ut.length;It++)Ue[It]&&Q.push((0,y.l)({area:z,headerName:z+"s"},A,{[z+"Skip"]:Le[It],[z+"Take"]:Ue[It],[A.area&&A.area!==z?"oppositePath":"path"]:ut[It]}))},_handleCustomizeStoreLoadOptions:function(A,z){var Q=A[0],ue=this._rowsScrollController;if(this._dataSource.paginate()&&ue){var we=ue.pageSize();"rows"===Q.headerName?(Q.rowSkip=0,Q.rowTake=we,Q.rowExpandedPaths=[]):(Q.rowSkip=ue.beginPageIndex()*we,Q.rowTake=(ue.endPageIndex()-ue.beginPageIndex()+1)*we,this._processPagingForExpandedPaths(Q,"row",A,z))}var Le=this._columnsScrollController;if(this._dataSource.paginate()&&Le){var Ue=Le.pageSize();A.forEach((ut,It)=>{"columns"===ut.headerName?(ut.columnSkip=0,ut.columnTake=Ue,ut.columnExpandedPaths=[]):(ut.columnSkip=Le.beginPageIndex()*Ue,ut.columnTake=(Le.endPageIndex()-Le.beginPageIndex()+1)*Ue,this._processPagingForExpandedPaths(ut,"column",A,z))})}},load:function(){var A=this,z=this._stateStoringController;z.isEnabled()&&!z.isLoaded()?z.load().always(function(Q){Q?A._dataSource.state(Q):A._dataSource.load()}):A._dataSource.load()},calculateVirtualContentParams:function(A){var z=this._rowsScrollController,Q=this._columnsScrollController;if(z&&Q)return z.viewportItemSize(A.virtualRowHeight),z.viewportSize(A.viewportHeight/z.viewportItemSize()),z.setContentItemSizes(A.itemHeights),Q.viewportItemSize(A.virtualColumnWidth),Q.viewportSize(A.viewportWidth/Q.viewportItemSize()),Q.setContentItemSizes(A.itemWidths),(0,E.Su)(function(){Q.loadIfNeed(),z.loadIfNeed()}),this.scrollChanged.fire({left:Q.getViewportPosition(),top:z.getViewportPosition()}),{contentTop:z.getContentOffset(),contentLeft:Q.getContentOffset(),width:Q.getVirtualContentSize(),height:z.getVirtualContentSize()}},setViewportPosition:function(A,z){this._rowsScrollController.setViewportPosition(z||0),this._columnsScrollController.setViewportPosition(A||0)},subscribeToWindowScrollEvents:function(A){this._rowsScrollController&&this._rowsScrollController.subscribeToWindowScrollEvents(A)},updateWindowScrollPosition:function(A){this._rowsScrollController&&this._rowsScrollController.scrollTo(A)},updateViewOptions:function(A){(0,y.l)(this._options,A),this._update()},_handleExpandValueChanging:function(A){this.expandValueChanging.fire(A)},_handleLoadingChanged:function(A){this.loadingChanged.fire(A)},_handleProgressChanged:function(A){this.progressChanged.fire(A)},_handleFieldsPrepared:function(A){this._options.onFieldsPrepared&&this._options.onFieldsPrepared(A)},_createDataSource:function(A){var ue,z=this,Q=A.dataSource;return z._isSharedDataSource=Q instanceof s9,ue=z._isSharedDataSource?Q:new s9(Q),z._expandValueChangingHandler=z._handleExpandValueChanging.bind(z),z._loadingChangedHandler=z._handleLoadingChanged.bind(z),z._fieldsPreparedHandler=z._handleFieldsPrepared.bind(z),z._customizeStoreLoadOptionsHandler=z._handleCustomizeStoreLoadOptions.bind(z),z._changedHandler=function(){z._update(),z.dataSourceChanged.fire()},z._progressChangedHandler=function(we){z._handleProgressChanged(.8*we)},ue.on("changed",z._changedHandler),ue.on("expandValueChanging",z._expandValueChangingHandler),ue.on("loadingChanged",z._loadingChangedHandler),ue.on("progressChanged",z._progressChangedHandler),ue.on("fieldsPrepared",z._fieldsPreparedHandler),ue.on("customizeStoreLoadOptions",z._customizeStoreLoadOptionsHandler),ue},getDataSource:function(){return this._dataSource},isLoading:function(){return this._dataSource.isLoading()},beginLoading:function(){this._dataSource.beginLoading()},endLoading:function(){this._dataSource.endLoading()},_update:function(){var Kn,A=this,z=A._dataSource,Q=A._options,ue=z.getAreaFields("column"),we=z.getAreaFields("row"),Le=z.getAreaFields("data"),Ue="row"===Q.dataFieldArea?Le:[],ut="row"!==Q.dataFieldArea?Le:[],It=z.getData(),Gt=(Kn=[],(0,O.S6)(Le,function(Xn,si){!1===si.showTotals&&Kn.push(Xn)}),Kn),ln=function(Mn){var Kn=[];return Mn.forEach(function(Xn,si){(void 0===Xn.showValues&&!1===Xn.showTotals||!1===Xn.showValues)&&Kn.push(si)}),Kn}(Le),En=function(Mn,Kn){var Xn=[];return(0,O.S6)(Mn,function(si,pi){!1===pi.showGrandTotals&&Xn.push(si)}),0===Kn.length&&Xn.length===Mn.length&&(Xn=[]),Xn}(Le,ue),on=!(Le.length>0)||En.length!==Le.length,Nt={isEmptyGrandTotal:It.isEmptyGrandTotalRow,texts:Q.texts||{},hiddenTotals:Gt,hiddenValues:ln,hiddenGrandTotals:[],showTotals:Q.showRowTotals,showGrandTotals:!1!==Q.showRowGrandTotals&&on,sortBySummaryPaths:e(ue,Le),showTotalsPrior:"rows"===Q.showTotalsPrior||"both"===Q.showTotalsPrior,showEmpty:!Q.hideEmptySummaryCells,layout:Q.rowHeaderLayout,fields:we,dataFields:Le,progress:0},Jt={isEmptyGrandTotal:It.isEmptyGrandTotalColumn,texts:Q.texts||{},hiddenTotals:Gt,hiddenValues:ln,hiddenGrandTotals:En,showTotals:Q.showColumnTotals,showTotalsPrior:"columns"===Q.showTotalsPrior||"both"===Q.showTotalsPrior,showGrandTotals:!1!==Q.showColumnGrandTotals&&on,sortBySummaryPaths:e(we,Le),showEmpty:!Q.hideEmptySummaryCells,fields:ue,dataFields:Le,progress:0},un=function(Mn){this.progress=Mn,A._handleProgressChanged(.8+.1*Nt.progress+.1*Jt.progress)};Nt.notifyProgress=un,Jt.notifyProgress=un,(0,w.$K)(It.grandTotalRowIndex)||(It.grandTotalRowIndex=r(It.rows,Nt).length),(0,w.$K)(It.grandTotalColumnIndex)||(It.grandTotalColumnIndex=r(It.columns,Jt).length),z._changeLoadingCount(1),(0,P.gx)(t(It.columns,ue,ut,!0,Jt),t(It.rows,we,Ue,!1,Nt)).always(function(){z._changeLoadingCount(-1)}).done(function(Mn,Kn){A._columnsInfo=Mn,A._rowsInfo=Kn,A._rowsScrollController&&A._columnsScrollController&&A.changed&&!A._dataSource.paginate()&&(A._rowsScrollController.reset(!0),A._columnsScrollController.reset(!0),A._lockChanged=!0,A._rowsScrollController.load(),A._columnsScrollController.load(),A._lockChanged=!1)}).done(function(){A._fireChanged(),A._stateStoringController.isEnabled()&&!A._dataSource.isLoading()&&(A._stateStoringController.state(A._dataSource.state()),A._stateStoringController.save())})},getRowsInfo:function(A){var ue,z=this._rowsInfo,Q=this._rowsScrollController;if(Q&&!A){var we=Q.beginPageIndex()*this.rowPageSize(),Le=Q.endPageIndex()*this.rowPageSize()+this.rowPageSize(),Ue=[],ut=1;return i(z,function(It,Gt,ln,En,on){var Jt=ln<we?0:ln-we,un=It;if(!(Gt>=we&&ln<Le))return!1;Ue[Jt]=Ue[Jt]||[],we+Jt+(ue=ln<we?It.rowspan-(we-ln)||1:It.rowspan)>Le&&(ue=Le-(Jt+we)||1),ue!==It.rowspan&&(un=(0,y.l)({},un,{rowspan:ue})),Ue[Jt].push(un),ut=EP.max(ut,on+1)}),i(Ue,function(It,Gt,ln,En,on){on+(It.colspan||1)>ut&&(Ue[ln][En]=(0,y.l)({},It,{colspan:ut-on||1}))}),Ue}return z},getColumnsInfo:function(A){var z=this._columnsInfo,Q=this._columnsScrollController;if(Q&&!A){var ue=Q.beginPageIndex()*this.columnPageSize(),we=Q.endPageIndex()*this.columnPageSize()+this.columnPageSize();z=(0,gP.P)(z,ue,we)}return z},totalRowCount:function(){return this._rowsInfo.length},rowPageIndex:function(A){return void 0!==A&&(this._rowPageIndex=A),this._rowPageIndex||0},totalColumnCount:function(){var A=0;if(this._columnsInfo&&this._columnsInfo.length)for(var z=0;z<this._columnsInfo[0].length;z++)A+=this._columnsInfo[0][z].colspan||1;return A},rowPageSize:function(A){return void 0!==A&&(this._rowPageSize=A),this._rowPageSize||20},columnPageSize:function(A){return void 0!==A&&(this._columnPageSize=A),this._columnPageSize||20},columnPageIndex:function(A){return void 0!==A&&(this._columnPageIndex=A),this._columnPageIndex||0},getCellsInfo:function(A){var Le,Ue,ut,It,ln,En,on,Nt,z=this.getRowsInfo(A),Q=this.getColumnsInfo(A),ue=this._dataSource.getData(),we=this._options.texts||{};return Le=z,Ue=Q,ut=ue,It=this._dataSource.getAreaFields("data"),ln=we.dataNotAvailable,En=[],on="row"===this._options.dataFieldArea,(Nt=ut.values).length&&i(Le,function(Jt,un){var Mn=En[un]=[],Kn=Nt[Jt.dataSourceIndex>=0?Jt.dataSourceIndex:ut.grandTotalRowIndex]||[];Jt.isLast&&(0,gP.L)(Ue,function(Xn,si){var pi=(on?Jt.dataIndex:Xn.dataIndex)||0,yi=It[pi];if(Xn.isLast&&yi&&!1!==yi.visible){var Ui=Kn[Xn.dataSourceIndex>=0?Xn.dataSourceIndex:ut.grandTotalColumnIndex];Array.isArray(Ui)||(Ui=[Ui]);var Bi=Ui[pi];Mn[si]={text:n(Bi,yi,ln),value:Bi,format:yi.format,dataType:yi.dataType,columnType:Xn.type,rowType:Jt.type,rowPath:Jt.path||[],columnPath:Xn.path||[],dataIndex:pi},yi.width&&(Mn[si].width=yi.width)}})}),En},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 Xb(D,"applyPartialDataSource"),Xb(D,"collapseHeaderItem"),Xb(D,"expandHeaderItem"),Xb(D,"getData"),Xb(D,"isEmpty"),D}()),vq=function(n){var t=0,e=n.offsetWidth;if(n.getBoundingClientRect){var i=(0,Zo.l)(n);(t=i.width)||(t=i.right-i.left),t<=e-1&&(t=e)}return t>0?t:e};function u9(n,t,e,i){var r=0,v=0,D=e/2;return n+i-(t+e)>1?(n>=t+e+D&&(v=parseInt((n-(t+e))/D,10)),r=t+e+D*v):n<t?(n<=t-D&&(v=parseInt((n-(t-D))/D,10)),r=t-(e-D*v)):r=t,r}var SP=ir.Z.inherit({ctor:function(n){this.component=n},option:function(){return this.component.option.apply(this.component,arguments)},_getRowElement:function(n){return this._tableElement&&this._tableElement.length>0?this._tableElement[0].rows[n]:null},_createGroupElement:function(){return(0,u.Z)("<div>")},_createTableElement:function(){return(0,u.Z)("<table>")},_getCellText:function(n,t){var e=n.isWhiteSpace?"&nbsp":n.text||"&nbsp";return t&&(-1!==e.indexOf("<")||-1!==e.indexOf(">"))&&(e=(0,u.Z)("<div>").text(e).html()),e},_getRowClassNames:function(){},_applyCustomStyles:function(n){n.cell.width&&n.cssArray.push("min-width:"+n.cell.width+"px"),n.cell.sorted&&n.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"<tbody>"},_getCloseMainElementMarkup:function(){return"</tbody>"},_renderTableContent:function(n,t){var i,r,v,D,A,we,e=t.length,z=this.option("rtlEnabled"),Q=[],ue=this.option("encodeHtml");for(n.data("area",this._getAreaName()),n.data("data",t),n.css("width",""),Q.push(this._getMainElementMarkup()),v=0;v<e;v++){i=t[v];var Le=[];for(we=[],Q.push("<tr "),D=0;D<i.length;D++){if(this._getRowClassNames(v,r=i[D],we),Le.push("<td "),r){r.rowspan&&Le.push("rowspan='"+(r.rowspan||1)+"'"),r.colspan&&Le.push("colspan='"+(r.colspan||1)+"'");var Ue={cellElement:void 0,cell:r,cellsCount:i.length,cellIndex:D,rowElement:void 0,rowIndex:v,rowsCount:e,rtlEnabled:z,classArray:[],cssArray:[]};this._applyCustomStyles(Ue),Ue.cssArray.length&&(Le.push("style='"),Le.push(Ue.cssArray.join(";")),Le.push("'")),Ue.classArray.length&&(Le.push("class='"),Le.push(Ue.classArray.join(" ")),Le.push("'")),Le.push(">"),(0,w.$K)(r.expanded)&&Le.push("<div class='dx-expand-icon-container'><span class='dx-expand'></span></div>"),A=this._getCellText(r,ue)}else A="";Le.push("<span "),(0,w.$K)(r.wordWrapEnabled)&&Le.push("style='white-space:",r.wordWrapEnabled?"normal":"nowrap",";'"),Le.push(">"+A+"</span>"),r.sorted&&Le.push("<span class='dx-icon-sorted'></span>"),Le.push("</td>")}we.length&&(Q.push("class='"),Q.push(we.join(" ")),Q.push("'")),Q.push(">"),Q.push(Le.join("")),Q.push("</tr>")}Q.push(this._getCloseMainElementMarkup()),n.append(Q.join("")),this._triggerOnCellPrepared(n,t)},_triggerOnCellPrepared:function(n,t){var D,A,z,ue,we,Le,Ue,e=n.find("tr"),i=this._getAreaName(),r=this.option("onCellPrepared"),v=this.component._eventsStrategy.hasEvent("cellPrepared"),Q=this.component._defaultActionArgs();if(r||v)for(Le=0;Le<t.length;Le++)for(ue=t[Le],D=e.eq(Le),Ue=0;Ue<ue.length;Ue++)we=ue[Ue],A=D.children().eq(Ue),z={area:i,rowIndex:Le,columnIndex:Ue,cellElement:(0,S.u)(A),cell:we},v?this.component._trigger("onCellPrepared",z):r((0,y.l)(z,Q))},_getRowHeight:function(n){var t=this._getRowElement(n),e=0,i=t.offsetHeight;return t&&t.lastChild?(t.getBoundingClientRect&&(e=(0,Zo.l)(t).height)<=i-1&&(e=i),e>0?e:i):0},_setRowHeight:function(n,t){var e=this._getRowElement(n);e&&(e.style.height=t+"px")},getRowsLength:function(){return this._tableElement&&this._tableElement.length>0?this._tableElement[0].rows.length:0},getRowsHeight:function(){var e,n=[],t=this.getRowsLength();for(e=0;e<t;e++)n.push(this._getRowHeight(e));return n},setRowsHeight:function(n){var i,t=0,e=n.length;for(i=0;i<e;i++)t+=n[i],this._setRowHeight(i,n[i]);this._tableHeight=t,this._tableElement[0].style.height=t+"px"},getColumnsWidth:function(){var t,e,i,r,n=this.getRowsLength(),v=[],D=[],A=function(z,Q,ue,we,Le){var Ue,ut;for(Ue=0;Ue<we;Ue++)for(ut=0;ut<Le;ut++)z[Q+Ue]=z[Q+Ue]||[],z[Q+Ue][ue+ut]=!0};if(n)for(t=0;t<n;t++)for(v[t]=v[t]||[],e=this._getRowElement(t),i=0;i<e.cells.length;i++){for(r=0;v[t][r];r++);A(v,t,r,e.cells[i].rowSpan,e.cells[i].colSpan),1===e.cells[i].colSpan&&(D[r]=D[r]||vq(e.cells[i]))}return D},setColumnsWidth:function(n){var t,e=this._tableElement[0],i="",r=this.getColumnsCount(),v=[];for(t=0;t<r;t++)v.push(n[t]||0);for(t=r;t<n.length&&n;t++)v[r-1]+=n[t];for(t=0;t<r;t++)i+='<col style="width: '+v[t]+'px">';this._colgroupElement.html(i),this._tableWidth=v.reduce((D,A)=>D+A,0),e.style.width=this._tableWidth+"px",e.style.tableLayout="fixed"},resetColumnsWidth:function(){(0,s.cl)(this._colgroupElement.find("col"),"auto"),this._tableElement.css({width:"",tableLayout:""})},setGroupWidth:function(n){this._getScrollable().option("width",n)},setGroupHeight:function(n){this._getScrollable().option("height",n)},getGroupHeight:function(){return this._getGroupElementSize("height")},getGroupWidth:function(){return this._getGroupElementSize("width")},_getGroupElementSize(n){var t=this.groupElement()[0].style[n];return t.indexOf("px")>0?parseFloat(t):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(n){this.option("rtlEnabled")&&(n.right=n.left,delete n.left),this.tableElement().css(n)},setVirtualContentParams:function(n){this._virtualContent.css({width:n.width,height:n.height});var t=this._getScrollable();null!=t&&t.isRenovated()?this._getScrollable().option("classes","dx-virtual-mode"):this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){var n=this._getScrollable();null!=n&&n.isRenovated()?this._getScrollable().option("classes",""):this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){!this._virtualContent&&"virtual"===this.option("scrolling.mode")&&(this._virtualContent=(0,u.Z)("<div>").addClass("dx-virtual-content").insertBefore(this._tableElement))},reset:function(){var n=this._tableElement[0];if(this._fakeTable&&this._fakeTable.detach(),this._fakeTable=null,this.disableVirtualMode(),this.setGroupWidth("100%"),this.setGroupHeight("auto"),this.resetColumnsWidth(),n){for(var t=0;t<n.rows.length;t++)n.rows[t].style.height="";n.style.height="",n.style.width="100%"}},_updateFakeTableVisibility:function(){var n=this.tableElement()[0],t=this.option("rtlEnabled")?"right":"left",e=this._fakeTable[0];n.style.top===e.style.top&&e.style[t]===n.style[t]?this._fakeTable.addClass("dx-hidden"):this._fakeTable.removeClass("dx-hidden")},_moveFakeTableHorizontally:function(n){var e=this.option("rtlEnabled")?"right":"left",r=u9(n,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(n){var e=u9(n,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(n,t){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(n),this._rootElement=n;this._colgroupElement=(0,u.Z)("<colgroup>").appendTo(this._tableElement),this._renderTableContent(this._tableElement,t),this._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},_getMaxLeftOffset(n){var t=(0,u.Z)(n.container()).get(0);return t.scrollWidth-t.clientWidth},on:function(n,t){var e=this,i=e._getScrollable();return i&&i.on(n,function(r){e.option("rtlEnabled")&&(0,w.$K)(r.scrollOffset.left)&&(r.scrollOffset.left=e._getMaxLeftOffset(i)-r.scrollOffset.left),t(r)}),this},off:function(n){var t=this._getScrollable();return t&&t.off(n),this},scrollTo:function(n){var t=this._getScrollable(),e=n;t&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?e=this._getMaxLeftOffset(t)-n.left:"data"===this._getAreaName()&&(e={left:this._getMaxLeftOffset(t)-n.left,top:n.top})),t.scrollTo(e),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(n)))},updateScrollable:function(){var n=this._getScrollable();if(n)return n.update()},getColumnsCount:function(){var e,n=0,t=this._getRowElement(0);if(t)for(var i=0,r=(e=t.cells).length;i<r;++i)n+=e[i].colSpan;return n},getData:function(){var n=this._tableElement;return n?n.data("data"):[]}}),ry=l(4505),Eq=SP.inherit({_getAreaName:function(){return"data"},_createGroupElement:function(){return(0,u.Z)("<div>").addClass("dx-pivotgrid-area").addClass("dx-pivotgrid-area-data").css("borderTopWidth",0)},_applyCustomStyles:function(n){var t=n.cell,e=n.classArray;("T"===t.rowType||"T"===t.columnType)&&e.push("dx-total"),("GT"===t.rowType||"GT"===t.columnType)&&e.push("dx-grandtotal"),("T"===t.rowType||"GT"===t.rowType)&&e.push("dx-row-total"),n.rowIndex===n.rowsCount-1&&n.cssArray.push("border-bottom: 0px"),this.callBase(n)},_moveFakeTable:function(n){this._moveFakeTableHorizontally(n.x),this._moveFakeTableTop(n.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:n}=this.component.option("scrolling");return"auto"===n?!!ry.nativeScrolling:!!n},getScrollbarWidth:function(){return this.getUseNativeValue()?dB():0},updateScrollableOptions:function(n){var{direction:t,rtlEnabled:e}=n,i=this._getScrollable();i.option("useNative",this.getUseNativeValue()),i.option({direction:t,rtlEnabled:e})},getScrollableDirection:function(n,t){return n&&!t?"horizontal":!n&&t?"vertical":"both"},reset:function(){this.callBase(),this._virtualContent&&this._virtualContent.parent().css("height","auto")},setVirtualContentParams:function(n){this.callBase(n),this._virtualContent.parent().css("height",n.height),this._setTableCss({top:n.top,left:n.left})}}),qb=l(8487),d9="dx-expand-border",c9=!!qb.Z.IS_RENOVATED_WIDGET;function h9(n,t){if(t){var e=n.data().data,i=t.parentNode.rowIndex,r=t.cellIndex;return e[i]&&e[i][r]&&e[i][r].path}}var p9=SP.inherit({ctor:function(n){this.callBase(n),this._scrollBarWidth=0},_getAreaName:function(){return"column"},_getAreaClassName:function(){return"dx-pivotgrid-horizontal-headers"},_createGroupElement:function(){return(0,u.Z)("<div>").addClass(this._getAreaClassName()).addClass("dx-pivotgrid-area")},_applyCustomStyles:function(n){var t=n.cssArray,e=n.cell,i=n.rowsCount,r=n.classArray;n.cellIndex===n.cellsCount-1&&t.push((n.rtlEnabled?"border-left:":"border-right:")+"0px"),(e.rowspan===i-n.rowIndex||n.rowIndex+1===i)&&t.push("border-bottom-width:0px"),("T"===e.type||"GT"===e.type)&&r.push("dx-row-total"),"T"===n.cell.type&&r.push("dx-total"),"GT"===n.cell.type&&r.push("dx-grandtotal"),(0,w.$K)(e.expanded)&&r.push(e.expanded?"dx-pivotgrid-expanded":"dx-pivotgrid-collapsed"),this.callBase(n)},_getMainElementMarkup:function(){return"<thead class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</thead>"},setVirtualContentParams:function(n){this.callBase(n),this._setTableCss({left:n.left,top:0}),this._virtualContentWidth=n.width},hasScroll:function(){var n=this._virtualContent?this._virtualContentWidth:this._tableWidth,t=this.getGroupWidth();return!(!t||!n)&&n-t>=1},renderScrollable:function(){this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:"never",bounceEnabled:!1,direction:"horizontal",rtlEnabled:!!c9&&this.component.option("rtlEnabled"),updateManually:!0})},updateScrollableOptions:function(n){var{rtlEnabled:t}=n,e=this._getScrollable();c9&&e.option({rtlEnabled:t})},processScrollBarSpacing:function(n){var t=this.option("rtlEnabled")?"right":"left",e=this.getGroupWidth();e&&this.setGroupWidth(e-n),this._scrollBarWidth&&this._groupElement.next().remove(),this._groupElement.toggleClass("dx-vertical-scroll",n>0),(0,s.cl)(this._groupElement.css("float",t),this.getGroupHeight()),this._scrollBarWidth=n},getScrollPath:function(n){var e,t=this.tableElement();return n-=parseInt(t[0].style.left,10)||0,(0,O.S6)(t.find("td"),function(i,r){if(1===r.colSpan&&r.offsetLeft<=n&&r.offsetWidth+r.offsetLeft>n)return e=r,!1}),h9(t,e)},_moveFakeTable:function(n){this._moveFakeTableHorizontally(n),this.callBase()}}),Lq=p9.inherit({_getAreaClassName:function(){return"dx-pivotgrid-vertical-headers"},_applyCustomStyles:function(n){this.callBase(n),n.cellIndex===n.cellsCount-1&&n.classArray.push("dx-last-cell"),n.rowIndex===n.rowsCount-1&&n.cssArray.push("border-bottom: 0px"),n.cell.isWhiteSpace&&n.classArray.push("dx-white-space-column")},_getAreaName:function(){return"row"},setVirtualContentParams:function(n){this.callBase(n),this._setTableCss({top:n.top,left:0}),this._virtualContentHeight=n.height},hasScroll:function(){var n=this._virtualContent?this._virtualContentHeight:this._tableHeight,t=this.getGroupHeight();return!(!t||!n)&&n-t>=1},renderScrollable:function(){this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:"never",bounceEnabled:!1,direction:"vertical",updateManually:!0})},processScrollBarSpacing:function(n){var t=this.getGroupHeight();if(t&&this.setGroupHeight(t-n),this._scrollBarWidth&&this._groupElement.next().remove(),n){var e=(0,u.Z)("<div>");(0,s.cl)(e,"100%"),(0,s.QQ)(e,n-1),this._groupElement.after(e)}this._scrollBarWidth=n},getScrollPath:function(n){var e,t=this.tableElement();return n-=parseInt(t[0].style.top,10)||0,(0,O.S6)(t.find("tr"),function(i,r){var v=r.childNodes[r.childNodes.length-1];if(v&&1===v.rowSpan&&v.offsetTop<=n&&v.offsetHeight+v.offsetTop>n)return e=v,!1}),h9(t,e)},_moveFakeTable:function(n){this._moveFakeTableTop(n),this.callBase()},_getRowClassNames:function(n,t,e){0!==n&t.expanded&&!e.includes(d9)&&e.push(d9)},_getMainElementMarkup:function(){return"<tbody class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</tbody>"},updateColspans:function(n){var t=this.tableElement()[0].rows,e=0,i=[];if(!(this.getColumnsCount()-n>0))for(var r=0;r<t.length;r++)for(var v=0;v<t[r].cells.length;v++){var D=t[r].cells[v],A=D.rowSpan;i[r]&&(e-=i[r],i[r]=0);var z=n-(e+D.colSpan);v===t[r].cells.length-1&&z>0&&(D.colSpan=D.colSpan+z),i[r+A]=(i[r+A]||0)+D.colSpan,e+=D.colSpan}}}),g9=l(4356),OP=l(1074),Bq=l(4964),Fq=l(9813),f9=l(7078),{getSwatchContainer:Vq}=f9.Z,ID="dxSortable",m9="dx-sortable-old";function zq(n,t,e){return!(0,w.$K)(t.posHorizontal)||(e?n>t.posHorizontal:n<t.posHorizontal)}var y9=lo.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(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(n,t){var i,e=this.option("itemRender");return e?i=e(n,t):(i=n.clone()).css({width:(0,s.dz)(n),height:(0,s.Cr)(n)}),i},_renderIndicator:function(n,t,e,i){var r=(0,s.zp)(n,!0),v=(0,s.Y_)(n,!0),D=n.offset().top-e.offset().top,A=n.offset().left-e.offset().left;this._indicator.css({position:"absolute",top:i&&t?D+r:D,left:i&&!t?A+v:A}).toggleClass("dx-position-indicator-horizontal",!t).toggleClass("dx-position-indicator-vertical",!!t).toggleClass("dx-position-indicator-last",!!i).appendTo(e),(0,s.QQ)(this._indicator,""),(0,s.cl)(this._indicator,""),t?(0,s.cl)(this._indicator,v):(0,s.QQ)(this._indicator,r)},_renderDraggable:function(n){this._$draggable&&this._$draggable.remove(),this._$draggable=this._renderItem(n,"drag").addClass(this.option("dragClass")).appendTo(Vq(n)).css({zIndex:1e6,position:"absolute"})},_detachEventHandlers:function(){var n=[ls.pB,ls.BL,ls.ut,ls.IO,ls.Zu,ls.Cw].join(" ");d.Z.off(this._getEventListener(),(0,k.V4)(n,ID))},_getItemOffset:function(n,t,e){for(var i=0;i<t.length;i++){var r=void 0,v=e.pageY<t[i].posVertical;if(n?r=v:v&&!(r=zq(e.pageX,t[i],this.option("rtlEnabled")))&&t[i+1]&&t[i+1].posVertical>t[i].posVertical&&(r=!0),r)return t[i]}},_getEventListener:function(){var n=this.option("groupSelector"),t=this.$element();return n?t.find(n):t},_attachEventHandlers:function(){var z,Q,ue,we,Le,Ue,It,n=this,t=n.option("itemSelector"),e=n.option("itemContainerSelector"),i=n.option("groupSelector"),r=n.option("sourceClass"),v=n.option("targetClass"),D=n.option("onDragging"),A=n.option("groupFilter"),ut=n.$element(),Gt=null,ln=-1,En=function(){Gt&&Gt.dispose(),Gt=null};if(n._detachEventHandlers(),n.option("allowDragging")){var on=n._getEventListener();d.Z.on(on,(0,k.V4)(ls.BL,ID),t,function(Nt){var un,Jt=(z=(0,u.Z)(Nt.currentTarget)).closest(i);Ue=Jt.attr("group"),Q=function Wq(n,t){var e=-1,i=t.get(0);return(0,O.S6)(n,function(r,v){var D=(0,u.Z)(v);if(D.attr("item-group")&&D.attr("item-group")===n.eq(r-1).attr("item-group")||e++,v===i)return!1}),e===n.length?-1:e}((i?Jt:ut).find(t),z),z.attr("item-group")&&(z=Jt.find("[item-group='"+z.attr("item-group")+"']")),n._renderDraggable(z),ue=n._renderItem(z,"target").addClass(v),z.addClass(r),Le=[],(0,O.S6)(z,function(un,Mn){Le.push((0,u.Z)(Mn).offset())}),un=b.Z.getRootNode(n.$element().get(0)),It=i?A?(0,u.Z)(un).find(i).filter(A):ut.find(i):ut,n._indicator=(0,u.Z)("<div>").addClass("dx-position-indicator")}),d.Z.on(on,(0,k.V4)(ls.pB,ID),function(Nt){var Jt,un,Mn,nr;if(z){if(ln=-1,n._indicator.detach(),(0,O.S6)(n._$draggable,function(nr,hr){(0,u.Z)(hr).css({top:Le[nr].top+Nt.offset.y,left:Le[nr].left+Nt.offset.x})}),we&&we.removeClass(v),(we=function Uq(n,t){var e;return(0,O.S6)(t,function(){(function Hq(n,t,e){var i=(0,u.Z)(n),r=i.offset();if(t>=r.left&&t<=r.left+(0,s.Y_)(i,!0)&&e>=r.top&&e<=r.top+(0,s.zp)(i,!0))return!0})(this,n.pageX,n.pageY)&&(e=(0,u.Z)(this))}),e}(Nt,It))&&(nr={sourceGroup:Ue,sourceIndex:Q,sourceElement:z,targetGroup:we.attr("group"),targetIndex:we.find(t).index(ue)},D&&D(nr),nr.cancel&&(we=void 0)),we&&Gt&&we.get(0)!==Gt.element().get(0)&&En(),Gt&&Gt.moveIfNeed(Nt),!we)return void ue.detach();!Gt&&we.attr("allow-scrolling")&&(Gt=function Kq(n){var t=null,e=n.scrollTop(),i=n.$element(),r=i.offset().top,v=(0,s.Cr)(i),D=0;function A(ue){e=ue.scrollOffset.top}function z(){Q(),n.scrollTo(e+=D),t=setTimeout(z,10)}function Q(){clearTimeout(t)}return n.on("scroll",A),{moveIfNeed:function(ue){if(ue.pageY<=r+20)D=-2;else{if(!(ue.pageY>=r+v-20))return D=0,void Q();D=2}z()},element:function(){return i},dispose:function(){Q(),n.off("scroll",A)}}}(we.dxScrollable("instance"))),we.addClass(v);var Kn=we.find(e),Xn=Kn.find(t),si=we.closest("."+m9).data("dxSortableOld"),pi=si.option("useIndicator"),yi="vertical"===(si||n).option("direction"),Ui=function Zq(n,t,e){for(var i=[],r=[],v=0;v<n.length;v+=r.length)if((r=n.eq(v)).attr("item-group")&&(r=e.find("[item-group='"+r.attr("item-group")+"']")),r.is(":visible")){var D={item:r,index:i.length,posHorizontal:t?void 0:((0,s.Y_)(r.last(),!0)+r.last().offset().left+r.offset().left)/2};D.posVertical=t?(r.last().offset().top+r.offset().top+(0,s.zp)(r.last(),!0))/2:(0,s.zp)(r.last(),!0)+r.last().offset().top,i.push(D)}return i}(Xn,yi,Kn),Bi=n._getItemOffset(yi,Ui,Nt);if(Bi){if(Mn=Ui[Bi.index-1]&&Ui[Bi.index-1].item,(Jt=Bi.item).hasClass(r)||Mn&&Mn.hasClass(r)&&Mn.is(":visible"))return void ue.detach();if(ln=Bi.index,!pi)return void ue.insertBefore(Jt);var oi=we.attr("group")!==Ue,Fi=ln===Q,Zi=ln===Q+1;if(oi)return void n._renderIndicator(Jt,yi,we,n.option("rtlEnabled")&&!yi);!Fi&&!Zi&&n._renderIndicator(Jt,yi,we,n.option("rtlEnabled")&&!yi)}else{if((un=Xn.last()).is(":visible")&&un.hasClass(r))return;Kn.length&&(ln=Ui.length?Ui[Ui.length-1].index+1:0),pi?Xn.length&&n._renderIndicator(un,yi,we,!n.option("rtlEnabled")||yi):ue.appendTo(Kn)}}}),d.Z.on(on,(0,k.V4)(ls.ut,ID),function(){if(En(),z){var Nt=n.option("onChanged"),Jt={sourceIndex:Q,sourceElement:z,sourceGroup:Ue,targetIndex:ln,removeSourceElement:!0,removeTargetElement:!1,removeSourceClass:!0};we&&(we.removeClass(v),Jt.targetGroup=we.attr("group"),(Ue!==Jt.targetGroup||ln>-1)&&(Nt&&Nt(Jt),Jt.removeSourceElement&&z.remove())),n._indicator.detach(),Jt.removeSourceClass&&z.removeClass(r),z=null,n._$draggable.remove(),n._$draggable=null,Jt.removeTargetElement&&ue.remove(),ue.removeClass(v),ue=null}})}},_init:function(){this.callBase(),this._attachEventHandlers()},_render:function(){this.callBase(),this.$element().addClass(m9)},_dispose:function(){var n=this;n.callBase.apply(n,arguments),n._$draggable&&n._$draggable.detach(),n._indicator&&n._indicator.detach()},_optionChanged:function(n){switch(n.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(n)}},_useTemplates:function(){return!1}});(0,T.Z)("dxSortableOld",y9);const Gq=y9;var bh_targets_drag="drag",bh_classes_areaBox="dx-area-box",bh_classes_areaField="dx-area-field",bh_classes_fieldsContainer="dx-pivotgrid-fields-container",bh_classes_widget="dx-widget",bh_attrs_treeViewItem="tree-view-item";function Jq(n,t){var e=function Xq(n,t){var e=n.hasClass(bh_classes_areaBox),i=n.attr(bh_attrs_treeViewItem);return e?function $q(n,t){var e=n.clone();return t===bh_targets_drag&&(0,O.S6)(n,(i,r)=>{var v=parseInt((0,s.Y_)(r),10);e.eq(i).css("width",v)}),e}(n,t):i?function jq(n){return n.clone().addClass(bh_classes_areaBox).css("width",parseInt((0,s.Y_)(n)))}(n):function Yq(n){return(0,u.Z)("<div>").addClass(bh_classes_areaField).addClass(bh_classes_areaBox).text(n.text())}(n)}(n,t);return t===bh_targets_drag?function qq(n){return(0,u.Z)("<div>").addClass(bh_classes_fieldsContainer).addClass(bh_classes_widget).append(n)}(e):e}var Qq=OP.U3.inherit({_getSearchExpr:function(n){return n.useDefaultSearchExpr=!0,this.callBase(n)}});function DP(n,t){var e=t;return(0,w.$K)(t.groupIndex)&&(e=n.getAreaFields(t.area,!0)[t.areaIndex]),e}function x9(n){return n=n||{},JSON.stringify([n.fields,n.columnExpandedPaths,n.rowExpandedPaths])}var b9=sa.Z.inherit(Bq.Z).inherit(Fq.Z).inherit(OP.Tr).inherit({_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{allowFieldDragging:!0,applyChangesMode:"instantly",state:null,headerFilter:{width:252,height:325,searchTimeout:500,texts:{emptyValue:wn.Z.format("dxDataGrid-headerFilterEmptyValue"),ok:wn.Z.format("dxDataGrid-headerFilterOK"),cancel:wn.Z.format("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new Qq(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var n=this.option("dataSource");n&&n.fields&&n.load&&(this._dataSource=n)},_optionChanged:function(n){switch(n.name){case"dataSource":this._refreshDataSource();break;case"applyChangesMode":break;case"state":if(this._skipStateChange||!this._dataSource)break;"instantly"===this.option("applyChangesMode")&&x9(this._dataSource.state())!==x9(n.value)?this._dataSource.state(n.value):(this._clean(!0),this._renderComponent());break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(n)}},renderField:function(n,t){var e=(0,u.Z)("<div>").addClass("dx-area-field-content").text(n.caption||n.dataField),i=(0,u.Z)("<div>").addClass("dx-area-field").addClass("dx-area-box").data("field",n).append(e),r=DP(this._dataSource,n);return"data"!==n.area&&(n.allowSorting&&this._applyColumnState({name:"sort",rootElement:i,column:{alignment:this.option("rtlEnabled")?"right":"left",sortOrder:"desc"===n.sortOrder?"desc":"asc",allowSorting:n.allowSorting},showColumnLines:t}),this._applyColumnState({name:"headerFilter",rootElement:i,column:{alignment:this.option("rtlEnabled")?"right":"left",filterValues:r.filterValues,allowFiltering:r.allowFiltering&&!n.groupIndex,allowSorting:n.allowSorting},showColumnLines:t})),n.groupName&&i.attr("item-group",n.groupName),i},_clean:function(){},_render:function(){this.callBase(),this._headerFilterView.render(this.$element())},renderSortable:function(){var n=this;n._createComponent(n.$element(),Gq,(0,y.l)({allowDragging:n.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var t=n._dataSource,e=(0,u.Z)(this).closest(".dx-sortable-old"),i=e.data("dxPivotGrid"),r=e.data("dxPivotGridFieldChooser");return i?i.getDataSource()===t:!!r&&r.option("dataSource")===t},itemRender:Jq,onDragging:function(t){var e=t.sourceElement.data("field"),i=t.targetGroup;t.cancel=!1,!0===e.isMeasure?("column"===i||"row"===i||"filter"===i)&&(t.cancel=!0):!1===e.isMeasure&&"data"===i&&(t.cancel=!0)},useIndicator:!0,onChanged:function(t){var e=t.sourceElement.data("field");if(t.removeSourceElement=!!t.sourceGroup,n._adjustSortableOnChangedArgs(t),e){var r,i=t.targetIndex,v=0;n._processDemandState(D=>{var A=D.getAreaFields(e.area,!0);r=DP(D,e);var Q=A.filter(ue=>!1!==ue.visible)[i-1];Q&&(v=A.filter(ue=>!1===ue.visible&&ue.areaIndex<=Q.areaIndex).length)}),n._applyChanges([r],{area:t.targetGroup,areaIndex:i+v})}}},n._getSortableOptions()))},_processDemandState:function(n){var t="instantly"===this.option("applyChangesMode"),e=this._dataSource;if(t)n(e,t);else{var i=e.state(),r=this.option("state");r&&e.state(r,!0),n(e,t),e.state(i,!0)}},_applyChanges(n,t){var e=this;e._processDemandState(function(i,r){n.forEach(v=>{var{index:D}=v;i.field(D,t)}),r?i.load():e._changedHandler()})},_adjustSortableOnChangedArgs:function(n){n.removeSourceElement=!1,n.removeTargetElement=!0,n.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(n){var t=this;d.Z.on(n||t.$element(),g.u,".dx-area-field.dx-area-box",function(i){var r=(0,u.Z)(i.currentTarget).data("field"),v=(0,y.l)(!0,{},DP(t._dataSource,r)),D=(0,u.Z)(i.target).hasClass("dx-header-filter"),A=t._dataSource,z=v.groupName?"tree":"list",Q=A.paginate()&&"list"===z;D?t._headerFilterView.showHeaderFilterMenu((0,u.Z)(i.currentTarget),(0,y.l)(v,{type:z,encodeHtml:t.option("encodeHtml"),dataSource:{useDefaultSearch:!Q,load:function(ue){var we=ue.userData;if(we.store)return we.store.load(ue);var Le=new P.BH;return A.getFieldValues(v.index,t.option("headerFilter.showRelevantValues"),Q?ue:void 0).done(function(Ue){var ut=t.option("headerFilter.texts.emptyValue");Ue.forEach(It=>{It.text||(It.text=ut)}),Q?Le.resolve(Ue):(we.store=new Nb.Z(Ue),we.store.load(ue).done(Le.resolve).fail(Le.reject))}).fail(Le.reject),Le},postProcess:function(ue){return function(n,t){var e=[],i=!!t.groupName,r="exclude"===t.filterType;t.filterValues&&(0,O.S6)(t.filterValues,function(v,D){e.push(Array.isArray(D)?D.join("/"):D&&D.valueOf())}),Qs(n,function(v){var D=v[0],A=Yu(v),z=i?(0,O.UI)(v,function(ue){return ue.text}).reverse().join("/"):D.text;D.value=i?A.slice(0):D.key||D.value;var Q=i?A.join("/"):D.value&&D.value.valueOf();D.children&&(D.items=D.children,D.children=null),(0,OP.By)(D,D.key&&e.includes(z)||e.includes(Q),r)})}(ue,v),ue}},apply:function(){t._applyChanges([v],{filterValues:this.filterValues,filterType:this.filterType})}})):r.allowSorting&&"data"!==r.area&&t._applyChanges([r],{sortOrder:"desc"===r.sortOrder?"asc":"desc"})})},_initTemplates:E.ZT,addWidgetPrefix:function(n){return"dx-pivotgrid-"+n}});(0,T.Z)("dxPivotGridFieldChooserBase",b9);const w9=b9;var oy="<div>",MD=SP.inherit({ctor:function(n,t){this.callBase(n),this._area=t},_getAreaName:function(){return"fields"},_createGroupElement:function(){return(0,u.Z)(oy).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"+U8(this._area)+"Fields")},_renderButton:function(n){var t=this,e=(0,u.Z)("<td>").appendTo((0,u.Z)("<tr>").appendTo(n));t.component._createComponent((0,u.Z)(oy).appendTo(e),Jv.Z,{text:"Fields",icon:"menu",width:"auto",onClick:function(){var r=t.tableElement().find(".dx-fields-area-popup").dxPopup("instance");r.option("visible")||r.show()}}).$element().addClass("dx-pivotgrid-fields-area-hamburger")},_getPopupOptions:function(n,t){return{contentTemplate:function(){return(0,u.Z)("<table>").addClass("dx-area-field-container").append((0,u.Z)("<thead>").addClass("dx-pivotgrid-fields-area-head").append(n))},height:"auto",width:"auto",position:{at:"left",my:"left",of:t},dragEnabled:!1,animation:{show:{type:"pop",duration:200}},shading:!1,showTitle:!1,hideOnOutsideClick:!0,container:t.parent()}},_renderPopup:function(n,t){var e=n.find(".dx-button"),i=this._getPopupOptions(t,e),r=this.component.$element().dxPivotGridFieldChooserBase("instance");this._rowPopup&&this._rowPopup.$element().remove(),this._rowPopup=this.component._createComponent((0,u.Z)(oy).appendTo(n),Tp.Z,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(n,t){var e=this,i=this.groupElement(),r=this.isVisible(),v=e.component.$element().dxPivotGridFieldChooserBase("instance"),D=(0,u.Z)("<thead>").addClass("dx-pivotgrid-fields-area-head").appendTo(n),A=e._area,z=(0,u.Z)("<tr>");i.toggleClass("dx-hidden",!r),n.addClass("dx-area-field-container"),r&&((0,O.S6)(t,function(Q,ue){if(ue.area===A&&!1!==ue.visible){var we=(0,u.Z)("<td>").append(v.renderField(ue,"row"===ue.area)),Le=we.find(".dx-column-indicators");Le.length&&e._shouldCreateButton()&&Le.insertAfter(Le.next()),we.appendTo(z),function nJ(n,t,e,i){e&&e.groupName&&e.groupName===n.groupName&&(0,u.Z)(oy).addClass("dx-group-connector").addClass("dx-group-connector-prev").appendTo(i),t&&t.groupName&&t.groupName===n.groupName&&(0,u.Z)(oy).addClass("dx-group-connector").addClass("dx-group-connector-next").appendTo(i)}(ue,t[Q+1],t[Q-1],we)}}),z.children().length||(0,u.Z)("<td>").append((0,u.Z)(oy).addClass("dx-empty-area-text").text(this.option("fieldPanel.texts."+A+"FieldArea"))).appendTo(z),e._shouldCreateButton()?(e._renderButton(D),e._renderPopup(n,z)):D.append(z))},setGroupWidth:function(n){(0,g9.cl)(this.groupElement(),n)},setGroupHeight:function(n){(0,g9.QQ)(this.groupElement(),n)},reset:function(){this.callBase(),this.groupElement().css("marginTop",0)},_renderVirtualContent:E.ZT}),E9=l(7463),sl="<div>",iJ=(0,fi.Ym)(),S9="dx-pivotgridfieldchooser-container";function O9(n,t){var e=[];if(n.items)for(var i=0;i<n.items.length;i++)e.push.apply(e,O9(n.items[i],t));else(0,w.$K)(n.index)&&e.push(t[n.index]);return e}function TP(n,t){if(n.items)for(var e=0;e<n.items.length;e++){var i=TP(n.items[e],t);if(i)return i}if(t(n))return n}var D9=[function(n,t){return+!!t.isMeasure-!!n.isMeasure},function(n,t){return+!(!t.items||!t.items.length)-!(!n.items||!n.items.length)},function(n,t){return+!!(!1===n.isMeasure&&n.field&&n.field.levels&&n.field.levels.length)-!!(!1===t.isMeasure&&t.field&&t.field.levels&&t.field.levels.length)},cP(function(n){return n.text})];function sJ(n,t){for(var e=0,i=0;!e&&D9[i];)e=D9[i++](n,t);return e}function T9(n){return n.find(".dx-scrollable").dxScrollable("instance")}var I9=w9.inherit({_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{height:400,layout:0,dataSource:null,encodeHtml:!0,onContextMenuPreparing:null,allowSearch:!1,searchTimeout:500,texts:{columnFields:wn.Z.format("dxPivotGrid-columnFields"),rowFields:wn.Z.format("dxPivotGrid-rowFields"),dataFields:wn.Z.format("dxPivotGrid-dataFields"),filterFields:wn.Z.format("dxPivotGrid-filterFields"),allFields:wn.Z.format("dxPivotGrid-allFields")}})},_refreshDataSource:function(){var n=this;n._expandedPaths=[],n._changedHandler=n._changedHandler||function(){(0,O.S6)(n._dataChangedHandlers,function(t,e){e()}),n._fireContentReadyAction(),n._skipStateChange=!0,n.option("state",n._dataSource.state()),n._skipStateChange=!1},n._disposeDataSource(),n.callBase(),n._dataSource&&n._dataSource.on("changed",n._changedHandler)},_disposeDataSource:function(){var n=this._dataSource;n&&(n.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(n,t){this._actions[n](t)},_setOptionsByReference:function(){this.callBase(),(0,y.l)(this._optionsByReference,{dataSource:!0})},_optionChanged:function(n){switch(n.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[n.name]=this._createActionByOption(n.name);break;default:this.callBase(n)}},_clean:function(n){!n&&this._dataSource&&this.option("state",this._dataSource.state()),this.$element().children("."+S9).remove()},_renderLayout0:function(n){n.addClass("dx-layout-0");var t=(0,u.Z)(sl).addClass("dx-row").appendTo(n),e=(0,u.Z)(sl).addClass("dx-row").appendTo(n),i=(0,u.Z)(sl).addClass("dx-col").appendTo(t),r=(0,u.Z)(sl).addClass("dx-col").appendTo(t),v=(0,u.Z)(sl).addClass("dx-col").appendTo(e),D=(0,u.Z)(sl).addClass("dx-col").appendTo(e);this._renderArea(i,"all"),this._renderArea(r,"row"),this._renderArea(r,"column"),this._renderArea(v,"filter"),this._renderArea(D,"data")},_renderLayout1:function(n){var t=(0,u.Z)(sl).addClass("dx-col").appendTo(n),e=(0,u.Z)(sl).addClass("dx-col").appendTo(n);this._renderArea(t,"all"),this._renderArea(e,"filter"),this._renderArea(e,"row"),this._renderArea(e,"column"),this._renderArea(e,"data")},_renderLayout2:function(n){n.addClass("dx-layout-2");var t=(0,u.Z)(sl).addClass("dx-row").appendTo(n);this._renderArea(t,"all");var e=(0,u.Z)(sl).addClass("dx-row").appendTo(n),i=(0,u.Z)(sl).addClass("dx-col").appendTo(e),r=(0,u.Z)(sl).addClass("dx-col").appendTo(e);this._renderArea(i,"filter"),this._renderArea(i,"row"),this._renderArea(r,"column"),this._renderArea(r,"data")},_initMarkup:function(){var n=this.$element(),t=(0,u.Z)(sl).addClass(S9).appendTo(n),e=this.option("layout");this.callBase(),n.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(t):1===e?this._renderLayout1(t):this._renderLayout2(t),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(n){var i,r,t=(0,u.Z)(n.target).closest(".dx-area-field"),e=(0,u.Z)(n.target).closest(".dx-area-fields");if(t.length){var v=t.data("field");v&&(i=this.getDataSource().field(v.index)||v)}return e.length&&(r=e.attr("group")),{event:n,field:i,area:r,items:[]}},_renderContextMenu:function(){var n=this,t=n.$element();n._contextMenu&&n._contextMenu.$element().remove(),n._contextMenu=n._createComponent((0,u.Z)(sl).appendTo(t),Yv.Z,{onPositioning:function(e){var i=e.event;if(i){var r=n._getContextMenuArgs(i);n._trigger("onContextMenuPreparing",r),r.items&&r.items.length?e.component.option("items",r.items):e.cancel=!0}},target:t,onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:"dx-pivotgridfieldchooser-context-menu"})},_createTreeItems:function(n,t,e){var r,i=this,v=[],D=[],A=t[0],z={};return A?((0,O.S6)(n,function(Q,ue){var we=ue[A]||"";z[we]=z[we]||[],z[we].push(ue),void 0===r&&(r=!0),r=r&&!0===ue.isMeasure}),(0,O.S6)(z,function(Q,ue){var we=e?e+"."+Q:Q,Le=i._createTreeItems(ue,t.slice(1),we);Q?D.push({key:Q,text:Q,path:we,isMeasure:Le.isMeasure,expanded:i._expandedPaths.includes(we),items:Le}):v=Le}),(v=D.concat(v)).isMeasure=r):(0,O.S6)(n,function(Q,ue){var we;!0===ue.isMeasure&&(we="measure"),!1===ue.isMeasure&&(we=ue.groupName?"hierarchy":"dimension"),v.push({index:ue.index,field:ue,key:ue.dataField,selected:(0,w.$K)(ue.area),text:ue.caption||ue.dataField,icon:we,isMeasure:ue.isMeasure,isDefault:ue.isDefault})}),v},_createFieldsDataSource:function(n){var t=n&&n.fields()||[];t=t.filter(i=>!1!==i.visible&&!(0,w.$K)(i.groupIndex));var e=this._createTreeItems(t,["dimension","displayFolder"]);return hP(e,function(i){i.sort(sJ)},0,"items"),e},_renderFieldsTreeView:function(n){var t=this,e=t._dataSource,i=t._createComponent(n,E9.Z,{dataSource:t._createFieldsDataSource(e),showCheckBoxesMode:"normal",expandNodesRecursive:!1,searchEnabled:t.option("allowSearch"),searchTimeout:t.option("searchTimeout"),useNativeScrolling:!1,itemTemplate:function(r,v,D){var A=(0,u.Z)("<div>").toggleClass("dx-area-field",!r.items).attr(bh_attrs_treeViewItem,!0).data("field",r.field).appendTo(D);r.icon&&(0,W.H)(r.icon).appendTo(A),(0,u.Z)("<span>").text(r.text).appendTo(A)},onItemCollapsed:function(r){var v=t._expandedPaths.indexOf(r.itemData.path);v>=0&&t._expandedPaths.splice(v,1)},onItemExpanded:function(r){t._expandedPaths.indexOf(r.itemData.path)<0&&t._expandedPaths.push(r.itemData.path)},onItemSelectionChanged:function(r){var D,A,Q,v=r.itemData,z=!0;if(v.items){if(v.selected)return void i.unselectItem(v);if(t._processDemandState(()=>{A=O9(v,e.fields());for(var we=0;we<A.length;we++)if(A[we].area){z=!1;break}}),z){var ue=TP(v,function(we){return we.isDefault})||TP(v,function(we){return(0,w.$K)(we.index)});return void(ue&&i.selectItem(ue))}}else D=e.fields()[v.index],v.selected&&(Q=D.isMeasure?"data":"column"),D&&(A=[D]);t._applyChanges(A,{area:Q,areaIndex:void 0})}});t._dataChangedHandlers.push(function(){var r=T9(n),v=r?r.scrollTop():0;i.option({dataSource:t._createFieldsDataSource(e)}),(r=T9(n))&&(r.scrollTo({y:v}),r.update())})},_renderAreaFields:function(n,t){var e=this,i=e._dataSource,r=i?(0,y.l)(!0,[],i.getAreaFields(t,!0)):[];n.empty(),(0,O.S6)(r,function(v,D){!1!==D.visible&&e.renderField(D,!0).appendTo(n)})},_renderArea:function(n,t){var D,A,e=this,i=(0,u.Z)(sl).addClass("dx-area").appendTo(n),r=(0,u.Z)(sl).addClass("dx-area-fields-header").appendTo(i),v=e.option("texts."+t+"Fields");(0,u.Z)("<span>").addClass("dx-area-icon").addClass("dx-area-icon-"+t).appendTo(r),(0,u.Z)("<span>").html("&nbsp;").appendTo(r),(0,u.Z)("<span>").addClass("dx-area-caption").text(v).appendTo(r);var z=(0,u.Z)(sl).addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").appendTo(i);"all"!==t?(z.attr("group",t).attr("allow-scrolling",!0),D=(0,u.Z)(sl).addClass("dx-area-field-container").appendTo(z),A=function(){e._renderAreaFields(D,t)},e._dataChangedHandlers.push(A),A(),z.dxScrollable({useNative:!1})):(i.addClass("dx-all-fields"),z.addClass("dx-treeview-border-visible"),e._renderFieldsTreeView(z))},_getSortableOptions:function(){return{}},_adjustSortableOnChangedArgs:function(){},resetTreeView:function(){var n=this.$element().find(".dx-treeview").dxTreeView("instance");n&&(n.option("searchValue",""),n.collapseAll())},applyChanges:function(){var n=this.option("state");(0,w.$K)(n)&&this._dataSource.state(n)},cancelChanges:function(){var n=this._dataSource;return!n.isLoading()&&(this.option("state",n.state()),!0)},getDataSource:function(){return this._dataSource},updateDimensions:function(){this.$element().find(".dx-area .dx-scrollable").dxScrollable("update")},_visibilityChanged:function(n){n&&iJ&&this.updateDimensions()}});(0,T.Z)("dxPivotGridFieldChooser",I9);const M9=I9;var lJ=l(6314),dJ={exportToExcel:function(){(0,tl.xD)(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},tl.Ak.getData)},_getLength:function(n){var t,e=n[0].length,i=0;for(t=0;t<e;t++)i+=n[0][t].colspan||1;return i},_correctCellsInfoItemLengths:function(n,t){for(var e=0;e<n.length;e++)for(;n[e].length<t;)n[e].push({});return n},_calculateCellInfoItemLength:function(n){for(var t=0,e=0;e<n.length;e++)t+=(0,w.$K)(n[e].colspan)?n[e].colspan:1;return t},_getEmptyCell:function(){return{text:"",value:void 0,colspan:1,rowspan:1}},_getAllItems:function(n,t,e){var i,r,v=e,D=this._getLength(t),A=n.length;if(n.length>0&&n[0].length>0&&e.length>0&&0===e[0].length){var z=this._calculateCellInfoItemLength(n[0]);z>0&&(v=this._correctCellsInfoItemLengths(e,z))}var Q=n.concat(v);for(r=0;r<t.length;r++)for(i=t[r].length-1;i>=0;i--)(0,w.$K)(Q[r+A])||(Q[r+A]=[]),Q[r+A].splice(0,0,(0,y.l)({},t[r][i]));return Q[0].splice(0,0,(0,y.l)({},this._getEmptyCell(),{alignment:(0,Zo.q)(this._options.rtlEnabled),colspan:D,rowspan:A})),(0,lJ.$)(Q,this._getEmptyCell())},getDataProvider:function(){return new cJ(this)}},cJ=ir.Z.inherit({ctor:function(n){this._exportController=n},ready:function(){this._initOptions();var n=this._options;return(0,P.gx)(n.items).done(t=>{var i=t[t[0][0].rowspan-1];(0,O.S6)(i,(r,v)=>{v.width=100}),n.columns=i,n.items=t})},_initOptions:function(){var n=this._exportController,t=n._dataController,e=new P.BH;t.beginLoading(),setTimeout(function(){var i=(0,y.l)(!0,[],t.getColumnsInfo(!0)),r=(0,y.l)(!0,[],t.getRowsInfo(!0)),v=t.getCellsInfo(!0);e.resolve(n._getAllItems(i,r,v)),t.endLoading()}),this._options={items:e,rtlEnabled:n.option("rtlEnabled"),dataFields:n.getDataSource().getAreaFields("data"),customizeExcelCell:n.option("export.customizeExcelCell"),rowsArea:n._rowsArea,columnsArea:n._columnsArea}},getColumns:function(){return this._options.columns},getColumnsWidths:function(){var n=this._options.columnsArea,t=this._options.rowsArea,e=this._options.columns;return!(0,fi.Ym)()||"virtual"===n.option("scrolling.mode")||n.element().is(":hidden")?e.map(r=>100):t.getColumnsWidth().concat(n.getColumnsWidth())},getRowsCount:function(){return this._options.items.length},getGroupLevel:function(){return 0},getCellMerging:function(n,t){var e=this._options.items,i=e[n]&&e[n][t];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(n,t){var e=this.getStyles()[this.getStyleId(n,t)];return e&&e.dataType||"string"},getCellData:function(n,t,e){var i={},r=this._options.items,v=r[n]&&r[n][t]||{};if(e){i.cellSourceData=v;var D=this._tryGetAreaName(v,n,t);D&&(i.cellSourceData.area=D),i.cellSourceData.rowIndex=n,i.cellSourceData.columnIndex=t}return i.value="string"===this.getCellType(n,t)?v.text:v.value,i.cellSourceData&&i.cellSourceData.isWhiteSpace&&(i.value=""),i},_tryGetAreaName(n,t,e){return this.isColumnAreaCell(t,e)?"column":this.isRowAreaCell(t,e)?"row":(0,w.$K)(n.dataIndex)?"data":void 0},isRowAreaCell(n,t){return n>=this.getColumnAreaRowCount()&&t<this.getRowAreaColCount()},isColumnAreaCell(n,t){return t>=this.getRowAreaColCount()&&n<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:(0,Zo.q)(this._options.rtlEnabled),dataType:"string"}]},getDataFieldStyles(){var n=this._options.dataFields,t={alignment:this._options.rtlEnabled?"left":"right"},e=[];return n.length?(n.forEach(i=>{e.push((0,ui.Z)({},t,{format:i.format,dataType:this.getCellDataType(i)}))}),e):[t]},getStyles:function(){return this._styles||(this._styles=[...this.getHeaderStyles(),...this.getDataFieldStyles()]),this._styles},getCellDataType:function(n){if(n&&n.customizeText)return"string";if(n.dataType)return n.dataType;if(n.format){if(1===Xv.Z.parse(Fa.Z.format(1,n.format)))return"number";if(Fa.Z.format(new Date,n.format))return"date"}return"string"},getStyleId:function(n,t){var e=this._options.items,i=e[n]&&e[n][t]||{};return 0===t&&0===n||this.isColumnAreaCell(n,t)?0:this.isRowAreaCell(n,t)?1:this.getHeaderStyles().length+(i.dataIndex||0)},hasCustomizeExcelCell:function(){return(0,w.$K)(this._options.customizeExcelCell)},customizeExcelCell:function(n){this._options.customizeExcelCell&&this._options.customizeExcelCell(n)}}),hJ={number:"numeric",date:"datetime"},IP="dxPivotGridUnbinding";function P9(n,t){var e=[],i=t.length-1;return(0,O.S6)(n,function(r,v){e.push(v.text||dP(v.value,t[i-r]))}),e.reverse()}function k9(n){var t=0;return Qs(n,function(e){t=Math.max(t,e.length-1)}),t}function fJ(n,t){var e=n.getAreaFields("data");if("args"!==t.putDataFieldsInto&&"singleAxis"!==t.dataFieldsDisplayMode||1===e.length){var i=[];return(0,O.S6)(e,function(r,v){var D={name:v.caption,title:v.caption,valueType:hJ[v.dataType]||v.dataType,label:{format:v.format}};v.customizeText&&(D.label.customizeText=function(A){return v.customizeText.call(v,A)}),"splitPanes"===t.dataFieldsDisplayMode&&(D.pane=v.caption),i.push(D)}),i}return[{}]}function mJ(n,t){var e=[],i=n.getAreaFields("data");return i.length>1&&"splitPanes"===t.dataFieldsDisplayMode&&"args"!==t.putDataFieldsInto&&(0,O.S6)(i,function(r,v){e.push({name:v.caption})}),e.length||e.push({}),e}const CJ={bindChart:function(n,t){t=(0,y.l)({},t);var e=this,i=function(){t.grandTotalText=e.option("texts.grandTotal");var v=function _J(n,t){var e=t.customizeSeries,i=t.customizeChart,r={valueAxis:fJ(n,t),panes:mJ(n,t)},v={};return i&&(r=(0,y.l)(!0,{},r,i(r))),r.dataSource=function gJ(n,t,e){var Le,Ue,ut,It,Gt,ln,En,on,Nt,Jt,i=n.getData(),r=[],v=n.getAreaFields("data"),D=n.getAreaFields("row"),A=n.getAreaFields("column"),z=[{index:i.grandTotalColumnIndex,children:i.columns}],Q=[{index:i.grandTotalRowIndex,children:i.rows}],ue=k9(Q),we=k9(z);function un(){var pi,Xn=(i.values[ut]||[])[En]||[],si=Xn[Le],yi={rowPath:ln,maxRowLevel:ue,rowPathFormatted:Gt,rowFields:D,columnPathFormatted:Jt,maxColumnLevel:we,columnPath:Nt,columnFields:A,dataFields:v,dataIndex:Le,dataValues:Xn,visible:on&&It},Ui=(t.inverted?Jt:Gt).join(" - "),Bi=(t.inverted?Gt:Jt).join("/");v.length>1&&(("args"===t.putDataFieldsInto||"both"===t.putDataFieldsInto)&&(Bi+=" | "+Ue.caption),"args"!==t.putDataFieldsInto&&(Ui+=" | "+Ue.caption,"singleAxis"!==t.dataFieldsDisplayMode&&(pi=Ue.caption))),yi.chartDataItem={val:void 0===si?null:si,series:Ui,arg:Bi},yi=function pJ(n,t){var e=n.chartDataItem,i=t&&t(n);return i?(e=(0,y.l)({},e,i.chartDataItem),i=(0,y.l)({},n,i,{chartDataItem:e})):n}(yi,t.processCell),yi.visible&&(e[yi.chartDataItem.series]=e[yi.chartDataItem.series]||pi,r.push(yi.chartDataItem))}function Mn(Xn){Qs(Q,function(si){ut=si[0].index,si=si.slice(0,si.length-1),It=ue===si.length,ln=Yu(si),Gt=P9(si,D),0===ln.length&&(Gt=[t.grandTotalText]),Qs(z,function(pi){En=pi[0].index,pi=pi.slice(0,pi.length-1),on=we===pi.length,Nt=Yu(pi),Jt=P9(pi,A),0===Nt.length&&(Jt=[t.grandTotalText]),Xn()})})}function Kn(Xn){(0,O.S6)(v,function(si,pi){Ue=pi,Le=si,Xn()})}return!1===t.alternateDataFields?Kn(function(){Mn(un)}):Mn(function(){Kn(un)}),r}(n,t,v),r.seriesTemplate={nameField:"series",customizeSeries:function(D){var A={};return"splitPanes"===t.dataFieldsDisplayMode?A.pane=v[D]:"singleAxis"!==t.dataFieldsDisplayMode&&(A.axis=v[D]),e&&(A=(0,y.l)(A,e(D,A))),A}},r}(e.getDataSource(),t);n.option(v)};if(n=function vJ(n){if(!n)return!1;if(n.NAME)return"dxChart"===n.NAME&&n;var t=(0,u.Z)(n);return t.data("dxChart")&&t.dxChart("instance")}(n),!n)return null;(function yJ(n){var t=n.$element().data(IP);t&&t()})(n),e.on("changed",i),i();var r=function(){n.$element().removeData(IP),e.off("changed",i)};return n.on("disposing",r),this.on("disposing",r),n.$element().data(IP,r),r}};var R9=(0,fi.Jj)(),L9="dx-area-data-cell",MP="dx-area-row-cell",B9="dx-area-column-cell",AP="dx-area-description-cell",F9="dx-pivotgrid-border",V9="dx-pivotgrid",AD="dx-bottom-border",N9="dx-area-fields",H9="dx-incompressible-fields",PP="dx-overflow-hidden",PD="<tr>",ay="<td>",K0="<div>",W9=["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"];function kP(n){var t=0;return(0,O.S6)(n,function(e,i){t+=i||0}),t}function RP(n,t){for(var e=t/n.length,i=0;i<n.length;i++)n[i]-=e}function U9(n){n.off("scroll").off("stop")}function Z9(n,t){var e="width"===t?["borderLeftWidth","borderRightWidth"]:["borderTopWidth","borderBottomWidth"],i=0;return(0,O.S6)(n,function(r,v){var D=R9.getComputedStyle(v.get(0));e.forEach(function(A){i+=parseFloat(D[A])||0})}),i}var K9=sa.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(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:wn.Z.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:wn.Z.format("dxPivotGrid-columnFieldArea"),rowFieldArea:wn.Z.format("dxPivotGrid-rowFieldArea"),filterFieldArea:wn.Z.format("dxPivotGrid-filterFieldArea"),dataFieldArea:wn.Z.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:wn.Z.format("Loading"),width:200,height:70,showIndicator:!0,indicatorSrc:"",showPane:!0},texts:{grandTotal:wn.Z.format("dxPivotGrid-grandTotal"),total:wn.Z.getFormatter("dxPivotGrid-total"),noData:wn.Z.format("dxDataGrid-noDataText"),showFieldChooser:wn.Z.format("dxPivotGrid-showFieldChooser"),expandAll:wn.Z.format("dxPivotGrid-expandAll"),collapseAll:wn.Z.format("dxPivotGrid-collapseAll"),sortColumnBySummary:wn.Z.getFormatter("dxPivotGrid-sortColumnBySummary"),sortRowBySummary:wn.Z.getFormatter("dxPivotGrid-sortRowBySummary"),removeAllSorting:wn.Z.format("dxPivotGrid-removeAllSorting"),exportToExcel:wn.Z.format("dxDataGrid-exportToExcel"),dataNotAvailable:wn.Z.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:wn.Z.format("dxDataGrid-headerFilterEmptyValue"),ok:wn.Z.format("dxDataGrid-headerFilterOK"),cancel:wn.Z.format("dxDataGrid-headerFilterCancel")}}})},_updateCalculatedOptions:function(n){var t=this;(0,O.S6)(n,function(e,i){(0,O.S6)(W9,function(r,v){(void 0===i[v]||i._initProperties&&v in i._initProperties&&void 0===i._initProperties[v])&&Ap(i,v,t.option(v))})})},_getDataControllerOptions:function(){var n=this;return{component:n,dataSource:n.option("dataSource"),texts:n.option("texts"),showRowTotals:n.option("showRowTotals"),showRowGrandTotals:n.option("showRowGrandTotals"),showColumnTotals:n.option("showColumnTotals"),showTotalsPrior:n.option("showTotalsPrior"),showColumnGrandTotals:n.option("showColumnGrandTotals"),dataFieldArea:n.option("dataFieldArea"),rowHeaderLayout:n.option("rowHeaderLayout"),hideEmptySummaryCells:n.option("hideEmptySummaryCells"),onFieldsPrepared:function(t){n._updateCalculatedOptions(t)}}},_initDataController:function(){var n=this;n._dataController&&n._dataController.dispose(),n._dataController=new mq(n._getDataControllerOptions()),(0,fi.Ym)()&&n._dataController.changed.add(function(){n._render()}),n._dataController.scrollChanged.add(function(e){n._scrollLeft=e.left,n._scrollTop=e.top}),n._dataController.loadingChanged.add(function(e){n._updateLoading()}),n._dataController.progressChanged.add(n._updateLoading.bind(n)),n._dataController.dataSourceChanged.add(function(){n._trigger("onChanged")});var t=n.option("onExpandValueChanging");t&&n._dataController.expandValueChanging.add(function(e){t(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(n,t){this._actions[n](t)},_optionChanged:function(n){if(W9.indexOf(n.name)>=0){var t=this.getDataSource().fields();this._updateCalculatedOptions(t)}switch(n.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(n),this._renderFieldChooser(),this._renderContextMenu(),(0,fi.Ym)()&&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[n.name]=this._createActionByOption(n.name);break;case"fieldChooser":this._renderFieldChooser(),this._renderDescriptionArea();break;case"loadPanel":(0,fi.Ym)()&&("loadPanel.enabled"===n.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(F9,!!n.value),this.updateDimensions();break;case"wordWrapEnabled":this._tableElement().toggleClass("dx-word-wrap",!!n.value),this.updateDimensions();break;case"rowHeaderLayout":this._tableElement().find("."+MP).toggleClass("dx-area-tree-view","tree"===n.value),this._dataController.updateViewOptions(this._getDataControllerOptions());break;case"height":case"width":this._hasHeight=null,this.callBase(n),this.resize();break;default:this.callBase(n)}},_updateScrollPosition:function(n,t,e){var i,r,v=this._scrollTop||this._scrollLeft;this._scrollUpdating||(this._scrollUpdating=!0,t&&!t.hasScroll()&&this._hasHeight&&(this._scrollTop=null),n&&!n.hasScroll()&&(this._scrollLeft=null),(null!==this._scrollTop||null!==this._scrollLeft||v||this.option("rtlEnabled"))&&(e.scrollTo({left:r=this._scrollLeft||0,top:i=this._scrollTop||0}),n.scrollTo({left:r}),t.scrollTo({top:i}),this._dataController.updateWindowScrollPosition(this._scrollTop)),this._scrollUpdating=!1)},_subscribeToEvents:function(n,t,e){var i=this;(0,O.S6)([n,t,e],function(r,v){!function SJ(n,t){U9(n),n.on("scroll",t).on("stop",t)}(v,D=>{return Q=D.scrollOffset,we="vertical"!==(ue=v._getScrollable()).option("direction")?Q.left:i._scrollLeft,Le="horizontal"!==ue.option("direction")&&i._hasHeight?Q.top:i._scrollTop,void(((i._scrollLeft||0)!==(we||0)||(i._scrollTop||0)!==(Le||0))&&(i._scrollLeft=we,i._scrollTop=Le,i._updateScrollPosition(n,t,e),"virtual"===i.option("scrolling.mode")&&i._dataController.setViewportPosition(i._scrollLeft,i._scrollTop)));var Q,ue,we,Le})}),!i._hasHeight&&i._dataController.subscribeToWindowScrollEvents(e.groupElement())},_clean:E.ZT,_needDelayResizing:function(n){return n.length*(n.length?n[0].length:0)>this.option("renderCellCountLimit")},_renderFieldChooser:function(){var n,t=this,e=t._pivotGridContainer,i=t.option("fieldChooser")||{},r="onDemand"===i.applyChangesMode?[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:wn.Z.format("OK"),onClick:function(A){t._fieldChooserPopup.$content().dxPivotGridFieldChooser("applyChanges"),t._fieldChooserPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:wn.Z.format("Cancel"),onClick:function(A){t._fieldChooserPopup.hide()}}}]:[],v={layout:i.layout,texts:i.texts||{},dataSource:t.getDataSource(),allowSearch:i.allowSearch,searchTimeout:i.searchTimeout,width:void 0,height:void 0,headerFilter:t.option("headerFilter"),encodeHtml:null!==(n=t.option("fieldChooser.encodeHtml"))&&void 0!==n?n:t.option("encodeHtml"),applyChangesMode:i.applyChangesMode,onContextMenuPreparing:function(A){t._trigger("onContextMenuPreparing",A)}},D={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(A){A.component.$content().dxPivotGridFieldChooser("updateDimensions")},onShown:function(A){t._createComponent(A.component.content(),M9,v)},onHidden:function(A){var z=A.component.$content().dxPivotGridFieldChooser("instance");z.resetTreeView(),z.cancelChanges()}};t._fieldChooserPopup?(t._fieldChooserPopup.option(D),t._fieldChooserPopup.$content().dxPivotGridFieldChooser(v)):t._fieldChooserPopup=t._createComponent((0,u.Z)(K0).addClass("dx-fieldchooser-popup").appendTo(e),Tp.Z,D)},_renderContextMenu:function(){var n=this,t=n._pivotGridContainer;n._contextMenu&&n._contextMenu.$element().remove(),n._contextMenu=n._createComponent((0,u.Z)(K0).appendTo(t),Yv.Z,{onPositioning:function(e){var i=e.event;if(e.cancel=!0,i){var r=i.target.cellIndex>=0?i.target:(0,u.Z)(i.target).closest("td").get(0);if(r){var v=n._createEventArgs(r,i),D=n._getContextMenuItems(v);if(D)return e.component.option("items",D),void(e.cancel=!1)}}},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:V9,target:n.$element()})},_getContextMenuItems:function(n){var t=this,e=[],i=t.option("texts");if("row"===n.area||"column"===n.area){var v=n["column"===n.area?"rowFields":"columnFields"],D=n.cell.path&&n[n.area+"Fields"][n.cell.path.length-1],A=t.getDataSource();if(D&&D.allowExpandAll&&n.cell.path.length<n[n.area+"Fields"].length&&!A.paginate()&&(e.push({beginGroup:!0,icon:"none",text:i.expandAll,onItemClick:function(){A.expandAll(D.index)}}),e.push({text:i.collapseAll,icon:"none",onItemClick:function(){A.collapseAll(D.index)}})),n.cell.isLast&&!A.paginate()){var z=0;(0,O.S6)(v,function(Q,ue){ue.allowSortingBySummary&&(0,O.S6)(n.dataFields,function(we,Le){if(!(0,w.$K)(n.cell.dataIndex)||n.cell.dataIndex===we){var Ue=!(0,w.$K)(n.cell.dataIndex)&&n.dataFields.length>1,ut="column"===n.area?i.sortColumnBySummary:i.sortRowBySummary,It=ey(n.dataFields,ue.sortBySummaryField)===we&&(n.cell.path||[]).join("/")===(ue.sortBySummaryPath||[]).join("/"),Gt=(0,Yo.WU)(ut,Ue?ue.caption+" - "+Le.caption:ue.caption);e.push({beginGroup:0===z,icon:It?"desc"===ue.sortOrder?"sortdowntext":"sortuptext":"none",text:Gt,onItemClick:function(){A.field(ue.index,{sortBySummaryField:Le.name||Le.caption||Le.dataField,sortBySummaryPath:n.cell.path,sortOrder:"desc"===ue.sortOrder?"asc":"desc"}),A.load()}}),z++}})}),(0,O.S6)(v,function(Q,ue){if(ue.allowSortingBySummary&&(0,w.$K)(ue.sortBySummaryField))return e.push({beginGroup:0===z,icon:"none",text:i.removeAllSorting,onItemClick:function(){(0,O.S6)(v,function(we,Le){A.field(Le.index,{sortBySummaryField:void 0,sortBySummaryPath:void 0,sortOrder:void 0})}),A.load()}}),!1})}}if(t.option("fieldChooser.enabled")&&e.push({beginGroup:!0,icon:"columnchooser",text:i.showFieldChooser,onItemClick:function(){t._fieldChooserPopup.show()}}),t.option("export.enabled")&&e.push({beginGroup:!0,icon:"xlsxfile",text:i.exportToExcel,onItemClick:function(){t.exportToExcel()}}),n.items=e,t._trigger("onContextMenuPreparing",n),(e=n.items)&&e.length)return e},_createEventArgs:function(n,t){var e=this.getDataSource(),i={rowFields:e.getAreaFields("row"),columnFields:e.getAreaFields("column"),dataFields:e.getAreaFields("data"),event:t};return function OJ(n){return n.closest("."+N9).length||n.find("."+N9).length}((0,u.Z)(n))?(0,y.l)(this._createFieldArgs(n),i):(0,y.l)(this._createCellArgs(n),i)},_createFieldArgs:function(n){var t=(0,u.Z)(n).children().data("field"),e={field:t};return(0,w.$K)(t)?e:{}},_createCellArgs:function(n){var t=(0,u.Z)(n),e=n.cellIndex,i=n.parentElement.rowIndex,r=t.closest("table"),v=r.data("data"),D=v&&v[i]&&v[i][e];return{area:r.data("area"),rowIndex:i,columnIndex:e,cellElement:(0,S.u)(t),cell:D}},_handleCellClick:function(n){var t=this,e=t._createEventArgs(n.currentTarget,n),i=e.cell;!i||!e.area&&(e.rowIndex||e.columnIndex)||(t._trigger("onCellClick",e),i&&!e.cancel&&(0,w.$K)(i.expanded)&&setTimeout(function(){t._dataController[i.expanded?"collapseHeaderItem":"expandHeaderItem"](e.area,i.path)}))},_getNoDataText:function(){return this.option("texts.noData")},_renderNoDataText:Tf.Z.renderNoDataText,_renderLoadPanel:Tf.Z.renderLoadPanel,_updateLoading:function(n){var t=this,e=t._dataController.isLoading();if(t._loadPanel){var i=t._loadPanel.option("visible");if(i||(t._startLoadingTime=new Date),e&&(n?new Date-t._startLoadingTime>=1e3&&t._loadPanel.option("message",Math.floor(100*n)+"%"):t._loadPanel.option("message",t.option("loadPanel.text"))),clearTimeout(t._hideLoadingTimeoutID),i&&!e)t._hideLoadingTimeoutID=setTimeout(function(){t._loadPanel.option("visible",!1),t.$element().removeClass(PP)});else{var r={visible:e};e&&(r.position=Tf.Z.calculateLoadPanelPosition(t._dataArea.groupElement())),t._loadPanel.option(r),t.$element().toggleClass(PP,!e)}}},_renderDescriptionArea:function(){var D,n=this.$element(),t=n.find("."+AP),e=(0,u.Z)(K0).addClass("dx-pivotgrid-toolbar"),i=this.option("fieldPanel"),r=n.find(".dx-filter-header"),v=n.find(".dx-column-header");if(D=i.visible&&i.showFilterFields?r:i.visible&&(i.showDataFields||i.showColumnFields)?v:t,v.toggleClass(AD,!(!i.visible||!i.showDataFields&&!i.showColumnFields)),r.toggleClass(AD,!(!i.visible||!i.showFilterFields)),t.toggleClass("dx-pivotgrid-background",i.visible&&(i.showDataFields||i.showColumnFields||i.showRowFields)),this.$element().find(".dx-pivotgrid-toolbar").remove(),e.prependTo(D),this.option("fieldChooser.enabled")){var A=(0,u.Z)(K0).appendTo(e).addClass("dx-pivotgrid-field-chooser-button"),z={icon:"columnchooser",hint:this.option("texts.showFieldChooser"),onClick:()=>{this.getFieldChooserPopup().show()}};this._createComponent(A,"dxButton",z)}if(this.option("export.enabled")){var Q=(0,u.Z)(K0).appendTo(e).addClass("dx-pivotgrid-export-button"),ue={icon:"xlsxfile",hint:this.option("texts.exportToExcel"),onClick:()=>{this.exportToExcel()}};this._createComponent(Q,"dxButton",ue)}},_detectHasContainerHeight:function(){var n=this.$element();if((0,w.$K)(this._hasHeight)){var t=this.option("height")||this.$element().get(0).style.height;t&&this._hasHeight^"auto"!==t&&(this._hasHeight=null)}if(!(0,w.$K)(this._hasHeight)&&!n.is(":hidden")){this._pivotGridContainer.addClass("dx-hidden");var e=(0,u.Z)(K0);(0,s.QQ)(e,66666),n.append(e),this._hasHeight=66666!==(0,s.Cr)(n),this._pivotGridContainer.removeClass("dx-hidden"),e.remove()}},_renderHeaders:function(n,t,e,i){var r=this.getDataSource();this._rowFields=this._rowFields||new MD(this,"row"),this._rowFields.render(n,r.getAreaFields("row")),this._columnFields=this._columnFields||new MD(this,"column"),this._columnFields.render(t,r.getAreaFields("column")),this._filterFields=this._filterFields||new MD(this,"filter"),this._filterFields.render(e,r.getAreaFields("filter")),this._dataFields=this._dataFields||new MD(this,"data"),this._dataFields.render(i,r.getAreaFields("data")),this.$element().dxPivotGridFieldChooserBase("instance").renderSortable()},_createTableElement:function(){var n=(0,u.Z)("<table>").css({width:"100%"}).toggleClass(F9,!!this.option("showBorders")).toggleClass("dx-word-wrap",!!this.option("wordWrapEnabled"));return d.Z.on(n,(0,k.V4)(g.u,"dxPivotGrid"),"td",this._handleCellClick.bind(this)),n},_renderDataArea:function(n){var t=this._dataArea||new Eq(this);return this._dataArea=t,t.render(n,this._dataController.getCellsInfo()),t},_renderRowsArea:function(n){var t=this._rowsArea||new Lq(this);return this._rowsArea=t,t.render(n,this._dataController.getRowsInfo()),t},_renderColumnsArea:function(n){var t=this._columnsArea||new p9(this);return this._columnsArea=t,t.render(n,this._dataController.getColumnsInfo()),t},_initMarkup:function(){var n=this;n.callBase.apply(this,arguments),n.$element().addClass(V9)},_renderContentImpl:function(){var n,t,e,i,v,D,A,z,r=!this._pivotGridContainer;(i=!r&&this._tableElement())||(this.$element().addClass("dx-row-lines").addClass("dx-pivotgrid-fields-container"),this._pivotGridContainer=(0,u.Z)(K0).addClass("dx-pivotgrid-container"),this._renderFieldChooser(),this._renderContextMenu(),n=(0,u.Z)(ay).addClass(B9),t=(0,u.Z)(ay).addClass(MP),e=(0,u.Z)(ay).addClass(L9),i=this._createTableElement(),z=(0,u.Z)(ay).addClass("dx-data-header"),A=(0,u.Z)("<td>").attr("colspan","2").addClass("dx-filter-header"),D=(0,u.Z)(ay).addClass("dx-column-header"),v=(0,u.Z)(ay).addClass(AP),(0,u.Z)(PD).append(A).appendTo(i),(0,u.Z)(PD).append(z).append(D).appendTo(i),(0,u.Z)(PD).append(v).append(n).appendTo(i),(0,u.Z)(PD).addClass("dx-bottom-row").append(t).append(e).appendTo(i),this._pivotGridContainer.append(i),this.$element().append(this._pivotGridContainer),"tree"===this.option("rowHeaderLayout")&&t.addClass("dx-area-tree-view")),this.$element().addClass(PP),this._createComponent(this.$element(),w9,{dataSource:this.getDataSource(),encodeHtml:this.option("encodeHtml"),allowFieldDragging:this.option("fieldPanel.allowFieldDragging"),headerFilter:this.option("headerFilter"),visible:this.option("visible")});var Q=this._renderDataArea(e),ue=this._renderRowsArea(t),we=this._renderColumnsArea(n);Q.tableElement().prepend(we.headElement()),r&&(this._renderLoadPanel(Q.groupElement().parent(),this.$element()),this._renderDescriptionArea(),ue.renderScrollable(),we.renderScrollable(),Q.renderScrollable()),[Q,ue,we].forEach(function(Le){U9(Le)}),this._renderHeaders(v,D,A,z),this._update(r)},_update:function(n){var t=this,e=function(){t.updateDimensions()};t._needDelayResizing(t._dataArea.getData())&&n?setTimeout(e):e()},_fireContentReadyAction:function(){this._dataController.isLoading()||this.callBase()},getScrollPath:function(n){return"column"===n?this._columnsArea.getScrollPath(this._scrollLeft):this._rowsArea.getScrollPath(this._scrollTop)},getDataSource:function(){return this._dataController.getDataSource()},getFieldChooserPopup:function(){return this._fieldChooserPopup},hasScroll:function(n){return"column"===n?this._columnsArea.hasScroll():this._rowsArea.hasScroll()},_dimensionChanged:function(){this.updateDimensions()},_visibilityChanged:function(n){n&&this.updateDimensions()},_dispose:function(){var n=this;clearTimeout(n._hideLoadingTimeoutID),n.callBase.apply(n,arguments),n._dataController&&n._dataController.dispose()},_tableElement:function(){return this.$element().find("table").first()},addWidgetPrefix:function(n){return"dx-pivotgrid-"+n},resize:function(){this.updateDimensions()},isReady:function(){return this.callBase()&&!this._dataController.isLoading()},updateDimensions:function(){var t,i,A,z,n=this,e=n._tableElement(),r=0,v=0,D=0,Q=e.find("."+L9),ue=e.find("."+MP),we=e.find("."+B9),Le=e.find("."+AP),Ue=e.find(".dx-filter-header"),ut=e.find(".dx-column-header"),It=n._rowFields,Gt=new P.BH;if((0,fi.Ym)()){var ln=It.isVisible()&&"tree"!==n.option("rowHeaderLayout");n._detectHasContainerHeight(),n._dataArea.headElement().length||n._dataArea.tableElement().prepend(n._columnsArea.headElement()),ln&&(n._rowsArea.updateColspans(It.getColumnsCount()),n._rowsArea.tableElement().prepend(It.headElement())),e.addClass(H9),n._dataArea.reset(),n._rowsArea.reset(),n._columnsArea.reset(),It.reset();var En=(Nt,Jt)=>Jt-Nt>=1,on=(Nt,Jt,un,Mn,Kn)=>un?Nt:Jt+(Mn?Kn:0);return(0,E.Su)(function(){var Nt=n._rowsArea.getRowsHeight(),Jt=(0,s.zp)(Le[0],!0)+(ln?Nt[0]:0),un=0,Mn=0;if(n._hasHeight){un=(0,s.Cr)(Ue);var Kn=e.find(".dx-data-header"),Xn=(0,s.Cr)(Kn);i=Z9([we,Q,e,ut,Ue],"height"),Mn=(0,s.Cr)(n.$element())-un-Xn-(Math.max((0,s.Cr)(n._dataArea.headElement()),(0,s.Cr)(we),Jt)+i)}var si=n._dataArea.getScrollbarWidth(),pi=En(Mn,(0,s.Cr)(n._dataArea.tableElement()));n._dataArea.tableElement().css({width:n._hasHeight&&pi&&si?"calc(100% - ".concat(si,"px)"):"100%"});var yi=n._dataArea.getColumnsWidth(),Ui=ln?Nt.slice(1):Nt,Bi=n._dataArea.getRowsHeight(),oi=n._dataController.getColumnsInfo().length,Fi=function AX(n,t){for(var e=[],i=0;i<n.length;i++)e.push(Math.max(n[i]||0,t[i]||0));return e}(Ui,Bi.slice(oi)),Zi=Bi.slice(0,oi),nr=kP(Zi),hr=n._rowsArea.getColumnsWidth();if(r=(0,s.dz)(n._dataArea.tableElement()),v=kP(Fi),r&&v){D=kP(hr);var gr=(0,s.dz)(n.$element());i=Z9([ue,Q,e],"width");var Ur=r-(t=(t=gr-D-i)>0?t:r);Ur>=0&&Ur<=2&&(RP(yi,Ur),r=t),A=n._hasHeight&&En(Mn,v),z=En(t,r);var Pr=on(Mn,v,A,z,si);(0,E.g0)(function(){if(n._columnsArea.tableElement().append(n._dataArea.headElement()),It.tableElement().append(n._rowsArea.headElement()),Jt>nr&&(RP(Zi,nr-Jt),n._columnsArea.setRowsHeight(Zi)),e.removeClass(H9),ut.children().css("maxWidth",t),n._columnsArea.setGroupWidth(t),n._columnsArea.processScrollBarSpacing(A?si:0),n._columnsArea.setColumnsWidth(yi),n._rowsArea.setGroupHeight(n._hasHeight?Pr:"auto"),n._rowsArea.processScrollBarSpacing(z?si:0),n._rowsArea.setColumnsWidth(hr),n._rowsArea.setRowsHeight(Fi),n._dataArea.setColumnsWidth(yi),n._dataArea.setRowsHeight(Fi),n._dataArea.setGroupWidth(t),n._dataArea.setGroupHeight(n._hasHeight?Pr:"auto"),ln&&It.setColumnsWidth(hr),Q.toggleClass(AD,!A),ue.toggleClass(AD,!A),!n._hasHeight&&gr!==(0,s.dz)(n.$element())){var Fr=gr-(0,s.dz)(n.$element());z||(RP(yi,Fr),n._columnsArea.setColumnsWidth(yi),n._dataArea.setColumnsWidth(yi)),n._dataArea.setGroupWidth(t-Fr),n._columnsArea.setGroupWidth(t-Fr)}if(n._hasHeight&&n._filterFields.isVisible()&&(0,s.Cr)(Ue)!==un){var io=(0,s.Cr)(Ue)-un;if(io>0){A=En(Mn-io,v);var Hr=on(Mn-io,v,A,z,si);n._dataArea.setGroupHeight(Hr),n._rowsArea.setGroupHeight(Hr)}}var xo=n.option("scrolling");"virtual"===xo.mode&&n._setVirtualContentParams(xo,yi,Fi,t,Pr,n._hasHeight,D);var Fo=[];n._dataArea.updateScrollableOptions({direction:n._dataArea.getScrollableDirection(z,A),rtlEnabled:n.option("rtlEnabled")}),n._columnsArea.updateScrollableOptions({rtlEnabled:n.option("rtlEnabled")}),(0,O.S6)([n._columnsArea,n._rowsArea,n._dataArea],function(yo,Do){Fo.push(Do&&Do.updateScrollable())}),n._updateLoading(),n._renderNoDataText(Q),P.gx.apply(u.Z,Fo).done(function(){n._updateScrollPosition(n._columnsArea,n._rowsArea,n._dataArea),n._subscribeToEvents(n._columnsArea,n._rowsArea,n._dataArea),Gt.resolve()})})}else Gt.resolve()}),Gt}},_setVirtualContentParams:function(n,t,e,i,r,v,D){var A=this._dataController.calculateVirtualContentParams({virtualRowHeight:n.virtualRowHeight,virtualColumnWidth:n.virtualColumnWidth,itemWidths:t,itemHeights:e,rowCount:e.length,columnCount:t.length,viewportWidth:i,viewportHeight:v?r:(0,s.zp)(R9)});this._dataArea.setVirtualContentParams({top:A.contentTop,left:A.contentLeft,width:A.width,height:A.height}),this._rowsArea.setVirtualContentParams({top:A.contentTop,width:D,height:A.height}),this._columnsArea.setVirtualContentParams({left:A.contentLeft,width:A.width,height:(0,s.Cr)(this._columnsArea.groupElement())})},applyPartialDataSource:function(n,t,e){this._dataController.applyPartialDataSource(n,t,e)}}).inherit(dJ).include(CJ);(0,T.Z)("dxPivotGrid",K9);let G9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.sd1,M.RbS,M.FZZ,M.HaS,M.jq_,M.lj9,M.SUG,M.mtS,M.UCw,M.nD3,M.WyY,M.YOZ,f.Lz,f.ie,p.Cu],M.sd1,M.RbS,M.FZZ,M.HaS,M.jq_,M.lj9,M.SUG,M.mtS,M.UCw,M.nD3,M.WyY,M.YOZ,f.ie]}),n})(),j9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.HaS,M.mtS,f.Lz,f.ie,p.Cu],M.HaS,M.mtS,f.ie]}),n})();var kD=cL.inherit({_themeSection:"polar",_createPanes:function(){return this.callBase(),[{name:"default"}]},_checkPaneName:function(){return!0},_getAxisRenderingOptions:function(n){var e="argumentAxis"===n?"circular":"linear";return this.option("useSpiderWeb")&&(e+="Spider"),{axisType:"polarAxes",drawingType:e}},_executeAppendBeforeSeries(n){n()},_prepareAxisOptions:function(n,t){var e="argumentAxis"===n,i=this._themeManager,r=this.option("argumentAxis"),v=i.getOptions("argumentAxis",r)||{},D=isFinite(v.startAngle)?dt(v.startAngle):0;return{type:this.option("useSpiderWeb")&&e?"discrete":t.type,isHorizontal:!0,showCustomBoundaryTicks:e,startAngle:D,endAngle:D+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 n=(0,y.l)({},this._canvas),e=this.getArgumentAxis().getMargins();return Object.keys(e).forEach(i=>n[i]=n["original".concat(i[0].toUpperCase()).concat(i.slice(1))]+e[i]),n},_renderAxes:function(n){var t=this._getValueAxis(),e=this.getArgumentAxis();e.draw(this._canvas),t.setSpiderTicks(e.getSpiderTicks());var i=this._calcCanvas();return e.updateSize(i),t.draw(i),i},_getValueAxis:function(){return this._valueAxes[0]},_shrinkAxes:function(n){var t=this._getValueAxis(),e=this.getArgumentAxis();if(n&&(n.width||n.height)){e.hideOuterElements();var i=this._calcCanvas();e.updateSize(i),t.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 n=this._getCanvasClipRectID();this._createClipPathForPane(),this.getArgumentAxis().applyClipRects(this._getElementsClipRectID(),n),this._getValueAxis().applyClipRects(this._getElementsClipRectID(),n)},_createClipPathForPane(){var n=this._getValueAxis(),t=n.getCenter(),e=n.getRadius(),i=this._panesClipRects;t={x:Math.round(t.x),y:Math.round(t.y)},this._createClipCircle(i.fixed,t.x,t.y,e),this._createClipCircle(i.base,t.x,t.y,e),this.series.some(r=>r.areErrorBarsVisible())?this._createClipCircle(i.wide,t.x,t.y,e):i.wide[0]=null},_createClipCircle(n,t,e,i){var r=n[0];r?r.attr({cx:t,cy:e,r:i}):(r=this._renderer.clipCircle(t,e,i),n[0]=r)},_applyExtraSettings(n){var t=this._panesClipRects.wide[0];n.setClippingParams(this._panesClipRects.base[0].id,t&&t.id,!1,!1)},getActualAngle(n){return this.getArgumentAxis().getOptions().inverted?360-n:n},getXYFromPolar(n,t,e,i){var r={angle:void 0,radius:void 0,x:void 0,y:void 0};if(!((0,w.$K)(n)||(0,w.$K)(t)||(0,w.$K)(e)||(0,w.$K)(i)))return r;var A,z,v=this.getArgumentAxis(),D=v.getAngles()[0];if((0,w.$K)(e)?A=v.getTranslator().translate(e):isFinite(n)?A=this.getActualAngle(n):(0,w.$K)(n)||(A=0),(0,w.$K)(i)?z=this.getValueAxis().getTranslator().translate(i):isFinite(t)?z=t:(0,w.$K)(t)||(z=v.getRadius()),(0,w.$K)(A)&&(0,w.$K)(z)){var Q=Hi(v.getCenter(),D,A,z);(0,y.l)(r,Q,{angle:v.getTranslatedAngle(A),radius:z})}return r},_applyPointMarkersAutoHiding:E.ZT,_createScrollBar:E.ZT,_isRotated:E.ZT,_getCrosshairOptions:E.ZT,_isLegendInside:E.ZT});kD.addPlugin(wf.core),kD.addPlugin(wf.polarChart),(0,T.Z)("dxPolarChart",kD);let $9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.lsC,M.IOm,M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.wMw,M.qlz,M.e1H,M.Tq8,M.z8p,M.FZZ,M.Afe,M.HC7,M.Irw,M.Llc,M.tis,M.ji7,M.ZmN,M.zk3,M.Wj0,M._7s,M.DQr,M.Ye1,M.kZH,M.dwQ,M.$a2,M.gN6,M.kWr,M.XfX,M.$Tm,M.IqU,M.cp7,M.Wi7,M.p7n,M.lj9,M.FYN,M.KjY,M.rrz,M.lTN,M.rHV,M.ZLS,M.Rue,M.Kx,M.vZC,M.gI1,M.irQ,f.Lz,f.ie,p.Cu],M.lsC,M.IOm,M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.wMw,M.qlz,M.e1H,M.Tq8,M.z8p,M.FZZ,M.Afe,M.HC7,M.Irw,M.Llc,M.tis,M.ji7,M.ZmN,M.zk3,M.Wj0,M._7s,M.DQr,M.Ye1,M.kZH,M.dwQ,M.$a2,M.gN6,M.kWr,M.XfX,M.$Tm,M.IqU,M.cp7,M.Wi7,M.p7n,M.lj9,M.FYN,M.KjY,M.rrz,M.lTN,M.rHV,M.ZLS,M.Rue,M.Kx,M.vZC,M.gI1,M.irQ,f.ie]}),n})(),Y9=(()=>{class n extends Db.Z{_getToolbarName(){return"dxToolbar"}}return n.defaultOptions=function(t){Db.Z.defaultOptions(t)},n})();(0,T.Z)("dxPopover",Y9);let X9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.nT1,M.Fkd,M.pGy,f.Lz,f.ie,p.Cu],M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.nT1,M.Fkd,M.pGy,f.ie]}),n})();var q9=l(1740);const RJ={provide:ie.JU,useExisting:(0,a.Gpc)(()=>LJ),multi:!0};let LJ=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),A.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 uF.Z(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-progress-bar"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,RJ,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),J9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[f.Lz,f.ie,p.Cu],f.ie]}),n})();const BJ={provide:ie.JU,useExisting:(0,a.Gpc)(()=>FJ),multi:!0};let FJ=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),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 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 d$(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-radio-group"]],contentQueries:function(e,i,r){if(1&e&&a.Suo(r,M.ZT3,4),2&e){let v;a.iGM(v=a.CRH())&&(i.itemsChildren=v)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,BJ,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),Q9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,f.Lz,f.ie,p.Cu],M.Q8p,f.ie]}),n})();var eV_animationSettings={duration:250},LD=function(n,t,e,i,r,v){var D={value:n,valueText:bm(n,{labelOptions:t,ticks:e?e.ticks:[],tickInterval:e?e.tickInterval:void 0,dataType:i,type:r,logarithmBase:v})};return String((0,w.mf)(t.customizeText)?t.customizeText.call(D,D):D.valueText)};function LP(n,t,e){this._isLeftPointer=e,this._isOverlapped=!1,this._group=n.g().attr({class:"slider-marker"}).append(t),this._area=n.path(null,"area").append(this._group),this._label=n.text().attr({align:"left"}).append(this._group),this._tracker=n.rect().attr({class:"slider-marker-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(this._group),this._border=n.rect(0,0,1,0)}LP.prototype={constructor:LP,_getRectSize:function(n){return{width:Math.round(2*this._paddingLeftRight+n.width),height:Math.round(2*this._paddingTopBottom+n.height)}},_getTextSize:function(){var n=this._label.getBBox();return!this._textHeight&&isFinite(n.height)&&(this._textHeight=n.height),{width:n.width,height:this._textHeight,y:n.y}},_getAreaPointsInfo:function(n){var t=this._getRectSize(n),e=t.width,i=t.height,r=-e,v=0,D=4,A=0,z=-4,Q=this._position,ue=this._isLeftPointer,we=function(){r++,v++,D++,A++,z++},Le=function(){D>v?D=v:z<r&&(z=r),ue&&we()},Ue=Q;return ue?Q>this._range[1]-e?(r=(v=-Q+this._range[1])-e,Le(),Ue+=r):(r=z=0,v=e):Q-this._range[0]<e?(v=(r=-(Q-this._range[0]))+e,Le(),Ue+=v):(D=0,we()),this._borderPosition=Ue,{offset:r,isCut:(!ue||A!==z)&&(ue||A!==D),points:[r,0,v,0,v,i,D,i,A,i+4,z,i,r,i]}},_update:function(){var t,n=this;clearTimeout(n._timeout),n._label.attr({text:n._text||""});var e=n._getTextSize(),i=n._getRectSize(e);function r(v,D){D=D||n._getRectSize(v),n._group.attr({translateY:-(D.height+4)});var A=n._getAreaPointsInfo(v),z=A.points,Q=A.offset;n._area.attr({points:z}),n._border.attr({x:n._isLeftPointer?z[0]-1:z[2],height:A.isCut?D.height:D.height+4}),n._tracker.attr({translateX:Q,width:D.width,height:D.height+4}),n._label.attr({translateX:n._paddingLeftRight+Q,translateY:D.height/2-(v.y+v.height/2)})}t=n._textSize=e.width>(t=n._textSize||e).width||e.height>t.height?e:t,n._timeout=setTimeout(function(){r(e,i),n._textSize=e},75),r(t)},setText:function(n){this._text=n},setPosition:function(n){this._position=n,this._update()},applyOptions:function(n,t){this._range=t,this._paddingLeftRight=n.paddingLeftRight,this._paddingTopBottom=n.paddingTopBottom,this._textHeight=null,this._colors=[n.invalidRangeColor,n.color],this._area.attr({fill:n.color}),this._border.attr({fill:n.borderColor}),this._label.css(di(n.font)),this._update()},getTracker:function(){return this._tracker},setValid:function(n){this._area.attr({fill:this._colors[Number(n)]})},setColor:function(n){this._area.attr({fill:n})},dispose:function(){clearTimeout(this._timeout)},setOverlapped:function(n){this._isOverlapped!==n&&(n?this._border.append(this._group):this._isOverlapped&&this._border.remove(),this._isOverlapped=n)},getBorderPosition:function(){return this._borderPosition}};const WJ=LP;var tV=eV_animationSettings;function BP(n,t){this._translator=n.translator,this._sliderGroup=n.renderer.g().attr({class:"slider"}).append(n.root),this._line=n.renderer.path(null,"line").append(this._sliderGroup),this._marker=new WJ(n.renderer,this._sliderGroup,1===t),this._tracker=n.renderer.rect().attr({class:"slider-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"w-resize"}).append(n.trackersGroup)}BP.prototype={constructor:BP,cancelAnimation:function(){this._sliderGroup.stopAnimation(),this._tracker.stopAnimation()},applyPosition:function(n){var t=this._sliderGroup,e=this._tracker,i={translateX:this._position};this._marker.setPosition(this._position),n?(t.animate(i,tV),e.animate(i,tV)):(t.attr(i),e.attr(i))},_setValid:function(n){this._marker.setValid(n),this._line.attr({stroke:this._colors[Number(n)]})},_setText:function(n){this._marker.setText(n)},update:function(n,t,e){this._formatOptions={format:e.format,customizeText:e.customizeText},this._marker.applyOptions(e,this._translator.getScreenRange()),this._colors=[e.invalidRangeColor,t.color],this._sliderGroup.attr({translateY:n[0]}),this._line.attr({"stroke-width":t.width,stroke:t.color,"stroke-opacity":t.opacity,sharp:"h",points:[0,0,0,n[1]-n[0]]});var i=function ZJ(n){return ry.touchEvents||ry.pointerEvents?20:8<n?n:8}(t.width);this._tracker.attr({x:-i/2,y:0,width:i,height:n[1]-n[0],translateY:n[0]})},toForeground:function(){this._sliderGroup.toForeground()},getSliderTracker:function(){return this._tracker},getPosition:function(){return this._position},setDisplayValue:function(n){this._value=n,this._setText(LD(n,this._formatOptions))},setOverlapped:function(n){this._marker.setOverlapped(n)},getValue:function(){return this._value},on:function(n,t){this._tracker.on(n,t),this._marker.getTracker().on(n,t)},getCloudBorder:function(){return this._marker.getBorderPosition()},dispose:function(){this._marker.dispose()}};const iV=BP;var KJ=eV_animationSettings;function BD(n,t,e,i){return[n,t,e,t,e,i,n,i]}function FD(n,t){return n<t}function VD(n,t){return n>t}function Pf(n,t){for(var r,e=0,i=t?t.length-1:0,v=n;i-e>1;){if((v=t[r=e+i>>1])===n)return n;n<v?i=r:e=r}return t&&(v=t[n-t[e]<=t[i]-n?e:i]),v}function oV(){this._lastSelectedRange=this.getSelectedRange(),delete this._processSelectionChanged}function FP(n){var t={renderer:n.renderer,root:n.root,trackersGroup:n.trackersGroup,translator:n.translator};this._params=n,this._areaTracker=n.renderer.path(null,"area").attr({class:"area-tracker",fill:"#000000",opacity:1e-4}).append(n.trackersGroup),this._selectedAreaTracker=n.renderer.path(null,"area").attr({class:"selected-area-tracker",fill:"#000000",opacity:1e-4}).append(n.trackersGroup),this._shutter=n.renderer.path(null,"area").append(n.root),this._sliders=[new iV(t,0),new iV(t,1)],this._processSelectionChanged=oV}FP.prototype={constructor:FP,dispose:function(){this._sliders[0].dispose(),this._sliders[1].dispose()},getTrackerTargets:function(){return{area:this._areaTracker,selectedArea:this._selectedAreaTracker,sliders:this._sliders}},_processSelectionChanged:function(n){var t=this.getSelectedRange();Nr(t,this._lastSelectedRange)||(this._params.updateSelectedRange(t,this._lastSelectedRange,n),this._lastSelectedRange=t)},update:function(n,t,e,i,r,v,D,A,z){var Q=this._params.translator.getScreenRange();this._verticalRange=n,this._minRange=D.minRange,this._maxRange=D.maxRange,this._animationEnabled=t.animationEnabled&&this._params.renderer.animationEnabled(),this._allowSlidersSwap=t.allowSlidersSwap,this._sliders[0].update(n,i,r),this._sliders[1].update(n,i,r),this._sliders[0]._position=this._sliders[1]._position=Q[0],this._values=!this._params.translator.isValueProlonged&&t.snapToTicks?A:null,this._areaTracker.attr({points:BD(Q[0],n[0],Q[1],n[1])}),this._isCompactMode=e,this._shutterOffset=i.width/2,this._updateSelectedView(v,z),this._isOnMoving="onmoving"===Sn(t.callValueChanged),this._updateSelectedRange(),this._applyTotalPosition(!1)},_updateSelectedView:function(n,t){var e={fill:null,"fill-opacity":null,stroke:null,"stroke-width":null};this._isCompactMode?(e.stroke=t,e["stroke-width"]=3,e.sharp="v"):(e.fill=n.color,e["fill-opacity"]=n.opacity),this._shutter.attr(e)},_updateSelectedRange:function(){var n=this._sliders;n[0].cancelAnimation(),n[1].cancelAnimation(),this._shutter.stopAnimation(),this._params.translator.getBusinessRange().isEmpty()?(n[0]._setText(". . ."),n[1]._setText(". . ."),n[0]._value=n[1]._value=void 0,n[0]._position=this._params.translator.getScreenRange()[0],n[1]._position=this._params.translator.getScreenRange()[1],this._applyTotalPosition(!1),function GJ(n){n.setSelectedRange=E.ZT,n._processSelectionChanged===oV&&n._processSelectionChanged()}(this)):function jJ(n){delete n.setSelectedRange}(this)},_applyTotalPosition:function(n){var t=this._sliders;t[0].applyPosition(n=this._animationEnabled&&n),t[1].applyPosition(n);var e=t[0].getCloudBorder()>t[1].getCloudBorder();t[0].setOverlapped(e),t[1].setOverlapped(e),this._applyAreaTrackersPosition(),this._applySelectedRangePosition(n)},_applyAreaTrackersPosition:function(){var n=this._sliders[0].getPosition(),t=this._sliders[1].getPosition();this._selectedAreaTracker.attr({points:BD(n,this._verticalRange[0],t,this._verticalRange[1])}).css({cursor:Math.abs(this._params.translator.getScreenRange()[1]-this._params.translator.getScreenRange()[0]-t+n)<.001?"default":"pointer"})},_applySelectedRangePosition:function(n){var r,v,t=this._verticalRange,e=this._sliders[0].getPosition(),i=this._sliders[1].getPosition();v=this._isCompactMode?[e+Math.ceil(this._shutterOffset),(t[0]+t[1])/2,i-Math.floor(this._shutterOffset),(t[0]+t[1])/2]:[BD((r=this._params.axis.getVisibleArea())[0],t[0],Math.max(e-Math.floor(this._shutterOffset),r[0]),t[1]),BD(r[1],t[0],Math.min(i+Math.ceil(this._shutterOffset),r[1]),t[1])],n?this._shutter.animate({points:v},KJ):this._shutter.attr({points:v})},getSelectedRange:function(){return{startValue:this._sliders[0].getValue(),endValue:this._sliders[1].getValue()}},setSelectedRange:function(n,t){n=n||{};var e=this._params.translator,i=e.getBusinessRange(),r="discrete"===i.axisType?function(z,Q){return z<Q}:function(z,Q){return z<=Q},{startValue:v,endValue:D}=Gr({dataType:i.dataType,axisType:i.axisType,base:i.base},{startValue:e.isValid(n.startValue)?e.getCorrectValue(n.startValue,1):void 0,endValue:e.isValid(n.endValue)?e.getCorrectValue(n.endValue,-1):void 0,length:n.length},{min:i.minVisible,max:i.maxVisible,categories:i.categories});v=(0,w.kE)(v)?(0,ae.zB)(v):v,D=(0,w.kE)(D)?(0,ae.zB)(D):D;var A=r(e.to(v,-1),e.to(D,1))?[v,D]:[D,v];this._sliders[0].setDisplayValue(A[0]),this._sliders[1].setDisplayValue(A[1]),this._sliders[0]._position=e.to(A[0],-1),this._sliders[1]._position=e.to(A[1],1),this._applyTotalPosition(!0),this._processSelectionChanged(t)},beginSelectedAreaMoving:function(n){var t=this,e=t._sliders,i=(e[0].getPosition()+e[1].getPosition())/2-n,r=n;return v.complete=function(D){t._dockSelectedArea(D)},v;function v(D,A){D!==r&&D>r==D>(e[0].getPosition()+e[1].getPosition())/2-i&&t._moveSelectedArea(D+i,!1,A),r=D}},_dockSelectedArea:function(n){var t=this._params.translator,e=this._sliders;e[0]._position=t.to(e[0].getValue(),-1),e[1]._position=t.to(e[1].getValue(),1),this._applyTotalPosition(!0),this._processSelectionChanged(n)},moveSelectedArea:function(n,t){this._moveSelectedArea(n,!0,t),this._dockSelectedArea(t)},_moveSelectedArea:function(n,t,e){var i=this._params.translator,r=this._sliders,v=r[1].getPosition()-r[0].getPosition(),D=n-v/2,A=n+v/2;D<i.getScreenRange()[0]&&(A=(D=i.getScreenRange()[0])+v),A>i.getScreenRange()[1]&&(D=(A=i.getScreenRange()[1])-v);var z=Pf(i.from(D,-1),this._values);r[0].setDisplayValue(z),r[1].setDisplayValue(Pf(i.from(i.to(z,-1)+v,1),this._values)),r[0]._position=D,r[1]._position=A,this._applyTotalPosition(t),this._isOnMoving&&this._processSelectionChanged(e)},placeSliderAndBeginMoving:function(n,t,e){var i=this._params.translator,r=this._sliders,v=n<t?0:1,D=v>0?1:-1,A=v>0?VD:FD,z=v>0?FD:VD,ue=[],we=[];we[v]=i.from(n,D),we[1-v]=i.from(t,-D),ue[1-v]=t,i.isValueProlonged&&(A(n,i.to(we[v],D))&&(we[v]=i.from(n,-D)),A(t,i.to(we[v],-D))&&(we[1-v]=we[v])),this._minRange&&(A(t,i.to(i.add(Pf(we[v],this._values),this._minRange,-D),-D))&&(we[1-v]=i.add(we[v],this._minRange,-D)),z(n,i.to(i.add(i.getRange()[1-v],this._minRange,D),-D))&&(we[1-v]=i.getRange()[1-v],we[v]=i.add(we[1-v],this._minRange,D),ue[1-v]=n)),we[0]=Pf(we[0],this._values),we[1]=Pf(we[1],this._values),ue[v]=i.to(we[v],D),r[0].setDisplayValue(we[0]),r[1].setDisplayValue(we[1]),r[0]._position=ue[0],r[1]._position=ue[1],this._applyTotalPosition(!0),this._isOnMoving&&this._processSelectionChanged(e);var Le=this.beginSliderMoving(1-v,t);return r[1-v]._sliderGroup.stopAnimation(),this._shutter.stopAnimation(),Le(t),Le},beginSliderMoving:function(n,t){var e=this,i=e._params.translator,r=e._sliders,v=i.getScreenRange()[0],D=i.getScreenRange()[1],A=n,z=r[1-A].getPosition(),Q=t,ue=A>0?1:-1,we=A>0?FD:VD,Le=A>0?VD:FD,Ue=r[A].getPosition()-t,ut=we(r[A].getPosition(),t)?-Ue:Ue;return It.complete=function(Gt){r[A]._setValid(!0),e._dockSelectedArea(Gt)},It;function It(Gt,ln){var En,on,Nt,Jt,un,Mn;Gt!==Q&&(we(Gt+ut,z)&&((En=e._allowSlidersSwap)&&!i.isValueProlonged&&e._minRange&&(En=i.isValid(i.add(r[1-A].getValue(),e._minRange,-ue))),En&&(e._changeMovingSlider(A),A=1-A,on=we,we=Le,Le=on,Ue=-(ue=-ue)*Math.abs(Ue),ut=-Ue)),Le(Gt+Ue,z))&&(Jt=r[A],un=r[1-A].getValue(),Nt=Math.max(Math.min(Gt+Ue,D),v),(En=!i.isValueProlonged||!we(Nt,i.to(un,ue)))&&e._minRange&&((En=!we(Nt,i.to(i.add(un,e._minRange,ue),ue)))||(Mn=i.add(un,e._minRange,ue))),En&&e._maxRange&&((En=!Le(Nt,i.to(i.add(un,e._maxRange,ue),ue)))||(Mn=i.add(un,e._maxRange,ue))),Jt._setValid(En),Jt.setDisplayValue(En?Pf(i.from(Nt,ue),e._values):(0,w.$K)(Mn)?Mn:Jt.getValue()),Jt._position=Nt,e._applyTotalPosition(!1),Jt.toForeground(),e._isOnMoving&&e._processSelectionChanged(ln)),Q=Gt}},_changeMovingSlider:function(n){var v,t=this._params.translator,e=this._sliders,i=e[1-n].getPosition(),r=n>0?1:-1;e[n].setDisplayValue(Pf(t.from(i,r),this._values)),v=t.from(i,-r),t.isValueProlonged?v=t.from(i,r):this._minRange&&(v=t.add(v,this._minRange,-r)),e[1-n].setDisplayValue(Pf(v,this._values)),e[n]._setValid(!0),e[n]._marker._update(),e[0]._position=e[1]._position=i},foregroundSlider:function(n){this._sliders[n].toForeground()}};var $J=(0,fi.Jj)();function ly(n){var t=n||$J.event,e=t.originalEvent,i=t.touches,r=!!e&&e.pointerType,v=!!e&&e.touches;return 1===t.which||e&&void 0!==r&&(r===(e.MSPOINTER_TYPE_TOUCH||"touch")||r===(e.MSPOINTER_TYPE_MOUSE||"mouse")&&1===e.buttons)||i&&i.length>0||v&&v.length>0}function sV(n){var t=n.originalEvent,e=n.touches,i=t&&t.touches;return e&&e.length>1||i&&i.length>1||null}function lV(n){sV(n)||n.preventDefault()}function uV(n){sV(n)||(n.stopPropagation(),n.preventDefault())}function uy(n){return n&&n.type&&0===n.type.indexOf("touch")}function G0(n){var t=n.originalEvent,e=0;return n.pageX?e=n.pageX:t&&t.pageX&&(e=t.pageX),t&&t.touches&&(t.touches.length>0?e=t.touches[0].pageX:t.changedTouches.length>0&&(e=t.changedTouches[0].pageX)),e}function YJ(n,t,e,i){var r,D,v=!1,A=null,z={[_o.Z.move](ue){var we,Le;r===uy(ue)&&(ly(ue)||Q(ue),v&&(we=G0(ue),Le=i(),A?A(we-Le,ue):e.manualRangeSelectionEnabled&&Math.abs(D-we)>=10&&(A=n.placeSliderAndBeginMoving(D-Le,we-Le,ue))))},[_o.Z.up](ue){var we;v&&(we=G0(ue),!A&&e.moveSelectedRangeByClick&&Math.abs(D-we)<10&&n.moveSelectedArea(we-i(),ue),Q(ue))}};function Q(ue){v&&(v=!1,A&&(A.complete(ue),A=null))}return t.on(_o.Z.down,function(ue){!e.enabled||!ly(ue)||v||(v=!0,r=uy(ue),D=G0(ue))}),z}function XJ(n,t,e,i){var r,v=!1,D=null,A={[_o.Z.move](Q){r===uy(Q)&&(ly(Q)||z(Q),v&&(lV(Q),D(G0(Q)-i(),Q)))},[_o.Z.up]:z};function z(Q){v&&(v=!1,D.complete(Q),D=null)}return t.on(_o.Z.down,function(Q){!e.enabled||!ly(Q)||v||(v=!0,r=uy(Q),D=n.beginSelectedAreaMoving(G0(Q)-i()),uV(Q))}),A}function qJ(n,t,e,i){var r,v=!1,D=null,A={[_o.Z.move](Q){r===uy(Q)&&(ly(Q)||z(Q),v&&(lV(Q),D(G0(Q)-i(),Q)))},[_o.Z.up]:z};function z(Q){v&&(v=!1,D.complete(Q),D=null)}return(0,O.S6)(t,function(Q,ue){ue.on({[_o.Z.down](we){!e.enabled||!ly(we)||v||(v=!0,r=uy(we),D=n.beginSliderMoving(Q,G0(we)-i()),uV(we))},[_o.Z.move](){D||n.foregroundSlider(Q)}})}),A}function VP(n){var t=this._state={},e=n.controller.getTrackerTargets();function i(){return n.renderer.getRootOffset().left}ry.pointerEvents&&n.renderer.root.css({msTouchAction:"pinch-zoom"}),this._docEvents=[XJ(n.controller,e.selectedArea,t,i),YJ(n.controller,e.area,t,i),qJ(n.controller,e.sliders,t,i)],(0,O.S6)(this._docEvents,function(r,v){d.Z.on(b.Z.getDocument(),v)})}function NP(n,t){return void 0!==n?n:t}function HP(n){this._params=n,this._clipRect=n.renderer.clipRect(),n.root.attr({"clip-path":this._clipRect.id})}VP.prototype={constructor:VP,dispose:function(){(0,O.S6)(this._docEvents,function(n,t){d.Z.off(b.Z.getDocument(),t)})},update:function(n,t){var e=this._state;e.enabled=n,e.moveSelectedRangeByClick=t.moveSelectedRangeByClick,e.manualRangeSelectionEnabled=t.manualRangeSelectionEnabled}},HP.prototype={constructor:HP,update:function(n,t,e,i,r,v){var D=this._params.renderer,A=this._params.root,z=e.width-e.left;n=n||{},A.clear(),this._clipRect.attr({x:e.left,y:e.top,width:z,height:e.height}),i||(NP(n.visible,t.visible)&&(n.color&&D.rect(e.left,e.top,z+1,e.height).attr({fill:NP(n.color,t.color),class:"dx-range-selector-background"}).append(A),n.image&&n.image.url&&D.image(e.left,e.top,z+1,e.height,n.image.url,NP(n.image.location,t.image.location)).append(A)),v&&v.isShowChart()&&function JJ(n,t,e,i){var r=t.getSeries();if(r.length){var v=r[0].getValueAxis();v.updateCanvas({top:e.top,bottom:0,height:e.height+e.top}),t.adjustSeriesDimensions();var D=t.getBoundRange().val;D.sortCategories(v.getCategoriesSorter()),v.setBusinessRange(D),r.forEach(A=>{A._extGroups.seriesGroup=A._extGroups.labelsGroup=n,A.draw(i)})}}(D.g().attr({class:"dxrs-series-group"}).append(A),v,e,r))}};var zP=function(n){var t=this._themeManager=function(n){return new hb({options:n,themeSection:"rangeSelector.chart",fontFields:["commonSeriesSettings.label.font"]})}(n.chart);t.setTheme(n.chart.theme);var e=t.getOptions("topIndent"),i=t.getOptions("bottomIndent");this._indent={top:e>=0&&e<1?e:0,bottom:i>=0&&i<1?i:0},this._valueAxis=t.getOptions("valueAxisRangeSelector")||{},this._hideChart=!1,this._series=this._calculateSeries(n),this._seriesFamilies=[]};zP.prototype={constructor:zP,_calculateSeries:function(n){var e,i,v,Q,we,Le,Ue,t=[],r=n.dataSource||[],D=this._themeManager,A=D.getOptions("seriesTemplate"),z=A?Qi(A,r):n.chart.series,ue=this._valueAxis;for(n.dataSource&&!z&&(z={argumentField:Q=n.dataSourceField||"arg",valueField:Q},this._hideChart=!0),z=Array.isArray(z)?z:z?[z]:[],we=0;we<z.length;we++)(e=(0,y.l)(!0,{},z[we])).rotated=!1,(i=D.getOptions("series",e,z.length)).argumentField=i.argumentField||n.dataSourceField,i.name||(i.name="Series "+(we+1).toString()),r&&r.length>0&&(Le=new S0({renderer:n.renderer,argumentAxis:n.argumentAxis,valueAxis:n.valueAxis,incidentOccurred:n.incidentOccurred},i),t.push(Le));if(t.length)for(v=a0(r,Ue={groups:[{series:t,valueAxis:n.valueAxis,valueOptions:{type:ue.type,valueType:Q?n.valueType:ue.valueType}}],argumentOptions:{categories:n.categories,argumentType:n.valueType,type:n.axisType}},n.incidentOccurred,D.getOptions("dataPrepareSettings")),this.argCategories=Ue.categories,we=0;we<t.length;we++)t[we].updateData(v[t[we].getArgumentField()]);return t},createPoints(){if(0!==this._series.length){var n=this._series,t=new os,e=n[0].getArgumentAxis(),i=this._themeManager,r=i.getOptions("negativesAsZeroes"),v=i.getOptions("negativesAsZeros");n.forEach(function(D){t.addRange(D.getArgumentRange())}),e.getTranslator().updateBusinessRange(t),n.forEach(function(D){D.createPoints()}),this._seriesFamilies=function(n,t,e,i,r){var v=[],D=[];return(0,O.S6)(n,function(A,z){D.includes(z.type)||D.push(z.type)}),(0,O.S6)(D,function(A,z){var Q=new kO({type:z,minBubbleSize:t,maxBubbleSize:e,barGroupPadding:i.barGroupPadding,barGroupWidth:i.barGroupWidth,negativesAsZeroes:r});Q.add(n),Q.adjustSeriesValues(),v.push(Q)}),v}(n,i.getOptions("minBubbleSize"),i.getOptions("maxBubbleSize"),{barGroupPadding:i.getOptions("barGroupPadding"),barGroupWidth:i.getOptions("barGroupWidth")},(0,w.$K)(r)?r:v)}},adjustSeriesDimensions:function(){(0,O.S6)(this._seriesFamilies,function(n,t){t.adjustSeriesDimensions()})},getBoundRange:function(){var n,r,v,D,A,t=this._valueAxis,e=new os({min:t.min,minVisible:t.min,max:t.max,maxVisible:t.max,axisType:t.type,base:t.logarithmBase}),i=new os({});return(0,O.S6)(this._series,function(z,Q){n=Q.getRangeData(),e.addRange(n.val),i.addRange(n.arg)}),!e.isEmpty()&&!i.isEmpty()&&(D=t.inverted?this._indent.top:this._indent.bottom,A=t.inverted?this._indent.bottom:this._indent.top,r=e.max-e.min,v=((0,w.kE)(e.maxVisible)?e.maxVisible:e.max)-((0,w.kE)(e.minVisible)?e.minVisible:e.min),(0,w.J_)(e.min)?e.min=new Date(e.min.valueOf()-r*D):e.min-=r*D,(0,w.J_)(e.max)?e.max=new Date(e.max.valueOf()+r*A):e.max+=r*A,(0,w.kE)(v)&&(e.maxVisible=e.maxVisible?e.maxVisible+v*A:void 0,e.minVisible=e.minVisible?e.minVisible-v*D:void 0),e.invert=t.inverted),{arg:i,val:e}},getMarginOptions:function(n){var t=Math.min(n.width,n.height)*this._themeManager.getOptions("maxBubbleSize");return this._series.reduce(function(e,i){var r=i.getMarginOptions();return!0===r.processBubbleSize&&(r.size=t),lr(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 WP=Math.max,dy=Math.ceil,ND=Math.floor,dV="startValue",HD="datetime",kf="value",cy="discrete",hy="semidiscrete",zD="string",cV=kf+"Changed",hV="containerBackgroundColor",pV="logarithmic",UP="reset";function vV(n,t,e){var r=ZP(n,void 0===t?". . .":LD(t,e),e.font);return dy(r.height)+2*e.paddingTopBottom+4}function yV(n,t,e,i){var v=ZP(n,LD(t,e.label,i,e.valueType,e.type,e.logarithmBase),e.label.font);return dy(v.width/2)}function CV(n,t){var e=(0,w.dt)(n),i=(0,w.dt)(t),r=function(v){return e===v||i===v};return r("date")?HD:r("number")?"numeric":r(zD)?zD:""}function lQ(n){return n.valueType===HD&&n.marker.visible}function xV(n,t,e){if(n){var i=n.logarithmBase;n.type===pV&&i<=0||i&&!(0,w.kE)(i)?(n.logarithmBase=t,e("E2104")):n.type!==pV&&(n.logarithmBase=void 0)}}function dQ(n,t,e,i){var r=t.label,v=t.marker,D=t.placeholderHeight,z=LD(("semidiscrete"===t.type?t.customTicks:i.ticks)[0],r);return D||(r.visible?r.topIndent+ZP(n,z,r.font).height:0)+(e?v.topIndent+v.separatorHeight:0)}function hQ(n,t,e){return n?e?n=te.Z.getNextDateUnit(n):n+=t:n=t,n}function bV(n){var t;return null===(t=n.workWeek)||void 0===t?void 0:t[0]}function ZP(n,t,e){var i=n.text(t,-1e3,-1e3).css(di(e)).append(n.root),r=i.getBBox();return i.remove(),r}function Rf(n,t,e,i){return(0,w.$K)(n)&&(n=t?te.Z.correctDateWithUnitBeginning(new Date(n),e,null,i):(0,ae.zB)(ND((0,ae.zB)(n/e))*e)),n}function xQ(n,t,e){var i=Math.abs(t-n)/e,r=i-ND(i);return r>0?dy(Math.abs((0,ae.zB)(Dt(r,10)))):0}var j0=Cl.inherit({_toggleParentsScrollSubscription(){},_eventsMap:{onValueChanged:{name:cV}},_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 n=this,t=n._renderer,e=t.root;e.css({"touch-action":"pan-y"}),n._clipRect=t.clipRect();var i=t.g().attr({class:"dxrs-view"}).append(e),r=t.g().attr({class:"dxrs-slidersContainer","clip-path":n._clipRect.id}).append(e),v=t.g().attr({class:"dxrs-scale","clip-path":n._clipRect.id}).append(e),D=t.g().attr({class:"dxrs-scale-elements","clip-path":n._clipRect.id}).append(e),A=t.g().attr({class:"dxrs-scale-breaks"}).append(e),z=t.g().attr({class:"dxrs-trackers"}).append(e);n._axis=new Jb({renderer:t,root:v,scaleBreaksGroup:A,labelsAxesGroup:D,updateSelectedRange:function(Q,ue){n.setValue(kr(Q),ue)},incidentOccurred:n._incidentOccurred}),n._rangeView=new HP({renderer:t,root:i,translator:n._axis.getTranslator()}),n._slidersController=new FP({renderer:t,root:r,trackersGroup:z,updateSelectedRange:function(Q,ue,we){n._rangeOption||n.option(kf,kr(Q,(0,w.PO)(n._options.silent(kf)))),n._eventTrigger(cV,{value:kr(Q),previousValue:kr(ue),event:we})},axis:n._axis,translator:n._axis.getTranslator()}),n._tracker=new VP({renderer:t,controller:n._slidersController})},_getDefaultSize:function(){return{width:400,height:160}},_disposeCore:function(){this._axis.dispose(),this._slidersController.dispose(),this._tracker.dispose()},_applySize:function(n){this._clientRect=n.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 n=this._options.silent(),t=this._axis;if(n.dataSource){var e=this.option("selectedRangeUpdateMode"),i=this.getValue(),r=(0,w.$K)(i[0])&&(0,w.$K)(i[1]);if((0,w.$K)(e)?(e=Sn(e),this.__skipAnimation=!0):r&&!this._dataSourceIsAsync&&(e=UP),"auto"===e&&r){var v=t.allScaleSelected(i);e=v.startValue&&v.endValue?UP:v.endValue?"shift":"keep"}if(e===UP)n[kf]=null;else if("shift"===e&&r){var D=this.getValue();this.__skipAnimation=!0,n[kf]={length:t.getVisualRangeLength({minVisible:D[0],maxVisible:D[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 n=this._options.silent(kf);this._slidersController.setSelectedRange(n&&Dr(n))},_change_VALUE:function(){var n=this._rangeOption;this._dataSourceIsAsync=!this._dataIsReady(),n&&(this._options.silent(kf,n),this.setValue(n))},_validateRange:function(n,t){var e=i=>(0,w.$K)(i)&&!this._axis.getTranslator().isValid(i);this._dataIsReady()&&(e(n)||e(t))&&this._incidentOccurred("E2203")},_applyChanges:function(){var n=this,t=n._options.silent(kf);n._changes.has("VALUE")&&t&&(n._rangeOption=t),n.callBase.apply(n,arguments),n._rangeOption=null,n.__isResizing=n.__skipAnimation=!1},_applyMostlyTotalChange:function(){var e,n=this._renderer,t=this._clientRect,i={left:t[0],top:t[1],width:t[2]-t[0],height:t[3]-t[1]};(this.__isResizing||this.__skipAnimation)&&(e=n.animationEnabled(),n.updateAnimationOptions({enabled:!1})),this._clipRect.attr({x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}),this._axis.getTranslator().update(new os,i,{isHorizontal:!0}),this._updateContent({left:t[0],top:t[1],width:t[2]-t[0],height:t[3]-t[1]}),(this.__isResizing||this.__skipAnimation)&&n.updateAnimationOptions({enabled:e}),this._drawn()},_dataSourceChangedHandler:function(){this._setValueByDataSource(),this._requestChange(["MOSTLY_TOTAL"])},_completeSeriesDataSourceCreation(n,t){var e=this._clientRect,i={left:e[0],top:e[1],width:e[2]-e[0],height:e[3]-e[1]};this._axis.updateOptions((0,y.l)({},n,{isHorizontal:!0,label:{}})),t.isShowChart()&&this._axis.setMarginOptions(t.getMarginOptions(i)),this._axis.updateCanvas(i),t.createPoints()},_updateContent:function(n){var t=this.option("chart"),e=this._createSeriesDataSource(t),i=!(e&&e.isShowChart()||this.option("background.image.url")),r=function yQ(n,t,e,i){var r=0,v=O_(Sn(n.valueType)),D=function(z,Q){var ue=z===dV?"start":"end";(0,w.$K)(n[z])&&(r=Q(n[z]),(0,w.$K)(r)?n[z]=r:(n[z]=void 0,e("E2202",[ue])))};(v=t||v)||(v=CV(n.startValue,n.endValue)||"numeric"),(v===zD||n.categories)&&(n.type=cy,v=zD),n.containerColor=i,n.valueType=v,n.dataType=v;var A=lp(v);return D(dV,A),D("endValue",A),xV(n,10,e),n.type||(n.type="continuous"),n.parser=A,n.type===hy&&(n.minorTick.visible=!1,n.minorTickInterval=n.minRange,n.marker.visible=!1,n.maxRange=void 0),n.forceUserTickInterval|=(0,w.$K)(n.tickInterval)&&!(0,w.$K)(n.axisDivisionFactor),n.axisDivisionFactor=(0,w.$K)(n.axisDivisionFactor)?n.axisDivisionFactor:30,n.minorAxisDivisionFactor=(0,w.$K)(n.minorAxisDivisionFactor)?n.minorAxisDivisionFactor:15,n}(this._getOption("scale"),e&&e.getCalculatedValueType(),this._incidentOccurred,this._getOption("containerBackgroundColor",!0));e&&this._completeSeriesDataSourceCreation(r,e);var v=function fQ(n,t){var e,i,A,z,ue,r=!1,v=t.startValue,D=t.endValue,Q=n?n.getBoundRange().arg:new os,we="datetime"===t.valueType,Le=bV(t),Ue=t.minRange;return t.type===cy&&((ue=new os({minVisible:v,maxVisible:D})).addRange(Q),Q=ue,t._categoriesInfo=z=_r(A=(A=n?n.argCategories:t.categories||v&&D&&[v,D])||[],v,D)),t.type===hy&&(v=t.startValue=Rf(t.startValue,we,Ue,Le),D=t.endValue=Rf(t.endValue,we,Ue,Le),Q.minVisible=Rf(Q.minVisible,we,Ue,Le),Q.maxVisible=Rf(Q.maxVisible,we,Ue,Le),Q.min=Rf(Q.min,we,Ue,Le),Q.max=Rf(Q.max,we,Ue,Le)),(0,w.$K)(v)&&(0,w.$K)(D)?(r=z?z.inverted:v>D,e=z?z.start:r?D:v,i=z?z.end:r?v:D):(0,w.$K)(v)||(0,w.$K)(D)?(e=v,i=D):z&&(e=z.start,i=z.end),Q.addRange({invert:r,min:e,max:i,minVisible:e,maxVisible:i,dataType:t.valueType}),Q.addRange({categories:n?void 0:A,base:t.logarithmBase,axisType:t.type,dataType:t.valueType}),n&&Q.sortCategories(A),Q}(e,r),D=function gQ(n,t,e,i){var r,z,Q,v=(0,w.$K)(i.minVisible)?i.minVisible:i.min,D=(0,w.$K)(i.maxVisible)?i.maxVisible:i.max,A=n._categoriesInfo,ue={};return n.type===hy?r=function pQ(n,t,e,i){var D,Q,ue,r=n.minorTickInterval,v=n.tickInterval,A="datetime"===n.valueType,z=n.axisDivisionFactor||{};if(!v)do{if(v===(D=hQ(v,r,A)))break;v=D,A&&(D=te.Z.dateToMilliseconds(v)),Q=dy((e-t)/D),ue=ND(i/(z[v]||50))||1}while(D&&Q>ue);return{tickInterval:v,minorTickInterval:r,bounds:{minVisible:t,maxVisible:e},ticks:[]}}(n,v,D,t):(Q=(z=hp({axisType:n.type,dataType:n.valueType,logBase:n.logarithmBase,allowNegatives:!0,linearThreshold:Math.abs(n.linearThreshold||0),axisDivisionFactor:n.axisDivisionFactor,minorAxisDivisionFactor:n.minorAxisDivisionFactor,calculateMinors:!0,allowDecimals:n.allowDecimals,endOnTick:n.endOnTick,incidentOccurred:e,rangeIsEmpty:i.isEmpty()})({min:v,max:D,categories:(0,w.$K)(A)?A.categories:[]},t,n.tickInterval,n.forceUserTickInterval,void 0,n.minorTickInterval,n.minorTickCount)).ticks.length,ue.minVisible=z.ticks[0]<v?z.ticks[0]:v,ue.maxVisible=z.ticks[Q-1]>D?z.ticks[Q-1]:D,r={tickInterval:z.tickInterval,minorTickInterval:0===n.minorTickInterval?0:z.minorTickInterval,bounds:ue,ticks:z.ticks}),r}(r,n.width,this._incidentOccurred,v),A=e&&e.isShowChart()&&e.getThemeManager();A&&xV(t&&t.valueAxis,A.getOptions("valueAxis").logarithmBase,this._incidentOccurred),function vQ(n,t,e,i,r){var v,D,z,A=n._categoriesInfo,Q=n.valueType===HD;t&&!t.isEmpty()&&!e.isEmpty()&&(e.addRange(v=i.bounds),n.startValue=e.invert?v.maxVisible:v.minVisible,n.endValue=e.invert?v.minVisible:v.maxVisible),n.marker.visible=r(Q&&-1===n.type.indexOf(cy),n.marker.visible,n.startValue,n.endValue,i.tickInterval),A&&(n.startValue=A.start,n.endValue=A.end),-1===n.type.indexOf(cy)&&(D=(0,w.J_)(n.startValue)&&(0,w.J_)(n.endValue)&&n.startValue.getTime()===n.endValue.getTime()||n.startValue===n.endValue),n.isEmpty=function mQ(n,t){return!(0,w.$K)(n)||!(0,w.$K)(t)}(n.startValue,n.endValue)||D,n.isEmpty?n.startValue=n.endValue=void 0:(n.minorTickInterval=i.minorTickInterval,n.tickInterval=i.tickInterval,Q&&(!(0,w.$K)(n.label.format)||n.type===hy&&n.minorTickInterval!==n.tickInterval)&&(n.label.format=n.type===cy?Fa.Z.getDateFormatByTicks(i.ticks):n.marker.visible?te.Z.getDateFormatByTickInterval(n.tickInterval):Fa.Z.getDateFormatByTickInterval(n.startValue,n.endValue,n.tickInterval))),n.type===hy&&(z=function CQ(n){var t=n.startValue,e=n.endValue,i="datetime"===n.valueType,r=bV(n),v=n.tickInterval,D={intervals:[]};return!(0,w.$K)(t)||!(0,w.$K)(e)||(D.intervals=te.Z.getSequenceByInterval(t,e,n.minorTickInterval),v!==n.minorTickInterval&&(D.altIntervals=D.intervals,t=Rf(t,i,v,r),e=Rf(e,i,v,r),D.intervals=te.Z.getSequenceByInterval(t,e,v),D.intervals[0]=D.altIntervals[0])),D}(n),n.customMinorTicks=z.altIntervals,n.customTicks=z.intervals,n.customBoundTicks=[n.customTicks[0]])}(r,e,v,D,function _Q(n){return function(t,e,i,r,v){return e&&t&&(!(0,w.$K)(v)||v.years||v.months>=6||n/50<dy((r-i)/te.Z.dateToMilliseconds("year"))+1)&&(e=!1),e}}(n.width)),function uQ(n,t){var e=t.minorTickInterval||t.tickInterval;"datetime"===t.valueType&&(e=te.Z.dateToMilliseconds(e)),n.addRange({interval:e})}(v,r);var z=this._prepareSliderMarkersOptions(r,n.width,D,v),Q=function sQ(n,t,e,i,r){var v,z,Q,ue,we,Ue,ut,D=0,A=0,Le="semidiscrete"===t.type?t.customTicks:r.ticks;return Q=(i=i||{}).left,ue=i.right,we=e.placeholderHeight,e.visible&&(v=vV(n,t.startValue,e),z=vV(n,t.endValue,e),void 0===we&&(we=WP(v,z))),t.label.visible&&(Ue=(0,w.$K)(t.startValue)?Le[0]:void 0,ut=(0,w.$K)(t.endValue)?Le[Le.length-1]:void 0,D=yV(n,Ue,t,r),A=yV(n,ut,t,r)),{left:Q=void 0!==Q?Q:D,right:ue=(void 0!==ue?ue:A)||1,top:we||0,bottom:0}}(this._renderer,r,z,this.option("indent"),D),ue={left:n.left+Q.left,top:n.top+Q.top,width:n.left+Q.left+WP(n.width-Q.left-Q.right,1),height:WP(i?24:n.height-Q.top-Q.bottom-dQ(this._renderer,r,lQ(r),D),0),right:0,bottom:0};this._axis.update(r,i,ue,v,e),r.minorTickInterval=r.isEmpty?0:r.minorTickInterval,this._updateElements(r,z,i,ue,e),A&&A.dispose()},_updateElements:function(n,t,e,i,r){var v=this._getOption("behavior"),D=this._getOption("shutter"),A=n.type!==hy;D.color=D.color||this._getOption(hV,!0),this._rangeView.update(this.option("background"),this._themeManager.theme("background"),i,e,v.animationEnabled&&this._renderer.animationEnabled(),r),this._isUpdating=!0,this._slidersController.update([i.top,i.top+i.height],v,e,this._getOption("sliderHandle"),t,D,{minRange:A?this.option("scale.minRange"):void 0,maxRange:A?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(),v)},_createSeriesDataSource:function(n){var t,e=this._dataSourceItems(),i=this._getOption("scale"),r=i.valueType||CV(i.startValue,i.endValue),v=new Hl({renderer:this._renderer,axisType:"xyAxes",drawingType:"linear"});return v.updateOptions({isHorizontal:!1,label:{},categoriesSortingMethod:this._getOption("chart").valueAxis.categoriesSortingMethod}),(e||n&&n.series)&&(n=(0,y.l)({},n,{theme:this.option("theme")}),t=new zP({renderer:this._renderer,dataSource:e,valueType:Sn(r),axisType:i.type,chart:n,dataSourceField:this.option("dataSourceField"),incidentOccurred:this._incidentOccurred,categories:i.categories,argumentAxis:this._axis,valueAxis:v})),t},_prepareSliderMarkersOptions:function(n,t,e,i){var r=e.minorTickInterval,v=e.tickInterval,D=v,A=n.endValue,z=n.startValue,Q=this._getOption("sliderMarker"),ue=!this._getOption("behavior").snapToTicks,we=n.type===cy,Le=n.valueType===HD;return Q.borderColor=this._getOption(hV,!0),!Q.format&&!i.isEmpty()&&(ue&&(0,w.kE)(n.startValue)&&(Q.format={type:"fixedPoint",precision:xQ(z,A,t)}),Le&&!we&&((0,w.$K)(r)&&0!==r&&(D=function cQ(n,t,e){var i=te.Z.getDateUnitInterval(t),r=te.Z.getDateUnitInterval(n),v=te.Z.dateUnitIntervals.indexOf(i);return e&&i===r&&v>0&&(i=te.Z.dateUnitIntervals[v-1]),i}(v,r,ue)),n.marker.visible?Q.format=te.Z.getDateFormatByTickInterval(D):(0,w.$K)(z)&&(0,w.$K)(A)&&(Q.format=Fa.Z.getDateFormatByTickInterval(z,A,D))),Le&&we&&e.ticks.length&&(Q.format=Fa.Z.getDateFormatByTicks(e.ticks))),Q},getValue:function(){return kr(this._slidersController.getSelectedRange())},setValue:function(n,t){var e=Dr(n);!this._isUpdating&&n&&(this._validateRange(e.startValue,e.endValue),!Nr(e,this._slidersController.getSelectedRange())&&this._slidersController.setSelectedRange(e,t))},_setContentSize:function(){this.__isResizing=2===this._changes.count(),this.callBase.apply(this,arguments)}});function EQ(){return 1}function SQ(n){return n%2==1?-ND(n/2):-n/2}function OQ(n,t,e,i){function r(D){2===D.length&&Eo_areLabelsOverlap(t[D[0]],t[D[1]],e,i)&&n[D[0]].removeLabel()}function v(D){for(var A=[],z=D;A.length<2&&z<n.length;z++)n[z].label&&A.push(z);return A}n.length<3||(r(v(0)),r(v(n.length-2).reverse()))}function Jb(n){this._axis=new Hl({renderer:n.renderer,axesContainerGroup:n.root,scaleBreaksGroup:n.scaleBreaksGroup,labelsAxesGroup:n.labelsAxesGroup,incidentOccurred:n.incidentOccurred,axisType:"xyAxes",drawingType:"linear",widgetClass:"dxrs",axisClass:"range-selector",isArgumentAxis:!0,getTemplate(){}}),this._updateSelectedRangeCallback=n.updateSelectedRange,this._axis.getAxisSharpDirection=this._axis.getSharpDirectionByCoords=EQ,this._axis.getTickStartPositionShift=SQ,this._axis._checkShiftedLabels=OQ}(0,O.S6)(["selectedRangeColor","containerBackgroundColor","sliderMarker","sliderHandle","shutter","background","behavior","chart","indent"],function(n,t){j0.prototype._optionChangesMap[t]="MOSTLY_TOTAL"}),Jb.prototype={constructor:Jb,update:function(n,t,e,i,r){var v=this._axis;v.updateOptions(function bQ(n,t,e,i){return n.marker.label.font=n.label.font,n.color=n.marker.color=n.tick.color,n.opacity=n.marker.opacity=n.tick.opacity,n.width=n.marker.width=n.tick.width,n.placeholderSize=(n.placeholderHeight||0)+i,n.argumentType=n.valueType,n.visible=t,n.isHorizontal=!0,n.calculateMinors=!0,n.semiDiscreteInterval=n.minRange,t||(n.minorTick.length=n.tick.length=e),n.label.indentFromAxis=n.label.topIndent+i,n}(n,t,e.height,e.height/2-dy(n.width/2))),v.validate(),v.setBusinessRange(i,!0),void 0!==r&&r.isShowChart()&&v.setMarginOptions(r.getMarginOptions(e)),v.draw(e),v.shift({left:0,bottom:-e.height/2+e.top}),v.getMarkerTrackers()&&function wQ(n,t,e){function i(r){var v=r.target.range,D=n.minRange?te.Z.addInterval(v.startValue,n.minRange):void 0,A=n.maxRange?te.Z.addInterval(v.startValue,n.maxRange):void 0;D&&D>v.endValue||A&&A<v.endValue||e(v,r)}(0,O.S6)(t,function(r,v){v.on("dxpointerdown",i)})}(n,v.getMarkerTrackers(),this._updateSelectedRangeCallback),v.drawScaleBreaks({start:e.top,end:e.top+e.height})},visualRange:function(){},getViewport:function(){return{}},allScaleSelected(n){var{startValue:t,endValue:e}=this._axis.visualRange();return{startValue:n[0].valueOf()===t.valueOf(),endValue:n[1].valueOf()===e.valueOf()}},getOptions(){return this._axis.getOptions()||{}}},(0,O.S6)(Hl.prototype,n=>{"constructor"!==n&&"_"!==n[0]&&(0,w.mf)(Hl.prototype[n])&&!(n in Jb.prototype)&&(Jb.prototype[n]=function(){var t=this._axis;return t[n].apply(t,arguments)})}),(0,T.Z)("dxRangeSelector",j0);const DQ=j0;j0.addPlugin(Bu),j0.addPlugin(Oe),j0.addPlugin(xi),j0.addPlugin(Ha);const TQ=DQ,IQ={provide:ie.JU,useExisting:(0,a.Gpc)(()=>MQ),multi:!0};let MQ=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),A.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 TQ(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-range-selector"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,IQ,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},styles:["[_nghost-%COMP%] {  display: block; }"]}),n})(),wV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.DTQ,M.qB1,M.Gc$,M.dVY,M._7s,M.MHt,M.DQr,M.bgw,M.Ye1,M.kZH,M.e1H,M.dwQ,M.$a2,M.nah,M.Re4,M.PR8,M.gN6,M.Lxh,M.kWr,M.XfX,M.DB7,M.cdq,M.Mel,M.ngB,M.xOr,M.K5R,M.zvd,M.$Tm,M.YXG,M.FZZ,M.IqU,M.l95,M.NsS,M.cp7,M.Ezz,M.Rvn,M.jri,M.Wi7,M.d_Q,M.P5j,M.kln,M.c6p,M.tAX,M.y6c,M.p7n,M.ZLS,M.Rue,M.gI1,M.lj9,M.Flw,M.rHV,M.KjY,M.ENI,M.M2g,M.Zt4,M.xNt,M.cRZ,M.SGB,M.HC7,M.Irw,M.fhR,M.ji7,M.ZmN,M.mbS,M.Kx,M.Bh5,M.yWq,M.rrz,M.lTN,f.Lz,f.ie,p.Cu],M.DTQ,M.qB1,M.Gc$,M.dVY,M._7s,M.MHt,M.DQr,M.bgw,M.Ye1,M.kZH,M.e1H,M.dwQ,M.$a2,M.nah,M.Re4,M.PR8,M.gN6,M.Lxh,M.kWr,M.XfX,M.DB7,M.cdq,M.Mel,M.ngB,M.xOr,M.K5R,M.zvd,M.$Tm,M.YXG,M.FZZ,M.IqU,M.l95,M.NsS,M.cp7,M.Ezz,M.Rvn,M.jri,M.Wi7,M.d_Q,M.P5j,M.kln,M.c6p,M.tAX,M.y6c,M.p7n,M.ZLS,M.Rue,M.gI1,M.lj9,M.Flw,M.rHV,M.KjY,M.ENI,M.M2g,M.Zt4,M.xNt,M.cRZ,M.SGB,M.HC7,M.Irw,M.fhR,M.ji7,M.ZmN,M.mbS,M.Kx,M.Bh5,M.yWq,M.rrz,M.lTN,f.ie]}),n})();var EV=l(1409),AQ=l(974),PQ=l(4594),kQ=l(322),RQ={top:{my:"bottom center",at:"top center",collision:"fit none"},bottom:{my:"top center",at:"bottom center",collision:"fit none"}},LQ={h:2,v:1};class FQ extends kQ.f{_normalizePosition(t){var e=this._props.target,i=".".concat("dx-slider"),r=e?.closest(i),v={of:e,boundaryOffset:LQ,boundary:r?.get(0)},D=(0,y.l)(!0,{},v,this._positionToObject(t));return this._positionSide=this._getDisplaySide(D),D}_renderContentInitialPosition(){super._renderContentInitialPosition(),this._fitIntoSlider()}_fitIntoSlider(){var{collisionSide:t,oversize:e}=$O.Z.calculate(this._$content,this._position).h;(0,al.pB)(this._$content,{left:this._visualPosition.left+("left"===t?1:-1)*e}),this._updateVisualPositionValue()}_positionToObject(t){return(0,w.HD)(t)?(0,y.l)({},RQ[t]):t}}var NQ=JO.inherit({_getDefaultOptions(){return(0,y.l)(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:n=>n,value:0})},_initMarkup(){this.callBase(),this._attachToMarkup(this.option("visible")),this._toggleShowModeClass()},_renderContent(){this.callBase(),this._renderContentText()},_renderContentText(){var{value:n,format:t}=this.option(),e=Xv.Z.format(n??0,t);this.$content().text(e),this._renderPosition()},_toggleShowModeClass(){var n="onHover"===this.option("showMode");this.option("target").toggleClass("dx-slider-tooltip-visible-on-hover",n)},_initPositionController(){this._positionController=new FQ(this._getPositionControllerConfig())},_attachToMarkup(n){var t=this.option("target");n?this.$element().appendTo(t):this.$element().detach()},_optionChanged(n){var{name:t,value:e}=n;switch(t){case"visible":this._attachToMarkup(e),this.callBase(n);break;case"showMode":this._toggleShowModeClass();break;case"format":case"value":this._renderContentText();break;default:this.callBase(n)}},updatePosition(){this._renderPosition()}});const HQ=NQ;var WQ=sa.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{hoverStateEnabled:!1,value:0,tooltip:{enabled:!1,format:n=>n,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:n,value:t}=this.option(),{position:e,format:i,enabled:r,showMode:v}=n,D=(0,u.Z)("<div>");this._sliderTooltip=this._createComponent(D,HQ,{target:this.$element(),container:D,position:e,visible:r,showMode:v,format:i,value:t})},_clean:function(){this.callBase(),this._sliderTooltip=null},_updateTooltipOptions(n){var t,e=sa.Z.getOptionsFromContainer(n);this._setWidgetOption("_sliderTooltip",[e]),null===(t=this._sliderTooltip)||void 0===t||t.option("visible",e.enabled)},_optionChanged:function(n){var{name:t,value:e}=n;switch(t){case"value":var i;null===(i=this._sliderTooltip)||void 0===i||i.option("value",e),this.setAria("valuenow",e);break;case"tooltip":this._updateTooltipOptions(n);break;default:this.callBase(n)}},updateTooltipPosition:function(){var n;null===(n=this._sliderTooltip)||void 0===n||n.updatePosition()},repaint:function(){var n;null===(n=this._sliderTooltip)||void 0===n||n.repaint()}});const wh=WQ;var SV="dx-slider-label",KP="dx-slider-label-position-",OV="dx-slider-tooltip-position-",DV="Validation",TV=AQ.Z.inherit({_activeStateUnit:".dx-slider-handle",_supportedKeys:function(){var n=this.option("rtlEnabled"),t=(r,v)=>{r=this._valueStep(r);var D=this.option("step"),A=this.option("value"),z=A-this.option("min"),Q=(0,ae.lb)(z,D,this._getValueExponentLength()),ue=v?A-r+(Q?D-Q:0):A+r-Q,we=this.option("min"),Le=this.option("max");return ue<we?ue=we:ue>Le&&(ue=Le),this._roundToExponentLength(ue)},e=r=>{this.option("value",t(r,n))},i=r=>{this.option("value",t(r,!n))};return(0,y.l)(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 v=this.option("min");this.option("value",v)},end:function(r){this._processKeyboardEvent(r);var v=this.option("max");this.option("value",v)}})},_processKeyboardEvent:function(n){n.preventDefault(),n.stopPropagation(),this._saveValueChangeEvent(n)},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{value:50,hoverStateEnabled:!0,activeStateEnabled:!0,step:1,showRange:!0,tooltip:{enabled:!1,format:function(n){return n},position:"top",showMode:"onHover"},label:{visible:!1,position:"bottom",format:function(n){return n}},keyStep:1,useInkRipple:!1,validationMessageOffset:(0,N.x2)()?{h:18,v:0}:{h:7,v:4},focusStateEnabled:!0,valueChangeMode:"onHandleMove"})},_toggleValidationMessage:function(n){this.option("isValid")||this.$element().toggleClass("dx-invalid-message-visible",n)},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var n=(0,N.Vk)();return(0,N.x2)(n)},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 n=this.NAME+DV,t=(0,k.V4)("focusin",n),e=(0,k.V4)("focusout",n),i=this._focusTarget();d.Z.on(i,t,this._toggleValidationMessage.bind(this,!0)),d.Z.on(i,e,this._toggleValidationMessage.bind(this,!1))},_detachFocusEvents:function(){this.callBase();var n=this._focusTarget();this._toggleValidationMessage(!1),d.Z.off(n,this.NAME+DV)},_render:function(){this.callBase(),this._repaintHandle()},_renderSubmitElement:function(){this._$submitElement=(0,u.Z)("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=(0,PQ.sY)({waveSizeCoefficient:.7,isCentered:!0,wavesNumber:2,useHoldAnimation:!1})},_renderInkWave:function(n,t,e,i){if(this._inkRipple){var r={element:n,event:t,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,GA.Z,{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(n,t){var e=t||(0,u.Z)("<div>").appendTo(this._$range),i=this.option("tooltip");return this.$element().toggleClass(OV+"bottom",i.enabled&&"bottom"===i.position).toggleClass(OV+"top",i.enabled&&"top"===i.position),this._createComponent(e,wh,{value:n,tooltip:i}),e},_renderAriaMinAndMax:function(){this.setAria({valuemin:this.option("min"),valuemax:this.option("max")},this._$handle)},_toggleActiveState:function(n,t){this.callBase(n,t),this._renderInkWave(n,null,!!t,1)},_toggleFocusClass:function(n,t){if(this.callBase(n,t),!this._disposed){var e=(0,u.Z)(t||this._focusTarget());this._renderInkWave(e,null,n,0)}},_renderLabels:function(){if(this.$element().removeClass(KP+"bottom").removeClass(KP+"top"),this.option("label.visible")){var n=this.option("min"),t=this.option("max"),e=this.option("label.position"),i=this.option("label.format");this._$minLabel||(this._$minLabel=(0,u.Z)("<div>").addClass(SV).appendTo(this._$wrapper)),this._$minLabel.text(Xv.Z.format(n,i)),this._$maxLabel||(this._$maxLabel=(0,u.Z)("<div>").addClass(SV).appendTo(this._$wrapper)),this._$maxLabel.text(Xv.Z.format(t,i)),this.$element().addClass(KP+e)}else this._$minLabel&&(this._$minLabel.remove(),delete this._$minLabel),this._$maxLabel&&(this._$maxLabel.remove(),delete this._$maxLabel)},_renderStartHandler:function(){var n=(0,k.V4)(_o.Z.down,this.NAME),t=(0,k.V4)(g.u,this.NAME),e=this._createAction(this._startHandler.bind(this)),i=this.$element();d.Z.off(i,n),d.Z.on(i,n,r=>{(0,k.N5)(r)&&e({event:r})}),d.Z.off(i,t),d.Z.on(i,t,r=>{var v=this._activeHandle();v&&(d.Z.trigger(v,"focusin"),d.Z.trigger(v,"focus")),e({event:r}),"onHandleRelease"===this.option("valueChangeMode")&&(this.option("value",this._getActualValue()),this._actualValue=void 0)})},_itemWidthFunc:function(){return this._itemWidthRatio},_swipeStartHandler:function(n){var t=this.option("rtlEnabled");(0,k.z6)(n.event)&&this._createAction(this._startHandler.bind(this))({event:n.event}),this._feedbackDeferred=new P.BH,(0,EV.dR)(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();n.event.maxLeftOffset=t?i:e,n.event.maxRightOffset=t?e:i,this._itemWidthRatio=(0,s.dz)(this.$element())/this._swipePixelRatio(),this._needPreventAnimation=!0},_swipeEndHandler:function(n){if(!this._isSingleValuePossible()){this._feedbackDeferred.resolve(),this._toggleActiveState(this._activeHandle(),!1);var t=this.option("rtlEnabled")?-1:1,e=this._startOffset+t*n.event.targetOffset/this._swipePixelRatio();delete this._needPreventAnimation,this._saveValueChangeEvent(n.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(n){this._isSingleValuePossible()||(this._saveValueChangeEvent(n.event),this._updateHandlePosition(n))},_updateHandlePosition:function(n){var t=this.option("rtlEnabled")?-1:1,e=Math.min(this._startOffset+t*n.event.offset/this._swipePixelRatio(),1);(0,s.cl)(this._$range,100*e+"%"),wh.getInstance(this._activeHandle()),this._changeValueOnSwipe(e)},_swipePixelRatio:function(){var n=this.option("min");return(this.option("max")-n)/this._valueStep(this.option("step"))},_valueStep:function(n){return(!n||isNaN(n))&&(n=1),n},_getValueExponentLength:function(){var{step:n,min:t}=this.option();return Math.max((0,ae.zP)(n),(0,ae.zP)(t))},_roundToExponentLength:function(n){var t=this._getValueExponentLength();return(0,ae.y6)(n,t)},_changeValueOnSwipe:function(n){var t=this.option("min"),e=this.option("max"),i=this._valueStep(this.option("step")),v=t+n*(e-t);if(!(i<0))if(v===e||v===t)this._setValueOnSwipe(v);else{var D=Math.round((v-t)/i);v=this._roundToExponentLength(D*i+t),this._setValueOnSwipe(Math.max(Math.min(v,e),t))}},_setValueOnSwipe:function(n){this._actualValue=n,"onHandleRelease"===this.option("valueChangeMode")?wh.getInstance(this._activeHandle()).option("value",n):(this.option("value",n),this._saveValueChangeEvent(void 0))},_getActualValue:function(){var n;return null!==(n=this._actualValue)&&void 0!==n?n:this.option("value")},_isSingleValuePossible:function(){var{min:n,max:t}=this.option();return n===t},_startHandler:function(n){if(!this._isSingleValuePossible()){var t=n.event;this._currentRatio=((0,k.a0)(t).x-this._$bar.offset().left)/(0,s.dz)(this._$bar),this.option("rtlEnabled")&&(this._currentRatio=1-this._currentRatio),this._saveValueChangeEvent(t),this._changeValueOnSwipe(this._currentRatio)}},_renderValue:function(){this.callBase();var n=this._getActualValue();this._getSubmitElement().val((0,E.FH)(n)),wh.getInstance(this._activeHandle()).option("value",n)},_setRangeStyles:function(n){n&&this._$range.css(n)},_callHandlerMethod:function(n,t){wh.getInstance(this._$handle)[n](t)},_repaintHandle:function(){this._callHandlerMethod("repaint")},_fitTooltip:function(){this._callHandlerMethod("updateTooltipPosition")},_optionChanged:function(n){switch(n.name){case"visible":this.callBase(n),this._renderHandle(),this._repaintHandle();break;case"min":case"max":this._renderValue(),this.callBase(n),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(n)}},_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()}});(0,T.Z)("dxSlider",TV);const IV=TV;var GP="dx-rangeslider",WD=GP+"-start-handle",XQ=GP+"-end-handle",MV=IV.inherit({_supportedKeys:function(){var n=this.option("rtlEnabled"),t=this,e=function(D,A){t.option("start")===t.option("end")&&(t._capturedHandle=A,D.target=t._capturedHandle,d.Z.trigger(t._capturedHandle,"focus"))},i=function(D,A,z){var ue=(0,u.Z)(D.target).hasClass(WD)?"start":"end",we=t.option(ue);A=t._valueStep(A),t.option(ue,we+=z*(n?-A:A))},r=function(D,A){e(D,n?t._$handleStart:t._$handleEnd),i(D,A,1)},v=function(D,A){e(D,n?t._$handleEnd:t._$handleStart),i(D,A,-1)};return(0,y.l)(this.callBase(),{leftArrow:function(D){this._processKeyboardEvent(D),v(D,this.option("step"))},rightArrow:function(D){this._processKeyboardEvent(D),r(D,this.option("step"))},pageUp:function(D){this._processKeyboardEvent(D),r(D,this.option("step")*this.option("keyStep"))},pageDown:function(D){this._processKeyboardEvent(D),v(D,this.option("step")*this.option("keyStep"))},home:function(D){this._processKeyboardEvent(D);var A=(0,u.Z)(D.target).hasClass(WD),z=A?"start":"end",ue=this.option(A?"min":"start");this.option(z,ue)},end:function(D){this._processKeyboardEvent(D);var A=(0,u.Z)(D.target).hasClass(WD),z=A?"start":"end",ue=this.option(A?"end":"max");this.option(z,ue)}})},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{start:40,end:60,value:[40,60],startName:"",endName:""})},_renderSubmitElement:function(){var n=this.$element();this._$submitStartElement=(0,u.Z)("<input>").attr("type","hidden").attr("name",this.option("startName")).appendTo(n),this._$submitEndElement=(0,u.Z)("<input>").attr("type","hidden").attr("name",this.option("endName")).appendTo(n)},_initOptions:function(n){this.callBase(n);var t=this.initialOption("value"),e=this.option("value");e[0]===t[0]&&e[1]===t[1]?this.option("value",[this.option("start"),this.option("end")]):this.option({start:e[0],end:e[1]})},_initMarkup:function(){this.$element().addClass(GP),this.callBase()},_renderContentImpl:function(){this._callHandlerMethod("repaint"),this.callBase()},_renderHandle:function(){this._$handleStart=this._renderHandleImpl(this.option("start"),this._$handleStart).addClass(WD),this._$handleEnd=this._renderHandleImpl(this.option("end"),this._$handleEnd).addClass(XQ),this._updateHandleAriaLabels()},_startHandler:function(n){var t=n.event,e=this._$range,i=(0,s.dz)(e),r=(0,k.a0)(t).x-this._$bar.offset().left,v=e.position().left,D=e.position().left+i,A=this.option("rtlEnabled");this._capturedHandle=(A?-1:1)*((v+D)/2-r)>0?this._$handleStart:this._$handleEnd,this.callBase(n)},_updateHandleAriaLabels:function(){this.setAria("label",wn.Z.getFormatter("dxRangeSlider-ariaFrom")(this.option("dxRangeSlider-ariaFrom")),this._$handleStart),this.setAria("label",wn.Z.getFormatter("dxRangeSlider-ariaTill")(this.option("dxRangeSlider-ariaTill")),this._$handleEnd)},_activeHandle:function(){return this._capturedHandle},_updateHandlePosition:function(n){var e=this.option("rtlEnabled")?-1:1,i=this.option("max"),r=this.option("min"),v=this._startOffset+e*n.event.offset/this._swipePixelRatio(),D=(v=v.toPrecision(12))*(i-r)+r;this._updateSelectedRangePosition(v,v),wh.getInstance(this._activeHandle()),this._changeValueOnSwipe(v);var Q,[A,z]=this._getActualValue();A===z&&(d.Z.trigger(Q=D<A?this._$handleStart:this._$handleEnd,"focus"),Q&&Q!==this._capturedHandle&&(this._updateSelectedRangePosition((A-r)/(i-r),(z-r)/(i-r)),this._toggleActiveState(this._activeHandle(),!1),this._toggleActiveState(Q,!0),this._capturedHandle=Q),this._updateSelectedRangePosition(v,v),this._changeValueOnSwipe(v))},_updateSelectedRangePosition:function(n,t){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*t+"%":100*n+"%")},_setValueOnSwipe:function(n){var t=this._capturedHandle===this._$handleStart?"start":"end",[e,i]=this._getActualValue(),r=this.option("max"),v=this.option("min");e=Math.min(Math.max(e,v),r),i=Math.min(Math.max(i,v),r),"start"===t?e=n>i?i:n:i=n<e?e:n,"onHandleMove"===this.option("valueChangeMode")?this.option("value",[e,i]):(this._actualValue=[e,i],this._renderValue())},_renderValue:function(){var[n,t]=this._getActualValue(),e=this.option("min"),i=this.option("max"),r=this.option("rtlEnabled");n=Math.max(e,Math.min(n,i)),t=Math.max(n,Math.min(t,i)),"onHandleMove"===this.option("valueChangeMode")&&(this._setOptionWithoutOptionChange("start",n),this._setOptionWithoutOptionChange("end",t),this._setOptionWithoutOptionChange("value",[n,t])),this._$submitStartElement.val((0,E.FH)(n)),this._$submitEndElement.val((0,E.FH)(t));var D=i===e?0:(t-e)/(i-e),A=parseFloat((100*(i===e?0:(n-e)/(i-e))).toPrecision(12))+"%",z=parseFloat((100*(1-D)).toPrecision(12))+"%";!this._needPreventAnimation&&this._setRangeStyles({right:r?A:z,left:r?z:A}),wh.getInstance(this._$handleStart).option("value",n),wh.getInstance(this._$handleEnd).option("value",t)},_callHandlerMethod:function(n,t){wh.getInstance(this._$handleStart)[n](t),wh.getInstance(this._$handleEnd)[n](t)},_setValueOption:function(){var n=this.option("start"),t=this.option("end");this.option("value",[n,t])},_optionChanged:function(n){switch(n.name){case"value":if(n.value[0]===n.previousValue[0]&&n.value[1]===n.previousValue[1])break;this._setOptionWithoutOptionChange("start",n.value[0]),this._setOptionWithoutOptionChange("end",n.value[1]),this._renderValue();var t=this.option("start"),e=this.option("end");this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})({start:t,end:e,value:[t,e],event:this._valueChangeEventInstance,previousValue:n.previousValue}),this.validationRequest.fire({value:[t,e],editor:this}),this._saveValueChangeEvent(void 0);break;case"start":case"end":this._setValueOption();break;case"startName":this._$submitStartElement.attr("name",n.value);break;case"endName":this._$submitEndElement.attr("name",n.value);break;case"name":break;default:this.callBase(n)}}});(0,T.Z)("dxRangeSlider",MV);const qQ=MV,JQ={provide:ie.JU,useExisting:(0,a.Gpc)(()=>QQ),multi:!0};let QQ=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),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 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 qQ(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-range-slider"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,JQ,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),AV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.e1H,M.FZZ,M.vZC,f.Lz,f.ie,p.Cu],M.e1H,M.FZZ,M.vZC,f.ie]}),n})();var eee=l(1884),jP=["MO","TU","WE","TH","FR","SA","SU"],jl=function(){function n(t,e){if(0===e)throw new Error("Can't create weekday with n == 0");this.weekday=t,this.n=e}return n.fromStr=function(t){return new n(jP.indexOf(t))},n.prototype.nth=function(t){return this.n===t?this:new n(this.weekday,t)},n.prototype.equals=function(t){return this.weekday===t.weekday&&this.n===t.n},n.prototype.toString=function(){var t=jP[this.weekday];return this.n&&(t=(this.n>0?"+":"")+String(this.n)+t),t},n.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},n}(),Ns=function(n){return null!=n},Eh=function(n){return"number"==typeof n},PV=function(n){return"string"==typeof n&&jP.includes(n)},Xu=Array.isArray,Sh=function(n,t){void 0===t&&(t=n),1===arguments.length&&(t=n,n=0);for(var e=[],i=n;i<t;i++)e.push(i);return e},Ea=function(n,t){var e=0,i=[];if(Xu(n))for(;e<t;e++)i[e]=[].concat(n);else for(;e<t;e++)i[e]=n;return i},tee=function(n){return Xu(n)?n:[n]};function py(n,t,e){void 0===e&&(e=" ");var i=String(n);return i.length>(t>>=0)?String(i):((t-=i.length)>e.length&&(e+=Ea(e,t/e.length)),e.slice(0,t)+String(i))}var Ad=function(n,t){var e=n%t;return e*t<0?e+t:e},$P=function(n,t){return{div:Math.floor(n/t),mod:Ad(n,t)}},Oh=function(n){return!Ns(n)||0===n.length},ll=function(n){return!Oh(n)},Ga=function(n,t){return ll(n)&&-1!==n.indexOf(t)},$0=function(n,t,e,i,r,v){return void 0===i&&(i=0),void 0===r&&(r=0),void 0===v&&(v=0),new Date(Date.UTC(n,t-1,e,i,r,v))},iee=[31,28,31,30,31,30,31,31,30,31,30,31],RV=$0(1970,1,1),ree=[6,0,1,2,3,4,5],Qb=function(n){return n%4==0&&n%100!=0||n%400==0},LV=function(n){return n instanceof Date},ew=function(n){return LV(n)&&!isNaN(n.getTime())},BV=function(n){return 60*n.getTimezoneOffset()*1e3},XP=function(n){return function(n,t){var e=n.getTime()-BV(n),i=t.getTime()-BV(t);return Math.round((e-i)/864e5)}(n,RV)},FV=function(n){return new Date(RV.getTime()+864e5*n)},aee=function(n){var t=n.getUTCMonth();return 1===t&&Qb(n.getUTCFullYear())?29:iee[t]},gy=function(n){return ree[n.getUTCDay()]},VV=function(n,t){var e=$0(n,t+1,1);return[gy(e),aee(e)]},NV=function(n,t){return t=t||n,new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},qP=function(n){return new Date(n.getTime())},HV=function(n){for(var t=[],e=0;e<n.length;e++)t.push(qP(n[e]));return t},tw=function(n){n.sort(function(t,e){return t.getTime()-e.getTime()})},JP=function(n,t){void 0===t&&(t=!0);var e=new Date(n);return[py(e.getUTCFullYear().toString(),4,"0"),py(e.getUTCMonth()+1,2,"0"),py(e.getUTCDate(),2,"0"),"T",py(e.getUTCHours(),2,"0"),py(e.getUTCMinutes(),2,"0"),py(e.getUTCSeconds(),2,"0"),t?"Z":""].join("")},QP=function(n){var e=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(n);if(!e)throw new Error("Invalid UNTIL value: ".concat(n));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))},zV=function(n,t){return n.toLocaleString("sv-SE",{timeZone:t}).replace(" ","T")+"Z"},lee=function(){function n(t,e){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=t,this.args=e,"between"===t?(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"===t?this.maxDate=e.inc?e.dt:new Date(e.dt.getTime()-1):"after"===t&&(this.minDate=e.inc?e.dt:new Date(e.dt.getTime()+1))}return n.prototype.accept=function(t){++this.total;var e=this.minDate&&t<this.minDate,i=this.maxDate&&t>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(t),!1);return this.add(t)},n.prototype.add=function(t){return this._result.push(t),!0},n.prototype.getValue=function(){var t=this._result;switch(this.method){case"all":case"between":return t;default:return t.length?t[t.length-1]:null}},n.prototype.clone=function(){return new n(this.method,this.args)},n}();const fy=lee;var Mr=l(4762),uee=function(n){function t(e,i,r){var v=n.call(this,e,i)||this;return v.iterator=r,v}return(0,Mr.ZT)(t,n),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(fy);const WV=uee,UD={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 UV=function(n,t){return-1!==n.indexOf(t)},cee=function(n){return n.toString()},hee=function(n,t,e){return"".concat(t," ").concat(e,", ").concat(n)},pee=function(){function n(t,e,i,r){if(void 0===e&&(e=cee),void 0===i&&(i=UD),void 0===r&&(r=hee),this.text=[],this.language=i||UD,this.gettext=e,this.dateFormatter=r,this.rrule=t,this.options=t.options,this.origOptions=t.origOptions,this.origOptions.bymonthday){var v=[].concat(this.options.bymonthday),D=[].concat(this.options.bynmonthday);v.sort(function(ue,we){return ue-we}),D.sort(function(ue,we){return we-ue}),this.bymonthday=v.concat(D),this.bymonthday.length||(this.bymonthday=null)}if(Ns(this.origOptions.byweekday)){var A=Xu(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],z=String(A);this.byweekday={allWeeks:A.filter(function(ue){return!ue.n}),someWeeks:A.filter(function(ue){return Boolean(ue.n)}),isWeekdays:-1!==z.indexOf("MO")&&-1!==z.indexOf("TU")&&-1!==z.indexOf("WE")&&-1!==z.indexOf("TH")&&-1!==z.indexOf("FR")&&-1===z.indexOf("SA")&&-1===z.indexOf("SU"),isEveryDay:-1!==z.indexOf("MO")&&-1!==z.indexOf("TU")&&-1!==z.indexOf("WE")&&-1!==z.indexOf("TH")&&-1!==z.indexOf("FR")&&-1!==z.indexOf("SA")&&-1!==z.indexOf("SU")};var Q=function(ue,we){return ue.weekday-we.weekday};this.byweekday.allWeeks.sort(Q),this.byweekday.someWeeks.sort(Q),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return n.isFullyConvertible=function(t){if(!(t.options.freq in n.IMPLEMENTED)||t.origOptions.until&&t.origOptions.count)return!1;for(var i in t.origOptions){if(UV(["dtstart","wkst","freq"],i))return!0;if(!UV(n.IMPLEMENTED[t.options.freq],i))return!1}return!0},n.prototype.isFullyConvertible=function(){return n.isFullyConvertible(this.rrule)},n.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in n.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[Mo.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("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(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},n.prototype.HOURLY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("hours"):t("hour"))},n.prototype.MINUTELY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("minutes"):t("minute"))},n.prototype.DAILY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.byweekday&&this.byweekday.isWeekdays?this.plural(this.options.interval)?t("weekdays"):t("weekday"):this.plural(this.options.interval)?t("days"):t("day")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},n.prototype.WEEKLY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?t("weeks"):t("week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(t("on")).add(t("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?t("days"):t("day")):(1===this.options.interval&&this.add(t("week")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},n.prototype.MONTHLY=function(){var t=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(t("months")),this.plural(this.options.interval)&&this.add(t("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("months"):t("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(t("on")).add(t("weekdays")):this.byweekday&&this._byweekday()},n.prototype.YEARLY=function(){var t=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(t("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("years"):t("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(t("on the")).add(this.list(this.options.byyearday,this.nth,t("and"))).add(t("day")),this.options.byweekno&&this.add(t("in")).add(this.plural(this.options.byweekno.length)?t("weeks"):t("week")).add(this.list(this.options.byweekno,void 0,t("and")))},n.prototype._bymonthday=function(){var t=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,t("or"))).add(t("the")).add(this.list(this.bymonthday,this.nth,t("or"))):this.add(t("on the")).add(this.list(this.bymonthday,this.nth,t("and")))},n.prototype._byweekday=function(){var t=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(t("and")),this.add(t("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,t("and"))))},n.prototype._byhour=function(){var t=this.gettext;this.add(t("at")).add(this.list(this.origOptions.byhour,void 0,t("and")))},n.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},n.prototype.nth=function(t){t=parseInt(t.toString(),10);var e,i=this.gettext;if(-1===t)return i("last");var r=Math.abs(t);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 t<0?e+" "+i("last"):e},n.prototype.monthtext=function(t){return this.language.monthNames[t-1]},n.prototype.weekdaytext=function(t){var e=Eh(t)?(t+1)%7:t.getJsWeekday();return(t.n?this.nth(t.n)+" ":"")+this.language.dayNames[e]},n.prototype.plural=function(t){return t%100!=1},n.prototype.add=function(t){return this.text.push(" "),this.text.push(t),this},n.prototype.list=function(t,e,i,r){var v=this;void 0===r&&(r=","),Xu(t)||(t=[t]),e=e||function(z){return z.toString()};var A=function(z){return e&&e.call(v,z)};return i?function(z,Q,ue){for(var we="",Le=0;Le<z.length;Le++)0!==Le&&(we+=Le===z.length-1?" "+ue+" ":Q+" "),we+=z[Le];return we}(t.map(A),r,i):t.map(A).join(r+" ")},n}();const kp=pee;var gee=function(){function n(t){this.done=!0,this.rules=t}return n.prototype.start=function(t){return this.text=t,this.done=!1,this.nextSymbol()},n.prototype.isDone=function(){return this.done&&null===this.symbol},n.prototype.nextSymbol=function(){var t,e;this.symbol=null,this.value=null;do{if(this.done)return!1;for(var r in t=null,this.rules){var v=this.rules[r].exec(this.text);v&&(null===t||v[0].length>t[0].length)&&(t=v,e=r)}if(null!=t&&(this.text=this.text.substr(t[0].length),""===this.text&&(this.done=!0)),null==t)return this.done=!0,this.symbol=null,void(this.value=null)}while("SKIP"===e);return this.symbol=e,this.value=t,!0},n.prototype.accept=function(t){if(this.symbol===t){if(this.value){var e=this.value;return this.nextSymbol(),e}return this.nextSymbol(),!0}return!1},n.prototype.acceptNumber=function(){return this.accept("number")},n.prototype.expect=function(t){if(this.accept(t))return!0;throw new Error("expected "+t+" but found "+this.symbol)},n}();function ZV(n,t){void 0===t&&(t=UD);var e={},i=new gee(t.tokens);return i.start(n)?(function r(){i.expect("every");var Le=i.acceptNumber();if(Le&&(e.interval=parseInt(Le[0],10)),i.isDone())throw new Error("Unexpected end");switch(i.symbol){case"day(s)":e.freq=Mo.DAILY,i.nextSymbol()&&(function D(){if(i.accept("at"))do{var Ue=i.acceptNumber();if(!Ue)throw new Error("Unexpected symbol "+i.symbol+", expected hour");for(e.byhour=[parseInt(Ue[0],10)];i.accept("comma");){if(!(Ue=i.acceptNumber()))throw new Error("Unexpected symbol "+i.symbol+"; expected hour");e.byhour.push(parseInt(Ue[0],10))}}while(i.accept("comma")||i.accept("at"))}(),we());break;case"weekday(s)":e.freq=Mo.WEEKLY,e.byweekday=[Mo.MO,Mo.TU,Mo.WE,Mo.TH,Mo.FR],i.nextSymbol(),we();break;case"week(s)":e.freq=Mo.WEEKLY,i.nextSymbol()&&(v(),we());break;case"hour(s)":e.freq=Mo.HOURLY,i.nextSymbol()&&(v(),we());break;case"minute(s)":e.freq=Mo.MINUTELY,i.nextSymbol()&&(v(),we());break;case"month(s)":e.freq=Mo.MONTHLY,i.nextSymbol()&&(v(),we());break;case"year(s)":e.freq=Mo.YEARLY,i.nextSymbol()&&(v(),we());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":e.freq=Mo.WEEKLY;var Ue=i.symbol.substr(0,2).toUpperCase();if(e.byweekday=[Mo[Ue]],!i.nextSymbol())return;for(;i.accept("comma");){if(i.isDone())throw new Error("Unexpected end");var ut=z();if(!ut)throw new Error("Unexpected symbol "+i.symbol+", expected weekday");e.byweekday.push(Mo[ut]),i.nextSymbol()}(function ue(){i.accept("on"),i.accept("the");var Le=Q();if(Le)for(e.bymonthday=[Le],i.nextSymbol();i.accept("comma");){if(!(Le=Q()))throw new Error("Unexpected symbol "+i.symbol+"; expected monthday");e.bymonthday.push(Le),i.nextSymbol()}})(),we();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=Mo.YEARLY,e.bymonth=[A()],!i.nextSymbol())return;for(;i.accept("comma");){if(i.isDone())throw new Error("Unexpected end");var It=A();if(!It)throw new Error("Unexpected symbol "+i.symbol+", expected month");e.bymonth.push(It),i.nextSymbol()}v(),we();break;default:throw new Error("Unknown symbol")}}(),e):null;function v(){var Le=i.accept("on"),Ue=i.accept("the");if(Le||Ue)do{var ut=Q(),It=z(),Gt=A();if(ut)It?(i.nextSymbol(),e.byweekday||(e.byweekday=[]),e.byweekday.push(Mo[It].nth(ut))):(e.bymonthday||(e.bymonthday=[]),e.bymonthday.push(ut),i.accept("day(s)"));else if(It)i.nextSymbol(),e.byweekday||(e.byweekday=[]),e.byweekday.push(Mo[It]);else if("weekday(s)"===i.symbol)i.nextSymbol(),e.byweekday||(e.byweekday=[Mo.MO,Mo.TU,Mo.WE,Mo.TH,Mo.FR]);else if("week(s)"===i.symbol){i.nextSymbol();var ln=i.acceptNumber();if(!ln)throw new Error("Unexpected symbol "+i.symbol+", expected week number");for(e.byweekno=[parseInt(ln[0],10)];i.accept("comma");){if(!(ln=i.acceptNumber()))throw new Error("Unexpected symbol "+i.symbol+"; expected monthday");e.byweekno.push(parseInt(ln[0],10))}}else{if(!Gt)return;i.nextSymbol(),e.bymonth||(e.bymonth=[]),e.bymonth.push(Gt)}}while(i.accept("comma")||i.accept("the")||i.accept("on"))}function A(){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 z(){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 Q(){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 Le=parseInt(i.value[1],10);if(Le<-366||Le>366)throw new Error("Nth out of range: "+Le);return i.nextSymbol(),i.accept("last")?-Le:Le;default:return!1}}function we(){if("until"===i.symbol){var Le=Date.parse(i.text);if(!Le)throw new Error("Cannot parse until date:"+i.text);e.until=new Date(Le)}else i.accept("for")&&(e.count=parseInt(i.value[0],10),i.expect("number"))}}var Ca=(()=>(function(n){n[n.YEARLY=0]="YEARLY",n[n.MONTHLY=1]="MONTHLY",n[n.WEEKLY=2]="WEEKLY",n[n.DAILY=3]="DAILY",n[n.HOURLY=4]="HOURLY",n[n.MINUTELY=5]="MINUTELY",n[n.SECONDLY=6]="SECONDLY"}(Ca||(Ca={})),Ca))();function ek(n){return n<Ca.HOURLY}var my=["count","until","interval","byweekday","bymonthday","bymonth"];kp.IMPLEMENTED=[],kp.IMPLEMENTED[Ca.HOURLY]=my,kp.IMPLEMENTED[Ca.MINUTELY]=my,kp.IMPLEMENTED[Ca.DAILY]=["byhour"].concat(my),kp.IMPLEMENTED[Ca.WEEKLY]=my,kp.IMPLEMENTED[Ca.MONTHLY]=my,kp.IMPLEMENTED[Ca.YEARLY]=["byweekno","byyearday"].concat(my);var _ee=kp.isFullyConvertible,ZD=function(){function n(t,e,i,r){this.hour=t,this.minute=e,this.second=i,this.millisecond=r||0}return n.prototype.getHours=function(){return this.hour},n.prototype.getMinutes=function(){return this.minute},n.prototype.getSeconds=function(){return this.second},n.prototype.getMilliseconds=function(){return this.millisecond},n.prototype.getTime=function(){return 1e3*(60*this.hour*60+60*this.minute+this.second)+this.millisecond},n}(),vee=function(n){function t(e,i,r,v,D,A,z){var Q=n.call(this,v,D,A,z)||this;return Q.year=e,Q.month=i,Q.day=r,Q}return(0,Mr.ZT)(t,n),t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return gy(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var i=Math.floor(this.month/12),r=Ad(this.month,12);this.month=r,this.year+=i,0===this.month&&(this.month=12,--this.year)}},t.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()},t.prototype.addDaily=function(e){this.day+=e,this.fixDay()},t.prototype.addHours=function(e,i,r){for(i&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var v=$P(this.hour,24),D=v.div;if(D&&(this.hour=v.mod,this.addDaily(D)),Oh(r)||Ga(r,this.hour))break}},t.prototype.addMinutes=function(e,i,r,v){for(i&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var D=$P(this.minute,60),A=D.div;if(A&&(this.minute=D.mod,this.addHours(A,!1,r)),(Oh(r)||Ga(r,this.hour))&&(Oh(v)||Ga(v,this.minute)))break}},t.prototype.addSeconds=function(e,i,r,v,D){for(i&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var A=$P(this.second,60),z=A.div;if(z&&(this.second=A.mod,this.addMinutes(z,!1,r,v)),(Oh(r)||Ga(r,this.hour))&&(Oh(v)||Ga(v,this.minute))&&(Oh(D)||Ga(D,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=VV(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=VV(this.year,this.month-1)[1]}}},t.prototype.add=function(e,i){var v=e.interval,D=e.wkst,A=e.byhour,z=e.byminute,Q=e.bysecond;switch(e.freq){case Ca.YEARLY:return this.addYears(v);case Ca.MONTHLY:return this.addMonths(v);case Ca.WEEKLY:return this.addWeekly(v,D);case Ca.DAILY:return this.addDaily(v);case Ca.HOURLY:return this.addHours(v,i,A);case Ca.MINUTELY:return this.addMinutes(v,i,A,z);case Ca.SECONDLY:return this.addSeconds(v,i,A,z,Q)}},t}(ZD);function KV(n){for(var t=[],i=0,r=Object.keys(n);i<r.length;i++){var v=r[i];Ga(Yee,v)||t.push(v),LV(n[v])&&!ew(n[v])&&t.push(v)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return(0,Mr.pi)({},n)}function tk(n){var t=n.split("\n").map(xee).filter(function(e){return null!==e});return(0,Mr.pi)((0,Mr.pi)({},t[0]),t[1])}function KD(n){var t={},e=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(n);if(!e)return t;var i=e[1],r=e[2];return i&&(t.tzid=i),t.dtstart=QP(r),t}function xee(n){if(!(n=n.replace(/^\s+|\s+$/,"")).length)return null;var t=/^([A-Z]+?)[:;]/.exec(n.toUpperCase());if(!t)return GV(n);var e=t[1];switch(e.toUpperCase()){case"RRULE":case"EXRULE":return GV(n);case"DTSTART":return KD(n);default:throw new Error("Unsupported RFC prop ".concat(e," in ").concat(n))}}function GV(n){var e=KD(n.replace(/^RRULE:/i,""));return n.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach(function(r){var v=r.split("="),D=v[0],A=v[1];switch(D.toUpperCase()){case"FREQ":e.freq=Ca[A.toUpperCase()];break;case"WKST":e.wkst=fc[A.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var z=function bee(n){return-1!==n.indexOf(",")?n.split(",").map(jV):jV(n)}(A),Q=D.toLowerCase();e[Q]=z;break;case"BYWEEKDAY":case"BYDAY":e.byweekday=function wee(n){return n.split(",").map(function(e){if(2===e.length)return fc[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 jl(fc[i[2]].weekday,r)})}(A);break;case"DTSTART":case"TZID":var ue=KD(n);e.tzid=ue.tzid,e.dtstart=ue.dtstart;break;case"UNTIL":e.until=QP(A);break;case"BYEASTER":e.byeaster=Number(A);break;default:throw new Error("Unknown RRULE property '"+D+"'")}}),e}function jV(n){return/^[+-]?\d+$/.test(n)?Number(n):n}var GD=function(){function n(t,e){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=e}return Object.defineProperty(n.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!1,configurable:!0}),n.prototype.toString=function(){var t=JP(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(t):";TZID=".concat(this.tzid,":").concat(t)},n.prototype.getTime=function(){return this.date.getTime()},n.prototype.rezonedDate=function(){return this.isUTC?this.date:function(n,t){var e=Intl.DateTimeFormat().resolvedOptions().timeZone,i=new Date(zV(n,e)),v=new Date(zV(n,t??"UTC")).getTime()-i.getTime();return new Date(n.getTime()-v)}(this.date,this.tzid)},n}();function nk(n){for(var t=[],e="",i=Object.keys(n),r=Object.keys(ik),v=0;v<i.length;v++)if("tzid"!==i[v]&&Ga(r,i[v])){var D=i[v].toUpperCase(),A=n[i[v]],z="";if(Ns(A)&&(!Xu(A)||A.length)){switch(D){case"FREQ":z=Mo.FREQUENCIES[n.freq];break;case"WKST":z=Eh(A)?new jl(A).toString():A.toString();break;case"BYWEEKDAY":D="BYDAY",z=tee(A).map(function(Ue){return Ue instanceof jl?Ue:Xu(Ue)?new jl(Ue[0],Ue[1]):new jl(Ue)}).toString();break;case"DTSTART":e=Eee(A,n.tzid);break;case"UNTIL":z=JP(A,!n.tzid);break;default:if(Xu(A)){for(var Q=[],ue=0;ue<A.length;ue++)Q[ue]=String(A[ue]);z=Q.toString()}else z=String(A)}z&&t.push([D,z])}}var we=t.map(function(Ue){var It=Ue[1];return"".concat(Ue[0],"=").concat(It.toString())}).join(";"),Le="";return""!==we&&(Le="RRULE:".concat(we)),[e,Le].filter(function(Ue){return!!Ue}).join("\n")}function Eee(n,t){return n?"DTSTART"+new GD(new Date(n),t).toString():""}function See(n,t){return Array.isArray(n)?!(!Array.isArray(t)||n.length!==t.length)&&n.every(function(e,i){return e.getTime()===t[i].getTime()}):n instanceof Date?t instanceof Date&&n.getTime()===t.getTime():n===t}var Oee=function(){function n(){this.all=!1,this.before=[],this.after=[],this.between=[]}return n.prototype._cacheAdd=function(t,e,i){e&&(e=e instanceof Date?qP(e):HV(e)),"all"===t?this.all=e:(i._value=e,this[t].push(i))},n.prototype._cacheGet=function(t,e){var i=!1,r=e?Object.keys(e):[],v=function(ue){for(var we=0;we<r.length;we++){var Le=r[we];if(!See(e[Le],ue[Le]))return!0}return!1},D=this[t];if("all"===t)i=this.all;else if(Xu(D))for(var A=0;A<D.length;A++){var z=D[A];if(!r.length||!v(z)){i=z._value;break}}if(!i&&this.all){var Q=new fy(t,e);for(A=0;A<this.all.length&&Q.accept(this.all[A]);A++);i=Q.getValue(),this._cacheAdd(t,i,e)}return Xu(i)?HV(i):i instanceof Date?qP(i):i},n}(),Dee=(0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)([],Ea(1,31),!0),Ea(2,28),!0),Ea(3,31),!0),Ea(4,30),!0),Ea(5,31),!0),Ea(6,30),!0),Ea(7,31),!0),Ea(8,31),!0),Ea(9,30),!0),Ea(10,31),!0),Ea(11,30),!0),Ea(12,31),!0),Ea(1,7),!0),Tee=(0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)([],Ea(1,31),!0),Ea(2,29),!0),Ea(3,31),!0),Ea(4,30),!0),Ea(5,31),!0),Ea(6,30),!0),Ea(7,31),!0),Ea(8,31),!0),Ea(9,30),!0),Ea(10,31),!0),Ea(11,30),!0),Ea(12,31),!0),Ea(1,7),!0),Iee=Sh(1,29),Mee=Sh(1,30),Lf=Sh(1,31),Ol=Sh(1,32),Aee=(0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)([],Ol,!0),Mee,!0),Ol,!0),Lf,!0),Ol,!0),Lf,!0),Ol,!0),Ol,!0),Lf,!0),Ol,!0),Lf,!0),Ol,!0),Ol.slice(0,7),!0),Pee=(0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)([],Ol,!0),Iee,!0),Ol,!0),Lf,!0),Ol,!0),Lf,!0),Ol,!0),Ol,!0),Lf,!0),Ol,!0),Lf,!0),Ol,!0),Ol.slice(0,7),!0),kee=Sh(-28,0),Ree=Sh(-29,0),Bf=Sh(-30,0),Dl=Sh(-31,0),Lee=(0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)([],Dl,!0),Ree,!0),Dl,!0),Bf,!0),Dl,!0),Bf,!0),Dl,!0),Dl,!0),Bf,!0),Dl,!0),Bf,!0),Dl,!0),Dl.slice(0,7),!0),Bee=(0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)((0,Mr.ev)([],Dl,!0),kee,!0),Dl,!0),Bf,!0),Dl,!0),Bf,!0),Dl,!0),Dl,!0),Bf,!0),Dl,!0),Bf,!0),Dl,!0),Dl.slice(0,7),!0),Fee=[0,31,60,91,121,152,182,213,244,274,305,335,366],Vee=[0,31,59,90,120,151,181,212,243,273,304,334,365],$V=function(){for(var n=[],t=0;t<55;t++)n=n.concat(Sh(7));return n}();var Uee=function(){function n(t){this.options=t}return n.prototype.rebuild=function(t,e){var i=this.options;if(t!==this.lastyear&&(this.yearinfo=function Nee(n,t){var e=$0(n,1,1),i=Qb(n)?366:365,r=Qb(n+1)?366:365,v=XP(e),D=gy(e),A=(0,Mr.pi)((0,Mr.pi)({yearlen:i,nextyearlen:r,yearordinal:v,yearweekday:D},function Hee(n){var t=Qb(n)?366:365,e=$0(n,1,1),i=gy(e);return 365===t?{mmask:Dee,mdaymask:Pee,nmdaymask:Bee,wdaymask:$V.slice(i),mrange:Vee}:{mmask:Tee,mdaymask:Aee,nmdaymask:Lee,wdaymask:$V.slice(i),mrange:Fee}}(n)),{wnomask:null});if(Oh(t.byweekno))return A;A.wnomask=Ea(0,i+7);var z,Q,ue=z=Ad(7-D+t.wkst,7);ue>=4?(ue=0,Q=A.yearlen+Ad(D-t.wkst,7)):Q=i-ue;for(var we=Math.floor(Q/7),Le=Ad(Q,7),Ue=Math.floor(we+Le/4),ut=0;ut<t.byweekno.length;ut++){var It=t.byweekno[ut];if(It<0&&(It+=Ue+1),It>0&&It<=Ue){var Gt=void 0;It>1?(Gt=ue+7*(It-1),ue!==z&&(Gt-=7-z)):Gt=ue;for(var ln=0;ln<7&&(A.wnomask[Gt]=1,Gt++,A.wdaymask[Gt]!==t.wkst);ln++);}}if(Ga(t.byweekno,1)&&(Gt=ue+7*Ue,ue!==z&&(Gt-=7-z),Gt<i))for(ut=0;ut<7&&(A.wnomask[Gt]=1,A.wdaymask[Gt+=1]!==t.wkst);ut++);if(ue){var En=void 0;if(Ga(t.byweekno,-1))En=-1;else{var on=gy($0(n-1,1,1)),Nt=Ad(7-on.valueOf()+t.wkst,7),Jt=Qb(n-1)?366:365,un=void 0;Nt>=4?(Nt=0,un=Jt+Ad(on-t.wkst,7)):un=i-ue,En=Math.floor(52+Ad(un,7)/4)}if(Ga(t.byweekno,En))for(Gt=0;Gt<ue;Gt++)A.wnomask[Gt]=1}return A}(t,i)),ll(i.bynweekday)&&(e!==this.lastmonth||t!==this.lastyear)){var r=this.yearinfo;this.monthinfo=function zee(n,t,e,i,r,v){var D={lastyear:n,lastmonth:t,nwdaymask:[]},A=[];if(v.freq===Mo.YEARLY)if(Oh(v.bymonth))A=[[0,e]];else for(var z=0;z<v.bymonth.length;z++)A.push(i.slice((t=v.bymonth[z])-1,t+1));else v.freq===Mo.MONTHLY&&(A=[i.slice(t-1,t+1)]);if(Oh(A))return D;for(D.nwdaymask=Ea(0,e),z=0;z<A.length;z++)for(var Q=A[z],ue=Q[0],we=Q[1]-1,Le=0;Le<v.bynweekday.length;Le++){var Ue=void 0,ut=v.bynweekday[Le],It=ut[0],Gt=ut[1];Gt<0?(Ue=we+7*(Gt+1),Ue-=Ad(r[Ue]-It,7)):(Ue=ue+7*(Gt-1),Ue+=Ad(7-r[Ue]+It,7)),ue<=Ue&&Ue<=we&&(D.nwdaymask[Ue]=1)}return D}(t,e,r.yearlen,r.mrange,r.wdaymask,i)}Ns(i.byeaster)&&(this.eastermask=function Wee(n,t){void 0===t&&(t=0);var e=n%19,i=Math.floor(n/100),r=n%100,v=Math.floor(i/4),D=i%4,A=Math.floor((i+8)/25),z=Math.floor((i-A+1)/3),Q=Math.floor(19*e+i-v-z+15)%30,ue=Math.floor(r/4),Le=Math.floor(32+2*D+2*ue-Q-r%4)%7,Ue=Math.floor((e+11*Q+22*Le)/451),ut=Math.floor((Q+Le-7*Ue+114)/31),Gt=Date.UTC(n,ut-1,(Q+Le-7*Ue+114)%31+1+t),ln=Date.UTC(n,0,1);return[Math.ceil((Gt-ln)/864e5)]}(t,i.byeaster))},Object.defineProperty(n.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),n.prototype.ydayset=function(){return[Sh(this.yearlen),0,this.yearlen]},n.prototype.mdayset=function(t,e){for(var i=this.mrange[e-1],r=this.mrange[e],v=Ea(null,this.yearlen),D=i;D<r;D++)v[D]=D;return[v,i,r]},n.prototype.wdayset=function(t,e,i){for(var r=Ea(null,this.yearlen+7),v=XP($0(t,e,i))-this.yearordinal,D=v,A=0;A<7&&(r[v]=v,++v,this.wdaymask[v]!==this.options.wkst);A++);return[r,D,v]},n.prototype.ddayset=function(t,e,i){var r=Ea(null,this.yearlen),v=XP($0(t,e,i))-this.yearordinal;return r[v]=v,[r,v,v+1]},n.prototype.htimeset=function(t,e,i,r){var v=this,D=[];return this.options.byminute.forEach(function(A){D=D.concat(v.mtimeset(t,A,i,r))}),tw(D),D},n.prototype.mtimeset=function(t,e,i,r){var v=this.options.bysecond.map(function(D){return new ZD(t,e,D,r)});return tw(v),v},n.prototype.stimeset=function(t,e,i,r){return[new ZD(t,e,i,r)]},n.prototype.getdayset=function(t){switch(t){case Ca.YEARLY:return this.ydayset.bind(this);case Ca.MONTHLY:return this.mdayset.bind(this);case Ca.WEEKLY:return this.wdayset.bind(this);default:return this.ddayset.bind(this)}},n.prototype.gettimeset=function(t){switch(t){case Ca.HOURLY:return this.htimeset.bind(this);case Ca.MINUTELY:return this.mtimeset.bind(this);case Ca.SECONDLY:return this.stimeset.bind(this)}},n}();const Zee=Uee;function Kee(n,t,e,i,r,v){for(var D=[],A=0;A<n.length;A++){var z=void 0,Q=void 0,ue=n[A];ue<0?(z=Math.floor(ue/t.length),Q=Ad(ue,t.length)):(z=Math.floor((ue-1)/t.length),Q=Ad(ue-1,t.length));for(var we=[],Le=e;Le<i;Le++){var Ue=v[Le];Ns(Ue)&&we.push(Ue)}var ut;ut=z<0?we.slice(z)[0]:we[z];var It=t[Q],Gt=FV(r.yearordinal+ut),ln=NV(Gt,It);Ga(D,ln)||D.push(ln)}return tw(D),D}function YV(n,t){var e=t.dtstart,i=t.freq,v=t.until,D=t.bysetpos,A=t.count;if(0===A||0===t.interval)return Rp(n);var z=vee.fromDate(e),Q=new Zee(t);Q.rebuild(z.year,z.month);for(var ue=function $ee(n,t,e){var i=e.freq,r=e.byhour,v=e.byminute,D=e.bysecond;return ek(i)?function Cee(n){var t=n.dtstart.getTime()%1e3;if(!ek(n.freq))return[];var e=[];return n.byhour.forEach(function(i){n.byminute.forEach(function(r){n.bysecond.forEach(function(v){e.push(new ZD(i,r,v,t))})})}),e}(e):i>=Mo.HOURLY&&ll(r)&&!Ga(r,t.hour)||i>=Mo.MINUTELY&&ll(v)&&!Ga(v,t.minute)||i>=Mo.SECONDLY&&ll(D)&&!Ga(D,t.second)?[]:n.gettimeset(i)(t.hour,t.minute,t.second,t.millisecond)}(Q,z,t);;){var we=Q.getdayset(i)(z.year,z.month,z.day),Le=we[0],Ue=we[1],ut=we[2],It=jee(Le,Ue,ut,Q,t);if(ll(D))for(var Gt=Kee(D,ue,Ue,ut,Q,Le),ln=0;ln<Gt.length;ln++){var En=Gt[ln];if(v&&En>v)return Rp(n);if(En>=e){var on=XV(En,t);if(!n.accept(on)||A&&!--A)return Rp(n)}}else for(ln=Ue;ln<ut;ln++){var Nt=Le[ln];if(Ns(Nt))for(var Jt=FV(Q.yearordinal+Nt),un=0;un<ue.length;un++){if(En=NV(Jt,ue[un]),v&&En>v)return Rp(n);if(En>=e&&(on=XV(En,t),!n.accept(on)||A&&!--A))return Rp(n)}}if(0===t.interval||(z.add(t,It),z.year>9999))return Rp(n);ek(i)||(ue=Q.gettimeset(i)(z.hour,z.minute,z.second,0)),Q.rebuild(z.year,z.month)}}function Gee(n,t,e){var i=e.bymonth,r=e.byweekno,v=e.byweekday,D=e.byeaster,A=e.bymonthday,z=e.bynmonthday,Q=e.byyearday;return ll(i)&&!Ga(i,n.mmask[t])||ll(r)&&!n.wnomask[t]||ll(v)&&!Ga(v,n.wdaymask[t])||ll(n.nwdaymask)&&!n.nwdaymask[t]||null!==D&&!Ga(n.eastermask,t)||(ll(A)||ll(z))&&!Ga(A,n.mdaymask[t])&&!Ga(z,n.nmdaymask[t])||ll(Q)&&(t<n.yearlen&&!Ga(Q,t+1)&&!Ga(Q,-n.yearlen+t)||t>=n.yearlen&&!Ga(Q,t+1-n.yearlen)&&!Ga(Q,-n.nextyearlen+t-n.yearlen))}function XV(n,t){return new GD(n,t.tzid).rezonedDate()}function Rp(n){return n.getValue()}function jee(n,t,e,i,r){for(var v=!1,D=t;D<e;D++){var A=n[D];(v=Gee(i,A,r))&&(n[A]=null)}return v}var fc={MO:new jl(0),TU:new jl(1),WE:new jl(2),TH:new jl(3),FR:new jl(4),SA:new jl(5),SU:new jl(6)},ik={freq:Ca.YEARLY,dtstart:null,interval:1,wkst:fc.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},Yee=Object.keys(ik),Mo=function(){function n(t,e){void 0===t&&(t={}),void 0===e&&(e=!1),this._cache=e?null:new Oee,this.origOptions=KV(t);var i=function yee(n){var t=(0,Mr.pi)((0,Mr.pi)({},ik),KV(n));if(Ns(t.byeaster)&&(t.freq=Mo.YEARLY),!Ns(t.freq)||!Mo.FREQUENCIES[t.freq])throw new Error("Invalid frequency: ".concat(t.freq," ").concat(n.freq));if(t.dtstart||(t.dtstart=new Date((new Date).setMilliseconds(0))),Ns(t.wkst)?Eh(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=Mo.MO.weekday,Ns(t.bysetpos)){Eh(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var e=0;e<t.bysetpos.length;e++)if(0===(i=t.bysetpos[e])||!(i>=-366&&i<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}if(!(Boolean(t.byweekno)||ll(t.byweekno)||ll(t.byyearday)||Boolean(t.bymonthday)||ll(t.bymonthday)||Ns(t.byweekday)||Ns(t.byeaster)))switch(t.freq){case Mo.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case Mo.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case Mo.WEEKLY:t.byweekday=[gy(t.dtstart)]}if(Ns(t.bymonth)&&!Xu(t.bymonth)&&(t.bymonth=[t.bymonth]),Ns(t.byyearday)&&!Xu(t.byyearday)&&Eh(t.byyearday)&&(t.byyearday=[t.byyearday]),Ns(t.bymonthday))if(Xu(t.bymonthday)){var r=[],v=[];for(e=0;e<t.bymonthday.length;e++){var i;(i=t.bymonthday[e])>0?r.push(i):i<0&&v.push(i)}t.bymonthday=r,t.bynmonthday=v}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);else t.bymonthday=[],t.bynmonthday=[];if(Ns(t.byweekno)&&!Xu(t.byweekno)&&(t.byweekno=[t.byweekno]),Ns(t.byweekday))if(Eh(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(PV(t.byweekday))t.byweekday=[jl.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof jl)!t.byweekday.n||t.freq>Mo.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{var D=[],A=[];for(e=0;e<t.byweekday.length;e++){var z=t.byweekday[e];Eh(z)?D.push(z):PV(z)?D.push(jl.fromStr(z).weekday):!z.n||t.freq>Mo.MONTHLY?D.push(z.weekday):A.push([z.weekday,z.n])}t.byweekday=ll(D)?D:null,t.bynweekday=ll(A)?A:null}else t.bynweekday=null;return Ns(t.byhour)?Eh(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<Mo.HOURLY?[t.dtstart.getUTCHours()]:null,Ns(t.byminute)?Eh(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<Mo.MINUTELY?[t.dtstart.getUTCMinutes()]:null,Ns(t.bysecond)?Eh(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<Mo.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}(t).parsedOptions;this.options=i}return n.parseText=function(t,e){return ZV(t,e)},n.fromText=function(t,e){return function(n,t){return void 0===t&&(t=UD),new Mo(ZV(n,t)||void 0)}(t,e)},n.fromString=function(t){return new n(n.parseString(t)||void 0)},n.prototype._iter=function(t){return YV(t,this.options)},n.prototype._cacheGet=function(t,e){return!!this._cache&&this._cache._cacheGet(t,e)},n.prototype._cacheAdd=function(t,e,i){if(this._cache)return this._cache._cacheAdd(t,e,i)},n.prototype.all=function(t){if(t)return this._iter(new WV("all",{},t));var e=this._cacheGet("all");return!1===e&&(e=this._iter(new fy("all",{})),this._cacheAdd("all",e)),e},n.prototype.between=function(t,e,i,r){if(void 0===i&&(i=!1),!ew(t)||!ew(e))throw new Error("Invalid date passed in to RRule.between");var v={before:e,after:t,inc:i};if(r)return this._iter(new WV("between",v,r));var D=this._cacheGet("between",v);return!1===D&&(D=this._iter(new fy("between",v)),this._cacheAdd("between",D,v)),D},n.prototype.before=function(t,e){if(void 0===e&&(e=!1),!ew(t))throw new Error("Invalid date passed in to RRule.before");var i={dt:t,inc:e},r=this._cacheGet("before",i);return!1===r&&(r=this._iter(new fy("before",i)),this._cacheAdd("before",r,i)),r},n.prototype.after=function(t,e){if(void 0===e&&(e=!1),!ew(t))throw new Error("Invalid date passed in to RRule.after");var i={dt:t,inc:e},r=this._cacheGet("after",i);return!1===r&&(r=this._iter(new fy("after",i)),this._cacheAdd("after",r,i)),r},n.prototype.count=function(){return this.all().length},n.prototype.toString=function(){return nk(this.origOptions)},n.prototype.toText=function(t,e,i){return function(n,t,e,i){return new kp(n,t,e,i).toString()}(this,t,e,i)},n.prototype.isFullyConvertibleToText=function(){return _ee(this)},n.prototype.clone=function(){return new n(this.origOptions)},n.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],n.YEARLY=Ca.YEARLY,n.MONTHLY=Ca.MONTHLY,n.WEEKLY=Ca.WEEKLY,n.DAILY=Ca.DAILY,n.HOURLY=Ca.HOURLY,n.MINUTELY=Ca.MINUTELY,n.SECONDLY=Ca.SECONDLY,n.MO=fc.MO,n.TU=fc.TU,n.WE=fc.WE,n.TH=fc.TH,n.FR=fc.FR,n.SA=fc.SA,n.SU=fc.SU,n.parseString=tk,n.optionsToString=nk,n}(),qV={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function JV(n,t){return void 0===t&&(t={}),function Jee(n,t){var e=function qee(n,t){var e=[],i=[],r=[],v=[],D=KD(n),A=D.dtstart,z=D.tzid,Q=function nte(n,t){if(void 0===t&&(t=!1),!(n=n&&n.trim()))throw new Error("Invalid empty string");if(!t)return n.split(/\s/);for(var e=n.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}(n,t.unfold);return Q.forEach(function(ue){var we;if(ue){var Le=function tte(n){var t=function ete(n){if(-1===n.indexOf(":"))return{name:"RRULE",value:n};var t=function(n,t,e){var i=n.split(":");return i.slice(0,1).concat([i.slice(1).join(":")])}(n);return{name:t[0],value:t[1]}}(n),i=t.value,r=t.name.split(";");if(!r)throw new Error("empty property name");return{name:r[0].toUpperCase(),parms:r.slice(1),value:i}}(ue),Ue=Le.name,ut=Le.parms,It=Le.value;switch(Ue.toUpperCase()){case"RRULE":if(ut.length)throw new Error("unsupported RRULE parm: ".concat(ut.join(",")));e.push(tk(ue));break;case"RDATE":var ln=(null!==(we=/RDATE(?:;TZID=([^:=]+))?/i.exec(ue))&&void 0!==we?we:[])[1];ln&&!z&&(z=ln),i=i.concat(QV(It,ut));break;case"EXRULE":if(ut.length)throw new Error("unsupported EXRULE parm: ".concat(ut.join(",")));r.push(tk(It));break;case"EXDATE":v=v.concat(QV(It,ut));break;case"DTSTART":break;default:throw new Error("unsupported property: "+Ue)}}}),{dtstart:A,tzid:z,rrulevals:e,rdatevals:i,exrulevals:r,exdatevals:v}}(n,t),i=e.rrulevals,r=e.rdatevals,v=e.exrulevals,D=e.exdatevals,A=e.dtstart,z=e.tzid,Q=!1===t.cache;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||i.length>1||r.length||v.length||D.length){var ue=new tN(Q);return ue.dtstart(A),ue.tzid(z||void 0),i.forEach(function(Le){ue.rrule(new Mo(rk(Le,A,z),Q))}),r.forEach(function(Le){ue.rdate(Le)}),v.forEach(function(Le){ue.exrule(new Mo(rk(Le,A,z),Q))}),D.forEach(function(Le){ue.exdate(Le)}),t.compatible&&t.dtstart&&ue.rdate(A),ue}var we=i[0]||{};return new Mo(rk(we,we.dtstart||t.dtstart||A,we.tzid||t.tzid||z),Q)}(n,function Qee(n){var t=[],e=Object.keys(n),i=Object.keys(qV);if(e.forEach(function(r){Ga(i,r)||t.push(r)}),t.length)throw new Error("Invalid options: "+t.join(", "));return(0,Mr.pi)((0,Mr.pi)({},qV),n)}(t))}function rk(n,t,e){return(0,Mr.pi)((0,Mr.pi)({},n),{dtstart:t,tzid:e})}function QV(n,t){return function ite(n){n.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)})}(t),n.split(",").map(function(e){return QP(e)})}function eN(n){var t=this;return function(e){if(void 0!==e&&(t["_".concat(n)]=e),void 0!==t["_".concat(n)])return t["_".concat(n)];for(var i=0;i<t._rrule.length;i++){var r=t._rrule[i].origOptions[n];if(r)return r}}}var tN=function(n){function t(e){void 0===e&&(e=!1);var i=n.call(this,{},e)||this;return i.dtstart=eN.apply(i,["dtstart"]),i.tzid=eN.apply(i,["tzid"]),i._rrule=[],i._rdate=[],i._exrule=[],i._exdate=[],i}return(0,Mr.ZT)(t,n),t.prototype._iter=function(e){return function Xee(n,t,e,i,r,v){var D={},A=n.accept;function z(Le,Ue){e.forEach(function(ut){ut.between(Le,Ue,!0).forEach(function(It){D[Number(It)]=!0})})}r.forEach(function(Le){var Ue=new GD(Le,v).rezonedDate();D[Number(Ue)]=!0}),n.accept=function(Le){var Ue=Number(Le);return isNaN(Ue)?A.call(this,Le):!(!D[Ue]&&(z(new Date(Ue-1),new Date(Ue+1)),!D[Ue]))||(D[Ue]=!0,A.call(this,Le))},"between"===n.method&&(z(n.args.after,n.args.before),n.accept=function(Le){var Ue=Number(Le);return!!D[Ue]||(D[Ue]=!0,A.call(this,Le))});for(var Q=0;Q<i.length;Q++){var ue=new GD(i[Q],v).rezonedDate();if(!n.accept(new Date(ue.getTime())))break}t.forEach(function(Le){YV(n,Le.options)});var we=n._result;switch(tw(we),n.method){case"all":case"between":return we;case"before":return we.length&&we[we.length-1]||null;default:return we.length&&we[0]||null}}(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){nN(e,this._rrule)},t.prototype.exrule=function(e){nN(e,this._exrule)},t.prototype.rdate=function(e){iN(e,this._rdate)},t.prototype.exdate=function(e){iN(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(e){return JV(e.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(e){return JV(e.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(e){return new Date(e.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(e){return new Date(e.getTime())})},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(nk({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(rN("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(rN("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join("\n")},t.prototype.clone=function(){var e=new t(!!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},t}(Mo);function nN(n,t){if(!(n instanceof Mo))throw new TypeError(String(n)+" is not RRule instance");Ga(t.map(String),String(n))||t.push(n)}function iN(n,t){if(!(n instanceof Date))throw new TypeError(String(n)+" is not Date instance");Ga(t.map(Number),Number(n))||(t.push(n),tw(t))}function rN(n,t,e){var i=!e||"UTC"===e.toUpperCase(),r=i?"".concat(n,":"):"".concat(n,";TZID=").concat(e,":"),v=t.map(function(D){return JP(D.valueOf(),i)}).join(",");return"".concat(r).concat(v)}var oN=n=>{var A,e=n.offsetIndices,i=n.untils,r=n.offsets.split("|").map(z=>parseInt(z)),v=e.split("").map(z=>parseInt(z)),D=(n=>n.split("|").map(t=>"Infinity"===t?null:1e3*parseInt(t,36)))(i).map((A=0,z=>A+=z));return{offsetList:r,offsetIndexList:v,dateList:D}},ok=new class ate{constructor(){this.map=new Map}tryGet(t){if(!this.map.get(t)){var e=aN.getTimezoneById(t);if(!e)return!1;var i=oN(e);this.map.set(t,i)}return this.map.get(t)}},aN={_tzCache:ok,_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(n){var t=this._timeZones.map(e=>{var i=oN(e),r=this.getUtcOffset(i,n);return{offset:r,title:"(GMT ".concat(this.formatOffset(r),") ").concat(this.formatId(e.id)),id:e.id}});return(0,If.Z)(t).sortBy("offset").toArray()},formatOffset:function(n){var t=Math.floor(n),e=n-t;return((0,ae.Xx)(n)>=0?"+":"-")+"0".concat(Math.abs(t)).slice(-2)+(e>0?":".concat(60*e):":00")},formatId:function(n){return n.split("/").join(" - ").split("_").join(" ")},getTimezoneById:function(n){if(n){for(var t=this._timeZones,e=0;e<t.length;e++)if(t[e].id===n)return t[e];bu.Z.log("W0009",n)}},getTimeZoneOffsetById:function(n,t){var e=ok.tryGet(n);return e?this.getUtcOffset(e,t):void 0},getTimeZoneDeclarationTuple:function(n,t){var e=ok.tryGet(n);return e?this.getTimeZoneDeclarationTupleCore(e,t):[]},getTimeZoneDeclarationTupleCore:function(n,t){for(var e=n.offsetList,i=n.offsetIndexList,r=n.dateList,v=[],D=0;D<r.length;D++){var A=r[D],z=new Date(A).getFullYear();if(z===t&&v.push({date:A,offset:-e[i[D+1]]/60}),z>t)break}return v},getUtcOffset:function(n,t){for(var e=n.offsetList,i=n.offsetIndexList,r=n.dateList,D=r.length-1-1;D>=0&&t<r[D];)D--;var A=e[i[D+1]];return-A/60||A}};const nw=aN;var ste=te.Z.dateToMilliseconds;class lte{constructor(t){this._source=new Date(t.getTime?t.getTime():t)}get source(){return this._source}result(){return this._source}getTimezoneOffset(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this._source.getTimezoneOffset();return"minute"===t?e*ste("minute"):e}getTime(){return this._source.getTime()}setTime(t){return this._source.setTime(t),this}addTime(t){return this._source.setTime(this._source.getTime()+t),this}setMinutes(t){return this._source.setMinutes(t),this}addMinutes(t){return this._source.setMinutes(this._source.getMinutes()+t),this}subtractMinutes(t){return this._source.setMinutes(this._source.getMinutes()-t),this}}var jD=te.Z.dateToMilliseconds,ak=n=>new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes())),sN=(n,t,e,i)=>$D(e,i)-$D(n,t),$D=(n,t)=>new Date(n).getTimezoneOffset()-new Date(t).getTimezoneOffset(),sk=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if("string"==typeof n){var e=ak(t);return nw.getTimeZoneOffsetById(n,e.getTime())}return n},YD=(n,t,e)=>sk(e,n)-sk(e,t),lN=n=>{var t=new Date(new Date(n).setHours(0,0,0,0)),e=new Date(new Date(n).setHours(23,59,59,0));return t.getTimezoneOffset()-e.getTimezoneOffset()!=0},lk=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return 6e4*n.getTimezoneOffset()},uN=()=>{var[n,t]=Ete();return n.getTimezoneOffset()!==t.getTimezoneOffset()},dN=(n,t)=>{var e=t.getFullYear(),i=Ue=>-Ue.getTimezoneOffset()/60,r=Ue=>new Date(Ue-36e5),v=nw.getTimeZoneDeclarationTuple(n,e),[D,A]=v;if(v.length<2)return nw.getTimeZoneOffsetById(n,t)===i(t)&&!uN();var we=i(new Date(D.date)),Le=i(new Date(A.date));return!(we!==D.offset||we===i(r(D.date))||Le!==A.offset||Le===i(r(A.date)))},Ete=()=>{var n=new Date(Date.now()),t=new Date,e=new Date;return t.setFullYear(n.getFullYear(),0,1),e.setFullYear(n.getFullYear(),6,1),[t,e]},Ote={getDaylightOffset:$D,getDaylightOffsetInMs:(n,t)=>$D(n,t)*jD("minute"),getTimezoneOffsetChangeInMinutes:sN,getTimezoneOffsetChangeInMs:(n,t,e,i)=>sN(n,t,e,i)*jD("minute"),calculateTimezoneByValue:sk,getCorrectedDateByDaylightOffsets:(n,t,e,i,r)=>{var A=YD(n,t,i)-YD(n,t,r);return new Date(e.getTime()-A*jD("hour"))},isSameAppointmentDates:(n,t)=>(t=new Date(t.getTime()-1),te.Z.sameDate(n,t)),correctRecurrenceExceptionByTimezone:function(n,t,e,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],v=(n.getTimezoneOffset()-t.getTimezoneOffset())/60;return i?v=YD(t,n,i):e&&(v=YD(t,n,e)),new Date(n.getTime()+(r?-1:1)*v*jD("hour"))},getClientTimezoneOffset:lk,getDiffBetweenClientTimezoneOffsets:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return lk(n)-lk(t)},createUTCDateWithLocalOffset:n=>n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds())):null,createDateFromUTCWithLocalOffset:n=>{var t=(n=>new lte(n))(n),e=t.getTimezoneOffset();return t.addTime(t.getTimezoneOffset("minute")),t.subtractMinutes(e-t.getTimezoneOffset()),t.source},createUTCDate:ak,isTimezoneChangeInDate:lN,getDateWithoutTimezoneChange:n=>{var t=new Date(n);if(lN(t)){var e=new Date(t);return new Date(e.setDate(e.getDate()+1))}return t},hasDSTInLocalTimeZone:uN,isEqualLocalTimeZone:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(Intl){var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e===n)return!0}return dN(n,t)},isEqualLocalTimeZoneByDeclaration:dN,getTimeZones:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=ak(n);return nw.getDisplayedTimeZones(t.getTime())},setOffsetsToDate:(n,t)=>{var e=t.reduce((i,r)=>i+r,n.getTime());return new Date(e)}};const Xo=Ote;var Dte=te.Z.dateToMilliseconds,Tte=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],Ite=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],Mte={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},cN=[],uk=null;function Dh(){return uk||(uk=new Pte),uk}class Pte{constructor(){this.rRule=null,this.rRuleSet=null,this.validator=new kte}generateDates(t){var e=this.evalRecurrenceRule(t.rule),i=e.rule;if(!e.isValid||!i.freq)return[];var r=this._createRruleIntervalParams(t);return this._initializeRRule(t,r.startIntervalDate,i.until),this.rRuleSet.between(r.minViewDate,r.maxViewDate,!0).filter(v=>v.getTime()+r.appointmentDuration>=r.minViewTime).map(v=>this._convertRruleResult(r,t,v))}_createRruleIntervalParams(t){var{start:e,min:i,max:r,appointmentTimezoneOffset:v}=t,D=Xo.getClientTimezoneOffset(e),A=Xo.getClientTimezoneOffset(i),z=Xo.getClientTimezoneOffset(r),Q=t.end?t.end.getTime()-t.start.getTime():0,ue=Xo.setOffsetsToDate(t.start,[-D,v]),we=t.min.getTime()-A+v,Le=new Date(we-Q),Ue=Xo.setOffsetsToDate(t.max,[-z,v]),ut=Xo.getDiffBetweenClientTimezoneOffsets(t.start,ue);return{startIntervalDate:ue,minViewTime:we,minViewDate:Le,maxViewDate:Ue,startIntervalDateDSTShift:ut<0?0:ut,appointmentDuration:Q}}_convertRruleResult(t,e,i){var r=Xo.getClientTimezoneOffset(i),D=Xo.setOffsetsToDate(i,[r,r/36e5<=-13?-864e5:0,-e.appointmentTimezoneOffset,t.startIntervalDateDSTShift]),A=Xo.getDiffBetweenClientTimezoneOffsets(D,i),z=A<0,Q=Xo.setOffsetsToDate(D,[A]),ue=Xo.getDiffBetweenClientTimezoneOffsets(Q,D);return ue&&z?new Date(Q.getTime()+ue):Q}hasRecurrence(t){return!!this.generateDates(t).length}evalRecurrenceRule(t){var e={rule:{},isValid:!1};return t&&(e.rule=this._parseRecurrenceRule(t),e.isValid=this.validator.validateRRule(e.rule,t)),e}isValidRecurrenceRule(t){return this.evalRecurrenceRule(t).isValid}daysFromByDayRule(t){var e=[];return t.byday&&(e=Array.isArray(t.byday)?t.byday:t.byday.split(",")),e.map(i=>{var r=i.match(/[A-Za-z]+/);return!!r&&r[0]}).filter(i=>!!i)}getAsciiStringByDate(t){var e=t.getTimezoneOffset()*Dte("minute"),i=new Date(t.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(t){if(t&&t.freq){var e="";for(var i in t){var r=t[i];"interval"===i&&r<2||("until"===i&&(r=this.getAsciiStringByDate(r)),e+=i+"="+r+";")}return(e=e.substring(0,e.length-1)).toUpperCase()}}_parseExceptionToRawArray(t){return t.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?(Z)?/)}getDateByAsciiString(t){if("string"!=typeof t)return t;var e=this._parseExceptionToRawArray(t);if(!e)return null;var[i,r,v,D,A,z,Q]=this._createDateTuple(e);return Q?new Date(Date.UTC(i,r,v,D,A,z)):new Date(i,r,v,D,A,z)}_dispose(){this.rRuleSet&&(delete this.rRuleSet,this.rRuleSet=null),this.rRule&&(delete this.rRule,this.rRule=null)}_getTimeZoneOffset(){return(new Date).getTimezoneOffset()}_initializeRRule(t,e,i){var r=Mo.parseString(t.rule),v=t.firstDayOfWeek;r.dtstart=e,!r.wkst&&v&&(r.wkst=[6,0,1,2,3,4,5][v]),i&&(r.until=Xo.setOffsetsToDate(i,[-Xo.getClientTimezoneOffset(i),t.appointmentTimezoneOffset])),this._createRRule(r),t.exception&&t.exception.split(",").map(z=>this.getDateByAsciiString(z)).forEach(z=>{t.getPostProcessedException&&(z=t.getPostProcessedException(z));var Q=Xo.setOffsetsToDate(z,[-Xo.getClientTimezoneOffset(z),t.appointmentTimezoneOffset]);this.rRuleSet.exdate(Q)})}_createRRule(t){this._dispose(),this.rRuleSet=new tN,this.rRule=new Mo(t),this.rRuleSet.rrule(this.rRule)}_parseRecurrenceRule(t){for(var e={},i=t.split(";"),r=0,v=i.length;r<v;r++){var D=i[r].split("=");e[D[0].toLowerCase()]=D[1]}var Q=parseInt(e.count);if(isNaN(Q)||(e.count=Q),e.interval){var ue=parseInt(e.interval);isNaN(ue)||(e.interval=ue)}else e.interval=1;return e.freq&&e.until&&(e.until=this.getDateByAsciiString(e.until)),e}_createDateTuple(t){var e=void 0!==t[8];return t.shift(),void 0===t[3]?t.splice(3):(t.splice(3,1),t.splice(6)),t[1]--,t.unshift(null),[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseInt(t[4])||0,parseInt(t[5])||0,parseInt(t[6])||0,e]}}class kte{validateRRule(t,e){return!(this._brokenRuleNameExists(t)||!Ite.includes(t.freq)||this._wrongCountRule(t)||this._wrongIntervalRule(t)||this._wrongDayOfWeek(t)||this._wrongByMonthDayRule(t)||this._wrongByMonth(t)||this._wrongUntilRule(t))||(this._logBrokenRule(e),!1)}_wrongUntilRule(t){var e=!1,i=t.until;return void 0!==i&&!(i instanceof Date)&&(e=!0),e}_wrongCountRule(t){var e=!1,i=t.count;return i&&"string"==typeof i&&(e=!0),e}_wrongByMonthDayRule(t){var e=!1,i=t.bymonthday;return i&&isNaN(parseInt(i))&&(e=!0),e}_wrongByMonth(t){var e=!1,i=t.bymonth;return i&&isNaN(parseInt(i))&&(e=!0),e}_wrongIntervalRule(t){var e=!1,i=t.interval;return i&&"string"==typeof i&&(e=!0),e}_wrongDayOfWeek(t){var e=t.byday,i=Dh().daysFromByDayRule(t),r=!1;return""===e&&(r=!0),(0,O.S6)(i,function(v,D){if(!Object.prototype.hasOwnProperty.call(Mte,D))return r=!0,!1}),r}_brokenRuleNameExists(t){var e=!1;return(0,O.S6)(t,function(i){if(!Tte.includes(i))return e=!0,!1}),e}_logBrokenRule(t){cN.includes(t)||(bu.Z.log("W0006",t),cN.push(t))}}var _y="-label",XD="-wrapper",Y0="dx-recurrence-repeat-end",pN="dx-recurrence-selectbox-freq",dk="dx-recurrence-numberbox-interval",gN="dx-recurrence-repeat-on",qD=[{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"}],Ute=qD.map(n=>({text:()=>wn.Z.format(n.recurrence),value:n.value})),Zte=[{type:"never"},{type:"until"},{type:"count"}],iw=["SU","MO","TU","WE","TH","FR","SA"];class Kte{constructor(t){this._recurrenceProcessor=Dh(),this._recurrenceRule=this._recurrenceProcessor.evalRecurrenceRule(t).rule}makeRules(t){this._recurrenceRule=this._recurrenceProcessor.evalRecurrenceRule(t).rule}makeRule(t,e){!e||Array.isArray(e)&&!e.length?delete this._recurrenceRule[t]:(0,w.$K)(t)&&("until"===t&&delete this._recurrenceRule.count,"count"===t&&delete this._recurrenceRule.until,this._recurrenceRule[t]=e)}getRepeatEndRule(){var t=this._recurrenceRule;return"count"in t?"count":"until"in t?"until":"never"}getRecurrenceString(){return this._recurrenceProcessor.getRecurrenceString(this._recurrenceRule)}getRules(){return this._recurrenceRule}getDaysFromByDayRule(){return this._recurrenceProcessor.daysFromByDayRule(this._recurrenceRule)}}class fN extends JA.Z{_getDefaultOptions(){var t=super._getDefaultOptions();return(0,y.l)(t,{value:null,startDate:new Date,firstDayOfWeek:void 0})}_getFirstDayOfWeek(){var t=this.option("firstDayOfWeek");return(0,w.$K)(t)?t:Bo.Z.firstDayOfWeekIndex()}_createComponent(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._extendConfig(i,{readOnly:this.option("readOnly")}),super._createComponent(t,e,i)}_init(){super._init(),this._recurrenceRule=new Kte(this.option("value"))}_render(){super._render(),this.$element().addClass("dx-recurrence-editor"),this._$container=(0,u.Z)("<div>").addClass("dx-recurrence-editor-container").appendTo(this.$element()),this._prepareEditors(),this._renderEditors(this._$container)}getEditorByField(t){var e=this.getRecurrenceForm().getEditor(t);if(!(0,w.$K)(e))switch(t){case"byday":e=this._weekEditor;break;case"count":e=this._repeatCountEditor;break;case"until":e=this._repeatUntilDate}return e}_prepareEditors(){var t=(this._recurrenceRule.getRules().freq||qD[1].value).toLowerCase();return this._editors=[this._createFreqEditor(t),this._createIntervalEditor(t),this._createRepeatOnLabel(t),{itemType:"group",cssClass:gN,colCount:2,colCountByScreen:{xs:2},items:this._createRepeatOnEditor(t)},{itemType:"group",items:this._createRepeatEndEditor()}],this._editors}_createFreqEditor(t){return{dataField:"freq",name:"FREQ",editorType:"dxSelectBox",cssClass:pN,editorOptions:{items:Ute,value:t,field:"freq",valueExpr:"value",displayExpr:"text",layout:"horizontal",elementAttr:{class:pN},onValueChanged:e=>this._valueChangedHandler(e)},label:{text:wn.Z.format("dxScheduler-editorLabelRecurrence")}}}_createIntervalEditor(t){var e=this._recurrenceRule.getRules().interval||1;return{itemType:"group",colCount:2,cssClass:"".concat(dk).concat(XD),colCountByScreen:{xs:2},items:[{dataField:"interval",editorType:"dxNumberBox",editorOptions:{format:"#",width:70,min:1,field:"interval",value:e,showSpinButtons:!0,useLargeSpinButtons:!1,elementAttr:{class:dk},onValueChanged:i=>this._valueChangedHandler(i)},label:{text:wn.Z.format("dxScheduler-recurrenceRepeatEvery")}},{name:"intervalLabel",cssClass:"".concat(dk).concat(_y),template:()=>wn.Z.format("dxScheduler-recurrenceRepeat".concat(t.charAt(0).toUpperCase()).concat(t.substr(1).toLowerCase()))}]}}_createRepeatOnLabel(t){return{itemType:"group",cssClass:"".concat(gN).concat(_y),items:[{name:"repeatOnLabel",colSpan:2,template:()=>wn.Z.format("dxScheduler-recurrenceRepeatOn"),visible:t&&"daily"!==t&&"hourly"!==t}]}}_createRepeatOnEditor(t){return[this._createByDayEditor(t),this._createByMonthEditor(t),this._createByMonthDayEditor(t)]}_createByDayEditor(t){return{dataField:"byday",colSpan:2,template:(e,i)=>{var r=this._getFirstDayOfWeek(),v=this._daysOfWeekByRules(),D=Bo.Z.getDayNames("abbreviated"),A=iw.slice(r).concat(iw.slice(0,r)),z=D.slice(r).concat(D.slice(0,r)).map((Q,ue)=>({text:Q,key:A[ue]}));this._$repeatOnWeek=(0,u.Z)("<div>").addClass("dx-recurrence-button-group").appendTo(i),this._weekEditor=this._createComponent(this._$repeatOnWeek,HI.Z,{items:z,field:"byday",selectionMode:"multiple",selectedItemKeys:v,keyExpr:"key",onSelectionChanged:Q=>{var ue=Q.component.option("selectedItemKeys");this._recurrenceRule.makeRule("byday",ue),this._changeEditorValue()}})},visible:"weekly"===t,label:{visible:!1}}}_createByMonthEditor(t){var e=Bo.Z.getMonthNames("wide");return{dataField:"bymonth",editorType:"dxSelectBox",editorOptions:{field:"bymonth",items:[...Array(12)].map((r,v)=>({value:"".concat(v+1),text:e[v]})),value:this._monthOfYearByRules(),width:120,displayExpr:"text",valueExpr:"value",elementAttr:{class:"dx-recurrence-selectbox-month-of-year"},onValueChanged:r=>this._valueChangedHandler(r)},visible:"yearly"===t,label:{visible:!1}}}_createByMonthDayEditor(t){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"===t||"yearly"===t,label:{visible:!1}}}_createRepeatEndEditor(){var t=this._recurrenceRule.getRepeatEndRule();return[{dataField:"repeatEnd",editorType:"dxRadioGroup",editorOptions:{items:Zte,value:t,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:wn.Z.format("dxScheduler-recurrenceEnd")}}]}_renderEditors(t){this._recurrenceForm=this._createComponent(t,qA.Z,{items:this._editors,showValidationSummary:!1,scrollingEnabled:!0,showColonAfterLabel:!1,labelLocation:"top"}),this._disableRepeatEndParts()}_setAriaDescribedBy(t,e){var i="label-".concat(new vh.Z);t.setAria("describedby",i),t.setAria("id",i,e)}getRecurrenceForm(){return this._recurrenceForm}changeValueByVisibility(t){t?this.option("value")||this._handleDefaults():(this._recurrenceRule.makeRules(""),this.option("value",""))}_handleDefaults(){this._recurrenceRule.makeRule("freq",qD[1].value),this._changeEditorValue()}_changeEditorValue(){this.option("value",this._recurrenceRule.getRecurrenceString()||"")}_daysOfWeekByRules(){var t=this._recurrenceRule.getDaysFromByDayRule();return t.length||(t=[iw[this.option("startDate").getDay()]]),t}_dayOfMonthByRules(){var t=this._recurrenceRule.getRules().bymonthday;return t||(t=this.option("startDate").getDate()),t}_monthOfYearByRules(){var t=this._recurrenceRule.getRules().bymonth;return t||(t=this.option("startDate").getMonth()+1),String(t)}_renderDefaultRepeatEnd(){var t=(0,u.Z)("<div>").addClass(Y0+XD);return(0,u.Z)("<div>").text(wn.Z.format("dxScheduler-recurrenceNever")).addClass(Y0+_y).appendTo(t),t}_repeatEndValueChangedHandler(t){var e=t.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 t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._recurrenceRule.getRepeatEndRule();"until"===t&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!1)),"count"===t&&(this._repeatCountEditor.option("disabled",!1),this._repeatUntilDate.option("disabled",!0)),"never"===t&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!0))}_renderRepeatCountEditor(){var t=this._recurrenceRule.getRules().count||1,e=(0,u.Z)("<div>").addClass(Y0+XD);return(0,u.Z)("<div>").text(wn.Z.format("dxScheduler-recurrenceAfter")).addClass(Y0+_y).appendTo(e),this._$repeatCountEditor=(0,u.Z)("<div>").addClass("dx-recurrence-numberbox-repeat-count").appendTo(e),(0,u.Z)("<div>").text(wn.Z.format("dxScheduler-recurrenceRepeatCount")).addClass(Y0+_y).appendTo(e),this._repeatCountEditor=this._createComponent(this._$repeatCountEditor,M8.Z,{field:"count",format:"#",width:70,min:1,showSpinButtons:!0,useLargeSpinButtons:!1,value:t,onValueChanged:this._repeatCountValueChangeHandler.bind(this)}),e}_repeatCountValueChangeHandler(t){"count"===this._recurrenceRule.getRepeatEndRule()&&(this._recurrenceRule.makeRule("count",t.value),this._changeEditorValue())}_formatUntilDate(t){return this._recurrenceRule.getRules().until&&te.Z.sameDate(this._recurrenceRule.getRules().until,t)?t:te.Z.setToDayEnd(t)}_renderRepeatUntilEditor(){var t=this._recurrenceRule.getRules().until||this._formatUntilDate(new Date),e=(0,u.Z)("<div>").addClass(Y0+XD);return(0,u.Z)("<div>").text(wn.Z.format("dxScheduler-recurrenceOn")).addClass(Y0+_y).appendTo(e),this._$repeatDateEditor=(0,u.Z)("<div>").addClass("dx-recurrence-datebox-until-date").appendTo(e),this._repeatUntilDate=this._createComponent(this._$repeatDateEditor,eee.Z,{field:"until",value:t,type:"date",onValueChanged:this._repeatUntilValueChangeHandler.bind(this),calendarOptions:{firstDayOfWeek:this._getFirstDayOfWeek()},useMaskBehavior:!0}),e}_repeatUntilValueChangeHandler(t){if("until"===this._recurrenceRule.getRepeatEndRule()){var e=this._formatUntilDate(new Date(t.value));this._repeatUntilDate.option("value",e),this._recurrenceRule.makeRule("until",e),this._changeEditorValue()}}_valueChangedHandler(t){var{value:e,previousValue:i}=t,r=t.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(t){("daily"===t||"hourly"===t)&&(this._recurrenceRule.makeRule("byday",""),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"weekly"===t&&(this._recurrenceRule.makeRule("byday",this._daysOfWeekByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"monthly"===t&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("byday","")),"yearly"===t&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",this._monthOfYearByRules()),this._recurrenceRule.makeRule("byday",""))}_optionChanged(t){var e,i,r,v;switch(t.name){case"readOnly":null===(e=this._recurrenceForm)||void 0===e||e.option("readOnly",t.value),null===(i=this._repeatCountEditor)||void 0===i||i.option("readOnly",t.value),null===(r=this._weekEditor)||void 0===r||r.option("readOnly",t.value),null===(v=this._repeatUntilDate)||void 0===v||v.option("readOnly",t.value),super._optionChanged(t);break;case"value":this._recurrenceRule.makeRules(t.value),this._changeRepeatIntervalLabel(),this._disableRepeatEndParts(),this._changeEditorsValue(this._recurrenceRule.getRules()),super._optionChanged(t);break;case"startDate":this._makeRepeatOnRule(this._recurrenceRule.getRules().freq),(0,w.$K)(this._recurrenceRule.getRecurrenceString())&&this._changeEditorValue();break;case"firstDayOfWeek":if(this._weekEditor){var D=Bo.Z.getDayNames("abbreviated"),A=iw.slice(t.value).concat(iw.slice(0,t.value)),z=D.slice(t.value).concat(D.slice(0,t.value)).map((Q,ue)=>({text:Q,key:A[ue]}));this._weekEditor.option("items",z)}this._$repeatDateEditor&&this._repeatUntilDate.option("calendarOptions.firstDayOfWeek",this._getFirstDayOfWeek());break;default:super._optionChanged(t)}}_changeRepeatOnVisibility(t,e){t!==e&&(this._recurrenceForm.itemOption("byday","visible",!1),this._recurrenceForm.itemOption("bymonthday","visible",!1),this._recurrenceForm.itemOption("bymonth","visible",!1),this._recurrenceForm.itemOption("repeatOnLabel","visible",t&&"daily"!==t&&"hourly"!==t),"weekly"===t&&this._recurrenceForm.itemOption("byday","visible",!0),"monthly"===t&&this._recurrenceForm.itemOption("bymonthday","visible",!0),"yearly"===t&&(this._recurrenceForm.itemOption("bymonthday","visible",!0),this._recurrenceForm.itemOption("bymonth","visible",!0)))}_changeRepeatIntervalLabel(){var t=this._recurrenceRule.getRules().freq;t&&this._recurrenceForm.itemOption("intervalLabel","template",wn.Z.format("dxScheduler-recurrenceRepeat".concat(t.charAt(0).toUpperCase()).concat(t.substr(1).toLowerCase())))}_changeEditorsValue(t){this._recurrenceForm.getEditor("freq").option("value",(t.freq||qD[1].value).toLowerCase()),this._changeDayOfWeekValue(),this._changeDayOfMonthValue(),this._changeMonthOfYearValue(),this._changeIntervalValue(t.interval),this._changeRepeatCountValue(),this._changeRepeatEndValue(),this._changeRepeatUntilValue()}_changeIntervalValue(t){this._recurrenceForm.getEditor("interval").option("value",t||1)}_changeRepeatEndValue(){var t=this._recurrenceRule.getRepeatEndRule();this._recurrenceForm.getEditor("repeatEnd").option("value",t)}_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 t=this._recurrenceRule.getRules().count||1;this._repeatCountEditor.option("value",t)}_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])}}(0,T.Z)("dxRecurrenceEditor",fN);const Gte=fN,jte={provide:ie.JU,useExisting:(0,a.Gpc)(()=>$te),multi:!0};let $te=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),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 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 Gte(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-recurrence-editor"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,jte,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),mN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[f.Lz,f.ie,p.Cu],f.ie]}),n})();var _N=l(6498);let vN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[f.Lz,f.ie,p.Cu],f.ie]}),n})();l(7374);let yN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.i3B,M.Q8p,M._Sx,M.Xdm,f.Lz,f.ie,p.Cu],M.i3B,M.Q8p,M._Sx,M.Xdm,f.ie]}),n})();var CN="gradient",qte=["normal","hover"];function pk(n,t,e){var i=t.border,r=e.border,v=(0,w.$K)(i.visible)?i.visible:r.visible,D=(0,w.$K)(i.width)?i.width:r.width,A=(0,w.$K)(i.opacity)?i.opacity:(0,w.$K)(r.opacity)?r.opacity:1,z=(0,w.$K)(t.opacity)?t.opacity:(0,w.$K)(e.opacity)?e.opacity:1;return{fill:t.color||n,"stroke-width":v?D:0,stroke:t.border.color||e.border.color,"stroke-opacity":A,opacity:z,hatching:t.hatching}}function wN(n,t){var e=n._renderer.getRootOffset();this.code=0,this.widget=n,this.color=t.color,this.options=t.options,this.rect=t.rect,this.label=this.title=t.rect._name,this.coords={x:t.rect.x+t.rect.width/2+e.left,y:t.rect.y+t.rect.height/2+e.top},this.id=t.id,this.linksIn=t.linksIn,this.linksOut=t.linksOut,this.states={normal:pk(this.color,this.options,this.options),hover:pk(this.color,this.options.hoverStyle,this.options)}}wN.prototype={compileAttrs:function(){return pk(this.color,this.options)},getState:function(){return qte[this.code]},isHovered:function(){return!!(1&this.code)},setState:function(n,t){t?this.code|=n:this.code&=~n,t?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(n){!this.widget._getOption("hoverEnabled",!0)||n===this.isHovered()||(this.widget._suspend(),n&&this.widget.clearHover(),this.setState(1,n),this.widget._eventTrigger("nodeHoverChanged",{target:this}),this.widget._resume())},setHover:function(){this.hover(!0)},showTooltip:function(n){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(t,e){return t+e.weight},0),weightOut:this.linksOut.reduce(function(t,e){return t+e.weight},0)}},typeof n<"u"?{x:n[0],y:n[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()},getLabelAttributes:function(n,t){return function Jte(n,t,e){var i=di;n.useNodeColors&&(n.font.color=e.color);var r=!!(0,w.$K)(n.border.visible)&&n.border.visible,v=(0,w.$K)(n.border.width)?n.border.width:0,D=(0,w.$K)(n.border.color)?n.border.color:n.font.color,A=(0,w.$K)(n.border.opacity)?n.border.opacity:1,z={filter:t};return r&&v&&(z.stroke=D,z["stroke-width"]=r?v:0,z["stroke-opacity"]=A),{attr:z,css:i(n.font)}}(n,t,this)}};const Qte=wN;var ene=["normal","adjacentNodeHover","hover"];function vy(n,t,e,i){var r=t.border,v=e.border,D=(0,w.$K)(r.visible)?r.visible:v.visible,A=(0,w.$K)(r.width)?r.width:v.width,z=(0,w.$K)(r.opacity)?r.opacity:(0,w.$K)(v.opacity)?v.opacity:1,Q=(0,w.$K)(t.opacity)?t.opacity:(0,w.$K)(e.opacity)?e.opacity:1,ue=t.color||n;return"target"===e.colorMode||"source"===e.colorMode?ue=n:e.colorMode===CN&&i&&(0,w.$K)(i.id)&&(ue=i.id),{fill:ue,"stroke-width":D?A:0,stroke:t.border.color||e.border.color,"stroke-opacity":z,opacity:Q,hatching:t.hatching}}function EN(n,t){var e=n._renderer.getRootOffset();this.code=0,this.widget=n,this.color=t.color,this.connection=t.connection,this.d=t.d,this.options=t.options,this.boundingRect=t.boundingRect,this.coords={x:t.boundingRect.x+t.boundingRect.width/2+e.left,y:t.boundingRect.y+t.boundingRect.height/2+e.top},this.states={normal:vy(this.color,this.options,this.options,t.gradient),adjacentNodeHover:vy(this.color,{opacity:0,border:{}},this.options,t.gradient),hover:vy(this.color,{opacity:0,border:{}},this.options,t.gradient)},this.overlayStates={normal:vy(this.color,{opacity:0,border:{}},this.options),adjacentNodeHover:vy(this.color,this.options.hoverStyle,this.options),hover:vy(this.color,this.options.hoverStyle,this.options)}}EN.prototype={getState:function(){return ene[this.code]},isHovered:function(){return 2===this.code},isAdjacentNodeHovered:function(){return 1===this.code},setState:function(n,t){t?this.code=n:(this.code=0,this.hideTooltip()),this.widget._applyLinksAppearance()},setHover:function(){this.hover(!0)},hover:function(n){!this.widget._getOption("hoverEnabled",!0)||n===this.isHovered()||(this.widget._suspend(),n&&this.widget.clearHover(),this.setState(2,n),this.widget._eventTrigger("linkHoverChanged",{target:this}),this.widget._resume())},adjacentNodeHover:function(n){!this.widget._getOption("hoverEnabled",!0)||n===this.isAdjacentNodeHovered()||(this.widget._suspend(),this.setState(1,n),this.widget._resume())},setAdjacentNodeHover:function(){this.adjacentNodeHover(!0)},showTooltip:function(n){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 n<"u"?{x:n[0],y:n[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()}};const tne=EN;var gk="white",ON={maxOfArray:function(n,t){var e=0,i=v=>v;t&&(i=t);for(var r=0;r<n.length;r++)i(n[r])>e&&(e=i(n[r]));return e}},DN=function(n){var t=[];return n.forEach(e=>{-1===t.indexOf(e[0])&&t.push(e[0]),-1===t.indexOf(e[1])&&t.push(e[1])}),t},fk=function(n,t){var e=[];return n.forEach(i=>{i[0]===t&&-1===e.indexOf(i[1])&&e.push(i[1])}),e},mk=function(n,t){var e=[];return n.forEach(i=>{i[1]===t&&-1===e.indexOf(i[0])&&e.push(i[0])}),e},ine={_hasCycle:!1,_sortedList:[],hasCycle:function(n){this._hasCycle=!1,this._sortedList=[];var t={},e=DN(n);return e.forEach(i=>{t[i]={color:gk}}),e.forEach(i=>{t[i].color===gk&&this._depthFirstSearch(n,t,i)}),this._sortedList.reverse(),this._hasCycle},_depthFirstSearch:function(n,t,e){t[e].color="gray";for(var i=fk(n,e),r=0;r<i.length;r++)t[i[r]].color===gk?this._depthFirstSearch(n,t,i[r]):"gray"===t[i[r]].color&&(this._hasCycle=!0);this._sortedList.push({name:e,lp:null,incoming:mk(n,e),outgoing:fk(n,e)}),t[e].color="black"},computeLongestPaths(n){var t=this._sortedList;return t.forEach(e=>{var i=mk(n,e.name);if(0===i.length)e.lp=0;else{var r=[];i.forEach(v=>{r.push(t.filter(D=>D.name===v)[0].lp)}),e.lp=ON.maxOfArray(r)+1}}),this._sortedList}};const yy={struct:ine,routines:ON,getVertices:DN,getAdjacentVertices:fk,getReverseAdjacentVertices:mk};var rne={validate:function(n,t){var e=null;return this._hasCycle(n)&&(e="E2006",t("E2006")),e},_hasCycle:function(n){return yy.struct.hasCycle(n)}};const one=rne;var IN={_weightPerPixel:null,_getCascadeIdx:function(n,t){var e=t.filter(i=>i.name===n)[0];return e.outgoing.length>0?e.lp:yy.routines.maxOfArray(t.map(i=>i.lp))},_getInWeightForNode:function(n,t){var e=0;return t.forEach(i=>{i[1]===n&&(e+=i[2])}),e},_getOutWeightForNode:function(n,t){var e=0;return t.forEach(i=>{i[0]===n&&(e+=i[2])}),e},_computeCascades:function(n){for(var t=yy.struct.computeLongestPaths(n),e=yy.routines.maxOfArray(t.map(v=>v.lp)),i=[],r=0;r<e+1;r++)i.push({});return n.forEach(v=>{var D=i[this._getCascadeIdx(v[0],t)];D[v[0]]||(D[v[0]]={nodeTitle:v[0]}),(D=i[this._getCascadeIdx(v[1],t)])[v[1]]||(D[v[1]]={nodeTitle:v[1]})}),i.forEach(v=>{Object.keys(v).forEach(D=>{var A=v[D];A.inWeight=this._getInWeightForNode(A.nodeTitle,n),A.outWeight=this._getOutWeightForNode(A.nodeTitle,n),A.maxWeight=Math.max(A.inWeight,A.outWeight)})}),i},_getWeightForCascade:function(n,t){var e=0,i=n[t];return Object.keys(i).forEach(r=>{e+=Math.max(i[r].inWeight,i[r].outWeight)}),e},_getMaxWeightThroughCascades:function(n){var t=[];return n.forEach(e=>{var i=0;Object.keys(e).forEach(r=>{var v=e[r];i+=Math.max(v.inWeight,v.outWeight)}),t.push(i)}),yy.routines.maxOfArray(t)},_computeNodes:function(n,t){var e=[],i=this._getMaxWeightThroughCascades(n),r=yy.routines.maxOfArray(n.map(z=>Object.keys(z).length)),v=t.nodePadding,D=t.height-v*(r-1);D<0&&(D=t.height-(v=0)*(r-1)),this._weightPerPixel=i/D;var A=0;return n.forEach(z=>{var Ue,Q=[],ue=0,we=Object.keys(z).length,Le=this._getWeightForCascade(n,A)/this._weightPerPixel+v*(we-1);"bottom"===(Ue=Array.isArray(t.nodeAlign)?A<t.nodeAlign.length?t.nodeAlign[A]:"center":t.nodeAlign)?ue=t.height-Le:"center"===Ue&&(ue=.5*(t.height-Le)),ue=Math.round(ue),Object.keys(z).forEach(ut=>{z[ut].sort=this._sort&&Object.prototype.hasOwnProperty.call(this._sort,ut)?this._sort[ut]:1}),Object.keys(z).sort((ut,It)=>z[ut].sort-z[It].sort).forEach(ut=>{var Gt=Math.floor(D*z[ut].maxWeight/i),ln=Math.round(A*t.width/(n.length-1))-(0===A?0:t.nodeWidth),En={};En._name=ut,En.width=t.nodeWidth,En.height=Gt,En.x=ln+t.x,En.y=ue+t.y,ue+=Gt+v,Q.push(En)}),A++,e.push(Q)}),e},_findRectByName:function(n,t){for(var e=0;e<n.length;e++)for(var i=0;i<n[e].length;i++)if(t===n[e][i]._name)return n[e][i];return null},_findIndexByName:function(n,t){for(var e=0,i=0;i<n.length;i++)for(var r=0;r<n[i].length;r++){if(t===n[i][r]._name)return e;e++}return null},_computeLinks:function(n,t,e){var i={},r=[],v=[];return e.forEach(D=>{Object.keys(D).forEach(A=>{i[A]={in:0,out:0}})}),t.forEach(D=>{D.forEach(A=>{var z=A._name,Q=this._findRectByName(t,z),ue=n.filter(we=>we[0]===z);ue.forEach(we=>{we.sort=this._findIndexByName(t,we[1])}),ue.sort((we,Le)=>we.sort-Le.sort).forEach(we=>{var Le=this._findRectByName(t,we[1]),Ue=Math.round(we[2]/this._weightPerPixel);r.push({from:{x:Q.x,y:Q.y+i[we[0]].out,width:Q.width,height:i[we[0]].out+Ue>Q.height?Q.height-i[we[0]].out:Ue,node:Q,weight:we[2]},to:{x:Le.x,y:Le.y+i[we[1]].in,width:Le.width,height:i[we[1]].in+Ue>Le.height?Le.height-i[we[1]].in:Ue,node:Le}}),i[we[0]].out+=Ue,i[we[1]].in+=Ue})})}),r.forEach(D=>{var A={d:this._spline(D.from,D.to),_boundingRect:{x:D.from.x+D.from.width,y:Math.min(D.from.y,D.to.y),width:D.to.x-(D.from.x+D.from.width),height:Math.max(D.from.x+D.from.height,D.to.y+D.to.height)-Math.min(D.from.y,D.to.y)},_weight:D.from.weight,_from:D.from.node,_to:D.to.node};v.push(A)}),this._fitAllNodesHeight(t,r),v},_fitNodeHeight:function(n,t,e){var i=this._findRectByName(t,n),r=0,v=0;e.forEach(function(D){D.from.node._name===n&&(v+=D.from.height),D.to.node._name===n&&(r+=D.to.height)}),i.height=Math.max(r,v)},_fitAllNodesHeight:function(n,t){for(var e=0;e<n.length;e++)for(var i=0;i<n[e].length;i++)this._fitNodeHeight(n[e][i]._name,n,t)},_spline:function(n,t){var e={x:n.x+n.width,y:n.y},i={x:n.x+n.width,y:n.y+n.height},r={x:t.x,y:t.y},v={x:t.x,y:t.y+t.height},D=.3*(r.x-e.x);return"M ".concat(e.x," ").concat(e.y," C ").concat(e.x+D," ").concat(e.y," ").concat(r.x-D," ").concat(r.y," ").concat(r.x," ").concat(r.y," L ").concat(v.x," ").concat(v.y," C ").concat(v.x-D," ").concat(v.y," ").concat(i.x+D," ").concat(i.y," ").concat(i.x," ").concat(i.y," Z")},computeLayout:function(n,t,e,i){this._sort=t;var r={},v=one.validate(n,i);return v?r.error=v:(r.cascades=this._computeCascades(n),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(n,r.nodes,r.cascades)),r},overlap:function(n,t){return!(t.x>n.x+n.width||t.x+t.width<n.x||t.y>=n.y+n.height||t.y+t.height<=n.y)}};function MN(n,t,e){var i=[],r="in"===e?"_to":"_from",v="in"===e?"_from":"_to";return n.links.map(D=>D[r]._name===t).forEach((D,A)=>{D&&i.push({index:A,weight:n.links[A]._weight,node:n.links[A][v]._name})}),i}var _k=Cl.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:E.ZT,_applySize:function(n){this._rect=n.slice();var t=this._getOption("adaptiveLayout");return this._drawLabels=!!(t.keepLabels||this._rect[2]-this._rect[0]>t.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 n=this;n._nodes.forEach(function(e,i){var r=n._renderer.rect().attr(e.rect).append(n._groupNodes);e.element=r}),this._applyNodesAppearance()},_change_LINKS_DRAW:function(){var n=this;n._links.forEach(function(e,i){var r=n._renderer.g().attr({class:"link","data-link-idx":i}).append(n._groupLinks);e.overlayElement=n._renderer.path([],"area").attr({d:e.d}).append(r),e.element=n._renderer.path([],"area").attr({d:e.d}).append(r)}),this._applyLinksAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_showTooltip:E.ZT,hideTooltip:E.ZT,clearHover:function(){this._suspend(),this._nodes.forEach(function(n){n.isHovered()&&n.hover(!1)}),this._links.forEach(function(n){n.isHovered()&&n.hover(!1),n.isAdjacentNodeHovered()&&n.adjacentNodeHover(!1)}),this._resume()},_applyNodesAppearance:function(){this._nodes.forEach(function(n){var t=n.getState();n.element.smartAttr(n.states[t])})},_applyLinksAppearance:function(){this._links.forEach(function(n){var t=n.getState();n.element.smartAttr(n.states[t]),n.overlayElement.smartAttr(n.overlayStates[t])})},_hitTestTargets:function(n,t){var i,e=this;return this._proxyData.some(function(r){if(i=r.call(e,n,t))return!0}),i},_getData:function(){var n=this,t=n._dataSourceItems()||[],e=n._getOption("sourceField",!0),i=n._getOption("targetField",!0),r=n._getOption("weightField",!0),v=[];return t.forEach(function(D){var A=Object.prototype.hasOwnProperty.bind(D);A(e)?A(i)?A(r)?(0,w.HD)(D[e])?(0,w.HD)(D[i])?!(0,w.kE)(D[r])||D[r]<=0?n._incidentOccurred("E2009",r):v.push([D[e],D[i],D[r]]):n._incidentOccurred("E2008",i):n._incidentOccurred("E2008",e):n._incidentOccurred("E2007",r):n._incidentOccurred("E2007",i):n._incidentOccurred("E2007",e)}),v},_buildLayout:function(){var n=this,t=n._getData(),e=this._rect,i=n._getOption("node"),r=n._getOption("sortData"),A=(n._getOption("layoutBuilder",!0)||IN).computeLayout(t,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:n._getOption("alignment",!0)},n._incidentOccurred);if(n._layoutMap=A,!Object.prototype.hasOwnProperty.call(A,"error")){var z={},Q=0,ue=n._getOption("link"),we=A.nodes.map(Ue=>Ue.length).reduce((Ue,ut)=>Ue+ut,0),Le=n._themeManager.createPalette(n._getOption("palette",!0),{useHighlight:!0,extensionMode:n._getOption("paletteExtensionMode",!0),count:we});n._nodes=[],n._links=[],n._gradients.forEach(Ue=>{Ue.dispose()}),n._gradients=[],n._shadowFilter&&n._shadowFilter.dispose(),A.nodes.forEach(Ue=>{Ue.forEach(ut=>{var It=i.color||Le.getNextColor(),Gt=new Qte(n,{id:Q,color:It,rect:ut,options:i,linksIn:MN(A,ut._name,"in"),linksOut:MN(A,ut._name,"out")});n._nodes.push(Gt),Q++,z[ut._name]=It})}),A.links.forEach(Ue=>{var ut=null;ue.colorMode===CN&&(ut=n._renderer.linearGradient([{offset:"0%","stop-color":z[Ue._from._name]},{offset:"100%","stop-color":z[Ue._to._name]}]),this._gradients.push(ut));var It=ue.color;"source"===ue.colorMode?It=z[Ue._from._name]:"target"===ue.colorMode&&(It=z[Ue._to._name]);var Gt=new tne(n,{d:Ue.d,boundingRect:Ue._boundingRect,color:It,options:ue,connection:{source:Ue._from._name,target:Ue._to._name,weight:Ue._weight},gradient:ut});n._links.push(Gt)}),n._renderer.initHatching(),n._change(["NODES_DRAW","LINKS_DRAW","LABELS"])}n._change(["DRAWN"])},_applyLabelsAppearance:function(){var n=this,t=n._getOption("label"),e=n._rect[2]-n._rect[0],i=n._getOption("node");if(n._shadowFilter=n._renderer.shadowFilter("-50%","-50%","200%","200%").attr(t.shadow),n._groupLabels.clear(),n._drawLabels&&t.visible){var r=(e-(i.width+t.horizontalOffset)-n._layoutMap.cascades.length*i.width)/(n._layoutMap.cascades.length-1)-t.horizontalOffset;n._nodes.forEach(function(v){n._createLabel(v,t,n._shadowFilter.id),function une(n,t,e,i){n._label.getBBox().width>e&&n.labelText.applyEllipsis(e);var r=n._label.getBBox(),v=t.verticalOffset,D=t.horizontalOffset,A=Math.round(n.rect.y+n.rect.height/2-r.y-r.height/2)+v,z=n.rect.x+D+n.rect.width-r.x;z+r.width>=i[2]-i[0]&&(z=n.rect.x-D-r.x-r.width),A>=i[3]&&(A=i[3]),A-r.height<i[1]&&(A=n.rect.y-r.y+v),n.labelText.attr({translateX:z,translateY:A})}(v,t,r,n._rect)}),"none"!==t.overlappingBehavior&&n._nodes.forEach(function(v){var D=v._label.getBBox();n._nodes.forEach(function(A){var z=A._label.getBBox();v.id!==A.id&&IN.overlap(D,z)&&("ellipsis"===t.overlappingBehavior?v.labelText.applyEllipsis(z.x-D.x):"hide"===t.overlappingBehavior&&v.labelText.remove())})})}},_createLabel:function(n,t,e){var i=t.customizeText(n),r=n.getLabelAttributes(t,e);i&&(n._label=this._renderer.g().append(this._groupLabels),n.labelText=this._renderer.text(i).attr(r.attr).css(r.css),n.labelText.append(n._label))},_getMinSize:function(){var n=this._getOption("adaptiveLayout");return[n.width,n.height]},getAllNodes:function(){return this._nodes.slice()},getAllLinks:function(){return this._links.slice()}});(0,T.Z)("dxSankey",_k);const Ff=_k;_k.addPlugin(Ha);var AN=function(n,t){return function(e){var i=(0,w.mf)(n)?n.call(e,e):{},r=Object.prototype.hasOwnProperty.bind(i);return!r("html")&&!r("text")&&(i=(0,y.l)(i,t.call(e,e))),i}},PN=Ff.prototype,gne=0;PN._eventsMap.onNodeClick={name:"nodeClick"},PN._eventsMap.onLinkClick={name:"linkClick"};var mne={name:"tracker",init:function(){var n=this,t="__sankey_data_"+gne++;n._tracker=new Rb({widget:n,root:n._renderer.root,getData:function(e){return e.target[t]},getNode:function(e){return e<n._nodes.length?n._nodes[e]:n._links[e-n._nodes.length]},click:function(e){var i=this.getData(e.event)<n._nodes.length?"nodeClick":"linkClick";n._eventTrigger(i,{target:e.node,event:e.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_LINKS_DRAW:function(){var n=this._dataKey;this._nodes.concat(this._links).forEach(function(t,e){t.element.data(n,e)})}}};Ff.addPlugin(Bu),Ff.addPlugin(Oe),Ff.addPlugin(mne),Ff.addPlugin(xi),Ff.addPlugin(Ve),function hne(n){n.prototype._setTooltipOptions=function(){var i,r,t=this._tooltip,e=t&&this._getOption("tooltip");e.linkTooltipTemplate&&(i=this._getTemplate(e.linkTooltipTemplate)),e.nodeTooltipTemplate&&(r=this._getTemplate(e.nodeTooltipTemplate)),t&&t.update((0,y.l)({},e,{customizeTooltip:function(v){i&&"link"===v.type||r&&"node"===v.type||(v.skipTemplate=!0);var D=A=>t.formatValue(A);return"node"===v.type?AN(e.customizeNodeTooltip,(n=>function(t){return{html:"<strong>".concat(t.label,"</strong><br/>Incoming weight: ").concat(n(t.weightIn),"<br/>Outgoing weight: ").concat(n(t.weightOut))}})(D))(v.info):"link"===v.type?AN(e.customizeLinkTooltip,(n=>function(t){return{html:"<strong>".concat(t.source," > ").concat(t.target,"</strong><br/>Weight: ").concat(n(t.weight))}})(D))(v.info):{}},contentTemplate(v,D){var A={model:v.info,container:D};return i&&"link"===v.type?i.render(A):r&&"node"===v.type?r.render(A):void 0},enabled:e.enabled}))},n.prototype.hideTooltip=function(){this._tooltip&&this._tooltip.hide()}}(Ff);let kN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.lsC,M.lj9,M.e1H,M.bgw,M.YXG,M.Ois,M.Wwk,M.Ye1,M.kZH,M.rHV,M.KjY,M.hb3,M.Kx,M.rrz,M.lTN,M.vZC,M.FZZ,f.Lz,f.ie,p.Cu],M.lsC,M.lj9,M.e1H,M.bgw,M.YXG,M.Ois,M.Wwk,M.Ye1,M.kZH,M.rHV,M.KjY,M.hb3,M.Kx,M.rrz,M.lTN,M.vZC,M.FZZ,f.ie]}),n})();var RN=l(7572),vne=l(4121),LN=l(1469),X0=null,BN=function(){X0&&(X0.$element().remove(),X0=null)};function FN(n){return BN(),X0=function(n){return new YA.Z((0,u.Z)("<div>").appendTo(n&&n.container||(0,LN.S3)()),n)}(n),X0.show()}function JD(){return X0?X0.hide().done(BN).promise():(new P.BH).resolve()}var ka_getField=(n,t,e)=>{if((0,w.$K)(n.getter[t]))return n.getter[t](e)},ka_setField=(n,t,e,i)=>{if((0,w.$K)(n.setter[t]))return n.setter[t](e,i),e};class vk{constructor(t,e,i,r){this.rawAppointment=t,this.dataAccessors=e,this.timeZoneCalculator=i,this.options=r}get duration(){return this.endDate?this.endDate-this.startDate:0}get startDate(){var t=this.getField("startDate");return void 0===t?t:new Date(t)}set startDate(t){this.setField("startDate",t)}get endDate(){var t=this.getField("endDate");return void 0===t?t:new Date(t)}set endDate(t){this.setField("endDate",t)}get allDay(){return this.getField("allDay")}set allDay(t){this.setField("allDay",t)}get text(){return this.getField("text")}set text(t){this.setField("text",t)}get description(){return this.getField("description")}set description(t){this.setField("description",t)}get startDateTimeZone(){return this.getField("startDateTimeZone")}get endDateTimeZone(){return this.getField("endDateTimeZone")}get recurrenceRule(){return this.getField("recurrenceRule")}set recurrenceRule(t){this.setField("recurrenceRule",t)}get recurrenceException(){return this.getField("recurrenceException")}set recurrenceException(t){this.setField("recurrenceException",t)}get disabled(){return!!this.getField("disabled")}get isRecurrent(){return Dh().isValidRecurrenceRule(this.recurrenceRule)}getField(t){return ka_getField(this.dataAccessors,t,this.rawAppointment)}setField(t,e){return ka_setField(this.dataAccessors,t,this.rawAppointment,e)}calculateStartDate(t){if(!this.startDate||isNaN(this.startDate.getTime()))throw Js.Z.Error("E1032",this.text);return this.calculateDate(this.startDate,this.startDateTimeZone,t)}calculateEndDate(t){return this.calculateDate(this.endDate,this.endDateTimeZone,t)}calculateDate(t,e,i){if(t)return this.timeZoneCalculator.createDate(t,{appointmentTimeZone:e,path:i})}clone(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=new vk((0,Ee.HR)({},this.rawAppointment),this.dataAccessors,this.timeZoneCalculator,t);return null!=t&&t.pathTimeZone&&(e.startDate=e.calculateStartDate(t.pathTimeZone),e.endDate=e.calculateEndDate(t.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(0,y.l)({},this.rawAppointment)}}var za=(n,t,e,i)=>new vk(n,t,e,i),VN=(n,t)=>(0,w.$K)(n.find(e=>(0,E.bY)(e,t))),rw=n=>n.valueExpr||"id",yk=n=>n.displayExpr||"text",Vf=n=>n.fieldExpr||n.field,QD=n=>{if(n instanceof W0.o)return n;var t=(0,ui.Z)({},(0,SD.aN)(n),{pageSize:0});return Array.isArray(n)||(t.filter=n.filter),new W0.o(t)},ow=n=>{var t=0,e=(i,r,v,D)=>{v=v||[];for(var A=0;A<i.items.length;A++){var z,Q=i.items[A],ue={name:i.name,value:Q.id,title:Q.text,data:null===(z=i.data)||void 0===z?void 0:z[A],children:[],parent:D||null},we=r+1;n[we]&&e(n[we],we,ue.children,ue),ue.children.length||(ue.leafIndex=t,t++),v.push(ue)}return v};return e(n[0],0)},NN=(n,t)=>{var e=ow(t),i=(D,A)=>{for(var z=0;z<D.length;z++){if(D[z].leafIndex===A)return D[z];var Q=i(D[z].children,A);if(Q)return Q}},r=(D,A)=>((A=A||[]).push(D.value),D.parent&&r(D.parent,A),A),v=i(e,n);return r(v).reverse()},Cy=(n,t)=>{var e=[];if(Lp(t)){if(n<0)return;for(var i=NN(n,t),r=0;r<t.length;r++)e.push({name:t[r].name,id:i[r]})}return e},Lp=n=>{for(var t=0,e=0,i=n.length;e<i;e++)e?t*=n[e].items.length:t=n[e].items.length;return t},eT=n=>n.reduce((t,e)=>{var{name:i,id:r}=e;return(0,ui.Z)({},t,{[i]:r})},{}),HN=n=>{var t=Lp(n);return[...new Array(t)].map((e,i)=>{var r=Cy(i,n);return eT(r)})},zN=(n,t)=>{var e=n.find(i=>Vf(i)===t);return!(null==e||!e.allowMultiple)},tT=(n,t)=>n.filter(e=>{var i=Vf(e);return t.indexOf(i)>-1}),nT=(n,t,e)=>n[e][t],Sne=(n,t,e)=>{var i=ow(e),r={};return t.forEach(v=>{for(var D=Ck((z,Q)=>nT(n.dataAccessors,z,Q),i,v),A=0;A<D.length;A++)r[D[A]]||(r[D[A]]=[]),r[D[A]].push((0,Ee.HR)({},v,!0))}),r},Ck=(n,t,e,i)=>{i=i||[];for(var r=0;r<t.length;r++)One(n,e,t[r].name,t[r].value)&&((0,w.$K)(t[r].leafIndex)&&i.push(t[r].leafIndex),t[r].children&&Ck(n,t[r].children,e,i));return i},One=(n,t,e,i)=>{var r=n(e,"getter")(t);return VN((0,gc.sE)(r),i)},WN=(n,t,e,i)=>(i=i?i.children:[],t.forEach(function(r,v){var D=!1,A=r.name,z=r.value,Q=r.title,ue=r.data,we=n(A,"getter");e.forEach(function(Le){if(!D){var Ue=we(Le);Array.isArray(Ue)?Ue.indexOf(z)>-1&&(i.push({name:A,value:z,title:Q,data:ue,children:[]}),D=!0):Ue===z&&(i.push({name:A,value:z,title:Q,data:ue,children:[]}),D=!0)}}),D&&r.children&&r.children.length&&WN(n,r.children,e,i[v])}),i),UN=(n,t)=>{var{resources:e,dataAccessors:i,loadedResources:r,resourceLoaderMap:v}=n,{groupIndex:D,groups:A,itemData:z}=t,Q=((n,t)=>{var e=t||[],i=n.find(v=>v.useColorAsDefault);if(i)return i;var r=e.length?tT(n,e):n;return r[r.length-1]})(e||[],A);if(Q){for(var ue=Vf(Q),we=Cy(D,r),Le=nT(i,ue,"getter"),ut=(0,gc.sE)(Le(z))[0],It=0;It<we.length;It++)if(we[It].name===ue){ut=we[It].id;break}return((n,t,e,i)=>{var r=new P.BH,v=tT(n,[e])[0]||{},A=(0,No.vb)(v.colorExpr||"color");return((n,t,e,i)=>{var r=new P.BH;return n.filter(v=>Vf(v)===e&&(0,w.$K)(v.dataSource)).forEach(v=>{var D=QD(v.dataSource),A=rw(v);t.has(e)||t.set(e,D.load()),t.get(e).done(z=>{var Q=(0,No.vb)(A),ue=z.filter(we=>(0,E.bY)(Q(we),i));r.resolve(ue[0])}).fail(()=>{t.delete(e),r.reject()})}),r.promise()})(n,t,e,i).done(z=>r.resolve(A(z))).fail(()=>r.reject()),r.promise()})(e,v,ue,ut)}return(new P.BH).resolve().promise()},ZN=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={getter:{},setter:{}};return n.forEach(e=>{var i=Vf(e);t.getter[i]=(0,No.vb)(i),t.setter[i]=(0,No.OM)(i)}),t},KN=(n,t,e)=>{var i=new P.BH,r=[],A=[];return tT(t||[],n||[]).forEach(z=>{var Q=new P.BH,ue=Vf(z);r.push(Q);var we=QD(z.dataSource).load();e.set(ue,we),we.done(Le=>{var Ue=((n,t)=>{var e=(0,No.vb)(rw(n)),i=(0,No.vb)(yk(n));return t.map(r=>{var v={id:e(r),text:i(r)};return r.color&&(v.color=r.color),v})})(z,Le);Q.resolve({name:ue,items:Ue,data:Le})}).fail(()=>Q.reject())}),r.length?(P.gx.apply(null,r).done(function(){for(var z=arguments.length,Q=new Array(z),ue=0;ue<z;ue++)Q[ue]=arguments[ue];var we=Q.some(Le=>0===Le.items.length);i.resolve(A=we?[]:Q)}).fail(()=>i.reject()),i.promise()):i.resolve(A)},GN=(n,t,e)=>{var i={};return(0,O.S6)(t.resources.getter,r=>{var v=t.resources.getter[r](n);if((0,w.$K)(v)){var A=zN(e,r)?(0,gc.sE)(v):v;i[r]=A}}),i},aw_MOBILE_DEFAULT=350,aw_MOBILE_FULLSCREEN=500,jN=()=>"desktop"!==x.Z.current().deviceType,XN=te.Z.dateToMilliseconds,Bne=XN("day"),Fne={height:"auto",maxHeight:"100%",showCloseButton:!1,showTitle:!1,defaultOptionsRules:[{device:()=>x.Z.current().android,options:{showTitle:!1}}]};class Vne{constructor(t,e){this.scheduler=t,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(t,e){if(this.state.appointment.data=t,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",((n,t)=>{var e=[],i={doneButton:{shortcut:"done",options:{text:wn.Z.format("Done")},location:"after"},cancelButton:{shortcut:"cancel",location:"ios"===x.Z.current().platform?"before":"after"}};return n&&e.push((0,ui.Z)({},i.doneButton,{onClick:t})),e.push(i.cancelButton),e})(e.isToolbarVisible,r=>this._doneButtonClickHandler(r))),this.popup.show()}hide(){this.popup.hide()}dispose(){var t;null===(t=this.popup)||void 0===t||t.$element().remove()}_createPopup(t){var e=(0,u.Z)("<div>").addClass("dx-scheduler-appointment-popup").appendTo(this.scheduler.getElement());return this.scheduler.createComponent(e,Tp.Z,t)}_createPopupConfig(){return(0,ui.Z)({},Fne,{onHiding:()=>this.scheduler.focus(),contentTemplate:()=>this._createPopupContent(),onShowing:t=>this._onShowing(t),copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})}_onShowing(t){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?t.cancel=!0:this.updatePopupFullScreenMode()})}_createPopupContent(){return this._createForm(),this.form.dxForm.$element()}_createFormData(t){var e=this._createAppointmentAdapter(t),i=this.scheduler.getDataAccessors(),r=this.scheduler.getResources(),v=GN(t,i,r);return(0,ui.Z)({},t,v,{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(t){var e=this._createAppointmentAdapter(t);return!(!t||!e.disabled)||0!==this.state.action&&!this.scheduler.getEditingConfig().allowUpdating}_createAppointmentAdapter(t){return za(t,this.scheduler.getDataAccessors(),this.scheduler.getTimeZoneCalculator())}_updateForm(){var{data:t}=this.state.appointment,e=this._createAppointmentAdapter(this._createFormData(t));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&&(0,Eb.U_)(this.popup.$element())}changeSize(t){if(this.popup){var e=(()=>{var n=(0,fi.Jj)(),t=n&&(0,s.dz)(n);return!!t&&(jN()?t<aw_MOBILE_FULLSCREEN:t<1e3)})(),i=e?"100%":(n=>jN()?aw_MOBILE_DEFAULT:n?970:485)(t);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(t){var e=new P.BH,i=this.form.dxForm.validate();return t&&this._showLoadPanel(),(0,P.gx)(i&&i.complete||i).done(r=>{if(r&&!r.isValid)return JD(),void e.resolve(!1);var v=this._createAppointmentAdapter(this.form.formData),D=v.clone({pathTimeZone:"fromAppointment"});this._addMissingDSTTime(v,D);var A=D.source();switch(delete A.repeat,this.state.action){case 0:this.scheduler.addAppointment(A).done(e.resolve);break;case 1:this.scheduler.updateAppointment(this.state.appointment.data,A).done(e.resolve);break;case 2:this.scheduler.updateAppointment(this.state.excludeInfo.sourceAppointment,this.state.excludeInfo.updatedAppointment),this.scheduler.addAppointment(A).done(e.resolve)}e.done(()=>{JD(),this.state.lastEditData=A})}),e.promise()}_doneButtonClickHandler(t){t.cancel=!0,this.saveEditDataAsync()}saveEditDataAsync(){var t=new P.BH;return this._tryLockSaveChanges()&&(0,P.gx)(this.saveChangesAsync(!0)).done(()=>{if(this.state.lastEditData){var e=this._createAppointmentAdapter(this.state.lastEditData),{startDate:i,endDate:r,allDay:v}=e,D=i.getTime(),A=r.getTime(),z=v||A-D>=Bne,Q=this.scheduler.getDataAccessors(),ue=this.scheduler.getResources(),we=GN(this.state.lastEditData,Q,ue);this.scheduler.updateScrollPosition(i,we,z),this.state.lastEditData=null}this._unlockSaveChanges(),t.resolve()}),t.promise()}_showLoadPanel(){var t=this.popup.$overlayContent();FN({container:t,position:{of:t},copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})}_tryLockSaveChanges(){return!1===this.state.saveChangesLocker&&(this.state.saveChangesLocker=!0,!0)}_unlockSaveChanges(){this.state.saveChangesLocker=!1}_addMissingDSTTime(t,e){var i=this.scheduler.getTimeZoneCalculator();e.startDate=this._addMissingDSTShiftToDate(i,t.startDate,e.startDate),e.endDate&&(e.endDate=this._addMissingDSTShiftToDate(i,t.endDate,e.endDate))}_addMissingDSTShiftToDate(t,e,i){var r,v,z=(null===(r=t.getOffsets(e))||void 0===r?void 0:r.common)-(null===(v=t.getOffsets(i))||void 0===v?void 0:v.common);return z?new Date(i.getTime()+z*XN("hour")):i}}var Nne=l(886);class qN{constructor(){this.counter=0}isFree(){return 0===this.counter}take(){this.counter+=1}release(){this.counter-=1,this.counter<0&&(this.counter=0)}}var Hne=l(7772),JN=l(8474),QN=bA.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(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 n=(0,u.Z)("<textarea>");return this._applyInputAttributes(n,this.option("inputAttr")),this._updateInputAutoResizeAppearance(n),n},_applyInputAttributes:function(n,t){n.attr(t).addClass("dx-texteditor-input")},_renderScrollHandler:function(){this._eventY=0;var n=this._input(),t=(0,JN.M)(n,!0);d.Z.on(n,(0,k.V4)(Hne.Z.init,this.NAME),t,E.ZT),d.Z.on(n,(0,k.V4)(_o.Z.down,this.NAME),this._pointerDownHandler.bind(this)),d.Z.on(n,(0,k.V4)(_o.Z.move,this.NAME),this._pointerMoveHandler.bind(this))},_pointerDownHandler:function(n){this._eventY=(0,k.a0)(n).y},_pointerMoveHandler:function(n){var t=(0,k.a0)(n).y,e=this._eventY-t;(0,JN.u)(this._input(),e)&&(n.isScrollingEvent=!0,n.stopPropagation()),this._eventY=t},_renderDimensions:function(){var n=this.$element(),t=n.get(0),e=this._getOptionValue("width",t),i=this._getOptionValue("height",t),r=this.option("minHeight"),v=this.option("maxHeight");n.css({minHeight:void 0!==r?r:"",maxHeight:void 0!==v?v:"",width:e,height:i})},_resetDimensions:function(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents:function(){this.option("autoResizeEnabled")&&d.Z.on(this._input(),(0,k.V4)("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){d.Z.off(this._input(),(0,k.V4)("input paste",this.NAME)),this.callBase()},_getHeightDifference(n){return(0,s.sQ)(this._$element.get(0),!1)+(0,s.sQ)(this._$textEditorContainer.get(0),!1)+(0,s.sQ)(this._$textEditorInputContainer.get(0),!1)+(0,s.p)("height",(0,fi.Jj)().getComputedStyle(n.get(0))).margin},_updateInputHeight:function(){if((0,fi.Ym)()){var n=this._input(),t=this.option("height"),e=void 0===t&&this.option("autoResizeEnabled");if(!(e||void 0===t&&this.option("minHeight")))return void n.css("height","");this._resetDimensions(),this._$element.css("height",(0,s.zp)(this._$element)),n.css("height",0);var r=this._getHeightDifference(n);this._renderDimensions();var v=this._getBoundaryHeight("minHeight"),D=this._getBoundaryHeight("maxHeight"),A=n[0].scrollHeight;if(void 0!==v&&(A=Math.max(A,v-r)),void 0!==D){var z=D-r,Q=A>z;A=Math.min(A,z),this._updateInputAutoResizeAppearance(n,!Q)}n.css("height",A),e&&this._$element.css("height","auto")}},_getBoundaryHeight:function(n){var t=this.option(n);if((0,w.$K)(t))return"number"==typeof t?t:(0,s.EJ)(t,this.$element().get(0).parentElement)},_renderInputType:E.ZT,_visibilityChanged:function(n){n&&this._updateInputHeight()},_updateInputAutoResizeAppearance:function(n,t){if(n){var e=(0,E.IS)(t,this.option("autoResizeEnabled"));n.toggleClass("dx-texteditor-input-auto-resize",e)}},_dimensionChanged:function(){this.option("visible")&&this._updateInputHeight()},_optionChanged:function(n){switch(n.name){case"autoResizeEnabled":this._updateInputAutoResizeAppearance(this._input(),n.value),this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(n),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(n),n.value&&this._updateInputHeight();break;default:this.callBase(n)}}});(0,T.Z)("dxTextArea",QN);const Zne=QN;var Nf="dx-switch",Kne=Nf+"-wrapper",Gne=Nf+"-container",jne=Nf+"-inner",$ne=Nf+"-handle",e6=Nf+"-on-value",Yne=Nf+"-on",Xne=Nf+"-off",t6=JA.Z.inherit({_supportedKeys:function(){var n=this.option("rtlEnabled"),t=function(i){i.preventDefault(),this._clickAction({event:i})},e=function(i,r){r.preventDefault(),r.stopPropagation(),this._saveValueChangeEvent(r),this._animateValue(i)};return(0,y.l)(this.callBase(),{space:t,enter:t,leftArrow:e.bind(this,!!n),rightArrow:e.bind(this,!n)})},_useTemplates:function(){return!1},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,switchedOnText:wn.Z.format("dxSwitch-switchedOnText"),switchedOffText:wn.Z.format("dxSwitch-switchedOffText"),value:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_feedbackHideTimeout:0,_animating:!1,_initMarkup:function(){this._renderContainers(),this.$element().addClass(Nf).append(this._$switchWrapper),this._renderSubmitElement(),this._renderClick(),this.setAria("role","button"),this._renderSwipeable(),this.callBase(),this._renderSwitchInner(),this._renderLabels(),this._renderValue()},_getInnerOffset:function(n,t){return(t-this._offsetDirection()*Number(!n))/2*100+"%"},_getHandleOffset:function(n,t){return this.option("rtlEnabled")&&(n=!n),n?100*-t-100+"%":100*-t+"%"},_renderSwitchInner:function(){this._$switchInner=(0,u.Z)("<div>").addClass(jne).appendTo(this._$switchContainer),this._$handle=(0,u.Z)("<div>").addClass($ne).appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=(0,u.Z)("<div>").addClass(Yne).prependTo(this._$switchInner),this._$labelOff=(0,u.Z)("<div>").addClass(Xne).appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=(0,u.Z)("<div>").addClass(Gne),this._$switchWrapper=(0,u.Z)("<div>").addClass(Kne).append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.$element(),GA.Z,{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(0,s.Y_)(this._$switchContainer,!0)-(0,Zo.l)(this._$handle.get(0)).width},_renderSubmitElement:function(){this._$submitElement=(0,u.Z)("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_renderPosition:function(n,t){var e=this._getInnerOffset(n,t),i=this._getHandleOffset(n,t);this._$switchInner.css("transform"," translateX("+e+")"),this._$handle.css("transform"," translateX("+i+")")},_validateValue:function(){var n=this.option("value");"boolean"!=typeof n&&this._options.silent("value",!!n)},_renderClick:function(){var n=(0,k.V4)(g.u,this.NAME),t=this.$element();this._clickAction=this._createAction(this._clickHandler.bind(this)),d.Z.off(t,n),d.Z.on(t,n,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(n){this._saveValueChangeEvent(n.event),!this._animating&&!this._swiping&&this._animateValue(!this.option("value"))},_animateValue:function(n){var t=this.option("value"),e=n;if(t!==e){this._animating=!0;var i=this._getInnerOffset(t,0),r=this._getInnerOffset(e,0),v=this._getHandleOffset(t,0),D=this._getHandleOffset(e,0),A=this,z={},Q={},ue={},we={};z.transform=" translateX("+i+")",Q.transform=" translateX("+r+")",ue.transform=" translateX("+v+")",we.transform=" translateX("+D+")",this.$element().toggleClass(e6,e),h.Z.animate(this._$handle,{from:ue,to:we,duration:100}),h.Z.animate(this._$switchInner,{from:z,to:Q,duration:100,complete:function(){A._animating=!1,A.option("value",e)}})}},_swipeStartHandler:function(n){var t=this.option("value"),e=this.option("rtlEnabled"),i=e?0:1,r=e?1:0;n.event.maxLeftOffset=t?i:r,n.event.maxRightOffset=t?r:i,this._swiping=!0,this._feedbackDeferred=new P.BH,(0,EV.dR)(this._feedbackDeferred),this._toggleActiveState(this.$element(),this.option("activeStateEnabled"))},_swipeUpdateHandler:function(n){this._renderPosition(this.option("value"),n.event.offset)},_swipeEndHandler:function(n){var t=this,e=this._offsetDirection(),i={},r={},v=this._getInnerOffset(t.option("value"),n.event.targetOffset),D=this._getHandleOffset(t.option("value"),n.event.targetOffset);i.transform=" translateX("+v+")",r.transform=" translateX("+D+")",h.Z.animate(this._$handle,{to:r,duration:100}),h.Z.animate(this._$switchInner,{to:i,duration:100,complete:function(){t._swiping=!1;var A=t.option("value")+e*n.event.targetOffset;t._saveValueChangeEvent(n.event),t.option("value",Boolean(A)),t._feedbackDeferred.resolve(),t._toggleActiveState(t.$element(),!1)}})},_renderValue:function(){this._validateValue();var n=this.option("value");this._renderPosition(n,0),this.$element().toggleClass(e6,n),this._getSubmitElement().val(n),this.setAria({pressed:n,label:this.option(n?"switchedOnText":"switchedOffText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("switchedOnText")),this._$labelOff&&this._$labelOff.text(this.option("switchedOffText"))},_visibilityChanged:function(n){n&&this.repaint()},_optionChanged:function(n){switch(n.name){case"width":delete this._marginBound,this._refresh();break;case"switchedOnText":case"switchedOffText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(n);break;default:this.callBase(n)}}});(0,T.Z)("dxSwitch",t6);const qne=t6;var Th={Main:"mainGroup",Recurrence:"recurrenceGroup"},n6=(n,t,e,i,r)=>({editorType:"dxDateBox",dataField:n,colSpan:t,label:{text:wn.Z.format(i)},validationRules:[{type:"required"}],editorOptions:{width:"100%",calendarOptions:{firstDayOfWeek:e},onValueChanged:r,useMaskBehavior:!0}});class nie{constructor(t){this.scheduler=t,this.form=null,this.semaphore=new qN}get dxForm(){return this.form}set readOnly(t){this.form.option("readOnly",t);var{recurrenceRuleExpr:e}=this.scheduler.getDataAccessors().expr;this.form.getEditor(e)?.option("readOnly",t)}get formData(){return this.form.option("formData")}set formData(t){this.form.option("formData",t)}create(t,e,i){var r=this.scheduler.getEditingConfig().allowTimeZoneEditing,{expr:v}=this.scheduler.getDataAccessors(),D=!!i[v.recurrenceRuleExpr],A=D?1:2,z=[...this._createMainItems(v,t,e,r),...this.scheduler.createResourceEditorModel()];e(D);var Q=[{itemType:"group",name:Th.Main,colCountByScreen:{lg:2,xs:1},colSpan:A,items:z},{itemType:"group",name:Th.Recurrence,visible:D,colSpan:A,items:this._createRecurrenceEditor(v)}],ue=(0,u.Z)("<div>");this.form=this.scheduler.createComponent(ue,qA.Z,{items:Q,showValidationSummary:!0,scrollingEnabled:!0,colCount:"auto",colCountByScreen:{lg:2,xs:1},formData:i,showColonAfterLabel:!1,labelLocation:"top",customizeItem:we=>{if(this.form&&"group"===we.itemType){var Le=this.scheduler.getDataAccessors().expr,Ue=new Date(this.formData[Le.startDateExpr]),ut=new Date(this.formData[Le.endDateExpr]),It=we.items.find(ln=>ln.dataField===Le.startDateTimeZoneExpr),Gt=we.items.find(ln=>ln.dataField===Le.endDateTimeZoneExpr);It&&(It.editorOptions.dataSource=this.createTimeZoneDataSource(Ue)),Gt&&(Gt.editorOptions.dataSource=this.createTimeZoneDataSource(ut))}},screenByWidth:we=>we<600||"desktop"!==x.Z.current().deviceType?"xs":"lg"})}createTimeZoneDataSource(t){return new Nne.Z({store:nw.getDisplayedTimeZones(t),paginate:!0,pageSize:10})}_dateBoxValueChanged(t,e,i){((n,t,e)=>{null!==t&&!t&&(null===e||e)&&n.option("value",e)})(t.component,t.value,t.previousValue);var r=Cs.Z.deserializeDate(t.value),v=Cs.Z.deserializeDate(t.previousValue),D=this.form.getEditor(e),A=Cs.Z.deserializeDate(D.option("value"));if(this.semaphore.isFree()&&A&&r&&i(A,r)){var z=v?A.getTime()-v.getTime():0;D.option("value",new Date(r.getTime()+z))}}_createTimezoneEditor(t,e,i,r,v){var D=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return{dataField:t,editorType:"dxSelectBox",visibleIndex:i,colSpan:r,label:{text:" "},editorOptions:{displayExpr:"title",valueExpr:"id",placeholder:wn.Z.format("dxScheduler-noTimezoneTitle"),searchEnabled:!0,onValueChanged:z=>{var ue=this.form.getEditor(e);v&&ue.option("value",z.value)}},visible:D}}_createDateBoxItems(t,e){var i=e?2:1,r=this.scheduler.getFirstDayOfWeek();return[n6(t.startDateExpr,i,r,"dxScheduler-editorLabelStartDate",v=>{this._dateBoxValueChanged(v,t.endDateExpr,(D,A)=>D<A)}),this._createTimezoneEditor(t.startDateTimeZoneExpr,t.endDateTimeZoneExpr,1,i,!0,e),n6(t.endDateExpr,i,r,"dxScheduler-editorLabelEndDate",v=>{this._dateBoxValueChanged(v,t.startDateExpr,(D,A)=>A<D)}),this._createTimezoneEditor(t.endDateTimeZoneExpr,t.startDateTimeZoneExpr,3,i,!1,e)]}_changeFormItemDateType(t,e){var i=this.form.itemOption(t).editorOptions,v=(0,ui.Z)({},i,{type:e?"date":"datetime"});this.form.itemOption(t,"editorOptions",v)}_createMainItems(t,e,i,r){return[{dataField:t.textExpr,editorType:"dxTextBox",colSpan:2,label:{text:wn.Z.format("dxScheduler-editorLabelTitle")}},{itemType:"group",colSpan:2,colCountByScreen:{lg:2,xs:1},items:this._createDateBoxItems(t,r)},{itemType:"group",colCountByScreen:{lg:3,xs:3},colSpan:2,items:[{dataField:t.allDayExpr,cssClass:"dx-appointment-form-switch",editorType:"dxSwitch",label:{text:wn.Z.format("dxScheduler-allDay"),location:"right"},editorOptions:{onValueChanged:v=>{var D=v.value,A=this.form.getEditor(t.startDateExpr),z=this.form.getEditor(t.endDateExpr),Q=Cs.Z.deserializeDate(A.option("value"));if(this.semaphore.isFree()&&Q)if(D){var ue=te.Z.trimTime(Q);A.option("value",new Date(ue)),z.option("value",new Date(ue))}else{var we=((n,t)=>new Date(new Date(n).setHours(t)))(Q,this.scheduler.getStartDayHour()),Le=this.scheduler.getCalculatedEndDate(we);A.option("value",we),z.option("value",Le)}var Ue="".concat(Th.Main,".").concat(t.startDateExpr),ut="".concat(Th.Main,".").concat(t.endDateExpr);this._changeFormItemDateType(Ue,D),this._changeFormItemDateType(ut,D)}}},{editorType:"dxSwitch",dataField:"repeat",cssClass:"dx-appointment-form-switch",name:"visibilityChanged",label:{text:wn.Z.format("dxScheduler-editorLabelRecurrence"),location:"right"},editorOptions:{onValueChanged:v=>{var D=this.form,A=v.value?1:2;D.itemOption(Th.Main,"colSpan",A),D.itemOption(Th.Recurrence,"colSpan",A),((n,t,e)=>{var i;e.itemOption(Th.Recurrence,"visible",t),!t&&e.updateData(n,""),null===(i=e.getEditor(n))||void 0===i||i.changeValueByVisibility(t)})(t.recurrenceRuleExpr,v.value,D),i(v.value),e()}}}]},{itemType:"empty",colSpan:2},{dataField:t.descriptionExpr,editorType:"dxTextArea",colSpan:2,label:{text:wn.Z.format("dxScheduler-editorLabelDescription")}},{itemType:"empty",colSpan:2}]}_createRecurrenceEditor(t){return[{dataField:t.recurrenceRuleExpr,editorType:"dxRecurrenceEditor",editorOptions:{firstDayOfWeek:this.scheduler.getFirstDayOfWeek()},label:{text:" ",visible:!1}}]}setEditorsType(t){var{startDateExpr:e,endDateExpr:i}=this.scheduler.getDataAccessors().expr,r="".concat(Th.Main,".").concat(e),v="".concat(Th.Main,".").concat(i),D=this.form.itemOption(r),A=this.form.itemOption(v);if(D&&A){var z=D.editorOptions,Q=A.editorOptions;z.type=Q.type=t?"date":"datetime",this.form.itemOption(r,"editorOptions",z),this.form.itemOption(v,"editorOptions",Q)}}updateRecurrenceEditorStartDate(t,e){this.setEditorOptions(e,"Recurrence",{startDate:t})}setEditorOptions(t,e,i){var r="".concat(Th.groupName,".").concat(t),v=this.form.itemOption(r);v&&this.form.itemOption(r,"editorOptions",(0,y.l)({},v.editorOptions,i))}setTimeZoneEditorDataSource(t,e){var i=this.createTimeZoneDataSource(t);this.setEditorOptions(e,"Main",{dataSource:i})}updateFormData(t){this.semaphore.take(),this.form.option("formData",t);var e=this.scheduler.getDataAccessors().expr,i=t[e.allDayExpr],r=new Date(t[e.startDateExpr]),v=new Date(t[e.endDateExpr]);this.setTimeZoneEditorDataSource(r,e.startDateTimeZoneExpr),this.setTimeZoneEditorDataSource(v,e.endDateTimeZoneExpr),this.updateRecurrenceEditorStartDate(r,e.recurrenceRuleExpr),this.setEditorsType(i),this.semaphore.release()}}var rT=l(6868);class i6{constructor(t){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=t,this.targetedAppointment=e,this.color=i,this.settings=r}}var bk="dxListItemData",Bp="dxAppointmentSettings",r6="horizontal",is={DAY:"day",WEEK:"week",WORK_WEEK:"workWeek",MONTH:"month",TIMELINE_DAY:"timelineDay",TIMELINE_WEEK:"timelineWeek",TIMELINE_WORK_WEEK:"timelineWorkWeek",TIMELINE_MONTH:"timelineMonth",AGENDA:"agenda"},Ih=l(3667),o6="vertical",a6=(n,t)=>t&&n?n.toString():"0",sw=(n,t)=>{var e=t??{},i=(0,ui.Z)({},e);return n.forEach(r=>{var{attr:v,value:D}=r;i[v]=D||e[v]}),i},wk=(n,t)=>{var e=n?"".concat(n,"px"):"";return sw([{attr:"height",value:e}],t)},s6=(n,t)=>{var e=n?"".concat(n,"px"):"";return sw([{attr:"width",value:e}],t)},l6=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,Ih.G)({"dx-scheduler-first-group-cell":n,"dx-scheduler-last-group-cell":t,[e]:!0})},u6=(n,t)=>n&&t,oT=(n,t)=>t===o6&&!!n.length,lw=(n,t)=>"horizontal"===t&&!!n.length,oie=(n,t,e)=>{var i=lw(n,t);return e&&i},d6=(n,t)=>UN((0,ui.Z)({},n,{dataAccessors:n.resourcesDataAccessors}),t),Ek="dx-scheduler-appointment-collector",uie=Ek+"-compact",die=Ek+"-content";class pie{constructor(t){this.instance=t,this.elements=[]}render(t){var{isCompact:e,items:i,buttonColor:r}=t,v=this._createTemplate(i.data.length,e),A=this._createCompactButton(v,t).$element();return this._makeBackgroundColor(A,i.colors,r),this._makeBackgroundDarker(A),this.elements.push(A),A.data("items",this._createTooltipInfos(i)),A}clear(){this.elements.forEach(t=>{t.detach(),t.remove()}),this.elements=[]}_createTooltipInfos(t){return t.data.map((e,i)=>{var r,v=za(e,this.instance._dataAccessors,this.instance.timeZoneCalculator).clone();if((null===(r=t.settings)||void 0===r?void 0:r.length)>0){var{info:D}=t.settings[i];v.startDate=D.sourceAppointment.startDate,v.endDate=D.sourceAppointment.endDate}return new i6(e,v.source(),t.colors[i],t.settings[i])})}_onButtonClick(t,e){var i=(0,u.Z)(t.element);this.instance.showAppointmentTooltipCore(i,i.data("items"),this._getExtraOptionsForTooltip(e,i))}_getExtraOptionsForTooltip(t,e){return{clickEvent:this._clickEvent(t.onAppointmentClick).bind(this),dragBehavior:t.allowDrag&&this._createTooltipDragBehavior(e).bind(this),dropDownAppointmentTemplate:this.instance.option().dropDownAppointmentTemplate,isButtonClick:!0}}_clickEvent(t){return e=>{var r=(0,y.x)(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,t(r)}}_createTooltipDragBehavior(t){return e=>{var i=(0,u.Z)(e.element),r=(0,u.Z)(this.instance.element()),v=this.instance.getWorkSpace(),D=(0,al.jt)(t),A={filter:".".concat("dx-list-item"),isSetCursorOffset:!0,initialPosition:D,getItemData:z=>{var Q;return null===(Q=(0,u.Z)(z).data(bk))||void 0===Q?void 0:Q.appointment},getItemSettings:(z,Q)=>Q.itemSettings};v._createDragBehaviorBase(i,r,A)}}_getCollectorOffset(t,e){return e-t-this._getCollectorRightOffset()}_getCollectorRightOffset(){return this.instance.getRenderingStrategyInstance()._isCompactTheme()?1:5}_makeBackgroundDarker(t){t.css("boxShadow","inset ".concat((0,Zo.l)(t.get(0)).width,"px 0 0 0 rgba(0, 0, 0, 0.3)"))}_makeBackgroundColor(t,e,i){P.gx.apply(null,e).done(function(){this._makeBackgroundColorCore(t,i,[...arguments])}.bind(this))}_makeBackgroundColorCore(t,e,i){e&&e.done(r=>{var v=((n,t)=>t.length&&0!==t.filter(e=>e!==n).length?void 0:n)(r,i);v&&t.css("backgroundColor",v)})}_setPosition(t,e){(0,al.pB)(t,{top:e.top,left:e.left})}_createCompactButton(t,e){var i=this._createCompactButtonElement(e);return this.instance._createComponent(i,Jv.Z,{type:"default",width:e.width,height:e.height,onClick:r=>this._onButtonClick(r,e),template:this._renderTemplate(t,e.items,e.isCompact)})}_createCompactButtonElement(t){var{isCompact:e,$container:i,coordinates:r}=t,v=(0,u.Z)("<div>").addClass(Ek).toggleClass(uie,e).appendTo(i);return this._setPosition(v,r),v}_renderTemplate(t,e,i){return new rT.k(r=>t.render({model:{appointmentCount:e.data.length,isCompact:i},container:r.container}))}_createTemplate(t,e){return this._initButtonTemplate(t,e),this.instance._getAppointmentTemplate("appointmentCollectorTemplate")}_initButtonTemplate(t,e){this.instance._templateManager.addDefaultTemplates({appointmentCollector:new rT.k(i=>this._createButtonTemplate(t,(0,u.Z)(i.container),e))})}_createButtonTemplate(t,e,i){var r=i?t:wn.Z.getFormatter("dxScheduler-moreAppointments")(t);return e.append((0,u.Z)("<span>").text(r)).addClass(die)}}var gie=l(5412),Hf="dx-tooltip-appointment-item",fie=Hf+"-content",mie=Hf+"-content-subject",_ie=Hf+"-content-date",vie=Hf+"-marker",yie=Hf+"-marker-body",Cie=Hf+"-delete-button-container",xie=Hf+"-delete-button";class c6{constructor(t){this._tooltip=null,this._options=t,this._extraOptions=null}show(t,e,i){this._canShowTooltip(e)&&(this.hide(),this._extraOptions=i,this._showCore(t,e))}_showCore(t,e){this._tooltip?(this._shouldUseTarget()&&this._tooltip.option("target",t),this._list.option("dataSource",e)):this._tooltip=this._createTooltip(t,e),this._prepareBeforeVisibleChanged(e),this._tooltip.option("visible",!0)}_prepareBeforeVisibleChanged(t){}_getContentTemplate(t){return e=>{var i=(0,u.Z)("<div>");(0,u.Z)(e).append(i),this._list=this._createList(i,t)}}isAlreadyShown(t){if(this._tooltip&&this._tooltip.option("visible"))return this._tooltip.option("target")[0]===t[0]}_onShown(){this._list.option("focusStateEnabled",this._extraOptions.focusStateEnabled)}dispose(){}hide(){this._tooltip&&this._tooltip.option("visible",!1)}_shouldUseTarget(){return!0}_createTooltip(){}_canShowTooltip(t){return!!t.length}_createListOption(t){return{dataSource:t,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(t){return(0,u.Z)("<div>").appendTo(this._options.container).addClass(t)}_createList(t,e){return this._options.createComponent(t,gie.Z,this._createListOption(e))}_renderTemplate(t,e,i,r){var v=this._createItemListContent(t,e,r);this._options.addDefaultTemplates({[this._getItemListTemplateName()]:new rT.k(A=>{var z=(0,u.Z)(A.container);return z.append(v),z})});var D=this._options.getAppointmentTemplate(this._getItemListTemplateName()+"Template");return this._createFunctionTemplate(D,t,e,i)}_createFunctionTemplate(t,e,i,r){var v=!!this._extraOptions.isButtonClick,D=this._isEmptyDropDownAppointmentTemplate();return new rT.k(A=>t.render({model:D?{appointmentData:e,targetedAppointmentData:i,isButtonClicked:v}:e,container:A.container,index:r}))}_getItemListTemplateName(){return this._isEmptyDropDownAppointmentTemplate()?"appointmentTooltip":"dropDownAppointment"}_isEmptyDropDownAppointmentTemplate(){return!this._extraOptions.dropDownAppointmentTemplate||"dropDownAppointment"===this._extraOptions.dropDownAppointmentTemplate}_onListItemClick(t){this.hide(),this._extraOptions.clickEvent&&this._extraOptions.clickEvent(t),this._options.showAppointmentPopup(t.itemData.appointment,!1,t.itemData.targetedAppointment)}_createItemListContent(t,e,i){var r=this._extraOptions.editing,v=(0,u.Z)("<div>").addClass(Hf);return v.append(this._createItemListMarker(i)),v.append(this._createItemListInfo(this._options.createFormattedDateText(t,e))),!this._options.getAppointmentDisabled(t)&&(r&&!0===r.allowDeleting||!0===r)&&v.append(this._createDeleteButton(t,e)),v}_createItemListMarker(t){var e=(0,u.Z)("<div>").addClass(vie),i=(0,u.Z)("<div>").addClass(yie);return e.append(i),t&&t.done(r=>i.css("background",r)),e}_createItemListInfo(t){var e=(0,u.Z)("<div>").addClass(fie),i=(0,u.Z)("<div>").addClass(mie).text(t.text),r=(0,u.Z)("<div>").addClass(_ie).text(t.formatDate);return e.append(i).append(r)}_createDeleteButton(t,e){var i=(0,u.Z)("<div>").addClass(Cie),r=(0,u.Z)("<div>").addClass(xie);return i.append(r),this._options.createComponent(r,Jv.Z,{icon:"trash",stylingMode:"text",onClick:v=>{this.hide(),v.event.stopPropagation(),this._options.checkAndDeleteAppointment(t,e)}}),i}}class Eie extends c6{_prepareBeforeVisibleChanged(t){this._tooltip.option("position",{my:"bottom",at:"top",boundary:this._getBoundary(t),offset:this._extraOptions.offset,collision:"fit flipfit"})}_getBoundary(t){return this._options.isAppointmentInAllDayPanel(t[0].appointment)?this._options.container:this._options.getScrollableContainer()}_onShown(){super._onShown(),this._extraOptions.isButtonClick&&(this._list.focus(),this._list.option("focusedElement",null))}_createListOption(t,e){var i=super._createListOption(t,e);return i.showScrollbar=ry.touch?"always":"onHover",i}_createTooltip(t,e){var i=this._createTooltipElement("dx-scheduler-appointment-tooltip-wrapper");return this._options.createComponent(i,JO,{target:t,maxHeight:200,rtlEnabled:this._extraOptions.rtlEnabled,onShown:this._onShown.bind(this),contentTemplate:this._getContentTemplate(e),copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})}_onListRender(t){return this._extraOptions.dragBehavior&&this._extraOptions.dragBehavior(t)}}var Die={show:{type:"slide",duration:300,from:{position:{my:"top",at:"bottom",of:(0,fi.Jj)()}},to:{position:{my:"center",at:"center",of:(0,fi.Jj)()}}},hide:{type:"slide",duration:300,to:{position:{my:"top",at:"bottom",of:(0,fi.Jj)()}},from:{position:{my:"center",at:"center",of:(0,fi.Jj)()}}}};class Mie extends c6{_shouldUseTarget(){return!1}_onShowing(){var t=(0,s.dz)((0,fi.Jj)())>700;this._tooltip.option("height","auto");var e=(0,s.zp)(this._list.$element());this._tooltip.option(t?(n=>({shading:!0,width:"80%",height:n>.9*(0,s.Cr)((0,fi.Jj)())?"90%":"auto",position:{my:"center",at:"center",of:(0,fi.Jj)()}}))(e):(n=>({shading:!1,width:"100%",height:n>250?250:"auto",position:{my:"bottom",at:"bottom",of:(0,fi.Jj)()}}))(e))}_createTooltip(t,e){var i=this._createTooltipElement("dx-scheduler-overlay-panel");return this._options.createComponent(i,XO.Z,{target:(0,fi.Jj)(),hideOnOutsideClick:!0,animation:Die,onShowing:()=>this._onShowing(),onShown:this._onShown.bind(this),contentTemplate:this._getContentTemplate(e),copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})}}var p6=l(5610),by=null,g6=null,f6=function(){by&&(g6(),by=null)};var m6="dx-scheduler-fixed-appointments",Nie={head:"dx-scheduler-appointment-head",body:"dx-scheduler-appointment-body",tail:"dx-scheduler-appointment-tail"},Hie={horizontal:"dx-scheduler-appointment-horizontal",vertical:"dx-scheduler-appointment-vertical"},_6="dx-scheduler-appointment-drag-source",aT="dx-scheduler-header-panel-current-time-cell",sT="dx-scheduler-virtual-cell",v6="dx-scheduler-time-panel",Sk="dx-scheduler-date-table",Ok="dx-scheduler-date-table-row",wy="dx-scheduler-group-row",Dk="dx-scheduler-group-header-content",lT="dx-scheduler-last-group-cell",uT="dx-scheduler-first-group-cell",dT=["dx-scheduler-group-column-count-one","dx-scheduler-group-column-count-two","dx-scheduler-group-column-count-three"],y6=(0,k.V4)(_o.Z.enter,"dxSchedulerAppointment"),C6=(0,k.V4)(_o.Z.leave,"dxSchedulerAppointment");class Tk extends lo.Z{get coloredElement(){return this.$element()}get rawAppointment(){return this.option("data")}_getDefaultOptions(){return(0,y.l)(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(t,e){var i=this.option("observer");i&&i.fire(t,e)}invoke(){var t=this.option("observer");if(t)return t.fire.apply(t,arguments)}_optionChanged(t){switch(t.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(t)}}_getHorizontalResizingRule(){var t={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")?t[this.option("reduced")]:"left right",minHeight:0,minWidth:this.invoke("getCellWidth"),step:i,roundStepValue:!1}}_getVerticalResizingRule(){var t=Math.round(this.invoke("getCellHeight"));return{handles:"top bottom",minWidth:0,minHeight:t,step:t,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 t=ka_getField(this.option("dataAccessors"),"text",this.rawAppointment);this.$element().attr("title",t),this.$element().attr("role","button"),this._renderRecurrenceClass(),this._renderResizable(),this._setResourceColor()}_setResourceColor(){var t={itemData:this.rawAppointment,groupIndex:this.option("groupIndex"),groups:this.option("groups")};this.option("getAppointmentColor")(t).done(i=>i&&this.coloredElement.css("backgroundColor",i))}_renderAppointmentGeometry(){var t=this.option("geometry"),e=this.$element();(0,al.pB)(e,{top:t.top,left:t.left}),e.css({width:t.width<0?0:t.width,height:t.height<0?0:t.height})}_renderEmptyClass(){(this.option("geometry").empty||this.option("isCompact"))&&this.$element().addClass("dx-scheduler-appointment-empty")}_renderReducedAppointment(){var t=this.option("reduced");t&&(this.$element().toggleClass("dx-scheduler-appointment-reduced",!0).toggleClass(Nie[t],!0),this._renderAppointmentReducedIcon())}_renderAppointmentReducedIcon(){var t=(0,u.Z)("<div>").addClass("dx-scheduler-appointment-reduced-icon").appendTo(this.$element()),e=this._getEndDate(),r=[wn.Z.format("dxScheduler-editorLabelEndDate"),": ",Bo.Z.format(e,"monthAndDay"),", ",Bo.Z.format(e,"year")].join("");d.Z.off(t,y6),d.Z.on(t,y6,function(){!function Pie(n){return f6(),function(n){var t=(n=(0,y.l)({position:"top"},n)).content;delete n.content;var e=(0,u.Z)("<div>").html(t).appendTo((0,LN.S3)());g6=function(){e.remove()},by=new hB(e,n)}(n),by.show()}({target:t,content:r})}),d.Z.off(t,C6),d.Z.on(t,C6,function(){!function kie(){by?by.hide().done(f6).promise():(new P.BH).resolve()}()})}_getEndDate(){var t=ka_getField(this.option("dataAccessors"),"endDate",this.rawAppointment);return t&&new Date(t)}_renderAllDayClass(){this.$element().toggleClass("dx-scheduler-all-day-appointment",!!this.option("allDay"))}_renderDragSourceClass(){this.$element().toggleClass(_6,!!this.option("isDragSource"))}_renderRecurrenceClass(){var t=ka_getField(this.option("dataAccessors"),"recurrenceRule",this.rawAppointment);Dh().isValidRecurrenceRule(t)&&this.$element().addClass("dx-scheduler-appointment-recurrence")}_renderDirection(){this.$element().addClass(Hie[this.option("direction")])}_createResizingConfig(){var t="vertical"===this.option("direction")?this._getVerticalResizingRule():this._getHorizontalResizingRule();return this.invoke("isGroupedByDate")||(t.stepPrecision="strict"),t}_renderResizable(){this.option("allowResize")&&this._createComponent(this.$element(),_N.Z,(0,y.l)(this._createResizingConfig(),this.option("resizableConfig")))}_useTemplates(){return!1}}(0,T.Z)("dxSchedulerAppointment",Tk);class Kie extends Tk{get coloredElement(){return this.$element().find(".".concat("dx-scheduler-agenda-appointment-marker"))}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{createPlainResourceListAsync:new P.BH})}_renderResourceList(t,e){e.forEach(i=>{var r=(0,u.Z)("<div>").addClass("dx-scheduler-appointment-resource-item").appendTo(t);(0,u.Z)("<div>").text("".concat(i.label,":")).appendTo(r),(0,u.Z)("<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=(0,u.Z)("<div>").addClass("dx-scheduler-appointment-resource-list").appendTo(i);this._renderResourceList(r,e)})}}var x6=" "+wn.Z.format("dxScheduler-allDay")+": ",Ik=te.Z.dateToMilliseconds,Mk=n=>!te.Z.sameDate(n.startDate,n.endDate),ere=(n,t,e,i)=>{n=n.replace(/\s/g,"");var r=z=>e.createDate(z,{path:"toGrid"}),v=Cs.Z.deserializeDate(n),D=r(t),A=r(v);return A=Xo.correctRecurrenceExceptionByTimezone(A,D,i),Cs.Z.serializeDate(A,"yyyyMMddTHHmmss")},b6=(n,t,e,i,r)=>{if(((n,t)=>!t||isNaN(t.getTime())||n.getTime()>t.getTime())(t,e)){var v=(A=t,n.allDay?te.Z.setToDayEnd(new Date(A)):new Date(A.getTime()+i*Ik("minute")));r.setter.endDate(n,v)}var A},w6=(n,t)=>{n.sort((e,i)=>{var r=new Date(ka_getField(t,"startDate",e.settings||e)),v=new Date(ka_getField(t,"startDate",i.settings||i));return Math.sign(r.getTime()-v.getTime())})},E6=(n,t,e,i)=>{if(!n.considerTime)return t;var r=new Date(t);r.setHours(e.getHours(),e.getMinutes(),e.getSeconds());var{startDayHour:v,endDayHour:D,appointmentSettings:{allDay:A}}=n,z=new Date(t),Q=new Date(t);return z.setHours(v,0,0,0),Q.setHours(D,0,0,0),(i?r<z.getTime()||r>=Q.getTime():r<=z.getTime()||r>Q.getTime())&&(r=A?z:Q),r},S6=(n,t,e)=>E6(n,t,e,!0),O6=(n,t,e)=>E6(n,t,e,!1),D6=n=>{var{cellHeight:t,cellWidth:e,viewDataProvider:i,relativeAppointmentRect:r,appointmentSettings:v,rtlEnabled:D}=n,A=Math.floor(r.top/t),z=Math.round(r.left/e);return i.getCellData(A,z,v.allDay,D)},T6=(0,k.V4)(eF.u,"dxSchedulerAppointment"),I6=te.Z.dateToMilliseconds;class M6 extends Ab.Z{get isAgendaView(){return this.invoke("isCurrentViewAgenda")}get isVirtualScrolling(){return this.invoke("isVirtualScrolling")}get appointmentDataProvider(){return this.option("getAppointmentDataProvider")()}constructor(t,e){super(t,e),this._virtualAppointments={}}notifyObserver(t,e){var i=this.option("observer");i&&i.fire(t,e)}invoke(){var t=this.option("observer");if(t)return t.fire.apply(t,arguments)}_dispose(){clearTimeout(this._appointmentClickTimeout),super._dispose()}_supportedKeys(){var t=super._supportedKeys(),e=this._$currentAppointment;return(0,y.l)(t,{escape:function(){var i,r,v;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===(v=e.dxResizable("instance"))||void 0===v||v._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(),D=r.filter(".dx-state-focused").data(Bp).sortedIndex;if(D>0&&i.shiftKey||D<r.length-1&&!i.shiftKey){i.preventDefault(),i.shiftKey?D--:D++;var z=this._getAppointmentByIndex(D);this._resetTabIndex(z),d.Z.trigger(z,"focus")}}})}_getAppointmentByIndex(t){return this._getAccessAppointments().filter(function(i,r){return(0,p6.aT)(r,Bp).sortedIndex===t}).eq(0)}_getAccessAppointments(){return this._itemElements().filter(":visible").not(".dx-state-disabled")}_resetTabIndex(t){this._focusTarget().attr("tabIndex",-1),t.attr("tabIndex",this.option("tabIndex"))}_moveFocus(){}_focusTarget(){return this._itemElements()}_renderFocusTarget(){var t=this._getAppointmentByIndex(0);this._resetTabIndex(t)}_focusInHandler(t){super._focusInHandler(t),this._$currentAppointment=(0,u.Z)(t.target),this.option("focusedElement",(0,S.u)((0,u.Z)(t.target)))}_focusOutHandler(t){var e=this._getAppointmentByIndex(0);this.option("focusedElement",(0,S.u)(e)),super._focusOutHandler(t)}_eventBindingTarget(){return this._itemContainer()}_getDefaultOptions(){return(0,y.l)(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(t){if(!this.option("isRenovatedAppointments"))switch(t.name){case"items":this._cleanFocusState(),this._clearDropDownItems(),this._clearDropDownItemsElements(),this._repaintAppointments(t.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((0,u.Z)(t.value)),super._optionChanged(t);break;case"focusStateEnabled":this._clearDropDownItemsElements(),this._renderDropDownAppointments(),super._optionChanged(t);break;default:super._optionChanged(t)}}_isAllDayAppointment(t){return t.settings.length&&t.settings[0].allDay||!1}_isRepaintAppointment(t){return!(0,w.$K)(t.needRepaint)||!0===t.needRepaint}_isRepaintAll(t){if(this.isAgendaView)return!0;for(var e=0;e<t.length;e++)if(!this._isRepaintAppointment(t[e]))return!1;return!0}_applyFragment(t,e){t.children().length>0&&this._getAppointmentContainer(e).append(t)}_onEachAppointment(t,e,i,r){!0===t?.needRemove?this._clearItem(t):(r||this._isRepaintAppointment(t))&&(t.needRepaint=!1,this._clearItem(t),this._renderItem(e,t,i))}_repaintAppointments(t){this._renderByFragments((e,i)=>{var r=this._isRepaintAll(t);r&&(this._getAppointmentContainer(!0).html(""),this._getAppointmentContainer(!1).html("")),!t.length&&this._cleanItemContainer(),t.forEach((v,D)=>{var A=this._isAllDayAppointment(v)?i:e;this._onEachAppointment(v,D,A,r)})})}_renderByFragments(t){if(this.isVirtualScrolling){var e=(0,u.Z)(b.Z.createDocumentFragment()),i=(0,u.Z)(b.Z.createDocumentFragment());t(e,i),this._applyFragment(e,!1),this._applyFragment(i,!0)}else t(this._getAppointmentContainer(!1),this._getAppointmentContainer(!0))}_attachAppointmentsEvents(){this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent(),this._attachAppointmentDblClick(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()}_clearItem(t){var e=this._findItemElementByItem(t.itemData);e.length&&(0,O.S6)(e,function(i,r){r.detach(),r.remove()})}_clearDropDownItems(){this._virtualAppointments={}}_clearDropDownItemsElements(){this.invoke("clearCompactAppointments")}_findItemElementByItem(t){var e=[],i=this;return this.itemElements().each(function(){var r=(0,u.Z)(this);r.data(i._itemDataKey())===t&&e.push(r)}),e}_itemClass(){return"dx-scheduler-appointment"}_itemContainer(){var t=super._itemContainer(),e=t,i=this.option("allDayContainer");return i&&(e=t.add(i)),e}_cleanItemContainer(){super._cleanItemContainer();var t=this.option("allDayContainer");t&&t.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(t,e,i){var r={isAllDay:e.allDay,isRecurrence:e.recurrenceRule,html:(0,w.PO)(e)&&e.html?e.html:void 0},v=this.invoke("getTextAndFormatDate",i.appointmentData,this._currentAppointmentSettings.agendaSettings||i.targetedAppointmentData,"TIME");t.append(this.isAgendaView?((n,t)=>{var e=(0,u.Z)(b.Z.createDocumentFragment()),i=(0,u.Z)("<div>").addClass("dx-scheduler-agenda-appointment-left-layout").appendTo(e),r=(0,u.Z)("<div>").addClass("dx-scheduler-agenda-appointment-right-layout").appendTo(e),v=(0,u.Z)("<div>").addClass("dx-scheduler-agenda-appointment-marker").appendTo(i);t.isRecurrence&&(0,u.Z)("<span>").addClass("dx-scheduler-appointment-recurrence-icon dx-icon-repeat").appendTo(v),(0,u.Z)("<div>").addClass("dx-scheduler-appointment-title").text(n.text).appendTo(r);var D=(0,u.Z)("<div>").addClass("dx-scheduler-appointment-content-details").appendTo(r);return(0,u.Z)("<div>").addClass("dx-scheduler-appointment-content-date").text(n.formatDate).appendTo(D),t.isAllDay&&(0,u.Z)("<div>").text(x6).addClass("dx-scheduler-appointment-content-allday").prependTo(D),e})(v,r):((n,t)=>{var e=(0,u.Z)(b.Z.createDocumentFragment());(0,u.Z)("<div>").text(n.text).addClass("dx-scheduler-appointment-title").appendTo(e),t.html&&e.html(t.html);var i=(0,u.Z)("<div>").addClass("dx-scheduler-appointment-content-details").appendTo(e);return(0,u.Z)("<div>").addClass("dx-scheduler-appointment-content-date").text(n.formatDate).appendTo(i),t.isRecurrence&&(0,u.Z)("<span>").addClass("dx-scheduler-appointment-recurrence-icon dx-icon-repeat").appendTo(e),t.isAllDay&&(0,u.Z)("<div>").text(x6).addClass("dx-scheduler-appointment-content-allday").prependTo(i),e})(v,r))}_executeItemRenderAction(t,e,i){var r=this._getItemRenderAction();r&&r(this.invoke("mapAppointmentFields",{itemData:e,itemElement:i})),delete this._currentAppointmentSettings}_itemClickHandler(t){super._itemClickHandler(t,{},{afterExecute:function(e){this._processItemClick(e.args[0].event)}.bind(this)})}_processItemClick(t){var e=(0,u.Z)(t.currentTarget),i=this._getItemData(e);"keydown"===t.type||(0,k.VF)(t)?this.notifyObserver("showEditAppointmentPopup",{data:i,target:e}):this._appointmentClickTimeout=setTimeout(function(){!this._preventSingleAppointmentClick&&b.Z.getBody().contains(e[0])&&this.notifyObserver("showAppointmentTooltip",{data:i,target:e}),this._preventSingleAppointmentClick=!1}.bind(this),300)}_extendActionArgs(t){var e=super._extendActionArgs(t);return this.invoke("mapAppointmentFields",e)}_render(){super._render(),this._attachAppointmentDblClick()}_attachAppointmentDblClick(){var t=this,e=t._itemSelector(),i=this._itemContainer();d.Z.off(i,T6,e),d.Z.on(i,T6,e,function(r){t._itemDXEventHandler(r,"onAppointmentDblClick",{},{afterExecute:function(v){t._dblClickHandler(v.args[0].event)}})})}_dblClickHandler(t){var e=(0,u.Z)(t.currentTarget),i=this._getItemData(e);clearTimeout(this._appointmentClickTimeout),this._preventSingleAppointmentClick=!0,this.notifyObserver("showEditAppointmentPopup",{data:i,target:e})}_renderItem(t,e,i){for(var r=e.itemData,v=[],D=0;D<e.settings.length;D++){var A=e.settings[D];this._currentAppointmentSettings=A;var z=super._renderItem(t,r,i);z.data(Bp,A),v.push(z)}return v}_getItemContent(t){return t.data(Bp,this._currentAppointmentSettings),super._getItemContent(t)}_createItemByTemplate(t,e){var{itemData:i,container:r,index:v}=e;return t.render({model:{appointmentData:i,targetedAppointmentData:this.invoke("getTargetedAppointmentData",i,(0,u.Z)(r).parent())},container:r,index:v})}_getAppointmentContainer(t){var e=this.option("allDayContainer"),i=this.itemsContainer().not(e);return t&&e&&(i=e),i}_postprocessRenderItem(t){this._renderAppointment(t.itemElement,this._currentAppointmentSettings)}_renderAppointment(t,e){t.data(Bp,e),this._applyResourceDataAttr(t);var i=this._getItemData(t),r=this.invoke("getAppointmentGeometry",e),v=this.option("allowResize")&&(!(0,w.$K)(e.skipResizing)||(0,w.HD)(e.skipResizing)),D=this.option("allowDrag"),A=e.allDay;if(this.invoke("setCellDataCacheAlias",this._currentAppointmentSettings,r),e.virtual){var z={itemData:i,groupIndex:e.groupIndex,groups:this.option("groups")},Q=this.option("getAppointmentColor")(z);this._processVirtualAppointment(e,t,i,Q)}else{var ue,we={data:i,groupIndex:e.groupIndex,observer:this.option("observer"),geometry:r,direction:e.direction||"vertical",allowResize:v,allowDrag:D,allDay:A,reduced:e.appointmentReduced,isCompact:e.isCompact,startDate:new Date(null===(ue=e.info)||void 0===ue?void 0:ue.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 Le=this.option("getAgendaResourceProcessor")();we.createPlainResourceListAsync=Ue=>Le.createListAsync(Ue)}this._createComponent(t,this.isAgendaView?Kie:Tk,(0,ui.Z)({},we,{dataAccessors:this.option("dataAccessors"),getResizableStep:this.option("getResizableStep")}))}}_applyResourceDataAttr(t){var e=this.option("getResourceDataAccessors")(),i=this._getItemData(t);(0,O.S6)(e.getter,function(r){var v=e.getter[r](i);if((0,w.$K)(v)){var D="data-".concat((0,E.ku)(r.toLowerCase()),"-");(0,gc.sE)(v).forEach(A=>t.attr(D+(0,E.ku)(A),!0))}})}_resizableConfig(t,e){return{area:this._calculateResizableArea(e,t),onResizeStart:function(i){if(this.resizeOccur=!0,this._$currentAppointment=(0,u.Z)(i.element),this.invoke("needRecalculateResizableArea")){var r=this._calculateResizableArea(this._$currentAppointment.data(Bp),this._$currentAppointment.data("dxItemData"));i.component.option("area",r),i.component._renderDragOffsets(i.event)}this._initialSize={width:i.width,height:i.height},this._initialCoordinates=(0,al.jt)(this._$currentAppointment)}.bind(this),onResizeEnd:function(i){this.resizeOccur=!1,this._resizeEndHandler(i)}.bind(this)}}_calculateResizableArea(t,e){var i=this.$element().closest(".dx-scrollable-content");return this.invoke("getResizableAppointmentArea",{coordinates:{left:t.left,top:0,groupIndex:t.groupIndex},allDay:t.allDay})||i}_resizeEndHandler(t){var e=(0,u.Z)(t.element),{allDay:i,info:r}=e.data("dxAppointmentSettings"),v=this._getItemData(e),D={};if(i)D=this.resizeAllDay(t);else{var A=this._getEndResizeAppointmentStartDate(t,v,r.appointment);D=this._getDateRange(t,A,r.appointment.endDate)}this.updateResizedAppointment(e,D,this.option("dataAccessors"),this.option("timeZoneCalculator"))}resizeAllDay(t){var e=(0,u.Z)(t.element),i=this.option("timeZoneCalculator"),r=this.option("dataAccessors");return(n=>{var{appointmentSettings:t}=n,e=((n,t)=>{var e=n.left-t.left,i=n.top-t.top,r=e<0?n.width+e:n.width,v=i<0?n.height+i:n.height;return{left:Math.max(0,e),top:Math.max(0,i),width:r,height:v}})(n.appointmentRect,n.parentAppointmentRect),i=(n=>{var{appointmentSettings:t,isVerticalGroupedWorkSpace:e,DOMMetaData:i}=n,r=t.allDay&&!e?[i.allDayPanelCellsMeta]:i.dateTableCellsMeta,{positionByMap:v}=t,{height:D,width:A}=r[v.rowIndex][v.columnIndex];return{cellWidth:A,cellHeight:D,cellCountInRow:r[v.rowIndex].length}})(n),v=(0,ui.Z)({},n,i,{considerTime:!n.isDateAndTimeView||t.allDay,relativeAppointmentRect:e});return n.rtlEnabled?(n=>{var{viewDataProvider:t,cellCountInRow:e,appointmentSettings:i,handles:r,cellWidth:v,relativeAppointmentRect:D}=n,A=D6(n),{allDay:z,sourceAppointment:Q}=i.info;if(r.right){var ue=A.index,Le=ue-Math.round(D.width/v)+1,Ue=Math.floor(ue/e),ut=t.getCellData(Ue,Le,z,!0);return{startDate:S6(n,ut.startDate,Q.endDate),endDate:Q.endDate}}var Gt=n.considerTime?A.startDate:A.endDate;return Gt=O6(n,Gt,Q.endDate),{startDate:Q.startDate,endDate:Gt}})(v):(n=>{var{cellWidth:t,cellCountInRow:e,relativeAppointmentRect:i,viewDataProvider:r,appointmentSettings:v,handles:D}=n,A=D6(n),z=Math.round(i.width/t),Q=A.index+(z-1),{allDay:ue,sourceAppointment:we}=v.info;if(D.left)return{startDate:S6(n,A.startDate,we.startDate),endDate:we.endDate};var Ue=Math.floor(Q/e),It=r.getCellData(Ue,Q%e,ue),Gt=n.considerTime?It.startDate:It.endDate;return Gt=O6(n,Gt,we.endDate),{startDate:we.startDate,endDate:Gt}})(v)})({handles:t.handles,appointmentSettings:e.data("dxAppointmentSettings"),isVerticalViewDirection:this.option("isVerticalViewDirection")(),isVerticalGroupedWorkSpace:this.option("isVerticalGroupedWorkSpace")(),appointmentRect:(0,Zo.l)(e[0]),parentAppointmentRect:(0,Zo.l)(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(t,e,i,r){var v=this._getItemData(t),D=za(v,i,r).clone();D.startDate=new Date(e.startDate),D.endDate=new Date(e.endDate),this.notifyObserver("updateAppointmentAfterResize",{target:v,data:D.clone({pathTimeZone:"fromGrid"}).source(),$appointment:t})}_getEndResizeAppointmentStartDate(t,e,i){var r=this.option("timeZoneCalculator"),v=za(e,this.option("dataAccessors"),r),D=i.startDate,A=Dh(),{recurrenceRule:z,startDateTimeZone:Q}=v,ue=this.invoke("isAllDay",e),we=A.isValidRecurrenceRule(z);return!t.handles.top&&!we&&!ue&&(D=r.createDate(v.startDate,{appointmentTimeZone:Q,path:"toGrid"})),D}_getDateRange(t,e,i){var ue,we,r=this._getItemData(t.element),v=this.invoke("getDeltaTime",t,this._initialSize,r),D=this.invoke("getRenderingStrategyDirection"),z=this.invoke("isAllDay",r),Q=this.invoke("needCorrectAppointmentDates")&&!z;return("vertical"!==D||z?this.option("rtlEnabled")?t.handles.right:t.handles.left:t.handles.top)?(ue=Q?this._correctStartDateByDelta(e,v):e.getTime()-v,ue+=Xo.getTimezoneOffsetChangeInMs(e,i,ue,i),we=i.getTime()):(ue=e.getTime(),we=Q?this._correctEndDateByDelta(i,v):i.getTime()+v,we-=Xo.getTimezoneOffsetChangeInMs(e,i,e,we)),{startDate:new Date(ue),endDate:new Date(we)}}_correctEndDateByDelta(t,e){var i=this.invoke("getEndDayHour"),r=this.invoke("getStartDayHour"),v=t.getTime()+e,D=(i-r)*I6("hour"),A=e>0?Math.ceil(e/D):Math.floor(e/D),z=new Date(t),Q=new Date(t);if(Q.setHours(r,0,0,0),z.setHours(i,0,0,0),v>z.getTime()||v<=Q.getTime()){var we=e-(z.getTime()-t.getTime()),Le=new Date(t).setDate(t.getDate()+A),Ue=new Date(Le);Ue.setHours(r,0,0,0),v=Ue.getTime()+we-D*(A-1)}return v}_correctStartDateByDelta(t,e){var i=this.invoke("getEndDayHour"),r=this.invoke("getStartDayHour"),v=t.getTime()-e,D=(i-r)*I6("hour"),A=e>0?Math.ceil(e/D):Math.floor(e/D),z=new Date(t),Q=new Date(t);if(Q.setHours(r,0,0,0),z.setHours(i,0,0,0),v<Q.getTime()||v>=z.getTime()){var we=e-(t.getTime()-Q.getTime()),Le=new Date(t.setDate(t.getDate()-A));Le.setHours(i,0,0,0),v=Le.getTime()-we+D*(A-1)}return v}_processVirtualAppointment(t,e,i,r){var v=t.virtual,D=v.index;(0,w.$K)(this._virtualAppointments[D])||(this._virtualAppointments[D]={coordinates:{top:v.top,left:v.left},items:{data:[],colors:[],settings:[]},isAllDay:!!v.isAllDay,buttonColor:r}),t.targetedAppointmentData=this.invoke("getTargetedAppointmentData",i,e),this._virtualAppointments[D].items.settings.push(t),this._virtualAppointments[D].items.data.push(i),this._virtualAppointments[D].items.colors.push(r),e.remove()}_renderContentImpl(){super._renderContentImpl(),this._renderDropDownAppointments()}_renderDropDownAppointments(){this._renderByFragments((t,e)=>{(0,O.S6)(this._virtualAppointments,function(i){var r=this._virtualAppointments[i],v=r.items,D=r.coordinates,A=r.isAllDay?e:t,z=D.left,Q=this.invoke("getDropDownAppointmentWidth",r.isAllDay),ue=this.invoke("getDropDownAppointmentHeight"),we=this.option("rtlEnabled")?Q:0;this.notifyObserver("renderCompactAppointments",{$container:A,coordinates:{top:D.top,left:z+we},items:v,buttonColor:r.buttonColor,width:Q-this.option("_collectorOffset"),height:ue,onAppointmentClick:this.option("onItemClick"),allowDrag:this.option("allowDrag"),cellWidth:this.invoke("getCellWidth"),isCompact:this.invoke("isAdaptive")||this._isGroupCompact(r)})}.bind(this))})}_isGroupCompact(t){return!t.isAllDay&&this.invoke("supportCompactDropDownAppointments")}_sortAppointmentsByStartDate(t){return w6(t,this.option("dataAccessors"))}_processRecurrenceAppointment(t,e,i){var r=ka_getField(this.option("dataAccessors"),"recurrenceRule",t),v={parts:[],indexes:[]};if(r){for(var D=t.settings||t,A=new Date(ka_getField(this.option("dataAccessors"),"startDate",D)),z=ka_getField(this.option("dataAccessors"),"startDateTimeZone",t),Q=new Date(ka_getField(this.option("dataAccessors"),"endDate",D)),ue=Q.getTime()-A.getTime(),we=ka_getField(this.option("dataAccessors"),"recurrenceException",t),Le=this.invoke("getStartViewDate"),Ue=this.invoke("getEndViewDate"),ut=this.option("timeZoneCalculator"),It=Dh().generateDates({rule:r,exception:we,start:A,end:Q,min:Le,max:Ue,appointmentTimezoneOffset:ut.getOriginStartDateOffsetInMs(A,z,!1)}),Gt=t.settings?1:It.length,ln=0;ln<Gt;ln++){var En=(0,y.l)({},t,!0);if(It[ln]){var on=this._applyStartDateToObj(It[ln],{});this._applyEndDateToObj(new Date(It[ln].getTime()+ue),on),En.settings=on}else En.settings=D;v.parts.push(En),i||this._processLongAppointment(En,v)}v.indexes.push(e)}return v}_processLongAppointment(t,e){var i=this.splitAppointmentByDay(t),r=i.length,v=this.invoke("getEndViewDate").getTime(),D=this.invoke("getStartViewDate").getTime(),A=this.option("timeZoneCalculator");if(e=e||{parts:[]},r>1){(0,y.l)(t,i[0]);for(var z=1;z<r;z++){var Q=ka_getField(this.option("dataAccessors"),"startDate",i[z].settings).getTime();(Q=A.createDate(Q,{path:"toGrid"}))<v&&Q>D&&e.parts.push(i[z])}}return e}_reduceRecurrenceAppointments(t,e){(0,O.S6)(t,function(i,r){e.splice(r-i,1)})}_combineAppointments(t,e){e.length&&t.push(...e),this._sortAppointmentsByStartDate(t)}_applyStartDateToObj(t,e){return ka_setField(this.option("dataAccessors"),"startDate",e,t),e}_applyEndDateToObj(t,e){return ka_setField(this.option("dataAccessors"),"endDate",e,t),e}moveAppointmentBack(t){var e=this._$currentAppointment,i=this._initialSize,r=this._initialCoordinates;t&&(this._removeDragSourceClassFromDraggedAppointment(),(0,w.EY)(t.cancel)?t.cancel.resolve(!0):t.cancel=!0),e&&!t&&(r&&((0,al.pB)(e,r),delete this._initialSize),i&&((0,s.Ns)(e,i.width),(0,s.qt)(e,i.height),delete this._initialCoordinates))}focus(){if(this._$currentAppointment){var t=(0,S.u)(this._$currentAppointment);this.option("focusedElement",t),d.Z.trigger(t,"focus")}}splitAppointmentByDay(t){var e=t.settings||t,i=this.option("dataAccessors"),r=new Date(ka_getField(i,"startDate",e)),v=te.Z.makeDate(r),D=te.Z.makeDate(ka_getField(i,"endDate",e)),A=this.invoke("getEndViewDate"),z=this.invoke("getStartDayHour"),Q=this.invoke("getEndDayHour"),ue=this.option("timeZoneCalculator"),we=za(t,i,ue),Le=Mk(we),Ue=[];for(v=ue.createDate(v,{path:"toGrid"}),D=ue.createDate(D,{path:"toGrid"}),v.getHours()<=Q&&v.getHours()>=z&&!Le&&(Ue.push(this._applyStartDateToObj(new Date(v),{appointmentData:t})),v.setDate(v.getDate()+1));Le&&v.getTime()<D.getTime()&&v<A;){var ut=new Date(v),It=new Date(v);this._checkStartDate(ut,r,z),this._checkEndDate(It,D,Q);var Gt=(0,Ee.HR)({},t,!0),ln={};this._applyStartDateToObj(ut,ln),this._applyEndDateToObj(It,ln),Gt.settings=ln,Ue.push(Gt),(v=te.Z.trimTime(v)).setDate(v.getDate()+1),v.setHours(z)}return Ue}_checkStartDate(t,e,i){!te.Z.sameDate(t,e)||t.getHours()<=i?t.setHours(i,0,0,0):t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}_checkEndDate(t,e,i){!te.Z.sameDate(t,e)||t.getHours()>i?t.setHours(i,0,0,0):t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}_removeDragSourceClassFromDraggedAppointment(){this._itemElements().filter(".".concat(_6)).each((e,i)=>{(0,u.Z)(i).dxSchedulerAppointment("instance").option("isDragSource",!1)})}_setDragSourceAppointment(t,e){var i=this._findItemElementByItem(t),{startDate:r,endDate:v}=e.info.sourceAppointment,{groupIndex:D}=e;i.forEach(A=>{var{info:z,groupIndex:Q}=A.data(Bp),{startDate:ue,endDate:we}=z.sourceAppointment,Le=A.dxSchedulerAppointment("instance"),Ue=r.getTime()===ue.getTime()&&v.getTime()===we.getTime()&&D===Q;Le.option("isDragSource",Ue)})}updateResizableArea(){var t=this.$element().find(".dx-scheduler-appointment.dx-resizable"),e=(0,E.h3)(t,i=>{var v=(0,u.Z)(i).dxResizable("instance"),{area:D,handles:A}=v.option();return("right left"===A||"left right"===A)&&(0,w.PO)(D)});(0,O.S6)(e,(i,r)=>{var v=(0,u.Z)(r),D=(0,al.jt)(v),A=this._getItemData(v),z=this._calculateResizableArea({left:D.left},A);v.dxResizable("instance").option("area",z)})}}(0,T.Z)("dxSchedulerAppointments",M6);const sre=M6,P6=class gre{constructor(t){this._renderingStrategy=t}getDropDownAppointmentWidth(t,e){return e||!(0,w.$K)(e)?75*this._renderingStrategy.cellWidth/100:24}getCollectorTopOffset(){return 3}getCollectorLeftOffset(){return 3}getAppointmentDefaultOffset(){return this._renderingStrategy._isCompactTheme()?22:this._renderingStrategy.appointmentOffset}getDynamicAppointmentCountPerCell(){var t=this._renderingStrategy,i=Math.floor((t.cellHeight-t._getAppointmentDefaultOffset())/t._getAppointmentDefaultHeight())||this._getAppointmentMinCount();return t.allDaySupported()?{allDay:"vertical"===t.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}},yre=class vre extends P6{getDropDownAppointmentWidth(t,e){return this.getDropDownButtonAdaptiveSize()}getDropDownButtonAdaptiveSize(){return 28}getCollectorTopOffset(t){var e=this._renderingStrategy;return e.allDaySupported()&&t?(e.allDayHeight-e.getDropDownButtonAdaptiveSize())/2:this._renderingStrategy.cellHeight-40}getCollectorLeftOffset(){var t=this._renderingStrategy.getDropDownAppointmentWidth();return(this._renderingStrategy.cellWidth-t)/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 R6{constructor(t){this.options=t}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(t,e,i){var r=[];return this.appointments.forEach((v,D)=>{this.getCoordinateInfos({appointment:v,groupIndices:t,isAllDayRowAppointment:e,isRecurrentAppointment:i}).forEach(z=>{z&&r.push(this._prepareObject(z,D))})}),r}getCoordinateInfos(t){var{appointment:e,isAllDayRowAppointment:i,groupIndices:r,recurrent:v}=t,{startDate:D}=e;return this.getCoordinatesByDateInGroup(D,r,i,v?void 0:e.source.groupIndex)}_prepareObject(t,e){return t.dateSettingIndex=e,{coordinates:t,dateSettingIndex:e}}getCoordinatesByDate(t,e,i){var r=e||0,D=this.viewDataProvider.findCellPositionInMap({groupIndex:r,startDate:t,isAllDay:i});if(D){var A=this.getCellPosition(D,i&&!this.isVerticalGrouping),z=i?0:this.getTimeShift(t),Q=this.getPositionShift(z,i),ue=this.positionHelper.getHorizontalMax(r,t),we=this.positionHelper.getVerticalMax({groupIndex:r,isVirtualScrolling:this.isVirtualScrolling,showAllDayPanel:this.showAllDayPanel,supportAllDayRow:this.supportAllDayRow,isGroupedAllDayPanel:this.isGroupedAllDayPanel,isVerticalGrouping:this.isVerticalGrouping});return{positionByMap:D,cellPosition:A.left+Q.cellPosition,top:A.top+Q.top,left:A.left+Q.left,rowIndex:A.rowIndex,columnIndex:A.columnIndex,hMax:ue,vMax:we,groupIndex:r}}}getCoordinatesByDateInGroup(t,e,i,r){var v=[];if(this.viewDataProvider.isSkippedDate(t))return v;var D=[r];return(0,w.$K)(r)||(D=this.groupCount?e:[0]),D.forEach(A=>{var z=this.getCoordinatesByDate(t,A,i);z&&v.push(z)}),v}getCellPosition(t,e){var{dateTableCellsMeta:i,allDayPanelCellsMeta:r}=this.DOMMetaData,{columnIndex:v,rowIndex:D}=t,A=e?r[v]:i[D][v],z=(0,ui.Z)({},A);return this.rtlEnabled&&(z.left+=A.width),z&&(z.rowIndex=t.rowIndex,z.columnIndex=t.columnIndex),z}getTimeShift(t){var e=new Date(t),i=new Date(new Date(t).setHours(this.viewEndDayHour,0,0));t.getTime()<=i.getTime()&&e.setHours(this.viewStartDayHour,0,0,0);var r=te.Z.getTimezonesDifference(t,e),v=t.getTime(),D=e.getTime();return v>this.startViewDate.getTime()?(v-D+r)%this.cellDuration/this.cellDuration:0}}class Cre extends R6{get isVirtualScrolling(){return!0}calculateCellPositions(t,e,i){var r=e?this.appointments:this.appointments.filter(v=>{var{source:D,startDate:A,endDate:z}=v;return this.viewDataProvider.isGroupIntersectDateInterval(D.groupIndex,A,z)});return i?this.createRecurrentAppointmentInfos(r,e):super.calculateCellPositions(t,e,i)}createRecurrentAppointmentInfos(t,e){var i=[];return t.forEach((r,v)=>{var{source:D,startDate:A}=r,z=this.getCoordinatesByDate(A,D.groupIndex,e);z&&i.push(this._prepareObject(z,v))}),i}}class xre{constructor(t){this.options=t}calculateCellPositions(t,e,i){return(this.options.isVirtualScrolling?new Cre(this.options):new R6(this.options)).calculateCellPositions(t,e,i)}}var bre={timelineDay:!0,timelineWeek:!0,timelineWorkWeek:!0,timelineMonth:!0},L6=(n,t,e,i)=>i>0?te.Z.dateInRange(n,t,new Date(e.getTime()-1)):te.Z.dateInRange(n,e,t,"date"),zf=(n,t)=>{var e=new Date(n);return(0,w.$K)(t)&&e.setHours(t,t%1*60,0,0),e},cT=(n,t,e,i)=>{if(!n)return new Date(t);for(var r=te.Z.trimTime(i),v=r.getTime()<=t.getTime()?1:-1,D=new Date(r.getTime()+e*v);!L6(t,r,D,v);)r=D,D=new Date(r.getTime()+e*v);return v>0?r:D},B6=n=>(0,w.$K)(n)?n:Bo.Z.firstDayOfWeekIndex(),F6=(n,t)=>{var e=Xo.getDateWithoutTimezoneChange(n);return e.setHours(t),e},Ak=(n,t)=>{if(n>=t)throw Js.Z.Error("E1058")},V6=(n,t)=>{var e=Math.floor(t);return Xo.isTimezoneChangeInDate(n)&&e!==n.getHours()?te.Z.dateToMilliseconds("hour"):0},Pk=n=>Bo.Z.getDayNames("abbreviated")[n.getDay()],hT=n=>"".concat(Pk(n)," ").concat(Bo.Z.format(n,"day")),N6=(n,t)=>{var e=n??new Date;return t?.createDate(e,{path:"toGrid"})||e},H6=n=>{switch(n?.length){case 1:return dT[0];case 2:return dT[1];case 3:return dT[2];default:return}},J0=n=>n!==is.TIMELINE_MONTH&&n!==is.MONTH,kk=n=>!!bre[n],Rk=(n,t)=>{var e=Lp(n)||1;return oT(n,t)?1:e},z6=(n,t,e)=>oT(n,t)&&e,Lk=(n,t)=>t-n,W6=n=>{switch(n){case is.TIMELINE_DAY:case is.TIMELINE_WEEK:case is.TIMELINE_WORK_WEEK:case is.TIMELINE_MONTH:case is.MONTH:return!0;default:return!1}},Bk=n=>n[n.length-1].length,U6=n=>n.length,Z6=(n,t)=>n??Bk(t),Fk=(n,t)=>n??U6(t),K6=(n,t,e,i)=>{switch(n){case"month":return 36e5*Lk(t,e);case"timelineMonth":return te.Z.dateToMilliseconds("day");default:return 36e5*i}},G6=(n,t,e,i)=>e?"DATE":i&&te.Z.sameDate(n,t)?"TIME":"DATETIME",j6=(n,t,e)=>{var i=n.getDate()===t.getDate();switch(e){case"DATETIME":return[Bo.Z.format(n,"monthandday")," ",Bo.Z.format(n,"shorttime")," - ",i?"":Bo.Z.format(t,"monthandday")+" ",Bo.Z.format(t,"shorttime")].join("");case"TIME":return"".concat(Bo.Z.format(n,"shorttime")," - ").concat(Bo.Z.format(t,"shorttime"));case"DATE":return"".concat(Bo.Z.format(n,"monthandday")).concat(i?"":" - "+Bo.Z.format(t,"monthandday"))}},Q0=te.Z.dateToMilliseconds;class $6{constructor(t){this.options=t}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!J0(this.viewType)&&this.appointmentTakesAllDay}getIntervalDuration(){return this.appointmentTakesAllDay?this.options.allDayIntervalDuration:this.options.intervalDuration}generate(t){var e=this._getGroupIndices(this.rawAppointment),i=this._createAppointments(t,e);i=this._getProcessedByAppointmentTimeZone(i,t),this._canProcessNotNativeTimezoneDates(t)&&(i=this._getProcessedNotNativeTimezoneDates(i,t));var r=this._createGridAppointmentList(i,t),v=this._getAppointmentsFirstViewDate(r);this._fillNormalizedStartDate(r,v),r=this._cropAppointmentsByStartDayHour(r,v,this.rawAppointment),r=this._fillNormalizedEndDate(r,this.rawAppointment),this._needSeparateLongParts()&&(r=this._separateLongParts(r,t));var{isRecurrent:D}=t;return{dateSettings:r,itemGroupIndices:e,isRecurrent:D}}_getProcessedByAppointmentTimeZone(t,e){if(!(0,w.Qr)(e.startDateTimeZone)||!(0,w.Qr)(e.endDateTimeZone)){var r={startDate:this.timeZoneCalculator.getOffsets(e.startDate,e.startDateTimeZone),endDate:this.timeZoneCalculator.getOffsets(e.endDate,e.endDateTimeZone)};t.forEach(v=>{var D=this.timeZoneCalculator.getOffsets(v.startDate,e.startDateTimeZone),A=this.timeZoneCalculator.getOffsets(v.endDate,e.endDateTimeZone),z=r.startDate.appointment-D.appointment,Q=r.endDate.appointment-A.appointment;D.appointment!==D.common&&(v.startDate=new Date(v.startDate.getTime()+z*Q0("hour"))),A.appointment!==A.common&&(v.endDate=new Date(v.endDate.getTime()+Q*Q0("hour")))})}return t}_createAppointments(t,e){var i=this._createRecurrenceAppointments(t,e);return!t.isRecurrent&&0===i.length&&i.push({startDate:t.startDate,endDate:t.endDate}),i.map(r=>{var v,D=null===(v=r.endDate)||void 0===v?void 0:v.getTime();return r.startDate.getTime()===D&&r.endDate.setTime(D+Q0("minute")),(0,ui.Z)({},r,{exceptionDate:new Date(r.startDate)})})}_canProcessNotNativeTimezoneDates(t){return!((0,w.Qr)(this.timeZone)||!t.isRecurrent||Xo.isEqualLocalTimeZone(this.timeZone,t.startDate))}_getProcessedNotNativeDateIfCrossDST(t,e){if(e<0){var i=new Date(t),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(t){return this.timeZoneCalculator.getOffsets(t).common}_getProcessedNotNativeTimezoneDates(t,e){return t.map(i=>{var r=this._getCommonOffset(e.startDate)-this._getCommonOffset(i.startDate),v=this._getCommonOffset(e.endDate)-this._getCommonOffset(i.endDate);if(0===r&&0===v)return i;r=this._getProcessedNotNativeDateIfCrossDST(i.startDate,r),v=this._getProcessedNotNativeDateIfCrossDST(i.endDate,v);var D=new Date(i.startDate.getTime()+r*Q0("hour")),A=new Date(i.endDate.getTime()+v*Q0("hour")),z=this.timeZoneCalculator.createDate(D,{path:"toGrid"}),Q=this.timeZoneCalculator.createDate(A,{path:"toGrid"});return e.duration>Q.getTime()-z.getTime()&&(A=new Date(D.getTime()+e.duration)),(0,ui.Z)({},i,{startDate:D,endDate:A,exceptionDate:new Date(D)})})}_needSeparateLongParts(){return this.isVerticalOrientation?this.isGroupedByDate:this.isGroupedByDate&&this.appointmentTakesAllDay}normalizeEndDateByViewEnd(t,e){var i=new Date(e.getTime());if(!J0(this.viewType)||!this.appointmentTakesAllDay){var v=te.Z.roundToHour(this.endViewDate);i>v&&(i=v)}var D=this.viewEndDayHour,A=ka_getField(this.dataAccessors,"allDay",t),z=new Date(new Date(e.getTime()).setHours(D,0,0,0));return(i.getTime()>z.getTime()||A&&i.getHours()<D)&&(i=z),i}_fillNormalizedEndDate(t,e){return t.map(i=>{var{endDate:r}=i,v=this.normalizeEndDateByViewEnd(e,r);return(0,ui.Z)({},i,{normalizedEndDate:v})})}_separateLongParts(t,e){var i=[];return t.forEach(r=>{var v=new Date(this.dateRange[1]),{normalizedEndDate:D}=r,z=te.Z.getDatesOfInterval(r.startDate,D,{milliseconds:this.getIntervalDuration(this.appointmentTakesAllDay)}).filter(Q=>new Date(Q)<v).map(Q=>{var ue=new Date(new Date(Q).setMilliseconds(e.duration));return{startDate:Q,endDate:ue,normalizedEndDate:this.normalizeEndDateByViewEnd(this.rawAppointment,ue),source:r.source}});i=i.concat(z)}),i}_createGridAppointmentList(t,e){return t.map(i=>{var r=e.startDate.getTimezoneOffset()-i.startDate.getTimezoneOffset();return 0!==r&&this._canProcessNotNativeTimezoneDates(e)&&(i.startDate=new Date(i.startDate.getTime()+r*Q0("minute")),i.endDate=new Date(i.endDate.getTime()+r*Q0("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 t=this.appointmentTakesAllDay?te.Z.trimTime(this.dateRange[0]):this.dateRange[0],e=this.dateRange[1];if(this.timeZone){t=this.timeZoneCalculator.createDate(t,{path:"fromGrid"}),e=this.timeZoneCalculator.createDate(e,{path:"fromGrid"});var i=Xo.getDaylightOffsetInMs(t,e);i&&(e=new Date(e.getTime()+i))}return[t,e]}_createRecurrenceOptions(t,e){var[i,r]=this._createExtremeRecurrenceDates(e);return{rule:t.recurrenceRule,exception:t.recurrenceException,min:i,max:r,firstDayOfWeek:this.firstDayOfWeek,start:t.startDate,end:t.endDate,appointmentTimezoneOffset:this.timeZoneCalculator.getOriginStartDateOffsetInMs(t.startDate,t.rawAppointment.startDateTimeZone,!0),getPostProcessedException:v=>{if((0,w.Qr)(this.timeZone)||Xo.isEqualLocalTimeZone(this.timeZone,v))return v;var z=this.timeZoneCalculator.getOffsets(t.startDate).common-this.timeZoneCalculator.getOffsets(v).common;return z=this._getProcessedNotNativeDateIfCrossDST(v,z),new Date(v.getTime()-z*te.Z.dateToMilliseconds("hour"))}}}_createRecurrenceAppointments(t,e){var{duration:i}=t,r=this._createRecurrenceOptions(t);return Dh().generateDates(r).map(D=>{var A=Xo.createUTCDateWithLocalOffset(D);A.setTime(A.getTime()+i);var z=Xo.createDateFromUTCWithLocalOffset(A);return{startDate:new Date(D),endDate:z}})}_getAppointmentsFirstViewDate(t){return t.map(e=>this._getAppointmentFirstViewDate(e))}_fillNormalizedStartDate(t,e,i){t.forEach((r,v)=>{r.startDate=this._getAppointmentResultDate({appointment:r,rawAppointment:i,startDate:new Date(r.startDate),startDayHour:this.viewStartDayHour,firstViewDate:e[v]})})}_cropAppointmentsByStartDayHour(t,e){return t.filter((i,r)=>!!e[r]&&(!!this.appointmentTakesAllDay||i.endDate>i.startDate))}_getAppointmentResultDate(t){var D,{appointment:e,startDayHour:i,firstViewDate:r}=t,{startDate:v}=t;return this.appointmentTakesAllDay?D=te.Z.normalizeDate(v,r):(v<r&&(v=r),D=te.Z.normalizeDate(e.startDate,v)),this.isDateAppointment?D:te.Z.roundDateByStartDayHour(D,i)}_getAppointmentFirstViewDate(t){var e=t.source.groupIndex||0,{startDate:i,endDate:r}=t;return this.isAllDayRowAppointment||t.allDay?this.viewDataProvider.findAllDayGroupCellStartDate(e,i):this.viewDataProvider.findGroupCellStartDate(e,i,r,this.isDateAppointment)}_getGroupIndices(t){var e=[];if(t&&this.loadedResources.length){var i=ow(this.loadedResources);e=Ck((r,v)=>nT(this.options.dataAccessors.resources,r,v),i,t)}return e}}class Tre extends $6{get groupCount(){return Lp(this.loadedResources)}_createRecurrenceAppointments(t,e){var{duration:i}=t,r=[];return(this.groupCount?e:[0]).forEach(D=>{var A=this._createRecurrenceOptions(t,D),Q=Dh().generateDates(A).map(ue=>{var we=new Date(ue),Le=Xo.createUTCDateWithLocalOffset(ue);return Le.setTime(Le.getTime()+i),{startDate:we,endDate:Xo.createDateFromUTCWithLocalOffset(Le),groupIndex:D}});r.push(...Q)}),r}_updateGroupIndices(t,e){var i=[];return e.forEach(r=>{this.viewDataProvider.getGroupStartDate(r)&&t.forEach(D=>{var A=(0,y.l)({},D);A.groupIndex=r,i.push(A)})}),i}_getGroupIndices(t){var e,i=super._getGroupIndices(t),r=this.viewDataProvider.getGroupIndices();return null!==(e=i)&&void 0!==e&&e.length||(i=[0]),i.filter(v=>-1!==r.indexOf(v))}_createAppointments(t,e){var i=super._createAppointments(t,e);return t.isRecurrent?i:this._updateGroupIndices(i,e)}}class Ire{constructor(t){this.options=t,this.appointmentAdapter=za(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 t=(0,ui.Z)({},this.options,{isAllDayRowAppointment:this.isAllDayRowAppointment});return this.options.isVirtualScrolling?new Tre(t):new $6(t)}create(){var{dateSettings:t,itemGroupIndices:e,isRecurrent:i}=this._generateDateSettings(),r=this._calculateCellPositions(t,e);return this._prepareAppointmentInfos(t,r,i)}_generateDateSettings(){return this.dateSettingsStrategy.generate(this.appointmentAdapter)}_calculateCellPositions(t,e){return new xre((0,ui.Z)({},this.options,{dateSettings:t})).calculateCellPositions(e,this.isAllDayRowAppointment,this.appointmentAdapter.isRecurrent)}_prepareAppointmentInfos(t,e,i){var r=[];return e.forEach(v=>{var{coordinates:D,dateSettingIndex:A}=v,z=t[A],Q=this._getAppointmentDateText(z);r.push((0,ui.Z)({},D,{info:{appointment:z,sourceAppointment:z.source,dateText:Q,isRecurrent:i}}))}),r}_getAppointmentDateText(t){var{startDate:e,endDate:i,allDay:r}=t;return(n=>{var{startDate:t,endDate:e,allDay:i,format:r}=n,v=r||G6(t,e,i);return j6(t,e,v)})({startDate:e,endDate:i,allDay:r,format:"TIME"})}}var Y6=(n,t)=>(t.getTime()-n.getTime())/te.Z.dateToMilliseconds("hour"),Ey=(n,t,e,i)=>{var r=()=>n.allDay;switch(i){case"hidden":return!1;case"allDay":return r();default:if(r())return!0;var{endDate:v,startDate:D}=n;return!!(0,w.$K)(v)&&(Y6(D,v)>=24||((n,t,e,i)=>{var r=Y6(n,t),v=i-e,D=n.getHours(),A=t.getHours();return r>=v&&D===e&&A===i})(D,v,t,e))}},pT=te.Z.dateToMilliseconds;const Vk=class Fre{constructor(t){this.options=t,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(t,e){t.top=t.top+this.getCollectorTopOffset(e),t.left=t.left+this.getCollectorLeftOffset()}_initPositioningStrategy(){this._positioningStrategy=this.isAdaptive?new yre(this):new P6(this)}getPositioningStrategy(){return this._positioningStrategy}getAppointmentMinSize(){return 2}keepAppointmentSettings(){return!1}getDeltaTime(){}getAppointmentGeometry(t){return t}needCorrectAppointmentDates(){return!0}getDirection(){return"horizontal"}createTaskPositionMap(t){delete this._maxAppointmentCountPerCell;var e=t?.length;if(e){for(var i=[],r=0;r<e;r++){var v=this._getItemPosition(t[r]);v.length&&this.rtlEnabled&&(v=this._correctRtlCoordinates(v)),v.forEach(z=>{z.leftVirtualCellCount=this.leftVirtualCellCount,z.topVirtualCellCount=this.topVirtualCellCount,z.leftVirtualWidth=this.leftVirtualCellCount*this.cellWidth,z.topVirtualHeight=this.topVirtualCellCount*this.cellHeight}),i.push(v)}var D=this._getSortedPositions(i),A=this._getResultPositions(D);return this._getExtendedPositionMap(i,A)}}_getDeltaWidth(t,e){var i=this.resizableStep||this.getAppointmentMinSize();return Math.round((t.width-e.width)/i)}_correctRtlCoordinates(t){var e=t[0].width||this._getAppointmentMaxWidth();return t.forEach(i=>{i.appointmentReduced||(i.left-=e)}),t}_getAppointmentMaxWidth(){return this.cellWidth}_getItemPosition(t){for(var e=this.generateAppointmentSettings(t),i=this.isAllDay(t),r=[],v=0;v<e.length;v++){var D=this.calculateAppointmentHeight(t,e[v]),A=this.calculateAppointmentWidth(t,e[v]),z=A,Q=null,ue=[],we=e[v].rowIndex,Le=e[v].columnIndex;if(this._needVerifyItemSize()||i){var Ue=e[v].hMax;this.isAppointmentGreaterThan(Ue,{left:e[v].left,width:A})&&(Q="head",we=e[v].rowIndex,Le=e[v].columnIndex,z=this._reduceMultiWeekAppointment(A,{left:e[v].left,right:Ue}),ue=this._getAppointmentParts({sourceAppointmentWidth:A,reducedWidth:z,height:D},e[v]),this.rtlEnabled&&(e[v].left=Ue))}(0,y.l)(e[v],{height:D,width:z,allDay:i,rowIndex:we,columnIndex:Le,appointmentReduced:Q}),r=this._getAppointmentPartsPosition(ue,e[v],r)}return r}_getAppointmentPartsPosition(t,e,i){return t.length?(t.unshift(e),i=i.concat(t)):i.push(e),i}getAppointmentSettingsGenerator(t){return new Ire((0,ui.Z)({rawAppointment:t,appointmentTakesAllDay:this.isAppointmentTakesAllDay(t),getPositionShiftCallback:this.getPositionShift.bind(this)},this.options))}generateAppointmentSettings(t){return this.getAppointmentSettingsGenerator(t).create()}isAppointmentTakesAllDay(t){var e=za(t,this.dataAccessors,this.timeZoneCalculator);return Ey(e,this.viewStartDayHour,this.viewEndDayHour,this.allDayPanelMode)}_getAppointmentParts(){return[]}_getCompactAppointmentParts(t){var e=this.cellWidth||this.getAppointmentMinSize();return Math.round(t/e)}_reduceMultiWeekAppointment(t,e){return this.rtlEnabled?Math.floor(e.left-e.right):e.right-Math.floor(e.left)}calculateAppointmentHeight(){return 0}calculateAppointmentWidth(){return 0}isAppointmentGreaterThan(t,e){var i=e.left+e.width-t;return this.rtlEnabled&&(i=t+e.width-e.left),i>this.cellWidth/2}isAllDay(){return!1}cropAppointmentWidth(t,e){return this.isGroupedByDate?e:t}_getSortedPositions(t){for(var e=[],i=It=>Math.round(100*It)/100,v=0,D=t.length;v<D;v++)for(var A=0,z=t[v].length;A<z;A++){var{top:Q,left:ue,height:we,width:Le,cellPosition:Ue,allDay:ut}=t[v][A];e.push((En=ue,on=Q+we,Nt=ue+Le,Jt=Ue,un=ut,{i:v,j:A,top:i(Q),left:i(En),bottom:i(on),right:i(Nt),cellPosition:Jt,allDay:un}))}var En,on,Nt,Jt,un;return e.sort((It,Gt)=>this._sortCondition(It,Gt))}_sortCondition(){}_getConditions(t,e){var i=this._isSomeEdge(t,e);return{columnCondition:i||this._normalizeCondition(t.left,e.left),rowCondition:i||this._normalizeCondition(t.top,e.top),cellPositionCondition:i||this._normalizeCondition(t.cellPosition,e.cellPosition)}}_rowCondition(t,e){var i=this._getConditions(t,e);return i.columnCondition||i.rowCondition}_columnCondition(t,e){var i=this._getConditions(t,e);return i.rowCondition||i.columnCondition}_isSomeEdge(t,e){return t.i===e.i&&t.j===e.j}_normalizeCondition(t,e){var i=t-e;return Math.abs(i)>1?i:0}_isItemsCross(t,e){if(!!t.allDay==!!e.allDay){var v=this._getOrientation(t.allDay&&e.allDay);return this._checkItemsCrossing(t,e,v)}return!1}_checkItemsCrossing(t,e,i){var r=Math.floor(t[i[0]]),v=Math.floor(t[i[1]]),D=Math.ceil(e[i[0]]),A=Math.ceil(e[i[1]]);return Math.abs(t[i[2]]-e[i[2]])<=1&&(r<=D&&v>D||r<A&&v>=A||r===D&&v===A)}_getOrientation(t){return t?["left","right","top"]:["top","bottom","left"]}_getResultPositions(t){var i,v,D,A,e=[],r=0,z=0,Q={},ue=(ut,It)=>ut.some(ln=>ln===It)?ue(ut,++It):It,we=(ut,It)=>{var Gt=It||0;return{index:Gt,i:ut.i,j:ut.j,left:ut.left,right:ut.right,top:ut.top,bottom:ut.bottom,allDay:ut.allDay,sortedIndex:this._skipSortedIndex(Gt)?null:r++}},Le=ut=>{Q.items=[we(ut)],Q.left=ut.left,Q.right=ut.right,Q.top=ut.top,Q.bottom=ut.bottom,Q.allDay=ut.allDay},Ue=ut=>{ut.forEach(It=>{e.push({index:It.index,count:z+1,i:It.i,j:It.j,sortedIndex:It.sortedIndex})})};for(i=0;i<t.length;i++)v=t[i],D=[],Q.items?this._isItemsCross(Q,v)?(Q.items.forEach((ut,It)=>{this._isItemsCross(ut,v)&&D.push(ut.index)}),A=D.length?ue(D,0):0,Q.items.push(we(v,A)),z=Math.max(A,z),Q.left=Math.min(Q.left,v.left),Q.right=Math.max(Q.right,v.right),Q.top=Math.min(Q.top,v.top),Q.bottom=Math.max(Q.bottom,v.bottom),Q.allDay=v.allDay):(Ue(Q.items),Q={},Le(v),z=0):Le(v);return Q.items&&Ue(Q.items),e.sort(function(ut,It){return ut.i-It.i||ut.j-It.j})}_skipSortedIndex(t){return t>this._getMaxAppointmentCountPerCell()-1}_findIndexByKey(t,e,i,r,v){for(var D=0,A=0,z=t.length;A<z;A++)if(t[A][e]===r&&t[A][i]===v){D=A;break}return D}_getExtendedPositionMap(t,e){for(var i=0,r=[],v=0,D=t.length;v<D;v++){for(var A=[],z=0,Q=t[v].length;z<Q;z++)t[v][z].index=e[i].index,t[v][z].sortedIndex=e[i].sortedIndex,t[v][z].count=e[i++].count,A.push(t[v][z]),this._checkLongCompactAppointment(t[v][z],A);r.push(A)}return r}_checkLongCompactAppointment(t,e){return this._splitLongCompactAppointment(t,e),e}_splitLongCompactAppointment(t,e){var i=this._getMaxAppointmentCountPerCellByType(t.allDay),r=0;if(void 0!==i&&t.index>i-1){t.isCompact=!0,r=this._getCompactAppointmentParts(t.width);for(var v=1;v<r;v++){var D=(0,y.l)(!0,{},t);D.left=this._getCompactLeftCoordinate(t.left,v),D.columnIndex=D.columnIndex+v,D.sortedIndex=null,e.push(D)}}return e}_adjustDurationByDaylightDiff(t,e,i){var r=Xo.getDaylightOffset(e,i);return this._needAdjustDuration(r)?this._calculateDurationByDaylightDiff(t,r):t}_needAdjustDuration(t){return 0!==t}_calculateDurationByDaylightDiff(t,e){return t+e*pT("minute")}_getCollectorLeftOffset(t){if(t||!this.isApplyCompactAppointmentOffset())return 0;var e=this.getDropDownAppointmentWidth(this.intervalCount,t),i=this._isCompactTheme()?1:5;return this.cellWidth-e-i}_markAppointmentAsVirtual(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this._getMaxAppointmentCountPerCellByType(e);if(t.count-i>0){var{top:r,left:v}=t,D=this.isAdaptive||!e&&this.supportCompactDropDownAppointments();t.virtual={left:v+this._getCollectorLeftOffset(e),top:r,width:this.getDropDownAppointmentWidth(this.intervalCount,e),height:this.getDropDownAppointmentHeight(),index:this._generateAppointmentCollectorIndex(t,e),isAllDay:e,groupIndex:t.groupIndex,isCompact:D}}}isApplyCompactAppointmentOffset(){return this.supportCompactDropDownAppointments()}supportCompactDropDownAppointments(){return!0}_generateAppointmentCollectorIndex(t,e){var{groupIndex:i,rowIndex:r,columnIndex:v}=t;return"".concat(i,"-").concat(r,"-").concat(v,"-").concat(e)}_getMaxAppointmentCountPerCellByType(t){var e=this._getMaxAppointmentCountPerCell();return(0,w.Kn)(e)?t?e.allDay:e.simple:e}getDropDownAppointmentWidth(t,e){return this.getPositioningStrategy().getDropDownAppointmentWidth(t,e)}getDropDownAppointmentHeight(){return this.getPositioningStrategy().getDropDownAppointmentHeight()}getDropDownButtonAdaptiveSize(){return 28}getCollectorTopOffset(t){return this.getPositioningStrategy().getCollectorTopOffset(t)}getCollectorLeftOffset(){return this.getPositioningStrategy().getCollectorLeftOffset()}getAppointmentDataCalculator(){}getVerticalAppointmentHeight(t,e,i){var r=i;if((0,w.kE)(this.maxAppointmentsPerCell)){var v=this._getDynamicAppointmentCountPerCell(),A=Math.max(e,v.allDay||v);r=Math.min(A,i)}return t/r}_customizeCoordinates(t,e,i,r,v){var{index:D,count:A}=t,z=this.getVerticalAppointmentHeight(e,A,i),ue=t.top+D*z+r,we=t.width,Le=t.left;return t.isCompact&&(this.isAdaptive&&this._correctCollectorCoordinatesInAdaptive(t,v),this._markAppointmentAsVirtual(t,v)),{height:z,width:we,top:ue,left:Le,empty:this._isAppointmentEmpty(e,we)}}_isAppointmentEmpty(t,e){return t<this._getAppointmentMinHeight()||e<this._getAppointmentMinWidth()}_calculateGeometryConfig(t){var e=this.maxAppointmentsPerCell,i=this._getOffsets(),r=this._getAppointmentDefaultOffset(),v=this._getAppointmentCount(e,t),D=this._getDefaultRatio(t,v),A=this._getMaxHeight();(0,w.kE)(v)||(v=t.count,D=(A-i.unlimited)/A);var z=(1-D)*A;return("auto"===e||(0,w.kE)(e))&&(D=1,A-=r,z=r),{height:D*A,appointmentCountPerCell:v,offset:z}}_getAppointmentCount(){}_getDefaultRatio(){}_getOffsets(){}_getMaxHeight(){}_needVerifyItemSize(){return!1}_getMaxAppointmentCountPerCell(){if(!this._maxAppointmentCountPerCell){var e,t=this.maxAppointmentsPerCell;(0,w.kE)(t)&&(e=t),"auto"===t&&(e=this._getDynamicAppointmentCountPerCell()),"unlimited"===t&&(e=void 0),this._maxAppointmentCountPerCell=e}return this._maxAppointmentCountPerCell}_getDynamicAppointmentCountPerCell(){return this.getPositioningStrategy().getDynamicAppointmentCountPerCell()}allDaySupported(){return!1}_isCompactTheme(){return"compact"===((0,N.Vk)()||"").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(t,e,i){if(i){var r=e.getTime()-t.getTime();return Math.ceil(r/pT("day"))*this.visibleDayDuration}var D=pT("hour"),A=te.Z.trimTime(t),z=te.Z.trimTime(e),ue=(z-A)/pT("day")+1,we=this.endDayHour-this.startDayHour,Le=we*ue,ut=Math.max(0,(t-A)/D-this.startDayHour),It=Math.max(0,(e-z)/D-this.startDayHour);return(Le-(ut+Math.max(0,we-It)))*D}getPositionShift(t,e){return{top:t*this.cellHeight,left:0,cellPosition:0}}},X6=(n,t,e)=>{for(var i=te.Z.dateToMilliseconds("hour"),r=te.Z.trimTime(n).getTime(),v=te.Z.setToDayEnd(new Date(t.getTime()-1)).getTime(),D=24*i,A=0,z=r;z<v;z+=D){var Q=new Date(z);e.isSkippedDate(Q)&&(A+=24)}return A};var gT=te.Z.dateToMilliseconds;const q6=class zre extends Vk{getDeltaTime(t,e,i){var r=0;if(this.isAllDay(i))r=this._getDeltaWidth(t,e)*gT("day");else{var v=t.height-e.height;r=gT("minute")*Math.round(v/this.cellHeight*this.cellDurationInMinutes)}return r}_correctCollectorCoordinatesInAdaptive(t,e){if(e)super._correctCollectorCoordinatesInAdaptive(t,e);else if(0===this._getMaxAppointmentCountPerCellByType()){var r=this.cellWidth;t.top+=(this.cellHeight-this.getDropDownButtonAdaptiveSize())/2,t.left+=(r-this.getDropDownButtonAdaptiveSize())/2}}getAppointmentGeometry(t){var e;return e=t.allDay?this._getAllDayAppointmentGeometry(t):this.isAdaptive&&t.isCompact?this._getAdaptiveGeometry(t):this._getVerticalAppointmentGeometry(t),super.getAppointmentGeometry(e)}_getAdaptiveGeometry(t){var e=this._calculateGeometryConfig(t);return this._customizeCoordinates(t,e.height,e.appointmentCountPerCell,e.offset)}_getItemPosition(t){var e=this.isAllDay(t);if(e)return super._getItemPosition(t);for(var i=za(t,this.dataAccessors,this.timeZoneCalculator),r=!!i.recurrenceRule,v=i.calculateStartDate("toGrid"),D=i.calculateEndDate("toGrid"),A=D-v,z=this.options.startViewDate<v,Q=!Xo.isSameAppointmentDates(v,D),ue=this.generateAppointmentSettings(t),we=[],Le=0;Le<ue.length;Le++){var Ue=ue[Le],ut=this.calculateAppointmentHeight(t,Ue),It=this.calculateAppointmentWidth(t,Ue),Gt=ut,ln=null,En=[],on=Ue.vMax;if(this._isMultiViewAppointment(Ue,ut)||Q&&!r){(te.Z.trimTime(v)<=te.Z.trimTime(Ue.info.appointment.startDate)||r)&&(Gt=this._reduceMultiDayAppointment(ut,{top:Ue.top,bottom:on}),En=this._getAppointmentParts({sourceAppointmentHeight:ut,reducedHeight:Gt,width:It},Ue));var{startDate:Mn,normalizedEndDate:Kn}=Ue.info.appointment;ln=Kn-Mn<A?z?"head":"body":z?"head":"tail"}(0,y.l)(Ue,{height:Gt,width:It,allDay:e,appointmentReduced:ln}),we=this._getAppointmentPartsPosition(En,Ue,we)}return we}_isMultiViewAppointment(t,e){var{vMax:i,top:r}=t;return(0,ae.y6)(e,2)>(0,ae.y6)(i-r,2)}_reduceMultiDayAppointment(t,e){return Math.min(t,e.bottom-Math.floor(e.top))}_getGroupHeight(){return this.cellHeight*this.rowCount}_getGroupTopOffset(t){var{groupIndex:e}=t,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 t.top-i-r}_getTailHeight(t,e){if(!this.isVirtualScrolling)return t.sourceAppointmentHeight-t.reducedHeight;var i=this._getGroupTopOffset(e),{sourceAppointmentHeight:r}=t;return i+r-this._getGroupHeight()}_getAppointmentParts(t,e){var i=t.width,r=[],v=Math.max(0,this.positionHelper.getGroupTop({groupIndex:e.groupIndex,showAllDayPanel:this.showAllDayPanel,isGroupedAllDayPanel:this.isGroupedAllDayPanel})),D=this.isGroupedByDate?this.groupCount:1,A=this.cellWidth*D;v+=this.positionHelper.getOffsetByAllDayPanel({groupIndex:e.groupIndex,supportAllDayRow:this.allDaySupported(),showAllDayPanel:this.showAllDayPanel});for(var Q=this.getAppointmentMinSize(),{vMax:ue,hMax:we}=e,Le=this.options.endViewDate>e.info.appointment.endDate,Ue=Math.round(e.left+A),ut=this._getTailHeight(t,e);ut>0&&Ue<we;){ut=Math.max(Q,ut);var It=e.columnIndex+D,Gt=Math.min(ut,ue);r.push((0,ui.Z)({},e,{top:v,left:Ue,height:Gt,width:i,appointmentReduced:"body",rowIndex:0,columnIndex:It})),Ue+=A,ut-=ue}return Le&&r.length>0&&(r[r.length-1].appointmentReduced="tail"),r}_getMinuteHeight(){return this.cellHeight/this.cellDurationInMinutes}_getCompactLeftCoordinate(t,e){return t+(1+(this.cellWidth||this.getAppointmentMinSize()))*e}_getVerticalAppointmentGeometry(t){var e=this._calculateVerticalGeometryConfig(t);return this._customizeVerticalCoordinates(t,e.width,e.appointmentCountPerCell,e.offset)}_customizeVerticalCoordinates(t,e,i,r,v){var D=Math.max(e/i,e/t.count),A=t.height,z=t.left+t.index*D,Q=t.top;return t.isCompact&&this._markAppointmentAsVirtual(t,v),{height:A,width:D,top:Q,left:z,empty:this._isAppointmentEmpty(A,e)}}_calculateVerticalGeometryConfig(t){var e=this.maxAppointmentsPerCell,i=this._getOffsets(),r=this._getAppointmentDefaultOffset(),v=this._getAppointmentCount(e,t),D=this._getDefaultRatio(t,v),A=this._getMaxWidth();v||(v=t.count,D=(A-i.unlimited)/A);var z=(1-D)*A;return("auto"===e||(0,w.kE)(e))&&(D=1,A-=r,z=0),{width:D*A,appointmentCountPerCell:v,offset:z}}_getMaxWidth(){return this.cellWidth}isAllDay(t){return Ey(za(t,this.dataAccessors,this.timeZoneCalculator),this.startDayHour,this.endDayHour,this.allDayPanelMode)}_getAppointmentMaxWidth(){return this.cellWidth-this._getAppointmentDefaultOffset()}calculateAppointmentWidth(t,e){if(!this.isAllDay(t))return 0;var i=te.Z.trimTime(e.info.appointment.startDate),{normalizedEndDate:r}=e.info.appointment,v=this.cellWidth||this.getAppointmentMinSize(),D=(r.getTime()-i.getTime())/gT("hour"),A=X6(e.info.appointment.startDate,e.info.appointment.endDate,this.viewDataProvider),z=Math.ceil((D-A)/24)*v;return this.cropAppointmentWidth(z,v)}calculateAppointmentHeight(t,e){if(this.isAllDay(t))return 0;var i=e.info.appointment.startDate,{normalizedEndDate:r}=e.info.appointment,v=ka_getField(this.dataAccessors,"allDay",t),D=this.getAppointmentDurationInMs(i,r,v);return this._adjustDurationByDaylightDiff(D,i,r)/gT("minute")*this._getMinuteHeight()}getDirection(){return"vertical"}_sortCondition(t,e){var i=t.allDay-e.allDay,v="vertical"===this.groupOrientation&&t.allDay&&e.allDay?this._columnCondition(t,e):this._rowCondition(t,e);return i||v}allDaySupported(){return!0}_getAllDayAppointmentGeometry(t){var e=this._calculateGeometryConfig(t);return this._customizeCoordinates(t,e.height,e.appointmentCountPerCell,e.offset,!0)}_calculateGeometryConfig(t){(!this.allowResizing||!this.allowAllDayResizing)&&(t.skipResizing=!0);var e=super._calculateGeometryConfig(t),i=Math.min(e.appointmentCountPerCell,this._getDynamicAppointmentCountPerCell().allDay);return t.allDay&&t.count<=i&&(e.offset=0),e}_getAppointmentCount(t,e){return"auto"===t||1!==e.count||(0,w.kE)(t)?this._getMaxAppointmentCountPerCellByType(e.allDay):e.count}_getDefaultRatio(t,e){return t.count>this.appointmentCountPerCell?.65:1}_getOffsets(){return{unlimited:5,auto:20}}_getMaxHeight(){return this.allDayHeight||this.getAppointmentMinSize()}_needVerticalGroupBounds(t){return!t}_needHorizontalGroupBounds(){return!1}getPositionShift(t,e){return!e&&this.isAdaptive&&0===this._getMaxAppointmentCountPerCellByType(e)?{top:0,left:0,cellPosition:0}:super.getPositionShift(t,e)}};var Nk=te.Z.dateToMilliseconds;const J6=class jre extends Vk{_needVerifyItemSize(){return!0}calculateAppointmentWidth(t,e){var i=this.cellWidth||this.getAppointmentMinSize(),r=ka_getField(this.dataAccessors,"allDay",t),v=e.info.appointment.startDate,D=e.info.appointment.endDate,{normalizedEndDate:A}=e.info.appointment,z=this.getAppointmentDurationInMs(v,A,r);z=this._adjustDurationByDaylightDiff(z,v,A);var Q=this.cellDurationInMinutes*Nk("minute"),we=(z-X6(v,D,this.viewDataProvider)*Nk("hour"))/Q;return this.cropAppointmentWidth(we*i,i)}_needAdjustDuration(t){return t<0}getAppointmentGeometry(t){var e=this._customizeAppointmentGeometry(t);return super.getAppointmentGeometry(e)}_customizeAppointmentGeometry(t){var e=this._calculateGeometryConfig(t);return this._customizeCoordinates(t,e.height,e.appointmentCountPerCell,e.offset)}_getOffsets(){return{unlimited:0,auto:0}}_getCompactLeftCoordinate(t,e){return t+(this.cellWidth||this.getAppointmentMinSize())*e}_getMaxHeight(){return this.cellHeight||this.getAppointmentMinSize()}_getAppointmentCount(t,e){return this._getMaxAppointmentCountPerCellByType(!1)}_getAppointmentDefaultHeight(){return 60}_getAppointmentMinHeight(){return 35}_sortCondition(t,e){return this._columnCondition(t,e)}_getOrientation(){return["left","right","top"]}getDropDownAppointmentWidth(){return this.cellWidth-4}getDeltaTime(t,e){var r=t.width-e.width;return Nk("minute")*Math.round(r/this.cellWidth*this.cellDurationInMinutes)}isAllDay(t){return ka_getField(this.dataAccessors,"allDay",t)}_isItemsCross(t,e){var i=this._getOrientation();return this._checkItemsCrossing(t,e,i)}getPositionShift(t){var e=super.getPositionShift(t),i=this.cellWidth*t;return this.rtlEnabled&&(i*=-1),{top:0,left:i+=e.left,cellPosition:i}}supportCompactDropDownAppointments(){return!1}},Q6=class Jre extends J6{calculateAppointmentWidth(t,e){var i=te.Z.trimTime(e.info.appointment.startDate),{normalizedEndDate:r}=e.info.appointment,v=this.cellWidth||this.getAppointmentMinSize(),D=Math.ceil(this._getDurationInDays(i,r)),A=this.cropAppointmentWidth(D*v,v);return this.isVirtualScrolling&&(A-=this.viewDataProvider.getSkippedDaysCount(e.groupIndex,i,r,D)*v),A}_getDurationInDays(t,e){return this._adjustDurationByDaylightDiff(e.getTime()-t.getTime(),t,e)/te.Z.dateToMilliseconds("day")||1}getDeltaTime(t,e){return 864e5*this._getDeltaWidth(t,e)}isAllDay(){return!1}createTaskPositionMap(t,e){return e||w6(t,this.dataAccessors),super.createTaskPositionMap(t)}_getSortedPositions(t,e){var i=super._getSortedPositions(t);return e||(i=(0,If.Z)(i).sortBy("top").thenBy("left").thenBy("cellPosition").thenBy("i").toArray()),i}needCorrectAppointmentDates(){return!1}getPositionShift(){return{top:0,left:0,cellPosition:0}}};var e4=n=>{var{dateTableCellsMeta:t}=n,e=t?.length;if(!e)return{width:0,height:0};var r=t[e>1?1:0][0];return{width:r.width,height:r.height}},Hk=n=>e4(n).height,fT=n=>e4(n).width,uw=(n,t,e)=>{if(!n)return 0;if(t){var{dateTableCellsMeta:i}=e,r=i?.length;return r?i[0][0].height:0}var{allDayPanelCellsMeta:v}=e;return null!=v&&v.length?v[0].height:0},zk=(n,t,e,i)=>((n,t,e,i)=>{var{dateTableCellsMeta:r}=i,v=r[0];if(!v)return 0;var{columnIndex:D}=t.getLastGroupCellPosition(n),A=v[D];return A?e?A.left:A.left+A.width:0})(n||0,t,e,i);class toe{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(t){this.options=t,this.groupStrategy=this.options.isVerticalGrouping?new t4(this.options):new noe(this.options)}getHorizontalMax(t){var e=r=>zk(r,this.viewDataProvider,this.rtlEnabled,this.DOMMetaData);if(this.isGroupedByDate){var i=this.viewDataProvider.getViewPortGroupCount();return Math.max(e(t),e(i-1))}return e(t)}getResizableStep(){var t=fT(this.DOMMetaData);return this.isGroupedByDate?this.groupCount*t:t}getVerticalMax(t){return this.groupStrategy.getVerticalMax(t)}getOffsetByAllDayPanel(t){return this.groupStrategy.getOffsetByAllDayPanel(t)}getGroupTop(t){return this.groupStrategy.getGroupTop(t)}}class t4{constructor(t){this.options=t}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(t){var{groupIndex:e,supportAllDayRow:i,showAllDayPanel:r}=t,v=0;return i&&r&&(v=uw(r,!0,this.DOMMetaData)*(e+1)),v}getVerticalMax(t){return this._getMaxAllowedVerticalPosition((0,ui.Z)({},t,{viewDataProvider:this.viewDataProvider,rtlEnabled:this.rtlEnabled,DOMMetaData:this.DOMMetaData}))+this.getOffsetByAllDayPanel(t)}getGroupTop(t){var{groupIndex:e,showAllDayPanel:i,isGroupedAllDayPanel:r}=t,v=this.viewDataProvider.getRowCountInGroup(e);return this._getMaxAllowedVerticalPosition({groupIndex:e,viewDataProvider:this.viewDataProvider,showAllDayPanel:i,isGroupedAllDayPanel:r,isVerticalGrouping:!0,DOMMetaData:this.DOMMetaData})-Hk(this.DOMMetaData)*v}_getAllDayHeight(t){return uw(t,!0,this.DOMMetaData)}_getMaxAllowedVerticalPosition(t){var{groupIndex:e,showAllDayPanel:i,isGroupedAllDayPanel:r}=t,{rowIndex:v}=this.viewDataProvider.getLastGroupCellPosition(e),{dateTableCellsMeta:D}=this.DOMMetaData,A=D[v];if(!A)return 0;var z=A[0].top+A[0].height;return r&&(z-=(e+1)*this._getAllDayHeight(i)),z}}class noe extends t4{getOffsetByAllDayPanel(t){return 0}getVerticalMax(t){var{isVirtualScrolling:e,groupIndex:i}=t;return this._getMaxAllowedVerticalPosition((0,ui.Z)({},t,{groupIndex:e?i:0}))}getGroupTop(t){return 0}_getAllDayHeight(t){return uw(t,!1,this.DOMMetaData)}}var loe=te.Z.dateToMilliseconds;var foe=n=>{var{height:t,left:e,top:i,width:r}=n;return"".concat(e,"-").concat(i,"-").concat(r,"-").concat(t)},n4=(n,t)=>n?sw([{attr:"backgroundColor",value:n}],t):t,moe={horizontal:J6,horizontalMonth:class uoe extends Q6{get endViewDate(){return this.options.endViewDate}get adaptivityEnabled(){return this.options.adaptivityEnabled}get DOMMetaData(){return this.options.DOMMetaData}_getLeftPosition(t){var e=this.getGroupWidth(t.groupIndex);return this._calculateMultiWeekAppointmentLeftOffset(t.hMax,e)}_getChunkCount(t,e,i,r){var{groupIndex:v,info:{appointment:{startDate:D}}}=r,z=Math.ceil((t-e+i)/i),Q=this._tryGetRowIndexInView(D);if(void 0!==Q){var we=this.viewDataProvider.getRowCountInGroup(v)-Q;return z<=we?z:we}return z}_tryGetRowIndexInView(t){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,v=loe("day"),D=t.getTime()-r.getTime();return Math.floor(D/v/i)}}_getChunkWidths(t){var e=t.reducedWidth,i=Math.floor(t.sourceAppointmentWidth);return[e,i,i-e]}_getTailChunkSettings(t,e,i){var r=t%e||e;return[r,this.rtlEnabled?i+(e-r):i]}_getAppointmentParts(t,e){for(var i=[],r=Math.round(this.getGroupWidth(e.groupIndex)),[v,D,A]=this._getChunkWidths(t,e,r),z=this._getLeftPosition(e),Q=this.endViewDate>e.info.appointment.endDate,ue=this._getChunkCount(D,v,r,e),[we,Le]=this._getTailChunkSettings(A,r,z),Ue=1;Ue<ue;Ue++){var It=Q&&Ue===ue-1;i.push((0,ui.Z)({},e,{top:e.top+this.cellHeight*Ue,left:It?Le:z,height:t.height,width:It?we:r,appointmentReduced:It?"tail":"body",rowIndex:++e.rowIndex,columnIndex:0}))}return i}_calculateMultiWeekAppointmentLeftOffset(t,e){return this.rtlEnabled?t:t-e}getGroupWidth(t){return((n,t,e)=>{var{isVirtualScrolling:i,rtlEnabled:r,DOMMetaData:v}=e,D=fT(v),A=t.getCellCount(e)*D;i&&(A=t.groupedDataMap.dateTableGroupedMap[n][0].length*D);var ue=zk(n,t,r,v),we=ue[n];return we&&(A=r?we-ue[n+1]:0===n?we:we-ue[n-1]),A})(t,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(t,e){var i=this._getConditions(t,e);return i.rowCondition||i.columnCondition||i.cellPositionCondition}createTaskPositionMap(t){return super.createTaskPositionMap(t,!0)}_getSortedPositions(t){return super._getSortedPositions(t,!0)}_getDefaultRatio(){return.6}_getOffsets(){return{unlimited:26,auto:30}}getDropDownAppointmentWidth(t){return this.adaptivityEnabled?this.getDropDownButtonAdaptiveSize():this.cellWidth-(t>1?60:36)}needCorrectAppointmentDates(){return!1}_needVerticalGroupBounds(){return!1}_needHorizontalGroupBounds(){return!0}getPositionShift(t){return{cellPosition:t*this.cellWidth,top:0,left:0}}},horizontalMonthLine:Q6,vertical:q6,week:class Wre extends q6{isApplyCompactAppointmentOffset(){return(!this.isAdaptive||0!==this._getMaxAppointmentCountPerCellByType())&&this.supportCompactDropDownAppointments()}},agenda:class coe extends Vk{get instance(){return this.options.instance}get agendaDuration(){return this.options.agendaDuration}getAppointmentMinSize(){}getDeltaTime(){}keepAppointmentSettings(){return!0}getAppointmentGeometry(t){return t}groupAppointmentByResources(t){var e=this.instance._getCurrentViewOption("groups");return function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={0:t};e.length&&n.loadedResources.length&&(i=Sne(n,t,n.loadedResources));var r=0;n.loadedResources.forEach((A,z)=>{z?r*=A.items.length:r=A.items.length});for(var v=0;v<r;v++){var D=v.toString();i[D]||(i[D]=[])}return i}({loadedResources:this.options.loadedResources,resources:this.options.resources,dataAccessors:this.dataAccessors.resources},t,e)}createTaskPositionMap(t){var e,i;if(this.calculateRows(t,this.agendaDuration,this.currentDate),t.length){e=this.instance.fire("getAgendaVerticalStepHeight"),i=this.groupAppointmentByResources(t);var r=[];(0,O.S6)(i,function(A,z){var Q=[],ue=[];(0,O.S6)(z,function(we,Le){var Ue=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(Le,we),ut=null;Ue.indexes.length||(ut=this.instance.getAppointmentsInstance()._processLongAppointment(Le),Q=Q.concat(ut.parts)),Q=Q.concat(Ue.parts),ue=ue.concat(Ue.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(ue,z),this.instance.getAppointmentsInstance()._combineAppointments(z,Q),r=r.concat(z)}.bind(this)),Array.prototype.splice.apply(t,[0,t.length].concat(r))}var v=[],D=0;return t.forEach(function(A,z){v.push([{height:e,width:"100%",sortedIndex:D++,groupIndex:this._calculateGroupIndex(z,i),agendaSettings:A.settings}]),delete A.settings}.bind(this)),v}_calculateGroupIndex(t,e){var i,r=0;for(var v in e){var D=e[v].length;if(t>=r&&t<r+D){i=Number(v);break}r+=D}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(t,e,i){var r=za(t,this.dataAccessors,this.timeZoneCalculator);b6(r,e,i,this.cellDuration,this.dataAccessors)}calculateRows(t,e,i,r){this._rows=[],i=te.Z.trimTime(new Date(i));var v=this.groupAppointmentByResources(t);return(0,O.S6)(v,function(D,A){var z=[],Q={indexes:[],parts:[]};if(!A.length)return this._rows.push([]),!0;(0,O.S6)(A,function(En,on){var Nt=ka_getField(this.dataAccessors,"startDate",on),Jt=ka_getField(this.dataAccessors,"endDate",on);this.replaceWrongAppointmentEndDate(on,Nt,Jt),r&&delete on.settings;var un=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(on,En,!1);Q.parts=Q.parts.concat(un.parts),Q.indexes=Q.indexes.concat(un.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(Q.indexes,A),A.push(...Q.parts);for(var ue=A.length,we=0;we<e;we++){var Le=new Date(i);Le.setMilliseconds(Le.getMilliseconds()+864e5*we),void 0===z[we]&&(z[we]=0);for(var Ue=0;Ue<ue;Ue++){var ut=A[Ue].settings||A[Ue],It=za(A[Ue],this.dataAccessors,this.timeZoneCalculator),Gt=Mk(It),ln=ka_getField(this.dataAccessors,"recurrenceRule",A[Ue]);(this.instance.fire("dayHasAppointment",Le,ut,!0)||!ln&&Gt&&this.instance.fire("dayHasAppointment",Le,A[Ue],!0))&&(z[we]+=1)}}this._rows.push(z)}.bind(this)),this._rows}_iterateRow(t,e,i){for(var r=0;r<t.length;r++)if(e.counter=e.counter+t[r],e.counter>=i){e.indexInRow=r;break}}getDateByIndex(t,e,i){var r={counter:0,indexInRow:0};t++;for(var v=0;v<e.length&&(this._iterateRow(e[v],r,t),!r.indexInRow);v++);return new Date(new Date(i).setDate(i.getDate()+r.indexInRow))}getAppointmentDataCalculator(){return function(t,e){var i=t.index(),r=this.instance.getStartViewDate(),v=this.getDateByIndex(i,this._rows,r),D=new Date(e);return{startDate:new Date(v.setHours(D.getHours(),D.getMinutes(),D.getSeconds(),D.getMilliseconds()))}}.bind(this)}}};class _oe{initRenderingStrategy(t){this.renderingStrategy=new(0,moe[t.appointmentRenderingStrategyName])(t)}generate(t,e){var{isRenovatedAppointments:i}=e,r=t?t.slice():[];this.initRenderingStrategy(e);var D=this.getRenderingStrategy().createTaskPositionMap(r),A=this.postProcess(r,D,i);return i?this.makeRenovatedViewModels(A,e.supportAllDayRow,e.isVerticalGroupOrientation):{positionMap:D,viewModel:A}}postProcess(t,e,i){var r=this.getRenderingStrategy();return t.map((v,D)=>{r.keepAppointmentSettings()||delete v.settings;var A=e[D];A.forEach(Q=>{Q.direction="vertical"!==r.getDirection()||Q.allDay?"horizontal":"vertical"});var z={itemData:v,settings:A};return i||(z.needRepaint=!0,z.needRemove=!1),z})}makeRenovatedViewModels(t,e,i){var r=this.getRenderingStrategy(),v=[],D=[],A=[],z=e&&!i;t.forEach(we=>{var{itemData:Le,settings:Ue}=we;Ue.forEach(ut=>{var It=this.prepareViewModel(ut,r,Le);ut.isCompact?A.push({compactViewModel:ut.virtual,appointmentViewModel:It}):ut.allDay&&z?D.push(It):v.push(It)})});var Q=this.prepareCompactViewModels(A,e);return(0,ui.Z)({allDay:D,regular:v},Q)}prepareViewModel(t,e,i){var r=e.getAppointmentGeometry(t);return{key:foe(r),appointment:i,geometry:(0,ui.Z)({},r,{leftVirtualWidth:t.leftVirtualWidth,topVirtualHeight:t.topVirtualHeight}),info:(0,ui.Z)({},t.info,{allDay:t.allDay,direction:t.direction,appointmentReduced:t.appointmentReduced,groupIndex:t.groupIndex})}}getCompactViewModelFrame(t){return{isAllDay:!!t.isAllDay,isCompact:t.isCompact,groupIndex:t.groupIndex,geometry:{left:t.left,top:t.top,width:t.width,height:t.height},items:{colors:[],data:[],settings:[]}}}prepareCompactViewModels(t,e){var i={},r={};t.forEach(z=>{var{compactViewModel:Q,appointmentViewModel:ue}=z,{index:we,isAllDay:Le}=Q,Ue=Le&&e?r:i;Ue[we]||(Ue[we]=this.getCompactViewModelFrame(Q));var{settings:ut,data:It,colors:Gt}=Ue[we].items;ut.push(ue),It.push(ue.appointment),Gt.push(ue.info.resourceColor)});var v=z=>Object.keys(z).map(Q=>(0,ui.Z)({key:Q},z[Q]));return{allDayCompact:v(r),regularCompact:v(i)}}getRenderingStrategy(){return this.renderingStrategy}}class r4 extends sa.Z{show(t){this._isMobileLayout()||this._overlay.option("target",t),this._overlay.show()}hide(){this._overlay.hide()}_keyboardHandler(t){var e;null===(e=this._calendar)||void 0===e||e._keyboardHandler(t)}_init(){super._init(),this.$element()}_render(){super._render(),this._renderOverlay()}_renderOverlay(){this.$element().addClass("dx-scheduler-navigator-calendar-popover");var t=this._isMobileLayout(),e=t?Tp.Z:Db.Z;this._overlay=this._createComponent(this.$element(),e,{contentTemplate:()=>this._createOverlayContent(),onShown:()=>this._calendar.focus(),defaultOptionsRules:[{device:()=>t,options:{fullScreen:!0,showCloseButton:!1,toolbarItems:[{shortcut:"cancel"}]}}]})}_createOverlayContent(){var t=(0,u.Z)("<div>").addClass("dx-scheduler-navigator-calendar");return this._calendar=this._createComponent(t,sS.Z,this._getCalendarOptions()),this._isMobileLayout()?this._createScrollable(t).$element():t}_createScrollable(t){var e=this._createComponent("<div>",qb.Z,{direction:"vertical"});return e.$content().append(t),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!x.Z.current().generic}}(0,T.Z)("dxSchedulerCalendarPopup",r4);var{correctDateWithUnitBeginning:Soe,getFirstWeekDate:Ooe,getLastMonthDay:o4,addDateInterval:e_}=te.Z,{format:Fp}=Bo.Z,a4={milliseconds:1},Doe={days:1},Toe={days:7},mT=n=>e_(n,Doe,1),s4=n=>e_(n,Toe,1),Wk=n=>6===n.getDay()||0===n.getDay(),Noe=(n,t)=>{for(var D,{intervalCount:e,step:i,agendaDuration:r}=t,A=new Date(n),z=0;z<e;z++)D=Hoe(A,i,r),A=zoe(D,i);return D},Hoe=(n,t,e)=>{var i;switch(t){case"day":i=mT(n);break;case"week":i=s4(n);break;case"month":i=(n=>{var t=o4(n);return e_(n,{days:t},1)})(n);break;case"workWeek":i=(n=>{for(var t=new Date(n),e=0;e<5;)Wk(t)||e++,t=mT(t);return t})(n);break;case"agenda":i=((n,t)=>e_(n,{days:t},1))(n,e)}return(n=>e_(n,a4,-1))(i)},zoe=(n,t)=>{var e=(n=>e_(n,a4,1))(n);if("workWeek"===t)for(;Wk(e);)e=mT(e);return e},Uk=n=>{var e=Bo.Z.getMonthNames(n?"abbreviated":"wide");return i=>{var r=Fp(i,"day"),v=e[i.getMonth()];return"".concat(r," ").concat(v)}},l4=n=>{var e=Bo.Z.getMonthNames("abbreviated")[n.getMonth()],i=Fp(n,"year");return"".concat(e," ").concat(i)},Zk=n=>t=>{var i=Uk(n)(t),r=Fp(t,"year");return"".concat(i," ").concat(r)},Yoe=(n,t,e,i)=>te.Z.sameDate(n,t)?((n,t,e)=>{var v=Uk("agenda"===t&&e)(n),D=Fp(n,"year");return"".concat(v," ").concat(D)})(n,i,e):"month"===i?((n,t)=>{if(te.Z.sameMonth(n,t))return Fp(n,"monthandyear");var i=te.Z.sameYear(n,t)?Bo.Z.getMonthNames("abbreviated")[n.getMonth()]:l4(n),r=l4(t);return"".concat(i,"-").concat(r)})(n,t):((n,t,e)=>n.getFullYear()!==t.getFullYear()?((n,t)=>{var e=Fp(n,Zk(!0)),i=Fp(t,Zk(!0));return"".concat(e,"-").concat(i)})(n,t):((n,t,e)=>{var i=n.getMonth()!==t.getMonth(),r=i||e,v=i?Uk(r):"d",D=Fp(n,v),A=Fp(t,Zk(r));return"".concat(D,"-").concat(A)})(n,t,e))(n,t,e),Xoe=(n,t,e)=>{var{startDate:i,endDate:r}=(n=>{var t=(n=>{var{date:t,step:e,firstDayOfWeek:i}=n;switch(e){case"day":case"week":case"month":return Soe(t,e,!1,i);case"workWeek":return(n=>{for(var t=new Date(n);Wk(t);)t=mT(t);return t})(Ooe(t,i));case"agenda":return new Date(t)}})(n);return{startDate:t,endDate:Noe(t,n)}})(n),v=Yoe(i,r,t,n.step);return(0,w.mf)(e)&&(v=e({startDate:i,endDate:r,text:v})),{startDate:i,endDate:r,text:v}},qoe={day:"day",week:"week",workWeek:"workWeek",month:"month",timelineDay:"day",timelineWeek:"week",timelineWorkWeek:"workWeek",timelineMonth:"month",agenda:"agenda"},_T=n=>(0,w.Kn)(n)&&n.type?n.type:n,Sy=n=>(0,w.Kn)(n)?n.name?n.name:n.type:n,u4=n=>{n.forEach(t=>{var e=_T(t);(n=>Object.values(is).includes(n))(e)||bu.Z.log("W0008",e)})},d4=n=>(u4(n),n.map(t=>{var e=(n=>{if(n.name)return n.name;var t=(0,je._A)(n.type||n,!0);return wn.Z.format("dxScheduler-switcher"+t)})(t),i=_T(t),r=Sy(t);return{text:e,name:r,view:{text:e,type:i,name:r}}})),c4=(n,t)=>1===n.length&&n[0].name===t,h4="dx-scheduler-view-switcher",p4=n=>{var t=d4(n.views),e=Sy(n.currentView),i=t.some(r=>r.name===e);return{selectedView:e=i?e:void 0,views:t}},{trimTime:oae}=te.Z,pae=n=>({key:"previous",icon:"chevronprev",elementAttr:{class:"dx-scheduler-navigator-previous"},clickHandler:()=>n._updateDateByDirection(-1),onContentReady:t=>{var e=t.component;e.option("disabled",vT(n)),n._addEvent("min",()=>{e.option("disabled",vT(n))}),n._addEvent("currentDate",()=>{e.option("disabled",vT(n))}),n._addEvent("startViewDate",()=>{e.option("disabled",vT(n))})}}),gae=n=>({key:"calendar",text:n.captionText,elementAttr:{class:"dx-scheduler-navigator-caption"},clickHandler:t=>n._showCalendar(t),onContentReady:t=>{var e=t.component;n._addEvent("currentView",()=>{e.option("text",n.captionText)}),n._addEvent("currentDate",()=>{e.option("text",n.captionText)}),n._addEvent("startViewDate",()=>{e.option("text",n.captionText)}),n._addEvent("views",()=>{e.option("text",n.captionText)}),n._addEvent("firstDayOfWeek",()=>{e.option("text",n.captionText)})}}),fae=n=>({key:"next",icon:"chevronnext",elementAttr:{class:"dx-scheduler-navigator-next"},clickHandler:()=>n._updateDateByDirection(1),onContentReady:t=>{var e=t.component;e.option("disabled",yT(n)),n._addEvent("min",()=>{e.option("disabled",yT(n))}),n._addEvent("currentDate",()=>{e.option("disabled",yT(n))}),n._addEvent("startViewDate",()=>{e.option("disabled",yT(n))})}}),vT=n=>{var t=n.option("min");if(!t)return!1;t=new Date(t);var e=n._getCaption();return t=oae(t),n._getNextDate(-1,e.endDate)<t},yT=n=>{var t=n.option("max");if(!t)return!1;t=new Date(t);var e=n._getCaption();return t=t.setHours(23,59,59),n._getNextDate(1,e.startDate)>t},_ae=["day","week","workWeek","month","timelineDay","timelineWeek","timelineWorkWeek","timelineMonth","agenda"],CT=(n,t)=>{var e=t.find(i=>!!((0,w.Kn)(i)?[i.name,i.type]:[i]).includes(n));return void 0===e&&(_ae.includes(n)?e=n:[e]=t),e},g4="defaultElement";class f4 extends sa.Z{get views(){return this.option("views")}get captionText(){return this._getCaption().text}get intervalOptions(){return{step:(n=>qoe[_T(this.currentView)])(),intervalCount:this.option("intervalCount"),firstDayOfWeek:this.option("firstDayOfWeek"),agendaDuration:this.option("agendaDuration")}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{_useShortDateFormat:!x.Z.real().generic||x.Z.isSimulator()})}_createEventMap(){this.eventMap=new Map([["currentView",[t=>{this.currentView=CT(Sy(t),this.option("views"))}]],["items",[this.repaint.bind(this)]],["views",[u4]],["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(t,e){this.eventMap.has(t)||this.eventMap.set(t,[]);var i=this.eventMap.get(t);this.eventMap.set(t,[...i,e])}_optionChanged(t){var{name:e,value:i}=t;this.eventMap.has(e)&&this.eventMap.get(e).forEach(v=>{v(i)})}_init(){super._init(),this._createEventMap(),this.$element().addClass("dx-scheduler-header"),this.currentView=CT(Sy(this.option("currentView")),this.option("views"))}_render(){super._render(),this._createEventMap(),this._renderToolbar()}_renderToolbar(){var t=this._createToolbarConfig(),e=(0,u.Z)("<div>");e.appendTo(this.$element()),this._toolbar=this._createComponent(e,Sb.Z,t)}_createToolbarConfig(){return{items:this.option("items").map(i=>this._parseItem(i))}}_parseItem(t){if(this._isDefaultItem(t)){var i=t[g4];switch(i){case"viewSwitcher":return this.option("useDropDownViewSwitcher")?((n,t)=>{var{selectedView:e,views:i}=p4(n),r=c4(i,e);return(0,ui.Z)({widget:"dxDropDownButton",locateInMenu:"never",cssClass:h4,options:{items:i,useSelectMode:!0,keyExpr:"name",selectedItemKey:e,displayExpr:"text",showArrowIcon:!r,elementAttr:{class:"dx-scheduler-view-switcher-dropdown-button"},onItemClick:v=>{n._updateCurrentView(v.itemData.view)},onContentReady:v=>{var D=v.component;n._addEvent("currentView",A=>{var z=d4(n.views);c4(z,A)&&n.repaint(),D.option("selectedItemKey",Sy(A))})},dropDownOptions:{onShowing:v=>{r&&(v.cancel=!0)},width:"max-content",_wrapperClassExternal:"dx-scheduler-view-switcher-dropdown-button-content"}}},t)})(this,t):((n,t)=>{var{selectedView:e,views:i}=p4(n);return(0,ui.Z)({widget:"dxButtonGroup",locateInMenu:"auto",cssClass:h4,options:{items:i,keyExpr:"name",selectedItemKeys:[e],stylingMode:"contained",onItemClick:r=>{n._updateCurrentView(r.itemData.view)},onContentReady:r=>{var v=r.component;n._addEvent("currentView",D=>{v.option("selectedItemKeys",[Sy(D)])})}}},t)})(this,t);case"dateNavigator":return this._renderCalendar(),((n,t)=>{var e=[pae(n),gae(n),fae(n)],i=(0,N.x2)()?"text":"contained";return(0,ui.Z)({widget:"dxButtonGroup",cssClass:"dx-scheduler-navigator",options:{items:e,stylingMode:i,selectionMode:"none",onItemClick:r=>{r.itemData.clickHandler(r)}}},t)})(this,t);default:bu.Z.log("Unknown default element type: ".concat(i))}}return t}_callEvent(t,e){this.eventMap.has(t)&&this.eventMap.get(t).forEach(r=>r(e))}_updateCurrentView(t){this.option("onCurrentViewChange")(t.name),this._callEvent("currentView",t)}_updateCurrentDate(t){this.option("onCurrentDateChange")(t),this._callEvent("currentDate",t)}_renderCalendar(){this._calendar=this._createComponent("<div>",r4,{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:t=>{this._updateCurrentDate(t.value),this._calendar.hide()}}),this._calendar.$element().appendTo(this.$element())}_getCalendarOptionUpdater(t){return e=>{this._calendar&&this._calendar.option(t,e)}}_getNextDate(t){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||this.option("currentDate");return((n,t)=>{var D,{date:e,step:i,intervalCount:r,agendaDuration:v}=n;switch(i){case"day":D=1*r;break;case"week":case"workWeek":D=7*r;break;case"agenda":D=v;break;case"month":return((n,t,e)=>{var i=n.getDate(),r=new Date(new Date(n.getTime()).setDate(1)),v=new Date(r.setMonth(r.getMonth()+t*e)),D=o4(v),A=i<D?i:D,z=new Date(new Date(n.getTime()).setDate(A));return new Date(z.setMonth(z.getMonth()+t*e))})(e,r,t)}return e_(e,{days:D},t)})((0,ui.Z)({},this.intervalOptions,{date:i}),t)}_isMonth(){return"month"===_T(this.currentView)}_getDisplayedDate(){var t=this.option("startViewDate");return this._isMonth()?s4(t):new Date(t)}_getCaption(){var t=this.option("currentDate");this.option("startViewDate")&&(t=this._getDisplayedDate()),t=te.Z.trimTime(t);var e=(0,ui.Z)({},this.intervalOptions,{date:t}),i=this.option("customizeDateNavigatorText"),r=this.option("_useShortDateFormat");return Xoe(e,r,i)}_updateDateByDirection(t){var e=this._getNextDate(t);this._updateCurrentDate(e)}_showCalendar(t){this._calendar.show(t.element)}_hideCalendar(){this._calendar.hide()}_isDefaultItem(t){return Object.prototype.hasOwnProperty.call(t,g4)}}(0,T.Z)("dxSchedulerHeader",f4);var ml={dataAccessors:{getAppointmentSettings:n=>(0,u.Z)(n).data(Bp),getAppointmentInfo:n=>ml.dataAccessors.getAppointmentSettings(n)?.info,create:(n,t,e,i)=>{var r=t?(0,ui.Z)({},t):{getter:{},setter:{},expr:{}};return(0,O.S6)(n,(v,D)=>{if(D){var Q,ue,we,A=(0,No.vb)(D),z=(0,No.OM)(D);("startDate"===(Le=v)||"endDate"===Le)&&(Q=Ue=>{var ut=A(Ue);return e&&(ut=Cs.Z.deserializeDate(ut)),ut},ue=(Ue,ut)=>{if(i)we=i;else if(e&&!we){var It=A(Ue);we=Cs.Z.getDateSerializationFormat(It)}var Gt=Cs.Z.serializeDate(ut,we);z(Ue,Gt)}),r.getter[v]=Q||A,r.setter[v]=ue||z,r.expr["".concat(v,"Expr")]=D}else delete r.getter[v],delete r.setter[v],delete r.expr["".concat(v,"Expr")];var Le}),r}},DOM:{getHeaderHeight:n=>n?n._$element&&parseInt((0,s.zp)(n._$element),10):0},renovation:{renderComponent:(n,t,e,i,r)=>{var v=n[i];if(v){var A=v.$element(),z=A.get(0).style,Q=z.height,ue=z.width;v.option(r),Q&&(0,s.QQ)(A,Q),ue&&(0,s.cl)(A,ue)}else{var D=(0,S.u)(t);v=n._createComponent(D,e,r),n[i]=v}}}},bae=te.Z.dateToMilliseconds,wae={isCurrentViewAgenda:function(){return"agenda"===this.currentViewType},currentViewUpdated:function(n){this.option("currentView",n)},currentDateUpdated:function(n){this.option("currentDate",n)},getOption:function(n){return this.option(n)},getWorkspaceOption:function(n){return this.getWorkSpace().option(n)},isVirtualScrolling:function(){return this.isVirtualScrolling()},setCellDataCacheAlias:function(n,t){this._workSpace.setCellDataCacheAlias(n,t)},isGroupedByDate:function(){return this.getWorkSpace().isGroupedByDate()},showAppointmentTooltip:function(n){var t=this.getTargetedAppointment(n.data,n.target);this.showAppointmentTooltip(n.data,n.target,t)},hideAppointmentTooltip:function(){this.hideAppointmentTooltip()},showEditAppointmentPopup:function(n){var t=this.getTargetedAppointment(n.data,n.target);this.showAppointmentPopup(n.data,!1,t)},updateAppointmentAfterResize:function(n){var t=ml.dataAccessors.getAppointmentInfo(n.$appointment);this._checkRecurringAppointment(n.target,n.data,t.sourceAppointment.exceptionDate,function(){this._updateAppointment(n.target,n.data,function(){this._appointments.moveAppointmentBack()})}.bind(this))},getUpdatedData:function(n){return this._getUpdatedData(n)},updateAppointmentAfterDrag:function(n){var{event:t,element:e,rawAppointment:i,newCellIndex:r,oldCellIndex:v}=n,D=ml.dataAccessors.getAppointmentInfo(e),A=za(i,this._dataAccessors,this.timeZoneCalculator),z=za((0,y.l)({},i,this._getUpdatedData(i)),this._dataAccessors,this.timeZoneCalculator),Q=z.source(),ue=z.allDay,we=A.allDay,Le=this._workSpace.supportAllDayRow()&&(we&&!ue||!we&&ue),Ue=t.fromComponent!==t.toComponent;-1!==r?r!==v||Ue||Le?this._checkRecurringAppointment(i,Q,D.sourceAppointment.exceptionDate,()=>{this._updateAppointment(i,Q,function(){this._appointments.moveAppointmentBack(t)},t)},void 0,void 0,t):this._appointments.moveAppointmentBack(t):Ue||this._appointments.moveAppointmentBack(t)},onDeleteButtonPress:function(n){var t=this.getTargetedAppointment(n.data,(0,u.Z)(n.target));this.checkAndDeleteAppointment(n.data,t),this.hideAppointmentTooltip()},getTextAndFormatDate(n,t,e){var i=za(n,this._dataAccessors,this.timeZoneCalculator),r=za(t||n,this._dataAccessors,this.timeZoneCalculator),v=this.timeZoneCalculator.createDate(r.startDate,{path:"toGrid"}),D=this.timeZoneCalculator.createDate(r.endDate,{path:"toGrid"}),A=e||G6(v,D,r.allDay,"month"!==this.currentViewType);return{text:r.text||i.text,formatDate:j6(v,D,A)}},_createAppointmentTitle:n=>(0,w.PO)(n)?n.text:String(n),getResizableAppointmentArea:function(n){var t=n.allDay,e=this._getCurrentViewOption("groups");if(e&&e.length){if(t||this.getLayoutManager().getRenderingStrategyInstance()._needHorizontalGroupBounds()){var i=this._workSpace.getGroupBounds(n.coordinates);return{left:i.left,right:i.right,top:0,bottom:0}}if(this.getLayoutManager().getRenderingStrategyInstance()._needVerticalGroupBounds(t)&&this._workSpace._isVerticalGroupedWorkSpace()){var r=this._workSpace.getGroupBounds(n.coordinates);return{left:0,right:0,top:r.top,bottom:r.bottom}}}},needRecalculateResizableArea:function(){return this.getWorkSpace().needRecalculateResizableArea()},getAppointmentGeometry:function(n){return this.getLayoutManager().getRenderingStrategyInstance().getAppointmentGeometry(n)},isAllDay:function(n){return this.getLayoutManager().getRenderingStrategyInstance().isAllDay(n)},getDeltaTime:function(n,t,e){return this.getLayoutManager().getRenderingStrategyInstance().getDeltaTime(n,t,e)},getDropDownAppointmentWidth:function(n){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentWidth(this._getViewCountConfig().intervalCount,n)},getDropDownAppointmentHeight:function(){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentHeight()},getCellWidth:function(){return this.getWorkSpace().getCellWidth()},getCellHeight:function(){return this.getWorkSpace().getCellHeight()},getMaxAppointmentCountPerCellByType:function(n){return this.getRenderingStrategyInstance()._getMaxAppointmentCountPerCellByType(n)},needCorrectAppointmentDates:function(){return this.getRenderingStrategyInstance().needCorrectAppointmentDates()},getRenderingStrategyDirection:function(){return this.getRenderingStrategyInstance().getDirection()},updateAppointmentEndDate:function(n){var t=n.endDate,e=this._getCurrentViewOption("endDayHour"),i=this._getCurrentViewOption("startDayHour"),r=t;return t.getHours()>=e?r.setHours(e,0,0,0):!n.isSameDate&&i>0&&60*t.getHours()+t.getMinutes()<60*i&&(r=new Date(r.getTime()-bae("day"))).setHours(e,0,0,0),r},renderCompactAppointments:function(n){this._compactAppointmentsHelper.render(n)},clearCompactAppointments:function(){this._compactAppointmentsHelper.clear()},supportCompactDropDownAppointments:function(){return this.getLayoutManager().getRenderingStrategyInstance().supportCompactDropDownAppointments()},getGroupCount:function(){return this._workSpace._getGroupCount()},mapAppointmentFields:function(n){var{itemData:t,itemElement:e,targetedAppointment:i}=n,r=i||this.getTargetedAppointment(t,e);return{appointmentData:n.itemData,appointmentElement:n.itemElement,targetedAppointmentData:r}},dayHasAppointment:function(n,t,e){return this.dayHasAppointment(n,t,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(n){for(var t=this.getAppointmentsInstance()._itemElements(),e=0,i=function(v,D){t.eq(D+e-1).addClass("dx-scheduler-last-in-date-agenda-appointment"),e+=D},r=0;r<n.length;r++)(0,O.S6)(n[r],i)},getTimezone:function(){return this._getTimezoneOffsetByOption()},getTargetedAppointmentData:function(n,t){return this.getTargetedAppointment(n,t)},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 m4=wae,Sae=class Eae{constructor(t){this._workSpace=t}prepareCellIndexes(t,e,i){return this._workSpace.isGroupedByDate()?{rowIndex:t.rowIndex,columnIndex:t.columnIndex*this._workSpace._getGroupCount()+e}:{rowIndex:t.rowIndex,columnIndex:t.columnIndex+e*this._workSpace._getCellCount()}}getGroupIndex(t,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(t){return t=t||1,this._workSpace._getCellCount()*t}getTotalRowCount(){return this._workSpace._getRowCount()}calculateTimeCellRepeatCount(){return 1}getWorkSpaceMinWidth(){return(0,Zo.l)(this._workSpace.$element().get(0)).width-this._workSpace.getTimePanelWidth()}getAllDayOffset(){return this._workSpace.getAllDayHeight()}getGroupCountClass(t){}getLeftOffset(){return this._workSpace.getTimePanelWidth()}_createGroupBoundOffset(t,e,i){var r=i/2;return{left:t?t.offset().left-r:0,right:e?e.offset().left+i+r:0,top:0,bottom:0}}_getGroupedByDateBoundOffset(t,e){var i=t.length-1,r=t.eq(0),v=t.eq(i);return this._createGroupBoundOffset(r,v,e)}getGroupBoundsOffset(t,e,i,r,v){if(this._workSpace.isGroupedByDate())return this._getGroupedByDateBoundOffset(e,i);var D,A,z=this._workSpace.getCellIndexByCoordinates(r),Q=r.groupIndex||Math.floor(z/t),ue=v.dateTableGroupedMap[Q];if(ue){var Ue=ue[0][ue[0].length-1].position;D=e.eq(ue[0][0].position.columnIndex),A=e.eq(Ue.columnIndex)}return this._createGroupBoundOffset(D,A,i)}shiftIndicator(t,e,i,r){var v=this._getIndicatorOffset(r);t.css("left",i?i-v:v),t.css("top",e)}_getIndicatorOffset(t){return this._workSpace.isGroupedByDate()?this._calculateGroupByDateOffset(t):this._calculateOffset(t)}_calculateOffset(t){return this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(t-1,0)*t+this._workSpace.getIndicatorOffset(t)+t}_calculateGroupByDateOffset(t){return this._workSpace.getIndicatorOffset(0)*this._workSpace._getGroupCount()+this._workSpace.getRoundedCellWidth(t-1,0)*t}getShaderOffset(t,e){var i=this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(t-1)*t;return this._workSpace.option("rtlEnabled")?(0,Zo.l)(this._workSpace._dateTableScrollable.$content().get(0)).width-i-this._workSpace.getTimePanelWidth()-e:i}getShaderTopOffset(t){return-this.getShaderMaxHeight()*(t>0?1:0)}getShaderHeight(){return this._workSpace.getIndicationHeight()}getShaderMaxHeight(){return(0,Zo.l)(this._workSpace._dateTableScrollable.$content().get(0)).height}getShaderWidth(t){return this._workSpace.getIndicationWidth(t)}getScrollableScrollTop(t){return t?0:this._workSpace.getScrollable().scrollTop()}addAdditionalGroupCellClasses(t,e,i,r){var v=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return t=this._addLastGroupCellClass(t,e,v),this._addFirstGroupCellClass(t,e,v)}_addLastGroupCellClass(t,e,i){if(i)return"".concat(t," ").concat(lT);if(this._workSpace.isGroupedByDate()){if(e%this._workSpace._getGroupCount()==0)return"".concat(t," ").concat(lT)}else if(e%this._workSpace._getCellCount()==0)return"".concat(t," ").concat(lT);return t}_addFirstGroupCellClass(t,e,i){if(i)return"".concat(t," ").concat(uT);if(this._workSpace.isGroupedByDate()){if((e-1)%this._workSpace._getGroupCount()==0)return"".concat(t," ").concat(uT)}else if((e-1)%this._workSpace._getCellCount()==0)return"".concat(t," ").concat(uT);return t}};class _4{constructor(){this._cache=new Map}get size(){return this._cache.size}clear(){this._cache.clear()}get(t,e){return!this._cache.has(t)&&e&&this.set(t,e()),this._cache.get(t)}set(t,e){(0,w.$K)(e)&&this._cache.set(t,e)}}const v4=class Tae{constructor(t){this._workSpace=t,this.cache=new _4}prepareCellIndexes(t,e,i){var r=t.rowIndex+e*this._workSpace._getRowCount();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(r+=e,i||(r+=1)),{rowIndex:r,columnIndex:t.columnIndex}}getGroupIndex(t){return Math.floor(t/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 t=this._workSpace._getWorkSpaceWidth(),e=(0,Zo.l)(this._workSpace.$element().get(0)).width-this._workSpace.getTimePanelWidth()-this._workSpace.getGroupTableWidth()-2;return t<e&&(t=e),t}getAllDayOffset(){return 0}getGroupCountClass(t){return H6(t)}getLeftOffset(){return this._workSpace.getTimePanelWidth()+this._workSpace.getGroupTableWidth()}getGroupBoundsOffset(t,e){var[i,r]=e;return this.cache.get("groupBoundsOffset".concat(t),()=>{var v=this._workSpace.option("startDayHour"),D=this._workSpace.option("endDayHour"),A=this._workSpace.option("hoursInterval"),z=Lk(v,D)/A*this._workSpace.getCellHeight(),Q=this.getScrollableScrollTop(),ue=t*z+(0,Zo.l)(this._workSpace._$thead.get(0)).height+this._workSpace.option("getHeaderHeight")()+10-Q;this._workSpace.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(ue+=this._workSpace.getCellHeight()*(t+1));var we=ue+z,{left:Le}=i.getBoundingClientRect(),{right:Ue}=r.getBoundingClientRect();return this._groupBoundsOffset={left:Le,right:Ue,top:ue,bottom:we}})}shiftIndicator(t,e,i,r){var v=this._workSpace.getIndicatorOffset(0),D=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth(),A=i?i-v:v,z=this._workSpace._getRowCount()*this._workSpace.getCellHeight()*r;this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(z+=this._workSpace.getAllDayHeight()*(r+1)),t.css("left",A+D),t.css("top",e+z)}getShaderOffset(t,e){var i=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth();return this._workSpace.option("rtlEnabled")?(0,Zo.l)(this._$container.get(0)).width-i-this._workSpace.getWorkSpaceLeftOffset()-e:i}getShaderTopOffset(t){return 0}getShaderHeight(){var t=this._workSpace.getIndicationHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(t+=this._workSpace.getCellHeight()),t}getShaderMaxHeight(){var t=this._workSpace._getRowCount()*this._workSpace.getCellHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(t+=this._workSpace.getCellHeight()),t}getShaderWidth(){return this._workSpace.getIndicationWidth(0)}getScrollableScrollTop(){return this._workSpace.getScrollable().scrollTop()}addAdditionalGroupCellClasses(t,e,i,r){return t=this._addLastGroupCellClass(t,i+1),this._addFirstGroupCellClass(t,i+1)}_addLastGroupCellClass(t,e){return e%this._workSpace._getRowCount()==0?"".concat(t," ").concat(lT):t}_addFirstGroupCellClass(t,e){return(e-1)%this._workSpace._getRowCount()==0?"".concat(t," ").concat(uT):t}},Kk={tableCreator:new class Iae{constructor(){this.VERTICAL="vertical",this.HORIZONTAL="horizontal"}insertAllDayRow(t,e,i){if(t[i]){var r=t[i].find("tr");r.length||(r=(0,u.Z)(b.Z.createElement("tr"))).append(t[i].get(0)),e.appendChild(r.get?r.get(0):r)}}makeTable(t){var r,e=b.Z.createElement("tbody"),i=[],v=t.groupCount?t.rowCount/t.groupCount:t.rowCount,D=0,A=t.allDayElements,z=t.groupIndex,Q=t.rowCount;(0,u.Z)(t.container).append(e),A&&(this.insertAllDayRow(A,e,0),D++);for(var ue=0;ue<Q;ue++){r=b.Z.createElement("tr"),e.appendChild(r);var we=(ue+1)%v==0;t.rowClass&&(r.className=t.rowClass);for(var Le=0;Le<t.cellCount;Le++){var Ue,ut=b.Z.createElement("td");r.appendChild(ut),t.cellClass&&(ut.className=(0,w.mf)(t.cellClass)?t.cellClass(ue,Le):t.cellClass);var It=void 0,Gt=void 0,ln=void 0;if(t.getCellData&&(ln=(It=t.getCellData(ut,ue,Le,z)).value,(Gt=It.key)&&(0,p6.aT)(ut,Gt,ln)),null===(Ue=t.setAdditionalClasses)||void 0===Ue||Ue.call(t,(0,u.Z)(ut),ln),t.cellTemplate&&t.cellTemplate.render){var En=t.getTemplateData?t.getTemplateData(ue):{},on={model:(0,ui.Z)({text:t.getCellText?t.getCellText(ue,Le):"",date:t.getCellDate?t.getCellDate(ue):void 0},En),container:(0,S.u)((0,u.Z)(ut)),index:ue*t.cellCount+Le};ln&&(ln.startDate&&(on.model.startDate=ln.startDate),ln.endDate&&(on.model.endDate=ln.endDate),ln.groups&&(on.model.groups=ln.groups),ln.allDay&&(on.model.allDay=ln.allDay)),i.push(t.cellTemplate.render.bind(t.cellTemplate,on))}else t.getCellText&&(0,u.Z)("<div>").text(t.getCellText(ue,Le)).addClass(t.getCellTextClass).appendTo((0,u.Z)(ut))}A&&we&&(this.insertAllDayRow(A,e,D),D++)}return i}makeGroupedTable(t,e,i,r,v,D,A){return t===this.VERTICAL?this._makeVerticalGroupedRows(e,i,v,D):this._makeHorizontalGroupedRows(e,i,r,v,A)}makeGroupedTableFromJSON(t,e,i){var r,v=[],D=0,A=(i=i||{}).cellTag||"td",z=i.childrenField||"children",Q=i.titleField||"title",ue=i.groupTableClass,we=i.groupRowClass,Le=i.groupCellClass,Ue=i.groupCellCustomContent;function ut(Gt){return Gt[z]?Gt[z].length:0}function It(Gt,ln,En,on){var Nt={element:b.Z.createElement(A),childCount:ln};Le&&(Nt.element.className=Le);var Jt=b.Z.createTextNode(Gt);return"function"==typeof Ue?Ue(Nt.element,Jt,En,on):Nt.element.appendChild(Jt),Nt}return r=b.Z.createElement("table"),ue&&(r.className=ue),function Gt(ln){for(var En=0;En<ln.length;En++){var on=ut(ln[En]),Nt=It(ln[En][Q],on,En,ln[En]);v[D]||(v[D]=[]),v[D].push(Nt),on?Gt(ln[En][z]):D++}}(e),v.forEach(function(Gt){var ln=b.Z.createElement("tr");we&&(ln.className=we);for(var En=[],on=Gt.length-1;on>=0;on--){var Nt=Gt[on+1],Jt=Gt[on].childCount;Nt&&Nt.childCount&&(Jt*=Nt.childCount),En.push(Jt)}En.reverse(),Gt.forEach(function(un,Mn){En[Mn]&&un.element.setAttribute("rowSpan",En[Mn]),ln.appendChild(un.element)}),r.appendChild(ln)}),r}_makeFlexGroupedRowCells(t,e,i,r){for(var v=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,D=[],A=t.items,z=A.length,Q=0;Q<e*v;Q++)for(var ue=0;ue<z;ue++){var we=(0,u.Z)("<div>"),Le={};if(r&&r.render){var Ue={model:A[ue],container:(0,S.u)(we),index:Q*z+ue};t.data&&(Ue.model.data=t.data[ue]),Le.template=r.render.bind(r,Ue)}else we.text(A[ue].text).attr("title",A[ue].text).addClass("dx-scheduler-group-header-content"),we=(0,u.Z)("<div>").append(we);var ut=(0,w.mf)(i.groupHeaderClass)?i.groupHeaderClass(ue):i.groupHeaderClass;Le.element=we.addClass(ut),D.push(Le)}return D}_makeVerticalGroupedRows(t,e,i){for(var r=[],v=1,D=[],A=function(Gt){Gt.template&&r.push(Gt.template)},z=0;z<t.length;z++){z>0&&(v*=t[z-1].items.length);var Q=this._makeFlexGroupedRowCells(t[z],v,e,i);Q.forEach(A),D.push(Q)}for(var ue=[],we=D.length,Le=0;Le<we;Le++)ue.push((0,u.Z)("<div>").addClass(e.groupHeaderRowClass));for(var Ue=we-1;Ue>=0;Ue--)for(var ut=D[Ue].length,It=0;It<ut;It++)ue[Ue].append(D[Ue][It].element);return{elements:(0,u.Z)("<div>").addClass("dx-scheduler-group-flex-container").append(ue),cellTemplates:r}}_makeHorizontalGroupedRows(t,e,i,r,v){for(var D=1,A=t.length,z=[],Q=[],ue=v?i:1,we=function(En){return En.template&&Q.push(En.template),En.element},Le=0;Le<A;Le++){Le>0&&(D*=t[Le-1].items.length);var Ue=this._makeGroupedRowCells(t[Le],D,e,r,ue);z.push((0,u.Z)("<tr>").addClass(e.groupRowClass).append(Ue.map(we)))}for(var ut=z[A-1].find("th").length,It=0;It<A;It++){var Gt=z[It].find("th"),ln=ut/Gt.length;v||(ln*=i),(ln>1&&1===ue||v&&A>1)&&Gt.attr("colSpan",ln)}return{elements:z,cellTemplates:Q}}_makeGroupedRowCells(t,e,i,r,v){e*=v=v||1;for(var D=[],A=t.items,z=A.length,Q=0;Q<e;Q++)for(var ue=0;ue<z;ue++){var we=(0,u.Z)("<div>"),Le={};if(r&&r.render){var Ue={model:A[ue],container:(0,S.u)(we),index:Q*z+ue};t.data&&(Ue.model.data=t.data[ue]),Le.template=r.render.bind(r,Ue)}else we.text(A[ue].text),we=(0,u.Z)("<div>").append(we);we.addClass(i.groupHeaderContentClass);var ut;ut=(0,w.mf)(i.groupHeaderClass)?i.groupHeaderClass(ue):i.groupHeaderClass,Le.element=(0,u.Z)("<th>").addClass(ut).append(we),D.push(Le)}return D}}};var y4="dx-scheduler-date-time-shader";const C4=class Mae{constructor(t){this._workSpace=t,this._$container=this._workSpace._dateTableScrollable.$content()}render(){this.initShaderElements(),this.renderShader(),this._shader.forEach((t,e)=>{this._$container.append(t)})}initShaderElements(){this._$shader=this.createShader(),this._shader=[],this._shader.push(this._$shader)}renderShader(){}createShader(){return(0,u.Z)("<div>").addClass(y4)}clean(){this._$container&&this._$container.find("."+y4).remove()}};var x4="dx-scheduler-date-time-shader-all-day";const Rae=class kae extends C4{renderShader(){var t=this._getShaderHeight(),e=this._getShaderMaxHeight(),i=t>e;t>e&&(t=e),(0,s.QQ)(this._$shader,t);var r=this._workSpace._getGroupCount()||1;this._workSpace.isGroupedByDate()?this._renderGroupedByDateShaderParts(r,t,e,i):this._renderShaderParts(r,t,e,i)}_renderShaderParts(t,e,i,r){for(var v=0;v<t;v++){var D=this._getShaderWidth(v);this._renderTopShader(this._$shader,e,D,v),!r&&this._renderBottomShader(this._$shader,i,e,D,v),this._renderAllDayShader(D,v)}}_renderGroupedByDateShaderParts(t,e,i,r){var v=this._getShaderWidth(0),D=v-this._workSpace.getCellWidth();e<0&&(e=0,D=v),this._renderTopShader(this._$shader,e,v*t,0),!r&&this._renderBottomShader(this._$shader,i,e,D*t+this._workSpace.getCellWidth(),0),this._renderAllDayShader(v*t,0)}_renderTopShader(t,e,i,r){this._$topShader=(0,u.Z)("<div>").addClass("dx-scheduler-date-time-shader-top"),i&&(0,s.cl)(this._$topShader,i),e&&(0,s.QQ)(this._$topShader,e),this._$topShader.css("marginTop",this._getShaderTopOffset(r)),this._$topShader.css("left",this._getShaderOffset(r,i)),t.append(this._$topShader)}_renderBottomShader(t,e,i,r,v){this._$bottomShader=(0,u.Z)("<div>").addClass("dx-scheduler-date-time-shader-bottom");var D=i<0?r:r-this._workSpace.getCellWidth(),A=i<0?e:e-i;(0,s.cl)(this._$bottomShader,D),(0,s.QQ)(this._$bottomShader,A),this._$bottomShader.css("left",this._getShaderOffset(v,r-this._workSpace.getCellWidth())),t.append(this._$bottomShader)}_renderAllDayShader(t,e){this._workSpace.option("showAllDayPanel")&&(this._$allDayIndicator=(0,u.Z)("<div>").addClass(x4),(0,s.QQ)(this._$allDayIndicator,this._workSpace.getAllDayHeight()),(0,s.cl)(this._$allDayIndicator,t),this._$allDayIndicator.css("left",this._getShaderOffset(e,t)),this._workSpace._$allDayPanel.prepend(this._$allDayIndicator))}_getShaderOffset(t,e){return this._workSpace.getGroupedStrategy().getShaderOffset(t,e)}_getShaderTopOffset(t){return this._workSpace.getGroupedStrategy().getShaderTopOffset(t)}_getShaderHeight(t,e){return this._workSpace.getGroupedStrategy().getShaderHeight()}_getShaderMaxHeight(t,e){return this._workSpace.getGroupedStrategy().getShaderMaxHeight()}_getShaderWidth(t){return this._workSpace.getGroupedStrategy().getShaderWidth(t)}clean(){super.clean(),this._workSpace&&this._workSpace._$allDayPanel&&this._workSpace._$allDayPanel.find("."+x4).remove()}};class Vae{constructor(t){this.scheduler=t,this.workspace=t._workSpace,this.appointments=t._appointments,this.initialPosition={left:0,top:0},this.appointmentInfo=null,this.dragBetweenComponentsPromise=null}isAllDay(t){return t.data("dxAppointmentSettings").allDay}onDragStart(t){var{itemSettings:e,itemData:i,initialPosition:r}=t;this.initialPosition=r,this.appointmentInfo={appointment:i,settings:e},this.appointments.notifyObserver("hideAppointmentTooltip")}onDragMove(t){t.fromComponent!==t.toComponent&&this.appointments.notifyObserver("removeDroppableCellClass")}getAppointmentElement(t){return(0,u.Z)(t.event.data&&t.event.data.itemElement||t.itemElement)}onDragEnd(t){var e=this.getAppointmentElement(t),i=this.appointments._getItemData(e);this.appointments._getAppointmentContainer(this.isAllDay(e)).append(e);var v=this.workspace.getDroppableCellIndex(),D=this.workspace.getCellIndexByCoordinates(this.initialPosition);this.appointments.notifyObserver("updateAppointmentAfterDrag",{event:t,element:e,rawAppointment:i,newCellIndex:v,oldCellIndex:D})}onDragCancel(){this.removeDroppableClasses()}getItemData(t){var i=(0,u.Z)(t).data(bk)?.appointment,r=this.appointments._getItemData(t);return i||r}getItemSettings(t){var e=(0,u.Z)(t).data(bk);return e&&e.settings||[]}createDragStartHandler(t,e){return i=>{i.itemData=this.getItemData(i.itemElement),i.itemSettings=this.getItemSettings(i.itemElement),e.onDragStart&&e.onDragStart(i),i.cancel||t.onDragStart(i)}}createDragMoveHandler(t,e){return i=>{e.onDragMove&&e.onDragMove(i),i.cancel||t.onDragMove(i)}}createDragEndHandler(t,e){return i=>{this.appointmentInfo=null,e.onDragEnd&&e.onDragEnd(i),i.cancel||(t.onDragEnd(i),i.fromComponent!==i.toComponent&&e.onRemove&&e.onRemove(i)),!0===i.cancel&&this.removeDroppableClasses(),!0!==i.cancel&&function Bae(n){return"dxScheduler"===n.NAME}(i.toComponent)&&(i.toComponent._getDragBehavior().dragBetweenComponentsPromise=new P.BH)}}createDropHandler(t){return e=>{var i=this.appointments.invoke("getUpdatedData",e.itemData);e.itemData=(0,y.l)({},e.itemData,i),e.fromComponent!==e.toComponent&&t.onAdd&&t.onAdd(e),this.dragBetweenComponentsPromise&&this.dragBetweenComponentsPromise.resolve()}}addTo(t,e){var i=this.scheduler.option("appointmentDragging")||{},r=(0,y.l)({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(t,TB.Z,(0,y.l)({},r,i,{onDragStart:this.createDragStartHandler(r,i),onDragMove:this.createDragMoveHandler(r,i),onDragEnd:this.createDragEndHandler(r,i),onDrop:this.createDropHandler(i),onCancelByEsc:!0}))}updateDragSource(t,e){var{appointmentInfo:i}=this;(i||t)&&this.appointments._setDragSourceAppointment(t||i.appointment,e||i.settings)}removeDroppableClasses(){this.appointments._removeDragSourceClassFromDraggedAppointment(),this.workspace.removeDroppableCellClass()}}const b4=class Nae extends sa.Z{notifyObserver(t,e){var i=this.option("observer");i&&i.fire(t,e)}invoke(){var t=this.option("observer");if(t)return t.fire.apply(t,arguments)}};var E4=(0,k.V4)("scroll","dxSchedulerVirtualScrolling");class Zae{constructor(t){this.options=t,t&&(this._rowHeight=this.getCellHeight(),this._cellWidth=this.getCellWidth(),this._createVirtualScrollingBase())}get isRTL(){return this.options.isRTL()}get verticalVirtualScrolling(){return this._verticalVirtualScrolling}set verticalVirtualScrolling(t){this._verticalVirtualScrolling=t}get horizontalVirtualScrolling(){return this._horizontalVirtualScrolling}set horizontalVirtualScrolling(t){this._horizontalVirtualScrolling=t}get document(){return b.Z.getDocument()}get height(){return this.options.getSchedulerHeight()}get width(){return this.options.getSchedulerWidth()}get rowHeight(){return this._rowHeight}set rowHeight(t){this._rowHeight=t}get outlineCount(){return this.options.getScrolling().outlineCount}get cellWidth(){return this._cellWidth}set cellWidth(t){this._cellWidth=t}get viewportWidth(){var t=this.width&&this.options.getViewWidth();return t>0?t:this.options.getWindowWidth()}get viewportHeight(){var t=this.height&&this.options.getViewHeight();return t>0?t:this.options.getWindowHeight()}get cellCountInsideTopVirtualRow(){var t;return(null===(t=this.verticalScrollingState)||void 0===t?void 0:t.virtualItemCountBefore)||0}get cellCountInsideLeftVirtualCell(){var t;return(null===(t=this.horizontalScrollingState)||void 0===t?void 0:t.virtualItemCountBefore)||0}get cellCountInsideRightVirtualCell(){var t;return(null===(t=this.horizontalScrollingState)||void 0===t?void 0:t.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 t;return(null===(t=this.verticalScrollingState)||void 0===t?void 0:t.virtualItemSizeBefore)||0}get virtualCellOffset(){var t;return(null===(t=this.horizontalScrollingState)||void 0===t?void 0:t.virtualItemSizeBefore)||0}get scrollingState(){var t,e;return{vertical:null===(t=this.verticalVirtualScrolling)||void 0===t?void 0:t.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 t=this.options.getScrolling();return"standard"===t.mode?"none":t.orientation||"both"}get verticalScrollingAllowed(){return"vertical"===this.scrollingOrientation||"both"===this.scrollingOrientation}get horizontalScrollingAllowed(){return"horizontal"===this.scrollingOrientation||"both"===this.scrollingOrientation}setViewOptions(t){this.options=t,this.verticalVirtualScrolling&&(this.verticalVirtualScrolling.options=t,this.verticalVirtualScrolling.itemSize=this.rowHeight,this.verticalVirtualScrolling.viewportSize=this.viewportHeight),this.horizontalVirtualScrolling&&(this.horizontalVirtualScrolling.options=t,this.verticalVirtualScrolling.itemSize=this.cellWidth,this.verticalVirtualScrolling.viewportSize=this.viewportWidth)}getRenderState(){var t,e,i=(null===(t=this.verticalVirtualScrolling)||void 0===t?void 0:t.getRenderState())||{},r=(null===(e=this.horizontalVirtualScrolling)||void 0===e?void 0:e.getRenderState())||{};return(0,ui.Z)({},i,r)}getCellHeight(){var t=this.options.getCellHeight();return Math.floor(t>0?t:50)}getCellWidth(){var t=this.options.getCellWidth(),e=this.options.getCellMinWidth();return(!t||t<e)&&(t=e),Math.floor(t>0?t:1)}calculateCoordinatesByDataAndPosition(t,e,i,r,v){var{rowIndex:D,columnIndex:A}=e,{startDate:z,endDate:Q,allDay:ue}=t,we=i.getTime(),Le=z.getTime(),Ue=Q.getTime(),ut=ue||!r?0:(we-Le)/(Ue-Le),It=this.getCellWidth(),Gt=this.getCellHeight(),ln=v?(D+ut)*Gt:D*Gt,En=v?A*It:(A+ut)*It;return this.isRTL&&(En=this.options.getScrollableOuterWidth()-En),{top:ln,left:En}}dispose(){this._onScrollHandler&&d.Z.off(this.document,E4,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 Kae((0,ui.Z)({},this.options,{viewportHeight:this.viewportHeight,rowHeight:this.rowHeight,outlineCount:this.outlineCount}))),this.horizontalScrollingAllowed&&(this.horizontalVirtualScrolling=new Gae((0,ui.Z)({},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 t=(0,fi.Jj)();this._onScrollHandler=this.options.createAction(()=>{var{scrollX:e,scrollY:i}=t;(e>=10||i>=10)&&this.handleOnScrollEvent({left:e,top:i})}),d.Z.on(this.document,E4,this._onScrollHandler)}handleOnScrollEvent(t){if(t){var e,i,z,Q,{left:r,top:v}=t,D=(0,w.$K)(v)&&(null===(e=this.verticalVirtualScrolling)||void 0===e?void 0:e.updateState(v)),A=(0,w.$K)(r)&&(null===(i=this.horizontalVirtualScrolling)||void 0===i?void 0:i.updateState(r));(D||A)&&(null===(z=(Q=this.options).updateRender)||void 0===z||z.call(Q))}}updateDimensions(t){var e=this.getCellHeight(),i=this.verticalScrollingAllowed&&e!==this.rowHeight;(i||t)&&this.verticalVirtualScrolling&&(this.rowHeight=e,this.verticalVirtualScrolling.viewportSize=this.viewportHeight,this.verticalVirtualScrolling.reinitState(e,t));var D,A,r=this.getCellWidth(),v=this.horizontalScrollingAllowed&&r!==this.cellWidth;(v||t)&&this.horizontalVirtualScrolling&&(this.cellWidth=r,this.horizontalVirtualScrolling.viewportSize=this.viewportWidth,this.horizontalVirtualScrolling.reinitState(r,t)),(i||v)&&(null===(D=(A=this.options).updateGrid)||void 0===D||D.call(A))}}class S4{constructor(t){this.options=t,this._state=this.defaultState,this.viewportSize=t.viewportSize,this._itemSize=t.itemSize,this._position=-1,this._itemSizeChanged=!1,this.updateState(0)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSizeChanged=this._itemSize!==t,this._itemSize=t}get state(){return this._state}set state(t){this._state=t}get startIndex(){return this.state.startIndex}get pageSize(){return Math.ceil(this.viewportSize/this.itemSize)}get outlineCount(){return(0,w.$K)(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(t){this._position=t}needUpdateState(t){var{prevPosition:e,startIndex:i}=this.state;if(i<0)return!0;var v=!1;if(this._validateAndSavePosition(t)){if(0===t||t===this.maxScrollPosition)return!0;var A=Math.floor(e/this.itemSize),z=Math.floor(t/this.itemSize);v=Math.abs(A-z)>=this.outlineCount}return v}_validateAndSavePosition(t){if(!(0,w.$K)(t))return!1;var e=this.position!==t;return this.position=t,e}_correctPosition(t){return t>=0?Math.min(t,this.maxScrollPosition):-1}updateState(t,e){if(t=this._correctPosition(t),!this.needUpdateState(t)&&!e)return!1;var i=this._calcItemInfoBefore(t),r=this._calcItemDeltaBefore(i),{outlineCountAfter:v,virtualItemCountAfter:D,itemCountWithAfter:A}=this._calcItemInfoAfter(r),{virtualItemCountBefore:z,outlineCountBefore:Q}=i,ue=Q+A+v,we=Math.floor(t/this.itemSize);return this.state.prevPosition=we*this.itemSize,this.state.startIndex=we-Q,this.state.virtualItemCountBefore=z,this.state.outlineCountBefore=Q,this.state.itemCount=ue,this.state.outlineCountAfter=v,this.state.virtualItemCountAfter=D,this._updateStateCore(),!0}reinitState(t,e){var{position:i}=this;this.itemSize=t,this.updateState(0,e),i>0&&this.updateState(i,e)}_calcItemInfoBefore(t){var e=Math.floor(t/this.itemSize),i=Math.min(e,this.outlineCount);return{virtualItemCountBefore:e-=i,outlineCountBefore:i}}_calcItemDeltaBefore(t){var{virtualItemCountBefore:e,outlineCountBefore:i}=t;return this.getTotalItemCount()-e-i}getTotalItemCount(){throw"getTotalItemCount method should be implemented"}getRenderState(){throw"getRenderState method should be implemented"}_calcItemInfoAfter(t){var e=t>=this.pageSize?this.pageSize:t,i=t-e,r=i>0?Math.min(i,this.outlineCount):0;return i>0&&(i-=r),{virtualItemCountAfter:i,outlineCountAfter:r,itemCountWithAfter:e}}_updateStateCore(){var{state:t}=this,ue=this.itemSize*t.virtualItemCountBefore,we=this.itemSize*t.virtualItemCountAfter;(this._itemSizeChanged||t.virtualItemSizeBefore+t.outlineSizeBefore<ue+this.itemSize*t.outlineCountBefore||t.virtualItemSizeAfter+t.outlineSizeAfter<we+this.itemSize*t.outlineCountAfter)&&this._updateStateVirtualItems(ue,we)}_updateStateVirtualItems(t,e){var{state:i}=this;i.virtualItemSizeBefore=t,i.virtualItemSizeAfter=e}}class Kae extends S4{constructor(t){super((0,ui.Z)({},t,{itemSize:t.rowHeight,viewportSize:t.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 Gae extends S4{constructor(t){super((0,ui.Z)({},t,{itemSize:t.cellWidth,viewportSize:t.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(t,e){if(this.isRTL){var{state:i}=this;i.virtualItemSizeAfter=t,i.virtualItemSizeBefore=e,i.startIndex=this.getTotalItemCount()-this.startIndex-this.state.itemCount}else super._updateStateVirtualItems(t,e)}}class jae{constructor(t){this._workspace=t,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 t=this.getRenderTimeout();t>=0?(clearTimeout(this._renderAppointmentTimeoutID),this._renderAppointmentTimeoutID=setTimeout(()=>this.workspace.updateAppointments(),t)):this.workspace.updateAppointments()}}var Xae=["startDate","endDate","isFirstGroupCell","isLastGroupCell"];class qae{constructor(t){this._viewDataGenerator=t}getCompleteDateHeaderMap(t,e){var{isGenerateWeekDaysHeaderData:i}=t,r=[];if(i){var v=this._generateWeekDaysHeaderRowMap(t,e);r.push(v)}var D=this._generateHeaderDateRow(t,e);return r.push(D),r}_generateWeekDaysHeaderRowMap(t,e){for(var{isGroupedByDate:i,groups:r,groupOrientation:v,startDayHour:D,endDayHour:A,hoursInterval:z,isHorizontalGrouping:Q,intervalCount:ue}=t,we=this._viewDataGenerator.getCellCountInDay(D,A,z),Le=Rk(r,v),Ue=e[0][0].allDay?1:0,ut=i?Le*we:we,It=Lp(r),En=this._viewDataGenerator.daysInInterval*ue*(Q&&!i?It:1),on=[],Nt=0;Nt<En;Nt+=1){var Jt=e[Ue][Nt*ut];on.push((0,ui.Z)({},Jt,{colSpan:ut,text:hT(Jt.startDate),isFirstGroupCell:!1,isLastGroupCell:!1}))}return on}_generateHeaderDateRow(t,e){var{today:i,isGroupedByDate:r,groupOrientation:v,groups:D,headerCellTextFormat:A,getDateForHeaderText:z,interval:Q,startViewDate:ue,startDayHour:we,endDayHour:Le,hoursInterval:Ue,intervalCount:ut,currentDate:It,viewType:Gt}=t,ln=Rk(D,v),En=e[0][0].allDay?1:0,on=r?ln:1,Nt="vertical"===v,Jt=this._viewDataGenerator.getCellCount({intervalCount:ut,currentDate:It,viewType:Gt,hoursInterval:Ue,startDayHour:we,endDayHour:Le}),un=this._viewDataGenerator.getCellCountInDay(we,Le,Ue);return(r?e[En].filter((Kn,Xn)=>Xn%ln==0):e[En]).map((Kn,Xn)=>{var{startDate:si,isFirstGroupCell:pi,isLastGroupCell:yi}=Kn,Ui=(0,Ti.Z)(Kn,Xae),Bi=((n,t,e,i,r)=>{var v=i(n,t,r);return Bo.Z.format(v,e)})(Xn%Jt,si,A,z,{interval:Q,startViewDate:ue,startDayHour:we,cellCountInDay:un});return(0,ui.Z)({},Ui,{startDate:si,text:Bi,today:te.Z.sameDate(si,i),colSpan:on,isFirstGroupCell:r||pi&&!Nt,isLastGroupCell:r||yi&&!Nt})})}generateDateHeaderData(t,e,i){var{isGenerateWeekDaysHeaderData:r,cellWidth:v,isProvideVirtualCellsWidth:D,startDayHour:A,endDayHour:z,hoursInterval:Q,isMonthDateHeader:ue}=i,we=[],Le={},Ue=v||0;r&&(Le=this._generateDateHeaderDataRow(i,t,e,this._viewDataGenerator.getCellCountInDay(A,z,Q),0,Ue),we.push(Le.dateRow));var ut=this._generateDateHeaderDataRow(i,t,e,1,r?1:0,Ue);return we.push(ut.dateRow),{dataMap:we,leftVirtualCellWidth:D?ut.leftVirtualCellWidth:void 0,rightVirtualCellWidth:D?ut.rightVirtualCellWidth:void 0,leftVirtualCellCount:ut.leftVirtualCellCount,rightVirtualCellCount:ut.rightVirtualCellCount,weekDayLeftVirtualCellWidth:Le.leftVirtualCellWidth,weekDayRightVirtualCellWidth:Le.rightVirtualCellWidth,weekDayLeftVirtualCellCount:Le.leftVirtualCellCount,weekDayRightVirtualCellCount:Le.rightVirtualCellCount,isMonthDateHeader:ue}}_generateDateHeaderDataRow(t,e,i,r,v,D){var{startCellIndex:A,cellCount:z,isProvideVirtualCellsWidth:Q,groups:ue,groupOrientation:we,isGroupedByDate:Le}=t,Ue=Rk(ue,we),ut=Le?Ue*r:r,It=Math.floor(A/ut),Gt=Z6(z,i),ln=Math.ceil((A+Gt)/ut),Nt=It*ut,un=Bk(i)-ln*ut;return{dateRow:e[v].slice(It,ln),leftVirtualCellCount:Nt,leftVirtualCellWidth:Q?Nt*D:void 0,rightVirtualCellCount:un,rightVirtualCellWidth:Q?un*D:void 0}}}class O4{constructor(t,e,i,r){this.groupedDataMap=t.generateGroupedDataMap(e),this.completeViewDataMap=i,this._viewOptions=r}getGroupStartDate(t){var e=this.getFirstGroupRow(t);if(e){var{startDate:i}=e[0].cellData;return i}}getGroupEndDate(t){var e=this.getLastGroupRow(t);if(e){var i=e.length-1,{cellData:r}=e[i],{endDate:v}=r;return v}}findGroupCellStartDate(t,e,i,r){var v=this.getGroupFromDateTableGroupMap(t),D=(Q,ue)=>{var{cellData:we}=v[Q][ue],{startDate:Le,endDate:Ue}=we;if(r&&(Le=te.Z.trimTime(Le),Ue=te.Z.setToDayEnd(Le)),te.Z.intervalsOverlap({firstMin:e,firstMax:i,secondMin:Le,secondMax:Ue}))return Le},A=(()=>{for(var Q=v[0].length,ue=0;ue<Q;++ue)for(var we=0;we<v.length;++we){var Le=D(we,ue);if(Le)return Le}})(),z=(()=>{for(var Q=0;Q<v.length;++Q)for(var ue=v[Q],we=0;we<ue.length;++we){var Le=D(Q,we);if(Le)return Le}})();return A>z?z:A}findAllDayGroupCellStartDate(t,e){var i=this.getGroupStartDate(t);return i>e?i:e}findCellPositionInMap(t){for(var{groupIndex:e,startDate:i,isAllDay:r,index:v}=t,D=r?te.Z.trimTime(i).getTime():i.getTime(),A=Gt=>{if(!J0(this._viewOptions.viewType))return te.Z.sameDate(i,Gt.startDate);var ln=Gt.startDate.getTime(),En=Gt.endDate.getTime();return r?Gt.allDay&&D>=ln&&D<=En:D>=ln&&D<En},{allDayPanelGroupedMap:z,dateTableGroupedMap:Q}=this.groupedDataMap,ue=r&&!this._viewOptions.isVerticalGrouping?z[e]?[z[e]]:[]:Q[e]||[],we=0;we<ue.length;++we)for(var Le=ue[we],Ue=0;Ue<Le.length;++Ue){var ut=Le[Ue],{cellData:It}=ut;if(this._isSameGroupIndexAndIndex(It,e,v)&&A(It))return ut.position}}_isSameGroupIndexAndIndex(t,e,i){return t.groupIndex===e&&(void 0===i||t.index===i)}getCellsGroup(t){var{dateTableGroupedMap:e}=this.groupedDataMap,i=e[t];if(i){var{cellData:r}=i[0][0];return r.groups}}getCompletedGroupsInfo(){var{dateTableGroupedMap:t}=this.groupedDataMap;return t.map(e=>{var i=e[0][0],{allDay:r,groupIndex:v}=i.cellData;return{allDay:r,groupIndex:v,startDate:this.getGroupStartDate(v),endDate:this.getGroupEndDate(v)}}).filter(e=>{var{startDate:i}=e;return!!i})}getGroupIndices(){return this.getCompletedGroupsInfo().map(t=>{var{groupIndex:e}=t;return e})}getGroupFromDateTableGroupMap(t){var{dateTableGroupedMap:e}=this.groupedDataMap;return e[t]}getFirstGroupRow(t){var e=this.getGroupFromDateTableGroupMap(t);if(e){var{cellData:i}=e[0][0];return i.allDay?e[1]:e[0]}}getLastGroupRow(t){var{dateTableGroupedMap:e}=this.groupedDataMap,i=e[t];if(i)return i[i.length-1]}getLastGroupCellPosition(t){var e=this.getLastGroupRow(t);return e?.[e?.length-1].position}getRowCountInGroup(t){var e=this.getLastGroupRow(t);return(e[e.length-1].cellData.index+1)/e.length}}var D4=(n,t)=>n?te.Z.getFirstWeekDate(n,t):void 0,nse=(n,t,e,i,r)=>{if(n%2==0){var v=((n,t,e,i,r)=>{if(!Xo.isTimezoneChangeInDate(t))return t;var v=Xo.getDateWithoutTimezoneChange(e),D=new Date(v),A=Math.round(i),z=V6(e,r);return D.setMilliseconds(D.getMilliseconds()+A*n-z),D})(n,t,e,i,r);return Bo.Z.format(v,"shorttime")}return""},ise=["allDay","startDate","endDate","groups","groupIndex","isFirstGroupCell","isLastGroupCell","index"];class rse{constructor(t){this._viewDataGenerator=t}getCompleteTimePanelMap(t,e){var{startViewDate:i,cellDuration:r,startDayHour:v,isVerticalGrouping:D,intervalCount:A,currentDate:z,viewType:Q,hoursInterval:ue,endDayHour:we}=t,Le=this._viewDataGenerator.getRowCount({intervalCount:A,currentDate:z,viewType:Q,hoursInterval:ue,startDayHour:v,endDayHour:we}),Ue=this._viewDataGenerator.getCellCount({intervalCount:A,currentDate:z,viewType:Q,hoursInterval:ue,startDayHour:v,endDayHour:we}),ut=0;return e.map((It,Gt)=>{var ln=It[0],{allDay:En,startDate:on,groups:Nt,groupIndex:Jt,isFirstGroupCell:un,isLastGroupCell:Mn,index:Kn}=ln,Xn=(0,Ti.Z)(ln,ise);return En&&(ut+=1),(0,ui.Z)({},Xn,{startDate:on,allDay:En,text:nse((Gt-ut)%Le,on,i,r,v),groups:D?Nt:void 0,groupIndex:D?Jt:void 0,isFirstGroupCell:D&&un,isLastGroupCell:D&&Mn,index:Math.floor(Kn/Ue)})})}generateTimePanelData(t,e){var{startRowIndex:i,rowCount:r,topVirtualRowHeight:v,bottomVirtualRowHeight:D,isGroupedAllDayPanel:A,isVerticalGrouping:z,isAllDayPanelVisible:Q}=e,we=i+(z||!Q?0:1),Le=Fk(r,t),Ue=t.slice(we,we+Le),ut={topVirtualRowHeight:v,bottomVirtualRowHeight:D,isGroupedAllDayPanel:A},{previousGroupedData:It}=this._generateTimePanelDataFromMap(Ue,z);return ut.groupedData=It,ut}_generateTimePanelDataFromMap(t,e){return t.reduce((i,r)=>{var{previousGroupIndex:v,previousGroupedData:D}=i,A=r.groupIndex;return A!==v&&D.push({dateTable:[],isGroupedAllDayPanel:u6(!!r.allDay,e),groupIndex:A,key:a6(A,e)}),r.allDay?D[D.length-1].allDayPanel=r:D[D.length-1].dateTable.push(r),{previousGroupIndex:A,previousGroupedData:D}},{previousGroupIndex:-1,previousGroupedData:[]})}}var T4=te.Z.dateToMilliseconds("hour"),I4=te.Z.dateToMilliseconds("day");class dw{get daysInInterval(){return 1}get isWorkView(){return!1}get tableAllDay(){return!1}isSkippedDate(){return!1}getStartViewDate(t){return this._calculateStartViewDate(t)}getCompleteViewDataMap(t){var{groups:e,isGroupedByDate:i,isHorizontalGrouping:r,isVerticalGrouping:v,intervalCount:D,currentDate:A,viewType:z,startDayHour:Q,endDayHour:ue,hoursInterval:we}=t;this._setVisibilityDates(t),this.setHiddenInterval(Q,ue,we);var Le=HN(e),Ue=this.getCellCount({intervalCount:D,currentDate:A,viewType:z,startDayHour:Q,endDayHour:ue,hoursInterval:we}),ut=this.getRowCount({intervalCount:D,currentDate:A,viewType:z,hoursInterval:we,startDayHour:Q,endDayHour:ue}),It=[],Gt=this._generateAllDayPanelData(t,ut,Ue),ln=this._generateViewCellsData(t,ut,Ue);return Gt&&It.push(Gt),It.push(...ln),r&&!i&&(It=this._transformViewDataMapForHorizontalGrouping(It,Le)),v&&(It=this._transformViewDataMapForVerticalGrouping(It,Le)),i&&(It=this._transformViewDataMapForGroupingByDate(It,Le)),this._addKeysToCells(It)}_transformViewDataMapForHorizontalGrouping(t,e){var i=t.map(r=>r.slice());return e.slice(1).forEach((r,v)=>{var D=v+1;t.forEach((A,z)=>{var Q=A.map(ue=>(0,ui.Z)({},ue,{groups:r,groupIndex:D}));i[z].push(...Q)})}),i}_transformViewDataMapForVerticalGrouping(t,e){var i=t.map(r=>r.slice());return e.slice(1).forEach((r,v)=>{var D=v+1,A=t.map(z=>z.map(ue=>(0,ui.Z)({},ue,{groupIndex:D,groups:r})));i.push(...A)}),i}_transformViewDataMapForGroupingByDate(t,e){var i=e.slice(1),r=i.length;return t.map(D=>D.reduce((z,Q)=>[...z,(0,ui.Z)({},Q,{isFirstGroupCell:!0,isLastGroupCell:0===r}),...i.map((we,Le)=>(0,ui.Z)({},Q,{groups:we,groupIndex:Le+1,isFirstGroupCell:!1,isLastGroupCell:Le===r-1}))],[]))}_addKeysToCells(t){var e=t[0].length,{currentViewDataMap:i}=t.reduce((r,v,D)=>{var{allDayPanelsCount:A,currentViewDataMap:z}=r,ue=(D-A)*e,we=v[0].allDay?A+1:A;return z[D].forEach((Le,Ue)=>{Le.key=ue+Ue}),{allDayPanelsCount:we,currentViewDataMap:z}},{allDayPanelsCount:0,currentViewDataMap:t});return i}generateViewDataMap(t,e){var{rowCount:i,startCellIndex:r,startRowIndex:v,cellCount:D,isVerticalGrouping:A,isAllDayPanelVisible:z}=e,Q=(ut,It,Gt,ln)=>ut.slice(Gt,void 0!==ln?Gt+ln:void 0).map((on,Nt)=>({cellData:on,position:{rowIndex:It,columnIndex:Nt}})),ue=v,we=[];this._isStandaloneAllDayPanel(A,z)&&(ue++,we=Q(t[0],0,r,D));var Le=Fk(i,t);return{allDayPanelMap:we,dateTableMap:t.slice(ue,ue+Le).map((ut,It)=>Q(ut,It,r,D))}}_isStandaloneAllDayPanel(t,e){return!t&&e}getViewDataFromMap(t,e,i){var{topVirtualRowHeight:r,bottomVirtualRowHeight:v,leftVirtualCellWidth:D,rightVirtualCellWidth:A,cellCount:z,rowCount:Q,startRowIndex:ue,startCellIndex:we,isProvideVirtualCellsWidth:Le,isGroupedAllDayPanel:Ue,isVerticalGrouping:ut,isAllDayPanelVisible:It}=i,{allDayPanelMap:Gt,dateTableMap:ln}=e,{groupedData:En}=ln.reduce((Mn,Kn)=>{var{previousGroupIndex:Xn,groupedData:si}=Mn,pi=Kn.map(oi=>{var{cellData:Fi}=oi;return Fi}),yi=pi[0],Ui=yi.allDay,Bi=yi.groupIndex;return Bi!==Xn&&si.push({dateTable:[],isGroupedAllDayPanel:u6(!!Ui,ut),groupIndex:Bi,key:a6(Bi,ut)}),Ui?si[si.length-1].allDayPanel=pi:si[si.length-1].dateTable.push({cells:pi,key:pi[0].key-we}),{groupedData:si,previousGroupIndex:Bi}},{previousGroupIndex:-1,groupedData:[]});this._isStandaloneAllDayPanel(ut,It)&&(En[0].allDayPanel=Gt.map(Mn=>{var{cellData:Kn}=Mn;return Kn}));var on=Bk(t),Nt=U6(t),Jt=Z6(z,t),un=Fk(Q,t);return{groupedData:En,topVirtualRowHeight:r,bottomVirtualRowHeight:v,leftVirtualCellWidth:Le?D:void 0,rightVirtualCellWidth:Le?A:void 0,isGroupedAllDayPanel:Ue,leftVirtualCellCount:we,rightVirtualCellCount:void 0===z?0:on-we-Jt,topVirtualRowCount:ue,bottomVirtualRowCount:Nt-ue-un}}_generateViewCellsData(t,e,i){for(var r=[],v=0;v<e;v+=1)r.push(this._generateCellsRow(t,!1,v,e,i));return r}_generateAllDayPanelData(t,e,i){return t.isAllDayPanelVisible?this._generateCellsRow(t,!0,0,e,i):null}_generateCellsRow(t,e,i,r,v){for(var D=[],A=0;A<v;++A){var z=this.getCellData(i,A,t,e);z.index=i*v+A,z.isFirstGroupCell=this._isFirstGroupCell(i,A,t,r,v),z.isLastGroupCell=this._isLastGroupCell(i,A,t,r,v),D.push(z)}return D}getCellData(t,e,i,r){return r?this.prepareAllDayCellData(i,t,e):this.prepareCellData(i,t,e)}prepareCellData(t,e,i){var{groups:r,startDayHour:v,endDayHour:D,interval:A,hoursInterval:z}=t,Q=HN(r),ue=this.getDateByCellIndices(t,e,i,this.getCellCountInDay(v,D,z)),Le={startDate:ue,endDate:this.calculateEndDate(ue,A,D),allDay:this.tableAllDay,groupIndex:0};return Q.length>0&&(Le.groups=Q[0]),Le}prepareAllDayCellData(t,e,i){var r=this.prepareCellData(t,e,i),v=te.Z.trimTime(r.startDate);return(0,ui.Z)({},r,{startDate:v,endDate:v,allDay:!0})}getDateByCellIndices(t,e,i,r){var v=t.startViewDate,{startDayHour:D,interval:A,firstDayOfWeek:z,intervalCount:Q}=t,ue=v.getHours()!==Math.floor(D);if(ue){var we=F6(v,D);v=new Date(we-te.Z.dateToMilliseconds("day"))}var Le=this.getCellCount(t),Ue=this.getRowCount(t),ut=this._calculateCellIndex(e,i,Ue,Le),It=this.getMillisecondsOffset(ut,A,r),Gt=this.isWorkView?this.getTimeOffsetByColumnIndex(i,this.getFirstDayOfWeek(z),Le,Q):0,ln=v.getTime(),En=new Date(ln+It+Gt),on=ue?0:te.Z.getTimezonesDifference(v,En);return En.setTime(En.getTime()+on),En}getMillisecondsOffset(t,e,i){return e*t+Math.floor(t/i)*this.hiddenInterval}getTimeOffsetByColumnIndex(t,e,i,r){var v=Math.max(0,e-1),A=Math.floor((t+v)/(i/r));return I4*A*2}calculateEndDate(t,e,i){var r=new Date(t);return r.setMilliseconds(r.getMilliseconds()+Math.round(e)),r}_calculateCellIndex(t,e,i,r){return((n,t,e)=>t*e+n)(t,e,i)}generateGroupedDataMap(t){var{allDayPanelMap:e,dateTableMap:i}=t,{previousGroupedDataMap:r}=i.reduce((D,A)=>{var{previousGroupedDataMap:z,previousRowIndex:Q,previousGroupIndex:ue}=D,{groupIndex:we}=A[0].cellData,Le=we===ue?Q+1:0;return A.forEach(Ue=>{var{groupIndex:ut}=Ue.cellData;z[ut]||(z[ut]=[]),z[ut][Le]||(z[ut][Le]=[]),z[ut][Le].push(Ue)}),{previousGroupedDataMap:z,previousRowIndex:Le,previousGroupIndex:we}},{previousGroupedDataMap:[],previousRowIndex:-1,previousGroupIndex:-1}),v=[];return e?.forEach(D=>{var{groupIndex:A}=D.cellData;v[A]||(v[A]=[]),v[A].push(D)}),{allDayPanelGroupedMap:v,dateTableGroupedMap:r}}_isFirstGroupCell(t,e,i,r,v){var{groupOrientation:D,groups:A,isGroupedByDate:z}=i,Q=Lp(A);return z?e%Q==0:D===r6?e%v==0:t%r==0}_isLastGroupCell(t,e,i,r,v){var{groupOrientation:D,groups:A,isGroupedByDate:z}=i,Q=Lp(A);return z?(e+1)%Q==0:D===r6?(e+1)%v==0:(t+1)%r==0}markSelectedAndFocusedCells(t,e){var{selectedCells:i,focusedCell:r}=e;if(!i&&!r)return t;var{allDayPanelMap:v,dateTableMap:D}=t,A=D.map(Q=>this._markSelectedAndFocusedCellsInRow(Q,i,r));return{allDayPanelMap:this._markSelectedAndFocusedCellsInRow(v,i,r),dateTableMap:A}}_markSelectedAndFocusedCellsInRow(t,e,i){return t.map(r=>{var{index:v,groupIndex:D,allDay:A,startDate:z}=r.cellData,Q=e.findIndex(we=>{var{index:Le,groupIndex:Ue,allDay:ut,startDate:It}=we;return D===Ue&&(v===Le||void 0===Le&&z.getTime()===It.getTime())&&!!A==!!ut}),ue=!!i&&v===i.cellData.index&&D===i.cellData.groupIndex&&A===i.cellData.allDay;return ue||-1!==Q?(0,ui.Z)({},r,{cellData:(0,ui.Z)({},r.cellData,{isSelected:Q>-1,isFocused:ue})}):r})}getInterval(t){return t*T4}_getIntervalDuration(t){return te.Z.dateToMilliseconds("day")*t}_setVisibilityDates(){}getCellCountInDay(t,e,i){var r=Lk(t,e)/i;return Math.ceil(r)}getCellCount(t){var{intervalCount:e,viewType:i,startDayHour:r,endDayHour:v,hoursInterval:D}=t,A=this.getCellCountInDay(r,v,D),z=W6(i)?A:1;return this.daysInInterval*e*z}getRowCount(t){var{viewType:e,startDayHour:i,endDayHour:r,hoursInterval:v}=t,D=this.getCellCountInDay(i,r,v);return W6(e)?1:D}setHiddenInterval(t,e,i){this.hiddenInterval=I4-this.getVisibleDayDuration(t,e,i)}getVisibleDayDuration(t,e,i){return i*this.getCellCountInDay(t,e,i)*T4}getFirstDayOfWeek(t){return t}}class ase extends dw{_calculateStartViewDate(t){return((n,t,e,i)=>{var r=cT(e,n,i,e);return zf(r,t)})(t.currentDate,t.startDayHour,t.startDate,this._getIntervalDuration(t.intervalCount))}}var cw=(n,t,e,i)=>{if(!n)return new Date(t);for(var r=new Date(i),v=new Date(i),D=r.getTime()<=t.getTime()?1:-1,A=new Date(new Date(v.setMonth(v.getMonth()+D*e)));!L6(t,r,A,D);)r=new Date(A),D>0&&r.setDate(1),A=new Date(new Date(A.setMonth(A.getMonth()+D*e)));return D>0?r:A},M4=(n,t,e,i)=>n*i+t,A4=(n,t)=>1===n.getDate()&&t>1,P4=(n,t)=>A4(n,t)?[Bo.Z.getMonthNames("abbreviated")[n.getMonth()],Bo.Z.format(n,"day")].join(" "):Bo.Z.format(n,"dd"),lse=te.Z.dateToMilliseconds("day");class cse extends dw{get tableAllDay(){}getCellData(t,e,i,r){var v=super.getCellData(t,e,i,!1),D=v.startDate,{indicatorTime:A,timeZoneCalculator:z,intervalCount:Q}=i;return v.today=this.isCurrentDate(D,A,z),v.otherMonth=this.isOtherMonth(D,this._minVisibleDate,this._maxVisibleDate),v.firstDayOfMonth=A4(D,Q),v.text=P4(D,Q),v}isCurrentDate(t,e,i){return te.Z.sameDate(t,N6(e,i))}isOtherMonth(t,e,i){return!te.Z.dateInRange(t,e,i,"date")}_calculateCellIndex(t,e,i,r){return M4(t,e,0,r)}calculateEndDate(t,e,i){return zf(t,i)}getInterval(){return lse}_calculateStartViewDate(t){return((n,t,e,i,r)=>{var v=cw(e,n,i,te.Z.getFirstMonthDate(e)),D=te.Z.getFirstMonthDate(v),A=B6(r),z=te.Z.getFirstWeekDate(D,A);return zf(z,t)})(t.currentDate,t.startDayHour,t.startDate,t.intervalCount,this.getFirstDayOfWeek(t.firstDayOfWeek))}_setVisibilityDates(t){var{intervalCount:e,startDate:i,currentDate:r}=t,v=te.Z.getFirstMonthDate(i),D=cw(i,r,e,v);this._minVisibleDate=new Date(D.setDate(1));var A=new Date(D.setMonth(D.getMonth()+e));this._maxVisibleDate=new Date(A.setDate(0))}getCellCount(){return 7}getRowCount(t){return 4*t.intervalCount+2}getCellCountInDay(){return 1}setHiddenInterval(){this.hiddenInterval=0}}var pse=te.Z.dateToMilliseconds("day");class gse extends dw{_calculateCellIndex(t,e,i,r){return M4(t,e,0,r)}calculateEndDate(t,e,i){return zf(t,i)}getInterval(){return pse}_calculateStartViewDate(t){return((n,t,e,i)=>{var r=te.Z.getFirstMonthDate(cw(e,n,i,te.Z.getFirstMonthDate(e)));return zf(r,t)})(t.currentDate,t.startDayHour,t.startDate,t.intervalCount)}getCellCount(t){for(var{intervalCount:e,currentDate:i}=t,r=0,v=1;v<=e;v++)r+=new Date(i.getFullYear(),i.getMonth()+v,0).getDate();return r}setHiddenInterval(){this.hiddenInterval=0}}class k4 extends dw{get daysInInterval(){return 7}_getIntervalDuration(t){return(n=>7*te.Z.dateToMilliseconds("day")*n)(t)}_calculateStartViewDate(t){return((n,t,e,i,r)=>{var v=B6(r),D=cT(e,n,i,D4(e,v)),A=te.Z.getFirstWeekDate(D,v);return zf(A,t)})(t.currentDate,t.startDayHour,t.startDate,this._getIntervalDuration(t.intervalCount),this.getFirstDayOfWeek(t.firstDayOfWeek))}}var R4=n=>{var t=n.getDay();return 6===t||0===t},L4=n=>2*Math.floor(n/7);class Cse extends k4{get daysInInterval(){return 5}get isWorkView(){return!0}isSkippedDate(t){return R4(t)}_calculateStartViewDate(t){return((n,t,e,i,r)=>{var v=cT(e,n,i,D4(e,r)),D=te.Z.getFirstWeekDate(v,r);if(R4(D)){var z=(8-D.getDay())%7;D.setDate(D.getDate()+z)}return zf(D,t)})(t.currentDate,t.startDayHour,t.startDate,this._getIntervalDuration(t.intervalCount),this.getFirstDayOfWeek(t.firstDayOfWeek))}getFirstDayOfWeek(t){return t||0}}var B4=n=>{switch(n){case is.MONTH:return new cse;case is.TIMELINE_MONTH:return new gse;case is.DAY:case is.TIMELINE_DAY:return new ase;case is.WEEK:case is.TIMELINE_WEEK:return new k4;case is.WORK_WEEK:case is.TIMELINE_WORK_WEEK:return new Cse;default:return new dw}},xse=["groups","groupOrientation","groupByDate","isAllDayPanelVisible"];class bse{constructor(t){this.viewDataGenerator=B4(t),this.viewData={},this.completeViewDataMap=[],this.completeDateHeaderMap=[],this.viewDataMap={},this._groupedDataMapProvider=null}get groupedDataMap(){return this._groupedDataMapProvider.groupedDataMap}get hiddenInterval(){return this.viewDataGenerator.hiddenInterval}isSkippedDate(t){return this.viewDataGenerator.isSkippedDate(t)}update(t,e){this.viewDataGenerator=B4(t.viewType);var i=this.viewDataGenerator,r=new qae(i),v=new rse(i),D=this._transformRenderOptions(t);D.interval=this.viewDataGenerator.getInterval(D.hoursInterval),this._options=D,e&&(this.completeViewDataMap=i.getCompleteViewDataMap(D),this.completeDateHeaderMap=r.getCompleteDateHeaderMap(D,this.completeViewDataMap),D.isGenerateTimePanelData&&(this.completeTimePanelMap=v.getCompleteTimePanelMap(D,this.completeViewDataMap))),this.viewDataMap=i.generateViewDataMap(this.completeViewDataMap,D),this.updateViewData(D),this._groupedDataMapProvider=new O4(this.viewDataGenerator,this.viewDataMap,this.completeViewDataMap,{isVerticalGrouping:D.isVerticalGrouping,viewType:D.viewType}),this.dateHeaderData=r.generateDateHeaderData(this.completeDateHeaderMap,this.completeViewDataMap,D),D.isGenerateTimePanelData&&(this.timePanelData=v.generateTimePanelData(this.completeTimePanelMap,D))}createGroupedDataMapProvider(){this._groupedDataMapProvider=new O4(this.viewDataGenerator,this.viewDataMap,this.completeViewDataMap,{isVerticalGrouping:this._options.isVerticalGrouping,viewType:this._options.viewType})}updateViewData(t){var e=this._transformRenderOptions(t);this.viewDataMapWithSelection=this.viewDataGenerator.markSelectedAndFocusedCells(this.viewDataMap,e),this.viewData=this.viewDataGenerator.getViewDataFromMap(this.completeViewDataMap,this.viewDataMapWithSelection,e)}_transformRenderOptions(t){var{groups:e,groupOrientation:i,groupByDate:r,isAllDayPanelVisible:v}=t,D=(0,Ti.Z)(t,xse);return(0,ui.Z)({},D,{startViewDate:this.viewDataGenerator._calculateStartViewDate(t),isVerticalGrouping:oT(e,i),isHorizontalGrouping:lw(e,i),isGroupedByDate:oie(e,i,r),isGroupedAllDayPanel:z6(e,i,v),groups:e,groupOrientation:i,isAllDayPanelVisible:v})}getGroupPanelData(t){var e=this._transformRenderOptions(t);if(e.groups.length>0){var i=this.getCellCount(e);return((n,t,e,i)=>{var r=1,v=n.map(D=>{for(var A=[],{data:z,items:Q,name:ue}=D,we=function(Ue){A.push(...Q.map((ut,It)=>{var{color:Gt,id:ln,text:En}=ut;return{id:ln,text:En,color:Gt,key:"".concat(Ue,"_").concat(ue,"_").concat(ln),resourceName:ue,data:z?.[It]}}))},Le=0;Le<r;Le+=1)we(Le);return r*=Q.length,A});return e&&(v=((n,t)=>[...new Array(t)].reduce((e,i,r)=>n.map((v,D)=>[...e[D]||[],...v.map((z,Q)=>(0,ui.Z)({},z,{key:"".concat(z.key,"_group_by_date_").concat(r),isFirstGroupCell:0===Q,isLastGroupCell:Q===v.length-1}))]),[]))(v,t)),{groupPanelItems:v,baseColSpan:i}})(e.groups,i,e.isGroupedByDate,e.isGroupedByDate?1:i)}}getGroupStartDate(t){return this._groupedDataMapProvider.getGroupStartDate(t)}getGroupEndDate(t){return this._groupedDataMapProvider.getGroupEndDate(t)}findGroupCellStartDate(t,e,i){return this._groupedDataMapProvider.findGroupCellStartDate(t,e,i,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}findAllDayGroupCellStartDate(t,e){return this._groupedDataMapProvider.findAllDayGroupCellStartDate(t,e)}findCellPositionInMap(t){return this._groupedDataMapProvider.findCellPositionInMap(t)}hasAllDayPanel(){var{viewData:t}=this.viewDataMap,{allDayPanel:e}=t.groupedData[0];return!t.isGroupedAllDayPanel&&e?.length>0}getCellsGroup(t){return this._groupedDataMapProvider.getCellsGroup(t)}getCompletedGroupsInfo(){return this._groupedDataMapProvider.getCompletedGroupsInfo()}getGroupIndices(){return this._groupedDataMapProvider.getGroupIndices()}getLastGroupCellPosition(t){return this._groupedDataMapProvider.getLastGroupCellPosition(t)}getRowCountInGroup(t){return this._groupedDataMapProvider.getRowCountInGroup(t)}getCellData(t,e,i,r){var v=i&&!this._options.isVerticalGrouping?this.viewDataMap.allDayPanelMap:this.viewDataMap.dateTableMap[t],D=r?v.length-1-e:e,{cellData:A}=v[D];return A}getCellsByGroupIndexAndAllDay(t,e){var i=this._getRowCountWithAllDayRows(),v=this._options.isVerticalGrouping?t*i:0,A=this._options.isAllDayPanelVisible&&!e?v+1:v;return this.completeViewDataMap.slice(A,(e?A:this._options.isVerticalGrouping?(t+1)*i-1:i)+1).map(Q=>Q.filter(ue=>{var{groupIndex:we}=ue;return t===we}))}getCellCountWithGroup(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,{dateTableGroupedMap:i}=this.groupedDataMap;return i.filter((r,v)=>v<=t).reduce((r,v)=>r+v[e].length,0)}hasGroupAllDayPanel(t){var e,i;return this._options.isVerticalGrouping?!(null===(i=this.groupedDataMap.dateTableGroupedMap[t])||void 0===i||!i[0][0].cellData.allDay):(null===(e=this.groupedDataMap.allDayPanelGroupedMap[t])||void 0===e?void 0:e.length)>0}isGroupIntersectDateInterval(t,e,i){var r=this.getGroupStartDate(t);return e<this.getGroupEndDate(t)&&i>r}findGlobalCellPosition(t){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,v=this._options.isAllDayPanelVisible,D=0;D<r.length;D+=1)for(var A=r[D],z=0;z<A.length;z+=1){var Q=A[z],{startDate:ue,endDate:we,groupIndex:Le,allDay:Ue}=Q;if(e===Le&&i===!!Ue&&this._compareDatesAndAllDay(t,ue,we,i))return{position:{columnIndex:z,rowIndex:v&&!this._options.isVerticalGrouping?D-1:D},cellData:Q}}}_compareDatesAndAllDay(t,e,i,r){var v=t.getTime(),D=te.Z.trimTime(t).getTime(),A=e.getTime(),z=i.getTime();return!r&&v>=A&&v<z||r&&D===A}getSkippedDaysCount(t,e,i,r){for(var{dateTableGroupedMap:v}=this._groupedDataMapProvider.groupedDataMap,D=v[t],A=0,z=0;z<D.length;z+=1)for(var Q=0;Q<D[z].length;Q+=1){var ue=D[z][Q].cellData;e.getTime()<ue.endDate.getTime()&&i.getTime()>ue.startDate.getTime()&&(A+=1)}var Le=te.Z.trimTime(D[D.length-1][D[0].length-1].cellData.startDate),Ue=Math.floor((i.getTime()-Le.getTime())/te.Z.dateToMilliseconds("day"));return r-A-(Ue>0?Ue:0)}getColumnsCount(){var{dateTableMap:t}=this.viewDataMap;return t?t[0].length:0}getViewEdgeIndices(t){return t?{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(t,e){var i=this.groupedDataMap.dateTableGroupedMap[t],D=i[0][0].position.columnIndex,A=i[0][i[0].length-1].position.columnIndex;return e?{firstColumnIndex:D,lastColumnIndex:A,firstRowIndex:0,lastRowIndex:0}:{firstColumnIndex:D,lastColumnIndex:A,firstRowIndex:i[0][0].position.rowIndex,lastRowIndex:i[i.length-1][0].position.rowIndex}}isSameCell(t,e){var{startDate:i,groupIndex:r,allDay:v,index:D}=t,{startDate:A,groupIndex:z,allDay:Q,index:ue}=e;return i.getTime()===A.getTime()&&r===z&&v===Q&&D===ue}getLastViewDate(){var t=this.completeViewDataMap,e=t.length-1;return t[e][t[e].length-1].endDate}getStartViewDate(){return this._options.startViewDate}getIntervalDuration(t){return this.viewDataGenerator._getIntervalDuration(t)}getLastCellEndDate(){return new Date(this.getLastViewDate().getTime()-te.Z.dateToMilliseconds("minute"))}getLastViewDateByEndDayHour(t){var e=this.getLastCellEndDate(),i=te.Z.dateTimeFromDecimal(t),r=new Date(e.setHours(i.hours,i.minutes));return this._adjustEndDateByDaylightDiff(e,r)}_adjustEndDateByDaylightDiff(t,e){var i=Xo.getDaylightOffsetInMs(t,e),r=new Date(e.getTime()-i);return new Date(r.getTime()-te.Z.dateToMilliseconds("minute"))}getCellCountInDay(t,e,i){return this.viewDataGenerator.getCellCountInDay(t,e,i)}getCellCount(t){return this.viewDataGenerator.getCellCount(t)}getRowCount(t){return this.viewDataGenerator.getRowCount(t)}getVisibleDayDuration(t,e,i){return this.viewDataGenerator.getVisibleDayDuration(t,e,i)}_getRowCountWithAllDayRows(){var t=this._options.isAllDayPanelVisible?1:0;return this.getRowCount(this._options)+t}getFirstDayOfWeek(t){return this.viewDataGenerator.getFirstDayOfWeek(t)}setViewOptions(t){this._options=this._transformRenderOptions(t)}getViewOptions(){return this._options}getViewPortGroupCount(){var{dateTableGroupedMap:t}=this.groupedDataMap;return t?.length||0}}var Dy=l(4691);class Gk extends Dy.Z{_setOptionsByReference(){super._setOptionsByReference(),this._optionsByReference=(0,ui.Z)({},this._optionsByReference,{dataCellTemplate:!0})}}var Ji=l(9056),ho=l(6084),wse=["children","className","colSpan","styles"],F4={};let Sse=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Ti.Z)(this.props,wse)}render(){return(n=>{var{props:{children:t,className:e,colSpan:i,styles:r}}=n;return(0,Ji.Wm)(1,"td",e,t,0,{style:(0,ho.jk)(r),colSpan:i})})({props:(0,ui.Z)({},this.props),restAttributes:this.restAttributes})}}return n.defaultProps=F4,n})();var Ose=["children","className","colSpan","styles"];let Tse=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Ti.Z)(this.props,Ose)}render(){return(n=>{var{props:{children:t,className:e,colSpan:i,styles:r}}=n;return(0,Ji.Wm)(1,"th",e,t,0,{style:(0,ho.jk)(r),colSpan:i})})({props:(0,ui.Z)({},this.props),restAttributes:this.restAttributes})}}return n.defaultProps=F4,n})();var Ise=["colSpan","isHeaderCell","width"],Ase={width:0,isHeaderCell:!1};let jk=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get style(){var{width:e}=this.props,{style:i}=this.restAttributes;return s6(e,i)}get restAttributes(){return(0,Ti.Z)(this.props,Ise)}render(){return(n=>{var{props:{colSpan:t,isHeaderCell:e},style:i}=n;return(0,Ji.Iz)(2,e?Tse:Sse,{className:"dx-scheduler-virtual-cell",styles:i,colSpan:t})})({props:(0,ui.Z)({},this.props),style:this.style,restAttributes:this.restAttributes})}}return n.defaultProps=Ase,n})();var Pse=["children","className","isHeaderRow","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","styles"],V4={className:"",leftVirtualCellWidth:0,rightVirtualCellWidth:0,isHeaderRow:!1};let t_=(()=>{class n extends ho.Ul{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(0,Ti.Z)(this.props,Pse)}render(){return(n=>{var{hasLeftVirtualCell:t,hasRightVirtualCell:e,props:{children:i,className:r,isHeaderRow:v,leftVirtualCellCount:D,leftVirtualCellWidth:A,rightVirtualCellCount:z,rightVirtualCellWidth:Q,styles:ue}}=n;return(0,Ji.Wm)(1,"tr",r,[t&&(0,Ji.Iz)(2,jk,{width:A,colSpan:D,isHeaderCell:v}),i,e&&(0,Ji.Iz)(2,jk,{width:Q,colSpan:z,isHeaderCell:v})],0,{style:(0,ho.jk)(ue)})})({props:(0,ui.Z)({},this.props),hasLeftVirtualCell:this.hasLeftVirtualCell,hasRightVirtualCell:this.hasRightVirtualCell,restAttributes:this.restAttributes})}}return n.defaultProps=V4,n})();var Rse=["cellsCount","children","className","height","isHeaderRow","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","styles"],Bse=Object.create(Object.prototype,(0,ui.Z)(Object.getOwnPropertyDescriptors(V4),Object.getOwnPropertyDescriptors({leftVirtualCellWidth:0,rightVirtualCellWidth:0,cellsCount:1})));let N4=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={},this.__getterCache={}}get style(){var{height:e}=this.props,{style:i}=this.restAttributes;return wk(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(0,Ti.Z)(this.props,Rse)}componentWillUpdate(e,i,r){this.props.cellsCount!==e.cellsCount&&(this.__getterCache.virtualCells=void 0)}render(){return(n=>{var{classes:t,props:{leftVirtualCellCount:e,leftVirtualCellWidth:i,rightVirtualCellCount:r,rightVirtualCellWidth:v},style:D,virtualCells:A}=n;return(0,Ji.Iz)(2,t_,{styles:D,className:t,leftVirtualCellWidth:i,rightVirtualCellWidth:v,leftVirtualCellCount:e,rightVirtualCellCount:r,children:A.map((z,Q)=>(0,Ji.Iz)(2,jk,null,Q.toString()))})})({props:(0,ui.Z)({},this.props),style:this.style,classes:this.classes,virtualCells:this.virtualCells,restAttributes:this.restAttributes})}}return n.defaultProps=Bse,n})();var Fse=["bottomVirtualRowHeight","children","className","height","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","tableRef","topVirtualRowHeight","virtualCellsCount","width"],Nse={className:"",topVirtualRowHeight:0,bottomVirtualRowHeight:0,leftVirtualCellWidth:0,rightVirtualCellWidth:0,virtualCellsCount:0};let $k=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={},this.elementRef=(0,Ji.Vf)()}get style(){var{height:e,width:i}=this.props,{style:r}=this.restAttributes,v=wk(e,r);return s6(i,v)}get hasTopVirtualRow(){var{topVirtualRowHeight:e}=this.props;return!!e}get hasBottomVirtualRow(){var{bottomVirtualRowHeight:e}=this.props;return!!e}get restAttributes(){return(0,Ti.Z)(this.props,Fse)}render(){return(n=>{var{hasBottomVirtualRow:t,hasTopVirtualRow:e,props:{bottomVirtualRowHeight:i,children:r,className:v,leftVirtualCellCount:D,leftVirtualCellWidth:A,rightVirtualCellCount:z,rightVirtualCellWidth:Q,tableRef:ue,topVirtualRowHeight:we,virtualCellsCount:Le},style:Ue}=n;return(0,Ji.Wm)(1,"table",v,(0,Ji.Wm)(1,"tbody",null,[e&&(0,Ji.Iz)(2,N4,{height:we,cellsCount:Le,leftVirtualCellWidth:A,rightVirtualCellWidth:Q,leftVirtualCellCount:D,rightVirtualCellCount:z}),r,t&&(0,Ji.Iz)(2,N4,{height:i,cellsCount:Le,leftVirtualCellWidth:A,rightVirtualCellWidth:Q,leftVirtualCellCount:D,rightVirtualCellCount:z})],0),2,{style:(0,ho.jk)(Ue)},null,ue)})({props:(0,ui.Z)({},this.props),elementRef:this.elementRef,style:this.style,hasTopVirtualRow:this.hasTopVirtualRow,hasBottomVirtualRow:this.hasBottomVirtualRow,restAttributes:this.restAttributes})}}return n.defaultProps=Nse,n})();var Zse=["allDay","ariaLabel","children","className","contentTemplateProps","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text"],bT={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 Yk=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get classes(){var{className:e,isFirstGroupCell:i,isLastGroupCell:r}=this.props;return l6(i,r,e)}get restAttributes(){return(0,Ti.Z)(this.props,Zse)}render(){return(n=>(0,Ji.Wm)(1,"td",n.classes,n.props.children,0,{"aria-label":n.props.ariaLabel}))({props:(0,ui.Z)({},this.props),classes:this.classes,restAttributes:this.restAttributes})}}return n.defaultProps=bT,n})();var Gse=["allDay","ariaLabel","children","className","contentTemplateProps","dataCellTemplate","endDate","firstDayOfMonth","groupIndex","groups","index","isFirstGroupCell","isFocused","isLastGroupCell","isSelected","otherMonth","startDate","text","today"],Xk=Object.create(Object.prototype,(0,ui.Z)(Object.getOwnPropertyDescriptors(bT),Object.getOwnPropertyDescriptors({otherMonth:!1,today:!1,firstDayOfMonth:!1,isSelected:!1,isFocused:!1}))),Yse=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let wT=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={},this.__getterCache={}}get classes(){var{allDay:e,className:i,isFocused:r,isSelected:v}=this.props;return(0,Ih.G)({"dx-scheduler-cell-sizes-horizontal":!0,"dx-scheduler-cell-sizes-vertical":!e,"dx-scheduler-date-table-cell":!e,"dx-state-focused":v,"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:v,groups:D,index:A,startDate:z}=this.props;return{data:(0,ui.Z)({startDate:z,endDate:r,groups:D,groupIndex:D?v:void 0,text:"",allDay:!!e||void 0},i.data),index:A}})()}get ariaLabel(){return this.props.isSelected?"Add appointment":void 0}get restAttributes(){return(0,Ti.Z)(this.props,Gse)}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(n=>{var{ariaLabel:t,classes:e,dataCellTemplateProps:i,props:{children:r,dataCellTemplate:v,isFirstGroupCell:D,isLastGroupCell:A}}=n;return(0,Ji.Iz)(2,Yk,{isFirstGroupCell:D,isLastGroupCell:A,className:e,ariaLabel:t,children:[!v&&r,!!v&&v({index:i.index,data:i.data})]})})({props:(0,ui.Z)({},e,{dataCellTemplate:Yse(e.dataCellTemplate)}),classes:this.classes,dataCellTemplateProps:this.dataCellTemplateProps,ariaLabel:this.ariaLabel,restAttributes:this.restAttributes})}}return n.defaultProps=Xk,n})();var Xse=["allDay","ariaLabel","children","className","contentTemplateProps","dataCellTemplate","endDate","firstDayOfMonth","groupIndex","groups","index","isFirstGroupCell","isFocused","isLastGroupCell","isSelected","otherMonth","startDate","text","today"],Jse=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let Qse=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Ti.Z)(this.props,Xse)}render(){var e=this.props;return(n=>{var{props:{className:t,dataCellTemplate:e,endDate:i,groupIndex:r,groups:v,index:D,isFirstGroupCell:A,isFocused:z,isLastGroupCell:Q,isSelected:ue,startDate:we}}=n;return(0,Ji.Iz)(2,wT,{className:"".concat("dx-scheduler-all-day-table-cell"," ").concat(t),startDate:we,endDate:i,groups:v,groupIndex:r,allDay:!0,isFirstGroupCell:A,isLastGroupCell:Q,index:D,dataCellTemplate:e,isSelected:ue,isFocused:z})})({props:(0,ui.Z)({},e,{dataCellTemplate:Jse(e.dataCellTemplate)}),restAttributes:this.restAttributes})}}return n.defaultProps=Xk,n})();var ele=["className","dataCellTemplate","isVerticalGroupOrientation","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","viewData"],nle={viewData:Object.freeze([]),isVerticalGroupOrientation:!1,className:"",leftVirtualCellWidth:0,rightVirtualCellWidth:0},ile=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let H4=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get classes(){var{className:e}=this.props;return(0,Ih.G)({"dx-scheduler-all-day-table-row":!0,[e]:!!e})}get restAttributes(){return(0,Ti.Z)(this.props,ele)}render(){var e=this.props;return(n=>(0,Ji.Iz)(2,t_,{leftVirtualCellWidth:n.props.leftVirtualCellWidth,rightVirtualCellWidth:n.props.rightVirtualCellWidth,leftVirtualCellCount:n.props.leftVirtualCellCount,rightVirtualCellCount:n.props.rightVirtualCellCount,className:n.classes,children:n.props.viewData.map(t=>{var{endDate:e,groupIndex:i,groups:r,index:v,isFirstGroupCell:D,isFocused:A,isLastGroupCell:z,isSelected:Q,key:ue,startDate:we}=t;return(0,Ji.Iz)(2,Qse,{isFirstGroupCell:!n.props.isVerticalGroupOrientation&&D,isLastGroupCell:!n.props.isVerticalGroupOrientation&&z,startDate:we,endDate:e,groups:r,groupIndex:i,index:v,dataCellTemplate:n.props.dataCellTemplate,isSelected:Q,isFocused:A},ue)})}))({props:(0,ui.Z)({},e,{dataCellTemplate:ile(e.dataCellTemplate)}),classes:this.classes,restAttributes:this.restAttributes})}}return n.defaultProps=nle,n})();var qk={viewData:Object.freeze({groupedData:[],leftVirtualCellCount:0,rightVirtualCellCount:0,topVirtualRowCount:0,bottomVirtualRowCount:0}),leftVirtualCellWidth:0,rightVirtualCellWidth:0,topVirtualRowHeight:0,bottomVirtualRowHeight:0,addDateTableClass:!0,addVerticalSizesClassToRows:!0},rle=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","cellTemplate","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","viewData","width"],ale=Object.create(Object.prototype,(0,ui.Z)(Object.getOwnPropertyDescriptors(qk),Object.getOwnPropertyDescriptors({cellTemplate:wT}))),z4=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let sle=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get rowClasses(){var{addVerticalSizesClassToRows:e}=this.props;return(0,Ih.G)({"dx-scheduler-date-table-row":!0,"dx-scheduler-cell-sizes-vertical":e})}get restAttributes(){return(0,Ti.Z)(this.props,rle)}render(){var e=this.props;return(n=>{var{props:{cellTemplate:t,dataCellTemplate:e,viewData:i},rowClasses:r}=n;return(0,Ji.xJ)(i.groupedData.map(v=>{var{allDayPanel:D,dateTable:A,isGroupedAllDayPanel:z,key:Q}=v;return(0,Ji.xJ)([z&&(0,Ji.Iz)(2,H4,{viewData:D,dataCellTemplate:e,isVerticalGroupOrientation:!0,leftVirtualCellWidth:i.leftVirtualCellWidth,rightVirtualCellWidth:i.rightVirtualCellWidth,leftVirtualCellCount:i.leftVirtualCellCount,rightVirtualCellCount:i.rightVirtualCellCount}),A.map(ue=>{var{cells:we,key:Le}=ue;return(0,Ji.Iz)(2,t_,{className:r,leftVirtualCellWidth:i.leftVirtualCellWidth,rightVirtualCellWidth:i.rightVirtualCellWidth,leftVirtualCellCount:i.leftVirtualCellCount,rightVirtualCellCount:i.rightVirtualCellCount,children:we.map(Ue=>{var{endDate:ut,firstDayOfMonth:It,groupIndex:Gt,groups:ln,index:En,isFirstGroupCell:on,isFocused:Nt,isLastGroupCell:Jt,isSelected:un,key:Mn,otherMonth:Kn,startDate:Xn,text:si,today:pi}=Ue;return t({isFirstGroupCell:on,isLastGroupCell:Jt,startDate:Xn,endDate:ut,groups:ln,groupIndex:Gt,index:En,dataCellTemplate:e,key:Mn,text:si,today:pi,otherMonth:Kn,firstDayOfMonth:It,isSelected:un,isFocused:Nt})})},Le)})],0,Q)}),0)})({props:(0,ui.Z)({},e,{cellTemplate:z4(e.cellTemplate),dataCellTemplate:z4(e.dataCellTemplate)}),rowClasses:this.rowClasses,restAttributes:this.restAttributes})}}return n.defaultProps=ale,n})();var lle=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","cellTemplate","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","tableRef","topVirtualRowHeight","viewData","width"],W4=Object.create(Object.prototype,(0,ui.Z)(Object.getOwnPropertyDescriptors(qk),Object.getOwnPropertyDescriptors({cellTemplate:wT}))),U4=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let Z4=(()=>{class n extends ho.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,ho.gt)()]}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(0,Ti.Z)(this.props,lle)}render(){var e=this.props;return(n=>{var{bottomVirtualRowHeight:t,classes:e,leftVirtualCellWidth:i,props:{addVerticalSizesClassToRows:r,cellTemplate:v,dataCellTemplate:D,groupOrientation:A,tableRef:z,viewData:Q,width:ue},restAttributes:we,rightVirtualCellWidth:Le,topVirtualRowHeight:Ue,virtualCellsCount:ut}=n;return(0,Ji.vs)((0,Ji.Iz)(2,$k,(0,ui.Z)({},we,{tableRef:z,topVirtualRowHeight:Ue,bottomVirtualRowHeight:t,leftVirtualCellWidth:i,rightVirtualCellWidth:Le,leftVirtualCellCount:Q.leftVirtualCellCount,rightVirtualCellCount:Q.rightVirtualCellCount,virtualCellsCount:ut,className:e,width:ue,children:(0,Ji.Iz)(2,sle,{cellTemplate:v,viewData:Q,dataCellTemplate:D,leftVirtualCellWidth:i,rightVirtualCellWidth:Le,groupOrientation:A,addVerticalSizesClassToRows:r})})))})({props:(0,ui.Z)({},e,{cellTemplate:U4(e.cellTemplate),dataCellTemplate:U4(e.dataCellTemplate)}),classes:this.classes,topVirtualRowHeight:this.topVirtualRowHeight,bottomVirtualRowHeight:this.bottomVirtualRowHeight,leftVirtualCellWidth:this.leftVirtualCellWidth,rightVirtualCellWidth:this.rightVirtualCellWidth,virtualCellsCount:this.virtualCellsCount,restAttributes:this.restAttributes})}}return n.defaultProps=W4,n})();class K4 extends Gk{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["cellTemplate","dataCellTemplate"],props:["cellTemplate","viewData","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","bottomVirtualRowHeight","addDateTableClass","addVerticalSizesClassToRows","width","dataCellTemplate"]}}get _viewComponent(){return Z4}}(0,T.Z)("dxDateTableLayoutBase",K4);var dle=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","tableRef","topVirtualRowHeight","viewData","width"],hle=qk,ple=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let gle=(()=>{class n extends ho.DZ{constructor(e){super(e),this.state={},this.__getterCache={}}createEffects(){return[(0,ho.gt)()]}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(0,Ti.Z)(this.props,dle)}componentWillUpdate(e,i,r){super.componentWillUpdate(),this.props.viewData!==e.viewData&&(this.__getterCache.allDayPanelData=void 0)}render(){var e=this.props;return(n=>{var{allDayPanelData:t,emptyTableHeight:e,props:{dataCellTemplate:i,tableRef:r,viewData:v,width:D}}=n;return(0,Ji.Iz)(2,$k,{className:"dx-scheduler-all-day-table",height:e,width:D,tableRef:r,children:(0,Ji.Iz)(2,H4,{viewData:t,leftVirtualCellWidth:v.leftVirtualCellWidth,rightVirtualCellWidth:v.rightVirtualCellWidth,leftVirtualCellCount:v.leftVirtualCellCount,rightVirtualCellCount:v.rightVirtualCellCount,dataCellTemplate:i})})})({props:(0,ui.Z)({},e,{dataCellTemplate:ple(e.dataCellTemplate)}),allDayPanelData:this.allDayPanelData,emptyTableHeight:this.emptyTableHeight,restAttributes:this.restAttributes})}}return n.defaultProps=hle,n})();class G4 extends Gk{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["dataCellTemplate"],props:["viewData","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","bottomVirtualRowHeight","addDateTableClass","addVerticalSizesClassToRows","width","dataCellTemplate"]}}get _viewComponent(){return gle}}(0,T.Z)("dxAllDayTable",G4);var _le={};let j4=(()=>{class n extends ho.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,ho.gt)()]}get text(){return wn.Z.format("dxScheduler-allDay")}get restAttributes(){var e=this.props,i=(0,ui.Z)({},(function fle(n){if(null==n)throw new TypeError("Cannot destructure "+n)}(e),e));return i}render(){return(n=>(0,Ji.Wm)(1,"div","dx-scheduler-all-day-title",n.text,0))({props:(0,ui.Z)({},this.props),text:this.text,restAttributes:this.restAttributes})}}return n.defaultProps=_le,n})();class $4 extends Dy.Z{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:[],props:[]}}get _viewComponent(){return j4}}(0,T.Z)("dxAllDayPanelTitle",$4);class vle extends Dy.Z{_setOptionsByReference(){super._setOptionsByReference(),this._optionsByReference=(0,ui.Z)({},this._optionsByReference,{timeCellTemplate:!0})}}var yle=["allDay","ariaLabel","children","className","contentTemplateProps","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text","timeCellTemplate"],xle=bT,ble=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let wle=(()=>{class n extends ho.Ul{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:v,text:D}=this.props;return{data:{date:v,groups:i,groupIndex:e,text:D},index:r}})()}get restAttributes(){return(0,Ti.Z)(this.props,yle)}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(n=>{var{props:{className:t,isFirstGroupCell:e,isLastGroupCell:i,text:r,timeCellTemplate:v},timeCellTemplateProps:D}=n;return(0,Ji.Iz)(2,Yk,{isFirstGroupCell:e,isLastGroupCell:i,className:"dx-scheduler-time-panel-cell dx-scheduler-cell-sizes-vertical ".concat(t),children:[!v&&(0,Ji.Wm)(1,"div",null,r,0),!!v&&v({index:D.index,data:D.data})]})})({props:(0,ui.Z)({},e,{timeCellTemplate:ble(e.timeCellTemplate)}),timeCellTemplateProps:this.timeCellTemplateProps,restAttributes:this.restAttributes})}}return n.defaultProps=xle,n})();var Ele=["groupOrientation","tableRef","timeCellTemplate","timePanelData"],Ole={timePanelData:Object.freeze({groupedData:[],leftVirtualCellCount:0,rightVirtualCellCount:0,topVirtualRowCount:0,bottomVirtualRowCount:0})},Dle=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let Tle=(()=>{class n extends ho.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,ho.gt)()]}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(0,Ti.Z)(this.props,Ele)}render(){var e=this.props;return(n=>{var{bottomVirtualRowHeight:t,props:{tableRef:e,timeCellTemplate:i,timePanelData:r},restAttributes:v,topVirtualRowHeight:D}=n;return(0,Ji.vs)((0,Ji.Iz)(2,$k,(0,ui.Z)({},v,{topVirtualRowHeight:D,bottomVirtualRowHeight:t,virtualCellsCount:1,className:"dx-scheduler-time-panel",tableRef:e,children:r.groupedData.map(A=>{var{dateTable:z,groupIndex:Q,isGroupedAllDayPanel:ue,key:we}=A;return(0,Ji.xJ)([ue&&(0,Ji.Iz)(2,t_,{children:(0,Ji.Iz)(2,Yk,{className:"dx-scheduler-time-panel-title-cell",children:(0,Ji.Iz)(2,j4)})}),z.map(Le=>{var{groups:Ue,index:ut,isFirstGroupCell:It,isLastGroupCell:Gt,key:ln,startDate:En,text:on}=Le;return(0,Ji.Iz)(2,t_,{className:"dx-scheduler-time-panel-row",children:(0,Ji.Iz)(2,wle,{startDate:En,text:on,groups:Ue,groupIndex:Q,isFirstGroupCell:It,isLastGroupCell:Gt,index:ut,timeCellTemplate:i})},ln)})],0,we)})})))})({props:(0,ui.Z)({},e,{timeCellTemplate:Dle(e.timeCellTemplate)}),topVirtualRowHeight:this.topVirtualRowHeight,bottomVirtualRowHeight:this.bottomVirtualRowHeight,restAttributes:this.restAttributes})}}return n.defaultProps=Ole,n})();class Y4 extends vle{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["timeCellTemplate"],props:["groupOrientation","timePanelData","timeCellTemplate"]}}get _viewComponent(){return Tle}}(0,T.Z)("dxTimePanelTableLayout",Y4);class Ile extends Dy.Z{_setOptionsByReference(){super._setOptionsByReference(),this._optionsByReference=(0,ui.Z)({},this._optionsByReference,{resourceCellTemplate:!0})}}var X4={groupPanelData:Object.freeze({groupPanelItems:[],baseColSpan:1}),groupByDate:!1},q4={id:0,text:"",data:Object.freeze({id:0}),className:""},Mle=["cellTemplate","className","color","data","id","index","text"],Ple=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let kle=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Ti.Z)(this.props,Mle)}render(){var e=this.props;return(n=>{var t=n.props.cellTemplate;return(0,Ji.Wm)(1,"div","dx-scheduler-group-header ".concat(n.props.className),[!!n.props.cellTemplate&&t({data:{data:n.props.data,id:n.props.id,color:n.props.color,text:n.props.text},index:n.props.index}),!n.props.cellTemplate&&(0,Ji.Wm)(1,"div","dx-scheduler-group-header-content",n.props.text,0)],0)})({props:(0,ui.Z)({},e,{cellTemplate:Ple(e.cellTemplate)}),restAttributes:this.restAttributes})}}return n.defaultProps=q4,n})();var J4={groupItems:Object.freeze([]),className:""},Rle=["cellTemplate","className","groupItems"],Ble=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let Fle=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Ti.Z)(this.props,Rle)}render(){var e=this.props;return(n=>(0,Ji.Wm)(1,"div","dx-scheduler-group-row ".concat(n.props.className),n.props.groupItems.map((t,e)=>{var{color:i,data:r,id:v,key:D,text:A}=t;return(0,Ji.Iz)(2,kle,{text:A,id:v,data:r,index:e,color:i,cellTemplate:n.props.cellTemplate},D)}),0))({props:(0,ui.Z)({},e,{cellTemplate:Ble(e.cellTemplate)}),restAttributes:this.restAttributes})}}return n.defaultProps=J4,n})();var Q4=X4,Vle=["className","elementRef","groupByDate","groupPanelData","height","resourceCellTemplate","styles"],Hle=Q4,zle=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let Wle=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get style(){var{height:e,styles:i}=this.props;return wk(e,i)}get restAttributes(){return(0,Ti.Z)(this.props,Vle)}render(){var e=this.props;return(n=>{var{props:{className:t,elementRef:e,groupPanelData:i,resourceCellTemplate:r},style:v}=n;return(0,Ji.Wm)(1,"div",t,(0,Ji.Wm)(1,"div","dx-scheduler-group-flex-container",i.groupPanelItems.map(D=>(0,Ji.Iz)(2,Fle,{groupItems:D,cellTemplate:r},D[0].key)),0),2,{style:(0,ho.jk)(v)},null,e)})({props:(0,ui.Z)({},e,{resourceCellTemplate:zle(e.resourceCellTemplate)}),style:this.style,restAttributes:this.restAttributes})}}return n.defaultProps=Hle,n})();var Ule=["cellTemplate","className","colSpan","color","data","id","index","isFirstGroupCell","isLastGroupCell","text"],Kle=Object.create(Object.prototype,(0,ui.Z)(Object.getOwnPropertyDescriptors(q4),Object.getOwnPropertyDescriptors({isFirstGroupCell:!1,isLastGroupCell:!1,colSpan:1}))),Gle=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let jle=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get classes(){var{className:e,isFirstGroupCell:i,isLastGroupCell:r}=this.props;return(0,Ih.G)({"dx-scheduler-group-header":!0,"dx-scheduler-first-group-cell":i,"dx-scheduler-last-group-cell":r,[e]:!!e})}get restAttributes(){return(0,Ti.Z)(this.props,Ule)}render(){var e=this.props;return(n=>{var{classes:t,props:{cellTemplate:e,colSpan:i,color:r,data:v,id:D,index:A,text:z}}=n;return(0,Ji.Wm)(1,"th",t,(0,Ji.Wm)(1,"div","dx-scheduler-group-header-content",[!!e&&e({data:{data:v,id:D,color:r,text:z},index:A}),!e&&(0,Ji.Wm)(1,"div",null,z,0)],0),2,{colSpan:i})})({props:(0,ui.Z)({},e,{cellTemplate:Gle(e.cellTemplate)}),classes:this.classes,restAttributes:this.restAttributes})}}return n.defaultProps=Kle,n})();var $le=["cellTemplate","className","groupItems"],Xle=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let qle=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Ti.Z)(this.props,$le)}render(){var e=this.props;return(n=>{var{props:{cellTemplate:t,className:e,groupItems:i}}=n;return(0,Ji.Wm)(1,"tr","dx-scheduler-group-row ".concat(e),i.map((r,v)=>{var{colSpan:D,color:A,data:z,id:Q,isFirstGroupCell:ue,isLastGroupCell:we,key:Le,text:Ue}=r;return(0,Ji.Iz)(2,jle,{text:Ue,id:Q,data:z,index:v,color:A,colSpan:D,isFirstGroupCell:!!ue,isLastGroupCell:!!we,cellTemplate:t},Le)}),0)})({props:(0,ui.Z)({},e,{cellTemplate:Xle(e.cellTemplate)}),restAttributes:this.restAttributes})}}return n.defaultProps=J4,n})();var Jle=["className","elementRef","groupByDate","groupPanelData","height","resourceCellTemplate","styles"],eue=Q4,tue=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let nue=(()=>{class n extends ho.Ul{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,v=r.reduceRight((D,A,z)=>{var Q=D,ue=A.length;return Q[z]=(z===r.length-1?ue:r[z+1].length)/ue*(z===r.length-1?i:D[z+1]),Q},[...new Array(r.length)]);return r.map((D,A)=>{var z=v[A];return D.map(Q=>(0,ui.Z)({},Q,{colSpan:z}))})})()}get restAttributes(){return(0,Ti.Z)(this.props,Jle)}componentWillUpdate(e,i,r){this.props.groupPanelData!==e.groupPanelData&&(this.__getterCache.groupPanelItems=void 0)}render(){var e=this.props;return(n=>{var{groupPanelItems:t,props:{resourceCellTemplate:e}}=n;return(0,Ji.xJ)(t.map(i=>(0,Ji.Iz)(2,qle,{groupItems:i,cellTemplate:e},i[0].key)),0)})({props:(0,ui.Z)({},e,{resourceCellTemplate:tue(e.resourceCellTemplate)}),groupPanelItems:this.groupPanelItems,restAttributes:this.restAttributes})}}return n.defaultProps=eue,n})();var iue=["className","elementRef","groupByDate","groupOrientation","groupPanelData","groups","height","resourceCellTemplate"],eH=Object.create(Object.prototype,(0,ui.Z)(Object.getOwnPropertyDescriptors(X4),Object.getOwnPropertyDescriptors({groups:Object.freeze([]),groupOrientation:o6}))),oue=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let Jk=(()=>{class n extends ho.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,ho.gt)()]}get isVerticalLayout(){var{groupOrientation:e,groups:i}=this.props;return oT(i,e)}get restAttributes(){return(0,Ti.Z)(this.props,iue)}render(){var e=this.props;return(n=>{var{isVerticalLayout:t,props:{className:e,elementRef:i,groupPanelData:r,height:v,resourceCellTemplate:D},restAttributes:A}=n;return(0,Ji.Iz)(2,t?Wle:nue,{height:v,resourceCellTemplate:D,className:e,groupPanelData:r,elementRef:i,styles:A.style})})({props:(0,ui.Z)({},e,{resourceCellTemplate:oue(e.resourceCellTemplate)}),isVerticalLayout:this.isVerticalLayout,restAttributes:this.restAttributes})}}return n.defaultProps=eH,n})();class tH extends Ile{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["resourceCellTemplate"],props:["groups","groupOrientation","groupPanelData","groupByDate","height","className","resourceCellTemplate"]}}get _viewComponent(){return Jk}}(0,T.Z)("dxGroupPanel",tH);class nH extends Dy.Z{_setOptionsByReference(){super._setOptionsByReference(),this._optionsByReference=(0,ui.Z)({},this._optionsByReference,{dateHeaderData:!0,resourceCellTemplate:!0,dateCellTemplate:!0,timeCellTemplate:!0})}}var aue=["splitText","text"],lue={text:"",splitText:!1};let uue=(()=>{class n extends ho.Ul{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(0,Ti.Z)(this.props,aue)}componentWillUpdate(e,i,r){this.props.text!==e.text&&(this.__getterCache.textParts=void 0)}render(){return(n=>{var{props:{splitText:t,text:e},textParts:i}=n;return(0,Ji.xJ)(t?i.map(r=>(0,Ji.Wm)(1,"span","dx-scheduler-header-panel-cell-date",r,0)):e,0)})({props:(0,ui.Z)({},this.props),textParts:this.textParts,restAttributes:this.restAttributes})}}return n.defaultProps=lue,n})();var due=["allDay","ariaLabel","children","className","colSpan","contentTemplateProps","dateCellTemplate","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","isTimeCellTemplate","isWeekDayCell","splitText","startDate","text","timeCellTemplate","today"],hue=Object.create(Object.prototype,(0,ui.Z)(Object.getOwnPropertyDescriptors(bT),Object.getOwnPropertyDescriptors({today:!1,colSpan:1,isWeekDayCell:!1,splitText:!1,isTimeCellTemplate:!1}))),iH=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let rH=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get classes(){var{className:e,isFirstGroupCell:i,isLastGroupCell:r,isWeekDayCell:v,today:D}=this.props,A=(0,Ih.G)({"dx-scheduler-header-panel-cell":!0,"dx-scheduler-cell-sizes-horizontal":!0,"dx-scheduler-header-panel-current-time-cell":D,"dx-scheduler-header-panel-week-cell":v,[e]:!!e});return l6(i,r,A)}get useTemplate(){var{dateCellTemplate:e,isTimeCellTemplate:i,timeCellTemplate:r}=this.props;return!i&&!!e||i&&!!r}get restAttributes(){return(0,Ti.Z)(this.props,due)}render(){var e=this.props;return(n=>{var{classes:t,props:{colSpan:e,dateCellTemplate:i,groupIndex:r,groups:v,index:D,isTimeCellTemplate:A,splitText:z,startDate:Q,text:ue,timeCellTemplate:we},useTemplate:Le}=n;return(0,Ji.Wm)(1,"th",t,Le?(0,Ji.xJ)([A&&we&&we({data:{date:Q,text:ue,groups:v,groupIndex:r},index:D}),!A&&i&&i({data:{date:Q,text:ue,groups:v,groupIndex:r},index:D})],0):(0,Ji.Iz)(2,uue,{splitText:z,text:ue}),0,{colSpan:e,title:ue})})({props:(0,ui.Z)({},e,{timeCellTemplate:iH(e.timeCellTemplate),dateCellTemplate:iH(e.dateCellTemplate)}),classes:this.classes,useTemplate:this.useTemplate,restAttributes:this.restAttributes})}}return n.defaultProps=hue,n})();const oH=()=>{var n=(0,N.Vk)();return{isCompact:(0,N.f5)(n),isMaterial:(0,N.x2)(n)}};var gue=["dateCellTemplate","dateHeaderData","groupByDate","groupOrientation","groups","timeCellTemplate"],{isMaterial:fue}=oH(),aH={groupOrientation:"horizontal",groupByDate:!1,groups:Object.freeze([])},sH=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let _ue=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get isHorizontalGrouping(){var{groupByDate:e,groupOrientation:i,groups:r}=this.props;return lw(r,i)&&!e}get restAttributes(){return(0,Ti.Z)(this.props,gue)}render(){var e=this.props;return(n=>{var{isHorizontalGrouping:t,props:{dateCellTemplate:e,dateHeaderData:i}}=n,{dataMap:r,leftVirtualCellCount:v,leftVirtualCellWidth:D,rightVirtualCellCount:A,rightVirtualCellWidth:z}=i;return(0,Ji.xJ)(r.map((Q,ue)=>(0,Ji.Iz)(2,t_,{className:"dx-scheduler-header-row",leftVirtualCellWidth:D,leftVirtualCellCount:v,rightVirtualCellWidth:z,rightVirtualCellCount:A,isHeaderRow:!0,children:Q.map(we=>{var{colSpan:Le,endDate:Ue,groupIndex:ut,groups:It,index:Gt,isFirstGroupCell:ln,isLastGroupCell:En,key:on,startDate:Nt,text:Jt,today:un}=we;return(0,Ji.Iz)(2,rH,{startDate:Nt,endDate:Ue,groups:t?It:void 0,groupIndex:t?ut:void 0,today:un,index:Gt,text:Jt,isFirstGroupCell:ln,isLastGroupCell:En,dateCellTemplate:e,colSpan:Le,splitText:fue},on)})},ue.toString())),0)})({props:(0,ui.Z)({},e,{dateCellTemplate:sH(e.dateCellTemplate),timeCellTemplate:sH(e.timeCellTemplate)}),isHorizontalGrouping:this.isHorizontalGrouping,restAttributes:this.restAttributes})}}return n.defaultProps=aH,n})();var vue=["className","dateCellTemplate","dateHeaderData","dateHeaderTemplate","elementRef","groupByDate","groupOrientation","groupPanelData","groups","height","isRenderDateHeader","resourceCellTemplate","timeCellTemplate"],lH=Object.create(Object.prototype,(0,ui.Z)(Object.getOwnPropertyDescriptors(eH),Object.getOwnPropertyDescriptors({isRenderDateHeader:!0,dateHeaderTemplate:_ue}))),ET=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let uH=(()=>{class n extends ho.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,ho.gt)()]}get isHorizontalGrouping(){var{groupOrientation:e,groups:i}=this.props;return lw(i,e)}get restAttributes(){return(0,Ti.Z)(this.props,vue)}render(){var e=this.props;return(n=>{var{isHorizontalGrouping:t,props:{dateCellTemplate:e,dateHeaderData:i,dateHeaderTemplate:r,groupByDate:v,groupOrientation:D,groupPanelData:A,groups:z,isRenderDateHeader:Q,resourceCellTemplate:ue,timeCellTemplate:we}}=n;return(0,Ji.Wm)(1,"thead",null,[t&&!v&&(0,Ji.Iz)(2,Jk,{groupPanelData:A,groups:z,groupByDate:v,groupOrientation:D,resourceCellTemplate:ue}),Q&&r({groupByDate:v,dateHeaderData:i,groupOrientation:D,groups:z,dateCellTemplate:e,timeCellTemplate:we}),v&&(0,Ji.Iz)(2,Jk,{groupPanelData:A,groups:z,groupByDate:v,groupOrientation:D,resourceCellTemplate:ue})],0)})({props:(0,ui.Z)({},e,{dateCellTemplate:ET(e.dateCellTemplate),timeCellTemplate:ET(e.timeCellTemplate),dateHeaderTemplate:ET(e.dateHeaderTemplate),resourceCellTemplate:ET(e.resourceCellTemplate)}),isHorizontalGrouping:this.isHorizontalGrouping,restAttributes:this.restAttributes})}}return n.defaultProps=lH,n})();class Qk extends nH{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 uH}}(0,T.Z)("dxHeaderPanelLayout",Qk),te.Z.dateToMilliseconds("day"),te.Z.dateToMilliseconds("hour");class Oue{constructor(t){this._viewDataProvider=t,this._focusedCell=null,this._selectedCells=null,this._firstSelectedCell=null,this._prevFocusedCell=null,this._prevSelectedCells=null}get viewDataProvider(){return this._viewDataProvider}get focusedCell(){var t=this._focusedCell;if(t){var{groupIndex:e,startDate:i,allDay:r}=t;return{coordinates:this.viewDataProvider.findCellPositionInMap({groupIndex:e,startDate:i,isAllDay:r,index:t.index}),cellData:t}}}setFocusedCell(t,e,i){if(t>=0){var r=this._viewDataProvider.getCellData(t,e,i);this._focusedCell=r}}setSelectedCells(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this._viewDataProvider,{rowIndex:r,columnIndex:v,allDay:D}=t;if(!(r<0)){var A=e?i.getCellData(e.rowIndex,e.columnIndex,e.allDay):this._firstSelectedCell,z=i.getCellData(r,v,D);this._firstSelectedCell=A,this._selectedCells=((n,t,e,i)=>{var r=t,v=e;r.startDate.getTime()>v.startDate.getTime()&&([r,v]=[v,r]);var{groupIndex:D,index:A,startDate:z}=r,{index:Q,startDate:ue}=v,Le=n.getCellsByGroupIndexAndAllDay(D??0,i).reduce((ut,It)=>{var ln=((n,t)=>{var{firstDate:e,firstIndex:i,lastDate:r,lastIndex:v}=t,D=te.Z.trimTime(e).getTime(),A=te.Z.trimTime(r).getTime();return n.filter(z=>{var{index:Q,startDate:ue}=z;return(n=>{var{date:t,firstDate:e,firstIndex:i,index:r,lastDate:v,lastIndex:D}=n;if(e===v){var A=i,z=D;return A>z&&([A,z]=[z,A]),e===t&&r>=A&&r<=z}return t===e&&r>=i||t===v&&r<=D||e<t&&t<v})({date:te.Z.trimTime(ue).getTime(),index:Q,firstDate:D,firstIndex:i,lastDate:A,lastIndex:v})})})(It,{firstDate:z,lastDate:ue,firstIndex:A,lastIndex:Q});return ut.push(...ln),ut},[]);return Le.sort((ut,It)=>ut.startDate.getTime()-It.startDate.getTime())})(this._viewDataProvider,A,z,D)}}setSelectedCellsByData(t){this._selectedCells=t}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 Due{handleArrowClick(t){var A,{key:e,focusedCellPosition:i,edgeIndices:r,getCellDataByPosition:v,isAllDayPanelCell:D}=t;switch(e){case"down":A=this.getCellFromNextRowPosition(i,"next",r);break;case"up":A=this.getCellFromNextRowPosition(i,"prev",r);break;case"left":A=this.getCellFromNextColumnPosition((0,ui.Z)({},t,{direction:"prev"}));break;case"right":A=this.getCellFromNextColumnPosition((0,ui.Z)({},t,{direction:"next"}))}var z=v(A.rowIndex,A.columnIndex,D);return this.moveToCell((0,ui.Z)({},t,{currentCellData:z}))}getCellFromNextRowPosition(t,e,i){var{columnIndex:r,rowIndex:v}=t,A=v+("next"===e?1:-1);return{columnIndex:r,rowIndex:A>=0&&A<=i.lastRowIndex?A:v}}getCellFromNextColumnPosition(t){var{focusedCellPosition:e,direction:i,edgeIndices:r,isRTL:v,isGroupedByDate:D,groupCount:A,isMultiSelection:z,viewType:Q}=t,{columnIndex:ue,rowIndex:we}=e,{firstColumnIndex:Le,lastColumnIndex:Ue,firstRowIndex:ut,lastRowIndex:It}=r,Gt=D&&z?A:1,ln=v?-1:1,on=ue+("next"===i?ln*Gt:-1*ln*Gt);return on>=Le&&on<=Ue?{columnIndex:on,rowIndex:we}:J0(Q)?e:this._processEdgeCell({nextColumnIndex:on,rowIndex:we,columnIndex:ue,firstColumnIndex:Le,lastColumnIndex:Ue,firstRowIndex:ut,lastRowIndex:It,step:Gt})}_processEdgeCell(t){var{nextColumnIndex:e,rowIndex:i,columnIndex:r,firstColumnIndex:v,lastColumnIndex:D,firstRowIndex:A,lastRowIndex:z,step:Q}=t,ue=e,we=i;if(e<v){var It=i-1,Gt=It>=A;we=Gt?It:i,ue=Gt?D-(Q-r%Q-1):r}if(e>D){var En=i+1,on=En<=z;we=on?En:i,ue=on?v+r%Q:r}return{columnIndex:ue,rowIndex:we}}moveToCell(t){var{isMultiSelection:e,isMultiSelectionAllowed:i,focusedCellData:r,currentCellData:v}=t;return e&&i?this._getNextCellData(v,r):v}_getNextCellData(t,e,i){return i?e:this._isValidNextFocusedCell(t,e)?t:e}_isValidNextFocusedCell(t,e){if(!e)return!0;var{groupIndex:i,allDay:r}=e,{groupIndex:v,allDay:D}=t;return i===v&&r===D}}class tR{constructor(){this.semaphore=new qN,this.position={left:-1,top:-1}}isFree(t){return this.isInitialPosition()?(this.setPosition(t),this.semaphore.isFree()):this.semaphore.isFree()&&!this.comparePosition(t)}take(t){this.semaphore.take(),this.setPosition(t)}release(){this.semaphore.release()}setPosition(t){var e,i;this.position.left=null!==(e=t.left)&&void 0!==e?e:-1,this.position.top=null!==(i=t.top)&&void 0!==i?i:-1}isInitialPosition(){return-1===this.position.left&&-1===this.position.top}comparePosition(t){var e,i,r=null!==(e=t.left)&&void 0!==e?e:-1,v=null!==(i=t.top)&&void 0!==i?i:-1;return this.position.left===r&&this.position.top===v}}var{tableCreator:hw}=Kk,Tue=b4.abstract,ST=te.Z.dateToMilliseconds,dH="dx-scheduler-work-space-vertical-group-table",cH="dx-scheduler-time-panel-cell",nR="dx-scheduler-all-day-panel",iR="dx-scheduler-all-day-table",hH="dx-scheduler-all-day-title",Vp="dx-scheduler-all-day-table-cell",pH="dx-scheduler-work-space-mouse-selection",rR="dx-scheduler-cell-sizes-horizontal",gH="dx-scheduler-cell-sizes-vertical",fH="dx-scheduler-group-header",mc="dx-scheduler-date-table-cell",OT="dx-scheduler-date-table-droppable-cell",mH=(0,k.V4)(_o.Z.down,"dxSchedulerWorkSpace"),Ty={ENTER:(0,k.V4)(ls.IO,"dxSchedulerDateTable"),DROP:(0,k.V4)(ls.Cw,"dxSchedulerDateTable"),LEAVE:(0,k.V4)(ls.Zu,"dxSchedulerDateTable")},_H=(0,k.V4)(g.u,"dxSchedulerDateTable"),vH=(0,k.V4)(_o.Z.down,"dxSchedulerDateTable"),oR=(0,k.V4)(_o.Z.up,"dxSchedulerDateTable"),yH=(0,k.V4)(_o.Z.move,"dxSchedulerDateTable"),CH="dxCellData",xH=ST("day"),Xue=ST("hour"),DT=".".concat(Sk," td, .").concat(iR," td"),que=".".concat(mc,", .").concat(Vp);const bH=class Que extends b4{get viewDataProvider(){return this._viewDataProvider||(this._viewDataProvider=new bse(this.type)),this._viewDataProvider}get cache(){return this._cache||(this._cache=new _4),this._cache}get cellsSelectionState(){if(!this._cellsSelectionState){this._cellsSelectionState=new Oue(this.viewDataProvider);var t=this.option("selectedCellData");if(t?.length>0){var e=t.map(i=>{var r=i.groups;if(!r||0===this._getGroupCount())return(0,ui.Z)({},i,{groupIndex:0});var v=this._getGroupIndexByResourceId(r);return(0,ui.Z)({},i,{groupIndex:v})});this._cellsSelectionState.setSelectedCellsByData(e)}}return this._cellsSelectionState}get cellsSelectionController(){return this._cellsSelectionController||(this._cellsSelectionController=new Due),this._cellsSelectionController}get isAllDayPanelVisible(){return this._isShowAllDayPanel()&&this.supportAllDayRow()}get verticalGroupTableClass(){return dH}get viewDirection(){return"vertical"}get renovatedHeaderPanelComponent(){return Qk}get timeZoneCalculator(){return this.option("timeZoneCalculator")}get isDefaultDraggingMode(){return"default"===this.option("draggingMode")}_supportedKeys(){var t=function(i){i.preventDefault(),i.stopPropagation();var r=this.cellsSelectionState.getSelectedCells();if(null!=r&&r.length){var v=r.map(D=>this._getCellByData(D)).filter(D=>!!D);i.target=v,this._showPopup=!0,this._cellClickAction({event:i,cellElement:(0,u.Z)(v),cellData:r[0]})}},e=(i,r)=>{var v;i.preventDefault(),i.stopPropagation();var D=null===(v=this.cellsSelectionState.focusedCell)||void 0===v?void 0:v.cellData;if(D){var A=D.allDay&&!this._isVerticalGroupedWorkSpace(),z=i.shiftKey,Q=this.option("allowMultipleCellSelection"),ue=this._isRTL(),we=this._getGroupCount(),Le=this.isGroupedByDate(),Ue=this._isHorizontalGroupedWorkSpace(),ut=this.viewDataProvider.findCellPositionInMap((0,ui.Z)({},D,{isAllDay:D.allDay})),It=Ue&&z&&!Le?this.viewDataProvider.getGroupEdgeIndices(D.groupIndex,A):this.viewDataProvider.getViewEdgeIndices(A),Gt=this.cellsSelectionController.handleArrowClick({focusedCellPosition:ut,edgeIndices:It,isRTL:ue,isGroupedByDate:Le,groupCount:we,isMultiSelection:z,isMultiSelectionAllowed:Q,viewType:this.type,key:r,getCellDataByPosition:this.viewDataProvider.getCellData.bind(this.viewDataProvider),isAllDayPanelCell:A,focusedCellData:D});this._processNextSelectedCell(Gt,D,z&&Q)}};return(0,y.l)(super._supportedKeys(),{enter:t,space:t,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(t,e){if((0,w.$K)(t)&&t.length){var i=this.option("allowMultipleCellSelection"),r=this._getFullCellData(t),v=this.cellsSelectionState.focusedCell.cellData,D=this.cellsSelectionController.moveToCell({isMultiSelection:e,isMultiSelectionAllowed:i,currentCellData:r,focusedCellData:v,isVirtualCell:t.hasClass(sT)});this._processNextSelectedCell(D,v,i&&e)}}_processNextSelectedCell(t,e,i){var r=this.viewDataProvider.findCellPositionInMap({startDate:t.startDate,groupIndex:t.groupIndex,isAllDay:t.allDay,index:t.index});if(!this.viewDataProvider.isSameCell(e,t)){var v=t.allDay&&!this._isVerticalGroupedWorkSpace()?this._dom_getAllDayPanelCell(r.columnIndex):this._dom_getDateCell(r);this._setSelectedCellsStateAndUpdateSelection(t.allDay,r,i,v),this._dateTableScrollable.scrollToElement(v)}}_setSelectedCellsStateAndUpdateSelection(t,e,i,r){var v={rowIndex:e.rowIndex,columnIndex:e.columnIndex,allDay:t};this.cellsSelectionState.setFocusedCell(v.rowIndex,v.columnIndex,t),i?this.cellsSelectionState.setSelectedCells(v):this.cellsSelectionState.setSelectedCells(v,v),this.updateCellsSelection(),this._updateSelectedCellDataOption(this.cellsSelectionState.getSelectedCells(),r)}_hasAllDayClass(t){return t.hasClass(Vp)}_focusInHandler(t){if((0,u.Z)(t.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=(0,u.Z)("<div>").addClass(nR),this._$allDayTitle=(0,u.Z)("<div>").appendTo(this._$headerPanelEmptyCell)}_dateTableScrollableConfig(){var t={useKeyboard:!1,bounceEnabled:!1,updateManually:!0,onScroll:()=>{var i;null===(i=this._groupedStrategy.cache)||void 0===i||i.clear()}};if(this._needCreateCrossScrolling()&&(t=(0,y.l)(t,this._createCrossScrollingConfig(t))),this.isVirtualScrolling()&&(this.virtualScrollingDispatcher.horizontalScrollingAllowed||this.virtualScrollingDispatcher.height)){var e=t.onScroll;t=(0,ui.Z)({},t,{onScroll:i=>{e?.(i),this.virtualScrollingDispatcher.handleOnScrollEvent(i?.scrollOffset)}})}return t}_createCrossScrollingConfig(t){var e={direction:"both"},i=t.onScroll;return e.onScroll=r=>{var v,D;i(),this._dataTableSemaphore.take(r.scrollOffset),this._sideBarSemaphore.isFree(r.scrollOffset)&&(null===(v=this._sidebarScrollable)||void 0===v||v.scrollTo({top:r.scrollOffset.top})),this._headerSemaphore.isFree(r.scrollOffset)&&(null===(D=this._headerScrollable)||void 0===D||D.scrollTo({left:r.scrollOffset.left})),this._dataTableSemaphore.release()},e.onEnd=()=>{this.option("onScrollEnd")()},e}_headerScrollableConfig(){var t={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 t}_visibilityChanged(t){this.cache.clear(),t&&this._updateGroupTableHeight(),t&&this._needCreateCrossScrolling()&&this._setTableSizes()}_setTableSizes(){this.cache.clear(),this._attachTableClasses();var t=this.getCellWidth();t<this.getCellMinWidth()&&(t=this.getCellMinWidth());var e=this.getWorkSpaceMinWidth(),i=this._getGroupCount(),v=t*this._getTotalCellCount(i);v<e&&(v=e),(0,s.cl)(this._$headerPanel,v),(0,s.cl)(this._$dateTable,v),this._$allDayTable&&(0,s.cl)(this._$allDayTable,v),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(){return(0,E.ZT)()}_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 Zae(this._getVirtualScrollingDispatcherOptions()),this.virtualScrollingDispatcher.attachScrollableEvents(),this.renderer=new jae(this)}onDataSourceChanged(){}isGroupedAllDayPanel(){return z6(this.option("groups"),this.option("groupOrientation"),this.isAllDayPanelVisible)}generateRenderOptions(t){var e,r=this._getGroupCount()>0?this.option("groupOrientation"):this._getDefaultGroupStrategy();return(0,ui.Z)({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:t,isAllDayPanelVisible:this.isAllDayPanelVisible,selectedCells:this.cellsSelectionState.getSelectedCells(),focusedCell:this.cellsSelectionState.focusedCell,headerCellTextFormat:this._getFormat(),getDateForHeaderText:(D,A)=>A,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()&&(0,fi.Ym)()&&this._setHorizontalGroupHeaderCellsHeight()}updateHeaderEmptyCellWidth(){if((0,fi.Ym)()&&this._isRenderHeaderPanelEmptyCell()){var t=this.getTimePanelWidth(),e=this.getGroupTableWidth();this._$headerPanelEmptyCell.css("width",t+e)}}_isGroupsSpecified(t){return this.option("groups").length&&t}_getGroupIndexByResourceId(t){var e=this.option("groups"),i=ow(e);return i.length?this._getGroupIndexRecursively(i,t):0}_getGroupIndexRecursively(t,e){var r=e[t[0].name];return t.reduce((v,D)=>{var{leafIndex:A,value:z,children:Q}=D,ue=r===z;return ue&&void 0!==A?A:ue?this._getGroupIndexRecursively(Q,e):v},0)}_getViewStartByOptions(){return cT(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 t=this,e=this._createAction(function(v){t._pointerDownHandler(v.event)});this._createCellClickAction();var i="."+mc+",."+Vp,r=this.$element();d.Z.off(r,mH),d.Z.off(r,_H),d.Z.on(r,mH,function(v){(0,k.N5)(v)&&v.which>1?v.preventDefault():e({event:v})}),d.Z.on(r,_H,i,function(v){var D=(0,u.Z)(v.target);t._cellClickAction({event:v,cellElement:(0,S.u)(D),cellData:t.getCellData(D)})})}_createCellClickAction(){this._cellClickAction=this._createActionByOption("onCellClick",{afterExecute:t=>this._cellClickHandler(t.args[0].event)})}_createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")}_cellClickHandler(){this._showPopup&&(delete this._showPopup,this._handleSelectedCellsClick())}_pointerDownHandler(t){var e=(0,u.Z)(t.target);if(e.hasClass(mc)||e.hasClass(Vp))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 t=this.cellsSelectionState.getSelectedCells(),i=t[t.length-1],r={startDate:t[0].startDate,endDate:i.endDate};void 0!==i.allDay&&(r.allDay=i.allDay),this.option("onSelectedCellsClick")(r,i.groups)}_attachContextMenuEvent(){this._createContextMenuAction();var t="."+mc+",."+Vp,e=this.$element(),i=(0,k.V4)(rF.u,this.NAME);d.Z.off(e,i,t),d.Z.on(e,i,t,this._contextMenuHandler.bind(this))}_contextMenuHandler(t){var e=(0,u.Z)(t.target);this._contextMenuAction({event:t,cellElement:(0,S.u)(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 t,e;this._dateTableScrollable.update(),null===(t=this._headerScrollable)||void 0===t||t.update(),null===(e=this._sidebarScrollable)||void 0===e||e.update()}_getTimePanelRowCount(){return this._getCellCountInDay()}_getCellCountInDay(){var t=this.option("hoursInterval"),e=this.option("startDayHour"),i=this.option("endDayHour");return this.viewDataProvider.getCellCountInDay(e,i,t)}_getTotalCellCount(t){return this._groupedStrategy.getTotalCellCount(t)}_getTotalRowCount(t,e){var i=this._groupedStrategy.getTotalRowCount(t);return e&&this.isAllDayPanelVisible&&(i+=t),i}_getGroupIndex(t,e){return this._groupedStrategy.getGroupIndex(t,e)}calculateEndDate(t){var e=this.viewDataProvider.viewDataGenerator;return e.calculateEndDate(t,e.getInterval(this.option("hoursInterval")),this.option("endDayHour"))}_getGroupCount(){return Lp(this.option("groups"))}_attachTablesEvents(){var t=this.$element();this._attachDragEvents(t),this._attachPointerEvents(t)}_detachDragEvents(t){d.Z.off(t,Ty.ENTER),d.Z.off(t,Ty.LEAVE),d.Z.off(t,Ty.DROP)}_attachDragEvents(t){this._detachDragEvents(t),d.Z.on(t,Ty.ENTER,DT,{checkDropTarget:(e,i)=>!this._isOutsideScrollable(e,i)},e=>{this.preventDefaultDragging||(this.removeDroppableCellClass(),(0,u.Z)(e.target).addClass(OT))}),d.Z.on(t,Ty.LEAVE,()=>{this.preventDefaultDragging||this.removeDroppableCellClass()}),d.Z.on(t,Ty.DROP,DT,()=>{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(t){var e=!1;d.Z.off(t,yH),d.Z.off(t,vH),d.Z.on(t,vH,DT,i=>{(0,k.N5)(i)&&1===i.which&&(e=!0,this.$element().addClass(pH),d.Z.off(b.Z.getDocument(),oR),d.Z.on(b.Z.getDocument(),oR,()=>{e=!1,this.$element().removeClass(pH)}))}),d.Z.on(t,yH,DT,i=>{e&&this._dateTableScrollable&&!this._dateTableScrollable.option("scrollByContent")&&(i.preventDefault(),i.stopPropagation(),this._moveToCell((0,u.Z)(i.target),!0))})}_getFormat(){return Tue()}getWorkArea(){return this._$dateTableContainer}getScrollable(){return this._dateTableScrollable}getScrollableScrollTop(){return this._dateTableScrollable.scrollTop()}getGroupedScrollableScrollTop(t){return this._groupedStrategy.getScrollableScrollTop(t)}getScrollableScrollLeft(){return this._dateTableScrollable.scrollLeft()}getScrollableOuterWidth(){return this._dateTableScrollable.scrollWidth()}getScrollableContainer(){return(0,u.Z)(this._dateTableScrollable.container())}getHeaderPanelHeight(){return this._$headerPanel&&(0,s.zp)(this._$headerPanel,!0)}getTimePanelWidth(){return this._$timePanel&&(0,Zo.l)(this._$timePanel.get(0)).width}getGroupTableWidth(){return this._$groupTable?(0,s.Y_)(this._$groupTable):0}getWorkSpaceLeftOffset(){return this._groupedStrategy.getLeftOffset()}_getCellCoordinatesByIndex(t){var e=Math.floor(t/this._getRowCount());return{columnIndex:e,rowIndex:t-this._getRowCount()*e}}_getDateGenerationOptions(){var t;return{startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),isWorkView:this.viewDataProvider.viewDataGenerator.isWorkView,interval:null===(t=this.viewDataProvider.viewDataGenerator)||void 0===t?void 0:t.getInterval(this.option("hoursInterval")),startViewDate:this.getStartViewDate(),firstDayOfWeek:this._firstDayOfWeek()}}_getIntervalBetween(t,e){var i=this.getStartViewDate(),r=this.option("startDayHour")*Xue,v=te.Z.getTimezonesDifference(i,t),D=t.getTime()-i.getTime()-v,A=this._getDaysOfInterval(D,r),z=this._getWeekendsCount(A),Q=(A-z)*xH;return e||(Q=D-A*this.viewDataProvider.hiddenInterval-z*this.getVisibleDayDuration()),Q}_getWeekendsCount(){return 0}_getDaysOfInterval(t,e){return Math.floor((t+e)/xH)}_updateIndex(t){return t*this._getRowCount()}_getDroppableCell(){return this._getDateTables().find("."+OT)}_getWorkSpaceWidth(){return this.cache.get("workspaceWidth",()=>this._needCreateCrossScrolling()?(0,Zo.l)(this._$dateTable.get(0)).width:(0,Zo.l)(this.$element().get(0)).width-this.getTimePanelWidth()-this.getGroupTableWidth())}_getCellByCoordinates(t,e,i){var r=this._groupedStrategy.prepareCellIndexes(t,e,i);return this._dom_getDateCell(r)}_dom_getDateCell(t){return this._$dateTable.find("tr:not(.".concat("dx-scheduler-virtual-row",")")).eq(t.rowIndex).find("td:not(.".concat(sT,")")).eq(t.columnIndex)}_dom_getAllDayPanelCell(t){return this._$allDayPanel.find("tr").eq(0).find("td").eq(t)}_getCells(t,e){var i=t?Vp:mc;if("vertical"===e){for(var r=[],v=1;;v++){var D=this.$element().find("tr .".concat(i,":nth-child(").concat(v,")"));if(!D.length)break;r=r.concat(D.toArray())}return(0,u.Z)(r)}return this.$element().find("."+i)}_getFirstAndLastDataTableCell(){var t=this.isVirtualScrolling()?".".concat(mc,", .").concat(sT):".".concat(mc),e=this.$element().find(t);return[e[0],e[e.length-1]]}_getAllCells(t){if(this._isVerticalGroupedWorkSpace())return this._$dateTable.find("td:not(.".concat(sT,")"));var e=t&&this.supportAllDayRow()?Vp:mc;return this.$element().find(".".concat(e))}_setHorizontalGroupHeaderCellsHeight(){var t=(0,Zo.l)(this._$dateTable.get(0)).height;(0,s.qt)(this._$groupTable,t)}_getGroupHeaderCells(){return this.$element().find("."+fH)}_getScrollCoordinates(t,e,i,r,v){var D=i||new Date(this.option("currentDate")),A=this.option("startDayHour"),z=this.option("endDayHour");t<A&&(t=A),t>=z&&(t=z-1),D.setHours(t,e,0,0);var Q=this.viewDataProvider.findGlobalCellPosition(D,r,v),{position:ue,cellData:we}=Q;return this.virtualScrollingDispatcher.calculateCoordinatesByDataAndPosition(we,ue,D,J0(this.type),"vertical"===this.viewDirection)}_isOutsideScrollable(t,e){var i=this._dateTableScrollable.$element(),r=(0,Zo.l)(i.get(0)),v=(0,fi.Jj)(),D=!(0,u.Z)(t).closest(i).length,A=e.pageX<r.left||e.pageX>r.left+r.width+(v.scrollX||0);return!(D&&!A)&&(e.pageY<r.top||e.pageY>r.top+r.height+(v.scrollY||0)||A)}setCellDataCache(t,e,i){var r=JSON.stringify({rowIndex:t.rowIndex,columnIndex:t.columnIndex,groupIndex:e});this.cache.set(r,this.getCellData(i))}setCellDataCacheAlias(t,e){var i=JSON.stringify({rowIndex:t.rowIndex,columnIndex:t.columnIndex,groupIndex:t.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(t){return(0,y.l)(!0,{},{startDate:t.startDate,endDate:t.endDate,groups:t.groups,groupIndex:t.groupIndex,allDay:t.allDay})}getCellData(t){var e=this._getFullCellData(t)||{};return this._filterCellDataFields(e)}_getFullCellData(t){if(t[0])return this._getDataByCell(t)}_getVirtualRowOffset(){return this.virtualScrollingDispatcher.virtualRowOffset}_getVirtualCellOffset(){return this.virtualScrollingDispatcher.virtualCellOffset}_getDataByCell(t){var e=t.parent().index()-this.virtualScrollingDispatcher.topVirtualRowsCount,i=t.index()-this.virtualScrollingDispatcher.leftVirtualCellsCount,{viewDataProvider:r}=this,v=this._hasAllDayClass(t);return r.getCellData(e,i,v)||void 0}isGroupedByDate(){return this.option("groupByDate")&&this._isHorizontalGroupedWorkSpace()&&this._getGroupCount()>0}getCellIndexByDate(t,e){var r=e?864e5:this.viewDataProvider.viewDataGenerator.getInterval(this.option("hoursInterval")),v=V6(this.getStartViewDate(),this.option("startDayHour")),D=this._getIntervalBetween(t,e)+v,A=Math.floor(D/r);return e&&(A=this._updateIndex(A)),A<0&&(A=0),A}getDroppableCellIndex(){var t=this._getDroppableCell(),e=t.parent();return e.index()*e.find("td").length+t.index()}getDataByDroppableCell(){var t=this.getCellData((0,u.Z)(this._getDroppableCell()));return{startDate:t.startDate,endDate:t.endDate,allDay:t.allDay,groups:t.groups}}getDateRange(){return[this.getStartViewDate(),this.getEndViewDateByEndDayHour()]}getCellMinWidth(){return 75}getRoundedCellWidth(t,e,i){if(t<0||!(0,fi.Ym)())return 0;var v=0,D=this.$element().find(".".concat(Ok)).eq(0).find("."+mc),A=this._getCellCount()*t;i=i||this._getCellCount(),(0,w.$K)(e)||(e=A);for(var z=e;z<A+i;z++){var Q=(0,u.Z)(D).eq(z).get(0);v+=Q?(0,Zo.l)(Q).width:0}return v/(A+i-e)}getCellWidth(){return fT(this.getDOMElementsMetaData())}getCellHeight(){return Hk(this.getDOMElementsMetaData())}getAllDayHeight(){return uw(this.option("showAllDayPanel"),this._isVerticalGroupedWorkSpace(),this.getDOMElementsMetaData())}getMaxAllowedPosition(t){return zk(t,this.viewDataProvider,this.option("rtlEnabled"),this.getDOMElementsMetaData())}getAllDayOffset(){return this._groupedStrategy.getAllDayOffset()}getCellIndexByCoordinates(t,e){var i=this._getTotalCellCount(this._getGroupCount()),r=this.getCellWidth(),v=e?this.getAllDayHeight():this.getCellHeight(),D=Math.floor(Math.floor(t.top)/Math.floor(v)),A=t.left/r;return A=Math.floor(A+.05),this._isRTL()&&(A=i-A-1),i*D+A}getStartViewDate(){return this.viewDataProvider.getStartViewDate()}getEndViewDate(){return this.viewDataProvider.getLastCellEndDate()}getEndViewDateByEndDayHour(){return this.viewDataProvider.getLastViewDateByEndDayHour(this.option("endDayHour"))}getCellDuration(){return K6(this.type,this.option("startDayHour"),this.option("endDayHour"),this.option("hoursInterval"))}getIntervalDuration(t){return t?ST("day"):this.getCellDuration()}getVisibleDayDuration(){var t=this.option("startDayHour"),e=this.option("endDayHour"),i=this.option("hoursInterval");return this.viewDataProvider.getVisibleDayDuration(t,e,i)}getGroupBounds(t){var e=this._groupedStrategy instanceof v4?this.getGroupBoundsVertical(t.groupIndex):this.getGroupBoundsHorizontal(t);return this._isRTL()?this.getGroupBoundsRtlCorrection(e):e}getGroupBoundsVertical(t){var e=this._getFirstAndLastDataTableCell();return this._groupedStrategy.getGroupBoundsOffset(t,e)}getGroupBoundsHorizontal(t){var e=this._getCellCount(),i=this._getCells(),r=this.getCellWidth();return this._groupedStrategy.getGroupBoundsOffset(e,i,r,t,this.viewDataProvider.groupedDataMap)}getGroupBoundsRtlCorrection(t){var e=this.getCellWidth();return(0,ui.Z)({},t,{left:t.right-2*e,right:t.left+2*e})}needRecalculateResizableArea(){return this._isVerticalGroupedWorkSpace()&&0!==this.getScrollable().scrollTop()}getCellDataByCoordinates(t,e){var i=JSON.stringify({top:t.top,left:t.left});return this.cache.get(i,()=>{var r=this._getCells(e),v=this.getCellIndexByCoordinates(t,e),D=r.eq(v);return this.getCellData(D)})}getVisibleBounds(){var t={},e=this.getScrollable().$element(),i=this.getCellHeight(),r=this.getScrollableScrollTop()/i,v=r+(0,s.Cr)(e)/i;return t.top={hours:Math.floor(r*this.option("hoursInterval"))+this.option("startDayHour"),minutes:r%2?30:0},t.bottom={hours:Math.floor(v*this.option("hoursInterval"))+this.option("startDayHour"),minutes:Math.floor(v)%2?30:0},t}updateScrollPosition(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.timeZoneCalculator.createDate(t,{path:"toGrid"}),v=i&&this.isAllDayPanelVisible;this.needUpdateScrollPosition(r,e,v)&&this.scrollTo(r,e,v,!1)}needUpdateScrollPosition(t,e,i){var r=this._getCellsInViewport(i),v=this._isGroupsSpecified(e)?this._getGroupIndexByResourceId(e):0,D=t.getTime(),A=te.Z.trimTime(t).getTime();return r.reduce((z,Q)=>{var{startDate:ue,endDate:we,groupIndex:Le}=this.getCellData(Q),Ue=ue.getTime(),ut=we.getTime();return(!(!i&&Ue<=D&&D<ut||i&&A===Ue)||v!==Le)&&z},!0)}_getCellsInViewport(t){var e=this.getScrollable().$element(),i=this.getCellHeight(),r=this.getCellWidth(),v=this._getTotalCellCount(this._getGroupCount()),D=this.getScrollableScrollTop(),A=this.getScrollableScrollLeft(),z=D/i-this.virtualScrollingDispatcher.topVirtualRowsCount,Q=Math.floor(z);D%i!=0&&(Q+=1);var ue=A/r,we=Math.floor(ue);A%r!=0&&(we+=1);var Le=Math.floor(z+(0,s.Cr)(e)/i),Ue=Math.floor(ue+(0,s.dz)(e)/r),ut=this._getAllCells(t),It=[];return ut.each(function(Gt){var ln=(0,u.Z)(this),En=Gt%v,on=Gt/v;we<=En&&En<Ue&&Q<=on&&on<Le&&It.push(ln)}),It}scrollToTime(t,e,i){if(this._isValidScrollDate(i)){var r=this._getScrollCoordinates(t,e,i),v=this.getScrollable();v.scrollBy({top:r.top-v.scrollTop(),left:0})}}scrollTo(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._isValidScrollDate(t,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])){var v=this._getGroupCount()&&e?this._getGroupIndexByResourceId(e):0,D=i&&this.isAllDayPanelVisible,A=this._getScrollCoordinates(t.getHours(),t.getMinutes(),t,v,D),z=this.getScrollable(),Q=z.$element(),ue=this.getCellWidth(),we=this.option("rtlEnabled")?ue:0,Le=(0,s.Cr)(Q),It=((0,s.dz)(Q)-ue)/2,Gt=(Le-this.getCellHeight())/2,ln=A.left-z.scrollLeft()-It-we,En=A.top-z.scrollTop()-Gt;D&&!this._isVerticalGroupedWorkSpace()&&(En=0),this.option("templatesRenderAsynchronously")?setTimeout(()=>{z.scrollBy({left:ln,top:En})}):z.scrollBy({left:ln,top:En})}}_isValidScrollDate(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.getStartViewDate(),r=this.getEndViewDate();return!(t<i||t>r)||(e&&Js.Z.log("W1008",t),!1)}needApplyCollectorOffset(){return!1}removeDroppableCellClass(t){(t||this._getDroppableCell())?.removeClass(OT)}_getCoordinatesByCell(t){var e=t.index()-this.virtualScrollingDispatcher.leftVirtualCellsCount,i=t.parent().index(),r=this._hasAllDayClass(t),v=this._isVerticalGroupedWorkSpace();return r&&!v||(i-=this.virtualScrollingDispatcher.topVirtualRowsCount),{rowIndex:i,columnIndex:e}}_isShowAllDayPanel(){return this.option("showAllDayPanel")}_getTimePanelCells(){return this.$element().find(".".concat(cH))}_getRDateTableProps(){return{viewData:this.viewDataProvider.viewData,dataCellTemplate:this.option("dataCellTemplate"),addDateTableClass:!this.option("crossScrollingEnabled")||this.isVirtualScrolling(),groupOrientation:this.option("groupOrientation"),addVerticalSizesClassToRows:!1}}_updateSelectedCellDataOption(t){var e=t.map(i=>{var{startDate:r,endDate:v,allDay:D,groupIndex:A,groups:z}=i;return{startDate:r,endDate:v,allDay:D,groupIndex:A,groups:z}});this.option("selectedCellData",e),this._selectionChangedAction({selectedCellData:e})}_getCellByData(t){var{startDate:e,groupIndex:i,allDay:r,index:v}=t,D=this.viewDataProvider.findCellPositionInMap({startDate:e,groupIndex:i,isAllDay:r,index:v});if(D)return r&&!this._isVerticalGroupedWorkSpace()?this._dom_getAllDayPanelCell(D.columnIndex):this._dom_getDateCell(D)}getDOMElementsMetaData(){return this.cache.get("cellElementsMeta",()=>({dateTableCellsMeta:this._getDateTableDOMElementsInfo(),allDayPanelCellsMeta:this._getAllDayPanelDOMElementsInfo()}))}_getDateTableDOMElementsInfo(){var t=this._getAllCells(!1);if(!t.length||!(0,fi.Ym)())return[[{}]];var e=this._getDateTable(),i=(0,Zo.l)(e.get(0)),r=this.viewDataProvider.getColumnsCount(),v=[];return t.each((D,A)=>{var z=Math.floor(D/r);v.length===z&&v.push([]),this._addCellMetaData(v[z],A,i)}),v}_getAllDayPanelDOMElementsInfo(){var t=[];if(this.isAllDayPanelVisible&&!this._isVerticalGroupedWorkSpace()&&(0,fi.Ym)()){var e=this._getAllCells(!0);if(!e.length)return[{}];var r=(0,Zo.l)(this._$allDayPanel.get(0));e.each((v,D)=>{this._addCellMetaData(t,D,r)})}return t}_addCellMetaData(t,e,i){var r=(0,Zo.l)(e);t.push({left:r.left-i.left,top:r.top-i.top,width:r.width,height:r.height})}_oldRender_getAllDayCellData(t){return(e,i,r)=>{var v=r%this._getCellCount(),D=this._getDateGenerationOptions(!0),A=this.viewDataProvider.viewDataGenerator.getDateByCellIndices(D,i,v,this._getCellCountInDay());A=te.Z.trimTime(A);var z=t||0;this.isGroupedByDate()?z=Math.floor(r%this._getGroupCount()):this._isHorizontalGroupedWorkSpace()&&(z=Math.floor(r/this._getCellCount()));var Q={startDate:A,endDate:A,allDay:!0,groupIndex:z},ue=Cy(z,this.option("groups"));return ue.length&&(Q.groups=eT(ue)),{key:CH,value:Q}}}renderRWorkSpace(t){var e=t??{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(){ml.renovation.renderComponent(this,this._$dateTable,K4,"renovatedDateTable",this._getRDateTableProps())}renderRGroupPanel(){var t={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(),ml.renovation.renderComponent(this,this._getGroupHeaderContainer(),tH,"renovatedGroupPanel",t)):this._detachGroupCountClass()}renderRAllDayPanel(){if(this.isAllDayPanelVisible&&!this.isGroupedAllDayPanel()){var e;this._toggleAllDayVisibility(!1);var i=(0,ui.Z)({viewData:this.viewDataProvider.viewData,dataCellTemplate:this.option("dataCellTemplate"),startCellIndex:0},(null===(e=this.virtualScrollingDispatcher.horizontalVirtualScrolling)||void 0===e?void 0:e.getRenderState())||{});ml.renovation.renderComponent(this,this._$allDayTable,G4,"renovatedAllDayPanel",i),ml.renovation.renderComponent(this,this._$allDayTitle,$4,"renovatedAllDayPanelTitle",{})}this._toggleAllDayVisibility(!0)}renderRTimeTable(){ml.renovation.renderComponent(this,this._$timePanel,Y4,"renovatedTimePanel",{timePanelData:this.viewDataProvider.timePanelData,timeCellTemplate:this.option("timeCellTemplate"),groupOrientation:this.option("groupOrientation")})}renderRHeaderPanel(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.option("groups").length?this._attachGroupCountClass():this._detachGroupCountClass(),ml.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:t})}initDragBehavior(t){if(!this.dragBehavior&&t){this.dragBehavior=new Vae(t);var e=(0,u.Z)(t.element());this._createDragBehavior(this.getWorkArea(),e),this._createDragBehavior(this.getAllDayContainer(),e)}}_createDragBehavior(t,e){this._createDragBehaviorBase(t,e,{getItemData:(r,v)=>v._getItemData(r),getItemSettings:r=>r.data(Bp)})}_createDragBehaviorBase(t,e,i){var r=this.$element().find(".".concat(m6));this.dragBehavior.addTo(t,((n,t,e,i,r,v,D,A,z,Q,ue)=>{var we={dragElement:void 0,itemData:void 0},Le=()=>{var{itemData:ut}=we;return!ut||(0,No.vb)("disabled")(ut)};return{container:n,dragTemplate:()=>we.dragElement,onDragStart:ut=>{e||v();var It=ut.cancel,Gt=ut.event,ln=(0,u.Z)(ut.itemElement),En=ut.component._appointments;we.itemData=ue.getItemData(ut.itemElement,En);var Jt,un,Mn,Kn,on=ue.getItemSettings(ln,ut),Nt=ue.initialPosition;Le()||(Gt.data=Gt.data||{},It||(on.isCompact||i.updateDragSource(we.itemData,on),we.dragElement=(Jt=we.itemData,un=on,Kn=(Mn=En).option("items").length,un.isCompact=!1,un.virtual=!1,Mn._renderItem(Kn,{itemData:Jt,settings:[un]})[0]),Gt.data.itemElement=we.dragElement,Gt.data.initialPosition=Nt??(0,al.jt)((0,u.Z)(we.dragElement)),Gt.data.itemData=we.itemData,Gt.data.itemSettings=on,i.onDragStart(Gt.data),(0,al.Kx)((0,u.Z)(we.dragElement))))},onDragMove:()=>{if(!e){var ut=(0,s.dz)(we.dragElement),Gt=ut>Q(),ln=(0,u.Z)(we.dragElement).parent(),En=(0,Zo.l)(ln.get(0)),on=En.left+10,Jt=b.Z.elementsFromPoint(Gt?on:on+ut/2,En.top+10),un=!!Jt.find(Xn=>Xn===t.get(0)),Mn=A(),Kn=Jt.find(Xn=>{var si=Xn.classList;return 1===Mn.find(Xn).length&&(si.contains(mc)||si.contains(Vp))});Kn?(D().is(Kn)||z(),(0,u.Z)(Kn).addClass(OT)):un||z()}},onDragEnd:ut=>{var It;e||r(),Le()||i.onDragEnd(ut),null===(It=we.dragElement)||void 0===It||It.remove(),z()},cursorOffset:ue.isSetCursorOffset?()=>{var ut=(0,u.Z)(we.dragElement);return{x:(0,s.dz)(ut)/2,y:(0,s.Cr)(ut)/2}}:void 0,filter:ue.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(0,y.l)(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*ST("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(t){switch(t.name){case"startDayHour":Ak(t.value,this.option("endDayHour")),this._cleanWorkSpace();break;case"endDayHour":Ak(this.option("startDayHour"),t.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(t),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(t)}}updateShowAllDayPanel(){var t="hidden"===this.option("allDayPanelMode");this.option("onShowAllDayPanel")(!t)}_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():(0,s.Cr)(this.$element()),getViewWidth:()=>this.$element().width?this.$element().width():(0,s.dz)(this.$element()),getWindowHeight:()=>(0,fi.Jj)().innerHeight,getWindowWidth:()=>(0,fi.Jj)().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 tR,this._sideBarSemaphore=new tR,this._dataTableSemaphore=new tR,this._viewDataProvider=null,this._cellsSelectionState=null,this._activeStateUnit=que,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 toe({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 t=this.isVerticalOrientation()?v4:Sae;this._groupedStrategy=new t(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(t,e){return this._groupedStrategy.addAdditionalGroupCellClasses(mc+" "+rR+" "+gH,e+1,t,e)}_getGroupHeaderClass(t){return this._groupedStrategy.addAdditionalGroupCellClasses(fH,t+1)}_initWorkSpaceUnits(){this._$headerPanelContainer=(0,u.Z)("<div>").addClass("dx-scheduler-header-panel-container"),this._$headerTablesContainer=(0,u.Z)("<div>").addClass("dx-scheduler-header-tables-container"),this._$headerPanel=(0,u.Z)("<table>"),this._$thead=(0,u.Z)("<thead>").appendTo(this._$headerPanel),this._$headerPanelEmptyCell=(0,u.Z)("<div>").addClass("dx-scheduler-header-panel-empty-cell"),this._$allDayTable=(0,u.Z)("<table>"),this._$fixedContainer=(0,u.Z)("<div>").addClass(m6),this._$allDayContainer=(0,u.Z)("<div>").addClass("dx-scheduler-all-day-appointments"),this._$dateTableScrollableContent=(0,u.Z)("<div>").addClass("dx-scheduler-date-table-scrollable-content"),this._$sidebarScrollableContent=(0,u.Z)("<div>").addClass("dx-scheduler-side-bar-scrollable-content"),this._initAllDayPanelElements(),this.isRenovatedRender()?this.createRAllDayPanelElements():this._createAllDayPanelElements(),this._$timePanel=(0,u.Z)("<table>").addClass(v6),this._$dateTable=(0,u.Z)("<table>"),this._$dateTableContainer=(0,u.Z)("<div>").addClass("dx-scheduler-date-table-container"),this._$groupTable=(0,u.Z)("<div>").addClass(dH)}_initAllDayPanelElements(){this._allDayTitles=[],this._allDayTables=[],this._allDayPanels=[]}_initDateTableScrollable(){var t=(0,u.Z)("<div>").addClass("dx-scheduler-date-table-scrollable");this._dateTableScrollable=this._createComponent(t,qb.Z,this._dateTableScrollableConfig())}_createWorkSpaceElements(){this.option("crossScrollingEnabled")?this._createWorkSpaceScrollableElements():this._createWorkSpaceStaticElements()}_createWorkSpaceStaticElements(){var t;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===(t=this._$allDayPanel)||void 0===t||t.append(this._$allDayContainer,this._$allDayTable)),this._appendHeaderPanelEmptyCellIfNecessary(),this._$headerPanelContainer.append(this._$headerTablesContainer),this.$element().append(this._$fixedContainer,this._$headerPanelContainer,this._dateTableScrollable.$element())}_createWorkSpaceScrollableElements(){var t;this.$element().append(this._$fixedContainer),this._$flexContainer=(0,u.Z)("<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===(t=this._$allDayPanel)||void 0===t||t.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 t=(0,u.Z)("<div>").addClass("dx-scheduler-header-scrollable").appendTo(this._$headerTablesContainer);this._headerScrollable=this._createComponent(t,qb.Z,this._headerScrollableConfig())}_createSidebarScrollable(){var t=(0,u.Z)("<div>").addClass("dx-scheduler-sidebar-scrollable").appendTo(this._$flexContainer);this._sidebarScrollable=this._createComponent(t,qb.Z,{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,Sk),this._isVerticalGroupedWorkSpace())for(var t=this._getGroupCount(),e=0;e<t;e++)this._addTableClass(this._allDayTables[e],iR);else this.isRenovatedRender()||this._addTableClass(this._$allDayTable,iR)}_attachHeaderTableClasses(){this._addTableClass(this._$headerPanel,"dx-scheduler-header-panel")}_addTableClass(t,e){t&&!t.hasClass(e)&&t.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 Rae(this)}updateCellsSelection(){var t=this.generateRenderOptions();this.viewDataProvider.updateViewData(t),this.renderRWorkSpace({timePanel:!0,dateTable:!0,allDayPanel:!0})}_renderDateTimeIndication(){return(0,E.ZT)()}_setIndicationUpdateInterval(){return(0,E.ZT)()}_refreshDateTimeIndication(){return(0,E.ZT)()}_detachGroupCountClass(){[...dT].forEach(t=>{this.$element().removeClass(t)})}_attachGroupCountClass(){var t=this._groupedStrategy.getGroupCountClass(this.option("groups"));this.$element().addClass(t)}_getDateHeaderTemplate(){return this.option("dateCellTemplate")}_toggleAllDayVisibility(t){var e=this._isShowAllDayPanel();this.$element().toggleClass("dx-scheduler-work-space-all-day",e),this._changeAllDayVisibility(),t&&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 t,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===(t=this._shader)||void 0===t||t.clean(),delete this._interval}_clean(){d.Z.off(b.Z.getDocument(),oR),this._disposeRenovatedComponents(),super._clean()}_cleanTableWidths(){this._$headerPanel.css("width",""),this._$dateTable.css("width",""),this._$allDayTable&&this._$allDayTable.css("width","")}_disposeRenovatedComponents(){var t,e,i,r,v;null===(t=this.renovatedAllDayPanel)||void 0===t||t.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===(v=this.renovatedHeaderPanel)||void 0===v||v.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 t;this.option("onRenderAppointments")(),null===(t=this.dragBehavior)||void 0===t||t.updateDragSource()}_createAllDayPanelElements(){var t=this._getGroupCount();if(this._isVerticalGroupedWorkSpace()&&0!==t)for(var e=0;e<t;e++){var i=(0,u.Z)("<div>").addClass(hH).text(wn.Z.format("dxScheduler-allDay"));this._allDayTitles.push(i),this._$allDayTable=(0,u.Z)("<table>"),this._allDayTables.push(this._$allDayTable),this._$allDayPanel=(0,u.Z)("<div>").addClass(nR).append(this._$allDayTable),this._allDayPanels.push(this._$allDayPanel)}else this._$allDayTitle=(0,u.Z)("<div>").addClass(hH).text(wn.Z.format("dxScheduler-allDay")).appendTo(this.$element()),this._$allDayTable=(0,u.Z)("<table>"),this._$allDayPanel=(0,u.Z)("<div>").addClass(nR).append(this._$allDayTable)}renderWorkSpace(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.cache.clear(),this.viewDataProvider.update(this.generateRenderOptions(),t),this.isRenovatedRender()?this.renderRWorkSpace():(this._renderDateHeader(),this._renderTimePanel(),this._renderGroupAllDayPanel(),this._renderDateTable(),this._renderAllDayPanel()),this._initPositionHelper()}_renderGroupHeader(){var t=this._getGroupHeaderContainer(),i=[];if(this._getGroupCount()){var r=this._makeGroupRows(this.option("groups"),this.option("groupByDate"));this._attachGroupCountClass(),t.append(r.elements),i=r.cellTemplates}else this._detachGroupCountClass();return i}_applyCellTemplates(t){t?.forEach(function(e){e()})}_makeGroupRows(t,e){var i=this._isVerticalGroupedWorkSpace()?hw.VERTICAL:hw.HORIZONTAL;return hw.makeGroupedTable(i,t,{groupHeaderRowClass:wy,groupRowClass:wy,groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:Dk},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getGroupCount(),e)}_renderDateHeader(){var t=this._getDateHeaderContainer(),e=(0,u.Z)("<tr>").addClass("dx-scheduler-header-row"),i=this._getCellCount(),r=this._getDateHeaderTemplate(),v=this._getCalculateHeaderCellRepeatCount(),D=[],A=this.isGroupedByDate();if(A){for(var we=A?this._getGroupCount():1,Le=0;Le<i;Le++)this._renderDateHeaderTemplate(e,Le,Le*v,r,D).attr("colSpan",we);t.prepend(e)}else{for(var z=0;z<v;z++)for(var Q=0;Q<i;Q++)this._renderDateHeaderTemplate(e,Q,z*i+Q,r,D);t.append(e)}return this._applyCellTemplates(D),e}_renderDateHeaderTemplate(t,e,i,r,v){var D=this.isGroupedByDate()?Math.floor(i/this._getGroupCount()):i,A=this.viewDataProvider.completeDateHeaderMap,{text:z,startDate:Q}=A[A.length-1][D],ue=(0,u.Z)("<th>").addClass(this._getHeaderPanelCellClass(e)).attr("title",z);return null!=r&&r.render?v.push(r.render.bind(r,{model:(0,ui.Z)({text:z,date:Q},this._getGroupsForDateHeaderTemplate(i)),index:i,container:(0,S.u)(ue)})):ue.text(z),t.append(ue),ue}_getGroupsForDateHeaderTemplate(t){var i,r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._isHorizontalGroupedWorkSpace()&&!this.isGroupedByDate()){i=this._getGroupIndex(0,t*e);var v=Cy(i,this.option("groups"));r=eT(v)}return{groups:r,groupIndex:i}}_getHeaderPanelCellClass(t){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-header-panel-cell "+rR,t+1,void 0,void 0,this.isGroupedByDate())}_renderAllDayPanel(t){var e=this._getCellCount();this._isVerticalGroupedWorkSpace()||(e*=this._getGroupCount()||1);var i=this._renderTableBody({container:(0,S.u)(this._allDayPanels.length?this._allDayTables[t]: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(t),groupIndex:t},!0);this._toggleAllDayVisibility(!0),this._applyCellTemplates(i)}_renderGroupAllDayPanel(){if(this._isVerticalGroupedWorkSpace())for(var t=this._getGroupCount(),e=0;e<t;e++)this._renderAllDayPanel(e)}_getAllDayPanelCellClass(t,e){return this._groupedStrategy.addAdditionalGroupCellClasses(Vp+" "+rR,e+1)}_renderTimePanel(){var t=this._groupedStrategy.calculateTimeCellRepeatCount(),e=(i,r)=>{var v=0;return this.isAllDayPanelVisible&&(v=1),this.isGroupedAllDayPanel()&&(v=Math.ceil((i+1)/this._getRowCount())),this.viewDataProvider.completeTimePanelMap[i+v][r]};this._renderTableBody({container:(0,S.u)(this._$timePanel),rowCount:this._getTimePanelRowCount()*t,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),v=Cy(r,this.option("groups"));return{groupIndex:r,groups:eT(v)}}).bind(this)})}_getTimeCellClass(t){var e=cH+" "+gH;return this._isVerticalGroupedWorkSpace()?this._groupedStrategy.addAdditionalGroupCellClasses(e,t,t):e}_renderDateTable(){var t=this._getGroupCount();this._renderTableBody({container:(0,S.u)(this._$dateTable),rowCount:this._getTotalRowCount(t),cellCount:this._getTotalCellCount(t),cellClass:this._getDateTableCellClass.bind(this),rowClass:Ok,cellTemplate:this.option("dataCellTemplate"),getCellData:(e,i,r)=>{var D=i;if(this.isGroupedAllDayPanel()){var A=this._getRowCount();D+=Math.ceil(i/A)}var Q=this.viewDataProvider.viewDataMap.dateTableMap[D][r].cellData;return{value:this._filterCellDataFields(Q),fullValue:Q,key:CH}},allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayPanels:void 0,groupCount:t,groupByDate:this.option("groupByDate")})}_insertAllDayRowsIntoDateTable(){return this._groupedStrategy.insertAllDayRowsIntoDateTable()}_renderTableBody(t,e){var i=[];return e?i=hw.makeTable(t):this._applyCellTemplates(hw.makeTable(t)),i}};var{tableCreator:wH}=Kk,EH="dx-scheduler-group-table";class SH extends bH{get type(){return is.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(0,y.l)(super._getDefaultOptions(),{agendaDuration:7,rowHeight:60,noDataText:""})}_optionChanged(t){var i=t.value;switch(t.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(t);break;default:super._optionChanged(t)}}_renderFocusState(){return(0,E.ZT)()}_renderFocusTarget(){return(0,E.ZT)()}_cleanFocusState(){return(0,E.ZT)()}supportAllDayRow(){return!1}_isVerticalGroupedWorkSpace(){return!1}_getElementClass(){return"dx-scheduler-agenda"}_calculateStartViewDate(){return((n,t)=>{var e=new Date(n);return zf(e,t)})(this.option("currentDate"),this.option("startDayHour"))}_getRowCount(){return this.option("agendaDuration")}_getCellCount(){return 1}_getTimePanelRowCount(){return this.option("agendaDuration")}_renderAllDayPanel(){return(0,E.ZT)()}_toggleAllDayVisibility(){return(0,E.ZT)()}_initWorkSpaceUnits(){this._initGroupTable(),this._$timePanel=(0,u.Z)("<table>").addClass(v6),this._$dateTable=(0,u.Z)("<table>").addClass(Sk),this._$dateTableScrollableContent=(0,u.Z)("<div>").addClass("dx-scheduler-date-table-scrollable-content"),this._$dateTableContainer=(0,u.Z)("<div>").addClass("dx-scheduler-date-table-container")}_initGroupTable(){var t=this.option("groups");t&&t.length&&(this._$groupTable=(0,u.Z)("<table>").addClass(EH))}_renderView(){this._startViewDate=this._calculateStartViewDate(),this._rows=[],this._initPositionHelper()}_recalculateAgenda(t){var e=[];this._cleanView(),this._rowsIsEmpty(t)?this._renderNoData():(this._rows=t,this._$groupTable&&(e=this._renderGroupHeader(),this._setGroupHeaderCellsHeight()),this._renderTimePanel(),this._renderDateTable(),this.invoke("onAgendaReady",t),this._applyCellTemplates(e),this._dateTableScrollable.update())}_renderNoData(){this._$noDataContainer=(0,u.Z)("<div>").addClass("dx-scheduler-agenda-nodata").html(this.option("noDataText")),this._dateTableScrollable.$content().append(this._$noDataContainer)}_setTableSizes(){return(0,E.ZT)()}_toggleHorizontalScrollClass(){return(0,E.ZT)()}_createCrossScrollingConfig(){return(0,E.ZT)()}_setGroupHeaderCellsHeight(){var t=this._getGroupHeaderCells().filter(function(v,D){return!D.getAttribute("rowSpan")}),e=this._removeEmptyRows(this._rows);if(e.length)for(var i=0;i<t.length;i++){var r=t.eq(i).find(".dx-scheduler-group-header-content");(0,s.qt)(r,this._getGroupRowHeight(e[i]))}}_rowsIsEmpty(t){for(var e=!0,i=0;i<t.length;i++)for(var r=t[i],v=0;v<r.length;v++)if(r[v]){e=!1;break}return e}_attachGroupCountClass(){var t=H6(this.option("groups"));this.$element().addClass(t)}_removeEmptyRows(t){for(var e=[],i=0;i<t.length;i++)t[i].length&&t[i].some(function(v){return v>0})&&e.push(t[i]);return e}_getGroupHeaderContainer(){return this._$groupTable}_makeGroupRows(){var t=((n,t,e)=>{var i=ow(n);return WN(t,i,e)})(this.option("loadedResources"),(D,A)=>nT(this.option("getResourceDataAccessors")(),D,A),this.option("getFilteredItems")()),e=this.option("resourceCellTemplate"),i=Dk,r=[],v=wH.makeGroupedTableFromJSON(wH.VERTICAL,t,{cellTag:"th",groupTableClass:EH,groupRowClass:wy,groupCellClass:this._getGroupHeaderClass(),groupCellCustomContent(D,A,z,Q){var ue=b.Z.createElement("div"),we=b.Z.createElement("div");ue.className=i,we.appendChild(A),ue.appendChild(we),ue.className=i,e&&e.render?r.push(e.render.bind(e,{model:{data:Q.data,id:Q.value,color:Q.color,text:A.textContent},container:(0,S.u)((0,u.Z)(ue)),index:z})):(we.appendChild(A),ue.appendChild(we)),D.appendChild(ue)},cellTemplate:e});return{elements:(0,u.Z)(v).find(".".concat(wy)),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:(0,S.u)(this._$dateTable),rowClass:Ok,cellClass:this._getDateTableCellClass()})}_attachTablesEvents(){return(0,E.ZT)()}_attachEvents(){return(0,E.ZT)()}_cleanCellDataCache(){return(0,E.ZT)()}isIndicationAvailable(){return!1}_prepareCellTemplateOptions(t,e,i,r){var v=this.option("groups"),D={},A=!!v.length;(A&&NN(i,v)||[]).forEach(function(ue,we){D[v[we].name]=ue});var Q=A?this._getGroupIndexByResourceId(D):void 0;return{model:{text:t,date:e,groups:D,groupIndex:Q},container:(0,S.u)(r),index:i}}_renderTableBody(t){var e=[],i=t.cellTemplate;this._$rows=[];var r,v=function(D,A){if(A){var z,Q,ue,we=(0,u.Z)("<tr>"),Le=(0,u.Z)("<td>");if((0,s.QQ)(Le,this._getRowHeight(A)),t.getStartDate&&(z=t.getStartDate&&t.getStartDate(D),Q=Bo.Z.format(z,"d"),ue=Bo.Z.format(z,Pk)),i&&i.render){var Ue=this._prepareCellTemplateOptions(Q+" "+ue,z,r,Le);e.push(i.render.bind(i,Ue))}else Q&&ue&&Le.addClass("dx-scheduler-agenda-date").text(Q+" "+ue);t.rowClass&&we.addClass(t.rowClass),t.cellClass&&Le.addClass(t.cellClass),we.append(Le),this._$rows.push(we)}}.bind(this);for(r=0;r<this._rows.length;r++)(0,O.S6)(this._rows[r],v),this._setLastRowClass();(0,u.Z)(t.container).append((0,u.Z)("<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:(0,S.u)(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(t){var e=new Date(this.option("currentDate"));return new Date(e.setDate(e.getDate()+t))}_getRowHeight(t){var e=this.option("rowHeight");return t?e*t+5*(t-1)+20:0}_getGroupRowHeight(t){if(t){for(var e=0,i=0;i<t.length;i++)e+=this._getRowHeight(t[i]);return e}}_calculateRows(t){return this.renderingStrategy.calculateRows(t,this.option("agendaDuration"),this.option("currentDate"))}onDataSourceChanged(t){super.onDataSourceChanged(),this._renderView();var e=this._calculateRows(t);this._recalculateAgenda(e)}getAgendaVerticalStepHeight(){return this.option("rowHeight")}getEndViewDate(){var t=new Date(this.option("currentDate")),e=this.option("agendaDuration");t.setHours(this.option("endDayHour"));var i=t.setDate(t.getDate()+e-1)-6e4;return new Date(i)}getEndViewDateByEndDayHour(){return this.getEndViewDate()}getCellDataByCoordinates(){return{startDate:null,endDate:null}}updateScrollPosition(t){var e=this.timeZoneCalculator.createDate(t,{path:"toGrid"}),i=this.getVisibleBounds(),r=e.getHours(),v=e.getMinutes();this.needUpdateScrollPosition(r,v,i,e)&&this.scrollToTime(r,v,e)}needUpdateScrollPosition(t,e,i){var r=!1;return(t<i.top.hours||t>i.bottom.hours)&&(r=!0),t===i.top.hours&&e<i.top.minutes&&(r=!0),t===i.bottom.hours&&e>i.top.minutes&&(r=!0),r}renovatedRenderSupported(){return!1}_setSelectedCellsByCellData(){}_getIntervalDuration(){return te.Z.dateToMilliseconds("day")*this.option("intervalCount")}getDOMElementsMetaData(){return{dateTableCellsMeta:[[{}]],allDayPanelCellsMeta:[{}]}}}(0,T.Z)("dxSchedulerAgenda",SH);const dde=SH;var Iy=te.Z.dateToMilliseconds,OH="dx-scheduler-date-time-indicator",aR="dx-scheduler-time-panel-current-time-cell";class DH extends bH{_getToday(){return N6(this.option("indicatorTime"),this.timeZoneCalculator)}isIndicationOnView(){if(this.option("showCurrentTimeIndicator")){var t=this._getToday(),e=te.Z.trimTime(this.getEndViewDate());return te.Z.dateInRange(t,this.getStartViewDate(),new Date(e.getTime()+Iy("day")))}return!1}isIndicationAvailable(){return!!(0,fi.Ym)()&&this._getToday()>=te.Z.trimTime(new Date(this.getStartViewDate()))}isIndicatorVisible(){var t=this._getToday(),e=new Date(this.getEndViewDate().getTime()+Iy("minute")-1),i=new Date(this.getStartViewDate());return i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),te.Z.dateInRange(t,i,e)}_renderDateTimeIndication(){if(this.isIndicationAvailable()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(),this.isIndicationOnView()&&this.isIndicatorVisible())){var t=this._getGroupCount()||1,e=this._dateTableScrollable.$content(),i=this.getIndicationHeight(),r=this._getRtlOffset(this.getCellWidth());this._renderIndicator(i,r,e,t),this._setCurrentTimeCells()}}_renderIndicator(t,e,i,r){for(var v=this.isGroupedByDate(),D=v?1:r,A=0;A<D;A++){var z=this._createIndicator(i);(0,s.cl)(z,v?this.getCellWidth()*r:this.getCellWidth()),this._groupedStrategy.shiftIndicator(z,t,e,A)}}_createIndicator(t){var e=(0,u.Z)("<div>").addClass(OH);return t.append(e),e}_getRtlOffset(t){return this.option("rtlEnabled")?(0,Zo.l)(this._dateTableScrollable.$content().get(0)).width-this.getTimePanelWidth()-t: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(t){var e=this.getCellWidth()*this._getCellCount(),i=this._getIndicatorDuration();i>this._getCellCount()&&(i=this._getCellCount());var r=i*this.getRoundedCellWidth(t,t*this._getCellCount(),i);return e<r?e:r}getIndicatorOffset(t){var e=this._getIndicatorDuration()-1;return e*this.getRoundedCellWidth(t,t*this._getCellCount(),e)}_getIndicatorDuration(){var t=this._getToday(),e=new Date(this.getStartViewDate()),i=t.getTime()-e.getTime();return"workWeek"===this.option("type")&&(i-=this._getWeekendsCount(Math.round(i/Iy("day")))*Iy("day")),Math.ceil((i+1)/Iy("day"))}getIndicationHeight(){var t=Xo.getDateWithoutTimezoneChange(this._getToday()),e=this.getCellHeight(),i=new Date(this.getStartViewDate());return this.isIndicationOnView()&&i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),(t.getTime()-i.getTime())/this.getCellDuration()*e}_dispose(){this._clearIndicatorUpdateInterval(),super._dispose.apply(this,arguments)}_refreshDateTimeIndication(){var t;this._cleanDateTimeIndicator(),this._cleanCurrentTimeCells(),null===(t=this._shader)||void 0===t||t.clean(),this._renderDateTimeIndication()}_setCurrentTimeCells(){var t=this._getTimePanelCells();this._getCurrentTimePanelCellIndices().forEach(i=>{t.eq(i).addClass(aR)})}_isCurrentTimeHeaderCell(t){if(this.isIndicationOnView()){var e=this.viewDataProvider.completeDateHeaderMap;return te.Z.sameDate(e[e.length-1][t].startDate,this._getToday())}return!1}_getHeaderPanelCellClass(t){var e=super._getHeaderPanelCellClass(t);return this._isCurrentTimeHeaderCell(t)?e+" "+aT:e}_cleanView(){super._cleanView(),this._cleanDateTimeIndicator()}_dimensionChanged(){super._dimensionChanged(),this._refreshDateTimeIndication()}_cleanDateTimeIndicator(){this.$element().find("."+OH).remove()}_cleanCurrentTimeCells(){this.$element().find(".".concat(aR)).removeClass(aR)}_cleanWorkSpace(){super._cleanWorkSpace(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()}_optionChanged(t){switch(t.name){case"showCurrentTimeIndicator":case"indicatorTime":this._cleanWorkSpace();break;case"indicatorUpdateInterval":this._setIndicationUpdateInterval();break;case"showAllDayPanel":case"allDayExpanded":case"crossScrollingEnabled":super._optionChanged(t),this._refreshDateTimeIndication();break;case"shadeUntilCurrentTime":this._refreshDateTimeIndication();break;default:super._optionChanged(t)}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{showCurrentTimeIndicator:!0,indicatorTime:new Date,indicatorUpdateInterval:5*Iy("minute"),shadeUntilCurrentTime:!0})}_getCurrentTimePanelCellIndices(){var v,t=this._getTimePanelRowCount(),e=this._getToday(),i=this.getCellIndexByDate(e),{rowIndex:r}=this._getCellCoordinatesByIndex(i);if(void 0===r)return[];v=0===r?[r]:r%2==0?[r-1,r]:[r,r+1];var D=this._isVerticalGroupedWorkSpace()?this._getGroupCount():1;return[...new Array(D)].reduce((A,z,Q)=>[...A,...v.map(ue=>t*Q+ue)],[])}}(0,T.Z)("dxSchedulerWorkSpace",DH);const sR=DH,hde=class cde extends C4{renderShader(){for(var t=this._workSpace._isHorizontalGroupedWorkSpace()?this._workSpace._getGroupCount():1,e=0;e<t;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(t,e){var i=this._workSpace.getIndicationWidth();if(this._applyShaderWidth(t,i),e>=1){var r=this._workSpace,v=r._getCellCount()*r.getCellWidth();t.css("left",v)}else t.css("left",0)}_applyShaderWidth(t,e){var i=(0,Zo.l)(this._$container.get(0)).width;e>i&&(e=i),e>0&&(0,s.cl)(t,e)}_customizeGroupedByDateShader(t,e){var Q,i=this._workSpace.getIndicationCellCount(),r=Math.floor(i),v=i-r,D=0===e,A=this._workSpace,z=D?A.getIndicationWidth():v*A.getCellWidth();this._applyShaderWidth(t,z),Q=D?A._getCellCount()*A.getCellWidth()*e:A.getCellWidth()*r*A._getGroupCount()+e*A.getCellWidth(),t.css("left",Q)}};var pde=(n,t,e)=>{if(!Xo.isTimezoneChangeInDate(t))return t;var{cellCountInDay:i,interval:r,startDayHour:v,startViewDate:D}=e,A=F6(D,v),z=n%i;return A.setTime(A.getTime()+z*r),A},gde=["dateCellTemplate","dateHeaderData","groupByDate","groupOrientation","groups","timeCellTemplate"],{isMaterial:fde}=oH(),TH=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let _de=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get isHorizontalGrouping(){var{groupByDate:e,groupOrientation:i,groups:r}=this.props;return lw(r,i)&&!e}get restAttributes(){return(0,Ti.Z)(this.props,gde)}render(){var e=this.props;return(n=>{var{isHorizontalGrouping:t,props:{dateCellTemplate:e,dateHeaderData:i,timeCellTemplate:r}}=n,{dataMap:v,isMonthDateHeader:D,leftVirtualCellCount:A,leftVirtualCellWidth:z,rightVirtualCellCount:Q,rightVirtualCellWidth:ue,weekDayLeftVirtualCellCount:we,weekDayLeftVirtualCellWidth:Le,weekDayRightVirtualCellCount:Ue,weekDayRightVirtualCellWidth:ut}=i;return(0,Ji.xJ)(v.map((It,Gt)=>{var ln=v.length,En=ln-1===Gt,on=ln>1&&0===Gt,Nt=fde&&(D||on),Jt=A,un=Q,Mn=ue,Kn=z;return on&&(Jt=we,un=Ue,Mn=ut,Kn=Le),(0,Ji.Iz)(2,t_,{className:"dx-scheduler-header-row",leftVirtualCellWidth:Kn,leftVirtualCellCount:Jt,rightVirtualCellWidth:Mn,rightVirtualCellCount:un,children:It.map(Xn=>{var{colSpan:si,endDate:pi,groupIndex:yi,groups:Ui,index:Bi,isFirstGroupCell:oi,isLastGroupCell:Fi,key:Zi,startDate:nr,text:hr,today:gr}=Xn;return(0,Ji.Iz)(2,rH,{startDate:nr,endDate:pi,groups:t?Ui:void 0,groupIndex:t?yi:void 0,today:gr,index:Bi,text:hr,isFirstGroupCell:oi,isLastGroupCell:Fi,isWeekDayCell:on,colSpan:si,splitText:Nt,dateCellTemplate:e,timeCellTemplate:r,isTimeCellTemplate:En},Zi)})},Gt.toString())}),0)})({props:(0,ui.Z)({},e,{dateCellTemplate:TH(e.dateCellTemplate),timeCellTemplate:TH(e.timeCellTemplate)}),isHorizontalGrouping:this.isHorizontalGrouping,restAttributes:this.restAttributes})}}return n.defaultProps=aH,n})();var vde=["className","dateCellTemplate","dateHeaderData","dateHeaderTemplate","elementRef","groupByDate","groupOrientation","groupPanelData","groups","height","isRenderDateHeader","resourceCellTemplate","timeCellTemplate"],TT=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let Cde=(()=>{class n extends ho.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,ho.gt)()]}get restAttributes(){return(0,Ti.Z)(this.props,vde)}render(){var e=this.props;return(n=>{var{props:{dateCellTemplate:t,dateHeaderData:e,groupByDate:i,groupOrientation:r,groupPanelData:v,groups:D,isRenderDateHeader:A,resourceCellTemplate:z,timeCellTemplate:Q}}=n;return(0,Ji.Iz)(2,uH,{dateHeaderTemplate:_de,dateHeaderData:e,groupPanelData:v,groupByDate:i,groups:D,groupOrientation:r,isRenderDateHeader:A,resourceCellTemplate:z,dateCellTemplate:t,timeCellTemplate:Q})})({props:(0,ui.Z)({},e,{dateCellTemplate:TT(e.dateCellTemplate),timeCellTemplate:TT(e.timeCellTemplate),dateHeaderTemplate:TT(e.dateHeaderTemplate),resourceCellTemplate:TT(e.resourceCellTemplate)}),restAttributes:this.restAttributes})}}return n.defaultProps=lH,n})();class IH extends nH{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 Cde}}(0,T.Z)("dxTimelineHeaderPanelLayout",IH);var{tableCreator:lR}=Kk,MH="dx-scheduler-group-table",AH="dx-scheduler-header-panel-cell",PH="dx-scheduler-header-panel-week-cell",Wf=te.Z.dateToMilliseconds;class kH extends sR{get verticalGroupTableClass(){return MH}get viewDirection(){return"horizontal"}get renovatedHeaderPanelComponent(){return IH}getGroupTableWidth(){return this._$sidebarTable?(0,s.Y_)(this._$sidebarTable):0}_getTotalRowCount(t){return this._isHorizontalGroupedWorkSpace()?this._getRowCount():(t=t||1,this._getRowCount()*t)}_getFormat(){return"shorttime"}_getWorkSpaceHeight(){return this.option("crossScrollingEnabled")&&(0,fi.Ym)()?(0,Zo.l)(this._$dateTable.get(0)).height:(0,Zo.l)(this.$element().get(0)).height}_dateTableScrollableConfig(){var t=super._dateTableScrollableConfig();return this.option("crossScrollingEnabled")?t:(0,y.l)(t,{direction:"horizontal"})}_needCreateCrossScrolling(){return!0}_headerScrollableConfig(){var t=super._headerScrollableConfig();return(0,y.l)(t,{scrollByContent:!0})}supportAllDayRow(){return!1}_getGroupHeaderContainer(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable}_insertAllDayRowsIntoDateTable(){return!1}_needRenderWeekHeader(){return!1}_incrementDate(t){t.setDate(t.getDate()+1)}getIndicationCellCount(){var t=this._getTimeDiff();return this._calculateDurationInCells(t)}_getTimeDiff(){var t=this._getToday(),e=this._getIndicationFirstViewDate(),i=this.getStartViewDate(),r=Xo.getDaylightOffsetInMs(i,t);return r&&(t=new Date(t.getTime()+r)),t.getTime()-e.getTime()}_calculateDurationInCells(t){var e=this._getToday(),i=Math.floor(t/Wf("day")),r=(t-i*Wf("day")-this.option("startDayHour")*Wf("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 t=this.getIndicationCellCount(),e=Math.floor(t),i=t-e;return this.getCellWidth()*(e*this._getGroupCount()+i)}return this.getIndicationCellCount()*this.getCellWidth()}_isVerticalShader(){return!1}_isCurrentTimeHeaderCell(){return!1}_setTableSizes(){var t=this._getWorkSpaceMinHeight();(0,s.QQ)(this._$sidebarTable,t),(0,s.QQ)(this._$dateTable,t),super._setTableSizes(),this.virtualScrollingDispatcher.updateDimensions()}_getWorkSpaceMinHeight(){var t=this._getWorkSpaceHeight(),e=(0,s.zp)(this.$element(),!0)-this.getHeaderPanelHeight()-2-10;return t<e&&(t=e),t}_getCellCoordinatesByIndex(t){return{columnIndex:t%this._getCellCount(),rowIndex:0}}_getCellByCoordinates(t,e){var i=this._groupedStrategy.prepareCellIndexes(t,e);return this._$dateTable.find("tr").eq(i.rowIndex).find("td").eq(i.columnIndex)}_getWorkSpaceWidth(){return(0,s.Y_)(this._$dateTable,!0)}_getIndicationFirstViewDate(){return te.Z.trimTime(new Date(this.getStartViewDate()))}_getIntervalBetween(t,e){var i=this.option("startDayHour"),r=this.option("endDayHour"),v=this.getStartViewDate(),D=v.getTime(),A=(24-r+i)*Wf("hour"),z=te.Z.getTimezonesDifference(v,t),Q=t.getTime(),ue=Q-D-z,we=Math.floor(ue/Wf("day")),Le=ue-we*Wf("day"),Ue=0,ut=this._getCellCountInDay()*(we-this._getWeekendsCount(we)),It=Q-te.Z.trimTime(new Date(t)).getTime(),Gt=ut*this.option("hoursInterval")*Wf("hour");return e||(t.getHours()<i?Ue=Le-A+It:t.getHours()>=i&&t.getHours()<r?Ue=Le:t.getHours()>=i&&t.getHours()>=r?Ue=Le-(It-r*Wf("hour")):we||(Gt=ue),Gt+=Ue),Gt}_getWeekendsCount(){return 0}getAllDayContainer(){return null}getTimePanelWidth(){return 0}getIntervalDuration(t){return this.getCellDuration()}getCellMinWidth(){return 0}getWorkSpaceLeftOffset(){return 0}scrollToTime(t,e,i){var r=this._getScrollCoordinates(t,e,i),v=this.getScrollable(),D=this.option("rtlEnabled")?(0,Zo.l)(this.getScrollableContainer().get(0)).width:0;this.option("templatesRenderAsynchronously")?setTimeout(function(){v.scrollBy({left:r.left-v.scrollLeft()-D,top:0})}):v.scrollBy({left:r.left-v.scrollLeft()-D,top:0})}renderRAllDayPanel(){}renderRTimeTable(){}_renderGroupAllDayPanel(){}generateRenderOptions(){var t=super.generateRenderOptions(!0);return(0,ui.Z)({},t,{isGenerateWeekDaysHeaderData:this._needRenderWeekHeader(),getDateForHeaderText:pde})}_init(){super._init(),this.$element().addClass("dx-scheduler-timeline"),this._$sidebarTable=(0,u.Z)("<div>").addClass(MH)}_getDefaultGroupStrategy(){return"vertical"}_toggleGroupingDirectionClass(){this.$element().toggleClass("dx-scheduler-work-space-horizontal-grouped",this._isHorizontalGroupedWorkSpace())}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{groupOrientation:"vertical"})}_createWorkSpaceElements(){this._createWorkSpaceScrollableElements()}_toggleAllDayVisibility(){return(0,E.ZT)()}_changeAllDayVisibility(){return(0,E.ZT)()}_getDateHeaderTemplate(){return this.option("timeCellTemplate")}_renderView(){var t;this.isRenovatedRender()||(t=this._renderGroupHeader()),this.renderWorkSpace(),this.isRenovatedRender()&&this.virtualScrollingDispatcher.updateDimensions(),this._shader=new hde(this),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this.isRenovatedRender()&&this._isVerticalGroupedWorkSpace()&&this.renderRGroupPanel(),this.updateHeaderEmptyCellWidth(),this._applyCellTemplates(t)}_setHorizontalGroupHeaderCellsHeight(){return(0,E.ZT)()}_setCurrentTimeCells(){var t=this._getTimePanelCells();this._getCurrentTimePanelCellIndices().forEach(i=>{t.eq(i).addClass(aT)})}_cleanCurrentTimeCells(){this.$element().find(".".concat(aT)).removeClass(aT)}_getTimePanelCells(){return this.$element().find(".".concat(AH,":not(.").concat(PH,")"))}_getCurrentTimePanelCellIndices(){var t=this._getCellCount(),e=this._getToday(),i=this.getCellIndexByDate(e),{columnIndex:r}=this._getCellCoordinatesByIndex(i);if(void 0===r)return[];var v=this._isHorizontalGroupedWorkSpace()&&!this.isGroupedByDate()?this._getGroupCount():1;return[...new Array(v)].map((D,A)=>t*A+r)}_renderTimePanel(){return(0,E.ZT)()}_renderAllDayPanel(){return(0,E.ZT)()}_createAllDayPanelElements(){return(0,E.ZT)()}_renderDateHeader(){var t=super._renderDateHeader();if(this._needRenderWeekHeader()){for(var e=new Date(this.getStartViewDate()),i=new Date(e),r=[],v=this._getGroupCount(),D=this._getCellCountInDay(),A=this.isGroupedByDate()?D*v:D,z=this.option("dateCellTemplate"),Q=this._isHorizontalGroupedWorkSpace()&&!this.isGroupedByDate()?v:1,ue=this.viewDataProvider.viewDataGenerator.daysInInterval*this.option("intervalCount"),we=ue*Q,Le=0;Le<we;Le++){var Ue=(0,u.Z)("<th>"),ut=hT(i);if(z){var It={model:(0,ui.Z)({text:ut,date:new Date(i)},this._getGroupsForDateHeaderTemplate(Le,A)),container:Ue,index:Le};z.render(It)}else Ue.text(ut);Ue.addClass(AH).addClass(PH).attr("colSpan",A),r.push(Ue),Le%ue==ue-1?i=new Date(e):this._incrementDate(i)}var Gt=(0,u.Z)("<tr>").addClass("dx-scheduler-header-row").append(r);t.before(Gt)}}_renderIndicator(t,e,i,r){var v,D=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))v=this._createIndicator(i),(0,s.QQ)(v,(0,Zo.l)(i.get(0)).height),v.css("left",e?e-D:D);else for(var A=0;A<r;A++){var z=this.isGroupedByDate()?A*this.getCellWidth():this._getCellCount()*this.getCellWidth()*A;v=this._createIndicator(i),(0,s.QQ)(v,(0,Zo.l)(i.get(0)).height),v.css("left",e?e-D-z:D+z)}}_makeGroupRows(t,e){var i="vertical"===this.option("groupOrientation")?lR.VERTICAL:lR.HORIZONTAL;return lR.makeGroupedTable(i,t,{groupRowClass:wy,groupHeaderRowClass:wy,groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:Dk},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getTotalRowCount(this._getGroupCount()),e)}}(0,T.Z)("dxSchedulerTimeline",kH);const uR=kH;class RH extends uR{get type(){return is.TIMELINE_DAY}_getElementClass(){return"dx-scheduler-timeline-day"}_needRenderWeekHeader(){return this._isWorkSpaceWithCount()}}(0,T.Z)("dxSchedulerTimelineDay",RH);const Tde=RH;class LH extends uR{get type(){return is.TIMELINE_MONTH}get viewDirection(){return"horizontal"}get renovatedHeaderPanelComponent(){return Qk}_renderView(){super._renderView(),this._updateScrollable()}_getElementClass(){return"dx-scheduler-timeline-month"}_getDateHeaderTemplate(){return this.option("dateCellTemplate")}_calculateDurationInCells(t){return t/this.getCellDuration()}isIndicatorVisible(){return!0}_getFormat(){return hT}_getIntervalBetween(t){var e=this.getStartViewDate(),i=te.Z.getTimezonesDifference(e,t);return t.getTime()-(e.getTime()-36e5*this.option("startDayHour"))-i}_getViewStartByOptions(){return cw(this.option("startDate"),this.option("currentDate"),this.option("intervalCount"),te.Z.getFirstMonthDate(this.option("startDate")))}generateRenderOptions(){var t=super.generateRenderOptions(!0);return(0,ui.Z)({},t,{getDateForHeaderText:(e,i)=>i})}}(0,T.Z)("dxSchedulerTimelineMonth",LH);const Mde=LH;class dR extends uR{get type(){return is.TIMELINE_WEEK}_getElementClass(){return"dx-scheduler-timeline-week"}_getHeaderPanelCellWidth(t){return(0,Zo.l)(t.children().first().get(0)).width}_needRenderWeekHeader(){return!0}_incrementDate(t){t.setDate(t.getDate()+1)}}(0,T.Z)("dxSchedulerTimelineWeek",dR);class BH extends dR{get type(){return is.TIMELINE_WORK_WEEK}constructor(){super(...arguments),this._getWeekendsCount=L4}_getElementClass(){return"dx-scheduler-timeline-work-week"}_incrementDate(t){5===t.getDay()&&t.setDate(t.getDate()+2),super._incrementDate(t)}}(0,T.Z)("dxSchedulerTimelineWorkWeek",BH);const Rde=BH,FH=class Lde extends sR{_getFormat(){return hT}generateRenderOptions(){var t=super.generateRenderOptions();return(0,ui.Z)({},t,{isGenerateTimePanelData:!0})}_isRenderHeaderPanelEmptyCell(){return!0}};class VH extends FH{get type(){return is.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)}}(0,T.Z)("dxSchedulerWorkSpaceDay",VH);const Fde=VH;var Vde=["allDay","ariaLabel","children","className","contentTemplateProps","dataCellTemplate","endDate","firstDayOfMonth","groupIndex","groups","index","isFirstGroupCell","isFocused","isLastGroupCell","isSelected","otherMonth","startDate","text","today"],Hde=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let zde=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={},this.__getterCache={}}get classes(){var{className:e,firstDayOfMonth:i,otherMonth:r,today:v}=this.props;return(0,Ih.G)({"dx-scheduler-date-table-other-month":!!r,"dx-scheduler-date-table-current-date":!!v,"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(0,Ti.Z)(this.props,Vde)}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(n=>{var{classes:t,contentTemplateProps:e,props:{dataCellTemplate:i,endDate:r,groupIndex:v,groups:D,index:A,isFirstGroupCell:z,isFocused:Q,isLastGroupCell:ue,isSelected:we,startDate:Le,text:Ue}}=n;return(0,Ji.Iz)(2,wT,{className:t,dataCellTemplate:i,startDate:Le,endDate:r,text:Ue,groups:D,groupIndex:v,index:A,isFirstGroupCell:z,isLastGroupCell:ue,isSelected:we,isFocused:Q,contentTemplateProps:e,children:(0,Ji.Wm)(1,"div","dx-scheduler-date-table-cell-text",Ue,0)})})({props:(0,ui.Z)({},e,{dataCellTemplate:Hde(e.dataCellTemplate)}),classes:this.classes,contentTemplateProps:this.contentTemplateProps,restAttributes:this.restAttributes})}}return n.defaultProps=Xk,n})();var Wde=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","cellTemplate","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","tableRef","topVirtualRowHeight","viewData","width"],NH=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let Zde=(()=>{class n extends ho.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,ho.gt)()]}get restAttributes(){return(0,Ti.Z)(this.props,Wde)}render(){var e=this.props;return(n=>{var{props:{addDateTableClass:t,addVerticalSizesClassToRows:e,dataCellTemplate:i,groupOrientation:r,tableRef:v,viewData:D,width:A},restAttributes:z}=n;return(0,Ji.vs)((0,Ji.Iz)(2,Z4,(0,ui.Z)({viewData:D,groupOrientation:r,addDateTableClass:t,dataCellTemplate:i,cellTemplate:zde,tableRef:v,addVerticalSizesClassToRows:e,width:A},z)))})({props:(0,ui.Z)({},e,{cellTemplate:NH(e.cellTemplate),dataCellTemplate:NH(e.dataCellTemplate)}),restAttributes:this.restAttributes})}}return n.defaultProps=W4,n})();class HH extends Gk{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["cellTemplate","dataCellTemplate"],props:["cellTemplate","viewData","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","bottomVirtualRowHeight","addDateTableClass","addVerticalSizesClassToRows","width","dataCellTemplate"]}}get _viewComponent(){return Zde}}(0,T.Z)("dxMonthDateTableLayout",HH);var Xde=te.Z.dateToMilliseconds;class zH extends sR{get type(){return is.MONTH}_getElementClass(){return"dx-scheduler-work-space-month"}_getFormat(){return Pk}_getIntervalBetween(t){var e=this.getStartViewDate(),i=te.Z.getTimezonesDifference(e,t);return t.getTime()-(e.getTime()-36e5*this.option("startDayHour"))-i}_getDateGenerationOptions(){return(0,ui.Z)({},super._getDateGenerationOptions(),{cellCountInDay:1})}getCellWidth(){return this.cache.get("cellWidth",()=>{var t=0,e=this._getCells().slice(0,7);return e.each((i,r)=>{t+=(0,fi.Ym)()?(0,Zo.l)(r).width:0}),0===e.length?void 0:t/7})}_insertAllDayRowsIntoDateTable(){return!1}_getCellCoordinatesByIndex(t){var e=Math.floor(t/this._getCellCount());return{rowIndex:e,columnIndex:t-this._getCellCount()*e}}_needCreateCrossScrolling(){return this.option("crossScrollingEnabled")||this._isVerticalGroupedWorkSpace()}_getViewStartByOptions(){return cw(this.option("startDate"),this.option("currentDate"),this.option("intervalCount"),te.Z.getFirstMonthDate(this.option("startDate")))}_updateIndex(t){return t}isIndicationAvailable(){return!1}getIntervalDuration(){return Xde("day")}getTimePanelWidth(){return 0}supportAllDayRow(){return!1}keepOriginalHours(){return!0}getWorkSpaceLeftOffset(){return 0}needApplyCollectorOffset(){return!0}_getHeaderDate(){return this._getViewStartByOptions()}scrollToTime(){return(0,E.ZT)()}renderRAllDayPanel(){}renderRTimeTable(){}renderRDateTable(){ml.renovation.renderComponent(this,this._$dateTable,HH,"renovatedDateTable",this._getRDateTableProps())}_createWorkSpaceElements(){this._isVerticalGroupedWorkSpace()?this._createWorkSpaceScrollableElements():super._createWorkSpaceElements()}_toggleAllDayVisibility(){return(0,E.ZT)()}_changeAllDayVisibility(){return(0,E.ZT)()}_renderTimePanel(){return(0,E.ZT)()}_renderAllDayPanel(){return(0,E.ZT)()}_setMonthClassesToCell(t,e){t.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(t){t.getCellText=(e,i)=>P4(this.viewDataProvider.completeViewDataMap[e][i].startDate,this.option("intervalCount")),t.getCellTextClass="dx-scheduler-date-table-cell-text",t.setAdditionalClasses=this._setMonthClassesToCell.bind(this),super._renderTableBody(t)}}(0,T.Z)("dxSchedulerWorkSpaceMonth",zH);const qde=zH;class WH extends FH{get type(){return is.WEEK}_getElementClass(){return"dx-scheduler-work-space-week"}_calculateViewStartDate(){return((n,t)=>{var e=this._firstDayOfWeek()??Bo.Z.firstDayOfWeekIndex();return te.Z.getFirstWeekDate(n,e)})(this.option("startDate"))}}(0,T.Z)("dxSchedulerWorkSpaceWeek",WH);const UH=WH;class ZH extends UH{get type(){return is.WORK_WEEK}constructor(){super(...arguments),this._getWeekendsCount=L4}_getElementClass(){return"dx-scheduler-work-space-work-week"}}(0,T.Z)("dxSchedulerWorkSpaceWorkWeek",ZH);const ece=ZH;var tce=["dateText"],ice={dateText:""};let rce=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Ti.Z)(this.props,tce)}render(){return(n=>{var{props:{dateText:t}}=n;return(0,Ji.Wm)(1,"div","dx-scheduler-appointment-content-details",(0,Ji.Wm)(1,"div","dx-scheduler-appointment-content-date",t,0),2)})({props:(0,ui.Z)({},this.props),restAttributes:this.restAttributes})}}return n.defaultProps=ice,n})();var oce=["text"],sce={text:""};let lce=(()=>{class n extends ho.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Ti.Z)(this.props,oce)}render(){return(n=>{var{props:{text:t}}=n;return(0,Ji.Wm)(1,"div","dx-scheduler-appointment-title",t,0)})({props:(0,ui.Z)({},this.props),restAttributes:this.restAttributes})}}return n.defaultProps=sce,n})();var uce=["appointmentTemplate","data","dateText","hideReducedIconTooltip","index","isRecurrent","isReduced","showReducedIconTooltip","text"],cce={text:"",dateText:"",isRecurrent:!1,isReduced:!1,index:0},hce=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let pce=(()=>{class n extends ho.OS{constructor(e){super(e),this.state={},this.refReducedIcon=(0,Ji.Vf)(),this.bindHoverEffect=this.bindHoverEffect.bind(this),this.onReducedIconMouseEnter=this.onReducedIconMouseEnter.bind(this),this.onReducedIconMouseLeave=this.onReducedIconMouseLeave.bind(this)}createEffects(){return[new ho.b0(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(),v=()=>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",v),()=>{var D,A;null===(D=this.refReducedIcon.current)||void 0===D||D.removeEventListener("mouseenter",r),null===(A=this.refReducedIcon.current)||void 0===A||A.removeEventListener("mouseleave",v)}}onReducedIconMouseEnter(){this.props.showReducedIconTooltip({target:this.refReducedIcon.current,endDate:this.props.data.appointmentData.endDate})}onReducedIconMouseLeave(){this.props.hideReducedIconTooltip()}get restAttributes(){return(0,Ti.Z)(this.props,uce)}render(){var e=this.props;return(n=>{var{props:{appointmentTemplate:t,data:e,dateText:i,index:r,isRecurrent:v,isReduced:D,text:A},refReducedIcon:z}=n;return(0,Ji.Wm)(1,"div","dx-scheduler-appointment-content",t?t({data:e,index:r}):(0,Ji.xJ)([(0,Ji.Iz)(2,lce,{text:A}),(0,Ji.Iz)(2,rce,{dateText:i}),v&&(0,Ji.Wm)(1,"div","dx-scheduler-appointment-recurrence-icon dx-icon-repeat"),D&&(0,Ji.Wm)(1,"div","dx-scheduler-appointment-reduced-icon",null,1,null,null,z)],0),0)})({props:(0,ui.Z)({},e,{appointmentTemplate:hce(e.appointmentTemplate)}),refReducedIcon:this.refReducedIcon,onReducedIconMouseEnter:this.onReducedIconMouseEnter,onReducedIconMouseLeave:this.onReducedIconMouseLeave,restAttributes:this.restAttributes})}}return n.defaultProps=cce,n})();var gce=l(2735),qu=(0,ho.kr)(void 0),fce=["appointmentTemplate","groups","hideReducedIconTooltip","index","onItemClick","onItemDoubleClick","showReducedIconTooltip","viewModel"],_ce={index:0},vce=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let yce=(()=>{class n extends ho.OS{constructor(e){super(e),this.ref=(0,Ji.Vf)(),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[qu.id]?this.context[qu.id]:qu.defaultValue}createEffects(){return[new ho.b0(this.updateStylesEffect,[this.props.viewModel,this.appointmentsContextValue,this.props.groups]),new ho.b0(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:v}=i;d6({resources:this.appointmentsContextValue.resources,resourceLoaderMap:this.appointmentsContextValue.resourceLoaderMap,resourcesDataAccessors:this.appointmentsContextValue.dataAccessors.resources,loadedResources:this.appointmentsContextValue.loadedResources},{itemData:v,groupIndex:r,groups:this.props.groups}).then(D=>{this.setState(A=>({color:D}))}).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(n=>{var{geometry:{height:t,left:e,top:i,width:r}}=n;return sw([{attr:"height",value:"".concat(t||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 n4(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:v,isRecurrent:D}}=this.props.viewModel,A="vertical"===v;return(0,Ih.G)({"dx-state-focused":!!e,"dx-scheduler-appointment":!0,"dx-scheduler-appointment-horizontal":!A,"dx-scheduler-appointment-vertical":A,"dx-scheduler-appointment-recurrence":D,"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(0,Ti.Z)(this.props,fce)}render(){var e=this.props;return(n=>{var{classes:t,data:e,dateText:i,isReduced:r,onItemClick:v,props:{appointmentTemplate:D,hideReducedIconTooltip:A,index:z,showReducedIconTooltip:Q,viewModel:{info:{isRecurrent:ue}}},ref:we,styles:Le,text:Ue}=n;return(0,Ji.vs)((0,Ji.Iz)(2,gce.$L,(0,ui.Z)({focusStateEnabled:!0,onClick:v,rootElementRef:we,style:(0,ho.jk)(Le),classes:t,hint:Ue},{role:"button","data-index":z},{children:(0,Ji.Iz)(2,pce,{text:Ue,isReduced:r,dateText:i,isRecurrent:ue,index:z,data:e,showReducedIconTooltip:Q,hideReducedIconTooltip:A,appointmentTemplate:D})})))})({props:(0,ui.Z)({},e,{appointmentTemplate:vce(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 n.defaultProps=_ce,n})();var Cce=l(241),xce=["groups","overflowIndicatorTemplate","viewModel"],wce={},Ece=n=>n&&(n.defaultProps?t=>(0,Ji.vs)((0,Ji.Iz)(2,n,(0,ui.Z)({},t))):n);let Sce=(()=>{class n extends ho.OS{constructor(e){super(e),this.state={color:void 0},this.updateStylesEffect=this.updateStylesEffect.bind(this)}get appointmentsContextValue(){return this.context[qu.id]?this.context[qu.id]:qu.defaultValue}createEffects(){return[new ho.b0(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;((n,t,e)=>{var i,r=null!==(i=t.groupIndex)&&void 0!==i?i:0,{appointment:v}=t.items.settings[0];return d6({resources:n.resources,resourceLoaderMap:n.resourceLoaderMap,resourcesDataAccessors:n.dataAccessors.resources,loadedResources:n.loadedResources},{itemData:v,groupIndex:r,groups:e})})(this.appointmentsContextValue,i,e).then(r=>{this.setState(v=>({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):wn.Z.getFormatter("dxScheduler-moreAppointments")(i)}get appointmentStyles(){return(n=>{var{geometry:{height:t,left:e,top:i,width:r}}=n;return sw([{attr:"left",value:"".concat(e,"px")},{attr:"top",value:"".concat(i,"px")},{attr:"width",value:"".concat(r,"px")},{attr:"height",value:"".concat(t,"px")},{attr:"boxShadow",value:"inset ".concat(r,"px 0 0 0 rgba(0, 0, 0, 0.3)")}])})(this.props.viewModel)}get styles(){return n4(this.state.color,this.appointmentStyles)}get classes(){return(0,Ih.G)({"dx-scheduler-appointment-collector":!0,"dx-scheduler-appointment-collector-compact":this.data.isCompact})}get restAttributes(){return(0,Ti.Z)(this.props,xce)}render(){var e=this.props;return(n=>{var{classes:t,data:e,props:{overflowIndicatorTemplate:i},styles:r,text:v}=n;return(0,Ji.Iz)(2,Cce.zx,{style:(0,ho.jk)(r),className:t,type:"default",stylingMode:"contained",children:i?i({data:e}):(0,Ji.Wm)(1,"span",null,v,0)})})({props:(0,ui.Z)({},e,{overflowIndicatorTemplate:Ece(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 n.defaultProps=wce,n})();var Oce=l(5955),Dce=["isAllDay"],Ice={isAllDay:!1};let Mce=(()=>{class n extends ho.DZ{constructor(e){super(e),this.state={},this.layoutRef=(0,Ji.Vf)(),this.__getterCache={},this.pointerEventsEffect=this.pointerEventsEffect.bind(this),this.onAppointmentPointerDown=this.onAppointmentPointerDown.bind(this)}get appointmentsContextValue(){return this.context[qu.id]?this.context[qu.id]:qu.defaultValue}createEffects(){return[new ho.b0(this.pointerEventsEffect,[this.appointmentsContextValue]),(0,ho.gt)()]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.appointmentsContextValue])}pointerEventsEffect(){var e=(0,Oce.G3)(this.layoutRef.current,i=>this.onAppointmentPointerDown(i));return()=>{e()}}get classes(){var{isAllDay:e}=this.props;return(0,Ih.G)({"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,v=r?parseInt(r,10):-1,D=i.classList.contains("dx-scheduler-all-day-appointment"),A=i.classList.contains("dx-scheduler-appointment-collector"),Q=Object.entries({allDayCompact:D&&A,allDay:D&&!A,regularCompact:!D&&A,regular:!D&&!A}).filter(ue=>ue[1])[0][0];this.appointmentsContextValue.updateFocusedAppointment(Q,v)}}get restAttributes(){return(0,Ti.Z)(this.props,Dce)}componentWillUpdate(e,i,r){super.componentWillUpdate(),(this.props.isAllDay!==e.isAllDay||this.context[qu.id]!==r[qu.id])&&(this.__getterCache.appointments=void 0),(this.props.isAllDay!==e.isAllDay||this.context[qu.id]!==r[qu.id])&&(this.__getterCache.overflowIndicators=void 0)}render(){return(n=>{var{appointments:t,appointmentsContextValue:{appointmentTemplate:e,groups:i,hideReducedIconTooltip:r,onAppointmentClick:v,onAppointmentDoubleClick:D,overflowIndicatorTemplate:A,showReducedIconTooltip:z},classes:Q,layoutRef:ue,overflowIndicators:we}=n;return(0,Ji.Wm)(1,"div",Q,[t.map((Le,Ue)=>(0,Ji.Iz)(2,yce,{viewModel:Le,appointmentTemplate:e,index:Ue,groups:i,onItemClick:v,onItemDoubleClick:D,showReducedIconTooltip:z,hideReducedIconTooltip:r},Le.key)),we.map((Le,Ue)=>(0,Ji.Iz)(2,Sce,{viewModel:Le,groups:i,overflowIndicatorTemplate:A,"data-index":Ue},Le.key))],0,null,null,ue)})({props:(0,ui.Z)({},this.props),layoutRef:this.layoutRef,appointmentsContextValue:this.appointmentsContextValue,classes:this.classes,appointments:this.appointments,overflowIndicators:this.overflowIndicators,onAppointmentPointerDown:this.onAppointmentPointerDown,restAttributes:this.restAttributes})}}return n.defaultProps=Ice,n})();class KH extends Dy.Z{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:[],props:["isAllDay"]}}get _viewComponent(){return Mce}}(0,T.Z)("dxAppointmentLayout",KH);class kce{constructor(t,e){this.rawAppointment=t,this.promise=e}}class Rce{get resourceDeclarations(){return this._resourceDeclarations}set resourceDeclarations(t){this._resourceDeclarations=t,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(t=>{var{promise:e,rawAppointment:i}=t,r=[];this.resourceMap.forEach((v,D)=>{var A={label:v.label,values:[]};D in i&&(0,gc.sE)(i[D]).forEach(z=>A.values.push(v.map.get(z))),A.values.length&&r.push(A)}),e.resolve(r)}),this.appointmentPromiseQueue=[]}_onPullResource(t,e,i,r,v){var D=new Map;v.forEach(A=>D.set(A[e],A[i])),this.resourceMap.set(t,{label:r,map:D})}_hasResourceDeclarations(t){return 0!==t.length||(this.appointmentPromiseQueue.forEach(e=>{var{promise:i}=e;return i.resolve([])}),this.appointmentPromiseQueue=[],!1)}_tryPullResources(t,e){if(!this.isLoading){this.isLoading=!0;var i=[];t.forEach(r=>{var v=(new P.BH).done(A=>this._onPullResource(Vf(r),rw(r),yk(r),r.label,A));i.push(v);var D=QD(r.dataSource);D.isLoaded()?v.resolve(D.items()):D.load().done(A=>v.resolve(A)).fail(()=>v.reject())}),P.gx.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(t){var e=new P.BH;return this.appointmentPromiseQueue.push(new kce(t,e)),this._hasResourceDeclarations(this.resourceDeclarations)&&(this.isLoaded?this._pushAllResources():this._tryPullResources(this.resourceDeclarations,e)),e.promise()}}class Lce{constructor(t){this.setDataSource(t),this._updatedAppointmentKeys=[]}get keyName(){return this._dataSource.store().key()}_getStoreKey(t){return this._dataSource.store().keyOf(t)}setDataSource(t){this._dataSource=t,this.cleanState(),this._initStoreChangeHandlers()}_initStoreChangeHandlers(){var t=this._dataSource,e=t?.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=t.items(),v=e.key();i.forEach(D=>{if(0!==r.filter(Q=>Q[v]===D.key).length)this._updatedAppointmentKeys.push({key:v,value:D.key});else{var{data:z}=D;z&&r.push(z)}}),t.load()}))}getUpdatedAppointment(){return this._updatedAppointment}getUpdatedAppointmentKeys(){return this._updatedAppointmentKeys}cleanState(){this._updatedAppointment=null,this._updatedAppointmentKeys=[]}add(t){return this._dataSource.store().insert(t).done(()=>this._dataSource.load())}update(t,e){var i=this._getStoreKey(t),r=new P.BH;return this._dataSource.store().update(i,e).done(v=>this._dataSource.load().done(()=>r.resolve(v)).fail(r.reject)).fail(r.reject),r.promise()}remove(t){var e=this._getStoreKey(t);return this._dataSource.store().remove(e).done(()=>this._dataSource.load())}destroy(){var t,e=null===(t=this._dataSource)||void 0===t?void 0:t.store();e&&(e.off("updating"),e.off("push"))}}const hR=(n,t)=>{var e=te.Z.trimTime(n),i=te.Z.trimTime(t);return i.setDate(i.getDate()+1),[e,i]};var GH=te.Z.dateToMilliseconds;class $H{constructor(t){this.options=t,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(t){var e=this.options[t];return"function"==typeof e?e():e}_init(){this.setDataAccessors(this.dataAccessors)}filter(t){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:kk(this.viewType),firstDayOfWeek:this.firstDayOfWeek},t)}hasAllDayAppointments(t,e){var i=t.map(v=>za(v,this.dataAccessors,this.timeZoneCalculator)),r=!1;return(0,O.S6)(i,(v,D)=>{if(Ey(D,this.viewStartDayHour,this.viewEndDayHour,this.allDayPanelMode))return r=!0,!1}),r}setDataAccessors(t){this.dataAccessors=t}_createAllDayAppointmentFilter(t){var{viewStartDayHour:e,viewEndDayHour:i}=t;return[[r=>Ey(r,e,i,this.allDayPanelMode)]]}_createCombinedFilter(t){var e=new Date(t.min),i=new Date(t.max),{startDayHour:r,endDayHour:v,viewStartDayHour:D,viewEndDayHour:A,resources:z,firstDayOfWeek:Q,checkIntersectViewport:ue,supportMultiDayAppointments:we}=t,[Le,Ue]=hR(e,i),ut=(0,w.$K)(this.dataAccessors.getter.recurrenceRule);return[[It=>{var Gt;if(null!==(Gt=It.visible)&&void 0!==Gt&&!Gt)return!1;var{startDate:En,endDate:on,hasRecurrenceRule:Nt}=It;if(!Nt&&!(on>=Le&&En<Ue||te.Z.sameDate(on,Le)&&te.Z.sameDate(En,Le)))return!1;var Jt=Ey(It,D,A,this.allDayPanelMode),un=Mk(It),Mn=It.allDay,Kn=un||Jt;if(null!=z&&z.length&&!this._filterAppointmentByResources(It.rawAppointment,z)||Jt&&!1===t.allDay)return!1;if(Nt){var Xn=((n,t,e)=>{var i=n.recurrenceException;if(i){for(var r=i.split(","),v=0;v<r.length;v++)r[v]=ere(r[v],n.startDate,t,e);return r.join()}return i})(It,this.timeZoneCalculator,this.timezone);if(!this._filterAppointmentByRRule((0,ui.Z)({},It,{recurrenceException:Xn,allDay:Jt}),e,i,r,v,Q))return!1}return!(!Mn&&we&&Kn&&on<e&&(!ut||ut&&!Nt)||(0,w.$K)(r)&&(!ut||!t.isVirtualScrolling)&&!((n,t,e,i,r)=>{var v=te.Z.dateTimeFromDecimal(e);return n.getHours()>=v.hours&&n.getMinutes()>=v.minutes||t.getHours()===v.hours&&t.getMinutes()>v.minutes||t.getHours()>v.hours||r||i})(En,on,r,Jt,un)||(0,w.$K)(v)&&!(n=>{var ln,{startDate:t,endDate:e,startDayHour:i,endDayHour:r,viewStartDayHour:v,viewEndDayHour:D,allDay:A,severalDays:z,min:Q,max:ue,checkIntersectViewport:we}=n,Le=(24-D+v)*Ik("hour"),Ue=e.getTime()-t.getTime(),ut=(Le-Ue)/Ik("hour"),It=t.getHours(),Gt=t.getMinutes(),En=te.Z.dateTimeFromDecimal(r),on=te.Z.dateTimeFromDecimal(i),Nt=t<ue&&e>Q;return ln=we&&Nt||It<En.hours||It===En.hours&&Gt<En.minutes||A&&t<=ue||z&&Nt&&(It<En.hours||60*e.getHours()+e.getMinutes()>60*on.hours),Ue<Le&&It>En.hours&&Gt>En.minutes&&ut<=It-r&&(ln=!1),ln})({startDate:En,endDate:on,startDayHour:r,endDayHour:v,viewStartDayHour:D,viewEndDayHour:A,allDay:Jt,severalDays:un,min:e,max:i,checkIntersectViewport:ue})||!Mn&&(!Kn||we)&&on<e&&ut&&!Nt)}]]}_createAppointmentFilter(t){return this._createCombinedFilter(t)}_filterAppointmentByResources(t,e){for(var i=(A,z)=>{var ue,Q=this.dataAccessors.resources.getter[A];(0,w.mf)(Q)&&(ue=Q(t));for(var we=(0,gc.sE)(ue),Le=(0,O.UI)(e[z].items,ut=>{var{id:It}=ut;return It}),Ue=0;Ue<we.length;Ue++)if(VN(Le,we[Ue]))return!0;return!1},r=!1,v=0;v<e.length;v++)if(!(r=i(e[v].name,v)))return!1;return r}_filterAppointmentByRRule(t,e,i,r,v,D){var A=t.recurrenceRule,z=t.recurrenceException,Q=t.allDay,ue=!0,we=t.startDate,Le=t.endDate,Ue=Dh();if(Q||((n,t,e,i)=>{var r=n.getHours(),v=t.getHours();return r<=e&&v<=i&&v>=e||v>=i&&r<=i&&r>=e})(we,Le,r,v)){var[ut,It]=hR(e,i);e=ut,i=new Date(It.getTime()-GH("minute"))}return A&&!Ue.isValidRecurrenceRule(A)&&(ue=Le>e&&we<=i),ue&&Ue.isValidRecurrenceRule(A)&&(ue=Ue.hasRecurrence({rule:A,exception:z,start:we,end:Le,min:e,max:i,firstDayOfWeek:D,appointmentTimezoneOffset:this.timeZoneCalculator.getOriginStartDateOffsetInMs(we,t.startDateTimeZone,!1)})),ue}filterLoadedAppointments(t,e){return this.filterPreparedItems(t,e).map(r=>{var{rawAppointment:v}=r;return v})}filterPreparedItems(t,e){var i=this._createAppointmentFilter(t);return(0,If.Z)(e).filter(i).toArray()}filterAllDayAppointments(t,e){var i=this._createAllDayAppointmentFilter(t);return(0,If.Z)(e).filter(i).toArray().map(r=>{var{rawAppointment:v}=r;return v})}}class Fce extends $H{get strategyName(){return"virtual"}get resources(){return this.options.resources}filter(t){var e=GH("hour"),i=J0(this.viewType),r=i&&"horizontal"===this.viewDirection,v=!this.supportAllDayRow,D=this.showAllDayPanel||v,A=this.viewDataProvider.getLastViewDateByEndDayHour(this.viewEndDayHour),z=[];return this.viewDataProvider.getCompletedGroupsInfo().forEach(ue=>{var we=ue.groupIndex,Le=ue.startDate,Ue=new Date(Math.min(ue.endDate,A)),ut=i?Le.getHours():this.viewStartDayHour,It=i?ut+Le.getMinutes()/60+(Ue-Le)/e:this.viewEndDayHour,Gt=this._getPrerenderFilterResources(we),ln=this.viewDataProvider.hasGroupAllDayPanel(we),En=v||!!D&&ln;z.push({isVirtualScrolling:!0,startDayHour:ut,endDayHour:It,viewStartDayHour:this.viewStartDayHour,viewEndDayHour:this.viewEndDayHour,min:Le,max:Ue,supportMultiDayAppointments:kk(this.viewType),allDay:En,resources:Gt,firstDayOfWeek:this.firstDayOfWeek,checkIntersectViewport:r})}),this.filterLoadedAppointments({filterOptions:z,groupCount:this.groupCount},t)}filterPreparedItems(t,e){var{filterOptions:i,groupCount:r}=t,v=[],D=e;return r>0&&(D=D.filter(z=>{for(var{rawAppointment:Q}=z,ue=0;ue<i.length;++ue){var{resources:we}=i[ue];if(this._filterAppointmentByResources(Q,we))return!0}})),i.forEach(z=>{v.length&&v.push("or");var Q=this._createAppointmentFilter(z);v.push(Q)}),(0,If.Z)(D).filter(v).toArray()}hasAllDayAppointments(t,e){return this.filterAllDayAppointments({viewStartDayHour:this.viewStartDayHour,viewEndDayHour:this.viewEndDayHour},e).length>0}_getPrerenderFilterResources(t){var e=this.viewDataProvider.getCellsGroup(t);return((n,t,e)=>{if(!e||!e.length)return n;var i={},r=[];return e.forEach(D=>{(0,O.S6)(D,(A,z)=>i[A]=z)}),n.filter(D=>{var{name:A}=D;return(0,w.$K)(i[A])}).forEach(D=>r.push((0,y.l)({},D))),r.forEach(D=>{var{items:A,data:z,name:Q}=D,ue=tT(t,[Q])[0]||{},we=rw(ue),Le=[],Ue=[];e.filter(ut=>(0,w.$K)(ut[Q])).forEach(ut=>{(0,O.S6)(ut,(It,Gt)=>{if(!Le.filter(on=>on.id===Gt&&on[we]===It).length){var ln=A.filter(on=>on.id===Gt),En=z.filter(on=>on[we]===Gt);Le.push(...ln),Ue.push(...En)}})}),D.items=Le,D.data=Ue}),r})(this.loadedResources,this.resources,[e])}}class Vce{constructor(t){this.options=t}get dataAccessors(){return this.options.dataAccessors}get dataSourceFilter(){return this.options.dataSourceFilter}get dateSerializationFormat(){return this.options.dateSerializationFormat}get forceIsoDateParsing(){return!(0,w.$K)(this.options.forceIsoDateParsing)||this.options.forceIsoDateParsing}makeDateFilter(t,e){var{endDateExpr:i,recurrenceRuleExpr:r,startDateExpr:v}=this.dataAccessors.expr,D=[[[i,">=",t],[v,"<",e]],"or",[r,"startswith","freq"],"or",[[i,t],[v,t]]];return r||D.splice(1,2),D}combineFilters(t,e){var i=[];return t&&i.push(t),e&&i.push(e),this.serializeRemoteFilter(i)}serializeRemoteFilter(t){if(!Array.isArray(t))return t;var{endDateExpr:e,startDateExpr:i}=this.dataAccessors.expr,r=(0,y.l)([],t);(0,w.HD)(r[0])&&this.forceIsoDateParsing&&r.length>1&&(r[0]===i||r[0]===e)&&(r[r.length-1]=Cs.Z.serializeDate(new Date(r[r.length-1]),this.dateSerializationFormat));for(var D=0;D<r.length;D+=1)r[D]=this.serializeRemoteFilter(r[D]);return r}getUserFilter(t){if(this.dataSourceFilter&&!(0,E.bY)(this.dataSourceFilter,t))return this.dataSourceFilter.length>0&&(0,E.bY)(this.dataSourceFilter[0],t)?this.dataSourceFilter[1]:this.dataSourceFilter}combine(t,e){var[i,r]=hR(t,e),v=this.makeDateFilter(i,r),D=this.getUserFilter(v);return this.combineFilters(v,D)}}var My;class zce{constructor(t){this.options=t,this.dataSource=this.options.dataSource,this.dataAccessors=this.options.dataAccessors,this.timeZoneCalculator=this.options.timeZoneCalculator,this.appointmentDataSource=new Lce(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 t={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 Fce(t):new $H(t)}setDataSource(t){this.dataSource=t,this.initFilterStrategy(),this.appointmentDataSource.setDataSource(this.dataSource)}updateDataAccessors(t){this.dataAccessors=t,this.initFilterStrategy()}filter(t){return this.getFilterStrategy().filter(t)}filterByDate(t,e,i,r){if(this.dataSource&&i){var D=(n=>new Vce(n).combine(n.min,n.max))({dataSourceFilter:this.dataSource.filter(),dataAccessors:this.dataAccessors,min:t,max:e,dateSerializationFormat:r,forceIsoDateParsing:(0,RN.Z)().forceIsoDateParsing});this.dataSource.filter(D)}}hasAllDayAppointments(t,e){return this.getFilterStrategy().hasAllDayAppointments(t,e)}filterLoadedAppointments(t,e){return this.getFilterStrategy().filterLoadedAppointments(t,e)}calculateAppointmentEndDate(t,e){return this.getFilterStrategy().calculateAppointmentEndDate(t,e)}cleanState(){this.appointmentDataSource.cleanState()}getUpdatedAppointment(){return this.appointmentDataSource._updatedAppointment}getUpdatedAppointmentKeys(){return this.appointmentDataSource._updatedAppointmentKeys}add(t){return this.appointmentDataSource.add(t)}update(t,e){return this.appointmentDataSource.update(t,e)}remove(t){return this.appointmentDataSource.remove(t)}destroy(){this.appointmentDataSource.destroy()}}!function(n){n.fromSourceToAppointment="toAppointment",n.fromAppointmentToSource="fromAppointment",n.fromSourceToGrid="toGrid",n.fromGridToSource="fromGrid"}(My||(My={}));class Gce{constructor(t){this.options=t}createDate(t,e){var i=new Date(t);switch(e.path){case My.fromSourceToAppointment:return this.getConvertedDate(i,e.appointmentTimeZone,!0,!1);case My.fromAppointmentToSource:return this.getConvertedDate(i,e.appointmentTimeZone,!0,!0);case My.fromSourceToGrid:return this.getConvertedDate(i,e.appointmentTimeZone,!1,!1);case My.fromGridToSource:return this.getConvertedDate(i,e.appointmentTimeZone,!1,!0);default:throw new Error("not specified pathTimeZoneConversion")}}getOffsets(t,e){var i=-this.getClientOffset(t)/te.Z.dateToMilliseconds("hour"),r=this.getCommonOffset(t),v=this.getAppointmentOffset(t,e);return{client:i,common:(0,w.$K)(r)?r:i,appointment:"number"!=typeof v?i:v}}getConvertedDateByOffsets(t,e,i,r){var v=r?-1:1,D=new Date(t);return D.setMinutes(D.getMinutes()-v*(60*e)),D.setMinutes(D.getMinutes()+v*(60*i)),new Date(D)}getOriginStartDateOffsetInMs(t,e,i){return 36e5*this.getOffsetInHours(t,e,i)}getOffsetInHours(t,e,i){var{appointment:r,client:v,common:D}=this.getOffsets(t,e);return e&&i?r-v:e&&!i?r-D:!e&&i?D-v:0}getClientOffset(t){return this.options.getClientOffset(t)}getCommonOffset(t){return this.options.tryGetCommonOffset(t)}getAppointmentOffset(t,e){return this.options.tryGetAppointmentOffset(t,e)}getConvertedDate(t,e,i,r){var v=new Date(t.getTime()),D=this.getOffsets(v,e);return this.getConvertedDateByOffsets(t,D.client,i&&e?D.appointment:D.common,r)}}var Yce="".concat("yyyyMMddTHHmmss","Z"),MT="dx-scheduler",the="".concat(MT,"-small"),nhe="".concat(MT,"-adaptive"),ihe="".concat(MT,"-readonly"),uhe={day:{workSpace:Fde,renderingStrategy:"vertical"},week:{workSpace:UH,renderingStrategy:"vertical"},workWeek:{workSpace:ece,renderingStrategy:"vertical"},month:{workSpace:qde,renderingStrategy:"horizontalMonth"},timelineDay:{workSpace:Tde,renderingStrategy:"horizontal"},timelineWeek:{workSpace:dR,renderingStrategy:"horizontal"},timelineWorkWeek:{workSpace:Rde,renderingStrategy:"horizontal"},timelineMonth:{workSpace:Mde,renderingStrategy:"horizontalMonthLine"},agenda:{workSpace:dde,renderingStrategy:"agenda"}},ul_ADDING="onAppointmentAdding",ul_ADDED="onAppointmentAdded",ul_DELETED="onAppointmentDeleted",ul_UPDATED="onAppointmentUpdated";class gR extends sa.Z{_getDefaultOptions(){var t=(0,y.l)(super._getDefaultOptions(),{views:["day","week"],currentView:"day",currentDate:te.Z.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:wn.Z.format("dxCollectionWidget-noDataText"),adaptivityEnabled:!1,allowMultipleCellSelection:!0,scrolling:{mode:"standard"},allDayPanelMode:"all",renovateRender:!0,_draggingMode:"outlook",_appointmentTooltipOffset:{x:0,y:0},_appointmentTooltipButtonsPosition:"bottom",_appointmentTooltipOpenButtonText:wn.Z.format("dxScheduler-openAppointment"),_appointmentCountPerCell:2,_collectorOffset:0,_appointmentOffset:26,toolbar:[{location:"before",defaultElement:"dateNavigator"},{location:"after",defaultElement:"viewSwitcher"}]});return(0,y.l)(!0,t,{integrationOptions:{useDeferUpdateForTemplates:!1}})}get filteredItems(){return this._filteredItems||(this._filteredItems=[]),this._filteredItems}set filteredItems(t){this._filteredItems=t}get preparedItems(){return this._preparedItems||(this._preparedItems=[]),this._preparedItems}set preparedItems(t){this._preparedItems=t}get currentView(){return CT(this.option("currentView"),this.option("views"))}get currentViewType(){return(0,w.Kn)(this.currentView)?this.currentView.type:this.currentView}get timeZoneCalculator(){return this._timeZoneCalculator||(this._timeZoneCalculator=(n=>new Gce({getClientOffset:t=>Xo.getClientTimezoneOffset(t),tryGetCommonOffset:t=>Xo.calculateTimezoneByValue(n,t),tryGetAppointmentOffset:(t,e)=>Xo.calculateTimezoneByValue(e,t)}))(this.option("timeZone"))),this._timeZoneCalculator}_setDeprecatedOptions(){super._setDeprecatedOptions(),(0,y.l)(this._deprecatedOptions,{dropDownAppointmentTemplate:{since:"19.2",message:"appointmentTooltipTemplate"}})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!x.Z.current().generic},options:{useDropDownViewSwitcher:!0,editing:{allowDragging:!1,allowResizing:!1}}},{device:function(){return(0,N.x2)()},options:{useDropDownViewSwitcher:!0,dateCellTemplate:function(t,e,i){t.text.split(" ").forEach(function(v,D){var A=(0,u.Z)("<span>").text(v).addClass("dx-scheduler-header-panel-cell-date");(0,u.Z)(i).append(A),D||(0,u.Z)(i).append(" ")})},_appointmentTooltipOffset:{x:0,y:11},_appointmentTooltipButtonsPosition:"top",_appointmentTooltipOpenButtonText:null,_appointmentCountPerCell:1,_collectorOffset:20,_appointmentOffset:30}}])}_postponeDataSourceLoading(t){this.postponedOperations.add("_reloadDataSource",this._reloadDataSource.bind(this),t)}_postponeResourceLoading(){var t=this.postponedOperations.add("loadResources",()=>{var i=this._getCurrentViewOption("groups");return KN(i,this.option("resources"),this.option("resourceLoaderMap"))}),e=new P.BH;return t.done(i=>{this.option("loadedResources",i),e.resolve(i)}),this._postponeDataSourceLoading(t),e.promise()}_optionChanged(t){var e,i,r,v=t.value,D=t.name;switch(t.name){case"customizeDateNavigatorText":this._updateOption("header",D,v);break;case"firstDayOfWeek":this._updateOption("workSpace",D,v),this._updateOption("header",D,v);break;case"currentDate":v=this._dateOption(D),v=te.Z.trimTime(new Date(v)),this.option("selectedCellData",[]),this._workSpace.option(D,new Date(v)),null===(e=this._header)||void 0===e||e.option(D,new Date(v)),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(Q=>{this._filterAppointmentsByDate(),this._updateOption("workSpace","showAllDayPanel",this.option("showAllDayPanel"))});break;case"min":case"max":v=this._dateOption(D),this._updateOption("header",D,new Date(v)),this._updateOption("workSpace",D,new Date(v));break;case"views":var A;this._getCurrentViewOptions()?this.repaint():null===(A=this._header)||void 0===A||A.option(D,v);break;case"useDropDownViewSwitcher":null===(r=this._header)||void 0===r||r.option(D,v);break;case"currentView":this._validateDayHours(),this._validateCellDuration(),this._appointments.option({items:[],allowDrag:this._allowDragging(),allowResize:this._allowResizing(),itemTemplate:this._getAppointmentTemplate("appointmentTemplate")}),this._postponeResourceLoading().done(Q=>{var ue;this._refreshWorkSpace(Q),null===(ue=this._header)||void 0===ue||ue.option(this._headerConfig()),this._filterAppointmentsByDate(),this._appointments.option("allowAllDayResize","day"!==v)}),this.postponedOperations.callPostponedOperations();break;case"appointmentTemplate":this._appointments.option("itemTemplate",v);break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":this.repaint();break;case"groups":this._postponeResourceLoading().done(Q=>{this._refreshWorkSpace(Q),this._filterAppointmentsByDate()});break;case"resources":this._dataAccessors.resources=ZN(this.option("resources")),this.agendaResourceProcessor.initializeState(this.option("resources")),this.updateInstances(),this._postponeResourceLoading().done(Q=>{this._appointments.option("items",[]),this._refreshWorkSpace(Q),this._filterAppointmentsByDate(),this._createAppointmentPopupForm()});break;case"startDayHour":case"endDayHour":this._validateDayHours(),this.updateInstances(),this._appointments.option("items",[]),this._updateOption("workSpace",D,v),this._appointments.repaint(),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case ul_ADDING:case ul_ADDED:case"onAppointmentUpdating":case ul_UPDATED:case"onAppointmentDeleting":case ul_DELETED:case"onAppointmentFormOpening":case"onAppointmentTooltipShowing":this._actions[D]=this._createActionByOption(D);break;case"onAppointmentRendered":this._appointments.option("onItemRendered",this._getAppointmentRenderedAction());break;case"onAppointmentClick":this._appointments.option("onItemClick",this._createActionByOption(D));break;case"onAppointmentDblClick":this._appointments.option(D,this._createActionByOption(D));break;case"onAppointmentContextMenu":this._appointments.option("onItemContextMenu",this._createActionByOption(D));break;case"noDataText":case"allowMultipleCellSelection":case"selectedCellData":case"accessKey":case"onCellClick":case"onCellContextMenu":this._workSpace.option(D,v);break;case"crossScrollingEnabled":this._postponeResourceLoading().done(Q=>{this._appointments.option("items",[]),this._refreshWorkSpace(Q),this._readyToRenderAppointments&&this._appointments.option("items",this._getAppointmentsToRepaint())});break;case"cellDuration":this._validateCellDuration(),this._updateOption("workSpace",D,v),this._appointments.option("items",[]),this._readyToRenderAppointments&&(this._updateOption("workSpace","hoursInterval",v/60),this._appointments.option("items",this._getAppointmentsToRepaint()));break;case"tabIndex":case"focusStateEnabled":this._updateOption("header",D,v),this._updateOption("workSpace",D,v),this._appointments.option(D,v),super._optionChanged(t);break;case"width":this._updateOption("header",D,v),this.option("crossScrollingEnabled")&&this._updateOption("workSpace","width",v),this._updateOption("workSpace","schedulerWidth",v),super._optionChanged(t),this._dimensionChanged();break;case"height":super._optionChanged(t),this._dimensionChanged(),this._updateOption("workSpace","schedulerHeight",v);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",D,v),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(D,v),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",t.fullName,v);break;case"allDayPanelMode":this._updateOption("workSpace",t.fullName,v);break;case"renovateRender":this._updateOption("workSpace",D,v);break;case"_draggingMode":this._workSpace.option("draggingMode",v);break;case"toolbar":this._header?this._header.option("items",v):this.repaint();break;case"loadedResources":case"resourceLoaderMap":break;default:super._optionChanged(t)}}_dateOption(t){var e=this._getCurrentViewOption(t);return Cs.Z.deserializeDate(e)}_getSerializationFormat(t){var e=this._getCurrentViewOption(t);return"number"==typeof e?"number":(0,w.HD)(e)?Cs.Z.getDateSerializationFormat(e):void 0}_bringEditingModeToAppointments(t){var e={allowDelete:t.allowUpdating&&t.allowDeleting};this._isAgenda()||(e.allowDrag=t.allowDragging,e.allowResize=t.allowResizing,e.allowAllDayResize=t.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(t){return Xo.calculateTimezoneByValue(this.option("timeZone"),t)}_filterAppointmentsByDate(){var t=this._workSpace.getDateRange(),e=this.timeZoneCalculator.createDate(t[0],{path:"fromGrid"}),i=this.timeZoneCalculator.createDate(t[1],{path:"fromGrid"});this.appointmentDataProvider.filterByDate(e,i,this.option("remoteFiltering"),this.option("dateSerializationFormat"))}_reloadDataSource(){var t=new P.BH;return this._dataSource?(this._dataSource.load().done(function(){JD(),this._fireContentReadyAction(t)}.bind(this)).fail(function(){JD(),t.reject()}),this._dataSource.isLoading()&&FN({container:this.$element(),position:{of:this.$element()}})):this._fireContentReadyAction(t),t.promise()}_fireContentReadyAction(t){var r,e=super._fireContentReadyAction.bind(this),i=()=>{e(),t?.resolve()};this._workSpaceRecalculation?null===(r=this._workSpaceRecalculation)||void 0===r||r.done(()=>{i()}):i()}_dimensionChanged(){if(this._isVisible()){this._toggleSmallClass();var t=this.getWorkSpace();if(!this._isAgenda()&&this.filteredItems&&t){t.option("allDayExpanded",this._isAllDayExpanded()),t._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 t=(0,Zo.l)(this.$element().get(0)).width;this.$element().toggleClass(the,t<400)}_toggleAdaptiveClass(){this.$element().toggleClass(nhe,this.option("adaptivityEnabled"))}_visibilityChanged(t){t&&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(MT),this._initEditing(),this.updateInstances(),this._initActions(),this._compactAppointmentsHelper=new pie(this),this._asyncTemplatesTimers=[],this._dataSourceLoadedCallback=(0,Pp.Z)(),this._subscribes=m4,this.agendaResourceProcessor=new Rce(this.option("resources"))}createAppointmentDataProvider(){var t;null===(t=this.appointmentDataProvider)||void 0===t||t.destroy(),this.appointmentDataProvider=new zce({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 t;null===(t=this._dataSource)||void 0===t||t.on("customizeStoreLoadOptions",e=>{var{storeLoadOptions:i}=e;i.startDate=this.getStartViewDate(),i.endDate=this.getEndViewDate()})}_initTemplates(){this._initAppointmentTemplate(),this._templateManager.addDefaultTemplates({appointmentTooltip:new tD.s,dropDownAppointment:new tD.s}),super._initTemplates()}_initAppointmentTemplate(){var{expr:t}=this._dataAccessors,e=r=>(0,No.vb)("appointmentData.".concat(r)),i=r=>v=>{var D=r(v);return D instanceof Date?D.valueOf():D};this._templateManager.addDefaultTemplates({item:new B.c((r,v,D)=>this.getAppointmentsInstance()._renderAppointmentTemplate(r,v,D),["html","text","startDate","endDate","allDay","description","recurrenceRule","recurrenceException","startDateTimeZone","endDateTimeZone"],this.option("integrationOptions.watchMethod"),{text:e(t.textExpr),startDate:i(e(t.startDateExpr)),endDate:i(e(t.endDateExpr)),startDateTimeZone:e(t.startDateTimeZoneExpr),endDateTimeZone:e(t.endDateTimeZoneExpr),allDay:e(t.allDayExpr),recurrenceRule:e(t.recurrenceRuleExpr)})})}_renderContent(){this._renderContentImpl()}_updatePreparedItems(t){this.preparedItems=((n,t,e,i)=>{var r=[];return n?.forEach(v=>{var D,A=new Date(t.getter.startDate(v)),z=new Date(t.getter.endDate(v));b6(v,A,z,e,t);var Q=za(v,t,i),ue=Q.startDate&&Q.calculateStartDate("toGrid"),we=Q.endDate&&Q.calculateEndDate("toGrid"),Le=new RegExp("freq","gi"),Ue=Q.recurrenceRule,ut=!(null==Ue||null===(D=Ue.match(Le))||void 0===D||!D.length),It=!(0,w.$K)(v.visible)||!!v.visible;ue&&we&&r.push({allDay:!!Q.allDay,startDate:ue,startDateTimeZone:v.startDateTimeZone,endDate:we,endDateTimeZone:v.endDateTimeZone,recurrenceRule:Q.recurrenceRule,recurrenceException:Q.recurrenceException,hasRecurrenceRule:ut,visible:It,rawAppointment:v})}),r})(t,this._dataAccessors,this._getCurrentViewOption("cellDuration"),this.timeZoneCalculator)}_dataSourceChangedHandler(t){this._readyToRenderAppointments&&this._workSpaceRecalculation.done(function(){this._updatePreparedItems(t),this._renderAppointments(),this.getWorkSpace().onDataSourceChanged(this.filteredItems)}.bind(this))}isVirtualScrolling(){var t,e=this.getWorkSpace();if(e)return e.isVirtualScrolling();var i=this._getCurrentViewOptions();return"virtual"===this.option("scrolling")?.mode||"virtual"===(null==i||null===(t=i.scrolling)||void 0===t?void 0:t.mode)}_filterAppointments(){this.filteredItems=this.appointmentDataProvider.filter(this.preparedItems)}_renderAppointments(){var t=this.getWorkSpace();this._filterAppointments(),t.option("allDayExpanded",this._isAllDayExpanded());var e=[];this._isVisible()&&(e=this._getAppointmentsToRepaint()),this.option("isRenovatedAppointments")?(n=>{var{instance:t,$dateTable:e,viewModel:i}=n,r=(n=>{var t=(0,u.Z)(".dx-appointments-container");return 0===t.length&&(t=(0,u.Z)("<div>").addClass("dx-appointments-container").appendTo(n)),t})(e);ml.renovation.renderComponent(t,r,KH,"renovatedAppointments",i)})({instance:this,$dateTable:this.getWorkSpace()._getDateTable(),viewModel:e}):this._appointments.option("items",e),this.appointmentDataProvider.cleanState()}_getAppointmentsToRepaint(){var t=this.getLayoutManager(),e=t.createAppointmentsMap(this.filteredItems);return this.option("isRenovatedAppointments")?{appointments:e,appointmentTemplate:"item"!==this.option("appointmentTemplate")?this.option("appointmentTemplate"):void 0}:t.getRepaintedAppointments(e,this.getAppointmentsInstance().option("items"))}_initExpressions(t){this._dataAccessors=ml.dataAccessors.create(t,this._dataAccessors,(0,RN.Z)().forceIsoDateParsing,this.option("dateSerializationFormat")),this._dataAccessors.resources=ZN(this.option("resources"))}_updateExpression(t,e){var i={};i[t.replace("Expr","")]=e,this._initExpressions(i)}getResourceDataAccessors(){return this._dataAccessors.resources}_initEditing(){var t=this.option("editing");this._editing={allowAdding:!!t,allowUpdating:!!t,allowDeleting:!!t,allowResizing:!!t,allowDragging:!!t},(0,w.Kn)(t)&&(this._editing=(0,y.l)(this._editing,t)),this._editing.allowDragging=this._editing.allowDragging&&this._editing.allowUpdating,this._editing.allowResizing=this._editing.allowResizing&&this._editing.allowUpdating,this.$element().toggleClass(ihe,this._isReadOnly())}_isReadOnly(){var t=!0,e=this._editing;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t=t&&!e[i]);return t}_dispose(){var t;this._appointmentTooltip&&this._appointmentTooltip.dispose(),null===(t=this._recurrenceDialog)||void 0===t||t.hide("cancel"),this.hideAppointmentPopup(),this.hideAppointmentTooltip(),this._asyncTemplatesTimers.forEach(clearTimeout),this._asyncTemplatesTimers=[],super._dispose()}_initActions(){this._actions={onAppointmentAdding:this._createActionByOption(ul_ADDING),onAppointmentAdded:this._createActionByOption(ul_ADDED),onAppointmentUpdating:this._createActionByOption("onAppointmentUpdating"),onAppointmentUpdated:this._createActionByOption(ul_UPDATED),onAppointmentDeleting:this._createActionByOption("onAppointmentDeleting"),onAppointmentDeleted:this._createActionByOption(ul_DELETED),onAppointmentFormOpening:this._createActionByOption("onAppointmentFormOpening"),onAppointmentTooltipShowing:this._createActionByOption("onAppointmentTooltipShowing")}}_getAppointmentRenderedAction(){return this._createActionByOption("onAppointmentRendered",{excludeValidators:["disabled","readOnly"]})}_renderFocusTarget(){return(0,E.ZT)()}_initMarkup(){if(super._initMarkup(),this._validateDayHours(),this._validateCellDuration(),this._renderMainContainer(),this._renderHeader(),this._layoutManager=new class yoe{constructor(t){this.instance=t,this.appointmentViewModel=new _oe}get appointmentRenderingStrategyName(){return(n=>{var{renderingStrategy:t}={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"}}[n];return t})(this.instance.currentViewType)}getCellDimensions(t){if(this.instance._workSpace)return{width:this.instance._workSpace.getCellWidth(),height:this.instance._workSpace.getCellHeight(),allDayHeight:this.instance._workSpace.getAllDayHeight()}}_getRenderingStrategyOptions(){var t=this.instance.getWorkSpace(),{virtualScrollingDispatcher:e}=this.instance.getWorkSpace(),{cellCountInsideLeftVirtualCell:i,cellCountInsideTopVirtualRow:r}=e,v=Lp(this.instance.option("loadedResources")),D=t.getDOMElementsMetaData(),A=uw(t.option("showAllDayPanel"),t._isVerticalGroupedWorkSpace(),D),z=t._getRowCount(),{positionHelper:Q,viewDataProvider:ue}=t,we=ue.getVisibleDayDuration(t.option("startDayHour"),t.option("endDayHour"),t.option("hoursInterval")),Le=K6(t.type,t.option("startDayHour"),t.option("endDayHour"),t.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:t.option("intervalCount"),hoursInterval:t.option("hoursInterval"),showAllDayPanel:t.option("showAllDayPanel"),isGroupedAllDayPanel:t.isGroupedAllDayPanel(),groups:this.instance._getCurrentViewOption("groups"),groupCount:v,rowCount:z,appointmentCountPerCell:this.instance.option("_appointmentCountPerCell"),appointmentOffset:this.instance.option("_appointmentOffset"),allowResizing:this.instance._allowResizing(),allowAllDayResizing:this.instance._allowAllDayResizing(),startViewDate:t.getStartViewDate(),groupOrientation:t._getRealGroupOrientation(),cellWidth:fT(D),cellHeight:Hk(D),allDayHeight:A,resizableStep:Q.getResizableStep(),visibleDayDuration:we,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:t.type,endViewDate:t.getEndViewDate(),positionHelper:Q,isGroupedByDate:t.isGroupedByDate(),cellDuration:Le,cellDurationInMinutes:t.option("cellDuration"),viewDataProvider:t.viewDataProvider,supportAllDayRow:t.supportAllDayRow(),dateRange:t.getDateRange(),intervalDuration:t.getIntervalDuration(),allDayIntervalDuration:t.getIntervalDuration(!0),isVerticalGroupOrientation:t.isVerticalOrientation(),DOMMetaData:D,instance:this.instance,agendaDuration:t.option("agendaDuration")}}createAppointmentsMap(t){var e=this._getRenderingStrategyOptions(),{viewModel:i,positionMap:r}=this.appointmentViewModel.generate(t,e);return this._positionMap=r,i}_isDataChanged(t){var e=this.instance.appointmentDataProvider;return e.getUpdatedAppointment()===t||e.getUpdatedAppointmentKeys().some(r=>t[r.key]===r.value)}_isAppointmentShouldAppear(t,e){return t.needRepaint&&e.needRemove}_isSettingChanged(t,e){if(t.length!==e.length)return!0;for(var i=(A,z)=>{var Q=A[z];return(0,ui.Z)({},Q,{columnIndex:Q.columnIndex+(Q.leftVirtualCellCount||0),rowIndex:Q.rowIndex+(Q.topVirtualCellCount||0),positionByMap:void 0,topVirtualCellCount:void 0,leftVirtualCellCount:void 0,leftVirtualWidth:void 0,topVirtualHeight:void 0,hMax:Q.reduced?Q.hMax:void 0,vMax:Q.reduced?Q.vMax:void 0,info:{}})},r=0;r<t.length;r++){var v=i(t,r),D=i(e,r);if(D&&(D.sortedIndex=v.sortedIndex),!(0,E.bY)(v,D))return!0}return!1}_getAssociatedSourceAppointment(t,e){for(var i=0;i<e.length;i++){var r=e[i];if(r.itemData===t.itemData)return r}return null}_getDeletedAppointments(t,e){for(var i=[],r=0;r<e.length;r++){var v=e[r];this._getAssociatedSourceAppointment(v,t)||(v.needRemove=!0,i.push(v))}return i}getRepaintedAppointments(t,e){return 0===e.length||"agenda"===this.appointmentRenderingStrategyName?t:(t.forEach(i=>{var r=this._getAssociatedSourceAppointment(i,e);if(r){var v=this._isDataChanged(i.itemData),D=this._isSettingChanged(i.settings,r.settings),A=this._isAppointmentShouldAppear(i,r);i.needRepaint=v||D||A}}),t.concat(this._getDeletedAppointments(t,e)))}getRenderingStrategyInstance(){if(!this.appointmentViewModel.getRenderingStrategy()){var e=this._getRenderingStrategyOptions();this.appointmentViewModel.initRenderingStrategy(e)}return this.appointmentViewModel.getRenderingStrategy()}}(this),this._appointments=this._createComponent("<div>",sre,this._appointmentsConfig()),this._appointments.option("itemTemplate",this._getAppointmentTemplate("appointmentTemplate")),this._appointmentTooltip=new(this.option("adaptivityEnabled")?Mie:Eie)(this._getAppointmentTooltipOptions()),this._createAppointmentPopupForm(),this._isDataSourceLoaded()||this._isDataSourceLoading())this._initMarkupCore(this.option("loadedResources")),this._dataSourceChangedHandler(this._dataSource.items()),this._fireContentReadyAction();else{var t=this._getCurrentViewOption("groups");KN(t,this.option("resources"),this.option("resourceLoaderMap")).done(e=>{this.option("loadedResources",e),this._initMarkupCore(e),this._reloadDataSource()})}}_createAppointmentPopupForm(){var t,e;this._appointmentForm&&(null===(e=this._appointmentForm.form)||void 0===e||e.dispose()),this._appointmentForm=this.createAppointmentForm(),null===(t=this._appointmentPopup)||void 0===t||t.dispose(),this._appointmentPopup=this.createAppointmentPopup(this._appointmentForm)}_renderMainContainer(){this._mainContainer=(0,u.Z)("<div>").addClass("dx-scheduler-container"),this.$element().append(this._mainContainer)}createAppointmentForm(){var t={createResourceEditorModel:()=>((n,t)=>n.map(e=>{var i=Vf(e),r=((n,t)=>{for(var e=0;e<t.length;e++){var i=t[e];if(i.name===n)return i.data}return[]})(i,t);return{editorOptions:{dataSource:r.length?r:QD(e.dataSource),displayExpr:yk(e),valueExpr:rw(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 nie(t)}createAppointmentPopup(t){return new Vne({getElement:()=>this.$element(),createComponent:(i,r,v)=>this._createComponent(i,r,v),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,v)=>{this._workSpace.updateScrollPosition(i,r,v)}},t)}_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:(t,e,i)=>this.fire("getTextAndFormatDate",t,e,i),getAppointmentDisabled:t=>za(t,this._dataAccessors,this.timeZoneCalculator).disabled}}checkAndDeleteAppointment(t,e){var i=za(e,this._dataAccessors,this.timeZoneCalculator),r=this.fireOnAppointmentDeleting(t,i);this._checkRecurringAppointment(t,e,i.startDate,()=>{this.processDeleteAppointment(t,r)},!0)}_getExtraAppointmentTooltipOptions(){return{rtlEnabled:this.option("rtlEnabled"),focusStateEnabled:this.option("focusStateEnabled"),editing:this.option("editing"),offset:this.option("_appointmentTooltipOffset")}}isAppointmentInAllDayPanel(t){var e=this._workSpace;return this.appointmentTakesAllDay(t)&&e.supportAllDayRow()&&e.option("showAllDayPanel")}_initMarkupCore(t){this._readyToRenderAppointments=(0,fi.Ym)(),this._workSpace&&this._cleanWorkspace(),this._renderWorkSpace(t),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 t;this._toggleSmallClass(),this._toggleAdaptiveClass(),null===(t=this.getWorkSpace())||void 0===t||t.updateHeaderEmptyCellWidth(),super._render()}_renderHeader(){if(0!==this.option("toolbar").length){var t=(0,u.Z)("<div>").appendTo(this._mainContainer);this._header=this._createComponent(t,f4,this._headerConfig())}}_headerConfig(){var t=this._getCurrentViewOptions(),e=this._getViewCountConfig(),i=(0,y.l)({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:t.agendaDuration||7},t);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=te.Z.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 t={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:()=>J0(this._workSpace.type),onContentReady:()=>{var e;null===(e=this._workSpace)||void 0===e||e.option("allDayExpanded",this._isAllDayExpanded())}};return t}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&&Js.Z.log("W1015")}_getCurrentViewType(){return this.currentViewType}_renderWorkSpace(t){var e;this._readyToRenderAppointments&&this._toggleSmallClass();var i=(0,u.Z)("<div>").appendTo(this._mainContainer),r=this._getViewCountConfig(),v=uhe[this._getCurrentViewType()].workSpace,D=this._workSpaceConfig(t,r);this._workSpace=this._createComponent(i,v,D),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 t=this.option("currentView"),e=this._getViewByName(t);return{intervalCount:e&&e.intervalCount||1,startDate:e&&e.startDate||null}}_getViewByName(t){for(var e=this.option("views"),i=0;i<e.length;i++)if(e[i].name===t||e[i].type===t||e[i]===t)return e[i]}_recalculateWorkspace(){this._workSpaceRecalculation=new P.BH,this._waitAsyncTemplate(()=>{(0,Eb.U_)(this._workSpace.$element()),this._workSpace._refreshDateTimeIndication()})}_workSpaceConfig(t,e){var i,r=this._getCurrentViewOptions(),v=this.option("scrolling"),D="virtual"===v.mode||"virtual"===(null===(i=r.scrolling)||void 0===i?void 0:i.mode),A=D&&(!(0,w.$K)(v.orientation)||["horizontal","both"].filter(ue=>{var we;return v.orientation===ue||(null===(we=r.scrolling)||void 0===we?void 0:we.orientation)===ue}).length>0),z=this.option("crossScrollingEnabled")||A||kk(this.currentViewType),Q=(0,y.l)({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:z,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:ue=>{this.option("selectedCellData",ue.selectedCellData)},groupByDate:this._getCurrentViewOption("groupByDate"),scrolling:v,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:ue=>this.option("showAllDayPanel",ue),getHeaderHeight:()=>ml.DOM.getHeaderHeight(this._header),onScrollEnd:()=>this._appointments.updateResizableArea(),renovateRender:this._isRenovatedRender(D),isRenovatedAppointments:this.option("isRenovatedAppointments")},r);return Q.observer=this,Q.intervalCount=e.intervalCount,Q.startDate=e.startDate,Q.groups=t,Q.onCellClick=this._createActionByOption("onCellClick"),Q.onCellContextMenu=this._createActionByOption("onCellContextMenu"),Q.currentDate=te.Z.trimTime(new Date(this._dateOption("currentDate"))),Q.hoursInterval=Q.cellDuration/60,Q.allDayExpanded=!1,Q.dataCellTemplate=Q.dataCellTemplate?this._getTemplate(Q.dataCellTemplate):null,Q.timeCellTemplate=Q.timeCellTemplate?this._getTemplate(Q.timeCellTemplate):null,Q.resourceCellTemplate=Q.resourceCellTemplate?this._getTemplate(Q.resourceCellTemplate):null,Q.dateCellTemplate=Q.dateCellTemplate?this._getTemplate(Q.dateCellTemplate):null,Q.getAppointmentDataProvider=()=>this.appointmentDataProvider,Q}_isRenovatedRender(t){return this.option("renovateRender")&&(0,fi.Ym)()||t}_waitAsyncTemplate(t){if(this._options.silent("templatesRenderAsynchronously")){var e=setTimeout(()=>{t(),clearTimeout(e)});this._asyncTemplatesTimers.push(e)}else t()}_getCurrentViewOptions(){return this.currentView}_getCurrentViewOption(t){return this.currentView&&void 0!==this.currentView[t]?this.currentView[t]:this.option(t)}_getAppointmentTemplate(t){var e=this._getCurrentViewOptions();return e&&e[t]?this._getTemplate(e[t]):this._getTemplateByOption(t)}_updateOption(t,e,i){var r=this._getCurrentViewOptions();(!r||!(0,w.$K)(r[e]))&&this["_"+t].option(e,i)}_refreshWorkSpace(t){this._cleanWorkspace(),delete this._workSpace,this._renderWorkSpace(t),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 t;null===(t=this._appointmentPopup)||void 0===t||t.dispose()}_checkRecurringAppointment(t,e,i,r,v,D,A,z){var Q=ka_getField(this._dataAccessors,"recurrenceRule",t);if(Dh().evalRecurrenceRule(Q).isValid&&this._editing.allowUpdating)switch(z||this.option("recurrenceEditMode")){case"series":r();break;case"occurrence":this._excludeAppointmentFromSeries(t,e,i,v,D,A);break;default:A&&(A.cancel=new P.BH),this._showRecurrenceChangeConfirm(v).done(we=>{"editSeries"===we&&r(),"editOccurence"===we&&this._excludeAppointmentFromSeries(t,e,i,v,D,A)}).fail(()=>this._appointments.moveAppointmentBack(A))}else r()}_excludeAppointmentFromSeries(t,e,i,r,v,D){var A=((n,t,e,i)=>{var r=za((0,ui.Z)({},n),e,i);return r.recurrenceException=((n,t)=>{var e=[];return n.recurrenceException&&e.push(n.recurrenceException),e.push(((n,t,e)=>(e&&n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),Cs.Z.serializeDate(n,Yce)))(t,n.startDate,n.allDay)),e.join()})(r,t),r})(t,i,this._dataAccessors,this._timeZoneCalculator),z=(0,ui.Z)({},e);delete z[this._dataAccessors.expr.recurrenceExceptionExpr],delete z[this._dataAccessors.expr.recurrenceRuleExpr],delete z[this.appointmentDataProvider.keyName],!r&&!v&&this.addAppointment(z),v?(this._appointmentPopup.show(z,{isToolbarVisible:!0,action:2,excludeInfo:{sourceAppointment:t,updatedAppointment:A.source()}}),this._editAppointmentData=t):this._updateAppointment(t,A.source(),()=>{this._appointments.moveAppointmentBack(D)},D)}_createRecurrenceException(t,e){var i=[];return t.recurrenceException&&i.push(t.recurrenceException),i.push(this._getSerializedDate(e,t.startDate,t.allDay)),i.join()}_getSerializedDate(t,e,i){return i&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),Cs.Z.serializeDate(t,"yyyyMMddTHHmmssZ")}_showRecurrenceChangeConfirm(t){var e=wn.Z.format(t?"dxScheduler-confirmRecurrenceDeleteMessage":"dxScheduler-confirmRecurrenceEditMessage"),i=wn.Z.format(t?"dxScheduler-confirmRecurrenceDeleteSeries":"dxScheduler-confirmRecurrenceEditSeries"),r=wn.Z.format(t?"dxScheduler-confirmRecurrenceDeleteOccurrence":"dxScheduler-confirmRecurrenceEditOccurrence");return this._recurrenceDialog=(0,vne.PG)({messageHtml:e,showCloseButton:!0,showTitle:!0,buttons:[{text:i,onClick:function(){return"editSeries"}},{text:r,onClick:function(){return"editOccurence"}}],popupOptions:{onHidden:v=>{v.component.$element().remove()},copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0}}),this._recurrenceDialog.show()}_getUpdatedData(t){var e=Jt=>Jt?this.timeZoneCalculator.createDate(Jt,{path:"fromGrid"}):void 0,i=Jt=>!isNaN(new Date(Jt).getTime()),r=this.getTargetCellData(),v=za(t,this._dataAccessors,this.timeZoneCalculator),D=e(r.startDate),A=e(r.endDate),z=new Date(v.startDate),Q=new Date(v.endDate),ue=D||z;i(z)||(z=ue),i(Q)||(Q=A);var we=Q.getTime()-z.getTime();if(this._workSpace.keepOriginalHours()&&i(v.startDate)&&i(D)){var{trimTime:Ue}=te.Z,ut=this.timeZoneCalculator.createDate(v.startDate,{path:"toGrid"}),It=ut.getTime()-Ue(ut).getTime();ue=new Date(Ue(r.startDate).getTime()+It),ue=this.timeZoneCalculator.createDate(ue,{path:"fromGrid"})}var Gt=za({},this._dataAccessors,this.timeZoneCalculator);void 0!==r.allDay&&(Gt.allDay=r.allDay),Gt.startDate=ue;var ln=new Date(ue.getTime()+we);if(this.appointmentTakesAllDay(t)&&!Gt.allDay&&this._workSpace.supportAllDayRow()&&(ln=this._workSpace.calculateEndDate(ue)),v.allDay&&!this._workSpace.supportAllDayRow()&&!this._workSpace.keepOriginalHours()){var En=new Date(ue);En.setHours(0),0!==(ln=new Date(En.getTime()+we)).getHours()&&ln.setHours(this._getCurrentViewOption("endDayHour"))}var on=Xo.getTimezoneOffsetChangeInMs(z,Q,ue,ln);Gt.endDate=new Date(ln.getTime()-on);var Nt=Gt.source();return((n,t,e,i)=>{var r=t.setter;for(var v in i){var D=i[v],A=zN(n,v)?(0,gc.sE)(D):D;r[v](e,A)}})(this.option("resources"),this.getResourceDataAccessors(),Nt,r.groups),Nt}getTargetedAppointment(t,e){var i=ml.dataAccessors.getAppointmentSettings(e),r=ml.dataAccessors.getAppointmentInfo(e),v=(0,u.Z)(e).data(this._appointments._itemIndexKey()),D=za(t,this._dataAccessors,this.timeZoneCalculator),A=D.clone();if(this._isAgenda()&&D.isRecurrent){var z=i.agendaSettings;A.startDate=ka_getField(this._dataAccessors,"startDate",z),A.endDate=ka_getField(this._dataAccessors,"endDate",z)}else i&&(A.startDate=r?r.sourceAppointment.startDate:D.startDate,A.endDate=r?r.sourceAppointment.endDate:D.endDate);var Q=A.source();return e&&this.setTargetedAppointmentResources(Q,e,v),r&&(Q.displayStartDate=new Date(r.appointment.startDate),Q.displayEndDate=new Date(r.appointment.endDate)),Q}subscribe(t,e){this._subscribes[t]=m4[t]=e}fire(t){var e=this._subscribes[t],i=Array.prototype.slice.call(arguments);if(!(0,w.mf)(e))throw Js.Z.Error("E1031",t);return e.apply(this,i.slice(1))}getTargetCellData(){return this._workSpace.getDataByDroppableCell()}_updateAppointment(t,e,i,r){var v={newData:e,oldData:(0,y.l)({},t),cancel:!1},D=function(A){if(i&&i.call(this),A&&"Error"===A.name)throw A}.bind(this);return this._actions.onAppointmentUpdating(v),r&&!(0,w.EY)(r.cancel)&&(r.cancel=new P.BH),this._processActionResult(v,function(A){var z=new P.BH;if(A)D(),z.resolve();else{this._expandAllDayPanel(e);try{z=this.appointmentDataProvider.update(t,e).done(()=>{r&&r.cancel.resolve(!1)}).always(Q=>this._onDataPromiseCompleted(ul_UPDATED,Q)).fail(()=>D())}catch(Q){D(Q),z.resolve()}}return z.promise()})}_processActionResult(t,e){var i=new P.BH,r=v=>{(0,P.gx)((0,P.p4)(v)).always(i.resolve)};return(0,w.tI)(t.cancel)?(0,P.gx)((0,P.p4)(t.cancel)).always(v=>{(0,w.$K)(v)||(v="rejected"===t.cancel.state()),r(e.call(this,v))}):r(e.call(this,t.cancel)),i.promise()}_expandAllDayPanel(t){!this._isAllDayExpanded()&&this.appointmentTakesAllDay(t)&&this._workSpace.option("allDayExpanded",!0)}_onDataPromiseCompleted(t,e,i){var r={appointmentData:i||e};e instanceof Error?r.error=e:this._appointmentPopup.visible&&this._appointmentPopup.hide(),this._actions[t](r),this._fireContentReadyAction()}getAppointmentsInstance(){return this._appointments}getLayoutManager(){return this._layoutManager}getRenderingStrategyInstance(){return this.getLayoutManager().getRenderingStrategyInstance()}getActions(){return this._actions}appointmentTakesAllDay(t){var e=za(t,this._dataAccessors,this.timeZoneCalculator);return Ey(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"),this._getCurrentViewOption("allDayPanelMode"))}dayHasAppointment(t,e,i){var r=we=>this.timeZoneCalculator.createDate(we,{path:"toGrid"}),v=za(e,this._dataAccessors,this.timeZoneCalculator),D=new Date(v.startDate),A=new Date(v.endDate);if(D=r(D),A=r(A),t.getTime()===A.getTime())return D.getTime()===A.getTime();i&&(t=te.Z.trimTime(t),D=te.Z.trimTime(D),A=te.Z.trimTime(A));var z=t.getTime(),Q=D.getTime(),ue=A.getTime();return Q<=z&&z<=ue}setTargetedAppointmentResources(t,e,i){var r=this._getCurrentViewOption("groups");if(null!=r&&r.length){var A,z,v=this.getResourceDataAccessors().setter,D=this._workSpace;this._isAgenda()?(A=function(){var Q=this.getLayoutManager()._positionMap[i];return Cy(Q[0].groupIndex,this.getWorkSpace().option("groups"))},z=function(Q,ue){v[ue.name](t,ue.id)}):(A=function(){var Q=ml.dataAccessors.getAppointmentSettings(e)||{};return D.getCellDataByCoordinates({left:Q.left,top:Q.top}).groups},z=function(Q,ue){v[Q](t,ue)}),(0,O.S6)(A.call(this),z)}}getStartViewDate(){var t;return null===(t=this._workSpace)||void 0===t?void 0:t.getStartViewDate()}getEndViewDate(){return this._workSpace.getEndViewDate()}showAddAppointmentPopup(t,e){var i=za({},this._dataAccessors,this.timeZoneCalculator);i.allDay=t.allDay,i.startDate=this.timeZoneCalculator.createDate(t.startDate,{path:"fromGrid"}),i.endDate=this.timeZoneCalculator.createDate(t.endDate,{path:"fromGrid"});var r=(0,y.l)(i.source(),e);this.showAppointmentPopup(r,!0)}showAppointmentPopup(t,e,i){var r=(0,ui.Z)({},i);r&&(delete r.displayStartDate,delete r.displayEndDate);var v=za(r||t,this._dataAccessors,this.timeZoneCalculator),D=(0,y.l)({},t,r),A=e??(0,w.Qr)(t);(0,w.Qr)(t)&&(t=this.createPopupAppointment()),A?(delete this._editAppointmentData,this._editing.allowAdding&&this._appointmentPopup.show(t,{isToolbarVisible:!0,action:0})):this._checkRecurringAppointment(t,D,v.startDate,()=>{this._editAppointmentData=t,this._appointmentPopup.show(t,{isToolbarVisible:this._editing.allowUpdating,action:1})},!1,!0)}createPopupAppointment(){var t={},e=te.Z.dateToMilliseconds,i=new Date(this.option("currentDate")),r=new Date(i.getTime()+this.option("cellDuration")*e("minute"));return ka_setField(this._dataAccessors,"startDate",t,i),ka_setField(this._dataAccessors,"endDate",t,r),t}hideAppointmentPopup(t){var e;null!==(e=this._appointmentPopup)&&void 0!==e&&e.visible&&(t&&this._appointmentPopup.saveChangesAsync(),this._appointmentPopup.hide())}showAppointmentTooltip(t,e,i){if(t){var v={itemData:i||t,groupIndex:ml.dataAccessors.getAppointmentSettings(e)?.groupIndex,groups:this.option("groups")},A=this.createGetAppointmentColor()(v),z=new i6(t,i,A);this.showAppointmentTooltipCore(e,[z])}}createGetAppointmentColor(){return t=>{var e={resources:this.option("resources"),dataAccessors:this.getResourceDataAccessors(),loadedResources:this.option("loadedResources"),resourceLoaderMap:this.option("resourceLoaderMap")};return UN(e,t)}}showAppointmentTooltipCore(t,e,i){var r={cancel:!1,appointments:e.map(v=>{var D={appointmentData:v.appointment,currentAppointmentData:(0,ui.Z)({},v.targetedAppointment),color:v.color};if(v.settings.info){var{startDate:A,endDate:z}=v.settings.info.appointment;D.currentAppointmentData.displayStartDate=A,D.currentAppointmentData.displayEndDate=z}return D}),targetElement:t};this._createActionByOption("onAppointmentTooltipShowing")(r),this._appointmentTooltip.isAlreadyShown(t)?this.hideAppointmentTooltip():this._processActionResult(r,v=>{!v&&this._appointmentTooltip.show(t,e,(0,ui.Z)({},this._getExtraAppointmentTooltipOptions(),i))})}hideAppointmentTooltip(){this._appointmentTooltip&&this._appointmentTooltip.hide()}scrollToTime(t,e,i){Js.Z.log("W0002","dxScheduler","scrollToTime","21.1",'Use the "scrollTo" method instead'),this._workSpace.scrollToTime(t,e,i)}scrollTo(t,e,i){this._workSpace.scrollTo(t,e,i)}_isHorizontalVirtualScrolling(){var t=this.option("scrolling"),{orientation:e,mode:i}=t;return"virtual"===i&&("horizontal"===e||"both"===e)}addAppointment(t){var e=za(t,this._dataAccessors,this.timeZoneCalculator);e.text=e.text||"";var i=e.source(!0),r={appointmentData:i,cancel:!1};return this._actions[ul_ADDING](r),this._processActionResult(r,v=>v?(new P.BH).resolve():(this._expandAllDayPanel(i),this.appointmentDataProvider.add(i).always(D=>this._onDataPromiseCompleted(ul_ADDED,D))))}updateAppointment(t,e){return this._updateAppointment(t,e)}deleteAppointment(t){var e=this.fireOnAppointmentDeleting(t);this.processDeleteAppointment(t,e)}fireOnAppointmentDeleting(t,e){var i={appointmentData:t,targetedAppointmentData:e,cancel:!1};return this._actions.onAppointmentDeleting(i),i}processDeleteAppointment(t,e){this._processActionResult(e,function(i){i||this.appointmentDataProvider.remove(t).always(r=>this._onDataPromiseCompleted(ul_DELETED,r,t))})}deleteRecurrence(t,e,i){this._checkRecurringAppointment(t,{},e,()=>{this.processDeleteAppointment(t,{cancel:!1})},!0,!1,null,i)}focus(){this._editAppointmentData?this._appointments.focus():this._workSpace.focus()}getFirstDayOfWeek(){return(0,w.$K)(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):Bo.Z.firstDayOfWeekIndex()}_validateDayHours(){var t=this._getCurrentViewOption("startDayHour"),e=this._getCurrentViewOption("endDayHour");Ak(t,e)}_getDragBehavior(){return this._workSpace.dragBehavior}}gR.include(co.Z),(0,T.Z)("dxScheduler",gR);let qH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.LS2,M.SCM,M.hFl,M.WyY,M.t$9,f.Lz,f.ie,p.Cu],M.LS2,M.SCM,M.hFl,M.WyY,M.t$9,f.ie]}),n})();var JH=l(944),QH=l(6229);const che={provide:ie.JU,useExisting:(0,a.Gpc)(()=>hhe),multi:!0};let hhe=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),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 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 IV(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-slider"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,che,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),ez=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.e1H,M.FZZ,M.vZC,f.Lz,f.ie,p.Cu],M.e1H,M.FZZ,M.vZC,f.ie]}),n})();l(1414);let tz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.ywL,f.Lz,f.ie,p.Cu],M.ywL,f.ie]}),n})();var vhe={line:!0,spline:!0,stepline:!0,area:!0,steparea:!0,splinearea:!0,bar:!0,winloss:!0},AT=Math,yhe=AT.abs,Che=AT.round,oz=AT.max,az=AT.min,fR=isFinite,mR=Number,xhe=String;function sz(n,t,e,i){return(e===i.first||e===i.last)&&(n=t.firstLastColor),(i.min||[]).indexOf(e)>=0&&(n=t.minColor),(i.max||[]).indexOf(e)>=0&&(n=t.maxColor),n}var PT=KC.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 n=this._allOptions,t=this._canvas,e=n.pointSize&&Math.ceil(n.pointSize/2)+2,i=n.type;return"bar"!==i&&"winloss"!==i&&(n.showFirstLast||n.showMinMax)?{width:t.width,height:t.height,left:t.left+e,right:t.right+e,top:t.top+e,bottom:t.bottom+e}:t},_prepareOptions:function(){this._allOptions=this.callBase(),this._allOptions.type=Sn(this._allOptions.type),vhe[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 S0({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 n=this._series;this._prepareDataSource();var t=this._prepareSeriesOptions();n.updateOptions(t);var e={groups:[{series:[n]}]};e.argumentOptions={type:"bar"===t.type?"discrete":void 0},this._simpleDataSource=a0(this._simpleDataSource,e,this._incidentOccurred,{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0})[n.getArgumentField()],t.customizePoint=this._getCustomizeFunction(),n.updateData(this._simpleDataSource),n.createPoints(),this._groupsDataCategories=e.categories},_optionChangesMap:{dataSource:"DATA_SOURCE"},_optionChangesOrder:["DATA_SOURCE"],_change_DATA_SOURCE:function(){this._updateDataSource()},_prepareDataSource:function(){var n=this._allOptions,t=n.argumentField,e=n.valueField,r=function whe(n,t,e,i){return Vn(n,function(r,v){var A,z,D=null;return void 0!==r&&(D={},A=fR(r),D[t]=A?xhe(v):r[t],D[e]=null===(z=A?r:r[e])?i?void 0:z:mR(z),D=void 0!==D[t]&&void 0!==D[e]?D:null),D})}(this._dataSourceItems()||[],t,e,this.option("ignoreEmptyPoints"));"winloss"===n.type?(this._winlossDataSource=r,this._simpleDataSource=function Ehe(n,t,e,i){return Vn(n,function(r){var v={};return v[t]=r[t],v[e]=yhe(r[e]-i)<1e-4?0:r[e]>i?1:-1,v})}(r,t,e,n.winlossThreshold)):this._simpleDataSource=r},_prepareSeriesOptions:function(){var n=this._allOptions,t="winloss"===n.type?"bar":n.type;return{visible:!0,argumentField:n.argumentField,valueField:n.valueField,color:n.lineColor,width:n.lineWidth,widgetType:"chart",name:"",type:t,opacity:-1!==t.indexOf("area")?this._allOptions.areaOpacity:void 0,point:{size:n.pointSize,symbol:n.pointSymbol,border:{visible:!0,width:2},color:n.pointColor,visible:!1,hoverStyle:{border:{}},selectionStyle:{border:{}}},border:{color:n.lineColor,width:n.lineWidth,visible:"bar"!==t}}},_getCustomizeFunction:function(){var i,n=this._allOptions,e=this._getExtremumPointsIndexes(this._winlossDataSource||this._simpleDataSource);return i="winloss"===n.type||"bar"===n.type?function Ohe(n,t,e){return function(){var i=this.index,r="winloss"===t.type;return{color:sz((r?e[i][t.valueField]:this.value)>=(r?t.winlossThreshold:0)?r?t.winColor:t.barPositiveColor:r?t.lossColor:t.barNegativeColor,t,i,n)}}}(e,n,this._winlossDataSource):function She(n,t){return function(){var e=sz(void 0,t,this.index,n);return e?{visible:!0,border:{color:e}}:{}}}(e,n),i},_getExtremumPointsIndexes:function(n){var t=this._allOptions,e=n.length-1,i={};return this._minMaxIndexes=function bhe(n,t){var Q,ue,i=(n[0]||{})[t]||0,r=i,v=i,D=[0],A=[0],z=n.length;for(ue=1;ue<z;ue++)(Q=n[ue][t])<r?(r=Q,D=[ue]):Q===r&&D.push(ue),Q>v?(v=Q,A=[ue]):Q===v&&A.push(ue);return v===r&&(D=A=[]),{minIndexes:D,maxIndexes:A}}(n,t.valueField),t.showFirstLast&&(i.first=0,i.last=e),t.showMinMax&&(i.min=this._minMaxIndexes.minIndexes,i.max=this._minMaxIndexes.maxIndexes),i},_getStick:function(){return{stick:"bar"!==this._series.type}},_updateRange:function(){var Q,n=this._series,t=n.type,e="bar"===t,i="winloss"===t,r=n.getRangeData(),v=this._allOptions.minValue,D=(0,w.$K)(v)&&fR(v),A=this._allOptions.maxValue,z=(0,w.$K)(A)&&fR(A),ue=.15*(r.val.max-r.val.min);e||i||"area"===t?(0!==r.val.min&&(r.val.min-=ue),0!==r.val.max&&(r.val.max+=ue)):(r.val.min-=ue,r.val.max+=ue),(D||z)&&(D&&z?(r.val.minVisible=az(v,A),r.val.maxVisible=oz(v,A)):(r.val.minVisible=D?mR(v):void 0,r.val.maxVisible=z?mR(A):void 0),i&&(r.val.minVisible=D?oz(r.val.minVisible,-1):void 0,r.val.maxVisible=z?az(r.val.maxVisible,1):void 0)),n.getPoints().length>1&&e&&(r.arg.min=r.arg.min-(Q=.1*(r.arg.max-r.arg.min)),r.arg.max=r.arg.max+Q),r.arg.categories=this._groupsDataCategories,this._ranges=r},_getBarWidth:function(n){var t=this._canvas,r=Che((t.width-t.left-t.right-4*n)/n);return r<1&&(r=1),r>50&&(r=50),r},_correctPoints:function(){var i,r,n=this._allOptions.type,t=this._series.getPoints(),e=t.length;if("bar"===n||"winloss"===n)for(i=this._getBarWidth(e),r=0;r<e;r++)t[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 n=this._allOptions,t=this._winlossDataSource||this._simpleDataSource,e=this._tooltip;if(0===t.length)return{};var i=this._minMaxIndexes,r=n.valueField,v=t[0][r],D=t[t.length-1][r],A=(0,w.$K)(i.minIndexes[0])?t[i.minIndexes[0]][r]:v,z=(0,w.$K)(i.maxIndexes[0])?t[i.maxIndexes[0]][r]:v,Q=e.formatValue(v),ue=e.formatValue(D),we=e.formatValue(A),Le=e.formatValue(z),Ue={firstValue:Q,lastValue:ue,minValue:we,maxValue:Le,originalFirstValue:v,originalLastValue:D,originalMinValue:A,originalMaxValue:z,valueText:["Start:",Q,"End:",ue,"Min:",we,"Max:",Le]};return"winloss"===n.type&&(Ue.originalThresholdValue=n.winlossThreshold,Ue.thresholdValue=e.formatValue(n.winlossThreshold)),Ue}});Vn(["lineColor","lineWidth","areaOpacity","minColor","maxColor","barPositiveColor","barNegativeColor","winColor","lessColor","firstLastColor","pointSymbol","pointColor","pointSize","type","argumentField","valueField","winlossThreshold","showFirstLast","showMinMax","ignoreEmptyPoints","minValue","maxValue"],function(n){PT.prototype._optionChangesMap[n]="OPTIONS"}),(0,T.Z)("dxSparkline",PT),PT.addPlugin(Ha);let lz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.KjY,M.Kx,M.vZC,M.bgw,M.YXG,M.FZZ,M.Ois,f.Lz,f.ie,p.Cu],M.KjY,M.Kx,M.vZC,M.bgw,M.YXG,M.FZZ,M.Ois,f.ie]}),n})();var kT=l(5335),{getSwatchContainer:Ihe}=f9.Z,Mhe=Xh.Z.add;(0,T.Z)("dxSpeedDialAction",class uz extends sa.Z{_getDefaultOptions(){return(0,y.l)(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 vh.Z})}_optionChanged(t){switch(t.name){case"onClick":case"icon":case"label":case"visible":case"index":case"onInitializing":(0,kT.NJ)(this);break;case"animation":case"id":break;default:super._optionChanged(t)}}_render(){this._toggleVisibility(!1),Ihe(this.$element())?(0,kT.NJ)(this):Mhe(()=>(0,kT.NJ)(this))}_dispose(){(0,kT.BM)(this._options.silent("id")),super._dispose()}});let dz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[f.Lz,f.ie,p.Cu],f.ie]}),n})();const Phe={provide:ie.JU,useExisting:(0,a.Gpc)(()=>khe),multi:!0};let khe=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),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 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 qne(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-switch"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,Phe,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),cz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[f.Lz,f.ie,p.Cu],f.ie]}),n})(),hz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,f.Lz,f.ie,p.Cu],M.Q8p,f.ie]}),n})();l(152);let pz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,f.Lz,f.ie,p.Cu],M.Q8p,f.ie]}),n})();var gz=l(4162);const Lhe={provide:ie.JU,useExisting:(0,a.Gpc)(()=>Bhe),multi:!0};let Bhe=(()=>{class n extends f.Ay{constructor(e,i,r,v,D,A,z,Q){super(e,i,r,v,z,Q),this._watcherHelper=v,this._idh=D,this.touched=ue=>{},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),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 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 Zne(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),v=null!==this._idh.getChanges(e,i);(r||v)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(f._5),a.Y36(f._h),a.Y36(f.i9),a.Y36(f.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-text-area"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(v){return i.change(v)})("onBlur",function(v){return i.touched(v)})},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:[a._Bn([f._5,f._h,Lhe,f.al,f.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),fz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[f.Lz,f.ie,p.Cu],f.ie]}),n})();var mz=l(6812),_z="dx-tile",zhe={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"}},vz=Ab.Z.inherit({_activeStateUnit:"."+_z,_getDefaultOptions:function(){return(0,y.l)(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"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return ry.nativeScrolling},options:{showScrollbar:"onScroll"}}])},_itemClass:function(){return _z},_itemDataKey:function(){return"dxTileData"},_itemContainer:function(){return this._$container},_init:function(){this.callBase(),this.$element().addClass("dx-tileview"),this._initScrollView()},_dataSourceLoadingChangedHandler:function(n){var t=this._scrollView;!t||!t.startLoading||(n&&this.option("indicateLoading")?t.startLoading():t.finishLoading())},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_initScrollView:function(){var{width:n,height:t,direction:e,showScrollbar:i}=this.option();this._scrollView=this._createComponent(this.$element(),Ef.Z,{direction:e,width:n,height:t,scrollByContent:!0,useKeyboard:!1,showScrollbar:i}),this._$container=(0,u.Z)(this._scrollView.content()),this._$container.addClass("dx-tileview-wrapper"),this._scrollView.option("onUpdated",this._renderGeometry.bind(this))},_initMarkup:function(){this.callBase(),(0,E.g0)(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=zhe[this.option("direction")];var r,n=this.option("items")||[],t=this._config,e=this.option("itemMargin"),i=Math.max.apply(Math,(0,O.UI)(n||[],function(v){return Math.round(v[t.itemCrossRatio]||1)}));r=fi.Ym?("width"===t.crossDimension?s.dz:s.Cr)(this.$element()):parseInt(this.$element().get(0).style[t.crossDimension]),this._cellsPerDimension=Math.floor(r/(this.option(t.baseItemCrossDimension)+e)),this._cellsPerDimension=Math.max(this._cellsPerDimension,i),this._cells=[],this._cells.push(new Array(this._cellsPerDimension)),this._arrangeItems(n),this._renderContentSize(t,e)},_renderContentSize:function(n,t){var{mainDimension:e,baseItemMainDimension:i}=n;if((0,fi.Ym)()){var r=this._cells.length*this.option(i)+(this._cells.length+1)*t,v=("width"===e?s.dz:s.Cr)(this.$element());("width"===e?s.cl:s.QQ)(this._$container,Math.max(r,v))}},_arrangeItems:function(n){var t=this._config,e=t.itemMainRatio,i=t.itemCrossRatio,r=t.mainPosition;this._itemsPositions=[],(0,O.S6)(n,function(v,D){var A={};A[e]=D[e]||1,A[i]=D[i]||1,A.index=v,A[e]=A[e]<=0?0:Math.round(A[t.itemMainRatio]),A[i]=A[i]<=0?0:Math.round(A[t.itemCrossRatio]);var z=this._getItemPosition(A);-1===z[r]&&(z[r]=this._cells.push(new Array(this._cellsPerDimension))-1),this._occupyCells(A,z),this._arrangeItem(A,z),this._itemsPositions.push(z)}.bind(this))},_getItemPosition:function(n){var t=this._config,e=t.mainPosition,i=t.crossPosition,r={};r[e]=-1,r[i]=0;for(var v=0;v<this._cells.length;v++){for(var D=0;D<this._cellsPerDimension;D++)if(this._itemFit(v,D,n)){r[e]=v,r[i]=D;break}if(r[e]>-1)break}return r},_itemFit:function(n,t,e){var i=!0,r=this._config,v=e[r.itemMainRatio],D=e[r.itemCrossRatio];if(t+D>this._cellsPerDimension)return!1;for(var A=n;A<n+v;A++)for(var z=t;z<t+D;z++)if(this._cells.length-1<A)this._cells.push(new Array(this._cellsPerDimension));else if(void 0!==this._cells[A][z]){i=!1;break}return i},_occupyCells:function(n,t){for(var e=this._config,i=t[e.mainPosition],r=t[e.crossPosition],v=n[e.itemMainRatio],D=n[e.itemCrossRatio],A=i;A<i+v;A++)for(var z=r;z<r+D;z++)this._cells[A][z]=n.index},_arrangeItem:function(n,t){var e=this._config,i=t[e.mainPosition],r=t[e.crossPosition],v=n[e.itemMainRatio],D=n[e.itemCrossRatio],A=this.option(e.baseItemCrossDimension),z=this.option(e.baseItemMainDimension),Q=this.option("itemMargin"),ue={display:v<=0||D<=0?"none":""},we=v*z+(v-1)*Q,Le=D*A+(D-1)*Q;if(ue[e.mainDimension]=we<0?0:we,ue[e.crossDimension]=Le<0?0:Le,ue[e.mainPosition]=i*z+(i+1)*Q,ue[e.crossPosition]=r*A+(r+1)*Q,this.option("rtlEnabled")){var Ue=(0,s.dz)(this._$container),ut=this.option("baseItemWidth"),It=t.left;ue.left=Ue-(It*ut+(ut+Q)*n.widthRatio+It*Q)}this._itemElements().eq(n.index).css(ue)},_moveFocus:function(n){var t="up",e="down",i=this.option("rtlEnabled")?"right":"left",r=this.option("rtlEnabled")?"left":"right",v="pageup",D="pagedown",A="horizontal"===this.option("direction"),z=this._cells,Q=(0,u.Z)(this.option("focusedElement")).index(),ue=this._itemsPositions[Q].left,we=this._itemsPositions[Q].top,Le=(A?z:z[0]).length,Ue=(A?z[0]:z).length,ut=function(ln,En){return A?z[ln][En]:z[En][ln]};switch(n){case v:case t:for(;we>0&&Q===ut(ue,we);)we--;we<0&&(we=0);break;case D:case e:for(;we<Ue&&Q===ut(ue,we);)we++;we===Ue&&(we=Ue-1);break;case r:for(;ue<Le&&Q===ut(ue,we);)ue++;ue===Le&&(ue=Le-1);break;case i:for(;ue>=0&&Q===ut(ue,we);)ue--;ue<0&&(ue=0);break;default:return void this.callBase.apply(this,arguments)}var It=ut(ue,we);if((0,w.$K)(It)){var Gt=this._itemElements().eq(It);this.option("focusedElement",(0,S.u)(Gt)),this._scrollToItem(Gt)}},_scrollToItem:function(n){if(n.length){var t=this._config,e="width"===t.mainDimension?s.Y_:s.zp,i=this.option("itemMargin"),r=n.position()[t.mainPosition],v=e(n),D=r+v,A=this.scrollPosition(),z=e(this.$element());A<=r&&D<=A+z||this._scrollView.scrollTo(A>r?r-i:r+v-z+i)}},_optionChanged:function(n){switch(n.name){case"items":this.callBase(n),this._renderGeometry(),this._updateScrollView();break;case"showScrollbar":this._initScrollView();break;case"disabled":this._scrollView.option("disabled",n.value),this.callBase(n);break;case"baseItemWidth":case"baseItemHeight":case"itemMargin":this._renderGeometry();break;case"width":case"height":this.callBase(n),this._renderGeometry(),this._scrollView.option(n.name,n.value),this._updateScrollView();break;case"direction":this._renderGeometry(),this._updateScrollView();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;default:this.callBase(n)}},scrollPosition:function(){return this._scrollView.scrollOffset()[this._config.mainPosition]}});(0,T.Z)("dxTileView",vz);let yz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,f.Lz,f.ie,p.Cu],M.Q8p,f.ie]}),n})();l(4131);let Cz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,f.Lz,f.ie,p.Cu],M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,f.ie]}),n})(),xz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,f.Lz,f.ie,p.Cu],M.Q8p,f.ie]}),n})(),bz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.nT1,M.Fkd,f.Lz,f.ie,p.Cu],M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.nT1,M.Fkd,f.ie]}),n})(),wz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Uz5,M.LNK,M.mtS,M.tRk,M.idP,M.HaS,M.CxW,M.FZZ,M.Inm,M.e1H,M.$D5,M.SCM,M.DTR,M.ZCX,M.Oll,M.Q8p,M.Jiy,M._9O,M.kSd,M.fOF,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.SH1,M.FJZ,M.RbS,M.$wd,M.xHg,M.p6x,M.vLN,M.rH1,M.lUW,M.$9q,M.nD3,M.Upd,M.WSE,M.LHj,M._PP,M.ywL,M.WyY,M.$YR,M.kEo,M.uKt,M.YOZ,M.azD,f.Lz,f.ie,p.Cu],M.Uz5,M.LNK,M.mtS,M.tRk,M.idP,M.HaS,M.CxW,M.FZZ,M.Inm,M.e1H,M.$D5,M.SCM,M.DTR,M.ZCX,M.Oll,M.Q8p,M.Jiy,M._9O,M.kSd,M.fOF,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.SH1,M.FJZ,M.RbS,M.$wd,M.xHg,M.p6x,M.vLN,M.rH1,M.lUW,M.$9q,M.nD3,M.Upd,M.WSE,M.LHj,M._PP,M.ywL,M.WyY,M.$YR,M.kEo,M.uKt,M.YOZ,M.azD,f.ie]}),n})();function _R(n){var t=n.border||{};return{fill:n.color,opacity:n.opacity,stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,hatching:n.hatching}}function Ez(n,t){return{attr:{filter:t},css:di(n.font)}}function Sz(){}var Khe=[function Ghe(n,t){n.smartAttr(t)},function jhe(n,t){n.outer.attr({stroke:t.stroke,"stroke-width":t["stroke-width"],"stroke-opacity":t["stroke-opacity"]}),n.inner.smartAttr({fill:t.fill,opacity:t.opacity,hatching:t.hatching})}];(0,y.l)(Sz.prototype,{value:0,isNode:function(){return!!(this.nodes&&this.level<this.ctx.maxLevel)},isActive:function(){var n=this.ctx;return this.level>=n.minLevel&&this.level<=n.maxLevel},updateStyles:function(){var n=Number(this.isNode());this.state=this._buildState(this.ctx.settings[n].state,!n&&this.color&&{fill:this.color})},_buildState:function(n,t){var e=(0,y.l)({},n);return t?(0,y.l)(e,t):e},updateLabelStyle:function(){var n=this.ctx.settings[Number(this.isNode())];this.labelState=n.labelState,this.labelParams=n.labelParams},_getState:function(){return this.state},applyState:function(){Khe[Number(this.isNode())](this.tile,this._getState())}});const Ay=Sz;var Oz,$he=Math.round,vR={};function Dz(n){return vR[Sn(n)]||(0,w.mf)(n)&&n||Oz}function RT(n,t){vR[n]=t}var LT={"-1":[2,0],1:[0,2]},Tz=function(n){return n[2]-n[0]<n[3]-n[1]?0:1};function Iz(n,t,e){var i=void 0!==e?e:Tz(n),r=1-i,v=t[i],D=t[r],A=LT[v],z=LT[D];return{staticSide:n[2+i]-n[i],variedSide:n[2+r]-n[r],static1:i+A[0],static2:i+A[1],varied1:r+z[0],varied2:r+z[1],staticDir:v,variedDir:D}}function Mz(n,t,e,i,r){var v,D,ut,It,A=[0,0,0,0],z=i.static1,Q=i.static2,ue=e[z],we=i.staticDir,Le=i.staticSide,Ue=r.sum;for(A[i.varied1]=e[i.varied1],A[i.varied2]=e[i.varied1]+i.variedDir*r.side,v=t,D=t+r.count;v<D;++v)(ut=A.slice())[z]=ue,It=$he(Le*n[v].value/Ue)||0,Ue-=n[v].value,Le-=It,ut[Q]=ue+=we*It,n[v].rect=ut;e[i.varied1]=A[i.varied2]}var Az,yR={};function Xhe(n){return function(t){return t.isNode()?void 0:n(t)}}function qhe(n){return function(t){var e=!t.isNode()&&t.parent;return e?e._groupColor=e._groupColor||n(e):void 0}}function CR(n,t){yR[n]=t}function epe(n){return n.value}function Pz(n){return n.colorCodeField?function tpe(n){return function(t){return Number(t.data[n])}}(n.colorCodeField):epe}var npe=Math.max,ipe=Math.round;function rpe(n,t){return t.value-n.value}function ope(n){return npe(n,1/n)}function lpe(n,t,e){var i=Iz(e.rect,e.directions,e.staticSideIndex),r=function spe(n){return(n[2]-n[0])*(n[3]-n[1])}(e.rect),v=r>0?function ape(n,t,e){var r,D,A,z,we,i=1/0,v=0,Q=n.length,ue=e.areaToValue/e.staticSide;for(A=t;A<Q;){for(we=e.staticSide/ue/(D=v+n[A].value),r=0,z=t;z<=A;++z)r=e.accumulate(r,ope(we*n[z].value/D),z-t+1);if(!(r<i))break;i=r,v=D,++A}return{sum:v,count:A-t,side:ipe(ue*v)}}(n,t,{areaToValue:r/e.sum,accumulate:e.accumulate,staticSide:i.staticSide}):{sum:1,side:i.variedSide,count:n.length-t};return Mz(n,t,e.rect,i,v),e.sum-=v.sum,t+v.count}function kz(n,t,e){var v,i=n.items,r=i.length,D={sum:n.sum,rect:n.rect,directions:n.directions,accumulate:t};for(e&&(D.staticSideIndex=Tz(D.rect)),i.sort(rpe),v=0;v<r;)v=lpe(i,v,D)}var upe=Math.max;function dpe(n,t){return upe(n,t)}function Rz(n){var e,v,t=n.nodes.slice(),i=t.length,r=0;for(e=0;e<i;++e)(v=t[e]).isNode()?r=Math.max(r,Rz(v)):r+=1;return r}function ppe(n){var t=n.generateColors();return function(e){return t[e.index]}}function Lz(n){var e,v,t=n.nodes.slice(),i=t.length,r=0;for(e=0;e<i;++e)(v=t[e]).isNode()&&(r+=Lz(v)+1);return r}function fpe(n,t){var e=function gpe(n,t){var r,D,e={},i=t.nodes.slice(),v=i.length;for(r=0;r<v;++r)(D=i[r]).isNode()?v=(i=i.concat(D.nodes)).length:e[D.parent._id]||(e[D.parent._id]=n.getNextColor());return e}(n,t);return function(i){return e[i._id]}}RT("squarified",function cpe(n){return kz(n,dpe,!1)}),CR("discrete",function hpe(n,t,e){var i=t.createPalette(n.palette,{useHighlight:!0,extensionMode:n.paletteExtensionMode,count:n.colorizeGroups?Lz(e):Rz(e)});return(n.colorizeGroups?fpe:ppe)(i,e)});var Bz=Math.max,Fz={lefttoprightbottom:[1,1],leftbottomrighttop:[1,-1],righttopleftbottom:[-1,1],rightbottomlefttop:[-1,-1]};function n_(n){return n>0?Math.round(n):0}(function Yhe(n){Oz=vR[n]})("squarified"),function Qhe(n){Az=n}("discrete");var xR=Cl.inherit({_handlers:{beginBuildNodes:E.ZT,buildNode:E.ZT,endBuildNodes:E.ZT,setTrackerData:E.ZT,calculateState:function(n){return _R(n)}},_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 n=this;n._rectOffsets={},n._handlers=Object.create(n._handlers),n._context={suspend:function(){n._applyingChanges||n._suspendChanges()},resume:function(){n._applyingChanges||n._resumeChanges()},change:function(t){n._change(t)},settings:[{},{}],calculateState:n._handlers.calculateState,calculateLabelState:Ez},n._root=n._topNode={nodes:[]},n.callBase.apply(n,arguments)},_initialChanges:["DATA_SOURCE"],_initCore:function(){var n=this._renderer;this._createProxyType(),this._tilesGroup=n.g().linkOn(n.root,"tiles").linkAppend(),this._labelsGroup=n.g().linkOn(n.root,"labels").linkAppend()},_createProxyType:E.ZT,_disposeCore:function(){this._filter&&this._filter.dispose(),this._labelsGroup.linkOff(),this._tilesGroup.linkOff()},_applySize:function(n){this._tilingRect=n.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 n=this;n.callBase.apply(n,arguments),n._isDataExpected||n._drawn(),n._context.forceReset=!1},_buildNodes:function(){var n=this._root=this._topNode=new Ay;n._id=0,n.parent={},n.data={},n.level=n.index=-1,n.ctx=this._context,n.label=null,this._nodes=[n],this._handlers.beginBuildNodes();var t=this._processDataSourceItems(this._dataSourceItems()||[]);Vz(n,t.items,0,{itemsField:!t.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:E.ZT,_processDataSourceItems:function(n){return{items:n,isPlain:!1}},_changeTileSettings:function(){var n=this._getOption("tile"),t=this._rectOffsets,e=n_(n.border.width),i=e/2,r=1&e?.5:0,v=n.label,D=this._context.settings[0];this._change(["TILES","LABELS"]),D.state=this._handlers.calculateState(n),this._filter=this._filter||this._renderer.shadowFilter("-50%","-50%","200%","200%"),this._filter.attr(v.shadow),this._calculateLabelSettings(D,v,this._filter.id),(t.tileEdge!==i||t.tileInner!==r)&&(t.tileEdge=i,t.tileInner=r,this._change(["TILING"]))},_changeGroupSettings:function(){var D,n=this._getOption("group"),t=n.label,e=this._rectOffsets,i=n_(n.border.width),r=i/2,v=1&i?.5:0,A=n_(n.padding),z=this._context.settings[1];this._change(["TILES","LABELS"]),z.state=this._handlers.calculateState(n),this._calculateLabelSettings(z,t),D=n.headerHeight>=0?n_(n.headerHeight):z.labelParams.height+2*n_(t.paddingTopBottom),this._headerHeight!==D&&(this._headerHeight=D,this._change(["TILING"])),this._groupPadding!==A&&(this._groupPadding=A,this._change(["TILING"])),(e.headerEdge!==r||e.headerInner!==v)&&(e.headerEdge=r,e.headerInner=v,this._change(["TILING"]))},_calculateLabelSettings:function(n,t,e){var i=this._getTextBBox(t.font),r=n_(t.paddingLeftRight),v=n_(t.paddingTopBottom),D=this._getOption("tile.label"),A=this._getOption("group.label");n.labelState=Ez(t,e),n.labelState.visible=!("visible"in t)||!!t.visible,n.labelParams={height:i.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:v,paddingLeftRight:r,tileLabelWordWrap:D.wordWrap,tileLabelOverflow:D.textOverflow,groupLabelOverflow:A.textOverflow}},_changeMaxDepth:function(){var n=this._getOption("maxDepth",!0);n=n>=1?Math.round(n):1/0,this._maxDepth!==n&&(this._maxDepth=n,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(n,t){Nz(n,this._topNode,t)},_applyTilesAppearance:function(){var n=function Jhe(n,t,e){var i=Sn(n.type||Az),r=yR[i]&&yR[i](n,t,e);return r?(n.colorizeGroups?qhe:Xhe)(r):E.ZT}(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:n},_pe)},_applyLabelsAppearance:function(){this._labelsGroup.clear(),this._processNodes({renderer:this._renderer,group:this._labelsGroup,setTrackerData:this._handlers.setTrackerData,labelField:this._getOption("labelField",!0)||"name"},Cpe),this._change(["LABELS_LAYOUT"])},_performTiling:function(){var n={algorithm:Dz(this._getOption("layoutAlgorithm",!0)),directions:Fz[String(this._getOption("layoutDirection",!0)).toLowerCase()]||Fz.lefttoprightbottom,headerHeight:this._headerHeight,groupPadding:this._groupPadding,rectOffsets:this._rectOffsets};this._topNode.innerRect=this._tilingRect,Hz(n,this._topNode),this._processNodes(n,wpe),this._change(["LABELS_LAYOUT"]),this._onTilingPerformed()},_onTilingPerformed:E.ZT,_performLabelsLayout:function(){this._processNodes(null,Epe)},_getTextBBox:function(n){var t=this._renderer,e=this._textForCalculations||t.text("0",0,0);this._textForCalculations=e,e.css(di(n)).append(t.root);var i=e.getBBox();return e.remove(),i}});function Vz(n,t,e,i){var D,A,Q,we,r=[],v=i.nodes,z=t.length,ue=0;for(A=0;A<z;++A){var Le;Q=t[A],(D=new Ay)._id=v.length,D.ctx=i.ctx,D.parent=n,D.level=e,D.index=r.length,D.data=Q,i.buildNode(D),v.push(D),r.push(D),null!==(Le=we=Q[i.itemsField])&&void 0!==Le&&Le.length&&Vz(D,we,e+1,i),Q[i.valueField]>0&&(D.value=Number(Q[i.valueField])),ue+=D.value}n.nodes=r,n.value=ue}function Nz(n,t,e){var r,v,i=t.nodes,D=i.length;for(v=0;v<D;++v)e(n,r=i[v]),r.isNode()&&Nz(n,r,e)}var mpe=[function vpe(n,t){var e=n.renderer.simpleRect().append(n.group);return n.setTrackerData(t,e),e},function ype(n,t){var e=n.renderer.simpleRect().append(n.group),i=n.renderer.simpleRect().append(n.group);return n.setTrackerData(t,i),{outer:e,inner:i}}];function _pe(n,t){t.color=t.data[n.colorField]||n.getColor(t)||t.parent.color,t.updateStyles(),t.tile=!t.ctx.forceReset&&t.tile||mpe[Number(t.isNode())](n,t),t.applyState()}function Cpe(n,t){t.updateLabelStyle(),t.labelState.visible&&function xpe(n,t,e,i){var r=t.data[n.labelField];t.label=r?String(r):null,(r=t.customLabel||t.label)&&(t.text=n.renderer.text(r).attr(e.attr).css(e.css).append(n.group),n.setTrackerData(t,t.text))}(n,t,t.labelState)}var bpe=[0,0,0,0];function Hz(n,t){var D,e=t.nodes,i=[],r=[],v=0,A=i.length=r.length=e.length;for(D=0;D<A;++D)v+=e[D].value,i[D]={value:e[D].value,i:D};for(v>0&&n.algorithm({items:i.slice(),sum:v,rect:t.innerRect.slice(),isRotated:1&e[0].level,directions:n.directions}),D=0;D<A;++D)r[D]=i[D].rect||bpe;t.rects=r}function wpe(n,t){var r,e=t.parent.rects[t.index],i=n.rectOffsets;t.isNode()?(bR(t.tile.outer,Wz(e,t.parent.innerRect,i.headerEdge,i.headerInner)),e=zz(e,n.groupPadding),r=Math.min(n.headerHeight,e[3]-e[1]),t.rect=[e[0],e[1],e[2],e[1]+r],bR(t.tile.inner,zz(t.rect,i.headerEdge)),e[1]+=r,t.innerRect=e,Hz(n,t)):(t.rect=e,bR(t.tile,Wz(e,t.parent.innerRect,i.tileEdge,i.tileInner)))}function zz(n,t){return[n[0]+t,n[1]+t,n[2]-t,n[3]-t]}function Wz(n,t,e,i){return[n[0]+(n[0]===t[0]?e:+i),n[1]+(n[1]===t[1]?e:+i),n[2]-(n[2]===t[2]?e:-i),n[3]-(n[3]===t[3]?e:-i)]}function bR(n,t){n.attr({x:t[0],y:t[1],width:Bz(t[2]-t[0],0),height:Bz(t[3]-t[1],0)})}function Epe(n,t){t.text&&t.labelState.visible&&function Spe(n,t){var e=n.rect,i=n.text,r=i.getBBox(),v=t.paddingLeftRight,D=t.paddingTopBottom;i.setMaxSize(e[2]-e[0]-2*v,e[3]-e[1]-D,n.isNode()?{textOverflow:t.groupLabelOverflow,wordWrap:"none"}:{textOverflow:t.tileLabelOverflow,wordWrap:t.tileLabelWordWrap,hideOverflowEllipsis:!0}),i.move(t.rtlEnabled?e[2]-v-r.x-r.width:e[0]+v-r.x,e[1]+D-r.y)}(t,t.labelParams)}(0,T.Z)("dxTreeMap",xR);const $l=xR;function Ope(n,t,e){return((e-1)*n+t)/e}xR.addPlugin(Ha),RT("strip",function Dpe(n){return kz(n,Ope,!0)}),RT("sliceanddice",function Tpe(n){var t=n.items,e=Iz(n.rect,n.directions,n.isRotated?1:0);Mz(t,0,n.rect,e,{sum:n.sum,count:t.length,side:e.variedSide})});var Ipe=Dz("sliceanddice");RT("rotatedsliceanddice",function Mpe(n){return n.isRotated=!n.isRotated,Ipe.call(this,n)});var Ape=Math.min,Ppe=Math.max;function Uz(n){return[Number(n[0])||0,n[1]-n[0]||1]}CR("gradient",function Bpe(n,t){var e=t.createGradientPalette(n.palette),i=Pz(n);return"range"in n?function kpe(n,t){return function(e){return n(e,t)}}(r,Uz(n.range||[])):function Lpe(n,t){var e={};return function(i){var r=i.parent;return n(i,e[r._id]||(e[r._id]=function Rpe(n,t){var e,v,i=n.length,r=[];for(e=0;e<i;++e)v=t(n[e]),isFinite(v)&&r.push(v);return Uz([Ape.apply(null,r),Ppe.apply(null,r)])}(r.nodes,t)))}}(r,i);function r(v,D){return e.getColor((i(v)-D[0])/D[1])}}),CR("range",function Vpe(n,t){var e=n.range||[],i=t.createDiscretePalette(n.palette,e.length-1),r=Pz(n);return function(v){return i.getColor(function Fpe(n,t){var v,e=0,i=t.length-1,r=-1;if(t[e]<=n&&n<=t[i])if(n===t[i])r=i-1;else{for(;i-e>1;)n<t[v=e+i>>1]?i=v:e=v;r=e}return r}(r(v),e))}});var Uf=$l.prototype,BT=Ay.prototype;function FT(n,t){var e=n.ctx;e.suspend(),e.change(t),e.resume()}function Zz(n,t){var i,e=n.nodes,r=e&&e.length;for(i=0;i<r;++i)t.push(e[i].proxy),Zz(e[i],t)}Uf._eventsMap.onNodesInitialized={name:"nodesInitialized"},Uf._eventsMap.onNodesRendering={name:"nodesRendering"},Uf._createProxyType=function(){var t,n=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 t[this._id].parent.proxy||null},getChild:function(i){var r=t[this._id].nodes;return r?r[i].proxy:null},getChildrenCount:function(){var i=t[this._id].nodes;return i?i.length:0},getAllChildren:function(){var r,i=t[this._id].nodes,v=i&&i.length,D=[];for(r=0;r<v;++r)D.push(i[r].proxy);return D},getAllNodes:function(){var i=[];return Zz(t[this._id],i),i},isLeaf:function(){return!t[this._id].isNode()},isActive:function(){return t[this._id].isActive()},value:function(i){var v,r=t[this._id];return void 0!==i?(function Npe(n,t){for(var e=t-n.value;n;)n.value+=e,n=n.parent}(r,i>0?Number(i):0),FT(r,["TILING"]),v=this):v=r.value,v},label:function(i){var v,r=t[this._id];return void 0!==i?(r.customLabel=i?String(i):null,FT(r,["LABELS"]),v=this):v=r.customLabel||r.label,v},customize:function(i){var r=t[this._id];return i&&(r._custom=r._custom||{},(0,y.l)(!0,r._custom,i),r._partialState=r._partialLabelState=null),FT(r,["TILES","LABELS"]),this},resetCustomization:function(){var i=t[this._id];return i._custom=i._partialState=i._partialLabelState=null,FT(i,["TILES","LABELS"]),this}},n._extendProxyType(e.prototype),n._handlers.beginBuildNodes=function(){t=n._nodes,new e(n._root)},n._handlers.buildNode=function(i){new e(i)},n._handlers.endBuildNodes=function(){n._eventTrigger("nodesInitialized",{root:n._root.proxy})}},Uf._extendProxyType=E.ZT;var Hpe=Uf._resetNodes;Uf._resetNodes=function(){Hpe.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var zpe=BT.updateStyles;BT.updateStyles=function(){zpe.call(this),this._custom&&(this._partialState=!this.ctx.forceReset&&this._partialState||this.ctx.calculateState(this._custom),(0,y.l)(!0,this.state,this._partialState))};var Wpe=BT.updateLabelStyle;BT.updateLabelStyle=function(){var n=this._custom;Wpe.call(this),n&&n.label&&(this._partialLabelState=!this.ctx.forceReset&&this._partialLabelState||function Upe(n,t){var e=n.ctx.calculateLabelState(t);return"visible"in t&&(e.visible=!!t.visible),e}(this,n.label),this.labelState=(0,y.l)(!0,{},this.labelState,this._partialLabelState))},Uf.getRootNode=function(){return this._root.proxy},Uf.resetNodes=function(){var n=this._context;return n.suspend(),n.change(["NODES_CREATE"]),n.resume(),this};var i_=Ay.prototype,VT=$l.prototype._handlers,Kpe=VT.calculateState,Gpe=i_._buildState;VT.calculateState=function(n){var t={0:Kpe(n)};return VT.calculateAdditionalStates(t,n),t},VT.calculateAdditionalStates=E.ZT,i_.code=0,i_.statesMap={0:0},i_.additionalStates=[],i_._buildState=function(n,t){var e={0:Gpe(n[0],t)};return this.additionalStates.length&&function jpe(n,t,e,i){var r,v=i.length;for(r=0;r<v;++r)n[i[r]]=(0,y.l)({},t,e[i[r]])}(e,e[0],n,this.additionalStates),e},i_._getState=function(){return this.state[this.statesMap[this.code]]},i_.setState=function(n,t){t?this.code|=n:this.code&=~n,this.ctx.change(["TILES"])};var Zf=$l.prototype,Kz=Ay.prototype;function Gz(n,t,e){var r,i=n.isNode()&&n.nodes,v=i&&i.length;for(n.setState(t,e),r=0;r<v;++r)Gz(i[r],t,e)}Zf._eventsMap.onHoverChanged={name:"hoverChanged"},aa(Zf._handlers,"calculateAdditionalStates",function(n,t){n[1]=t.hoverStyle?_R(t.hoverStyle):{}}),$l.addChange({code:"HOVER_ENABLED",handler:function(){var n=ei(this._getOption("hoverEnabled",!0),!0);n||this.clearHover(),this._hoverEnabled=n},isThemeDependent:!0,isOptionChange:!0,option:"hoverEnabled"}),Kz.statesMap[1]=1,Kz.additionalStates.push(1),aa(Zf,"_extendProxyType",function(n){var t=this;n.setHover=function(){t._hoverNode(this._id)},n.isHovered=function(){return t._hoverIndex===this._id}}),aa(Zf,"_onNodesCreated",function(){this._hoverIndex=-1}),aa(Zf,"_changeGroupSettings",function(){this._groupHoverEnabled=ei(this._getOption("group").hoverEnabled,!0),this._groupHoverEnabled||this.clearHover()}),Zf._applyHoverState=function(n,t){Gz(this._nodes[n],1,t),this._eventTrigger("hoverChanged",{node:this._nodes[n].proxy})},Zf._hoverNode=function(n){var t=this._hoverIndex;if(this._hoverEnabled&&t!==n){if(!this._groupHoverEnabled&&n>=0&&this._nodes[n].isNode())return void this.clearHover();this._context.suspend(),this._hoverIndex=-1,t>=0&&this._applyHoverState(t,!1),this._hoverIndex=n,n>=0&&this._applyHoverState(n,!0),this._context.resume()}},Zf.clearHover=function(){this._hoverNode(-1)};var Kf=$l.prototype,wR=Ay.prototype;Kf._eventsMap.onSelectionChanged={name:"selectionChanged"},aa(Kf._handlers,"calculateAdditionalStates",function(n,t){n[2]=t.selectionStyle?_R(t.selectionStyle):{}}),wR.statesMap[2]=wR.statesMap[3]=2,wR.additionalStates.push(2),aa(Kf,"_onNodesCreated",function(){this._selectionList.length=0}),aa(Kf,"_extendProxyType",function(n){var t=this;n.select=function(e){t._selectNode(this._id,!!e)},n.isSelected=function(){return t._selectionList.includes(this._id)},t._selectionList=[]}),$l.addChange({code:"SELECTION_MODE",handler:function(){var e,n=Sn(this._getOption("selectionMode",!0)),t=this._selectionList,i="none"===n?0:"multiple"===n?2:1;1===i&&t.length>1?(e=t.pop(),this.clearSelection(),t.push(e)):0===i&&this.clearSelection(),this._selectionMode=i},isThemeDependent:!0,isOptionChange:!0,option:"selectionMode"}),aa(Kf,"_applyTilesAppearance",function(){this._selectionList.length&&function qpe(n,t){var e,r,i=t.length;for(e=0;e<i;++e)r=n[t[e]],Xpe[Number(r.isNode())](r.tile)}(this._nodes,this._selectionList)});var Xpe=[function Jpe(n){n.toForeground()},function Qpe(n){n.outer.toForeground(),n.inner.toForeground()}];Kf._applySelectionState=function(n,t){var e=this._nodes[n];e.setState(2,t),this._eventTrigger("selectionChanged",{node:e.proxy})},Kf._selectNode=function(n,t){var e,i,r;0!==this._selectionMode&&(this._context.suspend(),i=(e=this._selectionList).indexOf(n),t&&-1===i?(1===this._selectionMode&&e.length&&(r=e.pop(),this._applySelectionState(r,!1)),e.push(n),this._applySelectionState(n,!0)):!t&&i>=0&&(e.splice(i,1),this._applySelectionState(n,!1)),this._context.resume())},Kf.clearSelection=function(){var t,n=this._selectionList,e=n.length;if(0!==this._selectionMode){for(this._context.suspend(),t=0;t<e;++t)this._applySelectionState(n[t],!1);n.length=0,this._context.resume()}};var Py=$l.prototype;function $z(n,t,e){var i=e.getRootOffset();return n||t&&[(t[0]+t[2])/2+i.left,(t[1]+t[3])/2+i.top]||[-1e3,-1e3]}aa(Py,"_extendProxyType",function(n){var t=this;n.showTooltip=function(e){t._showTooltip(this._id,e)}}),aa(Py,"_onNodesCreated",function(){this._tooltipIndex>=0&&this._tooltip.hide(),this._tooltipIndex=-1}),aa(Py,"_onTilingPerformed",function(){this._tooltipIndex>=0&&this._moveTooltip(this._nodes[this._tooltipIndex])}),Py._showTooltip=function(n,t){var e=this,i=e._tooltip,r=e._nodes[n];if(e._tooltipIndex!==n){var v=A=>{void 0!==A&&(A||i.hide(),e._tooltipIndex=A?n:-1)},D=$z(t,r.rect,this._renderer);v(i.show({value:r.value,valueText:i.formatValue(r.value),node:r.proxy},{x:D[0],y:D[1],offset:0},{node:r.proxy},void 0,v))}else e._moveTooltip(r,t)},Py._moveTooltip=function(n,t){var e=$z(t,n.rect,this._renderer);this._tooltip.move(e[0],e[1],0)},Py.hideTooltip=function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},$l.addPlugin(Ve);var tge=0,SR=$l.prototype;SR._eventsMap.onClick={name:"click"},aa(SR,"_initCore",function(){var n=this,t="__treemap_data_"+tge++,e=function(i){return n._nodes[i].proxy};n._tracker=new Rb({widget:n,root:n._renderer.root,getNode:function(i){var r=e(i);return ei(n._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)[t]},getProxy:e,click:function(i){n._eventTrigger("click",i)}}),n._handlers.setTrackerData=function(i,r){r.data(t,i._id)}}),aa(SR,"_disposeCore",function(){this._tracker.dispose()});var r_=$l.prototype;r_._eventsMap.onDrill={name:"drill"},aa(r_,"_extendProxyType",function(n){var t=this;n.drillDown=function(){t._drillToNode(this._id)}}),aa(r_,"_onNodesCreated",function(){this._drilldownIndex=-1}),r_._drillToNode=function(n){var t;this._drilldownIndex!==n&&(t=this._nodes[n]||this._root).nodes&&(this._drilldownIndex=n,this._topNode=t,this._context.suspend(),this._context.change(["MAX_DEPTH","NODES_RESET"]),this._context.resume(),this._eventTrigger("drill",{node:t.proxy}))},r_.resetDrillDown=function(){return this._drillToNode(-1),this},r_.drillUp=function(){return this._drillToNode(this._topNode.parent._id||-1),this},r_.getCurrentNode=function(){return this._topNode.proxy};var OR=$l.prototype;function Yz(n,t){var e,i,v,r=n.struct;for(i=0;i<t.length;i++)r[v=(e=t[i])[n.idField]]&&(e.items=r[v].items,r[v]=null,Yz(n,e.items))}OR._optionChangesMap.idField=OR._optionChangesMap.parentField="NODES_CREATE",OR._processDataSourceItems=function(n){var t,i,D,z,Q,e={},r=this._getOption("idField",!0),v=this._getOption("parentField",!0),A=[];if(!r||!v||0===n.length)return{items:n,isPlain:!1};for(t=0;t<n.length;t++)(D=(i=n[t])[v])?(e[D]=e[D]||{items:[]},z=e[D].items):z=A,z.push(i);for(Q in Yz({struct:e,idField:r},A),e)e[Q]&&A.push(e[Q]);return{items:A,isPlain:!0}},$l.addPlugin(Bu),$l.addPlugin(Oe),$l.addPlugin(xi);let Xz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.dXi,M.lj9,M.F9A,M.bgw,M.Ye1,M.e1H,M.YXG,M.gN6,M.rHV,M.Kx,M.SiA,M.rrz,M.KjY,M.lTN,M.vZC,M.FZZ,M.Ois,f.Lz,f.ie,p.Cu],M.dXi,M.lj9,M.F9A,M.bgw,M.Ye1,M.e1H,M.YXG,M.gN6,M.rHV,M.Kx,M.SiA,M.rrz,M.KjY,M.lTN,M.vZC,M.FZZ,M.Ois,f.ie]}),n})(),qz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,M.ZOF,M.idP,M.UxI,f.Lz,f.ie,p.Cu],M.Q8p,M.ZOF,M.idP,M.UxI,f.ie]}),n})();l(4510);let Jz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[f.Lz,f.ie,p.Cu],f.ie]}),n})();l(8493);let Qz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,f.Lz,f.ie,p.Cu],M.Q8p,f.ie]}),n})();var e3=l(2653),t3={_initEvents:function(){var t,n=this._eventNames,e=n.length,i=this._events={};for(t=0;t<e;++t)i[n[t]]=(0,Pp.Z)()},_disposeEvents:function(){var t,n=this._events;for(t in n)n[t].empty();this._events=null},on:function(n){var e,t=this._events;for(e in n)t[e].add(n[e]);return function(){for(e in n)t[e].remove(n[e])}},_fire:function(n,t){this._events[n].fire(t)}};function n3(n){var e,t=n.prototype;for(e in t3)t[e]=t3[e]}var DR=Number,ky=Math.min,o_=Math.max,Ju=Math.abs,HT=Math.round,TR=Math.log,lge=Math.pow,uge=2/Math.LN2,i3=1/3600/180/10,o3=[NaN,NaN];function MR(n,t){return Ju(n-t)<1e-8}function a3(n,t){return MR(n[0],t[0])&&MR(n[1],t[1])}function zT(n,t,e,i){var r=DR(n);return isFinite(r)?ky(o_(r,t),e):i}function AR(n,t,e,i){return[zT(n[0],t[0],e[0],i[0]),zT(n[1],t[1],e[1],i[1])]}function s3(n){return n instanceof gw&&n||Yl.get(n)||Yl(n)||Yl.get("mercator")}var WT=function(n){this._initEvents(),this._params=n,this._engine=s3(),this._center=this._engine.center(),this._adjustCenter()};function UT(n,t,e,i){var r=(e+i)/2;return Ju(n-r)>Ju(t-r)?n:t}function ZT(n,t,e,i){var r=(e+i)/2;return Ju(n-r)<Ju(t-r)?n:t}function l3(n,t,e){var{min:i,max:r}=d3(t,e);n.min=PR(i),n.max=PR(r)}WT.prototype={constructor:WT,_minZoom:1,_maxZoom:256,_zoom:1,_center:o3,_canvas:{},_scale:[],dispose:function(){this._disposeEvents()},setEngine:function(n){var t=s3(n);this._engine!==t&&(this._engine=t,this._fire("engine"),this._changeCenter(t.center())&&this._triggerCenterChanged(),this._changeZoom(this._minZoom)&&this._triggerZoomChanged(),this._adjustCenter(),this._setupScreen())},setBounds:function(n){void 0!==n&&this.setEngine(this._engine.original().bounds(n))},_setupScreen:function(){var n=this._canvas,t=n.width,e=n.height,i=this._engine,r=i.ar();this._x0=n.left+t/2,this._y0=n.top+e/2;var Q,v=[this.project([i.min()[0],0])[0],this.project([0,i.min()[1]])[1]],D=[this.project([i.max()[0],0])[0],this.project([0,i.max()[1]])[1]],A=t/e,z=Ju(D[0]-v[0])/Ju(D[1]-v[1]);Q=isNaN(z)||0===z||ky(A,r)<=r*z&&r*z<=o_(A,r)?1:z>1?z:1/z,r*z>=A?(this._xRadius=t/2/Q,this._yRadius=t/2/(r*Q)):(this._xRadius=e/2*(r/Q),this._yRadius=e/2/Q),this._fire("screen")},setSize:function(n){this._canvas=n,this._setupScreen()},getCanvas:function(){return this._canvas},_toScreen:function(n){return[this._x0+this._xRadius*n[0],this._y0+this._yRadius*n[1]]},_fromScreen:function(n){return[(n[0]-this._x0)/this._xRadius,(n[1]-this._y0)/this._yRadius]},_toTransformed:function(n){return[n[0]*this._zoom+this._xCenter,n[1]*this._zoom+this._yCenter]},_toTransformedFast:function(n){return[n[0]*this._zoom,n[1]*this._zoom]},_fromTransformed:function(n){return[(n[0]-this._xCenter)/this._zoom,(n[1]-this._yCenter)/this._zoom]},_adjustCenter:function(){var n=this._engine.project(this._center);this._xCenter=-n[0]*this._zoom||0,this._yCenter=-n[1]*this._zoom||0},project:function(n){return this._engine.project(n)},transform:function(n){return this._toScreen(this._toTransformedFast(n))},isInvertible:function(){return this._engine.isInvertible()},getSquareSize:function(n){return[n[0]*this._zoom*this._xRadius,n[1]*this._zoom*this._yRadius]},getZoom:function(){return this._zoom},_changeZoom:function(n){var i=!MR(this._zoom,this._zoom=zT(n,this._minZoom,this._maxZoom,this._minZoom));return i&&(this._adjustCenter(),this._fire("zoom")),i},setZoom:function(n){this._engine.isInvertible()&&this._changeZoom(n)&&this._triggerZoomChanged()},getScaledZoom:function(){return HT((this._scale.length-1)*TR(this._zoom)/TR(this._maxZoom))},setScaledZoom:function(n){this.setZoom(this._scale[HT(n)])},changeScaledZoom:function(n){this.setZoom(this._scale[o_(ky(HT(this.getScaledZoom()+n),this._scale.length-1),0)])},getZoomScalePartition:function(){return this._scale.length-1},_setupScaling:function(){var n=o_(HT(uge*TR(this._maxZoom)),4),t=lge(this._maxZoom,1/n),e=this._minZoom;this._scale=[e];for(var i=1;i<=n;++i)this._scale.push(e*=t)},setMaxZoom:function(n){this._minZoom=1,this._maxZoom=zT(n,this._minZoom,DR.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(n){this._engine.isInvertible()&&this._changeCenter(n||[])&&this._triggerCenterChanged()},_changeCenter:function(n){var t=this._engine,r=!a3(this._center,this._center=AR(n,t.min(),t.max(),t.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(n,t){var e=this._engine.project(n),i=this._fromScreen(t);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&&(a3(this._moveCenter,this._center)||this._triggerCenterChanged(),this._moveCenter=null)},moveCenter:function(n){if(this._moveCenter){var t=this.toScreenPoint(this._center);this._changeCenter(this.fromScreenPoint([t[0]+n[0],t[1]+n[1]]))}},getViewport:function(){var n=this._engine.unproject,t=n(this._fromTransformed([-1,-1])),e=n(this._fromTransformed([-1,1])),i=n(this._fromTransformed([1,-1])),r=n(this._fromTransformed([1,1])),v=d3([UT(t[0],e[0],i[0],r[0]),UT(t[1],i[1],e[1],r[1])],[UT(i[0],r[0],t[0],e[0]),UT(e[1],r[1],t[1],i[1])]);return[].concat(v.min,v.max)},setViewport:function(n){var t=this._engine,e=n?function cge(n,t,e){var i=n([e[0],e[3]]),r=n([e[0],e[1]]),v=n([e[2],e[3]]),D=n([e[2],e[1]]),A=ZT(i[0],r[0],v[0],D[0]),z=ZT(v[0],D[0],i[0],r[0]),Q=ZT(i[1],v[1],r[1],D[1]),ue=ZT(r[1],D[1],i[1],v[1]);return[2/o_(Ju(A-z),Ju(Q-ue)),t([(A+z)/2,(Q+ue)/2])]}(t.project,t.unproject,n):[this._minZoom,t.center()];this.setZoom(e[0]),this.setCenter(e[1])},getTransform:function(){return{translateX:this._xCenter*this._xRadius,translateY:this._yCenter*this._yRadius}},fromScreenPoint:function(n){return this._engine.unproject(this._fromTransformed(this._fromScreen(n)))},toScreenPoint:function(n){return this._toScreen(this._toTransformed(this._engine.project(n)))},_eventNames:["engine","screen","center","zoom","max-zoom"]},n3(WT);var gw=class{constructor(n){var t=function hge(n){return t=>u3(n(t))}(n.to),e=n.from?function pge(n){return t=>n(u3(t))}(n.from):KT(o3);this.project=t,this.unproject=e,this.original=KT(this),this.source=function(){return(0,y.l)({},n)},this.isInvertible=KT(!!n.from),this.ar=KT(n.aspectRatio>0?DR(n.aspectRatio):1),this.center=PR(e([0,0])),l3(this,[e([-1,0])[0],e([0,1])[1]],[e([1,0])[0],e([0,-1])[1]])}aspectRatio(n){var t=new gw((0,y.l)(this.source(),{aspectRatio:n}));return t.original=this.original,t.min=this.min,t.max=this.max,t}bounds(n){n=n||[];var t=this.source(),e=this.min(),i=this.max(),r=AR([n[0],n[1]],e,i,e),v=AR([n[2],n[3]],e,i,i),D=t.to(r),A=t.to(v),z=ky(Ju(A[0]-D[0])>i3?Ju(A[0]-D[0]):2,Ju(A[1]-D[1])>i3?Ju(A[1]-D[1]):2);z<2&&(0,y.l)(t,function gge(n,t,e,i,r){var v=(e[0]+i[0])/2-r/2,D=(e[1]+i[1])/2-r/2,A=2/r;return{to:function(z){var[Q,ue]=n(z);return[(Q-v)*A-1,(ue-D)*A-1]},from:function(z){return t([v+(z[0]+1)/A,D+(z[1]+1)/A])}}}(t.to,t.from,D,A,z));var Q=new gw(t);return Q.original=this.original,l3(Q,r,v),Q}};function u3(n){return[n[0],-n[1]]}function KT(n){return()=>n}function PR(n){return()=>n.slice()}function d3(n,t){return{min:[ky(n[0],t[0]),ky(n[1],t[1])],max:[o_(n[0],t[0]),o_(n[1],t[1])]}}var Yl=function(n){return n&&n.to?new gw(n):null},kR={};Yl.get=function(n){return kR[n]||null},Yl.add=function(n,t){return t=t instanceof gw&&t||Yl(t),!kR[n]&&t&&(kR[n]=t),Yl};var c3=(n,t)=>n.g().attr({stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(t),h3=function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n.g().attr({class:e}).append(t)},p3=(n,t)=>{var e=t?{display:"block"}:{display:"none"};n.map(i=>i.css(e))},fw=Math,g3=fw.min,f3=fw.max,GT=fw.round,m3=fw.floor,fge=fw.sqrt,mge=ni(["left","center","right"]),_ge=ni(["top","bottom"]),_3="command-reset",RR="command-move-up",LR="command-move-right",BR="command-move-down",FR="command-move-left",VR="command-zoom-in",v3="command-zoom-out",y3="command-zoom-drag",Mh="control-bar",a_={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},Np={};function NR(n){this._params=n,this._createElements(n.renderer,n.container,n.dataKey),n.layoutControl.addItem(this),this._subscribeToProjection(n.projection),this._subscribeToTracker(n.tracker),this._createCallbacks(n.projection)}function _w(n){delete n._owner,n.update=function(){},n.finish=function(){}}function jT(n,t){this._owner=n,this._command=t}function $T(n,t,e){this._command=t;var i=null,r=0,v=0;switch(this._command){case RR:v=-10;break;case LR:r=10;break;case BR:v=10;break;case FR:r=-10}this._stop=function(){return clearTimeout(i),n._callbacks.endMove(),this._stop=n=null,this},n._callbacks.beginMove(),function D(){n._callbacks.move([r,v]),i=setTimeout(D,100)}()}function YT(n,t){this._owner=n,this._command=t;var e=null,i=this._command===VR?1:-1;this._stop=function(){return clearTimeout(e),this._stop=n=null,this},function r(){n._adjustZoom(n._zoomFactor+i),e=setTimeout(r,150)}()}function XT(n,t,e){this._owner=n,this._zoomFactor=n._zoomFactor,this._pos=e.y}Np[_3]=jT,Np[RR]=Np[LR]=Np[BR]=Np[FR]=$T,Np[VR]=Np[v3]=YT,Np[y3]=XT,NR.prototype={constructor:NR,_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(n){var t=this;function e(){t._adjustZoom(n.getScaledZoom())}t._offProjection=n.on({engine:function(){t._update()},zoom:e,"max-zoom":function(){t._zoomPartition=n.getZoomScalePartition(),t._sliderUnitLength=t._sliderLineLength/t._zoomPartition,e()}})},_subscribeToTracker:function(n){var t=this,e=!1;t._offTracker=n.on({start:function(i){(e=i.data.name===Mh)&&t._processStart(i.data.index,i)},move:function(i){e&&t._processMove(i.data.index,i)},end:function(){e&&(t._processEnd(),e=!1)}})},_createCallbacks:function(n){this._callbacks={reset:function(t,e){t&&n.setCenter(null),e&&n.setZoom(null)},beginMove:function(){n.beginMoveCenter()},endMove:function(){n.endMoveCenter()},move:function(t){n.moveCenter(t)},zoom:function(t){n.setScaledZoom(t)}}},_createElements:function(n,t,e){this._root=n.g().attr({class:"dxm-control-bar"}).linkOn(t,"control-bar");var i=this._panControl=h3(n,this._root,"dxm-pan-control"),r=this._zoomBar=h3(n,this._root,"dxm-zoom-bar"),v=this._trackersPan=c3(n,this._root),D=this._trackersZoom=c3(n,this._root);this._createTrackersPan(n,e,v),this._createTrackersZoom(n,e,D),this._createPanControl(n,e,i),this._createZoomBar(n,e,r)},_createPanControl:function(n,t,e){var r=a_.buttonSize/2,v=a_.arrowButtonOffset-r,D=a_.arrowButtonOffset,A={"stroke-linecap":"square",fill:"none"};n.circle(0,0,a_.bigCircleSize/2).append(e),n.circle(0,0,r).attr({fill:"none"}).append(e),n.path([-r,-v,0,-D,r,-v],"line").attr(A).append(e),n.path([v,-r,D,0,v,r],"line").attr(A).append(e),n.path([r,v,0,D,-r,v],"line").attr(A).append(e),n.path([-v,r,-D,0,-v,-r],"line").attr(A).append(e)},_createZoomBar:function(n,t,e){var i=a_,r=i.incDecButtonSize/2;n.circle(0,i.incButtonOffset,i.smallCircleSize/2).append(e),n.path([[-r,i.incButtonOffset,r,i.incButtonOffset],[0,i.incButtonOffset-r,0,i.incButtonOffset+r]],"area").append(e),n.circle(0,i.decButtonOffset,i.smallCircleSize/2).append(e),n.path([-r,i.decButtonOffset,r,i.decButtonOffset],"area").append(e),this._zoomLine=n.path([],"line").append(e),this._zoomDrag=n.rect(m3(-i.sliderLength/2),m3(i.sliderLineEndOffset-i.sliderWidth/2),i.sliderLength,i.sliderWidth).append(e),this._sliderLineLength=i.sliderLineEndOffset-i.sliderLineStartOffset},_createTrackersPan:function(n,t,e){var i=a_,r=GT((i.arrowButtonOffset-i.trackerGap)/2),v=i.arrowButtonOffset-r,D=GT(fge(i.bigCircleSize*i.bigCircleSize/4-r*r)),A=D-v;n.rect(-r,-r,2*r,2*r).data(t,{index:_3,name:Mh}).append(e),n.rect(-r,-D,2*r,A).data(t,{index:RR,name:Mh}).append(e),n.rect(v,-r,A,2*r).data(t,{index:LR,name:Mh}).append(e),n.rect(-r,v,2*r,A).data(t,{index:BR,name:Mh}).append(e),n.rect(-D,-r,A,2*r).data(t,{index:FR,name:Mh}).append(e)},_createTrackersZoom:function(n,t,e){var i=a_;n.circle(0,i.incButtonOffset,i.smallCircleSize/2).data(t,{index:VR,name:Mh}).append(e),n.circle(0,i.decButtonOffset,i.smallCircleSize/2).data(t,{index:v3,name:Mh}).append(e),n.rect(-2,i.sliderLineStartOffset-2,4,i.sliderLineEndOffset-i.sliderLineStartOffset+4).css({cursor:"default"}).data(t,{index:"command-zoom-drag-line",name:Mh}).append(e),this._zoomDragTracker=n.rect(-i.sliderLength/2,i.sliderLineEndOffset-i.sliderWidth/2,i.sliderLength,i.sliderWidth).data(t,{index:y3,name:Mh}).append(e)},resize:function(n){this._isActive&&this._root.attr({visibility:null!==n?null:"hidden"})},getLayoutOptions:function(){return this._isActive?this._layoutOptions:null},locate:function(n,t){this._root.attr({translateX:n+this._margin+30.5,translateY:t+this._margin+30.5})},_update:function(){this._isActive=this._isEnabled&&this._flags&&this._params.projection.isInvertible();var n=[this._panControl,this._trackersPan],t=[this._zoomBar,this._trackersZoom];this._isActive?(this._root.linkAppend(),p3(n,this._isPanVisible),p3(t,this._isZoomVisible)):this._root.linkRemove(),this._processEnd(),this.updateLayout()},setInteraction:function(n){ei(n.centeringEnabled,!0)?this._flags|=1:this._flags&=-2,ei(n.zoomingEnabled,!0)?this._flags|=2:this._flags&=-3,this._update()},setOptions:function(n){var t={"stroke-width":n.borderWidth,stroke:n.borderColor,fill:n.color,"fill-opacity":n.opacity};this._isEnabled=!!ei(n.enabled,!0),this._margin=n.margin||0,this._layoutOptions={width:2*this._margin+61,height:2*this._margin+274,horizontalAlignment:mge(n.horizontalAlignment,"left"),verticalAlignment:_ge(n.verticalAlignment,"top")},this._isPanVisible=!!ei(n.panVisible,!0),this._isZoomVisible=!!ei(n.zoomVisible,!0),this._panControl.attr(t),this._zoomBar.attr(t),this._update()},_adjustZoom:function(n){var t=a_.sliderLineStartOffset,e=a_.sliderLineEndOffset,i=a_.sliderWidth;this._zoomFactor=f3(g3(GT(n),this._zoomPartition),0);var r={translateY:-GT(this._zoomFactor*this._sliderUnitLength)},v=e-i/2+r.translateY;this._zoomLine.attr({points:[[0,t,0,f3(t,v)],[0,g3(e,v+i),0,e]]}),this._zoomDrag.attr(r),this._zoomDragTracker.attr(r)},_applyZoom:function(){this._callbacks.zoom(this._zoomFactor)},_processStart:function(n,t){var e;this._isActive&&(this._command=(e=Np[n])&&e.flags&this._flags?new e(this,n,t):null)},_processMove:function(n,t){this._command&&this._command.update(n,t)},_processEnd:function(){this._command&&this._command.finish(),this._command=null}},jT.flags=3,jT.prototype.update=function(n){n!==this._command&&_w(this)},jT.prototype.finish=function(){var n=this._owner._flags;this._owner._callbacks.reset(!!(1&n),!!(2&n)),_w(this)},$T.flags=1,$T.prototype.update=function(n){this._command!==n&&this.finish()},$T.prototype.finish=function(){_w(this._stop())},YT.flags=2,YT.prototype.update=function(n){this._command!==n&&this.finish()},YT.prototype.finish=function(){this._owner._applyZoom(),_w(this._stop())},XT.flags=2,XT.prototype.update=function(n,t){var e=this._owner;e._adjustZoom(this._zoomFactor+e._zoomPartition*(this._pos-t.y)/e._sliderLineLength)},XT.prototype.finish=function(){this._owner._applyZoom(),_w(this)};var wge=Math.log,Ege=Math.LN2;function HR(n){this._projection=n.projection,this._renderer=n.renderer,this._x=this._y=0,this._subscribeToTracker(n.tracker)}HR.prototype={constructor:HR,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(n){var t=this,e=!1;t._offTracker=n.on({start:function(i){(e="control-bar"!==i.data.name)&&t._processStart(i)},move:function(i){e&&t._processMove(i)},end:function(){e&&t._processEnd()},zoom:function(i){t._processZoom(i)}})},setInteraction:function(n){this._processEnd(),this._centeringEnabled=n.centeringEnabled,this._zoomingEnabled=n.zoomingEnabled},_processStart:function(n){this._centeringEnabled&&(this._x=n.x,this._y=n.y,this._projection.beginMoveCenter())},_processMove:function(n){this._centeringEnabled&&(this._renderer.root.attr({cursor:"move"}),this._projection.moveCenter([this._x-n.x,this._y-n.y]),this._x=n.x,this._y=n.y)},_processEnd:function(){this._centeringEnabled&&(this._renderer.root.attr({cursor:"default"}),this._projection.endMoveCenter())},_processZoom:function(n){var t,e,i;this._zoomingEnabled&&(n.delta?t=n.delta:n.ratio&&(t=wge(n.ratio)/Ege),this._centeringEnabled&&(e=this._renderer.getRootOffset(),i=this._projection.fromScreenPoint(e=[n.x-e.left,n.y-e.top])),this._projection.changeScaledZoom(t),this._centeringEnabled&&this._projection.setCenterByPoint(i,e))}};var yw,I3,C3=(0,fi.jW)(),zR=Math,vw=zR.abs,Sge=zR.sqrt,x3=zR.round,Ly=k.V4,By="dxVectorMap",WR="zoom",S3="hover-on",O3="hover-off",UR="focus-on",T3="focus-move",ZR="focus-off";function qT(n){var t=this;t._root=n.root,t._createEventHandlers(n.dataKey),t._createProjectionHandlers(n.projection),t._initEvents(),t._focus=new I3(function(e,i){t._fire(e,i)}),t._attachHandlers()}function M3(n,t,e,i){return Sge((n-e)*(n-e)+(t-i)*(t-i))}function _c(n){var t=n.originalEvent.type,e=n.originalEvent.pointerType;return/^touch/.test(t)||/^MSPointer/.test(t)&&4!==e||/^pointer/.test(t)&&"mouse"!==e}function KR(n,t){for(var r,e=0,i=n.length;e<i;++e)if(n[e]){r=t[e];break}return Ly(r||t[e],By)}function Fy(n){var t=n.originalEvent,e=t.touches&&t.touches[0]||{};return{x:e.pageX||t.pageX||n.pageX,y:e.pageY||t.pageY||n.pageY}}function A3(n){return n.originalEvent.pointerId}function JT(n,t){var e=n.originalEvent;return(e=void 0!==e.pointerId?e.pointerId===t?e:null:e.touches[t])?{x:e.pageX||n.pageX,y:e.pageY||n.pageY}:null}function GR(){this._store={}}!function Rge(){var n=[C3.pointerEnabled,C3.msPointerEnabled,(0,fi.l$)("ontouchstart")];yw={start:KR(n,["pointerdown","MSPointerDown","touchstart mousedown","mousedown"]),move:KR(n,["pointermove","MSPointerMove","touchmove mousemove","mousemove"]),end:KR(n,["pointerup","MSPointerUp","touchend mouseup","mouseup"]),wheel:Ly(gg.u,By)}}(),qT.prototype={constructor:qT,dispose:function(){this._detachHandlers(),this._disposeEvents(),this._focus.dispose(),this._root=this._focus=this._docHandlers=this._rootHandlers=null},_eventNames:["start","move","end",WR,"click",S3,O3,UR,ZR,T3],_startClick:function(n,t){if(t){var e=Fy(n);this._clickState={x:e.x,y:e.y,threshold:_c(n)?20:5,time:Date.now()}}},_endClick:function(n,t){var i,r,e=this._clickState;e&&(t&&Date.now()-e.time<=500&&(i=e.threshold,r=Fy(n),vw(r.x-e.x)<=i&&vw(r.y-e.y)<=i&&this._fire("click",{data:t,x:r.x,y:r.y,$event:n})),this._clickState=null)},_startDrag:function(n,t){if(t){var e=Fy(n),i=this._dragState={x:e.x,y:e.y,data:t};this._fire("start",{x:i.x,y:i.y,data:i.data})}},_moveDrag:function(n,t){var e=this._dragState;if(e){var i=Fy(n),r=_c(n)?10:5;(e.active||vw(i.x-e.x)>r||vw(i.y-e.y)>r)&&(e.x=i.x,e.y=i.y,e.active=!0,e.data=t||{},this._fire("move",{x:e.x,y:e.y,data:e.data}))}},_endDrag:function(){var n=this._dragState;n&&(this._dragState=null,this._fire("end",{x:n.x,y:n.y,data:n.data}))},_wheelZoom:function(n,t){if(t){var e=this._wheelLock,i=Date.now();if(!(i-e.time<=50)){i-e.dirTime>300&&(e.dir=0);var r=function Lge(n,t){if(0===n)return 0;var e=vw(n),i=x3(n/e);return t.dir&&i!==t.dir?0:(t.dir=i,i*(e=e<.1?0:e<1?1:e>4?4:x3(e)))}(n.delta/120||0,e);if(0!==r){var v=Fy(n);this._fire(WR,{delta:r,x:v.x,y:v.y}),e.time=e.dirTime=i}}}},_startZoom:function(n,t){if(_c(n)&&t){var i,r,e=this._zoomState=this._zoomState||{};e.pointer1&&e.pointer2||(void 0===e.pointer1&&(e.pointer1=A3(n)||0,i=JT(n,e.pointer1),e.x1=e.x1_0=i.x,e.y1=e.y1_0=i.y),void 0===e.pointer2&&(r=A3(n)||1)!==e.pointer1&&(i=JT(n,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(n){var e,t=this._zoomState;!t||!_c(n)||(void 0!==t.pointer1&&(e=JT(n,t.pointer1))&&(t.x1=e.x,t.y1=e.y),void 0!==t.pointer2&&(e=JT(n,t.pointer2))&&(t.x2=e.x,t.y2=e.y))},_endZoom:function(n){var e,i,t=this._zoomState;!t||!_c(n)||(t.ready&&(e=M3(t.x1_0,t.y1_0,t.x2_0,t.y2_0),i=M3(t.x1,t.y1,t.x2,t.y2),this._fire(WR,{ratio:i/e,x:(t.x1_0+t.x2_0)/2,y:(t.y1_0+t.y2_0)/2})),this._zoomState=null)},_startHover:function(n,t){this._doHover(n,t,!0)},_moveHover:function(n,t){this._doHover(n,t,!1)},_doHover:function(n,t,e){this._dragState&&this._dragState.active||this._zoomState&&this._zoomState.ready?this._cancelHover():_c(n)!==e||this._hoverTarget===n.target||this._hoverState&&this._hoverState.data===t||(this._cancelHover(),t&&(this._hoverState={data:t},this._fire(S3,{data:t})),this._hoverTarget=n.target)},_cancelHover:function(){var n=this._hoverState;this._hoverState=this._hoverTarget=null,n&&this._fire(O3,{data:n.data})},_startFocus:function(n,t){this._doFocus(n,t,!0)},_moveFocus:function(n,t){this._doFocus(n,t,!1)},_doFocus:function(n,t,e){this._dragState&&this._dragState.active||this._zoomState&&this._zoomState.ready?this._cancelFocus():_c(n)===e&&(this._focus.turnOff(),t&&this._focus.turnOn(t,Fy(n)))},_cancelFocus:function(){this._focus.cancel()},_createEventHandlers:function(n){var t=this;function e(i){var r=i.target;return("tspan"===r.tagName?r.parentNode:r)[n]}t._docHandlers={},t._rootHandlers={},t._docHandlers[yw.start]=function(i){var r=_c(i),v=e(i);r&&!t._isTouchEnabled||(v&&i.preventDefault(),t._startClick(i,v),t._startDrag(i,v),t._startZoom(i,v),t._startHover(i,v),t._startFocus(i,v))},t._docHandlers[yw.move]=function(i){var r=_c(i),v=e(i);r&&!t._isTouchEnabled||(t._moveDrag(i,v),t._moveZoom(i,v),t._moveHover(i,v),t._moveFocus(i,v))},t._docHandlers[yw.end]=function(i){var r=_c(i),v=e(i);r&&!t._isTouchEnabled||(t._endClick(i,v),t._endDrag(i,v),t._endZoom(i,v))},t._rootHandlers[yw.wheel]=function(i){if(t._cancelFocus(),t._isWheelEnabled){var r=e(i);r&&(i.preventDefault(),i.stopPropagation(),t._wheelZoom(i,r))}},t._wheelLock={dir:0}},_createProjectionHandlers:function(n){var t=this;function e(){t._cancelFocus()}n.on({center:e,zoom:e})},reset:function(){this._clickState=null,this._endDrag(),this._cancelHover(),this._cancelFocus()},setOptions:function(n){this.reset(),this._detachHandlers(),this._isTouchEnabled=!!ei(n.touchEnabled,!0),this._isWheelEnabled=!!ei(n.wheelEnabled,!0),this._attachHandlers()},_detachHandlers:function(){this._isTouchEnabled&&this._root.css({"touch-action":"","-webkit-user-select":""}).off(Ly("MSHoldVisual",By)).off(Ly("contextmenu",By)),d.Z.off(b.Z.getDocument(),this._docHandlers),this._root.off(this._rootHandlers)},_attachHandlers:function(){this._isTouchEnabled&&this._root.css({"touch-action":"none","-webkit-user-select":"none"}).on(Ly("MSHoldVisual",By),function(n){n.preventDefault()}).on(Ly("contextmenu",By),function(n){_c(n)&&n.preventDefault()}),d.Z.on(b.Z.getDocument(),this._docHandlers),this._root.on(this._rootHandlers)}},I3=function(n){var D,A,t=this,e=null,i=null,r=!1,v=null;t.dispose=function(){clearTimeout(v),t.turnOn=t.turnOff=t.cancel=t.dispose=t=n=e=i=v=null},t.turnOn=function(z,Q){function ue(we){r=!we,we&&(e=i,clearTimeout(v),v=null)}z===i&&r||(r=!1,i=z,e?(D=Q.x,A=Q.y,i===e?(n(T3,{data:i,x:D,y:A}),ue(!0)):n(UR,{data:i,x:D,y:A,done:ue})):n(UR,{data:i,x:D=Q.x,y:A=Q.y,done:ue}))},t.turnOff=function(){i=null,e&&!r&&(v=v||setTimeout(function(){v=null,n(ZR,{data:e}),e=null},100))},t.cancel=function(){clearTimeout(v),e&&n(ZR,{data:e}),e=i=v=null}},n3(qT),GR.prototype={constructor:GR,dispose:function(){return this._store=null,this},_get:function(n,t){var e=this._store[n]||(this._store[n]={});return e[t]||(e[t]={callbacks:(0,Pp.Z)()})},set:function(n,t,e){var i=this._get(n,t);return i.data=e,i.callbacks.fire(e),this},bind:function(n,t,e){var i=this._get(n,t);return i.callbacks.add(e),i.data&&e(i.data),this},unbind:function(n,t,e){return this._get(n,t).callbacks.remove(e),this}};var P3=y.l,Bge=O.S6,Fge={category:"UNKNOWN",name:"UNKNOWN"},jR=function(n){var t=this;t._params=n,t._root=n.renderer.g().attr({class:"dxm-legend"}).linkOn(n.container,{name:"legend",after:"legend-base"}).enableLinks().linkAppend(),n.layoutControl.addItem(t),oh.call(t,{renderer:n.renderer,widget:n.widget,group:t._root,backgroundClass:null,itemsGroupClass:null,textField:"text",getFormatObject:function(e){return e}}),t._onDataChanged=function(e){t._updateData(e)}};function $R(n){this._params=n,this._items=[],n.container.virtualLink("legend-base")}jR.prototype=P3((0,Ee.d9)(oh.prototype),{constructor:jR,dispose:function(){var n=this;return n._params.layoutControl.removeItem(n),n._unbindData(),n._root.linkRemove().linkOff(),n._params=n._root=n._onDataChanged=null,oh.prototype.dispose.apply(n,arguments)},resize:function(n){this._params.notifyDirty(),null===n?this.erase():this.draw(n.width,n.height),this._params.notifyReady()},locate:oh.prototype.shift,_updateData:function(n){this._options.defaultColor=n&&n.defaultColor,this.update(n?function Vge(n,t,e){var i,D,r=t.length,v=[];for(i=0;i<r;++i)v[i]=D={start:n[i],end:n[i+1],index:i},D[e]=t[i],D.states={normal:{fill:D.color}},D.visible=!0;return v}(n.partition,n.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(n){this._params.dataExchanger.bind(this._dataCategory=n.category,this._dataName=n.name,this._onDataChanged)},setOptions:function(n){this.update(this._data,n,this._params.themeManager.theme("legend").title),this._unbindData();var t=n.source;return this._bindData(t?{category:t.layer,name:t.grouping}:Fge),this.updateLayout(),this}}),$R.prototype={constructor:$R,dispose:function(){Bge(this._items,function(n,t){t.dispose()}),this._params=this._items=null},setOptions:function(n){var i,t=n&&n.length?n:[],e=this._items,r=t.length,v=this._params,D=v.themeManager.theme("legend");for(i=e.length;i<r;++i)e[i]=new jR(v);for(i=e.length-1;i>=r;--i)e[i].dispose(),e.splice(i,1);for(v.layoutControl.suspend(),i=0;i<r;++i)e[i].setOptions(P3(!0,{},D,t[i]));v.layoutControl.resume()}};var QT=Math.round,YR=Math.min,e1=Math.max,Gf=O.S6,Nge={left:0,center:1,right:2},Hge={top:0,bottom:1};function k3(n,t){var e=!1;return function Uge(n){Gf([0,1,2,3,4,5],function(t,e){var i=n[e],r=n[(e+3)%6];i.items&&(r.items||(i.rect[1]=YR(i.rect[1],r.rect[3]),i.rect[3]=e1(i.rect[3],r.rect[1])))}),Gf([1,4],function(t,e){var D,A,i=n[e],r=n[e-1],v=n[e+1];i.items?!r.items&&!v.items&&((D=i.rect[0]-r.rect[2])>(A=v.rect[0]-i.rect[2])?D/A>=2?(i.rect[0]-=D,i.right=!0):(i.rect[0]-=A,i.rect[2]+=A):A/D>=2?(i.rect[2]+=A,i.center=null):(i.rect[0]-=D,i.rect[2]+=D)):(r.items&&(r.rect[2]=(i.rect[0]+i.rect[2])/2),v.items&&(v.rect[0]=(i.rect[0]+i.rect[2])/2))})}(n),Gf(n,function(i,r){r.items&&(e=function Zge(n,t){var e=n.rect,i=e[2]-e[0],r=e[3]-e[1],v=0,D=0,A=0,z=e[2],Q=e[3],ue=e[0],we=e[1],Le=[],Ue=!1;return Gf(n.items,function(ut,It){if(It.width>i||It.height>r||(v+It.width>i&&(D+=A,v=A=0),D+It.height>r))return Le.push(null),Ue=!0,t||!1;A=e1(A,It.height);var Gt=n.horInversion?e[2]-It.width-v:e[0]+v,ln=n.verInversion?e[3]-It.height-D:e[1]+D;v+=It.width,z=YR(z,Gt),Q=YR(Q,ln),ue=e1(ue,Gt+It.width),we=e1(we,ln+It.height),Le.push([Gt,ln])}),(t||!Ue)&&(v=0,n.right?v=e[2]-e[0]-ue+z:n.center&&(v=QT((e[2]-e[0]-ue+z)/2)),Gf(n.items,function(ut,It){var Gt=Le[ut];Gt?It.item.locate(Gt[0]+v,Gt[1]):It.item.resize(null)}),n.rect=[z,Q,ue,we],n.items=null),Ue}(r,t)||e)}),e}function XR(n){var t=this;t._items=[],t._suspended=0,t._widget=n,t._updateLayout=function(){t._update()}}XR.prototype={constructor:XR,dispose:function(){this._items=this._updateLayout=null},setSize:function(n){this._canvas=n,this._update()},suspend:function(){++this._suspended},resume:function(){0==--this._suspended&&this._update()},addItem:function(n){this._items.push(n),n.updateLayout=this._updateLayout},removeItem:function(n){var t=this._items.indexOf(n);this._items.splice(t,1),n.updateLayout=null},_update:function(){var n;0===this._suspended&&(n=this._canvas,Gf(this._items,function(t,e){e.resize(n)}),this._widget.resolveItemsDeferred(this._items.filter(t=>t.getTemplatesGroups&&t.getTemplatesDef)),function Kge(n,t){var e=function Wge(n,t){var e=(n.right-n.left)/3,i=(n.bottom-n.top)/2,r=n.left,v=QT(r+e),D=QT(r+e+e),A=n.right,z=n.top,Q=QT(z+i),ue=n.bottom,we=[{rect:[r,z,v,Q]},{rect:[v,z,D,Q],center:!0},{rect:[D,z,A,Q],horInversion:!0},{rect:[r,Q,v,ue],verInversion:!0},{rect:[v,Q,D,ue],center:!0,verInversion:!0},{rect:[D,Q,A,ue],horInversion:!0,verInversion:!0}],Le=[[],[],[],[],[],[]];return Gf(t,function(Ue,ut){var It=ut.getLayoutOptions();It&&Le[function zge(n){return 3*Hge[n.verticalAlignment]+Nge[n.horizontalAlignment]}(It)].push({item:ut,width:It.width,height:It.height})}),Gf(we,function(Ue,ut){Le[Ue].length?ut.items=Le[Ue]:(ut.center?ut.rect[0]=ut.rect[2]=(ut.rect[0]+ut.rect[2])/2:ut.rect[ut.horInversion?0:2]=ut.rect[ut.horInversion?2:0],ut.rect[ut.verInversion?1:3]=ut.rect[ut.verInversion?3:1])}),we}(n,t);k3(e)&&k3(e,!0)}({left:n.left,top:n.top,right:n.width+n.left,bottom:n.height+n.top},this._items))}};var vc=E.ZT,Ah=y.l,Cw=O.S6,Gge=Array.prototype.concat,xw="area",Vy="line",bw="marker",$ge=[0,1,2,2],qR={none:null,single:-1,multiple:NaN},ww=Array.isArray,Pd=Number,Yge=String,Xge=Math.abs,qge=Math.round,Hp=Math.min,Cu=Math.max,JR=Math.sqrt;function QR(n){return n.reduce((t,e)=>e?[Hp(t[0],e[0]),Hp(t[1],e[1]),Cu(t[2],e[2]),Cu(t[3],e[3])]:t,n[0])}function L3(n,t){return(n[t]||{}).name}function e2(){}function t2(n){this.raw=n}function i1(n){this.raw=n}function n2(n){return ww(n.features)}function B3(n){n.text.attr({visibility:n.size[0]/n.spaceSize[0]<1&&n.size[1]/n.spaceSize[1]<1?null:"hidden"})}function F3(n){n.text.attr({visibility:n.size[0]/n.spaceSize[0]<1||n.size[1]/n.spaceSize[1]<1?null:"hidden"})}function Ew(n,t){return n.attribute(t)}e2.prototype.count=function(){return 0},t2.prototype={constructor:t2,count:function(){return this.raw.length},item:function(n){return this.raw[n]},geometry:function(n){return{coordinates:n.coordinates}},attributes:function(n){return n.attributes},getBBox:function(n){return 0===arguments.length?void 0:this.raw[n].bbox}},i1.prototype={constructor:i1,count:function(){return this.raw.features.length},item:function(n){return this.raw.features[n]},geometry:function(n){return n.geometry},attributes:function(n){return n.properties},getBBox:function(n){return 0===arguments.length?this.raw.bbox:this.raw.features[n].bbox}};var nfe={Point:bw,MultiPoint:Vy,LineString:Vy,MultiLineString:Vy,Polygon:xw,MultiPolygon:xw};function fa(n,t){return void 0!==n?n:t}var o1,i2,V3={setup:vc,reset:vc,arrange:vc,updateGrouping:vc,getDefaultColor:vc},Ny={},r1={},Sw={};function zp(n,t,e,i){n[i].attr(t[i][e])}function N3(n,t){var i,e=[],r=e.length=t.length;for(i=0;i<r;++i)e[i]=n.project(t[i]);return e}function afe(n,t){return[N3(n,t)]}function r2(n,t){var i,e=[],r=e.length=t.length;for(i=0;i<r;++i)e[i]=N3(n,t[i]);return e}function ufe(n,t){var i,v,e=[],r=t.length,D=0;for(e.length=2*r,i=0;i<r;++i)v=n.transform(t[i]),e[D++]=v[0],e[D++]=v[1];return e}function H3(n,t,e){var r,i=[],v=i.length=e.length;for(r=0;r<v;++r)i[r]=ufe(t,e[r]);n.root.attr({points:i})}function z3(n,t){var v,e=0,i=t.length-1,r=-1;if(t[e]<=n&&n<=t[i])if(n===t[i])r=i-1;else{for(;i-e>1;)n<t[v=e+i>>1]?i=v:e=v;r=e}return r}function W3(n,t,e,i){n.params.eventTrigger(i,{target:t.proxy,state:e})}function o2(n,t){var e=Ah({},n,t);return e.label=Ah({},n.label,e.label),e.label.font=Ah({},n.label.font,e.label.font),e}function ffe(n,t){return n.attribute(t)}Ny[xw]={projectLabel:function Cfe(n){var t,i,r,e=n.length,v=0;for(t=0;t<e;++t)(i=vfe(n[t])).area>v&&(v=i.area,r=i);return r?[r.center,[JR(r.area),JR(r.area)]]:[[],[]]},transform:H3,transformLabel:function dfe(n,t,e){var i=t.transform(e[0]);n.spaceSize=t.getSquareSize(e[1]),n.text.attr({translateX:i[0],translateY:i[1]}),B3(n)},draw:function(n,t,e){t.root=n.renderer.path([],"area").data(n.dataKey,e)},refresh:vc,getLabelOffset:function(n){return B3(n),[0,0]},getStyles:function(n){var t=n.color||null,e=n.borderColor||null,i=fa(n.borderWidth,null),r=fa(n.opacity,null);return{root:[{class:"dxm-area",stroke:e,"stroke-width":i,fill:t,opacity:r},{class:"dxm-area dxm-area-hovered",stroke:n.hoveredBorderColor||e,"stroke-width":fa(n.hoveredBorderWidth,i),fill:n.hoveredColor||t,opacity:fa(n.hoveredOpacity,r)},{class:"dxm-area dxm-area-selected",stroke:n.selectedBorderColor||e,"stroke-width":fa(n.selectedBorderWidth,i),fill:n.selectedColor||t,opacity:fa(n.selectedOpacity,r)}]}},setState:function(n,t,e){zp(n,t,e,"root")},hasLabelsGroup:!0,updateGrouping:function(n){o1(n)},getDefaultColor:vc},Ny[Vy]={projectLabel:function xfe(n){var t,r,v,e=n.length,i=0;for(t=0;t<e;++t)(r=yfe(n[t]))[2]>i&&(i=r[2],v=r);return v||[[],[]]},transform:H3,transformLabel:function cfe(n,t,e){var i=t.transform(e[0]);n.spaceSize=t.getSquareSize(e[1]),n.text.attr({translateX:i[0],translateY:i[1]}),F3(n)},draw:function(n,t,e){t.root=n.renderer.path([],"line").data(n.dataKey,e)},refresh:vc,getLabelOffset:function(n){return F3(n),[0,0]},getStyles:function(n){var t=n.color||n.borderColor||null,e=fa(n.borderWidth,null),i=fa(n.opacity,null);return{root:[{class:"dxm-line",stroke:t,"stroke-width":e,opacity:i},{class:"dxm-line dxm-line-hovered",stroke:n.hoveredColor||n.hoveredBorderColor||t,"stroke-width":fa(n.hoveredBorderWidth,e),opacity:fa(n.hoveredOpacity,i)},{class:"dxm-line dxm-line-selected",stroke:n.selectedColor||n.selectedBorderColor||t,"stroke-width":fa(n.selectedBorderWidth,e),opacity:fa(n.selectedOpacity,i)}]}},setState:function(n,t,e){zp(n,t,e,"root")},hasLabelsGroup:!0,updateGrouping:function(n){o1(n)},getDefaultColor:vc},Ny[bw]={project:function ofe(n,t){return n.project(t)},transform:function lfe(n,t,e){var i=t.transform(e);n.root.attr({translateX:i[0],translateY:i[1]})},draw:function(n,t,e){t.root=n.renderer.g(),this._draw(n,t,e)},refresh:vc,hasLabelsGroup:!1,getLabelOffset:function(n,t){return[qge((n.size[0]+Cu(t.size||0,0))/2)+2,0]},getStyles:function(n){var t={root:[{class:"dxm-marker"},{class:"dxm-marker dxm-marker-hovered"},{class:"dxm-marker dxm-marker-selected"}]};return this._getStyles(t,n),t},setState:function(n,t,e){zp(n,t,e,"root"),this._setState(n,t,e)},updateGrouping:function(n){o1(n),i2(n)},getDefaultColor:function(n,t){return n.params.themeManager.getAccentColor(t)}},r1[xw]=function(n){return{project:(t,e)=>e[0]&&e[0][0]&&e[0][0][0]&&"number"==typeof e[0][0][0][0]?function sfe(n,t){var i,e=[],r=e.length=t.length;for(i=0;i<r;++i)e[i]=r2(n,t[i]);return Gge.apply([],e)}(t,e):r2(t,e)}},r1[Vy]=function(n){var t=n.coordinates;return{project:t[0]&&t[0][0]&&"number"==typeof t[0][0][0]?r2:afe}},Sw[bw]={_default:"dot",dot:{setup:function(n){n.filter=n.renderer.shadowFilter("-40%","-40%","180%","200%",0,1,1,"#000000",.2)},reset:function(n){n.filter.dispose(),n.filter=null},_draw:function(n,t,e){t.back=n.renderer.circle().sharp().data(n.dataKey,e).append(t.root),t.dot=n.renderer.circle().sharp().data(n.dataKey,e).append(t.root)},refresh:function(n,t,e,i,r){t.dot.attr({filter:r.shadow?n.filter.id:null})},_getStyles:function(n,t){var e=t.size>0?Pd(t.size):0,i=e,r=e+(t.selectedStep>0?Pd(t.selectedStep):0),v=i+(t.backStep>0?Pd(t.backStep):0),D=r+(t.backStep>0?Pd(t.backStep):0),A=t.color||null,z=t.borderColor||null,Q=fa(t.borderWidth,null),ue=fa(t.opacity,null),we=t.backColor||null,Le=fa(t.backOpacity,null);n.dot=[{r:e/2,stroke:z,"stroke-width":Q,fill:A,opacity:ue},{r:i/2,stroke:t.hoveredBorderColor||z,"stroke-width":fa(t.hoveredBorderWidth,Q),fill:t.hoveredColor||A,opacity:fa(t.hoveredOpacity,ue)},{r:r/2,stroke:t.selectedBorderColor||z,"stroke-width":fa(t.selectedBorderWidth,Q),fill:t.selectedColor||A,opacity:fa(t.selectedOpacity,ue)}],n.back=[{r:e/2,stroke:"none","stroke-width":0,fill:we,opacity:Le},{r:v/2,stroke:"none","stroke-width":0,fill:we,opacity:Le},{r:D/2,stroke:"none","stroke-width":0,fill:we,opacity:Le}]},_setState:function(n,t,e){zp(n,t,e,"dot"),zp(n,t,e,"back")}},bubble:{_draw:function(n,t,e){t.bubble=n.renderer.circle().sharp().data(n.dataKey,e).append(t.root)},refresh:function(n,t,e,i,r){t.bubble.attr({r:r.size/2})},_getStyles:function(n,t){var e=t.color||null,i=t.borderColor||null,r=fa(t.borderWidth,null),v=fa(t.opacity,null);n.bubble=[{stroke:i,"stroke-width":r,fill:e,opacity:v},{stroke:t.hoveredBorderColor||i,"stroke-width":fa(t.hoveredBorderWidth,r),fill:t.hoveredColor||t.color,opacity:fa(t.hoveredOpacity,v)},{stroke:t.selectedBorderColor||i,"stroke-width":fa(t.selectedBorderWidth,r),fill:t.selectedColor||t.color,opacity:fa(t.selectedOpacity,v)}]},_setState:function(n,t,e){zp(n,t,e,"bubble")},arrange:function(n,t){var i,e=[],r=e.length=t.length,v=n.settings,D=v.dataField,A=v.minSize>0?Pd(v.minSize):0,z=v.maxSize>A?Pd(v.maxSize):A;if(!v.sizeGroups){for(i=0;i<r;++i)e[i]=Cu(Ew(t[i].proxy,D)||0,0);var Q=Hp.apply(null,e),we=Cu.apply(null,e)-Q||1,Le=z-A;for(i=0;i<r;++i)t[i]._settings.size=A+Le*(e[i]-Q)/we}},updateGrouping:function(n){var t=n.settings.dataField;Ny[bw].updateGrouping(n),i2(n,function(e){return Ew(e,t)})}},pie:{_draw:function(n,t,e){t.pie=n.renderer.g().append(t.root),t.border=n.renderer.circle().sharp().data(n.dataKey,e).append(t.root)},refresh:function(n,t,e,i,r){var v=Ew(i,n.settings.dataField)||[],D=r._colors,A=0,z=t.pie,Q=n.renderer,ue=n.dataKey,we=(r.size>0?Pd(r.size):0)/2,Le=90,Ue=Le,ut=!1;0===(A=v.reduce(function(It,Gt){return It+(Gt||0)},0))&&(ut=!0,A=360/v.length),v.forEach(function(It,Gt){Q.arc(0,0,0,we,Le=Ue,Ue+=ut?A:(It||0)/A*360).attr({"stroke-linejoin":"round",fill:D[Gt]}).data(ue,e).append(z)}),t.border.attr({r:we})},_getStyles:function(n,t){var e=fa(t.opacity,null),i=t.borderColor||null,r=fa(t.borderWidth,null);n.pie=[{opacity:e},{opacity:fa(t.hoveredOpacity,e)},{opacity:fa(t.selectedOpacity,e)}],n.border=[{stroke:i,"stroke-width":r},{stroke:t.hoveredBorderColor||i,"stroke-width":fa(t.hoveredBorderWidth,r)},{stroke:t.selectedBorderColor||i,"stroke-width":fa(t.selectedBorderWidth,r)}]},_setState:function(n,t,e){zp(n,t,e,"pie"),zp(n,t,e,"border")},arrange:function(n,t){var e,v,i=t.length,r=n.settings.dataField,D=0;for(e=0;e<i;++e)(v=Ew(t[e].proxy,r))&&v.length>D&&(D=v.length);D>0&&(v=n.params.themeManager.createPalette(n.settings.palette,{useHighlight:!0,extensionMode:"alternate"}).generateColors(D),n.settings._colors=v,n.grouping.color={callback:vc,field:"",partition:[],values:[]},n.params.dataExchanger.set(n.name,"color",{partition:[],values:v}))}},image:{_draw:function(n,t,e){t.image=n.renderer.image(null,null,null,null,null,"center").attr({"pointer-events":"visible"}).data(n.dataKey,e).append(t.root)},refresh:function(n,t,e,i){t.image.attr({href:Ew(i,n.settings.dataField)})},_getStyles:function(n,t){var e=t.size>0?Pd(t.size):0,i=e+(t.hoveredStep>0?Pd(t.hoveredStep):0),r=e+(t.selectedStep>0?Pd(t.selectedStep):0),v=fa(t.opacity,null);n.image=[{x:-e/2,y:-e/2,width:e,height:e,opacity:v},{x:-i/2,y:-i/2,width:i,height:i,opacity:fa(t.hoveredOpacity,v)},{x:-r/2,y:-r/2,width:r,height:r,opacity:fa(t.selectedOpacity,v)}]},_setState:function(n,t,e){zp(n,t,e,"image")}}};var U3=function(n,t,e,i,r){var v;i&&t&&t.length>1&&(v=r(t.length-1),n.grouping[e]={callback:(0,w.mf)(i)?i:ffe,field:i,partition:t,values:v},n.params.dataExchanger.set(n.name,e,{partition:t,values:v,defaultColor:n.settings.color}))};function Z3(n){var t=n.name,e=n.params.dataExchanger;Cw(n.grouping,function(i){e.set(t,i,null)}),n.grouping={}}function a2(n,t,e){return e?n|=t:n&=~t,n}function s2(n,t){return!!(n&t)}o1=function(n){U3(n,n.settings.colorGroups,"color",n.settings.colorGroupingField,function(t){var i,e=n.params.themeManager.createDiscretePalette(n.settings.palette,t),r=[];for(i=0;i<t;++i)r.push(e.getColor(i));return r})},i2=function(n,t){var e=n.settings;U3(n,e.sizeGroups,"size",t||e.sizeGroupingField,function(i){var r=e.minSize>0?Pd(e.minSize):0,v=e.maxSize>=r?Pd(e.maxSize):0,D=0,A=[];if(i>1)for(D=0;D<i;++D)A.push((r*(i-D-1)+v*D)/(i-1));else 1===i&&A.push((r+v)/2);return A})};var a1,l2=function(n,t,e,i){this._params=n,this._onProjection(),this.proxy=function mfe(n,t,e){var i={index:e,name:t,getElements:function(){return n.getProxies()},clearSelection:function(r){return n.clearSelection(r),i},getDataSource:function(){return n.getDataSource()},getBounds:()=>n.getBounds()};return i}(this,e,i),this._context={name:e,layer:this.proxy,renderer:n.renderer,projection:n.projection,params:n,dataKey:n.dataKey,str:V3,hover:!1,selection:null,grouping:{},root:n.renderer.g().attr({class:"dxm-layer"}).linkOn(t,e).linkAppend()},this._container=t,this._options={},this._handles=[],this._data=new e2,this._dataSourceLoaded=null};function vfe(n){var t,i,v,e=n.length,r=n[e-1],D=0,A=0,z=0,Q=1/0,ue=-1/0,we=1/0,Le=-1/0;for(t=0;t<e;++t)z+=v=(i=r)[0]*(r=n[t])[1]-r[0]*i[1],D+=(i[0]+r[0])*v,A+=(i[1]+r[1])*v,Q=Hp(Q,r[0]),ue=Cu(ue,r[0]),we=Hp(we,r[1]),Le=Cu(Le,r[1]);return{area:Xge(z)/2,center:[2*D/3/z-(Q+ue)/2,2*A/3/z-(we+Le)/2]}}function yfe(n){var t,i,e=n.length,r=n[0]||[],v=0,D=[0],A=r[0],z=r[0],Q=r[1],ue=r[1];for(t=1;t<e;++t)v+=JR(((i=r)[0]-(r=n[t])[0])*(i[0]-r[0])+(i[1]-r[1])*(i[1]-r[1])),D[t]=v,A=Hp(A,r[0]),z=Cu(z,r[0]),Q=Hp(Q,r[1]),ue=Cu(ue,r[1]);i=n[t=z3(v/2,D)],r=n[t+1];var we=(v/2-D[t])/(D[t+1]-D[t]);return e?[[i[0]*(1-we)+r[0]*we,i[1]*(1-we)+r[1]*we],[z-A,ue-Q],v]:[]}function u2(n){var t=n.renderer;this._params=n,this._layers=[],this._layerByName={},this._rect=[0,0,0,0],this._clip=t.clipRect(),this._background=t.rect().attr({class:"dxm-background"}).data(n.dataKey,{name:"background"}).append(t.root),this._container=t.g().attr({class:"dxm-layers","clip-path":this._clip.id}).append(t.root).enableLinks(),this._subscribeToTracker(n.tracker,t,n.eventTrigger),this._dataReady=n.dataReady}function d2(n){this._subscribeToTracker(n.tracker,n.tooltip,n.layerCollection)}l2.prototype=Ah({constructor:l2,getDataReadyCallback(){return this._dataSourceLoaded},_onProjection:function(){var n=this;n._removeHandlers=n._params.projection.on({engine:function(){n._project()},screen:function(){n._transform()},center:function(){n._transformCore()},zoom:function(){n._transform()}})},getData(){return this._data},_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceChangedHandler:function(){this._data=function Qge(n){var t;return n&&(n2(n)?t=i1:1===n.length&&n[0]&&n2(n[0])?(t=i1,n=n[0]):ww(n)&&(t=t2)),new(t=t||e2)(n)}(this._dataSource&&this._dataSource.items()),this._update(!0)},_dataSourceOptions:function(){return{paginate:!1}},_getSpecificDataSourceOption:function(){return this._specificDataSourceOption},_normalizeDataSource:function(n){var t=n.store();return"raw"===t._loadMode&&(t._loadMode=void 0),n},_offProjection:function(){this._removeHandlers(),this._removeHandlers=null},dispose:function(){return this._disposeDataSource(),this._destroyHandles(),Z3(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(n){n=this._options=n||{},this._dataSourceLoaded=new P.BH,"dataSource"in n&&n.dataSource!==this._options_dataSource?(this._options_dataSource=n.dataSource,this._params.notifyDirty(),this._specificDataSourceOption=function efe(n){return n?n2(n)?[n]:n:[]}(n.dataSource),this._refreshDataSource()):this._data.count()>0&&(this._params.notifyDirty(),this._update(void 0!==n.type&&n.type!==this._context.str.type||void 0!==n.elementType&&n.elementType!==this._context.str.elementType)),this._transformCore()},_update:function(n){var t=this._context;n&&(t.str.reset(t),t.root.clear(),t.labelRoot&&t.labelRoot.clear(),this._params.tracker.reset(),this._destroyHandles(),t.str=function(n,t){var r,e=Sn(n.type),i=Sn(n.elementType),v=Ah({},V3);return t.count()>0&&(r=t.geometry(t.item(0)),e=Ny[e]?e:function ife(n){var t=nfe[n.type],e=n.coordinates;return t||(t="number"==typeof e[0]?bw:"number"==typeof e[0][0]?Vy:xw),t}(r),Ah(v,Ny[e]),v.fullType=v.type=e,r1[e]&&Ah(v,r1[e](r)),Sw[e]&&(Ah(v,Sw[e][i=Sw[e][i]?i:Sw[e]._default]),v.elementType=i,v.fullType+=":"+i)),v}(this._options,this._data),t.str.setup(t),this.proxy.type=t.str.type,this.proxy.elementType=t.str.elementType),t.settings=function gfe(n,t){var v,D,A,e=n.params.themeManager,i=n.str,r=o2(Ah({label:{},color:i.getDefaultColor(n,t.palette)},e.theme("layer:"+i.fullType)),t);if(r.paletteSize>0){for(A=e.createDiscretePalette(r.palette,r.paletteSize),D=0,v=[];D<r.paletteSize;++D)v.push(A.getColor(D));r._colors=v}return r}(t,this._options),t.hasSeparateLabel=!(!t.settings.label.enabled||!t.str.hasLabelsGroup),t.hover=!!ei(t.settings.hoverEnabled,!0),t.selection&&Cw(t.selection.state,function(e,i){i&&i.resetSelected()}),t.selection=function Jge(n){var t=Sn(n);return null!==(t=t in qR?qR[t]:qR.single)&&(t={state:{},single:t}),t}(t.settings.selectionMode),t.hasSeparateLabel?t.labelRoot||(t.labelRoot=t.renderer.g().attr({class:"dxm-layer-labels"}).linkOn(this._container,{name:t.name+"-labels",after:t.name}).linkAppend(),this._transformCore()):t.labelRoot&&(t.labelRoot.linkRemove().linkOff(),t.labelRoot=null),n&&this._createHandles(),Z3(t),t.str.arrange(t,this._handles),t.str.updateGrouping(t),this._updateHandles(),this._params.notifyReady(),this._dataSourceLoaded?(this._dataSourceLoaded.resolve(),this._dataSourceLoaded=null):this._params.dataReady()},getBounds(){return QR(this._handles.map(n=>{var{proxy:t}=n;return t.coordinates().map(e=>{if(ww(e)){var i=ww(e[0][0])?e.reduce((v,D)=>v.concat(D),[]):e,r=i[0];return i.reduce((v,D)=>[Hp(v[0],D[0]),Hp(v[1],D[1]),Cu(v[2],D[0]),Cu(v[3],D[1])],[r[0],r[1],r[0],r[1]])}})}).map(QR))},_destroyHandles(){this._handles.forEach(n=>n.dispose()),this._context.selection&&(this._context.selection.state={}),this._handles=[]},_createHandles:function(){var e,A,z,n=this._handles=[],t=this._data,i=n.length=t.count(),r=this._context,v=t.geometry,D=t.attributes;for(e=0;e<i;++e)z=t.item(e),n[e]=new a1(r,e,v(z),D(z));for((0,w.mf)(this._options.customize)&&function tfe(n,t,e){t.call(e,n)}(this.getProxies(),this._options.customize,this._params.widget),e=0;e<i;++e)(A=n[e]).project(),A.draw(),A.transform();r.selection&&Cw(r.selection.state,function(Q,ue){ue&&ue.restoreSelected()})},_updateHandles:function(){var t,n=this._handles,e=n.length;for(t=0;t<e;++t)n[t].refresh();if(this._context.settings.label.enabled){for(t=0;t<e;++t)n[t].measureLabel();for(t=0;t<e;++t)n[t].adjustLabel()}},_transformCore:function(){var n=this._params.projection.getTransform();this._context.root.attr(n),this._context.labelRoot&&this._context.labelRoot.attr(n)},_project:function(){var t,n=this._handles,e=n.length;for(t=0;t<e;++t)n[t].project()},_transform:function(){var t,n=this._handles,e=n.length;for(this._transformCore(),t=0;t<e;++t)n[t].transform()},getProxies(){return this._handles.map(n=>n.proxy)},getProxy:function(n){return this._handles[n].proxy},raiseClick:function(n,t){this._params.eventTrigger("click",{target:this._handles[n].proxy,event:t})},hoverItem:function(n,t){this._handles[n].setHovered(t)},selectItem:function(n,t,e){this._handles[n].setSelected(t,e)},clearSelection:function(){var n=this._context.selection;n&&(Cw(n.state,function(t,e){e&&e.setSelected(!1)}),n.state={})}},co.Z),a1=function(n,t,e,i){var r=this.proxy=function _fe(n,t,e){var i={coordinates:function(){return t},attribute:function(r,v){return arguments.length>1?(e[r]=v,i):arguments.length>0?e[r]:e},selected:function(r,v){return arguments.length>0?(n.setSelected(r,v),i):n.isSelected()},applySettings:function(r){return n.update(r),i}};return i}(this,e.coordinates,Ah({},i));this._ctx=n,this._index=t,this._fig=this._label=null,this._state=0,this._coordinates=e.coordinates,this._settings={label:{}},r.index=t,r.layer=n.layer,this._data={name:n.name,index:t}},a1.prototype={constructor:a1,dispose:function(){return this._ctx=this.proxy=this._settings=this._fig=this._label=this.data=null,this},project:function(){var n=this._ctx;this._projection=n.str.project(n.projection,this._coordinates),n.hasSeparateLabel&&this._label&&this._projectLabel()},_projectLabel:function(){this._labelProjection=this._ctx.str.projectLabel(this._projection)},draw:function(){var n=this._ctx;n.str.draw(n,this._fig={},this._data),this._fig.root.append(n.root)},transform:function(){var n=this._ctx;n.str.transform(this._fig,n.projection,this._projection),n.hasSeparateLabel&&this._label&&this._transformLabel()},_transformLabel:function(){this._ctx.str.transformLabel(this._label,this._ctx.projection,this._labelProjection)},refresh:function(){var n=this._ctx.str,t=function hfe(n,t,e){var i=o2(n.settings,e);return function pfe(n,t,e){Cw(n,function(i,r){var v=z3(r.callback(t,r.field),r.partition);v>=0&&(e[i]=r.values[v])})}(n.grouping,t,i),void 0===e.color&&e.paletteIndex>=0&&(i.color=i._colors[e.paletteIndex]),i}(this._ctx,this.proxy,this._settings);this._styles=n.getStyles(t),n.refresh(this._ctx,this._fig,this._data,this.proxy,t),this._refreshLabel(t),this._setState()},_refreshLabel:function(n){var t=this._ctx,e=n.label,i=this._label;t.settings.label.enabled?(i||(i=this._label={root:t.labelRoot||this._fig.root,text:t.renderer.text().attr({class:"dxm-label"}),size:[0,0]},t.hasSeparateLabel&&(this._projectLabel(),this._transformLabel())),i.value=Yge(this.proxy.text||this.proxy.attribute(e.dataField)||""),i.value&&(i.text.attr({text:i.value,x:0,y:0}).css(di(e.font)).attr({align:"center",stroke:e.stroke,"stroke-width":e["stroke-width"],"stroke-opacity":e["stroke-opacity"]}).data(t.dataKey,this._data).append(i.root),i.settings=n)):i&&(i.text.remove(),this._label=null)},measureLabel:function(){var t,n=this._label;n.value&&(t=n.text.getBBox(),n.size=[t.width,t.height,-t.y-t.height/2])},adjustLabel:function(){var t,n=this._label;n.value&&(t=this._ctx.str.getLabelOffset(n,n.settings),n.settings=null,n.text.attr({x:t[0],y:t[1]+n.size[2]}))},update:function(n){this._settings=o2(this._settings,n),this._fig&&(this.refresh(),this._label&&this._label.value&&(this.measureLabel(),this.adjustLabel()))},_setState:function(){this._ctx.str.setState(this._fig,this._styles,$ge[this._state])},_setForeground:function(){var n=this._fig.root;this._state?n.toForeground():n.toBackground()},setHovered:function(n){var t=s2(this._state,1),e=!!n;return this._ctx.hover&&t!==e&&(this._state=a2(this._state,1,e),this._setState(),this._setForeground(),W3(this._ctx,this,e,"hoverChanged")),this},setSelected:function(n,t){var v,e=s2(this._state,2),i=!!n,r=this._ctx.selection;r&&e!==i&&(this._state=a2(this._state,2,i),v=r.state[r.single],r.state[r.single]=null,v&&v.setSelected(!1),r.state[r.single||this._index]=n?this:null,this._fig&&(this._setState(),this._setForeground(),t||W3(this._ctx,this,i,"selectionChanged")))},isSelected:function(){return s2(this._state,2)},resetSelected:function(){this._state=a2(this._state,2,!1)},restoreSelected:function(){this._fig.root.toForeground()}},u2.prototype={constructor:u2,dispose:function(){this._clip.dispose(),this._layers.forEach(n=>n.dispose()),this._offTracker(),this._params=this._offTracker=this._layers=this._layerByName=this._clip=this._background=this._container=null},_subscribeToTracker:function(n,t,e){var i=this;i._offTracker=n.on({click:function(r){var v=t.getRootOffset(),D=i.byName(r.data.name);r.$event.x=r.x-v.left,r.$event.y=r.y-v.top,D?D.raiseClick(r.data.index,r.$event):"background"===r.data.name&&e("click",{event:r.$event})},"hover-on":function(r){var v=i.byName(r.data.name);v&&v.hoverItem(r.data.index,!0)},"hover-off":function(r){var v=i.byName(r.data.name);v&&v.hoverItem(r.data.index,!1)}})},setOptions(n){var i,t=n?ww(n)?n:[n]:[],e=this._layers;if(t.length!==e.length||e.some((ue,we)=>{var Le=L3(t,we);return(0,w.$K)(Le)&&Le!==ue.proxy.name})){this._params.tracker.reset(),this._layers.forEach(ue=>ue.dispose());var v=this._layerByName={};this._layers=e=[];for(var D=0,A=t.length;D<A;++D){var z=L3(t,D)||"map-layer-"+D,Q=e[D]=new l2(this._params,this._container,z,D);v[z]=Q}}e.forEach((ue,we)=>{ue.setOptions(t[we])}),(i=e.map(ue=>ue.getDataReadyCallback())).length&&P.gx.apply(void 0,i).done(this._dataReady)},_updateClip:function(){var n=this._rect,t=this._borderWidth;this._clip.attr({x:n[0]+t,y:n[1]+t,width:Cu(n[2]-2*t,0),height:Cu(n[3]-2*t,0)})},setBackgroundOptions:function(n){this._background.attr({stroke:n.borderColor,"stroke-width":n.borderWidth,fill:n.color}),this._borderWidth=Cu(n.borderWidth,0),this._updateClip()},setRect:function(n){this._rect=n,this._background.attr({x:n[0],y:n[1],width:n[2],height:n[3]}),this._updateClip()},byIndex:function(n){return this._layers[n]},byName:function(n){return this._layerByName[n]},items:function(){return this._layers}},d2.prototype={constructor:d2,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(n,t,e){this._offTracker=n.on({"focus-on":function(i){var r,v;if(t.isEnabled()){var D=A=>{A&&i.done(A)};(v=(r=e.byName(i.data.name))&&r.getProxy(i.data.index))&&D(t.show(v,{x:i.x,y:i.y,offset:12},{target:v},void 0,D))}},"focus-move":function(i){t.move(i.x,i.y,12)},"focus-off":function(){t.hide()}})}};var bfe=1,Efe=Math.min,Sfe=Math.max,Ofe=Math.sin,Dfe=Math.asin,G3=Math.tan,s1=Math.atan,l1=Math.exp,j3=Math.log,kd=Math.PI,$3=kd/4,jf=180,$f=kd/180,Tfe=(2*s1(l1(kd))-kd/2)/$f,Ife=(2.5*s1(l1(.8*kd))-.625*kd)/$f;function u1(n,t){return Sfe(Efe(n,+t),-t)}Yl.add("mercator",Yl({aspectRatio:1,to:function(n){return[n[0]/jf,j3(G3($3+u1(n[1],Tfe)*$f/2))/kd]},from:function(n){return[n[0]*jf,(2*s1(l1(n[1]*kd))-kd/2)/$f]}})),Yl.add("equirectangular",Yl({aspectRatio:2,to:function(n){return[n[0]/jf,n[1]/90]},from:function(n){return[n[0]*jf,90*n[1]]}})),Yl.add("lambert",Yl({aspectRatio:2,to:function(n){return[n[0]/jf,Ofe(u1(n[1],90)*$f)]},from:function(n){return[n[0]*jf,Dfe(u1(n[1],1))/$f]}})),Yl.add("miller",Yl({aspectRatio:1,to:function(n){return[n[0]/jf,1.25*j3(G3($3+u1(n[1],Ife)*$f*.4))/kd]},from:function(n){return[n[0]*jf,(2.5*s1(l1(.8*n[1]*kd))-.625*kd)/$f]}}));var Pfe=/^layers/,kfe=/\.dataSource$/;function Y3(n,t){return t?[Math.min(t[0],t[2],n[0]),Math.min(t[1],t[3],n[3]),Math.max(t[0],t[2],n[2]),Math.max(t[1],t[3],n[1])]:n}var Yf=Cl.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(n){var t=this;t._layerCollection=new u2({renderer:t._renderer,projection:t._projection,themeManager:t._themeManager,tracker:t._tracker,dataKey:n,eventTrigger:t._eventTrigger,dataExchanger:t._dataExchanger,tooltip:t._tooltip,notifyDirty:t._notifyDirty,notifyReady:t._notifyReady,dataReady(){var e;if(t.option("getBoundsFromData")&&!t.option("bounds")&&(t._preventProjectionEvents(),e=t._getBoundsFromData(),t._projection.setBounds(e),t._allowProjectionEvents()),!t.option("projection")&&(e=e||t._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];t._projection.setEngine({to:v=>[2*(v[0]-e[0])/i-1,2*(v[1]-e[3])/r-1],from:v=>[(v[0]+1)*i/2+e[0],(v[1]+1)*r/2+e[3]]})}}})},_getBoundsFromData(){var n=this._getBoundingBoxFromDataSource();if(!n){var t=QR(this.getLayers().map(e=>e.getBounds()));t&&(n=t)}return[(n=n||[])[0],n[3],n[2],n[1]]},_initLegendsControl:function(){this._legendsControl=new $R({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(n){this._controlBar=new NR({renderer:this._renderer,container:this._root,layoutControl:this._layoutControl,projection:this._projection,tracker:this._tracker,dataKey:n})},_initElements:function(){var i,n=this,t=function wfe(){return"vectormap-data-"+bfe++}(),e=0;n._preventProjectionEvents=function(){i=!0},n._allowProjectionEvents=function(){i=!1},n._notifyDirty=function(){n._resetIsReady(),++e},n._notifyReady=function(){n._allowProjectionEvents(),0==--e&&n._drawn()},n._preventProjectionEvents(),n._dataExchanger=new GR,n._projection=new WT({centerChanged:function(r){i||n._eventTrigger("centerChanged",{center:r})},zoomChanged:function(r){i||n._eventTrigger("zoomFactorChanged",{zoomFactor:r})}}),n._tracker=new qT({root:n._root,projection:n._projection,dataKey:t}),n._gestureHandler=new HR({projection:n._projection,renderer:n._renderer,tracker:n._tracker}),n._layoutControl=new XR(n),n._layoutControl.suspend(),n._initLayerCollection(t),n._createHtmlStructure(),n._initControlBar(t),n._initLegendsControl(),n._prepareExtraElements(),n._tooltipViewer=new d2({tracker:n._tracker,tooltip:n._tooltip,layerCollection:n._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 n={centeringEnabled:!!ei(this._getOption("panningEnabled",!0),!0),zoomingEnabled:!!ei(this._getOption("zoomingEnabled",!0),!0)};this._gestureHandler.setInteraction(n),this._controlBar.setInteraction(n)},_getDefaultSize:function(){return{width:800,height:400}},_applySize:function(n){var t={left:n[0],top:n[1],width:n[2]-n[0],height:n[3]-n[1],right:0,bottom:0};this._projection.setSize(t),this._layoutControl.setSize(t),this._layerCollection.setRect([t.left,t.top,t.width,t.height]),this._requestChange(["EXTRA_ELEMENTS"])},_optionChanging:function(n,t,e){t&&e&&Pfe.test(n)&&(t.dataSource&&e.dataSource&&t!==e?t.dataSource=null:kfe.test(n)&&this.option(n,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 n=this._layerCollection.items(),t=[1/0,-1/0,-1/0,1/0],e=n&&n.length?n.reduce((i,r)=>{var v=r.getData(),D=v.count();if(D>0){var A=v.getBBox();if(A)i=Y3(i,A);else for(var z=0;z<D;z++)i=Y3(i,v.getBBox(z))}return i},t):void 0;return e===t?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(n=>n.proxy)},getLayerByIndex:function(n){var t=this._layerCollection.byIndex(n);return t?t.proxy:null},getLayerByName:function(n){var t=this._layerCollection.byName(n);return t?t.proxy:null},clearSelection:function(n){var e,t=this._layerCollection.items(),i=t.length;for(e=0;e<i;++e)t[e].clearSelection(n);return this},center:function(n){return void 0===n?this._projection.getCenter():(this._projection.setCenter(n),this)},zoomFactor:function(n){return void 0===n?this._projection.getZoom():(this._projection.setZoom(n),this)},viewport:function(n){return void 0===n?this._projection.getViewport():(this._projection.setViewport(n),this)},convertCoordinates:function(n){return this.convertToGeo((n=n&&n.length?n:[arguments[0],arguments[1]])[0],n[1])},convertToGeo:function(n,t){return this._projection.fromScreenPoint([n,t])},convertToXY:function(n,t){return this._projection.toScreenPoint([n,t])}});(0,T.Z)("dxVectorMap",Yf),Yf.addPlugin(Bu),Yf.addPlugin(Oe),Yf.addPlugin(Ve),Yf.addPlugin(xi),Yf.addPlugin(wf.core),Yf.addPlugin(wf.vectorMap);let X3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.DTQ,M.zk3,M.K9Y,M.lj9,M.gMt,M.e1H,M.DrR,M.KjY,M.mR_,M.rrz,M.lTN,M.rHV,M.nRD,M.Kx,M.vZC,f.Lz,f.ie,p.Cu],M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.DTQ,M.zk3,M.K9Y,M.lj9,M.gMt,M.e1H,M.DrR,M.KjY,M.mR_,M.rrz,M.lTN,M.rHV,M.nRD,M.Kx,M.vZC,f.ie]}),n})(),Bfe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[ge,De.o,pe,II,QE,VI,NI.e,o0,sf,WL,UL.W,ZL,KL,GL,jL.x,$L.k,tB,DB,IB,BB,NB,HB,wF,EF.Q,SF,OF.A,LF,ZF,c8,h8.O,m8,_8.O,v8,y8,C8.n,D8,T8,I8,A8,L8,G9,j9,$9,X9,q9.C,J9,Q9,wV,AV,mN,vN,yN,kN,qH,JH.r,QH.D,ez,tz,lz,dz,cz,hz,pz,gz._,fz,mz.a,yz,Cz,xz,bz,wz,Xz,qz,Jz,Qz,e3.B,X3,f.ie],ge,De.o,pe,II,QE,VI,NI.e,o0,sf,WL,UL.W,ZL,KL,GL,jL.x,$L.k,tB,DB,IB,BB,NB,HB,wF,EF.Q,SF,OF.A,LF,ZF,c8,h8.O,m8,_8.O,v8,y8,C8.n,D8,T8,I8,A8,L8,G9,j9,$9,X9,q9.C,J9,Q9,wV,AV,mN,vN,yN,kN,qH,JH.r,QH.D,ez,tz,lz,dz,cz,hz,pz,gz._,fz,mz.a,yz,Cz,xz,bz,wz,Xz,qz,Jz,Qz,e3.B,X3,f.ie]}),n})()},8699:function(kn){kn.exports=function(he){var l={};function o(c){if(l[c])return l[c].exports;var I=l[c]={i:c,l:!1,exports:{}};return he[c].call(I.exports,I,I.exports,o),I.l=!0,I.exports}return o.m=he,o.c=l,o.d=function(c,I,C){o.o(c,I)||Object.defineProperty(c,I,{enumerable:!0,get:C})},o.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},o.t=function(c,I){if(1&I&&(c=o(c)),8&I||4&I&&"object"==typeof c&&c&&c.__esModule)return c;var C=Object.create(null);if(o.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:c}),2&I&&"string"!=typeof c)for(var f in c)o.d(C,f,function(a){return c[a]}.bind(null,f));return C},o.n=function(c){var I=c&&c.__esModule?function(){return c.default}:function(){return c};return o.d(I,"a",I),I},o.o=function(c,I){return Object.prototype.hasOwnProperty.call(c,I)},o.p="",o(o.s=176)}([function(he,l,o){"use strict";o.d(l,"c",function(){return U}),o.d(l,"b",function(){return Y}),o.d(l,"d",function(){return j}),o.d(l,"a",function(){return K});var c=o(1),I=o.n(c),C=o(16),f=o.n(C),a=o(37),p=o.n(a),s=o(2),u=o(4),d=o(3),h=o(12),g=o(7),x=o(44),b=o(23),y=o(57);function E(G){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Z){return typeof Z}:function(Z){return Z&&"function"==typeof Symbol&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z})(G)}function S(G,q,Z){return q in G?Object.defineProperty(G,q,{value:Z,enumerable:!0,configurable:!0,writable:!0}):G[q]=Z,G}function O(G,q){return function P(G){if(Array.isArray(G))return G}(G)||function R(G,q){var Z=null==G?null:typeof Symbol<"u"&&G[Symbol.iterator]||G["@@iterator"];if(null!=Z){var ge,De,X=[],M=!0,se=!1;try{for(Z=Z.call(G);!(M=(ge=Z.next()).done)&&(X.push(ge.value),!q||X.length!==q);M=!0);}catch(Fe){se=!0,De=Fe}finally{try{!M&&null!=Z.return&&Z.return()}finally{if(se)throw De}}return X}}(G,q)||function T(G,q){if(G){if("string"==typeof G)return k(G,q);var Z=Object.prototype.toString.call(G).slice(8,-1);if("Object"===Z&&G.constructor&&(Z=G.constructor.name),"Map"===Z||"Set"===Z)return Array.from(G);if("Arguments"===Z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return k(G,q)}}(G,q)||function w(){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 k(G,q){(null==q||q>G.length)&&(q=G.length);for(var Z=0,X=new Array(q);Z<q;Z++)X[Z]=G[Z];return X}function B(G,q){if(!(G instanceof q))throw new TypeError("Cannot call a class as a function")}function W(G,q){for(var Z=0;Z<q.length;Z++){var X=q[Z];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(G,X.key,X)}}var V=Object(b.a)("quill"),U=new s.Registry;s.ParentBlot.uiClass="ql-ui";var K=function(){function G(q){var Z=this,X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(B(this,G),this.options=Y(q,X),this.container=this.options.container,null==this.container)return V.error("Invalid Quill container",q);this.options.debug&&G.debug(this.options.debug);var M=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",x.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 d.a;var se=this.options.registry.query(s.ScrollBlot.blotName);this.scroll=new se(this.options.registry,this.root,{emitter:this.emitter,toggleBlankClass:this.toggleBlankClass.bind(this)}),this.editor=new u.a(this.scroll),this.selection=new g.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(d.a.events.EDITOR_CHANGE,function(ge){ge===d.a.events.TEXT_CHANGE&&Z.toggleBlankClass()}),this.emitter.on(d.a.events.SCROLL_UPDATE,function(ge,De){var Fe=Z.selection.lastRange,fe=O(Z.selection.getRange(),1)[0],_e=Fe&&fe?{oldRange:Fe,newRange:fe}:void 0;J.call(Z,function(){return Z.editor.update(null,De,_e)},ge)}),this.setContents(this.getInitialContent(M)),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}return function N(G,q,Z){return q&&W(G.prototype,q),Z&&W(G,Z),G}(G,[{key:"getInitialContent",value:function(Z){return this.clipboard.convert({html:"".concat(Z,"<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(Z){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof Z){var M=Z;(Z=document.createElement("div")).classList.add(M)}return this.container.insertBefore(Z,X),Z}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(Z,X,M){var se=this,De=O(j(Z,X,M),4);return J.call(this,function(){return se.editor.deleteText(Z,X)},M=De[3],Z=De[0],-1*(X=De[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"editReadOnly",value:function(Z){this.allowReadOnlyEdits=!0;var X=Z();return this.allowReadOnlyEdits=!1,X}},{key:"enable",value:function(){var Z=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(Z),this.container.classList.toggle("ql-disabled",!Z)}},{key:"focus",value:function(){var Z=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=Z,this.scrollIntoView()}},{key:"format",value:function(Z,X){var M=this;return J.call(this,function(){var ge=M.getSelection(!0),De=new I.a;if(null==ge)return De;if(M.scroll.query(Z,s.Scope.BLOCK))De=M.editor.formatLine(ge.index,ge.length,S({},Z,X));else{if(0===ge.length)return M.selection.format(Z,X),De;De=M.editor.formatText(ge.index,ge.length,S({},Z,X))}return M.setSelection(ge,d.a.sources.SILENT),De},arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.a.sources.API)}},{key:"formatLine",value:function(Z,X,M,se,ge){var Fe,De=this,ne=O(j(Z,X,M,se,ge),4);return X=ne[1],Fe=ne[2],J.call(this,function(){return De.editor.formatLine(Z,X,Fe)},ge=ne[3],Z=ne[0],0)}},{key:"formatText",value:function(Z,X,M,se,ge){var Fe,De=this,ne=O(j(Z,X,M,se,ge),4);return X=ne[1],Fe=ne[2],J.call(this,function(){return De.editor.formatText(Z,X,Fe)},ge=ne[3],Z=ne[0],0)}},{key:"getBounds",value:function(Z){var M;M="number"==typeof Z?this.selection.getBounds(Z,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(Z.index,Z.length);var se=this.container.getBoundingClientRect();return{bottom:M.bottom-se.top,height:M.height,left:M.left-se.left,right:M.right-se.left,top:M.top-se.top,width:M.width}}},{key:"getContents",value:function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-Z,se=O(j(Z,X),2);return this.editor.getContents(Z=se[0],X=se[1])}},{key:"getFormat",value:function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof Z?this.editor.getFormat(Z,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(Z.index,Z.length)}},{key:"getIndex",value:function(Z){return Z.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(Z){return this.scroll.leaf(Z)}},{key:"getLine",value:function(Z){return this.scroll.line(Z)}},{key:"getLines",value:function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof Z?this.scroll.lines(Z.index,Z.length):this.scroll.lines(Z,X)}},{key:"getModule",value:function(Z){return this.theme.modules[Z]}},{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 Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-Z,se=O(j(Z,X),2);return this.editor.getHTML(Z=se[0],X=se[1])}},{key:"getText",value:function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-Z,se=O(j(Z,X),2);return this.editor.getText(Z=se[0],X=se[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(Z,X,M){var se=this;return J.call(this,function(){return se.editor.insertEmbed(Z,X,M)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:G.sources.API,Z)}},{key:"insertText",value:function(Z,X,M,se,ge){var Fe,De=this,ne=O(j(Z,0,M,se,ge),4);return Fe=ne[2],J.call(this,function(){return De.editor.insertText(Z,X,Fe)},ge=ne[3],Z=ne[0],X.length)}},{key:"isEnabled",value:function(){return this.scroll.isEnabled()}},{key:"off",value:function(){var Z;return(Z=this.emitter).off.apply(Z,arguments)}},{key:"on",value:function(){var Z;return(Z=this.emitter).on.apply(Z,arguments)}},{key:"once",value:function(){var Z;return(Z=this.emitter).once.apply(Z,arguments)}},{key:"removeFormat",value:function(Z,X,M){var se=this,De=O(j(Z,X,M),4);return X=De[1],J.call(this,function(){return se.editor.removeFormat(Z,X)},M=De[3],Z=De[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(Z){var X=this;return J.call(this,function(){Z=new I.a(Z);var se=X.getLength(),ge=X.editor.deleteText(0,se),De=X.editor.applyDelta(Z),Fe=X.editor.deleteText(X.getLength()-1,1);return X.emitter.emit(G.events.CONTENT_SETTED),ge.compose(De).compose(Fe)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.a.sources.API)}},{key:"setSelection",value:function(Z,X,M){if(null==Z)this.selection.setRange(null,X||G.sources.API);else{var ge=O(j(Z,X,M),4);Z=ge[0],X=ge[1],M=ge[3],this.selection.setRange(new g.a(Math.max(0,Z),X),M),M!==d.a.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(Z){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.a.sources.API,M=(new I.a).insert(Z);return this.setContents(M,X)}},{key:"update",value:function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a.sources.USER,X=this.scroll.update(Z);return this.selection.update(Z),X}},{key:"updateContents",value:function(Z){var X=this,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.a.sources.API;return J.call(this,function(){return Z=new I.a(Z),X.editor.applyDelta(Z,M)},M,!0)}}],[{key:"debug",value:function(Z){!0===Z&&(Z="log"),b.a.level(Z)}},{key:"find",value:function(Z){return x.a.get(Z)||U.find(Z)}},{key:"import",value:function(Z){return null==this.imports[Z]&&V.error("Cannot import ".concat(Z,". Are you sure it was registered?")),this.imports[Z]}},{key:"register",value:function(Z,X){var M=this,se=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof Z){var ge=Z.attrName||Z.blotName;"string"==typeof ge?this.register("formats/".concat(ge),Z,X):Object.keys(Z).forEach(function(De){M.register(De,Z[De],X)})}else null!=this.imports[Z]&&!se&&V.warn("Overwriting ".concat(Z," with"),X),this.imports[Z]=X,(0===Z.indexOf("blots/")||0===Z.indexOf("formats/"))&&"abstract"!==X.blotName&&U.register(X),"function"==typeof X.register&&X.register(U)}}]),G}();function Y(G,q){if((q=p()({container:G,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0}},q)).theme&&q.theme!==K.DEFAULTS.theme){if(q.theme=K.import("themes/".concat(q.theme)),null==q.theme)throw new Error("Invalid theme ".concat(q.theme,". Did you register it?"))}else q.theme=y.a;var Z=f()(q.theme.DEFAULTS);[Z,q].forEach(function(se){se.modules=se.modules||{},Object.keys(se.modules).forEach(function(ge){!0===se.modules[ge]&&(se.modules[ge]={})})});var M=Object.keys(Z.modules).concat(Object.keys(q.modules)).reduce(function(se,ge){var De=K.import("modules/".concat(ge));return null==De?V.error("Cannot load ".concat(ge," module. Are you sure you registered it?")):se[ge]=De.DEFAULTS||{},se},{});return null!=q.modules&&q.modules.toolbar&&q.modules.toolbar.constructor!==Object&&(q.modules.toolbar={container:q.modules.toolbar}),q=p()({},K.DEFAULTS,{modules:M},Z,q),["bounds","container","scrollingContainer"].forEach(function(se){"string"==typeof q[se]&&(q[se]=document.querySelector(q[se]))}),q.modules=Object.keys(q.modules).reduce(function(se,ge){return q.modules[ge]&&(se[ge]=q.modules[ge]),se},{}),q}function J(G,q,Z,X){if(!this.isEnabled()&&q===d.a.sources.USER&&!this.allowReadOnlyEdits)return new I.a;var M=null==Z?null:this.getSelection(),se=this.editor.delta,ge=G();if(null!=M&&(!0===Z&&(Z=M.index),null==X?M=ee(M,ge,q):0!==X&&(M=ee(M,Z,X,q)),this.setSelection(M,d.a.sources.SILENT)),ge.length()>0){var De,Ae,Fe=[d.a.events.TEXT_CHANGE,ge,se,q];(De=this.emitter).emit.apply(De,[d.a.events.EDITOR_CHANGE].concat(Fe)),q!==d.a.sources.SILENT&&(Ae=this.emitter).emit.apply(Ae,Fe)}return ge}function j(G,q,Z,X,M){var se={};return"number"==typeof G.index&&"number"==typeof G.length?"number"!=typeof q?(M=X,X=Z,Z=q,q=G.length,G=G.index):(q=G.length,G=G.index):"number"!=typeof q&&(M=X,X=Z,Z=q,q=0),"object"===E(Z)?(se=Z,M=X):"string"==typeof Z&&(null!=X?se[Z]=X:M=Z),[G,q,se,M=M||d.a.sources.API]}function ee(G,q,Z,X){if(null==G)return null;var M,se;if(q instanceof I.a){var De=O([G.index,G.index+G.length].map(function(ne){return q.transformPosition(ne,X!==d.a.sources.USER)}),2);M=De[0],se=De[1]}else{var Ae=O([G.index,G.index+G.length].map(function(ne){return ne<q||ne===q&&X===d.a.sources.USER?ne:Z>=0?ne+Z:Math.max(q,ne+Z)}),2);M=Ae[0],se=Ae[1]}return new g.a(M,se-M)}K.DEFAULTS={bounds:null,modules:{},placeholder:"",readOnly:!1,registry:U,scrollingContainer:null,theme:"default"},K.events=d.a.events,K.sources=d.a.sources,K.version="1.5.20",K.imports={delta:I.a,parchment:s,"core/module":h.a,"core/theme":y.a}},function(he,l,o){"use strict";var c=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}},I=c(o(118)),C=c(o(16)),f=c(o(30)),a=c(o(119)),p=c(o(94)),s=String.fromCharCode(0),u=function(){function d(h){this.ops=Array.isArray(h)?h:null!=h&&Array.isArray(h.ops)?h.ops:[]}return d.prototype.insert=function(h,g){var x={};return"string"==typeof h&&0===h.length?this:(x.insert=h,null!=g&&"object"==typeof g&&Object.keys(g).length>0&&(x.attributes=g),this.push(x))},d.prototype.delete=function(h){return h<=0?this:this.push({delete:h})},d.prototype.retain=function(h,g){if(h<=0)return this;var x={retain:h};return null!=g&&"object"==typeof g&&Object.keys(g).length>0&&(x.attributes=g),this.push(x)},d.prototype.push=function(h){var g=this.ops.length,x=this.ops[g-1];if(h=C.default(h),"object"==typeof x){if("number"==typeof h.delete&&"number"==typeof x.delete)return this.ops[g-1]={delete:x.delete+h.delete},this;if("number"==typeof x.delete&&null!=h.insert&&"object"!=typeof(x=this.ops[(g-=1)-1]))return this.ops.unshift(h),this;if(f.default(h.attributes,x.attributes)){if("string"==typeof h.insert&&"string"==typeof x.insert)return this.ops[g-1]={insert:x.insert+h.insert},"object"==typeof h.attributes&&(this.ops[g-1].attributes=h.attributes),this;if("number"==typeof h.retain&&"number"==typeof x.retain)return this.ops[g-1]={retain:x.retain+h.retain},"object"==typeof h.attributes&&(this.ops[g-1].attributes=h.attributes),this}}return g===this.ops.length?this.ops.push(h):this.ops.splice(g,0,h),this},d.prototype.chop=function(){var h=this.ops[this.ops.length-1];return h&&h.retain&&!h.attributes&&this.ops.pop(),this},d.prototype.filter=function(h){return this.ops.filter(h)},d.prototype.forEach=function(h){this.ops.forEach(h)},d.prototype.map=function(h){return this.ops.map(h)},d.prototype.partition=function(h){var g=[],x=[];return this.forEach(function(b){(h(b)?g:x).push(b)}),[g,x]},d.prototype.reduce=function(h,g){return this.ops.reduce(h,g)},d.prototype.changeLength=function(){return this.reduce(function(h,g){return g.insert?h+p.default.length(g):g.delete?h-g.delete:h},0)},d.prototype.length=function(){return this.reduce(function(h,g){return h+p.default.length(g)},0)},d.prototype.slice=function(h,g){void 0===h&&(h=0),void 0===g&&(g=1/0);for(var x=[],b=p.default.iterator(this.ops),y=0;y<g&&b.hasNext();){var E=void 0;y<h?E=b.next(h-y):(E=b.next(g-y),x.push(E)),y+=p.default.length(E)}return new d(x)},d.prototype.compose=function(h){var g=p.default.iterator(this.ops),x=p.default.iterator(h.ops),b=[],y=x.peek();if(null!=y&&"number"==typeof y.retain&&null==y.attributes){for(var E=y.retain;"insert"===g.peekType()&&g.peekLength()<=E;)E-=g.peekLength(),b.push(g.next());y.retain-E>0&&x.next(y.retain-E)}for(var S=new d(b);g.hasNext()||x.hasNext();)if("insert"===x.peekType())S.push(x.next());else if("delete"===g.peekType())S.push(g.next());else{var O=Math.min(g.peekLength(),x.peekLength()),w=g.next(O),T=x.next(O);if("number"==typeof T.retain){var k={};"number"==typeof w.retain?k.retain=O:k.insert=w.insert;var R=a.default.compose(w.attributes,T.attributes,"number"==typeof w.retain);if(R&&(k.attributes=R),S.push(k),!x.hasNext()&&f.default(S.ops[S.ops.length-1],k)){var P=new d(g.rest());return S.concat(P).chop()}}else"number"==typeof T.delete&&"number"==typeof w.retain&&S.push(T)}return S.chop()},d.prototype.concat=function(h){var g=new d(this.ops.slice());return h.ops.length>0&&(g.push(h.ops[0]),g.ops=g.ops.concat(h.ops.slice(1))),g},d.prototype.diff=function(h,g){if(this.ops===h.ops)return new d;var x=[this,h].map(function(O){return O.map(function(w){if(null!=w.insert)return"string"==typeof w.insert?w.insert:s;throw new Error("diff() called "+(O===h?"on":"with")+" non-document")}).join("")}),b=new d,y=I.default(x[0],x[1],g),E=p.default.iterator(this.ops),S=p.default.iterator(h.ops);return y.forEach(function(O){for(var w=O[1].length;w>0;){var T=0;switch(O[0]){case I.default.INSERT:T=Math.min(S.peekLength(),w),b.push(S.next(T));break;case I.default.DELETE:T=Math.min(w,E.peekLength()),E.next(T),b.delete(T);break;case I.default.EQUAL:T=Math.min(E.peekLength(),S.peekLength(),w);var k=E.next(T),R=S.next(T);f.default(k.insert,R.insert)?b.retain(T,a.default.diff(k.attributes,R.attributes)):b.push(R).delete(T)}w-=T}}),b.chop()},d.prototype.eachLine=function(h,g){void 0===g&&(g="\n");for(var x=p.default.iterator(this.ops),b=new d,y=0;x.hasNext();){if("insert"!==x.peekType())return;var E=x.peek(),S=p.default.length(E)-x.peekLength(),O="string"==typeof E.insert?E.insert.indexOf(g,S)-S:-1;if(O<0)b.push(x.next());else if(O>0)b.push(x.next(O));else{if(!1===h(b,x.next(1).attributes||{},y))return;y+=1,b=new d}}b.length()>0&&h(b,{},y)},d.prototype.invert=function(h){var g=new d;return this.reduce(function(x,b){if(b.insert)g.delete(p.default.length(b));else{if(b.retain&&null==b.attributes)return g.retain(b.retain),x+b.retain;if(b.delete||b.retain&&b.attributes){var y=b.delete||b.retain;return h.slice(x,x+y).forEach(function(S){b.delete?g.push(S):b.retain&&b.attributes&&g.retain(p.default.length(S),a.default.invert(b.attributes,S.attributes))}),x+y}}return x},0),g.chop()},d.prototype.transform=function(h,g){if(void 0===g&&(g=!1),g=!!g,"number"==typeof h)return this.transformPosition(h,g);for(var x=h,b=p.default.iterator(this.ops),y=p.default.iterator(x.ops),E=new d;b.hasNext()||y.hasNext();)if("insert"!==b.peekType()||!g&&"insert"===y.peekType())if("insert"===y.peekType())E.push(y.next());else{var S=Math.min(b.peekLength(),y.peekLength()),O=b.next(S),w=y.next(S);if(O.delete)continue;w.delete?E.push(w):E.retain(S,a.default.transform(O.attributes,w.attributes,g))}else E.retain(p.default.length(b.next()));return E.chop()},d.prototype.transformPosition=function(h,g){void 0===g&&(g=!1),g=!!g;for(var x=p.default.iterator(this.ops),b=0;x.hasNext()&&b<=h;){var y=x.peekLength(),E=x.peekType();x.next(),"delete"!==E?("insert"===E&&(b<h||!g)&&(h+=y),b+=y):h-=Math.min(y,h-b)}return h},d.Op=p.default,d.AttributeMap=a.default,d}();he.exports=u},function(he,l,o){"use strict";o.r(l),o.d(l,"ParentBlot",function(){return E}),o.d(l,"ContainerBlot",function(){return w}),o.d(l,"LeafBlot",function(){return R}),o.d(l,"EmbedBlot",function(){return ne}),o.d(l,"ScrollBlot",function(){return le}),o.d(l,"BlockBlot",function(){return De}),o.d(l,"InlineBlot",function(){return M}),o.d(l,"TextBlot",function(){return ae}),o.d(l,"Attributor",function(){return B}),o.d(l,"ClassAttributor",function(){return U}),o.d(l,"StyleAttributor",function(){return j}),o.d(l,"AttributorStore",function(){return G}),o.d(l,"Registry",function(){return d}),o.d(l,"Scope",function(){return I});var te,c=(()=>{return(te=c||(c={}))[te.TYPE=3]="TYPE",te[te.LEVEL=12]="LEVEL",te[te.ATTRIBUTE=13]="ATTRIBUTE",te[te.BLOT=14]="BLOT",te[te.INLINE=7]="INLINE",te[te.BLOCK=11]="BLOCK",te[te.BLOCK_BLOT=10]="BLOCK_BLOT",te[te.INLINE_BLOT=6]="INLINE_BLOT",te[te.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",te[te.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",te[te.ANY=15]="ANY",c;var te})(),I=c,C=function(){function te(){this.head=null,this.tail=null,this.length=0}return te.prototype.append=function(){for(var re=[],oe=0;oe<arguments.length;oe++)re[oe]=arguments[oe];if(this.insertBefore(re[0],null),re.length>1){var ye=re.slice(1);this.append.apply(this,ye)}},te.prototype.at=function(re){for(var oe=this.iterator(),ye=oe();ye&&re>0;)re-=1,ye=oe();return ye},te.prototype.contains=function(re){for(var oe=this.iterator(),ye=oe();ye;){if(ye===re)return!0;ye=oe()}return!1},te.prototype.indexOf=function(re){for(var oe=this.iterator(),ye=oe(),Pe=0;ye;){if(ye===re)return Pe;Pe+=1,ye=oe()}return-1},te.prototype.insertBefore=function(re,oe){null!=re&&(this.remove(re),re.next=oe,null!=oe?(re.prev=oe.prev,null!=oe.prev&&(oe.prev.next=re),oe.prev=re,oe===this.head&&(this.head=re)):null!=this.tail?(this.tail.next=re,re.prev=this.tail,this.tail=re):(re.prev=null,this.head=this.tail=re),this.length+=1)},te.prototype.offset=function(re){for(var oe=0,ye=this.head;null!=ye;){if(ye===re)return oe;oe+=ye.length(),ye=ye.next}return-1},te.prototype.remove=function(re){this.contains(re)&&(null!=re.prev&&(re.prev.next=re.next),null!=re.next&&(re.next.prev=re.prev),re===this.head&&(this.head=re.next),re===this.tail&&(this.tail=re.prev),this.length-=1)},te.prototype.iterator=function(re){return void 0===re&&(re=this.head),function(){var oe=re;return null!=re&&(re=re.next),oe}},te.prototype.find=function(re,oe){void 0===oe&&(oe=!1);for(var ye=this.iterator(),Pe=ye();Pe;){var Ne=Pe.length();if(re<Ne||oe&&re===Ne&&(null==Pe.next||0!==Pe.next.length()))return[Pe,re];re-=Ne,Pe=ye()}return[null,0]},te.prototype.forEach=function(re){for(var oe=this.iterator(),ye=oe();ye;)re(ye),ye=oe()},te.prototype.forEachAt=function(re,oe,ye){if(!(oe<=0))for(var Pe=this.find(re),tt=re-Pe[1],Be=this.iterator(Pe[0]),mt=Be();mt&&tt<re+oe;){var nn=mt.length();re>tt?ye(mt,re-tt,Math.min(oe,tt+nn-re)):ye(mt,0,Math.min(nn,re+oe-tt)),tt+=nn,mt=Be()}},te.prototype.map=function(re){return this.reduce(function(oe,ye){return oe.push(re(ye)),oe},[])},te.prototype.reduce=function(re,oe){for(var ye=this.iterator(),Pe=ye();Pe;)oe=re(oe,Pe),Pe=ye();return oe},te}(),f=C,a=(te=function(oe,ye){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ne){Pe.__proto__=Ne}||function(Pe,Ne){for(var ft in Ne)Ne.hasOwnProperty(ft)&&(Pe[ft]=Ne[ft])})(oe,ye)},function(re,oe){function ye(){this.constructor=re}te(re,oe),re.prototype=null===oe?Object.create(oe):(ye.prototype=oe.prototype,new ye)}),p=function(te){function re(oe){var ye=this;return(ye=te.call(this,oe="[Parchment] "+oe)||this).message=oe,ye.name=ye.constructor.name,ye}return a(re,te),re}(Error),s=p,u=function(){function te(){this.attributes={},this.classes={},this.tags={},this.types={}}return te.find=function(re,oe){return void 0===oe&&(oe=!1),null==re?null:this.blots.has(re)?this.blots.get(re)||null:oe?this.find(re.parentNode,oe):null},te.prototype.create=function(re,oe,ye){var Pe=this.query(oe);if(null==Pe)throw new s("Unable to create "+oe+" blot");var Ne=Pe,ft=oe instanceof Node||oe.nodeType===Node.TEXT_NODE?oe:Ne.create(ye),tt=new Ne(re,ft,ye);return te.blots.set(tt.domNode,tt),tt},te.prototype.find=function(re,oe){return void 0===oe&&(oe=!1),te.find(re,oe)},te.prototype.query=function(re,oe){var Pe,ye=this;return void 0===oe&&(oe=I.ANY),"string"==typeof re?Pe=this.types[re]||this.attributes[re]:re instanceof Text||re.nodeType===Node.TEXT_NODE?Pe=this.types.text:"number"==typeof re?re&I.LEVEL&I.BLOCK?Pe=this.types.block:re&I.LEVEL&I.INLINE&&(Pe=this.types.inline):re instanceof HTMLElement&&((re.getAttribute("class")||"").split(/\s+/).some(function(ft){return!!(Pe=ye.classes[ft])}),Pe=Pe||this.tags[re.tagName]),null==Pe?null:oe&I.LEVEL&Pe.scope&&oe&I.TYPE&Pe.scope?Pe:null},te.prototype.register=function(){for(var re=this,oe=[],ye=0;ye<arguments.length;ye++)oe[ye]=arguments[ye];if(oe.length>1)return oe.map(function(ft){return re.register(ft)});var Pe=oe[0];if("string"!=typeof Pe.blotName&&"string"!=typeof Pe.attrName)throw new s("Invalid definition");if("abstract"===Pe.blotName)throw new s("Cannot register abstract class");return this.types[Pe.blotName||Pe.attrName]=Pe,"string"==typeof Pe.keyName?this.attributes[Pe.keyName]=Pe:(null!=Pe.className&&(this.classes[Pe.className]=Pe),null!=Pe.tagName&&(Pe.tagName=Array.isArray(Pe.tagName)?Pe.tagName.map(function(ft){return ft.toUpperCase()}):Pe.tagName.toUpperCase(),(Array.isArray(Pe.tagName)?Pe.tagName:[Pe.tagName]).forEach(function(ft){(null==re.tags[ft]||null==Pe.className)&&(re.tags[ft]=Pe)}))),Pe},te.blots=new WeakMap,te}(),d=u,h=function(){function te(re,oe){this.scroll=re,this.domNode=oe,d.blots.set(oe,this),this.prev=null,this.next=null}return te.create=function(re){if(null==this.tagName)throw new s("Blot definition missing tagName");var oe;return Array.isArray(this.tagName)?("string"==typeof re&&(re=re.toUpperCase(),parseInt(re,10).toString()===re&&(re=parseInt(re,10))),oe="number"==typeof re?document.createElement(this.tagName[re-1]):this.tagName.indexOf(re)>-1?document.createElement(re):document.createElement(this.tagName[0])):oe=document.createElement(this.tagName),this.className&&oe.classList.add(this.className),oe},Object.defineProperty(te.prototype,"statics",{get:function(){return this.constructor},enumerable:!1,configurable:!0}),te.prototype.attach=function(){},te.prototype.clone=function(){var re=this.domNode.cloneNode(!1);return this.scroll.create(re)},te.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),d.blots.delete(this.domNode)},te.prototype.deleteAt=function(re,oe){this.isolate(re,oe).remove()},te.prototype.formatAt=function(re,oe,ye,Pe){var Ne=this.isolate(re,oe);if(null!=this.scroll.query(ye,I.BLOT)&&Pe)Ne.wrap(ye,Pe);else if(null!=this.scroll.query(ye,I.ATTRIBUTE)){var ft=this.scroll.create(this.statics.scope);Ne.wrap(ft),ft.format(ye,Pe)}},te.prototype.insertAt=function(re,oe,ye){var Pe=null==ye?this.scroll.create("text",oe):this.scroll.create(oe,ye),Ne=this.split(re);this.parent.insertBefore(Pe,Ne||void 0)},te.prototype.isolate=function(re,oe){var ye=this.split(re);if(null==ye)throw new Error("Attempt to isolate at end");return ye.split(oe),ye},te.prototype.length=function(){return 1},te.prototype.offset=function(re){return void 0===re&&(re=this.parent),null==this.parent||this===re?0:this.parent.children.offset(this)+this.parent.offset(re)},te.prototype.optimize=function(re){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)},te.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},te.prototype.replaceWith=function(re,oe){var ye="string"==typeof re?this.scroll.create(re,oe):re;return null!=this.parent&&(this.parent.insertBefore(ye,this.next||void 0),this.remove()),ye},te.prototype.split=function(re,oe){return 0===re?this:this.next},te.prototype.update=function(re,oe){},te.prototype.wrap=function(re,oe){var ye="string"==typeof re?this.scroll.create(re,oe):re;if(null!=this.parent&&this.parent.insertBefore(ye,this.next||void 0),"function"!=typeof ye.appendChild)throw new s("Cannot wrap "+re);return ye.appendChild(this),ye},te.blotName="abstract",te}(),g=h,x=function(){var te=function(oe,ye){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ne){Pe.__proto__=Ne}||function(Pe,Ne){for(var ft in Ne)Ne.hasOwnProperty(ft)&&(Pe[ft]=Ne[ft])})(oe,ye)};return function(re,oe){function ye(){this.constructor=re}te(re,oe),re.prototype=null===oe?Object.create(oe):(ye.prototype=oe.prototype,new ye)}}();function b(te,re){var oe=re.find(te);if(null==oe)try{oe=re.create(te)}catch{oe=re.create(I.INLINE),Array.from(te.childNodes).forEach(function(Pe){oe.domNode.appendChild(Pe)}),te.parentNode&&te.parentNode.replaceChild(oe.domNode,te),oe.attach()}return oe}var y=function(te){function re(oe,ye){var Pe=te.call(this,oe,ye)||this;return Pe.uiNode=null,Pe.build(),Pe}return x(re,te),re.prototype.appendChild=function(oe){this.insertBefore(oe)},re.prototype.attach=function(){te.prototype.attach.call(this),this.children.forEach(function(oe){oe.attach()})},re.prototype.attachUI=function(oe){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=oe,re.uiClass&&this.uiNode.classList.add(re.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)},re.prototype.build=function(){var oe=this;this.children=new f,Array.from(this.domNode.childNodes).filter(function(ye){return ye!==oe.uiNode}).reverse().forEach(function(ye){try{var Pe=b(ye,oe.scroll);oe.insertBefore(Pe,oe.children.head||void 0)}catch(Ne){if(Ne instanceof s)return;throw Ne}})},re.prototype.deleteAt=function(oe,ye){if(0===oe&&ye===this.length())return this.remove();this.children.forEachAt(oe,ye,function(Pe,Ne,ft){Pe.deleteAt(Ne,ft)})},re.prototype.descendant=function(oe,ye){void 0===ye&&(ye=0);var Pe=this.children.find(ye),Ne=Pe[0],ft=Pe[1];return null==oe.blotName&&oe(Ne)||null!=oe.blotName&&Ne instanceof oe?[Ne,ft]:Ne instanceof re?Ne.descendant(oe,ft):[null,-1]},re.prototype.descendants=function(oe,ye,Pe){void 0===ye&&(ye=0),void 0===Pe&&(Pe=Number.MAX_VALUE);var Ne=[],ft=Pe;return this.children.forEachAt(ye,Pe,function(tt,Be,mt){(null==oe.blotName&&oe(tt)||null!=oe.blotName&&tt instanceof oe)&&Ne.push(tt),tt instanceof re&&(Ne=Ne.concat(tt.descendants(oe,Be,ft))),ft-=mt}),Ne},re.prototype.detach=function(){this.children.forEach(function(oe){oe.detach()}),te.prototype.detach.call(this)},re.prototype.enforceAllowedChildren=function(){var oe=this,ye=!1;this.children.forEach(function(Pe){ye||oe.statics.allowedChildren.some(function(ft){return Pe instanceof ft})||(Pe.statics.scope===I.BLOCK_BLOT?(null!=Pe.next&&oe.splitAfter(Pe),null!=Pe.prev&&oe.splitAfter(Pe.prev),Pe.parent.unwrap(),ye=!0):Pe instanceof re?Pe.unwrap():Pe.remove())})},re.prototype.formatAt=function(oe,ye,Pe,Ne){this.children.forEachAt(oe,ye,function(ft,tt,Be){ft.formatAt(tt,Be,Pe,Ne)})},re.prototype.insertAt=function(oe,ye,Pe){var Ne=this.children.find(oe),ft=Ne[0];if(ft)ft.insertAt(Ne[1],ye,Pe);else{var Be=null==Pe?this.scroll.create("text",ye):this.scroll.create(ye,Pe);this.appendChild(Be)}},re.prototype.insertBefore=function(oe,ye){null!=oe.parent&&oe.parent.children.remove(oe);var Pe=null;this.children.insertBefore(oe,ye||null),oe.parent=this,null!=ye&&(Pe=ye.domNode),(this.domNode.parentNode!==oe.domNode||this.domNode.nextSibling!==Pe)&&this.domNode.insertBefore(oe.domNode,Pe),oe.attach()},re.prototype.length=function(){return this.children.reduce(function(oe,ye){return oe+ye.length()},0)},re.prototype.moveChildren=function(oe,ye){this.children.forEach(function(Pe){oe.insertBefore(Pe,ye)})},re.prototype.optimize=function(oe){if(te.prototype.optimize.call(this,oe),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 ye=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(ye)}else this.remove()},re.prototype.path=function(oe,ye){void 0===ye&&(ye=!1);var Pe=this.children.find(oe,ye),Ne=Pe[0],ft=Pe[1],tt=[[this,oe]];return Ne instanceof re?tt.concat(Ne.path(ft,ye)):(null!=Ne&&tt.push([Ne,ft]),tt)},re.prototype.removeChild=function(oe){this.children.remove(oe)},re.prototype.replaceWith=function(oe,ye){var Pe="string"==typeof oe?this.scroll.create(oe,ye):oe;return Pe instanceof re&&this.moveChildren(Pe),te.prototype.replaceWith.call(this,Pe)},re.prototype.split=function(oe,ye){if(void 0===ye&&(ye=!1),!ye){if(0===oe)return this;if(oe===this.length())return this.next}var Pe=this.clone();return this.parent&&this.parent.insertBefore(Pe,this.next||void 0),this.children.forEachAt(oe,this.length(),function(Ne,ft,tt){var Be=Ne.split(ft,ye);null!=Be&&Pe.appendChild(Be)}),Pe},re.prototype.splitAfter=function(oe){for(var ye=this.clone();null!=oe.next;)ye.appendChild(oe.next);return this.parent&&this.parent.insertBefore(ye,this.next||void 0),ye},re.prototype.unwrap=function(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()},re.prototype.update=function(oe,ye){var Pe=this,Ne=[],ft=[];oe.forEach(function(tt){tt.target===Pe.domNode&&"childList"===tt.type&&(Ne.push.apply(Ne,tt.addedNodes),ft.push.apply(ft,tt.removedNodes))}),ft.forEach(function(tt){if(!(null!=tt.parentNode&&"IFRAME"!==tt.tagName&&document.body.compareDocumentPosition(tt)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var Be=Pe.scroll.find(tt);null!=Be&&(null==Be.domNode.parentNode||Be.domNode.parentNode===Pe.domNode)&&Be.detach()}}),Ne.filter(function(tt){return tt.parentNode===Pe.domNode||tt===Pe.uiNode}).sort(function(tt,Be){return tt===Be?0:tt.compareDocumentPosition(Be)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(tt){var Be=null;null!=tt.nextSibling&&(Be=Pe.scroll.find(tt.nextSibling));var mt=b(tt,Pe.scroll);(mt.next!==Be||null==mt.next)&&(null!=mt.parent&&mt.parent.removeChild(Pe),Pe.insertBefore(mt,Be||void 0))}),this.enforceAllowedChildren()},re.uiClass="",re}(g),E=y,S=function(){var te=function(oe,ye){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ne){Pe.__proto__=Ne}||function(Pe,Ne){for(var ft in Ne)Ne.hasOwnProperty(ft)&&(Pe[ft]=Ne[ft])})(oe,ye)};return function(re,oe){function ye(){this.constructor=re}te(re,oe),re.prototype=null===oe?Object.create(oe):(ye.prototype=oe.prototype,new ye)}}(),O=function(te){function re(){return null!==te&&te.apply(this,arguments)||this}return S(re,te),re.prototype.checkMerge=function(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName},re.prototype.deleteAt=function(oe,ye){te.prototype.deleteAt.call(this,oe,ye),this.enforceAllowedChildren()},re.prototype.formatAt=function(oe,ye,Pe,Ne){te.prototype.formatAt.call(this,oe,ye,Pe,Ne),this.enforceAllowedChildren()},re.prototype.insertAt=function(oe,ye,Pe){te.prototype.insertAt.call(this,oe,ye,Pe),this.enforceAllowedChildren()},re.prototype.optimize=function(oe){te.prototype.optimize.call(this,oe),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())},re.blotName="container",re.scope=I.BLOCK_BLOT,re}(E),w=O,T=function(){var te=function(oe,ye){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ne){Pe.__proto__=Ne}||function(Pe,Ne){for(var ft in Ne)Ne.hasOwnProperty(ft)&&(Pe[ft]=Ne[ft])})(oe,ye)};return function(re,oe){function ye(){this.constructor=re}te(re,oe),re.prototype=null===oe?Object.create(oe):(ye.prototype=oe.prototype,new ye)}}(),k=function(te){function re(){return null!==te&&te.apply(this,arguments)||this}return T(re,te),re.value=function(oe){return!0},re.prototype.index=function(oe,ye){return this.domNode===oe||this.domNode.compareDocumentPosition(oe)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(ye,1):-1},re.prototype.position=function(oe,ye){var Ne=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return oe>0&&(Ne+=1),[this.parent.domNode,Ne]},re.prototype.value=function(){var oe;return(oe={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,oe},re.scope=I.INLINE_BLOT,re}(g),R=k,P=function(){function te(re,oe,ye){void 0===ye&&(ye={}),this.attrName=re,this.keyName=oe,this.scope=null!=ye.scope?ye.scope&I.LEVEL|I.TYPE&I.ATTRIBUTE:I.ATTRIBUTE,null!=ye.whitelist&&(this.whitelist=ye.whitelist)}return te.keys=function(re){return Array.from(re.attributes).map(function(oe){return oe.name})},te.prototype.add=function(re,oe){return!!this.canAdd(re,oe)&&(re.setAttribute(this.keyName,oe),!0)},te.prototype.canAdd=function(re,oe){return null==this.whitelist||("string"==typeof oe?this.whitelist.indexOf(oe.replace(/["']/g,""))>-1:this.whitelist.indexOf(oe)>-1)},te.prototype.remove=function(re){re.removeAttribute(this.keyName)},te.prototype.value=function(re){var oe=re.getAttribute(this.keyName);return this.canAdd(re,oe)&&oe?oe:""},te}(),B=P,W=function(){var te=function(oe,ye){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ne){Pe.__proto__=Ne}||function(Pe,Ne){for(var ft in Ne)Ne.hasOwnProperty(ft)&&(Pe[ft]=Ne[ft])})(oe,ye)};return function(re,oe){function ye(){this.constructor=re}te(re,oe),re.prototype=null===oe?Object.create(oe):(ye.prototype=oe.prototype,new ye)}}();function N(te,re){return(te.getAttribute("class")||"").split(/\s+/).filter(function(ye){return 0===ye.indexOf(re+"-")})}var V=function(te){function re(){return null!==te&&te.apply(this,arguments)||this}return W(re,te),re.keys=function(oe){return(oe.getAttribute("class")||"").split(/\s+/).map(function(ye){return ye.split("-").slice(0,-1).join("-")})},re.prototype.add=function(oe,ye){return!!this.canAdd(oe,ye)&&(this.remove(oe),oe.classList.add(this.keyName+"-"+ye),!0)},re.prototype.remove=function(oe){N(oe,this.keyName).forEach(function(Pe){oe.classList.remove(Pe)}),0===oe.classList.length&&oe.removeAttribute("class")},re.prototype.value=function(oe){var Pe=(N(oe,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(oe,Pe)?Pe:""},re}(B),U=V,K=function(){var te=function(oe,ye){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ne){Pe.__proto__=Ne}||function(Pe,Ne){for(var ft in Ne)Ne.hasOwnProperty(ft)&&(Pe[ft]=Ne[ft])})(oe,ye)};return function(re,oe){function ye(){this.constructor=re}te(re,oe),re.prototype=null===oe?Object.create(oe):(ye.prototype=oe.prototype,new ye)}}();function Y(te){var re=te.split("-"),oe=re.slice(1).map(function(ye){return ye[0].toUpperCase()+ye.slice(1)}).join("");return re[0]+oe}var J=function(te){function re(){return null!==te&&te.apply(this,arguments)||this}return K(re,te),re.keys=function(oe){return(oe.getAttribute("style")||"").split(";").map(function(ye){return ye.split(":")[0].trim()})},re.prototype.add=function(oe,ye){return!!this.canAdd(oe,ye)&&(oe.style[Y(this.keyName)]=ye,!0)},re.prototype.remove=function(oe){oe.style[Y(this.keyName)]="",oe.getAttribute("style")||oe.removeAttribute("style")},re.prototype.value=function(oe){var ye=oe.style[Y(this.keyName)];return this.canAdd(oe,ye)?ye:""},re}(B),j=J,ee=function(){function te(re){this.attributes={},this.domNode=re,this.build()}return te.prototype.attribute=function(re,oe){oe?re.add(this.domNode,oe)&&(null!=re.value(this.domNode)?this.attributes[re.attrName]=re:delete this.attributes[re.attrName]):(re.remove(this.domNode),delete this.attributes[re.attrName])},te.prototype.build=function(){var re=this;this.attributes={};var oe=d.find(this.domNode);if(null!=oe){var ye=B.keys(this.domNode),Pe=U.keys(this.domNode),Ne=j.keys(this.domNode);ye.concat(Pe).concat(Ne).forEach(function(ft){var tt=oe.scroll.query(ft,I.ATTRIBUTE);tt instanceof B&&(re.attributes[tt.attrName]=tt)})}},te.prototype.copy=function(re){var oe=this;Object.keys(this.attributes).forEach(function(ye){var Pe=oe.attributes[ye].value(oe.domNode);re.format(ye,Pe)})},te.prototype.move=function(re){var oe=this;this.copy(re),Object.keys(this.attributes).forEach(function(ye){oe.attributes[ye].remove(oe.domNode)}),this.attributes={}},te.prototype.values=function(){var re=this;return Object.keys(this.attributes).reduce(function(oe,ye){return oe[ye]=re.attributes[ye].value(re.domNode),oe},{})},te}(),G=ee,q=function(){var te=function(oe,ye){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ne){Pe.__proto__=Ne}||function(Pe,Ne){for(var ft in Ne)Ne.hasOwnProperty(ft)&&(Pe[ft]=Ne[ft])})(oe,ye)};return function(re,oe){function ye(){this.constructor=re}te(re,oe),re.prototype=null===oe?Object.create(oe):(ye.prototype=oe.prototype,new ye)}}();var X=function(te){function re(oe,ye){var Pe=te.call(this,oe,ye)||this;return Pe.attributes=new G(Pe.domNode),Pe}return q(re,te),re.formats=function(oe,ye){var Pe=ye.query(re.blotName);if(null==Pe||oe.tagName!==Pe.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return oe.tagName.toLowerCase()}},re.prototype.format=function(oe,ye){var Pe=this;if(oe!==this.statics.blotName||ye){var Ne=this.scroll.query(oe,I.INLINE);if(null==Ne)return;Ne instanceof B?this.attributes.attribute(Ne,ye):ye&&(oe!==this.statics.blotName||this.formats()[oe]!==ye)&&this.replaceWith(oe,ye)}else this.children.forEach(function(ft){ft instanceof re||(ft=ft.wrap(re.blotName,!0)),Pe.attributes.copy(ft)}),this.unwrap()},re.prototype.formats=function(){var oe=this.attributes.values(),ye=this.statics.formats(this.domNode,this.scroll);return null!=ye&&(oe[this.statics.blotName]=ye),oe},re.prototype.formatAt=function(oe,ye,Pe,Ne){null!=this.formats()[Pe]||this.scroll.query(Pe,I.ATTRIBUTE)?this.isolate(oe,ye).format(Pe,Ne):te.prototype.formatAt.call(this,oe,ye,Pe,Ne)},re.prototype.optimize=function(oe){te.prototype.optimize.call(this,oe);var ye=this.formats();if(0===Object.keys(ye).length)return this.unwrap();var Pe=this.next;Pe instanceof re&&Pe.prev===this&&function Z(te,re){if(Object.keys(te).length!==Object.keys(re).length)return!1;for(var oe in te)if(te[oe]!==re[oe])return!1;return!0}(ye,Pe.formats())&&(Pe.moveChildren(this),Pe.remove())},re.prototype.replaceWith=function(oe,ye){var Pe=te.prototype.replaceWith.call(this,oe,ye);return this.attributes.copy(Pe),Pe},re.prototype.update=function(oe,ye){var Pe=this;te.prototype.update.call(this,oe,ye),oe.some(function(ft){return ft.target===Pe.domNode&&"attributes"===ft.type})&&this.attributes.build()},re.prototype.wrap=function(oe,ye){var Pe=te.prototype.wrap.call(this,oe,ye);return Pe instanceof re&&this.attributes.move(Pe),Pe},re.allowedChildren=[re,R],re.blotName="inline",re.scope=I.INLINE_BLOT,re.tagName="SPAN",re}(E),M=X,se=function(){var te=function(oe,ye){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ne){Pe.__proto__=Ne}||function(Pe,Ne){for(var ft in Ne)Ne.hasOwnProperty(ft)&&(Pe[ft]=Ne[ft])})(oe,ye)};return function(re,oe){function ye(){this.constructor=re}te(re,oe),re.prototype=null===oe?Object.create(oe):(ye.prototype=oe.prototype,new ye)}}(),ge=function(te){function re(oe,ye){var Pe=te.call(this,oe,ye)||this;return Pe.attributes=new G(Pe.domNode),Pe}return se(re,te),re.formats=function(oe,ye){var Pe=ye.query(re.blotName);if(null==Pe||oe.tagName!==Pe.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return oe.tagName.toLowerCase()}},re.prototype.format=function(oe,ye){var Pe=this.scroll.query(oe,I.BLOCK);null!=Pe&&(Pe instanceof B?this.attributes.attribute(Pe,ye):oe!==this.statics.blotName||ye?ye&&(oe!==this.statics.blotName||this.formats()[oe]!==ye)&&this.replaceWith(oe,ye):this.replaceWith(re.blotName))},re.prototype.formats=function(){var oe=this.attributes.values(),ye=this.statics.formats(this.domNode,this.scroll);return null!=ye&&(oe[this.statics.blotName]=ye),oe},re.prototype.formatAt=function(oe,ye,Pe,Ne){null!=this.scroll.query(Pe,I.BLOCK)?this.format(Pe,Ne):te.prototype.formatAt.call(this,oe,ye,Pe,Ne)},re.prototype.insertAt=function(oe,ye,Pe){if(null==Pe||null!=this.scroll.query(ye,I.INLINE))te.prototype.insertAt.call(this,oe,ye,Pe);else{var Ne=this.split(oe);if(null==Ne)throw new Error("Attempt to insertAt after block boundaries");var ft=this.scroll.create(ye,Pe);Ne.parent.insertBefore(ft,Ne)}},re.prototype.replaceWith=function(oe,ye){var Pe=te.prototype.replaceWith.call(this,oe,ye);return this.attributes.copy(Pe),Pe},re.prototype.update=function(oe,ye){var Pe=this;te.prototype.update.call(this,oe,ye),oe.some(function(ft){return ft.target===Pe.domNode&&"attributes"===ft.type})&&this.attributes.build()},re.blotName="block",re.scope=I.BLOCK_BLOT,re.tagName="P",re.allowedChildren=[M,re,R],re}(E),De=ge,Fe=function(){var te=function(oe,ye){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ne){Pe.__proto__=Ne}||function(Pe,Ne){for(var ft in Ne)Ne.hasOwnProperty(ft)&&(Pe[ft]=Ne[ft])})(oe,ye)};return function(re,oe){function ye(){this.constructor=re}te(re,oe),re.prototype=null===oe?Object.create(oe):(ye.prototype=oe.prototype,new ye)}}(),Ae=function(te){function re(){return null!==te&&te.apply(this,arguments)||this}return Fe(re,te),re.formats=function(oe,ye){},re.prototype.format=function(oe,ye){te.prototype.formatAt.call(this,0,this.length(),oe,ye)},re.prototype.formatAt=function(oe,ye,Pe,Ne){0===oe&&ye===this.length()?this.format(Pe,Ne):te.prototype.formatAt.call(this,oe,ye,Pe,Ne)},re.prototype.formats=function(){return this.statics.formats(this.domNode,this.scroll)},re}(R),ne=Ae,fe=function(){var te=function(oe,ye){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ne){Pe.__proto__=Ne}||function(Pe,Ne){for(var ft in Ne)Ne.hasOwnProperty(ft)&&(Pe[ft]=Ne[ft])})(oe,ye)};return function(re,oe){function ye(){this.constructor=re}te(re,oe),re.prototype=null===oe?Object.create(oe):(ye.prototype=oe.prototype,new ye)}}(),_e={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},de=function(te){function re(oe,ye){var Pe=te.call(this,null,ye)||this;return Pe.registry=oe,Pe.scroll=Pe,Pe.build(),Pe.observer=new MutationObserver(function(Ne){Pe.update(Ne)}),Pe.observer.observe(Pe.domNode,_e),Pe.attach(),Pe}return fe(re,te),re.prototype.create=function(oe,ye){return this.registry.create(this,oe,ye)},re.prototype.find=function(oe,ye){return void 0===ye&&(ye=!1),this.registry.find(oe,ye)},re.prototype.query=function(oe,ye){return void 0===ye&&(ye=I.ANY),this.registry.query(oe,ye)},re.prototype.register=function(){for(var oe,ye=[],Pe=0;Pe<arguments.length;Pe++)ye[Pe]=arguments[Pe];return(oe=this.registry).register.apply(oe,ye)},re.prototype.build=function(){null!=this.scroll&&te.prototype.build.call(this)},re.prototype.detach=function(){te.prototype.detach.call(this),this.observer.disconnect()},re.prototype.deleteAt=function(oe,ye){this.update(),0===oe&&ye===this.length()?this.children.forEach(function(Pe){Pe.remove()}):te.prototype.deleteAt.call(this,oe,ye)},re.prototype.formatAt=function(oe,ye,Pe,Ne){this.update(),te.prototype.formatAt.call(this,oe,ye,Pe,Ne)},re.prototype.insertAt=function(oe,ye,Pe){this.update(),te.prototype.insertAt.call(this,oe,ye,Pe)},re.prototype.optimize=function(oe,ye){var Pe=this;void 0===oe&&(oe=[]),void 0===ye&&(ye={}),te.prototype.optimize.call(this,ye);for(var Ne=ye.mutationsMap||new WeakMap,ft=Array.from(this.observer.takeRecords());ft.length>0;)oe.push(ft.pop());for(var tt=function ke($e,me){void 0===me&&(me=!0),null!=$e&&$e!==Pe&&null!=$e.domNode.parentNode&&(Ne.has($e.domNode)||Ne.set($e.domNode,[]),me&&ke($e.parent))},Be=function ke($e){Ne.has($e.domNode)&&($e instanceof E&&$e.children.forEach(ke),Ne.delete($e.domNode),$e.optimize(ye))},mt=oe,nn=0;mt.length>0;nn+=1){if(nn>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(mt.forEach(function(ke){var $e=Pe.find(ke.target,!0);null!=$e&&($e.domNode===ke.target&&("childList"===ke.type?(tt(Pe.find(ke.previousSibling,!1)),Array.from(ke.addedNodes).forEach(function(me){var xe=Pe.find(me,!1);tt(xe,!1),xe instanceof E&&xe.children.forEach(function(Te){tt(Te,!1)})})):"attributes"===ke.type&&tt($e.prev)),tt($e))}),this.children.forEach(Be),ft=(mt=Array.from(this.observer.takeRecords())).slice();ft.length>0;)oe.push(ft.pop())}},re.prototype.update=function(oe,ye){var Pe=this;void 0===ye&&(ye={}),oe=oe||this.observer.takeRecords();var Ne=new WeakMap;oe.map(function(ft){var tt=d.find(ft.target,!0);return null==tt?null:Ne.has(tt.domNode)?(Ne.get(tt.domNode).push(ft),null):(Ne.set(tt.domNode,[ft]),tt)}).forEach(function(ft){null!=ft&&ft!==Pe&&Ne.has(ft.domNode)&&ft.update(Ne.get(ft.domNode)||[],ye)}),ye.mutationsMap=Ne,Ne.has(this.domNode)&&te.prototype.update.call(this,Ne.get(this.domNode),ye),this.optimize(oe,ye)},re.blotName="scroll",re.defaultChild=De,re.allowedChildren=[De,w],re.scope=I.BLOCK_BLOT,re.tagName="DIV",re}(E),le=de,pe=function(){var te=function(oe,ye){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ne){Pe.__proto__=Ne}||function(Pe,Ne){for(var ft in Ne)Ne.hasOwnProperty(ft)&&(Pe[ft]=Ne[ft])})(oe,ye)};return function(re,oe){function ye(){this.constructor=re}te(re,oe),re.prototype=null===oe?Object.create(oe):(ye.prototype=oe.prototype,new ye)}}(),Ee=function(te){function re(oe,ye){var Pe=te.call(this,oe,ye)||this;return Pe.text=Pe.statics.value(Pe.domNode),Pe}return pe(re,te),re.create=function(oe){return document.createTextNode(oe)},re.value=function(oe){return oe.data},re.prototype.deleteAt=function(oe,ye){this.domNode.data=this.text=this.text.slice(0,oe)+this.text.slice(oe+ye)},re.prototype.index=function(oe,ye){return this.domNode===oe?ye:-1},re.prototype.insertAt=function(oe,ye,Pe){null==Pe?(this.text=this.text.slice(0,oe)+ye+this.text.slice(oe),this.domNode.data=this.text):te.prototype.insertAt.call(this,oe,ye,Pe)},re.prototype.length=function(){return this.text.length},re.prototype.optimize=function(oe){te.prototype.optimize.call(this,oe),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof re&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},re.prototype.position=function(oe,ye){return void 0===ye&&(ye=!1),[this.domNode,oe]},re.prototype.split=function(oe,ye){if(void 0===ye&&(ye=!1),!ye){if(0===oe)return this;if(oe===this.length())return this.next}var Pe=this.scroll.create(this.domNode.splitText(oe));return this.parent.insertBefore(Pe,this.next||void 0),this.text=this.statics.value(this.domNode),Pe},re.prototype.update=function(oe,ye){var Pe=this;oe.some(function(Ne){return"characterData"===Ne.type&&Ne.target===Pe.domNode})&&(this.text=this.statics.value(this.domNode))},re.prototype.value=function(){return this.text},re.blotName="text",re.scope=I.INLINE_BLOT,re}(R),ae=Ee},function(he,l,o){"use strict";var c=o(95),I=o.n(c),C=o(15),f=o(44),a=o(23);function p(P){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})(P)}function u(P,B){for(var W=0;W<B.length;W++){var N=B[W];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(P,N.key,N)}}function h(P,B,W){return(h=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(V,U,K){var Y=function g(P,B){for(;!Object.prototype.hasOwnProperty.call(P,B)&&null!==(P=w(P)););return P}(V,U);if(Y){var J=Object.getOwnPropertyDescriptor(Y,U);return J.get?J.get.call(K):J.value}})(P,B,W||P)}function x(P,B){if("function"!=typeof B&&null!==B)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(B&&B.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),B&&b(P,B)}function b(P,B){return(b=Object.setPrototypeOf||function(N,V){return N.__proto__=V,N})(P,B)}function y(P){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 V,N=w(P);if(B){var U=w(this).constructor;V=Reflect.construct(N,arguments,U)}else V=N.apply(this,arguments);return E(this,V)}}function E(P,B){if(B&&("object"===p(B)||"function"==typeof B))return B;if(void 0!==B)throw new TypeError("Derived constructors may only return object or undefined");return function S(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(P)}function w(P){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)})(P)}var T=Object(a.a)("quill:events");Object(C.a)()&&["selectionchange","mousedown","mouseup","click"].forEach(function(P){document.addEventListener(P,function(){for(var B=arguments.length,W=new Array(B),N=0;N<B;N++)W[N]=arguments[N];Array.from(document.querySelectorAll(".ql-container")).forEach(function(V){var K,U=f.a.get(V);U&&U.emitter&&(K=U.emitter).handleDOM.apply(K,W)})})});var R=function(P){x(W,P);var B=y(W);function W(){var N;return function s(P,B){if(!(P instanceof B))throw new TypeError("Cannot call a class as a function")}(this,W),(N=B.call(this)).listeners={},N.on("error",T.error),N}return function d(P,B,W){return B&&u(P.prototype,B),W&&u(P,W),P}(W,[{key:"emit",value:function(){for(var V,U,K=arguments.length,Y=new Array(K),J=0;J<K;J++)Y[J]=arguments[J];(V=T.log).call.apply(V,[T].concat(Y)),(U=h(w(W.prototype),"emit",this)).call.apply(U,[this].concat(Y))}},{key:"handleDOM",value:function(V){for(var U=arguments.length,K=new Array(U>1?U-1:0),Y=1;Y<U;Y++)K[Y-1]=arguments[Y];(this.listeners[V.type]||[]).forEach(function(J){var j=J.node,ee=J.handler;(V.target===j||j.contains(V.target))&&ee.apply(void 0,[V].concat(K))})}},{key:"listenDOM",value:function(V,U,K){this.listeners[V]||(this.listeners[V]=[]),this.listeners[V].push({node:U,handler:K})}}]),W}(I.a);R.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"},R.sources={API:"api",SILENT:"silent",USER:"user"},l.a=R},function(he,l,o){"use strict";var c=o(16),I=o.n(c),C=o(30),f=o.n(C),a=o(37),p=o.n(a),s=o(1),u=o.n(s),d=o(2),h=o(7),g=o(24),x=o(6),b=o(10),y=o(9);function S(_e){return U(_e)||function O(_e){if(typeof Symbol<"u"&&null!=_e[Symbol.iterator]||null!=_e["@@iterator"])return Array.from(_e)}(_e)||W(_e)||B()}function w(_e,ie){var de=Object.keys(_e);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(_e);ie&&(le=le.filter(function(pe){return Object.getOwnPropertyDescriptor(_e,pe).enumerable})),de.push.apply(de,le)}return de}function T(_e){for(var ie=1;ie<arguments.length;ie++){var de=null!=arguments[ie]?arguments[ie]:{};ie%2?w(Object(de),!0).forEach(function(le){k(_e,le,de[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_e,Object.getOwnPropertyDescriptors(de)):w(Object(de)).forEach(function(le){Object.defineProperty(_e,le,Object.getOwnPropertyDescriptor(de,le))})}return _e}function k(_e,ie,de){return ie in _e?Object.defineProperty(_e,ie,{value:de,enumerable:!0,configurable:!0,writable:!0}):_e[ie]=de,_e}function R(_e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(de){return typeof de}:function(de){return de&&"function"==typeof Symbol&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de})(_e)}function P(_e,ie){return U(_e)||function V(_e,ie){var de=null==_e?null:typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(null!=de){var ae,te,le=[],pe=!0,Ee=!1;try{for(de=de.call(_e);!(pe=(ae=de.next()).done)&&(le.push(ae.value),!ie||le.length!==ie);pe=!0);}catch(re){Ee=!0,te=re}finally{try{!pe&&null!=de.return&&de.return()}finally{if(Ee)throw te}}return le}}(_e,ie)||W(_e,ie)||B()}function B(){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(_e,ie){if(_e){if("string"==typeof _e)return N(_e,ie);var de=Object.prototype.toString.call(_e).slice(8,-1);if("Object"===de&&_e.constructor&&(de=_e.constructor.name),"Map"===de||"Set"===de)return Array.from(_e);if("Arguments"===de||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(de))return N(_e,ie)}}function N(_e,ie){(null==ie||ie>_e.length)&&(ie=_e.length);for(var de=0,le=new Array(ie);de<ie;de++)le[de]=_e[de];return le}function U(_e){if(Array.isArray(_e))return _e}function Y(_e,ie){for(var de=0;de<ie.length;de++){var le=ie[de];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(_e,le.key,le)}}var j=/^[ -~]*$/,ee=function(){function _e(ie){(function K(_e,ie){if(!(_e instanceof ie))throw new TypeError("Cannot call a class as a function")})(this,_e),this.scroll=ie,this.delta=this.getDelta(),this.immediateFormats=new Set}return function J(_e,ie,de){return ie&&Y(_e.prototype,ie),de&&Y(_e,de),_e}(_e,[{key:"addImmediateFormat",value:function(de){this.immediateFormats.add(de)}},{key:"applyDelta",value:function(de){var le=this;this.scroll.update();var pe=this.scroll.length();this.scroll.batchStart();var Ee=function Ae(_e){return _e.reduce(function(ie,de){if("string"==typeof de.insert){var le=de.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return ie.insert(le,de.attributes)}return ie.push(de)},new u.a)}(de),ae=new u.a;return Ee.reduce(function(te,re){var oe=s.Op.length(re),ye=re.attributes||{},Pe=!1;if(null!=re.insert){if(ae.retain(oe),"string"==typeof re.insert){var Ne=re.insert;Pe=!Ne.endsWith("\n")&&(pe<=te||le.scroll.descendant(x.a,te)[0]),le.scroll.insertAt(te,Ne);var tt=P(le.scroll.line(te),2),Be=tt[0],mt=tt[1],nn=p()({},Object(x.c)(Be));if(Be instanceof x.d){var me=P(Be.descendant(d.LeafBlot,mt),1)[0];nn=p()(nn,Object(x.c)(me))}ye=s.AttributeMap.diff(nn,ye)||{}}else if("object"===R(re.insert)){var xe=Object.keys(re.insert)[0];if(null==xe)return te;Pe=null!=le.scroll.query(xe,d.Scope.INLINE)&&(pe<=te||le.scroll.descendant(x.a,te)[0]),le.scroll.insertAt(te,xe,re.insert[xe])}pe+=oe}else ae.push(re);var Te=Object.keys(ye);le.immediateFormats.forEach(function(St){Te.indexOf(St)>-1&&(le.scroll.formatAt(te,oe,St,ye[St]),delete ye[St])}),Object.keys(ye).forEach(function(St){le.scroll.formatAt(te,oe,St,ye[St])});var Ye=Pe?1:0;return pe+=Ye,ae.delete(Ye),te+oe+Ye},0),ae.reduce(function(te,re){return"number"==typeof re.delete?(le.scroll.deleteAt(te,re.delete),te):te+s.Op.length(re)},0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(Ee)}},{key:"deleteText",value:function(de,le){return this.scroll.deleteAt(de,le),this.update((new u.a).retain(de).delete(le))}},{key:"formatLine",value:function(de,le){var pe=this,Ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(Ee).forEach(function(te){pe.scroll.lines(de,Math.max(le,1)).forEach(function(re){re.format(te,Ee[te])})}),this.scroll.optimize();var ae=(new u.a).retain(de).retain(le,I()(Ee));return this.update(ae)}},{key:"formatText",value:function(de,le){var pe=this,Ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(Ee).forEach(function(te){pe.scroll.formatAt(de,le,te,Ee[te])});var ae=(new u.a).retain(de).retain(le,I()(Ee));return this.update(ae)}},{key:"getContents",value:function(de,le){return this.delta.slice(de,de+le)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(de,le){return de.concat(le.delta())},new u.a)}},{key:"getFormat",value:function(de){var le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,pe=[],Ee=[];0===le?this.scroll.path(de).forEach(function(re){var ye=P(re,1)[0];ye instanceof x.d?pe.push(ye):ye instanceof d.LeafBlot&&Ee.push(ye)}):(pe=this.scroll.lines(de,le),Ee=this.scroll.descendants(d.LeafBlot,de,le));var te=P([pe,Ee].map(function(re){if(0===re.length)return{};for(var oe=Object(x.c)(re.shift());Object.keys(oe).length>0;){var ye=re.shift();if(null==ye)return oe;oe=se(Object(x.c)(ye),oe)}return oe}),2);return Ee=te[1],T(T({},pe=te[0]),Ee)}},{key:"getHTML",value:function(de,le){var Ee=P(this.scroll.line(de),2),ae=Ee[0],te=Ee[1];return ae.length()>=te+le?q(ae,te,le,!0):q(this.scroll,de,le,!0)}},{key:"getText",value:function(de,le){return this.getContents(de,le).filter(function(pe){return"string"==typeof pe.insert}).map(function(pe){return pe.insert}).join("")}},{key:"insertEmbed",value:function(de,le,pe){return this.scroll.insertAt(de,le,pe),this.update((new u.a).retain(de).insert(k({},le,pe)))}},{key:"insertText",value:function(de,le){var pe=this,Ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return le=le.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(de,le),Object.keys(Ee).forEach(function(ae){pe.scroll.formatAt(de,le.length,ae,Ee[ae])}),this.update((new u.a).retain(de).insert(le,I()(Ee)))}},{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 le=this.scroll.children.head;return!(le.statics.blotName!==x.d.blotName||le.children.length>1)&&le.children.head instanceof b.a}},{key:"removeFormat",value:function(de,le){var pe=this.getText(de,le),ae=P(this.scroll.line(de+le),2),te=ae[0],re=ae[1],oe=0,ye=new u.a;null!=te&&(oe=te.length()-re,ye=te.delta().slice(re,re+oe-1).insert("\n"));var Ne=this.getContents(de,le+oe).diff((new u.a).insert(pe).concat(ye)),ft=(new u.a).retain(de).concat(Ne);return this.applyDelta(ft)}},{key:"update",value:function(de){var le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],pe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,Ee=this.delta;if(1===le.length&&"characterData"===le[0].type&&le[0].target.data.match(j)&&this.scroll.find(le[0].target)){var ae=this.scroll.find(le[0].target),te=Object(x.c)(ae),re=ae.offset(this.scroll),oe=le[0].oldValue.replace(g.a.CONTENTS,""),ye=(new u.a).insert(oe),Pe=(new u.a).insert(ae.value()),Ne=pe&&{oldRange:ne(pe.oldRange,-re),newRange:ne(pe.newRange,-re)};de=(new u.a).retain(re).concat(ye.diff(Pe,Ne)).reduce(function(tt,Be){return Be.insert?tt.insert(Be.insert,te):tt.push(Be)},new u.a),this.delta=Ee.compose(de)}else this.delta=this.getDelta(),(!de||!f()(Ee.compose(de),this.delta))&&(de=Ee.diff(this.delta,pe));return de}}]),_e}();function G(_e,ie,de){if(0===_e.length){var Ee=P(ge(de.pop()),1)[0];return ie<=0?"</li></".concat(Ee,">"):"</li></".concat(Ee,">").concat(G([],ie-1,de))}var ae=S(_e),te=ae[0],re=te.child,oe=te.offset,ye=te.length,Pe=te.indent,Ne=te.type,ft=ae.slice(1),Be=P(ge(Ne,re),2),mt=Be[0],nn=Be[1];if(Pe>ie)return de.push(Ne),Pe===ie+1?"<".concat(mt,"><li").concat(nn,">").concat(q(re,oe,ye)).concat(G(ft,Pe,de)):"<".concat(mt,"><li>").concat(G(_e,ie+1,de));if(Pe===ie&&Ne===de[de.length-1])return"</li><li".concat(nn,">").concat(q(re,oe,ye)).concat(G(ft,Pe,de));var me=P(ge(de.pop()),1);return"</li></".concat(me[0],">").concat(G(_e,ie-1,de))}function q(_e,ie,de){var le=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"==typeof _e.html)return _e.html(ie,de);if(_e instanceof y.a)return Object(y.b)(_e.value().slice(ie,ie+de));if(_e.children){if("list-container"===_e.statics.blotName){var pe=[];return _e.children.forEachAt(ie,de,function(ft,tt,Be){var mt=ft.formats();pe.push({child:ft,offset:tt,length:Be,indent:mt.indent||0,type:mt.list})}),G(pe,-1,[])}var Ee=[];if(_e.children.forEachAt(ie,de,function(ft,tt,Be){Ee.push(q(ft,tt,Be))}),Z(_e.children,Ee),le||"list"===_e.statics.blotName)return Ee.join("");var ae=X(_e),ye=P(ae.outerHTML.split(">".concat(ae.innerHTML,"<")),2),Pe=ye[0],Ne=ye[1];return 0===Pe.indexOf("<table")?"".concat(Pe.replace(/(\sdata-.+?=["'].*?["'])/g,""),">").concat(Ee.join("").replace(/(\sdata-table.+?=["'].*?["'])/g,""),"<").concat(Ne):"".concat(Pe,">").concat(Ee.join(""),"<").concat(Ne)}return _e.domNode.outerHTML}function Z(_e,ie){1===_e.length&&_e.head instanceof b.a&&ie.push("<br>")}function X(_e){var ie=_e.domNode.cloneNode(!0);return function M(_e,ie){return["tableCellLine","tableHeaderCellLine","tableCell","tableHeaderCell"].includes(_e.statics.blotName)&&function E(_e,ie){_e.classList.remove(ie),0===_e.classList.length&&_e.removeAttribute("class")}(ie,_e.statics.className),ie}(_e,ie)}function se(_e,ie){return Object.keys(ie).reduce(function(de,le){return null==_e[le]||(ie[le]===_e[le]?de[le]=ie[le]:Array.isArray(ie[le])?ie[le].indexOf(_e[le])<0&&(de[le]=ie[le].concat([_e[le]])):de[le]=[ie[le],_e[le]]),de},{})}function ge(_e,ie){var de="ordered"===_e?"ol":"ul",le=ie?"".concat(function De(_e){var ie=_e.domNode;if(!ie.hasAttributes())return"";for(var de=ie.attributes,le=" ",pe=0;pe<de.length;pe+=1){var Ee=de[pe].name,ae=de[pe].value;"class"===Ee&&(ae=Fe(ae)),ae.length&&-1===Ee.indexOf("data-")&&(le+="".concat(Ee,'="').concat(ae,'"'))}return le.length>1?le:""}(ie)):"";switch(_e){case"checked":return[de,"".concat(le,' data-list="checked"')];case"unchecked":return[de,"".concat(le,' data-list="unchecked"')];default:return[de,le]}}function Fe(_e){return _e.replace(/ql-indent-\d/g,"").trim()}function ne(_e,ie){return new h.a(_e.index+ie,_e.length)}l.a=ee},function(he,l,o){"use strict";function c(I){return null!=I}o.d(l,"a",function(){return c})},function(he,l,o){"use strict";o.d(l,"b",function(){return Y}),o.d(l,"c",function(){return J}),o.d(l,"a",function(){return K}),o.d(l,"d",function(){return U});var c=o(1),I=o.n(c),C=o(2),f=o(10),a=o(14),p=o(9),s=o(19);function u(j,ee,G,q){return G.map(Z=>{const X=q?Object(s.b)(j,Z,q):Z;return ee.scroll.query(X,C.Scope.ATTRIBUTE)}).filter(Z=>Z instanceof C.Attributor).reduce((Z,X)=>(Z[X.attrName]=X,Z),{})}function h(j){return(h="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})(j)}function g(j,ee){var G=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);ee&&(q=q.filter(function(Z){return Object.getOwnPropertyDescriptor(j,Z).enumerable})),G.push.apply(G,q)}return G}function x(j){for(var ee=1;ee<arguments.length;ee++){var G=null!=arguments[ee]?arguments[ee]:{};ee%2?g(Object(G),!0).forEach(function(q){b(j,q,G[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(G)):g(Object(G)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(G,q))})}return j}function b(j,ee,G){return ee in j?Object.defineProperty(j,ee,{value:G,enumerable:!0,configurable:!0,writable:!0}):j[ee]=G,j}function y(j,ee){if(!(j instanceof ee))throw new TypeError("Cannot call a class as a function")}function E(j,ee){for(var G=0;G<ee.length;G++){var q=ee[G];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,q.key,q)}}function S(j,ee,G){return ee&&E(j.prototype,ee),G&&E(j,G),j}function O(j,ee,G){return(O=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(Z,X,M){var se=function w(j,ee){for(;!Object.prototype.hasOwnProperty.call(j,ee)&&null!==(j=N(j)););return j}(Z,X);if(se){var ge=Object.getOwnPropertyDescriptor(se,X);return ge.get?ge.get.call(M):ge.value}})(j,ee,G||j)}function T(j,ee){if("function"!=typeof ee&&null!==ee)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(ee&&ee.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),ee&&k(j,ee)}function k(j,ee){return(k=Object.setPrototypeOf||function(q,Z){return q.__proto__=Z,q})(j,ee)}function R(j){var ee=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 Z,q=N(j);if(ee){var X=N(this).constructor;Z=Reflect.construct(q,arguments,X)}else Z=q.apply(this,arguments);return P(this,Z)}}function P(j,ee){if(ee&&("object"===h(ee)||"function"==typeof ee))return ee;if(void 0!==ee)throw new TypeError("Derived constructors may only return object or undefined");return function B(j){if(void 0===j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}(j)}function N(j){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)})(j)}!function d(){C.AttributorStore.prototype.build=function(){const{tagName:j}=this.domNode,ee=C.Registry.find(this.domNode);if(null==ee)return;const G=C.Attributor.keys(this.domNode),q=C.ClassAttributor.keys(this.domNode),Z=C.StyleAttributor.keys(this.domNode);this.attributes={...u(j,ee,G,s.a.attribute),...u(j,ee,q),...u(j,ee,Z,s.a.style)}}}();var U=function(j){T(G,j);var ee=R(G);function G(q,Z){var X;return y(this,G),(X=ee.call(this,q,Z)).cache={},X}return S(G,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=Y(this)),this.cache.delta}},{key:"deleteAt",value:function(Z,X){O(N(G.prototype),"deleteAt",this).call(this,Z,X),this.cache={}}},{key:"formatAt",value:function(Z,X,M,se){X<=0||(this.scroll.query(M,C.Scope.BLOCK)?Z+X===this.length()&&this.format(M,se):O(N(G.prototype),"formatAt",this).call(this,Z,Math.min(X,this.length()-Z-1),M,se),this.cache={})}},{key:"insertAt",value:function(Z,X,M){if(null!=M)return O(N(G.prototype),"insertAt",this).call(this,Z,X,M),void(this.cache={});if(0!==X.length){var se=X.split("\n"),ge=se.shift();ge.length>0&&(Z<this.length()-1||null==this.children.tail?O(N(G.prototype),"insertAt",this).call(this,Math.min(Z,this.length()-1),ge):this.children.tail.insertAt(this.children.tail.length(),ge),this.cache={});var De=this;se.reduce(function(Fe,Ae){return(De=De.split(Fe,!0)).insertAt(0,Ae),Ae.length},Z+ge.length)}}},{key:"insertBefore",value:function(Z,X){var M=this.children.head;O(N(G.prototype),"insertBefore",this).call(this,Z,X),M instanceof f.a&&M.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=O(N(G.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(Z,X){O(N(G.prototype),"moveChildren",this).call(this,Z,X),this.cache={}}},{key:"optimize",value:function(Z){O(N(G.prototype),"optimize",this).call(this,Z),this.cache={}}},{key:"path",value:function(Z){return O(N(G.prototype),"path",this).call(this,Z,!0)}},{key:"removeChild",value:function(Z){O(N(G.prototype),"removeChild",this).call(this,Z),this.cache={}}},{key:"split",value:function(Z){var X=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(X&&(0===Z||Z>=this.length()-1)){var M=this.clone();return 0===Z?(this.parent.insertBefore(M,this),this):(this.parent.insertBefore(M,this.next),M)}var se=O(N(G.prototype),"split",this).call(this,Z,X);return this.cache={},se}}]),G}(C.BlockBlot);U.blotName="block",U.tagName="P",U.defaultChild=f.a,U.allowedChildren=[f.a,a.a,C.EmbedBlot,p.a];var K=function(j){T(G,j);var ee=R(G);function G(){return y(this,G),ee.apply(this,arguments)}return S(G,[{key:"attach",value:function(){O(N(G.prototype),"attach",this).call(this),this.attributes=new C.AttributorStore(this.domNode)}},{key:"delta",value:function(){return(new I.a).insert(this.value(),x(x({},this.formats()),this.attributes.values()))}},{key:"format",value:function(Z,X){var M=this.scroll.query(Z,C.Scope.BLOCK_ATTRIBUTE);null!=M&&this.attributes.attribute(M,X)}},{key:"formatAt",value:function(Z,X,M,se){this.format(M,se)}},{key:"insertAt",value:function(Z,X,M){if("string"==typeof X&&X.endsWith("\n")){var se=this.scroll.create(U.blotName);this.parent.insertBefore(se,0===Z?this:this.next),se.insertAt(0,X.slice(0,-1))}else O(N(G.prototype),"insertAt",this).call(this,Z,X,M)}}]),G}(C.EmbedBlot);function Y(j){var ee=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return j.descendants(C.LeafBlot).reduce(function(G,q){return 0===q.length()?G:G.insert(q.value(),J(q,{},ee))},new I.a).insert("\n",J(j))}function J(j){var ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},G=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==j||("function"==typeof j.formats&&(ee=x(x({},ee),j.formats()),G&&delete ee["code-token"]),null==j.parent||"scroll"===j.parent.statics.blotName||j.parent.statics.scope!==j.statics.scope)?ee:J(j.parent,ee,G)}K.scope=C.Scope.BLOCK_BLOT},function(he,l,o){"use strict";o.d(l,"a",function(){return P}),o.d(l,"b",function(){return B});var c=o(2),I=o(16),C=o.n(I),f=o(30),a=o.n(f),p=o(3),s=o(23);function u(N){return function g(N){if(Array.isArray(N))return E(N)}(N)||function h(N){if(typeof Symbol<"u"&&null!=N[Symbol.iterator]||null!=N["@@iterator"])return Array.from(N)}(N)||y(N)||function d(){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 x(N,V){return function O(N){if(Array.isArray(N))return N}(N)||function S(N,V){var U=null==N?null:typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(null!=U){var j,ee,K=[],Y=!0,J=!1;try{for(U=U.call(N);!(Y=(j=U.next()).done)&&(K.push(j.value),!V||K.length!==V);Y=!0);}catch(G){J=!0,ee=G}finally{try{!Y&&null!=U.return&&U.return()}finally{if(J)throw ee}}return K}}(N,V)||y(N,V)||function b(){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 y(N,V){if(N){if("string"==typeof N)return E(N,V);var U=Object.prototype.toString.call(N).slice(8,-1);if("Object"===U&&N.constructor&&(U=N.constructor.name),"Map"===U||"Set"===U)return Array.from(N);if("Arguments"===U||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return E(N,V)}}function E(N,V){(null==V||V>N.length)&&(V=N.length);for(var U=0,K=new Array(V);U<V;U++)K[U]=N[U];return K}function w(N,V){for(var U=0;U<V.length;U++){var K=V[U];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(N,K.key,K)}}function k(N,V){if(!(N instanceof V))throw new TypeError("Cannot call a class as a function")}var R=Object(s.a)("quill:selection"),P=function N(V){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;k(this,N),this.index=V,this.length=U},B=function(){function N(V,U){var K=this;k(this,N),this.emitter=U,this.scroll=V,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new P(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){!K.mouseDown&&!K.composing&&setTimeout(K.update.bind(K,p.a.sources.USER),1)}),this.emitter.on(p.a.events.SCROLL_BEFORE_UPDATE,function(){if(K.hasFocus()){var Y=K.getNativeRange();null!=Y&&Y.start.node!==K.cursor.textNode&&K.emitter.once(p.a.events.SCROLL_UPDATE,function(){try{K.root.contains(Y.start.node)&&K.root.contains(Y.end.node)&&K.setNativeRange(Y.start.node,Y.start.offset,Y.end.node,Y.end.offset),K.update(p.a.sources.SILENT)}catch{}})}}),this.emitter.on(p.a.events.SCROLL_OPTIMIZE,function(Y,J){if(J.range){var j=J.range;K.setNativeRange(j.startNode,j.startOffset,j.endNode,j.endOffset),K.update(p.a.sources.SILENT)}}),this.update(p.a.sources.SILENT)}return function T(N,V,U){return V&&w(N.prototype,V),U&&w(N,U),N}(N,[{key:"handleComposition",value:function(){var U=this;this.root.addEventListener("compositionstart",function(){U.composing=!0,U.scroll.batchStart()}),this.root.addEventListener("compositionend",function(){if(U.scroll.batchEnd(),U.composing=!1,U.cursor.parent){var K=U.cursor.restore();if(!K)return;setTimeout(function(){U.setNativeRange(K.startNode,K.startOffset,K.endNode,K.endOffset)},1)}})}},{key:"handleDragging",value:function(){var U=this;this.emitter.listenDOM("mousedown",document.body,function(){U.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){U.mouseDown=!1,U.update(p.a.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(U,K){this.scroll.update();var Y=this.getNativeRange();if(null!=Y&&Y.native.collapsed&&!this.scroll.query(U,c.Scope.BLOCK)){if(Y.start.node!==this.cursor.textNode){var J=this.scroll.find(Y.start.node,!1);if(null==J)return;if(J instanceof c.LeafBlot){var j=J.split(Y.start.offset);J.parent.insertBefore(this.cursor,j)}else J.insertBefore(this.cursor,Y.start.node);this.cursor.attach()}this.cursor.format(U,K),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}},{key:"getBounds",value:function(U){var K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Y=this.scroll.length();U=Math.min(U,Y-1),K=Math.min(U+K,Y-1)-U;var J,ee=x(this.scroll.leaf(U),2),G=ee[0],q=ee[1];if(null==G)return null;var X=x(G.position(q,!0),2);J=X[0],q=X[1];var M=document.createRange();if(K>0){M.setStart(J,q);var ge=x(this.scroll.leaf(U+K),2);if(null==(G=ge[0]))return null;var Fe=x(G.position(q=ge[1],!0),2);return M.setEnd(J=Fe[0],q=Fe[1]),M.getBoundingClientRect()}var ne,Ae="left";return J instanceof Text?(q<J.data.length?(M.setStart(J,q),M.setEnd(J,q+1)):(M.setStart(J,q-1),M.setEnd(J,q),Ae="right"),ne=M.getBoundingClientRect()):(ne=G.domNode.getBoundingClientRect(),q>0&&(Ae="right")),{bottom:ne.top+ne.height,height:ne.height,left:ne[Ae],right:ne[Ae],top:ne.top,width:0}}},{key:"getNativeRange",value:function(){var U=document.getSelection();if(null==U||U.rangeCount<=0)return null;var K=U.getRangeAt(0);if(null==K)return null;var Y=this.normalizeNative(K);return R.info("getNativeRange",Y),Y}},{key:"getRange",value:function(){var U=this.getNativeRange();return null==U?[null,null]:[this.normalizedToRange(U),U]}},{key:"hasFocus",value:function(){return document.activeElement===this.root||W(this.root,document.activeElement)}},{key:"normalizedToRange",value:function(U){var K=this,Y=[[U.start.node,U.start.offset]];U.native.collapsed||Y.push([U.end.node,U.end.offset]);var J=Y.map(function(G){var q=x(G,2),Z=q[0],X=q[1],M=K.scroll.find(Z,!0),se=M.offset(K.scroll);return 0===X?se:M instanceof c.LeafBlot?se+M.index(Z,X):se+M.length()}),j=Math.min(Math.max.apply(Math,u(J)),this.scroll.length()-1),ee=Math.min.apply(Math,[j].concat(u(J)));return new P(ee,j-ee)}},{key:"normalizeNative",value:function(U){if(!W(this.root,U.startContainer)||!U.collapsed&&!W(this.root,U.endContainer))return null;var K={start:{node:U.startContainer,offset:U.startOffset},end:{node:U.endContainer,offset:U.endOffset},native:U};return[K.start,K.end].forEach(function(Y){for(var J=Y.node,j=Y.offset;!(J instanceof Text)&&J.childNodes.length>0;)if(J.childNodes.length>j)J=J.childNodes[j],j=0;else{if(J.childNodes.length!==j)break;j=(J=J.lastChild)instanceof Text?J.data.length:J.childNodes.length>0?J.childNodes.length:J.childNodes.length+1}Y.node=J,Y.offset=j}),K}},{key:"rangeToNative",value:function(U){var K=this,Y=U.collapsed?[U.index]:[U.index,U.index+U.length],J=[],j=this.scroll.length();return Y.forEach(function(ee,G){ee=Math.min(j-1,ee);var Z=x(K.scroll.leaf(ee),2),ge=x(Z[0].position(Z[1],0!==G),2);J.push(ge[0],ge[1])}),J.length<2?J.concat(J):J}},{key:"scrollIntoView",value:function(U){var K=this.lastRange;if(null!=K){var Y=this.getBounds(K.index,K.length);if(null!=Y){var J=this.scroll.length()-1,G=x(this.scroll.line(Math.min(K.index,J)),1)[0],q=G;if(K.length>0&&(q=x(this.scroll.line(Math.min(K.index+K.length,J)),1)[0]),null!=G&&null!=q){var M=U.getBoundingClientRect();Y.top<M.top?U.scrollTop-=M.top-Y.top:Y.bottom>M.bottom&&(U.scrollTop+=Y.bottom-M.bottom)}}}}},{key:"setNativeRange",value:function(U,K){var Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U,J=arguments.length>3&&void 0!==arguments[3]?arguments[3]:K,j=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(R.info("setNativeRange",U,K,Y,J),null==U||null!=this.root.parentNode&&null!=U.parentNode&&null!=Y.parentNode){var ee=document.getSelection();if(null!=ee)if(null!=U){this.hasFocus()||this.root.focus();var q=(this.getNativeRange()||{}).native;if(null==q||j||U!==q.startContainer||K!==q.startOffset||Y!==q.endContainer||J!==q.endOffset){"BR"===U.tagName&&(K=Array.from(U.parentNode.childNodes).indexOf(U),U=U.parentNode),"BR"===Y.tagName&&(J=Array.from(Y.parentNode.childNodes).indexOf(Y),Y=Y.parentNode);var Z=document.createRange();Z.setStart(U,K),Z.setEnd(Y,J),ee.removeAllRanges(),ee.addRange(Z)}}else ee.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(U){var K=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.a.sources.API;if("string"==typeof K&&(Y=K,K=!1),R.info("setRange",U),null!=U){var J=this.rangeToNative(U);this.setNativeRange.apply(this,u(J).concat([K]))}else this.setNativeRange(null);this.update(Y)}},{key:"update",value:function(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.a.sources.USER,K=this.lastRange,J=x(this.getRange(),2),ee=J[1];if(this.lastRange=J[0],this.lastNative=ee,null!=this.lastRange&&(this.savedRange=this.lastRange),!a()(K,this.lastRange)){var G;if(!this.composing&&null!=ee&&ee.native.collapsed&&ee.start.node!==this.cursor.textNode){var q=this.cursor.restore();q&&this.setNativeRange(q.startNode,q.startOffset,q.endNode,q.endOffset)}var X,Z=[p.a.events.SELECTION_CHANGE,C()(this.lastRange),C()(K),U];(G=this.emitter).emit.apply(G,[p.a.events.EDITOR_CHANGE].concat(Z)),U!==p.a.sources.SILENT&&(X=this.emitter).emit.apply(X,Z)}}}]),N}();function W(N,V){return V instanceof Text&&(V=V.parentNode),N.contains(V)}},function(he,l,o){(function(c){var I=function(C){return C&&C.Math==Math&&C};he.exports=I("object"==typeof globalThis&&globalThis)||I("object"==typeof window&&window)||I("object"==typeof self&&self)||I("object"==typeof c&&c)||function(){return this}()||Function("return this")()}).call(this,o(58))},function(he,l,o){"use strict";function I(b){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(b)}function C(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function f(b,y){if("function"!=typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),y&&a(b,y)}function a(b,y){return(a=Object.setPrototypeOf||function(S,O){return S.__proto__=O,S})(b,y)}function p(b){var y=function d(){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 O,S=h(b);if(y){var w=h(this).constructor;O=Reflect.construct(S,arguments,w)}else O=S.apply(this,arguments);return s(this,O)}}function s(b,y){if(y&&("object"===I(y)||"function"==typeof y))return y;if(void 0!==y)throw new TypeError("Derived constructors may only return object or undefined");return function u(b){if(void 0===b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}(b)}function h(b){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)})(b)}o.d(l,"a",function(){return g}),o.d(l,"b",function(){return x});var g=function(b){f(E,b);var y=p(E);function E(){return C(this,E),y.apply(this,arguments)}return E}(o(2).TextBlot);function x(b){return b.replace(/[&<>"']/g,function(y){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[y]})}},function(he,l,o){"use strict";function I(y){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(S){return typeof S}:function(S){return S&&"function"==typeof Symbol&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(y)}function C(y,E){if(!(y instanceof E))throw new TypeError("Cannot call a class as a function")}function f(y,E){for(var S=0;S<E.length;S++){var O=E[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(y,O.key,O)}}function p(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(E&&E.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),E&&s(y,E)}function s(y,E){return(s=Object.setPrototypeOf||function(O,w){return O.__proto__=w,O})(y,E)}function u(y){var E=function g(){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,O=x(y);if(E){var T=x(this).constructor;w=Reflect.construct(O,arguments,T)}else w=O.apply(this,arguments);return d(this,w)}}function d(y,E){if(E&&("object"===I(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function h(y){if(void 0===y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}(y)}function x(y){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)})(y)}var b=function(y){p(S,y);var E=u(S);function S(){return C(this,S),E.apply(this,arguments)}return function a(y,E,S){return E&&f(y.prototype,E),S&&f(y,S),y}(S,[{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(){}}]),S}(o(2).EmbedBlot);b.blotName="break",b.tagName="BR",l.a=b},function(he,l,o){"use strict";o.d(l,"b",function(){return h}),o.d(l,"d",function(){return g}),o.d(l,"c",function(){return x}),o.d(l,"a",function(){return b});var c=o(73),I=o(74),C=o(32);function f(y){return function u(y){if(Array.isArray(y))return d(y)}(y)||function s(y){if(typeof Symbol<"u"&&null!=y[Symbol.iterator]||null!=y["@@iterator"])return Array.from(y)}(y)||function p(y,E){if(y){if("string"==typeof y)return d(y,E);var S=Object.prototype.toString.call(y).slice(8,-1);if("Object"===S&&y.constructor&&(S=y.constructor.name),"Map"===S||"Set"===S)return Array.from(y);if("Arguments"===S||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return d(y,E)}}(y)||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 d(y,E){(null==E||E>y.length)&&(E=y.length);for(var S=0,O=new Array(E);S<E;S++)O[S]=y[S];return O}var h=C.a.map(function(y){return Object(c.a)(C.d,y)}),g=C.c.map(function(y){return Object(I.a)(C.d,y)}),x=g.reduce(function(y,E){return y[E.attrName]=E,y},{}),b=[].concat(f(h),f(g)).reduce(function(y,E){return y[E.keyName]=E,y},{})},function(he,l,o){"use strict";function c(C,f){if(!(C instanceof f))throw new TypeError("Cannot call a class as a function")}var I=function C(f){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,C),this.quill=f,this.options=a};I.DEFAULTS={},l.a=I},function(he,l,o){"use strict";function I(x){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(y){return typeof y}:function(y){return y&&"function"==typeof Symbol&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(x)}function C(x,b){if(!(x instanceof b))throw new TypeError("Cannot call a class as a function")}function f(x,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(b&&b.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),b&&a(x,b)}function a(x,b){return(a=Object.setPrototypeOf||function(E,S){return E.__proto__=S,E})(x,b)}function p(x){var b=function d(){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 S,E=h(x);if(b){var O=h(this).constructor;S=Reflect.construct(E,arguments,O)}else S=E.apply(this,arguments);return s(this,S)}}function s(x,b){if(b&&("object"===I(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return function u(x){if(void 0===x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}(x)}function h(x){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)})(x)}var g=function(x){f(y,x);var b=p(y);function y(){return C(this,y),b.apply(this,arguments)}return y}(o(2).ContainerBlot);l.a=g},function(he,l,o){"use strict";var c=o(2),I=o(10),C=o(9);function f(w){return(f="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})(w)}function a(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function p(w,T){for(var k=0;k<T.length;k++){var R=T[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}function u(w,T,k){return(u=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(P,B,W){var N=function d(w,T){for(;!Object.prototype.hasOwnProperty.call(w,T)&&null!==(w=S(w)););return w}(P,B);if(N){var V=Object.getOwnPropertyDescriptor(N,B);return V.get?V.get.call(W):V.value}})(w,T,k||w)}function h(w,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),T&&g(w,T)}function g(w,T){return(g=Object.setPrototypeOf||function(R,P){return R.__proto__=P,R})(w,T)}function x(w){var T=function E(){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 P,R=S(w);if(T){var B=S(this).constructor;P=Reflect.construct(R,arguments,B)}else P=R.apply(this,arguments);return b(this,P)}}function b(w,T){if(T&&("object"===f(T)||"function"==typeof T))return T;if(void 0!==T)throw new TypeError("Derived constructors may only return object or undefined");return function y(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(w)}function S(w){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var O=function(w){h(k,w);var T=x(k);function k(){return a(this,k),T.apply(this,arguments)}return function s(w,T,k){return T&&p(w.prototype,T),k&&p(w,k),w}(k,[{key:"formatAt",value:function(P,B,W,N){if(k.compare(this.statics.blotName,W)<0&&this.scroll.query(W,c.Scope.BLOT)){var V=this.isolate(P,B);N&&V.wrap(W,N)}else u(S(k.prototype),"formatAt",this).call(this,P,B,W,N)}},{key:"optimize",value:function(P){if(u(S(k.prototype),"optimize",this).call(this,P),this.parent instanceof k&&k.compare(this.statics.blotName,this.parent.statics.blotName)>0){var B=this.parent.isolate(this.offset(),this.length());this.moveChildren(B),B.wrap(this)}}}],[{key:"compare",value:function(P,B){var W=k.order.indexOf(P),N=k.order.indexOf(B);return W>=0||N>=0?W-N:P===B?0:P<B?-1:1}}]),k}(c.InlineBlot);O.allowedChildren=[O,I.a,c.EmbedBlot,C.a],O.order=["cursor","inline","link","underline","strike","italic","bold","script","code"],l.a=O},function(he,l,o){"use strict";l.a=function(){return typeof window<"u"}},function(he,l,o){(function(c,I){var f="__lodash_hash_undefined__",a=9007199254740991,p="[object Arguments]",u="[object Boolean]",d="[object Date]",g="[object Function]",x="[object GeneratorFunction]",b="[object Map]",y="[object Number]",E="[object Object]",S="[object Promise]",O="[object RegExp]",w="[object Set]",T="[object String]",k="[object Symbol]",R="[object WeakMap]",P="[object ArrayBuffer]",B="[object DataView]",W="[object Float32Array]",N="[object Float64Array]",V="[object Int8Array]",U="[object Int16Array]",K="[object Int32Array]",Y="[object Uint8Array]",J="[object Uint8ClampedArray]",j="[object Uint16Array]",ee="[object Uint32Array]",q=/\w*$/,Z=/^\[object .+?Constructor\]$/,X=/^(?:0|[1-9]\d*)$/,M={};M[p]=M["[object Array]"]=M[P]=M[B]=M[u]=M[d]=M[W]=M[N]=M[V]=M[U]=M[K]=M[b]=M[y]=M[E]=M[O]=M[w]=M[T]=M[k]=M[Y]=M[J]=M[j]=M[ee]=!0,M["[object Error]"]=M[g]=M[R]=!1;var ge="object"==typeof self&&self&&self.Object===Object&&self,De="object"==typeof c&&c&&c.Object===Object&&c||ge||Function("return this")(),Fe=l&&!l.nodeType&&l,Ae=Fe&&"object"==typeof I&&I&&!I.nodeType&&I,ne=Ae&&Ae.exports===Fe;function fe(rt,Bt){return rt.set(Bt[0],Bt[1]),rt}function _e(rt,Bt){return rt.add(Bt),rt}function le(rt,Bt,gt,$t){var Un=-1,ai=rt?rt.length:0;for($t&&ai&&(gt=rt[++Un]);++Un<ai;)gt=Bt(gt,rt[Un],Un,rt);return gt}function ae(rt){var Bt=!1;if(null!=rt&&"function"!=typeof rt.toString)try{Bt=!!(rt+"")}catch{}return Bt}function te(rt){var Bt=-1,gt=Array(rt.size);return rt.forEach(function($t,Un){gt[++Bt]=[Un,$t]}),gt}function re(rt,Bt){return function(gt){return rt(Bt(gt))}}function oe(rt){var Bt=-1,gt=Array(rt.size);return rt.forEach(function($t){gt[++Bt]=$t}),gt}var rt,ye=Array.prototype,Pe=Function.prototype,Ne=Object.prototype,ft=De["__core-js_shared__"],tt=(rt=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||""))?"Symbol(src)_1."+rt:"",Be=Pe.toString,mt=Ne.hasOwnProperty,nn=Ne.toString,ke=RegExp("^"+Be.call(mt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=ne?De.Buffer:void 0,me=De.Symbol,xe=De.Uint8Array,Te=re(Object.getPrototypeOf,Object),Ye=Object.create,St=Ne.propertyIsEnumerable,Ct=ye.splice,Rt=Object.getOwnPropertySymbols,fn=$e?$e.isBuffer:void 0,ct=re(Object.keys,Object),He=Zn(De,"DataView"),Dt=Zn(De,"Map"),qe=Zn(De,"Promise"),Ht=Zn(De,"Set"),dt=Zn(De,"WeakMap"),ht=Zn(Object,"create"),yt=Wt(He),Ft=Wt(Dt),bn=Wt(qe),_n=Wt(Ht),xn=Wt(dt),Jn=me?me.prototype:void 0,li=Jn?Jn.valueOf:void 0;function Ai(rt){var Bt=-1,gt=rt?rt.length:0;for(this.clear();++Bt<gt;){var $t=rt[Bt];this.set($t[0],$t[1])}}function ti(rt){var Bt=-1,gt=rt?rt.length:0;for(this.clear();++Bt<gt;){var $t=rt[Bt];this.set($t[0],$t[1])}}function di(rt){var Bt=-1,gt=rt?rt.length:0;for(this.clear();++Bt<gt;){var $t=rt[Bt];this.set($t[0],$t[1])}}function Rn(rt){this.__data__=new ti(rt)}function kr(rt,Bt){var gt=Ke(rt)||function mn(rt){return function an(rt){return function st(rt){return!!rt&&"object"==typeof rt}(rt)&&pt(rt)}(rt)&&mt.call(rt,"callee")&&(!St.call(rt,"callee")||nn.call(rt)==p)}(rt)?function pe(rt,Bt){for(var gt=-1,$t=Array(rt);++gt<rt;)$t[gt]=Bt(gt);return $t}(rt.length,String):[],$t=gt.length,Un=!!$t;for(var ai in rt)(Bt||mt.call(rt,ai))&&(!Un||"length"!=ai&&!vn(ai,$t))&&gt.push(ai);return gt}function zr(rt,Bt,gt){var $t=rt[Bt];(!mt.call(rt,Bt)||!qt($t,gt)||void 0===gt&&!(Bt in rt))&&(rt[Bt]=gt)}function Gr(rt,Bt){for(var gt=rt.length;gt--;)if(qt(rt[gt][0],Bt))return gt;return-1}function Vr(rt,Bt,gt,$t,Un,ai,Ci){var Ii;if($t&&(Ii=ai?$t(rt,Un,ai,Ci):$t(rt)),void 0!==Ii)return Ii;if(!Yn(rt))return rt;var zi=Ke(rt);if(zi){if(Ii=function or(rt){var Bt=rt.length,gt=rt.constructor(Bt);return Bt&&"string"==typeof rt[0]&&mt.call(rt,"index")&&(gt.index=rt.index,gt.input=rt.input),gt}(rt),!Bt)return function $n(rt,Bt){var gt=-1,$t=rt.length;for(Bt||(Bt=Array($t));++gt<$t;)Bt[gt]=rt[gt];return Bt}(rt,Ii)}else{var Ki=Ri(rt),Xi=Ki==g||Ki==x;if(hn(rt))return function fi(rt,Bt){if(Bt)return rt.slice();var gt=new rt.constructor(rt.length);return rt.copy(gt),gt}(rt,Bt);if(Ki==E||Ki==p||Xi&&!ai){if(ae(rt))return ai?rt:{};if(Ii=function cr(rt){return"function"!=typeof rt.constructor||_t(rt)?{}:function Nr(rt){return Yn(rt)?Ye(rt):{}}(Te(rt))}(Xi?{}:rt),!Bt)return function mi(rt,Bt){return _i(rt,gi(rt),Bt)}(rt,function xr(rt,Bt){return rt&&_i(Bt,Vt(Bt),rt)}(Ii,rt))}else{if(!M[Ki])return ai?rt:{};Ii=function en(rt,Bt,gt,$t){var Un=rt.constructor;switch(Bt){case P:return ir(rt);case u:case d:return new Un(+rt);case B:return function Kr(rt,Bt){var gt=Bt?ir(rt.buffer):rt.buffer;return new rt.constructor(gt,rt.byteOffset,rt.byteLength)}(rt,$t);case W:case N:case V:case U:case K:case Y:case J:case j:case ee:return function tn(rt,Bt){var gt=Bt?ir(rt.buffer):rt.buffer;return new rt.constructor(gt,rt.byteOffset,rt.length)}(rt,$t);case b:return function to(rt,Bt,gt){return le(Bt?gt(te(rt),!0):te(rt),fe,new rt.constructor)}(rt,$t,gt);case y:case T:return new Un(rt);case O:return function uo(rt){var Bt=new rt.constructor(rt.source,q.exec(rt));return Bt.lastIndex=rt.lastIndex,Bt}(rt);case w:return function po(rt,Bt,gt){return le(Bt?gt(oe(rt),!0):oe(rt),_e,new rt.constructor)}(rt,$t,gt);case k:return function At(rt){return li?Object(li.call(rt)):{}}(rt)}}(rt,Ki,Vr,Bt)}}Ci||(Ci=new Rn);var wr=Ci.get(rt);if(wr)return wr;if(Ci.set(rt,Ii),!zi)var vr=gt?function dn(rt){return function Tr(rt,Bt,gt){var $t=Bt(rt);return Ke(rt)?$t:function de(rt,Bt){for(var gt=-1,$t=Bt.length,Un=rt.length;++gt<$t;)rt[Un+gt]=Bt[gt];return rt}($t,gt(rt))}(rt,Vt,gi)}(rt):Vt(rt);return function ie(rt,Bt){for(var gt=-1,$t=rt?rt.length:0;++gt<$t&&!1!==Bt(rt[gt],gt,rt););return rt}(vr||rt,function(Jr,Xr){vr&&(Jr=rt[Xr=Jr]),zr(Ii,Xr,Vr(Jr,Bt,gt,$t,Xr,rt,Ci))}),Ii}function Er(rt){return!(!Yn(rt)||function bt(rt){return!!tt&&tt in rt}(rt))&&(sn(rt)||ae(rt)?ke:Z).test(Wt(rt))}function ir(rt){var Bt=new rt.constructor(rt.byteLength);return new xe(Bt).set(new xe(rt)),Bt}function _i(rt,Bt,gt,$t){gt||(gt={});for(var Un=-1,ai=Bt.length;++Un<ai;){var Ci=Bt[Un],Ii=$t?$t(gt[Ci],rt[Ci],Ci,gt,rt):void 0;zr(gt,Ci,void 0===Ii?rt[Ci]:Ii)}return gt}function In(rt,Bt){var gt=rt.__data__;return function Ze(rt){var Bt=typeof rt;return"string"==Bt||"number"==Bt||"symbol"==Bt||"boolean"==Bt?"__proto__"!==rt:null===rt}(Bt)?gt["string"==typeof Bt?"string":"hash"]:gt.map}function Zn(rt,Bt){var gt=function Ee(rt,Bt){return rt?.[Bt]}(rt,Bt);return Er(gt)?gt:void 0}Ai.prototype.clear=function Vn(){this.__data__=ht?ht(null):{}},Ai.prototype.delete=function Oi(rt){return this.has(rt)&&delete this.__data__[rt]},Ai.prototype.get=function Hn(rt){var Bt=this.__data__;if(ht){var gt=Bt[rt];return gt===f?void 0:gt}return mt.call(Bt,rt)?Bt[rt]:void 0},Ai.prototype.has=function Sn(rt){var Bt=this.__data__;return ht?void 0!==Bt[rt]:mt.call(Bt,rt)},Ai.prototype.set=function An(rt,Bt){return this.__data__[rt]=ht&&void 0===Bt?f:Bt,this},ti.prototype.clear=function Wn(){this.__data__=[]},ti.prototype.delete=function Yi(rt){var Bt=this.__data__,gt=Gr(Bt,rt);return!(gt<0||(gt==Bt.length-1?Bt.pop():Ct.call(Bt,gt,1),0))},ti.prototype.get=function On(rt){var Bt=this.__data__,gt=Gr(Bt,rt);return gt<0?void 0:Bt[gt][1]},ti.prototype.has=function ei(rt){return Gr(this.__data__,rt)>-1},ti.prototype.set=function ni(rt,Bt){var gt=this.__data__,$t=Gr(gt,rt);return $t<0?gt.push([rt,Bt]):gt[$t][1]=Bt,this},di.prototype.clear=function Hi(){this.__data__={hash:new Ai,map:new(Dt||ti),string:new Ai}},di.prototype.delete=function $i(rt){return In(this,rt).delete(rt)},di.prototype.get=function Qi(rt){return In(this,rt).get(rt)},di.prototype.has=function _r(rt){return In(this,rt).has(rt)},di.prototype.set=function yn(rt,Bt){return In(this,rt).set(rt,Bt),this},Rn.prototype.clear=function ci(){this.__data__=new ti},Rn.prototype.delete=function Si(rt){return this.__data__.delete(rt)},Rn.prototype.get=function ji(rt){return this.__data__.get(rt)},Rn.prototype.has=function lr(rt){return this.__data__.has(rt)},Rn.prototype.set=function Dr(rt,Bt){var gt=this.__data__;if(gt instanceof ti){var $t=gt.__data__;if(!Dt||$t.length<199)return $t.push([rt,Bt]),this;gt=this.__data__=new di($t)}return gt.set(rt,Bt),this};var gi=Rt?re(Rt,Object):function rn(){return[]},Ri=function so(rt){return nn.call(rt)};function vn(rt,Bt){return!!(Bt=Bt??a)&&("number"==typeof rt||X.test(rt))&&rt>-1&&rt%1==0&&rt<Bt}function _t(rt){var Bt=rt&&rt.constructor;return rt===("function"==typeof Bt&&Bt.prototype||Ne)}function Wt(rt){if(null!=rt){try{return Be.call(rt)}catch{}try{return rt+""}catch{}}return""}function qt(rt,Bt){return rt===Bt||rt!=rt&&Bt!=Bt}(He&&Ri(new He(new ArrayBuffer(1)))!=B||Dt&&Ri(new Dt)!=b||qe&&Ri(qe.resolve())!=S||Ht&&Ri(new Ht)!=w||dt&&Ri(new dt)!=R)&&(Ri=function(rt){var Bt=nn.call(rt),gt=Bt==E?rt.constructor:void 0,$t=gt?Wt(gt):void 0;if($t)switch($t){case yt:return B;case Ft:return b;case bn:return S;case _n:return w;case xn:return R}return Bt});var Ke=Array.isArray;function pt(rt){return null!=rt&&function Nn(rt){return"number"==typeof rt&&rt>-1&&rt%1==0&&rt<=a}(rt.length)&&!sn(rt)}var hn=fn||function Dn(){return!1};function sn(rt){var Bt=Yn(rt)?nn.call(rt):"";return Bt==g||Bt==x}function Yn(rt){var Bt=typeof rt;return!!rt&&("object"==Bt||"function"==Bt)}function Vt(rt){return pt(rt)?kr(rt):function oo(rt){if(!_t(rt))return ct(rt);var Bt=[];for(var gt in Object(rt))mt.call(rt,gt)&&"constructor"!=gt&&Bt.push(gt);return Bt}(rt)}I.exports=function Ot(rt){return Vr(rt,!0,!0)}}).call(this,o(58),o(66)(he))},function(he,l,o){"use strict";o.d(l,"a",function(){return B}),o.d(l,"b",function(){return R}),o.d(l,"c",function(){return P});var c=o(6),I=o(10),C=o(24),f=o(14),a=o(9),p=o(13),s=o(0);function u(W){return(u="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})(W)}function d(W,N){if(!(W instanceof N))throw new TypeError("Cannot call a class as a function")}function h(W,N){for(var V=0;V<N.length;V++){var U=N[V];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(W,U.key,U)}}function g(W,N,V){return N&&h(W.prototype,N),V&&h(W,V),W}function x(W,N,V){return(x=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(K,Y,J){var j=function b(W,N){for(;!Object.prototype.hasOwnProperty.call(W,N)&&null!==(W=k(W)););return W}(K,Y);if(j){var ee=Object.getOwnPropertyDescriptor(j,Y);return ee.get?ee.get.call(J):ee.value}})(W,N,V||W)}function y(W,N){if("function"!=typeof N&&null!==N)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(N&&N.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),N&&E(W,N)}function E(W,N){return(E=Object.setPrototypeOf||function(U,K){return U.__proto__=K,U})(W,N)}function S(W){var N=function T(){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,U=k(W);if(N){var Y=k(this).constructor;K=Reflect.construct(U,arguments,Y)}else K=U.apply(this,arguments);return O(this,K)}}function O(W,N){if(N&&("object"===u(N)||"function"==typeof N))return N;if(void 0!==N)throw new TypeError("Derived constructors may only return object or undefined");return function w(W){if(void 0===W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}(W)}function k(W){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)})(W)}var R=function(W){y(V,W);var N=S(V);function V(){return d(this,V),N.apply(this,arguments)}return g(V,[{key:"code",value:function(K,Y){var J=this.children.map(function(j){return j.length()<=1?"":j.domNode.textContent}).join("\n").slice(K,K+Y);return Object(a.b)(J)}},{key:"html",value:function(K,Y){return"<pre>\n".concat(this.code(K,Y),"\n</pre>")}}],[{key:"create",value:function(K){var Y=x(k(V),"create",this).call(this,K);return Y.setAttribute("spellcheck",!1),Y}}]),V}(p.a),P=function(W){y(V,W);var N=S(V);function V(){return d(this,V),N.apply(this,arguments)}return g(V,null,[{key:"register",value:function(){s.a.register(R)}}]),V}(c.d),B=function(W){y(V,W);var N=S(V);function V(){return d(this,V),N.apply(this,arguments)}return V}(f.a);B.blotName="code",B.tagName="CODE",P.blotName="code-block",P.className="ql-code-block",P.tagName="DIV",R.blotName="code-block-container",R.className="ql-code-block-container",R.tagName="DIV",R.allowedChildren=[P],P.allowedChildren=[a.a,I.a,C.a],P.requiredContainer=R,P.TAB="  "},function(he,l,o){"use strict";var c=o(2),I=o(3),C=o(6),f=o(10),a=o(13);function p(U){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Y){return typeof Y}:function(Y){return Y&&"function"==typeof Symbol&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y})(U)}function s(U,K){return function x(U){if(Array.isArray(U))return U}(U)||function g(U,K){var Y=null==U?null:typeof Symbol<"u"&&U[Symbol.iterator]||U["@@iterator"];if(null!=Y){var G,q,J=[],j=!0,ee=!1;try{for(Y=Y.call(U);!(j=(G=Y.next()).done)&&(J.push(G.value),!K||J.length!==K);j=!0);}catch(Z){ee=!0,q=Z}finally{try{!j&&null!=Y.return&&Y.return()}finally{if(ee)throw q}}return J}}(U,K)||function d(U,K){if(U){if("string"==typeof U)return h(U,K);var Y=Object.prototype.toString.call(U).slice(8,-1);if("Object"===Y&&U.constructor&&(Y=U.constructor.name),"Map"===Y||"Set"===Y)return Array.from(U);if("Arguments"===Y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return h(U,K)}}(U,K)||function u(){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 h(U,K){(null==K||K>U.length)&&(K=U.length);for(var Y=0,J=new Array(K);Y<K;Y++)J[Y]=U[Y];return J}function y(U,K){for(var Y=0;Y<K.length;Y++){var J=K[Y];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(U,J.key,J)}}function S(U,K,Y){return(S=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(j,ee,G){var q=function O(U,K){for(;!Object.prototype.hasOwnProperty.call(U,K)&&null!==(U=W(U)););return U}(j,ee);if(q){var Z=Object.getOwnPropertyDescriptor(q,ee);return Z.get?Z.get.call(G):Z.value}})(U,K,Y||U)}function w(U,K){if("function"!=typeof K&&null!==K)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(K&&K.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),K&&T(U,K)}function T(U,K){return(T=Object.setPrototypeOf||function(J,j){return J.__proto__=j,J})(U,K)}function k(U){var K=function B(){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 j,J=W(U);if(K){var ee=W(this).constructor;j=Reflect.construct(J,arguments,ee)}else j=J.apply(this,arguments);return R(this,j)}}function R(U,K){if(K&&("object"===p(K)||"function"==typeof K))return K;if(void 0!==K)throw new TypeError("Derived constructors may only return object or undefined");return function P(U){if(void 0===U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(U)}function W(U){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)})(U)}function N(U){return U instanceof C.d||U instanceof C.a}var V=function(U){w(Y,U);var K=k(Y);function Y(J,j,ee){var G,q=ee.emitter,Z=ee.toggleBlankClass;return function b(U,K){if(!(U instanceof K))throw new TypeError("Cannot call a class as a function")}(this,Y),(G=K.call(this,J,j)).emitter=q,G.toggleBlankClass=Z,G.batch=!1,G.optimize(),G.enable(),G.domNode.addEventListener("dragstart",function(X){return G.handleDragStart(X)}),G}return function E(U,K,Y){return K&&y(U.prototype,K),Y&&y(U,Y),U}(Y,[{key:"batchStart",value:function(){Array.isArray(this.batch)||(this.batch=[])}},{key:"batchEnd",value:function(){var j=this.batch;this.batch=!1,this.update(j)}},{key:"emitMount",value:function(j){this.emitter.emit(I.a.events.SCROLL_BLOT_MOUNT,j)}},{key:"emitUnmount",value:function(j){this.emitter.emit(I.a.events.SCROLL_BLOT_UNMOUNT,j)}},{key:"deleteAt",value:function(j,ee){var q=s(this.line(j),2),Z=q[0],X=q[1],ge=s(this.line(j+ee),1)[0];if(S(W(Y.prototype),"deleteAt",this).call(this,j,ee),null!=ge&&Z!==ge&&X>0){if(Z instanceof C.a||ge instanceof C.a)return void this.optimize();Z.moveChildren(ge,ge.children.head instanceof f.a?null:ge.children.head),Z.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(j,ee,G,q){S(W(Y.prototype),"formatAt",this).call(this,j,ee,G,q),this.optimize()}},{key:"handleDragStart",value:function(j){j.preventDefault()}},{key:"insertAt",value:function(j,ee,G){if(j>=this.length())if(null==G||null==this.scroll.query(ee,c.Scope.BLOCK)){var q=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(q),null==G&&ee.endsWith("\n")?q.insertAt(0,ee.slice(0,-1),G):q.insertAt(0,ee,G)}else{var Z=this.scroll.create(ee,G);this.appendChild(Z)}else S(W(Y.prototype),"insertAt",this).call(this,j,ee,G);this.optimize()}},{key:"insertBefore",value:function(j,ee){if(j.statics.scope===c.Scope.INLINE_BLOT){var G=this.scroll.create(this.statics.defaultChild.blotName);G.appendChild(j),S(W(Y.prototype),"insertBefore",this).call(this,G,ee)}else S(W(Y.prototype),"insertBefore",this).call(this,j,ee)}},{key:"isEnabled",value:function(){return"true"===this.domNode.getAttribute("contenteditable")}},{key:"leaf",value:function(j){return this.path(j).pop()||[null,-1]}},{key:"line",value:function(j){return j===this.length()?this.line(j-1):this.descendant(N,j)}},{key:"lines",value:function(){return function q(Z,X,M){var se=[],ge=M;return Z.children.forEachAt(X,M,function(De,Fe,Ae){N(De)?se.push(De):De instanceof c.ContainerBlot&&(se=se.concat(q(De,Fe,ge))),ge-=Ae}),se}(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 j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(S(W(Y.prototype),"optimize",this).call(this,j,ee),j.length>0&&this.emitter.emit(I.a.events.SCROLL_OPTIMIZE,j,ee))}},{key:"path",value:function(j){return S(W(Y.prototype),"path",this).call(this,j).slice(1)}},{key:"remove",value:function(){}},{key:"update",value:function(j){var ee=this;if(this.batch)Array.isArray(j)&&(this.batch=this.batch.concat(j),this.toggleBlankClass());else{var G=I.a.sources.USER;"string"==typeof j&&(G=j),Array.isArray(j)||(j=this.observer.takeRecords()),(j=j.filter(function(q){var X=ee.find(q.target,!0);return X&&X.scroll===ee})).length>0&&this.emitter.emit(I.a.events.SCROLL_BEFORE_UPDATE,G,j),S(W(Y.prototype),"update",this).call(this,j.concat([])),j.length>0&&this.emitter.emit(I.a.events.SCROLL_UPDATE,G,j)}}}]),Y}(c.ScrollBlot);V.blotName="scroll",V.className="ql-editor",V.tagName="DIV",V.defaultChild=C.d,V.allowedChildren=[C.d,C.a,a.a],l.a=V},function(he,l,o){"use strict";o.d(l,"a",function(){return p}),o.d(l,"b",function(){return u}),o.d(l,"c",function(){return d});var c=o(32),I=o(33);function C(h,g){var x=Object.keys(h);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(h);g&&(b=b.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),x.push.apply(x,b)}return x}function f(h){for(var g=1;g<arguments.length;g++){var x=null!=arguments[g]?arguments[g]:{};g%2?C(Object(x),!0).forEach(function(b){a(h,b,x[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(x)):C(Object(x)).forEach(function(b){Object.defineProperty(h,b,Object.getOwnPropertyDescriptor(x,b))})}return h}function a(h,g,x){return g in h?Object.defineProperty(h,g,{value:x,enumerable:!0,configurable:!0,writable:!0}):h[g]=x,h}var p={attribute:"attr",style:"style"},s=f(f({},c.d.allowedTags.reduce(function(h,g){return h[g]={name:c.d.name,keyNamesSet:c.b},h},{})),I.d.allowedTags.reduce(function(h,g){return h[g]={name:I.d.name,keyNamesSet:I.b},h},{}));function u(h,g,x){var b=s[h];return b&&b.keyNamesSet.has(g)?"".concat(x).concat(b.name,"_").concat(g):g}function d(h){return h.replace(/([^]*_)/,"")}},function(he,l){var o=Function.prototype,c=o.bind,I=o.call,C=c&&c.bind(I);he.exports=c?function(f){return f&&C(I,f)}:function(f){return f&&function(){return I.apply(f,arguments)}}},function(he,l,o){"use strict";o.d(l,"c",function(){return h}),o.d(l,"d",function(){return g}),o.d(l,"b",function(){return x}),o.d(l,"a",function(){return b});var c=o(73),I=o(74),C=o(33);function f(y){return function u(y){if(Array.isArray(y))return d(y)}(y)||function s(y){if(typeof Symbol<"u"&&null!=y[Symbol.iterator]||null!=y["@@iterator"])return Array.from(y)}(y)||function p(y,E){if(y){if("string"==typeof y)return d(y,E);var S=Object.prototype.toString.call(y).slice(8,-1);if("Object"===S&&y.constructor&&(S=y.constructor.name),"Map"===S||"Set"===S)return Array.from(y);if("Arguments"===S||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return d(y,E)}}(y)||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 d(y,E){(null==E||E>y.length)&&(E=y.length);for(var S=0,O=new Array(E);S<E;S++)O[S]=y[S];return O}var h=C.a.map(function(y){return Object(c.a)(C.d,y)}),g=C.c.map(function(y){return Object(I.a)(C.d,y)}),x=g.reduce(function(y,E){return y[E.attrName]=E,y},{}),b=[].concat(f(h),f(g)).reduce(function(y,E){return y[E.keyName]=E,y},{})},function(he,l){he.exports=function(o){return"function"==typeof o}},function(he,l,o){"use strict";var c=["error","warn","log","info"],I="warn";function C(a){if(c.indexOf(a)<=c.indexOf(I)){for(var p,s=arguments.length,u=new Array(s>1?s-1:0),d=1;d<s;d++)u[d-1]=arguments[d];(p=console)[a].apply(p,u)}}function f(a){return c.reduce(function(p,s){return p[s]=C.bind(console,s,a),p},{})}C.level=f.level=function(a){I=a},l.a=f},function(he,l,o){"use strict";var c=o(2),I=o(9);function C(O){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(T){return typeof T}:function(T){return T&&"function"==typeof Symbol&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T})(O)}function a(O,w){for(var T=0;T<w.length;T++){var k=w[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(O,k.key,k)}}function s(O,w,T){return(s=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(R,P,B){var W=function u(O,w){for(;!Object.prototype.hasOwnProperty.call(O,w)&&null!==(O=E(O)););return O}(R,P);if(W){var N=Object.getOwnPropertyDescriptor(W,P);return N.get?N.get.call(B):N.value}})(O,w,T||O)}function d(O,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(w&&w.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),w&&h(O,w)}function h(O,w){return(h=Object.setPrototypeOf||function(k,R){return k.__proto__=R,k})(O,w)}function g(O){var w=function y(){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 R,k=E(O);if(w){var P=E(this).constructor;R=Reflect.construct(k,arguments,P)}else R=k.apply(this,arguments);return x(this,R)}}function x(O,w){if(w&&("object"===C(w)||"function"==typeof w))return w;if(void 0!==w)throw new TypeError("Derived constructors may only return object or undefined");return function b(O){if(void 0===O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}(O)}function E(O){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)})(O)}var S=function(O){d(T,O);var w=g(T);function T(k,R,P){var B;return function f(O,w){if(!(O instanceof w))throw new TypeError("Cannot call a class as a function")}(this,T),(B=w.call(this,k,R)).selection=P,B.textNode=document.createTextNode(T.CONTENTS),B.domNode.appendChild(B.textNode),B.savedLength=0,B}return function p(O,w,T){return w&&a(O.prototype,w),T&&a(O,T),O}(T,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(R,P){if(0===this.savedLength){for(var B=this,W=0;null!=B&&B.statics.scope!==c.Scope.BLOCK_BLOT;)W+=B.offset(B.parent),B=B.parent;null!=B&&(this.savedLength=T.CONTENTS.length,B.optimize(),B.formatAt(W,T.CONTENTS.length,R,P),this.savedLength=0)}else s(E(T.prototype),"format",this).call(this,R,P)}},{key:"index",value:function(R,P){return R===this.textNode?0:s(E(T.prototype),"index",this).call(this,R,P)}},{key:"length",value:function(){return this.savedLength}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(E(T.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(this.selection.composing||null==this.parent)return null;for(var R=this.selection.getNativeRange();null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);var K,P=this.prev instanceof I.a?this.prev:null,B=P?P.length():0,W=this.next instanceof I.a?this.next:null,N=W?W.text:"",V=this.textNode,U=V.data.split(T.CONTENTS).join("");if(V.data=T.CONTENTS,P)K=P,(U||W)&&(P.insertAt(P.length(),U+N),W&&W.remove());else if(W)K=W,W.insertAt(0,U);else{var Y=document.createTextNode(U);K=this.scroll.create(Y),this.parent.insertBefore(K,this)}if(this.remove(),R){var J=function(q,Z){return P&&q===P.domNode?Z:q===V?B+Z-1:W&&q===W.domNode?B+U.length+Z:null},j=J(R.start.node,R.start.offset),ee=J(R.end.node,R.end.offset);if(null!==j&&null!==ee)return{startNode:K.domNode,startOffset:j,endNode:K.domNode,endOffset:ee}}return null}},{key:"update",value:function(R,P){var B=this;if(R.some(function(N){return"characterData"===N.type&&N.target===B.textNode})){var W=this.restore();W&&(P.range=W)}}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),T}(c.EmbedBlot);S.blotName="cursor",S.className="ql-cursor",S.tagName="span",S.CONTENTS="\ufeff",l.a=S},function(he,l,o){"use strict";o.r(l);var c=o(0),I=o(6),C=o(10),f=o(13),a=o(24),p=o(56),s=o(14),u=o(18),d=o(9),h=o(26),g=o(50),x=o(27),b=o(59);c.a.register({"blots/block":I.d,"blots/block/embed":I.a,"blots/break":C.a,"blots/container":f.a,"blots/cursor":a.a,"blots/embed":p.a,"blots/inline":s.a,"blots/scroll":u.a,"blots/text":d.a,"modules/clipboard":h.b,"modules/history":g.a,"modules/keyboard":x.b,"modules/uploader":b.a}),l.default=c.a},function(he,l,o){"use strict";o.d(l,"b",function(){return fe}),o.d(l,"d",function(){return Ee}),o.d(l,"a",function(){return _e}),o.d(l,"c",function(){return ie});var c=o(1),I=o.n(c),C=o(2),f=o(6),a=o(0),p=o(23),s=o(12),u=o(38),d=o(45),h=o(17),g=o(34),x=o(35),b=o(46),y=o(47),E=o(27),S=o(31);function O(ke,$e){var me=Object.keys(ke);if(Object.getOwnPropertySymbols){var xe=Object.getOwnPropertySymbols(ke);$e&&(xe=xe.filter(function(Te){return Object.getOwnPropertyDescriptor(ke,Te).enumerable})),me.push.apply(me,xe)}return me}function w(ke){for(var $e=1;$e<arguments.length;$e++){var me=null!=arguments[$e]?arguments[$e]:{};$e%2?O(Object(me),!0).forEach(function(xe){k(ke,xe,me[xe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ke,Object.getOwnPropertyDescriptors(me)):O(Object(me)).forEach(function(xe){Object.defineProperty(ke,xe,Object.getOwnPropertyDescriptor(me,xe))})}return ke}function T(ke){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(me){return typeof me}:function(me){return me&&"function"==typeof Symbol&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me})(ke)}function k(ke,$e,me){return $e in ke?Object.defineProperty(ke,$e,{value:me,enumerable:!0,configurable:!0,writable:!0}):ke[$e]=me,ke}function R(ke,$e){return function V(ke){if(Array.isArray(ke))return ke}(ke)||function N(ke,$e){var me=null==ke?null:typeof Symbol<"u"&&ke[Symbol.iterator]||ke["@@iterator"];if(null!=me){var St,Ct,xe=[],Te=!0,Ye=!1;try{for(me=me.call(ke);!(Te=(St=me.next()).done)&&(xe.push(St.value),!$e||xe.length!==$e);Te=!0);}catch(Rt){Ye=!0,Ct=Rt}finally{try{!Te&&null!=me.return&&me.return()}finally{if(Ye)throw Ct}}return xe}}(ke,$e)||function B(ke,$e){if(ke){if("string"==typeof ke)return W(ke,$e);var me=Object.prototype.toString.call(ke).slice(8,-1);if("Object"===me&&ke.constructor&&(me=ke.constructor.name),"Map"===me||"Set"===me)return Array.from(ke);if("Arguments"===me||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return W(ke,$e)}}(ke,$e)||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 W(ke,$e){(null==$e||$e>ke.length)&&($e=ke.length);for(var me=0,xe=new Array($e);me<$e;me++)xe[me]=ke[me];return xe}function K(ke,$e){for(var me=0;me<$e.length;me++){var xe=$e[me];xe.enumerable=xe.enumerable||!1,xe.configurable=!0,"value"in xe&&(xe.writable=!0),Object.defineProperty(ke,xe.key,xe)}}function J(ke,$e){if("function"!=typeof $e&&null!==$e)throw new TypeError("Super expression must either be null or a function");ke.prototype=Object.create($e&&$e.prototype,{constructor:{value:ke,writable:!0,configurable:!0}}),$e&&j(ke,$e)}function j(ke,$e){return(j=Object.setPrototypeOf||function(xe,Te){return xe.__proto__=Te,xe})(ke,$e)}function ee(ke){var $e=function Z(){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 Te,xe=X(ke);if($e){var Ye=X(this).constructor;Te=Reflect.construct(xe,arguments,Ye)}else Te=xe.apply(this,arguments);return G(this,Te)}}function G(ke,$e){if($e&&("object"===T($e)||"function"==typeof $e))return $e;if(void 0!==$e)throw new TypeError("Derived constructors may only return object or undefined");return q(ke)}function q(ke){if(void 0===ke)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ke}function X(ke){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(me){return me.__proto__||Object.getPrototypeOf(me)})(ke)}var M=Object(p.a)("quill:clipboard"),De=[[3,nn],[3,tt],["br",function oe(ke,$e){return ie($e,"\n")||$e.insert("\n"),$e}],[1,tt],[1,function re(ke,$e,me){var xe=me.query(ke);if(null==xe)return $e;if(xe.prototype instanceof C.EmbedBlot){var Te={},Ye=xe.value(ke);if(null!=Ye)return Te[xe.blotName]=Ye,(new I.a).insert(Te,xe.formats(ke,me))}else if(xe.prototype instanceof C.BlockBlot&&!ie($e,"\n")&&$e.insert("\n"),"function"==typeof xe.formats)return _e($e,xe.blotName,xe.formats(ke,me));return $e}],[1,function te(ke,$e,me){if(-1===["TD","TH","TR","TABLE"].indexOf(ke.tagName)){var xe=C.Attributor.keys(ke),Te=C.ClassAttributor.keys(ke),Ye=C.StyleAttributor.keys(ke),St={};if(xe.concat(Te).concat(Ye).forEach(function(Ct){var Rt=me.query(Ct,C.Scope.ATTRIBUTE);null!=Rt&&(St[Rt.attrName]=Rt.value(ke),St[Rt.attrName])||(null!=(Rt=Ae[Ct])&&(Rt.attrName===Ct||Rt.keyName===Ct)&&(St[Rt.attrName]=Rt.value(ke)||void 0),null!=(Rt=ne[Ct])&&(Rt.attrName===Ct||Rt.keyName===Ct)&&(St[(Rt=ne[Ct]).attrName]=Rt.value(ke)||void 0))}),Object.keys(St).length>0)return _e($e,St)}return $e}],[1,function Be(ke,$e){var me={},xe=ke.style||{};return["height","width"].forEach(function(Te){var Ye=-1!==["TD","TH"].indexOf(ke.tagName),St="TABLE"===ke.tagName;if((Ye||St)&&xe[Te]){var Ct="".concat(St?"table":"cell").concat(Object(S.a)(Te));me[Ct]=xe[Te]}}),"italic"===xe.fontStyle&&(me.italic=!0),-1!==xe.textDecoration.indexOf("underline")&&(me.underline=!0),-1!==xe.textDecoration.indexOf("line-through")&&(me.strike=!0),(0===xe.fontWeight.indexOf("bold")||parseInt(xe.fontWeight,10)>=700)&&(me.bold=!0),Object.keys(me).length>0&&($e=_e($e,me)),parseFloat(xe.textIndent||0)>0?(new I.a).insert("\t").concat($e):$e}],["li",function Ne(ke,$e,me){var xe=me.query(ke);if(null==xe||"list"!==xe.blotName||!ie($e,"\n"))return $e;for(var Te=-1,Ye=ke.parentNode;null!=Ye;)-1!==["OL","UL"].indexOf(Ye.tagName)&&(Te+=1),Ye=Ye.parentNode;return Te<=0?$e:$e.reduce(function(St,Ct){return Ct.attributes&&"number"==typeof Ct.attributes.indent?St.push(Ct):St.insert(Ct.insert,w({indent:Te},Ct.attributes||{}))},new I.a)}],["ol, ul",function ft(ke,$e){return _e($e,"list","OL"===ke.tagName?"ordered":"bullet")}],["pre",function ye(ke,$e,me){var xe=me.query("code-block");return _e($e,"code-block",!xe||xe.formats(ke,me))}],["b",ae.bind(ae,"bold")],["i",ae.bind(ae,"italic")],["strike",ae.bind(ae,"strike")],["style",function Pe(){return new I.a}]],Fe=[nn,tt],Ae=[u.a,x.a].reduce(function(ke,$e){return ke[$e.keyName]=$e,ke},{}),ne=[u.c,d.b,g.c,x.c,b.b,y.b].reduce(function(ke,$e){return ke[$e.keyName]=$e,ke},{}),fe=function(ke){J(me,ke);var $e=ee(me);function me(xe,Te){var Ye,St;return function U(ke,$e){if(!(ke instanceof $e))throw new TypeError("Cannot call a class as a function")}(this,me),(St=$e.call(this,xe,Te)).quill.root.addEventListener("copy",function(Ct){return St.onCaptureCopy(Ct,!1)}),St.quill.root.addEventListener("cut",function(Ct){return St.onCaptureCopy(Ct,!0)}),St.quill.root.addEventListener("paste",St.onCapturePaste.bind(q(St))),St.matchers=[],St.tableBlots=null!==(Ye=Te.tableBlots)&&void 0!==Ye?Ye:[],De.concat(St.options.matchers).forEach(function(Ct){var Rt=R(Ct,2);St.addMatcher(Rt[0],Rt[1])}),St}return function Y(ke,$e,me){return $e&&K(ke.prototype,$e),me&&K(ke,me),ke}(me,[{key:"addMatcher",value:function(Te,Ye){this.matchers.push([Te,Ye])}},{key:"addTableBlot",value:function(Te){this.tableBlots.push(Te)}},{key:"convert",value:function(Te){var Ye=Te.html,St=Te.text,Ct=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ct[h.c.blotName]?(new I.a).insert(St,k({},h.c.blotName,Ct[h.c.blotName])):Ye?this.applyMatchers(Ye,Ct):this.applyTextMatchers(St)}},{key:"applyTextMatchers",value:function(){var Te=this,Ye=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(0===Ye.length)return new I.a;var St=this.prepareTextMatching(),Ct=this.quill.root.ownerDocument.createElement("div");Ct.textContent=Ye;var Rt=Ct.childNodes[0];return St.reduce(function(fn,ct){return ct(Rt,fn,Te.quill.scroll)},new I.a)}},{key:"applyMatchers",value:function(Te){var Ye=this,St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Rt=(new DOMParser).parseFromString(Te,"text/html").body,fn=new WeakMap,He=R(this.prepareMatching(Rt,fn),2),Ht=Ee(this.quill.scroll,Rt,He[0],He[1],fn);return ie(Ht,"\n")&&(null==Ht.ops[Ht.ops.length-1].attributes||Object.values(St).some(function(dt){return Ye.tableBlots.includes(dt)}))?Ht.compose((new I.a).retain(Ht.length()-1).delete(1)):Ht}},{key:"dangerouslyPasteHTML",value:function(Te,Ye){var St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.a.sources.API;if("string"==typeof Te){var Ct=this.convert({html:Te,text:""});this.quill.setContents(Ct,Ye),this.quill.setSelection(0,a.a.sources.SILENT)}else{var Rt=this.convert({html:Ye,text:""});this.quill.updateContents((new I.a).retain(Te).concat(Rt),St),this.quill.setSelection(Te+Rt.length(),a.a.sources.SILENT)}}},{key:"onCaptureCopy",value:function(Te){var Ye=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Te.defaultPrevented){if(!Te.clipboardData)return;Te.preventDefault();var Rt=R(this.quill.selection.getRange(),1)[0];if(null!=Rt){var fn=this.onCopy(Rt,Ye),ct=fn.html;Te.clipboardData.setData("text/plain",fn.text),Te.clipboardData.setData("text/html",ct),Ye&&(this.raiseCallback("onCut",Te),Object(E.c)({range:Rt,quill:this.quill}))}}}},{key:"onCapturePaste",value:function(Te){if(!Te.defaultPrevented&&this.quill.isEnabled()){if(this.raiseCallback("onPaste",Te),!Te.clipboardData)return;Te.preventDefault();var Ye=this.quill.getSelection(!0);if(null!=Ye){var St=Te.clipboardData.getData("text/html"),Ct=Array.from(Te.clipboardData.files||[]);if(!St&&Ct.length>0)return void this.quill.uploader.upload(Ye,Ct);if(St&&Ct.length>0){var fn=(new DOMParser).parseFromString(St,"text/html").body;if(1===fn.childElementCount&&"IMG"===fn.firstElementChild.tagName)return void this.quill.uploader.upload(Ye,Ct)}var He=Te.clipboardData.getData("text/plain");this.onPaste(Ye,{html:St,text:He})}}}},{key:"raiseCallback",value:function(Te,Ye){var St=this.options[Te];St&&"function"==typeof St&&St(Ye)}},{key:"onCopy",value:function(Te){var Ye=this.quill.getText(Te);return{html:this.quill.getSemanticHTML(Te),text:Ye}}},{key:"onPaste",value:function(Te,Ye){var St=Ye.text,Ct=Ye.html,Rt=this.quill.getFormat(Te.index),fn=this.convert({text:St,html:Ct},Rt);M.log("onPaste",fn,{text:St,html:Ct});var ct=(new I.a).retain(Te.index).delete(Te.length).concat(fn);this.quill.updateContents(ct,a.a.sources.USER),this.quill.setSelection(ct.length()-Te.length,a.a.sources.SILENT),this.quill.scrollIntoView()}},{key:"prepareMatching",value:function(Te,Ye){var St=[],Ct=[];return this.matchers.forEach(function(Rt){var fn=R(Rt,2),ct=fn[0],He=fn[1];switch(ct){case 3:Ct.push(He);break;case 1:St.push(He);break;default:Array.from(Te.querySelectorAll(ct)).forEach(function(Dt){Ye.has(Dt)?Ye.get(Dt).push(He):Ye.set(Dt,[He])})}}),[St,Ct]}},{key:"prepareTextMatching",value:function(){var Te=[mt];return this.matchers.forEach(function(Ye){var St=R(Ye,2),Ct=St[0],Rt=St[1];-1===Fe.indexOf(Rt)&&3===Ct&&Te.push(Rt)}),Te}}]),me}(s.a);function _e(ke,$e,me){return"object"===T($e)?Object.keys($e).reduce(function(xe,Te){return _e(xe,Te,$e[Te])},ke):ke.reduce(function(xe,Te){if(Te.attributes&&Te.attributes[$e])return xe.push(Te);var Ye=me?k({},$e,me):{};return xe.insert(Te.insert,w(w({},Ye),Te.attributes))},new I.a)}function ie(ke,$e){for(var me="",xe=ke.ops.length-1;xe>=0&&me.length<$e.length;--xe){var Te=ke.ops[xe];if("string"!=typeof Te.insert)break;me=Te.insert+me}return me.slice(-1*$e.length)===$e}function de(ke){return 0!==ke.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(ke.tagName.toLowerCase())}fe.DEFAULTS={matchers:[]};var le=new WeakMap;function pe(ke){return null!=ke&&(le.has(ke)||le.set(ke,"PRE"===ke.tagName||pe(ke.parentNode)),le.get(ke))}function Ee(ke,$e,me,xe,Te){return $e.nodeType===$e.TEXT_NODE?xe.reduce(function(Ye,St){return St($e,Ye,ke)},new I.a):$e.nodeType===$e.ELEMENT_NODE?Array.from($e.childNodes||[]).reduce(function(Ye,St){var Ct=Ee(ke,St,me,xe,Te);return St.nodeType===$e.ELEMENT_NODE&&(Ct=me.reduce(function(Rt,fn){return fn(St,Rt,ke)},Ct),Ct=(Te.get(St)||[]).reduce(function(Rt,fn){return fn(St,Rt,ke)},Ct)),Ye.concat(Ct)},new I.a):new I.a}function ae(ke,$e,me){return _e(me,ke,!0)}function tt(ke,$e,me){if(!ie($e,"\n")){if(de(ke))return $e.insert("\n");if($e.length()>0&&ke.nextSibling)for(var xe=ke.nextSibling;null!=xe;){if(de(xe))return $e.insert("\n");if(me.query(xe)?.prototype instanceof f.a)return $e.insert("\n");xe=xe.firstChild}}return $e}function mt(ke,$e){var me=ke.data||"";return me=me.replace(/\r\n/g,"\n"),$e.insert(me)}function nn(ke,$e){var me=ke.data;if("O:P"===ke.parentNode.tagName)return $e.insert(me.trim());if(0===me.trim().length&&-1!==me.indexOf("\n"))return $e;if(!pe(ke)){var xe=function(Ye,St){var Ct=St.replace(/[^\u00a0]/g,"");return Ct.length<1&&Ye?" ":Ct};me=(me=me.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,xe.bind(xe,!0)),(null==ke.previousSibling&&de(ke.parentNode)||null!=ke.previousSibling&&de(ke.previousSibling))&&(me=me.replace(/^\s+/,xe.bind(xe,!1))),(null==ke.nextSibling&&de(ke.parentNode)||null!=ke.nextSibling&&de(ke.nextSibling))&&(me=me.replace(/\s+$/,xe.bind(xe,!1)))}return $e.insert(me)}},function(he,l,o){"use strict";o.d(l,"b",function(){return M}),o.d(l,"a",function(){return X}),o.d(l,"d",function(){return Fe}),o.d(l,"c",function(){return Ae});var c=o(16),I=o.n(c),C=o(30),f=o.n(C),a=o(1),p=o.n(a),s=o(2),u=o(0),d=o(23),h=o(12),g=o(15);function b(ne){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_e){return typeof _e}:function(_e){return _e&&"function"==typeof Symbol&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e})(ne)}function y(ne,fe){return function T(ne){if(Array.isArray(ne))return ne}(ne)||function w(ne,fe){var _e=null==ne?null:typeof Symbol<"u"&&ne[Symbol.iterator]||ne["@@iterator"];if(null!=_e){var pe,Ee,ie=[],de=!0,le=!1;try{for(_e=_e.call(ne);!(de=(pe=_e.next()).done)&&(ie.push(pe.value),!fe||ie.length!==fe);de=!0);}catch(ae){le=!0,Ee=ae}finally{try{!de&&null!=_e.return&&_e.return()}finally{if(le)throw Ee}}return ie}}(ne,fe)||function S(ne,fe){if(ne){if("string"==typeof ne)return O(ne,fe);var _e=Object.prototype.toString.call(ne).slice(8,-1);if("Object"===_e&&ne.constructor&&(_e=ne.constructor.name),"Map"===_e||"Set"===_e)return Array.from(ne);if("Arguments"===_e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_e))return O(ne,fe)}}(ne,fe)||function E(){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(ne,fe){(null==fe||fe>ne.length)&&(fe=ne.length);for(var _e=0,ie=new Array(fe);_e<fe;_e++)ie[_e]=ne[_e];return ie}function k(ne,fe){var _e=Object.keys(ne);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(ne);fe&&(ie=ie.filter(function(de){return Object.getOwnPropertyDescriptor(ne,de).enumerable})),_e.push.apply(_e,ie)}return _e}function R(ne){for(var fe=1;fe<arguments.length;fe++){var _e=null!=arguments[fe]?arguments[fe]:{};fe%2?k(Object(_e),!0).forEach(function(ie){P(ne,ie,_e[ie])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(_e)):k(Object(_e)).forEach(function(ie){Object.defineProperty(ne,ie,Object.getOwnPropertyDescriptor(_e,ie))})}return ne}function P(ne,fe,_e){return fe in ne?Object.defineProperty(ne,fe,{value:_e,enumerable:!0,configurable:!0,writable:!0}):ne[fe]=_e,ne}function W(ne,fe){for(var _e=0;_e<fe.length;_e++){var ie=fe[_e];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(ne,ie.key,ie)}}function V(ne,fe){if("function"!=typeof fe&&null!==fe)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(fe&&fe.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),fe&&U(ne,fe)}function U(ne,fe){return(U=Object.setPrototypeOf||function(ie,de){return ie.__proto__=de,ie})(ne,fe)}function K(ne){var fe=function j(){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 de,ie=ee(ne);if(fe){var le=ee(this).constructor;de=Reflect.construct(ie,arguments,le)}else de=ie.apply(this,arguments);return Y(this,de)}}function Y(ne,fe){if(fe&&("object"===b(fe)||"function"==typeof fe))return fe;if(void 0!==fe)throw new TypeError("Derived constructors may only return object or undefined");return function J(ne){if(void 0===ne)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}(ne)}function ee(ne){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(_e){return _e.__proto__||Object.getPrototypeOf(_e)})(ne)}var G=Object(d.a)("quill:keyboard"),q={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"},Z={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"},X=Object(g.a)()&&/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",M=function(ne){V(_e,ne);var fe=K(_e);function _e(ie,de){var le;return function B(ne,fe){if(!(ne instanceof fe))throw new TypeError("Cannot call a class as a function")}(this,_e),(le=fe.call(this,ie,de)).bindings={},Object.keys(le.options.bindings).forEach(function(pe){le.options.bindings[pe]&&le.addBinding(le.options.bindings[pe])}),le.addInternalBindings(),le.listen(),le}return function N(ne,fe,_e){return fe&&W(ne.prototype,fe),_e&&W(ne,_e),ne}(_e,[{key:"addInternalBindings",value:function(){var de=this;this.quill.once(u.a.events.CONTENT_SETTED,function(){de.addBinding({key:"enter",shiftKey:null},de.handleEnter),de.addBinding({key:"enter",metaKey:null,ctrlKey:null,altKey:null},function(){}),Object(g.a)()&&/Firefox/i.test(navigator.userAgent)?(de.addBinding({key:"backspace"},{collapsed:!0},de.handleBackspace),de.addBinding({key:"del"},{collapsed:!0},de.handleDelete)):(de.addBinding({key:"backspace"},{collapsed:!0,prefix:/^.?$/},de.handleBackspace),de.addBinding({key:"del"},{collapsed:!0,suffix:/^.?$/},de.handleDelete)),de.addBinding({key:"backspace"},{collapsed:!1},de.handleDeleteRange),de.addBinding({key:"del"},{collapsed:!1},de.handleDeleteRange),de.addBinding({key:"backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},de.handleBackspace)})}},{key:"addBinding",value:function(de){var le=this,pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ae=Fe(de);if(null!=ae){"function"==typeof pe&&(pe={handler:pe}),"function"==typeof Ee&&(Ee={handler:Ee});var te=ae.which?"which":"key";(Array.isArray(ae[te])?ae[te]:[ae[te]]).forEach(function(oe){var ye=R(R(R({},ae),{},{key:oe},pe),Ee);le.bindings[ye.key]=le.bindings[ye.key]||[],le.bindings[ye.key].push(ye)})}else G.warn("Attempted to add invalid keyboard binding",ae)}},{key:"listen",value:function(){var de=this;this.quill.root.addEventListener("keydown",function(le){if(!le.defaultPrevented&&!le.isComposing){de.raiseOnKeydownCallback(le);var pe=_e.normalizeKeyName(le),ae=(de.bindings[pe]||[]).concat(de.bindings[le.which]||[]).filter(function(St){return _e.match(le,St)});if(0!==ae.length){var te=de.quill.getSelection();if(null!=te&&de.quill.hasFocus()){var oe=y(de.quill.getLine(te.index),2),ye=oe[0],Pe=oe[1],ft=y(de.quill.getLeaf(te.index),2),tt=ft[0],Be=ft[1],nn=y(0===te.length?[tt,Be]:de.quill.getLeaf(te.index+te.length),2),ke=nn[0],$e=nn[1],me=tt instanceof s.TextBlot?tt.value().slice(0,Be):"",xe=ke instanceof s.TextBlot?ke.value().slice($e):"",Te={collapsed:0===te.length,empty:0===te.length&&ye.length()<=1,format:de.quill.getFormat(te),line:ye,offset:Pe,prefix:me,suffix:xe,event:le},Ye=!1;ae.some(function(St){if(null!=St.collapsed&&St.collapsed!==Te.collapsed||null!=St.empty&&St.empty!==Te.empty||null!=St.offset&&St.offset!==Te.offset)return!1;if(Array.isArray(St.format)){if(St.format.every(function(fn){return null==Te.format[fn]}))return!1}else if("object"===b(St.format)&&!Object.keys(St.format).every(function(fn){return!0===St.format[fn]?null!=Te.format[fn]:!1===St.format[fn]?null==Te.format[fn]:f()(St.format[fn],Te.format[fn])}))return!1;if(null!=St.prefix&&!St.prefix.test(Te.prefix)||null!=St.suffix&&!St.suffix.test(Te.suffix))return!1;var Ct=St.handler.call(de,te,Te,St),Rt=Ct?.preventAfterAllMatches;return(Ye=!0!==Ct||Rt)&&!Rt}),Ye&&le.preventDefault()}}}})}},{key:"raiseOnKeydownCallback",value:function(de){var le=this.options.onKeydown;le&&"function"==typeof le&&le(de)}},{key:"handleBackspace",value:function(de,le){var pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(le.prefix)?2:1;if(!(0===de.index||this.quill.getLength()<=1)){var Ee={},re=y(this.quill.getLine(de.index),1)[0],oe=(new p.a).retain(de.index-pe).delete(pe);if(0===le.offset){var Ne=y(this.quill.getLine(de.index-1),1)[0];if(Ne&&!("block"===Ne.statics.blotName&&Ne.length()<=1)){var tt=re.formats(),Be=this.quill.getFormat(de.index-1,1);if(Ee=a.AttributeMap.diff(tt,Be)||{},Object.keys(Ee).length>0){var mt=(new p.a).retain(de.index+re.length()-2).retain(1,Ee);oe=oe.compose(mt)}}}this.quill.updateContents(oe,u.a.sources.USER),this.quill.focus()}}},{key:"handleDelete",value:function(de,le){var pe=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(le.suffix)?2:1;if(!(de.index>=this.quill.getLength()-pe)){var Ee={},re=y(this.quill.getLine(de.index),1)[0],oe=(new p.a).retain(de.index).delete(pe);if(le.offset>=re.length()-1){var Ne=y(this.quill.getLine(de.index+1),1)[0];if(Ne){var ft=re.formats(),tt=this.quill.getFormat(de.index,1);Ee=a.AttributeMap.diff(ft,tt)||{},Object.keys(Ee).length>0&&(oe=oe.retain(Ne.length()-1).retain(1,Ee))}}this.quill.updateContents(oe,u.a.sources.USER),this.quill.focus()}}},{key:"handleDeleteRange",value:function(de,le){this.raiseOnKeydownCallback(le.event),Ae({range:de,quill:this.quill}),this.quill.focus()}},{key:"handleEnter",value:function(de,le){var pe=this,Ee=Object.keys(le.format).reduce(function(Pe,Ne){return pe.quill.scroll.query(Ne,s.Scope.BLOCK)&&!Array.isArray(le.format[Ne])&&(Pe[Ne]=le.format[Ne]),Pe},{}),ae=(new p.a).retain(de.index).delete(de.length).insert("\n",Ee);this.quill.updateContents(ae,u.a.sources.USER),this.quill.setSelection(de.index+1,u.a.sources.SILENT),this.quill.focus();var oe=y(this.quill.getLine(de.index+1),1)[0],ye=function x(ne){var _e=window.innerHeight,ie=ne.getBoundingClientRect();return ie.y<0||!(ie.bottom>=_e)&&null}(oe.domNode);null!==ye&&oe.domNode.scrollIntoView(ye),Object.keys(le.format).forEach(function(Pe){null==Ee[Pe]&&(Array.isArray(le.format[Pe])||"code"===Pe||"link"===Pe||(pe.raiseOnKeydownCallback(le.event),pe.quill.format(Pe,le.format[Pe],u.a.sources.USER)))})}}],[{key:"match",value:function(de,le){return!["altKey","ctrlKey","metaKey","shiftKey"].some(function(pe){return!!le[pe]!==de[pe]&&null!==le[pe]})&&(le.key===_e.normalizeKeyName(de)||le.key===de.which)}},{key:"normalizeKeyName",value:function(de){var le=de.key,Ee=!!le,ae=Ee?le:de.which;return ae&&(ae=Ee?q[ae.toLowerCase()]||ae:Z[ae]||String.fromCharCode(ae)),ae}}]),_e}(h.a);function se(ne){return{key:"tab",shiftKey:!ne,format:{"code-block":!0},handler:function(_e){var ie=this.quill.scroll.query("code-block"),de=0===_e.length?this.quill.getLines(_e.index,1):this.quill.getLines(_e),le=_e.index,pe=_e.length;de.forEach(function(Ee,ae){ne?(Ee.insertAt(0,ie.TAB),0===ae?le+=ie.TAB.length:pe+=ie.TAB.length):0===Ee.domNode.textContent.indexOf(ie.TAB)&&(Ee.deleteAt(0,ie.TAB.length),0===ae?le-=ie.TAB.length:pe-=ie.TAB.length)}),this.quill.update(u.a.sources.USER),this.quill.setSelection(le,pe,u.a.sources.SILENT)}}}function ge(ne,fe){var _e;return P(_e={key:ne,shiftKey:fe,altKey:null},"leftArrow"===ne?"prefix":"suffix",/^$/),P(_e,"handler",function(le){var pe=le.index;return"rightArrow"===ne&&(pe+=le.length+1),!(y(this.quill.getLeaf(pe),1)[0]instanceof s.EmbedBlot&&("leftArrow"===ne?fe?this.quill.setSelection(le.index-1,le.length+1,u.a.sources.USER):this.quill.setSelection(le.index-1,u.a.sources.USER):fe?this.quill.setSelection(le.index,le.length+1,u.a.sources.USER):this.quill.setSelection(le.index+le.length+1,u.a.sources.USER),1))}),_e}function De(ne,fe){return{key:ne[0],which:fe,shortKey:!0,handler:function(ie,de){return this.quill.format(ne,!de.format[ne],u.a.sources.USER),{preventAfterAllMatches:!0}}}}function Fe(ne){if("string"==typeof ne||"number"==typeof ne)ne={key:ne};else{if("object"!==b(ne))return null;ne=I()(ne)}return ne.shortKey&&(ne[X]=ne.shortKey,delete ne.shortKey),ne}function Ae(ne){var fe=ne.quill,_e=ne.range,ie=fe.getLines(_e),de={};if(ie.length>1){var le=ie[0].formats(),pe=ie[ie.length-1].formats();de=a.AttributeMap.diff(pe,le)||{}}fe.deleteText(_e,u.a.sources.USER),Object.keys(de).length>0&&fe.formatLine(_e.index,1,de,u.a.sources.USER),fe.setSelection(_e.index,u.a.sources.SILENT)}M.DEFAULTS={bindings:{bold:De("bold",66),italic:De("italic",73),underline:De("underline",85),indent:{key:"tab",format:["blockquote","indent","list"],handler:function(fe,_e){return!(!_e.collapsed||0===_e.offset)||(this.quill.format("indent","+1",u.a.sources.USER),!1)}},outdent:{key:"tab",shiftKey:!0,format:["blockquote","indent","list"],handler:function(fe,_e){return!(!_e.collapsed||0===_e.offset)||(this.quill.format("indent","-1",u.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(fe,_e){null!=_e.format.indent?this.quill.format("indent","-1",u.a.sources.USER):null!=_e.format.list&&this.quill.format("list",!1,u.a.sources.USER)}},"indent code-block":se(!0),"outdent code-block":se(!1),"remove tab":{key:"tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(fe){this.quill.deleteText(fe.index-1,1,u.a.sources.USER)}},tab:{key:"tab",handler:function(fe,_e){if(_e.format.table)return!0;this.quill.history.cutoff();var ie=(new p.a).retain(fe.index).delete(fe.length).insert("\t");return this.quill.updateContents(ie,u.a.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(fe.index+1,u.a.sources.SILENT),!1}},"blockquote empty enter":{key:"enter",collapsed:!0,format:["blockquote"],empty:!0,handler:function(){this.quill.format("blockquote",!1,u.a.sources.USER)}},"list empty enter":{key:"enter",collapsed:!0,format:["list"],empty:!0,handler:function(fe,_e){var ie={list:!1};_e.format.indent&&(ie.indent=!1),this.quill.formatLine(fe.index,fe.length,ie,u.a.sources.USER)}},"checklist enter":{key:"enter",collapsed:!0,format:{list:"checked"},handler:function(fe){var ie=y(this.quill.getLine(fe.index),2),de=ie[0],le=ie[1],pe=R(R({},de.formats()),{},{list:"checked"}),Ee=(new p.a).retain(fe.index).insert("\n",pe).retain(de.length()-le-1).retain(1,{list:"unchecked"});this.quill.updateContents(Ee,u.a.sources.USER),this.quill.setSelection(fe.index+1,u.a.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:"enter",collapsed:!0,format:["header"],suffix:/^$/,handler:function(fe,_e){var de=y(this.quill.getLine(fe.index),2),le=de[0],pe=de[1],Ee=(new p.a).retain(fe.index).insert("\n",_e.format).retain(le.length()-pe-1).retain(1,{header:null});this.quill.updateContents(Ee,u.a.sources.USER),this.quill.setSelection(fe.index+1,u.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(fe,_e){if(null==this.quill.scroll.query("list"))return!0;var ae,ie=_e.prefix.length,le=y(this.quill.getLine(fe.index),2),pe=le[0],Ee=le[1];if(Ee>ie)return!0;switch(_e.prefix.trim()){case"[]":case"[ ]":ae="unchecked";break;case"[x]":ae="checked";break;case"-":case"*":ae="bullet";break;default:ae="ordered"}this.quill.insertText(fe.index," ",u.a.sources.USER),this.quill.history.cutoff();var te=(new p.a).retain(fe.index-Ee).delete(ie+1).retain(pe.length()-2-Ee).retain(1,{list:ae});return this.raiseOnKeydownCallback(_e.event),this.quill.updateContents(te,u.a.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(fe.index-ie,u.a.sources.SILENT),!1}},"code exit":{key:"enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler:function(fe){for(var ie=y(this.quill.getLine(fe.index),2),de=ie[0],le=ie[1],pe=2,Ee=de;null!=Ee&&Ee.length()<=1&&Ee.formats()["code-block"];)if(Ee=Ee.prev,(pe-=1)<=0){var ae=(new p.a).retain(fe.index+de.length()-le-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(ae,u.a.sources.USER),this.quill.setSelection(fe.index-1,u.a.sources.SILENT),!1}return!0}},"embed left":ge("leftArrow",!1),"embed left shift":ge("leftArrow",!0),"embed right":ge("rightArrow",!1),"embed right shift":ge("rightArrow",!0)}}},function(he,l,o){var c=o(8),I=o(96),C=o(36),f=o(97),a=o(98),p=o(99),s=I("wks"),u=c.Symbol,d=u&&u.for,h=p?u:u&&u.withoutSetter||f;he.exports=function(g){if(!C(s,g)||!a&&"string"!=typeof s[g]){var x="Symbol."+g;s[g]=a&&C(u,g)?u[g]:p&&d?d(x):h(x)}return s[g]}},function(he,l,o){"use strict";o.d(l,"c",function(){return I}),o.d(l,"a",function(){return C}),o.d(l,"b",function(){return f});var c=o(19);function I(a){var p=this.keyName;this.keyName=Object(c.c)(this.keyName);for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d<s;d++)u[d-1]=arguments[d];var h=a.call.apply(a,[this].concat(u));return this.keyName=p,h}function C(a,p,s){return this.allowedTags.indexOf(p.tagName)>-1&&a.call(this,p,s)}function f(a,p,s){return a(p).map(function(u){return Object(c.b)(p.tagName,u,s)})}},function(he,l,o){(function(c,I){var f="__lodash_hash_undefined__",s=9007199254740991,u="[object Arguments]",d="[object Array]",g="[object Boolean]",x="[object Date]",b="[object Error]",y="[object Function]",S="[object Map]",O="[object Number]",T="[object Object]",k="[object Promise]",P="[object RegExp]",B="[object Set]",W="[object String]",N="[object Symbol]",U="[object WeakMap]",K="[object ArrayBuffer]",Y="[object DataView]",De=/^\[object .+?Constructor\]$/,Fe=/^(?:0|[1-9]\d*)$/,Ae={};Ae["[object Float32Array]"]=Ae["[object Float64Array]"]=Ae["[object Int8Array]"]=Ae["[object Int16Array]"]=Ae["[object Int32Array]"]=Ae["[object Uint8Array]"]=Ae["[object Uint8ClampedArray]"]=Ae["[object Uint16Array]"]=Ae["[object Uint32Array]"]=!0,Ae[u]=Ae[d]=Ae[K]=Ae[g]=Ae[Y]=Ae[x]=Ae[b]=Ae[y]=Ae[S]=Ae[O]=Ae[T]=Ae[P]=Ae[B]=Ae[W]=Ae[U]=!1;var ne="object"==typeof c&&c&&c.Object===Object&&c,fe="object"==typeof self&&self&&self.Object===Object&&self,_e=ne||fe||Function("return this")(),ie=l&&!l.nodeType&&l,de=ie&&"object"==typeof I&&I&&!I.nodeType&&I,le=de&&de.exports===ie,pe=le&&ne.process,Ee=function(){try{return pe&&pe.binding&&pe.binding("util")}catch{}}(),ae=Ee&&Ee.isTypedArray;function oe(rt,Bt){for(var gt=-1,$t=null==rt?0:rt.length;++gt<$t;)if(Bt(rt[gt],gt,rt))return!0;return!1}function Ne(rt,Bt){return rt.has(Bt)}function tt(rt){var Bt=-1,gt=Array(rt.size);return rt.forEach(function($t,Un){gt[++Bt]=[Un,$t]}),gt}function mt(rt){var Bt=-1,gt=Array(rt.size);return rt.forEach(function($t){gt[++Bt]=$t}),gt}var rt,nn=Array.prototype,$e=Object.prototype,me=_e["__core-js_shared__"],xe=Function.prototype.toString,Te=$e.hasOwnProperty,Ye=(rt=/[^.]+$/.exec(me&&me.keys&&me.keys.IE_PROTO||""))?"Symbol(src)_1."+rt:"",St=$e.toString,Ct=RegExp("^"+xe.call(Te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=le?_e.Buffer:void 0,fn=_e.Symbol,ct=_e.Uint8Array,He=$e.propertyIsEnumerable,Dt=nn.splice,qe=fn?fn.toStringTag:void 0,Ht=Object.getOwnPropertySymbols,dt=Rt?Rt.isBuffer:void 0,ht=function Be(rt,Bt){return function(gt){return rt(Bt(gt))}}(Object.keys,Object),yt=gi(_e,"DataView"),Ft=gi(_e,"Map"),bn=gi(_e,"Promise"),_n=gi(_e,"Set"),xn=gi(_e,"WeakMap"),Jn=gi(Object,"create"),li=Wt(yt),Ai=Wt(Ft),Vn=Wt(bn),Oi=Wt(_n),Hn=Wt(xn),Sn=fn?fn.prototype:void 0,An=Sn?Sn.valueOf:void 0;function ti(rt){var Bt=-1,gt=null==rt?0:rt.length;for(this.clear();++Bt<gt;){var $t=rt[Bt];this.set($t[0],$t[1])}}function di(rt){var Bt=-1,gt=null==rt?0:rt.length;for(this.clear();++Bt<gt;){var $t=rt[Bt];this.set($t[0],$t[1])}}function Rn(rt){var Bt=-1,gt=null==rt?0:rt.length;for(this.clear();++Bt<gt;){var $t=rt[Bt];this.set($t[0],$t[1])}}function kr(rt){var Bt=-1,gt=null==rt?0:rt.length;for(this.__data__=new Rn;++Bt<gt;)this.add(rt[Bt])}function xr(rt){var Bt=this.__data__=new di(rt);this.size=Bt.size}function oo(rt,Bt){var gt=mn(rt),$t=!gt&&qt(rt),Un=!gt&&!$t&&pt(rt),ai=!gt&&!$t&&!Un&&st(rt),Ci=gt||$t||Un||ai,Ii=Ci?function ye(rt,Bt){for(var gt=-1,$t=Array(rt);++gt<rt;)$t[gt]=Bt(gt);return $t}(rt.length,String):[],zi=Ii.length;for(var Ki in rt)(Bt||Te.call(rt,Ki))&&(!Ci||!("length"==Ki||Un&&("offset"==Ki||"parent"==Ki)||ai&&("buffer"==Ki||"byteLength"==Ki||"byteOffset"==Ki)||en(Ki,zi)))&&Ii.push(Ki);return Ii}function fi(rt,Bt){for(var gt=rt.length;gt--;)if(Ot(rt[gt][0],Bt))return gt;return-1}function Kr(rt){return null==rt?void 0===rt?"[object Undefined]":"[object Null]":qe&&qe in Object(rt)?function Ri(rt){var Bt=Te.call(rt,qe),gt=rt[qe];try{rt[qe]=void 0;var $t=!0}catch{}var Un=St.call(rt);return $t&&(Bt?rt[qe]=gt:delete rt[qe]),Un}(rt):function _t(rt){return St.call(rt)}(rt)}function to(rt){return Yn(rt)&&Kr(rt)==u}function uo(rt,Bt,gt,$t,Un){return rt===Bt||(null==rt||null==Bt||!Yn(rt)&&!Yn(Bt)?rt!=rt&&Bt!=Bt:function po(rt,Bt,gt,$t,Un,ai){var Ci=mn(rt),Ii=mn(Bt),zi=Ci?d:cr(rt),Ki=Ii?d:cr(Bt),Xi=(zi=zi==u?T:zi)==T,wr=(Ki=Ki==u?T:Ki)==T,vr=zi==Ki;if(vr&&pt(rt)){if(!pt(Bt))return!1;Ci=!0,Xi=!1}if(vr&&!Xi)return ai||(ai=new xr),Ci||st(rt)?_i(rt,Bt,gt,$t,Un,ai):function mi(rt,Bt,gt,$t,Un,ai,Ci){switch(gt){case Y:if(rt.byteLength!=Bt.byteLength||rt.byteOffset!=Bt.byteOffset)return!1;rt=rt.buffer,Bt=Bt.buffer;case K:return!(rt.byteLength!=Bt.byteLength||!ai(new ct(rt),new ct(Bt)));case g:case x:case O:return Ot(+rt,+Bt);case b:return rt.name==Bt.name&&rt.message==Bt.message;case P:case W:return rt==Bt+"";case S:var Ii=tt;case B:if(Ii||(Ii=mt),rt.size!=Bt.size&&!(1&$t))return!1;var Ki=Ci.get(rt);if(Ki)return Ki==Bt;$t|=2,Ci.set(rt,Bt);var Xi=_i(Ii(rt),Ii(Bt),$t,Un,ai,Ci);return Ci.delete(rt),Xi;case N:if(An)return An.call(rt)==An.call(Bt)}return!1}(rt,Bt,zi,gt,$t,Un,ai);if(!(1&gt)){var Jr=Xi&&Te.call(rt,"__wrapped__"),Xr=wr&&Te.call(Bt,"__wrapped__");if(Jr||Xr){var ko=Jr?rt.value():rt,no=Xr?Bt.value():Bt;return ai||(ai=new xr),Un(ko,no,gt,$t,ai)}}return!!vr&&(ai||(ai=new xr),function dn(rt,Bt,gt,$t,Un,ai){var Ci=1&gt,Ii=In(rt),zi=Ii.length;if(zi!=In(Bt).length&&!Ci)return!1;for(var wr=zi;wr--;){var vr=Ii[wr];if(!(Ci?vr in Bt:Te.call(Bt,vr)))return!1}var Jr=ai.get(rt);if(Jr&&ai.get(Bt))return Jr==Bt;var Xr=!0;ai.set(rt,Bt),ai.set(Bt,rt);for(var ko=Ci;++wr<zi;){var no=rt[vr=Ii[wr]],Uo=Bt[vr];if($t)var ua=Ci?$t(Uo,no,vr,Bt,rt,ai):$t(no,Uo,vr,rt,Bt,ai);if(!(void 0===ua?no===Uo||Un(no,Uo,gt,$t,ai):ua)){Xr=!1;break}ko||(ko="constructor"==vr)}if(Xr&&!ko){var qo=rt.constructor,go=Bt.constructor;qo!=go&&"constructor"in rt&&"constructor"in Bt&&!("function"==typeof qo&&qo instanceof qo&&"function"==typeof go&&go instanceof go)&&(Xr=!1)}return ai.delete(rt),ai.delete(Bt),Xr}(rt,Bt,gt,$t,Un,ai))}(rt,Bt,gt,$t,uo,Un))}function At(rt){return!(!Nn(rt)||function Ze(rt){return!!Ye&&Ye in rt}(rt))&&(hn(rt)?Ct:De).test(Wt(rt))}function $n(rt){if(!function bt(rt){var Bt=rt&&rt.constructor;return rt===("function"==typeof Bt&&Bt.prototype||$e)}(rt))return ht(rt);var Bt=[];for(var gt in Object(rt))Te.call(rt,gt)&&"constructor"!=gt&&Bt.push(gt);return Bt}function _i(rt,Bt,gt,$t,Un,ai){var Ci=1&gt,Ii=rt.length,zi=Bt.length;if(Ii!=zi&&!(Ci&&zi>Ii))return!1;var Ki=ai.get(rt);if(Ki&&ai.get(Bt))return Ki==Bt;var Xi=-1,wr=!0,vr=2&gt?new kr:void 0;for(ai.set(rt,Bt),ai.set(Bt,rt);++Xi<Ii;){var Jr=rt[Xi],Xr=Bt[Xi];if($t)var ko=Ci?$t(Xr,Jr,Xi,Bt,rt,ai):$t(Jr,Xr,Xi,rt,Bt,ai);if(void 0!==ko){if(ko)continue;wr=!1;break}if(vr){if(!oe(Bt,function(no,Uo){if(!Ne(vr,Uo)&&(Jr===no||Un(Jr,no,gt,$t,ai)))return vr.push(Uo)})){wr=!1;break}}else if(Jr!==Xr&&!Un(Jr,Xr,gt,$t,ai)){wr=!1;break}}return ai.delete(rt),ai.delete(Bt),wr}function In(rt){return function ir(rt,Bt,gt){var $t=Bt(rt);return mn(rt)?$t:function re(rt,Bt){for(var gt=-1,$t=Bt.length,Un=rt.length;++gt<$t;)rt[Un+gt]=Bt[gt];return rt}($t,gt(rt))}(rt,Vt,or)}function Zn(rt,Bt){var gt=rt.__data__;return function vn(rt){var Bt=typeof rt;return"string"==Bt||"number"==Bt||"symbol"==Bt||"boolean"==Bt?"__proto__"!==rt:null===rt}(Bt)?gt["string"==typeof Bt?"string":"hash"]:gt.map}function gi(rt,Bt){var gt=function ft(rt,Bt){return rt?.[Bt]}(rt,Bt);return At(gt)?gt:void 0}ti.prototype.clear=function Wn(){this.__data__=Jn?Jn(null):{},this.size=0},ti.prototype.delete=function Yi(rt){var Bt=this.has(rt)&&delete this.__data__[rt];return this.size-=Bt?1:0,Bt},ti.prototype.get=function On(rt){var Bt=this.__data__;if(Jn){var gt=Bt[rt];return gt===f?void 0:gt}return Te.call(Bt,rt)?Bt[rt]:void 0},ti.prototype.has=function ei(rt){var Bt=this.__data__;return Jn?void 0!==Bt[rt]:Te.call(Bt,rt)},ti.prototype.set=function ni(rt,Bt){var gt=this.__data__;return this.size+=this.has(rt)?0:1,gt[rt]=Jn&&void 0===Bt?f:Bt,this},di.prototype.clear=function Hi(){this.__data__=[],this.size=0},di.prototype.delete=function $i(rt){var Bt=this.__data__,gt=fi(Bt,rt);return!(gt<0||(gt==Bt.length-1?Bt.pop():Dt.call(Bt,gt,1),--this.size,0))},di.prototype.get=function Qi(rt){var Bt=this.__data__,gt=fi(Bt,rt);return gt<0?void 0:Bt[gt][1]},di.prototype.has=function _r(rt){return fi(this.__data__,rt)>-1},di.prototype.set=function yn(rt,Bt){var gt=this.__data__,$t=fi(gt,rt);return $t<0?(++this.size,gt.push([rt,Bt])):gt[$t][1]=Bt,this},Rn.prototype.clear=function ci(){this.size=0,this.__data__={hash:new ti,map:new(Ft||di),string:new ti}},Rn.prototype.delete=function Si(rt){var Bt=Zn(this,rt).delete(rt);return this.size-=Bt?1:0,Bt},Rn.prototype.get=function ji(rt){return Zn(this,rt).get(rt)},Rn.prototype.has=function lr(rt){return Zn(this,rt).has(rt)},Rn.prototype.set=function Dr(rt,Bt){var gt=Zn(this,rt),$t=gt.size;return gt.set(rt,Bt),this.size+=gt.size==$t?0:1,this},kr.prototype.add=kr.prototype.push=function zr(rt){return this.__data__.set(rt,f),this},kr.prototype.has=function Gr(rt){return this.__data__.has(rt)},xr.prototype.clear=function Vr(){this.__data__=new di,this.size=0},xr.prototype.delete=function Nr(rt){var Bt=this.__data__,gt=Bt.delete(rt);return this.size=Bt.size,gt},xr.prototype.get=function Tr(rt){return this.__data__.get(rt)},xr.prototype.has=function so(rt){return this.__data__.has(rt)},xr.prototype.set=function Er(rt,Bt){var gt=this.__data__;if(gt instanceof di){var $t=gt.__data__;if(!Ft||$t.length<199)return $t.push([rt,Bt]),this.size=++gt.size,this;gt=this.__data__=new Rn($t)}return gt.set(rt,Bt),this.size=gt.size,this};var or=Ht?function(rt){return null==rt?[]:(rt=Object(rt),function te(rt,Bt){for(var gt=-1,$t=null==rt?0:rt.length,Un=0,ai=[];++gt<$t;){var Ci=rt[gt];Bt(Ci,gt,rt)&&(ai[Un++]=Ci)}return ai}(Ht(rt),function(Bt){return He.call(rt,Bt)}))}:function rn(){return[]},cr=Kr;function en(rt,Bt){return!!(Bt=Bt??s)&&("number"==typeof rt||Fe.test(rt))&&rt>-1&&rt%1==0&&rt<Bt}function Wt(rt){if(null!=rt){try{return xe.call(rt)}catch{}try{return rt+""}catch{}}return""}function Ot(rt,Bt){return rt===Bt||rt!=rt&&Bt!=Bt}(yt&&cr(new yt(new ArrayBuffer(1)))!=Y||Ft&&cr(new Ft)!=S||bn&&cr(bn.resolve())!=k||_n&&cr(new _n)!=B||xn&&cr(new xn)!=U)&&(cr=function(rt){var Bt=Kr(rt),gt=Bt==T?rt.constructor:void 0,$t=gt?Wt(gt):"";if($t)switch($t){case li:return Y;case Ai:return S;case Vn:return k;case Oi:return B;case Hn:return U}return Bt});var qt=to(function(){return arguments}())?to:function(rt){return Yn(rt)&&Te.call(rt,"callee")&&!He.call(rt,"callee")},mn=Array.isArray;var pt=dt||function Dn(){return!1};function hn(rt){if(!Nn(rt))return!1;var Bt=Kr(rt);return Bt==y||"[object GeneratorFunction]"==Bt||"[object AsyncFunction]"==Bt||"[object Proxy]"==Bt}function sn(rt){return"number"==typeof rt&&rt>-1&&rt%1==0&&rt<=s}function Nn(rt){var Bt=typeof rt;return null!=rt&&("object"==Bt||"function"==Bt)}function Yn(rt){return null!=rt&&"object"==typeof rt}var st=ae?function Pe(rt){return function(Bt){return rt(Bt)}}(ae):function tn(rt){return Yn(rt)&&sn(rt.length)&&!!Ae[Kr(rt)]};function Vt(rt){return function Ke(rt){return null!=rt&&sn(rt.length)&&!hn(rt)}(rt)?oo(rt):$n(rt)}I.exports=function an(rt,Bt){return uo(rt,Bt)}}).call(this,o(58),o(66)(he))},function(he,l,o){"use strict";function c(I){return I?I.substring(0,1).toUpperCase()+I.substring(1):""}o.d(l,"a",function(){return c})},function(he,l,o){"use strict";o.d(l,"d",function(){return c}),o.d(l,"a",function(){return I}),o.d(l,"c",function(){return C}),o.d(l,"b",function(){return f});var c={name:"table",allowedTags:["TABLE"]},I=["height","width"],C=["height","width","text-align","background-color","border","border-style","border-width","border-color"],f=new Set([].concat(I,C))},function(he,l,o){"use strict";o.d(l,"d",function(){return c}),o.d(l,"a",function(){return I}),o.d(l,"c",function(){return C}),o.d(l,"b",function(){return f});var c={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"],f=new Set([].concat(I,C))},function(he,l,o){"use strict";o.d(l,"a",function(){return E}),o.d(l,"b",function(){return S}),o.d(l,"c",function(){return O});var c=o(2);function I(w){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})(w)}function C(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function f(w,T){for(var k=0;k<T.length;k++){var R=T[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}function p(w,T,k){return(p=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(P,B,W){var N=function s(w,T){for(;!Object.prototype.hasOwnProperty.call(w,T)&&null!==(w=y(w)););return w}(P,B);if(N){var V=Object.getOwnPropertyDescriptor(N,B);return V.get?V.get.call(W):V.value}})(w,T,k||w)}function u(w,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),T&&d(w,T)}function d(w,T){return(d=Object.setPrototypeOf||function(R,P){return R.__proto__=P,R})(w,T)}function h(w){var T=function b(){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 P,R=y(w);if(T){var B=y(this).constructor;P=Reflect.construct(R,arguments,B)}else P=R.apply(this,arguments);return g(this,P)}}function g(w,T){if(T&&("object"===I(T)||"function"==typeof T))return T;if(void 0!==T)throw new TypeError("Derived constructors may only return object or undefined");return function x(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(w)}function y(w){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var E=function(w){u(k,w);var T=h(k);function k(){return C(this,k),T.apply(this,arguments)}return function a(w,T,k){return T&&f(w.prototype,T),k&&f(w,k),w}(k,[{key:"value",value:function(P){var B=p(y(k.prototype),"value",this).call(this,P);if(0!==B.indexOf("rgb("))return B;var W=(B=B.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(N){return"00".concat(parseInt(N,10).toString(16)).slice(-2)}).join("");return"#".concat(W)}}]),k}(c.StyleAttributor),S=new c.ClassAttributor("color","ql-color",{scope:c.Scope.INLINE}),O=new E("color","color",{scope:c.Scope.INLINE})},function(he,l,o){"use strict";o.d(l,"a",function(){return C}),o.d(l,"b",function(){return f}),o.d(l,"c",function(){return a});var c=o(2),I={scope:c.Scope.BLOCK,whitelist:["rtl"]},C=new c.Attributor("direction","dir",I),f=new c.ClassAttributor("direction","ql-direction",I),a=new c.StyleAttributor("direction","direction",I)},function(he,l,o){var c=o(20),I=o(68),C=c({}.hasOwnProperty);he.exports=Object.hasOwn||function(a,p){return C(I(a),p)}},function(he,l,o){(function(c,I){var f="__lodash_hash_undefined__",s=9007199254740991,u="[object Arguments]",y="[object Function]",T="[object Object]",se=/^\[object .+?Constructor\]$/,ge=/^(?:0|[1-9]\d*)$/,De={};De["[object Float32Array]"]=De["[object Float64Array]"]=De["[object Int8Array]"]=De["[object Int16Array]"]=De["[object Int32Array]"]=De["[object Uint8Array]"]=De["[object Uint8ClampedArray]"]=De["[object Uint16Array]"]=De["[object Uint32Array]"]=!0,De[u]=De["[object Array]"]=De["[object ArrayBuffer]"]=De["[object Boolean]"]=De["[object DataView]"]=De["[object Date]"]=De["[object Error]"]=De[y]=De["[object Map]"]=De["[object Number]"]=De[T]=De["[object RegExp]"]=De["[object Set]"]=De["[object String]"]=De["[object WeakMap]"]=!1;var Fe="object"==typeof c&&c&&c.Object===Object&&c,Ae="object"==typeof self&&self&&self.Object===Object&&self,ne=Fe||Ae||Function("return this")(),fe=l&&!l.nodeType&&l,_e=fe&&"object"==typeof I&&I&&!I.nodeType&&I,ie=_e&&_e.exports===fe,de=ie&&Fe.process,le=function(){try{return _e&&_e.require&&_e.require("util").types||de&&de.binding&&de.binding("util")}catch{}}(),pe=le&&le.isTypedArray;function Ee(gt,$t,Un){switch(Un.length){case 0:return gt.call($t);case 1:return gt.call($t,Un[0]);case 2:return gt.call($t,Un[0],Un[1]);case 3:return gt.call($t,Un[0],Un[1],Un[2])}return gt.apply($t,Un)}var gt,ye=Array.prototype,Ne=Object.prototype,ft=ne["__core-js_shared__"],tt=Function.prototype.toString,Be=Ne.hasOwnProperty,mt=(gt=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||""))?"Symbol(src)_1."+gt:"",nn=Ne.toString,ke=tt.call(Object),$e=RegExp("^"+tt.call(Be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=ie?ne.Buffer:void 0,xe=ne.Symbol,Te=ne.Uint8Array,Ye=me?me.allocUnsafe:void 0,St=function oe(gt,$t){return function(Un){return gt($t(Un))}}(Object.getPrototypeOf,Object),Ct=Object.create,Rt=Ne.propertyIsEnumerable,fn=ye.splice,ct=xe?xe.toStringTag:void 0,He=function(){try{var gt=tn(Object,"defineProperty");return gt({},"",{}),gt}catch{}}(),Dt=me?me.isBuffer:void 0,qe=Math.max,Ht=Date.now,dt=tn(ne,"Map"),ht=tn(Object,"create"),yt=function(){function gt(){}return function($t){if(!hn($t))return{};if(Ct)return Ct($t);gt.prototype=$t;var Un=new gt;return gt.prototype=void 0,Un}}();function Ft(gt){var $t=-1,Un=null==gt?0:gt.length;for(this.clear();++$t<Un;){var ai=gt[$t];this.set(ai[0],ai[1])}}function Ai(gt){var $t=-1,Un=null==gt?0:gt.length;for(this.clear();++$t<Un;){var ai=gt[$t];this.set(ai[0],ai[1])}}function ti(gt){var $t=-1,Un=null==gt?0:gt.length;for(this.clear();++$t<Un;){var ai=gt[$t];this.set(ai[0],ai[1])}}function di(gt){var $t=this.__data__=new Ai(gt);this.size=$t.size}function Rn(gt,$t){var Un=Ot(gt),ai=!Un&&Wt(gt),Ci=!Un&&!ai&&Ke(gt),Ii=!Un&&!ai&&!Ci&&Yn(gt),zi=Un||ai||Ci||Ii,Ki=zi?function ae(gt,$t){for(var Un=-1,ai=Array(gt);++Un<gt;)ai[Un]=$t(Un);return ai}(gt.length,String):[],Xi=Ki.length;for(var wr in gt)($t||Be.call(gt,wr))&&(!zi||!("length"==wr||Ci&&("offset"==wr||"parent"==wr)||Ii&&("buffer"==wr||"byteLength"==wr||"byteOffset"==wr)||mi(wr,Xi)))&&Ki.push(wr);return Ki}function ci(gt,$t,Un){(void 0!==Un&&!_t(gt[$t],Un)||void 0===Un&&!($t in gt))&&lr(gt,$t,Un)}function Si(gt,$t,Un){var ai=gt[$t];(!Be.call(gt,$t)||!_t(ai,Un)||void 0===Un&&!($t in gt))&&lr(gt,$t,Un)}function ji(gt,$t){for(var Un=gt.length;Un--;)if(_t(gt[Un][0],$t))return Un;return-1}function lr(gt,$t,Un){"__proto__"==$t&&He?He(gt,$t,{configurable:!0,enumerable:!0,value:Un,writable:!0}):gt[$t]=Un}Ft.prototype.clear=function bn(){this.__data__=ht?ht(null):{},this.size=0},Ft.prototype.delete=function _n(gt){var $t=this.has(gt)&&delete this.__data__[gt];return this.size-=$t?1:0,$t},Ft.prototype.get=function xn(gt){var $t=this.__data__;if(ht){var Un=$t[gt];return Un===f?void 0:Un}return Be.call($t,gt)?$t[gt]:void 0},Ft.prototype.has=function Jn(gt){var $t=this.__data__;return ht?void 0!==$t[gt]:Be.call($t,gt)},Ft.prototype.set=function li(gt,$t){var Un=this.__data__;return this.size+=this.has(gt)?0:1,Un[gt]=ht&&void 0===$t?f:$t,this},Ai.prototype.clear=function Vn(){this.__data__=[],this.size=0},Ai.prototype.delete=function Oi(gt){var $t=this.__data__,Un=ji($t,gt);return!(Un<0||(Un==$t.length-1?$t.pop():fn.call($t,Un,1),--this.size,0))},Ai.prototype.get=function Hn(gt){var $t=this.__data__,Un=ji($t,gt);return Un<0?void 0:$t[Un][1]},Ai.prototype.has=function Sn(gt){return ji(this.__data__,gt)>-1},Ai.prototype.set=function An(gt,$t){var Un=this.__data__,ai=ji(Un,gt);return ai<0?(++this.size,Un.push([gt,$t])):Un[ai][1]=$t,this},ti.prototype.clear=function Wn(){this.size=0,this.__data__={hash:new Ft,map:new(dt||Ai),string:new Ft}},ti.prototype.delete=function Yi(gt){var $t=At(this,gt).delete(gt);return this.size-=$t?1:0,$t},ti.prototype.get=function On(gt){return At(this,gt).get(gt)},ti.prototype.has=function ei(gt){return At(this,gt).has(gt)},ti.prototype.set=function ni(gt,$t){var Un=At(this,gt),ai=Un.size;return Un.set(gt,$t),this.size+=Un.size==ai?0:1,this},di.prototype.clear=function Hi(){this.__data__=new Ai,this.size=0},di.prototype.delete=function $i(gt){var $t=this.__data__,Un=$t.delete(gt);return this.size=$t.size,Un},di.prototype.get=function Qi(gt){return this.__data__.get(gt)},di.prototype.has=function _r(gt){return this.__data__.has(gt)},di.prototype.set=function yn(gt,$t){var Un=this.__data__;if(Un instanceof Ai){var ai=Un.__data__;if(!dt||ai.length<199)return ai.push([gt,$t]),this.size=++Un.size,this;Un=this.__data__=new ti(ai)}return Un.set(gt,$t),this.size=Un.size,this};var Dr=function po(gt){return function($t,Un,ai){for(var Ci=-1,Ii=Object($t),zi=ai($t),Ki=zi.length;Ki--;){var Xi=zi[gt?Ki:++Ci];if(!1===Un(Ii[Xi],Xi,Ii))break}return $t}}();function kr(gt){return null==gt?void 0===gt?"[object Undefined]":"[object Null]":ct&&ct in Object(gt)?function $n(gt){var $t=Be.call(gt,ct),Un=gt[ct];try{gt[ct]=void 0;var ai=!0}catch{}var Ci=nn.call(gt);return ai&&($t?gt[ct]=Un:delete gt[ct]),Ci}(gt):function or(gt){return nn.call(gt)}(gt)}function zr(gt){return sn(gt)&&kr(gt)==u}function Gr(gt){return!(!hn(gt)||function Zn(gt){return!!mt&&mt in gt}(gt))&&(pt(gt)?$e:se).test(function bt(gt){if(null!=gt){try{return tt.call(gt)}catch{}try{return gt+""}catch{}}return""}(gt))}function Vr(gt){if(!hn(gt))return function Ri(gt){var $t=[];if(null!=gt)for(var Un in Object(gt))$t.push(Un);return $t}(gt);var $t=gi(gt),Un=[];for(var ai in gt)"constructor"==ai&&($t||!Be.call(gt,ai))||Un.push(ai);return Un}function Nr(gt,$t,Un,ai,Ci){gt!==$t&&Dr($t,function(Ii,zi){if(Ci||(Ci=new di),hn(Ii))!function Tr(gt,$t,Un,ai,Ci,Ii,zi){var Ki=en(gt,Un),Xi=en($t,Un),wr=zi.get(Xi);if(wr)ci(gt,Un,wr);else{var vr=Ii?Ii(Ki,Xi,Un+"",gt,$t,zi):void 0,Jr=void 0===vr;if(Jr){var Xr=Ot(Xi),ko=!Xr&&Ke(Xi),no=!Xr&&!ko&&Yn(Xi);vr=Xi,Xr||ko||no?Ot(Ki)?vr=Ki:function mn(gt){return sn(gt)&&qt(gt)}(Ki)?vr=function Kr(gt,$t){var Un=-1,ai=gt.length;for($t||($t=Array(ai));++Un<ai;)$t[Un]=gt[Un];return $t}(Ki):ko?(Jr=!1,vr=function oo(gt,$t){if($t)return gt.slice();var Un=gt.length,ai=Ye?Ye(Un):new gt.constructor(Un);return gt.copy(ai),ai}(Xi,!0)):no?(Jr=!1,vr=function ir(gt,$t){var Un=$t?function fi(gt){var $t=new gt.constructor(gt.byteLength);return new Te($t).set(new Te(gt)),$t}(gt.buffer):gt.buffer;return new gt.constructor(Un,gt.byteOffset,gt.length)}(Xi,!0)):vr=[]:function Nn(gt){if(!sn(gt)||kr(gt)!=T)return!1;var $t=St(gt);if(null===$t)return!0;var Un=Be.call($t,"constructor")&&$t.constructor;return"function"==typeof Un&&Un instanceof Un&&tt.call(Un)==ke}(Xi)||Wt(Xi)?(vr=Ki,Wt(Ki)?vr=function st(gt){return function to(gt,$t,Un,ai){var Ci=!Un;Un||(Un={});for(var Ii=-1,zi=$t.length;++Ii<zi;){var Ki=$t[Ii],Xi=ai?ai(Un[Ki],gt[Ki],Ki,Un,gt):void 0;void 0===Xi&&(Xi=gt[Ki]),Ci?lr(Un,Ki,Xi):Si(Un,Ki,Xi)}return Un}(gt,Vt(gt))}(Ki):(!hn(Ki)||pt(Ki))&&(vr=function _i(gt){return"function"!=typeof gt.constructor||gi(gt)?{}:yt(St(gt))}(Xi))):Jr=!1}Jr&&(zi.set(Xi,vr),Ci(vr,Xi,ai,Ii,zi),zi.delete(Xi)),ci(gt,Un,vr)}}(gt,$t,zi,Un,Nr,ai,Ci);else{var Ki=ai?ai(en(gt,zi),Ii,zi+"",gt,$t,Ci):void 0;void 0===Ki&&(Ki=Ii),ci(gt,zi,Ki)}},Vt)}function so(gt,$t){return vn(function cr(gt,$t,Un){return $t=qe(void 0===$t?gt.length-1:$t,0),function(){for(var ai=arguments,Ci=-1,Ii=qe(ai.length-$t,0),zi=Array(Ii);++Ci<Ii;)zi[Ci]=ai[$t+Ci];Ci=-1;for(var Ki=Array($t+1);++Ci<$t;)Ki[Ci]=ai[Ci];return Ki[$t]=Un(zi),Ee(gt,this,Ki)}}(gt,$t,rt),gt+"")}var Er=He?function(gt,$t){return He(gt,"toString",{configurable:!0,enumerable:!1,value:Dn($t),writable:!0})}:rt;function At(gt,$t){var Un=gt.__data__;return function In(gt){var $t=typeof gt;return"string"==$t||"number"==$t||"symbol"==$t||"boolean"==$t?"__proto__"!==gt:null===gt}($t)?Un["string"==typeof $t?"string":"hash"]:Un.map}function tn(gt,$t){var Un=function re(gt,$t){return gt?.[$t]}(gt,$t);return Gr(Un)?Un:void 0}function mi(gt,$t){var Un=typeof gt;return!!($t=$t??s)&&("number"==Un||"symbol"!=Un&&ge.test(gt))&&gt>-1&&gt%1==0&&gt<$t}function gi(gt){var $t=gt&&gt.constructor;return gt===("function"==typeof $t&&$t.prototype||Ne)}function en(gt,$t){if(("constructor"!==$t||"function"!=typeof gt[$t])&&"__proto__"!=$t)return gt[$t]}var vn=function Ze(gt){var $t=0,Un=0;return function(){var ai=Ht(),Ci=16-(ai-Un);if(Un=ai,Ci>0){if(++$t>=800)return arguments[0]}else $t=0;return gt.apply(void 0,arguments)}}(Er);function _t(gt,$t){return gt===$t||gt!=gt&&$t!=$t}var Wt=zr(function(){return arguments}())?zr:function(gt){return sn(gt)&&Be.call(gt,"callee")&&!Rt.call(gt,"callee")},Ot=Array.isArray;function qt(gt){return null!=gt&&an(gt.length)&&!pt(gt)}var Ke=Dt||function Bt(){return!1};function pt(gt){if(!hn(gt))return!1;var $t=kr(gt);return $t==y||"[object GeneratorFunction]"==$t||"[object AsyncFunction]"==$t||"[object Proxy]"==$t}function an(gt){return"number"==typeof gt&&gt>-1&&gt%1==0&&gt<=s}function hn(gt){var $t=typeof gt;return null!=gt&&("object"==$t||"function"==$t)}function sn(gt){return null!=gt&&"object"==typeof gt}var Yn=pe?function te(gt){return function($t){return gt($t)}}(pe):function xr(gt){return sn(gt)&&an(gt.length)&&!!De[kr(gt)]};function Vt(gt){return qt(gt)?Rn(gt,!0):Vr(gt)}var rn=function uo(gt){return so(function($t,Un){var ai=-1,Ci=Un.length,Ii=Ci>1?Un[Ci-1]:void 0,zi=Ci>2?Un[2]:void 0;for(Ii=gt.length>3&&"function"==typeof Ii?(Ci--,Ii):void 0,zi&&function dn(gt,$t,Un){if(!hn(Un))return!1;var ai=typeof $t;return!!("number"==ai?qt(Un)&&mi($t,Un.length):"string"==ai&&$t in Un)&&_t(Un[$t],gt)}(Un[0],Un[1],zi)&&(Ii=Ci<3?void 0:Ii,Ci=1),$t=Object($t);++ai<Ci;){var Ki=Un[ai];Ki&&gt($t,Ki,ai,Ii)}return $t})}(function(gt,$t,Un){Nr(gt,$t,Un)});function Dn(gt){return function(){return gt}}function rt(gt){return gt}I.exports=rn}).call(this,o(58),o(66)(he))},function(he,l,o){"use strict";o.d(l,"a",function(){return C}),o.d(l,"b",function(){return f}),o.d(l,"c",function(){return a});var c=o(2),I={scope:c.Scope.BLOCK,whitelist:["right","center","justify"]},C=new c.Attributor("align","align",I),f=new c.ClassAttributor("align","ql-align",I),a=new c.StyleAttributor("align","text-align",I)},function(he,l){he.exports=function(o){try{return!!o()}catch{return!0}}},function(he,l,o){var c=o(8),I=o(51),C=c.String,f=c.TypeError;he.exports=function(a){if(I(a))return a;throw f(C(a)+" is not an object")}},function(he,l,o){var c=o(39);he.exports=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(he,l){var o=Function.prototype.call;he.exports=o.bind?o.bind(o):function(){return o.apply(o,arguments)}},function(he,l,o){"use strict";function I(O){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(T){return typeof T}:function(T){return T&&"function"==typeof Symbol&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T})(O)}function C(O,w){if(!(O instanceof w))throw new TypeError("Cannot call a class as a function")}function f(O,w){for(var T=0;T<w.length;T++){var k=w[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(O,k.key,k)}}function p(O,w,T){return(p=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(R,P,B){var W=function s(O,w){for(;!Object.prototype.hasOwnProperty.call(O,w)&&null!==(O=y(O)););return O}(R,P);if(W){var N=Object.getOwnPropertyDescriptor(W,P);return N.get?N.get.call(B):N.value}})(O,w,T||O)}function u(O,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(w&&w.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),w&&d(O,w)}function d(O,w){return(d=Object.setPrototypeOf||function(k,R){return k.__proto__=R,k})(O,w)}function h(O){var w=function b(){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 R,k=y(O);if(w){var P=y(this).constructor;R=Reflect.construct(k,arguments,P)}else R=k.apply(this,arguments);return g(this,R)}}function g(O,w){if(w&&("object"===I(w)||"function"==typeof w))return w;if(void 0!==w)throw new TypeError("Derived constructors may only return object or undefined");return function x(O){if(void 0===O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}(O)}function y(O){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)})(O)}o.d(l,"a",function(){return E}),o.d(l,"b",function(){return S});var E=function(O){u(T,O);var w=h(T);function T(){return C(this,T),w.apply(this,arguments)}return function a(O,w,T){return w&&f(O.prototype,w),T&&f(O,T),O}(T,[{key:"format",value:function(R,P){R===this.statics.blotName&&P?this.domNode.setAttribute("href",this.constructor.sanitize(P)):p(y(T.prototype),"format",this).call(this,R,P)}}],[{key:"create",value:function(R){var P=p(y(T),"create",this).call(this,R);return P.setAttribute("href",this.sanitize(R)),P.setAttribute("rel","noopener noreferrer"),P.setAttribute("target","_blank"),P}},{key:"formats",value:function(R){return R.getAttribute("href")}},{key:"sanitize",value:function(R){return S(R,this.PROTOCOL_WHITELIST)?R:this.SANITIZED_URL}}]),T}(o(14).a);function S(O,w){var T=document.createElement("a");T.href=O;var k=T.href.slice(0,T.href.indexOf(":"));return w.indexOf(k)>-1}E.blotName="link",E.tagName="A",E.SANITIZED_URL="about:blank",E.PROTOCOL_WHITELIST=["http","https","mailto","tel"]},function(he,l,o){"use strict";l.a=new WeakMap},function(he,l,o){"use strict";o.d(l,"a",function(){return C}),o.d(l,"b",function(){return f});var c=o(2),I=o(34),C=new c.ClassAttributor("background","ql-bg",{scope:c.Scope.INLINE}),f=new I.a("background","background-color",{scope:c.Scope.INLINE})},function(he,l,o){"use strict";o.d(l,"b",function(){return w}),o.d(l,"a",function(){return S});var c=o(2);function I(T){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(T)}function C(T,k){if(!(T instanceof k))throw new TypeError("Cannot call a class as a function")}function f(T,k){for(var R=0;R<k.length;R++){var P=k[R];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}function p(T,k,R){return(p=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(B,W,N){var V=function s(T,k){for(;!Object.prototype.hasOwnProperty.call(T,k)&&null!==(T=y(T)););return T}(B,W);if(V){var U=Object.getOwnPropertyDescriptor(V,W);return U.get?U.get.call(N):U.value}})(T,k,R||T)}function u(T,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(k&&k.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),k&&d(T,k)}function d(T,k){return(d=Object.setPrototypeOf||function(P,B){return P.__proto__=B,P})(T,k)}function h(T){var k=function b(){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,P=y(T);if(k){var W=y(this).constructor;B=Reflect.construct(P,arguments,W)}else B=P.apply(this,arguments);return g(this,B)}}function g(T,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 x(T){if(void 0===T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(T)}function y(T){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)})(T)}var E={scope:c.Scope.INLINE,whitelist:["serif","monospace"]},S=new c.ClassAttributor("font","ql-font",E),O=function(T){u(R,T);var k=h(R);function R(){return C(this,R),k.apply(this,arguments)}return function a(T,k,R){return k&&f(T.prototype,k),R&&f(T,R),T}(R,[{key:"value",value:function(B){return p(y(R.prototype),"value",this).call(this,B).replace(/["']/g,"")}}]),R}(c.StyleAttributor),w=new O("font","font-family",E)},function(he,l,o){"use strict";o.d(l,"a",function(){return I}),o.d(l,"b",function(){return C});var c=o(2),I=new c.ClassAttributor("size","ql-size",{scope:c.Scope.INLINE,whitelist:["small","large","huge"]}),C=new c.StyleAttributor("size","font-size",{scope:c.Scope.INLINE,whitelist:["10px","18px","32px"]})},function(he,l,o){"use strict";function c(I,C,f){f?I.setAttribute(C,f):I.removeAttribute(C)}o.d(l,"a",function(){return c})},function(he,l,o){"use strict";function I(S){return(I="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})(S)}function C(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")}function f(S,O){for(var w=0;w<O.length;w++){var T=O[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(S,T.key,T)}}function p(S,O,w){return(p=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(k,R,P){var B=function s(S,O){for(;!Object.prototype.hasOwnProperty.call(S,O)&&null!==(S=y(S)););return S}(k,R);if(B){var W=Object.getOwnPropertyDescriptor(B,R);return W.get?W.get.call(P):W.value}})(S,O,w||S)}function u(S,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),O&&d(S,O)}function d(S,O){return(d=Object.setPrototypeOf||function(T,k){return T.__proto__=k,T})(S,O)}function h(S){var O=function b(){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,T=y(S);if(O){var R=y(this).constructor;k=Reflect.construct(T,arguments,R)}else k=T.apply(this,arguments);return g(this,k)}}function g(S,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 x(S){if(void 0===S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(S)}function y(S){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(S)}var E=function(S){u(w,S);var O=h(w);function w(){return C(this,w),O.apply(this,arguments)}return function a(S,O,w){return O&&f(S.prototype,O),w&&f(S,w),S}(w,[{key:"optimize",value:function(k){p(y(w.prototype),"optimize",this).call(this,k),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return p(y(w),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),w}(o(14).a);E.blotName="bold",E.tagName=["STRONG","B"],l.a=E},function(he,l,o){"use strict";o.d(l,"a",function(){return S}),o.d(l,"b",function(){return T});var c=o(2),I=o(0),C=o(12),f=o(15);function a(k){return(a="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})(k)}function s(k,R){for(var P=0;P<R.length;P++){var B=R[P];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(k,B.key,B)}}function d(k,R){if("function"!=typeof R&&null!==R)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(R&&R.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),R&&h(k,R)}function h(k,R){return(h=Object.setPrototypeOf||function(B,W){return B.__proto__=W,B})(k,R)}function g(k){var R=function y(){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,B=E(k);if(R){var N=E(this).constructor;W=Reflect.construct(B,arguments,N)}else W=B.apply(this,arguments);return x(this,W)}}function x(k,R){if(R&&("object"===a(R)||"function"==typeof R))return R;if(void 0!==R)throw new TypeError("Derived constructors may only return object or undefined");return b(k)}function b(k){if(void 0===k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function E(k){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)})(k)}var S=function(k){d(P,k);var R=g(P);function P(B,W){var N;return function p(k,R){if(!(k instanceof R))throw new TypeError("Cannot call a class as a function")}(this,P),(N=R.call(this,B,W)).lastRecorded=0,N.ignoreChange=!1,N.clear(),N.quill.on(I.a.events.EDITOR_CHANGE,function(V,U,K,Y){V!==I.a.events.TEXT_CHANGE||N.ignoreChange||(N.options.userOnly&&Y!==I.a.sources.USER?N.transform(U):N.record(U,K))}),N.quill.keyboard.addBinding({key:"z",shortKey:!0},N.undo.bind(b(N))),N.quill.keyboard.addBinding({key:"z",shortKey:!0,shiftKey:!0},N.redo.bind(b(N))),Object(f.a)()&&/Win/i.test(navigator.platform)&&N.quill.keyboard.addBinding({key:"y",shortKey:!0},N.redo.bind(b(N))),N.quill.root.addEventListener("beforeinput",function(V){"historyUndo"===V.inputType?(N.undo(),V.preventDefault()):"historyRedo"===V.inputType&&(N.redo(),V.preventDefault())}),N}return function u(k,R,P){return R&&s(k.prototype,R),P&&s(k,P),k}(P,[{key:"change",value:function(W,N){if(0!==this.stack[W].length){var V=this.stack[W].pop(),U=this.quill.getContents(),K=V.invert(U);this.stack[N].push(K),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(V,I.a.sources.USER),this.ignoreChange=!1;var Y=T(this.quill.scroll,V);this.quill.setSelection(Y)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(W,N){if(0!==W.ops.length){this.stack.redo=[];var V=W.invert(N),U=Date.now();if(this.lastRecorded+this.options.delay>U&&this.stack.undo.length>0){var K=this.stack.undo.pop();V=V.compose(K)}else this.lastRecorded=U;0!==V.length()&&(this.stack.undo.push(V),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(W){O(this.stack.undo,W),O(this.stack.redo,W)}},{key:"undo",value:function(){this.change("undo","redo")}}]),P}(C.a);function O(k,R){for(var P=R,B=k.length-1;B>=0;B-=1){var W=k[B];k[B]=P.transform(W,!0),P=W.transform(P),0===k[B].length()&&k.splice(B,1)}}function T(k,R){var P=R.reduce(function(W,N){return W+(N.delete||0)},0),B=R.length()-P;return function w(k,R){var P=R.ops[R.ops.length-1];return null!=P&&(null!=P.insert?"string"==typeof P.insert&&P.insert.endsWith("\n"):null!=P.attributes&&Object.keys(P.attributes).some(function(B){return null!=k.query(B,c.Scope.BLOCK)}))}(k,R)&&(B-=1),B}S.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1}},function(he,l,o){var c=o(22);he.exports=function(I){return"object"==typeof I?null!==I:c(I)}},function(he,l,o){var c=o(8),I=o(41),C=o(101),f=o(40),a=o(84),p=c.TypeError,s=Object.defineProperty;l.f=I?s:function(d,h,g){if(f(d),h=a(h),f(g),C)try{return s(d,h,g)}catch{}if("get"in g||"set"in g)throw p("Accessors not supported");return"value"in g&&(d[h]=g.value),d}},function(he,l,o){"use strict";o.d(l,"a",function(){return O});var c=o(2),I=o(29),C=o(19);function f(w){return(f="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})(w)}function a(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function p(w,T){for(var k=0;k<T.length;k++){var R=T[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}function u(w,T,k){return(u=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(P,B,W){var N=function d(w,T){for(;!Object.prototype.hasOwnProperty.call(w,T)&&null!==(w=S(w)););return w}(P,B);if(N){var V=Object.getOwnPropertyDescriptor(N,B);return V.get?V.get.call(W):V.value}})(w,T,k||w)}function h(w,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),T&&g(w,T)}function g(w,T){return(g=Object.setPrototypeOf||function(R,P){return R.__proto__=P,R})(w,T)}function x(w){var T=function E(){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 P,R=S(w);if(T){var B=S(this).constructor;P=Reflect.construct(R,arguments,B)}else P=R.apply(this,arguments);return b(this,P)}}function b(w,T){if(T&&("object"===f(T)||"function"==typeof T))return T;if(void 0!==T)throw new TypeError("Derived constructors may only return object or undefined");return function y(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(w)}function S(w){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var O=function(w){h(k,w);var T=x(k);function k(R,P){var B,W,N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{allowedTags:[]};return a(this,k),(W=T.call(this,R,P,N)).allowedTags=null!==(B=N.allowedTags)&&void 0!==B?B:[],W}return function s(w,T,k){return T&&p(w.prototype,T),k&&p(w,k),w}(k,[{key:"add",value:function(P,B){return I.c.call(this,u(S(k.prototype),"add",this),P,B)}},{key:"remove",value:function(P){return I.c.call(this,u(S(k.prototype),"remove",this),P)}},{key:"value",value:function(P){return I.c.call(this,u(S(k.prototype),"value",this),P)}},{key:"canAdd",value:function(P,B){return I.a.call(this,u(S(k.prototype),"canAdd",this),P,B)}}],[{key:"keys",value:function(P){return Object(I.b)(u(S(k),"keys",this),P,C.a.style)}}]),k}(c.StyleAttributor)},function(he,l,o){"use strict";o.d(l,"a",function(){return I});var c=o(0);function I(C,f){return{key:C?"upArrow":"downArrow",collapsed:!0,format:f,handler:function(p,s){var u=C?"prev":"next",d=s.line,h=d.statics.blotName.indexOf("Line")>-1?d.parent:d,x=h.parent[u]||h.parent.parent[u]?.children.head;if(null!=x){if("tableRow"===x.statics.blotName||"tableHeaderRow"===x.statics.blotName){for(var b=x.children.head,y=h;null!=y.prev;)y=y.prev,b=b.next;var E=b.offset(this.quill.scroll)+Math.min(s.offset,b.length()-1);this.quill.setSelection(E,0,c.a.sources.USER)}}else{var S=h.table()[u];null!=S&&this.quill.setSelection(C?S.offset(this.quill.scroll)+S.length()-1:S.offset(this.quill.scroll),0,c.a.sources.USER)}return!1}}}},function(he,l,o){"use strict";o.d(l,"a",function(){return h}),o.d(l,"b",function(){return g});var c=o(2),I=o(63),C=o(53),f=o(26);function a(x,b){var y=Object.keys(x);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(x);b&&(E=E.filter(function(S){return Object.getOwnPropertyDescriptor(x,S).enumerable})),y.push.apply(y,E)}return y}function p(x){for(var b=1;b<arguments.length;b++){var y=null!=arguments[b]?arguments[b]:{};b%2?a(Object(y),!0).forEach(function(E){s(x,E,y[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(y)):a(Object(y)).forEach(function(E){Object.defineProperty(x,E,Object.getOwnPropertyDescriptor(y,E))})}return x}function s(x,b,y){return b in x?Object.defineProperty(x,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):x[b]=y,x}function u(x,b,y,E){x[b]=!E&&x[b]?x[b]:y}function d(x,b,y,E,S,O){return x.filter(function(w){return!!w}).forEach(function(w){var T=y.query(w,c.Scope.ATTRIBUTE);if(null!==T){var k=T.value(b);if(k)return void u(S,T.attrName,k,O)}var R=E[w];if(null!=R&&(R.attrName===w||R.keyName===w)){var P=R.value(b)||void 0;u(S,R.attrName,P,O)}}),S}function h(x){return function(b,y,E){var S=I.a.keys(b),O=C.a.keys(b),w=p(p({},d(S,b,E,x,{},!0)),d(O,b,E,x,{},!0));return Object.keys(w).length>0?Object(f.a)(y,w):y}}function g(x){return function(b,y,E){var S,O=I.a.keys(b),w=C.a.keys(b),T="TR"===(null===(S=b.parentNode)||void 0===S?void 0:S.tagName)?b.parentNode:void 0,k=p(p({},d(O,b,E,x,{},!0)),d(w,b,E,x,{},!0));return T&&(k=d(C.a.keys(T),T,E,x,k,!1)),Object.keys(k).length>0?Object(f.a)(y,k):y}}},function(he,l,o){"use strict";var c=o(2),I=o(9);function C(w){return(C="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})(w)}function a(w,T){for(var k=0;k<T.length;k++){var R=T[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}function s(w,T,k){return(s=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(P,B,W){var N=function u(w,T){for(;!Object.prototype.hasOwnProperty.call(w,T)&&null!==(w=E(w)););return w}(P,B);if(N){var V=Object.getOwnPropertyDescriptor(N,B);return V.get?V.get.call(W):V.value}})(w,T,k||w)}function d(w,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),T&&h(w,T)}function h(w,T){return(h=Object.setPrototypeOf||function(R,P){return R.__proto__=P,R})(w,T)}function g(w){var T=function y(){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 P,R=E(w);if(T){var B=E(this).constructor;P=Reflect.construct(R,arguments,B)}else P=R.apply(this,arguments);return x(this,P)}}function x(w,T){if(T&&("object"===C(T)||"function"==typeof T))return T;if(void 0!==T)throw new TypeError("Derived constructors may only return object or undefined");return function b(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(w)}function E(w){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var S="\ufeff";l.a=function(w){d(k,w);var T=g(k);function k(R,P){var B;return function f(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}(this,k),(B=T.call(this,R,P)).contentNode=document.createElement("span"),B.contentNode.setAttribute("contenteditable",!1),Array.from(B.domNode.childNodes).forEach(function(W){B.contentNode.appendChild(W)}),B.leftGuard=document.createTextNode(S),B.rightGuard=document.createTextNode(S),B.domNode.appendChild(B.leftGuard),B.domNode.appendChild(B.contentNode),B.domNode.appendChild(B.rightGuard),B}return function p(w,T,k){return T&&a(w.prototype,T),k&&a(w,k),w}(k,[{key:"index",value:function(P,B){return P===this.leftGuard?0:P===this.rightGuard?1:s(E(k.prototype),"index",this).call(this,P,B)}},{key:"restore",value:function(P){var B,W,N=P.data.split(S).join("");if(P===this.leftGuard)if(this.prev instanceof I.a){var V=this.prev.length();this.prev.insertAt(V,N),B={startNode:this.prev.domNode,startOffset:V+N.length}}else W=document.createTextNode(N),this.parent.insertBefore(this.scroll.create(W),this),B={startNode:W,startOffset:N.length};else P===this.rightGuard&&(this.next instanceof I.a?(this.next.insertAt(0,N),B={startNode:this.next.domNode,startOffset:N.length}):(W=document.createTextNode(N),this.parent.insertBefore(this.scroll.create(W),this.next),B={startNode:W,startOffset:N.length}));return P.data=S,B}},{key:"update",value:function(P,B){var W=this;P.forEach(function(N){if("characterData"===N.type&&(N.target===W.leftGuard||N.target===W.rightGuard)){var V=W.restore(N.target);V&&(B.range=V)}})}}]),k}(c.EmbedBlot)},function(he,l,o){"use strict";function I(a,p){for(var s=0;s<p.length;s++){var u=p[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(a,u.key,u)}}var f=function(){function a(p,s){(function c(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,a),this.quill=p,this.options=s,this.modules={}}return function C(a,p,s){return p&&I(a.prototype,p),s&&I(a,s),a}(a,[{key:"init",value:function(){var s=this;Object.keys(this.options.modules).forEach(function(u){null==s.modules[u]&&s.addModule(u)})}},{key:"addModule",value:function(s){var u=this.quill.constructor.import("modules/".concat(s));return this.modules[s]=new u(this.quill,this.options.modules[s]||{}),this.modules[s]}}]),a}();f.DEFAULTS={modules:{}},f.themes={default:f},l.a=f},function(he,l){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{"object"==typeof window&&(o=window)}he.exports=o},function(he,l,o){"use strict";var c=o(1),I=o.n(c),C=o(3),f=o(12),a=o(15);function p(T){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(T)}function d(T,k){for(var R=0;R<k.length;R++){var P=k[R];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}function g(T,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(k&&k.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),k&&x(T,k)}function x(T,k){return(x=Object.setPrototypeOf||function(P,B){return P.__proto__=B,P})(T,k)}function b(T){var k=function S(){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,P=O(T);if(k){var W=O(this).constructor;B=Reflect.construct(P,arguments,W)}else B=P.apply(this,arguments);return y(this,B)}}function y(T,k){if(k&&("object"===p(k)||"function"==typeof k))return k;if(void 0!==k)throw new TypeError("Derived constructors may only return object or undefined");return function E(T){if(void 0===T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(T)}function O(T){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)})(T)}var w=function(T){g(R,T);var k=b(R);function R(P,B){var W;return function u(T,k){if(!(T instanceof k))throw new TypeError("Cannot call a class as a function")}(this,R),(W=k.call(this,P,B)).preventImageUploading(!1),W.addDragOverHandler(),W.addDropHandler(),W}return function h(T,k,R){return k&&d(T.prototype,k),R&&d(T,R),T}(R,[{key:"addDragOverHandler",value:function(){if(Object(a.a)()){var B=window.navigator.userAgent.toLowerCase();(-1!==B.indexOf("msie ")||-1!==B.indexOf("trident/")||-1!==B.indexOf("edge/"))&&this.quill.root.addEventListener("dragover",function(N){N.preventDefault()})}}},{key:"addDropHandler",value:function(){var B=this;this.quill.root.addEventListener("drop",function(W){var N=0===W.dataTransfer.files.length,V=B.options.onDrop;if(V&&"function"==typeof V&&V(W),!N&&!B.preventImageUpload){var U;if(W.preventDefault(),document.caretRangeFromPoint)U=document.caretRangeFromPoint(W.clientX,W.clientY);else{if(!document.caretPositionFromPoint)return;var K=document.caretPositionFromPoint(W.clientX,W.clientY);(U=document.createRange()).setStart(K.offsetNode,K.offset),U.setEnd(K.offsetNode,K.offset)}var Y=B.quill.selection.normalizeNative(U),J=B.quill.selection.normalizedToRange(Y);B.upload(J,W.dataTransfer.files)}})}},{key:"preventImageUploading",value:function(B){return typeof B<"u"&&(this.preventImageUpload=B),this.preventImageUpload}},{key:"upload",value:function(B,W,N){var V=this;if(!this.preventImageUpload||N){var U=[];Array.from(W).forEach(function(K){K&&-1!==V.options.mimetypes.indexOf(K.type)&&U.push(K)}),U.length>0&&this.options.handler.call(this,B,U,this.options.imageBlot)}}}]),R}(f.a);w.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(k,R,P){var B=this,W=R.map(function(N){return new Promise(function(V){var U=new FileReader;U.onload=function(K){V(K.target.result)},U.readAsDataURL(N)})});Promise.all(W).then(function(N){var V=N.reduce(function(U,K){return U.insert(function s(T,k,R){return k in T?Object.defineProperty(T,k,{value:R,enumerable:!0,configurable:!0,writable:!0}):T[k]=R,T}({},P,K))},(new I.a).retain(k.index).delete(k.length));B.quill.updateContents(V,C.a.sources.USER),B.quill.setSelection(k.index+N.length,C.a.sources.SILENT)})}},l.a=w},function(he,l,o){var c=o(8),I=o(22),C=function(f){return I(f)?f:void 0};he.exports=function(f,a){return arguments.length<2?C(c[f]):c[f]&&c[f][a]}},function(he,l,o){var c=o(8),I=o(89).f,C=o(70),f=o(90),a=o(81),p=o(135),s=o(140);he.exports=function(u,d){var y,E,S,O,w,h=u.target,g=u.global,x=u.stat;if(y=g?c:x?c[h]||a(h,{}):(c[h]||{}).prototype)for(E in d){if(O=d[E],S=u.noTargetGet?(w=I(y,E))&&w.value:y[E],!s(g?E:h+(x?".":"#")+E,u.forced)&&void 0!==S){if(typeof O==typeof S)continue;p(O,S)}(u.sham||S&&S.sham)&&C(O,"sham",!0),f(y,E,O,u)}}},function(he,l,o){var c=o(134),I=o(69);he.exports=function(C){return c(I(C))}},function(he,l,o){"use strict";o.d(l,"a",function(){return O});var c=o(2),I=o(29),C=o(19);function f(w){return(f="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})(w)}function a(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function p(w,T){for(var k=0;k<T.length;k++){var R=T[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}function u(w,T,k){return(u=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(P,B,W){var N=function d(w,T){for(;!Object.prototype.hasOwnProperty.call(w,T)&&null!==(w=S(w)););return w}(P,B);if(N){var V=Object.getOwnPropertyDescriptor(N,B);return V.get?V.get.call(W):V.value}})(w,T,k||w)}function h(w,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),T&&g(w,T)}function g(w,T){return(g=Object.setPrototypeOf||function(R,P){return R.__proto__=P,R})(w,T)}function x(w){var T=function E(){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 P,R=S(w);if(T){var B=S(this).constructor;P=Reflect.construct(R,arguments,B)}else P=R.apply(this,arguments);return b(this,P)}}function b(w,T){if(T&&("object"===f(T)||"function"==typeof T))return T;if(void 0!==T)throw new TypeError("Derived constructors may only return object or undefined");return function y(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(w)}function S(w){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var O=function(w){h(k,w);var T=x(k);function k(R,P){var B,W,N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{allowedTags:[]};return a(this,k),(W=T.call(this,R,P,N)).allowedTags=null!==(B=N.allowedTags)&&void 0!==B?B:[],W}return function s(w,T,k){return T&&p(w.prototype,T),k&&p(w,k),w}(k,[{key:"add",value:function(P,B){return I.c.call(this,u(S(k.prototype),"add",this),P,B)}},{key:"remove",value:function(P){return I.c.call(this,u(S(k.prototype),"remove",this),P)}},{key:"value",value:function(P){return I.c.call(this,u(S(k.prototype),"value",this),P)}},{key:"canAdd",value:function(P,B){return I.a.call(this,u(S(k.prototype),"canAdd",this),P,B)}}],[{key:"keys",value:function(P){return Object(I.b)(u(S(k),"keys",this),P,C.a.attribute)}}]),k}(c.Attributor)},function(he,l,o){"use strict";function c(){return Math.random().toString(36).slice(2,6)}o.d(l,"a",function(){return c})},function(he,l,o){"use strict";var c=o(1),I=o.n(c),C=o(2),f=o(0),a=o(12),p=o(6),s=o(10),u=o(13),d=o(5),h=o(21),g=o(11),x=o(64),b=o(48);function y(ht){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ft){return typeof Ft}:function(Ft){return Ft&&"function"==typeof Symbol&&Ft.constructor===Symbol&&Ft!==Symbol.prototype?"symbol":typeof Ft})(ht)}function E(ht,yt){return function w(ht){if(Array.isArray(ht))return ht}(ht)||function O(ht,yt){var Ft=null==ht?null:typeof Symbol<"u"&&ht[Symbol.iterator]||ht["@@iterator"];if(null!=Ft){var Jn,li,bn=[],_n=!0,xn=!1;try{for(Ft=Ft.call(ht);!(_n=(Jn=Ft.next()).done)&&(bn.push(Jn.value),!yt||bn.length!==yt);_n=!0);}catch(Ai){xn=!0,li=Ai}finally{try{!_n&&null!=Ft.return&&Ft.return()}finally{if(xn)throw li}}return bn}}(ht,yt)||R(ht,yt)||function S(){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 T(ht){return function B(ht){if(Array.isArray(ht))return W(ht)}(ht)||function P(ht){if(typeof Symbol<"u"&&null!=ht[Symbol.iterator]||null!=ht["@@iterator"])return Array.from(ht)}(ht)||R(ht)||function k(){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 R(ht,yt){if(ht){if("string"==typeof ht)return W(ht,yt);var Ft=Object.prototype.toString.call(ht).slice(8,-1);if("Object"===Ft&&ht.constructor&&(Ft=ht.constructor.name),"Map"===Ft||"Set"===Ft)return Array.from(ht);if("Arguments"===Ft||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ft))return W(ht,yt)}}function W(ht,yt){(null==yt||yt>ht.length)&&(yt=ht.length);for(var Ft=0,bn=new Array(yt);Ft<yt;Ft++)bn[Ft]=ht[Ft];return bn}function N(ht,yt){if(!(ht instanceof yt))throw new TypeError("Cannot call a class as a function")}function V(ht,yt){for(var Ft=0;Ft<yt.length;Ft++){var bn=yt[Ft];bn.enumerable=bn.enumerable||!1,bn.configurable=!0,"value"in bn&&(bn.writable=!0),Object.defineProperty(ht,bn.key,bn)}}function U(ht,yt,Ft){return yt&&V(ht.prototype,yt),Ft&&V(ht,Ft),ht}function K(ht,yt,Ft){return(K=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(_n,xn,Jn){var li=function Y(ht,yt){for(;!Object.prototype.hasOwnProperty.call(ht,yt)&&null!==(ht=X(ht)););return ht}(_n,xn);if(li){var Ai=Object.getOwnPropertyDescriptor(li,xn);return Ai.get?Ai.get.call(Jn):Ai.value}})(ht,yt,Ft||ht)}function J(ht,yt){if("function"!=typeof yt&&null!==yt)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(yt&&yt.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),yt&&j(ht,yt)}function j(ht,yt){return(j=Object.setPrototypeOf||function(bn,_n){return bn.__proto__=_n,bn})(ht,yt)}function ee(ht){var yt=function Z(){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,bn=X(ht);if(yt){var xn=X(this).constructor;_n=Reflect.construct(bn,arguments,xn)}else _n=bn.apply(this,arguments);return G(this,_n)}}function G(ht,yt){if(yt&&("object"===y(yt)||"function"==typeof yt))return yt;if(void 0!==yt)throw new TypeError("Derived constructors may only return object or undefined");return function q(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}function X(ht){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(Ft){return Ft.__proto__||Object.getPrototypeOf(Ft)})(ht)}var M=["row","cell"],ge="data-table-",De=function(ht){J(Ft,ht);var yt=ee(Ft);function Ft(){return N(this,Ft),yt.apply(this,arguments)}return U(Ft,[{key:"optimize",value:function(){var _n,xn=this.domNode.getAttribute("".concat(ge,"row"));if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var Jn=this.domNode,li={row:xn};Object.keys(h.b).forEach(function(Hn){var Sn=Jn.dataset[Hn.toLowerCase()];Sn&&(li[Hn]=Sn)}),this.wrap(this.statics.requiredContainer.blotName,li)}for(var Ai=arguments.length,Vn=new Array(Ai),Oi=0;Oi<Ai;Oi++)Vn[Oi]=arguments[Oi];(_n=K(X(Ft.prototype),"optimize",this)).call.apply(_n,[this].concat(Vn))}},{key:"format",value:function(_n,xn){"tableCellLine"===_n&&null===xn&&(xn=this.formats().tableCellLine);var li=M.indexOf(_n)>-1;if(li||g.c[_n]||h.b[_n]){var Vn,Oi,Hn,Ai="data-".concat(li?"table-":"").concat(_n.toLowerCase());Object(b.a)(this.domNode,Ai,xn),h.b[_n]&&(null===(Vn=this.cell())||void 0===Vn||Vn.format(_n,xn)),g.c[_n]&&(null===(Oi=this.cell())||void 0===Oi||null===(Hn=Oi.table())||void 0===Hn||Hn.format(_n,xn))}else K(X(Ft.prototype),"format",this).call(this,_n,xn)}},{key:"cell",value:function(){return"row"in this.parent?this.parent:null}}],[{key:"create",value:function(_n){var xn=K(X(Ft),"create",this).call(this,_n);return M.forEach(function(Jn){var li,Ai="row"===Jn?te:re;xn.setAttribute("".concat(ge).concat(Jn),null!==(li=_n[Jn])&&void 0!==li?li:Ai())}),xn}},{key:"formats",value:function(_n){return M.reduce(function(xn,Jn){var li="".concat(ge).concat(Jn);return _n.hasAttribute(li)&&(xn[Jn]=_n.getAttribute(li)||void 0),xn},{})}}]),Ft}(p.d);De.blotName="tableCellLine",De.className="ql-table-cell-line",De.tagName="P";var Fe=function(ht){J(Ft,ht);var yt=ee(Ft);function Ft(){return N(this,Ft),yt.apply(this,arguments)}return Ft}(De);Fe.blotName="tableHeaderCellLine",Fe.className="ql-table-header-cell-line";var Ae=function(ht){J(Ft,ht);var yt=ee(Ft);function Ft(){return N(this,Ft),yt.apply(this,arguments)}return U(Ft,[{key:"format",value:function(_n,xn){var Jn;null===(Jn=h.b[_n])||void 0===Jn||Jn.add(this.domNode,xn)}},{key:"checkMerge",value:function(){if(K(X(Ft.prototype),"checkMerge",this).call(this)&&null!=this.next.children.head){var _n=this.children.head.formats()[this.children.head.statics.blotName],xn=this.children.tail.formats()[this.children.tail.statics.blotName],Jn=this.next.children.head.formats()[this.next.children.head.statics.blotName],li=this.next.children.tail.formats()[this.next.children.tail.statics.blotName];return _n.cell===xn.cell&&_n.cell===Jn.cell&&_n.cell===li.cell}return!1}},{key:"formats",value:function(){return Ft.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 _n;return null===(_n=this.row())||void 0===_n?void 0:_n.table()}},{key:"optimize",value:function(){var _n,xn,Jn=null!==(_n=this.domNode.getAttribute("".concat(ge,"row")))&&void 0!==_n?_n:this.domNode.getAttribute("".concat(ge,"header-row"));this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName,{row:Jn});for(var li=arguments.length,Ai=new Array(li),Vn=0;Vn<li;Vn++)Ai[Vn]=arguments[Vn];(xn=K(X(Ft.prototype),"optimize",this)).call.apply(xn,[this].concat(Ai))}}],[{key:"create",value:function(_n){var xn=K(X(Ft),"create",this).call(this,_n);return _n&&Object.keys(_n).forEach(function(Jn){var li;null===(li=h.b[Jn])||void 0===li||li.add(xn,_n[Jn])}),xn}},{key:"cellFormats",value:function(_n){var Jn,xn={};return(_n.hasAttribute("".concat(ge,"row"))||_n.hasAttribute("".concat(ge,"header-row")))&&(xn.row=null!==(Jn=_n.getAttribute("".concat(ge,"row")))&&void 0!==Jn?Jn:_n.getAttribute("".concat(ge,"header-row"))),Object.keys(h.b).forEach(function(li){var Ai,Vn=null===(Ai=_n.firstElementChild)||void 0===Ai?void 0:Ai.dataset[li.toLowerCase()];Vn&&(xn[li]=Vn)}),xn}}]),Ft}(u.a);Ae.tagName=["TD","TH"];var ne=function(ht){J(Ft,ht);var yt=ee(Ft);function Ft(){return N(this,Ft),yt.apply(this,arguments)}return U(Ft,[{key:"format",value:function(_n,xn){"row"===_n?(this.domNode.setAttribute("".concat(ge).concat(_n),xn),this.children.forEach(function(Jn){Jn.format(_n,xn)})):K(X(Ft.prototype),"format",this).call(this,_n,xn)}}],[{key:"create",value:function(_n){var xn=K(X(Ft),"create",this).call(this,_n),Jn="".concat(ge,"row");return null!=_n&&_n.row&&xn.setAttribute(Jn,_n.row),xn}}]),Ft}(Ae);ne.blotName="tableCell",ne.className="ql-table-data-cell",ne.dataAttribute="".concat(ge,"row");var fe=function(ht){J(Ft,ht);var yt=ee(Ft);function Ft(){return N(this,Ft),yt.apply(this,arguments)}return U(Ft,[{key:"format",value:function(_n,xn){"row"===_n?(this.domNode.setAttribute("".concat(ge).concat(_n),xn),this.children.forEach(function(Jn){Jn.format(_n,xn)})):K(X(Ft.prototype),"format",this).call(this,_n,xn)}}],[{key:"create",value:function(_n){var xn=K(X(Ft),"create",this).call(this,_n),Jn="".concat(ge,"header-row");return _n&&_n.row&&xn.setAttribute(Jn,_n.row),xn}}]),Ft}(Ae);fe.tagName=["TH","TD"],fe.className="ql-table-header-cell",fe.blotName="tableHeaderCell",fe.dataAttribute="".concat(ge,"header-row");var _e=function(ht){J(Ft,ht);var yt=ee(Ft);function Ft(){return N(this,Ft),yt.apply(this,arguments)}return U(Ft,[{key:"checkMerge",value:function(){if(K(X(Ft.prototype),"checkMerge",this).call(this)&&Object(d.a)(this.next.children.head)){var _n="row",xn=this.children.head.formats(),Jn=this.children.tail.formats(),li=this.next.children.head.formats(),Ai=this.next.children.tail.formats();return xn[_n]===Jn[_n]&&xn[_n]===li[_n]&&xn[_n]===Ai[_n]}return!1}},{key:"optimize",value:function(){for(var _n,xn=this,Jn=arguments.length,li=new Array(Jn),Ai=0;Ai<Jn;Ai++)li[Ai]=arguments[Ai];(_n=K(X(Ft.prototype),"optimize",this)).call.apply(_n,[this].concat(li));var Vn=this.childFormatName;this.children.forEach(function(Oi){if(Object(d.a)(Oi.next)){var Hn=Oi.formats(),Sn=Oi.next.formats();if(Hn[Vn]!==Sn[Vn]){var An=xn.splitAfter(Oi);An&&An.optimize(),xn.prev&&xn.prev.optimize()}}})}},{key:"rowOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"table",value:function(){var _n;return null===(_n=this.parent)||void 0===_n?void 0:_n.parent}},{key:"formats",value:function(){var _n={},xn="".concat(ge,"row");return this.domNode.hasAttribute(xn)&&(_n[xn]=this.domNode.getAttribute(xn)),_n}}],[{key:"create",value:function(_n){var xn=K(X(Ft),"create",this).call(this,_n);return null!=_n&&_n.row&&xn.setAttribute("".concat(ge,"row"),_n.row),xn}}]),Ft}(u.a);_e.tagName="TR";var ie=function(ht){J(Ft,ht);var yt=ee(Ft);function Ft(bn,_n){var xn;return N(this,Ft),(xn=yt.call(this,bn,_n)).childFormatName="table",xn}return Ft}(_e);ie.blotName="tableRow";var de=function(ht){J(Ft,ht);var yt=ee(Ft);function Ft(bn,_n){var xn;return N(this,Ft),(xn=yt.call(this,bn,_n)).childFormatName="tableHeaderCell",xn}return Ft}(_e);de.blotName="tableHeaderRow";var le=function(ht){J(Ft,ht);var yt=ee(Ft);function Ft(){return N(this,Ft),yt.apply(this,arguments)}return U(Ft,[{key:"optimize",value:function(){var _n;if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var xn=this.children.head.children.head.children.head.domNode,Jn={};Object.keys(g.c).forEach(function(Oi){var Hn=xn.dataset[Oi.toLowerCase()];Hn&&(Jn[Oi]=Hn)}),this.wrap(this.statics.requiredContainer.blotName,Jn)}for(var li=arguments.length,Ai=new Array(li),Vn=0;Vn<li;Vn++)Ai[Vn]=arguments[Vn];(_n=K(X(Ft.prototype),"optimize",this)).call.apply(_n,[this].concat(Ai))}}]),Ft}(u.a),pe=function(ht){J(Ft,ht);var yt=ee(Ft);function Ft(){return N(this,Ft),yt.apply(this,arguments)}return Ft}(le);pe.blotName="tableBody",pe.tagName="TBODY";var Ee=function(ht){J(Ft,ht);var yt=ee(Ft);function Ft(){return N(this,Ft),yt.apply(this,arguments)}return Ft}(le);Ee.blotName="tableHeader",Ee.tagName="THEAD";var ae=function(ht){J(Ft,ht);var yt=ee(Ft);function Ft(){return N(this,Ft),yt.apply(this,arguments)}return U(Ft,[{key:"balanceCells",value:function(){var _n=this.descendants(de),xn=this.descendants(ie),Jn=this.getMaxTableColCount(_n,xn);this.balanceRows(Jn,_n,fe),this.balanceRows(Jn,xn,ne)}},{key:"getMaxTableColCount",value:function(_n,xn){return Math.max(this.getMaxRowColCount(_n),this.getMaxRowColCount(xn))}},{key:"getMaxRowColCount",value:function(_n){return Math.max.apply(Math,T(_n.map(function(xn){return xn.children.length})))}},{key:"balanceRows",value:function(_n,xn,Jn){var li=this;xn.forEach(function(Ai){new Array(_n-Ai.children.length).fill(0).forEach(function(){var Vn;Object(d.a)(Ai.children.head)&&(Vn=Jn.cellFormats(Ai.children.head.domNode));var Oi=li.scroll.create(Jn.blotName,Vn),Hn=li.scroll.create(Jn.allowedChildren[0].blotName,Vn);Oi.appendChild(Hn),Ai.appendChild(Oi),Oi.optimize()})})}},{key:"cells",value:function(_n){return this.rows().map(function(xn){return xn.children.at(_n)})}},{key:"deleteColumn",value:function(_n){var xn=this;[Ee,pe].forEach(function(Jn){var Vn=E(xn.descendants(Jn),1)[0];!Object(d.a)(Vn)||!Object(d.a)(Vn.children.head)||Vn.children.forEach(function(Oi){var Hn=Oi.children.at(_n);Object(d.a)(Hn)&&Hn.remove()})})}},{key:"insertColumn",value:function(_n){var xn=this;[Ee,pe].forEach(function(Jn){var Vn=E(xn.descendants(Jn),1)[0];if(Object(d.a)(Vn)&&Object(d.a)(Vn.children.head)){var Oi=Jn===Ee?fe:ne,Hn=Jn===Ee?Fe:De;Vn.children.forEach(function(Sn){var An=Sn.children.at(_n),ti=Hn.formats(Sn.children.head.children.head.domNode),Wn=xn.scroll.create(Oi.blotName,{row:ti.row}),Yi=xn.scroll.create(Hn.blotName,{row:ti.row}),On=xn.scroll.create(s.a.blotName);Yi.appendChild(On),Wn.appendChild(Yi),Sn.insertBefore(Wn,An)})}})}},{key:"insertRow",value:function(_n){var xn=this,Ai=E(this.descendants(pe),1)[0];if(Object(d.a)(Ai)&&Object(d.a)(Ai.children.head)){var Vn=te(),Oi=this.scroll.create(ie.blotName,{row:Vn});Ai.children.head.children.forEach(function(){var Sn=xn.scroll.create(ne.blotName,{row:Vn}),An=xn.scroll.create(De.blotName,{row:Vn}),ti=xn.scroll.create(s.a.blotName);An.appendChild(ti),Sn.appendChild(An),Oi.appendChild(Sn)});var Hn=Ai.children.at(_n);Ai.insertBefore(Oi,Hn)}}},{key:"insertHeaderRow",value:function(){var _n=this,li=E(this.descendants(Ee),1)[0],Oi=E(this.descendants(pe),1)[0];if(!Object(d.a)(li)&&Object(d.a)(Oi)&&Object(d.a)(Oi.children.head)){var Hn=te(),Sn=this.scroll.create(Ee.blotName),An=this.scroll.create(de.blotName),ti=this.children.at(0);Sn.appendChild(An),Oi.children.head.children.forEach(function(){var Wn=_n.scroll.create(fe.blotName,{row:Hn}),Yi=_n.scroll.create(Fe.blotName,{row:Hn}),On=_n.scroll.create(s.a.blotName);Yi.appendChild(On),Wn.appendChild(Yi),An.appendChild(Wn),Wn.optimize()}),this.insertBefore(Sn,ti)}}},{key:"rows",value:function(){var _n=this.children.head;return Object(d.a)(_n)?_n.children.map(function(xn){return xn}):[]}},{key:"formats",value:function(){var _n={},xn=this.cells()[0].domNode.firstElementChild;return Object.keys(g.c).forEach(function(Jn){var li=xn.dataset[Jn.toLowerCase()];li&&(_n[Jn]=li)}),_n}},{key:"format",value:function(_n,xn){var Jn=g.c[_n];if(Jn){var li="data-".concat(_n.toLowerCase());this.cells().forEach(function(Ai){Object(b.a)(Ai.children.head.domNode,li,xn)}),Jn.add(this.domNode,xn)}}}],[{key:"create",value:function(_n){var xn=K(X(Ft),"create",this).call(this,_n);return _n&&Object.keys(_n).forEach(function(Jn){var li;null===(li=g.c[Jn])||void 0===li||li.add(xn,_n[Jn])}),xn}}]),Ft}(u.a);function te(){return"row-".concat(Object(x.a)())}function re(){return"cell-".concat(Object(x.a)())}ae.blotName="tableContainer",ae.tagName="TABLE",ae.allowedChildren=[Ee,pe],pe.requiredContainer=ae,Ee.requiredContainer=ae,pe.allowedChildren=[ie],ie.requiredContainer=pe,ie.allowedChildren=[ne],ne.requiredContainer=ie,De.requiredContainer=ne,ne.allowedChildren=[De],Ee.allowedChildren=[de],de.requiredContainer=Ee,Fe.requiredContainer=fe,fe.allowedChildren=[Fe],de.allowedChildren=[fe],fe.requiredContainer=de;var oe=o(26),ye=o(54),Pe=o(55);function Ne(ht){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ft){return typeof Ft}:function(Ft){return Ft&&"function"==typeof Symbol&&Ft.constructor===Symbol&&Ft!==Symbol.prototype?"symbol":typeof Ft})(ht)}function ft(ht,yt,Ft){return yt in ht?Object.defineProperty(ht,yt,{value:Ft,enumerable:!0,configurable:!0,writable:!0}):ht[yt]=Ft,ht}function tt(ht,yt){return function $e(ht){if(Array.isArray(ht))return ht}(ht)||function ke(ht,yt){var Ft=null==ht?null:typeof Symbol<"u"&&ht[Symbol.iterator]||ht["@@iterator"];if(null!=Ft){var Jn,li,bn=[],_n=!0,xn=!1;try{for(Ft=Ft.call(ht);!(_n=(Jn=Ft.next()).done)&&(bn.push(Jn.value),!yt||bn.length!==yt);_n=!0);}catch(Ai){xn=!0,li=Ai}finally{try{!_n&&null!=Ft.return&&Ft.return()}finally{if(xn)throw li}}return bn}}(ht,yt)||function mt(ht,yt){if(ht){if("string"==typeof ht)return nn(ht,yt);var Ft=Object.prototype.toString.call(ht).slice(8,-1);if("Object"===Ft&&ht.constructor&&(Ft=ht.constructor.name),"Map"===Ft||"Set"===Ft)return Array.from(ht);if("Arguments"===Ft||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ft))return nn(ht,yt)}}(ht,yt)||function Be(){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 nn(ht,yt){(null==yt||yt>ht.length)&&(yt=ht.length);for(var Ft=0,bn=new Array(yt);Ft<yt;Ft++)bn[Ft]=ht[Ft];return bn}function me(ht,yt){if(!(ht instanceof yt))throw new TypeError("Cannot call a class as a function")}function xe(ht,yt){for(var Ft=0;Ft<yt.length;Ft++){var bn=yt[Ft];bn.enumerable=bn.enumerable||!1,bn.configurable=!0,"value"in bn&&(bn.writable=!0),Object.defineProperty(ht,bn.key,bn)}}function Ye(ht,yt){if("function"!=typeof yt&&null!==yt)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(yt&&yt.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),yt&&St(ht,yt)}function St(ht,yt){return(St=Object.setPrototypeOf||function(bn,_n){return bn.__proto__=_n,bn})(ht,yt)}function Ct(ht){var yt=function ct(){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,bn=He(ht);if(yt){var xn=He(this).constructor;_n=Reflect.construct(bn,arguments,xn)}else _n=bn.apply(this,arguments);return Rt(this,_n)}}function Rt(ht,yt){if(yt&&("object"===Ne(yt)||"function"==typeof yt))return yt;if(void 0!==yt)throw new TypeError("Derived constructors may only return object or undefined");return function fn(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}function He(ht){return(He=Object.setPrototypeOf?Object.getPrototypeOf:function(Ft){return Ft.__proto__||Object.getPrototypeOf(Ft)})(ht)}var Dt=[null,null,null,-1],qe=function(ht){Ye(Ft,ht);var yt=Ct(Ft);function Ft(){var bn;me(this,Ft);for(var _n=arguments.length,xn=new Array(_n),Jn=0;Jn<_n;Jn++)xn[Jn]=arguments[Jn];return(bn=yt.call.apply(yt,[this].concat(xn))).tableBlots=[De.blotName,Fe.blotName],bn.tableBlots.forEach(function(li){bn.quill.editor.addImmediateFormat(li)}),bn.integrateClipboard(),bn.addKeyboardHandlers(),bn.listenBalanceCells(),bn}return function Te(ht,yt,Ft){return yt&&xe(ht.prototype,yt),Ft&&xe(ht,Ft),ht}(Ft,[{key:"integrateClipboard",value:function(){var _n=this;this.tableBlots.forEach(function(xn){_n.quill.clipboard.addTableBlot(xn)}),this.quill.clipboard.addMatcher("td, th",Ht),this.quill.clipboard.addMatcher("table",Object(Pe.a)(g.a)),this.quill.clipboard.addMatcher("td, th",Object(Pe.b)(h.a))}},{key:"addKeyboardHandlers",value:function(){var _n=this,xn=Ft.keyboardBindings;Object.keys(xn).forEach(function(Jn){xn[Jn]&&_n.quill.keyboard.addBinding(xn[Jn])})}},{key:"balanceTables",value:function(){this.quill.scroll.descendants(ae).forEach(function(_n){_n.balanceCells()})}},{key:"deleteColumn",value:function(){var xn=tt(this.getTable(),3),Jn=xn[0],li=xn[2];Object(d.a)(li)&&(Jn.deleteColumn(li.cellOffset()),this.quill.update(f.a.sources.USER))}},{key:"deleteRow",value:function(){var Jn=tt(this.getTable(),2)[1];Object(d.a)(Jn)&&(Jn.remove(),this.quill.update(f.a.sources.USER))}},{key:"deleteTable",value:function(){var Jn=tt(this.getTable(),1)[0];if(Object(d.a)(Jn)){var li=Jn.offset();Jn.remove(),this.quill.update(f.a.sources.USER),this.quill.setSelection(li,f.a.sources.SILENT)}}},{key:"getTable",value:function(){var _n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(!Object(d.a)(_n))return Dt;var Jn=tt(this.quill.getLine(_n.index),2),li=Jn[0],Ai=Jn[1];if(!Object(d.a)(li)||-1===this.tableBlots.indexOf(li.statics.blotName))return Dt;var Vn=li.parent,Oi=Vn.parent;return[Oi.parent.parent,Oi,Vn,Ai]}},{key:"insertColumn",value:function(_n){var xn=this.quill.getSelection(),li=tt(this.getTable(xn),3),Ai=li[0],Vn=li[1],Oi=li[2];if(Object(d.a)(Oi)){var Hn=Oi.cellOffset();Ai.insertColumn(Hn+_n),this.quill.update(f.a.sources.USER);var Sn=Vn.rowOffset();0===_n&&(Sn+=1),this.quill.setSelection(xn.index+Sn,xn.length,f.a.sources.SILENT)}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(_n){var xn=this.quill.getSelection(),li=tt(this.getTable(xn),3),Ai=li[0],Vn=li[1],Oi=li[2];if(Object(d.a)(Oi)){var Hn=Vn.rowOffset();Ai.insertRow(Hn+_n),this.quill.update(f.a.sources.USER),_n>0?this.quill.setSelection(xn,f.a.sources.SILENT):this.quill.setSelection(xn.index+Vn.children.length,xn.length,f.a.sources.SILENT)}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertHeaderRow",value:function(){var _n=this.quill.getSelection(),Jn=tt(this.getTable(_n),3),li=Jn[0],Ai=Jn[2];Object(d.a)(Ai)&&(li.insertHeaderRow(),this.quill.update(f.a.sources.USER))}},{key:"insertTable",value:function(_n,xn){var Jn=this.quill.getSelection();if(Object(d.a)(Jn)){var li=new Array(_n).fill(0).reduce(function(Ai){var Vn=te();return new Array(xn).fill("\n").forEach(function(Oi){Ai.insert(Oi,{tableCellLine:{row:Vn,cell:te()}})}),Ai},(new I.a).retain(Jn.index));this.quill.updateContents(li,f.a.sources.USER),this.quill.setSelection(Jn.index,f.a.sources.SILENT),this.balanceTables()}}},{key:"tableFormats",value:function(){return this.tableBlots}},{key:"listenBalanceCells",value:function(){var _n=this;this.quill.on(f.a.events.SCROLL_OPTIMIZE,function(xn){xn.some(function(Jn){return-1!==["TD","TH","TR","TBODY","THEAD","TABLE"].indexOf(Jn.target.tagName)&&(_n.quill.once(f.a.events.TEXT_CHANGE,function(li,Ai,Vn){Vn===f.a.sources.USER&&_n.balanceTables()}),!0)})}),this.quill.on(f.a.events.CONTENT_SETTED,function(){_n.quill.once(f.a.events.TEXT_CHANGE,function(){_n.balanceTables()})})}}],[{key:"register",value:function(){f.a.register(De,!0),f.a.register(Fe,!0),f.a.register(fe,!0),f.a.register(ne,!0),f.a.register(de,!0),f.a.register(ie,!0),f.a.register(pe,!0),f.a.register(Ee,!0),f.a.register(ae,!0),[g.c,h.b].forEach(function(_n){Object.keys(_n).forEach(function(xn){f.a.register(ft({},"formats/".concat(xn),_n[xn]),!0)})})}}]),Ft}(a.a);function Ht(ht,yt){var Ft=ht.parentNode,_n="THEAD"===Ft.parentNode.tagName||null,xn=Array.from(("TABLE"===Ft.parentNode.tagName?Ft.parentNode:Ft.parentNode.parentNode).querySelectorAll("tr")),Jn=Array.from(Ft.querySelectorAll("th,td")),li=xn.indexOf(Ft)+1,Ai=Jn.indexOf(ht)+1,Vn=_n?"tableHeaderCellLine":"tableCellLine";return 0===yt.length()?yt=(new I.a).insert("\n",ft({},Vn,{row:li,cell:Ai})):(Object(oe.c)(yt,"\n")||yt.insert("\n"),Object(oe.a)(yt,Vn,{row:li,cell:Ai}))}qe.keyboardBindings={"table backspace":{key:"backspace",format:["tableCellLine","tableHeaderCellLine"],collapsed:!0,offset:0,handler:function(yt){var _n=tt(this.quill.getLine(yt.index),1)[0];return!(!_n.prev||-1===["tableCellLine","tableHeaderCellLine"].indexOf(_n.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(yt,Ft){var bn,_n=this;if(null===(bn=this.quill.selection)||void 0===bn||!bn.composing){yt.length>0&&this.quill.scroll.deleteAt(yt.index,yt.length);var xn=Object.keys(Ft.format).reduce(function(Jn,li){return _n.quill.scroll.query(li,C.Scope.BLOCK)&&!Array.isArray(Ft.format[li])&&(Jn[li]=Ft.format[li]),Jn},{});this.quill.insertText(yt.index,"\n",xn.tableCellLine,f.a.sources.USER),this.quill.setSelection(yt.index+1,f.a.sources.SILENT),this.quill.focus(),Object.keys(Ft.format).forEach(function(Jn){null==xn[Jn]&&(Array.isArray(Ft.format[Jn])||"link"!==Jn&&_n.quill.format(Jn,Ft.format[Jn],f.a.sources.USER))})}}},"table tab":{key:"tab",shiftKey:null,format:["tableCellLine","tableHeaderCellLine"],handler:function(yt,Ft){var bn=Ft.event,_n=Ft.line,xn=_n.offset(this.quill.scroll);this.quill.setSelection(bn.shiftKey?xn-1:xn+_n.length(),f.a.sources.USER)}},"table down":Object(ye.a)(!1,["tableCellLine","tableHeaderCellLine"]),"table up":Object(ye.a)(!0,["tableCellLine","tableHeaderCellLine"])},l.a=qe},function(he,l){he.exports=function(o){return o.webpackPolyfill||(o.deprecate=function(){},o.paths=[],o.children||(o.children=[]),Object.defineProperty(o,"loaded",{enumerable:!0,get:function(){return o.l}}),Object.defineProperty(o,"id",{enumerable:!0,get:function(){return o.i}}),o.webpackPolyfill=1),o}},function(he,l){he.exports=!1},function(he,l,o){var c=o(8),I=o(69),C=c.Object;he.exports=function(f){return C(I(f))}},function(he,l,o){var I=o(8).TypeError;he.exports=function(C){if(null==C)throw I("Can't call method on "+C);return C}},function(he,l,o){var c=o(41),I=o(52),C=o(71);he.exports=c?function(f,a,p){return I.f(f,a,C(1,p))}:function(f,a,p){return f[a]=p,f}},function(he,l){he.exports=function(o,c){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:c}}},function(he,l){he.exports={}},function(he,l,o){"use strict";o.d(l,"a",function(){return s});var c=o(63),I=o(31),C=o(19),f=["name"];function a(u,d){if(null==u)return{};var g,x,h=function p(u,d){if(null==u)return{};var x,b,h={},g=Object.keys(u);for(b=0;b<g.length;b++)!(d.indexOf(x=g[b])>=0)&&(h[x]=u[x]);return h}(u,d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(u);for(x=0;x<b.length;x++)!(d.indexOf(g=b[x])>=0)&&Object.prototype.propertyIsEnumerable.call(u,g)&&(h[g]=u[g])}return h}function s(u,d){var h=u.name,g=a(u,f),x="".concat(h).concat(Object(I.a)(d)),b="".concat(C.a.attribute).concat(h,"_").concat(d);return new c.a(x,b,g)}},function(he,l,o){"use strict";o.d(l,"a",function(){return b});var c=o(53),I=o(31),C=o(19),f=["name","formatName"];function a(y,E){return function h(y){if(Array.isArray(y))return y}(y)||function d(y,E){var S=null==y?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(null!=S){var k,R,O=[],w=!0,T=!1;try{for(S=S.call(y);!(w=(k=S.next()).done)&&(O.push(k.value),!E||O.length!==E);w=!0);}catch(P){T=!0,R=P}finally{try{!w&&null!=S.return&&S.return()}finally{if(T)throw R}}return O}}(y,E)||function s(y,E){if(y){if("string"==typeof y)return u(y,E);var S=Object.prototype.toString.call(y).slice(8,-1);if("Object"===S&&y.constructor&&(S=y.constructor.name),"Map"===S||"Set"===S)return Array.from(y);if("Arguments"===S||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return u(y,E)}}(y,E)||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 u(y,E){(null==E||E>y.length)&&(E=y.length);for(var S=0,O=new Array(E);S<E;S++)O[S]=y[S];return O}function g(y,E){if(null==y)return{};var O,w,S=function x(y,E){if(null==y)return{};var w,T,S={},O=Object.keys(y);for(T=0;T<O.length;T++)!(E.indexOf(w=O[T])>=0)&&(S[w]=y[w]);return S}(y,E);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(y);for(w=0;w<T.length;w++)!(E.indexOf(O=T[w])>=0)&&Object.prototype.propertyIsEnumerable.call(y,O)&&(S[O]=y[O])}return S}function b(y,E){var S=y.name,O=y.formatName,w=g(y,f),k=a(E.split("-"),2),R=k[0],P=k[1],B="".concat(S).concat(Object(I.a)(O??R)).concat(P?Object(I.a)(P):""),W="".concat(C.a.style).concat(S,"_").concat(E);return new c.a(B,W,w)}},function(he,l,o){"use strict";var c=o(1),I=o.n(c),C=o(0),f=o(12),a=o(6),p=o(13),s=o(5),u=o(11),d=o(64),h=o(48);function g(qe){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(dt){return typeof dt}:function(dt){return dt&&"function"==typeof Symbol&&dt.constructor===Symbol&&dt!==Symbol.prototype?"symbol":typeof dt})(qe)}function x(qe,Ht){return function E(qe){if(Array.isArray(qe))return qe}(qe)||function y(qe,Ht){var dt=null==qe?null:typeof Symbol<"u"&&qe[Symbol.iterator]||qe["@@iterator"];if(null!=dt){var bn,_n,ht=[],yt=!0,Ft=!1;try{for(dt=dt.call(qe);!(yt=(bn=dt.next()).done)&&(ht.push(bn.value),!Ht||ht.length!==Ht);yt=!0);}catch(xn){Ft=!0,_n=xn}finally{try{!yt&&null!=dt.return&&dt.return()}finally{if(Ft)throw _n}}return ht}}(qe,Ht)||w(qe,Ht)||function b(){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 S(qe){return function k(qe){if(Array.isArray(qe))return R(qe)}(qe)||function T(qe){if(typeof Symbol<"u"&&null!=qe[Symbol.iterator]||null!=qe["@@iterator"])return Array.from(qe)}(qe)||w(qe)||function O(){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 w(qe,Ht){if(qe){if("string"==typeof qe)return R(qe,Ht);var dt=Object.prototype.toString.call(qe).slice(8,-1);if("Object"===dt&&qe.constructor&&(dt=qe.constructor.name),"Map"===dt||"Set"===dt)return Array.from(qe);if("Arguments"===dt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(dt))return R(qe,Ht)}}function R(qe,Ht){(null==Ht||Ht>qe.length)&&(Ht=qe.length);for(var dt=0,ht=new Array(Ht);dt<Ht;dt++)ht[dt]=qe[dt];return ht}function P(qe,Ht){if(!(qe instanceof Ht))throw new TypeError("Cannot call a class as a function")}function B(qe,Ht){for(var dt=0;dt<Ht.length;dt++){var ht=Ht[dt];ht.enumerable=ht.enumerable||!1,ht.configurable=!0,"value"in ht&&(ht.writable=!0),Object.defineProperty(qe,ht.key,ht)}}function W(qe,Ht,dt){return Ht&&B(qe.prototype,Ht),dt&&B(qe,dt),qe}function N(qe,Ht,dt){return(N=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(yt,Ft,bn){var _n=function V(qe,Ht){for(;!Object.prototype.hasOwnProperty.call(qe,Ht)&&null!==(qe=G(qe)););return qe}(yt,Ft);if(_n){var xn=Object.getOwnPropertyDescriptor(_n,Ft);return xn.get?xn.get.call(bn):xn.value}})(qe,Ht,dt||qe)}function U(qe,Ht){if("function"!=typeof Ht&&null!==Ht)throw new TypeError("Super expression must either be null or a function");qe.prototype=Object.create(Ht&&Ht.prototype,{constructor:{value:qe,writable:!0,configurable:!0}}),Ht&&K(qe,Ht)}function K(qe,Ht){return(K=Object.setPrototypeOf||function(ht,yt){return ht.__proto__=yt,ht})(qe,Ht)}function Y(qe){var Ht=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 yt,ht=G(qe);if(Ht){var Ft=G(this).constructor;yt=Reflect.construct(ht,arguments,Ft)}else yt=ht.apply(this,arguments);return J(this,yt)}}function J(qe,Ht){if(Ht&&("object"===g(Ht)||"function"==typeof Ht))return Ht;if(void 0!==Ht)throw new TypeError("Derived constructors may only return object or undefined");return function j(qe){if(void 0===qe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return qe}(qe)}function G(qe){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(dt){return dt.__proto__||Object.getPrototypeOf(dt)})(qe)}var Z="data-tablelite-",X=function(qe){U(dt,qe);var Ht=Y(dt);function dt(){return P(this,dt),Ht.apply(this,arguments)}return W(dt,[{key:"format",value:function(yt,Ft){if(u.c[yt]){var bn,_n,xn="data-".concat(yt.toLowerCase());Object(h.a)(this.domNode,xn,Ft),null===(bn=this.row())||void 0===bn||null===(_n=bn.table())||void 0===_n||_n.format(yt,Ft)}else N(G(dt.prototype),"format",this).call(this,yt,Ft)}},{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 yt;return null===(yt=this.row())||void 0===yt?void 0:yt.table()}}],[{key:"create",value:function(yt){var Ft=N(G(dt),"create",this).call(this),bn=this.dataAttribute;return Object(h.a)(Ft,bn,yt??ie()),Ft}},{key:"formats",value:function(yt){var Ft=this.dataAttribute;if(yt.hasAttribute(Ft))return yt.getAttribute(Ft)}}]),dt}(a.d);X.tagName=["TD","TH"];var M=function(qe){U(dt,qe);var Ht=Y(dt);function dt(){return P(this,dt),Ht.apply(this,arguments)}return W(dt,[{key:"format",value:function(yt,Ft){yt===dt.blotName&&Ft?this.domNode.setAttribute(dt.dataAttribute,Ft):N(G(dt.prototype),"format",this).call(this,yt,Ft)}}]),dt}(X);M.blotName="table",M.dataAttribute="".concat(Z,"row");var se=function(qe){U(dt,qe);var Ht=Y(dt);function dt(){return P(this,dt),Ht.apply(this,arguments)}return W(dt,[{key:"format",value:function(yt,Ft){yt===dt.blotName&&Ft?this.domNode.setAttribute(dt.dataAttribute,Ft):N(G(dt.prototype),"format",this).call(this,yt,Ft)}}]),dt}(X);se.tagName=["TH","TD"],se.blotName="tableHeaderCell",se.dataAttribute="".concat(Z,"header-row");var ge=function(qe){U(dt,qe);var Ht=Y(dt);function dt(){return P(this,dt),Ht.apply(this,arguments)}return W(dt,[{key:"checkMerge",value:function(){if(N(G(dt.prototype),"checkMerge",this).call(this)&&Object(s.a)(this.next.children.head)){var yt=this.childFormatName,Ft=this.children.head.formats(),bn=this.children.tail.formats(),_n=this.next.children.head.formats(),xn=this.next.children.tail.formats();return Ft[yt]===bn[yt]&&Ft[yt]===_n[yt]&&Ft[yt]===xn[yt]}return!1}},{key:"optimize",value:function(){for(var yt,Ft=this,bn=arguments.length,_n=new Array(bn),xn=0;xn<bn;xn++)_n[xn]=arguments[xn];(yt=N(G(dt.prototype),"optimize",this)).call.apply(yt,[this].concat(_n));var Jn=this.childFormatName;this.children.forEach(function(li){if(Object(s.a)(li.next)){var Ai=li.formats(),Vn=li.next.formats();if(Ai[Jn]!==Vn[Jn]){var Oi=Ft.splitAfter(li);Oi&&Oi.optimize(),Ft.prev&&Ft.prev.optimize()}}})}},{key:"rowOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"table",value:function(){var yt;return null===(yt=this.parent)||void 0===yt?void 0:yt.parent}}]),dt}(p.a);ge.tagName="TR";var De=function(qe){U(dt,qe);var Ht=Y(dt);function dt(ht,yt){var Ft;return P(this,dt),(Ft=Ht.call(this,ht,yt)).childFormatName="table",Ft}return dt}(ge);De.blotName="tableRow";var Fe=function(qe){U(dt,qe);var Ht=Y(dt);function dt(ht,yt){var Ft;return P(this,dt),(Ft=Ht.call(this,ht,yt)).childFormatName="tableHeaderCell",Ft}return dt}(ge);Fe.blotName="tableHeaderRow";var Ae=function(qe){U(dt,qe);var Ht=Y(dt);function dt(){return P(this,dt),Ht.apply(this,arguments)}return W(dt,[{key:"optimize",value:function(){var yt;if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var Ft=this.children.head.children.head.domNode,bn={};Object.keys(u.c).forEach(function(li){var Ai=Ft.dataset[li.toLowerCase()];Ai&&(bn[li]=Ai)}),this.wrap(this.statics.requiredContainer.blotName,bn)}for(var _n=arguments.length,xn=new Array(_n),Jn=0;Jn<_n;Jn++)xn[Jn]=arguments[Jn];(yt=N(G(dt.prototype),"optimize",this)).call.apply(yt,[this].concat(xn))}}]),dt}(p.a),ne=function(qe){U(dt,qe);var Ht=Y(dt);function dt(){return P(this,dt),Ht.apply(this,arguments)}return dt}(Ae);ne.blotName="tableBody",ne.tagName=["TBODY"];var fe=function(qe){U(dt,qe);var Ht=Y(dt);function dt(){return P(this,dt),Ht.apply(this,arguments)}return dt}(Ae);fe.blotName="tableHeader",fe.tagName=["THEAD"];var _e=function(qe){U(dt,qe);var Ht=Y(dt);function dt(){return P(this,dt),Ht.apply(this,arguments)}return W(dt,[{key:"balanceCells",value:function(){var yt=this.descendants(Fe),Ft=this.descendants(De),bn=this.getMaxTableColCount(yt,Ft);this.balanceRows(bn,yt,se),this.balanceRows(bn,Ft,M)}},{key:"getMaxTableColCount",value:function(yt,Ft){return Math.max(this.getMaxRowColCount(yt),this.getMaxRowColCount(Ft))}},{key:"getMaxRowColCount",value:function(yt){return Math.max.apply(Math,S(yt.map(function(Ft){return Ft.children.length})))}},{key:"balanceRows",value:function(yt,Ft,bn){var _n=this;Ft.forEach(function(xn){new Array(yt-xn.children.length).fill(0).forEach(function(){var Jn;Object(s.a)(xn.children.head)&&(Jn=bn.formats(xn.children.head.domNode));var li=_n.scroll.create(bn.blotName,Jn);xn.appendChild(li),li.optimize()})})}},{key:"cells",value:function(yt){return this.rows().map(function(Ft){return Ft.children.at(yt)})}},{key:"deleteColumn",value:function(yt){var Ft=this;[fe,ne].forEach(function(bn){var Jn=x(Ft.descendants(bn),1)[0];!Object(s.a)(Jn)||!Object(s.a)(Jn.children.head)||Jn.children.forEach(function(li){var Ai=li.children.at(yt);Object(s.a)(Ai)&&Ai.remove()})})}},{key:"insertColumn",value:function(yt){var Ft=this;[fe,ne].forEach(function(bn){var Jn=x(Ft.descendants(bn),1)[0];if(Object(s.a)(Jn)&&Object(s.a)(Jn.children.head)){var li=bn===fe?se:M;Jn.children.forEach(function(Ai){var Vn=Ai.children.at(yt),Oi=li.formats(Ai.children.head.domNode),Hn=Ft.scroll.create(li.blotName,Oi);Ai.insertBefore(Hn,Vn)})}})}},{key:"insertRow",value:function(yt){var Ft=this,xn=x(this.descendants(ne),1)[0];if(Object(s.a)(xn)&&Object(s.a)(xn.children.head)){var Jn=ie(),li=this.scroll.create(De.blotName);xn.children.head.children.forEach(function(){var Vn=Ft.scroll.create(M.blotName,Jn);li.appendChild(Vn)});var Ai=xn.children.at(yt);xn.insertBefore(li,Ai)}}},{key:"insertHeaderRow",value:function(){var yt=this,_n=x(this.descendants(fe),1)[0],li=x(this.descendants(ne),1)[0];if(!Object(s.a)(_n)&&Object(s.a)(li)&&Object(s.a)(li.children.head)){var Ai=ie(),Vn=this.scroll.create(fe.blotName),Oi=this.scroll.create(Fe.blotName),Hn=this.children.at(0);Vn.appendChild(Oi),li.children.head.children.forEach(function(){var Sn=yt.scroll.create(se.blotName,Ai);Oi.appendChild(Sn),Sn.optimize()}),this.insertBefore(Vn,Hn)}}},{key:"rows",value:function(){var yt=this.children.head;return Object(s.a)(yt)?yt.children.map(function(Ft){return Ft}):[]}},{key:"formats",value:function(){var yt={},Ft=this.cells()[0].domNode;return Object.keys(u.c).forEach(function(bn){var _n=Ft.dataset[bn.toLowerCase()];_n&&(yt[bn]=_n)}),yt}},{key:"format",value:function(yt,Ft){var bn=u.c[yt];if(bn){var _n="data-".concat(yt.toLowerCase());this.cells().forEach(function(xn){Object(h.a)(xn.domNode,_n,Ft)}),bn.add(this.domNode,Ft)}}}],[{key:"create",value:function(yt){var Ft=N(G(dt),"create",this).call(this,yt);return yt&&Object.keys(yt).forEach(function(bn){var _n;null===(_n=u.c[bn])||void 0===_n||_n.add(Ft,yt[bn])}),Ft}}]),dt}(p.a);function ie(){return"row-".concat(Object(d.a)())}_e.blotName="tableContainer",_e.tagName="TABLE",_e.allowedChildren=[fe,ne],ne.requiredContainer=_e,fe.requiredContainer=_e,ne.allowedChildren=[De],De.requiredContainer=ne,De.allowedChildren=[M],M.requiredContainer=De,fe.allowedChildren=[Fe],Fe.requiredContainer=fe,Fe.allowedChildren=[se],se.requiredContainer=Fe;var de=o(26),le=o(54);function pe(qe){var Ht=qe.quill,ht=qe.range,yt=qe.index-1,Ft=(new I.a).retain(yt).insert("\n");Ht.updateContents(Ft,C.a.sources.USER),Ht.setSelection(ht.index+1,ht.length,C.a.sources.SILENT)}function Ee(qe){var Ht=qe.quill,yt=qe.index+qe.table.length(),Ft=(new I.a).retain(yt).insert("\n");Ht.updateContents(Ft,C.a.sources.USER),Ht.setSelection(yt,C.a.sources.USER)}function ae(qe,Ht,dt){return null==qe.prev&&null==qe.next?null==Ht.prev&&null==Ht.next?0===dt?-1:1:null==Ht.prev?-1:1:null==qe.prev?-1:null==qe.next?1:null}var te=o(55),re=o(21);function oe(qe){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(dt){return typeof dt}:function(dt){return dt&&"function"==typeof Symbol&&dt.constructor===Symbol&&dt!==Symbol.prototype?"symbol":typeof dt})(qe)}function Pe(qe,Ht){return function mt(qe){if(Array.isArray(qe))return qe}(qe)||function Be(qe,Ht){var dt=null==qe?null:typeof Symbol<"u"&&qe[Symbol.iterator]||qe["@@iterator"];if(null!=dt){var bn,_n,ht=[],yt=!0,Ft=!1;try{for(dt=dt.call(qe);!(yt=(bn=dt.next()).done)&&(ht.push(bn.value),!Ht||ht.length!==Ht);yt=!0);}catch(xn){Ft=!0,_n=xn}finally{try{!yt&&null!=dt.return&&dt.return()}finally{if(Ft)throw _n}}return ht}}(qe,Ht)||function ft(qe,Ht){if(qe){if("string"==typeof qe)return tt(qe,Ht);var dt=Object.prototype.toString.call(qe).slice(8,-1);if("Object"===dt&&qe.constructor&&(dt=qe.constructor.name),"Map"===dt||"Set"===dt)return Array.from(qe);if("Arguments"===dt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(dt))return tt(qe,Ht)}}(qe,Ht)||function Ne(){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 tt(qe,Ht){(null==Ht||Ht>qe.length)&&(Ht=qe.length);for(var dt=0,ht=new Array(Ht);dt<Ht;dt++)ht[dt]=qe[dt];return ht}function nn(qe,Ht){if(!(qe instanceof Ht))throw new TypeError("Cannot call a class as a function")}function ke(qe,Ht){for(var dt=0;dt<Ht.length;dt++){var ht=Ht[dt];ht.enumerable=ht.enumerable||!1,ht.configurable=!0,"value"in ht&&(ht.writable=!0),Object.defineProperty(qe,ht.key,ht)}}function me(qe,Ht){if("function"!=typeof Ht&&null!==Ht)throw new TypeError("Super expression must either be null or a function");qe.prototype=Object.create(Ht&&Ht.prototype,{constructor:{value:qe,writable:!0,configurable:!0}}),Ht&&xe(qe,Ht)}function xe(qe,Ht){return(xe=Object.setPrototypeOf||function(ht,yt){return ht.__proto__=yt,ht})(qe,Ht)}function Te(qe){var Ht=function Ct(){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 yt,ht=Rt(qe);if(Ht){var Ft=Rt(this).constructor;yt=Reflect.construct(ht,arguments,Ft)}else yt=ht.apply(this,arguments);return Ye(this,yt)}}function Ye(qe,Ht){if(Ht&&("object"===oe(Ht)||"function"==typeof Ht))return Ht;if(void 0!==Ht)throw new TypeError("Derived constructors may only return object or undefined");return function St(qe){if(void 0===qe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return qe}(qe)}function Rt(qe){return(Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(dt){return dt.__proto__||Object.getPrototypeOf(dt)})(qe)}var fn=[null,null,null,-1],ct=function(qe){me(dt,qe);var Ht=Te(dt);function dt(){var ht;nn(this,dt);for(var yt=arguments.length,Ft=new Array(yt),bn=0;bn<yt;bn++)Ft[bn]=arguments[bn];return(ht=Ht.call.apply(Ht,[this].concat(Ft))).tableBlots=[M.blotName,se.blotName],ht.tableBlots.forEach(function(_n){ht.quill.editor.addImmediateFormat(_n)}),ht.integrateClipboard(),ht.addKeyboardHandlers(),ht.listenBalanceCells(),ht}return function $e(qe,Ht,dt){return Ht&&ke(qe.prototype,Ht),dt&&ke(qe,dt),qe}(dt,[{key:"integrateClipboard",value:function(){var yt=this;this.tableBlots.forEach(function(Ft){return yt.quill.clipboard.addTableBlot(Ft)}),this.quill.clipboard.addMatcher("tr",He),this.quill.clipboard.addMatcher("table",Object(te.a)(u.a)),this.quill.clipboard.addMatcher("td, th",Object(te.b)(re.a))}},{key:"addKeyboardHandlers",value:function(){var yt=this,Ft=dt.keyboardBindings;Object.keys(Ft).forEach(function(bn){Ft[bn]&&yt.quill.keyboard.addBinding(Ft[bn])})}},{key:"balanceTables",value:function(){this.quill.scroll.descendants(_e).forEach(function(yt){yt.balanceCells()})}},{key:"deleteColumn",value:function(){var Ft=Pe(this.getTable(),3),bn=Ft[0],_n=Ft[2];Object(s.a)(_n)&&(bn.deleteColumn(_n.cellOffset()),this.quill.update(C.a.sources.USER))}},{key:"deleteRow",value:function(){var bn=Pe(this.getTable(),2)[1];Object(s.a)(bn)&&(bn.remove(),this.quill.update(C.a.sources.USER))}},{key:"deleteTable",value:function(){var bn=Pe(this.getTable(),1)[0];if(Object(s.a)(bn)){var _n=bn.offset();bn.remove(),this.quill.update(C.a.sources.USER),this.quill.setSelection(_n,C.a.sources.SILENT)}}},{key:"getTable",value:function(){var yt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(!Object(s.a)(yt))return fn;var bn=Pe(this.quill.getLine(yt.index),2),_n=bn[0],xn=bn[1];if(!Object(s.a)(_n)||-1===this.tableBlots.indexOf(_n.statics.blotName))return fn;var Jn=_n.parent;return[Jn.parent.parent,Jn,_n,xn]}},{key:"insertColumn",value:function(yt){var Ft=this.quill.getSelection(),_n=Pe(this.getTable(Ft),3),xn=_n[0],Jn=_n[1],li=_n[2];if(Object(s.a)(li)){var Ai=li.cellOffset();xn.insertColumn(Ai+yt),this.quill.update(C.a.sources.USER);var Vn=Jn.rowOffset();0===yt&&(Vn+=1),this.quill.setSelection(Ft.index+Vn,Ft.length,C.a.sources.SILENT)}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(yt){var Ft=this.quill.getSelection(),_n=Pe(this.getTable(Ft),3),xn=_n[0],Jn=_n[1],li=_n[2];if(Object(s.a)(li)){var Ai=Jn.rowOffset();xn.insertRow(Ai+yt),this.quill.update(C.a.sources.USER),yt>0?this.quill.setSelection(Ft,C.a.sources.SILENT):this.quill.setSelection(Ft.index+Jn.children.length,Ft.length,C.a.sources.SILENT)}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertHeaderRow",value:function(){var yt=this.quill.getSelection(),bn=Pe(this.getTable(yt),3),_n=bn[0],xn=bn[2];Object(s.a)(xn)&&(_n.insertHeaderRow(),this.quill.update(C.a.sources.USER))}},{key:"insertTable",value:function(yt,Ft){var bn=this.quill.getSelection();if(Object(s.a)(bn)){var _n=new Array(yt).fill(0).reduce(function(xn){var Jn=new Array(Ft).fill("\n").join("");return xn.insert(Jn,{table:ie()})},(new I.a).retain(bn.index));this.quill.updateContents(_n,C.a.sources.USER),this.quill.setSelection(bn.index,C.a.sources.SILENT),this.balanceTables()}}},{key:"tableFormats",value:function(){return this.tableBlots}},{key:"listenBalanceCells",value:function(){var yt=this;this.quill.on(C.a.events.SCROLL_OPTIMIZE,function(Ft){Ft.some(function(bn){return-1!==["TD","TH","TR","TBODY","THEAD","TABLE"].indexOf(bn.target.tagName)&&(yt.quill.once(C.a.events.TEXT_CHANGE,function(_n,xn,Jn){Jn===C.a.sources.USER&&yt.balanceTables()}),!0)})}),this.quill.on(C.a.events.CONTENT_SETTED,function(){yt.quill.once(C.a.events.TEXT_CHANGE,function(){yt.balanceTables()})})}}],[{key:"register",value:function(){C.a.register(se,!0),C.a.register(M,!0),C.a.register(Fe,!0),C.a.register(De,!0),C.a.register(ne,!0),C.a.register(fe,!0),C.a.register(_e,!0),[u.c,re.b].forEach(function(yt){Object.keys(yt).forEach(function(Ft){C.a.register(function ye(qe,Ht,dt){return Ht in qe?Object.defineProperty(qe,Ht,{value:dt,enumerable:!0,configurable:!0,writable:!0}):qe[Ht]=dt,qe}({},"formats/".concat(Ft),yt[Ft]),!0)})})}}]),dt}(f.a);function He(qe,Ht){var ht="THEAD"===qe.parentNode.tagName||null,Ft=Array.from(("TABLE"===qe.parentNode.tagName?qe.parentNode:qe.parentNode.parentNode).querySelectorAll("tr")).indexOf(qe)+1;return Object(de.a)(Ht,ht?"tableHeaderCell":"table",Ft)}ct.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(Ht){var dt=this.quill.getModule("table");if(dt){var ht=this.quill,Ft=Pe(dt.getTable(Ht),4),bn=Ft[0],li=ae(Ft[1],Ft[2],Ft[3]);if(null==li||li<0&&bn.children.length>1&&bn.children.head)return;var Vn=bn.offset();li<0?pe({quill:ht,index:Vn,range:Ht}):Ee({quill:ht,index:Vn,table:bn})}}},"table header enter":{key:"enter",shiftKey:null,format:["tableHeaderCell"],handler:function(Ht){var dt=this.quill.getModule("table");if(dt){var ht=this.quill,Ft=Pe(dt.getTable(Ht),4),bn=Ft[0],li=ae(Ft[1],Ft[2],Ft[3]);if(null==li)return;var Ai=bn.offset();li<0||li>0&&bn.children.length>1&&bn.children.tail?pe({quill:ht,index:Ai,range:Ht}):Ee({quill:ht,index:Ai,table:bn})}}},"table tab":{key:"tab",shiftKey:null,format:["table","tableHeaderCell"],handler:function(Ht,dt){var ht=dt.event,yt=dt.line,Ft=yt.offset(this.quill.scroll);this.quill.setSelection(ht.shiftKey?Ft-1:Ft+yt.length(),C.a.sources.USER)}},"table down":Object(le.a)(!1,["table","tableHeaderCell"]),"table up":Object(le.a)(!0,["table","tableHeaderCell"])},l.a=ct},function(he,l,o){"use strict";o.d(l,"a",function(){return X}),o.d(l,"b",function(){return se});var c=o(1),I=o.n(c),C=o(2),f=o(14),a=o(0),p=o(12),s=o(6),u=o(10),d=o(24),h=o(9),g=o(17),x=o(26),b=o(15);function y(ge){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Fe){return typeof Fe}:function(Fe){return Fe&&"function"==typeof Symbol&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe})(ge)}function E(ge,De,Fe){return De in ge?Object.defineProperty(ge,De,{value:Fe,enumerable:!0,configurable:!0,writable:!0}):ge[De]=Fe,ge}function S(ge,De){return function R(ge){if(Array.isArray(ge))return ge}(ge)||function k(ge,De){var Fe=null==ge?null:typeof Symbol<"u"&&ge[Symbol.iterator]||ge["@@iterator"];if(null!=Fe){var _e,ie,Ae=[],ne=!0,fe=!1;try{for(Fe=Fe.call(ge);!(ne=(_e=Fe.next()).done)&&(Ae.push(_e.value),!De||Ae.length!==De);ne=!0);}catch(de){fe=!0,ie=de}finally{try{!ne&&null!=Fe.return&&Fe.return()}finally{if(fe)throw ie}}return Ae}}(ge,De)||function w(ge,De){if(ge){if("string"==typeof ge)return T(ge,De);var Fe=Object.prototype.toString.call(ge).slice(8,-1);if("Object"===Fe&&ge.constructor&&(Fe=ge.constructor.name),"Map"===Fe||"Set"===Fe)return Array.from(ge);if("Arguments"===Fe||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Fe))return T(ge,De)}}(ge,De)||function O(){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 T(ge,De){(null==De||De>ge.length)&&(De=ge.length);for(var Fe=0,Ae=new Array(De);Fe<De;Fe++)Ae[Fe]=ge[Fe];return Ae}function P(ge,De){if(!(ge instanceof De))throw new TypeError("Cannot call a class as a function")}function B(ge,De){for(var Fe=0;Fe<De.length;Fe++){var Ae=De[Fe];Ae.enumerable=Ae.enumerable||!1,Ae.configurable=!0,"value"in Ae&&(Ae.writable=!0),Object.defineProperty(ge,Ae.key,Ae)}}function W(ge,De,Fe){return De&&B(ge.prototype,De),Fe&&B(ge,Fe),ge}function N(ge,De){if("function"!=typeof De&&null!==De)throw new TypeError("Super expression must either be null or a function");ge.prototype=Object.create(De&&De.prototype,{constructor:{value:ge,writable:!0,configurable:!0}}),De&&V(ge,De)}function V(ge,De){return(V=Object.setPrototypeOf||function(Ae,ne){return Ae.__proto__=ne,Ae})(ge,De)}function U(ge){var De=function J(){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,Ae=G(ge);if(De){var fe=G(this).constructor;ne=Reflect.construct(Ae,arguments,fe)}else ne=Ae.apply(this,arguments);return K(this,ne)}}function K(ge,De){if(De&&("object"===y(De)||"function"==typeof De))return De;if(void 0!==De)throw new TypeError("Derived constructors may only return object or undefined");return Y(ge)}function Y(ge){if(void 0===ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge}function j(ge,De,Fe){return(j=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(ne,fe,_e){var ie=function ee(ge,De){for(;!Object.prototype.hasOwnProperty.call(ge,De)&&null!==(ge=G(ge)););return ge}(ne,fe);if(ie){var de=Object.getOwnPropertyDescriptor(ie,fe);return de.get?de.get.call(_e):de.value}})(ge,De,Fe||ge)}function G(ge){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(Fe){return Fe.__proto__||Object.getPrototypeOf(Fe)})(ge)}var q=new C.ClassAttributor("code-token","hljs",{scope:C.Scope.INLINE}),Z=function(ge){N(Fe,ge);var De=U(Fe);function Fe(Ae,ne,fe){var _e;return P(this,Fe),_e=De.call(this,Ae,ne,fe),q.add(_e.domNode,fe),_e}return W(Fe,[{key:"format",value:function(ne,fe){ne!==Fe.blotName?j(G(Fe.prototype),"format",this).call(this,ne,fe):fe?q.add(this.domNode,fe):(q.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}},{key:"optimize",value:function(){for(var ne,fe=arguments.length,_e=new Array(fe),ie=0;ie<fe;ie++)_e[ie]=arguments[ie];(ne=j(G(Fe.prototype),"optimize",this)).call.apply(ne,[this].concat(_e)),q.value(this.domNode)||this.unwrap()}}],[{key:"formats",value:function(ne,fe){for(;null!=ne&&ne!==fe.domNode;){if(ne.classList&&ne.classList.contains(g.c.className))return j(G(Fe),"formats",this).call(this,ne,fe);ne=ne.parentNode}}}]),Fe}(f.a);Z.blotName="code-token",Z.className="ql-token";var X=function(ge){N(Fe,ge);var De=U(Fe);function Fe(){return P(this,Fe),De.apply(this,arguments)}return W(Fe,[{key:"format",value:function(ne,fe){ne===this.statics.blotName&&fe?this.domNode.setAttribute("data-language",fe):j(G(Fe.prototype),"format",this).call(this,ne,fe)}},{key:"replaceWith",value:function(ne,fe){return this.formatAt(0,this.length(),Z.blotName,!1),j(G(Fe.prototype),"replaceWith",this).call(this,ne,fe)}}],[{key:"create",value:function(ne){var fe=j(G(Fe),"create",this).call(this,ne);return"string"==typeof ne&&fe.setAttribute("data-language",ne),fe}},{key:"formats",value:function(ne){return ne.getAttribute("data-language")||"plain"}},{key:"register",value:function(){}}]),Fe}(g.c),M=function(ge){N(Fe,ge);var De=U(Fe);function Fe(){return P(this,Fe),De.apply(this,arguments)}return W(Fe,[{key:"attach",value:function(){j(G(Fe.prototype),"attach",this).call(this),this.forceNext=!1,this.scroll.emitMount(this)}},{key:"format",value:function(ne,fe){ne===X.blotName&&(this.forceNext=!0,this.children.forEach(function(_e){_e.format(ne,fe)}))}},{key:"formatAt",value:function(ne,fe,_e,ie){_e===X.blotName&&(this.forceNext=!0),j(G(Fe.prototype),"formatAt",this).call(this,ne,fe,_e,ie)}},{key:"highlight",value:function(ne){var fe=this,_e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=this.children.head){var ie=Array.from(this.domNode.childNodes).filter(function(ae){return ae!==fe.uiNode}),de="".concat(ie.map(function(ae){return ae.textContent}).join("\n"),"\n"),le=X.formats(this.children.head.domNode);if(_e||this.forceNext||this.cachedText!==de){if(de.trim().length>0||null==this.cachedText){var pe=this.children.reduce(function(ae,te){return ae.concat(Object(s.b)(te,!1))},new I.a),Ee=ne(de,le);pe.diff(Ee).reduce(function(ae,te){var re=te.retain,oe=te.attributes;return re?(oe&&Object.keys(oe).forEach(function(ye){-1!==[X.blotName,Z.blotName].indexOf(ye)&&fe.formatAt(ae,re,ye,oe[ye])}),ae+re):ae},0)}this.cachedText=de,this.forceNext=!1}}}},{key:"html",value:function(ne,fe){var de=S(this.children.find(ne),1)[0],le=de?X.formats(de.domNode):"plain";return'<pre data-language="'.concat(le,'">\n').concat(this.code(ne,fe),"\n</pre>")}},{key:"optimize",value:function(ne){if(j(G(Fe.prototype),"optimize",this).call(this,ne),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){var fe=X.formats(this.children.head.domNode);fe!==this.uiNode.value&&(this.uiNode.value=fe)}}}]),Fe}(g.b);M.allowedChildren=[X],X.requiredContainer=M,X.allowedChildren=[Z,d.a,h.a,u.a];var se=function(ge){N(Fe,ge);var De=U(Fe);function Fe(Ae,ne){var fe;if(P(this,Fe),null==(fe=De.call(this,Ae,ne)).options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");return fe.languages=fe.options.languages.reduce(function(_e,ie){return _e[ie.key]=!0,_e},{}),fe.highlightBlot=fe.highlightBlot.bind(Y(fe)),fe.initListener(),fe.initTimer(),fe}return W(Fe,[{key:"initListener",value:function(){var ne=this;this.quill.on(a.a.events.SCROLL_BLOT_MOUNT,function(fe){if(fe instanceof M){var _e=ne.quill.root.ownerDocument.createElement("select");ne.options.languages.forEach(function(ie){var de=ie.key,le=ie.label,pe=_e.ownerDocument.createElement("option");pe.textContent=le,pe.setAttribute("value",de),_e.appendChild(pe)}),_e.addEventListener("change",function(){fe.format(X.blotName,_e.value),ne.quill.root.focus(),ne.highlight(fe,!0)}),null==fe.uiNode&&(fe.attachUI(_e),fe.children.head&&(_e.value=X.formats(fe.children.head.domNode)))}})}},{key:"initTimer",value:function(){var ne=this,fe=null;this.quill.on(a.a.events.SCROLL_OPTIMIZE,function(){clearTimeout(fe),fe=setTimeout(function(){ne.highlight(),fe=null},ne.options.interval)})}},{key:"highlight",value:function(){var ne=this,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,_e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.quill.selection.composing){this.quill.update(a.a.sources.USER);var ie=this.quill.getSelection();(null==fe?this.quill.scroll.descendants(M):[fe]).forEach(function(le){le.highlight(ne.highlightBlot,_e)}),this.quill.update(a.a.sources.SILENT),null!=ie&&this.quill.setSelection(ie,a.a.sources.SILENT)}}},{key:"highlightBlot",value:function(ne){var fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if("plain"===(fe=this.languages[fe]?fe:"plain"))return Object(h.b)(ne).split("\n").reduce(function(ie,de,le){return 0!==le&&ie.insert("\n",E({},g.c.blotName,fe)),ie.insert(de)},new I.a);var _e=this.quill.root.ownerDocument.createElement("div");return _e.classList.add(g.c.className),_e.innerHTML=this.options.hljs.highlight(fe,ne).value,Object(x.d)(this.quill.scroll,_e,[function(ie,de){var le=q.value(ie);return le?de.compose((new I.a).retain(de.length(),E({},Z.blotName,le))):de}],[function(ie,de){return ie.data.split("\n").reduce(function(le,pe,Ee){return 0!==Ee&&le.insert("\n",E({},g.c.blotName,fe)),le.insert(pe)},de)}],new WeakMap)}}],[{key:"register",value:function(){a.a.register(Z,!0),a.a.register(X,!0),a.a.register(M,!0)}}]),Fe}(p.a);se.DEFAULTS={hljs:Object(b.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(he,l){var o=Math.ceil,c=Math.floor;he.exports=function(I){var C=+I;return C!=C||0===C?0:(C>0?c:o)(C)}},function(he,l,o){var c=o(8),I=o(79),C=c.String;he.exports=function(f){if("Symbol"===I(f))throw TypeError("Cannot convert a Symbol value to a string");return C(f)}},function(he,l,o){var c=o(8),I=o(126),C=o(22),f=o(82),p=o(28)("toStringTag"),s=c.Object,u="Arguments"==f(function(){return arguments}());he.exports=I?f:function(h){var g,x,b;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(x=function(h,g){try{return h[g]}catch{}}(g=s(h),p))?x:u?f(g):"Object"==(b=f(g))&&C(g.callee)?"Arguments":b}},function(he,l,o){var c=o(8),I=o(81),C="__core-js_shared__",f=c[C]||I(C,{});he.exports=f},function(he,l,o){var c=o(8),I=Object.defineProperty;he.exports=function(C,f){try{I(c,C,{value:f,configurable:!0,writable:!0})}catch{c[C]=f}return f}},function(he,l,o){var c=o(20),I=c({}.toString),C=c("".slice);he.exports=function(f){return C(I(f),8,-1)}},function(he,l,o){var c=o(20),I=o(22),C=o(80),f=c(Function.toString);I(C.inspectSource)||(C.inspectSource=function(a){return f(a)}),he.exports=C.inspectSource},function(he,l,o){var c=o(130),I=o(103);he.exports=function(C){var f=c(C,"string");return I(f)?f:f+""}},function(he,l,o){var c=o(86);he.exports=function(I,C){var f=I[C];return null==f?void 0:c(f)}},function(he,l,o){var c=o(8),I=o(22),C=o(104),f=c.TypeError;he.exports=function(a){if(I(a))return a;throw f(C(a)+" is not a function")}},function(he,l,o){var c=o(96),I=o(97),C=c("keys");he.exports=function(f){return C[f]||(C[f]=I(f))}},function(he,l){he.exports={}},function(he,l,o){var c=o(41),I=o(42),C=o(105),f=o(71),a=o(62),p=o(84),s=o(36),u=o(101),d=Object.getOwnPropertyDescriptor;l.f=c?d:function(g,x){if(g=a(g),x=p(x),u)try{return d(g,x)}catch{}if(s(g,x))return f(!I(C.f,g,x),g[x])}},function(he,l,o){var c=o(8),I=o(22),C=o(36),f=o(70),a=o(81),p=o(83),s=o(100),u=o(106).CONFIGURABLE,d=s.get,h=s.enforce,g=String(String).split("String");(he.exports=function(x,b,y,E){var k,S=!!E&&!!E.unsafe,O=!!E&&!!E.enumerable,w=!!E&&!!E.noTargetGet,T=E&&void 0!==E.name?E.name:b;I(y)&&("Symbol("===String(T).slice(0,7)&&(T="["+String(T).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!C(y,"name")||u&&y.name!==T)&&f(y,"name",T),(k=h(y)).source||(k.source=g.join("string"==typeof T?T:""))),x!==c?(S?!w&&x[b]&&(O=!0):delete x[b],O?x[b]=y:f(x,b,y)):O?x[b]=y:a(b,y)})(Function.prototype,"toString",function(){return I(this)&&d(this).source||p(this)})},function(he,l,o){var c=o(109);he.exports=function(I){return c(I.length)}},function(he,l){he.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(he,l,o){var O,c=o(40),I=o(142),C=o(92),f=o(88),a=o(143),p=o(102),s=o(87),h="prototype",g="script",x=s("IE_PROTO"),b=function(){},y=function(T){return"<"+g+">"+T+"</"+g+">"},E=function(T){T.write(y("")),T.close();var k=T.parentWindow.Object;return T=null,k},w=function(){try{O=new ActiveXObject("htmlfile")}catch{}w=typeof document<"u"?document.domain&&O?E(O):function(){var R,T=p("iframe"),k="java"+g+":";return T.style.display="none",a.appendChild(T),T.src=String(k),(R=T.contentWindow.document).open(),R.write(y("document.F=Object")),R.close(),R.F}():E(O);for(var T=C.length;T--;)delete w[h][C[T]];return w()};f[x]=!0,he.exports=Object.create||function(k,R){var P;return null!==k?(b[h]=c(k),P=new b,b[h]=null,P[x]=k):P=w(),void 0===R?P:I(P,R)}},function(he,l,o){"use strict";var c=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(l,"__esModule",{value:!0});var C,f,I=c(o(120));(f=C||(C={})).iterator=function a(s){return new I.default(s)},f.length=function p(s){return"number"==typeof s.delete?s.delete:"number"==typeof s.retain?s.retain:"string"==typeof s.insert?s.insert.length:1},l.default=C},function(he,l){"use strict";var o=Object.prototype.hasOwnProperty,c="~";function I(){}function C(s,u,d){this.fn=s,this.context=u,this.once=d||!1}function f(s,u,d,h,g){if("function"!=typeof d)throw new TypeError("The listener must be a function");var x=new C(d,h||s,g),b=c?c+u:u;return s._events[b]?s._events[b].fn?s._events[b]=[s._events[b],x]:s._events[b].push(x):(s._events[b]=x,s._eventsCount++),s}function a(s,u){0==--s._eventsCount?s._events=new I:delete s._events[u]}function p(){this._events=new I,this._eventsCount=0}Object.create&&(I.prototype=Object.create(null),(new I).__proto__||(c=!1)),p.prototype.eventNames=function(){var d,h,u=[];if(0===this._eventsCount)return u;for(h in d=this._events)o.call(d,h)&&u.push(c?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},p.prototype.listeners=function(u){var h=this._events[c?c+u:u];if(!h)return[];if(h.fn)return[h.fn];for(var g=0,x=h.length,b=new Array(x);g<x;g++)b[g]=h[g].fn;return b},p.prototype.listenerCount=function(u){var h=this._events[c?c+u:u];return h?h.fn?1:h.length:0},p.prototype.emit=function(u,d,h,g,x,b){var y=c?c+u:u;if(!this._events[y])return!1;var O,w,E=this._events[y],S=arguments.length;if(E.fn){switch(E.once&&this.removeListener(u,E.fn,void 0,!0),S){case 1:return E.fn.call(E.context),!0;case 2:return E.fn.call(E.context,d),!0;case 3:return E.fn.call(E.context,d,h),!0;case 4:return E.fn.call(E.context,d,h,g),!0;case 5:return E.fn.call(E.context,d,h,g,x),!0;case 6:return E.fn.call(E.context,d,h,g,x,b),!0}for(w=1,O=new Array(S-1);w<S;w++)O[w-1]=arguments[w];E.fn.apply(E.context,O)}else{var k,T=E.length;for(w=0;w<T;w++)switch(E[w].once&&this.removeListener(u,E[w].fn,void 0,!0),S){case 1:E[w].fn.call(E[w].context);break;case 2:E[w].fn.call(E[w].context,d);break;case 3:E[w].fn.call(E[w].context,d,h);break;case 4:E[w].fn.call(E[w].context,d,h,g);break;default:if(!O)for(k=1,O=new Array(S-1);k<S;k++)O[k-1]=arguments[k];E[w].fn.apply(E[w].context,O)}}return!0},p.prototype.on=function(u,d,h){return f(this,u,d,h,!1)},p.prototype.once=function(u,d,h){return f(this,u,d,h,!0)},p.prototype.removeListener=function(u,d,h,g){var x=c?c+u:u;if(!this._events[x])return this;if(!d)return a(this,x),this;var b=this._events[x];if(b.fn)b.fn===d&&(!g||b.once)&&(!h||b.context===h)&&a(this,x);else{for(var y=0,E=[],S=b.length;y<S;y++)(b[y].fn!==d||g&&!b[y].once||h&&b[y].context!==h)&&E.push(b[y]);E.length?this._events[x]=1===E.length?E[0]:E:a(this,x)}return this},p.prototype.removeAllListeners=function(u){var d;return u?this._events[d=c?c+u:u]&&a(this,d):(this._events=new I,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prefixed=c,p.EventEmitter=p,typeof he<"u"&&(he.exports=p)},function(he,l,o){var c=o(67),I=o(80);(he.exports=function(C,f){return I[C]||(I[C]=void 0!==f?f:{})})("versions",[]).push({version:"3.19.1",mode:c?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},function(he,l,o){var c=o(20),I=0,C=Math.random(),f=c(1..toString);he.exports=function(a){return"Symbol("+(void 0===a?"":a)+")_"+f(++I+C,36)}},function(he,l,o){var c=o(127),I=o(39);he.exports=!!Object.getOwnPropertySymbols&&!I(function(){var C=Symbol();return!String(C)||!(Object(C)instanceof Symbol)||!Symbol.sham&&c&&c<41})},function(he,l,o){var c=o(98);he.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(he,l,o){var b,y,E,c=o(129),I=o(8),C=o(20),f=o(51),a=o(70),p=o(36),s=o(80),u=o(87),d=o(88),h="Object already initialized",g=I.TypeError;if(c||s.state){var w=s.state||(s.state=new(0,I.WeakMap)),T=C(w.get),k=C(w.has),R=C(w.set);b=function(B,W){if(k(w,B))throw new g(h);return W.facade=B,R(w,B,W),W},y=function(B){return T(w,B)||{}},E=function(B){return k(w,B)}}else{var P=u("state");d[P]=!0,b=function(B,W){if(p(B,P))throw new g(h);return W.facade=B,a(B,P,W),W},y=function(B){return p(B,P)?B[P]:{}},E=function(B){return p(B,P)}}he.exports={set:b,get:y,has:E,enforce:function(B){return E(B)?y(B):b(B,{})},getterFor:function(B){return function(W){var N;if(!f(W)||(N=y(W)).type!==B)throw g("Incompatible receiver, "+B+" required");return N}}}},function(he,l,o){var c=o(41),I=o(39),C=o(102);he.exports=!c&&!I(function(){return 7!=Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a})},function(he,l,o){var c=o(8),I=o(51),C=c.document,f=I(C)&&I(C.createElement);he.exports=function(a){return f?C.createElement(a):{}}},function(he,l,o){var c=o(8),I=o(60),C=o(22),f=o(131),a=o(99),p=c.Object;he.exports=a?function(s){return"symbol"==typeof s}:function(s){var u=I("Symbol");return C(u)&&f(u.prototype,p(s))}},function(he,l,o){var I=o(8).String;he.exports=function(C){try{return I(C)}catch{return"Object"}}},function(he,l,o){"use strict";var c={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,C=I&&!c.call({1:2},1);l.f=C?function(a){var p=I(this,a);return!!p&&p.enumerable}:c},function(he,l,o){var c=o(41),I=o(36),C=Function.prototype,f=c&&Object.getOwnPropertyDescriptor,a=I(C,"name"),p=a&&"something"===function(){}.name,s=a&&(!c||c&&f(C,"name").configurable);he.exports={EXISTS:a,PROPER:p,CONFIGURABLE:s}},function(he,l,o){var c=o(20),I=o(36),C=o(62),f=o(138).indexOf,a=o(88),p=c([].push);he.exports=function(s,u){var x,d=C(s),h=0,g=[];for(x in d)!I(a,x)&&I(d,x)&&p(g,x);for(;u.length>h;)I(d,x=u[h++])&&(~f(g,x)||p(g,x));return g}},function(he,l,o){var c=o(77),I=Math.max,C=Math.min;he.exports=function(f,a){var p=c(f);return p<0?I(p+a,0):C(p,a)}},function(he,l,o){var c=o(77),I=Math.min;he.exports=function(C){return C>0?I(c(C),9007199254740991):0}},function(he,l,o){"use strict";var h,g,x,c=o(39),I=o(22),C=o(93),f=o(112),a=o(90),p=o(28),s=o(67),u=p("iterator"),d=!1;[].keys&&("next"in(x=[].keys())?(g=f(f(x)))!==Object.prototype&&(h=g):d=!0),null==h||c(function(){var y={};return h[u].call(y)!==y})?h={}:s&&(h=C(h)),I(h[u])||a(h,u,function(){return this}),he.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:d}},function(he,l,o){var c=o(107),I=o(92);he.exports=Object.keys||function(f){return c(f,I)}},function(he,l,o){var c=o(8),I=o(36),C=o(22),f=o(68),a=o(87),p=o(144),s=a("IE_PROTO"),u=c.Object,d=u.prototype;he.exports=p?u.getPrototypeOf:function(h){var g=f(h);if(I(g,s))return g[s];var x=g.constructor;return C(x)&&g instanceof x?x.prototype:g instanceof u?d:null}},function(he,l,o){var c=o(52).f,I=o(36),f=o(28)("toStringTag");he.exports=function(a,p,s){a&&!I(a=s?a:a.prototype,f)&&c(a,f,{configurable:!0,value:p})}},function(he,l,o){var c=o(79),I=o(85),C=o(72),a=o(28)("iterator");he.exports=function(p){if(null!=p)return I(p,a)||I(p,"@@iterator")||C[c(p)]}},function(he,l,o){var c=o(8);he.exports=c},function(he,l,o){var c=o(8),I=o(20);he.exports=function(C,f){return I(c[C].prototype[f])}},function(he,l,o){"use strict";o.r(l),o(121),o(157),o(163),o(168);var a=o(25),p=o(38),s=o(35),u=o(2);function d(We){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function h(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}function g(We,nt){for(var at=0;at<nt.length;at++){var Yt=nt[at];Yt.enumerable=Yt.enumerable||!1,Yt.configurable=!0,"value"in Yt&&(Yt.writable=!0),Object.defineProperty(We,Yt.key,Yt)}}function b(We,nt,at){return(b=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(gn,Gn,Qn){var Mi=function y(We,nt){for(;!Object.prototype.hasOwnProperty.call(We,nt)&&null!==(We=R(We)););return We}(gn,Gn);if(Mi){var vi=Object.getOwnPropertyDescriptor(Mi,Gn);return vi.get?vi.get.call(Qn):vi.value}})(We,nt,at||We)}function E(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&S(We,nt)}function S(We,nt){return(S=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function O(We){var nt=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 gn,Yt=R(We);if(nt){var Gn=R(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return w(this,gn)}}function w(We,nt){if(nt&&("object"===d(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return function T(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function R(We){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}var P=function(We){E(at,We);var nt=O(at);function at(){return h(this,at),nt.apply(this,arguments)}return function x(We,nt,at){return nt&&g(We.prototype,nt),at&&g(We,at),We}(at,[{key:"add",value:function(gn,Gn){if("+1"===Gn||"-1"===Gn){var Qn=this.value(gn)||0;Gn="+1"===Gn?Qn+1:Qn-1}return 0===Gn?(this.remove(gn),!0):b(R(at.prototype),"add",this).call(this,gn,Gn)}},{key:"canAdd",value:function(gn,Gn){return b(R(at.prototype),"canAdd",this).call(this,gn,Gn)||b(R(at.prototype),"canAdd",this).call(this,gn,parseInt(Gn,10))}},{key:"value",value:function(gn){return parseInt(b(R(at.prototype),"value",this).call(this,gn),10)||void 0}}]),at}(u.ClassAttributor),W=new P("indent","ql-indent",{scope:u.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),N=o(6);function V(We){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function U(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}function K(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&Y(We,nt)}function Y(We,nt){return(Y=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function J(We){var nt=function G(){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 gn,Yt=q(We);if(nt){var Gn=q(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return j(this,gn)}}function j(We,nt){if(nt&&("object"===V(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return function ee(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function q(We){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}var Z=function(We){K(at,We);var nt=J(at);function at(){return U(this,at),nt.apply(this,arguments)}return at}(N.d);Z.blotName="blockquote",Z.tagName="blockquote";var X=Z;function M(We){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function se(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}function ge(We,nt){for(var at=0;at<nt.length;at++){var Yt=nt[at];Yt.enumerable=Yt.enumerable||!1,Yt.configurable=!0,"value"in Yt&&(Yt.writable=!0),Object.defineProperty(We,Yt.key,Yt)}}function Fe(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&Ae(We,nt)}function Ae(We,nt){return(Ae=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function ne(We){var nt=function ie(){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 gn,Yt=de(We);if(nt){var Gn=de(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return fe(this,gn)}}function fe(We,nt){if(nt&&("object"===M(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return function _e(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function de(We){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}var le=function(We){Fe(at,We);var nt=ne(at);function at(){return se(this,at),nt.apply(this,arguments)}return function De(We,nt,at){return nt&&ge(We.prototype,nt),at&&ge(We,at),We}(at,null,[{key:"formats",value:function(gn){return this.tagName.indexOf(gn.tagName)+1}}]),at}(N.d);le.blotName="header",le.tagName=["H1","H2","H3","H4","H5","H6"];var pe=le,Ee=o(13),ae=o(0);function te(We){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function re(We,nt){for(var at=0;at<nt.length;at++){var Yt=nt[at];Yt.enumerable=Yt.enumerable||!1,Yt.configurable=!0,"value"in Yt&&(Yt.writable=!0),Object.defineProperty(We,Yt.key,Yt)}}function ye(We,nt,at){return(ye=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(gn,Gn,Qn){var Mi=function Pe(We,nt){for(;!Object.prototype.hasOwnProperty.call(We,nt)&&null!==(We=$e(We)););return We}(gn,Gn);if(Mi){var vi=Object.getOwnPropertyDescriptor(Mi,Gn);return vi.get?vi.get.call(Qn):vi.value}})(We,nt,at||We)}function Ne(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}function ft(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&tt(We,nt)}function tt(We,nt){return(tt=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function Be(We){var nt=function ke(){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 gn,Yt=$e(We);if(nt){var Gn=$e(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return mt(this,gn)}}function mt(We,nt){if(nt&&("object"===te(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return function nn(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function $e(We){return($e=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}var me=function(We){ft(at,We);var nt=Be(at);function at(){return Ne(this,at),nt.apply(this,arguments)}return at}(Ee.a);me.blotName="list-container",me.tagName="OL";var xe=function(We){ft(at,We);var nt=Be(at);function at(Yt,gn){var Gn;Ne(this,at),Gn=nt.call(this,Yt,gn);var Qn=gn.ownerDocument.createElement("span"),Mi=function(Ei){if(Yt.isEnabled()){var bi=Gn.statics.formats(gn,Yt);"checked"===bi?(Gn.format("list","unchecked"),Ei.preventDefault()):"unchecked"===bi&&(Gn.format("list","checked"),Ei.preventDefault())}};return Qn.addEventListener("mousedown",Mi),Qn.addEventListener("touchstart",Mi),Gn.attachUI(Qn),Gn}return function oe(We,nt,at){return nt&&re(We.prototype,nt),at&&re(We,at),We}(at,[{key:"format",value:function(gn,Gn){gn===this.statics.blotName&&Gn?this.domNode.setAttribute("data-list",Gn):ye($e(at.prototype),"format",this).call(this,gn,Gn)}}],[{key:"create",value:function(gn){var Gn=ye($e(at),"create",this).call(this);return Gn.setAttribute("data-list",gn),Gn}},{key:"formats",value:function(gn){return gn.getAttribute("data-list")||void 0}},{key:"register",value:function(){ae.a.register(me)}}]),at}(N.d);xe.blotName="list",xe.tagName="LI",me.allowedChildren=[xe],xe.requiredContainer=me;var Te=o(45),Ye=o(34),St=o(46),Ct=o(47),Rt=o(49);function fn(We){return(fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function ct(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}function He(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&Dt(We,nt)}function Dt(We,nt){return(Dt=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function qe(We){var nt=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 gn,Yt=yt(We);if(nt){var Gn=yt(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return Ht(this,gn)}}function Ht(We,nt){if(nt&&("object"===fn(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return function dt(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function yt(We){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}var Ft=function(We){He(at,We);var nt=qe(at);function at(){return ct(this,at),nt.apply(this,arguments)}return at}(Rt.a);Ft.blotName="italic",Ft.tagName=["EM","I"];var bn=Ft,_n=o(43),xn=o(14);function Jn(We){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function li(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}function Ai(We,nt){for(var at=0;at<nt.length;at++){var Yt=nt[at];Yt.enumerable=Yt.enumerable||!1,Yt.configurable=!0,"value"in Yt&&(Yt.writable=!0),Object.defineProperty(We,Yt.key,Yt)}}function Oi(We,nt,at){return(Oi=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(gn,Gn,Qn){var Mi=function Hn(We,nt){for(;!Object.prototype.hasOwnProperty.call(We,nt)&&null!==(We=ei(We)););return We}(gn,Gn);if(Mi){var vi=Object.getOwnPropertyDescriptor(Mi,Gn);return vi.get?vi.get.call(Qn):vi.value}})(We,nt,at||We)}function Sn(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&An(We,nt)}function An(We,nt){return(An=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function ti(We){var nt=function On(){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 gn,Yt=ei(We);if(nt){var Gn=ei(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return Wn(this,gn)}}function Wn(We,nt){if(nt&&("object"===Jn(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return function Yi(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function ei(We){return(ei=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}var ni=function(We){Sn(at,We);var nt=ti(at);function at(){return li(this,at),nt.apply(this,arguments)}return function Vn(We,nt,at){return nt&&Ai(We.prototype,nt),at&&Ai(We,at),We}(at,null,[{key:"create",value:function(gn){return"super"===gn?document.createElement("sup"):"sub"===gn?document.createElement("sub"):Oi(ei(at),"create",this).call(this,gn)}},{key:"formats",value:function(gn){return"SUB"===gn.tagName?"sub":"SUP"===gn.tagName?"super":void 0}}]),at}(xn.a);ni.blotName="script",ni.tagName=["SUB","SUP"];var di=ni;function Hi(We){return(Hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function $i(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}function Qi(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&_r(We,nt)}function _r(We,nt){return(_r=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function yn(We){var nt=function Si(){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 gn,Yt=ji(We);if(nt){var Gn=ji(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return Rn(this,gn)}}function Rn(We,nt){if(nt&&("object"===Hi(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return function ci(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function ji(We){return(ji=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}var lr=function(We){Qi(at,We);var nt=yn(at);function at(){return $i(this,at),nt.apply(this,arguments)}return at}(Rt.a);lr.blotName="strike",lr.tagName=["S","STRIKE"];var Dr=lr;function kr(We){return(kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function zr(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}function Gr(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&xr(We,nt)}function xr(We,nt){return(xr=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function Vr(We){var nt=function so(){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 gn,Yt=Er(We);if(nt){var Gn=Er(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return Nr(this,gn)}}function Nr(We,nt){if(nt&&("object"===kr(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return function Tr(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function Er(We){return(Er=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}var oo=function(We){Gr(at,We);var nt=Vr(at);function at(){return zr(this,at),nt.apply(this,arguments)}return at}(xn.a);oo.blotName="underline",oo.tagName="U";var fi=oo,ir=o(56),Kr=o(15);function to(We){return(to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function uo(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}function po(We,nt){for(var at=0;at<nt.length;at++){var Yt=nt[at];Yt.enumerable=Yt.enumerable||!1,Yt.configurable=!0,"value"in Yt&&(Yt.writable=!0),Object.defineProperty(We,Yt.key,Yt)}}function tn(We,nt,at){return(tn=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(gn,Gn,Qn){var Mi=function $n(We,nt){for(;!Object.prototype.hasOwnProperty.call(We,nt)&&null!==(We=Ri(We)););return We}(gn,Gn);if(Mi){var vi=Object.getOwnPropertyDescriptor(Mi,Gn);return vi.get?vi.get.call(Qn):vi.value}})(We,nt,at||We)}function _i(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&mi(We,nt)}function mi(We,nt){return(mi=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function dn(We){var nt=function gi(){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 gn,Yt=Ri(We);if(nt){var Gn=Ri(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return In(this,gn)}}function In(We,nt){if(nt&&("object"===to(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return function Zn(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function Ri(We){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}var or=function(We){_i(at,We);var nt=dn(at);function at(){return uo(this,at),nt.apply(this,arguments)}return function At(We,nt,at){return nt&&po(We.prototype,nt),at&&po(We,at),We}(at,[{key:"html",value:function(){var gn=this.value();return"<span>".concat(gn.formula,"</span>")}}],[{key:"create",value:function(gn){var Gn=null;if(Object(Kr.a)()&&(Gn=window.katex),null==Gn)throw new Error("Formula module requires KaTeX.");var Qn=tn(Ri(at),"create",this).call(this,gn);return"string"==typeof gn&&(Gn.render(gn,Qn,{throwOnError:!1,errorColor:"#f00"}),Qn.setAttribute("data-value",gn)),Qn}},{key:"value",value:function(gn){return gn.getAttribute("data-value")}}]),at}(ir.a);or.blotName="formula",or.className="ql-formula",or.tagName="SPAN";var cr=or;function en(We){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function vn(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}function Ze(We,nt){for(var at=0;at<nt.length;at++){var Yt=nt[at];Yt.enumerable=Yt.enumerable||!1,Yt.configurable=!0,"value"in Yt&&(Yt.writable=!0),Object.defineProperty(We,Yt.key,Yt)}}function _t(We,nt,at){return(_t=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(gn,Gn,Qn){var Mi=function Wt(We,nt){for(;!Object.prototype.hasOwnProperty.call(We,nt)&&null!==(We=hn(We)););return We}(gn,Gn);if(Mi){var vi=Object.getOwnPropertyDescriptor(Mi,Gn);return vi.get?vi.get.call(Qn):vi.value}})(We,nt,at||We)}function Ot(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&qt(We,nt)}function qt(We,nt){return(qt=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function mn(We){var nt=function an(){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 gn,Yt=hn(We);if(nt){var Gn=hn(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return Ke(this,gn)}}function Ke(We,nt){if(nt&&("object"===en(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return function pt(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function hn(We){return(hn=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}var sn=["alt","height","width"],Nn=function(We){Ot(at,We);var nt=mn(at);function at(){return vn(this,at),nt.apply(this,arguments)}return function bt(We,nt,at){return nt&&Ze(We.prototype,nt),at&&Ze(We,at),We}(at,[{key:"format",value:function(gn,Gn){sn.indexOf(gn)>-1?Gn?this.domNode.setAttribute(gn,Gn):this.domNode.removeAttribute(gn):_t(hn(at.prototype),"format",this).call(this,gn,Gn)}}],[{key:"create",value:function(gn){var Gn=_t(hn(at),"create",this).call(this,gn);return"string"==typeof gn&&Gn.setAttribute("src",this.sanitize(gn)),Gn}},{key:"formats",value:function(gn){return sn.reduce(function(Gn,Qn){return gn.hasAttribute(Qn)&&(Gn[Qn]=gn.getAttribute(Qn)),Gn},{})}},{key:"match",value:function(gn){return/\.(jpe?g|gif|png)$/.test(gn)||/^data:image\/.+;base64/.test(gn)}},{key:"register",value:function(){Object(Kr.a)()&&/Firefox/i.test(navigator.userAgent)&&setTimeout(function(){document.execCommand("enableObjectResizing",!1,!1)},1)}},{key:"sanitize",value:function(gn){return Object(_n.b)(gn,["http","https","data"])?gn:"//:0"}},{key:"value",value:function(gn){return gn.getAttribute("src")}}]),at}(u.EmbedBlot);Nn.blotName="image",Nn.tagName="IMG";var Yn=Nn;function st(We){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function Vt(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}function rn(We,nt){for(var at=0;at<nt.length;at++){var Yt=nt[at];Yt.enumerable=Yt.enumerable||!1,Yt.configurable=!0,"value"in Yt&&(Yt.writable=!0),Object.defineProperty(We,Yt.key,Yt)}}function rt(We,nt,at){return(rt=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(gn,Gn,Qn){var Mi=function Bt(We,nt){for(;!Object.prototype.hasOwnProperty.call(We,nt)&&null!==(We=zi(We)););return We}(gn,Gn);if(Mi){var vi=Object.getOwnPropertyDescriptor(Mi,Gn);return vi.get?vi.get.call(Qn):vi.value}})(We,nt,at||We)}function gt(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&$t(We,nt)}function $t(We,nt){return($t=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function Un(We){var nt=function Ii(){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 gn,Yt=zi(We);if(nt){var Gn=zi(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return ai(this,gn)}}function ai(We,nt){if(nt&&("object"===st(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return function Ci(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function zi(We){return(zi=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}var Ki=["height","width"],Xi=function(We){gt(at,We);var nt=Un(at);function at(){return Vt(this,at),nt.apply(this,arguments)}return function Dn(We,nt,at){return nt&&rn(We.prototype,nt),at&&rn(We,at),We}(at,[{key:"format",value:function(gn,Gn){Ki.indexOf(gn)>-1?Gn?this.domNode.setAttribute(gn,Gn):this.domNode.removeAttribute(gn):rt(zi(at.prototype),"format",this).call(this,gn,Gn)}},{key:"html",value:function(){var Gn=this.value().video;return'<a href="'.concat(Gn,'">').concat(Gn,"</a>")}}],[{key:"create",value:function(gn){var Gn=rt(zi(at),"create",this).call(this,gn);return Gn.setAttribute("frameborder","0"),Gn.setAttribute("allowfullscreen",!0),Gn.setAttribute("src",this.sanitize(gn)),Gn}},{key:"formats",value:function(gn){return Ki.reduce(function(Gn,Qn){return gn.hasAttribute(Qn)&&(Gn[Qn]=gn.getAttribute(Qn)),Gn},{})}},{key:"sanitize",value:function(gn){return _n.a.sanitize(gn)}},{key:"value",value:function(gn){return gn.getAttribute("src")}}]),at}(N.a);Xi.blotName="video",Xi.className="ql-video",Xi.tagName="IFRAME";var wr=Xi,vr=o(17),Jr=o(76),Xr=o(65),ko=o(1),no=o.n(ko);function Uo(We){return(Uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function ua(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}function qo(We,nt){for(var at=0;at<nt.length;at++){var Yt=nt[at];Yt.enumerable=Yt.enumerable||!1,Yt.configurable=!0,"value"in Yt&&(Yt.writable=!0),Object.defineProperty(We,Yt.key,Yt)}}function Vo(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&So(We,nt)}function So(We,nt){return(So=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function ba(We){var nt=function da(){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 gn,Yt=ja(We);if(nt){var Gn=ja(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return Yr(this,gn)}}function Yr(We,nt){if(nt&&("object"===Uo(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return function Ho(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function ja(We){return(ja=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}var ea=function(We){Vo(at,We);var nt=ba(at);function at(){return ua(this,at),nt.apply(this,arguments)}return function go(We,nt,at){return nt&&qo(We.prototype,nt),at&&qo(We,at),We}(at,[{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"}}]),at}(u.EmbedBlot);ea.blotName="multilineBreak",ea.tagName="BR";var us=ea;function ca(We){return(ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(at){return typeof at}:function(at){return at&&"function"==typeof Symbol&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at})(We)}function La(We,nt){for(var at=0;at<nt.length;at++){var Yt=nt[at];Yt.enumerable=Yt.enumerable||!1,Yt.configurable=!0,"value"in Yt&&(Yt.writable=!0),Object.defineProperty(We,Yt.key,Yt)}}function ta(We,nt){if("function"!=typeof nt&&null!==nt)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(nt&&nt.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),nt&&Oa(We,nt)}function Oa(We,nt){return(Oa=Object.setPrototypeOf||function(Yt,gn){return Yt.__proto__=gn,Yt})(We,nt)}function ma(We){var nt=function Da(){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 gn,Yt=_a(We);if(nt){var Gn=_a(this).constructor;gn=Reflect.construct(Yt,arguments,Gn)}else gn=Yt.apply(this,arguments);return ha(this,gn)}}function ha(We,nt){if(nt&&("object"===ca(nt)||"function"==typeof nt))return nt;if(void 0!==nt)throw new TypeError("Derived constructors may only return object or undefined");return $o(We)}function $o(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}function _a(We){return(_a=Object.setPrototypeOf?Object.getPrototypeOf:function(at){return at.__proto__||Object.getPrototypeOf(at)})(We)}function va(We){return We.nextSibling||We.previousSibling?(new no.a).insert({multilineBreak:""}):(new no.a).insert("\n")}var Qt=function(We){ta(at,We);var nt=ma(at);function at(Yt,gn){var Gn;!function Go(We,nt){if(!(We instanceof nt))throw new TypeError("Cannot call a class as a function")}(this,at);return Gn=nt.call(this,Yt,gn),ae.a.register(function Sa(We,nt,at){return nt in We?Object.defineProperty(We,nt,{value:at,enumerable:!0,configurable:!0,writable:!0}):We[nt]=at,We}({},"blots/multilineBreak",us),!0),Yt.keyboard.addBinding({key:"enter",shiftKey:!0},Gn.enterHandler.bind($o(Gn))),Yt.keyboard.bindings.enter.unshift(Yt.keyboard.bindings.enter.pop()),Yt.clipboard.addMatcher("BR",va),Gn}return function jo(We,nt,at){return nt&&La(We.prototype,nt),at&&La(We,at),We}(at,[{key:"enterHandler",value:function(gn){var Gn=this.quill.getLeaf(gn.index)[0],Qn=this.quill.getLeaf(gn.index+1)[0];this.quill.insertEmbed(gn.index,"multilineBreak",!0,"user"),(null===Qn||Gn.parent!==Qn.parent)&&this.quill.insertEmbed(gn.index,"multilineBreak",!0,"user"),this.quill.setSelection(gn.index+1,ae.a.sources.SILENT)}}]),at}(o(12).a),Kt=o(75),Pt=o(21),Pn=o(11);function Vi(We,nt){var at=Object.keys(We);if(Object.getOwnPropertySymbols){var Yt=Object.getOwnPropertySymbols(We);nt&&(Yt=Yt.filter(function(gn){return Object.getOwnPropertyDescriptor(We,gn).enumerable})),at.push.apply(at,Yt)}return at}function Wr(We){for(var nt=1;nt<arguments.length;nt++){var at=null!=arguments[nt]?arguments[nt]:{};nt%2?Vi(Object(at),!0).forEach(function(Yt){fo(We,Yt,at[Yt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(We,Object.getOwnPropertyDescriptors(at)):Vi(Object(at)).forEach(function(Yt){Object.defineProperty(We,Yt,Object.getOwnPropertyDescriptor(at,Yt))})}return We}function fo(We,nt,at){return nt in We?Object.defineProperty(We,nt,{value:at,enumerable:!0,configurable:!0,writable:!0}):We[nt]=at,We}function vt(We,nt){return nt.reduce(function(at,Yt){return at["".concat(We).concat(Yt.attrName)]=Yt,at},{})}a.default.register(Wr(Wr(Wr(Wr({"attributors/attribute/direction":s.a},vt("attributors/attribute/",Pn.b)),vt("attributors/attribute/",Pt.c)),{},{"attributors/class/align":p.b,"attributors/class/background":Te.a,"attributors/class/color":Ye.b,"attributors/class/direction":s.b,"attributors/class/font":St.a,"attributors/class/size":Ct.a,"attributors/style/align":p.c,"attributors/style/background":Te.b,"attributors/style/color":Ye.c,"attributors/style/direction":s.c,"attributors/style/font":St.b,"attributors/style/size":Ct.b},vt("attributors/style/",Pn.d)),vt("attributors/style/",Pt.d)),!0),a.default.register({"formats/align":p.b,"formats/direction":s.b,"formats/indent":W,"formats/background":Te.b,"formats/color":Ye.c,"formats/font":St.a,"formats/size":Ct.a,"formats/blockquote":X,"formats/code-block":vr.c,"formats/header":pe,"formats/list":xe,"formats/bold":Rt.a,"formats/code":vr.a,"formats/italic":bn,"formats/link":_n.a,"formats/script":di,"formats/strike":Dr,"formats/underline":fi,"formats/formula":cr,"formats/image":Yn,"formats/video":wr,"tableModules/lite":Kt.a,"tableModules/main":Xr.a,"modules/syntax":Jr.b,"modules/multiline":Qt,"modules/table":Xr.a},!0),l.default=a.default},function(he,l){var o=-1;function C(T,k,R,P){if(T===k)return T?[[0,T]]:[];if(null!=R){var B=function O(T,k,R){var P="number"==typeof R?{index:R,length:0}:R.oldRange,B="number"==typeof R?null:R.newRange,W=T.length,N=k.length;if(0===P.length&&(null===B||0===B.length)){var V=P.index,U=T.slice(0,V),K=T.slice(V),Y=B?B.index:null,J=V+N-W;if(!(null!==Y&&Y!==J||J<0||J>N)){var j=k.slice(0,J);if((ee=k.slice(J))===K){var G=Math.min(V,J);if((q=U.slice(0,G))===(Z=j.slice(0,G)))return S(q,U.slice(G),j.slice(G),K)}}if(null===Y||Y===V){var se=V,ee=(j=k.slice(0,se),k.slice(se));if(j===U){var ge=Math.min(W-se,N-se);if((De=K.slice(K.length-ge))===(Fe=ee.slice(ee.length-ge)))return S(U,K.slice(0,K.length-ge),ee.slice(0,ee.length-ge),De)}}}if(P.length>0&&B&&0===B.length){var q=T.slice(0,P.index),De=T.slice(P.index+P.length);if(!(N<(G=q.length)+(ge=De.length))){var Z=k.slice(0,G),Fe=k.slice(N-ge);if(q===Z&&De===Fe)return S(q,T.slice(G,W-ge),k.slice(G,N-ge),De)}}return null}(T,k,R);if(B)return B}var W=s(T,k),N=T.substring(0,W);W=u(T=T.substring(W),k=k.substring(W));var V=T.substring(T.length-W),U=function f(T,k){var R;if(!T)return[[1,k]];if(!k)return[[o,T]];var P=T.length>k.length?T:k,B=T.length>k.length?k:T,W=P.indexOf(B);if(-1!==W)return R=[[1,P.substring(0,W)],[0,B],[1,P.substring(W+B.length)]],T.length>k.length&&(R[0][0]=R[2][0]=o),R;if(1===B.length)return[[o,T],[1,k]];var N=function d(T,k){var R=T.length>k.length?T:k,P=T.length>k.length?k:T;if(R.length<4||2*P.length<R.length)return null;function B(ee,G,q){for(var se,ge,De,Fe,Z=ee.substring(q,q+Math.floor(ee.length/4)),X=-1,M="";-1!==(X=G.indexOf(Z,X+1));){var Ae=s(ee.substring(q),G.substring(X)),ne=u(ee.substring(0,q),G.substring(0,X));M.length<ne+Ae&&(M=G.substring(X-ne,X)+G.substring(X,X+Ae),se=ee.substring(0,q-ne),ge=ee.substring(q+Ae),De=G.substring(0,X-ne),Fe=G.substring(X+Ae))}return 2*M.length>=ee.length?[se,ge,De,Fe,M]:null}var V,U,K,Y,J,W=B(R,P,Math.ceil(R.length/4)),N=B(R,P,Math.ceil(R.length/2));return W||N?(V=N?W&&W[4].length>N[4].length?W:N:W,T.length>k.length?(U=V[0],K=V[1],Y=V[2],J=V[3]):(Y=V[0],J=V[1],U=V[2],K=V[3]),[U,K,Y,J,V[4]]):null}(T,k);if(N){var U=N[1],Y=N[3],J=N[4],j=C(N[0],N[2]),ee=C(U,Y);return j.concat([[0,J]],ee)}return function a(T,k){for(var R=T.length,P=k.length,B=Math.ceil((R+P)/2),W=B,N=2*B,V=new Array(N),U=new Array(N),K=0;K<N;K++)V[K]=-1,U[K]=-1;V[W+1]=0,U[W+1]=0;for(var Y=R-P,J=Y%2!=0,j=0,ee=0,G=0,q=0,Z=0;Z<B;Z++){for(var X=-Z+j;X<=Z-ee;X+=2){for(var M=W+X,ge=(se=X===-Z||X!==Z&&V[M-1]<V[M+1]?V[M+1]:V[M-1]+1)-X;se<R&&ge<P&&T.charAt(se)===k.charAt(ge);)se++,ge++;if(V[M]=se,se>R)ee+=2;else if(ge>P)j+=2;else if(J&&(De=W+Y-X)>=0&&De<N&&-1!==U[De]&&se>=(Fe=R-U[De]))return p(T,k,se,ge)}for(var Ae=-Z+G;Ae<=Z-q;Ae+=2){for(var Fe,De=W+Ae,ne=(Fe=Ae===-Z||Ae!==Z&&U[De-1]<U[De+1]?U[De+1]:U[De-1]+1)-Ae;Fe<R&&ne<P&&T.charAt(R-Fe-1)===k.charAt(P-ne-1);)Fe++,ne++;if(U[De]=Fe,Fe>R)q+=2;else if(ne>P)G+=2;else if(!J){var se;if((M=W+Y-Ae)>=0&&M<N&&-1!==V[M]&&(ge=W+(se=V[M])-M,se>=(Fe=R-Fe)))return p(T,k,se,ge)}}}return[[o,T],[1,k]]}(T,k)}(T=T.substring(0,T.length-W),k=k.substring(0,k.length-W));return N&&U.unshift([0,N]),V&&U.push([0,V]),h(U,P),U}function p(T,k,R,P){var B=T.substring(0,R),W=k.substring(0,P),N=T.substring(R),V=k.substring(P),U=C(B,W),K=C(N,V);return U.concat(K)}function s(T,k){if(!T||!k||T.charAt(0)!==k.charAt(0))return 0;for(var R=0,P=Math.min(T.length,k.length),B=P,W=0;R<B;)T.substring(W,B)==k.substring(W,B)?W=R=B:P=B,B=Math.floor((P-R)/2+R);return g(T.charCodeAt(B-1))&&B--,B}function u(T,k){if(!T||!k||T.slice(-1)!==k.slice(-1))return 0;for(var R=0,P=Math.min(T.length,k.length),B=P,W=0;R<B;)T.substring(T.length-B,T.length-W)==k.substring(k.length-B,k.length-W)?W=R=B:P=B,B=Math.floor((P-R)/2+R);return x(T.charCodeAt(T.length-B))&&B--,B}function h(T,k){T.push([0,""]);for(var V,R=0,P=0,B=0,W="",N="";R<T.length;)if(R<T.length-1&&!T[R][1])T.splice(R,1);else switch(T[R][0]){case 1:B++,N+=T[R][1],R++;break;case o:P++,W+=T[R][1],R++;break;case 0:var U=R-B-P-1;if(k){if(U>=0&&y(T[U][1])){var K=T[U][1].slice(-1);if(T[U][1]=T[U][1].slice(0,-1),W=K+W,N=K+N,!T[U][1]){T.splice(U,1),R--;var Y=U-1;T[Y]&&1===T[Y][0]&&(B++,N=T[Y][1]+N,Y--),T[Y]&&T[Y][0]===o&&(P++,W=T[Y][1]+W,Y--),U=Y}}b(T[R][1])&&(K=T[R][1].charAt(0),T[R][1]=T[R][1].slice(1),W+=K,N+=K)}if(R<T.length-1&&!T[R][1]){T.splice(R,1);break}if(W.length>0||N.length>0){W.length>0&&N.length>0&&(0!==(V=s(N,W))&&(U>=0?T[U][1]+=N.substring(0,V):(T.splice(0,0,[0,N.substring(0,V)]),R++),N=N.substring(V),W=W.substring(V)),0!==(V=u(N,W))&&(T[R][1]=N.substring(N.length-V)+T[R][1],N=N.substring(0,N.length-V),W=W.substring(0,W.length-V)));var J=B+P;0===W.length&&0===N.length?(T.splice(R-J,J),R-=J):0===W.length?(T.splice(R-J,J,[1,N]),R=R-J+1):0===N.length?(T.splice(R-J,J,[o,W]),R=R-J+1):(T.splice(R-J,J,[o,W],[1,N]),R=R-J+2)}0!==R&&0===T[R-1][0]?(T[R-1][1]+=T[R][1],T.splice(R,1)):R++,B=0,P=0,W="",N=""}""===T[T.length-1][1]&&T.pop();var j=!1;for(R=1;R<T.length-1;)0===T[R-1][0]&&0===T[R+1][0]&&(T[R][1].substring(T[R][1].length-T[R-1][1].length)===T[R-1][1]?(T[R][1]=T[R-1][1]+T[R][1].substring(0,T[R][1].length-T[R-1][1].length),T[R+1][1]=T[R-1][1]+T[R+1][1],T.splice(R-1,1),j=!0):T[R][1].substring(0,T[R+1][1].length)==T[R+1][1]&&(T[R-1][1]+=T[R+1][1],T[R][1]=T[R][1].substring(T[R+1][1].length)+T[R+1][1],T.splice(R+1,1),j=!0)),R++;j&&h(T,k)}function g(T){return T>=55296&&T<=56319}function x(T){return T>=56320&&T<=57343}function b(T){return x(T.charCodeAt(0))}function y(T){return g(T.charCodeAt(T.length-1))}function S(T,k,R,P){return y(T)||b(P)?null:function E(T){for(var k=[],R=0;R<T.length;R++)T[R][1].length>0&&k.push(T[R]);return k}([[0,T],[o,k],[1,R],[0,P]])}function w(T,k,R){return C(T,k,R,!0)}w.INSERT=1,w.DELETE=o,w.EQUAL=0,he.exports=w},function(he,l,o){"use strict";var c=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(l,"__esModule",{value:!0});var f,a,I=c(o(16)),C=c(o(30));(a=f||(f={})).compose=function p(h,g,x){void 0===h&&(h={}),void 0===g&&(g={}),"object"!=typeof h&&(h={}),"object"!=typeof g&&(g={});var b=I.default(g);for(var y in x||(b=Object.keys(b).reduce(function(E,S){return null!=b[S]&&(E[S]=b[S]),E},{})),h)void 0!==h[y]&&void 0===g[y]&&(b[y]=h[y]);return Object.keys(b).length>0?b:void 0},a.diff=function s(h,g){void 0===h&&(h={}),void 0===g&&(g={}),"object"!=typeof h&&(h={}),"object"!=typeof g&&(g={});var x=Object.keys(h).concat(Object.keys(g)).reduce(function(b,y){return C.default(h[y],g[y])||(b[y]=void 0===g[y]?null:g[y]),b},{});return Object.keys(x).length>0?x:void 0},a.invert=function u(h,g){void 0===h&&(h={}),void 0===g&&(g={}),h=h||{};var x=Object.keys(g).reduce(function(b,y){return g[y]!==h[y]&&void 0!==h[y]&&(b[y]=g[y]),b},{});return Object.keys(h).reduce(function(b,y){return h[y]!==g[y]&&void 0===g[y]&&(b[y]=null),b},x)},a.transform=function d(h,g,x){if(void 0===x&&(x=!1),"object"!=typeof h)return g;if("object"==typeof g){if(!x)return g;var b=Object.keys(g).reduce(function(y,E){return void 0===h[E]&&(y[E]=g[E]),y},{});return Object.keys(b).length>0?b:void 0}},l.default=f},function(he,l,o){"use strict";var c=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(l,"__esModule",{value:!0});var I=c(o(94)),C=function(){function f(a){this.ops=a,this.index=0,this.offset=0}return f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(a){a||(a=1/0);var p=this.ops[this.index];if(p){var s=this.offset,u=I.default.length(p);if(a>=u-s?(a=u-s,this.index+=1,this.offset=0):this.offset+=a,"number"==typeof p.delete)return{delete:a};var d={};return p.attributes&&(d.attributes=p.attributes),"number"==typeof p.retain?d.retain=a:d.insert="string"==typeof p.insert?p.insert.substr(s,a):p.insert,d}return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?I.default.length(this.ops[this.index])-this.offset:1/0},f.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"},f.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var a=this.offset,p=this.index,s=this.next(),u=this.ops.slice(this.index);return this.offset=a,this.index=p,[s].concat(u)}return[]},f}();l.default=C},function(he,l,o){var c=o(122);he.exports=c},function(he,l,o){var c=o(123);he.exports=c},function(he,l,o){o(124),o(147);var c=o(115);he.exports=c.Array.from},function(he,l,o){"use strict";var c=o(125).charAt,I=o(78),C=o(100),f=o(133),a="String Iterator",p=C.set,s=C.getterFor(a);f(String,"String",function(u){p(this,{type:a,string:I(u),index:0})},function(){var x,d=s(this),h=d.string,g=d.index;return g>=h.length?{value:void 0,done:!0}:(x=c(h,g),d.index+=x.length,{value:x,done:!1})})},function(he,l,o){var c=o(20),I=o(77),C=o(78),f=o(69),a=c("".charAt),p=c("".charCodeAt),s=c("".slice),u=function(d){return function(h,g){var E,S,x=C(f(h)),b=I(g),y=x.length;return b<0||b>=y?d?"":void 0:(E=p(x,b))<55296||E>56319||b+1===y||(S=p(x,b+1))<56320||S>57343?d?a(x,b):E:d?s(x,b,b+2):S-56320+(E-55296<<10)+65536}};he.exports={codeAt:u(!1),charAt:u(!0)}},function(he,l,o){var C={};C[o(28)("toStringTag")]="z",he.exports="[object z]"===String(C)},function(he,l,o){var s,u,c=o(8),I=o(128),C=c.process,f=c.Deno,a=C&&C.versions||f&&f.version,p=a&&a.v8;p&&(u=(s=p.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!u&&I&&(!(s=I.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=I.match(/Chrome\/(\d+)/))&&(u=+s[1]),he.exports=u},function(he,l,o){var c=o(60);he.exports=c("navigator","userAgent")||""},function(he,l,o){var c=o(8),I=o(22),C=o(83),f=c.WeakMap;he.exports=I(f)&&/native code/.test(C(f))},function(he,l,o){var c=o(8),I=o(42),C=o(51),f=o(103),a=o(85),p=o(132),s=o(28),u=c.TypeError,d=s("toPrimitive");he.exports=function(h,g){if(!C(h)||f(h))return h;var b,x=a(h,d);if(x){if(void 0===g&&(g="default"),b=I(x,h,g),!C(b)||f(b))return b;throw u("Can't convert object to primitive value")}return void 0===g&&(g="number"),p(h,g)}},function(he,l,o){var c=o(20);he.exports=c({}.isPrototypeOf)},function(he,l,o){var c=o(8),I=o(42),C=o(22),f=o(51),a=c.TypeError;he.exports=function(p,s){var u,d;if("string"===s&&C(u=p.toString)&&!f(d=I(u,p))||C(u=p.valueOf)&&!f(d=I(u,p))||"string"!==s&&C(u=p.toString)&&!f(d=I(u,p)))return d;throw a("Can't convert object to primitive value")}},function(he,l,o){"use strict";var c=o(61),I=o(42),C=o(67),f=o(106),a=o(22),p=o(141),s=o(112),u=o(145),d=o(113),h=o(70),g=o(90),x=o(28),b=o(72),y=o(110),E=f.PROPER,S=f.CONFIGURABLE,O=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,T=x("iterator"),k="keys",R="values",P="entries",B=function(){return this};he.exports=function(W,N,V,U,K,Y,J){p(V,N,U);var se,ge,De,j=function(Fe){if(Fe===K&&X)return X;if(!w&&Fe in q)return q[Fe];switch(Fe){case k:case R:case P:return function(){return new V(this,Fe)}}return function(){return new V(this)}},ee=N+" Iterator",G=!1,q=W.prototype,Z=q[T]||q["@@iterator"]||K&&q[K],X=!w&&Z||j(K),M="Array"==N&&q.entries||Z;if(M&&(se=s(M.call(new W)))!==Object.prototype&&se.next&&(!C&&s(se)!==O&&(u?u(se,O):a(se[T])||g(se,T,B)),d(se,ee,!0,!0),C&&(b[ee]=B)),E&&K==R&&Z&&Z.name!==R&&(!C&&S?h(q,"name",R):(G=!0,X=function(){return I(Z,this)})),K)if(ge={values:j(R),keys:Y?X:j(k),entries:j(P)},J)for(De in ge)(w||G||!(De in q))&&g(q,De,ge[De]);else c({target:N,proto:!0,forced:w||G},ge);return(!C||J)&&q[T]!==X&&g(q,T,X,{name:K}),b[N]=X,ge}},function(he,l,o){var c=o(8),I=o(20),C=o(39),f=o(82),a=c.Object,p=I("".split);he.exports=C(function(){return!a("z").propertyIsEnumerable(0)})?function(s){return"String"==f(s)?p(s,""):a(s)}:a},function(he,l,o){var c=o(36),I=o(136),C=o(89),f=o(52);he.exports=function(a,p){for(var s=I(p),u=f.f,d=C.f,h=0;h<s.length;h++){var g=s[h];c(a,g)||u(a,g,d(p,g))}}},function(he,l,o){var c=o(60),I=o(20),C=o(137),f=o(139),a=o(40),p=I([].concat);he.exports=c("Reflect","ownKeys")||function(u){var d=C.f(a(u)),h=f.f;return h?p(d,h(u)):d}},function(he,l,o){var c=o(107),C=o(92).concat("length","prototype");l.f=Object.getOwnPropertyNames||function(a){return c(a,C)}},function(he,l,o){var c=o(62),I=o(108),C=o(91),f=function(a){return function(p,s,u){var x,d=c(p),h=C(d),g=I(u,h);if(a&&s!=s){for(;h>g;)if((x=d[g++])!=x)return!0}else for(;h>g;g++)if((a||g in d)&&d[g]===s)return a||g||0;return!a&&-1}};he.exports={includes:f(!0),indexOf:f(!1)}},function(he,l){l.f=Object.getOwnPropertySymbols},function(he,l,o){var c=o(39),I=o(22),C=/#|\.prototype\./,f=function(d,h){var g=p[a(d)];return g==u||g!=s&&(I(h)?c(h):!!h)},a=f.normalize=function(d){return String(d).replace(C,".").toLowerCase()},p=f.data={},s=f.NATIVE="N",u=f.POLYFILL="P";he.exports=f},function(he,l,o){"use strict";var c=o(110).IteratorPrototype,I=o(93),C=o(71),f=o(113),a=o(72),p=function(){return this};he.exports=function(s,u,d){var h=u+" Iterator";return s.prototype=I(c,{next:C(1,d)}),f(s,h,!1,!0),a[h]=p,s}},function(he,l,o){var c=o(41),I=o(52),C=o(40),f=o(62),a=o(111);he.exports=c?Object.defineProperties:function(s,u){C(s);for(var b,d=f(u),h=a(u),g=h.length,x=0;g>x;)I.f(s,b=h[x++],d[b]);return s}},function(he,l,o){var c=o(60);he.exports=c("document","documentElement")},function(he,l,o){var c=o(39);he.exports=!c(function(){function I(){}return I.prototype.constructor=null,Object.getPrototypeOf(new I)!==I.prototype})},function(he,l,o){var c=o(20),I=o(40),C=o(146);he.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p,f=!1,a={};try{(p=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(a,[]),f=a instanceof Array}catch{}return function(u,d){return I(u),C(d),f?p(u,d):u.__proto__=d,u}}():void 0)},function(he,l,o){var c=o(8),I=o(22),C=c.String,f=c.TypeError;he.exports=function(a){if("object"==typeof a||I(a))return a;throw f("Can't set "+C(a)+" as a prototype")}},function(he,l,o){var c=o(61),I=o(148);c({target:"Array",stat:!0,forced:!o(156)(function(a){Array.from(a)})},{from:I})},function(he,l,o){"use strict";var c=o(8),I=o(149),C=o(42),f=o(68),a=o(150),p=o(152),s=o(153),u=o(91),d=o(154),h=o(155),g=o(114),x=c.Array;he.exports=function(y){var E=f(y),S=s(this),O=arguments.length,w=O>1?arguments[1]:void 0,T=void 0!==w;T&&(w=I(w,O>2?arguments[2]:void 0));var P,B,W,N,V,U,k=g(E),R=0;if(!k||this==x&&p(k))for(P=u(E),B=S?new this(P):x(P);P>R;R++)U=T?w(E[R],R):E[R],d(B,R,U);else for(V=(N=h(E,k)).next,B=S?new this:[];!(W=C(V,N)).done;R++)U=T?a(N,w,[W.value,R],!0):W.value,d(B,R,U);return B.length=R,B}},function(he,l,o){var c=o(20),I=o(86),C=c(c.bind);he.exports=function(f,a){return I(f),void 0===a?f:C?C(f,a):function(){return f.apply(a,arguments)}}},function(he,l,o){var c=o(40),I=o(151);he.exports=function(C,f,a,p){try{return p?f(c(a)[0],a[1]):f(a)}catch(s){I(C,"throw",s)}}},function(he,l,o){var c=o(42),I=o(40),C=o(85);he.exports=function(f,a,p){var s,u;I(f);try{if(!(s=C(f,"return"))){if("throw"===a)throw p;return p}s=c(s,f)}catch(d){u=!0,s=d}if("throw"===a)throw p;if(u)throw s;return I(s),p}},function(he,l,o){var c=o(28),I=o(72),C=c("iterator"),f=Array.prototype;he.exports=function(a){return void 0!==a&&(I.Array===a||f[C]===a)}},function(he,l,o){var c=o(20),I=o(39),C=o(22),f=o(79),a=o(60),p=o(83),s=function(){},u=[],d=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,g=c(h.exec),x=!h.exec(s),b=function(E){if(!C(E))return!1;try{return d(s,u,E),!0}catch{return!1}};he.exports=!d||I(function(){var E;return b(b.call)||!b(Object)||!b(function(){E=!0})||E})?function(E){if(!C(E))return!1;switch(f(E)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return x||!!g(h,p(E))}:b},function(he,l,o){"use strict";var c=o(84),I=o(52),C=o(71);he.exports=function(f,a,p){var s=c(a);s in f?I.f(f,s,C(0,p)):f[s]=p}},function(he,l,o){var c=o(8),I=o(42),C=o(86),f=o(40),a=o(104),p=o(114),s=c.TypeError;he.exports=function(u,d){var h=arguments.length<2?p(u):d;if(C(h))return f(I(h,u));throw s(a(u)+" is not iterable")}},function(he,l,o){var I=o(28)("iterator"),C=!1;try{var f=0,a={next:function(){return{done:!!f++}},return:function(){C=!0}};a[I]=function(){return this},Array.from(a,function(){throw 2})}catch{}he.exports=function(p,s){if(!s&&!C)return!1;var u=!1;try{var d={};d[I]=function(){return{next:function(){return{done:u=!0}}}},p(d)}catch{}return u}},function(he,l,o){var c=o(158);he.exports=c},function(he,l,o){var c=o(159);he.exports=c},function(he,l,o){o(160);var c=o(116);he.exports=c("Array","fill")},function(he,l,o){var c=o(61),I=o(161),C=o(162);c({target:"Array",proto:!0},{fill:I}),C("fill")},function(he,l,o){"use strict";var c=o(68),I=o(108),C=o(91);he.exports=function(a){for(var p=c(this),s=C(p),u=arguments.length,d=I(u>1?arguments[1]:void 0,s),h=u>2?arguments[2]:void 0,g=void 0===h?s:I(h,s);g>d;)p[d++]=a;return p}},function(he,l,o){var c=o(28),I=o(93),C=o(52),f=c("unscopables"),a=Array.prototype;null==a[f]&&C.f(a,f,{configurable:!0,value:I(null)}),he.exports=function(p){a[f][p]=!0}},function(he,l,o){var c=o(164);he.exports=c},function(he,l,o){var c=o(165);he.exports=c},function(he,l,o){o(166);var c=o(115);he.exports=c.Object.values},function(he,l,o){var c=o(61),I=o(167).values;c({target:"Object",stat:!0},{values:function(f){return I(f)}})},function(he,l,o){var c=o(41),I=o(20),C=o(111),f=o(62),p=I(o(105).f),s=I([].push),u=function(d){return function(h){for(var S,g=f(h),x=C(g),b=x.length,y=0,E=[];b>y;)S=x[y++],(!c||p(g,S))&&s(E,d?[S,g[S]]:g[S]);return E}};he.exports={entries:u(!0),values:u(!1)}},function(he,l,o){var c=o(169);he.exports=c},function(he,l,o){var c=o(170);he.exports=c},function(he,l,o){o(171);var c=o(116);he.exports=c("String","endsWith")},function(he,l,o){"use strict";var E,c=o(61),I=o(20),C=o(89).f,f=o(109),a=o(78),p=o(172),s=o(69),u=o(174),d=o(67),h=I("".endsWith),g=I("".slice),x=Math.min,b=u("endsWith");c({target:"String",proto:!0,forced:!(!d&&!b&&(E=C(String.prototype,"endsWith"),E&&!E.writable)||b)},{endsWith:function(S){var O=a(s(this));p(S);var w=arguments.length>1?arguments[1]:void 0,T=O.length,k=void 0===w?T:x(f(w),T),R=a(S);return h?h(O,R,k):g(O,k-R.length,k)===R}})},function(he,l,o){var c=o(8),I=o(173),C=c.TypeError;he.exports=function(f){if(I(f))throw C("The method doesn't accept regular expressions");return f}},function(he,l,o){var c=o(51),I=o(82),f=o(28)("match");he.exports=function(a){var p;return c(a)&&(void 0!==(p=a[f])?!!p:"RegExp"==I(a))}},function(he,l,o){var I=o(28)("match");he.exports=function(C){var f=/./;try{"/./"[C](f)}catch{try{return f[I]=!1,"/./"[C](f)}catch{}}return!1}},,function(he,l,o){he.exports=o(117)}]).default},1536:(kn,he,l)=>{"use strict";l.d(he,{U:()=>s,W:()=>u});var o=l(4514),c=l(4304),I=(0,o.Ym)()?(0,o.Jj)():{},f=function(d){return setTimeout(d,16.666666666666668)},a=function(d){clearTimeout(d)},p=(0,c.Z)(function(){var d=I.requestAnimationFrame||I.webkitRequestAnimationFrame||I.mozRequestAnimationFrame||I.oRequestAnimationFrame||I.msRequestAnimationFrame,h=I.cancelAnimationFrame||I.webkitCancelAnimationFrame||I.mozCancelAnimationFrame||I.oCancelAnimationFrame||I.msCancelAnimationFrame;d&&h&&(f=d,a=h)});function s(){return p(),f.apply(I,arguments)}function u(){p(),a.apply(I,arguments)}},3553:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>me});var o=l(9904),c=l(4514),I=l(913),C=l(9644),f=l(6881),a=l(5873),p=l(1828),s=l(2718),u=l(6961),d=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,h={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)"},x={},b=function(xe){var Ye,Te=(xe=h[xe]||xe).match(d);Te||(Te=h[Ye="linear"].match(d)),Te=Te.slice(1,5);for(var St=0;St<Te.length;St++)Te[St]=parseFloat(Te[St]);var Ct=Ye||"cubicbezier_"+Te.join("_").replace(/\./g,"p");return(0,p.mf)(x[Ct])||(x[Ct]=function(Rt,fn,ct,He,Dt){return He*function(xe,Te,Ye,St){var Ct=3*xe,Rt=3*(Ye-xe)-Ct,fn=1-Ct-Rt,ct=3*Te,He=3*(St-Te)-ct,Dt=1-ct-He,qe=function(dt){return dt*(Ct+dt*(Rt+dt*fn))},Ht=function(dt){return Ct+dt*(2*Rt+3*dt*fn)};return function(dt){return(ht=function(ht){for(var bn,yt=ht,Ft=0;Ft<14&&(bn=qe(yt)-ht,!(Math.abs(bn)<.001));)yt-=bn/Ht(yt),Ft++;return yt}(dt))*(ct+ht*(He+ht*Dt));var ht}}(Te[0],Te[1],Te[2],Te[3])(fn/Dt)+ct}),Ct},S=l(1536),O=l(4505),w=l(5791),T=l(4416),k=l(8225),R=l(4270),P=l(7674),B=(0,c.Jj)(),W=(0,k.V4)(T.x,"dxFX"),N=/^([+-])=(.*)/i,V="dxAnimData",U="dxAnimQueue",K="transform",Y={initAnimation:function(xe,Te){xe.css({transitionProperty:"none"}),"string"==typeof Te.from?xe.addClass(Te.from):nn(xe,Te.from);var Ye=this,St=new R.BH,Ct=Te.cleanupWhen;Te.transitionAnimation={deferred:St,finish:function(){Ye._finishTransition(xe),Ct?(0,R.gx)(St,Ct).always(function(){Ye._cleanup(xe,Te)}):Ye._cleanup(xe,Te),St.resolveWith(xe,[Te,xe])}},this._completeAnimationCallback(xe,Te).done(function(){Te.transitionAnimation.finish()}).fail(function(){St.rejectWith(xe,[Te,xe])}),Te.duration||Te.transitionAnimation.finish(),xe.css("transform")},animate:function(xe,Te){return this._startAnimation(xe,Te),Te.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(xe,Te){var ct,Ye=this,St=Date.now()+Te.delay,Ct=new R.BH,Rt=new R.BH,fn=new R.BH,He=(0,O.transitionEndEventName)()+".dxFX";Te.transitionAnimation.cleanup=function(){clearTimeout(ct),clearTimeout(Dt),I.Z.off(xe,He),I.Z.off(xe,W)},I.Z.one(xe,He,function(){Date.now()-St>=Te.duration&&Rt.reject()}),I.Z.off(xe,W),I.Z.on(xe,W,function(){Ye.stop(xe,Te),Ct.reject()});var Dt=setTimeout(function(){ct=setTimeout(function(){fn.reject()},Te.duration+Te.delay+$e._simulatedTransitionEndDelay),(0,R.gx)(Rt,fn).fail(function(){Ct.resolve()}.bind(this))});return Ct.promise()},_startAnimation:function(xe,Te){xe.css({transitionProperty:"all",transitionDelay:Te.delay+"ms",transitionDuration:Te.duration+"ms",transitionTimingFunction:Te.easing}),"string"==typeof Te.to?xe[0].className+=" "+Te.to:Te.to&&nn(xe,Te.to)},_finishTransition:function(xe){xe.css("transition","none")},_cleanup:function(xe,Te){Te.transitionAnimation.cleanup(),"string"==typeof Te.from&&(xe.removeClass(Te.from),xe.removeClass(Te.to))},stop:function(xe,Te,Ye){Te&&(Ye?Te.transitionAnimation.finish():((0,p.PO)(Te.to)&&(0,s.S6)(Te.to,function(St){xe.css(St,xe.css(St))}),this._finishTransition(xe),this._cleanup(xe,Te)))}},J={initAnimation:function(xe,Te){nn(xe,Te.from)},animate:function(xe,Te){var Ye=new R.BH,St=this;return Te?((0,s.S6)(Te.to,function(Ct){void 0===Te.from[Ct]&&(Te.from[Ct]=St._normalizeValue(xe.css(Ct)))}),Te.to[K]&&(Te.from[K]=St._parseTransform(Te.from[K]),Te.to[K]=St._parseTransform(Te.to[K])),Te.frameAnimation={to:Te.to,from:Te.from,currentValue:Te.from,easing:b(Te.easing),duration:Te.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),(0,S.W)(Te.frameAnimation.animationFrameId),Ye.resolve()},draw:function(){if(Te.draw)Te.draw(this.currentValue);else{var Ct=(0,a.l)({},this.currentValue);Ct[K]&&(Ct[K]=(0,s.UI)(Ct[K],function(Rt,fn){return"translate"===fn?(0,u.B$)(Rt):"scale"===fn?"scale("+Rt+")":"rotate"===fn.substr(0,fn.length-1)?fn+"("+Rt+"deg)":void 0}).join(" ")),xe.css(Ct)}}},Te.delay?(Te.frameAnimation.startTime+=Te.delay,Te.frameAnimation.delayTimeout=setTimeout(function(){St._startAnimation(xe,Te)},Te.delay)):St._startAnimation(xe,Te),Ye.promise()):Ye.reject().promise()},_startAnimation:function(xe,Te){I.Z.off(xe,W),I.Z.on(xe,W,function(){Te.frameAnimation&&(0,S.W)(Te.frameAnimation.animationFrameId)}),this._animationStep(xe,Te)},_parseTransform:function(xe){var Te={};return(0,s.S6)(xe.match(/\w+\d*\w*\([^)]*\)\s*/g),function(Ye,St){var Ct=(0,u.XT)(St),Rt=St.match(/scale\((.+?)\)/),fn=St.match(/(rotate.)\((.+)deg\)/);Ct&&(Te.translate=Ct),Rt&&Rt[1]&&(Te.scale=parseFloat(Rt[1])),fn&&fn[1]&&(Te[fn[1]]=parseFloat(fn[2]))}),Te},stop:function(xe,Te,Ye){var St=Te&&Te.frameAnimation;St&&((0,S.W)(St.animationFrameId),clearTimeout(St.delayTimeout),Ye&&St.finish(),delete Te.frameAnimation)},_animationStep:function(xe,Te){var Ye=Te&&Te.frameAnimation;if(Ye){var St=(new Date).valueOf();if(St>=Ye.startTime+Ye.duration)return void Ye.finish();Ye.currentValue=this._calcStepValue(Ye,St-Ye.startTime),Ye.draw();var Ct=this;Ye.animationFrameId=(0,S.U)(function(){Ct._animationStep(xe,Te)})}},_calcStepValue:function(xe,Te){return function Ye(St,Ct){var Rt=Array.isArray(Ct)?[]:{};return(0,s.S6)(Ct,function(fn,ct){if("string"==typeof ct&&!1===parseFloat(ct))return!0;var He,Dt,qe,Ht,dt,ht;Rt[fn]="object"==typeof ct?Ye(St[fn],ct):(Dt=Te/xe.duration,qe=Te,Ht=1*St[He=fn],dt=Ct[He]-St[He],ht=xe.duration,function E(xe){return x[xe]}(xe.easing)(Dt,qe,Ht,dt,ht))}),Rt}(xe.from,xe.to)},_normalizeValue:function(xe){var Te=parseFloat(xe);return!1===Te?xe:Te}},j={initAnimation:function(){},animate:function(){return(new R.BH).resolve().promise()},stop:P.ZT,isSynchronous:!0},G=function(xe,Te,Ye,St){(0,s.S6)(["from","to"],function(){if(!Ye(xe[this]))throw C.Z.Error("E0010",Te,this,St)})},q=function(xe,Te){return G(xe,Te,function(Ye){return(0,p.PO)(Ye)},"a plain object")},se={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"}},ge={validateConfig:function(xe){q(xe,"slide")},setup:function(xe,Te){var Ye=(0,u.jt)(xe);if("slide"!==Te.type){var St="slideIn"===Te.type?Te.from:Te.to;St.position=(0,a.l)({of:B},se[Te.direction]),mt(xe,St)}this._setUpConfig(Ye,Te.from),this._setUpConfig(Ye,Te.to),(0,u.LK)(xe)},_setUpConfig:function(xe,Te){Te.left="left"in Te?Te.left:"+=0",Te.top="top"in Te?Te.top:"+=0",this._initNewPosition(xe,Te)},_initNewPosition:function(xe,Te){var Ye={left:Te.left,top:Te.top};delete Te.left,delete Te.top;var St=this._getRelativeValue(Ye.left);void 0!==St?Ye.left=St+xe.left:Te.left=0,void 0!==(St=this._getRelativeValue(Ye.top))?Ye.top=St+xe.top:Te.top=0,Te[K]=(0,u.B$)({x:Ye.left,y:Ye.top})},_getRelativeValue:function(xe){var Te;if("string"==typeof xe&&(Te=N.exec(xe)))return parseInt(Te[1]+"1")*Te[2]}},De={setup:function(xe,Te){var Ye,St,Ct=Te.from,Rt=Te.to,fn="fadeOut"===Te.type?1:0,ct="fadeOut"===Te.type?0:1,He=(0,p.PO)(Ct)?String(null!==(Ye=Ct.opacity)&&void 0!==Ye?Ye:fn):String(Ct),Dt=(0,p.PO)(Rt)?String(null!==(St=Rt.opacity)&&void 0!==St?St:ct):String(Rt);switch(Te.skipElementInitialStyles||(He=xe.css("opacity")),Te.type){case"fadeIn":Dt=1;break;case"fadeOut":Dt=0}Te.from={visibility:"visible",opacity:He},Te.to={opacity:Dt}}},Ae={custom:{setup:function(){}},slide:ge,slideIn:ge,slideOut:ge,fade:De,fadeIn:De,fadeOut:De,pop:{validateConfig:function(xe){q(xe,"pop")},setup:function(xe,Te){var Ye=Te.from,St=Te.to,Ct="opacity"in Ye?Ye.opacity:xe.css("opacity"),Rt="opacity"in St?St.opacity:1,fn="scale"in Ye?Ye.scale:0,ct="scale"in St?St.scale:1;Te.from={opacity:Ct};var He=(0,u.R6)(xe);Te.from[K]=this._getCssTransform(He,fn),Te.to={opacity:Rt},Te.to[K]=this._getCssTransform(He,ct)},_getCssTransform:function(xe,Te){return(0,u.B$)(xe)+"scale("+Te+")"}},css:{validateConfig:function(xe){!function(xe,Te){G(xe,"css",function(Ye){return"string"==typeof Ye},"a string")}(xe)},setup:function(){}}},fe={type:"custom",from:{},to:{},duration:400,start:P.ZT,complete:P.ZT,easing:"ease",delay:0},_e={duration:400,easing:"ease",delay:0};function ie(){var xe=this.element,Te=this.config;if(mt(xe,Te.from),mt(xe,Te.to),this.configurator.setup(xe,Te),xe.data(V,this),$e.off&&(Te.duration=0,Te.delay=0),this.strategy.initAnimation(xe,Te),Te.start){var Ye=(0,f.u)(xe);Te.start.apply(this,[Ye,Te])}}var le=function(){var xe=this,Te=xe.element,Ye=xe.config;return xe.isStarted=!0,xe.strategy.animate(Te,Ye).done(function(){!function(xe){var Te=xe.element,Ye=xe.config;if(Te.removeData(V),Ye.complete){var St=(0,f.u)(Te);Ye.complete.apply(this,[St,Ye])}xe.deferred.resolveWith(this,[Te,Ye])}(xe)}).fail(function(){xe.deferred.rejectWith(this,[Te,Ye])})},pe=function(xe){var Te=this.element,Ye=this.config;clearTimeout(this.startTimeout),this.isStarted||this.start(),this.strategy.stop(Te,Ye,xe)},Ee=(0,k.V4)(T.x,"dxFXStartAnimation"),te=function(xe,Te){var St=(0,a.l)(!0,{},"css"===Te.type?_e:fe,Te),Ct=function(xe){var Te=Ae[xe.type];if(!Te)throw C.Z.Error("E0011",xe.type);return Te}(St),Rt=function(xe){xe=xe||{};var Te={transition:(0,O.transition)()?Y:J,frame:J,noAnimation:j},Ye=xe.strategy||"transition";return"css"===xe.type&&!(0,O.transition)()&&(Ye="noAnimation"),Te[Ye]}(St),fn={element:(0,o.Z)(xe),config:St,configurator:Ct,strategy:Rt,isSynchronous:Rt.isSynchronous,setup:ie,start:le,stop:pe,deferred:new R.BH};return(0,p.mf)(Ct.validateConfig)&&Ct.validateConfig(St),function(xe){I.Z.off(xe.element,Ee),I.Z.on(xe.element,Ee,function(){$e.stop(xe.element)}),xe.deferred.always(function(){I.Z.off(xe.element,Ee)})}(fn),fn};function ye(xe){return xe.data(U)||[]}var Ne=function(xe){xe.removeData(U)};function ft(xe){return!!xe.data(V)}function tt(xe,Te){if((Te=ye(xe)).length){var Ye=Te.shift();0===Te.length&&Ne(xe),function Be(xe){return xe.setup(),$e.off||xe.isSynchronous?xe.start():xe.startTimeout=setTimeout(function(){xe.start()}),xe.deferred.promise()}(Ye).done(function(){ft(xe)||tt(xe)})}}function mt(xe,Te){if(Te&&Te.position){var Ye=(0,o.Z)(B),St=0,Ct=0,Rt=w.Z.calculate(xe,Te.position),fn=xe.offset(),ct=xe.position();ct.top>fn.top&&(Ct=Ye.scrollTop()),ct.left>fn.left&&(St=Ye.scrollLeft()),(0,a.l)(Te,{left:Rt.h.location-fn.left+ct.left-St,top:Rt.v.location-fn.top+ct.top-Ct}),delete Te.position}}function nn(xe,Te){(0,s.S6)(Te,function(Ye,St){try{xe.css(Ye,(0,p.mf)(St)?St():St)}catch{}})}var $e={off:!1,animationTypes:Ae,animate:function(xe,Te){var Ye=(0,o.Z)(xe);if(!Ye.length)return(new R.BH).resolve().promise();var St=te(Ye,Te);return function oe(xe,Te){var Ye=ye(xe);(function Pe(xe,Te){xe.data(U,Te)})(xe,Ye),Ye.push(Te),ft(xe)||tt(xe,Ye)}(Ye,St),St.deferred.promise()},createAnimation:te,isAnimating:ft,stop:function(xe,Te){var Ye=(0,o.Z)(xe),St=ye(Ye);(0,s.S6)(St,function(Rt,fn){fn.config.delay=0,fn.config.duration=0,fn.isSynchronous=!0}),ft(Ye)||tt(Ye,St);var Ct=Ye.data(V);Ct&&Ct.stop(Te),Ye.removeData(V),Ne(Ye)},_simulatedTransitionEndDelay:100};const me=$e},5791:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>X});var K,o=l(1805),c=l(9904),I=l(7674),C=l(2718),f=l(4514),a=l(9897),p=l(1828),s=l(5873),u=l(5450),d=l(4722),h=l(6961),g=l(4505),x=l(2941),b=(0,f.Jj)(),y=/left|right/,E=/top|bottom/,S=/fit|flip|none/,O=/scale\(.+?\)/,w=d.Z.safari,T=function(M){var se={h:"center",v:"center"},ge=(0,I.Um)(M);return ge&&(0,C.S6)(ge,function(){var De=String(this).toLowerCase();y.test(De)?se.h=De:E.test(De)&&(se.v=De)}),se},k=function(M){return(0,I.TG)(M)},P=function(M){switch(M){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},B=function(M){switch(M){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return M}},W=function(M,se){var ge=0;return M.myLocation<se.min&&(ge+=se.min-M.myLocation),M.myLocation>se.max&&(ge+=M.myLocation-se.max),ge},N=function(M,se,ge){return se.myLocation<ge.min?"h"===M?"left":"top":se.myLocation>ge.max?"h"===M?"right":"bottom":"none"},V=function(M){M.myLocation=M.atLocation+P(M.atAlign)*M.atSize-P(M.myAlign)*M.mySize+M.offset},U={fit:function(M,se){var ge=!1;M.myLocation>se.max&&(M.myLocation=se.max,ge=!0),M.myLocation<se.min&&(M.myLocation=se.min,ge=!0),M.fit=ge},flip:function(M,se){if(M.flip=!1,("center"!==M.myAlign||"center"!==M.atAlign)&&(M.myLocation<se.min||M.myLocation>se.max)){var ge=(0,s.l)({},M,{myAlign:B(M.myAlign),atAlign:B(M.atAlign),offset:-M.offset});V(ge),ge.oversize=W(ge,se),(ge.myLocation>=se.min&&ge.myLocation<=se.max||M.oversize>ge.oversize)&&(M.myLocation=ge.myLocation,M.oversize=ge.oversize,M.flip=!0)}},flipfit:function(M,se){this.flip(M,se),this.fit(M,se)},none:function(M){M.oversize=0}},Y=function(){var M=(0,c.Z)("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo((0,c.Z)("body")),se=M.get(0).offsetWidth-M.get(0).clientWidth;M.remove(),K=se},J={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},j=function(M,se){var ge=(0,c.Z)(M),De=ge.offset(),Fe=(0,s.l)(!0,{},J,{h:{location:De.left},v:{location:De.top}});if(!se)return Fe;var Ae=T(se.my),ne=T(se.at),fe=(0,c.Z)(se.of).length&&se.of||b,_e=k(se.offset),ie=function(M){var se=(0,I.Um)(M),ge=String(se&&se[0]).toLowerCase(),De=String(se&&se[1]).toLowerCase();return S.test(ge)||(ge="none"),S.test(De)||(De=ge),{h:ge,v:De}}(se.collision),de=se.boundary,le=k(se.boundaryOffset),pe={mySize:(0,o.Y_)(ge),myAlign:Ae.h,atAlign:ne.h,offset:_e.h,collision:ie.h,boundaryOffset:le.h},Ee={mySize:(0,o.zp)(ge),myAlign:Ae.v,atAlign:ne.v,offset:_e.v,collision:ie.v,boundaryOffset:le.v};if(fe.preventDefault)pe.atLocation=fe.pageX,Ee.atLocation=fe.pageY,pe.atSize=0,Ee.atSize=0;else if(fe=(0,c.Z)(fe),(0,p.FJ)(fe[0]))pe.atLocation=fe.scrollLeft(),Ee.atLocation=fe.scrollTop(),"phone"===x.Z.real().deviceType&&fe[0].visualViewport?(pe.atLocation=Math.max(pe.atLocation,fe[0].visualViewport.offsetLeft),Ee.atLocation=Math.max(Ee.atLocation,fe[0].visualViewport.offsetTop),pe.atSize=fe[0].visualViewport.width,Ee.atSize=fe[0].visualViewport.height):(pe.atSize=fe[0].innerWidth>fe[0].outerWidth?fe[0].innerWidth:(0,o.dz)(fe),Ee.atSize=fe[0].innerHeight>fe[0].outerHeight||w?fe[0].innerHeight:(0,o.Cr)(fe));else if(9===fe[0].nodeType)pe.atLocation=0,Ee.atLocation=0,pe.atSize=(0,o.dz)(fe),Ee.atSize=(0,o.Cr)(fe);else{var ae=(0,u.l)(fe.get(0)),te=G(fe);pe.atLocation=te.left,Ee.atLocation=te.top,pe.atSize=Math.max(ae.width,(0,o.Y_)(fe)),Ee.atSize=Math.max(ae.height,(0,o.zp)(fe))}V(pe),V(Ee);var re=function(){var ye=(0,c.Z)(b),Pe=(0,o.dz)(ye),Ne=(0,o.Cr)(ye),ft=ye.scrollLeft(),tt=ye.scrollTop(),Be=a.Z.getDocumentElement(),mt=g.touch?Be.clientWidth/Pe:1,nn=g.touch?Be.clientHeight/Ne:1;void 0===K&&Y();var ke=Pe,$e=Ne;if(de&&!(0,p.FJ)(de)){var me=(0,c.Z)(de),xe=me.offset();ft=xe.left,tt=xe.top,ke=(0,o.dz)(me),$e=(0,o.Cr)(me)}return{h:{min:ft+pe.boundaryOffset,max:ft+ke/mt-pe.mySize-pe.boundaryOffset},v:{min:tt+Ee.boundaryOffset,max:tt+$e/nn-Ee.mySize-Ee.boundaryOffset}}}();pe.oversize=W(pe,re.h),Ee.oversize=W(Ee,re.v),pe.collisionSide=N("h",pe,re.h),Ee.collisionSide=N("v",Ee,re.v),U[pe.collision]&&U[pe.collision](pe,re.h),U[Ee.collision]&&U[Ee.collision](Ee,re.v);var oe=function(ye){return se.precise?ye:Math.round(ye)};return(0,s.l)(!0,Fe,{h:{location:oe(pe.myLocation),oversize:oe(pe.oversize),fit:pe.fit,flip:pe.flip,collisionSide:pe.collisionSide},v:{location:oe(Ee.myLocation),oversize:oe(Ee.oversize),fit:Ee.fit,flip:Ee.flip,collisionSide:Ee.collisionSide},precise:se.precise}),Fe},ee=function(M,se,ge,De,Fe){(0,p.$K)(M.style)&&!a.Z.isNode(M.style)?M.style.transform=Fe?ge.replace(se,""):ge:M.setAttribute("style",Fe?De.replace(se,""):De)},G=function M(se){var ge,De,Fe,Ae=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se,ne=Ae.get(0);if(!ne)return se.offset();var de,fe=(null===(ge=ne.getAttribute)||void 0===ge?void 0:ge.call(ne,"style"))||"",_e=null===(De=ne.style)||void 0===De?void 0:De.transform,ie=null===(Fe=fe.match(O))||void 0===Fe?void 0:Fe[0];return ie?(ee(ne,ie,_e,fe,!0),de=M(se,Ae.parent()),ee(ne,ie,_e,fe,!1)):de=M(se,Ae.parent()),de},q=function(M,se){var ge=(0,c.Z)(M);if(!se)return ge.offset();(0,h.Kx)(ge,!0);var De=G(ge),Fe=se.h&&se.v?se:j(ge,se),Ae=function(ne){return se.precise?ne:Math.round(ne)};return(0,h.pB)(ge,{left:Fe.h.location-Ae(De.left),top:Fe.v.location-Ae(De.top)}),Fe};q.inverseAlign||(q.inverseAlign=B),q.normalizeAlign||(q.normalizeAlign=T);const X={calculateScrollbarWidth:Y,calculate:j,setup:q,offset:function(M){return M=(0,c.Z)(M).get(0),(0,p.FJ)(M)?null:M&&"pageY"in M&&"pageX"in M?{top:M.pageY,left:M.pageX}:(0,c.Z)(M).offset()}}},6961:(kn,he,l)=>{"use strict";l.d(he,{B$:()=>h,Kx:()=>b,LK:()=>d,R6:()=>g,XT:()=>y,jt:()=>p,pB:()=>x});var o=l(9904),c=l(5610),I=l(1828),C="dxTranslator",f=/matrix(3d)?\((.+?)\)/,a=/translate(?:3d)?\((.+?)\)/,p=function(E){E=(0,o.Z)(E);var S=g(E);return{left:S.x,top:S.y}};function s(E){return"string"===(0,I.dt)(E)&&"%"===E[E.length-1]}function u(E,S){E.length&&(0,c.aT)(E.get(0),C,S)}var d=function(E){E.length&&(0,c.NU)(E.get(0),C)},h=function(E){return E.x=E.x||0,E.y=E.y||0,"translate("+(s(E.x)?E.x:E.x+"px")+", "+(s(E.y)?E.y:E.y+"px")+")"},g=function(E){var S=E.length?(0,c.aT)(E.get(0),C):null;if(!S){var w=(E.css("transform")||h({x:0,y:0})).match(f),T=w&&w[1];w?(w=w[2].split(","),"3d"===T?w=w.slice(12,15):(w.push(0),w=w.slice(4,7))):w=[0,0,0],u(E,S={x:parseFloat(w[0]),y:parseFloat(w[1]),z:parseFloat(w[2])})}return S},x=function(E,S){E=(0,o.Z)(E);var T,O=S.left,w=S.top;void 0===O?(T=g(E)).y=w||0:void 0===w?(T=g(E)).x=O||0:u(E,T={x:O||0,y:w||0,z:0}),E.css({transform:h(T)}),(s(O)||s(w))&&d(E)},b=function(E,S){E=(0,o.Z)(E);var O,w={left:0,top:0,transform:"none"};S&&(O=E.css("transition"),w.transition="none"),E.css(w),d(E),S&&(E.get(0),E.css("transition",O))},y=function(E){var S=E.match(a);if(S&&S[1])return S=S[1].split(","),{x:parseFloat(S[0]),y:parseFloat(S[1]),z:parseFloat(S[2])}}},3058:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>O});var o={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"},c=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(w){return[parseInt(w[1],10),parseInt(w[2],10),parseInt(w[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(w){return[parseInt(w[1],10),parseInt(w[2],10),parseInt(w[3],10),parseFloat(w[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(w){return[parseInt(w[1],16),parseInt(w[2],16),parseInt(w[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(w){return[parseInt(w[1]+w[1],16),parseInt(w[2]+w[2],16),parseInt(w[3]+w[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(w){var T=parseInt(w[1],10),k=parseInt(w[2],10),R=parseInt(w[3],10),P=u(T,k,R);return[P[0],P[1],P[2],1,[T,k,R]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(w){var T=parseInt(w[1],10),k=parseInt(w[2],10),R=parseInt(w[3],10),P=y(T,k,R);return[P[0],P[1],P[2],1,null,[T,k,R]]}}],I=Math.round;function C(w){var T;this.baseColor=w,w&&(T=String(w).toLowerCase().replace(/ /g,""),T=function f(w){if("transparent"===w)return[0,0,0,0];for(var R,T=0,k=c.length;T<k;++T)if(R=c[T].re.exec(w))return c[T].process(R);return null}(T=o[T]?"#"+o[T]:T)),T||(this.colorIsInvalid=!0),this.r=a((T=T||{})[0]),this.g=a(T[1]),this.b=a(T[2]),this.a=a(T[3],1,1),this.hsv=T[4]?{h:T[4][0],s:T[4][1],v:T[4][2]}:function s(w,T,k){var W,N,R=Math.max(w,T,k),P=Math.min(w,T,k),B=R-P,V=R;if(N=0===R?0:1-P/R,R===P)W=0;else switch(R){case w:W=(T-k)/B*60,T<k&&(W+=360);break;case T:W=(k-w)/B*60+120;break;case k:W=(w-T)/B*60+240}return N*=100,V*=100/255,{h:Math.round(W),s:Math.round(N),v:Math.round(V)}}(this.r,this.g,this.b),this.hsl=T[5]?{h:T[5][0],s:T[5][1],l:T[5][2]}:function h(w,T,k){w=E(w,255),T=E(T,255),k=E(k,255);var W,N,R=Math.max(w,T,k),P=Math.min(w,T,k),B=R+P,V=B/2;if(R===P)W=N=0;else{var U=R-P;N=V>.5?U/(2-B):U/B,W=function d(w,T,k,R){switch(Math.max(w,T,k)){case w:return(T-k)/R+(T<k?6:0);case T:return(k-w)/R+2;case k:return(w-T)/R+4}}(w,T,k,U),W/=6}return{h:I(360*W),s:I(100*N),l:I(100*V)}}(this.r,this.g,this.b)}function a(w,T,k){return T=T||0,k=k||255,w<0||isNaN(w)?T:w>k?k:w}function u(w,T,k){var V,U,K,P=(100-T)*k/100,B=w%60/60*(k-P),W=P+B,N=k-B;switch(Math.floor(w%360/60)){case 0:V=k,U=W,K=P;break;case 1:V=N,U=k,K=P;break;case 2:V=P,U=k,K=W;break;case 3:V=P,U=N,K=k;break;case 4:V=W,U=P,K=k;break;case 5:V=k,U=P,K=N}return[Math.round(2.55*V),Math.round(2.55*U),Math.round(2.55*K)]}function g(w,T){var k=T;return"r"===w&&(k=T+1/3),"b"===w&&(k=T-1/3),k}function b(w,T,k){return k=function x(w){return w<0&&(w+=1),w>1&&(w-=1),w}(k),k<1/6?w+6*(T-w)*k:k<.5?T:k<2/3?w+(T-w)*(2/3-k)*6:w}function y(w,T,k){var R,P,B;if(w=E(w,360),T=E(T,100),k=E(k,100),0===T)R=P=B=k;else{var W=k<.5?k*(1+T):k+T-k*T,N=2*k-W;R=b(N,W,g("r",w)),P=b(N,W,g("g",w)),B=b(N,W,g("b",w))}return[I(255*R),I(255*P),I(255*B)]}function E(w,T){return w=Math.min(T,Math.max(0,parseFloat(w))),Math.abs(w-T)<1e-6?1:w%T/parseFloat(T)}function S(w,T,k){return T=T||0,k=k||255,!(w%1!=0||w<T||w>k||"number"!=typeof w||isNaN(w))}C.prototype={constructor:C,highlight:function(w){return this.alter(w=w||10).toHex()},darken:function(w){return this.alter(-(w=w||10)).toHex()},alter:function(w){var T=new C;return T.r=a(this.r+w),T.g=a(this.g+w),T.b=a(this.b+w),T},blend:function(w,T){var k=w instanceof C?w:new C(w),R=new C;return R.r=a(I(this.r*(1-T)+k.r*T)),R.g=a(I(this.g*(1-T)+k.g*T)),R.b=a(I(this.b*(1-T)+k.b*T)),R},toHex:function(){return function p(w,T,k){return"#"+(16777216|w<<16|T<<8|k).toString(16).slice(1)}(this.r,this.g,this.b)},getPureColor:function(){return new C("rgb("+u(this.hsv.h,100,100).join(",")+")")},isValidHex:function(w){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(w)},isValidRGB:function(w,T,k){return!(!S(w)||!S(T)||!S(k))},isValidAlpha:function(w){return!(isNaN(w)||w<0||w>1||"number"!=typeof w)},colorIsInvalid:!1,fromHSL:function(w){var T=new C,k=y(w.h,w.s,w.l);return T.r=k[0],T.g=k[1],T.b=k[2],T}};const O=C},9866:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>f});var o=l(9904),c=l(4514),I=l(1828),C=l(2718);let f=(()=>{class p{constructor(u,d){d=d||{},this._action=u,this._context=d.context||(0,c.Jj)(),this._beforeExecute=d.beforeExecute,this._afterExecute=d.afterExecute,this._component=d.component,this._validatingTargetName=d.validatingTargetName;var h=this._excludeValidators={};if(d.excludeValidators)for(var g=0;g<d.excludeValidators.length;g++)h[d.excludeValidators[g]]=!0}execute(){var u={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},d=this._beforeExecute,h=this._afterExecute,g=u.args[0]||{};if(this._validateAction(u)&&(d?.call(this._context,u),!u.cancel)){var x=this._executeAction(u);if(!g.cancel)return h?.call(this._context,u),x}}_validateAction(u){var d=this._excludeValidators,{executors:h}=p;for(var g in h)if(!d[g]){var x,b=h[g];if(null===(x=b.validate)||void 0===x||x.call(b,u),u.cancel)return!1}return!0}_executeAction(u){var d,{executors:h}=p;for(var g in h){var x,b=h[g];if(null===(x=b.execute)||void 0===x||x.call(b,u),u.handled){d=u.result;break}}return d}static registerExecutor(u,d){(0,I.PO)(u)?(0,C.S6)(u,p.registerExecutor):p.executors[u]=d}static unregisterExecutor(){for(var u=arguments.length,d=new Array(u),h=0;h<u;h++)d[h]=arguments[h];(0,C.S6)(d,function(){delete p.executors[this]})}}return p.executors={},p})();var a=p=>s=>{if(s.args.length){var u=s.args[0],d=u[s.validatingTargetName]||u.element;d&&p((0,o.Z)(d))&&(s.cancel=!0)}};f.registerExecutor({disabled:{validate:a(p=>p.is(".dx-state-disabled, .dx-state-disabled *"))},readOnly:{validate:a(p=>p.is(".dx-state-readonly, .dx-state-readonly *:not(.dx-state-independent)"))},undefined:{execute:p=>{p.action||(p.result=void 0,p.handled=!0)}},func:{execute:p=>{(0,I.mf)(p.action)&&(p.result=p.action.call(p.context,p.args[0]),p.handled=!0)}}})},5031:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>h});var g,o=l(9644),c=l(1828),I=function(g,x,b){return function(){var y=this.callBase;this.callBase=g[x];try{return b.apply(this,arguments)}finally{this.callBase=y}}},f=function(g){var b,y;if(!g)return this;for(b in g)y=g[b],this.prototype[b]="function"==typeof this.prototype[b]&&"function"==typeof y?I(this.parent.prototype,b,y):y;return this},a=function(){var x,b,y,g=this,E=Object.prototype.hasOwnProperty.bind(g),S=!E("_includedCtors")&&!E("_includedPostCtors");for(S&&(g._includedCtors=g._includedCtors.slice(0),g._includedPostCtors=g._includedPostCtors.slice(0)),y=0;y<arguments.length;y++)for(b in(x=arguments[y]).ctor&&g._includedCtors.push(x.ctor),x.postCtor&&g._includedPostCtors.push(x.postCtor),x)"ctor"===b||"postCtor"===b||"default"===b||(g.prototype[b]=x[b]);return g},p=function(g){if(!Object.prototype.hasOwnProperty.bind(this)("parent")&&this.parent){var y=Object.getPrototypeOf(this);return y===g||y.subclassOf(g)}return this.parent===g||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(g)},s=function(){throw o.Z.Error("E0001")},u=(g=Object.prototype.hasOwnProperty,function(x,b){for(var y in x){if(!g.call(x,y))return;b[y]=x[y]}}),d=function(){};d.inherit=function(g){var x=function(){if(!this||(0,c.FJ)(this)||"function"!=typeof this.constructor)throw o.Z.Error("E0003");var O,b=this,y=b.ctor,E=b.constructor._includedCtors,S=b.constructor._includedPostCtors;for(O=0;O<E.length;O++)E[O].call(b);for(y&&y.apply(b,arguments),O=0;O<S.length;O++)S[O].call(b)};return x.prototype=function(g){var x=function(){};return x.prototype=g.prototype,new x}(this),u(this,x),x.inherit=this.inherit,x.abstract=s,x.redefine=f,x.include=a,x.subclassOf=p,x.parent=this,x._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],x._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],x.prototype.constructor=x,x.redefine(g),x},d.abstract=s;const h=d},4430:(kn,he,l)=>{"use strict";l.d(he,{w:()=>P});var o=l(7572),c=l(5873),I=l(4817),C=l(1828),f=l(7674),a=l(6738),p=l(3425),s=l(3238),u={},d={};class h{constructor(W,N){this._options=W,this._optionsByReference=N}_setByReference(W,N){for(var V in(0,c.l)(!0,W,N),this._optionsByReference)Object.prototype.hasOwnProperty.call(N,V)&&(W[V]=N[V])}_setPreparedValue(W,N,V,U){var K=this.get(this._options,W,!1);if(!(0,p.f)(K,N)){var Y=(0,a.Zw)(W);!U&&this._changingCallback(W,K,N),d[W]=d[W]||(0,a.OM)(W),d[W](this._options,N,{functionsAsIs:!0,merge:(0,C.$K)(V)?V:!this._optionsByReference[W],unwrapObservables:Y.length>1&&!!this._optionsByReference[Y[0]]}),!U&&this._changedCallback(W,N,K)}}_prepareRelevantNames(W,N,V,U){if((0,C.PO)(V))for(var K in V)this._prepareRelevantNames(W,"".concat(N,".").concat(K),V[K]);this._namePreparedCallbacks(W,N,V,U)}get(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._options,N=arguments.length>1?arguments[1]:void 0,V=arguments.length>2?arguments[2]:void 0;return u[N]=u[N]||(0,a.vb)(N),u[N](W,{functionsAsIs:!0,unwrapObservables:V})}set(W,N,V,U){for(var K in W=(0,s.GR)(W,N))this._prepareRelevantNames(W,K,W[K],U);for(var Y in W)this._setPreparedValue(Y,W[Y],V,U)}onRelevantNamesPrepared(W){this._namePreparedCallbacks=W}onChanging(W){this._changingCallback=W}onChanged(W){this._changedCallback=W}dispose(){this._changingCallback=f.ZT,this._changedCallback=f.ZT}}class g{constructor(W,N,V,U){this._default=N,this._deprecated=U,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new h(W,V),this._optionManager.onRelevantNamesPrepared((K,Y,J,j)=>this._setRelevantNames(K,Y,J,j)),this._cachedOptions={},this._rules=[]}set _initial(W){this._initialOptions=W}get _initial(){if(!this._initialOptions){var W=this._getByRules(this.silent("defaultOptionsRules"));this._initialOptions=this._default,this._optionManager._setByReference(this._initialOptions,W)}return this._initialOptions}_initDeprecatedNames(){for(var W in this._deprecated)this._deprecatedNames.push(W)}_getByRules(W){return W=Array.isArray(W)?this._rules.concat(W):this._rules,(0,s.wt)(W)}_notifyDeprecated(W){var N=this._deprecated[W];N&&this._deprecatedCallback(W,N)}_setRelevantNames(W,N,V,U){if(N){var K=this._normalizeName(N,U);K&&K!==N&&(this._setField(W,K,V),this._clearField(W,N))}}_setField(W,N,V){var U="",K=null;do{U=U?".".concat(U):"",U=(0,s.Ts)(N)+U,K=(N=(0,s.u5)(N))?this._optionManager.get(W,N,!1):W}while(!K);K[U]=V}_clearField(W,N){delete W[N];var V=(0,s.u5)(N),U=V?this._optionManager.get(W,V,!1):W;U&&delete U[(0,s.Ts)(N)]}_normalizeName(W,N){if(this._deprecatedNames.length&&W)for(var V=0;V<this._deprecatedNames.length;V++)if(this._deprecatedNames[V]===W){var U=this._deprecated[W];if(U)return!N&&this._notifyDeprecated(W),U.alias||W}return W}addRules(W){this._rules=W.concat(this._rules)}applyRules(W){var N=this._getByRules(W);this.silent(N)}dispose(){this._deprecatedCallback=f.ZT,this._startChangeCallback=f.ZT,this._endChangeCallback=f.ZT,this._optionManager.dispose()}onChanging(W){this._optionManager.onChanging(W)}onChanged(W){this._optionManager.onChanged(W)}onDeprecated(W){this._deprecatedCallback=W}onStartChange(W){this._startChangeCallback=W}onEndChange(W){this._endChangeCallback=W}isInitial(W){var N=this.silent(W),V=this.initial(W);return(0,C.mf)(N)&&(0,C.mf)(V)?N.toString()===V.toString():(0,f.bY)(N,V)}initial(W){return(0,s.vH)(this._initial,W)}option(W,N){if(arguments.length<2&&"object"!==(0,C.dt)(W))return this._optionManager.get(void 0,this._normalizeName(W));this._startChangeCallback();try{this._optionManager.set(W,N)}finally{this._endChangeCallback()}}silent(W,N){if(arguments.length<2&&"object"!==(0,C.dt)(W))return this._optionManager.get(void 0,W,void 0,!0);this._optionManager.set(W,N,void 0,!0)}reset(W){if(W){var V=(0,a.Zw)(W).reduce((K,Y)=>K?K[Y]:this.initial(Y),null),U=(0,C.Kn)(V)?(0,I.Z)({},V):V;this._optionManager.set(W,U,!1)}}getAliasesByName(W){return Object.keys(this._deprecated).filter(N=>W===this._deprecated[N].alias)}isDeprecated(W){return Object.prototype.hasOwnProperty.call(this._deprecated,W)}cache(W,N){if(arguments.length<2)return this._cachedOptions[W];this._cachedOptions[W]=(0,c.l)(this._cachedOptions[W],N)}}var x=l(5031),b=l(9866),y=l(9644),E=l(5365),S=l(4562),O=l(6165),w=l(4270);class T{constructor(){this._postponedOperations={}}add(W,N,V){if(W in this._postponedOperations)V&&this._postponedOperations[W].promises.push(V);else{var U=new w.BH;this._postponedOperations[W]={fn:N,completePromise:U,promises:V?[V]:[]}}return this._postponedOperations[W].completePromise.promise()}callPostponedOperations(){for(var W in this._postponedOperations){var N=this._postponedOperations[W];(0,C.$K)(N)&&(N.promises&&N.promises.length?(0,w.gx)(...N.promises).done(N.fn).then(N.completePromise.resolve):N.fn().done(N.completePromise.resolve))}this._postponedOperations={}}}var k=B=>B.charAt(2).toLowerCase()+B.substr(3),R=B=>0===B.indexOf("_",0),P=x.Z.inherit({_setDeprecatedOptions(){this._deprecatedOptions={}},_getDeprecatedOptions(){return this._deprecatedOptions},_getDefaultOptions:()=>({onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}),_defaultOptionsRules:()=>[],_setOptionsByDevice(B){this._options.applyRules(B)},_convertRulesToOptions:B=>(0,s.wt)(B),_isInitialOptionValue(B){return this._options.isInitial(B)},_setOptionsByReference(){this._optionsByReference={}},_getOptionsByReference(){return this._optionsByReference},ctor(){var B=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{_optionChangedCallbacks:W,_disposingCallbacks:N}=B;this.NAME=(0,O.u2)(this.constructor),this._eventsStrategy=S.m.create(this,B.eventsStrategy),this._updateLockCount=0,this._optionChangedCallbacks=W||(0,E.Z)(),this._disposingCallbacks=N||(0,E.Z)(),this.postponedOperations=new T,this._createOptions(B)},_createOptions(B){this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=new g(this._getDefaultOptions(),this._getDefaultOptions(),this._getOptionsByReference(),this._getDeprecatedOptions()),this._options.onChanging((W,N,V)=>this._initialized&&this._optionChanging(W,N,V)),this._options.onDeprecated((W,N)=>this._logDeprecatedOptionWarning(W,N)),this._options.onChanged((W,N,V)=>this._notifyOptionChanged(W,N,V)),this._options.onStartChange(()=>this.beginUpdate()),this._options.onEndChange(()=>this.endUpdate()),this._options.addRules(this._defaultOptionsRules()),B&&B.onInitializing&&B.onInitializing.apply(this,[B]),this._setOptionsByDevice(B.defaultOptionsRules),this._initOptions(B)}finally{this.endUpdate()}},_initOptions(B){this.option(B)},_init(){this._createOptionChangedAction(),this.on("disposing",B=>{this._disposingCallbacks.fireWith(this,[B])})},_logDeprecatedOptionWarning(B,W){var N=W.message||"Use the '".concat(W.alias,"' option instead");y.Z.log("W0001",this.NAME,B,W.since,N)},_logDeprecatedComponentWarning(B,W){y.Z.log("W0000",this.NAME,B,"Use the '".concat(W,"' widget instead"))},_createOptionChangedAction(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged(B){switch(B.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:f.ZT,_notifyOptionChanged(B,W,N){if(this._initialized)for(var V=[B].concat(this._options.getAliasesByName(B)),U=0;U<V.length;U++){var K=V[U],Y={name:(0,a.Zw)(K)[0],fullName:K,value:W,previousValue:N};R(K)||(this._optionChangedCallbacks.fireWith(this,[(0,c.l)(this._defaultActionArgs(),Y)]),this._optionChangedAction((0,c.l)({},Y))),!this._disposed&&this._cancelOptionChange!==K&&this._optionChanged(Y)}},initialOption(B){return this._options.initial(B)},_defaultActionConfig(){return{context:this,component:this}},_defaultActionArgs(){return{component:this}},_createAction(B,W){var N;return V=>((0,C.$K)(V)||(V={}),(0,C.PO)(V)||(V={actionValue:V}),(N=N||new b.Z(B,(0,c.l)(W,this._defaultActionConfig()))).execute.call(N,(0,c.l)(V,this._defaultActionArgs())))},_createActionByOption(B,W){var V,U,K,N=this,Y=function(){if(!U){if(W=W||{},"string"!=typeof B)throw y.Z.Error("E0008");0===B.indexOf("on")&&(U=k(B)),K=N.option(B)}if(V||K||W.beforeExecute||W.afterExecute||N._eventsStrategy.hasEvent(U)){if(!V){var j=W.beforeExecute;W.beforeExecute=function(){for(var M=arguments.length,se=new Array(M),ge=0;ge<M;ge++)se[ge]=arguments[ge];j&&j.apply(N,se),N._eventsStrategy.fireEvent(U,se[0].args)},V=N._createAction(K,W)}for(var ee=arguments.length,G=new Array(ee),q=0;q<ee;q++)G[q]=arguments[q];if((0,o.Z)().wrapActionsBeforeExecute){var Z=N.option("beforeActionExecute")||f.ZT,X=Z(N,V,W)||V;return X.apply(N,G)}return V.apply(N,G)}};return(0,o.Z)().wrapActionsBeforeExecute?Y:(this.option("onActionCreated")||f.ZT)(this,Y,W)||Y},on(B,W){return this._eventsStrategy.on(B,W),this},off(B,W){return this._eventsStrategy.off(B,W),this},hasActionSubscription:function(B){return!!this._options.silent(B)||this._eventsStrategy.hasEvent(k(B))},isOptionDeprecated(B){return this._options.isDeprecated(B)},_setOptionWithoutOptionChange(B,W){this._cancelOptionChange=B,this.option(B,W),this._cancelOptionChange=!1},_getOptionValue(B,W){var N=this.option(B);return(0,C.mf)(N)?N.bind(W)():N},option(){return this._options.option(...arguments)},resetOption(B){this.beginUpdate(),this._options.reset(B),this.endUpdate()}})},8506:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>s});var o=l(9904);const I=new(l(8174).Z);var C=l(9644),f=l(6165);I.add(function(u,d){o.Z.fn[u]=function(h){var x,g="string"==typeof h;if(g){var b=h,y=[].slice.call(arguments).slice(1);this.each(function(){var E=d.getInstance(this);if(!E)throw C.Z.Error("E0009",u);var O=E[b].apply(E,y);void 0===x&&(x=O)})}else this.each(function(){var E=d.getInstance(this);E?E.option(h):new d(this,h)}),x=this;return x}});const s=function(u,d,h){h?d[u]=h:h=d,(0,f.u2)(h,u),I.fire(u,h)}},7572:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>a});var o=l(5873),c=l(9644),I={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:p=>{"{"!==p.trim().charAt(0)&&(p="{"+p+"}");try{return new Function("return "+p)()}catch(s){throw c.Z.Error("E3018",s,p)}}},C=["decimalSeparator","thousandsSeparator"],f=function(){if(!arguments.length)return I;var p=arguments.length<=0?void 0:arguments[0];C.forEach(s=>{if(p[s]){var u="Now, the ".concat(s," is selected based on the specified locale.");c.Z.log("W0003","config",s,"19.2",u)}}),(0,o.l)(I,p)};typeof DevExpress<"u"&&DevExpress.config&&f(DevExpress.config);const a=f},2941:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>P});var o=l(1805),c=l(9904),I=l(4514),C=l(5873),f=l(1828),a=l(2718),p=l(9644),s=l(5365),u=l(3068),d=l(3824),h=l(4562),g=l(6718),x=l(1469),b=l(7572),y=(0,I.jW)(),E=(0,I.Jj)(),S={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"},O={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},w={generic(B){var W=/windows phone/i.test(B)||B.match(/WPDesktop/),N=!W&&/Windows(.*)arm(.*)Tablet PC/i.test(B),V=!W&&!N&&/msapphost/i.test(B),U=/((intel|ppc) mac os x)/.test(B.toLowerCase());if(W||N||V||U)return{deviceType:W?"phone":N?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:U}},ios(B){if(/ip(hone|od|ad)/i.test(B)){var W=/ip(hone|od)/i.test(B),N=B.match(/os (\d+)_(\d+)_?(\d+)?/i);return{deviceType:W?"phone":"tablet",platform:"ios",version:N?[parseInt(N[1],10),parseInt(N[2],10),parseInt(N[3]||0,10)]:[],grade:480===E.screen.height?"B":"A"}}},android(B){if(/android|htc_|silk/i.test(B)){var W=/mobile/i.test(B),N=B.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),V=N?[parseInt(N[1],10),parseInt(N[2]||0,10),parseInt(N[3]||0,10)]:[];return{deviceType:W?"phone":"tablet",platform:"android",version:V,grade:V.length>1&&(V[0]<4||4===V[0]&&V[1]<4)?"B":"A"}}}},k=new class T{constructor(W){this._window=W?.window||E,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new h.m(this),this.changed=(0,s.Z)(),(0,I.Ym)()&&(u.Z.add(this._recalculateOrientation.bind(this)),d.Z.add(this._recalculateOrientation.bind(this)))}current(W){if(W)return this._currentDevice=this._getDevice(W),this._forced=!0,void this.changed.fire();if(!this._currentDevice){W=void 0;try{W=this._getDeviceOrNameFromWindowScope()}catch{W=this._getDeviceNameFromSessionStorage()}finally{W||(W=this._getDeviceNameFromSessionStorage()),W&&(this._forced=!0)}this._currentDevice=this._getDevice(W)}return this._currentDevice}real(W){return(0,C.l)({},this._realDevice)}orientation(){return this._currentOrientation}isForced(){return this._forced}isRippleEmulator(){return!!this._window.tinyHippos}_getCssClasses(W){var N=[],V=this._realDevice;return(W=W||this.current()).deviceType&&(N.push("dx-device-".concat(W.deviceType)),"desktop"!==W.deviceType&&N.push("dx-device-mobile")),N.push("dx-device-".concat(V.platform)),V.version&&V.version.length&&N.push("dx-device-".concat(V.platform,"-").concat(V.version[0])),this.isSimulator()&&N.push("dx-simulator"),(0,b.Z)().rtlEnabled&&N.push("dx-rtl"),N}attachCssClasses(W,N){this._deviceClasses=this._getCssClasses(N).join(" "),(0,c.Z)(W).addClass(this._deviceClasses)}detachCssClasses(W){(0,c.Z)(W).removeClass(this._deviceClasses)}isSimulator(){try{return this._isSimulator||(0,I.Ym)()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch{return!1}}forceSimulator(){this._isSimulator=!0}_getDevice(W){if("genericPhone"===W&&(W={deviceType:"phone",platform:"generic",generic:!0}),(0,f.PO)(W))return this._fromConfig(W);var N;if(W){if(!(N=S[W]))throw p.Z.Error("E0005")}else N=y.userAgent;return this._fromUA(N)}_getDeviceOrNameFromWindowScope(){var W;return(0,I.Ym)()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(W=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),W}_getDeviceNameFromSessionStorage(){var W=(0,g.y)();if(W){var N=W.getItem("dx-force-device");try{return JSON.parse(N)}catch{return N}}}_fromConfig(W){var N=(0,C.l)({},O,this._currentDevice,W);return(0,C.l)(N,{phone:"phone"===N.deviceType,tablet:"tablet"===N.deviceType,android:"android"===N.platform,ios:"ios"===N.platform,generic:"generic"===N.platform})}_fromUA(W){var N;return(0,a.S6)(w,(V,U)=>!(N=U(W))),N?this._fromConfig(N):O}_changeOrientation(){var W=(0,c.Z)(this._window),N=(0,o.Cr)(W)>(0,o.dz)(W)?"portrait":"landscape";this._currentOrientation!==N&&(this._currentOrientation=N,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:N}]))}_recalculateOrientation(){var W=(0,o.dz)(this._window);this._currentWidth!==W&&(this._currentWidth=W,this._changeOrientation())}on(W,N){return this._eventsStrategy.on(W,N),this}off(W,N){return this._eventsStrategy.off(W,N),this}},R=(0,x.S3)();R&&k.attachCssClasses(R),x.Wg.add((B,W)=>{k.detachCssClasses(W),k.attachCssClasses(B)});const P=k},9897:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>u});var o=l(2793),c=l(7674),I=l(3359),s={querySelectorAll:(d,h)=>d.querySelectorAll(h),elementMatches(d,h){return(d.matches||d.matchesSelector||d.mozMatchesSelector||d.msMatchesSelector||d.oMatchesSelector||d.webkitMatchesSelector||(x=>{var b=d.document||d.ownerDocument;if(!b)return!1;for(var y=this.querySelectorAll(b,x),E=0;E<y.length;E++)if(y[E]===d)return!0})).call(d,h)},createElement(d,h){return(h=h||this._document).createElement(d)},createElementNS(d,h,g){return(g=g||this._document).createElementNS(d,h)},createTextNode(d,h){return(h=h||this._document).createTextNode(d)},isNode:d=>d&&"object"==typeof d&&"nodeType"in d&&"nodeName"in d,isElementNode:d=>d&&1===d.nodeType,isTextNode:d=>d&&3===d.nodeType,isDocument:d=>d&&9===d.nodeType,isDocumentFragment:d=>d&&11===d.nodeType,removeElement(d){var h=d&&d.parentNode;h&&h.removeChild(d)},insertElement(d,h,g){d&&h&&d!==h&&(g?d.insertBefore(h,g):d.appendChild(h))},getAttribute:(d,h)=>d.getAttribute(h),setAttribute(d,h,g){d.setAttribute(h,g)},removeAttribute(d,h){d.removeAttribute(h)},setProperty(d,h,g){d[h]=g},setText(d,h){d&&(d.textContent=h)},setClass(d,h,g){1===d.nodeType&&h&&(g?d.classList.add(h):d.classList.remove(h))},setStyle(d,h,g){d.style[h]=g||""},_document:typeof document>"u"?void 0:document,getDocument(){return this._document},getActiveElement(d){return this.getRootNode(d).activeElement},getRootNode(d){var h,g;return null!==(h=null==d||null===(g=d.getRootNode)||void 0===g?void 0:g.call(d))&&void 0!==h?h: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(d){return d in this._document},listen:(d,h,g,x)=>d&&"addEventListener"in d?(d.addEventListener(h,g,x),()=>{d.removeEventListener(h,g)}):c.ZT,elementsFromPoint(d,h,g){var x=this.getRootNode(g);return x.host?(0,I.f)(d,h,x):x.elementsFromPoint(d,h)}};const u=(0,o.Z)(s)},8893:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>V});var o=l(9904),c=l(7572),I=l(9644),C=l(3824),f=l(4430),a=l(1828),p=l(7674),s=l(5873),u=l(6868),d=l(1880),h=l(4542),E=new u.k(U=>{var{model:K,parent:Y}=U,J=K.widget;if(!J)return(0,o.Z)();var j=(0,o.Z)("<div>"),ee=K.options||{};return Y?Y._createComponent(j,J,ee):j[J](ee),j});class S{constructor(K,Y){this._tempTemplates=[],this._defaultTemplates={},this._anonymousTemplateName=Y||"template",this._createElement=K||h.gi,this._createTemplateIfNeeded=this._createTemplateIfNeeded.bind(this)}static createDefaultOptions(){return{integrationOptions:{watchMethod:function(K,Y){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return J.skipImmediate||Y(K()),p.ZT},templates:{"dx-polymorph-widget":E},useDeferUpdateForTemplates:!0}}}get anonymousTemplateName(){return this._anonymousTemplateName}addDefaultTemplates(K){this._defaultTemplates=(0,s.l)({},this._defaultTemplates,K)}dispose(){this._tempTemplates.forEach(K=>{K.template.dispose&&K.template.dispose()}),this._tempTemplates=[]}extractTemplates(K){return{templates:this._extractTemplates(K),anonymousTemplateMeta:this._extractAnonymousTemplate(K)}}_extractTemplates(K){var Y=(0,h.hK)(K,"dxTemplate"),J=(0,h.ZE)(Y);return Y.forEach(j=>{var{element:ee,options:{name:G}}=j;ee===J[G]?(0,o.Z)(ee).addClass("dx-template-wrapper").detach():(0,o.Z)(ee).remove()}),Object.keys(J).map(j=>({name:j,template:this._createTemplate(J[j])}))}_extractAnonymousTemplate(K){var Y=K.contents().detach();return Y.filter((j,ee)=>{var G=3===ee.nodeType,q=(0,o.Z)(ee).text().trim().length<1;return!(G&&q)}).length>0?{template:this._createTemplate(Y),name:this._anonymousTemplateName}:{}}_createTemplateIfNeeded(K){var Y=this._tempTemplates.filter(j=>j.source===(0,h.TM)(K))[0];if(Y)return Y.template;var J=this._createTemplate(K);return this._tempTemplates.push({template:J,source:(0,h.TM)(K)}),J}_createTemplate(K){return this._createElement((0,h.v_)(K))}getTemplate(K,Y,J,j){var{isAsyncTemplate:ee,skipTemplates:G}=J;return(0,a.mf)(K)?new u.k(q=>{var Z=K.apply(j,(0,h.Wl)(q));if(!(0,a.$K)(Z))return new d.s;var X=!1,M=(0,h.t0)(Z,ge=>ge.nodeType||(0,a.ZU)(ge)&&!(0,o.Z)(ge).is("script")?new u.k(()=>ge):(X=!0,this._createTemplate(ge)),Y,ee,G,this._defaultTemplates),se=M.render(q);return X&&M.dispose&&M.dispose(),se}):(0,h.t0)(K,this._createTemplateIfNeeded,Y,ee,G,this._defaultTemplates)}}var O=l(6165),w=l(3359),T=l(5610),k=l(2718),R=l(6881),P=l(4514),B=l(114),{abstract:W}=f.w,N=f.w.inherit({_getDefaultOptions(){return(0,s.l)(this.callBase(),{width:void 0,height:void 0,rtlEnabled:(0,c.Z)().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}},this._useTemplates()?S.createDefaultOptions():{})},ctor(U,K){this._customClass=null,this._createElement(U),(0,O.nf)(this._$element,this,this._dispose),this.callBase(K)},_createElement(U){this._$element=(0,o.Z)(U)},_getSynchronizableOptionsForCreateComponent:()=>["rtlEnabled","disabled","templatesRenderAsynchronously"],_checkFunctionValueDeprecation:function(U){this.option("_ignoreFunctionValueDeprecation")||U.forEach(K=>{(0,a.mf)(this.option(K))&&I.Z.log("W0017",K)})},_visibilityChanged:W,_dimensionChanged:W,_init(){this.callBase(),this._checkFunctionValueDeprecation(["width","height","maxHeight","maxWidth","minHeight","minWidth","popupHeight","popupWidth"]),this._attachWindowResizeCallback(),this._initTemplateManager()},_setOptionsByDevice(U){this.callBase([].concat(this.constructor._classCustomRules||[],U||[]))},_isInitialOptionValue(U){return!(this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),U))&&this.callBase(U)},_attachWindowResizeCallback(){if(this._isDimensionChangeSupported()){var U=this._windowResizeCallBack=this._dimensionChanged.bind(this);C.Z.add(U)}},_isDimensionChangeSupported(){return this._dimensionChanged!==W},_renderComponent(){this._initMarkup(),(0,P.Ym)()&&this._render()},_initMarkup(){var{rtlEnabled:U}=this.option()||{};this._renderElementAttributes(),this._toggleRTLDirection(U),this._renderVisibilityChange(),this._renderDimensions()},_render(){this._attachVisibilityChangeHandlers(),(0,w.R)(this.$element())},_renderElementAttributes(){var{elementAttr:U}=this.option()||{},K=(0,s.l)({},U),Y=K.class;delete K.class,this.$element().attr(K).removeClass(this._customClass).addClass(Y),this._customClass=Y},_renderVisibilityChange(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass("dx-visibility-change-handler")},_renderDimensions(){var U=this.$element(),K=U.get(0),Y=this._getOptionValue("width",K),J=this._getOptionValue("height",K);this._isCssUpdateRequired(K,J,Y)&&U.css({width:null===Y?"":Y,height:null===J?"":J})},_isCssUpdateRequired:(U,K,Y)=>!!((0,a.$K)(Y)||(0,a.$K)(K)||U.style.width||U.style.height),_attachDimensionChangeHandlers(){var U=this.$element(),K="".concat(this.NAME,"VisibilityChange");B.SI.off(U,{namespace:K}),B.SI.on(U,()=>this._dimensionChanged(),{namespace:K})},_attachVisibilityChangeHandlers(){if(this._isVisibilityChangeSupported()){var U=this.$element(),K="".concat(this.NAME,"VisibilityChange");this._isHidden=!this._isVisible(),B.WD.off(U,{namespace:K}),B.WD.on(U,()=>this._checkVisibilityChanged("shown"),()=>this._checkVisibilityChanged("hiding"),{namespace:K})}},_isVisible(){return this.$element().is(":visible")},_checkVisibilityChanged(U){this._isVisible()&&("hiding"!==U||this._isHidden?"shown"===U&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0)):(this._visibilityChanged(!1),this._isHidden=!0))},_isVisibilityChangeSupported(){return this._visibilityChanged!==W&&(0,P.Ym)()},_clean:p.ZT,_modelByElement(){var{modelByElement:U}=this.option(),K=this.$element();return U?U(K):void 0},_invalidate(){if(this._isUpdateAllowed())throw I.Z.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()&&C.Z.remove(this._windowResizeCallBack)},_toggleRTLDirection(U){this.$element().toggleClass("dx-rtl",U)},_createComponent(U,K){var Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},J=(0,p.h3)(this._getSynchronizableOptionsForCreateComponent(),M=>!(M in Y)),{integrationOptions:j}=this.option(),{nestedComponentOptions:ee}=this.option(),G=(0,s.l)({integrationOptions:j},(ee=ee||p.ZT)(this));J.forEach(M=>G[M]=this.option(M)),this._extendConfig(Y,G);var q=void 0;if((0,a.HD)(K)){var Z=(0,o.Z)(U)[K](Y);q=Z[K]("instance")}else U&&((q=K.getInstance(U))?q.option(Y):q=new K(U,Y));if(q){var X=M=>{var{name:se,value:ge}=M;J.includes(se)&&q.option(se,ge)};this.on("optionChanged",X),q.on("disposing",()=>this.off("optionChanged",X))}return q},_extendConfig(U,K){(0,k.S6)(K,(Y,J)=>{!Object.prototype.hasOwnProperty.call(U,Y)&&(U[Y]=J)})},_defaultActionConfig(){var U=this.$element(),K=this._modelByElement(U);return(0,s.l)(this.callBase(),{context:K})},_defaultActionArgs(){var U=this.$element(),K=this._modelByElement(U),Y=this.element();return(0,s.l)(this.callBase(),{element:Y,model:K})},_optionChanged(U){switch(U.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(U)}},_removeAttributes(U){for(var K=U.attributes,Y=K.length-1;Y>=0;Y--){var J=K[Y];if(J){var{name:j}=J;(!j.indexOf("aria-")||-1!==j.indexOf("dx-")||"role"===j||"style"===j||"tabindex"===j)&&U.removeAttribute(j)}}},_removeClasses(U){U.className=U.className.split(" ").filter(K=>0!==K.lastIndexOf("dx-",0)).join(" ")},_updateDOMComponent(U){U?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate(){var U=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(U)},$element(){return this._$element},element(){var U=this.$element();return(0,R.u)(U)},dispose(){var U=this.$element().get(0);(0,T.nK)(U,!0),U.textContent="",this._removeAttributes(U),this._removeClasses(U)},resetOption(U){if(this.callBase(U),"width"===U||"height"===U){var K=this.initialOption(U);!(0,a.$K)(K)&&this.$element().css(U,"")}},_getAnonymousTemplateName(){},_initTemplateManager(){if(!this._templateManager&&this._useTemplates()){var{integrationOptions:U={}}=this.option(),{createTemplate:K}=U;this._templateManager=new S(K,this._getAnonymousTemplateName()),this._initTemplates()}},_initTemplates(){var{templates:U,anonymousTemplateMeta:K}=this._templateManager.extractTemplates(this.$element()),Y=this.option("integrationOptions.templates.".concat(K.name));U.forEach(J=>{var{name:j,template:ee}=J;this._options.silent("integrationOptions.templates.".concat(j),ee)}),K.name&&!Y&&(this._options.silent("integrationOptions.templates.".concat(K.name),K.template),this._options.silent("_hasAnonymousTemplateContent",!0))},_getTemplateByOption(U){return this._getTemplate(this.option(U))},_getTemplate(U){var K=this.option("integrationOptions.templates"),Y=this.option("templatesRenderAsynchronously"),J=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(U,K,{isAsyncTemplate:Y,skipTemplates:J},this)},_saveTemplate(U,K){this._setOptionWithoutOptionChange("integrationOptions.templates."+U,this._templateManager._createTemplate(K))},_useTemplates:()=>!0});N.getInstance=function(U){return(0,O.Bt)((0,o.Z)(U),this)},N.defaultOptions=function(U){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(U)};const V=N},6881:(kn,he,l)=>{"use strict";l.d(he,{u:()=>c});function c(C){return function(C){return C&&C.get(0)}(C)}},5610:(kn,he,l)=>{"use strict";l.d(he,{NU:()=>y,WD:()=>g,aT:()=>h,nK:()=>E});var f,o=l(9897),c=l(913),I=l(8174),C=new WeakMap,a=new I.Z,p=function(){};function h(){return f.data.apply(this,arguments)}function g(S){p=S}function y(S,O){return f.removeData.call(this,S,O)}function E(S,O){if(o.Z.isElementNode(S)){var w=S.getElementsByTagName("*");f.cleanData(w),O&&f.cleanData([S])}}!function(S){a.fire(S);var O=(f=S).cleanData;f.cleanData=function(w){return p(w),O.call(this,w)}}({data:function(){var S=arguments[0],O=arguments[1],w=arguments[2];if(S){var T=C.get(S);return T||C.set(S,T={}),void 0===O?T:2===arguments.length?T[O]:(T[O]=w,w)}},removeData:function(S,O){if(S)if(void 0===O)C.delete(S);else{var w=C.get(S);w&&delete w[O]}},cleanData:function(S){for(var O=0;O<S.length;O++)c.Z.off(S[O]),C.delete(S[O])}})},9644:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>c});const c=(0,l(9389).Z)({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'})},4562:(kn,he,l)=>{"use strict";l.d(he,{m:()=>C});var o=l(5365),c=l(2718),I=l(1828);class C{constructor(a){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._events={},this._owner=a,this._options=p}static create(a,p){return p?(0,I.mf)(p)?p(a):p:new C(a)}hasEvent(a){var p=this._events[a];return!!p&&p.has()}fireEvent(a,p){var s=this._events[a];return s&&s.fireWith(this._owner,p),this._owner}on(a,p){if((0,I.PO)(a))(0,c.S6)(a,(d,h)=>{this.on(d,h)});else{var s=this._events[a];s||(s=(0,o.Z)({syncStrategy:this._options.syncStrategy}),this._events[a]=s),(s.originalAdd||s.add).call(s,p)}}off(a,p){var s=this._events[a];s&&((0,I.mf)(p)?s.remove(p):s.empty())}dispose(){(0,c.S6)(this._events,(a,p)=>{p.empty()})}}},6492:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>I});const I=l(5031).Z.inherit({ctor:function(C){C&&(C=String(C)),this._value=this._normalize(C||this._generate())},_normalize:function(C){for(C=C.replace(/[^a-f0-9]/gi,"").toLowerCase();C.length<32;)C+="0";return[C.substr(0,8),C.substr(8,4),C.substr(12,4),C.substr(16,4),C.substr(20,12)].join("-")},_generate:function(){for(var C="",f=0;f<32;f++)C+=Math.round(15*Math.random()).toString(16);return C},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}})},3007:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>f});var o=l(4514),c=l(2793),I=(0,o.Jj)();const f=(0,c.Z)({getXhr:function(){return new I.XMLHttpRequest}})},8174:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>I});var o=l(2718),c=l(5365);class I{constructor(){this.memory=[],this.callbacks=(0,c.Z)()}add(f){(0,o.S6)(this.memory,(a,p)=>f.apply(f,p)),this.callbacks.add(f)}remove(f){this.callbacks.remove(f)}fire(){for(var f=arguments.length,a=new Array(f),p=0;p<f;p++)a[p]=arguments[p];this.memory.push(a),this.callbacks.fire.apply(this.callbacks,a)}}},3238:(kn,he,l)=>{"use strict";l.d(he,{GR:()=>s,J3:()=>x,Ts:()=>d,u5:()=>h,vH:()=>g,wt:()=>p});var o=l(2941),c=l(1828),I=l(7674),C=l(5873),f=l(6738),a={},p=b=>{var y=o.Z.current();return b.reduce((E,S)=>{var{device:O,options:w}=S,T=O||{};return((0,c.mf)(T)?T(y):u(y,T))&&(0,C.l)(!0,E,w),E},{})},s=(b,y)=>"string"!=typeof b?b:{[b]:y},u=(b,y)=>(0,c.Qr)(y)||(0,I.U3)(b,[y]).length>0,d=b=>b.substr(b.lastIndexOf(".")+1),h=b=>b.substr(0,b.lastIndexOf(".")),g=function(b,y){return a[y]=a[y]||(0,f.vb)(y),a[y](b,{functionsAsIs:!0})},x=function(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return b}},9904:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>w});var u,o=l(5610),c=l(9897),I=l(4514),C=l(1828),f=l(4356),a=l(1805),p=l(2819),s=(0,I.Jj)(),d=function(T,k){return T?"string"==typeof T?"body"===T?(this[0]=k?k.body:c.Z.getBody(),this.length=1,this):(k=k||c.Z.getDocument(),"<"===T[0]?(this[0]=c.Z.createElement(T.slice(1,-1),k),this.length=1,this):([].push.apply(this,c.Z.querySelectorAll(k,T)),this)):c.Z.isNode(T)||(0,C.FJ)(T)?(this[0]=T,this.length=1,this):Array.isArray(T)?([].push.apply(this,T),this):u(T.toArray?T.toArray():[T]):(this.length=0,this)};(u=function(T,k){return new d(T,k)}).fn={dxRenderer:!0};var h=function(T,k){for(var R=0;R<this.length;R++){var P=u(this[R]);P[T].apply(P,k)}return this},g=function(T,k,R){null!=R&&!1!==R?c.Z.setAttribute(T,k,R):c.Z.removeAttribute(T,k)};(d.prototype=u.fn).show=function(){return this.toggle(!0)},d.prototype.hide=function(){return this.toggle(!1)},d.prototype.toggle=function(T){return this[0]&&this.toggleClass("dx-state-invisible",!T),this},d.prototype.attr=function(T,k){if(this.length>1&&arguments.length>1)return h.call(this,"attr",arguments);if(!this[0])return(0,C.Kn)(T)||void 0!==k?this:void 0;if(!this[0].getAttribute)return this.prop(T,k);if("string"==typeof T&&1===arguments.length){var R=this[0].getAttribute(T);return R??void 0}if((0,C.PO)(T))for(var P in T)this.attr(P,T[P]);else g(this[0],T,k);return this},d.prototype.removeAttr=function(T){return this[0]&&c.Z.removeAttribute(this[0],T),this},d.prototype.prop=function(T,k){if(!this[0])return this;if("string"==typeof T&&1===arguments.length)return this[0][T];if((0,C.PO)(T))for(var R in T)this.prop(R,T[R]);else c.Z.setProperty(this[0],T,k);return this},d.prototype.addClass=function(T){return this.toggleClass(T,!0)},d.prototype.removeClass=function(T){return this.toggleClass(T,!1)},d.prototype.hasClass=function(T){if(!this[0]||void 0===this[0].className)return!1;for(var k=T.split(" "),R=0;R<k.length;R++)if(this[0].classList){if(this[0].classList.contains(k[R]))return!0}else if((((0,C.HD)(this[0].className)?this[0].className:c.Z.getAttribute(this[0],"class"))||"").split(" ").indexOf(k[R])>=0)return!0;return!1},d.prototype.toggleClass=function(T,k){if(this.length>1)return h.call(this,"toggleClass",arguments);if(!this[0]||!T)return this;k=void 0===k?!this.hasClass(T):k;for(var R=T.split(" "),P=0;P<R.length;P++)c.Z.setClass(this[0],R[P],k);return this},d.prototype.html=function(T){return arguments.length?(this.empty(),"string"==typeof T&&!(0,p.N)(T)||"number"==typeof T?(this[0].innerHTML=T,this):this.append((0,p.r)(T))):this[0].innerHTML};var x=function(T,k){if(this[0]&&T){"string"==typeof T?T=(0,p.r)(T):T.nodeType?T=[T]:(0,C.kE)(T)&&(T=[c.Z.createTextNode(T)]);for(var R=0;R<T.length;R++){var P=T[R],B=this[0];"TABLE"===B.tagName&&"TR"===P.tagName&&B.tBodies&&B.tBodies.length&&(B=B.tBodies[0]),c.Z.insertElement(B,P.nodeType?P:P[0],k)}}},b=function(T,k){if(this[0]&&this[0].style&&!(null===k||"number"==typeof k&&isNaN(k))){T=(0,f.Hj)(T);for(var R=0;R<this.length;R++)this[R].style[T]=(0,f.bh)(T,k)}};d.prototype.css=function(T,k){if((0,C.HD)(T)){if(2!==arguments.length){if(!this[0])return;T=(0,f.Hj)(T);var R=s.getComputedStyle(this[0])[T]||this[0].style[T];return(0,C.kE)(R)?R.toString():R}b.call(this,T,k)}else if((0,C.PO)(T))for(var P in T)b.call(this,P,T[P]);return this},d.prototype.prepend=function(T){if(arguments.length>1){for(var k=0;k<arguments.length;k++)this.prepend(arguments[k]);return this}return x.apply(this,[T,this[0].firstChild]),this},d.prototype.append=function(T){if(arguments.length>1){for(var k=0;k<arguments.length;k++)this.append(arguments[k]);return this}return x.apply(this,[T]),this},d.prototype.prependTo=function(T){if(this.length>1){for(var k=this.length-1;k>=0;k--)u(this[k]).prependTo(T);return this}return(T=u(T))[0]&&c.Z.insertElement(T[0],this[0],T[0].firstChild),this},d.prototype.appendTo=function(T){return this.length>1?h.call(this,"appendTo",arguments):(c.Z.insertElement(u(T)[0],this[0]),this)},d.prototype.insertBefore=function(T){return T&&T[0]&&c.Z.insertElement(T[0].parentNode,this[0],T[0]),this},d.prototype.insertAfter=function(T){return T&&T[0]&&c.Z.insertElement(T[0].parentNode,this[0],T[0].nextSibling),this},d.prototype.before=function(T){return this[0]&&c.Z.insertElement(this[0].parentNode,T[0],this[0]),this},d.prototype.after=function(T){return this[0]&&c.Z.insertElement(this[0].parentNode,T[0],this[0].nextSibling),this},d.prototype.wrap=function(T){if(this[0]){var k=u(T);k.insertBefore(this),k.append(this)}return this},d.prototype.wrapInner=function(T){var k=this.contents();return k.length?k.wrap(T):this.append(T),this},d.prototype.replaceWith=function(T){if(T&&T[0])return T.is(this)?this:(T.insertBefore(this),this.remove(),T)},d.prototype.remove=function(){return this.length>1?h.call(this,"remove",arguments):((0,o.nK)(this[0],!0),c.Z.removeElement(this[0]),this)},d.prototype.detach=function(){return this.length>1?h.call(this,"detach",arguments):(c.Z.removeElement(this[0]),this)},d.prototype.empty=function(){return this.length>1?h.call(this,"empty",arguments):((0,o.nK)(this[0]),c.Z.setText(this[0],""),this)},d.prototype.clone=function(){for(var T=[],k=0;k<this.length;k++)T.push(this[k].cloneNode(!0));return u(T)},d.prototype.text=function(T){if(!arguments.length){for(var k="",R=0;R<this.length;R++)k+=this[R]&&this[R].textContent||"";return k}var P=(0,C.mf)(T)?T():T;return(0,o.nK)(this[0],!1),c.Z.setText(this[0],(0,C.$K)(P)?P:""),this},d.prototype.val=function(T){return 1===arguments.length?this.prop("value",(0,C.$K)(T)?T:""):this.prop("value")},d.prototype.contents=function(){if(!this[0])return u();var T=[];return T.push.apply(T,this[0].childNodes),u(T)},d.prototype.find=function(T){var k=u();if(!T)return k;var P,R=[];if("string"==typeof T)for(T=T.trim(),P=0;P<this.length;P++){var B=this[P];if(c.Z.isElementNode(B)){var W=B.getAttribute("id"),N=W||"dx-query-children";W||g(B,"id",N);var V=(N="[id='"+N+"'] ")+T.replace(/([^\\])(,)/g,"$1, "+N);R.push.apply(R,c.Z.querySelectorAll(B,V)),g(B,"id",W)}else(c.Z.isDocument(B)||c.Z.isDocumentFragment(B))&&R.push.apply(R,c.Z.querySelectorAll(B,T))}else for(P=0;P<this.length;P++)T=c.Z.isNode(T)?T:T[0],this[P]!==T&&this[P].contains(T)&&R.push(T);return k.add(R)};var y=function(T,k){var R;return!(k=null!==(R=k.host)&&void 0!==R?R:k).nodeType||!!(k.offsetWidth||k.offsetHeight||k.getClientRects().length)};d.prototype.filter=function(T){if(!T)return u();if(":visible"===T)return this.filter(y);if(":hidden"===T)return this.filter(function(W,N){return!y(0,N)});for(var k=[],R=0;R<this.length;R++){var P=this[R];if(c.Z.isElementNode(P)&&"string"===(0,C.dt)(T))c.Z.elementMatches(P,T)&&k.push(P);else if(c.Z.isNode(T)||(0,C.FJ)(T))T===P&&k.push(P);else if((0,C.mf)(T))T.call(P,R,P)&&k.push(P);else for(var B=0;B<T.length;B++)T[B]===P&&k.push(P)}return u(k)},d.prototype.not=function(T){for(var k=[],R=this.filter(T).toArray(),P=0;P<this.length;P++)-1===R.indexOf(this[P])&&k.push(this[P]);return u(k)},d.prototype.is=function(T){return!!this.filter(T).length},d.prototype.children=function(T){for(var k=[],R=0;R<this.length;R++)for(var P=this[R]?this[R].childNodes:[],B=0;B<P.length;B++)c.Z.isElementNode(P[B])&&k.push(P[B]);return k=u(k),T?k.filter(T):k},d.prototype.siblings=function(){var T=this[0];if(!T||!T.parentNode)return u();for(var k=[],R=T.parentNode.childNodes||[],P=0;P<R.length;P++){var B=R[P];c.Z.isElementNode(B)&&B!==T&&k.push(B)}return u(k)},d.prototype.each=function(T){for(var k=0;k<this.length&&!1!==T.call(this[k],k,this[k]);k++);},d.prototype.index=function(T){return T?(T=u(T),this.toArray().indexOf(T[0])):this.parent().children().index(this)},d.prototype.get=function(T){return this[T<0?this.length+T:T]},d.prototype.eq=function(T){return u(this[T=T<0?this.length+T:T])},d.prototype.first=function(){return this.eq(0)},d.prototype.last=function(){return this.eq(-1)},d.prototype.select=function(){for(var T=0;T<this.length;T+=1)this[T].select&&this[T].select();return this},d.prototype.parent=function(T){if(!this[0])return u();var k=u(this[0].parentNode);return!T||k.is(T)?k:u()},d.prototype.parents=function(T){for(var k=[],R=this.parent();R&&R[0]&&!c.Z.isDocument(R[0]);)c.Z.isElementNode(R[0])&&(!T||R.is(T))&&k.push(R.get(0)),R=R.parent();return u(k)},d.prototype.closest=function(T){if(this.is(T))return this;for(var k=this.parent();k&&k.length;){if(k.is(T))return k;k=k.parent()}return u()},d.prototype.next=function(T){if(!this[0])return u();var k=u(this[0].nextSibling);if(!arguments.length)return k;for(;k&&k.length;){if(k.is(T))return k;k=k.next()}return u()},d.prototype.prev=function(){return this[0]?u(this[0].previousSibling):u()},d.prototype.add=function(T){for(var k=u(T),R=this.toArray(),P=0;P<k.length;P++){var B=k[P];-1===R.indexOf(B)&&R.push(B)}return u(R)};var E=[];d.prototype.splice=function(){return u(E.splice.apply(this,arguments))},d.prototype.slice=function(){return u(E.slice.apply(this,arguments))},d.prototype.toArray=function(){return E.slice.call(this)},d.prototype.offset=function(){if(this[0])return(0,a.os)(this[0])},d.prototype.offsetParent=function(){if(!this[0])return u();for(var T=u(this[0].offsetParent);T[0]&&"static"===T.css("position");)T=u(T[0].offsetParent);return T[0]?T:u(c.Z.getDocumentElement())},d.prototype.position=function(){if(this[0]){var T,k=parseFloat(this.css("marginTop")),R=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return{top:(T=this[0].getBoundingClientRect()).top-k,left:T.left-R};T=this.offset();var P=this.offsetParent(),B={top:0,left:0};return"HTML"!==P[0].nodeName&&(B=P.offset()),B={top:B.top+parseFloat(P.css("borderTopWidth")),left:B.left+parseFloat(P.css("borderLeftWidth"))},{top:T.top-B.top-k,left:T.left-B.left-R}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(T,k){T.scrollTo(k,T.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(T,k){T.scrollTo(T.pageXOffset,k)}}].forEach(function(T){var k=T.name;d.prototype[k]=function(R){if(this[0]){var P=(0,a.C_)(this[0]);return void 0===R?P?P[T.offsetProp]:this[0][k]:(P?T.scrollWindow(P,R):this[0][k]=R,this)}}}),d.prototype.data=function(T,k){if(this[0])return arguments.length<2?o.aT.call(u,this[0],T):(o.aT.call(u,this[0],T,k),this)},d.prototype.removeData=function(T){return this[0]&&(0,o.NU)(this[0],T),this};var S=function(){return u.apply(this,arguments)};Object.defineProperty(S,"fn",{enumerable:!0,configurable:!0,get:function(){return u.fn},set:function(T){u.fn=T}});const w=S},9870:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>p});var o=l(7674),c=l(4514),I=(0,c.Jj)(),C={observe:o.ZT,unobserve:o.ZT,disconnect:o.ZT};const p=new class f{constructor(){if(!(0,c.Ym)()||!I.ResizeObserver)return C;this._callbacksMap=new Map,this._observer=new I.ResizeObserver(u=>{u.forEach(d=>{var h;null===(h=this._callbacksMap.get(d.target))||void 0===h||h(d)})})}observe(u,d){this._callbacksMap.set(u,d),this._observer.observe(u)}unobserve(u){this._callbacksMap.delete(u),this._observer.unobserve(u)}disconnect(){this._callbacksMap.clear(),this._observer.disconnect()}}},4823:(kn,he,l)=>{"use strict";l.d(he,{c:()=>p});var o=l(9904),c=l(6246),I=l(913),C=l(4416),f=l(1828);class p extends c.S{constructor(u,d,h,g){super(),this._render=u,this._fields=d,this._fieldsMap=g||{},this._watchMethod=h}_renderCore(u){var d=(0,o.Z)(u.container),h=function(s,u,d,h,g){var x,y,b=(y=s,u(()=>y,function(y){var E,S,O,w,T,k,R,P;x&&x(),(0,f.pt)(y)?g(y):(E=y,S=u,w=h,T=g,k={},R=(O=d).slice(),P=O.map(function(B){var W=w[B];return S(W?()=>W(E):()=>E[B],function(N){if(k[B]=N,R.length){var V=R.indexOf(B);V>=0&&R.splice(V,1)}R.length||T(k)})}),x=function(){P.forEach(B=>B())})}));return function(){x&&x(),b&&b()}}(u.model,this._watchMethod,this._fields,this._fieldsMap,g=>{d.empty(),this._render(d,g,u.model)});return I.Z.on(d,C.x,h),d.contents()}}},1927:(kn,he,l)=>{"use strict";l.d(he,{s:()=>c});var o=l(6246);class c extends o.S{constructor(C){super(),this.name=C}}},1880:(kn,he,l)=>{"use strict";l.d(he,{s:()=>I});var o=l(9904),c=l(6246);class I extends c.S{_renderCore(){return(0,o.Z)()}}},6868:(kn,he,l)=>{"use strict";l.d(he,{k:()=>I});var o=l(6246),c=l(6520);class I extends o.S{constructor(f){super(),this._render=f}_renderCore(f){return(0,c.H_)(this._render(f))}}},6246:(kn,he,l)=>{"use strict";l.d(he,{S:()=>s});var o=l(9904),c=l(9897),I=l(5365),C=l(6520),f=l(2526),a=l(9644),p=(0,I.Z)({syncStrategy:!0});class s{render(d){var g,h=(d=d||{}).onRendered;return delete d.onRendered,g=d.renovated&&d.transclude&&this._element?(0,o.Z)("<div>").append(this._element).contents():this._renderCore(d),this._ensureResultInContainer(g,d.container),p.fire(g,d.container),h&&h(),g}_ensureResultInContainer(d,h){if(h){var g=(0,o.Z)(h),x=(0,C.r3)(g.get(0),d.get(0));g.append(d),x||c.Z.getBody().contains(g.get(0))&&(0,f.Uo)(d)}}_renderCore(){throw a.Z.Error("E0001")}}},9800:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>ee});var o=l(4270),c=l(9897),I=l(3007),C=l(4514),f=l(5873),a=l(1828),p=l(2793),s=(0,C.Jj)(),u="success",d="error",S=function(G){var q=c.Z.createElement("script");for(var Z in G)q[Z]=G[Z];return q},O=function(G){G.parentNode.removeChild(G)},w=function(G){return c.Z.getHead().appendChild(G)},T=function(G){var q=S({text:G});w(q),O(q)};function Y(G){return(G.method||"GET").toUpperCase()}const ee=(0,p.Z)({sendRequest:function(G){var De,q=I.Z.getXhr(),Z=new o.BH,X=Z.promise(),M=!(0,a.$K)(G.async)||G.async,se=G.dataType,ge=G.timeout||0;G.crossDomain=function(G){if(!(0,C.Ym)())return!0;var q=!1,Z=c.Z.createElement("a"),X=c.Z.createElement("a");Z.href=s.location.href;try{X.href=G,X.href=X.href,q=Z.protocol+"//"+Z.host!=X.protocol+"//"+X.host}catch{q=!0}return q}(G.url);var Fe="jsonp"===se||"script"===se;void 0===G.cache&&(G.cache=!Fe);var Ae=function(G){if("jsonp"===G.dataType){var q=Math.random().toString().replace(/\D/g,""),Z=G.jsonpCallback||"dxCallback"+Date.now()+"_"+q,X=G.jsonp||"callback";return G.data=G.data||{},G.data[X]=Z,Z}}(G),ne=function(G){var q=G.headers||{};return q["Content-Type"]=q["Content-Type"]||function(G){var q;return G.data&&!G.upload&&"GET"!==Y(G)&&(q="application/x-www-form-urlencoded;charset=utf-8"),G.contentType||q}(G),q.Accept=q.Accept||function(G){var q=G.dataType||"*",Z="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",X={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:Z,script:Z};return(0,f.x)(X,G.accepts,!0),X[q]?X[q]+("*"!==q?", */*; q=0.01":""):X["*"]}(G),!G.crossDomain&&!q["X-Requested-With"]&&(q["X-Requested-With"]="XMLHttpRequest"),q}(G),fe=function(G,q){var Z=G.data,X="string"==typeof Z,M=G.url||s.location.href;return!X&&!G.cache&&((Z=Z||{})._=Date.now()),Z&&!G.upload&&(X||(Z=function(G){var q=[];for(var Z in G){var X=G[Z];void 0!==X&&(null===X&&(X=""),"function"==typeof X&&(X=X()),q.push(encodeURIComponent(Z)+"="+encodeURIComponent(X)))}return q.join("&")}(Z)),"GET"===Y(G)?(""!==Z&&(M+=(M.indexOf("?")>-1?"&":"?")+Z),Z=null):q["Content-Type"]&&q["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(Z=Z.replace(/%20/g,"+"))),{url:M,parameters:Z}}(G,ne),_e=fe.url,ie=fe.parameters;if(Ae&&(s[Ae]=function(pe){Z.resolve(pe,u,q)}),G.crossDomain&&Fe)return function(G){var q=S({src:G});return new Promise(function(Z,X){var M={load:Z,error:X},se=function(De){M[De.type](),O(q)};for(var ge in M)c.Z.listen(q,ge,se);w(q)})}(_e).then(function(){"jsonp"!==se&&Z.resolve(null,u,q)},function(){Z.reject(q,d)}),X;if(G.crossDomain&&!("withCredentials"in q))return Z.reject(q,d),X;if(q.open(Y(G),_e,M,G.username,G.password),M&&(q.timeout=ge,De=function(G,q){return G&&setTimeout(function(){q.customStatus="timeout",q.abort()},G)}(ge,q)),q.onreadystatechange=function(pe){4===q.readyState&&(clearTimeout(De),function(G){return 200<=G&&G<300}(q.status)?function(G){return 204!==G}(q.status)?function(G,q,Z){var X=function(G){return G.responseType&&"text"!==G.responseType||"string"!=typeof G.responseText?G.response:G.responseText}(q);switch(Z){case"jsonp":T(X);break;case"script":T(X),G.resolve(X,u,q);break;case"json":try{G.resolve(JSON.parse(X),u,q)}catch(M){G.reject(q,"parsererror",M)}break;default:G.resolve(X,u,q)}}(Z,q,se):Z.resolve(null,"nocontent",q):Z.reject(q,q.customStatus||d))},G.upload&&(q.upload.onprogress=G.upload.onprogress,q.upload.onloadstart=G.upload.onloadstart,q.upload.onabort=G.upload.onabort),G.xhrFields)for(var de in G.xhrFields)q[de]=G.xhrFields[de];for(var le in"arraybuffer"===G.responseType&&(q.responseType=G.responseType),ne)Object.prototype.hasOwnProperty.call(ne,le)&&(0,a.$K)(ne[le])&&q.setRequestHeader(le,ne[le]);return G.beforeSend&&G.beforeSend(q),q.send(ie),X.abort=function(){q.abort()},X}})},9960:(kn,he,l)=>{"use strict";l.d(he,{Ed:()=>p,R1:()=>s,Sq:()=>u,rZ:()=>a,sE:()=>f,vM:()=>d});var o=l(1828),c=l(2834),I=l(7572);function C(h){return h.reduce((g,x)=>{var b;return g[x]=(null!==(b=g[x])&&void 0!==b?b:0)+1,g},{})}var f=function(h){return Array.isArray(h)?h:[h]},a=function(h){return[...new Set(h)]},p=function(h,g){var x=C(g);return h.filter(b=>x[b]--)},s=function(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],x=C(g);return h.filter(b=>!x[b]--)},u=function(h,g,x,b){var y={},{useLegacyVisibleIndex:E}=(0,I.Z)(),S=0,O=w=>!(0,o.$K)(w[g])&&(!b||b(w));h.forEach(w=>{var T=w[g];T>=0?(y[T]=y[T]||[],w===x?y[T].unshift(w):y[T].push(w)):w[g]=void 0}),E||h.forEach(w=>{if(O(w)){for(;y[S];)S++;y[S]=[w],S++}}),S=0,(0,c.jS)(y,function(w,T){T.forEach(k=>{w>=0&&(k[g]=S++)})}),E&&h.forEach(w=>{O(w)&&(w[g]=S++)})},d=(h,g)=>h.reduce((x,b)=>{var y,E=g(b);return x[E]=null!==(y=x[E])&&void 0!==y?y:[],x[E].push(b),x},{})},31:(kn,he,l)=>{"use strict";l.d(he,{E:()=>C,h:()=>f});var o=l(1828),c=function(a,p){var s=p(a);if((0,o.Kn)(s))try{return JSON.stringify(s)}catch{return s}return s},I=function(a,p,s,u){return p[s[c(a,u)]]},C=function(a,p){if(a.length!==p.length)return!1;for(var s=0;s<p.length;s++)if(a[s]!==p[s])return!1;return!0},f=function(a,p,s,u){var d={},h={},g=0,x=0,b=[];a.forEach(function(B,W){var N=c(B,s);d[N]=W}),p.forEach(function(B,W){var N=c(B,s);h[N]=W});for(var y=Math.max(a.length,p.length),E=0;E<y+g;E++){var S=p[E],O=E-g+x,w=a[O];if(!S||w&&!I(w,p,h,s))w&&(b.push({type:"remove",key:s(w),index:E,oldItem:w}),x++,E--);else{var k=c(S,s),R=d[k],P=a[R];if(P){if(R!==O)return;u(P,S)||b.push({type:"update",data:S,key:s(S),index:E,oldItem:P})}else g++,b.push({type:"insert",data:S,index:E})}}return b}},4722:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>p});var o=l(5873),I=(0,l(4514).jW)(),C=/(webkit)[ /]([\w.]+)/,f=/(mozilla)(?:.*? rv:([\w.]+))/,a=s=>{s=s.toLowerCase();var u={},d=C.exec(s)||s.indexOf("compatible")<0&&f.exec(s)||[],h=d[1],g=d[2];return"webkit"===h&&(u.webkit=!0,s.indexOf("chrome")>=0||s.indexOf("crios")>=0?(h="chrome",g=(g=/(?:chrome|crios)\/(\d+\.\d+)/.exec(s))&&g[1]):s.indexOf("fxios")>=0?(h="mozilla",g=(g=/fxios\/(\d+\.\d+)/.exec(s))&&g[1]):s.indexOf("safari")>=0&&/version|phantomjs/.test(s)?(h="safari",g=(g=/(?:version|phantomjs)\/([0-9.]+)/.exec(s))&&g[1]):(h="unknown",g=(g=/applewebkit\/([0-9.]+)/.exec(s))&&g[1])),h&&(u[h]=!0,u.version=g),u};const p=(0,o.l)({_fromUA:a},a(I.userAgent))},4304:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>c});const c=function(I){var C,f=function(){return C=I.apply(this,arguments),f=function(){return C},C};return function(){return f.apply(this,arguments)}}},5365:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>I});var o=function(C){this._options=C||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};o.prototype._fireCore=function(C,f){var a=this._firingIndexes,p=this._list,s=this._options.stopOnFalse,u=a.length;for(a[u]=0;a[u]<p.length&&(!1!==p[a[u]].apply(C,f)||!s);a[u]++);a.pop()},o.prototype.add=function(C){return"function"==typeof C&&(!this._options.unique||!this.has(C))&&this._list.push(C),this},o.prototype.remove=function(C){var f=this._list,a=this._firingIndexes,p=f.indexOf(C);if(p>-1&&(f.splice(p,1),this._firing&&a.length))for(var s=0;s<a.length;s++)p<=a[s]&&a[s]--;return this},o.prototype.has=function(C){var f=this._list;return C?f.indexOf(C)>-1:!!f.length},o.prototype.empty=function(C){return this._list=[],this},o.prototype.fireWith=function(C,f){var a=this._queue;if(f=(f=f||[]).slice?f.slice():f,this._options.syncStrategy)this._firing=!0,this._fireCore(C,f);else{if(a.push([C,f]),this._firing)return;for(this._firing=!0;a.length;){var p=a.shift();this._fireCore(p[0],p[1])}}return this._firing=!1,this._fired=!0,this},o.prototype.fire=function(){this.fireWith(this,arguments)},o.prototype.fired=function(){return this._fired};const I=function(C){return new o(C)}},7674:(kn,he,l)=>{"use strict";l.d(he,{C$:()=>U,FH:()=>N,IS:()=>p,Rg:()=>E,Su:()=>y,TG:()=>P,U3:()=>O,Um:()=>T,Wi:()=>s,ZT:()=>V,bN:()=>S,bY:()=>ee,g0:()=>b,h3:()=>K,hr:()=>W,k3:()=>B,ku:()=>k});var g,o=l(7572),c=l(6492),I=l(4270),C=l(6738),f=l(2718),a=l(1828),p=function(G,q){return(0,a.$K)(G)?G:q},s=function(G,q){var Z=new I.BH,X=q||this,M={promise:Z.promise(),abort:function(){clearTimeout(ge),Z.rejectWith(X)}},se=function(){var De=G.call(X);De&&De.done&&(0,a.mf)(De.done)?De.done(function(){Z.resolveWith(X)}):Z.resolveWith(X)},ge=(arguments[2]||setTimeout)(se,"number"==typeof q?q:0);return M},u=[],d=[],h=[],x=function(G,q,Z){if(g&&g!==G)return u.push(q),d.push(G),Z=Z||new I.BH,h.push(Z),Z;var X=g,M=h.length;g=G;var se=q();return se||(h.length>M?se=I.gx.apply(this,h.slice(M)):Z&&Z.resolve()),g=X,Z&&se&&se.done&&se.done(Z.resolve).fail(Z.reject),!g&&u.length&&("render"===d.shift()?b:y)(u.shift(),h.shift()),se||(0,I.gx)()},b=function(G,q){return x("render",G,q)},y=function(G,q){return x("update",G,q)},E=function(G){return function(){var q=this;return x("render",function(){return G.call(q)})}},S=function(G){return function(){var q=this;return x("update",function(){return G.call(q)})}},O=function(G,q,Z){var X=[],M=0;return(0,f.S6)(q,(se,ge)=>{var De=0,Fe=Z?Z(ge):ge;(0,f.S6)(G,(Ae,ne)=>{var fe=Fe[Ae];if(void 0!==fe)return w(fe,ne)?void De++:(De=-1,!1)}),!(De<M)&&(De>M&&(X.length=0,M=De),X.push(ge))}),X},w=function(G,q){if(Array.isArray(G)&&Array.isArray(q)){var Z=!1;return(0,f.S6)(G,(X,M)=>{if(M!==q[X])return Z=!0,!1}),!Z}return G===q},T=function(G){var q,Z;switch((0,a.dt)(G)){case"string":return G.split(/\s+/,2);case"object":return[null!==(q=G.x)&&void 0!==q?q:G.h,null!==(Z=G.y)&&void 0!==Z?Z:G.v];case"number":return[G];case"array":return G;default:return null}},k=function(G){var q=(0,a.HD)(G)?G:G.toString(),Z=q.match(/[^a-zA-Z0-9_]/g);return Z&&(0,f.S6)(Z,(X,M)=>{q=q.replace(M,"__"+M.charCodeAt()+"__")}),q},P=function(G,q){var Z=T(G),X=q?parseFloat(Z&&Z[0]):parseInt(Z&&Z[0],10),M=q?parseFloat(Z&&Z[1]):parseInt(Z&&Z[1],10);return isFinite(X)||(X=0),isFinite(M)||(M=X),{h:X,v:M}},B=function(G){if(G instanceof c.Z)return G.toString();if((0,a.Kn)(G)||Array.isArray(G))try{var q=JSON.stringify(G);return"{}"===q?G:q}catch{return G}return G},W=function(G){return G.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},N=function(G){var q=(0,o.Z)().serverDecimalSeparator;return(0,a.$K)(G)&&(G=G.toString().replace(".",q)),G},V=function(){},U=function(){return(new I.BH).resolve().promise()},K=function(G,q,Z){for(var X=[],se=!Z,ge=0;ge<G.length;ge++)!!q(G[ge],ge)===se&&X.push(G[ge]);return X},Y=function(G,q,Z){if(G.length!==q.length)return!1;for(var X=0;X<G.length;X++)if(!ee(G[X],q[X],Z+1))return!1;return!0},J=function(G,q,Z,X){for(var M in G)if(Object.prototype.hasOwnProperty.call(G,M)&&!ee(G[M],q[M],Z+1,X))return!1;for(var se in q)if(!(se in G))return!1;return!0},ee=function(G,q){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,X=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];G=(0,C.Ex)(G,!0),q=(0,C.Ex)(q,!0);var M=X?G===q:G==q;return!!(M||Z>=3)||((0,a.Kn)(G)&&(0,a.Kn)(q)?J(G,q,Z,X):!(!Array.isArray(G)||!Array.isArray(q))&&Y(G,q,Z))}},3425:(kn,he,l)=>{"use strict";l.d(he,{f:()=>f});var o=l(9897),c=l(6738),I=l(1828),f=function(a,p){return a=(0,c.Ex)(a,!0),p=(0,c.Ex)(p,!0),a&&p&&(0,I.ZU)(a)&&(0,I.ZU)(p)?p.is(a):!(a==a||p==p)||(0===a&&0===p?function(a,p){return 1/a==1/p}(a,p):!(null!==a&&"object"==typeof a&&!o.Z.isElementNode(a))&&a===p)}},2160:(kn,he,l)=>{"use strict";l.d(he,{k:()=>C});var o=l(1828),c=function(){},I=function(a){return typeof console>"u"||!(0,o.mf)(console[a])?c:console[a].bind(console)},C={info:I("info"),warn:I("warn"),error:I("error")}},6738:(kn,he,l)=>{"use strict";l.d(he,{Ex:()=>T,OM:()=>w,Zw:()=>h,vb:()=>E});var o=l(9644),c=l(5031),I=l(2834),C=l(1828),f=l(2718),a=l(9963),p=a.Z.unwrap,s=a.Z.isWrapped,u=a.Z.assign,h=function(k){return function(k){return k.replace(/\[/g,".").replace(/\]/g,"")}(k).split(".")},x=function(k,R,P,B){if("this"===R)throw new o.Z.Error("E4016");var W=k[R];B.unwrapObservables&&s(W)?u(W,P):k[R]=P},b=function(k){return(k=k||{}).unwrapObservables=void 0===k.unwrapObservables||k.unwrapObservables,k};function y(k,R){return R.unwrapObservables?p(k):k}var E=function(k){if(arguments.length>1&&(k=[].slice.call(arguments)),!k||"this"===k)return function(P){return P};if("string"==typeof k){var R=h(k);return function(P,B){for(var W=(B=b(B)).functionsAsIs,N=("defaultValue"in B),V=y(P,B),U=0;U<R.length;U++){if(!V){if(null==V&&N)return B.defaultValue;break}var K=R[U];if(N&&(0,C.Kn)(V)&&!(K in V))return B.defaultValue;var Y=y(V[K],B);!W&&(0,C.mf)(Y)&&(Y=Y.call(V)),V=Y}return V}}return Array.isArray(k)?S(k):(0,C.mf)(k)?k:void 0};function S(k){for(var R={},P=0,B=k.length;P<B;P++){var W=k[P];R[W]=E(W)}return function(N,V){var U;return(0,f.S6)(R,function(K){var Y=this(N,V);if(void 0!==Y){for(var J=U||(U={}),j=K.split("."),ee=j.length-1,G=0;G<ee;G++){var q=j[G];q in J||(J[q]={}),J=J[q]}J[j[ee]]=Y}}),U}}var O=function(k,R,P,B){if((0,C.$K)(P))return P;var W={};return x(k,R,W,B),W},w=function(k){var R=(k=h(k||"this")).length-1;return function(P,B,W){var N=y(P,W=b(W));k.forEach(function(V,U){var K=function(k,R,P){return y("this"===R?k:k[R],P=P||{})}(N,V,W),Y=!W.functionsAsIs&&(0,C.mf)(K)&&!s(K);U===R?W.merge&&(0,C.PO)(B)&&(!(0,C.$K)(K)||(0,C.PO)(K))?(K=O(N,V,K,W),(0,I.HR)(K,B,!1,!0)):Y?N[V](B):x(N,V,B,W):(K=O(N,V,K,W),Y&&(K=K.call(N)),N=K)})}},T=function(k,R){return k instanceof Date?k.getTime():k&&k instanceof c.Z&&k.valueOf?k.valueOf():R||"string"!=typeof k?k:k.toLowerCase()}},8204:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>St});var o=l(1828),c=l(3487),I=l(2718),C=l(7981),f={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,quarter:7776e6,year:31536e6};function a(Ct){return f[Ct]}var h=["millisecond","second","minute","hour","day","week","month","quarter","year"],b=function(Ct){var Rt,fn,ct,He=["millisecond","second","minute","hour","day","month","year"],Dt={};for(Rt=He.length-1;Rt>=0;Rt--)ct=He[Rt],(fn=Math.floor(Ct/a(ct)))>0&&(Dt[ct+"s"]=fn,Ct-=E(ct,fn));return Dt};function E(Ct,Rt){return a(Ct)*Rt}function S(Ct){var fn,Rt=-1;return(0,o.HD)(Ct)?Ct:(0,o.Kn)(Ct)?((0,I.S6)(Ct,function(ct,He){for(fn=0;fn<h.length;fn++)He&&(ct===h[fn]+"s"||ct===h[fn])&&Rt<fn&&(Rt=fn)}),h[Rt]):""}var O={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},T=function(Ct){return Math.floor(Ct/3)},k=function(Ct){return 3*T(Ct)};function R(Ct,Rt,fn,ct){Ct=new Date(Ct.getTime());var Dt,qe,He=new Date(Ct.getTime()),Ht=S(Rt);switch(Ht){case"second":Ct=new Date(1e3*Math.floor(He.getTime()/1e3));break;case"minute":Ct=new Date(6e4*Math.floor(He.getTime()/6e4));break;case"hour":Ct=new Date(36e5*Math.floor(He.getTime()/36e5));break;case"year":Ct.setMonth(0);case"month":Ct.setDate(1);case"day":Ct.setHours(0,0,0,0);break;case"week":(Ct=pe(Ct,ct||0)).setHours(0,0,0,0);break;case"quarter":Dt=k(Ct.getMonth()),qe=Ct.getMonth(),Ct.setDate(1),Ct.setHours(0,0,0,0),qe!==Dt&&Ct.setMonth(Dt)}return fn&&"hour"!==Ht&&"minute"!==Ht&&"second"!==Ht&&nn(He,Ct),Ct}function P(Ct){return R(Ct,"day")}function N(Ct,Rt,fn){var ct=new Date(Ct.getTime()),He=(0,o.HD)(Rt)?M(Rt.toLowerCase()):(0,o.kE)(Rt)?b(Rt):Rt;return He.years&&ct.setFullYear(ct.getFullYear()+He.years*fn),He.quarters&&ct.setMonth(ct.getMonth()+3*He.quarters*fn),He.months&&ct.setMonth(ct.getMonth()+He.months*fn),He.weeks&&ct.setDate(ct.getDate()+7*He.weeks*fn),He.days&&ct.setDate(ct.getDate()+He.days*fn),He.hours&&ct.setTime(ct.getTime()+36e5*He.hours*fn),He.minutes&&ct.setTime(ct.getTime()+6e4*He.minutes*fn),He.seconds&&ct.setTime(ct.getTime()+1e3*He.seconds*fn),He.milliseconds&&ct.setTime(ct.getTime()+He.milliseconds*fn),ct}var V=function(Ct,Rt,fn){var ct=fn?-1:1;return(0,o.J_)(Ct)?N(Ct,Rt,ct):(0,c.zB)(Ct+Rt*ct,Rt)};function ee(Ct){return Te(Ct.getFullYear(),Ct.getMonth()+1,0).getDate()}function M(Ct){var Rt={};switch(Ct){case"year":Rt.years=1;break;case"month":Rt.months=1;break;case"quarter":Rt.months=3;break;case"week":Rt.weeks=1;break;case"day":Rt.days=1;break;case"hour":Rt.hours=1;break;case"minute":Rt.minutes=1;break;case"second":Rt.seconds=1;break;case"millisecond":Rt.milliseconds=1}return Rt}function ge(Ct,Rt){return De(Ct,Rt)&&Ct.getMonth()===Rt.getMonth()}function De(Ct,Rt){return Ct&&Rt&&Ct.getFullYear()===Rt.getFullYear()}function fe(Ct){return Ct&&Ct.getFullYear()-Ct.getFullYear()%100}function _e(Ct){return Ct&&Ct.getFullYear()-Ct.getFullYear()%10}function pe(Ct,Rt){var fn=(Ct.getDay()-Rt+7)%7,ct=new Date(Ct);return ct.setDate(Ct.getDate()-fn),ct}function Ee(Ct){return Date.UTC(Ct.getFullYear(),Ct.getMonth(),Ct.getDate())}function te(Ct){return new Date(Ct,0,1)}function re(Ct){return new Date(Ct,11,31)}function oe(Ct,Rt){var fn=Ct.getDay()-Rt+1;return fn<=0&&(fn+=7),fn}function mt(Ct,Rt,fn){var ct=Ct;return(0,o.$K)(Ct)?((0,o.$K)(Rt)&&Ct<Rt&&(ct=Rt),(0,o.$K)(fn)&&Ct>fn&&(ct=fn),ct):Ct}function nn(Ct,Rt){if((0,o.$K)(Ct)){var fn=Rt.getHours()-Ct.getHours();if(0!==fn){var ct=1===fn||-23===fn?-1:1,He=new Date(Rt.getTime()+36e5*ct);(ct>0||He.getDate()===Rt.getDate())&&Rt.setTime(He.getTime())}}}function $e(Ct,Rt){return 60*(Rt.getTimezoneOffset()-Ct.getTimezoneOffset())*1e3}var Te=function(Ct){var Rt=new Date(...arguments);return Rt.setFullYear(Ct),Rt},Ye={dateUnitIntervals:h,convertMillisecondsToDateUnits:b,dateToMilliseconds:function(Ct){var Rt=0;return(0,o.Kn)(Ct)&&(0,I.S6)(Ct,function(fn,ct){Rt+=E(fn.substr(0,fn.length-1),ct)}),(0,o.HD)(Ct)&&(Rt=E(Ct,1)),Rt},getNextDateUnit:function(Ct,Rt){switch(S(Ct)){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return Rt?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":case"year":return"year";default:return 0}},convertDateUnitToMilliseconds:E,getDateUnitInterval:S,getDateFormatByTickInterval:function w(Ct){return O[S(Ct)]||""},getDatesDifferences:function(Ct,Rt){var fn=0,ct={year:Ct.getFullYear()!==Rt.getFullYear(),month:Ct.getMonth()!==Rt.getMonth(),day:Ct.getDate()!==Rt.getDate(),hour:Ct.getHours()!==Rt.getHours(),minute:Ct.getMinutes()!==Rt.getMinutes(),second:Ct.getSeconds()!==Rt.getSeconds(),millisecond:Ct.getMilliseconds()!==Rt.getMilliseconds()};return(0,I.S6)(ct,function(He,Dt){Dt&&fn++}),0===fn&&0!==$e(Ct,Rt)&&(ct.hour=!0,fn++),ct.count=fn,ct},correctDateWithUnitBeginning:R,trimTime:P,setToDayEnd:function(Ct){var Rt=P(Ct);return Rt.setDate(Rt.getDate()+1),new Date(Rt.getTime()-1)},roundDateByStartDayHour:function(Ct,Rt){var fn=this.dateTimeFromDecimal(Rt),ct=new Date(Ct);return(Ct.getHours()===fn.hours&&Ct.getMinutes()<fn.minutes||Ct.getHours()<fn.hours)&&ct.setHours(fn.hours,fn.minutes,0,0),ct},dateTimeFromDecimal:function(Ct){return{hours:Math.floor(Ct),minutes:Ct%1*60}},addDateInterval:N,addInterval:V,getSequenceByInterval:function(Ct,Rt,fn){var He,ct=[];for(ct.push((0,o.J_)(Ct)?new Date(Ct.getTime()):Ct),He=Ct;He<Rt;)He=V(He,fn),ct.push(He);return ct},getDateIntervalByString:M,sameHoursAndMinutes:function Fe(Ct,Rt){return Ct&&Rt&&Ct.getHours()===Rt.getHours()&&Ct.getMinutes()===Rt.getMinutes()},sameDate:function se(Ct,Rt){return ge(Ct,Rt)&&Ct.getDate()===Rt.getDate()},sameMonthAndYear:ge,sameMonth:ge,sameYear:De,sameDecade:function(Ct,Rt){if((0,o.$K)(Ct)&&(0,o.$K)(Rt)){var fn=Ct.getFullYear()-Ct.getFullYear()%10,ct=Rt.getFullYear()-Rt.getFullYear()%10;return Ct&&Rt&&fn===ct}},sameCentury:function(Ct,Rt){if((0,o.$K)(Ct)&&(0,o.$K)(Rt)){var fn=Ct.getFullYear()-Ct.getFullYear()%100,ct=Rt.getFullYear()-Rt.getFullYear()%100;return Ct&&Rt&&fn===ct}},getDifferenceInMonth:function(Ct){var Rt=1;return"year"===Ct&&(Rt=12),"decade"===Ct&&(Rt=120),"century"===Ct&&(Rt=1200),Rt},getDifferenceInMonthForCells:function(Ct){var Rt=1;return"decade"===Ct&&(Rt=12),"century"===Ct&&(Rt=120),Rt},getFirstYearInDecade:_e,getFirstDecadeInCentury:fe,getShortDateFormat:function(){return"yyyy/MM/dd"},getViewFirstCellDate:function(Ct,Rt){return"month"===Ct?Te(Rt.getFullYear(),Rt.getMonth(),1):"year"===Ct?Te(Rt.getFullYear(),0,Rt.getDate()):"decade"===Ct?Te(_e(Rt),Rt.getMonth(),Rt.getDate()):"century"===Ct?Te(fe(Rt),Rt.getMonth(),Rt.getDate()):void 0},getViewLastCellDate:function(Ct,Rt){return"month"===Ct?Te(Rt.getFullYear(),Rt.getMonth(),ee(Rt)):"year"===Ct?Te(Rt.getFullYear(),11,Rt.getDate()):"decade"===Ct?Te(_e(Rt)+9,Rt.getMonth(),Rt.getDate()):"century"===Ct?Te(fe(Rt)+90,Rt.getMonth(),Rt.getDate()):void 0},getViewDown:function(Ct){switch(Ct){case"century":return"decade";case"decade":return"year";case"year":return"month"}},getViewUp:function(Ct){switch(Ct){case"month":return"year";case"year":return"decade";case"decade":return"century"}},getLastMonthDay:ee,getLastMonthDate:function(Ct){if((0,o.$K)(Ct))return Te(Ct.getFullYear(),Ct.getMonth()+1,0)},getFirstMonthDate:function(Ct){if((0,o.$K)(Ct))return Te(Ct.getFullYear(),Ct.getMonth(),1)},getFirstWeekDate:pe,getWeekNumber:function ye(Ct,Rt,fn){var ct=oe(te(Ct.getFullYear()),Rt),He=oe(re(Ct.getFullYear()),Rt),Dt=7-ct+1,qe=Math.ceil((function ae(Ct){var Rt=Ee(Ct)-Ee(te(Ct.getFullYear()));return 1+Math.floor(Rt/a("day"))}(Ct)-Dt)/7);switch(fn){case"fullWeek":return 7===Dt&&qe++,0===qe?ye(re(Ct.getFullYear()-1),Rt,fn):qe;case"firstDay":return Dt>0&&qe++,(qe>52&&!(7===ct||7===He)||54===qe)&&(qe=1),qe;case"firstFourDays":return Dt>3&&qe++,qe>52&&!(4===ct||4===He)&&(qe=1),0===qe?ye(re(Ct.getFullYear()-1),Rt,fn):qe}},normalizeDateByWeek:function(Ct,Rt){var fn=Ye.getDatesInterval(Ct,Rt,"day"),ct=new Date(Ct);return fn>=6&&(ct=new Date(ct.setDate(ct.getDate()+7))),ct},getQuarter:T,getFirstQuarterMonth:k,dateInRange:function(Ct,Rt,fn,ct){return"date"===ct&&(Rt=Rt&&Ye.correctDateWithUnitBeginning(Rt,"day"),fn=fn&&Ye.correctDateWithUnitBeginning(fn,"day"),Ct=Ct&&Ye.correctDateWithUnitBeginning(Ct,"day")),mt(Ct,Rt,fn)===Ct},intervalsOverlap:function(Ct){var{firstMin:Rt,firstMax:fn,secondMin:ct,secondMax:He}=Ct;return Rt<=ct&&ct<=fn||Rt>ct&&Rt<He||Rt<He&&fn>He},roundToHour:function(Ct){var Rt=new Date(Ct.getTime());return Rt.setHours(Rt.getHours()+1),Rt.setMinutes(0),Rt},normalizeDate:mt,getViewMinBoundaryDate:function(Ct,Rt){var fn=Te(Rt.getFullYear(),Rt.getMonth(),1);return"month"===Ct||(fn.setMonth(0),"year"===Ct)||("decade"===Ct&&fn.setFullYear(_e(Rt)),"century"===Ct&&fn.setFullYear(fe(Rt))),fn},getViewMaxBoundaryDate:function(Ct,Rt){var fn=new Date(Rt);return fn.setDate(ee(Rt)),"month"===Ct||(fn.setMonth(11),fn.setDate(ee(fn)),"year"===Ct)||("decade"===Ct&&fn.setFullYear(_e(Rt)+9),"century"===Ct&&fn.setFullYear(fe(Rt)+99)),fn},fixTimezoneGap:nn,getTimezonesDifference:$e,makeDate:function(Ct){return new Date(Ct)},getDatesInterval:function(Ct,Rt,fn){var ct=Rt.getTime()-Ct.getTime(),He=a(fn)||1;return Math.floor(ct/He)},getDatesOfInterval:function(Ct,Rt,fn){for(var ct=[],He=new Date(Ct.getTime());He<Rt;)ct.push(new Date(He.getTime())),He=this.addInterval(He,fn);return ct},createDateWithFullYear:Te,sameView:function(Ct,Rt,fn){return Ye[(0,C._A)("same "+Ct)](Rt,fn)}};const St=Ye},8492:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>k});var o=l(7572),c=l(2204),I=l(4943),C=l(1828),f="number",a="yyyy/MM/dd",s=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,u=/^(\d{2}):(\d{2})(:(\d{2}))?$/,d=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],h=/^(\d{4})\/(\d{2})\/(\d{2})$/,x=function(R,P){var B;return(0,C.HD)(R)&&!P&&(B=function E(R){var P=R.match(s);if(!P)return(P=R.match(u))?new Date(0,0,0,b(P[1]),b(P[2]),b(P[4])):void 0;var B=b(P[1]),W=--P[3],N=P[5],V=0,U=0;V=b(P[14]),U=b(P[16]),"-"===P[13]&&(V=-V,U=-U);var G,Y=b(P[6])-V,J=b(P[8])-U,j=b(P[10]),ee=b(G=(G=P[11])||"")*Math.pow(10,3-G.length);return(G=>(B<100&&G.setFullYear(B),G))(P[12]?new Date(Date.UTC(B,W,N,Y,J,j,ee)):new Date(B,W,N,Y,J,j,ee))}(R)),B||function y(R){var P=T(R)===a,B=!(0,C.J_)(R)&&Date.parse(R);if(!B&&P){var W=R.match(h);if(W){var N=new Date(b(W[1]),b(W[2]),b(W[3]));return N.setFullYear(b(W[1])),N.setMonth(b(W[2])-1),N.setDate(b(W[3])),N}}return(0,C.kE)(B)?new Date(B):R}(R)};function b(R){return+R||0}var T=function(R){return"number"==typeof R?f:(0,C.HD)(R)?((0,o.Z)().forceIsoDateParsing&&(P=function(R,P){var B=R.match(s),W="";if(!B)return(B=R.match(u))?B[3]?"HH:mm:ss":"HH:mm":void 0;for(var N=1;N<d.length;N++)B[N]&&(W+=d[N]||B[N]);return"Z"===B[12]&&(W+="'Z'"),B[14]&&(W+=B[15]?"xxx":B[16]?"xx":"x"),W}(R)),P||(R.indexOf(":")>=0?"yyyy/MM/dd HH:mm:ss":a)):R?null:void 0;var P};const k={dateParser:x,deserializeDate:function(R){return"number"==typeof R?new Date(R):x(R,!(0,o.Z)().forceIsoDateParsing)},serializeDate:function(R,P){return P?(0,C.J_)(R)?P===f?R&&R.valueOf?R.valueOf():null:(0,c.P)(P,I.Z)(R):null:R},getDateSerializationFormat:T}},4270:(kn,he,l)=>{"use strict";l.d(he,{BH:()=>u,gx:()=>d,p4:()=>a});var o=l(1828),c=l(5873),I=l(5365),C=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],f=function(){var h=this;this._state="pending",this._promise={},C.forEach(function(g){var x=g.method;this[x+"Callbacks"]=(0,I.Z)(),this[x]=function(){return this[x+"With"](this._promise,arguments)}.bind(this),this._promise[g.handler]=function(b){if(!b)return this;var y=h[x+"Callbacks"];return y.fired()?b.apply(h[x+"Context"],h[x+"Args"]):y.add(function(E,S){b.apply(E,S)}.bind(this)),this}}.bind(this)),this._promise.always=function(g){return this.done(g).fail(g)},this._promise.catch=function(g){return this.then(null,g)},this._promise.then=function(g,x){var b=new f;return["done","fail"].forEach(function(y){var E="done"===y?g:x;this[y](function(){if(E){var S=E&&E.apply(this,arguments);(0,o.EY)(S)?S.done(b.resolve).fail(b.reject):(0,o.tI)(S)?S.then(b.resolve,b.reject):b.resolve.apply(this,(0,o.$K)(S)?[S]:arguments)}else b["done"===y?"resolve":"reject"].apply(this,arguments)})}.bind(this)),b.promise()},this._promise.state=function(){return h._state},this._promise.promise=function(g){return g?(0,c.l)(g,h._promise):h._promise},this._promise.promise(this)};function a(h,g){if((0,o.EY)(h))return h;if((0,o.tI)(h)){var x=new f;return h.then(function(){x.resolveWith.apply(x,[g].concat([[].slice.call(arguments)]))},function(){x.rejectWith.apply(x,[g].concat([[].slice.call(arguments)]))}),x}return(new f).resolveWith(g,[h])}C.forEach(function(h){var g=h.method,x=h.state;f.prototype[g+"With"]=function(b,y){var E=this[g+"Callbacks"];return"pending"===this.state()&&(this[g+"Args"]=y,this[g+"Context"]=b,x&&(this._state=x),E.fire(b,y)),this}});var p=function(){if(1===arguments.length)return a(arguments[0]);for(var h=[].slice.call(arguments),g=[],x=0,b=new f,y=function(S){return function(O){g[S]=this,h[S]=arguments.length>1?[].slice.call(arguments):O,++x===h.length&&b.resolveWith(g,h)}},E=0;E<h.length;E++)(0,o.EY)(h[E])?h[E].promise().done(y(E)).fail(b.reject):x++;return x===h.length&&b.resolveWith(g,h),b.promise()};function u(){return new f}function d(){return p.apply(this,arguments)}},2793:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>f});var o=l(5873),c=l(1828),I=l(2718),C=l(5031);function f(a){var p=C.Z.inherit(a),s=p,u=new s(a),d={},h=function(g,x){(0,I.S6)(g,function(b){(0,c.mf)(u[b])?(x||!a[b])&&(a[b]=function(){return u[b].apply(a,arguments)}):(x&&(d[b]=a[b]),a[b]=u[b])})};return h(a,!0),a.inject=function(g){s=s.inherit(g),u=new s,h(g)},a.resetInjection=function(){(0,o.l)(a,d),s=p,u=new p},a}},6520:(kn,he,l)=>{"use strict";l.d(he,{H_:()=>h,Li:()=>d,Ls:()=>u,M3:()=>p,MO:()=>s,Zx:()=>g,al:()=>S,dL:()=>E,l5:()=>b,r3:()=>x});var o=l(9897),c=l(9904),I=l(2718),C=l(1828),f=l(4514),a=(0,f.Jj)(),p=()=>{var w,O=o.Z.getActiveElement();O&&O!==o.Z.getBody()&&(null===(w=O.blur)||void 0===w||w.call(O))},s=()=>{var O=a.getSelection();if(O&&"Caret"!==O.type)if(O.empty)O.empty();else if(O.removeAllRanges)try{O.removeAllRanges()}catch{}},u=(O,w)=>{var T=(0,c.Z)(O),k=(0,c.Z)(w);if(T[0]===k[0])return T[0];for(var R=T.parents(),P=k.parents(),W=-Math.min(R.length,P.length);W<0;W++)if(R.get(W)===P.get(W))return R.get(W)},d=O=>{var w=(O=(0,c.Z)(O)).length&&O.filter(function(){var T=(0,c.Z)(this);return T.is("script[type]")&&T.attr("type").indexOf("script")<0});return w.length?w.eq(0).html():(O=(0,c.Z)("<div>").append(O)).html()},h=O=>{var w=(0,C.$K)(O)&&(O.nodeType||(0,C.ZU)(O))?(0,c.Z)(O):(0,c.Z)("<div>").html(O).contents();return 1===w.length&&(w.is("script")?w=h(w.html().trim()):w.is("table")&&(w=w.children("tbody").contents())),w},g=(O,w)=>{var T=O.originalEvent&&O.originalEvent.clipboardData||a.clipboardData;if(!w)return T&&T.getData("Text");T&&T.setData("Text",w)},x=(O,w)=>!!w&&(o.Z.isTextNode(w)&&(w=w.parentNode),o.Z.isDocument(O)?O.documentElement.contains(w):(0,C.FJ)(O)?x(O.document,w):O.contains?O.contains(w):!!(w.compareDocumentPosition(O)&w.DOCUMENT_POSITION_CONTAINS)),b=(O,w,T)=>{var k=a.getComputedStyle((0,c.Z)(O).get(0)),R=T&&T.includePaddings;return(0,c.Z)("<div>").text(w).css({fontStyle:k.fontStyle,fontVariant:k.fontVariant,fontWeight:k.fontWeight,fontSize:k.fontSize,fontFamily:k.fontFamily,letterSpacing:k.letterSpacing,border:k.border,paddingTop:R?k.paddingTop:"",paddingRight:R?k.paddingRight:"",paddingBottom:R?k.paddingBottom:"",paddingLeft:R?k.paddingLeft:"",visibility:"hidden",whiteSpace:"pre",position:"absolute",float:"left"})},E=(O,w)=>{if(w&&w[0])return w.is(O)?O:((0,I.S6)(w,(T,k)=>{((O,w)=>{w&&o.Z.insertElement(O.parentNode,w,O)})(O[0],k)}),O.remove(),w)},S=O=>{var w=O?.get(0),T=w?.getRootNode().host;return!!(0,c.Z)(T||w).closest((0,f.Jj)().document).length}},9389:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>a});var o=l(5873),c=l(2160),I=l(9589),f="http://js.devexpress.com/error/"+l(2805).i.split(".").slice(0,2).join("_")+"/";function a(p,s){var u={ERROR_MESSAGES:(0,o.l)(s,p),Error:function(){return x([].slice.call(arguments))},log:function(y){var E="log";/^E\d+$/.test(y)?E="error":/^W\d+$/.test(y)&&(E="warn"),c.k[E]("log"===E?y:d([].slice.call(arguments)))}};function d(y){var E=y[0];return g(E,h(E,y=y.slice(1)))}function h(y,E){return E=[u.ERROR_MESSAGES[y]].concat(E),I.WU.apply(this,E).replace(/\.*\s*?$/,"")}function g(y,E){return I.WU.apply(this,["{0} - {1}. See:\n{2}",y,E,b(y)])}function x(y){var E=y[0],S=h(E,y=y.slice(1)),O=b(E),w=g(E,S);return(0,o.l)(new Error(w),{__id:E,__details:S,url:O})}function b(y){return f+y}return u}},5873:(kn,he,l)=>{"use strict";l.d(he,{l:()=>I,x:()=>c});var o=l(1828),c=function(C,f,a){for(var p in C=C||{},f)Object.prototype.hasOwnProperty.call(f,p)&&(!(p in C)||a)&&(C[p]=f[p]);return C},I=function C(f){var a=1,p=!1;for("boolean"==typeof(f=f||{})&&(p=f,f=arguments[1]||{},a++);a<arguments.length;a++){var s=arguments[a];if(null!=s)for(var u in s){var d=f[u],h=s[u],g=!1,x=void 0;"__proto__"===u||"constructor"===u||f===h||(p&&h&&((0,o.PO)(h)||(g=Array.isArray(h)))?(x=g?d&&Array.isArray(d)?d:[]:d&&(0,o.PO)(d)?d:{},f[u]=C(p,x,h)):void 0!==h&&(f[u]=h))}}return f}},2819:(kn,he,l)=>{"use strict";l.d(he,{N:()=>f,r:()=>C});var o=l(9897),c=/<([a-z][^/\0>\x20\t\r\n\f]+)/i,I={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>"}};I.tbody=I.colgroup=I.caption=I.tfoot=I.thead,I.th=I.td;var C=function(a){if("string"!=typeof a)return null;var s=o.Z.createDocumentFragment().appendChild(o.Z.createElement("div")),u=c.exec(a),d=u&&u[1].toLowerCase(),h=I[d]||I.default;s.innerHTML=h.startTags+a+h.endTags;for(var g=0;g<h.tagsCount;g++)s=s.lastChild;return[...s.childNodes]},f=function(a){var p=c.exec(a);return p&&p[1]in I}},4328:(kn,he,l)=>{"use strict";l.d(he,{H:()=>f,P:()=>C});var o=l(9904),c="dx-icon",C=a=>!(!a||"string"!=typeof a)&&(/^\s*<svg[^>]*>(.|\r?\n)*?<\/svg>\s*$/i.test(a)?"svg":/data:.*base64|\.|[^<\s]\/{1,1}/.test(a)?"image":/^[\w-_]+$/.test(a)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(a)&&"fontIcon"),f=a=>{switch(C(a)){case"image":return(0,o.Z)("<img>").attr("src",a).addClass(c);case"fontIcon":return(0,o.Z)("<i>").addClass("".concat(c," ").concat(a));case"dxIcon":return(0,o.Z)("<i>").addClass("".concat(c," ").concat(c,"-").concat(a));case"svg":return(0,o.Z)("<i>").addClass("".concat(c," ").concat("dx-svg-icon")).append(a);default:return null}}},7981:(kn,he,l)=>{"use strict";l.d(he,{GK:()=>h,H0:()=>f,MI:()=>u,OI:()=>s,_A:()=>p});var o=l(2718),c=function(g){return null==g?"":String(g)},I=function(g){return c(g).charAt(0).toUpperCase()+g.substr(1)},C=function(g){return c(g).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},f=function(g){return(0,o.UI)(C(g),function(x){return x.toLowerCase()}).join("-")},p=function(g,x){return(0,o.UI)(C(g),function(b,y){return b=b.toLowerCase(),(x||y>0)&&(b=I(b)),b}).join("")},s=function(g){return I(f(g).replace(/-/g," "))},u=function(g){return(0,o.UI)(C(g),function(x){return I(x.toLowerCase())}).join(" ")},d=["0","1","2","3","4","5","6","7","8","9"],h=function(g){var b,y,x=[],E=!1,S=!1;for(b=0;b<g.length;b++)S=(y=g.charAt(b))===y.toUpperCase()&&"-"!==y&&")"!==y&&"/"!==y||y in d,"_"===y||"."===y?(y=" ",S=!0):0===b?(y=y.toUpperCase(),S=!0):!E&&S&&x.length>0&&x.push(" "),x.push(y),E=S;return x.join("")}},2718:(kn,he,l)=>{"use strict";l.d(he,{S6:()=>c,UI:()=>o,iY:()=>I});var o=(C,f)=>{if(Array.isArray(C))return C.map(f);var a=[];for(var p in C)a.push(f(C[p],p));return a},c=(C,f)=>{if(C){if("length"in C)for(var a=0;a<C.length&&!1!==f.call(C[a],a,C[a]);a++);else for(var p in C)if(!1===f.call(C[p],p,C[p]))break;return C}},I=(C,f)=>{if(C&&"length"in C&&0!==C.length)for(var a=C.length-1;a>=0&&!1!==f.call(C[a],a,C[a]);a--);}},3487:(kn,he,l)=>{"use strict";l.d(he,{LO:()=>g,Ow:()=>p,RF:()=>x,Xx:()=>c,Z2:()=>C,dG:()=>f,lb:()=>b,n$:()=>I,p8:()=>d,y6:()=>E,zB:()=>u,zP:()=>y});var o=l(1828),c=function(S){return 0===S?0:S/Math.abs(S)},I=function(S,O,w){var T=!O&&0!==O,k=!w&&0!==w;return T&&(O=k?S:Math.min(S,w)),k&&(w=T?S:Math.max(S,O)),Math.min(Math.max(S,O),w)},C=function(S,O,w){return S>=O&&S<=w};function f(S){return Math.abs(parseInt(S.toExponential().split("e")[1]))}function p(S,O){var w=function a(S){var O=S.toExponential().split("e"),w=parseFloat(O[0]);return{exponent:parseInt(O[1]),mantissa:w}}(S);return parseFloat("".concat(w.mantissa,"e").concat(w.exponent+O))}function u(S,O){var P,w=d(O||0)+2,T=S.toString().split("."),k=S,R=Math.abs(S),B=(0,o.Cp)(S),W=R>1?10:0;return 1===T.length?S:(B||((0,o.Cp)(O)&&(w=T[0].length+f(O)),S=(S=R)-Math.floor(S)+W),w=function s(){return"0.000300"!==3e-4.toPrecision(3)}()&&f(S)>6||w>7?15:7,B||(P=parseFloat(S.toPrecision(w)).toString().split("."))[0]!==W.toString()?parseFloat(k.toPrecision(w)):parseFloat(T[0]+"."+P[1]))}function d(S){var O=S.toString();if(O.indexOf(".")<0)return 0;var w=O.split("."),T=w[1].indexOf("e");return T>=0?T:w[1].length}function h(S,O){if(S<0&&O%2!=1)return NaN;var w=Math.pow(Math.abs(S),1/O);return O%2==1&&S<0?-w:w}function g(S,O,w,T){if(Math.abs(S)<1e-8){if(S=O,O=w,w=T,Math.abs(S)<1e-8)return S=O,O=w,Math.abs(S)<1e-8?[]:[-O/S];var k=O*O-4*S*w;return Math.abs(k)<1e-8?[-O/(2*S)]:k>0?[(-O+Math.sqrt(k))/(2*S),(-O-Math.sqrt(k))/(2*S)]:[]}var B,W,R=(3*S*w-O*O)/(3*S*S),P=(2*O*O*O-9*S*O*w+27*S*S*T)/(27*S*S*S);if(Math.abs(R)<1e-8)B=[h(-P,3)];else if(Math.abs(P)<1e-8)B=[0].concat(R<0?[Math.sqrt(-R),-Math.sqrt(-R)]:[]);else{var N=P*P/4+R*R*R/27;if(Math.abs(N)<1e-8)B=[-1.5*P/R,3*P/R];else if(N>0)B=[(W=h(-P/2-Math.sqrt(N),3))-R/(3*W)];else{W=2*Math.sqrt(-R/3);var V=Math.acos(3*P/R/W)/3,U=2*Math.PI/3;B=[W*Math.cos(V),W*Math.cos(V-U),W*Math.cos(V-2*U)]}}for(var K=0;K<B.length;K++)B[K]-=O/(3*S);return B}function x(S){return Math.trunc?Math.trunc(S):S>0?Math.floor(S):Math.ceil(S)}function b(S,O,w){if(O===parseInt(O))return S%O;var T=E(S/O,w);return(T-parseInt(T))*O}function y(S){var O,w=S.toString();return(null===(O=w.split(".")[1])||void 0===O?void 0:O.length)||parseInt(w.split("e-")[1])||0}function E(S){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return parseFloat(S.toFixed(O))}},2834:(kn,he,l)=>{"use strict";l.d(he,{HR:()=>a,d9:()=>I,jS:()=>C});var o=l(1828),c=l(9963),I=function(){function p(){}return function(s){return p.prototype=s,new p}}(),C=function(p,s){var d,h,u=[];for(d in p)Object.prototype.hasOwnProperty.call(p,d)&&u.push(d);for(u.sort(function(g,x){var b=(0,o.kE)(g),y=(0,o.kE)(x);return b&&y?g-x:b&&!y?-1:!b&&y?1:g<x?-1:g>x?1:0}),h=0;h<u.length;h++)s(d=u[h],p[d])},f=function(p,s,u,d){!d&&c.Z.isWrapped(p[s])?c.Z.assign(p[s],u):p[s]=u},a=function p(s,u,d,h){var g,x;for(var b in u)g=s[b],x=u[b],"__proto__"!==b&&"constructor"!==b&&s!==x&&((0,o.PO)(x)&&(x=p((d?(0,o.Kn)(g):(0,o.PO)(g))?g:{},x,d,h)),void 0!==x&&g!==x&&f(s,b,x,h));return s}},5450:(kn,he,l)=>{"use strict";l.d(he,{l:()=>C,q:()=>I});var o=l(7572),c=l(1828),I=f=>f??(0,o.Z)().rtlEnabled?"right":"left",C=f=>(0,c.FJ)(f)?{width:f.outerWidth,height:f.outerHeight}:f.getBoundingClientRect()},6165:(kn,he,l)=>{"use strict";l.d(he,{Bt:()=>h,nf:()=>d,u2:()=>u});var o=l(5610),c=l(913),I=l(1828),C=l(4416),f="dxComponents",p=new WeakMap,s=0,u=function(g,x){if(!(0,I.$K)(x)){if(!p.has(g)){var b="dxPrivateComponent"+s++;return p.set(g,b),b}return p.get(g)}p.set(g,x)};function d(g,x,b){var y=(0,o.aT)(g.get(0)),E=u(x.constructor);y[E]=x,b&&c.Z.one(g,C.x,function(){b.call(x)}),y[f]||(y[f]=[]),y[f].push(E)}function h(g,x){var b=u(x);return(0,o.aT)(g.get(0),b)}},3068:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>s});var o=l(9897),c=l(2793),I=l(4514),C=l(4304),f=[],a=(0,C.Z)(()=>{var u=o.Z.listen(o.Z.getDocument(),"DOMContentLoaded",()=>{p.fire(),u()})}),p={add:u=>{var d=(0,I.Ym)();d&&"loading"!==o.Z.getReadyState()?u():(f.push(u),d&&a())},fire:()=>{f.forEach(u=>u()),f=[]}};const s=(0,c.Z)(p)},3824:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>p});var o=l(4514),c=l(9897),I=l(5365),C=l(3068),f=l(4304);const p=function(){var s,u=(0,I.Z)(),d=u.add,h=u.remove;if(!(0,o.Ym)())return u;var y,g=function(){var E=(0,o.Jj)();return{width:E.innerWidth,height:E.innerHeight}},x=function(){var S,E=g();E.width===s.width&&E.height===s.height||(E.width===s.width&&(S="height"),E.height===s.height&&(S="width"),s=E,u.fire(S))},b=(0,f.Z)(function(){s=g()});return u.add=function(){var E=d.apply(u,arguments);return b(),C.Z.add(function(){!y&&u.has()&&(y=c.Z.listen((0,o.Jj)(),"resize",x))}),E},u.remove=function(){var E=h.apply(u,arguments);return!u.has()&&y&&(y(),y=void 0),E},u}()},682:(kn,he,l)=>{"use strict";l.d(he,{M:()=>I});var o=l(7674),c=l(1828),I=function(C,f){var a;function s(d,h,g,x,b){var E,S,y=h(b);if(!g&&(E=(0,o.k3)(y),!(0,c.Kn)(E))){var O=function(w,T){if(!a){a={};for(var k=function(d,h,g){return Array.isArray(g)?d.map(x=>h(x)):d}(C,w,T),R=0;R<k.length;R++)a[(0,o.k3)(k[R])]=!0}return a}(h,x);return O[E]?!f:!!f}for(S=0;S<C.length;S++)if(d(C[S],y))return!f;return!!f}function u(d,h){if(void 0!==h)return[d,f?"<>":"=",h]}this.getLocalFilter=function(d,h,g,x){return s.bind(this,h=void 0===h?o.bY:h,d,g,x)},this.getExpr=function(d){var h;if(d)return C.forEach(function(g,x){var b;h=h||[],x>0&&h.push(f?"and":"or"),b=(0,c.HD)(d)?u(d,g):function(y,E){for(var S=[],O=0,w=y.length;O<w;O++){var T=y[O],R=u(T,E&&E[T]);if(!R)break;O>0&&S.push(f?"or":"and"),S.push(R)}return S}(d,g),h.push(b)}),h&&1===h.length&&(h=h[0]),h},this.getCombinedFilter=function(d,h){var g=this.getExpr(d),x=g;return f&&h&&(g?((x=[]).push(g),x.push(h)):x=h),x}}},3359:(kn,he,l)=>{"use strict";l.d(he,{R:()=>a,f:()=>u});var o="dx-",c=null;function I(d){try{return new CSSStyleSheet}catch{var h=d.ownerDocument.createElement("style");return d.appendChild(h),h.sheet}}function C(d,h,g){for(var x=0;x<h.length;x++){var b=h[x];try{for(var y=0;y<b.cssRules.length;y++)f(d,b.cssRules[y],g)}catch{}}}function f(d,h,g){var x,b,y,E,S,O;(g||(null===(x=h.selectorText)||void 0===x?void 0:x.includes(o))||(null===(b=h.cssRules)||void 0===b||null===(y=b[0])||void 0===y||null===(E=y.selectorText)||void 0===E?void 0:E.includes(o))||(null===(S=h.name)||void 0===S?void 0:S.startsWith(o))||"DXIcons"===(null===(O=h.style)||void 0===O?void 0:O.fontFamily))&&d.insertRule(h.cssText,d.cssRules.length)}function a(d){var h,g=d.get(0),x=null===(h=g.getRootNode)||void 0===h?void 0:h.call(g);if(null!=x&&x.host){c||C(c=I(x),g.ownerDocument.styleSheets,!1);var b=I(x);C(b,x.styleSheets,!0),x.adoptedStyleSheets=[c,b]}}function p(d,h,g){var x=d.getBoundingClientRect();return x&&h>=x.left&&h<x.right&&g>=x.top&&g<x.bottom}function u(d,h,g){for(var x=function s(){var d=0,h=[];return{push(g){return h.push(g),this},shift:()=>(d++,h[d-1]),get length(){return h.length-d},get items(){return h}}}().push(g);x.length;)for(var b=x.shift(),y=0;y<b.childNodes.length;y++){var E=b.childNodes[y];E.nodeType===Node.ELEMENT_NODE&&p(E,d,h)&&"none"!==getComputedStyle(E).pointerEvents&&x.push(E)}var S=x.items.reverse();return S.pop(),S}},1805:(kn,he,l)=>{"use strict";l.d(he,{$D:()=>T,C_:()=>Z,Cr:()=>W,EJ:()=>y,Ns:()=>U,QQ:()=>N,Xt:()=>J,Y_:()=>V,cl:()=>B,dz:()=>P,eK:()=>O,fA:()=>ee,n2:()=>S,os:()=>X,p:()=>p,qt:()=>Y,sQ:()=>w,zp:()=>K});var o=l(4514),c=l(9897),I=l(1828),C=(0,o.Jj)(),f=["auto","none","inherit","initial"],a=function(M,se){var ge=0;return se.forEach(function(De){ge+=parseFloat(M[De])||0}),ge},p=function(M,se){var ge="width"===M?"Left":"Top",De="width"===M?"Right":"Bottom";return{padding:a(se,["padding"+ge,"padding"+De]),border:a(se,["border"+ge+"Width","border"+De+"Width"]),margin:a(se,["margin"+ge,"margin"+De])}},s=function(M){var se,ge=(null==M||null===(se=M.ownerDocument)||void 0===se?void 0:se.defaultView)||C;return ge.getComputedStyle&&ge.getComputedStyle(M)},u=function(M,se,ge,De){var Fe;return se?.[ge]||(null===(Fe=M.style)||void 0===Fe?void 0:Fe[ge])||De},d={content:0,padding:1,border:2,margin:3,"content-box":0,"border-box":2},h={width:["left","right"],height:["top","bottom"]};function g(M,se,ge,De){var Fe=(ne,fe,_e)=>parseFloat(u(ne,fe,_e,"0"))||0,Ae="border"===ge?"-width":"";return Fe(M,De,"".concat(ge,"-").concat(h[se][0]).concat(Ae))+Fe(M,De,"".concat(ge,"-").concat(h[se][1]).concat(Ae))}var x=function(M,se,ge){var De="width"===se?"offsetWidth":"offsetHeight",Fe=s(M),Ae=u(M,Fe,se);(""===Ae||"auto"===Ae)&&(Ae=M[De]),Ae=parseFloat(Ae)||0;var ne=u(M,Fe,"boxSizing","content-box"),_e=d[ge||ne],ie=d[ne];if(void 0===_e||void 0===ie)throw new Error;if(ie===_e)return Ae;var de=Math.sign(_e-ie),le=!1,pe=!1,Ee=!1,ae=!1;1===de&&(_e+=1,ie+=1);for(var te=ie;te!==_e;te+=de)switch(te){case d.content:break;case d.padding:le=de*g(M,se,"padding",Fe);break;case d.border:pe=de*g(M,se,"border",Fe);break;case d.margin:Ee=de*g(M,se,"margin",Fe)}if(le||pe){var re=(!1===le?de*g(M,se,"padding",Fe):le)+(!1===pe?de*g(M,se,"border",Fe):pe);ae=de*Math.max(0,Math.floor(M[De]-Ae-de*re))||0}return Ae+Ee+le+pe+ae},y=function(M,se){return M.indexOf("px")>0?M=parseInt(M.replace("px","")):M.indexOf("%")>0?M=parseInt(M.replace("%",""))*function(M){return(0,I.FJ)(M)?M.innerHeight:M.offsetHeight}(se)/100:isNaN(M)?M.indexOf("vh")>0&&(M=C.innerHeight/100*parseInt(M.replace("vh",""))):M=parseInt(M),M},E=function(M,se,ge){return M?f.indexOf(M)>-1?se?null:M:((0,I.HD)(M)&&(M=y(M,ge)),(0,I.kE)(M)?Math.max(0,M+se):"calc("+M+(se<0?" - ":" ")+Math.abs(se)+"px)"):null},S=function(M,se,ge){var De=E(M,se,ge);return null!==De?De:"none"},O=function(M,se,ge){var De=E(M,se,ge);return null!==De?De:0},w=function(M,se){if(!M)return 0;var ge=p("height",C.getComputedStyle(M));return ge.padding+ge.border+(se?ge.margin:0)},T=function(M){if(M){var se=M.getBoundingClientRect();if(se.height)return se.height}return 0};function R(M,se,ge){return 2===arguments.length?q(se,M):q(se,M,ge)}var P=M=>function(){for(var M=arguments.length,se=new Array(M),ge=0;ge<M;ge++)se[ge]=arguments[ge];return R("width",...se)}(M),B=(M,se)=>function(){for(var M=arguments.length,se=new Array(M),ge=0;ge<M;ge++)se[ge]=arguments[ge];return R("width",...se)}(M,se),W=M=>function(){for(var M=arguments.length,se=new Array(M),ge=0;ge<M;ge++)se[ge]=arguments[ge];return R("height",...se)}(M),N=(M,se)=>function(){for(var M=arguments.length,se=new Array(M),ge=0;ge<M;ge++)se[ge]=arguments[ge];return R("height",...se)}(M,se),V=(M,se)=>function(){for(var M=arguments.length,se=new Array(M),ge=0;ge<M;ge++)se[ge]=arguments[ge];return R("outerWidth",...se)}(M,se||!1),U=(M,se)=>function(){for(var M=arguments.length,se=new Array(M),ge=0;ge<M;ge++)se[ge]=arguments[ge];return R("outerWidth",...se)}(M,se),K=(M,se)=>function(){for(var M=arguments.length,se=new Array(M),ge=0;ge<M;ge++)se[ge]=arguments[ge];return R("outerHeight",...se)}(M,se||!1),Y=(M,se)=>function(){for(var M=arguments.length,se=new Array(M),ge=0;ge<M;ge++)se[ge]=arguments[ge];return R("outerHeight",...se)}(M,se),J=M=>function(){for(var M=arguments.length,se=new Array(M),ge=0;ge<M;ge++)se[ge]=arguments[ge];return R("innerWidth",...se)}(M),ee=M=>function(){for(var M=arguments.length,se=new Array(M),ge=0;ge<M;ge++)se[ge]=arguments[ge];return R("innerHeight",...se)}(M),q=function M(se,ge,De){var Fe=ge.toLowerCase().indexOf("width")>=0?"Width":"Height",Ae=Fe.toLowerCase(),ne=0===ge.indexOf("outer"),fe=0===ge.indexOf("inner"),_e=2===arguments.length||"boolean"==typeof De;if((0,I.ZU)(se)){if(se.length>1&&!_e){for(var ie=0;ie<se.length;ie++)M(se[ie],ge,De);return}se=se[0]}if(se){if((0,I.FJ)(se))return ne?se["inner"+Fe]:c.Z.getDocumentElement()["client"+Fe];if(c.Z.isDocument(se)){var de=c.Z.getDocumentElement(),le=c.Z.getBody();return Math.max(le["scroll"+Fe],le["offset"+Fe],de["scroll"+Fe],de["offset"+Fe],de["client"+Fe])}if(_e){var pe="content";return ne&&(pe=De?"margin":"border"),fe&&(pe="padding"),x(se,Ae,pe)}if((0,I.kE)(De)){var Ee=s(se),ae=p(Ae,Ee),te="border-box"===Ee.boxSizing;De=Number(De),ne?De-=te?0:ae.border+ae.padding:fe?De+=te?ae.border:-ae.padding:te&&(De+=ae.border+ae.padding)}return De+=(0,I.kE)(De)?"px":"",c.Z.setStyle(se,Ae,De),null}},Z=M=>(0,I.FJ)(M)?M:M.defaultView,X=M=>{if(!M.getClientRects().length)return{top:0,left:0};var se=M.getBoundingClientRect(),ge=Z(M.ownerDocument),De=M.ownerDocument.documentElement;return{top:se.top+ge.pageYOffset-De.clientTop,left:se.left+ge.pageXOffset-De.clientLeft}}},6718:(kn,he,l)=>{"use strict";l.d(he,{y:()=>I});var c=(0,l(4514).Jj)(),I=function(){var C;try{C=c.sessionStorage}catch{}return C}},9589:(kn,he,l)=>{"use strict";l.d(he,{$b:()=>C,HZ:()=>c,WU:()=>f,xb:()=>p});var s,o=l(1828),c=(s=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")],function(u){return String(u).replace(s[0],"&amp;").replace(s[1],"&quot;").replace(s[2],"&#39;").replace(s[3],"&lt;").replace(s[4],"&gt;")}),C=function(s){var u=function(s){switch(typeof s){case"string":return s.split(/\s+/,4);case"object":return[s.x||s.h||s.left,s.y||s.v||s.top,s.x||s.h||s.right,s.y||s.v||s.bottom];case"number":return[s];default:return s}}(s),d=parseInt(u&&u[0],10),h=parseInt(u&&u[1],10),g=parseInt(u&&u[2],10),x=parseInt(u&&u[3],10);return isFinite(d)||(d=0),isFinite(h)||(h=d),isFinite(g)||(g=d),isFinite(x)||(x=h),{top:h,right:g,bottom:x,left:d}};function f(s){for(var u=arguments.length,d=new Array(u>1?u-1:0),h=1;h<u;h++)d[h-1]=arguments[h];return(0,o.mf)(s)?s(...d):(d.forEach((g,x)=>{(0,o.HD)(g)&&(g=g.replace(/\$/g,"$$$$"));var b=new RegExp("\\{"+x+"\\}","gm");s=s.replace(b,g)}),s)}var p=function(){var s=/\s/g;return function(u){return!u||!u.replace(s,"")}}()},4356:(kn,he,l)=>{"use strict";l.d(he,{Hj:()=>u,QQ:()=>E,bh:()=>x,cl:()=>y,gC:()=>d});var o=l(7981),c=l(4304),I=l(1828),C=l(9897),f=["","Webkit","Moz","O","Ms"],a={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},p=(0,c.Z)(function(){return C.Z.createElement("dx").style}),u=function(S){if(S in p())return S;var O=S;S=S.charAt(0).toUpperCase()+S.substr(1);for(var w=1;w<f.length;w++){var T=f[w].toLowerCase()+S;if(T in p())return T}return O},d=function(S){return function(S,O){S=(0,o._A)(S,!0);for(var w,T=0,k=f.length;T<k;T++){var R=f[T],P=R+S;if(void 0===(w=O((0,o._A)(P),R))&&(w=O(P,R)),void 0!==w)break}return w||""}(S,function(O,w){if(O in p())return a[w]})},h=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],x=function(S,O){return(0,I.kE)(O)&&-1===h.indexOf(S)&&(O+="px"),O},b=function(S,O,w){if(S){w=(0,I.kE)(w)?w+="px":w;for(var T=0;T<S.length;++T)S[T].style[O]=w}},y=function(S,O){b(S,"width",O)},E=function(S,O){b(S,"height",O)}},4505:(kn,he,l)=>{"use strict";l.r(he),l.d(he,{animation:()=>w,inputType:()=>d,nativeScrolling:()=>T,pointerEvents:()=>b,styleProp:()=>f.Hj,stylePropPrefix:()=>f.gC,supportProp:()=>s,touch:()=>E,touchEvents:()=>x,transition:()=>S,transitionEndEventName:()=>O});var k,R,o=l(9897),c=l(4304),I=l(4514),C=l(2941),f=l(4356),{maxTouchPoints:a}=(0,I.jW)(),p={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},s=function(k){return!!(0,f.Hj)(k)},d=function(k){if("text"===k)return!0;var R=o.Z.createElement("input");try{return R.setAttribute("type",k),R.value="wrongValue",!R.value}catch{return!1}},x=(R=a,((k=I.l$)("ontouchstart")||!!R)&&!k("callPhantom")),b=function(k){return k("PointerEvent")}(I.l$),E=x||b&&!!a,S=(0,c.Z)(function(){return s("transition")}),O=(0,c.Z)(function(){return p[(0,f.Hj)("transition")]}),w=(0,c.Z)(function(){return s("animation")}),T=function(){var{platform:k,mac:R}=C.Z.real();return"ios"===k||"android"===k||R}()},9834:(kn,he,l)=>{"use strict";l.d(he,{Nc:()=>s,Sd:()=>d,yD:()=>u});var o=l(9897),c=l(4514),I=l(9904),C=(0,c.Jj)(),s="hidden-for-export";function u(h,g){return function a(h){var g=!0;return-1===h.indexOf("xmlns:xlink")&&(h=h.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),(h=h.replace(/xmlns="[\s\S]*?"/gi,function(x){return g?(g=!1,x):""})).replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}(function p(h){return h.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 f(h,g){var x=o.Z.createElement("div"),b=h.cloneNode(!0);return g&&(0,I.Z)(b).css("backgroundColor",g),x.appendChild(b),x.innerHTML}(h,g)))}function d(h){return o.Z.isNode(h)?h:(new C.DOMParser).parseFromString(h,"image/svg+xml").childNodes[0]}},4542:(kn,he,l)=>{"use strict";l.d(he,{t0:()=>V,gi:()=>W,hK:()=>w,Wl:()=>R,ZE:()=>T,TM:()=>B,v_:()=>P});var h,o=l(7572),c=l(2941),I=l(9644),C=l(9904),f=l(1927),a=l(1880),p=l(6246),s=l(6520),u=l(1828),d={};function g(U,K){d[U]=K}function b(){return h}g("jquery-tmpl",{compile:U=>(0,s.Li)(U),render:(U,K)=>jQuery.tmpl(U,K)}),g("jsrender",{compile:U=>(jQuery||jsrender).templates((0,s.Li)(U)),render:(U,K)=>U.render(K)}),g("mustache",{compile:U=>(0,s.Li)(U),render:(U,K)=>Mustache.render(U,K)}),g("hogan",{compile:U=>Hogan.compile((0,s.Li)(U)),render:(U,K)=>U.render(K)}),g("underscore",{compile:U=>_.template((0,s.Li)(U)),render:(U,K)=>U(K)}),g("handlebars",{compile:U=>Handlebars.compile((0,s.Li)(U)),render:(U,K)=>U(K)}),g("doT",{compile:U=>doT.template((0,s.Li)(U)),render:(U,K)=>U(K)}),g("default",{compile:U=>(0,s.H_)(U),render:(U,K,Y)=>U.clone()}),function x(U){if((0,u.HD)(U)){if(!(h=d[U]))throw I.Z.Error("E0020",U)}else h=U}("default");class y extends p.S{constructor(K){super(),this._element=K}_renderCore(K){var Y=K.transclude;return!Y&&!this._compiledTemplate&&(this._compiledTemplate=b().compile(this._element)),(0,C.Z)("<div>").append(Y?this._element:b().render(this._compiledTemplate,K.model,K.index)).contents()}source(){return(0,C.Z)(this._element).clone()}}var E=l(9960),S=l(7674),O=l(5873),w=(U,K)=>{var Y=(0,C.Z)(U).contents().filter("[".concat("data-options",'*="').concat(K,'"]'));return[].slice.call(Y).map(J=>{var j=(0,C.Z)(J).attr("data-options")||"";return{element:J,options:(0,o.Z)().optionsParser(j)[K]}}).filter(J=>!!J.options)},T=U=>{var K=(0,E.vM)(U,J=>J.options.name);if(K[void 0])throw I.Z.Error("E0023");var Y={};return Object.keys(K).forEach(J=>{var j,ee=null===(j=(0,S.U3)(c.Z.current(),K[J],G=>G.options)[0])||void 0===j?void 0:j.element;ee&&(Y[J]=ee)}),Y},k=U=>{var K=U.render.bind(U);return(0,O.l)({},U,{render(Y){var J=K(Y);return Y&&Y.onRendered&&Y.onRendered(),J}})},R=U=>{var K=[];return"model"in U&&K.push(U.model),"index"in U&&K.push(U.index),K.push(U.container),K},P=U=>"string"==typeof U?(0,s.H_)(U):U,B=U=>(0,u.ZU)(U)&&U[0]||U,W=U=>new y(U),V=(U,K,Y,J,j,ee)=>null==U?new a.s:U instanceof f.s?ee[U.name]:U instanceof p.S?U:(0,u.mf)(U.render)&&!(0,u.ZU)(U)?J?U:k(U):U.nodeType||(0,u.ZU)(U)?K((0,C.Z)(U)):((U,K,Y,J)=>{var j=null;return(!J||-1===J.indexOf(U))&&(j=K[U])&&!(j instanceof p.S)&&!Y&&(j=k(j)),j})(U,Y,J,j)||ee[U]||K(U)},1828:(kn,he,l)=>{"use strict";l.d(he,{$K:()=>a,Cp:()=>C,EY:()=>S,FJ:()=>b,HD:()=>s,J_:()=>f,Kn:()=>d,PO:()=>g,Qr:()=>h,ZU:()=>y,cO:()=>O,dt:()=>c,jn:()=>I,kE:()=>u,mf:()=>p,pt:()=>x,tI:()=>E});var o={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},c=function(w){var T=Object.prototype.toString.call(w);return"object"==typeof w?o[T]||"object":typeof w},I=function(w){return"boolean"==typeof w},C=function(w){return u(w)&&-1!==w.toString().indexOf("e")},f=function(w){return"date"===c(w)},a=function(w){return null!=w},p=function(w){return"function"==typeof w},s=function(w){return"string"==typeof w},u=function(w){return"number"==typeof w&&isFinite(w)||!isNaN(w-parseFloat(w))},d=function(w){return"object"===c(w)},h=function(w){var T;for(T in w)return!1;return!0},g=function(w){if(!w||"[object Object]"!==Object.prototype.toString.call(w))return!1;var T=Object.getPrototypeOf(w),k=Object.hasOwnProperty.call(T,"constructor")&&T.constructor;return"function"==typeof k&&Object.toString.call(k)===Object.toString.call(Object)},x=function(w){return-1===["object","array","function"].indexOf(c(w))},b=function(w){return null!=w&&w===w.window},y=function(w){return!(!w||!w.jquery&&!w.dxRenderer)},E=function(w){return!!w&&p(w.then)},S=function(w){return!!w&&p(w.done)&&p(w.fail)},O=function(w){return!(!w||!w.preventDefault)}},9963:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>I});var o=l(2160);const I=(0,l(2793).Z)({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(C){return C},unwrap:function(C){return C},assign:function(){o.k.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},2161:(kn,he,l)=>{"use strict";function o(c,I,C){function f(d){return"string"==typeof d?d.split("."):"number"==typeof d?[d]:d}c=f(c),I=f(I);var a=Math.max(c.length,I.length);isFinite(C)&&(a=Math.min(a,C));for(var p=0;p<a;p++){var s=parseInt(c[p]||0,10),u=parseInt(I[p]||0,10);if(s<u)return-1;if(s>u)return 1}return 0}l.d(he,{q:()=>o})},1469:(kn,he,l)=>{"use strict";l.d(he,{In:()=>s,S3:()=>p,Wg:()=>f});var u,o=l(9904),c=l(3068),I=l(5365),C=c.Z.add,f=(0,I.Z)(),a=(0,o.Z)(),p=function(d){if(!arguments.length)return u;var h=(0,o.Z)(d);a=h;var g=!!h.length,x=p();u=g?h:(0,o.Z)("body"),f.fire(g?p():(0,o.Z)(),x)};function s(){return a}C(function(){p(".dx-viewport")})},4514:(kn,he,l)=>{"use strict";l.d(he,{$n:()=>s,Jj:()=>f,Wf:()=>u,Ym:()=>I,jW:()=>d,l$:()=>p});var o=l(9897),c=typeof window<"u",I=()=>c,C=I()?window:void 0;C||((C={}).window=C);var f=()=>C,p=h=>I()&&h in C,s=h=>h<768?"xs":h<992?"sm":h<1200?"md":"lg",u=h=>(h||s)(o.Z.getDocumentElement().clientWidth),d=()=>I()?C.navigator:{userAgent:""}},2805:(kn,he,l)=>{"use strict";l.d(he,{i:()=>o});var o="22.2.4"},1937:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>b});var y,o=l(5031),c=l(4562),I=l(2718),C=l(6051),f=l(2701),a=l(6738),p=l(3382),s=l(4270),u=l(7674),d=o.Z.abstract,h=p.Z.queryByOptions,g={},x=o.Z.inherit({ctor:function(y){var E=this;y=y||{},this._eventsStrategy=new c.m(this),(0,I.S6)(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],function(S,O){O in y&&E.on(O.slice(2).toLowerCase(),y[O])}),this._key=y.key,this._errorHandler=y.errorHandler,this._useDefaultSearch=!0},_clearCache:u.ZT,_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(y){return this._keyGetter||(this._keyGetter=(0,a.vb)(this.key())),this._keyGetter(y)},_requireKey:function(){if(!this.key())throw C.R0.Error("E4005")},load:function(y){var E=this;return this._eventsStrategy.fireEvent("loading",[y=y||{}]),this._withLock(this._loadImpl(y)).done(function(S){E._eventsStrategy.fireEvent("loaded",[S,y])})},_loadImpl:function(y){return h(this.createQuery(y),y).enumerate()},_withLock:function(y){var E=new s.BH;return y.done(function(){var S=this,O=arguments;f.LE.promise().done(function(){E.resolveWith(S,O)})}).fail(function(){E.rejectWith(this,arguments)}),E},createQuery:d,totalCount:function(y){return this._totalCountImpl(y)},_totalCountImpl:function(y){return h(this.createQuery(y),y,!0).count()},byKey:function(y,E){return this._addFailHandlers(this._withLock(this._byKeyImpl(y,E)))},_byKeyImpl:d,insert:function(y){var E=this;return E._eventsStrategy.fireEvent("modifying"),E._eventsStrategy.fireEvent("inserting",[y]),E._addFailHandlers(E._insertImpl(y).done(function(S,O){E._eventsStrategy.fireEvent("inserted",[S,O]),E._eventsStrategy.fireEvent("modified")}))},_insertImpl:d,update:function(y,E){var S=this;return S._eventsStrategy.fireEvent("modifying"),S._eventsStrategy.fireEvent("updating",[y,E]),S._addFailHandlers(S._updateImpl(y,E).done(function(){S._eventsStrategy.fireEvent("updated",[y,E]),S._eventsStrategy.fireEvent("modified")}))},_updateImpl:d,push:function(y){var E={changes:y,waitFor:[]};this._eventsStrategy.fireEvent("beforePush",[E]),(0,s.gx)(...E.waitFor).done(()=>{this._pushImpl(y),this._eventsStrategy.fireEvent("push",[y])})},_pushImpl:u.ZT,remove:function(y){var E=this;return E._eventsStrategy.fireEvent("modifying"),E._eventsStrategy.fireEvent("removing",[y]),E._addFailHandlers(E._removeImpl(y).done(function(S){E._eventsStrategy.fireEvent("removed",[S]),E._eventsStrategy.fireEvent("modified")}))},_removeImpl:d,_addFailHandlers:function(y){return y.fail(this._errorHandler).fail(C.S3)},on(y,E){return this._eventsStrategy.on(y,E),this},off(y,E){return this._eventsStrategy.off(y,E),this}});x.create=function(y,E){if(!(y in g))throw C.R0.Error("E4020",y);return new g[y](E)},x.registerClass=function(y,E){return E&&(g[E]=y),y},x.inherit=(y=x.inherit,function(E,S){var O=y.apply(this,[E]);return x.registerClass(O,S),O});const b=x},3223:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>T});var o=l(5031),c=l(1828),I=l(2718),C=l(6738),f=l(4270),a=l(6051),p=l(2701),s=o.Z.inherit({toArray:function(){var k=[];for(this.reset();this.next();)k.push(this.current());return k},countable:function(){return!1}}),u=s.inherit({ctor:function(k){this.array=k,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}}),d=s.inherit({ctor:function(k){this.iter=k},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),h=d.inherit({ctor:function(k,R){this.callBase(k),this.index=-1,this.mapper=R},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var k=this.callBase();return k&&this.index++,k}}),g=function(k,R){return k=(0,C.Ex)(k),R=(0,C.Ex)(R),null===k&&null!==R?-1:null!==k&&null===R||void 0===k&&void 0!==R?1:void 0!==k&&void 0===R||k<R?-1:k>R?1:0},x=s.inherit({ctor:function(k,R,P,B){k instanceof h||(k=new h(k,this._wrap)),this.iter=k,this.rules=[{getter:R,desc:P,compare:B}]},thenBy:function(k,R,P){var B=new x(this.sortedIter||this.iter,k,R,P);return this.sortedIter||(B.rules=this.rules.concat(B.rules)),B},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 k=this;k.sortedIter||((0,I.S6)(k.rules,function(){this.getter=(0,C.vb)(this.getter)}),k.sortedIter=new h(new u(this.iter.toArray().sort(function(R,P){return k._compare(R,P)})),k._unwrap))},_wrap:function(k,R){return{index:R,value:k}},_unwrap:function(k){return k.value},_compare:function(k,R){var P=k.index,B=R.index;if((k=k.value)===(R=R.value))return P-B;for(var W=0,N=this.rules.length;W<N;W++){var V=this.rules[W],U=V.getter(k),K=V.getter(R),J=(V.compare||g)(U,K);if(J)return V.desc?-J:J}return P-B}}),b=function(){var k=function(P){return(0,c.$K)(P)?P.toString():""};function R(P,B,W){return function(N){N=(0,C.Ex)(P(N));var U,V=""===(U=B)||0===U||!1===U?N===B:N==B;return W&&(V=!V),V}}return function(P){return(0,c.mf)(P)?P:(0,p.IN)(P)?(W=[],N=!1,V=!1,(0,I.S6)(P,function(){if(Array.isArray(this)||(0,c.mf)(this)){if(W.length>1&&N!==V)throw new a.R0.Error("E4019");W.push(b(this)),N=V,V=!0}else V=(0,p.Lq)(this)}),function(U){for(var K=N,Y=0;Y<W.length;Y++)if(W[Y](U)!==N){K=!N;break}return K}):(0,p.hi)(P)?function(B){var W=B[0],N=b(B[1]);if("!"===W)return function(V){return!N(V)};throw a.R0.Error("E4003",W)}(P):function(B){B=(0,p.DE)(B);var W=(0,C.vb)(B[0]),N=B[1],V=B[2];V=(0,C.Ex)(V);var U=(K,Y)=>(K=(0,C.Ex)(W(K)),(null!=V&&null!=K||V===K)&&Y(K,V));switch(N.toLowerCase()){case"=":return R(W,V);case"<>":return R(W,V,!0);case">":return K=>U(K,(Y,J)=>Y>J);case"<":return K=>U(K,(Y,J)=>Y<J);case">=":return K=>U(K,(Y,J)=>Y>=J);case"<=":return K=>U(K,(Y,J)=>Y<=J);case"startswith":return function(K){return 0===(0,C.Ex)(k(W(K))).indexOf(V)};case"endswith":return function(K){var Y=(0,C.Ex)(k(W(K))),J=k(V);if(Y.length<J.length)return!1;var j=Y.lastIndexOf(V);return-1!==j&&j===Y.length-V.length};case"contains":return function(K){return(0,C.Ex)(k(W(K))).indexOf(V)>-1};case"notcontains":return function(K){return-1===(0,C.Ex)(k(W(K))).indexOf(V)}}throw a.R0.Error("E4003",N)}(P);var W,N,V}}(),y=d.inherit({ctor:function(k,R){this.callBase(k),this.criteria=b(R)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),E=s.inherit({ctor:function(k,R){this.iter=k,this.getter=R},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 k={},R=[],P=this.iter,B=(0,C.vb)(this.getter);for(P.reset();P.next();){var W=P.current(),N=B(W);N in k?k[N].push(W):(k[N]=[W],R.push(N))}this.groupedIter=new u((0,I.UI)(R,function(V){return{key:V,items:k[V]}}))}}}),S=d.inherit({ctor:function(k,R){this.callBase(k),this.getter=(0,C.vb)(R)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),O=d.inherit({ctor:function(k,R,P){this.callBase(k),this.skip=Math.max(0,R),this.take=Math.max(0,P),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 T=function k(R,P){P=P||{},R instanceof s||(R=new u(R));var B=function(Y){var J=P.errorHandler;J&&J(Y),(0,a.S3)(Y)},W=function(Y){var J=(new f.BH).fail(B),ee=Y.step,G=Y.finalize;try{R.reset();for(var q=("seed"in Y?Y.seed:R.next()?R.current():NaN);R.next();)q=ee(q,R.current());J.resolve(G?G(q):q)}catch(Z){J.reject(Z)}return J.promise()},N=function(Y){return W(p.bG[Y])},V=function(Y){return!(0,c.mf)(Y)&&!Array.isArray(Y)&&(Y=[].slice.call(arguments)),K(new S(R,Y))},U=function(Y){return V((0,C.vb)(Y))};function K(Y){return k(Y,P)}return{toArray:function(){return R.toArray()},enumerate:function(){var Y=(new f.BH).fail(B);try{Y.resolve(R.toArray())}catch(J){Y.reject(J)}return Y.promise()},sortBy:function(Y,J,j){return K(new x(R,Y,J,j))},thenBy:function(Y,J,j){if(R instanceof x)return K(R.thenBy(Y,J,j));throw a.R0.Error("E4004")},filter:function(Y){return Array.isArray(Y)||(Y=[].slice.call(arguments)),K(new y(R,Y))},slice:function(Y,J){return void 0===J&&(J=Number.MAX_VALUE),K(new O(R,Y,J))},select:V,groupBy:function(Y){return K(new E(R,Y))},aggregate:function(Y,J,j){return W(arguments.length<2?{step:arguments[0]}:{seed:Y,step:J,finalize:j})},count:function(){if(R.countable()){var Y=(new f.BH).fail(B);try{Y.resolve(R.count())}catch(J){Y.reject(J)}return Y.promise()}return N("count")},sum:function(Y){return Y?U(Y).sum():N("sum")},min:function(Y){return Y?U(Y).min():N("min")},max:function(Y){return Y?U(Y).max():N("max")},avg:function(Y){return Y?U(Y).avg():N("avg")}}}},820:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>p});var o=l(2701),c=l(7316),I=l(6051),C=l(1937),f=l(1771);const p=C.Z.inherit({ctor:function(s){s=Array.isArray(s)?{data:s}:s||{},this.callBase(s);var u=s.data;if(u&&!Array.isArray(u))throw I.R0.Error("E4006");this._array=u||[]},createQuery:function(){return(0,c.Z)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(s){var u=(0,f.qk)(this,this._array,s);return-1===u?(0,o.Q2)(I.R0.Error("E4009")):(0,o.F$)(this._array[u])},_insertImpl:function(s){return(0,f.$T)(this,this._array,s)},_pushImpl:function(s){(0,f.ii)({keyInfo:this,data:this._array,changes:s})},_updateImpl:function(s,u){return(0,f.Vx)(this,this._array,s,u)},_removeImpl:function(s){return(0,f.Od)(this,this._array,s)},clear:function(){this._eventsStrategy.fireEvent("modifying"),this._array=[],this._eventsStrategy.fireEvent("modified")}},"array")},1771:(kn,he,l)=>{"use strict";l.d(he,{$T:()=>P,FL:()=>O,Od:()=>B,Vx:()=>R,ii:()=>w,qk:()=>W});var o=l(4817),c=l(1828),I=l(7572),C=l(6492),f=l(5873),a=l(6051),p=l(2834),u=(l(6738),l(2701));function h(N,V,U,K){var J;if(K){for(var j=0;j<V.length;j++)if(J=h(N,V[j].items||V[j].collapsedItems||[]||[],U,K-1))return J}else if(W(N,V,U)>=0)return V}function g(N,V,U,K){return K?h(N,V,U,K)||[]:V}function E(N,V,U){N._dataByKeyMap&&(N._dataByKeyMap[JSON.stringify(V)]=U,N._dataByKeyMapLength+=U?1:-1)}function S(N,V,U){U=U||new WeakMap;var K=N?Object.create(Object.getPrototypeOf(N)):{};N&&U.set(N,K);var Y=(0,o.Z)({},N);for(var J in(0,p.HR)(K,Y,!0,!0),Y){var j=Y[J],ee=V?.[J];(0,c.Kn)(j)&&!(0,c.PO)(j)&&(0,c.Kn)(ee)&&!U.has(j)&&(K[J]=S(j,ee,U))}for(var G in K){var q=K[G];(0,c.Kn)(q)&&U.has(q)&&(K[G]=U.get(q))}return K}function O(N,V){var U=S(N,V);return(0,p.HR)(U,V,!0,!0)}function w(N){var{keyInfo:V,data:U,changes:K,groupCount:Y,useInsertIndex:J,immutable:j,disableCache:ee,logError:G,skipCopying:q}=N,Z=!0===j?[...U]:U;return K.forEach(X=>{var M="insert"===X.type?Z:g(V,Z,X.key,Y);switch(!ee&&function x(N,V){if(N.key()&&(!V._dataByKeyMap||V._dataByKeyMapLength!==V.length)){for(var U={},K=V.length,Y=0;Y<K;Y++)U[JSON.stringify(N.keyOf(V[Y]))]=V[Y];V._dataByKeyMap=U,V._dataByKeyMapLength=K}}(V,M),X.type){case"update":R(V,M,X.key,X.data,!0,j,G);break;case"insert":P(V,M,X.data,J&&(0,c.$K)(X.index)?X.index:-1,!0,G,q);break;case"remove":B(V,M,X.key,!0,G)}}),Z}function T(N,V,U){return N?V&&a.R0.log(U):(0,u.Q2)(a.R0.Error(U))}function R(N,V,U,K,Y,J,j){var ee,G=N.key();if(G){if(function d(N,V){for(var K="string"==typeof V?V.split():V.slice();K.length;)if(K.shift()in N)return!0;return!1}(K,G)&&!(0,u.OI)(G,U,N.keyOf(K)))return T(Y,j,"E4017");if(ee=function b(N,V){if(N._dataByKeyMap)return N._dataByKeyMap[JSON.stringify(V)]}(V,U),!ee){var q=W(N,V,U);if(q<0)return T(Y,j,"E4009");if(ee=V[q],!0===J&&(0,c.$K)(ee)){var Z=O(ee,K);return V[q]=Z,!Y&&(0,u.F$)(Z,U)}}}else ee=U;if((0,p.HR)(ee,K,!0),!Y)return(0,I.Z)().useLegacyStoreResult?(0,u.F$)(U,K):(0,u.F$)(ee,U)}function P(N,V,U,K,Y,J,j){var ee,G=N.key(),q=(0,c.PO)(U)&&!j?(0,f.l)({},U):U;if(G){if(void 0===(ee=N.keyOf(q))||"object"==typeof ee&&(0,c.Qr)(ee)){if(Array.isArray(G))throw a.R0.Error("E4007");ee=q[G]=String(new C.Z)}else if(void 0!==V[W(N,V,ee)])return T(Y,J,"E4008")}else ee=q;if(K>=0?V.splice(K,0,q):V.push(q),E(V,ee,q),!Y)return(0,u.F$)((0,I.Z)().useLegacyStoreResult?U:q,ee)}function B(N,V,U,K,Y){var J=W(N,V,U);return J>-1&&(V.splice(J,1),E(V,U,null)),K?J<0?T(K,Y,"E4009"):void 0:(0,u.F$)(U)}function W(N,V,U){var K=N.key();if(!function y(N,V){return!N._dataByKeyMap||N._dataByKeyMap[JSON.stringify(V)]}(V,U))return-1;for(var Y=0,J=V.length;Y<J;Y++)if((0,u.OI)(K,N.keyOf(V[Y]),U))return Y;return-1}},7344:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>K});var o=l(9904),c=l(2701),I=l(1771),C=l(1828),f=l(7572),a=l(6051),p=l(1937),s=l(3223),u=l(3382),d=l(4270),h="totalCount",g="load",x="byKey",b="insert",y="update",E="remove";function S(Y){return Y&&(0,C.mf)(Y.then)}function O(Y){return(new d.BH).resolve(Y).promise()}function w(Y,J){if(!(0,C.mf)(J))throw a.R0.Error("E4011",Y)}function T(Y){throw a.R0.Error("E4012",Y)}function k(Y){function J(j){var ee=j[0];return ee&&ee.getResponseHeader?(0,c.ER)(ee,j[1]):null}return function(j){var ee;(ee=j instanceof Error?j:new Error(J(arguments)||j&&String(j)||"Unknown error")).message!==c.C5&&Y.reject(ee)}}function R(Y,J){var ee,j=Y._loadFunc;return w(g,j),ee=j.apply(Y,[J]),Array.isArray(ee)?ee=O(ee):null==ee?ee=O([]):S(ee)||T(g),(0,d.p4)(ee)}function W(Y,J,j,ee){if(J.__rawData)ee(J.__rawData);else{var G=J.__rawDataPromise||R(J,j);J._cacheRawData&&(J.__rawDataPromise=G),G.always(function(){delete J.__rawDataPromise}).done(function(q){J._cacheRawData&&(J.__rawData=q),ee(q)}).fail(k(Y))}}function N(Y,J,j,ee){var G={};"userData"in(j=j||{})&&(G.userData=j.userData),W(Y,J,G,function(q){var X,M,ge,De,Z=(0,s.Z)(q,{errorHandler:J._errorHandler}),se=[];ee||((X=u.Z.queryByOptions(Z,j))===Z?ge=q.slice(0):se.push(X.enumerate().done(function(Fe){ge=Fe}))),(j.requireTotalCount||ee)&&((M=u.Z.queryByOptions(Z,j,!0))===Z?De=q.length:se.push(M.count().done(function(Fe){De=Fe}))),d.gx.apply(o.Z,se).done(function(){ee?Y.resolve(De):j.requireTotalCount?Y.resolve(ge,{totalCount:De}):Y.resolve(ge)}).fail(function(Fe){Y.reject(Fe)})})}const K=p.Z.inherit({ctor:function(Y){this.callBase(Y=Y||{}),this._useDefaultSearch=!!Y.useDefaultSearch||"raw"===Y.loadMode,this._loadMode=Y.loadMode,this._cacheRawData=!1!==Y.cacheRawData,this._loadFunc=Y[g],this._totalCountFunc=Y[h],this._byKeyFunc=Y[x],this._insertFunc=Y[b],this._updateFunc=Y[y],this._removeFunc=Y[E]},_clearCache(){delete this.__rawData},createQuery:function(){throw a.R0.Error("E4010")},clearRawDataCache:function(){this._clearCache()},_totalCountImpl:function(Y){var J=new d.BH;return"raw"!==this._loadMode||this._totalCountFunc?(function P(Y,J){var ee,j=Y._totalCountFunc;if(!(0,C.mf)(j))throw a.R0.Error("E4021");return S(ee=j.apply(Y,[J]))||(ee=Number(ee),isFinite(ee)||T(h),ee=O(ee)),(0,d.p4)(ee)}(this,Y).done(function(j){J.resolve(Number(j))}).fail(k(J)),J=this._addFailHandlers(J)):N(J,this,Y,!0),J.promise()},_pushImpl:function(Y){this.__rawData&&(0,I.ii)({keyInfo:this,data:this.__rawData,changes:Y})},_loadImpl:function(Y){var J=new d.BH;return"raw"===this._loadMode?N(J,this,Y,!1):(R(this,Y).done(function(j,ee){J.resolve(j,ee)}).fail(k(J)),J=this._addFailHandlers(J)),J.promise()},_byKeyImpl:function(Y,J){var j=new d.BH;return this._byKeyViaLoad()?(this._requireKey(),function V(Y,J,j){W(Y,J,{},function(ee){for(var q,G=J.key(),Z=0,X=ee.length;Z<X;Z++)if(q=ee[Z],(0,c.OI)(G,J.keyOf(ee[Z]),j))return void Y.resolve(q);Y.reject(a.R0.Error("E4009"))})}(j,this,Y)):function B(Y,J,j){var G,ee=Y._byKeyFunc;return w(x,ee),S(G=ee.apply(Y,[J,j]))||(G=O(G)),(0,d.p4)(G)}(this,Y,J).done(function(ee){j.resolve(ee)}).fail(k(j)),j.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(Y){var ee,J=this,j=J._insertFunc,G=new d.BH;return w(b,j),S(ee=j.apply(J,[Y]))||(ee=O(ee)),(0,d.p4)(ee).done(function(q){(0,f.Z)().useLegacyStoreResult?G.resolve(Y,q):G.resolve(q||Y,J.keyOf(q))}).fail(k(G)),G.promise()},_updateImpl:function(Y,J){var ee,j=this._updateFunc,G=new d.BH;return w(y,j),S(ee=j.apply(this,[Y,J]))||(ee=O(ee)),(0,d.p4)(ee).done(function(q){(0,f.Z)().useLegacyStoreResult?G.resolve(Y,J):G.resolve(q||J,Y)}).fail(k(G)),G.promise()},_removeImpl:function(Y){var j,J=this._removeFunc,ee=new d.BH;return w(E,J),S(j=J.apply(this,[Y]))||(j=O()),(0,d.p4)(j).done(function(){ee.resolve(Y)}).fail(k(ee)),ee.promise()}})},886:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>c});const c=l(7122).o},7122:(kn,he,l)=>{"use strict";l.d(he,{o:()=>S});var o=l(5031),c=l(5873),I=l(7674),C=l(2718),f=l(1828),a=l(2701),p=l(1771),s=l(7344),u=l(4562),d=l(6051),h=l(9644),g=l(4270);function x(O){var w=[],T=!1;function k(){for(;w.length;){T=!0;var P=w.shift()();if(void 0!==P){if(P.then)return void(0,g.gx)(P).always(k);throw h.Z.Error("E0015")}}T=!1}return{add:function(R,P){O?(w[0]&&P&&P(w[0]),w=[R]):w.push(R),T||k()},busy:function(){return T}}}x();var y=l(5981);class E{constructor(){this._counter=-1,this._deferreds={}}add(w){return this._counter++,this._deferreds[this._counter]=w,this._counter}remove(w){return delete this._deferreds[w]}cancel(w){return w in this._deferreds&&(this._deferreds[w].reject(y.NE),!0)}cancelAll(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--}}var S=o.Z.inherit({ctor(O){var w;if(O=(0,y.aN)(O),this._eventsStrategy=new u.m(this,{syncStrategy:!0}),this._store=O.store,this._changedTime=0,0!==O.pushAggregationTimeout){var R,P,B=(0,a.xL)(W=>{R.resolve(),(0,g.gx)(...P).done(()=>this._onPush(W)),P=void 0,R=void 0},void 0===O.pushAggregationTimeout?()=>5*this._changedTime:O.pushAggregationTimeout);this._onPushHandler=W=>{this._aggregationTimeoutId=B(W.changes),R||(R=new g.BH),P=W.waitFor,W.waitFor.push(R.promise())},this._store.on("beforePush",this._onPushHandler)}else this._onPushHandler=W=>this._onPush(W),this._store.on("push",this._onPushHandler);this._storeLoadOptions=this._extractLoadOptions(O),this._mapFunc=O.map,this._postProcessFunc=O.postProcess,this._pageIndex=void 0!==O.pageIndex?O.pageIndex:0,this._pageSize=void 0!==O.pageSize?O.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in O?O.searchValue:null,this._searchOperation=O.searchOperation||"contains",this._searchExpr=O.searchExpr,this._paginate=O.paginate,this._reshapeOnPush=null!==(w=O.reshapeOnPush)&&void 0!==w&&w,(0,C.S6)(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],(W,N)=>{N in O&&this.on(N.substr(2,1).toLowerCase()+N.substr(3),O[N])}),this._operationManager=new E,this._init()},_init(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,(0,f.$K)(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose(){var O;this._store.off("beforePush",this._onPushHandler),this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),null===(O=this._delayedLoadTask)||void 0===O||O.abort(),this._operationManager.cancelAll(),delete this._store,delete this._items,delete this._delayedLoadTask,this._disposed=!0},_extractLoadOptions(O){var w={},T=["sort","filter","select","group","requireTotalCount"],k=this._store._customLoadOptions();return k&&(T=T.concat(k)),(0,C.S6)(T,function(){w[this]=O[this]}),w},loadOptions(){return this._storeLoadOptions},items(){return this._items},pageIndex(O){if(!(0,f.kE)(O))return this._pageIndex;this._pageIndex=O,this._isLastPage=!this._paginate},paginate(O){if(!(0,f.jn)(O))return this._paginate;this._paginate!==O&&(this._paginate=O,this.pageIndex(0))},pageSize(O){if(!(0,f.kE)(O))return this._pageSize;this._pageSize=O},isLastPage(){return this._isLastPage},generateStoreLoadOptionAccessor(O){return w=>{var T=(0,y.ir)(w);if(void 0===T)return this._storeLoadOptions[O];this._storeLoadOptions[O]=T}},sort(){for(var O=arguments.length,w=new Array(O),T=0;T<O;T++)w[T]=arguments[T];return this.generateStoreLoadOptionAccessor("sort")(w)},filter(){var O=(0,y.ir)(arguments);if(void 0===O)return this._storeLoadOptions.filter;this._storeLoadOptions.filter=O,this.pageIndex(0)},group(){for(var O=arguments.length,w=new Array(O),T=0;T<O;T++)w[T]=arguments[T];return this.generateStoreLoadOptionAccessor("group")(w)},select(){for(var O=arguments.length,w=new Array(O),T=0;T<O;T++)w[T]=arguments[T];return this.generateStoreLoadOptionAccessor("select")(w)},requireTotalCount(O){if(!(0,f.jn)(O))return this._storeLoadOptions.requireTotalCount;this._storeLoadOptions.requireTotalCount=O},searchValue(O){if(arguments.length<1)return this._searchValue;this._searchValue=O,this.pageIndex(0)},searchOperation(O){if(!(0,f.HD)(O))return this._searchOperation;this._searchOperation=O,this.pageIndex(0)},searchExpr(O){var w=arguments.length;if(0===w)return this._searchExpr;w>1&&(O=[].slice.call(arguments)),this._searchExpr=O,this.pageIndex(0)},store(){return this._store},key(){var O;return null===(O=this._store)||void 0===O?void 0:O.key()},totalCount(){return this._totalCount},isLoaded(){return this._isLoaded},isLoading(){return this._loadingCount>0},beginLoading(){this._changeLoadingCount(1)},endLoading(){this._changeLoadingCount(-1)},_createLoadQueue:()=>x(),_changeLoadingCount(O){var w=this.isLoading();this._loadingCount+=O;var T=this.isLoading();w^T&&this._eventsStrategy.fireEvent("loadingChanged",[T])},_scheduleLoadCallbacks(O){this.beginLoading(),O.always(()=>{this.endLoading()})},_scheduleFailCallbacks(O){var w=this;O.fail(function(){for(var T=arguments.length,k=new Array(T),R=0;R<T;R++)k[R]=arguments[R];k[0]!==y.NE&&w._eventsStrategy.fireEvent("loadError",k)})},_fireChanged(O){var w=new Date;this._eventsStrategy.fireEvent("changed",O),this._changedTime=new Date-w},_scheduleChangedCallbacks(O){O.done(()=>this._fireChanged())},loadSingle(O,w){var T=new g.BH,k=this.key(),R=this._store,P=this._createStoreLoadOptions();return this._scheduleFailCallbacks(T),arguments.length<2&&(w=O,O=k),delete P.skip,delete P.group,delete P.refresh,delete P.pageIndex,delete P.searchString,(O===k||R instanceof s.Z&&!R._byKeyViaLoad()?R.byKey(w,P):(P.take=1,P.filter=P.filter?[P.filter,[O,w]]:[O,w],R.load(P))).fail(T.reject).done(B=>{var W=Array.isArray(B)&&!B.length;!(0,f.$K)(B)||W?T.reject(new d.R0.Error("E4009")):(Array.isArray(B)||(B=[B]),T.resolve(this._applyMapFunction(B)[0]))}),T.promise()},load(){var O=new g.BH,w=()=>{if(!this._disposed&&(0,y.zR)(O))return this._loadFromStore(T,O)};this._scheduleLoadCallbacks(O),this._scheduleFailCallbacks(O),this._scheduleChangedCallbacks(O);var T=this._createLoadOperation(O);return this._eventsStrategy.fireEvent("customizeStoreLoadOptions",[T]),this._loadQueue.add(()=>("number"==typeof T.delay?this._delayedLoadTask=(0,I.Wi)(w,T.delay):w(),O.promise())),O.promise({operationId:T.operationId})},_onPush(O){if(this._reshapeOnPush)this.load();else{var w={changes:O};this._eventsStrategy.fireEvent("changing",[w]);var T=this.group(),k=this.items(),R=0,P=this.paginate()||T?O.filter(B=>"update"===B.type):O;T&&(R=Array.isArray(T)?T.length:1),this._mapFunc&&P.forEach(B=>{"insert"===B.type&&(B.data=this._mapFunc(B.data))}),w.postProcessChanges&&(P=w.postProcessChanges(P)),(0,p.ii)({keyInfo:this.store(),data:k,changes:P,groupCount:R,useInsertIndex:!0}),this._fireChanged([{changes:O}])}},_createLoadOperation(O){var w=this._operationManager.add(O),T=this._createStoreLoadOptions();return O.always(()=>this._operationManager.remove(w)),{operationId:w,storeLoadOptions:T}},reload(){return this.store()._clearCache(),this._init(),this.load()},cancel(O){return this._operationManager.cancel(O)},cancelAll(){return this._operationManager.cancelAll()},_addSearchOptions(O){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(O):(O.searchOperation=this._searchOperation,O.searchValue=this._searchValue,O.searchExpr=this._searchExpr))},_createStoreLoadOptions(){var O=(0,c.l)({},this._storeLoadOptions);return this._addSearchOptions(O),this._paginate&&this._pageSize&&(O.skip=this._pageIndex*this._pageSize,O.take=this._pageSize),O.userData=this._userData,O},_addSearchFilter(O){var w=this._searchValue,T=this._searchOperation,k=this._searchExpr,R=[];w&&(k||(k="this"),Array.isArray(k)||(k=[k]),(0,C.S6)(k,function(P,B){R.length&&R.push("or"),R.push([B,T,w])}),O.filter=O.filter?[R,O.filter]:R)},_loadFromStore(O,w){var T=(k,R)=>{if(!this._disposed&&(0,y.zR)(w)){var P=(0,c.l)((0,y.r6)(k,R),O);this._eventsStrategy.fireEvent("customizeLoadResult",[P]),(0,g.gx)(P.data).done(B=>{P.data=B,this._processStoreLoadResult(P,w)}).fail(w.reject)}};return O.data?(new g.BH).resolve(O.data).done(T):this.store().load(O.storeLoadOptions).done(T).fail(w.reject)},_processStoreLoadResult(O,w){var T=O.data,k=O.extra,R=O.storeLoadOptions,P=()=>(this._isLoaded=!0,this._totalCount=isFinite(k.totalCount)?k.totalCount:-1,w.resolve(T,k));this._disposed||(T=this._applyPostProcessFunction(this._applyMapFunction(T)),(0,f.Kn)(k)||(k={}),this._items=T,(!T.length||!this._paginate||this._pageSize&&T.length<this._pageSize)&&(this._isLastPage=!0),R.requireTotalCount&&!isFinite(k.totalCount)?this.store().totalCount(R).done(function(B){k.totalCount=B,P()}).fail(w.reject):P())},_applyMapFunction(O){return this._mapFunc?(0,y.YI)(O,this._mapFunc,this.group()):O},_applyPostProcessFunction(O){return this._postProcessFunc?this._postProcessFunc(O):O},on(O,w){return this._eventsStrategy.on(O,w),this},off(O,w){return this._eventsStrategy.off(O,w),this}})},5981:(kn,he,l)=>{"use strict";l.d(he,{NE:()=>g,YI:()=>S,aN:()=>R,ir:()=>b,r6:()=>O,zR:()=>x});var o=l(4817),c=l(9943),I=l(9800),C=l(1937),f=l(820),a=l(2718),p=l(7344),s=l(5873),u=l(1828),d=l(2701),h=["items"],g="canceled",x=P=>"pending"===P.state(),b=P=>{switch(P.length){case 0:return;case 1:return P[0]}return[].slice.call(P)},E=(P,B,W)=>Array.isArray(P)?B?((P,B,W)=>(0,a.UI)(P,N=>{var V=(0,c.Z)(N,h);return(0,o.Z)({},V,{items:E(N.items,B-1,W)})}))(P,B,W):(0,a.UI)(P,W):P,S=(P,B,W)=>{var N=W?(0,d.G5)(W).length:0;return E(P,N,B)},O=(P,B)=>{var W;return null!==(W=P)&&void 0!==W&&W.data&&(B=P,P=P.data),Array.isArray(P)||(P=[P]),{data:P,extra:B}},w=P=>{var B={};return(0,a.S6)(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){B[this]=P[this],delete P[this]}),new p.Z(B)},k=(P,B)=>new p.Z({load:()=>I.Z.sendRequest({url:P,dataType:"json"}),loadMode:B?.fromUrlLoadMode}),R=(P,B)=>{var W;return"string"==typeof P&&(P={paginate:!1,store:k(P,B)}),void 0===P&&(P=[]),void 0===(P=Array.isArray(P)||P instanceof C.Z?{store:P}:(0,s.l)({},P)).store&&(P.store=[]),W=P.store,"load"in P?W=w(P):Array.isArray(W)?W=new f.Z(W):(0,u.PO)(W)&&(W=(P=>{var B=P.type;return delete P.type,C.Z.create(B,P)})((0,s.l)({},W))),P.store=W,P}},6051:(kn,he,l)=>{"use strict";l.d(he,{R0:()=>I,S3:()=>f});var o=l(9389),c=l(9644),I=(0,o.Z)(c.Z.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}"}),f=function(p){var s;null===(s=null)||void 0===s||s(p)}},7316:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>h});var o=l(3223),c=l(1035),I=l(6051),C=l(2718),f=l(1828),a=l(4270),u={array:o.Z,remote:function g(x,b,y){y=y||[],b=b||{};var E=function(w,T){return{name:w,args:T}},S=function(w){var k,R,P,B,W,K,Y,T=new a.BH,N=function(K){var Y=b.errorHandler;Y&&Y(K),(0,I.S3)(K),T.reject(K)};function V(K){switch(K.name){case"sortBy":return W=[K.args],!0;case"thenBy":if(!W)throw I.R0.Error("E4004");return W.push(K.args),!0}return!1}try{(0,f.mf)(k=b.adapter)||(k=c.Z[k]),R=k(b),P=[].concat(y).concat(w);var U=R.optimize;for(U&&U(P);P.length;){if(!V(B=P[0])){if(W){P.unshift(E("multiSort",[W])),W=null;continue}if("enumerate"!==String(B.name)&&(!R[B.name]||!1===R[B.name].apply(R,B.args)))break}P.shift()}Y=[],(K=P[0])&&"multiSort"===K.name&&(P.shift(),(0,C.S6)(K.args[0],function(){Y.push(E(Y.length?"thenBy":"sortBy",this))})),P=Y.concat(P),R.exec(x).done(function(K,Y){if(P.length){var J=(0,o.Z)(K,{errorHandler:b.errorHandler});(0,C.S6)(P,function(){J=J[this.name].apply(J,this.args)}),J.done(T.resolve).fail(T.reject)}else T.resolve(K,Y)}).fail(N)}catch(K){N(K)}return T.promise()},O={};return(0,C.S6)(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var w=String(this);O[w]=function(){return g(x,b,y.concat(E(w,arguments)))}}),(0,C.S6)(["count","min","max","sum","avg","aggregate","enumerate"],function(){var w=String(this);O[w]=function(){return S.call(this,E(w,arguments))}}),O}};const h=function(){var g=Array.isArray(arguments[0])?"array":"remote";return u[g].apply(this,arguments)}},1035:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>o});const o={}},3382:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>u});var o=l(7674),c=l(5873),I=l(2718),C=l(3223),f=l(2701);function a(d,h){return d=d.groupBy(h[0].selector),h.length>1&&(d=d.select(function(g){return(0,c.l)({},g,{items:a((0,C.Z)(g.items),h.slice(1)).toArray()})})),d}function p(d,h){var g=[];return(0,I.S6)(d,function(x,b){(0,o.h3)(h,function(E){return b.selector===E.selector}).length<1&&g.push(b)}),g.concat(h)}const u={multiLevelGroup:a,arrangeSortingInfo:p,queryByOptions:function s(d,h,g){var x=(h=h||{}).filter;if(x&&(d=d.filter(x)),g)return d;var b=h.sort,y=h.select,E=h.group,S=h.skip,O=h.take;return E&&((E=(0,f.G5)(E)).keepInitialKeyOrder=!!h.group.keepInitialKeyOrder),(b||E)&&(b=(0,f.G5)(b||[]),E&&!E.keepInitialKeyOrder&&(b=p(E,b)),(0,I.S6)(b,function(w){d=d[w?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),y&&(d=d.select(y)),E&&(d=a(d,E)),(O||S)&&(d=d.slice(S||0,O)),d}}},2701:(kn,he,l)=>{"use strict";l.d(he,{C5:()=>u,DE:()=>d,ER:()=>g,F$:()=>B,G5:()=>h,IN:()=>P,LE:()=>b,Lq:()=>E,OI:()=>S,Q2:()=>W,bG:()=>x,hi:()=>k,xL:()=>V});var K,U,o=l(1828),c=l(9897),I=l(3068),C=l(4514),f=l(2718),a=l(4270),p=l(7674),u="DEVEXTREME_XHR_ERROR_UNLOAD",d=function(U){return[U[0],U.length<3?"=":String(U[1]).toLowerCase(),U.length<2||U[U.length-1]]},h=function(U){return Array.isArray(U)||(U=[U]),(0,f.UI)(U,function(K){var Y={selector:(0,o.mf)(K)||"string"==typeof K?K:K.getter||K.field||K.selector,desc:!(!K.desc&&"d"!==String(K.dir).charAt(0).toLowerCase())};return K.compare&&(Y.compare=K.compare),Y})},g=(U={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},(0,I.Z.add)(function(){var Y=(0,C.Jj)();c.Z.listen(Y,"beforeunload",function(){K=!0})}),function(Y,J){return K?u:Y.status<400?U[j=J]||j:Y.statusText;var j}),x={count:{seed:0,step:function(U){return 1+U}},sum:{seed:0,step:function(U,K){return U+K}},min:{step:function(U,K){return K<U?K:U}},max:{step:function(U,K){return K>U?K:U}},avg:{seed:[0,0],step:function(U,K){return[U[0]+K,U[1]+1]},finalize:function(U){return U[1]?U[0]/U[1]:NaN}}},b=function(){var K,U=0;return{obtain:function(){0===U&&(K=new a.BH),U++},release:function(){--U<1&&K.resolve()},promise:function(){return(0===U?(new a.BH).resolve():K).promise()},reset:function(){U=0,K&&K.resolve()}}}();function E(U){return/^(and|&&|&)$/i.test(U)}var S=function(U,K,Y){if(Array.isArray(U)){for(var j,J=(0,f.UI)(K,function(G,q){return q}),ee=0;ee<J.length;ee++)if(!(0,p.bY)(K[j=J[ee]],Y[j],0,!1))return!1;return!0}return(0,p.bY)(K,Y,0,!1)},k=function(U){return"!"===U[0]&&Array.isArray(U[1])},P=function(U){var K=U[0],Y=U[1];return!!(Array.isArray(K)||(0,o.mf)(K)&&(Array.isArray(Y)||(0,o.mf)(Y)||function(U){return"and"===U||"or"===U}(Y)))},B=function(){var U=new a.BH;return U.resolve.apply(U,arguments).promise()},W=function(){var U=new a.BH;return U.reject.apply(U,arguments).promise()};function V(U,K){var Y=[],J=function N(U,K){var Y;return function(){return Y||(Y=setTimeout(()=>{Y=void 0,U.call(this)},(0,o.mf)(K)?K():K)),Y}}(function(){U.call(this,Y),Y=[]},K);return function(j){return Array.isArray(j)&&Y.push(...j),J.call(this,Y)}}},8264:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>S});var o=l(7122),c=l(5873),I=l(5981),C=l(7674),f=l(4270),a={load:()=>(0,f.BH)().reject(),loadSingle:()=>(0,f.BH)().reject(),loadFromStore:()=>(0,f.BH)().reject(),loadNextPage:()=>(0,f.BH)().reject(),loadOptions:C.ZT,userData:C.ZT,cancel:C.ZT,cancelAll:C.ZT,filter:C.ZT,addSearchFilter:C.ZT,group:C.ZT,paginate:C.ZT,pageSize:C.ZT,pageIndex:C.ZT,resetDataSourcePageIndex:C.ZT,totalCount:C.ZT,isLastPage:C.ZT,isLoading:C.ZT,isLoaded:C.ZT,searchValue:C.ZT,searchOperation:C.ZT,searchExpr:C.ZT,select:C.ZT,key:C.ZT,keyOf:C.ZT,store:C.ZT,items:C.ZT,applyMapFunction:C.ZT,getDataSource:C.ZT,reload:C.ZT,on:C.ZT,off:C.ZT};var u="_dataSourceOptions",d="_dataSourceChangedHandler",h="_dataSourceLoadErrorHandler",g="_dataSourceLoadingChangedHandler",x="_dataSourceFromUrlLoadMode",b="_getSpecificDataSourceOption",y="_normalizeDataSource";const S={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var w,T,O=b in this?this[b]():this.option("dataSource");this._disposeDataSource(),O&&(O instanceof o.o?(this._isSharedDataSource=!0,this._dataSource=O):(w=u in this?this[u]():{},T=this._dataSourceType?this._dataSourceType():o.o,O=(0,I.aN)(O,{fromUrlLoadMode:x in this&&this[x]()}),this._dataSource=new T((0,c.l)(!0,{},w,O))),y in this&&(this._dataSource=this[y](this._dataSource)),this._addDataSourceHandlers(),this._initDataController())},_initDataController:function(){var O,w=null===(O=this.option)||void 0===O?void 0:O.call(this,"_dataController");this._dataController=w||new class p{constructor(w){if(!w)return a;this._dataSource=w}load(){return this._dataSource.load()}loadSingle(w,T){return arguments.length<2&&(T=w,w=this.key()),this._dataSource.loadSingle(w,T)}loadFromStore(w){return this.store().load(w)}loadNextPage(){return this.pageIndex(1+this.pageIndex()),this.load()}loadOptions(){return this._dataSource.loadOptions()}userData(){return this._dataSource._userData}cancel(w){this._dataSource.cancel(w)}cancelAll(){this._dataSource.cancelAll()}filter(w){return this._dataSource.filter(w)}addSearchFilter(w){this._dataSource._addSearchFilter(w)}group(w){return this._dataSource.group(w)}paginate(){return this._dataSource.paginate()}pageSize(){return this._dataSource._pageSize}pageIndex(w){return this._dataSource.pageIndex(w)}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(w){return arguments.length?this._dataSource.searchValue(w):this._dataSource.searchValue()}searchOperation(w){return this._dataSource.searchOperation(w)}searchExpr(w){return arguments.length?this._dataSource.searchExpr(w):this._dataSource.searchExpr()}select(){return this._dataSource.select(...arguments)}key(){return this._dataSource.key()}keyOf(w){return this.store().keyOf(w)}store(){return this._dataSource.store()}items(){return this._dataSource.items()}applyMapFunction(w){return this._dataSource._applyMapFunction(w)}getDataSource(){return this._dataSource||null}reload(){return this._dataSource.reload()}on(w,T){this._dataSource.on(w,T)}off(w,T){this._dataSource.off(w,T)}}(this._dataSource)},_addDataSourceHandlers:function(){d in this&&this._addDataSourceChangeHandler(),h in this&&this._addDataSourceLoadErrorHandler(),g in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(O){this._ready&&this._ready(!O)}.bind(this))},_addDataSourceChangeHandler:function(){var O=this._dataSource;this._proxiedDataSourceChangedHandler=function(w){this[d](O.items(),w)}.bind(this),O.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[h].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[g].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){var O=this._dataSource;O&&(O.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():O.load())},_loadSingle:function(O,w){return O="this"===O?this._dataSource.key()||"this":O,this._dataSource.loadSingle(O,w)},_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}}},227:(kn,he,l)=>{"use strict";l.d(he,{u:()=>y});var o=l(9904),c=l(913),I=l(2941),C=l(9897),f=l(6520),p=(l(1536),l(8225)),s=l(4416);function u(R){return R&&[R.target,R.delegateTarget,R.relatedTarget,R.currentTarget].filter(P=>!!P)}var g=l(8690),x=l(3873),b=l(2203),y="dxclick",S=null,O=null,w=()=>{O=null},T=function(R){var P=R.originalEvent;(!R.which||1===R.which)&&!S&&!(O===P||P&&P.DXCLICK_FIRED)&&(P&&(P.DXCLICK_FIRED=!0),((R,P)=>{c.Z.off(u(R),s.x,P)})(O,w),((R,P)=>{c.Z.one(u(R),s.x,P)})(O=P,w),(0,p.BX)({type:y,originalEvent:R}))},k=x.Z.inherit({ctor:function(R){this.callBase(R),c.Z.on(this.getElement(),"click",T)},start:function(R){S=null},cancel:function(){S=!0},dispose:function(){c.Z.off(this.getElement(),"click",T)}});(function(){if(!I.Z.real().generic){var P=null,B=!1,W=C.Z.getDocument();c.Z.subscribeGlobal(W,(0,p.V4)(g.Z.down,"NATIVE_CLICK_FIXER"),function(N){P=N.target,B=N.isDefaultPrevented()}),c.Z.subscribeGlobal(W,(0,p.V4)("click","NATIVE_CLICK_FIXER"),function(N){var V=(0,o.Z)(N.target);!B&&P&&!V.is(P)&&!(0,o.Z)(P).is("label")&&(0,o.Z)(V).is("input, textarea, select, button ,:focus, :focus *")&&(0,f.M3)(),P=null,B=!1})}})(),(0,b.Z)({emitter:k,bubble:!0,events:[y]})},2480:(kn,he,l)=>{"use strict";l.d(he,{u:()=>b});var o=l(9904),c=l(913),I=l(4505),C=l(2941),f=l(5031),a=l(4377),p=l(8225),s=l(5180),u="dxContexMenu",d=(0,p.V4)("contextmenu",u),h=(0,p.V4)(s.Z.name,u),g="dxcontextmenu",x=f.Z.inherit({setup:function(y){var E=(0,o.Z)(y);c.Z.on(E,d,this._contextMenuHandler.bind(this)),(I.touch||C.Z.isSimulator())&&c.Z.on(E,h,this._holdHandler.bind(this))},_holdHandler:function(y){(0,p.N5)(y)&&!C.Z.isSimulator()||this._fireContextMenu(y)},_contextMenuHandler:function(y){this._fireContextMenu(y)},_fireContextMenu:function(y){return(0,p.BX)({type:g,originalEvent:y})},teardown:function(y){c.Z.off(y,"."+u)}});(0,a.Z)(g,new x);var b=g},1409:(kn,he,l)=>{"use strict";l.d(he,{bB:()=>u,dR:()=>E});var b,o=l(5031),c=l(7674),I=l(6520),C=l(2941),f=l(8225),a=l(8690),p=l(3873),s=l(2203),u="dxactive",d="dxinactive",x=o.Z.inherit({ctor:function(S,O){this._timeout=S,this._fire=O},start:function(){var S=this;this._schedule(function(){S.force()})},_schedule:function(S){this.stop(),this._timer=setTimeout(S,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),y=p.Z.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new x(0,c.ZT),this._inactive=new x(0,c.ZT)},configure:function(S,O){switch(O){case u:S.activeTimeout=S.timeout;break;case d:S.inactiveTimeout=S.timeout}this.callBase(S)},start:function(S){if(b){var O=(0,I.r3)(this.getElement().get(0),b.getElement().get(0)),w=!b._active.fired();if(O&&w)return void this._cancel();b._inactive.force()}b=this,this._initEvents(S),this._active.start()},_initEvents:function(S){var O=this,w=this._getEmitterTarget(S),T=(0,f.N5)(S),R=C.Z.isSimulator()||!T,P=(0,c.IS)(this.activeTimeout,30),B=(0,c.IS)(this.inactiveTimeout,400);this._active=new x(R?P:0,function(){O._fireEvent(u,S,{target:w})}),this._inactive=new x(R?B:0,function(){O._fireEvent(d,S,{target:w}),b=null})},cancel:function(S){this.end(S)},end:function(S){var O=S.type!==a.Z.up;O?this._active.stop():this._active.force(),this._inactive.start(),O&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),b===this&&(b=null),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),b=null,this._cancel(),this._inactive.force.bind(this._inactive)}});y.lock=function(S){var O=b?b.lockInactive():c.ZT;S.done(O)},(0,s.Z)({emitter:y,events:[u,d]});var E=y.lock},3873:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>s});var o=l(9904),c=l(7674),I=l(5031),C=l(5365),f=l(5873),a=l(8225);const s=I.Z.inherit({ctor:function(u){this._$element=(0,o.Z)(u),this._cancelCallback=(0,C.Z)(),this._acceptCallback=(0,C.Z)()},getElement:function(){return this._$element},validate:function(u){return!(0,a.pR)(u)},validatePointers:function(u){return 1===(0,a.G7)(u)},allowInterruptionByMouseWheel:function(){return!0},configure:function(u){(0,f.l)(this,u)},addCancelCallback:function(u){this._cancelCallback.add(u)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(u){this._cancelCallback.fire(this,u)},addAcceptCallback:function(u){this._acceptCallback.add(u)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(u){this._acceptCallback.fire(this,u)},_requestAccept:function(u){this._acceptRequestEvent=u},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:c.ZT,move:c.ZT,end:c.ZT,cancel:c.ZT,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(u,d,h){var g=(0,f.l)({type:u,originalEvent:d,target:this._getEmitterTarget(d),delegateTarget:this.getElement().get(0)},h);return(d=(0,a.BX)(g)).cancel&&this._cancel(d),d},_getEmitterTarget:function(u){return(this.delegateSelector?(0,o.Z)(u.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:c.ZT})},2203:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>w});var o=l(9904),c=l(3068),I=l(9897),C=l(913),f=l(5610),a=l(5031),p=l(5873),s=l(2718),u=l(4377),d=l(8225),h=l(8690),g=l(1186),x="dxEventManager",b="dxEmitter",E=new(a.Z.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){c.Z.add(function(){var T=I.Z.getDocument();C.Z.subscribeGlobal(T,(0,d.V4)(h.Z.down,x),this._pointerDownHandler.bind(this)),C.Z.subscribeGlobal(T,(0,d.V4)(h.Z.move,x),this._pointerMoveHandler.bind(this)),C.Z.subscribeGlobal(T,(0,d.V4)([h.Z.up,h.Z.cancel].join(" "),x),this._pointerUpHandler.bind(this)),C.Z.subscribeGlobal(T,(0,d.V4)(g.u,x),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(T){for(var k=this._activeEmitters||[],R=0;k.length>R;){var P=k[R];if(!1===T(P))break;k[R]===P&&R++}},_applyToEmitters:function(T,k){this._eachEmitter(function(R){R[T].call(R,k)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(T){this._proxiedCancelHandler(T)},_pointerDownHandler:function(T){(0,d.N5)(T)&&T.which>1||this._updateEmitters(T)},_updateEmitters:function(T){this._isSetChanged(T)&&(this._cleanEmitters(T),this._fetchEmitters(T))},_isSetChanged:function(T){var k=this._closestEmitter(T),R=this._emittersSet||[],P=k.length!==R.length;return(0,s.S6)(k,function(B,W){return!(P=P||R[B]!==W)}),this._emittersSet=k,P},_closestEmitter:function(T){var k=this,R=[],P=(0,o.Z)(T.target);function B(N,V){V&&V.validatePointers(T)&&V.validate(T)&&(V.addCancelCallback(k._proxiedCancelHandler),V.addAcceptCallback(k._proxiedAcceptHandler),R.push(V))}for(;P.length;){var W=(0,f.aT)(P.get(0),b)||[];(0,s.S6)(W,B),P=P.parent()}return R},_acceptHandler:function(T,k){var R=this;this._eachEmitter(function(P){P!==T&&R._cancelEmitter(P,k)})},_cancelHandler:function(T,k){this._cancelEmitter(T,k)},_cancelEmitter:function(T,k){var R=this._activeEmitters;k?T.cancel(k):T.reset(),T.removeCancelCallback(),T.removeAcceptCallback();var P=R.indexOf(T);P>-1&&R.splice(P,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(k){return T=k.allowInterruptionByMouseWheel()&&T}),T},_adjustWheelEvent:function(T){var k=null;if(this._eachEmitter(function(W){if(W.gesture){var N=W.getDirection(T);if("horizontal"!==N&&!T.shiftKey||"vertical"!==N&&T.shiftKey)return k=W,!1}}),k){var R=k.getDirection(T);T["both"===R&&!T.shiftKey||"vertical"===R?"pageY":"pageX"]+=T.delta}},isActive:function(T){var k=!1;return this._eachEmitter(function(R){k=k||R.getElement().is(T)}),k}})),S="dxEmitterSubscription";const w=function(T){var k=T.emitter,R=T.events[0],P=T.events;(0,s.S6)(P,function(B,W){(0,u.Z)(W,{noBubble:!T.bubble,setup:function(N){var V=(0,f.aT)(N,S)||{},U=(0,f.aT)(N,b)||{},K=U[R]||new k(N);V[W]=!0,U[R]=K,(0,f.aT)(N,b,U),(0,f.aT)(N,S,V)},add:function(N,V){(0,f.aT)(N,b)[R].configure((0,p.l)({delegateSelector:V.selector},V.data),V.type)},teardown:function(N){var V=(0,f.aT)(N,S),U=(0,f.aT)(N,b),K=U[R];delete V[W];var Y=!0;(0,s.S6)(P,function(J,j){return Y=Y&&!V[j]}),Y&&(E.isActive(N)&&E.resetEmitter(K),K&&K.dispose(),delete U[R])}})})}},4377:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>C});var o=l(2718),c=l(6856),I=function(f,a){var p={};"noBubble"in a&&(p.noBubble=a.noBubble),"bindType"in a&&(p.bindType=a.bindType),"delegateType"in a&&(p.delegateType=a.delegateType),(0,o.S6)(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(s,u){a[u]&&(p[u]=function(){var d=[].slice.call(arguments);return d.unshift(this),a[u].apply(a,d)})}),c.Z.fire(f,p)};I.callbacks=c.Z;const C=I},6856:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>c});const c=new(l(8174).Z)},913:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>_e});var o=l(4817),c=l(6856),I=l(5873),C=l(9897),f=l(4514),a=l(2793),p=l(1828),s=l(5365),u=l(9644),d=["pageX","pageY","screenX","screenY","clientX","clientY"],x=l(4304),b=(0,f.Jj)(),y="dxEmptyEventType",E={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},S={focusin:"focus",focusout:"blur"},O=["blur","focus","load"],w=["touchmove","wheel","mousewheel","touchstart"];function k(ie,de){return!(0,p.FJ)(ie)&&"#document"!==ie.nodeName&&C.Z.elementMatches(ie,de)}var B,ie,R=new WeakMap,P=0,W=(ie={},c.Z.add(function(de,le){ie[de]=le}),{getField:function(de,le){return ie[de]&&ie[de][le]},callMethod:function(de,le,pe,Ee){return ie[de]&&ie[de][le]&&ie[de][le].apply(pe,Ee)}}),N=(0,a.Z)({on:U(q(se(function(ie,de,le,pe,Ee){j(ie,de).addHandler(Ee,le,pe)}))),one:U(q(function(ie,de,le,pe,Ee){N.on(ie,de,le,pe,function ae(){N.off(ie,de,le,ae),Ee.apply(this,arguments)})})),off:U(function Z(ie){return function(de,le,pe,Ee){"function"==typeof pe&&(Ee=pe,pe=void 0),ie(de,le,pe,Ee)}}(se(function(ie,de,le,pe){j(ie,de).removeHandler(pe,le)}))),trigger:U(X(function(ie,de,le){var pe=de.type,Ee=j(ie,de.type);if(W.callMethod(pe,"trigger",ie,[de,le]),Ee.callHandlers(de,le),!W.getField(pe,"noBubble")&&!de.isPropagationStopped()&&-1===O.indexOf(pe)){var te=[];(function ye(Pe){var Ne,ft=null!==(Ne=Pe.parentNode)&&void 0!==Ne?Ne:Pe.host;ft&&(te.push(ft),ye(ft))})(ie),te.push(b);for(var re=0;te[re]&&!de.isPropagationStopped();)j(te[re],de.type).callHandlers((0,I.l)(de,{currentTarget:te[re]}),le),re++}(ie.nodeType||(0,p.FJ)(ie))&&(W.callMethod(pe,"_default",ie,[de,le]),function ge(ie,de){var le=S[ie]||ie;(function(pe,Ee){return"click"===pe&&"a"===Ee.localName})(ie,de)||(0,p.mf)(de[le])&&(B=ie,de[le](),B=void 0)}(pe,ie))})),triggerHandler:U(X(function(ie,de,le){j(ie,de.type).callHandlers(de,le)}))});function V(ie,de){var le=ie[0];if(le)if(C.Z.isNode(le)||(0,p.FJ)(le))de.apply(N,ie);else{if((0,p.HD)(le)||!("length"in le))throw u.Z.Error("E0025");var pe=Array.prototype.slice.call(ie,0);Array.prototype.forEach.call(le,function(Ee){pe[0]=Ee,V(pe,de)})}}function U(ie){return function(){V(arguments,ie)}}var Y=(0,x.Z)(function K(){var ie=!1;try{var de=Object.defineProperty({},"passive",{get:function(){return ie=!0,!0}});b.addEventListener("test",null,de)}catch{}return ie}),J=(ie,de)=>(0,p.FJ)(ie)?J(ie.document,de):ie.contains?ie.contains(de):!!(de.compareDocumentPosition(ie)&de.DOCUMENT_POSITION_CONTAINS);function j(ie,de){var le=R.get(ie),pe=(de=de||"").split("."),Ee=pe.slice(1),ae=!!pe[0];de=pe[0]||y,le||R.set(ie,le={}),le[de]||(le[de]={handleObjects:[],nativeHandler:null});var te=le[de];return{addHandler:function(re,oe,ye){var Pe=function(mt,nn){var xe,Te,ke=[mt],$e=mt.currentTarget,me=mt.relatedTarget;de in E&&(xe=me&&$e&&(me===$e||J($e,me))),void 0!==nn&&ke.push(nn),W.callMethod(de,"handle",ie,[mt,ye]),xe||(Te=re.apply($e,ke)),!1===Te&&(mt.preventDefault(),mt.stopPropagation())},Ne={handler:re,wrappedHandler:function(mt,nn){if(!B||mt.type!==B)if(mt.data=ye,mt.delegateTarget=ie,oe)for(var ke=mt.target;ke&&ke!==ie;)k(ke,oe)&&(mt.currentTarget=ke,Pe(mt,nn)),ke=ke.parentNode;else mt.currentTarget=mt.delegateTarget||mt.target,Pe(mt,nn)},selector:oe,type:de,data:ye,namespace:Ee.join("."),namespaces:Ee,guid:++P};te.handleObjects.push(Ne);var Be,tt=1===te.handleObjects.length&&ae;tt&&(tt=!W.callMethod(de,"setup",ie,[ye,Ee,re])),tt&&(te.nativeHandler=function ee(ie){return function(de,le){var pe=j(this,ie);de=N.Event(de),pe.callHandlers(de,le)}}(de),Y()&&w.indexOf(de)>-1&&(Be={passive:!1}),te.removeListener=C.Z.listen(ie,E[de]||de,te.nativeHandler,Be)),W.callMethod(de,"add",ie,[Ne])},removeHandler:function(re,oe){var ye=function(ft){var Be,tt=le[ft];tt.handleObjects.length?(tt.handleObjects=tt.handleObjects.filter(function(ke){var $e=Ee.length&&!G(ke.namespaces,Ee)||re&&ke.handler!==re||oe&&ke.selector!==oe;return $e||(Be=ke.handler,W.callMethod(ft,"remove",ie,[ke])),$e}),!tt.handleObjects.length&&ft!==y&&(W.callMethod(ft,"teardown",ie,[Ee,Be]),tt.nativeHandler&&tt.removeListener(),delete le[ft])):delete le[ft]};if(ae)ye(de);else for(var Pe in le)ye(Pe);0===Object.keys(le).length&&R.delete(ie)},callHandlers:function(re,oe){var ye=!1,Pe=function(Ne){ye||(!Ee.length||G(Ne.namespaces,Ee))&&(Ne.wrappedHandler(re,oe),ye=re.isImmediatePropagationStopped())};te.handleObjects.forEach(Pe),Ee.length&&le[y]&&le[y].handleObjects.forEach(Pe)}}}function G(ie,de){for(var le=0;le<de.length;le++)if(ie.indexOf(de[le])<0)return!1;return!0}function q(ie){return function(de,le,pe,Ee,ae){ae||(ae=Ee,Ee=void 0),"string"!=typeof pe&&(Ee=pe,pe=void 0),!ae&&"string"==typeof le&&(ae=Ee||pe,pe=void 0,Ee=void 0),ie(de,le,pe,Ee,ae)}}function X(ie){return function(de,le,pe){"string"==typeof le&&(le={type:le}),le.target||(le.target=de),le.currentTarget=de,le.delegateTarget||(le.delegateTarget=de),!le.type&&le.originalEvent&&(le.type=le.originalEvent.type),ie(de,le instanceof N.Event?le:N.Event(le),pe)}}function se(ie){var de=function(le,pe){if(pe&&pe.indexOf(" ")>-1){var Ee=Array.prototype.slice.call(arguments,0);pe.split(" ").forEach(function(ae){Ee[1]=ae,ie.apply(this,Ee)})}else ie.apply(this,arguments)};return function(le,pe){if("object"==typeof pe){var Ee=Array.prototype.slice.call(arguments,0);for(var ae in pe)Ee[1]=ae,Ee[Ee.length-1]=pe[ae],de.apply(this,Ee)}else de.apply(this,arguments)}}function De(ie){return null==(de=ie).which&&0===de.type.indexOf("key")?null!=ie.charCode?ie.charCode:ie.keyCode:function(de){return!de.which&&void 0!==de.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(de.type)}(ie)?{1:1,2:3,3:1,4:2}[ie.button]:ie.which;var de}function Fe(ie){ie&&(N.Event=ie,N.Event.prototype=ie.prototype)}function Ae(ie,de,le){Object.defineProperty(le||N.Event.prototype,ie,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&de(this.originalEvent)},set:function(pe){Object.defineProperty(this,ie,{enumerable:!0,configurable:!0,writable:!0,value:pe})}})}Fe(function M(ie){return N.Event=function(de,le){if(!(this instanceof N.Event))return new N.Event(de,le);de||(de={}),"string"==typeof de&&(de={type:de}),le||(le={}),ie.call(this,de,le)},(0,o.Z)(N.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()}}),N.Event}(function(ie,de){var le;ie instanceof N.Event||(0,f.Ym)()&&ie instanceof b.Event||(null===(le=ie.view)||void 0===le?void 0:le.Event)&&ie instanceof ie.view.Event?(this.originalEvent=ie,this.type=ie.type,this.currentTarget=void 0,Object.prototype.hasOwnProperty.call(ie,"isTrusted")&&(this.isTrusted=ie.isTrusted),this.timeStamp=ie.timeStamp||Date.now()):(0,o.Z)(this,ie),Ae("which",De,this),0===ie.type.indexOf("touch")&&(delete de.pageX,delete de.pageY),(0,o.Z)(this,de),this.guid=++P})),["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(ie=>Ae(ie,de=>de[ie])),function g(ie){d.forEach(function(de){ie(de,function(le){return function(ie,de){if(de[ie]&&!de.touches||!de.touches)return de[ie];var le=de.touches.length?de.touches:de.changedTouches;return le.length?le[0][ie]:void 0}(de,le)})},this)}(Ae);var ne=(0,s.Z)(),fe=(0,s.Z)();N.set=function(ie){ne.fire(),N.inject(ie),Fe(ie.Event),fe.fire()},N.subscribeGlobal=function(){V(arguments,q(function(){var ie=arguments;N.on.apply(this,ie),ne.add(function(){var de=Array.prototype.slice.call(ie,0);de.splice(3,1),N.off.apply(this,de)}),fe.add(function(){N.on.apply(this,ie)})}))},N.forcePassiveFalseEventNames=w,N.passiveEventHandlersSupported=Y;const _e=N},8478:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>h});var o=l(9904),c=l(913),I=l(5031),C=l(8225),f="compositionstart",s="KeyboardProcessor",u=g=>({keyName:(0,C.EV)(g),key:g.key,code:g.code,ctrl:g.ctrlKey,location:g.location,metaKey:g.metaKey,shift:g.shiftKey,alt:g.altKey,which:g.which,originalEvent:g}),d=I.Z.inherit({_keydown:(0,C.V4)("keydown",s),_compositionStart:(0,C.V4)(f,s),_compositionEnd:(0,C.V4)("compositionend",s),ctor:function(g){(g=g||{}).element&&(this._element=(0,o.Z)(g.element)),g.focusTarget&&(this._focusTarget=g.focusTarget),this._handler=g.handler,this._element&&(this._processFunction=x=>{var b=(0,o.Z)(this._focusTarget).toArray(),y=this._focusTarget&&this._focusTarget!==x.target&&!b.includes(x.target),E=this._isComposingJustFinished&&229===x.which||this._isComposing||y;this._isComposingJustFinished=!1,E||this.process(x)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),c.Z.on(this._element,this._keydown,this._processFunction),c.Z.on(this._element,this._compositionStart,this._toggleProcessingWithContext),c.Z.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(c.Z.off(this._element,this._keydown,this._processFunction),c.Z.off(this._element,this._compositionStart,this._toggleProcessingWithContext),c.Z.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0},process:function(g){this._handler(u(g))},toggleProcessing:function(g){var{type:x}=g;this._isComposing=x===f,this._isComposingJustFinished=!this._isComposing}});d.createKeyDownOptions=u;const h=d},1186:(kn,he,l)=>{"use strict";l.d(he,{u:()=>f});var o=l(9904),c=l(913),I=l(4377),C=l(8225),f="dxmousewheel",a="dxWheel",d={setup:function(h){var g=(0,o.Z)(h);c.Z.on(g,(0,C.V4)("wheel",a),d._wheelHandler.bind(d))},teardown:function(h){c.Z.off(h,".".concat(a))},_wheelHandler:function(h){var{deltaMode:g,deltaY:x,deltaX:b,deltaZ:y}=h.originalEvent;(0,C.BX)({type:f,originalEvent:h,delta:this._normalizeDelta(x,g),deltaX:b,deltaY:x,deltaZ:y,deltaMode:g,pointerType:"mouse"}),h.stopPropagation()},_normalizeDelta(h){return 0===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)?-h:-30*h}};(0,I.Z)(f,d)},1384:(kn,he,l)=>{"use strict";l.d(he,{u:()=>s});var o=l(913),c=l(6520),I=l(9897),C=l(5031),f=l(4377),a=l(227),p=l(8225),s="dxdblclick",d=(0,p.V4)(a.u,"dxDblClick"),g=C.Z.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-300},add:function(){this._handlerCount<=0&&o.Z.on(I.Z.getDocument(),d,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(x){var b=x.timeStamp||Date.now(),y=b-this._lastClickTimeStamp;!(y<0)&&y<300?((0,p.BX)({type:s,target:(0,c.Ls)(this._firstClickTarget,x.target),originalEvent:x}),this._forgetLastClick()):(this._firstClickTarget=x.target,this._lastClickTimeStamp=b)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),o.Z.off(I.Z.getDocument(),d))}});(0,f.Z)(s,new g)},6722:(kn,he,l)=>{"use strict";l.d(he,{BL:()=>d,Cw:()=>y,IO:()=>x,Zu:()=>b,pB:()=>h,ut:()=>g});var o=l(9904),c=l(5610),I=l(9960),C=l(2718),f=l(6520),a=l(4377),p=l(8225),s=l(4755),u=l(2203),d="dxdragstart",h="dxdrag",g="dxdragend",x="dxdragenter",b="dxdragleave",y="dxdrop",E="dxDragEventsCount",S=[],O=[],w=[],T={setup:function(N,V){S.includes(N)||(S.push(N),O.push([]),w.push(V||{}))},add:function(N,V){var U=S.indexOf(N);this.updateEventsCounter(N,V.type,1);var K=V.selector;O[U].includes(K)||O[U].push(K)},updateEventsCounter:function(N,V,U){if([x,b,y].indexOf(V)>-1){var K=(0,c.aT)(N,E)||0;(0,c.aT)(N,E,Math.max(0,K+U))}},remove:function(N,V){this.updateEventsCounter(N,V.type,-1)},teardown:function(N){if(!(0,c.aT)(N,E)){var U=S.indexOf(N);S.splice(U,1),O.splice(U,1),w.splice(U,1),(0,c.NU)(N,E)}}};(0,a.Z)(x,T),(0,a.Z)(b,T),(0,a.Z)(y,T);var W=s.Z.inherit({ctor:function(N){this.callBase(N),this.direction="both"},_init:function(N){this._initEvent=N},_start:function(N){if(N=this._fireEvent(d,this._initEvent),this._maxLeftOffset=N.maxLeftOffset,this._maxRightOffset=N.maxRightOffset,this._maxTopOffset=N.maxTopOffset,this._maxBottomOffset=N.maxBottomOffset,N.targetElements||null===N.targetElements){var V=(0,I.sE)(N.targetElements||[]);this._dropTargets=C.UI(V,function(U){return(0,o.Z)(U).get(0)})}else this._dropTargets=S},_move:function(N){var V=(0,p.a0)(N),U=this._calculateOffset(V);N=this._fireEvent(h,N,{offset:U}),this._processDropTargets(N),N._cancelPreventDefault||N.preventDefault()},_calculateOffset:function(N){return{x:this._calculateXOffset(N),y:this._calculateYOffset(N)}},_calculateXOffset:function(N){return"vertical"!==this.direction?this._fitOffset(N.x-this._startEventData.x,this._maxLeftOffset,this._maxRightOffset):0},_calculateYOffset:function(N){return"horizontal"!==this.direction?this._fitOffset(N.y-this._startEventData.y,this._maxTopOffset,this._maxBottomOffset):0},_fitOffset:function(N,V,U){return null!=V&&(N=Math.max(N,-V)),null!=U&&(N=Math.min(N,U)),N},_processDropTargets:function(N){var V=this._findDropTarget(N);V===this._currentDropTarget||(this._fireDropTargetEvent(N,b),this._currentDropTarget=V,this._fireDropTargetEvent(N,x))},_fireDropTargetEvent:function(N,V){if(this._currentDropTarget){var U={type:V,originalEvent:N,draggingElement:this._$element.get(0),target:this._currentDropTarget};(0,p.BX)(U)}},_findDropTarget:function(N){var U,V=this;return C.S6(S,function(K,Y){if(V._checkDropTargetActive(Y)){var J=(0,o.Z)(Y);C.S6(function(N){var V=S.indexOf(N.get(0)),U=O[V].filter(Y=>Y),K=N.find(U.join(", "));return O[V].includes(void 0)&&(K=K.add(N)),K}(J),function(j,ee){var G=(0,o.Z)(ee);V._checkDropTarget(function(N){var V=S.indexOf(N.get(0));return w[V]}(J),G,(0,o.Z)(U),N)&&(U=ee)})}}),U},_checkDropTargetActive:function(N){var V=!1;return C.S6(this._dropTargets,function(U,K){return!(V=V||K===N||(0,f.r3)(K,N))}),V},_checkDropTarget:function(N,V,U,K){if(V.get(0)===(0,o.Z)(K.target).get(0))return!1;var J=function(N,V){return N.itemPositionFunc?N.itemPositionFunc(V):V.offset()}(N,V);if(K.pageX<J.left||K.pageY<J.top)return!1;var j=function(N,V){return N.itemSizeFunc?N.itemSizeFunc(V):{width:V.get(0).getBoundingClientRect().width,height:V.get(0).getBoundingClientRect().height}}(N,V);return!(K.pageX>J.left+j.width||K.pageY>J.top+j.height||U.length&&U.closest(V).length||N.checkDropTarget&&!N.checkDropTarget(V,K))&&V},_end:function(N){var V=(0,p.a0)(N);this._fireEvent(g,N,{offset:this._calculateOffset(V)}),this._fireDropTargetEvent(N,y),delete this._currentDropTarget}});(0,u.Z)({emitter:W,events:[d,h,g]})},4755:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>W});var o=l(9904),c=l(913),I=l(2941),C=l(4356),f=l(4304),a=l(6520),p=l(3068),s=l(3487),u=l(7674),d=l(1828),h=l(8225),g=l(3873),x=p.Z.add,b=Math.abs,O=10,R=(0,f.Z)(function(){var N="desktop"===I.Z.real().deviceType;if(!(0,C.Hj)("pointer-events")||!N)return u.ZT;var V=(0,o.Z)("<div>").addClass("dx-gesture-cover").css("pointerEvents","none");return c.Z.subscribeGlobal(V,"dxmousewheel",function(U){U.preventDefault()}),x(function(){V.appendTo("body")}),function(U,K){V.css("pointerEvents",U?"all":"none"),U&&V.css("cursor",K)}}),B=g.Z.inherit({gesture:!0,configure:function(N){this.getElement().css("msTouchAction",N.immediate?"pinch-zoom":""),this.callBase(N)},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(N){N._needSkipEvent||(0,h.r1)(N)?this._cancel(N):(this._startEvent=(0,h.yM)(N),this._startEventData=(0,h.a0)(N),this._stage=1,this._init(N),this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),180))},move:function(N){if(1===this._stage&&this._directionConfirmed(N)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(N),this._adjustStartEvent(N),this._start(this._startEvent),0===this._stage)return;this._requestAccept(N),this._move(N),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(N),this._move(N))},_directionConfirmed:function(N){var V=this._getTouchBoundary(N),U=(0,h.hM)(this._startEventData,(0,h.a0)(N)),K=b(U.x),Y=b(U.y),J=this._validateMove(V,K,Y),j=this._validateMove(V,Y,K),ee=this.getDirection(N);return"both"===ee&&(J||j)||"horizontal"===ee&&J||"vertical"===ee&&j||this._immediateAccepted},_validateMove:function(N,V,U){return V&&V>=N&&(!this.immediate||V>=U)},_getTouchBoundary:function(N){return this.immediate||(0,h.pR)(N)?0:O},_adjustStartEvent:function(N){var V=this._getTouchBoundary(N),U=(0,h.hM)(this._startEventData,(0,h.a0)(N));this._startEvent.pageX+=(0,s.Xx)(U.x)*V,this._startEvent.pageY+=(0,s.Xx)(U.y)*V},_resetActiveElement:function(){"ios"===I.Z.real().platform&&this.getElement().find(":focus").length&&(0,a.M3)()},_toggleGestureCover:function(N){this._toggleGestureCoverImpl(N)},_toggleGestureCoverImpl:function(N){2===this._stage&&function(N,V){R()(N,V)}(N,this.getElement().css("cursor"))},_clearSelection:function(N){(0,h.pR)(N)||(0,h.z6)(N)||(0,a.MO)()},end:function(N){this._toggleGestureCover(!1),2===this._stage?this._end(N):1===this._stage&&this._stop(N),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:u.ZT,_start:u.ZT,_move:u.ZT,_stop:u.ZT,_end:u.ZT});B.initialTouchBoundary=O,B.touchBoundary=function(N){if(!(0,d.$K)(N))return O;O=N};const W=B},7772:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>R});var P,o=l(913),c=l(5031),I=l(8225),C=l(4755),f=l(2203),a=l(1536),p=l(2941),s=c.Z.abstract,u=p.Z.real(),d="scroll",h="dxscrollinit",g="dxscrollstart",x="dxscroll",b="dxscrollend",y="dxscrollstop",E="dxscrollcancel",S=c.Z.inherit((P=(0,I.V4)(d,"dxScrollEmitter"),{ctor:function(B){this._element=B,this._locked=!1,this._proxiedScroll=W=>{this._disposed||this._scroll(W)},o.Z.on(this._element,P,this._proxiedScroll)},_scroll:s,check:function(B,W){this._locked&&W()},dispose:function(){this._disposed=!0,o.Z.off(this._element,P,this._proxiedScroll)}})),O=S.inherit({ctor:function(P,B){this.callBase(P),this._timeout=B},_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 P=this;this._timer=setTimeout(function(){P._clearTimer()},this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}),w=O.inherit({ctor:function(P){this.callBase(P,400),this._lastWheelDirection=null},check:function(P,B){this._checkDirectionChanged(P),this.callBase(P,B)},_checkDirectionChanged:function(P){if((0,I.pR)(P)){var B=P.shiftKey||!1,W=null!==this._lastWheelDirection&&B!==this._lastWheelDirection;this._lastWheelDirection=B,this._locked=this._locked&&!W}else this._lastWheelDirection=null}}),T=O.inherit({ctor:function(P){this.callBase(P,400)}});!function(){var{ios:P,android:B}=u;(P||B)&&(T=S.inherit({_scroll:function(){this._locked=!0;var W=this;(0,a.W)(this._scrollFrame),this._scrollFrame=(0,a.U)(function(){W._locked=!1})},check:function(W,N){(0,a.W)(this._scrollFrame),(0,a.W)(this._checkFrame);var V=this,U=this.callBase;this._checkFrame=(0,a.U)(function(){U.call(V,W,N),V._locked=!1})},dispose:function(){this.callBase(),(0,a.W)(this._scrollFrame),(0,a.W)(this._checkFrame)}}))}();var k=C.Z.inherit(function(){var P=Math.round(16.666666666666668);return{ctor:function(B){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new T(B),this._wheelLocker=new w(B)},validate:function(){return!0},configure:function(B){B.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new T(B.scrollTarget),this._wheelLocker=new w(B.scrollTarget)),this.callBase(B)},_init:function(B){this._wheelLocker.check(B,function(){(0,I.pR)(B)&&this._accept(B)}.bind(this)),this._pointerLocker.check(B,function(){var W=this.isNative&&(0,I.N5)(B);!(0,I.pR)(B)&&!W&&this._accept(B)}.bind(this)),this._fireEvent(h,B),this._prevEventData=(0,I.a0)(B)},move:function(B){this.callBase.apply(this,arguments),B.isScrollingEvent=this.isNative||B.isScrollingEvent},_start:function(B){this._savedEventData=(0,I.a0)(B),this._fireEvent(g,B),this._prevEventData=(0,I.a0)(B)},_move:function(B){var W=(0,I.a0)(B);this._fireEvent(x,B,{delta:(0,I.hM)(this._prevEventData,W)}),(0,I.hM)(this._savedEventData,W).time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=(0,I.a0)(B)},_end:function(B){var W=(0,I.hM)(this._prevEventData,(0,I.a0)(B)),N={x:0,y:0};if(!(0,I.pR)(B)&&W.time<100){var V=(0,I.hM)(this._savedEventData,this._prevEventData),U=P/V.time;N={x:V.x*U,y:V.y*U}}this._fireEvent(b,B,{velocity:N})},_stop:function(B){this._fireEvent(y,B)},cancel:function(B){this.callBase.apply(this,arguments),this._fireEvent(E,B)},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)}}}());(0,f.Z)({emitter:k,events:[h,g,x,b,y,E]});const R={init:h,start:g,move:x,end:b,stop:y,cancel:E,scroll:d}},4969:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>g});var o=l(1918),c=l(913),I=l(8893),C=l(2718),f=l(8225),a=l(5873),p=l(6165),s="dxSwipeable",d={onStart:o.BL,onUpdated:o.aq,onEnd:o.ut,onCancel:"dxswipecancel"},h=I.Z.inherit({_getDefaultOptions:function(){return(0,a.l)(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 x=this.NAME;this._createEventData(),(0,C.S6)(d,function(b,y){var E=this._createActionByOption(b,{context:this});y=(0,f.V4)(y,x),c.Z.on(this.$element(),y,this._eventData,function(S){return E({event:S})})}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){c.Z.off(this.$element(),"."+s)},_optionChanged:function(x){switch(x.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(x)}},_useTemplates:function(){return!1}});(0,p.u2)(h,s);const g=h},5180:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>u});var o=l(8225),c=l(3873),I=l(2203),C=Math.abs,f="dxhold",s=c.Z.inherit({start:function(d){this._startEventData=(0,o.a0)(d),this._startTimer(d)},_startTimer:function(d){var h="timeout"in this?this.timeout:750;this._holdTimer=setTimeout(function(){this._requestAccept(d),this._fireEvent(f,d,{target:d.target}),this._forgetAccept()}.bind(this),h)},move:function(d){this._touchWasMoved(d)&&this._cancel(d)},_touchWasMoved:function(d){var h=(0,o.hM)(this._startEventData,(0,o.a0)(d));return C(h.x)>5||C(h.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});(0,I.Z)({emitter:s,bubble:!0,events:[f]});const u={name:f}},5239:(kn,he,l)=>{"use strict";l.d(he,{B:()=>u,u:()=>g});var o=l(913),c=l(5610),I=l(5031),C=l(2941),f=l(4377),a=l(8225),p=l(8690),s="dxHoverStart",u="dxhoverstart",d=(0,a.V4)(p.Z.enter,s),h="dxHoverEnd",g="dxhoverend",x=(0,a.V4)(p.Z.leave,h),b=I.Z.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(S){(0,c.aT)(S,this._handlerArrayKeyPath,{})},add:function(S,O){var w=this,T=function(k){w._handler(k)};o.Z.on(S,this._originalEventName,O.selector,T),(0,c.aT)(S,this._handlerArrayKeyPath)[O.guid]=T},_handler:function(S){(0,a.z6)(S)||C.Z.isSimulator()||(0,a.BX)({type:this._eventName,originalEvent:S,delegateTarget:S.delegateTarget})},remove:function(S,O){var w=(0,c.aT)(S,this._handlerArrayKeyPath)[O.guid];o.Z.off(S,this._originalEventName,O.selector,w)},teardown:function(S){(0,c.NU)(S,this._handlerArrayKeyPath)}}),y=b.inherit({ctor:function(){this._eventNamespace=s,this._eventName=u,this._originalEventName=d,this.callBase()},_handler:function(S){(S.pointers||[]).length||this.callBase(S)}}),E=b.inherit({ctor:function(){this._eventNamespace=h,this._eventName=g,this._originalEventName=x,this.callBase()}});(0,f.Z)(u,new y),(0,f.Z)(g,new E)},2721:(kn,he,l)=>{"use strict";l.d(he,{J_:()=>I,ju:()=>p,y_:()=>a});var o=l(913),I=o.Z.one,a=o.Z.triggerHandler,p=o.Z.Event},8690:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>M});var o=l(4505),c=l(2718),I=l(2941),C=l(4377),f=l(5873),a=l(913),p=l(4722),s=l(9897),u=l(5031),d=l(8225),h="dxPointerEvents";const x=u.Z.inherit({ctor:function(se,ge){this._eventName=se,this._originalEvents=(0,d.V4)(ge,h),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var se=this._eventName;return"dxpointerenter"===se||"dxpointerleave"===se},_handler:function(se){var ge,De=this._getDelegateTarget(se),Fe={type:this._eventName,pointerType:se.pointerType||(0,d.J6)(se),originalEvent:se,delegateTarget:De,timeStamp:p.Z.mozilla?(new Date).getTime():se.timeStamp},Ae=se.originalEvent;if(null!=Ae&&null!==(ge=Ae.target)&&void 0!==ge&&ge.shadowRoot){var ne,fe,_e=null!==(ne=Ae.path)&&void 0!==ne?ne:null===(fe=Ae.composedPath)||void 0===fe?void 0:fe.call(Ae);Fe.target=_e[0]}return this._fireEvent(Fe)},_getDelegateTarget:function(se){var ge;return this.noBubble&&(ge=se.delegateTarget),ge},_fireEvent:function(se){return(0,d.BX)(se)},_setSelector:function(se){this._selector=this.noBubble&&se?se.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(se,ge){if(this._handlerCount<=0||this.noBubble){se=this.noBubble?se:s.Z.getDocument(),this._setSelector(ge);var De=this;a.Z.on(se,this._originalEvents,this._getSelector(),function(Fe){De._handler(Fe)})}this.noBubble||this._handlerCount++},remove:function(se){this._setSelector(se),this.noBubble||this._handlerCount--},teardown:function(se){this._handlerCount&&!this.noBubble||(se=this.noBubble?se:s.Z.getDocument(),this._originalEvents!=="."+h&&a.Z.off(se,this._originalEvents,this._getSelector()))},dispose:function(se){se=this.noBubble?se:s.Z.getDocument(),a.Z.off(se,this._originalEvents)}});var y=function(se){var ge=[];return(0,c.S6)(se.touches,function(De,Fe){ge.push((0,f.l)({pointerId:Fe.identifier},Fe))}),{pointers:ge,pointerId:se.changedTouches[0].identifier}},E=function(se){return"ios"===I.Z.real().platform&&("dxpointerdown"===se||"dxpointerup"===se)},S=x.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(se){if(E(this._eventName)){var ge=se.changedTouches[0];if(this._pointerId===ge.identifier&&0!==this._pointerId)return;this._pointerId=ge.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(se){return this.callBase((0,f.l)(y(se.originalEvent),se))}});S.map={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},S.normalize=y;const O=S;var w=l(3068),T=function(se,ge){w.Z.add(function(){se.split(" ").forEach(function(De){s.Z.listen(s.Z.getDocument(),De,ge,!0)})})};const R=function(se,ge,De){De=De||function(){};var Fe=[],Ae=function(fe){var _e=-1;return(0,c.S6)(Fe,function(ie,de){return!ge(fe,de)||(_e=ie,!1)}),_e},ne=function(fe){var _e=Ae(fe);_e>-1&&Fe.splice(_e,1)};T(se.dxpointerdown,function(fe){-1===Ae(fe)&&(De(fe),Fe.push(fe))}),T(se.dxpointermove,function(fe){Fe[Ae(fe)]=fe}),T(se.dxpointerup,ne),T(se.dxpointercancel,ne),this.pointers=function(){return Fe},this.reset=function(){Fe=[]}};var W,P={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},B=function(se){return se.pointerId=1,{pointers:W.pointers(),pointerId:1}},N=!1,V=function(){N||(W=new R(P,function(){return!0}),N=!0)},U=x.inherit({ctor:function(){this.callBase.apply(this,arguments),V()},_fireEvent:function(se){return this.callBase((0,f.l)(B(se.originalEvent),se))}});U.map=P,U.normalize=B,U.activate=V,U.resetObserver=function(){W.reset()};const K=U;var J=!1,j=function(){J||(K.activate(),J=!0)},ee=x.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),j()},_handler:function(se){var ge=(0,d.N5)(se);if(ge||(this._skipNextEvents=!0),!ge||!this._mouseLocked){if(ge&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var De=this;return void(this._unlockMouseTimer=setTimeout(function(){De._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(se)}},_fireEvent:function(se){var ge=(0,d.N5)(se.originalEvent)?K.normalize:O.normalize;return this.callBase((0,f.l)(ge(se.originalEvent),se))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});ee.map={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},ee.resetObserver=K.resetObserver;const G=ee;var Z=((se,ge)=>{var{tablet:De,phone:Fe}=ge;return!se.touch||De||Fe?se.touch?O:K:G})(o,I.Z.real());(0,c.S6)(Z.map,(se,ge)=>{(0,C.Z)(se,new Z(se,ge))});const M={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"}},4416:(kn,he,l)=>{"use strict";l.d(he,{x:()=>f});var o=l(9904),c=l(5610),I=l(913),C=l(4377),f="dxremove",a="dxRemoveEvent";(0,c.WD)(function(p){p=[].slice.call(p);for(var s=0;s<p.length;s++){var u=(0,o.Z)(p[s]);u.prop(a)&&(u[0][a]=null,I.Z.triggerHandler(u,f))}}),(0,C.Z)(f,{noBubble:!0,setup:function(p){(0,o.Z)(p).prop(a,!0)}})},114:(kn,he,l)=>{"use strict";l.d(he,{Mr:()=>s,SI:()=>p,T_:()=>d,V4:()=>g,WD:()=>u,bB:()=>a,dG:()=>E,wt:()=>h});var o=l(913),c=l(8478),I=l(8225);function C(S,O){return O?(0,I.V4)(S,O):S}function f(S,O){return"function"==typeof S?S(O):S.execute(O)}var a={on:(S,O,w,T)=>{var{selector:k,showTimeout:R,hideTimeout:P,namespace:B}=T;o.Z.on(S,C("dxactive",B),k,{timeout:R},W=>f(O,{event:W,element:W.currentTarget})),o.Z.on(S,C("dxinactive",B),k,{timeout:P},W=>f(w,{event:W,element:W.currentTarget}))},off:(S,O)=>{var{namespace:w,selector:T}=O;o.Z.off(S,C("dxactive",w),T),o.Z.off(S,C("dxinactive",w),T)}},p={on:function(S,O){var{namespace:w}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o.Z.on(S,C("dxresize",w),O)},off:function(S){var{namespace:O}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.Z.off(S,C("dxresize",O))}},s={on:(S,O,w,T)=>{var{selector:k,namespace:R}=T;o.Z.on(S,C("dxhoverend",R),k,P=>w(P)),o.Z.on(S,C("dxhoverstart",R),k,P=>f(O,{element:P.target,event:P}))},off:(S,O)=>{var{selector:w,namespace:T}=O;o.Z.off(S,C("dxhoverstart",T),w),o.Z.off(S,C("dxhoverend",T),w)}},u={on:(S,O,w,T)=>{var{namespace:k}=T;o.Z.on(S,C("dxhiding",k),w),o.Z.on(S,C("dxshown",k),O)},off:(S,O)=>{var{namespace:w}=O;o.Z.off(S,C("dxhiding",w)),o.Z.off(S,C("dxshown",w))}},d={on:(S,O,w,T)=>{var{namespace:k}=T;o.Z.on(S,C("focusin",k),O),o.Z.on(S,C("focusout",k),w)},off:(S,O)=>{var{namespace:w}=O;o.Z.off(S,C("focusin",w)),o.Z.off(S,C("focusout",w))},trigger:S=>o.Z.trigger(S,"focus")},h={on:function(S,O){var{namespace:w}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o.Z.on(S,C("dxclick",w),O)},off:function(S){var{namespace:O}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.Z.off(S,C("dxclick",O))}},g={on:function(S,O){var{namespace:w}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o.Z.on(S,C("click",w),O)},off:function(S){var{namespace:O}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.Z.off(S,C("click",O))}},x=0,b={},E={on:(S,O,w)=>{var T="keyboardProcessorId".concat(x++);return b[T]=new c.Z({element:S,focusTarget:O,handler:w}),T},off:S=>{S&&b[S]&&(b[S].dispose(),delete b[S])},_getProcessor:S=>b[S]}},1918:(kn,he,l)=>{"use strict";l.d(he,{BL:()=>f,aq:()=>a,ut:()=>p});var o=l(1805),c=l(8225),I=l(4755),C=l(2203),f="dxswipestart",a="dxswipe",p="dxswipeend",d={horizontal:{defaultItemSizeFunc:function(){return(0,o.dz)(this.getElement())},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(g){return((0,c.a0)(g).x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,g)},isFastSwipe:function(g){var x=(0,c.a0)(g);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(x.x-this._tickData.x)>=x.time-this._tickData.time}},vertical:{defaultItemSizeFunc:function(){return(0,o.Cr)(this.getElement())},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(g){return((0,c.a0)(g).y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,g)},isFastSwipe:function(g){var x=(0,c.a0)(g);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(x.y-this._tickData.y)>=x.time-this._tickData.time}}},h=I.Z.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(g){this.callBase(g),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return d[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(g){this._tickData=(0,c.a0)(g)},_start:function(g){this._savedEventData=(0,c.a0)(g),(g=this._fireEvent(f,g)).cancel||(this._maxLeftOffset=g.maxLeftOffset,this._maxRightOffset=g.maxRightOffset,this._maxTopOffset=g.maxTopOffset,this._maxBottomOffset=g.maxBottomOffset)},_move:function(g){var x=this._getStrategy(),b=(0,c.a0)(g),y=x.calcOffsetRatio.call(this,g);y=this._fitOffset(y,this.elastic),b.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=b),this._fireEvent(a,g,{offset:y}),g.preventDefault()},_end:function(g){var x=this._getStrategy(),b=x.calcOffsetRatio.call(this,g),y=x.isFastSwipe.call(this,g),E=b,S=this._calcTargetOffset(b,y);E=this._fitOffset(E,this.elastic),S=this._fitOffset(S,!1),this._fireEvent(p,g,{offset:E,targetOffset:S})},_fitOffset:function(g,x){var y=this._getStrategy().getBounds.call(this);return g<-y[0]?x?(-2*y[0]+g)/3:-y[0]:g>y[1]?x?(2*y[1]+g)/3:y[1]:g},_calcTargetOffset:function(g,x){var b;return x?(b=Math.ceil(Math.abs(g)),g<0&&(b=-b)):b=Math.round(g),b}});(0,C.Z)({emitter:h,events:[f,a,p]})},8225:(kn,he,l)=>{"use strict";l.d(he,{V4:()=>Z,yM:()=>j,a0:()=>B,hM:()=>W,J6:()=>S,BX:()=>ee,qK:()=>q,G7:()=>N,j1:()=>X,pR:()=>T,VF:()=>P,N5:()=>w,bX:()=>O,z6:()=>k,r1:()=>Y,EV:()=>G});var o=l(9904),c=l(9644),I=(M,se)=>{if(!se)throw c.Z.Error("E0017");return Array.isArray(M)?M.map(ge=>I(ge,se)).join(" "):-1!==M.indexOf(" ")?I(M.split(/\s+/g),se):"".concat(M,".").concat(se)};const C=I;var f=l(913),a=l(2718),p=l(5873),s=l(7),u={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"},d={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"},h={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i},b=M=>"dx"===S(M),E=M=>"touch"===S(M),S=M=>{var{type:se}=M,ge="other";return(0,a.S6)(h,function(De){if(this.test(se))return ge=De,!1}),ge},O=M=>"pointer"===S(M),w=M=>(M=>"mouse"===S(M))(M)||(O(M)||b(M))&&"mouse"===M.pointerType,T=M=>M&&"dxmousewheel"===M.type,k=M=>E(M)||(O(M)||b(M))&&"touch"===M.pointerType,P=M=>{var{screenX:se,offsetX:ge,pageX:De}=M;return 0===se&&!ge&&0===De},B=M=>{var{pageX:se,pageY:ge,timeStamp:De}=M;return{x:se,y:ge,time:De}},W=(M,se)=>({x:se.x-M.x,y:se.y-M.y,time:se.time-M.time||1}),N=M=>{var{originalEvent:se,pointers:ge}=M;return E(M)?(se.touches||[]).length:b(M)?(ge||[]).length:0},Y=M=>{var{target:se}=M,ge=(0,o.Z)(se),De=se?.isContentEditable||se?.hasAttribute("contenteditable"),Fe=ge.is("input, textarea, select")||De;return T(M)?!(ge.is("textarea")&&ge.hasClass("dx-texteditor-input")||De)&&ge.is("input[type='number'], textarea, select")&&ge.is(":focus"):w(M)?Fe||M.which>1:k(M)?Fe&&(0,s.si)(ge):void 0},j=(M,se)=>{var ge=(M=>f.Z.Event(M,M))(M);return se&&(0,p.l)(ge,se),ge},ee=M=>{var{originalEvent:se,delegateTarget:ge}=M,De=j(se,M);return f.Z.trigger(ge||De.target,De),De},G=M=>{var{key:se,which:ge}=M,De=u[se?.toLowerCase()]||se,Fe=d[ge];return Fe&&De===se?Fe:!De&&ge?String.fromCharCode(ge):De},q=M=>{var{key:se,which:ge}=M;return se||String.fromCharCode(ge)},Z=C,X=M=>{var{ctrlKey:se,metaKey:ge}=M;return se||ge}},2526:(kn,he,l)=>{"use strict";l.d(he,{Ly:()=>f,U_:()=>a,Uo:()=>C});var o=l(9904),c=l(913),I=function(p){return function(s){for(var u=(0,o.Z)(s||"body"),d=u.filter(".dx-visibility-change-handler").add(u.find(".dx-visibility-change-handler")),h=0;h<d.length;h++)c.Z.triggerHandler(d[h],p)}},C=I("dxshown"),f=I("dxhiding"),a=I("dxresize")},8606:(kn,he,l)=>{"use strict";l.d(he,{Ak:()=>Wt,xD:()=>_t,BH:()=>Ot,eA:()=>qt,YP:()=>mn});var o=l(8114),c=l(5031),I=l(4514),C=l(1828),f=l(5873),a=l(8159),p=l(9589),s=l(7586),u=l.n(s),d=l(658),h=l(8119),g=l(3479),x=l(8379),E=(l(3128),{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:" "}),S=/a+/g,O=/E/g,w=/dE+/g,T=/L/g,k=/h/g,R=/./g,P={_applyPrecision:function(Ke,pt){var an,hn;if(pt>0){for(an="decimal"!==Ke?".":"",hn=0;hn<pt;hn++)an+="0";return an}return""},_hasArabicDigits:function(Ke){for(var pt,an=0;an<Ke.length;an++)if((pt=Ke.charCodeAt(an))>=1632&&pt<1642)return!0;return!1},_convertDateFormatToOpenXml:function(Ke){return Ke.split("/").join("\\/").split("'").map(function(pt,an){return an%2==0?pt.replace(S,"AM/PM").replace(w,"d").replace(O,"d").replace(T,"M").replace(k,"H").split("[").join("\\[").split("]").join("\\]"):pt?pt.replace(R,"\\$&"):"'"}).join("")},_convertDateFormat:function(Ke){var pt=(h.Z.format(new Date(2009,8,8,6,5,4),Ke)||"").toString(),an=(0,g.y)(hn=>h.Z.format(hn,Ke));return an&&(an=this._convertDateFormatToOpenXml(an),an=this._getLanguageInfo(pt)+an),an},_getLanguageInfo:function(Ke){var pt=(0,x.D)(),an=pt?pt.toString(16):"",hn="";if(this._hasArabicDigits(Ke)){for(;an.length<3;)an="0"+an;hn="[$-2010"+an+"]"}else an&&(hn="[$-"+an+"]");return hn},_convertNumberFormat:function(Ke,pt,an){var hn,sn;return(sn="currency"===Ke?d.Z.getOpenXmlCurrencyFormat(an):E[Ke.toLowerCase()])&&(hn=(0,p.WU)(sn,this._applyPrecision(Ke,pt))),hn},convertFormat:function(Ke,pt,an,hn){if((0,C.$K)(Ke)){if("date"===an)return P._convertDateFormat(Ke);if((0,C.HD)(Ke)&&E[Ke.toLowerCase()])return P._convertNumberFormat(Ke,pt,hn)}}};const B=P,N_toXml=function(Ke,pt,an){var hn=["<",Ke];for(var sn in pt){var Nn=pt[sn];(0,C.$K)(Nn)&&hn.push(" ",sn,'="',Nn,'"')}return(0,C.$K)(an)&&""!==an?hn.push(">",an,"</",Ke,">"):hn.push(" />"),hn.join("")};var V={tryCreateTag:function(Ke){var pt=null;return(0,C.$K)(Ke)&&V.isEmpty(pt={vertical:Ke.vertical,wrapText:Ke.wrapText,horizontal:Ke.horizontal})&&(pt=null),pt},copy:function(Ke){var pt=null;return(0,C.$K)(Ke)&&(pt={},void 0!==Ke.horizontal&&(pt.horizontal=Ke.horizontal),void 0!==Ke.vertical&&(pt.vertical=Ke.vertical),void 0!==Ke.wrapText&&(pt.wrapText=Ke.wrapText)),pt},areEqual:function(Ke,pt){return V.isEmpty(Ke)&&V.isEmpty(pt)||(0,C.$K)(Ke)&&(0,C.$K)(pt)&&Ke.vertical===pt.vertical&&Ke.wrapText===pt.wrapText&&Ke.horizontal===pt.horizontal},isEmpty:function(Ke){return!(0,C.$K)(Ke)||!(0,C.$K)(Ke.vertical)&&!(0,C.$K)(Ke.wrapText)&&!(0,C.$K)(Ke.horizontal)},toXml:function(Ke){return N_toXml("alignment",{vertical:Ke.vertical,wrapText:(0,C.$K)(Ke.wrapText)?Number(Ke.wrapText):void 0,horizontal:Ke.horizontal})}};const U=V;var K={_tryConvertColor:function(Ke){if("string"!=typeof Ke)return Ke;var pt;if(Ke.length>0&&"#"===Ke[0]){var an=Ke.substr(1,Ke.length);pt=6===an.length?"FF"+an:8===an.length?an[6]+an[7]+an.substr(0,6):an}else pt=Ke;return pt},tryCreateTag:function(Ke){var pt=null;return(0,C.$K)(Ke)&&(pt="string"==typeof Ke?{rgb:this._tryConvertColor(Ke)}:{rgb:this._tryConvertColor(Ke.rgb),theme:Ke.theme},K.isEmpty(pt)&&(pt=null)),pt},copy:function(Ke){var pt=null;return(0,C.$K)(Ke)&&("string"==typeof Ke?pt=Ke:(pt={},void 0!==Ke.rgb&&(pt.rgb=Ke.rgb),void 0!==Ke.theme&&(pt.theme=Ke.theme))),pt},isEmpty:function(Ke){return!(0,C.$K)(Ke)||!(0,C.$K)(Ke.rgb)&&!(0,C.$K)(Ke.theme)},areEqual:function(Ke,pt){return K.isEmpty(Ke)&&K.isEmpty(pt)||(0,C.$K)(Ke)&&(0,C.$K)(pt)&&Ke.rgb===pt.rgb&&Ke.theme===pt.theme},toXml:function(Ke,pt){return N_toXml(Ke,{rgb:pt.rgb,theme:pt.theme})}};const Y=K;var J={tryCreateTag:function(Ke){var pt=null;return(0,C.$K)(Ke)&&(pt={patternType:Ke.patternType,backgroundColor:Y.tryCreateTag(Ke.backgroundColor),foregroundColor:Y.tryCreateTag(Ke.foregroundColor)},J.isEmpty(pt)&&(pt=null)),pt},copy:function(Ke){var pt=null;return(0,C.$K)(Ke)&&(pt={},void 0!==Ke.patternType&&(pt.patternType=Ke.patternType),void 0!==Ke.backgroundColor&&(pt.backgroundColor=Y.copy(Ke.backgroundColor)),void 0!==Ke.foregroundColor&&(pt.foregroundColor=Y.copy(Ke.foregroundColor))),pt},areEqual:function(Ke,pt){return J.isEmpty(Ke)&&J.isEmpty(pt)||(0,C.$K)(Ke)&&(0,C.$K)(pt)&&Ke.patternType===pt.patternType&&Y.areEqual(Ke.backgroundColor,pt.backgroundColor)&&Y.areEqual(Ke.foregroundColor,pt.foregroundColor)},isEmpty:function(Ke){return!(0,C.$K)(Ke)||!(0,C.$K)(Ke.patternType)},toXml:function(Ke){var pt=[(0,C.$K)(Ke.foregroundColor)?Y.toXml("fgColor",Ke.foregroundColor):"",(0,C.$K)(Ke.backgroundColor)?Y.toXml("bgColor",Ke.backgroundColor):""].join("");return N_toXml("patternFill",{patternType:Ke.patternType},pt)}};const j=J;var ee={tryCreateTag:function(Ke){var pt=null;return(0,C.$K)(Ke)&&(pt={patternFill:j.tryCreateTag(Ke.patternFill)},ee.isEmpty(pt)&&(pt=null)),pt},tryCreateFillFromSimpleFormat:function(){var{backgroundColor:Ke,fillPatternType:pt,fillPatternColor:an}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!(0,C.$K)(Ke)||(0,C.$K)(pt)&&(0,C.$K)(an)?(0,C.$K)(pt)&&(0,C.$K)(an)?{patternFill:{patternType:pt,foregroundColor:{rgb:an},backgroundColor:{rgb:Ke}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:Ke}}}},copySimpleFormat:function(Ke,pt){void 0!==Ke.backgroundColor&&(pt.backgroundColor=Ke.backgroundColor),void 0!==Ke.fillPatternType&&(pt.fillPatternType=Ke.fillPatternType),void 0!==Ke.fillPatternColor&&(pt.fillPatternColor=Ke.fillPatternColor)},copy:function(Ke){var pt=null;return(0,C.$K)(Ke)&&(pt={},void 0!==Ke.patternFill&&(pt.patternFill=j.copy(Ke.patternFill))),pt},areEqual:function(Ke,pt){return ee.isEmpty(Ke)&&ee.isEmpty(pt)||(0,C.$K)(Ke)&&(0,C.$K)(pt)&&j.areEqual(Ke.patternFill,pt.patternFill)},isEmpty:function(Ke){return!(0,C.$K)(Ke)||j.isEmpty(Ke.patternFill)},toXml:function(Ke){return N_toXml("fill",{},j.toXml(Ke.patternFill))}};const G=ee;var q={tryCreateTag:function(Ke){var pt=null;return(0,C.$K)(Ke)&&(pt={size:Ke.size,name:Ke.name,family:Ke.family,scheme:Ke.scheme,bold:Ke.bold,italic:Ke.italic,underline:Ke.underline,color:Y.tryCreateTag(Ke.color)},q.isEmpty(pt)&&(pt=null)),pt},copy:function(Ke){var pt=null;return(0,C.$K)(Ke)&&(pt={},void 0!==Ke.size&&(pt.size=Ke.size),void 0!==Ke.name&&(pt.name=Ke.name),void 0!==Ke.family&&(pt.family=Ke.family),void 0!==Ke.scheme&&(pt.scheme=Ke.scheme),void 0!==Ke.bold&&(pt.bold=Ke.bold),void 0!==Ke.italic&&(pt.italic=Ke.italic),void 0!==Ke.underline&&(pt.underline=Ke.underline),void 0!==Ke.color&&(pt.color=Y.copy(Ke.color))),pt},areEqual:function(Ke,pt){return q.isEmpty(Ke)&&q.isEmpty(pt)||(0,C.$K)(Ke)&&(0,C.$K)(pt)&&Ke.size===pt.size&&Ke.name===pt.name&&Ke.family===pt.family&&Ke.scheme===pt.scheme&&(Ke.bold===pt.bold||!Ke.bold==!pt.bold)&&(Ke.italic===pt.italic||!Ke.italic==!pt.italic)&&Ke.underline===pt.underline&&Y.areEqual(Ke.color,pt.color)},isEmpty:function(Ke){return!(0,C.$K)(Ke)||!(0,C.$K)(Ke.size)&&!(0,C.$K)(Ke.name)&&!(0,C.$K)(Ke.family)&&!(0,C.$K)(Ke.scheme)&&(!(0,C.$K)(Ke.bold)||!Ke.bold)&&(!(0,C.$K)(Ke.italic)||!Ke.italic)&&!(0,C.$K)(Ke.underline)&&Y.isEmpty(Ke.color)},toXml:function(Ke){var pt=[(0,C.$K)(Ke.bold)&&Ke.bold?N_toXml("b",{}):"",(0,C.$K)(Ke.size)?N_toXml("sz",{val:Ke.size}):"",(0,C.$K)(Ke.color)?Y.toXml("color",Ke.color):"",(0,C.$K)(Ke.name)?N_toXml("name",{val:Ke.name}):"",(0,C.$K)(Ke.family)?N_toXml("family",{val:Ke.family}):"",(0,C.$K)(Ke.scheme)?N_toXml("scheme",{val:Ke.scheme}):"",(0,C.$K)(Ke.italic)&&Ke.italic?N_toXml("i",{}):"",(0,C.$K)(Ke.underline)?N_toXml("u",{val:Ke.underline}):""].join("");return N_toXml("font",{},pt)}};const Z=q;var X={tryCreateTag:function(Ke,pt){var an=null;if((0,C.$K)(Ke)){var hn;hn="number"==typeof Ke.numberFormat?Ke.numberFormat:pt.registerNumberFormat(Ke.numberFormat);var sn=Ke.fill;(0,C.$K)(sn)||(sn=G.tryCreateFillFromSimpleFormat(Ke)),an={numberFormatId:hn,alignment:U.tryCreateTag(Ke.alignment),fontId:pt.registerFont(Ke.font),fillId:pt.registerFill(sn)},X.isEmpty(an)&&(an=null)}return an},copy:function(Ke){var pt;return null===Ke?pt=null:(0,C.$K)(Ke)&&(pt={},void 0!==Ke.numberFormat&&(pt.numberFormat=Ke.numberFormat),void 0!==Ke.fill?pt.fill=G.copy(Ke.fill):G.copySimpleFormat(Ke,pt),void 0!==Ke.alignment&&(pt.alignment=U.copy(Ke.alignment)),void 0!==Ke.font&&(pt.font=Z.copy(Ke.font))),pt},areEqual:function(Ke,pt){return X.isEmpty(Ke)&&X.isEmpty(pt)||(0,C.$K)(Ke)&&(0,C.$K)(pt)&&Ke.fontId===pt.fontId&&Ke.numberFormatId===pt.numberFormatId&&Ke.fillId===pt.fillId&&U.areEqual(Ke.alignment,pt.alignment)},isEmpty:function(Ke){return!(0,C.$K)(Ke)||!(0,C.$K)(Ke.fontId)&&!(0,C.$K)(Ke.numberFormatId)&&!(0,C.$K)(Ke.fillId)&&U.isEmpty(Ke.alignment)},toXml:function(Ke){var an,pt=U.isEmpty(Ke.alignment);return(0,C.$K)(Ke.numberFormatId)&&(an=Ke.numberFormatId>0?1:0),N_toXml("xf",{xfId:0,applyAlignment:pt?null:1,fontId:Ke.fontId,applyNumberFormat:an,fillId:Ke.fillId,numFmtId:Ke.numberFormatId},pt?null:U.toXml(Ke.alignment))}};const M=X;var se={ID_PROPERTY_NAME:"id",tryCreateTag:function(Ke){var pt=null;return"string"==typeof Ke&&se.isEmpty(pt={formatCode:Ke})&&(pt=null),pt},areEqual:function(Ke,pt){return se.isEmpty(Ke)&&se.isEmpty(pt)||(0,C.$K)(Ke)&&(0,C.$K)(pt)&&Ke.formatCode===pt.formatCode},isEmpty:function(Ke){return!(0,C.$K)(Ke)||!(0,C.$K)(Ke.formatCode)||""===Ke.formatCode},toXml:function(Ke){return N_toXml("numFmt",{numFmtId:Ke[se.ID_PROPERTY_NAME],formatCode:Ke.formatCode})}};const ge=se;class De{constructor(){this._cellFormatTags=[],this._fillTags=[],this._fontTags=[],this._numberFormatTags=[],this._fillTags.push(G.tryCreateTag({patternFill:{patternType:"none"}}))}registerCellFormat(pt){var an,hn=M.tryCreateTag(pt,{registerFill:this.registerFill.bind(this),registerFont:this.registerFont.bind(this),registerNumberFormat:this.registerNumberFormat.bind(this)});if((0,C.$K)(hn)){for(var sn=0;sn<this._cellFormatTags.length;sn++)if(M.areEqual(this._cellFormatTags[sn],hn)){an=sn;break}void 0===an&&(an=this._cellFormatTags.push(hn)-1)}return an}static copyCellFormat(pt){return M.copy(pt)}generateCellFormatsXml(){var pt=this._cellFormatTags.map(an=>M.toXml(an));return N_toXml("cellXfs",{count:pt.length},pt.join(""))}registerFill(pt){var an,hn=G.tryCreateTag(pt);if((0,C.$K)(hn)){for(var sn=0;sn<this._fillTags.length;sn++)if(G.areEqual(this._fillTags[sn],hn)){an=sn;break}void 0===an&&(this._fillTags.length<2&&this._fillTags.push(G.tryCreateTag({patternFill:{patternType:"Gray125"}})),an=this._fillTags.push(hn)-1)}return an}generateFillsXml(){var pt=this._fillTags.map(an=>G.toXml(an));return N_toXml("fills",{count:pt.length},pt.join(""))}registerFont(pt){var an,hn=Z.tryCreateTag(pt);if((0,C.$K)(hn)){for(var sn=0;sn<this._fontTags.length;sn++)if(Z.areEqual(this._fontTags[sn],hn)){an=sn;break}void 0===an&&(an=this._fontTags.push(hn)-1)}return an}generateFontsXml(){var pt=this._fontTags.map(an=>Z.toXml(an));return N_toXml("fonts",{count:pt.length},pt.join(""))}_convertNumberFormatIndexToId(pt){return 165+pt}registerNumberFormat(pt){var an,hn=ge.tryCreateTag(pt);if((0,C.$K)(hn)){for(var sn=0;sn<this._numberFormatTags.length;sn++)if(ge.areEqual(this._numberFormatTags[sn],hn)){an=this._numberFormatTags[sn][ge.ID_PROPERTY_NAME];break}void 0===an&&(hn[ge.ID_PROPERTY_NAME]=this._convertNumberFormatIndexToId(this._numberFormatTags.length),an=hn[ge.ID_PROPERTY_NAME],this._numberFormatTags.push(hn))}return an}generateNumberFormatsXml(){if(this._numberFormatTags.length>0){var pt=this._numberFormatTags.map(an=>ge.toXml(an));return N_toXml("numFmts",{count:pt.length},pt.join(""))}return""}}var Fe=l(4270),Ae='<?xml version="1.0" encoding="utf-8"?>',ie="http://schemas.openxmlformats.org",de="rels",pe="workbook.xml",ae="sharedStrings.xml",te="styles.xml",oe="sheet1.xml",Pe={boolean:"b",date:"d",number:"n",string:"s"},Ne=Date.UTC(1899,11,30),Be={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},mt=c.Z.inherit({_getXMLTag:function(Ke,pt,an){var sn,Yn,hn="<"+Ke,Nn=pt.length;for(sn=0;sn<Nn;sn++)void 0!==(Yn=pt[sn]).value&&(hn=hn+" "+Yn.name+'="'+Yn.value+'"');return(0,C.$K)(an)?hn+">"+an+"</"+Ke+">":hn+" />"},_convertToExcelCellRef:function(Ke,pt){for(var hn,sn,an="";!sn;)hn=65+(pt>=26?pt%26:Math.ceil(pt)),an=String.fromCharCode(hn)+an,pt>=26?pt=Math.floor(pt/26)-1:sn=!0;return an+(Ke+1)},_convertToExcelCellRefAndTrackMaxIndex:function(Ke,pt){return this._maxRowIndex<Number(Ke)&&(this._maxRowIndex=Number(Ke)),this._maxColumnIndex<Number(pt)&&(this._maxColumnIndex=Number(pt)),this._convertToExcelCellRef(Ke,pt)},_getDataType:function(Ke){return Pe[Ke]||Pe.string},_tryGetExcelCellDataType:function(Ke){if((0,C.$K)(Ke)){if("number"==typeof Ke)return isFinite(Ke)?Pe.number:Pe.string;if((0,C.HD)(Ke))return Pe.string;if((0,C.J_)(Ke))return Pe.number;if((0,C.jn)(Ke))return Pe.boolean}},_formatObjectConverter:function(Ke,pt){var an={format:Ke,precision:Ke&&Ke.precision,dataType:pt};return(0,C.Kn)(Ke)?(0,f.l)(an,Ke,{format:Ke.formatter||Ke.type,currency:Ke.currency}):an},_tryConvertToExcelNumberFormat:function(Ke,pt){var an=this._formatObjectConverter(Ke,pt),hn=an.currency;return pt=an.dataType,(0,C.$K)(Ke=an.format)&&"date"===pt&&(Ke=Be[Ke&&Ke.type||Ke]||Ke),B.convertFormat(Ke,an.precision,pt,hn)},_appendString:function(Ke){if((0,C.$K)(Ke)&&(Ke=String(Ke)).length)return Ke=(0,p.HZ)(Ke),void 0===this._stringHash[Ke]&&(this._stringHash[Ke]=this._stringArray.length,this._stringArray.push(Ke)),this._stringHash[Ke]},_tryGetExcelDateValue:function(Ke){var pt;if((0,C.J_)(Ke))return(pt=Math.floor((Date.UTC(Ke.getFullYear(),Ke.getMonth(),Ke.getDate())-Ne)/864e5))<60&&pt--,pt+(3600*Ke.getHours()+60*Ke.getMinutes()+Ke.getSeconds())/86400},_prepareValue:function(Ke,pt){var Nn,an=this._dataProvider,{cellSourceData:hn}=an.getCellData(Ke,pt)||{},{value:sn}=an.getCellData(Ke,pt)||{},Yn=this._getDataType(an.getCellType(Ke,pt));switch(Yn===Pe.date&&!(0,C.J_)(sn)&&(Yn=Pe.string),Yn){case Pe.string:Nn=sn,sn=this._appendString(sn);break;case Pe.date:Nn=sn,sn=this._tryGetExcelDateValue(sn),Yn=Pe.number}return{value:sn,type:Yn,sourceValue:Nn,cellSourceData:hn}},_callCustomizeExcelCell:function(Ke){var{dataProvider:pt,value:an,style:hn,sourceData:sn}=Ke,Nn=De.copyCellFormat(hn),Yn={value:an,numberFormat:Nn.numberFormat,clearStyle:function(){this.horizontalAlignment=null,this.verticalAlignment=null,this.wrapTextEnabled=null,this.font=null,this.numberFormat=null}};(0,C.$K)(Nn)&&((0,C.$K)(Nn.alignment)&&(Yn.horizontalAlignment=Nn.alignment.horizontal,Yn.verticalAlignment=Nn.alignment.vertical,Yn.wrapTextEnabled=Nn.alignment.wrapText),Yn.backgroundColor=Nn.backgroundColor,Yn.fillPatternType=Nn.fillPatternType,Yn.fillPatternColor=Nn.fillPatternColor,Yn.font=Nn.font),pt.customizeExcelCell(Yn,sn);var st=Nn||{};return st.font=Yn.font,st.alignment=st.alignment||{},st.alignment.horizontal=Yn.horizontalAlignment,st.alignment.vertical=Yn.verticalAlignment,st.alignment.wrapText=Yn.wrapTextEnabled,st.backgroundColor=Yn.backgroundColor,st.fillPatternType=Yn.fillPatternType,st.fillPatternColor=Yn.fillPatternColor,st.numberFormat=Yn.numberFormat,{value:Yn.value,style:st}},_getDataArray:function(){var Ke,pt,an,hn,Vt,sn=[],Nn=this._dataProvider,Yn=Nn.getRowsCount(),st=Nn.getColumns();for(Ke=0;Ke<Yn;Ke++){for(an=[],Vt=st.length,pt=0;pt!==Vt;pt++){hn=this._prepareValue(Ke,pt);var rn=Nn.getStyleId(Ke,pt),Dn=this._styleArrayIndexToCellStyleIdMap[rn];if(Nn.hasCustomizeExcelCell&&Nn.hasCustomizeExcelCell()){var rt=hn.sourceValue||hn.value,Bt=this._callCustomizeExcelCell({dataProvider:Nn,value:rt,style:this._styleArray[rn],sourceData:hn.cellSourceData});if(Bt.value!==rt){if(typeof Bt.value!=typeof rt||"number"==typeof Bt.value&&!isFinite(Bt.value)){var gt=this._tryGetExcelCellDataType(Bt.value);(0,C.$K)(gt)&&(hn.type=gt)}switch(hn.type){case Pe.string:hn.value=this._appendString(Bt.value);break;case Pe.date:hn.value=Bt.value;break;case Pe.number:var $t=Bt.value,Un=this._tryGetExcelDateValue($t);(0,C.$K)(Un)&&($t=Un),hn.value=$t;break;default:hn.value=Bt.value}}Dn=this._excelFile.registerCellFormat(Bt.style)}an.push({style:Dn,value:hn.value,type:hn.type})}!this._needSheetPr&&Nn.getGroupLevel(Ke)>0&&(this._needSheetPr=!0),sn.push(an)}return sn},_calculateWidth:function(Ke){return(!(Ke=parseInt(Ke,10))||Ke<5)&&(Ke=100),Math.min(255,Math.floor((Ke-5)/7*100+.5)/100)},_prepareStyleData:function(){var Ke=this,pt=Ke._dataProvider.getStyles();Ke._dataProvider.getColumns().forEach(function(hn){Ke._colsArray.push(Ke._calculateWidth(hn.width))});var an=[{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(an[0]),this._excelFile.registerFont(an[1]),pt.forEach(function(hn){var sn=Ke._tryConvertToExcelNumberFormat(hn.format,hn.dataType);(0,C.$K)(sn)||(sn=0),Ke._styleArray.push({font:an[Number(!!hn.bold)],numberFormat:sn,alignment:{vertical:"top",wrapText:!!hn.wrapText,horizontal:hn.alignment||"left"}})}),Ke._styleArrayIndexToCellStyleIdMap=Ke._styleArray.map(hn=>this._excelFile.registerCellFormat(hn))},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(Ke){return this._getXMLTag("Relationships",[{name:"xmlns",value:ie+"/package/2006/relationships"}],Ke)},_createXMLRelationship:function(Ke,pt,an){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+Ke},{name:"Type",value:ie+"/officeDocument/2006/relationships/"+pt},{name:"Target",value:an}])},_getWorkbookContent:function(){return Ae+this._getXMLTag("workbook",[{name:"xmlns:r",value:ie+"/officeDocument/2006/relationships"},{name:"xmlns",value:ie+"/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 Ae+'<Types xmlns="'+ie+'/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 Ke=this._zip.folder("xl"),pt="";pt+=this._excelFile.generateNumberFormatsXml(),pt+=this._excelFile.generateFontsXml(),pt+=this._excelFile.generateFillsXml(),pt+='<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>',pt+=this._excelFile.generateCellFormatsXml(),pt+=this._getXMLTag("cellStyles",[{name:"count",value:1}],this._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),pt=Ae+this._getXMLTag("styleSheet",[{name:"xmlns",value:ie+"/spreadsheetml/2006/main"}],pt),Ke.file(te,pt),this._styleArray=[]},_generateStringsXML:function(){var pt,Ke=this._zip.folder("xl"),an=this._stringArray.length,hn=Ae;for(pt=0;pt<an;pt++)this._stringArray[pt]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[pt]));hn+=this._getXMLTag("sst",[{name:"xmlns",value:ie+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),Ke.file(ae,hn),this._stringArray=[]},_getPaneXML:function(){var Ke=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],pt=this._dataProvider.getFrozenArea();return pt.x||pt.y?(pt.x&&Ke.push({name:"xSplit",value:pt.x}),pt.y&&Ke.push({name:"ySplit",value:pt.y}),Ke.push({name:"topLeftCell",value:this._convertToExcelCellRefAndTrackMaxIndex(pt.y,pt.x)}),this._getXMLTag("pane",Ke)):""},_getAutoFilterXML:function(Ke){return this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+Ke+'" />':""},_generateWorksheetXML:function(){var Ke,pt,an,hn,Yn,sn=[],Nn=this._cellsArray.length,st=this._colsArray.length,Vt="1:"+st,rn=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,Dn=['<?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(Dn.push(this._needSheetPr?'<sheetPr><outlinePr summaryBelow="0"/></sheetPr>':"<sheetPr/>"),Dn.push('<dimension ref="A1:C1"/>'),Dn.push("<sheetViews><sheetView "),Dn.push(this._rtlEnabled?'rightToLeft="1" ':""),Dn.push('tabSelected="1" workbookViewId="0">'),Dn.push(this._getPaneXML()),Dn.push("</sheetView></sheetViews>"),Dn.push('<sheetFormatPr defaultRowHeight="15"'),Dn.push(' outlineLevelRow="'+(this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0)+'"'),Dn.push(' x14ac:dyDescent="0.25"/>'),Ke=0;Ke<st;Ke++)this._colsArray[Ke]=this._getXMLTag("col",[{name:"width",value:this._colsArray[Ke]},{name:"min",value:Number(Ke)+1},{name:"max",value:Number(Ke)+1},{name:"customWidth",value:1}]);for(Dn.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),pt=0;pt<Nn;pt++){for(hn=[],Yn=this._cellsArray[pt].length,Ke=0;Ke<Yn;Ke++)pt=Number(pt),an=this._cellsArray[pt][Ke],hn.push(this._getXMLTag("c",[{name:"r",value:this._convertToExcelCellRefAndTrackMaxIndex(pt,Ke)},{name:"s",value:an.style},{name:"t",value:an.type}],(0,C.$K)(an.value)?this._getXMLTag("v",[],an.value):null));sn.push(this._getXMLTag("row",[{name:"r",value:Number(pt)+1},{name:"spans",value:Vt},{name:"outlineLevel",value:pt>=rn?this._dataProvider.getGroupLevel(pt):0},{name:"x14ac:dyDescent",value:"0.25"}],hn.join(""))),this._cellsArray[pt]=null,sn.length>1e4&&(Dn.push(sn.join("")),sn=[])}Dn.push(sn.join(""));var rt=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex);Dn.push("</sheetData>"+this._getAutoFilterXML(rt)+this._generateMergingXML()+"</worksheet>"),this._zip.folder("xl").folder("worksheets").file(oe,Dn.join("")),this._colsArray=[],this._cellsArray=[]},_generateMergingXML:function(){var Ke,pt,an,hn,Vt,sn=(0,C.$K)(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),Nn=this._dataProvider.getColumns().length,Yn=[],st=[],rn="";for(hn=0;hn<sn;hn++)for(an=0;an!==Nn;an++)if(!(0,C.$K)(Yn[hn])||!(0,C.$K)(Yn[hn][an])){var Dn=this._dataProvider.getCellMerging(hn,an);if(Dn.colspan||Dn.rowspan)for(st.push({start:this._convertToExcelCellRefAndTrackMaxIndex(hn,an),end:this._convertToExcelCellRefAndTrackMaxIndex(hn+(Dn.rowspan||0),an+(Dn.colspan||0))}),Ke=hn;Ke<=hn+Dn.rowspan;Ke++)for(pt=an;pt<=an+Dn.colspan;pt++)(0,C.$K)(Yn[Ke])||(Yn[Ke]=[]),Yn[Ke][pt]=!0}var rt=st.length;for(Vt=0;Vt<rt;Vt++)rn+=this._getXMLTag("mergeCell",[{name:"ref",value:st[Vt].start+":"+st[Vt].end}]);return rn.length?this._getXMLTag("mergeCells",[{name:"count",value:rt}],rn):""},_generateCommonXML:function(){var Ke=Ae+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+pe)),pt=this._zip.folder("xl"),an=Ae;this._zip.folder("_"+de).file("."+de,Ke);var hn=this._createXMLRelationship(1,"worksheet","worksheets/"+oe)+this._createXMLRelationship(2,"styles",te)+this._createXMLRelationship(3,"sharedStrings",ae);an+=this._createXMLRelationships(hn),pt.folder("_"+de).file(pe+".rels",an),pt.file(pe,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(Ke,pt){this._rtlEnabled=pt&&!!pt.rtlEnabled,this._options=pt,this._maxRowIndex=0,this._maxColumnIndex=0,this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._needSheetPr=!1,this._dataProvider=Ke,this._excelFile=new De,this._zip=(0,C.$K)(mt.JSZip)?new mt.JSZip:null},_checkZipState:function(){if(!this._zip)throw a.Z.Error("E1041","JSZip")},ready:function(){return this._dataProvider.ready()},getData:function(Ke){var pt={type:Ke?"blob":"base64",compression:"DEFLATE",mimeType:o.L.EXCEL},an=new Fe.BH;return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(pt).then(an.resolve):an.resolve(this._zip.generate(pt)),an}});mt.JSZip=u();var li,ke=l(9904),$e=l(3058),me=l(9834),xe=l(2718),Te=l(9897),Ye=l(6520),St=l(7981),Ct=(0,I.Jj)(),Rt=Math,fn=Rt.PI,ct=Rt.min,He=Rt.abs,Dt=Rt.sqrt,qe=Rt.pow,Ht=Rt.atan2,dt=Rt.cos,ht=Rt.sin,yt=Number;function Vn(Ke,pt,an,hn,sn,Nn,Yn,st){var Vt=(Ke+an)/2,rn=(pt+hn)/2,Dn=Ht(pt-hn,Ke-an),rt=Nn?1:-1;Dn+=fn/180*90*(Yn?1:-1);var Bt=Dt(qe(an-Ke,2)+qe(hn-pt,2))/2,gt=Dt(He(qe(sn,2)-qe(Bt,2))),$t=Vt+rt*(gt*dt(Dn)),Un=rn+rt*(gt*ht(Dn)),ai=Ht(pt-Un,Ke-$t),Ci=Ht(hn-Un,an-$t);st.arc($t,Un,sn,ai,Ci,!Yn)}function Oi(Ke,pt){var Nn,an=li(Ke.attributes||{}),hn=(0,f.l)({},an,{text:Ke.textContent.replace(/\s+/g," "),textAlign:"middle"===an["text-anchor"]?"center":an["text-anchor"]}),sn=an.transform;return sn&&((Nn=sn.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(Nn=Nn[0].match(/-*\d+([.]\d+)*/g),hn.translateX=yt(Nn[0]),hn.translateY=Nn[1]?yt(Nn[1]):0),(Nn=sn.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/))&&(Nn=Nn[0].match(/-*\d+([.]\d+)*/g),hn.rotationAngle=yt(Nn[0]),hn.rotationX=Nn[1]&&yt(Nn[1]),hn.rotationY=Nn[2]&&yt(Nn[2])),(Nn=sn.match(/scale\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(Nn=Nn[0].match(/-*\d+([.]\d+)*/g),hn.scaleX=yt(Nn[0]),hn.scaleY=Nn.length>1?yt(Nn[1]):hn.scaleX)),function ti(Ke,pt,an){var sn,hn=Ke.style||{};for(sn in hn)""!==hn[sn]&&(pt[(0,St._A)(sn)]=hn[sn]);an&&Te.Z.isElementNode(Ke)&&(hn=Ct.getComputedStyle(Ke),["fill","stroke","stroke-width","font-family","font-size","font-style","font-weight"].forEach(function(Nn){Nn in hn&&""!==hn[Nn]&&(pt[(0,St._A)(Nn)]=hn[Nn])}),["opacity","fill-opacity","stroke-opacity"].forEach(function(Nn){Nn in hn&&""!==hn[Nn]&&"1"!==hn[Nn]&&(pt[Nn]=yt(hn[Nn]))})),pt.textDecoration=pt.textDecoration||pt.textDecorationLine,pt.globalAlpha=(0,C.$K)(pt.opacity)?pt.opacity:pt.globalAlpha}(Ke,hn,pt),hn}function Wn(Ke){var pt=Ke&&Ke.match(/url\(.*#(.*?)["']?\)/i);return pt&&pt[1]}function Yi(Ke,pt){var an=[];pt.fontSize=pt.fontSize||"10px",pt.fontFamily=pt.fontFamily||"sans-serif",pt.fill=pt.fill||"#000",pt.fontStyle&&an.push(pt.fontStyle),pt.fontWeight&&an.push(pt.fontWeight),an.push(pt.fontSize),an.push(pt.fontFamily),Ke.font=an.join(" "),Ke.textAlign=pt.textAlign,Ke.fillStyle=pt.fill,Ke.globalAlpha=pt.globalAlpha}function di(Ke){for(var pt=Ke.childNodes,an=0;an<pt.length;an++)if("tspan"===pt[an].tagName)return!0;return!1}function Hi(Ke,pt,an,hn){for(var Nn,sn=[],Yn=0,st=0;st<Ke.length;st++){var Vt=Ke[st];if(void 0===Vt.tagName)$i(Vt,pt,an,hn);else if("tspan"===Vt.tagName||"text"===Vt.tagName){var rn=Oi(Vt,hn.rootAppended),Dn=(0,f.l)({},an,rn);if("tspan"===Vt.tagName&&di(Vt)){Hi(Vt.childNodes,pt,Dn,hn);continue}Dn.textAlign="start",(!Nn||void 0!==rn.x)&&sn.push(Nn={elements:[],options:[],widths:[],offsets:[]}),void 0!==rn.y&&(Yn=0),void 0!==rn.dy&&(Yn+=parseFloat(rn.dy)),Nn.elements.push(Vt),Nn.options.push(Dn),Nn.offsets.push(Yn),Yi(pt,Dn),Nn.widths.push(pt.measureText(Dn.text).width)}}sn.forEach(function(rt){var Bt=rt.widths.reduce(function(Un,ai){return Un+ai},0),gt=0,$t=0;"center"===an.textAlign&&(gt=Bt/2),"end"===an.textAlign&&(gt=Bt),rt.options.forEach(function(Un,ai){var Ci=rt.widths[ai];Un.x=Un.x-gt+$t,Un.y+=rt.offsets[ai],$t+=Ci}),rt.elements.forEach(function(Un,ai){Hi(Un.childNodes,pt,rt.options[ai],hn)})})}function $i(Ke,pt,an,hn){var sn=Ke.tagName,Nn="text"===sn||"tspan"===sn||void 0===sn,Yn="image"===sn,st=(0,f.l)({},an,Oi(Ke,hn.rootAppended));if("hidden"!==st.visibility&&!st[me.Nc]){var Vt;switch(pt.save(),!Yn&&yn(pt,st),Rn(pt,st,hn),function ni(Ke){Ke.strokeOpacity=void 0!==Ke["stroke-opacity"]?Ke["stroke-opacity"]:1,Ke.fillOpacity=void 0!==Ke["fill-opacity"]?Ke["fill-opacity"]:1,void 0!==Ke.opacity&&(Ke.strokeOpacity*=Ke.opacity,Ke.fillOpacity*=Ke.opacity)}(st),pt.beginPath(),Ke.tagName){case void 0:!function On(Ke,pt,an){Yi(Ke,pt),_r(Ke,pt,an),pt.text&&Ke.fillText(pt.text,pt.x||0,pt.y||0),zr(Ke,pt,!0),function ei(Ke,pt,an){if(pt.textDecoration&&"none"!==pt.textDecoration){var hn=pt.x,sn=Ke.measureText(pt.text).width,Nn=parseInt(pt.fontSize,10),Yn=.05*Nn<1?1:.05*Nn,st=pt.y;switch(pt.textDecoration){case"line-through":st-=Nn/3+Yn/2;break;case"overline":st-=Nn-Yn;break;case"underline":st+=Yn}Ke.rect(hn,st,sn,Yn),xr(Ke,pt,an),zr(Ke,pt)}}(Ke,pt,an)}(pt,st,hn);break;case"text":case"tspan":Hi(Ke.childNodes,pt,st,hn);break;case"image":Vt=function Sn(Ke,pt,an){var hn=new Fe.BH,sn=new Ct.Image;return sn.onload=function(){Ke.save(),Ke.globalAlpha=pt.globalAlpha,yn(Ke,pt),Rn(Ke,pt,an),Ke.drawImage(sn,pt.x||0,pt.y||0,pt.width,pt.height),Ke.restore(),hn.resolve()},sn.onerror=function(){hn.resolve()},sn.setAttribute("crossOrigin","anonymous"),sn.src=pt.href||pt["xlink:href"],hn}(pt,st,hn);break;case"path":!function An(Ke,pt){var sn,Nn,Yn,an=pt.replace(/,/g," ").split(/([A-Z])/i).filter(Vt=>""!==Vt.trim()),hn=0;do{switch(sn=(an[hn+1]||"").trim().split(" "),an[hn]){case"M":Ke.moveTo(yt(sn[0]),yt(sn[1])),hn+=2;break;case"L":for(var st=0;st<sn.length/2;st++)Ke.lineTo(yt(sn[2*st]),yt(sn[2*st+1]));hn+=2;break;case"C":Ke.bezierCurveTo(yt(sn[0]),yt(sn[1]),yt(sn[2]),yt(sn[3]),yt(sn[4]),yt(sn[5])),hn+=2;break;case"a":Nn=an[hn-1].trim().split(" "),Vn(yt(Nn[(Yn=Nn.length-1)-1]),yt(Nn[Yn]),yt(Nn[Yn-1])+yt(sn[5]),yt(Nn[Yn])+yt(sn[6]),yt(sn[0]),yt(sn[3]),yt(sn[4]),Ke),hn+=2;break;case"A":Nn=an[hn-1].trim().split(" "),Vn(yt(Nn[(Yn=Nn.length-1)-1]),yt(Nn[Yn]),yt(sn[5]),yt(sn[6]),yt(sn[0]),yt(sn[3]),yt(sn[4]),Ke),hn+=2;break;case"Z":Ke.closePath(),hn+=1;break;default:hn++}}while(hn<an.length)}(pt,st.d);break;case"rect":(function Hn(Ke,pt){var an=pt.x,hn=pt.y,sn=pt.width,Nn=pt.height,Yn=pt.rx;Yn?(Yn=ct(Yn,sn/2,Nn/2),Ke.save(),Ke.translate(an,hn),Ke.moveTo(sn/2,0),Ke.arcTo(sn,0,sn,Nn,Yn),Ke.arcTo(sn,Nn,0,Nn,Yn),Ke.arcTo(0,Nn,0,0,Yn),Ke.arcTo(0,0,Yn,0,Yn),Ke.lineTo(sn/2,0),Ke.restore()):Ke.rect(an,hn,sn,Nn)})(pt,st),pt.closePath();break;case"circle":pt.arc(st.cx,st.cy,st.r,0,2*fn,1)}return Nn||(_r(pt,st,hn),xr(pt,st,hn),zr(pt,st)),function Qi(Ke,pt,an,hn){var{gradients:sn}=an;if(0!==sn.length){var Nn=Wn(pt.fill);if(Nn&&sn[Nn]){var Yn=hn.getBBox(),st=Ke.createLinearGradient(Yn.x,0,Yn.x+Yn.width,0);sn[Nn].forEach(Vt=>{var rn=parseInt(Vt.offset.replace(/%/,""));st.addColorStop(rn/100,Vt.stopColor)}),Ke.globalAlpha=pt.opacity,Ke.fillStyle=st,Ke.fill()}}}(pt,st,hn,Ke),pt.restore(),Vt}}function _r(Ke,pt,an){var hn,sn=Wn(pt.filter);sn&&((hn=an.filters[sn])||(hn={offsetX:0,offsetY:0,blur:0,color:"#000"}),Ke.shadowOffsetX=hn.offsetX,Ke.shadowOffsetY=hn.offsetY,Ke.shadowColor=hn.color,Ke.shadowBlur=hn.blur)}function yn(Ke,pt){Ke.translate(pt.translateX||0,pt.translateY||0),pt.translateX=void 0,pt.translateY=void 0,pt.rotationAngle&&(Ke.translate(pt.rotationX||0,pt.rotationY||0),Ke.rotate(pt.rotationAngle*fn/180),Ke.translate(-(pt.rotationX||0),-(pt.rotationY||0)),pt.rotationAngle=void 0,pt.rotationX=void 0,pt.rotationY=void 0),isFinite(pt.scaleX)&&(Ke.scale(pt.scaleX,pt.scaleY),pt.scaleX=void 0,pt.scaleY=void 0)}function Rn(Ke,pt,an){pt["clip-path"]&&($i(an.clipPaths[Wn(pt["clip-path"])],Ke,{},an),Ke.clip(),pt["clip-path"]=void 0)}function lr(Ke,pt){for(var an=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Fe.BH,hn=0;hn<Ke.length;hn++){var sn=pt(Ke[hn]);if((0,C.tI)(sn)){sn.then(()=>{lr(Array.prototype.slice.call(Ke,hn+1),pt,an)});break}}return hn===Ke.length&&an.resolve(),an}function Dr(Ke,pt,an,hn){return lr(Ke,function(sn){switch(sn.tagName&&sn.tagName.toLowerCase()){case"g":case"svg":var Nn=(0,f.l)({},an,Oi(sn,hn.rootAppended));pt.save(),yn(pt,Nn),Rn(pt,Nn,hn);var Yn=()=>{pt.restore()},st=Dr(sn.childNodes,pt,Nn,hn);return(0,C.tI)(st)?st.then(Yn):Yn(),st;case"defs":return Dr(sn.childNodes,pt,{},hn);case"clippath":hn.clipPaths[sn.attributes.id.textContent]=sn.childNodes[0];break;case"pattern":hn.patterns[sn.attributes.id.textContent]=sn;break;case"filter":hn.filters[sn.id]=function ji(Ke){var hn={};return(0,xe.S6)(Ke.childNodes,function(sn,Nn){var Yn=Nn.attributes;if(Yn.result)switch(Yn.result.value){case"gaussianBlurResult":hn.blur=yt(Yn.stdDeviation.value);break;case"offsetResult":hn.offsetX=yt(Yn.dx.value),hn.offsetY=yt(Yn.dy.value);break;case"floodResult":hn.color=function ci(Ke,pt){var an=new $e.Z(Ke);return"rgba("+an.r+","+an.g+","+an.b+","+pt+")"}(Yn["flood-color"]?Yn["flood-color"].value:"#000",Yn["flood-opacity"]?Yn["flood-opacity"].value:1)}}),hn}(sn);break;case"lineargradient":hn.gradients[sn.attributes.id.textContent]=function Si(Ke){var pt=[];return(0,xe.S6)(Ke.childNodes,(an,hn)=>{var{attributes:sn}=hn;pt.push({offset:sn.offset.value,stopColor:sn["stop-color"].value})}),pt}(sn);break;default:return $i(sn,pt,an,hn)}})}function zr(Ke,pt,an){var hn=pt.stroke;hn&&"none"!==hn&&0!==pt["stroke-width"]&&(function kr(Ke,pt){var an=pt["stroke-dasharray"]&&pt["stroke-dasharray"].match(/(\d+)/g);an&&an.length&&(an=(0,xe.UI)(an,function(hn){return yt(hn)}),Ke.setLineDash(an))}(Ke,pt),Ke.lineJoin=pt["stroke-linejoin"],Ke.lineWidth=pt["stroke-width"],Ke.globalAlpha=pt.strokeOpacity,Ke.strokeStyle=hn,an?Ke.strokeText(pt.text,pt.x,pt.y):Ke.stroke(),Ke.globalAlpha=1)}function xr(Ke,pt,an){var hn=pt.fill;if(hn&&"none"!==hn){if(-1===hn.search(/url/))Ke.fillStyle=hn;else{var sn=an.patterns[Wn(hn)];if(!sn)return;Ke.fillStyle=function Gr(Ke,pt,an){var hn=Oi(pt,an.rootAppended),sn=Er._createCanvas(hn.width,hn.height,0),Nn=sn.getContext("2d");return Dr(pt.childNodes,Nn,hn,an),Ke.createPattern(sn,"repeat")}(Ke,sn,an)}Ke.globalAlpha=pt.fillOpacity,Ke.fill(),Ke.globalAlpha=1}}function Tr(Ke,pt,an){return Dr(Ke.childNodes,pt.getContext("2d"),{},{clipPaths:{},patterns:{},filters:{},gradients:{},rootAppended:an})}li=function(Ke){var an,pt={};return(0,xe.S6)(Ke,function(hn,sn){an=sn.textContent,isFinite(an)&&(an=yt(an)),pt[sn.name.toLowerCase()]=an}),pt};var Er={getImageData:function(Ke,pt){var an="image/"+pt.format;return(0,C.mf)(pt.__parseAttributesFn)&&(li=pt.__parseAttributesFn),function so(Ke,pt){var{width:an,height:hn,backgroundColor:sn,margin:Nn,svgToCanvas:Yn=Tr}=pt,st=ir(an,hn),Vt=Er._createCanvas(st.width,st.height,Nn),rn=Vt.getContext("2d");rn.setTransform(st.pixelRatio,0,0,st.pixelRatio,0,0);var rt,Dn=(0,me.Sd)(Ke),Bt=Te.Z.isElementNode(Ke);return rn.translate(Nn,Nn),Te.Z.getBody().appendChild(Vt),Bt||(rt=function Nr(){var Ke=Te.Z.createElement("div");return Ke.style.left="-9999px",Ke.style.position="absolute",Ke}(),rt.appendChild(Dn),Te.Z.getBody().appendChild(rt)),Dn.attributes.direction&&(Vt.dir=Dn.attributes.direction.textContent),function Vr(Ke,pt,an,hn,sn){Ke.fillStyle=hn||"#ffffff",Ke.fillRect(-sn,-sn,pt+2*sn,an+2*sn)}(rn,an,hn,sn,Nn),(0,Fe.p4)(Yn(Dn,Vt,Bt&&(0,Ye.r3)(Te.Z.getBody(),Ke))).then(()=>Vt).always(()=>{rt&&Te.Z.getBody().removeChild(rt),Te.Z.getBody().removeChild(Vt)})}(Ke,pt).then(hn=>function Ai(Ke,pt){var an=Ke.toDataURL(pt,1);return Ct.atob(an.substring(("data:"+pt+";base64,").length))}(hn,an))},getData:function(Ke,pt){var an=this;return Er.getImageData(Ke,pt).then(hn=>{var sn="image/"+pt.format;return(0,C.mf)(Ct.Blob)&&!pt.useBase64?an._getBlob(hn,sn):an._getBase64(hn)})},_getBlob:function(Ke,pt){var an,hn=new Uint8Array(Ke.length);for(an=0;an<Ke.length;an++)hn[an]=Ke.charCodeAt(an);return new Ct.Blob([hn.buffer],{type:pt})},_getBase64:function(Ke){return Ct.btoa(Ke)},_createCanvas(Ke,pt,an){var hn=(0,ke.Z)("<canvas>")[0];return hn.width=Ke+2*an,hn.height=pt+2*an,hn.hidden=!0,hn}};function ir(Ke,pt){var an=Ct.devicePixelRatio||1;return{pixelRatio:an,width:Ke*an,height:pt*an}}var Kr=l(9800),to=(0,I.Jj)(),uo={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(Ke,pt){Kr.Z.sendRequest({url:Ke,method:"GET",responseType:"arraybuffer"}).done(pt).fail(function(){pt(!1)})},_loadImages:function(){var Ke=this;(0,xe.S6)(Ke._imageArray,function(pt){var an=new Fe.BH;Ke._imageDeferreds.push(an),Ke._getBinaryFile(pt,function(hn){if(!hn)return delete Ke._imageArray[pt],void an.resolve();var sn,Nn="",Yn=new Uint8Array(hn),st=Yn.byteLength;for(sn=0;sn<st;sn++)Nn+=String.fromCharCode(Yn[sn]);Ke._imageArray[pt]="data:image/png;base64,"+to.btoa(Nn),an.resolve()})})},_parseImages:function(Ke){var pt,an=this;"image"===Ke.tagName&&(pt=(0,ke.Z)(Ke).attr("href")||(0,ke.Z)(Ke).attr("xlink:href"),an._imageArray[pt]||(an._imageArray[pt]="")),(0,xe.S6)(Ke.childNodes,function(hn,sn){an._parseImages(sn)})},_prepareImages:function(Ke){return this._parseImages(Ke),this._loadImages(),Fe.gx.apply(ke.Z,this._imageDeferreds)},getData:function(Ke,pt){var an,hn=this,sn=(0,me.Sd)(Ke),Nn=(0,ke.Z)(sn);return Nn.find("[".concat(me.Nc,"]")).remove(),an='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'+(0,me.yD)(Nn.get(0),pt.backgroundColor),hn._prepareImages(sn).then(()=>((0,xe.S6)(hn._imageArray,function(Yn,st){var Vt="href=['|\"]".concat(Yn,"['|\"]");an=an.replace(new RegExp(Vt,"gi"),'href="'.concat(st,'"'))}),(0,C.mf)(to.Blob)?hn._getBlob(an):hn._getBase64(an)))},_getBlob:function(Ke){return new to.Blob([Ke],{type:"image/svg+xml"})},_getBase64:function(Ke){return to.btoa(Ke)}},At=l(2805),tn=(0,I.Jj)(),Ri=function Ke(pt,an){return pt.length<an?Ke("0"+pt,an):pt};function _t(Ke,pt,an){if(!Ke)return(new Fe.BH).resolve();var hn=pt.exportingAction,sn=pt.exportedAction,Nn=pt.fileSavingAction,Yn={fileName:pt.fileName,format:pt.format,cancel:!1};return(0,C.jn)(pt.selectedRowsOnly)&&(Yn.selectedRowsOnly=pt.selectedRowsOnly),(0,C.mf)(hn)&&hn(Yn),Yn.cancel?(new Fe.BH).resolve():an(Ke,pt).then(st=>{(0,C.mf)(sn)&&sn(),(0,C.mf)(Nn)&&(Yn.data=st,Nn(Yn)),Yn.cancel||o.A.saveAs(Yn.fileName,"xlsx"===pt.format?"EXCEL":pt.format,st)})}var Wt={creator:mt,getData:function nn(Ke,pt){var an=new mt(Ke,pt);return an._checkZipState(),an.ready().then(()=>an.getData((0,C.mf)((0,I.Jj)().Blob)))},formatConverter:B},Ot={creator:Er,getData:function oo(Ke,pt){return Er.getData(Ke,pt)},testFormats:function fi(Ke){var pt=Er._createCanvas(100,100,0);return Ke.reduce(function(an,hn){var sn=("image/"+hn).toLowerCase();return-1!==pt.toDataURL(sn).indexOf(sn)?an.supported.push(hn):an.unsupported.push(hn),an},{supported:[],unsupported:[]})}},qt={getData:function bt(Ke,pt){return Er.getImageData(Ke,(0,f.l)({},pt,{format:"JPEG"})).then(an=>{var hn=function(Ke,pt,an){var hn=2*(pt.margin||0),{width:sn,height:Nn}=ir(pt.width,pt.height);Nn+=hn;var Yn=(.75*(sn+=hn)).toFixed(2),st=(.75*Nn).toFixed(2),Vt="%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_",Yn).replace("_height_",st),rn="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_",Yn).replace("_height_",st),Dn="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n".replace("_date_",an).replace("_version_",At.i),rt="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_",sn).replace("_height_",Nn).replace("_length_",Ke.length)+Ke+"\r\nendstream\r\nendobj\r\n",Bt=function cr(Ke,pt,an){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_",Ri(Ke+"",10)).replace("_info_",Ri(Ke+pt+"",10)).replace("_image_",Ri(Ke+pt+an+"",10))}(Vt.length,rn.length,Dn.length),gt=Vt+rn+Dn+rt;return gt+Bt+"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_",gt.length)}(an,pt,new Date),sn=(0,C.mf)(tn.Blob)?function(Ke){for(var pt=0,an=new Uint8Array(Ke.length);pt<Ke.length;pt++)an[pt]=Ke.charCodeAt(pt);return new tn.Blob([an.buffer],{type:"application/pdf"})}(hn):function(Ke){return tn.btoa(Ke)}(hn);return sn})}},mn={creator:uo,getData:function po(Ke,pt){return uo.getData(Ke,pt)}}},8114:(kn,he,l)=>{"use strict";l.d(he,{A:()=>d,L:()=>u});var o=l(9897),c=l(4514),I=l(8159),C=l(1828),f=l(2160),a=(0,c.Jj)(),p=(0,c.jW)(),s={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},u={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"},d={_revokeObjectURLTimeout:3e4,_getDataUri:function(h,g){var x=this._getMimeType(h);return"data:".concat(x,";base64,").concat(g)},_getMimeType:function(h){return u[h]||"application/octet-stream"},_linkDownloader:function(h,g){var x=o.Z.createElement("a");return x.download=h,x.href=g,x.target="_blank",x},_winJSBlobSave:function(h,g,x){var b=new Windows.Storage.Pickers.FileSavePicker;b.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary;var y=s[x];if(y){var E=this._getMimeType(x);b.fileTypeChoices.insert(E,["."+y])}b.suggestedFileName=g,b.pickSaveFileAsync().then(function(S){S&&S.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(O){var w=h.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(w,O).then(function(){O.flushAsync().done(function(){w.close(),O.close()})})})})},_click:function(h){try{h.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}catch{var g=o.Z.getDocument().createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,a,0,0,0,80,20,!1,!1,!1,!1,0,null),h.dispatchEvent(g)}},_saveBlobAs:function(h,g,x){if(this._blobSaved=!1,(0,C.$K)(p.msSaveOrOpenBlob))p.msSaveOrOpenBlob(x,h),this._blobSaved=!0;else if((0,C.$K)(a.WinJS))this._winJSBlobSave(x,h,g),this._blobSaved=!0;else{var b=a.URL||a.webkitURL||a.mozURL||a.msURL||a.oURL;if((0,C.$K)(b)){var y=b.createObjectURL(x),E=this._linkDownloader(h,y);setTimeout(()=>{b.revokeObjectURL(y),this._objectUrlRevoked=!0},this._revokeObjectURLTimeout),this._click(E)}else f.k.warn("window.URL || window.webkitURL || window.mozURL || window.msURL || window.oURL is not defined")}},saveAs:function(h,g,x){var b=s[g];if(b&&(h+="."+b),(0,C.mf)(a.Blob))this._saveBlobAs(h,g,x);else{(0,C.$K)(p.userAgent.match(/iPad/i))||I.Z.log("E1034");var y=this._linkDownloader(h,this._getDataUri(g,x));this._click(y)}}}},5062:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>p});var o=l(1828),c=l(8204),I=l(658),C=l(8119),f=l(2793);l(3128);const p=(0,f.Z)({format:function(s,u){var d=(0,o.HD)(u)&&""!==u||(0,o.PO)(u)||(0,o.mf)(u),h=(0,o.kE)(s)||(0,o.J_)(s);return d&&h?(0,o.mf)(u)?u(s):((0,o.HD)(u)&&(u={type:u}),(0,o.kE)(s)?I.Z.format(s,u):(0,o.J_)(s)?C.Z.format(s,u):void 0):(0,o.$K)(s)?s.toString():""},getTimeFormat:function(s){return s?"longtime":"shorttime"},_normalizeFormat:function(s){return Array.isArray(s)?1===s.length?s[0]:function(u){return s.map(function(d){return C.Z.format(u,d)}).join(" ")}:s},getDateFormatByDifferences:function(s,u){var d=[],h=u&&s.millisecond&&!(s.year||s.month||s.day);return h?d.push(function(g){return g.getSeconds()+g.getMilliseconds()/1e3+"s"}):s.millisecond&&d.push("millisecond"),(s.hour||s.minute||!h&&s.second)&&d.unshift(this.getTimeFormat(s.second)),s.year&&s.month&&s.day?u&&"month"===u?"monthandyear":(d.unshift("shortdate"),this._normalizeFormat(d)):s.year&&s.month?"monthandyear":s.year&&s.quarter?"quarterandyear":s.year?"year":s.quarter?"quarter":s.month&&s.day?(d.unshift(u?function(g){return C.Z.getMonthNames("abbreviated")[g.getMonth()]+" "+C.Z.format(g,"day")}:"monthandday"),this._normalizeFormat(d)):s.month?"month":s.day?(d.unshift(u?"day":function(g){return C.Z.format(g,"dayofweek")+", "+C.Z.format(g,"day")}),this._normalizeFormat(d)):this._normalizeFormat(d)},getDateFormatByTicks:function(s){var u,d,h;if(s.length>1)for(u=c.Z.getDatesDifferences(s[0],s[1]),h=1;h<s.length-1;h++)d=c.Z.getDatesDifferences(s[h],s[h+1]),u.count<d.count&&(u=d);else u={year:!0,month:!0,day:!0,hour:s[0].getHours()>0,minute:s[0].getMinutes()>0,second:s[0].getSeconds()>0,millisecond:s[0].getMilliseconds()>0};return this.getDateFormatByDifferences(u)},getDateFormatByTickInterval:function(s,u,d){var h,g=function(y,E,S){switch(E){case"year":case"quarter":y.month=S;case"month":y.day=S;case"week":case"day":y.hour=S;case"hour":y.minute=S;case"minute":y.second=S;case"second":y.millisecond=S}};d=(0,o.HD)(d)?d.toLowerCase():d;var y,E,S,x=c.Z.getDatesDifferences(s,u);return s!==u&&(y=x,E=s>u?u:s,!(S=s>u?s:u).getMilliseconds()&&S.getSeconds()?S.getSeconds()-E.getSeconds()==1&&(y.millisecond=!0,y.second=!1):!S.getSeconds()&&S.getMinutes()?S.getMinutes()-E.getMinutes()==1&&(y.second=!0,y.minute=!1):!S.getMinutes()&&S.getHours()?S.getHours()-E.getHours()==1&&(y.minute=!0,y.hour=!1):!S.getHours()&&S.getDate()>1?S.getDate()-E.getDate()==1&&(y.hour=!0,y.day=!1):1===S.getDate()&&S.getMonth()?S.getMonth()-E.getMonth()==1&&(y.day=!0,y.month=!1):!S.getMonth()&&S.getFullYear()&&S.getFullYear()-E.getFullYear()==1&&(y.month=!0,y.year=!1)),g(x,c.Z.getDateUnitInterval(x),!0),g(x,h=c.Z.getDateUnitInterval(d||"second"),!1),x[{week:"day"}[h]||h]=!0,this.getDateFormatByDifferences(x)}})},8198:(kn,he,l)=>{"use strict";l.d(he,{EV:()=>p,SP:()=>a,p6:()=>h,uf:()=>u});var o=l(5404),c=l(9009),I=l(658),C=l(8119),a=(l(3128),o.Z.locale.bind(o.Z)),p=c.Z.load.bind(c.Z),u=(c.Z.format.bind(c.Z),I.Z.format.bind(I.Z)),h=(I.Z.parse.bind(I.Z),C.Z.format.bind(C.Z));C.Z.parse.bind(C.Z)},5404:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>a});var o=l(2793);const c={"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"},C=(p,s)=>{var u=p[s];return u?"root"!==u&&u:s.substr(0,s.lastIndexOf("-"))};var f="en";const a=(0,o.Z)({locale:(p=f,s=>{if(!s)return p;p=s}),getValueByClosestLocale:function(p){for(var d,s=this.locale(),u=p(s);!u&&!d;)(s=C(c,s))?u=p(s):d=!0;return void 0===u&&s!==f?p(f):u}});var p},3128:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>c});var o=l(5873);const c={_formatNumberCore:function(I,C,f){if("currency"===C){f.precision=f.precision||0;var a=this.format(I,(0,o.l)({},f,{type:"fixedpoint"})),p=this.getCurrencySymbol().symbol.replace(/\$/g,"$$$$");return a.replace(/^(\D*)(\d.*)/,"$1"+p+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}}},8119:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>ee});var o=l(2793),c=l(1828),I=l(2718),C=l(9644),f=l(2204),a=l(3479),p=l(8638),s=l(4943);const u={"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 d=l(5404),h=l(658),g=l(5873),x=/[\u200E\u200F]/g,b=G=>q=>{if(!G.timeZoneName){var Z=q.getFullYear(),X=String(Z).length<3,se=new Date(Date.UTC(X?Z+400:Z,q.getMonth(),q.getDate(),q.getHours(),q.getMinutes(),q.getSeconds(),q.getMilliseconds()));return X&&se.setFullYear(Z),S(se,(0,g.l)({timeZone:"UTC"},G))}return S(q,G)},y={};function S(G,q){return(G=>{var q=d.Z.locale()+"/"+JSON.stringify(G);return y[q]||(y[q]=new Intl.DateTimeFormat(d.Z.locale(),G).format),y[q]})(q)(G).replace(x,"")}var G,O=G=>new Intl.NumberFormat(d.Z.locale()).format(G),w=(G={},q=>{if(!(q in G)){if("0"===O(0))return G[q]=!1,!1;G[q]={};for(var Z=0;Z<10;++Z)G[q][O(Z)]=Z}return G[q]}),T=G=>{var q=w(d.Z.locale());return q?G.split("").map(Z=>Z in q?String(q[Z]):Z).join(""):G},k=G=>G.replace(/(\D)0+(\d)/g,"$1$2"),P=G=>G.replace("d\u2019","de "),B={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(B,"shortdateshorttime",{get:function(){var G=Intl.DateTimeFormat(d.Z.locale()).resolvedOptions();return{year:G.year,month:G.month,day:G.day,hour:"numeric",minute:"numeric"}}});var W=G=>"string"==typeof G&&B[G.toLowerCase()],N={standalone:function(G,q){var Z=new Date(1999,G,13,1);return b({month:q})(Z)},format:function(G,q){var Z=new Date(0,G,13,1),M=P(b({day:"numeric",month:q})(Z)).split(" ").filter(se=>se.indexOf("13")<0);return 1===M.length?M[0]:2===M.length?M[0].length>M[1].length?M[0]:M[1]:N.standalone(G,q)}};const V={engine:function(){return"intl"},getMonthNames:function(G,q){var Z={wide:"long",abbreviated:"short",narrow:"narrow"}[G||"wide"];return q="format"===q?q:"standalone",Array.apply(null,new Array(12)).map((X,M)=>N[q](M,Z))},getDayNames:function(G){var Z;return Z={wide:"long",abbreviated:"short",short:"narrow",narrow:"narrow"}[G||"wide"],Array.apply(null,new Array(7)).map((X,M)=>b({weekday:Z})(new Date(0,0,M)))},getPeriodNames:function(){var G=b({hour:"numeric",hour12:!0});return[1,13].map(q=>{var Z=O(1),X=G(new Date(0,0,1,q)).split(Z);return 2!==X.length?"":(X[0].length>X[1].length?X[0]:X[1]).trim()})},format:function(G,q){if(G){if(!q)return G;"function"!=typeof q&&!q.formatter&&(q=q.type||q);var Z=W(q);if(Z)return b(Z)(G);var X=typeof q;return q.formatter||"function"===X||"string"===X?this.callBase.apply(this,arguments):b(q)(G)}},parse:function(G,q){var Z;return q&&!q.parser&&"string"==typeof G&&(G=P(G),Z=X=>P(this.format(X,q))),this.callBase(G,Z||q)},_parseDateBySimpleFormat:function(G,q){G=T(G);var Z=this.getFormatParts(q),X=G.split(/\D+/).filter(ge=>ge.length>0);if(Z.length===X.length){var M=this._generateDateArgs(Z,X),se=ge=>{var Fe,De=(Fe=M,new Date(Fe.year,Fe.month,Fe.day,(Fe.hours+(ge?12:0))%24,Fe.minutes,Fe.seconds));if(((G,q)=>k(G)===k(q))(T(this.format(De,q)),G))return De};return se(!1)||se(!0)}},_generateDateArgs:function(G,q){var Z=new Date,X={year:Z.getFullYear(),month:Z.getMonth(),day:Z.getDate(),hours:0,minutes:0,seconds:0};return G.forEach((M,se)=>{var De=parseInt(q[se],10);"month"===M&&(De-=1),X[M]=De}),X},formatUsesMonthName:function(G){return"object"!=typeof G||G.type||G.format?this.callBase.apply(this,arguments):"long"===G.month},formatUsesDayName:function(G){return"object"!=typeof G||G.type||G.format?this.callBase.apply(this,arguments):"long"===G.weekday},getTimeSeparator:function(){return T(S(new Date(2001,1,1,11,11),{hour:"numeric",minute:"numeric",hour12:!1})).replace(/\d/g,"")},getFormatParts:function(G){if("string"==typeof G)return this.callBase(G);var q=(0,g.l)({},B[G.toLowerCase()]),Z=new Date(2001,2,4,5,6,7),X=b(q)(Z);return X=T(X),[{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(M=>({name:M.name,index:X.indexOf(M.value)})).filter(M=>M.index>-1).sort((M,se)=>M.index-se.index).map(M=>M.name)}};var K=typeof Intl<"u",Y={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"},J={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"]},j=(0,o.Z)({engine:function(){return"base"},_getPatternByFormat:function(G){return Y[G.toLowerCase()]},_expandPattern:function(G){return this._getPatternByFormat(G)||G},formatUsesMonthName:function(G){return-1!==this._expandPattern(G).indexOf("MMMM")},formatUsesDayName:function(G){return-1!==this._expandPattern(G).indexOf("EEEE")},getFormatParts:function(G){var q=this._getPatternByFormat(G)||G,Z=[];return(0,I.S6)(q.split(/\W+/),(X,M)=>{(0,I.S6)(J,(se,ge)=>{ge.includes(M)&&Z.push(se)})}),Z},getMonthNames:function(G){return s.Z.getMonthNames(G)},getDayNames:function(G){return s.Z.getDayNames(G)},getQuarterNames:function(G){return s.Z.getQuarterNames(G)},getPeriodNames:function(G){return s.Z.getPeriodNames(G)},getTimeSeparator:function(){return":"},is24HourFormat:function(G){for(var q=new Date(2017,0,20,11,0,0,0),Z=new Date(2017,0,20,23,0,0,0),X=this.format(q,G),M=this.format(Z,G),se=0;se<X.length;se++)if(X[se]!==M[se])return!isNaN(parseInt(X[se]))},format:function(G,q){if(G){if(!q)return G;var Z;if("function"==typeof q)Z=q;else if(q.formatter)Z=q.formatter;else if((0,c.HD)(q=q.type||q))return q=Y[q.toLowerCase()]||q,h.Z.convertDigits((0,f.P)(q,this)(G));if(Z)return Z(G)}},parse:function(G,q){var X,M,Z=this;if(G){if(!q)return this.parse(G,"shortdate");if(q.parser)return q.parser(G);if("string"!=typeof q||Y[q.toLowerCase()]){M=ge=>{var De=Z.format(ge,q);return h.Z.convertDigits(De,!0)};try{X=(0,a.y)(M)}catch{}}else X=q;if(X)return G=h.Z.convertDigits(G,!0),(0,p.MT)(X,this)(G);C.Z.log("W0012");var se=new Date(G);if(se&&!isNaN(se.getTime()))return se}},firstDayOfWeekIndex:function(){var G=d.Z.getValueByClosestLocale(q=>u[q]);return void 0===G?0:G}});K&&j.inject(V);const ee=j},4943:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>p});var o=l(2718),c=["January","February","March","April","May","June","July","August","September","October","November","December"],I=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],C=["AM","PM"],f=["Q1","Q2","Q3","Q4"],a=(s,u)=>{var d={abbreviated:3,short:2,narrow:1};return(0,o.UI)(s,h=>h.substr(0,d[u]))};const p={getMonthNames:function(s){return a(c,s)},getDayNames:function(s){return a(I,s)},getQuarterNames:function(s){return f},getPeriodNames:function(s){return C}}},8379:(kn,he,l)=>{"use strict";l.d(he,{D:()=>I});var o=l(5404),c={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 I(){return c[o.Z.locale()]}},3479:(kn,he,l)=>{"use strict";l.d(he,{y:()=>b});var o=l(658),I=" .,:;/\\<>()-[]\u060c",f=function(y){var E=y&&o.Z.convertDigits(y,!1).charCodeAt(0),S=o.Z.convertDigits("0",!1).charCodeAt(0);return S<=E&&E<S+10},a=function(y,E,S,O){var w=y[S],T=y[S+1];if(!O&&("."===w||" "===w&&". m."===y.slice(S-1,S+3)||"-"===w&&!f(T)))return!0;var k=O&&E.some(R=>y[S]!==R[S]);return I.indexOf(w)<0&&O===f(w)&&(!O||k)},p=function(y,E){if(!f(y[E]))for(;E>0&&!f(y[E-1])&&("."===y[E-1]||I.indexOf(y[E-1])<0);)E--;return E},h=function(y,E){return Array.isArray(y)?y.map(function(S){return(E(S)||"").toString()}):(E(y)||"").toString()},g=/[a-zA-Z]/g,b=function(y){var E=[],S=h(new Date(2009,8,8,6,5,4),y),O=S.split("").map(function(R,P){return P}),w=S,T={},k=[{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(w&&(k.forEach(function(R){var P=function(y,E,S,O){var w=0,T=[],k=function(R){return y[w]!==R[w]&&(void 0===O||f(y[w])===O)};for(Array.isArray(E)||(E=[E]),w=0;w<y.length;w++)if(S.indexOf(w)<0&&E.filter(k).length){w=p(y,w);do{if(O=f(y[w]),!T.length&&!O&&f(E[0][w]))break;T.push(w),S.unshift(w),w++}while(y[w]&&a(y,E,w,O));break}return 1===T.length&&("0"===y[S[0]-1]||"\u0660"===y[S[0]-1])&&S.unshift(S[0]-1),T}(S,h(R.date,y),E,R.isDigit),B="M"!==R.pattern||T.d?R.pattern:"L";w=function(y,E,S,O){var w,T,k;if(!f(y[E[0]]||"0")){for(var R=Math.max(E.length<=3?3:4,S.length);E.length>R;){for(k=O[T=E.pop()],O[T]=-1,w=T+1;w<O.length;w++)O[w]--;y=y.substr(0,k)+y.substr(k+1)}for(k=(T=E[E.length-1]+1)<O.length?O[T]:T;E.length<R;){for(E.push(E[E.length-1]+1),w=T;w<O.length;w++)O[w]++;y=y.substr(0,k)+" "+y.substr(k)}}return y=function(y,E,S,O){var w=E[0],T=w<O.length?O[w]:w;return E.forEach(function(k,R){y=y.substr(0,T+R)+(S.length>1?S[R]:S)+y.substr(T+R+1)}),1===E.length&&(y=(y=y.replace("0"+S,S+S)).replace("\u0660"+S,S+S)),y}(y,E,S,O),y}(w,P,B,O),T[B]=P.length}),w=function(y,E,S,O){var w=E.split("").map(function(T,k){return S.indexOf(k)<0&&(T.match(g)||"'"===T)?O[k]:-1});return y.split("").map(function(T,k){var R=T,P=w.indexOf(k)>=0,B=k>0&&w.indexOf(k-1)>=0,W=w.indexOf(k+1)>=0;return P&&(B||(R="'"+R),W||(R+="'")),R}).join("")}(w,S,E,O),E.length))return w}},2204:(kn,he,l)=>{"use strict";function o(f,a){for(;f.length<a;)f="0"+f;return f}l.d(he,{P:()=>C});var c={3:"abbreviated",4:"wide",5:"narrow"},I={y:function(f,a,p){var s=f[p?"getUTCFullYear":"getFullYear"]();return 2===a&&(s%=100),o(s.toString(),a)},M:function(f,a,p,s){var u=f[p?"getUTCMonth":"getMonth"](),d=c[a];return d?s.getMonthNames(d,"format")[u]:o((u+1).toString(),Math.min(a,2))},L:function(f,a,p,s){var u=f[p?"getUTCMonth":"getMonth"](),d=c[a];return d?s.getMonthNames(d,"standalone")[u]:o((u+1).toString(),Math.min(a,2))},Q:function(f,a,p,s){var u=f[p?"getUTCMonth":"getMonth"](),d=Math.floor(u/3),h=c[a];return h?s.getQuarterNames(h)[d]:o((d+1).toString(),Math.min(a,2))},E:function(f,a,p,s){var u=f[p?"getUTCDay":"getDay"]();return s.getDayNames(c[a<3?3:a])[u]},a:function(f,a,p,s){var d=f[p?"getUTCHours":"getHours"]()<12?0:1;return s.getPeriodNames(c[a])[d]},d:function(f,a,p){return o(f[p?"getUTCDate":"getDate"]().toString(),Math.min(a,2))},H:function(f,a,p){return o(f[p?"getUTCHours":"getHours"]().toString(),Math.min(a,2))},h:function(f,a,p){return o((f[p?"getUTCHours":"getHours"]()%12||12).toString(),Math.min(a,2))},m:function(f,a,p){return o(f[p?"getUTCMinutes":"getMinutes"]().toString(),Math.min(a,2))},s:function(f,a,p){return o(f[p?"getUTCSeconds":"getSeconds"]().toString(),Math.min(a,2))},S:function(f,a,p){return o(f[p?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,a)},x:function(f,a,p){var s=p?0:f.getTimezoneOffset(),u=s>0?"-":"+",d=Math.abs(s),g=d%60,x=o(Math.floor(d/60).toString(),2),b=o(g.toString(),2);return u+x+(a>=3?":":"")+(a>1||g?b:"")},X:function(f,a,p){return p||!f.getTimezoneOffset()?"Z":I.x(f,a,p)},Z:function(f,a,p){return I.X(f,a>=5?3:2,p)}},C=function(f,a){return function(p){var s,u,d,x,h=0,g=!1,b="";if(!p)return null;if(!f)return p;var y="Z"===f[f.length-1]||"'Z'"===f.slice(-3);for(s=0;s<f.length;s++)u=I[d=f[s]],h++,(x=d===f[s+1])||(u&&!g&&(b+=u(p,h,y,a)),h=0),"'"!==d||x?(g||!u)&&(b+=d):g=!g,"'"===d&&x&&s++;return b}}},8638:(kn,he,l)=>{"use strict";l.d(he,{MT:()=>P,oo:()=>b,xe:()=>S});var o=l(7674),c=l(2160),I={3:"abbreviated",4:"wide",5:"narrow"},C=function(B,W){return B>2?Object.keys(I).map(function(N){return["format","standalone"].map(function(V){return W.getMonthNames(I[N],V).join("|")}).join("|")}).join("|"):2===B?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},f={":":function(B,W){var N=B>1?"{".concat(B,"}"):"",V=(0,o.hr)(W.getTimeSeparator());return":"!==V&&(V="".concat(V,"|:")),"".concat(V).concat(N)},y:function(B){return 2===B?"[0-9]{".concat(B,"}"):"[0-9]+?"},M:C,L:C,Q:function(B,W){return B>2?W.getQuarterNames(I[B],"format").join("|"):"0?[1-4]"},E:function(B,W){return"\\D*"},a:function(B,W){return W.getPeriodNames(I[B<3?3:B],"format").join("|")},d:function(B){return 2===B?"3[01]|[12][0-9]|0?[1-9]":"0??[1-9]|[12][0-9]|3[01]"},H:function(B){return 2===B?"2[0-3]|1[0-9]|0?[0-9]":"0??[0-9]|1[0-9]|2[0-3]"},h:function(B){return 2===B?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},m:function(B){return 2===B?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},s:function(B){return 2===B?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},S:function(B){return"[0-9]{1,".concat(B,"}")},w:function(B){return 2===B?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"}},a=Number,p=function(B,W){return B.map(N=>N.toLowerCase()).indexOf(W.toLowerCase())},s=function(B,W,N){return W>2?["format","standalone"].map(function(V){return Object.keys(I).map(function(U){var K=N.getMonthNames(I[U],V);return p(K,B)})}).reduce(function(V,U){return V.concat(U)}).filter(function(V){return V>=0})[0]:a(B)-1},u={y:function(B,W){var N=a(B);return 2===W?N<30?2e3+N:1900+N:N},M:s,L:s,Q:function(B,W,N){return W>2?N.getQuarterNames(I[W],"format").indexOf(B):a(B)-1},E:function(B,W,N){var V=N.getDayNames(I[W<3?3:W],"format");return p(V,B)},a:function(B,W,N){var V=N.getPeriodNames(I[W<3?3:W],"format");return p(V,B)},d:a,H:a,h:a,m:a,s:a,S:function(B,W){for(W=Math.max(W,3),B=B.slice(0,3);W<3;)B+="0",W++;return a(B)}},d=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(B,W,N){var V=B.getHours(),U=N.h;void 0!==U&&U!==V&&V--,W||12!==V?W&&12!==V&&(V+=12):V=0,B.setHours(V)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},g=function(B,W){var N=B[W];if(!N)return 0;var V=0;do{W++,V++}while(B[W]===N);return V},x=function(B,W){for(var N="",V=0;V<W;V++)N+=B;return N},b=function(B,W){for(var U,N="",V="",K=[],Y=function(){V&&(K.push("'".concat(V,"'")),N+="".concat((0,o.hr)(V),")"),V="")},J=0;J<B.length;J++){var j=B[J],G=f[j];if("'"!==j||(U=!U,"'"===B[J-1]))if(G&&!U){var q=g(B,J),Z=x(j,q);Y(),K.push(Z),N+="(".concat(G(q,W),")"),J+=q-1}else V||(N+="("),V+=j}return Y(),E(K)||c.k.warn("The following format may be parsed incorrectly: ".concat(B,".")),{patterns:K,regexp:new RegExp("^".concat(N,"$"),"i")}},y=["d","H","h","m","s","w","M","L","Q"],E=function(B){var W=U=>{if(!U)return!1;var K=U[0];return["y","S"].includes(K)||y.includes(K)&&U.length<3},N=!0,V=0;return B.every((U,K,Y)=>{return W(U)&&("S"!==(J=U)[0]&&2!==J.length&&(N=++V<2),W(Y[K+1])||(V=0)),N;var J})},S=function(){return h},P=function(B,W){var N=b(B,W);return function(V){var U=N.regexp.exec(V);if(U){var K=new Date,Y=new Date(K.getFullYear(),0,1),J=function(B){return B.map(function(W){return"'"===W[0]?"":"H"===W[0]?"h":W[0]})}(N.patterns),j=function(B){var W=B.map(function(N){return d.indexOf(N)});return Math.max.apply(Math,W)}(J),ee=function(B){var W=B.filter(function(N){return d.indexOf(N)<0});return d.concat(W)}(J),G={};return ee.forEach(function(q,Z){if(q&&!(Z<d.length&&Z>j)){var X=J.indexOf(q);X>=0?function(B,W,N,V,U){var K=W[0],Y=h[K],J=u[K];if(Y&&J){var j=J(N,W.length,V);U[W]=j,B[Y]?B[Y](j):Y(B,j,U)}}(Y,N.patterns[X],U[X+1],W,G):function(B,W,N){var V=h[W],K=N["g"+V.substr(1)]();B[V](K)}(Y,q,K)}}),Y}return null}}},6865:(kn,he,l)=>{"use strict";l.d(he,{P:()=>O,y:()=>R});var o=l(3487),c=l(9474),I={thousandsSeparator:",",decimalSeparator:"."};function u(P){return P.toString().split("").reverse().join("")}function h(P){return P.replace(/'.+'/g,"")}function g(P){if(!P)return 0;var B=h(P);return B.length-B.replace(/[#]/g,"").length}function x(P){if(!P)return 0;var B=h(P);return B.length-B.replace(/[0]/g,"").length}function b(P,B,W){if(!P)return"";for(P.length>W&&(P=P.substr(0,W));P.length>B&&"0"===P.slice(-1);)P=P.substr(0,P.length-1);for(;P.length<B;)P+="0";return P}function E(P,B){return P.split("'").map(function(W,N){var V=N%2;return!W&&V?"'":V?W:W.replace(/[,#0]+/,B)}).join("")}function O(P,B){return B=B||I,function(W){if("number"!=typeof W||isNaN(W))return"";var N=function s(P){var B=P.split(";");return 1===B.length&&B.push("-"+B[0]),B}(P),U=W>0||1/W==1/0,K=N[U?0:1],Y=function S(P){for(var B=!1,W=0;W<P.length;W++)if("'"===P[W]&&(B=!B),"."===P[W]&&!B)return W;return P.length}(K),J=[K.substr(0,Y),K.substr(Y+1)],j=x(J[1]),ee=j+g(J[1]);(function d(P){return-1!==P.indexOf("%")&&!P.match(/'[^']*%[^']*'/g)})(K)&&(W=(0,o.Ow)(W,2)),U||(W=-W);var G=x(J[0]),q=g(J[0])||B.unlimitedIntegerDigits?void 0:G,Z=Math.floor(W).toString().length,X=(0,o.n$)(ee,0,15-Z),M=function p(P){return P.split(",").slice(1).map(function(B){var W=0;return B.split("").filter(function(N,V){return W+="'"===N,!("#"!==N&&"0"!==N||W%2)}).length})}(J[0]).reverse(),se=(0,c.F)(W,X<0?0:X).split("."),ge=b(u(se[0]),G,q),De=b(se[1],j,ee);ge=function y(P,B,W){if(!B.length)return P;for(var N=[],V=0;P;){var U=B[V];if(!U)break;N.push(P.slice(0,U)),P=P.slice(U),V<B.length-1&&V++}return N.join(W)}(ge,M,B.thousandsSeparator);var Fe=u(E(u(J[0]),ge)),Ae=ee?E(J[1],De):"";return Fe+(Ae.match(/\d/)?B.decimalSeparator:"")+Ae}}function w(P,B,W){var N=(B?.01:1)*parseFloat(P)||0;return W?-N:N}function T(P,B,W,N){var U,K,Y,V=P;do{Y&&(U=K.length===Y.length?"0":"1",P=N?U+P:P+U),K=Y||B(w(V,W)),Y=B(w(V=N?"1"+V:V+"1",W))}while(K!==Y&&(N?K.length===Y.length:K.length<=Y.length));if(N&&Y.length>K.length){var J=-1===B(12345).indexOf("12345");do{P="1"+P}while(J&&w(P,W)<1e5)}return P}function k(P,B,W,N){var V=B(w(P,W,N)),U=P.split("."),J=B(w(U[0]+".3"+U[1].slice(1),W,N)).indexOf("3")-1;return V=V.replace(/(\d)\D(\d)/g,"$1,$2"),J>=0&&(V=V.slice(0,J)+"."+V.slice(J+1)),V=V.replace(/1+/,"1").replace(/1/g,"#"),W||(V=V.replace("%","'%'")),V}function R(P){var B=".",W=P(1).indexOf("100")>=0;B=T(B,P,W,!0);var N=k(B=T(B,P,W,!1),P,W,!1),V=k(B,P,W,!0);return V==="-"+N?N:N+";"+V}},9009:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>h});var o=l(2793),c=l(5873),I=l(9589),C=l(7981),f=l(5404),p=(0,c.l)(!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}"}}),u={};const h=(0,o.Z)({engine:function(){return"base"},_dictionary:p,load:function(g){(0,c.l)(!0,this._dictionary,g)},_localizablePrefix:"@",setup:function(g){this._localizablePrefix=g},localizeString:function(g){var x=this,b=new RegExp("(^|[^a-zA-Z_0-9"+x._localizablePrefix+"-]+)("+x._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),y=x._localizablePrefix+x._localizablePrefix;return g.replace(b,(E,S,O,w)=>{var k,T=x._localizablePrefix+w;return O!==y&&(k=x.format(w)),k||(u[w]=(0,C.OI)(w)),S+(k||T)})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(g){return g?u:(0,c.l)({},u,this.getMessagesByLocales()[f.Z.locale()])},getFormatter:function(g){return this._getFormatterBase(g)||this._getFormatterBase(g,"en")},_getFormatterBase:function(g,x){var b=f.Z.getValueByClosestLocale(y=>((g,x)=>this._dictionary[x]||{})(0,y)[g]);if(b)return function(){var y=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return y.unshift(b),I.WU.apply(this,y)}},format:function(g){var x=this.getFormatter(g),b=Array.prototype.slice.call(arguments,1);return x&&x.apply(this,b)||""}})},658:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>V});var o=l(2793),c=l(7674),I=l(2718),C=l(1828),f=l(6865),a=l(7572),p=l(9644),s=l(9474),u=l(3128),d=l(5404);const g={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 x=["standard","accounting"],y=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,E={},S=U=>{var K=d.Z.locale()+"/"+JSON.stringify(U);return E[K]||(E[K]=new Intl.NumberFormat(d.Z.locale(),U).format),E[K]};const w={engine:function(){return"intl"},_formatNumberCore:function(U,K,Y){return"exponential"===K?this.callBase.apply(this,arguments):S(this._normalizeFormatConfig(K,Y,U))(U)},_normalizeFormatConfig:function(U,K,Y){var J;if("decimal"===U){var j=String(Y).split(".")[1];J={minimumIntegerDigits:K.precision||void 0,useGrouping:!1,maximumFractionDigits:j&&j.length,round:Y<0?"ceil":"floor"}}else J=this._getPrecisionConfig(K.precision);if("percent"===U)J.style="percent";else if("currency"===U){var ee,G=null!==(ee=K.useCurrencyAccountingStyle)&&void 0!==ee?ee:(0,a.Z)().defaultUseCurrencyAccountingStyle;J.style="currency",J.currency=K.currency||(0,a.Z)().defaultCurrency,J.currencySign=x[+G]}return J},_getPrecisionConfig:function(U){return null===U?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:U||0,maximumFractionDigits:U||0}},format:function(U,K){return"number"!=typeof U?U:("default"===(K=this._normalizeFormat(K)).currency&&(K.currency=(0,a.Z)().defaultCurrency),K&&("function"==typeof K||K.type||K.formatter)?this.callBase.apply(this,arguments):S(K)(U))},_getCurrencySymbolInfo:function(U){var K=(U=>new Intl.NumberFormat(d.Z.locale(),{style:"currency",currency:U}))(U);return this._extractCurrencySymbolInfo(K.format(0))},_extractCurrencySymbolInfo:function(U){var K=y.exec(U)||[];return{position:K[1]?"before":"after",symbol:K[1]||K[4]||"",delimiter:K[2]||K[3]||""}},getCurrencySymbol:function(U){return U||(U=(0,a.Z)().defaultCurrency),{symbol:this._getCurrencySymbolInfo(U).symbol}},getOpenXmlCurrencyFormat:function(U){var K=U||(0,a.Z)().defaultCurrency;return((U,K)=>{if(K){var Y=U;if("string"==typeof U){Y="";for(var J=0;J<U.length;J++)"$"!==U[J]&&(Y+="\\"),Y+=U[J]}for(var j={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':"&quot;","\\\xa4":Y},ee=K.split(";"),G=0;G<ee.length;G++)for(var q in j)Object.prototype.hasOwnProperty.call(j,q)&&(ee[G]=ee[G].replace(new RegExp(q,"g"),j[q]));return 2===ee.length?ee[0]+"_);"+ee[1]:ee[0]}})(this._getCurrencySymbolInfo(K).symbol,d.Z.getValueByClosestLocale(j=>g[j]))}};var T=typeof Intl<"u",P=["currency","fixedpoint","exponential","percent","decimal"],B={1:"K",2:"M",3:"B",4:"T"},W={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},N=(0,o.Z)({engine:function(){return"base"},numericFormats:P,defaultLargeNumberFormatPostfixes:B,_parseNumberFormatString:function(U){var K={};if(U&&"string"==typeof U){var Y=U.toLowerCase().split(" ");if((0,I.S6)(Y,(J,j)=>{P.includes(j)?K.formatType=j:j in W&&(K.power=W[j])}),K.power&&!K.formatType&&(K.formatType="fixedpoint"),K.formatType)return K}},_calculateNumberPower:function(U,K,Y,J){var j=Math.abs(U),ee=0;if(j>1)for(;j&&j>=K&&(void 0===J||ee<J);)ee++,j/=K;else if(j>0&&j<1)for(;j<1&&(void 0===Y||ee>Y);)ee--,j*=K;return ee},_getNumberByPower:function(U,K,Y){for(var J=U;K>0;)J/=Y,K--;for(;K<0;)J*=Y,K++;return J},_formatNumber:function(U,K,Y){"auto"===K.power&&(K.power=this._calculateNumberPower(U,1e3,0,4)),K.power&&(U=this._getNumberByPower(U,K.power,1e3));var J=this.defaultLargeNumberFormatPostfixes[K.power]||"",j=this._formatNumberCore(U,K.formatType,Y);return j.replace(/(\d|.$)(\D*)$/,"$1"+J+"$2")},_formatNumberExponential:function(U,K){var Y=this._calculateNumberPower(U,10),J=this._getNumberByPower(U,Y,10);void 0===K.precision&&(K.precision=1),J.toFixed(K.precision||0)>=10&&(Y++,J/=10);var j=(Y>=0?"+":"")+Y.toString();return this._formatNumberCore(J,"fixedpoint",K)+"E"+j},_addZeroes:function(U,K){for(var Y=Math.pow(10,K),J=U<0?"-":"",j=(U=(Math.abs(U)*Y>>>0)/Y).toString();j.length<K;)j="0"+j;return J+j},_addGroupSeparators:function(U){var K=U.toString().split(".");return K[0].replace(/\B(?=(\d{3})+(?!\d))/g,(0,a.Z)().thousandsSeparator)+(K[1]?(0,a.Z)().decimalSeparator+K[1]:"")},_formatNumberCore:function(U,K,Y){return"exponential"===K?this._formatNumberExponential(U,Y):("decimal"!==K&&null!==Y.precision&&(Y.precision=Y.precision||0),"percent"===K&&(U*=100),void 0!==Y.precision&&(U="decimal"===K?this._addZeroes(U,Y.precision):null===Y.precision?U.toPrecision():(0,s.F)(U,Y.precision)),U="decimal"!==K?this._addGroupSeparators(U):U.toString().replace(".",(0,a.Z)().decimalSeparator),"percent"===K&&(U+="%"),U)},_normalizeFormat:function(U){return U?("function"==typeof U||(0,C.PO)(U)||(U={type:U}),U):{}},_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(U,K){var Y=this.format(90,"decimal");if("string"!=typeof U||"0"===Y[1])return U;var J=K?Y[1]:"0",j=K?"0":Y[1],G=new RegExp("["+J+"-"+(K?Y[0]:"9")+"]","g");return U.replace(G,q=>String.fromCharCode(q.charCodeAt(0)+(j.charCodeAt(0)-J.charCodeAt(0))))},getNegativeEtalonRegExp:function(U){var K=this._getSeparators(),Y=new RegExp("[0-9"+(0,c.hr)(K.decimalSeparator+K.thousandsSeparator)+"]+","g"),J=this.format(-1,U).replace(Y,"1");return["\\","(",")","[","]","*","+","$","^","?","|","{","}"].forEach(j=>{J=J.replace(new RegExp("\\".concat(j),"g"),"\\".concat(j))}),J=(J=J.replace(/ /g,"\\s")).replace(/1/g,".*"),new RegExp(J,"g")},getSign:function(U,K){if(!K)return"-"===U.replace(/[^0-9-]/g,"").charAt(0)?-1:1;var Y=this.getNegativeEtalonRegExp(K);return U.match(Y)?-1:1},format:function(U,K){if("number"!=typeof U||"number"==typeof K)return U;if("function"==typeof(K=K&&K.formatter||K))return K(U);(K=this._normalizeFormat(K)).type||(K.type="decimal");var Y=this._parseNumberFormatString(K.type);if(!Y){var J=this._getSeparators();return J.unlimitedIntegerDigits=K.unlimitedIntegerDigits,this.convertDigits((0,f.P)(K.type,J)(U))}return this._formatNumber(U,Y,K)},parse:function(U,K){if(U){if(K&&K.parser)return K.parser(U);U=this.convertDigits(U,!0),K&&"string"!=typeof K&&p.Z.log("W0011");var Y=this.getDecimalSeparator(),J=new RegExp("[^0-9"+(0,c.hr)(Y)+"]","g"),j=U.replace(J,"").replace(Y,".").replace(/\.$/g,"");if("."===j||""===j)return null;if(this._calcSignificantDigits(j)>15)return NaN;var ee=+j*this.getSign(U,K);K=this._normalizeFormat(K);var G=this._parseNumberFormatString(K.type),q=G?.power;if(q){if("auto"===q){var Z=U.match(/\d(K|M|B|T)/);Z&&(q=Object.keys(B).find(X=>B[X]===Z[1]))}ee*=Math.pow(10,3*q)}return"percent"===G?.formatType&&(ee/=100),ee}},_calcSignificantDigits:function(U){var[K,Y]=U.split("."),J=ee=>{for(var G=-1,q=0;q<ee.length;q++)if("0"!==ee[q]){G=q;break}return G>-1?ee.length-G:0},j=0;return K&&(j+=J(K.split(""))),Y&&(j+=J(Y.split("").reverse())),j}});N.inject(u.Z),T&&N.inject(w);const V=N},9474:(kn,he,l)=>{"use strict";l.d(he,{F:()=>f});var o=l(3487);function C(a,p){var s=Math.pow(10,p);return function I(a){return(0,o.Xx)(a)*Math.round(Math.abs(a))}((0,o.Ow)(a,p))/s}function f(a,p){var s=p||0,u=s>0?C(...arguments):a;return u.toFixed(s)}},903:(kn,he,l)=>{"use strict";l.d(he,{E:()=>c});var c=(0,l(6084).kr)(void 0)},4691:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>N});var o=l(4817),c=l(9056),I=l(8478),C=l(6084),f=l(4572),a=l(9897),p=l(5610),s=l(2793),u=V=>{var{parentNode:U}=V;U&&((0,p.nK)(V),U.$V=V.$V,(0,c.sY)(null,U),U.appendChild(V),V.innerHTML="",delete U.$V),delete V.$V};const d=(0,s.Z)({createElement:(V,U)=>(0,f.a)(V,U),remove:u,onAfterRender:()=>{C.rN.callEffects()},onPreRender:()=>{C.rN.lock()},render:(V,U,K,Y)=>{if(Y)(0,c.sY)((0,f.a)(V,U),K);else{var{parentNode:J}=K,j=K?.nextSibling,ee=a.Z.createElement("div");ee.appendChild(K);var G=a.Z.createDocumentFragment().appendChild(ee);!!K.$V&&u(K),(0,C.ZB)((0,f.a)(V,U),G),K.$V=G.$V,J&&J.insertBefore(K,j)}}});var h=l(9904),g=l(8893),x=l(5873),b=l(6881),y=l(1828),S=l(6520),O=l(2718);class T extends C.OS{constructor(U){super(U),this.renderTemplate=this.renderTemplate.bind(this)}renderTemplate(){var U,K=(0,c.lN)(this.$LI,!0),Y=K.parentNode,J=(0,h.Z)(Y),j=J.contents(),{data:ee,index:G}=null!==(U=this.props.model)&&void 0!==U?U:{data:{}};ee&&Object.keys(ee).forEach(Z=>{ee[Z]&&a.Z.isNode(ee[Z])&&(ee[Z]=(0,b.u)((0,h.Z)(ee[Z])))});var q=(0,h.Z)(this.props.template.render((0,o.Z)({container:(0,b.u)(J),transclude:this.props.transclude},{renovated:this.props.renovated},this.props.transclude?{}:{model:ee},!this.props.transclude&&Number.isFinite(G)?{index:G}:{})));return(0,S.dL)((0,h.Z)(K),q),()=>{((V,U)=>{(0,O.S6)(U,(K,Y)=>{var J=!1;(0,O.S6)(V,(j,ee)=>{Y===ee&&(J=!0)}),!J&&Y.parentNode&&Y.parentNode.removeChild(Y)})})(j,J.contents()),Y.appendChild(K)}}shouldComponentUpdate(U){var{model:K,template:Y}=this.props,{model:J,template:j}=U;if(Y!==j)return!0;if((0,y.$K)(K)&&(0,y.$K)(J)){var{data:G,index:q}=K,{data:Z,index:X}=J;return q!==X||!((V,U)=>Object.keys(V).length===Object.keys(U).length&&Object.keys(V).every(K=>V[K]===U[K]))(G,Z)}return!(K===J)}createEffects(){return[new C.b0(this.renderTemplate,[this.props.template,this.props.model])]}updateEffects(){this._effects[0].update([this.props.template,this.props.model])}componentWillUnmount(){}render(){return null}}var k=l(6738);function R(V){return Array.isArray(V)?[...V]:(0,o.Z)({},V)}function P(V,U,K){var Y=R(K.length>0&&U&&V!==U?U:V),J=K[0];return K.length>1?Y[J]=P(V[J],U?.[J],K.slice(1)):J&&(Y[J]=(0,y.PO)(V[J])?R(V[J]):V[J]),Y}function B(V,U,K,Y){var J=U[K],j=V[K];V[K]=(0,y.PO)(J)||K!==Y&&Array.isArray(J)?P(J,j,(0,k.Zw)(Y).slice(1)):J}var W=(V,U)=>K=>{Object.prototype.hasOwnProperty.call(V,K)&&void 0===V[K]&&(V[K]=U(K))};let N=(()=>{class V extends g.Z{constructor(K,Y){super(K,Y),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 K;return null===(K=this._viewRef)||void 0===K?void 0:K.current}_checkContentReadyOption(K){var Y=this._getContentReadyOptions().reduce((J,j)=>(J[j]=!0,J),{});return this._checkContentReadyOption=J=>!!Y[J],this._checkContentReadyOption(K)}_getContentReadyOptions(){return["rtlEnabled"]}_fireContentReady(){this._actionsMap.onContentReady({})}_getDefaultOptions(){var K=this._getViewComponentDefaultProps();return(0,x.l)(!0,super._getDefaultOptions(),K,this._propsInfo.twoWay.reduce((Y,J)=>{var[j,ee,G]=J;return(0,o.Z)({},Y,{[j]:K[ee],[G]:q=>this.option(j,q)})},{}),this._propsInfo.templates.reduce((Y,J)=>(0,o.Z)({},Y,{[J]:null}),{}))}_getUnwrappedOption(){var K={};return Object.keys(this.option()).forEach(Y=>{K[Y]=this.option(Y)}),K}_initializeComponent(){var K;super._initializeComponent(),null===(K=this._templateManager)||void 0===K||K.addDefaultTemplates(this.getDefaultTemplates());var Y=this._getUnwrappedOption();this._props=this._optionsWithDefaultTemplates(Y),this._propsInfo.templates.forEach(J=>{this._componentTemplates[J]=this._createTemplateComponent(this._props[J])}),Object.keys(this._getActionConfigsFull()).forEach(J=>this._addAction(J)),this._viewRef=(0,c.Vf)(),this.defaultKeyHandlers=this._createDefaultKeyHandlers()}_initMarkup(){var K=this.getProps();this._renderWrapper(K)}_renderWrapper(K){var Y=this.$element()[0];this._isNodeReplaced||d.onPreRender(),d.render(this._viewComponent,K,Y,this._isNodeReplaced),this._isNodeReplaced||(this._isNodeReplaced=!0,d.onAfterRender(),this._shouldRaiseContentReady=!0),this._shouldRaiseContentReady&&(this._fireContentReady(),this._shouldRaiseContentReady=!1)}_silent(K,Y){this._options.silent(K,Y)}_render(){}_removeWidget(){d.remove(this.$element()[0])}_dispose(){this._removeWidget(),super._dispose()}get elementAttr(){var K=this.$element()[0];if(!this._elementAttr){var{attributes:Y}=K,J=Array.from(Y).filter(q=>{var Z;return!this._propsInfo.templates.includes(q.name)&&(null===(Z=Y[q.name])||void 0===Z?void 0:Z.specified)}).reduce((q,Z)=>{var{name:X,value:M}=Z,se=q;return se[X]=""===M&&X in K?K[X]:M,se},{});this._elementAttr=J,this._storedClasses=K.getAttribute("class")||""}for(var j=K.style,ee={},G=0;G<j.length;G+=1)ee[j[G]]=j.getPropertyValue(j[G]);return this._elementAttr.style=ee,this._elementAttr.class=this._storedClasses,this._elementAttr}_getAdditionalActionConfigs(){return{onContentReady:{excludeValidators:["disabled","readOnly"]}}}_getAdditionalProps(){return[]}_patchOptionValues(K){var{allowNull:Y,elements:J,props:j,twoWay:ee}=this._propsInfo,G=this._getViewComponentDefaultProps(),q=Object.keys(G),Z=this._getDefaultOptions(),{children:X,onKeyboardHandled:M,ref:se}=K,De={ref:se,children:X,onKeyDown:M?(Fe,Ae)=>{M(Ae)}:void 0};return[...j,...this._getAdditionalProps()].forEach(Fe=>{Object.prototype.hasOwnProperty.call(K,Fe)&&(De[Fe]=K[Fe])}),Y.forEach(W(De,()=>null)),q.forEach(W(De,Fe=>Z[Fe])),ee.forEach(Fe=>{var[Ae,ne]=Fe;W(De,()=>Z[ne])(Ae)}),J.forEach(Fe=>{if(Fe in De){var Ae=De[Fe];(0,y.ZU)(Ae)&&(De[Fe]=this._patchElementParam(Ae))}}),De}getSupportedKeyNames(){return[]}prepareStyleProp(K){return"string"==typeof K.style?(0,o.Z)({},K,{style:{},cssText:K.style}):K}getProps(){var K,Y,{elementAttr:J}=this.option(),j=this._patchOptionValues((0,o.Z)({},this._props,{ref:this._viewRef,children:this._extractDefaultSlot(),aria:this._aria}));return this._propsInfo.templates.forEach(ee=>{j[ee]=this._componentTemplates[ee]}),this.prepareStyleProp((0,o.Z)({},j,this.elementAttr,J,{className:[...(null!==(K=this.elementAttr.class)&&void 0!==K?K:"").split(" "),...(null!==(Y=J?.class)&&void 0!==Y?Y:"").split(" ")].filter((ee,G,q)=>ee&&q.indexOf(ee)===G).join(" ").trim(),class:""},this._actionsMap))}_getActionConfigs(){return{}}_getActionConfigsFull(){return(0,o.Z)({},this._getActionConfigs(),this._getAdditionalActionConfigs())}getDefaultTemplates(){var K=Object.values(this._templatesInfo),Y={};return K.forEach(J=>{Y[J]="dx-renovation-template-mock"}),Y}get _templatesInfo(){return{}}_optionsWithDefaultTemplates(K){var Y=Object.entries(this._templatesInfo).reduce((J,j)=>{var ee,[G,q]=j;return(0,o.Z)({},J,{[G]:null!==(ee=K[G])&&void 0!==ee?ee:q})},{});return(0,o.Z)({},K,Y)}_init(){super._init(),this.customKeyHandlers={},this._actionsMap={},this._aria={},this._componentTemplates={}}_createDefaultKeyHandlers(){var K={};return this.getSupportedKeyNames().forEach(J=>{K[J]=j=>this.viewRef.keyDown(I.Z.createKeyDownOptions(j))}),K}_addAction(K,Y){var J=Y;if(!J){var j=this._createActionByOption(K,this._getActionConfigsFull()[K]);J=ee=>(Object.keys(ee).forEach(G=>{(0,y.$K)(ee[G])&&a.Z.isNode(ee[G])&&(ee[G]=(0,b.u)((0,h.Z)(ee[G])))}),j(ee))}this._actionsMap[K]=J}_optionChanged(K){var{fullName:Y,name:J,previousValue:j,value:ee}=K;B(this._props,this.option(),J,Y),this._propsInfo.templates.includes(J)&&ee!==j&&(this._componentTemplates[J]=this._createTemplateComponent(ee)),J&&this._getActionConfigsFull()[J]&&this._addAction(J),this._shouldRaiseContentReady=this._shouldRaiseContentReady||this._checkContentReadyOption(Y),super._optionChanged(K),this._invalidate()}_extractDefaultSlot(){return this.option("_hasAnonymousTemplateContent")?d.createElement(T,{template:this._getTemplate(this._templateManager.anonymousTemplateName),transclude:!0,renovated:!0}):null}_createTemplateComponent(K){if(K){var Y=this._getTemplate(K);if(!(0,y.HD)(Y)||"dx-renovation-template-mock"!==Y)return J=>d.createElement(T,{template:Y,model:J})}}_wrapKeyDownHandler(K){return Y=>{var{keyName:J,originalEvent:j,which:ee}=Y,G=this.customKeyHandlers,q=G[J]||G[ee];return void 0===q||q.bind(this)(j,Y)?K?.(j,Y):(j.cancel=!0,j)}}_toPublicElement(K){return(0,b.u)((0,h.Z)(K))}_patchElementParam(K){try{var J=(0,h.Z)(K)?.get(0);return null!=J&&J.nodeType?J:K}catch{return K}}repaint(){this._isNodeReplaced=!1,this._shouldRaiseContentReady=!0,this._removeWidget(),this._refresh()}_supportedKeys(){return(0,o.Z)({},this.defaultKeyHandlers,this.customKeyHandlers)}registerKeyHandler(K,Y){this.customKeyHandlers[K]=Y}setAria(K,Y){this._aria[K]=Y,this._initMarkup()}_getViewComponentDefaultProps(){return this._viewComponent.defaultProps||{}}}return V.IS_RENOVATED_WIDGET=!1,V.IS_RENOVATED_WIDGET=!0,V})()},241:(kn,he,l)=>{"use strict";l.d(he,{zx:()=>ee,vC:()=>q});var o=l(9943),c=l(4817),I=l(9056),C=l(6084),f=l(3238),a=l(2941),p=l(2722),s=l(114),u=l(3667),d=l(4328),h=l(7981),g=["iconTemplate","position","source"],b={position:"left",source:""},y=Z=>Z&&(Z.defaultProps?X=>(0,I.vs)((0,I.Iz)(2,Z,(0,c.Z)({},X))):Z);let E=(()=>{class Z extends C.Ul{constructor(M){super(M),this.state={}}get sourceType(){return(0,d.P)(this.props.source)}get cssClass(){return"left"!==this.props.position?"dx-icon-right":""}get iconClassName(){var M={"dx-icon":!0,[this.cssClass]:!!this.cssClass},{source:se}=this.props;return"dxIcon"===this.sourceType?(0,u.G)((0,c.Z)({},M,{["dx-icon-".concat(se)]:!0})):"fontIcon"===this.sourceType?(0,u.G)((0,c.Z)({},M,{[String(se)]:!!se})):"image"===this.sourceType?(0,u.G)(M):"svg"===this.sourceType?(0,u.G)((0,c.Z)({},M,{"dx-svg-icon":!0})):""}get restAttributes(){return(0,o.Z)(this.props,g)}render(){var M=this.props;return(Z=>{var{iconClassName:X,props:{iconTemplate:M,source:se},sourceType:ge}=Z;return(0,I.xJ)(["dxIcon"===ge&&(0,I.Wm)(1,"i",X),"fontIcon"===ge&&(0,I.Wm)(1,"i",X),"image"===ge&&(0,I.Wm)(1,"img",X,null,1,{alt:"",src:se}),M&&(0,I.Wm)(1,"i",X,M({}),0)],0)})({props:(0,c.Z)({},M,{iconTemplate:y(M.iconTemplate)}),sourceType:this.sourceType,cssClass:this.cssClass,iconClassName:this.iconClassName,restAttributes:this.restAttributes})}}return Z.defaultProps=b,Z})();var S=l(9644),O=l(4594),w=["config"],k={config:Object.freeze({})};let R=(()=>{class Z extends C.Ul{constructor(M){super(M),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:M}=this.props;return(0,O.py)(M)})()}get restAttributes(){return(0,o.Z)(this.props,w)}hideWave(M){(0,O.OM)(this.getConfig,M)}showWave(M){(0,O.bI)(this.getConfig,M)}componentWillUpdate(M,se,ge){this.props.config!==M.config&&(this.__getterCache.getConfig=void 0)}render(){return(Z=>(0,I.vs)((0,I.Wm)(1,"div","dx-inkripple",null,1,(0,c.Z)({},Z.restAttributes))))({props:(0,c.Z)({},this.props),getConfig:this.getConfig,restAttributes:this.restAttributes})}}return Z.defaultProps=k,Z})();var P=l(2735),B=l(1669),W=l(9009),N=["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"],V=["outlined","text","contained"],Y=Object.create(Object.prototype,(0,c.Z)(Object.getOwnPropertyDescriptors(B.O),Object.getOwnPropertyDescriptors({activeStateEnabled:!0,hoverStateEnabled:!0,icon:"",iconPosition:"left",stylingMode:"contained",text:"",type:"normal",useInkRipple:!1,useSubmitBehavior:!1,templateData:Object.freeze({})}))),J=(0,f.J3)([{device:()=>"desktop"===a.Z.real().deviceType&&!a.Z.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>(0,p.x2)((0,p.Vk)()),options:{useInkRipple:!0}}]),j=Z=>Z&&(Z.defaultProps?X=>(0,I.vs)((0,I.Iz)(2,Z,(0,c.Z)({},X))):Z);class ee extends C.DZ{constructor(X){super(X),this.state={},this.contentRef=(0,I.Vf)(),this.inkRippleRef=(0,I.Vf)(),this.submitInputRef=(0,I.Vf)(),this.widgetRef=(0,I.Vf)(),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 C.b0(this.submitEffect,[this.props.onSubmit,this.props.useSubmitBehavior]),new C.b0(this.checkDeprecation,[this.props.type]),(0,C.gt)()]}updateEffects(){var X,M;null===(X=this._effects[0])||void 0===X||X.update([this.props.onSubmit,this.props.useSubmitBehavior]),null===(M=this._effects[1])||void 0===M||M.update([this.props.type])}submitEffect(){var{onSubmit:X,useSubmitBehavior:M}=this.props;if(M&&X)return s.V4.on(this.submitInputRef.current,se=>X({event:se,submitInput:this.submitInputRef.current}),{namespace:"UIFeedback"}),()=>s.V4.off(this.submitInputRef.current,{namespace:"UIFeedback"})}checkDeprecation(){var{type:X}=this.props;"back"===X&&S.Z.log("W0016","type","back","22.2","Use the 'back' icon instead")}onActive(X){var{useInkRipple:M}=this.props;M&&this.inkRippleRef.current.showWave({element:this.contentRef.current,event:X})}onInactive(X){var{useInkRipple:M}=this.props;M&&this.inkRippleRef.current.hideWave({element:this.contentRef.current,event:X})}onWidgetClick(X){var{onClick:M,useSubmitBehavior:se}=this.props;M?.({event:X}),se&&this.submitInputRef.current.click()}keyDown(X){var{onKeyDown:M}=this.props,{keyName:se,originalEvent:ge,which:De}=X,Fe=M?.(X);if(null!=Fe&&Fe.cancel)return Fe;("space"===se||"space"===De||"enter"===se||"enter"===De)&&(ge.preventDefault(),this.onWidgetClick(ge))}get aria(){var{icon:X,text:M}=this.props,se=(M??"")||W.Z.format((0,h._A)(X,!0))||X;return!M&&X&&"image"===(0,d.P)(X)&&(se=X.includes("base64")?"Base64":X.replace(/.+\/([^.]+)\..+$/,"$1")),(0,c.Z)({role:"button"},se?{label:se}:{})}get cssClasses(){return(Z=>{var{icon:X,iconPosition:M,stylingMode:se,text:ge,type:De}=Z,Fe=se&&V.includes(se),Ae={"dx-button":!0,["dx-button-mode-".concat(Fe?se:"contained")]:!0,["dx-button-".concat(De??"normal")]:!0,"dx-button-has-text":!!ge,"dx-button-has-icon":!!X,"dx-button-icon-right":"left"!==M};return(0,u.G)(Ae)})(this.props)}get iconSource(){var{icon:X,type:M}=this.props;return X||"back"===M?(X??"")||"back":""}get inkRippleConfig(){return void 0!==this.__getterCache.inkRippleConfig?this.__getterCache.inkRippleConfig:this.__getterCache.inkRippleConfig=(()=>{var{icon:X,text:M,type:se}=this.props;return!M&&X||"back"===se?{isCentered:!0,useHoldAnimation:!1,waveSizeCoefficient:1}:{}})()}get buttonTemplateData(){var{icon:X,templateData:M,text:se}=this.props;return(0,c.Z)({icon:X,text:se},M)}get restAttributes(){return(0,o.Z)(this.props,N)}focus(){this.widgetRef.current.focus()}activate(){this.widgetRef.current.activate()}deactivate(){this.widgetRef.current.deactivate()}componentWillUpdate(X,M,se){super.componentWillUpdate(),(this.props.icon!==X.icon||this.props.text!==X.text||this.props.type!==X.type)&&(this.__getterCache.inkRippleConfig=void 0)}render(){var X=this.props;return(Z=>{var{children:X,iconPosition:M,iconTemplate:se,template:ge,text:De}=Z.props,Fe=!Z.props.template&&!X&&""!==De,Ae="left"===M,ne=!Z.props.template&&!X&&(Z.iconSource||Z.props.iconTemplate)&&(0,I.Iz)(2,E,{source:Z.iconSource,position:M,iconTemplate:se});return(0,I.vs)((0,I.Iz)(2,P.$L,(0,c.Z)({accessKey:Z.props.accessKey,activeStateEnabled:Z.props.activeStateEnabled,aria:Z.aria,className:Z.props.className,classes:Z.cssClasses,disabled:Z.props.disabled,focusStateEnabled:Z.props.focusStateEnabled,height:Z.props.height,hint:Z.props.hint,hoverStateEnabled:Z.props.hoverStateEnabled,onActive:Z.onActive,onClick:Z.onWidgetClick,onInactive:Z.onInactive,onKeyDown:Z.keyDown,rtlEnabled:Z.props.rtlEnabled,tabIndex:Z.props.tabIndex,visible:Z.props.visible,width:Z.props.width},Z.restAttributes,{children:(0,I.Wm)(1,"div","dx-button-content",[Z.props.template&&ge({data:Z.buttonTemplateData}),!Z.props.template&&X,Ae&&ne,Fe&&(0,I.Wm)(1,"span","dx-button-text",De,0),!Ae&&ne,Z.props.useSubmitBehavior&&(0,I.Wm)(64,"input","dx-button-submit-input",null,1,{type:"submit",tabIndex:-1},null,Z.submitInputRef),Z.props.useInkRipple&&(0,I.Iz)(2,R,{config:Z.inkRippleConfig},null,Z.inkRippleRef)],0,null,null,Z.contentRef)}),null,Z.widgetRef))})({props:(0,c.Z)({},X,{template:j(X.template),iconTemplate:j(X.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})}}ee.defaultProps=Object.create(Object.prototype,(0,c.Z)(Object.getOwnPropertyDescriptors(Y),Object.getOwnPropertyDescriptors((0,c.Z)({},(0,f.wt)(J)))));var G=[];function q(Z){G.push(Z),ee.defaultProps=Object.create(Object.prototype,(0,c.Z)(Object.getOwnPropertyDescriptors(ee.defaultProps),Object.getOwnPropertyDescriptors((0,f.wt)(J)),Object.getOwnPropertyDescriptors((0,f.wt)(G))))}},1669:(kn,he,l)=>{"use strict";l.d(he,{O:()=>o});var o={className:"",activeStateEnabled:!1,disabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,tabIndex:0,visible:!0}},4452:(kn,he,l)=>{"use strict";l.d(he,{Ag:()=>k});var o=l(9943),c=l(4817),I=l(9056),C=l(6084),f=l(903),a=l(1828),p=["dataSource","selectedRowKeys"],s={integrationOptions:!0};function u(R,P,B){return{path:R,value:P,previousValue:B}}function d(R,P,B,W,N,V){if(!s[W]){var U=(0,a.dt)(P),K=(0,a.dt)(B);if(P!==B)if(U!==K)R.push(u(W,B,P));else if("object"===U)if((0,a.PO)(B)){var Y=g(P,B,N,V);R.push(...Y.map(ee=>(0,c.Z)({},ee,{path:"".concat(W,".").concat(ee.path)})))}else R.push(u(W,B,P));else if("array"===U)if(V.some(ee=>N.includes(ee))&&P!==B)R.push(u(W,B,P));else if(P.length!==B.length)R.push(u(W,B,P));else{var j=g(P,B,N,V);[].push.apply(R,j.map(ee=>(0,c.Z)({},ee,{path:"".concat(W).concat(ee.path)})))}else R.push(u(W,B,P))}}var h=R=>(P,B,W,N)=>{var V=[],U=Array.isArray(P)?K=>{d(V,P[K],B[K],"[".concat(K,"]"),"".concat(W,".").concat(K),N)}:K=>{d(V,P[K],B[K],K,"".concat(W,".").concat(K),N)};return R(P).forEach(U),Object.keys(B).filter(K=>!Object.prototype.hasOwnProperty.call(P,K)&&P[K]!==B[K]).forEach(K=>{V.push({path:K,value:B[K],previousValue:P[K]})}),V},g=h(R=>Object.keys(R)),x={key:!0,ref:!0,children:!0,style:!0},b=h(R=>Object.keys(R).filter(P=>!x[P])),E=["valueChange"],S=["componentProps","componentType","templateNames"],O=R=>Object.keys(R).reduce((P,B)=>(void 0!==R[B]&&(P[B]=R[B]),P),{}),T={};let k=(()=>{class R extends C.OS{constructor(B){super(B),this.state={},this.widgetRef=(0,I.Vf)(),this.getInstance=this.getInstance.bind(this),this.setupWidget=this.setupWidget.bind(this),this.updateWidget=this.updateWidget.bind(this)}get config(){return this.context[f.E.id]?this.context[f.E.id]:f.E.defaultValue}createEffects(){return[new C.b0(this.setupWidget,[]),new C.b0(this.updateWidget,[this.props.componentProps,this.config,this.props.templateNames])]}updateEffects(){var B;null===(B=this._effects[1])||void 0===B||B.update([this.props.componentProps,this.config,this.props.templateNames])}setupWidget(){var B=new this.props.componentType(this.widgetRef.current,this.properties);return this.instance=B,()=>{B.dispose(),this.instance=null}}updateWidget(){var B=this.getInstance();if(B){var W=function y(R,P){var B=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;return b(R,P,"",B)}(this.prevProps||{},this.properties);W.length&&(B.beginUpdate(),W.forEach(N=>{var{path:V,value:U}=N;B.option(V,U)}),B.endUpdate()),this.prevProps=this.properties}}get properties(){var B,W=O(this.props.componentProps),{valueChange:N}=W,V=(0,o.Z)(W,E),U=(0,c.Z)({rtlEnabled:!(null===(B=this.config)||void 0===B||!B.rtlEnabled),isRenovated:!0},V);return N&&(U.onValueChanged=Y=>{var{value:J}=Y;return N(J)}),this.props.templateNames.forEach(Y=>{(0,C._V)(Y,U,this)&&(U[Y]=(J,j,ee)=>{(0,C.SM)(this.props.componentProps[Y],{item:J,index:j,container:ee},this)})}),U}get restAttributes(){return(0,o.Z)(this.props,S)}getInstance(){return this.instance}render(){return(R=>{var{props:{componentProps:{className:P}},restAttributes:B,widgetRef:W}=R;return O((0,I.Wm)(1,"div",P,null,1,(0,c.Z)({},B),null,W))})({props:(0,c.Z)({},this.props),widgetRef:this.widgetRef,config:this.config,properties:this.properties,restAttributes:this.restAttributes})}}return R.defaultProps=T,R})()},2735:(kn,he,l)=>{"use strict";l.d(he,{$L:()=>J,W6:()=>Y});var o=l(9943),c=l(4817),I=l(9056),C=l(6084),p=(l(227),l(5239),l(1828)),s=l(114),u=l(5955),d=l(3667),h=l(5873),g=l(4356),x=l(1669),b=l(903),y=["children","rtlEnabled"],S={};let O=(()=>{class j extends C.Ul{constructor(G){super(G),this.state={},this.__getterCache={}}getChildContext(){return(0,c.Z)({},this.context,{[b.E.id]:this.config||b.E.defaultValue})}get config(){return void 0!==this.__getterCache.config?this.__getterCache.config:this.__getterCache.config=(()=>({rtlEnabled:this.props.rtlEnabled}))()}get restAttributes(){return(0,o.Z)(this.props,y)}componentWillUpdate(G,q,Z){this.props.rtlEnabled!==G.rtlEnabled&&(this.__getterCache.config=void 0)}render(){return(j=>j.props.children)({props:(0,c.Z)({},this.props),config:this.config,restAttributes:this.restAttributes})}}return j.defaultProps=S,j})();var w=l(7572),R=l(3824),P=l(9644),B=l(9897),W=["_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"],Y=Object.create(Object.prototype,(0,c.Z)(Object.getOwnPropertyDescriptors(x.O),Object.getOwnPropertyDescriptors({_feedbackHideTimeout:400,_feedbackShowTimeout:30,cssText:"",aria:Object.freeze({}),classes:"",name:"",addWidgetClass:!0})));let J=(()=>{class j extends C.DZ{constructor(G){super(G),this.widgetElementRef=(0,I.Vf)(),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[b.E.id]?this.context[b.E.id]:b.E.defaultValue}createEffects(){return[new C.b0(this.setRootElementRef,[]),new C.b0(this.activeEffect,[this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),new C.b0(this.inactiveEffect,[this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),new C.b0(this.clickEffect,[this.props.disabled,this.props.name,this.props.onClick]),new C.b0(this.focusInEffect,[this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),new C.b0(this.focusOutEffect,[this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),new C.b0(this.hoverStartEffect,[this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),new C.b0(this.hoverEndEffect,[this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),new C.b0(this.keyboardEffect,[this.props.focusStateEnabled,this.props.onKeyDown]),new C.b0(this.resizeEffect,[this.props.name,this.props.onDimensionChanged]),new C.b0(this.windowResizeEffect,[this.props.onDimensionChanged]),new C.b0(this.visibilityEffect,[this.props.name,this.props.onVisibilityChange]),new C.b0(this.checkDeprecation,[this.props.height,this.props.width]),new C.b0(this.applyCssTextEffect,[this.props.cssText]),(0,C.gt)()]}updateEffects(){var G,q,Z,X,M,se,ge,De,Fe,Ae,ne,fe,_e;null===(G=this._effects[1])||void 0===G||G.update([this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),null===(q=this._effects[2])||void 0===q||q.update([this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),null===(Z=this._effects[3])||void 0===Z||Z.update([this.props.disabled,this.props.name,this.props.onClick]),null===(X=this._effects[4])||void 0===X||X.update([this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),null===(M=this._effects[5])||void 0===M||M.update([this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),null===(se=this._effects[6])||void 0===se||se.update([this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),null===(ge=this._effects[7])||void 0===ge||ge.update([this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),null===(De=this._effects[8])||void 0===De||De.update([this.props.focusStateEnabled,this.props.onKeyDown]),null===(Fe=this._effects[9])||void 0===Fe||Fe.update([this.props.name,this.props.onDimensionChanged]),null===(Ae=this._effects[10])||void 0===Ae||Ae.update([this.props.onDimensionChanged]),null===(ne=this._effects[11])||void 0===ne||ne.update([this.props.name,this.props.onVisibilityChange]),null===(fe=this._effects[12])||void 0===fe||fe.update([this.props.height,this.props.width]),null===(_e=this._effects[13])||void 0===_e||_e.update([this.props.cssText])}setRootElementRef(){var{onRootElementRendered:G,rootElementRef:q}=this.props;q&&(q.current=this.widgetElementRef.current),G?.(this.widgetElementRef.current)}activeEffect(){var{_feedbackShowTimeout:G,activeStateEnabled:q,activeStateUnit:Z,disabled:X,onActive:M}=this.props;if(q&&!X)return(0,u.gF)(this.widgetElementRef.current,ge=>{this.setState(De=>({active:!0})),M?.(ge)},{timeout:G,selector:Z},"UIFeedback")}inactiveEffect(){var{_feedbackHideTimeout:G,activeStateEnabled:q,activeStateUnit:Z,onInactive:X}=this.props;if(q)return(0,u.oO)(this.widgetElementRef.current,se=>{this.state.active&&(this.setState(ge=>({active:!1})),X?.(se))},{timeout:G,selector:Z},"UIFeedback")}clickEffect(){var{disabled:G,name:q,onClick:Z}=this.props,X=q;if(Z&&!G)return s.wt.on(this.widgetElementRef.current,Z,{namespace:X}),()=>s.wt.off(this.widgetElementRef.current,{namespace:X})}focusInEffect(){var{disabled:G,focusStateEnabled:q,name:Z,onFocusIn:X}=this.props,M="".concat(Z,"Focus");if(q&&!G)return(0,u.Hk)(this.widgetElementRef.current,se=>{se.isDefaultPrevented()||(this.setState(ge=>({focused:!0})),X?.(se))},null,M)}focusOutEffect(){var{focusStateEnabled:G,name:q,onFocusOut:Z}=this.props,X="".concat(q,"Focus");if(G)return(0,u.I3)(this.widgetElementRef.current,M=>{!M.isDefaultPrevented()&&this.state.focused&&(this.setState(se=>({focused:!1})),Z?.(M))},null,X)}hoverStartEffect(){var{activeStateUnit:G,disabled:q,hoverStateEnabled:Z,onHoverStart:X}=this.props;if(Z&&!q)return(0,u.sp)(this.widgetElementRef.current,se=>{!this.state.active&&this.setState(ge=>({hovered:!0})),X?.(se)},{selector:G},"UIFeedback")}hoverEndEffect(){var{activeStateUnit:G,hoverStateEnabled:q,onHoverEnd:Z}=this.props;if(q)return(0,u.y7)(this.widgetElementRef.current,M=>{this.state.hovered&&(this.setState(se=>({hovered:!1})),Z?.(M))},{selector:G},"UIFeedback")}keyboardEffect(){var{focusStateEnabled:G,onKeyDown:q}=this.props;if(G&&q){var Z=s.dG.on(this.widgetElementRef.current,this.widgetElementRef.current,X=>q(X));return()=>s.dG.off(Z)}}resizeEffect(){var G="".concat(this.props.name,"VisibilityChange"),{onDimensionChanged:q}=this.props;if(q)return s.SI.on(this.widgetElementRef.current,q,{namespace:G}),()=>s.SI.off(this.widgetElementRef.current,{namespace:G})}windowResizeEffect(){var{onDimensionChanged:G}=this.props;if(G)return R.Z.add(G),()=>{R.Z.remove(G)}}visibilityEffect(){var{name:G,onVisibilityChange:q}=this.props,Z="".concat(G,"VisibilityChange");if(q)return s.WD.on(this.widgetElementRef.current,()=>q(!0),()=>q(!1),{namespace:Z}),()=>s.WD.off(this.widgetElementRef.current,{namespace:Z})}checkDeprecation(){var{height:G,width:q}=this.props;(0,p.mf)(q)&&P.Z.log("W0017","width"),(0,p.mf)(G)&&P.Z.log("W0017","height")}applyCssTextEffect(){var{cssText:G}=this.props;""!==G&&(this.widgetElementRef.current.style.cssText=G)}get shouldRenderConfigProvider(){var{rtlEnabled:G}=this.props;return function k(j,ee){var G=(0,p.$K)(j),q=(0,p.$K)((0,w.Z)().rtlEnabled)&&!G&&!(0,p.$K)(ee?.rtlEnabled);return G&&j!==ee?.rtlEnabled||q}(G,this.config)}get rtlEnabled(){var{rtlEnabled:G}=this.props;return function T(j,ee){return void 0!==j?j:void 0!==ee?.rtlEnabled?ee.rtlEnabled:(0,w.Z)().rtlEnabled}(G,this.config)}get attributes(){var{aria:G,disabled:q,focusStateEnabled:Z,visible:X}=this.props,M=Z&&!q&&this.props.accessKey;return(0,c.Z)({},(0,h.l)({},M&&{accessKey:M}),(j=>Object.keys(j).reduce((ee,G)=>j[G]?(0,c.Z)({},ee,{["role"===G||"id"===G?G:"aria-".concat(G)]:String(j[G])}):ee,{}))((0,c.Z)({},G,{disabled:q,hidden:!X})),(0,h.l)({},this.restAttributes))}get styles(){var{height:G,width:q}=this.props,Z=this.restAttributes.style||{},X=(0,g.bh)("width",(0,p.mf)(q)?q():q),M=(0,g.bh)("height",(0,p.mf)(G)?G():G);return(0,c.Z)({},Z,{height:M??Z.height,width:X??Z.width})}get cssClasses(){var{activeStateEnabled:G,addWidgetClass:q,className:Z,classes:X,disabled:M,focusStateEnabled:se,hoverStateEnabled:ge,onVisibilityChange:De,visible:Fe}=this.props,Ae=!!se&&!M,ne=!!ge&&!M,fe=!!G&&!M,_e={"dx-widget":!!q,[String(X)]:!!X,[String(Z)]:!!Z,"dx-state-disabled":!!M,"dx-state-invisible":!Fe,"dx-state-focused":!!this.state.focused&&Ae,"dx-state-active":!!this.state.active&&fe,"dx-state-hover":!!this.state.hovered&&ne&&!this.state.active,"dx-rtl":!!this.rtlEnabled,"dx-visibility-change-handler":!!De};return(0,d.G)(_e)}get tabIndex(){var{disabled:G,focusStateEnabled:q,tabIndex:Z}=this.props;return q&&!G?Z:void 0}get restAttributes(){return(0,o.Z)(this.props,W)}focus(){s.T_.trigger(this.widgetElementRef.current)}blur(){var G=B.Z.getActiveElement(this.widgetElementRef.current);this.widgetElementRef.current===G&&G.blur()}activate(){this.setState(G=>({active:!0}))}deactivate(){this.setState(G=>({active:!1}))}render(){return(j=>{var ee=(0,I.vs)((0,I.Wm)(1,"div",j.cssClasses,j.props.children,0,(0,c.Z)({},j.attributes,{tabIndex:j.tabIndex,title:j.props.hint,style:(0,C.jk)(j.styles)}),null,j.widgetElementRef));return j.shouldRenderConfigProvider?(0,I.Iz)(2,O,{rtlEnabled:j.rtlEnabled,children:ee}):ee})({props:(0,c.Z)({},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 j.defaultProps=Y,j})()},4614:(kn,he,l)=>{"use strict";l.d(he,{ML:()=>k,nY:()=>w});var o=l(9943),c=l(4817),I=l(9056),C=l(6084),f=l(6492),a=l(2735),p=l(1669),s=l(3667),u=l(8785),d=l(4452),h=["accessKey","activeStateEnabled","boundary","className","contentId","disabled","focusStateEnabled","height","hint","hoverStateEnabled","mode","offset","onClick","onKeyDown","positionSide","rtlEnabled","tabIndex","target","validationErrors","visible","visualContainer","width"],x=Object.create(Object.prototype,(0,c.Z)(Object.getOwnPropertyDescriptors(p.O),Object.getOwnPropertyDescriptors({mode:"auto",positionSide:"top",offset:Object.freeze({h:0,v:0}),isReactComponentWrapper:!0})));let b=(()=>{class W extends C.Ul{constructor(V){super(V),this.state={}}get componentProps(){return this.props}get restAttributes(){return(0,o.Z)(this.props,h)}render(){return(W=>{var{componentProps:N,restAttributes:V}=W;return(0,I.vs)((0,I.Iz)(2,d.Ag,(0,c.Z)({componentType:u.Z,componentProps:N,templateNames:[]},V)))})({props:(0,c.Z)({},this.props),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return W.defaultProps=x,W})();l(3238);var E=["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"],w=Object.create(Object.prototype,(0,c.Z)(Object.getOwnPropertyDescriptors(p.O),Object.getOwnPropertyDescriptors({readOnly:!1,name:"",validationError:null,validationErrors:null,validationMessageMode:"auto",validationMessagePosition:"bottom",validationStatus:"valid",isValid:!0,defaultValue:null,valueChange:()=>{}}))),T={get readOnly(){return w.readOnly},get name(){return w.name},get validationError(){return w.validationError},get validationErrors(){return w.validationErrors},get validationMessageMode(){return w.validationMessageMode},get validationMessagePosition(){return w.validationMessagePosition},get validationStatus(){return w.validationStatus},get isValid(){return w.isValid},get defaultValue(){return w.defaultValue},get valueChange(){return w.valueChange},get className(){return w.className},get activeStateEnabled(){return w.activeStateEnabled},get disabled(){return w.disabled},get focusStateEnabled(){return w.focusStateEnabled},get hoverStateEnabled(){return w.hoverStateEnabled},get tabIndex(){return w.tabIndex},get visible(){return w.visible},get aria(){return a.W6.aria},get classes(){return a.W6.classes}};class k extends C.DZ{constructor(N){super(N),this.widgetRef=(0,I.Vf)(),this.rootElementRef=(0,I.Vf)(),this.__getterCache={},this.state={validationMessageGuid:"dx-".concat(new f.Z),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 C.b0(this.updateValidationMessageVisibility,[this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors]),(0,C.gt)()]}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:V}=this.props;V?.(N)}get cssClasses(){return"".concat((W=>{var{classes:N,isValid:V,readOnly:U}=W,K={"dx-state-readonly":!!U,"dx-invalid":!V,["".concat(N)]:!!N};return(0,s.G)(K)})((0,c.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})))}get shouldShowValidationMessage(){var N,{isValid:V,validationStatus:U}=this.props,K=null!==(N=this.validationErrors)&&void 0!==N?N:[];return!(V&&"invalid"!==U)&&K.length>0}get aria(){var{isValid:N,readOnly:V}=this.props,U={readonly:V?"true":"false",invalid:N?"false":"true"};return this.shouldShowValidationMessage&&(U.describedBy=this.state.validationMessageGuid),(0,c.Z)({},U,this.props.aria)}get validationErrors(){return void 0!==this.__getterCache.validationErrors?this.__getterCache.validationErrors:this.__getterCache.validationErrors=(()=>{var{validationError:N,validationErrors:V}=this.props,U=V&&[...V];return!U&&N&&(U=[(0,c.Z)({},N)]),U})()}get validationMessageTarget(){var N;return null===(N=this.rootElementRef)||void 0===N?void 0:N.current}get restAttributes(){var N=(0,c.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,o.Z)(N,E)}focus(){this.widgetRef.current.focus()}blur(){this.widgetRef.current.blur()}componentWillUpdate(N,V,U){super.componentWillUpdate(),(this.props.validationError!==N.validationError||this.props.validationErrors!==N.validationErrors)&&(this.__getterCache.validationErrors=void 0)}render(){return(W=>{var{aria:N,cssClasses:V,isValidationMessageVisible:U,onFocusIn:K,props:{accessKey:Y,activeStateEnabled:J,children:j,className:ee,disabled:G,focusStateEnabled:q,height:Z,hint:X,hoverStateEnabled:M,onClick:se,onKeyDown:ge,rtlEnabled:De,tabIndex:Fe,validationMessageMode:Ae,validationMessagePosition:ne,visible:fe,width:_e},restAttributes:ie,rootElementRef:de,validationErrors:le,validationMessageGuid:pe,validationMessageTarget:Ee,widgetRef:ae}=W;return(0,I.vs)((0,I.Iz)(2,a.$L,(0,c.Z)({rootElementRef:de,aria:N,classes:V,activeStateEnabled:J,focusStateEnabled:q,hoverStateEnabled:M,accessKey:Y,className:ee,rtlEnabled:De,hint:X,disabled:G,height:Z,width:_e,onFocusIn:K,onClick:se,onKeyDown:ge,tabIndex:Fe,visible:fe},ie,{children:(0,I.xJ)([j,U&&(0,I.Iz)(2,b,{validationErrors:le,mode:Ae,positionSide:ne,rtlEnabled:De,target:Ee,boundary:Ee,visualContainer:Ee,contentId:pe})],0)}),null,ae))})({props:(0,c.Z)({},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})}}k.defaultProps=T},3433:(kn,he,l)=>{"use strict";l.d(he,{Et:()=>c,Xv:()=>I,b$:()=>C,hj:()=>a});var c="vertical",I="horizontal",C="both",a="dx-scrollable-content"},7616:(kn,he,l)=>{"use strict";function o(c,I){for(var C={left:0,top:0},f=I;null!==(a=f)&&void 0!==a&&a.offsetParent&&!f.classList.contains(c);){var a,p=f.offsetParent,s=f.getBoundingClientRect(),u=p.getBoundingClientRect();C.left+=s.left-u.left,C.top+=s.top-u.top,f=f.offsetParent}return C}l.d(he,{d:()=>o})},4609:(kn,he,l)=>{"use strict";l.d(he,{I:()=>c});var o=l(3433);class c{constructor(C){this.DIRECTION_HORIZONTAL="horizontal",this.DIRECTION_VERTICAL="vertical",this.DIRECTION_BOTH="both",this.direction=C??o.Et}get isHorizontal(){return this.direction===o.Xv||this.direction===o.b$}get isVertical(){return this.direction===o.Et||this.direction===o.b$}get isBoth(){return this.direction===o.b$}}},3667:(kn,he,l)=>{"use strict";function o(c){return Object.keys(c).filter(I=>c[I]).join(" ")}l.d(he,{G:()=>o})},4570:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>c});var o=l(4514);function c(I){var C,f=(0,o.Jj)();return I?null===(C=f.getComputedStyle)||void 0===C?void 0:C.call(f,I):null}},5955:(kn,he,l)=>{"use strict";l.d(he,{G3:()=>y,Hk:()=>W,I3:()=>N,OZ:()=>p,gF:()=>k,oO:()=>R,sp:()=>P,y7:()=>B});var o=l(913),c=l(227),I=l(8225),C=l(7772),f=l(8690);function a(V){return(U,K,Y,J)=>{var j=J?(0,I.V4)(V,J):V;if(K)return o.Z.on(U,j,Y,K),()=>{o.Z.off(U,j,K)}}}var p=a(c.u),y=(a(C.Z.scroll),a(C.Z.init),a(C.Z.start),a(C.Z.move),a(C.Z.end),a(C.Z.stop),a(C.Z.cancel),a(f.Z.down)),k=(a(f.Z.up),a(f.Z.move),a("mouseenter"),a("mouseleave"),a("keydown"),a("dxactive")),R=a("dxinactive"),P=a("dxhoverstart"),B=a("dxhoverend"),W=a("focusin"),N=a("focusout")},8093:(kn,he,l)=>{"use strict";function o(c){return c?Number(c.replace("px","")):0}l.d(he,{H:()=>o})},6530:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>B});var o=l(9904),c=l(4514),I=l(7674),C=l(9009),f=l(8506),a=l(5873),p=l(219),s=l(7307),u=l(8531),d=l(4567),h=l(4823),g=l(4270),x=(0,c.Jj)(),R="outlined",P=s.Z.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:C.Z.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 h.c(function(W,N){var V=new p.Z((0,o.Z)("<div>"),(0,a.l)({onClick:N&&N.click,stylingMode:N&&N.stylingMode||R},N));W.append(V.$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:I.ZT,_renderDimensions:I.ZT,_initMarkup:function(){this.callBase(),this.$element().addClass("dx-actionsheet"),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=(0,o.Z)("<div>").addClass("dx-actionsheet-container"),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=(0,o.Z)("<div>").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(W){this._popup&&this._popup.option(W,this.option(W))},_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(W){this._popup=W.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!x.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,d.Z,(0,a.l)(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,u.Z,(0,a.l)(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:x},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:x}},to:{position:{my:"bottom",at:"bottom",of:x}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:x}},to:{position:{my:"top",at:"bottom",of:x}}}}})),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 W=this._createActionByOption("onCancelClick")||I.ZT,N=this;this._$cancelButton=(0,o.Z)("<div>").addClass("dx-actionsheet-cancel").appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,p.Z,{disabled:!1,stylingMode:R,text:this.option("cancelText"),onClick:function(V){var U={event:V,cancel:!1};W(U),U.cancel||N.hide()},integrationOptions:{}})}},_attachItemClickEvent:I.ZT,_itemClickHandler:function(W){this.callBase(W),(0,o.Z)(W.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(W){this.callBase(W),(0,o.Z)(W.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(W){switch(W.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(W.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(W)}},toggle:function(W){var N=this,V=new g.BH;return N._popup.toggle(W).done(function(){N.option("visible",W),V.resolveWith(N)}),V.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});(0,f.Z)("dxActionSheet",P);const B=P},6026:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>W});var o=l(9904),c=l(8506),I=l(5873),C=l(4514),f=l(7981),a=l(1828),p=l(4356),s=l(2718),u=l(8646),d=l(7307),b="dxBoxItemData",E={row:"minWidth",col:"minHeight"},S={row:"maxWidth",col:"maxHeight"},O={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},w={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},T={row:"row",col:"column"},k=(N,V,U)=>{if(U=(0,p.bh)(V,U),N.style[(0,p.Hj)(V)]=U,!(0,C.Ym)()){if(""===U||!(0,a.$K)(U))return;var Y=(0,f.H0)(V)+": "+U+";";N.attributes.style?N.attributes.style.value.indexOf(Y)<0&&(N.attributes.style.value+=" "+Y):N.setAttribute("style",Y)}};class R extends u.Z{_renderVisible(V,U){super._renderVisible(V),(0,a.$K)(U)&&this._options.fireItemStateChangedAction({name:"visible",state:V,oldState:U})}}class P{constructor(V,U){this._$element=V,this._option=U}renderBox(){this._$element.css({display:(0,p.gC)("flexDirection")+"flex"}),k(this._$element.get(0),"flexDirection",T[this._option("direction")])}renderAlign(){this._$element.css({justifyContent:this._normalizedAlign()})}_normalizedAlign(){var V=this._option("align");return V in O?O[V]:V}renderCrossAlign(){this._$element.css({alignItems:this._normalizedCrossAlign()})}_normalizedCrossAlign(){var V=this._option("crossAlign");return V in w?w[V]:V}renderItems(V){var U=(0,p.gC)("flexDirection"),K=this._option("direction");(0,s.S6)(V,function(){var Y=(0,o.Z)(this),J=Y.data(b);Y.css({display:U+"flex"}).css(S[K],J.maxSize||"none").css(E[K],J.minSize||"0"),k(Y.get(0),"flexBasis",J.baseSize||0),k(Y.get(0),"flexGrow",J.ratio),k(Y.get(0),"flexShrink",(0,a.$K)(J.shrink)?J.shrink:1),Y.children().each((j,ee)=>{(0,o.Z)(ee).css({width:"auto",height:"auto",display:(0,p.gC)("flexDirection")+"flex",flexBasis:0}),k(ee,"flexGrow",1),k(ee,"flexDirection",(0,o.Z)(ee)[0].style.flexDirection||"column")})})}}let B=(()=>{class N extends d.Z{_getDefaultOptions(){return(0,I.l)(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 b}_itemElements(){return this._itemContainer().children(this._itemSelector())}_init(){super._init(),this.$element().addClass("dx-box-flex"),this._initLayout(),this._initBoxQueue()}_initLayout(){this._layout=new P(this.$element(),this.option.bind(this))}_initBoxQueue(){this._queue=this.option("_queue")||[]}_queueIsNotEmpty(){return!this.option("_queue")&&!!this._queue.length}_pushItemToQueue(U,K){this._queue.push({$item:U,config:K})}_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(U){for(super._renderItems(U);this._queueIsNotEmpty();){var K=this._shiftItemFromQueue();this._createComponent(K.$item,N,(0,I.l)({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},K.config))}this._layout.renderItems(this._itemElements())}_renderItemContent(U){var K=U.itemData&&U.itemData.node;return K?this._renderItemContentByNode(U,K):super._renderItemContent(U)}_postprocessRenderItem(U){var K=U.itemData.box;K&&this._pushItemToQueue(U.itemContent,K)}_createItemByTemplate(U,K){return K.itemData.box?U.source?U.source():(0,o.Z)():super._createItemByTemplate(U,K)}_itemOptionChanged(U,K,Y,J){"visible"===K&&this._onItemStateChanged({name:K,state:Y,oldState:!1!==J}),super._itemOptionChanged(U,K,Y)}_optionChanged(U){switch(U.name){case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:super._optionChanged(U)}}_itemOptions(){var U=super._itemOptions();return U.fireItemStateChangedAction=K=>{this._onItemStateChanged(K)},U}}return N.ItemClass=R,N})();(0,c.Z)("dxBox",B);const W=B},219:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>u});var o=l(8506),c=l(4817),I=l(3191),C=l(4691),f=l(4328);class a extends C.Z{get _validationGroupConfig(){return I.Z.getGroupConfig(this._findGroup())}getDefaultTemplateNames(){return["content"]}getSupportedKeyNames(){return["space","enter"]}getProps(){var h=super.getProps();return h.onClick=x=>{var{event:b}=x;this._clickAction({event:b,validationGroup:this._validationGroupConfig})},"svg"===(0,f.P)(h.icon)&&(h.iconTemplate=this._createTemplateComponent(()=>h.icon)),h}get _templatesInfo(){return{template:"content"}}_toggleActiveState(h,g){var x=this.viewRef;g?x.activate():x.deactivate()}_getSubmitAction(){var h=!0,g="valid";return this._createAction(x=>{var{event:b,submitInput:y}=x;if(h){var E=this._validationGroupConfig;if(void 0!==E&&""!==E){var S=E.validate();g=S.status,"pending"===S.status&&(h=!1,this.option("disabled",!0),S.complete.then(O=>{var{status:w}=O;this.option("disabled",!1),"valid"===(g=w)&&y.click(),h=!0}))}}"valid"!==g&&b.preventDefault(),b.stopPropagation()})}_initializeComponent(){super._initializeComponent(),this._addAction("onSubmit",this._getSubmitAction()),this._clickAction=this._createClickAction()}_initMarkup(){super._initMarkup();var h=this.$element().find(".dx-button-content"),g=h.children().filter(".dx-template-wrapper"),x=h.children().filter(".dx-button-submit-input");g.length&&(g.addClass("dx-button-content"),g.append(x),h.replaceWith(g))}_patchOptionValues(h){return super._patchOptionValues((0,c.Z)({},h,{templateData:h._templateData}))}_findGroup(){var h=this.$element(),g=this.option("validationGroup");return void 0!==g&&""!==g?g:I.Z.findGroup(h,this._modelByElement(h))}_createClickAction(){return this._createActionByOption("onClick",{excludeValidators:["readOnly"]})}_optionChanged(h){"onClick"===h.name&&(this._clickAction=this._createClickAction()),super._optionChanged(h)}}var p=l(241);class s extends a{getProps(){var h=super.getProps();return h.onKeyDown=this._wrapKeyDownHandler(h.onKeyDown),h}focus(){var h;return null===(h=this.viewRef)||void 0===h?void 0:h.focus(...arguments)}activate(){var h;return null===(h=this.viewRef)||void 0===h?void 0:h.activate(...arguments)}deactivate(){var h;return null===(h=this.viewRef)||void 0===h?void 0:h.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 p.zx}}(0,o.Z)("dxButton",s),s.defaultOptions=p.vC;const u=s},970:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>O});var o=l(9904),c=l(6853),I=l(219),C=l(7307),f=l(8506),a=l(5873),p=l(1828),s=l(4823),u="dx-buttongroup",d=u+"-wrapper",h=u+"-item",g=u+"-first-item",x=u+"-last-item",b=h+"-has-width",E=C.Z.inherit({_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({item:new s.c((w,T,k)=>{this._prepareItemStyles(w);var R=this.option("buttonTemplate");this._createComponent(w,I.Z,(0,a.l)({},k,T,this._getBasicButtonOptions(),{_templateData:this._hasCustomTemplate(R)?k:{},template:k.template||R}))},["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(0,a.l)(this.callBase(),{itemTemplateProperty:null})},_hasCustomTemplate(w){return(0,p.mf)(w)||this.option("integrationOptions.templates")[w]},_prepareItemStyles(w){var T=w.data("dxItemIndex");0===T&&w.addClass(g);var k=this.option("items");k&&T===k.length-1&&w.addClass(x),w.addClass("dx-shape-standard")},_renderItemContent(w){return w.container=(0,o.Z)(w.container).parent(),this.callBase(w)},_renderItemContentByNode:function(w,T){return w.container=(0,o.Z)(w.container.children().first()),this.callBase(w,T)},_focusTarget(){return this.$element().parent()},_keyboardEventBindingTarget(){return this._focusTarget()},_refreshContent(){this._prepareContent(),this._renderContent()},_itemClass:()=>h,_itemSelectHandler:function(w){"single"===this.option("selectionMode")&&this.isItemSelected(w.currentTarget)||this.callBase(w)}}),S=c.Z.inherit({_getDefaultOptions(){return(0,a.l)(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(u),this._renderButtons(),this._syncSelectionOptions(),this.callBase()},_fireSelectionChangeEvent:function(w,T){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:w,removedItems:T})},_renderButtons(){var w=(0,o.Z)("<div>").addClass(d).appendTo(this.$element()),T=this.option("selectedItems"),k={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:R=>{var P=this.option("width");(0,p.$K)(P)&&(0,o.Z)(R.itemElement).addClass(b)},onSelectionChanged:R=>{this._syncSelectionOptions(),this._fireSelectionChangeEvent(R.addedItems,R.removedItems)},onItemClick:R=>{this._itemClickAction(R)}};(0,p.$K)(T)&&T.length&&(k.selectedItems=T),this._buttonsCollection=this._createComponent(w,E,k)},_syncSelectionOptions(){this._setOptionWithoutOptionChange("selectedItems",this._buttonsCollection.option("selectedItems")),this._setOptionWithoutOptionChange("selectedItemKeys",this._buttonsCollection.option("selectedItemKeys"))},_optionChanged(w){switch(w.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(w.name,w.value);break;case"onItemClick":this._createItemClickAction();break;case"onSelectionChanged":break;case"width":this.callBase(w),this._buttonsCollection.itemElements().toggleClass(b,!!w.value);break;default:this.callBase(w)}}});(0,f.Z)("dxButtonGroup",S);const O=S},3180:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>fn});var o=l(1805),c=l(9904),I=l(6492),C=l(8506),f=l(7674),a=l(1828),p=l(3487),s=l(5873),u=l(219),d=l(1031),h=l(4969),g=l(6853);const k=g.Z.inherit({_getDefaultOptions:function(){return(0,s.l)(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 ct=this,He=this.option("rtlEnabled")?-1:1;this._prevButton=this._createComponent((0,c.Z)("<a>"),u.Z,{focusStateEnabled:!1,icon:"chevronleft",onClick:function(dt){ct._clickAction({direction:-He,event:dt})},integrationOptions:{}});var Dt=this._prevButton.$element().addClass("dx-calendar-navigator-previous-view").addClass("dx-calendar-navigator-previous-month");this._nextButton=this._createComponent((0,c.Z)("<a>"),u.Z,{focusStateEnabled:!1,icon:"chevronright",onClick:function(dt){ct._clickAction({direction:He,event:dt})},integrationOptions:{}});var qe=this._nextButton.$element().addClass("dx-calendar-navigator-next-view").addClass("dx-calendar-navigator-next-month");this._caption=this._createComponent((0,c.Z)("<a>").addClass("dx-calendar-caption-button"),u.Z,{focusStateEnabled:!1,onClick:function(dt){ct._captionClickAction({event:dt})},integrationOptions:{}});var Ht=this._caption.$element();this.$element().append(Dt,Ht,qe)},_renderCaption:function(){this._caption.option("text",this.option("text"))},toggleButton:function(ct,He){var qe=this["_"+ct+"Button"];qe&&(qe.option("disabled",He),qe.$element().toggleClass("dx-calendar-disabled-navigator-link",He))},_optionChanged:function(ct){"text"===ct.name?this._renderCaption():this.callBase(ct)}});var R=l(9897),P=l(913),B=l(5610),W=l(6881),N=l(8204),V=l(8492),U=l(9009),K=l(8225),Y=l(227),{abstract:J}=g.Z,q="dx-calendar-empty-cell",X="dx-calendar-selected-date",M="dx-calendar-contoured-date",se=(0,K.V4)(Y.u,"dxCalendar"),ge="dxDateValueKey";const Fe=g.Z.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return(0,s.l)(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=(0,c.Z)("<table>"),this.setAria({label:U.Z.format("dxCalendar-ariaWidgetName"),role:"grid"},this._$table),this._$table},_renderBody:function(){this.$body=(0,c.Z)("<tbody>").appendTo(this._$table);for(var ct={cellDate:this._getFirstCellData(),prevCellDate:null},He=0,Dt=this.option("rowCount");He<Dt;He++){ct.row=this._createRow();for(var qe=0,Ht=this.option("colCount");qe<Ht;qe++)this._renderCell(ct,qe);this._renderWeekNumberCell(ct)}},_createRow:function(){var ct=R.Z.createElement("tr");return this.setAria("role","row",(0,c.Z)(ct)),this.$body.get(0).appendChild(ct),ct},_appendCell:function(ct,He){this._appendMethodName||this._cacheAppendMethodName(),(0,c.Z)(ct)[this._appendMethodName](He)},_cacheAppendMethodName:function(ct){this._appendMethodName=ct??this.option("rtlEnabled")?"prepend":"append"},_createCell:function(ct){var He=R.Z.createElement("td"),Dt=(0,c.Z)(He);return He.className=this._getClassNameByDate(ct),He.setAttribute("data-value",V.Z.serializeDate(ct,N.Z.getShortDateFormat())),(0,B.aT)(He,ge,ct),this.setAria({role:"gridcell",label:this.getCellAriaLabel(ct)},Dt),{cell:He,$cell:Dt}},_renderCell:function(ct,He){var{cellDate:Dt,prevCellDate:qe,row:Ht}=ct;qe&&N.Z.fixTimezoneGap(qe,Dt),ct.prevCellDate=Dt;var{cell:dt,$cell:ht}=this._createCell(Dt),yt=this.option("cellTemplate");this._appendCell(Ht,dt),yt?yt.render(this._prepareCellTemplateData(Dt,He,ht)):dt.innerHTML=this._getCellText(Dt),ct.cellDate=this._getNextCellData(Dt)},_getClassNameByDate:function(ct){var He="dx-calendar-cell";return this._isTodayCell(ct)&&(He+=" ".concat("dx-calendar-today")),(this._isDateOutOfRange(ct)||this.isDateDisabled(ct))&&(He+=" ".concat(q)),this._isOtherView(ct)&&(He+=" ".concat("dx-calendar-other-view")),He},_prepareCellTemplateData:function(ct,He,Dt){var qe=ct instanceof Date;return{model:{text:qe?this._getCellText(ct):ct,date:qe?ct:void 0,view:this._getViewName()},container:(0,W.u)(Dt),index:He}},_renderEvents:function(){this._createCellClickAction(),P.Z.off(this._$table,se),P.Z.on(this._$table,se,"td:not(.".concat("dx-calendar-week-number-cell",")"),ct=>{(0,c.Z)(ct.currentTarget).hasClass(q)||this._cellClickAction({event:ct,value:(0,c.Z)(ct.currentTarget).data(ge)})})},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_createDisabledDatesHandler:function(){var ct=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(ct)?this._getDefaultDisabledDatesHandler(ct):ct||f.ZT},_getDefaultDisabledDatesHandler:function(ct){return f.ZT},_isTodayCell:J,_isDateOutOfRange:J,isDateDisabled:function(ct){var He={date:ct,view:this._getViewName()};return this._disabledDatesHandler(He)},_isOtherView:J,_getCellText:J,_getFirstCellData:J,_getNextCellData:J,_renderContouredDate:function(ct){if(this.option("focusStateEnabled")){ct=ct||this.option("contouredDate");var He=this._getContouredCell(),Dt=this._getCellByDate(ct);He.removeClass(M),Dt.addClass(M)}},_getContouredCell:function(){return this._$table.find(".".concat(M))},_changeValue:function(ct){if(ct){var He=this.option("value"),Dt=He?new Date(He):new Date;Dt.setDate(ct.getDate()),Dt.setMonth(ct.getMonth()),Dt.setFullYear(ct.getFullYear()),Dt.setDate(ct.getDate()),this.option("value",Dt)}else this.option("value",null)},_renderValue:function(){if(this.option("allowValueSelection")){var ct=this.option("value"),He=this._getCellByDate(ct);this._selectedCell&&this._selectedCell.removeClass(X),He.addClass(X),this._selectedCell=He}},getCellAriaLabel:function(ct){return this._getCellText(ct)},_getFirstAvailableDate:function(){var ct=this.option("date"),He=this.option("min");return ct=N.Z.getFirstDateView(this._getViewName(),ct),new Date(He&&ct<He?He:ct)},_getCellByDate:J,isBoundary:J,_optionChanged:function(ct){var{name:He,value:Dt}=ct;switch(He){case"value":this._renderValue();break;case"contouredDate":this._renderContouredDate(Dt);break;case"onCellClick":this._createCellClickAction();break;case"disabledDates":case"cellTemplate":this._invalidate();break;case"rtlEnabled":this._cacheAppendMethodName(Dt),this.callBase(ct);break;case"_todayDate":this._renderBody();break;default:this.callBase(ct)}}});var Ae=l(8119);const de={month:Fe.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return(0,s.l)(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:f.ZT,getCellAriaLabel:function(ct){return Ae.Z.format(ct,"longdate")},_renderHeader:function(){var ct=(0,c.Z)("<tr>"),He=(0,c.Z)("<thead>").append(ct);this._$table.prepend(He);for(var Dt=0,qe=this.option("colCount");Dt<qe;Dt++)this._renderHeaderCell(Dt,ct);this.option("showWeekNumbers")&&this._renderWeekHeaderCell(ct)},_renderHeaderCell:function(ct,He){var{firstDayOfWeek:Dt}=this.option(),{full:qe,abbreviated:Ht}=this._getDayCaption(Dt+ct),dt=(0,c.Z)("<th>").attr({scope:"col",abbr:qe}).text(Ht);this._appendCell(He,dt)},_renderWeekHeaderCell:function(ct){var He=(0,c.Z)("<th>").attr({scope:"col",abbr:"WeekNumber",class:"dx-week-number-header"}).text("#");this.option("rtlEnabled")?ct.append(He):ct.prepend(He)},_renderWeekNumberCell:function(ct){var{showWeekNumbers:He,rtlEnabled:Dt,cellTemplate:qe}=this.option();if(He){var Ht=this._getWeekNumber(ct.prevCellDate),dt=R.Z.createElement("td"),ht=(0,c.Z)(dt);dt.className="dx-calendar-week-number-cell",qe?qe.render(this._prepareCellTemplateData(Ht,-1,ht)):dt.innerHTML=Ht,Dt?ct.row.append(dt):ct.row.prepend(dt),this.setAria({role:"gridcell",label:"Week ".concat(Ht)},ht)}},_getWeekNumber:function(ct){var{weekNumberRule:He,firstDayOfWeek:Dt}=this.option();return N.Z.getWeekNumber(ct,Dt,"auto"===He?1===Dt?"firstFourDays":"firstDay":He)},getNavigatorCaption:function(){return Ae.Z.format(this.option("date"),"monthandyear")},_isTodayCell:function(ct){var He=this.option("_todayDate")();return N.Z.sameDate(ct,He)},_isDateOutOfRange:function(ct){var He=this.option("min"),Dt=this.option("max");return!N.Z.dateInRange(ct,He,Dt,"date")},_isOtherView:function(ct){return ct.getMonth()!==this.option("date").getMonth()},_getCellText:function(ct){return Ae.Z.format(ct,"d")},_getDayCaption:function(ct){var Dt=ct%this.option("colCount");return{full:Ae.Z.getDayNames()[Dt],abbreviated:Ae.Z.getDayNames("abbreviated")[Dt]}},_getFirstCellData:function(){var{firstDayOfWeek:ct}=this.option(),He=N.Z.getFirstMonthDate(this.option("date")),Dt=ct-He.getDay(),qe=this.option("colCount");return Dt>=0&&(Dt-=qe),He.setDate(He.getDate()+Dt),He},_getNextCellData:function(ct){return(ct=new Date(ct)).setDate(ct.getDate()+1),ct},_getCellByDate:function(ct){return this._$table.find("td[data-value='".concat(V.Z.serializeDate(ct,N.Z.getShortDateFormat()),"']"))},isBoundary:function(ct){return N.Z.sameMonthAndYear(ct,this.option("min"))||N.Z.sameMonthAndYear(ct,this.option("max"))},_getDefaultDisabledDatesHandler:function(ct){return function(He){if(ct.some(function(qe){return N.Z.sameDate(qe,He.date)}))return!0}}}),year:Fe.inherit({_getViewName:function(){return"year"},_isTodayCell:function(ct){var He=this.option("_todayDate")();return N.Z.sameMonthAndYear(ct,He)},_isDateOutOfRange:function(ct){return!N.Z.dateInRange(ct,N.Z.getFirstMonthDate(this.option("min")),N.Z.getLastMonthDate(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(ct){return Ae.Z.getMonthNames("abbreviated")[ct.getMonth()]},_getFirstCellData:function(){var ct=this.option("date"),He=new Date(ct);return He.setDate(1),He.setMonth(0),He},_getNextCellData:function(ct){return(ct=new Date(ct)).setMonth(ct.getMonth()+1),ct},_getCellByDate:function(ct){var He=new Date(ct);return He.setDate(1),this._$table.find("td[data-value='".concat(V.Z.serializeDate(He,N.Z.getShortDateFormat()),"']"))},getCellAriaLabel:function(ct){return Ae.Z.format(ct,"monthandyear")},getNavigatorCaption:function(){return Ae.Z.format(this.option("date"),"yyyy")},isBoundary:function(ct){return N.Z.sameYear(ct,this.option("min"))||N.Z.sameYear(ct,this.option("max"))},_renderWeekNumberCell:f.ZT}),decade:Fe.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(ct){var He=this.option("_todayDate")();return N.Z.sameYear(ct,He)},_isDateOutOfRange:function(ct){var He=this.option("min"),Dt=this.option("max");return!N.Z.dateInRange(ct.getFullYear(),He&&He.getFullYear(),Dt&&Dt.getFullYear())},_isOtherView:function(ct){var He=new Date(ct);return He.setMonth(1),!N.Z.sameDecade(He,this.option("date"))},_getCellText:function(ct){return Ae.Z.format(ct,"yyyy")},_getFirstCellData:function(){var ct=N.Z.getFirstYearInDecade(this.option("date"))-1;return N.Z.createDateWithFullYear(ct,0,1)},_getNextCellData:function(ct){return(ct=new Date(ct)).setFullYear(ct.getFullYear()+1),ct},getNavigatorCaption:function(){var ct=this.option("date"),He=N.Z.getFirstYearInDecade(ct),Dt=new Date(ct),qe=new Date(ct);return Dt.setFullYear(He),qe.setFullYear(He+9),Ae.Z.format(Dt,"yyyy")+"-"+Ae.Z.format(qe,"yyyy")},_isValueOnCurrentView:function(ct,He){return N.Z.sameDecade(ct,He)},_getCellByDate:function(ct){var He=new Date(ct);return He.setDate(1),He.setMonth(0),this._$table.find("td[data-value='".concat(V.Z.serializeDate(He,N.Z.getShortDateFormat()),"']"))},isBoundary:function(ct){return N.Z.sameDecade(ct,this.option("min"))||N.Z.sameDecade(ct,this.option("max"))},_renderWeekNumberCell:f.ZT}),century:Fe.inherit({_getViewName:function(){return"century"},_isTodayCell:function(ct){var He=this.option("_todayDate")();return N.Z.sameDecade(ct,He)},_isDateOutOfRange:function(ct){var He=N.Z.getFirstYearInDecade(ct),Dt=N.Z.getFirstYearInDecade(this.option("min")),qe=N.Z.getFirstYearInDecade(this.option("max"));return!N.Z.dateInRange(He,Dt,qe)},_isOtherView:function(ct){var He=new Date(ct);return He.setMonth(1),!N.Z.sameCentury(He,this.option("date"))},_getCellText:function(ct){var He=Ae.Z.format(ct,"yyyy"),Dt=new Date(ct);return Dt.setFullYear(Dt.getFullYear()+9),He+" - "+Ae.Z.format(Dt,"yyyy")},_getFirstCellData:function(){var ct=N.Z.getFirstDecadeInCentury(this.option("date"))-10;return N.Z.createDateWithFullYear(ct,0,1)},_getNextCellData:function(ct){return(ct=new Date(ct)).setFullYear(ct.getFullYear()+10),ct},_getCellByDate:function(ct){var He=new Date(ct);return He.setDate(1),He.setMonth(0),He.setFullYear(N.Z.getFirstYearInDecade(He)),this._$table.find("td[data-value='".concat(V.Z.serializeDate(He,N.Z.getShortDateFormat()),"']"))},getNavigatorCaption:function(){var ct=this.option("date"),He=N.Z.getFirstDecadeInCentury(ct),Dt=new Date(ct),qe=new Date(ct);return Dt.setFullYear(He),qe.setFullYear(He+99),Ae.Z.format(Dt,"yyyy")+"-"+Ae.Z.format(qe,"yyyy")},isBoundary:function(ct){return N.Z.sameCentury(ct,this.option("min"))||N.Z.sameCentury(ct,this.option("max"))},_renderWeekNumberCell:f.ZT})};var le=l(6961),pe=l(2941),Ee=l(3553),ae=l(4514),te=l(6868),Be="dx-calendar-view",Te={month:3,year:2,decade:1,century:0},Ct=d.Z.inherit({_activeStateUnit:".dx-calendar-cell",_getDefaultOptions:function(){return(0,s.l)(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"===pe.Z.real().deviceType&&!pe.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return(0,s.l)(this.callBase(),{rightArrow:function(ct){ct.preventDefault(),(0,K.j1)(ct)?this._waitRenderView(1):this._moveCurrentDateByOffset(1*this._getRtlCorrection())},leftArrow:function(ct){ct.preventDefault(),(0,K.j1)(ct)?this._waitRenderView(-1):this._moveCurrentDateByOffset(-1*this._getRtlCorrection())},upArrow:function(ct){if(ct.preventDefault(),(0,K.j1)(ct))this._navigateUp();else{if(Ee.Z.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(-1*this._view.option("colCount"))}},downArrow:function(ct){if(ct.preventDefault(),(0,K.j1)(ct))this._navigateDown();else{if(Ee.Z.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(1*this._view.option("colCount"))}},home:function(ct){ct.preventDefault();var He=this.option("zoomLevel"),Dt=this.option("currentDate"),qe=this._dateOption("min");if(!this._view.isDateDisabled(Dt)){var Ht=N.Z.sameView(He,Dt,qe)?qe:N.Z.getViewFirstCellDate(He,Dt);this._moveToClosestAvailableDate(Ht)}},end:function(ct){ct.preventDefault();var He=this.option("zoomLevel"),Dt=this.option("currentDate"),qe=this._dateOption("max");if(!this._view.isDateDisabled(Dt)){var Ht=N.Z.sameView(He,Dt,qe)?qe:N.Z.getViewLastCellDate(He,Dt);this._moveToClosestAvailableDate(Ht)}},pageUp:function(ct){ct.preventDefault(),this._waitRenderView(-1*this._getRtlCorrection())},pageDown:function(ct){ct.preventDefault(),this._waitRenderView(1*this._getRtlCorrection())},tab:f.ZT,enter:function(ct){if(this._isMaxZoomLevel()){if(!this._view.isDateDisabled(this.option("currentDate"))){var He=this._updateTimeComponent(this.option("currentDate"));this._dateValue(He,ct)}}else this._navigateDown()}})},_getSerializationFormat:function(ct){var He=this.option(ct||"value");return this.option("dateSerializationFormat")?this.option("dateSerializationFormat"):(0,a.kE)(He)?"number":(0,a.HD)(He)?V.Z.getDateSerializationFormat(He):void 0},_convertToDate:function(ct,He){return V.Z.deserializeDate(ct)},_dateValue:function(ct,He){if(He){if("keydown"===He.type){var Dt=this._view._getContouredCell().get(0);He.target=Dt}this._saveValueChangeEvent(He)}this._dateOption("value",ct)},_dateOption:function(ct,He){if(1===arguments.length)return this._convertToDate(this.option(ct),ct);var Dt=this._getSerializationFormat(ct);this.option(ct,V.Z.serializeDate(He,Dt))},_shiftDate:function(ct,He,Dt,qe){switch(ct){case"month":He.setDate(He.getDate()+Dt*qe);break;case"year":He.setMonth(He.getMonth()+Dt*qe);break;case"decade":He.setFullYear(He.getFullYear()+Dt*qe);break;case"century":He.setFullYear(He.getFullYear()+10*Dt*qe)}},_moveCurrentDateByOffset:function(ct){var He=this.option("currentDate"),Dt=new Date(He),qe=this.option("zoomLevel");this._shiftDate(qe,Dt,ct,1);for(var Ht=this._getMaxDate(),dt=this._getMinDate(),ht=this._areDatesInNeighborView(qe,Dt,He),yt=(0,p.Z2)(Dt,dt,Ht)&&ht,Ft=new Date(Dt);yt;){if(!this._view.isDateDisabled(Ft)){Dt=Ft;break}this._shiftDate(qe,Ft,ct,1),ht=this._areDatesInNeighborView(qe,Ft,He),yt=(0,p.Z2)(Ft,dt,Ht)&&ht}this._view.isDateDisabled(He)||this._view.isDateDisabled(Dt)?this._waitRenderView(ct>0?1:-1):this.option("currentDate",Dt)},_areDatesInSameView(ct,He,Dt){switch(ct){case"month":return He.getMonth()===Dt.getMonth();case"year":return He.getYear()===Dt.getYear();case"decade":return parseInt(He.getYear()/10)===parseInt(Dt.getYear()/10);case"century":return parseInt(He.getYear()/100)===parseInt(Dt.getYear()/100)}},_areDatesInNeighborView(ct,He,Dt){switch(ct){case"month":return qe=He.getMonth(),Ht=Dt.getMonth(),dt=Math.abs(qe-Ht),Math.min(dt,12-dt)<=1;case"year":return Math.abs(He.getYear()-Dt.getYear())<=1;case"decade":return Math.abs(He.getYear()-Dt.getYear())<=10;case"century":return Math.abs(He.getYear()-Dt.getYear())<=100}var qe,Ht,dt},_moveToClosestAvailableDate:function(){var ht,yt,ct=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("currentDate"),He=new Date(ct),Dt=this.option("zoomLevel"),qe=!this._isDateNotAvailable(He),Ht=qe,dt=qe,Ft=new Date(He),bn=new Date(He);do{if(Ht){He=Ft;break}if(dt){He=bn;break}this._shiftDate(Dt,Ft,1,1),this._shiftDate(Dt,bn,1,-1),ht=this._areDatesInSameView(Dt,Ft,ct),yt=this._areDatesInSameView(Dt,bn,ct),Ht=ht&&!this._isDateNotAvailable(Ft),dt=yt&&!this._isDateNotAvailable(bn)}while(ht||yt);this.option("currentDate",He)},_isDateNotAvailable:function(ct){var He=this._getMaxDate(),Dt=this._getMinDate();return!(0,p.Z2)(ct,Dt,He)||this._view.isDateDisabled(ct)},_init:function(){this.callBase(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_correctZoomLevel:function(){var ct=this.option("minZoomLevel"),He=this.option("maxZoomLevel"),Dt=this.option("zoomLevel");Te[He]<Te[ct]||(Te[Dt]>Te[He]?this.option("zoomLevel",He):Te[Dt]<Te[ct]&&this.option("zoomLevel",ct))},_initCurrentDate:function(){var ct=this._getNormalizedDate(this._dateOption("value"))||this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",ct)},_getNormalizedDate:function(ct){return ct=N.Z.normalizeDate(ct,this._getMinDate(),this._getMaxDate()),(0,a.$K)(ct)?this._getDate(ct):ct},_initActions:function(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates:function(){this._templateManager.addDefaultTemplates({cell:new te.k(function(ct){var He=ct.model;(0,c.Z)(ct.container).append((0,c.Z)("<span>").text(He&&He.text||String(He)))})}),this.callBase()},_updateCurrentDate:function(ct){if(Ee.Z.isAnimating(this._$viewsWrapper)&&Ee.Z.stop(this._$viewsWrapper,!0),this._getMinDate()>this._getMaxDate())this.option("currentDate",new Date);else{var qe=this._getNormalizedDate(ct);if(ct.getTime()===qe.getTime()){var Ht=this._getViewsOffset(this._view.option("date"),qe);0!==Ht&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(Ht=0),this._view&&0!==Ht&&!this._suppressNavigation?this._navigate(Ht,qe):(this._renderNavigator(),this._setViewContoured(qe),this._updateAriaId(qe))}else this.option("currentDate",new Date(qe))}},_setViewContoured:function(ct){(this.option("skipFocusCheck")||function St(ct){return ct.hasClass("dx-state-focused")}(this._focusTarget()))&&this._view.option("contouredDate",ct)},_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(ct,He){var qe,Dt=this.option("zoomLevel");if("month"===Dt)return this._getMonthsOffset(ct,He);switch(Dt){case"century":qe=100;break;case"decade":qe=10;break;default:qe=1}return parseInt(He.getFullYear()/qe)-parseInt(ct.getFullYear()/qe)},_getMonthsOffset:function(ct,He){return 12*(He.getFullYear()-ct.getFullYear())+(He.getMonth()-ct.getMonth())},_waitRenderView:function(ct){if(!this._alreadyViewRender){this._alreadyViewRender=!0;var He=this._getDateByOffset(ct*this._getRtlCorrection());this._moveToClosestAvailableDate(He),this._waitRenderViewTimeout=setTimeout(()=>{this._alreadyViewRender=!1})}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(ct,He){var Dt,qe=(He=this._getDate(null!==(Dt=He)&&void 0!==Dt?Dt:this.option("currentDate"))).getDate(),Ht=N.Z.getDifferenceInMonth(this.option("zoomLevel"))*ct;He.setDate(1),He.setMonth(He.getMonth()+Ht);var dt=N.Z.getLastMonthDate(He).getDate();return He.setDate(qe>dt?dt:qe),He},_focusTarget:function(){return this.$element()},_initMarkup:function(){this._renderSubmitElement(),this.callBase();var ct=this.$element();ct.addClass("dx-calendar"),this._renderBody(),ct.append(this.$body),this._renderViews(),this._renderNavigator(),ct.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=(0,c.Z)("<div>").addClass("dx-calendar-body"),this._$viewsWrapper=(0,c.Z)("<div>").addClass("dx-calendar-views-wrapper"),this.$body.append(this._$viewsWrapper))},_getKeyboardListeners(){return this.callBase().concat([this._view])},_renderViews:function(){this.$element().addClass(Be+"-"+this.option("zoomLevel"));var ct=this.option("currentDate");if(this._view=this._renderSpecificView(ct),(0,ae.Ym)()){var He=this._getDateByOffset(-1,ct);this._beforeView=this._isViewAvailable(He)?this._renderSpecificView(He):null;var Dt=this._getDateByOffset(1,ct);Dt.setDate(1),this._afterView=this._isViewAvailable(Dt)?this._renderSpecificView(Dt):null}this._translateViews()},_renderSpecificView:function(ct){var He=de[this.option("zoomLevel")],Dt=(0,c.Z)("<div>").appendTo(this._$viewsWrapper),qe=this._viewConfig(ct);return this._createComponent(Dt,He,qe)},_viewConfig:function(ct){var He,Dt=this.option("disabledDates");return Dt=(0,a.mf)(Dt)?this._injectComponent(Dt.bind(this)):Dt,{date:ct,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:null!==(He=this.option("firstDayOfWeek"))&&void 0!==He?He:Ae.Z.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:Dt,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel(),_todayDate:this.option("_todayDate")}},_injectComponent:function(ct){var He=this;return function(Dt){return(0,s.l)(Dt,{component:He}),ct(Dt)}},_isViewAvailable:function(ct){var He=this.option("zoomLevel"),Dt=N.Z.getViewMinBoundaryDate(He,this._getMinDate()),qe=N.Z.getViewMaxBoundaryDate(He,this._getMaxDate());return N.Z.dateInRange(ct,Dt,qe)},_translateViews:function(){(0,le.pB)(this._view.$element(),{left:0,top:0}),this._beforeView&&(0,le.pB)(this._beforeView.$element(),{left:this._getViewPosition(-1),top:0}),this._afterView&&(0,le.pB)(this._afterView.$element(),{left:this._getViewPosition(1),top:0})},_getViewPosition:function(ct){return 100*ct*(this.option("rtlEnabled")?-1:1)+"%"},_cellClickHandler:function(ct){var He=this.option("zoomLevel"),Dt=N.Z.getViewDown(He),qe=this._isMaxZoomLevel();if(Dt&&!qe)this._navigateDown(ct.event.currentTarget);else{var Ht=this._updateTimeComponent(ct.value);this._dateValue(Ht,ct.event),this._cellClickAction(ct)}},_updateTimeComponent:function(ct){var He=new Date(ct),Dt=this._dateOption("value");return Dt&&(He.setHours(Dt.getHours()),He.setMinutes(Dt.getMinutes()),He.setSeconds(Dt.getSeconds()),He.setMilliseconds(Dt.getMilliseconds())),He},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(ct){var He=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var Dt=N.Z.getViewDown(He);if(Dt){var qe=this._view.option("contouredDate")||this._view.option("date");ct&&(qe=(0,c.Z)(ct).data("dxDateValueKey")),this._isOtherViewCellClicked=!0,this.option("currentDate",qe),this.option("zoomLevel",Dt),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate")))}}},_renderNavigator:function(){this._navigator||(this._navigator=new k((0,c.Z)("<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(ct){var He=this._getDateByOffset(ct.direction,this.option("currentDate"));this._moveToClosestAvailableDate(He)},_navigateUp:function(){var ct=this.option("zoomLevel"),He=N.Z.getViewUp(ct);!He||this._isMinZoomLevel(ct)||(this.option("zoomLevel",He),this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate"))))},_isMinZoomLevel:function(ct){var He=this._getMinDate(),Dt=this._getMaxDate();return N.Z.sameView(ct,He,Dt)||this.option("minZoomLevel")===ct},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!(0,a.$K)(this._getRequiredView("next"))),this._navigator.toggleButton("prev",!(0,a.$K)(this._getRequiredView("prev")))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),h.Z,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(ct){Ee.Z.stop(this._$viewsWrapper,!0),ct.event.maxLeftOffset=this._getRequiredView("next")?1:0,ct.event.maxRightOffset=this._getRequiredView("prev")?1:0},_getRequiredView:function(ct){var He,Dt=this.option("rtlEnabled");return"next"===ct?He=Dt?this._beforeView:this._afterView:"prev"===ct&&(He=Dt?this._afterView:this._beforeView),He},_swipeUpdateHandler:function(ct){var He=ct.event.offset;(0,le.pB)(this._$viewsWrapper,{left:He*this._viewWidth(),top:0}),this._updateNavigatorCaption(He)},_swipeEndHandler:function(ct){var He=ct.event.targetOffset,Dt=He?He/Math.abs(He):0;if(0!==Dt){var qe=this._getDateByOffset(-Dt*this._getRtlCorrection());this._isDateInInvalidRange(qe)&&(qe=Dt>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",qe)}else this._animateWrapper(0,250)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=(0,o.dz)(this.$element())),this._viewWidthValue},_updateNavigatorCaption:function(ct){ct*=this._getRtlCorrection();var He=this._view;ct>.5&&this._beforeView?He=this._beforeView:ct<-.5&&this._afterView&&(He=this._afterView),this._navigator.option("text",He.getNavigatorCaption())},_isDateInInvalidRange:function(ct){if(!this._view.isBoundary(ct)){var He=this._getMinDate(),Dt=this._getMaxDate(),qe=N.Z.normalizeDate(ct,He,Dt);return qe===He||qe===Dt}},_renderFooter:function(){var ct=this.option("showTodayButton");if(ct){var He=this._createComponent((0,c.Z)("<a>"),u.Z,{focusStateEnabled:!1,text:U.Z.format("dxCalendar-todayButtonText"),onClick:function(Dt){this._toTodayView(Dt)}.bind(this),integrationOptions:{}}).$element().addClass("dx-calendar-today-button");this._$footer=(0,c.Z)("<div>").addClass("dx-calendar-footer").append(He),this.$element().append(this._$footer)}this.$element().toggleClass("dx-calendar-with-footer",ct)},_renderSubmitElement:function(){this._$submitElement=(0,c.Z)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(ct){var He=this._convertToDate(ct);this._getSubmitElement().val(V.Z.serializeDate(He,"yyyy-MM-dd"))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){return Ee.Z.stop(this._view.$element(),!0),this._popAnimationView(this._view,.6,1,250).promise()},_popAnimationView:function(ct,He,Dt,qe){return Ee.Z.animate(ct.$element(),{type:"pop",from:{scale:He,opacity:He},to:{scale:Dt,opacity:Dt},duration:qe})},_navigate:function(ct,He){if(0!==ct&&1!==Math.abs(ct)&&this._isViewAvailable(He)){var Dt=this._renderSpecificView(He);ct>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=Dt):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=Dt),this._translateViews()}var dt=-this._getRtlCorrection()*(ct>0?1:ct<0?-1:0)*this._viewWidth();this._$viewsWrapper.position().left!==dt&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(ct,He):this._animateWrapper(dt,250).done(this._wrapperAnimationEndHandler.bind(this,ct,He)))},_animateWrapper:function(ct,He){return Ee.Z.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:ct},duration:He})},_getDate:ct=>new Date(ct),_toTodayView:function(ct){this._saveValueChangeEvent(ct.event);var He=new Date;this._isMaxZoomLevel()?this._dateOption("value",He):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._dateOption("value",He),this._animateShowView(),this._preventViewChangeAnimation=!1)},_wrapperAnimationEndHandler:function(ct,He){this._rearrangeViews(ct),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(He),this._updateAriaId(He)},_rearrangeViews:function(ct){var He,Dt,qe;if(0!==ct&&(ct<0?(He=1,Dt="_beforeView",qe="_afterView"):(He=-1,Dt="_afterView",qe="_beforeView"),this[Dt])){var Ht=this[Dt].option("date");this[qe]&&this[qe].$element().remove(),ct===He?this[qe]=this._view:(this[qe]=this._renderSpecificView(this._getDateByOffset(He,Ht)),this._view.$element().remove()),this._view=this[Dt];var dt=this._getDateByOffset(-He,Ht);this[Dt]=this._isViewAvailable(dt)?this._renderSpecificView(dt):null}},_resetLocation:function(){(0,le.pB)(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(ct){var He=ct?new Date(ct):null;this._view.option("value",He),this._beforeView&&this._beforeView.option("value",He),this._afterView&&this._afterView.option("value",He)},_updateAriaSelected:function(ct,He){var Dt;ct=null!==(Dt=ct)&&void 0!==Dt?Dt:this._dateOption("value");var qe=this._view._getCellByDate(He),Ht=this._view._getCellByDate(ct);this.setAria("selected",void 0,qe),this.setAria("selected",!0,Ht),ct&&this.option("currentDate").getTime()===ct.getTime()&&this._updateAriaId(ct)},_updateAriaId:function(ct){var He;ct=null!==(He=ct)&&void 0!==He?He:this.option("currentDate");var Dt="dx-"+new I.Z,qe=this._view._getCellByDate(ct);this.setAria("id",Dt,qe),this.setAria("activedescendant",Dt),this._onContouredChanged(Dt)},_suppressingNavigation:function(ct,He){this._suppressNavigation=!0,ct.apply(this,He),delete this._suppressNavigation},_optionChanged:function(ct){var He=ct.value,Dt=ct.previousValue;switch(ct.name){case"width":this.callBase(ct),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(Dt)),this._updateCurrentDate(He);break;case"zoomLevel":this.$element().removeClass(Be+"-"+Dt),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":He=this._convertToDate(He),Dt=this._convertToDate(Dt),this._updateAriaSelected(He,Dt),this.option("currentDate",(0,a.$K)(He)?new Date(He):new Date),this._updateViewsValue(He),this._setSubmitValue(He),this.callBase(ct);break;case"onCellClick":this._view.option("onCellClick",He);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(ct)}},getContouredDate:function(){return this._view.option("contouredDate")}});(0,C.Z)("dxCalendar",Ct);const fn=Ct},344:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>pe});var o=l(8506),c=l(1828),I=l(4691),C=l(3191),f=l(5873),a=l(9904),p=l(5610),s=l(5365),u=l(1031),h="dx-invalid-message-auto",g="dx-validation-target";class x extends I.Z{getProps(){var ae=super.getProps();return ae.onFocusIn=()=>{if("auto"===this.option("validationMessageMode")){var re=(0,a.Z)(function d(Ee,ae){var te,re;return(null!==(te=null===(re=Ee.getRootNode)||void 0===re?void 0:re.call(Ee))&&void 0!==te?te:document).querySelector(ae)}(this.element(),".dx-invalid-message.dx-overlay-wrapper"));re?.removeClass(h),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(()=>{re?.addClass(h)},150)}},ae.saveValueChangeEvent=te=>{this._valueChangeEventInstance=te},ae}_createElement(ae){super._createElement(ae),this.showValidationMessageTimeout=void 0,this.validationRequest=(0,s.Z)(),(0,p.aT)(this.$element()[0],g,this)}_render(){var ae;null===(ae=this.option("_onMarkupRendered"))||void 0===ae||ae()}_initializeComponent(){super._initializeComponent(),this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})}_initOptions(ae){super._initOptions(ae),this.option(C.Z.initValidationOptions(ae))}_getDefaultOptions(){return(0,f.l)(super._getDefaultOptions(),{validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})}_bindInnerWidgetOptions(ae,te){var re=(0,f.l)({},ae.option()),oe=()=>this._silent(te,re);oe(),ae.on("optionChanged",oe)}_raiseValidation(ae,te){var re=!(0,c.$K)(ae)&&!(0,c.$K)(te);ae!==te&&!re&&this.validationRequest.fire({value:ae,editor:this})}_raiseValueChangeAction(ae,te){var re;null===(re=this._valueChangeAction)||void 0===re||re.call(this,{element:this.$element(),previousValue:te,value:ae,event:this._valueChangeEventInstance}),this._valueChangeEventInstance=void 0}_optionChanged(ae){var{name:te,previousValue:re,value:oe}=ae;switch(te&&void 0!==this._getActionConfigs()[te]&&this._addAction(te),te){case"value":this._raiseValidation(oe,re),this._raiseValueChangeAction(oe,re);break;case"onValueChanged":this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]});break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(C.Z.synchronizeValidationOptions(ae,this.option()))}super._optionChanged(ae)}reset(){var{value:ae}=this._getDefaultOptions();this.option({value:ae})}_dispose(){super._dispose(),(0,p.aT)(this.element(),g,null),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout)}}var b=u.Z.isEditor,y=Ee=>b(Ee)||Ee instanceof x;x.isEditor=y,u.Z.isEditor=y;class E extends x{_useTemplates(){return!1}_isFocused(){return this.$element()[0].classList.contains("dx-state-focused")}getSupportedKeyNames(){return["space"]}getProps(){var ae=super.getProps();return null!==ae.value&&(ae.value=Boolean(ae.value)),ae}}var S=l(9943),O=l(4817),w=l(9056),T=l(6084),k=l(2941),R=l(4614),P=l(3667),B=l(4570),W=l(4514),N=l(4356),V=l(2722),U=[[22,16],[18,16]],K=[[[12,8],[20,18]],[[16,10],[16,14]]];function Y(){var Ee=(0,V.Vk)();return{isMaterialTheme:(0,V.x2)(Ee),isCompactTheme:(0,V.f5)(Ee)}}var G=["isChecked","size"],Z={isChecked:!1};let X=(()=>{class Ee extends T.OS{constructor(te){super(te),this.state={},this.elementRef=(0,w.Vf)(),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 T.b0(this.updateFontSize,[this.props.isChecked,this.props.size])]}updateEffects(){var te;null===(te=this._effects[0])||void 0===te||te.update([this.props.isChecked,this.props.size])}updateFontSize(){var{isChecked:te,size:re}=this.props;if((0,W.Ym)()&&re){var ye=function ee(Ee,ae){var te=function j(Ee){var{isCompactTheme:ae,isMaterialTheme:te}=Y();return K[+Ee][+te][+ae]}(ae),re=function J(){var{isCompactTheme:Ee,isMaterialTheme:ae}=Y();return U[+ae][+Ee]}();return Math.ceil(te/re*Ee)}(this.getIconSize(re),te);this.setIconFontSize(ye)}}setIconFontSize(te){this.elementRef.current.style.fontSize="".concat(te,"px")}getIconSize(te){return(0,c.kE)(te)?te:te.endsWith("px")?parseInt(te,10):this.getComputedIconSize()}getComputedIconSize(){var re=(0,B.Z)(this.elementRef.current);return parseInt(re?.width,10)}get cssStyles(){return void 0!==this.__getterCache.cssStyles?this.__getterCache.cssStyles:this.__getterCache.cssStyles=(()=>{var{size:te}=this.props,re=(0,N.bh)("width",te);return{height:(0,N.bh)("height",te),width:re}})()}get restAttributes(){return(0,S.Z)(this.props,G)}componentWillUpdate(te,re,oe){super.componentWillUpdate(),this.props.size!==te.size&&(this.__getterCache.cssStyles=void 0)}render(){return(Ee=>{var{cssStyles:ae,elementRef:te}=Ee;return(0,w.Wm)(1,"span","dx-checkbox-icon",null,1,{style:(0,T.jk)(ae)},null,te)})({props:(0,O.Z)({},this.props),elementRef:this.elementRef,setIconFontSize:this.setIconFontSize,getIconSize:this.getIconSize,getComputedIconSize:this.getComputedIconSize,cssStyles:this.cssStyles,restAttributes:this.restAttributes})}}return Ee.defaultProps=Z,Ee})();var M=l(2735),se=l(3238),ge=["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"],Ae=Object.create(Object.prototype,(0,O.Z)(Object.getOwnPropertyDescriptors(R.nY),Object.getOwnPropertyDescriptors({text:"",enableThreeStateBehavior:!1,activeStateEnabled:!0,hoverStateEnabled:!0,get focusStateEnabled(){return"desktop"===k.Z.real().deviceType&&!k.Z.isSimulator()},defaultValue:!1,valueChange:()=>{}}))),ne={get text(){return Ae.text},get enableThreeStateBehavior(){return Ae.enableThreeStateBehavior},get activeStateEnabled(){return Ae.activeStateEnabled},get hoverStateEnabled(){return Ae.hoverStateEnabled},get focusStateEnabled(){return Ae.focusStateEnabled},get defaultValue(){return Ae.defaultValue},get valueChange(){return Ae.valueChange},get readOnly(){return Ae.readOnly},get name(){return Ae.name},get validationError(){return Ae.validationError},get validationErrors(){return Ae.validationErrors},get validationMessageMode(){return Ae.validationMessageMode},get validationMessagePosition(){return Ae.validationMessagePosition},get validationStatus(){return Ae.validationStatus},get isValid(){return Ae.isValid},get className(){return Ae.className},get disabled(){return Ae.disabled},get tabIndex(){return Ae.tabIndex},get visible(){return Ae.visible},get aria(){return M.W6.aria}};class fe extends T.DZ{constructor(ae){super(ae),this.editorRef=(0,w.Vf)(),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[(0,T.gt)()]}onWidgetClick(ae){var{enableThreeStateBehavior:te,readOnly:re,saveValueChangeEvent:oe}=this.props;if(!re)if(oe?.(ae),te){var ye;this.setState(Ne=>({value:ye=null===(void 0!==this.props.value?this.props.value:Ne.value)||!(void 0!==this.props.value?this.props.value:Ne.value)&&null})),this.props.valueChange(ye)}else{var Pe;this.setState(Ne=>{var ft;return{value:Pe=!(null!==(ft=void 0!==this.props.value?this.props.value:Ne.value)&&void 0!==ft&&ft)}}),this.props.valueChange(Pe)}}keyDown(ae){var{onKeyDown:te}=this.props,{keyName:re,originalEvent:oe,which:ye}=ae,Pe=te?.(ae);if(null!=Pe&&Pe.cancel)return Pe;("space"===re||"space"===ye)&&(oe.preventDefault(),this.onWidgetClick(oe))}get cssClasses(){return(Ee=>{var{text:ae,value:te}=Ee;return(0,P.G)({"dx-checkbox":!0,"dx-checkbox-checked":!0===te,"dx-checkbox-has-text":!!ae,"dx-checkbox-indeterminate":null===te})})((0,O.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}))}get aria(){var re={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))};return(0,O.Z)({},re,this.props.aria)}get restAttributes(){var ae=(0,O.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,S.Z)(ae,ge)}focus(){this.editorRef.current.focus()}blur(){this.editorRef.current.blur()}render(){return(Ee=>{var{aria:ae,cssClasses:te,editorRef:re,keyDown:oe,onWidgetClick:ye,props:{accessKey:Pe,activeStateEnabled:Ne,className:ft,disabled:tt,focusStateEnabled:Be,height:mt,hint:nn,hoverStateEnabled:ke,iconSize:$e,isValid:me,name:xe,onFocusIn:Te,readOnly:Ye,rtlEnabled:St,tabIndex:Ct,text:Rt,validationError:fn,validationErrors:ct,validationMessageMode:He,validationMessagePosition:Dt,validationStatus:qe,value:Ht,visible:dt,width:ht},restAttributes:yt}=Ee;return(0,w.vs)((0,w.Iz)(2,R.ML,(0,O.Z)({aria:ae,classes:te,onClick:ye,onKeyDown:oe,accessKey:Pe,activeStateEnabled:Ne,focusStateEnabled:Be,hoverStateEnabled:ke,className:ft,disabled:tt,readOnly:Ye,hint:nn,height:mt,width:ht,rtlEnabled:St,tabIndex:Ct,visible:dt,validationError:fn,validationErrors:ct,validationMessageMode:He,validationMessagePosition:Dt,validationStatus:qe,isValid:me,onFocusIn:Te},yt,{children:(0,w.xJ)([(0,w.vs)((0,w.Wm)(64,"input",null,null,1,(0,O.Z)({type:"hidden",value:"".concat(Ht)},xe&&{name:xe}))),(0,w.Wm)(1,"div","dx-checkbox-container",[(0,w.Iz)(2,X,{size:$e,isChecked:!0===Ht}),Rt&&(0,w.Wm)(1,"span","dx-checkbox-text",Rt,0)],0)],4)}),null,re))})({props:(0,O.Z)({},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})}}fe.defaultProps=ne;var ie=[];class le extends E{getProps(){var ae=super.getProps();return ae.onKeyDown=this._wrapKeyDownHandler(ae.onKeyDown),ae}focus(){var ae;return null===(ae=this.viewRef)||void 0===ae?void 0:ae.focus(...arguments)}blur(){var ae;return null===(ae=this.viewRef)||void 0===ae?void 0:ae.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 fe}}(0,o.Z)("dxCheckBox",le),le.defaultOptions=function de(Ee){ie.push(Ee),fe.defaultProps=Object.create(Object.prototype,(0,O.Z)(Object.getOwnPropertyDescriptors(fe.defaultProps),Object.getOwnPropertyDescriptors(function _e(Ee){var ae=["value"];return Object.keys(Ee).reduce((te,re)=>{var oe=Ee[re];return te[ae.some(Pe=>Pe===re)?"default"+re.charAt(0).toUpperCase()+re.slice(1):re]=oe,te},{})}((0,se.wt)(ie)))))};const pe=le},8646:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>d});var o=l(9904),c=l(5031),I=l(2718),C=l(6165),u=c.Z.inherit({ctor:function(h,g,x){this._$element=h,this._options=g,this._rawData=x,(0,C.nf)(h,this,this._dispose),this._render()},_render:function(){var h=(0,o.Z)("<div>").addClass("dx-item-content-placeholder");this._$element.append(h),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(h,g){var x=this._rawData,b=this._options.fieldGetter(h),y=function(h,g,x){var y,b=function(E){y!==E&&(x(E,y),y=E)};return{dispose:h(g,b),force:function(){b(g())}}}(this._options.watchMethod(),function(){return b(x)},function(E,S){this._dirty=!0,g(E,S)}.bind(this));this._watchers.push(y)},setDataField:function(){if(this._dirty=!1,(0,I.S6)(this._watchers,function(h,g){g.force()}),this._dirty)return!0},_renderDisabled:function(h,g){this._$element.toggleClass("dx-state-disabled",!!h),this._updateOwnerFocus(h)},_updateOwnerFocus:function(h){var g=this._options.owner;g&&h&&g._resetItemFocus(this._$element)},_renderVisible:function(h,g){this._$element.toggleClass("dx-state-invisible",void 0!==h&&!h)},_dispose:function(){(0,I.S6)(this._watchers,function(h,g){g.dispose()})}});u.getInstance=function(h){return(0,C.Bt)(h,this)};const d=u},7307:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>ft});var o=l(9904),c=l(913),I=l(1805),C=l(7674),f=l(4542),a=l(6881),p=l(9897),s=l(1828),u=l(4270),d=l(5873),h=l(2718),g=l(9866),x=l(6492),b=l(6853),y=l(8225),E=l(8690),S=l(8264),O=l(8646),w=l(7),T=l(9009),k=l(5180),R=l(6738),P=l(227),B=l(2480),W=l(4823),V="dx-item",U="-content",K="dx-item-content-placeholder",X="dx-template-wrapper",M=/^([^.]+\[\d+\]\.)+([\w.]+)$/,De="down",de=b.Z.inherit({_activeStateUnit:"."+V,_supportedKeys:function(){var tt=function(mt){var nn=(0,o.Z)(this.option("focusedElement"));nn.length&&this._itemClickHandler((0,d.l)({},mt,{target:nn.get(0),currentTarget:nn.get(0)}))},Be=function(mt,nn){(0,y.j1)(nn)||(nn.preventDefault(),nn.stopPropagation(),this._moveFocus(mt,nn))};return(0,d.l)(this.callBase(),{space:function(mt){mt.preventDefault(),tt.call(this,mt)},enter:tt,leftArrow:Be.bind(this,"left"),rightArrow:Be.bind(this,"right"),upArrow:Be.bind(this,"up"),downArrow:Be.bind(this,De),pageUp:Be.bind(this,"up"),pageDown:Be.bind(this,De),home:Be.bind(this,"first"),end:Be.bind(this,"last")})},_getDefaultOptions:function(){return(0,d.l)(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:T.Z.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,dataSource:null,_dataController:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(tt){return tt?tt.disabled:void 0},visibleExpr:function(tt){return tt?tt.visible:void 0}})},_init:function(){this._compileDisplayGetter(),this._initDataController(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var tt=this.option("displayExpr");this._displayGetter=tt?(0,R.vb)(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this._initDefaultItemTemplate(),this.callBase()},_getAnonymousTemplateName:function(){return"item"},_initDefaultItemTemplate:function(){var tt=this._getFieldsMap();this._templateManager.addDefaultTemplates({item:new W.c(function(Be,mt){(0,s.PO)(mt)?this._prepareDefaultItemTemplate(mt,Be):(tt&&(0,s.mf)(tt.text)&&(mt=tt.text(mt)),Be.text(String((0,C.IS)(mt,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),tt)})},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(tt,Be){(0,s.$K)(tt.text)&&Be.text(tt.text),(0,s.$K)(tt.html)&&Be.html(tt.html)},_initItemsFromMarkup:function(){var tt=(0,f.hK)(this.$element(),"dxItem");if(tt.length&&!this.option("items").length){var Be=tt.map(mt=>{var{element:nn,options:ke}=mt;return/\S/.test(nn.innerHTML)&&!ke.template?ke.template=this._prepareItemTemplate(nn):(0,o.Z)(nn).remove(),ke});this.option("items",Be)}},_prepareItemTemplate:function(tt){var Be="tmpl-"+new x.Z,mt=(0,o.Z)(tt).detach().clone().removeAttr("data-options").addClass(X);return this._saveTemplate(Be,mt),Be},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(tt){if(this.callBase.apply(this,arguments),this._isFocusTarget(tt.target)){var Be=(0,o.Z)(this.option("focusedElement"));if(Be.length)this._setFocusedItem(Be);else{var mt=this._getActiveItem();mt.length&&this.option("focusedElement",(0,a.u)(mt))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var tt=(0,o.Z)(this.option("focusedElement"));this._updateFocusedItemState(tt,!1)},_getActiveItem:function(tt){var Be=(0,o.Z)(this.option("focusedElement"));if(Be.length)return Be;var mt=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,nn=this._getActiveElement();return mt<0&&(mt=tt?nn.length-1:0),nn.eq(mt)},_moveFocus:function(tt){var mt,Be=this._getAvailableItems();switch(tt){case"pageup":case"up":mt=this._prevItem(Be);break;case"pagedown":case De:mt=this._nextItem(Be);break;case"right":mt=this.option("rtlEnabled")?this._prevItem(Be):this._nextItem(Be);break;case"left":mt=this.option("rtlEnabled")?this._nextItem(Be):this._prevItem(Be);break;case"first":mt=Be.first();break;case"last":mt=Be.last();break;default:return!1}0!==mt.length&&this.option("focusedElement",(0,a.u)(mt))},_getVisibleItems:function(tt){return(tt=tt||this._itemElements()).filter(":visible")},_getAvailableItems:function(tt){return this._getVisibleItems(tt).not(".dx-state-disabled")},_prevItem:function(tt){var Be=this._getActiveItem(),mt=tt.index(Be),nn=tt.last(),ke=(0,o.Z)(tt[mt-1]),$e=this.option("loopItemFocus");return 0===ke.length&&$e&&(ke=nn),ke},_nextItem:function(tt){var Be=this._getActiveItem(!0),mt=tt.index(Be),nn=tt.first(),ke=(0,o.Z)(tt[mt+1]),$e=this.option("loopItemFocus");return 0===ke.length&&$e&&(ke=nn),ke},_selectFocusedItem:function(tt){this.selectItem(tt)},_updateFocusedItemState:function(tt,Be,mt){var nn=(0,o.Z)(tt);nn.length&&(this._refreshActiveDescendant(),this._refreshItemId(nn,mt),this._toggleFocusClass(Be,nn)),this._updateParentActiveDescendant()},_refreshActiveDescendant:function(tt){this.setAria("activedescendant",(0,s.$K)(this.option("focusedElement"))?this.getFocusedItemId():null,tt)},_refreshItemId:function(tt,Be){!Be&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),tt):this.setAria("id",null,tt)},_setFocusedItem:function(tt){!tt||!tt.length||(this._updateFocusedItemState(tt,!0),this.onFocusedItemChanged(this.getFocusedItemId()),this.option("selectOnFocus")&&this._selectFocusedItem(tt))},_findItemElementByItem:function(tt){var Be=(0,o.Z)(),mt=this;return this.itemElements().each(function(){var nn=(0,o.Z)(this);if(nn.data(mt._itemDataKey())===tt)return Be=nn,!1}),Be},_getIndexByItem:function(tt){return this.option("items").indexOf(tt)},_itemOptionChanged:function(tt,Be,mt,nn){var ke=this._findItemElementByItem(tt);ke.length&&(this.constructor.ItemClass.getInstance(ke).setDataField(Be,mt)||this._refreshItem(ke,tt),"disabled"===Be&&mt&&this._resetItemFocus(ke))},_resetItemFocus(tt){tt.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(tt){var Be=this._getItemData(tt),mt=tt.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+mt,Be,null,tt)},_updateParentActiveDescendant:C.ZT,_optionChanged:function(tt){if("items"===tt.name){var Be=tt.fullName.match(M);if(Be&&Be.length){var mt=Be[Be.length-1],nn=tt.fullName.replace("."+mt,""),ke=this.option(nn);return void this._itemOptionChanged(ke,mt,tt.value,tt.previousValue)}}switch(tt.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(tt.previousValue,!1,!0),this._setFocusedItem((0,o.Z)(tt.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;default:this.callBase(tt)}},_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(tt){var Be=this.option("items");this._initialized&&Be&&this._shouldAppendItems()?(this._renderedItemsCount=Be.length,(!this._isLastPage()||-1!==this._startIndexForAppendedItems)&&(this.option().items=Be.concat(tt.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",tt.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(){(0,o.Z)(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 V},_itemContentClass:function(){return this._itemClass()+U},_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:(0,C.Rg)(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var tt=this._itemSelector(),Be=(0,y.V4)(P.u,this.NAME),mt=(0,y.V4)(E.Z.down,this.NAME),nn=this,ke=new g.Z(function($e){nn._itemPointerDownHandler($e.event)});c.Z.off(this._itemContainer(),Be,tt),c.Z.off(this._itemContainer(),mt,tt),c.Z.on(this._itemContainer(),Be,tt,function($e){this._itemClickHandler($e)}.bind(this)),c.Z.on(this._itemContainer(),mt,tt,function($e){ke.execute({element:(0,o.Z)($e.target),event:$e})})},_itemClickHandler:function(tt,Be,mt){this._itemDXEventHandler(tt,"onItemClick",Be,mt)},_itemPointerDownHandler:function(tt){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!tt.isDefaultPrevented()){var Be=(0,o.Z)(tt.target),mt=Be.closest(this._itemElements()),nn=this._closestFocusable(Be);mt.length&&this._isFocusTarget(nn?.get(0))&&this.option("focusedElement",(0,a.u)(mt))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(tt){if(tt.is(w.KW))return tt;for(tt=tt.parent();tt.length&&!p.Z.isDocument(tt.get(0))&&!p.Z.isDocumentFragment(tt.get(0));){if(tt.is(w.KW))return tt;tt=tt.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var tt=this._itemContainer(),Be=this._itemSelector(),mt=(0,y.V4)(k.Z.name,this.NAME);c.Z.off(tt,mt,Be),c.Z.on(tt,mt,Be,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(tt){this._shouldFireHoldEvent()?this._itemDXEventHandler(tt,"onItemHold"):tt.cancel=!0},_attachContextMenuEvent:function(){var tt=this._itemContainer(),Be=this._itemSelector(),mt=(0,y.V4)(B.u,this.NAME);c.Z.off(tt,mt,Be),c.Z.on(tt,mt,Be,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(tt){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(tt,"onItemContextMenu"):tt.cancel=!0},_renderContentImpl:function(){var tt=this.option("items")||[];this._renderItems(this._renderedItemsCount?tt.slice(this._renderedItemsCount):tt)},_renderItems:function(tt){tt.length&&(0,h.S6)(tt,function(Be,mt){this._renderItem(this._renderedItemsCount+Be,mt)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(tt,Be,mt,nn){var ke,$e=null!==(ke=tt?.item)&&void 0!==ke?ke:tt;mt=mt||this._itemContainer();var me=this._renderItemFrame($e,Be,mt,nn);this._setElementData(me,Be,$e),me.attr(this.option("_itemAttributes")),this._attachItemClickEvent(Be,me);var xe=this._getItemContent(me),Te=this._renderItemContent({index:$e,itemData:Be,container:(0,a.u)(xe),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),Ye=this;return(0,u.gx)(Te).done(function(St){Ye._postprocessRenderItem({itemElement:me,itemContent:St,itemData:Be,itemIndex:$e}),Ye._executeItemRenderAction(tt,Be,(0,a.u)(me))}),me},_getItemContent:function(tt){var Be=tt.find("."+K);return Be.removeClass(K),Be},_attachItemClickEvent:function(tt,Be){!tt||!tt.onClick||c.Z.on(Be,P.u,function(mt){this._itemEventHandlerByHandler(Be,tt.onClick,{event:mt})}.bind(this))},_renderItemContent:function(tt){var Be=this._getItemTemplateName(tt),mt=this._getTemplate(Be);this._addItemContentClasses(tt);var nn=(0,o.Z)(this._createItemByTemplate(mt,tt));return nn.hasClass(X)?this._renderItemContentByNode(tt,nn):tt.container},_renderItemContentByNode:function(tt,Be){return(0,o.Z)(tt.container).replaceWith(Be),tt.container=(0,a.u)(Be),this._addItemContentClasses(tt),Be},_addItemContentClasses:function(tt){var Be=[V+U,tt.contentClass];(0,o.Z)(tt.container).addClass(Be.join(" "))},_appendItemToContainer:function(tt,Be,mt){Be.appendTo(tt)},_renderItemFrame:function(tt,Be,mt,nn){var ke=(0,o.Z)("<div>");if(new this.constructor.ItemClass(ke,this._itemOptions(),Be||{}),nn&&nn.length?nn.replaceWith(ke):this._appendItemToContainer.call(this,mt,ke,tt),this.option("useItemTextAsTitle")){var $e=this._displayGetter?this._displayGetter(Be):Be;ke.attr("title",$e)}return ke},_itemOptions:function(){var tt=this;return{watchMethod:function(){return tt.option("integrationOptions.watchMethod")},owner:tt,fieldGetter:function(Be){var mt=tt.option(Be+"Expr");return(0,R.vb)(mt)}}},_postprocessRenderItem:C.ZT,_executeItemRenderAction:function(tt,Be,mt){this._getItemRenderAction()({itemElement:mt,itemIndex:tt,itemData:Be})},_setElementData:function(tt,Be,mt){tt.addClass([V,this._itemClass()].join(" ")).data(this._itemDataKey(),Be).data(this._itemIndexKey(),mt)},_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(tt){var Be=tt.itemData,mt=tt.templateProperty||this.option("itemTemplateProperty");return Be&&Be[mt]||tt.defaultTemplateName},_createItemByTemplate:function(tt,Be){return tt.render({model:Be.itemData,container:Be.container,index:Be.index,onRendered:this._onItemTemplateRendered(tt,Be)})},_onItemTemplateRendered:function(){return C.ZT},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(tt){tt=tt||this.option("items");var Be=this.option("noDataText"),mt=!Be||tt&&tt.length||this._dataController.isLoading();mt&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),mt||(this._$noData=this._$noData||(0,o.Z)("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()),this.option("encodeNoDataText")?this._$noData.text(Be):this._$noData.html(Be),this.setAria("label",Be)),this.$element().toggleClass("dx-empty-collection",!mt)},_itemDXEventHandler:function(tt,Be,mt,nn){this._itemEventHandler(tt.target,Be,(0,d.l)(mt,{event:tt}),nn)},_itemEventHandler:function(tt,Be,mt,nn){var ke=this._createActionByOption(Be,(0,d.l)({validatingTargetName:"itemElement"},nn));return this._itemEventHandlerImpl(tt,ke,mt)},_itemEventHandlerByHandler:function(tt,Be,mt,nn){var ke=this._createAction(Be,(0,d.l)({validatingTargetName:"itemElement"},nn));return this._itemEventHandlerImpl(tt,ke,mt)},_itemEventHandlerImpl:function(tt,Be,mt){var nn=this._closestItemElement((0,o.Z)(tt)),ke=(0,d.l)({},mt);return Be((0,d.l)(mt,this._extendActionArgs(nn),ke))},_extendActionArgs:function(tt){return{itemElement:(0,a.u)(tt),itemIndex:this._itemElements().index(tt),itemData:this._getItemData(tt)}},_closestItemElement:function(tt){return(0,o.Z)(tt).closest(this._itemSelector())},_getItemData:function(tt){return(0,o.Z)(tt).data(this._itemDataKey())},_getSummaryItemsWidth:function(tt,Be){var mt=0;return tt&&(0,h.S6)(tt,function(nn,ke){mt+=(0,I.Y_)(ke,Be||!1)}),mt},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new x.Z),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(S.Z);de.ItemClass=O.Z;const le=de;var pe=l(8159),Ee=l(5172),ae=l(7122),te=l(5981),re=l(7398),oe="dxItemDeleting",Pe=function(tt){return-1!==tt};const ft=le.inherit({_setOptionsByReference:function(){this.callBase(),(0,d.l)(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return(0,d.l)(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(tt,Be){this._userOptions=Be||{},this.callBase(tt,Be)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule()},_initKeyGetter:function(){this._keyGetter=(0,R.vb)(this.option("keyExpr"))},_getKeysByItems:function(tt){return this._editStrategy.getKeysByItems(tt)},_getItemsByKeys:function(tt,Be){return this._editStrategy.getItemsByKeys(tt,Be)},_getKeyByIndex:function(tt){return this._editStrategy.getKeyByIndex(tt)},_getIndexByKey:function(tt){return this._editStrategy.getIndexByKey(tt)},_getIndexByItemData:function(tt){return this._editStrategy.getIndexByItemData(tt)},_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(tt){var Be=tt;return this.option("keyExpr")?Be=this._keyGetter(tt):this._dataController.store()&&(Be=this._dataController.keyOf(tt)),Be},_nullValueSelectionSupported:function(){return!1},_initSelectionModule:function(){var tt=this,Be=tt._editStrategy.itemsGetter;this._selection=new re.Z({allowNullValue:this._nullValueSelectionSupported(),mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(mt){(mt.addedItemKeys.length||mt.removedItemKeys.length)&&(tt.option("selectedItems",tt._getItemsByKeys(mt.selectedItemKeys,mt.selectedItems)),tt._updateSelectedItems(mt))},filter:tt._getCombinedFilter.bind(tt),totalCount:function(){var mt=tt.option("items"),nn=tt._dataController.totalCount();return nn>=0?nn:tt._getItemsCount(mt)},key:tt.key.bind(tt),keyOf:tt.keyOf.bind(tt),load:function(mt){var nn,ke=tt._dataController;return mt.customQueryParams=null===(nn=ke.loadOptions())||void 0===nn?void 0:nn.customQueryParams,mt.userData=ke.userData(),ke.store()?ke.loadFromStore(mt).done(function($e){if(!tt._disposed){var me=(0,te.r6)($e).data;ke.applyMapFunction(me)}}):(new u.BH).resolve(this.plainItems())},dataFields:function(){return tt._dataController.select()},plainItems:Be.bind(tt._editStrategy)})},_getItemsCount:function(tt){return tt.reduce((Be,mt)=>Be+(mt.items?this._getItemsCount(mt.items):1),0)},_initEditStrategy:function(){this._editStrategy=new(0,Ee.Z)(this)},_getSelectedItemIndices:function(tt){var Be=this,mt=[];return tt=tt||this._selection.getSelectedItemKeys(),Be._editStrategy.beginCache(),(0,h.S6)(tt,function(nn,ke){var $e=Be._getIndexByKey(ke);Pe($e)&&mt.push($e)}),Be._editStrategy.endCache(),mt},_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(tt){var Be,mt,nn,ke;switch(tt=tt||this._chooseSelectOption()){case"selectedIndex":Be=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,s.$K)(Be)?(this._setOptionWithoutOptionChange("selectedItems",[Be]),this._setOptionWithoutOptionChange("selectedItem",Be),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([Be]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(mt=(ke=this.option("selectedItems")||[]).length?this._editStrategy.getIndexByItemData(ke[0]):-1,this.option("selectionRequired")&&!Pe(mt))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",ke[0]),this._setOptionWithoutOptionChange("selectedIndex",mt),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(ke));break;case"selectedItem":if(Be=this.option("selectedItem"),mt=this._editStrategy.getIndexByItemData(Be),this.option("selectionRequired")&&!Pe(mt))return this._syncSelectionOptions("selectedIndex");(0,s.$K)(Be)?(this._setOptionWithoutOptionChange("selectedItems",[Be]),this._setOptionWithoutOptionChange("selectedIndex",mt),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([Be]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",-1));break;case"selectedItemKeys":if(nn=this.option("selectedItemKeys"),this.option("selectionRequired")){var $e=this._getIndexByKey(nn[0]);if(!Pe($e))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(nn)}return(new u.BH).resolve().promise()},_chooseSelectOption:function(){var tt="selectedIndex",Be=function(mt){var nn=this.option(mt);return(0,s.$K)(nn)&&nn.length||mt in this._userOptions}.bind(this);return Be("selectedItems")?tt="selectedItems":Be("selectedItem")?tt="selectedItem":Be("selectedItemKeys")&&(tt="selectedItemKeys"),tt},_compareKeys:function(tt,Be){if(tt.length!==Be.length)return!1;for(var mt=0;mt<Be.length;mt++)if(tt[mt]!==Be[mt])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var tt=this.option("selectedItems");if(tt.length>1||!tt.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var Be=this._selection.getSelectedItems(),mt=void 0===tt[0]?Be[0]:tt[0];return void 0===mt&&(mt=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&mt&&mt.items&&(mt.items=[mt.items[0]]),this._selection.setSelection(this._getKeysByItems([mt])),this._setOptionWithoutOptionChange("selectedItems",[mt]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(tt))}else{var nn=this._getKeysByItems(this.option("selectedItems")),ke=this._selection.getSelectedItemKeys();this._compareKeys(ke,nn)||this._selection.setSelection(nn)}return(new u.BH).resolve().promise()},_itemClickHandler:function(tt){var Be=(new u.BH).resolve(),mt=this.callBase;this._createAction(function(nn){var ke;Be=null!==(ke=this._itemSelectHandler(nn.event))&&void 0!==ke?ke:Be}.bind(this),{validatingTargetName:"itemElement"})({itemElement:(0,o.Z)(tt.currentTarget),event:tt}),Be.always(()=>{mt.apply(this,arguments)})},_itemSelectHandler:function(tt){var Be,mt;if(this.option("selectionByClick"))return this.isItemSelected(tt.currentTarget)?this.unselectItem(tt.currentTarget):mt=this.selectItem(tt.currentTarget),null===(Be=mt)||void 0===Be?void 0:Be.promise()},_selectedItemElement:function(tt){return this._itemElements().eq(tt)},_postprocessRenderItem:function(tt){if("none"!==this.option("selectionMode")){var Be=(0,o.Z)(tt.itemElement),mt=this._editStrategy.getNormalizedIndex(Be),nn=this._isItemSelected(mt);this._processSelectableItem(Be,nn)}},_processSelectableItem:function(tt,Be){tt.toggleClass(this._selectedItemClass(),Be),this._setAriaSelected(tt,String(Be))},_updateSelectedItems:function(tt){var Be=this,mt=tt.addedItemKeys,nn=tt.removedItemKeys;if(Be._rendered&&(mt.length||nn.length)){var ke=Be._selectionChangePromise;if(!Be._rendering){var me,$e=[],xe=[];Be._editStrategy.beginCache();for(var Te=0;Te<mt.length;Te++)me=Be._getIndexByKey(mt[Te]),$e.push(me),Be._addSelection(me);for(var Ye=0;Ye<nn.length;Ye++)me=Be._getIndexByKey(nn[Ye]),xe.push(me),Be._removeSelection(me);Be._editStrategy.endCache(),Be._updateSelection($e,xe)}(0,u.gx)(ke).done(function(){Be._fireSelectionChangeEvent(tt.addedItems,tt.removedItems)})}},_fireSelectionChangeEvent:function(tt,Be){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:tt,removedItems:Be})},_updateSelection:C.ZT,_setAriaSelected:function(tt,Be){this.setAria("selected",Be,tt)},_removeSelection:function(tt){var Be=this._editStrategy.getItemElement(tt);Pe(tt)&&(this._processSelectableItem(Be,!1),c.Z.triggerHandler(Be,"stateChanged",!1))},_addSelection:function(tt){var Be=this._editStrategy.getItemElement(tt);Pe(tt)&&(this._processSelectableItem(Be,!0),c.Z.triggerHandler(Be,"stateChanged",!0))},_isItemSelected:function(tt){var Be=this._getKeyByIndex(tt);return this._selection.isItemSelected(Be,{checkPending:!0})},_optionChanged:function(tt){switch(tt.name){case"selectionMode":this._invalidate();break;case"dataSource":(!tt.value||Array.isArray(tt.value)&&!tt.value.length)&&this.option("selectedItemKeys",[]),this.callBase(tt);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(tt.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(tt)}},_clearSelectedItems:function(){this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(tt){if(tt.data(oe))return(new u.BH).resolve().promise();tt.data(oe,!0);var Be=new u.BH,mt={cancel:!1},nn=this._itemEventHandler(tt,"onItemDeleting",mt,{excludeValidators:["disabled","readOnly"]});return(0,u.gx)(nn).always(function(ke){var $e=!nn,me=!$e&&"resolved"===nn.state(),xe=!!arguments.length,Te=$e||me&&!xe||me&&ke;(0,u.gx)((0,u.p4)(mt.cancel)).always(function(){tt.data(oe,!1)}).done(function(Ye){Te&&!Ye?Be.resolve():Be.reject()}).fail(Be.reject)}.bind(this)),Be.promise()},_deleteItemFromDS:function(tt){var Be=this._dataController,mt=new u.BH,nn=this.option("disabled"),ke=Be.store();if(!ke)return(new u.BH).resolve().promise();if(!ke.remove)throw pe.Z.Error("E1011");return this.option("disabled",!0),ke.remove(Be.keyOf(this._getItemData(tt))).done(function($e){void 0!==$e?mt.resolve():mt.reject()}).fail(function(){mt.reject()}),mt.always(function(){this.option("disabled",nn)}.bind(this)),mt},_tryRefreshLastPage:function(){var tt=new u.BH;return this._isLastPage()||this.option("grouped")?tt.resolve():this._refreshLastPage().done(function(){tt.resolve()}),tt.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataController.load()},_updateSelectionAfterDelete:function(tt){var Be=this._getKeyByIndex(tt);this._selection.deselect([Be])},_updateIndicesAfterIndex:function(tt){for(var Be=this._itemElements(),mt=tt+1;mt<Be.length;mt++)(0,o.Z)(Be[mt]).data(this._itemIndexKey(),mt-1)},_simulateOptionChange:function(tt){var Be=this.option(tt);Be instanceof ae.o||this._optionChangedAction({name:tt,fullName:tt,value:Be})},isItemSelected:function(tt){return this._isItemSelected(this._editStrategy.getNormalizedIndex(tt))},selectItem:function(tt){if("none"!==this.option("selectionMode")){var Be=this._editStrategy.getNormalizedIndex(tt);if(Pe(Be)){var mt=this._getKeyByIndex(Be);if(!this._selection.isItemSelected(mt)){if("single"===this.option("selectionMode"))return this._selection.setSelection([mt]);var nn=this.option("selectedItemKeys")||[];return this._selection.setSelection([...nn,mt],[mt])}}}},unselectItem:function(tt){var Be=this._editStrategy.getNormalizedIndex(tt);if(Pe(Be)){var mt=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&mt.length<=1)){var nn=this._getKeyByIndex(Be);this._selection.isItemSelected(nn,{checkPending:!0})&&this._selection.deselect([nn])}}},_deleteItemElementByIndex:function(tt){this._updateSelectionAfterDelete(tt),this._updateIndicesAfterIndex(tt),this._editStrategy.deleteItemAtIndex(tt)},_afterItemElementDeleted:function(tt,Be){var mt=this._dataController.getDataSource()?"dataSource":"items";this._simulateOptionChange(mt),this._itemEventHandler(tt,"onItemDeleted",Be,{beforeExecute:function(){tt.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem:function(tt){var Be=this,mt=new u.BH,nn=this._editStrategy.getItemElement(tt),ke=this._editStrategy.getNormalizedIndex(tt),$e=this._itemResponseWaitClass();return Pe(ke)?this._waitDeletingPrepare(nn).done(function(){nn.addClass($e);var me=Be._extendActionArgs(nn);Be._deleteItemFromDS(nn).done(function(){Be._deleteItemElementByIndex(ke),Be._afterItemElementDeleted(nn,me),Be._tryRefreshLastPage().done(function(){mt.resolveWith(Be)})}).fail(function(){nn.removeClass($e),mt.rejectWith(Be)})}).fail(function(){mt.rejectWith(Be)}):mt.rejectWith(Be),mt.promise()},reorderItem:function(tt,Be){var mt=new u.BH,nn=this,ke=this._editStrategy,$e=ke.getItemElement(tt),me=ke.getItemElement(Be),xe=ke.getNormalizedIndex(tt),Te=ke.getNormalizedIndex(Be),Ye=this._dataController.getDataSource()?"dataSource":"items";return Pe(xe)&&Pe(Te)&&xe!==Te?mt.resolveWith(this):mt.rejectWith(this),mt.promise().done(function(){me[ke.itemPlacementFunc(xe,Te)]($e),ke.moveItemAtIndexToIndex(xe,Te),this._updateIndicesAfterIndex(xe),nn.option("selectedItems",nn._getItemsByKeys(nn._selection.getSelectedItemKeys(),nn._selection.getSelectedItems())),"items"===Ye&&nn._simulateOptionChange(Ye),nn._itemEventHandler($e,"onItemReordered",{fromIndex:ke.getIndex(xe),toIndex:ke.getIndex(Te)},{excludeValidators:["disabled","readOnly"]})})}})},5172:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>d});var o=l(9904),c=l(5031),I=l(7674),C=l(9897),f=l(1828),a=c.Z.abstract;const d=c.Z.inherit({ctor:function(h){this._collectionWidget=h},getIndexByItemData:a,getItemDataByIndex:a,getKeysByItems:a,getItemsByKeys:a,itemsGetter:a,getKeyByIndex:function(h){var g=this._denormalizeItemIndex(h);return this.getKeysByItems([this.getItemDataByIndex(g)])[0]},_equalKeys:function(h,g){return this._collectionWidget._isKeySpecified()?(0,I.bY)(h,g):h===g},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:a,getNormalizedIndex:function(h){return this._isNormalizedItemIndex(h)?h:this._isItemIndex(h)?this._normalizeItemIndex(h):this._isNode(h)?this._getNormalizedItemIndex(h):this._normalizeItemIndex(this.getIndexByItemData(h))},getIndex:function(h){return this._isNormalizedItemIndex(h)?this._denormalizeItemIndex(h):this._isItemIndex(h)?h:this._isNode(h)?this._denormalizeItemIndex(this._getNormalizedItemIndex(h)):this.getIndexByItemData(h)},getItemElement:function(h){if(this._isNormalizedItemIndex(h))return this._getItemByNormalizedIndex(h);if(this._isItemIndex(h))return this._getItemByNormalizedIndex(this._normalizeItemIndex(h));if(this._isNode(h))return(0,o.Z)(h);var g=this._normalizeItemIndex(this.getIndexByItemData(h));return this._getItemByNormalizedIndex(g)},_isNode:h=>C.Z.isNode(h&&(0,f.ZU)(h)?h.get(0):h),deleteItemAtIndex:a,itemPlacementFunc:function(h,g){return this._itemsFromSameParent(h,g)&&h<g?"after":"before"},moveItemAtIndexToIndex:a,_isNormalizedItemIndex:function(h){return"number"==typeof h&&Math.round(h)===h},_isItemIndex:a,_getNormalizedItemIndex:a,_normalizeItemIndex:a,_denormalizeItemIndex:a,_getItemByNormalizedIndex:a,_itemsFromSameParent:a}).inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(h){var g=this._collectionWidget.keyOf.bind(this._collectionWidget);return g?this.getIndexByKey(g(h)):this._getPlainItems().indexOf(h)},getItemDataByIndex:function(h){return this._getPlainItems()[h]},deleteItemAtIndex:function(h){this._getPlainItems().splice(h,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(h){var g=this._collectionWidget.keyOf.bind(this._collectionWidget),x=h;if(g){x=[];for(var b=0;b<h.length;b++)x.push(g(h[b]))}return x},getIndexByKey:function(h){var g=this._cache,x=g&&g.keys||this.getKeysByItems(this._getPlainItems());if(g&&!g.keys&&(g.keys=x),"object"!=typeof h)return x.indexOf(h);for(var b=0,y=x.length;b<y;b++)if(this._equalKeys(h,x[b]))return b;return-1},getItemsByKeys:function(h,g){return(g||h).slice()},moveItemAtIndexToIndex:function(h,g){var x=this._getPlainItems(),b=x[h];x.splice(h,1),x.splice(g,0,b)},_isItemIndex:function(h){return"number"==typeof h&&Math.round(h)===h},_getNormalizedItemIndex:function(h){return this._collectionWidget._itemElements().index(h)},_normalizeItemIndex:function(h){return h},_denormalizeItemIndex:function(h){return h},_getItemByNormalizedIndex:function(h){return h>-1?this._collectionWidget._itemElements().eq(h):null},_itemsFromSameParent:function(){return!0}})},5286:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>g});var o=l(9904),c=l(7307),I=l(5873),C=l(2718),f=l(1771),a=l(2701),p=l(4270),s=l(31),u=l(9897),d=l(7674),h="__dx_key__";const g=c.Z.inherit({_getDefaultOptions:function(){return(0,I.l)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var x;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=b=>{this._dataController.getDataSource()&&!this._dataController.isLoaded()&&(this._correctionIndex=0),this._correctionIndex&&b.storeLoadOptions&&(b.storeLoadOptions.skip+=this._correctionIndex)},null===(x=this._dataController)||void 0===x||x.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(x){var b=(0,o.Z)(),y=this.key();return this.itemElements().each((E,S)=>{var O=(0,o.Z)(S),w=this._getItemData(O);if(y?(0,a.OI)(y,this.keyOf(w),x):this._isItemEquals(w,x))return b=O,!1}),b},_dataSourceChangedHandler:function(x,b){null!=b&&b.changes?this._modifyByChanges(b.changes):(this.callBase(x,b),this._refreshItemsCache())},_isItemEquals:function(x,b){x&&x[h]&&(x=x.data);try{return JSON.stringify(x)===JSON.stringify(b)}catch{return x===b}},_isItemStrictEquals:function(x,b){return this._isItemEquals(x,b)},_shouldAddNewGroup:function(x,b){var y=!1;return this.option("grouped")&&(x.length||(y=!0),(0,C.S6)(x,(E,S)=>{"insert"===S.type&&(y=!0,(0,C.S6)(b,(O,w)=>{if(void 0!==S.data.key&&S.data.key===w.key)return y=!1,!1}))})),y},_partialRefresh:function(){if(this.option("repaintChangesOnly")){var x=(0,s.h)(this._itemsCache,this._editStrategy.itemsGetter(),b=>b&&void 0!==b[h]?b[h]:this.keyOf(b),this._isItemStrictEquals.bind(this));if(x&&this._itemsCache.length&&!this._shouldAddNewGroup(x,this._itemsCache))return this._modifyByChanges(x,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var x=this._editStrategy.itemsGetter();try{this._itemsCache=(0,I.l)(!0,[],x),this.key()||(this._itemsCache=this._itemsCache.map((b,y)=>({[h]:x[y],data:b})))}catch{this._itemsCache=(0,I.l)([],x)}}},_dispose:function(){this._dataController.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(x,b,y,E){if(E)this._renderItem(y.index,y.data,null,this._findItemElementByKey(y.key));else{var S=b[(0,f.qk)(x,b,y.key)];S&&(0,f.Vx)(x,b,y.key,y.data).done(()=>{this._renderItem(b.indexOf(S),S,null,this._findItemElementByKey(y.key))})}},_insertByChange:function(x,b,y,E){(0,p.gx)(E||(0,f.$T)(x,b,y.data,y.index)).done(()=>{var S;this._beforeItemElementInserted(y);var O=this._getItemContainer(y.data);this._renderItem(null!==(S=y.index)&&void 0!==S?S:b.length,y.data,O),this._afterItemElementInserted(),this._correctionIndex++})},_getItemContainer:function(x){return this._itemContainer()},_updateSelectionAfterRemoveByChange:function(x){var b=this.option("selectedIndex");b>x?this.option("selectedIndex",b-1):b===x&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(x){var b=this.option("selectedIndex");x.index<=b&&this.option("selectedIndex",b+1)},_afterItemElementInserted:d.ZT,_removeByChange:function(x,b,y,E){var S=E?y.index:(0,f.qk)(x,b,y.key);if(E?y.oldItem:b[S]){var w=this._findItemElementByKey(y.key),T=this._extendActionArgs(w);this._waitDeletingPrepare(w).done(()=>{E?(this._updateIndicesAfterIndex(S-1),this._afterItemElementDeleted(w,T),this._updateSelectionAfterRemoveByChange(S)):(this._deleteItemElementByIndex(S),this._afterItemElementDeleted(w,T))}),this._correctionIndex--}},_modifyByChanges:function(x,b){var y=this._editStrategy.itemsGetter(),E={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},S=this._dataController,O=S.paginate(),w=S.group();(O||w)&&(x=x.filter(T=>"insert"!==T.type||void 0!==T.index)),x.forEach(T=>this["_".concat(T.type,"ByChange")](E,y,T,b)),this._renderedItemsCount=y.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(x,b,y){var E=x.children(this._itemSelector()).get(y);u.Z.insertElement(x.get(0),b.get(0),E)},_optionChanged:function(x){switch(x.name){case"items":this._partialRefresh(x.value)||this.callBase(x);break;case"dataSource":(!this.option("repaintChangesOnly")||!x.value)&&this.option("items",[]),this.callBase(x);break;case"repaintChangesOnly":break;default:this.callBase(x)}}})},7565:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>P});var o=l(9904),c=l(913),I=l(3058),C=l(7014),f=l(5873),a=l(8506),p=l(4694),s="dx-colorbox",u=s+"-input",d=u+"-container",h=s+"-color-result-preview",g=s+"-color-is-not-defined",x=s+"-overlay",w=C.Z.prototype,T={makeTransparentBackground:w._makeTransparentBackground.bind(w),makeRgba:w._makeRgba.bind(w)},k=p.Z.inherit({_supportedKeys:function(){var B=function(W){if(W.stopPropagation(),this.option("opened"))return W.preventDefault(),!0};return(0,f.l)(this.callBase(),{tab:function(W){if(this.option("opened")){var N=W.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();N&&(c.Z.trigger(N,"focus"),N.select()),W.preventDefault()}},enter:this._enterKeyHandler,leftArrow:B,rightArrow:B,upArrow:function(W){return this.option("opened")?!W.altKey||(this.close(),!1):(W.preventDefault(),!1)},downArrow:function(W){return this.option("opened")||W.altKey?!(!this.option("opened")&&W.altKey&&(this._validatedOpening(),1)):(W.preventDefault(),!1)}})},_getDefaultOptions:function(){return(0,f.l)(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(0,f.l)(this.callBase(),{width:""})},_contentReadyHandler:function(){this._createColorView(),this._addPopupBottomClasses()},_addPopupBottomClasses:function(){var B=this._popup.bottomToolbar();B&&(B.addClass("dx-colorview-container-cell").addClass("dx-colorview-button-cell").find(".dx-toolbar-items-container").addClass("dx-colorview-buttons-container"),B.find(".dx-popup-done").addClass("dx-colorview-apply-button"),B.find(".dx-popup-cancel").addClass("dx-colorview-cancel-button"))},_createColorView:function(){this._popup.$overlayContent().addClass(x);var B=(0,o.Z)("<div>").appendTo(this._popup.$content());this._colorView=this._createComponent(B,C.Z,this._colorViewConfig()),this._colorView.registerKeyHandler("escape",this._escapeHandler.bind(this)),c.Z.on(B,"focus",function(){this.focus()}.bind(this))},_escapeHandler:function(){this.close(),this.focus()},_getFirstPopupElement:function(){return(0,o.Z)(this._colorView._rgbInputs[0].element()).find("input")},_applyNewColor:function(B){this.option("value",B),B&&T.makeTransparentBackground(this._$colorResultPreview,B),this._colorViewEnterKeyPressed&&(this.close(),this._colorViewEnterKeyPressed=!1)},_colorViewConfig:function(){var B=this;return{value:B.option("value"),matchValue:B.option("value"),editAlphaChannel:B.option("editAlphaChannel"),applyValueMode:B.option("applyValueMode"),focusStateEnabled:B.option("focusStateEnabled"),stylingMode:this.option("stylingMode"),onEnterKeyPressed:function(W){var{event:N}=W;B._colorViewEnterKeyPressed=!0,B._colorView.option("value")!==B.option("value")&&(B._saveValueChangeEvent(N),B._applyNewColor(B._colorView.option("value")),B.close())},onValueChanged:function(W){var{event:N,value:V,previousValue:U}=W,K="instantly"===B.option("applyValueMode");T.makeRgba(V)===U||!K&&!B._colorViewEnterKeyPressed||B._shouldSaveEmptyValue||(N&&B._saveValueChangeEvent(N),B._applyNewColor(V))}}},_enterKeyHandler:function(B){var W=this._input().val(),{value:N,editAlphaChannel:V}=this.option(),U=N&&V?T.makeRgba(N):N;if(!W)return!1;if(!new I.Z(W).colorIsInvalid){if(W!==U&&(this._applyColorFromInput(W),this._saveValueChangeEvent(B),this.option("value",this.option("editAlphaChannel")?T.makeRgba(W):W)),this._colorView){var Y=this._colorView.option("value");N!==Y&&(this._saveValueChangeEvent(B),this.option("value",Y))}return this.close(),!1}this._input().val(U)},_applyButtonHandler:function(B){this._saveValueChangeEvent(B.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(s),this.callBase()},_renderInput:function(){this.callBase(),this._input().addClass(u),this._renderColorPreview()},_renderColorPreview:function(){this.$element().wrapInner((0,o.Z)("<div>").addClass(d)),this._$colorBoxInputContainer=this.$element().children().eq(0),this._$colorResultPreview=(0,o.Z)("<div>").addClass(h).appendTo(this._$textEditorInputContainer),this.option("value")?T.makeTransparentBackground(this._$colorResultPreview,this.option("value")):this._$colorBoxInputContainer.addClass(g)},_renderValue:function(){var{value:B,editAlphaChannel:W}=this.option(),V=B&&W?T.makeRgba(B):B;return this.option("text",V),this.callBase()},_resetInputValue:function(){var B=this._input(),W=this.option("value");B.val(W),this._updateColorViewValue(W)},_updateColorViewValue:function(B){this._colorView&&this._colorView.option({value:B,matchValue:B})},_valueChangeEventHandler:function(B){var W=this._input().val();W&&(W=this._applyColorFromInput(W),this._updateColorViewValue(W)),this.callBase(B,W)},_applyColorFromInput:function(B){return new I.Z(B).colorIsInvalid&&(this._resetInputValue(),B=this.option("value")),B},_clean:function(){this.callBase(),delete this._shouldSaveEmptyValue},_optionChanged:function(B){var W=B.value,N=B.name;switch(N){case"value":this._$colorBoxInputContainer.toggleClass(g,!W),W?T.makeTransparentBackground(this._$colorResultPreview,W):this._$colorResultPreview.removeAttr("style"),null===W&&(this._shouldSaveEmptyValue=!0),this._updateColorViewValue(W),this._shouldSaveEmptyValue=!1,this.callBase(B);break;case"applyButtonText":case"cancelButtonText":this.callBase(B),this._popup&&this._addPopupBottomClasses();break;case"editAlphaChannel":case"keyStep":this._colorView&&this._colorView.option(N,W);break;default:this.callBase(B)}}});(0,a.Z)("dxColorBox",k);const P=k},7014:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>de});var o=l(1805),c=l(9904),I=l(913),C=l(6961),f=l(5873),a=l(3058),p=l(9009),s=l(2941),u=l(8506),d=l(1031),h=l(1946),g=l(3447),x=l(130),b=l(8225),y=l(227),O="dx-colorview-container-row",P="dx-colorview-palette-gradient",B="dx-colorview-palette-gradient-white",W="dx-colorview-palette-gradient-black",Fe="dx-colorview-color-preview",fe="dx-colorview-color-preview-color-current",_e="dx-colorview-color-preview-color-new",ie=d.Z.inherit({_supportedKeys:function(){var le=this.option("rtlEnabled"),pe=this,Ee=function(tt){var Be=100/pe._paletteWidth;return tt.shiftKey&&(Be*=pe.option("keyStep")),Be=Be>1?Be:1,Math.round(Be)},ae=function(tt){var Be=pe._currentColor.hsv.s+tt;Be>100?Be=100:Be<0&&(Be=0),pe._currentColor.hsv.s=Be,oe()},te=function(tt){var Be=100/pe._paletteHeight;return tt.shiftKey&&(Be*=pe.option("keyStep")),Be=Be>1?Be:1,Math.round(Be)},re=function(tt){var Be=pe._currentColor.hsv.v+tt;Be>100?Be=100:Be<0&&(Be=0),pe._currentColor.hsv.v=Be,oe()};function oe(){pe._placePaletteHandle(),pe._updateColorFromHsv(pe._currentColor.hsv.h,pe._currentColor.hsv.s,pe._currentColor.hsv.v)}var ye=function(tt){var Be=360/(pe._hueScaleWrapperHeight-pe._hueScaleHandleHeight);return tt.shiftKey&&(Be*=pe.option("keyStep")),Be>1?Be:1},Pe=function(tt){pe._currentColor.hsv.h+=tt,pe._placeHueScaleHandle();var Be=(0,C.jt)(pe._$hueScaleHandle);pe._updateColorHue(Be.top+pe._hueScaleHandleHeight/2)},Ne=function(tt){var Be=1/pe._alphaChannelScaleWorkWidth;return tt.shiftKey&&(Be*=pe.option("keyStep")),Be=Be>.01?Be:.01,le?-Be:Be},ft=function(tt){pe._currentColor.a+=tt,pe._placeAlphaChannelHandle();var Be=(0,C.jt)(pe._$alphaChannelHandle);pe._calculateColorTransparencyByScaleWidth(Be.left+pe._alphaChannelHandleWidth/2)};return(0,f.l)(this.callBase(),{upArrow:function(tt){tt.preventDefault(),tt.stopPropagation(),(0,b.j1)(tt)?this._currentColor.hsv.h<=360&&!this._isTopColorHue&&(this._saveValueChangeEvent(tt),Pe(ye(tt))):this._currentColor.hsv.v<100&&(this._saveValueChangeEvent(tt),re(te(tt)))},downArrow:function(tt){tt.preventDefault(),tt.stopPropagation(),(0,b.j1)(tt)?this._currentColor.hsv.h>=0&&(this._isTopColorHue&&(this._currentColor.hsv.h=360),this._saveValueChangeEvent(tt),Pe(-ye(tt))):this._currentColor.hsv.v>0&&(this._saveValueChangeEvent(tt),re(-te(tt)))},rightArrow:function(tt){tt.preventDefault(),tt.stopPropagation(),(0,b.j1)(tt)?(le?this._currentColor.a<1:this._currentColor.a>0&&this.option("editAlphaChannel"))&&(this._saveValueChangeEvent(tt),ft(-Ne(tt))):this._currentColor.hsv.s<100&&(this._saveValueChangeEvent(tt),ae(Ee(tt)))},leftArrow:function(tt){tt.preventDefault(),tt.stopPropagation(),(0,b.j1)(tt)?(le?this._currentColor.a>0:this._currentColor.a<1&&this.option("editAlphaChannel"))&&(this._saveValueChangeEvent(tt),ft(Ne(tt))):this._currentColor.hsv.s>0&&(this._saveValueChangeEvent(tt),ae(-Ee(tt)))},enter:function(tt){this._fireEnterKeyPressed(tt)}})},_getDefaultOptions:function(){return(0,f.l)(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"===s.Z.real().deviceType&&!s.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initColorAndOpacity(),this._initEnterKeyPressedAction()},_initEnterKeyPressedAction:function(){this._onEnterKeyPressedAction=this._createActionByOption("onEnterKeyPressed")},_fireEnterKeyPressed:function(le){this._onEnterKeyPressedAction&&this._onEnterKeyPressedAction({event:le})},_initColorAndOpacity:function(){this._setCurrentColor(this.option("value"))},_setCurrentColor:function(le){var pe=new a.Z(le=le||"#000000");pe.colorIsInvalid?this.option("value",this._currentColor.baseColor):(!this._currentColor||this._makeRgba(this._currentColor)!==this._makeRgba(pe))&&(this._currentColor=pe,this._$currentColor&&this._makeTransparentBackground(this._$currentColor,pe))},_setBaseColor:function(le){var Ee=new a.Z(le||"#000000");Ee.colorIsInvalid||this._makeRgba(this.option("matchValue")!==this._makeRgba(Ee))&&this._$baseColor&&this._makeTransparentBackground(this._$baseColor,Ee)},_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(le,pe){pe instanceof a.Z||(pe=new a.Z(pe)),le.css("backgroundColor",this._makeRgba(pe))},_makeRgba:function(le){return le instanceof a.Z||(le=new a.Z(le)),"rgba("+[le.r,le.g,le.b,le.a].join(", ")+")"},_renderValue:function(){this.callBase(this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this.option("value"))},_renderColorPickerContainer:function(){var le=this.$element();this._$colorPickerContainer=(0,c.Z)("<div>").addClass("dx-colorview-container").appendTo(le),this._renderHtmlRows()},_renderHtmlRows:function(le){var pe=this._$colorPickerContainer.find("."+O),Ee=pe.length,te=Ee-(this.option("editAlphaChannel")?2:1);if(te>0&&pe.eq(-1).remove(),te<0){te=Math.abs(te);var oe,re=[];for(oe=0;oe<te;oe++)re.push((0,c.Z)("<div>").addClass(O));if(Ee)for(oe=0;oe<re.length;oe++)pe.eq(0).after(re[oe]);else this._$colorPickerContainer.append(re)}},_renderHtmlCellInsideRow:function(le,pe,Ee){return(0,c.Z)("<div>").addClass("dx-colorview-container-cell").addClass(Ee).appendTo(pe.find("."+O).eq(le))},_renderPalette:function(){var le=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-palette-cell"),pe=(0,c.Z)("<div>").addClass([P,B].join(" ")),Ee=(0,c.Z)("<div>").addClass([P,W].join(" "));this._$palette=(0,c.Z)("<div>").addClass("dx-colorview-palette").css("backgroundColor",this._currentColor.getPureColor().toHex()).appendTo(le),this._paletteHeight=(0,o.Cr)(this._$palette),this._paletteWidth=(0,o.dz)(this._$palette),this._renderPaletteHandle(),this._$palette.append([pe,Ee])},_renderPaletteHandle:function(){this._$paletteHandle=(0,c.Z)("<div>").addClass("dx-colorview-palette-handle").appendTo(this._$palette),this._createComponent(this._$paletteHandle,x.Z,{contentTemplate:null,boundary:this._$palette,allowMoveByClick:!0,boundOffset:function(){return-this._paletteHandleHeight/2}.bind(this),onDragMove:le=>{var{event:pe}=le,Ee=(0,C.jt)(this._$paletteHandle);this._updateByDrag=!0,this._saveValueChangeEvent(pe),this._updateColorFromHsv(this._currentColor.hsv.h,this._calculateColorSaturation(Ee),this._calculateColorValue(Ee))}}),this._paletteHandleWidth=(0,o.dz)(this._$paletteHandle),this._paletteHandleHeight=(0,o.Cr)(this._$paletteHandle),this._placePaletteHandle()},_placePaletteHandle:function(){(0,C.pB)(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(le){var pe=Math.floor(le.top+this._paletteHandleHeight/2);return 100-Math.round(100*pe/this._paletteHeight)},_calculateColorSaturation:function(le){var pe=Math.floor(le.left+this._paletteHandleWidth/2);return Math.round(100*pe/this._paletteWidth)},_updateColorFromHsv:function(le,pe,Ee){var ae=this._currentColor.a;this._currentColor=new a.Z("hsv("+[le,pe,Ee].join(",")+")"),this._currentColor.a=ae,this._updateColorParamsAndColorPreview(),this.applyColor()},_renderHueScale:function(){var le=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-hue-scale-cell");this._$hueScaleWrapper=(0,c.Z)("<div>").addClass("dx-colorview-hue-scale-wrapper").appendTo(le),this._$hueScale=(0,c.Z)("<div>").addClass("dx-colorview-hue-scale").appendTo(this._$hueScaleWrapper),this._hueScaleHeight=(0,o.Cr)(this._$hueScale),this._hueScaleWrapperHeight=(0,o.zp)(this._$hueScaleWrapper),this._renderHueScaleHandle()},_renderHueScaleHandle:function(){this._$hueScaleHandle=(0,c.Z)("<div>").addClass("dx-colorview-hue-scale-handle").appendTo(this._$hueScaleWrapper),this._createComponent(this._$hueScaleHandle,x.Z,{contentTemplate:null,boundary:this._$hueScaleWrapper,allowMoveByClick:!0,dragDirection:"vertical",onDragMove:le=>{var{event:pe}=le;this._updateByDrag=!0,this._saveValueChangeEvent(pe),this._updateColorHue((0,C.jt)(this._$hueScaleHandle).top+this._hueScaleHandleHeight/2)}}),this._hueScaleHandleHeight=(0,o.Cr)(this._$hueScaleHandle),this._placeHueScaleHandle()},_placeHueScaleHandle:function(){var le=this._hueScaleWrapperHeight,pe=this._hueScaleHandleHeight,Ee=(le-pe)*(360-this._currentColor.hsv.h)/360;le<Ee+pe&&(Ee=le-pe),Ee<0&&(Ee=0),(0,C.pB)(this._$hueScaleHandle,{top:Math.round(Ee)})},_updateColorHue:function(le){var pe=360-Math.round(360*(le-this._hueScaleHandleHeight/2)/(this._hueScaleWrapperHeight-this._hueScaleHandleHeight)),Ee=this._currentColor.hsv.s,ae=this._currentColor.hsv.v;this._isTopColorHue=!1,(pe=pe<0?0:pe)>=360&&(this._isTopColorHue=!0,pe=0),this._updateColorFromHsv(pe,Ee,ae),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex())},_renderControlsContainer:function(){var le=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer);this._$controlsContainer=(0,c.Z)("<div>").addClass("dx-colorview-controls-container").appendTo(le)},_renderControls:function(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview:function(){var le=(0,c.Z)("<div>").addClass("dx-colorview-color-preview-container").appendTo(this._$controlsContainer),pe=(0,c.Z)("<div>").addClass("dx-colorview-color-preview-container-inner").appendTo(le);this._$currentColor=(0,c.Z)("<div>").addClass([Fe,_e].join(" ")),this._$baseColor=(0,c.Z)("<div>").addClass([Fe,fe].join(" ")),this._makeTransparentBackground(this._$baseColor,this.option("matchValue")),this._makeTransparentBackground(this._$currentColor,this._currentColor),pe.append([this._$baseColor,this._$currentColor])},_renderAlphaChannelElements:function(){this.option("editAlphaChannel")&&(this._$colorPickerContainer.find("."+O).eq(1).addClass("dx-colorview-alpha-channel-row"),this._renderAlphaChannelScale(),this._renderAlphaChannelInput())},_renderRgbInputs:function(){this._rgbInputsWithLabels=[this._renderEditorWithLabel({editorType:h.Z,value:this._currentColor.r,onValueChanged:this._updateColor.bind(this,!1),labelText:"R",labelAriaText:p.Z.format("dxColorView-ariaRed"),labelClass:"dx-colorview-label-red"}),this._renderEditorWithLabel({editorType:h.Z,value:this._currentColor.g,onValueChanged:this._updateColor.bind(this,!1),labelText:"G",labelAriaText:p.Z.format("dxColorView-ariaGreen"),labelClass:"dx-colorview-label-green"}),this._renderEditorWithLabel({editorType:h.Z,value:this._currentColor.b,onValueChanged:this._updateColor.bind(this,!1),labelText:"B",labelAriaText:p.Z.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(le){var pe=(0,c.Z)("<div>"),Ee=(0,c.Z)("<label>").addClass(le.labelClass).text(le.labelText+":").append(pe);I.Z.off(Ee,y.u),I.Z.on(Ee,y.u,function(oe){oe.preventDefault()});var ae=le.editorType,te=(0,f.l)({value:le.value,onValueChanged:le.onValueChanged,onKeyboardHandled:oe=>this._keyboardHandler(oe)},{stylingMode:this.option("stylingMode")});return ae===h.Z&&(te.min=le.min||0,te.max=le.max||255,te.step=le.step||1),new ae(pe,te).registerKeyHandler("enter",function(oe){this._fireEnterKeyPressed(oe)}.bind(this)),this.setAria("label",le.labelAriaText,pe),Ee},hexInputOptions:function(){return{editorType:g.Z,value:this._currentColor.toHex().replace("#",""),onValueChanged:this._updateColor.bind(this,!0),labelClass:"dx-colorview-label-hex",labelText:"#",labelAriaText:p.Z.format("dxColorView-ariaHex")}},_renderHexInput:function(){this._hexInput=g.Z.getInstance(this._renderEditorWithLabel(this.hexInputOptions()).appendTo(this._$controlsContainer).find(".dx-textbox"))},_renderAlphaChannelScale:function(){var le=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer,"dx-colorview-alpha-channel-cell"),pe=(0,c.Z)("<div>").addClass("dx-colorview-alpha-channel-border").appendTo(le),Ee=(0,c.Z)("<div>").addClass("dx-colorview-alpha-channel-wrapper").appendTo(pe);this._$alphaChannelScale=(0,c.Z)("<div>").addClass("dx-colorview-alpha-channel-scale").appendTo(Ee),this._makeCSSLinearGradient(this._$alphaChannelScale),this._renderAlphaChannelHandle(le)},_makeCSSLinearGradient:function(le){var pe=this._currentColor,Ee=[pe.r,pe.g,pe.b].join(","),ae=pe.toHex().replace("#","");le.attr("style",function(te,re){var oe=this.option("rtlEnabled"),ye="rgba("+te+", "+(oe?"1":"0")+")",Pe="rgba("+te+", "+(oe?"0":"1")+")";return["background-image: -webkit-linear-gradient(180deg, "+ye+", "+Pe+")","background-image: -moz-linear-gradient(-90deg, "+ye+", "+Pe+")","background-image: -o-linear-gradient(-90deg, "+ye+", "+Pe+")","background-image: linear-gradient(-90deg, "+ye+", "+Pe+")"].join(";")}.call(this,Ee,ae))},_renderAlphaChannelInput:function(){var le=this,pe=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer);le._alphaChannelInput=this._renderEditorWithLabel({editorType:h.Z,value:this._currentColor.a,max:1,step:.1,onValueChanged:function(Ee){var ae=Ee.value;ae=le._currentColor.isValidAlpha(ae)?ae:le._currentColor.a,Ee.event&&le._saveValueChangeEvent(Ee.event),le._updateColorTransparency(ae),le._placeAlphaChannelHandle()},labelClass:"dx-colorview-alpha-channel-label",labelText:"Alpha",labelAriaText:p.Z.format("dxColorView-ariaAlpha")}).appendTo(pe).find(".dx-numberbox").dxNumberBox("instance")},_updateColorTransparency:function(le){this._currentColor.a=le,this.applyColor()},_renderAlphaChannelHandle:function(le){this._$alphaChannelHandle=(0,c.Z)("<div>").addClass("dx-colorview-alpha-channel-handle").appendTo(le),this._createComponent(this._$alphaChannelHandle,x.Z,{contentTemplate:null,boundary:le,allowMoveByClick:!0,dragDirection:"horizontal",onDragMove:pe=>{var{event:Ee}=pe;this._updateByDrag=!0;var te=(0,C.jt)(this._$alphaChannelHandle).left+this._alphaChannelHandleWidth/2;this._saveValueChangeEvent(Ee),this._calculateColorTransparencyByScaleWidth(te)}}),this._alphaChannelHandleWidth=(0,o.dz)(this._$alphaChannelHandle),this._alphaChannelScaleWorkWidth=(0,o.dz)(le)-this._alphaChannelHandleWidth,this._placeAlphaChannelHandle()},_calculateColorTransparencyByScaleWidth:function(le){var pe=(le-this._alphaChannelHandleWidth/2)/this._alphaChannelScaleWorkWidth,Ee=this.option("rtlEnabled");pe=Ee?pe:1-pe,le>=this._alphaChannelScaleWorkWidth+this._alphaChannelHandleWidth/2?pe=Ee?1:0:pe<1&&(pe=pe.toFixed(2));var ae=this._alphaChannelInput.option("value");pe=Math.max(pe,0),(pe=Math.min(pe,1))===ae?this._updateByDrag=!1:this._alphaChannelInput.option("value",pe)},_placeAlphaChannelHandle:function(){var le=this._alphaChannelScaleWorkWidth*(1-this._currentColor.a);le<0&&(le=0),this._alphaChannelScaleWorkWidth<le&&(le=this._alphaChannelScaleWorkWidth),(0,C.pB)(this._$alphaChannelHandle,{left:this.option("rtlEnabled")?this._alphaChannelScaleWorkWidth-le:le})},applyColor:function(){var le=this.option("value"),pe=this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this._currentColor.toHex();this._makeTransparentBackground(this._$currentColor,this._currentColor),pe===le?this._updateByDrag=!1:this.option("value",pe)},cancelColor:function(){this._initColorAndOpacity(),this._refreshMarkup()},_updateColor:function(le,pe){var Ee,ae;le?ae=this._validateHex("#"+this._hexInput.option("value")):(Ee=this._validateRgb(),this._alphaChannelInput?(Ee.push(this._alphaChannelInput.option("value")),ae="rgba("+Ee.join(", ")+")"):ae="rgb("+Ee.join(", ")+")"),this._suppressEditorsValueUpdating||(this._currentColor=new a.Z(ae),this._saveValueChangeEvent(pe.event),this.applyColor(),this._refreshMarkup())},_validateHex:function(le){return this._currentColor.isValidHex(le)?le:this._currentColor.toHex()},_validateRgb:function(){var le=this._rgbInputs[0].option("value"),pe=this._rgbInputs[1].option("value"),Ee=this._rgbInputs[2].option("value");return this._currentColor.isValidRGB(le,pe,Ee)||(le=this._currentColor.r,pe=this._currentColor.g,Ee=this._currentColor.b),[le,pe,Ee]},_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(le){var pe=le.value;switch(le.name){case"value":this._setCurrentColor(pe),this._updateByDrag||this._refreshMarkup(),this._updateByDrag=!1,this.callBase(le);break;case"matchValue":this._setBaseColor(pe);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(le)}}});(0,u.Z)("dxColorView",ie);const de=ie},1875:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>c});const c=l(7138).Z},7138:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>_e});var o=l(9904),c=l(9897),I=l(913),C=l(6492),f=l(8506),a=l(7674),p=l(1828),s=l(6520),u=l(6881),d=l(2718),h=l(5873),g=l(4514),x=l(3553),b=l(5791),y=l(2941),E=l(8225),S=l(3576),O=l(7543),w=l(4270),T=l(2480),k=l(5180),R="dx-menu",P=R+"-item",B=P+"-expanded",N=R+"-items-container",V=P+"-wrapper",U="dx-submenu",ee="dx-state-hover",Z="down",De=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],Fe=["up",Z,"first","last"],Ae="dxcontextmenu",ne=(0,g.Jj)();class fe extends O.Z{getShowEvent(de){var le=null;return(0,p.Kn)(de)?null!==de.name&&(le=de.name||Ae):le=de,le}getShowDelay(de){return(0,p.Kn)(de)&&de.delay}_getDefaultOptions(){return(0,h.l)(super._getDefaultOptions(),{showEvent:Ae,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:()=>!(0,g.Ym)(),options:{animation:null}}])}_setDeprecatedOptions(){super._setDeprecatedOptions(),(0,h.l)(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.2",alias:"hideOnOutsideClick"}})}_initActions(){this._actions={},(0,d.S6)(De,(de,le)=>{this._actions[le]=this._createActionByOption(le)||a.ZT})}_setOptionsByReference(){super._setOptionsByReference(),(0,h.l)(this._optionsByReference,{animation:!0,selectedItem:!0})}_focusInHandler(){}_itemContainer(){return this._overlay?this._overlay.$content():(0,o.Z)()}_eventBindingTarget(){return this._itemContainer()}itemsContainer(){return this._overlay?this._overlay.$content():void 0}_supportedKeys(){return(0,h.l)(super._supportedKeys(),{space:()=>{var de=(0,o.Z)(this.option("focusedElement"));this.hide(),de.length&&this._isSelectionEnabled()&&this.selectItem(de[0])},escape:this.hide})}_getActiveItem(){var de=this._getAvailableItems(),le=de.filter(".".concat("dx-state-focused")),pe=de.filter(".".concat(ee));return pe.closest(".".concat(N)).find(".".concat(P)).index(le)>=0?le:pe.length?pe:super._getActiveItem()}_moveFocus(de){var re,le=this._getItemsByLocation(de),pe=this._getActiveItem(!0),Ee=this.itemsContainer().find(".".concat(ee)),te=!(!(0,o.Z)(this.option("focusedElement")).length&&!Ee.length);switch(de){case"up":re=te?this._prevItem(le):pe,this._setFocusedElement(re),pe.is(le.first())&&this._actions.onLeftFirstItem(pe);break;case Z:re=te?this._nextItem(le):pe,this._setFocusedElement(re),pe.is(le.last())&&this._actions.onLeftLastItem(pe);break;case"right":re=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(le,de),this._setFocusedElement(re);break;case"left":re=this.option("rtlEnabled")?this._expandSubmenuHandler(le,de):this._hideSubmenuHandler(),this._setFocusedElement(re);break;case"first":re=le.first(),this._setFocusedElement(re);break;case"last":re=le.last(),this._setFocusedElement(re);break;default:return super._moveFocus(de)}}_setFocusedElement(de){de&&0!==de.length&&this.option("focusedElement",(0,u.u)(de))}_getItemsByLocation(de){var pe,le=this._getActiveItem(!0);return Fe.includes(de)&&(pe=le.closest(".".concat(N)).children().children()),this._getAvailableItems(pe)}_getAriaTarget(){return this.$element()}_refreshActiveDescendant(){if((0,p.$K)(this._overlay)){var de=this._overlay.$content();super._refreshActiveDescendant(de)}}_hideSubmenuHandler(){var de=this._getActiveItem(!0),le=de.parents(".".concat(B)).first();return le.length?(this._hideSubmenusOnSameLevel(le),this._hideSubmenu(de.closest(".".concat(U))),le):(this._actions.onCloseRootSubmenu(de),de)}_expandSubmenuHandler(de,le){var pe=this._getActiveItem(!0),Ee=this._getItemData(pe),ae=this._dataAdapter.getNodeByItem(Ee),te=this._hasSubmenu(ae),re=pe.children(".".concat(U));if(te&&!pe.hasClass("dx-state-disabled"))return(!re.length||"hidden"===re.css("visibility"))&&this._showSubmenu(pe),this._nextItem(this._getItemsByLocation(le));this._actions.onExpandLastSubmenu(pe)}_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 de=this._getOverlayOptions();this._overlay=this._createComponent((0,o.Z)("<div>").appendTo(this._$element),S.Z,de);var le=this._overlay.$content();le.addClass("dx-context-menu"),this._addCustomCssClass(le),this._addPlatformDependentClass(le),this._attachContextMenuEvent()}}preventShowingDefaultContextMenuAboveOverlay(){var de=this._itemContainer(),le=(0,E.V4)(T.u,this.NAME);I.Z.off(de,le,".".concat(U)),I.Z.on(de,le,".".concat(U),(pe=>{pe.stopPropagation(),pe.preventDefault(),I.Z.off(de,le,".".concat(U))}).bind(this))}_itemContextMenuHandler(de){super._itemContextMenuHandler(de),de.stopPropagation()}_addPlatformDependentClass(de){y.Z.current().phone&&de.addClass("dx-menu-phone-overlay")}_detachShowContextMenuEvents(de){var le=this.getShowEvent(this.option("showEvent"));if(le){var pe=(0,E.V4)(le,this.NAME);this._showContextMenuEventHandler?I.Z.off(c.Z.getDocument(),pe,de,this._showContextMenuEventHandler):I.Z.off((0,o.Z)(de),pe)}}_attachShowContextMenuEvents(){var de=this._getTarget(),le=this.getShowEvent(this.option("showEvent"));if(le){var pe=(0,E.V4)(le,this.NAME),Ee=this._createAction(te=>{var re=this.getShowDelay(this.option("showEvent"));re?setTimeout(()=>this._show(te.event),re):this._show(te.event)},{validatingTargetName:"target"}),ae=te=>Ee({event:te,target:(0,o.Z)(te.currentTarget)});Ee=this._createAction(Ee),(0,p.ZU)(de)||de.nodeType||(0,p.FJ)(de)?(this._showContextMenuEventHandler=void 0,I.Z.on(de,pe,ae)):(this._showContextMenuEventHandler=ae,I.Z.on(c.Z.getDocument(),pe,de,this._showContextMenuEventHandler))}}_hoverEndHandler(de){super._hoverEndHandler(de),de.stopPropagation()}_renderDimensions(){}_renderContainer(de,le){var pe=le||this._itemContainer();(de=(0,o.Z)("<div>")).appendTo(pe).addClass(U).css("visibility",le?"hidden":"visible"),de.parent().hasClass("dx-overlay-content")||this._addCustomCssClass(de);var Ee=super._renderContainer(de);return le?Ee:this.option("width")?Ee.css("minWidth",this.option("width")):this.option("height")?Ee.css("minHeight",this.option("height")):Ee}_renderSubmenuItems(de,le){this._renderItems(this._getChildNodes(de),le),this._actions.onSubmenuCreated({itemElement:(0,u.u)(le),itemData:de.internalFields.item,submenuElement:(0,u.u)(le.children(".".concat(U)))})}_getOverlayOptions(){var de=this.option("position");return{focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),innerOverlay:!0,hideOnOutsideClick:pe=>this._hideOnOutsideClickHandler(pe),propagateOutsideClick:!0,hideOnParentScroll:!0,deferRendering:!1,position:{at:de.at,my:de.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:ne}}_overlayShownActionHandler(de){this._actions.onShown(de)}_overlayHidingActionHandler(de){this._actions.onHiding(de),de.cancel||(this._hideAllShownSubmenus(),this._setOptionWithoutOptionChange("visible",!1))}_overlayHiddenActionHandler(de){this._actions.onHidden(de)}_shouldHideOnOutsideClick(de){var{closeOnOutsideClick:le,hideOnOutsideClick:pe}=this.option();return(0,p.mf)(pe)?pe(de):(0,p.mf)(le)?le(de):pe||le}_hideOnOutsideClickHandler(de){if(!this._shouldHideOnOutsideClick(de))return!1;if(c.Z.isDocument(de.target))return!0;var le=this._getActiveItemsContainer(de.target),pe=this._getItemsContainers(),Ee=this._searchActiveItem(de.target),ae=this.$element().parents(".".concat(P)),te=Ee[0]===ae[0]&&Ee.length&&ae.length;return!(this._isIncludeOverlay(le,pe)&&Ee.length)&&!te||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(Ee),!1)}_getActiveItemsContainer(de){return(0,o.Z)(de).closest(".".concat(N))}_getItemsContainers(){return this._overlay.$content().find(".".concat(N))}_searchActiveItem(de){return(0,o.Z)(de).closest(".".concat(P)).eq(0)}_isIncludeOverlay(de,le){var pe=!1;return(0,d.S6)(le,(Ee,ae)=>{de.is(ae)&&!pe&&(pe=!0)}),pe}_hideAllShownChildSubmenus(de){var le=de.find(".".concat(U)),pe=(0,h.l)([],this._shownSubmenus);le.length>0&&(0,d.S6)(pe,(Ee,ae)=>{var te=this._searchActiveItem(ae.context).parent();te.parent().is(de.parent().parent())&&!te.is(de.parent())&&this._hideSubmenu(ae)})}_showSubmenu(de){var le=this._dataAdapter.getNodeByItem(this._getItemData(de));if(this._hideSubmenusOnSameLevel(de),this._hasSubmenu(le)){var pe=de.children(".".concat(U)),Ee=pe.length;super._showSubmenu(de),Ee||this._renderSubmenuItems(le,de),this._isSubmenuVisible(pe)||this._drawSubmenu(de)}}_hideSubmenusOnSameLevel(de){var le=de.parent(".".concat(V)).siblings().find(".".concat(B));le.length&&(le.removeClass(B),this._hideSubmenu(le.find(".".concat(U))))}_hideSubmenuGroup(de){this._isSubmenuVisible(de)&&this._hideSubmenuCore(de)}_isSubmenuVisible(de){return"visible"===de.css("visibility")}_drawSubmenu(de){var le=this.option("animation")?this.option("animation").show:{},pe=de.children(".".concat(U)),Ee=this._getSubmenuPosition(de);this._overlay&&this._overlay.option("visible")&&((0,p.$K)(this._shownSubmenus)||(this._shownSubmenus=[]),this._shownSubmenus.includes(pe)||this._shownSubmenus.push(pe),le&&x.Z.stop(pe),b.Z.setup(pe,Ee),le&&((0,p.PO)(le.to)&&(le.to.position=Ee),this._animate(pe,le)),pe.css("visibility","visible"))}_animate(de,le){x.Z.animate(de,le)}_getSubmenuPosition(de){var le=this.option("submenuDirection").toLowerCase(),Ee={collision:"flip",of:de.parent(".".concat(V)),offset:{h:0,v:-1}};switch(le){case"left":Ee.at="left top",Ee.my="right top";break;case"right":Ee.at="right top",Ee.my="left top";break;default:this.option("rtlEnabled")?(Ee.at="left top",Ee.my="right top"):(Ee.at="right top",Ee.my="left top")}return Ee}_updateSubmenuVisibilityOnClick(de){if(de.args.length){var le=de.args[0].itemData,pe=this._dataAdapter.getNodeByItem(le);if(pe){var Ee=(0,o.Z)(de.args[0].itemElement),ae=Ee.find(".".concat(U));if(this._hasSubmenu(pe)&&!ae.length&&(this._renderSubmenuItems(pe,Ee),ae=Ee.find(".".concat(U))),(Ee.context!==ae.context||"visible"!==ae.css("visibility"))&&(this._updateSelectedItemOnClick(de),le&&!le.disabled&&(!le||!1!==le.closeMenuOnClick)))if(0===ae.length){var oe=(0,o.Z)(Ee.parents(".".concat(U))[0]);this._hideSubmenu(oe),!de.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(ae)&&this._hideSubmenu(ae),this._showSubmenu(Ee)}}}_hideSubmenu(de){var le=(0,h.l)([],this._shownSubmenus);(0,d.S6)(le,(pe,Ee)=>{(de.is(Ee)||(0,s.r3)(de[0],Ee[0]))&&(Ee.parent().removeClass(B),this._hideSubmenuCore(Ee))})}_hideSubmenuCore(de){var le=this._shownSubmenus.indexOf(de),pe=this.option("animation")?this.option("animation").hide:null;le>=0&&this._shownSubmenus.splice(le,1),this._stopAnimate(de),pe&&this._animate(de,pe),de.css("visibility","hidden")}_stopAnimate(de){x.Z.stop(de,!0)}_hideAllShownSubmenus(){var de=(0,h.l)([],this._shownSubmenus);this._overlay.$content().find(".".concat(B)).removeClass(B),(0,d.S6)(de,(pe,Ee)=>{this._hideSubmenu(Ee)})}_visibilityChanged(de){de&&this._renderContentImpl()}_optionChanged(de){if(De.includes(de.name))this._initActions();else switch(de.name){case"visible":this._renderVisibility(de.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":de.previousValue&&this._detachShowContextMenuEvents(de.previousValue),this._invalidate();break;case"closeOnOutsideClick":case"hideOnOutsideClick":break;default:super._optionChanged(de)}}_renderVisibility(de){return de?this._show():this._hide()}_toggleVisibility(){}_show(de){var le={jQEvent:de},pe=(new w.BH).reject().promise();if(this._actions.onShowing(le),le.cancel)return pe;var ae,Ee=this._positionContextMenu(de);return Ee&&(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",Ee),pe=this._overlay.show(),de&&de.stopPropagation(),this._setAriaAttributes(),(null==de||null===(ae=de.originalEvent)||void 0===ae?void 0:ae.type)===k.Z.name&&this.preventShowingDefaultContextMenuAboveOverlay()),pe}_setAriaAttributes(){this._overlayContentId="dx-".concat(new C.Z),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||(0,o.Z)(c.Z.getDocument())}_getContextMenuPosition(){return(0,h.l)({},this.option("position"),{of:this._getTarget()})}_positionContextMenu(de){var le=this._getContextMenuPosition(),pe=this._isInitialOptionValue("position"),Ee=this._createActionByOption("onPositioning");de&&de.preventDefault&&pe&&(le.of=de);var ae={position:le,event:de};return Ee(ae),ae.cancel?le=null:ae.event&&(ae.event.cancel=!0,de.preventDefault()),le}_refresh(){if((0,g.Ym)())if(this._overlay){var de=this._overlay.option("position");super._refresh(),this._overlay&&this._overlay.option("position",de)}else super._refresh();else super._refresh()}_hide(){var de;return this._overlay&&(de=this._overlay.hide(),this._setOptionWithoutOptionChange("visible",!1)),this._cleanAriaAttributes(),this.option("focusedElement",null),de||(new w.BH).reject().promise()}toggle(de){var le=this.option("visible");return this._renderVisibility(de=void 0===de?!le:de)}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}}(0,f.Z)("dxContextMenu",fe);const _e=fe},7543:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>ee});var o=l(9904),c=l(7674),I=l(1828),C=l(2718),f=l(5873),a=l(4594),p=l(355),s=l(5172);const d=class u extends s.Z{_getPlainItems(){return(0,C.UI)(this._collectionWidget.option("items"),function q(Z){return Z.items?[Z].concat((0,C.UI)(Z.items,q)):Z})}_stringifyItem(q){return JSON.stringify(q,(Z,X)=>"template"===Z?this._getTemplateString(X):X)}_getTemplateString(q){return"object"==typeof q?(0,o.Z)(q).text():q.toString()}};var h=l(2941),g=l(8646),x="dx-menu",b=x+"-no-icons",E=x+"-item",S=E+"-content",O=E+"-selected",w=E+"-wrapper",T=x+"-items-container",k=E+"-expanded",R=x+"-separator",P=x+"-last-group-item",B=E+"-has-text",W=E+"-has-icon",N=E+"-has-submenu",V=E+"-popout",U=V+"-container",K=E+"-text",J={show:50,hide:300};const ee=(()=>{class G extends p.Z{_getDefaultOptions(){return(0,f.l)(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 E}_setAriaSelected(){}_selectedItemClass(){return O}_widgetClass(){return"dx-menu-base"}_focusTarget(){return this._itemContainer()}_clean(){this.option("focusedElement",null),super._clean()}_supportedKeys(){return(0,f.l)(super._supportedKeys(),{space:()=>{var Z=(0,o.Z)(this.option("focusedElement"));!Z.length||!this._isSelectionEnabled()||this.selectItem(Z[0])},pageUp:c.ZT,pageDown:c.ZT})}_isSelectionEnabled(){return"single"===this.option("selectionMode")}_init(){this._activeStateUnit=".".concat(E),super._init(),this._renderSelectedItem(),this._initActions()}_getTextContainer(Z){var X=Z.text,M=(0,o.Z)("<span>").addClass(K),se=(0,I.PO)(Z)?X:String(Z);return X&&M.text(se)}_getPopoutContainer(Z){var M,X=Z.items;if(X&&X.length){var se=(0,o.Z)("<div>").addClass(V);M=(0,o.Z)("<span>").addClass(U).append(se)}return M}_getDataAdapterOptions(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}}_selectByItem(Z){if(Z){var X=this._dataAdapter.getNodeByItem(Z);this._dataAdapter.toggleSelection(X.internalFields.key,!0)}}_renderSelectedItem(){var Z=this._dataAdapter.getSelectedNodesKeys(),X=Z.length&&Z[0],M=this.option("selectedItem");if(X){var se=this._dataAdapter.getNodeByKey(X);if(!1!==se.selectable){if(!M)return void this.option("selectedItem",se.internalFields.item);M!==se.internalFields.item&&(this._dataAdapter.toggleSelection(X,!1),this._selectByItem(M))}}else this._selectByItem(M)}_initActions(){}_initMarkup(){super._initMarkup(),this.option("useInkRipple")&&this._renderInkRipple()}_renderInkRipple(){this._inkRipple=(0,a.sY)()}_toggleActiveState(Z,X,M){if(super._toggleActiveState.apply(this,arguments),this._inkRipple){var se={element:Z,event:M};X?this._inkRipple.showWave(se):this._inkRipple.hideWave(se)}}_getShowSubmenuMode(){var Z=this.option("showSubmenuMode");return Z=(0,I.Kn)(Z)?Z.name:Z,this._isDesktopDevice()?Z:"onClick"}_initSelectedItems(){}_isDesktopDevice(){return"desktop"===h.Z.real().deviceType}_initEditStrategy(){this._editStrategy=new d(this)}_addCustomCssClass(Z){Z.addClass(this.option("cssClass"))}_itemWrapperSelector(){return".".concat(w)}_hoverStartHandler(Z){var X=this._getItemElementByEventArgs(Z);!X||this._isItemDisabled(X)||(Z.stopPropagation(),"onHover"===this._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(this._showSubmenu.bind(this,X),this._getSubmenuDelay("show"))))}_getAvailableItems(Z){return super._getAvailableItems(Z).filter(function(){return"hidden"!==(0,o.Z)(this).css("visibility")})}_isItemDisabled(Z){return this._disabledGetter(Z.data(this._itemDataKey()))}_showSubmenu(Z){this._addExpandedClass(Z)}_addExpandedClass(Z){(0,o.Z)(Z).addClass(k)}_getSubmenuDelay(Z){var{delay:X}=this.option("showSubmenuMode");return(0,I.$K)(X)?(0,I.Kn)(X)?X[Z]:X:J[Z]}_getItemElementByEventArgs(Z){var X=(0,o.Z)(Z.target);if(X.hasClass(this._itemClass())||X.get(0)===Z.currentTarget)return X;for(;!X.hasClass(this._itemClass());)if((X=X.parent()).hasClass("dx-submenu"))return null;return X}_hoverEndHandler(){clearTimeout(this._showSubmenusTimeout)}_hasSubmenu(Z){return Z&&Z.internalFields.childrenKeys.length}_renderContentImpl(){this._renderItems(this._dataAdapter.getRootNodes())}_renderItems(Z,X){if(Z.length){this.hasIcons=!1;var M=this._renderContainer(this.$element(),X),se=-1,ge=-1;(0,C.S6)(Z,(De,Fe)=>{var Ae=!1!==Fe.visible;Ae&&se<0&&(se=De),se<De&&(Fe.beginGroup||De===ge)&&(ge=Ae?De:De+1),De===ge&&se<De&&this._renderSeparator(M),this._renderItem(De,Fe,M)}),this.hasIcons||M.addClass(b)}}_renderContainer(Z){var X=(0,o.Z)("<ul>");return this.setAria("role","none",X),X.appendTo(Z).addClass(T)}_createDOMElement(Z){var X=(0,o.Z)("<li>");return this.setAria("role","none",X),X.appendTo(Z).addClass(w)}_renderItem(Z,X,M,se){var ge=this.option("items"),De=se||this._createDOMElement(M);ge[Z+1]&&ge[Z+1].beginGroup&&De.addClass(P);var Fe=super._renderItem(Z,X.internalFields.item,De);X.internalFields.item===this.option("selectedItem")&&Fe.addClass(O),Fe.attr("tabIndex",-1),this._hasSubmenu(X)&&this.setAria("haspopup","true",Fe)}_renderItemFrame(Z,X,M){var se=M.children(".".concat(E));return se.length?se:super._renderItemFrame.apply(this,arguments)}_refreshItem(Z,X){var M=this._dataAdapter.getNodeByItem(X),se=Z.data(this._itemIndexKey()),ge=Z.closest("ul"),De=Z.closest("li");this._renderItem(se,M,ge,De)}_addContentClasses(Z,X){var se=!!Z.icon,ge=!!Z.items&&!!Z.items.length;X.toggleClass(B,!!Z.text&&!!Z.text.length),X.toggleClass(W,se),this.hasIcons||(this.hasIcons=se),X.toggleClass(N,ge)}_getItemContent(Z){var X=super._getItemContent(Z);return X.length||(X=Z.children(".".concat(S))),X}_postprocessRenderItem(Z){var X=(0,o.Z)(Z.itemElement),M=this._dataAdapter.getSelectedNodesKeys();M.length&&this._selectedGetter(Z.itemData)&&this._isItemSelectable(Z.itemData)&&this._dataAdapter.getNodeByItem(Z.itemData).internalFields.key===M[0]?(X.addClass(this._selectedItemClass()),this._setAriaSelected(X,"true")):this._setAriaSelected(X,"false")}_isItemSelectable(Z){return!1!==Z.selectable}_renderSeparator(Z){(0,o.Z)("<li>").appendTo(Z).addClass(R)}_itemClickHandler(Z){if(!Z._skipHandling){var X=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(Z,"onItemClick",{},{afterExecute:X.bind(this)}),Z._skipHandling=!0}}_updateSubmenuVisibilityOnClick(Z){this._updateSelectedItemOnClick(Z),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(Z.args[0].itemElement)}_updateSelectedItemOnClick(Z){var X=Z.args?Z.args[0]:Z;if(this._isItemSelectionAllowed(X.itemData)){var M=this._dataAdapter.getSelectedNodesKeys(),se=M.length&&this._dataAdapter.getNodeByKey(M[0]);se&&this._toggleItemSelection(se,!1),se&&se.internalFields.item===X.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionWithoutOptionChange("selectedItem",null)):this.selectItem(X.itemData)}}_isItemSelectionAllowed(Z){var X=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&X&&this._isItemSelectable(Z)&&!this._itemsGetter(Z)}_isContainerEmpty(){return this._itemContainer().is(":empty")}_syncSelectionOptions(){return(0,c.C$)()}_optionChanged(Z){switch(Z.name){case"showSubmenuMode":break;case"selectedItem":var X=this._dataAdapter.getNodeByItem(Z.value),M=this._dataAdapter.getSelectedNodesKeys()[0];if(X&&X.internalFields.key!==M){if(!1===X.selectable)break;M&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(M),!1),this._toggleItemSelection(X,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:super._optionChanged(Z)}}_toggleItemSelection(Z,X){var M=this._getElementByItem(Z.internalFields.item);M&&(0,o.Z)(M).toggleClass(O),this._dataAdapter.toggleSelection(Z.internalFields.key,X)}_getElementByItem(Z){var X;return(0,C.S6)(this._itemElements(),(M,se)=>(0,o.Z)(se).data(this._itemDataKey())!==Z||(X=se,!1)),X}_updateSelectedItems(Z,X){(Z||X)&&this._fireSelectionChangeEvent(X,Z)}_fireSelectionChangeEvent(Z,X){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[Z],removedItems:[X]})}selectItem(Z){var X=Z.nodeType?this._getItemData(Z):Z,M=this._dataAdapter.getSelectedNodesKeys()[0],se=this.option("selectedItem"),ge=this._dataAdapter.getNodeByItem(X);ge.internalFields.key!==M&&(M&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(M),!1),this._toggleItemSelection(ge,!0),this._updateSelectedItems(se,X),this._setOptionWithoutOptionChange("selectedItem",X))}unselectItem(Z){var X=Z.nodeType?this._getItemData(Z):Z,M=this._dataAdapter.getNodeByItem(X),se=this.option("selectedItem");M.internalFields.selected&&(this._toggleItemSelection(M,!1),this._updateSelectedItems(se,null),this._setOptionWithoutOptionChange("selectedItem",null))}}return G.ItemClass=g.Z,G})()},9617:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>C});var o=l(4817),c=l(2879),I=l(3390);const C=(0,o.Z)({},I.Z,c.Z,{modules:[]})},1378:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>vn});var o=l(9904),c=l(8506),I=l(7674),C=l(1828),f=l(2718),a=l(5873),p=l(2160),s=l(4722),u=l(6853),d=l(9617),h=l(2722),g=l(2496);d.Z.registerModule("columnHeaders",g.q);var b=l(980);d.Z.registerModule("columns",{defaultOptions:function(){return(0,a.l)(!0,{},b.W.defaultOptions(),{commonColumnSettings:{allowExporting:!0}})},controllers:b.W.controllers});var y=l(8159),S=l(6181).Z;const O={extend:function(Ze){S=S.inherit(Ze)},create:function(Ze){return new S(Ze)}};var w=l(9799),T=w.p.controllers.data.inherit({_getDataSourceAdapter:function(){return O},_getSpecificDataSourceOption:function(){var Ze=this.option("dataSource");return Ze&&!Array.isArray(Ze)&&this.option("keyExpr")&&y.Z.log("W1011"),this.callBase()}});d.Z.registerModule("data",{defaultOptions:w.p.defaultOptions,controllers:{data:T}});var k=l(3881);d.Z.registerModule("sorting",k.G);var R=l(6027);d.Z.registerModule("rows",R.U);var B=l(9256);d.Z.registerModule("contextMenu",B.y);var W=l(3979);d.Z.registerModule("errorHandling",W.M);var N=l(3990);d.Z.registerModule("gridView",N.C);var V=l(2758);d.Z.registerModule("headerPanel",V.z),d.Z.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 J=u.Z.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var Ze=this.callBase();return(0,f.S6)(d.Z.modules,function(){(0,C.mf)(this.defaultOptions)&&(0,a.l)(!0,Ze,this.defaultOptions())}),Ze},_setDeprecatedOptions:function(){this.callBase(),(0,a.l)(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(0,h.x2)()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0},selection:{showCheckBoxesMode:"always"}}},{device:function(){return s.Z.webkit},options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:function(Ze){return"desktop"!==Ze.deviceType},options:{grouping:{expandMode:"rowClick"}}}])},_init:function(){this.callBase(),d.Z.processModules(this,d.Z),d.Z.callModuleItemsMethod(this,"init")},_clean:I.ZT,_optionChanged:function(Ze){d.Z.callModuleItemsMethod(this,"optionChanged",[Ze]),Ze.handled||this.callBase(Ze)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(Ze){Ze&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var Ze=this;(0,I.g0)(function(){Ze._renderContentImpl()})},_getTemplate:function(Ze){var bt=Ze;return(0,C.HD)(bt)&&"#"===bt[0]&&(bt=(0,o.Z)(Ze),p.k.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(bt)},_dispose:function(){this.callBase(),d.Z.callModuleItemsMethod(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),d.Z.callModuleItemsMethod(this,"beginUpdate")},endUpdate:function(){d.Z.callModuleItemsMethod(this,"endUpdate"),this.callBase()},getController:function(Ze){return this._controllers[Ze]},getView:function(Ze){return this._views[Ze]},focus:function(Ze){this.getController("keyboardNavigation").focus(Ze)}});J.registerModule=d.Z.registerModule.bind(d.Z),(0,c.Z)("dxDataGrid",J);const j=J;var ee=l(5733);d.Z.registerModule("stateStoring",ee.t);var G=l(9143);d.Z.registerModule("selection",G.e);var q=l(2116);d.Z.registerModule("columnChooser",q.T);var M=l(1805),se=l(6738),ge=l(2701),De=l(3382),Fe=l(5031),Ae=l(4270);function ne(Ze,bt,_t){for(var Wt=(0,ge.G5)(bt.group),Ot=[],qt=_t?Ze.length-1:0;qt<Ze.length;qt++){for(var mn=[],Ke=0;Ke<=qt;Ke++){var pt=Wt[Ke].selector;if(qt!==Ke||null!==Ze[Ke]&&!1!==Ze[Ke]&&!0!==Ze[Ke]){var an=[pt,qt===Ke?Wt[Ke].desc?">":"<":"=",Ze[Ke]];mn.push("<"===an[1]?[an,"or",[pt,"=",null]]:an)}else!1===Ze[Ke]?mn.push([pt,"=",!!Wt[Ke].desc||null]):(Ze[Ke]?!Wt[Ke].desc:Wt[Ke].desc)?mn.push([pt,"<>",Ze[Ke]]):(mn.push([pt,"<>",null]),mn.push([pt,"=",null]))}Ot.push(d.Z.combineFilters(mn))}return Ot=d.Z.combineFilters(Ot,"or"),d.Z.combineFilters([Ot,bt.filter])}var Ze,bt,fe=Fe.Z.inherit((Ze=function(_t,Wt){var Ot=_t.hash;return Ot&&Ot[JSON.stringify(Wt)]},bt=function(_t,Wt){var Ke,Ot=0,qt=_t.length-1;if(!_t.length)return 0;do{var mn=qt+Ot>>1;_t[mn].offset>Wt?qt=mn:Ot=mn}while(qt-Ot>1);for(Ke=Ot;Ke<=qt&&!(_t[Ke].offset>Wt);Ke++);return Ke},{ctor:function(_t){this._dataSource=_t,this.reset()},reset:function(){this._groupsInfo=[],this._totalCountCorrection=0},totalCountCorrection:function(){return this._totalCountCorrection},updateTotalItemsCount:function(_t){this._totalCountCorrection=_t||0},isGroupItemCountable:function(_t){return!this._isVirtualPaging()||!_t.isContinuation},_isVirtualPaging:function(){var _t=this._dataSource.option("scrolling.mode");return"virtual"===_t||"infinite"===_t},itemsCount:function(){var Wt=this._dataSource._dataSource,Ot=d.Z.normalizeSortingInfo(Wt.group()||[]).length;return function mn(Ke,pt,an){var hn=0;if(pt)if(an)for(var sn=0;sn<pt.length;sn++)Ke.isGroupItemCountable(pt[sn])&&hn++,hn+=mn(Ke,pt[sn].items,an-1);else hn=pt.length;return hn}(this,Wt.items(),Ot)},foreachGroups:function(_t,Wt,Ot,qt,mn){var Ke=this;return function pt(an,hn,sn,Nn){var Yn=[];function st(Bt,gt,$t,Un){var ai=gt&&Bt(gt,$t);return ai&&Un.push(ai),ai}for(var Vt=0;Vt<an.length;Vt++){if(Nn.push(an[Vt].data),!sn&&!1===st(hn,an[Vt].data,Nn,Yn))return!1;if(!an[Vt].data||an[Vt].data.isExpanded||Ot){var rn=an[Vt].children,Dn=rn.length&&pt(rn,hn,sn,Nn);if(Dn&&Yn.push(Dn),!1===Dn)return!1}if(sn&&!1===st(hn,an[Vt].data,Nn,Yn))return!1;(!an[Vt].data||an[Vt].data.offset!==an[Vt].offset)&&(qt=!0),Nn.pop()}var rt=mn&&Nn.slice(0);return qt&&Ae.gx.apply(o.Z,Yn).always(function(){Ke._updateGroupInfoOffsets(an,rt)})}(Ke._groupsInfo,_t,Wt,[])},_updateGroupInfoOffsets:function(_t,Wt){Wt=Wt||[];for(var Ot=0;Ot<_t.length;Ot++){var qt=_t[Ot];if(qt.data&&qt.data.offset!==qt.offset){qt.offset=qt.data.offset;for(var mn=0;mn<Wt.length;mn++)Wt[mn].offset=qt.offset}}_t.sort(function(Ke,pt){return Ke.offset-pt.offset})},findGroupInfo:function(_t){for(var Wt,Ot=this._groupsInfo,qt=0;Ot&&qt<_t.length;qt++)Ot=(Wt=Ze(Ot,_t[qt]))&&Wt.children;return Wt&&Wt.data},addGroupInfo:function(_t){for(var Wt,Ot=_t.path,qt=this._groupsInfo,mn=0;mn<Ot.length;mn++){if(!(Wt=Ze(qt,Ot[mn]))){Wt={key:Ot[mn],offset:_t.offset,data:{offset:_t.offset,isExpanded:!0,path:Ot.slice(0,mn+1)},children:[]};var Ke=bt(qt,_t.offset);qt.splice(Ke,0,Wt),qt.hash=qt.hash||{},qt.hash[JSON.stringify(Wt.key)]=Wt}mn===Ot.length-1&&(Wt.data=_t,Wt.offset!==_t.offset&&this._updateGroupInfoOffsets(qt)),qt=Wt.children}},allowCollapseAll:function(){return!0},refresh:function(_t){var Wt=_t.storeLoadOptions,Ot=(0,ge.G5)(Wt.group||[]),qt="_group"in this?(0,ge.G5)(this._group||[]):Ot,mn=Math.min(qt.length,Ot.length);this._group=Wt.group;for(var Ke=0;Ke<mn;Ke++)if(qt[Ke].selector!==Ot[Ke].selector){mn=Ke;break}mn?function pt(an,hn,sn){for(var Nn=0;Nn<an.length;Nn++)hn+1>=sn?an[Nn].children=[]:pt(an[Nn].children,hn+1,sn)}(this._groupsInfo,0,mn):this.reset()},handleDataLoading:function(){},handleDataLoaded:function(_t,Wt){Wt(_t)},handleDataLoadedCore:function(_t,Wt){Wt(_t)}})),_e=l(2879);function ie(Ze,bt){for(var _t=(0,ge.G5)(bt.group),Wt=[],Ot=0;Ot<Ze.length;Ot++)Wt.push([_t[Ot].selector,"=",Ze[Ot]]);return bt.filter&&Wt.push(bt.filter),_e.Z.combineFilters(Wt)}var de=l(7316),le=function(Ze,bt){var _t=new Ae.BH,Wt=(0,a.l)({skip:0,take:1,requireTotalCount:!0},bt);return Ze.load(Wt).done(function(Ot,qt){_t.resolve(qt&&qt.totalCount)}).fail(_t.reject.bind(_t)),_t},pe=fe.inherit(function(){var Ze=function(qt,mn,Ke){return qt.foreachGroups(function(pt){if(!pt.isExpanded)return mn(pt)},!1,!1,Ke,!0)},bt=function(qt,mn){var Ke=0,pt=mn||0;return mn&&(Ze(qt,function(an){if(an.offset-Ke>=mn)return!1;Ke+=an.count-1}),pt+=Ke),pt},_t=function(qt,mn){if(qt.length!==mn.length)return!1;for(var Ke=0;Ke<qt.length;Ke++)if(!(0,ge.OI)(null,qt[Ke],mn[Ke]))return!1;return!0},Wt=function qt(mn,Ke,pt,an,hn){if(Ke){for(var sn=0;sn<Ke.length;sn++){var Nn=Ke[sn];if("key"in Nn&&void 0!==Nn.items){pt.push(Nn.key),hn&&_t(hn.path,pt)&&!Nn.isContinuation&&(hn.offset=an);var Yn=mn.findGroupInfo(pt);Yn&&!Nn.isContinuation&&(Yn.offset=an),Yn&&!Yn.isExpanded?an+=Yn.count:an=qt(mn,Nn.items,pt,an,hn),pt.pop()}else an++}return an}},Ot=function qt(mn,Ke){var pt=mn.count||mn.items.length;if(!mn.count&&Ke>1){pt=0;for(var an=0;an<mn.items.length;an++)pt+=qt(mn.items[an],Ke-1)}return pt};return{handleDataLoading:function(qt){var hn,mn=qt.storeLoadOptions,Ke=[],pt=0,an=!1,sn=qt.loadOptions.group,Nn=0;if(function(st,Vt){if(Vt.group){var rn=d.Z.normalizeSortingInfo(Vt.group),Dn=d.Z.normalizeSortingInfo(st.sort);st.sort=De.Z.arrangeSortingInfo(rn,Dn),delete Vt.group}}(mn,qt.loadOptions),qt.group=qt.group||sn,!qt.isCustomLoading){var Yn=(0,a.l)({},mn);Yn.skip=bt(this,mn.skip),Yn.skip&&Yn.take&&sn&&(Yn.skip--,Yn.take++,an=!0),Yn.take&&sn&&(hn=Yn.take,Yn.take++),Ze(this,function(st){if(st.offset>=Yn.skip+Yn.take+Nn)return!1;st.offset>=Yn.skip+Nn&&st.count&&(Nn+=st.count-1,Ke.push(st),pt+=st.count)}),(0,f.S6)(Ke,function(){Yn.filter=function(st,Vt,rn){for(var Dn=d.Z.normalizeSortingInfo(rn||Vt.group),rt=[],Bt=0;Bt<st.length;Bt++){for(var gt=[],$t=0;$t<=Bt;$t++)gt.push([Dn[$t].selector,Bt===$t?"<>":"=",st[$t]]);rt.push(d.Z.combineFilters(gt))}return rt=d.Z.combineFilters(rt,"or"),d.Z.combineFilters([rt,Vt.filter])}(this.path,Yn,sn)}),qt.storeLoadOptions=Yn,qt.collapsedGroups=Ke,qt.collapsedItemsCount=pt,qt.skip=Yn.skip||0,qt.skipFirstItem=an,qt.take=hn}},handleDataLoaded:function(qt,mn){var Ke=qt.collapsedGroups,pt=d.Z.normalizeSortingInfo(qt.group),an=pt.length;function hn(st,Vt,rn,Dn,rt){if(st&&Vt.length&&rn.length){var Bt,gt,$t=(0,se.Ex)(Vt[0],!0);for(gt=0;gt<st.length&&(Bt=(0,se.Ex)(st[gt].key,!0),!(rt>=Dn.offset||$t===Bt));gt++)rt+=Ot(st[gt],rn.length);(!st.length||$t!==Bt)&&st.splice(gt,0,{key:Vt[0],items:[],count:1===Vt.length?Dn.count:void 0}),hn(st[gt].items,Vt.slice(1),rn.slice(1),Dn,rt)}}if(qt.collapsedItemsCount&&qt.extra&&qt.extra.totalCount>=0&&(qt.extra._totalCountWasIncreasedByCollapsedItems||(qt.extra.totalCount+=qt.collapsedItemsCount,qt.extra._totalCountWasIncreasedByCollapsedItems=!0)),mn(qt),an){var sn=qt.data,Nn=(0,de.Z)(sn);if(De.Z.multiLevelGroup(Nn,pt).enumerate().done(function(st){sn=st}),Ke)for(var Yn=0;Yn<Ke.length;Yn++)hn(sn,Ke[Yn].path,pt,Ke[Yn],qt.skip);qt.isCustomLoading||function st(Vt,rn,Dn,rt,Bt,gt){for(var $t=0,Un=!1,ai=0;ai<rn.length;ai++){var Ci=rn[ai];if(void 0!==Ci.items){Dn.push(Ci.key);var Ii=Vt.findGroupInfo(Dn);if(Ii&&!Ii.isExpanded)Ci.collapsedItems=Ci.items,Ci.items=null,rt+=Ii.count,--gt<0&&$t++,Bt&&(Un=!0);else if(Ci.items){var zi=st(Vt,Ci.items,Dn,rt,Bt,gt);Bt&&(zi.offset-rt>1?Ci.isContinuation=!0:Un=!0),rt=zi.offset,(gt=zi.take)<0&&(Ci.items.length?Ci.isContinuationOnNextPage=!0:$t++)}Dn.pop()}else Bt&&(Un=!0),rt++,--gt<0&&$t++;Bt=!1}return Un&&rn.splice(0,1),$t&&rn.splice(-$t,$t),{offset:rt,take:gt}}(this,sn,[],qt.skip,qt.skipFirstItem,qt.take),qt.data=sn}},isGroupItemCountable:function(qt){return null===qt.items},updateTotalItemsCount:function(){var qt=0;Ze(this,function(mn){mn.count&&(qt-=mn.count-1)}),this.callBase(qt)},changeRowExpand:function(qt){var Nn,mn=this,Ke=mn._dataSource,pt=Ke.beginPageIndex?Ke.beginPageIndex():Ke.pageIndex(),an=Ke.items(),hn=bt(mn,pt*Ke.pageSize()),sn=mn.findGroupInfo(qt);return Nn=sn&&!sn.isExpanded?(new Ae.BH).resolve(sn.count):le(Ke,{filter:ie(qt,{filter:Ke.filter(),group:Ke.group()})}),(0,Ae.gx)(Nn).done(function(Yn){Yn=parseInt(Yn.length?Yn[0]:Yn),sn?(Wt(mn,an,[],hn),sn.isExpanded=!sn.isExpanded,sn.count=Yn):(Wt(mn,an,[],hn,sn={offset:-1,count:Yn,path:qt,isExpanded:!1}),sn.offset>=0&&mn.addGroupInfo(sn)),mn.updateTotalItemsCount()}).fail(function(){Ke._eventsStrategy.fireEvent("loadError",arguments)})},allowCollapseAll:function(){return!1},refresh:function(qt,mn){var Ke=this,pt=qt.storeLoadOptions,an=Ke._dataSource;if(this.callBase.apply(this,arguments),mn.reload)return Ze(Ke,function(hn){var sn=le(an,{filter:ie(hn.path,pt)}),Nn=le(an,{filter:ne(hn.path,pt)});return(0,Ae.gx)(Nn,sn).done(function(Yn,st){Yn=parseInt(Yn.length?Yn[0]:Yn),st=parseInt(st.length?st[0]:st),hn.offset=Yn,hn.count!==st&&(hn.count=st,Ke.updateTotalItemsCount())})},!0)}}}()),Ee=l(6051);function ae(Ze,bt,_t,Wt){if(Wt=Wt||0,bt>1&&_t>0){var Ot=Ze-Math.floor(Ze/bt)*bt||bt;return(Ot+=_t-Wt-2)<0&&(Ot+=bt),Math.floor(Ot/(bt-Wt-1))}return 0}var te=fe.inherit(function(){var Ze=function(sn,Nn,Yn){return sn.foreachGroups(function(st,Vt){if(st.isExpanded)return Nn(st,Vt)},!0,!1,Yn,Yn)},bt=function sn(Nn,Yn,st,Vt,rn,Dn,rt){var Bt;if(Vt.items=Vt.items||[],Vt.paths=Vt.paths||[],Vt.count=Vt.count||0,Vt.lastCount=Vt.lastCount||0,st)for(var gt=0;gt<Yn.length;gt++){var $t=Yn[gt];if(void 0!==$t.items){if(rn.push($t.key),Dn)Bt=!0;else{var Un=Nn.findGroupInfo(rn);Bt=Un&&Un.isExpanded}Bt?$t.items?sn(Nn,$t.items,st-1,Vt,rn,Dn,rt):1===st&&$t.count&&(!Dn||rt)&&(Vt.items.push($t),Vt.paths.push(rn.slice(0)),Vt.count+=Vt.lastCount,Vt.lastCount=$t.count):($t.collapsedItems=$t.items,$t.items=null),rn.pop()}}},_t=function(sn,Nn,Yn,st,Vt){var Dn,rn=sn.findGroupInfo(st);rn?(Yn?rn.count=Nn.count>0?Nn.count:Nn.items&&Nn.items.length||0:Nn.count=rn.count||Nn.count,rn.offset=Vt):(Yn&&(Dn=Nn.count>0?Nn.count:Nn.items.length),sn.addGroupInfo({isExpanded:sn._isGroupExpanded(st.length-1),path:st.slice(0),offset:Vt,count:Dn||0}))},Wt=function sn(Nn,Yn,st,Vt,rn,Dn,rt){var Ci,gt=(Yn.group?Yn.group.length:0)===Vt,Un=0,ai=0;if(rn=rn||0,Dn=Dn||[],Yn.remoteOperations.paging&&!rt&&(Un=0===rn?Yn.skip||0:Yn.skips[rn-1]||0),rn>=Vt)return st.length;for(var Ii=0;Ii<st.length;Ii++){var zi=st[Ii];if(zi){if(Dn.push(zi.key),!zi.count&&!zi.items||void 0===zi.items||(_t(Nn,zi,gt,Dn,Un+Ii),(Ci=zi.items?sn(Nn,Yn,zi.items,Vt,rn+1,Dn,Ii):zi.count||-1)<0))return-1;ai+=Ci,Dn.pop()}}return ai},Ot=function(sn,Nn){return sn&&sn.length&&sn[Nn]&&!!sn[Nn].isExpanded},qt=function(sn,Nn,Yn){for(var st,Vt=Yn,rn=0;rn<sn.length;rn++)st=sn[rn].offset+1,rn>0&&(st+=sn[rn-1].childrenTotalCount,Nn&&(st+=ae(Vt,Nn,st,rn-1)*rn)),Vt+=st;return Vt};function mn(sn,Nn,Yn,st){var Vt=Nn.items[st],rn=sn.skips&&sn.skips[Yn],Dn=sn.takes&&sn.takes[Yn],rt=st===Nn.items.length-1,Bt=0===st,$t=Vt.count>Dn+(Bt&&rn||0);Bt&&void 0!==rn&&(Vt.isContinuation=!0),rt&&void 0!==Dn&&$t&&(Vt.isContinuationOnNextPage=!0)}function Ke(sn){return!Array.isArray(sn)}function pt(sn){Ke(sn.data)||(sn.data=new Ae.BH)}function an(sn,Nn,Yn,st,Vt,rn){var rt,Bt,gt,$t,Un;Nn.isCustomLoading||(bt(sn,rn,Yn,st={},[]),$t=(gt=Yn)-1,Un=(rt=Nn).group?rt.group.length:0,(Bt=st).skip=rt.skips&&rt.skips[$t],rt.takes&&void 0!==rt.takes[$t]&&(Bt.take=Un===gt&&Bt.count?Bt.count-(Bt.skip||0):0,Bt.take+=rt.takes[$t])),st.paths.length&&(Nn.group?Nn.group.length:0)-Yn>0?(pt(Nn),function(rt,Bt,gt,$t,Un,ai){var Ci=Bt.group||[],Ii=Ci[Un+1],zi=[];(0,f.S6)(gt.paths,function(Ki){var Xi={requireTotalCount:!1,requireGroupCount:!0,group:[Ii],groupSummary:Bt.storeLoadOptions.groupSummary,filter:ie(gt.paths[Ki],{filter:Bt.storeLoadOptions.filter,group:Ci}),select:Bt.storeLoadOptions.select};0===Ki&&(Xi.skip=gt.skip||0),Ki===gt.paths.length-1&&(Xi.take=gt.take);var wr=0===Xi.take?[]:rt._dataSource.loadFromStore(Xi);(0,Ae.gx)(wr).done(function(vr){var Jr=gt.items[Ki];mn(Bt,gt,Un,Ki),Jr.items=vr}),zi.push(wr)}),Ae.gx.apply(null,zi).done(function(){Wt(rt,Bt,ai,$t+1),an(rt,Bt,$t+1,gt,Un+1,ai)})}(sn,Nn,st,Yn,Vt,rn)):st.paths.length&&Nn.storeLoadOptions.group?(pt(Nn),function(rt,Bt,gt,$t){var Un=[],ai=Bt.group||[];(0,f.S6)(gt.paths,function(Ki,Xi){Un.push(ie(Xi,{group:Bt.isCustomLoading?Bt.storeLoadOptions.group:ai}))});var Ci=Bt.storeLoadOptions.filter;Bt.storeLoadOptions.isLoadingAll||(Ci=d.Z.combineFilters([Ci,d.Z.combineFilters(Un,"or")]));var Ii=(0,a.l)({},Bt.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:ai.concat(d.Z.normalizeSortingInfo(Bt.storeLoadOptions.sort||[])),filter:Ci}),zi=rt._dataSource.isLastLevelGroupItemsPagingLocal();zi||(Ii.skip=gt.skip,Ii.take=gt.take),(0,Ae.gx)(0===gt.take?[]:rt._dataSource.loadFromStore(Ii)).done(function(Ki,Xi){zi&&(Ki=rt._dataSource.sortLastLevelGroupItems(Ki,ai,gt.paths),Ki=gt.skip?Ki.slice(gt.skip):Ki,Ki=gt.take?Ki.slice(0,gt.take):Ki),(0,f.S6)(gt.items,function(wr,vr){var Xr=Ki.splice(0,vr.count-(0===wr&&gt.skip||0));mn(Bt,gt,ai.length-1,wr),vr.items=Xr}),Bt.data.resolve($t)}).fail(Bt.data.reject)}(sn,Nn,st,rn)):Ke(Nn.data)&&Nn.data.resolve(rn)}var hn=function(sn,Nn){var Yn=new Ae.BH,st=!(!Nn.group||!Nn.group.length),Vt=(0,a.l)({skip:0,take:1,requireGroupCount:st,requireTotalCount:!st},Nn,{group:st?Nn.group:null});return sn.load(Vt).done(function(rn,Dn){var rt=Dn&&(st?Dn.groupCount:Dn.totalCount);isFinite(rt)?Yn.resolve(rt):Yn.reject(Ee.R0.Error(st?"E4022":"E4021"))}).fail(Yn.reject.bind(Yn)),Yn};return{updateTotalItemsCount:function(sn){var Nn=0,Yn=sn.extra&&sn.extra.totalCount||0,st=sn.extra&&sn.extra.groupCount||0,Vt=this._dataSource.pageSize(),rn=this._isVirtualPaging();Ze(this,function(Dn){Dn.childrenTotalCount=0}),Ze(this,function(Dn,rt){var Bt=qt(rt,rn?0:Vt,Nn),gt=Dn.count+Dn.childrenTotalCount;rn||(gt+=ae(Bt,Vt,gt,rt.length-1)),rt[rt.length-2]?rt[rt.length-2].childrenTotalCount+=gt:Nn+=gt}),this.callBase(Nn-Yn+st)},_isGroupExpanded:function(sn){var Nn=this._dataSource.group();return Ot(Nn,sn)},_updatePagingOptions:function(sn,Nn){var Yn=this._isVirtualPaging(),st=this._dataSource.pageSize(),Vt=[],rn=[],Dn=0,rt=0;sn.take&&(Ze(this,function(Bt){Bt.childrenTotalCount=0,Bt.skipChildrenTotalCount=0}),Ze(this,function(Bt,gt){var $t,Un=0,ai=0,Ci=qt(gt,Yn?0:st,rt),Ii=0,zi=0,Ki=Bt.count+Bt.childrenTotalCount,Xi=Ki;Nn&&Nn(Bt,Ci);var wr=sn.skip-Ci;Ci<=sn.skip+sn.take&&Ki&&($t=sn.take,Yn||(Ki+=(Ii=ae(Ci,st,Ki,gt.length-1))*gt.length,Xi+=Ii,st&&wr>=0&&(Un=gt.length,ai=gt.length-1,zi=Math.floor(wr/st))),wr>=0?(Ci+Ki>sn.skip&&Vt.unshift(wr-zi*Un-Bt.skipChildrenTotalCount),Ci+Ki>=sn.skip+$t&&rn.unshift($t-Un-Bt.childrenTotalCount+Bt.skipChildrenTotalCount)):Ci+Ki>=sn.skip+$t&&rn.unshift($t+wr-Bt.childrenTotalCount)),Ci<=sn.skip&&(gt[gt.length-2]?gt[gt.length-2].skipChildrenTotalCount+=Math.min(Xi,wr+1-zi*ai):Dn+=Math.min(Xi,wr+1)),Ci<=sn.skip+$t&&(Ki=Math.min(Xi,wr+$t-(zi+1)*ai),gt[gt.length-2]?gt[gt.length-2].childrenTotalCount+=Ki:rt+=Ki)}),sn.skip-=Dn,sn.take-=rt-Dn),sn.skips=Vt,sn.takes=rn},changeRowExpand:function(sn){var Nn=this.findGroupInfo(sn),Yn=this._dataSource,st=Yn.remoteOperations().groupPaging,Vt=d.Z.normalizeSortingInfo(Yn.group());return Nn?(Nn.isExpanded=!Nn.isExpanded,st&&Nn.isExpanded&&sn.length<Vt.length?hn(Yn,{filter:ie(sn,{filter:Yn.lastLoadOptions().filter,group:Yn.group()}),group:[Vt[sn.length]],select:Yn.select()}).done(function(rn){Nn.count=rn}):(new Ae.BH).resolve()):(new Ae.BH).reject()},handleDataLoading:function(sn){var Nn=sn.storeLoadOptions,Yn=d.Z.normalizeSortingInfo(Nn.group||sn.loadOptions.group);if(!sn.isCustomLoading&&Yn.length){if(sn.remoteOperations.grouping){var st=this._dataSource.remoteOperations().paging;Nn.group=d.Z.normalizeSortingInfo(Nn.group),Nn.group.forEach(function(Vt,rn){Vt.isExpanded=!(st&&rn===Nn.group.length-1)})}sn.group=sn.group||Yn,sn.remoteOperations.paging?(sn.skip=Nn.skip,sn.take=Nn.take,Nn.requireGroupCount=!0,Nn.group=Yn.slice(0,1),this._updatePagingOptions(sn),Nn.skip=sn.skip,Nn.take=sn.take):(sn.skip=sn.loadOptions.skip,sn.take=sn.loadOptions.take,this._updatePagingOptions(sn))}},handleDataLoadedCore:function(sn,Nn){var Vt,Yn=d.Z.normalizeSortingInfo(sn.storeLoadOptions.group||sn.loadOptions.group).length,st=sn.group?sn.group.length:0,rn={};if(sn.isCustomLoading)Nn(sn),bt(this,sn.data,Yn,rn,[],sn.isCustomLoading,sn.storeLoadOptions.isLoadingAll);else{if(sn.remoteOperations.paging||this.foreachGroups(function(Dn){Dn.count=0}),(Vt=Wt(this,sn,sn.data,Yn))<0)return void(sn.data=(new Ae.BH).reject(y.Z.Error("E1037")));if(sn.remoteOperations.paging||Yn&&sn.extra&&sn.loadOptions.requireTotalCount&&(sn.extra.totalCount=Vt,sn.extra.groupCount=sn.data.length),st&&sn.storeLoadOptions.requireGroupCount&&!isFinite(sn.extra.groupCount))return void(sn.data=(new Ae.BH).reject(Ee.R0.Error("E4022")));this.updateTotalItemsCount(sn),sn.remoteOperations.paging||this._updatePagingOptions(sn),Nn(sn),sn.remoteOperations.paging||this._processPaging(sn,Yn)}an(this,sn,Yn,rn,0,sn.data)},_processSkips:function(sn,Nn,Yn){if(Yn){var st=sn[0],Vt=Nn[0],rn=st&&st.items;void 0!==Vt&&(st.isContinuation=!0,rn&&(st.items=rn.slice(Vt),this._processSkips(st.items,Nn.slice(1),Yn-1)))}},_processTakes:function(sn,Nn,Yn,st,Vt){if(st&&sn){Vt=Vt||[];var rn=sn[sn.length-1],Dn=rn&&rn.items,rt=Yn[0];rn&&(void 0!==rt&&(rn.count-(rn.isContinuation&&Nn[0]||0)||Dn.length)>rt&&(rn.isContinuationOnNextPage=!0,Vt.forEach(function($t){$t.isContinuationOnNextPage=!0}),Dn&&(Dn=Dn.slice(0,rt),rn.items=Dn)),Vt.push(rn),this._processTakes(Dn,Nn.slice(1),Yn.slice(1),st-1,Vt))}},_processPaging:function(sn,Nn){this._processSkips(sn.data,sn.skips,Nn),this._processTakes(sn.data,sn.skips,sn.takes,Nn)},isLastLevelGroupItemsPagingLocal:function(){return!1},sortLastLevelGroupItems:function(sn){return sn},refresh:function(sn,Nn){var rt,Bt,Yn=this,st=Yn._dataSource,Vt=sn.storeLoadOptions,rn=sn.group||sn.storeLoadOptions.group,Dn=d.Z.normalizeSortingInfo(Yn._group);function gt($t,Un){Un.length===Bt+1&&($t.isExpanded=rt)}for(Bt=0;Bt<Dn.length;Bt++)rt=Ot(rn,Bt),Ot(Yn._group,Bt)!==rt&&Yn.foreachGroups(gt);if(Yn.callBase.apply(this,arguments),rn&&sn.remoteOperations.paging&&Nn.reload)return Ze(Yn,function($t){var Un=hn(st,{filter:ie($t.path,{filter:Vt.filter,group:rn}),group:rn.slice($t.path.length),select:Vt.select}),ai=hn(st,{filter:ne($t.path,{filter:Vt.filter,group:rn},!0),group:rn.slice($t.path.length-1,$t.path.length),select:Vt.select});return(0,Ae.gx)(ai,Un).done(function(Ci,Ii){Ci=parseInt(Ci.length?Ci[0]:Ci),Ii=parseInt(Ii.length?Ii[0]:Ii),$t.offset=Ci,$t.count!==Ii&&($t.count=Ii,Yn.updateTotalItemsCount(sn))})},!0)}}}()),re=l(9009),oe=l(2941),ye=l(2127),Pe=l(2559),Ne="dx-datagrid-group-panel",tt="dx-group-panel-item",Be="dx-toolbar-label",me={init:function(){this.callBase.apply(this,arguments),this._initGroupingHelper()},_initGroupingHelper:function(Ze){var bt=this._grouping,_t=this.option("grouping.autoExpandAll"),Wt=this.option("focusedRowEnabled"),Ot=Ze?Ze.remoteOperations:this.remoteOperations();!(Ot.filtering&&Ot.sorting&&Ot.paging)||Ot.grouping||!_t&&Wt?(!bt||bt instanceof pe)&&(this._grouping=new te(this)):(!bt||bt instanceof te)&&(this._grouping=new pe(this))},totalItemsCount:function(){var Ze=this.callBase();return Ze>0&&this._dataSource.group()&&this._dataSource.requireTotalCount()?Ze+this._grouping.totalCountCorrection():Ze},itemsCount:function(){return this._dataSource.group()?this._grouping.itemsCount()||0:this.callBase.apply(this,arguments)},allowCollapseAll:function(){return this._grouping.allowCollapseAll()},isGroupItemCountable:function(Ze){return this._grouping.isGroupItemCountable(Ze)},isRowExpanded:function(Ze){var bt=this._grouping.findGroupInfo(Ze);return bt?bt.isExpanded:!this._grouping.allowCollapseAll()},collapseAll:function(Ze){return this._collapseExpandAll(Ze,!1)},expandAll:function(Ze){return this._collapseExpandAll(Ze,!0)},_collapseExpandAll:function(Ze,bt){var _t=this._dataSource,Wt=_t.group(),Ot=d.Z.normalizeSortingInfo(Wt||[]);if(Ot.length){for(var qt=0;qt<Ot.length;qt++)void 0===Ze||Ze===qt?Ot[qt].isExpanded=bt:Wt&&Wt[qt]&&(Ot[qt].isExpanded=Wt[qt].isExpanded);_t.group(Ot),this._grouping.foreachGroups(function(mn,Ke){(void 0===Ze||Ze===Ke.length-1)&&(mn.isExpanded=bt)},!1,!0),this.resetPagesCache()}return!0},refresh:function(){return this.callBase.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)},changeRowExpand:function(Ze){var bt=this._dataSource;if(bt.group())return bt.beginLoading(),this._lastLoadOptions&&(this._lastLoadOptions.groupExpand=!0),this._changeRowExpandCore(Ze).always(function(){bt.endLoading()})},_changeRowExpandCore:function(Ze){return this._grouping.changeRowExpand(Ze)},_hasGroupLevelsExpandState:function(Ze,bt){if(Ze&&Array.isArray(Ze))for(var _t=0;_t<Ze.length;_t++)if(Ze[_t].isExpanded===bt)return!0},_customizeRemoteOperations:function(Ze,bt){var _t=Ze.remoteOperations;Ze.storeLoadOptions.group?(_t.grouping&&!Ze.isCustomLoading&&(!_t.groupPaging||this._hasGroupLevelsExpandState(Ze.storeLoadOptions.group,!0))&&(_t.paging=!1),!_t.grouping&&(!_t.sorting||!_t.filtering||Ze.isCustomLoading||this._hasGroupLevelsExpandState(Ze.storeLoadOptions.group,!1))&&(_t.paging=!1)):!Ze.isCustomLoading&&_t.paging&&bt.grouping&&this.resetCache(),this.callBase.apply(this,arguments)},_handleDataLoading:function(Ze){return this.callBase(Ze),this._initGroupingHelper(Ze),this._grouping.handleDataLoading(Ze)},_handleDataLoaded:function(Ze){return this._grouping.handleDataLoaded(Ze,this.callBase.bind(this))},_handleDataLoadedCore:function(Ze){return this._grouping.handleDataLoadedCore(Ze,this.callBase.bind(this))}};O.extend(me);var xe={init:function(){this.callBase(),this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed")},_beforeProcessItems:function(Ze){var bt=this._columnsController.getGroupColumns();return(Ze=this.callBase(Ze)).length&&bt.length&&(Ze=this._processGroupItems(Ze,bt.length)),Ze},_processItem:function(Ze,bt){return(0,C.$K)(Ze.groupIndex)&&(0,C.HD)(Ze.rowType)&&0===Ze.rowType.indexOf("group")?(Ze=this._processGroupItem(Ze,bt),bt.dataIndex=0):Ze=this.callBase.apply(this,arguments),Ze},_processGroupItem:function(Ze){return Ze},_processGroupItems:function(Ze,bt,_t){var Wt=this._columnsController.getGroupColumns(),Ot=Wt[Wt.length-bt];if(!_t){var qt=this.option("scrolling.mode");_t={collectContinuationItems:"virtual"!==qt&&"infinite"!==qt,resultItems:[],path:[],values:[]}}var mn=_t.resultItems;if(_t.data&&(_t.collectContinuationItems||!_t.data.isContinuation)&&mn.push({rowType:"group",data:_t.data,groupIndex:_t.path.length-1,isExpanded:!!_t.data.items,key:_t.path.slice(0),values:_t.values.slice(0)}),Ze)if(0===bt)mn.push.apply(mn,Ze);else for(var Ke=0;Ke<Ze.length;Ke++){var pt=Ze[Ke];pt&&"items"in pt?(_t.data=pt,_t.path.push(pt.key),_t.values.push(Ot&&Ot.deserializeValue&&!Ot.calculateDisplayValue?Ot.deserializeValue(pt.key):pt.key),this._processGroupItems(pt.items,bt-1,_t),_t.data=void 0,_t.path.pop(),_t.values.pop()):mn.push(pt)}return mn},publicMethods:function(){return this.callBase().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])},collapseAll:function(Ze){var bt=this._dataSource;bt&&bt.collapseAll(Ze)&&(bt.pageIndex(0),bt.reload())},expandAll:function(Ze){var bt=this._dataSource;bt&&bt.expandAll(Ze)&&(bt.pageIndex(0),bt.reload())},changeRowExpand:function(Ze){var bt=this,_t=bt.isRowExpanded(Ze),Wt={key:Ze,expanded:_t};return bt.executeAction(_t?"onRowCollapsing":"onRowExpanding",Wt),Wt.cancel?(new Ae.BH).resolve():(0,Ae.gx)(bt._changeRowExpandCore(Ze)).done(function(){Wt.expanded=!_t,bt.executeAction(_t?"onRowCollapsed":"onRowExpanded",Wt)})},_changeRowExpandCore:function(Ze){var bt=this,_t=this._dataSource,Wt=new Ae.BH;return _t?(0,Ae.gx)(_t.changeRowExpand(Ze)).done(function(){bt.load().done(Wt.resolve).fail(Wt.reject)}).fail(Wt.reject):Wt.resolve(),Wt},isRowExpanded:function(Ze){var bt=this._dataSource;return bt&&bt.isRowExpanded(Ze)},expandRow:function(Ze){return this.isRowExpanded(Ze)?(new Ae.BH).resolve():this.changeRowExpand(Ze)},collapseRow:function(Ze){return this.isRowExpanded(Ze)?this.changeRowExpand(Ze):(new Ae.BH).resolve()},optionChanged:function(Ze){"grouping"===Ze.name&&(Ze.name="dataSource"),this.callBase(Ze)}},Te=function(Ze,bt){var _t=this._columnsController;switch(bt.itemData.value){case"group":var Wt=_t._dataSource.group()||[];_t.columnOption(Ze.dataField,"groupIndex",Wt.length);break;case"ungroup":_t.columnOption(Ze.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},Ye={_getToolbarItems:function(){var Ze=this.callBase();return this._appendGroupingItem(Ze)},_appendGroupingItem:function(Ze){if(this._isGroupPanelVisible()){var bt=!1;Ze.push({template:()=>{var Wt=(0,o.Z)("<div>").addClass(Ne);return this._updateGroupPanelContent(Wt),(0,ye.Y)("groupPanel",this,Wt,void 0,this._handleActionKeyDown.bind(this)),Wt},name:"groupPanel",onItemRendered:()=>{bt&&this.renderCompleted.fire(),bt=!0},location:"before",locateInMenu:"never",sortIndex:1}),this.updateToolbarDimensions()}return Ze},_handleActionKeyDown:function(Ze){var bt=Ze.event,_t=(0,o.Z)(bt.target),Wt=_t.closest(".".concat(tt)).index(),Ot=this._columnsController.getGroupColumns()[Wt],qt=Ot&&Ot.index;_t.is(".dx-header-filter")?this.getController("headerFilter").showHeaderFilterMenu(qt,!0):this._processGroupItemAction(qt),bt.preventDefault()},_isGroupPanelVisible:function(){var bt,Ze=this.option("groupPanel");return Ze&&"auto"===(bt=Ze.visible)&&(bt="desktop"===oe.Z.current().deviceType),bt},_renderGroupPanelItems:function(Ze,bt){var _t=this;Ze.empty(),(0,f.S6)(bt,function(Wt,Ot){_t._createGroupPanelItem(Ze,Ot)}),(0,Pe.vg)(this)},_createGroupPanelItem:function(Ze,bt){var _t=(0,o.Z)("<div>").addClass(bt.cssClass).addClass(tt).data("columnData",bt).appendTo(Ze).text(bt.caption);return(0,Pe.Hl)(this,_t),_t},_columnOptionChanged:function(Ze){if(!this._requireReady&&!d.Z.checkChanges(Ze.optionNames,["width","visibleWidth"])){var bt=this.element(),_t=bt&&bt.find("."+Ne);_t&&_t.length&&(this._updateGroupPanelContent(_t),this.updateToolbarDimensions(),this.renderCompleted.fire())}this.callBase()},_updateGroupPanelContent:function(Ze){var bt=this.getController("columns").getGroupColumns(),_t=this.option("groupPanel");this._renderGroupPanelItems(Ze,bt),_t.allowColumnDragging&&!bt.length&&((0,o.Z)("<div>").addClass("dx-group-panel-message").text(_t.emptyPanelText).appendTo(Ze),Ze.closest(".dx-toolbar-item").addClass(Be),Ze.closest("."+Be).css("maxWidth","none"))},allowDragging:function(Ze){var bt=this.option("groupPanel");return this._isGroupPanelVisible()&&bt.allowColumnDragging&&Ze&&Ze.allowGrouping},getColumnElements:function(){var Ze=this.element();return Ze&&Ze.find("."+tt)},getColumns:function(){return this.getController("columns").getGroupColumns()},getBoundingRect:function(){var Ze=this.element();if(Ze&&Ze.find("."+Ne).length){var bt=Ze.offset();return{top:bt.top,bottom:bt.top+(0,M.Cr)(Ze)}}return null},getName:function(){return"group"},getContextMenuItems:function(Ze){var Wt,bt=this.option("grouping.contextMenuEnabled"),_t=(0,o.Z)(Ze.targetElement).closest("."+tt);if(_t.length&&(Ze.column=_t.data("columnData")),bt&&Ze.column){var Ot=Ze.column;if(!(0,C.$K)(Ot.allowGrouping)||Ot.allowGrouping){var mn=(0,C.$K)(Ot.groupIndex)&&Ot.groupIndex>-1,Ke=this.option("grouping.texts"),pt=Te.bind(this,Ot);Wt=[{text:Ke.ungroup,value:"ungroup",disabled:!mn,onItemClick:pt},{text:Ke.ungroupAll,value:"ungroupAll",onItemClick:pt}]}}return Wt},isVisible:function(){return this.callBase()||this._isGroupPanelVisible()},optionChanged:function(Ze){"groupPanel"===Ze.name?(this._invalidate(),Ze.handled=!0):this.callBase(Ze)}},St={getContextMenuItems:function(Ze){var _t;if(this.option("grouping.contextMenuEnabled")&&Ze.row&&"group"===Ze.row.rowType){var Ot=this._columnsController.columnOption("groupIndex:"+Ze.row.groupIndex);if(Ot&&Ot.allowGrouping){var qt=this.option("grouping.texts"),mn=Te.bind(this,Ot);(_t=[]).push({text:qt.ungroup,value:"ungroup",onItemClick:mn},{text:qt.ungroupAll,value:"ungroupAll",onItemClick:mn})}}return _t},_rowClick:function(Ze){var bt=this.option("grouping.expandMode"),Wt="infinite"!==this.option("scrolling.mode")&&"rowClick"===bt&&(0,o.Z)(Ze.event.target).closest(".dx-group-row").length,Ot=(0,o.Z)(Ze.event.target).closest(".dx-datagrid-expand").length;(Wt||Ot)&&this._changeGroupRowState(Ze),this.callBase(Ze)},_changeGroupRowState:function(Ze){var bt=this.getController("data"),_t=bt.items()[Ze.rowIndex],Wt=this._columnsController.columnOption("groupIndex:"+_t.groupIndex,"allowCollapsing");("data"===_t.rowType||"group"===_t.rowType&&!1!==Wt)&&(bt.changeRowExpand(_t.key,!0),Ze.event.preventDefault(),Ze.handled=!0)}},Ct={getContextMenuItems:function(Ze){var bt=this.option("grouping.contextMenuEnabled"),_t=this.callBase(Ze);if(bt&&Ze.row&&("header"===Ze.row.rowType||"detailAdaptive"===Ze.row.rowType)){var Wt=Ze.column;if(!Wt.command&&(!(0,C.$K)(Wt.allowGrouping)||Wt.allowGrouping)){var Ot=this.option("grouping.texts"),qt=(0,C.$K)(Wt.groupIndex)&&Wt.groupIndex>-1,mn=Te.bind(this,Wt);(_t=_t||[]).push({text:Ot.groupByThisColumn,value:"group",beginGroup:!0,disabled:qt,onItemClick:mn}),Wt.showWhenGrouped&&_t.push({text:Ot.ungroup,value:"ungroup",disabled:!qt,onItemClick:mn}),_t.push({text:Ot.ungroupAll,value:"ungroupAll",onItemClick:mn})}}return _t}};d.Z.registerModule("grouping",{defaultOptions:function(){return{grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:re.Z.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:re.Z.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:re.Z.format("dxDataGrid-groupHeaderText"),ungroup:re.Z.format("dxDataGrid-ungroupHeaderText"),ungroupAll:re.Z.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:re.Z.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}},extenders:{controllers:{data:xe,columns:{_getExpandColumnOptions:function(){var Ze=this.callBase.apply(this,arguments);return Ze.cellTemplate=d.Z.getExpandCellTemplate(),Ze}},editing:{_isProcessedItem:function(Ze){return(0,C.$K)(Ze.groupIndex)&&(0,C.HD)(Ze.rowType)&&0===Ze.rowType.indexOf("group")}}},views:{headerPanel:Ye,rowsView:St,columnHeadersView:Ct}}});var Rt=l(6264);d.Z.registerModule("masterDetail",Rt.h);var fn=l(8543);d.Z.registerModule("editorFactory",fn.V);var ct=l(260);d.Z.registerModule("editing",(0,a.l)(!0,{},ct.X,{extenders:{controllers:{data:{_changeRowExpandCore:function(Ze){var bt=this._editingController;return Array.isArray(Ze)&&bt&&bt.refresh(),this.callBase.apply(this,arguments)}}}}}));var He=l(9057);d.Z.registerModule("editingRowBased",He.j);var Dt=l(8968);d.Z.registerModule("editingFormBased",Dt.F);var qe=l(3098);d.Z.registerModule("editingCellBased",qe.Z);var Ht=l(7867);d.Z.registerModule("validating",Ht.n);var dt=l(7031);d.Z.registerModule("virtualScrolling",dt.b),O.extend(dt.b.extenders.dataSourceAdapter);var ht=l(275);d.Z.registerModule("filterRow",ht.b);var yt=l(2314);d.Z.registerModule("headerFilter",yt.O);var Ft=l(5841);d.Z.registerModule("filterSync",Ft.H);var bn=l(7963);d.Z.registerModule("filterBuilder",bn.z);var _n=l(9624);d.Z.registerModule("filterPanel",_n.o);var xn=l(5542);d.Z.registerModule("search",xn.C);var Jn=l(237);d.Z.registerModule("pager",Jn.N);var li=l(6359);d.Z.registerModule("columnsResizingReordering",li.s);var ti=l(6726);d.Z.registerModule("keyboardNavigation",ti.U);var Wn=l(5004);function Yi(Ze,bt,_t,Wt){var Ot=0;if(Ze<bt)for(;Ot<_t.items.length;Ot++)Yi(Ze+1,bt,_t.items[Ot],Wt);Ze===bt&&Wt(_t)}function On(Ze,bt){var _t;if("map"in Ze)return Ze.map(bt);var Wt=new Array(Ze.length);for(_t in Ze)Wt[_t]=bt(Ze[_t],_t);return Wt}function ni(Ze){return Ze===ge.bG.count}function di(Ze){var bt=(0,se.vb)(Ze.selector),_t=!("skipEmptyValues"in Ze)||Ze.skipEmptyValues,Wt=Ze.aggregator;if("string"==typeof Wt&&!(Wt=ge.bG[Wt]))throw Ee.R0.Error("E4001",Ze.aggregator);return{selector:bt,aggregator:Wt,skipEmptyValues:_t}}const Hi=Fe.Z.inherit({ctor:function(Ze){this._data=Ze.data,this._groupLevel=Ze.groupLevel||0,this._totalAggregates=On(Ze.totalAggregates||[],di),this._groupAggregates=On(Ze.groupAggregates||[],di),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(Ze,bt,_t){for(var Wt=bt.items?bt.items.length:0,Ot=0;Ot<Ze.length;Ot++)if(ni(Ze[Ot].aggregator))_t[Ot]=(_t[Ot]||0)+Wt;else for(var qt=0;qt<Wt;qt++)this._accumulate(Ot,Ze[Ot],_t,bt.items[qt])},_calculateTotals:function(Ze,bt){if(0===Ze&&(this._totals=this._seed(this._totalAggregates)),Ze===this._groupLevel)this._aggregate(this._totalAggregates,bt,this._totals);else for(var _t=0;_t<bt.items.length;_t++)this._calculateTotals(Ze+1,bt.items[_t]);0===Ze&&(this._totals=this._finalize(this._totalAggregates,this._totals))},_calculateGroups:function(Ze){var bt=this._groupLevel,_t=bt+1,Wt=this._seed.bind(this,this._groupAggregates),Ot=this._aggregate.bind(this,this._groupAggregates),qt=this._finalize.bind(this,this._groupAggregates);function mn(Ke){Ke.aggregates=Wt(_t-1),_t===bt?Ot(Ke,Ke.aggregates):Yi(_t,bt,Ke,function(pt){Ot(pt,Ke.aggregates)}),Ke.aggregates=qt(Ke.aggregates)}for(;--_t>0;)Yi(0,_t,Ze,mn)},_seed:function(Ze,bt){return On(Ze,function(_t){var Wt=_t.aggregator;return"seed"in Wt?(0,C.mf)(Wt.seed)?Wt.seed(bt):Wt.seed:NaN})},_accumulate:function(Ze,bt,_t,Wt){var Ot=bt.selector(Wt),qt=bt.aggregator;bt.skipEmptyValues&&function ei(Ze){return Ze!=Ze||""===Ze||null==Ze}(Ot)||(_t[Ze]=_t[Ze]!=_t[Ze]?Ot:qt.step(_t[Ze],Ot))},_finalize:function(Ze,bt){return On(Ze,function(_t,Wt){var Ot=_t.aggregator.finalize;return Ot?Ot(bt[Wt]):bt[Wt]})}});var yn="dx-datagrid-group-footer",Si="dx-footer-row",ji="groupFooter",lr="totalFooter",Dr=function(Ze,bt){var _t=(0,o.Z)(Ze),Wt=bt.column,Ot=bt.summaryItems,qt=[];if(!Wt.command&&Ot){for(var mn=0;mn<Ot.length;mn++){var Ke=Ot[mn];qt.push((0,o.Z)("<div>").css("textAlign",Ke.alignment||Wt.alignment).addClass("dx-datagrid-summary-item").addClass("dx-datagrid-text-content").addClass(Ke.cssClass).toggleClass("dx-datagrid-group-text-content","group"===bt.rowType).text(d.Z.getSummaryText(Ke,bt.summaryTexts)))}_t.append(qt)}},kr=function(Ze,bt){var _t=Ze.option("summary.texts")||{};return{totalItem:bt.row,summaryItems:bt.row.summaryCells[bt.columnIndex],summaryTexts:_t}},zr=function(Ze){return Ze.summary||Ze.aggregates||[]},Gr=function(Ze){return Ze.option("summary.recalculateWhileEditing")},xr=Wn.p.inherit({_getRows:function(){return this._dataController.footerItems()},_getCellOptions:function(Ze){return(0,a.l)(this.callBase(Ze),kr(this,Ze))},_renderCellContent:function(Ze,bt){Dr(Ze,bt),this.callBase.apply(this,arguments)},_renderCore:function(Ze){var bt=!1,_t=this._dataController.footerItems()[0];(!Ze||!Ze.columnIndices)&&(this.element().empty().addClass("dx-datagrid-total-footer").toggleClass("dx-datagrid-nowrap",!this.option("wordWrapEnabled")),bt=!0),_t&&_t.summaryCells&&_t.summaryCells.length&&(this._updateContent(this._renderTable({change:Ze}),Ze),bt&&this._updateScrollLeftPosition())},_updateContent:function(Ze,bt){return bt&&"update"===bt.changeType&&bt.columnIndices?this._waitAsyncTemplates(bt).done(()=>{var _t=this.getTableElement().find(".dx-row"),Wt=Ze.find(".dx-row");this._updateCells(_t,Wt,bt.columnIndices[0])}):this.callBase.apply(this,arguments)},_rowClick:function(Ze){var bt=this._dataController.footerItems()[Ze.rowIndex]||{};this.executeAction("onRowClick",(0,a.l)({},Ze,bt))},_columnOptionChanged:function(Ze){var bt=Ze.optionNames;Ze.changeTypes.grouping||(bt.width||bt.visibleWidth)&&this.callBase(Ze)},_handleDataChanged:function(Ze){var bt=Ze.changeType;"update"===Ze.changeType&&Ze.repaintChangesOnly?Ze.totalColumnIndices?Ze.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[Ze.totalColumnIndices]}):this.render():("refresh"===bt||"append"===bt||"prepend"===bt)&&this.render()},_createRow:function(Ze){var bt=this.callBase.apply(this,arguments);return Ze.rowType===lr&&bt.addClass(Si),bt},getHeight:function(){return this.getElementHeight()},isVisible:function(){return!!this._dataController.footerItems().length}}),Vr={init:function(){this.callBase.apply(this,arguments),this._totalAggregates=[],this._summaryGetter=I.ZT},summaryGetter:function(Ze){if(!arguments.length)return this._summaryGetter;(0,C.mf)(Ze)&&(this._summaryGetter=Ze)},summary:function(Ze){if(!arguments.length)return this._summaryGetter();this._summaryGetter=function(){return Ze}},totalAggregates:function(){return this._totalAggregates},isLastLevelGroupItemsPagingLocal:function(){var Ze=this.summary(),bt=Ze&&Ze.sortByGroups();return bt&&bt.length},sortLastLevelGroupItems:function(Ze,bt,_t){var Wt=De.Z.multiLevelGroup((0,de.Z)(Ze),bt).toArray(),Ot=[];return _t.forEach(function(qt){!function mn(Ke,pt,an,hn){hn=hn||[];for(var sn=0;sn<Ke.length;sn++)hn.push(Ke[sn].key),1===pt?an(hn,Ke[sn].items):mn(Ke[sn].items,pt-1,an,hn),hn.pop()}(Wt,bt.length,function(mn,Ke){qt.toString()===mn.toString()&&(Ot=Ot.concat(Ke))})}),Ot}},Nr=function(){var Ze=function(_t,Wt,Ot,qt){var mn;if(Gr(_t)){var Ke=_t.getController("editing");if(Ke){var pt=Ke.getInsertedData();pt.length&&(Ot=function hn(sn,Nn,Yn){return Yn?hn(sn,Nn.map(st=>({items:[st]}),Yn-1)):sn.concat(Nn)}(Ot,pt,qt));var an=Ke.getRemovedData();an.length&&(Ot=function hn(sn,Nn,Yn){return Yn?sn.map(st=>{var Vt={},rn=hn(st.items||[],Nn,Yn-1);return Object.defineProperty(Vt,"aggregates",{get:()=>st.aggregates,set:Dn=>{st.aggregates=Dn}}),(0,a.l)(Vt,st,{items:rn})}):sn.filter(st=>Nn.indexOf(st)<0)}(Ot,an,qt))}}return Wt&&(mn=new Hi({totalAggregates:Wt.totalAggregates,groupAggregates:Wt.groupAggregates,data:Ot,groupLevel:qt})).calculate(),mn?mn.totalAggregates():[]},bt=function(_t,Wt,Ot){var qt=Ot&&Ot.sortByGroups&&Ot.sortByGroups();return qt&&qt.length?function mn(Ke,pt,an){if(!Ke||!pt.length)return Ke;var Nn,sn=an[0];return pt[0]&&sn&&sn.length&&(Nn=(0,de.Z)(Ke),(0,f.S6)(sn,function(Yn){Nn=0===Yn?Nn.sortBy(this.selector,this.desc):Nn.thenBy(this.selector,this.desc)}),Nn.enumerate().done(function(Yn){Ke=Yn})),pt=pt.slice(1),an=an.slice(1),pt.length&&an.length&&(0,f.S6)(Ke,function(){this.items=mn(this.items,pt,an)}),Ke}(_t,Wt,qt):_t};return{_customizeRemoteOperations:function(_t){var Wt=this.summary();Wt&&(_t.remoteOperations.summary?(!_t.isCustomLoading||_t.storeLoadOptions.isLoadingAll)&&(_t.storeLoadOptions.group&&(_t.remoteOperations.grouping?_t.storeLoadOptions.groupSummary=Wt.groupAggregates:Wt.groupAggregates.length&&(_t.remoteOperations.paging=!1)),_t.storeLoadOptions.totalSummary=Wt.totalAggregates):(Wt.totalAggregates.length||Wt.groupAggregates.length&&_t.storeLoadOptions.group)&&(_t.remoteOperations.paging=!1)),this.callBase.apply(this,arguments);var Ot=_t.cachedData.extra;Ot&&Ot.summary&&!_t.isCustomLoading&&(_t.storeLoadOptions.totalSummary=void 0)},_handleDataLoadedCore:function(_t){var Wt=(0,ge.G5)(_t.storeLoadOptions.group||_t.loadOptions.group||[]),Ot=_t.remoteOperations||{},qt=this.summaryGetter()(Ot);if(!_t.isCustomLoading||_t.storeLoadOptions.isLoadingAll)if(Ot.summary)!Ot.paging&&Wt.length&&qt&&(Ot.grouping||Ze(this,{groupAggregates:qt.groupAggregates},_t.data,Wt.length),_t.data=bt(_t.data,Wt,qt));else if(!Ot.paging&&qt){var mn,Ke,pt=_t.operationTypes||{};if(!Object.keys(pt).some(sn=>pt[sn])||null===(mn=_t.cachedData)||void 0===mn||null===(Ke=mn.extra)||void 0===Ke||!Ke.summary||Wt.length&&qt.groupAggregates.length){var hn=Ze(this,qt,_t.data,Wt.length);_t.extra=(0,C.PO)(_t.extra)?_t.extra:{},_t.extra.summary=hn,_t.cachedData&&(_t.cachedData.extra=_t.extra)}_t.data=bt(_t.data,Wt,qt)}_t.isCustomLoading||(this._totalAggregates=_t.extra&&_t.extra.summary||this._totalAggregates),this.callBase(_t)}}}();O.extend(Vr),O.extend(Nr),d.Z.registerModule("summary",{defaultOptions:function(){return{summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,recalculateWhileEditing:!1,texts:{sum:re.Z.format("dxDataGrid-summarySum"),sumOtherColumn:re.Z.format("dxDataGrid-summarySumOtherColumn"),min:re.Z.format("dxDataGrid-summaryMin"),minOtherColumn:re.Z.format("dxDataGrid-summaryMinOtherColumn"),max:re.Z.format("dxDataGrid-summaryMax"),maxOtherColumn:re.Z.format("dxDataGrid-summaryMaxOtherColumn"),avg:re.Z.format("dxDataGrid-summaryAvg"),avgOtherColumn:re.Z.format("dxDataGrid-summaryAvgOtherColumn"),count:re.Z.format("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}},views:{footerView:xr},extenders:{controllers:{data:{_isDataColumn:function(Ze){return Ze&&(!(0,C.$K)(Ze.groupIndex)||Ze.showWhenGrouped)},_isGroupFooterVisible:function(){for(var Ze=this.option("summary.groupItems")||[],bt=0;bt<Ze.length;bt++){var _t=Ze[bt],Wt=this._columnsController.columnOption(_t.showInColumn||_t.column);if(_t.showInGroupFooter&&this._isDataColumn(Wt))return!0}return!1},_processGroupItems:function(Ze,bt,_t){var Wt=_t&&_t.data,Ot=this.callBase.apply(this,arguments);return _t&&(void 0===_t.isGroupFooterVisible&&(_t.isGroupFooterVisible=this._isGroupFooterVisible()),Wt&&Wt.items&&_t.isGroupFooterVisible&&(_t.collectContinuationItems||!Wt.isContinuationOnNextPage)&&Ot.push({rowType:ji,key:_t.path.slice(),data:Wt,groupIndex:_t.path.length-1,values:[]})),Ot},_processGroupItem:function(Ze,bt){var _t=this;if(bt.summaryGroupItems||(bt.summaryGroupItems=_t.option("summary.groupItems")||[]),"group"===Ze.rowType){var Wt=-1,Ot=-1;(0,f.S6)(bt.visibleColumns,function(qt){Ze.groupIndex===this.groupIndex&&(Wt=this.index),qt>0&&"expand"===bt.visibleColumns[qt-1].command&&"expand"!==this.command&&(Ot=this.index)}),Ze.summaryCells=this._calculateSummaryCells(bt.summaryGroupItems,zr(Ze.data),bt.visibleColumns,function(qt,mn){return qt.showInGroupFooter?-1:qt.alignByColumn&&mn&&!(0,C.$K)(mn.groupIndex)&&mn.index!==Ot?mn.index:Wt},!0)}return Ze.rowType===ji&&(Ze.summaryCells=this._calculateSummaryCells(bt.summaryGroupItems,zr(Ze.data),bt.visibleColumns,function(qt,mn){return qt.showInGroupFooter&&_t._isDataColumn(mn)?mn.index:-1})),Ze},_calculateSummaryCells:function(Ze,bt,_t,Wt,Ot){var qt=this,mn=[],Ke={};return(0,f.S6)(Ze,function(pt,an){var hn=qt._columnsController.columnOption(an.column),sn=an.showInColumn&&qt._columnsController.columnOption(an.showInColumn)||hn,Nn=Wt(an,sn);if(Nn>=0){Ke[Nn]||(Ke[Nn]=[]);var st,Yn=bt[pt];Yn==Yn&&((0,C.$K)(an.valueFormat)?st=an.valueFormat:"count"!==an.summaryType&&(st=d.Z.getFormatByDataType(hn&&hn.dataType)),Ke[Nn].push((0,a.l)({},an,{value:(0,C.HD)(Yn)&&hn&&hn.deserializeValue?hn.deserializeValue(Yn):Yn,valueFormat:st,columnCaption:hn&&hn.index!==Nn?hn.caption:void 0})))}}),(0,C.Qr)(Ke)||_t.forEach((pt,an)=>{var hn=_t[an-1];mn.push(Ke[!Ot||"expand"!==hn?.command&&"expand"!==pt.command?pt.index:hn?.index]||[])}),mn},_getSummaryCells:function(Ze,bt){var _t=this;return _t._calculateSummaryCells(Ze,bt,_t._columnsController.getVisibleColumns(),function(Ot,qt){return _t._isDataColumn(qt)?qt.index:-1})},_updateItemsCore:function(Ze){var bt,_t=this._dataSource,Wt=this._footerItems,Ot=Wt&&Wt[0]&&Wt[0].summaryCells,qt=this.option("summary.totalItems");if(this._footerItems=[],_t&&qt&&qt.length){var mn=_t.totalAggregates();bt=this._getSummaryCells(qt,mn),Ze&&Ze.repaintChangesOnly&&Ot&&(Ze.totalColumnIndices=bt.map(function(Ke,pt){return JSON.stringify(Ke)!==JSON.stringify(Ot[pt])?pt:-1}).filter(Ke=>Ke>=0)),bt.length&&this._footerItems.push({rowType:lr,summaryCells:bt})}this.callBase(Ze)},_prepareUnsavedDataSelector:function(Ze){if(Gr(this)){var bt=this.getController("editing");if(bt)return function(_t){return _t=bt.getUpdatedData(_t),Ze(_t)}}return Ze},_prepareAggregateSelector:function(Ze,bt){return Ze=this._prepareUnsavedDataSelector(Ze),"avg"===bt||"sum"===bt?function(_t){var Wt=Ze(_t);return(0,C.$K)(Wt)?Number(Wt):Wt}:Ze},_getAggregates:function(Ze,bt){var _t=this,Wt=_t.getController("columns"),Ot=_t.option("summary.calculateCustomSummary"),qt=_t.option("summary.skipEmptyValues");return(0,f.UI)(Ze||[],function(mn){var Ke=Wt.columnOption(mn.column),pt=Ke&&Ke.calculateCellValue?Ke.calculateCellValue.bind(Ke):(0,se.vb)(Ke?Ke.dataField:mn.column),an=mn.summaryType||"count",hn=(0,C.$K)(mn.skipEmptyValues)?mn.skipEmptyValues:qt;if(bt)return{selector:mn.column,summaryType:an};var sn=_t._prepareAggregateSelector(pt,an);if("custom"===an){Ot||(y.Z.log("E1026"),Ot=function(){});var Nn={component:_t.component,name:mn.name};Ot(Nn),Nn.summaryProcess="calculate",an={seed:function(Yn){return Nn.summaryProcess="start",Nn.totalValue=void 0,Nn.groupIndex=Yn,delete Nn.value,Ot(Nn),Nn.totalValue},step:function(Yn,st){return Nn.summaryProcess="calculate",Nn.totalValue=Yn,Nn.value=st,Ot(Nn),Nn.totalValue},finalize:function(Yn){return Nn.summaryProcess="finalize",Nn.totalValue=Yn,delete Nn.value,Ot(Nn),Nn.totalValue}}}return{selector:sn,aggregator:an,skipEmptyValues:hn}})},_addSortInfo:function(Ze,bt,_t,Wt){if(bt){var Ot=bt.groupIndex;Wt=Wt||bt.sortOrder,(0,C.$K)(Ot)&&(Ze[Ot]=Ze[Ot]||[],Ze[Ot].push({selector:_t,desc:"desc"===Wt}))}},_findSummaryItem:function(Ze,bt){var _t=-1;return(0,C.$K)(bt)&&(0,f.S6)(Ze||[],function(Wt){if(this.name===bt||Wt===bt||this.summaryType===bt||this.column===bt||(mn=this.column,((qt=this.summaryType)&&mn&&qt+"_"+mn)===bt))return _t=Wt,!1;var qt,mn}),_t},_getSummarySortByGroups:function(Ze,bt){var _t=this,Wt=_t._columnsController,Ot=Wt.getGroupColumns(),qt=[];if(bt&&bt.length)return(0,f.S6)(Ze||[],function(){var mn=this.sortOrder,Ke=this.groupColumn,pt=_t._findSummaryItem(bt,this.summaryItem);if(!(pt<0)){var an=function(hn){return zr(hn)[pt]};(0,C.$K)(Ke)?(Ke=Wt.columnOption(Ke),_t._addSortInfo(qt,Ke,an,mn)):(0,f.S6)(Ot,function(hn,sn){_t._addSortInfo(qt,sn,an,mn)})}}),qt},_createDataSourceAdapterCore:function(Ze,bt){var _t=this,Wt=this.callBase(Ze,bt);return Wt.summaryGetter(function(Ot){return _t._getSummaryOptions(Ot||bt)}),Wt},_getSummaryOptions:function(Ze){var bt=this,_t=bt.option("summary.groupItems"),Wt=bt.option("summary.totalItems"),Ot=bt.option("sortByGroupSummaryInfo"),qt=bt._getAggregates(_t,Ze&&Ze.grouping&&Ze.summary),mn=bt._getAggregates(Wt,Ze&&Ze.summary);if(qt.length||mn.length)return{groupAggregates:qt,totalAggregates:mn,sortByGroups:function(){return bt._getSummarySortByGroups(Ot,_t)}}},publicMethods:function(){var Ze=this.callBase();return Ze.push("getTotalSummaryValue"),Ze},getTotalSummaryValue:function(Ze){var bt=this._findSummaryItem(this.option("summary.totalItems"),Ze),_t=this._dataSource.totalAggregates();if(_t.length&&bt>-1)return _t[bt]},optionChanged:function(Ze){("summary"===Ze.name||"sortByGroupSummaryInfo"===Ze.name)&&(Ze.name="dataSource"),this.callBase(Ze)},init:function(){this._footerItems=[],this.callBase()},footerItems:function(){return this._footerItems}},editing:{_refreshSummary:function(){Gr(this)&&!this.isSaving()&&this._dataController.refresh({load:!0,changesOnly:!0})},_addChange:function(Ze){var bt=this.callBase.apply(this,arguments);return Ze.type&&this._refreshSummary(),bt},_removeChange:function(){var Ze=this.callBase.apply(this,arguments);return this._refreshSummary(),Ze},cancelEditData:function(){var Ze=this.callBase.apply(this,arguments);return this._refreshSummary(),Ze}}},views:{rowsView:{_createRow:function(Ze){var bt=this.callBase.apply(this,arguments);return Ze&&bt.addClass(Ze.rowType===ji?yn:""),bt},_renderCells:function(Ze,bt){this.callBase.apply(this,arguments),"group"===bt.row.rowType&&bt.row.summaryCells&&bt.row.summaryCells.length&&this._renderGroupSummaryCells(Ze,bt)},_hasAlignByColumnSummaryItems:function(Ze,bt){return!(0,C.$K)(bt.columns[Ze].groupIndex)&&bt.row.summaryCells[Ze].length},_getAlignByColumnCellCount:function(Ze,bt){for(var _t=0,Wt=1;Wt<Ze;Wt++)_t=this._hasAlignByColumnSummaryItems(bt.row.summaryCells.length-Wt,bt)?Wt:_t;return _t},_renderGroupSummaryCells:function(Ze,bt){var _t=Ze.children().last(),Wt=Number(_t.attr("colSpan"))||1,Ot=this._getAlignByColumnCellCount(Wt,bt);this._renderGroupSummaryCellsCore(_t,bt,Wt,Ot)},_renderGroupSummaryCellsCore:function(Ze,bt,_t,Wt){if(Wt>0){Ze.attr("colSpan",_t-Wt);for(var Ot=0;Ot<Wt;Ot++){var qt=bt.columns.length-Wt+Ot;this._renderCell(Ze.parent(),(0,a.l)({column:bt.columns[qt],columnIndex:this._getSummaryCellIndex(qt,bt.columns)},bt))}}},_getSummaryCellIndex:function(Ze){return Ze},_getCellTemplate:function(Ze){return!Ze.column.command&&!(0,C.$K)(Ze.column.groupIndex)&&Ze.summaryItems&&Ze.summaryItems.length?Dr:this.callBase(Ze)},_getCellOptions:function(Ze){var bt=this.callBase(Ze);return Ze.row.summaryCells?(0,a.l)(bt,kr(this,Ze)):bt}}}}});var Tr=l(4047);d.Z.registerModule("columnFixing",Tr.N);var so=l(8395);d.Z.registerModule("adaptivity",so.X);var Er=l(7209);d.Z.registerModule("virtualColumns",Er.t);var oo=l(4817),fi=l(5450),ir=l(6314),Kr=l(8606),to=l(9589),At=(l(219),l(854),l(4137)),$n="dx-datagrid-export-button",gi=Fe.Z.inherit({ctor:function(Ze,bt,_t){this._exportController=Ze,this._initialColumnWidthsByColumnIndex=bt,this._selectedRowsOnly=_t},_getGroupValue:function(Ze){var{key:bt,data:_t,rowType:Wt,groupIndex:Ot,summaryCells:qt}=Ze,mn=this._options.groupColumns[Ot],Ke=d.Z.getDisplayValue(mn,mn.deserializeValue?mn.deserializeValue(bt[Ot]):bt[Ot],_t,Wt),pt=mn.caption+": "+d.Z.formatValue(Ke,mn);return qt&&qt[0]&&qt[0].length&&(pt+=" "+d.Z.getGroupRowSummaryText(qt[0],this._options.summaryTexts)),pt},_correctCellIndex:function(Ze){return Ze},_initOptions:function(){var Ze=this._exportController,bt=Ze._columnsController.getGroupColumns(),_t=Ze.option("export.excelWrapTextEnabled");this._options={columns:Ze._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:bt,items:this._selectedRowsOnly||Ze._selectionOnly?Ze._getSelectedItems():Ze._getAllItems(),getVisibleIndex:Ze._columnsController.getVisibleIndex.bind(Ze._columnsController),isHeadersVisible:Ze.option("showColumnHeaders"),summaryTexts:Ze.option("summary.texts"),customizeExportData:Ze.option("customizeExportData"),rtlEnabled:Ze.option("rtlEnabled"),wrapTextEnabled:(0,C.$K)(_t)?_t:!!Ze.option("wordWrapEnabled"),customizeExcelCell:Ze.option("export.customizeExcelCell")}},hasCustomizeExcelCell:function(){return(0,C.$K)(this._options.customizeExcelCell)},customizeExcelCell:function(Ze,bt){this._options.customizeExcelCell&&(Ze.gridCell=bt,(0,C.$K)(this._exportController)&&(0,C.$K)(this._exportController.component)&&(Ze.component=this._exportController.component),this._options.customizeExcelCell(Ze))},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:(0,fi.q)(this._options.rtlEnabled)}},getColumnStyles(){var Ze=this._options.wrapTextEnabled,bt=[];return this.getColumns().forEach(_t=>{bt.push({alignment:_t.alignment||"left",format:_t.format,wrapText:Ze,dataType:_t.dataType})}),bt},getStyles:function(){return[...this.getHeaderStyles(),...this.getColumnStyles(),this.getGroupRowStyle()]},_getTotalCellStyleId:function(Ze){var bt,_t=(null===(bt=this.getColumns()[Ze])||void 0===bt?void 0:bt.alignment)||"right";return this.getHeaderStyles().map(Wt=>Wt.alignment).indexOf(_t)},getStyleId:function(Ze,bt){return Ze<this.getHeaderRowCount()?0:this.isTotalCell(Ze-this.getHeaderRowCount(),bt)?this._getTotalCellStyleId(bt):this.isGroupRow(Ze-this.getHeaderRowCount())?this.getHeaderStyles().length+this.getColumns().length:bt+this.getHeaderStyles().length},getColumns:function(Ze){var{columns:bt}=this._options;return Ze?bt:bt[bt.length-1]},getColumnsWidths:function(){var Ze=this.getColumns();return(0,C.$K)(Ze)?Ze.map(bt=>bt.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(Ze){return Ze<this._options.items.length&&"group"===this._options.items[Ze].rowType},getGroupLevel:function(Ze){var bt=this._options.items[Ze-this.getHeaderRowCount()],_t=bt&&bt.groupIndex;return bt&&"totalFooter"===bt.rowType?0:(0,C.$K)(_t)?_t:this._options.groupColumns.length},getCellType:function(Ze,bt){var _t=this.getColumns();if(Ze<this.getHeaderRowCount())return"string";if(Ze-=this.getHeaderRowCount(),bt<_t.length){var Wt=this._options.items.length&&this._options.items[Ze],Ot=_t[bt];return Wt&&"data"===Wt.rowType&&isFinite(Wt.values[this._correctCellIndex(bt)])&&!(0,C.$K)(Ot.customizeText)?(0,C.$K)(Ot.lookup)?Ot.lookup.dataType:Ot.dataType:"string"}},ready:function(){var Ze=this;Ze._initOptions();var bt=Ze._options;return(0,Ae.gx)(bt.items).done(function(_t){bt.customizeExportData&&bt.customizeExportData(Ze.getColumns(Ze.getHeaderRowCount()>1),_t),bt.items=_t}).fail(function(){bt.items=[]})},_convertFromGridGroupSummaryItems:function(Ze){if((0,C.$K)(Ze)&&Ze.length>0)return Ze.map(function(bt){return{value:bt.value,name:bt.name}})},getCellData:function(Ze,bt,_t){var Wt,Ot,qt={cellSourceData:{},value:Wt},mn=this.getColumns(),Ke=this._correctCellIndex(bt);if(Ze<this.getHeaderRowCount())Ot=this.getColumns(!0)[Ze][bt],qt.cellSourceData.rowType="header",qt.cellSourceData.column=Ot&&Ot.gridColumn,qt.value=Ot&&Ot.caption;else{Ze-=this.getHeaderRowCount();var an=this._options.items.length&&this._options.items[Ze];if(an){var hn=an.values;switch(qt.cellSourceData.rowType=an.rowType,qt.cellSourceData.column=mn[bt]&&mn[bt].gridColumn,an.rowType){case"groupFooter":case"totalFooter":Ke<hn.length&&((0,C.$K)(Wt=hn[Ke])?(qt.cellSourceData.value=Wt.value,qt.cellSourceData.totalSummaryItemName=Wt.name,qt.value=d.Z.getSummaryText(Wt,this._options.summaryTexts)):qt.cellSourceData.value=void 0);break;case"group":if(qt.cellSourceData.groupIndex=an.groupIndex,bt<1)qt.cellSourceData.column=this._options.groupColumns[an.groupIndex],qt.cellSourceData.value=an.key[an.groupIndex],qt.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(an.summaryCells[0]),qt.value=this._getGroupValue(an);else{var sn=an.values[Ke];if(Array.isArray(sn)){qt.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(sn),Wt="";for(var Nn=0;Nn<sn.length;Nn++)Wt+=(Nn>0?_t?"\n":" \n ":"")+d.Z.getSummaryText(sn[Nn],this._options.summaryTexts);qt.value=Wt}else qt.cellSourceData.value=void 0}break;default:if(Ot=mn[bt]){var Yn=hn[Ke],st=d.Z.getDisplayValue(Ot,Yn,an.data,an.rowType);qt.value=!isFinite(st)||(0,C.$K)(Ot.customizeText)?_t&&(0,C.$K)(Ot.customizeText)&&Ot.customizeText===this._exportController._columnsController.getCustomizeTextByDataType("boolean")?st:d.Z.formatValue(st,Ot):st,qt.cellSourceData.value=Yn}qt.cellSourceData.data=an.data}}}return qt},isHeadersVisible:function(){return this._options.isHeadersVisible},isTotalCell:function(Ze,bt){var Wt=this._options.items[Ze],Ot=this._correctCellIndex(bt);return Wt&&"groupFooter"===Wt.rowType||"totalFooter"===Wt.rowType||Wt.summaryCells&&Wt.summaryCells[Ot]&&Wt.summaryCells[Ot].length>0&&Wt.summaryCells[Ot][0].alignByColumn},getCellMerging:function(Ze,bt){var _t=this._options.columns,Wt=_t[Ze]&&_t[Ze][bt];return Wt?{colspan:(Wt.exportColspan||1)-1,rowspan:(Wt.rowspan||1)-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){return{x:0,y:this.getHeaderRowCount()}}}),Ri=d.Z.ViewController.inherit({}).inherit({_getEmptyCell:function(){return{caption:"",colspan:1,rowspan:1}},_updateColumnWidth:function(Ze,bt){Ze.width=bt},_getColumns:function(Ze){var _t,Wt,bt=[],Ot=this._columnsController,qt=Ot.getRowCount();for(_t=0;_t<=qt;_t++){var mn=[];Wt=Ot.getVisibleColumns(_t,!0);var Ke=void 0;if(_t===qt)if(this._updateLockCount)Ke=Ze;else{var pt=this._getColumnWidths(this._headersView,this._rowsView);if(pt&&pt.length){Ke={};for(var an=0;an<Wt.length;an++)Ke[Wt[an].index]=pt[an]}}for(var hn=0;hn<Wt.length;hn++){var sn=(0,a.l)({},Wt[hn],{dataType:"datetime"===Wt[hn].dataType?"date":Wt[hn].dataType,gridColumn:Wt[hn]});if(this._needColumnExporting(sn)){var Nn=this._calculateExportColspan(sn);(0,C.$K)(Nn)&&(sn.exportColspan=Nn),Ke&&this._updateColumnWidth(sn,Ke[sn.index]),mn.push(sn)}}bt.push(mn)}return Wt=bt[qt],(bt=(0,ir.$)(bt.slice(0,-1),this._getEmptyCell())).push(Wt),bt},_calculateExportColspan:function(Ze){if(Ze.isBand){var bt=this._columnsController.getChildrenByBandColumn(Ze.index,!0);if((0,C.$K)(bt))return bt.reduce((_t,Wt)=>this._needColumnExporting(Wt)?_t+(this._calculateExportColspan(Wt)||1):_t,0)}},_needColumnExporting:function(Ze){return!Ze.command&&(Ze.allowExporting||void 0===Ze.allowExporting)},_getFooterSummaryItems:function(Ze,bt){var _t=[],Wt=1,Ot=0;do{for(var qt=[],mn=0;mn<Ze.length;mn++){var Ke=Ze[mn],pt=Ke.length;Wt<pt&&(Wt=pt),qt.push(Ke[Ot])}_t.push({values:qt,rowType:bt?"totalFooter":"groupFooter"})}while(Ot++<Wt-1);return _t},_hasSummaryGroupFooters:function(){var Ze=this.option("summary.groupItems");if((0,C.$K)(Ze))for(var bt=0;bt<Ze.length;bt++)if(Ze[bt].showInGroupFooter)return!0;return!1},_getItemsWithSummaryGroupFooters:function(Ze){for(var bt=[],_t=[],Wt=[],Ot=0;Ot<Ze.length;Ot++){var qt=Ze[Ot];"groupFooter"===qt.rowType?(Wt=this._getFooterSummaryItems(qt.summaryCells),bt=bt.concat(_t,Wt),_t=[]):_t.push(qt)}return bt.length?bt:_t},_updateGroupValuesWithSummaryByColumn:function(Ze){for(var bt=[],_t=0;_t<Ze.length;_t++){var Wt=Ze[_t],Ot=Wt.summaryCells;if("group"===Wt.rowType&&Ot&&Ot.length>1){for(var qt=Wt.values.length,mn=1;mn<Ot.length;mn++)for(var Ke=0;Ke<Ot[mn].length;Ke++){var pt=Ot[mn][Ke];pt&&pt.alignByColumn&&(Array.isArray(bt[mn-qt])||(bt[mn-qt]=[]),bt[mn-qt].push(pt))}bt.length>0&&(Wt.values.push(...bt),bt=[])}}},_processUnExportedItems:function(Ze){for(var Wt,Ot,bt=this._columnsController.getVisibleColumns(null,!0),_t=this._columnsController.getGroupColumns(),qt=0;qt<Ze.length;qt++){var mn=Ze[qt],Ke=!1;Wt=[],Ot=[];for(var pt=0;pt<bt.length;pt++){var an=bt[pt];if(Ke||(Ke=["detailExpand","buttons"].includes(an.type)),this._needColumnExporting(an)&&(mn.values&&Wt.push("group"!==mn.rowType||Wt.length?mn.values[pt]:mn.key[mn.groupIndex]),mn.summaryCells))if("group"!==mn.rowType||Ot.length)Ot.push(mn.summaryCells[pt]);else{var hn=pt-_t.length+mn.groupIndex;Ot.push(mn.summaryCells[Ke?hn:hn+1])}}Wt.length&&(mn.values=Wt),Ot.length&&(mn.summaryCells=Ot)}},_getAllItems:function(Ze){var Ke,bt=this,_t=new Ae.BH,Wt=this.getController("data"),Ot=Wt.footerItems(),qt=Ot.length&&Ot[0],mn=bt.option("summary.totalItems");return(0,Ae.gx)(Ze).done(function(pt){Wt.loadAll(pt).done(function(an,hn){bt._updateGroupValuesWithSummaryByColumn(an),bt._hasSummaryGroupFooters()&&(an=bt._getItemsWithSummaryGroupFooters(an)),Ke=qt&&qt.summaryCells,(0,C.$K)(hn)&&mn&&(Ke=bt._getSummaryCells(mn,hn));var sn=qt&&bt._getFooterSummaryItems(Ke,!0);sn&&(an=an.concat(sn)),bt._processUnExportedItems(an),_t.resolve(an)}).fail(_t.reject)}).fail(_t.reject),_t},_getSummaryCells:function(Ze,bt){var _t=this.getController("data");return _t._calculateSummaryCells(Ze,bt,_t._columnsController.getVisibleColumns(null,!0),function(Ot,qt){return _t._isDataColumn(qt)?qt.index:-1})},_getSelectedItems:function(){var bt=this.getController("selection").getSelectedRowsData();return this._getAllItems(bt)},_getColumnWidths:function(Ze,bt){return Ze&&Ze.isVisible()?Ze.getColumnWidths():bt.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(Ze){var _t,bt=this._getColumnWidths(this._headersView,this._rowsView);if(bt&&bt.length){_t={};for(var Wt=this._columnsController.getVisibleColumns(this._columnsController.getRowCount(),!0),Ot=0;Ot<Wt.length;Ot++)_t[Wt[Ot].index]=bt[Ot]}return new gi(this,_t,Ze)},exportToExcel:function(Ze){this._selectionOnly=Ze,(0,Kr.xD)(this.component.getDataProvider(),{fileName:this.option("export.fileName"),format:"xlsx",selectedRowsOnly:!!Ze,autoFilterEnabled:!!this.option("export.excelFilterEnabled"),rtlEnabled:this.option("rtlEnabled"),exportingAction:this.getAction("onExporting"),exportedAction:this.getAction("onExported"),fileSavingAction:this.getAction("onFileSaving")},Kr.Ak.getData)},exportTo:function(Ze,bt){this._selectionOnly=Ze;var _t=this.getAction("onExporting"),Wt={selectedRowsOnly:!!Ze,format:bt,fileName:this.option("export.fileName"),cancel:!1};(0,C.mf)(_t)&&_t(Wt)},publicMethods:function(){return["getDataProvider","exportToExcel"]},selectionOnly:function(Ze){if(!(0,C.$K)(Ze))return this._isSelectedRows;this._isSelectedRows=Ze,this.selectionOnlyChanged.fire()}});d.Z.registerModule("export",{defaultOptions:function(){return{export:{enabled:!1,fileName:"DataGrid",excelFilterEnabled:!1,formats:["xlsx"],excelWrapTextEnabled:void 0,allowExportSelectedData:!1,texts:{exportTo:re.Z.format("dxDataGrid-exportTo"),exportAll:re.Z.format("dxDataGrid-exportAll"),exportSelectedRows:re.Z.format("dxDataGrid-exportSelectedRows")}}}},controllers:{export:Ri},extenders:{controllers:{editing:{callbackNames:function(){var Ze=this.callBase();return(0,C.$K)(Ze)?Ze.push("editingChanged"):["editingChanged"]},_updateEditButtons:function(){this.callBase(),this.editingChanged.fire(this.hasChanges())}}},views:{headerPanel:{_getToolbarItems:function(){var Ze=this.callBase(),bt=this._getExportToolbarButton();return bt&&(Ze.push(bt),this._correctItemsPosition(Ze)),Ze},_getExportToolbarButton:function(){var Ze=this._getExportToolbarItems();if(0===Ze.length)return null;var bt={name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30,options:{items:Ze}};if(1===Ze.length){var _t=(0,oo.Z)({},Ze[0],{hint:Ze[0].text,elementAttr:{class:$n}});bt.widget="dxButton",bt.showText="inMenu",bt.options=_t}else{var Wt={icon:"export",displayExpr:"text",items:Ze,hint:this.option("export.texts.exportTo"),elementAttr:{class:$n},dropDownOptions:{width:"auto",_wrapperClassExternal:"dx-datagrid-export-menu"}};bt.options=Wt,bt.widget="dxDropDownButton",bt.menuItemTemplate=(Ot,qt,mn)=>{this._createComponent((0,o.Z)(mn),At.Z,{items:Ze})}}return bt},_getExportToolbarItems:function(){var Ze,bt=this.option("export"),_t=this.option("export.texts"),Wt=null!==(Ze=this.option("export.formats"))&&void 0!==Ze?Ze:[];if(!bt.enabled)return[];var Ot=[];return Wt.forEach(qt=>{var mn="exportTo",Ke=qt.toUpperCase(),pt="export";"xlsx"===qt&&(mn="exportToExcel",Ke="Excel",pt="xlsxfile"),"pdf"===qt&&(pt="pdffile"),Ot.push({text:(0,to.WU)(_t.exportAll,Ke),icon:pt,onClick:()=>{this._exportController[mn](!1,qt)}}),bt.allowExportSelectedData&&Ot.push({text:(0,to.WU)(_t.exportSelectedRows,Ke),icon:"exportselected",onClick:()=>{this._exportController[mn](!0,qt)}})}),Ot},_correctItemsPosition:function(Ze){Ze.sort(function(bt,_t){return bt.sortIndex-_t.sortIndex})},_isExportButtonVisible:function(){return this.option("export.enabled")},optionChanged:function(Ze){this.callBase(Ze),"export"===Ze.name&&(Ze.handled=!0,this._invalidate())},init:function(){var Ze=this;this.callBase(),this._exportController=this.getController("export"),this._editingController=this.getController("editing"),this._editingController.editingChanged.add(function(bt){Ze.setToolbarItemDisabled("exportButton",bt)})},isVisible:function(){return this.callBase()||this._isExportButtonVisible()}}}}});var or=l(6775),cr=Number.MAX_SAFE_INTEGER||9007199254740991;d.Z.registerModule("focus",(0,a.l)(!0,{},or.W,{extenders:{controllers:{data:{changeRowExpand:function(Ze,bt){if(this.option("focusedRowEnabled")&&Array.isArray(Ze)&&this.isRowExpanded(Ze)){var _t=this.getController("keyboardNavigation");(!bt||!_t.isKeyboardEnabled())&&this._isFocusedRowInsideGroup(Ze)&&this.option("focusedRowKey",Ze)}return this.callBase.apply(this,arguments)},_isFocusedRowInsideGroup:function(Ze){var bt=this.getController("columns"),_t=this.option("focusedRowKey"),Wt=this.getRowIndexByKey(_t),Ot=Wt>=0&&this.getVisibleRows()[Wt],qt=bt.getGroupDataSourceParameters(!0);if(Ot)for(var mn=0;mn<Ze.length;++mn)if((0,se.vb)(qt[mn]&&qt[mn].selector)(Ot.data)!==Ze[mn])return!1;return!0},_getGroupPath:function(Ze,bt){for(var _t=[],Wt=[Ze];Wt&&Wt[0]&&bt;){var Ot=Wt[0];void 0!==Ot.key&&_t.push(Ot.key),Wt=Ot.items,bt--}return _t},_expandGroupByPath:function(Ze,bt,_t){var Wt=new Ae.BH;return _t++,Ze.expandRow(bt.slice(0,_t)).done(function(){_t===bt.length?Wt.resolve():Ze._expandGroupByPath(Ze,bt,_t).done(Wt.resolve).fail(Wt.reject)}).fail(Wt.reject),Wt.promise()},_calculateGlobalRowIndexByGroupedData:function(Ze){var bt=this,_t=bt._dataSource,Wt=bt._generateFilterByKey(Ze),Ot=new Ae.BH,qt=Array.isArray(Ze),mn=_t.group();return qt?Ot.resolve(-1).promise():_t._grouping._updatePagingOptions?(_t.load({filter:bt._concatWithCombinedFilter(Wt),group:mn}).done(function(Ke){if(!Ke||0===Ke.length||!(0,C.$K)(Ke[0].key)||-1===Ke[0].key)return Ot.resolve(-1).promise();var pt=bt._getGroupPath(Ke[0],mn.length);bt._expandGroupByPath(bt,pt,0).done(function(){bt._calculateExpandedRowGlobalIndex(Ot,Ze,pt,mn)}).fail(Ot.reject)}).fail(Ot.reject),Ot.promise()):(bt._calculateGlobalRowIndexByFlatData(Ze,null,!0).done(Ot.resolve).fail(Ot.reject),Ot)},_calculateExpandedRowGlobalIndex:function(Ze,bt,_t,Wt){var an,Ot=ie(_t,{group:Wt}),qt=this._dataSource,mn=this.option("scrolling.mode"),Ke="virtual"===mn||"infinite"===mn,pt=qt.pageSize();qt._grouping._updatePagingOptions({skip:0,take:cr},function(hn,sn){(0,I.bY)(hn.path,_t)&&(an=sn)}),this._calculateGlobalRowIndexByFlatData(bt,Ot).done(function(hn){var sn,Nn;hn<0?Ze.resolve(-1):(sn=(an%pt||pt)+hn-_t.length,Nn=Ke?0:Math.floor(sn/(pt-_t.length))*_t.length,Ze.resolve(sn=an+hn+Nn))}).fail(Ze.reject)}}}}}));var en=l(8702);d.Z.registerModule("rowDragging",en.d);const vn=j},1884:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>po});var At,o=l(8506),c=l(8225),I=l(1828),C=l(6520),f=l(5873),a=l(3487),p=l(913),s=l(8638),u=l(7674),d=At=>At.getMonth()+1,h=(At,tn)=>{var $n=At.getDate(),_i=E("M",At),mi=(0,a.n$)(parseInt(tn),_i.min,_i.max);At.setMonth(mi-1,1);var{min:dn,max:In}=E("dM",At),Zn=(0,a.n$)($n,dn,In);At.setDate(Zn)},g={a:At=>At.getHours()<12?0:1,E:"getDay",y:"getFullYear",M:d,L:d,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},x=(0,f.l)({},(0,s.xe)(),{a:(At,tn)=>{var $n=At.getHours();$n>=12!=!!parseInt(tn)&&At.setHours(($n+12)%24)},d:(At,tn)=>{tn>E("dM",At).max&&At.setMonth(At.getMonth()+1),At.setDate(tn)},h:(At,tn)=>{var $n=At.getHours()>=12;At.setHours(+tn%12+($n?12:0))},M:h,L:h,E:(At,tn)=>{tn<0||At.setDate(At.getDate()-At.getDay()+parseInt(tn))},y:(At,tn)=>{var $n=At.getFullYear(),_i=String(tn).length,mi=String(E("y",At).max).length,dn=parseInt(String($n).substr(0,mi-_i)+tn);At.setFullYear(dn)}}),E=(At,tn,$n)=>{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(tn.getFullYear(),tn.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[$n||At]||_i.getAmPm},O=l(8119),w=l(3479),T=l(4514),k=l(2718),R=l(4505),P=l(2941),B=l(7572),W=l(8204),N=l(9904),V=l(8492),U=["year","day","month","day"],K=["hours","minutes","seconds","milliseconds"],G={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:(At=new Date,new Date(At.getFullYear()+50,At.getMonth(),At.getDate(),23,59,59)),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:U},time:{getStandardPattern:function(){return"HH:mm"},components:K},datetime:{getStandardPattern:function(){var At,tn;return(tn=(0,N.Z)("<input>").attr("type","datetime")).val("2000-01-01T01:01Z"),tn.val()&&(At="yyyy-MM-ddTHH:mmZ"),At||(At="yyyy-MM-ddTHH:mm:ssZ"),G.FORMATS_INFO.datetime.getStandardPattern=function(){return At},At},components:[...U,...K]},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:[...U,"hours","minutes","seconds"]}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(At,tn){var $n=G.FORMATS_INFO[tn].getStandardPattern();return V.Z.serializeDate(At,$n)},fromStandardDateFormat:function(At){var tn=V.Z.dateParser(At);return(0,I.J_)(tn)?tn:void 0},getMaxMonthDay:function(At,tn){return new Date(At,tn+1,0).getDate()},mergeDates:function(At,tn,$n){if(!tn)return tn||null;if(!At||isNaN(At.getTime())){var _i=new Date(null);At=new Date(_i.getFullYear(),_i.getMonth(),_i.getDate())}var mi=new Date(At.valueOf());return(0,k.S6)(G.FORMATS_INFO[$n].components,function(){var In=G.DATE_COMPONENTS_INFO[this];mi[In.setter](tn[In.getter]())}),mi},getLongestCaptionIndex:function(At){var _i,tn=0,$n=0;for(_i=0;_i<At.length;++_i)At[_i].length>$n&&(tn=_i,$n=At[_i].length);return tn},formatUsesMonthName:function(At){return O.Z.formatUsesMonthName(At)},formatUsesDayName:function(At){return O.Z.formatUsesDayName(At)},getLongestDate:function(At,tn,$n){var _i=function(At){var tn=typeof At;return"string"===tn?"format":"object"===tn&&void 0!==At.type?At.type:null}(At),mi=9;(!_i||G.formatUsesMonthName(_i))&&(mi=G.getLongestCaptionIndex(tn));var dn=new Date(1888,mi,21,23,59,59,999);if(!_i||G.formatUsesDayName(_i)){var In=dn.getDate()-dn.getDay()+G.getLongestCaptionIndex($n);dn.setDate(In)}return dn},normalizeTime:function(At){At.setSeconds(0),At.setMilliseconds(0)}};G.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(At,tn){var $n=new Date(tn.getTime());return $n.setFullYear(At),O.Z.format($n,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(At,tn){var $n=new Date(tn.getTime());return $n.setDate(At),O.Z.format($n,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(At){return O.Z.getMonthNames()[At]},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(At){return O.Z.format(new Date(0,0,0,At),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(At){return O.Z.format(new Date(0,0,0,0,At),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(At){return O.Z.format(new Date(0,0,0,0,0,At),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(At){return O.Z.format(new Date(0,0,0,0,0,0,At),"millisecond")},startValue:0,endValue:999}};const q=G;var Z=l(4694),X=l(9009),M=l(3180),se=l(5031),ge=se.Z.abstract,De=se.Z.inherit({ctor:function(At){this.dateBox=At},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(At){At=At||(0,N.Z)("<div>"),this._widget=this._createWidget(At),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(At){var tn=this._getWidgetName(),$n=this._getWidgetOptions();return this.dateBox._createComponent(At,tn,$n)},_getWidgetOptions:ge,_getWidgetName:ge,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:ge,supportedKeys:u.ZT,getKeyboardListener:u.ZT,customizeButtons:u.ZT,getParsedText:function(At,tn){return O.Z.parse(At,tn)||O.Z.parse(At)},renderInputMinMax:u.ZT,renderOpenedState:function(){this._updateValue()},popupConfig:ge,_dimensionChanged:function(){var At;null===(At=this._getPopup())||void 0===At||At.repaint()},renderPopupContent:function(){var At=this._getPopup();this._renderWidget();var tn=At.$content().parent();p.Z.off(tn,"mousedown"),p.Z.on(tn,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:u.ZT,getLastPopupElement:u.ZT,_preventFocusOnPopup:function(At){At.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:u.ZT,popupHiddenHandler:u.ZT,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},useCurrentDateByDefault:u.ZT,getDefaultDate:function(){return new Date},textChangedHandler:u.ZT,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var At=this._getPopup();At&&At.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});const Fe=De;var Ae=Fe.inherit({NAME:"Calendar",getDefaultOptions:function(){return(0,f.l)(this.callBase(),{todayButtonText:X.Z.format("dxCalendar-todayButtonText")})},supportedKeys:function(){var At=function(tn){return!!this.option("opened")&&(tn.preventDefault(),!0)};return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(tn){if(this.dateBox.option("opened")){if(tn.preventDefault(),this._widget.option("zoomLevel")===this._widget.option("maxZoomLevel")){var $n=this._getContouredValue(),_i=this._lastActionElement,mi=this._closeDropDownByEnter();return mi&&$n&&"calendar"===_i&&this.dateBoxValue($n,tn),mi&&this.dateBox.close(),this.dateBox._valueChangeEventHandler(tn),!mi}return!0}this.dateBox._valueChangeEventHandler(tn)}.bind(this),home:At,end:At}},getDisplayFormat:function(At){return At||"shortdate"},_closeDropDownByEnter:()=>!0,_getWidgetName:function(){return M.Z},_getContouredValue:function(){return this._widget._view.option("contouredDate")},getKeyboardListener(){return this._widget},_getWidgetOptions:function(){var At=this.dateBox.option("disabledDates");return(0,f.l)(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:(0,I.mf)(At)?this._injectComponent(At.bind(this.dateBox)):At,onContouredChanged:this._refreshActiveDescendant.bind(this),skipFocusCheck:!0})},_injectComponent:function(At){var tn=this;return function($n){return(0,f.l)($n,{component:tn.dateBox}),At($n)}},_refreshActiveDescendant:function(At){this._lastActionElement="calendar",this.dateBox.setAria("activedescendant",At.actionValue)},_getTodayButtonConfig(){var At=this.dateBox.option("buttonsLocation"),$n="default"===At?["bottom","center"]:(0,u.Um)(At);return{widget:"dxButton",toolbar:$n[0],location:"after"===$n[1]?"before":$n[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:At}=this.dateBox.option();return(0,I.Qr)(At)||!1!==At.visible},_getPopupToolbarItems(At){return"useButtons"===this.dateBox.option("applyValueMode")&&this._isCalendarVisible()?[this._getTodayButtonConfig(),...At]:At},popupConfig:function(At){return(0,f.l)(!0,At,{position:{collision:"flipfit flip"},width:"auto"})},_escapeHandler:function(){this.dateBox.close(),this.dateBox.focus()},_valueChangedHandler:function(At){var tn=At.value,$n=At.previousValue;W.Z.sameDate(tn,$n)&&W.Z.sameHoursAndMinutes(tn,$n)||"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(this.getValue(),At.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(At){var tn=this.dateBox;"instantly"===tn.option("applyValueMode")&&(tn.option("opened",!1),this.dateBoxValue(this.getValue(),At.event))}});const ne=Ae;var fe=l(1031),_e=l(1805),ie=l(227),de=l(7293),le=l(3553),pe=l(6961),Ee=l(4609),ye="dx-dateview-item";class tt extends de.Z{_getDefaultOptions(){return(0,f.l)(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(){p.Z.on((0,N.Z)(this.container()),"dxmousewheel",tn=>{this._isWheelScrolled=!0})}_renderContainerClick(){if(this.option("showOnClick")){var tn=(0,c.V4)(ie.u,this.NAME),$n=this._createActionByOption("onClick");p.Z.off((0,N.Z)(this.container()),tn),p.Z.on((0,N.Z)(this.container()),tn,function(_i){$n({event:_i})})}}_renderItems(){var tn=this.option("items")||[],$n=(0,N.Z)();(0,N.Z)(this.content()).empty(),tn.forEach(function(_i){$n=$n.add((0,N.Z)("<div>").addClass(ye).append(_i))}),(0,N.Z)(this.content()).append($n),this._$items=$n,this.update()}_renderSelectedItemFrame(){(0,N.Z)("<div>").addClass("dx-dateview-item-selected-frame").append((0,N.Z)("<div>").addClass("dx-dateview-item-selected-border")).appendTo((0,N.Z)(this.container()))}_renderSelectedValue(tn){var $n=this._fitIndex(tn??this.option("selectedIndex"));this._moveTo({top:this._getItemPosition($n)}),this._renderActiveStateItem()}_fitIndex(tn){var _i=(this.option("items")||[]).length;return tn>=_i?_i-1:tn<0?0:tn}_getItemPosition(tn){return Math.round(this._itemHeight()*tn)}_renderItemsClick(){var tn=this._getItemSelector(),$n=(0,c.V4)(ie.u,this.NAME);p.Z.off(this.$element(),$n,tn),p.Z.on(this.$element(),$n,tn,this._itemClickHandler.bind(this))}_getItemSelector(){return"."+ye}_itemClickHandler(tn){this.option("selectedIndex",this._itemElementIndex(tn.currentTarget))}_itemElementIndex(tn){return this._itemElements().index(tn)}_itemElements(){return this.$element().find(this._getItemSelector())}_renderActiveStateItem(){var tn=this.option("selectedIndex");(0,k.S6)(this._$items,function($n){(0,N.Z)(this).toggleClass("dx-dateview-item-selected",tn===$n)})}_shouldScrollToNeighborItem(){return"desktop"===P.Z.real().deviceType&&this._isWheelScrolled}_moveTo(tn){var{top:$n,left:_i}=function ae(At,tn){if((0,I.PO)(At)){var $n=(0,u.IS)(At.left,At.x),_i=(0,u.IS)(At.top,At.y);return{left:(0,I.$K)($n)?$n:void 0,top:(0,I.$K)(_i)?_i:void 0}}var{isHorizontal:mi,isVertical:dn}=new Ee.I(tn);return{left:mi&&(0,I.$K)(At)?At:void 0,top:dn&&(0,I.$K)(At)?At:void 0}}(tn),mi=this.scrollOffset(),dn={x:mi.left-_i,y:mi.top-$n};if(this._isVisible()&&(dn.x||dn.y))if(this._prepareDirections(!0),this._animation&&!this._shouldScrollToNeighborItem()){var In=this;le.Z.stop((0,N.Z)(this.content())),le.Z.animate((0,N.Z)(this.content()),{duration:200,type:"slide",to:{top:Math.floor(dn.y)},complete(){(0,pe.Kx)((0,N.Z)(In.content())),In.handleMove({delta:dn})}}),delete this._animation}else this.handleMove({delta:dn})}_validate(tn){return this._moveIsAllowed(tn)}_fitSelectedIndexInRange(tn){var $n=this.option("items").length;return Math.max(Math.min(tn,$n-1),0)}_isInNullNeighborhood(tn){return-.1<=tn&&tn<=.1}_getSelectedIndexAfterScroll(tn){var mi=this.scrollOffset().top-tn*this._itemHeight();return this._isInNullNeighborhood(mi)?tn:this._fitSelectedIndexInRange(tn+(mi>0?1:-1))}_getNewSelectedIndex(tn){if(this._shouldScrollToNeighborItem())return this._getSelectedIndexAfterScroll(tn);this._animation=!0;var $n=this.scrollOffset().top/this._itemHeight();return Math.round($n)}_endActionHandler(){var tn=this.option("selectedIndex"),$n=this._getNewSelectedIndex(tn);$n===tn?this._renderSelectedValue($n):this.option("selectedIndex",$n),this._isWheelScrolled=!1}_itemHeight(){var tn=this._$items.first();return(0,_e.Cr)(tn)}_toggleActive(tn){this.$element().toggleClass("dx-state-active",tn)}_isVisible(){return(0,N.Z)(this.container()).is(":visible")}_fireSelectedIndexChanged(tn,$n){this._selectedIndexChanged({value:tn,previousValue:$n,event:void 0})}_visibilityChanged(tn){super._visibilityChanged(tn),this._visibilityChangedHandler(tn)}_visibilityChangedHandler(tn){tn&&(this._visibilityTimer=setTimeout(()=>{this._renderSelectedValue(this.option("selectedIndex"))})),this.toggleActiveState(!1)}toggleActiveState(tn){this.$element().toggleClass("dx-dateviewroller-current",tn)}_refreshSelectedIndex(){var tn=this.option("selectedIndex"),$n=this._fitIndex(tn);$n===tn?this._renderActiveStateItem():this.option("selectedIndex",$n)}_optionChanged(tn){switch(tn.name){case"selectedIndex":this._fireSelectedIndexChanged(tn.value,tn.previousValue),this._renderSelectedValue(tn.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:super._optionChanged(tn)}}_dispose(){clearTimeout(this._visibilityTimer),super._dispose()}}(0,o.Z)("dxDateViewRoller",tt);const Be=tt;var mt="dx-dateview",Ye=fe.Z.inherit({_valueOption:function(){var At=this.option("value"),tn=new Date(At);return!At||isNaN(tn)?this._getDefaultDate():tn},_getDefaultDate:function(){var At=new Date;return"date"===this.option("type")?new Date(At.getFullYear(),At.getMonth(),At.getDate()):At},_getDefaultOptions:function(){return(0,f.l)(this.callBase(),{minDate:q.MIN_DATEVIEW_DEFAULT_DATE,maxDate:q.MAX_DATEVIEW_DEFAULT_DATE,type:"date",value:new Date,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(At){return"desktop"!==At.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass(mt),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(At,tn){this.$element().addClass(mt+"-"+At),tn&&this.$element().removeClass(mt+"-"+tn)},_toggleCompactClass:function(){this.$element().toggleClass("dx-dateview-compact",this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=(0,N.Z)("<div>").addClass("dx-dateview-wrapper"),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=(0,N.Z)("<div>").addClass("dx-dateview-rollers")),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var At=this;(0,k.S6)(At._rollerConfigs,function(tn){var $n=(0,N.Z)("<div>").appendTo(At._$rollersContainer).addClass("dx-dateviewroller-"+At._rollerConfigs[tn].type);At._rollers[At._rollerConfigs[tn].type]=At._createComponent($n,Be,{items:At._rollerConfigs[tn].displayItems,selectedIndex:At._rollerConfigs[tn].selectedIndex,showScrollbar:"never",scrollByContent:!0,onStart:function(_i){var mi=_i.component;mi._toggleActive(!0),At._setActiveRoller(At._rollerConfigs[tn],mi.option("selectedIndex"))},onEnd:function(_i){_i.component._toggleActive(!1)},onClick:function(_i){var mi=_i.component;mi._toggleActive(!0),At._setActiveRoller(At._rollerConfigs[tn],mi.option("selectedIndex")),At._setRollerState(At._rollerConfigs[tn],mi.option("selectedIndex")),mi._toggleActive(!1)},onSelectedIndexChanged:function(_i){At._setRollerState(At._rollerConfigs[tn],_i.component.option("selectedIndex"))}})}),At._$rollersContainer.appendTo(At._wrapper())},_createRollerConfigs:function(At){var tn=this;At=At||tn.option("type"),tn._rollerConfigs={},O.Z.getFormatParts(q.FORMATS_MAP[At]).forEach(function($n){tn._createRollerConfig($n)})},_createRollerConfig:function(At){for(var tn=q.DATE_COMPONENTS_INFO[At],$n=this._calculateRollerConfigValueRange(At),_i=$n.startValue,mi=$n.endValue,dn=tn.formatter,In=this._getCurrentDate(),Zn={type:At,setValue:tn.setter,valueItems:[],displayItems:[],getIndex:function(Ri){return Ri[tn.getter]()-_i}},gi=_i;gi<=mi;gi++)Zn.valueItems.push(gi),Zn.displayItems.push(dn(gi,In));Zn.selectedIndex=Zn.getIndex(In),this._rollerConfigs[At]=Zn},_setActiveRoller:function(At){var tn=At&&this._rollers[At.type];(0,k.S6)(this._rollers,function(){this.toggleActiveState(this===tn)})},_updateRollersPosition:function(){var At=this;(0,k.S6)(this._rollers,function(tn){var $n=At._rollerConfigs[tn].getIndex(At._getCurrentDate());this.option("selectedIndex",$n)})},_setRollerState:function(At,tn){if(tn!==At.selectedIndex){var $n=At.valueItems[tn],_i=At.setValue,mi=new Date(this._getCurrentDate()),dn=mi.getDate(),In=this.option("minDate"),Zn=this.option("maxDate");"month"===At.type?dn=Math.min(dn,q.getMaxMonthDay(mi.getFullYear(),$n)):"year"===At.type&&(dn=Math.min(dn,q.getMaxMonthDay($n,mi.getMonth()))),mi.setDate(dn),mi[_i]($n);var gi=W.Z.normalizeDate(mi,In,Zn);mi=q.mergeDates(gi,mi,"time"),mi=W.Z.normalizeDate(mi,In,Zn),this.option("value",mi),At.selectedIndex=tn}"year"===At.type&&this._refreshRollers(),"month"===At.type&&(this._refreshRoller("day"),this._refreshRoller("hours"))},_refreshRoller:function(At){var tn=this._rollers[At];if(tn){this._createRollerConfig(At);var $n=this._rollerConfigs[At];("day"===At||$n.displayItems.toString()!==tn.option("items").toString())&&tn.option({items:$n.displayItems,selectedIndex:$n.selectedIndex})}},_getCurrentDate:function(){var At=this._valueOption(),tn=this.option("minDate"),$n=this.option("maxDate");return W.Z.normalizeDate(At,tn,$n)},_calculateRollerConfigValueRange:function(At){var tn=this._getCurrentDate(),$n=this.option("minDate"),_i=this.option("maxDate"),mi=W.Z.sameYear(tn,$n),dn=mi&&tn.getMonth()===$n.getMonth(),In=W.Z.sameYear(tn,_i),Zn=In&&tn.getMonth()===_i.getMonth(),gi=dn&&tn.getDate()===$n.getDate(),Ri=Zn&&tn.getDate()===_i.getDate(),or=q.DATE_COMPONENTS_INFO[At],cr=or.startValue,en=or.endValue;return"year"===At&&(cr=$n.getFullYear(),en=_i.getFullYear()),"month"===At&&(mi&&(cr=$n.getMonth()),In&&(en=_i.getMonth())),"day"===At&&(en=q.getMaxMonthDay(tn.getFullYear(),tn.getMonth()),mi&&dn&&(cr=$n.getDate()),In&&Zn&&(en=_i.getDate())),"hours"===At&&(cr=gi?$n.getHours():cr,en=Ri?_i.getHours():en),{startValue:cr,endValue:en}},_refreshRollers:function(){this._refreshRoller("month"),this._refreshRoller("day"),this._refreshRoller("hours")},_optionChanged:function(At){switch(At.name){case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(At.value,At.previousValue);break;case"visible":this.callBase(At),At.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(At)}},_clean:function(){this.callBase(),delete this._$rollersContainer}});(0,o.Z)("dxDateView",Ye);const St=Ye;var Ct=(0,T.Jj)(),Rt=Fe.inherit({NAME:"DateView",getDefaultOptions:function(){return(0,f.l)(this.callBase(),{openOnFieldClick:!0,applyButtonText:X.Z.format("OK"),"dropDownOptions.showTitle":!0})},getDisplayFormat:function(At){return At||q.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(At){return{toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:At.onInitialized,defaultOptionsRules:[{device:{platform:"android"},options:{width:333,height:331}},{device:function(tn){var $n=tn.platform;return"generic"===$n||"ios"===$n},options:{width:"auto",height:"auto"}},{device:function(tn){return"generic"===tn.platform&&tn.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:Ct}}}]}},_renderWidget:function(){if((0,R.inputType)(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))this._widget&&(this._widget.$element().remove(),this._widget=null);else{var At=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{var tn=(0,N.Z)("<div>").appendTo(At.$content());this._widget=this._createWidget(tn)}this._widget.$element().appendTo(this._getWidgetContainer())}},_getWidgetName:function(){return St},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*q.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}});const fn=Rt;var ct=Fe.inherit({NAME:"Native",popupConfig:function(At){return(0,f.l)({},At,{width:"auto"})},getParsedText:function(At){return At?"datetime"===this.dateBox.option("type")?new Date(At.replace(/-/g,"/").replace("T"," ").split(".")[0]):q.fromStandardDateFormat(At):null},renderPopupContent:u.ZT,_getWidgetName:u.ZT,_getWidgetOptions:u.ZT,_getDateBoxType:function(){var At=this.dateBox.option("type");return q.SUPPORTED_FORMATS.includes(At)?"datetime"===At&&!(0,R.inputType)(At)&&(At="datetime-local"):At="date",At},customizeButtons:function(){var At=this.dateBox.getButton("dropDown");P.Z.real().android&&At&&At.on("click",function(){this.dateBox._input().get(0).click()}.bind(this))},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(At){var tn=this._getDateBoxType();return At||q.FORMATS_MAP[tn]},renderInputMinMax:function(At){At.attr({min:V.Z.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:V.Z.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}});const He=ct;var Dt=l(1946),qe=l(5079),Ht=l(6026),Ai=function(At,tn,$n){Vn(At,tn,$n)},Vn=function(At,tn,$n){At.css("transform","rotate("+tn+"deg) translate(0,"+$n+"px)")},Oi=fe.Z.inherit({_getDefaultOptions:function(){return(0,f.l)(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 At=(0,N.Z)("<div>").appendTo(this.$element()),tn=[];this.option("_showClock")&&tn.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),tn.push({ratio:0,shrink:0,baseSize:"auto",template:this._renderField.bind(this)}),this._createComponent(At,Ht.Z,{height:"100%",width:"100%",direction:"col",items:tn})},_renderClock:function(At,tn,$n){this._$hourArrow=(0,N.Z)("<div>").addClass("dx-timeview-hourarrow"),this._$minuteArrow=(0,N.Z)("<div>").addClass("dx-timeview-minutearrow");var _i=(0,N.Z)($n);_i.addClass("dx-timeview-clock").append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",_i)},_updateClock:function(){var At=this._getValue(),tn=At.getHours()/12*360+At.getMinutes()/60*30,$n=At.getMinutes()/60*360;Ai(this._$hourArrow,tn,this.option("_arrowOffset")),Ai(this._$minuteArrow,$n,this.option("_arrowOffset"))},_getBoxItems:function(At){var tn=[{ratio:0,shrink:0,baseSize:"auto",template:()=>this._hourBox.$element()},{ratio:0,shrink:0,baseSize:"auto",template:(0,N.Z)("<div>").addClass("dx-timeview-time-separator").text(O.Z.getTimeSeparator())},{ratio:0,shrink:0,baseSize:"auto",template:()=>this._minuteBox.$element()}];return At&&tn.push({ratio:0,shrink:0,baseSize:"auto",template:()=>this._format12.$element()}),tn},_renderField:function(){var At=!this.option("use24HourFormat");return this._createHourBox(At),this._createMinuteBox(),At&&this._createFormat12Box(),this._createComponent((0,N.Z)("<div>").addClass("dx-timeview-field"),Ht.Z,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(At)}).$element()},_createHourBox:function(At){(this._hourBox=this._createComponent((0,N.Z)("<div>"),Dt.Z,(0,f.l)({min:-1,max:At?13:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this),onKeyboardHandled:$n=>this._keyboardHandler($n)},this._getNumberBoxConfig()))).setAria("label","hours")},_isPM:function(){return!this.option("use24HourFormat")&&1===this._format12.option("value")},_onHourBoxValueChanged:function(At){var{value:tn,component:$n}=At,_i=this._getValue(),mi=new Date(_i),dn=this._convertMaxHourToMin(tn);$n.option("value",dn),this._isPM()&&(dn+=12),mi.setHours(dn),q.normalizeTime(mi),this.option("value",mi)},_convertMaxHourToMin:function(At){var tn=this.option("use24HourFormat")?24:12;return(tn+At)%tn},_createMinuteBox:function(){(this._minuteBox=this._createComponent((0,N.Z)("<div>"),Dt.Z,(0,f.l)({min:-1,max:60,value:this._getValue().getMinutes(),onKeyboardHandled:tn=>this._keyboardHandler(tn),onValueChanged:tn=>{var{value:$n,component:_i}=tn,mi=(60+$n)%60;_i.option("value",mi);var dn=new Date(this._getValue());dn.setMinutes(mi),q.normalizeTime(dn),this.option("value",dn)}},this._getNumberBoxConfig()))).setAria("label","minutes")},_createFormat12Box:function(){var At=O.Z.getPeriodNames();(this._format12=this._createComponent((0,N.Z)("<div>").addClass("dx-timeview-format12"),qe.Z,{items:[{value:-1,text:At[0]},{value:1,text:At[1]}],valueExpr:"value",displayExpr:"text",onKeyboardHandled:$n=>this._keyboardHandler($n),onValueChanged:$n=>{var{value:_i}=$n,mi=this._getValue().getHours(),dn=new Date(this._getValue());dn.setHours((mi+12*_i)%24),this.option("value",dn)},value:this._getValue().getHours()>=12?1:-1,stylingMode:this.option("stylingMode")})).setAria("label","type")},_refreshFormat12:function(){if(!this.option("use24HourFormat")){var tn=this._getValue().getHours();this._silentEditorValueUpdate(this._format12,tn>=12?1:-1)}},_silentEditorValueUpdate:function(At,tn){At&&(At._suppressValueChangeAction(),At.option("value",tn),At._resumeValueChangeAction())},_getNumberBoxConfig:function(){return{showSpinButtons:!0,displayValueFormatter:function(At){return(At<10?"0":"")+At},stylingMode:this.option("stylingMode")}},_normalizeHours:function(At){return this.option("use24HourFormat")?At:At%12||12},_updateField:function(){var At=this._normalizeHours(this._getValue().getHours());this._silentEditorValueUpdate(this._hourBox,At),this._silentEditorValueUpdate(this._minuteBox,this._getValue().getMinutes()),this._refreshFormat12()},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(At){At&&this._updateTime()},_optionChanged:function(At){switch(At.name){case"value":this._updateTime(),this.callBase(At);break;case"_arrowOffset":break;case"use24HourFormat":case"_showClock":case"stylingMode":this._invalidate();break;default:this.callBase(At)}}});(0,o.Z)("dxTimeView",Oi);const Hn=Oi;var Sn=(0,T.Jj)(),Wn="dx-datebox-datetime-time-side",Yi=ne.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return(0,f.l)(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after","dropDownOptions.showTitle":!1})},_closeDropDownByEnter:function(){return W.Z.sameDate(this._getContouredValue(),this.widgetOption("value"))},getDisplayFormat:function(At){return At||"shortdateshorttime"},_is24HourFormat:function(){return O.Z.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_getContouredValue:function(){var At=this.callBase();return this._updateDateTime(At)},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent((0,N.Z)("<div>"),Hn,{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 At=this._getPopup();At&&At.$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 At=this._isShrinkView(),tn=this._currentAdaptiveMode;return At!==tn?(this._currentAdaptiveMode=At,void 0!==tn):this.callBase()},_updateValue:function(At){var tn=this.dateBoxValue();!tn&&!At&&(tn=new Date,q.normalizeTime(tn)),this.callBase(),this._timeView&&(tn&&this._timeView.option("value",tn),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return(0,_e.dz)(Sn)<=573},_isShrinkView:function(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var At=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||At.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),At},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var At=this._getPopup().$content();this._box=this.dateBox._createComponent((0,N.Z)("<div>").appendTo(At),Ht.Z,{direction:"row",crossAlign:"stretch",items:this._getBoxItems(),itemTemplate:function(tn,$n,_i){var mi=(0,N.Z)("<div>");switch(tn.name){case"calendar":mi.append(this._widget.$element()),this._isShrinkView()&&(this._timeView.$element().addClass(Wn),mi.append(this._timeView.$element()));break;case"time":mi.append(this._timeView.$element()),(0,N.Z)(_i).addClass(Wn)}return mi}.bind(this)}),this._attachTabHandler()},popupConfig:function(At){var tn=this.callBase(At);return(0,f.l)(tn,{width:"auto"})},getFirstPopupElement:function(){return this._timeView._hourBox.$element().find("input")},_attachTabHandler:function(){var At=this.dateBox;this._timeView._hourBox.registerKeyHandler("tab",function(tn){tn.shiftKey&&(tn.preventDefault(),At.focus())})},_preventFocusOnPopup:function(At){(0,N.Z)(At.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},_updateDateTime:function(At){var tn=this._timeView.option("value");return At.setHours(tn.getHours(),tn.getMinutes(),tn.getSeconds(),tn.getMilliseconds()),At},getValue:function(){var At,tn=null!==(At=this._widget.option("value"))&&void 0!==At?At:this._widget.getContouredDate();return tn=tn?new Date(tn):new Date,this._updateDateTime(tn)},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});const On=Yi;var ei=l(4137),di=(l(107),l(4094)),Hi=(0,T.Jj)(),Qi={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},_r=Fe.inherit({NAME:"List",supportedKeys:function(){return{tab:function(){var{opened:At,applyValueMode:tn}=this.option();At&&"instantly"===tn&&this.close()},space:u.ZT,home:u.ZT,end:u.ZT}},getDefaultOptions:function(){return(0,f.l)(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(At){return At||"shorttime"},popupConfig:function(At){return At},getValue:function(){var At=this._widget.option("selectedIndex");return-1===At?this.dateBox.option("value"):this._getDateByItemData(this._widgetItems[At])},useCurrentDateByDefault:function(){return!0},getDefaultDate:function(){return new Date(null)},popupShowingHandler:function(){this.dateBox._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return ei.Z},_getWidgetOptions:function(){return{itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant:function(At){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",At.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 At=this.dateBoxValue(),tn=this._getDateIndex(At);-1===tn?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",tn)},_scrollToSelectedItem:function(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex:function(At){for(var tn=-1,$n=0,_i=this._widgetItems.length;$n<_i;$n++)if(this._areDatesEqual(At,this._widgetItems[$n])){tn=$n;break}return tn},_areDatesEqual:function(At,tn){return(0,I.J_)(At)&&(0,I.J_)(tn)&&At.getHours()===tn.getHours()&&At.getMinutes()===tn.getMinutes()},_getTimeListItems:function(){var At=this.dateBox.dateOption("min")||this._getBoundaryDate("min"),tn=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),$n=this.dateBox.dateOption("value")||null,_i=tn-At,mi=At.getMinutes()%this.dateBox.option("interval");return _i<0?[]:(_i>q.ONE_DAY&&(_i=q.ONE_DAY),$n-At<q.ONE_DAY||((At=this._getBoundaryDate("min")).setMinutes(mi),$n&&Math.abs($n-tn)<q.ONE_DAY&&(_i=(60*tn.getHours()+Math.abs(tn.getMinutes()-mi))*q.ONE_MINUTE)),this._getRangeItems(At,new Date(At),_i))},_getRangeItems:function(At,tn,$n){for(var _i=[],mi=this.dateBox.option("interval");tn-At<=$n;)_i.push(new Date(tn)),tn.setMinutes(tn.getMinutes()+mi);return _i},_getBoundaryDate:function(At){var tn=Qi[At],$n=new Date((0,u.IS)(this.dateBox.dateOption("value"),0));return new Date($n.getFullYear(),$n.getMonth(),$n.getDate(),tn.getHours(),tn.getMinutes())},_timeListItemTemplate:function(At){var tn=this.dateBox.option("displayFormat");return O.Z.format(At,this.getDisplayFormat(tn))},_listItemClickHandler:function(At){if("useButtons"!==this.dateBox.option("applyValueMode")){var tn=this._getDateByItemData(At.itemData);this.dateBox.option("opened",!1),this.dateBoxValue(tn,At.event)}},_getDateByItemData:function(At){var tn=this.dateBox.option("value"),$n=At.getHours(),_i=At.getMinutes(),mi=At.getSeconds(),dn=At.getFullYear(),In=At.getMonth(),Zn=At.getDate();return tn?((tn=this.dateBox.option("dateSerializationFormat")?V.Z.deserializeDate(tn):new Date(tn)).setHours($n),tn.setMinutes(_i),tn.setSeconds(mi),tn.setFullYear(dn),tn.setMonth(In),tn.setDate(Zn)):tn=new Date(dn,In,Zn,$n,_i,0,0),tn},getKeyboardListener:function(){return this._widget},_updatePopupHeight:function(){var At=(0,di.T)(this.dateBox.option("dropDownOptions.height"));if(void 0===At||"auto"===At){this.dateBox._setPopupOption("height","auto");var tn=(0,_e.zp)(this._widget.$element()),$n=.45*(0,_e.Cr)(Hi);this.dateBox._setPopupOption("height",Math.min(tn,$n))}this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()},getParsedText:function(At,tn){var $n=this.callBase(At,tn);return $n&&($n=q.mergeDates($n,new Date(null),"date")),$n}});const yn=_r;var Rn=(0,T.Jj)(),ci="dx-datebox",Dr="dx-datebox-wrapper",zr={calendar:"calendar",rollers:"rollers",list:"list",native:"native"},Gr={date:"date",datetime:"datetime",time:"time"},Vr={Calendar:ne,DateView:fn,Native:He,CalendarWithTime:On,List:yn},Nr=Z.Z.inherit({_supportedKeys:function(){return(0,f.l)(this.callBase(),this._strategy.supportedKeys())},_renderButtonContainers:function(){this.callBase.apply(this,arguments),this._strategy.customizeButtons()},_getDefaultOptions:function(){return(0,f.l)(this.callBase(),{type:"date",showAnalogClock:!0,value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,displayFormat:null,interval:30,disabledDates:null,pickerType:zr.calendar,invalidDateMessage:X.Z.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:X.Z.format("validation-range"),applyButtonText:X.Z.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 tn=P.Z.real().platform;return"ios"===tn||"android"===tn},options:{pickerType:zr.native}},{device:{platform:"generic",deviceType:"desktop"},options:{buttonsLocation:"bottom after"}}])},_initOptions:function(At){this._userOptions=(0,f.l)({},At),this.callBase(At),this._updatePickerOptions()},_updatePickerOptions:function(){var At=this.option("pickerType"),tn=this.option("type");At===zr.list&&(tn===Gr.datetime||tn===Gr.date)&&(At=zr.calendar),tn===Gr.time&&At===zr.calendar&&(At=zr.list),this.option("showDropDownButton","generic"!==P.Z.real().platform||At!==zr.native),this._pickerType=At},_init:function(){this._initStrategy(),this.option((0,f.l)({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this.callBase()},_toLowerCaseFirstLetter:function(At){return At.charAt(0).toLowerCase()+At.substr(1)},_initStrategy:function(){var At=this._getStrategyName(this._getFormatType());this._strategy&&this._strategy.NAME===At||(this._strategy=new(0,Vr[At])(this))},_getFormatType:function(){var At=this.option("type"),tn=/h|m|s/g.test(At),_i="";return/d|M|Y/g.test(At)&&(_i+=Gr.date),tn&&(_i+=Gr.time),_i},_getStrategyName:function(At){var tn=this._pickerType;return tn===zr.rollers?"DateView":tn===zr.native?"Native":At===Gr.date?"Calendar":At===Gr.datetime?"CalendarWithTime":"List"},_initMarkup:function(){this.$element().addClass(ci),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 At,tn;this._popup&&(null===(At=(tn=this._strategy)._updatePopupHeight)||void 0===At||At.call(tn))},_refreshFormatClass:function(){var At=this.$element();(0,k.S6)(Gr,function(tn,$n){At.removeClass(ci+"-"+$n)}),At.addClass(ci+"-"+this.option("type"))},_refreshPickerTypeClass:function(){var At=this.$element();(0,k.S6)(zr,function(tn,$n){At.removeClass(ci+"-"+$n)}),At.addClass(ci+"-"+this._pickerType)},_formatValidationIcon:function(){if((0,T.Ym)()){var At=this._input().get(0),tn=this.option("rtlEnabled"),$n=this._getClearButtonWidth(),_i=this._getLongestElementDimensions(),mi=parseFloat(Rn.getComputedStyle(At).width)-$n,dn=_i.width>mi,In=At.style;this.$element().toggleClass("dx-show-invalid-badge",!dn),dn?(void 0===this._storedPadding&&(this._storedPadding=tn?_i.leftPadding:_i.rightPadding),tn?In.paddingLeft=0:In.paddingRight=0):tn?In.paddingLeft=this._storedPadding+"px":In.paddingRight=this._storedPadding+"px"}},_getClearButtonWidth:function(){var At=0;if(this._isClearButtonVisible()&&""===this._input().val()){var tn=this.$element().find(".dx-clear-button-area").get(0);At=parseFloat(Rn.getComputedStyle(tn).width)}return At},_getLongestElementDimensions:function(){var At=this._strategy.getDisplayFormat(this.option("displayFormat")),tn=O.Z.format(q.getLongestDate(At,O.Z.getMonthNames(),O.Z.getDayNames()),At),$n=this._input(),_i=$n.get(0),mi=(0,C.l5)($n,tn),In=void 0!==this._storedPadding?this._storedPadding:0;mi.appendTo(this.$element());var Zn=parseFloat(Rn.getComputedStyle(mi.get(0)).width),gi=parseFloat(Rn.getComputedStyle(_i).paddingRight),Ri=parseFloat(Rn.getComputedStyle(_i).paddingLeft),or=Zn+Ri+gi+In;return mi.remove(),{width:or,leftPadding:Ri,rightPadding:gi}},_getKeyboardListeners(){return this.callBase().concat([this._strategy&&this._strategy.getKeyboardListener()])},_renderPopup:function(){this.callBase(),this._popup.$wrapper().addClass(Dr),this._renderPopupWrapper()},_getPopupToolbarItems(){var At,tn,$n,_i=this.callBase();return null!==(At=null===(tn=($n=this._strategy)._getPopupToolbarItems)||void 0===tn?void 0:tn.call($n,_i))&&void 0!==At?At:_i},_popupConfig:function(){var At=this.callBase();return(0,f.l)(this._strategy.popupConfig(At),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var At=this.$element(),tn=(0,f.l)({},Gr,zr);(0,k.S6)(tn,function($n,_i){At.removeClass(Dr+"-"+_i)}.bind(this)),this._popup.$wrapper().addClass(Dr+"-"+this.option("type")).addClass(Dr+"-"+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(At){At&&this._formatValidationIcon()},_clearValueHandler:function(At){this.option("text",""),this.callBase(At)},_readOnlyPropValue:function(){if(this._pickerType===zr.rollers)return!0;var At=P.Z.real().platform;return!this._isNativeType()||"ios"!==At&&"android"!==At?this.callBase():this.option("readOnly")},_isClearButtonVisible:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var At=this.dateOption("value");return this.option("text",this._getDisplayedText(At)),this._strategy.renderValue(),this.callBase()},_setSubmitValue:function(){var At=this.dateOption("value"),tn=this.option("dateSerializationFormat"),$n=q.SUBMIT_FORMATS_MAP[this.option("type")],_i=tn?V.Z.serializeDate(At,tn):q.toStandardDateFormat(At,$n);this._getSubmitElement().val(_i)},_getDisplayedText:function(At){var $n,tn=this.option("mode");if("text"===tn){var _i=this._strategy.getDisplayFormat(this.option("displayFormat"));$n=O.Z.format(At,_i)}else{var mi=this._getFormatByMode(tn);$n=mi?O.Z.format(At,mi):q.toStandardDateFormat(At,tn)}return $n},_getFormatByMode:function(At){return(0,R.inputType)(At)?null:q.FORMATS_MAP[At]},_valueChangeEventHandler:function(At){var{text:tn,type:$n,validationError:_i}=this.option(),mi=this.dateOption("value");if(tn!==this._getDisplayedText(mi)){var dn=this._getParsedDate(tn),In=mi??this._getDateByDefault(),Zn=q.mergeDates(In,dn,$n);if(this._applyInternalValidation(dn&&"time"===$n?Zn:dn).isValid){var Ri=this._getDisplayedText(Zn);In&&Zn&&In.getTime()===Zn.getTime()&&Ri!==tn?this._renderValue():this.dateValue(Zn,At)}}else(!_i||_i.editorSpecific)&&(this._applyInternalValidation(mi),this._applyCustomValidation(mi))},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&this._strategy.getDefaultDate()},_getParsedDate:function(At){var tn=this._strategy.getDisplayFormat(this.option("displayFormat"));return this._strategy.getParsedText(At,tn)??void 0},_applyInternalValidation(At){var $n=!!this.option("text")&&null!==At,_i=!!At&&(0,I.J_)(At)&&!isNaN(At.getTime()),mi=_i&&W.Z.dateInRange(At,this.dateOption("min"),this.dateOption("max"),this.option("type")),dn=!$n&&!At||mi,In="";return _i?mi||(In=this.option("dateOutOfRangeMessage")):In=this.option("invalidDateMessage"),this.option({isValid:dn,validationError:dn?null:{editorSpecific:!0,message:In}}),{isValid:dn,isDate:_i}},_applyCustomValidation:function(At){this.validationRequest.fire({editor:this,value:this._serializeDate(At)})},_isValueChanged:function(At){var tn=this.dateOption("value");return(tn&&tn.getTime())!==(At&&At.getTime())},_isTextChanged:function(At){return this.option("text")!==(At&&this._getDisplayedText(At)||"")},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy()},_getPopupTitle:function(){var At=this.option("placeholder");if(At)return At;var tn=this.option("type");return tn===Gr.time?X.Z.format("dxDateBox-simulatedDataPickerTitleTime"):tn===Gr.date||tn===Gr.datetime?X.Z.format("dxDateBox-simulatedDataPickerTitleDate"):""},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(At){var tn=this._strategy.getValue();this.dateValue(tn,At.event),this.callBase()},_dispose:function(){var At;this.callBase(),null===(At=this._strategy)||void 0===At||At.dispose()},_isNativeType:function(){return this._pickerType===zr.native},_updatePopupTitle:function(){var At;null===(At=this._popup)||void 0===At||At.option("title",this._getPopupTitle())},_optionChanged:function(At){switch(At.name){case"showClearButton":case"buttons":case"isValid":case"readOnly":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"pickerType":this._updatePickerOptions({pickerType:At.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:At.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 tn=this.option("isValid");this._applyInternalValidation(this.dateOption("value")),tn||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(At.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 At=this.option("value");return this.option("dateSerializationFormat")&&(0,B.Z)().forceIsoDateParsing?this.option("dateSerializationFormat"):(0,I.kE)(At)?"number":(0,I.HD)(At)?V.Z.getDateSerializationFormat(At):void 0},_updateValue:function(At){this.callBase(),this._applyInternalValidation(At??this.dateOption("value"))},dateValue:function(At,tn){var $n=this._isValueChanged(At);return $n&&tn&&this._saveValueChangeEvent(tn),$n||(this._isTextChanged(At)?this._updateValue(At):""===this.option("text")&&this._applyCustomValidation(At)),this.dateOption("value",At)},dateOption:function(At,tn){if(1===arguments.length)return V.Z.deserializeDate(this.option(At));this.option(At,this._serializeDate(tn))},_serializeDate:function(At){var tn=this._getSerializationFormat();return V.Z.serializeDate(At,tn)},_clearValue:function(){var At=this.option("value");this.callBase(),null===At&&this._applyCustomValidation(null)},reset:function(){var At=this.option("value");this.callBase(),null===At&&this._applyInternalValidation(null)}});const Tr=Nr;var so=l(658),Er=l(4722),oo="dateBoxMask",Kr=Tr.inherit({_supportedKeys(At){var tn=this.callBase(At),$n=mi=>{var dn=tn[(0,c.EV)(mi)];return dn&&dn.apply(this,[mi])},_i=(mi,dn)=>this._shouldUseOriginalHandler(mi)?$n.apply(this,[mi]):dn.apply(this,[mi]);return(0,f.l)({},tn,{del:mi=>_i(mi,dn=>{this._revertPart(1),this._isAllSelected()||dn.preventDefault()}),backspace:mi=>_i(mi,dn=>{this._revertPart(-1),this._isAllSelected()||dn.preventDefault()}),home:mi=>_i(mi,dn=>{this._selectFirstPart(),dn.preventDefault()}),end:mi=>_i(mi,dn=>{this._selectLastPart(),dn.preventDefault()}),escape:mi=>_i(mi,dn=>{this._revertChanges(dn)}),enter:mi=>_i(mi,()=>{this._enterHandler()}),leftArrow:mi=>_i(mi,dn=>{this._selectNextPart(-1),dn.preventDefault()}),rightArrow:mi=>_i(mi,dn=>{this._selectNextPart(1),dn.preventDefault()}),upArrow:mi=>_i(mi,dn=>{this._upDownArrowHandler(1),dn.preventDefault()}),downArrow:mi=>_i(mi,dn=>{this._upDownArrowHandler(-1),dn.preventDefault()})})},_shouldUseOriginalHandler(At){var tn=this.option("opened")&&At&&-1===["backspace","del"].indexOf((0,c.EV)(At));return!this._useMaskBehavior()||tn||At&&At.altKey},_upDownArrowHandler(At){this._setNewDateIfEmpty();var tn=this._getActivePartValue(this._initialMaskValue),_i=this._getActivePartValue()-tn;this._loadMaskValue(this._initialMaskValue),this._partIncrease(_i+At,!0)},_getDefaultOptions(){return(0,f.l)(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0)})},_isSingleCharKey(At){var{originalEvent:tn,alt:$n}=At,_i=tn.data||tn.key;return"string"==typeof _i&&1===_i.length&&!$n&&!(0,c.j1)(tn)},_isSingleDigitKey(At){var tn,$n=null===(tn=At.originalEvent)||void 0===tn?void 0:tn.data;return 1===$n?.length&&parseInt($n,10)},_useBeforeInputEvent:function(){return P.Z.real().android},_keyInputHandler(At,tn){var $n=this._input().val();this._processInputKey(tn),At.preventDefault(),$n!==this._input().val()&&p.Z.trigger(this._input(),"input")},_keyboardHandler(At){var tn=At.originalEvent.key,$n=this.callBase(At);return!this._useMaskBehavior()||this._useBeforeInputEvent()||(Er.Z.chrome&&"Process"===At.key&&0===At.code.indexOf("Digit")?(tn=At.code.replace("Digit",""),this._processInputKey(tn),this._maskInputHandler=()=>{this._renderSelectedPart()}):this._isSingleCharKey(At)&&this._keyInputHandler(At.originalEvent,tn)),$n},_maskBeforeInputHandler(At){this._maskInputHandler=null;var{inputType:tn}=At.originalEvent;"insertCompositionText"===tn&&(this._maskInputHandler=()=>{this._renderSelectedPart()});var $n="deleteContentBackward"===tn;if($n||"deleteContentForward"===tn){var mi=$n?-1:1;this._maskInputHandler=()=>{this._revertPart(),this._selectNextPart(mi)}}if(this._useMaskBehavior()&&this._isSingleCharKey(At))return this._keyInputHandler(At,At.originalEvent.data),!0},_keyPressHandler(At){var{originalEvent:tn}=At;"insertCompositionText"===tn?.inputType&&this._isSingleDigitKey(At)&&(this._processInputKey(tn.data),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()),this.callBase(At),this._maskInputHandler&&(this._maskInputHandler(),this._maskInputHandler=null)},_processInputKey(At){this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(At))?this._searchString(At):this._searchNumber(At)},_isAllSelected(){var At=this._caret();return At.end-At.start===this.option("text").length},_getFormatPattern(){if(this._formatPattern)return this._formatPattern;var At=this._strategy.getDisplayFormat(this.option("displayFormat")),tn=(0,I.HD)(At)&&!O.Z._getPatternByFormat(At);return this._formatPattern=tn?At:(0,w.y)(function($n){return O.Z.format($n,At)}),this._formatPattern},_setNewDateIfEmpty(){if(!this._maskValue){var At="time"===this.option("type")?new Date(null):new Date;this._maskValue=At,this._initialMaskValue=At,this._renderDateParts()}},_partLimitsReached(At){var tn=String(At).length,$n=this._getActivePartProp("pattern").length,mi=1===$n?tn:Math.min($n,tn),dn=this._searchValue.length===mi,In=parseInt(this._searchValue+"0")>At;return dn||In},_searchNumber(At){var{max:tn}=this._getActivePartLimits(),$n=String(tn).length;this._searchValue=(this._searchValue+At).substr(-$n),isNaN(this._searchValue)&&(this._searchValue=At),this._setActivePartValue(this._searchValue),this._partLimitsReached(tn)&&this._selectNextPart(1)},_searchString(At){if(isNaN(parseInt(this._getActivePartProp("text")))){for(var tn=this._getActivePartProp("limits")(this._maskValue),$n=this._searchValue+At.toLowerCase(),_i=tn.max-tn.min,mi=0;mi<=_i;mi++)if(this._loadMaskValue(this._initialMaskValue),this._partIncrease(mi+1),0===this._getActivePartProp("text").toLowerCase().indexOf($n))return void(this._searchValue=$n);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(At))}},_clearSearchValue(){this._searchValue=""},_revertPart:function(At){if(!this._isAllSelected()){var tn=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(tn),this._selectNextPart(At)}this._clearSearchValue()},_useMaskBehavior(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_prepareRegExpInfo(){this._regExpInfo=(0,s.oo)(this._getFormatPattern(),O.Z);var At=this._regExpInfo.regexp,tn=At.source,$n=At.flags,_i=new RegExp(/(\{[0-9]+,?[0-9]*\})/),mi=tn.split(_i).map(dn=>_i.test(dn)?dn:so.Z.convertDigits(dn,!1)).join("");this._regExpInfo.regexp=new RegExp(mi,$n)},_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 At=this.option("text")||this._getDisplayedText(this._maskValue);At&&(this._dateParts=((At,tn)=>{for(var $n=tn.regexp.exec(At),_i=0,mi=0,dn=[],In=function(gi){mi=(_i=mi)+$n[gi].length;var Ri=tn.patterns[gi-1].replace(/^'|'$/g,""),or=(At=>g[At]||(()=>At))(Ri[0]);dn.push({index:gi-1,isStub:Ri===$n[gi],caret:{start:_i,end:mi},pattern:Ri,text:$n[gi],limits:function(){for(var cr=arguments.length,en=new Array(cr),vn=0;vn<cr;vn++)en[vn]=arguments[vn];return E(Ri[0],...en)},setter:x[Ri[0]]||u.ZT,getter:or})},Zn=1;Zn<$n.length;Zn++)In(Zn);return dn})(At,this._regExpInfo),this._input().is(":hidden")||this._selectNextPart())}},_detachMaskEvents(){p.Z.off(this._input(),"."+oo)},_attachMaskEvents(){p.Z.on(this._input(),(0,c.V4)("dxclick",oo),this._maskClickHandler.bind(this)),p.Z.on(this._input(),(0,c.V4)("paste",oo),this._maskPasteHandler.bind(this)),p.Z.on(this._input(),(0,c.V4)("drop",oo),()=>{this._renderSelectedPart()}),p.Z.on(this._input(),(0,c.V4)("compositionend",oo),this._maskCompositionEndHandler.bind(this)),this._useBeforeInputEvent()&&p.Z.on(this._input(),(0,c.V4)("beforeinput",oo),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(At){this._useMaskBehavior()&&this._partIncrease(At.delta>0?1:-1,At)},_selectNextPart(){var At=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.option("text")&&!this._disposed){At&&(this._initialMaskValue=new Date(this._maskValue));var tn=(0,a.n$)(this._activePartIndex+At,0,this._dateParts.length-1);if(this._dateParts[tn].isStub){if(!(0===tn&&At<0||tn===this._dateParts.length-1&&At>0))return void this._selectNextPart(At>=0?At+1:At-1);tn=this._activePartIndex}this._activePartIndex!==tn&&this._clearSearchValue(),this._activePartIndex=tn,this._caret(this._getActivePartProp("caret"))}},_getRealLimitsPattern(){if("d"===this._getActivePartProp("pattern")[0])return"dM"},_getActivePartLimits(At){return this._getActivePartProp("limits")(this._maskValue,At&&this._getRealLimitsPattern())},_getActivePartValue(At){At=At||this._maskValue;var tn=this._getActivePartProp("getter");return(0,I.mf)(tn)?tn(At):At[tn]()},_addLeadingZeroes(At){var tn=this._searchValue.match(/^0+/),$n=this._getActivePartLimits(),_i=String($n.max).length;return((tn&&tn[0]||"")+String(At)).substr(-_i)},_setActivePartValue(At,tn){tn=tn||this._maskValue;var $n=this._getActivePartProp("setter"),_i=this._getActivePartLimits();At=(0,a.Z2)(At,_i.min,_i.max)?At:At%10,At=this._addLeadingZeroes((0,a.n$)(At,_i.min,_i.max)),(0,I.mf)($n)?$n(tn,At):tn[$n](At),this._renderDisplayText(this._getDisplayedText(tn)),this._renderDateParts()},_getActivePartProp(At){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][At]},_loadMaskValue(){var At=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dateOption("value");this._maskValue=At&&new Date(At),this._initialMaskValue=At&&new Date(At)},_saveMaskValue(){var At=this._maskValue&&new Date(this._maskValue);At&&"date"===this.option("type")&&At.setHours(0,0,0,0),this._initialMaskValue=new Date(At),this.dateOption("value",At)},_revertChanges(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText(At){this.callBase(At),this._useMaskBehavior()&&this.option("text",At)},_partIncrease(At,tn){this._setNewDateIfEmpty();var{max:$n,min:_i}=this._getActivePartLimits(tn),mi=$n-_i;1===mi&&mi++;var dn=At+this._getActivePartValue();dn>$n?dn=this._applyLimits(dn,{limitBase:_i,limitClosest:$n,limitDelta:mi}):dn<_i&&(dn=this._applyLimits(dn,{limitBase:$n,limitClosest:_i,limitDelta:mi})),this._setActivePartValue(dn)},_applyLimits(At,tn){var{limitBase:$n,limitClosest:_i,limitDelta:mi}=tn,dn=(At-_i)%mi;return dn?$n+dn-1*(0,a.Xx)(dn):_i},_maskClickHandler(){this._loadMaskValue(this._maskValue),this.option("text")&&(this._activePartIndex=((At,tn)=>{for(var $n=0;$n<At.length;$n++)if(!At[$n].isStub&&At[$n].caret.end>=tn)return $n;return null})(this._dateParts,this._caret().start),this._isAllSelected()||((0,I.$K)(this._activePartIndex)?this._caret(this._getActivePartProp("caret")):this._selectLastPart()))},_maskCompositionEndHandler(At){this._input().val(this._getDisplayedText(this._maskValue)),this._selectNextPart(),this._maskInputHandler=()=>{this._renderSelectedPart()}},_maskPasteHandler(At){var tn=this._replaceSelectedText(this.option("text"),this._caret(),(0,C.Zx)(At)),$n=O.Z.parse(tn,this._getFormatPattern());$n&&this._isDateValid($n)&&(this._maskValue=$n,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),At.preventDefault()},_isDateValid:At=>(0,I.J_)(At)&&!isNaN(At),_isValueDirty(){var At=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(At&&At.getTime())},_fireChangeEvent(){this._clearSearchValue(),this._isValueDirty()&&p.Z.trigger(this._input(),"change")},_enterHandler(){this._fireChangeEvent(),this._selectNextPart(1)},_focusOutHandler(At){this._useMaskBehavior()&&!At.isDefaultPrevented()?(this._fireChangeEvent(),this.callBase(At),this._selectFirstPart(At)):this.callBase(At)},_valueChangeEventHandler(At){var tn=this.option("text");this._useMaskBehavior()?(this._saveValueChangeEvent(At),tn?null===this._maskValue&&this._loadMaskValue(tn):this._maskValue=null,this._saveMaskValue()):this.callBase(At)},_optionChanged(At){switch(At.name){case"useMaskBehavior":this._renderMask();break;case"displayFormat":case"mode":this.callBase(At),this._renderMask();break;case"value":this._loadMaskValue(),this.callBase(At),this._renderDateParts();break;case"emptyDateValue":break;default:this.callBase(At)}},_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 to=Kr;(0,o.Z)("dxDateBox",to);const po=to},4121:(kn,he,l)=>{"use strict";l.d(he,{PG:()=>Y,iG:()=>j});var o=l(1805),c=l(9904),I=l(4430),C=l(9866),f=l(2941),a=l(7572),p=l(6520),s=l(4270),u=l(1828),d=l(2718),h=l(5873),g=l(4514),x=l(913),b=l(1469),y=l(9009),E=l(8159),S=l(8531),O=l(7674),w=(0,g.Jj)(),T={text:"OK",onClick:function(){return!0}},k="dx-dialog",R="".concat(k,"-wrapper"),P="".concat(k,"-root"),B="".concat(k,"-content"),W="".concat(k,"-message"),N="".concat(k,"-buttons"),V="".concat(k,"-button"),U="dx-button",K=I.w.inherit({ctor:function(ee,G){this.callBase(G)},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{width:276}}])}}),Y=function(ee){var G,q=new s.BH,Z=(new K).option();ee=(0,h.l)(Z,ee);var X=(0,c.Z)("<div>").addClass(k).appendTo((0,b.S3)()),se="messageHtml"in ee;"message"in ee&&E.Z.log("W1013");var ge=String(se?ee.messageHtml:ee.message),De=(0,c.Z)("<div>").addClass(W).html(ge),Fe=[];(0,d.S6)(ee.buttons||[T],function(){var fe=new C.Z(this.onClick,{context:Ae});Fe.push({toolbar:"bottom",location:f.Z.current().android?"after":"center",widget:"dxButton",options:(0,h.l)({},this,{onClick:function(){var _e=fe.execute(...arguments);ne(_e)}})})});var Ae=new S.Z(X,(0,h.l)({title:null!==(G=ee.title)&&void 0!==G?G:"",showTitle:(0,O.IS)(ee.showTitle,!0),dragEnabled:(0,O.IS)(ee.dragEnabled,!0),height:"auto",width:ee.width,showCloseButton:ee.showCloseButton||!1,ignoreChildEvents:!1,container:X,visualContainer:w,dragAndResizeArea:w,onContentReady:function(fe){fe.component.$content().addClass(B).append(De)},onShowing:function(fe){fe.component.bottomToolbar().addClass(N).find(".".concat(U)).addClass(V),(0,p.M3)()},onShown:function(fe){var _e=fe.component.bottomToolbar().find(".".concat(U)).first();x.Z.trigger(_e,"focus")},onHiding:function(){q.reject()},toolbarItems:Fe,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,a.Z)().rtlEnabled,position:{boundaryOffset:{h:10,v:0}}},ee.popupOptions));function ne(fe){q.resolve(fe),Ae.hide().done(function(){Ae.$element().remove()})}return Ae.$wrapper().addClass(R),ee.position&&Ae.option("position",ee.position),Ae.$wrapper().addClass(P),{show:function(){if("android"===f.Z.real().platform){var fe=(0,o.Cr)(w)>(0,o.dz)(w);Ae.option({width:fe?"80%":"60%"})}return Ae.show(),q.promise()},hide:ne}},j=function(ee){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",q=arguments.length>2?arguments[2]:void 0,Z=(0,u.PO)(ee)?ee:{title:G,messageHtml:ee,showTitle:q,buttons:[{text:y.Z.format("Yes"),onClick:function(){return!0}},{text:y.Z.format("No"),onClick:function(){return!1}}],dragEnabled:q};return Y(Z).show()}},130:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>_e});var Z,X,o=l(4817),c=l(1805),I=l(9904),C=l(9897),f=l(4514),a=l(5450),p=l(913),s=l(9589),u=l(8506),d=l(6961),h=l(6496),g=l(7981),x=l(5873),b=l(8893),y=l(6881),E=l(8225),S=l(8690),O=l(6722),w=l(5791),T=l(1828),k=l(7674),R=l(1469),P=l(1880),B=l(4270),W=(0,f.Jj)(),V="dxDraggable",U=(0,E.V4)(O.BL,V),K=(0,E.V4)(O.pB,V),Y=(0,E.V4)(O.ut,V),J=(0,E.V4)(O.IO,V),j=(0,E.V4)(O.Zu,V),ee=(0,E.V4)(S.Z.down,V),G=(0,E.V4)("keydown",V),q="clone",se=ie=>({x:ie.pageX-(0,I.Z)(W).scrollLeft(),y:ie.pageY-(0,I.Z)(W).scrollTop()});class Ae{constructor(de,le){this._preventScroll=!0,this._component=le,"vertical"===de?(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(de,le){var pe=!1;de.some(Ee=>{var ae=(0,I.Z)(Ee),te=ae.hasClass("dx-overlay-wrapper"),re=ae.hasClass("dx-overlay-content");return!(!te&&!re)||(pe=this._trySetScrollable(Ee,le))}),pe||(this._$scrollableAtPointer=null,this._scrollSpeed=0)}isScrolling(){return!!this._scrollSpeed}isScrollable(de){return("auto"===de.css(this._overFlowAttr)||de.hasClass("dx-scrollable-container"))&&de.prop(this._scrollSizeProp)>Math.ceil("width"===this._sizeAttr?(0,c.dz)(de):(0,c.Cr)(de))}_trySetScrollable(de,le){var Ee,pe=(0,I.Z)(de),ae=this._component.option("scrollSensitivity"),te=this.isScrollable(pe);return te&&(ae>(Ee=this._calculateDistanceToBorders(pe,le))[this._limitProps.start]?this._preventScroll||(this._scrollSpeed=-this._calculateScrollSpeed(Ee[this._limitProps.start]),this._$scrollableAtPointer=pe):ae>Ee[this._limitProps.end]?this._preventScroll||(this._scrollSpeed=this._calculateScrollSpeed(Ee[this._limitProps.end]),this._$scrollableAtPointer=pe):(te=!1,this._preventScroll=!1)),te}_calculateDistanceToBorders(de,le){var Ee,pe=de.get(0);return pe?(Ee=(0,a.l)(pe),{left:le.x-Ee.left,top:le.y-Ee.top,right:Ee.right-le.x,bottom:Ee.bottom-le.y}):{}}_calculateScrollSpeed(de){var le=this._component,pe=le.option("scrollSensitivity"),Ee=le.option("scrollSpeed");return Math.ceil(Math.pow((pe-de)/pe,2)*Ee)}scrollByStep(){if(this._$scrollableAtPointer&&this._scrollSpeed){if(this._$scrollableAtPointer.hasClass("dx-scrollable-container")){var de=this._$scrollableAtPointer.closest(".dx-scrollable"),le=de.data("dxScrollable")||de.data("dxScrollView");if(le){var pe=le.scrollOffset()[this._limitProps.start]+this._scrollSpeed;le.scrollTo({[this._limitProps.start]:pe})}}else{var Ee=this._$scrollableAtPointer[this._scrollValue]()+this._scrollSpeed;this._$scrollableAtPointer[this._scrollValue](Ee)}var ae=this._component._dragMoveArgs;ae&&this._component._dragMoveHandler(ae)}}reset(){this._$scrollableAtPointer=null,this._scrollSpeed=0,this._preventScroll=!0}isOutsideScrollable(de,le){if(!de)return!1;var pe=(0,a.l)(de.get(0)),Ee=pe[this._limitProps.start],ae=pe[this._sizeAttr],te=se(le),re="width"===this._sizeAttr?te.x:te.y;return re<Ee||re>Ee+ae}}var ne=h.Z.inherit({ctor:function(ie){this.callBase(),this._strategy=ie},_step:function(){var ie=this._strategy._horizontalScrollHelper,de=this._strategy._verticalScrollHelper;ie&&ie.scrollByStep(),de&&de.scrollByStep()}}),fe=b.Z.inherit({reset:k.ZT,dragMove:k.ZT,dragEnter:k.ZT,dragLeave:k.ZT,dragEnd:function(ie){return this._getSourceDraggable()._fireRemoveEvent(ie),(new B.BH).resolve()},_fireRemoveEvent:k.ZT,_getDefaultOptions:function(){return(0,x.l)(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),(0,x.l)(this._optionsByReference,{component:!0,group:!0,itemData:!0,data:!0})},_init:function(){this.callBase(),this._attachEventHandlers(),this._scrollAnimator=new ne(this),this._horizontalScrollHelper=new Ae("horizontal",this),this._verticalScrollHelper=new Ae("vertical",this)},_normalizeCursorOffset:function(ie){return(0,T.Kn)(ie)&&(ie={h:ie.x,v:ie.y}),{left:(ie=(0,k.Um)(ie).map(de=>parseFloat(de)))[0],top:1===ie.length?ie[0]:ie[1]}},_getNormalizedCursorOffset:function(ie,de){return(0,T.mf)(ie)&&(ie=ie.call(this,de)),this._normalizeCursorOffset(ie)},_calculateElementOffset:function(ie){var de,le,pe=ie.event,Ee=(0,I.Z)(ie.itemElement),ae=(0,I.Z)(ie.dragElement),te=this._dragElementIsCloned(),re=this.option("cursorOffset"),oe={left:0,top:0},ye=this._initialLocate=(0,d.jt)(ae);return(te||ie.initialOffset||re)&&(de=ie.initialOffset||Ee.offset(),re&&(oe=this._getNormalizedCursorOffset(re,ie),isFinite(oe.left)&&(de.left=pe.pageX),isFinite(oe.top)&&(de.top=pe.pageY)),le=ae.offset(),de.top-=le.top+(oe.top||0)-ye.top,de.left-=le.left+(oe.left||0)-ye.left),de},_initPosition:function(ie){var de=(0,I.Z)(ie.dragElement),le=this._calculateElementOffset(ie);le&&this._move(le,de),this._startPosition=(0,d.jt)(de)},_startAnimator:function(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator:function(){this._scrollAnimator.stop()},_addWidgetPrefix:function(ie){return(0,g.H0)(this.NAME)+(ie?"-"+ie:"")},_getItemsSelector:function(){return this.option("filter")||""},_$content:function(){var ie=this.$element(),de=ie.children(".dx-template-wrapper");return de.length?de:ie},_attachEventHandlers:function(){if(!this.option("disabled")){var ie=this._$content(),de=this._getItemsSelector(),le=this.option("allowMoveByClick"),pe={direction:this.option("dragDirection"),immediate:this.option("immediate"),checkDropTarget:(Ee,ae)=>{var te=this.option("group"),re=this._getSourceDraggable().option("group"),oe=this._getScrollable(Ee);return!this._verticalScrollHelper.isOutsideScrollable(oe,ae)&&!this._horizontalScrollHelper.isOutsideScrollable(oe,ae)&&re&&re===te}};le&&(ie=this._getArea(),p.Z.on(ie,ee,pe,this._pointerDownHandler.bind(this))),">"===de[0]&&(de=de.slice(1)),p.Z.on(ie,U,de,pe,this._dragStartHandler.bind(this)),p.Z.on(ie,K,pe,this._dragMoveHandler.bind(this)),p.Z.on(ie,Y,pe,this._dragEndHandler.bind(this)),p.Z.on(ie,J,pe,this._dragEnterHandler.bind(this)),p.Z.on(ie,j,pe,this._dragLeaveHandler.bind(this)),this.option("onCancelByEsc")&&p.Z.on(ie,G,this._keydownHandler.bind(this))}},_dragElementIsCloned:function(){return this._$dragElement&&this._$dragElement.hasClass(this._addWidgetPrefix(q))},_getDragTemplateArgs:function(ie,de){return{container:(0,y.u)(de),model:{itemData:this.option("itemData"),itemElement:(0,y.u)(ie)}}},_createDragElement:function(ie){var de=ie,le=this.option("clone"),pe=this._getContainer(),Ee=this.option("dragTemplate");return Ee?(Ee=this._getTemplate(Ee),de=(0,I.Z)("<div>").appendTo(pe),Ee.render(this._getDragTemplateArgs(ie,de))):le&&(de=(0,I.Z)("<div>").appendTo(pe),ie.clone().css({width:ie.css("width"),height:ie.css("height")}).appendTo(de)),de.toggleClass(this._addWidgetPrefix(q),de.get(0)!==ie.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(){p.Z.off(this._$content(),"."+V),p.Z.off(this._getArea(),"."+V)},_move:function(ie,de){(0,d.pB)(de||this._$dragElement,ie)},_getDraggableElement:function(ie){var de=this._getSourceElement();if(de)return de;if(this.option("allowMoveByClick"))return this.$element();var pe=(0,I.Z)(ie&&ie.target),Ee=this._getItemsSelector();if(">"===Ee[0]){var ae=this._$content().find(Ee);ae.is(pe)||(pe=pe.closest(ae))}return pe},_getSourceElement:function(){return this._getSourceDraggable()._$sourceElement},_pointerDownHandler:function(ie){if(!(0,E.r1)(ie)){var de={},le=this.$element(),pe=this.option("dragDirection");("horizontal"===pe||"both"===pe)&&(de.left=ie.pageX-le.offset().left+(0,d.jt)(le).left-(0,c.dz)(le)/2),("vertical"===pe||"both"===pe)&&(de.top=ie.pageY-le.offset().top+(0,d.jt)(le).top-(0,c.Cr)(le)/2),this._move(de,le),this._getAction("onDragMove")(this._getEventArgs(ie))}},_isValidElement:function(ie,de){var le=this.option("handle"),pe=(0,I.Z)(ie.originalEvent&&ie.originalEvent.target);return!(le&&!pe.closest(le).length||!de.length||de.is(".dx-state-disabled, .dx-state-disabled *"))},_dragStartHandler:function(ie){var de=this._getDraggableElement(ie);if(this.dragInProgress=!0,this._isValidElement(ie,de)){if(!this._$sourceElement){var le=this._getDragStartArgs(ie,de);if(this._getAction("onDragStart")(le),le.cancel)return void(ie.cancel=!0);this.option("itemData",le.itemData),this._setSourceDraggable(),this._$sourceElement=de;var pe=de.offset(),Ee=this._$dragElement=this._createDragElement(de);this._toggleDraggingClass(!0),this._toggleDragSourceClass(!0),this._setGestureCoverCursor(Ee.children());var ae="fixed"===Ee.css("position");this._initPosition((0,x.l)({},le,{dragElement:Ee.get(0),initialOffset:ae&&pe})),this._getAction("onDraggableElementShown")((0,o.Z)({},le,{dragElement:Ee}));var te=this._getArea(),re=this._getAreaOffset(te),oe=this._getBoundOffset(),ye=(0,c.Y_)(te),Pe=(0,c.zp)(te),Ne=(0,c.dz)(Ee),ft=(0,c.Cr)(Ee),tt=Ee.offset().left-re.left,Be=Ee.offset().top-re.top;te.length&&(ie.maxLeftOffset=tt-oe.left,ie.maxRightOffset=ye-tt-Ne-oe.right,ie.maxTopOffset=Be-oe.top,ie.maxBottomOffset=Pe-Be-ft-oe.bottom),this.option("autoScroll")&&this._startAnimator()}}else ie.cancel=!0},_getAreaOffset:function(ie){return ie&&w.Z.offset(ie)||{left:0,top:0}},_toggleDraggingClass:function(ie){this._$dragElement&&this._$dragElement.toggleClass(this._addWidgetPrefix("dragging"),ie)},_toggleDragSourceClass:function(ie,de){var le=de||this._$sourceElement;le&&le.toggleClass(this._addWidgetPrefix("source"),ie)},_setGestureCoverCursor:function(ie){(0,I.Z)(".".concat("dx-gesture-cover")).css("cursor",ie.css("cursor"))},_getBoundOffset:function(){var ie=this.option("boundOffset");return(0,T.mf)(ie)&&(ie=ie.call(this)),(0,s.$b)(ie)},_getArea:function(){var ie=this.option("boundary");return(0,T.mf)(ie)&&(ie=ie.call(this)),(0,I.Z)(ie)},_getContainer:function(){var ie=this.option("container");return void 0===ie&&(ie=(0,R.S3)()),(0,I.Z)(ie)},_dragMoveHandler:function(ie,de){if(this._dragMoveArgs=ie,this._$dragElement){var le=ie.offset,pe=this._startPosition;this._move({left:pe.left+le.x,top:pe.top+le.y}),de||this._updateScrollable(ie);var Ee=this._getEventArgs(ie);this._getAction("onDragMove")(Ee),!0!==Ee.cancel&&this._getTargetDraggable().dragMove(ie,de)}else ie.cancel=!0},_updateScrollable:function(ie){if(this.option("autoScroll")){var de=se(ie),le=C.Z.elementsFromPoint(de.x,de.y,this.$element().get(0));this._verticalScrollHelper.updateScrollable(le,de),this._horizontalScrollHelper.updateScrollable(le,de)}},_getScrollable:function(ie){var de;return ie.parents().toArray().some(le=>{var pe=(0,I.Z)(le);if(this._horizontalScrollHelper.isScrollable(pe)||this._verticalScrollHelper.isScrollable(pe))return de=pe,!0}),de},_defaultActionArgs:function(){var ie=this.callBase.apply(this,arguments),de=this.option("component");return de&&(ie.component=de,ie.element=de.element()),ie},_getEventArgs:function(ie){var de=this._getSourceDraggable(),le=this._getTargetDraggable();return{event:ie,itemData:de.option("itemData"),itemElement:(0,y.u)(de._$sourceElement),fromComponent:de.option("component")||de,toComponent:le.option("component")||le,fromData:de.option("data"),toData:le.option("data")}},_getDragStartArgs:function(ie,de){var le=this._getEventArgs(ie);return{event:le.event,itemData:le.itemData,itemElement:de,fromData:le.fromData}},_revertItemToInitialPosition:function(){!this._dragElementIsCloned()&&this._move(this._initialLocate,this._$sourceElement)},_dragEndHandler:function(ie){var de=new B.BH,le=this._getEventArgs(ie),pe=this._getEventArgs(ie),Ee=this._getTargetDraggable(),ae=!0;this.dragInProgress=!1;try{this._getAction("onDragEnd")(le)}finally{(0,B.gx)((0,B.p4)(le.cancel)).done(te=>{if(!te&&(Ee!==this&&Ee._getAction("onDrop")(pe),!pe.cancel))return ae=!1,void(0,B.gx)((0,B.p4)(Ee.dragEnd(le))).always(de.resolve);de.resolve()}).fail(de.resolve),de.done(()=>{ae&&this._revertItemToInitialPosition(),this._resetDragOptions(Ee)})}},_isTargetOverAnotherDraggable:function(ie){var de=this._getSourceDraggable();if(this===de)return!1;var le=de._$dragElement,pe=de.$element(),Ee=this.$element(),ae=se(ie),re=C.Z.elementsFromPoint(ae.x,ae.y,this.element()).filter(Ne=>{var ft=(0,I.Z)(Ne);if(ft.hasClass(this._addWidgetPrefix()))return!ft.closest(le).length})[0],oe=this._getSourceElement(),ye=re===pe.get(0),Pe=(0,I.Z)(re).closest(oe).length;return!re||re===Ee.get(0)&&!ye&&!Pe},_dragEnterHandler:function(ie){this._fireDragEnterEvent(ie),this._isTargetOverAnotherDraggable(ie)&&this._setTargetDraggable(),this._getSourceDraggable().dragEnter(ie)},_dragLeaveHandler:function(ie){this._fireDragLeaveEvent(ie),this._resetTargetDraggable(),this!==this._getSourceDraggable()&&this.reset(),this._getSourceDraggable().dragLeave(ie)},_keydownHandler:function(ie){this.dragInProgress&&"Escape"===ie.key&&this._keydownEscapeHandler(ie)},_keydownEscapeHandler:function(ie){var de;if(this._getSourceElement()){var pe=this._getEventArgs(ie);if(this._getAction("onDragCancel")(pe),!pe.cancel){this.dragInProgress=!1,null===(de=X)||void 0===de||de._toggleDraggingClass(!1),this._detachEventHandlers(),this._revertItemToInitialPosition();var Ee=this._getTargetDraggable();this._resetDragOptions(Ee),this._attachEventHandlers()}}},_getAction:function(ie){return this["_"+ie+"Action"]||this._createActionByOption(ie)},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this.option("contentTemplate")&&(this._templateManager.addDefaultTemplates({content:new P.s}),this.callBase.apply(this,arguments))},_render:function(){this.callBase(),this.$element().addClass(this._addWidgetPrefix());var ie=this._templateManager.anonymousTemplateName===this.option("contentTemplate"),de=this._getTemplateByOption("contentTemplate");de&&(0,I.Z)(de.render({container:this.element(),transclude:ie}))},_optionChanged:function(ie){var de=ie.name;switch(de){case"onDragStart":case"onDragMove":case"onDragEnd":case"onDrop":case"onDragEnter":case"onDragLeave":case"onDragCancel":case"onDraggableElementShown":this["_"+de+"Action"]=this._createActionByOption(de);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(ie)}},_getTargetDraggable:function(){return Z||this},_getSourceDraggable:function(){return X||this},_setTargetDraggable:function(){var ie=this.option("group"),de=this._getSourceDraggable();ie&&ie===de.option("group")&&(Z=this)},_setSourceDraggable:function(){X=this},_resetSourceDraggable:function(){X=null},_resetTargetDraggable:function(){Z=null},_resetDragOptions:function(ie){this.reset(),ie.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(ie){var de=this._getEventArgs(ie);this._getAction("onDragEnter")(de)},_fireDragLeaveEvent:function(ie){var de=this._getEventArgs(ie);this._getAction("onDragLeave")(de)}});(0,u.Z)(V,fe);const _e=fe},854:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>J});var o=l(9904),c=l(6853),I=l(6868),C=l(8506),f=l(970),a=l(8531),p=l(4137),s=l(6738),u=l(6881),d=l(4328),h=l(8264),g=l(7122),x=l(820),b=l(4270),y=l(5873),E=l(1828),S=l(7674),O=l(6492),w=l(4094),T=l(9009),k="dx-dropdownbutton",P="dx-dropdownbutton-action",B="dx-dropdownbutton-toggle",Y=c.Z.inherit({_getDefaultOptions(){return(0,y.l)(this.callBase(),{itemTemplate:"item",keyExpr:"this",displayExpr:void 0,selectedItem:null,selectedItemKey:null,stylingMode:"outlined",deferRendering:!0,noDataText:T.Z.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(),(0,y.l)(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 I.k(j=>{var ee=(0,o.Z)(j.container),G=(0,o.Z)("<div>").appendTo(ee);this._list=this._createComponent(G,p.Z,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(j){this._dataSource||(this._dataSource=new g.o({store:new x.Z({key:this._getKey(),data:j}),pageSize:0}))},_getKey:function(){var j,ee=this.option("keyExpr"),G=null===(j=this._dataSource)||void 0===j?void 0:j.key();return!(0,E.$K)(G)||(0,E.$K)(ee)&&"this"!==ee?ee:G},_compileKeyGetter(){this._keyGetter=(0,s.vb)(this._getKey())},_compileDisplayGetter(){this._displayGetter=(0,s.vb)(this.option("displayExpr"))},_initMarkup(){this.callBase(),this.$element().addClass(k),this._renderButtonGroup(),this._updateArrowClass(),(0,E.$K)(this.option("selectedItemKey"))&&this._loadSelectedItem().done(this._updateActionButton.bind(this))},_renderFocusTarget:S.ZT,_render(){(!this.option("deferRendering")||this.option("opened"))&&this._renderPopup(),this.callBase()},_renderContentImpl(){return this._popup&&this._renderPopupContent(),this.callBase()},_loadSelectedItem(){var j;null===(j=this._loadSingleDeferred)||void 0===j||j.reject();var ee=new b.BH;if(this._list&&void 0!==this._lastSelectedItemData){var G=this.option("useSelectMode")?this._list.option("selectedItem"):this._lastSelectedItemData;return ee.resolve(G)}this._lastSelectedItemData=void 0;var q=this.option("selectedItemKey");return this._loadSingle(this._getKey(),q).done(ee.resolve).fail(()=>{ee.resolve(null)}),this._loadSingleDeferred=ee,ee.promise()},_createActionClickAction(){this._actionClickAction=this._createActionByOption("onButtonClick")},_createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_createItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")},_fireSelectionChangedAction(j){var{previousValue:ee,value:G}=j;this._selectionChangedAction({item:G,previousItem:ee})},_fireItemClickAction(j){var{event:ee,itemElement:G,itemData:q}=j;return this._itemClickAction({event:ee,itemElement:G,itemData:this._actionItem||q})},_actionButtonConfig(){return{text:this.option("text"),icon:this.option("icon"),elementAttr:{class:P}}},_getButtonGroupItems(){var j=[];return j.push(this._actionButtonConfig()),this.option("splitButton")&&j.push({icon:"spindown",elementAttr:{class:B}}),j},_buttonGroupItemClick(j){var{event:ee,itemData:G}=j,q=G.elementAttr.class===P;G.elementAttr.class===B?this.toggle():q&&(this._actionClickAction({event:ee,selectedItem:this.option("selectedItem")}),this.option("splitButton")||this.toggle())},_buttonGroupOptions(){var{splitButton:j,showArrowIcon:ee,focusStateEnabled:G,hoverStateEnabled:q,stylingMode:Z,accessKey:X,tabIndex:M}=this.option(),se=j||!ee?"content":(ge,De)=>{var{text:Fe,icon:Ae}=ge,ne=(0,d.H)(Ae),fe=Fe?(0,o.Z)("<span>").text(Fe).addClass("dx-button-text"):void 0,_e=(0,d.H)("spindown").addClass("dx-icon-right");(0,o.Z)(De).append(ne,fe,_e)};return(0,y.l)({items:this._getButtonGroupItems(),onItemClick:this._buttonGroupItemClick.bind(this),width:"100%",height:"100%",selectionMode:"none",onKeyboardHandled:ge=>this._keyboardHandler(ge),buttonTemplate:se,focusStateEnabled:G,hoverStateEnabled:q,stylingMode:Z,accessKey:X,tabIndex:M},this._options.cache("buttonGroupOptions"))},_renderPopupContent(){var j=this._popup.$content(),ee=this._getTemplateByOption("dropDownContentTemplate");return j.empty(),this._popupContentId="dx-"+new O.Z,this.setAria("id",this._popupContentId,j),ee.render({container:(0,u.u)(j),model:this.option("items")||this._dataSource})},_popupOptions(){var j=this.option("rtlEnabled")?"right":"left";return(0,y.l)({dragEnabled:!1,focusStateEnabled:!1,deferRendering:this.option("deferRendering"),hideOnOutsideClick:ee=>{var G=this.$element();return!(0,o.Z)(ee.target).closest(".".concat(k)).is(G)},showTitle:!1,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},_ignoreFunctionValueDeprecation:!0,width:()=>(0,w.m)(this.$element()),height:"auto",shading:!1,position:{of:this.$element(),collision:"flipfit",my:j+" top",at:j+" bottom"},_wrapperClassExternal:"dx-dropdowneditor-overlay"},this._options.cache("dropDownOptions"),{visible:this.option("opened")})},_listOptions(){var j=this.option("selectedItemKey"),ee=this.option("useSelectMode");return{selectionMode:ee?"single":"none",wrapItemText:this.option("wrapItemText"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:()=>this._fireContentReadyAction(),selectedItemKeys:(0,E.$K)(j)&&ee?[j]:[],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:G=>{this.option("useSelectMode")||(this._lastSelectedItemData=G.itemData),this.option("selectedItemKey",this._keyGetter(G.itemData)),!1!==this._fireItemClickAction(G)&&(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 j=(0,o.Z)("<div>");this.$element().append(j),this._popup=this._createComponent(j,a.Z,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(j){var ee=c.Z.getOptionsFromContainer(j);this._setPopupOption(ee);var G=Object.keys(ee);(-1!==G.indexOf("width")||-1!==G.indexOf("height"))&&this._dimensionChanged()},_dimensionChanged:function(){void 0===(0,w.T)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",()=>(0,w.m)(this.$element()))},_setPopupOption:function(j,ee){this._setWidgetOption("_popup",arguments)},_popupShowingHandler(){this.option("opened",!0),this._setAriaExpanded(!0)},_setAriaExpanded(j){this._ariaExpandedElements.forEach(ee=>{this.setAria({expanded:j,owns:j?this._popupContentId:void 0},(0,o.Z)(ee))})},_renderButtonGroup(){var j=this._buttonGroup&&this._buttonGroup.$element()||(0,o.Z)("<div>");this._buttonGroup||this.$element().append(j),this._buttonGroup=this._createComponent(j,f.Z,this._buttonGroupOptions());var ee=this._buttonGroup.$element().find(".dx-button").toArray();this._ariaExpandedElements=[...ee,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 j=this.option("splitButton")||this.option("showArrowIcon");this.$element().toggleClass("dx-dropdownbutton-has-arrow",j)},toggle(j){return this._popup||(this._renderPopup(),this._renderContent()),this._popup.toggle(j)},open(){return this.toggle(!0)},close(){return this.toggle(!1)},_setListOption(j,ee){this._list&&this._list.option(j,ee)},_getDisplayValue(j){var G=(0,E.PO)(j)?this._displayGetter(j):j;return(0,E.PO)(G)?"":String((0,S.IS)(G,""))},_updateActionButton(j){this.option("useSelectMode")&&this.option({text:this._getDisplayValue(j),icon:(0,E.PO)(j)?j.icon:void 0}),this._setOptionWithoutOptionChange("selectedItem",j),this._setOptionWithoutOptionChange("selectedItemKey",this._keyGetter(j))},_clean(){this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove()},_selectedItemKeyChanged(j){this._setListOption("selectedItemKeys",this.option("useSelectMode")&&(0,E.$K)(j)?[j]:[]);var ee=this.option("selectedItem");this._loadSelectedItem().done(G=>{this._updateActionButton(G),this._displayGetter(ee)!==this._displayGetter(G)&&this._fireSelectionChangedAction({previousValue:ee,value:G})})},_actionButtonOptionChanged(j){var{name:ee,value:G}=j,q={};q[ee]=G,this._buttonGroup.option("items[0]",(0,y.l)({},this._actionButtonConfig(),q)),this._popup&&this._popup.repaint()},_selectModeChanged(j){if(j){this._setListOption("selectionMode","single");var ee=this.option("selectedItemKey");this._setListOption("selectedItemKeys",(0,E.$K)(ee)?[ee]:[]),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(j){var ee=this.option("selectedItemKey");this._setListOption("selectedItem",null),this._setWidgetOption("_list",[j]),(0,E.$K)(ee)&&this._loadSelectedItem().done(G=>{this._setListOption("selectedItemKeys",[ee]),this._setListOption("selectedItem",G)}).fail(G=>{this._setListOption("selectedItemKeys",[])}).always(this._updateActionButton.bind(this))},_updateDataSource:function(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._dataSource.items();this._dataSource=void 0,this._itemsToDataSource(j),this._updateKeyExpr()},_updateKeyExpr:function(){this._compileKeyGetter(),this._setListOption("keyExpr",this._getKey())},focus:function(){this._buttonGroup.focus()},_optionChanged(j){var ee,{name:G,value:q}=j;switch(G){case"useSelectMode":this._selectModeChanged(q);break;case"splitButton":this._updateArrowClass(),this._renderButtonGroup();break;case"displayExpr":this._compileDisplayGetter(),this._setListOption(G,q),this._updateActionButton(this.option("selectedItem"));break;case"keyExpr":this._updateDataSource();break;case"buttonGroupOptions":this._innerWidgetOptionChanged(this._buttonGroup,j);break;case"dropDownOptions":if("dropDownOptions.visible"===j.fullName)break;void 0!==j.value.visible&&delete j.value.visible,this._popupOptionChanged(j),this._innerWidgetOptionChanged(this._popup,j);break;case"opened":this.toggle(q);break;case"focusStateEnabled":case"hoverStateEnabled":this._setListOption(G,q),this._buttonGroup.option(G,q),this.callBase(j);break;case"items":this._updateDataSource(this.option("items")),this._updateItemCollection(G);break;case"dataSource":Array.isArray(q)?this._updateDataSource(this.option("dataSource")):(this._initDataSource(),this._updateKeyExpr()),this._updateItemCollection(G);break;case"icon":case"text":this._actionButtonOptionChanged(j);break;case"showArrowIcon":this._updateArrowClass(),this._renderButtonGroup(),this._popup&&this._popup.repaint();break;case"width":case"height":this.callBase(j),null===(ee=this._popup)||void 0===ee||ee.repaint();break;case"stylingMode":case"tabIndex":this._buttonGroup.option(G,q);break;case"itemTemplate":case"grouped":case"noDataText":case"groupTemplate":case"wrapItemText":case"useItemTextAsTitle":this._setListOption(G,q);break;case"dropDownContentTemplate":this._renderContent();break;case"selectedItemKey":this._selectedItemKeyChanged(q);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(j)}}}).include(h.Z);(0,C.Z)("dxDropDownButton",Y);const J=Y},4694:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>De});var o=l(9904),c=l(913),I=l(6492),C=l(8506),f=l(7674),a=l(7),p=l(2718),s=l(1828),u=l(5873),d=l(6881),h=l(8159),g=l(5791),x=l(5450),b=l(9009),y=l(5251),E=l(219);class T extends y.Z{constructor(Ae,ne,fe){super(Ae,ne,fe),this.currentTemplate=null}_attachEvents(Ae){var{editor:ne}=this;Ae.option("onClick",fe=>{!ne.option("openOnFieldClick")&&ne._openHandler(fe)}),c.Z.on(Ae.$element(),"mousedown",fe=>{ne.$element().is(".dx-state-focused")&&fe.preventDefault()})}_create(){var{editor:Ae}=this,ne=(0,o.Z)("<div>"),fe=this._getOptions();this._addToContainer(ne);var _e=Ae._createComponent(ne,E.Z,(0,u.l)({},fe,{elementAttr:{"aria-label":b.Z.format("dxDropDownEditor-selectLabel")}}));return this._legacyRender(Ae.$element(),ne,fe.visible),{$element:ne,instance:_e}}_getOptions(){var{editor:Ae}=this,ne=this._isVisible(),_e={focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:Ae.option("readOnly"),visible:ne};return this._addTemplate(_e),_e}_isVisible(){var{editor:Ae}=this;return super._isVisible()&&Ae.option("showDropDownButton")}_legacyRender(Ae,ne,fe){Ae.toggleClass("dx-dropdowneditor-button-visible",fe),ne&&ne.removeClass("dx-button").addClass("dx-dropdowneditor-button")}_isSameTemplate(){return this.editor.option("dropDownButtonTemplate")===this.currentTemplate}_addTemplate(Ae){this._isSameTemplate()||(Ae.template=this.editor._getTemplateByOption("dropDownButtonTemplate"),this.currentTemplate=this.editor.option("dropDownButtonTemplate"))}update(){if(super.update()){var{editor:ne,instance:fe}=this,_e=ne.$element(),ie=this._getOptions();fe?.option(ie),this._legacyRender(_e,fe?.$element(),ie.visible)}}}var k=l(6853),R=l(8225),P=l(3447),B=l(227),W=l(2941),N=l(6868),V=l(8531),U=l(4514),K=l(4094),Y=l(6961),j="dx-dropdowneditor-input-wrapper",G="dx-dropdowneditor-overlay",se="ios"===W.Z.current().platform,ge=P.Z.inherit({_supportedKeys:function(){return(0,u.l)({},this.callBase(),{tab:function(Fe){if(this.option("opened")){if("instantly"===this.option("applyValueMode"))return void this.close();var Ae=Fe.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();Ae&&(c.Z.trigger(Ae,"focus"),Ae.select()),Fe.preventDefault()}},escape:function(Fe){return this.option("opened")&&Fe.preventDefault(),this.close(),!0},upArrow:function(Fe){return!(!(0,R.j1)(Fe)&&(Fe.preventDefault(),Fe.stopPropagation(),Fe.altKey)&&(this.close(),1))},downArrow:function(Fe){return!(!(0,R.j1)(Fe)&&(Fe.preventDefault(),Fe.stopPropagation(),Fe.altKey)&&(this._validatedOpening(),1))},enter:function(Fe){return this.option("opened")&&(Fe.preventDefault(),this._valueChangeEventHandler(Fe)),!0}})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:T}])},_getDefaultOptions:function(){return(0,u.l)(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:b.Z.format("OK"),cancelButtonText:b.Z.format("Cancel"),buttonsLocation:"default",useHiddenSubmitElement:!1,validationMessagePosition:"auto"})},_useTemplates:function(){return!0},_getDefaultPopupPosition:function(Fe){var Ae=(0,x.q)(Fe);return{offset:{h:0,v:-1},my:Ae+" top",at:Ae+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(Fe){return"generic"===Fe.platform},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+j).first()},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._updatePopupPosition(this.option("rtlEnabled")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_updatePopupPosition:function(Fe){var{my:Ae,at:ne}=this._getDefaultPopupPosition(Fe),fe=this.option("popupPosition");this.option("popupPosition",(0,u.l)({},fe,{my:Ae,at:ne}))},_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((0,o.Z)("<div>").addClass(j)).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 Fe=this._getFieldTemplate();Fe&&this._renderTemplatedField(Fe,this._fieldRenderData())},_renderPlaceholder:function(){this._getFieldTemplate()||this.callBase()},_renderValue:function(){this.option("useHiddenSubmitElement")&&this._setSubmitValue(),this.callBase().always(this._renderField.bind(this))},_renderTemplatedField:function(Fe,Ae){var ne;this._fieldRenderQueueLength=(null!==(ne=this._fieldRenderQueueLength)&&void 0!==ne?ne:0)+1;var fe=(0,a.si)(this._input()),_e=this._$container;this._detachKeyboardEvents(),this._refreshButtonsContainer(),this._detachWrapperContent(),this._detachFocusEvents(),_e.empty();var ie=(0,o.Z)("<div>").addClass("dx-dropdowneditor-field-template-wrapper").appendTo(_e);Fe.render({model:Ae,container:(0,d.u)(ie),onRendered:()=>{if(this._fieldRenderQueueLength--,0===this._fieldRenderQueueLength){var de=this._input();if(!de.length)throw h.Z.Error("E1010");this._integrateInput(),fe&&c.Z.trigger(de,"focus")}}}),this._attachWrapperContent(_e)},_detachWrapperContent(){var Fe,Ae,ne;this.option("useHiddenSubmitElement")&&(null===(Fe=this._$submitElement)||void 0===Fe||Fe.detach());var _e=null===(Ae=this._$beforeButtonsContainer)||void 0===Ae?void 0:Ae[0].parentNode,ie=null===(ne=this._$afterButtonsContainer)||void 0===ne?void 0:ne[0].parentNode;_e?.removeChild(this._$beforeButtonsContainer[0]),ie?.removeChild(this._$afterButtonsContainer[0])},_attachWrapperContent(Fe){var Ae,ne=this.option("useHiddenSubmitElement");Fe.prepend(this._$beforeButtonsContainer),ne&&(null===(Ae=this._$submitElement)||void 0===Ae||Ae.appendTo(Fe)),Fe.append(this._$afterButtonsContainer)},_refreshButtonsContainer(){this._$buttonsContainer=this.$element().children().eq(0)},_integrateInput:function(){this._renderFocusState(),this._refreshValueChangeEvent(),this._refreshEvents(),this._refreshEmptinessEvent()},_refreshEmptinessEvent:function(){c.Z.off(this._input(),"input blur",this._toggleEmptinessEventHandler),this._renderEmptinessEvent()},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this._templateManager.addDefaultTemplates({dropDownButton:new N.k(function(Fe){var Ae=(0,o.Z)("<div>").addClass("dx-dropdowneditor-icon");(0,o.Z)(Fe.container).append(Ae)})}),this.callBase()},_renderOpenHandler:function(){var Fe=this._inputWrapper(),Ae=(0,R.V4)(B.u,this.NAME),ne=this.option("openOnFieldClick");c.Z.off(Fe,Ae),c.Z.on(Fe,Ae,this._getInputClickHandler(ne)),this.$element().toggleClass("dx-dropdowneditor-field-clickable",ne),ne&&(this._openOnFieldClickAction=this._createAction(this._openHandler.bind(this)))},_attachFocusOutHandler:function(){se&&(this._detachFocusOutEvents(),c.Z.on(this._inputWrapper(),(0,R.V4)("focusout",this.NAME),Fe=>{var Ae=Fe.relatedTarget,ne=this.content?(0,o.Z)(this.content()).closest("."+G):this._$popup;Ae&&this.option("opened")&&0===(0,o.Z)(Ae).closest("."+G,ne).length&&this.close()}))},_detachFocusOutEvents:function(){se&&c.Z.off(this._inputWrapper(),(0,R.V4)("focusout",this.NAME))},_getInputClickHandler:function(Fe){return Fe?Ae=>{this._executeOpenAction(Ae)}:Ae=>{this._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(Fe){this._openOnFieldClickAction({event:Fe})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!(0,a.si)(this._input())&&(this._resetCaretPosition(),c.Z.trigger(this._input(),"focus")),!0)},_resetCaretPosition:function(){var Fe=arguments.length>0&&void 0!==arguments[0]&&arguments[0],Ae=this._input().get(0);if(Ae){var{value:ne}=Ae,fe=(0,s.$K)(ne)&&(Fe||this._isEditable())?ne.length:0;this._caret({start:fe,end:fe},!0)}},_isEditable:function(){return this.option("acceptCustomValue")},_toggleOpenState:function(Fe){this._focusInput()&&(this.option("readOnly")||(Fe=arguments.length?Fe:!this.option("opened"),this.option("opened",Fe)))},_getControlsAria(){return this._popup&&this._popupContentId},_renderOpenedState:function(){var Fe=this.option("opened");Fe&&this._createPopup(),this.$element().toggleClass("dx-dropdowneditor-active",Fe),this._setPopupOption("visible",Fe);var Ae={expanded:Fe,controls:this._getControlsAria()};this.setAria(Ae),this.setAria("owns",Fe?this._popupContentId:void 0,this.$element())},_createPopup:function(){this._$popup||(this._$popup=(0,o.Z)("<div>").addClass(G).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopupContent:f.ZT,_renderPopup:function(){var Fe=(0,u.l)(this._popupConfig(),this._options.cache("dropDownOptions"));delete Fe.closeOnOutsideClick,Fe.elementAttr&&!Object.keys(Fe.elementAttr).length&&delete Fe.elementAttr,this._popup=this._createComponent(this._$popup,V.Z,Fe),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(Fe){this._popupContentId="dx-"+new I.Z,this.setAria("id",this._popupContentId,Fe)},_contentReadyHandler:f.ZT,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:(0,u.l)(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("dropDownOptions.showTitle"),_ignoreFunctionValueDeprecation:!0,width:()=>(0,K.m)(this.$element()),height:"auto",shading:!1,hideOnParentScroll:!0,hideOnOutsideClick:Fe=>this._closeOutsideDropDownHandler(Fe),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:G}},_popupInitializedHandler:function(){return this.option("onPopupInitialized")?Fe=>{this._popupInitializedAction({popup:Fe.component})}:null},_dimensionChanged:function(){!(0,U.Ym)()||this.$element().is(":visible")?this._updatePopupWidth():this.close()},_updatePopupWidth:function(){void 0===(0,K.T)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",()=>(0,K.m)(this.$element()))},_popupPositionedHandler:function(Fe){var Ae,ne,{labelMode:fe,stylingMode:_e}=this.option();if(this._popup){var ie=this._popup.$overlayContent(),de=null===(Ae=Fe.position)||void 0===Ae||null===(ne=Ae.v)||void 0===ne?void 0:ne.flip,le="hidden"!==fe&&"outlined"===_e;if(Fe.position&&ie.toggleClass("dx-dropdowneditor-overlay-flipped",de),de&&le&&this._label.isVisible()){var pe=this._label.$element();(0,Y.pB)(ie,{top:(0,Y.jt)(ie).top-parseInt(pe.css("fontSize"))})}}},_popupShowingHandler:f.ZT,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){var Fe;this._openAction(),null===(Fe=this._validationMessage)||void 0===Fe||Fe.option("positionSide",this._getValidationMessagePositionSide())},_popupHiddenHandler:function(){var Fe;this._closeAction(),null===(Fe=this._validationMessage)||void 0===Fe||Fe.option("positionSide",this._getValidationMessagePositionSide())},_getValidationMessagePositionSide:function(){var Fe=this.option("validationMessagePosition");if("auto"!==Fe)return Fe;var Ae="bottom";if(this._popup&&this._popup.option("visible")){var{top:ne}=g.Z.setup(this.$element()),{top:fe}=g.Z.setup(this._popup.$content());Ae=ne+this.option("popupPosition").offset.v>fe?"bottom":"top"}return Ae},_closeOutsideDropDownHandler:function(Fe){var{target:Ae}=Fe,ne=(0,o.Z)(Ae),fe=this.getButton("dropDown"),_e=fe&&fe.$element(),ie=!!ne.closest(this.$element()).length,de=!!ne.closest(_e).length;return!ie&&!de},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(Fe,Ae){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(Fe){var Ae=(0,o.Z)(Fe.currentTarget);(Fe.shiftKey&&Ae.is(this._getFirstPopupElement())||!Fe.shiftKey&&Ae.is(this._getLastPopupElement()))&&(c.Z.trigger(this._input(),"focus"),Fe.preventDefault())},_popupElementEscHandler:function(){c.Z.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(Fe){Fe.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),Fe.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var Fe=[{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(Fe)},_applyButtonsLocation:function(Fe){var Ae=this.option("buttonsLocation"),ne=Fe;if("default"!==Ae){var fe=(0,f.Um)(Ae);(0,p.S6)(ne,function(_e,ie){(0,u.l)(ie,{toolbar:fe[0],location:fe[1]})})}return ne},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_popupOptionChanged:function(Fe){var Ae=k.Z.getOptionsFromContainer(Fe);this._setPopupOption(Ae);var ne=Object.keys(Ae);(-1!==ne.indexOf("width")||-1!==ne.indexOf("height"))&&this._dimensionChanged()},_renderSubmitElement:function(){this.option("useHiddenSubmitElement")&&(this._$submitElement=(0,o.Z)("<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(Fe){var Ae;switch(Fe.name){case"width":case"height":this.callBase(Fe),null===(Ae=this._popup)||void 0===Ae||Ae.repaint();break;case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":(0,s.$K)(Fe.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(Fe),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;case"popupPosition":break;case"deferRendering":(0,U.Ym)()&&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(Fe.value),this.callBase(Fe);break;default:this.callBase(Fe)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return(0,d.u)(this._input())},content:function(){return this._popup?this._popup.content():null}});(0,C.Z)("dxDropDownEditor",ge);const De=ge},5287:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>Y});var o=l(1805),c=l(9904),I=l(4514),C=l(913),f=l(6492),a=l(8506),p=l(7674),s=l(1828),u=l(5873),d=l(4694),h=l(4137),g=l(8159),x=l(8225),b=l(2941),y=l(7316),E=l(2718),S=l(5442),O=l(9009),w=l(1927),T=l(4270),k=l(9661),R=(0,I.Jj)(),V=["startswith","contains","endwith","notcontains"],U="android"!==b.Z.real().platform,K=d.Z.inherit({_supportedKeys:function(){var J=this.callBase();return(0,u.l)({},J,{tab:function(j){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(j);var ee=(0,c.Z)(this._list.option("focusedElement"));ee.length&&this._setSelectedElement(ee)}J.tab.apply(this,arguments)},space:p.ZT,home:p.ZT,end:p.ZT})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(J){var j=this._valueGetter(this._list._getItemData(J));this._setValue(j)},_setValue:function(J){this.option("value",J)},_getDefaultOptions:function(){return(0,u.l)(this.callBase(),(0,u.l)(S.Z._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:O.Z.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,onSelectionChanged:null,onItemClick:p.ZT,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(),(0,u.l)(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 J=this.option().items;J&&!J.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 w.s("item")})},_isEditable:function(){return this.callBase()||this.option("searchEnabled")},_saveFocusOnWidget:function(J){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_fitIntoRange:function(J,j,ee){return J>ee?j:J<j?ee:J},_items:function(){var J=this._getPlainItems(!this._list&&this._dataSource.items());return new y.Z(J).filter("disabled","<>",!0).toArray()},_calcNextItem:function(J){var j=this._items();return j[this._fitIntoRange(this._getSelectedIndex()+J,0,j.length-1)]},_getSelectedIndex:function(){var J=this._items(),j=this.option("selectedItem"),ee=-1;return(0,E.S6)(J,function(G,q){if(this._isValueEquals(q,j))return ee=G,!1}.bind(this)),ee},_createPopup:function(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup.$wrapper().addClass(this._popupWrapperClass());var J=this._popup.$content();C.Z.off(J,"mouseup"),C.Z.on(J,"mouseup",this._saveFocusOnWidget.bind(this))},_updateCustomBoundaryContainer:function(){var J=this.option("dropDownOptions.container"),j=J&&(0,c.Z)(J);if(j&&j.length&&!(0,s.FJ)(j.get(0))){var ee=[].slice.call(j.parents());ee.unshift(j.get(0)),(0,E.S6)(ee,function(G,q){return q!==(0,c.Z)("body").get(0)&&("hidden"===R.getComputedStyle(q).overflowY?(this._$customBoundaryContainer=(0,c.Z)(q),!1):void 0)}.bind(this))}},_popupWrapperClass:function(){return"dx-dropdownlist-popup-wrapper"},_renderInputValue:function(){var J=this._getCurrentValue();return this._rejectValueLoading(),this._loadInputValue(J,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,J))},_loadInputValue:function(J,j){return this._loadItem(J).always(j)},_getItemFromPlain:function(J,j){var ee,G;return j&&"object"!=typeof J&&(j.itemByValue||(j.itemByValue={},(ee=this._getPlainItems()).forEach(function(q){j.itemByValue[this._valueGetter(q)]=q},this)),G=j.itemByValue[J]),G||(ee=this._getPlainItems(),G=(0,p.h3)(ee,function(q){return this._isValueEquals(this._valueGetter(q),J)}.bind(this))[0]),G},_loadItem:function(J,j){var ee=this._getItemFromPlain(J,j);return void 0!==ee?(new T.BH).resolve(ee).promise():this._loadValue(J)},_getPlainItems:function(J){var j=[];J=J||this.option("items")||this._dataSource.items()||[];for(var ee=0;ee<J.length;ee++)J[ee]&&J[ee].items?j=j.concat(J[ee].items):j.push(J[ee]);return j},_updateActiveDescendant(){var J,j=this.option("opened"),ee=null===(J=this._list)||void 0===J?void 0:J.getFocusedItemId(),G=(0,c.Z)("#".concat(ee)).length>0;this.setAria({activedescendant:j&&G&&ee||null})},_setSelectedItem:function(J){var j=this._displayValue(J);this.option("selectedItem",(0,p.IS)(J,null)),this.option("displayValue",j)},_displayValue:function(J){return this._displayGetter(J)},_refreshSelected:function(){var J={};this._listItemElements().each(function(j,ee){var G=(0,c.Z)(ee),q=this._valueGetter(G.data("dxListItemData"));this._isSelectedValue(q,J)?this._list.selectItem(G):this._list.unselectItem(G)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){!this.option("focusStateEnabled")||!this._list||this._list.option("focusedElement",null)},_isSelectedValue:function(J){return this._isValueEquals(J,this.option("value"))},_validateSearchMode:function(){var J=this.option("searchMode"),j=J.toLowerCase();if(!V.includes(j))throw g.Z.Error("E1019",J)},_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"):(0,c.Z)()},_popupConfig:function(){return(0,u.l)(this.callBase(),{templatesRenderAsynchronously:!1,autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this.callBase(),this._renderList()},_getKeyboardListeners(){var J=this._canListHaveFocus();return this.callBase().concat([!J&&this._list])},_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this)},_renderList:function(){this._listId="dx-"+(new f.Z)._value;var J=this._$list=(0,c.Z)("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(J,h.Z,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._list.option("_listAttributes",{role:"combobox"}),this._renderPreventBlurOnListClick(),this._setListFocusedElementOptionChange()},_renderPreventBlurOnListClick:function(){var J=(0,x.V4)("mousedown","dxDropDownList");C.Z.off(this._$list,J),C.Z.on(this._$list,J,j=>j.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"===b.Z.real().deviceType},_listConfig:function(){var J={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()||(J.tabIndex=null),J},_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(J,j){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(J){this._listItemClickHandler(J),this._itemClickAction(J)},_listItemClickHandler:p.ZT,_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 J=this._isMinSearchLengthExceeded();return this._dataController.isLoaded()&&this.option("showDataBeforeSearch")&&this.option("minSearchLength")&&!J&&!this._isLastMinSearchLengthExceeded},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return(0,x.V4)("input",this.NAME+"Search")},_getCompositionStartEvent:function(){return(0,x.V4)("compositionstart",this.NAME+"CompositionStart")},_getCompositionEndEvent:function(){return(0,x.V4)("compositionend",this.NAME+"CompositionEnd")},_getSetFocusPolicyEvent:function(){return(0,x.V4)("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),C.Z.on(this._input(),this._getSetFocusPolicyEvent(),()=>{this._setFocusPolicy()}),this._shouldRenderSearchEvent()&&(C.Z.on(this._input(),this._getSearchEvent(),J=>{this._searchHandler(J)}),U&&(C.Z.on(this._input(),this._getCompositionStartEvent(),()=>{this._isTextCompositionInProgress(!0)}),C.Z.on(this._input(),this._getCompositionEndEvent(),J=>{this._isTextCompositionInProgress(void 0),this._searchHandler(J,this._searchValue())})))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){C.Z.off(this._input(),this._getSearchEvent()),C.Z.off(this._input(),this._getSetFocusPolicyEvent()),U&&(C.Z.off(this._input(),this._getCompositionStartEvent()),C.Z.off(this._input(),this._getCompositionEndEvent())),this.callBase()},_isTextCompositionInProgress:function(J){if(!arguments.length)return this._isTextComposition;this._isTextComposition=J},_searchHandler:function(J,j){if(!this._isTextCompositionInProgress()){if(!this._isMinSearchLengthExceeded())return void this._searchCanceled();var ee=this.option("searchTimeout");ee?(this._clearSearchTimer(),this._searchTimer=setTimeout(()=>{this._searchDataSource(j)},ee)):this._searchDataSource(j)}},_searchCanceled:function(){this._clearSearchTimer(),this._needClearFilter()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._searchValue();this._filterDataSource(J)},_filterDataSource:function(J){this._clearSearchTimer();var j=this._dataController;j.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),j.searchOperation(this.option("searchMode")),j.searchValue(J),j.load().done(this._dataSourceFiltered.bind(this,J))},_clearFilter:function(){var J=this._dataController;J.searchValue()&&J.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 J=this._shouldOpenPopup();J&&!this._isFocused()||(this.option("opened",J),J&&(this._updatePopupWidth(),this._updateListDimensions()))}},_dataSourceChangedHandler:function(J){0===this._dataController.pageIndex()?this.option().items=J:this.option().items=this.option().items.concat(J)},_hasItemsToShow:function(){var ee=(this._dataController.items()||[]).length;return!(!this._needPassDataSourceToList()||!ee)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._updatePopupWidth(),this._updateListDimensions()},_dimensionChanged:function(){this.callBase(),this._updateListDimensions()},_needPopupRepaint:function(){var J=this._dataController,j=J.pageIndex(),ee=(0,s.$K)(this._pageIndex)&&j<=this._pageIndex||J.isLastPage()&&!this._list._scrollViewIsFull();return this._pageIndex=j,ee},_updateListDimensions:function(){this._popup&&(this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions())},_getMaxHeight:function(){var J=this.$element(),j=this._$customBoundaryContainer,ee=J.offset().top-(j?j.offset().top:0),G=(0,o.zp)(R),q=j?Math.min((0,o.zp)(j),G):G,Z=Math.max(ee,q-ee-(0,o.zp)(J));return Math.min(.5*q,Z)},_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 J=this.option("value"),j=this._shouldUseDisplayValue(J)?this._displayGetter(J):J;this._getSubmitElement().val(j)},_shouldUseDisplayValue:function(J){return"this"===this.option("valueExpr")&&(0,s.Kn)(J)},_optionChanged:function(J){switch(this._dataExpressionOptionChanged(J),J.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(J.name,J.value),this.callBase(J);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(J.name);break;case"displayValue":this.option("text",J.value);break;case"itemTemplate":case"searchTimeout":break;case"selectedItem":J.previousValue!==J.value&&this._selectionChangedAction({selectedItem:J.value});break;default:this.callBase(J)}}}).include(S.Z,k.Z);(0,a.Z)("dxDropDownList",K);const Y=K},4094:(kn,he,l)=>{"use strict";l.d(he,{T:()=>C,m:()=>I});var o=l(1805),c=l(4514),I=function(f){if((0,c.Ym)())return(0,o.Y_)(f)},C=function(f){return null===f&&(f=void 0),"function"==typeof f&&(f=f()),f}},1031:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>W});var o=l(9904),c=l(5610),I=l(5365),C=l(4514),f=l(8225),a=l(5873),p=l(6853),s=l(3191),u=l(913),d=l(8785),h=l(6492),g=l(7674),x=l(6520),b="dx-invalid-message-auto",O="dx-validation-target",T="invalid",R=["outlined","filled","underlined"],P={validationMessageMode:"mode",validationMessagePosition:"positionSide",validationMessageOffset:"offset",validationBoundary:"boundary"},B=p.Z.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.validationRequest=(0,I.Z)(),this.callBase.apply(this,arguments)},_createElement:function(N){this.callBase(N);var V=this.$element();V&&(0,c.aT)(V[0],O,this)},_initOptions:function(N){this.callBase.apply(this,arguments),this.option(s.Z.initValidationOptions(N))},_init:function(){this.callBase(),this._options.cache("validationTooltipOptions",this.option("validationTooltipOptions")),this.$element().addClass("dx-show-invalid-badge")},_getDefaultOptions:function(){return(0,a.l)(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(),(0,a.l)(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 N;this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState(),null===(N=this.option("_onMarkupRendered"))||void 0===N||N()},_raiseValueChangeAction:function(N,V){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(N,V))},_valueChangeArgs:function(N,V){return{value:N,previousValue:V,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(N){this._valueChangeEventInstance=N},_focusInHandler:function(N){var V="auto"===this.option("validationMessageMode");if(this._canValueBeChangedByClick()&&V){var U,K=null===(U=this._validationMessage)||void 0===U?void 0:U.$wrapper();K?.removeClass(b),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(()=>K?.addClass(b),150)}return this.callBase(N)},_canValueBeChangedByClick:function(){return!1},_getStylingModePrefix:function(){return"dx-editor-"},_renderStylingMode:function(){var N=this.option("stylingMode"),V=this._getStylingModePrefix(),U=R.map(j=>V+j);U.forEach(j=>this.$element().removeClass(j));var K=V+N;if(-1===U.indexOf(K)){var Y=this._getDefaultOptions().stylingMode,J=this._convertRulesToOptions(this._defaultOptionsRules()).stylingMode;K=V+(J||Y)}this.$element().addClass(K)},_getValidationErrors:function(){var N=this.option("validationErrors");return!N&&this.option("validationError")&&(N=[this.option("validationError")]),N},_disposeValidationMessage:function(){this._$validationMessage&&(this._$validationMessage.remove(),this.setAria("describedby",null),this._$validationMessage=void 0,this._validationMessage=void 0)},_toggleValidationClasses:function(N){this.$element().toggleClass("dx-invalid",N),this.setAria(T,N||void 0)},_renderValidationState:function(){var N=this.option("isValid")&&this.option("validationStatus")!==T,V=this._getValidationErrors(),U=this.$element();if(this._toggleValidationClasses(!N),(0,C.Ym)()&&(this._disposeValidationMessage(),!N&&V)){var{validationMessageMode:K,validationMessagePosition:Y,validationMessageOffset:J,validationBoundary:j,rtlEnabled:ee}=this.option();this._$validationMessage=(0,o.Z)("<div>").appendTo(U);var G="dx-".concat(new h.Z);this.setAria("describedby",G),this._validationMessage=new d.Z(this._$validationMessage,(0,a.l)({validationErrors:V,rtlEnabled:ee,target:this._getValidationMessageTarget(),visualContainer:U,mode:K,positionSide:Y,offset:J,boundary:j,contentId:G},this._options.cache("validationTooltipOptions"))),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}},_getValidationMessageTarget:function(){return this.$element()},_toggleReadOnlyState:function(){var N=this.option("readOnly");this._toggleBackspaceHandler(N),this.$element().toggleClass("dx-state-readonly",!!N),this.setAria("readonly",N||void 0)},_toggleBackspaceHandler:function(N){var V=this._keyboardEventBindingTarget(),U=(0,f.V4)("keydown","editorReadOnly");u.Z.off(V,U),N&&u.Z.on(V,U,K=>{"backspace"===(0,f.EV)(K)&&K.preventDefault()})},_dispose:function(){var N=this.$element()[0];(0,c.aT)(N,O,null),clearTimeout(this.showValidationMessageTimeout),this._disposeValidationMessage(),this.callBase()},_setSubmitElementName:function(N){var V=this._getSubmitElement();V&&(N.length>0?V.attr("name",N):V.removeAttr("name"))},_getSubmitElement:function(){return null},_setValidationMessageOption:function(N){var V,{name:U,value:K}=N;null===(V=this._validationMessage)||void 0===V||V.option(P[U]?P[U]:U,K)},_hasActiveElement:g.ZT,_optionChanged:function(N){var V;switch(N.name){case"onValueChanged":this._createValueChangeAction();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":N.value!=N.previousValue&&this.validationRequest.fire({value:N.value,editor:this}),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(N.value,N.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(N),null===(V=this._validationMessage)||void 0===V||V.updateMaxWidth();break;case"name":this._setSubmitElementName(N.value);break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(s.Z.synchronizeValidationOptions(N,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":case"validationMessagePosition":case"validationMessageOffset":this._setValidationMessageOption(N);break;case"rtlEnabled":this._setValidationMessageOption(N),this.callBase(N);break;case"validationTooltipOptions":this._innerWidgetOptionChanged(this._validationMessage,N);break;default:this.callBase(N)}},blur:function(){this._hasActiveElement()&&(0,x.M3)()},reset:function(){var N=this._getDefaultOptions();this.option("value",N.value)}});B.isEditor=N=>N instanceof B;const W=B},5442:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>h});var o=l(9963),c=l(6738),I=l(7674),C=l(1828),f=l(5873),a=l(8264),p=l(7122),s=l(820),u=l(4270);const h=(0,f.l)({},a.Z,{_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 p.o({store:new s.Z(this.option("items")),pageSize:0}),this._initDataController())},_compileDisplayGetter:function(){this._displayGetter=(0,c.vb)(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=(0,c.vb)(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(g){var x=new u.BH;return g=this._unwrappedValue(g),(0,C.$K)(g)?(this._loadSingle(this._valueGetterExpr(),g).done(function(b){this._isValueEquals(this._valueGetter(b),g)?x.resolve(b):x.reject()}.bind(this)).fail(function(){x.reject()}),this._loadValueDeferred=x,x.promise()):x.reject().promise()},_rejectValueLoading:function(){var g;null===(g=this._loadValueDeferred)||void 0===g||g.reject({shouldSkipCallback:!0})},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(g){var x;return(g=null!==(x=g)&&void 0!==x?x:this._getCurrentValue())&&this._dataSource&&"this"===this._valueGetterExpr()&&(g=this._getItemKey(g)),o.Z.unwrap(g)},_getItemKey:function(g){var x=this._dataSource.key();if(Array.isArray(x)){for(var b={},y=0,E=x.length;y<E;y++)b[x[y]]=g[x[y]];return b}return x&&"object"==typeof g&&(g=g[x]),g},_isValueEquals:function(g,x){var b=this._dataSource&&this._dataSource.key(),y=this._compareValues(g,x);return!y&&b&&(0,C.$K)(g)&&(0,C.$K)(x)&&(y=Array.isArray(b)?this._compareByCompositeKey(g,x,b):this._compareByKey(g,x,b)),y},_compareByCompositeKey:function(g,x,b){var y=C.Kn;if(!y(g)||!y(x))return!1;for(var E=0,S=b.length;E<S;E++)if(g[b[E]]!==x[b[E]])return!1;return!0},_compareByKey:function(g,x,b){var y=o.Z.unwrap,E=(0,I.IS)(y(g[b]),g),S=(0,I.IS)(y(x[b]),x);return this._compareValues(E,S)},_compareValues:function(g,x){return(0,c.Ex)(g,!0)===(0,c.Ex)(x,!0)},_initDynamicTemplates:I.ZT,_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this.option("itemTemplate"))},_getCollectionKeyExpr:function(){var g=this.option("valueExpr");return(0,C.HD)(g)&&"this"!==g||(0,C.mf)(g)?g:null},_dataExpressionOptionChanged:function(g){switch(g.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")}}})},4471:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>ft});var o=l(1805),c=l(9904),I=l(6492),C=l(4514),f=l(913),a=l(8506),p=l(5365),s=l(1828),u=l(2718),d=l(5873),h=l(4270),g=l(9800),x=l(1031),b=l(219),y=l(4026),E=l(2941),S=l(8225),O=l(227),w=l(9009),T=l(2722),k=l(9897),R=(0,C.Jj)(),N="dx-fileuploader-dragover",q="dx-fileuploader-file-container",se="dx-fileuploader-file-name",ge="dx-fileuploader-file-size",De="dx-fileuploader-button",Fe="dx-fileuploader-button-container",ne="dx-fileuploader-upload-button",le=()=>!!R.FormData;class pe extends x.Z{_supportedKeys(){var Be=mt=>{mt.preventDefault();var nn=this._selectButton.$element();f.Z.trigger(nn,O.u)};return(0,d.l)(super._supportedKeys(),{space:Be,enter:Be})}_setOptionsByReference(){super._setOptionsByReference(),(0,d.l)(this._optionsByReference,{value:!0})}_getDefaultOptions(){return(0,d.l)(super._getDefaultOptions(),{chunkSize:0,value:[],selectButtonText:w.Z.format("dxFileUploader-selectFile"),uploadButtonText:w.Z.format("dxFileUploader-upload"),labelText:w.Z.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,dialogTrigger:void 0,dropZone:void 0,readyToUploadMessage:w.Z.format("dxFileUploader-readyToUpload"),uploadedMessage:w.Z.format("dxFileUploader-uploaded"),uploadFailedMessage:w.Z.format("dxFileUploader-uploadFailedMessage"),uploadAbortedMessage:w.Z.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:w.Z.format("dxFileUploader-invalidFileExtension"),invalidMaxFileSizeMessage:w.Z.format("dxFileUploader-invalidMaxFileSize"),invalidMinFileSizeMessage:w.Z.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"===E.Z.real().deviceType&&!E.Z.isSimulator(),options:{focusStateEnabled:!0}},{device:[{platform:"android"}],options:{validationMessageOffset:{v:0}}},{device:()=>"desktop"!==E.Z.real().deviceType,options:{useDragOver:!1}},{device:()=>!le(),options:{uploadMode:"useForm"}},{device:()=>"desktop"!==E.Z.real().deviceType,options:{nativeDropSupported:!1}},{device:()=>(0,T.x2)(),options:{_uploadButtonType:"default"}}])}_initOptions(Be){var mt="labelText"in Be;super._initOptions(Be),!mt&&!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 Be=null;if(this.option("chunkSize")>0){var mt=this.option("uploadChunk");Be=mt&&(0,s.mf)(mt)?new oe(this):new re(this)}else{var nn=this.option("uploadFile");Be=nn&&(0,s.mf)(nn)?new Ne(this):new Pe(this)}this._uploadStrategy=Be}_initFileInput(){this._isCustomClickEvent=!1,this._$fileInput||(this._$fileInput=(0,c.Z)("<input>").attr("type","file"),f.Z.on(this._$fileInput,"change",this._inputChangeHandler.bind(this)),f.Z.on(this._$fileInput,"click",Be=>(Be.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 Be=this._$fileInput.val().replace(/^.*\\/,""),mt=this._$fileInput.prop("files");if(!mt||mt.length||"useForm"===this.option("uploadMode")){var nn=mt?this._getFiles(mt):[{name:Be}];this._changeValue(nn),"instantly"===this.option("uploadMode")&&this._uploadFiles()}}}_shouldFileListBeExtended(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")}_changeValue(Be){var mt=this._shouldFileListBeExtended()?this.option("value").slice():[];this.option("value",mt.concat(Be))}_getFiles(Be){var mt=[];return(0,u.S6)(Be,(nn,ke)=>mt.push(ke)),mt}_getFile(Be){var mt=(0,s.kE)(Be)?this.option("value")[Be]:Be;return this._files.filter(nn=>nn.value===mt)[0]}_initLabel(){this._$inputLabel||(this._$inputLabel=(0,c.Z)("<div>")),this._updateInputLabelText()}_updateInputLabelText(){var Be=this._isInteractionDisabled()?"":this.option("labelText");this._$inputLabel.text(Be)}_focusTarget(){return this.$element().find("."+De)}_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(Be){Be.progressBar=this._createProgressBar(Be.value.size),Be.progressBar.$element().appendTo(Be.$file),this._initStatusMessage(Be),this._ensureCancelButtonInitialized(Be)}_setStatusMessage(Be,mt){setTimeout(()=>{this.option("showFileList")&&Be.$statusMessage&&(Be.$statusMessage.text(mt),Be.$statusMessage.css("display",""),Be.progressBar.$element().remove())},400)}_getUploadAbortedStatusMessage(){return"instantly"===this.option("uploadMode")?this.option("uploadAbortedMessage"):this.option("readyToUploadMessage")}_createFiles(){var Be=this.option("value");this._files&&(0===Be.length||!this._shouldFileListBeExtended())&&(this._preventFilesUploading(this._files),this._files=null),this._files||(this._files=[]),(0,u.S6)(Be.slice(this._files.length),(mt,nn)=>{var ke=this._createFile(nn);this._validateFile(ke),this._files.push(ke)})}_preventFilesUploading(Be){Be.forEach(mt=>this._uploadStrategy.abortUpload(mt))}_validateFile(Be){Be.isValidFileExtension=this._validateFileExtension(Be),Be.isValidMinSize=this._validateMinFileSize(Be),Be.isValidMaxSize=this._validateMaxFileSize(Be)}_validateFileExtension(Be){var mt=this.option("allowedFileExtensions"),nn=this.option("accept"),ke=this._getAllowedFileTypes(nn),$e=Be.value.name.substring(Be.value.name.lastIndexOf(".")).toLowerCase();if(0!==nn.length&&!this._isFileTypeAllowed(Be.value,ke))return!1;if(0===mt.length)return!0;for(var me=0;me<mt.length;me++)if($e===mt[me].toLowerCase())return!0;return!1}_validateMaxFileSize(Be){var mt=Be.value.size,nn=this.option("maxFileSize");return!(nn>0)||mt<=nn}_validateMinFileSize(Be){var mt=Be.value.size,nn=this.option("minFileSize");return!(nn>0)||mt>=nn}_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(Be){return{value:Be,loadedSize:0,onProgress:(0,p.Z)(),onAbort:(0,p.Z)(),onLoad:(0,p.Z)(),onError:(0,p.Z)(),onLoadStart:(0,p.Z)(),isValidFileExtension:!0,isValidMaxSize:!0,isValidMinSize:!0,isValid(){return this.isValidFileExtension&&this.isValidMaxSize&&this.isValidMinSize},isInitialized:!1}}_resetFileState(Be){Be.isAborted=!1,Be.uploadStarted=!1,Be.isStartLoad=!1,Be.loadedSize=0,Be.chunksData=void 0,Be.request=void 0}_renderFiles(){var Be,mt=this.option("value");this._$filesContainer?(!this._shouldFileListBeExtended()||0===mt.length)&&this._$filesContainer.empty():this._$filesContainer=(0,c.Z)("<div>").addClass("dx-fileuploader-files-container").appendTo(this._$content);var nn=this.option("showFileList");nn&&(0,u.S6)(this._files,(ke,$e)=>{$e.$file||this._renderFile($e)}),this.$element().toggleClass("dx-fileuploader-show-file-list",nn),this._toggleFileUploaderEmptyClassName(),this._updateFileNameMaxWidth(),null===(Be=this._validationMessage)||void 0===Be||Be.repaint()}_renderFile(Be){var mt=Be.value,nn=(0,c.Z)("<div>").addClass(q).appendTo(this._$filesContainer);this._renderFileButtons(Be,nn),Be.$file=(0,c.Z)("<div>").addClass("dx-fileuploader-file").appendTo(nn);var ke=(0,c.Z)("<div>").addClass("dx-fileuploader-file-info").appendTo(Be.$file);Be.$statusMessage=(0,c.Z)("<div>").addClass("dx-fileuploader-file-status-message").appendTo(Be.$file),(0,c.Z)("<div>").addClass(se).text(mt.name).appendTo(ke),(0,s.$K)(mt.size)&&(0,c.Z)("<div>").addClass(ge).text(this._getFileSize(mt.size)).appendTo(ke),Be.isValid()?Be.$statusMessage.text(this.option("readyToUploadMessage")):(Be.isValidFileExtension||Be.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")),Be.isValidMaxSize||Be.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")),Be.isValidMinSize||Be.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")),nn.addClass("dx-fileuploader-invalid"))}_createValidationElement(Be){return(0,c.Z)("<span>").text(this.option(Be))}_updateFileNameMaxWidth(){var Be=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,mt="useButtons"===this.option("uploadMode")?1:0,nn=(0,o.dz)(this._$filesContainer.find("."+q).first())||(0,o.dz)(this._$filesContainer),ke=this._$filesContainer.find("."+Fe).eq(0),$e=(0,o.dz)(ke)*(Be+mt),me=this._$filesContainer.find("."+ge).eq(0),xe=me.text();me.text("1000 Mb");var Te=(0,o.dz)(me);me.text(xe),this._$filesContainer.find("."+se).css("maxWidth",nn-$e-Te)}_renderFileButtons(Be,mt){var nn=this._getCancelButton(Be);nn&&mt.append(nn);var ke=this._getUploadButton(Be);ke&&mt.append(ke)}_getCancelButton(Be){return"useForm"===this.option("uploadMode")?null:(Be.cancelButton=this._createComponent((0,c.Z)("<div>").addClass(De+" dx-fileuploader-cancel-button"),b.Z,{onClick:()=>this._removeFile(Be),icon:"close",visible:this.option("allowCanceling"),disabled:this.option("readOnly"),integrationOptions:{},hoverStateEnabled:this.option("hoverStateEnabled")}),(0,c.Z)("<div>").addClass(Fe).append(Be.cancelButton.$element()))}_getUploadButton(Be){return Be.isValid()&&"useButtons"===this.option("uploadMode")?(Be.uploadButton=this._createComponent((0,c.Z)("<div>").addClass(De+" "+ne),b.Z,{onClick:()=>this._uploadFile(Be),icon:"upload",hoverStateEnabled:this.option("hoverStateEnabled")}),Be.onLoadStart.add(()=>Be.uploadButton.option({visible:!1,disabled:!0})),Be.onAbort.add(()=>Be.uploadButton.option({visible:!0,disabled:!1})),(0,c.Z)("<div>").addClass(Fe).append(Be.uploadButton.$element())):null}_removeFile(Be){var mt;null===(mt=Be.$file)||void 0===mt||mt.parent().remove(),this._files.splice(this._files.indexOf(Be),1);var nn=this.option("value").slice();nn.splice(nn.indexOf(Be.value),1),this._preventRecreatingFiles=!0,this.option("value",nn),this._preventRecreatingFiles=!1,this._toggleFileUploaderEmptyClassName(),this._resetInputValue(!0)}removeFile(Be){if("useForm"!==this.option("uploadMode")&&(0,s.$K)(Be)){var mt=this._getFile(Be);mt&&(mt.uploadStarted&&this._preventFilesUploading([mt]),this._removeFile(mt))}}_toggleFileUploaderEmptyClassName(){this.$element().toggleClass("dx-fileuploader-empty",!this._files.length||this._hasInvalidFile(this._files))}_hasInvalidFile(Be){for(var mt=0;mt<Be.length;mt++)if(!Be[mt].isValid())return!0;return!1}_getFileSize(Be){for(var mt=0,nn=[w.Z.format("dxFileUploader-bytes"),w.Z.format("dxFileUploader-kb"),w.Z.format("dxFileUploader-Mb"),w.Z.format("dxFileUploader-Gb")],ke=nn.length-1;mt<ke&&Be>=1024;)Be/=1024,mt++;return Math.round(Be)+" "+nn[mt]}_renderSelectButton(){var Be=(0,c.Z)("<div>").addClass(De).appendTo(this._$inputWrapper);this._selectButton=this._createComponent(Be,b.Z,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{},disabled:this.option("readOnly"),hoverStateEnabled:this.option("hoverStateEnabled")}),this._selectFileDialogHandler=this._selectButtonClickHandler.bind(this),"desktop"===E.Z.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,f.Z.trigger(this._$fileInput,"click"),this._isCustomClickEvent=!1}}_attachSelectFileDialogHandler(Be){(0,s.$K)(Be)&&(this._detachSelectFileDialogHandler(Be),f.Z.on((0,c.Z)(Be),"click",this._selectFileDialogHandler))}_detachSelectFileDialogHandler(Be){(0,s.$K)(Be)&&f.Z.off((0,c.Z)(Be),"click",this._selectFileDialogHandler)}_renderUploadButton(){if("useButtons"===this.option("uploadMode")){var Be=(0,c.Z)("<div>").addClass(De).addClass(ne).appendTo(this._$content);this._uploadButton=this._createComponent(Be,b.Z,{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=(0,c.Z)("<div>").addClass("dx-fileuploader-input-container").appendTo(this._$inputWrapper),this._$fileInput.addClass("dx-fileuploader-input"),this._renderInput();var Be="dx-fileuploader-input-label-".concat(new I.Z);this._$inputLabel.attr("id",Be).addClass("dx-fileuploader-input-label").appendTo(this._$inputContainer),this.setAria("labelledby",Be,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(Be,mt){var nn=(0,c.Z)(mt),ke=(0,c.Z)("<span>").addClass("dx-button-text").text(Be.text);return nn.append(ke).append(this._$fileInput),nn}_renderInputWrapper(){this._$inputWrapper=(0,c.Z)("<div>").addClass("dx-fileuploader-input-wrapper").appendTo(this._$content)}_detachDragEventHandlers(Be){(0,s.$K)(Be)&&f.Z.off((0,c.Z)(Be),(0,S.V4)("",this.NAME))}_attachDragEventHandlers(Be){var mt=Be!==this._$inputWrapper;!(0,s.$K)(Be)||!this._shouldDragOverBeRendered()||(this._detachDragEventHandlers(Be),Be=(0,c.Z)(Be),f.Z.on(Be,(0,S.V4)("dragenter",this.NAME),this._dragEnterHandler.bind(this,mt)),f.Z.on(Be,(0,S.V4)("dragover",this.NAME),this._dragOverHandler.bind(this,mt)),f.Z.on(Be,(0,S.V4)("dragleave",this.NAME),this._dragLeaveHandler.bind(this,mt)),f.Z.on(Be,(0,S.V4)("drop",this.NAME),this._dropHandler.bind(this,mt)))}_applyInputAttributes(Be){this._$fileInput.attr(Be)}_useInputForDrop(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")}_getDropZoneElement(Be,mt){var nn=Be?Array.from((0,c.Z)(this.option("dropZone"))):[this._$inputWrapper];return(nn=nn.map(ke=>(0,c.Z)(ke).get(0)))[nn.indexOf(mt.currentTarget)]}_dragEnterHandler(Be,mt){if(this.option("disabled"))return!1;this._useInputForDrop()||mt.preventDefault();var nn=this._getDropZoneElement(Be,mt);(0,s.$K)(nn)&&null===this._activeDropZone&&this.isMouseOverElement(mt,nn,!1)&&(this._activeDropZone=nn,this._tryToggleDropZoneActive(!0,Be,mt))}_dragOverHandler(Be,mt){if(this._useInputForDrop()||mt.preventDefault(),mt.originalEvent.dataTransfer.dropEffect="copy",!Be){var nn=this._getDropZoneElement(!1,mt);null===this._activeDropZone&&this.isMouseOverElement(mt,nn,!1)&&this._dragEnterHandler(!1,mt),null!==this._activeDropZone&&this._shouldRaiseDragLeave(mt,!1)&&this._dragLeaveHandler(!1,mt)}}_dragLeaveHandler(Be,mt){this._useInputForDrop()||mt.preventDefault(),null!==this._activeDropZone&&this._shouldRaiseDragLeave(mt,Be)&&(this._tryToggleDropZoneActive(!1,Be,mt),this._activeDropZone=null)}_shouldRaiseDragLeave(Be,mt){return!this.isMouseOverElement(Be,this._activeDropZone,!mt)}_tryToggleDropZoneActive(Be,mt,nn){var ke=Be?"addClass":"removeClass";this[Be?"_dropZoneEnterAction":"_dropZoneLeaveAction"]({event:nn,dropZoneElement:this._activeDropZone}),mt||this.$element()[ke](N)}_dropHandler(Be,mt){if(this._activeDropZone=null,Be||this.$element().removeClass(N),!(this._useInputForDrop()||Be&&this._isInteractionDisabled())){mt.preventDefault();var ke=this._getFiles(mt.originalEvent.dataTransfer.files);!this.option("multiple")&&ke.length>1||(this._changeValue(ke),"instantly"===this.option("uploadMode")&&this._uploadFiles())}}_areAllFilesLoaded(){return this._files.every(Be=>!Be.isValid()||Be._isError||Be._isLoaded||Be.isAborted)}_handleAllFilesUploaded(){this._recalculateProgress(),this._areAllFilesLoaded()&&this._filesUploadedAction()}_getAllowedFileTypes(Be){return Be.length?Be.split(",").map(mt=>mt.trim()):[]}_isFileTypeAllowed(Be,mt){for(var nn=0,ke=mt.length;nn<ke;nn++){var $e=mt[nn];if("."===$e[0]){if($e=$e.replace(".","\\."),Be.name.match(new RegExp($e+"$","i")))return!0}else if($e=$e.replace(new RegExp("\\*","g"),""),Be.type.match(new RegExp($e,"i")))return!0}return!1}_renderWrapper(){var Be=(0,c.Z)("<div>").addClass("dx-fileuploader-wrapper").appendTo(this.$element()),mt=(0,c.Z)("<div>").addClass("dx-fileuploader-container").appendTo(Be);this._$content=(0,c.Z)("<div>").addClass("dx-fileuploader-content").appendTo(mt)}_clean(){this._$fileInput.detach(),delete this._$filesContainer,this._detachSelectFileDialogHandler(this.option("dialogTrigger")),this._detachDragEventHandlers(this.option("dropZone")),this._files&&this._files.forEach(Be=>{Be.$file=null,Be.$statusMessage=null}),super._clean()}abortUpload(Be){if("useForm"!==this.option("uploadMode"))if((0,s.$K)(Be)){var mt=this._getFile(Be);mt&&this._preventFilesUploading([mt])}else this._preventFilesUploading(this._files)}upload(Be){if("useForm"!==this.option("uploadMode"))if((0,s.$K)(Be)){var mt=this._getFile(Be);mt&&le()&&this._uploadFile(mt)}else this._uploadFiles()}_uploadFiles(){le()&&(0,u.S6)(this._files,(Be,mt)=>this._uploadFile(mt))}_uploadFile(Be){this._uploadStrategy.upload(Be)}_updateProgressBar(Be,mt){Be.progressBar&&Be.progressBar.option({value:mt.loaded,showStatus:!0}),this._progressAction({file:Be.value,segmentSize:mt.currentSegmentSize,bytesLoaded:mt.loaded,bytesTotal:mt.total,event:mt.event,request:Be.request})}_updateTotalProgress(Be,mt){var nn=0;(0,s.$K)(Be)&&(this._files.length>0&&this._areAllFilesLoaded()&&0===Be&&0===mt?nn=this._getProgressValue(1):Be&&(nn=this._getProgressValue(mt/Be))),this.option("progress",nn),this._setLoadedSize(mt)}_getProgressValue(Be){return Math.floor(100*Be)}_initStatusMessage(Be){Be.$statusMessage.css("display","none")}_ensureCancelButtonInitialized(Be){if(!Be.isInitialized){Be.cancelButton.option("onClick",()=>{this._preventFilesUploading([Be]),this._removeFile(Be)});var mt=()=>{setTimeout(()=>{Be.cancelButton.option({visible:!1})},400)};Be.onLoad.add(mt),Be.onError.add(mt)}}_createProgressBar(Be){return this._createComponent((0,c.Z)("<div>"),y.Z,{value:void 0,min:0,max:Be,statusFormat:mt=>this._getProgressValue(mt)+"%",showStatus:!1,statusPosition:"right"})}_getTotalFilesSize(){return this._totalFilesSize||(this._totalFilesSize=0,(0,u.S6)(this._files,(Be,mt)=>{this._totalFilesSize+=mt.value.size})),this._totalFilesSize}_getTotalLoadedFilesSize(){return this._totalLoadedFilesSize||(this._totalLoadedFilesSize=0,(0,u.S6)(this._files,(Be,mt)=>{this._totalLoadedFilesSize+=mt.loadedSize})),this._totalLoadedFilesSize}_setLoadedSize(Be){this._totalLoadedFilesSize=Be}_recalculateProgress(){this._totalFilesSize=0,this._totalLoadedFilesSize=0,this._updateTotalProgress(this._getTotalFilesSize(),this._getTotalLoadedFilesSize())}isMouseOverElement(Be,mt,nn){if(!mt)return!1;var ke=nn?parseFloat(R.getComputedStyle(mt,":before").height):0,$e=nn?parseFloat(R.getComputedStyle(mt,":after").height):0,me=(0,o.os)(mt).left,xe=(0,o.os)(mt).top+ke,Te=mt.offsetWidth,Ye=mt.offsetHeight-ke-$e,St=this._getEventX(Be),Ct=this._getEventY(Be);return St>=me&&St<me+Te&&Ct>=xe&&Ct<xe+Ye}_getEventX(Be){return(0,S.z6)(Be)?this._getTouchEventX(Be):Be.clientX+this._getDocumentScrollLeft()}_getEventY(Be){return(0,S.z6)(Be)?this._getTouchEventY(Be):Be.clientY+this._getDocumentScrollTop()}_getTouchEventX(Be){var mt=null;return Be.changedTouches.length>0?mt=Be.changedTouches:Be.targetTouches.length>0&&(mt=Be.targetTouches),mt?mt[0].pageX:0}_getTouchEventY(Be){var mt=null;return Be.changedTouches.length>0?mt=Be.changedTouches:Be.targetTouches.length>0&&(mt=Be.targetTouches),mt?mt[0].pageY:0}_getDocumentScrollTop(){var Be=k.Z.getDocument();return Be.documentElement.scrollTop||Be.body.scrollTop}_getDocumentScrollLeft(){var Be=k.Z.getDocument();return Be.documentElement.scrollLeft||Be.body.scrollLeft}_updateReadOnlyState(){var Be=this.option("readOnly");this._selectButton.option("disabled",Be),this._files.forEach(mt=>{var nn;return null===(nn=mt.cancelButton)||void 0===nn?void 0:nn.option("disabled",Be)}),this._updateInputLabelText(),this._attachDragEventHandlers(this._$inputWrapper)}_updateHoverState(){var Be,mt,nn=this.option("hoverStateEnabled");null===(Be=this._selectButton)||void 0===Be||Be.option("hoverStateEnabled",nn),null===(mt=this._uploadButton)||void 0===mt||mt.option("hoverStateEnabled",nn),this._files.forEach(ke=>{var $e,me;null===($e=ke.uploadButton)||void 0===$e||$e.option("hoverStateEnabled",nn),null===(me=ke.cancelButton)||void 0===me||me.option("hoverStateEnabled",nn)})}_optionChanged(Be){var{name:mt,value:nn,previousValue:ke}=Be;switch(mt){case"height":case"width":this._updateFileNameMaxWidth(),super._optionChanged(Be);break;case"value":!nn.length&&this._$fileInput.val(""),this._preventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),super._optionChanged(Be);break;case"name":this._initFileInput(),super._optionChanged(Be);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),Be.value||this.reset();break;case"readOnly":this._updateReadOnlyState(),super._optionChanged(Be);break;case"disabled":this._updateInputLabelText(),super._optionChanged(Be);break;case"selectButtonText":this._selectButton.option("text",nn);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",nn);break;case"_uploadButtonType":this._uploadButton&&this._uploadButton.option("type",nn);break;case"dialogTrigger":this._detachSelectFileDialogHandler(ke),this._attachSelectFileDialogHandler(nn);break;case"dropZone":this._detachDragEventHandlers(ke),this._attachDragEventHandlers(nn);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(Be);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(mt));break;default:super._optionChanged(Be)}}_resetInputValue(Be){"useForm"===this.option("uploadMode")&&!Be||(this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1)}reset(){this.option("value",[])}}class Ee{constructor(Be,mt){this.file=Be,this.chunkSize=mt,this.index=0}read(){if(!this.file)return null;var Be=this.createBlobResult(this.file,this.index,this.chunkSize);return Be.isCompleted&&(this.file=null),this.index++,Be}createBlobResult(Be,mt,nn){var ke=mt*nn;return{blob:this.sliceFile(Be,ke,nn),index:mt,isCompleted:ke+nn>=Be.size}}sliceFile(Be,mt,nn){return Be.slice?Be.slice(mt,mt+nn):Be.webkitSlice?Be.webkitSlice(mt,mt+nn):null}}class ae{constructor(Be){this.fileUploader=Be}upload(Be){Be.isInitialized&&Be.isAborted&&this.fileUploader._resetFileState(Be),Be.isValid()&&!Be.uploadStarted&&(this._prepareFileBeforeUpload(Be),this._uploadCore(Be))}abortUpload(Be){if(!(Be._isError||Be._isLoaded||Be.isAborted)&&Be.uploadStarted&&(Be.isAborted=!0,Be.request&&Be.request.abort(),this._isCustomCallback("abortUpload"))){var mt=this.fileUploader.option("abortUpload"),nn=this._createUploadArgument(Be),ke=null;try{var $e=mt(Be.value,nn);ke=(0,h.p4)($e)}catch(me){ke=(new h.BH).reject(me).promise()}ke.done(()=>Be.onAbort.fire()).fail(me=>this._handleFileError(Be,me))}}_beforeSend(Be,mt){var nn=this._createUploadArgument(mt);this.fileUploader._beforeSendAction({request:Be,file:mt.value,uploadInfo:nn}),mt.request=Be}_createUploadArgument(Be){}_uploadCore(Be){}_isCustomCallback(Be){var mt=this.fileUploader.option(Be);return mt&&(0,s.mf)(mt)}_handleProgress(Be,mt){Be._isError||(Be._isProgressStarted=!0,this._handleProgressCore(Be,mt))}_handleProgressCore(Be,mt){}_handleFileError(Be,mt){Be._isError=!0,Be.onError.fire(mt)}_prepareFileBeforeUpload(Be){var mt;Be.$file&&(null===(mt=Be.progressBar)||void 0===mt||mt.dispose(),this.fileUploader._createFileProgressBar(Be)),Be.isInitialized||(Be.onLoadStart.add(this._onUploadStarted.bind(this,Be)),Be.onLoad.add(this._onLoadedHandler.bind(this,Be)),Be.onError.add(this._onErrorHandler.bind(this,Be)),Be.onAbort.add(this._onAbortHandler.bind(this,Be)),Be.onProgress.add(this._onProgressHandler.bind(this,Be)),Be.isInitialized=!0)}_shouldHandleError(Be,mt){return(this._isStatusError(mt.status)||!Be._isProgressStarted)&&!Be.isAborted}_isStatusError(Be){return 400<=Be&&Be<500||500<=Be&&Be<600}_onUploadStarted(Be,mt){Be.uploadStarted=!0,this.fileUploader._uploadStartedAction({file:Be.value,event:mt,request:Be.request})}_onAbortHandler(Be,mt){var nn={file:Be.value,event:mt,request:Be.request,message:this.fileUploader._getUploadAbortedStatusMessage()};this.fileUploader._uploadAbortedAction(nn),this.fileUploader._setStatusMessage(Be,nn.message),this.fileUploader._handleAllFilesUploaded()}_onErrorHandler(Be,mt){var nn={file:Be.value,event:void 0,request:Be.request,error:mt,message:this.fileUploader.option("uploadFailedMessage")};this.fileUploader._uploadErrorAction(nn),this.fileUploader._setStatusMessage(Be,nn.message),this.fileUploader._handleAllFilesUploaded()}_onLoadedHandler(Be,mt){var nn={file:Be.value,event:mt,request:Be.request,message:this.fileUploader.option("uploadedMessage")};Be._isLoaded=!0,this.fileUploader._uploadedAction(nn),this.fileUploader._setStatusMessage(Be,nn.message),this.fileUploader._handleAllFilesUploaded()}_onProgressHandler(Be,mt){if(Be){var nn=this.fileUploader._getTotalFilesSize(),ke=this.fileUploader._getTotalLoadedFilesSize(),$e=Math.min(mt.loaded,Be.value.size),me=$e-Be.loadedSize;Be.loadedSize=$e,this.fileUploader._updateTotalProgress(nn,ke+me),this.fileUploader._updateProgressBar(Be,this._getLoadedData($e,mt.total,me,mt))}}_getLoadedData(Be,mt,nn,ke){return{loaded:Be,total:mt,currentSegmentSize:nn}}_extendFormData(Be){var mt=this.fileUploader.option("uploadCustomData");for(var nn in mt)Object.prototype.hasOwnProperty.call(mt,nn)&&(0,s.$K)(mt[nn])&&Be.append(nn,mt[nn])}}class te extends ae{constructor(Be){super(Be),this.chunkSize=this.fileUploader.option("chunkSize")}_uploadCore(Be){var mt=Be.value,nn={name:mt.name,loadedBytes:0,type:mt.type,blobReader:new Ee(mt,this.chunkSize),guid:new I.Z,fileSize:mt.size,count:this._getFileChunksCount(mt),customData:{}};Be.chunksData=nn,this._sendChunk(Be,nn)}_getFileChunksCount(Be){return 0===Be.size?1:Math.ceil(Be.size/this.chunkSize)}_sendChunk(Be,mt){var nn=mt.blobReader.read();mt.currentChunk=nn,nn&&this._sendChunkCore(Be,mt,nn).done(()=>{Be.isAborted||(mt.loadedBytes+=nn.blob.size,Be.onProgress.fire({loaded:mt.loadedBytes,total:Be.value.size}),nn.isCompleted&&Be.onLoad.fire(),setTimeout(()=>this._sendChunk(Be,mt)))}).fail(ke=>{this._shouldHandleError(Be,ke)&&this._handleFileError(Be,ke)})}_sendChunkCore(Be,mt,nn){}_tryRaiseStartLoad(Be){Be.isStartLoad||(Be.isStartLoad=!0,Be.onLoadStart.fire())}_getEvent(Be){return null}_createUploadArgument(Be){return this._createChunksInfo(Be.chunksData)}_createChunksInfo(Be){return{bytesUploaded:Be.loadedBytes,chunkCount:Be.count,customData:Be.customData,chunkBlob:Be.currentChunk.blob,chunkIndex:Be.currentChunk.index}}}class re extends te{_sendChunkCore(Be,mt,nn){return g.Z.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:ke=>this._beforeSend(ke,Be),upload:{onprogress:ke=>this._handleProgress(Be,ke),onloadstart:()=>this._tryRaiseStartLoad(Be),onabort:()=>Be.onAbort.fire()},data:this._createFormData({fileName:mt.name,blobName:this.fileUploader.option("name"),blob:nn.blob,index:nn.index,count:mt.count,type:mt.type,guid:mt.guid,size:mt.fileSize})})}_createFormData(Be){var mt=new R.FormData;return mt.append(Be.blobName,Be.blob),mt.append("chunkMetadata",JSON.stringify({FileName:Be.fileName,Index:Be.index,TotalCount:Be.count,FileSize:Be.size,FileType:Be.type,FileGuid:Be.guid})),this._extendFormData(mt),mt}}class oe extends te{_sendChunkCore(Be,mt){this._tryRaiseStartLoad(Be);var nn=this._createChunksInfo(mt),ke=this.fileUploader.option("uploadChunk");try{var $e=ke(Be.value,nn);return(0,h.p4)($e)}catch(me){return(new h.BH).reject(me).promise()}}_shouldHandleError(Be,mt){return!0}}class ye extends ae{_uploadCore(Be){Be.loadedSize=0,this._uploadFile(Be).done(()=>{Be.isAborted||Be.onLoad.fire()}).fail(mt=>{this._shouldHandleError(Be,mt)&&this._handleFileError(Be,mt)})}_uploadFile(Be){}_handleProgressCore(Be,mt){Be.onProgress.fire(mt)}_getLoadedData(Be,mt,nn,ke){var $e=super._getLoadedData(Be,mt,nn,ke);return $e.event=ke,$e}}class Pe extends ye{_uploadFile(Be){return g.Z.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:mt=>this._beforeSend(mt,Be),upload:{onprogress:mt=>this._handleProgress(Be,mt),onloadstart:()=>Be.onLoadStart.fire(),onabort:()=>Be.onAbort.fire()},data:this._createFormData(this.fileUploader.option("name"),Be.value)})}_createFormData(Be,mt){var nn=new R.FormData;return nn.append(Be,mt,mt.name),this._extendFormData(nn),nn}}class Ne extends ye{_uploadFile(Be){Be.onLoadStart.fire();var mt=this.fileUploader.option("uploadFile");try{var nn=mt(Be.value,ke=>{this._handleProgress(Be,{loaded:ke,total:Be.value.size})});return(0,h.p4)(nn)}catch(ke){return(new h.BH).reject(ke).promise()}}_shouldHandleError(Be,mt){return!0}}(0,a.Z)("dxFileUploader",pe);const ft=pe},4554:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>de});var o=l(9904),c=l(9897),I=l(5031),C=l(913),f=l(6853),a=l(8506),p=l(5873),s=l(9009),u=l(4270),d=l(1828),h=l(7463),g=l(8531),x=l(7320),b=l(5946),y=l(8225),E=l(8507),S="dx-filterbuilder",O=S+"-group",w=O+"-item",T=O+"-content",k=O+"-operations",R=O+"-operation",P=S+"-action",B=P+"-icon",V=S+"-text",U=S+"-item-field",K=S+"-item-operation",Y=S+"-item-value",J=S+"-item-value-text",j=S+"-overlay",ee=S+"-operations",G=S+"-fields",q=S+"-add-condition",Z="dx-state-active",X=S+"-menu-custom-operation",M="filterBuilder",De="enter",Ae=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],ne={and:"and",or:"or",notAnd:"!and",notOr:"!or"},fe=I.Z.inherit(b.Z),_e=f.Z.inherit({_getDefaultOptions:function(){return(0,p.l)(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:s.Z.format("dxFilterBuilder-and"),or:s.Z.format("dxFilterBuilder-or"),notAnd:s.Z.format("dxFilterBuilder-notAnd"),notOr:s.Z.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:s.Z.format("dxFilterBuilder-filterOperationBetween"),equal:s.Z.format("dxFilterBuilder-filterOperationEquals"),notEqual:s.Z.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:s.Z.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:s.Z.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:s.Z.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:s.Z.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:s.Z.format("dxFilterBuilder-filterOperationStartsWith"),contains:s.Z.format("dxFilterBuilder-filterOperationContains"),notContains:s.Z.format("dxFilterBuilder-filterOperationNotContains"),endsWith:s.Z.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:s.Z.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:s.Z.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(le){switch(le.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(le.value!==le.previousValue){var pe=this._disableInvalidateForValue;pe||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:le.value,previousValue:le.previousValue}),this._disableInvalidateForValue=pe}break;default:this.callBase(le)}},getFilterExpression:function(){var le=this._getNormalizedFields(),pe=(0,p.l)(!0,[],this._model);return(0,E._z)((0,E.Ih)(pe),le,this._customOperations,M)},_getNormalizedFields:function(){return(0,E.gF)(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var le=(0,p.l)(!0,[],this._model),pe=(0,E.Ih)(le),Ee=(0,E.Ih)(this._getModel(this.option("value")));JSON.stringify(Ee)!==JSON.stringify(pe)&&this.option("value",pe),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new fe},_initCustomOperations:function(){this._customOperations=(0,E.vd)(this.option("customOperations"),this.option("filterOperationDescriptions.between"),this)},_getDefaultGroupOperation:function(){var le,pe;return null!==(le=null===(pe=this.option("groupOperations"))||void 0===pe?void 0:pe[0])&&void 0!==le?le:ne.and},_getModel:function(le){return(0,E.L6)(le,this._customOperations,this._getDefaultGroupOperation())},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var le=this;le._actions={},Ae.forEach(function(pe){var Ee=(0,p.l)({},pe.config);le._actions[pe.name]=le._createActionByOption(pe.name,Ee)})},executeAction:function(le,pe){var Ee=this._actions[le];return Ee&&Ee(pe)},_initMarkup:function(){this.$element().addClass(S),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(le,pe){return(0,o.Z)("<div>").addClass(O).append(this._createConditionItem(le,pe))},_createGroupElementByCriteria:function(le,pe){for(var Ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,ae=this._createGroupElement(le,pe,Ee),te=ae.find("."+T),re=(0,E.As)(le),oe=0;oe<re.length;oe++){var ye=re[oe];(0,E.ty)(ye)?this._createGroupElementByCriteria(ye,le,Ee+1).appendTo(te):(0,E.T5)(ye)&&this._createConditionElement(ye,le).appendTo(te)}return ae},_createGroupElement:function(le,pe,Ee){var ae=(0,o.Z)("<div>").addClass(w),te=(0,o.Z)("<div>").addClass(T),re=(0,o.Z)("<div>").addClass(O).append(ae).append(te);return null!=pe&&this._createRemoveButton(()=>{(0,E.cl)(pe,le),re.remove(),this._updateFilter()}).appendTo(ae),this._createGroupOperationButton(le).appendTo(ae),this._createAddButton(()=>{var oe=(0,E.zy)(this._getDefaultGroupOperation());(0,E.jX)(oe,le),this._createGroupElement(oe,le,Ee+1).appendTo(te),this._updateFilter()},()=>{var oe=this.option("fields")[0],ye=(0,E.CL)(oe,this._customOperations);(0,E.jX)(ye,le),this._createConditionElement(ye,le).appendTo(te),this._updateFilter()},Ee).appendTo(ae),re},_createButton:function(le){return(0,o.Z)("<div>").text(le)},_createGroupOperationButton:function(le){var pe=this._getGroupOperations(le),Ee=(0,E.Nv)(le,pe),ae=Ee.text,te=pe&&pe.length<2?this._createButton(ae).addClass("dx-state-disabled"):this._createButtonWithMenu({caption:ae,menu:{items:pe,displayExpr:"text",keyExpr:"value",onItemClick:re=>{Ee!==re.itemData&&((0,E.Qh)(le,re.itemData.value),te.text(re.itemData.text),Ee=re.itemData,this._updateFilter())},onContentReady:function(re){re.component.selectItem(Ee)},cssClass:k}});return te.addClass(V).addClass(R).attr("tabindex",0)},_createButtonWithMenu:function(le){var oe,pe=this,Ee=function(){pe.$element().find("."+Z).removeClass(Z),pe.$element().find(".dx-overlay .dx-treeview").remove(),pe.$element().find(".dx-overlay").remove()},ae=this.option("rtlEnabled"),te=ae?"right":"left",re=this._createButton(le.caption);return(0,p.l)(le.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:(oe=le.menu.onItemClick,function(ye){oe(ye),"dxclick"===ye.event.type&&Ee()}),onHiding:function(ye){re.removeClass(Z)},position:{my:te+" top",at:te+" bottom",offset:"0 1",of:re,collision:"flip"},animation:null,onHidden:function(){Ee()},cssClass:j+" "+le.menu.cssClass,rtlEnabled:ae}),le.popup={onShown:function(ye){var Pe=(0,o.Z)(ye.component.content()).find(".dx-treeview"),Ne=Pe.dxTreeView("instance");C.Z.on(Pe,"keyup keydown",function(ft){var tt=(0,y.EV)(ft);("keydown"===ft.type&&"tab"===tt||"keyup"===ft.type&&("escape"===tt||tt===De))&&(ye.component.hide(),C.Z.trigger(le.menu.position.of,"focus"))}),Ne.focus(),Ne.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(re,function(){Ee(),pe._createPopupWithTreeView(le,pe.$element()),re.addClass(Z)}),re},_hasValueButton:function(le){var pe=(0,E.tt)(this._customOperations,le[1]);return pe?!1!==pe.hasValue:null!==le[2]},_createOperationButtonWithMenu:function(le,pe){var Ee=this,ae=(0,E.eM)(pe,this.option("filterOperationDescriptions"),this._customOperations),te=(0,E.Bn)((0,E.Do)(le),ae),re=this._createButtonWithMenu({caption:te.text,menu:{items:ae,displayExpr:"text",onItemRendered:function(oe){oe.itemData.isCustom&&(0,o.Z)(oe.itemElement).addClass(X)},onContentReady:function(oe){oe.component.selectItem(te)},onItemClick:oe=>{if(te!==oe.itemData){(0,E.vc)(le,(te=oe.itemData).value,Ee._customOperations);var ye=re.siblings().filter("."+Y);Ee._hasValueButton(le)?(0!==ye.length&&ye.remove(),Ee._createValueButton(le,pe).appendTo(re.parent())):ye.remove(),re.html(te.text),this._updateFilter()}},cssClass:ee}}).addClass(V).addClass(K).attr("tabindex",0);return re},_createOperationAndValueButtons:function(le,pe,Ee){this._createOperationButtonWithMenu(le,pe).appendTo(Ee),this._hasValueButton(le)&&this._createValueButton(le,pe).appendTo(Ee)},_createFieldButtonWithMenu:function(le,pe,Ee){var ae=this,te=this.option("allowHierarchicalFields"),re=(0,E.kk)(le,te),oe=(0,E.rz)(Ee.name||Ee.dataField,re),ye=function(Ne,ft){return te?(0,E.si)(Ne,ft):Ne.caption},Pe=this._createButtonWithMenu({caption:ye(oe,re),menu:{items:re,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:Ne=>{if(oe!==Ne.itemData){pe[0]=(oe=Ne.itemData).name||oe.dataField,pe[2]="object"===oe.dataType?null:"",(0,E.vc)(pe,(0,E.Ls)(oe),ae._customOperations),Pe.siblings().filter("."+V).remove(),ae._createOperationAndValueButtons(pe,oe,Pe.parent());var ft=ye(oe,Ne.component.option("items"));Pe.html(ft),this._updateFilter()}},onContentReady:function(Ne){Ne.component.selectItem(oe)},cssClass:G}}).addClass(V).addClass(U).attr("tabindex",0);return Pe},_createConditionItem:function(le,pe){var Ee=(0,o.Z)("<div>").addClass(w),ae=this._getNormalizedFields(),te=(0,E.rz)(le[0],ae);return this._createRemoveButton(()=>{(0,E.cl)(pe,le),1===Ee.parent().children().length?Ee.parent().remove():Ee.remove(),this._updateFilter()}).appendTo(Ee),this._createFieldButtonWithMenu(ae,le,te).appendTo(Ee),this._createOperationAndValueButtons(le,te,Ee),Ee},_getGroupOperations:function(le){var pe=this.option("groupOperations"),Ee=this.option("groupOperationDescriptions");return(!pe||!pe.length)&&(pe=[(0,E.Uc)(le).replace("!","not")]),pe.map(ae=>({text:Ee[ae],value:ne[ae]}))},_createRemoveButton:function(le){var pe=(0,o.Z)("<div>").addClass(B).addClass("dx-icon-remove").addClass(P).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(pe,le),pe},_createAddButton:function(le,pe,Ee){var ae,te=this.option("maxGroupLevel");return(0,d.$K)(te)&&Ee>=te?(ae=this._createButton(),this._subscribeOnClickAndEnterKey(ae,pe)):ae=this._createButtonWithMenu({menu:{items:[{caption:s.Z.format("dxFilterBuilder-addCondition"),click:pe},{caption:s.Z.format("dxFilterBuilder-addGroup"),click:le}],displayExpr:"caption",onItemClick:function(re){re.itemData.click()},cssClass:q}}),ae.addClass(B).addClass("dx-icon-plus").addClass(P).attr("tabindex",0)},_createValueText:function(le,pe,Ee){var ae=this,te=(0,o.Z)("<div>").html("&nbsp;").addClass(J).attr("tabindex",0).appendTo(Ee),re=le[2],oe=(0,E.tt)(ae._customOperations,le[1]);return!oe&&pe.lookup?(0,E.W2)(pe,re,function(ye){(0,E.yg)(te,ye)}):(0,u.gx)((0,E.fQ)(pe,re,oe)).done(ye=>{(0,E.yg)(te,ye,oe)}),ae._subscribeOnClickAndEnterKey(te,function(ye){"keyup"===ye.type&&ye.stopPropagation(),ae._createValueEditorWithEvents(le,pe,Ee)}),te},_updateConditionValue:function(le,pe,Ee){le[2]!==pe&&(le[2]=pe),Ee(),this._updateFilter()},_addDocumentKeyUp:function(le,pe){var Ee=!1,ae=!1,te=c.Z.getDocument(),re=ye=>{Ee||ae?ae=!1:pe(ye)};C.Z.on(te,"keyup",re);var oe=le.find("input");C.Z.on(oe,"compositionstart",()=>{Ee=!0}),C.Z.on(oe,"compositionend",()=>{Ee=!1,ae=!0}),C.Z.on(oe,"keydown",ye=>{229!==ye.which&&(ae=!1)}),this._documentKeyUpHandler=re},_addDocumentClick:function(le,pe){var Ee=c.Z.getDocument(),ae=te=>{this._isFocusOnEditorParts(le,te.target)||(C.Z.trigger(le.find("input"),"change"),pe())};C.Z.on(Ee,"dxpointerdown",ae),this._documentClickHandler=ae},_isFocusOnEditorParts:function(le,pe){var Ee=pe||c.Z.getActiveElement();return(0,o.Z)(Ee).closest(le.children()).length||(0,o.Z)(Ee).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var le=c.Z.getDocument();(0,d.$K)(this._documentKeyUpHandler)&&C.Z.off(le,"keyup",this._documentKeyUpHandler),(0,d.$K)(this._documentClickHandler)&&C.Z.off(le,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(le,pe,Ee){var ae=le[2],te=()=>(Ee.empty(),this._removeEvents(),this._createValueText(le,pe,Ee)),re=()=>{this._updateConditionValue(le,ae,function(){te()})},oe={value:""===ae?null:ae,filterOperation:(0,E.Do)(le),setValue:function(Pe){ae=null===Pe?"":Pe},closeEditor:re,text:Ee.text()};Ee.empty();var ye=this._createValueEditor(Ee,pe,oe);C.Z.trigger(ye.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(ye,re),this._addDocumentKeyUp(ye,Pe=>{var Ne=(0,y.EV)(Pe);if("tab"===Ne){if(this._isFocusOnEditorParts(ye))return;this._updateConditionValue(le,ae,function(){te(),Pe.shiftKey&&C.Z.trigger(Ee.prev(),"focus")})}"escape"===Ne&&C.Z.trigger(te(),"focus"),Ne===De&&this._updateConditionValue(le,ae,function(){C.Z.trigger(te(),"focus")})}),this._fireContentReadyAction()},_createValueButton:function(le,pe){var Ee=(0,o.Z)("<div>").addClass(V).addClass(Y);return this._createValueText(le,pe,Ee),Ee},_createValueEditor:function(le,pe,Ee){var ae=(0,o.Z)("<div>").attr("tabindex",0).appendTo(le),te=(0,E.tt)(this._customOperations,Ee.filterOperation),re=te&&te.editorTemplate?te.editorTemplate:pe.editorTemplate;return re?this._getTemplate(re).render({model:(0,p.l)({field:pe},Ee),container:ae}):this._editorFactory.createEditor.call(this,ae,(0,p.l)({},pe,Ee,{parentType:M})),ae},_createPopupWithTreeView:function(le,pe){var Ee=this,ae=(0,o.Z)("<div>").addClass(le.menu.cssClass).appendTo(pe);this._createComponent(ae,g.Z,{onHiding:le.menu.onHiding,onHidden:le.menu.onHidden,rtlEnabled:le.menu.rtlEnabled,position:le.menu.position,animation:le.menu.animation,contentTemplate:function(te){var re=(0,o.Z)("<div>").appendTo(te);Ee._createComponent(re,h.Z,le.menu),this.repaint()},_ignoreFunctionValueDeprecation:!0,maxHeight:function(){return(0,x._)(le.menu.position.of)},visible:!0,focusStateEnabled:!1,hideOnParentScroll:this.option("closePopupOnTargetScroll"),hideOnOutsideClick:!0,onShown:le.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1,_wrapperClassExternal:le.menu.cssClass})},_subscribeOnClickAndEnterKey:function(le,pe){C.Z.on(le,"dxclick",pe),C.Z.on(le,"keyup",function(Ee){(0,y.EV)(Ee)===De&&pe(Ee)})}});(0,a.Z)("dxFilterBuilder",_e);const de=_e},8507:(kn,he,l)=>{"use strict";l.d(he,{jX:()=>Ne,L6:()=>Ye,CL:()=>re,zy:()=>ye,Ab:()=>Wn,eM:()=>ae,uL:()=>le,si:()=>xn,W2:()=>ct,fQ:()=>Ht,tt:()=>Ee,Ls:()=>te,rz:()=>ft,_z:()=>Rt,As:()=>se,Nv:()=>Ae,Uc:()=>fe,kk:()=>Ft,BB:()=>ti,vd:()=>Vn,gF:()=>St,Ih:()=>fn,Bn:()=>pe,Do:()=>li,T5:()=>Be,ty:()=>tt,e4:()=>Hn,cl:()=>oe,yg:()=>Yi,Qh:()=>Fe,aR:()=>An,vc:()=>Jn});var o=l(9904),c=l(4270),I=l(6051),C=l(1828),f=l(6738),a=l(8159),p=l(2135),s=l(5062),u=l(5873),d=l(7981),h="dx-filterbuilder-range",g=h+"-start",x=h+"-end",b=h+"-separator";function E(On,ei){var ni=(0,o.Z)("<div>").addClass(g),di=(0,o.Z)("<div>").addClass(x),Hi=On.value||[],$i=function(_r){return _r&&_r.length>0?_r[0]:null},Qi=function(_r){return _r&&2===_r.length?_r[1]:null};ei.append(ni),ei.append((0,o.Z)("<span>").addClass(b).text("\u2013")),ei.append(di),ei.addClass(h),this._editorFactory.createEditor.call(this,ni,(0,u.l)({},On.field,On,{value:$i(Hi),parentType:"filterBuilder",setValue:function(_r){Hi=[_r,Qi(Hi)],On.setValue(Hi)}})),this._editorFactory.createEditor.call(this,di,(0,u.l)({},On.field,On,{value:Qi(Hi),parentType:"filterBuilder",setValue:function(_r){Hi=[$i(Hi),_r],On.setValue(Hi)}}))}function S(On,ei){return{name:"between",caption:On,icon:"range",valueSeparator:"\u2013",dataTypes:["number","date","datetime"],editorTemplate:E.bind(ei),notForLookup:!0}}var O=l(9009),w=l(7122),T={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},k={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"};const R_getIconByFilterOperation=function(On){return T[On]};var P="string",B="icon-none",W="and",U={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],boolean:["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},K={date:"shortDate",datetime:"shortDateShortTime"},Y=["=","<>","isblank","isnotblank"],J=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"],ee="dx-filterbuilder-text",G=ee+"-part",q=ee+"-separator",Z=q+"-empty";function M(On){return On&&On.length>1&&"!"===On[0]&&!Be(On)}function se(On){return M(On)?On[1]:On}function Fe(On,ei){var di,Hi;return function De(On,ei){-1!==ei.indexOf("!")?M(On)||function(ni){var di=ni.slice(0);ni.length=0,ni.push("!",di)}(On):M(On)&&function(ni){var di=se(ni);ni.length=0,[].push.apply(ni,di)}(On)}(On,ei),function(Hi,$i){for(di=0;di<Hi.length;di++)Array.isArray(Hi[di])||(Hi[di]=$i)}(se(On),ei=-1===(Hi=ei).indexOf("!")?Hi:Hi.substring(1)),On}function Ae(On,ei){var ni=fe(On);return ei.filter(function(di){return di.value===ni})[0]}function ne(On){if(Be(On))return W;for(var ei="",ni=0;ni<On.length;ni++){var di=On[ni];if(!Array.isArray(di)){if(ei&&ei!==di)throw new I.R0.Error("E4019");"!"!==di&&(ei=di)}}return ei}function fe(On){var ei=se(On),ni=ne(ei);return ni||(ni=W),ei!==On&&(ni="!"+ni),ni}function de(On){var ei=function ie(On){return Array.isArray(On)&&On.length}(On.filterOperations)?On.filterOperations:function _e(On){return On.lookup&&Y||U[On.dataType||P]}(On);return(0,u.l)([],ei)}function le(On,ei){var ni=function(On){return k[On]}(On);return ei&&ei[ni]?ei[ni]:ni}function pe(On,ei){for(var ni=0;ni<ei.length;ni++)if(ei[ni].value===On)return ei[ni];throw new a.Z.Error("E1048",On)}function Ee(On,ei){var ni=On.filter(function(di){return di.name===ei});return ni.length?ni[0]:null}function ae(On,ei,ni){var di=de(On),Hi=!!On.lookup;return ni.forEach(function($i){if(!On.filterOperations&&-1===di.indexOf($i.name)){var Qi=$i&&$i.dataTypes;(!Hi||!$i.notForLookup)&&Qi&&Qi.indexOf(On.dataType||P)>=0&&di.push($i.name)}}),di.map(function($i){var Qi=Ee(ni,$i);return Qi?{icon:Qi.icon||B,text:Qi.caption||(0,d.GK)(Qi.name),value:Qi.name,isCustom:!0}:{icon:R_getIconByFilterOperation($i)||B,text:le($i,ei),value:$i}})}function te(On){return On.defaultFilterOperation||de(On)[0]}function re(On,ei){var ni=[On.dataField,"",""];return Jn(ni,te(On),ei),ni}function oe(On,ei){var ni=se(On),di=ni.indexOf(ei);return ni.splice(di,1),1!==ni.length&&ni.splice(di,1),On}function ye(On){var ei=$e(On),ni=ei?me(On):On;return ei?["!",[ni]]:[ni]}function Ne(On,ei){var ni=se(ei),di=fe(ni);return 1===ni.length?ni.unshift(On):ni.push(On,di),ei}function ft(On,ei){for(var ni=0;ni<ei.length;ni++)if(ei[ni].name===On||ei[ni].dataField.toLowerCase()===On.toLowerCase())return ei[ni];var di=Ft(ei,!0).filter(function(Hi){return Hi.dataField.toLowerCase()===On.toLowerCase()});if(di.length>0)return di[0];throw new a.Z.Error("E1047",On)}function tt(On){return!!Array.isArray(On)&&(On.length<2||Array.isArray(On[0])||Array.isArray(On[1]))}function Be(On){return!!Array.isArray(On)&&On.length>1&&!Array.isArray(On[0])&&!Array.isArray(On[1])}function mt(On,ei,ni){ni=ni||W;for(var di=ne(On).toLowerCase()||ni,Hi=[],$i=0;$i<On.length;$i++)tt(On[$i])?(Hi.push(Ye(On[$i],ei,ni)),Hi=Te(Hi,di)):Be(On[$i])&&(Hi.push(ke(On[$i],ei)),Hi=Te(Hi,di));return 0===Hi.length&&(Hi=Te(Hi,di)),Hi}function ke(On,ei){return function nn(On,ei){var ni=Ee(ei,On[1]);return ni&&ni.name===On[1]}(On,ei)||On.length<3&&(On[2]=On[1],On[1]="="),On}function $e(On){return-1!==On.indexOf("not")}function me(On){return On.substring(3).toLowerCase()}function xe(On,ei){var ni=$e(ei);return ei=ni?me(ei):ei,ni?["!",On,ei]:[On,ei]}function Te(On,ei){var ni=$e(ei);ei=ni?me(ei):ei,On.push(ei);var di=On;return ni&&(di=["!",di]),di}function Ye(On,ei,ni){return ni=ni||W,On?Be(On=(0,u.l)(!0,[],On))?xe(ke(On,ei),ni):M(On)?["!",Be(On[1])?xe(ke(On[1],ei),ni):M(On[1])?xe(Ye(On[1],ei),ni):mt(On[1],ei,ni)]:mt(On,ei,ni):ye(ni)}function St(On){return On.reduce(function(ei,ni){if((0,C.$K)(ni.dataField)){var di={};for(var Hi in ni)ni[Hi]&&J.indexOf(Hi)>-1&&(di[Hi]=ni[Hi]);di.defaultCalculateFilterExpression=p.Z.defaultCalculateFilterExpression,(0,C.$K)(di.dataType)||(di.dataType=P),(0,C.$K)(di.trueText)||(di.trueText=O.Z.format("dxDataGrid-trueText")),(0,C.$K)(di.falseText)||(di.falseText=O.Z.format("dxDataGrid-falseText")),ei.push(di)}return ei},[])}function Ct(On,ei,ni,di){var Hi=ft(On[0],ei),$i=ke(On,ni),Qi=ni.length&&Ee(ni,$i[1]);return Qi&&Qi.calculateFilterExpression?Qi.calculateFilterExpression.apply(Qi,[$i[2],Hi,ei]):Hi.createFilterExpression?Hi.createFilterExpression.apply(Hi,[$i[2],$i[1],di]):Hi.calculateFilterExpression?Hi.calculateFilterExpression.apply(Hi,[$i[2],$i[1],di]):Hi.defaultCalculateFilterExpression.apply(Hi,[$i[2],$i[1],di])}function Rt(On,ei,ni,di){if(!(0,C.$K)(On))return null;if(M(On))return["!",Rt(On[1],ei,ni,di)];var $i=se(On);if(Be($i))return Ct($i,ei,ni,di)||null;for(var _r,Qi=[],yn=fe($i),Rn=0;Rn<$i.length;Rn++)tt($i[Rn])?(_r=Rt($i[Rn],ei,ni,di))&&(Rn&&Qi.push(yn),Qi.push(_r)):Be($i[Rn])&&(_r=Ct($i[Rn],ei,ni,di))&&(Qi.length&&Qi.push(yn),Qi.push(_r));return 1===Qi.length&&(Qi=Qi[0]),Qi.length?Qi:null}function fn(On){var ni,ei=se(On);if(0===ei.length)return null;var di=[];for(ni=0;ni<ei.length;ni++)if(tt(ei[ni])){var Hi=fn(ei[ni]);Hi?ei[ni]=Hi:di.push(ei[ni])}else Be(ei[ni])&&(Ai(ei[ni])||di.push(ei[ni]));for(ni=0;ni<di.length;ni++)oe(ei,di[ni]);return 1===ei.length||(ei.splice(ei.length-1,1),1===ei.length&&(On=function ge(On,ei){return M(On)?On[1]=ei:On=ei,On}(On,ei[0])),0===On.length)?null:On}function ct(On,ei,ni){if(""!==ei){var di=On.lookup;if(di.items)ni(di.calculateCellValue(ei)||"");else{var Hi=(0,C.mf)(di.dataSource)?di.dataSource({}):di.dataSource;new w.o(Hi).loadSingle(di.valueExpr,ei).done(function(Qi){var _r="";Qi&&(_r=di.displayExpr?(0,f.vb)(di.displayExpr)(Qi):Qi),On.customizeText&&(_r=On.customizeText({value:ei,valueText:_r})),ni(_r)}).fail(function(){ni("")})}}else ni("")}function He(On,ei,ni,di,Hi){var $i;return $i=!0===ei?On.trueText||O.Z.format("dxDataGrid-trueText"):!1===ei?On.falseText||O.Z.format("dxDataGrid-falseText"):function X(On,ei){return s.Z.format(ei,On.format||K[On.dataType])}(On,ei),On.customizeText&&($i=On.customizeText.call(On,{value:ei,valueText:$i,target:di})),ni&&ni.customizeText&&($i=ni.customizeText.call(ni,{value:ei,valueText:$i,field:On,target:di},Hi)),$i}function Dt(On,ei,ni,di){var Hi={values:ei};return ei.map($i=>He(On,$i,ni,di,Hi))}function qe(On){return""===On||null===On}function Ht(On,ei,ni){var di=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(qe(ei))return"";if(Array.isArray(ei)){var Hi=new c.BH;return c.gx.apply(this,Dt(On,ei,ni,di)).done(function(){for(var $i=arguments.length,Qi=new Array($i),_r=0;_r<$i;_r++)Qi[_r]=arguments[_r];var yn=Qi.some(Rn=>!qe(Rn))?Qi.map(Rn=>qe(Rn)?"?":Rn):"";Hi.resolve(yn)}),Hi}return He(On,ei,ni,di)}function dt(On,ei){return On.some(function(ni){return ni.dataField===ei})}function ht(On,ei,ni){var di=ni.dataField;bn(di)&&(ni.parentId=_n(di),!dt(ei,ni.parentId)&&!dt(On,ni.parentId)&&ht(On,ei,{id:ni.parentId,dataType:"object",dataField:ni.parentId,caption:yt(ni.parentId,!0),filterOperations:["isblank","isnotblank"]})),ei.push(ni)}function yt(On,ei){var ni="";if(ei)On=On.substring(On.lastIndexOf(".")+1);else if(bn(On))return On.split(".").forEach(function(di,Hi,$i){ni+=(0,d.GK)(di),Hi!==$i.length-1&&(ni+=".")}),ni;return(0,d.GK)(On)}function Ft(On,ei){for(var ni=[],di=0;di<On.length;di++){var Hi=(0,u.l)(!0,{caption:yt(On[di].dataField,ei)},On[di]);Hi.id=Hi.name||Hi.dataField,ei?ht(On,ni,Hi):ni.push(Hi)}return ni}function bn(On){return-1!==On.lastIndexOf(".")}function _n(On){return On.substring(0,On.lastIndexOf("."))}function xn(On,ei){if(bn(On.dataField))for(var ni=_n(On.dataField),di=0;di<ei.length;di++)if(ei[di].dataField===ni)return xn(ei[di],ei)+"."+On.caption;return On.caption}function Jn(On,ei,ni){var di=Ee(ni,ei);return di?(!1===di.hasValue?(On[1]=ei,On.length=2):(On[1]=ei,On[2]=""),On):("isblank"===ei?(On[1]="=",On[2]=null):"isnotblank"===ei?(On[1]="<>",On[2]=null):(((di=Ee(ni,On[1]))||2===On.length||null===On[2])&&(On[2]=""),On[1]=ei),On)}function li(On){return null===On[2]?"="===On[1]?"isblank":"isnotblank":On[1]}function Ai(On){return""!==On[2]}function Vn(On,ei,ni){var di=(0,u.l)(!0,[],On),Hi=-1;return di.some(function($i,Qi){if("between"===$i.name)return Hi=Qi,!0}),-1!==Hi?di[Hi]=(0,u.l)(S(ei,ni),di[Hi]):di.unshift(S(ei,ni)),di}function Oi(On,ei){return On[0]===ei}function Hn(On,ei){return On&&0!==On.length?Be(On)?Oi(On,ei)?null:On:Sn(On,[ei],!1):null}function Sn(On,ei,ni){var di=[];return On.forEach(function(Hi){Be(Hi)?Oi(Hi,ei[0])?ni?(di.push(ei),ni=!1):di.splice(di.length-1,1):di.push(Hi):(di.length||tt(Hi))&&di.push(Hi)}),0===di.length?null:(ni&&(di.push(W),di.push(ei)),1===di.length?di[0]:di)}function An(On,ei){return null===On||0===On.length?ei:Be(On)?Oi(On,ei[0])?ei:[On,W,ei]:fe(On)!==W?[ei,"and",On]:Sn(On,ei,!0)}function ti(On,ei){return null===On||0===On.length?[]:Be(On)?Oi(On,ei)?[On]:[]:fe(On)!==W?[]:On.filter(function(Hi){return Be(Hi)&&Oi(Hi,ei)})}function Wn(On,ei){return null!==On&&0!==On.length&&(Be(On)?On[0]===ei:On.some(function(ni){return(Be(ni)||tt(ni))&&Wn(ni,ei)}))}var Yi=function(On,ei,ni){if(Array.isArray(ei)){var di=ei.length-1;On.empty(),ei.forEach((Hi,$i)=>{(0,o.Z)("<span>").addClass(G).text(Hi).appendTo(On),$i!==di&&(0,o.Z)("<span>").addClass(q).text(ni&&ni.valueSeparator?ni.valueSeparator:"|").addClass(Z).appendTo(On)})}else On.text(ei||O.Z.format("dxFilterBuilder-enterValueText"))}},7449:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>cr});var o=l(4817),c=l(9904),I=l(913),C=l(8506),f=l(6492),a=l(7674),p=l(7572),s=l(1828),u=l(2718),d=l(5873),h=l(2526),g=l(6881),x=l(9009),b=l(6853),y=l(1031),E=l(4514),S=l(3191);class O{constructor(){this._map={}}_findWidgetInstance(vn){var Ze;return(0,u.S6)(this._map,function(bt,_t){var{widgetInstance:Wt,item:Ot}=_t;if(vn(Ot))return Ze=Wt,!1}),Ze}_findFieldByCondition(vn,Ze){var bt;return(0,u.S6)(this._map,function(_t,Wt){if(vn(Wt))return bt="guid"===Ze?_t:Wt[Ze],!1}),bt}clear(){this._map={}}removeItemsByItems(vn){(0,u.S6)(vn.getItems(),Ze=>this.removeItemByKey(Ze))}removeItemByKey(vn){delete this._map[vn]}add(vn){var Ze=vn.guid||new f.Z;return this._map[Ze]=vn,Ze}addItemsOrExtendFrom(vn){vn.each((Ze,bt)=>{this._map[Ze]?(bt.widgetInstance&&(this._map[Ze].widgetInstance=bt.widgetInstance),this._map[Ze].$itemContainer=bt.$itemContainer):this.add({item:bt.item,widgetInstance:bt.widgetInstance,guid:Ze,$itemContainer:bt.$itemContainer})})}extendRunTimeItemInfoByKey(vn,Ze){this._map[vn]&&(this._map[vn]=(0,d.l)(this._map[vn],Ze))}findWidgetInstanceByItem(vn){return this._findWidgetInstance(Ze=>Ze===vn)}findGroupOrTabLayoutManagerByPath(vn){return this._findFieldByCondition(Ze=>{var{path:bt}=Ze;return bt===vn},"layoutManager")}findKeyByPath(vn){return this._findFieldByCondition(Ze=>{var{path:bt}=Ze;return bt===vn},"guid")}findWidgetInstanceByName(vn){return this._findWidgetInstance(Ze=>vn===Ze.name)}findWidgetInstanceByDataField(vn){return this._findWidgetInstance(Ze=>vn===((0,s.HD)(Ze)?Ze:Ze.dataField))}findItemContainerByItem(vn){for(var Ze in this._map)if(this._map[Ze].item===vn)return this._map[Ze].$itemContainer;return null}findItemIndexByItem(vn){return this._findFieldByCondition(Ze=>{var{item:bt}=Ze;return bt===vn},"itemIndex")}findPreparedItemByItem(vn){return this._findFieldByCondition(Ze=>{var{item:bt}=Ze;return bt===vn},"preparedItem")}getItems(){return this._map}each(vn){(0,u.S6)(this._map,function(Ze,bt){vn(Ze,bt)})}removeItemsByPathStartWith(vn){Object.keys(this._map).filter(_t=>!!this._map[_t].path&&this._map[_t].path.indexOf(vn,0)>-1).forEach(_t=>this.removeItemByKey(_t))}}var w=l(3078),T=l(8487),k=l(4270),R=l(2722),P=l(5031);class B{constructor(vn){this._options=vn,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(){P.Z.abstract()}}var W=l(5610),N=(en,vn)=>"".concat(vn?"tabs":"items","[").concat(en,"]"),V=(en,vn)=>(0,s.$K)(en)&&(0,s.$K)(vn)?"".concat(en,".").concat(vn):en||vn,U=en=>en?en.replace(/\s/g,""):void 0,Y=(en,vn)=>"".concat(en,".").concat(vn),J=en=>{var vn=en.split(".");return vn[vn.length-1].replace(/\[\d+]/,"")},ee=en=>en.indexOf("tabs")>-1,G=(en,vn,Ze)=>{var bt=en.indexOf(vn);if(bt>-1)return N(bt,Ze);for(var _t=0;_t<en.length;_t++){var Wt=en[_t],Ot=Wt.tabs||Wt.items;if(Ot){var qt=G(Ot,vn,Wt.tabs);if(qt)return V(N(_t,Ze),qt)}}};class Z extends B{tryExecute(){var{value:vn}=this._options,Ze=this.findInstance();return!!Ze&&(Ze.option(vn),!0)}}class X extends B{tryExecute(){var vn=this.findInstance();if(vn){var{optionName:Ze,item:bt,value:_t}=this._options,Wt=this._itemsRunTimeInfo.findItemIndexByItem(bt);if(Wt>=0)return vn.option(Y("items[".concat(Wt,"]"),Ze),_t),!0}return!1}}class M extends B{tryExecute(){return!1}}class se extends B{tryExecute(){var vn=this.findPreparedItem();return!(null==vn||!vn._prepareGroupItemTemplate||!vn._renderGroupContentTemplate||(vn._prepareGroupItemTemplate(this._options.item.template),vn._renderGroupContentTemplate(),0))}}class ge extends B{tryExecute(){var vn=this.findInstance();if(vn){var{value:Ze}=this._options;return vn.option("dataSource",Ze),!0}return!1}}class De extends B{tryExecute(){var{item:vn}=this._options,Ze=this.findInstance(),bt=Ze&&(0,W.aT)(Ze.$element()[0],"dxValidator");if(bt&&vn){var _t=qt=>"required"===qt.type,Wt=(bt.option("validationRules")||[]).some(_t),Ot=(vn.validationRules||[]).some(_t);if(!Wt&&!Ot||Wt&&Ot)return bt.option("validationRules",vn.validationRules),!0}return!1}}class Fe extends B{tryExecute(){var vn=this.findItemContainer(),{previousValue:Ze,value:bt}=this._options;return!!vn&&(vn.removeClass(Ze).addClass(bt),!0)}}var fe=l(9870),_e=l(1805),ie=l(9963),de=l(9960),le=l(6738),pe=l(4416),Ee=l(7374),re="dx-form-group",ye="dx-col-",Pe="dx-field-item",Ne="dx-layout-manager-one-col",ft="dx-field-item-label-content",Be="dx-field-item-label",mt="dx-field-item-content",ke="dx-root-simple-item",Ye="dx-field-item-tab",St="dx-group-colcount-",Ct="group-col-count",ct="simple",ht=(l(3447),l(1946),l(344),l(1884),l(219),l(227)),yt=l(7981),Ft=l(9589),bn=l(8159),_n=l(9109),xn=["dxTagBox","dxRangeSlider"],Jn=["dxCalendar","dxCheckBox","dxHtmlEditor","dxRadioGroup","dxRangeSlider","dxSlider","dxSwitch"];function Vn(en,vn){var{showRequiredMark:Ze,requiredMark:bt,showOptionalMark:_t,optionalMark:Wt}=en;return{showRequiredMark:Ze&&vn,requiredMark:bt,showOptionalMark:_t&&!vn,optionalMark:Wt}}var Wn="dx-field-item-label-location-";function di(en,vn,Ze){var Ot,qt,bt="".concat(vn," > .").concat(Be,":not(.").concat(Wn,"top) > .").concat(ft),_t=en.find(bt),Wt=_t.length,mn=0;for(qt=0;qt<Wt;qt++)(Ot=Hi(_t[qt]))>mn&&(mn=Ot);for(qt=0;qt<Wt;qt++)_t[qt].style.width=mn+"px"}function Hi(en){for(var vn=0,Ze=en.children.length,bt=0;bt<Ze;bt++)vn+=en.children[bt].offsetWidth;return vn}var yn="dx-field-item-content-wrapper",kr="dx-validation-target";function Gr(en){var{$parent:vn,rootElementCssClassList:Ze,formOrLayoutManager:bt,createComponentCallback:_t,labelOptions:Wt,labelNeedBaselineAlign:Ot,labelLocation:qt,needRenderLabel:mn,formLabelLocation:Ke,item:pt,editorOptions:an,isSimpleItem:hn,isRequired:sn,template:Nn,helpID:Yn,labelID:st,name:Vt,helpText:rn,requiredMessageTemplate:Dn,validationGroup:rt}=en,Bt=(0,c.Z)("<div>").addClass(Ze.join(" ")).appendTo(vn);Bt.addClass(sn?"dx-field-item-required":"dx-field-item-optional"),hn&&Bt.addClass("dx-flex-layout"),hn&&Ot&&Bt.addClass("dx-field-item-label-align");var gt=(0,c.Z)("<div>");gt.data("dx-form-item",pt),gt.addClass(mt).addClass("dx-field-item-content-location-"+{right:"left",left:"right",top:"bottom"}[Ke]);var Un,$t=null;if(mn&&(Wt.labelTemplate&&(Wt.labelTemplateData=Tr(pt,an,bt)),$t=function ei(en){var{text:vn,id:Ze,location:bt,alignment:_t,labelID:Wt=null,markOptions:Ot={},labelTemplate:qt,labelTemplateData:mn,onLabelTemplateRendered:Ke}=en;if((!(0,s.$K)(vn)||vn.length<=0)&&!(0,s.$K)(qt))return null;var pt=(0,c.Z)("<label>").addClass(Be+" "+Wn+bt).attr("for",Ze).attr("id",Wt).css("textAlign",_t),an=(0,c.Z)("<span>").addClass(ft),hn=(0,c.Z)("<span>").addClass("dx-field-item-label-text").text(vn);return qt&&(hn=(0,c.Z)("<div>").addClass("dx-field-item-custom-label-content"),mn.text=vn,qt.render({container:(0,g.u)(hn),model:mn,onRendered(){Ke?.()}})),pt.append(an.append(hn,function ni(en){var vn=function Ai(en){var{showRequiredMark:vn,requiredMark:Ze,showOptionalMark:bt,optionalMark:_t}=en;return vn||bt?String.fromCharCode(160)+(vn?Ze:_t):""}(en);return""===vn?null:(0,c.Z)("<span>").addClass(en.showRequiredMark?"dx-field-item-required-mark":"dx-field-item-optional-mark").text(vn)}(Ot)))}(Wt)),$t?(Bt.append($t),("top"===qt||"left"===qt)&&Bt.append(gt),"right"===qt&&Bt.prepend(gt),Bt.addClass("top"===qt?"dx-label-v-align":"dx-label-h-align"),("dxCheckBox"===pt.editorType||"dxSwitch"===pt.editorType)&&I.Z.on($t,ht.u,function(){I.Z.trigger(gt.children(),ht.u)})):Bt.append(gt),Nn)Nn.render({container:(0,g.u)(gt),model:Tr(pt,an,bt),onRendered(){var ko=function Vr(en){var vn,Ze;return en?.data(kr)||(null==en||null===(vn=en.parent)||void 0===vn||null===(Ze=vn.call(en))||void 0===Ze?void 0:Ze.data(kr))}(xr(gt));Nr(ko)}});else{var ai=(0,c.Z)("<div>").appendTo(gt);try{(Un=_t(ai,pt.editorType,an)).setAria("describedby",Yn),st&&Un.setAria("labelledby",st),Un.setAria("required",sn)}catch(Xr){bn.Z.log("E1035",Xr.message)}}var Ci=xr(gt),Ii=Ci&&Ci.data(kr);if(Ii){var wr,zi=pt.label&&pt.label.text,Ki=zi?null:Vt,Xi=zi?pt.label.text:Ki&&(0,yt.GK)(Ki);if(hn)if(pt.validationRules)wr=pt.validationRules;else{var vr=(0,Ft.WU)(Dn,Xi||"");wr=pt.isRequired?[{type:"required",message:vr}]:null}Array.isArray(wr)&&wr.length&&_t(Ci,_n.Z,{validationRules:wr,validationGroup:rt,dataGetter:function(){return{formItem:pt}}}),Nr(Ii)}return rn&&hn&&gt.parent().append((0,c.Z)("<div>").addClass(yn).append(gt).append((0,c.Z)("<div>").addClass("dx-field-item-help-text").attr("id",Yn).text(rn))),{$fieldEditorContainer:gt,$rootElement:Bt,widgetInstance:Un}}function xr(en){var vn=en.children().first();return vn.hasClass("dx-template-wrapper")?vn.children().first():vn}function Nr(en){if(en&&(0,R.x2)()){var vn=".".concat(yn),Ze=bt=>{var{element:_t,component:Wt}=bt,{isValid:Ot,validationMessageMode:qt}=Wt.option();(0,c.Z)(_t).parents(vn).toggleClass("dx-invalid",!1===Ot&&(Wt._isFocused()||"always"===qt))};en.on("optionChanged",bt=>{"isValid"===bt.name&&Ze(bt)}),en.on("focusIn",Ze).on("focusOut",Ze).on("enterKey",Ze)}}function Tr(en,vn,Ze){return{dataField:en.dataField,editorType:en.editorType,editorOptions:vn,component:Ze,name:en.name}}function Kr(en){var{$parent:vn,rootElementCssClassList:Ze}=en;return(0,c.Z)("<div>").addClass("dx-field-empty-item").html("&nbsp;").addClass(Ze.join(" ")).appendTo(vn)}var $n=b.Z.inherit({_getDefaultOptions:function(){return(0,d.l)(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:x.Z.format("dxForm-optionalMark"),requiredMessage:x.Z.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference:function(){this.callBase(),(0,d.l)(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init:function(){var en=this.option("layoutData");this.callBase(),this._itemWatchers=[],this._itemsRunTimeInfo=new O,this._updateReferencedOptions(en),this._initDataAndItems(en)},_dispose:function(){this.callBase(),this._cleanItemWatchers()},_initDataAndItems:function(en){this._syncDataWithItems(),this._updateItems(en)},_syncDataWithItems:function(){var en=this.option("layoutData"),vn=this.option("items");(0,s.$K)(vn)&&vn.forEach(Ze=>{var bt;Ze.dataField&&void 0===this._getDataByField(Ze.dataField)&&(Ze.editorOptions&&(bt=Ze.editorOptions.value),((0,s.$K)(bt)||Ze.dataField in en)&&this._updateFieldValue(Ze.dataField,bt))})},_getDataByField:function(en){return en?this.option("layoutData."+en):null},_isCheckboxUndefinedStateEnabled:function(en){var{allowIndeterminateState:vn,editorType:Ze,dataField:bt}=en;if(!0===vn&&"dxCheckBox"===Ze){var _t=["layoutData",...bt.split(".")],Wt=_t.pop(),Ot=this.option(_t.join("."));return Ot&&Wt in Ot}return!1},_updateFieldValue:function(en,vn){var Ze=this.option("layoutData"),bt=vn;!ie.Z.isWrapped(Ze[en])&&(0,s.$K)(en)?this.option("layoutData."+en,bt):ie.Z.isWritableWrapped(Ze[en])&&(bt=(0,s.mf)(bt)?bt():bt,Ze[en](bt)),this._triggerOnFieldDataChanged({dataField:en,value:bt})},_triggerOnFieldDataChanged:function(en){this._createActionByOption("onFieldDataChanged")(en)},_updateItems:function(en){var vn=this,Ze=this.option("items"),bt=(0,s.$K)(Ze),_t=vn.option("customizeItem"),Wt=bt?Ze:this._generateItemsByData(en);if((0,s.$K)(Wt)){var Ot=[];(0,u.S6)(Wt,function(qt,mn){vn._isAcceptableItem(mn)&&(mn=vn._processItem(mn),_t&&_t(mn),(0,s.Kn)(mn)&&!1!==ie.Z.unwrap(mn.visible)&&Ot.push(mn))}),(!vn._itemWatchers.length||!bt)&&vn._updateItemWatchers(Wt),this._setItems(Ot),this._sortItems()}},_cleanItemWatchers:function(){this._itemWatchers.forEach(function(en){en()}),this._itemWatchers=[]},_updateItemWatchers:function(en){var vn=this,Ze=vn._getWatch();en.forEach(function(bt){(0,s.Kn)(bt)&&(0,s.$K)(bt.visible)&&(0,s.mf)(Ze)&&vn._itemWatchers.push(Ze(function(){return ie.Z.unwrap(bt.visible)},function(){vn._updateItems(vn.option("layoutData")),vn.repaint()},{skipImmediate:!0}))})},_generateItemsByData:function(en){var vn=[];return(0,s.$K)(en)&&(0,u.S6)(en,function(Ze){vn.push({dataField:Ze})}),vn},_isAcceptableItem:function(en){var Ze=this._getDataByField(en.dataField||en);return!((0,s.mf)(Ze)&&!ie.Z.isWrapped(Ze))},_processItem:function(en){if("string"==typeof en&&(en={dataField:en}),"object"==typeof en&&!en.itemType&&(en.itemType=ct),!(0,s.$K)(en.editorType)&&(0,s.$K)(en.dataField)){var vn=this._getDataByField(en.dataField);en.editorType=(0,s.$K)(vn)?this._getEditorTypeByDataType((0,s.dt)(vn)):"dxTextBox"}var Ze;return"dxCheckBox"===en.editorType&&(en.allowIndeterminateState=null===(Ze=en.allowIndeterminateState)||void 0===Ze||Ze),en},_getEditorTypeByDataType:function(en){switch(en){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems:function(){(0,de.Sq)(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes:function(){this._items.sort(function(en,vn){var Ze=en.visibleIndex,bt=vn.visibleIndex;return Ze>bt?1:Ze<bt?-1:0})},_initMarkup:function(){this._itemsRunTimeInfo.clear(),this.$element().addClass("dx-layout-manager"),this.callBase(),this._renderResponsiveBox()},_renderResponsiveBox:function(){var en=[];if(this._items&&this._items.length){var vn=this._getColCount(),Ze=(0,c.Z)("<div>").appendTo(this.$element());this._prepareItemsWithMerging(vn);var bt=this._generateLayoutItems();this._responsiveBox=this._createComponent(Ze,Ee.Z,this._getResponsiveBoxConfig(bt,vn,en)),(0,E.Ym)()||this._renderTemplates(en)}},_itemStateChangedHandler:function(en){this._refresh()},_renderTemplates:function(en){var vn=this,Ze=0;en.forEach(bt=>{var _t,{item:Wt}=bt;null!=Wt&&null!==(_t=Wt.label)&&void 0!==_t&&_t.template&&Ze++}),(0,u.S6)(en,function(bt,_t){switch(_t.itemType){case"empty":Kr(_t);break;case"button":vn._renderButtonItem(_t);break;default:vn._renderFieldItem(_t,Ze)}})},_getResponsiveBoxConfig:function(en,vn,Ze){var bt=this,_t=bt.option("colCountByScreen"),Wt=_t&&_t.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),onLayoutChanged:function(){var Ot=bt.option("onLayoutChanged"),qt=bt.isSingleColumnMode();Ot&&(bt.$element().toggleClass(Ne,qt),Ot(qt))},onContentReady:function(Ot){(0,E.Ym)()&&bt._renderTemplates(Ze),bt.option("onLayoutChanged")&&bt.$element().toggleClass(Ne,bt.isSingleColumnMode(Ot.component))},itemTemplate:function(Ot,qt,mn){if(Ot.location){var Ke=(0,c.Z)(mn),an=bt._items[Ot.location.col+Ot.location.row*vn];if(an){var hn=[an.cssClass];Ke.toggleClass("dx-single-column-item-content",bt.isSingleColumnMode(this)),0===Ot.location.row&&hn.push("dx-first-row"),0===Ot.location.col&&hn.push("dx-first-col"),an.itemType===ct&&bt.option("isRoot")&&Ke.addClass(ke);var sn=Ot.location.col===vn-1||Ot.location.col+Ot.location.colspan===vn,Nn=bt._getRowsCount(),Yn=Ot.location.row===Nn-1;sn&&hn.push("dx-last-col"),Yn&&hn.push("dx-last-row"),"empty"!==an.itemType&&(hn.push(Pe),hn.push(bt.option("cssItemClass")),(0,s.$K)(an.col)&&hn.push("dx-col-"+an.col)),Ze.push({itemType:an.itemType,item:an,$parent:Ke,rootElementCssClassList:hn})}}},cols:bt._generateRatio(vn),rows:bt._generateRatio(bt._getRowsCount(),!0),dataSource:en,screenByWidth:bt.option("screenByWidth"),singleColumnScreen:!Wt&&"xs"}},_getColCount:function(){var en=this.option("colCount"),vn=this.option("colCountByScreen");if(vn){var Ze=this.option("form").getTargetScreenFactor();Ze||(Ze=(0,E.Ym)()?(0,E.Wf)(this.option("screenByWidth")):"lg"),en=vn[Ze]||en}if("auto"===en){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=en=this._getMaxColCount()}return en<1?1:en},_getMaxColCount:function(){if(!(0,E.Ym)())return 1;var en=this.option("minColWidth"),vn=(0,_e.dz)(this.$element()),Ze=this._items.length,bt=Math.floor(vn/en)||1;return Ze<bt?Ze:bt},isCachedColCountObsolete:function(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging:function(en){var Ze,bt,Wt,Ot,vn=this._items.slice(0),_t=[];for(Ot=0;Ot<vn.length;Ot++)if(_t.push(Ze=vn[Ot]),(this.option("alignItemLabels")||Ze.alignItemLabels||Ze.colSpan)&&(Ze.col=this._getColByIndex(_t.length-1,en)),Ze.colSpan>1&&Ze.col+Ze.colSpan<=en){for(bt=[],Wt=0;Wt<Ze.colSpan-1;Wt++)bt.push({merged:!0});_t=_t.concat(bt)}else delete Ze.colSpan;this._setItems(_t)},_getColByIndex:function(en,vn){return en%vn},_setItems:function(en){this._items=en,this._cashedColCount=null},_generateLayoutItems:function(){var bt,_t,en=this._items,vn=this._getColCount(),Ze=[];for(_t=0;_t<en.length;_t++)if(!(bt=en[_t]).merged){var Wt={location:{row:parseInt(_t/vn),col:this._getColByIndex(_t,vn)}};(0,s.$K)(bt.disabled)&&(Wt.disabled=bt.disabled),(0,s.$K)(bt.visible)&&(Wt.visible=bt.visible),(0,s.$K)(bt.colSpan)&&(Wt.location.colspan=bt.colSpan),(0,s.$K)(bt.rowSpan)&&(Wt.location.rowspan=bt.rowSpan),Ze.push(Wt)}return Ze},_renderEmptyItem:function(en){Kr({$container:en})},_renderButtonItem:function(en){var{item:vn,$parent:Ze,rootElementCssClassList:bt}=en,{$rootElement:_t,buttonInstance:Wt}=function Er(en){var{item:vn,$parent:Ze,rootElementCssClassList:bt,validationGroup:_t,createComponentCallback:Wt}=en,Ot=(0,c.Z)("<div>").appendTo(Ze).addClass(bt.join(" ")).addClass("dx-field-button-item").css("textAlign",function oo(en){return(0,s.$K)(en)?en:"right"}(vn.horizontalAlignment));return Ze.css("justifyContent",function fi(en){switch(en){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}}(vn.verticalAlignment)),{$rootElement:Ot,buttonInstance:Wt((0,c.Z)("<div>").appendTo(Ot),"dxButton",(0,d.l)({validationGroup:_t},vn.buttonOptions))}}({item:vn,$parent:Ze,rootElementCssClassList:bt,validationGroup:this.option("validationGroup"),createComponentCallback:this._createComponent.bind(this)});this._itemsRunTimeInfo.add({item:vn,widgetInstance:Wt,guid:vn.guid,$itemContainer:_t})},_renderFieldItem:function(en,vn){var Ze,bt,{item:_t,$parent:Wt,rootElementCssClassList:Ot}=en,qt=this._getDataByField(_t.dataField),mn=!1;if(void 0===qt){var{allowIndeterminateState:Ke,editorType:pt,dataField:an}=_t;mn=this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:Ke,editorType:pt,dataField:an})}var hn=_t.dataField||_t.name,sn=this._getFormOrThis(),{$fieldEditorContainer:Nn,widgetInstance:Yn,$rootElement:st}=Gr(function li(en){var{$parent:vn,rootElementCssClassList:Ze,formOrLayoutManager:bt,createComponentCallback:_t,item:Wt,template:Ot,labelTemplate:qt,name:mn,formLabelLocation:Ke,requiredMessageTemplate:pt,validationGroup:an,editorValue:hn,canAssignUndefinedValueToEditor:sn,editorValidationBoundary:Nn,editorStylingMode:Yn,showColonAfterLabel:st,managerLabelLocation:Vt,itemId:rn,managerMarkOptions:Dn,labelMode:rt,onLabelTemplateRendered:Bt}=en,gt=(0,s.$K)(Wt.isRequired)?Wt.isRequired:!!function Hn(en){var vn;return en&&en.length&&(0,u.S6)(en,function(Ze,bt){if("required"===bt.type)return vn=!0,!1}),vn}(Wt.validationRules),$t=Wt.itemType===ct,Un=Wt.helpText?"dx-"+new f.Z:null,ai=function Sn(en){var{item:vn,id:Ze,isRequired:bt,managerMarkOptions:_t,showColonAfterLabel:Wt,labelLocation:Ot,labelTemplate:qt,formLabelMode:mn,onLabelTemplateRendered:Ke}=en,pt=Jn.includes(vn.editorType),an=(0,d.l)({showColon:Wt,location:Ot,id:Ze,visible:"outside"===mn||pt&&"hidden"!==mn,isRequired:bt},vn?vn.label:{},{markOptions:Vn(_t,bt),labelTemplate:qt,onLabelTemplateRendered:Ke});return["dxRadioGroup","dxCheckBox","dxLookup","dxSlider","dxRangeSlider","dxSwitch","dxHtmlEditor"].includes(vn.editorType)&&(an.labelID="dx-label-".concat(new f.Z)),!an.text&&vn.dataField&&(an.text=(0,yt.GK)(vn.dataField)),an.text&&(an.textWithoutColon=an.text,an.text+=an.showColon?":":""),an}({item:Wt,id:rn,isRequired:gt,managerMarkOptions:Dn,showColonAfterLabel:st,labelLocation:Vt,formLabelMode:rt,labelTemplate:qt,onLabelTemplateRendered:Bt}),Ci=ai.visible&&(ai.text||ai.labelTemplate&&$t),{location:Ii,labelID:zi}=ai,Ki="top"!==Ii&&["dxTextArea","dxRadioGroup","dxCalendar","dxHtmlEditor"].includes(Wt.editorType),Xi=function Oi(en){var{editorType:vn,defaultEditorName:Ze,editorValue:bt,canAssignUndefinedValueToEditor:_t,externalEditorOptions:Wt,editorInputId:Ot,editorValidationBoundary:qt,editorStylingMode:mn,formLabelMode:Ke,labelText:pt,labelMark:an}=en,hn={};(void 0!==bt||_t)&&(hn.value=bt),-1!==xn.indexOf(vn)&&(hn.value=hn.value||[]);var sn=Wt?.labelMode;(0,s.$K)(sn)||(sn="outside"===Ke?"hidden":Ke);var Yn=(0,d.l)(!0,hn,Wt,{inputAttr:{id:Ot},validationBoundary:qt,stylingMode:Wt?.stylingMode||mn,label:pt,labelMode:sn,labelMark:an});return Wt&&(Yn.dataSource&&(Yn.dataSource=Wt.dataSource),Yn.items&&(Yn.items=Wt.items)),Ze&&!Yn.name&&(Yn.name=Ze),Yn}({editorType:Wt.editorType,editorValue:hn,defaultEditorName:Wt.dataField,canAssignUndefinedValueToEditor:sn,externalEditorOptions:Wt.editorOptions,editorInputId:rn,editorValidationBoundary:Nn,editorStylingMode:Yn,formLabelMode:rt,labelText:ai.textWithoutColon,labelMark:ai.markOptions.showRequiredMark?String.fromCharCode(160)+ai.markOptions.requiredMark:""});return{$parent:vn,rootElementCssClassList:Ze,formOrLayoutManager:bt,createComponentCallback:_t,labelOptions:ai,labelNeedBaselineAlign:Ki,labelLocation:Ii,needRenderLabel:Ci,item:Wt,isSimpleItem:$t,isRequired:gt,template:Ot,helpID:Un,labelID:zi,name:mn,helpText:!ai.markOptions.showOptionalMark||ai.visible||"hidden"===Xi.labelMode||(0,s.$K)(Wt.helpText)?Wt.helpText:ai.markOptions.optionalMark,formLabelLocation:Ke,requiredMessageTemplate:pt,validationGroup:an,editorOptions:Xi}}({$parent:Wt,rootElementCssClassList:Ot,item:_t,name:hn,editorValue:qt,canAssignUndefinedValueToEditor:mn,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:_t.template?this._getTemplate(_t.template):null,labelTemplate:null!==(Ze=_t.label)&&void 0!==Ze&&Ze.template?this._getTemplate(_t.label.template):null,itemId:this.option("form")&&this.option("form").getItemID(hn),managerMarkOptions:this._getMarkOptions(),labelMode:this.option("labelMode"),onLabelTemplateRendered:()=>{this._incTemplateRenderedCallCount(),this._shouldAlignLabelsOnTemplateRendered(sn,vn)&&sn._alignLabels(this,this.isSingleColumnMode(sn))}}));null===(bt=this.option("onFieldItemRendered"))||void 0===bt||bt(),Yn&&_t.dataField&&this._bindDataField(Yn,_t.dataField,_t.editorType,Nn),this._itemsRunTimeInfo.add({item:_t,widgetInstance:Yn,guid:_t.guid,$itemContainer:st})},_incTemplateRenderedCallCount(){var en;this._labelTemplateRenderedCallCount=(null!==(en=this._labelTemplateRenderedCallCount)&&void 0!==en?en:0)+1},_shouldAlignLabelsOnTemplateRendered(en,vn){return en.option("templatesRenderAsynchronously")&&this._labelTemplateRenderedCallCount===vn},_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(en,vn,Ze,bt){var _t=this._getFormOrThis();en.on("enterKey",function(Wt){_t._createActionByOption("onEditorEnterKey")((0,d.l)(Wt,{dataField:vn}))}),this._createWatcher(en,bt,vn),this.linkEditorToDataField(en,vn,Ze)},_createWatcher:function(en,vn,Ze){var bt=this,_t=bt._getWatch();if((0,s.mf)(_t)){var Wt=_t(function(){return bt._getDataByField(Ze)},function(){var Ot=bt._getDataByField(Ze);if("dxTagBox"===en.NAME){var qt=en.option("value");if(Ot!==qt&&function(mn,Ke){if(!Array.isArray(mn)||!Array.isArray(Ke)||mn.length!==Ke.length)return!1;for(var pt=0;pt<mn.length;pt++)if(mn[pt]!==Ke[pt])return!1;return!0}(Ot,qt))return}en.option("value",Ot)},{deep:!0,skipImmediate:!0});I.Z.on(vn,pe.x,Wt)}},_getWatch:function(){if(!(0,s.$K)(this._watch)){var en=this.option("form");this._watch=en&&en.option("integrationOptions.watchMethod")}return this._watch},_createComponent:function(en,vn,Ze){var bt=this.option("readOnly"),_t=this.callBase(en,vn,Ze);return bt&&_t.option("readOnly",bt),this.on("optionChanged",function(Wt){"readOnly"===Wt.name&&!(0,s.$K)(Ze.readOnly)&&_t.option(Wt.name,Wt.value)}),_t},_generateRatio:function(en,vn){var bt,_t,Ze=[];for(_t=0;_t<en;_t++)bt={ratio:1},vn&&(bt.baseSize="auto"),Ze.push(bt);return Ze},_getRowsCount:function(){return Math.ceil(this._items.length/this._getColCount())},_updateReferencedOptions:function(en){var vn=this.option("layoutData");(0,s.Kn)(vn)&&Object.getOwnPropertyNames(vn).forEach(Ze=>delete this._optionsByReference["layoutData."+Ze]),(0,s.Kn)(en)&&Object.getOwnPropertyNames(en).forEach(Ze=>this._optionsByReference["layoutData."+Ze]=!0)},_resetWidget(en){this._disableEditorValueChangedHandler=!0,en.reset(),this._disableEditorValueChangedHandler=!1,en.option("isValid",!0)},_optionChanged(en){if(0!==en.fullName.search("layoutData."))switch(en.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this._updateReferencedOptions(en.value),this.option("items")?(0,s.Qr)(en.value)||this._itemsRunTimeInfo.each((vn,Ze)=>{if((0,s.$K)(Ze.item)){var bt=Ze.item.dataField;if(bt&&(0,s.$K)(Ze.widgetInstance)){var Wt=(0,le.vb)(bt)(en.value),{allowIndeterminateState:Ot,editorType:qt}=Ze.item;void 0!==Wt||this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:Ot,editorType:qt,dataField:bt})?Ze.widgetInstance.option("value",Wt):this._resetWidget(Ze.widgetInstance)}}}):(this._initDataAndItems(en.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(en.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(en),"auto"===this.option("colCount")&&this._resetColCount();break;default:this.callBase(en)}},_resetColCount:function(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField(en,vn){this.on("optionChanged",Ze=>{Ze.fullName==="layoutData.".concat(vn)&&en._setOptionWithoutOptionChange("value",Ze.value)}),en.on("valueChanged",Ze=>{var bt=(0,s.Kn)(Ze.value)||Array.isArray(Ze.value);!this._disableEditorValueChangedHandler&&(!bt||Ze.value!==Ze.previousValue)&&this._updateFieldValue(vn,Ze.value)})},_dimensionChanged:function(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this._eventsStrategy.fireEvent("autoColCountChanged")},updateData:function(en,vn){var Ze=this;(0,s.Kn)(en)?(0,u.S6)(en,function(bt,_t){Ze._updateFieldValue(bt,_t)}):"string"==typeof en&&Ze._updateFieldValue(en,vn)},getEditor:function(en){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(en)||this._itemsRunTimeInfo.findWidgetInstanceByName(en)},isSingleColumnMode:function(en){var vn=this._responsiveBox||en;if(vn)return vn.option("currentScreenFactor")===vn.option("singleColumnScreen")},getItemsRunTimeInfo:function(){return this._itemsRunTimeInfo}});(0,C.Z)("dxLayoutManager",$n),l(8493),l(4510);var In=l(5347),Zn="dx-state-focused",gi=["items","isRequired","validationRules","visible"],Ri=b.Z.inherit({_init:function(){this.callBase(),this._cachedColCountOptions=[],this._itemsRunTimeInfo=new O,this._groupsColCount=[],this._attachSyncSubscriptions()},_getDefaultOptions:function(){return(0,d.l)(this.callBase(),{formID:"dx-"+new f.Z,formData:{},colCount:1,screenByWidth:E.$n,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:x.Z.format("dxForm-optionalMark"),requiredMessage:x.Z.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0,stylingMode:(0,p.Z)().editorStylingMode,labelMode:"outside"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,R.x2)()},options:{showColonAfterLabel:!1,labelLocation:"top"}}])},_setOptionsByReference:function(){this.callBase(),(0,d.l)(this._optionsByReference,{formData:!0,validationGroup:!0})},_getGroupColCount:function(en){return parseInt(en.attr(Ct))},_applyLabelsWidthByCol:function(en,vn){var Ze=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},_t=Ze.inOneColumn?Pe:ye+vn,Wt=Ze.excludeTabbed?":not(.".concat(Ye,")"):"";di(en,".".concat(_t).concat(Wt))},_applyLabelsWidth:function(en,vn,Ze,bt,_t){bt=Ze?1:bt||this._getGroupColCount(en);var Ot,Wt={excludeTabbed:vn,inOneColumn:Ze};for(Ot=0;Ot<bt;Ot++)this._applyLabelsWidthByCol(en,Ot,Wt,_t)},_getGroupElementsInColumn:function(en,vn,Ze){var bt=(0,s.$K)(Ze)?"."+St+Ze:"";return en.find("."+ye+vn+" > ."+mt+" > ."+re+bt)},_applyLabelsWidthWithGroups:function(en,vn,Ze,bt){if(!0===this.option("alignRootItemLabels"))for(var _t=en.find(".".concat(ke)),Wt=0;Wt<vn;Wt++)this._applyLabelsWidthByCol(_t,Wt,Ze,bt);if(this.option("alignItemLabelsInAllGroups"))this._applyLabelsWidthWithNestedGroups(en,vn,Ze,bt);else{var mn,qt=this.$element().find("."+re);for(mn=0;mn<qt.length;mn++)this._applyLabelsWidth(qt.eq(mn),Ze,void 0,void 0,bt)}},_applyLabelsWidthWithNestedGroups:function(en,vn,Ze,bt){var Wt,Ot,qt,mn,_t={excludeTabbed:Ze};for(Wt=0;Wt<vn;Wt++)for(mn=this._getGroupElementsInColumn(en,Wt),this._applyLabelsWidthByCol(mn,0,_t,bt),Ot=0;Ot<this._groupsColCount.length;Ot++){mn=this._getGroupElementsInColumn(en,Wt,this._groupsColCount[Ot]);var Ke=this._getGroupColCount(mn);for(qt=1;qt<Ke;qt++)this._applyLabelsWidthByCol(mn,qt,_t,bt)}},_labelLocation:function(){return this.option("labelLocation")},_alignLabelsInColumn:function(en){var{layoutManager:vn,inOneColumn:Ze,$container:bt,excludeTabbed:_t,items:Wt}=en;if((0,E.Ym)()&&"top"!==this._labelLocation()){var Ot=Vn(vn._getMarkOptions());Ze?this._applyLabelsWidth(bt,_t,!0,void 0,Ot):this._checkGrouping(Wt)?this._applyLabelsWidthWithGroups(bt,vn._getColCount(),_t,Ot):this._applyLabelsWidth(bt,_t,!1,vn._getColCount(),Ot)}},_prepareFormData:function(){(0,s.$K)(this.option("formData"))||this.option("formData",{})},_setStylingModeClass:function(){"underlined"===this.option("stylingMode")&&this.$element().addClass("dx-form-styling-mode-underlined")},_initMarkup:function(){S.Z.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((0,E.Ym)()){var en=this.$element().get(0);fe.Z.unobserve(en),fe.Z.observe(en,()=>{this._resizeHandler()})}},_resizeHandler:function(){this._cachedLayoutManagers.length&&(0,u.S6)(this._cachedLayoutManagers,(en,vn)=>{var Ze;null===(Ze=vn.option("onLayoutChanged"))||void 0===Ze||Ze(vn.isSingleColumnMode())})},_getCurrentScreenFactor:function(){return(0,E.Ym)()?(0,E.Wf)(this.option("screenByWidth")):"lg"},_clearCachedInstances:function(){this._itemsRunTimeInfo.clear(),this._cachedLayoutManagers=[]},_alignLabels:function(en,vn){this._alignLabelsInColumn({$container:this.$element(),layoutManager:en,excludeTabbed:!0,items:this.option("items"),inOneColumn:vn}),(0,h.U_)(this.$element().find(".".concat(In.z)))},_clean:function(){this._clearValidationSummary(),this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],this._lastMarkupScreenFactor=void 0,fe.Z.unobserve(this.$element().get(0))},_renderScrollable:function(){var en=this.option("useNativeScrolling");this._scrollable=new T.Z(this.$element(),{useNative:!!en,useSimulatedScrollbar:!en,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent:function(){return this.option("scrollingEnabled")?(0,c.Z)(this._scrollable.content()):this.$element()},_clearValidationSummary:function(){var en;null===(en=this._$validationSummary)||void 0===en||en.remove(),this._$validationSummary=void 0,this._validationSummary=void 0},_renderValidationSummary:function(){this._clearValidationSummary(),this.option("showValidationSummary")&&(this._$validationSummary=(0,c.Z)("<div>").addClass("dx-form-validation-summary").appendTo(this._getContent()),this._validationSummary=this._$validationSummary.dxValidationSummary({validationGroup:this._getValidationGroup()}).dxValidationSummary("instance"))},_prepareItems(en,vn,Ze,bt){if(en){for(var _t=[],Wt=0;Wt<en.length;Wt++){var Ot=en[Wt],qt=V(Ze,N(Wt,bt)),mn={item:Ot,itemIndex:Wt,path:qt},Ke=this._itemsRunTimeInfo.add(mn);if((0,s.HD)(Ot)&&(Ot={dataField:Ot}),(0,s.Kn)(Ot)){var pt=(0,o.Z)({},Ot);mn.preparedItem=pt,pt.guid=Ke,this._tryPrepareGroupItem(pt),this._tryPrepareTabbedItem(pt,qt),this._tryPrepareItemTemplate(pt),vn&&(pt.cssItemClass=Ye),pt.items&&(pt.items=this._prepareItems(pt.items,vn,qt)),_t.push(pt)}else _t.push(Ot)}return _t}},_tryPrepareGroupItem:function(en){"group"===en.itemType&&(en.alignItemLabels=(0,a.IS)(en.alignItemLabels,!0),en._prepareGroupItemTemplate=vn=>{en.template&&(en.groupContentTemplate=this._getTemplate(vn)),en.template=this._itemGroupTemplate.bind(this,en)},en._prepareGroupItemTemplate(en.template))},_tryPrepareTabbedItem:function(en,vn){"tabbed"===en.itemType&&(en.template=this._itemTabbedTemplate.bind(this,en),en.tabs=this._prepareItems(en.tabs,!0,vn,!0))},_tryPrepareItemTemplate:function(en){en.template&&(en.template=this._getTemplate(en.template))},_checkGrouping:function(en){if(en)for(var vn=0;vn<en.length;vn++)if("group"===en[vn].itemType)return!0},_renderLayout:function(){var en=this,vn=en.option("items"),Ze=en._getContent();vn=en._prepareItems(vn),en._rootLayoutManager=en._renderLayoutManager(Ze,this._createLayoutManagerOptions(vn,{isRoot:!0,colCount:en.option("colCount"),alignItemLabels:en.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged:function(bt){en._alignLabels.bind(en)(en._rootLayoutManager,bt)},onContentReady:function(bt){en._alignLabels(bt.component,bt.component.isSingleColumnMode())}}))},_tryGetItemsForTemplate:function(en){return en.items||[]},_itemTabbedTemplate:function(en,vn,Ze){var bt=(0,c.Z)("<div>").appendTo(Ze),_t=(0,d.l)({},en.tabPanelOptions,{dataSource:en.tabs,onItemRendered:qt=>{var mn,Ke;null===(mn=en.tabPanelOptions)||void 0===mn||null===(Ke=mn.onItemRendered)||void 0===Ke||Ke.call(mn,qt),(0,h.Uo)(qt.itemElement)},itemTemplate:(qt,mn,Ke)=>{var pt=(0,c.Z)(Ke),an=(0,a.IS)(qt.alignItemLabels,!0),hn=this._renderLayoutManager(pt,this._createLayoutManagerOptions(this._tryGetItemsForTemplate(qt),{colCount:qt.colCount,alignItemLabels:an,screenByWidth:this.option("screenByWidth"),colCountByScreen:qt.colCountByScreen,cssItemClass:qt.cssItemClass,onLayoutChanged:sn=>{this._alignLabelsInColumn({$container:pt,layoutManager:hn,items:qt.items,inOneColumn:sn})}}));this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(qt.guid,{layoutManager:hn}),an&&this._alignLabelsInColumn({$container:pt,layoutManager:hn,items:qt.items,inOneColumn:hn.isSingleColumnMode()})}}),Wt=(qt,mn)=>{Array.isArray(qt)&&qt.forEach(Ke=>this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(Ke.guid,{widgetInstance:mn}))},Ot=this._createComponent(bt,w.Z,_t);(0,c.Z)(Ze).parent().addClass("dx-field-item-has-tabs"),Ot.on("optionChanged",qt=>{"dataSource"===qt.fullName&&Wt(qt.value,qt.component)}),Wt([{guid:en.guid},...en.tabs],Ot)},_itemGroupTemplate:function(en,vn,Ze){var _t,Wt,bt=(0,c.Z)("<div>").toggleClass("dx-form-group-with-caption",(0,s.$K)(en.caption)&&en.caption.length).addClass(re).appendTo(Ze);(0,c.Z)(Ze).parent().addClass("dx-field-item-has-group"),en.caption&&(0,c.Z)("<span>").addClass("dx-form-group-caption").text(en.caption).appendTo(bt);var Ot=(0,c.Z)("<div>").addClass("dx-form-group-content").appendTo(bt);en.groupContentTemplate?(en._renderGroupContentTemplate=()=>{Ot.empty();var qt={formData:this.option("formData"),component:this};en.groupContentTemplate.render({model:qt,container:(0,g.u)(Ot)})},en._renderGroupContentTemplate()):(Wt=this._renderLayoutManager(Ot,this._createLayoutManagerOptions(this._tryGetItemsForTemplate(en),{colCount:en.colCount,colCountByScreen:en.colCountByScreen,alignItemLabels:en.alignItemLabels,cssItemClass:en.cssItemClass})),this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(en.guid,{layoutManager:Wt}),_t=Wt._getColCount(),this._groupsColCount.includes(_t)||this._groupsColCount.push(_t),bt.addClass(St+_t),bt.attr(Ct,_t))},_createLayoutManagerOptions:function(en,vn){return function q(en){var{form:vn,$formElement:Ze,formOptions:bt,items:_t,validationGroup:Wt,extendedLayoutManagerOptions:Ot,onFieldDataChanged:qt,onContentReady:mn,onDisposing:Ke,onFieldItemRendered:pt}=en;return(0,d.l)({form:vn,items:_t,$formElement:Ze,validationGroup:Wt,onFieldDataChanged:qt,onContentReady:mn,onDisposing:Ke,onFieldItemRendered:pt,validationBoundary:bt.scrollingEnabled?Ze:void 0,scrollingEnabled:bt.scrollingEnabled,showRequiredMark:bt.showRequiredMark,showOptionalMark:bt.showOptionalMark,requiredMark:bt.requiredMark,optionalMark:bt.optionalMark,requiredMessage:bt.requiredMessage,screenByWidth:bt.screenByWidth,layoutData:bt.formData,labelLocation:bt.labelLocation,customizeItem:bt.customizeItem,minColWidth:bt.minColWidth,showColonAfterLabel:bt.showColonAfterLabel,onEditorEnterKey:bt.onEditorEnterKey,labelMode:bt.labelMode},{isRoot:Ot.isRoot,colCount:Ot.colCount,alignItemLabels:Ot.alignItemLabels,cssItemClass:Ot.cssItemClass,colCountByScreen:Ot.colCountByScreen,onLayoutChanged:Ot.onLayoutChanged,width:Ot.width})}({form:this,formOptions:this.option(),$formElement:this.$element(),items:en,validationGroup:this._getValidationGroup(),extendedLayoutManagerOptions:vn,onFieldDataChanged:Ze=>{this._isDataUpdating||this._triggerOnFieldDataChanged(Ze)},onContentReady:Ze=>{this._itemsRunTimeInfo.addItemsOrExtendFrom(Ze.component._itemsRunTimeInfo),vn.onContentReady&&vn.onContentReady(Ze)},onDisposing:Ze=>{var{component:bt}=Ze,_t=bt.getItemsRunTimeInfo();this._itemsRunTimeInfo.removeItemsByItems(_t)},onFieldItemRendered:()=>{var Ze;null===(Ze=this._validationSummary)||void 0===Ze||Ze.refreshValidationGroup()}})},_renderLayoutManager:function(en,vn){this._cachedColCountOptions.push({colCountByScreen:(0,d.l)({lg:vn.colCount,md:vn.colCount,sm:vn.colCount,xs:1},vn.colCountByScreen)});var bt=(0,c.Z)("<div>");bt.appendTo(en);var _t=this._createComponent(bt,"dxLayoutManager",vn);return _t.on("autoColCountChanged",()=>{this._clearAutoColCountChangedTimeout(),this.autoColCountChangedTimeoutId=setTimeout(()=>!this._disposed&&this._refresh(),0)}),this._cachedLayoutManagers.push(_t),_t},_getValidationGroup:function(){return this.option("validationGroup")||this},_createComponent:function(en,vn,Ze){return this._extendConfig(Ze=Ze||{},{readOnly:this.option("readOnly")}),this.callBase(en,vn,Ze)},_attachSyncSubscriptions:function(){var en=this;en.on("optionChanged",function(vn){var Ze=vn.fullName;"formData"===Ze&&((0,s.$K)(vn.value)||en._options.silent("formData",vn.value={}),en._triggerOnFieldDataChangedByDataSet(vn.value)),en._cachedLayoutManagers.length&&(0,u.S6)(en._cachedLayoutManagers,function(bt,_t){"formData"===Ze&&(en._isDataUpdating=!0,_t.option("layoutData",vn.value),en._isDataUpdating=!1),("readOnly"===vn.name||"disabled"===vn.name)&&_t.option(Ze,vn.value)})})},_optionChanged:function(en){var vn=en.fullName.split(".");vn.length>1&&-1!==vn[0].search("items")&&this._itemsOptionChangedHandler(en)||vn.length>1&&-1!==vn[0].search("formData")&&this._formDataOptionChangedHandler(en)||this._defaultOptionChangedHandler(en)},_defaultOptionChangedHandler:function(en){switch(en.name){case"formData":this.option("items")?(0,s.Qr)(en.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(en),this._rootLayoutManager.option(en.name,en.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"validationGroup":S.Z.removeGroup(en.previousValue||this),this._invalidate();break;default:this.callBase(en)}},_itemsOptionChangedHandler:function(en){var vn=en.fullName.split("."),Ze=en.value,bt=this._getItemPath(vn),_t=this.option(bt),Wt=en.fullName.replace(bt+".",""),Ot=Wt.split(".")[0].replace(/\[\d+]/,""),qt=this._tryCreateItemOptionAction(Ot,_t,_t[Ot],en.previousValue,bt),mn=this._tryExecuteItemOptionAction(qt)||this._tryChangeLayoutManagerItemOption(en.fullName,Ze);if(!mn&&_t){this._changeItemOption(_t,Wt,Ze);var Ke=this._generateItemsFromData(this.option("items"));this.option("items",Ke),mn=!0}return mn},_formDataOptionChangedHandler:function(en){var vn=en.fullName.split("."),Ze=en.value,bt=vn.slice(1).join("."),_t=this.getEditor(bt);return _t?_t.option("value",Ze):this._triggerOnFieldDataChanged({dataField:bt,value:Ze}),!0},_tryCreateItemOptionAction:function(en,vn,Ze,bt,_t){return"tabs"===en&&(this._itemsRunTimeInfo.removeItemsByPathStartWith("".concat(_t,".tabs")),Ze=this._prepareItems(Ze,!0,_t,!0)),((en,vn)=>{switch(en){case"editorOptions":case"buttonOptions":return new Z(vn);case"validationRules":return new De(vn);case"cssClass":return new Fe(vn);case"badge":case"disabled":case"icon":case"tabTemplate":case"title":return new X((0,d.l)(vn,{optionName:en}));case"tabs":return new ge(vn);case"template":var Ze,bt,_t,Wt=null!==(Ze=null==vn||null===(bt=vn.item)||void 0===bt?void 0:bt.itemType)&&void 0!==Ze?Ze:null===(_t=vn.itemsRunTimeInfo.findPreparedItemByItem(vn?.item))||void 0===_t?void 0:_t.itemType;return"simple"===Wt?new M(vn):"group"===Wt?new se(vn):new X((0,d.l)(vn,{optionName:en}));default:return null}})(en,{item:vn,value:Ze,previousValue:bt,itemsRunTimeInfo:this._itemsRunTimeInfo})},_tryExecuteItemOptionAction:function(en){return en&&en.tryExecute()},_updateValidationGroupAndSummaryIfNeeded:function(en){var Ze,vn=J(en);gi.indexOf(vn)>-1&&(S.Z.addGroup(this._getValidationGroup()),this.option("showValidationSummary"))&&(null===(Ze=this._validationSummary)||void 0===Ze||Ze.refreshValidationGroup())},_setLayoutManagerItemOption(en,vn,Ze,bt){if(this._updateLockCount>0){!en._updateLockCount&&en.beginUpdate();var _t=this._itemsRunTimeInfo.findKeyByPath(bt);this.postponedOperations.add(_t,()=>(!en._disposed&&en.endUpdate(),(new k.BH).resolve()))}var Wt=Ot=>{if(Ot.component.off("contentReady",Wt),ee(bt)){var qt=(en=>{for(var vn=en.split("."),Ze=[...vn],bt=vn.length-1;bt>=0;bt--){if(ee(vn[bt]))return Ze.join(".");Ze.splice(bt,1)}return""})(bt),mn=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(qt);mn&&this._alignLabelsInColumn({items:mn.option("items"),layoutManager:mn,$container:mn.$element(),inOneColumn:mn.isSingleColumnMode()})}else this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode())};en.on("contentReady",Wt),en.option(vn,Ze),this._updateValidationGroupAndSummaryIfNeeded(vn)},_tryChangeLayoutManagerItemOption(en,vn){var Ze=en.split("."),bt=J(en);if("items"===bt&&Ze.length>1){var _t=this._getItemPath(Ze),Wt=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(_t);if(Wt){this._itemsRunTimeInfo.removeItemsByItems(Wt.getItemsRunTimeInfo());var Ot=this._prepareItems(vn,!1,_t);return this._setLayoutManagerItemOption(Wt,bt,Ot,_t),!0}}else if(Ze.length>2){var qt=Ze.length-2,mn=this._getItemPath(Ze.slice(0,qt)),Ke=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(mn);if(Ke){var pt=Y(Ze[qt],bt);if("editorType"===bt&&Ke.option(pt)!==vn)return!1;if("visible"===bt){var an=this.option(Y(mn,"items"));if(an&&an.length){var hn=Ke.option("items");an.forEach((sn,Nn)=>{hn[Nn].visibleIndex=sn.visibleIndex})}}return this._setLayoutManagerItemOption(Ke,pt,vn,mn),!0}}return!1},_tryChangeLayoutManagerItemOptions(en,vn){var Ze;return this.beginUpdate(),(0,u.S6)(vn,(bt,_t)=>{if(!(Ze=this._tryChangeLayoutManagerItemOption(Y(en,bt),_t)))return!1}),this.endUpdate(),Ze},_getItemPath:function(en){var Ze,vn=en[0];for(Ze=1;Ze<en.length&&-1!==en[Ze].search(/items\[\d+]|tabs\[\d+]/);Ze++)vn+="."+en[Ze];return vn},_triggerOnFieldDataChanged:function(en){this._createActionByOption("onFieldDataChanged")(en)},_triggerOnFieldDataChangedByDataSet:function(en){var vn=this;en&&(0,s.Kn)(en)&&(0,u.S6)(en,function(Ze,bt){vn._triggerOnFieldDataChanged({dataField:Ze,value:bt})})},_updateFieldValue:function(en,vn){if((0,s.$K)(this.option("formData"))){var Ze=this.getEditor(en);this.option("formData."+en,vn),Ze&&Ze.option("value")!==vn&&Ze.option("value",vn)}},_generateItemsFromData:function(en){var vn=this.option("formData"),Ze=[];return!en&&(0,s.$K)(vn)&&(0,u.S6)(vn,function(bt){Ze.push({dataField:bt})}),en&&(0,u.S6)(en,function(bt,_t){(0,s.Kn)(_t)?Ze.push(_t):Ze.push({dataField:_t})}),Ze},_getItemByField:function(en,vn){var Ot,Ze=this,bt=(0,s.Kn)(en)?en:Ze._getFieldParts(en),_t=bt.fieldName,Wt=bt.fieldPath;return vn.length&&(0,u.S6)(vn,function(qt,mn){var Ke=mn.itemType;if(Wt.length){var pt=Wt.slice();mn=Ze._getItemByFieldPath(pt,_t,mn)}else if("group"===Ke&&!mn.caption&&!mn.name||"tabbed"===Ke&&!mn.name){var an=Ze._getSubItemField(Ke);mn.items=Ze._generateItemsFromData(mn.items),mn=Ze._getItemByField({fieldName:_t,fieldPath:Wt},mn[an])}if(((en,vn)=>!!en&&(en.dataField===vn||en.name===vn||U(en.title)===vn||"group"===en.itemType&&U(en.caption)===vn))(mn,_t))return Ot=mn,!1}),Ot},_getFieldParts:function(en){for(var vn=en,Ze=vn.indexOf("."),bt=[];-1!==Ze;)bt.push(vn.substr(0,Ze)),Ze=(vn=vn.substr(Ze+1)).indexOf(".");return{fieldName:vn,fieldPath:bt.reverse()}},_getItemByFieldPath:function(en,vn,Ze){var Ot,bt=Ze.itemType,_t=this._getSubItemField(bt),Wt="group"===bt||"tabbed"===bt||Ze.title;do{if(!Wt)break;var qt=Ze.name||Ze.caption||Ze.title,mn=(0,s.$K)(qt),Ke=U(qt),pt=void 0;if(Ze[_t]=this._generateItemsFromData(Ze[_t]),mn&&(pt=en.pop()),!en.length&&(Ot=this._getItemByField(vn,Ze[_t])))break;(!mn||mn&&Ke===pt)&&en.length&&(Ot=this._searchItemInEverySubItem(en,vn,Ze[_t]))}while(en.length&&!(0,s.$K)(Ot));return Ot},_getSubItemField:function(en){return"tabbed"===en?"tabs":"items"},_searchItemInEverySubItem:function(en,vn,Ze){var _t,bt=this;return(0,u.S6)(Ze,function(Wt,Ot){if(_t=bt._getItemByFieldPath(en.slice(),vn,Ot))return!1}),_t||(_t=!1),_t},_changeItemOption:function(en,vn,Ze){(0,s.Kn)(en)&&(en[vn]=Ze)},_dimensionChanged:function(){var en=this._getCurrentScreenFactor();this._lastMarkupScreenFactor!==en&&(this._isColCountChanged(this._lastMarkupScreenFactor,en)&&(this._targetScreenFactor=en,this._refresh(),this._targetScreenFactor=void 0),this._lastMarkupScreenFactor=en)},_isColCountChanged:function(en,vn){var Ze=!1;return(0,u.S6)(this._cachedColCountOptions,function(bt,_t){if(_t.colCountByScreen[en]!==_t.colCountByScreen[vn])return Ze=!0,!1}),Ze},_refresh:function(){var en="."+Zn+" input, ."+Zn+" textarea";I.Z.trigger(this.$element().find(en),"change"),this.callBase()},_resetValues:function(){this._itemsRunTimeInfo.each(function(en,vn){(0,s.$K)(vn.widgetInstance)&&y.Z.isEditor(vn.widgetInstance)&&(vn.widgetInstance.reset(),vn.widgetInstance.option("isValid",!0))}),S.Z.resetGroup(this._getValidationGroup())},_updateData:function(en,vn,Ze){var bt=this,_t=Ze?vn:en;(0,s.Kn)(_t)?(0,u.S6)(_t,function(Wt,Ot){bt._updateData(Ze?en+"."+Wt:Wt,Ot,(0,s.Kn)(Ot))}):(0,s.HD)(en)&&bt._updateFieldValue(en,vn)},registerKeyHandler:function(en,vn){this.callBase(en,vn),this._itemsRunTimeInfo.each(function(Ze,bt){(0,s.$K)(bt.widgetInstance)&&bt.widgetInstance.registerKeyHandler(en,vn)})},_focusTarget:function(){return this.$element().find("."+mt+" [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(),S.Z.removeGroup(this._getValidationGroup()),this.callBase()},resetValues:function(){this._resetValues()},updateData:function(en,vn){this._updateData(en,vn)},getEditor:function(en){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(en)||this._itemsRunTimeInfo.findWidgetInstanceByName(en)},getButton:function(en){return this._itemsRunTimeInfo.findWidgetInstanceByName(en)},updateDimensions:function(){var en=this,vn=new k.BH;return en._scrollable?en._scrollable.update().done(function(){vn.resolveWith(en)}):vn.resolveWith(en),vn.promise()},itemOption:function(en,vn,Ze){var bt=this._generateItemsFromData(this.option("items")),_t=this._getItemByField(en,bt),Wt=G(bt,_t);if(_t)switch(arguments.length){case 1:return _t;case 3:var Ot=this._tryCreateItemOptionAction(vn,_t,Ze,_t[vn],Wt);this._changeItemOption(_t,vn,Ze);var qt=Y(Wt,vn);!this._tryExecuteItemOptionAction(Ot)&&!this._tryChangeLayoutManagerItemOption(qt,Ze)&&this.option("items",bt);break;default:var mn;(0,s.Kn)(vn)&&!this._tryChangeLayoutManagerItemOptions(Wt,vn)&&((0,u.S6)(vn,(Ke,pt)=>{var an=this._tryCreateItemOptionAction(Ke,_t,pt,_t[Ke],Wt);this._changeItemOption(_t,Ke,pt),!mn&&!this._tryExecuteItemOptionAction(an)&&(mn=!0)}),mn&&this.option("items",bt))}},validate:function(){return S.Z.validateGroup(this._getValidationGroup())},getItemID:function(en){return"dx_"+this.option("formID")+"_"+(en||new f.Z)},getTargetScreenFactor:function(){return this._targetScreenFactor}});(0,C.Z)("dxForm",Ri);const cr=Ri},2127:(kn,he,l)=>{"use strict";l.d(he,{Y:()=>c});var o=l(2559),c=function(I,C,f,a,p){var s=C.getController("keyboardNavigation");C.option("useLegacyKeyboardNavigation")||s&&!s.isKeyboardEnabled()||(C.createAction("onKeyDown"),o.Y4(I,C,f,a,p,u=>{C.executeAction("onKeyDown",u)}))}},8395:(kn,he,l)=>{"use strict";l.d(he,{X:()=>ae});var o=l(1805),c=l(9904),I=l(913),C=l(8225),f=l(227),a=l(1828),p=l(6492),s=l(3390),u=l(7449),d=l(2879),h=l(2722),g=l(7674),x=l(2718),b=l(5873),y=l(4270),E=l(6520),S=l(9009),O="columnHeadersView",w="rowsView",k=[O,w,"footerView"],P="adaptiveHidden",B="detailAdaptive",W="dx-field-item-content",V="hidden-column",K="dx-command-adaptive",Y="dx-command-adaptive-hidden",J="dx-adaptive-detail-row",j="dx-adaptive-item-text",q="adaptive",X="row",De="dx-group-cell",Ae="dxDataGrid-ariaAdaptiveExpand",fe="scrolling.legacyMode";function _e(te,re){return te._columnsController.getColumnId(re)}function de(te,re){var oe,ye=(0,c.Z)(te),Pe=re.component.getController("adaptiveColumns");"data"===re.rowType?(oe=(0,c.Z)("<span>").addClass(Pe.addWidgetPrefix("adaptive-more")),I.Z.on(oe,(0,C.V4)(f.u,"dxDataGridAdaptivity"),Pe.createAction(function(){Pe.toggleExpandAdaptiveDetailRow(re.key)})),oe.appendTo(ye)):d.Z.setEmptyText(ye)}function le(te){var re,oe=null===(re=te.data)||void 0===re?void 0:re.$nextCell;I.Z.off(oe,"focus",le),I.Z.trigger(oe,"dxclick")}var ae={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:s.Z.ViewController.inherit({_isRowEditMode:function(){return this._getEditMode()===X},_isItemModified:function(te,re){var oe=this._columnsController.getVisibleIndex(te.column.index),ye=this._dataController.getRowIndexByKey(re.key),Pe=this._dataController.items()[ye+1];return Pe&&Pe.modifiedValues&&(0,a.$K)(Pe.modifiedValues[oe])},_renderFormViewTemplate:function(te,re,oe){var ye=this,Pe=te.column,Ne=ye.createAction(function(){ye._editingController.isEditing()&&I.Z.trigger(oe,f.u)}),ft=re.row.data,tt=Pe.calculateCellValue(ft),Be=d.Z.getDisplayValue(Pe,tt,ft,re.rowType),mt=d.Z.formatValue(Be,Pe),nn=this._editingController.isCellOrBatchEditMode(),ke=ye._rowsView;if(Pe.allowEditing&&ye.getController("keyboardNavigation").isKeyboardEnabled()&&(oe.attr("tabIndex",ye.option("tabIndex")),nn&&(I.Z.off(oe,"focus",Ne),I.Z.on(oe,"focus",Ne))),Pe.cellTemplate){var $e=(0,b.l)({},re,{value:tt,displayValue:Be,text:mt,column:Pe});ke.renderTemplate(oe,Pe.cellTemplate,$e,(0,E.al)(oe)).done(()=>{ke._cellPrepared(oe,re)})}else{var me=oe.get(0);Pe.encodeHtml?me.textContent=mt:me.innerHTML=mt,oe.addClass(j),(!(0,a.$K)(mt)||""===mt)&&oe.html("&nbsp;"),ye._isRowEditMode()||ye._isItemModified(te,re)&&oe.addClass("dx-item-modified"),ke._cellPrepared(oe,re)}},_getTemplate:function(te,re){var oe=this,ye=te.column,Pe=this.getController("editing");return function(Ne,ft){var tt=(0,c.Z)(ft),Be=oe._columnsController.getVisibleIndex(ye.index),mt=(0,b.l)({},re),nn=function(){var ke=oe._isItemEdited(te);mt.value=re.row.values[Be],ke||ye.showEditorAlways?Pe.renderFormEditTemplate(mt,te,Ne,tt,!ke):(mt.column=ye,mt.columnIndex=Be,oe._renderFormViewTemplate(te,mt,tt))};nn(),mt.watch&&mt.watch(function(){return{isItemEdited:oe._isItemEdited(te),value:re.row.values[Be]}},function(){tt.contents().remove(),tt.removeClass(j),nn()})}},_isVisibleColumnsValid:function(te){return!(te<2||te.length-function(){for(var re=0,oe=0;oe<te.length;oe++)te[oe].command&&re++;return re}()<=1)},_calculatePercentWidths:function(te,re){var oe=this,ye=0;return re.forEach(function(Pe,Ne){te[Ne]!==P&&(ye+=oe._getItemPercentWidth(Pe))}),ye},_isPercentWidth:function(te){return(0,a.HD)(te)&&"%"===te.slice(-1)},_isColumnHidden:function(te){return this._hiddenColumns.filter(function(re){return re.index===te.index}).length>0},_getAverageColumnsWidth:function(te,re,oe){var ye=this,Pe=0,Ne=0;return re.forEach(function(ft){if(!ye._isColumnHidden(ft)){var tt=ft.width;(0,a.$K)(tt)&&!isNaN(parseFloat(tt))?Pe+=ye._isPercentWidth(tt)?ye._calculatePercentWidth({visibleIndex:ft.visibleIndex,columnsCount:re.length,columnsCanFit:oe,bestFitWidth:ft.bestFitWidth,columnWidth:tt,containerWidth:te}):parseFloat(tt):Ne++}}),(te-Pe)/Ne},_calculateColumnWidth:function(te,re,oe,ye){var Be,Pe=_e(this,te),Ne=this._columnsController.columnOption(Pe,"width"),ft=this._columnsController.columnOption(Pe,"bestFitWidth"),tt=oe.length;if(Ne&&"auto"!==Ne){if(!this._isPercentWidth(Ne))return parseFloat(Ne);Be=this._calculatePercentWidth({visibleIndex:te.visibleIndex,columnsCount:tt,columnsCanFit:ye,bestFitWidth:ft,columnWidth:Ne,containerWidth:re})}else Be=this.option("columnAutoWidth")||te.command?ft:this._getAverageColumnsWidth(re,oe,ye);return Be},_calculatePercentWidth:function(te){var re=te.visibleIndex<te.columnsCount-1&&te.columnsCanFit,oe=te.containerWidth*parseFloat(te.columnWidth)/100,ye=te.columnsCanFit&&oe<te.bestFitWidth?te.bestFitWidth:oe;return re?te.containerWidth*parseFloat(te.columnWidth)/100:ye},_getNotTruncatedColumnWidth:function(te,re,oe,ye){var Pe=_e(this,te),Ne=this._columnsController.columnOption(Pe,"width"),ft=this._columnsController.columnOption(Pe,"bestFitWidth");if(Ne&&"auto"!==Ne&&!this._isPercentWidth(Ne))return parseFloat(Ne);var tt=this._calculateColumnWidth(te,re,oe,ye);return tt<ft?null:tt},_getItemPercentWidth:function(te){var re=0;return te.width&&this._isPercentWidth(te.width)&&(re=parseFloat(te.width)),re},_getCommandColumnsWidth:function(){var te=this,re=te._columnsController.getVisibleColumns(),oe=0;return(0,x.S6)(re,function(ye,Pe){(Pe.index<0||Pe.command)&&(oe+=te._columnsController.columnOption(_e(te,Pe),"bestFitWidth")||0)}),oe},_isItemEdited:function(te){if(this.isFormOrPopupEditMode())return!1;if(!this._isRowEditMode()){var oe=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,ye=this._columnsController.getVisibleIndex(te.column.index);return this._editingController.isEditCell(oe,ye)}var re=this.option("editing.editRowKey");return!!(0,g.bY)(re,this._dataController.adaptiveExpandedKey())||void 0},_getFormItemsByHiddenColumns:function(te){var re=[];return(0,x.S6)(te,function(oe,ye){re.push({column:ye,name:ye.name,dataField:ye.dataField,visibleIndex:ye.visibleIndex})}),re},_getAdaptiveColumnVisibleIndex:function(te){for(var re=0;re<te.length;re++)if(te[re].command===q)return re},_hideAdaptiveColumn:function(te,re){var oe=this._getAdaptiveColumnVisibleIndex(re);(0,a.$K)(oe)&&(te[oe]=P,this._hideVisibleColumn({isCommandColumn:!0,visibleIndex:oe}))},_showHiddenCellsInView:function(te){var{$cells:re,isCommandColumn:oe}=te,ye=this.addWidgetPrefix(V);oe?(ye=Y,re.attr({tabIndex:0,"aria-hidden":null}).removeClass(ye)):re.removeClass(ye)},_showHiddenColumns:function(){for(var te=0;te<k.length;te++){var re=this.getView(k[te]);if(re&&re.isVisible()&&re.element()){var oe=re.name,ye=re.element().find("."+Y);this._showHiddenCellsInView({viewName:oe,$cells:ye,isCommandColumn:!0});var Pe=re.element().find("."+this.addWidgetPrefix(V));this._showHiddenCellsInView({viewName:oe,$cells:Pe})}}},_isCellValid:function(te){return te&&te.length&&!te.hasClass("dx-master-detail-cell")&&!te.hasClass(De)},_hideVisibleColumn:function(te){var{isCommandColumn:re,visibleIndex:oe}=te,ye=this;k.forEach(function(Pe){var Ne=ye.getView(Pe);Ne&&ye._hideVisibleColumnInView({view:Ne,isCommandColumn:re,visibleIndex:oe})})},_hideVisibleColumnInView:function(te){var Ne,{view:re,isCommandColumn:oe,visibleIndex:ye}=te,Pe=re.name,ft=this._columnsController.getVisibleColumns()[ye],tt=this._editingController&&this._editingController.getEditFormRowIndex();if(re&&re.isVisible()&&ft)for(var Be=re.getRowsCount(),mt=re._getRowElements(),nn=0;nn<Be;nn++)if(nn!==tt||Pe!==w||"popup"===this.option("editing.mode")){var $e=Pe===O?this._columnsController.getVisibleIndex(ft.index,nn):ye;if($e>=0){var me=mt.eq(nn);Ne=this._findCellElementInRow(me,$e),this._isCellValid(Ne)&&this._hideVisibleCellInView({viewName:Pe,isCommandColumn:oe,$cell:Ne})}}},_findCellElementInRow(te,re){var oe=te.children(),ye=re,Pe=!1;if(te.hasClass("dx-group-row")){var Ne=te.find(".".concat(De)),ft=Ne.attr("colspan");if(Ne.length&&(0,a.$K)(ft)){var tt=parseInt(ft);re>Ne.index()+tt-1?ye=re-tt+1:Pe=!0}}return Pe?void 0:oe.eq(ye)},_hideVisibleCellInView:function(te){var{$cell:re,isCommandColumn:oe}=te,ye=oe?Y:this.addWidgetPrefix(V);re.attr({tabIndex:-1,"aria-hidden":!0}).addClass(ye)},_getEditMode:function(){return this._editingController.getEditMode()},isFormOrPopupEditMode:function(){var te=this._getEditMode();return"form"===te||"popup"===te},hideRedundantColumns:function(te,re,oe){if(this._hiddenColumns=[],this._isVisibleColumnsValid(re)&&oe.length){var mt,nn,ke,ye=0,Pe=this.component.$element(),Ne=(0,o.dz)(Pe)-this._getCommandColumnsWidth(),ft=function(){return re.filter(He=>!He.command&&0===this._hiddenColumns.filter(Dt=>Dt.index===He.index).length)}.bind(this),tt=ft(),Be=tt.length;do{ke=!1,ye=0;var $e=this._calculatePercentWidths(te,re),me=$e<100&&0!==$e;for(mt=0;mt<re.length;mt++){var xe=re[mt],Te=this._getNotTruncatedColumnWidth(xe,Ne,tt,me),Ye=_e(this,xe),St=this._columnsController.columnOption(Ye,"width"),Ct=this._columnsController.columnOption(Ye,"minWidth"),Rt=this._columnsController.columnOption(Ye,"bestFitWidth");if(te[mt]!==P){if(!Te&&!xe.command&&!xe.fixed){ke=!0;break}(!St||"auto"===St)&&(Te=Math.max(Rt||0,Ct||0)),(xe.command!==q||nn)&&(ye+=Te)}else nn=!0}if(ke=ke||ye>(0,o.dz)(Pe)){var fn=oe.pop(),ct=this._columnsController.getVisibleIndex(fn.index);Ne+=this._calculateColumnWidth(fn,Ne,tt,me),this._hideVisibleColumn({visibleIndex:ct}),te[ct]=P,this._hiddenColumns.push(fn),tt=ft()}}while(ke&&tt.length>1&&oe.length);Be===tt.length&&this._hideAdaptiveColumn(te,re)}else this._hideAdaptiveColumn(te,re)},getAdaptiveDetailItems:function(){return this._$itemContents},getItemContentByColumnIndex:function(te){for(var re,oe=0;oe<this._$itemContents.length;oe++){var ye=(re=this._$itemContents.eq(oe)).data("dx-form-item");if(ye&&ye.column&&this._columnsController.getVisibleIndex(ye.column.index)===te)return re}},toggleExpandAdaptiveDetailRow:function(te,re){this.isFormOrPopupEditMode()&&this._editingController.isEditing()||this.getController("data").toggleExpandAdaptiveDetailRow(te,re)},createFormByHiddenColumns:function(te,re){var oe=this,ye=(0,c.Z)(te),Pe={items:oe._getFormItemsByHiddenColumns(oe._hiddenColumns),formID:"dx-"+new p.Z},Ne=(0,h.x2)()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:Pe}),oe._$itemContents=null,oe._form=oe._createComponent((0,c.Z)("<div>").appendTo(ye),u.Z,(0,b.l)(Ne,Pe,{customizeItem:function(ft){var tt=ft.column||oe._columnsController.columnOption(ft.name||ft.dataField);tt&&(ft.label=ft.label||{},ft.label.text=ft.label.text||tt.caption,ft.column=tt,ft.template=oe._getTemplate(ft,re,oe.updateForm.bind(oe))),Pe.customizeItem&&Pe.customizeItem.call(this,ft)},onContentReady:function(ft){Pe.onContentReady&&Pe.onContentReady.call(this,ft),oe._$itemContents=ye.find("."+W)}}))},hasAdaptiveDetailRowExpanded:function(){return(0,a.$K)(this._dataController.adaptiveExpandedKey())},updateForm:function(te){this.hasAdaptiveDetailRowExpanded()&&this._form&&(0,a.$K)(this._form._contentReadyAction)&&(te&&te.length?this._form.option("items",this._getFormItemsByHiddenColumns(te)):this._form.repaint())},updateHidingQueue:function(te){var oe,ye,re=te.filter(function(Ne){return Ne.visible&&!Ne.type&&!Ne.fixed&&!((0,a.$K)(Ne.groupIndex)&&Ne.groupIndex>=0)});if(this._hidingColumnsQueue=[],this.option("allowColumnResizing")&&"widget"===this.option("columnResizingMode"))return this._hidingColumnsQueue;for(ye=0;ye<re.length;ye++)(0,a.$K)(re[ye].hidingPriority)&&re[ye].hidingPriority>=0&&(oe=!0,this._hidingColumnsQueue[re[ye].hidingPriority]=re[ye]);if(oe)this._hidingColumnsQueue.reverse();else if(this.option("columnHidingEnabled"))for(ye=0;ye<re.length;ye++){var Pe=this._columnsController.getVisibleIndex(re[ye].index);this._hidingColumnsQueue[Pe]=re[ye]}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 te=this;te._columnsController=te.getController("columns"),te._dataController=te.getController("data"),te._rowsView=te.getView("rowsView"),te._columnsController.addCommandColumn({type:q,command:q,visible:!0,adaptiveHidden:!0,cssClass:K,alignment:"center",width:"auto",cellTemplate:de,fixedPosition:"right"}),te._columnsController.columnsChanged.add(function(){var re=!!te.updateHidingQueue(te._columnsController.getColumns()).length;te._columnsController.columnOption("command:adaptive","adaptiveHidden",!re,!0)}),te._editingController=te.getController("editing"),te._hidingColumnsQueue=[],te._hiddenColumns=[],te.createAction("onAdaptiveDetailRowPreparing"),te.callBase()},optionChanged:function(te){"columnHidingEnabled"===te.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!te.value),this.callBase(te)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(te){return this._dataController.adaptiveExpandedKey()&&(0,g.bY)(this._dataController.adaptiveExpandedKey(),te)},expandAdaptiveDetailRow:function(te){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(te)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()},updateCommandAdaptiveAriaLabel:function(te,re){var oe=this._dataController.getRowIndexByKey(te);if(-1!==oe){var ye=(0,c.Z)(this.component.getRowElement(oe));this.setCommandAdaptiveAriaLabel(ye,re)}},setCommandAdaptiveAriaLabel:function(te,re){te.find(".dx-command-adaptive").attr("aria-label",S.Z.format(re))}})},extenders:{views:{rowsView:{_getCellTemplate:function(te){var re=this;return te.rowType===B&&"detail"===te.column.command?function(ye,Pe){re._adaptiveColumnsController.createFormByHiddenColumns((0,c.Z)(ye),Pe)}:re.callBase(te)},_createRow:function(te){var re=this.callBase.apply(this,arguments);return te&&te.rowType===B&&te.key===this._dataController.adaptiveExpandedKey()&&re.addClass(J),re},_renderCells:function(te,re){this.callBase(te,re);var oe=this._adaptiveColumnsController,ye=oe.getHidingColumnsQueue().length,Pe=oe.getHiddenColumns().length;ye&&!Pe&&function ie(te){return te.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}(te).last().addClass("dx-last-data-cell"),"data"===re.row.rowType&&oe.setCommandAdaptiveAriaLabel(te,Ae)},_getColumnIndexByElementCore:function(te){var re=te.closest("."+W);if(re.length&&re.closest(this.component.$element()).length){var oe=re.length?re.first().data("dx-form-item"):null;return oe&&oe.column&&this._columnsController.getVisibleIndex(oe.column.index)}return this.callBase(te)},_cellPrepared:function(te,re){this.callBase.apply(this,arguments),re.row.rowType!==B&&re.column.visibleWidth===P&&te.addClass(this.addWidgetPrefix(V))},getCell:function(te,re){var oe=this._dataController.items()[te?.rowIndex];if(oe?.rowType===B){var ye=this._adaptiveColumnsController.getAdaptiveDetailItems();return this.callBase(te,re,ye)}return this.callBase.apply(this,arguments)},_getCellElement:function(te,re){var oe=this._dataController.items()[te];return oe&&oe.rowType===B?this._adaptiveColumnsController.getItemContentByColumnIndex(re):this.callBase.apply(this,arguments)},getContextMenuItems:function(te){if(te.row&&"detailAdaptive"===te.row.rowType){var re=this.component.getView("columnHeadersView"),oe=(0,c.Z)(te.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return te.column=oe?oe.column:te.column,re.getContextMenuItems&&re.getContextMenuItems(te)}return this.callBase&&this.callBase(te)},isClickableElement:function(te){return!!this.callBase&&this.callBase(te)||!!te.closest("."+K).length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{export:{_updateColumnWidth:function(te,re){this.callBase(te,te.visibleWidth===P?te.bestFitWidth:re)}},columnsResizer:{_pointCreated:function(te,re,oe){var ye=this.callBase(te,re,oe),Pe=oe[te.columnIndex]||{},Ne=this._getNextColumnIndex(te.columnIndex);return ye||Pe.visibleWidth===P||Ne!==te.columnIndex+1&&(oe[Ne]||{}).command},_getNextColumnIndex:function(te){for(var re=this._columnsController.getVisibleColumns(),oe=this.callBase(te);re[oe]&&re[oe].visibleWidth===P;)oe++;return oe}},draggingHeader:{_pointCreated:function(te,re,oe,ye){return this.callBase(te,re,oe,ye)||(re[te.columnIndex-1]||{}).visibleWidth===P}},editing:{_isRowEditMode:function(){return this.getEditMode()===X},_getFormEditItemTemplate:function(te,re){return this.getEditMode()!==X&&"detailAdaptive"===te.rowType?(te.columnIndex=this._columnsController.getVisibleIndex(re.index),this.getColumnTemplate(te)):this.callBase(te,re)},_closeEditItem:function(te){var re=te.closest("."+W),oe=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,ye=re.length?re.first().data("dx-form-item"):null,Pe=ye&&ye.column&&this._columnsController.getVisibleIndex(ye.column.index);this.isEditCell(oe,Pe)||this.callBase(te)},_beforeUpdateItems:function(te,re){if(!this._adaptiveController.isFormOrPopupEditMode()&&this._adaptiveController.hasHiddenColumns()){var oe=this._dataController.items(),ye=oe[re],Pe=d.Z.getIndexByKey(this._dataController.adaptiveExpandedKey(),oe);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),Pe>=0&&te.push(Pe+1),te.push(re+1),this._dataController.adaptiveExpandedKey(ye.key)}},_afterInsertRow:function(te){this.callBase.apply(this,arguments),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(te,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 te=new y.BH;return this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()?(0,y.gx)(this.getController("validating").validate(!0)).done(re=>{re&&this._cancelEditAdaptiveDetailRow(),te.resolve()}):te.resolve(),te.promise()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(te){var re=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(te.key)&&re.push(te.rowType===B?te.rowIndex-1:te.rowIndex+1),re},_beforeCloseEditCellInBatchMode:function(te){var re=this._dataController._adaptiveExpandedKey;if(re){var oe=d.Z.getIndexByKey(re,this._dataController.items());oe>-1&&te.unshift(oe)}},editRow:function(te){this._adaptiveController.isFormOrPopupEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(te)},deleteRow:function(te){var re=this._dataController.getKeyByRowIndex(te);"batch"===this.getEditMode()&&this._adaptiveController.isAdaptiveDetailRowExpanded(re)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(te)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_correctColumnWidths:function(te,re){var oe=this._adaptiveColumnsController,ye=oe.getHiddenColumns(),Pe=oe.updateHidingQueue(this._columnsController.getColumns());oe.hideRedundantColumns(te,re,Pe);var Ne=oe.getHiddenColumns();return oe.hasAdaptiveDetailRowExpanded()&&ye.length!==Ne.length&&oe.updateForm(Ne),!Ne.length&&oe.collapseAdaptiveDetailRow(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(te){te&&this._adaptiveColumnsController._showHiddenColumns(),this.callBase(te)},_needStretch:function(){var te=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||te.getHidingColumnsQueue().length||te.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}},data:{_processItems:function(te,re){var oe=re.changeType;if(te=this.callBase.apply(this,arguments),"loadingAll"===oe||!(0,a.$K)(this._adaptiveExpandedKey))return te;var ye=d.Z.getIndexByKey(this._adaptiveExpandedKey,te),Pe=!1===this.option(fe);if(ye>=0){var Ne=te[ye];te.splice(ye+1,0,{visible:!0,rowType:B,key:Ne.key,data:Ne.data,node:Ne.node,modifiedValues:Ne.modifiedValues,isNewRow:Ne.isNewRow,values:Ne.values})}else"refresh"===oe&&(!Pe||!re.repaintChangesOnly)&&(this._adaptiveExpandedKey=void 0);return te},_getRowIndicesForExpand:function(te){var re=this.callBase.apply(this,arguments);if(this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(te)){var oe=re[re.length-1];re.push(oe+1)}return re},adaptiveExpandedKey:function(te){if(!(0,a.$K)(te))return this._adaptiveExpandedKey;this._adaptiveExpandedKey=te},toggleExpandAdaptiveDetailRow:function(te,re){var oe=d.Z.getIndexByKey(this._adaptiveExpandedKey,this._items),ye=d.Z.getIndexByKey(te,this._items);oe>=0&&oe===ye&&!re&&(te=void 0,ye=-1);var Pe=this._adaptiveExpandedKey;this._adaptiveExpandedKey=te,oe>=0&&oe++,ye>=0&&ye++;var Ne=this.getRowIndexDelta();this.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[oe-Ne,ye-Ne]});var ft=this.getController("adaptiveColumns");ft.updateCommandAdaptiveAriaLabel(te,"dxDataGrid-ariaAdaptiveCollapse"),ft.updateCommandAdaptiveAriaLabel(Pe,Ae)},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(te){return this.callBase(te)&&!te.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(te){return this.callBase.apply(this,arguments)&&!te.hasClass(this.addWidgetPrefix(V))&&!te.hasClass(Y)},_processNextCellInMasterDetail:function(te,re){this.callBase(te);var oe=this._editingController.isCellOrBatchEditMode();this._editingController.isEditing()&&te&&oe&&!this._isInsideEditForm(te)&&(I.Z.off(te,"focus",le),I.Z.on(te,"focus",{$nextCell:te},le),I.Z.trigger(re,"focus"))},_isCellElement:function(te){return this.callBase.apply(this,arguments)||te.hasClass(j)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}}},2116:(kn,he,l)=>{"use strict";l.d(he,{T:()=>j});var o=l(1805),c=l(9904),I=l(7674),C=l(3390),f=l(5004),a=l(9009),p=l(2722),s=l(7463),u=l(2941),d=l(8531),h=l(219),g=l(1828),x=l(5873),b=l(2718),E="column-chooser-button",S="notouch-action",R="column-chooser",P="dx-column-chooser-item",V=function(ee,G){var q=[],Z="select"===ee.option("columnChooser.mode");return G.length&&(0,b.S6)(G,function(X,M){var se={text:M.caption,cssClass:M.cssClass,allowHiding:M.allowHiding,expanded:!0,id:M.index,disabled:!1,disableCheckBox:!1===M.allowHiding,parentId:(0,g.$K)(M.ownerBand)?M.ownerBand:null};Z&&(se.selected=M.visible),q.push(se)}),q},j={defaultOptions:function(){return{columnChooser:{enabled:!1,allowSearch:!1,searchTimeout:500,mode:"dragAndDrop",width:250,height:260,title:a.Z.format("dxDataGrid-columnChooserTitle"),emptyPanelText:a.Z.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}},controllers:{columnChooser:C.Z.ViewController.inherit({renderShowColumnChooserButton:function(ee){var M,G=this,q=G.addWidgetPrefix(E),Z=G.option("columnChooser.enabled"),X=ee.find("."+q);Z?X.length?X.show():(M=(0,c.Z)("<div>").addClass(q).appendTo(ee),G._createComponent(M,h.Z,{icon:R,onClick:function(){G.getView("columnChooserView").showColumnChooser()},hint:G.option("columnChooser.title"),integrationOptions:{}})):X.hide()},getPosition:function(){var ee=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:ee&&ee.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}})},views:{columnChooserView:f.p.inherit({_resizeCore:I.ZT,_isWinDevice:function(){return!!u.Z.real().win},_updateList:function(ee){var G,q=this._popupContainer.$content(),Z="select"===this.option("columnChooser.mode"),X=this._columnChooserList,M=this._columnsController.getChooserColumns(Z);if(this._popupContainer.setAria({role:"dialog",label:a.Z.format("dxDataGrid-columnChooserTitle")}),Z&&X&&ee&&"selection"===ee.changeType){G=V(this,M);for(var se=0;se<G.length;se++){var ge=G[se].selected,De=G[se].id;De===ee.columnIndex&&(ge?X.selectItem(De,ge):X.unselectItem(De,ge))}}else(!Z||!X||"full"===ee)&&(this._popupContainer.$wrapper().toggleClass(this.addWidgetPrefix("column-chooser-mode-drag"),!Z).toggleClass(this.addWidgetPrefix("column-chooser-mode-select"),Z),G=V(this,M),this._renderTreeView(q,G))},_initializePopupContainer:function(){var ee=this,G=ee.element().addClass(ee.addWidgetPrefix("column-chooser")),q=ee.option("columnChooser"),Z=(0,p.Vk)(),X=(0,p.OD)(Z),M=(0,p.x2)(Z),se={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{text:q.title,toolbar:"top",location:X||M?"before":"center"}],position:ee.getController("columnChooser").getPosition(),width:q.width,height:q.height,rtlEnabled:ee.option("rtlEnabled"),onHidden:function(){ee._isWinDevice()&&(0,c.Z)("body").removeClass(ee.addWidgetPrefix(S))},container:q.container};X||M?(0,x.l)(se,{showCloseButton:!0}):se.toolbarItems[se.toolbarItems.length]={shortcut:"cancel"},(0,g.$K)(this._popupContainer)?this._popupContainer.option(se):(ee._popupContainer=ee._createComponent(G,d.Z,se),ee._popupContainer.on("optionChanged",function(ge){"visible"===ge.name&&ee.renderCompleted.fire()}))},_renderCore:function(ee){this._popupContainer&&this._updateList(ee)},_renderTreeView:function(ee,G){var q=this,Z=this.option("columnChooser"),X="select"===Z.mode,M={items:G,dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:Z.allowSearch,searchTimeout:Z.searchTimeout,onItemRendered:function(De){if(De.itemData.disableCheckBox){var Ae,Fe=(0,c.Z)(De.itemElement).closest(".dx-treeview-node");if(Fe.length&&(Ae=Fe.find(".dx-checkbox")).length){var ne=Ae.data("dxCheckBox");ne&&ne.option("disabled",!0)}}}},se=ee.find(".dx-scrollable").data("dxScrollable"),ge=se&&se.scrollTop();X&&!this._columnsController.isBandColumnsUsed()&&ee.addClass(this.addWidgetPrefix("column-chooser-plain")),M.onContentReady=function(De){(0,I.Su)(function(){if(ge){var Fe=(0,c.Z)(De.element).find(".dx-scrollable").data("dxScrollable");Fe&&Fe.scrollTo({y:ge})}q.renderCompleted.fire()})},this._isWinDevice()&&(M.useNativeScrolling=!1),(0,x.l)(M,X?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList?(M.searchEnabled||(M.searchValue=""),this._columnChooserList.option(M)):(this._columnChooserList=this._createComponent(ee,s.Z,M),ee.addClass(this.addWidgetPrefix("column-chooser-list")))},_prepareDragModeConfig:function(){return{noDataText:this.option("columnChooser").emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate:function(G,q,Z){(0,c.Z)(Z).text(G.text).parent().addClass(G.cssClass).addClass(P)}}},_prepareSelectModeConfig:function(){var ee=this;return{selectNodesRecursive:!1,showCheckBoxesMode:"normal",onItemSelectionChanged:function(G){1!==ee._columnsController.getVisibleColumns().filter(function(X){return!X.command}).length||G.itemData.selected?setTimeout(function(){ee._columnsController.columnOption(G.itemData.id,"visible",G.itemData.selected)},300):G.component.selectItem(G.itemElement)}}},_columnOptionChanged:function(ee){var G=ee.changeTypes,q=ee.optionNames,Z="select"===this.option("columnChooser.mode");if(this.callBase(ee),Z){var M=q.showInColumnChooser||q.caption||q.visible||G.columns&&q.all;q.visible&&1===q.length&&void 0!==ee.columnIndex?this.render(null,{changeType:"selection",columnIndex:ee.columnIndex}):M&&this.render(null,"full")}},optionChanged:function(ee){"columnChooser"===ee.name?(this._initializePopupContainer(),this.render(null,"full")):this.callBase(ee)},getColumnElements:function(){var G,ee=[],q="select"===this.option("columnChooser.mode"),Z=this._columnsController.getChooserColumns(q),X=this._popupContainer&&this._popupContainer.$content(),M=X&&X.find(".dx-treeview-node");return M&&Z.forEach(function(se){var ge=(G=M.filter("[data-item-id = '"+se.index+"']")).length?G.children("."+P).get(0):null;ee.push(ge)}),(0,c.Z)(ee)},getName:function(){return"columnChooser"},getColumns:function(){return this._columnsController.getChooserColumns()},allowDragging:function(ee,G){var q=ee&&ee.allowHiding&&("columnChooser"!==G||!ee.visible&&this._columnsController.isParentColumnVisible(ee.index));return this.isColumnChooserVisible()&&q},getBoundingRect:function(){var ee=this._popupContainer&&this._popupContainer.$overlayContent();if(ee&&ee.is(":visible")){var G=ee.offset();return{left:G.left,top:G.top,right:G.left+(0,o.Y_)(ee),bottom:G.top+(0,o.zp)(ee)}}return null},showColumnChooser:function(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&(0,c.Z)("body").addClass(this.addWidgetPrefix(S))},hideColumnChooser:function(){this._popupContainer&&this._popupContainer.hide()},isColumnChooserVisible:function(){var ee=this._popupContainer;return ee&&ee.option("visible")},publicMethods:function(){return["showColumnChooser","hideColumnChooser"]}})},extenders:{views:{headerPanel:{_getToolbarItems:function(){var ee=this.callBase();return this._appendColumnChooserItem(ee)},_appendColumnChooserItem:function(ee){var G=this;if(G.option("columnChooser.enabled")){var Z=G.option("columnChooser.title");ee.push({widget:"dxButton",options:{icon:R,onClick:function(){G.component.getView("columnChooserView").showColumnChooser()},hint:Z,text:Z,onInitialized:function(M){(0,c.Z)(M.element).addClass(G._getToolbarButtonClass(G.addWidgetPrefix(E)))},elementAttr:{"aria-haspopup":"dialog"}},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40})}return ee},optionChanged:function(ee){"columnChooser"===ee.name?(this._invalidate(),ee.handled=!0):this.callBase(ee)},isVisible:function(){var ee=this.option("columnChooser.enabled");return this.callBase()||ee}}},controllers:{columns:{allowMoveColumn:function(ee,G,q,Z){return!("select"===this.option("columnChooser.mode")&&"columnChooser"===Z)&&this.callBase(ee,G,q,Z)}}}}}},4047:(kn,he,l)=>{"use strict";l.d(he,{N:()=>ee});var o=l(1805),c=l(9904),I=l(913),C=l(1186),f=l(9009),a=l(2879),p=l(1828),s=l(5873),u=l(2718),d=l(4722),h=l(5450),g=l(6961),x=l(8487),b=l(4270),y="content",E="content-fixed",S="dx-master-detail-cell",O="dx-first-cell",w="dx-last-cell",T="dx-state-hover",k="dx-col-fixed",P="dx-pointer-events-none",B="transparent",W="dx-group-row",V=function(G){var q=-1;return(0,u.S6)(G,function(Z,X){if(X.command===B)return q=Z,!1}),q},U=function(G,q,Z){var X=0;if(G&&q&&Z)for(var M=0;M<G.length;M++)G[M].command===B?X+=G[M].colspan:(q[X]<Z[M]&&(q[X]=Z[M]),X++);return q},K={init:function(){this.callBase(),this._isFixedTableRendering=!1,this._isFixedColumns=!1},_createCol:function(G){return this.callBase(G).toggleClass(k,!(!this._isFixedTableRendering||!(G.fixed||G.command&&G.command!==B)))},_correctColumnIndicesForFixedColumns:function(G,q){var Z=V(G),X=G[Z].colspan,M=q&&q.columnIndices;M&&(q.columnIndices=M.map(function(se){if(se)return se.map(function(ge){return ge<Z?ge:ge>=Z+X?ge-X+1:-1}).filter(function(ge){return ge>=0})}))},_partialUpdateFixedTable(G){var q=this._fixedTableElement,Z=this._getRowElementsCore(q);q.children("colgroup").replaceWith(this._createColGroup(G));for(var M=0;M<Z.length;M++)this._partialUpdateFixedRow((0,c.Z)(Z[M]),G)},_partialUpdateFixedRow(G,q){var ge,Z=G.get(0).childNodes,X=V(q),M=q[X],De=this._columnsController.getColumnIndexOffset()+1,Fe=M.colspan;if(G.hasClass("dx-master-detail-row")){var Ae;Z[0].setAttribute("colspan",null===(Ae=this._columnsController.getVisibleColumns())||void 0===Ae?void 0:Ae.length)}else{G.hasClass(W)&&(Fe=(ge=this._getGroupCellOptions({row:G.data("options"),columns:this._columnsController.getVisibleColumns()})).colspan-Math.max(0,Z.length-(ge.columnIndex+2)));for(var ne=0;ne<Z.length;ne++){var fe=ge?ne===ge.columnIndex+1:ne===X;Z[ne].setAttribute("aria-colindex",De),fe?(Z[ne].setAttribute("colspan",Fe),De+=Fe):De++}}},_renderTable:function(G){var q,Z=this.getFixedColumns();this._isFixedColumns=!!Z.length;var X=this.callBase(G);if(this._isFixedColumns){var M=G?.change;if(this._isFixedTableRendering=!0,null!=M&&M.virtualColumnsScrolling&&!0!==this.option("scrolling.legacyMode"))this._partialUpdateFixedTable(Z),this._isFixedTableRendering=!1;else{var se=M?.columnIndices;this._correctColumnIndicesForFixedColumns(Z,M),q=this._createTable(Z),this._renderRows(q,(0,s.l)({},G,{columns:Z})),(0,b.gx)(this._updateContent(q,M)).done(()=>{this._isFixedTableRendering=!1}),se&&(M.columnIndices=se)}}else this._fixedTableElement&&this._fixedTableElement.parent().remove(),this._fixedTableElement=null;return X},_renderRow:function(G,q){var Z,X=q.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&X&&X.length){Z=0;var M=q.row.cells||[];X=X.slice(),q.row.cells=X;for(var se=0;se<M.length;se++)M[se].column&&M[se].column.command===B?Z=(M[se].column.colspan||1)-1:X[se+Z]=M[se]}},_createCell:function(G){var ge,De,Fe,q=this,Z=G.column,X=Z&&Z.command,M=G.rowType,se=q.callBase.apply(q,arguments);(q._isFixedTableRendering||"filter"===M)&&(De=(ge=q.getFixedColumns())[(Fe=V(ge))-1]),q._isFixedTableRendering?X===B&&(se.addClass(P).toggleClass(O,0===Fe||De&&"expand"===De.command).toggleClass(w,ge.length&&Fe===ge.length-1),"freeSpace"!==M&&a.Z.setEmptyText(se)):"filter"===M&&se.toggleClass(O,G.columnIndex===Fe);var Ae=q.option("rowAlternationEnabled")&&G.isAltRow,ne="multiple"===q.option("selection.mode")&&0===G.columnIndex&&"header"===G.rowType;return d.Z.mozilla&&G.column.fixed&&"group"!==G.rowType&&!Ae&&!ne&&se.addClass(k),se},_wrapTableInScrollContainer:function(){var G=this.callBase.apply(this,arguments);return this._isFixedTableRendering&&G.addClass(this.addWidgetPrefix(E)),G},_renderCellContent:function(G,q){var Z,X=q.column,M=this._isFixedTableRendering,se="group"===q.rowType&&(0,p.$K)(X.groupIndex);if(M&&se&&!X.command&&!X.groupCellTemplate&&G.css("pointerEvents","none"),!M&&this._isFixedColumns){if(Z=X.fixed||X.command&&!1!==X.fixed,se&&(Z=!1,q.row.summaryCells&&q.row.summaryCells.length)){var ge=this._columnsController.getVisibleColumns(),De=this._getAlignByColumnCellCount?this._getAlignByColumnCellCount(X.colspan,{columns:ge,row:q.row,isFixed:!0}):0;if(De>0){var Fe=V(this._columnsController.getFixedColumns());Z=ge.length-De<Fe}}if(Z){if(X.command&&"buttons"!==X.type||"group"===q.rowType)return void G.html("&nbsp;").addClass(X.cssClass);G.addClass("dx-hidden-cell")}}X.command!==B&&this.callBase.apply(this,arguments)},_getCellElementsCore:function(G){var q=this.callBase.apply(this,arguments),Z=q.parent().hasClass(W),X="columnHeadersView"===this.name?G:void 0;if(this._fixedTableElement&&q){var M=this.getFixedColumns(X),se=this._getRowElements(this._fixedTableElement).eq(G).children("td");(0,u.S6)(se,(ge,De)=>{if(Z)q[ge]&&"hidden"!==De.style.visibility&&(q[ge]=De);else{var Fe=M[ge];if(Fe)if(Fe.command===B)se.eq(ge).hasClass(S)&&(q[ge]=De||q[ge]);else{var Ae=this._columnsController.getVisibleIndexByColumn(Fe,X);q[Ae]=De||q[Ae]}}})}return q},getColumnWidths:function(){var G,q=this.callBase(),Z=this.getFixedColumns();return this._fixedTableElement&&q.length&&(G=this.callBase(this._fixedTableElement)),U(Z,q,G)},getTableElement:function(){return this._isFixedTableRendering?this._fixedTableElement:this.callBase()},setTableElement:function(G){this._isFixedTableRendering?this._fixedTableElement=G.addClass(P):this.callBase(G)},getColumns:function(G,q){return q=q||this.getTableElement(),this._isFixedTableRendering||q&&q.closest("table").parent("."+this.addWidgetPrefix(E)).length?this.getFixedColumns(G):this.callBase(G,q)},getRowIndex:function(G){var q=this._fixedTableElement;return q&&q.find(G).length?this._getRowElements(q).index(G):this.callBase(G)},getTableElements:function(){var G=this.callBase.apply(this,arguments);return this._fixedTableElement&&(G=(0,c.Z)([G.get(0),this._fixedTableElement.get(0)])),G},getFixedColumns:function(G){return this._columnsController.getFixedColumns(G)},getFixedColumnsOffset:function(){var q,G={left:0,right:0};if(this._fixedTableElement){var Z=(q=this.getTransparentColumnElement()).position();G={left:Z.left,right:(0,o.Y_)(this.element(),!0)-((0,o.Y_)(q,!0)+Z.left)}}return G},getTransparentColumnElement:function(){return this._fixedTableElement&&this._fixedTableElement.find("."+P).first()},getFixedTableElement:function(){return this._fixedTableElement},isFixedColumns:function(){return this._isFixedColumns},_resizeCore:function(){this.callBase(),this.synchronizeRows()},setColumnWidths:function(G){var q,Z=this._columnsController.getVisibleColumns(),X=G.widths,M=X&&X.length&&(0,p.$K)(Z[0].visibleWidth),se=G.optionNames,ge=se&&se.width;if(this.callBase.apply(this,arguments),this._fixedTableElement){var Fe=X&&X.some(function(Ae){return"auto"===Ae});Fe&&(!M||!this.isScrollbarVisible(!0))&&(q=Z),this.callBase((0,s.l)({},G,{$tableElement:this._fixedTableElement,columns:q,fixed:!0}))}(M||ge&&this.option("wordWrapEnabled"))&&this.synchronizeRows()},_createColGroup:function(G){if(this._isFixedTableRendering&&!this.option("columnAutoWidth")){var q=this._columnsController.getVisibleColumns();q.filter(function(X){return!X.width}).length&&(G=q)}return this.callBase(G)},_getClientHeight:function(G){var q=G.getBoundingClientRect&&(0,h.l)(G);return q&&q.height?q.height:G.clientHeight},synchronizeRows:function(){var Z,X,M,se,G=[],q=[];if(this._isFixedColumns&&this._tableElement&&this._fixedTableElement){var ge=this._getClientHeight(this._tableElement.get(0)),De=this._getClientHeight(this._fixedTableElement.get(0));if(X=this._getRowElements(this._tableElement),M=this._getRowElements(this._fixedTableElement),se=this._findContentElement(),ge!==De){for(se&&se.css("height",ge),X.css("height",""),M.css("height",""),Z=0;Z<X.length;Z++)G.push(this._getClientHeight(X.get(Z))),q.push(this._getClientHeight(M.get(Z)));for(Z=0;Z<X.length;Z++){var Fe=G[Z],Ae=q[Z];Fe>Ae?M.eq(Z).css("height",Fe):Fe<Ae&&X.eq(Z).css("height",Ae)}se&&se.css("height","")}}},setScrollerSpacing:function(G){var q=this.option("rtlEnabled");this.callBase(G),this.element().children("."+this.addWidgetPrefix(E)).css({paddingLeft:q?G:"",paddingRight:q?"":G})}},ee={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:f.Z.format("dxDataGrid-columnFixingFix"),unfix:f.Z.format("dxDataGrid-columnFixingUnfix"),leftPosition:f.Z.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:f.Z.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:(0,s.l)({},K,{_getRowVisibleColumns:function(G){return this._isFixedTableRendering?this.getFixedColumns(G):this.callBase(G)},getContextMenuItems:function(G){var q=G.column,Z=this.option("columnFixing"),X=this.callBase(G);if(G.row&&"header"===G.row.rowType&&!0===Z.enabled&&q&&q.allowFixing){var M=se=>{switch(se.itemData.value){case"none":this._columnsController.columnOption(q.index,"fixed",!1);break;case"left":this._columnsController.columnOption(q.index,{fixed:!0,fixedPosition:"left"});break;case"right":this._columnsController.columnOption(q.index,{fixed:!0,fixedPosition:"right"})}};(X=X||[]).push({text:Z.texts.fix,beginGroup:!0,items:[{text:Z.texts.leftPosition,value:"left",disabled:q.fixed&&(!q.fixedPosition||"left"===q.fixedPosition),onItemClick:M},{text:Z.texts.rightPosition,value:"right",disabled:q.fixed&&"right"===q.fixedPosition,onItemClick:M}]},{text:Z.texts.unfix,value:"none",disabled:!q.fixed,onItemClick:M})}return X},getFixedColumnElements:function(G){if((0,p.$K)(G))return this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(G).children();var q=this.getColumnElements(),Z=this.getTransparentColumnElement();if(q&&Z&&Z.length){var X=V(this.getFixedColumns());q.splice(X,Z.get(0).colSpan,Z.get(0))}return q},getColumnWidths:function(){var G,q=this.callBase(),Z=this.getFixedColumnElements(),X=this.getFixedColumns();return this._fixedTableElement&&(G=Z&&Z.length?this._getWidths(Z):this.callBase(this._fixedTableElement)),U(X,q,G)}}),rowsView:(0,s.l)({},K,{_detachHoverEvents:function(){this._fixedTableElement&&I.Z.off(this._fixedTableElement,"mouseover mouseout",".dx-data-row"),this._tableElement&&I.Z.off(this._tableElement,"mouseover mouseout",".dx-data-row")},_attachHoverEvents:function(){var G=this,q=function(Z){I.Z.on(Z,"mouseover mouseout",".dx-data-row",G.createAction(function(X){var M=X.event,se=G.getRowIndex((0,c.Z)(M.target).closest(".dx-row")),ge="mouseover"===M.type;se>=0&&(G._tableElement&&G._getRowElements(G._tableElement).eq(se).toggleClass(T,ge),G._fixedTableElement&&G._getRowElements(G._fixedTableElement).eq(se).toggleClass(T,ge))}))};G._fixedTableElement&&G._tableElement&&(q(G._fixedTableElement),q(G._tableElement))},_findContentElement:function(){var q,Z,G=this,X=G.addWidgetPrefix(y),M=G.element(),se=d.Z.mozilla?60:0;if(M&&G._isFixedTableRendering){q=M.children("."+X);var ge=G.getScrollable();return!q.length&&ge&&(q=(0,c.Z)("<div>").addClass(X),I.Z.on(q,"scroll",function(De){var Fe=De.target;clearTimeout(G._fixedScrollTimeout),G._fixedScrollTimeout=setTimeout(function(){Z=(0,c.Z)(Fe).scrollTop(),ge.scrollTo({y:Z})},se)}),I.Z.on(q,C.u,function(De){var Fe=(0,c.Z)(De.target).closest(".dx-scrollable"),Ae=!1;if(ge&&ge.$element().is(Fe))Ae=!0;else{var ne=Fe.length&&x.Z.getInstance(Fe.get(0)),fe=ne&&ne.scrollHeight()-ne.clientHeight()>0;Ae=ne&&!fe}if(Ae&&(Z=ge.scrollTop(),ge.scrollTo({y:Z-De.delta}),ge.scrollTop()>0&&ge.scrollTop()+ge.clientHeight()<ge.scrollHeight()+G.getScrollbarWidth()))return!1}),q.appendTo(M)),q}return G.callBase()},_updateScrollable:function(){this.callBase();var G=this.getScrollable();if(null==G||!G._disposed){var q=G&&G.scrollOffset().top;this._updateFixedTablePosition(q)}},_renderContent:function(G,q){return this._isFixedTableRendering?G.empty().addClass(this.addWidgetPrefix(y)+" "+this.addWidgetPrefix(E)).append(q):this.callBase(G,q)},_getGroupCellOptions:function(G){return this.callBase(this._isFixedTableRendering?(0,s.l)({},G,{columns:this._columnsController.getVisibleColumns()}):G)},_renderGroupedCells:function(G,q){return this.callBase(G,(0,s.l)({},q,{columns:this._columnsController.getVisibleColumns()}))},_renderGroupSummaryCells:function(G,q){this.callBase(G,this._isFixedTableRendering?(0,s.l)({},q,{columns:this._columnsController.getVisibleColumns()}):q)},_hasAlignByColumnSummaryItems:function(G,q){var Z=this.callBase.apply(this,arguments),X=q.columns[G];return q.isFixed?X.fixed&&(Z||"right"===X.fixedPosition):Z&&(!this._isFixedColumns||!X.fixed)},_renderGroupSummaryCellsCore:function(G,q,Z,X){var M;if(this._isFixedTableRendering){q.isFixed=!0,M=this._getAlignByColumnCellCount(Z,q),q.isFixed=!1;var se=q.columns.length-M;q=(0,s.l)({},q,{columns:this.getFixedColumns()});var ge=V(q.columns);se<ge?(M-=q.columns[ge].colspan-1||0,Z-=q.columns[ge].colspan-1||0):X>0&&G.css("visibility","hidden"),X=M}this.callBase(G,q,Z,X)},_getSummaryCellIndex:function(G,q){if(this._isFixedTableRendering){var Z=V(q);return G>Z&&(G+=q[Z].colspan-1),G}return this.callBase.apply(this,arguments)},_renderCore:function(G){this._detachHoverEvents();var q=this.callBase(G),Z=this._isFixedColumns;return this.element().toggleClass("dx-fixed-columns",Z),this.option("hoverStateEnabled")&&Z&&this._attachHoverEvents(),q},setRowsOpacity:function(G,q){this.callBase(G,q);var Z=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(Z,this.getFixedColumns(),G,q)},optionChanged:function(G){this.callBase(G),"hoverStateEnabled"===G.name&&this._isFixedColumns&&(G.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(G){var q=this._fixedTableElement,Z=0;if(q&&G.is("td")&&G.closest(q).length){var X=this.getFixedColumns();return(0,u.S6)(X,function(M,se){if(M===G[0].cellIndex)return!1;se.colspan?Z+=se.colspan:Z++}),Z}return this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(G,q){if(this._fixedTableElement&&this._tableElement){var Z,X=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(G),q&&X&&(Z=X.focus())&&X.focus(Z)}},setScrollerSpacing:function(G,q){var Z={marginBottom:0},X=this.element().children("."+this.addWidgetPrefix(E));X.length&&this._fixedTableElement&&(X.css(Z),this._fixedTableElement.css(Z),Z[this.option("rtlEnabled")?"marginLeft":"marginRight"]=G,Z.marginBottom=q,(this._scrollable&&this._scrollable.option("useNative")?X:this._fixedTableElement).css(Z))},_getElasticScrollTop:function(G){var q=0;if(G.scrollOffset.top<0)q=-G.scrollOffset.top;else if(G.reachedBottom){var Z=(0,c.Z)(G.component.content()),X=(0,c.Z)(G.component.container());q=Math.max(Z.get(0).clientHeight-X.get(0).clientHeight,0)-G.scrollOffset.top}return Math.floor(q)},_applyElasticScrolling:function(G){if(this._fixedTableElement){var q=this._getElasticScrollTop(G);0!==Math.ceil(q)?(0,g.pB)(this._fixedTableElement,{top:q}):this._fixedTableElement.css("transform","")}},_handleScroll:function(G){this._updateFixedTablePosition(G.scrollOffset.top,!0),this._applyElasticScrolling(G),this.callBase(G)},_updateContentPosition:function(G){this.callBase.apply(this,arguments),G||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(G){this._isFixedTableRendering||this.callBase(G)},_scrollToElement:function(G){this.callBase(G,this.getFixedColumnsOffset())},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),footerView:K},controllers:{draggingHeader:{_generatePointsByColumns:function(G){var M,se,ge,De,Fe,q=G.columns,Z=G.targetDraggingPanel;if(Z&&"headers"===Z.getName()&&Z.isFixedColumns()&&G.sourceColumn.fixed){G.rowIndex||(G.columnElements=Z.getFixedColumnElements(0)),G.columns=Z.getFixedColumns(G.rowIndex);var X=this.callBase(G);return M=q,ge=X,De=V(se=G.columns),Fe=M.length-se.length,(0,u.S6)(ge,function(Ae,ne){ne.index>De&&(ne.columnIndex+=Fe,ne.index+=Fe)}),X}return this.callBase(G)},_pointCreated:function(G,q,Z,X){var M=this.callBase.apply(this,arguments),se=q[G.columnIndex],ge=this._columnHeadersView.getTransparentColumnElement();if(!M&&"headers"===Z&&ge&&ge.length){var De=(0,h.l)(ge.get(0));return X&&X.fixed?"right"===X.fixedPosition?G.x<De.right:G.x>De.left:!(!se||!se.fixed||"right"===se.fixedPosition)||G.x<De.left||G.x>De.right}return M}},columnsResizer:{_generatePointsByColumns:function(){var G=this,q=G._columnsController,Z=q&&G._columnsController.getVisibleColumns(),X=q&&G._columnsController.getFixedColumns(),M=V(X),se=Z.length-X.length,ge=G._columnHeadersView.getFixedColumnElements();G.callBase(),ge&&ge.length>0&&(G._pointsByFixedColumns=a.Z.getPointsByColumns(ge,function(De){return De.index>M&&(De.columnIndex+=se,De.index+=se),G._pointCreated(De,Z.length,Z)}))},_getTargetPoint:function(G,q,Z){var X=this._columnHeadersView.getTransparentColumnElement();if(X&&X.length){var M=(0,h.l)(X.get(0));if(q<=M.left||q>=M.right)return this.callBase(this._pointsByFixedColumns,q,Z)}return this.callBase(G,q,Z)}}}}}},2496:(kn,he,l)=>{"use strict";l.d(he,{q:()=>V});var o=l(1805),c=l(9904),I=l(913),C=l(5004),f=l(9009),a=l(1828),p=l(2718),s=l(5873),u=l(2127),d="text-content",h="headers",g="nowrap",b="dx-header-row",y="dx-column-lines",T="dx-visibility-hidden",k="dx-text-content-alignment-",N="dx-header-multi-row",V={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:C.p.inherit(function(){var U=function(J,j,ee){var G=(0,c.Z)("<div>").addClass(J.addWidgetPrefix(d));J.setAria("role","presentation",G),K(J,j,ee.column,G);var q=J.option("showColumnLines"),Z=J.getController("columns").getHeaderContentAlignment(ee.column.alignment);return G[q||"right"===Z?"appendTo":"prependTo"](j)};function K(J,j,ee,G){var q=J._getIndicatorElements(j,!0),Z=J._getIndicatorElements(j),X=q&&q.length,M=J._getColumnAlignment(ee.alignment),se=".".concat(J._getIndicatorClassName("sort")),ge=".".concat(J._getIndicatorClassName("sortIndex")),De=Z.filter(se),Fe=Z.children().filter(ge);(G=G||j.children("."+J.addWidgetPrefix(d))).toggleClass(k+M,X>0).toggleClass(k+("left"===M?"right":"left"),X>0&&"center"===ee.alignment).toggleClass("dx-sort-indicator",!!De.length).toggleClass("dx-sort-index-indicator",!!Fe.length).toggleClass("dx-header-filter-indicator",!!Z.filter("."+J._getIndicatorClassName("headerFilter")).length)}var Y={_createTable:function(){var J=this.callBase.apply(this,arguments);return I.Z.on(J,"mousedown selectstart",this.createAction(function(j){var ee=j.event;ee.shiftKey&&ee.preventDefault()})),J},_isLegacyKeyboardNavigation(){return this.option("useLegacyKeyboardNavigation")},_getDefaultTemplate:function(J){var j=this;return function(ee,G){var q=J.command?ee:U(j,ee,G),Z="expand"!==J.command&&J.caption;Z?q.text(Z):J.command&&ee.html("&nbsp;")}},_getHeaderTemplate:function(J){return J.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(J)}},_processTemplate:function(J,j){var ee=this,q=j.column,Z=ee.callBase(J);return"header"===j.rowType&&Z&&q.headerCellTemplate&&!q.command?{render:function(X){var M=U(ee,X.container,X.model);Z.render((0,s.l)({},X,{container:M}))}}:Z},_handleDataChanged:function(J){"refresh"===J.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(J,j){var ee=this.callBase(J,j);return"header"===j.row.rowType&&(ee.addClass("dx-cell-focus-disabled"),this._isLegacyKeyboardNavigation()||j.column&&!j.column.type&&ee.attr("tabindex",this.option("tabindex")||0)),ee},_setCellAriaAttributes:function(J,j){this.callBase(J,j),"header"===j.rowType&&(this.setAria("role","columnheader",J),j.column&&!j.column.command&&!j.column.isBand&&(J.attr("id",j.column.headerId),this.setAria("label",f.Z.format("dxDataGrid-ariaColumn")+" "+j.column.caption,J)))},_createRow:function(J){var j=this.callBase.apply(this,arguments);return j.toggleClass(y,this.option("showColumnLines")),"header"===J.rowType&&(j.addClass(b),this._isLegacyKeyboardNavigation()||(0,u.Y)("columnHeaders",this,j,"td",this._handleActionKeyDown.bind(this))),j},_handleActionKeyDown:function(J){var j=J.event,ee=(0,c.Z)(j.target);if(this._lastActionElement=j.target,ee.is(".dx-header-filter")){var G=this.getController("headerFilter"),q=ee.closest("td"),Z=this.getColumnIndexByElement(q);Z>=0&&G.showHeaderFilterMenu(Z,!1)}else{var X=ee.closest(".dx-row");this._processHeaderAction(j,X)}j.preventDefault()},_renderCore:function(){var J=this,j=J.element(),ee={};if(!J._tableElement||J._dataController.isLoaded()||J._hasRowElements){j.addClass(J.addWidgetPrefix(h)).toggleClass(J.addWidgetPrefix(g),!J.option("wordWrapEnabled")).empty(),J.setAria("role","presentation",j);var G=J._updateContent(J._renderTable({change:ee}),ee);return J.getRowCount()>1&&j.addClass(N),J.callBase.apply(J,arguments),G}},_renderRows:function(){var J=this;(J._dataController.isLoaded()||J._hasRowElements)&&(J.callBase.apply(J,arguments),J._hasRowElements=!0)},_getRowVisibleColumns:function(J){return this._columnsController.getVisibleColumns(J)},_renderRow:function(J,j){j.columns=this._getRowVisibleColumns(j.row.rowIndex),this.callBase(J,j)},_createCell:function(J){var j=J.column,ee=this.callBase.apply(this,arguments);return j.rowspan>1&&"header"===J.rowType&&ee.attr("rowSpan",j.rowspan),ee},_getRows:function(){var J=[],j=this.getRowCount();if(this.option("showColumnHeaders"))for(var ee=0;ee<j;ee++)J.push({rowType:"header",rowIndex:ee});return J},_getCellTemplate:function(J){if("header"===J.rowType)return this._getHeaderTemplate(J.column)},_columnOptionChanged:function(J){var j=J.changeTypes,ee=J.optionNames;j.grouping||j.groupExpanding?j.grouping&&(this._isGroupingChanged=!0):(this.callBase(J),(ee.width||ee.visible)&&this.resizeCompleted.fire())},_isElementVisible:function(J){return J&&J.visible},_alignCaptionByCenter:function(J){var j=this._getIndicatorContainer(J,!0);j&&j.length&&(j.filter("."+T).remove(),(j=this._getIndicatorContainer(J)).clone().addClass(T).css("float","").insertBefore(J.children("."+this.addWidgetPrefix(d))))},_updateCell:function(J,j){"header"===j.rowType&&"center"===j.column.alignment&&this._alignCaptionByCenter(J),this.callBase.apply(this,arguments)},_updateIndicator:function(J,j,ee){var G=this.callBase.apply(this,arguments);return"center"===j.alignment&&this._alignCaptionByCenter(J),K(this,J,j),G},_getIndicatorContainer:function(J,j){var ee=this.callBase(J);return j?ee:ee.filter(":not(."+T+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var J=this.getTableElement(),j=J&&J.find("."+b);return j&&j.toArray().reduce(function(ee,G){return ee+(0,o.Cr)(G)},0)||0},getHeaderElement:function(J){var j=this.getColumnElements();return j&&j.eq(J)},getColumnElements:function(J,j){var G,ee=this,q=ee._columnsController,Z=ee.getRowCount();if(ee.option("showColumnHeaders")){if(Z>1&&(!(0,a.$K)(J)||(0,a.$K)(j))){var X=[],M=(0,a.$K)(j)?q.getChildrenByBandColumn(j,!0):q.getVisibleColumns();return(0,p.S6)(M,function(se,ge){var De=(0,a.$K)(J)?J:q.getRowIndex(ge.index);(G=ee._getCellElement(De,q.getVisibleIndex(ge.index,De)))&&X.push(G.get(0))}),(0,c.Z)(X)}if(!J||J<Z)return ee.getCellElements(J||0)}},getColumnIndexByElement:function(J){var j=this.getCellIndex(J),ee=J.closest(".dx-row"),q=this.getColumns(ee[0].rowIndex)[j];return q?q.index:-1},getVisibleColumnIndex:function(J,j){var ee=this.getColumns()[J];return ee?this._columnsController.getVisibleIndex(ee.index,j):-1},getColumnWidths:function(){var J=this.getColumnElements();return J&&J.length?this._getWidths(J):this.callBase.apply(this,arguments)},allowDragging:function(J,j,ee){var G,De,q=0,Z=J&&this._columnsController.getRowIndex(J.index),X=this.getColumns(0===Z?0:null),M=J?.allowHiding&&X.length>1;for(G=0;G<X.length;G++)((De=X[G]).allowReordering||De.allowGrouping||De.allowHiding)&&q++;if(q<=1&&!M)return!1;if(!ee)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&J&&J.allowReordering;for(G=0;G<ee.length;G++){var ge=ee[G];if(ge&&ge.allowDragging(J,j))return!0}return!1},getBoundingRect:function(){var J=this.getColumnElements();return J&&J.length?{top:this.getTableElement().offset().top}:null},getName:function(){return"headers"},getColumnCount:function(){var J=this.getColumnElements();return J?J.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(J){switch(J.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":this._invalidate(!0,!0),J.handled=!0;break;default:this.callBase(J)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(J){var j=this,ee=J.column;if(J.row&&("header"===J.row.rowType||"detailAdaptive"===J.row.rowType)){var G=j.option("sorting");if(G&&"none"!==G.mode&&ee&&ee.allowSorting){var q=function(Z){setTimeout(function(){j._columnsController.changeSortOrder(ee.index,Z.itemData.value)})};return[{text:G.ascendingText,value:"asc",disabled:"asc"===ee.sortOrder,icon:"context-menu-sort-asc",onItemClick:q},{text:G.descendingText,value:"desc",disabled:"desc"===ee.sortOrder,icon:"context-menu-sort-desc",onItemClick:q},{text:G.clearText,value:"none",disabled:!ee.sortOrder,icon:"context-menu-sort-none",onItemClick:q}]}}},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(J,j,ee){var q,Z,G=this,X=G.getRowCount(),M=G._columnsController.getColumns(),se=M&&M[J],ge=se&&se.isBand&&se.index,De=function(Fe,Ae){Ae.ownerBand===ge&&(Z.eq(Fe).css({opacity:j}),Ae.isBand&&G.setRowsOpacity(Ae.index,j,q+1))};if((0,a.$K)(ge))for(q=ee=ee||0;q<X;q++)Z=G.getCellElements(q),(0,p.S6)(G.getColumns(q),De)}};return Y}())}}},4964:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>p});var o=l(9904),c=l(7674),I=l(5873),C=l(5450),f="dx-column-indicators";const p={_applyColumnState:function(s){var u,d=this.option("rtlEnabled"),h=this._getColumnAlignment(s.column.alignment,d),g=(0,I.l)(!0,{columnAlignment:h},s),x=g.rootElement.hasClass("dx-group-panel-item"),b=this._createIndicatorContainer(g,x),y=(0,o.Z)("<span>").addClass(this._getIndicatorClassName(s.name)),S=(null===(u=this.component)||void 0===u?void 0:u.getController("columns"))?.getHeaderContentAlignment(h)||h;return g.container=b,g.indicator=y,this._renderIndicator(g),b[!x&&s.showColumnLines||"left"!==S?"prependTo":"appendTo"](s.rootElement),y},_getIndicatorClassName:c.ZT,_getColumnAlignment:function(s,u){return u=u||this.option("rtlEnabled"),s&&"center"!==s?s:(0,C.q)(u)},_createIndicatorContainer:function(s,u){var d=this._getIndicatorContainer(s.rootElement),h="left"===s.columnAlignment?"right":"left";return d.length||(d=(0,o.Z)("<div>").addClass(f)),this.setAria("role","presentation",d),d.css("float",s.showColumnLines&&!u?h:null)},_getIndicatorContainer:function(s){return s&&s.find("."+f)},_getIndicatorElements:function(s){var u=this._getIndicatorContainer(s);return u&&u.children()},_renderIndicator:function(s){var u=s.container,d=s.indicator;u&&d&&u.append(d)},_updateIndicators:function(s){var h,u=this.getColumns(),d=this.getColumnElements();if(d&&u.length===d.length)for(var g=0;g<u.length;g++){h=d.eq(g),this._updateIndicator(h,u[g],s);var x=h.parent().data("options");x&&x.cells&&(x.cells[h.index()].column=u[g])}},_updateIndicator:function(s,u,d){if(!u.command)return this._applyColumnState({name:d,rootElement:s,column:u,showColumnLines:this.option("showColumnLines")})}}},980:(kn,he,l)=>{"use strict";l.d(he,{W:()=>q});var o=l(4817),c=l(9904),I=l(5365),C=l(9963),f=l(6738),a=l(1828),p=l(2718),s=l(5450),u=l(5873),d=l(9960),h=l(7572),g=l(2834),x=l(8159),b=l(3390),y=l(2879),E=l(7981),S=l(8492),O=l(658),w=l(8119),T=l(9009),k=l(4270),R=l(1937),P=l(7122),B=l(5981),W=l(7674),N=l(2135),V=["filterValues","filterType","fixed","fixedPosition"],U=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","added"].concat(V),K={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},J=Number.MAX_SAFE_INTEGER||9007199254740991,j="groupExpand",ee=/columns\[(\d+)\]\.?/gi,G=1,q={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:T.Z.format("dxDataGrid-trueText"),falseText:T.Z.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:b.Z.Controller.inherit(function(){var Z={visible:!0,showInColumnChooser:!0},X={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},M={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},se=function(He){He.filterOperations=He.defaultFilterOperations},ge=function(He,Dt,qe,Ht){var dt={};if(Dt){(0,a.HD)(Dt)&&(Dt={dataField:Dt}),He.setName(Dt);var ht={};if(Dt.command)ht=(0,g.HR)(dt,Dt);else{dt=He.getCommonSettings(Dt),qe&&qe.name&&qe.dataField&&(Dt=(0,u.l)({},Dt,{dataField:qe.dataField}));var yt=He._createCalculatedColumnOptions(Dt,Ht);Dt.type||(ht={headerId:"dx-col-".concat(G++)}),ht=(0,g.HR)(ht,Z),(0,g.HR)(ht,dt),(0,g.HR)(ht,yt),(0,g.HR)(ht,Dt),(0,g.HR)(ht,{selector:null})}return Dt.filterOperations===Dt.defaultFilterOperations&&se(ht),ht}},De=function He(Dt,qe,Ht){var dt=[];return qe&&(0,p.S6)(qe,function(ht,yt){var Ft=Dt._columnsUserState&&re(yt,Dt._columnsUserState[ht])&&Dt._columnsUserState[ht],bn=ge(Dt,yt,Ft,Ht);bn&&(Ht&&(bn.ownerBand=Ht),dt.push(bn),bn.columns&&(dt=dt.concat(He(Dt,bn.columns,bn)),delete bn.columns,bn.hasColumns=!0))}),dt},Fe=function(He,Dt){for(var qe=[],Ht=Dt[He];Ht;)qe.unshift(Ht),Ht=Dt[He=Ht.index];return qe},Ae=function(He,Dt,qe){var Ht=[],dt=Dt[He];if(dt)for(var ht=0;ht<dt.length;ht++){var yt=dt[ht];(!(0,a.$K)(yt.groupIndex)||yt.showWhenGrouped)&&(Ht.push(yt),qe&&yt.isBand&&(Ht=Ht.concat(Ae(yt.index,Dt,qe))))}return Ht},ne=function(He,Dt){var Ht,qe=[],dt=He.getBandColumnsCache(),ht=function(Ft){return Ft.ownerBand===Dt.ownerBand};if(dt.isPlain){var yt=He._columns.indexOf(Dt);yt>=0&&(qe=["columns[".concat(yt,"]")])}else for(Ht=He._columns.filter(ht);Ht.length&&-1!==Ht.indexOf(Dt);)qe.unshift("columns[".concat(Ht.indexOf(Dt),"]")),Ht=(Dt=dt.columnParentByIndex[Dt.index])?He._columns.filter(ht):[];return qe.join(".")},fe=function He(Dt,qe){var Ht=0,dt=Dt.getChildrenByBandColumn(qe,!0);return(0,p.S6)(dt,function(ht,yt){yt.isBand?(yt.colspan=yt.colspan||He(Dt,yt.index),Ht+=yt.colspan||1):Ht+=1}),Ht},_e=function(He){var Dt=(0,a.dt)(He);return"string"!==Dt&&"boolean"!==Dt&&"number"!==Dt&&"date"!==Dt&&"object"!==Dt&&(Dt=void 0),Dt},ie=function(He,Dt){switch(He){case"date":case"datetime":return S.Z.getDateSerializationFormat(Dt);case"number":if((0,a.HD)(Dt))return"string";if((0,a.kE)(Dt))return null}},de=function(He,Dt){He.deserializeValue||(y.Z.isDateType(Dt)&&(He.deserializeValue=function(qe){return S.Z.deserializeDate(qe)},He.serializeValue=function(qe){return(0,a.HD)(qe)?qe:S.Z.serializeDate(qe,this.serializationFormat)}),"number"===Dt&&(He.deserializeValue=function(qe){var Ht=parseFloat(qe);return isNaN(Ht)?qe:Ht},He.serializeValue=function(qe,Ht){return"filter"===Ht?qe:(0,a.$K)(qe)&&"string"===this.serializationFormat?qe.toString():qe}))},le=function(He){return!0===He.value?this.trueText||"true":!1===He.value?this.falseText||"false":He.valueText||""},pe=function(He){if("boolean"===He)return le},Ee=function(He){(0,p.S6)(He._columns,function(Dt,qe){qe.index=Dt}),(0,p.S6)(He._columns,function(Dt,qe){(0,a.Kn)(qe.ownerBand)&&(qe.ownerBand=qe.ownerBand.index)}),(0,p.S6)(He._commandColumns,function(Dt,qe){qe.index=-(Dt+1)})},ae=function(He,Dt){(0,d.Sq)(He._columns,"groupIndex",Dt,function(qe){var Ht=qe.grouped;return delete qe.grouped,Ht})},te=function(He,Dt,qe){var ht,Ht=(0,a.Kn)(Dt)?Dt.rowIndex:null,dt="group"===qe?He.getGroupColumns():"columnChooser"===qe?He.getChooserColumns():He.getVisibleColumns(Ht);return Dt=(0,a.Kn)(Dt)?Dt.columnIndex:Dt,(ht=dt[Dt])&&ht.type===j&&(ht=He._columns.filter(yt=>ht.type===yt.type)[0]||ht),ht&&(0,a.$K)(ht.index)?ht.index:-1};function re(He,Dt){return He&&Dt&&Dt.name===(He.name||He.dataField)&&(Dt.dataField===He.dataField||He.name)}var oe=function(He){var bn,_n,xn,Dt=He._columnsUserState,qe=He._ignoreColumnOptionNames||[],Ht=He._columns,dt={},ht=[],yt=!0,Ft=[];function Jn(Oi,Hn){if(Hn)for(var Sn=0;Sn<U.length;Sn++){var An=U[Sn];qe.includes(An)||("dataType"===An?Oi[An]=Oi[An]||Hn[An]:V.includes(An)?An in Hn&&(Oi[An]=Hn[An]):("selectedFilterOperation"===An&&Hn[An]&&(Oi.defaultSelectedFilterOperation=Oi[An]||null),Oi[An]=Hn[An]))}}function li(Oi,Hn){for(var Sn=Hn.name||Hn.dataField,An=dt[Sn]||0,ti=0;ti<Oi.length;ti++)if(re(Hn,Oi[ti])){if(!An)return dt[Sn]=dt[Sn]||0,dt[Sn]++,ti;An--}return-1}if(Dt){for(xn=0;xn<Ht.length;xn++)_n=li(Dt,Ht[xn]),yt=yt&&_n>=0,Ft.push(_n);for(xn=0;xn<Ht.length;xn++)bn=Ht[xn],_n=Ft[xn],(He._hasUserState||yt)&&Jn(bn,Dt[_n]),_n>=0&&(0,a.$K)(Dt[_n].initialIndex)?ht[_n]=bn:ht.push(bn);var Ai=!1;for(xn=0;xn<Dt.length;xn++){var Vn=Dt[xn];Vn.added&&li(Ht,Vn)<0&&(Jn(bn=ge(He,Vn.added),Vn),ht.push(bn),Vn.added.columns&&(Ai=!0))}Ai&&(Ee(He),ht=De(He,ht)),Ne(He,ht)}},ye=function(He,Dt){var qe,Ht;Ee(He),ae(He,Dt),Ht=Dt,(0,p.S6)((qe=He)._columns,function(dt,ht){(0,a.$K)(ht.sortIndex)&&!ke(ht.sortOrder)&&delete ht.sortIndex}),(0,d.Sq)(qe._columns,"sortIndex",Ht,function(dt){return!(0,a.$K)(dt.groupIndex)&&ke(dt.sortOrder)}),Rt(He),function(qe,Ht){for(var dt,ht=[],yt=qe.getBandColumnsCache(),Ft=[],bn=qe._columns.filter(Jn=>!Jn.command),_n=0;_n<bn.length;_n++)dt=bn[_n],Fe(_n,yt.columnParentByIndex).length?Ft.push(dt):ht.push(dt);(0,d.Sq)(Ft,"visibleIndex",Ht),(0,d.Sq)(ht,"visibleIndex",Ht)}(He,Dt)},Pe=function(He){He.resetColumnsCache()};function Ne(He,Dt){He._previousColumns=He._columns,He._columns=Dt,Pe(He),He.updateColumnDataTypes()}var ft=function(He,Dt,qe,Ht){var dt=He._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:Ht};qe=(qe=qe||"all").split(".")[0];var ht=dt.changeTypes;Dt&&!ht[Dt]&&(ht[Dt]=!0,ht.length++);var yt=dt.optionNames;qe&&!yt[qe]&&(yt[qe]=!0,yt.length++),(void 0===Ht||Ht!==dt.columnIndex)&&delete dt.columnIndex,He._columnChanges=dt,Pe(He)},tt=function(He){var dt,Dt=He.option("onColumnsChanging"),qe=He._columnChanges;He.isInitialized()&&!He._updateLockCount&&qe&&(Dt&&(He._updateLockCount++,Dt((0,u.l)({component:He.component},qe)),He._updateLockCount--),He._columnChanges=void 0,(dt=qe.optionNames)&&["dataField","lookup","dataType","columns"].some(ht=>dt[ht])?(He._reinitAfterLookupChanges=qe?.optionNames.lookup,He.reinit(),He._reinitAfterLookupChanges=void 0):He.columnsChanged.fire(qe))},Be=function(He,Dt,qe,Ht){if(qe>=0)Ht>=0||(Dt.lastSortOrder=Dt.sortOrder);else{var ht=He.option("sorting.mode"),yt=Dt.lastSortOrder;"single"===ht&&He._columns.some(bn=>bn!==Dt&&(0,a.$K)(bn.sortIndex))&&(yt=void 0),Dt.sortOrder=yt}},mt=function(He,Dt){var qe=Dt.value,Ht=Dt.optionName,dt=Dt.prevValue,yt="".concat(Dt.fullOptionName,".").concat(Ht);!K[Ht]&&He._skipProcessingColumnsChange!==yt&&(He._skipProcessingColumnsChange=yt,He.component._notifyOptionChanged(yt,qe,dt),He._skipProcessingColumnsChange=!1)},nn=function(He,Dt,qe,Ht,dt){var Ft,bn,_n,ht=(0,f.vb)(qe),yt=Dt.index;if(3===arguments.length)return ht(Dt,{functionsAsIs:!0});var xn=ht(Dt,{functionsAsIs:!0});if(!(0,W.bY)(xn,Ht)){"groupIndex"===qe||"calculateGroupValue"===qe?(bn="grouping",Be(He,Dt,Ht,xn)):bn="sortIndex"===qe||"sortOrder"===qe||"calculateSortValue"===qe?"sorting":"columns";var Jn=(0,f.OM)(qe);Jn(Dt,Ht,{functionsAsIs:!0});var li=ne(He,Dt);M[qe]&&(ye(He,Dt),Ht=ht(Dt)),("name"===qe||"allowEditing"===qe)&&He._checkColumns(),!(0,a.$K)(xn)&&!(0,a.$K)(Ht)&&0!==qe.indexOf("buffer")&&(dt=!0),dt?Pe(He):(!U.includes(qe)&&"visibleWidth"!==qe&&(Ft=He.option("columns"),_n=He.getColumnByPath(li,Ft),(0,a.HD)(_n)&&(_n=Ft[yt]={dataField:_n}),_n&&re(_n,Dt)&&Jn(_n,Ht,{functionsAsIs:!0})),ft(He,bn,qe,yt)),li&&mt(He,{fullOptionName:li,optionName:qe,value:Ht,prevValue:xn})}};function ke(He){return"asc"===He||"desc"===He}var $e=function(He,Dt){if(this.dataField){var qe=this.dataField.split("."),Ht=qe.length-1;this.serializeValue&&(Dt=this.serializeValue(Dt));for(var dt=0;dt<Ht;dt++){var ht=qe[dt];He=He[ht]=He[ht]||{}}He[qe[Ht]]=Dt}},me=(He,Dt)=>!!He._columns.filter(qe=>qe.type===Dt.type).length,xe=function(He,Dt){var qe=He.option("rtlEnabled");return Dt.command&&!me(He,Dt)||!Dt.fixedPosition?qe?"right":"left":Dt.fixedPosition},Te=function(He,Dt,qe,Ht){var dt,ht=this.getRowCount(),yt=He[Ht]&&He[Ht].rowspan,Ft=Dt.filter(bn=>bn.type===qe);return He.forEach((bn,_n)=>{bn.type===qe&&(dt=_n,yt=He[_n+1]?He[_n+1].rowspan:ht)}),yt>1&&(Ft=(0,p.UI)(Ft,function(bn){return(0,u.l)({},bn,{rowspan:yt})})),Ft.unshift.apply(Ft,(0,a.$K)(dt)?[dt,1]:[Ht,0]),He.splice.apply(He,Ft),yt||1},Ye=function(He,Dt){for(var qe=He?He.toString():"0";qe.length<Dt;)qe="0"+qe;return qe},St=(He,Dt,qe,Ht)=>{for(var dt,ht,yt=Dt.slice().map(Ai=>(0,u.l)({},Ai)),Ft=He._isColumnFixing(),bn=qe.slice().map(Ai=>(0,u.l)({fixed:Ft},Ai)),_n=Ai=>qe.reduce((Vn,Oi,Hn)=>Oi.type===(Ht&&Ai.type===j?"expand":Ai.type)||Oi.command===Ai.command?Hn:Vn,-1),xn=Ai=>Ai.command!==qe[ht].command,Jn=0;Jn<Dt.length;Jn++)(ht=(dt=Dt[Jn])&&(dt.type||dt.command)?_n(dt):-1)>=0&&(Ht?(yt[Jn]=(0,u.l)({fixed:Ft},qe[ht],dt),dt.type!==j&&(bn=bn.filter(xn))):yt[Jn]=(0,u.l)({},dt,qe[ht],dt.type===j&&{visibleIndex:dt.visibleIndex,index:dt.index,headerId:dt.headerId,allowFixing:0===dt.groupIndex,allowReordering:0===dt.groupIndex,groupIndex:dt.groupIndex}));return Dt.length&&Ht&&bn.length&&(yt=yt.concat(bn)),yt},Ct=(He,Dt)=>(0,a.$K)(Dt.fixed)||!Dt.type?Dt.fixed:He._isColumnFixing(),Rt=He=>{He._bandColumnsCache=void 0},fn=(He,Dt)=>{var Ht,qe=(0,a.HD)(Dt)&&Dt.substr(0,Dt.indexOf(":"));if(void 0!==Dt)return qe&&(Dt=Dt.substr(qe.length+1)),qe?Ht=He.filter(dt=>""+dt[qe]===Dt)[0]:["index","name","dataField","caption"].some(dt=>!!(Ht=He.filter(ht=>ht[dt]===Dt)[0])),Ht},ct={_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(He){var Dt,qe=[];return He&&He.items().length>0&&(Dt=y.Z.normalizeSortingInfo(He.group()).length,qe=function Ht(dt,ht){if(!dt||!ht)return dt;for(var yt=0;yt<dt.length;yt++){var Ft=Ht(dt[yt].items||dt[yt].collapsedItems,ht-1);if(Ft&&Ft.length)return Ft}}(He.items(),Dt)||[]),qe},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&tt(this)},init:function(He){var qe,Ht,Dt=this.option("columns");this._commandColumns=this._commandColumns||[],this._columns=this._columns||[],this._isColumnsFromOptions=!!Dt,this._isColumnsFromOptions?(Ne(this,Dt?De(this,Dt):[]),oe(this)):Ne(this,this._columnsUserState?De(this,this._columnsUserState):this._columns),Ht=(qe=this)._getExpandColumnOptions(),qe.addCommandColumn(Ht),this._dataSourceApplied?this.applyDataSource(this._dataSource,!0,He):ye(this),this._checkColumns()},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(He,Dt){var qe,Ht=[];return He.replace(ee,function(dt,ht){return Ht.push(parseInt(ht)),""}),Ht.length&&(qe=Dt?Ht.reduce(function(dt,ht){return dt&&dt.columns&&dt.columns[ht]},{columns:Dt}):function(dt,ht){var yt,Ft,_n=function(Jn){return Jn.ownerBand===(yt?yt.index:void 0)};if(dt.getBandColumnsCache().isPlain)yt=dt._columns[ht[0]];else{Ft=dt._columns.filter(_n);for(var xn=0;xn<ht.length;xn++)(yt=Ft[ht[xn]])&&(Ft=dt._columns.filter(_n))}return yt}(this,Ht)),qe},optionChanged:function(He){var Dt;switch(He.name){case"adaptColumnWidthByRatio":He.handled=!0;break;case"dataSource":He.value!==He.previousValue&&!this.option("columns")&&(!Array.isArray(He.value)||!Array.isArray(He.previousValue))&&(this._columns=[]);break;case"columns":Dt=this._skipProcessingColumnsChange,He.handled=!0,this._skipProcessingColumnsChange||(He.name===He.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):(this._columnOptionChanged(He),Dt=!0)),Dt&&this._updateRequireResize(He);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":He.handled=!0,this.reinit("columnWidth"===He.fullName&&["width"]);break;case"rtlEnabled":this.reinit();break;default:this.callBase(He)}},_columnOptionChanged:function(He){var Dt={},qe=this.getColumnByPath(He.fullName),Ht=He.fullName.replace(ee,"");qe&&(Ht?Dt[Ht]=He.value:Dt=He.value,this._skipProcessingColumnsChange=He.fullName,this.columnOption(qe.index,Dt),this._skipProcessingColumnsChange=!1)},_updateRequireResize:function(He){var Dt=this.component;"width"===He.fullName.replace(ee,"")&&Dt._updateLockCount&&(Dt._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns","getVisibleColumnIndex"]},applyDataSource:function(He,Dt,qe){var Ht=He&&He.isLoaded();if(this._dataSource=He,!this._dataSourceApplied||0===this._dataSourceColumnsCount||Dt||this.option("regenerateColumnsByVisibleItems")){if(Ht){if(!this._isColumnsFromOptions){var dt=function(ht,yt){for(var bn,Ft=ht._getFirstItems(yt),_n={},xn=[],Jn=0;Jn<Ft.length;Jn++)if(Ft[Jn])for(bn in Ft[Jn])(!(0,a.mf)(Ft[Jn][bn])||C.Z.isWrapped(Ft[Jn][bn]))&&(_n[bn]=!0);for(bn in _n)if(0!==bn.indexOf("__")){var li=ge(ht,bn);xn.push(li)}return xn}(this,He);dt.length&&(Ne(this,dt),this._dataSourceColumnsCount=this._columns.length,oe(this))}return this.updateColumns(He,Dt,qe)}this._dataSourceApplied=!1,ye(this)}else if(Ht&&!this.isAllDataTypesDefined(!0)&&this.updateColumnDataTypes(He))return ft(this,"columns"),tt(this),(new k.BH).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,Rt(this)},reinit:function(He){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=He||null,this.init(),He&&(this._ignoreColumnOptionNames=null)},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(He){var Dt=(!He||!He.type)&&this.option("commonColumnSettings")||{},qe=this.option("grouping")||{},Ht=this.option("groupPanel")||{};return(0,u.l)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:qe.autoExpandAll,allowCollapsing:qe.allowCollapsing,allowGrouping:Ht.allowColumnDragging&&Ht.visible||qe.contextMenuEnabled},Dt)},isColumnOptionUsed:function(He){for(var Dt=0;Dt<this._columns.length;Dt++)if(this._columns[Dt][He])return!0},isAllDataTypesDefined:function(He){var Dt=this._columns;if(!Dt.length)return!1;for(var qe=0;qe<Dt.length;qe++)if((Dt[qe].dataField||Dt[qe].calculateCellValue!==Dt[qe].defaultCalculateCellValue)&&(!Dt[qe].dataType||He&&Dt[qe].deserializeValue&&void 0===Dt[qe].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some(function(He){return He.isBand})},getGroupColumns:function(){var He=[];return(0,p.S6)(this._columns,function(){(0,a.$K)(this.groupIndex)&&(He[this.groupIndex]=this)}),He},_shouldReturnVisibleColumns:function(){return!0},_compileVisibleColumns:function(He){return this._visibleColumns=this._visibleColumns||this._compileVisibleColumnsCore(),He=(0,a.$K)(He)?He:this._visibleColumns.length-1,this._visibleColumns[He]||[]},getVisibleColumns:function(He){return this._shouldReturnVisibleColumns()?this._compileVisibleColumns.apply(this,arguments):[]},getFixedColumns:function(He){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),He=(0,a.$K)(He)?He:this._fixedColumns.length-1,this._fixedColumns[He]||[]},getFilteringColumns:function(){return this.getColumns().filter(He=>(He.dataField||He.name)&&(He.allowFiltering||He.allowHeaderFiltering)).map(He=>{var Dt=(0,u.l)(!0,{},He);return(0,a.$K)(Dt.dataField)||(Dt.dataField=Dt.name),Dt.filterOperations=He.filterOperations!==He.defaultFilterOperations?Dt.filterOperations:null,Dt})},getColumnIndexOffset:function(){return 0},_getFixedColumnsCore:function(){var ht,yt,Ft,He=[],Dt=this.getRowCount(),Ht={command:"transparent"},dt=0;if(this._isColumnFixing())for(var bn=0;bn<=Dt;bn++){ht=0,Ft=null,yt=null;for(var _n=this.getVisibleColumns(bn,!0),xn=0;xn<_n.length;xn++){var Jn=_n[xn-1],li=_n[xn];li.fixed?Jn&&Jn.fixed&&xe(this,Jn)!==xe(this,li)?(0,a.$K)(yt)||(yt=xn):Ft=li.fixedPosition:(0===bn&&(li.isBand&&li.colspan?dt+=li.colspan:dt++),ht++,(0,a.$K)(yt)||(yt=xn))}if(0===bn&&(0===ht||ht>=_n.length))return[];(0,a.$K)(yt)||(yt="right"===Ft?0:_n.length),He[bn]=_n.slice(0),Ht.colspan||(Ht.colspan=dt),He[bn].splice(yt,ht,Ht)}return He.map(Ai=>Ai.map(Vn=>{var Oi=(0,o.Z)({},Vn);return Oi.headerId&&(Oi.headerId+="-fixed"),Oi}))},_isColumnFixing:function(){var He=this.option("columnFixing.enabled");return!He&&(0,p.S6)(this._columns,function(Dt,qe){if(qe.fixed)return He=!0,!1}),He},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var Dt,He=this._getExpandColumnsCore(),qe=He.filter(yt=>0===yt.groupIndex)[0],Ht=qe&&qe.fixed,dt=this._isColumnFixing(),ht=this.option("rtlEnabled");return He.length&&(Dt=this.columnOption("command:expand")),(0,p.UI)(He,yt=>(0,u.l)({},yt,{visibleWidth:null,minWidth:null,cellTemplate:(0,a.$K)(yt.groupIndex)?null:yt.cellTemplate,headerCellTemplate:null,fixed:!(!(0,a.$K)(yt.groupIndex)||!Ht)||dt,fixedPosition:ht?"right":"left"},Dt,{index:yt.index,type:yt.type||j}))},getBandColumnsCache:function(){if(!this._bandColumnsCache){var He=this._columns,Dt={},qe={},Ht=!0;He.forEach(function(dt){var ht=dt.ownerBand,yt=(0,a.Kn)(ht)?ht.index:ht,Ft=He[yt];dt.hasColumns&&(Ht=!1),dt.colspan&&(dt.colspan=void 0),dt.rowspan&&(dt.rowspan=void 0),Ft?qe[dt.index]=Ft:yt=-1,Dt[yt]=Dt[yt]||[],Dt[yt].push(dt)}),this._bandColumnsCache={isPlain:Ht,columnChildrenByIndex:Dt,columnParentByIndex:qe}}return this._bandColumnsCache},_isColumnVisible:function(He){return He.visible&&this.isParentColumnVisible(He.index)},_compileVisibleColumnsCore:function(){var Dt,_n,He=this,qe=[],Ht=0,dt=0,ht=He.getRowCount(),yt=[],Ft=[],bn=0,xn=He.option("rtlEnabled"),Jn=He.getBandColumnsCache(),li=St(He,He.getExpandColumns(),He._columns),Ai=St(He,He._columns,He._commandColumns,!0),Vn=function(Oi){var Hn;for(Hn=0;Oi>1;Hn++)Oi/=10;return Hn}(Ai.length);for(function(Oi,Hn,Sn){for(var An,ti=0;ti<Hn.length;ti++){var Wn=Hn[ti];(Wn.visible||Wn.command)&&(Wn.isBand&&(Wn.colspan=Wn.colspan||fe(Oi,Wn.index)),(!Wn.isBand||!Wn.colspan)&&(An=Oi.getRowCount(),!Wn.command&&(!(0,a.$K)(Wn.groupIndex)||Wn.showWhenGrouped)&&(An-=Fe(Wn.index,Sn.columnParentByIndex).length),An>1&&(Wn.rowspan=An)))}}(He,Ai,Jn),Dt=0;Dt<ht;Dt++)qe[Dt]=[],Ft[Dt]=[{}],yt[Dt]=[{},{},{}];return(0,p.S6)(Ai,function(){var Hn,Oi=this.visibleIndex,Sn=Fe(this.index,Jn.columnParentByIndex);if(He._isColumnVisible(this)&&(!(0,a.$K)(this.groupIndex)||this.showWhenGrouped)){var ti=Sn.length;if(Oi<0?(Oi=-Oi,Hn=Ft[ti]):(this.fixed=Sn.length?Sn[0].fixed:this.fixed,this.fixedPosition=Sn.length?Sn[0].fixedPosition:this.fixedPosition,this.fixed?(_n="right"===this.fixedPosition,xn&&(!this.command||me(He,this))&&(_n=!_n),Hn=_n?yt[ti][2]:yt[ti][0]):Hn=yt[ti][1]),Sn.length)for(Oi=Ye(Oi,Vn),Dt=Sn.length-1;Dt>=0;Dt--)Oi=Ye(Sn[Dt].visibleIndex,Vn)+Oi;Hn[Oi]=Hn[Oi]||[],Hn[Oi].push(this),bn++}}),(0,p.S6)(qe,function(Oi){(0,g.jS)(Ft[Oi],function(Sn,An){qe[Oi].unshift.apply(qe[Oi],An)});var Hn=qe[Oi].length;(0,p.S6)(yt[Oi],function(Sn,An){(0,g.jS)(An,function(ti,Wn){qe[Oi].push.apply(qe[Oi],Wn)})}),dt<Oi+1&&(dt+=Te.call(He,qe[Oi],li,"detailExpand",Hn)),Ht<Oi+1&&(Ht+=Te.call(He,qe[Oi],li,j,Hn))}),qe.push(function Oi(Hn,Sn,An){var ti=[];return Hn[Sn=Sn||0]&&(0,p.S6)(Hn[Sn],function(Wn,Yi){(Yi.ownerBand===An||Yi.type===j)&&(Yi.isBand&&Yi.colspan?ti.push.apply(ti,Oi(Hn,Sn+1,Yi.index)):(!Yi.command||Sn<1)&&ti.push(Yi))}),ti}(qe)),!bn&&He._columns.length&&qe[ht].push({command:"empty"}),qe},getInvisibleColumns:function(He,Dt){var dt,qe=this,Ht=[];return(0,p.S6)(He=He||qe._columns,function(ht,yt){if(yt.ownerBand===Dt){if(yt.isBand)return void((dt=yt.visible?qe.getInvisibleColumns(qe.getChildrenByBandColumn(yt.index),yt.index):qe.getChildrenByBandColumn(yt.index)).length&&(Ht.push(yt),Ht=Ht.concat(dt)));yt.visible||Ht.push(yt)}}),Ht},getChooserColumns:function(He){return((dt,ht)=>{if("asc"!==ht&&"desc"!==ht)return dt;var yt="asc"===ht?1:-1;return dt.sort(function(Ft,bn){return yt*(Ft.caption||"").localeCompare(bn.caption||"")}),dt})((He?this.getColumns():this.getInvisibleColumns()).filter(dt=>dt.showInColumnChooser),this.option("columnChooser.sortOrder"))},allowMoveColumn:function(He,Dt,qe,Ht){var dt=te(this,He,qe),ht=this._columns[dt];return!(!ht||!(ht.allowReordering||ht.allowGrouping||ht.allowHiding))&&(qe===Ht?"columnChooser"!==qe&&(He=(0,a.Kn)(He)?He.columnIndex:He)!==(Dt=(0,a.Kn)(Dt)?Dt.columnIndex:Dt)&&He+1!==Dt:"group"===qe&&"columnChooser"!==Ht||"group"===Ht?ht&&ht.allowGrouping:"columnChooser"!==qe&&"columnChooser"!==Ht||ht&&ht.allowHiding)},moveColumn:function(He,Dt,qe,Ht){var ht,bn,dt={},yt=te(this,He,qe),Ft=te(this,Dt,Ht);if(yt>=0){var _n=this._columns[yt];if(Dt=(0,a.Kn)(Dt)?Dt.columnIndex:Dt,bn=Ft>=0?this._columns[Ft].groupIndex:-1,(0,a.$K)(_n.groupIndex)&&"group"===qe&&(bn>_n.groupIndex&&bn--,"group"!==Ht?dt.groupIndex=void 0:(ht=_n.groupIndex,delete _n.groupIndex,ae(this))),"group"===Ht)dt.groupIndex=function(li,Ai,Vn){var Hn,Oi=li.getGroupColumns();if(Vn>=0)for(Hn=0;Hn<Oi.length;Hn++)Oi[Hn].groupIndex>=Vn&&Oi[Hn].groupIndex++;else for(Vn=0,Hn=0;Hn<Oi.length;Hn++)Vn=Math.max(Vn,Oi[Hn].groupIndex+1);return Vn}(this,0,bn),_n.groupIndex=ht;else if(Dt>=0){var xn=this._columns[Ft];dt.visibleIndex=!xn||_n.ownerBand!==xn.ownerBand||Ct(this,_n)^Ct(this,xn)?J:xn.visibleIndex}var Jn="columnChooser"!==Ht;_n.visible!==Jn&&(dt.visible=Jn),this.columnOption(_n.index,dt)}},changeSortOrder:function(He,Dt){var qe={},Ht=this.option("sorting"),dt=Ht&&Ht.mode,Ft=this._columns[He];("single"===dt||"multiple"===dt)&&Ft&&Ft.allowSorting&&(("single"===dt||!Dt)&&!(0,a.$K)(Ft.groupIndex)&&(0,p.S6)(this._columns,function(bn){bn!==He&&this.sortOrder&&((0,a.$K)(this.groupIndex)||delete this.sortOrder,delete this.sortIndex)}),ke(Dt)?Ft.sortOrder!==Dt&&(qe.sortOrder=Dt):"none"===Dt?Ft.sortOrder&&(qe.sortIndex=void 0,qe.sortOrder=void 0):function(bn){if("ctrl"===Dt){if(!("sortOrder"in bn)||!("sortIndex"in bn))return!1;qe.sortOrder=void 0,qe.sortIndex=void 0}else qe.sortOrder=(0,a.$K)(bn.groupIndex)||(0,a.$K)(bn.sortIndex)?"desc"===bn.sortOrder?"asc":"desc":"asc"}(Ft)),this.columnOption(Ft.index,qe)},getSortDataSourceParameters:function(He){var Dt=[],qe=[];return(0,p.S6)(this._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&(0,a.$K)(this.sortIndex)&&!(0,a.$K)(this.groupIndex)&&(Dt[this.sortIndex]=this)}),(0,p.S6)(Dt,function(){if(ke(this&&this.sortOrder)){var dt={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||He&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(dt.compare=this.sortingMethod.bind(this)),qe.push(dt)}}),qe.length>0?qe:null},getGroupDataSourceParameters:function(He){var Dt=[];return(0,p.S6)(this.getGroupColumns(),function(){var qe=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||He&&this.selector||this.dataField||this.calculateCellValue;if(qe){var Ht={selector:qe,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(Ht.compare=this.sortingMethod.bind(this)),Dt.push(Ht)}}),Dt.length>0?Dt:null},refresh:function(He){var Dt=[];return(0,p.S6)(this._columns,function(){var qe=this.lookup;if(qe&&!this.calculateDisplayValue){if(He&&qe.valueMap)return;qe.update&&Dt.push(qe.update())}}),k.gx.apply(c.Z,Dt).done(Pe.bind(null,this))},_updateColumnOptions:function(He,Dt){He.selector=He.selector||function(dt){return He.calculateCellValue(dt)},this._reinitAfterLookupChanges&&this._previousColumns?(He.selector.columnIndex=Dt,He.selector.originalCallback=this._previousColumns[Dt].selector.originalCallback):(He.selector.columnIndex=Dt,He.selector.originalCallback=He.selector),(0,p.S6)(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],function(dt,ht){var yt=He[ht];if((0,a.mf)(yt))if(yt.originalCallback)He[ht].context.column=He;else{var Ft={column:He};He[ht]=function(bn){return yt.call(Ft.column,bn)},He[ht].originalCallback=yt,He[ht].columnIndex=Dt,He[ht].context=Ft}}),(0,a.HD)(He.calculateDisplayValue)&&(He.displayField=He.calculateDisplayValue,He.calculateDisplayValue=(0,f.vb)(He.displayField)),He.calculateDisplayValue&&(He.displayValueMap=He.displayValueMap||{}),de(He,He.dataType);var qe=He.lookup;qe&&de(qe,qe.dataType);var Ht=qe?qe.dataType:He.dataType;Ht&&(He.alignment=He.alignment||function(dt,ht){switch(dt){case"number":return"right";case"boolean":return"center";default:return(0,s.q)(ht)}}(Ht,this.option("rtlEnabled")),He.format=He.format||y.Z.getFormatByDataType(Ht),He.customizeText=He.customizeText||pe(Ht),He.defaultFilterOperations=He.defaultFilterOperations||!qe&&X[Ht]||[],(0,a.$K)(He.filterOperations)||se(He),He.defaultFilterOperation=He.filterOperations&&He.filterOperations[0]||"=",He.showEditorAlways=(0,a.$K)(He.showEditorAlways)?He.showEditorAlways:"boolean"===Ht&&!He.cellTemplate&&!He.lookup)},updateColumnDataTypes:function(He){var Dt=this,qe=Dt.option("dateSerializationFormat"),Ht=Dt._getFirstItems(He),dt=!1;return(0,p.S6)(Dt._columns,function(ht,yt){var Ft,bn,_n,xn,Jn,li=yt.lookup;if(y.Z.isDateType(yt.dataType)&&void 0===yt.serializationFormat&&(yt.serializationFormat=qe),li&&y.Z.isDateType(li.dataType)&&void 0===yt.serializationFormat&&(li.serializationFormat=qe),yt.calculateCellValue&&Ht.length){if(!yt.dataType||li&&!li.dataType){for(Ft=0;Ft<Ht.length;Ft++)bn=yt.calculateCellValue(Ht[Ft]),yt.dataType||(Jn=_e(bn),(_n=_n||Jn)&&Jn&&_n!==Jn&&(_n="string")),li&&!li.dataType&&(Jn=_e(y.Z.getDisplayValue(yt,bn,Ht[Ft])),(xn=xn||Jn)&&Jn&&xn!==Jn&&(xn="string"));(_n||xn)&&(_n&&(yt.dataType=_n),li&&xn&&(li.dataType=xn),dt=!0)}if(void 0===yt.serializationFormat||li&&void 0===li.serializationFormat)for(Ft=0;Ft<Ht.length;Ft++)bn=yt.calculateCellValue(Ht[Ft],!0),void 0===yt.serializationFormat&&(yt.serializationFormat=ie(yt.dataType,bn)),li&&void 0===li.serializationFormat&&(li.serializationFormat=ie(li.dataType,li.calculateCellValue(bn,!0)))}Dt._updateColumnOptions(yt,ht)}),dt},_customizeColumns:function(He){var Dt=this.option("customizeColumns");Dt&&(He.some(function(Ht){return(0,a.Kn)(Ht.ownerBand)})&&ye(this),Dt(He),Ne(this,De(this,He)))},updateColumns:function(He,Dt,qe){if(Dt||this.updateSortingGrouping(He),!He||He.isLoaded()){var Ht=He?He.sort()||[]:this.getSortDataSourceParameters(),dt=He?He.group()||[]:this.getGroupDataSourceParameters(),ht=He?.lastLoadOptions().filter;qe||this._customizeColumns(this._columns),ye(this);var yt=this._columns;return(0,k.gx)(this.refresh(!0)).always(()=>{this._columns===yt&&(this._updateChanges(He,{sorting:Ht,grouping:dt,filtering:ht}),tt(this))})}},_updateChanges:function(He,Dt){He&&(this.updateColumnDataTypes(He),this._dataSourceApplied=!0),y.Z.equalSortParameters(Dt.sorting,this.getSortDataSourceParameters())||ft(this,"sorting"),y.Z.equalSortParameters(Dt.grouping,this.getGroupDataSourceParameters())||ft(this,"grouping");var qe=this.getController("data");qe&&!y.Z.equalFilterParameters(Dt.filtering,qe.getCombinedFilter())&&ft(this,"filtering"),ft(this,"columns")},updateSortingGrouping:function(He,Dt){var Ht,dt,qe=this,ht=function(Jn,li,Ai){(0,p.S6)(Jn,function(Vn,Oi){if(delete Oi[Ai],li)for(var Hn=0;Hn<li.length;Hn++){var Sn=li[Hn].selector,An=li[Hn].isExpanded;if(Sn===Oi.dataField||Sn===Oi.name||Sn===Oi.selector||Sn===Oi.calculateCellValue||Sn===Oi.calculateGroupValue||Sn===Oi.calculateDisplayValue){Oi.sortOrder=Dt?"sortOrder"in Oi?Oi.sortOrder:li[Hn].desc?"desc":"asc":Oi.sortOrder||(li[Hn].desc?"desc":"asc"),void 0!==An&&(Oi.autoExpandGroup=An),Oi[Ai]=Hn;break}}})};if(He){Ht=y.Z.normalizeSortingInfo(He.sort());var yt=y.Z.normalizeSortingInfo(He.group()),Ft=qe.getGroupDataSourceParameters(),bn=qe.getSortDataSourceParameters(),_n=!y.Z.equalSortParameters(yt,Ft,!0),xn=!_n&&!y.Z.equalSortParameters(yt,Ft);qe._columns.length||((0,p.S6)(yt,function(Jn,li){qe._columns.push(li.selector)}),(0,p.S6)(Ht,function(Jn,li){(0,a.mf)(li.selector)||qe._columns.push(li.selector)}),Ne(qe,De(qe,qe._columns))),(Dt||!Ft&&!qe._hasUserState)&&(_n||xn)&&(ht(qe._columns,yt,"groupIndex"),Dt&&(_n&&ft(qe,"grouping"),xn&&ft(qe,"groupExpanding"),dt=!0)),(Dt||!bn&&!qe._hasUserState)&&!y.Z.equalSortParameters(Ht,bn)&&(ht(qe._columns,Ht,"sortIndex"),Dt&&(ft(qe,"sorting"),dt=!0)),dt&&tt(qe)}},updateFilter:function(He,Dt,qe,Ht){if(!Array.isArray(He))return He;if(qe=void 0!==(He=(0,u.l)([],He)).columnIndex?He.columnIndex:qe,Ht=void 0!==He.filterValue?He.filterValue:Ht,(0,a.HD)(He[0])&&"!"!==He[0]){var dt=this.columnOption(He[0]);Dt?(0,h.Z)().forceIsoDateParsing&&dt&&dt.serializeValue&&He.length>1&&(He[He.length-1]=dt.serializeValue(He[He.length-1],"filter")):dt&&dt.selector&&(He[0]=dt.selector,He[0].columnIndex=dt.index)}else(0,a.mf)(He[0])&&(He[0].columnIndex=qe,He[0].filterValue=Ht);for(var ht=0;ht<He.length;ht++)He[ht]=this.updateFilter(He[ht],Dt,qe,Ht);return He},columnCount:function(){return this._columns?this._columns.length:0},columnOption:function(He,Dt,qe,Ht){var dt=this,ht=dt._columns.concat(dt._commandColumns),yt=fn(ht,He);if(yt){if(1===arguments.length)return(0,u.l)({},yt);if((0,a.HD)(Dt)){if(2===arguments.length)return nn(dt,yt,Dt);nn(dt,yt,Dt,qe,Ht)}else(0,a.Kn)(Dt)&&(0,p.S6)(Dt,function(Ft,bn){nn(dt,yt,Ft,bn,Ht)});tt(dt)}},clearSorting:function(){var He=this.columnCount();this.beginUpdate();for(var Dt=0;Dt<He;Dt++)this.columnOption(Dt,"sortOrder",void 0);this.endUpdate()},clearGrouping:function(){var He=this.columnCount();this.beginUpdate();for(var Dt=0;Dt<He;Dt++)this.columnOption(Dt,"groupIndex",void 0);this.endUpdate()},getVisibleIndex:function(He,Dt){for(var qe=this.getVisibleColumns(Dt),Ht=qe.length-1;Ht>=0;Ht--)if(qe[Ht].index===He)return Ht;return-1},getVisibleIndexByColumn:function(He,Dt){var qe=this.getVisibleColumns(Dt),Ht=qe.filter(dt=>dt.index===He.index&&dt.command===He.command)[0];return qe.indexOf(Ht)},getVisibleColumnIndex:function(He,Dt){var qe=this.columnOption(He,"index");return this.getVisibleIndex(qe,Dt)},addColumn:function(He){var Dt=ge(this,He),qe=this._columns.length;this._columns.push(Dt),Dt.isBand&&(this._columns=De(this,this._columns),Dt=this._columns[qe]),Dt.added=He,ye(this,Dt),this.updateColumns(this._dataSource),this._checkColumns()},deleteColumn:function(He){var Ht,Dt=this.columnOption(He);if(Dt&&Dt.index>=0){if((Ht=this._columns).forEach(dt=>{(0,a.$K)(dt.ownerBand)&&(dt.ownerBand=Ht[dt.ownerBand])}),this._columns.splice(Dt.index,1),Dt.isBand){var qe=this.getChildrenByBandColumn(Dt.index).map(dt=>dt.index);this._columns=this._columns.filter(dt=>qe.indexOf(dt.index)<0)}ye(this),this.updateColumns(this._dataSource)}},addCommandColumn:function(He){var Dt=this._commandColumns.filter(qe=>qe.command===He.command)[0];Dt||this._commandColumns.push(Dt=He)},getUserState:function(){var qe,He=this._columns,Dt=[];function Ht(dt,ht){void 0!==He[qe][ht]&&(Dt[qe][ht]=He[qe][ht])}for(qe=0;qe<He.length;qe++)Dt[qe]={},(0,p.S6)(U,Ht);return Dt},setName:function(He){He.name=He.name||He.dataField||He.type},setUserState:function(He){var Dt=this._dataSource,qe=this.option("stateStoring.ignoreColumnOptionNames");if(He?.forEach(this.setName),!qe){qe=[];var Ht=this.getCommonSettings();this.option("columnChooser.enabled")||qe.push("visible"),"none"===this.option("sorting.mode")&&qe.push("sortIndex","sortOrder"),Ht.allowGrouping||qe.push("groupIndex"),Ht.allowFixing||qe.push("fixed","fixedPosition"),Ht.allowResizing||qe.push("width","visibleWidth");var dt=!this.option("filterPanel.visible");!this.option("filterRow.visible")&&dt&&qe.push("filterValue","selectedFilterOperation"),!this.option("headerFilter.visible")&&dt&&qe.push("filterValues","filterType")}this._columnsUserState=He,this._ignoreColumnOptionNames=qe,this._hasUserState=!!He,ft(this,"filtering"),this.init(!0),Dt&&(Dt.sort(this.getSortDataSourceParameters()),Dt.group(this.getGroupDataSourceParameters()))},_checkColumns:function(){var He={},Dt=!1,qe=[];this._columns.forEach(Ht=>{var dt,ht=Ht.name,yt=null===(dt=Ht.columns)||void 0===dt?void 0:dt.length,Ft=Ht.allowEditing&&(Ht.dataField||Ht.setCellValue)&&!yt;ht?(He[ht]&&qe.push('"'.concat(ht,'"')),He[ht]=!0):Ft&&(Dt=!0)}),qe.length&&x.Z.log("E1059",qe.join(", ")),Dt&&x.Z.log("E1060")},_createCalculatedColumnOptions:function(He,Dt){var qe={},Ht=He.dataField;if((Array.isArray(He.columns)&&He.columns.length||He.isBand)&&(qe.isBand=!0,Ht=null),Ht){if((0,a.HD)(Ht)){var dt=(0,f.vb)(Ht);qe={caption:(0,E.GK)(Ht),calculateCellValue:function(ht,yt){var Ft=dt(ht);return this.deserializeValue&&!yt?this.deserializeValue(Ft):Ft},setCellValue:$e,parseValue:function(ht){var yt,Ft;return"number"===this.dataType?(0,a.HD)(ht)&&this.format?yt=function(bn,_n){var xn=O.Z.parse(bn);if((0,a.kE)(xn)){var Jn=O.Z.format(xn,_n),li=O.Z.format(xn,"decimal");if(Jn===bn||li===bn)return xn}}(ht.trim(),this.format):(0,a.$K)(ht)&&(0,a.kE)(ht)&&(yt=Number(ht)):"boolean"===this.dataType?ht===this.trueText?yt=!0:ht===this.falseText&&(yt=!1):y.Z.isDateType(this.dataType)?(Ft=w.Z.parse(ht,this.format))&&(yt=Ft):yt=ht,yt}}}qe.allowFiltering=!0}else qe.allowFiltering=!!He.calculateFilterExpression;return qe.calculateFilterExpression=function(){return N.Z.defaultCalculateFilterExpression.apply(this,arguments)},qe.defaultFilterOperation="=",qe.createFilterExpression=function(ht){var yt;return this.calculateFilterExpression&&(yt=this.calculateFilterExpression.apply(this,arguments)),(0,a.mf)(yt)&&(yt=[yt,"=",!0]),yt&&(yt.columnIndex=this.index,yt.filterValue=ht),yt},(!Ht||!(0,a.HD)(Ht))&&(0,u.l)(!0,qe,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),Dt&&(qe.allowFixing=!1),He.dataType&&(qe.userDataType=He.dataType),He.selectedFilterOperation&&!("defaultSelectedFilterOperation"in qe)&&(qe.defaultSelectedFilterOperation=He.selectedFilterOperation),He.lookup&&(qe.lookup={calculateCellValue:function(ht,yt){return this.valueExpr&&(ht=this.valueMap&&this.valueMap[ht]),this.deserializeValue&&!yt?this.deserializeValue(ht):ht},updateValueMap:function(){if(this.valueMap={},this.items)for(var ht=(0,f.vb)(this.valueExpr),yt=(0,f.vb)(this.displayExpr),Ft=0;Ft<this.items.length;Ft++){var bn=this.items[Ft],_n=yt(bn);this.valueMap[ht(bn)]=_n,this.dataType=this.dataType||_e(_n)}},update:function(){var ht=this,yt=ht.dataSource;if(yt)if((0,a.mf)(yt)&&!C.Z.isWrapped(yt)&&(yt=yt({})),(0,a.PO)(yt)||yt instanceof R.Z||Array.isArray(yt)){if(ht.valueExpr){var Ft=(0,B.aN)(yt);return Ft.paginate=!1,(yt=new P.o(Ft)).load().done(function(bn){ht.items=bn,ht.updateValueMap&&ht.updateValueMap()})}}else x.Z.log("E1016");else ht.updateValueMap&&ht.updateValueMap()}}),qe.resizedCallbacks=(0,I.Z)(),He.resized&&qe.resizedCallbacks.add(He.resized.bind(He)),(0,p.S6)(qe,function(ht){if((0,a.mf)(qe[ht])&&0!==ht.indexOf("default")){var yt="default"+ht.charAt(0).toUpperCase()+ht.substr(1);qe[yt]=qe[ht]}}),qe},getRowCount:function(){return this._rowCount=this._rowCount||(Dt=1,Ht=(He=this).getBandColumnsCache().columnParentByIndex,He._columns.forEach(function(dt){var ht=Fe(dt.index,Ht),yt=ht.filter(function(Ft){return!Ft.visible});dt.visible&&!yt.length&&(Dt=Math.max(Dt,ht.length+1))}),Dt),this._rowCount;var He,Dt,Ht},getRowIndex:function(He,Dt){var qe=this._columns[He],Ht=this.getBandColumnsCache();return qe&&(Dt||qe.visible&&!qe.command&&!(0,a.$K)(qe.groupIndex))?Fe(He,Ht.columnParentByIndex).length:0},getChildrenByBandColumn:function(He,Dt){var qe=this.getBandColumnsCache(),Ht=Ae(He,qe.columnChildrenByIndex,!Dt);return Dt?Ht.filter(function(dt){return dt.visible&&!dt.command}).sort(function(dt,ht){return dt.visibleIndex-ht.visibleIndex}):Ht},isParentBandColumn:function(He,Dt){var qe=!1,Ht=this._columns[He],dt=this.getBandColumnsCache(),ht=Ht&&Fe(He,dt.columnParentByIndex);return ht&&(0,p.S6)(ht,function(yt,Ft){if(Ft.index===Dt)return qe=!0,!1}),qe},isParentColumnVisible:function(He){var Dt=!0,qe=this.getBandColumnsCache(),Ht=He>=0&&Fe(He,qe.columnParentByIndex);return Ht&&(0,p.S6)(Ht,function(dt,ht){return Dt=Dt&&ht.visible}),Dt},getColumnId:function(He){return He.command&&He.type===j?me(this,He)?"type:"+He.type:"command:"+He.command:He.index},getCustomizeTextByDataType:pe,getHeaderContentAlignment:function(He){return this.option("rtlEnabled")?"left"===He?"right":"left":He}};return ct}())}}},6359:(kn,he,l)=>{"use strict";l.d(he,{s:()=>Ae});var o=l(1805),c=l(9904),I=l(9897),C=l(913),f=l(5365),a=l(1828),p=l(2718),s=l(5873),u=l(5450),d=l(8225),h=l(8690),g=l(6722),x=l(3390),b=l(2879),y=l(3553),E=l(7078),O="columns-separator-transparent",w="drag-header",k="drag-action",R="tracker",P="drop-highlight",B="dx-block-separator",W="dx-header-row",U="dxDataGridResizingReordering",j=function(ne){return ne.option("allowColumnResizing")||ne.getController("columns").isColumnOptionUsed("allowResizing")},ee=function(ne){return ne.option("allowColumnReordering")||ne.getController("columns").isColumnOptionUsed("allowReordering")},G=x.Z.View.inherit({_renderCore:function(){var ne=this.callBase();return this.element().addClass(this.addWidgetPrefix(R)),this.hide(),ne},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var ne=this;ne._positionChanged=function(fe){var _e=ne.element();_e&&_e.hasClass(ne.addWidgetPrefix(R))&&(_e.css({top:fe.top}),(0,o.QQ)(_e,fe.height))},this._tablePositionController.positionChanged.add(ne._positionChanged)},optionChanged:function(ne){"allowColumnResizing"===ne.name&&(this._unsubscribeFromCallback(),ne.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(ne)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return j(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(ne){(0,o.QQ)(this.element(),ne)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),q=x.Z.View.inherit({_renderSeparator:function(){},_renderCore:function(ne){var fe=this.callBase(ne);return this._isShown=!0,this._renderSeparator(),this.hide(),fe},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(ne){var fe=this.element();if(fe){if(!(0,a.$K)(ne))return(0,o.Cr)(fe);(0,o.QQ)(fe,ne)}},width:function(ne){var fe=this.element();if(fe){if(!(0,a.$K)(ne))return(0,o.dz)(fe);(0,o.cl)(fe,ne)}}}),Z=q.inherit({_renderSeparator:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix("columns-separator"))},_subscribeToCallback:function(){var fe,ne=this;ne._positionChanged=function(_e){(fe=ne.element())&&(fe.css({top:_e.top}),(0,o.QQ)(fe,_e.height))},ne._tablePositionController.positionChanged.add(ne._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=j(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(ee(this)||j(this))},optionChanged:function(ne){"allowColumnResizing"===ne.name&&(ne.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=j(this),this.hide(!0))),this.callBase(ne)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var ne=this.element();ne&&!this._isShown&&(this._isTransparent?ne.removeClass(this.addWidgetPrefix(O)):ne.show()),this.callBase()},hide:function(ne){var fe=this.element(),_e=this.addWidgetPrefix(O);fe&&(this._isShown||ne)&&(this._isTransparent?(fe.addClass(_e),fe.css("left",""),fe.show()):(fe.hasClass(_e)&&fe.removeClass(_e),fe.hide())),this.callBase()},moveByX:function(ne){var fe=this.element();fe&&fe.css("left",null===ne?0:ne-this._parentElement().offset().left)},changeCursor:function(ne){ne=(0,a.$K)(ne)?ne:"";var fe=this.element();fe&&fe.css("cursor",ne)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),X=q.inherit({init:function(){var ne=this;this.callBase(),this.getController("data").loadingChanged.add(function(fe){fe||ne.hide()})},_renderSeparator:function(){this.callBase(),this.element().addClass(B).html("&nbsp;")},hide:function(){var ne=this._parentElement(),fe=this.element();fe&&this._isShown&&fe.css("display","none"),ne&&!ne.children("."+B).length&&ne.prepend(this.element()),this.callBase()},isVisible:function(){var ne=this.option("groupPanel"),fe=this.option("columnChooser");return ne&&ne.visible||fe&&fe.enabled},show:function(ne){var fe=this.element(),_e=function(ie){y.Z.stop(fe,!0),y.Z.animate(fe,{type:"slide",from:{width:0,display:ie.display},to:ie,duration:300,easing:"swing"})};if(fe&&!this._isShown)switch(ne){case"group":_e({width:"50px",display:"inline-block"});break;case"columnChooser":_e({width:"100%",display:"block"});break;default:fe.css("display","")}this.callBase()}}),M=x.Z.View.inherit({_isDragging:!1,isDragging:function(){return this._isDragging},_getDraggingPanelByPos:function(ne){var fe;return(0,p.S6)(this._dragOptions.draggingPanels,function(_e,ie){if(ie){var de=ie.getBoundingRect();if(de&&(void 0===de.bottom||ne.y<de.bottom)&&(void 0===de.top||ne.y>de.top)&&(void 0===de.left||ne.x>de.left)&&(void 0===de.right||ne.x<de.right))return fe=ie,!1}}),fe},_renderCore:function(){this.element().addClass(this.addWidgetPrefix(w)+" "+this.addWidgetPrefix("text-content")+" dx-widget").hide()},_resetTargetColumnOptions:function(){var ne=this._dropOptions;ne.targetColumnIndex=-1,delete ne.targetColumnElement,delete ne.isLast,delete ne.posX,delete ne.posY},_getVisibleIndexObject:function(ne,fe){return(0,a.$K)(ne)?{columnIndex:fe,rowIndex:ne}:fe},dispose:function(){var ne=this.element();this._dragOptions=null,ne&&ne.parent().find("."+this.addWidgetPrefix(w)).remove()},isVisible:function(){var fe=this.getController("columns").getCommonSettings();return this.option("showColumnHeaders")&&(ee(this)||fe.allowGrouping||fe.allowHiding)},init:function(){var ne=this;this.callBase(),this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this.getController("data").loadingChanged.add(function(fe){var _e=ne.element();!fe&&_e&&_e.hide()})},dragHeader:function(ne){var fe=ne.columnElement,_e=!!ne.sourceColumn.type;this._isDragging=!0,this._dragOptions=ne,this._dropOptions={sourceIndex:ne.index,sourceColumnIndex:this._getVisibleIndexObject(ne.rowIndex,ne.columnIndex),sourceColumnElement:ne.columnElement,sourceLocation:ne.sourceLocation};var ie=I.Z.getDocument();this._onSelectStart=ie.onselectstart,ie.onselectstart=function(){return!1},this._controller.drag(this._dropOptions),this.element().css({textAlign:fe&&fe.css("textAlign"),height:fe&&(_e&&fe.get(0).clientHeight||(0,o.Cr)(fe)),width:fe&&(_e&&fe.get(0).clientWidth||(0,o.dz)(fe)),whiteSpace:fe&&fe.css("whiteSpace")}).addClass(this.addWidgetPrefix(k)).toggleClass("dx-drag-command-cell",_e).text(_e?"":ne.sourceColumn.caption),this.element().appendTo(E.Z.getSwatchContainer(fe))},moveHeader:function(ne){var fe=ne.event,_e=fe.data.that,ie=(0,d.a0)(fe),de=!!_e._columnsResizerViewController&&_e._columnsResizerViewController.isResizing(),le=_e._dragOptions;if(_e._isDragging&&!de){var pe=_e.element(),Ee=Math.abs(ie.x-le.columnElement.offset().left-le.deltaX),ae=Math.abs(ie.y-le.columnElement.offset().top-le.deltaY);(pe.is(":visible")||Ee>5||ae>5)&&(pe.show(),pe.css({left:ie.x-le.deltaX,top:ie.y-le.deltaY}),_e.dockHeader(ie)),fe.preventDefault()}},dockHeader:function(ne){var fe=this._getDraggingPanelByPos(ne),_e=this._controller,ie=this._dropOptions,de=this._dragOptions;if(fe){var le=this.option("rtlEnabled"),pe="columnChooser"===fe.getName(),Ee=pe?"y":"x",ae=fe.getName(),te="headers"===ae?de.rowIndex:void 0,oe=fe.getColumnElements(te,de.sourceColumn?.ownerBand)||[],ye=de.pointsByTarget=de.pointsByTarget||{},Pe="columnChooser"===ae?[]:ye[ae]||_e._generatePointsByColumns((0,s.l)({},de,{targetDraggingPanel:fe,columns:fe.getColumns(te),columnElements:oe,isVerticalOrientation:pe,startColumnIndex:"headers"===ae&&(0,c.Z)(oe[0]).index()}));if(ye[ae]=Pe,ie.targetLocation=ae,Pe.length>0)for(var Ne=0;Ne<Pe.length;Ne++){var ft=Pe[Ne+1]&&(Pe[Ne][Ee]+Pe[Ne+1][Ee])/2;if(void 0===ft||(le&&"x"===Ee?ne[Ee]>ft:ne[Ee]<ft)){ie.targetColumnIndex=this._getVisibleIndexObject(te,Pe[Ne].columnIndex),oe[Ne]?(ie.targetColumnElement=oe.eq(Ne),ie.isLast=!1):(ie.targetColumnElement=oe.last(),ie.isLast=!0),ie.posX=Pe[Ne].x,ie.posY=Pe[Ne].y,_e.dock(ie);break}}else this._resetTargetColumnOptions(),_e.dock(ie)}},dropHeader:function(ne){var _e=ne.event.data.that,ie=_e._controller;_e.element().hide(),ie&&_e._isDragging&&ie.drop(_e._dropOptions),_e.element().appendTo(_e._parentElement()),_e._dragOptions=null,_e._dropOptions=null,_e._isDragging=!1,I.Z.getDocument().onselectstart=_e._onSelectStart||null}}),se=function(ne){return"widget"!==ne.option("columnResizingMode")},ge=x.Z.ViewController.inherit({_isHeadersRowArea:function(ne){if(this._columnHeadersView){var fe=this._columnHeadersView.element();if(fe){var _e=fe.offset().top,ie=this._columnHeadersView.getHeadersRowHeight();return ne>=_e&&ne<=_e+ie}}return!1},_isRtlParentStyle:function(){var ne;return this.option("rtlEnabled")&&"rtl"===(null===(ne=this._$parentContainer)||void 0===ne?void 0:ne.parent().css("direction"))},_pointCreated:function(ne,fe,_e){var ie=se(this),de=this.option("rtlEnabled"),le=this._isRtlParentStyle(),pe=ie||!de||le?1:0;if(ne.index>=pe&&ne.index<fe+(ie||de&&!le?0:1)){ne.columnIndex-=pe;var Ee=_e[ne.columnIndex]||{};return!(ie?Ee.allowResizing&&(_e[ne.columnIndex+1]||{}).allowResizing:Ee.allowResizing)}return!0},_getTargetPoint:function(ne,fe,_e){if(ne)for(var ie=0;ie<ne.length;ie++)if((ne[ie].x!==ne[0].x||!ne[ie+1]||ne[ie].x!==ne[ie+1].x)&&ne[ie].x-_e<=fe&&fe<=ne[ie].x+_e)return ne[ie];return null},_moveSeparator:function(ne){var fe,_e=ne.event,ie=_e.data,de=ie._columnsSeparatorView.width(),le=se(ie),pe=de/2,Ee=ie._$parentContainer.offset(),ae=Ee.left,te=(0,d.a0)(_e),re=ie.option("rtlEnabled"),oe=this._isRtlParentStyle(),ye=null===(fe=ie._draggingHeaderView)||void 0===fe?void 0:fe.isDragging();if(ie._isResizing&&ie._resizingInfo){if((ae<=te.x||!le&&oe)&&(!le||te.x<=ae+(0,o.dz)(ie._$parentContainer))&&ie._updateColumnsWidthIfNeeded(te.x)){var Pe=ie._columnHeadersView.getColumnElements().eq(ie._resizingInfo.currentColumnIndex),Ne=Pe[0];if(Ne){var ft=Ne.getBoundingClientRect().width;ie._columnsSeparatorView.moveByX(Pe.offset().left+((le||oe)&&re?0:ft)),ie._tablePositionController.update(ie._targetPoint.y),_e.preventDefault()}}}else ye||(ie._isHeadersRowArea(te.y)?(ie._previousParentOffset&&(ie._previousParentOffset.left!==Ee.left||ie._previousParentOffset.top!==Ee.top)&&ie.pointsByColumns(null),ie._targetPoint=ie._getTargetPoint(ie.pointsByColumns(),te.x,de),ie._previousParentOffset=Ee,ie._isReadyResizing=!1,ie._targetPoint?(ie._columnsSeparatorView.changeCursor("col-resize"),ie._columnsSeparatorView.moveByX(ie._targetPoint.x-pe),ie._tablePositionController.update(ie._targetPoint.y),ie._isReadyResizing=!0,_e.preventDefault()):(ie._columnsSeparatorView.changeCursor(),ie._columnsSeparatorView.moveByX(null))):(ie.pointsByColumns(null),ie._isReadyResizing=!1,ie._columnsSeparatorView.changeCursor(),ie._columnsSeparatorView.moveByX(null)))},_endResizing:function(ne){var _e=ne.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(ne){return ne+1},_setupResizingInfo:function(ne){var fe=this._targetPoint.columnIndex,_e=this._getNextColumnIndex(fe),ie=this._columnHeadersView.getHeaderElement(fe),de=this._columnHeadersView.getHeaderElement(_e);this._resizingInfo={startPosX:ne,currentColumnIndex:fe,currentColumnWidth:ie&&ie.length>0?(0,u.l)(ie[0]).width:0,nextColumnIndex:_e,nextColumnWidth:de&&de.length>0?(0,u.l)(de[0]).width:0}},_startResizing:function(ne){var fe=ne.event,_e=fe.data,ie=(0,d.a0)(fe);if((0,d.z6)(fe)&&(_e._isHeadersRowArea(ie.y)?(_e._targetPoint=_e._getTargetPoint(_e.pointsByColumns(),ie.x,10),_e._targetPoint&&(_e._columnsSeparatorView.moveByX(_e._targetPoint.x-_e._columnsSeparatorView.width()/2),_e._isReadyResizing=!0)):_e._isReadyResizing=!1),_e._isReadyResizing){_e._setupResizingInfo(ie.x),_e._isResizing=!0,_e._tablePositionController.update(_e._targetPoint.y),_e._columnsSeparatorView.show(),_e._trackerView.show();var de=_e.component.getScrollable();de&&_e._isRtlParentStyle()&&(_e._scrollRight=(0,o.dz)(de.$content())-(0,o.dz)(de.container())-de.scrollLeft()),fe.preventDefault(),fe.stopPropagation()}this.isResizing()&&this.getController("editorFactory").loseFocus()},_generatePointsByColumns:function(){var ne=this,fe=ne._columnsController?ne._columnsController.getVisibleColumns():[],_e=ne._columnHeadersView.getColumnElements(),ie=[];_e&&_e.length>0&&(ie=b.Z.getPointsByColumns(_e,function(de){return ne._pointCreated(de,_e.length,fe)})),ne._pointsByColumns=ie},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&C.Z.off(I.Z.getDocument(),(0,d.V4)(h.Z.move,U),this._moveSeparatorHandler),this._startResizingHandler&&C.Z.off(this._$parentContainer,(0,d.V4)(h.Z.down,U),this._startResizingHandler),this._endResizingHandler&&(C.Z.off(this._columnsSeparatorView.element(),(0,d.V4)(h.Z.up,U),this._endResizingHandler),C.Z.off(I.Z.getDocument(),(0,d.V4)(h.Z.up,U),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),C.Z.on(I.Z.getDocument(),(0,d.V4)(h.Z.move,U),this,this._moveSeparatorHandler),C.Z.on(this._$parentContainer,(0,d.V4)(h.Z.down,U),this,this._startResizingHandler),C.Z.on(this._columnsSeparatorView.element(),(0,d.V4)(h.Z.up,U),this,this._endResizingHandler),C.Z.on(I.Z.getDocument(),(0,d.V4)(h.Z.up,U),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(ne){var fe,_e,ie=this._rowsView.contentWidth(),de=this._resizingInfo,le=this._columnsController,pe=le.getVisibleColumns(),Ee=this._columnsSeparatorView.width(),ae=se(this),te=ae&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth"),re=this.option("rtlEnabled"),oe=this._isRtlParentStyle(),ye=pe[de.currentColumnIndex],Pe=pe[de.nextColumnIndex];function Ne(Te){return(0,a.HD)(Te)&&"%"===Te.slice(-1)}function ft(Te,Ye,St,Ct){if(Te){var Rt=Te.width;Rt&&(Ct=Ne(Rt)),Ct?(le.columnOption(Te.index,"visibleWidth",Ye),le.columnOption(Te.index,"width",(Ye/St*100).toFixed(3)+"%")):(le.columnOption(Te.index,"visibleWidth",null),le.columnOption(Te.index,"width",Ye))}}fe=ne-de.startPosX,(ae||oe)&&re&&(fe=-fe);var Te,Ye,St,Ct,Rt,fn,ct,{cellWidth:tt,nextCellWidth:Be}=(ct={},(Rt=de.currentColumnWidth+(Te=fe))>=(fn=ye&&ye.minWidth||Ee)?ct.cellWidth=Rt:(ct.cellWidth=fn,Ct=!0),ae&&((St=de.nextColumnWidth-Te)>=(Ye=Pe&&Pe.minWidth||Ee)?ct.nextCellWidth=Ct?de.nextColumnWidth-(Te+fn-Rt):St:(ct.nextCellWidth=Ye,ct.cellWidth=de.currentColumnWidth+(Te-Ye+St))),ct);if(_e=ye.width!==tt){if(le.beginUpdate(),tt=Math.floor(tt),ie=function(Te,Ye){var St=Ye.every(Rt=>Rt.width);if(St){var Ct=Ye.reduce((Rt,fn)=>(Ne(fn.width)&&(Rt+=parseFloat(fn.width)),Rt),0);Ct>100&&(Te=Te/Ct*100)}return Te}(ie,pe),ft(ye,tt,ie,te),ae)ft(Pe,Be=Math.floor(Be),ie,te);else{var mt=this._columnHeadersView.getColumnWidths();mt[de.currentColumnIndex]=tt;var nn=mt.reduce((Te,Ye)=>Te+Ye,0)>this._rowsView.contentWidth();if(!nn){var ke=b.Z.getLastResizableColumnIndex(pe);ke>=0&&le.columnOption(pe[ke].index,"visibleWidth","auto")}for(var $e=0;$e<mt.length;$e++)pe[$e]&&pe[$e]!==ye&&void 0===pe[$e].width&&le.columnOption(pe[$e].index,"width",mt[$e])}if(le.endUpdate(),!ae){this.component.updateDimensions();var me=this.component.getScrollable();if(me&&oe){var xe=(0,o.dz)(me.$content())-(0,o.dz)(me.container())-this._scrollRight;me.scrollTo({left:xe})}}}return _e},_subscribeToCallback:function(ne,fe){ne.add(fe),this._subscribesToCallbacks.push({callback:ne,handler:fe})},_unsubscribeFromCallbacks:function(){for(var ne=0;ne<this._subscribesToCallbacks.length;ne++){var fe=this._subscribesToCallbacks[ne];fe.callback.remove(fe.handler)}this._subscribesToCallbacks=[]},_unsubscribes:function(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()},_init:function(){var ne=this,fe=function(){ne._isResizing||ne.pointsByColumns(null)},_e=function(le){ne._scrollLeft!==le.left&&(ne._scrollLeft=le.left,ne.pointsByColumns(null))};ne._columnsSeparatorView=ne.getView("columnsSeparatorView"),ne._columnHeadersView=ne.getView("columnHeadersView"),ne._trackerView=ne.getView("trackerView"),ne._rowsView=ne.getView("rowsView"),ne._columnsController=ne.getController("columns"),ne._tablePositionController=ne.getController("tablePosition"),ne._$parentContainer=ne.component.$element(),ne._draggingHeaderView=ne.component.getView("draggingHeaderView"),ne._subscribeToCallback(ne._columnHeadersView.renderCompleted,fe),ne._subscribeToCallback(ne._columnHeadersView.resizeCompleted,fe),ne._subscribeToCallback(ne._columnsSeparatorView.renderCompleted,function(){ne._unsubscribeFromEvents(),ne._subscribeToEvents()}),ne._subscribeToCallback(ne._rowsView.renderCompleted,function(){ne._rowsView.scrollChanged.remove(_e),ne._rowsView.scrollChanged.add(_e)});var ie=0!==ne._rowsView.getScrollbarWidth(),de=0;ne._subscribeToCallback(ne.getController("tablePosition").positionChanged,function(le){if(ne._isResizing&&!ne._rowsView.isResizing){var pe=0!==ne._rowsView.getScrollbarWidth();ie!==pe||de&&de!==le.height?(ie=pe,de=le.height,ne.component.updateDimensions()):ne._rowsView.updateFreeSpaceRowHeight()}de=le.height})},optionChanged:function(ne){this.callBase(ne),"allowColumnResizing"===ne.name&&(ne.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())},isResizing:function(){return this._isResizing},init:function(){this._subscribesToCallbacks=[],j(this)&&this._init()},pointsByColumns:function(ne){if(void 0===ne)return this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns;this._pointsByColumns=ne},dispose:function(){this._unsubscribes(),this.callBase()}}),De=x.Z.ViewController.inherit({update:function(ne){var fe={},_e=this._columnHeadersView.element(),ie=_e&&_e.offset(),de=ie&&ie.top||0,le=(0,a.$K)(ne)?Math.abs(ne-de):0,pe=this._columnHeadersView?this._columnHeadersView.getHeight():0,Ee=this._rowsView.getScrollbarWidth(!0),ae=this._rowsView?this._rowsView.height()-Ee:0,te=this.component.getController("columnsResizer"),re=this.component.getView("draggingHeaderView");fe.height=pe,(te.isResizing()||re.isDragging())&&(fe.height+=ae-le),null!==ne&&_e&&_e.length&&(fe.top=_e[0].offsetTop+le),this.positionChanged.fire(fe)},init:function(){var ne=this;ne.callBase(),ne._columnHeadersView=this.getView("columnHeadersView"),ne._rowsView=this.getView("rowsView"),ne._pagerView=this.getView("pagerView"),ne._rowsView.resizeCompleted.add(function(){if(ne.option("allowColumnResizing")){var fe=ne.getController("columnsResizer")._targetPoint;ne.update(fe?fe.y:null)}})},ctor:function(ne){this.callBase(ne),this.positionChanged=(0,f.Z)()}}),Ae={views:{columnsSeparatorView:Z,blockSeparatorView:X,draggingHeaderView:M,trackerView:G},controllers:{draggingHeader:x.Z.ViewController.inherit({_generatePointsByColumns:function(ne){var fe=this;return b.Z.getPointsByColumns(ne.columnElements,function(_e){return fe._pointCreated(_e,ne.columns,ne.targetDraggingPanel.getName(),ne.sourceColumn)},ne.isVerticalOrientation,ne.startColumnIndex)},_pointCreated:function(ne,fe,_e,ie){var de=fe[ne.columnIndex],le=fe[ne.columnIndex-1];switch(_e){case"columnChooser":return!0;case"headers":return ie&&!ie.allowReordering||(!de||!de.allowReordering)&&(!le||!le.allowReordering);default:return 0===fe.length}},_subscribeToEvents:function(ne,fe){var _e=this;(0,p.S6)(fe,function(ie,de){if(de)for(var le,pe=de.getRowCount?de.getRowCount():1,Ee=de.getName(),ae=function(oe,ye){if(ye){var Pe=(0,c.Z)(ye),Ne=le[oe];de.allowDragging(Ne,Ee,fe)&&(Pe.addClass(_e.addWidgetPrefix(k)),C.Z.on(Pe,(0,d.V4)(g.BL,U),_e.createAction(function(ft){var tt=ft.event,Be=(0,d.a0)(tt);ne.dragHeader({deltaX:Be.x-(0,c.Z)(tt.currentTarget).offset().left,deltaY:Be.y-(0,c.Z)(tt.currentTarget).offset().top,sourceColumn:Ne,index:Ne.index,columnIndex:oe,columnElement:Pe,sourceLocation:Ee,draggingPanels:fe,rowIndex:_e._columnsController.getRowIndex(Ne.index,!0)})})),C.Z.on(Pe,(0,d.V4)(g.pB,U),{that:ne},_e.createAction(ne.moveHeader)),C.Z.on(Pe,(0,d.V4)(g.ut,U),{that:ne},_e.createAction(ne.dropHeader)))}},te=0;te<pe;te++){var re=de.getColumnElements(te)||[];re.length&&(le=de.getColumns(te)||[],(0,p.S6)(re,ae))}})},_unsubscribeFromEvents:function(ne,fe){var _e=this;(0,p.S6)(fe,function(ie,de){if(de){var le=de.getColumnElements()||[];(0,p.S6)(le,function(pe,Ee){var ae=(0,c.Z)(Ee);C.Z.off(ae,(0,d.V4)(g.BL,U)),C.Z.off(ae,(0,d.V4)(g.pB,U)),C.Z.off(ae,(0,d.V4)(g.ut,U)),ae.removeClass(_e.addWidgetPrefix(k))})}})},_getSeparator:function(ne){return"headers"===ne?this._columnsSeparatorView:this._blockSeparatorView},hideSeparators:function(ne){var fe=this._blockSeparatorView,_e=this._columnsSeparatorView;this._animationColumnIndex=null,fe&&fe.hide(),"block"!==ne&&_e&&_e.hide()},init:function(){var ne=this;ne.callBase(),ne._columnsController=ne.getController("columns"),ne._columnHeadersView=ne.getView("columnHeadersView"),ne._columnsSeparatorView=ne.getView("columnsSeparatorView"),ne._draggingHeaderView=ne.getView("draggingHeaderView"),ne._rowsView=ne.getView("rowsView"),ne._blockSeparatorView=ne.getView("blockSeparatorView"),ne._headerPanelView=ne.getView("headerPanel"),ne._columnChooserView=ne.getView("columnChooserView");var fe=function(){if(ne._draggingHeaderView){var _e=[ne._columnChooserView,ne._columnHeadersView,ne._headerPanelView];ne._unsubscribeFromEvents(ne._draggingHeaderView,_e),ne._subscribeToEvents(ne._draggingHeaderView,_e)}};ne._columnHeadersView.renderCompleted.add(fe),ne._headerPanelView&&ne._headerPanelView.renderCompleted.add(fe),ne._columnChooserView&&ne._columnChooserView.renderCompleted.add(fe)},allowDrop:function(ne){return this._columnsController.allowMoveColumn(ne.sourceColumnIndex,ne.targetColumnIndex,ne.sourceLocation,ne.targetLocation)},drag:function(ne){var fe=ne.sourceIndex,_e=ne.sourceLocation,ie=ne.sourceColumnElement,de=this._columnHeadersView,le=this._rowsView;ie&&(ie.css({opacity:.5}),"headers"===_e&&(de&&de.setRowsOpacity(fe,.5),le&&le.setRowsOpacity(fe,.5)))},dock:function(ne){var fe=this,_e=(0,a.Kn)(ne.targetColumnIndex)?ne.targetColumnIndex.columnIndex:ne.targetColumnIndex,ie=ne.sourceLocation,de=ne.targetLocation,le=fe._getSeparator(de),pe=_e>=0;fe._columnHeadersView.element().find("."+W).toggleClass(fe.addWidgetPrefix(P),"headers"!==ie&&"headers"===de&&!pe),le&&(fe.allowDrop(ne)&&pe?"group"===de||"columnChooser"===de?fe._animationColumnIndex!==_e&&(fe.hideSeparators(),le.element()[ne.isLast?"insertAfter":"insertBefore"](ne.targetColumnElement),fe._animationColumnIndex=_e,le.show(de)):(fe.hideSeparators("block"),fe.getController("tablePosition").update(ne.posY),le.moveByX(ne.posX-le.width()),le.show()):fe.hideSeparators())},drop:function(ne){var fe=ne.sourceColumnElement;if(fe&&(fe.css({opacity:""}),this._columnHeadersView.setRowsOpacity(ne.sourceIndex,""),this._rowsView.setRowsOpacity(ne.sourceIndex,""),this._columnHeadersView.element().find("."+W).removeClass(this.addWidgetPrefix(P))),this.allowDrop(ne)){var _e=this._getSeparator(ne.targetLocation);_e&&_e.hide(),this._columnsController.moveColumn(ne.sourceColumnIndex,ne.targetColumnIndex,ne.sourceLocation,ne.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}}),tablePosition:De,columnsResizer:ge},extenders:{views:{rowsView:{_needUpdateRowHeight:function(ne){var fe=this.option("wordWrapEnabled"),_e=this.getController("columnsResizer"),ie=_e.isResizing();return this.callBase.apply(this,arguments)||ne>0&&fe&&ie}}},controllers:{editorFactory:{renderFocusOverlay:function(){if(!this.getController("columnsResizer").isResizing())return this.callBase.apply(this,arguments)}}}}}},5004:(kn,he,l)=>{"use strict";l.d(he,{p:()=>_e});var o=l(1805),c=l(9904),I=l(9897),C=l(4514),f=l(913),a=l(5610),p=l(8690),s=l(227),u=l(1384),d=l(4722),h=l(7674),g=l(4356),x=l(6881),b=l(1828),y=l(5450),E=l(2718),S=l(5873),O=l(3390),w=l(2879),T=l(4964),k=l(4270),R=l(4505),P="scroll-container",Y="dx-row",J="dx-group-row",ee="dx-master-detail-row",X="0.0001px",M="dxCellHintVisible",ge={render:function(ie){ie.container.append(ie.content)}},Fe=function(ie){return"auto"===ie?"":(0,b.kE)(ie)?ie+"px":ie},Ae=function(ie,de,le){ie.style.width=ie.style.maxWidth="auto"===de.width?"":le},fe={_createScrollableOptions:function(){var ie=this.option("scrolling"),de=this.option("scrolling.useNative"),le=(0,S.l)({},ie,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===de&&(de=!0),"auto"===de?(delete le.useNative,delete le.useSimulatedScrollbar):(le.useNative=!!de,le.useSimulatedScrollbar=!de),le},_updateCell:function(ie,de){de.rowType&&this._cellPrepared(ie,de)},_createCell:function(ie){var de=ie.column,le=de.alignment||(0,y.q)(this.option("rtlEnabled")),pe=I.Z.createElement("td");pe.style.textAlign=le;var Ee=(0,c.Z)(pe);return"data"===ie.rowType&&de.headerId&&!de.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",de.headerId,Ee),de.cssClass&&Ee.addClass(de.cssClass),"expand"===de.command&&(Ee.addClass(de.cssClass),Ee.addClass(this.addWidgetPrefix("group-space"))),de.colspan>1?Ee.attr("colSpan",de.colspan):!de.isBand&&"auto"!==de.visibleWidth&&this.option("columnAutoWidth")&&((de.width||de.minWidth)&&(pe.style.minWidth=Fe(de.minWidth||de.width)),de.width&&Ae(pe,de,Fe(de.width))),Ee},_createRow:function(ie,de){var le=(0,c.Z)("<".concat(de=de||"tr",">")).addClass(Y);return this.setAria("role","row",le),le},_isAltRow:function(ie){return ie&&ie.dataIndex%2==1},_createTable:function(ie,de){var le=this,pe=(0,c.Z)("<table>").addClass(le.addWidgetPrefix("table")).addClass(le.addWidgetPrefix("table-fixed"));if(ie&&!de?(pe.append(le._createColGroup(ie)),d.Z.safari&&pe.append((0,c.Z)("<thead>").append("<tr>")),le.setAria("role","presentation",pe)):le.setAria("hidden",!0,pe),this.setAria("role","presentation",(0,c.Z)("<tbody>").appendTo(pe)),de)return pe;d.Z.mozilla&&f.Z.on(pe,"mousedown","td",function(ae){ae.ctrlKey&&ae.preventDefault()}),le.option("cellHintEnabled")&&f.Z.on(pe,"mousemove",".dx-row > td",this.createAction(function(ae){var te=ae.event,re=(0,c.Z)(te.target),oe=(0,c.Z)(te.currentTarget),ye=oe.parent(),Pe=le._columnsController.getVisibleColumns(),Ne=ye.data("options"),ft=oe.index(),tt=Ne&&Ne.cells&&Ne.cells[ft],Be=tt?tt.column:Pe[ft],mt=ye.hasClass("dx-header-row"),nn=ye.hasClass("dx-data-row"),ke=ye.hasClass(ee),$e=ye.hasClass(J),me=ye.hasClass(le.addWidgetPrefix("filter-row"));ke||me||nn&&tt&&(Ne.isEditing||tt.isEditing||Be?.showEditorAlways)||nn&&(!Be||Be.cellTemplate)||mt&&(!Be||Be.headerCellTemplate)||$e&&(!Be||Be.groupIndex&&Be.groupCellTemplate)||(re.data(M)&&(re.removeAttr("title"),re.data(M,!1)),re[0].scrollWidth-re[0].clientWidth>0&&!(0,b.$K)(re.attr("title"))&&(re.attr("title",re.text()),re.data(M,!0)))}));var Ee=function(ae){var te=(0,c.Z)(ae.currentTarget),re=(0,c.Z)(ae.target).closest(".dx-field-item-content"),oe=te.parent(),ye=oe.data("options"),Pe=ye&&ye.cells&&ye.cells[te.index()];if(te.closest("table").is(ae.delegateTarget)){var Ne=(0,S.l)({},Pe,{cellElement:(0,x.u)(te),event:ae,eventType:ae.type});if(Ne.rowIndex=le.getRowIndex(oe),re.length){var ft=re.data("dx-form-item");ft.column&&(Ne.column=ft.column,Ne.columnIndex=le._columnsController.getVisibleIndex(Ne.column.index))}return Ne}};return f.Z.on(pe,"mouseover",".dx-row > td",function(ae){var te=Ee(ae);te&&le.executeAction("onCellHoverChanged",te)}),f.Z.on(pe,"mouseout",".dx-row > td",function(ae){var te=Ee(ae);te&&le.executeAction("onCellHoverChanged",te)}),f.Z.on(pe,s.u,".dx-row > td",function(ae){var te=Ee(ae);te&&le.executeAction("onCellClick",te)}),f.Z.on(pe,u.u,".dx-row > td",function(ae){var te=Ee(ae);te&&le.executeAction("onCellDblClick",te)}),function(ie,de){var le,pe,Ee;function ae(te){return setTimeout(function(){le=pe=null},te)}f.Z.on(de,"touchstart touchend",".dx-row",function(te){clearTimeout(Ee),"touchstart"===te.type?(le=te.target,pe=te.currentTarget,Ee=ae(1e3)):Ee=ae()}),f.Z.on(de,[s.u,u.u,p.Z.down].join(" "),".dx-row",ie.createAction(function(te){var re=te.event;le&&(re.target=le,re.currentTarget=pe),(0,c.Z)(re.target).closest("a").length||(te.rowIndex=ie.getRowIndex(re.currentTarget),te.rowIndex>=0&&(te.rowElement=(0,x.u)((0,c.Z)(re.currentTarget)),te.columns=ie.getColumns(),re.type===p.Z.down?ie._rowPointerDown(te):re.type===s.u?ie._rowClick(te):ie._rowDblClick(te)))}))}(le,pe),pe},_rowPointerDown:h.ZT,_rowClick:h.ZT,_rowDblClick:h.ZT,_createColGroup:function(ie){for(var de=(0,c.Z)("<colgroup>"),le=0;le<ie.length;le++)for(var pe=ie[le].colspan||1,Ee=0;Ee<pe;Ee++)de.append(this._createCol(ie[le]));return de},_createCol:function(ie){var de=ie.visibleWidth||ie.width;"adaptiveHidden"===de&&(de=X);var le=(0,c.Z)("<col>");return(0,g.cl)(le,de),le},renderDelayedTemplates:function(ie){var de=this._delayedTemplates,le=de.filter(Ee=>!Ee.async),pe=de.filter(Ee=>Ee.async);this._delayedTemplates=[],this._renderDelayedTemplatesCore(le,!1,ie),this._renderDelayedTemplatesCoreAsync(pe)},_renderDelayedTemplatesCoreAsync:function(ie){var de=this;ie.length&&(0,C.Jj)().setTimeout(function(){de._renderDelayedTemplatesCore(ie,!0)})},_renderDelayedTemplatesCore:function(ie,de,le){for(var pe=new Date;ie.length;){var Ee=ie.shift(),ae=Ee.options,te=I.Z.getRootNode((0,c.Z)(ae.container).get(0)),re=this._needWaitAsyncTemplates();if((!de||(0,c.Z)(ae.container).closest(te).length||re)&&(le&&(ae.change=le),Ee.template.render(ae)),de&&new Date-pe>30){this._renderDelayedTemplatesCoreAsync(ie);break}}!ie.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()},_processTemplate:function(ie){var de;if(ie&&ie.render&&!(0,b.ZU)(ie))de={allowRenderToDetachedContainer:ie.allowRenderToDetachedContainer,render:function(pe){ie.render(pe.container,pe.model,pe.change),pe.deferred&&pe.deferred.resolve()}};else if((0,b.mf)(ie))de={render:function(pe){var Ee=ie((0,x.u)(pe.container),pe.model,pe.change);Ee&&(Ee.nodeType||(0,b.ZU)(Ee))&&pe.container.append(Ee),pe.deferred&&pe.deferred.resolve()}};else{var le=(0,b.HD)(ie)?ie:(0,c.Z)(ie).attr("id");le?(this._templatesCache[le]||(this._templatesCache[le]=this.getTemplate(ie)),de=this._templatesCache[le]):de=this.getTemplate(ie)}return de},renderTemplate:function(ie,de,le,pe,Ee){var ae=this._processTemplate(de,le),te=le.column,re="data"===le.rowType,oe=new k.BH,ye={container:ie,model:le,deferred:oe,onRendered:()=>{oe.resolve()}};if(ae){le.component=this.component;var Pe=te&&(te.renderAsync&&re||this.option("renderAsync")&&(!1!==te.renderAsync&&(te.command||te.showEditorAlways)&&re||"filter"===le.rowType));!ae.allowRenderToDetachedContainer&&!pe||Pe?this._delayedTemplates.push({template:ae,options:ye,async:Pe}):ae.render(ye),Ee&&(Ee.templateDeferreds=Ee.templateDeferreds||[],Ee.templateDeferreds.push(oe))}else oe.reject();return oe.promise()},_getBodies:function(ie){return(0,c.Z)(ie).children("tbody").not(".dx-header").not(".dx-footer")},_needWrapRow:function(ie){var de;return!!this.option().rowTemplate&&!(null===(de=this._getBodies(ie))||void 0===de||!de.filter("."+Y).length)},_wrapRowIfNeed:function(ie,de,le){if(this._needWrapRow(le?ie||this._tableElement:this._tableElement||ie)){var ae=(0,c.Z)("<tbody>").addClass(de.attr("class"));return this.setAria("role","presentation",ae),ae.append(de)}return de},_appendRow:function(ie,de,le){(le=le||ge).render({content:de,container:ie})},_resizeCore:function(){var ie=this._scrollLeft;ie>=0&&(this._scrollLeft=0,this.scrollTo({left:ie}))},_renderCore:function(ie){var de=this.element().parent();(!de||de.parent().length)&&this.renderDelayedTemplates(ie)},_renderTable:function(ie){(ie=ie||{}).columns=this._columnsController.getVisibleColumns();var de=ie.change&&ie.change.changeType,le=this._createTable(ie.columns,"append"===de||"prepend"===de||"update"===de);return this._renderRows(le,ie),le},_renderRows:function(ie,de){for(var le=this._getRows(de.change),pe=de.change&&de.change.columnIndices||[],Ee=de.change&&de.change.changeTypes||[],ae=0;ae<le.length;ae++)this._renderRow(ie,(0,S.l)({row:le[ae],columnIndices:pe[ae],changeType:Ee[ae]},de))},_renderRow:function(ie,de){de.columnIndices||(de.row.cells=[]);var le=this._createRow(de.row),pe=this._wrapRowIfNeed(ie,le);"remove"!==de.changeType&&this._renderCells(le,de),this._appendRow(ie,pe);var Ee=(0,S.l)({columns:de.columns},de.row);this._addWatchMethod(Ee,de.row),this._rowPrepared(pe,Ee,de.row)},_needRenderCell:function(ie,de){return!de||de.indexOf(ie)>=0},_renderCells:function(ie,de){for(var le=0,pe=de.row,Ee=de.columns,ae=0;ae<Ee.length;ae++)this._needRenderCell(ae,de.columnIndices)&&this._renderCell(ie,(0,S.l)({column:Ee[ae],columnIndex:le,value:pe.values&&pe.values[le],oldValue:pe.oldValues&&pe.oldValues[le]},de)),Ee[ae].colspan>1?le+=Ee[ae].colspan:le++},_updateCells:function(ie,de,le){var pe=ie.children(),Ee=de.children(),ae=this.option("highlightChanges"),te=this.addWidgetPrefix("cell-updated-animation");le.forEach(function(re,oe){var ye=pe.eq(re),Pe=Ee.eq(oe);ye.replaceWith(Pe),ae&&!Pe.hasClass("dx-command-expand")&&Pe.addClass(te)}),function(ie,de){if(ie&&de){var Ee,le=ie.attributes,pe=de.attributes;for(Ee=0;Ee<le.length;Ee++){var ae=le[Ee].nodeName;de.hasAttribute(ae)||ie.removeAttribute(ae)}for(Ee=0;Ee<pe.length;Ee++)ie.setAttribute(pe[Ee].nodeName,pe[Ee].nodeValue)}}(ie.get(0),de.get(0))},_setCellAriaAttributes:function(ie,de){if("freeSpace"!==de.rowType){this.setAria("role","gridcell",ie);var le=this._columnsController.getColumnIndexOffset();this.setAria("colindex",de.columnIndex+le+1,ie)}},_renderCell:function(ie,de){var le=this._getCellOptions(de);if(de.columnIndices){if(de.row.cells){var pe=de.row.cells.findIndex(ae=>ae.columnIndex===le.columnIndex);de.row.cells[pe]=le}}else de.row.cells.push(le);var Ee=this._createCell(le);return this._setCellAriaAttributes(Ee,le),this._renderCellContent(Ee,le,de),ie.get(0).appendChild(Ee.get(0)),Ee},_renderCellContent:function(ie,de,le){var pe=this._getCellTemplate(de);(0,k.gx)(!pe||this.renderTemplate(ie,pe,de,void 0,le.change)).done(()=>{this._updateCell(ie,de)})},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(ie){var de={column:ie.column,columnIndex:ie.columnIndex,rowType:ie.row.rowType,isAltRow:this._isAltRow(ie.row)};return this._addWatchMethod(de),de},_addWatchMethod:function(ie,de){if(this.option("repaintChangesOnly")){var le=[];return(de=de||ie).watch=de.watch||function(pe,Ee,ae){var te=pe(de.data),re=function(oe){oe&&ae&&ae(oe);var ye=pe(de.data);JSON.stringify(te)!==JSON.stringify(ye)&&(oe&&Ee(ye),te=ye)};return le.push(re),function(){var oe=le.indexOf(re);oe>=0&&le.splice(oe,1)}},de.update=de.update||function(pe,Ee){pe&&(this.data=ie.data=pe.data,this.rowIndex=ie.rowIndex=pe.rowIndex,this.dataIndex=ie.dataIndex=pe.dataIndex,this.isExpanded=ie.isExpanded=pe.isExpanded,ie.row&&!Ee&&(ie.row=pe)),le.forEach(function(ae){ae(pe)})},de!==ie&&(ie.watch=de.watch.bind(de)),ie}},_cellPrepared:function(ie,de){de.cellElement=(0,x.u)((0,c.Z)(ie)),this.executeAction("onCellPrepared",de)},_rowPrepared:function(ie,de){(0,a.aT)(ie.get(0),"options",de),de.rowElement=(0,x.u)(ie),this.executeAction("onRowPrepared",de)},_columnOptionChanged:function(ie){var de=ie.optionNames;if(w.Z.checkChanges(de,["width","visibleWidth"])){var le=this._columnsController.getVisibleColumns(),pe=E.UI(le,function(Ee){var ae=Ee.visibleWidth||Ee.width;return(0,b.$K)(ae)?ae:"auto"});this.setColumnWidths({widths:pe,optionNames:de})}else this._requireReady||this.render()},getCellIndex:function(ie){return ie.length?ie[0].cellIndex:-1},getTableElements:function(){return this._tableElement||(0,c.Z)()},getTableElement:function(){return this._tableElement},setTableElement:function(ie){this._tableElement=ie},optionChanged:function(ie){switch(this.callBase(ie),ie.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),ie.handled=!0}},init:function(){var ie=this;ie._scrollLeft=-1,ie._columnsController=ie.getController("columns"),ie._dataController=ie.getController("data"),ie._delayedTemplates=[],ie._templatesCache={},ie.createAction("onCellClick"),ie.createAction("onRowClick"),ie.createAction("onCellDblClick"),ie.createAction("onRowDblClick"),ie.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),ie.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),ie.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(de){ie._afterRowPrepared(de)}}),ie._columnsController.columnsChanged.add(ie._columnOptionChanged.bind(ie)),ie._dataController&&ie._dataController.changed.add(ie._handleDataChanged.bind(ie))},_afterRowPrepared:h.ZT,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},_updateScrollLeftPosition:function(){var ie=this._scrollLeft;ie>=0&&(this._scrollLeft=0,this.scrollTo({left:ie}))},scrollTo:function(ie){var de=this.element(),le=de&&de.children("."+this.addWidgetPrefix(P)).not("."+this.addWidgetPrefix("content-fixed"));(0,b.$K)(ie)&&(0,b.$K)(ie.left)&&this._scrollLeft!==ie.left&&(this._scrollLeft=ie.left,le&&le.scrollLeft(ie.left))},_wrapTableInScrollContainer:function(ie){var de=(0,c.Z)("<div>"),le=this.option("scrolling.useNative");return(!1===le||"auto"===le&&!R.nativeScrolling)&&de.addClass(this.addWidgetPrefix("scrollable-simulated")),f.Z.on(de,"scroll",()=>{var pe=de.scrollLeft();pe!==this._scrollLeft&&this.scrollChanged.fire({left:pe},this.name)}),de.addClass(this.addWidgetPrefix("content")).addClass(this.addWidgetPrefix(P)).append(ie).appendTo(this.element()),this.setAria("role","presentation",de),de},_needWaitAsyncTemplates:function(){return this.option("templatesRenderAsynchronously")&&!1===this.option("renderAsync")},_waitAsyncTemplates:function(ie,de){var le=this._needWaitAsyncTemplates();return k.gx.apply(this,(de||le&&("update"!==ie?.changeType||null!=ie&&ie.isLiveUpdate))&&null!=ie&&ie.templateDeferreds?ie?.templateDeferreds:[])},_updateContent:function(ie,de){return this._waitAsyncTemplates(de).done(()=>{this.setTableElement(ie),this._wrapTableInScrollContainer(ie)})},_findContentElement:h.ZT,_getWidths:function(ie){var le,de=[];return ie&&E.S6(ie,function(pe,Ee){if(le=Ee.offsetWidth,Ee.getBoundingClientRect){var ae=(0,y.l)(Ee);ae.width>le-1&&(le=ae.width)}de.push(le)}),de},getColumnWidths:function(ie){var le,pe,de=[];if((this.option("forceApplyBindings")||h.ZT)(),ie=ie||this.getTableElement()){le=ie.children("tbody:not(.dx-header)").children();for(var Ee=0;Ee<le.length;Ee++){var ae=le.eq(Ee),te="none"!==ae.get(0).style.display&&!ae.hasClass("dx-state-invisible");if(!ae.is("."+J)&&!ae.is("."+ee)&&!ae.is(".dx-error-row")&&te){pe=ae.children("td");break}}de=this._getWidths(pe)}return de},getVisibleColumnIndex:function(ie,de){return ie},setColumnWidths:function(ie){var ae,te,re,oe,{widths:de,$tableElement:le,columns:pe,fixed:Ee}=ie,ye=this.option("columnAutoWidth");if((le=le||this.getTableElement())&&le.length&&de){oe=0,ae=le.children("colgroup").children("col"),(0,g.cl)(ae,"auto"),pe=pe||this.getColumns(null,le);for(var Pe=0;Pe<pe.length;Pe++){if(ye&&!Ee&&(te=pe[Pe].width)&&!pe[Pe].command){te=Fe(te=pe[Pe].visibleWidth||te),re=Fe(pe[Pe].minWidth||te);for(var Ne=Ne||le.children().children(".dx-row").not("."+ee),ft=0;ft<Ne.length;ft++){var tt=Ne[ft],Be=void 0,mt=this.getVisibleColumnIndex(Pe,ft);(Be=tt.classList.contains(J)?tt.querySelector("td[aria-colindex='".concat(mt+1,"']:not(.").concat("dx-group-cell",")")):tt.cells[mt])&&(Ae(Be,pe[Pe],te),Be.style.minWidth=re)}}pe[Pe].colspan?oe+=pe[Pe].colspan:("adaptiveHidden"===(te=de[oe])&&(te=X),"number"==typeof te&&(te=te.toFixed(3)+"px"),(0,g.cl)(ae.eq(oe),(0,b.$K)(te)?te:"auto"),oe++)}}},getCellElements:function(ie){return this._getCellElementsCore(ie)},_getCellElementsCore:function(ie){return this._getRowElements().eq(ie).children()},_getCellElement:function(ie,de){var le,pe=this.getCellElements(ie),Ee=this._getVisibleColumnIndex(pe,ie,de);if(pe.length&&Ee>=0&&(le=pe.eq(Ee)),le&&le.length)return le},_getRowElement:function(ie){var de=this,le=(0,c.Z)(),pe=de.getTableElements();if(E.S6(pe,function(Ee,ae){le=le.add(de._getRowElements((0,c.Z)(ae)).eq(ie))}),le.length)return le},getCellElement:function(ie,de){return(0,x.u)(this._getCellElement(ie,de))},getRowElement:function(ie){var de=this._getRowElement(ie),le=[];if(de&&!(0,x.u)(de).get)for(var pe=0;pe<de.length;pe++)le.push(de[pe]);else le=de;return le},_getVisibleColumnIndex:function(ie,de,le){if((0,b.HD)(le)){var pe=this._columnsController.columnOption(le,"index");return this._columnsController.getVisibleIndex(pe)}return le},getColumnElements:function(){},getColumns:function(ie){return this._columnsController.getVisibleColumns(ie)},getCell:function(ie,de,le){var Ee,pe=de||this._getRowElements();if(pe.length>0&&ie.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&"virtual"!==this.option("scrolling.rowRenderingMode")&&(ie.rowIndex=ie.rowIndex<pe.length?ie.rowIndex:pe.length-1),(Ee=le||this.getCellElements(ie.rowIndex))&&Ee.length>0))return Ee.eq(Ee.length>ie.columnIndex?ie.columnIndex:Ee.length-1)},getRowsCount:function(){var ie=this.getTableElement();return ie&&1===ie.length?ie[0].rows.length:0},_getRowElementsCore:function(ie){if(ie=ie||this.getTableElement()){var le=(this.option().rowTemplate||this.option("dataRowTemplate"))&&ie.find("> tbody."+Y);return le&&le.length?le:ie.find("> tbody > ."+Y+", > ."+Y)}return(0,c.Z)()},_getRowElements:function(ie){return this._getRowElementsCore(ie)},getRowIndex:function(ie){return this._getRowElements().index(ie)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(ie){var de=this.element(),le=this.option("rtlEnabled");de&&de.css({paddingLeft:le?ie:"",paddingRight:le?"":ie})},isScrollbarVisible:function(ie){var de=this.element(),le=this._tableElement;return!(!de||!le)&&(ie?(0,o.Y_)(le)-(0,o.dz)(de)>0:(0,o.zp)(le)-(0,o.Cr)(de)>0)}},_e=O.Z.View.inherit(T.Z).inherit(fe)},9256:(kn,he,l)=>{"use strict";l.d(he,{y:()=>g});var o=l(9904),c=l(6881),I=l(7674),C=l(2718),f=l(3390),a=l(1875),s={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},u=["columnHeadersView","rowsView","footerView","headerPanel"],g={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:f.Z.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(x){if(!x)return!1;var E,S,O,w,b=this,y=(0,o.Z)(x.target);return(0,C.S6)(u,function(){var T=b.getView(this);if((E=T&&T.element())&&(E.is(y)||E.find(y).length)){var k,R;O=y.closest(".dx-row > td, .dx-row > tr"),S=O.parent();var P=T.getRowIndex(S),B=O[0]&&O[0].cellIndex,W=S.data("options"),N={event:x,targetElement:(0,c.u)(y),target:s[this],rowIndex:P,row:T._getRows()[P],columnIndex:B,column:null==W||null===(k=W.cells)||void 0===k||null===(R=k[B])||void 0===R?void 0:R.column};if(N.items=T.getContextMenuItems&&T.getContextMenuItems(N),b.executeAction("onContextMenuPreparing",N),b._contextMenuPrepared(N),w=N.items)return!1}}),w},_contextMenuPrepared:I.ZT})},views:{contextMenuView:f.Z.View.inherit({_renderCore:function(){var x=this,b=x.element().addClass("dx-context-menu");this.setAria("role","presentation",b),this._createComponent(b,a.Z,{onPositioning:function(y){var E=y.event,S=y.component,O=x.getController("contextMenu").getContextMenuItems(E);O?(S.option("items",O),E.stopPropagation()):y.cancel=!0},onItemClick:function(y){y.itemData.onItemClick&&y.itemData.onItemClick(y)},cssClass:x.getWidgetContainerClass(),target:x.component.$element()})}})}}},9799:(kn,he,l)=>{"use strict";l.d(he,{p:()=>b});var y,E,o=l(9904),c=l(3390),I=l(2879),C=l(820),f=l(7344),a=l(8159),p=l(7674),s=l(2718),u=l(1828),d=l(5873),h=l(8264),g=l(4270),x=l(31),b={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:c.Z.Controller.inherit({}).include(h.Z).inherit((y=function(S,O,w){var T=S._dataSource;if(T){if(void 0!==w){if(S._getPagingOptionValue(O)!==w){"pageSize"===O&&T.pageIndex(0),T[O](w),S._skipProcessingPagingChange=!0,S.option("paging."+O,w),S._skipProcessingPagingChange=!1;var R=T.pageIndex();return S._isPaging="pageIndex"===O,T["pageIndex"===O?"load":"reload"]().done(()=>{S._isPaging=!1,S.pageChanged.fire(R)})}return(0,g.BH)().resolve().promise()}return T[O]()}return 0},E={init:function(){var S=this;S._items=[],S._cachedProcessedItems=null,S._columnsController=S.getController("columns"),S._isPaging=!1,S._currentOperationTypes=null,S._dataChangedHandler=O=>{S._currentOperationTypes=this._dataSource.operationTypes(),S._handleDataChanged(O),S._currentOperationTypes=null},S._columnsChangedHandler=S._handleColumnsChanged.bind(S),S._loadingChangedHandler=S._handleLoadingChanged.bind(S),S._loadErrorHandler=S._handleLoadError.bind(S),S._customizeStoreLoadOptionsHandler=S._handleCustomizeStoreLoadOptions.bind(S),S._changingHandler=S._handleChanging.bind(S),S._dataPushedHandler=S._handleDataPushed.bind(S),S._columnsController.columnsChanged.add(S._columnsChangedHandler),S._isLoading=!1,S._isCustomLoading=!1,S._repaintChangesOnly=void 0,S._changes=[],S.createAction("onDataErrorOccurred"),S.dataErrorOccurred.add(function(O){return S.executeAction("onDataErrorOccurred",{error:O})}),S._refreshDataSource()},_getPagingOptionValue:function(S){return this._dataSource[S]()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged","pushed"]},callbackFlags:function(S){if("dataErrorOccurred"===S)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(S){if(S.value===S.previousValue||this.option("columns")&&Array.isArray(S.value)&&Array.isArray(S.previousValue)){if(S.value!==S.previousValue){var w=this.store();w&&(w._array=S.value)}return this.needToRefreshOnDataSourceChange(S)&&this.refresh(this.option("repaintChangesOnly")),!0}return!1},needToRefreshOnDataSourceChange:function(S){return!0},optionChanged:function(S){var w,T,O=this;function k(){S.handled=!0}if("dataSource"===S.name&&S.name===S.fullName&&this._handleDataSourceChange(S))k();else switch(S.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":k();break;case"remoteOperations":case"keyExpr":case"dataSource":case"scrolling":k(),O.reset();break;case"paging":if((w=O.dataSource())&&(T=O._setPagingOptions(w))){var R=w.pageIndex();this._isPaging=T.isPageIndexChanged,w.load().done(()=>{this._isPaging=!1,O.pageChanged.fire(R)})}k();break;case"rtlEnabled":O.reset();break;case"columns":(w=O.dataSource())&&w.isLoading()&&S.name===S.fullName&&(this._useSortingGroupingFromColumns=!0,w.load());break;default:O.callBase(S)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(S){return this.combinedFilter(void 0,S)},combinedFilter:function(S,O){var w=this._dataSource,T=this._columnsController;if(w){void 0===S&&(S=w.filter());var k=this._calculateAdditionalFilter();k&&(T.isDataSourceApplied()||T.isAllDataTypesDefined())&&(S=I.Z.combineFilters([k,S])),S=T.updateFilter(S,O||w.remoteOperations().filtering)}return S},waitReady:function(){return this._updateLockCount?(this._readyDeferred=new g.BH,this._readyDeferred):(0,g.gx)()},_endUpdateCore:function(){var S=this._changes;if(S.length){this._changes=[];var O=S.every(w=>w.repaintChangesOnly);this.updateItems(1===S.length?S[0]:{repaintChangesOnly:O})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)},_handleCustomizeStoreLoadOptions:function(S){var O,w=this._columnsController,T=this._dataSource,k=S.storeLoadOptions;S.isCustomLoading&&!k.isLoadingAll||(k.filter=this.combinedFilter(k.filter),1===(null===(O=k.filter)||void 0===O?void 0:O.length)&&"!"===k.filter[0]&&(S.data=[],S.extra=S.extra||{},S.extra.totalCount=0),w.isDataSourceApplied()||w.updateColumnDataTypes(T),this._columnsUpdating=!0,w.updateSortingGrouping(T,!this._useSortingGroupingFromColumns),this._columnsUpdating=!1,k.sort=w.getSortDataSourceParameters(),k.group=w.getGroupDataSourceParameters(),T.sort(k.sort),T.group(k.group),k.sort=w.getSortDataSourceParameters(!T.remoteOperations().sorting),S.group=w.getGroupDataSourceParameters(!T.remoteOperations().grouping))},_handleColumnsChanged:function(S){var k,R,P,O=this,w=S.changeTypes,T=S.optionNames;if(w.sorting||w.grouping)O._dataSource&&!O._columnsUpdating&&(O._dataSource.group(O._columnsController.getGroupDataSourceParameters()),O._dataSource.sort(O._columnsController.getSortDataSourceParameters()),O.reload());else if(w.columns&&(R=O._columnsController.columnOption(S.columnIndex,"filterValues"),(T.filterValues||T.filterType&&Array.isArray(R)||T.filterValue||T.selectedFilterOperation||T.allowFiltering)&&(k=O._columnsController.columnOption(S.columnIndex,"filterValue"),(Array.isArray(R)||void 0===S.columnIndex||(0,u.$K)(k)||!T.selectedFilterOperation||T.filterValue)&&(O._applyFilter(),P=!0)),!O._needApplyFilter&&!I.Z.checkChanges(T,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])&&O._columnsController.columnsChanged.add(function W(N){var V;O._columnsController.columnsChanged.remove(W),O.updateItems({repaintChangesOnly:!1,virtualColumnsScrolling:null==N||null===(V=N.changeTypes)||void 0===V?void 0:V.virtualColumnsScrolling})}),(0,u.$K)(T.visible))){var B=O._columnsController.columnOption(S.columnIndex);B&&((0,u.$K)(B.filterValue)||(0,u.$K)(B.filterValues))&&(O._applyFilter(),P=!0)}!P&&w.filtering&&O.reload()},_handleDataChanged:function(S){var O=this,w=O._dataSource,T=O._columnsController,k=!1;this._useSortingGroupingFromColumns=!1,w&&!O._isDataSourceApplying&&(O._isDataSourceApplying=!0,(0,g.gx)(O._columnsController.applyDataSource(w)).done(function(){O._isLoading&&O._handleLoadingChanged(!1),k&&S&&S.isDelayed&&(S.isDelayed=!1),O._isDataSourceApplying=!1;var P,R=O._needApplyFilter;O._needApplyFilter=!1,R&&!O._isAllDataTypesDefined&&(P=O._calculateAdditionalFilter())&&P.length?(a.Z.log("W1005",O.component.NAME),O._applyFilter()):O.updateItems(S,!0)}).fail(function(){O._isDataSourceApplying=!1}),O._isDataSourceApplying&&(k=!0,O._handleLoadingChanged(!0)),O._needApplyFilter=!O._columnsController.isDataSourceApplied(),O._isAllDataTypesDefined=T.isAllDataTypesDefined())},_handleLoadingChanged:function(S){this._isLoading=S,this._fireLoadingChanged()},_handleLoadError:function(S){this.dataErrorOccurred.fire(S)},_handleDataPushed:function(S){this.pushed.fire(S)},fireError:function(){this.dataErrorOccurred.fire(a.Z.Error.apply(a.Z,arguments))},_setPagingOptions:function(S){var O=this.option("paging.pageIndex"),w=this.option("paging.pageSize"),T=this.option("paging.enabled"),k=this.option("scrolling.mode"),R="infinite"===k,B=T||"virtual"===k||R,W=!1,N=!1,V=!1;return S.requireTotalCount(!R),void 0!==T&&S.paginate()!==B&&(S.paginate(B),W=!0),void 0!==w&&S.pageSize()!==w&&(S.pageSize(w),N=!0),void 0!==O&&S.pageIndex()!==O&&(S.pageIndex(O),V=!0),!!(W||N||V)&&{isPaginateChanged:W,isPageSizeChanged:N,isPageIndexChanged:V}},_getSpecificDataSourceOption:function(){var S=this.option("dataSource");return Array.isArray(S)?{store:{type:"array",data:S,key:this.option("keyExpr")}}:S},_initDataSource:function(){var S=this._dataSource;this.callBase();var O=this._dataSource;if(this._useSortingGroupingFromColumns=!0,this._cachedProcessedItems=null,O){var w=this._setPagingOptions(O);this._isPaging=w?.isPageIndexChanged,this.setDataSource(O)}else S&&this.updateItems()},_loadDataSource:function(){var S=this,O=S._dataSource,w=new g.BH;return(0,g.gx)(this._columnsController.refresh(!0)).always(function(){O?O.load().done(function(){S._isPaging=!1,w.resolve.apply(w,arguments)}).fail(w.reject):w.resolve()}),w.promise()},_beforeProcessItems:function(S){return S.slice(0)},getRowIndexDelta:function(){return 0},getDataIndex:function(S){var O=this._items,w="append"===S.changeType&&O.length>0?O[O.length-1]:null;return(0,u.$K)(w?.dataIndex)?w.dataIndex+1:0},_processItems:function(S,O){var w=this,T=w.getRowIndexDelta(),B={visibleColumns:w._columnsController.getVisibleColumns(null,"loadingAll"===O.changeType),dataIndex:this.getDataIndex(O)},W=[];return(0,s.S6)(S,function(N,V){(0,u.$K)(V)&&(B.rowIndex=N-T,V=w._processItem(V,B),W.push(V))}),W},_processItem:function(S,O){return S=this._generateDataItem(S,O),(S=this._processDataItem(S,O)).dataIndex=O.dataIndex++,S},_generateDataItem:function(S){return{rowType:"data",data:S,key:this.keyOf(S)}},_processDataItem:function(S,O){return S.values=this.generateDataValues(S.data,O.visibleColumns),S},generateDataValues:function(S,O,w){for(var k,T=[],R=0;R<O.length;R++){var P=O[R];k=w?void 0:null,P.command||(P.calculateCellValue?k=P.calculateCellValue(S):P.dataField&&(k=S[P.dataField])),T.push(k)}return T},_applyChange:function(S){"update"===S.changeType?this._applyChangeUpdate(S):this.items().length&&S.repaintChangesOnly&&"refresh"===S.changeType?this._applyChangesOnly(S):"refresh"===S.changeType&&this._applyChangeFull(S)},_applyChangeFull:function(S){this._items=S.items.slice(0)},_getRowIndices:function(S){var O=S.rowIndices.slice(0),w=this.getRowIndexDelta();O.sort(function(R,P){return R-P});for(var T=0;T<O.length;T++){var k=O[T];S.allowInvisibleRowIndices&&(k+=w),k<0&&(O.splice(T,1),T--)}return O},_applyChangeUpdate:function(S){var W,O=this,w=S.items,T=O._getRowIndices(S),k=O.getRowIndexDelta(),R=O.option("repaintChangesOnly"),P=-1,B=0;S.items=[],S.rowIndices=[],S.columnIndices=[],S.changeTypes=[];var N=function(V,U,K){var Y=V&&U&&(0,p.bY)(V.key,U.key);return Y&&K&&(Y=V.rowType===U.rowType&&("detail"!==U.rowType||V.isEditing===U.isEditing)),Y};(0,s.S6)(T,function(V,U){var K;if(P!==(U+=B+k)){P=U;var Y=O._items[U],J=O._items[U+1],j=w[U],ee=w[U+1],G=N(Y,J)||N(j,ee);if(j&&(j.rowIndex=U,S.items.push(j)),Y&&j&&N(Y,j,G))W="update",O._items[U]=j,Y.visible!==j.visible?S.items.splice(-1,1,{visible:j.visible}):R&&!S.isFullUpdate&&(K=O._partialUpdateRow(Y,j,U-k));else if(j&&!Y||ee&&N(Y,ee,G))W="insert",O._items.splice(U,0,j),B++;else if(Y&&!j||J&&N(j,J,G))W="remove",O._items.splice(U,1),B--,P=-1;else{if(!j)return;W="update",O._items[U]=j}S.rowIndices.push(U-k),S.changeTypes.push(W),S.columnIndices.push(K)}})},_isCellChanged:function(S,O,w,T,k){if(JSON.stringify(S.values[T])!==JSON.stringify(O.values[T]))return!0;function R(P,B){return!!P.modifiedValues&&void 0!==P.modifiedValues[B]}return R(S,T)!==R(O,T)},_getChangedColumnIndices:function(S,O,w,T){var k;if(S.rowType===O.rowType){if("group"!==O.rowType&&"groupFooter"!==O.rowType&&(k=[],"detail"!==O.rowType))for(var R=0;R<S.values.length;R++)this._isCellChanged(S,O,w,R,T)&&k.push(R);"group"===O.rowType&&O.isExpanded===S.isExpanded&&S.cells&&(k=S.cells.map((P,B)=>{var W;return"groupExpand"!==(null===(W=P.column)||void 0===W?void 0:W.type)?B:-1}).filter(P=>P>=0))}return k},_partialUpdateRow:function(S,O,w,T){var k,R=this._getChangedColumnIndices(S,O,w,T);return null!==(k=R)&&void 0!==k&&k.length&&this.option("dataRowTemplate")&&(R=void 0),R&&(S.cells&&S.cells.forEach(function(P,B){!(R.indexOf(B)>=0)&&P&&P.update&&P.update(O)}),O.update=S.update,O.watch=S.watch,O.cells=S.cells,T&&(O.oldValues=S.values),S.update&&S.update(O)),R},_isItemEquals:function(S,O){if(JSON.stringify(S.values)!==JSON.stringify(O.values)||["modified","isNewRow","removed","isEditing"].some(N=>S[N]!==O[N]))return!1;if("group"===S.rowType||"groupFooter"===S.rowType){var w,T,k,R,P=S.isExpanded===O.isExpanded,B=JSON.stringify(S.summaryCells)===JSON.stringify(O.summaryCells),W=(null===(w=S.data)||void 0===w?void 0:w.isContinuation)===(null===(T=O.data)||void 0===T?void 0:T.isContinuation)&&(null===(k=S.data)||void 0===k?void 0:k.isContinuationOnNextPage)===(null===(R=O.data)||void 0===R?void 0:R.isContinuationOnNextPage);if(!P||!B||!W)return!1}return!0},_applyChangesOnly:function(S){var O,w=[],T=[],k=[],R=[],P={},B=null===(O=S?.isLiveUpdate)||void 0===O||O;function W(K){if(K)return K.rowType+","+JSON.stringify(K.key)}var N=this._items,V=N.slice();S.items.forEach(function(K,Y){var J=W(K);P[J]=Y,K.rowIndex=Y});var U=(0,x.h)(V,S.items,W,(K,Y)=>!!this._isItemEquals(K,Y)&&(K.cells&&(K.update&&K.update(Y),K.cells.forEach(function(J){J&&J.update&&J.update(Y,!0)})),!0));U?(U.forEach(K=>{switch(K.type){case"update":var Y=K.index,J=K.data,ee=this._partialUpdateRow(K.oldItem,J,Y,B);w.push(Y),k.push("update"),R.push(J),N[Y]=J,T.push(ee);break;case"insert":w.push(K.index),k.push("insert"),R.push(K.data),T.push(void 0),N.splice(K.index,0,K.data);break;case"remove":w.push(K.index),k.push("remove"),N.splice(K.index,1),R.push(K.oldItem),T.push(void 0)}}),S.repaintChangesOnly=!0,S.changeType="update",S.rowIndices=w,S.columnIndices=T,S.changeTypes=k,S.items=R,V.length&&(S.isLiveUpdate=!0),this._correctRowIndices(K=>{var Y=this._rowIndexOffset||0,J=this.getRowIndexOffset(),ee=W(V[K-Y]),G=P[ee];return G>=0?G+J-K:0})):this._applyChangeFull(S)},_correctRowIndices:p.ZT,_afterProcessItems:function(S){return S},_updateItemsCore:function(S){var O,w=this._dataSource;if(S.changeType=S.changeType||"refresh",w){var k=this._cachedProcessedItems;S.useProcessedItemsCache&&k?O=k:(O=S.items||w.items(),O=this._beforeProcessItems(O),O=this._processItems(O,S),this._cachedProcessedItems=O),O=this._afterProcessItems(O,S),S.items=O;var R=this._items.length===O.length&&this._items;this._applyChange(S);var P=this.getRowIndexDelta();(0,s.S6)(this._items,(B,W)=>{W.rowIndex=B-P,R&&(W.cells=R[B].cells||[]);var N=O[B];N&&(W.loadIndex=N.loadIndex)}),this._rowIndexOffset=this.getRowIndexOffset()}else this._items=[]},_handleChanging:function(S){var O=this.getVisibleRows();this.dataSource()&&S.changes.forEach(function(T){if("insert"===T.type&&T.index>=0){for(var k=0,R=0;R<T.index;R++){var P=O[R];P&&("data"===P.rowType||"group"===P.rowType)&&k++}T.index=k}})},updateItems:function(S,O){var w;if(S=S||{},void 0!==this._repaintChangesOnly)S.repaintChangesOnly=null!==(w=S.repaintChangesOnly)&&void 0!==w?w:this._repaintChangesOnly,S.needUpdateDimensions=S.needUpdateDimensions||this._needUpdateDimensions;else if(S.changes)S.repaintChangesOnly=this.option("repaintChangesOnly");else if(O){var T=this.dataSource().operationTypes();S.repaintChangesOnly=T&&!T.grouping&&!T.filtering&&this.option("repaintChangesOnly"),S.isDataChanged=!0,T&&(T.reload||T.paging||T.groupExpanding)&&(S.needUpdateDimensions=!0)}!this._updateLockCount||S.cancel?(this._updateItemsCore(S),!S.cancel&&this._fireChanged(S)):this._changes.push(S)},loadingOperationTypes:function(){var S=this.dataSource();return S&&S.loadingOperationTypes()||{}},_fireChanged:function(S){this._currentOperationTypes&&(S.operationTypes=this._currentOperationTypes,this._currentOperationTypes=null),(0,p.g0)(()=>{this.changed.fire(S)})},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var S=this._dataSource;if(S)return S.pageIndex(0),this._isFilterApplying=!0,this.reload().done(()=>{this._isFilterApplying&&this.pageChanged.fire()})},resetFilterApplying:function(){this._isFilterApplying=!1},filter:function(S){var O=this._dataSource,w=O&&O.filter();if(0===arguments.length)return w;S=arguments.length>1?Array.prototype.slice.call(arguments,0):S,!I.Z.equalFilterParameters(w,S)&&(O&&O.filter(S),this._applyFilter())},clearFilter:function(S){var O=this,w=O._columnsController,T=function(k){for(var R=w.columnCount(),P=0;P<R;P++)w.columnOption(P,k,void 0)};if(O.component.beginUpdate(),arguments.length>0)switch(S){case"dataSource":O.filter(null);break;case"search":O.searchByText("");break;case"header":T("filterValues");break;case"row":T("filterValue")}else O.filter(null),O.searchByText(""),T("filterValue"),T("bufferedFilterValue"),T("filterValues");O.component.endUpdate()},_fireDataSourceChanged:function(){var S=this;S.changed.add(function O(){S.changed.remove(O),S.dataSourceChanged.fire()})},_getDataSourceAdapter:p.ZT,_createDataSourceAdapterCore:function(S,O){var T=this._getDataSourceAdapter().create(this.component);return T.init(S,O),T},isLocalStore:function(S){return(S=S||this.store())instanceof C.Z},isCustomStore:function(S){return(S=S||this.store())instanceof f.Z},_createDataSourceAdapter:function(S){var O=this.option("remoteOperations"),w=S.store(),T={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return O&&O.groupPaging&&(O=(0,d.l)({},T,O)),"auto"===O&&(O=this.isLocalStore(w)||this.isCustomStore(w)?{}:{filtering:!0,sorting:!0,paging:!0}),!0===O&&(O=T),this._createDataSourceAdapterCore(S,O)},setDataSource:function(S){var O=this._dataSource;!S&&O&&(O.cancelAll(),O.changed.remove(this._dataChangedHandler),O.loadingChanged.remove(this._loadingChangedHandler),O.loadError.remove(this._loadErrorHandler),O.customizeStoreLoadOptions.remove(this._customizeStoreLoadOptionsHandler),O.changing.remove(this._changingHandler),O.pushed.remove(this._dataPushedHandler),O.dispose(this._isSharedDataSource)),S&&(S=this._createDataSourceAdapter(S)),this._dataSource=S,S&&(this._fireDataSourceChanged(),this._isLoading=!S.isLoaded(),this._needApplyFilter=!0,this._isAllDataTypesDefined=this._columnsController.isAllDataTypesDefined(),S.changed.add(this._dataChangedHandler),S.loadingChanged.add(this._loadingChangedHandler),S.loadError.add(this._loadErrorHandler),S.customizeStoreLoadOptions.add(this._customizeStoreLoadOptionsHandler),S.changing.add(this._changingHandler),S.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 S=this._dataSource;return S&&S.store()},loadAll:function(S){var O=this,w=new g.BH,T=O._dataSource;if(T)if(S){var k={data:S,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:O.getCombinedFilter(),group:T.group(),sort:T.sort()}};T._handleDataLoaded(k),(0,g.gx)(k.data).done(function(P){P=O._beforeProcessItems(P),w.resolve(O._processItems(P,{changeType:"loadingAll"}),k.extra&&k.extra.summary)}).fail(w.reject)}else if(T.isLoading())w.reject();else{var R=(0,d.l)({},T.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});T.load(R).done(function(P,B){P=O._beforeProcessItems(P),P=O._processItems(P,{changeType:"loadingAll"}),w.resolve(P,B&&B.summary)}).fail(w.reject)}else w.resolve([]);return w},getKeyByRowIndex:function(S,O){var w=this.items(O)[S];if(w)return w.key},getRowIndexByKey:function(S,O){return I.Z.getIndexByKey(S,this.items(O))},keyOf:function(S){var O=this.store();if(O)return O.keyOf(S)},byKey:function(S){var T,O=this.store(),w=this.getRowIndexByKey(S);if(O)return w>=0&&(T=(new g.BH).resolve(this.items()[w].data)),T||O.byKey(S)},key:function(){var S=this.store();if(S)return S.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(S){var O=this,w=new g.BH,T=[],k=[];return(0,s.S6)(S,function(R,P){T.push(O.byKey(P).done(function(B){k[R]=B}))}),g.gx.apply(o.Z,T).always(function(){w.resolve(k)}),w},pageIndex:function(S){return y(this,"pageIndex",S)},pageSize:function(S){return y(this,"pageSize",S)},beginCustomLoading:function(S){this._isCustomLoading=!0,this._loadingText=S||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(S){!0===S?S={reload:!0,changesOnly:!0}:S||(S={lookup:!0,selection:!0,reload:!0});var O=this,w=O.getDataSource(),T=S.changesOnly,k=new g.BH,R=function(){O._repaintChangesOnly=!!T};return(0,g.gx)(!S.lookup||O._columnsController.refresh()).always(function(){S.load||S.reload?(w&&w.on("customizeLoadResult",R),(0,g.gx)(O.reload(S.reload,T)).always(function(){w&&w.off("customizeLoadResult",R),O._repaintChangesOnly=void 0}).done(k.resolve).fail(k.reject)):(O.updateItems({repaintChangesOnly:S.changesOnly}),k.resolve())}),k.promise()},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},repaintRows:function(S,O){((S=Array.isArray(S)?S:[S]).length>1||(0,u.$K)(S[0]))&&this.updateItems({changeType:"update",rowIndices:S,isFullUpdate:!O})},skipProcessingPagingChange:function(S){return this._skipProcessingPagingChange&&("paging.pageIndex"===S||"paging.pageSize"===S)},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}},I.Z.proxyMethod(E,"load"),I.Z.proxyMethod(E,"reload"),I.Z.proxyMethod(E,"push"),I.Z.proxyMethod(E,"itemsCount",0),I.Z.proxyMethod(E,"totalItemsCount",0),I.Z.proxyMethod(E,"hasKnownLastPage",!0),I.Z.proxyMethod(E,"isLoaded",!0),I.Z.proxyMethod(E,"totalCount",0),E))}}},6181:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>h});var o=l(4817),c=l(5365),I=l(9617),C=l(7674),f=l(1828),a=l(2718),p=l(5873),s=l(820),u=l(1771),d=l(4270);const h=I.Z.Controller.inherit(function(){function g(w,T){if(w&&(w=w.slice(0),T))for(var k=0;k<w.length;k++)w[k]=(0,p.l)({key:w[k].key},w[k]),w[k].items=g(w[k].items,T-1);return w}function x(w,T,k){var R={reload:!0,fullReload:!0};return T&&((R={sorting:!I.Z.equalSortParameters(w.sort,T.sort),grouping:!I.Z.equalSortParameters(w.group,T.group,!0),groupExpanding:!I.Z.equalSortParameters(w.group,T.group)||T.groupExpand,filtering:!I.Z.equalFilterParameters(w.filter,T.filter),pageIndex:w.pageIndex!==T.pageIndex,skip:w.skip!==T.skip,take:w.take!==T.take,pageSize:w.pageSize!==T.pageSize,fullReload:k,reload:!1,paging:!1}).reload=k||R.sorting||R.grouping||R.filtering,R.paging=R.pageIndex||R.pageSize||R.take),R}function b(w,T){var k=I.Z.normalizeSortingInfo(w.group||w.storeLoadOptions.group||w.loadOptions.group).length,R=[];if(y(R,w,k))return R;T&&function(P,B,W){var N=P.length,{storeLoadOptions:V}=B;if(void 0!==V.skip&&V.take&&!W){var U=[];y(U,B,W,!0);var Y,J,K=U.length;(N||K)&&(B.skip=null!==(Y=B.skip)&&void 0!==Y?Y:V.skip,B.take=null!==(J=B.take)&&void 0!==J?J:V.take),N&&(V.skip+=N,V.take-=N,B.cachedDataPartBegin=P),K&&(V.take-=K,B.cachedDataPartEnd=U.reverse())}}(R,w,k)}function y(w,T,k,R){var P,B,W,{storeLoadOptions:N}=T,V=null!==(P=null!==(B=T.take)&&void 0!==B?B:N.take)&&void 0!==P?P:0,U=null===(W=T.cachedData)||void 0===W?void 0:W.items;if(V&&U){for(var K,Y,J=null!==(K=null!==(Y=T.skip)&&void 0!==Y?Y:N.skip)&&void 0!==K?K:0,j=0;j<V;j++){var ee=R?V-1-j:j,G=ee+J,q=U[G];if(void 0===q&&G in U)return!0;var Z=E(T,q,k,ee,V);if(!Z)return!1;w.push(Z)}return!0}return!1}function E(w,T,k,R,P){return k&&T?function N(V,U,K,Y){if(U&&V){var J=(0,o.Z)({},V),j=K[0]||0,ee=Y[0],G=V.items;if(G){if(void 0===ee&&!G[j])return;J.items=[],K.length&&(J.isContinuation=!0),Y.length&&(J.isContinuationOnNextPage=!0);for(var q=0;void 0===ee?G[q+j]:q<ee;q++){var X=q+1===ee,M=N(G[q+j],U-1,0===q?K.slice(1):[],X?Y.slice(1):[]);if(void 0===M)return;J.items.push(M)}}return J}return V}(T,k,0===R&&w.skips||[],R===P-1&&w.takes||[]):T}function S(w,T,k,R){if(k&&T){var P=(0,o.Z)({},T);delete P.isContinuation,delete P.isContinuationOnNextPage;var B=R[0]||0;return T.items&&(P.items=w?.items||{},T.items.forEach((W,N)=>{var V=N+B,U=0===N?R.slice(1):[];P.items[V]=S(P.items[V],W,k-1,U)})),P}return T}var O={init:function(w,T){var k=this;k._dataSource=w,k._remoteOperations=T||{},k._isLastPage=!w.isLastPage(),k._hasLastPage=!1,k._currentTotalCount=0,k._cachedData={items:{}},k._lastOperationTypes={},k._eventsStrategy=w._eventsStrategy,k._totalCountCorrection=0,k._isLoadingAll=!1,k.changed=(0,c.Z)(),k.loadingChanged=(0,c.Z)(),k.loadError=(0,c.Z)(),k.customizeStoreLoadOptions=(0,c.Z)(),k.changing=(0,c.Z)(),k.pushed=(0,c.Z)(),k._dataChangedHandler=k._handleDataChanged.bind(k),k._customizeStoreLoadOptionsHandler=k._handleCustomizeStoreLoadOptions.bind(k),k._dataLoadedHandler=k._handleDataLoaded.bind(k),k._loadingChangedHandler=k._handleLoadingChanged.bind(k),k._loadErrorHandler=k._handleLoadError.bind(k),k._pushHandler=k._handlePush.bind(k),k._changingHandler=k._handleChanging.bind(k),w.on("changed",k._dataChangedHandler),w.on("customizeStoreLoadOptions",k._customizeStoreLoadOptionsHandler),w.on("customizeLoadResult",k._dataLoadedHandler),w.on("loadingChanged",k._loadingChangedHandler),w.on("loadError",k._loadErrorHandler),w.on("changing",k._changingHandler),w.store().on("beforePush",k._pushHandler),(0,a.S6)(w,function(R,P){!k[R]&&(0,f.mf)(P)&&(k[R]=function(){return this._dataSource[R].apply(this._dataSource,arguments)})})},remoteOperations:function(){return this._remoteOperations},dispose:function(w){var T=this._dataSource,k=T.store();T.off("changed",this._dataChangedHandler),T.off("customizeStoreLoadOptions",this._customizeStoreLoadOptionsHandler),T.off("customizeLoadResult",this._dataLoadedHandler),T.off("loadingChanged",this._loadingChangedHandler),T.off("loadError",this._loadErrorHandler),T.off("changing",this._changingHandler),k&&k.off("beforePush",this._pushHandler),w||T.dispose()},refresh:function(w,T){var k=this._dataSource;T.reload&&(this.resetCurrentTotalCount(),this._isLastPage=!k.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 w=this.remoteOperations(),T=x(this._lastLoadOptions||{},{});return!Object.keys(w).every(R=>!T[R]||!w[R])},push:function(w,T){var k=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&(0,u.ii)({keyInfo:k,data:this._cachedStoreData,changes:w}),T||this._applyBatch(w),this.pushed.fire(w)},getDataIndexGetter:function(){if(!this._dataIndexGetter){var w,T,k=this.store();this._dataIndexGetter=R=>{if(!w||T&&T!==this._cachedStoreData){T=this._cachedStoreData||[],w={};for(var B=0;B<T.length;B++)w[(0,C.k3)(k.keyOf(T[B]))]=B}return w[(0,C.k3)(k.keyOf(R))]}}return this._dataIndexGetter},_getKeyInfo:function(){return this.store()},_needToCopyDataObject:()=>!0,_applyBatch:function(w,T){var k=this._getKeyInfo(),R=this._dataSource,P=I.Z.normalizeSortingInfo(this.group()).length,B="reshape"===this.option("editing.refreshMode"),W="virtual"===this.option("scrolling.mode");w=w.filter(function(K){return!R.paginate()||"insert"!==K.type||void 0!==K.index});var N=()=>P?this.itemsCount():this.items().length,V=N();(0,u.ii)({keyInfo:k,data:this._items,changes:w,groupCount:P,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(0,u.ii)({keyInfo:k,data:R.items(),changes:w,groupCount:P,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(this._currentTotalCount>0||(T||!B)&&W)&&(this._totalCountCorrection+=N()-V),w.splice(0,w.length)},_handlePush:function(w){var{changes:T}=w;this.push(T,!0)},_handleChanging:function(w){this.changing.fire(w),this._applyBatch(w.changes,!0)},_needCleanCacheByOperation:function(w,T){var k=["filtering","sorting","paging"],R=k.indexOf(w);return(R>=0?k.slice(R):[w]).some(B=>T[B])},_customizeRemoteOperations:function(w,T){var k=this._cachedStoreData,R=this._cachedPagingData,P=this._cachedData;(w.storeLoadOptions.filter&&!w.remoteOperations.filtering||w.storeLoadOptions.sort&&!w.remoteOperations.sorting)&&(w.remoteOperations={filtering:w.remoteOperations.filtering,summary:w.remoteOperations.summary}),T.fullReload?(k=void 0,R=void 0,P={items:{}}):(T.reload?(R=void 0,P={items:{}}):T.groupExpanding&&(P={items:{}}),(0,a.S6)(T,(B,W)=>{W&&this._needCleanCacheByOperation(B,w.remoteOperations)&&(k=void 0,R=void 0)})),R&&(w.remoteOperations.paging=!1),w.cachedStoreData=k,w.cachedPagingData=R,w.cachedData=P,w.isCustomLoading||(this._cachedStoreData=k,this._cachedPagingData=R,this._cachedData=P)},_handleCustomizeStoreLoadOptions(w){var T;this._handleDataLoading(w),0!==(null===(T=w.data)||void 0===T?void 0:T.length)&&(w.data=b(w,!0)||w.cachedStoreData)},_handleDataLoading:function(w){var T=this._dataSource,k=this._lastLoadOptions;this.customizeStoreLoadOptions.fire(w),w.delay=this.option("loadingTimeout"),w.originalStoreLoadOptions=w.storeLoadOptions,w.remoteOperations=(0,p.l)({},this.remoteOperations());var R=!this.isLoaded()&&!this._isRefreshing;this.option("integrationOptions.renderedOnServer")&&!this.isLoaded()&&(w.delay=void 0);var P=(0,p.l)({pageIndex:this.pageIndex(),pageSize:this.pageSize()},w.storeLoadOptions),B=x(P,k,R);if(this._customizeRemoteOperations(w,B),!w.isCustomLoading){var W=this._isRefreshing;w.pageIndex=T.pageIndex(),w.lastLoadOptions=P,w.operationTypes=B,this._loadingOperationTypes=B,this._isRefreshing=!0,(0,d.gx)(W||this._isRefreshed||this.refresh(w,B)).done(()=>{this._lastOperationId===w.operationId&&(this._isRefreshed=!0,this.load().always(()=>{this._isRefreshed=!1}))}).fail(()=>{T.cancel(w.operationId)}).always(()=>{this._isRefreshing=!1}),T.cancel(this._lastOperationId),this._lastOperationId=w.operationId,this._isRefreshing&&T.cancel(this._lastOperationId)}this._handleDataLoadingCore(w)},_handleDataLoadingCore:function(w){var T=w.remoteOperations;w.loadOptions={};var k=w.cachedData.extra,R={filter:!T.filtering,sort:!T.sorting,group:!T.grouping,summary:!T.summary,skip:!T.paging,take:!T.paging,requireTotalCount:k&&"totalCount"in k||!T.paging};(0,a.S6)(w.storeLoadOptions,function(P,B){R[P]&&(w.loadOptions[P]=B,delete w.storeLoadOptions[P])}),k&&(w.extra=k)},_handleDataLoaded:function(w){var T=w.loadOptions,k=w.remoteOperations&&!w.remoteOperations.paging,R=w.cachedData,P=w.storeLoadOptions,B=!1!==this.option("cacheEnabled")&&P,W=B&&!w.isCustomLoading&&R&&(!k||P.group),N=B&&k,V=N&&!w.isCustomLoading;if(T){k&&(w.skip=T.skip,w.take=T.take,delete T.skip,delete T.take),T.group&&(T.group=w.group||T.group);var K,Y,U=I.Z.normalizeSortingInfo(w.group||P.group||T.group).length;w.cachedDataPartBegin&&(w.data=w.cachedDataPartBegin.concat(w.data)),w.cachedDataPartEnd&&(w.data=w.data.concat(w.cachedDataPartEnd)),W&&b(w)||(N&&w.cachedPagingData?w.data=g(w.cachedPagingData,U):(V&&(this._cachedStoreData?w.mergeStoreLoadData&&(w.data=this._cachedStoreData=this._cachedStoreData.concat(w.data)):this._cachedStoreData=g(w.data,I.Z.normalizeSortingInfo(P.group).length)),new s.Z(w.data).load(T).done(J=>{w.data=J,V&&(this._cachedPagingData=g(w.data,U))}).fail(J=>{w.data=(new d.BH).reject(J)})),T.requireTotalCount&&k&&(w.extra=(0,f.PO)(w.extra)?w.extra:{},w.extra.totalCount=w.data.length),w.extra&&w.extra.totalCount>=0&&(!1===P.requireTotalCount||!1===T.requireTotalCount)&&(w.extra.totalCount=-1),!T.data&&(P.requireTotalCount||(null!==(K=null===(Y=w.extra)||void 0===Y?void 0:Y.totalCount)&&void 0!==K?K:-1)>=0)&&(this._totalCountCorrection=0),this._handleDataLoadedCore(w),W&&(R.extra=R.extra||(0,p.l)({},w.extra),(0,d.gx)(w.data).done(J=>{!function(j,ee,G){for(var q,Z,X,M,{storeLoadOptions:se}=j,ge=null!==(q=null!==(Z=j.skip)&&void 0!==Z?Z:se.skip)&&void 0!==q?q:0,De=null!==(X=null!==(M=j.take)&&void 0!==M?M:se.take)&&void 0!==X?X:0,Fe=0;Fe<De;Fe++){var Ae=Fe+ge,ne=j.cachedData.items;ne[Ae]=S(ne[Ae],ee[Fe],G,0===Fe&&j.skips||[])}}(w,J,U)}))),(0,d.gx)(w.data).done(()=>{w.lastLoadOptions&&(this._lastLoadOptions=w.lastLoadOptions,Object.keys(w.operationTypes).forEach(J=>{this._lastOperationTypes[J]=this._lastOperationTypes[J]||w.operationTypes[J]}))}),w.storeLoadOptions=w.originalStoreLoadOptions}else this._dataSource.cancel(w.operationId)},_handleDataLoadedCore:function(w){w.remoteOperations&&!w.remoteOperations.paging&&Array.isArray(w.data)&&(void 0!==w.skip&&(w.data=w.data.slice(w.skip)),void 0!==w.take&&(w.data=w.data.slice(0,w.take)))},_handleLoadingChanged:function(w){this.loadingChanged.fire(w)},_handleLoadError:function(w){this.loadError.fire(w),this.changed.fire({changeType:"loadError",error:w})},_loadPageSize:function(){return this.pageSize()},_handleDataChanged:function(w){var T,k=this._dataSource,R=!1,P=!w||(0,f.$K)(w.changeType),B=this.itemsCount();P&&(this._isLastPage=!B||!this._loadPageSize()||B<this._loadPageSize(),this._isLastPage&&(this._hasLastPage=!0)),k.totalCount()>=0?k.pageIndex()>=this.pageCount()&&(k.pageIndex(this.pageCount()-1),this.pageIndex(k.pageIndex()),this.resetPagesCache(),k.load(),R=!0):P&&((T=k.pageIndex()*this.pageSize()+B)>this._currentTotalCount&&(this._currentTotalCount=T,(0===k.pageIndex()||!this.option("scrolling.legacyMode"))&&(this._totalCountCorrection=0)),0===B&&k.pageIndex()>=this.pageCount()&&(k.pageIndex(this.pageCount()-1),"infinite"!==this.option("scrolling.mode")&&(k.load(),R=!0))),R||(this._operationTypes=this._lastOperationTypes,this._lastOperationTypes={},this.component._optionCache={},this.changed.fire(w),this.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(w){var T=this;T._isCustomLoading=!0,w.always(function(){T._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 w=this._dataSource;return arguments.length||w.paginate()?w.pageSize.apply(w,arguments):0},pageCount:function(){var w=this.totalItemsCount()-this._totalCountCorrection,T=this.pageSize();return T&&w>0?Math.max(1,Math.ceil(w/T)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(w,T){var k=this._dataSource,R=new d.BH;if(k)return(T=T||k.store()).load(w).done(function(P,B){P&&!Array.isArray(P)&&Array.isArray(P.data)&&(B=P,P=P.data),R.resolve(P,B)}).fail(R.reject),R},isCustomLoading:function(){return!!this._isCustomLoading},load:function(w){var N,V,T=this,k=T._dataSource,R=new d.BH;if(w){var P=k.store(),B=k.loadOptions(),W={storeLoadOptions:w,isCustomLoading:!0};return(0,a.S6)(P._customLoadOptions()||[],function(N,V){V in W.storeLoadOptions||(W.storeLoadOptions[V]=B[V])}),this._isLoadingAll=w.isLoadingAll,T._scheduleCustomLoadCallbacks(R),k._scheduleLoadCallbacks(R),T._handleCustomizeStoreLoadOptions(W),N=function(){if(!k.store())return R.reject("canceled");(0,d.gx)(W.data||T.loadFromStore(W.storeLoadOptions)).done(function(N,V){W.data=N,W.extra=V||{},T._handleDataLoaded(W),w.requireTotalCount&&void 0===W.extra.totalCount&&(W.extra.totalCount=P.totalCount(W.storeLoadOptions)),(0,d.gx)(W.data,W.extra.totalCount).done(function(U,K){W.extra.totalCount=K,R.resolve(U,W.extra)}).fail(R.reject)}).fail(R.reject)},V=T.option("loadingTimeout"),(0,f.$K)(V)?(0,C.Wi)(N,V):N(),R.fail(function(){T._eventsStrategy.fireEvent("loadError",arguments)}).always(()=>{this._isLoadingAll=!1}).promise()}return k.load()},reload:function(w){return w?this._dataSource.reload():this._dataSource.load()},getCachedStoreData:function(){return this._cachedStoreData}};return O}())},260:(kn,he,l)=>{"use strict";l.d(he,{X:()=>de});var o=l(4817),c=l(9904),I=l(9897),C=l(913),f=l(6492),a=l(6520),p=l(1828),s=l(2718),u=l(5873),d=l(3390),h=l(227),g=l(8690),x=l(2879),b=l(1771),y=l(8225),E=l(4121),S=l(9009),O=l(2941),w=l(4270),T=l(7674),k=l(4328),R=l(6468),P=l(2834),B="readonly",N="dx-selection",U="dx-command-edit",K=U+"-with-icons",Y="__DX_INSERT_INDEX__",J="dx-row-inserted",j="dx-row-modified",ee="dx-cell-modified",q="dx-cell-focus-disabled",Z="update",X="click",M={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete",delete:"dx-link-delete",add:"dx-link-add"},se={save:"save",cancel:"revert",edit:"edit",undelete:"revert",delete:"trash",add:"add"},ge={edit:"editRow",delete:"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},De={add:"allowAdding",edit:"allowUpdating",delete:"allowDeleting"},Fe=["edit","save","cancel","delete","undelete"],Ae="editing.changes",ne=function(le){return function(pe){var Ee=pe instanceof Error?pe:new Error(pe&&String(pe)||"Unknown error");le.reject(Ee)}},fe=function(le,pe){return pe.isEditing||le&&pe.column.allowEditing},_e=function(le,pe){var Ee=!!pe.column.command,ae=fe(le,pe);return"data"===pe.rowType&&!Ee&&(ae||pe.column.showEditorAlways)},de={defaultOptions:function(){return{editing:{mode:"row",refreshMode:"full",newRowPosition:R.os,allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,confirmDelete:!0,texts:{editRow:S.Z.format("dxDataGrid-editingEditRow"),saveAllChanges:S.Z.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:S.Z.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:S.Z.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:S.Z.format("dxDataGrid-editingCancelRowChanges"),addRow:S.Z.format("dxDataGrid-editingAddRow"),deleteRow:S.Z.format("dxDataGrid-editingDeleteRow"),undeleteRow:S.Z.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:S.Z.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click",editRowKey:null,editColumnName:null,changes:[]},useLegacyColumnButtonTemplate:!1}},controllers:{editing:d.Z.ViewController.inherit(function(){var le=(ae,te)=>{var re=-1;return ae.some((oe,ye)=>{if(pe(oe)===te)return re=ye,!0}),re};function pe(ae){return(0,p.Kn)(ae)?ae.name:ae}var Ee={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(ae=>ae.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[R.GG]=!0,this.component._optionsByReference[Ae]=!0},getEditMode:function(){var ae=this.option("editing.mode");return-1!==R.So.indexOf(ae)?ae:R.CM},_getDefaultEditorTemplate:function(){return(ae,te)=>{var re=(0,c.Z)("<div>").appendTo(ae);this.getController("editorFactory").createEditor(re,(0,u.l)({},te.column,{value:te.value,setValue:te.setValue,row:te.row,parentType:"dataRow",width:null,readOnly:!te.setValue,isOnForm:te.isOnForm,id:te.id}))}},_getNewRowPosition:function(){var ae=this.option("editing.newRowPosition");if("virtual"===this.option("scrolling.mode"))switch(ae){case R.UM:return R.os;case R.IM:return R.Xt;default:return ae}return ae},getChanges:function(){return this.option(Ae)},getInsertRowCount:function(){return this.option(Ae).filter(te=>"insert"===te.type).length},resetChanges:function(){var te=this.getChanges()?.length;te&&this._silentOption(Ae,[])},_getInternalData:function(ae){return this._internalState.filter(te=>(0,T.bY)(te.key,ae))[0]},_addInternalData:function(ae){var te=this._getInternalData(ae.key);return te?(0,u.l)(te,ae):(this._internalState.push(ae),ae)},_getOldData:function(ae){var te;return null===(te=this._getInternalData(ae))||void 0===te?void 0:te.oldData},getUpdatedData:function(ae){var te=this._dataController.keyOf(ae),re=this.getChanges(),oe=x.Z.getIndexByKey(te,re);return re[oe]?(0,b.FL)(ae,re[oe].data):ae},getInsertedData:function(){return this.getChanges().filter(ae=>ae.data&&ae.type===R.H3).map(ae=>ae.data)},getRemovedData:function(){return this.getChanges().filter(ae=>this._getOldData(ae.key)&&ae.type===R.M$).map(ae=>this._getOldData(ae.key))},_fireDataErrorOccurred:function(ae){if("cancel"!==ae){var te=this.getPopupContent();this._dataController.dataErrorOccurred.fire(ae,te)}},_needToCloseEditableCell:T.ZT,_closeEditItem:T.ZT,_handleDataChanged:T.ZT,_isDefaultButtonVisible:function(ae,te){var re=!0;switch(ae.name){case"delete":re=this.allowDeleting(te);break;case"undelete":re=!1}return re},_isButtonVisible:function(ae,te){var re=ae.visible;return(0,p.$K)(re)?(0,p.mf)(re)?re.call(ae,{component:te.component,row:te.row,column:te.column}):re:this._isDefaultButtonVisible(ae,te)},_isButtonDisabled:function(ae,te){var re=ae.disabled;return(0,p.mf)(re)?re.call(ae,{component:te.component,row:te.row,column:te.column}):!!re},_getButtonConfig:function(ae,te){var mt,re=(0,p.Kn)(ae)?ae:{},oe=pe(ae),ye={save:(mt=te.component.option("editing.texts")||{}).saveRowChanges,cancel:mt.cancelRowChanges,edit:mt.editRow,undelete:mt.undeleteRow,delete:mt.deleteRow,add:mt.addRowToNode},Pe=ge[oe],Ne=this.option("editing"),ft=De[oe],tt=!ft||Ne[ft];return(0,u.l)({name:oe,text:ye[oe],cssClass:M[oe]},{onClick:Pe&&(Be=>{var mt=Be.event;mt.stopPropagation(),mt.preventDefault(),setTimeout(()=>{te.row&&tt&&this[Pe]&&this[Pe](te.row.rowIndex)})})},re)},_getEditingButtons:function(ae){var te,re=!!ae.column.buttons,oe=(ae.column.buttons||[]).slice();return re?((te=le(oe,"edit"))>=0&&(le(oe,"save")<0&&oe.splice(te+1,0,"save"),le(oe,"cancel")<0&&oe.splice(le(oe,"save")+1,0,"cancel")),(te=le(oe,"delete"))>=0&&le(oe,"undelete")<0&&oe.splice(te+1,0,"undelete")):oe=Fe.slice(),oe.map(ye=>this._getButtonConfig(ye,ae))},_renderEditingButtons:function(ae,te,re,oe){te.forEach(ye=>{this._isButtonVisible(ye,re)&&this._createButton(ae,ye,re,oe)})},_getEditCommandCellTemplate:function(){return(ae,te,re)=>{var oe=(0,c.Z)(ae);if("data"===te.rowType){var ye=this._getEditingButtons(te);this._renderEditingButtons(oe,ye,te,re),te.watch&&te.watch(()=>ye.map(Pe=>this._isButtonVisible(Pe,te)),()=>{oe.empty(),this._renderEditingButtons(oe,ye,te)})}else x.Z.setEmptyText(oe)}},isRowBasedEditMode:function(){var ae=this.getEditMode();return-1!==R.wO.indexOf(ae)},getFirstEditableColumnIndex:function(){var te,re=this.getController("columns").getVisibleColumns();return(0,s.S6)(re,function(oe,ye){if(ye.allowEditing)return te=oe,!1}),te},getFirstEditableCellInRow:function(ae){var te=this.getView("rowsView");return te&&te._getCellElement(ae||0,this.getFirstEditableColumnIndex())},getFocusedCellInRow:function(ae){return this.getFirstEditableCellInRow(ae)},getIndexByKey:function(ae,te){return x.Z.getIndexByKey(ae,te)},hasChanges:function(ae){for(var te=this.getChanges(),re=!1,oe=0;oe<te?.length;oe++)if(te[oe].type&&(!(0,p.$K)(ae)||this._dataController.getRowIndexByKey(te[oe].key)===ae)){re=!0;break}return re},dispose:function(){this.callBase(),clearTimeout(this._inputFocusTimeoutID),C.Z.off(I.Z.getDocument(),g.Z.up,this._pointerUpEditorHandler),C.Z.off(I.Z.getDocument(),g.Z.down,this._pointerDownEditorHandler),C.Z.off(I.Z.getDocument(),h.u,this._saveEditorHandler)},_silentOption:function(ae,te){"editing.changes"===ae&&(this._changes=(0,P.HR)([],te)),this.callBase.apply(this,arguments)},optionChanged:function(ae){if("editing"===ae.name){var te=ae.fullName;te===R.GG?this._handleEditRowKeyChange(ae):te===Ae?(0,T.bY)(ae.value,this._changes,-1)||(this._changes=(0,P.HR)([],ae.value),this._handleChangesChange(ae)):ae.handled||(this._columnsController.reinit(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey()),ae.handled=!0}else this.callBase(ae)},_handleEditRowKeyChange:function(ae){var te=this._dataController.getRowIndexByKey(ae.value),re=this._getEditRowIndexCorrection(),oe=this._dataController.getRowIndexByKey(ae.previousValue)+re;(0,p.$K)(ae.value)?ae.value!==ae.previousValue&&this._editRowFromOptionChanged(te,oe):this.cancelEditData()},_handleChangesChange:function(ae){var te=this._dataController;!ae.value.length&&!ae.previousValue.length||(ae.value.forEach(oe=>{if("insert"===oe.type)this._addInsertInfo(oe);else{var ye,Pe=te.items(),Ne=te.getRowIndexByKey(oe.key);this._addInternalData({key:oe.key,oldData:null===(ye=Pe[Ne])||void 0===ye?void 0:ye.data})}}),te.updateItems({repaintChangesOnly:!0,isLiveUpdate:!1,isOptionChanged:!0}))},publicMethods:function(){return["addRow","deleteRow","undeleteRow","editRow","saveEditData","cancelEditData","hasEditData"]},refresh:function(){(0,p.$K)(this._pageIndex)&&this._refreshCore.apply(this,arguments)},_refreshCore:T.ZT,isEditing:function(){return(0,p.$K)(this.option(R.GG))},isEditRow:function(){return!1},_setEditRowKey:function(ae,te){te?this._silentOption(R.GG,ae):this.option(R.GG,ae)},_setEditRowKeyByIndex:function(ae,te){var re=this._dataController.getKeyByRowIndex(ae);void 0!==re?this._setEditRowKey(re,te):this._dataController.fireError("E1043")},getEditRowIndex:function(){return this._getVisibleEditRowIndex()},getEditFormRowIndex:function(){return-1},isEditRowByIndex(ae){var te=this._dataController.getKeyByRowIndex(ae);return(0,p.$K)(te)&&(0,T.bY)(this.option(R.GG),te)&&this._getVisibleEditRowIndex()===ae},isEditCell:function(ae,te){return this.isEditRowByIndex(ae)&&this._getVisibleEditColumnIndex()===te},getPopupContent:T.ZT,_isProcessedItem:function(ae){return!1},_getInsertRowIndex:function(ae,te,re){var oe=-1,ye=this._dataController,Pe=this._getInsertAfterOrBeforeKey(te);return(0,p.$K)(Pe)||0!==ae.length?(0,p.$K)(Pe)&&ae.some((Ne,ft)=>{var tt=re||this._isProcessedItem(Ne);if((0,p.Kn)(Ne)&&(tt||(0,p.$K)(Ne[Y])?(0,T.bY)(Ne.key,Pe)&&(oe=ft):(0,T.bY)(ye.keyOf(Ne),Pe)&&(oe=ft)),oe>=0){var Be=ae[oe+1];return Be&&("detail"===Be.rowType||"detailAdaptive"===Be.rowType)&&(0,p.$K)(te.insertAfterKey)?void 0:((0,p.$K)(te.insertAfterKey)&&(oe+=1),!0)}}):oe=0,oe},_generateNewItem:function(ae){var te,re={key:ae},oe=null===(te=this._getInternalData(ae))||void 0===te?void 0:te.insertInfo;return null!=oe&&oe[Y]&&(re[Y]=oe[Y]),re},_getLoadedRowIndex:function(ae,te,re){var oe=this._getInsertRowIndex(ae,te,re),ye=this._dataController;if(oe<0){var Pe=this._getNewRowPosition(),Ne=ye.pageIndex(),ft=this._getInsertAfterOrBeforeKey(te);Pe===R.rk||0!==Ne||(0,p.$K)(ft)?Pe===R.rk&&ye.isLastPageLoaded()&&(oe=ae.length):oe=0}return oe},processItems:function(ae,te){return this.update(te.changeType),this.getChanges().forEach(ye=>{var Pe;if(ye.type===R.H3){var ft=ye.key,tt=null===(Pe=this._getInternalData(ft))||void 0===Pe?void 0:Pe.insertInfo;(!(0,p.$K)(ft)||!(0,p.$K)(tt))&&(ft=(tt=this._addInsertInfo(ye)).key);var Be=this._getLoadedRowIndex(ae,ye),mt=this._generateNewItem(ft);Be>=0&&ae.splice(Be,0,mt)}}),ae},processDataItem:function(ae,te,re){var oe=te.visibleColumns,ye=ae.data[Y]?ae.data.key:ae.key,Pe=this.getChanges(),Ne=x.Z.getIndexByKey(ye,Pe);ae.isEditing=!1,Ne>=0&&this._processDataItemCore(ae,Pe[Ne],ye,oe,re)},_processDataItemCore:function(ae,te,re,oe,ye){var{data:Pe,type:Ne}=te;switch(Ne){case R.H3:ae.isNewRow=!0,ae.key=re,ae.data=Pe;break;case Z:ae.modified=!0,ae.oldData=ae.data,ae.data=(0,b.FL)(ae.data,Pe),ae.modifiedValues=ye(Pe,oe,!0);break;case R.M$:ae.removed=!0}},_initNewRow:function(ae){if(this.executeAction("onInitNewRow",ae),ae.promise){var te=new w.BH;return(0,w.gx)((0,w.p4)(ae.promise)).done(te.resolve).fail(ne(te)).fail(re=>this._fireDataErrorOccurred(re)),te}},_createInsertInfo:function(){var ae={};return ae[Y]=this._getInsertIndex(),ae},_addInsertInfo:function(ae,te){var re,oe,{key:ye}=ae;if((0,p.$K)(ye)||(ye=String(new f.Z),ae.key=ye),oe=null===(re=this._getInternalData(ye))||void 0===re?void 0:re.insertInfo,!(0,p.$K)(oe)){var Pe=this._getInsertAfterOrBeforeKey(ae);oe=this._createInsertInfo(),(0,p.$K)(Pe)||this._setInsertAfterOrBeforeKey(ae,te)}return this._addInternalData({insertInfo:oe,key:ye}),{insertInfo:oe,key:ye}},_setInsertAfterOrBeforeKey:function(ae,te){var re=this._dataController,oe=re.items(!0),ye=this.getView("rowsView"),Pe=this._getNewRowPosition();switch(Pe){case R.dl:case R.rk:break;case R.UM:case R.IM:if(oe.length){var Ne=Pe===R.UM?0:oe.length-1;ae[0===Ne?"insertBeforeKey":"insertAfterKey"]=oe[Ne].key}break;default:var tt=Pe===R.Xt?ye?.getBottomVisibleItemIndex():ye?.getTopVisibleItemIndex(),Be=re.getVisibleRows()[tt];Be&&(!Be.isEditing&&"detail"===Be.rowType||"detailAdaptive"===Be.rowType)&&tt++;var mt=re.getKeyByRowIndex(tt);(0,p.$K)(mt)&&(ae.insertBeforeKey=mt)}},_getInsertIndex:function(){var ae=0;return this.getChanges().forEach(te=>{var re,oe=null===(re=this._getInternalData(te.key))||void 0===re?void 0:re.insertInfo;(0,p.$K)(oe)&&te.type===R.H3&&oe[Y]>ae&&(ae=oe[Y])}),ae+1},_getInsertAfterOrBeforeKey:function(ae){var te;return null!==(te=ae.insertAfterKey)&&void 0!==te?te:ae.insertBeforeKey},_getPageIndexToInsertRow:function(){var ae=this._getNewRowPosition(),te=this._dataController,re=te.pageIndex(),oe=te.pageCount()-1;return ae===R.dl&&0!==re?0:ae===R.rk&&re!==oe?oe:-1},addRow:function(ae){var te=this._dataController;return te.store()?this._addRow(ae):(te.fireError("E1052",this.component.NAME),(new w.BH).reject())},_addRow:function(ae){var re=this._dataController.store(),oe=re&&re.key(),ye={data:{}},Pe=this._getVisibleEditRowIndex(),Ne=new w.BH;return this.refresh({allowCancelEditing:!0}),this._allowRowAdding()?(oe||(ye.data.__KEY__=String(new f.Z)),(0,w.gx)(this._initNewRow(ye,ae)).done(()=>{this._allowRowAdding()?(0,w.gx)(this._addRowCore(ye.data,ae,Pe)).done(Ne.resolve).fail(Ne.reject):Ne.reject("cancel")}).fail(Ne.reject),Ne.promise()):((0,w.gx)(this._navigateToNewRow(Pe)).done(Ne.resolve).fail(Ne.reject),Ne.promise())},_allowRowAdding:function(){return!(this._getInsertIndex()>1)},_addRowCore:function(ae,te,re){var oe={data:ae,type:R.H3},ye=this._getVisibleEditRowIndex(),Pe=this._addInsertInfo(oe,te);return this._setEditRowKey(Pe.key,!0),this._addChange(oe),this._navigateToNewRow(re,oe,ye)},_navigateToNewRow:function(ae,te,re){var oe,ye,Pe=new w.BH,Ne=this._dataController,ft=this.getController("focus");if(re=null!==(oe=re)&&void 0!==oe?oe:-1,!(te=null!==(ye=te)&&void 0!==ye?ye:this.getChanges().filter(ke=>ke.type===R.H3)[0]))return Pe.reject("cancel").promise();var tt=this._getPageIndexToInsertRow(),Be=this._getLoadedRowIndex(Ne.items(),te,!0),mt=ke=>{(0,w.gx)(ft?.navigateToRow(ke)).done(()=>{Be=Ne.getRowIndexByKey(te.key),Pe.resolve()})},nn=this._getInsertAfterOrBeforeKey(te);return tt>=0?Ne.pageIndex(tt).done(()=>{mt(te.key)}).fail(Pe.reject):Be<0&&(0,p.$K)(nn)?mt(nn):(Ne.updateItems({changeType:"update",rowIndices:[ae,re,Be]}),(Be=Ne.getRowIndexByKey(te.key))<0?mt(te.key):Pe.resolve()),Pe.done(()=>{this._showAddedRow(Be),this._afterInsertRow(te.key)}),Pe.promise()},_showAddedRow:function(ae){this._focusFirstEditableCellInRow(ae)},_beforeFocusElementInRow:T.ZT,_focusFirstEditableCellInRow:function(ae){var te=this._dataController,re=te.getKeyByRowIndex(ae),oe=this.getFirstEditableCellInRow(ae);this._editCellInProgress=!0,this._delayedInputFocus(oe,()=>{ae=te.getRowIndexByKey(re),this._editCellInProgress=!1,this._beforeFocusElementInRow(ae)})},_isEditingStart:function(ae){return this.executeAction("onEditingStart",ae),ae.cancel},_beforeUpdateItems:T.ZT,_getVisibleEditColumnIndex:function(){var ae=this.option(R.qw);return(0,p.$K)(ae)?this._columnsController.getVisibleColumnIndex(ae):-1},_setEditColumnNameByIndex:function(ae,te){var re,oe=this._columnsController.getVisibleColumns();this._setEditColumnName(null===(re=oe[ae])||void 0===re?void 0:re.name,te)},_setEditColumnName:function(ae,te){te?this._silentOption(R.qw,ae):this.option(R.qw,ae)},_resetEditColumnName:function(){this._setEditColumnName(null,!0)},_getEditColumn:function(){var ae=this.option(R.qw);return this._getColumnByName(ae)},_getColumnByName:function(ae){var re,te=this._columnsController.getVisibleColumns();return(0,p.$K)(ae)&&te.some(oe=>{if(oe.name===ae)return re=oe,!0}),re},_getVisibleEditRowIndex:function(ae){var te=this._dataController,re=this.option(R.GG),oe=te.getRowIndexByKey(re);return-1===oe?oe:oe+this._getEditRowIndexCorrection(ae)},_getEditRowIndexCorrection:function(ae){return"adaptiveHidden"===(ae?this._getColumnByName(ae):this._getEditColumn())?.visibleWidth?1:0},_resetEditRowKey:function(){this._setEditRowKey(null,!0)},_resetEditIndices:function(){this._resetEditColumnName(),this._resetEditRowKey()},editRow:function(ae){var te,re=this._dataController,ye=re.items()[ae],Pe={data:ye&&ye.data,cancel:!1},Ne=this._getVisibleEditRowIndex();if(ye){if(ae===Ne)return!0;if(void 0===ye.key)return void this._dataController.fireError("E1043");ye.isNewRow||(Pe.key=ye.key),!this._isEditingStart(Pe)&&(this.resetChanges(),this.init(),this._resetEditColumnName(),this._pageIndex=re.pageIndex(),this._addInternalData({key:ye.key,oldData:null!==(te=ye.oldData)&&void 0!==te?te:ye.data}),this._setEditRowKey(ye.key))}},_editRowFromOptionChanged:function(ae,te){var re=[te,ae];this._beforeUpdateItems(re,ae,te),this._editRowFromOptionChangedCore(re,ae)},_editRowFromOptionChangedCore:function(ae,te,re){this._needFocusEditor=!0,this._dataController.updateItems({changeType:"update",rowIndices:ae,cancel:re})},_focusEditorIfNeed:T.ZT,_showEditPopup:T.ZT,_repaintEditPopup:T.ZT,_getEditPopupHiddenHandler:function(){return ae=>{this.isEditing()&&this.cancelEditData()}},_getPopupEditFormTemplate:T.ZT,_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(ae){var te=this._getInternalData(ae),re=this._internalState.indexOf(te);re>-1&&this._internalState.splice(re,1)},_updateInsertAfterOrBeforeKeys:function(ae,te){var re=ae[te];ae.forEach(oe=>{var ye=this._getInsertAfterOrBeforeKey(oe);(0,T.bY)(ye,re.key)&&(oe[(0,p.$K)(oe.insertAfterKey)?"insertAfterKey":"insertBeforeKey"]=this._getInsertAfterOrBeforeKey(re))})},_removeChange:function(ae){if(ae>=0){var te=[...this.getChanges()],re=te[ae].key;this._removeInternalData(re),this._updateInsertAfterOrBeforeKeys(te,ae),te.splice(ae,1),this._silentOption(Ae,te),(0,T.bY)(this.option(R.GG),re)&&this._resetEditIndices()}},executeOperation:function(ae,te){this._lastOperation&&this._lastOperation.reject(),this._lastOperation=ae,this.waitForDeferredOperations().done(()=>{"rejected"!==ae.state()&&(te(),this._lastOperation=null)}).fail(()=>{ae.reject(),this._lastOperation=null})},waitForDeferredOperations:function(){return(0,w.gx)(...this._deferreds)},_processCanceledEditingCell:T.ZT,_repaintEditCell:function(ae,te,re){this._needFocusEditor=!0,!ae||!ae.showEditorAlways||te&&!te.showEditorAlways?(this._editCellInProgress=!0,this.getController("editorFactory").loseFocus(),this._dataController.updateItems({changeType:"update",rowIndices:[re,this._getVisibleEditRowIndex()]})):ae!==te&&this._dataController.updateItems({changeType:"update",rowIndices:[]})},_delayedInputFocus:function(ae,te,re){var oe=()=>{if(te&&te(),ae){var ye=ae.find(R.DZ).first();x.Z.focusAndSelectElement(this,ye)}this._beforeFocusCallback=null};O.Z.real().ios||O.Z.real().android?oe():(this._beforeFocusCallback&&this._beforeFocusCallback(),clearTimeout(this._inputFocusTimeoutID),re&&(this._beforeFocusCallback=te),this._inputFocusTimeoutID=setTimeout(oe))},_focusEditingCell:function(ae,te,re){var oe=this.getView("rowsView"),ye=this._getVisibleEditColumnIndex();(te=te||oe&&oe._getCellElement(this._getVisibleEditRowIndex(),ye))&&this._delayedInputFocus(te,ae,re)},deleteRow:function(ae){this._checkAndDeleteRow(ae)},_checkAndDeleteRow:function(ae){var te=this.option("editing"),re=te?.texts,oe=te?.confirmDelete,ye=re?.confirmDeleteMessage,Pe=this._dataController.items()[ae],Ne=!this.isEditing()||Pe.isNewRow;if(Pe&&Ne)if(oe&&ye){var ft=re&&re.confirmDeleteTitle,tt=(0,p.$K)(ft)&&ft.length>0;(0,E.iG)(ye,ft,tt).done(Be=>{Be&&this._deleteRowCore(ae)})}else this._deleteRowCore(ae)},_deleteRowCore:function(ae){var re=this._dataController.items()[ae],oe=re&&re.key,ye=this._getVisibleEditRowIndex();this.refresh();var Pe=this.getChanges(),Ne=x.Z.getIndexByKey(oe,Pe);return Ne>=0?Pe[Ne].type===R.H3?this._removeChange(Ne):this._addChange({key:oe,type:R.M$}):this._addChange({key:oe,oldData:re.data,type:R.M$}),this._afterDeleteRow(ae,ye)},_afterDeleteRow:function(ae,te){return this.saveEditData()},undeleteRow:function(ae){var te=this._dataController,re=te.items()[ae],oe=this._getVisibleEditRowIndex(),ye=re&&re.key,Pe=this.getChanges();if(re){var Ne=x.Z.getIndexByKey(ye,Pe);if(Ne>=0){var{data:ft}=Pe[Ne];(0,p.Qr)(ft)?this._removeChange(Ne):this._addChange({key:ye,type:Z}),te.updateItems({changeType:"update",rowIndices:[oe,ae]})}}},_fireOnSaving:function(){var ae={cancel:!1,promise:null,changes:[...this.getChanges()]};this.executeAction("onSaving",ae);var te=new w.BH;return(0,w.gx)((0,w.p4)(ae.promise)).done(()=>{te.resolve(ae)}).fail(re=>{ne(te),this._fireDataErrorOccurred(re),te.resolve({cancel:!0})}),te},_executeEditingAction:function(ae,te,re){if(this.component._disposed)return null;var oe=new w.BH;return this.executeAction(ae,te),(0,w.gx)((0,w.p4)(te.cancel)).done(function(ye){ye?setTimeout(function(){oe.resolve("cancel")}):re(te).done(oe.resolve).fail(ne(oe))}).fail(ne(oe)),oe},_processChanges:function(ae,te,re,oe){var ye=this._dataController.store();(0,s.S6)(oe,(Pe,Ne)=>{var nn,ke,ft=this._getOldData(Ne.key),{data:tt,type:Be}=Ne,mt=(0,o.Z)({},Ne);if(!this._beforeSaveEditData(Ne,Pe)){switch(Be){case R.M$:nn=this._executeEditingAction("onRowRemoving",ke={data:ft,key:Ne.key,cancel:!1},function(){return ye.remove(Ne.key).done(function(me){re.push({type:"remove",key:me})})});break;case R.H3:nn=this._executeEditingAction("onRowInserting",ke={data:tt,cancel:!1},function(){return ye.insert(ke.data).done(function(me,xe){(0,p.$K)(xe)&&(mt.key=xe),me&&(0,p.Kn)(me)&&me!==ke.data&&(mt.data=me),re.push({type:"insert",data:me,index:0})})});break;case Z:nn=this._executeEditingAction("onRowUpdating",ke={newData:tt,oldData:ft,key:Ne.key,cancel:!1},function(){return ye.update(Ne.key,ke.newData).done(function(me,xe){me&&(0,p.Kn)(me)&&me!==ke.newData&&(mt.data=me),re.push({type:"update",key:xe,data:me})})})}if(oe[Pe]=mt,nn){var $e=new w.BH;nn.always(function(me){te.push({key:Ne.key,result:me})}).always($e.resolve),ae.push($e.promise())}}})},_processRemoveIfError:function(ae,te){return ae[te]?.type===R.M$&&te>=0&&ae.splice(te,1),!0},_processRemove:function(ae,te,re){var oe=ae[te];if(!re||!oe||oe.type===R.M$)return this._processRemoveCore(ae,te,!re||!oe)},_processRemoveCore:function(ae,te){return te>=0&&ae.splice(te,1),!0},_processSaveEditDataResult:function(ae){for(var te=!1,re=[...this.getChanges()],oe=re.length,ye=0;ye<ae.length;ye++){var Pe=ae[ye].result,Ne="cancel"===Pe,ft=x.Z.getIndexByKey(ae[ye].key,re),tt=re[ft];if(Pe&&Pe instanceof Error){if(tt&&this._addInternalData({key:tt.key,error:Pe}),this._fireDataErrorOccurred(Pe),this._processRemoveIfError(re,ft))break}else this._processRemove(re,ft,Ne)&&(te=!Ne)}return re.length<oe&&this._silentOption(Ae,re),te},_fireSaveEditDataEvents:function(ae){(0,s.S6)(ae,(te,re)=>{var{data:oe,key:ye,type:Pe}=re,Ne=this._addInternalData({key:ye}),ft={key:ye,data:oe};switch(Ne.error&&(ft.error=Ne.error),Pe){case R.M$:this.executeAction("onRowRemoved",(0,u.l)({},ft,{data:Ne.oldData}));break;case R.H3:this.executeAction("onRowInserted",ft);break;case Z:this.executeAction("onRowUpdated",ft)}}),this.executeAction("onSaved",{changes:ae})},saveEditData:function(){var ae=new w.BH;return this.waitForDeferredOperations().done(()=>{this.isSaving()?this._resolveAfterSave(ae):(0,w.gx)(this._beforeSaveEditData()).done(te=>{if(te)this._resolveAfterSave(ae,{cancel:te});else{this._saving=!0;var re={};this._saveEditDataInner(re).always(()=>{this._saving=!1,re.needFocusEditCell&&this._focusEditingCell()}).done(ae.resolve).fail(ae.reject)}}).fail(ae.reject)}).fail(ae.reject),ae.promise()},_resolveAfterSave:function(ae){var{cancel:te,error:re}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,w.gx)(this._afterSaveEditData(te)).done(function(){ae.resolve(re)}).fail(ae.reject)},_saveEditDataInner:function(ae){var te=[],re=[],oe=[],Pe=this._dataController.dataSource(),Ne=new w.BH;return(0,w.gx)(this._fireOnSaving()).done(ft=>{var{cancel:tt,changes:Be}=ft;return tt?Ne.resolve().promise():(this._processChanges(re,te,oe,Be),re.length?(Pe?.beginLoading(),(0,w.gx)(...re).done(()=>{this._processSaveEditDataResult(te)?this._endSaving(oe,Be,Ne):(Pe?.endLoading(),Ne.resolve())}).fail(mt=>{Pe?.endLoading(),Ne.resolve(mt)}),Ne.always(()=>{ae.needFocusEditCell=!0}).promise()):void this._cancelSaving(Ne))}).fail(Ne.reject),Ne.promise()},_beforeEndSaving:function(ae){this._resetEditIndices()},_endSaving:function(ae,te,re){var oe=this._dataController.dataSource();this._beforeEndSaving(te),oe?.endLoading(),this._refreshDataAfterSave(ae,te,re)},_cancelSaving:function(ae){this.executeAction("onSaved",{changes:[]}),this._resolveAfterSave(ae)},_refreshDataAfterSave:function(ae,te,re){var oe=this._dataController,ye=this.option("editing.refreshMode"),Pe="reshape"!==ye&&"repaint"!==ye;Pe||oe.push(ae),(0,w.gx)(oe.refresh({selection:Pe,reload:Pe,load:"reshape"===ye,changesOnly:this.option("repaintChangesOnly")})).always(()=>{this._fireSaveEditDataEvents(te)}).done(()=>{this._resolveAfterSave(re)}).fail(Ne=>{this._resolveAfterSave(re,{error:Ne})})},isSaving:function(){return this._saving},_updateEditColumn:function(){var ae=this._isEditColumnVisible(),te=this.option("editing.useIcons"),re=U+(te?" "+K:"");this._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:ae,cssClass:re,width:"auto",alignment:"center",cellTemplate:this._getEditCommandCellTemplate(),fixedPosition:"right"}),this._columnsController.columnOption("command:edit",{visible:ae,cssClass:re})},_isEditColumnVisible:function(){return this.option("editing").allowDeleting},_isEditButtonDisabled:function(){var ae=this.hasChanges();return!((0,p.$K)(this.option("editing.editRowKey"))||ae)},_updateEditButtons:function(){var ae=this.getView("headerPanel"),te=this._isEditButtonDisabled();ae&&(ae.setToolbarItemDisabled("saveButton",te),ae.setToolbarItemDisabled("revertButton",te))},_applyModified:function(ae){ae&&ae.addClass(ee)},_beforeCloseEditCellInBatchMode:T.ZT,cancelEditData:function(){var ae=this.getChanges(),te={cancel:!1,changes:ae};this.executeAction("onEditCanceling",te),te.cancel||(this._cancelEditDataCore(),this.executeAction("onEditCanceled",{changes:ae}))},_cancelEditDataCore:function(){var ae=this._getVisibleEditRowIndex();this._beforeCancelEditData(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey(),this._afterCancelEditData(ae)},_afterCancelEditData:function(ae){this._dataController.updateItems({repaintChangesOnly:this.option("repaintChangesOnly")})},_hideEditPopup:T.ZT,hasEditData:function(){return this.hasChanges()},update:function(ae){var te=this._dataController;te&&this._pageIndex!==te.pageIndex()&&("refresh"===ae&&this.refresh({isPageChanged:!0}),this._pageIndex=te.pageIndex()),this._updateEditButtons()},_getRowIndicesForCascadeUpdating:function(ae,te){return te?[]:[ae.rowIndex]},addDeferred:function(ae){this._deferreds.indexOf(ae)<0&&(this._deferreds.push(ae),ae.always(()=>{var te=this._deferreds.indexOf(ae);te>=0&&this._deferreds.splice(te,1)}))},_prepareChange:function(ae,te,re){var oe,ye={},Pe=null===(oe=ae.row)||void 0===oe?void 0:oe.data,Ne=ae.key,ft=new w.BH;return void 0!==Ne&&(ae.value=te,(0,w.p4)(ae.column.setCellValue(ye,te,(0,u.l)(!0,{},Pe),re)).done(function(){ft.resolve({data:ye,key:Ne,oldData:Pe,type:Z})}).fail(ne(ft)).fail(Be=>this._fireDataErrorOccurred(Be)),(0,p.$K)(re)&&ae.column.displayValueMap&&(ae.column.displayValueMap[te]=re),this._updateRowValues(ae),this.addDeferred(ft)),ft},_updateRowValues:function(ae){if(ae.values){var te=this._dataController,re=te.getRowIndexByKey(ae.key),oe=te.getVisibleRows()[re];oe&&(ae.row.values=oe.values,ae.values=oe.values),ae.values[ae.columnIndex]=ae.value}},updateFieldValue:function(ae,te,re,oe){var ye=ae.key,Pe=new w.BH;return void 0===ye&&this._dataController.fireError("E1043"),ae.column.setCellValue?this._prepareChange(ae,te,re).done(Ne=>{(0,w.gx)(this._applyChange(ae,Ne,oe)).always(()=>{Pe.resolve()})}):Pe.resolve(),Pe.promise()},_focusPreviousEditingCellIfNeed:function(ae){if(this.hasEditData()&&!this.isEditCell(ae.rowIndex,ae.columnIndex))return this._focusEditingCell(),this._updateEditRow(ae.row,!0),!0},_needUpdateRow:function(ae){var te=this._columnsController.getVisibleColumns();ae||(ae=this._getEditColumn());var re=ae&&ae.setCellValue!==ae.defaultSetCellValue,oe=te.some(ye=>ye.calculateCellValue!==ye.defaultCalculateCellValue);return re||oe},_applyChange:function(ae,te,re){var oe=(0,o.Z)({},ae,{forceUpdateRow:re});return this._addChange(te,oe),this._updateEditButtons(),this._applyChangeCore(ae,oe.forceUpdateRow)},_applyChangeCore:function(ae,te){var re=ae.column.setCellValue!==ae.column.defaultSetCellValue,oe=ae.row;oe&&(te||re?this._updateEditRow(oe,te,re):oe.update&&oe.update())},_updateEditRowCore:function(ae,te,re){this._dataController.updateItems({changeType:"update",rowIndices:this._getRowIndicesForCascadeUpdating(ae,te)})},_updateEditRow:function(ae,te,re){te?this._updateRowImmediately(ae,te,re):this._updateRowWithDelay(ae,re)},_updateRowImmediately:function(ae,te,re){this._updateEditRowCore(ae,!te,re),this._validateEditFormAfterUpdate(ae,re),te||this._focusEditingCell()},_updateRowWithDelay:function(ae,te){var re=new w.BH;this.addDeferred(re),setTimeout(()=>{var oe,ye=(null===(oe=this._editForm)||void 0===oe?void 0:oe.element())||this.component.$element().get(0),Pe=(0,c.Z)(I.Z.getActiveElement(ye)),Ne=this._rowsView.getCellIndex(Pe,ae.rowIndex),ft=Pe.get(0),tt=x.Z.getSelectionRange(ft);if(this._updateEditRowCore(ae,!1,te),this._validateEditFormAfterUpdate(ae,te),Ne>=0){var Be=this._rowsView._getCellElement(ae.rowIndex,Ne);this._delayedInputFocus(Be,()=>{setTimeout(()=>{var mt;ft=I.Z.getActiveElement(null===(mt=this.component.$element())||void 0===mt?void 0:mt.get(0)),tt.selectionStart>=0&&x.Z.setSelectionRange(ft,tt)})})}re.resolve()})},_validateEditFormAfterUpdate:T.ZT,_addChange:function(ae,te){var re,oe=te?.row,ye=[...this.getChanges()],Pe=x.Z.getIndexByKey(ae.key,ye);Pe<0&&(Pe=ye.length,this._addInternalData({key:ae.key,oldData:ae.oldData}),delete ae.oldData,ye.push(ae));var Ne=(0,o.Z)({},ye[Pe]);return Ne&&(ae.data&&(Ne.data=(0,b.FL)(Ne.data,ae.data)),(!Ne.type||!ae.data)&&ae.type&&(Ne.type=ae.type),oe&&(oe.oldData=this._getOldData(oe.key),oe.data=(0,b.FL)(oe.data,ae.data))),ye[Pe]=Ne,this._silentOption(Ae,ye),te&&Ne!==(null===(re=this.getChanges())||void 0===re?void 0:re[Pe])&&(te.forceUpdateRow=!0),Ne},_getFormEditItemTemplate:function(ae,te){return te.editCellTemplate||this._getDefaultEditorTemplate()},getColumnTemplate:function(ae){var oe,ft,te=ae.column,re=ae.row&&ae.row.rowIndex,ye=this.isRowBasedEditMode(),Pe=this.isEditRow(re),Ne=this.isEditCell(re,ae.columnIndex);return!(te.showEditorAlways||te.setCellValue&&(Pe&&te.allowEditing||Ne))||"data"!==ae.rowType&&"detailAdaptive"!==ae.rowType||te.command?"detail"===te.command&&"detail"===ae.rowType&&Pe&&(oe=null==this?void 0:this.getEditFormTemplate(ae)):(((this.allowUpdating(ae)||Pe)&&te.allowEditing||Ne)&&(Pe||!ye)&&(te.showEditorAlways&&!ye&&this._isEditingStart(ft={cancel:!1,key:ae.row.isNewRow?void 0:ae.row.key,data:ae.row.data,column:te}),(!ft||!ft.cancel)&&(ae.setValue=(Be,mt)=>{this.updateFieldValue(ae,Be,mt)})),oe=te.editCellTemplate||this._getDefaultEditorTemplate()),oe},_createButton:function(ae,te,re,oe){var ye=se[te.name],Pe=this.option("editing.useIcons"),Ne=this.option("useLegacyColumnButtonTemplate"),ft=(0,c.Z)("<a>").attr("href","#").addClass("dx-link").addClass(te.cssClass);if(te.template&&Ne)this._rowsView.renderTemplate(ae,te.template,re,!0);else{if(te.template)ft=(0,c.Z)("<span>").addClass(te.cssClass);else if(Pe&&ye||te.icon){var tt=k.P(ye=te.icon||ye);"image"===tt||"svg"===tt?ft=k.H(ye).addClass(te.cssClass):ft.addClass("dx-icon"+("dxIcon"===tt?"-":" ")+ye).attr("title",te.text),ft.addClass("dx-link-icon"),ae.addClass(K);var Be=this.getButtonLocalizationNames()[te.name];Be&&ft.attr("aria-label",S.Z.format(Be))}else ft.text(te.text);(0,p.$K)(te.hint)&&ft.attr("title",te.hint),this._isButtonDisabled(te,re)?ft.addClass("dx-state-disabled"):(!te.template||te.onClick)&&C.Z.on(ft,(0,y.V4)("click","dxDataGridEditing"),this.createAction(function(mt){var nn;null===(nn=te.onClick)||void 0===nn||nn.call(te,(0,u.l)({},mt,{row:re.row,column:re.column})),mt.event.preventDefault(),mt.event.stopPropagation()})),ae.append(ft,"&nbsp;"),te.template&&this._rowsView.renderTemplate(ft,te.template,(0,o.Z)({},re,{column:void 0}),!0,oe)}},getButtonLocalizationNames:()=>({edit:"dxDataGrid-editingEditRow",save:"dxDataGrid-editingSaveRowChanges",delete:"dxDataGrid-editingDeleteRow",undelete:"dxDataGrid-editingUndeleteRow",cancel:"dxDataGrid-editingCancelRowChanges"}),prepareButtonItem:function(ae,te,re,oe){var ye=this.option("editing.texts")||{},Ne={revert:"cancel",save:"save",addRow:"addrow"}[te],ft={revert:ye.cancelAllChanges,save:ye.saveAllChanges,addRow:ye.addRow}[te],tt=("save"===Ne||"cancel"===Ne)&&this._isEditButtonDisabled();return{widget:"dxButton",options:{onInitialized:Be=>{(0,c.Z)(Be.element).addClass(ae._getToolbarButtonClass("dx-edit-button "+this.addWidgetPrefix(Ne)+"-button"))},icon:"edit-button-"+Ne,disabled:tt,onClick:()=>{setTimeout(()=>{this[re]()})},text:ft,hint:ft},showText:"inMenu",name:te+"Button",location:"after",locateInMenu:"auto",sortIndex:oe}},prepareEditButtons:function(ae){var re=[];return(this.option("editing")||{}).allowAdding&&re.push(this.prepareButtonItem(ae,"addRow","addRow",20)),re},highlightDataCell:function(ae,te){this.shouldHighlightCell(te)&&ae.addClass(ee)},_afterInsertRow:T.ZT,_beforeSaveEditData:function(ae){if(ae&&!(0,p.$K)(ae.key)&&(0,p.$K)(ae.type))return!0},_afterSaveEditData:T.ZT,_beforeCancelEditData:T.ZT,_allowEditAction:function(ae,te){var re=this.option("editing."+ae);return(0,p.mf)(re)&&(re=re({component:this.component,row:te.row})),re},allowUpdating:function(ae,te){var re=this.option("editing.startEditAction")||X,oe=!(arguments.length>1)||re===te||"down"===te;return oe&&this._allowEditAction("allowUpdating",ae)},allowDeleting:function(ae){return this._allowEditAction("allowDeleting",ae)},isCellModified:function(ae){var re=ae.row&&(ae.row.isNewRow?ae.row.values:ae.row.modifiedValues);return!!re&&void 0!==re[ae.columnIndex]},isNewRowInEditMode:function(){var ae=this._getVisibleEditRowIndex(),te=this._dataController.items();return ae>=0&&te[ae].isNewRow},shouldHighlightCell:function(ae){return this.isCellModified(ae)&&ae.column.setCellValue&&(this.getEditMode()!==R.CM||!ae.row.isEditing)}};return Ee}())},extenders:{controllers:{data:{init:function(){this._editingController=this.getController("editing"),this.callBase()},reload:function(le,pe){return!pe&&this._editingController.refresh(),this.callBase.apply(this,arguments)},repaintRows:function(){if(!this.getController("editing").isSaving())return this.callBase.apply(this,arguments)},_updateEditRow:function(le){var te,pe=this.option(R.GG),ae=le[x.Z.getIndexByKey(pe,le)];ae&&(ae.isEditing=!0,null===(te=this._updateEditItem)||void 0===te||te.call(this,ae))},_updateItemsCore:function(le){this.callBase(le),this._updateEditRow(this.items(!0))},_applyChangeUpdate:function(le){this._updateEditRow(le.items),this.callBase(le)},_applyChangesOnly:function(le){this._updateEditRow(le.items),this.callBase(le)},_processItems:function(le,pe){return le=this._editingController.processItems(le,pe),this.callBase(le,pe)},_processDataItem:function(le,pe){return this._editingController.processDataItem(le,pe,this.generateDataValues),this.callBase(le,pe)},_processItem:function(le,pe){return(le=this.callBase(le,pe)).isNewRow&&(pe.dataIndex--,delete le.dataIndex),le},_getChangedColumnIndices:function(le,pe,Ee,ae){if(le.isNewRow===pe.isNewRow&&le.removed===pe.removed)return this.callBase.apply(this,arguments)},_isCellChanged:function(le,pe,Ee,ae,te){var re=this.getController("editing"),oe=le.cells&&le.cells[ae],ye=re&&re.isEditCell(Ee,ae);return(!te||!ye)&&(!(!oe||!oe.column||oe.column.showEditorAlways||oe.isEditing===ye)||this.callBase.apply(this,arguments))},needToRefreshOnDataSourceChange:function(le){var pe=this.getController("editing");return!(Array.isArray(le.value)&&le.value===le.previousValue&&pe.isSaving())},_handleDataSourceChange(le){var pe=this.callBase(le),Ee=this.option("editing.changes"),ae=le.value;if(Array.isArray(ae)&&Ee.length){var te=ae.map(Pe=>this.keyOf(Pe)),re=Ee.filter(Pe=>"insert"===Pe.type||te.some(Ne=>(0,T.bY)(Pe.key,Ne)));re.length!==Ee.length&&this.option("editing.changes",re);var oe=this.option("editing.editRowKey");!re.some(Pe=>"insert"===Pe.type&&(0,T.bY)(oe,Pe.key))&&te.every(Pe=>!(0,T.bY)(oe,Pe))&&this.option("editing.editRowKey",null)}return pe}}},views:{rowsView:{init:function(){this.callBase(),this._editingController=this.getController("editing")},getCellIndex:function(le,pe){if(!le.is("td")&&pe>=0){var Ee=this.getCellElements(pe),ae=-1;return(0,s.S6)(Ee,function(te,re){(0,c.Z)(re).find(le).length&&(ae=te)}),ae}return this.callBase.apply(this,arguments)},publicMethods:function(){return this.callBase().concat(["cellValue"])},_getCellTemplate:function(le){return this._editingController.getColumnTemplate(le)||this.callBase(le)},_createRow:function(le){var pe=this.callBase.apply(this,arguments);if(le){var Ee=!!le.removed,ae=!!le.isNewRow,te=!!le.modified;ae&&pe.addClass(J),te&&pe.addClass(j),(ae||Ee)&&pe.removeClass(N)}return pe},_getColumnIndexByElement:function(le){for(var pe=le.closest("table"),Ee=this.getTableElements();pe.length&&!Ee.filter(pe).length;)le=pe.closest("td"),pe=le.closest("table");return this._getColumnIndexByElementCore(le)},_getColumnIndexByElementCore:function(le){var pe=le.closest("."+R.Ui+"> td:not(.dx-master-detail-cell)");return this.getCellIndex(pe)},_editCellByClick:function(le,pe){var Ee=this._editingController,ae=(0,c.Z)(le.event.target),te=this._getColumnIndexByElement(ae),re=this._dataController.items()[le.rowIndex],oe=Ee.allowUpdating({row:re},pe)||re&&re.isNewRow,ye=this._columnsController.getVisibleColumns()[te],Pe=Ee.isEditCell(le.rowIndex,te),Ne=oe&&ye&&(ye.allowEditing||Pe),ft=this.option("editing.startEditAction")||"click",tt=ye&&ye.showEditorAlways;if(Pe)return!0;if("down"===pe)return(O.Z.real().ios||O.Z.real().android)&&(0,a.M3)(),tt&&Ne&&Ee.editCell(le.rowIndex,te);if("click"===pe&&"dblClick"===ft){var Be=re?.isNewRow;Ee.closeEditCell(!1,Be)}return Ne&&pe===ft?Ee.editCell(le.rowIndex,te)||Ee.isEditRow(le.rowIndex):void 0},_rowPointerDown:function(le){this._pointerDownTimeout=setTimeout(()=>{this._editCellByClick(le,"down")})},_rowClick:function(le){var pe=(0,c.Z)(le.rowElement).hasClass(this.addWidgetPrefix(R.kb));le.event[R._9]=this.component,!this._editCellByClick(le,"click")&&!pe&&this.callBase.apply(this,arguments)},_rowDblClick:function(le){this._editCellByClick(le,"dblClick")||this.callBase.apply(this,arguments)},_cellPrepared:function(le,pe){var Ee,ae=this._editingController,te=!!pe.column.command,re=pe.setValue,oe=ae.isEditRow(pe.rowIndex),ye=fe(oe,pe);if(_e(oe,pe)){var Pe=pe.column.alignment;le.toggleClass(this.addWidgetPrefix(B),!re).toggleClass(q,!re),Pe&&le.find(R.HJ).first().css("textAlign",Pe)}ye&&this._editCellPrepared(le);var Ne=!(null===(Ee=pe.column)||void 0===Ee||!Ee.cellTemplate);pe.column&&!te&&(!Ne||ae.shouldHighlightCell(pe))&&ae.highlightDataCell(le,pe),this.callBase.apply(this,arguments)},_editCellPrepared:T.ZT,_formItemPrepared:T.ZT,_getCellOptions:function(le){var pe=this.callBase(le);return pe.isEditing=this._editingController.isEditCell(pe.rowIndex,pe.columnIndex),pe},_createCell:function(le){var pe=this.callBase(le),Ee=this._editingController.isEditRow(le.rowIndex);return _e(Ee,le)&&pe.addClass(R.IU),pe},cellValue:function(le,pe,Ee,ae){var te=this.getCellOptions(le,pe);if(te){if(void 0===Ee)return te.value;this._editingController.updateFieldValue(te,Ee,ae,!0)}},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._pointerDownTimeout)},_renderCore:function(le){return this.callBase.apply(this,arguments),this._waitAsyncTemplates(le,!0).done(()=>{this._editingController._focusEditorIfNeed()})}},headerPanel:{_getToolbarItems:function(){var le=this.callBase();return this.getController("editing").prepareEditButtons(this).concat(le)},optionChanged:function(le){var pe=le.fullName;switch(le.name){case"editing":pe&&![R.nK,Ae,R.qw,R.GG].some(te=>te===pe)&&this._invalidate(),this.callBase(le);break;case"useLegacyColumnButtonTemplate":le.handled=!0;break;default:this.callBase(le)}},isVisible:function(){var le=this.getController("editing").option("editing");return this.callBase()||le?.allowAdding}}}}}},3098:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>W});var o=l(9904),c=l(9897),I=l(913),C=l(1828),f=l(6520),a=l(227),p=l(8690),s=l(8225),u=l(5180),d=l(4270),h=l(7674),g=l(1771),x=l(6468),b="focus-overlay",y="addrow-button",E="dx-dropdowneditor-overlay",S="dx-editor-cell",O="dx-row",T="dx-data-row",k="dx-row-removed",R="editing.editRowKey",P="editing.editColumnName",B="remove";const W={extenders:{controllers:{editing:{init:function(){var V,U,N=!this._saveEditorHandler;this.callBase.apply(this,arguments),N&&(this._pointerUpEditorHandler=()=>{var K;U=null===(K=this.getController("columnsResizer"))||void 0===K?void 0:K.isResizing()},this._pointerDownEditorHandler=K=>V=(0,o.Z)(K.target),this._saveEditorHandler=this.createAction(function(K){var Y=K.event,J=(0,o.Z)(Y.target),j=Y[x._9],ee=this.component;if((!V||!V.is("input")||V.is(J))&&this.isCellOrBatchEditMode()&&!this._editCellInProgress){var q=G(J)||G(j?.$element()),Z=j&&!j._disposed&&j!==this.component,X=!!J.closest(".".concat(this.addWidgetPrefix(y))).length,M=J.hasClass(this.addWidgetPrefix(b)),se=this.isCellEditMode();!U&&!q&&!M&&!(X&&se&&this.isEditing())&&((0,f.al)(J)||Z)&&this._closeEditItem.bind(this)(J)}function G(ge){if(!ge)return!1;var De=ge.closest(".".concat(E)),Fe=ee.$element();return De.length>0&&0===Fe.closest(De).length}}),I.Z.on(c.Z.getDocument(),p.Z.up,this._pointerUpEditorHandler),I.Z.on(c.Z.getDocument(),p.Z.down,this._pointerDownEditorHandler),I.Z.on(c.Z.getDocument(),a.u,this._saveEditorHandler))},isCellEditMode:function(){return this.option("editing.mode")===x.D0},isBatchEditMode:function(){return this.option("editing.mode")===x.cP},isCellOrBatchEditMode:function(){return this.isCellEditMode()||this.isBatchEditMode()},_needToCloseEditableCell:function(N){var V=this.component.$element(),U=this.isEditing(),K=!V||!!N.closest(V).length;if(K){var Y=N.closest("."+T).length;if(Y){var J=this.getView("rowsView"),j=N.closest("."+O+"> td"),ee=J.getRowIndex(j.parent()),G=J.getCellElements(ee).index(j),q=this._columnsController.getVisibleColumns(),Z=q[G]&&q[G].allowEditing;U=U&&!Z&&!this.isEditCell(ee,G)}}return U||this.callBase.apply(this,arguments)},_closeEditItem:function(N){this._needToCloseEditableCell(N)&&this.closeEditCell()},_focusEditorIfNeed:function(){if(this._needFocusEditor&&this.isCellOrBatchEditMode()){var N,V=this._getVisibleEditColumnIndex(),U=null===(N=this._rowsView)||void 0===N?void 0:N._getCellElement(this._getVisibleEditRowIndex(),V);U&&!U.find(":focus").length?this._focusEditingCell(()=>{this._editCellInProgress=!1},U,!0):this._editCellInProgress=!1,this._needFocusEditor=!1}else this.callBase.apply(this,arguments)},isEditing:function(){if(this.isCellOrBatchEditMode()){var N=(0,C.$K)(this.option(R)),V=(0,C.$K)(this.option(P));return N&&V}return this.callBase.apply(this,arguments)},_handleEditColumnNameChange:function(N){var V=this._getVisibleEditRowIndex(N.previousValue);if(this.isCellOrBatchEditMode()&&-1!==V&&(0,C.$K)(N.value)&&N.value!==N.previousValue){var U=this._columnsController.getVisibleColumnIndex(N.value),K=this._columnsController.getVisibleColumnIndex(N.previousValue);this._editCellFromOptionChanged(U,K,V)}},_addRow:function(N,V){if(this.isCellEditMode()&&this.hasChanges()){var U=new d.BH;return this.saveEditData().done(()=>{this.hasChanges()?U.reject("cancel"):this.addRow(N).done(U.resolve).fail(U.reject)}),U.promise()}return this.callBase.apply(this,arguments)},editCell:function(N,V){return this._editCell({rowIndex:N,columnIndex:V})},_editCell:function(N){var U,V=new d.BH;return this.executeOperation(V,()=>{U=this._editCellCore(N),(0,d.gx)(U).done(V.resolve).fail(V.reject)}),void 0!==U?U:V.promise()},_editCellCore:function(N){var V=this._dataController,U=(0,C.$K)(N.oldColumnIndex)||(0,C.$K)(N.oldRowIndex),{columnIndex:K,rowIndex:Y,column:J,item:j}=this._getNormalizedEditCellOptions(N),ee={data:j?.data,cancel:!1,column:J};if(void 0!==j.key){if(J&&("data"===j.rowType||"detailAdaptive"===j.rowType)&&!j.removed&&this.isCellOrBatchEditMode()){if(!U&&this.isEditCell(Y,K))return!0;var G=Y+V.getRowIndexOffset();return(0,d.gx)(this._beforeEditCell(Y,K,j)).done(q=>{q||this._prepareEditCell(ee,j,K,G)||this._processCanceledEditingCell()})}return!1}this._dataController.fireError("E1043")},_beforeEditCell:function(N,V,U){if(this.isCellEditMode()&&!U.isNewRow&&this.hasChanges()){var K=new d.BH;return this.saveEditData().always(()=>{K.resolve(this.hasChanges())}),K}},publicMethods:function(){var N=this.callBase.apply(this,arguments);return N.concat(["editCell","closeEditCell"])},_getNormalizedEditCellOptions:function(N){var q,{oldColumnIndex:V,oldRowIndex:U,columnIndex:K,rowIndex:Y}=N,J=this._columnsController,j=J.getVisibleColumns(),G=this._dataController.items()[Y];return q=(0,C.$K)(V)?j[V]:this._getEditColumn(),(0,C.$K)(U)||(U=this._getVisibleEditRowIndex()),(0,C.HD)(K)&&(K=J.columnOption(K,"index"),K=J.getVisibleIndex(K)),{oldColumn:q,columnIndex:K,oldRowIndex:U,rowIndex:Y,column:j[K],item:G}},_prepareEditCell:function(N,V,U,K){return V.isNewRow||(N.key=V.key),!this._isEditingStart(N)&&(this._pageIndex=this._dataController.pageIndex(),this._setEditRowKey(V.key),this._setEditColumnNameByIndex(U),N.column.showEditorAlways||this._addInternalData({key:V.key,oldData:null!==(Y=V.oldData)&&void 0!==Y?Y:V.data}),!0);var Y},closeEditCell:function(N,V){var U=(0,d.gx)(),K=this._getVisibleEditRowIndex();if(this.isCellOrBatchEditMode()){var Y=new d.BH;U=new d.BH,this.executeOperation(Y,()=>{this._closeEditCellCore(N,K,V).always(U.resolve)})}return U.promise()},_closeEditCellCore:function(N,V,U){var K=this._dataController,Y=new d.BH,J=Y.promise();if(this.isCellEditMode()&&this.hasChanges()){if(!U)return this.saveEditData().done(ee=>{this.hasChanges()?Y.resolve():this.closeEditCell(!!ee).always(Y.resolve)}),J}else if(this._resetEditRowKey(),this._resetEditColumnName(),V>=0){var j=[V];this._beforeCloseEditCellInBatchMode(j),N||K.updateItems({changeType:"update",rowIndices:j})}return Y.resolve(),J},_resetModifiedClassCells:function(N){if(this.isBatchEditMode()){var V=this._columnsController.getVisibleColumns().length;N.forEach(U=>{var{key:K}=U,Y=this._dataController.getRowIndexByKey(K);if(-1!==Y)for(var J=0;J<V;J++)this._rowsView._getCellElement(Y,J).removeClass("dx-cell-modified")})}},_prepareChange:function(N,V,U){var K=(0,o.Z)(N.cellElement);return this.isBatchEditMode()&&void 0!==N.key&&this._applyModified(K,N),this.callBase.apply(this,arguments)},_cancelSaving:function(){var N=this._dataController;this.isCellOrBatchEditMode()&&(this.isBatchEditMode()&&this._resetEditIndices(),N.updateItems()),this.callBase.apply(this,arguments)},optionChanged:function(N){"editing"===N.name&&N.fullName===P?(this._handleEditColumnNameChange(N),N.handled=!0):this.callBase(N)},_editCellFromOptionChanged:function(N,V,U){var K=this._columnsController.getVisibleColumns();N>-1&&(0,h.g0)(()=>{this._repaintEditCell(K[N],K[V],U)})},_handleEditRowKeyChange:function(N){if(this.isCellOrBatchEditMode()){var Y,V=this._getVisibleEditColumnIndex(),U=this._getEditRowIndexCorrection(),K=this._dataController.getRowIndexByKey(N.previousValue)+U;(0,C.$K)(N.value)&&N.value!==N.previousValue&&(null===(Y=this._editCellFromOptionChanged)||void 0===Y||Y.call(this,V,V,K))}else this.callBase.apply(this,arguments)},deleteRow:function(N){if(this.isCellEditMode()&&this.isEditing()){var V=this._dataController.items()[N].isNewRow,U=this._dataController.getKeyByRowIndex(N);this.closeEditCell(null,V).always(()=>{N=this._dataController.getRowIndexByKey(U),this._checkAndDeleteRow(N)})}else this.callBase.apply(this,arguments)},_checkAndDeleteRow:function(N){this.isBatchEditMode()?this._deleteRowCore(N):this.callBase.apply(this,arguments)},_refreshCore:function(N){var{isPageChanged:V}=N??{},U=this.isBatchEditMode()||V&&"virtual"!==this.option("scrolling.mode");this.isCellOrBatchEditMode()?U&&(this._resetEditColumnName(),this._resetEditRowKey()):this.callBase.apply(this,arguments)},_allowRowAdding:function(N){return!!this.isBatchEditMode()||this.callBase.apply(this,arguments)},_afterDeleteRow:function(N,V){var U=this._dataController;return this.isBatchEditMode()?(U.updateItems({changeType:"update",rowIndices:[V,N]}),(new d.BH).resolve()):this.callBase.apply(this,arguments)},_updateEditRow:function(N,V,U){this.isCellOrBatchEditMode()?this._updateRowImmediately(N,V,U):this.callBase.apply(this,arguments)},_isDefaultButtonVisible:function(N,V){if(this.isCellOrBatchEditMode()){var U=this.isBatchEditMode();switch(N.name){case"save":case"cancel":case"edit":return!1;case"delete":return this.callBase.apply(this,arguments)&&(!U||!V.row.removed);case"undelete":return U&&this.allowDeleting(V)&&V.row.removed;default:return this.callBase.apply(this,arguments)}}return this.callBase.apply(this,arguments)},_isRowDeleteAllowed:function(){var N=this.callBase.apply(this,arguments);return N||this.isBatchEditMode()},_beforeEndSaving:function(N){var V;this.isCellEditMode()?"update"!==(null===(V=N[0])||void 0===V?void 0:V.type)&&this.callBase.apply(this,arguments):(this.isBatchEditMode()&&this._resetModifiedClassCells(N),this.callBase.apply(this,arguments))},prepareEditButtons:function(N){var V=this.option("editing")||{},U=this.callBase.apply(this,arguments);return(V.allowUpdating||V.allowAdding||V.allowDeleting)&&this.isBatchEditMode()&&(U.push(this.prepareButtonItem(N,"save","saveEditData",21)),U.push(this.prepareButtonItem(N,"revert","cancelEditData",22))),U},_saveEditDataInner:function(){var N,J,V=this._dataController.getVisibleRows()[this.getEditRowIndex()],U=this._getEditColumn(),K=U?.showEditorAlways,Y=this.isCellEditMode()&&!(null!=V&&V.isNewRow);return Y&&K&&(J=new d.BH,this.addDeferred(J)),this.callBase.apply(this,arguments).always(null===(N=J)||void 0===N?void 0:N.resolve)},_applyChange:function(N,V,U){var K=this.isCellEditMode()&&N.row&&!N.row.isNewRow,Y=N.column.showEditorAlways,J=N.column.setCellValue!==N.column.defaultSetCellValue,j=Y&&!U&&K&&this.hasEditData()&&!this.isEditCell(N.rowIndex,N.columnIndex);return j?(this._focusEditingCell(),void this._updateEditRow(N.row,!0,J)):this.callBase.apply(this,arguments)},_applyChangeCore:function(N,V){var U=N.column.showEditorAlways,K=this.isCellEditMode()&&N.row&&!N.row.isNewRow;if(U&&!V){if(K)return this._setEditRowKey(N.row.key,!0),this._setEditColumnNameByIndex(N.columnIndex,!0),this.saveEditData();if(this.isBatchEditMode())return V=this._needUpdateRow(N.column),this.callBase(N,V)}return this.callBase.apply(this,arguments)},_processDataItemCore:function(N,V){var{data:U,type:K}=V;this.isBatchEditMode()&&K===B&&(N.data=(0,g.FL)(N.data,U)),this.callBase.apply(this,arguments)},_processRemoveCore:function(N,V,U){if(!this.isBatchEditMode()||U)return this.callBase.apply(this,arguments)},_processRemoveIfError:function(){if(!this.isBatchEditMode())return this.callBase.apply(this,arguments)},_beforeFocusElementInRow:function(N){this.callBase.apply(this,arguments);var V=N>=0?N:0,U=this.getFirstEditableColumnIndex();U>=0&&this.editCell(V,U)}}},views:{rowsView:{_createTable:function(){var N=this.callBase.apply(this,arguments),V=this._editingController;return V.isCellOrBatchEditMode()&&this.option("editing.allowUpdating")&&I.Z.on(N,(0,s.V4)(u.Z.name,"dxDataGridRowsView"),"td:not(."+S+")",this.createAction(()=>{V.isEditing()&&V.closeEditCell()})),N},_createRow:function(N){var V=this.callBase.apply(this,arguments);if(N){var U=this._editingController,K=!!N.removed;U.isBatchEditMode()&&K&&V.addClass(k)}return V}},headerPanel:{isVisible:function(){var N=this.getController("editing").option("editing");return this.callBase()||N&&(N.allowUpdating||N.allowDeleting)&&N.mode===x.cP}}}}}},6468:(kn,he,l)=>{"use strict";l.d(he,{CM:()=>E,D0:()=>S,DZ:()=>b,EJ:()=>U,GG:()=>d,H3:()=>a,HJ:()=>x,IM:()=>R,IU:()=>o,M$:()=>p,So:()=>N,UM:()=>P,Ui:()=>c,Xt:()=>B,YI:()=>u,_9:()=>g,cP:()=>y,dl:()=>T,jq:()=>w,kb:()=>f,nK:()=>s,ol:()=>C,os:()=>W,qw:()=>h,rk:()=>k,wO:()=>V,xz:()=>O});var o="dx-editor-cell",c="dx-row",C="dx-selection",f="edit-form",a="insert",p="remove",s="editing.popup",u="editing.form",d="editing.editRowKey",h="editing.editColumnName",g="targetComponent",x="input:not([type='hidden'])",b="[tabindex], "+x,y="batch",E="row",S="cell",O="form",w="popup",T="first",k="last",R="pageBottom",P="pageTop",B="viewportBottom",W="viewportTop",N=[y,E,S,O,w],V=[E,O,w],U=[E,O]},8968:(kn,he,l)=>{"use strict";l.d(he,{F:()=>W});var o=l(9904),c=l(913),I=l(6492),C=l(1828),f=l(2718),a=l(5873),p=l(219),s=l(2941),u=l(7449),d=l(4270),h=l(7674),g=l(6520),x=l(8487),b=l(8531),y=l(6468),S="edit-form-item",O="edit-popup",T=x.Z.IS_RENOVATED_WIDGET?"dx-scrollable":"dx-scrollable-container",B=(N,V)=>{N.forEach(U=>{U.items||U.tabs?B(U.items||U.tabs,V):V(U)})},W={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")===y.jq},isFormEditMode:function(){return this.option("editing.mode")===y.xz},getFirstEditableColumnIndex:function(){var N=this._firstFormItem;if(this.isFormEditMode()&&N){var V=this.option(y.GG),U=this._dataController.getRowIndexByKey(V),K=this._rowsView.getCellElements(U);return this._rowsView._getEditFormEditorVisibleIndex(K,N.column)}return this.callBase.apply(this,arguments)},getEditFormRowIndex:function(){return this.isFormOrPopupEditMode()?this._getVisibleEditRowIndex():this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var N=this.callBase.apply(this,arguments),V=this.option("editing");return this.isFormOrPopupEditMode()&&V.allowUpdating||N},_handleDataChanged:function(N){if(this.isPopupEditMode()){var V,U,K=this.option("editing.editRowKey"),Y=null==N||null===(V=N.items)||void 0===V?void 0:V.some(j=>(0,h.bY)(j.key,K)),J=(null===(U=N.changeTypes)||void 0===U?void 0:U.length)&&N.changeTypes.every(j=>"insert"===j);("refresh"===N.changeType||Y&&N.isOptionChanged)&&!J&&this._repaintEditPopup()}this.callBase.apply(this,arguments)},getPopupContent:function(){var N,V=null===(N=this._editPopup)||void 0===N?void 0:N.option("visible");if(this.isPopupEditMode()&&V)return this._$popupContent},_showAddedRow:function(N){this.isPopupEditMode()?this._showEditPopup(N):this.callBase.apply(this,arguments)},_cancelEditDataCore:function(){this.callBase.apply(this,arguments),this.isPopupEditMode()&&this._hideEditPopup()},_updateEditRowCore:function(N,V,U){var K=this._editForm;if(this.isPopupEditMode())if(this.option("repaintChangesOnly")){var Y;null===(Y=N.update)||void 0===Y||Y.call(N,N),this._rowsView.renderDelayedTemplates()}else K&&(this._updateEditFormDeferred=(new d.BH).done(()=>K.repaint()),this._updateLockCount||this._updateEditFormDeferred.resolve());else this.callBase.apply(this,arguments)},_showEditPopup:function(N,V){var U="desktop"!==s.Z.current().deviceType,K=(0,a.l)({showTitle:!1,fullScreen:U,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(N)},this.option(y.nK));if(!this._editPopup){var Y=(0,o.Z)("<div>").appendTo(this.component.$element()).addClass(this.addWidgetPrefix(O));this._editPopup=this._createComponent(Y,b.Z,{copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0}),this._editPopup.on("hiding",this._getEditPopupHiddenHandler()),this._editPopup.on("shown",J=>{var j;c.Z.trigger(J.component.$content().find(y.DZ).not(".".concat(T)).first(),"focus"),V&&(null===(j=this._editForm)||void 0===j||j.repaint())})}this._editPopup.option(K),this._editPopup.show(),this.callBase.apply(this,arguments)},_getPopupEditFormTemplate:function(N){var V=this.component.getVisibleRows()[N],U={row:V,values:V.values,rowType:V.rowType,key:V.key,rowIndex:N};return this._rowsView._addWatchMethod(U,V),K=>{var Y=this.getEditFormTemplate(),J=this._createComponent((0,o.Z)("<div>").appendTo(K),x.Z);this._$popupContent=(0,o.Z)(J.content()),Y(this._$popupContent,U,{isPopupForm:!0}),this._rowsView.renderDelayedTemplates()}},_repaintEditPopup:function(){var N=this._getVisibleEditRowIndex();if(N>=0){var V,U,K=null===(V=this._editPopup)||void 0===V?void 0:V.option("animation");null===(U=this._editPopup)||void 0===U||U.option("animation",null),this._showEditPopup(N,!0),void 0!==K&&this._editPopup.option("animation",K)}},_hideEditPopup:function(){var N;null===(N=this._editPopup)||void 0===N||N.option("visible",!1)},optionChanged:function(N){if("editing"===N.name&&this.isFormOrPopupEditMode()){var V=N.fullName;0===V.indexOf(y.YI)?(this._handleFormOptionChange(N),N.handled=!0):0===V.indexOf(y.nK)&&(this._handlePopupOptionChange(N),N.handled=!0)}this.callBase.apply(this,arguments)},_handleFormOptionChange:function(N){var V;if(this.isFormEditMode()){var U=this._getVisibleEditRowIndex();U>=0&&this._dataController.updateItems({changeType:"update",rowIndices:[U]})}else null!==(V=this._editPopup)&&void 0!==V&&V.option("visible")&&0===N.fullName.indexOf(y.YI)&&this._repaintEditPopup()},_handlePopupOptionChange:function(N){var V=this._editPopup;if(V){var U=N.fullName.slice(y.nK.length+1);U?V.option(U,N.value):V.option(N.value)}},renderFormEditTemplate:function(N,V,U,K,Y){var J=this,j=(0,o.Z)(K),ee=V.column,G=(N=>{var V;return N.isCustomEditorType?N.editorType:null===(V=N.column.formItem)||void 0===V?void 0:V.editorType})(V),q=N?.row.data,Z=U.component,{label:X,labelMark:M,labelMode:se}=U.editorOptions||{},ge=(0,a.l)({},N,{data:q,cellElement:null,isOnForm:!0,item:V,id:Z.getItemID(V.name||V.dataField),column:(0,a.l)({},ee,{editorType:G,editorOptions:(0,a.l)({label:X,labelMark:M,labelMode:se},ee.editorOptions,V.editorOptions)}),columnIndex:ee.index,setValue:!Y&&ee.allowEditing&&function(Fe,Ae){J.updateFieldValue(ge,Fe,Ae)}});ge.value=ee.calculateCellValue(q);var De=this._getFormEditItemTemplate.bind(this)(ge,ee);return this._rowsView.renderTemplate(j,De,ge,!!(0,g.al)(j)).done(()=>{this._rowsView._updateCell(j,ge)}),ge},getFormEditorTemplate:function(N,V){var U=this.component.columnOption(V.dataField);return(K,Y)=>{var J,j,ee=(0,o.Z)(Y);null===(J=(j=N.row).watch)||void 0===J||J.call(j,function(){return U.selector(N.row.data)},()=>{var G,q=ee.find(".dx-widget").first(),Z=q.data("dxValidator"),X=null===(G=Z)||void 0===G?void 0:G.option();ee.contents().remove(),N=this.renderFormEditTemplate.bind(this)(N,V,K,ee),Z=(q=ee.find(".dx-widget").first()).data("dxValidator"),X&&!Z&&q.dxValidator({validationRules:X.validationRules,validationGroup:X.validationGroup,dataGetter:X.dataGetter})}),N=this.renderFormEditTemplate.bind(this)(N,V,K,ee)}},getEditFormOptions:function(N){var V,U=null===(V=this._getValidationGroupsInForm)||void 0===V?void 0:V.call(this,N),K=this.option("editing.form.customizeItem"),Y=this.addWidgetPrefix(S),J=this.option("editing.form.items"),j={};if(J)B(J,G=>{var q=G?.name||G?.dataField;q&&(j[q]=!!G.editorType)});else{var ee=this.getController("columns").getColumns();J=[],(0,f.S6)(ee,function(G,q){!q.isBand&&!q.type&&J.push({column:q,name:q.name,dataField:q.dataField})})}return(0,a.l)({},U,{items:J,formID:"dx-"+new I.Z,customizeItem:G=>{var q,Z=G.name||G.dataField;if((G.column||Z)&&(q=G.column||this._columnsController.columnOption(G.name?"name:"+G.name:"dataField:"+G.dataField)),q){if(G.label=G.label||{},G.label.text=G.label.text||q.caption,"boolean"===q.dataType&&void 0===G.label.visible){var X=this.option("editing.form.labelMode");("floating"===X||"static"===X)&&(G.label.visible=!0)}G.template=G.template||this.getFormEditorTemplate(N,G),G.column=q,G.isCustomEditorType=j[Z],q.formItem&&(0,a.l)(G,q.formItem),void 0===G.isRequired&&q.validationRules&&(G.isRequired=q.validationRules.some(function(se){return"required"===se.type}),G.validationRules=[]);var M=!(0,C.$K)(G.visible)||G.visible;!this._firstFormItem&&M&&(this._firstFormItem=G)}K?.call(this,G),G.cssClass=(0,C.HD)(G.cssClass)?G.cssClass+" "+Y:Y}})},getEditFormTemplate:function(){return(N,V,U)=>{var K=this.option(y.YI),Y=this.getEditFormOptions(V),J=(0,o.Z)("<div>").appendTo(N),j=U?.isPopupForm;if(this._firstFormItem=void 0,j&&J.addClass(this.addWidgetPrefix("edit-popup-form")),this._editForm=this._createComponent(J,u.Z,(0,a.l)({},K,Y)),!j){var ee=(0,o.Z)("<div>").addClass(this.addWidgetPrefix("form-buttons-container")).appendTo(N);this._createComponent((0,o.Z)("<div>").appendTo(ee),p.Z,this._getSaveButtonConfig()),this._createComponent((0,o.Z)("<div>").appendTo(ee),p.Z,this._getCancelButtonConfig())}this._editForm.on("contentReady",()=>{var G;this._rowsView.renderDelayedTemplates(),null===(G=this._editPopup)||void 0===G||G.repaint()})}},getEditForm:function(){return this._editForm},_endUpdateCore:function(){var N;null===(N=this._updateEditFormDeferred)||void 0===N||N.resolve()},_beforeEndSaving:function(){var N;this.callBase.apply(this,arguments),this.isPopupEditMode()&&(null===(N=this._editPopup)||void 0===N||N.hide())},_processDataItemCore:function(N,V){var{type:U}=V;this.isPopupEditMode()&&U===y.H3&&(N.visible=!1),this.callBase.apply(this,arguments)},_editRowFromOptionChangedCore:function(N,V){var U=this.isPopupEditMode();this.callBase(N,V,U),U&&this._showEditPopup(V)}},data:{_updateEditItem:function(N){this._editingController.isFormEditMode()&&(N.rowType="detail")},_getChangedColumnIndices:function(N,V,U,K){if(!1!==K||!V.isEditing||!this._editingController.isFormEditMode())return this.callBase.apply(this,arguments)}}},views:{rowsView:{_renderCellContent:function(N,V){"data"===V.rowType&&this._editingController.isPopupEditMode()&&!1===V.row.visible||this.callBase.apply(this,arguments)},getCellElements:function(N){var V=this.callBase(N),U=this._editingController,K=U.getEditForm();return U.getEditFormRowIndex()===N&&V&&K?K.$element().find("."+this.addWidgetPrefix(S)+", .dx-button"):V},_getVisibleColumnIndex:function(N,V,U){var K=this._editingController.getEditFormRowIndex();if(K===V&&(0,C.HD)(U)){var Y=this._columnsController.columnOption(U);return this._getEditFormEditorVisibleIndex(N,Y)}return this.callBase.apply(this,arguments)},_getEditFormEditorVisibleIndex:function(N,V){var U=-1;return(0,f.S6)(N,function(K,Y){var J=(0,o.Z)(Y).find(".dx-field-item-content").data("dx-form-item");if(null!=J&&J.column&&V&&J.column.index===V.index)return U=K,!1}),U},_isFormItem:function(N){var V="detail"===N.rowType||"detailAdaptive"===N.rowType,U="data"===N.rowType&&this._editingController.isPopupEditMode();return(V||U)&&N.item},_updateCell:function(N,V){this._isFormItem(V)?this._formItemPrepared(V,N):this.callBase(N,V)}}}}}},9057:(kn,he,l)=>{"use strict";l.d(he,{j:()=>I});var o=l(6468),c="dx-edit-row",I={extenders:{controllers:{editing:{isRowEditMode:function(){return this.getEditMode()===o.CM},_afterCancelEditData:function(C){var f=this._dataController;this.isRowBasedEditMode()&&C>=0?f.updateItems({changeType:"update",rowIndices:[C,C+1]}):this.callBase.apply(this,arguments)},_isDefaultButtonVisible:function(C,f){var a=this.isRowBasedEditMode(),p=f.row&&f.row.rowIndex===this._getVisibleEditRowIndex();if(a)switch(C.name){case"edit":return!p&&this.allowUpdating(f);case"delete":return this.callBase.apply(this,arguments)&&!p;case"save":case"cancel":return p;default:return this.callBase.apply(this,arguments)}return this.callBase.apply(this,arguments)},isEditRow:function(C){return this.isRowBasedEditMode()&&this.isEditRowByIndex(C)},_cancelSaving:function(){this.isRowBasedEditMode()&&(this.hasChanges()||this._cancelEditDataCore()),this.callBase.apply(this,arguments)},_refreshCore:function(C){var{allowCancelEditing:f}=C??{};if(this.isRowBasedEditMode()){var a=this.getChanges().filter(p=>"update"===p.type).length>0;this.init(),f&&a&&this._cancelEditDataCore()}this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var C=this.callBase.apply(this,arguments),f=this.option("editing"),a=this.isRowEditMode(),p=f.allowUpdating||f.allowAdding;return C||a&&p},_focusEditorIfNeed:function(){var C=this.getEditMode();if(this._needFocusEditor){if(-1!==o.EJ.indexOf(C)){var f=this.getFocusedCellInRow(this._getVisibleEditRowIndex());this._delayedInputFocus(f,()=>{f&&this.component.focus(f)})}this._needFocusEditor=!1}}},data:{_getChangedColumnIndices:function(C,f,a,p){var s=this.getController("editing");if(!s.isRowBasedEditMode()||C.isEditing===f.isEditing)return this.callBase.apply(this,arguments)}}},views:{rowsView:{_createRow:function(C){var f=this.callBase.apply(this,arguments);if(C){var a=this._editingController,p=a.isEditRow(C.rowIndex);p&&(f.addClass(c),f.removeClass(o.ol),"detail"===C.rowType&&f.addClass(this.addWidgetPrefix(o.kb)))}return f},_update:function(C){this.callBase(C),"updateSelection"===C.changeType&&this.getTableElements().children("tbody").children("."+c).removeClass(o.ol)}}}}}},8543:(kn,he,l)=>{"use strict";l.d(he,{V:()=>N});var o=l(1805),c=l(9904),I=l(9897),C=l(913),f=l(3390),a=l(227),p=l(8690),s=l(5791),u=l(8225),d=l(4722),h=l(5873),g=l(5450),x=l(5946),b=l(2879),E="dx-cell-focus-disabled",S="focus-overlay",w="dx-focused",k="dxDataGridEditorFactory",R=(0,u.V4)([p.Z.down,"focusin",a.u].join(" "),k),P="dx-hidden",N={defaultOptions:function(){return{}},controllers:{editorFactory:f.Z.ViewController.inherit({_getFocusedElement:function(V){var U=this.option("focusedRowEnabled")?"tr[tabindex]:focus":"tr[tabindex]:not(.dx-data-row):focus",K="td[tabindex]:focus, ".concat(U,", input:focus, textarea:focus, .dx-lookup-field:focus, .dx-checkbox:focus, .dx-switch:focus, .dx-dropdownbutton .dx-buttongroup:focus, .dx-adaptive-item-text:focus"),Y=V.find(K);return this.elementIsInsideGrid(Y)&&Y},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var U,K,V=this.component&&this.component.$element();if(V){var Y=this._getFocusedElement(V);if(Y&&Y.length&&(!Y.hasClass(E)&&!Y.hasClass("dx-row")&&(K=(U=Y.closest(this._getFocusCellSelector()+", ."+E)).get(0)!==Y.get(0)&&U.hasClass("dx-editor-inline-block"),Y=U),Y.length&&!Y.hasClass(E)))return void this.focus(Y,K)}this.loseFocus()},_updateFocus:function(V){var U=this,K=V&&V.event&&(0,c.Z)(V.event.target).hasClass(U.addWidgetPrefix(S));U._isFocusOverlay=U._isFocusOverlay||K,clearTimeout(U._updateFocusTimeoutID),U._updateFocusTimeoutID=setTimeout(function(){delete U._updateFocusTimeoutID,U._isFocusOverlay||U._updateFocusCore(),U._isFocusOverlay=!1})},_updateFocusOverlaySize:function(V,U){V.hide();var K=s.Z.calculate(V,(0,h.l)({collision:"fit"},U));K.h.oversize>0&&(0,o.Ns)(V,(0,o.Y_)(V)-K.h.oversize),K.v.oversize>0&&(0,o.qt)(V,(0,o.zp)(V)-K.v.oversize),V.show()},callbackNames:function(){return["focused"]},focus:function(V,U){var K=this;if(void 0===V)return K._$focusedElement;V&&(V.is(K._$focusedElement)||K._$focusedElement&&K._$focusedElement.removeClass(w),K._$focusedElement=V,clearTimeout(K._focusTimeoutID),K._focusTimeoutID=setTimeout(function(){delete K._focusTimeoutID,K.renderFocusOverlay(V,U),V.addClass(w),K.focused.fire(V)}))},refocus:function(){var V=this.focus();this.focus(V)},renderFocusOverlay:function(V,U){if(b.Z.isElementInCurrentGrid(this,V))if(this._$focusOverlay||(this._$focusOverlay=(0,c.Z)("<div>").addClass(this.addWidgetPrefix(S))),U)this._$focusOverlay.addClass(P);else if(V.length){var K=d.Z.mozilla?"right bottom":"left top",Y=V.closest("."+this.addWidgetPrefix("content")),J=(0,g.l)(V.get(0));this._$focusOverlay.removeClass(P).appendTo(Y),(0,o.qt)(this._$focusOverlay,J.bottom-J.top+1),(0,o.Ns)(this._$focusOverlay,J.right-J.left+1);var j={precise:!0,my:K,at:K,of:V,boundary:Y.length&&Y};this._updateFocusOverlaySize(this._$focusOverlay,j),s.Z.setup(this._$focusOverlay,j),this._$focusOverlay.css("visibility","visible")}},resize:function(){var V=this._$focusedElement;V&&this.focus(V)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass(w),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(P)},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)),C.Z.on(this._getContainerRoot(),R,this._updateFocusHandler),this._attachContainerEventHandlers()},_getContainerRoot:function(){var V,U=null===(V=this.component)||void 0===V?void 0:V.$element(),K=I.Z.getRootNode(U?.get(0));return K.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||K.host?K:I.Z.getDocument()},_attachContainerEventHandlers:function(){var V=this,U=V.component&&V.component.$element();U&&C.Z.on(U,(0,u.V4)("keydown",k),function(K){"tab"===(0,u.EV)(K)&&V._updateFocusHandler(K)})},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),C.Z.off(this._getContainerRoot(),R,this._updateFocusHandler)}}).include(x.Z)}}},3979:(kn,he,l)=>{"use strict";l.d(he,{M:()=>h});var o=l(9904),c=l(913),I=l(227),C=l(2718),f=l(3390),a="dx-error-row",p="dx-error-message",h={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:f.Z.ViewController.inherit({init:function(){this._columnHeadersView=this.getView("columnHeadersView"),this._rowsView=this.getView("rowsView")},_createErrorRow:function(g,x){var y,E,b=this,S=this._renderErrorMessage(g);return x?(y=(0,o.Z)("<tr>").addClass(a),E=(0,o.Z)("<div>").addClass("dx-closebutton").addClass(b.addWidgetPrefix("action")),c.Z.on(E,I.u,b.createAction(function(O){var T,w=O.event,k=(0,o.Z)(w.currentTarget).closest("."+a).index();w.stopPropagation(),(0,C.S6)(x,function(R,P){T=(0,o.Z)(P).children("tbody").children("tr").eq(k),b.removeErrorRow(T)}),b.getController("resizing")&&b.getController("resizing").fireContentReadyAction()})),(0,o.Z)("<td>").attr({colSpan:b.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(E).append(S).appendTo(y),y):S},_renderErrorMessage:function(g){var x=g.url?g.message.replace(g.url,""):g.message||g,b=(0,o.Z)("<div>").addClass(p).text(x);return g.url&&(0,o.Z)("<a>").attr("href",g.url).text(g.url).appendTo(b),b},renderErrorRow:function(g,x,b){var E,S,y=this;if(b)return b.find("."+p).remove(),E=y._createErrorRow(g),b.prepend(E),E;var O=x>=0||!y._columnHeadersView.isVisible()?y._rowsView:y._columnHeadersView,w=O.getTableElements();(0,C.S6)(w,function(k,R){if(E=y._createErrorRow(g,w),S=S||E,x>=0){var P=O._getRowElements((0,o.Z)(R)).eq(x);y.removeErrorRow(P.next()),E.insertAfter(P)}else{var B=(0,o.Z)(R).children("tbody"),W=B.children("tr");y._columnHeadersView.isVisible()?(y.removeErrorRow(W.last()),(0,o.Z)(R).append(E)):(y.removeErrorRow(W.first()),B.first().prepend(E))}});var T=y.getController("resizing");return T&&T.fireContentReadyAction(),S},removeErrorRow:function(g){if(!g){var x=this._columnHeadersView&&this._columnHeadersView.element();if(!(g=x&&x.find("."+a))||!g.length){var b=this._rowsView.element();g=b&&b.find("."+a)}}g&&g.hasClass(a)&&g.remove()},optionChanged:function(g){"errorRowEnabled"===g.name?g.handled=!0:this.callBase(g)}})},extenders:{controllers:{data:{init:function(){var g=this,x=g.getController("errorHandling");g.callBase(),g.dataErrorOccurred.add(function(b,y){g.option("errorRowEnabled")&&x.renderErrorRow(b,void 0,y)}),g.changed.add(function(b){if(!b||"loadError"!==b.changeType){var y=g.getController("errorHandling"),E=g.getController("editing");E&&!E.hasChanges()&&y&&y.removeErrorRow()}})}}}}}},6314:(kn,he,l)=>{"use strict";l.d(he,{$:()=>c});var o=l(5873);function c(I,C){for(var f=x=>x||1,a=[],p=(I[0]||[]).reduce((x,b)=>x+f(b.colspan),0),s=(x=>{var b=0,y=0;return()=>{var E=x[b]||[],S=E[y++];return y>=E.length&&(b++,y=0),S&&(S.colspan=f(S.colspan),S.rowspan=f(S.rowspan)),S}})(I),u=(x,b,y)=>{if((a[x]=a[x]||[])[b]=y,y.colspan>1||y.rowspan>1){for(var S=(0,o.l)({},y,C),O=1;O<y.colspan;O++)u(x,b+O,S);for(var w=1;w<y.rowspan;w++)for(var T=0;T<y.colspan;T++)u(x+w,b+T,S)}},d=s(),h=0;d;){for(var g=0;g<p&&d;g++)a[h]&&a[h][g]||(u(h,g,d),g+=d.colspan-1,d=s());h++}return a}},7963:(kn,he,l)=>{"use strict";l.d(he,{z:()=>d});var o=l(9904),c=l(3390),I=l(5873),C=l(4554),f=l(9009),a=l(3862),p=l(8531),s=l(2559),d={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:f.Z.format("dxFilterBuilder-and"),or:f.Z.format("dxFilterBuilder-or"),notAnd:f.Z.format("dxFilterBuilder-notAnd"),notOr:f.Z.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:f.Z.format("dxFilterBuilder-filterOperationBetween"),equal:f.Z.format("dxFilterBuilder-filterOperationEquals"),notEqual:f.Z.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:f.Z.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:f.Z.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:f.Z.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:f.Z.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:f.Z.format("dxFilterBuilder-filterOperationStartsWith"),contains:f.Z.format("dxFilterBuilder-filterOperationContains"),notContains:f.Z.format("dxFilterBuilder-filterOperationNotContains"),endsWith:f.Z.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:f.Z.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:f.Z.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:c.Z.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 h=this;h._disposePopup(),h._filterBuilderPopup=h._createComponent(h.element(),p.Z,(0,I.l)({title:f.Z.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(g){return h._getPopupContentTemplate(g)},onOptionChanged:function(g){"visible"===g.name&&h.option("filterBuilderPopup.visible",g.value)},toolbarItems:h._getPopupToolbarItems()},h.option("filterBuilderPopup"),{onHidden:function(g){(0,s.vg)(h),h._disposePopup()}}))},_getPopupContentTemplate:function(h){var g=(0,o.Z)(h),x=(0,o.Z)("<div>").appendTo((0,o.Z)(h));this._filterBuilder=this._createComponent(x,C.Z,(0,I.l)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(g,a.Z,{direction:"both"})},_getPopupToolbarItems:function(){var h=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:f.Z.format("OK"),onClick:function(g){var x=h._filterBuilder.option("value");h.option("filterValue",x),h._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:f.Z.format("Cancel"),onClick:function(g){h._filterBuilderPopup.hide()}}}]},optionChanged:function(h){switch(h.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),h.handled=!0;break;default:this.callBase(h)}}})}}},9624:(kn,he,l)=>{"use strict";l.d(he,{o:()=>w});var o=l(9904),c=l(1828),I=l(3390),C=l(2879),f=l(913),a=l(9009),p=l(344),s=l(8507),u=l(4270),d=l(7981),h=l(2127),g="filter-panel",x=g+"-text",b=g+"-checkbox",y=g+"-clear-filter",E=g+"-left",w={defaultOptions:function(){return{filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:a.Z.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:a.Z.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:a.Z.format("dxDataGrid-filterPanelFilterEnabledHint")}}}},views:{filterPanelView:I.Z.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(g));var k=(0,o.Z)("<div>").addClass(this.addWidgetPrefix(E)).appendTo(T);this.option("filterValue")||this._filterValueBuffer?(k.append(this._getCheckElement()).append(this._getFilterElement()).append(this._getTextElement()),T.append(this._getRemoveButtonElement())):k.append(this._getFilterElement()).append(this._getTextElement())},_getCheckElement:function(){var T=this,k=(0,o.Z)("<div>").addClass(this.addWidgetPrefix(b));return T._createComponent(k,p.Z,{value:T.option("filterPanel.filterEnabled"),onValueChanged:function(R){T.option("filterPanel.filterEnabled",R.value)}}),k.attr("title",this.option("filterPanel.texts.filterEnabledHint")),k},_getFilterElement:function(){var T=this,k=(0,o.Z)("<div>").addClass("dx-icon-filter");return f.Z.on(k,"click",()=>T._showFilterBuilder()),(0,h.Y)("filterPanel",T,k,void 0,()=>T._showFilterBuilder()),T._addTabIndexToElement(k),k},_getTextElement:function(){var R,T=this,k=(0,o.Z)("<div>").addClass(T.addWidgetPrefix(x)),P=T.option("filterValue");return P?(0,u.gx)(T.getFilterText(P,T.getController("filterSync").getCustomFilterOperations())).done(function(B){var W=T.option("filterPanel.customizeText");if(W){var N=W({component:T.component,filterValue:P,text:B});"string"==typeof N&&(B=N)}k.text(B)}):(R=T.option("filterPanel.texts.createFilter"),k.text(R)),f.Z.on(k,"click",()=>T._showFilterBuilder()),(0,h.Y)("filterPanel",T,k,void 0,()=>T._showFilterBuilder()),T._addTabIndexToElement(k),k},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var T=this,k=()=>T.option("filterValue",null),R=(0,o.Z)("<div>").addClass(T.addWidgetPrefix(y)).text(T.option("filterPanel.texts.clearFilter"));return f.Z.on(R,"click",k),(0,h.Y)("filterPanel",this,R,void 0,k),T._addTabIndexToElement(R),R},_addTabIndexToElement:function(T){if(!this.option("useLegacyKeyboardNavigation")){var k=this.option("tabindex")||0;T.attr("tabindex",k)}},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,k,R){var P="[".concat(T,"] ").concat(k);return(0,c.$K)(R)&&(P+=R),P},_getValueMaskedText:function(T){return Array.isArray(T)?"('".concat(T.join("', '"),"')"):" '".concat(T,"'")},_getValueText:function(T,k,R){var P=new u.BH,B=k&&k.customizeText;if((0,c.$K)(R)||B)if(!B&&T.lookup)(0,s.W2)(T,R,N=>{P.resolve(this._getValueMaskedText(N))});else{var W=Array.isArray(R)?R:C.Z.getDisplayValue(T,R);(0,u.gx)((0,s.fQ)(T,W,k,"filterPanel")).done(N=>{P.resolve(this._getValueMaskedText(N))})}else P.resolve("");return P.promise()},getConditionText:function(T,k){var N,R=this,P=T[1],B=new u.BH,W=(0,s.tt)(k.customOperations,P),V=(0,s.rz)(T[0],k.columns),U=V.caption||"",K=T[2];return N=W?W.caption||(0,d.GK)(W.name):(0,s.uL)(null===K?"="===P?"isblank":"isnotblank":P,k.filterOperationDescriptions),this._getValueText(V,W,K).done(Y=>{B.resolve(R._getConditionText(U,N,Y))}),B},getGroupText:function(T,k,R){var P=this,B=new u.BH,W=[],N=(0,s.Uc)(T);return T.forEach(V=>{(0,s.T5)(V)?W.push(P.getConditionText(V,k)):(0,s.ty)(V)&&W.push(P.getGroupText(V,k,!0))}),u.gx.apply(this,W).done(function(){for(var V,U=arguments.length,K=new Array(U),Y=0;Y<U;Y++)K[Y]=arguments[Y];if("!"===N[0]){var J=k.groupOperationDescriptions["not"+N.substring(1,2).toUpperCase()+N.substring(2)].split(" ");V="".concat(J[0]," ").concat(K[0])}else V=K.join(" ".concat(k.groupOperationDescriptions[N]," "));R&&(V="(".concat(V,")")),B.resolve(V)}),B},getFilterText:function(T,k){var R={customOperations:k,columns:this.getController("columns").getFilteringColumns(),filterOperationDescriptions:this.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:this.option("filterBuilder.groupOperationDescriptions")};return(0,s.T5)(T)?this.getConditionText(T,R):this.getGroupText(T,R)}})},extenders:{controllers:{data:{optionChanged:function(T){"filterPanel"===T.name?(this._applyFilter(),T.handled=!0):this.callBase(T)}}}}}},275:(kn,he,l)=>{"use strict";l.d(he,{b:()=>Ae});var o=l(4817),c=l(1805),I=l(9904),C=l(913),f=l(1828),a=l(5873),p=l(8225),s=l(2718),u=l(3390),d=l(2879),h=l(9009),g=l(1031),x=l(3576),b=l(9998),y=l(2559),E=l(7674),S={"=":"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"},O={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},k="filter-row",R="filter-range-overlay",P="filter-range-start",W="dx-menu",N="dx-editor-with-menu",V="dx-editor-container",U="dx-editor-cell",J="dx-highlight-outline",j="dx-focused",G="dx-filter-range-content",q="dx-filter-modified",Z="input:not([type='hidden'])",X=["date","datetime","number"];function M(ne){return"onClick"===ne.option("filterRow.applyFilter")}var se=function(ne){var fe=ne&&ne.children(),_e=fe&&fe.data("dxComponents"),ie=_e&&_e.length&&fe.data(_e[0]);if(ie instanceof g.Z)return ie},ge=function(){var ne=function(le,pe){var Ee="",ae="",te=fe(le,pe),re=d.Z.getFormatOptionsByColumn(pe,"filterRow");return Array.isArray(te)?(Ee=d.Z.formatValue(te[0],re),""!==(ae=d.Z.formatValue(te[1],re))&&(Ee+=" - "+ae)):(0,f.$K)(te)&&(Ee=d.Z.formatValue(te,re)),Ee};function fe(le,pe){if(pe)return M(le)&&void 0!==pe.bufferedFilterValue?pe.bufferedFilterValue:pe.filterValue}var _e=function(le,pe){if(pe)return M(le)&&void 0!==pe.bufferedSelectedFilterOperation?pe.bufferedSelectedFilterOperation:pe.selectedFilterOperation},ie=function(le,pe,Ee){var ye,Pe,ae=le._columnsController.columnOption(pe),te=fe(le,ae),re=Ee.closest("."+le.addWidgetPrefix(R)).length,oe=Ee.hasClass(le.addWidgetPrefix(P));return te&&Array.isArray(te)&&"between"===_e(le,ae)?oe?te[0]:te[1]:re||(ye=te,(Pe=ae)&&X.indexOf(Pe.dataType)>=0&&Array.isArray(ye)||void 0===ye)?null:te};return{_updateEditorValue:function(le,pe){var Ee=se(pe);Ee&&Ee.option("value",ie(this,le.index,pe))},_columnOptionChanged:function(le){var Ee,ae,te,re,pe=le.optionNames;if(d.Z.checkChanges(pe,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","filterValues","filterType"])&&void 0!==le.columnIndex){var oe=this._columnsController.getVisibleIndex(le.columnIndex),ye=this._columnsController.columnOption(le.columnIndex);if(ae=(Ee=this._getCellElement(this.element().find("."+this.addWidgetPrefix(k)).index(),oe)||(0,I.Z)()).find("."+V).first(),pe.filterValue||pe.bufferedFilterValue){this._updateEditorValue(ye,ae);var Pe=Ee.find("."+this.addWidgetPrefix(R)).data("dxOverlay");Pe&&(te=Pe.$content().find("."+V),this._updateEditorValue(ye,te.first()),this._updateEditorValue(ye,te.last())),(!Pe||!Pe.option("visible"))&&this._updateFilterRangeContent(Ee,ne(this,ye))}(pe.selectedFilterOperation||pe.bufferedSelectedFilterOperation)&&oe>=0&&ye&&(re=Ee.find("."+W)).length&&(this._updateFilterOperationChooser(re,ye,ae),"between"===_e(this,ye)?this._renderFilterRangeContent(Ee,ye):ae.find("."+G).length&&(this._renderEditor(ae,this._getEditorOptions(ae,ye)),this._hideFilterRange()))}else this.callBase(le)},_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(le,pe){var Ee=this,ae={},te=le.find(".dx-editor-container"),re=(0,I.Z)("<div>").addClass(Ee.addWidgetPrefix(R)).appendTo(le);return Ee._createComponent(re,x.Z,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,hideOnOutsideClick:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,animation:!1,position:{my:"top",at:"top",of:te.length&&te||le,offset:"0 -1"},contentTemplate:function(oe){var ye,Pe=(0,I.Z)("<div>").addClass(V+" "+Ee.addWidgetPrefix(P)).appendTo(oe);return pe=Ee._columnsController.columnOption(pe.index),(ye=Ee._getEditorOptions(Pe,pe)).sharedData=ae,Ee._renderEditor(Pe,ye),C.Z.on(Pe.find(Z),"keydown",function(Ne){var ft=le.find("[tabindex]").not(Ne.target).first();"tab"===(0,p.EV)(Ne)&&Ne.shiftKey&&(Ne.preventDefault(),Ee._hideFilterRange(),ft.length||(ft=le.prev().find("[tabindex]").last()),C.Z.trigger(ft,"focus"))}),Pe=(0,I.Z)("<div>").addClass(V+" "+Ee.addWidgetPrefix("filter-range-end")).appendTo(oe),(ye=Ee._getEditorOptions(Pe,pe)).sharedData=ae,Ee._renderEditor(Pe,ye),C.Z.on(Pe.find(Z),"keydown",function(Ne){"tab"===(0,p.EV)(Ne)&&!Ne.shiftKey&&(Ne.preventDefault(),Ee._hideFilterRange(),C.Z.trigger(le.next().find("[tabindex]").first(),"focus"))}),(0,I.Z)(oe).addClass(Ee.getWidgetContainerClass())},onShown:function(oe){var ye=oe.component.$content().find("."+V).first();C.Z.trigger(ye.find(Z),"focus")},onHidden:function(){pe=Ee._columnsController.columnOption(pe.index),le.find("."+W).parent().addClass(N),"between"===_e(Ee,pe)&&(Ee._updateFilterRangeContent(le,ne(Ee,pe)),Ee.component.updateDimensions())}})},_updateFilterRangeOverlay:function(le){var pe=this._filterRangeOverlayInstance;pe&&pe.option(le)},_showFilterRange:function(le,pe){var Ee=le.children("."+this.addWidgetPrefix(R)),ae=Ee.length&&Ee.data("dxOverlay");!ae&&pe&&(ae=this._initFilterRangeOverlay(le,pe)),ae.option("visible")||(this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.hide(),this._filterRangeOverlayInstance=ae,this._updateFilterRangeOverlay({width:(0,c.Y_)(le,!0)+1}),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var le=this._filterRangeOverlayInstance;le&&le.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(le){var pe=this.callBase(le);return"filter"===le.rowType&&(pe.addClass(this.addWidgetPrefix(k)),this.option("useLegacyKeyboardNavigation")||C.Z.on(pe,"keydown",Ee=>(0,y.fv)("filterRow",this,Ee))),pe},_getRows:function(){var le=this.callBase();return this.isFilterRowVisible()&&le.push({rowType:"filter"}),le},_renderFilterCell:function(le,pe){var Ee=pe.column,ae=(0,I.Z)(le);this.component.option("showColumnHeaders")&&this.setAria("describedby",Ee.headerId,ae),this.setAria("label",h.Z.format("dxDataGrid-ariaFilterCell"),ae),ae.addClass(U);var te=(0,I.Z)("<div>").appendTo(ae),re=(0,I.Z)("<div>").addClass(V).appendTo(te);if("between"===_e(this,Ee))this._renderFilterRangeContent(ae,Ee);else{var oe=this._getEditorOptions(re,Ee);this._renderEditor(re,oe)}var ye=Ee.alignment;ye&&"center"!==ye&&ae.find(Z).first().css("textAlign",Ee.alignment),Ee.filterOperations&&Ee.filterOperations.length&&this._renderFilterOperationChooser(te,Ee,re)},_renderCellContent:function(le,pe){var Ee=this,ae=pe.column;if("filter"===pe.rowType)if(ae.command)le.html("&nbsp;");else if(ae.allowFiltering)return void Ee.renderTemplate(le,Ee._renderFilterCell.bind(Ee),pe).done(()=>{Ee._updateCell(le,pe)});this.callBase.apply(this,arguments)},_getEditorOptions:function(le,pe){var Ee=this,ae={editorOptions:{inputAttr:Ee._getFilterInputAccessibilityAttributes(pe)}},te=(0,a.l)(ae,pe,{value:ie(Ee,pe.index,le),parentType:"filterRow",showAllText:Ee.option("filterRow.showAllText"),updateValueTimeout:"onClick"===Ee.option("filterRow.applyFilter")?0:700,width:null,setValue:function(re,oe){!function(le,pe){var Ee=""===pe.value?null:pe.value,ae=pe.container,te=le._columnsController.columnOption(pe.column.index),re=ie(le,te.index,ae);if((0,f.$K)(re)||(0,f.$K)(Ee)){le._applyFilterViewController.setHighLight(ae,re!==Ee);var oe=M(le)?"bufferedFilterValue":"filterValue",ye=function(ft,tt,Be,mt){if("between"===_e(ft,Be)){var nn=fe(ft,Be);return mt.hasClass(ft.addWidgetPrefix(P))?[tt,Array.isArray(nn)?nn[1]:void 0]:[Array.isArray(nn)?nn[0]:nn,tt]}return tt}(le,Ee,te,ae),Pe="between"===_e(le,te),Ne=pe.notFireEvent||Pe&&Array.isArray(ye)&&ye.indexOf(void 0)>=0;le._columnsController.columnOption(te.index,oe,ye,Ne)}}(Ee,{column:pe,value:re,container:le,notFireEvent:oe})}});return"between"===_e(Ee,pe)&&(te.placeholder=le.hasClass(Ee.addWidgetPrefix(P))?Ee.option("filterRow.betweenStartText"):Ee.option("filterRow.betweenEndText")),te},_getFilterInputAccessibilityAttributes:function(le){var pe=h.Z.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":pe,"aria-describedby":le.headerId}:{"aria-label":pe}},_renderEditor:function(le,pe){le.empty();var Ee=(0,I.Z)("<div>").appendTo(le),ae=this.getController("editorFactory"),te=this.getController("data").dataSource(),re=this.getController("applyFilter");if(pe.lookup&&this.option("syncLookupFilterValues")){re.setCurrentColumnForFiltering(pe);var oe=this.getController("data").getCombinedFilter();re.setCurrentColumnForFiltering(null);var ye=d.Z.getWrappedLookupDataSource(pe,te,oe),Pe=(0,o.Z)({},pe,{lookup:(0,o.Z)({},pe.lookup,{dataSource:ye})});return ae.createEditor(Ee,Pe)}return ae.createEditor(Ee,pe)},_renderFilterRangeContent:function(le,pe){var Ee=this,ae=le.find("."+V).first();ae.empty();var te=(0,I.Z)("<div>").addClass(G).attr("tabindex",this.option("tabIndex"));C.Z.on(te,"focusin",function(){Ee._showFilterRange(le,pe)}),te.appendTo(ae),Ee._updateFilterRangeContent(le,ne(Ee,pe))},_updateFilterRangeContent:function(le,pe){var Ee=le.find("."+G);Ee.length&&(""===pe?Ee.html("&nbsp;"):Ee.text(pe))},_updateFilterOperationChooser:function(le,pe,Ee){var te,ae=this,re=function(){var oe=b.Z.getInstance(le);oe&&oe.option("focusedElement",null),te&&ae._focusEditor(Ee)};ae._createComponent(le,b.Z,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:ae.getWidgetContainerClass()+" dx-cell-focus-disabled dx-filter-menu",showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!(pe.filterOperations&&pe.filterOperations.length),icon:S[_e(ae,pe)||"default"],selectable:!1,items:ae._getFilterOperationMenuItems(pe)}],onItemClick:function(oe){var ye=oe.itemData.name,Pe=_e(ae,pe),Ne=!1,ft=M(ae),tt={};if(!(oe.itemData.items||ye&&ye===Pe)){if(ye?(tt[ft?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=ye,("between"===ye||"between"===Pe)&&(Ne="between"===ye,tt[ft?"bufferedFilterValue":"filterValue"]=null)):(tt[ft?"bufferedFilterValue":"filterValue"]=null,tt[ft?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=pe.defaultSelectedFilterOperation||null),ae._columnsController.columnOption(pe.index,tt),ae._applyFilterViewController.setHighLight(Ee,!0),!ye){var Be=se(Ee);Be&&"dxDateBox"===Be.NAME&&!Be.option("isValid")&&(Be.reset(),Be.option("isValid",!0))}Ne?ae._showFilterRange(Ee.closest("."+U),pe):ae._focusEditor(Ee)}},onSubmenuShowing:function(){te=ae._isEditorFocused(Ee),ae.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){C.Z.trigger(le,"blur"),re()},onContentReady:function(oe){C.Z.on(le,"blur",()=>{oe.component._hideSubmenuAfterTimeout(),re()})},rtlEnabled:ae.option("rtlEnabled")})},_isEditorFocused:function(le){return le.hasClass(j)||le.parents("."+j).length},_focusEditor:function(le){this.getController("editorFactory").focus(le),C.Z.trigger(le.find(Z),"focus")},_renderFilterOperationChooser:function(le,pe,Ee){var ae;this.option("filterRow.showOperationChooser")&&(le.addClass(N),ae=(0,I.Z)("<div>").prependTo(le),this._updateFilterOperationChooser(ae,pe,Ee))},_getFilterOperationMenuItems:function(le){var pe=this,Ee=[{}],ae=pe.option("filterRow"),te=ae&&ae.operationDescriptions||{};if(le.filterOperations&&le.filterOperations.length){var re=le.filterOperations.filter(function(oe){return(0,f.$K)(O[oe])});(Ee=(0,s.UI)(re,function(oe){var ye=O[oe];return{name:oe,selected:(_e(pe,le)||le.defaultFilterOperation)===oe,text:te[ye],icon:S[oe]}})).push({name:null,text:ae&&ae.resetOperationText,icon:S.default})}return Ee},_handleDataChanged:function(le){var pe,Ee,ae;this.callBase.apply(this,arguments),(null!==(pe=le.operationTypes)&&void 0!==pe&&pe.filtering||null!==(Ee=le.operationTypes)&&void 0!==Ee&&Ee.fullReload)&&this.updateLookupDataSource(null===(ae=le.operationTypes)||void 0===ae?void 0:ae.filtering)},updateLookupDataSource:function(le){if(this.option("syncLookupFilterValues")&&this.element()){var pe=this._columnsController.getVisibleColumns(),Ee=this._dataController.dataSource(),ae=this._applyFilterViewController,te=this.element().find("."+this.addWidgetPrefix(k)).index();-1!==te&&pe.forEach((re,oe)=>{if(re.lookup&&re.calculateCellValue===re.defaultCalculateCellValue){var ye=this._getCellElement(te,oe),Pe=se(ye?.find(".dx-editor-container"));if(Pe){ae.setCurrentColumnForFiltering(re);var Ne=this._dataController.getCombinedFilter()||null;ae.setCurrentColumnForFiltering(null);var ft=Pe.option("dataSource");if(!le||!(0,E.bY)(ft.__dataGridSourceFilter,Ne)){var Be=d.Z.getWrappedLookupDataSource(re,Ee,Ne);Pe.option("dataSource",Be)}}}})}},optionChanged:function(le){switch(le.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),le.handled=!0;break;case"syncLookupFilterValues":le.value?this.updateLookupDataSource():this.render(),le.handled=!0;break;default:this.callBase(le)}}}}(),De={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var ne=[this.callBase()],fe=this._columnsController.getVisibleColumns(null,!0),_e=this.getController("applyFilter");return(0,s.S6)(fe,function(){var ie,de=(null===(ie=_e.getCurrentColumnForFiltering())||void 0===ie?void 0:ie.index)===this.index;if(this.allowFiltering&&this.calculateFilterExpression&&(0,f.$K)(this.filterValue)&&!de){var le=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow");ne.push(le)}}),d.Z.combineFilters(ne)}},Ae={defaultOptions:function(){return{syncLookupFilterValues:!0,filterRow:{visible:!1,showOperationChooser:!0,showAllText:h.Z.format("dxDataGrid-filterRowShowAllText"),resetOperationText:h.Z.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:h.Z.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:h.Z.format("dxDataGrid-filterRowOperationEquals"),notEqual:h.Z.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:h.Z.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:h.Z.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:h.Z.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:h.Z.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:h.Z.format("dxDataGrid-filterRowOperationStartsWith"),contains:h.Z.format("dxDataGrid-filterRowOperationContains"),notContains:h.Z.format("dxDataGrid-filterRowOperationNotContains"),endsWith:h.Z.format("dxDataGrid-filterRowOperationEndsWith"),between:h.Z.format("dxDataGrid-filterRowOperationBetween"),isBlank:h.Z.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:h.Z.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:h.Z.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:h.Z.format("dxDataGrid-filterRowOperationBetweenEndText")}}},controllers:{applyFilter:u.Z.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(ne,fe){M(this)&&(ne&&ne.toggleClass(J,fe)&&ne.closest("."+U).toggleClass(q,fe),this._getHeaderPanel().enableApplyButton(fe))},applyFilter:function(){var ne=this.getController("columns"),fe=ne.getColumns();ne.beginUpdate();for(var _e=0;_e<fe.length;_e++){var ie=fe[_e];void 0!==ie.bufferedFilterValue&&(ne.columnOption(_e,"filterValue",ie.bufferedFilterValue),ie.bufferedFilterValue=void 0),void 0!==ie.bufferedSelectedFilterOperation&&(ne.columnOption(_e,"selectedFilterOperation",ie.bufferedSelectedFilterOperation),ie.bufferedSelectedFilterOperation=void 0)}ne.endUpdate(),this.removeHighLights()},removeHighLights:function(){if(M(this)){var ne=this.getView("columnHeadersView").element();ne.find("."+this.addWidgetPrefix(k)+" ."+J).removeClass(J),ne.find("."+this.addWidgetPrefix(k)+" ."+q).removeClass(q),this._getHeaderPanel().enableApplyButton(!1)}},setCurrentColumnForFiltering:function(ne){this._currentColumn=ne},getCurrentColumnForFiltering:function(){return this._currentColumn}})},extenders:{controllers:{data:De,columnsResizer:{_startResizing:function(){var ne=this;if(ne.callBase.apply(ne,arguments),ne.isResizing()){var fe=ne._columnHeadersView.getFilterRangeOverlayInstance();if(fe){var _e=fe.$element().closest("td").index();(_e===ne._targetPoint.columnIndex||_e===ne._targetPoint.columnIndex+1)&&fe.$content().hide()}}},_endResizing:function(){var fe,ne=this;if(ne.isResizing()){var _e=ne._columnHeadersView.getFilterRangeOverlayInstance();_e&&(fe=_e.$element().closest("td"),ne._columnHeadersView._updateFilterRangeOverlay({width:(0,c.Y_)(fe,!0)+1}),_e.$content().show())}ne.callBase.apply(ne,arguments)}},editing:{updateFieldValue(ne){return ne.column.lookup&&(this._needUpdateLookupDataSource=!0),this.callBase.apply(this,arguments)},_afterSaveEditData(ne){var fe;return this._needUpdateLookupDataSource&&!ne&&(null===(fe=this.getView("columnHeadersView"))||void 0===fe||fe.updateLookupDataSource()),this._needUpdateLookupDataSource=!1,this.callBase.apply(this,arguments)},_afterCancelEditData(){return this._needUpdateLookupDataSource=!1,this.callBase.apply(this,arguments)}}},views:{columnHeadersView:ge,headerPanel:{_getToolbarItems:function(){var ne=this.callBase();return this._prepareFilterItem(ne).concat(ne)},_prepareFilterItem:function(){var ne=this,fe=[];if(ne._isShowApplyFilterButton()){var _e=ne.option("filterRow.applyFilterText"),de=!ne._columnsController.getColumns().filter(function(pe){return void 0!==pe.bufferedFilterValue}).length;fe.push({widget:"dxButton",options:{icon:"apply-filter",disabled:de,onClick:function(){ne._applyFilterViewController.applyFilter()},hint:_e,text:_e,onInitialized:function(pe){(0,I.Z)(pe.element).addClass(ne._getToolbarButtonClass("dx-apply-button"))}},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10})}return fe},_isShowApplyFilterButton:function(){var ne=this.option("filterRow");return ne&&ne.visible&&"onClick"===ne.applyFilter},init:function(){this.callBase(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")},enableApplyButton:function(ne){this.setToolbarItemDisabled("applyFilterButton",!ne)},isVisible:function(){return this.callBase()||this._isShowApplyFilterButton()},optionChanged:function(ne){"filterRow"===ne.name?(this._invalidate(),ne.handled=!0):this.callBase(ne)}}}}}},5841:(kn,he,l)=>{"use strict";l.d(he,{H:()=>P});var o=l(1828),c=l(3390),I=l(8507),C=l(8159),f=l(2879),a=l(2135),p=l(9904),s=l(9009),u=l(5873),d=l(7122),h=l(4270);function g(B){var W=function(V,U){return U?U+"/"+V:V},N=B&&B.getController("headerFilter");return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:function(V,U,K){var Y=[],J=V.length-1;return V&&V.forEach(function(j,ee){if((0,I.T5)(j)||(0,I.ty)(j)){var G=(0,I._z)(j,K,[],"headerFilter");Y.push(G)}else Y.push((0,I._z)([U.dataField,"=",j],K,[],"headerFilter"));ee!==J&&Y.push("or")}),1===Y.length&&(Y=Y[0]),Y},editorTemplate:function(V,U){var K=(0,p.Z)("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(U),Y=(0,u.l)(!0,{},B.columnOption(V.field.dataField));return(0,I.yg)(K,V.text&&V.text.split("|")),Y.filterType="include",Y.filterValues=V.value?V.value.slice():[],N.showHeaderFilterMenuBase({columnElement:K,column:Y,apply:function(){V.setValue(this.filterValues),N.hideHeaderFilterMenu(),V.closeEditor()},onHidden:function(){V.closeEditor()},isFilterBuilder:!0}),U},customizeText:function(V,U){U=U||{};var K=V.value,Y=B.columnOption(V.field.dataField),J=Y&&Y.headerFilter,j=Y&&Y.lookup,ee=U.values||[K];if(J&&J.dataSource||j&&j.dataSource){var G=new h.BH,q=U.items||new h.BH;if(!U.items){Y=(0,u.l)({},Y,{filterType:"include",filterValues:ee});var Z=N.getDataSource(Y);Z.paginate=!1;var X=new d.o(Z),M=X.store().key();if(M){var{values:se}=U;if(se&&se.length>1){var ge=se.reduce((Fe,Ae)=>(Fe.length&&Fe.push("or"),Fe.push([M,"=",Ae]),Fe),[]);X.filter(ge)}else X.filter([M,"=",V.value])}else V.field.calculateDisplayValue&&C.Z.log("W1017");U.items=q,X.load().done(q.resolve)}return q.done(Fe=>{var Ae=ee.indexOf(V.value);G.resolve(function ne(fe,_e){var ie=[];return fe.forEach(function(de){if(de.items){var le=ne(de.items,W(de.text,_e));ie=ie.concat(le)}de.selected&&ie.push(W(de.text,_e))}),ie}(Fe)[Ae])}),G}return N.getHeaderItemText(K,Y,0,B.option("headerFilter"))}}}function x(B){return(0,u.l)(g(B),{name:"anyof",icon:"selectall",caption:s.Z.format("dxFilterBuilder-filterOperationAnyOf")})}function b(B){var W=g(B);return(0,u.l)({},W,{calculateFilterExpression:function(N,V,U){var K=W.calculateFilterExpression(N,V,U);return K&&0!==K.length?"!"===K[0]?K:["!",K]:null},name:"noneof",icon:"unselectall",caption:s.Z.format("dxFilterBuilder-filterOperationNoneOf")})}var y=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],E="include",S="exclude";function O(B){return B.name||B.dataField}var B,W,N,V,U,K,k={isFilterSyncActive:function(){var B=this.option("filterSyncEnabled");return"auto"===B?this.option("filterPanel.visible"):B},skipCalculateColumnFilters:function(){var B=this.getController("filterSync");return((0,o.$K)(this.option("filterValue"))||B._skipSyncColumnOptions)&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){if(!1===this.option("filterPanel.filterEnabled"))return this.callBase();var B=[this.callBase()],W=this.getController("columns").getFilteringColumns(),N=this.option("filterValue");if(this.isFilterSyncActive()){var V=this.getController("headerFilter").getCurrentColumn();V&&N&&(N=(0,I.e4)(N,O(V)))}var U=this.getController("filterSync").getCustomFilterOperations(),K=(0,I._z)(N,W,U,"filterBuilder");return K&&B.push(K),f.Z.combineFilters(B)},_parseColumnPropertyName:function(B){var W=B.match(/.*\.(.*)/);return W?W[1]:null},clearFilter:function(B){this.component.beginUpdate(),arguments.length>0?("filterValue"===B&&this.option("filterValue",null),this.callBase(B)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(B){switch(B.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),B.handled=!0;break;case"filterSyncEnabled":B.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var W=this.getController("columns").getColumnByPath(B.fullName),N=this.getController("filterSync");if(W&&!N._skipSyncColumnOptions){var V=this._parseColumnPropertyName(B.fullName);N._skipSyncColumnOptions=!0,"filterType"===V?(S===B.value||S===B.previousValue)&&N.syncHeaderFilter(W):"filterValues"===V?N.syncHeaderFilter(W):["filterValue","selectedFilterOperation"].indexOf(V)>-1&&N.syncFilterRow(W,W.filterValue),N._skipSyncColumnOptions=!1}}this.callBase(B);break;default:this.callBase(B)}}},R={_isHeaderFilterEmpty:function(B){return this.getController("data").isFilterSyncActive()?!(0,I.Ab)(this.option("filterValue"),O(B)):this.callBase(B)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(B){"filterValue"===B.name?this._updateHeaderFilterIndicators():this.callBase(B)}},P={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:c.Z.Controller.inherit((B=function(){return{filterType:E,filterValues:void 0}},W=function(Y){var J=Y.filterValues||[];return!a.Z.getGroupInterval(Y)&&!(Y.headerFilter&&Y.headerFilter.dataSource)||1===J.length&&null===J[0]},N=function(Y){if((0,o.$K)(Y.filterValue)){var j=Y.selectedFilterOperation||Y.defaultFilterOperation||(0,I.Ls)(Y);return[O(Y),j,Y.filterValue]}return null},V=function(Y){var J,j,ee=Y.filterValues;return ee?(1===ee.length&&W(Y)&&!Array.isArray(ee[0])?(J=Y.filterType===S?"<>":"=",j=ee[0]):(J=Y.filterType===S?"noneof":"anyof",j=ee),[O(Y),J,j]):null},U=function(Y,J,j){var ee=function(G,q){if(!G)return B();var Z,X=G[1],M=G[2],se=Array.isArray(M);if(!se&&!W(q))return B();switch(X){case"anyof":case"=":Z=E;break;case"noneof":case"<>":Z=S;break;default:return B()}return{filterType:Z,filterValues:se?M:[M]}}(j,J);Y.columnOption(O(J),ee)},K=function(Y,J,j){var ee,G=j?.[1],q=j?.[2],Z=J.filterOperations||J.defaultFilterOperations;(!Z||Z.indexOf(G)>=0||G===J.defaultFilterOperation)&&y.indexOf(G)>=0&&null!==q?(G===J.defaultFilterOperation&&!(0,o.$K)(J.selectedFilterOperation)&&(G=J.selectedFilterOperation),ee={filterValue:q,selectedFilterOperation:G}):ee={filterValue:void 0,selectedFilterOperation:void 0},Y.columnOption(O(J),ee)},{syncFilterValue:function(){var Y=this,J=Y.getController("columns"),j=J.getFilteringColumns();this._skipSyncColumnOptions=!0,j.forEach(function(ee){var G=(0,I.BB)(Y.option("filterValue"),O(ee));if(1===G.length){var q=G[0];U(J,ee,q),K(J,ee,q)}else(0,o.$K)(ee.filterValues)&&U(J,ee),(0,o.$K)(ee.filterValue)&&K(J,ee)}),this._skipSyncColumnOptions=!1},_initSync:function(){var Y=this.getController("columns").getColumns(),J=this.getController("data"),j=J.pageIndex();if(function w(B){B.forEach(W=>{var N=O(W);if(!(0,o.$K)(N)&&W.allowFiltering)throw new C.Z.Error("E1049",W.caption)})}(Y),!this.option("filterValue")){var ee=this.getController("columns").getFilteringColumns(),G=this.getFilterValueFromColumns(ee);this.option("filterValue",G)}this.syncFilterValue(),J.pageIndex(j)},init:function(){var Y=this.getController("data");Y.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():Y.dataSourceChanged.add(()=>this._initSync()))},_getSyncFilterRow:function(Y,J){var j=N(J);return(0,o.$K)(j)?(0,I.aR)(Y,j):(0,I.e4)(Y,O(J))},_getSyncHeaderFilter:function(Y,J){var j=V(J);return j?(0,I.aR)(Y,j):(0,I.e4)(Y,O(J))},getFilterValueFromColumns:function(Y){if(!this.getController("data").isFilterSyncActive())return null;var J=["and"];return Y&&Y.forEach(j=>{var ee=V(j),G=N(j);ee&&(0,I.jX)(ee,J),G&&(0,I.jX)(G,J)}),(0,I.Ih)(J)},syncFilterRow:function(Y,J){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),Y))},syncHeaderFilter:function(Y){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),Y))},getCustomFilterOperations:function(){var Y=this.option("filterBuilder.customOperations")||[];return[x(this.component),b(this.component)].concat(Y)},publicMethods:function(){return["getCustomFilterOperations"]}}))},extenders:{controllers:{data:k},views:{columnHeadersView:R}}}},6775:(kn,he,l)=>{"use strict";l.d(he,{W:()=>x});var o=l(9904),c=l(3390),I=l(2718),C=l(2879),f=l(7674),a=l(1828),p=l(4270),s="dx-row-focused",u=".dx-row."+s,h="dx-cell-focus-disabled",x={defaultOptions:function(){return{focusedRowEnabled:!1,autoNavigateToFocusedRow:!0,focusedRowKey:null,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:c.Z.ViewController.inherit({init:function(){this._dataController=this.getController("data"),this._keyboardController=this.getController("keyboardNavigation"),this.component._optionsByReference.focusedRowKey=!0},optionChanged:function(y){if("focusedRowIndex"===y.name){var E=this.option("focusedRowKey");this._focusRowByIndex(y.value),this._triggerFocusedRowChangedIfNeed(E,y.value),y.handled=!0}else if("focusedRowKey"===y.name){if(y.handled=!0,Array.isArray(y.value)&&JSON.stringify(y.value)===JSON.stringify(y.previousValue))return;var S=this.option("focusedRowIndex");this._focusRowByKey(y.value),this._triggerFocusedRowChangedIfNeed(y.value,S)}else"focusedColumnIndex"===y.name||"focusedRowEnabled"===y.name||"autoNavigateToFocusedRow"===y.name?y.handled=!0:this.callBase(y)},_triggerFocusedRowChangedIfNeed:function(y,E){if(E===this.getFocusedRowIndexByKey(y)){var O=this._dataController.getRowIndexByKey(y);if(O>=0){var w=(0,o.Z)(this.getView("rowsView").getRowElement(O));this.getController("keyboardNavigation")._fireFocusedRowChanged(w,E)}}},isAutoNavigateToFocusedRow:function(){return"infinite"!==this.option("scrolling.mode")&&this.option("autoNavigateToFocusedRow")},_focusRowByIndex:function(y,E){this.option("focusedRowEnabled")&&((y=void 0!==y?y:this.option("focusedRowIndex"))<0?this.isAutoNavigateToFocusedRow()&&this._resetFocusedRow():this._focusRowByIndexCore(y,E))},_focusRowByIndexCore:function(y,E){var S=this.getController("data"),O=S.pageSize(),w=()=>{if(this._isValidFocusedRowIndex(y)){var k=y-S.getRowIndexOffset(!0);if(!E||E.paging&&!E.filtering){var R=S._getLastItemIndex();k=Math.min(k,R)}var P=S.getKeyByRowIndex(k,!0);(0,a.$K)(P)&&!this.isRowFocused(P)&&this.option("focusedRowKey",P)}};if(O>=0)if(this._isLocalRowIndex(y))w();else{var T=Math.floor(y/S.pageSize());(0,p.gx)(S.pageIndex(T),S.waitReady()).done(()=>{w()})}},_isLocalRowIndex(y){var E=this.getController("data");if(this.getController("keyboardNavigation")._isVirtualScrolling()){var O=Math.floor(y/E.pageSize()),w=E.virtualItemsCount(),T=w?w.begin:-1,k=E.getVisibleRows().length+E.getRowIndexOffset(),R=Math.ceil(k/E.pageSize());return T<=y&&R>O}return!0},_setFocusedRowKeyByIndex:function(y){var E=this.getController("data");if(this._isValidFocusedRowIndex(y)){var S=Math.min(y-E.getRowIndexOffset(),E.items().length-1),O=E.getKeyByRowIndex(S);(0,a.$K)(O)&&!this.isRowFocused(O)&&this.option("focusedRowKey",O)}},_focusRowByKey:function(y){(0,a.$K)(y)?this._navigateToRow(y,!0):this._resetFocusedRow()},_resetFocusedRow:function(){var y=this.option("focusedRowKey"),E=(0,a.$K)(y);if(E||!(this.option("focusedRowIndex")<0)){var S=this.getController("keyboardNavigation");E&&this.option("focusedRowKey",null),S.setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:null}),S._fireFocusedRowChanged(void 0,-1)}},_isValidFocusedRowIndex:function(y){var S=this.getController("data").getVisibleRows()[y];return!S||"data"===S.rowType||"group"===S.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(y){return this.isAutoNavigateToFocusedRow()||this.option("focusedRowIndex",-1),this._navigateToRow(y)},_navigateToRow:function(y,E){var S=this,O=S.getController("data"),w=S.isAutoNavigateToFocusedRow(),T=new p.BH;if(void 0===y||!O.dataSource())return T.reject().promise();var k=S.getFocusedRowIndexByKey(y);return!w&&E||k>=0?S._navigateTo(y,T,E):O.getPageIndexByKey(y).done(function(R){R<0?T.resolve(-1):R===O.pageIndex()?O.reload().done(function(){S.isRowFocused(y)&&O.getRowIndexByKey(y)>=0?T.resolve(S.getFocusedRowIndexByKey(y)):S._navigateTo(y,T,E)}).fail(T.reject):O.pageIndex(R).done(function(){S._navigateTo(y,T,E)}).fail(T.reject)}).fail(T.reject),T.promise()},_navigateTo:function(y,E,S){var O=this.getController("data").getRowIndexByKey(y),w=C.Z.isVirtualRowRendering(this);this.isAutoNavigateToFocusedRow()&&w&&O<0?this._navigateToVirtualRow(y,E,S):this._navigateToVisibleRow(y,E,S)},_navigateToVisibleRow:function(y,E,S){if(S)this._triggerUpdateFocusedRow(y,E);else{var O=this.getFocusedRowIndexByKey(y);this.getView("rowsView").scrollToRowElement(y,E).done(function(){E.resolve(O)})}},_navigateToVirtualRow:function(y,E,S){var O=this,w=this.getController("data"),T=w._rowsScrollController,k=C.Z.getIndexByKey(y,w.items(!0)),R=O.getView("rowsView").getScrollable();if(T&&R&&k>=0){var P=k+w.getRowIndexOffset(!0),B=T.getItemOffset(P);O.component.on("contentReady",function W(){O.component.off("contentReady",W),S?O._triggerUpdateFocusedRow(y,E):E.resolve(P)}),this.getView("rowsView").scrollTopPosition(B)}else E.resolve(-1)},_triggerUpdateFocusedRow:function(y,E){var w,S=this.getController("data"),O=this.getFocusedRowIndexByKey(y);this._isValidFocusedRowIndex(O)?(this.option("focusedRowEnabled")?S.updateItems({changeType:"updateFocusedRow",focusedRowKey:y}):w=this.getView("rowsView").scrollToRowElement(y),(0,p.gx)(w).done(()=>{this.getController("keyboardNavigation").setFocusedRowIndex(O),E&&E.resolve(O)})):E&&E.resolve(-1)},getFocusedRowIndexByKey:function(y){var E=this.getController("data"),S=E.getRowIndexByKey(y,!0);return S>=0?S+E.getRowIndexOffset(!0):-1},_focusRowByKeyOrIndex:function(){var y=this.option("focusedRowKey"),E=this.option("focusedRowIndex"),S=this.getController("keyboardNavigation"),O=this.getController("data");if((0,a.$K)(y)){var w=O.getRowIndexByKey(y);w>=0?(S._isVirtualScrolling()&&(E=w+O.getRowIndexOffset()),S.setFocusedRowIndex(E),this._triggerUpdateFocusedRow(y)):this._navigateToRow(y,!0).done(T=>{E>=0&&T<0?this._focusRowByIndex():E<0&&T>=0&&S.setFocusedRowIndex(T)})}else E>=0&&this.getController("focus")._focusRowByIndex(E)},isRowFocused:function(y){var E=this.option("focusedRowKey");if((0,a.$K)(E))return(0,f.bY)(y,this.option("focusedRowKey"))},updateFocusedRow:function(y){var w,T,E=this,S=E._dataController.getRowIndexByKey(y.focusedRowKey),O=E.getView("rowsView");(0,I.S6)(O.getTableElements(),function(k,R){var P=0===k;w=(0,o.Z)(R),E._clearPreviousFocusedRow(w,S);var B=E._prepareFocusedRow({changedItem:E._dataController.getVisibleRows()[S],$tableElement:w,focusedRowIndex:S});P&&(T=B)}),T&&O.scrollToElementVertically(T)},_clearPreviousFocusedRow:function(y,E){var S=y.find(u).filter((w,T)=>{var k=(0,o.Z)(T).closest(".".concat(this.addWidgetPrefix("table")));return y.is(k)});S.removeClass(s).removeClass(h).removeAttr("tabindex"),S.children("td").removeAttr("tabindex"),0!==E&&(0,o.Z)(this.getView("rowsView").getRowElement(0)).removeClass(h).removeAttr("tabIndex")},_prepareFocusedRow:function(y){var E,S=y.changedItem;if(S&&("data"===S.rowType||"group"===S.rowType)){var O=y.focusedRowIndex,w=y.$tableElement,T=this.option("tabindex")||0,k=this.getView("rowsView");(E=(0,o.Z)(k._getRowElements(w).eq(O))).addClass(s).attr("tabindex",T)}return E}})},extenders:{controllers:{keyboardNavigation:{init:function(){var b=this.option("focusedRowIndex"),y=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={},(0,a.$K)(b)&&b>=0&&(this._focusedCellPosition.rowIndex=b),(0,a.$K)(y)&&y>=0&&(this._focusedCellPosition.columnIndex=y)},setFocusedRowIndex:function(b){var y=this.getController("data");this.callBase(b);var E=b-y.getRowIndexOffset(),S=y.getVisibleRows()[E];(!S||!S.isNewRow)&&this.option("focusedRowIndex",b)},setFocusedColumnIndex:function(b){this.callBase(b),this.option("focusedColumnIndex",b)},_escapeKeyHandler:function(b,y){!y&&this.option("focusedRowEnabled")?this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(b.originalEvent.target),!0)):this.callBase(b,y)},_updateFocusedCellPosition:function(b,y){var E=this.option("focusedRowIndex"),S=this.option("focusedColumnIndex"),O=this.callBase(b,y);O&&O.columnIndex>=0&&this._fireFocusedCellChanged(b,S,E)}},editorFactory:{renderFocusOverlay:function(b,y){var w,E=this.getController("keyboardNavigation"),S=this.option("focusedRowEnabled"),O=this.getController("editing");S&&null!=E&&E.isRowFocusType()&&!O.isEditing()?S&&"row"===E._getElementType(b)&&!b.hasClass(s)&&(w=E.getFirstValidCellInRow(b),E.focus(w)):this.callBase(b,y)}},columns:{getSortDataSourceParameters:function(b,y){var E=this.callBase.apply(this,arguments),S=this.getController("data"),O=S._dataSource,w=S.store(),T=w&&w.key(),k=O&&O.remoteOperations()||{},R=Object.keys(k).every(B=>!k[B]);if(T&&(this.option("focusedRowEnabled")&&!1!==this.getController("focus").isAutoNavigateToFocusedRow()||y)){var P=(T=Array.isArray(T)?T:[T]).filter(B=>!this.columnOption(B,"sortOrder"));P.length&&(E=E||[],R?E.push({selector:O.getDataIndexGetter(),desc:!1}):P.forEach(B=>E.push({selector:B,desc:!1})))}return E}},data:{_applyChange:function(b){if(!b||"updateFocusedRow"!==b.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(b){if(this.callBase(b),this.option("focusedRowEnabled")&&this._dataSource){var E="update"===b.changeType&&b.repaintChangesOnly&&b.changeTypes&&b.changeTypes.indexOf("remove")>=0;"refresh"===b.changeType&&b.items.length||E?(this._updatePageIndexes(),this.processUpdateFocusedRow(b)):"append"===b.changeType||"prepend"===b.changeType?this._updatePageIndexes():"update"===b.changeType&&b.repaintChangesOnly&&this.processUpdateFocusedRow(b)}},_updatePageIndexes:function(){var b=this._lastRenderingPageIndex||0,y=this._rowsScrollController?this._rowsScrollController.pageIndex():0;this._lastRenderingPageIndex=y,this._isPagingByRendering=y!==b},isPagingByRendering:function(){return this._isPagingByRendering},processUpdateFocusedRow:function(b){var y=b.operationTypes||{},E=this.getController("focus"),{reload:S,fullReload:O}=y,T=this.getController("keyboardNavigation")._isVirtualScrolling(),k=this.option("focusedRowKey"),R=E.isAutoNavigateToFocusedRow();if(S&&!O&&(0,a.$K)(k))E._navigateToRow(k,!0).done(function(V){V<0&&E._focusRowByIndex(void 0,y)});else if(y.paging&&!T)if(R){var P=this.getRowIndexByKey(k),B=P>=0,W=this.option("focusedRowIndex");W>=0&&(W===P||!B)&&E._focusRowByIndex(void 0,y)}else this.getRowIndexByKey(k)<0&&this.option("focusedRowIndex",-1);else y.fullReload&&E._focusRowByKeyOrIndex()},getPageIndexByKey:function(b){var y=this,E=new p.BH;return y.getGlobalRowIndexByKey(b).done(function(S){E.resolve(S>=0?Math.floor(S/y.pageSize()):-1)}).fail(E.reject),E.promise()},getGlobalRowIndexByKey:function(b){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(b):this._calculateGlobalRowIndexByFlatData(b)},_calculateGlobalRowIndexByFlatData:function(b,y,E){var S=this,O=new p.BH,w=S._dataSource;if(Array.isArray(b))return O.resolve(-1).promise();var T=S._generateFilterByKey(b);return w.load({filter:S._concatWithCombinedFilter(T),skip:0,take:1}).done(function(k){k.length>0?(T=S._generateOperationFilterByKey(b,k[0],E),w.load({filter:S._concatWithCombinedFilter(T,y),skip:0,take:1,requireTotalCount:!0}).done(function(R,P){O.resolve(P.totalCount)})):O.resolve(-1)}),O.promise()},_concatWithCombinedFilter:function(b,y){var E=this.getCombinedFilter();return C.Z.combineFilters([b,E,y])},_generateBooleanFilter:function(b,y,E){var S;return!1===y?S=[b,"=",!!E.desc||null]:(!0===y?!E.desc:E.desc)&&(S=[b,"<>",y]),S},_generateOperationFilterByKey:function(b,y,E){var S=this,O=S._dataSource,w=S._generateFilterByKey(b,"<"),T=S._columnsController.getSortDataSourceParameters(!O.remoteOperations().filtering,!0);if(E){var k=S._columnsController.getGroupDataSourceParameters(!O.remoteOperations().filtering);k&&(T=T?k.concat(T):k)}return T&&T.slice().reverse().forEach(function(R){var B,P=R.selector,W=(B="function"==typeof P?P:S._columnsController.columnOption(P,"selector"))?B(y):y[P];if(w=[[P,"=",W],"and",w],null===W||(0,a.jn)(W)){var N=S._generateBooleanFilter(P,W,R);N&&(w=[N,"or",w])}else{var U,V=R.desc?">":"<";R.compare?U=K=>"<"===V?R.compare(W,B(K))>=1:R.compare(W,B(K))<=-1:(U=[P,V,W],R.desc||(U=[U,"or",[P,"=",null]])),w=[U,"or",w]}}),w},_generateFilterByKey:function(b,y){var E=this._dataSource.key(),S=[];if(y||(y="="),Array.isArray(E))for(var O=0;O<E.length;++O){var w=b[E[O]];w&&(S.length>0&&S.push("and"),S.push([E[O],y,w]))}else S=[E,y,b];return S},_getLastItemIndex:function(){return this.items(!0).length-1}},editing:{_deleteRowCore:function(b){var y=this.callBase.apply(this,arguments),E=this.getController("data"),S=E.getKeyByRowIndex(b);y.done(()=>{var O=E.getRowIndexByKey(S),w=E.getVisibleRows();-1===O&&!w.length&&this.getController("focus")._resetFocusedRow()})}}},views:{rowsView:{_createRow:function(b){var y=this.callBase.apply(this,arguments);return this.option("focusedRowEnabled")&&b&&this.getController("focus").isRowFocused(b.key)&&y.addClass(s),y},_checkRowKeys:function(b){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var y=this._dataController.store();y&&!y.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(b){"updateFocusedRow"===b.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(b):this.callBase(b)},updateFocusElementTabIndex:function(b,y){var E=this.getController("keyboardNavigation").getVisibleRowIndex(),S=this._dataController.getVisibleRows()[E];!this.option("focusedRowEnabled")||null!=S&&S.isNewRow?this.callBase(b):this._setFocusedRowElementTabIndex(y)},_setFocusedRowElementTabIndex:function(b){var y=this.option("focusedRowKey"),E=this.option("tabIndex")||0,S=this._dataController,O=this._columnsController,w=S.getRowIndexByKey(y),T=this.option("focusedColumnIndex"),k=this._findRowElementForTabIndex();if((0,a.$K)(this._scrollToFocusOnResize)||(this._scrollToFocusOnResize=()=>{this.scrollToElementVertically(this._findRowElementForTabIndex()),this.resizeCompleted.remove(this._scrollToFocusOnResize)}),k.attr("tabIndex",E),w>=0&&!b&&(T<0&&(T=0),w+=S.getRowIndexOffset(),T+=O.getColumnIndexOffset(),this.getController("keyboardNavigation").setFocusedCellPosition(w,T),this.getController("focus").isAutoNavigateToFocusedRow())){var R=S.dataSource(),P=R&&R.operationTypes();P&&!P.paging&&!S.isPagingByRendering()&&(this.resizeCompleted.remove(this._scrollToFocusOnResize),this.resizeCompleted.add(this._scrollToFocusOnResize))}},_findRowElementForTabIndex:function(){var b=this.option("focusedRowKey"),y=this._dataController.getRowIndexByKey(b);return(0,o.Z)(this.getRowElement(y>=0?y:0))},scrollToRowElement:function(b){var y=this.getController("data").getRowIndexByKey(b),E=(0,o.Z)(this.getRow(y));return this.scrollToElementVertically(E)},scrollToElementVertically:function(b){var y=this.getScrollable();if(y&&b.length){var E=y.getScrollElementPosition(b,"vertical");return this.scrollTopPosition(E)}return(new p.BH).resolve()},scrollTopPosition:function(b){var y=new p.BH,E=this.getScrollable();if(E){var S=E.scrollTop(),O=()=>{E.off("scroll",O),y.resolve()};if(b!==S)return E.on("scroll",O),this._dataController.resetFilterApplying(),E.scrollTo({top:b}),y.promise()}return y.resolve()}}}}}},3990:(kn,he,l)=>{"use strict";l.d(he,{C:()=>J});var o=l(1805),c=l(9904),I=l(3390),C=l(7674),f=l(4514),a=l(2718),p=l(1828),s=l(5450),u=l(2879),d=l(9009),h=l(4270),g=l(9897),x=l(2559),b=l(4722),y="borders",O="dx-gridbase-container",w="adaptiveHidden",T=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],k=function(j){return(0,p.HD)(j)&&"%"===j.slice(-1)},B=function(j,ee){var G=j._rowsView.contentWidth();return G-j._getTotalWidth(ee,G)},J={defaultOptions:function(){return{showBorders:!1,renderAsync:!1}},controllers:{resizing:I.Z.ViewController.inherit({_initPostRenderHandlers:function(){var j=this._dataController;this._refreshSizesHandler||(this._refreshSizesHandler=ee=>{j.changed.remove(this._refreshSizesHandler),h.gx.apply(this,ee&&ee.templateDeferreds||[]).done(()=>{this._refreshSizes(ee)})},j.changed.add(()=>{j.changed.add(this._refreshSizesHandler)}))},_refreshSizes:function(j){var ee,G=this,q=j&&j.changeType,Z=j&&j.isDelayed,X=G._dataController.items();if(j&&"refresh"!==q&&"prepend"!==q&&"append"!==q){if("update"===q){var M;if(0===(null===(M=j.changeTypes)||void 0===M?void 0:M.length))return;!(X.length>1||"insert"!==j.changeTypes[0])||0===X.length&&"remove"===j.changeTypes[0]||j.needUpdateDimensions?ee=G.resize():(0,C.Su)(()=>(0,C.g0)(()=>(0,C.Su)(()=>{G._setScrollerSpacing(G._hasHeight),G._rowsView.resize()})))}}else Z||(ee=G.resize());q&&"updateSelection"!==q&&"updateFocusedRow"!==q&&"pageIndex"!==q&&!Z&&(0,h.gx)(ee).done(function(){G._setAriaRowColCount(),G.fireContentReadyAction()})},fireContentReadyAction:function(){this.component._fireContentReadyAction()},_setAriaRowColCount:function(){var j=this.component;j.setAria({rowCount:this._dataController.totalItemsCount(),colCount:j.columnCount()},j.$element().children("."+O))},_getBestFitWidths:function(){var j,ee=this._rowsView,G=this._columnHeadersView,q=ee.getColumnWidths();if(null===(j=q)||void 0===j||!j.length){var Z,X=G.getTableElement();G.setTableElement(null===(Z=ee.getTableElement())||void 0===Z?void 0:Z.children(".dx-header")),q=G.getColumnWidths(),G.setTableElement(X)}return q},_setVisibleWidths:function(j,ee){var G=this._columnsController;G.beginUpdate(),(0,a.S6)(j,function(q,Z){var X=G.getColumnId(Z);G.columnOption(X,"visibleWidth",ee[q])}),G.endUpdate()},_toggleBestFitModeForView:function(j,ee,G){if(j&&j.isVisible()){var q=this._rowsView.getTableElements(),Z=j.getTableElements();(0,a.S6)(q,(X,M)=>{var se,ge=(0,c.Z)(M),De=Z.eq(X);De&&De.length&&((se=G?De.children("tbody").appendTo(ge):ge.children("."+ee).appendTo(De)).toggleClass(ee,G),se.toggleClass(this.addWidgetPrefix("best-fit"),G))})}},_toggleBestFitMode:function(j){var ee=this._rowsView.getTableElement(),G=this._rowsView.getTableElements().eq(1);ee&&(ee.css("tableLayout",j?"auto":"fixed"),ee.children("colgroup").css("display",j?"none":""),G.toggleClass(this.addWidgetPrefix("table-fixed"),!j),this._toggleBestFitModeForView(this._columnHeadersView,"dx-header",j),this._toggleBestFitModeForView(this._footerView,"dx-footer",j),this._toggleContentMinHeight(j),this._needStretch()&&(ee.get(0).style.width=j?"auto":""))},_toggleContentMinHeight:function(j){if(this.option("wordWrapEnabled")){var ee=this._rowsView.getScrollable(),G=this._rowsView._findContentElement();!1===ee?.option("useNative")&&G.css({minHeight:j?u.Z.getContentHeightLimit(b.Z):""})}},_synchronizeColumns:function(){var X,ge,De,j=this._columnsController,ee=j.getVisibleColumns(),G=this.option("columnAutoWidth"),q=this._needBestFit(),Z=!1,M=!1,se=[];!q&&(0,a.S6)(ee,function(Ae,ne){if("auto"===ne.width)return q=!0,!1}),(0,a.S6)(ee,function(Ae,ne){if(ne.minWidth)return Z=!0,!1}),this._setVisibleWidths(ee,[]);var Fe=this.component.$element();q&&(ge=g.Z.getActiveElement(Fe.get(0)),De=u.Z.getSelectionRange(ge),this._toggleBestFitMode(!0),X=!0),Fe&&Fe.get(0)&&this._maxWidth&&(delete this._maxWidth,Fe[0].style.maxWidth=""),(0,C.Su)(()=>{var ne;q?(se=this._getBestFitWidths(),(0,a.S6)(ee,function(ne,fe){var _e=j.getColumnId(fe);j.columnOption(_e,"bestFitWidth",se[ne],!0)})):Z&&(se=this._getBestFitWidths()),(0,a.S6)(ee,function(ne){var fe=this.width;"auto"!==fe&&((0,p.$K)(fe)?se[ne]=(0,p.kE)(fe)||function(j){return(0,p.HD)(j)&&"px"===j.slice(-2)}(fe)?parseFloat(fe):fe:G||(se[ne]=void 0))}),X&&(this._toggleBestFitMode(!1),X=!1,ge&&ge!==g.Z.getActiveElement())&&((0,s.l)(ge).bottom<0||function(j,ee){x.Bg(j),u.Z.setSelectionRange(j,ee)}(ge,De)),M=this._correctColumnWidths(se,ee),G&&((0,a.S6)(ee,function(fe,_e){"groupExpand"===_e.type&&(ne=se[fe])}),(0,a.S6)(ee,function(fe,_e){"groupExpand"===_e.type&&ne&&(se[fe]=ne)}),this._needStretch()&&this._processStretch(se,ee)),(0,C.g0)(()=>{(q||M)&&this._setVisibleWidths(ee,se)})})},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this._columnsController.getVisibleColumns().some(j=>"auto"===j.width&&!j.command)},_getAverageColumnsWidth:function(j){return B(this,j)/j.filter(function(q){return void 0===q}).length},_correctColumnWidths:function(j,ee){var q,G=this,Z=!1,X=!1,M=!1,se=G.component.$element(),ge=G._hasWidth,De=function(){var de=q,le=ee[de],pe=j[de]===w,Ee=j[de],ae=le.minWidth;if(ae)if(void 0===Ee){var te=G._getAverageColumnsWidth(j);Ee=te}else if(k(Ee)){var re=function(j,ee,G,q){return B(j,q.map(function(Z,X){return X===ee?G:Z}))}(G,de,ae,j);re<0&&(Ee=-1)}var oe=G._getRealColumnWidth(de,j.map(function(ye,Pe){return de===Pe?Ee:ye}));ae&&!pe&&oe<ae&&(j[de]=ae,M=!0,q=-1),(0,p.$K)(le.width)||(X=!0),k(le.width)&&(Z=!0)};for(q=0;q<ee.length;q++)De();if(!X&&j.length){var Fe=G._rowsView.element(),Ae=G._rowsView.contentWidth(),ne=G._rowsView.getScrollbarWidth(),fe=G._getTotalWidth(j,Ae);if(fe<Ae){var _e=u.Z.getLastResizableColumnIndex(ee,j);if(_e>=0&&(j[_e]="auto",M=!0,!1===ge&&!Z)){var ie=G.option("showBorders")?Math.ceil((0,o.Y_)(Fe)-(0,o.Xt)(Fe)):0;G._maxWidth=fe+ne+ie,se.css("maxWidth",G._maxWidth)}}}return M},_processStretch:function(j,ee){var G=this._rowsView.contentWidth(),q=this._getTotalWidth(j,G),Z={length:0};if(j.length){(0,a.S6)(ee,function(De){(this.width||j[De]===w)&&(Z[De]=!0,Z.length++)});var X=G-q,M=Math.floor(X/(j.length-Z.length)),se=X-M*(j.length-Z.length);if(X>=0)for(var ge=0;ge<j.length;ge++)Z[ge]||(j[ge]+=M,se>0&&(se<1?(j[ge]+=se,se=0):(j[ge]++,se--)))}},_getRealColumnWidth:function(j,ee,G){var q=1,Z=ee[j];if(!k(Z))return parseFloat(Z);var X=ee.reduce((De,Fe,Ae)=>k(Fe)?De+parseFloat(Fe):De,0),M=ee.reduce((De,Fe)=>!Fe||Fe===w||k(Fe)?De:De+parseFloat(Fe),0),se=(G=G||this._rowsView.contentWidth())-M,ge=X*G/100;return M>0&&ge+M>=G&&(q=ge>se?se/ge:1),parseFloat(Z)*G*q/100},_getTotalWidth:function(j,ee){for(var G=0,q=0;q<j.length;q++){var Z=j[q];Z&&Z!==w&&(G+=this._getRealColumnWidth(q,j,ee))}return Math.ceil(G)},updateSize:function(j){var ee,G,q=(0,c.Z)(j),Z=this.addWidgetPrefix("important-margin");void 0===this._hasHeight&&q&&q.is(":visible")&&(0,o.dz)(q)&&((ee=q.children("."+this.getWidgetContainerClass())).length&&ee.detach(),this._hasHeight=!!function(j){return j.get(0).clientHeight-parseFloat(j.css("paddingTop"))-parseFloat(j.css("paddingBottom"))}(q),G=(0,o.dz)(q),q.addClass(Z),this._hasWidth=(0,o.dz)(q)===G,q.removeClass(Z),ee.length&&ee.appendTo(q))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(j){var ee=this;if(ee._initPostRenderHandlers(),ee._checkSize(j)){var G=ee._resizeDeferred,q=ee._resizeDeferred=new h.BH;return(0,h.gx)(G).always(function(){(0,C.g0)(function(){ee._dataController.isLoaded()&&ee._synchronizeColumns(),ee._resetGroupElementHeight(),(0,C.Su)(function(){(0,C.g0)(function(){(0,C.Su)(function(){ee._updateDimensionsCore()})})})}).done(q.resolve).fail(q.reject)}),q.promise()}},_resetGroupElementHeight:function(){var j=this.component.$element().children().get(0),ee=this._rowsView.getScrollable();j&&j.style.height&&(!ee||!ee.scrollTop())&&(j.style.height="")},_checkSize:function(j){var ee=this.component.$element();return!(j&&(this._lastWidth===(0,o.dz)(ee)&&this._lastHeight===(0,o.Cr)(ee)&&this._devicePixelRatio===(0,f.Jj)().devicePixelRatio||!ee.is(":visible")))},_setScrollerSpacingCore:function(j){var ee=this,G=j?ee._rowsView.getScrollbarWidth():0,q=ee._rowsView.getScrollbarWidth(!0);(0,C.g0)(function(){ee._columnHeadersView&&ee._columnHeadersView.setScrollerSpacing(G),ee._footerView&&ee._footerView.setScrollerSpacing(G),ee._rowsView.setScrollerSpacing(G,q)})},_setScrollerSpacing:function(j){!0===this.option("scrolling.useNative")?(0,C.g0)(()=>{(0,C.Su)(()=>{this._setScrollerSpacingCore(j)})}):this._setScrollerSpacingCore(j)},_updateDimensionsCore:function(){var Ae,j=this,ee=j._dataController,G=j._rowsView,q=j.component.$element(),Z=q.children().get(0),X=q&&(q.get(0).clientHeight||(0,o.Cr)(q)),M=parseInt(q.css("maxHeight")),se=M&&X>=M,ge=j.option("height")||q.get(0).style.height,De=j.getController("editorFactory"),Fe=se&&Z.scrollHeight===Z.offsetHeight;j.updateSize(q);var ne=j._hasHeight||se;ge&&j._hasHeight^"auto"!==ge&&(Ae=(0,c.Z)("<div>"),(0,o.QQ)(Ae,ge),Ae.appendTo(q),j._hasHeight=!!(0,o.Cr)(Ae),Ae.remove()),(0,C.g0)(function(){G.height(null,ne),se&&!Fe&&(0,c.Z)(Z).css("height",M),ee.isLoaded()?(0,C.Su)(function(){j._updateLastSizes(q),j._setScrollerSpacing(ne),(0,a.S6)(T,function(fe,_e){var ie=j.getView(_e);ie&&ie.resize()}),De&&De.resize()}):G.setLoading(ee.isLoading())})},_updateLastSizes:function(j){this._lastWidth=(0,o.dz)(j),this._lastHeight=(0,o.Cr)(j),this._devicePixelRatio=(0,f.Jj)().devicePixelRatio},optionChanged:function(j){switch(j.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"renderAsync":return void(j.handled=!0);default:this.callBase(j)}},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")}}),synchronizeScrolling:I.Z.ViewController.inherit({_scrollChangedHandler:function(j,ee,G){for(var q=0;q<j.length;q++)j[q]&&j[q].name!==G&&j[q].scrollTo({left:ee.left,top:ee.top})},init:function(){for(var j=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")],ee=0;ee<j.length;ee++){var G=j[ee];G&&G.scrollChanged.add(this._scrollChangedHandler.bind(this,j))}}})},views:{gridView:I.Z.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(j){return this.component._views[j]},element:function(){return this._groupElement},optionChanged:function(j){(0,p.$K)(this._groupElement)&&"showBorders"===j.name?(this._groupElement.toggleClass(this.addWidgetPrefix(y),!!j.value),j.handled=!0):this.callBase(j)},_renderViews:function(j){var ee=this;(0,a.S6)(T,function(G,q){var Z=ee.getView(q);Z&&Z.render(j)})},_getTableRoleName:function(){return"grid"},render:function(j){var ee=!this._groupElement,G=this._groupElement||(0,c.Z)("<div>").addClass(this.getWidgetContainerClass());G.addClass(O),G.toggleClass(this.addWidgetPrefix(y),!!this.option("showBorders")),this.setAria("role","presentation",j),this.component.setAria({role:this._getTableRoleName(),label:d.Z.format(this._getWidgetAriaLabel())},G),this._rootElement=j||this._rootElement,ee&&(this._groupElement=G,(0,f.Ym)()&&this.getController("resizing").updateSize(j),G.appendTo(j)),this._renderViews(G)},update:function(){var j=this._rootElement,ee=this._groupElement,G=this.getController("resizing");j&&ee&&(G.resize(),this._dataController.isLoaded()&&this._resizingController.fireContentReadyAction())}})},VIEW_NAMES:T}},2314:(kn,he,l)=>{"use strict";l.d(he,{O:()=>K});var o=l(4817),c=l(913),I=l(3390),C=l(2135),f=l(2879),a=l(1074),p=l(9009),s=l(227),u=l(6738),d=l(2718),h=l(1828),g=l(5450),x=l(5873),b=l(5981),y=l(8119),E=l(4270),S=l(2559),O=l(7316),w=l(3382),T={month:function(Y){return y.Z.getMonthNames()[Y-1]},quarter:function(Y){return y.Z.format(new Date(2e3,3*Y-1),"quarter")}};function k(Y,J,j){return J=J||[],j=j||[],Y.forEach(ee=>{if((0,h.$K)(ee.key)){if(J.push(1===J.length?ee.key-1:ee.key),ee.items)k(ee.items,J,j);else{var q=new Date(Date.UTC.apply(Date,J));j.push(q)}J.pop()}else j.push(null)}),j}function R(Y,J){var j=k(Y),ee=(0,O.Z)(j),G=f.Z.getHeaderFilterGroupParameters((0,o.Z)({},J,{calculateCellValue:q=>q}));return w.Z.queryByOptions(ee,{group:G}).toArray()}var B=I.Z.ViewController.inherit({init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(Y,J){for(var j=Y.length,ee="exclude"===J.filterType;j--;){var G=Y[j];"items"in Y[j]&&this._updateSelectedState(Y[j].items,J),(0,a.By)(G,f.Z.getIndexByKey(Y[j].value,J.filterValues,null)>-1,ee)}},_normalizeGroupItem:function(Y,J,j){var ee,G,q=j.path,Z=j.valueSelector,X=j.displaySelector,M=j.column;return Z&&X?(ee=Z(Y),G=X(Y)):G=ee=Y.key,Y=(0,h.Kn)(Y)?(0,x.l)({},Y):{},q.push(ee),Y.value=1===q.length?q[0]:q.join("/"),Y.text=this.getHeaderItemText(G,M,J,j.headerFilterOptions),Y},getHeaderItemText:function(Y,J,j,ee){var q,Z,X,M,se,G=f.Z.formatValue(Y,(q=Y,X=j,M=C.Z.getGroupInterval(Z=J),se=f.Z.getFormatOptionsByColumn(Z,"headerFilter"),M&&(se.groupInterval=M[X],f.Z.isDateType(Z.dataType)?se.format=T[M[X]]:"number"===Z.dataType&&(se.getDisplayFormat=function(){var ge={format:Z.format,target:"headerFilter"},De=f.Z.formatValue(q,ge),Ae=f.Z.formatValue(q+M[X],ge);return De&&Ae?De+" - "+Ae:""})),se));return G||(G=ee.texts.emptyValue),G},_processGroupItems:function(Y,J,j,ee){var G,q,X=ee.column.lookup,M=ee.level;j=j||[],J=J||0,X&&(G=(0,u.vb)(X.displayExpr),q=(0,u.vb)(X.valueExpr));for(var se=0;se<Y.length;se++)Y[se]=this._normalizeGroupItem(Y[se],J,{column:ee.column,headerFilterOptions:ee.headerFilterOptions,displaySelector:G,valueSelector:q,path:j}),"items"in Y[se]&&(J!==M&&(0,h.$K)(Y[se].value)?this._processGroupItems(Y[se].items,J+1,j,ee):delete Y[se].items),j.pop()},getDataSource:function(Y){var J,j=this._dataController.dataSource(),ee=j?.remoteOperations().grouping,G=f.Z.getHeaderFilterGroupParameters(Y,ee),q=null===(J=Y.headerFilter)||void 0===J?void 0:J.dataSource,Z=this.option("headerFilter"),X=!1,M={component:this.component};if(j){if((0,h.$K)(q)&&!(0,h.mf)(q))M.dataSource=(0,b.aN)(q);else if(Y.lookup)if(X=!0,this.option("syncLookupFilterValues")){this._currentColumn=Y;var se=this._dataController.getCombinedFilter();this._currentColumn=null,M.dataSource=f.Z.getWrappedLookupDataSource(Y,j,se)}else M.dataSource=f.Z.normalizeLookupDataSource(Y.lookup);else{var ge=Array.isArray(G)?G.length-1:0;this._currentColumn=Y;var De=this._dataController.getCombinedFilter();this._currentColumn=null,M.dataSource={filter:De,group:G,useDefaultSearch:!0,load:ne=>{var fe=new E.BH;return ne.dataField=Y.dataField||Y.name,j.load(ne).done(function(_e){var ie=ee&&function P(Y){return"Z"===Y?.slice(-1)||"'Z'"===Y?.slice(-3)}(Y.serializationFormat)&&ge>3;ie&&(_e=R(_e,Y)),Ae._processGroupItems(_e,null,null,{level:ge,column:Y,headerFilterOptions:Z}),fe.resolve(_e)}).fail(fe.reject),fe}}}(0,h.mf)(q)&&q.call(Y,M);var Fe=M.dataSource.postProcess,Ae=this;return M.dataSource.postProcess=function(ne){var fe=ne;return X&&(0===this.pageIndex()&&!this.searchValue()&&(fe=fe.slice(0)).unshift(null),Ae._processGroupItems(fe,null,null,{level:0,column:Y,headerFilterOptions:Z})),fe=Fe&&Fe.call(this,fe)||fe,Ae._updateSelectedState(fe,Y),fe},M.dataSource}},getCurrentColumn:function(){return this._currentColumn},showHeaderFilterMenu:function(Y,J){var j=this._columnsController,ee=(0,x.l)(!0,{},this._columnsController.getColumns()[Y]);if(ee){var G=j.getVisibleIndex(Y),q=this.getView(J?"headerPanel":"columnHeadersView"),Z=Z||q.getColumnElements().eq(J?ee.groupIndex:G);this.showHeaderFilterMenuBase({columnElement:Z,column:ee,applyFilter:!0,apply:function(){j.columnOption(Y,{filterValues:this.filterValues,filterType:this.filterType})}})}},showHeaderFilterMenuBase:function(Y){var J=this,j=Y.column;if(j){var ee=C.Z.getGroupInterval(j),G=J._dataController.dataSource(),q=G&&G.remoteOperations().filtering;(0,x.l)(Y,j,{type:ee&&ee.length>1?"tree":"list",remoteFiltering:q,onShowing:function(Z){var X=Z.component.$overlayContent().dxResizable("instance");X&&X.option("onResizeEnd",function(M){var se=J.getController("columns"),ge=se.columnOption(Y.dataField,"headerFilter");(ge=ge||{}).width=M.width,ge.height=M.height,se.columnOption(Y.dataField,"headerFilter",ge,!0)})},onHidden:()=>(0,S.vg)(this)}),Y.dataSource=J.getDataSource(Y),Y.isFilterBuilder&&(Y.dataSource.filter=null,Y.alignment="right"),J._headerFilterView.showHeaderFilterMenu(Y.columnElement,Y)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}),W=(0,x.l)({},a.Tr,{_renderCellContent:function(Y,J){var ee,j=this,G=J.column;!G.command&&(0,a.eT)(G)&&j.option("headerFilter.visible")&&"header"===J.rowType&&(ee=j._applyColumnState({name:"headerFilter",rootElement:Y,column:G,showColumnLines:j.option("showColumnLines")}))&&j._subscribeToIndicatorEvent(ee,G,"headerFilter"),this.callBase.apply(this,arguments)},_subscribeToIndicatorEvent:function(Y,J,j){"headerFilter"===j&&c.Z.on(Y,s.u,this.createAction(ee=>{ee.event.stopPropagation(),(0,S.c3)(Y,this),this.getController("headerFilter").showHeaderFilterMenu(J.index,!1)}))},_updateIndicator:function(Y,J,j){var ee=this.callBase(Y,J,j);ee&&this._subscribeToIndicatorEvent(ee,J,j)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(Y){f.Z.checkChanges(Y.optionNames,["filterValues","filterType"])?this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators():this.callBase(Y)}}),N=(0,x.l)({},a.Tr,{_createGroupPanelItem:function(Y,J){var G,j=this,ee=j.callBase.apply(j,arguments);return!J.command&&(0,a.eT)(J)&&j.option("headerFilter.visible")&&(G=j._applyColumnState({name:"headerFilter",rootElement:ee,column:{alignment:(0,g.q)(j.option("rtlEnabled")),filterValues:J.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}))&&c.Z.on(G,s.u,j.createAction(function(q){q.event.stopPropagation(),j.getController("headerFilter").showHeaderFilterMenu(J.index,!0)})),ee}}),K={defaultOptions:function(){return{syncLookupFilterValues:!0,headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:p.Z.format("dxDataGrid-headerFilterEmptyValue"),ok:p.Z.format("dxDataGrid-headerFilterOK"),cancel:p.Z.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:B},views:{headerFilterView:a.U3},extenders:{controllers:{data:{skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var Y=[this.callBase()],J=this._columnsController.getVisibleColumns(null,!0),ee=this.getController("headerFilter").getCurrentColumn();return(0,d.S6)(J,function(G,q){var Z;if((!ee||ee.index!==q.index)&&(0,a.eT)(q)&&q.calculateFilterExpression&&Array.isArray(q.filterValues)&&q.filterValues.length){var X=[];(0,d.S6)(q.filterValues,function(M,se){Array.isArray(se)?Z=se:(q.deserializeValue&&!f.Z.isDateType(q.dataType)&&"number"!==q.dataType&&(se=q.deserializeValue(se)),Z=q.createFilterExpression(se,"=","headerFilter")),Z&&(Z.columnIndex=q.index),X.push(Z)}),X=f.Z.combineFilters(X,"or"),Y.push("exclude"===q.filterType?["!",X]:X)}}),f.Z.combineFilters(Y)}}},views:{columnHeadersView:W,headerPanel:N}}}},1074:(kn,he,l)=>{"use strict";l.d(he,{By:()=>w,Tr:()=>R,U3:()=>T,eT:()=>k});var o=l(9904),c=l(3390),I=l(2879),C=l(1828),f=l(2718),a=l(5873),p=l(8531),s=l(7463),u=l(4137),g=(l(3930),l(107),l(9009)),x="dx-header-filter";function E(P){P=P||[];for(var B=0;B<P.length;B++)P[B].selected=!1,E(P[B].items)}function S(P,B){if(!P.component.option("searchValue")){var W=(0,o.Z)(P.element).find(".dx-list-select-all-checkbox").data("dxCheckBox");W&&B&&B.length&&W.option("value",void 0)}}function O(P,B){var W=B.headerFilter;return W&&(0,C.$K)(W.allowSearch)?W.allowSearch:P.option("headerFilter.allowSearch")}function w(P,B,W){if(B^W){if(P.selected=!0,W&&P.items)for(var N=0;N<P.items.length;N++)if(!P.items[N].selected){P.selected=void 0;break}}else(W||P.selected)&&(P.selected=!1,E(P.items))}var T=c.Z.View.inherit({getPopupContainer:function(){return this._popupContainer},getListContainer:function(){return this._listContainer},applyHeaderFilter:function(P){var B=this.getListContainer(),W=B.option("searchValue"),V=[];W||P.isFilterBuilder||!B.$element().find(".dx-checkbox").eq(0).hasClass("dx-checkbox-checked")?"tree"===P.type&&(P.filterType&&(P.filterType="include"),function U(K,Y,J){(0,f.S6)(Y,function(j,ee){if(void 0!==ee.selected&&!!ee.selected^J){var G=B._getNode(ee),Z=B._hasChildren(G)&&ee.items&&ee.items.some(X=>X.selected);if(!W||!Z)return void K.push(ee.value)}ee.items&&ee.items.length&&U(K,ee.items,J)})}(V,B.option("items"),!1),P.filterValues=V):("tree"===P.type&&(P.filterType="exclude"),Array.isArray(P.filterValues)&&(P.filterValues=[])),P.filterValues&&!P.filterValues.length&&(P.filterValues=null),P.apply(),this.hideHeaderFilterMenu()},showHeaderFilterMenu:function(P,B){if(B){this._initializePopupContainer(B);var W=this.getPopupContainer();this.hideHeaderFilterMenu(),this.updatePopup(P,B),W.show()}},hideHeaderFilterMenu:function(){var P=this.getPopupContainer();P&&P.hide()},updatePopup:function(P,B){var W=this.option("showColumnLines"),N="right"===B.alignment^!W?"left":"right";this._popupContainer.setAria({role:"dialog",label:g.Z.format("dxDataGrid-headerFilterLabel")}),this._popupContainer&&(this._cleanPopupContent(),this._popupContainer.option("position",{my:N+" top",at:N+" bottom",of:P,collision:"flip fit"}))},_getSearchExpr:function(P){var B=P.lookup,N=P.headerFilter&&P.headerFilter.dataSource;if(P.useDefaultSearchExpr||(0,C.$K)(N)&&!(0,C.mf)(N))return"text";if(B)return B.displayExpr||"this";if(P.dataSource){var V=P.dataSource.group;if(Array.isArray(V)&&V.length>0)return V[0].selector;if((0,C.mf)(V)&&!P.remoteFiltering)return V}return P.dataField||P.selector},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.$content().empty()},_initializePopupContainer:function(P){var B=this,W=B.element(),N=B.option("headerFilter"),K={width:P.headerFilter&&P.headerFilter.width||N&&N.width,height:P.headerFilter&&P.headerFilter.height||N&&N.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:N.texts.ok,onClick:function(){B.applyHeaderFilter(P)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:N.texts.cancel,onClick:function(){B.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(Y){Y.component.$content().parent().addClass("dx-dropdowneditor-overlay"),B._initializeListContainer(P),P.onShowing&&P.onShowing(Y)},onShown:function(){B.getListContainer().focus()},onHidden:P.onHidden,onInitialized:function(Y){var J=Y.component;J.option("animation",J._getDefaultOptions().animation)}};(0,C.$K)(B._popupContainer)?B._popupContainer.option(K):B._popupContainer=B._createComponent(W,p.Z,K)},_initializeListContainer:function(P){var B=this,W=B._popupContainer.$content(),N={searchEnabled:O(B,P),searchTimeout:B.option("headerFilter.searchTimeout"),searchMode:P.headerFilter&&P.headerFilter.searchMode||"",dataSource:P.dataSource,onContentReady:function(){B.renderCompleted.fire()},itemTemplate:function(U,K,Y){var J=(0,o.Z)(Y);return P.encodeHtml?J.text(U.text):J.html(U.text)}};function V(U){"searchValue"===U.fullName&&!P.isFilterBuilder&&!1!==B.option("headerFilter.hideSelectAllOnSearch")&&("tree"===P.type?U.component.option("showCheckBoxesMode",U.value?"normal":"selectAll"):U.component.option("selectionMode",U.value?"multiple":"all"))}B._listContainer="tree"===P.type?B._createComponent((0,o.Z)("<div>").appendTo(W),s.Z,(0,a.l)(N,{showCheckBoxesMode:P.isFilterBuilder?"normal":"selectAll",onOptionChanged:V,keyExpr:"id"})):B._createComponent((0,o.Z)("<div>").appendTo(W),u.Z,(0,a.l)(N,{searchExpr:B._getSearchExpr(P),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:P.isFilterBuilder?"multiple":"all",onOptionChanged:V,onSelectionChanged:function(U){var K=U.component.option("items"),Y=U.component.option("selectedItems");if(!U.component._selectedItemsUpdating&&!U.component.option("searchValue")&&!P.isFilterBuilder){var J=P.filterValues||[];0===Y.length&&K.length&&(J.length<=1||"exclude"===P.filterType&&J.length===K.length-1)?(P.filterType="include",P.filterValues=[]):Y.length===K.length&&(P.filterType="exclude",P.filterValues=[])}(0,f.S6)(K,function(ee,G){var q=I.Z.getIndexByKey(G,Y,null)>=0;if(!!G.selected!==q){G.selected=q,P.filterValues=P.filterValues||[];var X=I.Z.getIndexByKey(G.value,P.filterValues,null);X>=0&&P.filterValues.splice(X,1),q^"exclude"===P.filterType&&P.filterValues.push(G.value)}}),S(U,P.filterValues)},onContentReady:function(U){var K=U.component,Y=K.option("items"),J=[];(0,f.S6)(Y,function(){this.selected&&J.push(this)}),K._selectedItemsUpdating=!0,K.option("selectedItems",J),K._selectedItemsUpdating=!1,S(U,P.filterValues)}}))},_renderCore:function(){this.element().addClass("dx-header-filter-menu")}}),k=function(P){return(0,C.$K)(P.allowHeaderFiltering)?P.allowHeaderFiltering:P.allowFiltering},R={_applyColumnState:function(P){var B,N=P.column;if("headerFilter"===P.name){if(P.rootElement.find("."+x).remove(),k(N)){B=this.callBase(P).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(N)),this.option("useLegacyKeyboardNavigation")||B.attr("tabindex",this.option("tabindex")||0);var V=g.Z.format("dxDataGrid-headerFilterIndicatorLabel",N.caption);B.attr("aria-label",V),B.attr("aria-haspopup","dialog"),B.attr("role","button")}return B}return this.callBase(P)},_isHeaderFilterEmpty:function(P){return!P.filterValues||!P.filterValues.length},_getIndicatorClassName:function(P){return"headerFilter"===P?x:this.callBase(P)},_renderIndicator:function(P){var B=P.container,W=P.indicator;if("headerFilter"===P.name){var N=this.option("rtlEnabled");if(B.children().length&&(!N&&"right"===P.columnAlignment||N&&"left"===P.columnAlignment))return void B.prepend(W)}this.callBase(P)},optionChanged:function(P){if("headerFilter"===P.name){var B="columnHeadersView"===this.name;this._invalidate(B,B),P.handled=!0}else this.callBase(P)}}},2758:(kn,he,l)=>{"use strict";l.d(he,{z:()=>E});var o=l(4817),c=l(9904),I=l(7858),C=l(5004),f=l(7674),a=l(1828),p=l(9009),s=l(5873),u=l(6738),h="toolbar-button",x=["addRowButton","applyFilterButton","columnChooserButton","exportButton","groupPanel","revertButton","saveButton","searchPanel"],E={defaultOptions:function(){return{}},views:{headerPanel:C.p.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return(0,c.Z)("<div>").addClass(this.addWidgetPrefix(h))},_getToolbarButtonClass:function(S){var O=S?" "+S:"";return this.addWidgetPrefix(h)+O},_getToolbarOptions:function(){var S=this.option("toolbar"),O={toolbarOptions:{items:this._getToolbarItems(),visible:S?.visible,disabled:S?.disabled,onItemRendered:function(k){var R=k.itemData.onItemRendered;R&&R(k)}}},w=S?.items;if(O.toolbarOptions.items=this._normalizeToolbarItems(O.toolbarOptions.items,w),this.executeAction("onToolbarPreparing",O),O.toolbarOptions&&!(0,a.$K)(O.toolbarOptions.visible)){var T=O.toolbarOptions.items;O.toolbarOptions.visible=!(null==T||!T.length)}return O.toolbarOptions},_normalizeToolbarItems:function(S,O){S.forEach(P=>{if(!x.includes(P.name))throw new Error("Default toolbar item '".concat(P.name,"' is not added to DEFAULT_TOOLBAR_ITEM_NAMES"))});var w={location:"after"},T=Array.isArray(O);if(!(0,a.$K)(O))return S;T||(O=[O]);var k={};S.forEach(P=>{k[P.name]=P});var R=O.map(P=>((0,a.HD)(P)&&(P={name:P}),(0,a.$K)(P.name)&&((0,a.$K)(k[P.name])?P=(0,s.l)(!0,{},k[P.name],P):x.includes(P.name)&&(P=(0,o.Z)({},P,{visible:!1}))),(0,s.l)(!0,{},w,P)));return T?R:R[0]},_renderCore:function(){if(this._toolbar)this._toolbar.option(this._toolbarOptions);else{var S=this.element();S.addClass(this.addWidgetPrefix("header-panel"));var O=p.Z.format(this.component.NAME+"-ariaToolbar"),w=(0,c.Z)("<div>").attr("aria-label",O).appendTo(S);this._toolbar=this._createComponent(w,I.Z,this._toolbarOptions)}},_columnOptionChanged:f.ZT,_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(S,O){var w=this._toolbar;if(w){var T=w.option("items")||[],k=T.indexOf(T.filter(function(P){return P.name===S})[0]);if(k>=0){var R="items["+k+"]";w.option(R+".options")?w.option(R+".options.disabled",O):w.option(R+".disabled",O)}}},updateToolbarDimensions:function(){var S;null===(S=this._toolbar)||void 0===S||S.updateDimensions()},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(S){if("onToolbarPreparing"===S.name&&(this._invalidate(),S.handled=!0),"toolbar"===S.name&&(S.handled=!0,this._toolbar)){var O=(0,u.Zw)(S.fullName),w=S.fullName.replace(/^toolbar\./,"");if(1===O.length){var T=this._getToolbarOptions();this._toolbar.option(T)}else if("items"===O[1])if(2===O.length){var k=this._getToolbarOptions();this._toolbar.option("items",k.items)}else if(3===O.length){var R=this._normalizeToolbarItems(this._getToolbarItems(),S.value);this._toolbar.option(w,R)}else O.length>=4&&this._toolbar.option(w,S.value);else this._toolbar.option(w,S.value)}this.callBase(S)},isVisible:function(){return!(!this._toolbarOptions||!this._toolbarOptions.visible)},allowDragging:f.ZT})},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}}},6726:(kn,he,l)=>{"use strict";l.d(he,{U:()=>nn});var o=l(1805),c=l(9904),I=l(9897),C=l(913),f=l(3390),a=l(2879),p=l(1828),s=l(7),u=l(8225),d=l(8690),h=l(227),g=l(7674),x=l(2559),b=l(4722),y=l(114),E=l(2941),S="rowsview",O="edit-form",T="dx-row",N="dx-freespace-row",U="dx-master-detail-cell",K="dx-editor-cell",J="dx-command-expand",j="dx-command-select",G="[class^=dx-command]",q="dx-cell-focus-disabled",X="dx-state-focused",ge="delete",De="input:not([type='hidden']), textarea, a, select, button, [tabindex], .dx-checkbox",Fe="".concat(De,", .dx-dropdowneditor-icon"),le="columnHeadersView",pe=["shift","control","alt"];function Ee(ke){return ke&&ke.hasClass("dx-group-row")}function ae(ke){return ke&&ke.hasClass("dx-master-detail-row")}function te(ke){return ke&&!Ee(ke)&&!ae(ke)}function oe(ke,$e){return!ke._isRowEditMode()&&$e&&!$e.hasClass(j)&&$e.hasClass(K)}function ye(ke){return(0,p.$K)(ke)&&ke.length>0}function Pe(){return"desktop"!==E.Z.current().deviceType}function Ne(ke){return!!ke.parent(".".concat("dx-header-row")).length}var nn={defaultOptions:function(){return{useLegacyKeyboardNavigation:!1,keyboardNavigation:{enabled:!0,enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:f.Z.ViewController.inherit({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()&&(x.bT(),this._updateFocusTimeout=null,this._fastEditingStarted=!1,this._focusedCellPosition={},this._canceledCellPosition=null,this._editorFactory.focused.add(ke=>{this.setupFocusedView(),this._isNeedScroll&&ke.is(":visible")&&this._focusedView&&this._focusedView.getScrollable&&(this._focusedView._scrollToElement(ke),this._isNeedScroll=!1)}),this._initViewHandlers(),this._initDocumentHandlers(),this.createAction("onKeyDown"))},_initViewHandlers:function(){var ke=this.getView("rowsView"),$e=me=>{var xe=(0,c.Z)(me.target),Te=(0,c.Z)(me.relatedTarget).closest(ke.element()).length,Ye=xe.is("a");if(me.relatedTarget&&Ye&&!Te&&this._isEventInCurrentGrid(me)){var St=this._getFocusedCell();St=ye(St)?St:ke.getCellElements(0).filter("[tabindex]").eq(0),xe.closest(St).length||(me.preventDefault(),C.Z.trigger(St,"focus"))}};ke.renderCompleted.add(me=>{var xe=ke.element(),Te=!me||"refresh"===me.changeType,Ye=this._focusedView&&this._focusedView.name===ke.name,Ct=me&&("append"===me.changeType||"prepend"===me.changeType),fn=(0,c.Z)(I.Z.getRootNode(xe.get&&xe.get(0))).find(":focus"),ct=!fn.length||fn.closest(xe).length;C.Z.off(xe,"focusin",$e),C.Z.on(xe,"focusin",$e),this._initPointerEventHandler(),this._initKeyDownHandler(),this._setRowsViewAttributes(),Ye&&ct&&(this._isNeedFocus?!Ct:this._isHiddenFocus&&Te&&(null==me||!me.virtualColumnsScrolling))&&this._updateFocus(!0)})},_initDocumentHandlers:function(){var ke=I.Z.getDocument();this._documentClickHandler=this.createAction($e=>{var me=(0,c.Z)($e.event.target),xe=this._isEventInCurrentGrid($e.event)&&me.closest(".".concat(this.addWidgetPrefix(S))).length,Te=me.closest(".".concat("dx-dropdowneditor-overlay")).length,Ye=this.getController("columnsResizer"),St=!!Ye&&Ye.isResizing();xe||Te||St||(!(this._focusedView&&me.parents().filter(this._focusedView.element()).length>0)&&this._resetFocusedCell(!0),this._resetFocusedView())}),C.Z.on(ke,(0,u.V4)(d.Z.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},_setRowsViewAttributes:function(){var ke=this._getRowsViewElement();!this._dataController.getVisibleRows().length&&this._applyTabIndexToElement(ke)},_initPointerEventHandler:function(){var ke=Pe()?h.u:d.Z.down,$e=".".concat(T," > td, .").concat(T),me=this._getRowsViewElement();(0,p.$K)(this._pointerEventAction)||(this._pointerEventAction=this.createAction(this._pointerEventHandler)),C.Z.off(me,(0,u.V4)(ke,"dxDataGridKeyboardNavigation"),this._pointerEventAction),C.Z.on(me,(0,u.V4)(ke,"dxDataGridKeyboardNavigation"),$e,this._pointerEventAction)},_initKeyDownHandler:function(){var ke=this._getRowsViewElement();y.dG.off(this._keyDownListener),this._keyDownListener=y.dG.on(ke,null,$e=>this._keyDownHandler($e))},dispose:function(){this.callBase(),this._resetFocusedView(),y.dG.off(this._keyDownListener),C.Z.off(I.Z.getDocument(),(0,u.V4)(d.Z.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),clearTimeout(this._updateFocusTimeout),x.Ni()},optionChanged:function(ke){switch(ke.name){case"keyboardNavigation":case"useLegacyKeyboardNavigation":ke.handled=!0;break;default:this.callBase(ke)}},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(ke){var $e,me=!0;this._isNeedFocus=!0,this._isNeedScroll=!0;var xe=this._processOnKeyDown(ke),Te=null===($e=this._editingController)||void 0===$e?void 0:$e.isEditing(),Ye=ke.originalEvent;if(Ye.isDefaultPrevented())return this._isNeedFocus=!1,void(this._isNeedScroll=!1);if(pe.indexOf(ke.keyName)<0&&this._updateFocusedCellPositionByTarget(Ye.target),!xe){switch(ke.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(ke,Te),xe=!0;break;case"upArrow":case"downArrow":ke.ctrl?x.fv("rowsView",this,Ye):this._upDownKeysHandler(ke,Te),xe=!0;break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(ke),xe=!0;break;case"space":xe=this._spaceKeyHandler(ke,Te);break;case"A":(0,u.j1)(ke.originalEvent)?(this._ctrlAKeyHandler(ke,Te),xe=!0):xe=this._beginFastEditing(ke.originalEvent);break;case"tab":this._tabKeyHandler(ke,Te),xe=!0;break;case"enter":this._enterKeyHandler(ke,Te),xe=!0;break;case"escape":this._escapeKeyHandler(ke,Te),xe=!0;break;case"F":(0,u.j1)(ke.originalEvent)?(this._ctrlFKeyHandler(ke),xe=!0):xe=this._beginFastEditing(ke.originalEvent);break;case"F2":this._f2KeyHandler(),xe=!0;break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&(xe=this._beginFastEditing(Ye,!0))}!xe&&!this._beginFastEditing(Ye)&&(this._isNeedFocus=!1,this._isNeedScroll=!1,me=!1),me&&Ye.stopPropagation()}},_processOnKeyDown:function(ke){var $e=ke.originalEvent,me={handled:!1,event:$e};return this.executeAction("onKeyDown",me),ke.ctrl=$e.ctrlKey,ke.alt=$e.altKey,ke.shift=$e.shiftKey,!!me.handled},_closeEditCell:function(){setTimeout(()=>{this._editingController.closeEditCell()})},_leftRightKeysHandler:function(ke,$e){var me=this.getVisibleRowIndex(),xe=ke.originalEvent,Te=this._focusedView&&this._focusedView.getRow(me),Ye=this._getDirectionCodeByKey(ke.keyName),St=this._isFastEditingStarted();if((!$e||St)&&te(Te)){this.setCellFocusType(),St&&this._closeEditCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(Ye);var Rt=this._getNextCell(Ye);ye(Rt)&&this._arrowKeysHandlerFocusCell(xe,Rt,Ye),xe&&xe.preventDefault()}},_upDownKeysHandler:function(ke,$e){var me,xe,Te=this.getVisibleRowIndex(),Ye=this._focusedView&&this._focusedView.getRow(Te),St=ke.originalEvent,Ct="upArrow"===ke.keyName,Rt=this._dataController.dataSource(),fn=null===(me=this._editingController)||void 0===me||null===(xe=me.isEditRowByIndex)||void 0===xe?void 0:xe.call(me,Te),ct=this._isFastEditingStarted();if((!fn||!$e||ct)&&Ye&&!ae(Ye)){if(ct&&this._closeEditCell(),!this._navigateNextCell(St,ke.keyName)&&this._isVirtualRowRender()&&Ct&&Rt&&!Rt.isLoading()){var Dt=(0,o.zp)(Ye);this._scrollBy(0,-Dt,this._focusedCellPosition.rowIndex-1,St)}St&&St.preventDefault()}},_pageUpDownKeyHandler:function(ke){var $e=this._dataController.pageIndex(),me=this._dataController.pageCount(),xe=this.option("paging.enabled"),Te="pageUp"===ke.keyName,Ye=Te?-1:1,St=this.getView("rowsView").getScrollable();xe&&!this._isVirtualScrolling()?(Te?$e>0:$e<me-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex($e+Ye),ke.originalEvent.preventDefault()):St&&(0,o.Cr)(St.container())<(0,o.Cr)(St.$content())&&(this._scrollBy(0,(0,o.Cr)(St.container())*Ye),ke.originalEvent.preventDefault())},_spaceKeyHandler:function(ke,$e){var me=this.getVisibleRowIndex(),xe=(0,c.Z)(ke.originalEvent&&ke.originalEvent.target);if(this.option("selection")&&"none"!==this.option("selection").mode&&!$e){var Te="row"===this._getElementType(xe)&&this.isRowFocusType()&&te(xe);return xe.hasClass(j)&&"onClick"===this.option("selection.showCheckBoxesMode")&&this._selectionController.startSelectionWithCheckboxes(),!!(Te||xe.parent().hasClass("dx-data-row")||xe.hasClass(this.addWidgetPrefix(S)))&&(this._selectionController.changeItemSelection(me,{shift:ke.shift,control:ke.ctrl}),ke.originalEvent.preventDefault(),!0)}return this._beginFastEditing(ke.originalEvent)},_ctrlAKeyHandler:function(ke,$e){!$e&&!ke.alt&&"multiple"===this.option("selection.mode")&&this.option("selection.allowSelectAll")&&(this._selectionController.selectAll(),ke.originalEvent.preventDefault())},_tabKeyHandler:function(ke,$e){var me=this.option("editing"),xe=ke.shift?"previous":"next",Ye=!((0,p.$K)(this._focusedCellPosition)&&!(0,p.Qr)(this._focusedCellPosition))||!ke.shift&&this._isLastValidCell(this._focusedCellPosition)||ke.shift&&this._isFirstValidCell(this._focusedCellPosition),St=ke.originalEvent.target,Ct=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(St,xe)){if((0,c.Z)(Ct).addClass(X),me&&St&&!Ye)if((0,c.Z)(St).hasClass(this.addWidgetPrefix(S))&&this._resetFocusedCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(xe),$e){if(!this._editingCellTabHandler(ke,xe))return}else this._targetCellTabHandler(ke,xe)&&(Ye=!0);Ye?(this._editorFactory.loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(!0),this._resetFocusedView(),this._closeEditCell())):ke.originalEvent.preventDefault()}},_getMaxHorizontalOffset:function(){var ke=this.component.getScrollable(),$e=this.getView("rowsView");return ke?ke.scrollWidth()-(0,o.dz)($e.element()):0},_isColumnRendered:function(ke){var $e=this._columnsController.getVisibleColumns(null,!0),me=this._columnsController.getVisibleColumns(),xe=$e[ke],Te=!1;return xe&&(Te=me.indexOf(xe)>=0),Te},_isFixedColumn:function(ke){var me=this._columnsController.getVisibleColumns(null,!0)[ke];return!!me&&!!me.fixed},_isColumnVirtual:function(ke){var $e=ke-this._columnsController.getColumnIndexOffset(),xe=this._columnsController.getVisibleColumns()[$e];return!!xe&&"virtual"===xe.command},_processVirtualHorizontalPosition:function(ke){var xe,$e=this.component.getScrollable(),me=this.getColumnIndex(),Te=0,Ye=!1;switch(ke){case"next":case"nextInRow":var St=this._getVisibleColumnCount();xe=me+1,Te=this.option("rtlEnabled")?this._getMaxHorizontalOffset():0,Ye="next"===ke?St===xe||this._isFixedColumn(me)&&!this._isColumnRendered(xe):St>xe&&this._isFixedColumn(me)&&!this._isColumnRendered(xe);break;case"previous":case"previousInRow":if(xe=me-1,Te=this.option("rtlEnabled")?0:this._getMaxHorizontalOffset(),"previous"===ke){var Ct=this._columnsController.getColumnIndexOffset();Ye=xe<0&&0===Ct||this._isFixedColumn(me)&&!this._isColumnRendered(xe)}else Ye=xe>=0&&this._isFixedColumn(me)&&!this._isColumnRendered(xe)}Ye?$e.scrollTo({left:Te}):(0,p.$K)(xe)&&(0,p.$K)(ke)&&this._isColumnVirtual(xe)&&0!==(Te=this._getHorizontalScrollPositionOffset(ke))&&$e.scrollBy({left:Te,top:0})},_getHorizontalScrollPositionOffset:function(ke){var $e=0,me=this._getCell(this._focusedCellPosition),xe=me&&(0,o.Y_)(me);if(xe>0){var Te=this.option("rtlEnabled")?-1:1;$e="nextInRow"===ke||"next"===ke?xe*Te:xe*Te*-1}return $e},_editingCellTabHandler:function(ke,$e){var Te,me=ke.originalEvent.target,xe=this._getCellElementFromTarget(me),Ye=ke.originalEvent,St=this._getElementType(me);if(xe.is(G))return!this._targetCellTabHandler(ke,$e);this._updateFocusedCellPosition(xe);var Ct=this._getNextCellByTabKey(Ye,$e,St);if(!(xe=Ct.$cell)||this._handleTabKeyOnMasterDetailCell(xe,$e))return!1;var Rt=this._columnsController,ct=this.getView("rowsView").getCellIndex(xe)+Rt.getColumnIndexOffset(),He=Rt.getVisibleColumns(null,!0)[ct],Dt=xe.parent(),qe=this._getRowIndex(Dt),Ht=this._dataController.items()[qe];if(He&&He.allowEditing){var ht=!Ht||"data"===Ht.rowType;Te=this._editingController.allowUpdating({row:Ht})?ht:Ht&&Ht.isNewRow}return Te||this._closeEditCell(),this._focusCell(xe,!Ct.isHighlighted)&&(!this._isRowEditMode()&&Te?this._editFocusedCell():this._focusInteractiveElement(xe,ke.shift)),!0},_targetCellTabHandler:function(ke,$e){var Ct,me=ke.originalEvent,xe=me.target,Te=this._getCellElementFromTarget(xe),Ye=this._getInteractiveElement(Te,!ke.shift),St=!1;if(!oe(this,Te)&&Ye.length&&xe!==Ye.get(0))St=!0;else{void 0===this._focusedCellPosition.rowIndex&&(0,c.Z)(xe).hasClass(T)&&this._updateFocusedCellPosition(Te),Ct=this._getElementType(xe),this.isRowFocusType()&&(this.setCellFocusType(),"row"===Ct&&te((0,c.Z)(xe))&&(xe=this.getFirstValidCellInRow((0,c.Z)(xe)),Ct=this._getElementType(xe)));var Rt=this._getNextCellByTabKey(me,$e,Ct);if(!(Te=Rt.$cell)||!(Te=this._checkNewLineTransition(me,Te)))return!1;this._focusCell(Te,!Rt.isHighlighted),oe(this,Te)||this._focusInteractiveElement(Te,ke.shift)}return St},_getNextCellByTabKey:function(ke,$e,me){var xe=this._getNextCell($e,me),Te=xe&&this._fireFocusedCellChanging(ke,xe,!0);return!Te||Te.cancel?{}:(Te.$newCellElement&&(xe=Te.$newCellElement),{$cell:xe,isHighlighted:Te.isHighlighted})},_checkNewLineTransition:function(ke,$e){var me=this.getVisibleRowIndex(),xe=$e.parent();if(me!==this._getRowIndex(xe)){var Te=this._getCellPosition($e),Ye=this._fireFocusedRowChanging(ke,xe);if(Ye.cancel)return;Ye.rowIndexChanged&&(this.setFocusedColumnIndex(Te.columnIndex),$e=this._getFocusedCell())}return $e},_enterKeyHandler:function(ke,$e){var me=this._getFocusedCell(),xe=this.getVisibleRowIndex(),Te=this._focusedView&&this._focusedView.getRow(xe);if(this.option("grouping.allowCollapsing")&&Ee(Te)||this.option("masterDetail.enabled")&&me&&me.hasClass(J)){var Ye=this._dataController.getKeyByRowIndex(xe),St=this._dataController.items()[xe];void 0!==Ye&&St&&St.data&&!St.data.isContinuation&&this._dataController.changeRowExpand(Ye)}else this._processEnterKeyForDataCell(ke,$e)},_processEnterKeyForDataCell:function(ke,$e){var me=this._getEnterKeyDirection(ke),xe=this._allowEditingOnEnterKey();$e||!xe&&me?(this._handleEnterKeyEditingCell(ke.originalEvent),"next"===me||"previous"===me?this._targetCellTabHandler(ke,me):("upArrow"===me||"downArrow"===me)&&this._navigateNextCell(ke.originalEvent,me)):xe&&this._startEditing(ke)},_getEnterKeyDirection:function(ke){var $e=this.option("keyboardNavigation.enterKeyDirection"),me=ke.shift;return"column"===$e?me?"upArrow":"downArrow":"row"===$e?me?"previous":"next":void 0},_handleEnterKeyEditingCell:function(ke){var $e=ke.target,me=this._getCellElementFromTarget($e),xe=this._isRowEditMode();this._updateFocusedCellPosition(me),xe?(this._focusEditFormCell(me),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(C.Z.trigger((0,c.Z)($e),"change"),this._closeEditCell(),ke.preventDefault())},_escapeKeyHandler:function(ke,$e){var me=this._getCellElementFromTarget(ke.originalEvent.target);$e&&(this._updateFocusedCellPosition(me),this._isRowEditMode()?(this._focusEditFormCell(me),this._editingController.cancelEditData(),0===this._dataController.items().length&&(this._resetFocusedCell(),this._editorFactory.loseFocus())):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._closeEditCell(),ke.originalEvent.preventDefault())},_ctrlFKeyHandler:function(ke){if(this.option("searchPanel.visible")){var $e=this._headerPanel.getSearchTextEditor();$e&&($e.focus(),ke.originalEvent.preventDefault())}},_f2KeyHandler:function(){var ke=this._editingController.isEditing(),$e=this.getVisibleRowIndex(),me=this._focusedView&&this._focusedView.getRow($e);!ke&&te(me)&&this._startEditing()},_navigateNextCell:function(ke,$e){var me=this._getNextCell($e),xe=this._getDirectionCodeByKey($e);return!(!me||!this._isCellValid(me))&&this._arrowKeysHandlerFocusCell(ke,me,xe)},_arrowKeysHandlerFocusCell:function(ke,$e,me){var Te=this._fireFocusChangingEvents(ke,$e,"prevRow"===me||"nextRow"===me,!0);return $e=Te.$newCellElement,!(Te.cancel||!this._isCellValid($e)||(this._focus($e,!Te.isHighlighted),0))},_beginFastEditing:function(ke,$e){if(!this._isFastEditingAllowed()||ke.altKey||ke.ctrlKey||this._editingController.isEditing())return!1;if($e)this._startEditing(ke,ge);else{var xe=ke.keyCode||ke.which,Te=ke.key||xe&&String.fromCharCode(xe);Te&&(1===Te.length||Te===ge)&&this._startEditing(ke,Te)}return!0},_pointerEventHandler:function(ke){var $e=ke.event||ke,me=(0,c.Z)($e.currentTarget),xe=this.getView("rowsView"),Te=xe&&xe.element(),Ye=me.parent(),St=(0,c.Z)($e.target).is(De),Ct=!!(0,c.Z)($e.target).closest(".".concat("dx-revert-button")).length,Rt=me.hasClass(J);this._isEventInCurrentGrid($e)&&(Ct||!this._isCellValid(me,!St)&&!Rt?me.is("td")&&this._resetFocusedCell():(me=this._isInsideEditForm(me)?(0,c.Z)($e.target):me,this._focusView(),(0,c.Z)(Te).removeClass(X),Ye.hasClass(N)?(this._updateFocusedCellPosition(me),this._applyTabIndexToElement(this._focusedView.element()),this._focusedView.focus(!0)):this._isMasterDetailCell(me)?this._updateFocusedCellPosition(me):this._clickTargetCellHandler($e,me)))},_clickTargetCellHandler:function(ke,$e){var me=this.getView("rowsView").getCellIndex($e),xe=this._columnsController.getVisibleColumns()[me],Te=this._isCellEditMode();this.setCellFocusType();var Ye=this._fireFocusChangingEvents(ke,$e,!0);if($e=Ye.$newCellElement,Ye.cancel)this.setRowFocusType(),this.setFocusedRowIndex(Ye.prevRowIndex),this._editingController.isEditing()&&Te&&this._closeEditCell();else{if(Ye.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(Ye.rowIndexChanged&&($e=this._getFocusedCell()),!Ye.isHighlighted&&!Te&&this.setRowFocusType(),this._updateFocusedCellPosition($e),this._allowRowUpdating()&&Te&&xe&&xe.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{$e=this._getFocusedCell();var St=ke&&(0,c.Z)(ke.target).closest(Fe+", td"),Ct=St&&St.not($e).is(Fe),Rt=!!xe&&!xe.command&&$e.hasClass(K);this._focus($e,!Rt&&(!Ye.isHighlighted||Ct),Ct)}}},_allowRowUpdating:function(){var ke=this.getVisibleRowIndex(),$e=this._dataController.items()[ke];return this._editingController.allowUpdating({row:$e},"click")},focus:function(ke){var $e,me=this.option("focusedRowEnabled"),xe=this._isCellElement((0,c.Z)(ke));ke||($e=".dx-datagrid-rowsview .dx-row[tabindex]",me||($e+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),ke=this.component.$element().find($e).first()),ke&&this._focusElement((0,c.Z)(ke),xe)},getFocusedView:function(){return this._focusedView},setupFocusedView:function(){this.isKeyboardEnabled()&&!(0,p.$K)(this._focusedView)&&this._focusView()},_focusElement:function(ke,$e){var me=(0,c.Z)(this._getRowsViewElement()),xe=ke.closest(me),Te=this.isRowFocusType(),Ye={};!xe.length||this._isCellElement(ke)&&!this._isCellValid(ke)||(this._focusView(),this._isNeedFocus=!0,this._isNeedScroll=!0,(this._isCellElement(ke)||Ee(ke))&&(this.setCellFocusType(),ke=(Ye=this._fireFocusChangingEvents(null,ke,!1,$e)).$newCellElement,Te&&!Ye.isHighlighted&&this.setRowFocusType()),Ye.cancel||(this._focus(ke,!Ye.isHighlighted),this._focusInteractiveElement(ke)))},_getFocusedViewByElement:function(ke){var $e=this.getFocusedView(),me=$e&&(0,c.Z)($e.element());return ke&&0!==ke.closest(me).length},_focusView:function(){this._focusedView=this.getView("rowsView")},_resetFocusedView:function(){this.setRowFocusType(),this._focusedView=null},_focusInteractiveElement:function(ke,$e){if(ke){var me=this._getInteractiveElement(ke,$e);a.Z.focusAndSelectElement(this,me)}},_focus:function(ke,$e,me){var xe=ke&&!ke.hasClass(T)?ke.closest(".".concat(T)):ke;if(!xe||!function re(ke){return!ke||ke.hasClass(N)||ke.hasClass("dx-virtual-row")}(xe)){var St,Te=this._focusedView,Ye=Te&&Te.element();this._isHiddenFocus=$e;var Ct=Ee(xe)||this.isRowFocusType();Ct?(St=xe,Te&&this.setFocusedRowIndex(this._getRowIndex(xe))):this._isCellElement(ke)&&(St=ke,this._updateFocusedCellPosition(ke)),St&&(Ye&&Ye.find(".dx-row[tabindex], .dx-row > td[tabindex]").not(St).removeClass(q).removeAttr("tabindex"),C.Z.one(St,"blur",Rt=>{Rt.relatedTarget&&St.removeClass(q)}),me||(this._applyTabIndexToElement(St),C.Z.trigger(St,"focus")),$e?(St.addClass(q),Ct&&ke.addClass(q)):this._editorFactory.focus(St))}},_updateFocus:function(ke){this._updateFocusTimeout=setTimeout(()=>{var $e=this._editingController,me="cell"===$e.getEditMode(),xe="batch"===$e.getEditMode();if(me&&$e.hasChanges()||xe&&$e.isNewRowInEditMode())$e._focusEditingCell();else{var Te=this._getFocusedCell(),Ye=$e.isEditing();if(Te&&(!this._isMasterDetailCell(Te)||this._isRowEditMode())&&(this._hasSkipRow(Te.parent())&&(Te=this._getNextCell(this._focusedCellPosition&&this._focusedCellPosition.rowIndex>0?"upArrow":"downArrow")),ye(Te)))if(Te.is("td")||Te.hasClass(this.addWidgetPrefix("edit-form-item"))){var Ct=Te.is(G),Rt=Te.find(":focus"),fn=ye(Rt);if(!ke&&Ct||!this._editorFactory.focus())!fn&&(this._isNeedFocus||this._isHiddenFocus)&&this._focus(Te,this._isHiddenFocus);else{if(Ct&&fn)return void a.Z.focusAndSelectElement(this,Rt);!fn&&this._focus(Te)}Ye&&this._focusInteractiveElement.bind(this)(Te)}else C.Z.trigger(Te,"focus")}})},_getFocusedCell:function(){return(0,c.Z)(this._getCell(this._focusedCellPosition))},_updateFocusedCellPositionByTarget:function(ke){var $e;if("row"===this._getElementType(ke)&&(0,p.$K)(null===($e=this._focusedCellPosition)||void 0===$e?void 0:$e.columnIndex)){var xe=(0,c.Z)(ke);this._focusedView&&Ee(xe)&&this.setFocusedRowIndex(this._getRowIndex(xe))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(ke))},_updateFocusedCellPosition:function(ke,$e){var me=this._getCellPosition(ke,$e);return me&&(!ke.length||me.rowIndex>=0&&me.columnIndex>=0)&&this.setFocusedCellPosition(me.rowIndex,me.columnIndex),me},_getFocusedColumnIndexOffset:function(ke){var $e=0,me=this._columnsController.getVisibleColumns()[ke];return me&&me.fixed?$e=this._getFixedColumnIndexOffset(me):ke>=0&&($e=this._columnsController.getColumnIndexOffset()),$e},_getFixedColumnIndexOffset:function(ke){var $e=function ft(ke,$e){return ke.option("rtlEnabled")?!("right"===$e.fixedPosition||(0,p.$K)($e.command)&&!(0,p.$K)($e.fixedPosition)):!(!(0,p.$K)($e.fixedPosition)||"left"===$e.fixedPosition)}(this,ke)?this._getVisibleColumnCount()-this._columnsController.getVisibleColumns().length:0;return $e},_getCellPosition:function(ke,$e){var me,xe=ye(ke)&&ke.closest("tr"),Te=this.getView("rowsView");if(ye(xe)){var Ye=this._getRowIndex(xe);return me=Te.getCellIndex(ke,Ye),me+=this._getFocusedColumnIndexOffset(me),$e&&(me=this._applyColumnIndexBoundaries(me="previous"===$e?me-1:me+1)),{rowIndex:Ye,columnIndex:me}}},_focusCell:function(ke,$e){if(this._isCellValid(ke))return this._focus(ke,$e),!0},_focusEditFormCell:function(ke){ke.hasClass(U)&&this._editorFactory.focus(ke,!0)},_resetFocusedCell:function(ke){var $e,me=this._getFocusedCell();ye(me)&&me.removeAttr("tabindex"),this._isNeedFocus=!1,this._isNeedScroll=!1,this._focusedCellPosition={},clearTimeout(this._updateFocusTimeout),null===($e=this._focusedView)||void 0===$e||$e.renderFocusState({preventScroll:ke})},restoreFocusableElement:function(ke,$e){var me,xe,Te=(0,p.$K)(ke),Ye=this.getView("rowsView"),St=Ye.element(),Ct=this._focusedCellPosition.columnIndex,Rt=this._dataController.getRowIndexOffset();ke=Te?ke:Ye.getTopVisibleItemIndex()+Rt,Te?(xe=Ye.getRow(ke-Rt),!(me=this._fireFocusedRowChanging($e,xe)).cancel&&me.rowIndexChanged&&(ke=me.newRowIndex)):(this._editorFactory.loseFocus(),this._applyTabIndexToElement(St),C.Z.trigger(St,"focus")),(!Te||!me.cancel)&&this.setFocusedCellPosition(ke,Ct),Te&&this._updateFocus()},_getNewPositionByCode:function(ke,$e,me){var xe=ke.columnIndex,Te=ke.rowIndex;if(void 0===ke.rowIndex&&"next"===me)return{columnIndex:0,rowIndex:0};switch(me){case"nextInRow":case"next":xe<this._getVisibleColumnCount()-1&&"row"!==$e&&this._hasValidCellAfterPosition({columnIndex:xe,rowIndex:Te})?xe++:!this._isLastRow(Te)&&"next"===me&&(xe=0,Te++);break;case"previousInRow":case"previous":xe>0&&"row"!==$e&&this._hasValidCellBeforePosition({columnIndex:xe,rowIndex:Te})?xe--:Te>0&&"previous"===me&&(Te--,xe=this._getVisibleColumnCount()-1);break;case"upArrow":Te=Te>0?Te-1:Te;break;case"downArrow":Te=this._isLastRow(Te)?Te:Te+1}return{columnIndex:xe,rowIndex:Te}},setFocusedCellPosition:function(ke,$e){this.setFocusedRowIndex(ke),this.setFocusedColumnIndex($e)},setFocusedRowIndex:function(ke){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=ke},setFocusedColumnIndex:function(ke){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=ke},getRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex:-1},getColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:-1},getVisibleRowIndex:function(){var ke=this._focusedCellPosition&&this._focusedCellPosition.rowIndex;return!(0,p.$K)(ke)||ke<0?-1:ke-this._dataController.getRowIndexOffset()},getVisibleColumnIndex:function(){var ke=this._focusedCellPosition&&this._focusedCellPosition.columnIndex;return(0,p.$K)(ke)?ke-this._columnsController.getColumnIndexOffset():-1},_applyColumnIndexBoundaries:function(ke){var $e=this._getVisibleColumnCount();return ke<0?ke=0:ke>=$e&&(ke=$e-1),ke},_isCellByPositionValid:function(ke){var $e=(0,c.Z)(this._getCell(ke));return this._isCellValid($e)},_isLastRow:function(ke){var $e=this._dataController,me=$e.items().filter(xe=>!1!==xe.visible);return this._isVirtualRowRender()?ke>=$e.getMaxRowIndex():ke===me.length-1},_isFirstValidCell:function(ke){var $e=!1;return 0===ke.rowIndex&&ke.columnIndex>=0&&($e=$e||!this._hasValidCellBeforePosition(ke)),$e},_hasValidCellBeforePosition:function(ke){for(var $e=ke.columnIndex,me=!1;$e>0&&!me;){var xe={columnIndex:--$e,rowIndex:ke.rowIndex};me=this._isCellByPositionValid(xe)}return me},_hasValidCellAfterPosition:function(ke){for(var $e=ke.columnIndex,me=!1,xe=this._getVisibleColumnCount();$e<xe-1&&!me;){var Te={columnIndex:++$e,rowIndex:ke.rowIndex};me=this._isCellByPositionValid(Te)}return me},_isLastValidCell:function(ke){var me=ke.rowIndex,xe={columnIndex:ke.columnIndex>=0?ke.columnIndex+1:0,rowIndex:me},Te=this._dataController.getVisibleRows(),Ye=Te&&Te[me];return!!this._isLastRow(me)&&(!!(Ye&&"group"===Ye.rowType&&ke.columnIndex>0||ke.columnIndex===this._getVisibleColumnCount()-1)||!this._isCellByPositionValid(xe)&&this._isLastValidCell(xe))},_isCellValid:function(ke,$e){if(ye(ke)){var me=this.getView("rowsView"),xe=ke.parent(),Te=this._columnsController,Ye=me.getCellIndex(ke)+Te.getColumnIndexOffset(),St=Te.getVisibleColumns(null,!0)[Ye],Ct=this._getVisibleColumnCount(),Rt=this._editingController,fn=ae(xe),ct=St&&St.showWhenGrouped,He=St&&!ke.hasClass(J)&&te(xe);if(this._isMasterDetailCell(ke))return!0;if(Ct>Ye&&(!fn&&St&&(!(0,p.$K)(St.groupIndex)||ct&&He)||parseInt(ke.attr("colspan"))>1)){var Dt=this._dataController.items(),qe=me.getRowIndex(xe),Ht=Dt[qe],dt=Rt&&this._isCellEditMode()&&Rt.isEditing(),ht=Rt&&Rt.isEditRow(qe),yt=ht||dt;return St.command?this._isLegacyNavigation()?!yt&&"expand"===St.command:!dt&&(ht?"select"!==St.command:!yt):(!dt||!Ht||"data"===Ht.rowType)&&(!yt||St.allowEditing||$e)}}},getFirstValidCellInRow:function(ke,$e){for(var xe,Te,me=ke.find("> td"),Ye=$e=$e||0;Ye<me.length;++Ye)if(xe=me.eq(Ye),this._isCellValid(xe)){Te=xe;break}return Te},_getNextCell:function(ke,$e,me){var St,Ct,xe=me||this._focusedCellPosition,Te=this.isRowFocusType(),Ye=Te||["next","previous"].includes(ke);if(this._focusedView&&xe){var Rt=this._getNewPositionByCode(xe,$e,ke);St=(0,c.Z)(this._getCell(Rt));var fn="previous"===ke?this._isFirstValidCell(Rt):this._isLastValidCell(Rt);if(ye(St)&&!this._isCellValid(St)&&this._isCellInRow(Rt,Ye)&&!fn&&(St=Te?this.getFirstValidCellInRow(St.parent(),Rt.columnIndex):this._getNextCell(ke,"cell",Rt)),Ct=ye(St)&&St.parent(),this._hasSkipRow(Ct)){var ct=this._getRowIndex(Ct);if(this._isLastRow(ct))return null;St=this._getNextCell(ke,"row",{columnIndex:xe.columnIndex,rowIndex:ct})}return ye(St)?St:null}return null},_startEditing:function(ke,$e){var me=this._focusedCellPosition,xe=this.getVisibleRowIndex(),Te=this.getVisibleColumnIndex(),Ye=this._dataController.items()[xe],St=this._columnsController.getVisibleColumns()[Te];this._isAllowEditing(Ye,St)&&(this._isRowEditMode()?this._editingController.editRow(xe):me&&this._startEditCell(ke,$e))},_isAllowEditing:function(ke,$e){return this._editingController.allowUpdating({row:ke})&&$e&&$e.allowEditing},_editFocusedCell:function(){var ke=this.getVisibleRowIndex(),$e=this.getVisibleColumnIndex();return this._editingController.editCell(ke,$e)},_startEditCell:function(ke,$e){this._fastEditingStarted=(0,p.$K)($e);var me=this._editFocusedCell();if(this._isFastEditingStarted())if(!0===me)this._editingCellHandler(ke,$e);else if(me&&me.done){var xe=$e!==ge?$e:"";me.done(()=>this._editingCellHandler(ke,xe))}},_editingCellHandler:function(ke,$e){var me,xe,Te=this._getFocusedCell().find(De).eq(0),Ye=(0,u.yM)(ke,{type:"keydown",target:Te.get(0)}),St=(0,u.yM)(ke,{type:"keypress",target:Te.get(0)}),Ct=(0,u.yM)(ke,{type:"input",target:Te.get(0)});Ct.originalEvent&&(Ct.originalEvent=(0,u.yM)(Ct.originalEvent,{data:$e})),null===(me=(xe=Te.get(0)).select)||void 0===me||me.call(xe),C.Z.trigger(Te,Ye),Ye.isDefaultPrevented()||(C.Z.trigger(Te,St),St.isDefaultPrevented())||setTimeout(()=>{Te.val($e);var fn=Te.closest(".".concat("dx-widget"));C.Z.off(fn,"focusout"),C.Z.one(fn,"focusout",function(){C.Z.trigger(Te,"change")}),C.Z.trigger(Te,Ct)},b.Z.mozilla?25:0)},_fireFocusChangingEvents:function(ke,$e,me,xe){var Te={},Ye=this._getCellPosition($e)||{};return this.isCellFocusType()&&((Te=this._fireFocusedCellChanging(ke,$e,xe)).cancel||(Ye.columnIndex=Te.newColumnIndex,Ye.rowIndex=Te.newRowIndex,xe=Te.isHighlighted,$e=(0,c.Z)(this._getCell(Ye)))),!Te.cancel&&me&&$e&&((Te=this._fireFocusedRowChanging(ke,$e.parent())).cancel||(Ye.rowIndex=Te.newRowIndex,Te.isHighlighted=xe)),Te.$newCellElement=(0,c.Z)(this._getCell(Ye)),Te.$newCellElement.length||(Te.$newCellElement=$e),Te},_fireFocusedCellChanging:function(ke,$e,me){var xe=this.option("focusedColumnIndex"),Te=this.option("focusedRowIndex"),Ye=this._getCellPosition($e),St=Ye?Ye.columnIndex:-1,Ct=Ye?Ye.rowIndex:-1,Rt={cellElement:$e,prevColumnIndex:xe,prevRowIndex:Te,newColumnIndex:St,newRowIndex:Ct,rows:this._dataController.getVisibleRows(),columns:this._columnsController.getVisibleColumns(),event:ke,isHighlighted:me||!1,cancel:!1};return this._canceledCellPosition=null,this.executeAction("onFocusedCellChanging",Rt),(Rt.newColumnIndex!==St||Rt.newRowIndex!==Ct)&&(Rt.$newCellElement=(0,c.Z)(this._getCell({columnIndex:Rt.newColumnIndex,rowIndex:Rt.newRowIndex}))),Rt.cancel&&(this._canceledCellPosition={rowIndex:Ct,columnIndex:St}),Rt},_fireFocusedCellChanged:function(ke,$e,me){var xe=this._dataController,Te=this.getView("rowsView").getCellIndex(ke),Ye=this._getRowIndex(ke&&ke.parent()),St=Math.min(Ye-xe.getRowIndexOffset(),xe.items().length-1),Ct=this._editingController.isEditCell(St,Te),Rt=xe.items()[St];!Ct&&($e!==Te||me!==Ye)&&this.executeAction("onFocusedCellChanged",{cellElement:ke,columnIndex:Te,rowIndex:Ye,row:Rt,column:this._columnsController.getVisibleColumns()[Te]})},_fireFocusedRowChanging:function(ke,$e){var me=this._getRowIndex($e),xe=this._dataController,Te=this.option("focusedRowIndex"),Ye=xe.loadingOperationTypes(),St={rowElement:$e,prevRowIndex:Te,newRowIndex:me,event:ke,rows:xe.getVisibleRows(),cancel:!1};return!xe||xe.isLoading()&&(Ye.reload||Ye.paging)?(St.cancel=!0,St):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",St),!St.cancel&&St.newRowIndex!==me&&(St.resetFocusedRow=St.newRowIndex<0,St.resetFocusedRow||this.setFocusedRowIndex(St.newRowIndex),St.rowIndexChanged=!0)),St)},_fireFocusedRowChanged:function(ke){var $e,me=this.option("focusedRowKey"),Te=this.getController("focus")?.getFocusedRowIndexByKey(me);if(this.option("focusedRowEnabled")){if(Te>=0){var Ye=this._dataController;$e=Te>=0&&Ye.getVisibleRows()[Te-Ye.getRowIndexOffset()]}this.executeAction("onFocusedRowChanged",{rowElement:ke,rowIndex:Te,row:$e})}},_isEventInCurrentGrid:function(ke){return a.Z.isElementInCurrentGrid(this,(0,c.Z)(ke.target))},_isRowEditMode:function(){var ke=this._editingController.getEditMode();return"row"===ke||"form"===ke},_isCellEditMode:function(){var ke=this._editingController.getEditMode();return"cell"===ke||"batch"===ke},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_getInteractiveElement:function(ke,$e){var me=ke.find(De).filter(":visible");return $e?me.last():me.first()},_applyTabIndexToElement:function(ke){var $e=this.option("tabIndex")||0;ke.attr("tabindex",(0,p.$K)($e)?$e:0)},_getCell:function(ke){if(this._focusedView&&ke){var $e=this._dataController.getRowIndexOffset(),me=this._columnsController.getVisibleColumns(null,!0)[ke.columnIndex],xe=me&&me.fixed?this._getFixedColumnIndexOffset(me):this._columnsController.getColumnIndexOffset();return this._focusedView.getCell({rowIndex:ke.rowIndex>=0?ke.rowIndex-$e:-1,columnIndex:ke.columnIndex>=0?ke.columnIndex-xe:-1})}},_getRowIndex:function(ke){var me=this.getView("rowsView").getRowIndex(ke);return me>=0&&(me+=this._dataController.getRowIndexOffset()),me},_hasSkipRow:function(ke){var $e=ke&&ke.get(0);return $e&&("none"===$e.style.display||ke.hasClass(this.addWidgetPrefix("group-footer"))||ae(ke)&&!ke.hasClass(this.addWidgetPrefix(O)))},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDirectionCodeByKey:function(ke){var $e;switch(ke){case"upArrow":$e="prevRow";break;case"downArrow":$e="nextRow";break;case"leftArrow":$e=this.option("rtlEnabled")?"nextInRow":"previousInRow";break;case"rightArrow":$e=this.option("rtlEnabled")?"previousInRow":"nextInRow"}return $e},_isVirtualScrolling:function(){var ke=this.option("scrolling.mode");return"virtual"===ke||"infinite"===ke},_isVirtualRowRender:function(){return this._isVirtualScrolling()||a.Z.isVirtualRowRendering(this)},_isVirtualColumnRender:function(){return"virtual"===this.option("scrolling.columnRenderingMode")},_scrollBy:function(ke,$e,me,xe){var Te=this,Ye=this.getView("rowsView").getScrollable();return Te._focusedCellPosition&&Ye.on("scroll",function St(){Ye.off("scroll",St),setTimeout(Te.restoreFocusableElement.bind(Te,me,xe))}),Ye.scrollBy({left:ke,top:$e})},_isInsideEditForm:function(ke){var $e=(0,c.Z)(ke).closest("."+this.addWidgetPrefix(O));return $e.length&&this.elementIsInsideGrid($e)},_isMasterDetailCell:function(ke){var $e=(0,c.Z)(ke).closest("."+U);return $e.length&&this.elementIsInsideGrid($e)},_processNextCellInMasterDetail:function(ke){!this._isInsideEditForm(ke)&&ke&&this._applyTabIndexToElement(ke)},_handleTabKeyOnMasterDetailCell:function(ke,$e){if(this._isMasterDetailCell(ke)){this._updateFocusedCellPosition((0,c.Z)(ke),$e);var me=this._getNextCell($e,"row");return this._processNextCellInMasterDetail(me,(0,c.Z)(ke)),!0}return!1},_getElementType:function(ke){return(0,c.Z)(ke).is("tr")?"row":"cell"},_isFastEditingStarted:function(){return this._isFastEditingAllowed()&&this._fastEditingStarted},_getVisibleColumnCount:function(){return this._columnsController.getVisibleColumns(null,!0).length},_isCellInRow:function(ke,$e){var me=ke.columnIndex,xe=this._getVisibleColumnCount();return $e?me>=0&&me<=xe-1:me>0&&me<xe-1},_isCellElement:function(ke){return ke.length&&"TD"===ke[0].tagName},_getCellElementFromTarget:function(ke){var $e=this._getElementType(ke),me=(0,c.Z)(ke);return"cell"===$e?me.closest(".".concat(T," > td")):me.children().not("."+J).first()},_getRowsViewElement:function(){var ke=this.getView("rowsView");return ke&&ke.element()},isKeyboardEnabled:function(){return this.option("keyboardNavigation.enabled")},_processCanceledEditCellPosition:function(ke,$e){if(this._canceledCellPosition){var me=this._canceledCellPosition.rowIndex===ke&&this._canceledCellPosition.columnIndex===$e;return this._canceledCellPosition=null,me}},updateFocusedRowIndex:function(){var ke=this._dataController,$e=this.getVisibleRowIndex(),me=ke.items(),xe=me.length?me.length-1:-1,Te=ke.getRowIndexOffset();xe>=0&&$e>xe&&this.setFocusedRowIndex(xe+Te)}})},extenders:{views:{rowsView:{_rowClick:function(ke){var $e=this.getController("editing").getEditRowIndex(),me=this.getController("keyboardNavigation"),xe=me.isKeyboardEnabled();$e===ke.rowIndex&&me.setCellFocusType();var Te=(Pe()||!xe)&&this.option("focusedRowEnabled");Te&&this._triggerPointerDownEventHandler(ke,!xe),this.callBase.apply(this,arguments)},_triggerPointerDownEventHandler:function(ke,$e){var me=ke.event.originalEvent;if(me){var xe=this.getController("keyboardNavigation"),Te=(0,c.Z)(me.target),Ye=this.getCellIndex(Te),St=this.getController("columns").getVisibleColumns()[Ye],Ct=this.getController("data").items()[ke.rowIndex];if(xe._isAllowEditing(Ct,St)||$e){var Rt=(0,u.yM)(me,{currentTarget:me.target});xe._pointerEventHandler(Rt)}}},renderFocusState:function(ke){var{preventScroll:$e,pageSizeChanged:me}=ke??{},xe=this.getController("keyboardNavigation"),Te=this.element();Te&&!(0,s.si)(Te)&&Te.attr("tabindex",null),me&&xe.updateFocusedRowIndex();var Ye=xe.getVisibleRowIndex();(!(0,p.$K)(Ye)||Ye<0)&&(Ye=0);var St=this.getCellElements(Ye);xe.isKeyboardEnabled()&&St.length&&this.updateFocusElementTabIndex(St,$e)},updateFocusElementTabIndex:function(ke){var $e=this.getController("keyboardNavigation"),me=ke.eq(0).parent();if(Ee(me))$e._applyTabIndexToElement(me);else{var xe=$e.getColumnIndex();(!(0,p.$K)(xe)||xe<0)&&(xe=0),this._updateFocusedCellTabIndex(ke,xe)}},_updateFocusedCellTabIndex:function(ke,$e){var me=this.getController("keyboardNavigation"),xe=ke?ke.length:-1,Te=function(Ct){var Rt=me._isMasterDetailCell(Ct),fn=me._isCellValid(Ct);if(!Rt&&fn&&me._isCellElement(Ct))return me._applyTabIndexToElement(Ct),me.setCellFocusType(),!0},Ye=ke.filter("[aria-colindex='".concat($e+1,"']"));if(Ye.length)Te(Ye);else{xe<=$e&&($e=xe-1);for(var St=$e;St<xe&&!Te((0,c.Z)(ke[St]));++St);}},renderDelayedTemplates:function(ke){this.callBase.apply(this,arguments),this._renderFocusByChange(ke)},_renderFocusByChange(ke){var{operationTypes:$e,repaintChangesOnly:me}=ke??{},{fullReload:xe,pageSize:Te}=$e??{};if(!ke||!me||xe||Te){var Ye=function tt(ke){var $e=ke.getController("keyboardNavigation");return!!$e._isVirtualScrolling()&&ke.option("focusedRowIndex")===$e.getRowIndex()}(this);this.renderFocusState({preventScroll:Ye,pageSizeChanged:Te})}},_renderCore:function(ke){var $e=this.callBase.apply(this,arguments);return this._renderFocusByChange(ke),$e},_editCellPrepared:function(ke){var $e=this._getEditorInstance(ke),me=this.getController("keyboardNavigation"),xe=me&&me._isFastEditingStarted();$e&&xe&&this._handleEditingNavigationMode($e),this.callBase.apply(this,arguments)},_handleEditingNavigationMode:function(ke){["downArrow","upArrow"].forEach(function(me){var xe=ke._supportedKeys()[me];ke.registerKeyHandler(me,Te=>{if("true"===ke._input().attr("aria-expanded"))return xe&&xe.call(ke,Te)})}),ke.registerKeyHandler("leftArrow",g.ZT),ke.registerKeyHandler("rightArrow",g.ZT),"dxDateBox"===ke.NAME&&ke.option("useMaskBehavior")&&ke.registerKeyHandler("enter",g.ZT)},_getEditorInstance:function(ke){var $e=ke.find(".dx-texteditor").eq(0);return a.Z.getWidgetInstance($e)}}},controllers:{editing:{editCell:function(ke,$e){var me=this.getController("keyboardNavigation");if(me._processCanceledEditCellPosition(ke,$e))return!1;var xe=this.callBase(ke,$e);return xe&&me.setupFocusedView(),xe},editRow:function(ke){var $e=this.getController("keyboardNavigation"),me=$e.getVisibleColumnIndex(),xe=this._columnsController.getVisibleColumns()[me];(xe&&xe.type||"form"===this.option("editing.mode"))&&$e._resetFocusedCell(),this.callBase(ke)},addRow:function(ke){var $e=this.getController("keyboardNavigation");return $e.setupFocusedView(),$e.setCellFocusType(),this.callBase.apply(this,arguments)},getFocusedCellInRow:function(ke){var $e=this.getController("keyboardNavigation"),me=this.callBase(ke);if($e.isKeyboardEnabled()&&$e._focusedCellPosition.rowIndex===ke){var xe=$e._getFocusedCell();ye(xe)&&!xe.hasClass("dx-command-edit")&&(me=xe)}return me},_processCanceledEditingCell:function(){this.closeEditCell().done(()=>{this.getController("keyboardNavigation")._updateFocus()})},init:function(){this.callBase(),this._keyboardNavigationController=this.getController("keyboardNavigation")},closeEditCell:function(){var ke=this._keyboardNavigationController;ke._fastEditingStarted=!1;var $e=this.callBase.apply(this,arguments);return ke._updateFocus(),$e},_delayedInputFocus:function(){this._keyboardNavigationController._isNeedScroll=!0,this.callBase.apply(this,arguments)},_isEditingStart:function(){var ke=this.getController("keyboardNavigation"),$e=this.callBase.apply(this,arguments);if($e&&!ke._isNeedFocus){var me=ke._getFocusedCell();ke._focus(me,!0)}return $e}},data:{_correctRowIndices:function(ke){var $e=this,me=$e.getController("keyboardNavigation"),xe=$e.getController("editorFactory"),Te=me._focusedCellPosition;if($e.callBase.apply($e,arguments),Te&&Te.rowIndex>=0){var Ye=ke(Te.rowIndex);Ye&&(Te.rowIndex+=Ye,xe.refocus())}},getMaxRowIndex:function(){var ke=this.items().length-1,$e=this.virtualItemsCount();return $e&&(ke+=this.getRowIndexOffset()+$e.end),ke}},adaptiveColumns:{_showHiddenCellsInView:function(ke){var{viewName:$e,$cells:me,isCommandColumn:xe}=ke;this.callBase.apply(this,arguments),$e===le&&!xe&&me.each((Te,Ye)=>{var St=(0,c.Z)(Ye);Ne(St)&&St.attr("tabindex",0)})},_hideVisibleCellInView:function(ke){var{viewName:$e,$cell:me,isCommandColumn:xe}=ke;this.callBase.apply(this,arguments),$e===le&&!xe&&Ne(me)&&me.removeAttr("tabindex")}}}}}},6264:(kn,he,l)=>{"use strict";l.d(he,{h:()=>g});var x,o=l(1805),c=l(9904),I=l(2879),C=l(7674),f=l(2718),a=l(1828),p=l(4270),s="dx-master-detail-cell",u="dx-master-detail-row",d="dx-cell-focus-disabled",h="dx-row-lines",g={defaultOptions:function(){return{masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}},extenders:{controllers:{columns:{_getExpandColumnsCore:function(){var x=this.callBase();return this.option("masterDetail.enabled")&&x.push({type:"detailExpand",cellTemplate:I.Z.getExpandCellTemplate()}),x}},data:(x=function(b){b._expandedItems=[],b._isExpandAll=b.option("masterDetail.autoExpandAll")},{init:function(){x(this),this.callBase()},expandAll:function(b){var y=this;b<0?(y._isExpandAll=!0,y._expandedItems=[],y.updateItems()):y.callBase.apply(y,arguments)},collapseAll:function(b){var y=this;b<0?(y._isExpandAll=!1,y._expandedItems=[],y.updateItems()):y.callBase.apply(y,arguments)},isRowExpanded:function(b){var y=this,E=I.Z.getIndexByKey(b,y._expandedItems);return Array.isArray(b)?y.callBase.apply(y,arguments):!!(y._isExpandAll^(E>=0&&y._expandedItems[E].visible))},_getRowIndicesForExpand:function(b){var y=this.getRowIndexByKey(b);return[y,y+1]},_changeRowExpandCore:function(b){var E,y=this;if(Array.isArray(b))E=y.callBase.apply(y,arguments);else{var S=I.Z.getIndexByKey(b,y._expandedItems);if(S>=0){var O=y._expandedItems[S].visible;y._expandedItems[S].visible=!O}else y._expandedItems.push({key:b,visible:!0});y.updateItems({changeType:"update",rowIndices:y._getRowIndicesForExpand(b)}),E=(new p.BH).resolve()}return E},_processDataItem:function(b,y){var E=this,S=E.callBase.apply(E,arguments);return S.isExpanded=E.isRowExpanded(S.key),void 0===y.detailColumnIndex&&(y.detailColumnIndex=-1,(0,f.S6)(y.visibleColumns,function(O,w){if("expand"===w.command&&!(0,a.$K)(w.groupIndex))return y.detailColumnIndex=O,!1})),y.detailColumnIndex>=0&&(S.values[y.detailColumnIndex]=S.isExpanded),S},_processItems:function(b,y){var E=this,S=y.changeType,O=[];return b=E.callBase.apply(E,arguments),"loadingAll"===S?b:("refresh"===S&&(E._expandedItems=(0,C.h3)(E._expandedItems,function(w){return w.visible})),(0,f.S6)(b,function(w,T){O.push(T);var k=I.Z.getIndexByKey(T.key,E._expandedItems);"data"===T.rowType&&(T.isExpanded||k>=0)&&!T.isNewRow&&O.push({visible:T.isExpanded,rowType:"detail",key:T.key,data:T.data,values:[]})}),O)},optionChanged:function(b){var y,E;if("masterDetail"===b.name){switch(b.name="dataSource",b.fullName){case"masterDetail":var S=b.value||{},O=b.previousValue||{};y=S.enabled!==O.enabled,E=S.autoExpandAll!==O.autoExpandAll;break;case"masterDetail.template":x(this);break;case"masterDetail.enabled":y=!0;break;case"masterDetail.autoExpandAll":E=!0}(y||E)&&x(this)}this.callBase(b)}}),resizing:{fireContentReadyAction:function(){this.callBase.apply(this,arguments),this._updateParentDataGrids(this.component.$element())},_updateParentDataGrids:function(x){var b=x.closest("."+u);b.length&&(0,p.gx)(this._updateMasterDataGrid(b,x)).done(()=>{this._updateParentDataGrids(b.parent())})},_updateMasterDataGrid:function(x,b){var y=(0,c.Z)(x).data("options"),E=(0,c.Z)(x).closest("."+this.getWidgetContainerClass()).parent().data("dxDataGrid");if(y&&E)return this._updateMasterDataGridCore(E,y)},_updateMasterDataGridCore:function(x,b){var y=(0,p.BH)();if(x.getView("rowsView").isFixedColumns())this._updateFixedMasterDetailGrids(x,b.rowIndex,(0,c.Z)(b.rowElement)).done(y.resolve);else{if(!0===x.option("scrolling.useNative"))return void x.updateDimensions().done(()=>y.resolve(!0));var E=x.getScrollable();E?E?.update().done(()=>y.resolve()):y.resolve()}return y.promise()},_updateFixedMasterDetailGrids:function(x,b,y){var E=(0,p.BH)(),S=(0,c.Z)(x.getRowElement(b)),O=(0,c.Z)(x.getView("rowsView").getTableElements()),w=2===S?.length&&(0,o.Cr)(S.eq(0))!==(0,o.Cr)(S.eq(1)),T=2===O?.length&&(0,o.Cr)(O.eq(0))!==(0,o.Cr)(O.eq(1));if(w||T){var k=(0,o.dz)(y);return x.updateDimensions().done(()=>{var R=this.option("columnAutoWidth")&&!0===x.option("scrolling.useNative"),P=R&&k!==(0,o.dz)(y);R&&P?this.updateDimensions().done(()=>E.resolve(!0)):E.resolve(!0)}),E.promise()}return(0,p.BH)().resolve()},_toggleBestFitMode:function(x){if(this.callBase.apply(this,arguments),this.option("masterDetail.template")){var b=this._rowsView.getTableElement();b&&b.find(".dx-master-detail-cell").css("maxWidth",x?0:"")}}}},views:{rowsView:{_getCellTemplate:function(x){var b=this,y=x.column,E=b.getController("editing"),S=E&&E.isEditRow(x.rowIndex);return"detail"!==y.command||S?b.callBase.apply(b,arguments):b.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:b._getDefaultTemplate(y)}},_isDetailRow:function(x){return x&&x.rowType&&0===x.rowType.indexOf("detail")},_createRow:function(x){var b=this.callBase.apply(this,arguments);return x&&this._isDetailRow(x)&&(this.option("showRowLines")&&b.addClass(h),b.addClass(u),(0,a.$K)(x.visible)&&b.toggle(x.visible)),b},_renderCells:function(x,b){var y=b.row,S=this._columnsController.getVisibleColumns();y.rowType&&this._isDetailRow(y)?this._needRenderCell(0,b.columnIndices)&&this._renderCell(x,{value:null,row:y,rowIndex:y.rowIndex,column:{command:"detail"},columnIndex:0,change:b.change}).addClass(d).addClass(s).attr("colSpan",S.length):this.callBase.apply(this,arguments)}}}}}},3390:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>O});var o=l(9904),c=l(5031),I=l(5365),C=l(7674),f=l(1828),a=l(2718),p=l(8159),s=l(9009),u=l(4514),h=c.Z.inherit({_endUpdateCore:function(){},ctor:function(w){var T=this;T._updateLockCount=0,T.component=w,T._actions={},T._actionConfigs={},(0,a.S6)(this.callbackNames()||[],function(k,R){var P=T.callbackFlags(R)||{};P.unique=!0,P.syncStrategy=!0,T[this]=(0,I.Z)(P)})},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(w){var T=this.component,k=T._optionCache;return 1===arguments.length&&k?(w in k||(k[w]=T.option(w)),k[w]):T.option.apply(T,arguments)},_silentOption:function(w,T){var k=this.component,R=k._optionCache;return R&&(R[w]=T),k._setOptionWithoutOptionChange(w,T)},localize:function(w){var T=this.component._optionCache;return T?(w in T||(T[w]=s.Z.format(w)),T[w]):s.Z.format(w)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(w){w.name in this._actions&&(this.createAction(w.name,this._actionConfigs[w.name]),w.handled=!0)},getAction:function(w){return this._actions[w]},setAria:function(w,T,k){var R=k.get(0),P="role"!==w&&"id"!==w?"aria-":"";R.setAttribute?R.setAttribute(P+w,T):k.attr(P+w,T)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(w){return this.component._controllers[w]},createAction:function(w,T){if((0,f.mf)(w)){var k=this.component._createAction(w.bind(this),T);return function(R){k({event:R})}}this._actions[w]=this.component._createActionByOption(w,T),this._actionConfigs[w]=T},executeAction:function(w,T){var k=this._actions[w];return k&&k(T)},dispose:function(){var w=this;(0,a.S6)(w.callbackNames()||[],function(){w[this].empty()})},addWidgetPrefix:function(w){return"dx-"+this.component.NAME.slice(2).toLowerCase()+(w?"-"+w:"")},getWidgetContainerClass:function(){return this.addWidgetPrefix("dxDataGrid"===this.component.NAME?null:"container")},elementIsInsideGrid:function(w){return w.closest("."+this.getWidgetContainerClass()).parent().is(this.component.$element())}}),g=h,x=g.inherit({getView:function(w){return this.component._views[w]},getViews:function(){return this.component._views}}),b=h.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(w,T){this._requireRender=!0,this.component._requireResize=(0,u.Ym)()&&(this.component._requireResize||w),this._requireReady=this._requireReady||T},_renderCore:function(){},_resizeCore:function(){},_parentElement:function(){return this._$parent},ctor:function(w){this.callBase(w),this.renderCompleted=(0,I.Z)(),this.resizeCompleted=(0,I.Z)()},element:function(){return this._$element},getElementHeight:function(){var w=this.element();if(!w)return 0;var T=parseFloat(w.css("marginTop"))||0,k=parseFloat(w.css("marginBottom"))||0;return w.get(0).offsetHeight+T+k},isVisible:function(){return!0},getTemplate:function(w){return this.component._getTemplate(w)},render:function(w,T){var k=this._$element,R=this.isVisible();if((k||w)&&(this._requireReady=!1,k||(k=this._$element=(0,o.Z)("<div>").appendTo(w),this._$parent=w),k.toggleClass("dx-hidden",!R),R)){this.component._optionCache={};var P=this._renderCore(T);this.component._optionCache=void 0,P?P.done(()=>{this.renderCompleted.fire(T)}):this.renderCompleted.fire(T)}},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(w){this.element().get(0).focus({preventScroll:w})}}),y=1e6;const O={modules:[],View:b,ViewController:x,Controller:g,registerModule:function(w,T){for(var k=this.modules,R=0;R<k.length;R++)if(k[R].name===w)return;T.name=w,k.push(T),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(w){this.modulesOrder=w},unregisterModule:function(w){this.modules=(0,C.h3)(this.modules,function(T){return T.name!==w}),delete this.controllerTypes,delete this.viewTypes},processModules:function(w,T){var k=T.modules,R=T.modulesOrder,P=T.controllerTypes||{},B=T.viewTypes||{};T.controllerTypes||(R&&k.sort(function(N,V){var U=R.indexOf(N.name),K=R.indexOf(V.name);return U<0&&(U=y),K<0&&(K=y),U-K}),(0,a.S6)(k,function(){var N=this.controllers,V=this.name,U=this.views;N&&(0,a.S6)(N,function(K,Y){if(P[K])throw p.Z.Error("E1001",V,K);if(!(Y&&Y.subclassOf&&Y.subclassOf(g)))throw Y.subclassOf(g),p.Z.Error("E1002",V,K);P[K]=Y}),U&&(0,a.S6)(U,function(K,Y){if(B[K])throw p.Z.Error("E1003",V,K);if(!(Y&&Y.subclassOf&&Y.subclassOf(b)))throw p.Z.Error("E1004",V,K);B[K]=Y})}),(0,a.S6)(k,function(){var N=this.extenders;N&&(N.controllers&&(0,a.S6)(N.controllers,function(V,U){P[V]&&(P[V]=P[V].inherit(U))}),N.views&&(0,a.S6)(N.views,function(V,U){B[V]&&(B[V]=B[V].inherit(U))}))}),T.controllerTypes=P,T.viewTypes=B);var W=function(N){var V={};return(0,a.S6)(N,function(U,K){var J,j,ee,G,Y=new K(w);Y.name=U,J=w,j=U,(G=(ee=Y).publicMethods())&&(0,a.S6)(G,function(q,Z){if(!ee[Z])throw p.Z.Error("E1006",j,Z);if(J[Z])throw p.Z.Error("E1005",Z);J[Z]=function(){return ee[Z].apply(ee,arguments)}}),V[U]=Y}),V};w._controllers=W(P),w._views=W(B)},callModuleItemsMethod:function(w,T,k){k=k||[],w._controllers&&(0,a.S6)(w._controllers,function(){this[T]&&this[T].apply(this,k)}),w._views&&(0,a.S6)(w._views,function(){this[T]&&this[T].apply(this,k)})}}},237:(kn,he,l)=>{"use strict";l.d(he,{N:()=>bt});var o=l(3390),c=l(8506),I=l(4691);class C extends I.Z{_optionChanged(Wt){switch(Wt.name){case"pageIndex":var Ot=this.option("pageIndexChanged");Ot&&Ot(Wt.value);break;case"pageSize":var qt=this.option("pageSizeChanged");qt&&qt(Wt.value)}super._optionChanged(Wt)}}var f=l(9943),a=l(4817),p=l(9056),s=l(6084),u=l(3824),d=l(4570),h=l(8093);function g(_t,Wt){var Ot,qt=null!==(Ot=(0,d.Z)(Wt))&&void 0!==Ot?Ot:{};return(0,h.H)(qt[_t])}function b(_t){return g("marginLeft",_t)+g("marginRight",_t)+g("width",_t)}function y(_t){return g("minWidth",_t)}var E=l(1828),S=["contentTemplate","pagerProps"];var R={},P=_t=>_t&&(_t.defaultProps?Wt=>(0,p.vs)((0,p.Iz)(2,_t,(0,a.Z)({},Wt))):_t);let B=(()=>{class _t extends s.OS{constructor(Ot){super(Ot),this.parentRef=(0,p.Vf)(),this.pageSizesRef=(0,p.Vf)(),this.infoTextRef=(0,p.Vf)(),this.pagesRef=(0,p.Vf)(),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 s.b0(this.subscribeToResize,[this.state.infoTextVisible,this.state.isLargeDisplayMode]),new s.b0(this.effectUpdateChildProps,[this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])]}updateEffects(){var Ot,qt;null===(Ot=this._effects[0])||void 0===Ot||Ot.update([this.state.infoTextVisible,this.state.isLargeDisplayMode]),null===(qt=this._effects[1])||void 0===qt||qt.update([this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])}subscribeToResize(){var Ot=()=>{this.parentWidth>0&&this.updateAdaptivityProps()};return u.Z.add(Ot),()=>{u.Z.remove(Ot)}}effectUpdateChildProps(){this.parentWidth>0&&this.updateAdaptivityProps()}get contentAttributes(){var{className:Ot,displayMode:qt,gridCompatibility:mn,hasKnownLastPage:Ke,infoText:pt,label:an,lightModeEnabled:hn,maxPagesCount:sn,onKeyDown:Nn,pageCount:Yn,pageIndex:st,pageIndexChange:Vt,pageSize:rn,pageSizeChange:Dn,pageSizes:rt,pagesCountText:Bt,pagesNavigatorVisible:gt,rtlEnabled:$t,showInfo:Un,showNavigationButtons:ai,showPageSizes:Ci,totalCount:Ii,visible:zi}=this.props.pagerProps;return(0,a.Z)({},this.restAttributes,{pageSize:rn,pageIndex:st,pageIndexChange:Vt,pageSizeChange:Dn,gridCompatibility:mn,className:Ot,showInfo:Un,infoText:pt,lightModeEnabled:hn,displayMode:qt,maxPagesCount:sn,pageCount:Yn,pagesCountText:Bt,visible:zi,hasKnownLastPage:Ke,pagesNavigatorVisible:gt,showPageSizes:Ci,pageSizes:rt,rtlEnabled:$t,showNavigationButtons:ai,totalCount:Ii,onKeyDown:Nn,label:an})}get parentWidth(){return this.parentRef.current?b(this.parentRef.current):0}updateAdaptivityProps(){var Ot=function k(_t){var{info:Wt,pageSizes:Ot,pages:qt,parent:mn}=_t,Ke=function x(_t){var Wt=g("paddingLeft",_t)+g("paddingRight",_t);return g("width",_t)-Wt}(mn),pt=b(Ot),an=b(Wt),hn=b(qt);return{parent:Ke,pageSizes:pt,info:an+g("marginLeft",Wt)+g("marginRight",Wt),pages:hn}}({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 qt=!(0,E.$K)(this.elementsWidth);qt&&(this.elementsWidth={}),(qt||this.state.isLargeDisplayMode)&&(this.elementsWidth.pageSizes=Ot.pageSizes,this.elementsWidth.pages=Ot.pages),(qt||this.state.infoTextVisible)&&(this.elementsWidth.info=Ot.info),this.actualIsLargeDisplayMode=function w(_t){var{pageSizes:Wt,pages:Ot,parent:qt}=_t;return qt-(Wt+Ot)>0}((0,a.Z)({parent:Ot.parent},{pageSizes:this.elementsWidth.pageSizes,pages:this.elementsWidth.pages})),this.actualInfoTextVisible=function T(_t){var{info:Wt,pageSizes:Ot,pages:qt,parent:mn}=_t;return mn-(Ot+qt+Wt)>0}((0,a.Z)({},Ot,{info:this.elementsWidth.info})),this.setState(mn=>({infoTextVisible:this.actualInfoTextVisible})),this.setState(mn=>({isLargeDisplayMode:this.actualIsLargeDisplayMode}))}}get restAttributes(){return(0,f.Z)(this.props,S)}render(){var Ot=this.props;return(_t=>{var{contentAttributes:Wt,infoTextRef:Ot,infoTextVisible:qt,isLargeDisplayMode:mn,pageSizesRef:Ke,pagesRef:pt,parentRef:an,props:{contentTemplate:hn}}=_t;return hn((0,a.Z)({rootElementRef:an,pageSizesRef:Ke,infoTextRef:Ot,pagesRef:pt,infoTextVisible:qt,isLargeDisplayMode:mn},Wt))})({props:(0,a.Z)({},Ot,{contentTemplate:P(Ot.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=R,_t})();var W=l(9009),N={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 W.Z.format("dxPager-ariaLabel")}},V=Object.create(Object.prototype,(0,a.Z)(Object.getOwnPropertyDescriptors(N),Object.getOwnPropertyDescriptors({defaultPageSize:5,pageSizeChange:()=>{},defaultPageIndex:1,pageIndexChange:()=>{}}))),U=Object.create(Object.prototype,(0,a.Z)(Object.getOwnPropertyDescriptors(N),Object.getOwnPropertyDescriptors({pageSize:5,pageIndex:1}))),K=l(9589),Y=["infoText","pageCount","pageIndex","rootElementRef","totalCount"],J="dx-info",G={get pageIndex(){return U.pageIndex},get pageCount(){return U.pageCount},get totalCount(){return U.totalCount}};let q=(()=>{class _t extends s.Ul{constructor(Ot){super(Ot),this.state={}}get infoText(){var Ot;return(null!==(Ot=this.props.infoText)&&void 0!==Ot?Ot:"")||W.Z.getFormatter("dxPager-infoText")()}get text(){var{pageCount:Ot,pageIndex:qt,totalCount:mn}=this.props;return(0,K.WU)(this.infoText,(qt+1).toString(),Ot.toString(),mn.toString())}get restAttributes(){return(0,f.Z)(this.props,Y)}render(){return(_t=>{var{props:{rootElementRef:Wt},text:Ot}=_t;return(0,p.Wm)(1,"div",J,Ot,0,null,null,Wt)})({props:(0,a.Z)({},this.props),infoText:this.infoText,text:this.text,restAttributes:this.restAttributes})}}return _t.defaultProps=G,_t})();var Z=l(5955),X=(0,s.kr)(void 0),M=["children","className","label","onClick","selected","tabIndex"],ge={className:"",label:"",tabIndex:0,selected:!1};let De=(()=>{class _t extends s.OS{constructor(Ot){super(Ot),this.state={},this.widgetRef=(0,p.Vf)(),this.keyboardEffect=this.keyboardEffect.bind(this),this.subscribeToClick=this.subscribeToClick.bind(this)}get keyboardContext(){return this.context[X.id]?this.context[X.id]:X.defaultValue}createEffects(){return[new s.b0(this.keyboardEffect,[this.keyboardContext,this.props.onClick]),new s.b0(this.subscribeToClick,[this.props.onClick])]}updateEffects(){var Ot,qt;null===(Ot=this._effects[0])||void 0===Ot||Ot.update([this.keyboardContext,this.props.onClick]),null===(qt=this._effects[1])||void 0===qt||qt.update([this.props.onClick])}keyboardEffect(){return this.keyboardContext.registerKeyboardAction(this.widgetRef.current,this.props.onClick)}subscribeToClick(){return(0,Z.OZ)(this.widgetRef.current,this.props.onClick)}get restAttributes(){return(0,f.Z)(this.props,M)}render(){return(_t=>{var{props:{children:Wt,className:Ot,label:qt,selected:mn,tabIndex:Ke},widgetRef:pt}=_t;return(0,p.Wm)(1,"div",Ot,Wt,0,{tabIndex:Ke,role:"button","aria-label":qt,"aria-current":mn?"page":void 0},null,pt)})({props:(0,a.Z)({},this.props),widgetRef:this.widgetRef,keyboardContext:this.keyboardContext,restAttributes:this.restAttributes})}}return _t.defaultProps=ge,_t})();var ie="dx-selection",de="dx-page-size",pe="".concat(de," ").concat(ie),ae=l(3667),te=["className","index","onClick","selected"],oe={index:0,selected:!1,className:"dx-page"};let ye=(()=>{class _t extends s.Ul{constructor(Ot){super(Ot),this.state={}}get label(){return(0,K.WU)(W.Z.getFormatter("dxPager-page"),this.value)}get value(){return this.props.index+1}get className(){var{selected:Ot}=this.props;return(0,ae.G)({["".concat(this.props.className)]:!!this.props.className,[ie]:!!Ot})}get restAttributes(){return(0,f.Z)(this.props,te)}render(){return(_t=>{var{className:Wt,label:Ot,props:{onClick:qt,selected:mn},value:Ke}=_t;return(0,p.Iz)(2,De,{className:Wt,label:Ot,onClick:qt,selected:mn,children:Ke})})({props:(0,a.Z)({},this.props),label:this.label,value:this.value,className:this.className,restAttributes:this.restAttributes})}}return _t.defaultProps=oe,_t})();var Pe=l(903),Ne=["pageIndexes"],ft=["maxPagesCount","pageCount","pageIndex","pageIndexChange"];function nn(_t,Wt,Ot){return 1===_t?"high":_t+Wt===Ot-1?"low":"both"}function ke(_t,Wt,Ot){var qt=[],mn=[];switch(Ot){case"none":qt=[..._t];break;case"both":qt=[0,"low",..._t,"high",Wt-1],mn=_t.slice(1,-1);break;case"high":qt=[0,..._t,"high",Wt-1],mn=_t.slice(0,-1);break;case"low":qt=[0,"low",..._t,Wt-1],mn=_t.slice(1)}return{slidingWindowIndexes:_t,indexesForReuse:mn,pageIndexes:qt}}function $e(_t,Wt,Ot,qt){for(var mn=[],Ke=0;Ke<Wt;Ke+=1)mn.push(Ke+_t);return ke(mn,Ot,qt)}var me={get pageIndex(){return U.pageIndex},get maxPagesCount(){return U.maxPagesCount},get pageCount(){return U.pageCount}};let xe=(()=>{class _t extends s.Ul{constructor(Ot){super(Ot),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[Pe.E.id]?this.context[Pe.E.id]:Pe.E.defaultValue}get slidingWindowState(){return this.slidingWindowStateHolder||{indexesForReuse:[],slidingWindowIndexes:[]}}canReuseSlidingWindow(Ot,qt){var{indexesForReuse:mn}=this.slidingWindowState,Ke=mn.slice(-1)[0]<Ot-1,pt=mn.includes(qt);return Ke&&pt}generatePageIndexes(){var mn,{pageCount:Ot,pageIndex:qt}=this.props,{slidingWindowIndexes:Ke}=this.slidingWindowState,hn=$e(mn=qt===Ke[0]?qt-1:qt===Ke[Ke.length-1]?qt+2-4:qt<4?1:qt>=Ot-4?Ot-4-1:qt-1,4,Ot,nn(mn,4,Ot)),{pageIndexes:sn}=hn,Nn=(0,f.Z)(hn,Ne);return this.slidingWindowStateHolder=Nn,sn}isSlidingWindowMode(){var{maxPagesCount:Ot,pageCount:qt}=this.props;return qt<=4||qt<=Ot}onPageClick(Ot){this.props.pageIndexChange(Ot)}get pageIndexes(){var{pageCount:Ot}=this.props;if(this.isSlidingWindowMode())return $e(0,Ot,Ot,"none").pageIndexes;if(this.canReuseSlidingWindow(Ot,this.props.pageIndex)){var{slidingWindowIndexes:qt}=this.slidingWindowState;return ke(qt,Ot,nn(qt[0],4,Ot)).pageIndexes}return this.generatePageIndexes()}get pages(){var Ot,{pageIndex:qt}=this.props,mn=pt=>{var an="low"===pt||"high"===pt?null:{index:pt,onClick:()=>this.onPageClick(pt),selected:qt===pt};return{key:pt.toString(),pageProps:an}};return(null!==(Ot=this.config)&&void 0!==Ot&&Ot.rtlEnabled?[...this.pageIndexes].reverse():this.pageIndexes).map(pt=>mn(pt))}get restAttributes(){return(0,f.Z)(this.props,ft)}render(){return(_t=>{var{pages:Wt}=_t,Ot=Wt.map(qt=>{var{key:mn,pageProps:Ke}=qt;return Ke?(0,p.Iz)(2,ye,{index:Ke.index,selected:Ke.selected,onClick:Ke.onClick},mn):(0,p.Wm)(1,"div","dx-separator",". . .",16,null,mn)});return(0,p.xJ)(Ot,0)})({props:(0,a.Z)({},this.props),config:this.config,pageIndexes:this.pageIndexes,pages:this.pages,restAttributes:this.restAttributes})}}return _t.defaultProps=me,_t})();var Te=l(1946),Ye=l(4452),St=l(4614),Ct=l(2941),Rt={hoverStateEnabled:!0,activeStateEnabled:!0,get focusStateEnabled(){return"desktop"===Ct.Z.real().deviceType&&!Ct.Z.isSimulator()}},fn=l(2722),ct={label:"",get labelMode(){return(0,fn.x2)((0,fn.Vk)())?"floating":"static"}},He=["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"],Ht=Object.create(Object.prototype,(0,a.Z)(Object.getOwnPropertyDescriptors(St.nY),Object.getOwnPropertyDescriptors({defaultValue:0,isReactComponentWrapper:!0}))),dt={get defaultValue(){return Ht.defaultValue},get readOnly(){return Ht.readOnly},get name(){return Ht.name},get validationError(){return Ht.validationError},get validationErrors(){return Ht.validationErrors},get validationMessageMode(){return Ht.validationMessageMode},get validationMessagePosition(){return Ht.validationMessagePosition},get validationStatus(){return Ht.validationStatus},get isValid(){return Ht.isValid},get className(){return Ht.className},get activeStateEnabled(){return Rt.activeStateEnabled},get disabled(){return Ht.disabled},get focusStateEnabled(){return Rt.focusStateEnabled},get hoverStateEnabled(){return Rt.hoverStateEnabled},get tabIndex(){return Ht.tabIndex},get visible(){return Ht.visible},get label(){return ct.label},get labelMode(){return ct.labelMode},isReactComponentWrapper:!0};let ht=(()=>{class _t extends s.Ul{constructor(Ot){super(Ot),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return(0,a.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){var Ot=(0,a.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,f.Z)(Ot,He)}render(){return(_t=>{var{componentProps:Wt,restAttributes:Ot}=_t;return(0,p.vs)((0,p.Iz)(2,Ye.Ag,(0,a.Z)({componentType:Te.Z,componentProps:Wt,templateNames:[]},Ot)))})({props:(0,a.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return _t.defaultProps=dt,_t})();function Ft(_t,Wt){return _t+10*Math.max(...Wt).toString().length}var bn=["pageCount","pageIndex","pageIndexChange","pagesCountText"],_n="".concat(J,"  dx-info-text"),xn="dx-page-index",Vn={get pageIndex(){return U.pageIndex},get pageCount(){return U.pageCount}};let Oi=(()=>{class _t extends s.OS{constructor(Ot){super(Ot),this.pageIndexRef=(0,p.Vf)(),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 s.b0(this.updateWidth,[this.state.minWidth])]}updateEffects(){var Ot;null===(Ot=this._effects[0])||void 0===Ot||Ot.update([this.state.minWidth])}updateWidth(){var Ot,qt=null===(Ot=this.pageIndexRef.current)||void 0===Ot?void 0:Ot.querySelector(".".concat(xn));this.setState(mn=>({minWidth:qt&&y(qt)||mn.minWidth}))}get value(){return this.props.pageIndex+1}get width(){var{pageCount:Ot}=this.props;return Ft(this.state.minWidth,[Ot])}get pagesCountText(){var Ot;return(null!==(Ot=this.props.pagesCountText)&&void 0!==Ot?Ot:"")||W.Z.getFormatter("dxPager-pagesCountText")()}selectLastPageIndex(){this.props.pageIndexChange(this.props.pageCount-1)}valueChange(Ot){this.props.pageIndexChange(Ot-1)}get restAttributes(){return(0,f.Z)(this.props,bn)}render(){return(_t=>{var{pageIndexRef:Wt,pagesCountText:Ot,props:{pageCount:qt},selectLastPageIndex:mn,value:Ke,valueChange:pt,width:an}=_t;return(0,p.Wm)(1,"div","dx-light-pages",[(0,p.Iz)(2,ht,{className:xn,min:1,max:qt,width:an,value:Ke,valueChange:pt}),(0,p.Wm)(1,"span",_n,Ot,0),(0,p.Iz)(2,ye,{className:"dx-pages-count",selected:!1,index:qt-1,onClick:mn})],4,null,null,Wt)})({props:(0,a.Z)({},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=Vn,_t})();var Hn=["hasKnownLastPage","isLargeDisplayMode","maxPagesCount","pageCount","pageIndex","pageIndexChange","pagesCountText","showNavigationButtons","totalCount"],Sn="dx-navigate-button",An="dx-prev-button",ti="dx-next-button",Wn="dx-button-disable",ei={nextEnabledClass:"".concat(Sn," ").concat(ti),prevEnabledClass:"".concat(Sn," ").concat(An),nextDisabledClass:"".concat(Wn," ").concat(Sn," ").concat(ti),prevDisabledClass:"".concat(Wn," ").concat(Sn," ").concat(An)},ni={next:"prev",prev:"next"},Qi={get pageIndex(){return U.pageIndex},get maxPagesCount(){return U.maxPagesCount},get pageCount(){return U.pageCount},get hasKnownLastPage(){return U.hasKnownLastPage},get showNavigationButtons(){return U.showNavigationButtons},get totalCount(){return U.totalCount},get isLargeDisplayMode(){return true}};let _r=(()=>{class _t extends s.Ul{constructor(Ot){super(Ot),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[Pe.E.id]?this.context[Pe.E.id]:Pe.E.defaultValue}pageIndexChange(Ot){this.canNavigateToPage(Ot)&&this.props.pageIndexChange(Ot)}getButtonProps(Ot){var qt,mn=null!==(qt=this.config)&&void 0!==qt&&qt.rtlEnabled?ni[Ot]:Ot,Ke=this.canNavigateTo(mn);return{className:ei["".concat(Ot).concat(Ke?"Enabled":"Disabled","Class")],tabIndex:Ke?0:-1,navigate:()=>this.navigateToPage(mn)}}canNavigateToPage(Ot){return this.props.hasKnownLastPage?Ot>=0&&Ot<=this.props.pageCount-1:Ot>=0}getNextPageIndex(Ot){return this.props.pageIndex+function Hi(_t){return"next"===_t?1:-1}(Ot)}canNavigateTo(Ot){return this.canNavigateToPage(this.getNextPageIndex(Ot))}navigateToPage(Ot){this.pageIndexChange(this.getNextPageIndex(Ot))}get renderPrevButton(){var{isLargeDisplayMode:Ot,showNavigationButtons:qt}=this.props;return!Ot||qt}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(0,f.Z)(this.props,Hn)}componentWillUpdate(Ot,qt,mn){(this.context[Pe.E.id]!==mn[Pe.E.id]||this.props.hasKnownLastPage!==Ot.hasKnownLastPage||this.props.pageCount!==Ot.pageCount||this.props.pageIndex!==Ot.pageIndex||this.props.pageIndexChange!==Ot.pageIndexChange)&&(this.__getterCache.prevButtonProps=void 0),(this.context[Pe.E.id]!==mn[Pe.E.id]||this.props.hasKnownLastPage!==Ot.hasKnownLastPage||this.props.pageCount!==Ot.pageCount||this.props.pageIndex!==Ot.pageIndex||this.props.pageIndexChange!==Ot.pageIndexChange)&&(this.__getterCache.nextButtonProps=void 0)}render(){return(_t=>{var{nextButtonProps:Wt,pageIndexChange:Ot,prevButtonProps:qt,props:{isLargeDisplayMode:mn,maxPagesCount:Ke,pageCount:pt,pageIndex:an,pagesCountText:hn},renderNextButton:sn,renderPrevButton:Nn}=_t;return(0,p.xJ)([Nn&&(0,p.Iz)(2,De,{label:W.Z.getFormatter("dxPager-prevPage")(),className:qt.className,tabIndex:qt.tabIndex,onClick:qt.navigate}),mn&&(0,p.Iz)(2,xe,{maxPagesCount:Ke,pageCount:pt,pageIndex:an,pageIndexChange:Ot}),!mn&&(0,p.Iz)(2,Oi,{pageCount:pt,pageIndex:an,pageIndexChange:Ot,pagesCountText:hn}),sn&&(0,p.Iz)(2,De,{label:W.Z.getFormatter("dxPager-nextPage")(),className:Wt.className,tabIndex:Wt.tabIndex,onClick:Wt.navigate})],0)})({props:(0,a.Z)({},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=Qi,_t})();var yn=l(5079),Rn=["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"],Si=Object.create(Object.prototype,(0,a.Z)(Object.getOwnPropertyDescriptors(St.nY),Object.getOwnPropertyDescriptors({placeholder:"",hoverStateEnabled:!0,searchEnabled:!1,defaultValue:null,isReactComponentWrapper:!0}))),ji={get placeholder(){return Si.placeholder},get hoverStateEnabled(){return Rt.hoverStateEnabled},get searchEnabled(){return Si.searchEnabled},get defaultValue(){return Si.defaultValue},get readOnly(){return Si.readOnly},get name(){return Si.name},get validationError(){return Si.validationError},get validationErrors(){return Si.validationErrors},get validationMessageMode(){return Si.validationMessageMode},get validationMessagePosition(){return Si.validationMessagePosition},get validationStatus(){return Si.validationStatus},get isValid(){return Si.isValid},get className(){return Si.className},get activeStateEnabled(){return Rt.activeStateEnabled},get disabled(){return Si.disabled},get focusStateEnabled(){return Rt.focusStateEnabled},get tabIndex(){return Si.tabIndex},get visible(){return Si.visible},get label(){return ct.label},get labelMode(){return ct.labelMode},isReactComponentWrapper:!0};let lr=(()=>{class _t extends s.Ul{constructor(Ot){super(Ot),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return(0,a.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){var Ot=(0,a.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,f.Z)(Ot,Rn)}render(){return(_t=>{var{componentProps:Wt,restAttributes:Ot}=_t;return(0,p.vs)((0,p.Iz)(2,Ye.Ag,(0,a.Z)({componentType:yn.Z,componentProps:Wt,templateNames:["dropDownButtonTemplate","groupTemplate","itemTemplate"]},Ot)))})({props:(0,a.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return _t.defaultProps=ji,_t})();var Dr=["pageSize","pageSizeChange","pageSizes","parentRef"],Gr={get pageSize(){return U.pageSize}};let xr=(()=>{class _t extends s.OS{constructor(Ot){super(Ot),this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this)}createEffects(){return[new s.b0(this.updateWidth,[this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes])]}updateEffects(){var Ot;null===(Ot=this._effects[0])||void 0===Ot||Ot.update([this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes])}updateWidth(){this.setState(Ot=>({minWidth:y(this.props.parentRef.current)||Ot.minWidth}))}get width(){return Ft(this.state.minWidth,this.props.pageSizes.map(Ot=>Ot.value))}get restAttributes(){return(0,f.Z)(this.props,Dr)}render(){return(_t=>{var{props:{pageSize:Wt,pageSizeChange:Ot,pageSizes:qt},width:mn}=_t;return(0,p.Iz)(2,lr,{displayExpr:"text",valueExpr:"value",dataSource:qt,value:Wt,valueChange:Ot,width:mn})})({props:(0,a.Z)({},this.props),width:this.width,restAttributes:this.restAttributes})}}return _t.defaultProps=Gr,_t})();var Vr=["pageSize","pageSizeChange","pageSizes"],so={get pageSize(){return U.pageSize}};let Er=(()=>{class _t extends s.Ul{constructor(Ot){super(Ot),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:Ot,pageSizes:qt}=this.props;return qt.map((mn,Ke)=>{var{text:pt,value:an}=mn;return{className:(0,ae.G)({[an===Ot?pe:de]:!0,"dx-first-child":0===Ke}),click:this.onPageSizeChange(an),label:(0,K.WU)(W.Z.getFormatter("dxPager-pageSize"),an||W.Z.getFormatter("dxPager-pageSizesAllText")),text:pt}})})()}onPageSizeChange(Ot){return()=>(this.props.pageSizeChange(Ot),this.props.pageSize)}get restAttributes(){return(0,f.Z)(this.props,Vr)}componentWillUpdate(Ot,qt,mn){(this.props.pageSize!==Ot.pageSize||this.props.pageSizes!==Ot.pageSizes||this.props.pageSizeChange!==Ot.pageSizeChange)&&(this.__getterCache.pageSizesText=void 0)}render(){return(_t=>{var{pageSizesText:Wt}=_t;return(0,p.xJ)(Wt.map(Ot=>{var{className:qt,click:mn,label:Ke,text:pt}=Ot;return(0,p.Iz)(2,De,{className:qt,label:Ke,onClick:mn,children:pt},pt)}),0)})({props:(0,a.Z)({},this.props),pageSizesText:this.pageSizesText,restAttributes:this.restAttributes})}}return _t.defaultProps=so,_t})();var oo=["isLargeDisplayMode","pageSize","pageSizeChange","pageSizes","rootElementRef"],to={get pageSize(){return U.pageSize},get pageSizes(){return U.pageSizes},get isLargeDisplayMode(){return true}};let uo=(()=>{class _t extends s.OS{constructor(Ot){super(Ot),this.state={},this.htmlRef=(0,p.Vf)(),this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this)}createEffects(){return[new s.b0(this.setRootElementRef,[])]}setRootElementRef(){var{rootElementRef:Ot}=this.props;Ot&&(Ot.current=this.htmlRef.current)}get normalizedPageSizes(){return void 0!==this.__getterCache.normalizedPageSizes?this.__getterCache.normalizedPageSizes:this.__getterCache.normalizedPageSizes=(()=>{var{pageSizes:Ot}=this.props;return Ot.map(qt=>"all"===qt||0===qt?{text:W.Z.getFormatter("dxPager-pageSizesAllText")(),value:0}:{text:String(qt),value:qt})})()}get restAttributes(){return(0,f.Z)(this.props,oo)}componentWillUpdate(Ot,qt,mn){super.componentWillUpdate(),this.props.pageSizes!==Ot.pageSizes&&(this.__getterCache.normalizedPageSizes=void 0)}render(){return(_t=>{var{htmlRef:Wt,normalizedPageSizes:Ot,props:{isLargeDisplayMode:qt,pageSize:mn,pageSizeChange:Ke}}=_t;return(0,p.Wm)(1,"div","dx-page-sizes",[qt&&(0,p.Iz)(2,Er,{pageSizes:Ot,pageSize:mn,pageSizeChange:Ke}),!qt&&(0,p.Iz)(2,xr,{parentRef:Wt,pageSizes:Ot,pageSize:mn,pageSizeChange:Ke})],0,null,null,Wt)})({props:(0,a.Z)({},this.props),htmlRef:this.htmlRef,normalizedPageSizes:this.normalizedPageSizes,restAttributes:this.restAttributes})}}return _t.defaultProps=to,_t})();var po=l(2735),At=l(2559),tn=["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"],_i=Object.create(Object.prototype,(0,a.Z)(Object.getOwnPropertyDescriptors(U),Object.getOwnPropertyDescriptors({infoTextVisible:!0,isLargeDisplayMode:!0})));let mi=(()=>{class _t extends s.OS{constructor(Ot){super(Ot),this.state={},this.widgetRootElementRef=(0,p.Vf)(),this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this),this.createFakeInstance=this.createFakeInstance.bind(this)}createEffects(){return[new s.b0(this.setRootElementRef,[])]}getChildContext(){return(0,a.Z)({},this.context,{[X.id]:this.keyboardAction||X.defaultValue})}setRootElementRef(){var{rootElementRef:Ot}=this.props;Ot&&(Ot.current=this.widgetRootElementRef.current)}createFakeInstance(){return{option:()=>!1,element:()=>this.widgetRootElementRef.current,_createActionByOption:()=>Ot=>{var qt,mn;null===(qt=(mn=this.props).onKeyDown)||void 0===qt||qt.call(mn,Ot)}}}get keyboardAction(){return void 0!==this.__getterCache.keyboardAction?this.__getterCache.keyboardAction:this.__getterCache.keyboardAction=(()=>({registerKeyboardAction:(Ot,qt)=>{var mn=this.createFakeInstance();return(0,At.Y4)("pager",mn,Ot,void 0,qt)}}))()}get infoVisible(){var{infoTextVisible:Ot,showInfo:qt}=this.props;return qt&&Ot}get pageIndexSelectorVisible(){return 0!==this.props.pageSize}get normalizedDisplayMode(){var{displayMode:Ot,lightModeEnabled:qt}=this.props;return"adaptive"===Ot&&void 0!==qt?qt?"compact":"full":Ot}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 Ot=this.normalizedDisplayMode;return"adaptive"===Ot?this.props.isLargeDisplayMode:"full"===Ot}get classes(){var Ot={["".concat(this.props.className)]:!!this.props.className,"dx-pager":!0,"dx-light-mode":!this.isLargeDisplayMode};return(0,ae.G)(Ot)}get aria(){return{role:"navigation",label:this.props.label}}get restAttributes(){return(0,f.Z)(this.props,tn)}componentWillUpdate(Ot,qt,mn){super.componentWillUpdate(),this.props.onKeyDown!==Ot.onKeyDown&&(this.__getterCache.keyboardAction=void 0)}render(){return(_t=>{var{aria:Wt,classes:Ot,infoVisible:qt,isLargeDisplayMode:mn,pageIndexSelectorVisible:Ke,pagesContainerVisibility:pt,pagesContainerVisible:an,props:{hasKnownLastPage:hn,infoText:sn,infoTextRef:Nn,maxPagesCount:Yn,pageCount:st,pageIndex:Vt,pageIndexChange:rn,pageSize:Dn,pageSizeChange:rt,pageSizes:Bt,pageSizesRef:gt,pagesCountText:$t,pagesRef:Un,rtlEnabled:ai,showNavigationButtons:Ci,showPageSizes:Ii,totalCount:zi,visible:Ki},restAttributes:Xi,widgetRootElementRef:wr}=_t;return(0,p.vs)((0,p.Iz)(2,po.$L,(0,a.Z)({rootElementRef:wr,rtlEnabled:ai,classes:Ot,visible:Ki,aria:Wt},Xi,{children:[Ii&&(0,p.Iz)(2,uo,{rootElementRef:gt,isLargeDisplayMode:mn,pageSize:Dn,pageSizeChange:rt,pageSizes:Bt}),an&&(0,p.Wm)(1,"div","dx-pages",[qt&&(0,p.Iz)(2,q,{rootElementRef:Nn,infoText:sn,pageCount:st,pageIndex:Vt,totalCount:zi}),Ke&&(0,p.Wm)(1,"div","dx-page-indexes",(0,p.Iz)(2,_r,{hasKnownLastPage:hn,isLargeDisplayMode:mn,maxPagesCount:Yn,pageCount:st,pageIndex:Vt,pageIndexChange:rn,pagesCountText:$t,showNavigationButtons:Ci,totalCount:zi}),2,null,null,Un)],0,{style:(0,s.jk)({visibility:pt})})]})))})({props:(0,a.Z)({},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=_i,_t})();var dn=["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 Zn=(()=>{class _t extends s.DZ{constructor(Ot){super(Ot),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[(0,s.gt)()]}pageIndexChange(Ot){var qt,mn;this.props.gridCompatibility?(this.setState(Ke=>({pageIndex:qt=Ot+1})),this.props.pageIndexChange(qt)):(this.setState(Ke=>({pageIndex:mn=Ot})),this.props.pageIndexChange(mn))}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(Ot){var qt;this.setState(mn=>({pageSize:qt=Ot})),this.props.pageSizeChange(qt)}get className(){return this.props.gridCompatibility?(0,ae.G)({"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=(()=>(0,a.Z)({},(0,a.Z)({},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:Ot=>this.pageIndexChange(Ot),pageSizeChange:Ot=>this.pageSizeChange(Ot)}))()}get restAttributes(){var Ot=(0,a.Z)({},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});return(0,f.Z)(Ot,dn)}componentWillUpdate(Ot,qt,mn){super.componentWillUpdate(),(this.props!==Ot||this.props.gridCompatibility!==Ot.gridCompatibility||this.props.className!==Ot.className||this.state.pageIndex!==qt.pageIndex||this.props.pageIndex!==Ot.pageIndex||this.props.pageIndexChange!==Ot.pageIndexChange||this.props.pageSizeChange!==Ot.pageSizeChange)&&(this.__getterCache.pagerProps=void 0)}render(){return(_t=>{var{pagerProps:Wt,restAttributes:Ot}=_t;return(0,p.vs)((0,p.Iz)(2,B,(0,a.Z)({contentTemplate:mi,pagerProps:Wt},Ot)))})({props:(0,a.Z)({},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=V,_t})();class gi extends C{getProps(){var Wt=super.getProps();return Wt.onKeyDown=this._wrapKeyDownHandler(Wt.onKeyDown),Wt}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 Zn}}(0,c.Z)("dxPager",gi);const Ri=gi;var or=l(4514),vn=function(_t){return 1+(parseInt(_t.pageIndex())||0)},bt={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto",label:W.Z.format("dxPager-ariaLabel")}}},views:{pagerView:o.Z.View.inherit({init:function(){var _t=this.getController("data");_t.changed.add(Wt=>{if(Wt&&Wt.repaintChangesOnly){var Ot=this._pager;Ot?Ot.option({pageIndex:vn(_t),pageSize:_t.pageSize(),pageCount:_t.pageCount(),totalCount:_t.totalCount(),hasKnownLastPage:_t.hasKnownLastPage()}):this.render()}else(!Wt||"update"!==Wt.changeType&&"updateSelection"!==Wt.changeType&&"updateFocusedRow"!==Wt.changeType)&&(this._pager=null,this.render())})},_renderCore:function(){var _t=this.element().addClass(this.addWidgetPrefix("pager")),Wt=this.option("pager")||{},Ot=this.getController("data"),qt=this.getController("keyboardNavigation"),mn={maxPagesCount:10,pageIndex:vn(Ot),pageCount:Ot.pageCount(),pageSize:Ot.pageSize(),showPageSizes:Wt.showPageSizeSelector,showInfo:Wt.showInfo,displayMode:Wt.displayMode,pagesNavigatorVisible:Wt.visible,showNavigationButtons:Wt.showNavigationButtons,label:Wt.label,pageSizes:this.getPageSizes(),totalCount:Ot.totalCount(),hasKnownLastPage:Ot.hasKnownLastPage(),pageIndexChanged:function(Ke){Ot.pageIndex()!==Ke-1&&Ot.pageIndex(Ke-1)},pageSizeChanged:function(Ke){Ot.pageSize(Ke)},onKeyDown:Ke=>qt&&qt.executeAction("onKeyDown",Ke),useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};(0,E.$K)(Wt.infoText)&&(mn.infoText=Wt.infoText),this._pager?this._pager.repaint():(0,or.Ym)()?this._pager=this._createComponent(_t,Ri,mn):_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"),Wt=this.option("pager"),Ot=Wt&&Wt.allowedPageSizes,qt=_t.pageSize();return(!(0,E.$K)(this._pageSizes)||!this._pageSizes.includes(qt))&&(this._pageSizes=[],Wt&&(Array.isArray(Ot)?this._pageSizes=Ot:Ot&&qt>1&&(this._pageSizes=[Math.floor(qt/2),qt,2*qt]))),this._pageSizes},isVisible:function(){var _t=this.getController("data"),Wt=this.option("pager"),Ot=Wt&&Wt.visible,qt=this.option("scrolling");return"auto"===Ot&&(Ot=(!qt||"virtual"!==qt.mode&&"infinite"!==qt.mode)&&(_t.pageCount()>1||_t.isLoaded()&&!_t.hasKnownLastPage())),Ot},getHeight:function(){return this.getElementHeight()},optionChanged:function(_t){var Wt=_t.name,Ot="pager"===Wt,qt="paging"===Wt,mn="dataSource"===Wt,Ke="scrolling"===Wt,pt=this.getController("data");if(Ot||qt||Ke||mn){if(_t.handled=!0,pt.skipProcessingPagingChange(_t.fullName))return;(Ot||qt)&&(this._pageSizes=null),mn||(this._pager=null,this._invalidate(),(0,or.Ym)()&&Ot&&this.component&&this.component.resize())}},dispose:function(){this._pager=null}})}}},8702:(kn,he,l)=>{"use strict";l.d(he,{d:()=>x});var o=l(1805),c=l(9904),I=l(5873),C=l(1414),f=l(2879),a=l(7674),p="dx-command-drag",h="dx-sortable-without-handle",x={defaultOptions:function(){return{rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}},extenders:{views:{rowsView:{init:function(){this.callBase.apply(this,arguments),this._updateHandleColumn()},_allowReordering:function(){var b=this.option("rowDragging");return!(!b||!(b.allowReordering||b.allowDropInsideItem||b.group))},_updateHandleColumn:function(){var b=this.option("rowDragging"),y=this._allowReordering(),E=this._columnsController,S=y&&b.showDragIcons;E&&E.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",cssClass:p,width:"auto",cellTemplate:this._getHandleTemplate(),visible:S}),E.columnOption("type:drag","visible",S)},_renderContent:function(){var b=this.option("rowDragging"),y=this._allowReordering(),E=this.callBase.apply(this,arguments),S=this._isFixedTableRendering,O="_sortable",w="_sortableFixed",T=S?w:O,k=S?O:w,R=W=>{var N;null===(N=this[w])||void 0===N||N.$element().css("pointerEvents",W?"auto":"")},P=".dx-row:not(.dx-freespace-row):not(.dx-virtual-row):not(.dx-header-row):not(.dx-footer-row)",B=this.option("dataRowTemplate")?"> table > tbody".concat(P):"> table > tbody > ".concat(P);return(y||this[T])&&E.length&&(this[T]=this._createComponent(E,C.Z,(0,I.l)({component:this.component,contentTemplate:null,filter:B,cursorOffset:W=>{var N=W.event,V=(0,c.Z)(this.element()).offset();return{x:N.pageX-V.left}},onDraggableElementShown:W=>{if(!b.dragTemplate){var V=(0,c.Z)(W.dragElement).children(".dx-widget").data(this.component.NAME);this._synchronizeScrollLeftPosition(V)}},dragTemplate:this._getDraggableRowTemplate(),handle:b.showDragIcons&&".".concat(p),dropFeedbackMode:"indicate"},b,{onDragStart:W=>{var N,V;null===(N=this.getController("keyboardNavigation"))||void 0===N||N._resetFocusedCell();var U=W.component.getVisibleRows()[W.fromIndex];W.itemData=U&&U.data,W.cancel=!y||!(U&&"data"===U.rowType),null===(V=b.onDragStart)||void 0===V||V.call(b,W)},onDragEnter:()=>{R(!0)},onDragLeave:()=>{R(!1)},onDragEnd:W=>{var N;R(!1),null===(N=b.onDragEnd)||void 0===N||N.call(b,W)},onAdd:W=>{var N;R(!1),null===(N=b.onAdd)||void 0===N||N.call(b,W)},dropFeedbackMode:b.dropFeedbackMode,onOptionChanged:W=>{this[w]&&("fromIndex"===W.name||"toIndex"===W.name)&&this[k].option(W.name,W.value)}})),E.toggleClass("dx-scrollable-container",S),E.toggleClass(h,y&&!b.showDragIcons)),E},_renderCore(b){this.callBase.apply(this,arguments),b&&"update"===b.changeType&&b.repaintChangesOnly&&f.Z.isVirtualRowRendering(this)&&(0,a.Su)(()=>{this._updateSortable()})},_updateSortable(){var b=this._dataController.getRowIndexOffset();[this._sortable,this._sortableFixed].forEach(y=>{y?.option("offset",b),y?.update()})},_resizeCore:function(){this.callBase.apply(this,arguments),this._updateSortable()},_getDraggableGridOptions:function(b){var y=this.option(),E=this.getColumns(),S=(0,c.Z)(this.getRowElement(b.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:"never"},pager:{visible:!1},loadingTimeout:null,columnFixing:y.columnFixing,columnAutoWidth:y.columnAutoWidth,showColumnLines:y.showColumnLines,columns:E.map(O=>({width:O.width||O.visibleWidth,fixed:O.fixed,fixedPosition:O.fixedPosition})),onRowPrepared:O=>{var w=O.component.getView("rowsView");(0,c.Z)(O.rowElement).replaceWith(S.eq(w._isFixedTableRendering?1:0).clone())}}},_synchronizeScrollLeftPosition:function(b){var y=b?.getScrollable();y?.scrollTo({x:this._scrollLeft})},_getDraggableRowTemplate:function(){return b=>{var y=this.component.$element(),E=(0,c.Z)("<div>");(0,o.cl)(E,(0,o.dz)(y));var S=this._dataController.items(),w=this._getDraggableGridOptions(S&&S[b.fromIndex]);return this._createComponent(E,this.component.NAME,w),E.find(".dx-gridbase-container").children(":not(.".concat(this.addWidgetPrefix("rowsview"),")")).hide(),E}},_getHandleTemplate:function(){return(b,y)=>{if("data"===y.rowType)return(0,c.Z)(b).addClass("dx-cell-focus-disabled"),(0,c.Z)("<span>").addClass(this.addWidgetPrefix("drag-icon"));f.Z.setEmptyText((0,c.Z)(b))}},optionChanged:function(b){"rowDragging"===b.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),b.handled=!0),this.callBase.apply(this,arguments)}}}}}},6027:(kn,he,l)=>{"use strict";l.d(he,{U:()=>q});var o=l(4817),c=l(1805),I=l(9904),C=l(4514),f=l(913),a=l(7674),p=l(4356),s=l(1828),u=l(2718),d=l(5873),h=l(5450),g=l(9589),x=l(6738),b=l(2879),y=l(5004),E=l(8487),S=l(4416),O=l(9009),w=l(4722),P="dx-group-row",B="dx-group-cell",W="dx-data-row",N="dx-freespace-row",V="dx-row-lines",U="dx-column-lines",K="dx-row-alt",Y="dx-last-row-border";function G(Z){return Z?Math.round(Z.scrollWidth()-Z.clientWidth()):0}var Z,X,q={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:O.Z.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},dataRowTemplate:null,columnAutoWidth:!1,noDataText:O.Z.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:y.p.inherit((Z=function(M,se){var ge=(0,g.xb)(se.text)&&"data"===se.rowType,De=se.text,Fe=M.get(0);ge?b.Z.setEmptyText(M):se.column.encodeHtml?Fe.textContent=De:Fe.innerHTML=De},X={_getDefaultTemplate:function(M){return"empty"===M.command?function(se){se.html("&nbsp;")}:Z},_getDefaultGroupTemplate:function(M){var se=this.option("summary.texts");return function(ge,De){var Fe=De.data,Ae=De.column.caption+": "+De.text,ne=ge.get(0);De.summaryItems&&De.summaryItems.length&&(Ae+=" "+b.Z.getGroupRowSummaryText(De.summaryItems,se)),Fe&&(De.groupContinuedMessage&&De.groupContinuesMessage?Ae+=" ("+De.groupContinuedMessage+". "+De.groupContinuesMessage+")":De.groupContinuesMessage?Ae+=" ("+De.groupContinuesMessage+")":De.groupContinuedMessage&&(Ae+=" ("+De.groupContinuedMessage+")")),ge.addClass(B),M.encodeHtml?ne.textContent=Ae:ne.innerHTML=Ae}},_update:function(){},_getCellTemplate:function(M){var se=M.column;return"group"!==M.rowType||!(0,s.$K)(se.groupIndex)||se.showWhenGrouped||se.command?("data"===M.rowType||se.command)&&se.cellTemplate?se.cellTemplate:{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(se)}:se.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(se)}},_createRow:function(M){var se=this.callBase.apply(this,arguments);if(M){var ge="group"===M.rowType,De="data"===M.rowType;if(De&&se.addClass(W),De&&this.option("showRowLines")&&se.addClass(V),this.option("showColumnLines")&&se.addClass(U),!1===M.visible&&se.hide(),ge){se.addClass(P);var Fe=M.isExpanded;this.setAria("role","row",se),this.setAria("expanded",(0,s.$K)(Fe)&&Fe.toString(),se)}}return se},_rowPrepared:function(M,se,ge){"data"===se.rowType&&(this.option("rowAlternationEnabled")&&(this._isAltRow(ge)&&M.addClass(K),se.watch&&se.watch(()=>this._isAltRow(ge),De=>{M.toggleClass(K,De)})),this._setAriaRowIndex(se,M),se.watch&&se.watch(()=>se.rowIndex,()=>this._setAriaRowIndex(se,M))),this.callBase.apply(this,arguments)},_setAriaRowIndex:function(M,se){var ge=this.component,De="standard"===ge.option("scrolling.mode")&&!b.Z.isVirtualRowRendering(ge),Fe=M.rowIndex+1;De?Fe=ge.pageIndex()*ge.pageSize()+Fe:Fe+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",Fe,se)},_afterRowPrepared:function(M){var se=M.args[0],ge=this._dataController,De=ge.getVisibleRows()[se.rowIndex],Fe=this.option("integrationOptions.watchMethod");if(se.data&&"data"===se.rowType&&!se.isNewRow&&this.option("twoWayBindingEnabled")&&Fe&&De){var Ae=Fe(()=>ge.generateDataValues(se.data,se.columns),()=>{ge.repaintRows([De.rowIndex],this.option("repaintChangesOnly"))},{deep:!0,skipImmediate:!0});f.Z.on(se.rowElement,S.x,Ae)}},_renderScrollable:function(M){var se=this.element();if(se.children().length||se.append("<div>"),(M||!this._loadPanel)&&this._renderLoadPanel(se,se.parent(),this._dataController.isLocalStore()),(M||!this.getScrollable())&&this._dataController.isLoaded()){for(var ge=this.getColumns(),De=!0,Fe=0;Fe<ge.length;Fe++)if(!ge[Fe].width&&!ge[Fe].minWidth){De=!1;break}(this.option("columnAutoWidth")||this._hasHeight||De||this._columnsController._isColumnFixing())&&this._renderScrollableCore(se)}},_handleScroll:function(M){var se=this.option("rtlEnabled"),ge=M.component.option("useNative");this._scrollTop=M.scrollOffset.top,this._scrollLeft=M.scrollOffset.left;var De=M.scrollOffset.left;se&&(this._scrollRight=G(M.component)-this._scrollLeft,ge&&(De=-this._scrollRight),this.isScrollbarVisible(!0)||(this._scrollLeft=-1)),this.scrollChanged.fire((0,o.Z)({},M.scrollOffset,{left:De}),this.name)},_renderScrollableCore:function(M){var se=this._createScrollableOptions(),ge=this._handleScroll.bind(this);se.onScroll=ge,this._scrollable=this._createComponent(M,E.Z,se),this._scrollableContainer=this._scrollable&&(0,I.Z)(this._scrollable.container())},_renderLoadPanel:b.Z.renderLoadPanel,_renderContent:function(M,se){return M.empty().append(se),this._findContentElement()},_updateContent:function(M,se){return this._waitAsyncTemplates(se).done(()=>{var ge=this.getTableElement(),De=this._findContentElement(),Fe=se&&se.changeType,Ae=[],ne=this.option("highlightChanges"),fe=this.addWidgetPrefix("row-inserted-animation");"update"===Fe?((0,u.S6)(se.rowIndices,(_e,ie)=>{var de=this._getRowElements(M).eq(_e),le=se.changeTypes&&se.changeTypes[_e],pe=se.items&&se.items[_e];Ae.push(()=>{var Ee=this._getRowElements(),ae=Ee.eq(ie);switch(le){case"update":if(pe){var te=se.columnIndices&&se.columnIndices[_e];(0,s.$K)(pe.visible)&&pe.visible!==ae.is(":visible")?ae.toggle(pe.visible):te?this._updateCells(ae,de,te):ae.replaceWith(de)}break;case"insert":if(Ee.length)ae.length?de.insertBefore(ae):de.insertAfter(Ee.last());else if(ge){var re=de.is("tbody")?ge:ge.children("tbody");de.prependTo(re)}ne&&se.isLiveUpdate&&de.addClass(fe);break;case"remove":ae.remove()}})}),(0,u.S6)(Ae,function(){this()}),M.remove()):(this.setTableElement(M),De.addClass(this.addWidgetPrefix("content")),this._renderContent(De,M))})},_createEmptyRow:function(M,se,ge){var De,Fe=this._createRow(),Ae=se?this.getFixedColumns():this.getColumns();Fe.addClass(M).toggleClass(U,this.option("showColumnLines"));for(var ne=0;ne<Ae.length;ne++)De=this._createCell({column:Ae[ne],rowType:"freeSpace",columnIndex:ne,columns:Ae}),(0,s.kE)(ge)&&De.css("height",ge),Fe.append(De);return this.setAria("role","presentation",Fe),Fe},_appendEmptyRow:function(M,se,ge){var De=this._getBodies(M),Fe=!De.length||se.is("tbody"),Ae=Fe?M:De;if("top"===ge){if(Ae.first().prepend(se),Fe){var ne=Ae.children("colgroup");Ae.prepend(ne)}}else Ae.last().append(se)},_renderFreeSpaceRow:function(M,se){var ge=this._createEmptyRow(N);ge=this._wrapRowIfNeed(M,ge,"refresh"===se?.changeType),this._appendEmptyRow(M,ge)},_checkRowKeys:function(M){var se=this,ge=se._getRows(M),De=se._dataController.store()&&se._dataController.store().key();De&&ge.some(function(Fe){if("data"===Fe.rowType&&void 0===Fe.key)return se._dataController.fireError("E1046",De),!0})},_needUpdateRowHeight:function(M){return M>0&&!this._rowHeight},_getRowsHeight:function(M){return(M=M||this._tableElement).children("tbody").children().not(".dx-virtual-row").not("."+N).toArray().reduce(function(ge,De){return ge+(0,h.l)(De).height},0)},_updateRowHeight:function(){var M=this.getTableElement(),se=this._dataController.items().length;if(M&&this._needUpdateRowHeight(se)){var ge=this._getRowsHeight(M);this._rowHeight=ge/se}},_findContentElement:function(){var M=this.element(),se=this.getScrollable();if(M)return se&&(M=(0,I.Z)(se.content())),M.children().first()},_getRowElements:function(M){var se=this.callBase(M);return se&&se.not("."+N)},_getFreeSpaceRowElements:function(M){var se=M||this.getTableElements();return se&&se.children("tbody").children("."+N)},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(M){var se=this._dataController.items()[M.rowIndex]||{};this.executeAction("onRowClick",(0,d.l)({evaluate:function(ge){return(0,x.vb)(ge)(se.data)}},M,se))},_rowDblClick:function(M){var se=this._dataController.items()[M.rowIndex]||{};this.executeAction("onRowDblClick",(0,d.l)({},M,se))},_getColumnsCountBeforeGroups:function(M){for(var se=0;se<M.length;se++)if("groupExpand"===M[se].type)return se;return 0},_getGroupCellOptions:function(M){var se=this._getColumnsCountBeforeGroups(M.columns),ge=(M.row.groupIndex||0)+se;return{columnIndex:ge,colspan:M.columns.length-ge-1}},_needWrapRow:function(){return this.callBase.apply(this,arguments)||!!this.option("dataRowTemplate")},_renderCells:function(M,se){"group"===se.row.rowType?this._renderGroupedCells(M,se):se.row.values&&this.callBase(M,se)},_renderGroupedCells:function(M,se){for(var De,ne,ge=se.row,Fe=se.columns,Ae=ge.rowIndex,fe=this._getGroupCellOptions(se),_e=0;_e<=fe.columnIndex;_e++)_e===fe.columnIndex&&Fe[_e].allowCollapsing&&"infinite"!==se.scrollingMode?(ne=!!ge.isExpanded,De=Fe[_e]):(ne=null,De={command:"expand",cssClass:Fe[_e].cssClass}),this._needRenderCell(_e,se.columnIndices)&&this._renderCell(M,{value:ne,row:ge,rowIndex:Ae,column:De,columnIndex:_e,columnIndices:se.columnIndices,change:se.change});var ie=(0,h.q)(this.option("rtlEnabled")),de=(0,d.l)({},Fe[fe.columnIndex],{command:null,type:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:ie});fe.colspan>1&&(de.colspan=fe.colspan),this._needRenderCell(fe.columnIndex+1,se.columnIndices)&&this._renderCell(M,{value:ge.values[ge.groupIndex],row:ge,rowIndex:Ae,column:de,columnIndex:fe.columnIndex+1,columnIndices:se.columnIndices,change:se.change})},_renderRows:function(M,se){var ge=this.option("scrolling.mode");this.callBase(M,(0,d.l)({scrollingMode:ge},se)),this._checkRowKeys(se.change),this._renderFreeSpaceRow(M,se.change),this._hasHeight||this.updateFreeSpaceRowHeight(M)},_renderDataRowByTemplate(M,se,ge){var De=se.row,Fe=(0,d.l)({columns:se.columns},De),Ae=this._createRow(De,"tbody");Ae.appendTo(M),this.renderTemplate(Ae,ge,Fe,!0,se.change),this._rowPrepared(Ae,Fe,se.row)},_renderRow:function(M,se){var ge=se.row,De=this.option().rowTemplate,Fe=this.option("dataRowTemplate");"data"===ge.rowType&&Fe?this._renderDataRowByTemplate(M,se,Fe):"data"!==ge.rowType&&"group"!==ge.rowType||(0,s.$K)(ge.groupIndex)||!De?this.callBase(M,se):this.renderTemplate(M,De,(0,d.l)({columns:se.columns},ge),!0)},_renderTable:function(M){var se=this,ge=se.callBase(M);return(0,s.$K)(se.getTableElement())?se._renderScrollable():(se.setTableElement(ge),se._renderScrollable(!0),se.resizeCompleted.add(function De(){var Fe=se.getScrollable();Fe&&se.element().closest((0,C.Jj)().document).length&&(se.resizeCompleted.remove(De),Fe._visibilityChanged(!0))})),ge},_createTable:function(){var M=this.callBase.apply(this,arguments);return(this.option().rowTemplate||this.option().dataRowTemplate)&&M.appendTo(this.component.$element()),M},_renderCore:function(M){var se=this.element();se.addClass(this.addWidgetPrefix("rowsview")).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")),se.toggleClass("dx-empty",this._dataController.isEmpty()),this.setAria("role","presentation",se);var ge=this._renderTable({change:M}),De=this._updateContent(ge,M);return this.callBase(M),this._lastColumnWidths=null,De},_getRows:function(M){return M&&M.items||this._dataController.items()},_getCellOptions:function(M){var se=M.column,ge=M.row,De=ge.data,Fe=ge&&ge.summaryCells,Ae=M.value,ne=b.Z.getDisplayValue(se,Ae,De,ge.rowType),fe=this.callBase(M);if(fe.value=Ae,fe.oldValue=M.oldValue,fe.displayValue=ne,fe.row=ge,fe.key=ge.key,fe.data=De,fe.rowType=ge.rowType,fe.values=ge.values,fe.text=se.command?"":b.Z.formatValue(ne,se),fe.rowIndex=ge.rowIndex,fe.summaryItems=Fe&&Fe[M.columnIndex],fe.resized=se.resizedCallbacks,(0,s.$K)(se.groupIndex)&&!se.command){var _e=this.option("grouping.texts"),ie=this.option("scrolling.mode");"virtual"!==ie&&"infinite"!==ie&&(fe.groupContinuesMessage=De&&De.isContinuationOnNextPage&&_e&&_e.groupContinuesMessage,fe.groupContinuedMessage=De&&De.isContinuation&&_e&&_e.groupContinuedMessage)}return fe},_setRowsOpacityCore:function(M,se,ge,De){var Fe=this._columnsController,Ae=Fe.getColumns(),ne=Ae&&Ae[ge],fe=ne&&ne.isBand&&ne.index;(0,u.S6)(M,function(_e,ie){if(!(0,I.Z)(ie).hasClass(P))for(var de=0;de<se.length&&(!((0,s.kE)(fe)&&Fe.isParentBandColumn(se[de].index,fe)||se[de].index===ge)||(M.eq(_e).children().eq(de).css({opacity:De}),(0,s.kE)(fe)));de++);})},_getDevicePixelRatio:function(){return(0,C.Jj)().devicePixelRatio},renderNoDataText:b.Z.renderNoDataText,getCellOptions:function(M,se){var De,Fe,ge=this._dataController.items()[M];return ge&&(Fe=(0,s.HD)(se)?this._columnsController.columnOption(se):this._columnsController.getVisibleColumns()[se])&&(De=this._getCellOptions({value:Fe.calculateCellValue(ge.data),rowIndex:ge.rowIndex,row:ge,column:Fe})),De},getRow:function(M){if(M>=0){var se=this._getRowElements();if(se.length>M)return(0,I.Z)(se[M])}},updateFreeSpaceRowHeight:function(M){var se=this._dataController,ge=se.items(!0).length,De=this._findContentElement(),Fe=this._getFreeSpaceRowElements(M);if(Fe&&De&&se.totalCount()>=0){var Ae=!1;if(ge>0)if(this._hasHeight)Fe.hide(),(0,a.Su)(()=>{var _e=this.getScrollbarWidth(!0),ie=(0,c.Cr)(this.element())-_e,le=ie-(0,c.zp)(De)>0,pe=this._getRowsHeight(De.children().first()),Ee=M||this.getTableElements(),re=ie-pe-Math.ceil(parseFloat(Ee.css("borderTopWidth")))-this._getHeightCorrection();le&&(0,a.g0)(()=>{Fe.css("height",re),Ae=!0,Fe.show()}),(0,a.g0)(()=>this._updateLastRowBorder(Ae))});else{var ne=se.pageSize()-ge,fe=this.option("scrolling.mode");ne>0&&se.pageCount()>1&&"virtual"!==fe&&"infinite"!==fe&&((0,p.QQ)(Fe,ne*this._rowHeight),Ae=!0),!Ae&&M?(0,p.QQ)(Fe,0):Fe.toggle(Ae),this._updateLastRowBorder(Ae)}else Fe.css("height",0),Fe.show(),this._updateLastRowBorder(!0)}},_getHeightCorrection:function(){var M=w.Z.webkit&&this._getDevicePixelRatio()>=2,se=w.Z.chrome&&w.Z.version>=91,ge=w.Z.mozilla&&w.Z.version>=70&&!this.option("showRowLines");return M||ge||se?1:0},_columnOptionChanged:function(M){var se=M.optionNames;M.changeTypes.grouping||(se.width||se.visibleWidth)&&(this.callBase(M),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var M=this,se=M.getController("data");M.callBase(),M._editorFactoryController=M.getController("editorFactory"),M._rowHeight=0,M._scrollTop=0,M._scrollLeft=-1,M._scrollRight=0,M._hasHeight=!1,se.loadingChanged.add(function(ge,De){M.setLoading(ge,De)}),se.dataSourceChanged.add(()=>{this._scrollLeft>=0&&!this._dataController.isLoading()&&this._handleScroll({component:this.getScrollable(),forceUpdateScrollPosition:!0,scrollOffset:{top:this._scrollTop,left:this._scrollLeft}})})},_handleDataChanged:function(M){switch(M.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,M);break;default:this._update(M)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return(0,c.dz)(this.element())-this.getScrollbarWidth()},getScrollbarWidth:function(M){var Fe,se=this._scrollableContainer&&this._scrollableContainer.get(0),ge=0;return se&&(M?(ge=se.clientHeight?se.offsetHeight-se.clientHeight:0,ge+=(Fe=this.getScrollable())?Math.ceil(parseFloat((0,I.Z)(Fe.content()).css("paddingBottom"))):0):ge=se.clientWidth?se.offsetWidth-se.clientWidth:0),ge>0?ge:0},_fireColumnResizedCallbacks:function(){for(var M=this._lastColumnWidths||[],se=[],ge=this.getColumns(),De=0;De<ge.length;De++)se[De]=ge[De].visibleWidth,ge[De].resizedCallbacks&&!(0,s.$K)(ge[De].groupIndex)&&M[De]!==se[De]&&ge[De].resizedCallbacks.fire(se[De]);this._lastColumnWidths=se},_updateLastRowBorder:function(M){this.option("showBorders")&&this.option("showRowLines")&&!M?this.element().addClass(Y):this.element().removeClass(Y)},_updateScrollable:function(){var M=E.Z.getInstance(this.element());M&&(M.update(),(M.option("useNative")||null==M||!M.isRenovated())&&this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var M=this.getScrollable(),se=M&&M.scrollOffset().left;if(this.option("rtlEnabled")){var De=G(M);De-se!==this._scrollRight&&(this._scrollLeft=De-this._scrollRight)}this._scrollLeft>=0&&se!==this._scrollLeft&&M.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var M=this;M._fireColumnResizedCallbacks(),M._updateRowHeight(),(0,a.g0)(function(){M._renderScrollable(),M.renderNoDataText(),M.updateFreeSpaceRowHeight(),(0,a.Su)(function(){M._updateScrollable()})})},scrollTo:function(M){var se=this.element(),ge=se&&E.Z.getInstance(se);ge&&ge.scrollTo(M)},height:function(M,se){var ge=this,De=this.element();if(0===arguments.length)return De?(0,c.zp)(De,!0):0;ge._hasHeight=void 0===se?"auto"!==M:se,(0,s.$K)(M)&&De&&(0,p.QQ)(De,M)},hasHeight:function(){return!!this._hasHeight},setLoading:function(M,se){var ge=this._loadPanel,De=this._dataController,Fe=this.option("loadPanel")||{},Ae=De.isLoaded()?Fe.animation:null,ne=this.element();if((0,C.Ym)()&&(!ge&&void 0!==se&&De.isLocalStore()&&"auto"===Fe.enabled&&ne&&(this._renderLoadPanel(ne,ne.parent()),ge=this._loadPanel),ge)){var fe={message:se||Fe.text,animation:Ae,visible:M};M&&(fe.position=b.Z.calculateLoadPanelPosition(ne)),clearTimeout(this._hideLoadingTimeoutID),ge.option("visible")&&!M?this._hideLoadingTimeoutID=setTimeout(function(){ge.option(fe)},200):ge.option(fe)}},setRowsOpacity:function(M,se){var ge=this._getRowElements().not("."+P)||[];this._setRowsOpacityCore(ge,this.getColumns(),M,se)},_getCellElementsCore:function(M){var se=this.callBase.apply(this,arguments);if(se){var ge=se.filter("."+B).index();if(ge>=0&&se.length>ge+1)return se.slice(0,ge+1)}return se},_getBoundaryVisibleItemIndex:function(M,se){var ge=0,De=0,Fe=0,Ae=this._scrollTop,ne=this._findContentElement(),fe=ne&&ne.offset().top,ie=this.getController("data").items(),de=this.getTableElement();if(ie.length&&de){var le=this._getRowElements(de).filter(":visible");for(M||(Ae+=(0,c.zp)(this._hasHeight?this.element():(0,C.Jj)())),ge=0;ge<ie.length;ge++){De=Fe;var Ee=(0,I.Z)(le).eq(ge);if(Ee.length&&(Fe=Ee.offset(),(Fe=(M?Fe.top:Fe.top+(0,c.zp)(Ee))-fe)>Ae)){ge&&(se||2*Ae<Math.round(Fe+De))&&ge--;break}}ge&&ge===ie.length&&ge--}return ge},getTopVisibleItemIndex:function(M){return this._getBoundaryVisibleItemIndex(!0,M)},getBottomVisibleItemIndex:function(M){return this._getBoundaryVisibleItemIndex(!1,M)},getTopVisibleRowData:function(){var M=this.getTopVisibleItemIndex(),se=this._dataController.items();if(se[M])return se[M].data},_scrollToElement:function(M,se){var ge=this.getScrollable();ge&&ge.scrollToElement(M,se)},optionChanged:function(M){switch(this.callBase(M),M.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"dataRowTemplate":case"twoWayBindingEnabled":this._invalidate(!0,!0),M.handled=!0;break;case"scrolling":this._rowHeight=null,this._tableElement=null,M.handled=!0;break;case"rtlEnabled":this._rowHeight=null,this._tableElement=null;break;case"loadPanel":this._tableElement=null,this._invalidate(!0,"loadPanel.enabled"!==M.fullName),M.handled=!0;break;case"noDataText":this.renderNoDataText(),M.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()},setScrollerSpacing:function(){},_restoreErrorRow:function(){}},X))}}},5542:(kn,he,l)=>{"use strict";l.d(he,{C:()=>b});var o=l(9904),c=l(9897),I=l(1828),C=l(6738),f=l(2879),a=l(9009),p=l(7316),s="search-panel",u="search-text";function g(y){return(0,I.$K)(y.allowSearch)?y.allowSearch:y.allowFiltering}function x(y,E){var S=y.lookup;return y.parseValue?S?y.parseValue.call(S,E):y.parseValue(E):E}var y,b={defaultOptions:function(){return{searchPanel:{visible:!1,width:160,placeholder:a.Z.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}},extenders:{controllers:{data:{publicMethods:function(){return this.callBase().concat(["searchByText"])},_calculateAdditionalFilter:function(){var y=this.callBase(),E=function(S,O){var w,T,P,k=S._columnsController.getColumns(),R=S.option("searchPanel.searchVisibleColumnsOnly"),B=[];if(!O)return null;function W(V){for(var U=(0,C.vb)(P.valueExpr),K=0;K<V.length;K++){var Y=U(V[K]);B.push(T.createFilterExpression(Y,null,"search"))}}for(w=0;w<k.length;w++)if(T=k[w],(!R||T.visible)&&g(T)&&T.calculateFilterExpression){P=T.lookup;var N=x(T,O);P&&P.items?(0,p.Z)(P.items).filter(T.createFilterExpression.call({dataField:P.displayExpr,dataType:P.dataType,calculateFilterExpression:T.calculateFilterExpression},N,null,"search")).enumerate().done(W):void 0!==N&&B.push(T.createFilterExpression(N,null,"search"))}return 0===B.length?["!"]:f.Z.combineFilters(B,"or")}(this,this.option("searchPanel.text"));return f.Z.combineFilters([y,E])},searchByText:function(y){this.option("searchPanel.text",y)},optionChanged:function(y){switch(y.fullName){case"searchPanel.text":case"searchPanel":this._applyFilter(),y.handled=!0;break;default:this.callBase(y)}}}},views:{headerPanel:(y=function(E){return E.option("searchPanel")},{_getToolbarItems:function(){var E=this.callBase();return this._prepareSearchItem(E)},_prepareSearchItem:function(E){var S=this,O=S.getController("data"),w=y(S);return w&&w.visible&&E.push({template:function(k,R,P){var B=(0,o.Z)("<div>").addClass(S.addWidgetPrefix(s)).appendTo(P);S.getController("editorFactory").createEditor(B,{width:w.width,placeholder:w.placeholder,parentType:"searchPanel",value:S.option("searchPanel.text"),updateValueTimeout:700,setValue:function(W){O.searchByText(W)},editorOptions:{inputAttr:{"aria-label":a.Z.format("".concat(S.component.NAME,"-ariaSearchInGrid"))}}}),S.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40}),E},getSearchTextEditor:function(){var E=this,S=E.element(),O=S.find("."+E.addWidgetPrefix(s)).filter(function(){return(0,o.Z)(this).closest("."+E.addWidgetPrefix("header-panel")).is(S)});return O.length?O.dxTextBox("instance"):null},isVisible:function(){var E=y(this);return this.callBase()||E&&E.visible},optionChanged:function(E){if("searchPanel"===E.name){if("searchPanel.text"===E.fullName){var S=this.getSearchTextEditor();S&&S.option("value",E.value)}else this._invalidate();E.handled=!0}else this.callBase(E)}}),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(y,E){var S=x(y,E),O=f.Z.getFormatOptionsByColumn(y,"search");return f.Z.formatValue(S,O)},_getStringNormalizer:function(){var y=this.option("searchPanel.highlightCaseSensitive");return function(E){return y?E:E.toLowerCase()}},_findHighlightingTextNodes:function(y,E,S){var O,T,w=E.parent(),k=this._getStringNormalizer(),R=k(S),P=[];if(w.length){if(y)if(y.groupIndex>=0&&!y.showWhenGrouped)T=E;else{var B=this._columnsController.getVisibleIndex(y.index);T=w.children("td").eq(B).find("*")}}else w=(0,o.Z)("<div>").append(E);return(T=null!==(O=T)&&void 0!==O&&O.length?T:w.find("*")).each(function(W,N){for(var V=(0,o.Z)(N).contents(),U=0;U<V.length;U++){var K=V.get(U);3===K.nodeType&&k(K.textContent||K.nodeValue).indexOf(R)>-1&&P.push(K)}}),P},_highlightSearchTextCore:function(y,E){var S=(0,o.Z)("<span>").addClass(this.addWidgetPrefix(u)),O=y.text(),w=y[0],T=this._getStringNormalizer(),k=T(O).indexOf(T(E));if(k>=0)return w.textContent?w.textContent=O.substr(0,k):w.nodeValue=O.substr(0,k),y.after(S.text(O.substr(k,E.length))),y=(0,o.Z)(c.Z.createTextNode(O.substr(k+E.length))).insertAfter(S),this._highlightSearchTextCore(y,E)},_highlightSearchText:function(y,E,S){var O=this,w=this._getStringNormalizer(),T=O.option("searchPanel.text");E&&S&&(T=T&&O._getFormattedSearchText(S,T)),T&&O.option("searchPanel.highlightSearchText")&&O._findHighlightingTextNodes(S,y,T).forEach(R=>{E?w((0,o.Z)(R).text())===w(T)&&(0,o.Z)(R).replaceWith((0,o.Z)("<span>").addClass(O.addWidgetPrefix(u)).text((0,o.Z)(R).text())):O._highlightSearchTextCore((0,o.Z)(R),T)})},_renderCore:function(){var y=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())),y},_updateCell:function(y,E){var S=E.column,w="string"!==(S.lookup&&S.lookup.dataType||S.dataType);g(S)&&!E.isOnForm&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(T){this._highlightSearchText.apply(this,T)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([y,w,S])):this._highlightSearchText(y,w,S)),this.callBase(y,E)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}}},9143:(kn,he,l)=>{"use strict";l.d(he,{e:()=>U});var K,Y,o=l(9904),c=l(913),I=l(9617),C=l(2879),f=l(1828),a=l(2718),p=l(5873),s=l(4505),u=l(227),d=l(9009),h=l(8225),g=l(5180),x=l(7398),b=l(4270),y=l(8159),E="dx-editor-cell",O="dx-selection",w="dx-select-checkbox",k="dx-command-select",P="dx-data-row",B="selection.showCheckBoxesMode",W="selection.mode",N=function(K,Y){var J=K.getController("selection"),j=K.getView("rowsView"),ee=(0,o.Z)(Y.target).closest("."+P),G=j.getRowIndex(ee);G<0||("onLongTap"===K.option(B)?J.isSelectionWithCheckboxes()?J.stopSelectionWithCheckboxes():J.startSelectionWithCheckboxes():("onClick"===K.option(B)&&J.startSelectionWithCheckboxes(),"always"!==K.option(B)&&J.changeItemSelection(G,{control:!0})))},U={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:I.Z.Controller.inherit((K=(J,j)=>{var ee=j.component,G=ee.getView("rowsView");ee.option("renderAsync")&&!ee.option("selection.deferred")&&(j.value=ee.isRowSelected(j.row.key)),G.renderSelectCheckBoxContainer((0,o.Z)(J),j)},Y=(J,j)=>{var ee=j.column,G=(0,o.Z)(J),q=j.component.getView("columnHeadersView");G.addClass(E),q._renderSelectAllCheckBox(G,ee),q._attachSelectAllCheckBoxClickEvent(G)},{init:function(){var{deferred:J,selectAllMode:j,mode:ee}=this.option("selection")||{};"infinite"===this.option("scrolling.mode")&&!J&&"multiple"===ee&&"allPages"===j&&y.Z.log("W1018"),this._dataController=this.getController("data"),this._selectionMode=ee,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(J){var j=J.filter(ee=>"remove"===ee.type).map(ee=>ee.key);j.length&&this.deselectRows(j)},_getSelectionConfig:function(){var J=this._dataController,j=this.getController("columns"),ee=this.option("selection")||{},G=ee.deferred,q=this.option("scrolling.mode"),Z="virtual"===q||"infinite"===q,X=this.option("selection.allowSelectAll"),M=this.option("scrolling.legacyMode");return{selectedKeys:this.option("selectedRowKeys"),mode:this._selectionMode,deferred:G,maxFilterLengthInRequest:ee.maxFilterLengthInRequest,selectionFilter:this.option("selectionFilter"),ignoreDisabledItems:!0,allowLoadByRange:function(){var se=j.getGroupColumns().length>0;return Z&&!M&&!se&&X&&!G},key:function(){return J?.key()},keyOf:function(se){return J?.keyOf(se)},dataFields:function(){var se;return null===(se=J.dataSource())||void 0===se?void 0:se.select()},load:function(se){var ge;return(null===(ge=J.dataSource())||void 0===ge?void 0:ge.load(se))||(new b.BH).resolve([])},plainItems:function(){return J.items(!0)},isItemSelected:function(se){return se.selected},isSelectableItem:function(se){return"data"===se?.rowType&&!se.isNewRow},getItemData:function(se){return(0,f.$K)(se?.rowType)?se?.oldData||se?.data:se},filter:function(){return J.getCombinedFilter(G)},totalCount:()=>J.totalCount(),getLoadOptions:function(se,ge,De){var Fe,Ae,{sort:ne,filter:fe}=null!==(Fe=null===(Ae=J.dataSource())||void 0===Ae?void 0:Ae.lastLoadOptions())&&void 0!==Fe?Fe:{},_e=Math.min(se,ge),ie=Math.max(se,ge);return(0,f.$K)(De)&&(_e=Math.min(De,_e),ie=Math.max(De,ie)),{skip:_e,take:ie-_e+1,filter:fe,sort:ne}},onSelectionChanged:this._updateSelectedItems.bind(this)}},_updateSelectColumn:function(){var J=this.getController("columns"),j=this.isSelectColumnVisible();J.addCommandColumn({type:"selection",command:"select",visible:j,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:k,width:"auto",cellTemplate:K,headerCellTemplate:Y}),J.columnOption("command:select","visible",j)},_createSelection:function(){var J=this._getSelectionConfig();return new x.Z(J)},_fireSelectionChanged:function(J){var j=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(j),J&&this.executeAction("onSelectionChanged",J)},_updateCheckboxesState:function(J){var j=J.isDeferredMode,ee=J.selectionFilter,G=J.selectedItemKeys,q=J.removedItemKeys;"onClick"===this.option(B)&&((j?ee&&function(Z,X){var M=0,se=Z._dataController.store(),ge=se&&se.key(),De=Array.isArray(ge);if(!X.length)return!1;if(De&&Array.isArray(X[0])&&"and"===X[1]){for(var Fe=0;Fe<X.length;Fe++)if(Array.isArray(X[Fe])){if(X[Fe][0]!==ge[M]||"="!==X[Fe][1])return!0;M++}return!1}return ge!==X[0]}(this,ee):G.length>1)?this.startSelectionWithCheckboxes():(j?ee&&!ee.length:0===G.length&&q.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(J){var j,ee=this.option("selection.deferred"),G=this._selection.selectionFilter(),q=this._dataController,Z=q.items(!0),X=q.items();if(Z){var M=this.isSelectionWithCheckboxes(),se=this.getChangedItemIndexes(Z),ge=this.getChangedItemIndexes(X);this._updateCheckboxesState({selectedItemKeys:J.selectedItemKeys,removedItemKeys:J.removedItemKeys,selectionFilter:G,isDeferredMode:ee}),(se.length||M!==this.isSelectionWithCheckboxes())&&q.updateItems({changeType:"updateSelection",itemIndexes:ge}),ee?(this.option("selectionFilter",G),j={}):(J.addedItemKeys.length||J.removedItemKeys.length)&&(this._selectedItemsInternalChange=!0,this.option("selectedRowKeys",J.selectedItemKeys.slice(0)),this._selectedItemsInternalChange=!1,j={selectedRowsData:J.selectedItems.slice(0),selectedRowKeys:J.selectedItemKeys.slice(0),currentSelectedRowKeys:J.addedItemKeys.slice(0),currentDeselectedRowKeys:J.removedItemKeys.slice(0)}),this._fireSelectionChanged(j)}},getChangedItemIndexes:function(J){for(var j=[],ee=this.option("selection.deferred"),G=0,q=J.length;G<q;G++){var Z=J[G],X=this.isRowSelected(ee?Z.data:Z.key);this._selection.isDataItem(Z)&&Z.isSelected!==X&&j.push(G)}return j},callbackNames:function(){return["selectionChanged"]},optionChanged:function(J){switch(this.callBase(J),J.name){case"selection":var j=this._selectionMode;if(this.init(),"selection.showCheckBoxesMode"!==J.fullName){var ee=this._selectionMode,G=this.option("selectedRowKeys");j!==ee&&("single"===ee?G.length>1&&(G=[G[0]]):"multiple"!==ee&&(G=[])),this.selectRows(G).always(()=>{this._fireSelectionChanged()})}this.getController("columns").updateColumns(),J.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(J.value),J.handled=!0;break;case"selectedRowKeys":var q=J.value||[];Array.isArray(q)&&!this._selectedItemsInternalChange&&(this.component.getDataSource()||!q.length)&&this.selectRows(q),J.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(J){return this._selection.isItemSelected(J)},isSelectColumnVisible:function(){return"multiple"===this.option(W)&&("always"===this.option(B)||"onClick"===this.option(B)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(B)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var J=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&J.length?this.selectedItemKeys(J):(new b.BH).resolve().promise()},selectedItemKeys:function(J,j,ee,G){return this._selection.selectedItemKeys(J,j,ee,G)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(J,j){return this.selectedItemKeys(J,j)},deselectRows:function(J){return this.selectedItemKeys(J,!0,!0)},selectRowsByIndexes:function(J){var j=this._dataController.items(),ee=[];return Array.isArray(J)||(J=Array.prototype.slice.call(arguments,0)),(0,a.S6)(J,function(){var G=j[this];G&&"data"===G.rowType&&ee.push(G.key)}),this.selectRows(ee)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(J,j,ee){j=j||{},this.isSelectionWithCheckboxes()&&(j.control=!0);var G=J+this._dataController.getRowIndexOffset()-this._dataController.getRowIndexOffset(!0);return this._selection.changeItemSelection(G,j,ee)},focusedItemIndex:function(J){if(!(0,f.$K)(J))return this._selection._focusedItemIndex;this._selection._focusedItemIndex=J},isSelectionWithCheckboxes:function(){return"multiple"===this.option(W)&&("always"===this.option(B)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){return"multiple"===this.option(W)&&!this.isSelectionWithCheckboxes()&&(this._isSelectionWithCheckboxes=!0,this._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){return!!this._isSelectionWithCheckboxes&&(this._isSelectionWithCheckboxes=!1,this._updateSelectColumn(),!0)}}))},extenders:{controllers:{data:{init:function(){var K=this.getController("selection"),Y=this.option("selection.deferred");this.callBase.apply(this,arguments),Y&&K._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var K=this;return K.callBase().done(function(){K.getController("selection").refresh()})},_processDataItem:function(K,Y){var J=this,j=J.getController("selection"),ee=j.isSelectColumnVisible(),G=Y.isDeferredSelection=void 0===Y.isDeferredSelection?this.option("selection.deferred"):Y.isDeferredSelection,q=this.callBase.apply(this,arguments);if(q.isSelected=j.isRowSelected(G?q.data:q.key),ee&&q.values)for(var Z=0;Z<Y.visibleColumns.length;Z++)if("select"===Y.visibleColumns[Z].command){q.values[Z]=q.isSelected;break}return q},refresh:function(K){var Y=this,J=new b.BH;return this.callBase.apply(this,arguments).done(function(){!K||K.selection?Y.getController("selection").refresh().done(J.resolve).fail(J.reject):J.resolve()}).fail(J.reject),J.promise()},_handleDataChanged:function(K){this.callBase.apply(this,arguments),(!K||"refresh"===K.changeType)&&!this._repaintChangesOnly&&this.getController("selection").focusedItemIndex(-1)},_applyChange:function(K){if(!K||"updateSelection"!==K.changeType)return this.callBase.apply(this,arguments);K.items.forEach((Y,J)=>{var j=this._items[J];j&&(j.isSelected=Y.isSelected,j.values=Y.values)})},_endUpdateCore:function(){var K=this._changes,Y=K.length>1&&K.every(j=>"updateSelection"===j.changeType);if(Y){var J=K.map(j=>j.itemIndexes||[]).reduce((j,ee)=>j.concat(ee));this._changes=[{changeType:"updateSelection",itemIndexes:J}]}this.callBase.apply(this,arguments)}},contextMenu:{_contextMenuPrepared:function(K){var Y=K.event;Y.originalEvent&&"dxhold"!==Y.originalEvent.type||K.items&&K.items.length>0||N(this,Y)}}},views:{columnHeadersView:{init:function(){this.callBase(),this.getController("selection").selectionChanged.add(this._updateSelectAllValue.bind(this))},_updateSelectAllValue:function(){var K=this.element(),Y=K&&K.find("."+w);if(K&&Y.length&&"multiple"===this.option("selection.mode")){var J=this.getController("selection").isSelectAll(),j=!1!==J,ee=this.option("selection.allowSelectAll")?!this.getController("data").isEmpty():j;Y.dxCheckBox("instance").option({visible:ee,value:J})}},_handleDataChanged:function(K){this.callBase(K),(!K||"refresh"===K.changeType||K.repaintChangesOnly&&"update"===K.changeType)&&this._updateSelectAllValue()},_renderSelectAllCheckBox:function(K,Y){var J=this,j=J.getController("selection"),ee=J.getController("data").isEmpty(),G=(0,o.Z)("<div>").appendTo(K).addClass(w);return J.setAria("label",d.Z.format("dxDataGrid-ariaSelectAll"),G),J.getController("editorFactory").createEditor(G,(0,p.l)({},Y,{parentType:"headerRow",dataType:"boolean",value:j.isSelectAll(),editorOptions:{visible:!ee&&(J.option("selection.allowSelectAll")||!1!==j.isSelectAll())},tabIndex:J.option("useLegacyKeyboardNavigation")?-1:J.option("tabIndex")||0,setValue:function(q,Z){var X=J.option("selection.allowSelectAll");Z.component.option("visible",X||!1!==Z.component.option("value")),Z.event&&j.isSelectAll()!==q&&(Z.value&&!X?Z.component.option("value",!1):Z.value?j.selectAll():j.deselectAll(),Z.event.preventDefault())}})),G},_attachSelectAllCheckBoxClickEvent:function(K){c.Z.on(K,u.u,this.createAction(function(Y){var J=Y.event;(0,o.Z)(J.target).closest("."+w).length||c.Z.trigger((0,o.Z)(J.currentTarget).children("."+w),u.u),J.preventDefault()}))}},rowsView:{renderSelectCheckBoxContainer:function(K,Y){"data"!==Y.rowType||Y.row.isNewRow?C.Z.setEmptyText(K):(K.addClass(E),this._attachCheckBoxClickEvent(K),this._renderSelectCheckBox(K,Y))},_renderSelectCheckBox:function(K,Y){var J=(0,o.Z)("<div>").addClass(w).appendTo(K);return this.setAria("label",d.Z.format("dxDataGrid-ariaSelectRow"),J),this.getController("editorFactory").createEditor(J,(0,p.l)({},Y.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:Y.value,setValue:function(j,ee){var G;"keydown"===(null==ee||null===(G=ee.event)||void 0===G?void 0:G.type)&&c.Z.trigger(ee.element,u.u,ee)},row:Y.row})),J},_attachCheckBoxClickEvent:function(K){c.Z.on(K,u.u,this.createAction(function(Y){var J=this.getController("selection"),j=Y.event,ee=this.getRowIndex((0,o.Z)(j.currentTarget).closest(".dx-row"));ee>=0&&(J.startSelectionWithCheckboxes(),J.changeItemSelection(ee,{shift:j.shiftKey}),(0,o.Z)(j.target).closest("."+w).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[ee]}))}))},_update:function(K){var Y=this,J=Y.getTableElements();"updateSelection"===K.changeType?J.length>0&&((0,a.S6)(J,function(j,ee){(0,a.S6)(K.itemIndexes||[],function(G,q){var Z;if(K.items[q]&&(Z=Y._getRowElements((0,o.Z)(ee)).eq(q)).length){var X=K.items[q].isSelected;Z.toggleClass(O,void 0!==X&&X).find("."+w).dxCheckBox("option","value",X),Y.setAria("selected",X,Z)}})}),Y._updateCheckboxesClass()):Y.callBase(K)},_createTable:function(){var K=this,Y=K.option("selection.mode"),J=K.callBase.apply(K,arguments);return"none"!==Y&&(("onLongTap"===K.option(B)||!s.touch)&&c.Z.on(J,(0,h.V4)(g.Z.name,"dxDataGridRowsView"),"."+P,K.createAction(function(j){N(K.component,j.event),j.event.stopPropagation()})),c.Z.on(J,"mousedown selectstart",K.createAction(function(j){var ee=j.event;ee.shiftKey&&ee.preventDefault()}))),J},_createRow:function(K){var Y=this.callBase.apply(this,arguments);if(K){var J=K.isSelected;J&&Y.addClass(O);var j=this.option(W);"none"!==j&&this.setAria("selected",J,Y)}return Y},_rowClick:function(K){var Y=K.event,J=(0,o.Z)(Y.target).closest(".dx-selection-disabled").length;this.isClickableElement((0,o.Z)(Y.target))||(!J&&("multiple"!==this.option(W)||"always"!==this.option(B))&&this.getController("selection").changeItemSelection(K.rowIndex,{control:(0,h.j1)(Y),shift:Y.shiftKey})&&(Y.preventDefault(),K.handled=!0),this.callBase(K))},isClickableElement:function(K){return!!K.closest("."+k).length},_renderCore:function(K){var Y=this.callBase(K);return this._updateCheckboxesClass(),Y},_updateCheckboxesClass:function(){var K=this.getTableElements(),Y=this.getController("selection"),J=Y.isSelectColumnVisible()&&!Y.isSelectionWithCheckboxes();(0,a.S6)(K,function(j,ee){(0,o.Z)(ee).toggleClass("dx-select-checkboxes-hidden",J)})}}}}}},3881:(kn,he,l)=>{"use strict";l.d(he,{G:()=>g});var o=l(9904),c=l(913),I=l(227),C=l(1828),f=l(5873),a=l(9813),p=l(9009),s=l(8225),g={defaultOptions:()=>({sorting:{mode:"single",ascendingText:p.Z.format("dxDataGrid-sortingAscendingText"),descendingText:p.Z.format("dxDataGrid-sortingDescendingText"),clearText:p.Z.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}),extenders:{views:{columnHeadersView:(0,f.l)({},a.Z,{_createRow(x){var b=this.callBase(x);return"header"===x.rowType&&c.Z.on(b,(0,s.V4)(I.u,"dxDataGridColumnHeadersView"),"td",this.createAction(y=>{this._processHeaderAction(y.event,b)})),b},_processHeaderAction:function(x,b){if((0,o.Z)(x.currentTarget).parent().get(0)===b.get(0)){var y=this,E=null,S=(0,o.Z)(x.currentTarget),O=S.parent().index(),w=-1;[].slice.call(y.getCellElements(O)).some((W,N)=>{if(W===S.get(0))return w=N,!0});var k=y._columnsController.getVisibleColumns(O)[w],R=y.getController("editing"),P=y.option("editing.mode");R&&R.isEditing()&&("batch"===P||"cell"===P)||!y._isSortableElement((0,o.Z)(x.target))||k&&!(0,C.$K)(k.groupIndex)&&!k.command&&(x.shiftKey?E="shift":(0,s.j1)(x)&&(E="ctrl"),setTimeout(()=>{y._columnsController.changeSortOrder(k.index,E)}))}},_renderCellContent(x,b){var y=b.column;!y.command&&"header"===b.rowType&&this._applyColumnState({name:"sort",rootElement:x,column:y,showColumnLines:this.option("showColumnLines")}),this.callBase.apply(this,arguments)},_columnOptionChanged(x){var b=x.changeTypes;1===b.length&&b.sorting?this._updateIndicators("sort"):this.callBase(x)},optionChanged(x){"sorting"===x.name?(this._invalidate(),x.handled=!0):this.callBase(x)}}),headerPanel:(0,f.l)({},a.Z,{_createGroupPanelItem(x,b){var y=this,E=y.callBase(...arguments);return c.Z.on(E,(0,s.V4)(I.u,"dxDataGridHeaderPanel"),y.createAction(()=>{y._processGroupItemAction(b.index)})),y._applyColumnState({name:"sort",rootElement:E,column:{alignment:y.option("rtlEnabled")?"right":"left",allowSorting:b.allowSorting,sortOrder:"desc"===b.sortOrder?"desc":"asc"},showColumnLines:!0}),E},_processGroupItemAction(x){setTimeout(()=>this.getController("columns").changeSortOrder(x))},optionChanged(x){"sorting"===x.name?(this._invalidate(),x.handled=!0):this.callBase(x)}})}}}},9813:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>d});var o=l(1828),c=l(9904),I="dx-sort",C="dx-sort-none",s="dx-sort-index-icon";const d={_applyColumnState:function(h){var g,x,b=this.option("sorting.mode"),y=h.rootElement,E=h.column,S=this._getIndicatorContainer(y);if("sort"===h.name){y.find("."+I).remove(),!S.children().length&&S.remove();var O="none"!==b&&E.allowSorting;return(0,o.$K)(E.groupIndex)||!O&&!(0,o.$K)(E.sortOrder)||(g="asc"===E.sortOrder?"ascending":"descending",x=this.callBase(h).toggleClass("dx-sort-up","asc"===E.sortOrder).toggleClass("dx-sort-down","desc"===E.sortOrder),this.getController&&!!this.getController("columns").columnOption("sortIndex:1")&&this.option("sorting.showSortIndexes")&&E.sortIndex>=0&&((0,c.Z)("<span>").addClass(s).text(E.sortIndex+1).appendTo(x),x.addClass("dx-sort-index")),O&&h.rootElement.addClass(this.addWidgetPrefix("action"))),(0,o.$K)(E.sortOrder)?this.setAria("sort",g,y):this.setAria("sort","none",y),x}return this.callBase(h)},_getIndicatorClassName:function(h){return"sort"===h?I:"sortIndex"===h?s:this.callBase(h)},_renderIndicator:function(h){var g=h.column,x=h.container,b=h.indicator;if("sort"===h.name){var y=this.option("rtlEnabled");if((0,o.$K)(g.sortOrder)||b&&b.addClass(C),x.children().length&&(!y&&"left"===h.columnAlignment||y&&"right"===h.columnAlignment))return void x.prepend(b)}this.callBase(h)},_updateIndicator:function(h,g,x){if("sort"!==x||!(0,o.$K)(g.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(h,g){var x=this.callBase(h);return g?x:x&&x.not("."+C)}}},5733:(kn,he,l)=>{"use strict";l.d(he,{t:()=>d});var o=l(7674),c=l(1828),I=l(5873),C=l(9006),f=l(4270),p=h=>{var g=h.getController("columns"),x=h.getController("selection"),b=h.getController("export"),y=h.getController("data");g&&g.columnsChanged.add(function(){h.updateState({columns:g.getUserState()})}),x&&x.selectionChanged.add(function(E){h.updateState({selectedRowKeys:E.selectedRowKeys,selectionFilter:E.selectionFilter})}),y&&(h._initialPageSize=h.option("paging.pageSize"),h._initialFilterValue=h.option("filterValue"),y.changed.add(function(){var E=(h=>{var g=h.getView("pagerView"),x=h.getController("data"),b={allowedPageSizes:g?g.getPageSizes():void 0,filterPanel:{filterEnabled:h.option("filterPanel.filterEnabled")},filterValue:h.option("filterValue"),focusedRowKey:h.option("focusedRowEnabled")?h.option("focusedRowKey"):void 0};return(0,I.l)(b,x.getUserState())})(h);h.updateState(E)})),b&&b.selectionOnlyChanged.add(function(){h.updateState({exportSelectionOnly:b.selectionOnly()})})},d={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:C.G},extenders:{views:{rowsView:{init:function(){var h=this,g=h.getController("data");h.callBase(),g.stateLoaded.add(function(){if(g.isLoaded()&&!g.getDataSource()){h.setLoading(!1),h.renderNoDataText();var x=h.component.getView("columnHeadersView");x&&x.render(),h.component._fireContentReadyAction()}})}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),p(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(h){var g=this.callBase.apply(this,arguments);return void 0!==h&&this.applyState((0,I.l)(!0,{},h)),g},updateState:function(h){if(this.isEnabled()){var g=this.state(),x=(0,I.l)({},g,h),b=(0,o.k3)(g),y=(0,o.k3)(x);(0,o.bY)(b,y)||(h=(0,I.l)(!0,{},h),(0,I.l)(this._state,h),this.save())}else(0,I.l)(this._state,h)},applyState:function(h){var g,x=h.allowedPageSizes,b=h.searchText,y=h.selectedRowKeys,E=h.selectionFilter,S=this.getController("export"),O=this.getController("columns"),w=this.getController("data"),T=this.option("scrolling.mode"),k="virtual"===T||"infinite"===T,R=!0===this.option("pager.visible")&&this.option("pager.showPageSizeSelector"),P=null===(g=this.getView("rowsView"))||void 0===g?void 0:g.hasHeight();this.component.beginUpdate(),O&&O.setUserState(h.columns),S&&S.selectionOnly(h.exportSelectionOnly),this.option("selection.deferred")||this.option("selectedRowKeys",y||[]),this.option("selectionFilter",E),x&&"auto"===this.option("pager.allowedPageSizes")&&(this.option("pager").allowedPageSizes=x),this.option("focusedRowEnabled")&&(this.option("focusedRowIndex",-1),this.option("focusedRowKey",h.focusedRowKey||null)),this.component.endUpdate(),this.option("searchPanel.text",b||""),this.option("filterValue",((h,g)=>{var x=h.getController("filterSync"),b=h.getController("columns");return x?g.columns||void 0!==g.filterValue?g.filterValue||x.getFilterValueFromColumns(g.columns):h._initialFilterValue||x.getFilterValueFromColumns(b.getColumns()):null})(this,h)),this.option("filterPanel.filterEnabled",!h.filterPanel||h.filterPanel.filterEnabled),this.option("paging.pageIndex",(!k||P)&&h.pageIndex||0),this.option("paging.pageSize",k&&!R||!(0,c.$K)(h.pageSize)?this._initialPageSize:h.pageSize),w&&w.reset()}},columns:{_shouldReturnVisibleColumns:function(){var h=this.callBase.apply(this,arguments),g=this.getController("stateStoring");return h&&(!g.isEnabled()||g.isLoaded())}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var h=this.callBase,g=this.getController("stateStoring");if(g.isEnabled()&&!g.isLoaded()){clearTimeout(this._restoreStateTimeoutID);var x=new f.BH;return this._restoreStateTimeoutID=setTimeout(()=>{g.load().always(()=>{this._restoreStateTimeoutID=null}).done(()=>{h.call(this),this.stateLoaded.fire(),x.resolve()}).fail(b=>{this.stateLoaded.fire(),this._handleLoadError(b||"Unknown error"),x.reject()})}),x.promise()}this.isStateLoading()||h.call(this)},isLoading:function(){var h=this.getController("stateStoring");return this.callBase()||h.isLoading()},isStateLoading:function(){return(0,c.$K)(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}},selection:{_fireSelectionChanged:function(h){var g=this.getController("stateStoring"),x=this.option("selection.deferred");g.isLoading()&&x||this.callBase.apply(this,arguments)}}}}}},9006:(kn,he,l)=>{"use strict";l.d(he,{G:()=>g});var x,b,o=l(913),c=l(4514),I=l(3390),C=l(8159),f=l(6718),a=l(5873),p=l(2718),s=l(1828),u=l(4270),d=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,h=function x(b){b&&(0,p.S6)(b,function(y,E){if((0,s.PO)(E)||Array.isArray(E))x(E);else if("string"==typeof E){var S=d.exec(E);S&&(b[y]=new Date(Date.UTC(+S[1],+S[2]-1,+S[3],+S[4],+S[5],+S[6])))}})},g=I.Z.ViewController.inherit((x=function(y){var E="sessionStorage"===y.type?(0,f.y)():(0,c.Jj)().localStorage;if(!E)throw new Error("E1007");return E},b=function(y){return(0,s.$K)(y.storageKey)?y.storageKey:"storage"},{_loadState:function(){var y=this.option("stateStoring");if("custom"===y.type)return y.customLoad&&y.customLoad();try{return JSON.parse(x(y).getItem(b(y)))}catch(E){C.Z.log(E.message)}},_saveState:function(y){var E=this.option("stateStoring");if("custom"!==E.type)try{x(E).setItem(b(E),JSON.stringify(y))}catch(S){C.Z.log(S.message)}else E.customSave&&E.customSave(y)},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var y=this;return y._state={},y._isLoaded=!1,y._isLoading=!1,y._windowUnloadHandler=function(){void 0!==y._savingTimeoutID&&y._saveState(y.state())},o.Z.on((0,c.Jj)(),"unload",y._windowUnloadHandler),y},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){this._isLoading=!0;var y=(0,u.p4)(this._loadState());return y.always(()=>{this._isLoaded=!0,this._isLoading=!1}).done(E=>{null!==E&&!(0,s.Qr)(E)&&this.state(E)}),y},state:function(y){var E=this;if(!arguments.length)return(0,a.l)(!0,{},E._state);E._state=(0,a.l)({},y),h(E._state)},save:function(){var y=this;clearTimeout(y._savingTimeoutID),y._savingTimeoutID=setTimeout(function(){y._saveState(y.state()),y._savingTimeoutID=void 0},y.option("stateStoring.savingTimeout"))},optionChanged:function(y){"stateStoring"===y.name?(this.isEnabled()&&!this.isLoading()&&this.load(),y.handled=!0):this.callBase(y)},dispose:function(){clearTimeout(this._savingTimeoutID),o.Z.off((0,c.Jj)(),"unload",this._windowUnloadHandler)}}))},2879:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>Ae});var o=l(4817),c=l(1805),I=l(9904),C=l(1828),f=l(4270),a=l(2135),p=l(9589),s=l(2718),u=l(5873),d=l(5450),h=l(6738),g=l(7674),x=l(4265),b=l(2701),y=l(5062),E=l(4514),S=l(913),O=l(7122),w=l(820),T=l(5981),k=l(9963),U="virtual",Y="scrolling.mode",j={year:function(ne){return ne&&ne.getFullYear()},month:function(ne){return ne&&ne.getMonth()+1},day:function(ne){return ne&&ne.getDate()},quarter:function(ne){return ne&&Math.floor(ne.getMonth()/3)+1},hour:function(ne){return ne&&ne.getHours()},minute:function(ne){return ne&&ne.getMinutes()},second:function(ne){return ne&&ne.getSeconds()}},ee=function(){var ne=arguments[1],fe=this.calculateCellValue(ne);if(!(0,C.$K)(fe))return null;if(q(this.dataType)){var _e=arguments[0];return j[_e](fe)}if("number"===this.dataType){var ie=arguments[0];return Math.floor(Number(fe)/ie)*ie}},G=function(ne,fe){return(0,C.mf)(ne)&&(0,C.mf)(fe)&&ne.originalCallback&&fe.originalCallback?ne.originalCallback===fe.originalCallback&&ne.columnIndex===fe.columnIndex:ne===fe};function q(ne){return"date"===ne||"datetime"===ne}var Z=function(ne){ne.get(0).textContent="\xa0"},X=function(ne){for(var fe=(0,b.G5)(ne=ne||[]),_e=0;_e<ne.length;_e++)ne&&ne[_e]&&void 0!==ne[_e].isExpanded&&(fe[_e].isExpanded=ne[_e].isExpanded),ne&&ne[_e]&&void 0!==ne[_e].groupInterval&&(fe[_e].groupInterval=ne[_e].groupInterval);return fe},M=function(ne,fe){var _e=y.Z.format(ne,fe.format)||ne&&ne.toString()||"",ie={value:ne,valueText:fe.getDisplayFormat?fe.getDisplayFormat(_e):_e,target:fe.target||"row",groupInterval:fe.groupInterval};return fe.customizeText?fe.customizeText.call(fe,ie):ie.valueText},se=function(ne,fe){var _e=ne.displayFormat||ne.columnCaption&&fe[ne.summaryType+"OtherColumn"]||fe[ne.summaryType];return M(ne.value,{format:ne.valueFormat,getDisplayFormat:function(ie){return _e?(0,p.WU)(_e,ie,ne.columnCaption):ie},customizeText:ne.customizeText})},ge=function(ne){var fe=ne.data&&ne.data(),_e=fe&&fe.dxComponents,ie=_e&&_e[0];return ie&&fe[ie]};const Ae={renderNoDataText:function(ne){if(ne=ne||this.element()){var fe=this.addWidgetPrefix("nodata"),_e=ne.find("."+fe).last(),ie=this._dataController.isEmpty(),de=this._dataController.isLoading();_e.length||(_e=(0,I.Z)("<span>").addClass(fe).appendTo(ne)),ie&&!de?_e.removeClass("dx-hidden").text(this._getNoDataText()):_e.addClass("dx-hidden")}},renderLoadPanel:function(ne,fe,_e){var ie;this._loadPanel&&this._loadPanel.$element().remove(),(ie=this.option("loadPanel"))&&("auto"===ie.enabled?!_e:ie.enabled)?(ie=(0,u.l)({shading:!1,message:ie.text,container:fe},ie),this._loadPanel=this._createComponent((0,I.Z)("<div>").appendTo(fe),x.Z,ie)):this._loadPanel=null},calculateLoadPanelPosition(ne){var fe=(0,I.Z)((0,E.Jj)());return(0,c.Cr)(ne)>(0,c.Cr)(fe)?{of:fe,boundary:ne,collision:"fit"}:{of:ne}},getIndexByKey:function(ne,fe,_e){var ie=-1;if(void 0!==ne&&Array.isArray(fe)){_e=arguments.length<=2?"key":_e;for(var de=0;de<fe.length;de++){var le=(0,C.$K)(_e)?fe[de][_e]:fe[de];if((0,g.bY)(ne,le)){ie=de;break}}}return ie},combineFilters:function(ne,fe){var _e=[];fe=fe||"and";for(var ie=0;ie<ne.length;ie++){var de;if(ne[ie]){if(1===(null===(de=ne[ie])||void 0===de?void 0:de.length)&&"!"===ne[ie][0]){if("and"===fe)return["!"];if("or"===fe)continue}_e.length&&_e.push(fe),_e.push(ne[ie])}}if(1===_e.length&&(_e=_e[0]),_e.length)return _e},checkChanges:function(ne,fe){for(var _e=0,ie=0;ie<fe.length;ie++)ne[fe[ie]]&&_e++;return ne.length&&ne.length===_e},equalFilterParameters:function ne(fe,_e){if(Array.isArray(fe)&&Array.isArray(_e)){if(fe.length!==_e.length)return!1;for(var ie=0;ie<fe.length;ie++)if(!ne(fe[ie],_e[ie]))return!1;return!0}return(0,C.mf)(fe)&&fe.columnIndex>=0&&(0,C.mf)(_e)&&_e.columnIndex>=0?fe.columnIndex===_e.columnIndex&&(0,h.Ex)(fe.filterValue)===(0,h.Ex)(_e.filterValue):(0,h.Ex)(fe)==(0,h.Ex)(_e)},proxyMethod:function(ne,fe,_e){ne[fe]||(ne[fe]=function(){var ie=this._dataSource;return ie?ie[fe].apply(ie,arguments):_e})},formatValue:M,getFormatOptionsByColumn:function(ne,fe){return{format:ne.format,getDisplayFormat:ne.getDisplayFormat,customizeText:ne.customizeText,target:fe,trueText:ne.trueText,falseText:ne.falseText}},getDisplayValue:function(ne,fe,_e,ie){return ne.displayValueMap&&void 0!==ne.displayValueMap[fe]?ne.displayValueMap[fe]:ne.calculateDisplayValue&&_e&&"group"!==ie?ne.calculateDisplayValue(_e):!ne.lookup||"group"===ie&&(ne.calculateGroupValue||ne.calculateDisplayValue)?fe:ne.lookup.calculateCellValue(fe)},getGroupRowSummaryText:function(ne,fe){for(var _e="(",ie=0;ie<ne.length;ie++)_e+=(ie>0?", ":"")+se(ne[ie],fe);return _e+")"},getSummaryText:se,normalizeSortingInfo:X,getFormatByDataType:function(ne){switch(ne){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(ne,fe){var _e=[],ie=ne.dataField||ne.name,de=a.Z.getGroupInterval(ne);return de?((0,s.S6)(de,function(le,pe){_e.push(fe?{selector:ie,groupInterval:pe,isExpanded:le<de.length-1}:ee.bind(ne,pe))}),_e):(fe?_e=[{selector:ie,isExpanded:!1}]:(_e=function(le){var pe=ne.calculateCellValue(le);return(void 0===pe||""===pe)&&(pe=null),pe},ne.sortingMethod&&(_e=[{selector:_e,compare:ne.sortingMethod.bind(ne)}])),_e)},equalSortParameters(ne,fe,_e){if(ne=X(ne),fe=X(fe),Array.isArray(ne)&&Array.isArray(fe)){if(ne.length!==fe.length)return!1;for(var ie=0;ie<ne.length;ie++)if(!G(ne[ie].selector,fe[ie].selector)||ne[ie].desc!==fe[ie].desc||ne[ie].groupInterval!==fe[ie].groupInterval||!_e&&Boolean(ne[ie].isExpanded)!==Boolean(fe[ie].isExpanded))return!1;return!0}return(!ne||!ne.length)==(!fe||!fe.length)},getPointsByColumns:function(ne,fe,_e,ie){for(var pe,Ee,re,de=ne.length,le=!1,ae=ie||0,te=[],oe=0;oe<=de;oe++){oe<de&&(Ee=(pe=ne.eq(oe)).offset(),re="rtl"===pe.css("direction"));var ye={index:ae,x:Ee?Ee.left+(!_e&&re^oe===de?(0,d.l)(pe[0]).width:0):0,y:Ee?Ee.top+(_e&&oe===de?(0,d.l)(pe[0]).height:0):0,columnIndex:ae};if(!_e&&oe>0){var Pe=ne.eq(oe-1).offset();Pe.top<ye.y&&(ye.y=Pe.top)}fe&&(le=fe(ye)),le||te.push(ye),ae++}return te},getExpandCellTemplate:function(){return{allowRenderToDetachedContainer:!0,render:function(ne,fe){var _e=(0,I.Z)(ne);if(!(0,C.$K)(fe.value)||fe.data&&fe.data.isContinuation||fe.row.isNewRow)Z(_e);else{var ie=fe.component.getView("rowsView");_e.addClass("dx-datagrid-expand").addClass("dx-selection-disabled"),(0,I.Z)("<div>").addClass(fe.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(_e),ie.setAria("label",ie.localize(fe.value?"dxDataGrid-ariaCollapse":"dxDataGrid-ariaExpand"),_e)}}}},setEmptyText:Z,isDateType:q,getSelectionRange:function(ne){try{if(ne)return{selectionStart:ne.selectionStart,selectionEnd:ne.selectionEnd}}catch{}return{}},setSelectionRange:function(ne,fe){try{ne&&ne.setSelectionRange&&ne.setSelectionRange(fe.selectionStart,fe.selectionEnd)}catch{}},focusAndSelectElement:function(ne,fe){var _e=fe.is(":focus");S.Z.trigger(fe,"focus");var ie=ne.option("editing.selectTextOnEditStart"),de=fe.get(0);if(!_e&&ie&&fe.is(".dx-texteditor-input")&&!fe.is("[readonly]")){var le=ge(fe.closest(".dx-texteditor"));(0,f.gx)(le&&le._loadItemDeferred).done(function(){de.select()})}},getWidgetInstance:ge,getLastResizableColumnIndex:function(ne,fe){var ie,_e=ne.some(Ee=>Ee&&!Ee.command&&!Ee.fixed&&!1!==Ee.allowResizing);for(ie=ne.length-1;ne[ie];ie--){var de=ne[ie];if(!(de.command||de.fixed||"adaptiveHidden"===(fe&&fe[ie])||_e&&!1===de.allowResizing))break}return ie},isElementInCurrentGrid:function(ne,fe){return!(!fe||!fe.length)&&fe.closest("."+ne.getWidgetContainerClass()).parent().is(ne.component.$element())},isVirtualRowRendering:function(ne){var fe=ne.option("scrolling.rowRenderingMode"),_e=ne.option(Y)===U,ie="infinite"===ne.option(Y);return!(!1!==ne.option("scrolling.legacyMode")||!_e&&!ie)||fe===U},getPixelRatio:function(ne){return ne.devicePixelRatio||1},getContentHeightLimit(ne){return ne.mozilla?8e6:15e6/this.getPixelRatio((0,E.Jj)())},normalizeLookupDataSource(ne){var fe;return ne.items?fe=ne.items:(0,C.mf)(fe=ne.dataSource)&&!k.Z.isWrapped(fe)&&(fe=fe({})),(0,T.aN)(fe)},getWrappedLookupDataSource(ne,fe,_e){if(!fe)return[];var ie=this.normalizeLookupDataSource(ne.lookup);if(ne.calculateCellValue!==ne.defaultCalculateCellValue)return ie;var pe,de=fe.remoteOperations().groupPaging,le=ne.displayField&&(0,C.HD)(ne.displayField),Ee=(0,o.Z)({},ie,{__dataGridSourceFilter:_e,load:ae=>{var re,oe,ye,te=new f.BH;return(re=ae,oe=function Fe(ne){return Array.isArray(ne)||(ne=[ne]),ne.map((fe,_e)=>(0,C.HD)(fe)?{selector:fe,isExpanded:_e<ne.length-1}:fe)}(le?[ne.dataField,ne.displayField]:ne.dataField),ye=new f.BH,!de&&pe?ye.resolve(pe):fe.load({filter:_e,group:oe,take:de?re.take:void 0,skip:de?re.skip:void 0}).done(Pe=>{pe=Pe,ye.resolve(Pe)}).fail(ye.fail),ye).done(re=>{var oe;if(0===re.length&&te.resolve([]),le){var ye=re.map(Ne=>{var ft;return{[ne.lookup.valueExpr]:Ne.key,[ne.lookup.displayExpr]:null!==(ft=ne.displayValueMap[Ne.key])&&void 0!==ft?ft:Ne.items[0].key}});oe=new O.o((0,o.Z)({},ie,ae,{store:new w.Z({data:ye,key:ne.lookup.valueExpr})}))}else{var Pe=this.combineFilters(re.flatMap(Ne=>Ne.key).map(Ne=>[ne.lookup.valueExpr,Ne]),"or");oe=new O.o((0,o.Z)({},ie,ae,{filter:this.combineFilters([Pe,ae.filter],"and")}))}de||oe.on("customizeStoreLoadOptions",Ne=>{Ne.storeLoadOptions.take=ae.take,Ne.storeLoadOptions.skip=ae.skip}),oe.load().done(te.resolve).fail(te.fail)}).fail(te.fail),te},key:ne.lookup.valueExpr,byKey(ae){var te=(0,f.BH)();return this.load({filter:[ne.lookup.valueExpr,"=",ae]}).done(re=>{te.resolve(re[0])}),te.promise()}});return Ee}}},7867:(kn,he,l)=>{"use strict";l.d(he,{n:()=>Ee});var o=l(1805),c=l(9904),I=l(913),C=l(3390),f=l(2879),a=l(1771),p=l(7674),s=l(2718),u=l(1828),d=l(5873),h=l(7),g=l(9009),x=l(219),b=l(8690),y=l(3191),E=l(9109),S=l(3576),O=l(8159),w=l(4270),T=l(1427),k=l(9589),R=l(4722),P="invalid",B="revert-tooltip",W="rowsview",V="invalid-message",Y="validator",J="dx-pending-indicator",j="dx-validation-pending",ee="content",G="__DX_INSERT_INDEX__",M="batch",se="cell",Fe=["popup","form"],fe="insert",ie="cancel",de=function(ae){return(0,u.$K)(ae)&&ae!==ie},le=function(ae,te){return void 0!==ae||void 0===ae&&te&&!te.isNewRow},Ee={defaultOptions:function(){return{editing:{texts:{validationCancelChanges:g.Z.format("dxDataGrid-validationCancelChanges")}}}},controllers:{validating:C.Z.Controller.inherit({init:function(){this._editingController=this.getController("editing"),this.createAction("onRowValidating"),this._validationState||this.initValidationState()},initValidationState(){this._validationState=[],this._validationStateCache={}},_rowIsValidated:function(ae){var te=this._getValidationData(ae?.key);return!!te&&!!te.validated},_getValidationData:function(ae,te){var ye,re=(0,p.k3)(ae),oe=(0,u.Kn)(re);return!(ye=oe?this._validationState.filter(Pe=>(0,p.bY)(Pe.key,ae))[0]:this._validationStateCache[re])&&te&&(this._validationState.push(ye={key:ae,isValid:!0}),oe||(this._validationStateCache[re]=ye)),ye},_getBrokenRules:function(ae,te){return te?te.brokenRules||te.brokenRule&&[te.brokenRule]:ae.brokenRules||[]},_rowValidating:function(ae,te){var re=new w.BH,oe=this._editingController.getChangeByKey(ae?.key),ye=this._getBrokenRules(ae,te),Ne={brokenRules:ye,isValid:te?te.isValid:ae.isValid,key:oe.key,newData:oe.data,oldData:this._editingController._getOldData(oe.key),promise:null,errorText:this.getHiddenValidatorsErrorText(ye)};return this.executeAction("onRowValidating",Ne),(0,w.gx)((0,w.p4)(Ne.promise)).always(function(){ae.isValid=Ne.isValid,ae.errorText=Ne.errorText,re.resolve(Ne)}),re.promise()},getHiddenValidatorsErrorText:function(ae){var te=[];return(0,s.S6)(ae,function(re,oe){var ye=oe.column,Pe=ye&&void 0!==ye.groupIndex&&!ye.showWhenGrouped,Ne=ye&&ye.visible;!oe.validator.$element().parent().length&&(!Ne||Pe)&&te.push(oe.message)}),te.join(", ")},validate:function(ae){var te=!0,re=this._editingController,oe=new w.BH,ye=[],Pe=re.getEditMode();if(ae=ae||"row"===Pe,this._isValidationInProgress)return oe.resolve(!1).promise();if(this._isValidationInProgress=!0,ae){re.addDeferred(oe);var Ne=re.getChanges();(0,s.S6)(Ne,(tt,Be)=>{var{type:mt,key:nn}=Be;if("remove"!==mt){var ke=this._getValidationData(nn,!0),$e=this.validateGroup(ke);ye.push($e),$e.done(me=>{ke.validated=!0,te=te&&me.isValid})}})}else if(this._currentCellValidator){var ft=this.validateGroup(this._currentCellValidator._findGroup());ye.push(ft),ft.done(tt=>{te=tt.isValid})}return(0,w.gx)(...ye).done(()=>{this._isValidationInProgress=!1,oe.resolve(te)}),oe.promise()},validateGroup:function(ae){var te,ye,re=new w.BH,oe=ae&&y.Z.getGroupConfig(ae);return null!=oe&&oe.validators.length&&(this.resetRowValidationResults(ae),ye=y.Z.validateGroup(ae)),(0,w.gx)((null===(te=ye)||void 0===te?void 0:te.complete)||ye).done(Pe=>{(0,w.gx)(this._rowValidating(ae,Pe)).done(re.resolve)}),re.promise()},isRowDataModified:ae=>!(0,u.Qr)(ae.data),updateValidationState:function(ae){var te=this._editingController.getEditMode(),oe=this._getValidationData(ae.key,!0);if(-1===Fe.indexOf(te)){if(ae.type===fe&&!this.isRowDataModified(ae))return void(oe.isValid=!0);if(this.setDisableApplyValidationResults(!0),y.Z.getGroupConfig(oe)){var Pe=y.Z.validateGroup(oe);(0,w.gx)(Pe.complete||Pe).done(Ne=>{oe.isValid=Ne.isValid,oe.brokenRules=Ne.brokenRules})}else(!oe.brokenRules||!oe.brokenRules.length)&&(oe.isValid=!0);this.setDisableApplyValidationResults(!1)}else oe.isValid=!0},setValidator:function(ae){this._currentCellValidator=ae},renderCellPendingIndicator:function(ae){var te=ae.find("."+J);if(!te.length){var re=ae;te=(0,c.Z)("<div>").appendTo(re).addClass(J),this._createComponent(te,T.Z),ae.addClass(j)}},disposeCellPendingIndicator:function(ae){var te=ae.find("."+J);if(te.length){var re=T.Z.getInstance(te);re&&(re.dispose(),re.$element().remove()),ae.removeClass(j)}},validationStatusChanged:function(ae){var te=ae.validator,re=te.option("validationGroup"),oe=te.option("dataGetter")().column;this.updateCellValidationResult({rowKey:re.key,columnIndex:oe.index,validationResult:ae})},validatorInitialized:function(ae){ae.component.on("validating",this.validationStatusChanged.bind(this)),ae.component.on("validated",this.validationStatusChanged.bind(this))},validatorDisposing:function(ae){var te=ae.component,re=te.option("validationGroup"),oe=te.option("dataGetter")().column,ye=this.getCellValidationResult({rowKey:re?.key,columnIndex:oe.index});de(ye)&&"pending"===ye.status&&this.cancelCellValidationResult({change:re,columnIndex:oe.index})},applyValidationResult:function(ae,te){var re=te.validator,oe=re.option("validationGroup"),ye=re.option("dataGetter")().column;if(te.brokenRules&&te.brokenRules.forEach(Be=>{Be.columnIndex=ye.index,Be.column=ye}),ae){var Pe=this.getCellValidationResult({rowKey:oe.key,columnIndex:ye.index}),Ne=de(Pe)&&Pe.disabledPendingId===te.id;if(this._disableApplyValidationResults||Ne)return;if("invalid"===te.status){var ft=ae.find(":focus");(0,h.si)(ft)||(I.Z.trigger(ft,"focus"),I.Z.trigger(ft,b.Z.down))}var tt=!ye.editCellTemplate&&this.getController("editorFactory").getEditorInstance(ae);"pending"===te.status?tt?tt.option("validationStatus","pending"):this.renderCellPendingIndicator(ae):tt?tt.option("validationStatus","valid"):this.disposeCellPendingIndicator(ae),ae.toggleClass(this.addWidgetPrefix(P),"invalid"===te.status)}},_syncInternalEditingData:function(ae){var te,re=this._editingController,oe=re.getChangeByKey(ae.key),ye=re._getOldData(ae.key),Pe=null===(te=ae.row)||void 0===te?void 0:te.oldData;oe&&Pe&&!ye&&re._addInternalData({key:ae.key,oldData:Pe})},createValidator:function(ae,te){var re=this._editingController,oe=ae.column,ye=oe.showEditorAlways;if(!(0,u.$K)(oe.command)&&oe.validationRules&&Array.isArray(oe.validationRules)&&oe.validationRules.length){var Ne=re.getIndexByKey(ae.key,re.getChanges())>-1;if(!Ne){ye||(ye=(this.getController("columns")?.getVisibleColumns()||[]).some(function(St){return St.showEditorAlways}));var nn,ke,Be=(0,p.bY)(this.option("editing.editRowKey"),ae.key),mt=re.isCellOrBatchEditMode()&&re.allowUpdating({row:ae.row});Ne=Be||mt&&ye,mt&&ye&&re._addInternalData({key:ae.key,oldData:null!==(nn=null===(ke=ae.row)||void 0===ke?void 0:ke.oldData)&&void 0!==nn?nn:ae.data})}if(Ne){if(te&&!te.length)return void O.Z.log("E1050");this._syncInternalEditingData(ae);var $e=this._getValidationData(ae.key,!0),me=()=>{var St=re.getChangeByKey($e?.key),Ct=oe.calculateCellValue(St?.data||{});return void 0!==Ct?Ct:ae.value},xe=te&&te.hasClass("dx-widget");te&&te.addClass(this.addWidgetPrefix(Y));var Te=new E.Z(te||(0,c.Z)("<div>"),{name:oe.caption,validationRules:(0,d.l)(!0,[],oe.validationRules),validationGroup:$e,adapter:xe?null:{getValue:me,applyValidationResults:St=>{this.applyValidationResult(te,St)}},dataGetter:function(){var St=$e?.key,Ct=re.getChangeByKey(St),Rt=re._getOldData(St);return{data:(0,a.FL)(Rt,Ct?.data),column:oe}},onInitialized:this.validatorInitialized.bind(this),onDisposing:this.validatorDisposing.bind(this)});if(xe){var Ye=Te.option("adapter");Ye&&(Ye.getValue=me,Ye.validationRequestsCallbacks=[],Ye.bypass=()=>ae.row.isNewRow&&!this._isValidationInProgress&&!re.isCellModified(ae))}return Te}}},setDisableApplyValidationResults:function(ae){this._disableApplyValidationResults=ae},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults},isCurrentValidatorProcessing:function(ae){var{rowKey:te,columnIndex:re}=ae;return this._currentCellValidator&&(0,p.bY)(this._currentCellValidator.option("validationGroup").key,te)&&this._currentCellValidator.option("dataGetter")().column.index===re},validateCell:function(ae){var te={rowKey:ae.option("validationGroup").key,columnIndex:ae.option("dataGetter")().column.index},re=this.getCellValidationResult(te),oe=de(re);oe||(re=ae.validate());var ye=new w.BH,Pe=ae.option("adapter");return oe&&"pending"===re.status&&(this.updateCellValidationResult(te),Pe.applyValidationResults(re)),(0,w.gx)(re.complete||re).done(Ne=>{oe&&Pe.applyValidationResults(Ne),ye.resolve(Ne)}),ye.promise()},updateCellValidationResult:function(ae){var{rowKey:te,columnIndex:re,validationResult:oe}=ae,ye=this._getValidationData(te);if(ye){var Pe;if(ye.validationResults||(ye.validationResults={}),oe){if(Pe=(0,d.l)({},oe),ye.validationResults[re]=Pe,"pending"===oe.status&&(this._editingController.getEditMode()===se&&(Pe.deferred=new w.BH,Pe.complete.always(()=>{Pe.deferred.resolve()}),this._editingController.addDeferred(Pe.deferred)),this._disableApplyValidationResults))return void(Pe.disabledPendingId=oe.id)}else Pe=ye.validationResults[re];Pe&&Pe.disabledPendingId&&delete Pe.disabledPendingId}},getCellValidationResult:function(ae){var te,{rowKey:re,columnIndex:oe}=ae,ye=this._getValidationData(re,!0);return null==ye||null===(te=ye.validationResults)||void 0===te?void 0:te[oe]},removeCellValidationResult:function(ae){var{change:te,columnIndex:re}=ae,oe=this._getValidationData(te?.key);oe&&oe.validationResults&&(this.cancelCellValidationResult({change:te,columnIndex:re}),delete oe.validationResults[re])},cancelCellValidationResult:function(ae){var{change:te,columnIndex:re}=ae,oe=this._getValidationData(te.key);if(te&&oe.validationResults){var ye=oe.validationResults[re];ye&&(ye.deferred&&ye.deferred.reject(ie),oe.validationResults[re]=ie)}},resetRowValidationResults:function(ae){ae&&(ae.validationResults&&delete ae.validationResults,delete ae.validated)},isInvalidCell:function(ae){var{rowKey:te,columnIndex:re}=ae,oe=this.getCellValidationResult({rowKey:te,columnIndex:re});return de(oe)&&"invalid"===oe.status},getCellValidator:function(ae){var{rowKey:te,columnIndex:re}=ae,oe=this._getValidationData(te),ye=oe&&y.Z.getGroupConfig(oe),Pe=ye&&ye.validators;return Pe&&Pe.filter(Ne=>{var ft=Ne.option("dataGetter")().column;return!!ft&&ft.index===re})[0]},setCellValidationStatus:function(ae){var te=this.getCellValidationResult({rowKey:ae.key,columnIndex:ae.column.index});(0,u.$K)(te)?ae.validationStatus=te!==ie?te.status:ie:delete ae.validationStatus}})},extenders:{controllers:{editing:{_addChange:function(ae){var te=this.callBase.apply(this,arguments),re=this.getController("validating");return te&&"remove"!==ae.type&&re.updateValidationState(te),te},_handleChangesChange:function(ae){this.callBase.apply(this,arguments);var te=this.getController("validating");ae.value.forEach(re=>{void 0===te._getValidationData(re.key)&&te.updateValidationState(re)})},_updateRowAndPageIndices:function(){var ae=this,te=ae.getView("rowsView").getTopVisibleItemIndex(),re=te;(0,s.S6)(ae.getChanges(),(oe,ye)=>{var{key:Pe,type:Ne}=ye,ft=this.getController("validating")._getValidationData(Pe);ft&&!ft.isValid&&ft.pageIndex!==ae._pageIndex&&(ft.pageIndex=ae._pageIndex,ft.rowIndex=Ne===fe?te:re,re++)})},_getValidationGroupsInForm:function(ae){return{validationGroup:this.getController("validating")._getValidationData(ae.key,!0)}},_validateEditFormAfterUpdate:function(ae,te){te&&this._editForm&&this._editForm.validate(),this.callBase.apply(this,arguments)},_prepareEditCell:function(ae){var te=this.callBase.apply(this,arguments),re=this.getController("validating");return te&&ae.column.showEditorAlways&&re.updateValidationState({key:ae.key}),te},processItems:function(ae,te){var re=this.getChanges(),oe=this.getController("data"),ye=this.getController("validating"),Pe=(ae=this.callBase(ae,te)).length;return this.getEditMode()===M&&"prepend"!==te&&"append"!==te&&re.forEach(ft=>{var Be=ye._getValidationData(ft.key);Be&&ft.type&&Be.pageIndex===this._pageIndex&&ft?.pageIndex!==this._pageIndex&&function(ft,tt){var ke,me,xe,Te,Be={key:ft.key};if(me=-1,xe=(ke=ft).type===fe,Te=ke.key,(0,s.S6)(ae,function(Ye,St){if((0,p.bY)(Te,xe?St.key:oe.keyOf(St)))return me=Ye,!1}),!(me>=0)){tt.rowIndex=tt.rowIndex>Pe?tt.rowIndex%Pe:tt.rowIndex;var nn=tt.rowIndex;Be[G]=1,ae.splice(nn,0,Be)}}(ft,Be)}),ae},processDataItem:function(ae){var te=ae.data[G],re=te?ae.data.key:ae.key,oe=this.getEditMode();if(oe===M&&te&&re){var ye=this.getChanges(),Pe=f.Z.getIndexByKey(re,ye);if(Pe>=0){var Ne=ye[Pe];if(Ne.type!==fe){var ft=this._getOldData(Ne.key);ae.data=(0,d.l)(!0,{},ft,Ne.data),ae.key=re}}}this.callBase.apply(this,arguments)},_createInvisibleColumnValidators:function(ae){var te=this,re=this.getController("validating"),oe=this.getController("columns"),ye=oe.getColumns(),Pe=oe.getInvisibleColumns().filter(Be=>!Be.isBand),Ne=oe.getGroupColumns().filter(Be=>!Be.showWhenGrouped&&-1===Pe.indexOf(Be)),ft=[],tt=(Be,mt)=>this._dataController.getRowIndexByKey(mt)>=0&&Pe.indexOf(Be)<0;return Pe.push(...Ne),-1===Fe.indexOf(this.getEditMode())&&(0,s.S6)(ye,function(Be,mt){ae.forEach(function(nn){var ke;if(!tt(mt,nn.key)){if(nn.type===fe)ke=nn.data;else if("update"===nn.type){var $e=te._getOldData(nn.key);ke=(0,a.FL)($e,nn.data)}if(ke){var me=re.createValidator({column:mt,key:nn.key,value:mt.calculateCellValue(ke)});me&&ft.push(me)}}})}),function(){ft.forEach(function(Be){Be.dispose()})}},_beforeSaveEditData:function(ae,te){var re=this.callBase.apply(this,arguments),oe=this.getController("validating"),ye=oe._getValidationData(ae?.key);if(ae){var Pe="remove"===ae.type||ye.isValid;re=re||!Pe}else{var Ne=this._createInvisibleColumnValidators(this.getChanges());re=new w.BH,this.executeOperation(re,()=>{oe.validate(!0).done(ft=>{switch(Ne(),this._updateRowAndPageIndices(),this.getEditMode()){case se:ft||this._focusEditingCell();break;case M:ft||(this._resetEditRowKey(),this._resetEditColumnName(),this.getController("data").updateItems())}re.resolve(!ft)})})}return re.promise?re.promise():re},_beforeEditCell:function(ae,te,re){var oe=this.callBase(ae,te,re);if(this.getEditMode()===se){var ye=this._rowsView._getCellElement(ae,te),Pe=ye&&ye.data("dxValidator"),Ne=ye&&ye.closest(".dx-row").data("options"),ft=Pe&&Pe.option("adapter").getValue();if(Pe&&le(ft,Ne)){var tt=this.getController("validating"),Be=new w.BH;return(0,w.gx)(tt.validateCell(Pe),oe).done((mt,nn)=>{Be.resolve("valid"===mt.status&&nn)}),Be.promise()}if(!Pe)return oe}},_afterSaveEditData:function(ae){var te,re=this.getEditMode()===se;if((0,s.S6)(this.getChanges(),(tt,Be)=>{var mt=this._showErrorRow(Be);te=te||mt}),te){var oe=this._rowsView.getScrollable();oe&&(oe.update(),oe.scrollToElement(te))}if(ae&&re&&this._needUpdateRow()){var ye=this.getEditRowIndex();this._dataController.updateItems({changeType:"update",rowIndices:[ye]}),this._focusEditingCell()}else if(!ae){var Pe=!0;re&&(Pe=!(this.getController("columns").getColumns().filter(tt=>{var Be;return tt.showEditorAlways&&(null===(Be=tt.validationRules)||void 0===Be?void 0:Be.length)>0}).length>0)),Pe&&this.getController("validating").initValidationState()}},_handleDataChanged:function(ae){var te=this.getController("validating")._validationState;"standard"===this.option("scrolling.mode")&&this.resetRowAndPageIndices(),"prepend"===ae.changeType&&(0,s.S6)(te,function(re,oe){oe.rowIndex+=ae.items.length}),this.callBase(ae)},resetRowAndPageIndices:function(){var ae=this.getController("validating")._validationState;(0,s.S6)(ae,(te,re)=>{re.pageIndex!==this._pageIndex&&(delete re.pageIndex,delete re.rowIndex)})},_beforeCancelEditData:function(){this.getController("validating").initValidationState(),this.callBase()},_showErrorRow:function(ae){var te,re=this.getController("errorHandling"),oe=this.getController("data").items(),ye=this.getIndexByKey(ae.key,oe),Pe=this.getController("validating")._getValidationData(ae.key);if((null==Pe||!Pe.isValid)&&null!=Pe&&Pe.errorText&&ye>=0)return te=this.getPopupContent(),re&&re.renderErrorRow(Pe?.errorText,ye,te)},updateFieldValue:function(ae){var te=this.getController("validating"),re=new w.BH;return te.removeCellValidationResult({change:this.getChangeByKey(ae.key),columnIndex:ae.column.index}),this.callBase.apply(this,arguments).done(()=>{var oe=te.getCellValidator({rowKey:ae.key,columnIndex:ae.column.index});(0,w.gx)(oe&&te.validateCell(oe)).done(ye=>{this.getController("editorFactory").refocus(),re.resolve(ye)})}),re.promise()},highlightDataCell:function(ae,te){this.callBase.apply(this,arguments);var re=this.getController("validating");re.setCellValidationStatus(te);var oe=!!te.setValue,ye=this.isCellModified(te),Pe=(0,u.$K)(te.validationStatus),Ne=ye&&te.column.setCellValue||oe&&!ye&&!(te.row.isNewRow||!Pe);if(Ne){var ft=ae.data("dxValidator");ft&&(0,w.gx)(this.getController("validating").validateCell(ft)).done(()=>{re.setCellValidationStatus(te)})}},getChangeByKey:function(ae){var te=this.getChanges();return te[f.Z.getIndexByKey(ae,te)]},isCellModified:function(ae){var te=this.callBase(ae),re=this.getChangeByKey(ae.key),oe=!!ae.row&&this.getController("validating").isInvalidCell({rowKey:ae.key,columnIndex:ae.column.index});return te||this.getController("validating")._rowIsValidated(re)&&oe}},editorFactory:{_showRevertButton:function(ae){if(ae&&ae.length){var te=this._rowsView.element().find("."+this.addWidgetPrefix(B)),re=ae.closest(".".concat(this.addWidgetPrefix(ee)));te&&te.remove(),te=(0,c.Z)("<div>").addClass(this.addWidgetPrefix(B)).appendTo(ae);var oe={animation:null,visible:!0,width:"auto",height:"auto",shading:!1,container:re,propagateOutsideClick:!0,hideOnOutsideClick:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,contentTemplate:()=>{var ye=(0,c.Z)("<div>").addClass("dx-revert-button"),Pe={icon:"revert",hint:this.option("editing.texts.validationCancelChanges"),onClick:()=>{this._editingController.cancelEditData()}};return new x.Z(ye,Pe).$element()},position:{my:"left top",at:"right top",offset:"1 0",collision:"flip",boundaryOffset:"0 0",boundary:this._rowsView.element(),of:ae},onPositioned:this._positionedHandler.bind(this)};return new S.Z(te,oe)}},_hideFixedGroupCell:function(ae,te){var re,oe,ye=this._rowsView.isFixedColumns(),Pe=this._editingController.isFormOrPopupEditMode();if(ye&&!Pe){var Ne=ae.closest(".dx-row").next().data("options");Ne&&"group"===Ne.rowType&&(re=(0,c.Z)(this._rowsView.getRowElement(Ne.rowIndex)).last(),(oe=re.find(".dx-group-cell")).length&&"hidden"!==oe.get(0).style.visibility&&(oe.css("visibility","hidden"),te.onDisposing=function(){oe.css("visibility","")}))}},_positionedHandler:function(ae,te){if(!ae.component.__skipPositionProcessing){var re=(0,c.Z)(ae.element).hasClass(this.addWidgetPrefix(B)),oe=!re&&this._rowsView.updateFreeSpaceRowHeight(),ye=this._normalizeValidationMessagePositionAndMaxWidth(ae,re,te);ae.component.__skipPositionProcessing=!(!oe&&!ye),ye?ae.component.option(ye):oe&&ae.component.repaint()}},_showValidationMessage:function(ae,te,re,oe){var ye=ae.find(".dx-dropdowneditor-overlay").data("dxPopup"),Pe=ye&&ye.option("visible"),Ne=Pe?"top right":"top "+re,ft=Pe?"top left":"bottom "+re,tt=ae.closest(".".concat(this.addWidgetPrefix(ee))),Be="";te&&te.forEach(function($e){Be+=(Be.length?"<br/>":"")+(0,k.HZ)($e)});var mt=this.addWidgetPrefix(V);this._rowsView.element().find("."+mt).remove();var nn=(0,c.Z)("<div>").addClass("dx-invalid-message").addClass("dx-invalid-message-always").addClass(mt).html(Be).appendTo(ae),ke={container:tt,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:!Pe&&R.Z.mozilla?-1:0},my:Ne,at:ft,of:ae},onPositioned:$e=>{this._positionedHandler($e,Pe),this._shiftValidationMessageIfNeed($e.component.$content(),oe&&oe.$content(),ae)}};this._hideFixedGroupCell(ae,ke),new S.Z(nn,ke)},_normalizeValidationMessagePositionAndMaxWidth:function(ae,te,re){var xe,Te,Ye,oe=this._columnsController.getFixedColumns();if(oe&&oe.length){var ye,tt,Be,Pe=!te&&(tt=(0,c.Z)(ae.element).closest("tr").index(),Be=(0,c.Z)(this._rowsView.getRowElement(tt)).first().children().filter(":not(.dx-hidden-cell)"),this._rowsView._getWidths(Be).reduce((xe,Te)=>xe+Te,0)),mt=ae.component.$content(),nn=(0,o.Y_)(mt,!0),ke=!te&&nn>Pe,$e=this._rowsView.getCellIndex((0,c.Z)(ae.element).closest("td")),me=((xe=oe).some((St,Ct)=>{if("transparent"===St.command)return Te=0===Ct?-1:Ct,Ye=Ct===xe.length-1?-1:Ct+St.colspan-1,!0}),{startColumnIndex:Te,endColumnIndex:Ye});return te||$e!==me.startColumnIndex&&!ke?$e===me.endColumnIndex&&(ye={collision:"none flip",my:"top right",at:te||re?"top left":"bottom right"},te&&(ye.offset="-1 0")):ye={collision:"none flip",my:"top left",at:re?"top right":"bottom left"},ye&&{position:ye,maxWidth:ke?Pe-2:void 0}}},_shiftValidationMessageIfNeed:function(ae,te,re){if(te){var oe=ae.offset(),ye=te.offset();if(oe.top===ye.top&&oe.left+(0,o.dz)(ae)>ye.left){var Pe=(0,o.dz)(te)+2;ae.css("left",ye.left<re.offset().left?-Pe:Pe)}}},_getTooltipsSelector:function(){var ae=this.addWidgetPrefix(V);return".dx-editor-cell ."+this.addWidgetPrefix(B)+", .dx-editor-cell ."+ae+", .dx-cell-modified ."+ae},init:function(){this.callBase(),this._editingController=this.getController("editing"),this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView")},loseFocus:function(ae){ae||this.getController("validating").setValidator(null),this.callBase()},updateCellState:function(ae,te,re){var oe,mt,ye=ae?.closest(this._getFocusCellSelector()),Pe=null!=ye&&ye.is("td")?ye:null,Ne=ye?.closest(".dx-row").data("options"),ft=Ne?this.getController("editing").getChangeByKey(Ne.key):null,tt=Pe&&this.getController("columns").getVisibleColumns()[Pe.index()],Be=void 0!==(null==ft||null===(oe=ft.data)||void 0===oe?void 0:oe[tt?.name])&&!this._editingController.isSaving();if(("invalid"===te?.status||Be)&&this._editingController.getEditMode()===se&&(mt=this._showRevertButton(ye)),te&&"invalid"===te.status&&Pe&&tt&&te&&te.brokenRules){var ke=[];te.brokenRules.forEach(function($e){$e.message&&ke.push($e.message)}),ke.length&&this._showValidationMessage(ye,ke,tt.alignment||"left",mt)}!re&&this._rowsView.element()&&this._rowsView.updateFreeSpaceRowHeight()},focus:function(ae,te){if(!arguments.length)return this.callBase();var re=ae&&ae.closest("."+this.addWidgetPrefix(W)).find(this._getTooltipsSelector());if(re&&re.remove(),null!=ae&&ae.hasClass("dx-row")||null!=ae&&ae.hasClass("dx-master-detail-cell"))return this.callBase(ae,te);var Be,oe=ae?.closest(this._getFocusCellSelector()),ye=this.callBase,Pe=oe&&(oe.data("dxValidator")||ae.find("."+this.addWidgetPrefix(Y)).eq(0).data("dxValidator")),Ne=oe&&oe.closest(".dx-row").data("options"),ft=this.getController("editing"),tt=Ne?ft.getChangeByKey(Ne.key):null,mt=this.getController("validating");if(Pe){mt.setValidator(Pe);var nn=Pe.option("adapter").getValue();if(le(nn,Ne)||mt._rowIsValidated(tt))return ft.waitForDeferredOperations().done(()=>{(0,w.gx)(mt.validateCell(Pe)).done(ke=>{var $e=(Be=ke).validator.option("dataGetter")().column;tt&&$e&&!mt.isCurrentValidatorProcessing({rowKey:tt.key,columnIndex:$e.index})||("invalid"===Be.status&&(te=!0),this.updateCellState(ae,Be,te),ye.call(this,ae,te))})}),this.callBase(ae,te)}return this.updateCellState(ae,Be,te),this.callBase(ae,te)},getEditorInstance:function(ae){var te=ae.find(".dx-texteditor").eq(0);return f.Z.getWidgetInstance(te)}},data:{_getValidationStatus:function(ae){return(de(ae)?ae.status:ae)||"valid"},_isCellChanged:function(ae,te,re,oe,ye){var Pe,Ne,ft=null===(Pe=ae.cells)||void 0===Pe?void 0:Pe[oe],tt=this._getValidationStatus({status:ft?.validationStatus}),Be=this.getController("validating"),mt=Be.getCellValidationResult({rowKey:ae.key,columnIndex:oe}),nn=Be._getValidationData(ae.key),ke=this._getValidationStatus(mt),$e=JSON.stringify(te.modifiedValues)!==JSON.stringify(ae.modifiedValues),me=tt!==ke&&$e,xe=(0,c.Z)(ft?.cellElement).hasClass(this.addWidgetPrefix(P)),Te=null==ft||null===(Ne=ft.column.validationRules)||void 0===Ne?void 0:Ne.length,Ye=ae.isEditing!==te.isEditing&&Te,St=me||nn.isValid&&xe;return!(!Ye&&!St)||this.callBase.apply(this,arguments)}}},views:{rowsView:{updateFreeSpaceRowHeight:function(ae){var te,re,oe,ye=this.element(),Pe=ye&&ye.find("."+this.addWidgetPrefix(V)+" .dx-overlay-content");if(this.callBase(ae),Pe&&Pe.length&&(te=this._getRowElements(),(re=(oe=this._getFreeSpaceRowElements(ae)).first())&&1===te.length&&(!re.is(":visible")||(0,o.zp)(Pe)>(0,o.zp)(re))))return oe.show(),(0,o.QQ)(oe,(0,o.zp)(Pe)),!0},_formItemPrepared:function(ae,te){this.callBase.apply(this,arguments),(0,p.Su)(()=>{var re=te.find(".dx-widget").first();re.length&&!re.children().length||this.getController("validating").createValidator(ae,re)})},_cellPrepared:function(ae,te){this.getController("editing").isFormOrPopupEditMode()||this.getController("validating").createValidator(te,ae),this.callBase.apply(this,arguments)},_restoreErrorRow:function(ae){var te=this.getController("editing");te&&te.hasChanges()&&this._getRowElements(ae).each((re,oe)=>{var ye=(0,c.Z)(oe).data("options");if(ye){var Pe=te.getChangeByKey(ye.key);Pe&&te._showErrorRow(Pe)}})}}}}}},7209:(kn,he,l)=>{"use strict";l.d(he,{t:()=>u});var d,o=l(1805),c=l(4514),I=l(9853),C=l(1828),a={_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(d){var h=this,g=this.getScrollable(),x=d.scrollOffset.left;h.callBase.apply(h,arguments),h.option("rtlEnabled")&&g&&(x=(0,o.dz)(g.$content())-(0,o.dz)(g.$element())-x),h._columnsController.setScrollPosition(x)}},u={defaultOptions:function(){return{scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}},extenders:{controllers:{columns:(d=function(g){return g.map(x=>x.visibleWidth||parseFloat(x.width)||50)},{init:function(){var g=this;g.callBase.apply(this,arguments),g._beginPageIndex=null,g._endPageIndex=null,g._position=0,g._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(g){for(var x=this.getVisibleColumns(void 0,!0),b=d(x),y=0,E=0;E<b.length;E++){if(y>=g)return Math.floor(E/this.getColumnPageSize());y+=b[E]}return 0},getTotalWidth:function(){var g=this.option("width");return"number"==typeof g?g:this.getController("resizing")._lastWidth||(0,o.Y_)(this.component.$element())},getEndPageIndex:function(g){var x=this.getVisibleColumns(void 0,!0),b=d(x),y=0;g+=this.getTotalWidth();for(var E=0;E<b.length;E++){if(y>=g)return Math.ceil(E/this.getColumnPageSize());y+=b[E]}return Math.ceil(b.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var g=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,virtualColumnsScrolling:!0,length:2}}),this._renderTime=new Date-g},getScrollingTimeout:function(){var g=this.option("scrolling.columnRenderingThreshold"),x=this.option("scrolling.renderAsync"),b=0;return(!(0,C.$K)(x)&&this._renderTime>g||x)&&(b=this.option("scrolling.timeout")),b},setScrollPosition:function(g){var x=this.getScrollingTimeout();x>0?(clearTimeout(this._changedTimeout),this._changedTimeout=setTimeout(()=>{this._setScrollPositionCore(g)},x)):this._setScrollPositionCore(g)},isVirtualMode:function(){return(0,c.Ym)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(g){if(this.isVirtualMode()){var x=this.getBeginPageIndex(g),b=this.getEndPageIndex(g),y=g<this._position?this._beginPageIndex>x:this._endPageIndex<b;this._position=g,y&&(this._beginPageIndex=x,this._endPageIndex=b,this._fireColumnsChanged())}},getFixedColumns:function(g,x){var b=this.callBase(g);if(this.isVirtualMode()&&!x&&b.length){var y=b.map(E=>E.command).indexOf("transparent");return b[y].colspan=this.getVisibleColumns().length-this.callBase().length+1,b}return b},_compileVisibleColumns:function(g,x){var b;if(x||!this.isVirtualMode()||!this._shouldReturnVisibleColumns())return this.callBase(g);null!==(b=this._columns)&&void 0!==b&&b.length&&!(0,C.$K)(this._beginPageIndex)&&!(0,C.$K)(this._endPageIndex)&&(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));var y=this._beginPageIndex,E=this._endPageIndex,S=g+"-"+y+"-"+E;if(this._virtualVisibleColumns[S])return this._virtualVisibleColumns[S];var O=this.callBase(),w=this.getRowCount(),T=this.getColumnPageSize(),k=y*T,R=E*T,P=this.getFixedColumns(void 0,!0),B=P.map(q=>q.command).indexOf("transparent"),W=P.length?B:0,N=O.slice(0,W),V=O.slice(W,k),U=d(V).reduce((q,Z)=>q+Z,0);U||(k=0);var K=P.length?P.length-B-1:0,Y=O.slice(O.length-K),J=O.slice(R,O.length-K),j=d(J).reduce((q,Z)=>q+Z,0);if(j||(R=O.length),w>1&&"number"==typeof g){for(var ee=[],G=0;G<w;G++)ee.push(this.callBase(G));N=(0,I.P)(ee,0,N.length)[g]||[],Y=(0,I.P)(ee,O.length-Y.length,O.length)[g]||[],O=(0,I.P)(ee,k,R)[g]||[]}else O=O.slice(k,R);return U&&(O.unshift({command:"virtual",width:U}),O=N.concat(O)),j&&(O.push({command:"virtual",width:j}),O=O.concat(Y)),this._virtualVisibleColumns[S]=O,O},getColumnIndexOffset:function(){var g=0;if(this._beginPageIndex>0){var b=this.getFixedColumns().map(E=>E.command).indexOf("transparent"),y=b>=0?b:0;g=this._beginPageIndex*this.getColumnPageSize()-y-1}return g>0?g:0},dispose:function(){clearTimeout(this._changedTimeout),this.callBase.apply(this,arguments)}})},views:{columnHeadersView:{_renderCore:function(){var d=this.callBase.apply(this,arguments);return this._columnsController.isVirtualMode()&&this._updateScrollLeftPosition(),d}},rowsView:a}}}},9853:(kn,he,l)=>{"use strict";l.d(he,{L:()=>c,P:()=>I});var o=l(5873);function c(C,f,a,p,s,u){u=u||[],(p=p||[])[a=a||0]=p[a]||0;var x,d=C[a],g=0;if(d){for(x=u[a]+1||0;x<d.length;x++){var b=d[x],y=x+p[a],E=b.colspan||1;if(c(C,f,a+(b.rowspan||1),p,E,u),p[a]+=E-1,g+=E,b.rowspan)for(var S=a+1;S<a+b.rowspan;S++)p[S]=p[S]||0,p[S]+=b.colspan||1;if(!1===f(b,y,a,x)||void 0!==s&&g>=s)break}u[a]=x}}function I(C,f,a){var p=[];c(C,function(u,d,h){var x,g=u,b=g.colspan||1,y=d+b-1>=f&&d<a;if(p[h]=p[h]||[],y)d<f?(x=b-(f-d),d=f):x=b,d+x>a&&(x=a-d),x!==b&&(g=(0,o.l)({},g,{colspan:x})),p[h].push(g);else if(d>a)return!1});for(var s=0;s<p.length;s++)p[s]=p[s]||[];return p}},7031:(kn,he,l)=>{"use strict";l.d(he,{b:()=>G});var q,Z,o=l(1805),c=l(9904),I=l(4514),C=l(7954),f=l(2879),a=l(2718),p=l(4270),s=l(1427),u=l(4722),d=l(5450),h=l(6520),g=l(1828),x="bottom-load-panel",b="table-content",E="content",S="dx-freespace-row",w="dx-virtual-row",B="scrolling.legacyMode",W="paging.pageIndex",N=function(q){return"virtual"===q.option("scrolling.mode")},V=function(q){return"infinite"===q.option("scrolling.mode")},U=function(q){return N(q)||V(q)},K=function(q,Z,X,M){for(var se=0;se<Z+1;se++){var ge=q[X?q.length-1-se:se];ge&&!M(ge,se===Z,X)&&Z++}return Z},Y=function(q,Z){return"data"===q.rowType&&!q.isNewRow||"group"===q.rowType&&Z.isGroupItemCountable(q.data)},J=function(q){return q.forEach(function(Z,X){Z.rowIndex=X}),q},j=(q=function(X){var M=X._virtualScrollController.beginPageIndex(-1);N(X)&&(M<0||X.viewportSize()>=0&&X.getViewportItemIndex()>=0&&(M*X.pageSize()>X.getViewportItemIndex()||M*X.pageSize()+X.itemsCount()<X.getViewportItemIndex()+X.viewportSize())&&X._dataSource.isLoading()?X._isLoading||(X._isLoading=!0,X.loadingChanged.fire(!0)):X._isLoading&&(X._isLoading=!1,X.loadingChanged.fire(!1)))},Z={init:function(){this.callBase.apply(this,arguments),this._items=[],this._totalCount=-1,this._isLoaded=!0,this._loadPageCount=1,this._virtualScrollController=new C.z(this.component,this._getVirtualScrollDataOptions())},_getVirtualScrollDataOptions:function(){var X=this;return{pageSize:function(){return X.pageSize()},totalItemsCount:function(){return X.totalItemsCount()},hasKnownLastPage:function(){return X.hasKnownLastPage()},pageIndex:function(M){return X._dataSource.pageIndex(M)},isLoading:function(){return X._dataSource.isLoading()&&!X.isCustomLoading()},pageCount:function(){return X.pageCount()},load:function(){return X._dataSource.load()},updateLoading:function(){q(X)},itemsCount:function(){return X.itemsCount(!0)},items:function(){return X._dataSource.items()},viewportItems:function(M){return M&&(X._items=M),X._items},onChanged:function(M){X.changed.fire(M)},changingDuration:function(M){return X.isLoading()?300:X._renderTime||0}}},_handleLoadingChanged:function(X){!1!==this.option(B)?((!N(this)||this._isLoadingAll)&&(this._isLoading=X,this.callBase.apply(this,arguments)),this._startLoadTime=X?new Date:void 0):this.callBase.apply(this,arguments)},_handleLoadError:function(){!1!==this.option(B)&&(this._isLoading=!1,this.loadingChanged.fire(!1)),this.callBase.apply(this,arguments)},_handleDataChanged:function(X){if(!1===this.option(B))return this._items=this._dataSource.items().slice(),this._totalCount=this._dataSourceTotalCount(!0),void this.callBase.apply(this,arguments);var M=this.callBase.bind(this);this._virtualScrollController.handleDataChanged(M,X)},_customizeRemoteOperations:function(X,M){var se=!1===this.option(B),ge=this.option("scrolling.renderAsync");(0,g.$K)(ge)||(ge=this._renderTime>=this.option("scrolling.renderingThreshold")),(N(this)||V(this)&&se)&&!M.reload&&(M.skip||se)&&!ge&&(X.delay=void 0),this.callBase.apply(this,arguments)},items:function(){return this._items},_dataSourceTotalCount:function(X){return!1===this.option(B)&&N(this)&&!X?this._totalCount:this.callBase()},itemsCount:function(X){return X||!1===this.option(B)?this.callBase():this._virtualScrollController.itemsCount()},load:function(X){return!1===this.option(B)||X?this.callBase(X):this._virtualScrollController.load()},isLoading:function(){return!1===this.option(B)?this._dataSource.isLoading():this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},resetPagesCache:function(X){X||this._virtualScrollController.reset(!0),this.callBase.apply(this,arguments)},_changeRowExpandCore:function(){var X=this.callBase.apply(this,arguments);return!1===this.option(B)||(this.resetPagesCache(),q(this)),X},reload:function(){this._dataSource.pageIndex(this.pageIndex());var X=this._virtualScrollController;if(!1!==this.option(B)&&X){var M=new p.BH;return this.callBase.apply(this,arguments).done(function(se){var ge=X.getDelayDeferred();ge?ge.done(M.resolve).fail(M.reject):M.resolve(se)}).fail(M.reject),M}return this.callBase.apply(this,arguments)},refresh:function(X,M){if(!1!==this.option(B)){var se=X.storeLoadOptions,ge=this._dataSource;M.reload?(this._virtualScrollController.reset(),ge.items().length=0,this._isLoaded=!1,q(this),this._isLoaded=!0,V(this)?(this.pageIndex(0),ge.pageIndex(0),se.pageIndex=0,X.pageIndex=0,se.skip=0):(ge.pageIndex(this.pageIndex()),ge.paginate()&&(X.pageIndex=this.pageIndex(),se.skip=this.pageIndex()*this.pageSize()))):V(this)&&se.skip&&this._totalCountCorrection<0&&(se.skip+=this._totalCountCorrection)}return this.callBase.apply(this,arguments)},dispose:function(){this._virtualScrollController.dispose(),this.callBase.apply(this,arguments)},loadPageCount:function(X){if(!(0,g.$K)(X))return this._loadPageCount;this._loadPageCount=X},_handleDataLoading:function(X){var M=this.loadPageCount(),se=this.pageSize(),ge=!1===this.option(B),De=X.storeLoadOptions,Fe=(0,g.$K)(De.take);X.loadPageCount=M,!X.isCustomLoading&&ge&&Fe&&M>1&&se>0&&(De.take=M*se),this.callBase.apply(this,arguments)},_loadPageSize:function(){return this.callBase.apply(this,arguments)*this.loadPageCount()}},["beginPageIndex","endPageIndex","pageIndex"].forEach(function(X){Z[X]=function(){if(!1===this.option(B)){var M=this._dataSource;return M.pageIndex.apply(M,arguments)}var se=this._virtualScrollController;return se[X].apply(se,arguments)}}),["virtualItemsCount","getContentOffset","getVirtualContentSize","setContentItemSizes","setViewportPosition","getViewportItemIndex","setViewportItemIndex","getItemIndexByPosition","viewportSize","viewportItemSize","getItemSize","getItemSizes","loadIfNeed"].forEach(function(X){Z[X]=function(){var M=this._virtualScrollController;return M[X].apply(M,arguments)}}),Z),ee=function(){var q=function(Z,X){var M=Z.toArray().map(De=>(0,c.Z)(De).parent("."+X).get(0)).filter(De=>De);M.length&&(Z=(0,c.Z)(M));for(var se=X===S?Z.length-1:Z.length,ge=0;ge<se;ge++)Z.eq(ge).remove()};return{init:function(){var Z,X=this.getController("data");this.callBase(),X.pageChanged.add(M=>{var se=this._scrollTop;this.scrollToPage(M??X.pageIndex()),!1===this.option(B)&&this._scrollTop===se&&X.updateViewport()}),X.dataSourceChanged.add(()=>{!this._scrollTop&&this._scrollToCurrentPageOnResize()}),null===(Z=X.stateLoaded)||void 0===Z||Z.add(()=>{this._scrollToCurrentPageOnResize()}),this._scrollToCurrentPageOnResize()},_scrollToCurrentPageOnResize:function(){var Z=this.getController("data");if(Z.pageIndex()>0){var X=()=>{this.resizeCompleted.remove(X),this.scrollToPage(Z.pageIndex())};this.resizeCompleted.add(X)}},scrollToPage:function(Z){var se,X=this._dataController,M=X?X.pageSize():0;if(N(this)||V(this)){var ge=X.getItemSize(),De=X.getItemSizes(),Fe=Z*M;for(var Ae in se=Fe*ge,De)Ae<Fe&&(se+=De[Ae]-ge)}else se=0;this.scrollTo({y:se,x:this._scrollLeft})},renderDelayedTemplates:function(Z){this._waitAsyncTemplates(Z).done(()=>{this._updateContentPosition(!0)}),this.callBase.apply(this,arguments)},_renderCore:function(Z){var X=new Date,M=this.callBase.apply(this,arguments),se=this._dataController._dataSource;if(se&&Z){var ge=Z.items?Z.items.length:20,De=this._dataController.viewportSize()||20;se._renderTime=f.Z.isVirtualRowRendering(this)&&ge>0&&!1!==this.option(B)?(new Date-X)*De/ge:new Date-X}return M},_getRowElements:function(Z){var X=this.callBase(Z);return X&&X.not("."+w)},_removeRowsElements:function(Z,X,M){var se=this._getRowElements(Z).toArray();se="append"===M?se.slice(0,X):se.slice(-X);var ge=this.getController("errorHandling");se.map(De=>{var Fe=(0,c.Z)(De);ge&&ge.removeErrorRow(Fe.next()),Fe.remove()})},_updateContent:function(Z,X){var M,se=this._findContentElement(),ge=X&&X.changeType,De=(0,p.BH)(),Fe=se.children().first();return"append"===ge||"prepend"===ge?this._waitAsyncTemplates(X).done(()=>{var Ae=this._getBodies(Z);1===Ae.length?this._getBodies(Fe)["append"===ge?"append":"prepend"](Ae.children()):Ae["append"===ge?"appendTo":"prependTo"](Fe),Z.remove(),M=this._getFreeSpaceRowElements(Fe),q(M,S),X.removeCount&&this._removeRowsElements(Fe,X.removeCount,ge),this._restoreErrorRow(Fe),De.resolve()}).fail(De.reject):this.callBase.apply(this,arguments).done(()=>{"update"===ge&&this._restoreErrorRow(Fe),De.resolve()}).fail(De.reject),De.promise().done(()=>{this._updateBottomLoading()})},_addVirtualRow:function(Z,X,M,se){if(se){var ge=this._createEmptyRow(w,X,se);ge=this._wrapRowIfNeed(Z,ge),this._appendEmptyRow(Z,ge,M)}},_updateContentItemSizes:function(){var Z=this._getRowHeights(),X=this._correctRowHeights(Z);this._dataController.setContentItemSizes(X)},_updateViewportSize:function(Z,X){(0,g.$K)(Z)||(Z=(0,o.zp)(this._hasHeight?this.element():(0,I.Jj)())),this._dataController.viewportHeight(Z,X)},_getRowHeights:function(){var Z,X,M=null===(Z=this.getController("editing"))||void 0===Z||null===(X=Z.isPopupEditMode)||void 0===X?void 0:X.call(Z),se=this._getRowElements(this._tableElement).toArray();return M&&(se=se.filter(ge=>!(0,c.Z)(ge).hasClass("dx-row-inserted"))),se.map(ge=>(0,d.l)(ge).height)},_correctRowHeights:function(Z){for(var X=this._dataController,M=X._dataSource,se=[],ge=X.getVisibleRows(),De=0,Fe=!0,Ae=-1,ne=0;ne<Z.length;ne++){var fe=ge[ne];(0,g.$K)(fe)&&(!1===this.option(B)?(Ae>=0&&Ae!==fe.loadIndex&&(se.push(De),De=0),Ae=fe.loadIndex):Y(fe,M)&&(Fe?Fe=!1:(se.push(De),De=0)),De+=Z[ne])}return De>0&&se.push(De),se},_updateContentPosition:function(Z){var X=this._dataController;if(X.viewportItemSize(this._rowHeight||20),N(this)||f.Z.isVirtualRowRendering(this)){Z||this._updateContentItemSizes();var se=X.getContentOffset("begin"),ge=X.getContentOffset("end"),De=this.getTableElements(),Fe=De.children("tbody").children("."+w);q(Fe,w),De.each((Ae,ne)=>{var fe=Ae>0,_e=this._isFixedTableRendering;this._isFixedTableRendering=fe,this._addVirtualRow((0,c.Z)(ne),fe,"top",se),this._addVirtualRow((0,c.Z)(ne),fe,"bottom",ge),this._isFixedTableRendering=_e})}},_isTableLinesDisplaysCorrect:function(Z){return Z.find(".dx-column-lines").length>0===this.option("showColumnLines")},_isColumnElementsEqual:function(Z,X){var M=Z.length===X.length;return M&&(0,a.S6)(Z,function(se,ge){if(ge.style.width!==X[se].style.width)return M=!1}),M},_getCellClasses:function(Z){var X=[],M=Z.cssClass,se="expand"===Z.command;return M&&X.push(M),se&&X.push(this.addWidgetPrefix("group-space")),X},_findBottomLoadPanel:function(Z){var X=Z||this.element(),M=X&&X.find("."+this.addWidgetPrefix(x));if(M&&M.length)return M},_updateBottomLoading:function(){var Z=N(this),X=V(this),M=!this._dataController.hasKnownLastPage()&&this._dataController.isLoaded()&&(Z||X),se=this._findContentElement(),ge=this._findBottomLoadPanel(se);M?ge||(0,c.Z)("<div>").addClass(this.addWidgetPrefix(x)).append(this._createComponent((0,c.Z)("<div>"),s.Z).$element()).appendTo(se):ge&&ge.remove()},_handleScroll:function(Z){var X=!0===this.option(B),M=0===Z.scrollOffset.top,se=this._scrollTop!==Z.scrollOffset.top;(se||Z.forceUpdateScrollPosition)&&(this._hasHeight||!X&&M)&&this._rowHeight&&(this._scrollTop=Z.scrollOffset.top,N(this)&&!1===this.option(B)&&(this._updateContentItemSizes(),this._updateViewportSize(null,this._scrollTop)),this._dataController.setViewportPosition(Z.scrollOffset.top)),this.callBase.apply(this,arguments)},_needUpdateRowHeight:function(Z){return this.callBase.apply(this,arguments)||Z>0&&V(this)&&!f.Z.isVirtualRowRendering(this)},_updateRowHeight:function(){if(this.callBase.apply(this,arguments),this._rowHeight){this._updateContentPosition();var Z=(0,o.zp)(this._hasHeight?this.element():(0,I.Jj)()),X=this._dataController;!1===this.option(B)?(this._updateViewportSize(Z),X.updateViewport()):X.viewportSize(Math.ceil(Z/this._rowHeight))}},updateFreeSpaceRowHeight:function(){var Z=this.callBase.apply(this,arguments);return Z&&this._updateContentPosition(),Z},setLoading:function(Z,X){var M=this._dataController,se=M.pageIndex()>0&&M.isLoaded()&&!!this._findBottomLoadPanel();!1===this.option(B)&&Z&&M.isViewportChanging()||(se&&(Z=!1),this.callBase.call(this,Z,X))},_resizeCore:function(){var Z=this,X=Z.element();Z.callBase(),Z.component.$element()&&!Z._windowScroll&&(0,h.al)(X)&&(Z._windowScroll=(0,C.W)(X,function(M){!Z._hasHeight&&Z._rowHeight&&Z._dataController.setViewportPosition(M)},Z.component.$element()),Z.on("disposing",function(){Z._windowScroll.dispose()})),!1!==this.option(B)&&Z.loadIfNeed()},loadIfNeed:function(){var Z,X=this._dataController;null==X||null===(Z=X.loadIfNeed)||void 0===Z||Z.call(X)},setColumnWidths:function(Z){var M,X=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(M=X?(0,c.Z)(X.content()):this.element(),this.callBase(Z,M.children("."+this.addWidgetPrefix(E)).children(":not(."+this.addWidgetPrefix(b)+")")))},_restoreErrorRow:function(){if(!1===this.option(B)){var Z=this.getController("errorHandling");Z?.removeErrorRow()}this.callBase.apply(this,arguments)},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}}(),G={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:j,controllers:{data:function(){var q={_refreshDataSource:function(){var Z=this.callBase.apply(this,arguments)||(new p.BH).resolve().promise();return Z.done(this.initVirtualRows.bind(this)),Z},_loadDataSource:function(){if(this._rowsScrollController&&U(this)){var Z,{loadPageCount:X}=(0,g.$K)(this._loadViewportParams)?this.getLoadPageParams():{};X>=1&&(null===(Z=this._dataSource)||void 0===Z||Z.loadPageCount(X))}return this.callBase.apply(this,arguments)},getRowPageSize:function(){var Z=this.option("scrolling.rowPageSize"),X=this.pageSize();return X&&X<Z?X:Z},reload:function(){var Z=this._rowsScrollController||this._dataSource,X=Z&&Z.getItemIndexByPosition(),M=this.callBase.apply(this,arguments);return M&&M.done(()=>{if(N(this)||f.Z.isVirtualRowRendering(this)){var se=this.getRowIndexOffset(),ge=Math.floor(X)-se,De=this.component,Fe=De.getScrollable&&De.getScrollable(),Ae=this.dataSource().operationTypes().sorting;if(Fe&&!Ae&&ge>=0){var ne=De.getRowElement(ge),fe=ne&&ne[0]&&(0,c.Z)(ne[0]),_e=fe&&fe.position().top;_e>(u.Z.mozilla||u.Z.chrome&&u.Z.version>=91?1:0)&&(_e=Math.round(_e+(0,o.zp)(fe)*(X%1)),Fe.scrollTo({y:_e}))}}})},initVirtualRows:function(){var Z=f.Z.isVirtualRowRendering(this);if(this._allItems=null,this._loadViewportParams=null,"virtual"!==this.option("scrolling.mode")&&!0!==Z||!1===Z||!1!==this.option(B)&&!this.option("scrolling.rowPageSize"))return this._visibleItems=null,void(this._rowsScrollController=null);var X=!N(this)&&this.pageIndex()>=this.pageCount()?this.pageCount()-1:this.pageIndex();this._rowPageIndex=Math.ceil(X*this.pageSize()/this.getRowPageSize()),this._visibleItems=!1===this.option(B)?null:[],this._viewportChanging=!1,this._needUpdateViewportAfterLoading=!1,this._rowsScrollController||(this._rowsScrollController=new C.z(this.component,this._getRowsScrollDataOptions(),!0),this._rowsScrollController.positionChanged.add(()=>{var M;if(!1===this.option(B))return this._viewportChanging=!0,this.loadViewport(),void(this._viewportChanging=!1);null===(M=this._dataSource)||void 0===M||M.setViewportItemIndex(this._rowsScrollController.getViewportItemIndex())})),!1===this.option(B)&&this._updateLoadViewportParams(),this.isLoaded()&&!1!==this.option(B)&&this._rowsScrollController.load()},isViewportChanging:function(){return this._viewportChanging},_getRowsScrollDataOptions:function(){var Z=this,X=function(M){return Y(M,Z._dataSource)};return{pageSize:function(){return Z.getRowPageSize()},loadedOffset:function(){var M;return N(Z)&&(null===(M=Z._dataSource)||void 0===M?void 0:M.lastLoadOptions().skip)||0},loadedItemCount:function(){return Z._itemCount},totalItemsCount:function(){return U(Z)?Z.totalItemsCount():!1===Z.option(B)?Z._itemCount:Z._items.filter(X).length},hasKnownLastPage:function(){return!1!==Z.option(B)||Z.hasKnownLastPage()},pageIndex:function(M){return void 0!==M&&(Z._rowPageIndex=M),Z._rowPageIndex},isLoading:function(){return Z.isLoading()},pageCount:function(){return Math.ceil(this.totalItemsCount()/this.pageSize())||1},load:function(){Z._rowsScrollController.pageIndex()>=this.pageCount()&&(Z._rowPageIndex=this.pageCount()-1,Z._rowsScrollController.pageIndex(Z._rowPageIndex)),(this.items().length||!this.totalItemsCount())&&Z._rowsScrollController.handleDataChanged(M=>{(M=M||{}).changeType=M.changeType||"refresh",M.items=M.items||Z._visibleItems,Z._visibleItems.forEach((se,ge)=>{se.rowIndex=ge}),Z._fireChanged(M)})},updateLoading:function(){},itemsCount:function(){return this.items(!0).length},correctCount:function(M,se,ge){return K(M,se,ge,(De,Fe,Ae)=>De.isNewRow?Fe&&!Ae:Fe&&Ae?!De.isNewRow:X(De))},items:function(M){var se=Z._items;if(Z.option(B)){var De=Z.dataSource()?.virtualItemsCount(),Fe=De?De.begin:0,Ae=Z.getRowPageSize(),ne=Z._rowPageIndex*Ae-Fe,fe=Ae;if(ne<0)return[];ne&&(ne=this.correctCount(se,ne),se=se.slice(ne)),fe&&(fe=this.correctCount(se,fe),se=se.slice(0,fe))}return M?se.filter(X):se},viewportItems:function(M){return M&&!1!==Z.option(B)&&(Z._visibleItems=M),Z._visibleItems},onChanged:function(){},changingDuration:function(M){var se=Z.dataSource();return null!=se&&se.isLoading()&&!1!==Z.option(B)?300:se?._renderTime||0}}},_updateItemsCore:function(Z){var X=this.getRowIndexDelta();if(this.callBase.apply(this,arguments),!1===this.option(B)&&f.Z.isVirtualRowRendering(this))"update"===Z.changeType&&0===Z.rowIndices.length&&Z.cancelEmptyChanges&&(Z.cancel=!0);else{var M=this._rowsScrollController;if(M){var se=this._visibleItems,ge="refresh"===Z.changeType||Z.isLiveUpdate;if("append"===Z.changeType&&Z.items&&!Z.items.length)return;ge||"append"===Z.changeType||"prepend"===Z.changeType?(Z.cancel=!0,ge&&M.reset(!0),M.load()):("update"===Z.changeType?Z.rowIndices.forEach((De,Fe)=>{var Ae=Z.changeTypes[Fe],ne=Z.items[Fe];"update"===Ae?se[De]=ne:"insert"===Ae?se.splice(De,0,ne):"remove"===Ae&&se.splice(De,1)}):(se.forEach((De,Fe)=>{se[Fe]=this._items[Fe+X]||se[Fe]}),Z.items=se),J(se))}}},_updateLoadViewportParams:function(){var Z=this._rowsScrollController.getViewportParams(),X=this.pageSize();if(Z&&!U(this)&&X>0){var M=this.pageIndex()*X;Z.skip+=M}this._loadViewportParams=Z},_processItems:function(Z){var X=this.callBase.apply(this,arguments);if(!1===this.option(B)){var M,De,Fe,Ae,se=this._dataSource,ge=null!==(M=se?.lastLoadOptions().skip)&&void 0!==M?M:0,ne=!1;X.forEach(fe=>{var _e=fe.rowType,ie=Y(fe,se),de="group"===_e&&(De||ie||"group"!==Fe&&ge>0),le="data"===_e&&ie&&(De||"group"!==Fe);!fe.isNewRow&&(0,g.$K)(De)&&(de||le)&&(!Ae||ne)&&ge++,(de||le)&&(ne=!0),fe.loadIndex=ge,De=ie,Fe=_e,Ae=fe.isNewRow})}return X},_afterProcessItems:function(Z){if(this._itemCount=Z.filter(De=>Y(De,this._dataSource)).length,(0,g.$K)(this._loadViewportParams)){this._updateLoadViewportParams();var X=Z;if(this._allItems=Z,Z.length){var{skipForCurrentPage:M}=this.getLoadPageParams(!0),se=Z[0].loadIndex+M,ge=this._loadViewportParams.take;X=Z.filter(De=>(De.loadIndex>=se||De.isNewRow&&De.loadIndex>=se-1)&&(De.loadIndex<se+ge||De.isNewRow&&De.loadIndex===se&&0===ge))}return X}return this.callBase.apply(this,arguments)},_applyChange:function(Z){var X=this,M=Z.items,se=Z.changeType,ge=Z.removeCount;switch(ge&&(ge=K(X._items,ge,"prepend"===se,function(Fe,Ae){return"data"===Fe.rowType&&!Fe.isNewRow||"group"===Fe.rowType&&(X._dataSource.isGroupItemCountable(Fe.data)||Ae)}),Z.removeCount=ge),se){case"prepend":X._items.unshift.apply(X._items,M),ge&&X._items.splice(-ge);break;case"append":X._items.push.apply(X._items,M),ge&&X._items.splice(0,ge);break;default:X.callBase(Z)}},items:function(Z){return Z?this._allItems||this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var Z=0;if(this.option(B)){var X=this._visibleItems;X&&X[0]&&(Z=this._items.indexOf(X[0]))}return Z<0?0:Z},getRowIndexOffset:function(Z){var X=0,M=this.dataSource(),se=this._rowsScrollController,ge=!1===this.option(B),De=U(this);if(se&&!Z)if(ge&&(0,g.$K)(this._loadViewportParams)){var{skipForCurrentPage:Fe,pageIndex:Ae}=this.getLoadPageParams(!0),ne=this.items(!0);if(X=De?Ae*this.pageSize():0,ne.length){var fe=ne[0].loadIndex;X+=ne.filter(ie=>ie.loadIndex<fe+Fe).length}}else X=se.beginPageIndex()*se.pageSize();else if(De&&ge&&M){var _e;X=null!==(_e=M.lastLoadOptions().skip)&&void 0!==_e?_e:0}else N(this)&&M&&(X=M.beginPageIndex()*M.pageSize());return X},getDataIndex:function(Z){return!1===this.option(B)?this.getRowIndexOffset(!0):this.callBase.apply(this,arguments)},viewportSize:function(){var Z=this._rowsScrollController,X=this._dataSource,M=Z?.viewportSize.apply(Z,arguments);return!1===this.option(B)?M:X?.viewportSize.apply(X,arguments)},viewportHeight:function(Z,X){var M;null===(M=this._rowsScrollController)||void 0===M||M.viewportHeight(Z,X)},viewportItemSize:function(){var Z=this._rowsScrollController,X=this._dataSource,M=Z?.viewportItemSize.apply(Z,arguments);return!1===this.option(B)?M:X?.viewportItemSize.apply(X,arguments)},setViewportPosition:function(){var Z=this._rowsScrollController,X=this._dataSource;this._isPaging=!1,Z?Z.setViewportPosition.apply(Z,arguments):X?.setViewportPosition.apply(X,arguments)},setContentItemSizes:function(Z){var M=this._dataSource,se=this._rowsScrollController?.setContentItemSizes(Z);return!1===this.option(B)?se:M?.setContentItemSizes(Z)},getPreloadedRowCount:function(){var Z=this.option("scrolling.preloadedRowCount"),X=this.option("scrolling.preloadEnabled");if((0,g.$K)(Z))return Z;var M=this.viewportSize();return X?2*M:M},getLoadPageParams:function(Z){var X,M,se=this.pageSize(),ge=this._loadViewportParams,De=null===(X=this._dataSource)||void 0===X?void 0:X.lastLoadOptions(),Fe=De?.pageIndex||0,Ae=De?.take||0,ne=this._rowsScrollController.isScrollingBack(),fe=ne?this.getPreloadedRowCount():0,_e=ne?0:this.getPreloadedRowCount(),ie=(null===(M=this._dataSource)||void 0===M?void 0:M.totalCountCorrection())||0,de=Math.max(0,ge.skip-fe),le=Z?Fe:Math.floor(se?de/se:0),Ee=ge.skip-le*se,re=Math.ceil(se?(Z?Ae:ge.take+Ee+_e-ie)/se:0);return{pageIndex:le,loadPageCount:Math.max(1,re),skipForCurrentPage:Math.max(0,Ee)}},_updateVisiblePageIndex:function(Z){if(this._rowsScrollController){if((0,g.$K)(Z))return this._silentOption(W,Z),void this.pageChanged.fire();var X=this._rowsScrollController.getViewportItemIndex(),M=Math.floor(X/this.pageSize());this.pageIndex()!==M&&(this._silentOption(W,M),this.updateItems({changeType:"pageIndex"}))}},_getChangedLoadParams:function(){var Z=this.getLoadPageParams(!0),{pageIndex:X,loadPageCount:M}=this.getLoadPageParams(),se=this._pageIndexIsValid(X),ge=null;return!this._isLoading&&se&&(X!==Z.pageIndex||M!==Z.loadPageCount)&&(ge={pageIndex:X,loadPageCount:M}),ge},_pageIndexIsValid:function(Z){var X=!0;return(V(this)&&this.hasKnownLastPage()||N(this))&&(X=Z*this.pageSize()<this.totalItemsCount()),X},_loadItems:function(Z,X){var M,se,ge=U(this),De=this._dataSource,Fe=this._getChangedLoadParams(),Ae=null!==(M=De?.loadPageCount())&&void 0!==M?M:0,ne=this.pageSize()*Ae,fe=null!==(se=De?.pageIndex())&&void 0!==se?se:0,_e=Fe?.pageIndex===fe,ie=V(this)&&this.totalItemsCount()<ne,de="repaint"===this.option("editing.refreshMode"),pe=!1;if(!De||ge&&Z&&(de&&X||Fe?.pageIndex>fe||_e&&ie))return pe;if(ge&&this._isLoading&&(this._needUpdateViewportAfterLoading=!0),ge&&Fe){pe=!0,De.pageIndex(Fe.pageIndex),De.loadPageCount(Fe.loadPageCount),this._repaintChangesOnly=!0,this._needUpdateDimensions=!0;var Ee=this._viewportChanging;this.load().always(()=>{this._repaintChangesOnly=void 0,this._needUpdateDimensions=void 0}).done(()=>{var ae=this.pageCount()>0&&this.pageIndex()===this.pageCount()-1;(Ee||ae)&&this._updateVisiblePageIndex(),this._needUpdateViewportAfterLoading&&(this._needUpdateViewportAfterLoading=!1,this.loadViewport({checkLoadedParamsOnly:!0}))})}return pe},loadViewport:function(Z){var{checkLoadedParamsOnly:X,checkLoading:M,viewportIsNotFilled:se}=Z??{};(U(this)||f.Z.isVirtualRowRendering(this))&&(this._updateLoadViewportParams(),!this._loadItems(M,!se)&&(!this._isLoading||!M)&&!X&&this.updateItems({repaintChangesOnly:!0,needUpdateDimensions:!0,useProcessedItemsCache:!0,cancelEmptyChanges:!0}))},updateViewport:function(){var Z,X,M=this.viewportSize(),se=this.items().length,ge=M>se,De=null!==(Z=null===(X=this._loadViewportParams)||void 0===X?void 0:X.take)&&void 0!==Z?Z:0,Ae=this._rowsScrollController?.getViewportParams().take;(ge||De<Ae)&&!this._isPaging&&se&&this.loadViewport({checkLoading:!0,viewportIsNotFilled:ge})},loadIfNeed:function(){if(!1!==this.option(B)){var Z=this._rowsScrollController;Z&&Z.loadIfNeed();var X=this._dataSource;return X&&X.loadIfNeed()}},getItemSize:function(){var Z=this._rowsScrollController;if(Z)return Z.getItemSize.apply(Z,arguments);var X=this._dataSource;return X&&X.getItemSize.apply(X,arguments)},getItemSizes:function(){var Z=this._rowsScrollController;if(Z)return Z.getItemSizes.apply(Z,arguments);var X=this._dataSource;return X&&X.getItemSizes.apply(X,arguments)},getContentOffset:function(){var Z=this._rowsScrollController;if(Z)return Z.getContentOffset.apply(Z,arguments);var X=this._dataSource;return X&&X.getContentOffset.apply(X,arguments)},refresh:function(Z){var X=this._dataSource;return X&&Z&&Z.load&&V(this)&&X.resetCurrentTotalCount(),this.callBase.apply(this,arguments)},dispose:function(){var Z=this._rowsScrollController;Z&&Z.dispose(),this.callBase.apply(this,arguments)},topItemIndex:function(){var Z;return null===(Z=this._loadViewportParams)||void 0===Z?void 0:Z.skip},bottomItemIndex:function(){var Z=this._loadViewportParams;return Z&&Z.skip+Z.take},virtualItemsCount:function(){var Z=this._rowsScrollController;if(Z)return Z.virtualItemsCount.apply(Z,arguments);var X=this._dataSource;return X?.virtualItemsCount.apply(X,arguments)},pageIndex:function(Z){var se,X=U(this),M=this._rowsScrollController;return!1===this.option(B)&&X&&M&&void 0===Z?null!==(se=this.option(W))&&void 0!==se?se:0:this.callBase.apply(this,arguments)},_fireChanged:function(Z){this.callBase.apply(this,arguments);var{operationTypes:X}=Z;if(!1===this.option(B)&&U(this)&&X){var{fullReload:M,pageIndex:se}=X;Z.isDataChanged&&!M&&se&&this._updateVisiblePageIndex(this._dataSource.pageIndex())}},_getPagingOptionValue:function(Z){var X=this.callBase.apply(this,arguments);return!1===this.option(B)&&U(this)&&(X=this[Z]()),X},isEmpty:function(){return!1===this.option(B)?!this.items(!0).length:this.callBase(this,arguments)},isLastPageLoaded:function(){var Z=!1;if(!1===this.option(B)&&U(this)){var{pageIndex:X,loadPageCount:M}=this.getLoadPageParams(!0),se=this.pageCount();Z=X+M>=se}else Z=this.callBase.apply(this,arguments);return Z},reset:function(){this._itemCount=0,this._allItems=null,this.callBase.apply(this,arguments)},_applyFilter:function(){var Z;null===(Z=this._dataSource)||void 0===Z||Z.loadPageCount(1),this.callBase.apply(this,arguments)}};return f.Z.proxyMethod(q,"getVirtualContentSize"),f.Z.proxyMethod(q,"setViewportItemIndex"),q}(),resizing:{_updateMasterDataGridCore:function(q){return(0,p.gx)(this.callBase.apply(this,arguments)).done(Z=>{var X=N(q)&&!1===q.option(B);!Z&&X&&q.getScrollable()&&q.updateDimensions()})},resize:function(){var X,q=this,Z=q.callBase;if(N(q)||f.Z.isVirtualRowRendering(q)){clearTimeout(q._resizeTimeout);var M=new Date-q._lastTime,se=q.option("scrolling.updateTimeout");q._lastTime&&M<se?(X=new p.BH,q._resizeTimeout=setTimeout(function(){Z.apply(q).done(X.resolve).fail(X.reject),q._lastTime=new Date},se),q._lastTime=new Date):(X=Z.apply(q),q._dataController.isLoaded()&&(q._lastTime=new Date))}else X=Z.apply(q);return X},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._resizeTimeout)}}},views:{rowsView:ee}}}},7954:(kn,he,l)=>{"use strict";l.d(he,{z:()=>Y,W:()=>K});var o=l(9904),c=l(4514),I=l(913),C=l(4722),f=l(5791),a=l(2718),p=l(5031),s=l(4270),u=l(5365),d=l(1828),h="scrolling.legacyMode",g=J=>J.option("scrolling.loadTwoPagesOnStart")||J._controller.isVirtual()||J._controller.getViewportItemIndex()>0,x=J=>J._cache.length?J._cache[0].pageIndex:-1,b=J=>J._cache.length?J._cache[J._cache.length-1].pageIndex:-1,y=(J,j,ee)=>{J._isChangedFiring=!0,j(ee),J._isChangedFiring=!1},E=(J,j,ee)=>{if(J._isDelayChanged)return J._isDelayChanged=!1,y(J,j,ee),!0},O=(J,j)=>{var ee=J.option("scrolling.preloadEnabled"),G=(J=>{var j=J._dataOptions.pageSize();if(J.option("scrolling.preventPreload"))return 0;var G=J._controller.viewportSize();if(J._controller.isVirtualMode()&&J.option("scrolling.removeInvisiblePages")){G=0;for(var q=J._controller.viewportSize()*J._controller.viewportItemSize(),Z=J._controller.getContentOffset(),X=J._controller.getViewportPosition(),M=J._controller.virtualItemsCount(),se=J._dataOptions.totalItemsCount(),ge=M.begin;ge<se&&!(Z>=X+q);ge++)(Z+=J._controller.getItemSizes()[ge]||J._controller.viewportItemSize())>=X&&G++}return j&&G>0?Math.ceil(G/j):1})(J),q=J._controller.isAppendMode();return G&&(j?G=ee?1:0:(ee&&G++,(q||!g(J))&&G--)),G},k=(J,j,ee,G,q)=>{var Z=J._dataOptions,X=Z.items().slice(),M=(0,d.Kn)(ee)?ee:void 0,se="prepend"===ee,ge=Z.viewportItems();ee&&(0,d.HD)(ee)&&!J._isDelayChanged&&(M={changeType:ee,items:X},q&&(M.removeCount=q.itemsCount,M.removeCount&&Z.correctCount&&(M.removeCount=Z.correctCount(ge,M.removeCount,se))));var De=q?q.itemsLength:0;De&&Z.correctCount&&(De=Z.correctCount(ge,De,se)),"append"===ee?(ge.push.apply(ge,X),q&&ge.splice(0,De)):se?(ge.unshift.apply(ge,X),q&&ge.splice(-De)):J._dataOptions.viewportItems(X),Z.updateLoading(),J._lastPageIndex=J.pageIndex(),J._isDelayChanged=G,G||y(J,j,M)};class R{constructor(j,ee){this._controller=j,this._dataOptions=ee,this._pageIndex=this._lastPageIndex=ee.pageIndex(),this._cache=[],this._loadingPageIndexes={}}option(){return this._controller.option.apply(this._controller,arguments)}viewportItemIndexChanged(j){var M,ee=this._dataOptions.pageSize(),G=this._dataOptions.pageCount(),q=this._controller.isVirtualMode(),Z=this._controller.isAppendMode(),X=this._dataOptions.totalItemsCount();if(ee&&(q||Z)&&X>=0){var se=this._controller.viewportSize();if(se&&j+se>=X&&!this._controller.isVirtual())if(this._dataOptions.hasKnownLastPage()){var ge=X%ee;(M=G-1)>0&&ge>0&&ge<se&&M--}else M=G;else{M=Math.floor(j/ee);var De=G-1;M=Math.max(M,0),M=Math.min(M,De)}return this.pageIndex(M),this.load()}}pageIndex(j){var ee=this._controller.isVirtualMode(),G=this._controller.isAppendMode();return!1!==this.option(h)&&(ee||G)?(void 0!==j&&(this._pageIndex=j),this._pageIndex):this._dataOptions.pageIndex(j)}beginPageIndex(j){var ee=x(this);return ee<0&&(ee=void 0!==j?j:this.pageIndex()),ee}endPageIndex(){var j=b(this);return j>0?j:this._lastPageIndex}pageSize(){return this._dataOptions.pageSize()}load(){var ee,j=this._dataOptions,G=this._controller.isVirtualMode(),q=this._controller.isAppendMode();if(!1!==this.option(h)&&(G||q)){var Z=(J=>{var j=-1,ee=x(J),G=J._dataOptions;return ee<0?j=J._pageIndex:J._cache[J._pageIndex-ee]?ee>=0&&J._controller.viewportSize()>=0&&(ee>0&&(b(J)+1===G.pageCount()&&J._cache.length<O(J)+1||J._pageIndex===ee&&O(J,!0))&&(j=ee-1),j<0&&ee+J._cache.length<=J._pageIndex+O(J)&&(j=ee+J._cache.length)):j=J._pageIndex,J._loadingPageIndexes[j]&&(j=-1),j})(this);if(Z>=0){var X=((J,j)=>{var ee=J._dataOptions;if(j===J.pageIndex()||!ee.isLoading()&&j<ee.pageCount()||!ee.hasKnownLastPage()&&j===ee.pageCount())return ee.pageIndex(j),J._loadingPageIndexes[j]=!0,(0,s.gx)(ee.load()).always(()=>{J._loadingPageIndexes[j]=!1})})(this,Z);X&&(ee=new s.BH,X.done(()=>{var M=this._delayDeferred;M?M.done(ee.resolve).fail(ee.reject):ee.resolve()}).fail(ee.reject),j.updateLoading())}}else ee=j.load();return!ee&&this._lastPageIndex!==this.pageIndex()&&this._dataOptions.onChanged({changeType:"pageIndex"}),ee||(new s.BH).resolve()}loadIfNeed(){var j=this._controller.isVirtualMode(),ee=this._controller.isAppendMode();if((j||ee)&&!this._dataOptions.isLoading()&&(!this._isChangedFiring||this._controller.isVirtual())){var G=this._controller.getViewportPosition();G>0?this._controller._setViewportPositionCore(G):this.load()}}handleDataChanged(j,ee){var Z,X,G=this._dataOptions,q=this._cache.length,M=this._controller.isVirtualMode(),se=this._controller.isAppendMode();if(ee&&ee.changes)y(this,j,ee);else if(!1!==this.option(h)&&(M||se)){var ge=x(this);if(ge>=0&&(M&&ge+this._cache.length!==G.pageIndex()&&ge-1!==G.pageIndex()&&(q=0,this._cache=[]),se))if(0===G.pageIndex())this._cache=[];else if(G.pageIndex()<b(this))return void y(this,j,{changeType:"append",items:[]});var Fe,De={pageIndex:G.pageIndex(),itemsLength:G.items(!0).length,itemsCount:this.itemsCount(!0)};this.option("scrolling.removeInvisiblePages")&&M?X=this._cache.length>Math.max(O(this)+(this.option("scrolling.preloadEnabled")?1:0),2):E(this,j,{isDelayed:!0}),ge===G.pageIndex()+1?(X&&(Fe=this._cache.pop()),Z="prepend",this._cache.unshift(De)):(X&&(Fe=this._cache.shift()),Z="append",this._cache.push(De));var Ae=M&&0===q&&g(this);k(this,j,this._cache.length>1?Z:void 0,Ae,Fe),this._delayDeferred=this.load().done(()=>{E(this,j)&&this.load()})}else k(this,j,ee)}getDelayDeferred(){return this._delayDeferred}itemsCount(j){var ee=0,G=this._controller.isVirtualMode();return!j&&G?this._cache.forEach(q=>{ee+=q.itemsCount}):ee=this._dataOptions.itemsCount(),ee}virtualItemsCount(){var j=x(this);j<0&&(j=this._dataOptions.pageIndex());var ee=j*this._dataOptions.pageSize(),G=this._cache.length*this._dataOptions.pageSize();return{begin:ee,end:Math.max(0,this._dataOptions.totalItemsCount()-G-ee)}}reset(){this._loadingPageIndexes={},this._cache=[]}}var P=l(2879),W="virtual",N="scrolling.legacyMode",V=J=>J.option("scrolling.mode")===W||J._isVirtual;function K(J,j,ee){var G,q=[],Z=[],X=[];function M(Fe){var Ae=Fe.element?Fe.$element():Fe,ne=f.Z.offset(Ae);return ne?Fe.scrollTop()-(ne.top-J.offset().top):J.offset().top}var Fe,Ae,se={on:function(Fe,Ae,ne){Fe.on("scroll",ne)},off:function(Fe,Ae,ne){Fe.off("scroll",ne)}};function ge(Fe){var de,Ae="#document"===Fe.get(0).nodeName,ne=Fe.get(0).nodeType===(0,c.Jj)().Node.ELEMENT_NODE,fe=Fe.data("dxScrollable"),_e=se;if(fe||(fe=Ae&&(0,o.Z)((0,c.Jj)())||ne&&"auto"===Fe.css("overflowY")&&Fe,_e=I.Z,fe)){var ie=(de=fe,function(){var le=de.scrollTop()-M(de);j(le=le>0?le:0)});_e.on(fe,"scroll",ie),Z.push(function(de){var le=M(fe);de-le>=0&&fe[fe.scrollTo?"scrollTo":"scrollTop"](de+le)}),q.push(fe),X.push(function(){_e.off(fe,"scroll",ie)})}}for(G=(ee=ee||J).parent();G.length;void 0,G=(0,o.Z)(null!==(Ae=(Fe=G).get(0).parentNode)&&void 0!==Ae?Ae:Fe.get(0).host))ge(G);return{scrollTo:function(Fe){(0,a.S6)(Z,function(Ae,ne){ne(Fe)})},dispose:function(){(0,a.S6)(X,function(Fe,Ae){Ae()})}}}var J,Y=p.Z.inherit((J={ctor:function(j,ee,G){this._dataOptions=ee,this.component=j,this._viewportSize=!1===j.option(N)?15:0,this._viewportItemSize=20,this._viewportItemIndex=0,this._position=0,this._isScrollingBack=!1,this._contentSize=0,this._itemSizes={},this._sizeRatio=1,this._isVirtual=G,this.positionChanged=(0,u.Z)(),this._dataLoader=new R(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(V(this)){var j=this._dataOptions,ee=j.totalItemsCount();if(!1===this.option(N)&&-1!==ee){var G=this.getViewportParams(),q=j.loadedOffset(),Z=j.loadedItemCount(),X=Math.max(G.skip,q),M=Math.min(G.take,Z),se=Math.max(ee-(X+M),0);return{begin:X,end:se}}return this._dataLoader.virtualItemsCount.apply(this._dataLoader,arguments)}},getScrollingTimeout:function(){var j=this.option("scrolling.renderAsync"),ee=0;if((0,d.$K)(j)){if(j){var G;ee=null!==(G=this.option("scrolling.timeout"))&&void 0!==G?G:0}}else(ee=Math.min(this.option("scrolling.timeout")||0,this._dataOptions.changingDuration()))<this.option("scrolling.renderingThreshold")&&(ee=this.option("scrolling.minTimeout")||0);return ee},setViewportPosition:function(j){var ee=new s.BH,G=this.getScrollingTimeout();return clearTimeout(this._scrollTimeoutID),G>0?this._scrollTimeoutID=setTimeout(()=>{this._setViewportPositionCore(j),ee.resolve()},G):(this._setViewportPositionCore(j),ee.resolve()),ee.promise()},getViewportPosition:function(){return this._position},getItemIndexByPosition:function(j,ee,G){var q;j=null!==(q=j)&&void 0!==q?q:this._position;for(var Z=this.getItemSize(),X=0,M=0,se=Object.keys(this._itemSizes).concat(-1),ge=0;ge<se.length&&X<j;ge++){var De=parseInt(se[ge]),Fe=(j-X)/Z;if(De<0||M+Fe<De){M+=Fe,this._sizeRatio<1&&(0,d.$K)(ee)&&(M=ee+G/this._viewportItemSize);break}X+=(Fe=De-M)*Z,M+=Fe;var Ae=this._itemSizes[De];M+=(X+=Ae)<j?1:(j-X+Ae)/Ae}return Math.round(50*M)/50},isScrollingBack:function(){return this._isScrollingBack},_setViewportPositionCore:function(j){var ee=this._position||0;this._position=j,ee!==this._position&&(this._isScrollingBack=this._position<ee);var G=this.getItemIndexByPosition(),q=this.setViewportItemIndex(G);return this.positionChanged.fire(),q},setContentItemSizes:function(j){var ee=this.virtualItemsCount();if(this._contentSize=j.reduce((Z,X)=>Z+X,0),ee){j.forEach((Z,X)=>{this._itemSizes[ee.begin+X]=Z});var G=(ee.begin+ee.end+this.itemsCount())*this._viewportItemSize,q=P.Z.getContentHeightLimit(C.Z);this._sizeRatio=G>q?q/G:1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getItemOffset:function(j,ee){var G=this.virtualItemsCount(),q=j;if(!G)return 0;var Z=0,X=this._dataOptions.totalItemsCount();return Object.keys(this._itemSizes).forEach(M=>{q&&(ee?M>=X-j:M<j)&&(Z+=this._itemSizes[M],q--)}),Math.floor(Z+q*this._viewportItemSize*this._sizeRatio)},getContentOffset:function(j){var ee="end"===j,G=this.virtualItemsCount();return G?this.getItemOffset(ee?G.end:G.begin,ee):0},getVirtualContentSize:function(){return this.virtualItemsCount()?this.getContentOffset("begin")+this.getContentOffset("end")+this._contentSize:0},getViewportItemIndex:function(){return this._viewportItemIndex},setViewportItemIndex:function(j){if(this._viewportItemIndex=j,!1!==this.option(N))return this._dataLoader.viewportItemIndexChanged.apply(this._dataLoader,arguments)},viewportItemSize:function(j){return void 0!==j&&(this._viewportItemSize=j),this._viewportItemSize},viewportSize:function(j){return void 0!==j&&(this._viewportSize=j),this._viewportSize},viewportHeight:function(j,ee){var G=ee??this._position,q=this.getItemIndexByPosition(G),Z=this.getItemIndexByPosition(G+j,q,j);this.viewportSize(Math.ceil(Z-q)),!(0,d.$K)(ee)&&this._viewportItemIndex!==q&&this._setViewportPositionCore(G)},reset:function(j){this._dataLoader.reset(),j||(this._itemSizes={})},subscribeToWindowScrollEvents:function(j){this._windowScroll=this._windowScroll||K(j,ee=>{this.viewportItemSize()&&this.setViewportPosition(ee)})},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(j){this._windowScroll&&this._windowScroll.scrollTo(j)},isVirtualMode:function(){return V(this)},isAppendMode:function(){return(J=>"infinite"===J.option("scrolling.mode")&&!J._isVirtual)(this)},getViewportParams:function(){var j,ee=this.option("scrolling.mode")===W,G=this._dataOptions.totalItemsCount(),Z=this._dataOptions.hasKnownLastPage()&&this._viewportItemIndex>G?G:this._viewportItemIndex,X=this._viewportSize+Z,M=this.option("scrolling.prerenderedRowChunkSize")||1,se=this.isScrollingBack(),ge=null!==(j=this.option("scrolling.prerenderedRowCount"))&&void 0!==j?j:1,Fe=se?0:ge,Ae=Math.floor(Math.max(0,Z-(se?ge:0))/M)*M,ne=Math.ceil((X+Fe-Ae)/M)*M;if(ee){var fe=Math.max(0,G-Ae);ne=Math.min(ne,fe)}return{skip:Ae,take:ne}},itemsCount:function(){return this.option(N)?this._dataLoader.itemsCount.apply(this._dataLoader,arguments):this._dataOptions.itemsCount()}},["pageIndex","beginPageIndex","endPageIndex","pageSize","load","loadIfNeed","handleDataChanged","getDelayDeferred"].forEach(function(j){J[j]=function(){return this._dataLoader[j].apply(this._dataLoader,arguments)}}),J))},355:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>N});var o=l(9904),c=l(6738),I=l(5873),C=l(2718),f=l(2941),a=l(4328),p=l(5031),s=l(7674),u=l(1828),d=l(8159),h=l(2589),g=l(3447),x=l(7316),b=l(3382);const E=p.Z.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(V,U){var K=this;(0,C.S6)(V,function(Y,J){var j=(0,u.$K)(U)?U:K._getParentId(J),ee=K._convertItemToNode(J,j);K._dataStructure.push(ee),K._checkForDuplicateId(ee.internalFields.key),K._indexByKey[ee.internalFields.key]=K._dataStructure.length-1,K._itemHasChildren(J)&&K._convertItemsToNodes(K._dataAccessors.getters.items(J),ee.internalFields.key)})},_checkForDuplicateId:function(V){if((0,u.$K)(this._indexByKey[V]))throw d.Z.Error("E1040",V)},_getParentId:function(V){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(V):void 0},_itemHasChildren:function(V){if("plain"!==this._dataType){var U=this._dataAccessors.getters.items(V);return U&&U.length}},_getUniqueKey:function(V){var U=this._dataAccessors.getters.key,K=U(V);return U&&(K||0===K)&&(0,u.pt)(K)?K:this.getItemsCount()},_convertItemToNode:function(V,U){this._itemsCount++,!1!==V.visible&&this._visibleItemsCount++;var K={internalFields:{disabled:this._dataAccessors.getters.disabled(V,{defaultValue:!1}),expanded:this._dataAccessors.getters.expanded(V,{defaultValue:!1}),selected:this._dataAccessors.getters.selected(V,{defaultValue:!1}),key:this._getUniqueKey(V),parentKey:(0,u.$K)(U)?U:this._rootValue,item:this._makeObjectFromPrimitive(V),childrenKeys:[]}};return(0,I.l)(K,V),delete K.items,K},setChildrenKeys:function(){var V=this;(0,C.S6)(this._dataStructure,function(U,K){if(K.internalFields.parentKey!==V._rootValue){var Y=V.getParentNode(K);Y&&Y.internalFields.childrenKeys.push(K.internalFields.key)}})},_makeObjectFromPrimitive:function(V){if((0,u.pt)(V)){var U=V;this._dataAccessors.setters.key(V={},U)}return V},_convertToPublicNode:function(V,U){if(!V)return null;var K={text:this._dataAccessors.getters.display(V),key:V.internalFields.key,selected:V.internalFields.selected,expanded:V.internalFields.expanded,disabled:V.internalFields.disabled,parent:U||null,itemData:V.internalFields.item,children:[],items:[]};return K.parent&&(K.parent.children.push(K),K.parent.items.push(K)),K},convertToPublicNodes:function(V,U){if(!V.length)return[];var K=this,Y=[];return(0,C.S6)(V,function(J,j){j=(0,u.pt)(j)?K._getByKey(j):j;var ee=K._convertToPublicNode(j,U);ee.children=K.convertToPublicNodes(j.internalFields.childrenKeys,ee),Y.push(ee),j.internalFields.publicNode=ee}),Y},setDataAccessors:function(V){this._dataAccessors=V},_getByKey:function(V){return this._dataStructure[this.getIndexByKey(V)]||null},getParentNode:function(V){return this._getByKey(V.internalFields.parentKey)},getByKey:function(V,U){if(null==U)return null;var ee,K=null,Y=this;return ee=U,(0,C.S6)(V,function(G,q){if((q.internalFields&&q.internalFields.key||Y._dataAccessors.getters.key(q)).toString()===ee.toString())return K=q,!1}),K},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var V=this;this._indexByKey={},(0,C.S6)(this._dataStructure,function(U,K){V._checkForDuplicateId(K.internalFields.key),V._indexByKey[K.internalFields.key]=U})},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},(0,C.S6)(this._dataStructure,function(V,U){U.internalFields.childrenKeys=[]})},getIndexByKey:function(V){return this._indexByKey[V]},createPlainStructure:function(V,U,K){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=U,this._dataType=K,this._indexByKey={},this._convertItemsToNodes(V),this.setChildrenKeys(),this._dataStructure}});var S="expanded",O="selected";h.Z.setEditorClass(g.Z);const k=p.Z.inherit({ctor:function(V){this.options={},(0,I.l)(this.options,this._defaultOptions(),V),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(V,U){this.options[V]=U,"recursiveSelection"===V&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new E,onNodeChanged:s.ZT,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(O)},_updateExpansion:function(V){this.options.recursiveExpansion&&(V?this._updateOneBranch(V):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(S)},_updateNodesKeysArray:function(V){var U=this,K=[];return(0,C.S6)(U._getDataBySelectionMode(),function(Y,J){U._isNodeVisible(J)&&J.internalFields[V]&&(V===S||U.options.multipleSelection?K.push(J.internalFields.key):(K.length&&U.toggleSelection(K[0],!1,!0),K=[J.internalFields.key]))}),K},_getDataBySelectionMode:function(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:function(V){return!1!==V.internalFields.item.visible},_getByKey:function(V,U){return V===this._dataStructure?this.options.dataConverter._getByKey(U):this.options.dataConverter.getByKey(V,U)},_setChildrenSelection:function(){var V=this;(0,C.S6)(this._dataStructure,function(U,K){if(K.internalFields.childrenKeys.length){var Y=K.internalFields.selected;!0===Y&&V._toggleChildrenSelection(K,Y)}})},_setParentSelection:function(){var V=this;(0,C.S6)(this._dataStructure,function(U,K){V.options.dataConverter.getParentNode(K)&&K.internalFields.parentKey!==V.options.rootValue&&V._iterateParents(K,function(J){var j=V._calculateSelectedState(J);V._setFieldState(J,O,j)})})},_setParentExpansion:function(){var V=this;(0,C.S6)(this._dataStructure,function(U,K){K.internalFields.expanded&&V._updateOneBranch(K.internalFields.key)})},_updateOneBranch:function(V){var U=this,K=this.getNodeByKey(V);U._iterateParents(K,function(Y){U._setFieldState(Y,S,!0)})},_iterateChildren:function(V,U,K,Y){if((0,u.mf)(K)){var J=this,j=V.internalFields.key;-1===(Y=Y||[]).indexOf(j)&&(Y.push(j),(0,C.S6)(V.internalFields.childrenKeys,function(ee,G){var q=J.getNodeByKey(G);K(q),q.internalFields.childrenKeys.length&&U&&J._iterateChildren(q,U,K,Y)}))}},_iterateParents:function(V,U,K){if(V.internalFields.parentKey!==this.options.rootValue&&(0,u.mf)(U)){var Y=V.internalFields.key;if(-1===(K=K||[]).indexOf(Y)){K.push(Y);var J=this.options.dataConverter.getParentNode(V);J&&(U(J),J.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(J,U,K))}}},_calculateSelectedState:function(V){for(var U=V.internalFields.childrenKeys.length,K=0,Y=0,J=!1,j=0;j<=U-1;j++){var ee=this.getNodeByKey(V.internalFields.childrenKeys[j]),q=ee.internalFields.selected;!1===ee.internalFields.item.visible?Y++:q?K++:void 0===q&&(K+=.5)}return K&&(J=K===U-Y||void 0),J},_toggleChildrenSelection:function(V,U){var K=this;this._iterateChildren(V,!0,function(Y){K._isNodeVisible(Y)&&K._setFieldState(Y,O,U)})},_setFieldState:function(V,U,K){V.internalFields[U]!==K&&(V.internalFields[U]=K,V.internalFields.publicNode&&(V.internalFields.publicNode[U]=K),this.options.dataAccessors.setters[U](V.internalFields.item,K),this.options.onNodeChanged(V))},_markChildren:function(V){var U=this;(0,C.S6)(V,function(K,Y){var J=U.getIndexByKey(Y),j=U.getNodeByKey(Y);U._dataStructure[J]=0,j.internalFields.childrenKeys.length&&U._markChildren(j.internalFields.childrenKeys)})},_removeNode:function(V){var U=this.getNodeByKey(V);this._dataStructure[this.getIndexByKey(V)]=0,this._markChildren(U.internalFields.childrenKeys);var K=this,Y=0,J=(0,I.l)([],this._dataStructure);(0,C.S6)(J,function(j,ee){ee||(K._dataStructure.splice(j-Y,1),Y++)})},_addNode:function(V){var U=this.options.dataConverter,K=U._convertItemToNode(V,this.options.dataAccessors.getters.parentKey(V));this._dataStructure=this._dataStructure.concat(K),this._initialDataStructure=this._initialDataStructure.concat(K),U._dataStructure=U._dataStructure.concat(K)},_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(V){var U=null;return(0,C.S6)(this._dataStructure,function(K,Y){if(Y.internalFields.item===V)return U=Y,!1}),U},getNodesByItems:function(V){var U=this,K=[];return(0,C.S6)(V,function(Y,J){var j=U.getNodeByItem(J);j&&K.push(j)}),K},getNodeByKey:function(V,U){return this._getByKey(U||this._getDataBySelectionMode(),V)},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(V){return V.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(V){return(0,x.Z)(this._dataStructure).filter(["internalFields.parentKey",V]).toArray()},getIndexByKey:function(V){return this.options.dataConverter.getIndexByKey(V)},addItem:function(V){this._addNode(V),this._updateFields()},removeItem:function(V){this._removeNode(V),this._updateFields()},toggleSelection:function(V,U,K){var Y=this._isSingleModeUnselect(U),J=this._getByKey(K||Y?this._initialDataStructure:this._dataStructure,V);this._setFieldState(J,O,U),this.options.recursiveSelection&&!K&&(U?this._setChildrenSelection():this._toggleChildrenSelection(J,U),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(O)},_isSingleModeUnselect:function(V){return!this.options.multipleSelection&&!V},toggleNodeDisabledState:function(V,U){var K=this.getNodeByKey(V);this._setFieldState(K,"disabled",U)},toggleSelectAll:function(V){if((0,u.$K)(V)){var U=this,K=U._selectedNodesKeys[U._selectedNodesKeys.length-1],Y=U._isSingleModeUnselect(V)?this._initialDataStructure:this._dataStructure;(0,C.S6)(Y,function(J,j){U._isNodeVisible(j)&&U._setFieldState(j,O,V)}),U._selectedNodesKeys=U._updateNodesKeysArray(O),!V&&U.options.selectionRequired&&U.toggleSelection(K,!0)}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(V,U){var K=this.getNodeByKey(V);this._setFieldState(K,S,U),U&&this._updateExpansion(V),this._expandedNodesKeys=this._updateNodesKeysArray(S)},isFiltered:function(V){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[V]).length},_createCriteria:function(V,U,K){var Y=[];return Array.isArray(V)?((0,C.S6)(V,function(J,j){Y.push([j,K,U],"or")}),Y.pop(),Y):[V,K,U]},_filterDataStructure:function(V,U){var K=this.options.searchExpr||this.options.dataAccessors.getters.display,Y=h.Z.getOperationBySearchMode(this.options.searchMode),J=this._createCriteria(K,V,Y);return(0,x.Z)(U=U||this._initialDataStructure).filter(J).toArray()},search:function(V){var U=this,K=this._filterDataStructure(V),Y=this.options.dataConverter;return function J(j,ee){for(var G=j.length;ee<G;){var q=j[ee];if(q.internalFields.parentKey!==U.options.rootValue){var Z=Y.getParentNode(q);Z?(Z.internalFields.expanded||U._setFieldState(Z,S,!0),j.includes(Z)?ee++:(j.splice(ee,0,Z),J(j,ee))):(d.Z.log("W1007",q.internalFields.parentKey,q.internalFields.key),ee++)}else ee++}}(K,0),this.options.sort&&(K=b.Z.queryByOptions((0,x.Z)(K),{sort:this.options.sort}).toArray()),Y._indexByKey={},(0,C.S6)(K,function(J,j){j.internalFields.childrenKeys=[],Y._indexByKey[j.internalFields.key]=J}),Y._dataStructure=K,Y.setChildrenKeys(),Y._dataStructure}});var R=l(7307),P=l(4823),B="dx-state-disabled";const N=R.Z.inherit({_getDefaultOptions:function(){return(0,I.l)(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"===f.Z.real().deviceType&&!f.Z.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 V=this._createDataAdapterAccessors();this._dataAdapter=new k((0,I.l)({dataAccessors:{getters:V.getters,setters:V.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:s.ZT,_initDynamicTemplates:function(){var V=this;this._templateManager.addDefaultTemplates({item:new P.c(function(U,K){U.html(K.html).append(this._getIconContainer(K)).append(this._getTextContainer(K)).append(this._getPopoutContainer(K)),V._addContentClasses(K,U.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})})},_getIconContainer:function(V){return V.icon?(0,a.H)(V.icon):void 0},_getTextContainer:function(V){return(0,o.Z)("<span>").text(V.text)},_getPopoutContainer:s.ZT,_addContentClasses:s.ZT,_initAccessors:function(){var V=this;(0,C.S6)(this._getAccessors(),function(U,K){V._compileAccessor(K)}),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(V){var U=this,K=[];return(0,C.S6)(V.internalFields.childrenKeys,function(Y,J){var j=U._dataAdapter.getNodeByKey(J);K.push(j)}),K},_hasChildren:function(V){return V&&V.internalFields.childrenKeys.length},_compileAccessor:function(V){var U="_"+V+"Getter",K="_"+V+"Setter",Y=this.option(V+"Expr");return Y?(0,u.mf)(Y)?(this[K]=function(J,j){J[Y()]=j},void(this[U]=function(J){return J[Y()]})):(this[U]=(0,c.vb)(Y),void(this[K]=(0,c.OM)(Y))):(this[U]=s.ZT,void(this[K]=s.ZT))},_createDataAdapterAccessors:function(){var V=this,U={getters:{},setters:{}};return(0,C.S6)(this._getAccessors(),function(K,Y){var j="_"+Y+"Setter",ee="parentId"===Y?"parentKey":Y;U.getters[ee]=V["_"+Y+"Getter"],U.setters[ee]=V[j]}),U.getters.display=this._displayGetter?this._displayGetter:K=>K.text,U},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:s.ZT,_renderItemFrame:function(V,U){var K=this.callBase.apply(this,arguments);return K.toggleClass(B,!!this._disabledGetter(U)),K},_optionChanged:function(V){switch(V.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(V);break;default:this.callBase(V)}}})},4955:(kn,he,l)=>{"use strict";var o=l(1805),c=l(9904),I=l(8603),C=l(9009),f=l(5252),a=l(1247),p=l(3576),s=l(5505),u="dx-list-context-menu";(0,f.z)("menu","context",a.Z.inherit({_init:function(){var h=(0,c.Z)("<div>").addClass(u);this._list.$element().append(h),this._menu=this._renderOverlay(h)},_renderOverlay:function(h){return this._list._createComponent(h,p.Z,{shading:!1,deferRendering:!0,hideOnParentScroll:!0,hideOnOutsideClick:function(g){return!(0,c.Z)(g.target).closest("."+u).length},animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:function(){return(0,o.zp)(this._$menuList)}.bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},_ignoreFunctionValueDeprecation:!0,height:function(){return this._$menuList?(0,o.zp)(this._$menuList):0}.bind(this),width:function(){return(0,o.Y_)(this._list.$element())}.bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent:function(h){var g=h.component.$content(),x=this._menuItems().slice();this._deleteEnabled()&&x.push({text:C.Z.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=(0,c.Z)("<div>"),this._list._createComponent(this._$menuList,s.K,{items:x,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),g.addClass("dx-list-context-menucontent"),g.append(this._$menuList)},_menuItemClickHandler:function(h){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,h.itemData.action)},_deleteItem:function(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu:function(h){return this._$itemWithMenu=h,this._menu.option({position:{my:"top",at:"bottom",of:h,collision:"flip"}}),this._menu.show(),!0},dispose:function(){this._menu&&this._menu.$element().remove(),this.callBase.apply(this,arguments)}}).include(I.Z))},9156:(kn,he,l)=>{"use strict";l(4955);var c=l(1805),I=l(9904),C=l(3553),f=l(219),a=l(9009),p=l(5252),s=l(913),u=l(7674),d=l(1247),h=l(8225),g=l(8690),x=l(1409),b=d.Z.abstract,y="dxListEditDecorator",E=(0,h.V4)(g.Z.down,y),S=(0,h.V4)(x.bB,y),w="dx-list-switchable-delete-ready",P="dx-list-switchable-menu-item-shield-positioning";const V=d.Z.inherit({_init:function(){this._$topShield=(0,I.Z)("<div>").addClass("dx-list-switchable-delete-top-shield"),this._$bottomShield=(0,I.Z)("<div>").addClass("dx-list-switchable-delete-bottom-shield"),this._$itemContentShield=(0,I.Z)("<div>").addClass("dx-list-switchable-delete-item-content-shield"),s.Z.on(this._$topShield,E,this._cancelDeleteReadyItem.bind(this)),s.Z.on(this._$bottomShield,E,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(Ne){this._toggleDeleteReady(Ne,!1)},_toggleDeleteReady:function(Ne,ft){void 0===ft&&(ft=!this._isReadyToDelete(Ne)),this._toggleShields(Ne,ft),this._toggleScrolling(ft),this._cacheReadyToDeleteItem(Ne,ft),this._animateToggleDelete(Ne,ft)},_isReadyToDelete:function(Ne){return Ne.hasClass(w)},_toggleShields:function(Ne,ft){this._list.$element().toggleClass("dx-list-switchable-menu-shield-positioning",ft),this._$topShield.toggle(ft),this._$bottomShield.toggle(ft),ft&&this._updateShieldsHeight(Ne),this._toggleContentShield(Ne,ft)},_updateShieldsHeight:function(Ne){var ft=this._list.$element(),tt=ft.offset().top,Be=(0,c.zp)(ft),ke=Ne.offset().top-tt,$e=Be-(0,c.zp)(Ne)-ke;(0,c.QQ)(this._$topShield,Math.max(ke,0)),(0,c.QQ)(this._$bottomShield,Math.max($e,0))},_toggleContentShield:function(Ne,ft){ft?Ne.find(".dx-list-item-content").first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(Ne){var ft=this._list.$element().dxScrollView("instance");Ne?ft.on("start",this._cancelScrolling):ft.off("start",this._cancelScrolling)},_cancelScrolling:function(Ne){Ne.event.cancel=!0},_cacheReadyToDeleteItem:function(Ne,ft){ft?this._$readyToDeleteItem=Ne:delete this._$readyToDeleteItem},_animateToggleDelete:function(Ne,ft){ft?(this._enablePositioning(Ne),this._prepareDeleteReady(Ne),this._animatePrepareDeleteReady(Ne),s.Z.off(Ne,g.Z.up)):(this._forgetDeleteReady(Ne),this._animateForgetDeleteReady(Ne).done(this._disablePositioning.bind(this,Ne)))},_enablePositioning:function(Ne){Ne.addClass(P),s.Z.on(Ne,S,u.ZT),s.Z.one(Ne,g.Z.up,this._disablePositioning.bind(this,Ne))},_disablePositioning:function(Ne){Ne.removeClass(P),s.Z.off(Ne,S)},_prepareDeleteReady:function(Ne){Ne.addClass(w)},_forgetDeleteReady:function(Ne){Ne.removeClass(w)},_animatePrepareDeleteReady:b,_animateForgetDeleteReady:b,_getDeleteButtonContainer:function(Ne){return(Ne=Ne||this._$readyToDeleteItem).children(".dx-list-switchable-delete-button-container")},_deleteItem:function(Ne){this._getDeleteButtonContainer(Ne=Ne||this._$readyToDeleteItem).detach(),!Ne.is(".dx-state-disabled, .dx-state-disabled *")&&this._list.deleteItem(Ne).always(this._cancelDelete.bind(this,Ne))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});var U="dx-list-switchable-delete-button-container",K="dx-list-switchable-delete-button-wrapper",Y="dx-list-switchable-delete-button-inner-wrapper",J="dx-list-switchable-delete-button",ee=V.inherit({_init:function(){this.callBase.apply(this,arguments);var Ne=(0,I.Z)("<div>").addClass(U),ft=(0,I.Z)("<div>").addClass(K),tt=(0,I.Z)("<div>").addClass(Y),Be=(0,I.Z)("<div>").addClass(J);this._list._createComponent(Be,f.Z,{text:a.Z.format("dxListEditDecorator-delete"),type:"danger",onClick:function(mt){this._deleteItem(),mt.event.stopPropagation()}.bind(this),integrationOptions:{}}),Ne.append(ft),ft.append(tt),tt.append(Be),this._$buttonContainer=Ne},_enablePositioning:function(Ne){this.callBase.apply(this,arguments),C.Z.stop(this._$buttonContainer,!0),this._$buttonContainer.appendTo(Ne)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonContainer.detach()},_animatePrepareDeleteReady:function(){var Ne=this._isRtlEnabled(),ft=(0,c.dz)(this._list.$element()),tt=this._buttonWidth();return C.Z.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:Ne?ft:-tt},to:{right:Ne?ft-tt:0}})},_animateForgetDeleteReady:function(){var Ne=this._isRtlEnabled(),ft=(0,c.dz)(this._list.$element()),tt=this._buttonWidth();return C.Z.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:Ne?ft-tt:0},to:{right:Ne?ft:-tt}})},_buttonWidth:function(){return this._buttonContainerWidth||(this._buttonContainerWidth=(0,c.Y_)(this._$buttonContainer)),this._buttonContainerWidth},dispose:function(){this._$buttonContainer&&this._$buttonContainer.remove(),this.callBase.apply(this,arguments)}});(0,p.z)("delete","toggle",ee.inherit({beforeBag:function(Ne){var ft=Ne.$itemElement,tt=Ne.$container,Be=(0,I.Z)("<div>").addClass("dx-list-toggle-delete-switch");this._list._createComponent(Be,f.Z,{icon:"toggle-delete",onClick:function(mt){C.Z.stop(this._$buttonContainer,!1),this._toggleDeleteReady(ft),mt.event.stopPropagation()}.bind(this),integrationOptions:{}}),tt.addClass("dx-list-toggle-delete-switch-container"),tt.append(Be)}})),(0,p.z)("delete","slideButton",ee.inherit({_shouldHandleSwipe:!0,_swipeEndHandler:function(Ne,ft){return 0!==ft.targetOffset&&(C.Z.stop(this._$buttonContainer,!1),this._toggleDeleteReady(Ne)),!0}}));var X=l(227),M=l(6961),se=l(8603),ge=l(2722),De=l(6530),Fe="dxListEditDecorator",Ae=(0,h.V4)(X.u,Fe),ne=(0,h.V4)(x.bB,Fe),_e="dx-list-slide-menu-wrapper",ie="dx-list-slide-menu-content",de="dx-list-slide-menu-buttons-container",le="dx-list-slide-menu-buttons",pe="dx-list-slide-menu-button";(0,p.z)("menu","slide",V.inherit({_shouldHandleSwipe:!0,_init:function(){this.callBase.apply(this,arguments),this._$buttonsContainer=(0,I.Z)("<div>").addClass(de),s.Z.on(this._$buttonsContainer,ne,u.ZT),this._$buttons=(0,I.Z)("<div>").addClass(le).appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu:function(){if(this._menuEnabled()){var Ne=this._menuItems();if(1===Ne.length){var ft=Ne[0];this._renderMenuButton(ft.text,function(mt){mt.stopPropagation(),this._fireAction(ft)}.bind(this))}else{var tt=(0,I.Z)("<div>").addClass("dx-list-slide-menu");this._menu=this._list._createComponent(tt,De.Z,{showTitle:!1,items:Ne,onItemClick:function(mt){this._fireAction(mt.itemData)}.bind(this),integrationOptions:{}}),tt.appendTo(this._list.$element());var Be=this._renderMenuButton(a.Z.format("dxListEditDecorator-more"),function(mt){mt.stopPropagation(),this._menu.show()}.bind(this));this._menu.option("target",Be)}}},_renderMenuButton:function(Ne,ft){var tt=(0,I.Z)("<div>").addClass(pe).addClass("dx-list-slide-menu-button-menu").text(Ne);return this._$buttons.append(tt),s.Z.on(tt,Ae,ft),tt},_renderDeleteButton:function(){if(this._deleteEnabled()){var Ne=(0,I.Z)("<div>").addClass(pe).addClass("dx-list-slide-menu-button-delete").text((0,ge.x2)()?"":a.Z.format("dxListEditDecorator-delete"));s.Z.on(Ne,Ae,function(ft){ft.stopPropagation(),this._deleteItem()}.bind(this)),this._$buttons.append(Ne)}},_fireAction:function(Ne){this._fireMenuAction((0,I.Z)(this._cachedNode),Ne.action),this._cancelDeleteReadyItem()},modifyElement:function(Ne){this.callBase.apply(this,arguments);var ft=Ne.$itemElement;ft.addClass(_e);var tt=(0,I.Z)("<div>").addClass(ie);ft.wrapInner(tt)},_getDeleteButtonContainer:function(){return this._$buttonsContainer},handleClick:function(Ne,ft){return!!(0,I.Z)(ft.target).closest("."+ie).length&&this.callBase.apply(this,arguments)},_swipeStartHandler:function(Ne){this._enablePositioning(Ne),this._cacheItemData(Ne),this._setPositions(this._getPositions(0))},_swipeUpdateHandler:function(Ne,ft){var Be=this._isRtlEnabled()?-1:1,mt=this._isReadyToDelete(Ne);if(this._getCurrentPositions().content!==this._getStartPositions().content||mt||!(ft.offset*Be>0)){var ke=this._cachedItemWidth*ft.offset,$e=mt?-this._cachedButtonWidth*Be:0,xe=(ke+$e)*Be<0?Math.abs((ke+$e)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(xe)),!0}ft.cancel=!0},_getStartPositions:function(){var Ne=this._isRtlEnabled();return{content:0,buttonsContainer:Ne?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*(Ne?-1:1)}},_getPositions:function(Ne){var tt=this._isRtlEnabled()?-1:1,Be=this._getStartPositions();return{content:Be.content-Ne*this._cachedButtonWidth*tt,buttonsContainer:Be.buttonsContainer-Math.min(Ne,1)*this._cachedButtonWidth*tt,buttons:Be.buttons+Math.min(Ne,1)*this._cachedButtonWidth*tt}},_getCurrentPositions:function(){return{content:(0,M.jt)(this._$cachedContent).left,buttonsContainer:(0,M.jt)(this._$buttonsContainer).left,buttons:(0,M.jt)(this._$buttons).left}},_setPositions:function(Ne){(0,M.pB)(this._$cachedContent,{left:Ne.content}),(0,M.pB)(this._$buttonsContainer,{left:Ne.buttonsContainer}),(0,M.pB)(this._$buttons,{left:Ne.buttons})},_cacheItemData:function(Ne){Ne[0]!==this._cachedNode&&(this._$cachedContent=Ne.find("."+ie),this._cachedItemWidth=(0,c.Y_)(Ne),this._cachedButtonWidth=this._cachedButtonWidth||(0,c.Y_)(this._$buttons),(0,c.cl)(this._$buttonsContainer,this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=Ne[0]))},_minButtonContainerLeftOffset:function(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler:function(Ne,ft){this._cacheItemData(Ne);var tt=this._isRtlEnabled()?1:-1,Be=this._cachedItemWidth*ft.offset,mt=!this._isReadyToDelete(Ne)&&Be*tt>.2*this._cachedButtonWidth;return this._toggleDeleteReady(Ne,ft.targetOffset===tt&&mt),!0},_enablePositioning:function(Ne){C.Z.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(Ne)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady:function(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady:function(Ne){return this._cacheItemData(Ne),this._animateToPositions(this._getPositions(0))},_animateToPositions:function(Ne){var ft=this,tt=this._getCurrentPositions(),Be=Math.min(Math.abs(tt.content-Ne.content)/this._cachedButtonWidth,1);return C.Z.animate(this._$cachedContent,{from:tt,to:Ne,easing:"cubic-bezier(0.075, 0.82, 0.165, 1)",duration:400*Be,strategy:"frame",draw:function(mt){ft._setPositions(mt)}})},dispose:function(){this._menu&&this._menu.$element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include(se.Z)),(0,p.z)("delete","static",d.Z.inherit({afterBag:function(Ne){var ft=Ne.$itemElement,tt=Ne.$container,Be=(0,I.Z)("<div>").addClass("dx-list-static-delete-button");this._list._createComponent(Be,f.Z,{icon:"remove",onClick:function(mt){mt.event.stopPropagation(),this._deleteItem(ft)}.bind(this),integrationOptions:{}}),tt.addClass("dx-list-static-delete-button-container").append(Be)},_deleteItem:function(Ne){Ne.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(Ne)}}));var Pe=l(4270);(0,p.z)("delete","swipe",d.Z.inherit({_shouldHandleSwipe:!0,_renderItemPosition:function(Ne,ft,tt){var Be=new Pe.BH,mt=ft*this._itemElementWidth;return tt?C.Z.animate(Ne,{to:{left:mt},type:"slide",complete:function(){Be.resolve(Ne,ft)}}):((0,M.pB)(Ne,{left:mt}),Be.resolve()),Be.promise()},_swipeStartHandler:function(Ne){return this._itemElementWidth=(0,c.dz)(Ne),!0},_swipeUpdateHandler:function(Ne,ft){return this._renderItemPosition(Ne,ft.offset),!0},_swipeEndHandler:function(Ne,ft){return this._renderItemPosition(Ne,ft.targetOffset,!0).done(function(Be,mt){Math.abs(mt)&&this._list.deleteItem(Be).fail(function(){this._renderItemPosition(Be,0,!0)}.bind(this))}.bind(this)),!0}}))},3930:(kn,he,l)=>{"use strict";var o=l(2589),c=l(3447);o.Z.setEditorClass(c.Z)},107:(kn,he,l)=>{"use strict";var o=l(9904),c=l(913),I=l(227),C=l(5873),f=l(8159),a=l(344),p=l(2941),s=l(8506),u=l(1031),d=l(8225),g="dx-radiobutton-icon",E=u.Z.inherit({_supportedKeys:function(){return(0,C.l)(this.callBase(),{space:function(Y){Y.preventDefault(),this._clickAction({event:Y})}})},_getDefaultOptions:function(){return(0,C.l)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===p.Z.real().deviceType&&!p.Z.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=(0,o.Z)("<div>").addClass(g),(0,o.Z)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(Y){this.$element().toggleClass("dx-radiobutton-checked",Y).find("."+g).toggleClass("dx-radiobutton-icon-checked",Y),this.setAria("checked",Y)},_renderClick:function(){var Y=(0,d.V4)(I.u,this.NAME);this._clickAction=this._createAction(function(J){this._clickHandler(J.event)}.bind(this)),c.Z.off(this.$element(),Y),c.Z.on(this.$element(),Y,function(J){this._clickAction({event:J})}.bind(this))},_clickHandler:function(Y){this._saveValueChangeEvent(Y),this.option("value",!0)},_optionChanged:function(Y){"value"===Y.name?(this._renderCheckedState(Y.value),this.callBase(Y)):this.callBase(Y)}});(0,s.Z)("dxRadioButton",E);const S=E;var O=l(5252),w=l(1247),T="dx-list-select-decorator-enabled",B="dx-list-select-checkbox-container",W="dx-list-select-checkbox",N="dx-list-select-radiobutton-container",V="dx-list-select-radiobutton",K=(0,d.V4)(I.u,"dxListEditDecorator");(0,O.z)("selection","default",w.Z.inherit({_init:function(){this.callBase.apply(this,arguments);var Y=this._list.option("selectionMode");this._singleStrategy="single"===Y,this._containerClass=this._singleStrategy?N:B,this._controlClass=this._singleStrategy?V:W,this._controlWidget=this._singleStrategy?S:a.Z,this._list.$element().addClass(T)},beforeBag:function(Y){var J=Y.$itemElement,j=Y.$container.addClass(this._containerClass),ee=(0,o.Z)("<div>").addClass(this._controlClass).appendTo(j);new this._controlWidget(ee,(0,C.l)(this._commonOptions(),{value:this._isSelected(J),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(G){G.event&&this._list._saveSelectionChangeEvent(G.event),this._processCheckedState(J,G.value),G.event&&G.event.stopPropagation()}.bind(this)}))},modifyElement:function(Y){this.callBase.apply(this,arguments);var J=Y.$itemElement,j=this._controlWidget.getInstance(J.find("."+this._controlClass));c.Z.on(J,"stateChanged",function(ee,G){j.option("value",G)}.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(Y,J){var j=!J,ee=this._list,G=this._$selectAll,q=ee._getLastItemIndex();return!(!G||!(J&&0===Y||j&&Y===q)||(ee.option("focusedElement",G),ee.scrollToItem(ee.option("focusedElement")),0))},handleEnterPressing:function(Y){if(this._$selectAll&&this._$selectAll.hasClass("dx-state-focused"))return Y.target=this._$selectAll.get(0),this._list._saveSelectionChangeEvent(Y),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var Y=this._$selectAll=(0,o.Z)("<div>").addClass("dx-list-select-all"),J=this._list,j=J._supportedKeys().downArrow.bind(J);this._selectAllCheckBox=J._createComponent((0,o.Z)("<div>").addClass("dx-list-select-all-checkbox").appendTo(Y),a.Z,{focusStateEnabled:!1,hoverStateEnabled:!1}),this._selectAllCheckBox.registerKeyHandler("downArrow",j),(0,o.Z)("<div>").addClass("dx-list-select-all-label").text(this._list.option("selectAllText")).appendTo(Y),this._list.itemsContainer().prepend(Y),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),c.Z.off(this._$selectAll,K),c.Z.on(this._$selectAll,K,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(Y){Y.event&&Y.event.stopPropagation();var J=this._selectAllCheckBox.option("value");Y.event&&this._list._saveSelectionChangeEvent(Y.event),!0===J?this._selectAllItems():!1===J&&this._unselectAllItems(),this._list._createActionByOption("onSelectAllValueChanged")({value:J})},_checkSelectAllCapability:function(){var Y=this._list,J=Y._dataController;return!("allPages"===Y.option("selectAllMode")&&Y.option("grouped")&&!J.group()&&(f.Z.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(Y){this._list._saveSelectionChangeEvent(Y),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(Y){return this._list.isItemSelected(Y)},_processCheckedState:function(Y,J){J?this._list.selectItem(Y):this._list.unselectItem(Y)},dispose:function(){this._disposeSelectAll(),this._list.$element().removeClass(T),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}))},5505:(kn,he,l)=>{"use strict";l.d(he,{K:()=>nn});var o=l(1805),c=l(9904),I=l(913),C=l(7674),f=l(1828),a=l(4328),p=l(6881),s=l(2718),u=l(6738),d=l(5873),h=l(3553),g=l(227),x=l(1918),b=l(4505),y=l(9009),E=l(4594),S=l(2941),O=l(8646),w="dx-list-item-badge-container",R="dx-list-item-chevron-container";const W=O.Z.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(me){if(this._$element.children("."+w).remove(),me){var xe=(0,c.Z)("<div>").addClass(w).append((0,c.Z)("<div>").addClass("dx-list-item-badge").addClass("dx-badge").text(me)),Te=this._$element.children("."+R).first();Te.length>0?xe.insertBefore(Te):xe.appendTo(this._$element)}},_renderShowChevron:function(me){if(this._$element.children("."+R).remove(),me){var xe=(0,c.Z)("<div>").addClass(R),Te=(0,c.Z)("<div>").addClass("dx-list-item-chevron");xe.append(Te).appendTo(this._$element)}}});var N=l(219),V=l(8225),U=l(2722),K=l(4514),Y=l(3862),J=l(5373),j=l(5286),ee=l(4823),G=l(4270),q=l(9661),Z=l(7981),X=l(8093);function se(me,xe){var Te=function M(me){var xe,Te;return me&&(0,K.Ym)()?null===(xe=(Te=(0,K.Jj)()).getComputedStyle)||void 0===xe?void 0:xe.call(Te,me):null}(me);return Te?(0,X.H)(Te["margin".concat((0,Z.MI)(xe))]):0}var fe="dx-list-item",_e="."+fe,le="dx-list-group",pe="dx-list-group-header",Ee="dx-list-group-body",te="dx-list-group-collapsed",Pe="dx-wrap-item-text",Be=(0,u.vb)("items"),nn=j.Z.inherit({_activeStateUnit:[_e,".dx-list-select-all"].join(","),_supportedKeys:function(){var me=this,xe=function(Ye){var Rt,fn,ct,St=Te(Ye);St.is(me.option("focusedElement"))&&(fn=Ye,ct=(Rt=St).position().top,"prev"===fn&&(ct=Rt.position().top-(0,o.Cr)(me.$element())+(0,o.zp)(Rt)),me.scrollTo(ct),St=Te(Ye)),me.option("focusedElement",(0,p.u)(St)),me.scrollToItem(St)};function Te(Ye){var St=me.scrollTop(),Ct=(0,o.Cr)(me.$element()),Rt=(0,c.Z)(me.option("focusedElement")),fn=!0;if(!Rt.length)return(0,c.Z)();for(;fn;){var ct=Rt[Ye]();if(!ct.length)break;var He=ct.position().top+(0,o.zp)(ct)/2;(fn=He<Ct+St&&He>St)&&(Rt=ct)}return Rt}return(0,d.l)(this.callBase(),{leftArrow:C.ZT,rightArrow:C.ZT,pageUp:function(){return xe("prev"),!1},pageDown:function(){return xe("next"),!1}})},_getDefaultOptions:function(){return(0,d.l)(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:y.Z.format("dxList-pullingDownText"),pulledDownText:y.Z.format("dxList-pulledDownText"),refreshingText:y.Z.format("dxList-refreshingText"),pageLoadingText:y.Z.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:y.Z.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(me){return me?me.showChevron:void 0},badgeExpr:function(me){return me?me.badge:void 0}})},_defaultOptionsRules:function(){var me=(0,U.Vk)();return this.callBase().concat((0,J.i)(),[{device:function(){return!b.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(xe){return!b.nativeScrolling&&!S.Z.isSimulator()&&"desktop"===S.Z.real().deviceType&&"generic"===xe.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===S.Z.real().deviceType&&!S.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,U.x2)(me)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(me){me&&this._updateLoadingState(!0)},_itemClass:function(){return fe},_itemDataKey:function(){return"dxListItemData"},_itemContainer:function(){return this._$container},_saveSelectionChangeEvent:function(me){this._selectionChangeEventInstance=me},_getSelectionChangeEvent:function(){return this._selectionChangeEventInstance},_refreshItemElements:function(){this._itemElementsCache=this.option("grouped")?this._itemContainer().children("."+le).children("."+Ee).children(this._itemSelector()):this._itemContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},reorderItem:function(me,xe){return this.callBase(me,xe).done(function(){this._refreshItemElements()})},deleteItem:function(me){return this.callBase(me).done(function(){this._refreshItemElements()})},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(me){if("single"!==this.option("selectionMode")||!this.isItemSelected(me.currentTarget))return this.callBase(me)},_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 me=this._scrollBottomMode(),xe=this._nextButtonMode();return(0,d.l)(this.callBase(),{paginate:(0,C.IS)(me||xe,!0)})},_getGroupedOption:function(){return this.option("grouped")},_getGroupContainerByIndex:function(me){return this._itemContainer().find(".".concat(le)).eq(me).find(".".concat(Ee))},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var me=this.option("scrollingEnabled"),xe=me&&this.option("pullRefreshEnabled"),Te=me&&this._scrollBottomMode()&&!!this._dataController.getDataSource();this._scrollView=this._createComponent(this.$element(),function ke(){return Y.Z}(),{height:this.option("height"),width:this.option("width"),disabled:this.option("disabled")||!me,onScroll:this._scrollHandler.bind(this),onPullDown:xe?this._pullDownHandler.bind(this):null,onReachBottom:Te?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=(0,c.Z)(this._scrollView.content()),this.option("wrapItemText")&&this._$container.addClass(Pe),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(me){this._scrollAction&&this._scrollAction(me)},_initTemplates:function(){this._templateManager.addDefaultTemplates({group:new ee.c(function(me,xe){(0,f.PO)(xe)?xe.key&&me.text(xe.key):me.text(String(xe))},["key"],this.option("integrationOptions.watchMethod"))}),this.callBase()},_prepareDefaultItemTemplate:function(me,xe){if(this.callBase(me,xe),me.icon){var Te=(0,a.H)(me.icon).addClass("dx-list-item-icon"),Ye=(0,c.Z)("<div>").addClass("dx-list-item-icon-container");Ye.append(Te),xe.prepend(Ye)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(me){var xe=this._dataController,Te=this._scrollBottomMode()&&me&&!xe.isLoading()&&!this._isLastPage();this._shouldContinueLoading(Te)?this._infiniteDataLoading():(this._scrollView.release(!Te&&!xe.isLoading()),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1))},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataController.isLoaded()},_isDataSourceFirstLoadCompleted:function(me){return(0,f.$K)(me)&&(this._isFirstLoadCompleted=me),this._isFirstLoadCompleted},_dataSourceLoadingChangedHandler:function(me){this._loadIndicationSuppressed()||(me&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var Ye;!this._itemElements().length&&!this._isDataSourceFirstLoadCompleted()||null===(Ye=this._scrollView)||void 0===Ye||Ye.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()),me||this._isDataSourceFirstLoadCompleted(!1))},_dataSourceChangedHandler:function(){!this._shouldAppendItems()&&(0,K.Ym)()&&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(me){if(!arguments.length)return this._isLoadIndicationSuppressed;this._isLoadIndicationSuppressed=me},_scrollViewIsFull:function(){var me=this._scrollView;return!me||(0,o.Cr)(me.content())>(0,o.Cr)(me.container())},_pullDownHandler:function(me){this._pullRefreshAction(me);var xe=this._dataController;xe.getDataSource()&&!xe.isLoading()?(this._clearSelectedItems(),xe.pageIndex(0),xe.reload()):this._updateLoadingState()},_shouldContinueLoading:function(me){var xe,Te,Ye=(0,o.Cr)(this._scrollView.content())-(0,o.Cr)(this._scrollView.container())<(null!==(xe=null===(Te=this._scrollView.scrollOffset())||void 0===Te?void 0:Te.top)&&void 0!==xe?xe:0);return me&&(!this._scrollViewIsFull()||Ye)},_infiniteDataLoading:function(){this.$element().is(":visible")&&(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(()=>{this._loadNextPage()}))},_scrollBottomHandler:function(me){this._pageLoadingAction(me),this._dataController.isLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(me){this.option("grouped")?((0,s.S6)(me,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),(0,U.x2)()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var me=(0,V.V4)(g.u,this.NAME),xe="."+pe,Te=this.$element(),Ye=this.option("collapsibleGroups");Te.toggleClass("dx-list-collapsible-groups",Ye),I.Z.off(Te,me,xe),Ye&&I.Z.on(Te,me,xe,function(St){this._createAction(function(Ct){var Rt=(0,c.Z)(Ct.event.currentTarget).parent();this._collapseGroupHandler(Rt),this.option("focusStateEnabled")&&this.option("focusedElement",(0,p.u)(Rt.find("."+fe).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:St})}.bind(this))},_collapseGroupHandler:function(me,xe){var Te=new G.BH;if(me.hasClass(te)===xe)return Te.resolve();var Ye=me.children("."+Ee),St=(0,o.zp)(Ye),Ct=0;return 0===St&&((0,o.QQ)(Ye,"auto"),Ct=(0,o.zp)(Ye)),me.toggleClass(te,xe),h.Z.animate(Ye,{type:"custom",from:{height:St},to:{height:Ct},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),Te.resolve()}.bind(this)}),Te.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=(0,c.Z)(),this.$element().addClass("dx-list"),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria("role",this.option("_listAttributes").role)},_renderInkRipple:function(){this._inkRipple=(0,E.sY)()},_toggleActiveState:function(me,xe,Te){this.callBase.apply(this,arguments);var Ye=this;if(this._inkRipple){var St={element:me,event:Te};xe?(0,U.x2)()?this._inkRippleTimer=setTimeout(function(){Ye._inkRipple.showWave(St)},35):Ye._inkRipple.showWave(St):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(St))}},_postprocessRenderItem:function(me){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("_swipeEnabled")&&this._attachSwipeEvent((0,c.Z)(me.itemElement))},_attachSwipeEvent:function(me){var xe=(0,V.V4)(x.ut,this.NAME);I.Z.on(me,xe,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(me){this._itemDXEventHandler(me,"onItemSwipe",{direction:me.offset<0?"left":"right"})},_nextButtonHandler:function(me){this._pageLoadingAction(me);var xe=this._dataController;xe.getDataSource()&&!xe.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(me,xe){var Te=(0,c.Z)("<div>").addClass(le).appendTo(this._itemContainer()),Ye=(0,c.Z)("<div>").addClass(pe).appendTo(Te),St=this.option("groupTemplate"),Ct=this._getTemplate(xe.template||St,xe,me,Ye),Rt={index:me,itemData:xe,container:(0,p.u)(Ye)};this._createItemByTemplate(Ct,Rt),(0,U.x2)()&&(0,c.Z)("<div>").addClass("dx-list-group-header-indicator").prependTo(Ye),this._renderingGroupIndex=me;var fn=(0,c.Z)("<div>").addClass(Ee).appendTo(Te);(0,s.S6)(Be(xe)||[],function(ct,He){this._renderItem({group:me,item:ct},He,fn)}.bind(this)),this._groupRenderAction({groupElement:(0,p.u)(Te),groupIndex:me,groupData:xe})},downInkRippleHandler:function(me){this._toggleActiveState((0,c.Z)(me.currentTarget),!0,me)},upInkRippleHandler:function(me){this._toggleActiveState((0,c.Z)(me.currentTarget),!1)},attachGroupHeaderInkRippleEvents:function(){var me="."+pe,xe=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);var Te=[xe,"dxpointerdown",me,this._downInkRippleHandler],Ye=[xe,"dxpointerup dxpointerout",me,this._upInkRippleHandler];I.Z.off(...Te),I.Z.on(...Te),I.Z.off(...Ye),I.Z.on(...Ye)},_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(me){this.callBase(me),this._scrollView.option("disabled",me||!this.option("scrollingEnabled"))},_toggleNextButton:function(me){var xe=this._dataController,Te=this._getNextButton();this.$element().toggleClass("dx-has-next",me),me&&xe.isLoaded()&&Te.appendTo(this._itemContainer()),me||Te.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var me=(0,c.Z)("<div>").addClass("dx-list-next-button"),xe=(0,c.Z)("<div>").appendTo(me);return this._createComponent(xe,N.Z,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:(0,U.x2)()?"default":void 0,integrationOptions:{}}),me},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if((0,K.Ym)()){var me=this._scrollView.scrollTop();this.callBase(),me&&this._scrollView.scrollTo(me)}else this.callBase()},_optionChanged:function(me){switch(me.name){case"pageLoadMode":this._toggleNextButton(me.value),this._initScrollView();break;case"dataSource":this.callBase(me),this._initScrollView(),this._isDataSourceFirstLoadCompleted(!1);break;case"items":this.callBase(me),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(Pe,me.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(me),this._scrollView.option(me.name,me.value),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(me),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(me);break;case"_swipeEnabled":case"_listAttributes":break;default:this.callBase(me)}},_extendActionArgs:function(me){if(!this.option("grouped"))return this.callBase(me);var xe=me.closest("."+le),Te=xe.find("."+fe);return(0,d.l)(this.callBase(me),{itemIndex:{group:xe.index(),item:Te.index(me)}})},expandGroup:function(me){var xe=new G.BH,Te=this._itemContainer().find("."+le).eq(me);return this._collapseGroupHandler(Te,!1).done(function(){xe.resolveWith(this)}.bind(this)),xe.promise()},collapseGroup:function(me){var xe=new G.BH,Te=this._itemContainer().find("."+le).eq(me);return this._collapseGroupHandler(Te,!0).done(function(){xe.resolveWith(this)}.bind(this)),xe},updateDimensions:function(){var me=this,xe=new G.BH;return me._scrollView?me._scrollView.update().done(function(){!me._scrollViewIsFull()&&me._updateLoadingState(!0),xe.resolveWith(me)}):xe.resolveWith(me),xe.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(me){this._scrollView.scrollBy(me)},scrollTo:function(me){this._scrollView.scrollTo(me)},scrollToItem:function(me){var Te=this._editStrategy.getItemElement(me)?.get(0);this._scrollView.scrollToElement(Te,{bottom:se(Te,"bottom")})},_dimensionChanged:function(){this.updateDimensions()}}).include(q.Z);nn.ItemClass=W},1247:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>x});var o=l(1805),c=l(9904),I=l(913),C=l(7674),f=l(5031),a=l(1918),p=l(8225),s="dxListEditDecorator",u=(0,p.V4)(a.BL,s),d=(0,p.V4)(a.aq,s),h=(0,p.V4)(a.ut,s);const x=f.Z.inherit({ctor:function(b){this._list=b,this._init()},_init:C.ZT,_shouldHandleSwipe:!1,_attachSwipeEvent:function(b){var y={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=(0,o.dz)(this._list.$element()),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};I.Z.on(b.$itemElement,u,y,this._itemSwipeStartHandler.bind(this)),I.Z.on(b.$itemElement,d,this._itemSwipeUpdateHandler.bind(this)),I.Z.on(b.$itemElement,h,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(b){var y=(0,c.Z)(b.currentTarget);y.is(".dx-state-disabled, .dx-state-disabled *")?b.cancel=!0:(clearTimeout(this._list._inkRippleTimer),this._swipeStartHandler(y,b))},_itemSwipeUpdateHandler:function(b){var y=(0,c.Z)(b.currentTarget);this._swipeUpdateHandler(y,b)},_itemSwipeEndHandler:function(b){var y=(0,c.Z)(b.currentTarget);this._swipeEndHandler(y,b),this._clearSwipeCache=!0},beforeBag:C.ZT,afterBag:C.ZT,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(b){this._shouldHandleSwipe&&(this._attachSwipeEvent(b),this._clearSwipeCache=!0)},afterRender:C.ZT,handleClick:C.ZT,handleKeyboardEvents:C.ZT,handleEnterPressing:C.ZT,handleContextMenu:C.ZT,_swipeStartHandler:C.ZT,_swipeUpdateHandler:C.ZT,_swipeEndHandler:C.ZT,visibilityChange:C.ZT,getExcludedSelectors:C.ZT,dispose:C.ZT})},8603:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>c});const c={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(I,C){this._list._itemEventHandlerByHandler(I,C,{},{excludeValidators:["disabled","readOnly"]})}}},5252:(kn,he,l)=>{"use strict";l.d(he,{i:()=>c,z:()=>I});var o=l(5873),c={};function I(C,f,a){var p=c,s={};s[C]=p[C]?p[C]:{},s[C][f]=a,(0,o.l)(p,s)}},5412:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>X});var o=l(9904),c=l(8225),I=l(5873),C=l(1828),f=l(2718),a=l(3382),p=l(7316),s=l(5172),d="dx-list-group",x=function(M){return(M.group<<20)+M.item},b=function(M){return{group:M>>20,item:1048575&M}};const E=s.Z.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find("."+d)},_groupItemElements:function(M){return M.find(".dx-list-item")},getIndexByItemData:function(M){var se=this._collectionWidget.option("items"),ge=!1;return!!M&&(M.items&&M.items.length&&(M=M.items[0]),(0,f.S6)(se,function(De,Fe){if(!Fe.items||((0,f.S6)(Fe.items,function(Ae,ne){return ne!==M||(ge={group:De,item:Ae},!1)}),ge))return!1}),ge)},getItemDataByIndex:function(M){var se=this._collectionWidget.option("items");return(0,C.kE)(M)?this.itemsGetter()[M]:M&&se[M.group]&&se[M.group].items[M.item]||null},itemsGetter:function(){for(var M=[],se=this._collectionWidget.option("items"),ge=0;ge<se.length;ge++)se[ge]&&se[ge].items?M=M.concat(se[ge].items):M.push(se[ge]);return M},deleteItemAtIndex:function(M){var se=b(M);this._collectionWidget.option("items")[se.group].items.splice(se.item,1)},getKeysByItems:function(M){var ge,se=[];for(ge=0;ge<M.length;ge++)M[ge]&&M[ge].items?se=se.concat(M[ge].items):se.push(M[ge]);var De=[];for(ge=0;ge<se.length;ge++)De.push(this._collectionWidget.keyOf(se[ge]));return De},getIndexByKey:function(M,se){var ge=se||this._collectionWidget.option("items"),De=-1,Fe=this;return(0,f.S6)(ge,function(Ae,ne){if(ne.items&&((0,f.S6)(ne.items,function(fe,_e){var ie=Fe._collectionWidget.keyOf(_e);if(Fe._equalKeys(ie,M))return De={group:Ae,item:fe},!1}),-1!==De))return!1}),De},_getGroups:function(M){var ge=this._collectionWidget._dataController.group();return ge?a.Z.queryByOptions((0,p.Z)(M),{group:ge}).toArray():this._collectionWidget.option("items")},getItemsByKeys:function(M,se){var ge=[],De=this._getGroups(se),Fe={},Ae=ne=>{var fe=this.getIndexByKey(ne,De),_e=fe&&De[fe.group];if(_e)return{groupKey:_e.key,item:_e.items[fe.item]}};return(0,f.S6)(M,function(ne,fe){var _e=Ae(fe);if(_e){var ie=_e.groupKey,de=_e.item,le=Fe[ie];le||(Fe[ie]=le={key:ie,items:[]},ge.push(le)),le.items.push(de)}}),ge},moveItemAtIndexToIndex:function(M,se){var ge=this._collectionWidget.option("items"),De=b(M),Fe=b(se),Ae=ge[De.group].items,ne=ge[Fe.group].items,fe=Ae[De.item];Ae.splice(De.item,1),ne.splice(Fe.item,0,fe)},_isItemIndex:function(M){return M&&(0,C.kE)(M.group)&&(0,C.kE)(M.item)},_getNormalizedItemIndex:function(M){var se=(0,o.Z)(M),ge=se.closest("."+d);return ge.length?x({group:this._groupElements().index(ge),item:this._groupItemElements(ge).index(se)}):-1},_normalizeItemIndex:function(M){return x(M)},_denormalizeItemIndex:function(M){return b(M)},_getItemByNormalizedIndex:function(M){var se=b(M),ge=this._groupElements().eq(se.group);return this._groupItemElements(ge).eq(se.item)},_itemsFromSameParent:function(M,se){return b(M).group===b(se).group}});var S=l(9009),O=l(7674),w=l(5031),T=l(8159),k=l(5252),R=[],P=function(M,se,ge){R.push({enabled:M,decoratorType:se,decoratorSubType:ge})};P(function(){return this.option("menuItems").length},function(){return"menu"},function(){return this.option("menuMode")}),P(function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")},function(){var M=this.option("itemDeleteMode");return"toggle"===M||"slideButton"===M||"swipe"===M||"static"===M?"delete":"menu"},function(){var M=this.option("itemDeleteMode");return"slideItem"===M&&(M="slide"),M}),P(function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")},function(){return"selection"},function(){return"default"}),P(function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")},function(){return"reorder"},function(){return"default"});const j=w.Z.inherit({ctor:function(M){this._list=M,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&(0,f.S6)(this._decorators,function(M,se){se.dispose()})},_fetchRequiredDecorators:function(){this._decorators=[],(0,f.S6)(R,function(M,se){if(se.enabled.call(this._list)){var De=se.decoratorType.call(this._list),Fe=se.decoratorSubType.call(this._list),Ae=this._createDecorator(De,Fe);this._decorators.push(Ae)}}.bind(this))},_createDecorator:function(M,se){return new(this._findDecorator(M,se))(this._list)},_findDecorator:function(M,se){var ge,De=null===(ge=k.i[M])||void 0===ge?void 0:ge[se];if(!De)throw T.Z.Error("E1012",M,se);return De},modifyItemElement:function(M){var se=(0,o.Z)(M.itemElement),ge={$itemElement:se};this._prependBeforeBags(se,ge),this._appendAfterBags(se,ge),this._applyDecorators("modifyElement",ge)},afterItemsRendered:function(){this._applyDecorators("afterRender")},_prependBeforeBags:function(M,se){var ge=this._collectDecoratorsMarkup("beforeBag",se,"dx-list-item-before-bag");M.prepend(ge)},_appendAfterBags:function(M,se){var ge=this._collectDecoratorsMarkup("afterBag",se,"dx-list-item-after-bag");M.append(ge)},_collectDecoratorsMarkup:function(M,se,ge){var De=(0,o.Z)("<div>");return(0,f.S6)(this._decorators,function(){var Fe=(0,o.Z)("<div>").addClass(ge);this[M]((0,I.l)({$container:Fe},se)),Fe.children().length&&De.append(Fe)}),De.children()},_applyDecorators:function(M,se){(0,f.S6)(this._decorators,function(){this[M](se)})},_handlerExists:function(M){if(!this._decorators)return!1;for(var se=this._decorators,ge=se.length,De=0;De<ge;De++)if(se[De][M]!==O.ZT)return!0;return!1},_eventHandler:function(M,se,ge){if(!this._decorators)return!1;for(var De=!1,Fe=this._decorators,Ae=Fe.length,ne=0;ne<Ae&&!(De=Fe[ne][M](se,ge));ne++);return De},handleClick:function(M,se){return this._eventHandler("handleClick",M,se)},handleKeyboardEvents:function(M,se){return this._eventHandler("handleKeyboardEvents",M,se)},handleEnterPressing:function(M){return this._eventHandler("handleEnterPressing",M)},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(M,se){return this._eventHandler("handleContextMenu",M,se)},getExcludedItemSelectors:function(){var M=[];return this._applyDecorators("getExcludedSelectors",M),M.join(",")}});const X=l(5505).K.inherit({_supportedKeys(){var M=this,se=this.callBase(),ge=(De,Fe)=>{var Ae=this._editStrategy,ne=this.option("focusedElement"),fe=Ae.getNormalizedIndex(ne);if(fe!==this._getLastItemIndex()||!this._dataController.isLoading())if(De.shiftKey&&M.option("itemDragging.allowReordering")){var de=Ae.getItemElement(fe+(Fe?-1:1));this.reorderItem(ne,de),this.scrollToItem(ne),De.preventDefault()}else this._editProvider.handleKeyboardEvents(fe,Fe)||(Fe?se.upArrow(De):se.downArrow(De))};return(0,I.l)({},se,{del:De=>{M.option("allowItemDeleting")&&(De.preventDefault(),M.deleteItem(M.option("focusedElement")))},upArrow:De=>ge(De,!0),downArrow:De=>ge(De),enter:function(De){this._editProvider.handleEnterPressing(De)||se.enter.apply(this,arguments)},space:function(De){this._editProvider.handleEnterPressing(De)||se.space.apply(this,arguments)}})},_updateSelection(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex(){return this._itemElements().length-1},_refreshItemElements(){this.callBase();var M=this._editProvider.getExcludedItemSelectors();M.length&&(this._itemElementsCache=this._itemElementsCache.not(M))},_isItemStrictEquals:function(M,se){var ge=M&&M.__dx_key__;return!(ge&&!this.key()&&this._selection.isItemSelected(ge))&&this.callBase(M,se)},_getDefaultOptions(){return(0,I.l)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:S.Z.format("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",itemDragging:{}})},_defaultOptionsRules(){return this.callBase().concat([{device:M=>"ios"===M.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 j(this)},_disposeEditProvider(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy(){this.option("grouped")?this._editStrategy=new E(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(M){var se=(0,o.Z)(M.currentTarget);se.is(".dx-state-disabled, .dx-state-disabled *")||this._editProvider.handleClick(se,M)||(this._saveSelectionChangeEvent(M),this.callBase(...arguments))},_shouldFireContextMenuEvent(){return this.callBase(...arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler(M){var se=(0,o.Z)(M.currentTarget);if(!se.is(".dx-state-disabled, .dx-state-disabled *")){if((0,c.z6)(M)&&this._editProvider.handleContextMenu(se,M))return void(M.handledByEditProvider=!0);this.callBase(...arguments)}},_getItemContainer:function(M){if(this.option("grouped")){var se,ge=null===(se=this._editStrategy.getIndexByItemData(M))||void 0===se?void 0:se.group;return this._getGroupContainerByIndex(ge)}return this.callBase(M)},_itemContextMenuHandler(M){var se=(0,o.Z)(M.currentTarget);if(!se.is(".dx-state-disabled, .dx-state-disabled *")){if(!M.handledByEditProvider&&this._editProvider.handleContextMenu(se,M))return void M.preventDefault();this.callBase(...arguments)}},_postprocessRenderItem(M){this.callBase(...arguments),this._editProvider.modifyItemElement(M)},_clean(){this._disposeEditProvider(),this.callBase()},focusListItem(M){var se=this._editStrategy.getItemElement(M);this.option("focusedElement",se),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged(M){switch(M.name){case"selectAllMode":this._initDataSource(),this._dataController.pageIndex(0),this._dataController.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(M);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(M)}},selectAll(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement(M){return this._itemElements().index(M)},getItemElementByFlatIndex(M){var se=this._itemElements();return M<0||M>=se.length?(0,o.Z)():se.eq(M)},getItemByIndex(M){return this._editStrategy.getItemDataByIndex(M)}})},4137:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>a});var o=l(5412),c=l(2589);const C=o.Z.inherit(c.Z).inherit({_addWidgetPrefix:function(p){return"dx-list-"+p},_getCombinedFilter:function(){var p=this._dataController,s={filter:p.filter()};return p.addSearchFilter(s),s.filter},_initDataSource:function(){var p=this.option("searchValue"),s=this.option("searchExpr"),u=this.option("searchMode");this.callBase();var d=this._dataController;p&&p.length&&d.searchValue(p),u.length&&d.searchOperation(c.Z.getOperationBySearchMode(u)),s&&d.searchExpr(s)}});(0,l(8506).Z)("dxList",C);const a=C},1427:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>w});var o=l(1805),c=l(9904),I=l(4514),C=l(4505),f=l(2722),a=l(5873),p=l(2941),s=l(8506),u=l(6853),d=(0,I.jW)(),y="dx-loadindicator-segment",O=u.Z.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var T=(0,f.Vk)();return this.callBase().concat([{device:function(){return"android"===p.Z.real().platform&&!/chrome/i.test(d.userAgent)},options:{viaImage:!0}},{device:function(){return(0,f.x2)(T)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return(0,f.OD)(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=(0,c.Z)("<div>").addClass("dx-loadindicator-wrapper"),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=(0,c.Z)("<div>").addClass("dx-loadindicator-content"),this._$wrapper.append(this._$content)},_renderMarkup:function(){!(0,C.animation)()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var T=this.option("_animatingSegmentInner");this._$indicator=(0,c.Z)("<div>").addClass("dx-loadindicator-icon"),this._$content.append(this._$indicator);for(var k=this.option("_animatingSegmentCount");k>=0;--k){var R=(0,c.Z)("<div>").addClass(y).addClass(y+k);T&&R.append((0,c.Z)("<div>").addClass("dx-loadindicator-segment-inner")),this._$indicator.append(R)}},_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"),k=this.option("height");if(T||k){T=(0,o.dz)(this.$element()),k=(0,o.Cr)(this.$element());var R=Math.min(k,T);this._$wrapper.css({height:R,width:R,fontSize:R})}}},_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)}}});(0,s.Z)("dxLoadIndicator",O);const w=O},4265:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>O});var o=l(9904),c=l(7674),I=l(9009),C=l(8506),f=l(5873),a=l(1427),p=l(3576),s=l(4270),u=l(2722),g="dx-loadpanel-indicator",x="dx-loadpanel-message",S=p.Z.inherit({_supportedKeys:function(){return(0,f.l)(this.callBase(),{escape:c.ZT})},_getDefaultOptions:function(){return(0,f.l)(this.callBase(),{message:I.Z.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(0,u.x2)()},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=(0,o.Z)("<div>").addClass("dx-loadpanel-content-wrapper"),this._$loadPanelContentWrapper.appendTo(this.$content()),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var w=this.option("delay");if(!w)return this.callBase();var T=new s.BH,k=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){k().done(function(){T.resolve()})},w),T.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$loadPanelContentWrapper){var w=this.option("message");if(w){var T=(0,o.Z)("<div>").addClass(x).text(w);this._$loadPanelContentWrapper.append(T)}}},_renderLoadIndicator:function(){!this._$loadPanelContentWrapper||!this.option("showIndicator")||(this._$indicator||(this._$indicator=(0,o.Z)("<div>").addClass(g).appendTo(this._$loadPanelContentWrapper)),this._createComponent(this._$indicator,a.Z,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+x).remove(),this.$content().find("."+g).remove(),delete this._$indicator},_togglePaneVisible:function(){this.$content().toggleClass("dx-loadpanel-pane-hidden",!this.option("showPane"))},_optionChanged:function(w){switch(w.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(w)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});(0,C.Z)("dxLoadPanel",S);const O=S},9998:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>c});const c=l(1658).Z},1658:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>pe});var o=l(1805),c=l(9904),I=l(913),C=l(8506),f=l(7674),a=l(6881),p=l(2718),s=l(1828),u=l(5873),d=l(7320),h=l(8225),g=l(8690),x=l(5239),b=l(7543),y=l(3576),E=l(5791),S=l(1875);const k=class T extends S.Z{_getDefaultOptions(){return(0,u.l)(super._getDefaultOptions(),{orientation:"horizontal",tabIndex:null,onHoverStart:f.ZT})}_initDataAdapter(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||super._initDataAdapter()}_renderContentImpl(){this._renderContextMenuOverlay(),super._renderContentImpl();var ae=this._dataAdapter.getNodeByKey(this.option("_parentKey"));ae&&this._renderItems(this._getChildNodes(ae)),this._renderDelimiter()}_renderDelimiter(){this.$contentDelimiter=(0,c.Z)("<div>").appendTo(this._itemContainer()).addClass("dx-context-menu-content-delimiter")}_getOverlayOptions(){return(0,u.l)(super._getOverlayOptions(),{onPositioned:this._overlayPositionedActionHandler.bind(this)})}_overlayPositionedActionHandler(ae){this._showDelimiter(ae)}_hoverEndHandler(ae){super._hoverEndHandler(ae),this._toggleFocusClass(!1,ae.currentTarget)}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_hoverStartHandler(ae){this.option("onHoverStart")(ae),super._hoverStartHandler(ae),this._toggleFocusClass(!0,ae.currentTarget)}_drawSubmenu(ae){this._actions.onShowing({rootItem:(0,a.u)(ae),submenu:this}),super._drawSubmenu(ae),this._actions.onShown({rootItem:(0,a.u)(ae),submenu:this})}_hideSubmenu(ae){this._actions.onHiding({cancel:!0,rootItem:(0,a.u)(ae),submenu:this}),super._hideSubmenu(ae),this._actions.onHidden({rootItem:(0,a.u)(ae),submenu:this})}_showDelimiter(ae){if(this.$contentDelimiter){var te=this._itemContainer().children(".".concat("dx-submenu")).eq(0),re=this.option("position").of,oe={of:te},ye=ae.position,Pe=ye.v.location,Ne=ye.h.location,ft=re.offset(),tt=Math.round(ft.left),Be=Math.round(ft.top),mt=(0,o.dz)(re),nn=(0,o.Cr)(re),ke=(0,o.dz)(te),$e=(0,o.Cr)(te);this.$contentDelimiter.css("display","block"),(0,o.cl)(this.$contentDelimiter,this._isMenuHorizontal()?mt<ke?mt-2:ke:2),(0,o.QQ)(this.$contentDelimiter,this._isMenuHorizontal()?2:nn<$e?nn-2:$e),this._isMenuHorizontal()?Pe>Be?Math.round(Ne)===tt?(oe.offset="1 -1",oe.at=oe.my="left top"):(oe.offset="-1 -1",oe.at=oe.my="right top"):((0,o.QQ)(this.$contentDelimiter,5),Math.round(Ne)===tt?(oe.offset="1 4",oe.at=oe.my="left bottom"):(oe.offset="-1 2",oe.at=oe.my="right bottom")):Ne>tt?Math.round(Pe)===Be?(oe.offset="-1 1",oe.at=oe.my="left top"):(oe.offset="-1 -1",oe.at=oe.my="left bottom"):Math.round(Pe)===Be?(oe.offset="1 1",oe.at=oe.my="right top"):(oe.offset="1 -1",oe.at=oe.my="right bottom"),E.Z.setup(this.$contentDelimiter,oe)}}_getContextMenuPosition(){return this.option("position")}isOverlayVisible(){return this._overlay.option("visible")}getOverlayContent(){return this._overlay.$content()}};var R=l(219),P=l(7463),B="dx-menu",W=B+"-vertical",N=B+"-horizontal",V=B+"-item",U=B+"-items-container",K=V+"-expanded",Y="dx-context-menu",J=Y+"-container-border",q="dx-state-hover",X=B+"-adaptive-mode",M=B+"-hamburger-button",se=X+"-overlay-wrapper",ne="showSubmenu",fe="nextItem",_e="prevItem",ie={show:50,hide:300},de=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged","onItemRendered"];class le extends b.Z{_getDefaultOptions(){return(0,u.l)(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(),(0,u.l)(this._optionsByReference,{animation:!0,selectedItem:!0})}_itemElements(){var ae=super._itemElements(),te=this._submenuItemElements();return ae.add(te)}_submenuItemElements(){var ae=[],te=".".concat(V),re=this._submenus.length&&this._submenus[0];return re&&re.itemsContainer()&&(ae=re.itemsContainer().find(te)),ae}_focusTarget(){return this.$element()}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_moveFocus(ae){var Pe,ft,te=this._getAvailableItems(),re=this._isMenuHorizontal(),oe=this._getActiveItem(!0);switch(ae){case"up":Pe=re?ne:this._getItemsNavigationOperation(_e),ft=this._getKeyboardNavigationAction(Pe,re?oe:te)();break;case"down":Pe=re?ne:this._getItemsNavigationOperation(fe),ft=this._getKeyboardNavigationAction(Pe,re?oe:te)();break;case"right":Pe=re?this._getItemsNavigationOperation(fe):ne,ft=this._getKeyboardNavigationAction(Pe,re?te:oe)();break;case"left":Pe=re?this._getItemsNavigationOperation(_e):ne,ft=this._getKeyboardNavigationAction(Pe,re?te:oe)();break;default:return super._moveFocus(ae)}ft&&0!==ft.length&&this.option("focusedElement",(0,a.u)(ft))}_getItemsNavigationOperation(ae){var te=ae;return this.option("rtlEnabled")&&(te=ae===_e?fe:_e),te}_getKeyboardNavigationAction(ae,te){var re=f.ZT;switch(ae){case ne:te.hasClass("dx-state-disabled")||(re=this._showSubmenu.bind(this,te));break;case fe:re=this._nextItem.bind(this,te);break;case _e:re=this._prevItem.bind(this,te)}return re}_clean(){super._clean(),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)}_visibilityChanged(ae){ae&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())}_isAdaptivityEnabled(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")}_updateItemsWidthCache(){var ae=this.$element().find("ul").first().children("li").children(".".concat(V));this._menuItemsWidth=this._getSummaryItemsWidth(ae,!0)}_dimensionChanged(){if(this._isAdaptivityEnabled()){var ae=(0,o.Y_)(this.$element());this._toggleAdaptiveMode(this._menuItemsWidth>ae)}}_init(){super._init(),this._submenus=[]}_initActions(){this._actions={},(0,p.S6)(de,(ae,te)=>{this._actions[te]=this._createActionByOption(te)})}_initMarkup(){this._visibleSubmenu=null,this.$element().addClass(B),super._initMarkup(),this._addCustomCssClass(this.$element()),this.setAria("role","menubar")}_render(){super._render(),this._initAdaptivity()}_renderHamburgerButton(){return this._hamburger=new R.Z((0,c.Z)("<div>").addClass(M),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()}_toggleTreeView(ae){(0,s.PO)(ae)&&(ae=!this._overlay.option("visible")),this._overlay.option("visible",ae),this._toggleHamburgerActiveState(ae)}_toggleHamburgerActiveState(ae){this._hamburger&&this._hamburger.$element().toggleClass("dx-state-active",ae)}_toggleAdaptiveMode(ae){var te=this.$element().find(".".concat(N)),re=this.$element().find(".".concat(X));ae?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(ae)),te.toggle(!ae),re.toggle(ae)}_removeAdaptivity(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)}_treeviewItemClickHandler(ae){this._actions.onItemClick(ae),ae.node.children.length||this._toggleTreeView(!1)}_getAdaptiveOverlayOptions(){var te=this.option("rtlEnabled")?"right":"left";return{_ignoreFunctionValueDeprecation:!0,maxHeight:()=>(0,d._)(this.$element()),deferRendering:!1,shading:!1,animation:!1,hideOnParentScroll:!0,onHidden:()=>{this._toggleHamburgerActiveState(!1)},height:"auto",hideOnOutsideClick:re=>!(0,c.Z)(re.target).closest(".".concat(M)).length,position:{collision:"flipfit",at:"bottom "+te,my:"top "+te,of:this._hamburger.$element()}}}_getTreeViewOptions(){var ae={};return(0,p.S6)(["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],(te,re)=>{ae[re]=this.option(re)}),(0,p.S6)(["onItemContextMenu","onSelectionChanged","onItemRendered"],(te,re)=>{ae[re]=oe=>{this._actions[re](oe)}}),(0,u.l)(ae,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:te=>{this._overlay.repaint(),this._actions.onSubmenuShown(te)},onItemCollapsed:te=>{this._overlay.repaint(),this._actions.onSubmenuHidden(te)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})}_initAdaptivity(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=(0,c.Z)("<div>").addClass(X);var ae=this._renderHamburgerButton();this._treeView=this._createComponent((0,c.Z)("<div>"),P.Z,this._getTreeViewOptions()),this._overlay=this._createComponent((0,c.Z)("<div>"),y.Z,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(X).addClass(this.option("cssClass")),this._overlay.$wrapper().addClass(se),this._$adaptiveContainer.append(ae),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}}_getDelay(ae){var te=this.option("showFirstSubmenuMode").delay;return(0,s.$K)(te)?(0,s.Kn)(te)?te[ae]:te:ie[ae]}_keyboardHandler(ae){return super._keyboardHandler(ae,!!this._visibleSubmenu)}_renderContainer(){var ae=(0,c.Z)("<div>");return ae.appendTo(this.$element()).addClass(this._isMenuHorizontal()?N:W),super._renderContainer(ae)}_renderSubmenuItems(ae,te){var re=this._createSubmenu(ae,te);return this._submenus.push(re),this._renderBorderElement(te),re}_getKeyboardListeners(){return super._getKeyboardListeners().concat(this._visibleSubmenu)}_createSubmenu(ae,te){var re=(0,c.Z)("<div>").addClass(Y).appendTo(te),oe=this._getChildNodes(ae),ye=this._createComponent(re,k,(0,u.l)(this._getSubmenuOptions(),{_dataAdapter:this._dataAdapter,_parentKey:ae.internalFields.key,items:oe,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(te)}));return this._attachSubmenuHandlers(te,ye),ye}_getSubmenuOptions(){var ae=(0,c.Z)("<div>"),te=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:ae,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:re=>{re.component.option("visible")&&this.option("focusedElement",re.component.option("focusedElement"))},onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this._nestedItemOnItemRenderedHandler.bind(this),onLeftFirstItem:te?null:this._moveMainMenuFocus.bind(this,_e),onLeftLastItem:te?null:this._moveMainMenuFocus.bind(this,fe),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,te?_e:null),onExpandLastSubmenu:te?this._moveMainMenuFocus.bind(this,fe):null}}_getShowFirstSubmenuMode(){if(!this._isDesktopDevice())return"onClick";var ae=this.option("showFirstSubmenuMode");return(0,s.Kn)(ae)?ae.name:ae}_moveMainMenuFocus(ae){var te=this._getAvailableItems(),re=te.length,oe=te.filter(".".concat(K)).eq(0),ye=te.index(oe);this._hideSubmenu(this._visibleSubmenu),(ye+=ae===_e?-1:1)>=re?ye=0:ye<0&&(ye=re-1);var Pe=te.eq(ye);this.option("focusedElement",(0,a.u)(Pe))}_nestedItemOnSelectionChangedHandler(ae){var te=ae.addedItems.length&&ae.addedItems[0],re=k.getInstance(ae.element);(0,this._actions.onSelectionChanged)(ae),te&&this._clearSelectionInSubmenus(te[0],re),this._clearRootSelection(),this._setOptionWithoutOptionChange("selectedItem",te)}_clearSelectionInSubmenus(ae,te){var re=!arguments.length;(0,p.S6)(this._submenus,(oe,ye)=>{var Pe=ye._itemContainer(),Ne=!Pe.is(te&&te._itemContainer()),ft=Pe.find(".".concat(this._selectedItemClass()));if(Ne&&ft.length||re){ft.removeClass(this._selectedItemClass());var tt=this._getItemData(ft);tt&&(tt.selected=!1),ye._clearSelectedItems()}})}_clearRootSelection(){var ae=this.$element().find(".".concat(U)).first().children().children().filter(".".concat(this._selectedItemClass()));ae.length&&(this._getItemData(ae).selected=!1,ae.removeClass(this._selectedItemClass()))}_nestedItemOnItemClickHandler(ae){this._actions.onItemClick(ae)}_nestedItemOnItemRenderedHandler(ae){this._actions.onItemRendered(ae)}_attachSubmenuHandlers(ae,te){var oe=te.getOverlayContent().find(".".concat("dx-submenu")),ye=(0,h.V4)(x.u,this.NAME+"_submenu");te.option({onShowing:this._submenuOnShowingHandler.bind(this,ae,te),onShown:this._submenuOnShownHandler.bind(this,ae,te),onHiding:this._submenuOnHidingHandler.bind(this,ae,te),onHidden:this._submenuOnHiddenHandler.bind(this,ae,te)}),(0,p.S6)(oe,(Pe,Ne)=>{I.Z.off(Ne,ye),I.Z.on(Ne,ye,null,this._submenuMouseLeaveHandler.bind(this,ae))})}_submenuOnShowingHandler(ae,te){var re=ae.children(".".concat(J));this._actions.onSubmenuShowing({rootItem:(0,a.u)(ae),submenu:te}),re.show(),ae.addClass(K)}_submenuOnShownHandler(ae,te){this._actions.onSubmenuShown({rootItem:(0,a.u)(ae),submenu:te})}_submenuOnHidingHandler(ae,te,re){var oe=ae.children(".".concat(J)),ye=re;ye.rootItem=(0,a.u)(ae),ye.submenu=te,this._actions.onSubmenuHiding(ye),(re=ye).cancel||(this._visibleSubmenu===te&&(this._visibleSubmenu=null),oe.hide(),ae.removeClass(K))}_submenuOnHiddenHandler(ae,te){this._actions.onSubmenuHidden({rootItem:(0,a.u)(ae),submenu:te})}_submenuMouseLeaveHandler(ae,te){var re=(0,c.Z)(te.relatedTarget).parents(".".concat(Y))[0],oe=this._getSubmenuByRootElement(ae).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&re!==oe&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))}_hideSubmenuAfterTimeout(){if(this._visibleSubmenu){var ae=(0,c.Z)(this._visibleSubmenu.$element().context).hasClass(q),te=this._visibleSubmenu.getOverlayContent().find(".".concat(q)).length;!this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover")&&!te&&!ae&&this._visibleSubmenu.hide()}}_getSubmenuByRootElement(ae){if(!ae)return!1;var te=ae.children(".".concat(Y));return te.length&&k.getInstance(te)}getSubmenuPosition(ae){var te=this._isMenuHorizontal(),re=this.option("submenuDirection").toLowerCase(),oe=this.option("rtlEnabled"),ye={collision:"flip",of:ae};switch(re){case"leftortop":ye.at="left top",ye.my=te?"left bottom":"right top";break;case"rightorbottom":ye.at=te?"left bottom":"right top",ye.my="left top";break;default:te?(ye.at=oe?"right bottom":"left bottom",ye.my=oe?"right top":"left top"):(ye.at=oe?"left top":"right top",ye.my=oe?"right top":"left top")}return ye}_renderBorderElement(ae){(0,c.Z)("<div>").appendTo(ae).addClass(J).hide()}_itemPointerDownHandler(ae){(0,c.Z)(ae.target).closest(this._itemElements()).hasClass("dx-menu-item-has-submenu")?this.option("focusedElement",null):super._itemPointerDownHandler(ae)}_hoverStartHandler(ae){var te=(0,h.V4)(g.Z.move,this.NAME),re=this._getItemElementByEventArgs(ae),oe=this._dataAdapter.getNodeByItem(this._getItemData(re)),ye=(0,s.$K)(ae.buttons)&&1===ae.buttons||!(0,s.$K)(ae.buttons)&&1===ae.which;if(!this._isItemDisabled(re)){if(I.Z.off(re,te),!this._hasChildren(oe))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!ye){var Pe=this._getSubmenuByElement(re);this._clearTimeouts(),Pe.isOverlayVisible()||(I.Z.on(re,te,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}}_hoverEndHandler(ae){var te=this._getItemElementByEventArgs(ae),re=(0,c.Z)(ae.relatedTarget);super._hoverEndHandler(ae),this._clearTimeouts(),!this._isItemDisabled(te)&&(re.hasClass("dx-context-menu-content-delimiter")||this.option("hideSubmenuOnMouseLeave")&&!re.hasClass(U)&&(this._hideSubmenuTimer=setTimeout(()=>{this._hideSubmenuAfterTimeout()},this._getDelay("hide"))))}_hideVisibleSubmenu(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)}_showSubmenu(ae){var te=this._getSubmenuByElement(ae);this._visibleSubmenu!==te&&this._hideVisibleSubmenu(),te&&(this._clearTimeouts(),this.focus(),te.show(),this.option("focusedElement",te.option("focusedElement"))),this._visibleSubmenu=te,this._hoveredRootItem=ae}_hideSubmenu(ae){ae&&ae.hide(),this._visibleSubmenu===ae&&(this._visibleSubmenu=null),this._hoveredRootItem=null}_itemMouseMoveHandler(ae){if(!ae.pointers||!ae.pointers.length){var te=(0,c.Z)(ae.currentTarget);(0,s.$K)(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout(()=>{var re=this._getSubmenuByElement(te);re&&!re.isOverlayVisible()&&this._showSubmenu(te)},this._getDelay("show")))}}_clearTimeouts(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)}_getSubmenuByElement(ae,te){var re=this._getSubmenuByRootElement(ae);if(re)return re;te=te||this._getItemData(ae);var oe=this._dataAdapter.getNodeByItem(te);return this._hasChildren(oe)&&this._renderSubmenuItems(oe,ae)}_updateSubmenuVisibilityOnClick(ae){var te=ae.args.length&&ae.args[0];if(te&&!this._disabledGetter(te.itemData)){var re=(0,c.Z)(te.itemElement),oe=this._getSubmenuByElement(re,te.itemData);if(this._updateSelectedItemOnClick(ae),this._visibleSubmenu){if(this._visibleSubmenu===oe)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}if(oe&&!oe.isOverlayVisible())return void this._showSubmenu(re)}}_optionChanged(ae){if(de.indexOf(ae.name)>=0)this._initActions();else switch(ae.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(ae.name,ae.value);break;case"adaptivityEnabled":ae.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(ae.name,ae.value),this._overlay.option(ae.name,ae.value)),super._optionChanged(ae),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!ae.value),super._optionChanged(ae);break;default:this._isAdaptivityEnabled()&&(ae.name===ae.fullName||"items"===ae.name)&&this._treeView.option(ae.fullName,ae.value),super._optionChanged(ae)}}_changeSubmenusOption(ae,te){(0,p.S6)(this._submenus,(re,oe)=>{oe.option(ae,te)})}selectItem(ae){this._hideSubmenu(this._visibleSubmenu),super.selectItem(ae)}unselectItem(ae){this._hideSubmenu(this._visibleSubmenu),super.selectItem(ae)}}(0,C.Z)("dxMenu",le);const pe=le},7257:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>U});var o=l(1805),c=l(9904),I=l(6961),C=l(3553),f={move(K,Y){(0,I.pB)(K,{left:Y})}},a={moveTo(K,Y,J,j){C.Z.animate(K,{type:"slide",to:{left:Y},duration:J,complete:j})},complete(K){C.Z.stop(K,!0)}},p=l(3487),s=l(5873),u=l(7674),d=l(2526),h=l(6881),g=l(1828),x=l(2941),b=l(8506),y=l(5286),E=l(4969),S=l(4270),O="dx-multiview",w="dx-multiview-wrapper",T="dx-multiview-item-container",k="dx-multiview-item",W=K=>+K,V=y.Z.inherit({_activeStateUnit:"."+k,_supportedKeys:function(){return(0,s.l)(this.callBase(),{pageUp:u.ZT,pageDown:u.ZT})},_getDefaultOptions:function(){return(0,s.l)(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"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return k},_itemDataKey:function(){return"dxMultiViewItemData"},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=(0,o.dz)(this._$wrapper)),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(K){var Y=this._itemsCount();return K<0&&(K+=Y),K>=Y&&(K-=Y),K},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var K=this.$element();K.addClass(O),this._$wrapper=(0,c.Z)("<div>").addClass(w),this._$wrapper.appendTo(K),this._$itemContainer=(0,c.Z)("<div>").addClass(T),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase();var K=this._getSelectedItemIndices();this._updateItemsVisibility(K[0])},_afterItemElementDeleted:function(K,Y){this.callBase(K,Y),this._deferredItems&&this._deferredItems.splice(Y.itemIndex,1)},_beforeItemElementInserted:function(K){this.callBase.apply(this,arguments),this._deferredItems&&this._deferredItems.splice(K.index,0,null)},_executeItemRenderAction:function(K,Y,J){K=(this.option("items")||[]).indexOf(Y),this.callBase(K,Y,J)},_renderItemContent:function(K){var Y=new S.BH,J=this,j=this.callBase,ee=new S.BH;return ee.done(function(){var G=j.call(J,K);Y.resolve(G)}),this._deferredItems[K.index]=ee,this.option("deferRendering")||ee.resolve(),Y.promise()},_render:function(){this.callBase(),(0,u.g0)(()=>{var K=this._getSelectedItemIndices();this._updateItems(K[0])})},_updateItems:function(K,Y){this._updateItemsPosition(K,Y),this._updateItemsVisibility(K,Y)},_modifyByChanges:function(){this.callBase.apply(this,arguments);var K=this._getSelectedItemIndices();this._updateItemsVisibility(K[0])},_updateItemsPosition:function(K,Y){var J=this._itemElements(),j=(0,g.$K)(Y)?-this._animationDirection(Y,K):void 0,ee=J.eq(K);f.move(ee,0),(0,g.$K)(Y)&&f.move(J.eq(Y),100*j+"%")},_updateItemsVisibility:function(K,Y){this._itemElements().each(function(j,ee){var G=(0,c.Z)(ee),q=j!==K&&j!==Y;q||this._renderSpecificItem(j),G.toggleClass("dx-multiview-item-hidden",q),this.setAria("hidden",q||void 0,G)}.bind(this))},_renderSpecificItem:function(K){var Y=this._itemElements().eq(K),J=Y.find(this._itemContentClass()).length>0;(0,g.$K)(K)&&!J&&(this._deferredItems[K].resolve(),(0,d.U_)(Y))},_refreshItem:function(K,Y){this.callBase(K,Y),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelected:u.ZT,_updateSelection:function(K,Y){var J=K[0],j=Y[0];a.complete(this._$itemContainer),this._updateItems(j,J);var ee=this._animationDirection(J,j);this._animateItemContainer(ee*this._itemWidth(),function(){f.move(this._$itemContainer,0),this._updateItems(J),(0,o.dz)(this._$itemContainer)}.bind(this))},_animateItemContainer:function(K,Y){var J=this.option("animationEnabled")?200:0;a.moveTo(this._$itemContainer,K,J,Y)},_animationDirection:function(K,Y){var J=(K=>(0,I.jt)(this._$itemContainer).left)(),j=(Y-K)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection();return(0,p.Xx)(0!==J?J:j)},_getSwipeDisabledState(){return!this.option("swipeEnabled")||this._itemsCount()<=1},_initSwipeable(){this._createComponent(this.$element(),E.Z,{disabled:this._getSwipeDisabledState(),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:K=>this._swipeStartHandler(K.event),onUpdated:K=>this._swipeUpdateHandler(K.event),onEnd:K=>this._swipeEndHandler(K.event)})},_swipeStartHandler:function(K){a.complete(this._$itemContainer);var Y=this.option("selectedIndex"),J=this.option("loop"),j=this._itemsCount()-1,ee=this.option("rtlEnabled");K.maxLeftOffset=W(J||(ee?Y>0:Y<j)),K.maxRightOffset=W(J||(ee?Y<j:Y>0)),this._swipeDirection=null},_swipeUpdateHandler:function(K){var Y=K.offset,J=(0,p.Xx)(Y)*this._getRTLSignCorrection();if(f.move(this._$itemContainer,Y*this._itemWidth()),J!==this._swipeDirection){this._swipeDirection=J;var j=this.option("selectedIndex"),ee=this._normalizeIndex(j-J);this._updateItems(j,ee)}},_swipeEndHandler:function(K){var Y=K.targetOffset*this._getRTLSignCorrection();if(Y){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-Y));var J=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",(0,h.u)(J))}else this._animateItemContainer(0,u.ZT)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(K){var Y=this.callBase.apply(this,arguments);return this._itemFocusLooped=Y.is(K.last()),Y},_nextItem:function(K){var Y=this.callBase.apply(this,arguments);return this._itemFocusLooped=Y.is(K.first()),Y},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(K){K&&this._dimensionChanged()},_updateSwipeDisabledState(){var K=this._getSwipeDisabledState();E.Z.getInstance(this.$element()).option("disabled",K)},_optionChanged:function(K){var Y=K.value;switch(K.name){case"loop":this.option("loopItemFocus",Y);break;case"animationEnabled":break;case"swipeEnabled":this._updateSwipeDisabledState();break;case"deferRendering":this._invalidate();break;case"items":this._updateSwipeDisabledState(),this.callBase(K);break;default:this.callBase(K)}}});(0,b.Z)("dxMultiView",V);const U=V},1007:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>O});var o=l(9904),c=l(1469),I=l(5873),C=l(1828),f=l(4514),a=l(4131),p=(0,f.Jj)(),s=null,u={},E=(w,T)=>{var{toastWidth:k,toastHeight:R,windowHeight:P,windowWidth:B}=T;switch(w){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(B/2-k/2)};case"left center":return{top:Math.round(P/2-R/2),left:10};case"right center":return{top:Math.round(P/2-R/2),right:10};case"center":return{top:Math.round(P/2-R/2),left:Math.round(B/2-k/2)};default:return{bottom:10,left:Math.round(B/2-k/2)}}},S=(w,T,k)=>{var R,P,B,W,N,V,U,K,Y,J,j,ee,{toastWidth:G,toastHeight:q,windowHeight:Z,windowWidth:X}=k;switch(w.replace(/-push|-stack/g,"")){case"up":return{bottom:null!==(R=T.bottom)&&void 0!==R?R:Z-q-T.top,top:"",left:null!==(P=T.left)&&void 0!==P?P:"",right:null!==(B=T.right)&&void 0!==B?B:""};case"down":return{top:null!==(W=T.top)&&void 0!==W?W:Z-q-T.bottom,bottom:"",left:null!==(N=T.left)&&void 0!==N?N:"",right:null!==(V=T.right)&&void 0!==V?V:""};case"left":return{right:null!==(U=T.right)&&void 0!==U?U:X-G-T.left,left:"",top:null!==(K=T.top)&&void 0!==K?K:"",bottom:null!==(Y=T.bottom)&&void 0!==Y?Y:""};case"right":return{left:null!==(J=T.left)&&void 0!==J?J:X-G-T.right,right:"",top:null!==(j=T.top)&&void 0!==j?j:"",bottom:null!==(ee=T.bottom)&&void 0!==ee?ee:""}}};const O=function d(w,T,k){var R=(0,C.PO)(w)?w:{message:w},P=(0,C.PO)(T)?T:void 0,B=(0,C.PO)(T)?void 0:T,{onHidden:W}=R;if(null!=P&&P.position){var{position:N}=P,V=P.direction||(w=>(0,C.HD)(w)&&w.includes("top")?"down-push":"up-push")(N),U=(0,C.HD)(N)?N:"".concat(N.top,"-").concat(N.left,"-").concat(N.bottom,"-").concat(N.right),{onShowing:K}=R,Y=(w=>u[w]||(w=>{var T=(0,o.Z)("<div>").appendTo((0,c.S3)());return u[w]=T,T})(w))(U);((w,T)=>{var k="dx-toast-stack dx-toast-stack-".concat(T,"-direction");w.removeAttr("class").addClass(k)})(Y,V),(0,I.l)(R,{container:Y,onShowing:function(J){((w,T,k)=>{var{offsetWidth:R,offsetHeight:P}=w.children().first().get(0),B={toastWidth:R,toastHeight:P,windowHeight:p.innerHeight,windowWidth:p.innerWidth},W=(0,C.HD)(k)?E(k,B):k,N=S(T,W,B);w.css(N)})(Y,V,N),K?.(J)}})}(0,I.l)(R,{type:B,displayTime:k,onHidden:function(J){(0,o.Z)(J.element).remove(),W?.(J)}}),s=(0,o.Z)("<div>").appendTo((0,c.S3)()),new a.Z(s,R).show()}},1946:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>$e});var o=l(8506),c=l(913),I=l(5873),C=l(1828),f=l(2941),a=l(3487),p=l(658),s=l(7674),u=function(me){for(var xe=0,Te=0,Ye=0;Ye<me.length;++Ye)if("'"===me[Ye]&&xe++,"."===me[Ye]&&(++Te,xe%2==0))return{occurrence:Te,index:Ye};return{occurrence:1,index:-1}},d=function(me,xe,Te){for(var Ye=-1;Te--&&Ye++<me.length;)Ye=me.indexOf(xe,Ye);return Ye},h=function(me,xe){return-1===xe?[me]:[me.slice(0,xe),me.slice(xe+1)]},x=function(me,xe){if("string"==typeof xe){var Te=xe.split(";"),Ye=p.Z.getSign(me,xe);Te[1]=Te[1]||"-"+Te[0],xe=(xe=Te[Ye<0?1:0]).replace(/'([^']*)'/g,fn=>fn.split("").map(()=>" ").join("").substr(2));var St=/^[^#0.,]*/.exec(xe)[0].length,Ct=/[^#0.,]*$/.exec(xe)[0].length;return{start:St,end:me.length-Ct}}return{start:0,end:me.length}},b=function(me,xe){var Te=p.Z.getDecimalSeparator(),Ye=new RegExp("[^0-9"+(0,s.hr)(Te)+"]","g");return xe.slice(0,me).replace(Ye,"").length},y=function(me){return me.split("").reverse().join("")},E=function(me,xe){if(!me)return-1;for(var Te=/[0-9]/g,Ye=1,St=null,Ct=Te.exec(xe);Ct;){if(St=Ct.index,Ye>=me)return St;Ye++,Ct=Te.exec(xe)}return null===St?xe.length:St},O=function(me,xe){return void 0===me.start&&(me={start:me,end:me}),{start:me.start+xe,end:me.end+xe}};function R(me,xe,Te){me=O(me,0);var Ye=x(xe,Te);return{start:(0,a.n$)(me.start,Ye.start,Ye.end),end:(0,a.n$)(me.end,Ye.start,Ye.end)}}var B=l(6865),W=l(9904),N=l(9897),V=l(4722),U=l(7383),K=l(8225),Y=l(5251),J=l(6853),j=l(8690),ee=l(1409),G=l(5180),q=l(4270),se="dxNumberBox",ge=(0,K.V4)(j.Z.up,se),De=(0,K.V4)(j.Z.cancel,se);const Ae=J.Z.inherit({_getDefaultOptions:function(){return(0,I.l)(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup:function(){this.callBase();var me="dx-numberbox-spin-"+this.option("direction");this.$element().addClass("dx-numberbox-spin-button").addClass(me),this._spinIcon=(0,W.Z)("<div>").addClass(me+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var me=(0,K.V4)(j.Z.down,this.NAME),xe=this.$element();c.Z.off(xe,me),c.Z.on(xe,me,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(me){me.preventDefault(),this._clearTimer(),c.Z.on(this.$element(),G.Z.name,function(){this._feedBackDeferred=new q.BH,(0,ee.dR)(this._feedBackDeferred),this._spinChangeHandler({event:me}),this._holdTimer=setInterval(this._spinChangeHandler,100,{event:me})}.bind(this));var xe=N.Z.getDocument();c.Z.on(xe,ge,this._clearTimer.bind(this)),c.Z.on(xe,De,this._clearTimer.bind(this)),this._spinChangeHandler({event:me})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){c.Z.off(this.$element(),G.Z.name);var me=N.Z.getDocument();c.Z.off(me,ge),c.Z.off(me,De),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(me){switch(me.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(me)}}});class ie extends Y.Z{_attachEvents(xe,Te){var{editor:Ye}=this,St=(0,K.V4)(j.Z.down,Ye.NAME),Ct=Te.children(),Rt=Ye._createAction(fn=>Ye._spinButtonsPointerDownHandler(fn));c.Z.off(Te,St),c.Z.on(Te,St,fn=>Rt({event:fn})),Ae.getInstance(Ct.eq(0)).option("onChange",fn=>Ye._spinUpChangeHandler(fn)),Ae.getInstance(Ct.eq(1)).option("onChange",fn=>Ye._spinDownChangeHandler(fn))}_create(){var{editor:xe}=this,Te=(0,W.Z)("<div>").addClass("dx-numberbox-spin-container"),Ye=(0,W.Z)("<div>").appendTo(Te),St=(0,W.Z)("<div>").appendTo(Te),Ct=this._getOptions();return this._addToContainer(Te),xe._createComponent(Ye,Ae,(0,I.l)({direction:"up"},Ct)),xe._createComponent(St,Ae,(0,I.l)({direction:"down"},Ct)),this._legacyRender(xe.$element(),this._isTouchFriendly(),Ct.visible),{instance:Te,$element:Te}}_getOptions(){var{editor:xe}=this;return{visible:this._isVisible(),disabled:xe.option("disabled")}}_isVisible(){var{editor:xe}=this;return super._isVisible()&&xe.option("showSpinButtons")}_isTouchFriendly(){var{editor:xe}=this;return xe.option("showSpinButtons")&&xe.option("useLargeSpinButtons")}_legacyRender(xe,Te,Ye){xe.toggleClass("dx-numberbox-spin-touch-friendly",Te),xe.toggleClass("dx-numberbox-spin",Ye)}update(){if(super.update()){var{editor:Te,instance:Ye}=this,St=Te.$element(),Ct=this._isVisible(),Rt=this._isTouchFriendly(),fn=Ye.children(),ct=Ae.getInstance(fn.eq(0)),He=Ae.getInstance(fn.eq(1)),Dt=this._getOptions();ct.option(Dt),He.option(Dt),this._legacyRender(St,Rt,Ct)}}}var de=l(9009),le=Math,Ee=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],te=U.Z.inherit({_supportedKeys:function(){return(0,I.l)(this.callBase(),{upArrow:function(me){(0,K.j1)(me)||(me.preventDefault(),me.stopPropagation(),this._spinUpChangeHandler(me))},downArrow:function(me){(0,K.j1)(me)||(me.preventDefault(),me.stopPropagation(),this._spinDownChangeHandler(me))},enter:function(){}})},_getDefaultOptions:function(){return(0,I.l)(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:de.Z.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_useTemplates:function(){return!1},_getDefaultButtons:function(){return this.callBase().concat([{name:"spins",Ctor:ie}])},_isSupportInputMode:function(){var me=parseFloat(V.Z.version);return V.Z.chrome&&me>=66||V.Z.safari&&me>=12},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return f.Z.real().generic&&!f.Z.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"desktop"!==f.Z.real().deviceType&&!this._isSupportInputMode()}.bind(this),options:{mode:"number"}}])},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass("dx-numberbox"),this.callBase()},_getDefaultAttributes:function(){var me=this.callBase();return me.inputmode="decimal",me},_renderContentImpl:function(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement:function(){this._$submitElement=(0,W.Z)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(me){this._getSubmitElement().val((0,s.FH)(me))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(me){this.callBase(me);var xe=(0,K.qK)(me);if(!/[\d.,eE\-+]/.test(xe)){var Ye=(0,K.EV)(me);return(0,K.j1)(me)||Ye&&Ee.includes(Ye)?void 0:(me.preventDefault(),!1)}this._keyPressed=!0},_onMouseWheel:function(me){this._spinValueChange(me.delta>0?1:-1,me)},_renderValue:function(){var me=this._input().val(),xe=this.option("value");(!me.length||Number(me)!==xe)&&(this._forceValueRender(),this._toggleEmptinessEventHandler());var Te=(0,C.$K)(xe)?null:de.Z.format("dxNumberBox-noDataText");return this.setAria({valuenow:(0,s.IS)(xe,""),valuetext:Te}),this.option("text",this._input().val()),this._updateButtons(),(new q.BH).resolve()},_forceValueRender:function(){var me=this.option("value"),xe=Number(me),Te=isNaN(xe)?"":this._applyDisplayValueFormatter(me);this._renderDisplayText(Te)},_applyDisplayValueFormatter:function(me){return this.option("displayValueFormatter")(me)},_renderProps:function(){this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:(0,s.IS)(this.option("min"),""),valuemax:(0,s.IS)(this.option("max"),"")})},_spinButtonsPointerDownHandler:function(){var me=this._input();!this.option("useLargeSpinButtons")&&N.Z.getActiveElement()!==me[0]&&c.Z.trigger(me,"focus")},_spinUpChangeHandler:function(me){this.option("readOnly")||this._spinValueChange(1,me.event||me)},_spinDownChangeHandler:function(me){this.option("readOnly")||this._spinValueChange(-1,me.event||me)},_spinValueChange:function(me,xe){var Te=parseFloat(this.option("step"));if(0!==Te){var Ye=parseFloat(this._normalizeInputValue())||0;Ye=this._correctRounding(Ye,Te*me);var St=this.option("min"),Ct=this.option("max");(0,C.$K)(St)&&(Ye=Math.max(St,Ye)),(0,C.$K)(Ct)&&(Ye=Math.min(Ct,Ye)),this._saveValueChangeEvent(xe),this.option("value",Ye)}},_correctRounding:function(me,xe){var Te=/[,.](.*)/,Ye=Te.test(me),St=Te.test(xe);if(Ye||St){var Ct=Ye?Te.exec(me)[0].length:0,Rt=St?Te.exec(xe)[0].length:0,fn=le.max(Ct,Rt);return this._round(me+xe,fn)}return me+xe},_round:function(me,xe){xe=xe||0;var Te=Math.pow(10,xe);return me*=Te,Math.round(me)/Te},_renderValueChangeEvent:function(){this.callBase();var me=(0,K.V4)("focusout","NumberBoxForceValueChange");c.Z.off(this.element(),me),c.Z.on(this.element(),me,this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var me=this._input(),xe=this._applyDisplayValueFormatter(this.option("value"));me.val(null),me.val(xe)}},_valueChangeEventHandler:function(me){var xe=this._input(),Te=this._normalizeText(),Ye=this._parseValue(Te),St="."!==Te&&"-"!==Te;!this._isValueValid()||this._validateValue(Ye)?(St&&this.callBase(me,isNaN(Ye)?null:Ye),this._applyValueBoundaries(Te,Ye),this.validationRequest.fire({value:Ye,editor:this})):xe.val(this._applyDisplayValueFormatter(Ye))},_applyValueBoundaries:function(me,xe){var Te=this._isValueIncomplete(me),Ye=this._isValueInRange(me);!Te&&!Ye&&null!==xe&&Number(me)!==xe&&this._input().val(this._applyDisplayValueFormatter(xe))},_replaceCommaWithPoint:function(me){return me.replace(",",".")},_inputIsInvalid:function(){var me="number"===this.option("mode"),xe=this._input().get(0).validity;return me&&xe&&xe.badInput},_renderDisplayText:function(me){this._inputIsInvalid()||this.callBase(me)},_isValueIncomplete:function(me){return/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i.test(me)},_isValueInRange:function(me){return(0,a.Z2)(me,this.option("min"),this.option("max"))},_isNumber:function(me){return null!==this._parseValue(me)},_validateValue:function(me){var xe=this._normalizeText(),Te=this._isValueValid(),Ye=!0,St=this._isNumber(xe);return isNaN(Number(me))&&(Ye=!1),!me&&Te?Ye=!0:!St&&!Te&&(Ye=!1),this.option({isValid:Ye,validationError:Ye?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),Ye},_normalizeInputValue:function(){return this._parseValue(this._normalizeText())},_normalizeText:function(){var me=this._input().val().trim();return this._replaceCommaWithPoint(me)},_parseValue:function(me){var xe=parseFloat(me);return isNaN(xe)?null:(0,a.n$)(xe,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(me){switch(me.name){case"value":this._validateValue(me.value),this._setSubmitValue(me.value),this.callBase(me),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(me)}}}),oe="dxNumberFormatter",ft="minus";const nn=te.inherit({_getDefaultOptions:function(){return(0,I.l)(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:function(me){return"del"===me},_supportedKeys:function(){return this._useMaskBehavior()?(0,I.l)(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(me){var xe=p.Z.getDecimalSeparator(),Te=u(this.option("format")).occurrence;return d(me,xe,Te)},_focusInHandler:function(me){this._preventNestedFocusEvent(me)||(this.clearCaretTimeout(),this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0;var xe=this._caret();if(xe.start===xe.end&&this._useMaskBehavior()){var Te=this._getInputVal(),Ye=this._getTextSeparatorIndex(Te);Ye>=0?this._caret({start:Ye,end:Ye}):this._moveCaretToBoundaryEventHandler(-1,me)}}.bind(this),0)),this.callBase(me)},_focusOutHandler:function(me){var xe=!this._preventNestedFocusEvent(me);xe&&(this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue()),this.callBase(me),xe&&(this._focusOutOccurs=!1)},_hasValueBeenChanged(me){var xe=this._getFormatPattern(),Te=this.option("value");return(this._format(Te,xe)||"")!==me},_updateFormattedValue:function(){var me=this._getInputVal();this._hasValueBeenChanged(me)&&(this._updateParsedValue(),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&c.Z.trigger(this._input(),"change"))},_arrowHandler:function(me,xe){if(this._useMaskBehavior()){var Te=this._getInputVal(),Ye=this._getFormatPattern(),St=O(this._caret(),me);(function(me,xe,Te){var Ye=R(me=O(me,0),xe,Te);return me.start>=Ye.start&&me.end<=Ye.end})(St,Te,Ye)||(St=1===me?St.end:St.start,xe.preventDefault(),this._caret(R(St,Te,Ye)))}},_moveCaretToBoundary:function(me){var xe=x(this._getInputVal(),this._getFormatPattern()),Te=O(1===me?xe.start:xe.end,0);this._caret(Te)},_moveCaretToBoundaryEventHandler:function(me,xe){!this._useMaskBehavior()||xe&&xe.shiftKey||(this._moveCaretToBoundary(me),xe&&xe.preventDefault())},_shouldMoveCaret:function(me,xe){var Te=p.Z.getDecimalSeparator(),Ye=me.charAt(xe.end)===Te;return(this._lastKey===Te||"."===this._lastKey||","===this._lastKey)&&Ye},_getInputVal:function(){return p.Z.convertDigits(this._input().val(),!0)},_keyboardHandler:function(me){if(this.clearCaretTimeout(),this._lastKey=p.Z.convertDigits((0,K.qK)(me),!0),this._lastKeyName=(0,K.EV)(me),!this._shouldHandleKey(me.originalEvent))return this.callBase(me);var xe=this._getInputVal(),Te=this._caret(),St=this._tryParse(xe,Te,this._lastKeyName===ft?"":this._lastKey);return this._shouldMoveCaret(xe,Te)&&(this._moveCaret(1),me.originalEvent.preventDefault()),void 0===St?this._lastKeyName!==ft&&me.originalEvent.preventDefault():this._parsedValue=St,this.callBase(me)},_keyPressHandler:function(me){this._useMaskBehavior()||this.callBase(me)},_removeHandler:function(me){var xe=this._caret(),Te=this._getInputVal(),Ye=xe.start,St=xe.end;this._lastKey=(0,K.qK)(me),this._lastKeyName=(0,K.EV)(me);var Ct=this._isDeleteKey(this._lastKeyName),Rt=!Ct;if(Ye===St){if(!(Rt&&Ye>0||Ct&&Ye<Te.length))return void me.preventDefault();Ct&&St++,Rt&&Ye--}var He=Te.slice(Ye,St);if(this._isStub(He))return this._moveCaret(Ct?1:-1),(this._parsedValue<0||1/this._parsedValue==-1/0)&&(this._revertSign(me),this._setTextByParsedValue()),void me.preventDefault();var Dt=p.Z.getDecimalSeparator();if(He!==Dt){if(St-Ye<Te.length&&this._replaceSelectedText(Te,{start:Ye,end:St},"").search(/[0-9]/)<0&&this._isValueInRange(0))return void(this._parsedValue=this._parsedValue<0||1/this._parsedValue==-1/0?-0:0);var ht=this._tryParse(Te,{start:Ye,end:St},"");void 0===ht?me.preventDefault():this._parsedValue=ht}else{var qe=Te.indexOf(Dt);this._isNonStubAfter(qe+1)&&(this._moveCaret(Ct?1:-1),me.preventDefault())}},_isPercentFormat:function(){return-1!==this._getFormatPattern().replace(/'[^']+'/g,"").indexOf("%")},_parse:function(me,xe){var Te=this.option("format"),Ye=(0,C.mf)(Te.parser),St=Ye?Te.parser:p.Z.parse,Ct=0;if(!Ye){var Rt=u(xe).index,fn=this._getTextSeparatorIndex(me),ct=-1!==Rt?Rt:xe.length,He=-1!==fn?fn:me.length;He>ct&&-1===xe.indexOf("#")&&(Ct=He-ct)}return St(me=me.substr(Ct),xe)},_format:function(me,xe){var Te=this.option("format"),Ye=Te?.formatter||Te,St=(0,C.mf)(Ye)?Ye:p.Z.format;return null===me?"":St(me,xe)},_getFormatPattern:function(){return this._currentFormat||this._updateFormat(),this._currentFormat},_updateFormat:function(){var me=this.option("format"),xe=(0,C.mf)(me?.parser),Te=(0,C.HD)(me)&&(me.indexOf("0")>=0||me.indexOf("#")>=0);this._currentFormat=xe||Te||"exponential"===me||"exponential"===me?.type?me:(0,B.y)(Ct=>{var Rt=this._format(Ct,me);return p.Z.convertDigits(Rt,!0)})},_getFormatForSign:function(me){var xe=this._getFormatPattern();if((0,C.HD)(xe)){var Te=xe.split(";"),Ye=p.Z.getSign(me,xe);return Te[1]=Te[1]||"-"+Te[0],Ye<0?Te[1]:Te[0]}return p.Z.getSign(me)<0?"-":""},_removeStubs:function(me,xe){var Te=this._getFormatForSign(me),Ye=p.Z.getThousandsSeparator(),St=this._getStubs(Te),Ct=me;if(St.length){var Rt=St[0],fn=new RegExp("("+(0,s.hr)(St[1]||"")+")$","g"),ct=new RegExp("[-"+(0,s.hr)(xe?"":Ye)+"]","g");Ct=Ct.replace(Rt,"").replace(fn,"").replace(ct,"")}return Ct},_getStubs:function(me){var xe=/[^']([#0.,]+)/g.exec(me),Te=xe&&xe[0].trim();return me.split(Te).map(function(Ye){return Ye.replace(/'/g,"")})},_truncateToPrecision:function(me,xe){if((0,C.$K)(me)){var Te=me.toString(),Ye=Te.indexOf(".");if(Te&&Ye>-1){var St=parseFloat(Te.substr(0,Ye+xe+1));return isNaN(St)?me:St}}return me},_tryParse:function(me,xe,Te){var Ye=this._replaceSelectedText(me,xe,Te),St=this._getFormatPattern(),Ct=xe.start!==xe.end,Rt=this._getParsedValue(Ye,St),fn=!St.parser&&this._getPrecisionLimits(Ye).max,ct=Rt!==this._parsedValue,Dt=Te===p.Z.getDecimalSeparator()&&0===fn,qe=!Ct&&!ct&&"-"!==Te&&!this._isValueIncomplete(Ye)&&this._isStub(Te);if(!Dt&&!qe&&(""===this._removeStubs(Ye)&&(Rt=Math.abs(0*this._parsedValue)),!isNaN(Rt)))return Rt=fn?this._truncateToPrecision(null===Rt?this._parsedValue:Rt,fn):Rt,!St.parser&&this._isPercentFormat()?function(me,xe){return me&&(0,a.zB)(me/100,xe)}(Rt,fn):Rt},_getParsedValue:function(me,xe){var Te=p.Z.getSign(me,xe?.formatter||xe),Ye=this._removeStubs(me,!0),St=this._parse(Ye,xe),Ct=St<0?-1:1;return(0,C.kE)(St)&&Te!==Ct?Te*St:St},_isValueIncomplete:function(me){if(!this._useMaskBehavior())return this.callBase(me);var xe=this._caret(),Te=p.Z.getDecimalSeparator(),Ye=this._getTextSeparatorIndex(me),St=Ye>=0&&Ye<xe.start,Ct=this._removeStubs(me,!0).split(Te);if(!St||2!==Ct.length)return!1;var Rt=Ct[1].length,ct=!!this._getFormatPattern().parser,He=!ct&&this._getPrecisionLimits(this._getFormatPattern(),me),Dt=!!ct||(0,a.Z2)(Rt,He.min,He.max),qe="0"===Ct[1].charAt(Rt-1);return Dt&&(qe||!Rt)},_isValueInRange:function(me){var xe=(0,s.IS)(this.option("min"),-1/0),Te=(0,s.IS)(this.option("max"),1/0);return(0,a.Z2)(me,xe,Te)},_setInputText:function(me){var xe=p.Z.convertDigits(me,!0),Te=function(me,xe,Te,Ye){Te=O(Te,0);var St=p.Z.getDecimalSeparator(),Ct=function T(me){return 1===me.length&&!!me.match(/^[,.][0-9]*$/g)}(me),Rt=u(Ye).occurrence,fn=Ct?0:d(me,St,Rt),ct=d(xe,St,Rt),He=h(me,fn),Dt=h(xe,ct);if(-1!==fn&&Te.start>fn){var dt=b(Te.start-fn-1,He[1]);return R(Dt[1]?ct+1+E(dt,Dt[1])+1:xe.length,xe,Ye)}var yt=function(me){return me.replace(/[^0-9e]+$/,"")}(Dt[0]),bn=b(He[0].length-Te.start,y(He[0])),_n=E(bn,y(yt));return R(yt.length-(_n+1),xe,Ye)}(this._getInputVal(),xe,this._caret(),this._getFormatPattern());this._input().val(me),this._toggleEmptinessEventHandler(),this._formattedValue=me,this._focusOutOccurs||this._caret(Te)},_useMaskBehavior:function(){return!!this.option("format")&&this.option("useMaskBehavior")},_renderInputType:function(){var me="number"===this.option("mode"),xe="desktop"===f.Z.real().deviceType;this._useMaskBehavior()&&me?this._setInputType(xe||this._isSupportInputMode()?"text":"tel"):this.callBase()},_isChar:function(me){return(0,C.HD)(me)&&1===me.length},_moveCaret:function(me){if(me){var Te=R(O(this._caret(),me),this._getInputVal(),this._getFormatPattern());this._caret(Te)}},_shouldHandleKey:function(me){var xe=(0,K.EV)(me),Te=(0,K.j1)(me)||me.altKey||me.shiftKey||!this._isChar(xe),Ye=xe===ft;return this._useMaskBehavior()&&!Te&&!Ye},_renderInput:function(){this.callBase(),this._renderFormatter()},_renderFormatter:function(){this._clearCache(),this._detachFormatterEvents(),this._useMaskBehavior()&&this._attachFormatterEvents()},_detachFormatterEvents:function(){c.Z.off(this._input(),"."+oe)},_isInputFromPaste:function(me){var xe=me.originalEvent&&me.originalEvent.inputType;return(0,C.$K)(xe)?"insertFromPaste"===xe:this._isValuePasted},_attachFormatterEvents:function(){var me=this._input();c.Z.on(me,(0,K.V4)("input",oe),function(xe){this._formatValue(xe),this._isValuePasted=!1}.bind(this)),c.Z.on(me,(0,K.V4)("dxclick",oe),function(){this._caretTimeout||(this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0,this._caret(R(this._caret(),this._getInputVal(),this._getFormatPattern()))}.bind(this),0))}.bind(this)),c.Z.on(me,"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(me){var xe=this._getInputVal().slice(me);return xe&&!this._isStub(xe,!0)},_isStub:function(me,xe){var Te=(0,s.hr)(p.Z.getDecimalSeparator());return new RegExp("^[^0-9"+Te+"]+$","g").test(me)&&(xe||this._isChar(me))},_parseValue:function(me){return this._useMaskBehavior()?this._parsedValue:this.callBase(me)},_getPrecisionLimits:function(me){var xe=this._getFormatForSign(me),Te=u(xe).index,Ye=(h(xe,Te)[1]||"").replace(/[^#0]/g,"");return{min:Ye.replace(/^(0*)#*/,"$1").length,max:Ye.length}},_revertSign:function(me){if(this._useMaskBehavior()){var xe=this._caret();if(xe.start!==xe.end){if((0,K.EV)(me)===ft)return void this._applyRevertedSign(me,xe,!0);this._caret(R(0,this._getInputVal(),this._getFormatPattern()))}this._applyRevertedSign(me,xe)}},_applyRevertedSign:function(me,xe,Te){var Ye=-1*(0,s.IS)(this._parsedValue,null);if((this._isValueInRange(Ye)||0===Ye)&&(this._parsedValue=Ye,Te)){var St=this._getFormatPattern(),Ct=this._getInputVal();this._setTextByParsedValue(),me.preventDefault();var Rt=this._getInputVal(),fn=function(me,xe,Te){var Ye=x(me,Te);return x(xe,Te).start-Ye.start}(Ct,Rt,St),ct=R(xe=O(xe,fn),Rt,St);this._caret(ct)}},_removeMinusFromText:function(me,xe){return this._lastKeyName===ft&&"-"===me.charAt(xe.start-1)?this._replaceSelectedText(me,{start:xe.start-1,end:xe.start},""):me},_setTextByParsedValue:function(){var me=this._getFormatPattern(),xe=this._parseValue(),Te=this._format(xe,me)||"";this._setInputText(Te)},_formatValue:function(me){var xe=this._getInputVal(),Te=this._caret(),Ye=this._removeMinusFromText(xe,Te),St=Ye!==xe;if(xe=Ye,!this._isInputFromPaste(me)&&this._isValueIncomplete(Ye))return this._formattedValue=xe,void(St&&this._setTextByParsedValue());if(p.Z.convertDigits(this._formattedValue,!0)!==xe){var Rt=this._tryParse(xe,Te,"");(0,C.$K)(Rt)&&(this._parsedValue=Rt)}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 me=this._getInputVal();this._parsedValue=this._tryParse(me,this._caret())},_adjustParsedValue:function(){if(this._useMaskBehavior()){var xe=this._removeStubs(this._getInputVal())?this._parseValue():null;if(!(0,C.kE)(xe))return void(this._parsedValue=xe);this._parsedValue=(0,a.n$)(xe,this.option("min"),this.option("max"))}},_valueChangeEventHandler:function(me){if(!this._useMaskBehavior())return this.callBase(me);var xe=this._caret();this._saveValueChangeEvent(me),this._lastKey=null,this._lastKeyName=null,this._updateParsedValue(),this._adjustParsedValue(),this.option("value",this._parsedValue),xe&&this._caret(xe)},_optionChanged:function(me){switch(me.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(me);break;default:this.callBase(me)}},_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()}});(0,o.Z)("dxNumberBox",nn);const $e=nn},3002:(kn,he,l)=>{"use strict";l.d(he,{H:()=>h,a:()=>u});var o=l(9904),c=l(1828),I=l(5873),C=l(5791),f=l(6961),a=l(4514),p=l(7078),s=(0,a.Jj)(),u={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"}},d={h:0,v:0};class h{constructor(x){var{position:b,container:y,visualContainer:E,$root:S,$content:O,$wrapper:w,onPositioned:T,onVisualPositionChanged:k,restorePosition:R,_fixWrapperPosition:P}=x;this._props={position:b,container:y,visualContainer:E,restorePosition:R,onPositioned:T,onVisualPositionChanged:k,_fixWrapperPosition:P},this._$root=S,this._$content=O,this._$wrapper=w,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(y),this.updatePosition(b),this.updateVisualContainer(E)}get $container(){return this.updateContainer(),this._$markupContainer}get $visualContainer(){return this._$visualContainer}get position(){return this._position}set fixWrapperPosition(x){this._props._fixWrapperPosition=x,this.styleWrapperPosition()}set restorePosition(x){this._props.restorePosition=x}restorePositionOnNextRender(x){this._shouldRenderContentInitialPosition=x||!this._visualPosition}openingHandled(){this.restorePositionOnNextRender(this._props.restorePosition)}updatePosition(x){this._props.position=x,this._position=this._normalizePosition(x),this.updateVisualContainer()}updateContainer(){var x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.container;this._props.container=x,this._$markupContainer=x?(0,o.Z)(x):p.Z.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(x){this._updateVisualPositionValue(),this._raisePositionedEvents(x)}positionContent(){this._shouldRenderContentInitialPosition?this._renderContentInitialPosition():((0,f.pB)(this._$content,this._visualPosition),this.detectVisualPositionChange())}positionWrapper(){this._$visualContainer&&C.Z.setup(this._$wrapper,{my:"top left",at:"top left",of:this._$visualContainer})}styleWrapperPosition(){var x=(0,c.FJ)(this.$visualContainer.get(0))||this._props._fixWrapperPosition;this._$wrapper.css("position",x?"fixed":"absolute")}_updateVisualPositionValue(){this._previousVisualPosition=this._visualPosition,this._visualPosition=(0,f.jt)(this._$content)}_renderContentInitialPosition(){this._renderBoundaryOffset(),(0,f.Kx)(this._$content);var x=this._$wrapper.css("overflow");this._$wrapper.css("overflow","hidden");var b=C.Z.setup(this._$content,this._position);this._$wrapper.css("overflow",x),this._initialPosition=b,this.detectVisualPositionChange()}_raisePositionedEvents(x){var b=this._previousVisualPosition,y=this._visualPosition;(b?.top!==y.top||b?.left!==y.left)&&this._props.onVisualPositionChanged({previousPosition:b,position:y,event:x}),this._props.onPositioned({position:this._initialPosition})}_renderBoundaryOffset(){var x,b=null!==(x=this._position)&&void 0!==x?x:{boundaryOffset:d};this._$content.css("margin","".concat(b.v,"px ").concat(b.h,"px"))}_getVisualContainer(){var x,b,y=this._props.container,E=this._props.visualContainer,S=(0,c.cO)(null===(x=this._props.position)||void 0===x?void 0:x.of)?this._props.position.of.target:null===(b=this._props.position)||void 0===b?void 0:b.of;return(0,o.Z)(E||y||S||s)}_normalizePosition(x){var b={boundaryOffset:d};return(0,c.$K)(x)?(0,I.l)(!0,{},b,this._positionToObject(x)):b}_positionToObject(x){return(0,c.HD)(x)?(0,I.l)({},u[x]):x}}},3576:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>ie});var de,o=l(1805),c=l(3553),I=l(8506),C=l(2941),f=l(9897),a=l(6881),p=l(9904),s=l(1880),u=l(7674),d=l(4270),h=l(6520),g=l(5873),x=l(2718),b=l(3068),y=l(1828),E=l(1469),S=l(4514),O=l(9644),w=l(8159),T=l(913),k=l(6722),R=l(8690),P=l(114),B=l(8225),W=l(2526),N=(de=[],{add:function(le){de.includes(le)||de.push(le)},remove:function(le){var pe=de.indexOf(le);-1!==pe&&de.splice(pe,1)},fire:function(){var le=de.pop(),pe=!!le;return pe&&le(),pe},hasCallback:function(){return de.length>0}}),V=l(7),U=l(6853),K=l(4722),Y=l(4362),J=l(3002),j=b.Z.add,ee=(0,S.Jj)(),G=E.Wg,se="dx-inner-overlay",ge="dx-state-invisible",Ae=[],ne="dx-prevent-safari-scrolling";j(()=>{T.Z.subscribeGlobal(f.Z.getDocument(),R.Z.down,de=>{for(var le=Ae.length-1;le>=0;le--)if(!Ae[le]._proxiedDocumentDownHandler(de))return})});var _e=U.Z.inherit({_supportedKeys:function(){return(0,g.l)(this.callBase(),{escape:function(){this.hide()}})},_getDefaultOptions:function(){return(0,g.l)(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",wrapperAttr:{},position:(0,g.l)({},J.a.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!(0,S.Ym)()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),(0,g.l)(this._optionsByReference,{animation:!0})},$wrapper:function(){return this._$wrapper},_eventBindingTarget:function(){return this._$content},_setDeprecatedOptions(){this.callBase(),(0,g.l)(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.1",alias:"hideOnOutsideClick"}})},ctor:function(de,le){this.callBase(de,le),le&&(le.copyRootClassesToWrapper&&!le._ignoreCopyRootClassesToWrapperDeprecation&&this._logDeprecatedOptionWarning("copyRootClassesToWrapper",{since:"21.2",message:'Use the "wrapperAttr" option instead'}),le.elementAttr&&!le._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=(0,p.Z)("<div>").addClass("dx-overlay-wrapper"),this._$content=(0,p.Z)("<div>").addClass("dx-overlay-content"),this._initInnerOverlayClass();var de=this.$element();this.option("copyRootClassesToWrapper")&&this._$wrapper.addClass(de.attr("class")),de.addClass("dx-overlay"),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),this._toggleViewPortSubscription(!0),this._initHideTopOverlayHandler(this.option("hideTopOverlayHandler")),this._parentsScrollSubscriptionInfo={handler:le=>{this._hideOnParentsScrollHandler(le)}},this.warnPositionAsFunction()},warnPositionAsFunction(){(0,y.mf)(this.option("position"))&&O.Z.log("W0018")},_initInnerOverlayClass:function(){this._$content.toggleClass(se,this.option("innerOverlay"))},_initHideTopOverlayHandler:function(de){this._hideTopOverlayHandler=de},_getActionsList:function(){return["onShowing","onShown","onHiding","onHidden","onPositioned","onVisualPositionChanged"]},_initActions:function(){this._actions={};var de=this._getActionsList();(0,x.S6)(de,(le,pe)=>{this._actions[pe]=this._createActionByOption(pe,{excludeValidators:["disabled","readOnly"]})||u.ZT})},_initHideOnOutsideClickHandler:function(){var de=this;this._proxiedDocumentDownHandler=function(){return de._documentDownHandler(...arguments)}},_initMarkup(){this.callBase(),this._renderWrapperAttributes(),this._initPositionController()},_documentDownHandler:function(de){this._showAnimationProcessing&&this._stopAnimation();var le=(0,p.Z)(ee.document).is(de.target)||(0,h.r3)(ee.document,de.target)||(0,h.r3)(ee.document,de.target.getRootNode().host),pe=(0,p.Z)(de.target).closest(".".concat(se)).length;return le&&!pe&&!(this._$content.is(de.target)||(0,h.r3)(this._$content.get(0),de.target))&&this._shouldHideOnOutsideClick(de)&&this._outsideClickHandler(de),this.option("propagateOutsideClick")},_shouldHideOnOutsideClick:function(de){var{hideOnOutsideClick:le}=this.option();return(0,y.mf)(le)?le(de):le},_outsideClickHandler(de){this.option("shading")&&de.preventDefault(),this.hide()},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new s.s}),this.callBase()},_isTopOverlay:function(){for(var de=this._overlayStack(),le=de.length-1;le>=0;le--){var pe=de[le]._findTabbableBounds();if(pe.first||pe.last)return de[le]===this}return!1},_overlayStack:function(){return Ae},_zIndexInitValue:function(){return _e.baseZIndex()},_toggleViewPortSubscription:function(de){var le=this;G.remove(this._viewPortChangeHandle),de&&(this._viewPortChangeHandle=function(){le._viewPortChangeHandler(...arguments)},G.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._positionController.updateContainer(this.option("container")),this._refresh()},_renderWrapperAttributes(){var{wrapperAttr:de}=this.option(),le=(0,g.l)({},de),pe=le.class;delete le.class,this.$wrapper().attr(le).removeClass(this._customWrapperClass).addClass(pe),this._customWrapperClass=pe},_renderVisibilityAnimate:function(de){return this._stopAnimation(),de?this._show():this._hide()},_getAnimationConfig:function(){return this._getOptionValue("animation",this)},_animateShowing:function(){var de,le,pe,Ee=this,ae=null!==(de=this._getAnimationConfig())&&void 0!==de?de:{},te=this._normalizeAnimation(ae.show,"to"),re=null!==(le=te?.start)&&void 0!==le?le:u.ZT,oe=null!==(pe=te?.complete)&&void 0!==pe?pe:u.ZT;this._animate(te,function(){if(!Ee._isAnimationPaused){Ee.option("focusStateEnabled")&&T.Z.trigger(Ee._focusTarget(),"focus");for(var ye=arguments.length,Pe=new Array(ye),Ne=0;Ne<ye;Ne++)Pe[Ne]=arguments[Ne];oe.call(Ee,...Pe),Ee._showAnimationProcessing=!1,Ee._isHidden=!1,Ee._actions.onShown(),Ee._toggleSafariScrolling(),Ee._showingDeferred.resolve()}},function(){if(!Ee._isAnimationPaused){for(var ye=arguments.length,Pe=new Array(ye),Ne=0;Ne<ye;Ne++)Pe[Ne]=arguments[Ne];re.call(Ee,...Pe),Ee._showAnimationProcessing=!0}})},_processShowingHidingCancel:function(de,le,pe){(0,y.tI)(de)?de.then(Ee=>{Ee?pe():le()}).catch(()=>le()):de?pe():le()},_show:function(){if(this._showingDeferred=new d.BH,this._parentHidden=this._isParentHidden(),this._showingDeferred.done(()=>{delete this._parentHidden}),this._parentHidden)return this._isHidden=!0,this._showingDeferred.resolve();if(this._currentVisible)return(new d.BH).resolve().promise();if(this._currentVisible=!0,this._isHidingActionCanceled)delete this._isHidingActionCanceled,this._showingDeferred.reject();else{var de=()=>{this._stopAnimation(),this._toggleVisibility(!0),this._$content.css("visibility","hidden"),this._$content.toggleClass(ge,!1),this._updateZIndexStackPosition(!0),this._positionController.openingHandled(),this._renderContent();var le={cancel:!1};this._actions.onShowing(le),this._processShowingHidingCancel(le.cancel,()=>{this._$content.css("visibility",""),this._renderVisibility(!0),this._animateShowing()},()=>{this._toggleVisibility(!1),this._$content.css("visibility",""),this._$content.toggleClass(ge,!0),this._isShowingActionCanceled=!0,this._moveFromContainer(),this.option("visible",!1),this._showingDeferred.resolve()})};this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(de)):de()}return this._showingDeferred.promise()},_normalizeAnimation:function(de,le){return de&&(de=(0,g.l)({type:"slide",skipElementInitialStyles:!0},de),(0,y.Kn)(de[le])&&(0,g.l)(de[le],{position:this._positionController.position})),de},_animateHiding:function(){var de,le,pe,Ee=this,ae=null!==(de=this._getAnimationConfig())&&void 0!==de?de:{},te=this._normalizeAnimation(ae.hide,"from"),re=null!==(le=te?.start)&&void 0!==le?le:u.ZT,oe=null!==(pe=te?.complete)&&void 0!==pe?pe:u.ZT;this._animate(te,function(){var ye;Ee._$content.css("pointerEvents",""),Ee._renderVisibility(!1);for(var Pe=arguments.length,Ne=new Array(Pe),ft=0;ft<Pe;ft++)Ne[ft]=arguments[ft];oe.call(Ee,...Ne),Ee._hideAnimationProcessing=!1,null===(ye=Ee._actions)||void 0===ye||ye.onHidden(),Ee._hidingDeferred.resolve()},function(){Ee._$content.css("pointerEvents","none");for(var ye=arguments.length,Pe=new Array(ye),Ne=0;Ne<ye;Ne++)Pe[Ne]=arguments[Ne];re.call(Ee,...Pe),Ee._hideAnimationProcessing=!0})},_hide:function(){if(!this._currentVisible)return(new d.BH).resolve().promise();this._currentVisible=!1,this._hidingDeferred=new d.BH;var de={cancel:!1};return this._isShowingActionCanceled?(delete this._isShowingActionCanceled,this._hidingDeferred.reject()):(this._actions.onHiding(de),this._toggleSafariScrolling(),this._processShowingHidingCancel(de.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 de=f.Z.getActiveElement();this._$content.find(de).length&&(0,h.M3)()},_animate:function(de,le,pe){de?c.Z.animate(this._$content,(0,g.l)({},de,{start:pe=pe||de.start||u.ZT,complete:le})):le()},_stopAnimation:function(){c.Z.stop(this._$content,!0)},_renderVisibility:function(de){de&&this._isParentHidden()||(this._currentVisible=de,this._stopAnimation(),de||(0,W.Ly)(this._$content),de?(this._checkContainerExists(),this._moveToContainer(),this._renderGeometry(),(0,W.Uo)(this._$content),(0,W.U_)(this._$content)):(this._toggleVisibility(de),this._$content.toggleClass(ge,!de),this._updateZIndexStackPosition(de),this._moveFromContainer()),this._toggleShading(de),this._toggleSubscriptions(de))},_updateZIndexStackPosition:function(de){var le=this._overlayStack(),pe=le.indexOf(this);de?(-1===pe&&(this._zIndex=Y.Ue(this._zIndexInitValue()),le.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):-1!==pe&&(le.splice(pe,1),Y.Od(this._zIndex))},_toggleShading:function(de){this._$wrapper.toggleClass("dx-overlay-shader",de&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(de&&this.option("shading"))},_initTabTerminatorHandler:function(){var de=this;this._proxiedTabTerminatorHandler=function(){de._tabKeyHandler(...arguments)}},_toggleTabTerminator:function(de){var le=(0,B.V4)("keydown",this.NAME);de?T.Z.on(f.Z.getDocument(),le,this._proxiedTabTerminatorHandler):T.Z.off(f.Z.getDocument(),le,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var de=this._$wrapper.find("*"),le=de.length-1,pe={first:null,last:null},Ee=0;Ee<=le&&(!pe.first&&de.eq(Ee).is(V.ht)&&(pe.first=de.eq(Ee)),!pe.last&&de.eq(le-Ee).is(V.ht)&&(pe.last=de.eq(le-Ee)),!pe.first||!pe.last);Ee++);return pe},_tabKeyHandler:function(de){if("tab"===(0,B.EV)(de)&&this._isTopOverlay()){var le=this._findTabbableBounds(),pe=le.first,Ee=le.last,ae=!de.shiftKey&&de.target===Ee.get(0),te=de.shiftKey&&de.target===pe.get(0),re=0===le.length,oe=!(0,h.r3)(this._$wrapper.get(0),de.target);if(ae||te||re||oe){de.preventDefault();var ye=de.shiftKey?Ee:pe;T.Z.trigger(ye,"focusin"),T.Z.trigger(ye,"focus")}}},_toggleSubscriptions:function(de){(0,S.Ym)()&&(this._toggleHideTopOverlayCallback(de),this._toggleHideOnParentsScrollSubscription(de))},_toggleHideTopOverlayCallback:function(de){this._hideTopOverlayHandler&&(de?N.add(this._hideTopOverlayHandler):N.remove(this._hideTopOverlayHandler))},_toggleHideOnParentsScrollSubscription:function(de){var le,pe=(0,B.V4)("scroll",this.NAME),{prevTargets:Ee,handler:ae}=null!==(le=this._parentsScrollSubscriptionInfo)&&void 0!==le?le:{};T.Z.off(Ee,pe,ae);var te=this.option("hideOnParentScroll");if(de&&te){var re=this._hideOnParentScrollTarget().parents();"desktop"===C.Z.real().deviceType&&(re=re.add(ee)),T.Z.on(re,pe,ae),this._parentsScrollSubscriptionInfo.prevTargets=re}},_hideOnParentsScrollHandler:function(de){var le=!1,pe=this.option("hideOnParentScroll");(0,y.mf)(pe)&&(le=pe(de)),!le&&!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 de=!this._currentVisible&&this.option("deferRendering");this.option("visible")&&this._isParentHidden()?this._isHidden=!0:this._contentAlreadyRendered||de||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase())},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var de=this.$element().parent();if(de.is(":visible"))return!1;var le=!1;return de.add(de.parents()).each(function(){if("none"===(0,p.Z)(this).css("display"))return le=!0,!1}),le||!f.Z.getBody().contains(de.get(0))},_renderContentImpl:function(){var de=new d.BH,le=this.option("contentTemplate"),pe=this._getTemplate(le),Ee=this._templateManager.anonymousTemplateName===le;return pe&&pe.render({container:(0,a.u)(this.$content()),noModel:!0,transclude:Ee,onRendered:()=>{de.resolve(),this.option("templatesRenderAsynchronously")&&this._dimensionChanged()}}),this._renderScrollTerminator(),de.done(()=>{this.option("visible")&&this._moveToContainer()}),de.promise()},_getPositionControllerConfig(){var{container:de,visualContainer:le,_fixWrapperPosition:pe,restorePosition:Ee}=this.option();return{container:de,visualContainer:le,$root:this.$element(),$content:this._$content,$wrapper:this._$wrapper,onPositioned:this._actions.onPositioned,onVisualPositionChanged:this._actions.onVisualPositionChanged,restorePosition:Ee,_fixWrapperPosition:pe}},_initPositionController(){this._positionController=new J.H(this._getPositionControllerConfig())},_renderScrollTerminator:function(){var de=this._$wrapper,le=(0,B.V4)(k.pB,this.NAME);T.Z.off(de,le),T.Z.on(de,le,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(pe){pe||this._toggleGestureCoverImpl(pe)},_clearSelection:u.ZT,isNative:!0},pe=>{var Ee=pe.originalEvent.originalEvent,{type:ae}=Ee||{},te="wheel"===ae,re="mousemove"===ae,oe=te&&!(0,B.j1)(pe);pe._cancelPreventDefault=!0,Ee&&!1!==pe.cancelable&&(!re&&!te||oe)&&pe.preventDefault()})},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._$wrapper.detach()},_checkContainerExists(){this._positionController.$container.length>0||w.Z.log("W1021",this.NAME)},_moveToContainer:function(){this._$wrapper.appendTo(this._positionController.$container),this._$content.appendTo(this._$wrapper)},_renderGeometry:function(de){var{visible:le}=this.option();le&&(0,S.Ym)()&&(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(0,y.FJ)(this._positionController.$visualContainer.get(0))&&this.option("shading")},_toggleSafariScrolling:function(){var de=this.option("visible"),le=(0,p.Z)(f.Z.getBody()),pe="ios"===C.Z.real().platform&&K.Z.safari,Ee=this._isAllWindowCovered(),ae=le.hasClass(ne);pe&&(!ae||de&&Ee&&!this._disposed?!ae&&de&&Ee&&(this._cachedBodyScrollTop=ee.pageYOffset,le.addClass(ne)):(le.removeClass(ne),ee.scrollTo(0,this._cachedBodyScrollTop),this._cachedBodyScrollTop=void 0))},_renderWrapper:function(){this._positionController.styleWrapperPosition(),this._renderWrapperDimensions(),this._positionController.positionWrapper()},_renderWrapperDimensions:function(){var de=this._positionController.$visualContainer,le=f.Z.getDocumentElement(),pe=(0,y.FJ)(de.get(0)),Ee=pe?le.clientWidth:(0,o.Y_)(de),ae=pe?ee.innerHeight:(0,o.zp)(de);this._$wrapper.css({width:Ee,height:ae})},_renderDimensions:function(){var de=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",de),maxWidth:this._getOptionValue("maxWidth",de),minHeight:this._getOptionValue("minHeight",de),maxHeight:this._getOptionValue("maxHeight",de),width:this._getOptionValue("width",de),height:this._getOptionValue("height",de)})},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardListenerId=P.dG.on(this._$content,null,de=>this._keyboardHandler(de))},_keyboardHandler:function(de){var le=de.originalEvent,pe=(0,p.Z)(le.target);(pe.is(this._$content)||!this.option("ignoreChildEvents"))&&this.callBase(...arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(de){de?this.option("visible")&&this._renderVisibilityAnimate(de):this._renderVisibilityAnimate(de)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){var de=this.option();!this._contentAlreadyRendered&&!de.isRenovated&&this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){c.Z.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")&&Y.Od(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleRTLDirection:function(de){this._$content.toggleClass("dx-rtl",de)},_optionChanged:function(de){var le=de.value;if(this._getActionsList().includes(de.name))this._initActions();else switch(de.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(le).done(()=>{var pe;return null===(pe=this._animateDeferred)||void 0===pe?void 0:pe.resolveWith(this)}).fail(()=>{var pe;return null===(pe=this._animateDeferred)||void 0===pe?void 0:pe.reject()});break;case"container":this._positionController.updateContainer(le),this._invalidate(),this._toggleSafariScrolling();break;case"visualContainer":this._positionController.updateVisualContainer(le),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(de.value),this._toggleHideTopOverlayCallback(this.option("visible"));break;case"hideOnParentScroll":this._toggleHideOnParentsScrollSubscription(this.option("visible"));break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.callBase(de);break;case"_fixWrapperPosition":this._positionController.fixWrapperPosition=le;break;case"wrapperAttr":this._renderWrapperAttributes();break;case"restorePosition":this._positionController.restorePosition=de.value;break;default:this.callBase(de)}},toggle:function(de){de=void 0===de?!this.option("visible"):de;var le=new d.BH;if(de===this.option("visible"))return le.resolveWith(this,[de]).promise();var pe=new d.BH;return this._animateDeferred=pe,this.option("visible",de),pe.promise().done(()=>{delete this._animateDeferred,le.resolveWith(this,[this.option("visible")])}).fail(()=>{delete this._animateDeferred,le.reject()}),le.promise()},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return(0,a.u)(this._$content)},repaint:function(){this._contentAlreadyRendered?(this._positionController.restorePositionOnNextRender(!0),this._renderGeometry({forceStopAnimation:!0}),(0,W.U_)(this._$content)):this.callBase()}});_e.baseZIndex=de=>Y.ue(de),(0,I.Z)("dxOverlay",_e);const ie=_e},7320:(kn,he,l)=>{"use strict";l.d(he,{_:()=>a});var o=l(1805),c=l(9904),I=l(4514),C=l(1828),a=(p,s)=>{var h,u=(0,c.Z)((0,I.Jj)()),{top:d}=p.offset();if((0,C.kE)(s)){if(s<d)return d-s;h=(0,o.fA)(u)-s+u.scrollTop()}else{var g=d-u.scrollTop(),x=(0,o.fA)(u)-g-(0,o.zp)(p);h=Math.max(g,x)}return.9*h}},4362:(kn,he,l)=>{"use strict";l.d(he,{Ao:()=>p,Od:()=>a,Ue:()=>f,ue:()=>C});var o=l(7674),c=1500,I=[],C=u=>c=(0,o.IS)(u,c),f=function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,d=I.length,h=(d?I[d-1]:u)+1;return I.push(h),h},a=u=>{var d=I.indexOf(u);d>=0&&I.splice(d,1)},p=u=>I.length&&I[I.length-1]===u},322:(kn,he,l)=>{"use strict";l.d(he,{R:()=>w,f:()=>k});var o=l(4817),c=l(9943),I=l(1828),C=l(5873),f=l(5791),a=l(7674),p=l(1805),s={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},E=l(3002),S=["shading","target","$arrow"],O={left:-1,top:-1,center:0,right:1,bottom:1},w={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"}},T={h:10,v:10};class k extends E.H{constructor(P){var{shading:B,target:W,$arrow:N}=P;super((0,c.Z)(P,S)),this._props=(0,o.Z)({},this._props,{shading:B,target:W}),this._$arrow=N,this._positionSide=void 0,this.updatePosition(this._props.position)}positionWrapper(){this._props.shading&&this._$wrapper.css({top:0,left:0})}updateTarget(P){this._props.target=P,this.updatePosition(this._props.position)}_renderBoundaryOffset(){}_getContainerPosition(){var P=(0,a.TG)(this._position.offset||""),{h:B,v:W}=P,N=this._isVerticalSide(),V=this._isHorizontalSide();if(N||V){var j=(this._isPopoverInside()?-1:1)*O[this._positionSide]*((N?(0,p.Cr)(this._$arrow):(0,p.dz)(this._$arrow))-this._getContentBorderWidth(this._positionSide));N?W+=j:B+=j}return(0,C.l)({},this._position,{offset:B+" "+W})}_getContentBorderWidth(P){var B=this._$content.css(s[P]);return parseInt(B)||0}_isPopoverInside(){var P=f.Z.setup.normalizeAlign(this._position.my),B=f.Z.setup.normalizeAlign(this._position.at);return P.h===B.h&&P.v===B.v}_isVerticalSide(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"top"===P||"bottom"===P}_isHorizontalSide(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"left"===P||"right"===P}_getDisplaySide(P){var B=f.Z.setup.normalizeAlign(P.my),W=f.Z.setup.normalizeAlign(P.at),N=O[B.h]===O[W.h]&&O[B.v]===O[W.v]?-1:1;return Math.abs(O[B.h]-N*O[W.h])>Math.abs(O[B.v]-N*O[W.v])?W.h:W.v}_normalizePosition(P){var W,B={of:this._props.target,boundaryOffset:T};return W=(0,I.$K)(P)?(0,C.l)(!0,{},B,this._positionToObject(P)):B,this._positionSide=this._getDisplaySide(W),W}_positionToObject(P){return(0,I.HD)(P)?(0,C.l)({},w[P]):P}}},4567:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>K});var o=l(1805),c=l(9904),I=l(4514),C=l(6881),f=l(9897),a=l(913),p=l(8506),s=l(5873),u=l(6961),d=l(5791),h=l(1828),g=l(3487),x=l(8225),b=l(8159),y=l(8531),E=l(5450),S=l(322),R={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},P=function(Y){return(0,h.Kn)(Y)?Y.name:Y},B=function(Y,J){var j=Y.option(J);return P(j)},N=function(Y,J){var{target:j,shading:ee,disabled:G,hideEvent:q}=Y.option(),Z=(0,h.HD)(j),X=ee&&"hide"===J,M=X?null:B(Y,"".concat(J,"Event"));if(X&&q&&b.Z.log("W1020"),M&&!G){var se=(0,x.V4)(M,Y.NAME),ge=Y._createAction(function(){var ne=function(Y,J){var j=Y.option(J);return(0,h.Kn)(j)&&j.delay}(Y,J+"Event");this._clearEventsTimeouts(),ne?this._timeouts[J]=setTimeout(function(){Y[J]()},ne):Y[J]()}.bind(Y),{validatingTargetName:"target"}),De=function(ne){ge({event:ne,target:(0,c.Z)(ne.currentTarget)})},Fe="_"+J+"EventHandler";if(Z)Y[Fe]=De,a.Z.on(f.Z.getDocument(),se,j,De);else{var Ae=(0,C.u)((0,c.Z)(j));Y[Fe]=void 0,a.Z.on(Ae,se,De)}}},V=function(Y,J,j,ee){var G=ee||B(Y,j+"Event");if(G){G=(0,x.V4)(G,Y.NAME);var q="_"+j+"EventHandler";Y[q]?a.Z.off(f.Z.getDocument(),G,J,Y[q]):a.Z.off((0,C.u)((0,c.Z)(J)),G)}},U=y.Z.inherit({_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{target:void 0,shading:!1,position:(0,s.l)({},S.R.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!(0,I.Ym)()},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(Y){V(this,Y,"show"),V(this,Y,"hide")},_attachEvents:function(){N(this,"show"),N(this,"hide")},_renderArrow:function(){this._$arrow=(0,c.Z)("<div>").addClass("dx-popover-arrow").prependTo(this.$overlayContent())},_documentDownHandler:function(Y){return!this._isOutsideClick(Y)||this.callBase(Y)},_isOutsideClick:function(Y){return!(0,c.Z)(Y.target).closest(this.option("target")).length},_animate:function(Y){Y&&Y.to&&"object"==typeof Y.to&&(0,s.l)(Y.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 Y=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.callBase(),this._renderOverlayPosition(Y),this._actions.onPositioned()},_renderOverlayPosition:function(Y){this._resetOverlayPosition(Y),this._updateContentSize(Y);var J=this._getContainerPosition(),j=d.Z.setup(this.$overlayContent(),J),ee=this._getSideByLocation(j);this._togglePositionClass("dx-position-"+ee),this._toggleFlippedClass(j.h.flip,j.v.flip),(this._isHorizontalSide()||this._isVerticalSide())&&this._renderArrowPosition(ee)},_resetOverlayPosition:function(Y){this._setContentHeight(Y),this._togglePositionClass("dx-position-"+this._positionController._positionSide),(0,u.pB)(this.$overlayContent(),{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(Y){if(this.$content()&&Y){var J=d.Z.calculate(this.$overlayContent(),this._getContainerPosition());if(J.h.oversize>0&&this._isHorizontalSide()&&!J.h.fit){var j=(0,o.dz)(this.$overlayContent())-J.h.oversize;(0,o.cl)(this.$overlayContent(),j)}if(J.v.oversize>0&&this._isVerticalSide()&&!J.v.fit){var ee=(0,o.Cr)(this.$overlayContent())-J.v.oversize,G=(0,o.Cr)(this.$content())-J.v.oversize;(0,o.QQ)(this.$overlayContent(),ee),(0,o.QQ)(this.$content(),G)}}},_getContainerPosition:function(){return this._positionController._getContainerPosition()},_hideOnParentScrollTarget:function(){return(0,c.Z)(this._positionController._position.of||this.callBase())},_getSideByLocation:function(Y){var J=Y.v.flip,j=Y.h.flip;return this._isVerticalSide()&&J||this._isHorizontalSide()&&j||this._isPopoverInside()?R[this._positionController._positionSide]:this._positionController._positionSide},_togglePositionClass:function(Y){this.$wrapper().removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(Y)},_toggleFlippedClass:function(Y,J){this.$wrapper().toggleClass("dx-popover-flipped-horizontal",Y).toggleClass("dx-popover-flipped-vertical",J)},_renderArrowPosition:function(Y){var J=(0,E.l)(this._$arrow.get(0)),j=-(this._isVerticalSide(Y)?J.height:J.width);this._$arrow.css(R[Y],j);var _e,ee=this._isVerticalSide(Y)?"left":"top",G=this._isVerticalSide(Y)?"width":"height",q=(0,c.Z)(this._positionController._position.of),Z=d.Z.offset(q)||{top:0,left:0},X=d.Z.offset(this.$overlayContent()),M=J[G],se=X[ee],ge=(0,E.l)(this.$overlayContent().get(0))[G],De=Z[ee],Fe=q.get(0),Ae=Fe&&!Fe.preventDefault?(0,E.l)(Fe)[G]:0,ne=Math.max(se,De),fe=Math.min(se+ge,De+Ae);_e="start"===this.option("arrowPosition")?ne-se:"end"===this.option("arrowPosition")?fe-se-M:(ne+fe)/2-se-M/2;var ie=this._positionController._getContentBorderWidth(Y),de=(0,g.n$)(_e-ie+this.option("arrowOffset"),ie,ge-M-2*ie);this._$arrow.css(ee,de)},_isPopoverInside:function(){return this._positionController._isPopoverInside()},_setContentHeight:function(Y){Y&&this.callBase()},_getPositionControllerConfig(){var{shading:Y,target:J}=this.option();return(0,s.l)({},this.callBase(),{target:J,shading:Y,$arrow:this._$arrow})},_initPositionController(){this._positionController=new S.f(this._getPositionControllerConfig())},_renderWrapperDimensions:function(){this.option("shading")&&this.$wrapper().css({width:"100%",height:"100%"})},_isVerticalSide:function(Y){return this._positionController._isVerticalSide(Y)},_isHorizontalSide:function(Y){return this._positionController._isHorizontalSide(Y)},_clearEventTimeout:function(Y){clearTimeout(this._timeouts[Y])},_clearEventsTimeouts:function(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(Y){switch(Y.name){case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":Y.value&&this.option("fullScreen",!1);break;case"target":Y.previousValue&&this._detachEvents(Y.previousValue),this._positionController.updateTarget(Y.value),this._invalidate();break;case"showEvent":case"hideEvent":var J=Y.name.substring(0,4),j=P(Y.previousValue);this.hide(),V(this,this.option("target"),J,j),N(this,J);break;case"visible":this._clearEventTimeout(Y.value?"show":"hide"),this.callBase(Y);break;default:this.callBase(Y)}},show:function(Y){return Y&&this.option("target",Y),this.callBase()}});(0,p.Z)("dxPopover",U);const K=U},9609:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>f}),l(7858);var c=l(8531),I=l(8506);let C=(()=>{class a extends c.Z{_getToolbarName(){return"dxToolbar"}}return a.defaultOptions=function(p){c.Z.defaultOptions(p)},a})();(0,I.Z)("dxPopup",C);const f=C},8531:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>me});var o=l(8506),c=l(2941),I=l(6881),C=l(9904),f=l(1880),a=l(4722),p=l(7674),s=l(5873),u=l(7981),d=l(2718),h=l(1805),g=l(5450),x=l(1828),b=l(2161),y=l(4514),E=l(2526),S=l(9009),O=l(6961),w=l(9897),T=l(3487),k=l(913),R=l(6722),P=l(8225);var V=l(6498),U=l(219),K=l(3576),Y=l(2722),j=(l(7160),l(9870)),ee=l(4362),G=l(4817),q=l(9943),Z=l(1469),X=l(3002),M=["fullScreen","forceApplyBindings","dragOutsideBoundary","dragAndResizeArea","outsideDragFactor"],se=(0,y.Jj)();class ge extends X.H{constructor(Te){var{fullScreen:Ye,forceApplyBindings:St,dragOutsideBoundary:Ct,dragAndResizeArea:Rt,outsideDragFactor:fn}=Te;super((0,q.Z)(Te,M)),this._props=(0,G.Z)({},this._props,{fullScreen:Ye,forceApplyBindings:St,dragOutsideBoundary:Ct,dragAndResizeArea:Rt,outsideDragFactor:fn}),this._$dragResizeContainer=void 0,this._outsideDragFactor=void 0,this._lastPositionBeforeFullScreen=void 0,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set fullScreen(Te){this._props.fullScreen=Te,Te?this._fullScreenEnabled():this._fullScreenDisabled()}get $dragResizeContainer(){return this._$dragResizeContainer}get outsideDragFactor(){return this._outsideDragFactor}set dragAndResizeArea(Te){this._props.dragAndResizeArea=Te,this._updateDragResizeContainer()}set dragOutsideBoundary(Te){this._props.dragOutsideBoundary=Te,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set outsideDragFactor(Te){this._props.outsideDragFactor=Te,this._updateOutsideDragFactor()}updateContainer(Te){super.updateContainer(Te),this._updateDragResizeContainer()}dragHandled(){this.restorePositionOnNextRender(!1)}resizeHandled(){this.restorePositionOnNextRender(!1)}positionContent(){var Te,Ye;this._props.fullScreen?((0,O.pB)(this._$content,{top:0,left:0}),this.detectVisualPositionChange()):(null===(Te=(Ye=this._props).forceApplyBindings)||void 0===Te||Te.call(Ye),!this._shouldRenderContentInitialPosition&&this._lastPositionBeforeFullScreen?((0,O.pB)(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?(0,C.Z)(se):this._props.dragAndResizeArea?(0,C.Z)(this._props.dragAndResizeArea):(0,Z.In)().get(0)||this._props.container?this._$markupContainer:(0,C.Z)(se)}_getVisualContainer(){return this._props.fullScreen?(0,C.Z)(se):super._getVisualContainer()}_fullScreenEnabled(){this.restorePositionOnNextRender(!1),this._lastPositionBeforeFullScreen=this._visualPosition}_fullScreenDisabled(){this.restorePositionOnNextRender(!1)}}var De=(0,y.Jj)(),Fe="dx-popup",Ae="dx-popup-wrapper",de="dx-state-disabled",pe="dx-popup-title",ae="dx-popup-bottom",Pe=["cancel","clear","done"],mt=a.Z.safari&&(0,b.q)(a.Z.version,[11])<0,nn={static:"",inherit:"dx-popup-inherit-height",flex:"dx-popup-flex-height"},$e=K.Z.inherit({_supportedKeys:function(){return(0,s.l)(this.callBase(),{upArrow:xe=>{var Te;null===(Te=this._drag)||void 0===Te||Te.moveUp(xe)},downArrow:xe=>{var Te;null===(Te=this._drag)||void 0===Te||Te.moveDown(xe)},leftArrow:xe=>{var Te;null===(Te=this._drag)||void 0===Te||Te.moveLeft(xe)},rightArrow:xe=>{var Te;null===(Te=this._drag)||void 0===Te||Te.moveRight(xe)}})},_getDefaultOptions:function(){return(0,s.l)(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 xe=(0,Y.Vk)();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(Te){return"desktop"===c.Z.real().deviceType&&"generic"===Te.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===c.Z.real().deviceType&&!c.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,Y.x2)(xe)},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 xe=this.option("_wrapperClassExternal"),Te=xe?"".concat(Ae," ").concat(xe):Ae;this.callBase(),this._updateResizeCallbackSkipCondition(),this.$element().addClass(Fe),this.$wrapper().addClass(Te),this._$popupContent=this._$content.wrapInner((0,C.Z)("<div>").addClass("dx-popup-content")).children().eq(0)},_render:function(){var xe=this.option("fullScreen");this._toggleFullScreenClass(xe),this.callBase()},_toggleFullScreenClass:function(xe){this.$overlayContent().toggleClass("dx-popup-fullscreen",xe).toggleClass("dx-popup-normal",!xe)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new f.s,bottom:new f.s})},_getActionsList:function(){return this.callBase().concat(["onResizeStart","onResize","onResizeEnd"])},_contentResizeHandler:function(xe){this._shouldSkipContentResize(xe)||this._renderGeometry({shouldOnlyReposition:!0})},_doesShowAnimationChangeDimensions:function(){var xe=this.option("animation");return["to","from"].some(Te=>{var Ye,St=null==xe||null===(Ye=xe.show)||void 0===Ye?void 0:Ye[Te];return(0,x.Kn)(St)&&("width"in St||"height"in St)})},_updateResizeCallbackSkipCondition(){var xe=this._doesShowAnimationChangeDimensions();this._shouldSkipContentResize=Te=>xe&&this._showAnimationProcessing||this._areContentDimensionsRendered(Te)},_observeContentResize:function(xe){if(this.option("useResizeObserver")){var Te=this._$content.get(0);xe?j.Z.observe(Te,Ye=>{this._contentResizeHandler(Ye)}):j.Z.unobserve(Te)}},_areContentDimensionsRendered:function(xe){var Te,Ye,St,Rt,fn,Ct=null===(Te=xe.contentBoxSize)||void 0===Te?void 0:Te[0];if(Ct)return parseInt(Ct.inlineSize,10)===(null===(Rt=this._renderedDimensions)||void 0===Rt?void 0:Rt.width)&&parseInt(Ct.blockSize,10)===(null===(fn=this._renderedDimensions)||void 0===fn?void 0:fn.height);var ct=xe.contentRect;return parseInt(ct.width,10)===(null===(Ye=this._renderedDimensions)||void 0===Ye?void 0:Ye.width)&&parseInt(ct.height,10)===(null===(St=this._renderedDimensions)||void 0===St?void 0:St.height)},_renderContent(){this.callBase(),this._observeContentResize(!0)},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderResize(),this._renderBottom()},_renderTitle:function(){var xe=this._getToolbarItems("top"),Te=this.option("title"),Ye=this.option("showTitle");if(Ye&&Te&&xe.unshift({location:c.Z.current().ios?"center":"before",text:Te}),Ye||xe.length>0){this._$title&&this._$title.remove();var St=(0,C.Z)("<div>").addClass(pe).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",xe,St).addClass(pe),this._renderDrag(),this._executeTitleRenderAction(this._$title),this._$title.toggleClass("dx-has-close-button",this._hasCloseButton())}else this._$title&&this._$title.detach()},_renderTemplateByType:function(xe,Te,Ye,St){var{rtlEnabled:Ct,useDefaultToolbarButtons:Rt,useFlatToolbarButtons:fn,disabled:ct}=this.option(),He=this._getTemplateByOption(xe);if(He instanceof f.s){var qe=(0,s.l)({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),Ht=(0,s.l)(St,{items:Te,rtlEnabled:Ct,useDefaultButtons:Rt,useFlatButtons:fn,disabled:ct,integrationOptions:qe});this._getTemplate("dx-polymorph-widget").render({container:Ye,model:{widget:this._getToolbarName(),options:Ht}});var dt=Ye.children("div");return Ye.replaceWith(dt),dt}var ht=(0,C.Z)(He.render({container:(0,I.u)(Ye)}));return ht.hasClass("dx-template-wrapper")&&(Ye.replaceWith(ht),Ye=ht),Ye},_getToolbarName:function(){return"dxToolbarBase"},_renderVisibilityAnimate:function(xe){return this.callBase(xe)},_hide(){return this._observeContentResize(!1),this.callBase()},_executeTitleRenderAction:function(xe){this._getTitleRenderAction()({titleElement:(0,I.u)(xe)})},_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(xe,Te,Ye)=>{var St=(0,C.Z)("<div>").addClass("dx-closebutton");this._createComponent(St,U.Z,{icon:"close",onClick:this._createToolbarItemAction(void 0),stylingMode:"text",integrationOptions:{}}),(0,C.Z)(Ye).append(St)}},_getToolbarItems:function(xe){var Te=this.option("toolbarItems"),Ye=[];this._toolbarItemClasses=[];var St=c.Z.current().platform,Ct=0;return(0,d.S6)(Te,(Rt,fn)=>{var ct=(0,x.$K)(fn.shortcut),He=ct?(xe=>{var Ye=c.Z.current().platform,St="bottom",Ct="before";if("ios"===Ye)switch(xe){case"cancel":St="top";break;case"clear":St="top",Ct="after";break;case"done":Ct="after"}else if("android"===Ye)switch(xe){case"cancel":case"done":Ct="after"}return{toolbar:St,location:Ct}})(fn.shortcut):fn;if(ct&&"ios"===St&&Ct<2&&(He.toolbar="top",Ct++),He.toolbar=fn.toolbar||He.toolbar||"top",He&&He.toolbar===xe){ct&&(0,s.l)(He,{location:fn.location},this._getToolbarItemByAlias(fn));var Dt="generic"===St;"done"===fn.shortcut&&Dt||"cancel"===fn.shortcut&&!Dt?Ye.unshift(He):Ye.push(He)}}),"top"===xe&&this._hasCloseButton()&&Ye.push(this._getCloseButton()),Ye},_hasCloseButton(){return this.option("showCloseButton")&&this.option("showTitle")},_getLocalizationKey:xe=>"done"===xe.toLowerCase()?"OK":(0,u._A)(xe,!0),_getToolbarItemByAlias:function(xe){var Te=this,Ye=xe.shortcut;if(!Pe.includes(Ye))return!1;var St=(0,s.l)({text:S.Z.format(this._getLocalizationKey(Ye)),onClick:this._createToolbarItemAction(xe.onClick),integrationOptions:{},type:Te.option("useDefaultToolbarButtons")?"default":"normal",stylingMode:Te.option("useFlatToolbarButtons")?"text":"contained"},xe.options||{}),Ct=Fe+"-"+Ye;return this._toolbarItemClasses.push(Ct),{template:function(Rt,fn,ct){var He=(0,C.Z)("<div>").addClass(Ct).appendTo(ct);Te._createComponent(He,U.Z,St)}}},_createToolbarItemAction:function(xe){return this._createAction(xe,{afterExecute:function(Te){Te.component.hide()}})},_renderBottom:function(){var xe=this._getToolbarItems("bottom");if(xe.length){this._$bottom&&this._$bottom.remove();var Te=(0,C.Z)("<div>").addClass(ae).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",xe,Te,{compactMode:!0}).addClass(ae),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleDisabledState:function(xe){this.callBase(...arguments),this.$content().toggleClass(de,Boolean(xe))},_toggleClasses:function(){(0,d.S6)(Pe,(Te,Ye)=>{var St=Fe+"-"+Ye;this._toolbarItemClasses.includes(St)?(this.$wrapper().addClass(St+"-visible"),this._$bottom.addClass(St)):(this.$wrapper().removeClass(St+"-visible"),this._$bottom.removeClass(St))})},_toggleFocusClass(xe,Te){if(this.callBase(xe,Te),xe&&!ee.Ao(this._zIndex)){var Ye=ee.Ue(this._zIndexInitValue());ee.Od(this._zIndex),this._zIndex=Ye,this._$wrapper.css("zIndex",Ye),this._$content.css("zIndex",Ye)}},_getPositionControllerConfig(){var{fullScreen:xe,forceApplyBindings:Te,dragOutsideBoundary:Ye,dragAndResizeArea:St,outsideDragFactor:Ct}=this.option();return(0,s.l)({},this.callBase(),{fullScreen:xe,forceApplyBindings:Te,dragOutsideBoundary:Ye,dragAndResizeArea:St,outsideDragFactor:Ct})},_initPositionController(){this._positionController=new ge(this._getPositionControllerConfig())},_getDragTarget:function(){return this.topToolbar()},_renderGeometry:function(xe){var{visible:Te,useResizeObserver:Ye}=this.option();if(Te&&(0,y.Ym)()){var Ct=this._showAnimationProcessing&&!(null!=xe&&xe.forceStopAnimation)&&Ye;this._isAnimationPaused=Ct||void 0,this._stopAnimation(),null!=xe&&xe.shouldOnlyReposition?this._renderPosition(!1):this._renderGeometryImpl(xe?.isDimensionChange),Ct&&(this._animateShowing(),this._isAnimationPaused=void 0)}},_cacheDimensions:function(){this.option("useResizeObserver")&&(this._renderedDimensions={width:parseInt((0,h.dz)(this._$content),10),height:parseInt((0,h.Cr)(this._$content),10)})},_renderGeometryImpl:function(){var xe=arguments.length>0&&void 0!==arguments[0]&&arguments[0];xe||this._resetContentHeight(),this.callBase(),this._cacheDimensions(),this._setContentHeight()},_resetContentHeight:function(){"auto"===this._getOptionValue("height")&&this.$content().css({height:"auto",maxHeight:"none"})},_renderDrag:function(){var xe=this._getDragTarget(),Te=this.option("dragEnabled");if(xe){var Ye={dragEnabled:Te,handle:xe.get(0),draggableElement:this._$content.get(0),positionController:this._positionController};this._drag?this._drag.init(Ye):this._drag=new class W{constructor(Te){this.init(Te)}init(Te){var{dragEnabled:Ye,handle:St,draggableElement:Ct,positionController:Rt}=Te;this._positionController=Rt,this._draggableElement=Ct,this._handle=St,this._dragEnabled=Ye,this.unsubscribe(),Ye&&this.subscribe()}moveDown(Te){this._moveTo(5,0,Te)}moveUp(Te){this._moveTo(-5,0,Te)}moveLeft(Te){this._moveTo(0,-5,Te)}moveRight(Te){this._moveTo(0,5,Te)}subscribe(){var Te=this._getEventNames();k.Z.on(this._handle,Te.startEventName,Ye=>{this._dragStartHandler(Ye)}),k.Z.on(this._handle,Te.updateEventName,Ye=>{this._dragUpdateHandler(Ye)}),k.Z.on(this._handle,Te.endEventName,Ye=>{this._dragEndHandler(Ye)})}unsubscribe(){var Te=this._getEventNames();k.Z.off(this._handle,Te.startEventName),k.Z.off(this._handle,Te.updateEventName),k.Z.off(this._handle,Te.endEventName)}_getEventNames(){return{startEventName:(0,P.V4)(R.BL,"overlayDrag"),updateEventName:(0,P.V4)(R.pB,"overlayDrag"),endEventName:(0,P.V4)(R.ut,"overlayDrag")}}_dragStartHandler(Te){var Ye=this._getAllowedOffsets();this._prevOffset={x:0,y:0},Te.targetElements=[],Te.maxTopOffset=Ye.top,Te.maxBottomOffset=Ye.bottom,Te.maxLeftOffset=Ye.left,Te.maxRightOffset=Ye.right}_dragUpdateHandler(Te){this._moveByOffset({top:Te.offset.y-this._prevOffset.y,left:Te.offset.x-this._prevOffset.x}),this._prevOffset=Te.offset}_dragEndHandler(Te){this._positionController.dragHandled(),this._positionController.detectVisualPositionChange(Te)}_moveTo(Te,Ye,St){if(this._dragEnabled){St.preventDefault(),St.stopPropagation();var Ct=this._fitOffsetIntoAllowedRange(Te,Ye);this._moveByOffset(Ct),this._dragEndHandler(St)}}_fitOffsetIntoAllowedRange(Te,Ye){var St=this._getAllowedOffsets();return{top:(0,T.n$)(Te,-St.top,St.bottom),left:(0,T.n$)(Ye,-St.left,St.right)}}_getContainerDimensions(){var Te=w.Z.getDocument(),Ye=this._positionController.$dragResizeContainer.get(0),St=(0,h.Y_)(Ye),Ct=(0,h.zp)(Ye);return(0,x.FJ)(Ye)&&(Ct=Math.max(Te.body.clientHeight,Ct),St=Math.max(Te.body.clientWidth,St)),{width:St,height:Ct}}_getContainerPosition(){var Te=this._positionController.$dragResizeContainer.get(0);return(0,x.FJ)(Te)?{top:0,left:0}:(0,h.os)(Te)}_getElementPosition(){return(0,h.os)(this._draggableElement)}_getInnerDelta(){var Te=this._getContainerDimensions(),Ye=this._getElementDimensions();return{x:Te.width-Ye.width,y:Te.height-Ye.height}}_getOuterDelta(){var{width:Te,height:Ye}=this._getElementDimensions(),St=this._positionController.outsideDragFactor;return{x:Te*St,y:Ye*St}}_getFullDelta(){var Te=this._getInnerDelta(),Ye=this._getOuterDelta();return{x:Te.x+Ye.x,y:Te.y+Ye.y}}_getElementDimensions(){return{width:this._draggableElement.offsetWidth,height:this._draggableElement.offsetHeight}}_getAllowedOffsets(){var Te=this._getFullDelta();if(!(Te.y>=0&&Te.x>=0))return{top:0,bottom:0,left:0,right:0};var St=this._getElementPosition(),Ct=this._getContainerPosition(),Rt=this._getOuterDelta();return{top:St.top-Ct.top+Rt.y,bottom:-St.top+Ct.top+Te.y,left:St.left-Ct.left+Rt.x,right:-St.left+Ct.left+Te.x}}_moveByOffset(Te){var Ye=(0,O.jt)(this._draggableElement);(0,O.pB)(this._draggableElement,{left:Ye.left+Te.left,top:Ye.top+Te.top})}}(Ye),this.$overlayContent().toggleClass("dx-popup-draggable",Te)}},_renderResize:function(){this._resizable=this._createComponent(this._$content,V.Z,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:xe=>{this._resizeEndHandler(xe),this._observeContentResize(!0)},onResize:xe=>{this._setContentHeight(),this._actions.onResize(xe)},onResizeStart:xe=>{this._observeContentResize(!1),this._actions.onResizeStart(xe)},minHeight:100,minWidth:100,area:this._positionController.$dragResizeContainer,keepAspectRatio:!1})},_resizeEndHandler:function(xe){var Te=this._resizable.option("width"),Ye=this._resizable.option("height");Te&&this._setOptionWithoutOptionChange("width",Te),Ye&&this._setOptionWithoutOptionChange("height",Ye),this._cacheDimensions(),this._positionController.resizeHandled(),this._positionController.detectVisualPositionChange(xe.event),this._actions.onResizeEnd(xe)},_setContentHeight:function(){(this.option("forceApplyBindings")||p.ZT)();var xe=this.$overlayContent().get(0),Te=this._chooseHeightStrategy(xe);this.$content().css(this._getHeightCssStyles(Te,xe)),this._setHeightClasses(this.$overlayContent(),Te)},_heightStrategyChangeOffset:function(xe,Te){return xe===nn.flex?-Te:0},_chooseHeightStrategy:function(xe){var Te="auto"===xe.style.width||""===xe.style.width,Ye=nn.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(Ye=Te||mt?nn.inherit:nn.flex),Ye},_getHeightCssStyles:function(xe,Te){var Ye={},St=this._getOptionValue("maxHeight",Te),Ct=this._getOptionValue("minHeight",Te),Rt=this._splitPopupHeight(),fn=Rt.header+Rt.footer+Rt.contentVerticalOffsets+Rt.popupVerticalOffsets+this._heightStrategyChangeOffset(xe,Rt.popupVerticalPaddings);if(xe===nn.static){if(!this._isAutoHeight()||St||Ct){var ct=this.option("fullScreen")?Math.min((0,g.l)(Te).height,(0,y.Jj)().innerHeight):(0,g.l)(Te).height;Ye={height:Math.max(0,ct-fn),minHeight:"auto",maxHeight:"auto"}}}else{var Dt=(0,C.Z)(this._positionController.$visualContainer).get(0),qe=(0,h.n2)(St,-fn,Dt);Ye={height:"auto",minHeight:(0,h.eK)(Ct,-fn,Dt),maxHeight:qe}}return Ye},_setHeightClasses:function(xe,Te){var Ye="";for(var St in nn)nn[St]!==Te&&(Ye+=" "+nn[St]);xe.removeClass(Ye).addClass(Te)},_isAutoHeight:function(){return"auto"===this.$overlayContent().get(0).style.height},_splitPopupHeight:function(){var xe=this.topToolbar(),Te=this.bottomToolbar();return{header:(0,h.$D)(xe&&xe.get(0)),footer:(0,h.$D)(Te&&Te.get(0)),contentVerticalOffsets:(0,h.sQ)(this.$overlayContent().get(0),!0),popupVerticalOffsets:(0,h.sQ)(this.$content().get(0),!0),popupVerticalPaddings:(0,h.sQ)(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(),(0,y.Ym)()&&this._renderFullscreenWidthClass()},_dimensionChanged:function(){this._renderGeometry({isDimensionChange:!0})},_clean:function(){this.callBase(),this._observeContentResize(!1)},_renderFullscreenWidthClass:function(){this.$overlayContent().toggleClass("dx-popup-fullscreen-width",(0,h.Y_)(this.$overlayContent())===(0,h.dz)(De))},refreshPosition:function(){this._renderPosition()},_optionChanged:function(xe){var Te,Ye=xe.value;switch(xe.name){case"disabled":this.callBase(xe),this._renderTitle(),this._renderBottom();break;case"animation":this._updateResizeCallbackSkipCondition();break;case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry(),(0,E.U_)(this.$overlayContent());break;case"bottomTemplate":this._renderBottom(),this._renderGeometry(),(0,E.U_)(this.$overlayContent());break;case"container":var St;this.callBase(xe),this.option("resizeEnabled")&&(null===(St=this._resizable)||void 0===St||St.option("area",this._positionController.$dragResizeContainer));break;case"width":case"height":this.callBase(xe),null===(Te=this._resizable)||void 0===Te||Te.option(xe.name,xe.value);break;case"onTitleRendered":this._createTitleRenderAction(xe.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var Ct=!xe.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),Ct&&(this._renderGeometry(),(0,E.U_)(this.$overlayContent()));break;case"dragEnabled":this._renderDrag();break;case"dragAndResizeArea":this._positionController.dragAndResizeArea=Ye,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer),this._positionController.positionContent();break;case"dragOutsideBoundary":this._positionController.dragOutsideBoundary=Ye,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer);break;case"outsideDragFactor":this._positionController.outsideDragFactor=Ye;break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"autoResizeEnabled":this._renderGeometry(),(0,E.U_)(this.$overlayContent());break;case"fullScreen":this._positionController.fullScreen=xe.value,this._toggleFullScreenClass(xe.value),this._toggleSafariScrolling(),this._renderGeometry(),(0,E.U_)(this.$overlayContent());break;case"showCloseButton":this._renderTitle();break;default:this.callBase(xe)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return(0,I.u)(this.$content())},$overlayContent:function(){return this._$content}});(0,o.Z)("dxPopup",$e);const me=$e},4026:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>y});var o=l(9904),c=l(974),I=l(5873),C=l(1828),f=l(8506),x="dx-progressbar-animating-segment",b=c.Z.inherit({_getDefaultOptions:function(){return(0,I.l)(this.callBase(),{value:0,statusFormat:function(E){return"Progress: "+Math.round(100*E)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(E){return"android"===E.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"),(0,o.Z)("<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=(0,o.Z)("<div>").addClass("dx-progressbar-status")},_renderIndeterminateState:function(){this._$segmentContainer=(0,o.Z)("<div>").addClass("dx-progressbar-animating-container");for(var E=this.option("_animatingSegmentCount"),S=0;S<E;S++)(0,o.Z)("<div>").addClass(x).addClass(x+"-"+(S+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(E){var S=this.option("statusPosition").split(" ");E?"top"===S[0]||"left"===S[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var S=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 O="dx-position-"+S[0];S[1]&&(O+="-"+S[1]),this._$wrapper.addClass(O)},_toggleIndeterminateState:function(E){E?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var E=this.option("value"),S=this.option("max");E||0===E?(this._$segmentContainer&&this._toggleIndeterminateState(!1),E===S&&this._completeAction(),this.callBase(),this._setStatus()):this._toggleIndeterminateState(!0)},_setStatus:function(){var E=this.option("statusFormat"),S=(E=(0,C.mf)(E)?E.bind(this):function(O){return O})(this._currentRatio,this.option("value"));this._$status.text(S)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(E){switch(E.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(E.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(E)}}});(0,f.Z)("dxProgressBar",b);const y=b},6498:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>J});var o=l(4817),c=l(1805),I=l(6961),C=l(8506),f=l(8893),a=l(9904),p=l(7674),s=l(5873),u=l(2718),d=l(3487),h=l(1828),g=l(4514),x=l(913),b=l(6722),y=l(8225),E=l(2526),S="dxResizable",T="dx-resizable-handle",W="dx-resizable-handle-corner",N=(0,y.V4)(b.BL,S),V=(0,y.V4)(b.pB,S),U=(0,y.V4)(b.ut,S),K={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},Y=f.Z.inherit({_getDefaultOptions:function(){return(0,s.l)(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 j=this.option("handles");if("none"!==j&&j){var ee="all"===j?["top","bottom","left","right"]:j.split(" "),G={};(0,u.S6)(ee,(q,Z)=>{G[Z]=!0,this._renderHandle(Z)}),G.bottom&&G.right&&this._renderHandle("corner-bottom-right"),G.bottom&&G.left&&this._renderHandle("corner-bottom-left"),G.top&&G.right&&this._renderHandle("corner-top-right"),G.top&&G.left&&this._renderHandle("corner-top-left"),this._attachEventHandlers()}},_renderHandle:function(j){var ee=(0,a.Z)("<div>").addClass(T).addClass(T+"-"+j).appendTo(this.$element());this._handles.push(ee)},_attachEventHandlers:function(){if(!this.option("disabled")){var j={};j[N]=this._dragStartHandler.bind(this),j[V]=this._dragHandler.bind(this),j[U]=this._dragEndHandler.bind(this),this._handles.forEach(ee=>{x.Z.on(ee,j,{direction:"both",immediate:!0})})}},_detachEventHandlers:function(){this._handles.forEach(j=>{x.Z.off(j)})},_toggleEventHandlers:function(j){j?this._attachEventHandlers():this._detachEventHandlers()},_getElementSize:function(){var j=this.$element();return"border-box"===j.css("boxSizing")?{width:(0,c.Y_)(j),height:(0,c.zp)(j)}:{width:(0,c.dz)(j),height:(0,c.Cr)(j)}},_dragStartHandler:function(j){var ee=this.$element();ee.is(".dx-state-disabled, .dx-state-disabled *")?j.cancel=!0:(this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(j),this._elementLocation=(0,I.jt)(ee),this._elementSize=this._getElementSize(),this._renderDragOffsets(j),this._resizeStartAction({event:j,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),j.targetElements=null)},_toggleResizingClass:function(j){this.$element().toggleClass("dx-resizable-resizing",j)},_renderDragOffsets:function(j){var ee=this._getArea();if(ee){var G=(0,a.Z)(j.target).closest("."+T),q=(0,c.Y_)(G),Z=(0,c.zp)(G),X=G.offset(),M=ee.offset,se=this._getAreaScrollOffset();j.maxLeftOffset=this._leftMaxOffset=X.left-M.left-se.scrollX,j.maxRightOffset=this._rightMaxOffset=M.left+ee.width-X.left-q+se.scrollX,j.maxTopOffset=this._topMaxOffset=X.top-M.top-se.scrollY,j.maxBottomOffset=this._bottomMaxOffset=M.top+ee.height-X.top-Z+se.scrollY}},_getBorderWidth:function(j,ee){if((0,h.FJ)(j.get(0)))return 0;var G=j.css(K[ee]);return parseInt(G)||0},_proportionate:function(j,ee){var G=this._elementSize;return ee*("x"===j?G.width/G.height:G.height/G.width)},_getProportionalDelta:function(j){var{x:ee,y:G}=j,q=this._proportionate("y",ee);if(q>=G)return{x:ee,y:q};var Z=this._proportionate("x",G);return Z>=ee?{x:Z,y:G}:{x:0,y:0}},_getDirectionName:function(j){var ee=this._movingSides;return"x"===j?ee.left?"left":"right":ee.top?"top":"bottom"},_fitIntoArea:function(j,ee){var G,q=this._getDirectionName(j);return Math.min(ee,null!==(G=this["_".concat(q,"MaxOffset")])&&void 0!==G?G:1/0)},_fitDeltaProportionally:function(j){var ee=(0,o.Z)({},j),G=this._elementSize,{minWidth:q,minHeight:Z,maxWidth:X,maxHeight:M}=this.option(),se=()=>G.width+ee.x,ge=()=>G.height+ee.y,De=_e=>ee[_e]===this._fitIntoArea(_e,ee[_e]),Fe=()=>(0,d.Z2)(se(),q,X)&&De("x"),Ae=()=>(0,d.Z2)(ge(),Z,M)&&De("y");if(!Fe()){var ne=this._fitIntoArea("x",(0,d.n$)(se(),q,X)-G.width);ee={x:ne,y:this._proportionate("y",ne)}}if(!Ae()){var fe=this._fitIntoArea("y",(0,d.n$)(ge(),Z,M)-G.height);ee={x:this._proportionate("x",fe),y:fe}}return Fe()&&Ae()?ee:{x:0,y:0}},_fitDelta:function(j){var{x:ee,y:G}=j,q=this._elementSize,{minWidth:Z,minHeight:X,maxWidth:M,maxHeight:se}=this.option();return{x:(0,d.n$)(q.width+ee,Z,M)-q.width,y:(0,d.n$)(q.height+G,X,se)-q.height}},_getDeltaByOffset:function(j){var ee=this._movingSides,G=this._isCornerHandler(ee)&&this.option("keepAspectRatio"),q={x:j.x*(ee.left?-1:1),y:j.y*(ee.top?-1:1)};if(G){var Z=this._getProportionalDelta(q);q=this._fitDeltaProportionally(Z)}else{var M=this._fitDelta(q);q=this._roundByStep(M)}return q},_updatePosition:function(j,ee){var{width:G,height:q}=ee,Z=this._elementLocation,X=this._movingSides,M=this.$element(),se=this._getElementSize();(0,I.pB)(M,{top:Z.top+(X.top?j.y*(X.top?-1:1)-((se.height||q)-q):0),left:Z.left+(X.left?j.x*(X.left?-1:1)-((se.width||G)-G):0)})},_dragHandler:function(j){var ee=this._getOffset(j),G=this._getDeltaByOffset(ee),q=this._updateDimensions(G);this._updatePosition(G,q),this._triggerResizeAction(j,q)},_updateDimensions:function(j){var ee=De=>"px"===De.substring(De.length-2),G="strict"===this.option("stepPrecision"),q=this._elementSize,Z=q.width+j.x,X=q.height+j.y,M=this.$element().get(0).style,se=j.x||G||ee(M.width),ge=j.y||G||ee(M.height);return se&&this.option({width:Z}),ge&&this.option({height:X}),{width:se?Z:q.width,height:ge?X:q.height}},_triggerResizeAction:function(j,ee){var{width:G,height:q}=ee;this._resizeAction({event:j,width:this.option("width")||G,height:this.option("height")||q,handles:this._movingSides}),(0,E.U_)(this.$element())},_isCornerHandler:j=>0===Object.values(j).reduce((ee,G)=>ee^G,0),_getOffset:function(j){var ee=j.offset,G=this._movingSides;return!G.left&&!G.right&&(ee.x=0),!G.top&&!G.bottom&&(ee.y=0),ee},_roundByStep:function(j){return"strict"===this.option("stepPrecision")?this._roundStrict(j):this._roundNotStrict(j)},_getSteps:function(){return(0,p.TG)(this.option("step"),!this.option("roundStepValue"))},_roundNotStrict:function(j){var ee=this._getSteps();return{x:j.x-j.x%ee.h,y:j.y-j.y%ee.v}},_roundStrict:function(j){var ee=this._movingSides,G={x:j.x*(ee.left?-1:1),y:j.y*(ee.top?-1:1)},q=this._getSteps(),Z=this._elementLocation,X=this._elementSize,ge=((ee.left?Z.left:Z.left+X.width)+G.x)%q.h,De=((ee.top?Z.top:Z.top+X.height)+G.y)%q.v,Fe=Math.sign||(le=>0==(le=+le)||isNaN(le)?le:le>0?1:-1),Ae=(le,pe)=>(1+.2*Fe(pe))%1*le,ne=(le,pe)=>Math.abs(le)<.2*pe,fe=G.x-ge,_e=G.y-De;ge>Ae(q.h,G.x)&&(fe+=q.h),De>Ae(q.v,G.y)&&(_e+=q.v);var ie=!ee.left&&!ee.right||ne(G.x,q.h)?0:fe,de=!ee.top&&!ee.bottom||ne(G.y,q.v)?0:_e;return{x:ie*(ee.left?-1:1),y:de*(ee.top?-1:1)}},_getMovingSides:function(j){var ee=(0,a.Z)(j.target),G=ee.hasClass(W+"-top-left"),q=ee.hasClass(W+"-top-right"),Z=ee.hasClass(W+"-bottom-left"),X=ee.hasClass(W+"-bottom-right");return{top:ee.hasClass("dx-resizable-handle-top")||G||q,left:ee.hasClass("dx-resizable-handle-left")||G||Z,bottom:ee.hasClass("dx-resizable-handle-bottom")||Z||X,right:ee.hasClass("dx-resizable-handle-right")||q||X}},_getArea:function(){var j=this.option("area");return(0,h.mf)(j)&&(j=j.call(this)),(0,h.PO)(j)?this._getAreaFromObject(j):this._getAreaFromElement(j)},_getAreaScrollOffset:function(){var j=this.option("area"),G={scrollY:0,scrollX:0};if(!(0,h.mf)(j)&&!(0,h.PO)(j)){var q=(0,a.Z)(j)[0];(0,h.FJ)(q)&&(G.scrollX=q.pageXOffset,G.scrollY=q.pageYOffset)}return G},_getAreaFromObject:function(j){var ee={width:j.right-j.left,height:j.bottom-j.top,offset:{left:j.left,top:j.top}};return this._correctAreaGeometry(ee),ee},_getAreaFromElement:function(j){var G,ee=(0,a.Z)(j);return ee.length&&(G={width:(0,c.Xt)(ee),height:(0,c.fA)(ee),offset:(0,s.l)({top:0,left:0},(0,h.FJ)(ee[0])?{}:ee.offset())},this._correctAreaGeometry(G,ee)),G},_correctAreaGeometry:function(j,ee){var G=ee?this._getBorderWidth(ee,"left"):0,q=ee?this._getBorderWidth(ee,"top"):0;j.offset.left+=G+this._getBorderWidth(this.$element(),"left"),j.offset.top+=q+this._getBorderWidth(this.$element(),"top"),j.width-=(0,c.Y_)(this.$element())-(0,c.Xt)(this.$element()),j.height-=(0,c.zp)(this.$element())-(0,c.fA)(this.$element())},_dragEndHandler:function(j){var ee=this.$element();this._resizeEndAction({event:j,width:(0,c.Y_)(ee),height:(0,c.zp)(ee),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(j){this.option("width",(0,d.n$)(j,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(j){this.option("height",(0,d.n$)(j,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(j){switch(j.name){case"disabled":this._toggleEventHandlers(!j.value),this.callBase(j);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":(0,g.Ym)()&&this._renderWidth((0,c.Y_)(this.$element()));break;case"minHeight":case"maxHeight":(0,g.Ym)()&&this._renderHeight((0,c.zp)(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(j)}},_clean:function(){this.$element().find("."+T).remove()},_useTemplates:function(){return!1}});(0,C.Z)(S,Y);const J=Y},7374:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>O});var o=l(1805),c=l(9904),I=l(7674),C=l(1828),f=l(8159),a=l(4514),p=l(2718),s=l(5873),u=l(8506),d=l(6026),h=l(7307),g="dx-responsivebox",x=g+"-screen-",y="dxBoxItemData",S=h.Z.inherit({_getDefaultOptions:function(){return(0,s.l)(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",a.$n),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return"dx-box-item"},_itemDataKey:function(){return y},_initMarkup:function(){this.callBase(),this.$element().addClass(g)},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged:function(w){var T=this._findItemElementByItem(w);T.length&&(this._refreshItem(T,w),this._clearItemNodeTemplates(),this._update(!0))},_setScreenSize:function(){var w=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(x+w),this.option("currentScreenFactor",w)},_removeScreenSizeClass:function(){var w=this.option("currentScreenFactor");w&&this.$element().removeClass(x+w)},_prepareGrid:function(){var w=this._grid=[];this._prepareRowsAndCols(),(0,p.S6)(this._rows,function(){var T=[];w.push(T),(0,p.S6)(this._cols,function(){T.push(this._createEmptyCell())}.bind(this))}.bind(this))},getSingleColumnRows:function(){var w=this.option("rows"),T=this._screenItems.length;if(w.length){for(var k=this._filterByScreen(w),R=[],P=0;P<T;P++){var B=this._defaultSizeConfig();P<k.length&&(0,C.$K)(k[P].shrink)&&(B.shrink=k[P].shrink),R.push(B)}return R}return this._defaultSizeConfig(T)},_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(w,T){return w.location.row-T.location.row||w.location.col-T.location.col}),(0,p.S6)(this._screenItems,function(w,T){(0,s.l)(T.location,{row:w,col:0,rowspan:1,colspan:1})})},_sizesByScreen:function(w){return(0,p.UI)(this._filterByScreen(w),function(T){return(0,s.l)(this._defaultSizeConfig(),T)}.bind(this))},_createDefaultSizeConfig:function(){return{ratio:1,baseSize:0,minSize:0,maxSize:0}},_defaultSizeConfig:function(w){var T=this._createDefaultSizeConfig();if(!arguments.length)return T;for(var k=[],R=0;R<w;R++)k.push(T);return k},_filterByScreen:function(w){var T=this._screenRegExp();return(0,I.h3)(w,function(k){return!k.screen||T.test(k.screen)})},_screenRegExp:function(){var w=this._getCurrentScreen();return new RegExp("(^|\\s)"+w+"($|\\s)","i")},_getCurrentScreen:function(){var w=this._screenWidth();return this.option("screenByWidth")(w)},_screenWidth:function(){return(0,a.Ym)()?(0,o.dz)((0,a.Jj)()):1920},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){(0,p.S6)(this._screenItems,function(w,T){var k=T.location||{},B=this._grid[k.row];this._occupyCells(B&&B[k.col],T)}.bind(this))},_itemsByScreen:function(){return this.option("items").reduce((w,T)=>{var k=T.location||{};return k=(0,C.PO)(k)?[k]:k,this._filterByScreen(k).forEach(R=>{w.push({item:T,location:(0,s.l)({rowspan:1,colspan:1},R)})}),w},[])},_occupyCells:function(w,T){!w||this._isItemCellOccupied(w,T)||((0,s.l)(w,T),this._markSpanningCell(w))},_isItemCellOccupied:function(w,T){if(!(0,C.Qr)(w.item))return!0;var k=!1;return this._loopOverSpanning(T.location,function(R){k=k||!(0,C.Qr)(R.item)}),k},_loopOverSpanning:function(w,T){var k=w.row+w.rowspan-1,R=w.col+w.colspan-1,P=Math.min(k,this._rows.length-1),B=Math.min(R,this._cols.length-1);w.rowspan-=k-P,w.colspan-=R-B;for(var W=w.row;W<=P;W++)for(var N=w.col;N<=B;N++)(W!==w.row||N!==w.col)&&T(this._grid[W][N])},_markSpanningCell:function(w){this._loopOverSpanning(w.location,function(T){(0,s.l)(T,{item:w.item,spanningCell:w})})},_linkNodeToItem:function(){(0,p.S6)(this._itemElements(),function(w,T){var k=(0,c.Z)(T),R=k.data(y);R.box||(R.node=k.children())})},_layoutItems:function(){var w=this._grid.length,T=w&&this._grid[0].length;if(w||T){var k=this._layoutBlock({direction:"col",row:{start:0,end:w-1},col:{start:0,end:T-1}}),R=this._prepareBoxConfig(k.box||{direction:"row",items:[(0,s.l)(k,{ratio:1})]});(0,s.l)(R,this._rootBoxConfig(R.items)),this._$root=(0,c.Z)("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,d.Z,R)}},_rootBoxConfig:function(w){return{width:"100%",height:"100%",items:(0,p.S6)(w,function(k,R){this._needApplyAutoBaseSize(R)&&(0,s.l)(R,{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(w){return!(w.baseSize||w.minSize&&"auto"!==w.minSize||w.maxSize&&"auto"!==w.maxSize)},_prepareBoxConfig:function(w){return(0,s.l)(w||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(w){return this._isSingleItem(w)?this._itemByCell(w.row.start,w.col.start):this._layoutDirection(w)},_isSingleItem:function(w){var T=this._grid[w.row.start][w.col.start].location;return w.row.end-w.row.start==T.rowspan-1&&w.col.end-w.col.start==T.colspan-1},_itemByCell:function(w,T){var k=this._grid[w][T];return k.spanningCell?null:k.item},_layoutDirection:function(w){for(var P,T=[],k=w.direction,R=this._crossDirection(k);P=this._nextBlock(w);){if(this._isBlockIndivisible(w.prevBlockOptions,P))throw f.Z.Error("E1025");var B=this._layoutBlock({direction:R,row:P.row,col:P.col,prevBlockOptions:w});B&&((0,s.l)(B,this._blockSize(P,R)),T.push(B)),w[R].start=P[R].end+1}return{box:this._prepareBoxConfig({direction:k,items:T})}},_isBlockIndivisible:function(w,T){return w&&w.col.start===T.col.start&&w.col.end===T.col.end&&w.row.start===T.row.start&&w.row.end===T.row.end},_crossDirection:function(w){return"col"===w?"row":"col"},_nextBlock:function(w){var T=w.direction,k=this._crossDirection(T),R=w[T].start,P=w[T].end,B=w[k].start;if(B>w[k].end)return null;for(var W=1,N=B;N<B+W;N++){for(var V=1,U=R;U<=P;U++){var K=this._cellByDirection(T,U,N);V=Math.max(V,K.location[k+"span"])}var Y=N+V,J=B+W;Y>J&&(W+=Y-J)}var j={};return j[T]={start:R,end:P},j[k]={start:B,end:B+W-1},j},_cellByDirection:function(w,T,k){return"col"===w?this._grid[k][T]:this._grid[T][k]},_blockSize:function(w,T){for(var k="row"===T?"auto":0,R="row"===T?this._rows:this._cols,P=(0,s.l)(this._createDefaultSizeConfig(),{ratio:0}),B=w[T].start;B<=w[T].end;B++){var W=R[B];P.ratio+=W.ratio,P.baseSize+=W.baseSize,P.minSize+=W.minSize,P.maxSize+=W.maxSize,(0,C.$K)(W.shrink)&&(P.shrink=W.shrink)}return P.minSize=P.minSize?P.minSize:k,P.maxSize=P.maxSize?P.maxSize:"auto",this._isSingleColumnScreen()&&(P.baseSize="auto"),P},_update:function(w){var T=this._$root;this._renderItems(),T&&(w?T.remove():(T.detach(),this._saveAssistantRoot(T))),this._layoutChangedAction()},_saveAssistantRoot:function(w){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(w)},_dispose:function(){this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&(0,p.S6)(this._assistantRoots,function(w,T){(0,c.Z)(T).remove()})},_clearItemNodeTemplates:function(){(0,p.S6)(this.option("items"),function(){delete this.node})},_attachClickEvent:I.ZT,_optionChanged:function(w){switch(w.name){case"rows":case"cols":case"screenByWidth":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(w),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(w);break;case"currentScreenFactor":break;default:this.callBase(w)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});(0,u.Z)("dxResponsiveBox",S);const O=S},3862:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>fn});var o=l(9904),c=l(2941),I=l(4514),C=l(9009),f=l(8506),a=l(6881),p=l(5873),s=l(7674),u=l(5365),d=l(6961),h=l(3418),g=l(1427),x=l(2718),b=l(4270),y="dx-scrollview-pull-down-loading",E="dx-scrollview-pull-down-ready";const V=h.Z.inherit({_init:function(ct){this.callBase(ct),this._$topPocket=ct._$topPocket,this._$pullDown=ct._$pullDown,this._$refreshingText=ct._$refreshingText,this._$scrollViewContent=(0,o.Z)(ct.content()),this._$container=(0,o.Z)(ct.container()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,u.Z)(),this.releaseCallbacks=(0,u.Z)(),this.reachBottomCallbacks=(0,u.Z)()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var ct=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-image"),He=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-indicator"),Dt=new g.Z((0,o.Z)("<div>")).$element(),qe=this._$pullDownText=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=(0,o.Z)("<div>").text(this.option("pullingDownText")).appendTo(qe),this._$pulledDownText=(0,o.Z)("<div>").text(this.option("pulledDownText")).appendTo(qe),this._$refreshingText=(0,o.Z)("<div>").text(this.option("refreshingText")).appendTo(qe),this._$pullDown.empty().append(ct).append(He.append(Dt)).append(qe)},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var ct=this;(0,x.S6)([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],function(Dt,qe){qe.element[ct._state===qe.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 ct=this._$scrollViewContent.get(0),He=this._$container.get(0);this._bottomBoundary=Math.max(ct.clientHeight-He.clientHeight,0)},_allowedDirections:function(){var ct=this.callBase();return ct.vertical=ct.vertical||this._pullDownEnabled,ct},_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(ct){(0,d.pB)(this._$topPocket,{top:ct}),(0,d.pB)(this._$scrollViewContent,{top:ct})},handleScroll:function(ct){if(this.callBase(ct),2!==this._state){var He=this.location().top,Dt=(this._location||0)-He;this._location=He,this._isPullDown()?this._pullDownReady():Dt>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(E),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(y).removeClass(E),this._releaseState())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(y).removeClass(E),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(ct){ct&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=ct},reachBottomEnable:function(ct){this._reachBottomEnabled=ct},pendingRelease:function(){this._state=1},release:function(){var ct=new b.BH;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(),ct.resolve()}.bind(this),400),ct.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});var U=l(1805),K=l(8225),Y="dx-scrollview-pull-down-loading";const ge=h.Z.inherit({_init:function(ct){this.callBase(ct),this._$topPocket=ct._$topPocket,this._$pullDown=ct._$pullDown,this._$scrollViewContent=(0,o.Z)(ct.content()),this._$container=(0,o.Z)(ct.container()),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=(0,u.Z)(),this.releaseCallbacks=(0,u.Z)(),this.reachBottomCallbacks=(0,u.Z)()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var ct=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-indicator"),He=new g.Z((0,o.Z)("<div>")).$element();this._$icon=(0,o.Z)("<div>").addClass("dx-icon-pulldown"),this._$pullDown.empty().append(this._$icon).append(ct.append(He))},_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 ct=this._$scrollViewContent.get(0),He=this._$container.get(0);this._bottomBoundary=Math.max(ct.clientHeight-He.clientHeight,0)},_allowedDirections:function(){var ct=this.callBase();return ct.vertical=ct.vertical||this._pullDownEnabled,ct},handleInit:function(ct){this.callBase(ct),0===this._state&&0===this._location&&(this._startClientY=(0,K.a0)(ct.originalEvent).y,this._state=4)},handleMove:function(ct){this.callBase(ct),this._deltaY=(0,K.a0)(ct.originalEvent).y-this._startClientY,4===this._state&&(this._pullDownEnabled&&this._deltaY>0?this._state=5:this._complete()),5===this._state&&(ct.preventDefault(),this._movePullDown())},_movePullDown:function(){var ct=this._getPullDownHeight(),He=Math.min(3*ct,this._deltaY+this._getPullDownStartPosition()),Dt=180*He/ct/3;this._$pullDown.css({opacity:1}).toggleClass("dx-scrollview-pull-down-refreshing",He<ct),(0,d.pB)(this._$pullDown,{top:He}),this._$icon.css({transform:"rotate("+Dt+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&5===this._state&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*(0,U.zp)(this._$element))},_getPullDownStartPosition:function(){return-Math.round(1.5*(0,U.zp)(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(ct){if(this.callBase(ct),2!==this._state){var He=this.location().top,Dt=this._location-He;this._location=He,Dt>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(Y),this._releaseState())},_pullDownRefreshing:function(){this._state=2,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(Y),(0,d.pB)(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(ct){this._$topPocket.toggle(ct),this._pullDownEnabled=ct},reachBottomEnable:function(ct){this._reachBottomEnabled=ct},pendingRelease:function(){this._state=1},release:function(){var ct=new b.BH;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),ct.resolve()}.bind(this),800),ct.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});var De=l(1140),Fe=Math,Ae="dx-scrollview-pull-down-loading",ne="dx-scrollview-pull-down-ready",te=De.T.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 ct=this;(0,x.S6)([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],function(Dt,qe){qe.element[ct._state===qe.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")})},_initCallbacks:function(){this.pullDownCallbacks=(0,u.Z)(),this.releaseCallbacks=(0,u.Z)(),this.reachBottomCallbacks=(0,u.Z)()},_updateBounds:function(){if("horizontal"!==this._direction){this._topPocketSize=this._$topPocket.get(0).clientHeight,this._bottomPocketSize=this._$bottomPocket.get(0).clientHeight;var He=this._$container.get(0),Dt=this._$content.get(0);this._bottomBoundary=Math.max(Dt.clientHeight-this._bottomPocketSize-He.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 ct=this._$container.get(0);return this._reachBottomEnabled&&Math.round(this._bottomBoundary-Math.ceil(ct.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 Fe.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){1!==this._state&&(this._state=1,this._maxOffset=0,this._$pullDown.addClass(ne),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(Ae).removeClass(ne),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(Ae).removeClass(ne),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return 0===this._state&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=(0,s.Wi)(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(ct){this._reachBottomEnabled!==ct&&(this._reachBottomEnabled=ct,this._updateBounds())},_pullDownEnablingHandler:function(ct){this._pullDownEnabled!==ct&&(this._pullDownEnabled=ct,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=(0,U.Cr)(this._$topPocket)||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=1},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}});const oe=De.L.inherit({_init:function(ct){this.callBase(ct),this._$pullDown=ct._$pullDown,this._$topPocket=ct._$topPocket,this._$bottomPocket=ct._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,u.Z)(),this.releaseCallbacks=(0,u.Z)(),this.reachBottomCallbacks=(0,u.Z)()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var ct=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-image"),He=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-indicator"),Dt=new g.Z((0,o.Z)("<div>")).$element(),qe=this._$pullDownText=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=(0,o.Z)("<div>").text(this.option("pullingDownText")).appendTo(qe),this._$pulledDownText=(0,o.Z)("<div>").text(this.option("pulledDownText")).appendTo(qe),this._$refreshingText=(0,o.Z)("<div>").text(this.option("refreshingText")).appendTo(qe),this._$pullDown.empty().append(ct).append(He.append(Dt)).append(qe)},pullDownEnable:function(ct){this._eventHandler("pullDownEnabling",ct)},reachBottomEnable:function(ct){this._eventHandler("reachBottomEnabling",ct)},_createScroller:function(ct){var He=this,Dt=He._scrollers[ct]=new te(He._scrollerOptions(ct));Dt.pullDownCallbacks.add(function(){He.pullDownCallbacks.fire()}),Dt.releaseCallbacks.add(function(){He.releaseCallbacks.fire()}),Dt.reachBottomCallbacks.add(function(){He.reachBottomCallbacks.fire()})},_scrollerOptions:function(ct){return(0,p.l)(this.callBase(ct),{$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 ct=this.callBase();return ct.top+=(0,U.Cr)(this._$topPocket),ct},dispose:function(){(0,x.S6)(this._scrollers,function(){this.dispose()}),this.callBase()}});var ye=l(8487),Pe=l(2722),Ne=l(4265),ft="dx-scrollview",tt=ft+"-content",Be=ft+"-top-pocket",mt=ft+"-bottom-pocket",nn=ft+"-pull-down",ke=ft+"-scrollbottom",$e=ke+"-indicator",me=ke+"-text",xe=ft+"-loadpanel",Te={pullDown:V,swipeDown:ge,simulated:oe},Ye=!(0,I.Ym)(),Ct=ye.Z.inherit(Ye?{finishLoading:s.ZT,release:s.ZT,refresh:s.ZT,scrollOffset:()=>({top:0,left:0}),_optionChanged:function(ct){if("onUpdated"!==ct.name)return this.callBase.apply(this,arguments)}}:{_getDefaultOptions:function(){return(0,p.l)(this.callBase(),{pullingDownText:C.Z.format("dxScrollView-pullingDownText"),pulledDownText:C.Z.format("dxScrollView-pulledDownText"),refreshingText:C.Z.format("dxScrollView-refreshingText"),reachBottomText:C.Z.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"android"===c.Z.real().platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return(0,Pe.x2)()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass(ft),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var ct=(0,o.Z)("<div>").addClass(tt);this._$content.wrapInner(ct)},_initTopPocket:function(){var ct=this._$topPocket=(0,o.Z)("<div>").addClass(Be),He=this._$pullDown=(0,o.Z)("<div>").addClass(nn);ct.append(He),this._$content.prepend(ct)},_initBottomPocket:function(){var ct=this._$bottomPocket=(0,o.Z)("<div>").addClass(mt),He=this._$reachBottom=(0,o.Z)("<div>").addClass(ke),Dt=(0,o.Z)("<div>").addClass($e),qe=new g.Z((0,o.Z)("<div>")).$element(),Ht=this._$reachBottomText=(0,o.Z)("<div>").addClass(me);this._updateReachBottomText(),He.append(Dt.append(qe)).append(Ht),ct.append(He),this._$content.append(ct)},_initLoadPanel:function(){var ct=(0,o.Z)("<div>").addClass(xe).appendTo(this.$element()),He={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(ct,Ne.Z,He)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var ct=this.option("useNative")?this.option("refreshStrategy"):"simulated";this._strategy=new(0,Te[ct])(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(ct){var He=this.callBase.apply(this,arguments);return("pullDown"===ct||"reachBottom"===ct)&&this._tryRefreshPocketState(),He},_pullDownEnable:function(ct){if(0===arguments.length)return this._pullDownEnabled;this._$pullDown&&this._strategy&&(this._$pullDown.toggle(ct),this._strategy.pullDownEnable(ct),this._pullDownEnabled=ct)},_reachBottomEnable:function(ct){if(0===arguments.length)return this._reachBottomEnabled;this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(ct),this._strategy.reachBottomEnable(ct),this._reachBottomEnabled=ct)},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(ct){if(arguments.length<1)return this._loadingIndicatorEnabled;this._loadingIndicatorEnabled=ct},_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(ct){switch(ct.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(ct)}},content:function(){return(0,a.u)(this._$content.children().eq(1))},release:function(ct){return void 0!==ct&&this.toggleLoading(!ct),this._strategy.release()},toggleLoading:function(ct){this._reachBottomEnable(ct)},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()}});(0,f.Z)("dxScrollView",Ct);const fn=Ct},6496:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>a});var o=l(7674),c=l(5031),I=l(1536);const a=c.Z.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,(0,I.W)(this._stepAnimationFrame)},_stepCore:function(){if(!this._isStopped())return this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=(0,I.U)(this._proxiedStepCore)));this._stop()},_step:c.Z.abstract,_isFinished:o.ZT,_stop:o.ZT,_complete:o.ZT,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}})},5373:(kn,he,l)=>{"use strict";l.d(he,{i:()=>I});var o=l(2941),c=l(4505),I=function(){return[{device:function(){return!c.nativeScrolling},options:{useNative:!1}},{device:function(C){return!o.Z.isSimulator()&&"desktop"===o.Z.real().deviceType&&"generic"===C.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:c.touch,showScrollbar:"onHover"}}]}},8487:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>c});const c=l(7293).Z},3418:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>O});var o=l(1805),c=l(9904),I=l(913),C=l(8225),f=l(7674),a=l(2718),p=l(2941),s=l(5031),u=l(2623),d="dxNativeScrollable",h="dx-scrollable-native",b="vertical",y="horizontal";const O=s.Z.inherit({ctor:function(w){this._init(w)},_init:function(w){this._component=w,this._$element=w.$element(),this._$container=(0,c.Z)(w.container()),this._$content=w.$content(),this._direction=w.option("direction"),this._useSimulatedScrollbar=w.option("useSimulatedScrollbar"),this.option=w.option.bind(w),this._createActionByOption=w._createActionByOption.bind(w),this._isLocked=w._isLocked.bind(w),this._isDirection=w._isDirection.bind(w),this._allowedDirection=w._allowedDirection.bind(w),this._getMaxOffset=w._getMaxOffset.bind(w),this._isRtlNativeStrategy=w._isRtlNativeStrategy.bind(w)},render:function(){var T=p.Z.real().platform;this._$element.addClass(h).addClass(h+"-"+T).toggleClass("dx-scrollable-scrollbars-hidden",!this._isScrollbarVisible()),this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateRtlPosition:function(w){w&&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(b),this._renderScrollbar(y)},_renderScrollbar:function(w){this._isDirection(w)&&(this._scrollbars[w]=new u.Z((0,c.Z)("<div>").appendTo(this._$element),{direction:w,expandable:this._component.option("scrollByThumb")}))},handleInit:f.ZT,handleStart:f.ZT,handleMove:function(w){this._isLocked()?w.cancel=!0:this._allowedDirection()&&(w.originalEvent.isScrollingEvent=!0)},handleEnd:f.ZT,handleCancel:f.ZT,handleStop:f.ZT,_eachScrollbar:function(w){w=w.bind(this),(0,a.S6)(this._scrollbars||{},function(T,k){w(k,T)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var{left:w,top:T}=this.location();return{event:this._eventForUserAction,scrollOffset:this._getScrollOffset(),reachedLeft:this._isRtlNativeStrategy()?this._isReachedRight(-w):this._isReachedLeft(w),reachedRight:this._isRtlNativeStrategy()?this._isReachedLeft(-Math.abs(w)):this._isReachedRight(w),reachedTop:this._isDirection(b)?Math.round(T)>=0:void 0,reachedBottom:this._isDirection(b)?Math.round(Math.abs(T)-this._getMaxOffset().top)>=0:void 0}},_getScrollOffset:function(){var{top:w,left:T}=this.location();return{top:-w,left:this._normalizeOffsetLeft(-T)}},_normalizeOffsetLeft(w){return this._isRtlNativeStrategy()?this._getMaxOffset().left+w:w},_isReachedLeft:function(w){return this._isDirection(y)?Math.round(w)>=0:void 0},_isReachedRight:function(w){return this._isDirection(y)?Math.round(Math.abs(w)-this._getMaxOffset().left)>=0:void 0},_isScrollbarVisible:function(){var{showScrollbar:w}=this.option();return"never"!==w&&!1!==w},handleScroll:function(w){this._eventForUserAction=w,this._moveScrollbars(),this._scrollAction(this._createActionArgs())},_moveScrollbars:function(){var{top:w,left:T}=this._getScrollOffset();this._eachScrollbar(function(k){k.moveTo({top:-w,left:-T}),k.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar(function(w){w.option("visible",!1)})}.bind(this),500)},location:function(){return{left:-this._$container.scrollLeft(),top:-this._$container.scrollTop()}},disabledChanged:f.ZT,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:(0,o.Cr)(this._$container),width:(0,o.dz)(this._$container)},this._componentContentSize={height:(0,o.Cr)(this._component.$content()),width:(0,o.dz)(this._component.$content())},this._contentSize={height:(0,o.Cr)(this._$content),width:(0,o.dz)(this._$content)}},_updateScrollbars:function(){this._eachScrollbar(function(w,T){var k=T===b?"height":"width";w.option({containerSize:this._containerSize[k],contentSize:this._componentContentSize[k]}),w.update()})},_allowedDirections:function(){return{vertical:this._isDirection(b)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(y)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var w=this._$element.get(0).className,T=new RegExp(h+"\\S*","g");T.test(w)&&this._$element.removeClass(w.match(T).join(" ")),I.Z.off(this._$element,"."+d),I.Z.off(this._$container,"."+d),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(w){w.$element().remove()})},scrollBy:function(w){var T=this.location();this._$container.scrollTop(Math.round(-T.top-w.top)),this._$container.scrollLeft(Math.round(-T.left-w.left))},validate:function(w){return!(this.option("disabled")||(0,C.pR)(w)&&this._isScrolledInMaxDirection(w)||!this._allowedDirection())},_isScrolledInMaxDirection(w){var T=this._$container.get(0);return w.delta>0?w.shiftKey?!T.scrollLeft:!T.scrollTop:w.shiftKey?T.scrollLeft>=this._getMaxOffset().left:T.scrollTop>=this._getMaxOffset().top},getDirection:function(){return this._allowedDirection()}})},7293:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>Z});var o=l(1805),c=l(9904),I=l(913),C=l(4505),f=l(4722),a=l(7674),p=l(1828),s=l(5873),u=l(6881),d=l(4514),h=l(2941),g=l(8506),x=l(8893),b=l(8225),y=l(7772),E=l(1140),S=l(3418),O=l(5373),w=l(4270),T=l(4817),k=l(7981),R=l(7616),P=l(3433),W="dxScrollable",V="dx-scrollable",J="dx-scrollable-content",j="vertical",ee="horizontal",G="both",q=x.Z.inherit({_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{disabled:!1,onScroll:null,direction:j,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((0,O.i)(),[{device:function(){return C.nativeScrolling&&"android"===h.Z.real().platform&&!f.Z.mozilla},options:{useSimulatedScrollbar:!0}}])},_initOptions:function(X){this.callBase(X),"useSimulatedScrollbar"in X||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(X){X?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var X=this.$element().addClass(V),M=this._$container=(0,c.Z)("<div>").addClass("dx-scrollable-container"),se=this._$wrapper=(0,c.Z)("<div>").addClass("dx-scrollable-wrapper");(this._$content=(0,c.Z)("<div>").addClass(J)).append(X.contents()).appendTo(M),M.appendTo(se),se.appendTo(X)},_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(X){this._strategy.updateRtlPosition(X)},_getMaxOffset:function(){var{scrollWidth:X,clientWidth:M,scrollHeight:se,clientHeight:ge}=(0,c.Z)(this.container()).get(0);return{left:X-M,top:se-ge}},_attachEventHandlers:function(){var X=this._strategy,M={getDirection:X.getDirection.bind(X),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};I.Z.off(this._$wrapper,"."+W),I.Z.on(this._$wrapper,(0,b.V4)(y.Z.init,W),M,this._initHandler.bind(this)),I.Z.on(this._$wrapper,(0,b.V4)(y.Z.start,W),X.handleStart.bind(X)),I.Z.on(this._$wrapper,(0,b.V4)(y.Z.move,W),X.handleMove.bind(X)),I.Z.on(this._$wrapper,(0,b.V4)(y.Z.end,W),X.handleEnd.bind(X)),I.Z.on(this._$wrapper,(0,b.V4)(y.Z.cancel,W),X.handleCancel.bind(X)),I.Z.on(this._$wrapper,(0,b.V4)(y.Z.stop,W),X.handleStop.bind(X)),I.Z.off(this._$container,"."+W),I.Z.on(this._$container,(0,b.V4)("scroll",W),X.handleScroll.bind(X))},_validate:function(X){return!this._isLocked()&&(this._updateIfNeed(),this._moveIsAllowed(X))},_moveIsAllowed(X){return this._strategy.validate(X)},handleMove(X){this._strategy.handleMove(X)},_prepareDirections(X){this._strategy._prepareDirections(X)},_initHandler:function(){var X=this._strategy;X.handleInit.apply(X,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-"+ee).removeClass("dx-scrollable-"+j).removeClass("dx-scrollable-"+G).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 S.Z(this):new E.L(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(X){switch(X.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(X),this._updateRtlPosition();break;default:this.callBase(X)}},_resetInactiveDirection:function(){var X=this._getInactiveProp();if(X&&(0,d.Ym)()){var M=this.scrollOffset();M[X]=0,this.scrollTo(M)}},_getInactiveProp:function(){var X=this.option("direction");return X===j?"left":X===ee?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(X){if((0,p.PO)(X)){var M=(0,a.IS)(X.left,X.x),se=(0,a.IS)(X.top,X.y);return{left:(0,p.$K)(M)?-M:void 0,top:(0,p.$K)(se)?-se:void 0}}var ge=this.option("direction");return{left:ge!==j?-X:void 0,top:ge!==ee?-X:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(X){var M=this.option("direction");return X===j?M!==ee:X===ee?M!==j:M===X},_updateAllowedDirection:function(){var X=this._strategy._allowedDirections();this._allowedDirectionValue=this._isDirection(G)&&X.vertical&&X.horizontal?G:this._isDirection(ee)&&X.horizontal?ee:this._isDirection(j)&&X.vertical?j:null},_allowedDirection:function(){return this._allowedDirectionValue},$content:function(){return this._$content},content:function(){return(0,u.u)(this._$content)},container:function(){return(0,u.u)(this._$container)},scrollOffset:function(){return this._strategy._getScrollOffset()},_isRtlNativeStrategy:function(){var{useNative:X,rtlEnabled:M}=this.option();return X&&M},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return(0,o.Cr)(this._$container)},scrollHeight:function(){return(0,o.zp)(this.$content())},clientWidth:function(){return(0,o.dz)(this._$container)},scrollWidth:function(){return(0,o.Y_)(this.$content())},update:function(){if(this._strategy)return(0,w.gx)(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(X){((X=this._normalizeLocation(X)).top||X.left)&&(this._updateIfNeed(),this._strategy.scrollBy(X))},scrollTo:function(X){X=this._normalizeLocation(X),this._updateIfNeed();var M=this._location();this.option("useNative")||(X=this._strategy._applyScaleRatio(X),M=this._strategy._applyScaleRatio(M)),this._isRtlNativeStrategy()&&(M.left=M.left-this._getMaxOffset().left);var se=this._normalizeLocation({left:M.left-(0,a.IS)(X.left,M.left),top:M.top-(0,a.IS)(X.top,M.top)});!se.top&&!se.left||this._strategy.scrollBy(se)},scrollToElement:function(X,M){var se=(0,c.Z)(X),ge=this.$content().find(X).length,De=se.parents("."+V).length-se.parents("."+J).length==0;if(ge&&De){var Fe={top:0,left:0},Ae=this.option("direction");Ae!==j&&(Fe.left=this.getScrollElementPosition(se,ee,M)),Ae!==ee&&(Fe.top=this.getScrollElementPosition(se,j,M)),this.scrollTo(Fe)}},getScrollElementPosition:function(X,M,se){var ge=this.scrollOffset();return function B(X,M,se,ge,De){var Fe=(0,T.Z)({top:0,left:0,right:0,bottom:0},De),Ae=M===P.Et,ne=Ae?"top":"left",fe=Ae?"bottom":"right",_e=Ae?"height":"width",ie=se["offset".concat((0,k.MI)(_e))],de=se["client".concat((0,k.MI)(_e))],le=se.getBoundingClientRect()[_e],pe=X.getBoundingClientRect()[_e],Ee=1;Math.abs(le-ie)>1&&(Ee=le/ie);var ae=(0,R.d)(P.hj,X)[ne]/Ee,te=ge[ne],re=te-ae+Fe[ne],oe=te-ae-pe/Ee+de-Fe[fe];return re<=0&&oe>=0?te:te-(Math.abs(re)>Math.abs(oe)?oe:re)}(X.get(0),M,(0,c.Z)(this.container()).get(0),ge,se)},_updateIfNeed:function(){this.option("updateManually")||this.update()},_useTemplates:function(){return!1},isRenovated:function(){return!!q.IS_RENOVATED_WIDGET}});(0,g.Z)(W,q);const Z=q},1140:(kn,he,l)=>{"use strict";l.d(he,{L:()=>Ae,T:()=>ge});var De,Fe,o=l(1805),c=l(9904),I=l(9897),C=l(913),f=l(7981),a=l(5873),p=l(4514),s=l(2718),u=l(1828),d=l(5450),h=l(6961),g=l(5031),x=l(6496),b=l(8225),y=l(7674),E=l(2623),S=l(4270),O="dxSimulatedScrollable",T=O+"Cursor",k=O+"Keyboard",R="dx-scrollable-simulated",W="vertical",N="horizontal",V=.92,Y=Math.round(1e3/60),Z=(1-Math.pow(V,400/Y))/(1-V),M=x.Z.inherit({ctor:function(ne){this.callBase(),this.scroller=ne},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()?V:.5},_complete:function(){this.scroller._scrollComplete()}}),se=M.inherit({VELOCITY_LIMIT:.2,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return V},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),ge=g.Z.inherit({ctor:function(ne){this._initOptions(ne),this._initAnimators(),this._initScrollbar()},_initOptions:function(ne){this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=ne.direction===N?"x":"y",this._prop=ne.direction===N?"left":"top",this._dimension=ne.direction===N?"width":"height",this._scrollProp=ne.direction===N?"scrollLeft":"scrollTop",(0,s.S6)(ne,(fe,_e)=>{this["_"+fe]=_e})},_initAnimators:function(){this._inertiaAnimator=new M(this),this._bounceAnimator=new se(this)},_initScrollbar:function(){this._scrollbar=new E.Z((0,c.Z)("<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(ne){return!0===ne?"onScroll":!1===ne?"never":ne},_scrollStep:function(ne){var fe=this._location;this._location+=ne,this._suppressBounce(),this._move(),!(Math.abs(fe-this._location)<1)&&C.Z.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(ne){return ne=void 0!==ne?ne:this._location,Math.max(Math.min(ne,this._maxOffset),this._minOffset)},_move:function(ne){this._location=void 0!==ne?ne*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var ne=this._location;this._$container[this._scrollProp](-ne/this._getScaleRatio()),this._moveContentByTranslator(ne)},_getScaleRatio:function(){if((0,p.Ym)()&&!this._scaleRatio){var ne=this._$element.get(0),fe=this._getRealDimension(ne,this._dimension),_e=this._getBaseDimension(ne,this._dimension);this._scaleRatio=Math.round(fe/_e*100)/100}return this._scaleRatio||1},_getRealDimension:function(ne,fe){return Math.round((0,d.l)(ne)[fe])},_getBaseDimension:function(ne,fe){return ne["offset"+(0,f.MI)(fe)]},_moveContentByTranslator:function(ne){var fe,_e=-this._maxScrollPropValue;if(this._translateOffset!==(fe=ne>0?ne:ne<=_e?ne-_e:ne%1)){var ie={};if(ie[this._prop]=fe,this._translateOffset=fe,0===fe)return void(0,h.Kx)(this._$content);(0,h.pB)(this._$content,ie)}},_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 ne=this._bounceLocation=this._boundLocation();this._velocity=(ne-this._location)/Z},_inBounds:function(ne){return this._boundLocation(ne=void 0!==ne?ne:this._location)===ne},_crossBoundOnNextStep:function(){var ne=this._location,fe=ne+this._velocity;return ne<this._minOffset&&fe>=this._minOffset||ne>this._maxOffset&&fe<=this._maxOffset},_initHandler:function(ne){this._stopScrolling(),this._prepareThumbScrolling(ne)},_stopScrolling:(0,y.Rg)(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling:function(ne){if(!(0,b.pR)(ne.originalEvent)){var fe=(0,c.Z)(ne.originalEvent.target),_e=this._isScrollbar(fe);_e&&this._moveToMouseLocation(ne),this._thumbScrolling=_e||this._isThumb(fe),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(fe),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(ne){return this._isThumb(ne)},_moveToMouseLocation:function(ne){var fe=ne["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],_e=this._location+fe/this._containerToContentRatio()-(0,o.Cr)(this._$container)/2;this._scrollStep(-Math.round(_e))},_startHandler:function(){this._showScrollbar()},_moveHandler:function(ne){this._crossThumbScrolling||(this._thumbScrolling&&(ne[this._axis]=-Math.round(ne[this._axis]/this._containerToContentRatio())),this._scrollBy(ne))},_scrollBy:function(ne){ne=ne[this._axis],this._inBounds()||(ne*=.5),this._scrollStep(ne)},_scrollByHandler:function(ne){this._scrollBy(ne),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(ne){return this._completeDeferred=new S.BH,this._velocity=ne[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(),(0,y.Su)(()=>{this._resetScaleRatio(),this._updateLocation(),this._updateBounds(),this._updateScrollbar(),(0,y.g0)(()=>{this._moveScrollbar(),this._scrollbar.update()})})},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=((0,h.jt)(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:(0,y.bN)(function(){var ne=this._containerSize(),fe=this._contentSize(),_e=this._getBaseDimension(this._$container.get(0),this._dimension),ie=this._getBaseDimension(this._$content.get(0),this._dimension);(0,y.g0)(()=>{this._scrollbar.option({containerSize:ne,contentSize:fe,baseContainerSize:_e,baseContentSize:ie,scaleRatio:this._getScaleRatio()})})}),_moveToBounds:(0,y.Rg)((0,y.bN)((0,y.Rg)(function(){var ne=this._boundLocation(),fe=ne!==this._location;this._location=ne,this._move(),fe&&this._scrollAction()}))),_createActionsHandler:function(ne){this._scrollAction=ne.scroll,this._bounceAction=ne.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 ne="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),fe=this._getRealDimension(this._$content.get(0),this._dimension);if(!ne){var _e=this._$content[0]["scroll"+(0,f.MI)(this._dimension)]*this._getScaleRatio();fe=Math.max(_e,fe)}return fe},_validateEvent:function(ne){var fe=(0,c.Z)(ne.originalEvent.target);return this._isThumb(fe)||this._isScrollbar(fe)},_isThumb:function(ne){return this._scrollByThumb&&this._scrollbar.isThumb(ne)},_isScrollbar:function(ne){return this._scrollByThumb&&ne&&ne.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:y.ZT}),Ae=g.Z.inherit({ctor:function(ne){this._init(ne)},_init:function(ne){this._component=ne,this._$element=ne.$element(),this._$container=(0,c.Z)(ne.container()),this._$wrapper=ne._$wrapper,this._$content=ne.$content(),this.option=ne.option.bind(ne),this._createActionByOption=ne._createActionByOption.bind(ne),this._isLocked=ne._isLocked.bind(ne),this._isDirection=ne._isDirection.bind(ne),this._allowedDirection=ne._allowedDirection.bind(ne),this._getMaxOffset=ne._getMaxOffset.bind(ne)},render:function(){this._$element.addClass(R),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(N)&&this._createScroller(N),this._isDirection(W)&&this._createScroller(W),this._$element.toggleClass("dx-scrollable-scrollbars-alwaysvisible","always"===this.option("showScrollbar"))},_createScroller:function(ne){this._scrollers[ne]=new ge(this._scrollerOptions(ne))},_scrollerOptions:function(ne){return{direction:ne,$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(ne){for(var fe in this._scrollers){var _e=this._getPropByDirection(fe);(0,u.$K)(ne[_e])&&(ne[_e]*=this._scrollers[fe]._getScaleRatio())}return ne},_isAnyThumbScrolling:function(ne){var fe=!1;return this._eventHandler("isThumbScrolling",ne).done(function(_e,ie){fe=_e||ie}),fe},handleInit:function(ne){this._suppressDirections(ne),this._eventForUserAction=ne,this._eventHandler("init",ne)},_suppressDirections:function(ne){(0,b.pR)(ne.originalEvent)?this._prepareDirections(!0):(this._prepareDirections(),this._eachScroller(function(fe,_e){var ie=(0,c.Z)(ne.originalEvent.target),de=fe._validateEvent(ne)||this.option("scrollByContent")&&this._isContent(ie);this._validDirections[_e]=de}))},_isContent:function(ne){return!!ne.closest(this._$element).length},_prepareDirections:function(ne){ne=ne||!1,this._validDirections={},this._validDirections[N]=ne,this._validDirections[W]=ne},_eachScroller:function(ne){ne=ne.bind(this),(0,s.S6)(this._scrollers,function(fe,_e){ne(_e,fe)})},handleStart:function(ne){this._eventForUserAction=ne,this._eventHandler("start").done(this._startAction)},_saveActive:function(){Fe=this},_resetActive:function(){Fe===this&&(Fe=null)},handleMove:function(ne){if(this._isLocked())return ne.cancel=!0,void this._resetActive();this._saveActive(),ne.preventDefault&&ne.preventDefault(),this._adjustDistance(ne,ne.delta),this._eventForUserAction=ne,this._eventHandler("move",ne.delta)},_adjustDistance:function(ne,fe){fe.x*=this._validDirections[N],fe.y*=this._validDirections[W];var _e=this._tryGetDevicePixelRatio();_e&&(0,b.pR)(ne.originalEvent)&&(fe.x=Math.round(fe.x/_e*100)/100,fe.y=Math.round(fe.y/_e*100)/100)},_tryGetDevicePixelRatio:function(){if((0,p.Ym)())return(0,p.Jj)().devicePixelRatio},handleEnd:function(ne){return this._resetActive(),this._refreshCursorState(ne.originalEvent&&ne.originalEvent.target),this._adjustDistance(ne,ne.velocity),this._eventForUserAction=ne,this._eventHandler("end",ne.velocity).done(this._endAction)},handleCancel:function(ne){return this._resetActive(),this._eventForUserAction=ne,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._updateRtlConfig(),this._scrollAction()},_attachKeyboardHandler:function(){C.Z.off(this._$element,".".concat(k)),!this.option("disabled")&&this.option("useKeyboard")&&C.Z.on(this._$element,(0,b.V4)("keydown",k),this._keyDownHandler.bind(this))},_keyDownHandler:function(ne){if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout(()=>{"tab"===(0,b.EV)(ne)&&this._eachScroller(_e=>{_e._updateHandler()})}),this._$container.is(I.Z.getActiveElement(this._$container.get(0)))){var fe=!0;switch((0,b.EV)(ne)){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:fe=!1}fe&&(ne.stopPropagation(),ne.preventDefault())}},_scrollByLine:function(ne){var fe=this._tryGetDevicePixelRatio(),_e=40;fe&&(_e=Math.abs(_e/fe*100)/100),this.scrollBy({top:(ne.y||0)*-_e,left:(ne.x||0)*-_e})},_scrollByPage:function(ne){var fe=this._wheelProp(),_e=this._dimensionByProp(fe),ie={};ie[fe]=ne*-("width"===_e?o.dz:o.Cr)(this._$container),this.scrollBy(ie)},_dimensionByProp:function(ne){return"left"===ne?"width":"height"},_getPropByDirection:function(ne){return ne===N?"left":"top"},_scrollToHome:function(){var fe={};fe[this._wheelProp()]=0,this._component.scrollTo(fe)},_scrollToEnd:function(){var ne=this._wheelProp(),_e={},ie="width"===this._dimensionByProp(ne)?o.dz:o.Cr;_e[ne]=ie(this._$content)-ie(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(ne){var fe=this._createActionByOption(ne);return()=>{fe((0,a.l)(this._createActionArgs(),arguments))}},_createActionArgs:function(){var{horizontal:ne,vertical:fe}=this._scrollers,_e=this._getScrollOffset();return this._scrollOffset={top:fe&&_e.top,left:ne&&_e.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:ne&&ne._reachedMax(),reachedRight:ne&&ne._reachedMin(),reachedTop:fe&&fe._reachedMax(),reachedBottom:fe&&fe._reachedMin()}},_getScrollOffset(){return{top:-this.location().top,left:-this.location().left}},_eventHandler:function(ne){var fe=[].slice.call(arguments).slice(1),_e=(0,s.UI)(this._scrollers,ie=>ie["_"+ne+"Handler"].apply(ie,fe));return S.gx.apply(c.Z,_e).promise()},location:function(){var ne=(0,h.jt)(this._$content);return ne.top-=this._$container.scrollTop(),ne.left-=this._$container.scrollLeft(),ne},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){C.Z.off(this._$element,".".concat(T)),!this.option("disabled")&&this._isHoverMode()&&(C.Z.on(this._$element,(0,b.V4)("mouseenter",T),this._cursorEnterHandler.bind(this)),C.Z.on(this._$element,(0,b.V4)("mouseleave",T),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(ne){(ne=ne||{}).originalEvent=ne.originalEvent||{},!Fe&&!ne.originalEvent._hoverHandled&&(De&&De._cursorLeaveHandler(),De=this,this._eventHandler("cursorEnter"),ne.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(ne){De!==this||Fe===De||(this._eventHandler("cursorLeave"),De=null,this._refreshCursorState(ne&&ne.relatedTarget))},_refreshCursorState:function(ne){if(this._isHoverMode()||ne&&!Fe){var _e=(0,c.Z)(ne).closest(".".concat(R,":not(.dx-state-disabled)")),ie=_e.length&&_e.data("dxScrollableStrategy");De&&De!==ie&&De._cursorLeaveHandler(),ie&&ie._cursorEnterHandler()}},update:function(){var ne=this._eventHandler("update").done(this._updateAction);return(0,S.gx)(ne,(0,y.Su)(()=>{var fe=this._allowedDirections();return(0,y.g0)(()=>{var _e=fe.vertical?"pan-x":"";_e=fe.horizontal?"pan-y":_e,this._$container.css("touchAction",_e=fe.vertical&&fe.horizontal?"none":_e)}),(0,S.gx)().promise()}))},_allowedDirections:function(){var ne=this.option("bounceEnabled"),fe=this._scrollers[W],_e=this._scrollers[N];return{vertical:fe&&(fe._minOffset<0||ne),horizontal:_e&&(_e._minOffset<0||ne)}},_updateBounds:function(){this._scrollers[N]&&this._scrollers[N]._updateBounds()},_isHorizontalAndRtlEnabled:function(){return this.option("rtlEnabled")&&this.option("direction")!==W},updateRtlPosition:function(ne){ne&&(this._rtlConfig={scrollRight:0,clientWidth:this._$container.get(0).clientWidth,windowPixelRatio:this._getWindowDevicePixelRatio()}),this._updateBounds(),this._isHorizontalAndRtlEnabled()&&(0,y.Su)(()=>{var fe=this._getMaxOffset().left-this._rtlConfig.scrollRight;fe<=0&&(fe=0,this._rtlConfig.scrollRight=this._getMaxOffset().left),(0,y.g0)(()=>{this._getScrollOffset().left!==fe&&(this._rtlConfig.skipUpdating=!0,this._component.scrollTo({left:fe}),this._rtlConfig.skipUpdating=!1)})})},_updateRtlConfig:function(){if(this._isHorizontalAndRtlEnabled()&&!this._rtlConfig.skipUpdating){var{clientWidth:ne,scrollLeft:fe}=this._$container.get(0),_e=this._getWindowDevicePixelRatio();this._rtlConfig.windowPixelRatio===_e&&this._rtlConfig.clientWidth===ne&&(this._rtlConfig.scrollRight=this._getMaxOffset().left-fe),this._rtlConfig.clientWidth=ne,this._rtlConfig.windowPixelRatio=_e}},_getWindowDevicePixelRatio:function(){return(0,p.Ym)()?(0,p.Jj)().devicePixelRatio:1},scrollBy:function(ne){var fe=this._scrollers[W],_e=this._scrollers[N];fe&&(ne.top=fe._boundLocation(ne.top+fe._location)-fe._location),_e&&(ne.left=_e._boundLocation(ne.left+_e._location)-_e._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:ne.left,y:ne.top}),this._endAction(),this._updateRtlConfig()},validate:function(ne){return!((0,b.pR)(ne)&&(0,b.j1)(ne)||this.option("disabled"))&&(!!this.option("bounceEnabled")||((0,b.pR)(ne)?this._validateWheel(ne):this._validateMove(ne)))},_validateWheel:function(ne){var fe=this._scrollers[this._wheelDirection(ne)],_e=fe._reachedMin(),ie=fe._reachedMax(),ae=(!_e||!ie)&&(!_e&&!ie||_e&&ne.delta>0||ie&&ne.delta<0);return(ae=ae||void 0!==this._validateWheelTimer)&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout(()=>{this._validateWheelTimer=void 0},500)),ae},_validateMove:function(ne){return!(!this.option("scrollByContent")&&!(0,c.Z)(ne.target).closest(".".concat("dx-scrollable-scrollbar")).length)&&this._allowedDirection()},getDirection:function(ne){return(0,b.pR)(ne)?this._wheelDirection(ne):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===N?"left":"top"},_wheelDirection:function(ne){switch(this.option("direction")){case N:return N;case W:return W;default:return ne&&ne.shiftKey?N:W}},dispose:function(){this._resetActive(),De===this&&(De=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(R),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){C.Z.off(this._$element,".".concat(T)),C.Z.off(this._$container,".".concat(k))}})},2623:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>P});var o=l(9904),c=l(9897),I=l(913),C=l(3068),f=l(6961),a=l(6853),p=l(8225),s=l(7674),u=l(1828),d=l(5873),h=l(8690),g="dxScrollbar",x="dx-scrollable-scrollbar",b="".concat(x,"-active"),O="horizontal",k=null,R=a.Z.inherit({_getDefaultOptions:function(){return(0,d.l)(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=(0,o.Z)("<div>").addClass("dx-scrollable-scroll"),(0,o.Z)("<div>").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass(x).append(this._$thumb)},isThumb:function(B){return!!this.$element().find(B).length},_isHoverMode:function(){var B=this.option("visibilityMode");return("onHover"===B||"always"===B)&&this.option("expandable")},_renderDirection:function(){var B=this.option("direction");this.$element().addClass("dx-scrollbar-"+B),this._dimension=B===O?"width":"height",this._prop=B===O?"left":"top"},_attachPointerDownHandler:function(){I.Z.on(this._$thumb,(0,p.V4)(h.Z.down,g),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(b),k=this},feedbackOff:function(){this.$element().removeClass(b),k=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(B){"onScroll"===this.option("visibilityMode")&&this._$thumb.css("opacity"),B=this._adjustVisibility(B),this.option().visible=B,this._$thumb.toggleClass("dx-state-invisible",!B)},_adjustVisibility:function(B){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case"onScroll":break;case"onHover":B=B||!!this._isHovered;break;case"never":B=!1;break;case"always":B=!0}return B},moveTo:function(B){if(!this._isHidden()){(0,u.PO)(B)&&(B=B[this._prop]||0);var W={};W[this._prop]=this._calculateScrollBarPosition(B),(0,f.pB)(this._$thumb,W)}},_calculateScrollBarPosition:function(B){return-B*this._thumbRatio},_update:function(){var B=Math.round(this.option("containerSize")),W=Math.round(this.option("contentSize")),N=Math.round(this.option("baseContainerSize")),V=Math.round(this.option("baseContentSize"));isNaN(N)&&(N=B,V=W),this._baseContainerToContentRatio=V?N/V:N,this._realContainerToContentRatio=W?B/W:B;var U=Math.round(Math.max(Math.round(B*this._realContainerToContentRatio),15));this._thumbRatio=(B-U)/(this.option("scaleRatio")*(W-B)),this.option(this._dimension,U/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(B){return(0,u.PO)(B)?B[this._dimension]||0:B},_clean:function(){this.callBase(),this===k&&(k=null),I.Z.off(this._$thumb,"."+g)},_optionChanged:function(B){if(!this._isHidden())switch(B.name){case"containerSize":case"contentSize":this.option()[B.name]=this._normalizeSize(B.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:(0,s.Rg)(function(){this._adjustVisibility()&&this.option("visible",!0)})});C.Z.add(function(){I.Z.subscribeGlobal(c.Z.getDocument(),(0,p.V4)(h.Z.up,g),function(){k&&k.feedbackOff()})});const P=R},5079:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>k});var o=l(9904),c=l(7674),I=l(1828),C=l(5873),f=l(2718),a=l(4270),p=l(6881),s=l(9644),u=l(9897),d=l(9009),h=l(8506),g=l(5287),b=(l(107),l(8225)),w="dx-selectbox-popup-wrapper",T=g.Z.inherit({_supportedKeys:function(){var R=this,P=this.callBase(),B=function(N){this._isEditable()?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(N.preventDefault(),this.reset()),this._savedTextRemoveEvent=N,this._preventSubstitution=!0},W=function(){R.option("searchEnabled")&&R._valueSubstituted()&&R._searchHandler()};return(0,C.l)({},P,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._resetCaretPosition(!0),P.tab&&P.tab.apply(this,arguments),this._cancelSearchIfNeed()},upArrow:function(N){if(P.upArrow&&P.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(N),!0},downArrow:function(N){if(P.downArrow&&P.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(N),!0},leftArrow:function(){W(),P.leftArrow&&P.leftArrow.apply(this,arguments)},rightArrow:function(){W(),P.rightArrow&&P.rightArrow.apply(this,arguments)},home:function(){W(),P.home&&P.home.apply(this,arguments)},end:function(){W(),P.end&&P.end.apply(this,arguments)},escape:function(){var N=P.escape&&P.escape.apply(this,arguments);return this._cancelEditing(),N??!0},enter:function(N){var V=this.option("opened"),U=this._input().val().trim(),K=U&&this._list&&!this._list.option("focusedElement");if(!U&&(0,I.$K)(this.option("value"))&&this.option("allowClearing"))this._saveValueChangeEvent(N),this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return N.preventDefault(),K&&(V&&this._toggleOpenState(),this._valueChangeEventHandler(N)),V;if(P.enter&&P.enter.apply(this,arguments))return V}},space:function(N){var V=this.option("opened"),U=this.option("searchEnabled"),K=this.option("acceptCustomValue");if(V&&!U&&!K)return N.preventDefault(),this._valueChangeEventHandler(N),!0},backspace:B,del:B})},_getDefaultOptions:function(){return(0,C.l)(this.callBase(),{placeholder:d.Z.format("Select"),fieldTemplate:null,customItemCreateEvent:"change",valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(R){(0,I.$K)(R.customItem)||(R.customItem=R.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()+" "+w},_setDeprecatedOptions(){this.callBase(),(0,C.l)(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 R;if(this._searchValue()){var{items:B,selectedItem:W}=this.option(),N=this._list._itemElements(),V=null!==(R=B?.indexOf(W))&&void 0!==R?R:-1,U=-1===V||this._isCustomItemSelected()?null:N.eq(V);this._focusListElement(U)}else this._focusListElement(null)},_renderFocusedElement:function(){if(this._list){if(!this._searchValue()||this.option("acceptCustomValue"))return void this._focusListElement(null);var B=this._list._itemElements().not(".dx-state-disabled").eq(0);this._focusListElement(B)}},_focusListElement:function(R){this._preventInputValueRender=!0,this._list.option("focusedElement",(0,p.u)(R)),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 a.BH).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 a.BH).resolve()},_setNextItem:function(R){var P=this._calcNextItem(R),B=this._valueGetter(P);this._setValue(B)},_setNextValue:function(R){(this._dataController.isLoaded()?(new a.BH).resolve():this._dataController.load()).done(function(){var B=this._getSelectedIndex(),W=this._dataController.pageSize(),N=this._dataController.isLastPage(),V=B===this._items().length-1;this._saveValueChangeEvent(R);var U="downArrow"===(0,b.EV)(R)?1:-1;W&&!N&&V&&U>0?(this._popup||this._createPopup(),this._dataController.isLoading()||this._list._loadNextPage().done(this._setNextItem.bind(this,U))):this._setNextItem(U)}.bind(this))},_setSelectedItem:function(R){var P=!this._isCustomValueAllowed()&&void 0===R;this.callBase(P?null:R),!P&&(!this._isEditable()||this._isCustomItemSelected())&&this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(R){return R=!(0,I.$K)(R)&&this._isCustomValueAllowed()?this.option("value"):R,this.callBase(R)},_listConfig:function(){var R=(0,C.l)(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&(0,C.l)(R,{showSelectionControls:!0,selectionByClick:!0}),R},_listFocusedItemChangeHandler:function(R){if(!this._preventInputValueRender){var P=R.component,B=(0,o.Z)(P.option("focusedElement")),W=P._getItemData(B);this._updateField(W)}},_updateField:function(R){if(!this._getTemplateByOption("fieldTemplate")||!this.option("fieldTemplate")){var B=this._displayGetter(R);return this.option("text",B),void this._renderDisplayText(B)}this._renderField()},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):c.ZT},_selectionChangeHandler:function(R){(0,f.S6)(R.addedItems||[],function(P,B){this._setValue(this._valueGetter(B))}.bind(this))},_getActualSearchValue:function(){return this._dataController.searchValue()},_toggleOpenState:function(R){if(!this.option("disabled")){if(!(R=arguments.length?R:!this.option("opened"))&&!this._shouldClearFilter()&&this._restoreInputText(!0),this._wasSearch()&&R){this._wasSearch(!1);var P=this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded();if(P&&this._dataController.getDataSource()){if(this._searchTimer)return;var B=this._getActualSearchValue();B&&this._wasSearch(!0),this._filterDataSource(B||null)}else this._setListOption("items",[])}R&&this._scrollToSelectedItem(),this.callBase(R)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._updatePopupWidth(),this._updateListDimensions()},_isValueEqualInputText:function(){var R=this.option("selectedItem");if(null===R)return!1;var P=this._displayGetter(R);return(P?String(P):"")===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(R){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(function(){var{acceptCustomValue:P,text:B,selectedItem:W}=this.option();P?!R&&!this._isValueChanging&&(this._updateField(W??this._createCustomItem(B)),this._clearFilter()):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?this._clearTextValue():this._isValueEqualInputText()||this._renderInputValue().always(function(N){var V=(0,c.IS)(N,W);this._setSelectedItem(V),this._updateField(V),this._clearFilter()}.bind(this))}.bind(this))},_valueChangeEventIncludesBlur:function(){return this.option(this._getValueChangeEventOptionName()).includes("blur")},_isPreventedFocusOutEvent:function(R){return this._preventNestedFocusEvent(R)||this._valueChangeEventIncludesBlur()},_focusOutHandler:function(R){this._isPreventedFocusOutEvent(R)||(this._isOverlayNestedTarget(R.relatedTarget)||(this._restoreInputText(),this._clearSearchTimer()),this._cancelSearchIfNeed(R)),R.target=this._input().get(0),this.callBase(R)},_cancelSearchIfNeed:function(R){var{searchEnabled:P}=this.option(),B=this._isOverlayNestedTarget(R?.relatedTarget);if(this._wasSearch()&&P&&!B){var N,V=null===(N=this._popup)||void 0===N?void 0:N._hideAnimationProcessing;this._clearSearchTimer(),V?this._shouldCancelSearch(!0):(this._wasSearch(!1),this._searchCanceled())}},_shouldCancelSearch:function(R){if(!arguments.length)return this._shouldCancelSearchValue;this._shouldCancelSearchValue=R},_isOverlayNestedTarget:function(R){return!!(0,o.Z)(R).closest(".".concat(w)).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 R=u.Z.getActiveElement(this.element());return this.callBase()&&(0,o.Z)(R).closest(this._input()).length>0},_getValueChangeEventOptionName:function(){return"customItemCreateEvent"},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_fieldRenderData:function(){var R=this._list&&this.option("opened")&&(0,o.Z)(this._list.option("focusedElement"));return R&&R.length?this._list._getItemData(R):this.option("selectedItem")},_isSelectedValue:function(R){return this._isValueEquals(R,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(R){var P=this._getCurrentValue();this._focusListElement((0,o.Z)(R.itemElement)),this._saveValueChangeEvent(R.event),this._completeSelection(this._valueGetter(R.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&P===this._valueGetter(R.itemData)&&this._updateField(R.itemData),this._shouldClearFilter()&&this._cancelSearchIfNeed()},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(R){this._setValue(R)},_loadItem:function(R,P){var B=this,W=new a.BH;return this.callBase(R,P).done(function(N){W.resolve(N)}.bind(this)).fail(function(N){if(null==N||!N.shouldSkipCallback){var V=B.option("selectedItem");B.option("acceptCustomValue")&&R===B._valueGetter(V)?W.resolve(V):W.reject()}}.bind(this)),W.promise()},_loadInputValue:function(R,P){return this._loadItemDeferred=this._loadItem(R).always(P),this._loadItemDeferred},_isCustomItemSelected:function(){var R=this.option("selectedItem"),P=this._searchValue(),B=this._displayGetter(R);return!B||P!==B.toString()},_valueChangeEventHandler:function(R){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&!this._isValueChanging&&(this._isValueChanging=!0,this._customItemAddedHandler(R))},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(R){var P={text:R},B=this._customItemCreatingAction(P),W=(0,c.IS)(B,P.customItem);return(0,I.$K)(B)&&s.Z.log("W0015","onCustomItemCreating","customItem"),W},_customItemAddedHandler:function(R){var P=this._searchValue(),B=this._createCustomItem(P);if(this._saveValueChangeEvent(R),void 0===B)throw this._renderValue(),s.Z.Error("E0121");(0,I.tI)(B)?(0,a.p4)(B).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(B)},_setCustomItem:function(R){this._disposed||(this.option("selectedItem",R=R||null),this._cancelSearchIfNeed(),this._setValue(this._valueGetter(R)),this._renderDisplayText(this._displayGetter(R)),this._isValueChanging=!1)},_clearValueHandler:function(R){return this._preventFiltering=!0,this.callBase(R),this._searchCanceled(),!1},_wasSearch:function(R){if(!arguments.length)return!!this._wasSearchValue;this._wasSearchValue=R},_searchHandler:function(){this._preventFiltering?delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),this.callBase(arguments))},_dataSourceFiltered:function(R){this.callBase(),null!==R&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var R=this._input().get(0),P=this._searchValue().length,B=0===R.selectionStart&&R.selectionEnd===P,W=R.selectionStart!==R.selectionEnd,N=P===R.selectionEnd;return this._wasSearch()&&W&&!B&&N&&this._shouldSubstitutionBeRendered()},_shouldSubstitutionBeRendered:function(){return!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(this._shouldSubstitutionBeRendered()){var R=this._list&&this._getPlainItems(this._list.option("items"))[0];if(R){var P=this._input(),B=P.val().length;if(0!==B){var W=P.get(0),N=this._displayGetter(R).toString();W.value=N,this._caret({start:B,end:N.length})}}}else delete this._preventSubstitution},_dispose:function(){this._renderInputValueAsync=c.ZT,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(R){switch(R.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(R)}}});(0,h.Z)("dxSelectBox",T);const k=T},7398:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>b});var o=l(5031),c=l(1828),I=l(7316),C=l(7674),f=l(4270);const a=o.Z.inherit({ctor:function(y){this.options=y,this._setOption("disabledItemKeys",[]),this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:C.ZT,_setOption:function(y,E){this.options[y]=E},onSelectionChanged:function(){var y=this.options.addedItemKeys,E=this.options.removedItemKeys,S=this.options.addedItems,O=this.options.removedItems,w=this.options.selectedItems,T=this.options.selectedItemKeys,k=this.options.onSelectionChanged||C.ZT;this._clearItemKeys(),k({selectedItems:w,selectedItemKeys:T,addedItemKeys:y,removedItemKeys:E,addedItems:S,removedItems:O})},equalKeys:function(y,E){return this.options.equalByReference&&(0,c.Kn)(y)&&(0,c.Kn)(E)?y===E:(0,C.bY)(y,E)},getSelectableItems:function(y){return y.filter(function(E){return!(null!=E&&E.disabled)})},_clearSelection:function(y,E,S,O){return y=y||[],y=Array.isArray(y)?y:[y],this.validate(),this.selectedItemKeys(y,E,S,O)},_removeTemplateProperty:function(y){return Array.isArray(y)?y.map(E=>this._removeTemplateProperty(E)):((0,c.Kn)(y)&&delete y.template,y)},_loadFilteredData:function(y,E,S,O){var w=encodeURI(JSON.stringify(this._removeTemplateProperty(y))).length,T=this.options.maxFilterLengthInRequest&&w>this.options.maxFilterLengthInRequest,k=new f.BH,R={filter:T?void 0:y,select:T?this.options.dataFields():S||this.options.dataFields()};return y&&0===y.length?k.resolve([]):this.options.load(R).done(function(P){var B=(0,c.PO)(P)?P.data:P;E&&!O?B=B.filter(E):T&&(B=(0,I.Z)(B).filter(y).toArray()),k.resolve(B)}).fail(k.reject.bind(k)),k},updateSelectedItemKeyHash:function(y){for(var E=0;E<y.length;E++){var S=(0,C.k3)(y[E]);(0,c.Kn)(S)||(this.options.keyHashIndices[S]=this.options.keyHashIndices[S]||[],this.options.keyHashIndices[S].push(E))}},_isAnyItemSelected:function(y){for(var E=0;E<y.length;E++)if(this.options.isItemSelected(y[E]))return;return!1},_getFullSelectAllState:function(){var y=this.options.plainItems(),E=this.options.filter(),S=this.options.ignoreDisabledItems?this.options.selectedItems:this.options.selectedItems.filter(T=>!(null!=T&&T.disabled));E&&(S=(0,I.Z)(S).filter(E).toArray());var O=S.length,w=y.length-this.getSelectableItems(y).length;return O?O>=this.options.totalCount()-w||void 0:this._isAnyItemSelected(y)},_getVisibleSelectAllState:function(){for(var y=this.getSelectableItems(this.options.plainItems()),E=!1,S=!1,O=0;O<y.length;O++){var w=y[O],T=this.options.getItemData(w),k=this.options.keyOf(T);this.options.isSelectableItem(w)&&(this.isItemKeySelected(k)?E=!0:S=!0)}return!!E&&(!S||void 0)}});var p=l(8159);const s=a.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var y=new f.BH,E=this,S=this.options.key(),O=(0,c.HD)(S)?[S]:S;return this._loadFilteredData(this.options.selectionFilter,null,O).done(function(w){var T=w.map(function(k){return E.options.keyOf(k)});y.resolve(T)}).fail(y.reject),y.promise()},selectedItemKeys:function(y,E,S,O){if(O){var w=this.options.filter();!w||JSON.stringify(w)===JSON.stringify(this.options.selectionFilter)&&S?this._setOption("selectionFilter",S?[]:null):this._addSelectionFilter(S,w,O)}else{E||this._setOption("selectionFilter",[]);for(var k=0;k<y.length;k++)S?this.removeSelectedItem(y[k]):this.addSelectedItem(y[k])}return this.onSelectionChanged(),(new f.BH).resolve()},setSelectedItems:function(y){this._setOption("selectionFilter",null);for(var E=0;E<y.length;E++)this.addSelectedItem(y[E])},isItemDataSelected:function(y){return this.isItemKeySelected(y)},isItemKeySelected:function(y){var E=this.options.selectionFilter;return!E||!!(0,I.Z)([y]).filter(E).toArray().length},_getKeyExpr:function(){var y=this.options.key();return Array.isArray(y)&&1===y.length?y[0]:y},_normalizeKey:function(y){var E=this.options.key();return Array.isArray(E)&&1===E.length?y[E[0]]:y},_getFilterByKey:function(y){var E=this._getKeyExpr(),S=[E,"=",this._normalizeKey(y)];if(Array.isArray(E)){S=[];for(var O=0;O<E.length;O++)S.push([E[O],"=",y[E[O]]]),O!==E.length-1&&S.push("and")}return S},addSelectedItem:function(y){var E=this._getFilterByKey(y);this._addSelectionFilter(!1,E)},removeSelectedItem:function(y){var E=this._getFilterByKey(y);this._addSelectionFilter(!0,E)},validate:function(){var y=this.options.key;if(y&&void 0===y())throw p.Z.Error("E1042","Deferred selection")},_findSubFilter:function(y,E){if(!y)return-1;for(var S=JSON.stringify(E),O=0;O<y.length;O++){var w=y[O];if(w&&JSON.stringify(w)===S)return O}return-1},_isLastSubFilter:function(y,E){return!(!y||!E||this._findSubFilter(y,E)!==y.length-1&&0!==this._findSubFilter([y],E))},_addFilterOperator:function(y,E){return y.length>1&&(0,c.HD)(y[1])&&y[1]!==E&&(y=[y]),y.length&&y.push(E),y},_denormalizeFilter:function(y){return y&&(0,c.HD)(y[0])&&(y=[y]),y},_isOnlyNegativeFiltersLeft:function(y){return y.every((E,S)=>S%2==0?Array.isArray(E)&&"!"===E[0]:"and"===E)},_addSelectionFilter:function(y,E,S){var O=y?["!",E]:E,w=y?"and":"or",T=!0,k=this.options.selectionFilter||[];if((k=this._denormalizeFilter(k))&&k.length){var R=this._removeSameFilter(k,E,y,S),P=this._removeSameFilter(k,E,!y);y&&(-1!==R||-1!==P)&&this._isOnlyNegativeFiltersLeft(k)&&(k=[]);var W=this._isKeyFilter(E)&&this._hasKeyFiltersOnlyStartingFromIndex(k,P);(T=E.length&&!W)&&(k=this._addFilterOperator(k,w))}T&&k.push(O),k=this._normalizeFilter(k),this._setOption("selectionFilter",y||k.length?k:null)},_normalizeFilter:function(y){return y&&1===y.length&&(y=y[0]),y},_removeFilterByIndex:function(y,E,S){var O=y[1];y.splice(E>0?E-1:E,2),S&&"and"===O&&y.splice(0,y.length)},_isSimpleKeyFilter:function(y,E){return 3===y.length&&y[0]===E&&"="===y[1]},_isKeyFilter:function(y){if(2===y.length&&"!"===y[0])return this._isKeyFilter(y[1]);var E=this._getKeyExpr();if(Array.isArray(E)){if(y.length!==2*E.length-1)return!1;for(var S=0;S<E.length;S++)if(S>0&&"and"!==y[2*S-1]||!this._isSimpleKeyFilter(y[2*S],E[S]))return!1;return!0}return this._isSimpleKeyFilter(y,E)},_hasKeyFiltersOnlyStartingFromIndex:function(y,E){if(E>=0){for(var S=E;S<y.length;S++)if("string"!=typeof y[S]&&!this._isKeyFilter(y[S]))return!1;return!0}return!1},_removeSameFilter:function(y,E,S,O){if(E=S?["!",E]:E,JSON.stringify(E)===JSON.stringify(y))return y.splice(0,y.length),0;var w=this._findSubFilter(y,E);if(w>=0)return this._removeFilterByIndex(y,w,O),w;for(var T=0;T<y.length;T++)if(Array.isArray(y[T])&&y[T].length>2){var k=this._removeSameFilter(y[T],E,!1,O);if(k>=0)return y[T].length?1===y[T].length&&(y[T]=y[T][0]):this._removeFilterByIndex(y,T,O),k}return-1},getSelectAllState:function(){var y=this.options.filter(),E=this.options.selectionFilter;if(!E)return!0;if(!E.length)return!1;if(y&&y.length){if(E=this._denormalizeFilter(E),this._isLastSubFilter(E,y))return!0;if(this._isLastSubFilter(E,["!",y]))return!1}}});var u=l(9960),d=l(31),h=l(682);const g=a.inherit({ctor:function(y){this.callBase(y),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(y,E){var O,w,T,S=this.options.keyOf;if(S){var k=E&&y.length>1&&!this.options.equalByReference;for(k&&(O={}),T=0;T<y.length;T++){var R=y[T],P=S(R);E?(w=this.removeSelectedItem(P,O,R?.disabled),O&&w>=0&&(O[w]=!0)):this.addSelectedItem(P,R)}k&&this._batchRemoveSelectedItems(O)}},_batchRemoveSelectedItems:function(y){var E=this.options.selectedItemKeys.slice(0),S=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var O=0;O<E.length;O++)y[O]||(this.options.selectedItemKeys.push(E[O]),this.options.selectedItems.push(S[O]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(y,E,S,O){var w=new f.BH,T=this.options.key();if(!y.length&&!S)return w.resolve([]),w;if(S&&E&&!O)return w.resolve(this.getSelectedItems()),w;var k=new h.M(y,S),R=k.getCombinedFilter(T,O),P=[];if(E){var B=this.options.selectedItems;P=R&&y.length!==B.length?(0,I.Z)(B).filter(R).toArray():B.slice(0)}var W=P.length?P:this.options.plainItems(!0).filter(this.options.isSelectableItem).map(this.options.getItemData),N=k.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,T);return W=W.filter(N),P.length||!S&&W.length===y.length?w.resolve(W):w=this._loadFilteredData(R,N,null,S),w},_replaceSelectionUpdate:function(y){var E=[],S=this.options.keyOf;if(S){for(var O=0;O<y.length;O++){var T=S(y[O]);E.push(T)}this.setSelectedItems(E,y)}},_warnOnIncorrectKeys:function(y){for(var E=this.options.allowNullValue,S=0;S<y.length;S++){var O=y[S];(!E||null!==O)&&!this.isItemKeySelected(O)&&p.Z.log("W1002",O)}},_isMultiSelectEnabled:function(){var y=this.options.mode;return"all"===y||"multiple"===y},_requestInProgress:function(){var y;return"pending"===(null===(y=this._lastLoadDeferred)||void 0===y?void 0:y.state())},_concatRequestsItems:function(y,E,S,O){var w,T=E?y:[];return w=O||(0,u.R1)(y,this.options.selectedItemKeys),{addedItems:S.added.concat(w),removedItems:S.removed.concat(T),keys:y}},_collectLastRequestData:function(y,E,S,O){var w=E&&S,T={added:[],removed:[]},k=this._isMultiSelectEnabled(),R=k?this._lastRequestData:{};return k&&(this._shouldMergeWithLastRequest&&(w?(this._lastLoadDeferred.reject(),R={}):(0,d.E)(y,this.options.selectedItemKeys)||(T.added=R.addedItems,T.removed=R.removedItems,E||this._lastLoadDeferred.reject())),R=this._concatRequestsItems(y,E,T,this._shouldMergeWithLastRequest?void 0:O)),R},_updateKeysByLastRequestData:function(y,E,S){var w,T,O=y;return this._isMultiSelectEnabled()&&this._shouldMergeWithLastRequest&&!E&&!S&&(O=(0,u.R1)(y.concat(null===(w=this._lastRequestData)||void 0===w?void 0:w.addedItems),null===(T=this._lastRequestData)||void 0===T?void 0:T.removedItems),O=(0,u.rZ)(O)),O},_loadSelectedItems:function(y,E,S,O){var w=this,T=new f.BH,k=w.options.filter();return this._shouldMergeWithLastRequest=this._requestInProgress(),this._lastRequestData=this._collectLastRequestData(y,E,S,O),(0,f.gx)(w._lastLoadDeferred).always(function(){var R=w._updateKeysByLastRequestData(y,E,S);w._shouldMergeWithLastRequest=!1,w._loadSelectedItemsCore(R,E,S,k).done(T.resolve).fail(T.reject)}),w._lastLoadDeferred=T,T},selectedItemKeys:function(y,E,S,O,w){var T=this,k=T._loadSelectedItems(y,S,O,w);return k.done(function(R){E?T._preserveSelectionUpdate(R,S):T._replaceSelectionUpdate(R),T.onSelectionChanged()}),k},addSelectedItem:function(y,E){if((0,c.$K)(E)&&!this.options.ignoreDisabledItems&&E.disabled)-1===this.options.disabledItemKeys.indexOf(y)&&this.options.disabledItemKeys.push(y);else{var S=this._getKeyHash(y);-1===this._indexOfSelectedItemKey(S)&&(!(0,c.Kn)(S)&&this.options.keyHashIndices&&(this.options.keyHashIndices[S]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(y),this.options.addedItemKeys.push(y),this.options.addedItems.push(E),this.options.selectedItems.push(E))}},_getSelectedIndexByKey:function(y,E){for(var S=this.options.selectedItemKeys,O=0;O<S.length;O++)if((!E||!E[O])&&this.equalKeys(S[O],y))return O;return-1},_getSelectedIndexByHash:function(y,E){var S=this.options.keyHashIndices[y];return S&&S.length>1&&E&&(S=S.filter(function(O){return!E[O]})),S&&S[0]>=0?S[0]:-1},_indexOfSelectedItemKey:function(y,E){return this.options.equalByReference?this.options.selectedItemKeys.indexOf(y):(0,c.Kn)(y)?this._getSelectedIndexByKey(y,E):this._getSelectedIndexByHash(y,E)},_shiftSelectedKeyIndices:function(y){for(var E=y;E<this.options.selectedItemKeys.length;E++){var O=(0,C.k3)(this.options.selectedItemKeys[E]),w=this.options.keyHashIndices[O];if(w)for(var T=0;T<w.length;T++)w[T]>y&&w[T]--}},removeSelectedItem:function(y,E,S){if(this.options.ignoreDisabledItems||!S){var O=this._getKeyHash(y),w=!!E,T=this._indexOfSelectedItemKey(O,E);if(T<0||(this.options.removedItemKeys.push(y),this.options.removedItems.push(this.options.selectedItems[T]),w)||(this.options.selectedItemKeys.splice(T,1),this.options.selectedItems.splice(T,1),(0,c.Kn)(O)||!this.options.keyHashIndices))return T;var k=this.options.keyHashIndices[O];return k&&(k.shift(),k.length||delete this.options.keyHashIndices[O],this._shiftSelectedKeyIndices(T)),T}},_updateAddedItemKeys:function(y,E){for(var S=0;S<y.length;S++)this.isItemKeySelected(y[S])||(this.options.addedItemKeys.push(y[S]),this.options.addedItems.push(E[S]))},_updateRemovedItemKeys:function(y,E,S){for(var O=0;O<E.length;O++)this.isItemKeySelected(E[O])||(this.options.removedItemKeys.push(E[O]),this.options.removedItems.push(S[O]))},_isItemSelectionInProgress:function(y,E){var O;return!!(E&&this._lastRequestData&&this._requestInProgress())&&(null!==(O=this._lastRequestData.addedItems)&&void 0!==O?O:[]).includes(y)},_getKeyHash:function(y){return this.options.equalByReference?y:(0,C.k3)(y)},setSelectedItems:function(y,E){this._updateAddedItemKeys(y,E);var S=this.options.selectedItemKeys,O=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(y)),this._setOption("selectedItemKeys",y),this._setOption("selectedItems",E),this._updateRemovedItemKeys(y,S,O)},isItemDataSelected:function(y){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},S=this.options.keyOf(y);return this.isItemKeySelected(S,E)},isItemKeySelected:function(y){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},S=this._isItemSelectionInProgress(y,E.checkPending);if(!S){var O=this._getKeyHash(y),w=this._indexOfSelectedItemKey(O);S=-1!==w}return S},getSelectAllState:function(y){return y?this._getVisibleSelectAllState():this._getFullSelectAllState()}});var x=l(5873);const b=o.Z.inherit({ctor:function(y){this.options=(0,x.l)(this._getDefaultOptions(),y,{selectedItemKeys:y.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new s(this.options):new g(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:C.ZT,key:C.ZT,keyOf:function(y){return y},load:function(){return(new f.BH).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(y){return y},dataFields:C.ZT,filter:C.ZT}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(y){if(void 0===y)return this.options.selectionFilter;var E=this.options.selectionFilter!==y&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(y);this.options.selectionFilter=y,E&&this.onSelectionChanged()},setSelection:function(y,E){return this.selectedItemKeys(y,!1,!1,!1,E)},select:function(y){return this.selectedItemKeys(y,!0)},deselect:function(y){return this.selectedItemKeys(y,!0,!0)},selectedItemKeys:function(y,E,S,O,w){var T;return y=null!==(T=y)&&void 0!==T?T:[],y=Array.isArray(y)?y:[y],this.validate(),this._selectionStrategy.selectedItemKeys(y,E,S,O,w)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(y,E){this._selectionStrategy.addSelectedItem(E,y)},_removeSelectedItem:function(y){this._selectionStrategy.removeSelectedItem(y)},_setSelectedItems:function(y,E){this._selectionStrategy.setSelectedItems(y,E)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(y,E,S){var O,w,T,P,W,k=this.options.plainItems(),R=k[y],N=!1,V=!1,U=ee=>ee>=0&&!k.filter(G=>G.loadIndex===ee).length;if((null===(O=(w=this.options).allowLoadByRange)||void 0===O?void 0:O.call(w))&&(W=R.loadIndex-y,y=R.loadIndex,N=U(this._focusedItemIndex),(0,c.$K)(this._shiftFocusedItemIndex)&&(V=U(this._shiftFocusedItemIndex))),!this.isSelectable()||!this.isDataItem(R))return!1;var K=this.options.getItemData(R),Y=this.options.keyOf(K);if((E=E||{}).shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)N||V?(T=y!==this._shiftFocusedItemIndex||this._focusedItemIndex!==this._shiftFocusedItemIndex)&&(P=this.changeItemSelectionWhenShiftKeyInVirtualPaging(y)):T=this.changeItemSelectionWhenShiftKeyPressed(y,k,W);else if(E.control){if(this._resetItemSelectionWhenShiftKeyPressed(),!S){var J=this._selectionStrategy.isItemDataSelected(K);"single"===this.options.mode&&this.clearSelectedItems(),J?this._removeSelectedItem(Y):this._addSelectedItem(K,Y)}T=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var j=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],Y);(1!==this.options.selectedItemKeys.length||!j)&&(this._setSelectedItems([Y],[K]),T=!0)}return T?((0,f.gx)(P).done(()=>{this._focusedItemIndex=y,!S&&this.onSelectionChanged()}),!0):void 0},isDataItem:function(y){return this.options.isSelectableItem(y)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(y){return this._selectionStrategy.isItemDataSelected(y,{checkPending:!0})},isItemSelected:function(y,E){return this._selectionStrategy.isItemKeySelected(y,E)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyInVirtualPaging:function(y){var E=this.options.getLoadOptions(y,this._focusedItemIndex,this._shiftFocusedItemIndex),S=new f.BH,O=E.skip;return this.options.load(E).done(w=>{this.changeItemSelectionWhenShiftKeyPressed(y,w,O),S.resolve()}),S.promise()},changeItemSelectionWhenShiftKeyPressed:function(y,E,S){var w,V,U,Y,O=!1,T=(0,c.$K)(S),k=T?this._focusedItemIndex-S:this._focusedItemIndex,R=this.options.keyOf,P=E[k],B=this.options.getItemData(P),W=R(B),N=P&&this.isItemDataSelected(B);if((0,c.$K)(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(w=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,Y=T?this._shiftFocusedItemIndex-S:this._shiftFocusedItemIndex,k=T?this._focusedItemIndex-S:this._focusedItemIndex;k!==Y;k+=w)(T||this.isDataItem(E[k]))&&(U=R(this.options.getItemData(E[k])),this._removeSelectedItem(U),O=!0);if(y!==this._shiftFocusedItemIndex)for(w=y<this._shiftFocusedItemIndex?1:-1,Y=T?this._shiftFocusedItemIndex-S:this._shiftFocusedItemIndex,k=T?y-S:y;k!==Y;k+=w)(T||this.isDataItem(E[k]))&&(U=R(V=this.options.getItemData(E[k])),this._addSelectedItem(V,U),O=!0);return(T||this.isDataItem(P))&&!N&&(this._addSelectedItem(B,W),O=!0),O},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(y){return this._resetFocusedItemIndex(),y?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(y){return this._resetFocusedItemIndex(),y?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(y){for(var E=this._selectionStrategy.getSelectableItems(this.options.plainItems()),S=0;S<E.length;S++){var O=E[S];if(this.isDataItem(O)){var w=this.options.getItemData(O),T=this.options.keyOf(w),k=this.isItemSelected(T);!k&&!y&&this._addSelectedItem(w,T),k&&y&&this._removeSelectedItem(T)}}return this.onSelectionChanged(),(new f.BH).resolve()},getSelectAllState:function(y){return this._selectionStrategy.getSelectAllState(y)}})},2559:(kn,he,l)=>{"use strict";l.d(he,{Bg:()=>N,Hl:()=>Y,Ni:()=>W,Y4:()=>V,bT:()=>B,c3:()=>w,fv:()=>K,vg:()=>U});var o=l(9904),c=l(913),I=l(8225),C=l(5873),f=l(9897),a=l(7674),p="dx-state-focused",d=".dx-datagrid-rowsview .dx-row",h="".concat(d," > td"),g=".dx-treelist-rowsview .dx-row",x="".concat(g," > td"),b={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(d,"[tabindex]"),"".concat(h,"[tabindex]"),"".concat(h),"".concat(g,"[tabindex]"),"".concat(x,"[tabindex]"),"".concat(x)],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]"]},y=!1,E=!1,S=null;function w(J,j){var ee=(0,o.Z)(J),G=ee.attr("aria-label"),Z=T(G,j.element()).index(ee);S=(0,C.l)({},{ariaLabel:G,index:Z},{viewInstance:j})}function T(J,j){return(0,o.Z)(j).find(J?'[aria-label="'.concat(J,'"][tabindex]'):"[tabindex]")}function k(J,j){var ee=j?.getRootNode()||f.Z.getDocument();for(var G in J){var q=J[G],Z=(0,o.Z)(ee).find(q).first();if(Z.length)return Z}}function P(){E="visible"===f.Z.getDocument().visibilityState}function B(){c.Z.on(f.Z.getDocument(),"visibilitychange",P)}function W(){c.Z.off(f.Z.getDocument(),"visibilitychange",P)}function N(J){E=!0,J.focus(),E=!1}function V(J,j,ee,G,q,Z){if(j.option("useLegacyKeyboardNavigation"))return a.ZT;var X=()=>(0,o.Z)(j.element()),M=De=>function O(J,j,ee,G,q,Z){var X=function R(J,j,ee){var G={event:j,handled:!1};return ee?ee(G):J._createActionByOption("onKeyDown")(G),G.handled}(j,ee.originalEvent,Z);if(!X){var M=(0,I.EV)(ee);"enter"===M||"space"===M?(w(ee.target,j),G&&G({event:ee})):"tab"===M?q.addClass(p):K(J,j,ee)}}(J,j,De,q,X(),Z),se=()=>{y=!0,X().removeClass(p)},ge=()=>{!y&&!E&&X().addClass(p),y=!1};return c.Z.on(ee,"keydown",G,M),c.Z.on(ee,"mousedown",G,se),c.Z.on(ee,"focusin",G,ge),()=>{c.Z.off(ee,"keydown",G,M),c.Z.off(ee,"mousedown",G,se),c.Z.off(ee,"focusin",G,ge)}}function U(J){if(!J.option("useLegacyKeyboardNavigation")&&S){var j=S.viewInstance;if(j){var G=T(S.ariaLabel,j.element()).eq(S.index);S=null,c.Z.trigger(G,"focus")}}}function K(J,j,ee){var G=(0,I.EV)(ee);if(ee.ctrlKey&&("upArrow"===G||"downArrow"===G))for(var q=Object.keys(b),Z=q.indexOf(J);Z>=0&&Z<q.length;){Z="upArrow"===G?--Z:++Z;var se=k(b[q[Z]],ee.target);if(se&&se.length){se.attr("tabindex",j.option("tabindex")||0),c.Z.trigger(se,"focus"),se.removeClass("dx-cell-focus-disabled");break}}}function Y(J,j){J.option("useLegacyKeyboardnavigation")||j.attr("tabindex",J.option("tabindex")||0)}},2135:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>p});var o=l(1828),c=l(2718),I=["year","month","day"],C=["year","month","day","hour","minute"],f=function(s){return"date"===s||"datetime"===s},a=function(s){var u,d=[],h=["year","month","day","hour","minute","second"],g=s.headerFilter&&s.headerFilter.groupInterval,x="quarter"===g?"month":g;return f(s.dataType)&&null!==g?(d="datetime"===s.dataType?C:I,(u=h.indexOf(x))>=0&&(d=h.slice(0,u)).push(g),d):(0,o.$K)(g)?Array.isArray(g)?g:[g]:void 0};const p=(s=function(g,x){var b=g.dataField||g.selector;return"search"===x&&(b=g.displayField||g.calculateDisplayValue||b),b},u=function(g,x){var b,y,E,O,S=s(this,x);if(Array.isArray(g)&&(0,o.$K)(g[0])&&(0,o.$K)(g[1]))return y=[S,">=",g[0]],E=[S,"<=",g[1]],f(this.dataType)&&(O=g[1]).getHours()+O.getMinutes()+O.getSeconds()+O.getMilliseconds()<1&&(b=new Date(g[1].getTime()),"date"===this.dataType&&b.setDate(g[1].getDate()+1),E=[S,"<",b]),[y,"and",E]},d=function(g,x,b){var y,E,S,T,O=(0,o.J_)(T=g)?[T.getFullYear(),T.getMonth(),T.getDate(),T.getHours(),T.getMinutes(),T.getSeconds()]:(0,c.UI)((""+T).split("/"),function(k,R){return 1===R?Number(k)-1:Number(k)}),w=s(this,b);switch("headerFilter"===b?S=a(this)[O.length-1]:"datetime"===this.dataType&&(S="minute"),S){case"year":y=new Date(O[0],0,1),E=new Date(O[0]+1,0,1);break;case"month":y=new Date(O[0],O[1],1),E=new Date(O[0],O[1]+1,1);break;case"quarter":y=new Date(O[0],3*O[1],1),E=new Date(O[0],3*O[1]+3,1);break;case"hour":y=new Date(O[0],O[1],O[2],O[3]),E=new Date(O[0],O[1],O[2],O[3]+1);break;case"minute":y=new Date(O[0],O[1],O[2],O[3],O[4]),E=new Date(O[0],O[1],O[2],O[3],O[4]+1);break;case"second":y=new Date(O[0],O[1],O[2],O[3],O[4],O[5]),E=new Date(O[0],O[1],O[2],O[3],O[4],O[5]+1);break;default:y=new Date(O[0],O[1],O[2]),E=new Date(O[0],O[1],O[2]+1)}switch(x){case"<":return[w,"<",y];case"<=":return[w,"<",E];case">":return[w,">=",E];case">=":return[w,">=",y];case"<>":return[[w,"<",y],"or",[w,">=",E]];default:return[[w,">=",y],"and",[w,"<",E]]}},h=function(g,x,b){var y=s(this,b),E=a(this);if("headerFilter"===b&&E&&(0,o.$K)(g)){var S=(""+g).split("/"),O=Number(S[S.length-1]);return[[y,">=",O],"and",[y,"<",O+E[S.length-1]]]}return[y,x||"=",g]},{defaultCalculateFilterExpression:function(g,x,b){var y=this,E=s(y,b),S=y.calculateDisplayValue&&"search"===b,O=S&&y.lookup&&y.lookup.dataType||y.dataType,w=null;if("headerFilter"!==b&&"filterBuilder"!==b||null!==g)if("string"!==O||y.lookup&&!S){if("between"===x)return u.apply(y,[g,b]);if(f(O)&&(0,o.$K)(g))return d.apply(y,arguments);if("number"===O)return h.apply(y,arguments);w=[E,x||"=",g]}else w=[E,x||"contains",g];else w=[E,x||"=",null],"string"===O&&(w=[w,"="===x?"or":"and",[E,x||"=",""]]);return w},getGroupInterval:a});var s,u,d,h},9661:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>I});var o=l(1828);const I={_getSpecificDataSourceOption:function(){var C=this.option("dataSource"),f=!1,a={};return this._getGroupedOption()&&(C=>Array.isArray(C)&&C.every(f=>2===Object.keys(f).length&&"key"in f&&"items"in f&&Array.isArray(f.items)))(C)&&(a=C.reduce((p,s)=>{var u=s.items.map(d=>((0,o.Kn)(d)||(d={text:d},f=!0),"key"in d||(d.key=s.key),d));return p.concat(u)},[]),C={store:{type:"array",data:a},group:{selector:"key",keepInitialKeyOrder:!0}},f&&(C.searchExpr="text")),C}}},5946:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>k});var o=l(9904),c=l(913),I=l(1828),C=l(9963),f=l(6738),a=l(4722),p=l(5873),s=l(2941),u=l(6881),d=l(5981),h=l(8225),{isWrapped:S}=(l(3447),l(1946),l(344),l(5079),l(1884),C.Z);const k=function(){var R=function(V,U){return(0,p.l)(V,{readOnly:U.readOnly,placeholder:U.placeholder,inputAttr:{id:U.id},tabIndex:U.tabIndex},U.editorOptions)},P=function(){return a.Z.mozilla||s.Z.real().ios},B=function(V){var U={},K=P(),Y=V.sharedData||U;return R({placeholder:V.placeholder,width:V.width,value:V.value,onValueChanged:function(J){var j="filterRow"===V.parentType||"searchPanel"===V.parentType,ee=J.event&&("input"===J.event.type||"keyup"===J.event.type),G=function(q,Z){V&&V.setValue(q.value,Z)};clearTimeout(U.valueChangeTimeout),ee&&j?Y.valueChangeTimeout=U.valueChangeTimeout=setTimeout(function(){G(J,U.valueChangeTimeout!==Y.valueChangeTimeout)},(0,I.$K)(V.updateValueTimeout)?V.updateValueTimeout:0):G(J)},onKeyDown:function(J){K&&"enter"===(0,h.EV)(J.event)&&c.Z.trigger((0,o.Z)(J.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===V.parentType?" keyup input":"")},V)};function N(V){var K,Y,J,U=V.lookup,j="filterRow"===V.parentType;if(U){K=(0,f.vb)(U.displayExpr),(0,I.mf)(Y=U.dataSource)&&!S(Y)&&(Y=Y(V.row||{}),function(G){if(G.row&&G.row.watch&&"dataRow"===G.parentType){var q=G.editorOptions||{};G.editorOptions=q;var Z,X=q.onInitialized;q.onInitialized=function(ge){X&&X.apply(this,arguments),(Z=ge.component).on("disposing",se)};var M,se=G.row.watch(()=>(M=G.lookup.dataSource(G.row))&&M.filter,()=>{Z.option("dataSource",M)},ge=>{G.row=ge})}}(V)),((0,I.Kn)(Y)||Array.isArray(Y))&&(Y=(0,d.aN)(Y),j&&(J=Y.postProcess,Y.postProcess=function(G){return 0===this.pageIndex()&&(G=G.slice(0)).unshift(null),J?J.call(this,G):G}));var ee=Boolean(U.allowClearing&&!j);V.editorName="dxSelectBox",V.editorOptions=R({searchEnabled:!0,value:V.value,valueExpr:V.lookup.valueExpr,searchExpr:V.lookup.searchExpr||V.lookup.displayExpr,allowClearing:ee,showClearButton:ee,displayExpr:function(G){return null===G?V.showAllText:K(G)},dataSource:Y,onValueChanged:function(G){var q=[G.value];!j&&q.push(G.component.option("text")),V.setValue.apply(this,q)}},V)}}return{createEditor:function(V,U){if(U.cancel=!1,U.editorElement=(0,u.u)(V),(0,I.$K)(U.tabIndex)||(U.tabIndex=this.option("tabIndex")),U.lookup)N(U);else switch(U.dataType){case"date":case"datetime":(K=U).editorName="dxDateBox",K.editorOptions=R({value:K.value,onValueChanged:function(Y){K.setValue(Y.value)},onKeyDown:function(Y){var{component:J,event:j}=Y,ee=J.option("useMaskBehavior");(P()||ee)&&"enter"===(0,h.EV)(j)&&(J.blur(),J.focus())},displayFormat:K.format,type:K.dataType,dateSerializationFormat:null,width:"filterBuilder"===K.parentType?void 0:"auto"},K);break;case"boolean":!function(V){var U;"filterRow"===V.parentType||"filterBuilder"===V.parentType?N((0,p.l)(V,{lookup:{displayExpr:function(U){return!0===U?V.trueText||"true":!1===U?V.falseText||"false":void 0},dataSource:[!0,!1]}})):((U=V).editorName="dxCheckBox",U.editorOptions=R({elementAttr:{id:U.id},value:(0,I.$K)(U.value)?U.value:void 0,hoverStateEnabled:!U.readOnly,focusStateEnabled:!U.readOnly,activeStateEnabled:!1,onValueChanged:function(K){U.setValue&&U.setValue(K.value,K)}},U))}(U);break;case"number":!function(K){var Y=B(K);Y.value=(0,I.$K)(K.value)?K.value:null,K.editorName="dxNumberBox",K.editorOptions=Y}(U);break;default:!function(K){var j,Y=B(K),J="searchPanel"===K.parentType;Y.value=K.editorType&&"dxTextBox"!==K.editorType?K.value:(0,I.$K)(j=K.value)?j.toString():"",Y.valueChangeEvent+=J?" keyup input search":"",Y.mode=Y.mode||(J?"search":"text"),K.editorName="dxTextBox",K.editorOptions=Y}(U)}var K;"dataRow"===U.parentType&&U.editorType&&(U.editorName=U.editorType),this.executeAction("onEditorPreparing",U),!U.cancel&&("dataRow"===U.parentType&&!U.isOnForm&&!(0,I.$K)(U.editorOptions.showValidationMark)&&(U.editorOptions.showValidationMark=!1),function(K,Y){var J=(0,o.Z)(Y.editorElement);if(Y.editorName&&Y.editorOptions&&J[Y.editorName]){if(("dxCheckBox"===Y.editorName||"dxSwitch"===Y.editorName)&&(Y.isOnForm||(J.addClass(K.addWidgetPrefix("checkbox-size")),J.parent().addClass("dx-editor-inline-block"))),K._createComponent(J,Y.editorName,Y.editorOptions),"dxDateBox"===Y.editorName){var j=J.dxDateBox("instance"),ee=j._supportedKeys().enter;j.registerKeyHandler("enter",G=>(j.option("opened")&&ee(G),!0))}"dxTextArea"===Y.editorName&&J.dxTextArea("instance").registerKeyHandler("enter",function(G){"enter"===(0,h.EV)(G)&&!G.ctrlKey&&!G.shiftKey&&G.stopPropagation()})}}(this,U),this.executeAction("onEditorPrepared",U))}}}()},1414:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>R});var o=l(1805),c=l(9904),I=l(913),C=l(8506),f=l(5873),a=l(130),p=l(6881),s=l(4514),u=l(5450),d=l(6961),h=l(3553),g=l(4270),x=(0,s.Jj)(),y="placeholder",S=P=>(0,c.Z)(P).is(":visible"),O=(P,B)=>{var W,N;if(P){var V=(null===(W=B.to)||void 0===W?void 0:W.left)||0,U=(null===(N=B.to)||void 0===N?void 0:N.top)||0;P.style.transform="translate(".concat(V,"px,").concat(U,"px)"),P.style.transition=h.Z.off?"":"transform ".concat(B.duration,"ms ").concat(B.easing)}},w=P=>{P&&(P.style.transform="",P.style.transition="")},k=a.Z.inherit({_init:function(){this.callBase(),this._sourceScrollHandler=this._handleSourceScroll.bind(this),this._sourceScrollableInfo=null},_getDefaultOptions:function(){return(0,f.l)(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(P,B){return P.slice(0,B).reverse().filter(S)[0]},_dragStartHandler:function(P){if(this.callBase.apply(this,arguments),!0!==P.cancel){var B=this._getSourceElement();this._updateItemPoints(),this._subscribeToSourceScroll(P),this.option("fromIndex",this._getElementIndex(B)),this.option("fromIndexOffset",this.option("offset"))}},_subscribeToSourceScroll:function(P){var B=this._getScrollable((0,c.Z)(P.target));B&&(this._sourceScrollableInfo={element:B,scrollLeft:B.scrollLeft(),scrollTop:B.scrollTop()},I.Z.off(B,"scroll",this._sourceScrollHandler),I.Z.on(B,"scroll",this._sourceScrollHandler))},_unsubscribeFromSourceScroll:function(){this._sourceScrollableInfo&&(I.Z.off(this._sourceScrollableInfo.element,"scroll",this._sourceScrollHandler),this._sourceScrollableInfo=null)},_handleSourceScroll:function(P){var B=this._sourceScrollableInfo;B&&["scrollLeft","scrollTop"].forEach(W=>{P.target[W]!==B[W]&&(this._correctItemPoints(P.target[W]-B[W]),this._movePlaceholder(),B[W]=P.target[W])})},_dragEnterHandler:function(P){if(this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&(this._subscribeToSourceScroll(P),this._updateItemPoints(),this.option("fromIndex",-1),!this._isIndicateMode())){var B=this.option("itemPoints"),W=B[B.length-1];if(W){var N=this.$element(),V=this._getSourceElement(),U=this._isVerticalOrientation(),K=U?(0,o.zp)(V,!0):(0,o.Y_)(V,!0),Y=N.get(0)[U?"scrollHeight":"scrollWidth"],J=N.get(0)[U?"scrollTop":"scrollLeft"],j=U?"top":"left",ee=W[j],G=N.offset()[j],q=G+Y-J-ee;if(q<K&&U){var Z=this._getItems(),X=(0,c.Z)(this._getPrevVisibleItem(Z));this._$modifiedItem=X,this._modifiedItemMargin=X.get(0).style.marginBottom,X.css("marginBottom",K-q);var M=X.closest(".dx-sortable"),se=M.data("dxScrollable")||M.data("dxScrollView");se&&se.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(P){var W=this._getTargetDraggable().$element(),N=this._getScrollable(W);if(N){var{left:V,right:U,top:K,bottom:Y}=function T(P){var B=P.offset(),W=P[0].style,N=parseFloat(W.paddingLeft)||0,V=parseFloat(W.paddingRight)||0,U=parseFloat(W.paddingTop)||0,K=P[0].clientWidth-(N+V),Y=(0,o.Cr)(P),J=B.left+N,j=B.top+U;return{left:J,right:J+K,top:j,bottom:j+Y}}(N),J=this.option("toIndex"),ee=this.option("itemPoints")?.filter(q=>q.index===J)[0];if(ee&&void 0!==ee.top)return this._isVerticalOrientation()?K<=Math.ceil(ee.top)&&Math.floor(ee.top)<=Y:V<=Math.ceil(ee.left)&&Math.floor(ee.left)<=U}return!0},dragEnd:function(P){this._unsubscribeFromSourceScroll();var Y,J,B=this._getSourceElement(),W=this._getSourceDraggable(),N=W.NAME!==this.NAME,V=this.option("toIndex"),U=P.event,K=this._allowDrop(U);return null!==V&&V>=0&&K&&(W!==this&&((Y=this._fireAddEvent(U))||(J=this._fireRemoveEvent(U))),N&&(0,d.Kx)(B),this.option("moveItemOnDrop")&&!Y&&this._moveItem(B,V,J),W===this)?this._fireReorderEvent(U):(new g.BH).resolve()},dragMove:function(P){var B=this.option("itemPoints");if(B){for(var K,W=this._isVerticalOrientation(),N=W?"top":"left",V=W?P.pageY:P.pageX,U=this.option("rtlEnabled"),Y=B.length-1;Y>=0;Y--){var J=B[Y+1]&&(B[Y][N]+B[Y+1][N])/2;if(!(!W&&U?V>J:J>V)&&void 0!==J)break;K=B[Y]}K&&(this._updatePlaceholderPosition(P,K),this._verticalScrollHelper.isScrolling()&&this._isIndicateMode()&&this._movePlaceholder())}},_isIndicateMode:function(){return"indicate"===this.option("dropFeedbackMode")||this.option("allowDropInsideItem")},_createPlaceholder:function(){var P;return this._isIndicateMode()&&(P=(0,c.Z)("<div>").addClass(this._addWidgetPrefix(y)).insertBefore(this._getSourceDraggable()._$dragElement)),this._$placeholderElement=P,P},_getItems:function(){var P=this._getItemsSelector();return this._$content().find(P).not("."+this._addWidgetPrefix(y)).not("."+this._addWidgetPrefix("clone")).toArray()},_allowReordering:function(){return this._getSourceDraggable()!==this._getTargetDraggable()||this.option("allowReordering")},_isValidPoint:function(P,B,W){var N=this.option("allowDropInsideItem");return!!(W||this._allowReordering()||0===P&&N)&&(!this._isIndicateMode()||-1===B||P!==B&&(W||P!==B+1))},_getItemPoints:function(){var B,W,N,P=[],V=this.option("rtlEnabled"),U=this._isVerticalOrientation(),K=this._getItems(),Y=K.filter(S),J=Y.length,j=this._getDraggableElement(),ee=Y.indexOf(j.get(0));if(J){for(var G=0;G<=J;G++){var q=!U&&V^G===J,Z=U&&G===J;G<J&&(W=(B=(0,c.Z)(Y[G])).offset(),N=(0,o.Y_)(B)),P.push({dropInsideItem:!1,left:W.left+(q?N:0),top:W.top+(Z?P[G-1].height:0),index:G===J?K.length:K.indexOf(B.get(0)),$item:B,width:(0,o.Y_)(B),height:(0,o.zp)(B),isValid:this._isValidPoint(G,ee)})}if(this.option("allowDropInsideItem")){var X=P;P=[];for(var M=0;M<X.length;M++)P.push(X[M]),X[M+1]&&P.push((0,f.l)({},X[M],{dropInsideItem:!0,top:Math.floor((X[M].top+X[M+1].top)/2),left:Math.floor((X[M].left+X[M+1].left)/2),isValid:this._isValidPoint(M,ee,!0)}))}}else P.push({dropInsideItem:!1,index:0,isValid:!0});return P},_updateItemPoints:function(P){(P||this.option("autoUpdate")||!this.option("itemPoints"))&&this.option("itemPoints",this._getItemPoints())},_correctItemPoints:function(P){var B=this.option("itemPoints");if(P&&B&&!this.option("autoUpdate")){var N=this._isVerticalOrientation()?"top":"left";B.forEach(V=>{V[N]-=P})}},_getElementIndex:function(P){return this._getItems().indexOf(P.get(0))},_getDragTemplateArgs:function(P){var B=this.callBase.apply(this,arguments);return B.model.fromIndex=this._getElementIndex(P),B},_togglePlaceholder:function(P){this._$placeholderElement&&this._$placeholderElement.toggle(P)},_isVerticalOrientation:function(){return"vertical"===this.option("itemOrientation")},_normalizeToIndex:function(P,B){var W=this._getSourceDraggable()!==this._getTargetDraggable(),N=this.option("fromIndex");return null===P?N:Math.max(W||N>=P||B?P:P-1,0)},_updatePlaceholderPosition:function(P,B){var W=this._getSourceDraggable(),N=this._normalizeToIndex(B.index,B.dropInsideItem),V=(0,f.l)(this._getEventArgs(P),{toIndex:N,dropInsideItem:B.dropInsideItem});B.isValid&&this._getAction("onDragChange")(V),!V.cancel&&B.isValid?(this.option({dropInsideItem:B.dropInsideItem,toIndex:B.index}),this._getAction("onPlaceholderPrepared")((0,f.l)(this._getEventArgs(P),{placeholderElement:(0,p.u)(this._$placeholderElement),dragElement:(0,p.u)(W._$dragElement)})),this._updateItemPoints()):B.isValid||this.option({dropInsideItem:!1,toIndex:null})},_makeWidthCorrection:function(P,B){if(this._$scrollable=this._getScrollable(P),this._$scrollable){var W=(0,o.dz)(this._$scrollable),N=this._$scrollable.offset().left-P.offset().left,V=(0,o.Y_)(P)-N-W;N>0&&(B-=N),V>0&&(B-=V)}return B},_updatePlaceholderSizes:function(P,B){var W=this.option("dropInsideItem"),N=(0,c.Z)(B),V=this._isVerticalOrientation(),U="",K="";P.toggleClass(this._addWidgetPrefix("placeholder-inside"),W),(V||W)&&(U=(0,o.Y_)(N)),(!V||W)&&(K=(0,o.zp)(N)),U=this._makeWidthCorrection(N,U),P.css({width:U,height:K})},_moveItem:function(P,B,W){var N,V=this._getItems(),U=V[B],K=this._getSourceDraggable();W&&(P=P.clone(),K._toggleDragSourceClass(!1,P)),U||(N=V[B-1]),this._moveItemCore(P,U,N)},_moveItemCore:function(P,B,W){B||W?W?P.insertAfter((0,c.Z)(W)):P.insertBefore((0,c.Z)(B)):P.appendTo(this.$element())},_getDragStartArgs:function(P,B){return(0,f.l)(this.callBase.apply(this,arguments),{fromIndex:this._getElementIndex(B)})},_getEventArgs:function(P){var B,W,N,V=this._getSourceDraggable(),U=this._getTargetDraggable(),K=null===(B=null===(W=this._getSourceElement())||void 0===W||null===(N=W.parent())||void 0===N?void 0:N.length)||void 0===B||B,Y=U.option("dropInsideItem"),J=Y||!K;return(0,f.l)(this.callBase.apply(this,arguments),{fromIndex:V.option("fromIndex"),toIndex:this._normalizeToIndex(U.option("toIndex"),J),dropInsideItem:Y})},_optionChanged:function(P){var B=P.name;switch(B){case"onDragChange":case"onPlaceholderPrepared":case"onAdd":case"onRemove":case"onReorder":this["_"+B+"Action"]=this._createActionByOption(B);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(W=>{var N=W?P.value:P.previousValue;if(null!==N){var V=(0,c.Z)(this._getItems()[N]);this._toggleDragSourceClass(W,V)}});break;case"dropInsideItem":this._optionChangedDropInsideItem(P);break;case"toIndex":this._optionChangedToIndex(P);break;default:this.callBase(P)}},_optionChangedDropInsideItem:function(){this._isIndicateMode()&&this._$placeholderElement&&this._movePlaceholder()},_isPositionVisible:function(P){var W,B=this.$element();if("hidden"!==B.css("overflow")?W=B.get(0):B.parents().each(function(){if("visible"!==(0,c.Z)(this).css("overflow"))return W=this,!1}),W){var N=(0,u.l)(W),V=this._isVerticalOrientation(),U=V?"top":"left",Y=V?x.pageYOffset:x.pageXOffset;if(P[U]<N[U]+Y||P[U]>N[V?"bottom":"right"]+Y)return!1}return!0},_optionChangedToIndex:function(P){var B=P.value;if(this._isIndicateMode()){var W=null!==B&&B>=0;this._togglePlaceholder(W),W&&this._movePlaceholder()}else this._moveItems(P.previousValue,P.value,P.fullUpdate)},update:function(){if(null!==this.option("fromIndex")||null!==this.option("toIndex")){this._updateItemPoints(!0),this._updateDragSourceClass();var P=this.option("toIndex");this._optionChangedToIndex({value:P,fullUpdate:!0})}},_updateDragSourceClass:function(){var P=this._getActualFromIndex(),B=(0,c.Z)(this._getItems()[P]);B.length&&(this._$sourceElement=B,this._toggleDragSourceClass(!0,B))},_makeLeftCorrection:function(P){var B=this._$scrollable;if(B&&this._isVerticalOrientation()){var W=B.offset().left-P;W>0&&(P+=W)}return P},_movePlaceholder:function(){var P=this._$placeholderElement||this._createPlaceholder();if(P){var B=this._getItems(),W=this.option("toIndex"),N=this._isVerticalOrientation(),V=this.option("rtlEnabled"),U=this.option("dropInsideItem"),K=null,Y=B[W];if(Y){var J=(0,c.Z)(Y);K=J.offset(),!N&&V&&!U&&(K.left+=(0,o.Y_)(J,!0))}else{var j=Y=this._getPrevVisibleItem(B,W);j&&(K=(0,c.Z)(j).offset(),N?K.top+=(0,o.zp)(j,!0):V||(K.left+=(0,o.Y_)(j,!0)))}this._updatePlaceholderSizes(P,Y),K&&!this._isPositionVisible(K)&&(K=null),K&&(K.left=this._makeLeftCorrection(K.left),this._move(K,P)),P.toggle(!!K)}},_getPositions:function(P,B,W,N){for(var V=[],U=0;U<P.length;U++){var K=0;null!==N&&null!==W?(-1===W?U>=N&&(K=B):-1===N?U>W&&(K=-B):W<N?U>W&&U<N&&(K=-B):W>N&&U>=N&&U<W&&(K=B),V.push(K)):V.push(K)}return V},_getDraggableElementSize:function(P){var B=this._getDraggableElement(),W=this.option("draggableElementSize");return W||(W=P?((0,o.zp)(B)+(0,o.zp)(B,!0))/2:((0,o.Y_)(B)+(0,o.Y_)(B,!0))/2,this.option("autoUpdate")||this.option("draggableElementSize",W)),W},_getActualFromIndex:function(){var{fromIndex:P,fromIndexOffset:B,offset:W}=this.option();return null==P?null:P+B-W},_moveItems:function(P,B,W){for(var N=this._getActualFromIndex(),V=this._isVerticalOrientation(),U=V?"top":"left",K=this._getDraggableElementSize(V),Y=this._getItems(),J=this._getPositions(Y,K,N,P),j=this._getPositions(Y,K,N,B),ee=this.option("animation"),G=this.option("rtlEnabled"),q=0;q<Y.length;q++){var Z=Y[q],X=J[q],M=j[q];null===B||null===N?w(Z):(X!==M||W&&M)&&O(Z,(0,f.l)({},ee,{to:{[U]:!V&&G?-M:M}}))}},_toggleDragSourceClass:function(P,B){var W=B||this._$sourceElement;this.callBase.apply(this,arguments),this._isIndicateMode()||W&&W.toggleClass(this._addWidgetPrefix("source-hidden"),P)},_dispose:function(){this.reset(),this.callBase()},_fireAddEvent:function(P){var B=this._getEventArgs(P);return this._getAction("onAdd")(B),B.cancel},_fireRemoveEvent:function(P){var B=this._getSourceDraggable(),W=this._getEventArgs(P);return B._getAction("onRemove")(W),W.cancel},_fireReorderEvent:function(P){var B=this._getEventArgs(P);return this._getAction("onReorder")(B),B.promise||(new g.BH).resolve()}});(0,C.Z)("dxSortable",k);const R=k},5335:(kn,he,l)=>{"use strict";l.d(he,{BM:()=>ee,NJ:()=>j,vK:()=>G});var o=l(1805),c=l(9904),I=l(7572),C=l(5873),f=l(913),a=l(8159),p=l(7078),s=l(8225),u=l(227),d=l(4328),h=l(3576),g=l(4594),x=l(2722),b=l(1828),y=l(4514);const P=class R extends h.Z{_getDefaultOptions(){return(0,C.l)(super._getDefaultOptions(),{shading:!1,useInkRipple:!1,callOverlayRenderShading:!1,width:"auto",zIndex:1500,_observeContentResize:!1,container:this.$element(),visualContainer:(0,y.Jj)()})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>(0,x.x2)(),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 Z=this.option("label");if(Z){var X=(0,c.Z)("<div>").addClass("dx-fa-button-label"),M=(0,c.Z)("<div>").addClass("dx-fa-button-label-wrapper");this._$label=M.prependTo(this.$content()).append(X.text(Z)),this.$content().toggleClass("dx-fa-button-content-reverse",this._isPositionLeft(this.option("parentPosition")))}else this._$label=null}_isPositionLeft(Z){var X="";return Z&&((0,b.PO)(Z)&&Z.at?X=Z.at.x?Z.at.x:Z.at:"string"==typeof Z&&(X=Z)),"left"===X.split(" ")[0]}_renderButtonIcon(Z,X,M){Z&&Z.remove(),Z=(0,c.Z)("<div>").addClass(M);var se=(0,d.H)(X);return Z.append(se).appendTo(this.$content()),Z}_renderIcon(){this._$icon=this._renderButtonIcon(this._$icon,this._options.silent("icon"),"dx-fa-button-icon")}_renderWrapper(){this._options.silent("callOverlayRenderShading")&&super._renderWrapper()}_getVisibleActions(Z){return(Z||this.option("actions")||[]).filter(M=>M.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 Z=this.option("zIndex");this._$wrapper.css("zIndex",Z),this._$content.css("zIndex",Z)}_setClickAction(){var Z=(0,s.V4)(u.u,this.NAME),X=this.$element().find(".dx-overlay-content");f.Z.off(X,Z),f.Z.on(X,Z,M=>{var se={event:M,actionElement:this.element(),element:this._getActionComponent().$element()};this._clickAction(se)})}_defaultActionArgs(){return{component:this._getActionComponent()}}_renderClick(){this._clickAction=this._getActionComponent()._createActionByOption("onClick"),this._setClickAction()}_renderInkRipple(){this._inkRipple=(0,g.sY)()}_getInkRippleContainer(){return this._$icon}_toggleActiveState(Z,X,M){if(super._toggleActiveState.apply(this,arguments),this._inkRipple){var se={element:this._getInkRippleContainer(),event:M};X?this._inkRipple.showWave(se):this._inkRipple.hideWave(se)}}_optionChanged(Z){switch(Z.name){case"icon":this._renderIcon();break;case"onClick":this._renderClick();break;case"label":this._renderLabel();break;case"visible":this._currentVisible=Z.previousValue,Z.value?this._show():this._hide();break;case"useInkRipple":this._render();break;default:super._optionChanged(Z)}}};var{getSwatchContainer:B}=p.Z,U="dx-state-invisible",K=null,Y=q=>{var{icon:Z,onClick:X,label:M,visible:se,index:ge,onContentReady:De,activeStateEnabled:Fe,hoverStateEnabled:Ae,animation:ne,id:fe,actions:_e,actionComponent:ie,actionVisible:de,zIndex:le,position:pe,hint:Ee,parentPosition:ae,direction:te}=q.option();return(0,C.l)({},{icon:Z,onClick:X,label:M,visible:se,index:ge,onContentReady:De,activeStateEnabled:Fe,hoverStateEnabled:Ae,animation:ne,id:fe,actions:_e,actionComponent:ie,actionVisible:de,zIndex:le,position:pe,hint:Ee,parentPosition:ae,direction:te},{onInitialized:null,onDisposing:null})};class J extends P{_getDefaultOptions(){return(0,C.l)(super._getDefaultOptions(),(0,C.l)({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},(0,I.Z)().floatingActionButtonConfig,{shading:!1}))}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>(0,x.x2)(),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(U)}_renderClick(){this._clickAction=1===this._getVisibleActions().length?this._getActionComponent()._createActionByOption("onClick"):this._createAction(this._clickHandler.bind(this)),this._setClickAction()}_getVisibleActions(Z){return(Z||this.option("actions")).filter(M=>M.option("visible"))}_getCurrentOptions(Z){var X=K._getVisibleActions(Z),M=this._getDefaultOptions();return delete M.elementAttr,delete M.closeOnOutsideClick,1===X.length?(0,C.l)(Y(X[0]),{position:this._getPosition()}):(0,C.l)(M,{visible:0!==X.length})}_clickHandler(){var Z=this._actionItems.filter(se=>se.option("actionVisible")).sort((se,ge)=>se.option("index")-ge.option("index"));if(1!==Z.length){for(var X=Z.length-1,M=0;M<Z.length;M++)Z[M].option("animation",this._getActionAnimation(Z[M],M,X)),Z[M].option("position",this._getActionPosition(Z,M)),Z[M]._$wrapper.css("position",this._$wrapper.css("position")),Z[M].toggle();(0,I.Z)().floatingActionButtonConfig.shading&&(this._isShadingShown=!this.option("shading"),this.option("shading",this._isShadingShown)),this._$icon.toggleClass(U),this._$closeIcon.toggleClass(U)}}_updateZIndexStackPosition(){super._updateZIndexStackPosition(),this._overlayStack().push(this)}_renderActions(){var Z=this.option("actions");if(this._actionItems&&this._actionItems.length&&(this._actionItems.forEach(ge=>{ge.dispose(),ge.$element().remove()}),this._actionItems=[]),this._actionItems=[],1!==Z.length)for(var X=0;X<Z.length;X++){var M=Z[X],se=(0,c.Z)("<div>").appendTo(B(M.$element()));f.Z.off(se,"click"),f.Z.on(se,"click",()=>{this._clickHandler()}),M._options.silent("actionComponent",M),M._options.silent("parentPosition",this._getPosition()),M._options.silent("actionVisible",M._options.silent("visible")),this._actionItems.push(this._createComponent(se,P,(0,C.l)({},Y(M),{visible:!1})))}}_getActionAnimation(Z,X,M){return Z._options.silent("animation.show.delay",30*X),Z._options.silent("animation.hide.delay",30*(M-X)),Z._options.silent("animation")}_getDirectionIndex(Z,X){if("auto"===X){var M=(0,o.Cr)(this.$content()),se=this.initialOption("indent")+this.initialOption("childIndent")*Z.length-M,ge=this.$content().offset().top;return se<ge||ge>=(0,o.Cr)(this._positionController._$wrapperCoveredElement)-M-ge?-1:1}return"down"!==X?-1:1}_getActionPosition(Z,X){var M=Z[X],se=this.initialOption("childOffset"),ge=M._options.silent("label")&&!this._$label?this._isPositionLeft(this._getPosition())?se:-se:0,De=this.initialOption("indent")+this.initialOption("childIndent")*X,Fe=this._getDirectionIndex(Z,this.option("direction"))*De,Ae=M._options.silent("label")?this._isPositionLeft(this._getPosition())?"left":"right":"center";return{of:this.$content(),at:Ae,my:Ae,offset:{x:ge,y:Fe}}}_outsideClickHandler(Z){this._isShadingShown&&(0,c.Z)(Z.target)[0]===this._$wrapper[0]&&(Z.preventDefault(),this._clickHandler())}_setPosition(){this.option("visible")&&(this._hide(),this._show())}_getPosition(){return this._getDefaultOptions().position}_getInkRippleContainer(){return this.$content()}_optionChanged(Z){switch(Z.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(Z),this._setPosition();break;case"label":this._isVisible()&&this._renderLabel(),this._setPosition();break;case"icon":this._isVisible()&&this._renderIcon();break;default:super._optionChanged(Z)}}}function j(q){q._options.silent("onInitializing",null);var Z=!1;if(K){var M=K.option("actions");if(M.forEach(se=>{if(se._options.silent("id")===q._options.silent("id"))return Z=!0,q}),delete K._options.position,Z)K.option(1===M.length?(0,C.l)({},Y(M[0]),{actions:M,position:K._getPosition()}):(0,C.l)(K._getCurrentOptions(M),{actions:M}));else{if(K._getVisibleActions(M).length>=K.option("maxSpeedDialActionCount"))return q.dispose(),void a.Z.log("W1014");M.push(q),K.option((0,C.l)(K._getCurrentOptions(M),{actions:M}))}}else{var X=(0,c.Z)("<div>").appendTo(B(q.$element()));K=q._createComponent(X,J,(0,C.l)({},Y(q),{actions:[q]}))}}function ee(q){if(K){var Z=K.option("actions");Z.length!==(Z=Z.filter(M=>M._options.silent("id")!==q)).length&&(Z.length?K.option(1===Z.length?(0,C.l)({},Y(Z[0]),{actions:Z}):{actions:Z}):(K.dispose(),K.$element().remove(),K=null))}}function G(){if(K){var q=K._getVisibleActions(),Z=1===q.length?q[0].option("icon"):K._getDefaultOptions().icon,X=1===q.length?q[0].option("label"):K._getDefaultOptions().label;K.option({actions:K.option("actions"),icon:Z,closeIcon:K._getDefaultOptions().closeIcon,position:K._getPosition(),label:X,maxSpeedDialActionCount:K._getDefaultOptions().maxSpeedDialActionCount,direction:K._getDefaultOptions().direction})}}},3078:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>P});var o=l(1805),c=l(9904),I=l(4505),C=l(5873),f=l(2941),a=l(9897),p=l(8506),s=l(7257),u=l(152),d=l(8646),h=l(7674),x=l(4328),b=l(6881),y=l(1828),E=l(4823),S=l(4514),R=s.Z.inherit({_getDefaultOptions:function(){return(0,C.l)(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:function(B){return B?B.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===f.Z.real().deviceType&&!f.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!I.touch},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 E.c(function(B,W){if((0,y.PO)(W)){var N=(0,x.H)(W.icon);N&&B.append(N),(0,y.$K)(W.title)&&!(0,y.PO)(W.title)&&B.append(a.Z.createTextNode(W.title))}else(0,y.$K)(W)&&B.text(String(W));B.wrapInner((0,c.Z)("<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 B=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout(function(){B._updateLayout()},0))},_renderLayout:function(){if(this._tabs)this._updateLayout();else{var B=this.$element();this._$tabContainer=(0,c.Z)("<div>").addClass("dx-tabpanel-tabs").appendTo(B);var W=(0,c.Z)("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(W,u.Z,this._tabConfig()),this._$container=(0,c.Z)("<div>").addClass("dx-tabpanel-container").appendTo(B),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if((0,S.Ym)()){var B=(0,o.zp)(this._$tabContainer);this._$container.css({marginTop:-B,paddingTop:B})}},_refreshActiveDescendant:function(){if(this._tabs){var B=this._tabs,W=B.itemElements(),N=(0,c.Z)(W[B.option("selectedIndex")]),V=this.getFocusedItemId();this.setAria("controls",void 0,(0,c.Z)(W)),this.setAria("controls",V,N)}},_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(B){this.option("selectedIndex",B.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(B){if("focusedElement"===B.name)if(B.value){var W=(0,c.Z)(B.value),N=this._itemElements().eq(W.index());this.option("focusedElement",(0,b.u)(N))}else this.option("focusedElement",B.value)}.bind(this),onFocusIn:function(B){this._focusInHandler(B.event)}.bind(this),onFocusOut:function(B){this._isFocusOutHandlerExecuting||this._focusOutHandler(B.event)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1)},_updateFocusState:function(B,W){this.callBase(B,W),B.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(W,this._focusTarget())},_focusOutHandler:function(B){this._isFocusOutHandlerExecuting=!0,this.callBase.apply(this,arguments),this._tabs._focusOutHandler(B),this._isFocusOutHandlerExecuting=!1},_setTabsOption:function(B,W){this._tabs&&this._tabs.option(B,W)},_visibilityChanged:function(B){B&&(this._tabs._dimensionChanged(),this._updateLayout())},registerKeyHandler:function(B,W){this.callBase(B,W),this._tabs&&this._tabs.registerKeyHandler(B,W)},repaint:function(){this.callBase(),this._tabs.repaint()},_optionChanged:function(B){var W=B.name,N=B.value,V=B.fullName;switch(W){case"dataSource":default:this.callBase(B);break;case"items":this._setTabsOption(W,this.option(W)),this._updateLayout(),this.option("repaintChangesOnly")||this._tabs.repaint(),this.callBase(B);break;case"width":this.callBase(B),this._tabs.repaint();break;case"selectedIndex":case"selectedItem":if(this._setTabsOption(V,N),this.callBase(B),!0===this.option("focusStateEnabled")){var U=this.option("selectedIndex"),K=this._itemElements().eq(U);this.option("focusedElement",(0,b.u)(K))}break;case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(V,N),this.callBase(B);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(V,N);break;case"focusedElement":var Y=N&&(0,c.Z)(N).index(),J=N&&this._tabs._itemElements().eq(Y);this._setTabsOption("focusedElement",(0,b.u)(J)),this.callBase(B);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",N);break;case"badgeExpr":this._invalidate()}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});R.ItemClass=class g extends d.Z{_renderWatchers(){return this._startWatcher("badge",h.ZT),super._renderWatchers()}},(0,p.Z)("dxTabPanel",R);const P=R},152:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>te});var o=l(1805),c=l(9904),I=l(913),C=l(2941),f=l(8506),a=l(219),p=l(4594),s=l(8225),u=l(5873),d=l(1828),h=l(8690),g=l(2718),x=l(8646),y="dx-badge";const S=x.Z.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(re){if(this._$element.children("."+y).remove(),re){var oe=(0,c.Z)("<div>").addClass("dx-tabs-item-badge").addClass(y).text(re);this._$element.append(oe)}}});var O="dx-tabs-expanded",w=l(2722),T=l(5180),k=l(8487),R=l(5286),P=l(4328),B=l(4823),W=l(4270);function N(re){return re.scrollWidth-re.clientWidth}l(4609);var q="dx-tabs-stretched",X="dx-tabs-nav-buttons",M="dx-overflow-hidden",_e="chevronnext",ie="chevronprev",ae=R.Z.inherit({_activeStateUnit:".dx-tab",_getDefaultOptions:function(){return(0,u.l)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(re){return re?re.badge:void 0},_itemAttributes:{role:"tab"}})},_defaultOptionsRules:function(){var re=(0,w.Vk)();return this.callBase().concat([{device:function(){return"desktop"!==C.Z.real().deviceType},options:{showNavButtons:!1}},{device:{deviceType:"desktop"},options:{scrollByContent:!1}},{device:function(){return"desktop"===C.Z.real().deviceType&&!C.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,w.x2)(re)},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 B.c(function(re,oe){(0,d.PO)(oe)?this._prepareDefaultItemTemplate(oe,re):re.text(String(oe));var ye=(0,P.H)(oe.icon);ye&&ye.prependTo(re),re.wrapInner((0,c.Z)("<span>").addClass("dx-tab-text"))}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))})},_createItemByTemplate:function(re,oe){var{itemData:ye,container:Pe,index:Ne}=oe;return this._deferredTemplates[Ne]=new W.BH,re.render({model:ye,container:Pe,index:Ne,onRendered:()=>this._deferredTemplates[Ne].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(M)},_render:function(){this.callBase(),this._deferRenderScrolling()},_deferRenderScrolling(){W.gx.apply(this,this._deferredTemplates).done(()=>this._renderScrolling())},_renderScrolling:function(){var re=[q,O,M];if(this.$element().removeClass(re.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()){this._scrollable||(this._renderScrollable(),this._renderNavButtons());var oe=this.getScrollable();if(oe.update(),this.option("rtlEnabled")){var ye=N((0,c.Z)(this.getScrollable().container()).get(0));oe.scrollTo({left:ye})}this._updateNavButtonsVisibility(),this._scrollToItem(this.option("selectedItem"))}this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(q),this.$element().removeClass(X).addClass(O))},_isItemsWidthExceeded:function(){return this._getSummaryItemsWidth(this._getVisibleItems(),!0)-1>(0,o.dz)(this.$element())},_needStretchItems:function(){var re=this._getVisibleItems(),oe=(0,o.dz)(this.$element()),ye=[];return(0,g.S6)(re,(Ne,ft)=>{ye.push((0,o.Y_)(ft,!0))}),Math.max.apply(null,ye)>=oe/re.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=(0,p.sY)()},_toggleActiveState:function(re,oe,ye){if(this.callBase.apply(this,arguments),this._inkRipple){var Pe={element:re,event:ye};oe?this._inkRipple.showWave(Pe):this._inkRipple.hideWave(Pe)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=(0,c.Z)("<div>").addClass("dx-tabs-wrapper"),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var re=this.$element().wrapInner((0,c.Z)("<div>").addClass("dx-tabs-scrollable")).children();this._scrollable=this._createComponent(re,k.Z,{direction:"horizontal",showScrollbar:"never",useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:()=>{this._updateNavButtonsVisibility()}}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(re){if(this._scrollable){var oe=this._editStrategy.getItemElement(re);this._scrollable.scrollToElement(oe)}},_renderNavButtons:function(){if(this.$element().toggleClass(X,this.option("showNavButtons")),this.option("showNavButtons")){var re=this.option("rtlEnabled");this._leftButton=this._createNavButton(-30,re?_e:ie);var oe=this._leftButton.$element();oe.addClass("dx-tabs-nav-button-left"),this.$element().prepend(oe),this._rightButton=this._createNavButton(30,re?ie:_e);var ye=this._rightButton.$element();ye.addClass("dx-tabs-nav-button-right"),this.$element().append(ye)}},_updateNavButtonsVisibility:function(){var re=this.getScrollable();this._leftButton&&this._leftButton.option("disabled",function U(re,oe){return Math.round(re)<=oe}(re.scrollLeft(),1)),this._rightButton&&this._rightButton.option("disabled",function K(re,oe,ye){return Math.round(N(re)-oe)<=ye}((0,c.Z)(re.container()).get(0),re.scrollLeft(),1))},_updateScrollPosition:function(re,oe){this._scrollable.update(),this._scrollable.scrollBy(re/oe)},_createNavButton:function(re,oe){var ye=this,Pe=ye._createAction(function(){ye._holdInterval=setInterval(function(){ye._updateScrollPosition(re,5)},5)}),Ne=(0,s.V4)(T.Z.name,"dxNavButton"),ft=(0,s.V4)(h.Z.up,"dxNavButton"),tt=(0,s.V4)(h.Z.out,"dxNavButton"),Be=this._createComponent((0,c.Z)("<div>").addClass("dx-tabs-nav-button"),a.Z,{focusStateEnabled:!1,icon:oe,onClick:function(){ye._updateScrollPosition(re,1)},integrationOptions:{}}),mt=Be.$element();return I.Z.on(mt,Ne,{timeout:300},function(nn){Pe({event:nn})}.bind(this)),I.Z.on(mt,ft,function(){ye._clearInterval()}),I.Z.on(mt,tt,function(){ye._clearInterval()}),Be},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(re){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(re[0]),{left:1,right:1})},_visibilityChanged:function(re){re&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(re){"single"===this.option("selectionMode")&&this.isItemSelected(re.currentTarget)||this.callBase(re)},_clean:function(){this._deferredTemplates=[],this._cleanScrolling(),this.callBase()},_optionChanged:function(re){switch(re.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":case"badgeExpr":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(re.name,re.value);break;case"width":this.callBase(re),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(re);break;default:this.callBase(re)}},_afterItemElementInserted(){this.callBase(),this._deferRenderScrolling()},_afterItemElementDeleted(re,oe){this.callBase(re,oe),this._renderScrolling()},getScrollable(){return this._scrollable}});ae.ItemClass=S,(0,f.Z)("dxTabs",ae);const te=ae},117:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>Fe});var o=l(1805),c=l(9904),I=l(2941),C=l(5610),f=l(913),a=l(8506),p=l(7674),s=l(682),u=l(4270),d=l(6520),h=l(6881),g=l(1828),x=l(4514),b=l(5873),y=l(2718),E=l(9960),S=l(9009),O=l(8225),w=l(227),T=l(5214),k=l(5981),R=l(5079),P=l(4823),B=l(8474),W=l(8159),N="dxTagData",K="dx-tag",Y="dx-tagbox-multi-tag",J="dx-tag-custom",j="dx-tag-remove-button",G="dx-tagbox-single-line",De=R.Z.inherit({_supportedKeys:function(){var Ae=this.callBase(),ne=_e=>this._list._keyboardHandler(_e),fe=this.option("rtlEnabled");return(0,b.l)({},Ae,{backspace:function(_e){if(this._isCaretAtTheStart()){this._processKeyboardEvent(_e),this._isTagRemoved=!0;var ie=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==ie.length&&(this._preserveFocusedTag=!0,this._removeTagElement(ie),delete this._preserveFocusedTag)}},upArrow:(_e,ie)=>_e.altKey||!this._list?Ae.upArrow.call(this,_e):ne(ie),downArrow:(_e,ie)=>_e.altKey||!this._list?Ae.downArrow.call(this,_e):ne(ie),del:function(_e){if(this._$focusedTag&&this._isCaretAtTheStart()){this._processKeyboardEvent(_e),this._isTagRemoved=!0;var ie=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(ie),delete this._preserveFocusedTag}},enter:function(_e,ie){var de=this._list&&null!==this._list.option("focusedElement");if(this.option("acceptCustomValue")&&!de)return _e.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler(_e));this.option("opened")&&(this._saveValueChangeEvent(_e),ne(ie),_e.preventDefault())},space:function(_e,ie){var de=this.option("opened"),le=this._shouldRenderSearchEvent();de&&!le&&(this._saveValueChangeEvent(_e),ne(ie),_e.preventDefault())},leftArrow:function(_e){if(!(!this._isCaretAtTheStart()||this._isEmpty()||this._isEditable()&&fe&&!this._$focusedTag)){_e.preventDefault();var ie=fe?"next":"prev";this._moveTagFocus(ie),!this.option("multiline")&&this._scrollContainer(ie)}},rightArrow:function(_e){if(this._isCaretAtTheStart()&&!this._isEmpty()&&(!this._isEditable()||fe||this._$focusedTag)){_e.preventDefault();var ie=fe?"prev":"next";this._moveTagFocus(ie),!this.option("multiline")&&this._scrollContainer(ie)}}})},_processKeyboardEvent:function(Ae){Ae.preventDefault(),Ae.stopPropagation(),this._saveValueChangeEvent(Ae)},_isEmpty:function(){return 0===this._getValue().length},_updateTagsContainer:function(Ae){this._$tagsContainer=Ae.addClass("dx-tag-container")},_allowSelectItemByTab:function(){return!1},_isCaretAtTheStart:function(){var Ae=(0,T.Z)(this._input());return 0===Ae.start&&0===Ae.end},_moveTagFocus:function(Ae,ne){if(!this._$focusedTag){var fe=this._tagElements();return this._$focusedTag="next"===Ae?fe.first():fe.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var _e=this._$focusedTag[Ae](".".concat(K));_e.length>0?this._replaceFocusedTag(_e):(ne||"next"===Ae&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(Ae){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=Ae,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(Ae){return Ae&&Ae.length&&Ae[0]!==this._focusTarget()[0]?Ae:this.callBase()},_getLabelContainer:function(){return this._$tagsContainer},_scrollContainer:function(Ae){if(!this.option("multiline")&&(0,x.Ym)()&&this._$tagsContainer){var ne=this._getScrollPosition(Ae);this._$tagsContainer.scrollLeft(ne)}},_getScrollPosition:function(Ae){return"start"===Ae||"end"===Ae?this._getBorderPosition(Ae):this._$focusedTag?this._getFocusedTagPosition(Ae):this._getBorderPosition("end")},_getBorderPosition:function(Ae){var ne=this.option("rtlEnabled");return"end"===Ae^ne^!ne?0:(ne?-1:1)*(this._$tagsContainer.get(0).scrollWidth-(0,o.Y_)(this._$tagsContainer))},_getFocusedTagPosition:function(Ae){var fe="next"===Ae^this.option("rtlEnabled"),{left:_e}=this._$focusedTag.position(),ie=this._$tagsContainer.scrollLeft();return fe&&(_e+=(0,o.Y_)(this._$focusedTag,!0)-(0,o.Y_)(this._$tagsContainer)),fe^_e<0&&(ie+=_e),ie},_setNextValue:p.ZT,_getDefaultOptions:function(){return(0,b.l)(this.callBase(),{value:[],showDropDownButton:!1,maxFilterQueryLength:1500,tagTemplate:"tag",selectAllText:S.Z.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(Ae){this._multiTagPreparingHandler(Ae.args[0])}.bind(this),excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler:function(Ae){var{length:ne}=this._getValue();Ae.text=this.option("showMultiTagOnly")?S.Z.getFormatter("dxTagBox-selected")(ne):S.Z.getFormatter("dxTagBox-moreSelected")(ne-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({tag:new P.c((Ae,ne)=>{var fe,_e=(0,c.Z)("<div>").addClass("dx-tag-content");(0,c.Z)("<span>").text(null!==(fe=ne.text)&&void 0!==fe?fe:ne).appendTo(_e),(0,c.Z)("<div>").addClass(j).appendTo(_e),Ae.append(_e)},["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})})},_toggleSubmitElement:function(Ae){Ae?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement:function(){this.option("useSubmitBehavior")&&(this._$submitElement=(0,c.Z)("<select>").attr("multiple","multiple").css("display","none").appendTo(this.$element()))},_setSubmitValue:function(){if(this.option("useSubmitBehavior")){for(var Ae=this._getValue(),ne=[],fe=0,_e=Ae.length;fe<_e;fe++){var ie=this._shouldUseDisplayValue(Ae[fe]);ne.push((0,c.Z)("<option>").val(ie?this._displayGetter(Ae[fe]):Ae[fe]).attr("selected","selected"))}this._getSubmitElement().empty().append(ne)}},_initMarkup:function(){this._tagElementsCache=(0,c.Z)();var Ae=!this.option("multiline");this.$element().addClass("dx-tagbox").toggleClass("dx-tagbox-only-select",!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(G,Ae),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 Ae=!(0,g.$K)(this.option("fieldTemplate"));this.$element().toggleClass("dx-tagbox-default-template",Ae).toggleClass("dx-tagbox-custom-template",!Ae),this.callBase()},_renderTagRemoveAction:function(){var Ae=this._createAction(this._removeTagHandler.bind(this)),ne=(0,O.V4)(w.u,"dxTagBoxTagRemove");f.Z.off(this._$tagsContainer,ne),f.Z.on(this._$tagsContainer,ne,".".concat(j),fe=>{Ae({event:fe})})},_renderSingleLineScroll:function(){var Ae=(0,O.V4)("dxmousewheel",this.NAME),ne=this.$element(),fe=this.option("multiline");f.Z.off(ne,Ae),"desktop"===I.Z.real().deviceType?fe||f.Z.on(ne,Ae,this._tagContainerMouseWheelHandler.bind(this)):this._$tagsContainer&&this._$tagsContainer.css("overflowX",fe?"":"auto")},_tagContainerMouseWheelHandler:function(Ae){var ne=this._$tagsContainer.scrollLeft(),fe=-.3*Ae.delta;if(!(0,O.j1)(Ae)&&(0,B.u)(this._$tagsContainer,fe,!0))return this._$tagsContainer.scrollLeft(ne+fe),!1},_renderEvents:function(){this.callBase();var Ae=this._input(),ne=(0,O.V4)("keydown",this.NAME);f.Z.on(Ae,ne,fe=>{var _e=(0,O.EV)(fe);!this._isControlKey(_e)&&this._isEditable()&&this._clearTagFocus()})},_popupWrapperClass:function(){return this.callBase()+" dx-tagbox-popup-wrapper"},_renderInput:function(){this.callBase(),this._renderPreventBlurOnInputClick()},_renderPreventBlurOnInputClick:function(){var Ae=(0,O.V4)("mousedown","dxTagBox");f.Z.off(this._inputWrapper(),Ae),f.Z.on(this._inputWrapper(),Ae,ne=>{ne.target!==this._input()[0]&&this._isFocused()&&ne.preventDefault()})},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return(0,u.gx)()},_clearTextValue:function(){this._input().val(""),this._toggleEmptinessEventHandler(),this.option("text","")},_focusInHandler:function(Ae){this._preventNestedFocusEvent(Ae)||this._scrollContainer("end"),this.callBase(Ae)},_renderInputValue:function(){return this.option("displayValue",this._searchValue()),this.callBase()},_restoreInputText:function(Ae){Ae||this._clearTextValue()},_focusOutHandler:function(Ae){this._preventNestedFocusEvent(Ae)||(this._clearTagFocus(),this._scrollContainer("start")),this.callBase(Ae)},_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",Ae=>this._popupElementTabHandler(Ae)),this._list.registerKeyHandler("escape",Ae=>this._popupElementEscHandler(Ae)))},_canListHaveFocus:function(){return"useButtons"===this.option("applyValueMode")},_listConfig:function(){var Ae=this.option("showSelectionControls")?"all":"multiple";return(0,b.l)(this.callBase(),{selectionMode:Ae,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:ne=>{var{value:fe}=ne;this._selectAllValueChangeAction({value:fe})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var Ae=new u.BH;return this._updateTagsContainer(this._$textEditorInputContainer),this._renderInputSize(),this._renderTags().done(()=>{this._popup&&this._popup.refreshPosition(),Ae.resolve()}).fail(Ae.reject),Ae.promise()},_listItemClickHandler:function(Ae){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&(this.callBase(Ae),this._saveValueChangeEvent(void 0))},_shouldClearFilter:function(){var Ae=this.callBase();return!this.option("showSelectionControls")&&Ae},_renderInputSize:function(){var Ae=this._input(),ne=Ae.val(),fe=(0,g.HD)(ne)&&ne,_e="",ie="",de=this.option("searchEnabled")||this.option("acceptCustomValue");if(fe&&de){var le=(0,d.l5)(Ae,ne,{includePaddings:!0});le.insertAfter(Ae),_e=(0,o.Y_)(le)+5,le.remove()}else ne||(ie=1);Ae.css("width",_e),Ae.attr("size",ie)},_renderInputSubstitution:function(){this.callBase(),this._updateWidgetHeight()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var Ae=this._getValue(),ne=this.option("maxDisplayedTags");return(0,g.$K)(ne)&&Ae.length>ne},_renderMultiTag:function(Ae){var ne=(0,c.Z)("<div>").addClass(K).addClass(Y),fe={multiTagElement:(0,h.u)(ne),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(fe),!fe.cancel&&(ne.data(N,fe.text),ne.insertBefore(Ae),this._tagTemplate.render({model:fe.text,container:(0,h.u)(ne)}),ne)},_getFilter:function(Ae){var ne=this._dataController.filter(),fe=Ae.getCombinedFilter(this.option("valueExpr"),ne),_e=encodeURI(JSON.stringify(fe)).length,ie=this.option("maxFilterQueryLength");if(_e<=ie)return fe;W.Z.log("W1019",ie)},_getFilteredItems:function(Ae){var ne,fe;null===(ne=this._loadFilteredItemsPromise)||void 0===ne||ne.reject();var _e=new s.M(Ae),ie=null===(fe=this._list)||void 0===fe?void 0:fe.option("selectedItems"),de=!!ie&&this._list._dataController.isLoaded(),le=ie||this.option("selectedItems"),pe=_e.getLocalFilter(this._valueGetter),Ee=le.filter(pe),ae=Ee.length===Ae.length,te=new u.BH,re=this._dataController;if((!this._isDataSourceChanged||de)&&ae)return te.resolve(Ee).promise();var{customQueryParams:oe,expand:ye,select:Pe}=re.loadOptions(),Ne=this._getFilter(_e);return re.loadFromStore({filter:Ne,customQueryParams:oe,expand:ye,select:Pe}).done((ft,tt)=>{if(this._isDataSourceChanged=!1,this._disposed)te.reject();else{var{data:Be}=(0,k.r6)(ft,tt),mt=re.applyMapFunction(Be);te.resolve(mt.filter(pe))}}).fail(te.reject),this._loadFilteredItemsPromise=te,te.promise()},_createTagsData:function(Ae,ne){var fe=[],_e={},ie="this"===this._valueGetterExpr(),de={};ne.forEach(Ee=>{var ae=ie?JSON.stringify(Ee):this._valueGetter(Ee);de[ae]=Ee});var le=[];Ae.forEach((Ee,ae)=>{var te=de[ie?JSON.stringify(Ee):Ee];if(ie&&!(0,g.$K)(te))le.push(this._loadItem(Ee,_e).always(oe=>{var ye=this._createTagData(fe,oe,Ee,ae);fe.splice(ae,0,ye)}));else{var re=this._createTagData(fe,te,Ee,ae);fe.splice(ae,0,re)}});var pe=new u.BH;return u.gx.apply(this,le).always(function(){pe.resolve(fe)}),pe.promise()},_createTagData:function(Ae,ne,fe,_e){if((0,g.$K)(ne))return this._selectedItems.push(ne),ne;var ie=this.option("selectedItem");return this._valueGetter(ie)===fe?ie:fe},_isGroupedData:function(){return this.option("grouped")&&!this._dataController.group()},_getItemsByValues:function(Ae){var ne=[];return Ae.forEach(function(fe){var _e=this._getItemFromPlain(fe);(0,g.$K)(_e)&&ne.push(_e)}.bind(this)),ne},_getFilteredGroupedItems:function(Ae){var ne=new u.BH;return this._filteredGroupedItemsLoadPromise&&this._dataController.cancel(this._filteredGroupedItemsLoadPromise.operationId),this._dataController.items().length?ne.resolve(this._getItemsByValues(Ae)):this._filteredGroupedItemsLoadPromise=this._dataController.load().done(()=>{ne.resolve(this._getItemsByValues(Ae))}).fail(()=>{ne.resolve([])}).always(()=>{this._filteredGroupedItemsLoadPromise=void 0}),ne.promise()},_loadTagsData:function(){var Ae=this._getValue(),ne=new u.BH;return this._selectedItems=[],(this._isGroupedData()?this._getFilteredGroupedItems(Ae):this._getFilteredItems(Ae)).done(_e=>{this._createTagsData(Ae,_e).always(function(de){ne.resolve(de)})}).fail(ne.reject.bind(this)),ne.promise()},_renderTags:function(){var Ae=new u.BH,ne=!1;return this._shouldGetItemsFromPlain(this._valuesToUpdate)&&(this._selectedItems=this._getItemsFromPlain(this._valuesToUpdate),this._selectedItems.length===this._valuesToUpdate.length&&(this._renderTagsImpl(this._selectedItems),ne=!0,Ae.resolve())),ne||this._loadTagsData().done(fe=>{this._disposed?Ae.reject():(this._renderTagsImpl(fe),Ae.resolve())}).fail(Ae.reject),Ae.promise()},_renderTagsImpl:function(Ae){this._renderTagsCore(Ae),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus()},_shouldGetItemsFromPlain:function(Ae){return Ae&&this._dataController.isLoaded()&&Ae.length<=this._getPlainItems().length},_getItemsFromPlain:function(Ae){var ne=this._getSelectedItemsFromList(Ae);if(0===ne.length&&Ae.length>0||ne.length<Ae.length){var _e=this._getPlainItems();ne=this._filterSelectedItems(_e,Ae)}return ne},_getSelectedItemsFromList:function(Ae){var ne,fe=null===(ne=this._list)||void 0===ne?void 0:ne.option("selectedItems"),_e=[];return Ae.length===fe?.length&&(_e=this._filterSelectedItems(fe,Ae)),_e},_filterSelectedItems:function(Ae,ne){return Ae.filter(_e=>{for(var ie,de=0;de<ne.length;de++)if((0,g.Kn)(ie=ne[de])){if(this._isValueEquals(_e,ie))return!0}else if(this._isValueEquals(this._valueGetter(_e),ie))return!0;return!1},this)},_integrateInput:function(){this._isInputReady.resolve(),this.callBase();var Ae=this.$element().find(".".concat("dx-texteditor-input-container"));this._updateTagsContainer(Ae),this._renderTagRemoveAction()},_renderTagsCore:function(Ae){var ne;null===(ne=this._isInputReady)||void 0===ne||ne.reject(),this._isInputReady=new u.BH,this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags(),this._input().length>0&&this._isInputReady.resolve(),(0,u.gx)(this._isInputReady).done(()=>{this._renderTagsElements(Ae)})},_renderTagsElements(Ae){var ne=this._multiTagRequired()&&this._renderMultiTag(this._input()),fe=this.option("showMultiTagOnly"),_e=this.option("maxDisplayedTags");Ae.forEach((ie,de)=>{if(ne&&fe||ne&&!fe&&de-_e>=-1)return!1;this._renderTag(ie,ne||this._input())}),this._isFocused()&&this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var Ae=this._tagElements(),ne=this._getValue();(0,y.S6)(Ae,function(fe,_e){var ie=(0,c.Z)(_e),de=ie.data(N);null!=ne&&ne.includes(de)||ie.remove()})}},_renderEmptyState:function(){var Ae=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(Ae),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_refreshTagElements:function(){this._tagElementsCache=this.$element().find(".".concat(K))},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(Ae,ne){this._tagTemplate.render({model:Ae,container:(0,h.u)(ne)})},_renderTag:function(Ae,ne){var fe=this._valueGetter(Ae);if((0,g.$K)(fe)){var _e=this._getTag(fe),ie=this._displayGetter(Ae),de=this._getItemModel(Ae,ie);_e?((0,g.$K)(ie)&&(_e.empty(),this._applyTagTemplate(de,_e)),_e.removeClass(J)):(_e=this._createTag(fe,ne),(0,g.$K)(Ae)?this._applyTagTemplate(de,_e):(_e.addClass(J),this._applyTagTemplate(fe,_e)))}},_getItemModel:function(Ae,ne){return(0,g.Kn)(Ae)&&(0,g.$K)(ne)?Ae:(0,p.IS)(ne,"")},_getTag:function(Ae){for(var ne=this._tagElements(),fe=ne.length,_e=!1,ie=0;ie<fe;ie++){var de=ne[ie],le=(0,C.aT)(de,N);if(Ae===le||(0,p.bY)(Ae,le)){_e=(0,c.Z)(de);break}}return _e},_createTag:function(Ae,ne){return(0,c.Z)("<div>").addClass(K).data(N,Ae).insertBefore(ne)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(Ae){this.callBase(Ae),this._clearTextValue()},_removeTagHandler:function(Ae){var ne=Ae.event;ne.stopPropagation(),this._saveValueChangeEvent(ne);var fe=(0,c.Z)(ne.target).closest(".".concat(K));this._removeTagElement(fe)},_removeTagElement:function(Ae){if(Ae.hasClass(Y))this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags")));else{var ne=Ae.data(N);this._removeTagWithUpdate(ne),this._refreshTagElements()}},_updateField:p.ZT,_removeTagWithUpdate:function(Ae){var ne=this._getValue().slice();this._removeTag(ne,Ae),this.option("value",ne),0===ne.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(Ae){if("useButtons"!==this.option("applyValueMode")){var ne=this._getValue().slice();if((0,y.S6)(Ae.removedItems||[],(_e,ie)=>{this._removeTag(ne,this._valueGetter(ie))}),(0,y.S6)(Ae.addedItems||[],(_e,ie)=>{this._addTag(ne,this._valueGetter(ie))}),this._updateWidgetHeight(),!(0,p.bY)(this._list.option("selectedItemKeys"),this.option("value"))){var fe=this._list._getSelectionChangeEvent();fe&&this._saveValueChangeEvent(fe),this.option("value",ne)}this._list._saveSelectionChangeEvent(void 0)}},_removeTag:function(Ae,ne){var fe=this._valueIndex(ne,Ae);fe>=0&&Ae.splice(fe,1)},_addTag:function(Ae,ne){this._valueIndex(ne)<0&&Ae.push(ne)},_fieldRenderData:function(){return this._selectedItems.slice()},_completeSelection:function(Ae){this.option("showSelectionControls")||this._setValue(Ae)},_setValue:function(Ae){if(null!==Ae){var ne="useButtons"===this.option("applyValueMode"),fe=this._valueIndex(Ae),_e=(ne?this._list.option("selectedItemKeys"):this._getValue()).slice();fe>=0?_e.splice(fe,1):_e.push(Ae),"useButtons"===this.option("applyValueMode")?this._list.option("selectedItemKeys",_e):this.option("value",_e)}},_isSelectedValue:function(Ae,ne){return this._valueIndex(Ae,null,ne)>-1},_valueIndex:function(Ae,ne,fe){var _e=-1;return fe&&"object"!=typeof Ae&&(fe.indexByValues||(fe.indexByValues={},(ne=ne||this._getValue()).forEach(function(ie,de){fe.indexByValues[ie]=de})),Ae in fe.indexByValues)?fe.indexByValues[Ae]:(ne=ne||this._getValue(),(0,y.S6)(ne,(ie,de)=>{if(this._isValueEquals(Ae,de))return _e=ie,!1}),_e)},_lastValue:function(){var Ae=this._getValue();return Ae[Ae.length-1]??null},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(Ae){this.option("searchEnabled")&&Ae&&!this._isTagRemoved&&(this.callBase(arguments),this._setListDataSourceFilter()),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var Ae=this.$element(),ne=(0,o.Cr)(Ae);this._renderInputSize();var fe=(0,o.Cr)(Ae);this._popup&&this.option("opened")&&this._isEditable()&&fe!==ne&&this._popup.repaint()},_refreshSelected:function(){var Ae;null!==(Ae=this._list)&&void 0!==Ae&&Ae.getDataSource()&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter:function(){var Ae=this._dataController;delete this._userFilter,Ae.filter(null),Ae.reload()},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var Ae=this._dataController,ne=this._valueGetterExpr();if((0,g.HD)(ne)&&"this"!==ne){var fe=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=Ae.filter()||null),this._userFilter&&fe.push(this._userFilter),Ae.filter(fe.length?fe:null)}else Ae.filter(this._dataSourceFilterFunction.bind(this));Ae.load()}},_dataSourceFilterExpr:function(){var Ae=[];return this._getValue().forEach(ne=>Ae.push(["!",[this._valueGetterExpr(),ne]])),Ae},_dataSourceFilterFunction:function(Ae){var ne=this._valueGetter(Ae),fe=!0;return(0,y.S6)(this._getValue(),(_e,ie)=>{if(this._isValueEquals(ie,ne))return fe=!1,!1}),fe},_dataSourceChangedHandler:function(){this._isDataSourceChanged=!0,this.callBase.apply(this,arguments)},_applyButtonHandler:function(Ae){this._saveValueChangeEvent(Ae.event),this.option("value",this._getSortedListValues()),this._clearTextValue(),this.callBase(),this._cancelSearchIfNeed()},_getSortedListValues:function(){var Ae=this._getListValues(),ne=this.option("value")||[],fe=Ae.length?(0,E.Ed)(ne,Ae):[],_e=fe.length?(0,E.R1)(Ae,ne):Ae;return fe.concat(_e)},_getListValues:function(){return this._list?this._getPlainItems(this._list.option("selectedItems")).map(Ae=>this._valueGetter(Ae)):[]},_setListDataSource:function(){var Ae=this._getValue();this.callBase(),Ae!==this.option("value")&&this.option("value",Ae),this._refreshSelected()},_renderOpenedState:function(){this.callBase(),"useButtons"===this.option("applyValueMode")&&!this.option("opened")&&this._refreshSelected()},reset:function(){this._restoreInputText();var Ae=this._getDefaultOptions().value,ne=this.option("value");Ae&&0===Ae.length&&ne&&Ae.length===ne.length||this.callBase()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._valuesToUpdate,delete this._tagTemplate},_getSelectedItemsDifference(Ae,ne){if(!Ae.length)return{addedItems:[],removedItems:ne.slice()};if(!ne.length)return{addedItems:Ae.slice(),removedItems:[]};var fe=ne.reduce((ie,de)=>(ie[this._valueGetter(de)]=de,ie),{}),_e=[];return Ae.forEach(ie=>{var de=this._valueGetter(ie);fe[de]||_e.push(ie),delete fe[de]}),{addedItems:_e,removedItems:Object.values(fe)}},_optionChanged:function(Ae){var{name:ne,value:fe,previousValue:_e}=Ae;switch(ne){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":fe?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(fe);break;case"displayExpr":this.callBase(Ae),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(Ae),!fe&&this._refreshEvents();break;case"value":this._valuesToUpdate=fe,this.callBase(Ae),this._valuesToUpdate=void 0,this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(ne,fe);break;case"selectedItem":case"maxFilterQueryLength":break;case"selectedItems":this._selectionChangedAction(this._getSelectedItemsDifference(fe,_e));break;case"multiline":this.$element().toggleClass(G,!fe),this._renderSingleLineScroll();break;default:this.callBase(Ae)}},_getActualSearchValue:function(){return this.callBase()||this._searchValue()},_popupHidingHandler:function(){this.callBase(),this._clearFilter()}});(0,a.Z)("dxTagBox",De);const Fe=De},3447:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>E});var o=l(9904),c=l(4514),I=l(5873),C=l(8506),f=l(7383),a=l(8225),p=l(1805),s=(0,c.Jj)(),u=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],h="dx-searchbox",b=f.Z.inherit({ctor:function(S,O){O&&(this._showClearButton=O.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,I.l)(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 S=this._getMaxLength();S&&S>0?this._input().attr("maxLength",S):this._input().removeAttr("maxLength")},_renderSearchMode:function(){var S=this._$element;"search"===this.option("mode")?(S.addClass(h),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(S.removeClass(h),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var S=(0,o.Z)("<div>").addClass("dx-icon").addClass("dx-icon-search");S.prependTo(this._input().parent()),this._$searchIcon=S},_getLabelContainerWidth:function(){if(this._$searchIcon){var S=this._input().parent();return(0,p.dz)(S)-this._getLabelBeforeWidth()}return this.callBase()},_getLabelBeforeWidth:function(){var S=this.callBase();return this._$searchIcon&&(S+=(0,p.Y_)(this._$searchIcon)),S},_optionChanged:function(S){switch(S.name){case"maxLength":this._toggleMaxLengthProp();break;case"mode":this.callBase(S),this._updateLabelWidth();break;case"mask":this.callBase(S),this._toggleMaxLengthProp();break;default:this.callBase(S)}},_onKeyDownCutOffHandler:function(S){var O=this._getMaxLength();if(!O||S.ctrlKey||this._hasSelection())return!0;var w=(0,o.Z)(S.target),T=(0,a.EV)(S);return this._cutOffExtraChar(w),w.val().length<O||u.includes(T)||""!==s.getSelection().toString()},_onChangeCutOffHandler:function(S){var O=(0,o.Z)(S.target);this.option("maxLength")&&this._cutOffExtraChar(O)},_cutOffExtraChar:function(S){var O=this._getMaxLength(),w=S.val();O&&w.length>O&&S.val(w.substr(0,O))},_getMaxLength:function(){return this.option("mask")?null:this.option("maxLength")}});(0,C.Z)("dxTextBox",b);const E=b},5251:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>c});var o=l(9904);class c{constructor(C,f,a){this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=f,this.name=C,this.options=a||{}}_addPlaceMarker(C){this.$placeMarker=(0,o.Z)("<div>").appendTo(C)}_addToContainer(C){var{$placeMarker:f,$container:a}=this;f?f.replaceWith(C):C.appendTo(a)}_attachEvents(){throw"Not implemented"}_create(){throw"Not implemented"}_isRendered(){return!!this.instance}_isVisible(){var{editor:C,options:f}=this;return f.visible||!C.option("readOnly")}_isDisabled(){throw"Not implemented"}_shouldRender(){return this._isVisible()&&!this._isRendered()}dispose(){var{instance:C,$placeMarker:f}=this;C&&(C.dispose?C.dispose():C.remove(),this.instance=null),f&&f.remove()}render(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=C,this._isVisible()){var{instance:f,$element:a}=this._create();this.instance=f,this._attachEvents(f,a)}else this._addPlaceMarker(C)}update(){return this._shouldRender()&&this.render(),!!this.instance}}},7383:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>_r});var o=l(8506),c=l(9904),I=l(5214),C=l(9897),f=l(2941),a=l(4722);var u=l(2718),d=l(8225),h=l(913),g=l(5873),x=l(7),b=l(1828),y=l(9009),E=l(7674),S=l(9589),O=l(1186),w=l(5031),T=" ",k=w.Z.inherit({ctor:function(yn){this._value=T,(0,g.l)(this,yn)},next:function(yn){if(!arguments.length)return this._next;this._next=yn},text:E.ZT,value:E.ZT,rawValue:E.ZT,handle:E.ZT,_prepareHandlingArgs:function(yn,Rn){var ci,Si,ji;Rn=Rn||{};var lr=Object.prototype.hasOwnProperty.call(yn,"value")?"value":"text";return yn[lr]=null!==(ci=Rn.str)&&void 0!==ci?ci:yn[lr],yn.start=null!==(Si=Rn.start)&&void 0!==Si?Si:yn.start,yn.length=null!==(ji=Rn.length)&&void 0!==ji?ji:yn.length,yn.index=yn.index+1,yn},reset:E.ZT,clear:E.ZT,first:function(yn){return yn=yn||0,this.next().first(yn+1)},isAccepted:function(){return!1},adjustedCaret:function(yn,Rn,ci){return Rn?this._adjustedForward(yn,0,ci):this._adjustedBackward(yn,0,ci)},_adjustedForward:E.ZT,_adjustedBackward:E.ZT,isValid:E.ZT}),R=k.inherit({next:E.ZT,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}}),P=k.inherit({text:function(){return(this._value!==T?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(yn){var Rn=Object.prototype.hasOwnProperty.call(yn,"value")?yn.value:yn.text;if(!Rn||!Rn.length||!yn.length)return 0;if(yn.start)return this.next().handle(this._prepareHandlingArgs(yn,{start:yn.start-1}));var ci=Rn[0],Si=Rn.substring(1);return this._tryAcceptChar(ci,yn),this._accepted()?this.next().handle(this._prepareHandlingArgs(yn,{str:Si,length:yn.length-1}))+1:this.handle(this._prepareHandlingArgs(yn,{str:Si,length:yn.length-1}))},clear:function(yn){this._tryAcceptChar(T,yn),this.next().clear(this._prepareHandlingArgs(yn))},reset:function(){this._accepted(!1),this.next().reset()},_tryAcceptChar:function(yn,Rn){if(this._accepted(!1),this._isAllowed(yn,Rn)){var ci=yn===T?this.maskChar:yn;Rn.fullText=Rn.fullText.substring(0,Rn.index)+ci+Rn.fullText.substring(Rn.index+1),this._accepted(!0),this._value=yn}},_accepted:function(yn){if(!arguments.length)return!!this._isAccepted;this._isAccepted=!!yn},first:function(yn){return this._value===T?yn||0:this.callBase(yn)},_isAllowed:function(yn,Rn){return yn===T||this._isValid(yn,Rn)},_isValid:function(yn,Rn){var ci=this.allowedChars;return ci instanceof RegExp?ci.test(yn):(0,b.mf)(ci)?ci(yn,Rn.index,Rn.fullText):Array.isArray(ci)?ci.includes(yn):ci===yn},isAccepted:function(yn){return 0===yn?this._accepted():this.next().isAccepted(yn-1)},_adjustedForward:function(yn,Rn,ci){return Rn>=yn?Rn:this.next()._adjustedForward(yn,Rn+1,ci)||Rn+1},_adjustedBackward:function(yn,Rn){return Rn>=yn-1?yn:this.next()._adjustedBackward(yn,Rn+1)||Rn+1},isValid:function(yn){return this._isValid(this._value,yn)&&this.next().isValid(this._prepareHandlingArgs(yn))}}),B=P.inherit({value:function(){return this.next().value()},handle:function(yn){var Rn=Object.prototype.hasOwnProperty.call(yn,"value"),ci=Rn?yn.value:yn.text;if(!ci.length||!yn.length)return 0;if(yn.start||Rn)return this.next().handle(this._prepareHandlingArgs(yn,{start:yn.start&&yn.start-1}));var Si=ci[0],ji=ci.substring(1);this._tryAcceptChar(Si);var lr=this._isAllowed(Si)?this._prepareHandlingArgs(yn,{str:ji,length:yn.length-1}):yn;return this.next().handle(lr)+1},clear:function(yn){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(yn))},_tryAcceptChar:function(yn){this._accepted(this._isValid(yn))},_isValid:function(yn){return yn===this.maskChar},first:function(yn){return yn=yn||0,this.next().first(yn+1)},_adjustedForward:function(yn,Rn,ci){return Rn>=yn&&ci===this.maskChar?Rn:yn===Rn+1&&this._accepted()?yn:this.next()._adjustedForward(yn,Rn+1,ci)},_adjustedBackward:function(yn,Rn){return Rn>=yn-1?0:this.next()._adjustedBackward(yn,Rn+1)},isValid:function(yn){return this.next().isValid(this._prepareHandlingArgs(yn))}}),W=l(2722),N=l(1031),V=l(8690),U=l(5251),K=l(227),Y=V.Z.down;class Z extends U.Z{_create(){var Rn=(0,c.Z)("<span>").addClass("dx-clear-button-area").append((0,c.Z)("<span>").addClass("dx-icon").addClass("dx-icon-clear"));return this._addToContainer(Rn),this.update(!0),{instance:Rn,$element:Rn}}_isVisible(){var{editor:Rn}=this;return Rn._isClearButtonVisible()}_attachEvents(Rn,ci){var{editor:Si}=this,ji=Si.NAME;h.Z.on(ci,(0,d.V4)(Y,ji),lr=>{lr.preventDefault(),"mouse"!==lr.pointerType&&Si._clearValueHandler(lr)}),h.Z.on(ci,(0,d.V4)(K.u,ji),lr=>Si._clearValueHandler(lr))}_legacyRender(Rn,ci){Rn.toggleClass("dx-show-clear-button",ci)}update(){!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&super.update();var{editor:ci,instance:Si}=this,ji=ci.$element(),lr=this._isVisible();Si&&Si.toggleClass("dx-state-invisible",!lr),this._legacyRender(ji,lr)}}var X=l(219),M=l(5239),se="dx-custom-button-hovered";class ge extends U.Z{_attachEvents(Rn,ci){var{editor:Si}=this;h.Z.on(ci,M.B,()=>{Si.$element().addClass(se)}),h.Z.on(ci,M.u,()=>{Si.$element().removeClass(se)}),h.Z.on(ci,K.u,ji=>{ji.stopPropagation()})}_create(){var{editor:Rn}=this,ci=(0,c.Z)("<div>");return this._addToContainer(ci),{$element:ci,instance:Rn._createComponent(ci,X.Z,(0,g.l)({},this.options,{ignoreParentReadOnly:!0,disabled:this._isDisabled(),integrationOptions:this._prepareIntegrationOptions(Rn)}))}}_prepareIntegrationOptions(Rn){return(0,g.l)({},Rn.option("integrationOptions"),{skipTemplates:["content"]})}update(){var Rn=super.update();return this.instance&&this.instance.option("disabled",this._isDisabled()),Rn}_isVisible(){var{editor:Rn}=this;return Rn.option("visible")}_isDisabled(){return void 0!==this.options.disabled?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}var De=l(8159);function ne(yn,Rn){if(-1!==yn.indexOf(Rn))throw De.Z.Error("E1055",Rn);yn.push(Rn)}class _e{constructor(Rn,ci){this.buttons=[],this.defaultButtonsInfo=ci,this.editor=Rn}_compileButtonInfo(Rn){var ci=[];return Rn.map(Si=>{var ji="string"==typeof Si;ji||function Ae(yn){(()=>{if(!yn||"object"!=typeof yn||Array.isArray(yn))throw De.Z.Error("E1053")})(),(()=>{if(!("name"in yn))throw De.Z.Error("E1054")})(),(()=>{var{name:Rn}=yn;if("string"!=typeof Rn)throw De.Z.Error("E1055")})(),(()=>{var{location:Rn}=yn;"location"in yn&&"after"!==Rn&&"before"!==Rn&&(yn.location="after")})()}(Si);var lr=ji||function fe(yn,Rn){return!!Rn.find(ci=>ci.name===yn)}(Si.name,this.defaultButtonsInfo);if(lr){var Dr=this.defaultButtonsInfo.find(zr=>{var{name:Gr}=zr;return Gr===Si||Gr===Si.name});if(!Dr)throw De.Z.Error("E1056",this.editor.NAME,Si);return ne(ci,Si),Dr}var{name:kr}=Si;return ne(ci,kr),(0,g.l)(Si,{Ctor:ge})})}_createButton(Rn){var{Ctor:ci,options:Si,name:ji}=Rn,lr=new ci(ji,this.editor,Si);return this.buttons.push(lr),lr}_renderButtons(Rn,ci,Si){var ji=null;return(Rn?this._compileButtonInfo(Rn):this.defaultButtonsInfo).forEach(Dr=>{var{location:kr="after"}=Dr;kr===Si&&this._createButton(Dr).render((ji=ji||(0,c.Z)("<div>").addClass("dx-texteditor-buttons-container"),"before"===Si?ci.prepend(ji):ci.append(ji),ji))}),ji}clean(){this.buttons.forEach(Rn=>Rn.dispose()),this.buttons=[]}getButton(Rn){var ci=this.buttons.find(Si=>{var{name:ji}=Si;return ji===Rn});return ci&&ci.instance}renderAfterButtons(Rn,ci){return this._renderButtons(Rn,ci,"after")}renderBeforeButtons(Rn,ci){return this._renderButtons(Rn,ci,"before")}updateButtons(Rn){this.buttons.forEach(ci=>{(!Rn||-1!==Rn.indexOf(ci.name))&&ci.update()})}}var ie=l(7572),de=l(4270),le=l(1427),pe=l(6492),Ee="dx-texteditor-label",ae="dx-texteditor-with-label",te="dx-texteditor-with-floating-label",re="dx-texteditor-with-before-buttons",ft=l(1805),tt=l(9870),nn="dx-texteditor-input",ke="."+nn,xe="dx-placeholder",Ct="dx-validation-pending",fn=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],ct=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"];function Dt(yn){if((0,b.$K)(yn)&&!Array.isArray(yn))throw De.Z.Error("E1053")}const Ht=N.Z.inherit({ctor:function(yn,Rn){Rn&&Dt(Rn.buttons),this._buttonCollection=new _e(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._labelContainerElement=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,g.l)(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(yn){return(0,b.$K)(yn)&&!1!==yn?yn:""},stylingMode:(0,ie.Z)().editorStylingMode||"outlined",showValidationMark:!0,label:"",labelMode:"static",labelMark:""})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var yn=(0,W.Vk)();return(0,W.x2)(yn)},options:{stylingMode:(0,ie.Z)().editorStylingMode||"filled",labelMode:"floating"}}])},_getDefaultButtons:function(){return[{name:"clear",Ctor:Z}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(ke).first()},_isFocused:function(){return(0,x.si)(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find(".dx-texteditor-buttons-container").eq(0)},_isControlKey:function(yn){return-1!==ct.indexOf(yn)},_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=(0,c.Z)("<div>").addClass("dx-texteditor-container").appendTo(this.$element()),this._$textEditorInputContainer=(0,c.Z)("<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(Ct);var yn=this._getInputContainer(),Rn=(0,c.Z)("<div>").addClass("dx-pending-indicator").appendTo(yn);this._pendingIndicator=this._createComponent(Rn,le.Z)},_disposePendingIndicator:function(){this._pendingIndicator&&(this._pendingIndicator.dispose(),this._pendingIndicator.$element().remove(),this._pendingIndicator=null,this.$element().removeClass(Ct))},_renderValidationState:function(){this.callBase();var yn="pending"===this.option("validationStatus"),Rn=this.$element();yn?(!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()),Rn.toggleClass("dx-valid",!!this._showValidMark)},_renderButtonContainers:function(){var yn=this.option("buttons");this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(yn,this._$buttonsContainer),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(yn,this._$buttonsContainer)},_cleanButtonContainers:function(){var yn,Rn;null===(yn=this._$beforeButtonsContainer)||void 0===yn||yn.remove(),null===(Rn=this._$afterButtonsContainer)||void 0===Rn||Rn.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 yn=(0,c.Z)("<input>");return this._applyInputAttributes(yn,this.option("inputAttr")),yn},_setSubmitElementName:function(yn){var Rn=this.option("inputAttr.name");return this.callBase(yn||Rn||"")},_applyInputAttributes:function(yn,Rn){var ci=(0,g.l)(this._getDefaultAttributes(),Rn);yn.attr(ci).addClass(nn).css("minHeight",this.option("height")?"0":"")},_getDefaultAttributes:function(){var yn={autocomplete:"off"},{ios:Rn,mac:ci}=f.Z.real();return(Rn||ci)&&(yn.placeholder=" "),yn},_updateButtons:function(yn){this._buttonCollection.updateButtons(yn)},_updateButtonsStyling:function(yn){(0,u.S6)(this.option("buttons"),(Rn,ci)=>{var{options:Si,name:ji}=ci;if(Si&&!Si.stylingMode&&this.option("visible")){var lr=this.getButton(ji);lr.option&&lr.option("stylingMode","underlined"===yn?"text":"contained")}})},_renderValue:function(){return this._renderInputValue().promise()},_renderInputValue:function(yn){var Rn;yn=null!==(Rn=yn)&&void 0!==Rn?Rn:this.option("value");var ci=this.option("text"),Si=this.option("displayValue"),ji=this.option("displayValueFormatter");return void 0!==Si&&null!==yn?ci=ji(Si):(0,b.$K)(ci)||(ci=ji(yn)),this.option("text",ci),this._input().val()!==((0,b.$K)(ci)?ci:"")?this._renderDisplayText(ci):this._toggleEmptinessEventHandler(),(new de.BH).resolve()},_renderDisplayText:function(yn){this._input().val(yn),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var yn=this._input().get(0).validity;if(yn)return yn.valid}return!0},_toggleEmptiness:function(yn){this.$element().toggleClass("dx-texteditor-empty",yn),this._togglePlaceholder(yn)},_togglePlaceholder:function(yn){this.$element().find(".".concat(xe)).eq(0).toggleClass("dx-state-invisible",!yn)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(yn){this.callBase.apply(this,arguments);var Rn=this._input();Rn.prop("disabled",yn)},_toggleTabIndex:function(){var yn=this._input(),Rn=this.option("disabled"),ci=this.option("focusStateEnabled");Rn||!ci?yn.attr("tabIndex",-1):yn.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&&(tt.Z.unobserve(this._labelContainerElement),this._labelContainerElement=null)},_getLabelContainer:function(){return this._input()},_getLabelContainerWidth:function(){return(0,ft.dz)(this._getLabelContainer())},_getLabelBeforeWidth:function(){return(this._$beforeButtonsContainer&&(0,ft.dz)(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=(0,c.Z)(this._getLabelContainer()).get(0);var{label:yn,labelMode:Rn,labelMark:ci}=this.option(),Si={$editor:this.$element(),text:yn,mark:ci,mode:Rn,containsButtonsBefore:!!this._$beforeButtonsContainer,containerWidth:this._getLabelContainerWidth(),beforeWidth:this._getLabelBeforeWidth()};this._label=new class Ne{constructor(Rn){var{$editor:ci,text:Si,mode:ji,mark:lr,containsButtonsBefore:Dr,containerWidth:kr,beforeWidth:zr}=Rn;this._props={$editor:ci,text:Si,mode:ji,mark:lr,containsButtonsBefore:Dr,containerWidth:kr,beforeWidth:zr},this._id="".concat(Ee,"-").concat(new pe.Z),this._render(),this._toggleMarkupVisibility()}_isVisible(){return!!this._props.text&&"hidden"!==this._props.mode}_render(){this._$before=(0,c.Z)("<div>").addClass("dx-label-before"),this._$labelSpan=(0,c.Z)("<span>"),this._$label=(0,c.Z)("<div>").addClass("dx-label").append(this._$labelSpan),this._$after=(0,c.Z)("<div>").addClass("dx-label-after"),this._$root=(0,c.Z)("<div>").addClass(Ee).attr("id",this._id).append(this._$before).append(this._$label).append(this._$after),this._updateMark(),this._updateText(),this._updateBeforeWidth(),this._updateMaxWidth()}_toggleMarkupVisibility(){var Rn=this._isVisible();this._updateEditorBeforeButtonsClass(Rn),this._updateEditorLabelClass(Rn),Rn?this._$root.appendTo(this._props.$editor):this._$root.detach()}_updateEditorLabelClass(Rn){this._props.$editor.removeClass(te).removeClass(ae),Rn&&this._props.$editor.addClass("floating"===this._props.mode?te:ae)}_updateEditorBeforeButtonsClass(){var Rn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible();this._props.$editor.removeClass(re),Rn&&this._props.$editor.addClass(this._props.containsButtonsBefore?re:"")}_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(Rn){this._props.mode=Rn,this._toggleMarkupVisibility()}updateText(Rn){this._props.text=Rn,this._updateText(),this._toggleMarkupVisibility()}updateMark(Rn){this._props.mark=Rn,this._updateMark()}updateContainsButtonsBefore(Rn){this._props.containsButtonsBefore=Rn,this._updateEditorBeforeButtonsClass()}updateBeforeWidth(Rn){this._props.beforeWidth=Rn,this._updateBeforeWidth()}updateMaxWidth(Rn){this._props.containerWidth=Rn,this._updateMaxWidth()}}(Si),this._setLabelContainerAria(),this._labelContainerElement&&tt.Z.observe(this._labelContainerElement,this._updateLabelWidth.bind(this))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var yn=this._input(),Rn=this.option("placeholder"),ci=this._$placeholder=(0,c.Z)("<div>").attr("data-dx_placeholder",Rn);ci.insertAfter(yn),ci.addClass(xe)},_attachPlaceholderEvents:function(){var yn=(0,d.V4)(V.Z.up,this.NAME);h.Z.on(this._$placeholder,yn,()=>{h.Z.trigger(this._input(),"focus")}),this._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||(0,c.Z)()},_clearValueHandler:function(yn){var Rn=this._input();yn.stopPropagation(),this._saveValueChangeEvent(yn),this._clearValue(),!this._isFocused()&&h.Z.trigger(Rn,"focus"),h.Z.trigger(Rn,"input")},_clearValue:function(){this.reset()},_renderEvents:function(){var yn=this._input();(0,u.S6)(fn,(Rn,ci)=>{if(this.hasActionSubscription("on"+ci)){var Si=this._createActionByOption("on"+ci,{excludeValidators:["readOnly"]});h.Z.on(yn,(0,d.V4)(ci.toLowerCase(),this.NAME),ji=>{this._disposed||Si({event:ji})})}})},_refreshEvents:function(){var yn=this._input();(0,u.S6)(fn,(Rn,ci)=>{h.Z.off(yn,(0,d.V4)(ci.toLowerCase(),this.NAME))}),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_keyDownHandler:function(yn){var Rn=this._input(),ci=yn.ctrlKey&&"enter"===(0,d.EV)(yn),Si=Rn.val()!==this.option("value");ci&&Si&&h.Z.trigger(Rn,"change")},_getValueChangeEventOptionName:function(){return"valueChangeEvent"},_renderValueChangeEvent:function(){var yn=(0,d.V4)(this._renderValueEventName(),"".concat(this.NAME,"TextChange")),Rn=(0,d.V4)(this.option(this._getValueChangeEventOptionName()),"".concat(this.NAME,"ValueChange")),ci=(0,d.V4)("keydown","".concat(this.NAME,"TextChange")),Si=this._input();h.Z.on(Si,yn,this._keyPressHandler.bind(this)),h.Z.on(Si,Rn,this._valueChangeEventHandler.bind(this)),h.Z.on(Si,ci,this._keyDownHandler.bind(this))},_cleanValueChangeEvent:function(){var yn=".".concat(this.NAME,"ValueChange"),Rn=".".concat(this.NAME,"TextChange");h.Z.off(this._input(),yn),h.Z.off(this._input(),Rn)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusEventTarget:function(){return this.element()},_isInput:function(yn){return yn===this._input().get(0)},_preventNestedFocusEvent:function(yn){if(yn.isDefaultPrevented())return!0;var Rn=this._isNestedTarget(yn.relatedTarget);return"focusin"===yn.type?Rn=Rn&&this._isNestedTarget(yn.target)&&!this._isInput(yn.target):Rn||this._toggleFocusClass(!1,this.$element()),Rn&&yn.preventDefault(),Rn},_isNestedTarget:function(yn){return!!this.$element().find(yn).length},_focusClassTarget:function(){return this.$element()},_focusInHandler:function(yn){this._preventNestedFocusEvent(yn),this.callBase.apply(this,arguments)},_focusOutHandler:function(yn){this._preventNestedFocusEvent(yn),this.callBase.apply(this,arguments)},_toggleFocusClass:function(yn,Rn){this.callBase(yn,this._focusClassTarget(Rn))},_hasFocusClass:function(yn){return this.callBase((0,c.Z)(yn||this.$element()))},_renderEmptinessEvent:function(){var yn=this._input();h.Z.on(yn,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var yn=this._input().val(),Rn=(""===yn||null===yn)&&this._isValueValid();this._toggleEmptiness(Rn)},_valueChangeEventHandler:function(yn,Rn){this.option("readOnly")||(this._saveValueChangeEvent(yn),this.option("value",arguments.length>1?Rn:this._input().val()),this._saveValueChangeEvent(void 0))},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),h.Z.off(this._input(),"keyup.onEnterKey.dxTextEditor"),h.Z.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(yn){this._disposed||"enter"===(0,d.EV)(yn)&&this._enterKeyAction({event:yn})},_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(C.Z.getActiveElement(this._input()[0]))},_optionChanged:function(yn){var{name:Rn,fullName:ci,value:Si}=yn,ji=Rn.replace("on","");if(fn.includes(ji))this._refreshEvents();else switch(Rn){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(yn),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(Si),this._setLabelContainerAria();break;case"labelMark":this._label.updateMark(Si);break;case"labelMode":this._label.updateMode(Si),this._setLabelContainerAria();break;case"width":this.callBase(yn),this._label.updateMaxWidth(this._getLabelContainerWidth());break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(yn);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":case"showValidationMark":break;case"value":this._updateValue(),this.callBase(yn);break;case"inputAttr":this._applyInputAttributes(this._input(),this.option(Rn));break;case"stylingMode":this._renderStylingMode(),this._updateLabelWidth();break;case"buttons":ci===Rn&&Dt(Si),this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")),this._updateLabelWidth(),this._label.updateContainsButtonsBefore(!!this._$beforeButtonsContainer);break;case"visible":this.callBase(yn),Si&&this.option("buttons")&&(this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")));break;case"displayValueFormatter":this._invalidate();break;default:this.callBase(yn)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(yn){var Rn=this._input();"search"===yn&&(yn="text");try{Rn.prop("type",yn)}catch{Rn.prop("type","text")}},getButton(yn){return this._buttonCollection.getButton(yn)},focus:function(){h.Z.trigger(this._input(),"focus")},reset:function(){this._showValidMark&&(this._showValidMark=!1,this._renderValidationState());var yn=this._getDefaultOptions();this.option("value")===yn.value?(this._options.silent("text",""),this._renderValue()):this.option("value",yn.value)},on:function(yn,Rn){var ci=this.callBase(yn,Rn),Si=yn.charAt(0).toUpperCase()+yn.substr(1);return fn.indexOf(Si)>=0&&this._refreshEvents(),ci}});var dt=l(6520),ht="dxMask";class bn{constructor(Rn){this.editor=Rn,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(Rn){if(!Rn)return this.editor._caret();this.editor._caret(Rn)}getHandler(Rn){return(this["_".concat(Rn,"Handler")]||function(){}).bind(this)}attachEvents(){var Rn=this.editorInput();this.getHandleEventNames().forEach(ci=>{var Si=(0,d.V4)(ci.toLowerCase(),ht);h.Z.on(Rn,Si,this.getEventHandler(ci))}),this._attachChangeEventHandlers()}getHandleEventNames(){return["focusIn","focusOut","keyDown","input","paste","cut","drop"]}getEventHandler(Rn){return this["_".concat(Rn,"Handler")].bind(this)}detachEvents(){h.Z.off(this.editorInput(),".".concat(ht))}_attachChangeEventHandlers(){this.editorOption("valueChangeEvent").split(" ").includes("change")&&h.Z.on(this.editorInput(),(0,d.V4)("blur beforedeactivate",ht),function(Rn){this._suppressCaretChanging(this._changeHandler,[Rn]),this._changeHandler(Rn)}.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 Rn=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(function(){this._caret({start:Rn,end:Rn})}.bind(this.editor),0)}}_focusOutHandler(Rn){this.editor._changeHandler(Rn),"onFocus"===this.editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this.editorOption("text",""),this.editor._renderDisplayText(""))}_cutHandler(Rn){var ci=this.editorCaret(),Si=this.editorInput().val().substring(ci.start,ci.end);this.editor._maskKeyHandler(Rn,()=>(0,dt.Zx)(Rn,Si))}_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(Rn){var{editor:ci}=this;this._keyPressHandled=!0;var Si=this.editorCaret();ci._maskKeyHandler(Rn,()=>{var ji=(0,dt.Zx)(Rn),lr=ci._maskRulesChain.text().substring(Si.end),Dr=ci._handleChain({text:ji,start:Si.start,length:ji.length}),kr=Si.start+Dr;ci._handleChain({text:lr,start:kr,length:lr.length}),ci._caret({start:kr,end:kr})})}_autoFillHandler(Rn){var{editor:ci}=this,Si=this.editorInput().val();this._inputHandlerTimer=setTimeout(()=>{this._keyPressHandled=!0,this._isAutoFill()&&(this._keyPressHandled=!0,ci._maskKeyHandler(Rn,()=>{ci._handleChain({text:Si,start:0,length:Si.length})}),ci._validateMask())})}_isAutoFill(){var Rn=this.editor._input(),ci=!1;if(a.Z.webkit){var Si=Rn.get(0);ci=Si&&Si.matches(":-webkit-autofill")}return ci}runWithoutEventProcessing(Rn){var ci=this._keyPressHandled;this._keyPressHandled=!0,Rn(),this._keyPressHandled=ci}_backspaceHandler(){}_delHandler(Rn){var{editor:ci}=this;this._keyPressHandled=!0,ci._maskKeyHandler(Rn,()=>!ci._hasSelection()&&ci._handleKey(" "))}clean(){this._clearDragTimer(),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout),clearTimeout(this._inputHandlerTimer)}}const li=class Jn extends bn{_getStrategyName(){return"default"}getHandleEventNames(){return[...super.getHandleEventNames(),"keyPress"]}_keyPressHandler(Rn){if(!this._keyPressHandled&&(this._keyPressHandled=!0,!this.editor._isControlKeyFired(Rn))){var{editor:ci}=this;ci._maskKeyHandler(Rn,()=>ci._handleKey((0,d.qK)(Rn)))}}_inputHandler(Rn){if(this._backspaceInputHandled(Rn.originalEvent&&Rn.originalEvent.inputType)&&this._handleBackspaceInput(Rn),Rn.originalEvent&&this._autoFillHandler(Rn),!this._keyPressHandled){this._keyPressHandled=!0;var ci=this.editorInput().val(),Si=this.editorCaret();if(Si.end){Si.start=Si.end-1;var ji=ci.substring(0,Si.start)+ci.substring(Si.end),lr=ci[Si.start],{editor:Dr}=this;this.editorInput().val(ji),Dr._caret({start:Si.start,end:Si.start}),Dr._maskKeyHandler(Rn,()=>Dr._handleKey(lr))}}}_backspaceHandler(Rn){var{editor:ci}=this;this._keyPressHandled=!0;var Si=(ji,lr)=>{ji&&(ci._direction(this.DIRECTION.FORWARD),ci._adjustCaret());var Dr=this.editorCaret();return new Promise(kr=>{clearTimeout(this._backspaceHandlerTimeout),this._backspaceHandlerTimeout=setTimeout(function(){lr(Dr),kr()})})};ci._maskKeyHandler(Rn,()=>ci._hasSelection()?Si(!0,ji=>{ci._displayMask(ji),ci._maskRulesChain.reset()}):ci._tryMoveCaretBackward()?Si(!1,ji=>{this.editorCaret(ji)}):(ci._handleKey(" ",this.DIRECTION.BACKWARD),Si(!0,ji=>{ci._displayMask(ji),ci._maskRulesChain.reset()})))}_backspaceInputHandled(Rn){return"deleteContentBackward"===Rn&&!this._keyPressHandled}_handleBackspaceInput(Rn){var{start:ci,end:Si}=this.editorCaret();this.editorCaret({start:ci+1,end:Si+1}),this._backspaceHandler(Rn)}},Oi=class Vn extends bn{_getStrategyName(){return"inputEvents"}getHandleEventNames(){return[...super.getHandleEventNames(),"beforeInput"]}_beforeInputHandler(){this._prevCaret=this.editorCaret()}_inputHandler(Rn){var{originalEvent:ci}=Rn;if(ci){var{inputType:Si,data:ji}=ci,lr=this.editorCaret();if("deleteContentBackward"===Si){var Dr=this._prevCaret.end-this._prevCaret.start||1;this.editor.setBackwardDirection(),this._updateEditorMask({start:lr.start,length:Dr,text:this._getEmptyString(Dr)})}else{var kr,zr,Gr;if(!lr.end)return;this._autoFillHandler(ci),this.editorCaret(lr);var xr=(null===(kr=this._prevCaret)||void 0===kr?void 0:kr.end)-(null===(zr=this._prevCaret)||void 0===zr?void 0:zr.start),Vr=ji+(xr?this._getEmptyString(xr-ji.length):"");this.editor.setForwardDirection(),this._updateEditorMask({start:null===(Gr=this._prevCaret)||void 0===Gr?void 0:Gr.start,length:xr||Vr.length,text:Vr})||this.editorCaret(this._prevCaret)}}}_getEmptyString(Rn){return Array(Rn+1).join(" ")}_updateEditorMask(Rn){var ci=Rn.text.length,Si=this.editor._handleChain(Rn);if(this.editor.isForwardDirection()){var{start:ji,end:lr}=this.editorCaret(),Dr=Si-ci;ji<=Si&&Si>1&&this.editorCaret({start:ji+Dr,end:lr+Dr}),this.editor.isForwardDirection()&&this.editor._adjustCaret()}return this.editor._displayMask(),!!Si}};var Hn=function(){return{}},Sn=I.Z,Wn="dx-texteditor-masked",Yi="forward",ei={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(yn){return di(yn)},l:function(yn){return di(yn)||Hi(yn)},C:/\S/,c:/./,A:function(yn){return di(yn)||ni(yn)},a:function(yn){return di(yn)||ni(yn)||Hi(yn)}};function ni(yn){return/[0-9]/.test(yn)}function di(yn){var Rn=yn.charCodeAt();return 64<Rn&&Rn<91||96<Rn&&Rn<123||Rn>127}function Hi(yn){return" "===yn}const Qi=Ht.inherit({_getDefaultOptions:function(){return(0,g.l)(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:y.Z.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var yn=this,Rn={backspace:yn._maskStrategy.getHandler("backspace"),del:yn._maskStrategy.getHandler("del"),enter:yn._changeHandler},ci=yn.callBase();return(0,u.S6)(Rn,function(Si,ji){var lr=ci[Si];ci[Si]=function(Dr){yn.option("mask")&&ji.call(yn,Dr),lr&&lr(Dr)}}),ci},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){this._maskStrategy=function s(){return"onbeforeinput"in C.Z.createElement("input")&&!a.Z.chrome||function p(){var{android:yn,version:Rn}=f.Z.real();return yn&&Rn[0]>4}()}()?new Oi(this):new li(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){if(this._onMouseWheel!==E.ZT){var Rn=this._input(),ci=(0,d.V4)(O.u,this.NAME),Si=this._createAction(function(ji){var{event:lr}=ji;(0,x.si)(Rn)&&!(0,d.j1)(lr)&&(this._onMouseWheel(lr),lr.preventDefault(),lr.stopPropagation())}.bind(this));h.Z.off(Rn,ci),h.Z.on(Rn,ci,function(ji){Si({event:ji})})}},_onMouseWheel:E.ZT,_render:function(){this._renderMask(),this.callBase(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=(0,c.Z)("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(Wn),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass(Wn),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_suppressCaretChanging:function(yn,Rn){Sn=Hn;try{yn.apply(this,Rn)}finally{Sn=I.Z}},_changeHandler:function(yn){var Rn=this._input(),ci=Rn.val();if(ci!==this._changedValue){this._changedValue=ci;var Si=(0,d.yM)(yn,{type:"change"});h.Z.trigger(Rn,Si)}},_parseMask:function(){this._maskRules=(0,g.l)({},ei,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(yn){var Rn=this.option("mask");if(yn>=Rn.length)return new R;var ci=Rn[yn],Si="\\"===ci,ji=Si?new B({maskChar:Rn[yn+1]}):this._getMaskRule(ci);return ji.next(this._parseMaskRule(yn+1+Si)),ji},_getMaskRule:function(yn){var Rn;return(0,u.S6)(this._maskRules,function(ci,Si){if(ci===yn)return Rn={pattern:ci,allowedChars:Si},!1}),(0,b.$K)(Rn)?new P((0,g.l)({maskChar:this.option("maskChar")},Rn)):new B({maskChar:yn})},_renderMaskedValue:function(){if(this._maskRulesChain){var yn=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var Rn={length:yn.length};Rn[this._isMaskedValueMode()?"text":"value"]=yn,this._handleChain(Rn),this._displayMask()}},_replaceSelectedText:function(yn,Rn,ci){return void 0===ci?yn:yn.slice(0,Rn.start)+ci+yn.slice(Rn.end)},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(yn){yn=yn||this._caret(),this._renderValue(),this._caret(yn)},_isValueEmpty:function(){return(0,S.xb)(this._value)},_shouldShowMask:function(){return"onFocus"!==this.option("showMaskMode")||(0,x.si)(this._input())||!this._isValueEmpty()},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var yn=this._maskRulesChain.text();this.option("text",yn),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(yn)}},_renderValue:function(){if(this._maskRulesChain&&(this._showMaskPlaceholder(),this._$hiddenElement)){var yn=this._maskRulesChain.value(),Rn=(0,S.xb)(yn)?"":this._getPreparedValue();this._$hiddenElement.val(Rn)}return this.callBase()},_getPreparedValue:function(){return this._convertToValue().replace(/\s+$/,"")},_valueChangeEventHandler:function(yn){this._maskRulesChain?(this._saveValueChangeEvent(yn),this.option("value",this._getPreparedValue())):this.callBase.apply(this,arguments)},_isControlKeyFired:function(yn){return this._isControlKey((0,d.EV)(yn))||(0,d.j1)(yn)},_handleChain:function(yn){var Rn=this._maskRulesChain.handle(this._normalizeChainArguments(yn));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),Rn},_normalizeChainArguments:function(yn){return(yn=yn||{}).index=0,yn.fullText=this._maskRulesChain.text(),yn},_convertToValue:function(yn){return this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(yn||this._textValue||""):yn||this._value||""},_replaceMaskCharWithEmpty:function(yn){return yn.replace(new RegExp(this.option("maskChar"),"g")," ")},_maskKeyHandler:function(yn,Rn){if(!this.option("readOnly")){this.setForwardDirection(),yn.preventDefault(),this._handleSelection();var ci=this._input().val(),Si=()=>{ci!==this._input().val()&&this._maskStrategy.runWithoutEventProcessing(()=>h.Z.trigger(this._input(),"input"))},ji=Rn();ji?ji.then(Si):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),Si())}},_handleKey:function(yn,Rn){this._direction(Rn||Yi),this._adjustCaret(yn),this._handleKeyChain(yn),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var yn=this._caret(),Rn=new Array(yn.end-yn.start+1).join(" ");this._handleKeyChain(Rn)}},_handleKeyChain:function(yn){var Rn=this._caret(),ci=this.isForwardDirection()?Rn.start:Rn.start-1,Si=this.isForwardDirection()?Rn.end:Rn.end-1;this._handleChain({text:yn,start:ci,length:ci===Si?1:Si-ci})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var yn=this._caret().start;return this._adjustCaret(),!yn||yn!==this._caret().start},_adjustCaret:function(yn){var Rn=this._caret().start,ci=this.isForwardDirection(),Si=this._maskRulesChain.adjustedCaret(Rn,ci,yn);this._caret({start:Si,end:Si})},_moveCaret:function(){var yn=this._caret().start,Rn=yn+(this.isForwardDirection()?0:-1),ci=this._maskRulesChain.isAccepted(Rn)?yn+(this.isForwardDirection()?1:-1):yn;this._caret({start:ci,end:ci})},_caret:function(yn,Rn){var ci=this._input();if(ci.length){if(!arguments.length)return Sn(ci);Sn(ci,yn,Rn)}},_hasSelection:function(){var yn=this._caret();return yn.start!==yn.end},_direction:function(yn){if(!arguments.length)return this._typingDirection;this._typingDirection=yn},setForwardDirection:function(){this._direction(Yi)},setBackwardDirection:function(){this._direction("backward")},isForwardDirection:function(){return this._direction()===Yi},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var yn=(0,S.xb)(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:yn,validationError:yn?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(yn){if(!yn){var Rn=this.option("value");this.option({text:Rn,isValid:!0}),this.validationRequest.fire({value:Rn,editor:this}),this._renderValue()}},_optionChanged:function(yn){switch(yn.name){case"mask":this._updateMaskOption(),this._processEmptyMask(yn.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(yn),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(yn)}}});(0,o.Z)("dxTextEditor",Qi);const _r=Qi},5214:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>h});var o=l(9904),c=l(1828),I=l(2941),C=l(9897),{ios:f,mac:a}=I.Z.real(),p=f||a,s=function(g){var x;try{x={start:g.selectionStart,end:g.selectionEnd}}catch{x={start:0,end:0}}return x},u=function(g,x){var b=C.Z.getBody();if(b.contains(g)||b.contains(g.getRootNode().host))try{g.selectionStart=x.start,g.selectionEnd=x.end}catch{}};const h=function(g,x){var b=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(g=(0,o.Z)(g).get(0),!(0,c.$K)(x))return s(g);!b&&p&&C.Z.getActiveElement(g)!==g||u(g,x)}},8474:(kn,he,l)=>{"use strict";l.d(he,{M:()=>C,u:()=>I});var o=l(9904),c=l(8225),I=function(f,a,p){var s=(0,o.Z)(f),u=p?s.scrollLeft():s.scrollTop(),d=p?"Width":"Height",x=s.prop("scroll".concat(d))-s.prop("client".concat(d))-u|0;return(0!==u||0!==x)&&(!!(0===u&&a>=0||0===x&&a<=0||u>0&&x>0)||void 0)},C=function(f,a){var p=(0,o.Z)(f);return{validate:function(s){if((0,c.pR)(s)&&(!a||(0,o.Z)(s.target).is(f)))return!!I(p,-s.delta,s.shiftKey)&&(s._needSkipEvent=!0,!0)}}}},2722:(kn,he,l)=>{"use strict";l.d(he,{Vk:()=>M,f5:()=>de,OD:()=>_e,x2:()=>fe,Ih:()=>pe});var B,W,N,V,U,ge,o=l(1805),c=l(2941),I=l(9897),C=l(9904),f=l(4270),a=l(2819),p=l(2718),s=l(3068),u=l(1469),d=l(4514),g=(0,l(5365).Z)(),x=l(8159),b=(0,d.Jj)(),y=s.Z.add,E=u.S3,S=u.Wg,O=new f.BH,w="link[rel=dx-theme]",R="dx-hairlines",P="any",Y="dx.";function J(){if(!(0,d.Ym)())return null;var Pe,ye=(0,C.Z)("<div>",B).addClass("dx-theme-marker").appendTo(B.documentElement);try{return(Pe=b.getComputedStyle(ye.get(0)).fontFamily)&&(Pe=Pe.replace(/["']/g,"")).substr(0,Y.length)===Y?Pe.substr(Y.length):null}finally{ye.remove()}}function j(ye){var Pe,Ne,ft=!0;function tt(){U=null,clearInterval(Ne),ft=!0,g.fire(),g.empty(),O.resolve()}if(U=ye,ee())tt();else{if(!ft)return void(U&&(U=ye));Pe=Date.now(),ft=!1,Ne=setInterval(function(){var Be=ee(),mt=!Be&&Date.now()-Pe>15e3;mt&&x.Z.log("W0004",U),(Be||mt)&&tt()},10)}}function ee(){if(!U)return!0;var ye=U===P;if("resolved"===O.state()&&ye)return!0;var Pe=J();return!(!Pe||!ye)||Pe===U}function q(ye){var Pe=ye?ye.split("."):[],Ne=null;if(N){if(ye in N)return ye;(0,p.S6)(N,function(ft,tt){var Be=ft.split(".");if((!Pe[0]||Be[0]===Pe[0])&&(!Pe[1]||Pe[1]===Be[1])&&(!Pe[2]||Pe[2]===Be[2])&&((!Ne||tt.isActive)&&(Ne=ft),tt.isActive))return!1})}return Ne}function X(ye){(function Z(ye){try{ye!==B&&(N=null)}catch{N=null}B=ye})((ye=ye||{}).context||I.Z.getDocument()),B&&(function G(){var ye=(0,C.Z)(w,B);ye.length&&(N={},W=(0,C.Z)((0,a.r)("<link rel=stylesheet>"),B),ye.each(function(){var Pe=(0,C.Z)(this,B),Ne=Pe.attr("data-theme"),ft=Pe.attr("href"),tt="true"===Pe.attr("data-active");N[Ne]={url:ft,isActive:tt}}),ye.last().after(W),ye.remove())}(),V=void 0,M(ye))}function M(ye){if(!arguments.length)return V=V||J();Fe(E()),"string"==typeof(ye=ye||{})&&(ye={theme:ye});var ft,Pe=ye._autoInit,Ne=ye.loadCallback;if((V=q(ye.theme||V))&&(ft=N[V]),Ne&&g.add(Ne),ft)W.attr("href",N[V].url),(g.has()||"resolved"!==O.state()||ye._forceTimeout)&&j(V);else{if(!Pe)throw x.Z.Error("E0021",V);(0,d.Ym)()&&j(P),g.fire(),g.empty()}O.done(()=>De((0,u.In)(),V))}function De(ye,Pe){ge=function se(ye){var Pe=[],Ne=(ye=ye||M())&&ye.split(".");return Ne&&(Pe.push("dx-theme-"+Ne[0],"dx-theme-"+Ne[0]+"-typography"),Ne.length>1&&Pe.push("dx-color-scheme-"+Ne[1]+(fe(ye)?"-"+Ne[2]:""))),Pe}(Pe).join(" "),(0,C.Z)(ye).addClass(ge),function(){var Ne=(0,d.Ym)()&&b.devicePixelRatio;if(Ne&&!(Ne<2)){var ft=(0,C.Z)("<div>");ft.css("border",".5px solid transparent"),(0,C.Z)("body").append(ft),1===(0,o.zp)(ft)&&((0,C.Z)(ye).addClass(R),ge+=" "+R),ft.remove()}}()}function Fe(ye){(0,C.Z)(ye).removeClass(ge)}function ne(ye,Pe){return Pe||(Pe=V||J()),new RegExp(ye).test(Pe)}function fe(ye){return ne("material",ye)}function _e(ye){return ne("generic",ye)}function de(ye){return ne("compact",ye)}function pe(ye,Pe){return new Promise(Ne=>{var ft=()=>{clearInterval(tt),clearTimeout(Be),Ne()},tt=setInterval(()=>{(function le(ye,Pe){var Ne=I.Z.getDocument(),ft=Ne.createElement("span");ft.style.position="absolute",ft.style.top="-9999px",ft.style.left="-9999px",ft.style.visibility="hidden",ft.style.fontFamily="Arial",ft.style.fontSize="250px",ft.style.fontWeight=Pe,ft.innerHTML=ye,Ne.body.appendChild(ft);var tt=ft.offsetWidth;ft.style.fontFamily="Roboto, RobotoFallback, Arial";var Be=ft.offsetWidth;return ft.parentNode.removeChild(ft),tt!==Be})(ye,Pe)&&ft()},15),Be=setTimeout(ft,2e3)})}function Ee(){if(X({_autoInit:!0,_forceTimeout:!0}),(0,C.Z)(w,B).length)throw x.Z.Error("E0022")}(0,d.Ym)()?Ee():y(Ee),S.add(function(ye,Pe){O.done(function(){Fe(Pe),De(ye)})}),c.Z.changed.add(function(){X({_autoInit:!0})})},4131:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>Y});var o=l(9904),c=l(4514),I=l(9897),C=l(913),f=l(3068),a=l(7674),p=l(1828),s=l(5873),u=l(8690),d=l(8506),h=l(3576),g=l(2722),x=(0,c.Jj)(),y="dx-toast",E=y+"-",S=E+"wrapper",O=E+"content",w=E+"message",T=E+"icon",R=["info","warning","error","success"],P=[],W=null,N={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"}},V={h:0,v:0};(0,f.Z.add)(function(){C.Z.subscribeGlobal(I.Z.getDocument(),u.Z.down,function(J){for(var j=P.length-1;j>=0;j--)if(!P[j]._proxiedDocumentDownHandler(J))return})});var U=h.Z.inherit({_getDefaultOptions:function(){return(0,s.l)(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:x}}},hide:{type:"slide",duration:200,to:{position:{my:"top",at:"bottom",of:x}}}}}},{device:function(J){return"phone"===J.deviceType&&"android"===J.platform},options:{width:"100vw",position:{at:"bottom center",my:"bottom center",offset:"0 0"}}},{device:function(J){return"phone"===J.deviceType},options:{width:"100vw"}},{device:function(){return(0,g.x2)()},options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=(0,o.Z)("<div>").addClass(w).text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),R.includes(this.option("type").toLowerCase())&&this.$content().prepend((0,o.Z)("<div>").addClass(T)),this.callBase()},_render:function(){this.callBase(),this.$element().addClass(y),this.$wrapper().addClass(S),this.$content().addClass(E+String(this.option("type")).toLowerCase()),this.$content().addClass(O),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:a.ZT,_toggleCloseEvents:function(J){var j="dx"+J.toLowerCase();C.Z.off(this.$content(),j),this.option("closeOn"+J)&&C.Z.on(this.$content(),j,this.hide.bind(this))},_posStringToObject:function(){if((0,p.HD)(this.option("position"))){var J=this.option("position").split(" ")[0],j=this.option("position").split(" ")[1];switch(this.option("position",(0,s.l)({boundaryOffset:V},N[J])),j){case"center":case"left":case"right":this.option("position").at+=" "+j,this.option("position").my+=" "+j}}},_show:function(){return W&&W!==this&&(clearTimeout(W._hideTimeout),W.hide()),W=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 W=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return P},_zIndexInitValue:function(){return this.callBase()+8e3},_dispose:function(){clearTimeout(this._hideTimeout),W=null,this.callBase()},_optionChanged:function(J){switch(J.name){case"type":this.$content().removeClass(E+J.previousValue),this.$content().addClass(E+String(J.value).toLowerCase());break;case"message":this._message&&this._message.text(J.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":break;default:this.callBase(J)}}});(0,d.Z)("dxToast",U);const Y=U},7858:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>de});var o=l(8506),c=l(5873),I=l(7160),C=l(9904),a=["dxAutocomplete","dxButton","dxCheckBox","dxDateBox","dxMenu","dxSelectBox","dxTabs","dxTextBox","dxButtonGroup","dxDropDownButton"];function s(le,pe){var Ee;if(le){var ae=le._findItemElementByItem(pe);if(ae.length){var te=le._getItemData(ae),re=!!(null!==(Ee=te.options)&&void 0!==Ee&&Ee.disabled||te.disabled||le.option("disabled")),{widget:oe}=te;if(oe&&-1!==a.indexOf(oe)){var ye=ae.find(oe.toLowerCase().replace("dx",".dx-"));if(ye.length){var Pe,Ne,ft=function(le){var pe=le.data&&le.data(),Ee=pe&&pe.dxComponents,ae=Ee&&Ee[0];return ae&&pe[ae]}(ye);if(!ft)return;var Be,tt=null===(Pe=ft._focusTarget)||void 0===Pe?void 0:Pe.call(ft);tt="dxDropDownButton"===oe?tt&&tt.find(".".concat("dx-buttongroup")):null!==(Be=tt)&&void 0!==Be?Be:(0,C.Z)(ft.element());var mt=null===(Ne=te.options)||void 0===Ne?void 0:Ne.tabIndex;tt.attr("tabIndex",re?-1:mt??0)}}}}}var u=l(1805);class h{constructor(pe){this._toolbar=pe}_initMarkup(){}_updateMenuVisibility(){}_renderMenuItems(){}_renderItem(){}_getMenuItems(){}_getToolbarItems(){var pe;return null!==(pe=this._toolbar.option("items"))&&void 0!==pe?pe:[]}_getItemsWidth(){return this._toolbar._getSummaryItemsWidth(this._toolbar.itemElements(),!0)}_arrangeItems(){var pe=this._toolbar._$toolbarItemsContainer.find(".".concat("dx-toolbar-label")).eq(0);if(pe.length){var Ee=(0,u.dz)(this._toolbar.$element()),ae=(0,u.Y_)(pe)-(0,u.dz)(pe);pe.css("maxWidth",Ee-ae)}}_hideOverflowItems(){}_dimensionChanged(){}_itemOptionChanged(){}_optionChanged(){}}var g=l(2718),x=l(7674),b=l(2941),y=l(6853),E=l(219),S=l(5505),O="dx-toolbar-menu-action",T="dx-toolbar-hidden-button-group",k="dx-toolbar-menu-section",P="dx-toolbar-menu-last-section";class B extends S.K{_init(){super._init(),this._activeStateUnit=".".concat(O,":not(.").concat(T,")")}_initMarkup(){this._renderSections(),super._initMarkup()}_getSections(){return this._itemContainer().children()}_itemElements(){return this._getSections().children(this._itemSelector())}_renderSections(){var pe=this._itemContainer();(0,g.S6)(["before","center","after","menu"],(Ee,ae)=>{var te="_$".concat(ae,"Section");this[te]||(this[te]=(0,C.Z)("<div>").addClass(k)),this[te].appendTo(pe)})}_renderItems(){super._renderItems.apply(this,arguments),this._updateSections()}_updateSections(){var pe=this.$element().find(".".concat(k));pe.removeClass(P),pe.not(":empty").eq(-1).addClass(P)}_renderItem(pe,Ee,ae,te){var re,oe=null!==(re=Ee.location)&&void 0!==re?re:"menu",ye=this["_$".concat(oe,"Section")],Pe=super._renderItem(pe,Ee,ye,te);return this._getItemTemplateName({itemData:Ee})&&Pe.addClass("dx-toolbar-menu-custom"),("menu"===oe||"dxButton"===Ee.widget||"dxButtonGroup"===Ee.widget||Ee.isAction)&&Pe.addClass(O),"dxButton"===Ee.widget&&Pe.addClass("dx-toolbar-hidden-button"),"dxButtonGroup"===Ee.widget&&Pe.addClass(T),Pe.addClass(Ee.cssClass),Pe}_getItemTemplateName(pe){var Ee=super._getItemTemplateName(pe),ae=pe.itemData;return ae&&ae.menuItemTemplate||Ee}_dataSourceOptions(){return{paginate:!1}}_itemClickHandler(pe,Ee,ae){(0,C.Z)(pe.target).closest(".".concat(O)).length&&super._itemClickHandler(pe,Ee,ae)}_getAriaTarget(){var pe;return null!==(pe=this.option("_areaTarget"))&&void 0!==pe?pe:super._getAriaTarget()}_clean(){this._getSections().empty(),super._clean()}}var W=l(2722),N=l(1927),V=l(4514);l(9609);class Z extends y.Z{_supportedKeys(){var pe={};return(!this.option("opened")||!this._list.option("focusedElement"))&&(pe=this._button._supportedKeys()),(0,c.l)(super._supportedKeys(),pe,{tab:function(){this._popup&&this._popup.hide()}})}_getDefaultOptions(){return(0,c.l)(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"===b.Z.real().deviceType&&!b.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,W.x2)()},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 N.s("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 pe=this.$element().addClass("dx-dropdownmenu-button");this._button=this._createComponent(pe,E.Z,{icon:"overflow",template:"content",useInkRipple:this.option("useInkRipple"),hoverStateEnabled:!1,focusStateEnabled:!1,onClick:Ee=>{this.option("opened",!this.option("opened")),this._buttonClickAction(Ee)}})}_toggleActiveState(pe,Ee,ae){this._button._toggleActiveState(pe,Ee,ae)}_toggleMenuVisibility(pe){var Ee=pe??!this._popup.option("visible");pe&&this._renderPopup(),this._popup.toggle(Ee),this.setAria("expanded",Ee)}_renderPopup(){if(!this._$popup){this._$popup=(0,C.Z)("<div>").appendTo(this.$element());var{rtlEnabled:pe,container:Ee,animation:ae}=this.option();this._popup=this._createComponent(this._$popup,"dxPopup",{onInitialized(te){var{component:re}=te;re.$wrapper().addClass("dx-dropdownmenu-popup-wrapper").addClass("dx-dropdownmenu-popup")},deferRendering:!1,contentTemplate:te=>this._renderList(te),_ignoreFunctionValueDeprecation:!0,maxHeight:()=>this._getMaxHeight(),position:{my:"top ".concat(pe?"left":"right"),at:"bottom ".concat(pe?"left":"right"),collision:"fit flip",offset:{v:3},of:this.$element()},animation:ae,onOptionChanged:te=>{var{name:re,value:oe}=te;"visible"===re&&this.option("opened",oe)},container:Ee,autoResizeEnabled:!1,height:"auto",width:"auto",hideOnOutsideClick:te=>this._closeOutsideDropDownHandler(te),hideOnParentScroll:!0,shading:!1,dragEnabled:!1,showTitle:!1,fullScreen:!1,_fixWrapperPosition:!0})}}_getMaxHeight(){var pe=this.$element(),Ee=pe.offset().top,ae=(0,u.zp)((0,V.Jj)()),te=Math.max(Ee,ae-Ee-(0,u.zp)(pe));return Math.min(ae,te-3-10)}_closeOutsideDropDownHandler(pe){return!(0,C.Z)(pe.target).closest(this.$element()).length}_renderList(pe){var Ee=(0,C.Z)(pe);Ee.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(Ee,B,{dataSource:this._getListDataSource(),pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this.option("itemTemplate"),onItemClick:ae=>{this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(ae)},tabIndex:-1,focusStateEnabled:!1,activeStateEnabled:!0,onItemRendered:this.option("onItemRendered"),_areaTarget:this.$element(),_itemAttributes:{role:"menuitem"}})}_itemOptionChanged(pe,Ee,ae){var te;null===(te=this._list)||void 0===te||te._itemOptionChanged(pe,Ee,ae),s(this._list,pe)}_getListDataSource(){var pe;return null!==(pe=this.option("dataSource"))&&void 0!==pe?pe:this.option("items")}_setListDataSource(){var pe;null===(pe=this._list)||void 0===pe||pe.option("dataSource",this._getListDataSource()),delete this._deferRendering}_getKeyboardListeners(){return super._getKeyboardListeners().concat([this._list])}_toggleVisibility(pe){super._toggleVisibility(pe),this._button.option("visible",pe)}_optionChanged(pe){var Ee,ae,te,{name:re,value:oe}=pe;switch(re){case"items":case"dataSource":this.option("opened")?this._setListDataSource():this._deferRendering=!0;break;case"itemTemplate":null===(Ee=this._list)||void 0===Ee||Ee.option(re,this._getTemplate(oe));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"useInkRipple":this._invalidate();break;case"focusStateEnabled":null===(ae=this._list)||void 0===ae||ae.option(re,oe),super._optionChanged(pe);break;case"onItemRendered":null===(te=this._list)||void 0===te||te.option(re,oe);break;case"opened":this._deferRendering&&this._setListDataSource(),this._toggleMenuVisibility(oe),this._updateFocusableItemsTabIndex();break;case"closeOnClick":break;case"container":this._popup&&this._popup.option(re,oe);break;case"disabled":this._list&&this._updateFocusableItemsTabIndex();break;default:super._optionChanged(pe)}}_updateFocusableItemsTabIndex(){this.option("items").forEach(pe=>s(this._list,pe))}}var X=l(6738),M="dx-state-invisible",De="dx-toolbar-item-auto-hide",Fe="dx-toolbar-item-invisible";class Ae{constructor(pe){this._toolbar=pe}_initMarkup(){(0,x.g0)(()=>{this._renderOverflowMenu(),this._renderMenuItems()})}_renderOverflowMenu(){if(this._hasVisibleMenuItems()){this._renderMenuButtonContainer();var pe=(0,C.Z)("<div>").appendTo(this._overflowMenuContainer()),Ee=this._toolbar._createActionByOption("onItemClick"),ae=this._toolbar._getTemplateByOption("menuItemTemplate");this._menu=this._toolbar._createComponent(pe,Z,{disabled:this._toolbar.option("disabled"),itemTemplate:()=>ae,onItemClick:te=>{Ee(te)},container:this._toolbar.option("menuContainer"),onOptionChanged:te=>{var{name:re,value:oe}=te;"opened"===re&&this._toolbar.option("overflowMenuVisible",oe),"items"===re&&this._updateMenuVisibility(oe)}})}}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=(0,C.Z)("<div>").appendTo(this._toolbar._$afterSection).addClass("dx-toolbar-button").addClass("dx-toolbar-menu-container")}_overflowMenuContainer(){return this._$overflowMenuContainer}_updateMenuVisibility(pe){var Ee=pe??this._getMenuItems(),ae=Ee.length&&this._hasVisibleMenuItems(Ee);this._toggleMenuVisibility(ae)}_toggleMenuVisibility(pe){this._overflowMenuContainer()&&this._overflowMenuContainer().toggleClass(M,!pe)}_renderMenuItems(){(0,x.g0)(()=>{this.renderMenuItems()})}_dimensionChanged(){this.renderMenuItems()}_getToolbarItems(){var pe;return(0,x.h3)(null!==(pe=this._toolbar.option("items"))&&void 0!==pe?pe:[],Ee=>!this._toolbar._isMenuItem(Ee))}_getMenuItems(){var pe,Ee,ae=(0,x.h3)(null!==(pe=this._toolbar.option("items"))&&void 0!==pe?pe:[],oe=>this._toolbar._isMenuItem(oe)),te=this._toolbar._itemContainer().children(".".concat(De,".").concat(Fe)).not(".".concat(M));return this._restoreItems=null!==(Ee=this._restoreItems)&&void 0!==Ee?Ee:[],[...[].slice.call(te).map(oe=>{var ye=this._toolbar._getItemData(oe),Pe=(0,C.Z)(oe),Ne=Pe.children();return(0,c.l)({menuItemTemplate:()=>(this._restoreItems.push({container:Pe,item:Ne}),(0,C.Z)("<div>").addClass(De).append(Ne))},ye)}),...ae]}_hasVisibleMenuItems(pe){var Ee=pe??this._toolbar.option("items"),ae=!1,te=(0,X.vb)("visible"),re=(0,X.vb)("locateInMenu");return(0,g.S6)(Ee,function(oe,ye){var Pe=te(ye,{functionsAsIs:!0}),Ne=re(ye,{functionsAsIs:!0});(!1!==Pe&&("auto"===Ne||"always"===Ne)||"menu"===ye.location)&&(ae=!0)}),ae}_arrangeItems(){var pe;this._toolbar._$centerSection.css({margin:"0 auto",float:"none"}),(0,g.S6)(null!==(pe=this._restoreItems)&&void 0!==pe?pe:[],function(ae,te){(0,C.Z)(te.container).append(te.item)}),this._restoreItems=[];var Ee=(0,u.dz)(this._toolbar.$element());return this._hideOverflowItems(Ee),Ee}_hideOverflowItems(pe){var Ee,ae=this._toolbar.$element().find(".".concat(De));if(ae.length){pe=null!==(Ee=pe)&&void 0!==Ee?Ee:(0,u.dz)(this._toolbar.$element()),(0,C.Z)(ae).removeClass(Fe);for(var te=this._getItemsWidth();ae.length&&pe<te;){var re=ae.eq(-1);te-=(0,u.Y_)(re),re.addClass(Fe),ae.splice(-1,1)}}}_getItemsWidth(){return this._toolbar._getSummaryItemsWidth([this._toolbar._$beforeSection,this._toolbar._$centerSection,this._toolbar._$afterSection])}_itemOptionChanged(pe,Ee,ae){var te;!this._toolbar._isMenuItem(pe)||"disabled"!==Ee&&"options.disabled"!==Ee?this.renderMenuItems():null===(te=this._menu)||void 0===te||te._itemOptionChanged(pe,Ee,ae)}_renderItem(pe,Ee){"auto"===pe.locateInMenu&&Ee.addClass(De)}_optionChanged(pe,Ee){var ae,te,re,oe,ye;switch(pe){case"disabled":null===(ae=this._menu)||void 0===ae||ae.option(pe,Ee);break;case"overflowMenuVisible":null===(te=this._menu)||void 0===te||te.option("opened",Ee);break;case"onItemClick":null===(re=this._menu)||void 0===re||re.option(pe,Ee);break;case"menuContainer":null===(oe=this._menu)||void 0===oe||oe.option("container",Ee);break;case"menuItemTemplate":null===(ye=this._menu)||void 0===ye||ye.option("itemTemplate",Ee)}}}class _e extends I.Z{_getDefaultOptions(){return(0,c.l)(super._getDefaultOptions(),{menuItemTemplate:"menuItem",menuContainer:void 0,overflowMenuVisible:!1,multiline:!1})}_isMultiline(){return this.option("multiline")}_dimensionChanged(pe){"height"!==pe&&(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 h(this):new Ae(this)}_renderSections(){if(!this._isMultiline())return super._renderSections()}_postProcessRenderItems(){this._layoutStrategy._hideOverflowItems(),this._layoutStrategy._updateMenuVisibility(),super._postProcessRenderItems(),this._layoutStrategy._renderMenuItems()}_renderItem(pe,Ee,ae,te){var re=super._renderItem(pe,Ee,ae,te);this._layoutStrategy._renderItem(Ee,re);var{widget:oe,showText:ye}=Ee;return"dxButton"===oe&&"inMenu"===ye&&re.toggleClass("dx-toolbar-text-auto-hide"),re}_getItemsWidth(){return this._layoutStrategy._getItemsWidth()}_getMenuItems(){return this._layoutStrategy._getMenuItems()}_getToolbarItems(){return this._layoutStrategy._getToolbarItems()}_arrangeItems(){if(!this.$element().is(":hidden")){var pe=this._layoutStrategy._arrangeItems();this._isMultiline()||super._arrangeItems(pe)}}_itemOptionChanged(pe,Ee,ae){this._layoutStrategy._itemOptionChanged(pe,Ee,ae),this._isMenuItem(pe)||super._itemOptionChanged(pe,Ee,ae),("disabled"===Ee||"options.disabled"===Ee)&&s(this,pe),"location"===Ee&&this.repaint()}_updateFocusableItemsTabIndex(){this._getToolbarItems().forEach(pe=>s(this,pe))}_isMenuItem(pe){return"menu"===pe.location||"always"===pe.locateInMenu}_isToolbarItem(pe){return void 0===pe.location||"never"===pe.locateInMenu}_optionChanged(pe){var{name:Ee,value:ae}=pe;switch(this._layoutStrategy._optionChanged(Ee,ae),Ee){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()}}(0,o.Z)("dxToolbar",_e);const de=_e},5347:(kn,he,l)=>{"use strict";l.d(he,{z:()=>o});var o="dx-toolbar"},7160:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>ee});var o=l(1805),c=l(9904),I=l(2722),C=l(1828),f=l(8506),a=l(5873),p=l(2718),s=l(5450),u=l(7307),d=l(4270),h=l(7674);const x=u.Z.inherit({_initMarkup(){this._deferredItems=[],this.callBase()},_renderItemContent(G){var q=new d.BH,Z=new d.BH;this._deferredItems[G.index]=Z;var X=this.callBase.call(this,G);return Z.done(()=>{q.resolve(X)}),q.promise()},_onItemTemplateRendered:function(G,q){return()=>{this._deferredItems[q.index].resolve()}},_postProcessRenderItems:h.ZT,_renderItemsAsync(){var G=new d.BH;return d.gx.apply(this,this._deferredItems).done(()=>{this._postProcessRenderItems(),G.resolve()}),G.promise()},_clean(){this.callBase(),this._deferredItems=[]}});var b=l(4823),y=l(3553),E=l(5347),S="dx-toolbar-before",w="dx-toolbar-after",R="dx-toolbar-label",N="dx-toolbar-compact",V="text";class j extends x{_getSynchronizableOptionsForCreateComponent(){return super._getSynchronizableOptionsForCreateComponent().filter(q=>"disabled"!==q)}_initTemplates(){super._initTemplates();var q=new b.c(function(Z,X,M){if((0,C.PO)(X)){var Fe,Ae,ne,fe,_e,{text:se,html:ge,widget:De}=X;if(se&&Z.text(se).wrapInner("<div>"),ge&&Z.html(ge),"dxDropDownButton"===De&&(X.options=null!==(Fe=X.options)&&void 0!==Fe?Fe:{},(0,C.$K)(X.options.stylingMode)||(X.options.stylingMode=this.option("useFlatButtons")?V:"contained")),"dxButton"===De)this.option("useFlatButtons")&&(X.options=null!==(Ae=X.options)&&void 0!==Ae?Ae:{},X.options.stylingMode=null!==(ne=X.options.stylingMode)&&void 0!==ne?ne:V),this.option("useDefaultButtons")&&(X.options=null!==(fe=X.options)&&void 0!==fe?fe:{},X.options.type=null!==(_e=X.options.type)&&void 0!==_e?_e:"default")}else Z.text(String(X));this._getTemplate("dx-polymorph-widget").render({container:Z,model:M,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:q,menuItem:q})}_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return(0,I.x2)()},options:{useFlatButtons:!0}}])}_itemContainer(){return this._$toolbarItemsContainer.find([".".concat(S),".".concat("dx-toolbar-center"),".".concat(w)].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(E.z),this._$toolbarItemsContainer=(0,c.Z)("<div>").addClass("dx-toolbar-items-container").appendTo(this.$element()),this.setAria("role","toolbar")}_renderSections(){var q=this._$toolbarItemsContainer;(0,p.S6)(["before","center","after"],(Z,X)=>{var M="dx-toolbar-".concat(X);q.find(".".concat(M)).length||(this["_$".concat(X,"Section")]=(0,c.Z)("<div>").addClass(M).appendTo(q))})}_arrangeItems(q){var Z;q=null!==(Z=q)&&void 0!==Z?Z:(0,o.dz)(this.$element()),this._$centerSection.css({margin:"0 auto",float:"none"});var X=(0,s.l)(this._$beforeSection.get(0)),M=(0,s.l)(this._$afterSection.get(0));this._alignCenterSection(X,M,q);var se=this._$toolbarItemsContainer.find(".".concat(R)).eq(0),ge=se.parent();if(se.length){var De=X.width?X.width:se.position().left,Fe=ge.hasClass(S)?0:De,Ae=ge.hasClass(w)?0:M.width,ne=0;ge.children().not(".".concat(R)).each(function(){ne+=(0,o.Y_)(this)});var _e=Math.max(q-ne-Fe-Ae,0);if(ge.hasClass(S))this._alignSection(this._$beforeSection,_e);else{var ie=(0,o.Y_)(se)-(0,o.dz)(se);se.css("maxWidth",_e-ie)}}}_alignCenterSection(q,Z,X){this._alignSection(this._$centerSection,X-q.width-Z.width);var M=this.option("rtlEnabled"),se=M?Z:q,ge=M?q:Z,De=(0,s.l)(this._$centerSection.get(0));(se.right>De.left||De.right>ge.left)&&this._$centerSection.css({marginLeft:se.width,marginRight:ge.width,float:se.width>ge.width?"none":"right"})}_alignSection(q,Z){var M=q.find(".".concat(R)).toArray();Z-=this._getCurrentLabelsPaddings(M);var se=this._getCurrentLabelsWidth(M),ge=Math.abs(se-Z);Z<se?(M=M.reverse(),this._alignSectionLabels(M,ge,!1)):this._alignSectionLabels(M,ge,!0)}_alignSectionLabels(q,Z,X){for(var M=function(ne){return(0,s.l)(ne).width},se=0;se<q.length;se++){var ge=(0,c.Z)(q[se]),De=Math.ceil(M(q[se]));X&&ge.css("maxWidth","inherit");var Ae=Math.ceil(X?M(q[se]):De);if(!(Ae<Z)){ge.css("maxWidth",X?De+Z:De-Z);break}Z-=Ae,ge.css("maxWidth",X?Ae:0)}}_applyCompactMode(){var q=this.$element();q.removeClass(N),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>(0,o.dz)(q)&&q.addClass(N)}_getCurrentLabelsWidth(q){var Z=0;return q.forEach(function(X,M){Z+=(0,o.Y_)(X)}),Z}_getCurrentLabelsPaddings(q){var Z=0;return q.forEach(function(X,M){Z+=(0,o.Y_)(X)-(0,o.dz)(X)}),Z}_renderItem(q,Z,X,M){var se,ge,De=null!==(se=Z.location)&&void 0!==se?se:"center",Fe=X??this["_$".concat(De,"Section")],Ae=!!(null!==(ge=Z.text)&&void 0!==ge?ge:Z.html),ne=super._renderItem(q,Z,Fe,M);return ne.toggleClass("dx-toolbar-button",!Ae).toggleClass(R,Ae).addClass(Z.cssClass),ne}_renderGroupedItems(){(0,p.S6)(this.option("items"),(q,Z)=>{var X,M=Z.items,se=(0,c.Z)("<div>").addClass("dx-toolbar-group"),ge=null!==(X=Z.location)&&void 0!==X?X:"center";!M||!M.length||((0,p.S6)(M,(De,Fe)=>{this._renderItem(De,Fe,se,null)}),this._$toolbarItemsContainer.find(".dx-toolbar-".concat(ge)).append(se))})}_renderItems(q){this.option("grouped")&&q.length&&q[0].items?this._renderGroupedItems():super._renderItems(q)}_getToolbarItems(){var q;return null!==(q=this.option("items"))&&void 0!==q?q:[]}_renderContentImpl(){var q=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===q.length),this._renderItems(this._renderedItemsCount?q.slice(this._renderedItemsCount):q),this._applyCompactMode()}_renderEmptyMessage(){}_clean(){this._$toolbarItemsContainer.children().empty(),this.$element().empty(),delete this._$beforeSection,delete this._$centerSection,delete this._$afterSection}_visibilityChanged(q){q&&this._arrangeItems()}_isVisible(){return(0,o.dz)(this.$element())>0&&(0,o.Cr)(this.$element())>0}_getIndexByItem(q){return this._getToolbarItems().indexOf(q)}_itemOptionChanged(q,Z,X){super._itemOptionChanged.apply(this,[q,Z,X]),this._arrangeItems()}_optionChanged(q){var{name:Z}=q;switch(Z){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(){(0,I.x2)()&&Promise.all([(()=>new Promise(q=>{var Z=()=>{var M=!0;return this.$element().parents().each((se,ge)=>{if(y.Z.isAnimating((0,c.Z)(ge)))return M=!1,!1}),M&&q(),M},X=()=>{clearTimeout(this._waitParentAnimationTimeout),this._waitParentAnimationTimeout=setTimeout(()=>Z()||X(),15)};X()}))(),(()=>{var q=this.$element().find(".".concat(R)),Z=[];return q.each((X,M)=>{var se=(0,c.Z)(M).text(),ge=(0,c.Z)(M).css("fontWeight");Z.push((0,I.Ih)(se,ge))}),Promise.all(Z)})()]).then(()=>{this._dimensionChanged()})}}(0,f.Z)("dxToolbarBase",j);const ee=j},974:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>g});var o=l(9904),c=l(1031),I=l(8506),C=l(5873),f=l(4514),a=l(3553),h=c.Z.inherit({_getDefaultOptions:function(){return(0,C.l)(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=(0,o.Z)("<div>").addClass("dx-trackbar-wrapper").appendTo(this.$element())},_renderContainer:function(){this._$bar=(0,o.Z)("<div>").addClass("dx-trackbar-container").appendTo(this._$wrapper)},_renderRange:function(){this._$range=(0,o.Z)("<div>").addClass("dx-trackbar-range").appendTo(this._$bar)},_renderValue:function(){var x=this.option("value"),b=this.option("min"),y=this.option("max");if(!(b>y)){if(x<b)return this.option("value",b),void(this._currentRatio=0);if(x>y)return this.option("value",y),void(this._currentRatio=1);var E=b===y?0:(x-b)/(y-b);!this._needPreventAnimation&&this._setRangeStyles({width:100*E+"%"}),this.setAria({valuemin:this.option("min"),valuemax:y,valuenow:x}),this._currentRatio=E}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(x){a.Z.stop(this._$range),x?this._needPreventAnimation||!(0,f.Ym)()||a.Z.animate(this._$range,{type:"custom",duration:100,to:x}):this._$range.css({width:0})},_optionChanged:function(x){switch(x.name){case"value":this._renderValue(),this.callBase(x);break;case"max":case"min":this._renderValue();break;default:this.callBase(x)}},_dispose:function(){a.Z.stop(this._$range),this.callBase()}});(0,I.Z)("dxTrackBar",h);const g=h},7463:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>c});const c=l(3520).Z},3520:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>te});var o=l(9904),c=l(8506),I=l(2589),C=l(3447),f=l(5873),a=l(1805),p=l(9897),s=l(913),u=l(9009),d=l(227),h=l(7674),g=l(4514),x=l(1828),b=l(2718),y=l(6881),E=l(344),S=l(355),O=l(8225),w=l(8690),T=l(1384),k=l(3553),R=l(8487),P=l(1427),B=l(4270),W=l(4505),N=l(7616),V=l(3433),U="dx-treeview",K="".concat(U,"-node"),Y="".concat(K,"-container"),J="".concat(K,"-loadindicator"),j="".concat(K,"-container-opened"),ee="".concat(K,"-is-leaf"),G="".concat(U,"-item"),q="".concat(G,"-with-checkbox"),Z="".concat(G,"-without-checkbox"),X="".concat(G,"-data"),M="".concat(U,"-toggle-item-visibility"),se="".concat(U,"-loadindicator"),ge="".concat(U,"-loadindicator-wrapper"),De="".concat(U,"-toggle-item-visibility-opened"),Fe="".concat(U,"-select-all-item"),Ae="dx-state-invisible",ne="dx-state-disabled",_e="dxTreeView_expand",ie="data-item-id";const le=S.Z.inherit({_supportedKeys:function(re){var oe=Ne=>{var ft=(0,o.Z)(this.option("focusedElement"));ft.length&&(Ne.target=ft,Ne.currentTarget=ft,this._itemClickHandler(Ne,ft.children("."+G)),this._getEventNameByOption(this.option("expandEvent"))===(0,O.V4)(d.u,_e)&&this._expandEventHandler(Ne))},ye=Ne=>{Ne.preventDefault();var ft=(0,o.Z)(this.option("focusedElement")),tt=this._getCheckBoxInstance(ft);if(!tt.option("disabled")){var Be=tt.option("value");this._updateItemSelection(!Be,ft.find("."+G).get(0),!0)}},Pe=function(Ne,ft){if(this.option("expandAllEnabled")){ft.preventDefault();var tt=(0,o.Z)(this.option("focusedElement"));if(tt.length){var Be=this._getItemData(tt.find(".".concat(G)));this._toggleExpandedNestedItems([Be],Ne)}}};return(0,f.l)(this.callBase(),{enter:this._showCheckboxes()?ye:oe,space:this._showCheckboxes()?ye:oe,asterisk:Pe.bind(this,!0),minus:Pe.bind(this,!1)})},_toggleExpandedNestedItems:function(re,oe){if(re)for(var ye=0,Pe=re.length;ye<Pe;ye++){var Ne=re[ye],ft=this._dataAdapter.getNodeByItem(Ne);this._toggleExpandedState(ft,oe),this._toggleExpandedNestedItems(Ne.items,oe)}},_getNodeElement:function(re,oe){var ye=this._encodeString(re.internalFields.key);if(oe)return oe.$nodeByKey||(oe.$nodeByKey={},this.$element().find(".".concat(K)).each(function(){var Ne=(0,o.Z)(this),ft=Ne.attr(ie);oe.$nodeByKey[ft]=Ne})),oe.$nodeByKey[ye]||(0,o.Z)();var Pe=this.$element().get(0).querySelector("[".concat(ie,'="').concat(ye,'"]'));return(0,o.Z)(Pe)},_activeStateUnit:"."+G,_widgetClass:function(){return U},_getDefaultOptions:function(){var re=(0,f.l)(this.callBase(),{animationEnabled:!0,dataStructure:"tree",deferRendering:!0,expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",selectAllText:u.Z.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(0,f.l)(!0,re,{integrationOptions:{useDeferUpdateForTemplates:!1}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!W.nativeScrolling},options:{useNativeScrolling:!1}}])},_initSelectedItems:h.ZT,_syncSelectionOptions:h.C$,_fireSelectionChanged:function(){(0,B.gx)(this._selectionChangePromise).done(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()}.bind(this))},_createSelectAllValueChangedAction:function(){this._selectAllValueChangedAction=this._createActionByOption("onSelectAllValueChanged",{excludeValidators:["disabled","readOnly"]})},_fireSelectAllValueChanged:function(re){this._selectAllValueChangedAction({value:re})},_checkBoxModeChange:function(re,oe){if("none"!==oe&&"none"!==re){var ye=this._$selectAllItem&&this._$selectAllItem.length;switch(re){case"selectAll":ye||(this._createSelectAllValueChangedAction(),this._renderSelectAllItem());break;case"normal":ye&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}}else this.repaint()},_removeSelection:function(){var re=this;(0,b.S6)(this._dataAdapter.getFullData(),function(oe,ye){re._hasChildren(ye)&&re._dataAdapter.toggleSelection(ye.internalFields.key,!1,!0)})},_optionChanged:function(re){var{name:oe,value:ye,previousValue:Pe}=re;switch(oe){case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",ye);break;case"showCheckBoxesMode":this._checkBoxModeChange(ye,Pe);break;case"scrollDirection":this.getScrollable().option("direction",ye);break;case"useNativeScrolling":this.getScrollable().option("useNative",ye);break;case"items":delete this._$selectAllItem,this.callBase(re);break;case"dataSource":this.callBase(re),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(re);break;case"onSelectAllValueChanged":this._createSelectAllValueChangedAction();break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",re.value),this.repaint();break;default:this.callBase(re)}},_initDataSource:function(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(function(re){re&&re.length&&this.option("items",re)}.bind(this)):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode:function(){var re=this._filter;re.custom||(re.custom=this._dataSource.filter()),re.internal||(re.internal=[this.option("parentIdExpr"),this.option("rootValue")])},_useCustomChildrenLoader:function(){return(0,x.mf)(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader:function(re){var oe=this.option("createChildren").call(this,re);return Array.isArray(oe)?(new B.BH).resolve(oe).promise():oe&&(0,x.mf)(oe.then)?(0,B.p4)(oe):(new B.BH).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(re){var oe=this.option("items");this._initialized&&this._isVirtualMode()&&oe.length||this.option("items",re)},_removeTreeViewLoadIndicator:function(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator:function(){return this._treeViewLoadIndicator=(0,o.Z)("<div>").addClass(se),this._createComponent(this._treeViewLoadIndicator,P.Z,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(re){var oe;if(this._isVirtualMode()&&(oe=this._combineFilter(),this._dataSource.filter(oe)),re&&!this._dataSource.isLoaded()){this.option("items",[]);var ye=(0,o.Z)("<div>").addClass(ge);this._createTreeViewLoadIndicator().appendTo(ye),this.itemsContainer().append(ye),this._isVirtualMode()&&this._dataSource.filter()!==oe&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",re=>{this.option().items=this.option("items").concat(re),this._dataAdapter.addItem(re),this._dataAdapter.isFiltered(re)&&this._updateLevel(this._parentIdGetter(re))}).on("removed",re=>{var oe=this._dataAdapter.getNodeByKey(re);(0,x.$K)(oe)&&(this.option("items")[this._dataAdapter.getIndexByKey(oe.internalFields.key)]=0,this._markChildrenItemsToRemove(oe),this._removeItems(),this._dataAdapter.removeItem(re),this._updateLevel(this._parentIdGetter(oe)))})},_markChildrenItemsToRemove:function(re){(0,b.S6)(re.internalFields.childrenKeys,(ye,Pe)=>{this.option("items")[this._dataAdapter.getIndexByKey(Pe)]=0,this._markChildrenItemsToRemove(this._dataAdapter.getNodeByKey(Pe))})},_removeItems:function(){var re=(0,f.l)(!0,[],this.option("items")),oe=0;(0,b.S6)(re,(ye,Pe)=>{Pe||(this.option("items").splice(ye-oe,1),oe++)})},_updateLevel:function(re){var oe=this._getContainerByParentKey(re);this._renderItems(oe,this._dataAdapter.getChildrenNodes(re))},_getOldContainer:function(re){if(re.length)return re.children(".".concat(Y));var oe=this.getScrollable();return oe?(0,o.Z)(oe.content()).children():(0,o.Z)()},_getContainerByParentKey:function(re){var oe=this._dataAdapter.getNodeByKey(re),ye=oe?this._getNodeElement(oe):[];this._getOldContainer(ye).remove();var Pe=this._renderNodeContainer(ye);if(this._isRootLevel(re)){var Ne=this.getScrollable();Ne||this._renderScrollableContainer(),(0,o.Z)(Ne.content()).append(Pe)}return Pe},_isRootLevel:function(re){return re===this.option("rootValue")},_getAccessors:function(){var re=this.callBase();return re.push("hasItems"),re},_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 re=this._renderNodeContainer();(0,o.Z)(this.getScrollable().content()).append(re),this.option("items")&&this.option("items").length&&(this._renderItems(re,this._dataAdapter.getRootNodes()),this._initExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(re)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){var re=this.getDataSource(),oe=re&&!re.isLoaded()||this._skipContentReadyAndItemExpanded,ye=this.getScrollable();ye&&(0,g.Ym)()&&ye.update(),oe||this.callBase(),ye&&(0,g.Ym)()&&ye.update()},_renderScrollableContainer:function(){this._scrollable=this._createComponent((0,o.Z)("<div>").appendTo(this.$element()),R.Z,{useNative:this.option("useNativeScrolling"),direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(re){var oe=(0,o.Z)("<ul>").addClass(Y);if(this.setAria("role","group",oe),re&&re.length){var ye=this._getItemData(re.children("."+G));this._expandedGetter(ye)&&oe.addClass(j),oe.appendTo(re)}return oe},_createDOMElement:function(re,oe){var ye=(0,o.Z)("<li>").addClass(K).attr(ie,this._encodeString(oe.internalFields.key)).prependTo(re);return this.setAria({role:"treeitem",label:this._displayGetter(oe.internalFields.item)||"",expanded:oe.internalFields.expanded||!1,level:this._getLevel(re)},ye),ye},_getLevel:function(re){var oe=re.parent();return oe.hasClass("dx-scrollable-content")?1:parseInt(oe.attr("aria-level"))+1},_showCheckboxes:function(){return"none"!==this.option("showCheckBoxesMode")},_selectAllEnabled:function(){return"selectAll"===this.option("showCheckBoxesMode")&&!this._isSingleSelection()},_renderItems:function(re,oe){for(var Pe=oe.length-1;Pe>=0;Pe--)this._renderItem(Pe,oe[Pe],re);this._renderedItemsCount+=oe.length},_renderItem:function(re,oe,ye){var Pe=this._createDOMElement(ye,oe),Ne=oe.internalFields,ft=this._showCheckboxes();Pe.addClass(ft?q:Z),Pe.toggleClass(Ae,!1===Ne.item.visible),ft&&this._renderCheckBox(Pe,oe),this.setAria("selected",Ne.selected,Pe),this._toggleSelectedClass(Pe,Ne.selected),this.callBase(this._renderedItemsCount+re,Ne.item,Pe),!1!==Ne.item.visible&&this._renderChildren(Pe,oe)},_setAriaSelected:function(){},_renderChildren:function(re,oe){this._hasChildren(oe)?(this._renderToggleItemVisibilityIcon(re,oe),(!this.option("deferRendering")||oe.internalFields.expanded)&&this._loadSublevel(oe).done(ye=>{this._renderSublevel(re,this._getActualNode(oe),ye)})):this._addLeafClass(re)},_getActualNode:function(re){return this._dataAdapter.getNodeByKey(re.internalFields.key)},_hasChildren:function(re){return this._isVirtualMode()||this._useCustomChildrenLoader()?!1!==this._hasItemsGetter(re.internalFields.item):this.callBase(re)},_loadSublevel:function(re){var oe=new B.BH,ye=this._getChildNodes(re);return ye.length?oe.resolve(ye):this._loadNestedItems(re).done(Pe=>{oe.resolve(this._dataAdapter.getNodesByItems(Pe))}),oe.promise()},_renderSublevel:function(re,oe,ye){var Pe=this._renderNodeContainer(re,oe),Ne=ye.filter(tt=>-1!==oe.internalFields.childrenKeys.indexOf(tt.internalFields.key));if(this._renderItems(Pe,Ne),Ne.length&&!oe.internalFields.selected){var ft=Ne[0];this._updateParentsState(ft,this._getNodeElement(ft))}this._normalizeIconState(re,Ne.length),oe.internalFields.expanded&&Pe.addClass(j)},_executeItemRenderAction:function(re,oe,ye){var Pe=this._getNode(ye);this._getItemRenderAction()({itemElement:ye,itemIndex:re,itemData:oe,node:this._dataAdapter.getPublicNode(Pe)})},_addLeafClass:function(re){re.addClass(ee)},_expandEventHandler:function(re){(0,o.Z)(re.currentTarget.parentNode).hasClass(ee)||this._toggleExpandedState(re.currentTarget,void 0,re)},_initExpandEvent:function(){var re=this._getEventNameByOption(this.option("expandEvent")),oe=this._itemContainer(),ye=this._itemSelector();s.Z.off(oe,"."+_e,ye),s.Z.on(oe,re,ye,this._expandEventHandler.bind(this))},_getEventNameByOption:function(re){return(0,O.V4)("click"===re?d.u:T.u,_e)},_getNode:function(re){if(!(0,x.$K)(re))return null;if(re.internalFields)return re;if((0,x.pt)(re))return this._dataAdapter.getNodeByKey(re);var oe=(0,o.Z)(re).get(0);return oe?p.Z.isElementNode(oe)?this._getNodeByElement(oe):this._dataAdapter.getNodeByItem(oe):null},_getNodeByElement:function(re){var oe=(0,o.Z)(re).closest("."+K),ye=this._decodeString(oe.attr(ie));return this._dataAdapter.getNodeByKey(ye)},_toggleExpandedState:function(re,oe,ye){var Pe=this._getNode(re);if(!Pe)return(new B.BH).reject().promise();if(Pe.internalFields.disabled)return(new B.BH).reject().promise();var Ne=Pe.internalFields.expanded;if(Ne===oe)return(new B.BH).resolve().promise();if(this._hasChildren(Pe)){var ft=this._getNodeElement(Pe);if(ft.find(".".concat(J,":not(.").concat(Ae,")")).length)return(new B.BH).reject().promise();this._createLoadIndicator(ft)}return(0,x.$K)(oe)||(oe=!Ne),this._dataAdapter.toggleExpansion(Pe.internalFields.key,oe),this._updateExpandedItemsUI(Pe,oe,ye)},_createLoadIndicator:function(re){var oe=re.children("."+M),ye=re.children(".".concat(Y));oe.hasClass(De)||ye.not(":empty").length||(this._createComponent((0,o.Z)("<div>").addClass(J),P.Z,{}).$element().appendTo(re),oe.hide())},_renderToggleItemVisibilityIcon:function(re,oe){var ye=(0,o.Z)("<div>").addClass(M).appendTo(re);oe.internalFields.expanded&&(ye.addClass(De),re.parent().addClass(j)),oe.internalFields.disabled&&ye.addClass(ne),this._renderToggleItemVisibilityIconClick(ye,oe)},_renderToggleItemVisibilityIconClick:function(re,oe){var ye=(0,O.V4)(d.u,this.NAME);s.Z.off(re,ye),s.Z.on(re,ye,Pe=>{this._toggleExpandedState(oe.internalFields.key,void 0,Pe)})},_updateExpandedItemsUI:function(re,oe,ye){var Pe=this._getNodeElement(re),Ne=!Pe.length||oe&&Pe.is(":hidden");if(this.option("expandNodesRecursive")&&Ne){var ft=this._getNode(re.internalFields.parentKey);ft&&this._updateExpandedItemsUI(ft,oe,ye)}var tt=Pe.children("."+M),Be=Pe.children(".".concat(Y));tt.toggleClass(De,oe);var mt=Be.length>0,nn=new B.BH;return!oe||mt&&!Be.is(":empty")?(this._animateNodeContainer(re,oe,ye,nn),nn.promise()):0===re.internalFields.childrenKeys.length&&(this._isVirtualMode()||this._useCustomChildrenLoader())?(this._loadNestedItemsWithUpdate(re,oe,ye,nn),nn.promise()):(this._renderSublevel(Pe,re,this._getChildNodes(re)),this._fireContentReadyAction(),this._animateNodeContainer(re,oe,ye,nn),nn.promise())},_loadNestedItemsWithUpdate:function(re,oe,ye,Pe){var Ne=this._getNodeElement(re);this._loadNestedItems(re).done(ft=>{var tt=this._getActualNode(re);this._renderSublevel(Ne,tt,this._dataAdapter.getNodesByItems(ft)),ft&&ft.length?(this._fireContentReadyAction(),this._animateNodeContainer(tt,oe,ye,Pe)):Pe.resolve()})},_loadNestedItems:function(re){if(this._useCustomChildrenLoader()){var oe=this._dataAdapter.getPublicNode(re);return this._loadChildrenByCustomLoader(oe).done(ye=>{this._areNodesExists(ye)||this._appendItems(ye)})}return this._isVirtualMode()?(this._filter.internal=[this.option("parentIdExpr"),re.internalFields.key],this._dataSource.filter(this._combineFilter()),this._dataSource.load().done(ye=>{this._areNodesExists(ye)||this._appendItems(ye)})):(new B.BH).resolve([]).promise()},_areNodesExists:function(re,oe){var ye=this.keyOf(re[0]),Pe=this._dataAdapter.getFullData();return!!this._dataAdapter.getNodeByKey(ye,Pe)},_appendItems:function(re){this.option().items=this.option("items").concat(re),this._initDataAdapter()},_animateNodeContainer:function(re,oe,ye,Pe){var Ne=this._getNodeElement(re),ft=Ne.children(".".concat(Y));re&&Pe&&0===ft.length&&Pe.resolve(),ft.addClass(j);var tt=(0,a.Cr)(ft);k.Z.stop(ft,!0),k.Z.animate(ft,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{maxHeight:oe?0:tt},to:{maxHeight:oe?tt:0},complete:function(){ft.css("maxHeight","none"),ft.toggleClass(j,oe),this.setAria("expanded",oe,Ne),this.getScrollable().update(),this._fireExpandedStateUpdatedEvent(oe,re,ye),Pe&&Pe.resolve()}.bind(this)})},_fireExpandedStateUpdatedEvent:function(re,oe,ye){if(this._hasChildren(oe)&&!this._skipContentReadyAndItemExpanded){var Pe=re?"onItemExpanded":"onItemCollapsed";if((0,x.$K)(ye))this._itemDXEventHandler(ye,Pe,{node:this._dataAdapter.getPublicNode(oe)});else{var Ne=this._getNodeElement(oe);this._itemEventHandler(Ne,Pe,{event:ye,node:this._dataAdapter.getPublicNode(oe)})}}},_normalizeIconState:function(re,oe){var Pe,ye=re.find(".".concat(J));ye.length&&(null===(Pe=P.Z.getInstance(ye))||void 0===Pe||Pe.option("visible",!1));var Ne=re.find(".".concat(M));oe?Ne.show():(Ne.removeClass(M),re.addClass(ee))},_emptyMessageContainer:function(){var re=this.getScrollable();return re?(0,o.Z)(re.content()):this.callBase()},_renderContent:function(){var re=this.option("items");re&&re.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem:function(re){re=re||this.$element().find(".".concat(Y)).first(),this._$selectAllItem=(0,o.Z)("<div>").addClass(Fe);var oe=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,E.Z,{value:oe,tabIndex:1,text:this.option("selectAllText"),onValueChanged:this._onSelectAllCheckboxValueChanged.bind(this)}),this._toggleSelectedClass(this._$selectAllItem,oe),re.before(this._$selectAllItem)},_onSelectAllCheckboxValueChanged:function(re){this._toggleSelectAll(re),this._fireSelectAllValueChanged(re.value)},_toggleSelectAll:function(re){this._dataAdapter.toggleSelectAll(re.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox:function(re,oe){var ye=(0,o.Z)("<div>").appendTo(re);this._createComponent(ye,E.Z,{value:oe.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,disabled:this._disabledGetter(oe)})},_toggleSelectedClass:function(re,oe){re.toggleClass("dx-state-selected",!!oe)},_toggleNodeDisabledState:function(re,oe){var ye=this._getNodeElement(re),Pe=ye.find("."+G).eq(0);this._dataAdapter.toggleNodeDisabledState(re.internalFields.key,oe),Pe.toggleClass(ne,!!oe),this._showCheckboxes()&&this._getCheckBoxInstance(ye).option("disabled",!!oe)},_itemOptionChanged:function(re,oe,ye){var Pe=this._dataAdapter.getNodeByItem(re);oe===this.option("disabledExpr")&&this._toggleNodeDisabledState(Pe,ye)},_changeCheckboxValue:function(re){var ye=(0,o.Z)(re.element).parent("."+K).children("."+G),Pe=this._getItemData(ye),Ne=this._getNodeByElement(ye),ft=re.value;Ne&&Ne.internalFields.selected===ft||this._updateItemSelection(ft,Pe,re.event)},_isSingleSelection:function(){return"single"===this.option("selectionMode")},_isRecursiveSelection:function(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_isLastSelectedBranch:function(re,oe,ye){var Pe=oe.indexOf(re.key);return Pe>=0&&oe.splice(Pe,1),ye&&(0,b.S6)(re.children,function(Ne,ft){this._isLastSelectedBranch(ft,oe,!0)}.bind(this)),re.parent&&this._isLastSelectedBranch(re.parent,oe),0===oe.length},_isLastRequired:function(re){var oe=this.option("selectionRequired"),ye=this._isSingleSelection(),Pe=this.getSelectedNodeKeys();if(oe)return ye?1===Pe.length:this._isLastSelectedBranch(re.internalFields.publicNode,Pe.slice(),!0)},_updateItemSelection:function(re,oe,ye){var Pe=this._getNode(oe);if(!Pe||!1===Pe.visible)return!1;if(Pe.internalFields.selected===re)return!0;if(!re&&this._isLastRequired(Pe)){if(this._showCheckboxes()){var Ne=this._getNodeElement(Pe);this._getCheckBoxInstance(Ne).option("value",!0)}return!1}if(re&&this._isSingleSelection()){var ft=this.getSelectedNodeKeys();(0,b.S6)(ft,(mt,nn)=>{this._dataAdapter.toggleSelection(nn,!1),this._updateItemsUI(),this._fireItemSelectionChanged(this._getNode(nn))})}this._dataAdapter.toggleSelection(Pe.internalFields.key,re);var tt=this._dataAdapter.isAllSelected(),Be=this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value")!==tt;return this._updateItemsUI(),this._fireItemSelectionChanged(Pe,ye),this._fireSelectionChanged(),Be&&this._fireSelectAllValueChanged(tt),!0},_fireItemSelectionChanged:function(re,oe){var ye=oe||this._findItemElementByItem(re.internalFields.item);(oe?this._itemDXEventHandler:this._itemEventHandler).call(this,ye,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(re),itemData:re.internalFields.item})},_getCheckBoxInstance:function(re){return re.children(".dx-checkbox").dxCheckBox("instance")},_updateItemsUI:function(){var re={};if((0,b.S6)(this._dataAdapter.getData(),(ye,Pe)=>{var Ne=this._getNodeElement(Pe,re),ft=Pe.internalFields.selected;Ne.length&&(this._toggleSelectedClass(Ne,ft),this.setAria("selected",ft,Ne),this._showCheckboxes()&&this._getCheckBoxInstance(Ne).option("value",ft))}),this._selectAllEnabled()){var oe=this._$selectAllItem.dxCheckBox("instance");oe.option("onValueChanged",void 0),oe.option("value",this._dataAdapter.isAllSelected()),oe.option("onValueChanged",this._onSelectAllCheckboxValueChanged.bind(this))}},_updateParentsState:function(re,oe){if(oe){var ye=this._dataAdapter.getNodeByKey(re.internalFields.parentKey),Pe=(0,o.Z)(oe.parents("."+K)[0]);if(this._showCheckboxes()){var Ne=ye.internalFields.selected;this._getCheckBoxInstance(Pe).option("value",Ne),this._toggleSelectedClass(Pe,Ne)}ye.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(ye,Pe)}},_itemEventHandlerImpl:function(re,oe,ye){var Pe=(0,o.Z)(re).closest("."+K).children("."+G);return oe((0,f.l)(this._extendActionArgs(Pe),ye))},_itemContextMenuHandler:function(re){this._createEventHandler("onItemContextMenu",re)},_itemHoldHandler:function(re){this._createEventHandler("onItemHold",re)},_createEventHandler:function(re,oe){var ye=this._getNodeByElement(oe.currentTarget);this._itemDXEventHandler(oe,re,{node:this._dataAdapter.getPublicNode(ye)})},_itemClass:function(){return G},_itemDataKey:function(){return X},_attachClickEvent:function(){var re="."+this._itemClass(),oe="."+K+", ."+Fe,ye=(0,O.V4)(d.u,this.NAME),Pe=(0,O.V4)(w.Z.down,this.NAME),Ne=this._itemContainer(),ft=this;s.Z.off(Ne,ye,re),s.Z.off(Ne,Pe,oe),s.Z.on(Ne,ye,re,function(tt){ft._itemClickHandler(tt,(0,o.Z)(this))}),s.Z.on(Ne,Pe,oe,function(tt){ft._itemPointerDownHandler(tt)})},_itemClickHandler:function(re,oe){var ye=this._getItemData(oe),Pe=this._getNodeByElement(oe);this._itemDXEventHandler(re,"onItemClick",{node:this._dataAdapter.getPublicNode(Pe)}),this.option("selectByClick")&&!re.isDefaultPrevented()&&this._updateItemSelection(!Pe.internalFields.selected,ye,re)},_updateSelectionToFirstItem:function(re,oe){for(var ye=oe;ye>=0;){var Pe=(0,o.Z)(re[ye]);this._updateItemSelection(!0,Pe.find("."+G).get(0)),ye--}},_updateSelectionToLastItem:function(re,oe){for(var ye=re.length,Pe=oe;Pe<ye;){var Ne=(0,o.Z)(re[Pe]);this._updateItemSelection(!0,Ne.find("."+G).get(0)),Pe++}},_focusInHandler:function(re){this._updateFocusState(re,!0);var oe=(0,o.Z)(re.target).hasClass(Fe);if(oe||this.option("focusedElement")){clearTimeout(this._setFocusedItemTimeout);var ye=oe?(0,y.u)(this._$selectAllItem):(0,o.Z)(this.option("focusedElement"));this._setFocusedItemTimeout=setTimeout(()=>{this._setFocusedItem(ye)})}else{var Pe=this._getActiveItem();this.option("focusedElement",(0,y.u)(Pe.closest("."+K)))}},_setFocusedItem:function(re){!re||!re.length||re.children().hasClass(ne)||this.callBase(re)},_itemPointerDownHandler:function(re){if(this.option("focusStateEnabled")){var oe=(0,o.Z)(re.target).closest("."+K+", ."+Fe);if(oe.length){var ye=oe.hasClass(ne)?null:oe;this.option("focusedElement",(0,y.u)(ye))}}},_findNonDisabledNodes:function(re){return re.not(function(){return(0,o.Z)(this).children("."+G).hasClass(ne)})},_moveFocus:function(re,oe){var ye="up",Pe="down",Ne="first",ft="last",tt=this.option("rtlEnabled")?"right":"left",Be=this.option("rtlEnabled")?"left":"right";this.$element().find(".".concat(Y)).each(function(){k.Z.stop(this,!0)});var mt=this._findNonDisabledNodes(this._nodeElements());if(mt&&mt.length)switch(re){case ye:var nn=this._prevItem(mt);this.option("focusedElement",(0,y.u)(nn));var ke=this._getNodeItemElement(nn);this.getScrollable().scrollToElement(ke),oe.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,ke);break;case Pe:var $e=this._nextItem(mt);this.option("focusedElement",(0,y.u)($e));var me=this._getNodeItemElement($e);this.getScrollable().scrollToElement(me),oe.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,me);break;case Ne:var xe=mt.first();oe.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(mt,mt.index(this._prevItem(mt))),this.option("focusedElement",(0,y.u)(xe)),this.getScrollable().scrollToElement(this._getNodeItemElement(xe));break;case ft:var Te=mt.last();oe.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(mt,mt.index(this._nextItem(mt))),this.option("focusedElement",(0,y.u)(Te)),this.getScrollable().scrollToElement(this._getNodeItemElement(Te));break;case Be:this._expandFocusedContainer();break;case tt:this._collapseFocusedContainer();break;default:return void this.callBase.apply(this,arguments)}},_getNodeItemElement:function(re){return re.find("."+G).get(0)},_nodeElements:function(){return this.$element().find("."+K).not(":hidden")},_expandFocusedContainer:function(){var re=(0,o.Z)(this.option("focusedElement"));if(re.length&&!re.hasClass(ee)){if(re.find(".".concat(Y)).eq(0).hasClass(j)){var ye=this._nextItem(this._findNonDisabledNodes(this._nodeElements()));return this.option("focusedElement",(0,y.u)(ye)),void this.getScrollable().scrollToElement(this._getNodeItemElement(ye))}var Pe=this._getNodeByElement(re.children("."+G));this._toggleExpandedState(Pe,!0)}},_getClosestNonDisabledNode:function(re){do{re=re.parent().closest("."+K)}while(re.children(".dx-treeview-item.dx-state-disabled").length);return re},_collapseFocusedContainer:function(){var re=(0,o.Z)(this.option("focusedElement"));if(re.length){var oe=re.find(".".concat(Y)).eq(0);if(!re.hasClass(ee)&&oe.hasClass(j)){var ye=this._getNodeByElement(re.children("."+G));this._toggleExpandedState(ye,!1)}else{var Pe=this._getClosestNonDisabledNode(re);Pe.length&&this.option("focusedElement",(0,y.u)(Pe)),this.getScrollable().scrollToElement(this._getNodeItemElement(Pe))}}},_encodeString:function(re){return(0,x.HD)(re)?encodeURI(re):re},_decodeString:function(re){return(0,x.HD)(re)?decodeURI(re):re},getScrollable:function(){return this._scrollable},updateDimensions:function(){var re=new B.BH,oe=this.getScrollable();return oe?oe.update().done(()=>{re.resolveWith(this)}):re.resolveWith(this),re.promise()},selectItem:function(re){return this._updateItemSelection(!0,re)},unselectItem:function(re){return this._updateItemSelection(!1,re)},expandItem:function(re){return this._toggleExpandedState(re,!0)},collapseItem:function(re){return this._toggleExpandedState(re,!1)},getNodes:function(){return this._dataAdapter.getTreeNodes()},getSelectedNodes:function(){return this.getSelectedNodeKeys().map(re=>{var oe=this._dataAdapter.getNodeByKey(re);return this._dataAdapter.getPublicNode(oe)})},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 re=this._dataAdapter.getData(),oe=[];this._skipContentReadyAndItemExpanded=!0,re.forEach(ye=>oe.push(this._toggleExpandedState(ye.internalFields.key,!0))),Promise.allSettled(oe).then(()=>{var ye;return null===(ye=this._allItemsExpanded)||void 0===ye?void 0:ye.call(this)})},collapseAll:function(){(0,b.S6)(this._dataAdapter.getExpandedNodesKeys(),function(re,oe){this._toggleExpandedState(oe,!1)}.bind(this))},scrollToItem:function(re){var oe=this._getNode(re);if(!oe)return(new B.BH).reject().promise();for(var ye=[],Pe=oe.internalFields.publicNode.parent;null!=Pe;)Pe.expanded||ye.push(Pe.key),Pe=Pe.parent;var Ne=new B.BH;return this._expandNodes(ye.reverse()).always(()=>{var ft=this._getNodeElement(oe);ft&&ft.length?(this.scrollToElementTopLeft(ft.get(0)),Ne.resolve()):Ne.reject()}),Ne.promise()},scrollToElementTopLeft:function(re){var oe=this.getScrollable(),{scrollDirection:ye,rtlEnabled:Pe}=this.option(),Ne={top:0,left:0},ft=(0,N.d)(V.hj,re);if(ye!==V.Et){var tt=(0,o.Z)(oe.container()).get(0);Ne.left=Pe?ft.left+re.offsetWidth-tt.clientWidth:ft.left}ye!==V.Xv&&(Ne.top=ft.top),oe.scrollTo(Ne)},_expandNodes:function(re){if(!re||0===re.length)return(new B.BH).resolve().promise();var oe=new B.BH,ye=re.map(Pe=>this.expandItem(Pe));return B.gx.apply(o.Z,ye).done(()=>oe.resolve()).fail(()=>oe.reject()),oe.promise()},_dispose:function(){this.callBase(),clearTimeout(this._setFocusedItemTimeout),this._allItemsExpandedHandler=null}});I.Z.setEditorClass(C.Z);var pe="dx-treeview",Ee="".concat(pe,"-node-container"),ae=le.inherit(I.Z).inherit({_addWidgetPrefix:function(re){return"".concat(pe,"-").concat(re)},_optionChanged:function(re){switch(re.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(re)}},_updateDataAdapter:function(){this._setOptionWithoutOptionChange("expandNodesRecursive",!1),this._initDataAdapter(),this._setOptionWithoutOptionChange("expandNodesRecursive",!0)},_getDataAdapterOptions:function(){return(0,f.l)(this.callBase(),{searchValue:this.option("searchValue"),searchMode:this.option("searchMode")||"contains",searchExpr:this.option("searchExpr")})},_updateSearch:function(){if(this._searchEditor){var re=this._getSearchEditorOptions();this._searchEditor.option(re)}},_repaintContainer:function(){var oe,re=this.$element().find(".".concat(Ee)).first();re.length&&(re.empty(),oe=this._dataAdapter.getRootNodes(),this._renderEmptyMessage(oe),this._renderItems(re,oe),this._fireContentReadyAction())},_itemContainer:function(re){return this._scrollable&&re?(0,o.Z)(this._scrollable.content()):this.callBase()},_addWidgetClass:function(){this.$element().addClass(this._widgetClass())},_clean:function(){this.callBase(),this._removeSearchBox()}});(0,c.Z)("dxTreeView",ae);const te=ae},3191:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>W});var o=l(5031),c=l(5873),I=l(2718),C=l(4562),f=l(9644),a=l(7674),p=l(1828),s=l(658),u=l(9009),d=l(4270);class g{constructor(){this.NAME="base"}defaultMessage(V){return u.Z.getFormatter("validation-".concat(this.NAME))(V)}defaultFormattedMessage(V){return u.Z.getFormatter("validation-".concat(this.NAME,"-formatted"))(V)}_isValueEmpty(V){return!R.required.validate(V,{})}validate(V,U){var K=Array.isArray(V)?V:[V],Y=!0;return K.length?K.every(J=>Y=this._validate(J,U)):Y=this._validate(null,U),Y}}class S extends g{constructor(){super(),this.NAME="custom"}validate(V,U){if(U.ignoreEmptyValue&&this._isValueEmpty(V))return!0;var K=U.validator,Y=K&&(0,p.mf)(K.option)&&K.option("dataGetter"),J=(0,p.mf)(Y)&&Y(),j={value:V,validator:K,rule:U};return J&&(0,c.l)(j,J),U.validationCallback(j)}}var R={required:new class x extends g{constructor(){super(),this.NAME="required"}_validate(V,U){return!(!(0,p.$K)(V)||!1===V)&&(V=String(V),(U.trim||!(0,p.$K)(U.trim))&&(V=V.trim()),""!==V)}},numeric:new class b extends g{constructor(){super(),this.NAME="numeric"}_validate(V,U){return!(!1===U.ignoreEmptyValue||!this._isValueEmpty(V))||(U.useCultureSettings&&(0,p.HD)(V)?!isNaN(s.Z.parse(V)):(0,p.kE)(V))}},range:new class y extends g{constructor(){super(),this.NAME="range"}_validate(V,U){if(!1!==U.ignoreEmptyValue&&this._isValueEmpty(V))return!0;var K=R.numeric.validate(V,U),Y=(0,p.$K)(V)&&""!==V,J=K?parseFloat(V):Y&&V.valueOf(),j=U.min,ee=U.max;if(!K&&!(0,p.J_)(V)&&!Y)return!1;if((0,p.$K)(j))return(0,p.$K)(ee)?J>=j&&J<=ee:J>=j;if((0,p.$K)(ee))return J<=ee;throw f.Z.Error("E0101")}},stringLength:new class E extends g{constructor(){super(),this.NAME="stringLength"}_validate(V,U){var K;return V=String(null!==(K=V)&&void 0!==K?K:""),(U.trim||!(0,p.$K)(U.trim))&&(V=V.trim()),!(!U.ignoreEmptyValue||!this._isValueEmpty(V))||R.range.validate(V.length,(0,c.l)({},U))}},custom:new S,async:new class O extends S{constructor(){super(),this.NAME="async"}validate(V,U){if((0,p.$K)(U.reevaluate)||(0,c.l)(U,{reevaluate:!0}),U.ignoreEmptyValue&&this._isValueEmpty(V))return!0;var K=U.validator,Y=K&&(0,p.mf)(K.option)&&K.option("dataGetter"),J=(0,p.mf)(Y)&&Y(),j={value:V,validator:K,rule:U};J&&(0,c.l)(j,J);var ee=U.validationCallback(j);if(!(0,p.tI)(ee))throw f.Z.Error("E0103");return this._getWrappedPromise((0,d.p4)(ee).promise())}_getWrappedPromise(V){var U=new d.BH;return V.then(function(K){U.resolve(K)},function(K){var Y={isValid:!1};(0,p.$K)(K)&&((0,p.HD)(K)?Y.message=K:(0,p.Kn)(K)&&(0,p.$K)(K.message)&&(0,p.HD)(K.message)&&(Y.message=K.message)),U.resolve(Y)}),U.promise()}},compare:new class w extends g{constructor(){super(),this.NAME="compare"}_validate(V,U){if(!U.comparisonTarget)throw f.Z.Error("E0102");if(U.ignoreEmptyValue&&this._isValueEmpty(V))return!0;(0,c.l)(U,{reevaluate:!0});var K=U.comparisonTarget();switch(U.comparisonType||"=="){case"==":return V==K;case"!=":return V!=K;case"===":return V===K;case"!==":return V!==K;case">":return V>K;case">=":return V>=K;case"<":return V<K;case"<=":return V<=K}}},pattern:new class T extends g{constructor(){super(),this.NAME="pattern"}_validate(V,U){if(!1!==U.ignoreEmptyValue&&this._isValueEmpty(V))return!0;var K=U.pattern;return(0,p.HD)(K)&&(K=new RegExp(K)),K.test(V)}},email:new class k extends g{constructor(){super(),this.NAME="email"}_validate(V,U){return!(!1===U.ignoreEmptyValue||!this._isValueEmpty(V))||R.pattern.validate(V,(0,c.l)({},U,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))}}},P=o.Z.inherit({ctor(N){this.group=N,this.validators=[],this._pendingValidators=[],this._onValidatorStatusChanged=this._onValidatorStatusChanged.bind(this),this._resetValidationInfo(),this._eventsStrategy=new C.m(this)},validate(){var N={isValid:!0,brokenRules:[],validators:[],status:"valid",complete:null};return this._unsubscribeFromAllChangeEvents(),this._pendingValidators=[],this._resetValidationInfo(),(0,I.S6)(this.validators,(V,U)=>{var K=U.validate();N.isValid=N.isValid&&K.isValid,K.brokenRules&&(N.brokenRules=N.brokenRules.concat(K.brokenRules)),N.validators.push(U),"pending"===K.status&&this._addPendingValidator(U),this._subscribeToChangeEvents(U)}),this._pendingValidators.length?N.status="pending":(N.status=N.isValid?"valid":"invalid",this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(N)),this._updateValidationInfo(N),(0,c.l)({},this._validationInfo.result)},_subscribeToChangeEvents(N){N.on("validating",this._onValidatorStatusChanged),N.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents(N){N.off("validating",this._onValidatorStatusChanged),N.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents(){(0,I.S6)(this.validators,(N,V)=>{this._unsubscribeFromChangeEvents(V)})},_updateValidationInfo(N){this._validationInfo.result=N,"pending"===N.status&&(this._validationInfo.deferred||(this._validationInfo.deferred=new d.BH,this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator(N){(0,a.h3)(this._pendingValidators,function(U){return U===N})[0]||this._pendingValidators.push(N)},_removePendingValidator(N){var V=this._pendingValidators.indexOf(N);V>=0&&this._pendingValidators.splice(V,1)},_orderBrokenRules(N){var V=[];return(0,I.S6)(this.validators,function(U,K){var Y=(0,a.h3)(N,function(J){return J.validator===K});Y.length&&(V=V.concat(Y))}),V},_updateBrokenRules(N){if(this._validationInfo.result){var V=this._validationInfo.result.brokenRules,U=(0,a.h3)(V,function(K){return K.validator!==N.validator});N.brokenRules&&(V=U.concat(N.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(V)}},_onValidatorStatusChanged(N){"pending"!==N.status?this._resolveIfComplete(N):this._addPendingValidator(N.validator)},_resolveIfComplete(N){if(this._removePendingValidator(N.validator),this._updateBrokenRules(N),!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 V=(0,c.l)({},this._validationInfo.result,{complete:null}),U=this._validationInfo.deferred;this._validationInfo.deferred=null,this._raiseValidatedEvent(V),U&&setTimeout(()=>{U.resolve(V)})}},_raiseValidatedEvent(N){this._eventsStrategy.fireEvent("validated",[N])},_resetValidationInfo(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator(N){var V=this.validators.indexOf(N);V>-1&&(this.validators.splice(V,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:N}))},registerValidator(N){this.validators.includes(N)||(this.validators.push(N),this._synchronizeValidationInfo())},reset(){(0,I.S6)(this.validators,function(N,V){V.reset()}),this._pendingValidators=[],this._resetValidationInfo()},on(N,V){return this._eventsStrategy.on(N,V),this},off(N,V){return this._eventsStrategy.off(N,V),this}}),B={groups:[],getGroupConfig(N){var V=(0,a.h3)(this.groups,function(U){return U.group===N});if(V.length)return V[0]},findGroup(N,V){var U,K,J=(null===(U=N.data())||void 0===U||null===(K=U.dxComponents)||void 0===K?void 0:K.includes("dxValidationGroup"))&&N.dxValidationGroup("instance");if(J)return J;var j=N.parents(".dx-validationgroup").first();return j.length?j.dxValidationGroup("instance"):V},initGroups(){this.groups=[],this.addGroup()},addGroup(N){var V=this.getGroupConfig(N);return V||(V=new P(N),this.groups.push(V)),V},removeGroup(N){var V=this.getGroupConfig(N),U=this.groups.indexOf(V);return U>-1&&this.groups.splice(U,1),V},_setDefaultMessage(N){var{rule:V,validator:U,name:K}=N;(0,p.$K)(V.message)||(V.message=U.defaultFormattedMessage&&(0,p.$K)(K)?U.defaultFormattedMessage(K):U.defaultMessage())},_addBrokenRule(N){var{result:V,rule:U}=N;V.brokenRule||(V.brokenRule=U),V.brokenRules||(V.brokenRules=[]),V.brokenRules.push(U)},validate(N,V,U){var K,Y={name:U,value:N,brokenRule:null,brokenRules:null,isValid:!0,validationRules:V,pendingRules:null,status:"valid",complete:null},J=null==V||null===(K=V[0])||void 0===K?void 0:K.validator,j=[];return(0,I.S6)(V||[],(ee,G)=>{var Z,q=R[G.type];if(!q)throw f.Z.Error("E0100");return(0,p.$K)(G.isValid)&&G.value===N&&!G.reevaluate?!!G.isValid||(Y.isValid=!1,this._addBrokenRule({result:Y,rule:G}),!1):(G.value=N,"async"===G.type?(j.push({rule:G,ruleValidator:q}),!0):(Z=q.validate(N,G),G.isValid=Z,Z||(Y.isValid=!1,this._setDefaultMessage({rule:G,validator:q,name:U}),this._addBrokenRule({result:Y,rule:G})),!!G.isValid&&void 0))}),Y.isValid&&!Y.brokenRules&&j.length&&(Y=this._validateAsyncRules({value:N,items:j,result:Y,name:U})),this._synchronizeGroupValidationInfo(J,Y),Y.status=Y.pendingRules?"pending":Y.isValid?"valid":"invalid",Y},_synchronizeGroupValidationInfo(N,V){var U;if(N){var K=B.getGroupConfig(N._validationGroup);K._updateBrokenRules.call(K,{validator:N,brokenRules:null!==(U=V.brokenRules)&&void 0!==U?U:[]})}},_validateAsyncRules(N){var{result:V,value:U,items:K,name:Y}=N,J=[];return(0,I.S6)(K,(j,ee)=>{var G=ee.ruleValidator.validate(U,ee.rule);if((0,p.tI)(G)){V.pendingRules||(V.pendingRules=[]),V.pendingRules.push(ee.rule);var q=G.then(Z=>{var X=this._getPatchedRuleResult(Z);return this._updateRuleConfig({rule:ee.rule,ruleResult:X,validator:ee.ruleValidator,name:Y}),X});J.push(q)}else this._updateRuleConfig({rule:ee.rule,ruleResult:this._getPatchedRuleResult(G),validator:ee.ruleValidator,name:Y})}),J.length&&(V.complete=Promise.all(J).then(j=>this._getAsyncRulesResult({result:V,values:j}))),V},_updateRuleConfig(N){var{rule:V,ruleResult:U,validator:K,name:Y}=N;V.isValid=U.isValid,U.isValid||((0,p.$K)(U.message)&&(0,p.HD)(U.message)&&U.message.length?V.message=U.message:this._setDefaultMessage({rule:V,validator:K,name:Y}))},_getPatchedRuleResult(N){var V;return(0,p.Kn)(N)?(V=(0,c.l)({},N),(0,p.$K)(V.isValid)||(V.isValid=!0)):V={isValid:!(0,p.jn)(N)||N},V},_getAsyncRulesResult(N){var{values:V,result:U}=N;return(0,I.S6)(V,(K,Y)=>{!1===Y.isValid&&(U.isValid=Y.isValid,this._addBrokenRule({result:U,rule:U.pendingRules[K]}))}),U.pendingRules=null,U.complete=null,U.status=U.isValid?"valid":"invalid",U},registerValidatorInGroup(N,V){var U=B.addGroup(N);U.registerValidator.call(U,V)},_shouldRemoveGroup:(N,V)=>!(void 0===N||N&&"dxValidationGroup"===N.NAME||V.length),removeRegisteredValidator(N,V){var U=B.getGroupConfig(N);U&&(U.removeRegisteredValidator.call(U,V),this._shouldRemoveGroup(N,U.validators)&&this.removeGroup(N))},initValidationOptions(N){var V={};return N&&["isValid","validationStatus","validationError","validationErrors"].forEach(U=>{U in N&&(0,c.l)(V,this.synchronizeValidationOptions({name:U,value:N[U]},N))}),V},synchronizeValidationOptions(N,V){var{name:U,value:K}=N;switch(U){case"validationStatus":var Y="valid"===K||"pending"===K;return V.isValid!==Y?{isValid:Y}:{};case"isValid":var{validationStatus:J}=V,j=J;return K&&"invalid"===J?j="valid":!K&&"invalid"!==J&&(j="invalid"),j!==J?{validationStatus:j}:{};case"validationErrors":var ee=K&&K.length?K[0]:null;return V.validationError!==ee?{validationError:ee}:{};case"validationError":var{validationErrors:G}=V;if(!K&&G)return{validationErrors:null};if(K&&!G)return{validationErrors:[K]};if(K&&G&&K!==G[0])return G[0]=K,{validationErrors:G.slice()}}return{}},validateGroup(N){var V=B.getGroupConfig(N);if(!V)throw f.Z.Error("E0110");return V.validate()},resetGroup(N){var V=B.getGroupConfig(N);if(!V)throw f.Z.Error("E0110");return V.reset()}};B.initGroups();const W=B},4510:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>h});var o=l(9904),c=l(8506),I=l(8893),C=l(8493),f=l(3191),a=l(9109),p="dx-validationgroup";class d extends I.Z{_getDefaultOptions(){return super._getDefaultOptions()}_init(){super._init(),f.Z.addGroup(this)}_initMarkup(){var x=this.$element();x.addClass(p),x.find(".".concat("dx-validator")).each(function(b,y){a.Z.getInstance((0,o.Z)(y))._initGroupRegistration()}),x.find(".".concat("dx-validationsummary")).each(function(b,y){C.Z.getInstance((0,o.Z)(y)).refreshValidationGroup()}),super._initMarkup()}validate(){return f.Z.validateGroup(this)}reset(){return f.Z.resetGroup(this)}_dispose(){f.Z.removeGroup(this),this.$element().removeClass(p),super._dispose()}_useTemplates(){return!1}}(0,c.Z)("dxValidationGroup",d);const h=d},8785:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>y});var o=l(4817),c=l(1805),I=l(9904),C=l(8506),f=l(3576),a=l(5873),p=l(9589),s=l(5450),u="dx-invalid-message",b=f.Z.inherit({_getDefaultOptions(){return(0,a.l)(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:E}=this.option();this.option("position.of",E)},_ensureMessageNotEmpty:function(){this._textMarkup=this._getTextMarkup();var E=this.option("visible")&&this._textMarkup;this._toggleVisibilityClasses(E)},_toggleVisibilityClasses:function(E){E?(this.$element().addClass(u),this.$wrapper().addClass(u)):(this.$element().removeClass(u),this.$wrapper().removeClass(u))},_updateContentId(){var{container:E,contentId:S}=this.option(),O=S??(0,I.Z)(E).attr("aria-describedby");this.$content().addClass("dx-invalid-message-content").attr("id",O)},_renderInnerHtml(E){(E&&(0,I.Z)(E))?.html(this._textMarkup)},_getTextMarkup(){var E,S=null!==(E=this.option("validationErrors"))&&void 0!==E?E:[],O="";return S.forEach(w=>{var T;O+=(O?"<br />":"")+(0,p.HZ)(null!==(T=w?.message)&&void 0!==T?T:"")}),O},_toggleModeClass(){var E=this.option("mode");this.$wrapper().toggleClass("dx-invalid-message-auto","auto"===E).toggleClass("dx-invalid-message-always","always"===E)},updateMaxWidth(){var E=this.option("target"),S=(0,c.Y_)(E),O="100%";S&&(O=Math.max(S,100)),this.option({maxWidth:O})},_getPositionsArray:function(E,S){switch(E){case"top":return["".concat(S," bottom"),"".concat(S," top")];case"left":return["right","left"];case"right":return["left","right"];default:return["".concat(S," top"),"".concat(S," bottom")]}},_updatePosition:function(){var{positionSide:E,rtlEnabled:S,offset:O,boundary:w}=this.option(),T=(0,s.q)(S),k=this._getPositionsArray(E,T),R=(0,o.Z)({},O);this.$element().addClass("dx-invalid-message-".concat(E)),S&&"left"!==E&&"right"!==E&&(R.h=-R.h),"top"===E&&(R.v=-R.v),"left"===E&&(R.h=-R.h),this.option("position",{offset:R,boundary:w,my:k[0],at:k[1],collision:"none flip"})},_optionChanged(E){var{name:S,value:O,previousValue:w}=E;switch(S){case"target":this._updatePositionByTarget(),this.updateMaxWidth(),this.callBase(E);break;case"boundary":this.option("position.boundary",O);break;case"mode":this._toggleModeClass(O);break;case"rtlEnabled":case"offset":case"positionSide":this.$element().removeClass("dx-invalid-message-".concat(w)),this._updatePosition();break;case"container":this._updateContentId(),this.callBase(E);break;case"contentId":this._updateContentId();break;case"validationErrors":this._ensureMessageNotEmpty(),this._renderInnerHtml(this.$content());break;default:this.callBase(E)}}});(0,C.Z)("dxValidationMessage",b);const y=b},8493:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>g});var o=l(8506),c=l(913),I=l(7674),C=l(5873),f=l(2718),a=l(3191),p=l(7307),s="dx-validationsummary",u=s+"-item",d=s+"-item-data",h=p.Z.inherit({_getDefaultOptions(){return(0,C.l)(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference(){this.callBase(),(0,C.l)(this._optionsByReference,{validationGroup:!0})},_init(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration(){var x=this.$element(),b=this.option("validationGroup")||a.Z.findGroup(x,this._modelByElement(x)),y=a.Z.addGroup(b);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=b,this.groupSubscription=this._groupValidationHandler.bind(this),y.on("validated",this.groupSubscription)},_unsubscribeGroup(){var x=a.Z.getGroupConfig(this._validationGroup);x&&x.off("validated",this.groupSubscription)},_getOrderedItems(x,b){var y=[];return(0,f.S6)(x,function(E,S){var O=(0,I.h3)(b,function(w){if(w.validator===S)return!0});O.length&&(y=y.concat(O))}),y},_groupValidationHandler(x){var b=this._getOrderedItems(x.validators,(0,f.UI)(x.brokenRules,function(y){return{text:y.message,validator:y.validator,index:y.index}}));this.validators=x.validators,(0,f.S6)(this.validators,(y,E)=>{if(E._validationSummary!==this){var S=this._itemValidationHandler.bind(this);E.on("validated",S),E.on("disposing",function(){E.off("validated",S),E._validationSummary=null,S=null}),E._validationSummary=this}}),this.option("items",b)},_itemValidationHandler(x){for(var{isValid:b,validator:y,brokenRules:E}=x,S=this.option("items"),O=!1,w=0,T=function(){var R=S[w];if(R.validator===y){var P=(0,I.h3)(E||[],function(B){return B.index===R.index})[0];if(b||!P)return S.splice(w,1),O=!0,"continue";P.message!==R.text&&(R.text=P.message,O=!0)}w++};w<S.length;)T();(0,f.S6)(E,function(R,P){(0,I.h3)(S,function(W){return W.validator===y&&W.index===P.index})[0]||(S.push({text:P.message,validator:y,index:P.index}),O=!0)}),O&&(S=this._getOrderedItems(this.validators,S),this.option("items",S))},_initMarkup(){this.$element().addClass(s),this.callBase()},_optionChanged(x){"validationGroup"===x.name?this._initGroupRegistration():this.callBase(x)},_itemClass:()=>u,_itemDataKey:()=>d,_postprocessRenderItem(x){c.Z.on(x.itemElement,"click",function(){x.itemData.validator&&x.itemData.validator.focus&&x.itemData.validator.focus()})},_dispose(){this.callBase(),this._unsubscribeGroup()},refreshValidationGroup(){this._initGroupRegistration()}});(0,o.Z)("dxValidationSummary",h);const g=h},9109:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>w});var o=l(5610),c=l(5365),I=l(8159),C=l(8893),f=l(5873),a=l(2718),p=l(3191);const d=l(5031).Z.inherit({ctor(T,k){this.editor=T,this.validator=k,this.validationRequestsCallbacks=[];var R=P=>{this.validationRequestsCallbacks.forEach(B=>B(P))};T.validationRequest.add(R),T.on("disposing",function(){T.validationRequest.remove(R)})},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()}});var h=l(8506),g=l(4270),x=l(6492),y="valid",S="pending",O=C.Z.inherit({_initOptions:function(T){this.callBase.apply(this,arguments),this.option(p.Z.initValidationOptions(T))},_getDefaultOptions(){return(0,f.l)(this.callBase(),{validationRules:[]})},_init(){this.callBase(),this._initGroupRegistration(),this.focused=(0,c.Z)(),this._initAdapter(),this._validationInfo={result:null,deferred:null,skipValidation:!1}},_initGroupRegistration(){var T=this._findGroup();this._groupWasInit||this.on("disposing",function(k){p.Z.removeRegisteredValidator(k.component._validationGroup,k.component)}),(!this._groupWasInit||this._validationGroup!==T)&&(p.Z.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=T,p.Z.registerValidatorInGroup(T,this))},_setOptionsByReference(){this.callBase(),(0,f.l)(this._optionsByReference,{validationGroup:!0})},_getEditor(){var T=this.$element()[0];return(0,o.aT)(T,"dx-validation-target")},_initAdapter(){var T=this._getEditor(),k=this.option("adapter");if(!k){if(T)return(k=new d(T,this)).validationRequestsCallbacks.push(P=>{this._validationInfo.skipValidation||this.validate(P)}),void this.option("adapter",k);throw I.Z.Error("E0120")}var R=k.validationRequestsCallbacks;R&&R.push(P=>{this.validate(P)})},_toggleRTLDirection(T){var k,R,P,B=null!==(k=null===(R=this.option("adapter"))||void 0===R||null===(P=R.editor)||void 0===P?void 0:P.option("rtlEnabled"))&&void 0!==k?k:T;this.callBase(B)},_initMarkup(){this.$element().addClass("dx-validator"),this.callBase()},_render(){this.callBase(),this._toggleAccessibilityAttributes()},_toggleAccessibilityAttributes(){var T=this._getEditor();if(T){var R=(this.option("validationRules")||[]).some(P=>{var{type:B}=P;return"required"===B})||null;T.isInitialized()&&T.setAria("required",R),T.option("_onMarkupRendered",()=>{T.setAria("required",R)})}},_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(p.Z.synchronizeValidationOptions(T,this.option()));break;default:this.callBase(T)}},_getValidationRules(){return this._validationRules||(this._validationRules=(0,a.UI)(this.option("validationRules"),(T,k)=>(0,f.l)({},T,{validator:this,index:k}))),this._validationRules},_findGroup(){var T=this.$element();return this.option("validationGroup")||p.Z.findGroup(T,this._modelByElement(T))},_resetValidationRules(){delete this._validationRules},validate(T){var U,k=this.option("adapter"),R=this.option("name"),P=k.bypass&&k.bypass(),B=T&&void 0!==T.value?T.value:k.getValue(),W=k.getCurrentValidationError&&k.getCurrentValidationError(),N=this._getValidationRules(),V=this._validationInfo&&this._validationInfo.result;return V&&V.status===S&&V.value===B?(0,f.l)({},V):(P?U={isValid:!0,status:y}:W&&W.editorSpecific?(W.validator=this,U={isValid:!1,status:"invalid",brokenRule:W,brokenRules:[W]}):U=p.Z.validate(B,N,R),U.id=(new x.Z).toString(),this._applyValidationResult(U,k),U.complete&&U.complete.then(K=>{K.id===this._validationInfo.result.id&&this._applyValidationResult(K,k)}),(0,f.l)({},this._validationInfo.result))},reset(){var T=this.option("adapter"),k={id:null,isValid:!0,brokenRule:null,brokenRules:null,pendingRules:null,status:y,complete:null};this._validationInfo.skipValidation=!0,T.reset(),this._validationInfo.skipValidation=!1,this._resetValidationRules(),this._applyValidationResult(k,T)},_updateValidationResult(T){if(this._validationInfo.result&&this._validationInfo.result.id===T.id)for(var R in T)"id"!==R&&"complete"!==R&&(this._validationInfo.result[R]=T[R]);else this._validationInfo.result=(0,f.l)({},T,{complete:this._validationInfo.deferred&&this._validationInfo.result.complete})},_applyValidationResult(T,k){var R=this._createActionByOption("onValidated",{excludeValidators:["readOnly"]});if(T.validator=this,this._updateValidationResult(T),k.applyValidationResults&&k.applyValidationResults(this._validationInfo.result),this.option({validationStatus:this._validationInfo.result.status}),this._validationInfo.result.status===S)return this._validationInfo.deferred||(this._validationInfo.deferred=new g.BH,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this._eventsStrategy.fireEvent("validating",[this._validationInfo.result]);this._validationInfo.result.status!==S&&(R(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}});(0,h.Z)("dxValidator",O);const w=O},7:(kn,he,l)=>{"use strict";l.d(he,{KW:()=>f,ht:()=>a,si:()=>p});var o=l(9904),c=l(9897),I=function(s,u){if(!function C(s){var u=(0,o.Z)(s);return u.is(":visible")&&"hidden"!==u.css("visibility")&&"hidden"!==u.parents().css("visibility")}(s))return!1;var d=s.nodeName.toLowerCase(),h=!isNaN(u),g=s.disabled;return/^(input|select|textarea|button|object|iframe)$/.test(d)||s.isContentEditable?!g:"a"===d&&s.href||h},f=function(s,u){return I(u,(0,o.Z)(u).attr("tabIndex"))},a=function(s,u){var d=(0,o.Z)(u).attr("tabIndex");return(isNaN(d)||d>=0)&&I(u,d)},p=function(s){var u=(0,o.Z)(s).get(0);return c.Z.getActiveElement(u)===u}},7078:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>f});var o=l(9904),c=l(1469),I="dx-swatch-";const f={getSwatchContainer:a=>{var s=(0,o.Z)(a).closest('[class^="'.concat(I,'"], [class*=" ').concat(I,'"]')),u=(0,c.S3)();if(!s.length)return u;var d=new RegExp("(\\s|^)(".concat(I,".*?)(\\s|$)")),h=s[0].className.match(d)[2],g=u.children("."+h);return g.length||(g=(0,o.Z)("<div>").addClass(h).appendTo(u)),g}}},8159:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>I});var o=l(9389),c=l(9644);const I=(0,o.Z)(c.Z.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."})},2589:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>s});var o=l(9904),c=l(5873),I=l(9009),C=l(8159),f=l(4270),p=function a(u){return class{constructor(){throw new Error("Module '".concat(u,"' not found"))}static getInstance(){}}}("TextBox");const s={_getDefaultOptions:function(){return(0,c.l)(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var u=this.$element(),d=this.option("searchEnabled"),h=this._addWidgetPrefix("search"),g=this._addWidgetPrefix("with-search");if(!d)return u.removeClass(g),void this._removeSearchBox();var x=this._getSearchEditorOptions();this._searchEditor?this._searchEditor.option(x):(u.addClass(g),this._$searchEditorElement=(0,o.Z)("<div>").addClass(h).prependTo(u),this._searchEditor=this._createComponent(this._$searchEditorElement,p,x))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var u=this,d=u.option("searchEditorOptions"),h=I.Z.format("Search");return(0,c.l)({mode:"search",placeholder:h,tabIndex:u.option("tabIndex"),value:u.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":h},onValueChanged:function(g){var x=u.option("searchTimeout");u._valueChangeDeferred=new f.BH,clearTimeout(u._valueChangeTimeout),u._valueChangeDeferred.done(function(){this.option("searchValue",g.value)}.bind(u)),g.event&&"input"===g.event.type&&x?u._valueChangeTimeout=setTimeout(function(){u._valueChangeDeferred.resolve()},x):u._valueChangeDeferred.resolve()}},d)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(u,d){this.option("searchEnabled")&&this._toggleFocusClass(d,this.$element()),this.callBase(u,d)},getOperationBySearchMode:function(u){return"equals"===u?"=":u},_cleanAria:function(u){this.setAria({role:null,activedescendant:null},u),u.attr("tabIndex",null)},_optionChanged:function(u){switch(u.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 C.Z.log("W1009");"searchMode"===u.name?this._dataSource.searchOperation(this.getOperationBySearchMode(u.value)):this._dataSource[u.name](u.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(u)}},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(u){p=u}}},6853:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>S});var o=l(9904),c=l(9866),I=l(8893),C=l(114),f=l(7674),a=l(2718),p=l(5873),s=l(7),u=l(1828),d=l(2941),h=l(2161);function y(O,w,T){O="role"===O||"id"===O?O:"aria-".concat(O),w=(0,u.$K)(w)?w.toString():null,T.attr(O,w)}l(227),l(1409),l(5239);var E=I.Z.inherit({_feedbackHideTimeout:400,_feedbackShowTimeout:30,_supportedKeys:()=>({}),_getDefaultOptions(){return(0,p.l)(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 O=d.Z.real();return"ios"===O.platform&&(0,h.q)(O.version,"13.3")<=0},options:{useResizeObserver:!1}}])},_init(){this.callBase(),this._initContentReadyAction()},_innerWidgetOptionChanged:function(O,w){var T=E.getOptionsFromContainer(w);O&&O.option(T),this._options.cache(w.name,T)},_bindInnerWidgetOptions(O,w){var T=()=>this._options.silent(w,(0,p.l)({},O.option()));T(),O.on("optionChanged",T)},_getAriaTarget(){return this._focusTarget()},_initContentReadyAction(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup(){var{disabled:O,visible:w}=this.option();this.$element().addClass("dx-widget"),this._toggleDisabledState(O),this._toggleVisibility(w),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents(),this._toggleIndependentState()},_renderHint(){var{hint:O}=this.option();this.$element().attr("title",O||null)},_renderContent(){(0,f.g0)(()=>this._disposed?void 0:this._renderContentImpl()).done(()=>this._disposed?void 0:this._fireContentReadyAction())},_renderContentImpl:f.ZT,_fireContentReadyAction:(0,f.Rg)(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(O){this.$element().toggleClass("dx-state-invisible",!O),this.setAria("hidden",!O||void 0)},_renderFocusState(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey(){var O=this._focusTarget(),{accessKey:w}=this.option();O.attr("accesskey",w)},_isFocusable(){var{focusStateEnabled:O,disabled:w}=this.option();return O&&!w},_eventBindingTarget(){return this.$element()},_focusTarget(){return this._getActiveElement()},_isFocusTarget:function(O){return(0,o.Z)(this._focusTarget()).toArray().includes(O)},_getActiveElement(){var O=this._eventBindingTarget();return this._activeStateUnit?O.find(this._activeStateUnit).not(".dx-state-disabled"):O},_renderFocusTarget(){var{tabIndex:O}=this.option();this._focusTarget().attr("tabIndex",O)},_keyboardEventBindingTarget(){return this._eventBindingTarget()},_refreshFocusEvent(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget(){return this._focusTarget()},_focusInHandler(O){O.isDefaultPrevented()||this._createActionByOption("onFocusIn",{beforeExecute:()=>this._updateFocusState(O,!0),excludeValidators:["readOnly"]})({event:O})},_focusOutHandler(O){O.isDefaultPrevented()||this._createActionByOption("onFocusOut",{beforeExecute:()=>this._updateFocusState(O,!1),excludeValidators:["readOnly","disabled"]})({event:O})},_updateFocusState(O,w){var{target:T}=O;this._isFocusTarget(T)&&this._toggleFocusClass(w,(0,o.Z)(T))},_toggleFocusClass(O,w){(w&&w.length?w:this._focusTarget()).toggleClass("dx-state-focused",O)},_hasFocusClass(O){return(0,o.Z)(O||this._focusTarget()).hasClass("dx-state-focused")},_isFocused(){return this._hasFocusClass()},_getKeyboardListeners:()=>[],_attachKeyboardEvents(){this._detachKeyboardEvents();var{focusStateEnabled:O,onKeyboardHandled:w}=this.option(),T=this._getKeyboardListeners().length;(O||T||w)&&(this._keyboardListenerId=C.dG.on(this._keyboardEventBindingTarget(),this._focusTarget(),P=>this._keyboardHandler(P)))},_keyboardHandler(O,w){if(!w){var{originalEvent:T,keyName:k,which:R}=O,P=this._supportedKeys(T),B=P[k]||P[R];if(void 0!==B&&!B.bind(this)(T,O))return!1}var V=this._getKeyboardListeners(),{onKeyboardHandled:U}=this.option();return V.forEach(K=>K&&K._keyboardHandler(O)),U&&U(O),!0},_refreshFocusState(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState(){this._focusTarget().removeAttr("tabIndex"),this._toggleFocusClass(!1),this._detachFocusEvents(),this._detachKeyboardEvents()},_detachKeyboardEvents(){C.dG.off(this._keyboardListenerId),this._keyboardListenerId=null},_attachHoverEvents(){var{hoverStateEnabled:O}=this.option(),w=this._activeStateUnit,T=this._eventBindingTarget();C.Mr.off(T,{selector:w,namespace:"UIFeedback"}),O&&C.Mr.on(T,new c.Z(k=>{var{event:R,element:P}=k;this._hoverStartHandler(R),this.option("hoveredElement",(0,o.Z)(P))},{excludeValidators:["readOnly"]}),k=>{this.option("hoveredElement",null),this._hoverEndHandler(k)},{selector:w,namespace:"UIFeedback"})},_attachFeedbackEvents(){var{activeStateEnabled:O}=this.option(),w=this._activeStateUnit,T=this._eventBindingTarget();C.bB.off(T,{namespace:"UIFeedback",selector:w}),O&&C.bB.on(T,new c.Z(k=>{var{event:R,element:P}=k;return this._toggleActiveState((0,o.Z)(P),!0,R)}),new c.Z(k=>{var{event:R,element:P}=k;return this._toggleActiveState((0,o.Z)(P),!1,R)},{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:w,namespace:"UIFeedback"})},_detachFocusEvents(){var O=this._focusEventTarget();C.T_.off(O,{namespace:"".concat(this.NAME,"Focus")})},_attachFocusEvents(){var O=this._focusEventTarget();C.T_.on(O,w=>this._focusInHandler(w),w=>this._focusOutHandler(w),{namespace:"".concat(this.NAME,"Focus"),isFocusable:(w,T)=>(0,o.Z)(T).is(s.KW)})},_hoverStartHandler:f.ZT,_hoverEndHandler:f.ZT,_toggleActiveState(O,w){this.option("isActive",w),O.toggleClass("dx-state-active",w)},_updatedHover(){var O=this._options.silent("hoveredElement");this._hover(O,O)},_findHoverTarget(O){return O&&O.closest(this._activeStateUnit||this._eventBindingTarget())},_hover(O,w){var{hoverStateEnabled:T,disabled:k,isActive:R}=this.option();if((w=this._findHoverTarget(w))&&w.toggleClass("dx-state-hover",!1),O&&T&&!k&&!R){var P=this._findHoverTarget(O);P&&P.toggleClass("dx-state-hover",!0)}},_toggleDisabledState(O){this.$element().toggleClass("dx-state-disabled",Boolean(O)),this.setAria("disabled",O||void 0)},_toggleIndependentState(){this.$element().toggleClass("dx-state-independent",this.option("ignoreParentReadOnly"))},_setWidgetOption(O,w){if(this[O]){if((0,u.PO)(w[0]))return void(0,a.S6)(w[0],(P,B)=>this._setWidgetOption(O,[P,B]));var T=w[0],k=w[1];1===w.length&&(k=this.option(T));var R=this["".concat(O,"OptionMap")];this[O].option(R?R(T):T,k)}},_optionChanged(O){var{name:w,value:T,previousValue:k}=O;switch(w){case"disabled":this._toggleDisabledState(T),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(T,k);break;case"isActive":this._updatedHover();break;case"visible":this._toggleVisibility(T),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(T?"shown":"hiding");break;case"onKeyboardHandled":this._attachKeyboardEvents();break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(O)}},_isVisible(){var{visible:O}=this.option();return this.callBase()&&O},beginUpdate(){this._ready(!1),this.callBase()},endUpdate(){this.callBase(),this._initialized&&this._ready(!0)},_ready(O){if(0===arguments.length)return this._isReady;this._isReady=O},setAria(){if((0,u.PO)(arguments.length<=0?void 0:arguments[0])){var O=(arguments.length<=1?void 0:arguments[1])||this._getAriaTarget();(0,a.S6)(arguments.length<=0?void 0:arguments[0],(w,T)=>y(w,T,O))}else y(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(){C.T_.trigger(this._focusTarget())},registerKeyHandler(O,w){var T=this._supportedKeys();this._supportedKeys=()=>(0,p.l)(T,{[O]:w})}});E.getOptionsFromContainer=O=>{var{name:w,fullName:T,value:k}=O,R={};return w===T?R=k:R[T.split(".").pop()]=k,R};const S=E},4594:(kn,he,l)=>{"use strict";l.d(he,{OM:()=>k,bI:()=>S,py:()=>g,sY:()=>x});var o=l(1805),c=l(9904),I="dx-inkripple",C="dx-inkripple-wave",f="dx-inkripple-showing",a="dx-inkripple-hiding",g=function(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{useHoldAnimation:P,waveSizeCoefficient:B,isCentered:W,wavesNumber:N}=R;return{waveSizeCoefficient:B||2,isCentered:W||!1,wavesNumber:N||1,durations:w(P??!0)}},x=function(R){var P=g(R);return{showWave:S.bind(this,P),hideWave:k.bind(this,P)}},y=function(R,P){for(var B=function(R){var P=R.children("."+I);return 0===P.length&&(P=(0,c.Z)("<div>").addClass(I).appendTo(R)),P}((0,c.Z)(R)),W=B.children("."+C).toArray(),N=W.length;N<P;N++){var V=(0,c.Z)("<div>").appendTo(B).addClass(C);W.push(V[0])}return(0,c.Z)(W)};function S(R,P){var B=y(P.element,R.wavesNumber).eq(P.wave||0);R.hidingTimeout&&clearTimeout(R.hidingTimeout),T(B),B.css(function(R,P){var K,Y,B=(0,c.Z)(P.element),W=(0,o.Y_)(B),N=(0,o.zp)(B),V=parseInt(Math.sqrt(W*W+N*N)),U=Math.min(4e3,parseInt(V*R.waveSizeCoefficient));if(R.isCentered)K=(W-U)/2,Y=(N-U)/2;else{var J=P.event,j=B.offset();K=J.pageX-j.left-U/2,Y=J.pageY-j.top-U/2}return{left:K,top:Y,height:U,width:U}}(R,P)),R.showingTimeout=setTimeout(O.bind(this,R,B),0)}function O(R,P){var B=R.durations.showingScale+"ms";P.addClass(f).css("transitionDuration",B)}function w(R){return{showingScale:R?1e3:300,hidingScale:300,hidingOpacity:300}}function T(R){R.removeClass(a).css("transitionDuration","")}function k(R,P){R.showingTimeout&&clearTimeout(R.showingTimeout);var B=y(P.element,P.wavesNumber).eq(P.wave||0),W=R.durations,N=W.hidingScale+"ms, "+W.hidingOpacity+"ms";B.addClass(a).removeClass(f).css("transitionDuration",N);var V=Math.max(W.hidingScale,W.hidingOpacity);R.hidingTimeout=setTimeout(T.bind(this,B),V)}},1524:(kn,he,l)=>{var o;!function(c,I,C,f){"use strict";var E,a=["","webkit","Moz","MS","ms","o"],p=I.createElement("div"),u=Math.round,d=Math.abs,h=Date.now;function g(dn,In,Zn){return setTimeout(T(dn,Zn),In)}function x(dn,In,Zn){return!!Array.isArray(dn)&&(b(dn,Zn[In],Zn),!0)}function b(dn,In,Zn){var gi;if(dn)if(dn.forEach)dn.forEach(In,Zn);else if(dn.length!==f)for(gi=0;gi<dn.length;)In.call(Zn,dn[gi],gi,dn),gi++;else for(gi in dn)dn.hasOwnProperty(gi)&&In.call(Zn,dn[gi],gi,dn)}function y(dn,In,Zn){var gi="DEPRECATED METHOD: "+In+"\n"+Zn+" AT \n";return function(){var Ri=new Error("get-stack-trace"),or=Ri&&Ri.stack?Ri.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",cr=c.console&&(c.console.warn||c.console.log);return cr&&cr.call(c.console,gi,or),dn.apply(this,arguments)}}E="function"!=typeof Object.assign?function(In){if(In===f||null===In)throw new TypeError("Cannot convert undefined or null to object");for(var Zn=Object(In),gi=1;gi<arguments.length;gi++){var Ri=arguments[gi];if(Ri!==f&&null!==Ri)for(var or in Ri)Ri.hasOwnProperty(or)&&(Zn[or]=Ri[or])}return Zn}:Object.assign;var S=y(function(In,Zn,gi){for(var Ri=Object.keys(Zn),or=0;or<Ri.length;)(!gi||gi&&In[Ri[or]]===f)&&(In[Ri[or]]=Zn[Ri[or]]),or++;return In},"extend","Use `assign`."),O=y(function(In,Zn){return S(In,Zn,!0)},"merge","Use `assign`.");function w(dn,In,Zn){var Ri,gi=In.prototype;(Ri=dn.prototype=Object.create(gi)).constructor=dn,Ri._super=gi,Zn&&E(Ri,Zn)}function T(dn,In){return function(){return dn.apply(In,arguments)}}function k(dn,In){return"function"==typeof dn?dn.apply(In&&In[0]||f,In):dn}function R(dn,In){return dn===f?In:dn}function P(dn,In,Zn){b(V(In),function(gi){dn.addEventListener(gi,Zn,!1)})}function B(dn,In,Zn){b(V(In),function(gi){dn.removeEventListener(gi,Zn,!1)})}function W(dn,In){for(;dn;){if(dn==In)return!0;dn=dn.parentNode}return!1}function N(dn,In){return dn.indexOf(In)>-1}function V(dn){return dn.trim().split(/\s+/g)}function U(dn,In,Zn){if(dn.indexOf&&!Zn)return dn.indexOf(In);for(var gi=0;gi<dn.length;){if(Zn&&dn[gi][Zn]==In||!Zn&&dn[gi]===In)return gi;gi++}return-1}function K(dn){return Array.prototype.slice.call(dn,0)}function Y(dn,In,Zn){for(var gi=[],Ri=[],or=0;or<dn.length;){var cr=In?dn[or][In]:dn[or];U(Ri,cr)<0&&gi.push(dn[or]),Ri[or]=cr,or++}return Zn&&(gi=In?gi.sort(function(vn,Ze){return vn[In]>Ze[In]}):gi.sort()),gi}function J(dn,In){for(var Zn,gi,Ri=In[0].toUpperCase()+In.slice(1),or=0;or<a.length;){if((gi=(Zn=a[or])?Zn+Ri:In)in dn)return gi;or++}return f}var j=1;function G(dn){var In=dn.ownerDocument||dn;return In.defaultView||In.parentWindow||c}var Z="ontouchstart"in c,X=J(c,"PointerEvent")!==f,M=Z&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),se="touch",De="mouse",ye=["x","y"],Pe=["clientX","clientY"];function Ne(dn,In){var Zn=this;this.manager=dn,this.callback=In,this.element=dn.element,this.target=dn.options.inputTarget,this.domHandler=function(gi){k(dn.options.enable,[dn])&&Zn.handler(gi)},this.init()}function tt(dn,In,Zn){var gi=Zn.pointers.length,Ri=Zn.changedPointers.length,or=1&In&&gi-Ri==0,cr=12&In&&gi-Ri==0;Zn.isFirst=!!or,Zn.isFinal=!!cr,or&&(dn.session={}),Zn.eventType=In,function Be(dn,In){var Zn=dn.session,gi=In.pointers,Ri=gi.length;Zn.firstInput||(Zn.firstInput=ke(In)),Ri>1&&!Zn.firstMultiple?Zn.firstMultiple=ke(In):1===Ri&&(Zn.firstMultiple=!1);var or=Zn.firstInput,cr=Zn.firstMultiple,en=cr?cr.center:or.center,vn=In.center=$e(gi);In.timeStamp=h(),In.deltaTime=In.timeStamp-or.timeStamp,In.angle=Ye(en,vn),In.distance=Te(en,vn),function mt(dn,In){var Zn=In.center,gi=dn.offsetDelta||{},Ri=dn.prevDelta||{},or=dn.prevInput||{};(1===In.eventType||4===or.eventType)&&(Ri=dn.prevDelta={x:or.deltaX||0,y:or.deltaY||0},gi=dn.offsetDelta={x:Zn.x,y:Zn.y}),In.deltaX=Ri.x+(Zn.x-gi.x),In.deltaY=Ri.y+(Zn.y-gi.y)}(Zn,In),In.offsetDirection=xe(In.deltaX,In.deltaY);var Ze=me(In.deltaTime,In.deltaX,In.deltaY);In.overallVelocityX=Ze.x,In.overallVelocityY=Ze.y,In.overallVelocity=d(Ze.x)>d(Ze.y)?Ze.x:Ze.y,In.scale=cr?function Ct(dn,In){return Te(In[0],In[1],Pe)/Te(dn[0],dn[1],Pe)}(cr.pointers,gi):1,In.rotation=cr?function St(dn,In){return Ye(In[1],In[0],Pe)+Ye(dn[1],dn[0],Pe)}(cr.pointers,gi):0,In.maxPointers=Zn.prevInput?In.pointers.length>Zn.prevInput.maxPointers?In.pointers.length:Zn.prevInput.maxPointers:In.pointers.length,function nn(dn,In){var Ri,or,cr,en,Zn=dn.lastInterval||In,gi=In.timeStamp-Zn.timeStamp;if(8!=In.eventType&&(gi>25||Zn.velocity===f)){var vn=In.deltaX-Zn.deltaX,Ze=In.deltaY-Zn.deltaY,bt=me(gi,vn,Ze);or=bt.x,cr=bt.y,Ri=d(bt.x)>d(bt.y)?bt.x:bt.y,en=xe(vn,Ze),dn.lastInterval=In}else Ri=Zn.velocity,or=Zn.velocityX,cr=Zn.velocityY,en=Zn.direction;In.velocity=Ri,In.velocityX=or,In.velocityY=cr,In.direction=en}(Zn,In);var bt=dn.element;W(In.srcEvent.target,bt)&&(bt=In.srcEvent.target),In.target=bt}(dn,Zn),dn.emit("hammer.input",Zn),dn.recognize(Zn),dn.session.prevInput=Zn}function ke(dn){for(var In=[],Zn=0;Zn<dn.pointers.length;)In[Zn]={clientX:u(dn.pointers[Zn].clientX),clientY:u(dn.pointers[Zn].clientY)},Zn++;return{timeStamp:h(),pointers:In,center:$e(In),deltaX:dn.deltaX,deltaY:dn.deltaY}}function $e(dn){var In=dn.length;if(1===In)return{x:u(dn[0].clientX),y:u(dn[0].clientY)};for(var Zn=0,gi=0,Ri=0;Ri<In;)Zn+=dn[Ri].clientX,gi+=dn[Ri].clientY,Ri++;return{x:u(Zn/In),y:u(gi/In)}}function me(dn,In,Zn){return{x:In/dn||0,y:Zn/dn||0}}function xe(dn,In){return dn===In?1:d(dn)>=d(In)?dn<0?2:4:In<0?8:16}function Te(dn,In,Zn){Zn||(Zn=ye);var gi=In[Zn[0]]-dn[Zn[0]],Ri=In[Zn[1]]-dn[Zn[1]];return Math.sqrt(gi*gi+Ri*Ri)}function Ye(dn,In,Zn){return Zn||(Zn=ye),180*Math.atan2(In[Zn[1]]-dn[Zn[1]],In[Zn[0]]-dn[Zn[0]])/Math.PI}Ne.prototype={handler:function(){},init:function(){this.evEl&&P(this.element,this.evEl,this.domHandler),this.evTarget&&P(this.target,this.evTarget,this.domHandler),this.evWin&&P(G(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&B(this.element,this.evEl,this.domHandler),this.evTarget&&B(this.target,this.evTarget,this.domHandler),this.evWin&&B(G(this.element),this.evWin,this.domHandler)}};var Rt={mousedown:1,mousemove:2,mouseup:4},fn="mousedown",ct="mousemove mouseup";function He(){this.evEl=fn,this.evWin=ct,this.pressed=!1,Ne.apply(this,arguments)}w(He,Ne,{handler:function(In){var Zn=Rt[In.type];1&Zn&&0===In.button&&(this.pressed=!0),2&Zn&&1!==In.which&&(Zn=4),this.pressed&&(4&Zn&&(this.pressed=!1),this.callback(this.manager,Zn,{pointers:[In],changedPointers:[In],pointerType:De,srcEvent:In}))}});var Dt={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},qe={2:se,3:"pen",4:De,5:"kinect"},Ht="pointerdown",dt="pointermove pointerup pointercancel";function ht(){this.evEl=Ht,this.evWin=dt,Ne.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}c.MSPointerEvent&&!c.PointerEvent&&(Ht="MSPointerDown",dt="MSPointerMove MSPointerUp MSPointerCancel"),w(ht,Ne,{handler:function(In){var Zn=this.store,gi=!1,Ri=In.type.toLowerCase().replace("ms",""),or=Dt[Ri],cr=qe[In.pointerType]||In.pointerType,en=cr==se,vn=U(Zn,In.pointerId,"pointerId");1&or&&(0===In.button||en)?vn<0&&(Zn.push(In),vn=Zn.length-1):12&or&&(gi=!0),!(vn<0)&&(Zn[vn]=In,this.callback(this.manager,or,{pointers:Zn,changedPointers:[In],pointerType:cr,srcEvent:In}),gi&&Zn.splice(vn,1))}});var yt={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Ft="touchstart",bn="touchstart touchmove touchend touchcancel";function _n(){this.evTarget=Ft,this.evWin=bn,this.started=!1,Ne.apply(this,arguments)}function xn(dn,In){var Zn=K(dn.touches),gi=K(dn.changedTouches);return 12&In&&(Zn=Y(Zn.concat(gi),"identifier",!0)),[Zn,gi]}w(_n,Ne,{handler:function(In){var Zn=yt[In.type];if(1===Zn&&(this.started=!0),this.started){var gi=xn.call(this,In,Zn);12&Zn&&gi[0].length-gi[1].length==0&&(this.started=!1),this.callback(this.manager,Zn,{pointers:gi[0],changedPointers:gi[1],pointerType:se,srcEvent:In})}}});var Jn={touchstart:1,touchmove:2,touchend:4,touchcancel:8},li="touchstart touchmove touchend touchcancel";function Ai(){this.evTarget=li,this.targetIds={},Ne.apply(this,arguments)}function Vn(dn,In){var Zn=K(dn.touches),gi=this.targetIds;if(3&In&&1===Zn.length)return gi[Zn[0].identifier]=!0,[Zn,Zn];var Ri,or,cr=K(dn.changedTouches),en=[],vn=this.target;if(or=Zn.filter(function(Ze){return W(Ze.target,vn)}),1===In)for(Ri=0;Ri<or.length;)gi[or[Ri].identifier]=!0,Ri++;for(Ri=0;Ri<cr.length;)gi[cr[Ri].identifier]&&en.push(cr[Ri]),12&In&&delete gi[cr[Ri].identifier],Ri++;return en.length?[Y(or.concat(en),"identifier",!0),en]:void 0}function Sn(){Ne.apply(this,arguments);var dn=T(this.handler,this);this.touch=new Ai(this.manager,dn),this.mouse=new He(this.manager,dn),this.primaryTouch=null,this.lastTouches=[]}function An(dn,In){1&dn?(this.primaryTouch=In.changedPointers[0].identifier,ti.call(this,In)):12&dn&&ti.call(this,In)}function ti(dn){var In=dn.changedPointers[0];if(In.identifier===this.primaryTouch){var Zn={x:In.clientX,y:In.clientY};this.lastTouches.push(Zn);var gi=this.lastTouches;setTimeout(function(){var or=gi.indexOf(Zn);or>-1&&gi.splice(or,1)},2500)}}function Wn(dn){for(var In=dn.srcEvent.clientX,Zn=dn.srcEvent.clientY,gi=0;gi<this.lastTouches.length;gi++){var Ri=this.lastTouches[gi],or=Math.abs(In-Ri.x),cr=Math.abs(Zn-Ri.y);if(or<=25&&cr<=25)return!0}return!1}w(Ai,Ne,{handler:function(In){var Zn=Jn[In.type],gi=Vn.call(this,In,Zn);gi&&this.callback(this.manager,Zn,{pointers:gi[0],changedPointers:gi[1],pointerType:se,srcEvent:In})}}),w(Sn,Ne,{handler:function(In,Zn,gi){var or=gi.pointerType==De;if(!(or&&gi.sourceCapabilities&&gi.sourceCapabilities.firesTouchEvents)){if(gi.pointerType==se)An.call(this,Zn,gi);else if(or&&Wn.call(this,gi))return;this.callback(In,Zn,gi)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Yi=J(p.style,"touchAction"),On=Yi!==f,ei="compute",di="manipulation",Hi="none",$i="pan-x",Qi="pan-y",_r=function ci(){if(!On)return!1;var dn={},In=c.CSS&&c.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(Zn){dn[Zn]=!In||c.CSS.supports("touch-action",Zn)}),dn}();function yn(dn,In){this.manager=dn,this.set(In)}function xr(dn){this.options=E({},this.defaults,dn||{}),this.id=function ee(){return j++}(),this.manager=null,this.options.enable=R(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Vr(dn){return 16&dn?"cancel":8&dn?"end":4&dn?"move":2&dn?"start":""}function Nr(dn){return 16==dn?"down":8==dn?"up":2==dn?"left":4==dn?"right":""}function Tr(dn,In){var Zn=In.manager;return Zn?Zn.get(dn):dn}function so(){xr.apply(this,arguments)}function Er(){so.apply(this,arguments),this.pX=null,this.pY=null}function oo(){so.apply(this,arguments)}function fi(){xr.apply(this,arguments),this._timer=null,this._input=null}function ir(){so.apply(this,arguments)}function Kr(){so.apply(this,arguments)}function to(){xr.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function uo(dn,In){return(In=In||{}).recognizers=R(In.recognizers,uo.defaults.preset),new tn(dn,In)}function tn(dn,In){this.options=E({},uo.defaults,In||{}),this.options.inputTarget=this.options.inputTarget||dn,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=dn,this.input=function ft(dn){return new(dn.options.inputClass||(X?ht:M?Ai:Z?Sn:He))(dn,tt)}(this),this.touchAction=new yn(this,this.options.touchAction),$n(this,!0),b(this.options.recognizers,function(Zn){var gi=this.add(new Zn[0](Zn[1]));Zn[2]&&gi.recognizeWith(Zn[2]),Zn[3]&&gi.requireFailure(Zn[3])},this)}function $n(dn,In){var gi,Zn=dn.element;Zn.style&&(b(dn.options.cssProps,function(Ri,or){gi=J(Zn.style,or),In?(dn.oldCssProps[gi]=Zn.style[gi],Zn.style[gi]=Ri):Zn.style[gi]=dn.oldCssProps[gi]||""}),In||(dn.oldCssProps={}))}yn.prototype={set:function(dn){dn==ei&&(dn=this.compute()),On&&this.manager.element.style&&_r[dn]&&(this.manager.element.style[Yi]=dn),this.actions=dn.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var dn=[];return b(this.manager.recognizers,function(In){k(In.options.enable,[In])&&(dn=dn.concat(In.getTouchAction()))}),function Rn(dn){if(N(dn,Hi))return Hi;var In=N(dn,$i),Zn=N(dn,Qi);return In&&Zn?Hi:In||Zn?In?$i:Qi:N(dn,di)?di:"auto"}(dn.join(" "))},preventDefaults:function(dn){var In=dn.srcEvent,Zn=dn.offsetDirection;if(!this.manager.session.prevented){var gi=this.actions,Ri=N(gi,Hi)&&!_r[Hi],or=N(gi,Qi)&&!_r[Qi],cr=N(gi,$i)&&!_r[$i];if(Ri&&1===dn.pointers.length&&dn.distance<2&&dn.deltaTime<250)return;return cr&&or||!(Ri||or&&6&Zn||cr&&24&Zn)?void 0:this.preventSrc(In)}In.preventDefault()},preventSrc:function(dn){this.manager.session.prevented=!0,dn.preventDefault()}},xr.prototype={defaults:{},set:function(dn){return E(this.options,dn),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(dn){if(x(dn,"recognizeWith",this))return this;var In=this.simultaneous;return In[(dn=Tr(dn,this)).id]||(In[dn.id]=dn,dn.recognizeWith(this)),this},dropRecognizeWith:function(dn){return x(dn,"dropRecognizeWith",this)||(dn=Tr(dn,this),delete this.simultaneous[dn.id]),this},requireFailure:function(dn){if(x(dn,"requireFailure",this))return this;var In=this.requireFail;return-1===U(In,dn=Tr(dn,this))&&(In.push(dn),dn.requireFailure(this)),this},dropRequireFailure:function(dn){if(x(dn,"dropRequireFailure",this))return this;dn=Tr(dn,this);var In=U(this.requireFail,dn);return In>-1&&this.requireFail.splice(In,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(dn){return!!this.simultaneous[dn.id]},emit:function(dn){var In=this,Zn=this.state;function gi(Ri){In.manager.emit(Ri,dn)}Zn<8&&gi(In.options.event+Vr(Zn)),gi(In.options.event),dn.additionalEvent&&gi(dn.additionalEvent),Zn>=8&&gi(In.options.event+Vr(Zn))},tryEmit:function(dn){if(this.canEmit())return this.emit(dn);this.state=32},canEmit:function(){for(var dn=0;dn<this.requireFail.length;){if(!(33&this.requireFail[dn].state))return!1;dn++}return!0},recognize:function(dn){var In=E({},dn);if(!k(this.options.enable,[this,In]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(In),30&this.state&&this.tryEmit(In)},process:function(dn){},getTouchAction:function(){},reset:function(){}},w(so,xr,{defaults:{pointers:1},attrTest:function(dn){var In=this.options.pointers;return 0===In||dn.pointers.length===In},process:function(dn){var In=this.state,Zn=dn.eventType,gi=6&In,Ri=this.attrTest(dn);return gi&&(8&Zn||!Ri)?16|In:gi||Ri?4&Zn?8|In:2&In?4|In:2:32}}),w(Er,so,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var dn=this.options.direction,In=[];return 6&dn&&In.push(Qi),24&dn&&In.push($i),In},directionTest:function(dn){var In=this.options,Zn=!0,gi=dn.distance,Ri=dn.direction,or=dn.deltaX,cr=dn.deltaY;return Ri&In.direction||(6&In.direction?(Ri=0===or?1:or<0?2:4,Zn=or!=this.pX,gi=Math.abs(dn.deltaX)):(Ri=0===cr?1:cr<0?8:16,Zn=cr!=this.pY,gi=Math.abs(dn.deltaY))),dn.direction=Ri,Zn&&gi>In.threshold&&Ri&In.direction},attrTest:function(dn){return so.prototype.attrTest.call(this,dn)&&(2&this.state||!(2&this.state)&&this.directionTest(dn))},emit:function(dn){this.pX=dn.deltaX,this.pY=dn.deltaY;var In=Nr(dn.direction);In&&(dn.additionalEvent=this.options.event+In),this._super.emit.call(this,dn)}}),w(oo,so,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Hi]},attrTest:function(dn){return this._super.attrTest.call(this,dn)&&(Math.abs(dn.scale-1)>this.options.threshold||2&this.state)},emit:function(dn){1!==dn.scale&&(dn.additionalEvent=this.options.event+(dn.scale<1?"in":"out")),this._super.emit.call(this,dn)}}),w(fi,xr,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(dn){var In=this.options,Zn=dn.pointers.length===In.pointers,gi=dn.distance<In.threshold,Ri=dn.deltaTime>In.time;if(this._input=dn,!gi||!Zn||12&dn.eventType&&!Ri)this.reset();else if(1&dn.eventType)this.reset(),this._timer=g(function(){this.state=8,this.tryEmit()},In.time,this);else if(4&dn.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(dn){8===this.state&&(dn&&4&dn.eventType?this.manager.emit(this.options.event+"up",dn):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}}),w(ir,so,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Hi]},attrTest:function(dn){return this._super.attrTest.call(this,dn)&&(Math.abs(dn.rotation)>this.options.threshold||2&this.state)}}),w(Kr,so,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Er.prototype.getTouchAction.call(this)},attrTest:function(dn){var Zn,In=this.options.direction;return 30&In?Zn=dn.overallVelocity:6&In?Zn=dn.overallVelocityX:24&In&&(Zn=dn.overallVelocityY),this._super.attrTest.call(this,dn)&&In&dn.offsetDirection&&dn.distance>this.options.threshold&&dn.maxPointers==this.options.pointers&&d(Zn)>this.options.velocity&&4&dn.eventType},emit:function(dn){var In=Nr(dn.offsetDirection);In&&this.manager.emit(this.options.event+In,dn),this.manager.emit(this.options.event,dn)}}),w(to,xr,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[di]},process:function(dn){var In=this.options,Zn=dn.pointers.length===In.pointers,gi=dn.distance<In.threshold,Ri=dn.deltaTime<In.time;if(this.reset(),1&dn.eventType&&0===this.count)return this.failTimeout();if(gi&&Ri&&Zn){if(4!=dn.eventType)return this.failTimeout();var or=!this.pTime||dn.timeStamp-this.pTime<In.interval,cr=!this.pCenter||Te(this.pCenter,dn.center)<In.posThreshold;if(this.pTime=dn.timeStamp,this.pCenter=dn.center,cr&&or?this.count+=1:this.count=1,this._input=dn,0==this.count%In.taps)return this.hasRequireFailures()?(this._timer=g(function(){this.state=8,this.tryEmit()},In.interval,this),2):8}return 32},failTimeout:function(){return this._timer=g(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))}}),uo.VERSION="2.0.7",uo.defaults={domEvents:!1,touchAction:ei,enable:!0,inputTarget:null,inputClass:null,preset:[[ir,{enable:!1}],[oo,{enable:!1},["rotate"]],[Kr,{direction:6}],[Er,{direction:6},["swipe"]],[to],[to,{event:"doubletap",taps:2},["tap"]],[fi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},tn.prototype={set:function(dn){return E(this.options,dn),dn.touchAction&&this.touchAction.update(),dn.inputTarget&&(this.input.destroy(),this.input.target=dn.inputTarget,this.input.init()),this},stop:function(dn){this.session.stopped=dn?2:1},recognize:function(dn){var In=this.session;if(!In.stopped){this.touchAction.preventDefaults(dn);var Zn,gi=this.recognizers,Ri=In.curRecognizer;(!Ri||Ri&&8&Ri.state)&&(Ri=In.curRecognizer=null);for(var or=0;or<gi.length;)Zn=gi[or],2===In.stopped||Ri&&Zn!=Ri&&!Zn.canRecognizeWith(Ri)?Zn.reset():Zn.recognize(dn),!Ri&&14&Zn.state&&(Ri=In.curRecognizer=Zn),or++}},get:function(dn){if(dn instanceof xr)return dn;for(var In=this.recognizers,Zn=0;Zn<In.length;Zn++)if(In[Zn].options.event==dn)return In[Zn];return null},add:function(dn){if(x(dn,"add",this))return this;var In=this.get(dn.options.event);return In&&this.remove(In),this.recognizers.push(dn),dn.manager=this,this.touchAction.update(),dn},remove:function(dn){if(x(dn,"remove",this))return this;if(dn=this.get(dn)){var In=this.recognizers,Zn=U(In,dn);-1!==Zn&&(In.splice(Zn,1),this.touchAction.update())}return this},on:function(dn,In){if(dn!==f&&In!==f){var Zn=this.handlers;return b(V(dn),function(gi){Zn[gi]=Zn[gi]||[],Zn[gi].push(In)}),this}},off:function(dn,In){if(dn!==f){var Zn=this.handlers;return b(V(dn),function(gi){In?Zn[gi]&&Zn[gi].splice(U(Zn[gi],In),1):delete Zn[gi]}),this}},emit:function(dn,In){this.options.domEvents&&function _i(dn,In){var Zn=I.createEvent("Event");Zn.initEvent(dn,!0,!0),Zn.gesture=In,In.target.dispatchEvent(Zn)}(dn,In);var Zn=this.handlers[dn]&&this.handlers[dn].slice();if(Zn&&Zn.length){In.type=dn,In.preventDefault=function(){In.srcEvent.preventDefault()};for(var gi=0;gi<Zn.length;)Zn[gi](In),gi++}},destroy:function(){this.element&&$n(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},E(uo,{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:tn,Input:Ne,TouchAction:yn,TouchInput:Ai,MouseInput:He,PointerEventInput:ht,TouchMouseInput:Sn,SingleTouchInput:_n,Recognizer:xr,AttrRecognizer:so,Tap:to,Pan:Er,Swipe:Kr,Pinch:oo,Rotate:ir,Press:fi,on:P,off:B,each:b,merge:O,extend:S,assign:E,inherit:w,bindFn:T,prefixed:J}),(typeof c<"u"?c:typeof self<"u"?self:{}).Hammer=uo,(o=function(){return uo}.call(he,l,he,kn))!==f&&(kn.exports=o)}(window,document)},4572:(kn,he,l)=>{"use strict";l.d(he,{a:()=>a});var o=l(9056);function c(p){return null==p}function I(p){return"string"==typeof p}function C(p){return void 0===p}var f={onComponentDidMount:1,onComponentDidUpdate:1,onComponentShouldUpdate:1,onComponentWillMount:1,onComponentWillUnmount:1,onComponentWillUpdate:1};function a(p,s,u){var h,E,d=arguments,g=null,x=null,b=null,y=0,S=arguments.length-2;if(1===S)h=u;else if(S>1)for(h=[];S-- >0;)h[S]=d[S+2];if(!I(p)){if(y=2,C(h)||(s||(s={}),s.children=h),!c(s))for(var w in E={},s)"key"===w?x=s.key:"ref"===w?g=s.ref:1===f[w]?(g||(g={}),g[w]=s[w]):E[w]=s[w];return(0,o.Iz)(y,p,E,x,g)}if(y=(0,o.Dm)(p),!c(s))for(var O in E={},s)"className"===O||"class"===O?b=s[O]:"key"===O?x=s.key:"children"===O&&C(h)?h=s.children:"ref"===O?g=s.ref:("contenteditable"===O&&(y|=4096),E[O]=s[O]);return 8192&y?(0,o.xJ)(1===S?[h]:h,0,x):(0,o.Wm)(y,p,b,h,0,E,x,g)}},9056:(kn,he,l)=>{"use strict";l.d(he,{wA:()=>Nn,kT:()=>x,NK:()=>Si,Cc:()=>pe,_M:()=>lr,_7:()=>so,_2:()=>Gr,vc:()=>oo,w7:()=>Rn,j4:()=>Wn,F1:()=>ji,Iz:()=>se,xJ:()=>De,Vf:()=>Sn,Wm:()=>q,lN:()=>P,Dm:()=>de,vs:()=>Fe,sY:()=>Wt,k4:()=>hn});var o=Array.isArray;function c(st){var Vt=typeof st;return"string"===Vt||"number"===Vt}function I(st){return null==st}function C(st){return null===st||!1===st||!0===st||void 0===st}function f(st){return"function"==typeof st}function a(st){return"string"==typeof st}function s(st){return null===st}function u(st){return void 0===st}function d(st,Vt){var rn={};if(st)for(var Dn in st)rn[Dn]=st[Dn];if(Vt)for(var rt in Vt)rn[rt]=Vt[rt];return rn}function g(st){return!s(st)&&"object"==typeof st}var x={};function y(st){return st.substr(2).toLowerCase()}function E(st,Vt){st.appendChild(Vt)}function S(st,Vt,rn){s(rn)?E(st,Vt):st.insertBefore(Vt,rn)}function T(st,Vt){st.removeChild(Vt)}function k(st){for(var Vt=0;Vt<st.length;Vt++)st[Vt]()}function R(st,Vt,rn){var Dn=st.children;return 4&rn?Dn.$LI:8192&rn?2===st.childFlags?Dn:Dn[Vt?0:Dn.length-1]:Dn}function P(st,Vt){for(var rn;st;){if(2033&(rn=st.flags))return st.dom;st=R(st,Vt,rn)}return null}function B(st,Vt){do{var rn=st.flags;if(2033&rn)return void T(Vt,st.dom);var Dn=st.children;if(4&rn&&(st=Dn.$LI),8&rn&&(st=Dn),8192&rn){if(2!==st.childFlags){for(var rt=0,Bt=Dn.length;rt<Bt;++rt)B(Dn[rt],Vt);return}st=Dn}}while(st)}function W(st,Vt,rn){do{var Dn=st.flags;if(2033&Dn)return void S(Vt,st.dom,rn);var rt=st.children;if(4&Dn&&(st=rt.$LI),8&Dn&&(st=rt),8192&Dn){if(2!==st.childFlags){for(var Bt=0,gt=rt.length;Bt<gt;++Bt)W(rt[Bt],Vt,rn);return}st=rt}}while(st)}function N(st,Vt,rn){return st.constructor.getDerivedStateFromProps?d(rn,st.constructor.getDerivedStateFromProps(Vt,rn)):rn}var V={v:!1},U={componentComparator:null,createVNode:null,renderComplete:null};function K(st,Vt){st.textContent=Vt}function Y(st,Vt){return g(st)&&st.event===Vt.event&&st.data===Vt.data}function J(st,Vt){for(var rn in Vt)u(st[rn])&&(st[rn]=Vt[rn]);return st}function j(st,Vt){return!!f(st)&&(st(Vt),!0)}function G(st,Vt,rn,Dn,rt,Bt,gt,$t){this.childFlags=st,this.children=Vt,this.className=rn,this.dom=null,this.flags=Dn,this.key=void 0===rt?null:rt,this.props=void 0===Bt?null:Bt,this.ref=void 0===gt?null:gt,this.type=$t}function q(st,Vt,rn,Dn,rt,Bt,gt,$t){var Un=void 0===rt?1:rt,ai=new G(Un,Dn,rn,st,gt,Bt,$t,Vt);return U.createVNode&&U.createVNode(ai),0===Un&&le(ai,ai.children),ai}function se(st,Vt,rn,Dn,rt){st=function M(st,Vt){return 12&st?st:Vt.prototype&&Vt.prototype.render?4:Vt.render?32776:8}(st,Vt);var Bt=new G(1,null,null,st,Dn,function X(st,Vt,rn){var Dn=(32768&st?Vt.render:Vt).defaultProps;return I(Dn)?rn:I(rn)?d(Dn,null):J(rn,Dn)}(st,Vt,rn),function Z(st,Vt,rn){if(4&st)return rn;var Dn=(32768&st?Vt.render:Vt).defaultHooks;return I(Dn)?rn:I(rn)?Dn:J(rn,Dn)}(st,Vt,rt),Vt);return U.createVNode&&U.createVNode(Bt),Bt}function ge(st,Vt){return new G(1,I(st)||!0===st||!1===st?"":st,null,16,Vt,null,null,null)}function De(st,Vt,rn){var Dn=q(8192,8192,null,st,Vt,null,rn,null);switch(Dn.childFlags){case 1:Dn.children=fe(),Dn.childFlags=2;break;case 16:Dn.children=[ge(st)],Dn.childFlags=4}return Dn}function Fe(st){var Vt=st.props;if(Vt){var rn=st.flags;481&rn&&(void 0!==Vt.children&&I(st.children)&&le(st,Vt.children),void 0!==Vt.className&&(I(st.className)&&(st.className=Vt.className||null),Vt.className=void 0)),void 0!==Vt.key&&(st.key=Vt.key,Vt.key=void 0),void 0!==Vt.ref&&(st.ref=8&rn?d(st.ref,Vt.ref):Vt.ref,Vt.ref=void 0)}return st}function ne(st){var Vt=-16385&st.flags,rn=st.props;if(14&Vt&&!s(rn)){var Dn=rn;for(var rt in rn={},Dn)rn[rt]=Dn[rt]}return 8192&Vt?function Ae(st){var Vt=st.children,rn=st.childFlags;return De(2===rn?ne(Vt):Vt.map(ne),rn,st.key)}(st):new G(st.childFlags,st.children,st.className,Vt,st.key,rn,st.ref,st.type)}function fe(){return ge("",null)}function ie(st,Vt,rn,Dn){for(var rt=st.length;rn<rt;rn++){var Bt=st[rn];if(!C(Bt)){var gt=Dn+"$"+rn;if(o(Bt))ie(Bt,Vt,0,gt);else{if(c(Bt))Bt=ge(Bt,gt);else{var $t=Bt.key,Un=a($t)&&"$"===$t[0];(81920&Bt.flags||Un)&&(Bt=ne(Bt)),Bt.flags|=65536,Un?$t.substring(0,Dn.length)!==Dn&&(Bt.key=Dn+$t):Bt.key=s($t)?gt:Dn+$t}Vt.push(Bt)}}}}function de(st){switch(st){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}}function le(st,Vt){var rn,Dn=1;if(C(Vt))rn=Vt;else if(c(Vt))Dn=16,rn=Vt;else if(o(Vt)){for(var rt=Vt.length,Bt=0;Bt<rt;++Bt){var gt=Vt[Bt];if(C(gt)||o(gt)){rn=rn||Vt.slice(0,Bt),ie(Vt,rn,Bt,"");break}if(c(gt))(rn=rn||Vt.slice(0,Bt)).push(ge(gt,"$"+Bt));else{var $t=gt.key,Un=(81920&gt.flags)>0,ai=s($t),Ci=a($t)&&"$"===$t[0];Un||ai||Ci?(rn=rn||Vt.slice(0,Bt),(Un||Ci)&&(gt=ne(gt)),(ai||Ci)&&(gt.key="$"+Bt),rn.push(gt)):rn&&rn.push(gt),gt.flags|=65536}}Dn=0===(rn=rn||Vt).length?1:8}else(rn=Vt).flags|=65536,81920&Vt.flags&&(rn=ne(Vt)),Dn=2;return st.children=rn,st.childFlags=Dn,st}function pe(st){return C(st)||c(st)?ge(st,null):o(st)?De(st,0,null):16384&st.flags?ne(st):st}var Ee="http://www.w3.org/1999/xlink",ae="http://www.w3.org/XML/1998/namespace",te={"xlink:actuate":Ee,"xlink:arcrole":Ee,"xlink:href":Ee,"xlink:role":Ee,"xlink:show":Ee,"xlink:title":Ee,"xlink:type":Ee,"xml:base":ae,"xml:lang":ae,"xml:space":ae};function re(st){return{onClick:st,onDblClick:st,onFocusIn:st,onFocusOut:st,onKeyDown:st,onKeyPress:st,onKeyUp:st,onMouseDown:st,onMouseMove:st,onMouseUp:st,onTouchEnd:st,onTouchMove:st,onTouchStart:st}}var oe=re(0),ye=re(null),Pe=re(!0);function Ne(st,Vt){var rn=Vt.$EV;return rn||(rn=Vt.$EV=re(null)),rn[st]||1==++oe[st]&&(ye[st]=function Ye(st){var Vt="onClick"===st||"onDblClick"===st?function xe(st){return function(Vt){0===Vt.button?mt(Vt,!0,st,me(Vt)):Vt.stopPropagation()}}(st):function Te(st){return function(Vt){mt(Vt,!1,st,me(Vt))}}(st);return document.addEventListener(y(st),Vt),Vt}(st)),rn}function ft(st,Vt){var rn=Vt.$EV;rn&&rn[st]&&(0==--oe[st]&&(document.removeEventListener(y(st),ye[st]),ye[st]=null),rn[st]=null)}function mt(st,Vt,rn,Dn){var rt=function Be(st){return f(st.composedPath)?st.composedPath()[0]:st.target}(st);do{if(Vt&&rt.disabled)return;var Bt=rt.$EV;if(Bt){var gt=Bt[rn];if(gt&&(Dn.dom=rt,gt.event?gt.event(gt.data,st):gt(st),st.cancelBubble))return}rt=rt.parentNode}while(!s(rt))}function nn(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ke(){return this.defaultPrevented}function $e(){return this.cancelBubble}function me(st){var Vt={dom:document};return st.isDefaultPrevented=ke,st.isPropagationStopped=$e,st.stopPropagation=nn,Object.defineProperty(st,"currentTarget",{configurable:!0,get:function(){return Vt.dom}}),Vt}function Ct(st,Vt,rn){if(st[Vt]){var Dn=st[Vt];Dn.event?Dn.event(Dn.data,rn):Dn(rn)}else{var rt=Vt.toLowerCase();st[rt]&&st[rt](rn)}}function Rt(st,Vt){var rn=function(Dn){var rt=this.$V;if(rt){var Bt=rt.props||x,gt=rt.dom;if(a(st))Ct(Bt,st,Dn);else for(var $t=0;$t<st.length;++$t)Ct(Bt,st[$t],Dn);if(f(Vt)){var Un=this.$V;Vt(Un.props||x,gt,!1,Un)}}};return Object.defineProperty(rn,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),rn}function fn(st,Vt,rn){var Dn="$"+Vt,rt=st[Dn];if(rt){if(rt[1].wrapped)return;st.removeEventListener(rt[0],rt[1]),st[Dn]=null}f(rn)&&(st.addEventListener(Vt,rn),st[Dn]=[Vt,rn])}function ct(st){return"checkbox"===st||"radio"===st}var He=Rt("onInput",dt),Dt=Rt(["onClick","onChange"],dt);function qe(st){st.stopPropagation()}function dt(st,Vt){var rn=st.type,Dn=st.value,rt=st.checked,Bt=st.multiple,gt=st.defaultValue,$t=!I(Dn);rn&&rn!==Vt.type&&Vt.setAttribute("type",rn),!I(Bt)&&Bt!==Vt.multiple&&(Vt.multiple=Bt),!I(gt)&&!$t&&(Vt.defaultValue=gt+""),ct(rn)?($t&&(Vt.value=Dn),I(rt)||(Vt.checked=rt)):$t&&Vt.value!==Dn?(Vt.defaultValue=Dn,Vt.value=Dn):I(rt)||(Vt.checked=rt)}function ht(st,Vt){if("option"===st.type)!function yt(st,Vt){var rn=st.props||x,Dn=st.dom;Dn.value=rn.value,rn.value===Vt||o(Vt)&&-1!==Vt.indexOf(rn.value)?Dn.selected=!0:(!I(Vt)||!I(rn.selected))&&(Dn.selected=rn.selected||!1)}(st,Vt);else{var rn=st.children,Dn=st.flags;if(4&Dn)ht(rn.$LI,Vt);else if(8&Dn)ht(rn,Vt);else if(2===st.childFlags)ht(rn,Vt);else if(12&st.childFlags)for(var rt=0,Bt=rn.length;rt<Bt;++rt)ht(rn[rt],Vt)}}qe.wrapped=!0;var Ft=Rt("onChange",_n);function _n(st,Vt,rn,Dn){var rt=Boolean(st.multiple);!I(st.multiple)&&rt!==Vt.multiple&&(Vt.multiple=rt);var Bt=st.selectedIndex;if(-1===Bt&&(Vt.selectedIndex=-1),1!==Dn.childFlags){var $t=st.value;(function p(st){return"number"==typeof st})(Bt)&&Bt>-1&&Vt.options[Bt]&&($t=Vt.options[Bt].value),rn&&I($t)&&($t=st.defaultValue),ht(Dn,$t)}}var xn=Rt("onInput",Ai),Jn=Rt("onChange");function Ai(st,Vt,rn){var Dn=st.value,rt=Vt.value;if(I(Dn)){if(rn){var Bt=st.defaultValue;!I(Bt)&&Bt!==rt&&(Vt.defaultValue=Bt,Vt.value=Bt)}}else rt!==Dn&&(Vt.defaultValue=Dn,Vt.value=Dn)}function Vn(st,Vt,rn,Dn,rt,Bt){64&st?dt(Dn,rn):256&st?_n(Dn,rn,rt,Vt):128&st&&Ai(Dn,rn,rt),Bt&&(rn.$V=Vt)}function Hn(st){return st.type&&ct(st.type)?!I(st.checked):!I(st.value)}function Sn(){return{current:null}}function ti(st){st&&!j(st,null)&&st.current&&(st.current=null)}function Wn(st,Vt,rn){st&&(f(st)||void 0!==st.current)&&rn.push(function(){!j(st,Vt)&&void 0!==st.current&&(st.current=Vt)})}function Yi(st,Vt){On(st),B(st,Vt)}function On(st){var Dn,Vt=st.flags,rn=st.children;if(481&Vt){var rt=st.props;ti(Dn=st.ref);var Bt=st.childFlags;if(!s(rt))for(var gt=Object.keys(rt),$t=0,Un=gt.length;$t<Un;$t++){var ai=gt[$t];Pe[ai]&&ft(ai,st.dom)}12&Bt?ei(rn):2===Bt&&On(rn)}else rn&&(4&Vt?(f(rn.componentWillUnmount)&&rn.componentWillUnmount(),ti(st.ref),rn.$UN=!0,On(rn.$LI)):8&Vt?(!I(Dn=st.ref)&&f(Dn.onComponentWillUnmount)&&Dn.onComponentWillUnmount(P(st,!0),st.props||x),On(rn)):1024&Vt?Yi(rn,st.ref):8192&Vt&&12&st.childFlags&&ei(rn))}function ei(st){for(var Vt=0,rn=st.length;Vt<rn;++Vt)On(st[Vt])}function ni(st){st.textContent=""}function di(st,Vt,rn){ei(rn),8192&Vt.flags?B(Vt,st):ni(st)}function yn(st,Vt,rn,Dn,rt,Bt,gt){switch(st){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":Dn.autofocus=!!rn;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":Dn[st]=!!rn;break;case"defaultChecked":case"value":case"volume":if(Bt&&"value"===st)break;var $t=I(rn)?"":rn;Dn[st]!==$t&&(Dn[st]=$t);break;case"style":!function Qi(st,Vt,rn){if(I(Vt))rn.removeAttribute("style");else{var rt,Bt,Dn=rn.style;if(a(Vt))Dn.cssText=Vt;else if(I(st)||a(st))for(rt in Vt)Dn.setProperty(rt,Bt=Vt[rt]);else{for(rt in Vt)(Bt=Vt[rt])!==st[rt]&&Dn.setProperty(rt,Bt);for(rt in st)I(Vt[rt])&&Dn.removeProperty(rt)}}}(Vt,rn,Dn);break;case"dangerouslySetInnerHTML":!function _r(st,Vt,rn,Dn){var Bt=Vt&&Vt.__html||"";(st&&st.__html||"")!==Bt&&!I(Bt)&&!function St(st,Vt){var rn=document.createElement("i");return rn.innerHTML=Vt,rn.innerHTML===st.innerHTML}(Dn,Bt)&&(s(rn)||(12&rn.childFlags?ei(rn.children):2===rn.childFlags&&On(rn.children),rn.children=null,rn.childFlags=1),Dn.innerHTML=Bt)}(Vt,rn,gt,Dn);break;default:Pe[st]?function tt(st,Vt,rn,Dn){if(f(rn))Ne(st,Dn)[st]=rn;else if(g(rn)){if(Y(Vt,rn))return;Ne(st,Dn)[st]=rn}else ft(st,Dn)}(st,Vt,rn,Dn):111===st.charCodeAt(0)&&110===st.charCodeAt(1)?function $i(st,Vt,rn,Dn){if(g(rn)){if(Y(Vt,rn))return;rn=function Hi(st){var Vt=st.event;return function(rn){Vt(st.data,rn)}}(rn)}fn(Dn,y(st),rn)}(st,Vt,rn,Dn):I(rn)?Dn.removeAttribute(st):rt&&te[st]?Dn.setAttributeNS(te[st],st,rn):Dn.setAttribute(st,rn)}}function Rn(st,Vt,rn,Dn,rt){var Bt=!1,gt=(448&Vt)>0;for(var $t in gt&&(Bt=Hn(rn))&&function Oi(st,Vt,rn){64&st?function Ht(st,Vt){ct(Vt.type)?(fn(st,"change",Dt),fn(st,"click",qe)):fn(st,"input",He)}(Vt,rn):256&st?function bn(st){fn(st,"change",Ft)}(Vt):128&st&&function li(st,Vt){fn(st,"input",xn),Vt.onChange&&fn(st,"change",Jn)}(Vt,rn)}(Vt,Dn,rn),rn)yn($t,null,rn[$t],Dn,rt,Bt,null);gt&&Vn(Vt,st,Dn,rn,!0,Bt)}function ci(st,Vt,rn){var Dn=pe(st.render(Vt,st.state,rn)),rt=rn;return f(st.getChildContext)&&(rt=d(rn,st.getChildContext())),st.$CX=rt,Dn}function Si(st,Vt,rn,Dn,rt,Bt){var gt=new Vt(rn,Dn),$t=gt.$N=Boolean(Vt.getDerivedStateFromProps||gt.getSnapshotBeforeUpdate);if(gt.$SVG=rt,gt.$L=Bt,st.children=gt,gt.$BS=!1,gt.context=Dn,gt.props===x&&(gt.props=rn),$t)gt.state=N(gt,rn,gt.state);else if(f(gt.componentWillMount)){gt.$BR=!0,gt.componentWillMount();var Un=gt.$PS;if(!s(Un)){var ai=gt.state;if(s(ai))gt.state=Un;else for(var Ci in Un)ai[Ci]=Un[Ci];gt.$PS=null}gt.$BR=!1}return gt.$LI=ci(gt,rn,Dn),gt}function ji(st,Vt){var rn=st.props||x;return 32768&st.flags?st.type.render(rn,st.ref,Vt):st.type(rn,Vt)}function lr(st,Vt,rn,Dn,rt,Bt){var gt=st.flags|=16384;481&gt?Gr(st,Vt,rn,Dn,rt,Bt):4&gt?function Vr(st,Vt,rn,Dn,rt,Bt){var gt=Si(st,st.type,st.props||x,rn,Dn,Bt);lr(gt.$LI,Vt,gt.$CX,Dn,rt,Bt),so(st.ref,gt,Bt)}(st,Vt,rn,Dn,rt,Bt):8&gt?(function Nr(st,Vt,rn,Dn,rt,Bt){lr(st.children=pe(ji(st,rn)),Vt,rn,Dn,rt,Bt)}(st,Vt,rn,Dn,rt,Bt),oo(st,Bt)):512&gt||16&gt?zr(st,Vt,rt):8192&gt?function kr(st,Vt,rn,Dn,rt,Bt){var gt=st.children,$t=st.childFlags;12&$t&&0===gt.length&&($t=st.childFlags=2,gt=st.children=fe()),2===$t?lr(gt,rn,Vt,Dn,rt,Bt):xr(gt,rn,Vt,Dn,rt,Bt)}(st,rn,Vt,Dn,rt,Bt):1024&gt&&function Dr(st,Vt,rn,Dn,rt){lr(st.children,st.ref,Vt,!1,null,rt);var Bt=fe();zr(Bt,rn,Dn),st.dom=Bt.dom}(st,rn,Vt,rt,Bt)}function zr(st,Vt,rn){var Dn=st.dom=document.createTextNode(st.children);s(Vt)||S(Vt,Dn,rn)}function Gr(st,Vt,rn,Dn,rt,Bt){var gt=st.flags,$t=st.props,Un=st.className,ai=st.childFlags,Ci=st.dom=function O(st,Vt){return Vt?document.createElementNS("http://www.w3.org/2000/svg",st):document.createElement(st)}(st.type,Dn=Dn||(32&gt)>0),Ii=st.children;if(!I(Un)&&""!==Un&&(Dn?Ci.setAttribute("class",Un):Ci.className=Un),16===ai)K(Ci,Ii);else if(1!==ai){var zi=Dn&&"foreignObject"!==st.type;2===ai?(16384&Ii.flags&&(st.children=Ii=ne(Ii)),lr(Ii,Ci,rn,zi,null,Bt)):(8===ai||4===ai)&&xr(Ii,Ci,rn,zi,null,Bt)}s(Vt)||S(Vt,Ci,rt),s($t)||Rn(st,gt,$t,Ci,Dn),Wn(st.ref,Ci,Bt)}function xr(st,Vt,rn,Dn,rt,Bt){for(var gt=0;gt<st.length;++gt){var $t=st[gt];16384&$t.flags&&(st[gt]=$t=ne($t)),lr($t,Vt,rn,Dn,rt,Bt)}}function so(st,Vt,rn){Wn(st,Vt,rn),f(Vt.componentDidMount)&&rn.push(function Tr(st){return function(){st.componentDidMount()}}(Vt))}function oo(st,Vt){var rn=st.ref;I(rn)||(j(rn.onComponentWillMount,st.props||x),f(rn.onComponentDidMount)&&Vt.push(function Er(st,Vt){return function(){st.onComponentDidMount(P(Vt,!0),Vt.props||x)}}(rn,st)))}function ir(st,Vt,rn,Dn,rt,Bt,gt){var $t=Vt.flags|=16384;st.flags!==$t||st.type!==Vt.type||st.key!==Vt.key||2048&$t?16384&st.flags?function fi(st,Vt,rn,Dn,rt,Bt){On(st),Vt.flags&st.flags&2033?(lr(Vt,null,Dn,rt,null,Bt),function w(st,Vt,rn){st.replaceChild(Vt,rn)}(rn,Vt.dom,st.dom)):(lr(Vt,rn,Dn,rt,P(st,!0),Bt),B(st,rn))}(st,Vt,rn,Dn,rt,gt):lr(Vt,rn,Dn,rt,Bt,gt):481&$t?function At(st,Vt,rn,Dn,rt,Bt){var Ii,gt=Vt.dom=st.dom,$t=st.props,Un=Vt.props,ai=!1,Ci=!1;if(Dn=Dn||(32&rt)>0,$t!==Un){var zi=$t||x;if((Ii=Un||x)!==x)for(var Ki in(ai=(448&rt)>0)&&(Ci=Hn(Ii)),Ii){var Xi=zi[Ki],wr=Ii[Ki];Xi!==wr&&yn(Ki,Xi,wr,gt,Dn,Ci,st)}if(zi!==x)for(var vr in zi)I(Ii[vr])&&!I(zi[vr])&&yn(vr,zi[vr],null,gt,Dn,Ci,st)}var Jr=Vt.children,Xr=Vt.className;st.className!==Xr&&(I(Xr)?gt.removeAttribute("class"):Dn?gt.setAttribute("class",Xr):gt.className=Xr),4096&rt?function to(st,Vt){st.textContent!==Vt&&(st.textContent=Vt)}(gt,Jr):$n(st.childFlags,Vt.childFlags,st.children,Jr,gt,rn,Dn&&"foreignObject"!==Vt.type,null,st,Bt),ai&&Vn(rt,Vt,gt,Ii,!1,Ci);var ko=Vt.ref,no=st.ref;no!==ko&&(ti(no),Wn(ko,gt,Bt))}(st,Vt,Dn,rt,$t,gt):4&$t?function dn(st,Vt,rn,Dn,rt,Bt,gt){var $t=Vt.children=st.children;if(!s($t)){$t.$L=gt;var Un=Vt.props||x,ai=Vt.ref,Ci=st.ref,Ii=$t.state;if(!$t.$N){if(f($t.componentWillReceiveProps)){if($t.$BR=!0,$t.componentWillReceiveProps(Un,Dn),$t.$UN)return;$t.$BR=!1}s($t.$PS)||(Ii=d(Ii,$t.$PS),$t.$PS=null)}mi($t,Ii,Un,rn,Dn,rt,!1,Bt,gt),Ci!==ai&&(ti(Ci),Wn(ai,$t,gt))}}(st,Vt,rn,Dn,rt,Bt,gt):8&$t?function In(st,Vt,rn,Dn,rt,Bt,gt){var $t=!0,Un=Vt.props||x,ai=Vt.ref,Ci=st.props,Ii=!I(ai),zi=st.children;if(Ii&&f(ai.onComponentShouldUpdate)&&($t=ai.onComponentShouldUpdate(Ci,Un)),!1!==$t){Ii&&f(ai.onComponentWillUpdate)&&ai.onComponentWillUpdate(Ci,Un);var Ki=pe(ji(Vt,Dn));ir(zi,Ki,rn,Dn,rt,Bt,gt),Vt.children=Ki,Ii&&f(ai.onComponentDidUpdate)&&ai.onComponentDidUpdate(Ci,Un)}else Vt.children=zi}(st,Vt,rn,Dn,rt,Bt,gt):16&$t?function Zn(st,Vt){var rn=Vt.children,Dn=Vt.dom=st.dom;rn!==st.children&&(Dn.nodeValue=rn)}(st,Vt):512&$t?Vt.dom=st.dom:8192&$t?function uo(st,Vt,rn,Dn,rt,Bt){var gt=st.children,$t=Vt.children,Un=st.childFlags,ai=Vt.childFlags,Ci=null;12&ai&&0===$t.length&&(ai=Vt.childFlags=2,$t=Vt.children=fe());var Ii=0!=(2&ai);if(12&Un){var zi=gt.length;(8&Un&&8&ai||Ii||!Ii&&$t.length>zi)&&(Ci=P(gt[zi-1],!1).nextSibling)}$n(Un,ai,gt,$t,rn,Dn,rt,Ci,st,Bt)}(st,Vt,rn,Dn,rt,gt):function po(st,Vt,rn,Dn){var rt=st.ref,Bt=Vt.ref,gt=Vt.children;if($n(st.childFlags,Vt.childFlags,st.children,gt,rt,rn,!1,null,st,Dn),Vt.dom=st.dom,rt!==Bt&&!C(gt)){var $t=gt.dom;T(rt,$t),E(Bt,$t)}}(st,Vt,Dn,gt)}function $n(st,Vt,rn,Dn,rt,Bt,gt,$t,Un,ai){switch(st){case 2:switch(Vt){case 2:ir(rn,Dn,rt,Bt,gt,$t,ai);break;case 1:Yi(rn,rt);break;case 16:On(rn),K(rt,Dn);break;default:!function tn(st,Vt,rn,Dn,rt,Bt){On(st),xr(Vt,rn,Dn,rt,P(st,!0),Bt),B(st,rn)}(rn,Dn,rt,Bt,gt,ai)}break;case 1:switch(Vt){case 2:lr(Dn,rt,Bt,gt,$t,ai);break;case 1:break;case 16:K(rt,Dn);break;default:xr(Dn,rt,Bt,gt,$t,ai)}break;case 16:switch(Vt){case 16:!function Kr(st,Vt,rn){st!==Vt&&(""!==st?rn.firstChild.nodeValue=Vt:K(rn,Vt))}(rn,Dn,rt);break;case 2:ni(rt),lr(Dn,rt,Bt,gt,$t,ai);break;case 1:ni(rt);break;default:ni(rt),xr(Dn,rt,Bt,gt,$t,ai)}break;default:switch(Vt){case 16:ei(rn),K(rt,Dn);break;case 2:di(rt,Un,rn),lr(Dn,rt,Bt,gt,$t,ai);break;case 1:di(rt,Un,rn);break;default:var Ci=0|rn.length,Ii=0|Dn.length;0===Ci?Ii>0&&xr(Dn,rt,Bt,gt,$t,ai):0===Ii?di(rt,Un,rn):8===Vt&&8===st?function Ri(st,Vt,rn,Dn,rt,Bt,gt,$t,Un,ai){var wr,vr,Ci=Bt-1,Ii=gt-1,zi=0,Ki=st[zi],Xi=Vt[zi];e:{for(;Ki.key===Xi.key;){if(16384&Xi.flags&&(Vt[zi]=Xi=ne(Xi)),ir(Ki,Xi,rn,Dn,rt,$t,ai),st[zi]=Xi,++zi>Ci||zi>Ii)break e;Ki=st[zi],Xi=Vt[zi]}for(Ki=st[Ci],Xi=Vt[Ii];Ki.key===Xi.key;){if(16384&Xi.flags&&(Vt[Ii]=Xi=ne(Xi)),ir(Ki,Xi,rn,Dn,rt,$t,ai),st[Ci]=Xi,Ii--,zi>--Ci||zi>Ii)break e;Ki=st[Ci],Xi=Vt[Ii]}}if(zi>Ci){if(zi<=Ii)for(vr=(wr=Ii+1)<gt?P(Vt[wr],!0):$t;zi<=Ii;)16384&(Xi=Vt[zi]).flags&&(Vt[zi]=Xi=ne(Xi)),++zi,lr(Xi,rn,Dn,rt,vr,ai)}else if(zi>Ii)for(;zi<=Ci;)Yi(st[zi++],rn);else!function or(st,Vt,rn,Dn,rt,Bt,gt,$t,Un,ai,Ci,Ii,zi){var Ki,Xi,wr,vr=0,Jr=$t,Xr=$t,ko=Bt-$t+1,no=gt-$t+1,Uo=new Int32Array(no+1),ua=ko===Dn,qo=!1,go=0,Vo=0;if(rt<4||(ko|no)<32)for(vr=Jr;vr<=Bt;++vr)if(Ki=st[vr],Vo<no){for($t=Xr;$t<=gt;$t++)if(Ki.key===(Xi=Vt[$t]).key){if(Uo[$t-Xr]=vr+1,ua)for(ua=!1;Jr<vr;)Yi(st[Jr++],Un);go>$t?qo=!0:go=$t,16384&Xi.flags&&(Vt[$t]=Xi=ne(Xi)),ir(Ki,Xi,Un,rn,ai,Ci,zi),++Vo;break}!ua&&$t>gt&&Yi(Ki,Un)}else ua||Yi(Ki,Un);else{var So={};for(vr=Xr;vr<=gt;++vr)So[Vt[vr].key]=vr;for(vr=Jr;vr<=Bt;++vr)if(Ki=st[vr],Vo<no)if(void 0!==($t=So[Ki.key])){if(ua)for(ua=!1;vr>Jr;)Yi(st[Jr++],Un);Uo[$t-Xr]=vr+1,go>$t?qo=!0:go=$t,16384&(Xi=Vt[$t]).flags&&(Vt[$t]=Xi=ne(Xi)),ir(Ki,Xi,Un,rn,ai,Ci,zi),++Vo}else ua||Yi(Ki,Un);else ua||Yi(Ki,Un)}if(ua)di(Un,Ii,st),xr(Vt,Un,rn,ai,Ci,zi);else if(qo){var ba=function Ze(st){var Vt=0,rn=0,Dn=0,rt=0,Bt=0,gt=0,$t=0,Un=st.length;for(Un>vn&&(vn=Un,cr=new Int32Array(Un),en=new Int32Array(Un));rn<Un;++rn)if(0!==(Vt=st[rn])){if(st[Dn=cr[rt]]<Vt){en[rn]=Dn,cr[++rt]=rn;continue}for(Bt=0,gt=rt;Bt<gt;)st[cr[$t=Bt+gt>>1]]<Vt?Bt=$t+1:gt=$t;Vt<st[cr[Bt]]&&(Bt>0&&(en[rn]=cr[Bt-1]),cr[Bt]=rn)}Bt=rt+1;var ai=new Int32Array(Bt);for(gt=cr[Bt-1];Bt-- >0;)ai[Bt]=gt,gt=en[gt],cr[Bt]=0;return ai}(Uo);for($t=ba.length-1,vr=no-1;vr>=0;vr--)0===Uo[vr]?(16384&(Xi=Vt[go=vr+Xr]).flags&&(Vt[go]=Xi=ne(Xi)),lr(Xi,Un,rn,ai,(wr=go+1)<rt?P(Vt[wr],!0):Ci,zi)):$t<0||vr!==ba[$t]?W(Xi=Vt[go=vr+Xr],Un,(wr=go+1)<rt?P(Vt[wr],!0):Ci):$t--}else if(Vo!==no)for(vr=no-1;vr>=0;vr--)0===Uo[vr]&&(16384&(Xi=Vt[go=vr+Xr]).flags&&(Vt[go]=Xi=ne(Xi)),lr(Xi,Un,rn,ai,(wr=go+1)<rt?P(Vt[wr],!0):Ci,zi))}(st,Vt,Dn,Bt,gt,Ci,Ii,zi,rn,rt,$t,Un,ai)}(rn,Dn,rt,Bt,gt,Ci,Ii,$t,Un,ai):function gi(st,Vt,rn,Dn,rt,Bt,gt,$t,Un){for(var Ii,zi,ai=Bt>gt?gt:Bt,Ci=0;Ci<ai;++Ci)zi=st[Ci],16384&(Ii=Vt[Ci]).flags&&(Ii=Vt[Ci]=ne(Ii)),ir(zi,Ii,rn,Dn,rt,$t,Un),st[Ci]=Ii;if(Bt<gt)for(Ci=ai;Ci<gt;++Ci)16384&(Ii=Vt[Ci]).flags&&(Ii=Vt[Ci]=ne(Ii)),lr(Ii,rn,Dn,rt,$t,Un);else if(Bt>gt)for(Ci=ai;Ci<Bt;++Ci)Yi(st[Ci],rn)}(rn,Dn,rt,Bt,gt,Ci,Ii,$t,ai)}}}function mi(st,Vt,rn,Dn,rt,Bt,gt,$t,Un){var ai=st.state,Ci=st.props,Ii=Boolean(st.$N),zi=f(st.shouldComponentUpdate);if(Ii&&(Vt=N(st,rn,Vt!==ai?d(ai,Vt):Vt)),gt||!zi||zi&&st.shouldComponentUpdate(rn,Vt,rt)){!Ii&&f(st.componentWillUpdate)&&st.componentWillUpdate(rn,Vt,rt),st.props=rn,st.state=Vt,st.context=rt;var Ki=null,Xi=ci(st,rn,rt);Ii&&f(st.getSnapshotBeforeUpdate)&&(Ki=st.getSnapshotBeforeUpdate(Ci,ai)),ir(st.$LI,Xi,Dn,st.$CX,Bt,$t,Un),st.$LI=Xi,f(st.componentDidUpdate)&&function _i(st,Vt,rn,Dn,rt){rt.push(function(){st.componentDidUpdate(Vt,rn,Dn)})}(st,Ci,ai,Ki,Un)}else st.props=rn,st.state=Vt,st.context=rt}var cr,en,vn=0;function Wt(st,Vt,rn,Dn){void 0===rn&&(rn=null),void 0===Dn&&(Dn=x),function _t(st,Vt,rn,Dn){var rt=[],Bt=Vt.$V;V.v=!0,I(Bt)?I(st)||(16384&st.flags&&(st=ne(st)),lr(st,Vt,Dn,!1,null,rt),Vt.$V=st,Bt=st):I(st)?(Yi(Bt,Vt),Vt.$V=null):(16384&st.flags&&(st=ne(st)),ir(Bt,st,Vt,Dn,!1,null,rt),Bt=Vt.$V=st),k(rt),V.v=!1,f(rn)&&rn(),f(U.renderComplete)&&U.renderComplete(Bt,Vt)}(st,Vt,rn,Dn)}typeof document<"u"&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var qt=[],mn=typeof Promise<"u"?Promise.resolve().then.bind(Promise.resolve()):function(st){window.setTimeout(st,0)},Ke=!1;function pt(st,Vt,rn,Dn){var rt=st.$PS;if(f(Vt)&&(Vt=Vt(rt?d(st.state,rt):st.state,st.props,st.context)),I(rt))st.$PS=Vt;else for(var Bt in Vt)rt[Bt]=Vt[Bt];if(st.$BR)f(rn)&&st.$L.push(rn.bind(st));else{if(!V.v&&0===qt.length)return sn(st,Dn),void(f(rn)&&rn.call(st));if(-1===qt.indexOf(st)&&qt.push(st),Dn&&(st.$F=!0),Ke||(Ke=!0,mn(hn)),f(rn)){var gt=st.$QU;gt||(gt=st.$QU=[]),gt.push(rn)}}}function an(st){for(var Vt=st.$QU,rn=0;rn<Vt.length;++rn)Vt[rn].call(st);st.$QU=null}function hn(){var st;for(Ke=!1;st=qt.shift();)if(!st.$UN){var Vt=st.$F;st.$F=!1,sn(st,Vt),st.$QU&&an(st)}}function sn(st,Vt){if(Vt||!st.$BR){var rn=st.$PS;st.$PS=null;var Dn=[];V.v=!0,mi(st,d(st.state,rn),st.props,P(st.$LI,!0).parentNode,st.context,st.$SVG,Vt,null,Dn),k(Dn),V.v=!1}else st.state=st.$PS,st.$PS=null}var Nn=function(Vt,rn){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=Vt||x,this.context=rn||x};Nn.prototype.forceUpdate=function(Vt){this.$UN||pt(this,{},Vt,!0)},Nn.prototype.setState=function(Vt,rn){this.$UN||this.$BS||pt(this,Vt,rn,!1)},Nn.prototype.render=function(Vt,rn,Dn){return null}},7586:kn=>{kn.exports=function he(l,o,c){function I(a,p){if(!o[a]){if(!l[a]){if(C)return C(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var d=o[a]={exports:{}};l[a][0].call(d.exports,function(h){return I(l[a][1][h]||h)},d,d.exports,he,l,o,c)}return o[a].exports}for(var C=void 0,f=0;f<c.length;f++)I(c[f]);return I}({1:[function(he,l,o){"use strict";var c=he("./utils"),I=he("./support"),C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(f){for(var a,p,s,d,h,g,x=[],b=0,y=f.length,E=y,S="string"!==c.getTypeOf(f);b<f.length;)E=y-b,s=S?(a=f[b++],p=b<y?f[b++]:0,b<y?f[b++]:0):(a=f.charCodeAt(b++),p=b<y?f.charCodeAt(b++):0,b<y?f.charCodeAt(b++):0),d=(3&a)<<4|p>>4,h=1<E?(15&p)<<2|s>>6:64,g=2<E?63&s:64,x.push(C.charAt(a>>2)+C.charAt(d)+C.charAt(h)+C.charAt(g));return x.join("")},o.decode=function(f){var a,p,s,u,d,h,g=0,x=0,b="data:";if(f.substr(0,b.length)===b)throw new Error("Invalid base64 input, it looks like a data url.");var y,E=3*(f=f.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(f.charAt(f.length-1)===C.charAt(64)&&E--,f.charAt(f.length-2)===C.charAt(64)&&E--,E%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=I.uint8array?new Uint8Array(0|E):new Array(0|E);g<f.length;)a=C.indexOf(f.charAt(g++))<<2|(u=C.indexOf(f.charAt(g++)))>>4,p=(15&u)<<4|(d=C.indexOf(f.charAt(g++)))>>2,s=(3&d)<<6|(h=C.indexOf(f.charAt(g++))),y[x++]=a,64!==d&&(y[x++]=p),64!==h&&(y[x++]=s);return y}},{"./support":30,"./utils":32}],2:[function(he,l,o){"use strict";var c=he("./external"),I=he("./stream/DataWorker"),C=he("./stream/Crc32Probe"),f=he("./stream/DataLengthProbe");function a(p,s,u,d,h){this.compressedSize=p,this.uncompressedSize=s,this.crc32=u,this.compression=d,this.compressedContent=h}a.prototype={getContentWorker:function(){var p=new I(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new f("data_length")),s=this;return p.on("end",function(){if(this.streamInfo.data_length!==s.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),p},getCompressedWorker:function(){return new I(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(p,s,u){return p.pipe(new C).pipe(new f("uncompressedSize")).pipe(s.compressWorker(u)).pipe(new f("compressedSize")).withStreamInfo("compression",s)},l.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(he,l,o){"use strict";var c=he("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},o.DEFLATE=he("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(he,l,o){"use strict";var c=he("./utils"),I=function(){for(var C,f=[],a=0;a<256;a++){C=a;for(var p=0;p<8;p++)C=1&C?3988292384^C>>>1:C>>>1;f[a]=C}return f}();l.exports=function(C,f){return void 0!==C&&C.length?"string"!==c.getTypeOf(C)?function(a,p,s,u){var d=I,h=0+s;a^=-1;for(var g=0;g<h;g++)a=a>>>8^d[255&(a^p[g])];return-1^a}(0|f,C,C.length):function(a,p,s,u){var d=I,h=0+s;a^=-1;for(var g=0;g<h;g++)a=a>>>8^d[255&(a^p.charCodeAt(g))];return-1^a}(0|f,C,C.length):0}},{"./utils":32}],5:[function(he,l,o){"use strict";o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(he,l,o){"use strict";var c;c=typeof Promise<"u"?Promise:he("lie"),l.exports={Promise:c}},{lie:37}],7:[function(he,l,o){"use strict";var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",I=he("pako"),C=he("./utils"),f=he("./stream/GenericWorker"),a=c?"uint8array":"array";function p(s,u){f.call(this,"FlateWorker/"+s),this._pako=null,this._pakoAction=s,this._pakoOptions=u,this.meta={}}o.magic="\b\0",C.inherits(p,f),p.prototype.processChunk=function(s){this.meta=s.meta,null===this._pako&&this._createPako(),this._pako.push(C.transformTo(a,s.data),!1)},p.prototype.flush=function(){f.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},p.prototype.cleanUp=function(){f.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 s=this;this._pako.onData=function(u){s.push({data:u,meta:s.meta})}},o.compressWorker=function(s){return new p("Deflate",s)},o.uncompressWorker=function(){return new p("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(he,l,o){"use strict";function c(d,h){var g,x="";for(g=0;g<h;g++)x+=String.fromCharCode(255&d),d>>>=8;return x}function I(d,h,g,x,b,y){var E,S,O=d.file,w=d.compression,T=y!==a.utf8encode,k=C.transformTo("string",y(O.name)),R=C.transformTo("string",a.utf8encode(O.name)),P=O.comment,B=C.transformTo("string",y(P)),W=C.transformTo("string",a.utf8encode(P)),N=R.length!==O.name.length,V=W.length!==P.length,U="",K="",Y="",J=O.dir,j=O.date,ee={crc32:0,compressedSize:0,uncompressedSize:0};h&&!g||(ee.crc32=d.crc32,ee.compressedSize=d.compressedSize,ee.uncompressedSize=d.uncompressedSize);var G=0;h&&(G|=8),T||!N&&!V||(G|=2048);var M,ge,q=0,Z=0;J&&(q|=16),"UNIX"===b?(Z=798,q|=(ge=M=O.unixPermissions,M||(ge=J?16893:33204),(65535&ge)<<16)):(Z=20,q|=function(M){return 63&(M||0)}(O.dosPermissions)),E=j.getUTCHours(),E<<=6,E|=j.getUTCMinutes(),E<<=5,E|=j.getUTCSeconds()/2,S=j.getUTCFullYear()-1980,S<<=4,S|=j.getUTCMonth()+1,S<<=5,S|=j.getUTCDate(),N&&(K=c(1,1)+c(p(k),4)+R,U+="up"+c(K.length,2)+K),V&&(Y=c(1,1)+c(p(B),4)+W,U+="uc"+c(Y.length,2)+Y);var X="";return X+="\n\0",X+=c(G,2),X+=w.magic,X+=c(E,2),X+=c(S,2),X+=c(ee.crc32,4),X+=c(ee.compressedSize,4),X+=c(ee.uncompressedSize,4),X+=c(k.length,2),X+=c(U.length,2),{fileRecord:s.LOCAL_FILE_HEADER+X+k+U,dirRecord:s.CENTRAL_FILE_HEADER+c(Z,2)+X+c(B.length,2)+"\0\0\0\0"+c(q,4)+c(x,4)+k+U+B}}var C=he("../utils"),f=he("../stream/GenericWorker"),a=he("../utf8"),p=he("../crc32"),s=he("../signature");function u(d,h,g,x){f.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=h,this.zipPlatform=g,this.encodeFileName=x,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}C.inherits(u,f),u.prototype.push=function(d){var h=d.meta.percent||0,g=this.entriesCount,x=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,f.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:g?(h+100*(g-x-1))/g:100}}))},u.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var h=this.streamFiles&&!d.file.dir;if(h){var g=I(d,h,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(d){this.accumulate=!1;var x,h=this.streamFiles&&!d.file.dir,g=I(d,h,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),h)this.push({data:(x=d,s.DATA_DESCRIPTOR+c(x.crc32,4)+c(x.compressedSize,4)+c(x.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var d=this.bytesWritten,h=0;h<this.dirRecords.length;h++)this.push({data:this.dirRecords[h],meta:{percent:100}});var b,y,E,w,x=(b=this.dirRecords.length,y=this.bytesWritten-d,E=d,w=C.transformTo("string",(0,this.encodeFileName)(this.zipComment)),s.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(b,2)+c(b,2)+c(y,4)+c(E,4)+c(w.length,2)+w);this.push({data:x,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(d){this._sources.push(d);var h=this;return d.on("data",function(g){h.processChunk(g)}),d.on("end",function(){h.closedSource(h.previous.streamInfo),h._sources.length?h.prepareNextSource():h.end()}),d.on("error",function(g){h.error(g)}),this},u.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(d){var h=this._sources;if(!f.prototype.error.call(this,d))return!1;for(var g=0;g<h.length;g++)try{h[g].error(d)}catch{}return!0},u.prototype.lock=function(){f.prototype.lock.call(this);for(var d=this._sources,h=0;h<d.length;h++)d[h].lock()},l.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(he,l,o){"use strict";var c=he("../compressions"),I=he("./ZipFileWorker");o.generateWorker=function(C,f,a){var p=new I(f.streamFiles,a,f.platform,f.encodeFileName),s=0;try{C.forEach(function(u,d){s++;var h=function(y,E){var S=y||E,O=c[S];if(!O)throw new Error(S+" is not a valid compression method !");return O}(d.options.compression,f.compression),x=d.dir,b=d.date;d._compressWorker(h,d.options.compressionOptions||f.compressionOptions||{}).withStreamInfo("file",{name:u,dir:x,date:b,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(p)}),p.entriesCount=s}catch(u){p.error(u)}return p}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(he,l,o){"use strict";function c(){if(!(this instanceof c))return new c;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 c;for(var C in this)"function"!=typeof this[C]&&(I[C]=this[C]);return I}}(c.prototype=he("./object")).loadAsync=he("./load"),c.support=he("./support"),c.defaults=he("./defaults"),c.version="3.10.1",c.loadAsync=function(I,C){return(new c).loadAsync(I,C)},c.external=he("./external"),l.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(he,l,o){"use strict";var c=he("./utils"),I=he("./external"),C=he("./utf8"),f=he("./zipEntries"),a=he("./stream/Crc32Probe"),p=he("./nodejsUtils");function s(u){return new I.Promise(function(d,h){var g=u.decompressed.getContentWorker().pipe(new a);g.on("error",function(x){h(x)}).on("end",function(){g.streamInfo.crc32!==u.decompressed.crc32?h(new Error("Corrupted zip : CRC32 mismatch")):d()}).resume()})}l.exports=function(u,d){var h=this;return d=c.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:C.utf8decode}),p.isNode&&p.isStream(u)?I.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",u,!0,d.optimizedBinaryString,d.base64).then(function(g){var x=new f(d);return x.load(g),x}).then(function(g){var x=[I.Promise.resolve(g)],b=g.files;if(d.checkCRC32)for(var y=0;y<b.length;y++)x.push(s(b[y]));return I.Promise.all(x)}).then(function(g){for(var x=g.shift(),b=x.files,y=0;y<b.length;y++){var E=b[y],S=E.fileNameStr,O=c.resolve(E.fileNameStr);h.file(O,E.decompressed,{binary:!0,optimizedBinaryString:!0,date:E.date,dir:E.dir,comment:E.fileCommentStr.length?E.fileCommentStr:null,unixPermissions:E.unixPermissions,dosPermissions:E.dosPermissions,createFolders:d.createFolders}),E.dir||(h.file(O).unsafeOriginalName=S)}return x.zipComment.length&&(h.comment=x.zipComment),h})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(he,l,o){"use strict";var c=he("../utils"),I=he("../stream/GenericWorker");function C(f,a){I.call(this,"Nodejs stream input adapter for "+f),this._upstreamEnded=!1,this._bindStream(a)}c.inherits(C,I),C.prototype._bindStream=function(f){var a=this;(this._stream=f).pause(),f.on("data",function(p){a.push({data:p,meta:{percent:0}})}).on("error",function(p){a.isPaused?this.generatedError=p:a.error(p)}).on("end",function(){a.isPaused?a._upstreamEnded=!0:a.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)},l.exports=C},{"../stream/GenericWorker":28,"../utils":32}],13:[function(he,l,o){"use strict";var c=he("readable-stream").Readable;function I(C,f,a){c.call(this,f),this._helper=C;var p=this;C.on("data",function(s,u){p.push(s)||p._helper.pause(),a&&a(u)}).on("error",function(s){p.emit("error",s)}).on("end",function(){p.push(null)})}he("../utils").inherits(I,c),I.prototype._read=function(){this._helper.resume()},l.exports=I},{"../utils":32,"readable-stream":16}],14:[function(he,l,o){"use strict";l.exports={isNode:typeof Buffer<"u",newBufferFrom:function(c,I){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(c,I);if("number"==typeof c)throw new Error('The "data" argument must not be a number');return new Buffer(c,I)},allocBuffer:function(c){if(Buffer.alloc)return Buffer.alloc(c);var I=new Buffer(c);return I.fill(0),I},isBuffer:function(c){return Buffer.isBuffer(c)},isStream:function(c){return c&&"function"==typeof c.on&&"function"==typeof c.pause&&"function"==typeof c.resume}}},{}],15:[function(he,l,o){"use strict";function c(O,w,T){var k,R=C.getTypeOf(w),P=C.extend(T||{},p);P.date=P.date||new Date,null!==P.compression&&(P.compression=P.compression.toUpperCase()),"string"==typeof P.unixPermissions&&(P.unixPermissions=parseInt(P.unixPermissions,8)),P.unixPermissions&&16384&P.unixPermissions&&(P.dir=!0),P.dosPermissions&&16&P.dosPermissions&&(P.dir=!0),P.dir&&(O=b(O)),P.createFolders&&(k=x(O))&&y.call(this,k,!0),T&&void 0!==T.binary||(P.binary=!("string"===R&&!1===P.binary&&!1===P.base64)),(w instanceof s&&0===w.uncompressedSize||P.dir||!w||0===w.length)&&(P.base64=!1,P.binary=!0,w="",P.compression="STORE",R="string");var W;W=w instanceof s||w instanceof f?w:h.isNode&&h.isStream(w)?new g(O,w):C.prepareContent(O,w,P.binary,P.optimizedBinaryString,P.base64);var N=new u(O,W,P);this.files[O]=N}var I=he("./utf8"),C=he("./utils"),f=he("./stream/GenericWorker"),a=he("./stream/StreamHelper"),p=he("./defaults"),s=he("./compressedObject"),u=he("./zipObject"),d=he("./generate"),h=he("./nodejsUtils"),g=he("./nodejs/NodejsStreamInputAdapter"),x=function(O){"/"===O.slice(-1)&&(O=O.substring(0,O.length-1));var w=O.lastIndexOf("/");return 0<w?O.substring(0,w):""},b=function(O){return"/"!==O.slice(-1)&&(O+="/"),O},y=function(O,w){return w=void 0!==w?w:p.createFolders,O=b(O),this.files[O]||c.call(this,O,null,{dir:!0,createFolders:w}),this.files[O]};function E(O){return"[object RegExp]"===Object.prototype.toString.call(O)}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(O){var w,T,k;for(w in this.files)k=this.files[w],(T=w.slice(this.root.length,w.length))&&w.slice(0,this.root.length)===this.root&&O(T,k)},filter:function(O){var w=[];return this.forEach(function(T,k){O(T,k)&&w.push(k)}),w},file:function(O,w,T){if(1!==arguments.length)return c.call(this,O=this.root+O,w,T),this;if(E(O)){var k=O;return this.filter(function(P,B){return!B.dir&&k.test(P)})}var R=this.files[this.root+O];return R&&!R.dir?R:null},folder:function(O){if(!O)return this;if(E(O))return this.filter(function(R,P){return P.dir&&O.test(R)});var T=y.call(this,this.root+O),k=this.clone();return k.root=T.name,k},remove:function(O){var w=this.files[O=this.root+O];if(w||("/"!==O.slice(-1)&&(O+="/"),w=this.files[O]),w&&!w.dir)delete this.files[O];else for(var T=this.filter(function(R,P){return P.name.slice(0,O.length)===O}),k=0;k<T.length;k++)delete this.files[T[k].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(O){var w,T={};try{if((T=C.extend(O||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:I.utf8encode})).type=T.type.toLowerCase(),T.compression=T.compression.toUpperCase(),"binarystring"===T.type&&(T.type="string"),!T.type)throw new Error("No output type specified.");C.checkSupport(T.type),"darwin"!==T.platform&&"freebsd"!==T.platform&&"linux"!==T.platform&&"sunos"!==T.platform||(T.platform="UNIX"),"win32"===T.platform&&(T.platform="DOS"),w=d.generateWorker(this,T,T.comment||this.comment||"")}catch(R){(w=new f("error")).error(R)}return new a(w,T.type||"string",T.mimeType)},generateAsync:function(O,w){return this.generateInternalStream(O).accumulate(w)},generateNodeStream:function(O,w){return(O=O||{}).type||(O.type="nodebuffer"),this.generateInternalStream(O).toNodejsStream(w)}};l.exports=S},{"./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(he,l,o){"use strict";l.exports=he("stream")},{stream:void 0}],17:[function(he,l,o){"use strict";var c=he("./DataReader");function I(C){c.call(this,C);for(var f=0;f<this.data.length;f++)C[f]=255&C[f]}he("../utils").inherits(I,c),I.prototype.byteAt=function(C){return this.data[this.zero+C]},I.prototype.lastIndexOfSignature=function(C){for(var f=C.charCodeAt(0),a=C.charCodeAt(1),p=C.charCodeAt(2),s=C.charCodeAt(3),u=this.length-4;0<=u;--u)if(this.data[u]===f&&this.data[u+1]===a&&this.data[u+2]===p&&this.data[u+3]===s)return u-this.zero;return-1},I.prototype.readAndCheckSignature=function(C){var f=C.charCodeAt(0),a=C.charCodeAt(1),p=C.charCodeAt(2),s=C.charCodeAt(3),u=this.readData(4);return f===u[0]&&a===u[1]&&p===u[2]&&s===u[3]},I.prototype.readData=function(C){if(this.checkOffset(C),0===C)return[];var f=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,f},l.exports=I},{"../utils":32,"./DataReader":18}],18:[function(he,l,o){"use strict";var c=he("../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 f,a=0;for(this.checkOffset(C),f=this.index+C-1;f>=this.index;f--)a=(a<<8)+this.byteAt(f);return this.index+=C,a},readString:function(C){return c.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))}},l.exports=I},{"../utils":32}],19:[function(he,l,o){"use strict";var c=he("./Uint8ArrayReader");function I(C){c.call(this,C)}he("../utils").inherits(I,c),I.prototype.readData=function(C){this.checkOffset(C);var f=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,f},l.exports=I},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(he,l,o){"use strict";var c=he("./DataReader");function I(C){c.call(this,C)}he("../utils").inherits(I,c),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 f=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,f},l.exports=I},{"../utils":32,"./DataReader":18}],21:[function(he,l,o){"use strict";var c=he("./ArrayReader");function I(C){c.call(this,C)}he("../utils").inherits(I,c),I.prototype.readData=function(C){if(this.checkOffset(C),0===C)return new Uint8Array(0);var f=this.data.subarray(this.zero+this.index,this.zero+this.index+C);return this.index+=C,f},l.exports=I},{"../utils":32,"./ArrayReader":17}],22:[function(he,l,o){"use strict";var c=he("../utils"),I=he("../support"),C=he("./ArrayReader"),f=he("./StringReader"),a=he("./NodeBufferReader"),p=he("./Uint8ArrayReader");l.exports=function(s){var u=c.getTypeOf(s);return c.checkSupport(u),"string"!==u||I.uint8array?"nodebuffer"===u?new a(s):I.uint8array?new p(c.transformTo("uint8array",s)):new C(c.transformTo("array",s)):new f(s)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(he,l,o){"use strict";o.LOCAL_FILE_HEADER="PK\x03\x04",o.CENTRAL_FILE_HEADER="PK\x01\x02",o.CENTRAL_DIRECTORY_END="PK\x05\x06",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(he,l,o){"use strict";var c=he("./GenericWorker"),I=he("../utils");function C(f){c.call(this,"ConvertWorker to "+f),this.destType=f}I.inherits(C,c),C.prototype.processChunk=function(f){this.push({data:I.transformTo(this.destType,f.data),meta:f.meta})},l.exports=C},{"../utils":32,"./GenericWorker":28}],25:[function(he,l,o){"use strict";var c=he("./GenericWorker"),I=he("../crc32");function C(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}he("../utils").inherits(C,c),C.prototype.processChunk=function(f){this.streamInfo.crc32=I(f.data,this.streamInfo.crc32||0),this.push(f)},l.exports=C},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(he,l,o){"use strict";var c=he("../utils"),I=he("./GenericWorker");function C(f){I.call(this,"DataLengthProbe for "+f),this.propName=f,this.withStreamInfo(f,0)}c.inherits(C,I),C.prototype.processChunk=function(f){f&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+f.data.length),I.prototype.processChunk.call(this,f)},l.exports=C},{"../utils":32,"./GenericWorker":28}],27:[function(he,l,o){"use strict";var c=he("../utils"),I=he("./GenericWorker");function C(f){I.call(this,"DataWorker");var a=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,f.then(function(p){a.dataIsReady=!0,a.data=p,a.max=p&&p.length||0,a.type=c.getTypeOf(p),a.isPaused||a._tickAndRepeat()},function(p){a.error(p)})}c.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,c.delay(this._tickAndRepeat,[],this)),!0)},C.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(c.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},C.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var f=null,a=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":f=this.data.substring(this.index,a);break;case"uint8array":f=this.data.subarray(this.index,a);break;case"array":case"nodebuffer":f=this.data.slice(this.index,a)}return this.index=a,this.push({data:f,meta:{percent:this.max?this.index/this.max*100:0}})},l.exports=C},{"../utils":32,"./GenericWorker":28}],28:[function(he,l,o){"use strict";function c(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}c.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 f=0;f<this._listeners[I].length;f++)this._listeners[I][f].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(f){C.processChunk(f)}),I.on("end",function(){C.end()}),I.on("error",function(f){C.error(f)}),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}},l.exports=c},{}],29:[function(he,l,o){"use strict";var c=he("../utils"),I=he("./ConvertWorker"),C=he("./GenericWorker"),f=he("../base64"),a=he("../support"),p=he("../external"),s=null;if(a.nodestream)try{s=he("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(h,g,x){var b=g;switch(g){case"blob":case"arraybuffer":b="uint8array";break;case"base64":b="string"}try{this._internalType=b,this._outputType=g,this._mimeType=x,c.checkSupport(b),this._worker=h.pipe(new I(b)),h.lock()}catch(y){this._worker=new C("error"),this._worker.error(y)}}d.prototype={accumulate:function(h){return function u(h,g){return new p.Promise(function(x,b){var y=[],E=h._internalType,S=h._outputType,O=h._mimeType;h.on("data",function(w,T){y.push(w),g&&g(T)}).on("error",function(w){y=[],b(w)}).on("end",function(){try{var w=function(T,k,R){switch(T){case"blob":return c.newBlob(c.transformTo("arraybuffer",k),R);case"base64":return f.encode(k);default:return c.transformTo(T,k)}}(S,function(T,k){var R,P=0,B=null,W=0;for(R=0;R<k.length;R++)W+=k[R].length;switch(T){case"string":return k.join("");case"array":return Array.prototype.concat.apply([],k);case"uint8array":for(B=new Uint8Array(W),R=0;R<k.length;R++)B.set(k[R],P),P+=k[R].length;return B;case"nodebuffer":return Buffer.concat(k);default:throw new Error("concat : unsupported type '"+T+"'")}}(E,y),O);x(w)}catch(T){b(T)}y=[]}).resume()})}(this,h)},on:function(h,g){var x=this;return this._worker.on(h,"data"===h?function(b){g.call(x,b.data,b.meta)}:function(){c.delay(g,arguments,x)}),this},resume:function(){return c.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(h){if(c.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new s(this,{objectMode:"nodebuffer"!==this._outputType},h)}},l.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(he,l,o){"use strict";if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var c=new ArrayBuffer(0);try{o.blob=0===new Blob([c],{type:"application/zip"}).size}catch{try{var I=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);I.append(c),o.blob=0===I.getBlob("application/zip").size}catch{o.blob=!1}}}try{o.nodestream=!!he("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(he,l,o){"use strict";for(var c=he("./utils"),I=he("./support"),C=he("./nodejsUtils"),f=he("./stream/GenericWorker"),a=new Array(256),p=0;p<256;p++)a[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function s(){f.call(this,"utf-8 decode"),this.leftOver=null}function u(){f.call(this,"utf-8 encode")}a[254]=a[254]=1,o.utf8encode=function(d){return I.nodebuffer?C.newBufferFrom(d,"utf-8"):function(h){var g,x,b,y,E,S=h.length,O=0;for(y=0;y<S;y++)55296==(64512&(x=h.charCodeAt(y)))&&y+1<S&&56320==(64512&(b=h.charCodeAt(y+1)))&&(x=65536+(x-55296<<10)+(b-56320),y++),O+=x<128?1:x<2048?2:x<65536?3:4;for(g=I.uint8array?new Uint8Array(O):new Array(O),y=E=0;E<O;y++)55296==(64512&(x=h.charCodeAt(y)))&&y+1<S&&56320==(64512&(b=h.charCodeAt(y+1)))&&(x=65536+(x-55296<<10)+(b-56320),y++),x<128?g[E++]=x:(x<2048?g[E++]=192|x>>>6:(x<65536?g[E++]=224|x>>>12:(g[E++]=240|x>>>18,g[E++]=128|x>>>12&63),g[E++]=128|x>>>6&63),g[E++]=128|63&x);return g}(d)},o.utf8decode=function(d){return I.nodebuffer?c.transformTo("nodebuffer",d).toString("utf-8"):function(h){var g,x,b,y,E=h.length,S=new Array(2*E);for(g=x=0;g<E;)if((b=h[g++])<128)S[x++]=b;else if(4<(y=a[b]))S[x++]=65533,g+=y-1;else{for(b&=2===y?31:3===y?15:7;1<y&&g<E;)b=b<<6|63&h[g++],y--;1<y?S[x++]=65533:b<65536?S[x++]=b:(S[x++]=55296|(b-=65536)>>10&1023,S[x++]=56320|1023&b)}return S.length!==x&&(S.subarray?S=S.subarray(0,x):S.length=x),c.applyFromCharCode(S)}(d=c.transformTo(I.uint8array?"uint8array":"array",d))},c.inherits(s,f),s.prototype.processChunk=function(d){var h=c.transformTo(I.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(I.uint8array){var g=h;(h=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),h.set(g,this.leftOver.length)}else h=this.leftOver.concat(h);this.leftOver=null}var x=function(y,E){var S;for((E=E||y.length)>y.length&&(E=y.length),S=E-1;0<=S&&128==(192&y[S]);)S--;return S<0||0===S?E:S+a[y[S]]>E?S:E}(h),b=h;x!==h.length&&(I.uint8array?(b=h.subarray(0,x),this.leftOver=h.subarray(x,h.length)):(b=h.slice(0,x),this.leftOver=h.slice(x,h.length))),this.push({data:o.utf8decode(b),meta:d.meta})},s.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=s,c.inherits(u,f),u.prototype.processChunk=function(d){this.push({data:o.utf8encode(d.data),meta:d.meta})},o.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(he,l,o){"use strict";var c=he("./support"),I=he("./base64"),C=he("./nodejsUtils"),f=he("./external");function a(g){return g}function p(g,x){for(var b=0;b<g.length;++b)x[b]=255&g.charCodeAt(b);return x}he("setimmediate"),o.newBlob=function(g,x){o.checkSupport("blob");try{return new Blob([g],{type:x})}catch{try{var b=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return b.append(g),b.getBlob(x)}catch{throw new Error("Bug : can't construct the Blob.")}}};var s={stringifyByChunk:function(g,x,b){var y=[],E=0,S=g.length;if(S<=b)return String.fromCharCode.apply(null,g);for(;E<S;)y.push(String.fromCharCode.apply(null,"array"===x||"nodebuffer"===x?g.slice(E,Math.min(E+b,S)):g.subarray(E,Math.min(E+b,S)))),E+=b;return y.join("")},stringifyByChar:function(g){for(var x="",b=0;b<g.length;b++)x+=String.fromCharCode(g[b]);return x},applyCanBeUsed:{uint8array:function(){try{return c.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch{return!1}}(),nodebuffer:function(){try{return c.nodebuffer&&1===String.fromCharCode.apply(null,C.allocBuffer(1)).length}catch{return!1}}()}};function u(g){var x=65536,b=o.getTypeOf(g),y=!0;if("uint8array"===b?y=s.applyCanBeUsed.uint8array:"nodebuffer"===b&&(y=s.applyCanBeUsed.nodebuffer),y)for(;1<x;)try{return s.stringifyByChunk(g,b,x)}catch{x=Math.floor(x/2)}return s.stringifyByChar(g)}function d(g,x){for(var b=0;b<g.length;b++)x[b]=g[b];return x}o.applyFromCharCode=u;var h={};h.string={string:a,array:function(g){return p(g,new Array(g.length))},arraybuffer:function(g){return h.string.uint8array(g).buffer},uint8array:function(g){return p(g,new Uint8Array(g.length))},nodebuffer:function(g){return p(g,C.allocBuffer(g.length))}},h.array={string:u,array:a,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return C.newBufferFrom(g)}},h.arraybuffer={string:function(g){return u(new Uint8Array(g))},array:function(g){return d(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:a,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return C.newBufferFrom(new Uint8Array(g))}},h.uint8array={string:u,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:a,nodebuffer:function(g){return C.newBufferFrom(g)}},h.nodebuffer={string:u,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return h.nodebuffer.uint8array(g).buffer},uint8array:function(g){return d(g,new Uint8Array(g.length))},nodebuffer:a},o.transformTo=function(g,x){if(x=x||"",!g)return x;o.checkSupport(g);var b=o.getTypeOf(x);return h[b][g](x)},o.resolve=function(g){for(var x=g.split("/"),b=[],y=0;y<x.length;y++){var E=x[y];"."===E||""===E&&0!==y&&y!==x.length-1||(".."===E?b.pop():b.push(E))}return b.join("/")},o.getTypeOf=function(g){return"string"==typeof g?"string":"[object Array]"===Object.prototype.toString.call(g)?"array":c.nodebuffer&&C.isBuffer(g)?"nodebuffer":c.uint8array&&g instanceof Uint8Array?"uint8array":c.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(g){if(!c[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(g){var x,b,y="";for(b=0;b<(g||"").length;b++)y+="\\x"+((x=g.charCodeAt(b))<16?"0":"")+x.toString(16).toUpperCase();return y},o.delay=function(g,x,b){setImmediate(function(){g.apply(b||null,x||[])})},o.inherits=function(g,x){function b(){}b.prototype=x.prototype,g.prototype=new b},o.extend=function(){var g,x,b={};for(g=0;g<arguments.length;g++)for(x in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],x)&&void 0===b[x]&&(b[x]=arguments[g][x]);return b},o.prepareContent=function(g,x,b,y,E){return f.Promise.resolve(x).then(function(S){return c.blob&&(S instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S)))&&typeof FileReader<"u"?new f.Promise(function(O,w){var T=new FileReader;T.onload=function(k){O(k.target.result)},T.onerror=function(k){w(k.target.error)},T.readAsArrayBuffer(S)}):S}).then(function(S){var w,O=o.getTypeOf(S);return O?("arraybuffer"===O?S=o.transformTo("uint8array",S):"string"===O&&(E?S=I.decode(S):b&&!0!==y&&(S=p(w=S,c.uint8array?new Uint8Array(w.length):new Array(w.length)))),S):f.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(he,l,o){"use strict";var c=he("./reader/readerFor"),I=he("./utils"),C=he("./signature"),f=he("./zipEntry"),a=he("./support");function p(s){this.files=[],this.loadOptions=s}p.prototype={checkSignature:function(s){if(!this.reader.readAndCheckSignature(s)){this.reader.index-=4;var u=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+I.pretty(u)+", expected "+I.pretty(s)+")")}},isSignature:function(s,u){var d=this.reader.index;this.reader.setIndex(s);var h=this.reader.readString(4)===u;return this.reader.setIndex(d),h},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 s=this.reader.readData(this.zipCommentLength),d=I.transformTo(a.uint8array?"uint8array":"array",s);this.zipComment=this.loadOptions.decodeFileName(d)},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 s,u,d,h=this.zip64EndOfCentralSize-44;0<h;)s=this.reader.readInt(2),u=this.reader.readInt(4),d=this.reader.readData(u),this.zip64ExtensibleData[s]={id:s,length:u,value:d}},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 s,u;for(s=0;s<this.files.length;s++)this.reader.setIndex((u=this.files[s]).localHeaderOffset),this.checkSignature(C.LOCAL_FILE_HEADER),u.readLocalPart(this.reader),u.handleUTF8(),u.processAttributes()},readCentralDir:function(){var s;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(C.CENTRAL_FILE_HEADER);)(s=new f({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(s);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 s=this.reader.lastIndexOfSignature(C.CENTRAL_DIRECTORY_END);if(s<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(s);var u=s;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,(s=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(s),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 d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var h=u-d;if(0<h)this.isSignature(u,C.CENTRAL_FILE_HEADER)||(this.reader.zero=h);else if(h<0)throw new Error("Corrupted zip: missing "+Math.abs(h)+" bytes.")},prepareReader:function(s){this.reader=c(s)},load:function(s){this.prepareReader(s),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},l.exports=p},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(he,l,o){"use strict";var c=he("./reader/readerFor"),I=he("./utils"),C=he("./compressedObject"),f=he("./crc32"),a=he("./utf8"),p=he("./compressions"),s=he("./support");function u(d,h){this.options=d,this.loadOptions=h}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(d){var h,g;if(d.skip(22),this.fileNameLength=d.readInt(2),g=d.readInt(2),this.fileName=d.readData(this.fileNameLength),d.skip(g),-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===(h=function(x){for(var b in p)if(Object.prototype.hasOwnProperty.call(p,b)&&p[b].magic===x)return p[b];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,h,d.readData(this.compressedSize))},readCentralPart:function(d){this.versionMadeBy=d.readInt(2),d.skip(2),this.bitFlag=d.readInt(2),this.compressionMethod=d.readString(2),this.date=d.readDate(),this.crc32=d.readInt(4),this.compressedSize=d.readInt(4),this.uncompressedSize=d.readInt(4);var h=d.readInt(2);if(this.extraFieldsLength=d.readInt(2),this.fileCommentLength=d.readInt(2),this.diskNumberStart=d.readInt(2),this.internalFileAttributes=d.readInt(2),this.externalFileAttributes=d.readInt(4),this.localHeaderOffset=d.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");d.skip(h),this.readExtraFields(d),this.parseZIP64ExtraField(d),this.fileComment=d.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var d=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==d&&(this.dosPermissions=63&this.externalFileAttributes),3==d&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=c(this.extraFields[1].value);this.uncompressedSize===I.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===I.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===I.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===I.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var h,g,x,b=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4<b;)h=d.readInt(2),g=d.readInt(2),x=d.readData(g),this.extraFields[h]={id:h,length:g,value:x};d.setIndex(b)},handleUTF8:function(){var d=s.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var h=this.findExtraFieldUnicodePath();if(null!==h)this.fileNameStr=h;else{var g=I.transformTo(d,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var x=this.findExtraFieldUnicodeComment();if(null!==x)this.fileCommentStr=x;else{var b=I.transformTo(d,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(b)}}},findExtraFieldUnicodePath:function(){var d=this.extraFields[28789];if(d){var h=c(d.value);return 1!==h.readInt(1)||f(this.fileName)!==h.readInt(4)?null:a.utf8decode(h.readData(d.length-5))}return null},findExtraFieldUnicodeComment:function(){var d=this.extraFields[25461];if(d){var h=c(d.value);return 1!==h.readInt(1)||f(this.fileComment)!==h.readInt(4)?null:a.utf8decode(h.readData(d.length-5))}return null}},l.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(he,l,o){"use strict";function c(h,g,x){this.name=h,this.dir=x.dir,this.date=x.date,this.comment=x.comment,this.unixPermissions=x.unixPermissions,this.dosPermissions=x.dosPermissions,this._data=g,this._dataBinary=x.binary,this.options={compression:x.compression,compressionOptions:x.compressionOptions}}var I=he("./stream/StreamHelper"),C=he("./stream/DataWorker"),f=he("./utf8"),a=he("./compressedObject"),p=he("./stream/GenericWorker");c.prototype={internalStream:function(h){var g=null,x="string";try{if(!h)throw new Error("No output type specified.");var b="string"===(x=h.toLowerCase())||"text"===x;"binarystring"!==x&&"text"!==x||(x="string"),g=this._decompressWorker();var y=!this._dataBinary;y&&!b&&(g=g.pipe(new f.Utf8EncodeWorker)),!y&&b&&(g=g.pipe(new f.Utf8DecodeWorker))}catch(E){(g=new p("error")).error(E)}return new I(g,x,"")},async:function(h,g){return this.internalStream(h).accumulate(g)},nodeStream:function(h,g){return this.internalStream(h||"nodebuffer").toNodejsStream(g)},_compressWorker:function(h,g){if(this._data instanceof a&&this._data.compression.magic===h.magic)return this._data.getCompressedWorker();var x=this._decompressWorker();return this._dataBinary||(x=x.pipe(new f.Utf8EncodeWorker)),a.createWorkerFrom(x,h,g)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof p?this._data:new C(this._data)}};for(var s=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<s.length;d++)c.prototype[s[d]]=u;l.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(he,l,o){(function(c){"use strict";var I,C,f=c.MutationObserver||c.WebKitMutationObserver;if(f){var a=0,p=new f(h),s=c.document.createTextNode("");p.observe(s,{characterData:!0}),I=function(){s.data=a=++a%2}}else if(c.setImmediate||void 0===c.MessageChannel)I="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var g=c.document.createElement("script");g.onreadystatechange=function(){h(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},c.document.documentElement.appendChild(g)}:function(){setTimeout(h,0)};else{var u=new c.MessageChannel;u.port1.onmessage=h,I=function(){u.port2.postMessage(0)}}var d=[];function h(){var g,x;C=!0;for(var b=d.length;b;){for(x=d,d=[],g=-1;++g<b;)x[g]();b=d.length}C=!1}l.exports=function(g){1!==d.push(g)||C||I()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(he,l,o){"use strict";var c=he("immediate");function I(){}var C={},f=["REJECTED"],a=["FULFILLED"],p=["PENDING"];function s(b){if("function"!=typeof b)throw new TypeError("resolver must be a function");this.state=p,this.queue=[],this.outcome=void 0,b!==I&&g(this,b)}function u(b,y,E){this.promise=b,"function"==typeof y&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),"function"==typeof E&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}function d(b,y,E){c(function(){var S;try{S=y(E)}catch(O){return C.reject(b,O)}S===b?C.reject(b,new TypeError("Cannot resolve promise with itself")):C.resolve(b,S)})}function h(b){var y=b&&b.then;if(b&&("object"==typeof b||"function"==typeof b)&&"function"==typeof y)return function(){y.apply(b,arguments)}}function g(b,y){var E=!1;function S(T){E||(E=!0,C.reject(b,T))}function O(T){E||(E=!0,C.resolve(b,T))}var w=x(function(){y(O,S)});"error"===w.status&&S(w.value)}function x(b,y){var E={};try{E.value=b(y),E.status="success"}catch(S){E.status="error",E.value=S}return E}(l.exports=s).prototype.finally=function(b){if("function"!=typeof b)return this;var y=this.constructor;return this.then(function(E){return y.resolve(b()).then(function(){return E})},function(E){return y.resolve(b()).then(function(){throw E})})},s.prototype.catch=function(b){return this.then(null,b)},s.prototype.then=function(b,y){if("function"!=typeof b&&this.state===a||"function"!=typeof y&&this.state===f)return this;var E=new this.constructor(I);return this.state!==p?d(E,this.state===a?b:y,this.outcome):this.queue.push(new u(E,b,y)),E},u.prototype.callFulfilled=function(b){C.resolve(this.promise,b)},u.prototype.otherCallFulfilled=function(b){d(this.promise,this.onFulfilled,b)},u.prototype.callRejected=function(b){C.reject(this.promise,b)},u.prototype.otherCallRejected=function(b){d(this.promise,this.onRejected,b)},C.resolve=function(b,y){var E=x(h,y);if("error"===E.status)return C.reject(b,E.value);var S=E.value;if(S)g(b,S);else{b.state=a,b.outcome=y;for(var O=-1,w=b.queue.length;++O<w;)b.queue[O].callFulfilled(y)}return b},C.reject=function(b,y){b.state=f,b.outcome=y;for(var E=-1,S=b.queue.length;++E<S;)b.queue[E].callRejected(y);return b},s.resolve=function(b){return b instanceof this?b:C.resolve(new this(I),b)},s.reject=function(b){var y=new this(I);return C.reject(y,b)},s.all=function(b){var y=this;if("[object Array]"!==Object.prototype.toString.call(b))return this.reject(new TypeError("must be an array"));var E=b.length,S=!1;if(!E)return this.resolve([]);for(var O=new Array(E),w=0,T=-1,k=new this(I);++T<E;)R(b[T],T);return k;function R(P,B){y.resolve(P).then(function(W){O[B]=W,++w!==E||S||(S=!0,C.resolve(k,O))},function(W){S||(S=!0,C.reject(k,W))})}},s.race=function(b){if("[object Array]"!==Object.prototype.toString.call(b))return this.reject(new TypeError("must be an array"));var E=b.length,S=!1;if(!E)return this.resolve([]);for(var O=-1,w=new this(I);++O<E;)this.resolve(b[O]).then(function(k){S||(S=!0,C.resolve(w,k))},function(k){S||(S=!0,C.reject(w,k))});return w}},{immediate:36}],38:[function(he,l,o){"use strict";var c={};(0,he("./lib/utils/common").assign)(c,he("./lib/deflate"),he("./lib/inflate"),he("./lib/zlib/constants")),l.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(he,l,o){"use strict";var c=he("./zlib/deflate"),I=he("./utils/common"),C=he("./utils/strings"),f=he("./zlib/messages"),a=he("./zlib/zstream"),p=Object.prototype.toString;function g(b){if(!(this instanceof g))return new g(b);this.options=I.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},b||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var E=c.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(0!==E)throw new Error(f[E]);if(y.header&&c.deflateSetHeader(this.strm,y.header),y.dictionary){var S;if(S="string"==typeof y.dictionary?C.string2buf(y.dictionary):"[object ArrayBuffer]"===p.call(y.dictionary)?new Uint8Array(y.dictionary):y.dictionary,0!==(E=c.deflateSetDictionary(this.strm,S)))throw new Error(f[E]);this._dict_set=!0}}function x(b,y){var E=new g(y);if(E.push(b,!0),E.err)throw E.msg||f[E.err];return E.result}g.prototype.push=function(b,y){var E,S,O=this.strm,w=this.options.chunkSize;if(this.ended)return!1;S=y===~~y?y:!0===y?4:0,O.input="string"==typeof b?C.string2buf(b):"[object ArrayBuffer]"===p.call(b)?new Uint8Array(b):b,O.next_in=0,O.avail_in=O.input.length;do{if(0===O.avail_out&&(O.output=new I.Buf8(w),O.next_out=0,O.avail_out=w),1!==(E=c.deflate(O,S))&&0!==E)return this.onEnd(E),!(this.ended=!0);0!==O.avail_out&&(0!==O.avail_in||4!==S&&2!==S)||this.onData("string"===this.options.to?C.buf2binstring(I.shrinkBuf(O.output,O.next_out)):I.shrinkBuf(O.output,O.next_out))}while((0<O.avail_in||0===O.avail_out)&&1!==E);return 4===S?(E=c.deflateEnd(this.strm),this.onEnd(E),this.ended=!0,0===E):2!==S||(this.onEnd(0),!(O.avail_out=0))},g.prototype.onData=function(b){this.chunks.push(b)},g.prototype.onEnd=function(b){0===b&&(this.result="string"===this.options.to?this.chunks.join(""):I.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},o.Deflate=g,o.deflate=x,o.deflateRaw=function(b,y){return(y=y||{}).raw=!0,x(b,y)},o.gzip=function(b,y){return(y=y||{}).gzip=!0,x(b,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(he,l,o){"use strict";var c=he("./zlib/inflate"),I=he("./utils/common"),C=he("./utils/strings"),f=he("./zlib/constants"),a=he("./zlib/messages"),p=he("./zlib/zstream"),s=he("./zlib/gzheader"),u=Object.prototype.toString;function d(g){if(!(this instanceof d))return new d(g);this.options=I.assign({chunkSize:16384,windowBits:0,to:""},g||{});var x=this.options;x.raw&&0<=x.windowBits&&x.windowBits<16&&(x.windowBits=-x.windowBits,0===x.windowBits&&(x.windowBits=-15)),!(0<=x.windowBits&&x.windowBits<16)||g&&g.windowBits||(x.windowBits+=32),15<x.windowBits&&x.windowBits<48&&!(15&x.windowBits)&&(x.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var b=c.inflateInit2(this.strm,x.windowBits);if(b!==f.Z_OK)throw new Error(a[b]);this.header=new s,c.inflateGetHeader(this.strm,this.header)}function h(g,x){var b=new d(x);if(b.push(g,!0),b.err)throw b.msg||a[b.err];return b.result}d.prototype.push=function(g,x){var b,y,E,S,O,w,T=this.strm,k=this.options.chunkSize,R=this.options.dictionary,P=!1;if(this.ended)return!1;y=x===~~x?x:!0===x?f.Z_FINISH:f.Z_NO_FLUSH,T.input="string"==typeof g?C.binstring2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,T.next_in=0,T.avail_in=T.input.length;do{if(0===T.avail_out&&(T.output=new I.Buf8(k),T.next_out=0,T.avail_out=k),(b=c.inflate(T,f.Z_NO_FLUSH))===f.Z_NEED_DICT&&R&&(w="string"==typeof R?C.string2buf(R):"[object ArrayBuffer]"===u.call(R)?new Uint8Array(R):R,b=c.inflateSetDictionary(this.strm,w)),b===f.Z_BUF_ERROR&&!0===P&&(b=f.Z_OK,P=!1),b!==f.Z_STREAM_END&&b!==f.Z_OK)return this.onEnd(b),!(this.ended=!0);T.next_out&&(0!==T.avail_out&&b!==f.Z_STREAM_END&&(0!==T.avail_in||y!==f.Z_FINISH&&y!==f.Z_SYNC_FLUSH)||("string"===this.options.to?(E=C.utf8border(T.output,T.next_out),S=T.next_out-E,O=C.buf2string(T.output,E),T.next_out=S,T.avail_out=k-S,S&&I.arraySet(T.output,T.output,E,S,0),this.onData(O)):this.onData(I.shrinkBuf(T.output,T.next_out)))),0===T.avail_in&&0===T.avail_out&&(P=!0)}while((0<T.avail_in||0===T.avail_out)&&b!==f.Z_STREAM_END);return b===f.Z_STREAM_END&&(y=f.Z_FINISH),y===f.Z_FINISH?(b=c.inflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===f.Z_OK):y!==f.Z_SYNC_FLUSH||(this.onEnd(f.Z_OK),!(T.avail_out=0))},d.prototype.onData=function(g){this.chunks.push(g)},d.prototype.onEnd=function(g){g===f.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):I.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},o.Inflate=d,o.inflate=h,o.inflateRaw=function(g,x){return(x=x||{}).raw=!0,h(g,x)},o.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(he,l,o){"use strict";var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(f){for(var a=Array.prototype.slice.call(arguments,1);a.length;){var p=a.shift();if(p){if("object"!=typeof p)throw new TypeError(p+"must be non-object");for(var s in p)p.hasOwnProperty(s)&&(f[s]=p[s])}}return f},o.shrinkBuf=function(f,a){return f.length===a?f:f.subarray?f.subarray(0,a):(f.length=a,f)};var I={arraySet:function(f,a,p,s,u){if(a.subarray&&f.subarray)f.set(a.subarray(p,p+s),u);else for(var d=0;d<s;d++)f[u+d]=a[p+d]},flattenChunks:function(f){var a,p,s,u,d,h;for(a=s=0,p=f.length;a<p;a++)s+=f[a].length;for(h=new Uint8Array(s),a=u=0,p=f.length;a<p;a++)h.set(d=f[a],u),u+=d.length;return h}},C={arraySet:function(f,a,p,s,u){for(var d=0;d<s;d++)f[u+d]=a[p+d]},flattenChunks:function(f){return[].concat.apply([],f)}};o.setTyped=function(f){f?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,I)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,C))},o.setTyped(c)},{}],42:[function(he,l,o){"use strict";var c=he("./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 f=new c.Buf8(256),a=0;a<256;a++)f[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function p(s,u){if(u<65537&&(s.subarray&&C||!s.subarray&&I))return String.fromCharCode.apply(null,c.shrinkBuf(s,u));for(var d="",h=0;h<u;h++)d+=String.fromCharCode(s[h]);return d}f[254]=f[254]=1,o.string2buf=function(s){var u,d,h,g,x,b=s.length,y=0;for(g=0;g<b;g++)55296==(64512&(d=s.charCodeAt(g)))&&g+1<b&&56320==(64512&(h=s.charCodeAt(g+1)))&&(d=65536+(d-55296<<10)+(h-56320),g++),y+=d<128?1:d<2048?2:d<65536?3:4;for(u=new c.Buf8(y),g=x=0;x<y;g++)55296==(64512&(d=s.charCodeAt(g)))&&g+1<b&&56320==(64512&(h=s.charCodeAt(g+1)))&&(d=65536+(d-55296<<10)+(h-56320),g++),d<128?u[x++]=d:(d<2048?u[x++]=192|d>>>6:(d<65536?u[x++]=224|d>>>12:(u[x++]=240|d>>>18,u[x++]=128|d>>>12&63),u[x++]=128|d>>>6&63),u[x++]=128|63&d);return u},o.buf2binstring=function(s){return p(s,s.length)},o.binstring2buf=function(s){for(var u=new c.Buf8(s.length),d=0,h=u.length;d<h;d++)u[d]=s.charCodeAt(d);return u},o.buf2string=function(s,u){var d,h,g,x,b=u||s.length,y=new Array(2*b);for(d=h=0;d<b;)if((g=s[d++])<128)y[h++]=g;else if(4<(x=f[g]))y[h++]=65533,d+=x-1;else{for(g&=2===x?31:3===x?15:7;1<x&&d<b;)g=g<<6|63&s[d++],x--;1<x?y[h++]=65533:g<65536?y[h++]=g:(y[h++]=55296|(g-=65536)>>10&1023,y[h++]=56320|1023&g)}return p(y,h)},o.utf8border=function(s,u){var d;for((u=u||s.length)>s.length&&(u=s.length),d=u-1;0<=d&&128==(192&s[d]);)d--;return d<0||0===d?u:d+f[s[d]]>u?d:u}},{"./common":41}],43:[function(he,l,o){"use strict";l.exports=function(c,I,C,f){for(var a=65535&c|0,p=c>>>16&65535|0,s=0;0!==C;){for(C-=s=2e3<C?2e3:C;p=p+(a=a+I[f++]|0)|0,--s;);a%=65521,p%=65521}return a|p<<16|0}},{}],44:[function(he,l,o){"use strict";l.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(he,l,o){"use strict";var c=function(){for(var I,C=[],f=0;f<256;f++){I=f;for(var a=0;a<8;a++)I=1&I?3988292384^I>>>1:I>>>1;C[f]=I}return C}();l.exports=function(I,C,f,a){var p=c,s=a+f;I^=-1;for(var u=a;u<s;u++)I=I>>>8^p[255&(I^C[u])];return-1^I}},{}],46:[function(he,l,o){"use strict";var c,I=he("../utils/common"),C=he("./trees"),f=he("./adler32"),a=he("./crc32"),p=he("./messages"),h=-2,P=258,B=262,N=113;function J(ie,de){return ie.msg=p[de],de}function j(ie){return(ie<<1)-(4<ie?9:0)}function ee(ie){for(var de=ie.length;0<=--de;)ie[de]=0}function G(ie){var de=ie.state,le=de.pending;le>ie.avail_out&&(le=ie.avail_out),0!==le&&(I.arraySet(ie.output,de.pending_buf,de.pending_out,le,ie.next_out),ie.next_out+=le,de.pending_out+=le,ie.total_out+=le,ie.avail_out-=le,de.pending-=le,0===de.pending&&(de.pending_out=0))}function q(ie,de){C._tr_flush_block(ie,0<=ie.block_start?ie.block_start:-1,ie.strstart-ie.block_start,de),ie.block_start=ie.strstart,G(ie.strm)}function Z(ie,de){ie.pending_buf[ie.pending++]=de}function X(ie,de){ie.pending_buf[ie.pending++]=de>>>8&255,ie.pending_buf[ie.pending++]=255&de}function M(ie,de){var le,pe,Ee=ie.max_chain_length,ae=ie.strstart,te=ie.prev_length,re=ie.nice_match,oe=ie.strstart>ie.w_size-B?ie.strstart-(ie.w_size-B):0,ye=ie.window,Pe=ie.w_mask,Ne=ie.prev,ft=ie.strstart+P,tt=ye[ae+te-1],Be=ye[ae+te];ie.prev_length>=ie.good_match&&(Ee>>=2),re>ie.lookahead&&(re=ie.lookahead);do{if(ye[(le=de)+te]===Be&&ye[le+te-1]===tt&&ye[le]===ye[ae]&&ye[++le]===ye[ae+1]){ae+=2,le++;do{}while(ye[++ae]===ye[++le]&&ye[++ae]===ye[++le]&&ye[++ae]===ye[++le]&&ye[++ae]===ye[++le]&&ye[++ae]===ye[++le]&&ye[++ae]===ye[++le]&&ye[++ae]===ye[++le]&&ye[++ae]===ye[++le]&&ae<ft);if(pe=P-(ft-ae),ae=ft-P,te<pe){if(ie.match_start=de,re<=(te=pe))break;tt=ye[ae+te-1],Be=ye[ae+te]}}}while((de=Ne[de&Pe])>oe&&0!=--Ee);return te<=ie.lookahead?te:ie.lookahead}function se(ie){var de,le,pe,Ee,ae,te,re,oe,ye,Pe,Ne=ie.w_size;do{if(Ee=ie.window_size-ie.lookahead-ie.strstart,ie.strstart>=Ne+(Ne-B)){for(I.arraySet(ie.window,ie.window,Ne,Ne,0),ie.match_start-=Ne,ie.strstart-=Ne,ie.block_start-=Ne,de=le=ie.hash_size;pe=ie.head[--de],ie.head[de]=Ne<=pe?pe-Ne:0,--le;);for(de=le=Ne;pe=ie.prev[--de],ie.prev[de]=Ne<=pe?pe-Ne:0,--le;);Ee+=Ne}if(0===ie.strm.avail_in)break;if(re=ie.window,oe=ie.strstart+ie.lookahead,Pe=void 0,(ye=Ee)<(Pe=(te=ie.strm).avail_in)&&(Pe=ye),le=0===Pe?0:(te.avail_in-=Pe,I.arraySet(re,te.input,te.next_in,Pe,oe),1===te.state.wrap?te.adler=f(te.adler,re,Pe,oe):2===te.state.wrap&&(te.adler=a(te.adler,re,Pe,oe)),te.next_in+=Pe,te.total_in+=Pe,Pe),ie.lookahead+=le,ie.lookahead+ie.insert>=3)for(ie.ins_h=ie.window[ae=ie.strstart-ie.insert],ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ae+1])&ie.hash_mask;ie.insert&&(ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ae+3-1])&ie.hash_mask,ie.prev[ae&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=ae,ae++,ie.insert--,!(ie.lookahead+ie.insert<3)););}while(ie.lookahead<B&&0!==ie.strm.avail_in)}function ge(ie,de){for(var le,pe;;){if(ie.lookahead<B){if(se(ie),ie.lookahead<B&&0===de)return 1;if(0===ie.lookahead)break}if(le=0,ie.lookahead>=3&&(ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ie.strstart+3-1])&ie.hash_mask,le=ie.prev[ie.strstart&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=ie.strstart),0!==le&&ie.strstart-le<=ie.w_size-B&&(ie.match_length=M(ie,le)),ie.match_length>=3)if(pe=C._tr_tally(ie,ie.strstart-ie.match_start,ie.match_length-3),ie.lookahead-=ie.match_length,ie.match_length<=ie.max_lazy_match&&ie.lookahead>=3){for(ie.match_length--;ie.strstart++,ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ie.strstart+3-1])&ie.hash_mask,le=ie.prev[ie.strstart&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=ie.strstart,0!=--ie.match_length;);ie.strstart++}else ie.strstart+=ie.match_length,ie.match_length=0,ie.ins_h=ie.window[ie.strstart],ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ie.strstart+1])&ie.hash_mask;else pe=C._tr_tally(ie,0,ie.window[ie.strstart]),ie.lookahead--,ie.strstart++;if(pe&&(q(ie,!1),0===ie.strm.avail_out))return 1}return ie.insert=ie.strstart<2?ie.strstart:2,4===de?(q(ie,!0),0===ie.strm.avail_out?3:4):ie.last_lit&&(q(ie,!1),0===ie.strm.avail_out)?1:2}function De(ie,de){for(var le,pe,Ee;;){if(ie.lookahead<B){if(se(ie),ie.lookahead<B&&0===de)return 1;if(0===ie.lookahead)break}if(le=0,ie.lookahead>=3&&(ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ie.strstart+3-1])&ie.hash_mask,le=ie.prev[ie.strstart&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=ie.strstart),ie.prev_length=ie.match_length,ie.prev_match=ie.match_start,ie.match_length=2,0!==le&&ie.prev_length<ie.max_lazy_match&&ie.strstart-le<=ie.w_size-B&&(ie.match_length=M(ie,le),ie.match_length<=5&&(1===ie.strategy||3===ie.match_length&&4096<ie.strstart-ie.match_start)&&(ie.match_length=2)),ie.prev_length>=3&&ie.match_length<=ie.prev_length){for(Ee=ie.strstart+ie.lookahead-3,pe=C._tr_tally(ie,ie.strstart-1-ie.prev_match,ie.prev_length-3),ie.lookahead-=ie.prev_length-1,ie.prev_length-=2;++ie.strstart<=Ee&&(ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ie.strstart+3-1])&ie.hash_mask,le=ie.prev[ie.strstart&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=ie.strstart),0!=--ie.prev_length;);if(ie.match_available=0,ie.match_length=2,ie.strstart++,pe&&(q(ie,!1),0===ie.strm.avail_out))return 1}else if(ie.match_available){if((pe=C._tr_tally(ie,0,ie.window[ie.strstart-1]))&&q(ie,!1),ie.strstart++,ie.lookahead--,0===ie.strm.avail_out)return 1}else ie.match_available=1,ie.strstart++,ie.lookahead--}return ie.match_available&&(pe=C._tr_tally(ie,0,ie.window[ie.strstart-1]),ie.match_available=0),ie.insert=ie.strstart<2?ie.strstart:2,4===de?(q(ie,!0),0===ie.strm.avail_out?3:4):ie.last_lit&&(q(ie,!1),0===ie.strm.avail_out)?1:2}function Fe(ie,de,le,pe,Ee){this.good_length=ie,this.max_lazy=de,this.nice_length=le,this.max_chain=pe,this.func=Ee}function Ae(){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),ee(this.dyn_ltree),ee(this.dyn_dtree),ee(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),ee(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new I.Buf16(573),ee(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 ne(ie){var de;return ie&&ie.state?(ie.total_in=ie.total_out=0,ie.data_type=2,(de=ie.state).pending=0,de.pending_out=0,de.wrap<0&&(de.wrap=-de.wrap),de.status=de.wrap?42:N,ie.adler=2===de.wrap?0:1,de.last_flush=0,C._tr_init(de),0):J(ie,h)}function fe(ie){var le,de=ne(ie);return 0===de&&((le=ie.state).window_size=2*le.w_size,ee(le.head),le.max_lazy_match=c[le.level].max_lazy,le.good_match=c[le.level].good_length,le.nice_match=c[le.level].nice_length,le.max_chain_length=c[le.level].max_chain,le.strstart=0,le.block_start=0,le.lookahead=0,le.insert=0,le.match_length=le.prev_length=2,le.match_available=0,le.ins_h=0),de}function _e(ie,de,le,pe,Ee,ae){if(!ie)return h;var te=1;if(-1===de&&(de=6),pe<0?(te=0,pe=-pe):15<pe&&(te=2,pe-=16),Ee<1||9<Ee||8!==le||pe<8||15<pe||de<0||9<de||ae<0||4<ae)return J(ie,h);8===pe&&(pe=9);var re=new Ae;return(ie.state=re).strm=ie,re.wrap=te,re.gzhead=null,re.w_bits=pe,re.w_size=1<<re.w_bits,re.w_mask=re.w_size-1,re.hash_bits=Ee+7,re.hash_size=1<<re.hash_bits,re.hash_mask=re.hash_size-1,re.hash_shift=~~((re.hash_bits+3-1)/3),re.window=new I.Buf8(2*re.w_size),re.head=new I.Buf16(re.hash_size),re.prev=new I.Buf16(re.w_size),re.lit_bufsize=1<<Ee+6,re.pending_buf_size=4*re.lit_bufsize,re.pending_buf=new I.Buf8(re.pending_buf_size),re.d_buf=1*re.lit_bufsize,re.l_buf=3*re.lit_bufsize,re.level=de,re.strategy=ae,re.method=le,fe(ie)}c=[new Fe(0,0,0,0,function(ie,de){var le=65535;for(le>ie.pending_buf_size-5&&(le=ie.pending_buf_size-5);;){if(ie.lookahead<=1){if(se(ie),0===ie.lookahead&&0===de)return 1;if(0===ie.lookahead)break}ie.strstart+=ie.lookahead,ie.lookahead=0;var pe=ie.block_start+le;if((0===ie.strstart||ie.strstart>=pe)&&(ie.lookahead=ie.strstart-pe,ie.strstart=pe,q(ie,!1),0===ie.strm.avail_out)||ie.strstart-ie.block_start>=ie.w_size-B&&(q(ie,!1),0===ie.strm.avail_out))return 1}return ie.insert=0,4===de?(q(ie,!0),0===ie.strm.avail_out?3:4):(ie.strstart>ie.block_start&&q(ie,!1),1)}),new Fe(4,4,8,4,ge),new Fe(4,5,16,8,ge),new Fe(4,6,32,32,ge),new Fe(4,4,16,16,De),new Fe(8,16,32,32,De),new Fe(8,16,128,128,De),new Fe(8,32,128,256,De),new Fe(32,128,258,1024,De),new Fe(32,258,258,4096,De)],o.deflateInit=function(ie,de){return _e(ie,de,8,15,8,0)},o.deflateInit2=_e,o.deflateReset=fe,o.deflateResetKeep=ne,o.deflateSetHeader=function(ie,de){return ie&&ie.state?2!==ie.state.wrap?h:(ie.state.gzhead=de,0):h},o.deflate=function(ie,de){var le,pe,Ee,ae;if(!ie||!ie.state||5<de||de<0)return ie?J(ie,h):h;if(pe=ie.state,!ie.output||!ie.input&&0!==ie.avail_in||666===pe.status&&4!==de)return J(ie,0===ie.avail_out?-5:h);if(pe.strm=ie,le=pe.last_flush,pe.last_flush=de,42===pe.status)if(2===pe.wrap)ie.adler=0,Z(pe,31),Z(pe,139),Z(pe,8),pe.gzhead?(Z(pe,(pe.gzhead.text?1:0)+(pe.gzhead.hcrc?2:0)+(pe.gzhead.extra?4:0)+(pe.gzhead.name?8:0)+(pe.gzhead.comment?16:0)),Z(pe,255&pe.gzhead.time),Z(pe,pe.gzhead.time>>8&255),Z(pe,pe.gzhead.time>>16&255),Z(pe,pe.gzhead.time>>24&255),Z(pe,9===pe.level?2:2<=pe.strategy||pe.level<2?4:0),Z(pe,255&pe.gzhead.os),pe.gzhead.extra&&pe.gzhead.extra.length&&(Z(pe,255&pe.gzhead.extra.length),Z(pe,pe.gzhead.extra.length>>8&255)),pe.gzhead.hcrc&&(ie.adler=a(ie.adler,pe.pending_buf,pe.pending,0)),pe.gzindex=0,pe.status=69):(Z(pe,0),Z(pe,0),Z(pe,0),Z(pe,0),Z(pe,0),Z(pe,9===pe.level?2:2<=pe.strategy||pe.level<2?4:0),Z(pe,3),pe.status=N);else{var te=8+(pe.w_bits-8<<4)<<8;te|=(2<=pe.strategy||pe.level<2?0:pe.level<6?1:6===pe.level?2:3)<<6,0!==pe.strstart&&(te|=32),te+=31-te%31,pe.status=N,X(pe,te),0!==pe.strstart&&(X(pe,ie.adler>>>16),X(pe,65535&ie.adler)),ie.adler=1}if(69===pe.status)if(pe.gzhead.extra){for(Ee=pe.pending;pe.gzindex<(65535&pe.gzhead.extra.length)&&(pe.pending!==pe.pending_buf_size||(pe.gzhead.hcrc&&pe.pending>Ee&&(ie.adler=a(ie.adler,pe.pending_buf,pe.pending-Ee,Ee)),G(ie),Ee=pe.pending,pe.pending!==pe.pending_buf_size));)Z(pe,255&pe.gzhead.extra[pe.gzindex]),pe.gzindex++;pe.gzhead.hcrc&&pe.pending>Ee&&(ie.adler=a(ie.adler,pe.pending_buf,pe.pending-Ee,Ee)),pe.gzindex===pe.gzhead.extra.length&&(pe.gzindex=0,pe.status=73)}else pe.status=73;if(73===pe.status)if(pe.gzhead.name){Ee=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>Ee&&(ie.adler=a(ie.adler,pe.pending_buf,pe.pending-Ee,Ee)),G(ie),Ee=pe.pending,pe.pending===pe.pending_buf_size)){ae=1;break}ae=pe.gzindex<pe.gzhead.name.length?255&pe.gzhead.name.charCodeAt(pe.gzindex++):0,Z(pe,ae)}while(0!==ae);pe.gzhead.hcrc&&pe.pending>Ee&&(ie.adler=a(ie.adler,pe.pending_buf,pe.pending-Ee,Ee)),0===ae&&(pe.gzindex=0,pe.status=91)}else pe.status=91;if(91===pe.status)if(pe.gzhead.comment){Ee=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>Ee&&(ie.adler=a(ie.adler,pe.pending_buf,pe.pending-Ee,Ee)),G(ie),Ee=pe.pending,pe.pending===pe.pending_buf_size)){ae=1;break}ae=pe.gzindex<pe.gzhead.comment.length?255&pe.gzhead.comment.charCodeAt(pe.gzindex++):0,Z(pe,ae)}while(0!==ae);pe.gzhead.hcrc&&pe.pending>Ee&&(ie.adler=a(ie.adler,pe.pending_buf,pe.pending-Ee,Ee)),0===ae&&(pe.status=103)}else pe.status=103;if(103===pe.status&&(pe.gzhead.hcrc?(pe.pending+2>pe.pending_buf_size&&G(ie),pe.pending+2<=pe.pending_buf_size&&(Z(pe,255&ie.adler),Z(pe,ie.adler>>8&255),ie.adler=0,pe.status=N)):pe.status=N),0!==pe.pending){if(G(ie),0===ie.avail_out)return pe.last_flush=-1,0}else if(0===ie.avail_in&&j(de)<=j(le)&&4!==de)return J(ie,-5);if(666===pe.status&&0!==ie.avail_in)return J(ie,-5);if(0!==ie.avail_in||0!==pe.lookahead||0!==de&&666!==pe.status){var re=2===pe.strategy?function(oe,ye){for(var Pe;;){if(0===oe.lookahead&&(se(oe),0===oe.lookahead)){if(0===ye)return 1;break}if(oe.match_length=0,Pe=C._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++,Pe&&(q(oe,!1),0===oe.strm.avail_out))return 1}return oe.insert=0,4===ye?(q(oe,!0),0===oe.strm.avail_out?3:4):oe.last_lit&&(q(oe,!1),0===oe.strm.avail_out)?1:2}(pe,de):3===pe.strategy?function(oe,ye){for(var Pe,Ne,ft,tt,Be=oe.window;;){if(oe.lookahead<=P){if(se(oe),oe.lookahead<=P&&0===ye)return 1;if(0===oe.lookahead)break}if(oe.match_length=0,oe.lookahead>=3&&0<oe.strstart&&(Ne=Be[ft=oe.strstart-1])===Be[++ft]&&Ne===Be[++ft]&&Ne===Be[++ft]){tt=oe.strstart+P;do{}while(Ne===Be[++ft]&&Ne===Be[++ft]&&Ne===Be[++ft]&&Ne===Be[++ft]&&Ne===Be[++ft]&&Ne===Be[++ft]&&Ne===Be[++ft]&&Ne===Be[++ft]&&ft<tt);oe.match_length=P-(tt-ft),oe.match_length>oe.lookahead&&(oe.match_length=oe.lookahead)}if(oe.match_length>=3?(Pe=C._tr_tally(oe,1,oe.match_length-3),oe.lookahead-=oe.match_length,oe.strstart+=oe.match_length,oe.match_length=0):(Pe=C._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++),Pe&&(q(oe,!1),0===oe.strm.avail_out))return 1}return oe.insert=0,4===ye?(q(oe,!0),0===oe.strm.avail_out?3:4):oe.last_lit&&(q(oe,!1),0===oe.strm.avail_out)?1:2}(pe,de):c[pe.level].func(pe,de);if(3!==re&&4!==re||(pe.status=666),1===re||3===re)return 0===ie.avail_out&&(pe.last_flush=-1),0;if(2===re&&(1===de?C._tr_align(pe):5!==de&&(C._tr_stored_block(pe,0,0,!1),3===de&&(ee(pe.head),0===pe.lookahead&&(pe.strstart=0,pe.block_start=0,pe.insert=0))),G(ie),0===ie.avail_out))return pe.last_flush=-1,0}return 4!==de?0:pe.wrap<=0?1:(2===pe.wrap?(Z(pe,255&ie.adler),Z(pe,ie.adler>>8&255),Z(pe,ie.adler>>16&255),Z(pe,ie.adler>>24&255),Z(pe,255&ie.total_in),Z(pe,ie.total_in>>8&255),Z(pe,ie.total_in>>16&255),Z(pe,ie.total_in>>24&255)):(X(pe,ie.adler>>>16),X(pe,65535&ie.adler)),G(ie),0<pe.wrap&&(pe.wrap=-pe.wrap),0!==pe.pending?0:1)},o.deflateEnd=function(ie){var de;return ie&&ie.state?42!==(de=ie.state.status)&&69!==de&&73!==de&&91!==de&&103!==de&&de!==N&&666!==de?J(ie,h):(ie.state=null,de===N?J(ie,-3):0):h},o.deflateSetDictionary=function(ie,de){var le,pe,Ee,ae,te,re,oe,ye,Pe=de.length;if(!ie||!ie.state||2===(ae=(le=ie.state).wrap)||1===ae&&42!==le.status||le.lookahead)return h;for(1===ae&&(ie.adler=f(ie.adler,de,Pe,0)),le.wrap=0,Pe>=le.w_size&&(0===ae&&(ee(le.head),le.strstart=0,le.block_start=0,le.insert=0),ye=new I.Buf8(le.w_size),I.arraySet(ye,de,Pe-le.w_size,le.w_size,0),de=ye,Pe=le.w_size),te=ie.avail_in,re=ie.next_in,oe=ie.input,ie.avail_in=Pe,ie.next_in=0,ie.input=de,se(le);le.lookahead>=3;){for(pe=le.strstart,Ee=le.lookahead-2;le.ins_h=(le.ins_h<<le.hash_shift^le.window[pe+3-1])&le.hash_mask,le.prev[pe&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=pe,pe++,--Ee;);le.strstart=pe,le.lookahead=2,se(le)}return le.strstart+=le.lookahead,le.block_start=le.strstart,le.insert=le.lookahead,le.lookahead=0,le.match_length=le.prev_length=2,le.match_available=0,ie.next_in=re,ie.input=oe,ie.avail_in=te,le.wrap=ae,0},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(he,l,o){"use strict";l.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(he,l,o){"use strict";l.exports=function(c,I){var C,f,a,p,s,u,d,h,g,x,b,y,E,S,O,w,T,k,R,P,B,W,N,V,U;V=c.input,a=(f=c.next_in)+(c.avail_in-5),U=c.output,s=(p=c.next_out)-(I-c.avail_out),u=p+(c.avail_out-257),d=(C=c.state).dmax,h=C.wsize,g=C.whave,x=C.wnext,b=C.window,y=C.hold,E=C.bits,S=C.lencode,O=C.distcode,w=(1<<C.lenbits)-1,T=(1<<C.distbits)-1;e:do{E<15&&(y+=V[f++]<<E,y+=V[f++]<<(E+=8),E+=8),k=S[y&w];t:for(;;){if(y>>>=R=k>>>24,E-=R,0==(R=k>>>16&255))U[p++]=65535&k;else{if(!(16&R)){if(!(64&R)){k=S[(65535&k)+(y&(1<<R)-1)];continue t}if(32&R){C.mode=12;break e}c.msg="invalid literal/length code",C.mode=30;break e}P=65535&k,(R&=15)&&(E<R&&(y+=V[f++]<<E,E+=8),P+=y&(1<<R)-1,y>>>=R,E-=R),E<15&&(y+=V[f++]<<E,y+=V[f++]<<(E+=8),E+=8),k=O[y&T];n:for(;;){if(y>>>=R=k>>>24,E-=R,!(16&(R=k>>>16&255))){if(!(64&R)){k=O[(65535&k)+(y&(1<<R)-1)];continue n}c.msg="invalid distance code",C.mode=30;break e}if(B=65535&k,E<(R&=15)&&(y+=V[f++]<<E,(E+=8)<R&&(y+=V[f++]<<E,E+=8)),d<(B+=y&(1<<R)-1)){c.msg="invalid distance too far back",C.mode=30;break e}if(y>>>=R,E-=R,(R=p-s)<B){if(g<(R=B-R)&&C.sane){c.msg="invalid distance too far back",C.mode=30;break e}if(N=b,(W=0)===x){if(W+=h-R,R<P){for(P-=R;U[p++]=b[W++],--R;);W=p-B,N=U}}else if(x<R){if(W+=h+x-R,(R-=x)<P){for(P-=R;U[p++]=b[W++],--R;);if(W=0,x<P){for(P-=R=x;U[p++]=b[W++],--R;);W=p-B,N=U}}}else if(W+=x-R,R<P){for(P-=R;U[p++]=b[W++],--R;);W=p-B,N=U}for(;2<P;)U[p++]=N[W++],U[p++]=N[W++],U[p++]=N[W++],P-=3;P&&(U[p++]=N[W++],1<P&&(U[p++]=N[W++]))}else{for(W=p-B;U[p++]=U[W++],U[p++]=U[W++],U[p++]=U[W++],2<(P-=3););P&&(U[p++]=U[W++],1<P&&(U[p++]=U[W++]))}break}}break}}while(f<a&&p<u);f-=P=E>>3,y&=(1<<(E-=P<<3))-1,c.next_in=f,c.next_out=p,c.avail_in=f<a?a-f+5:5-(f-a),c.avail_out=p<u?u-p+257:257-(p-u),C.hold=y,C.bits=E}},{}],49:[function(he,l,o){"use strict";var c=he("../utils/common"),I=he("./adler32"),C=he("./crc32"),f=he("./inffast"),a=he("./inftrees"),d=-2;function b(W){return(W>>>24&255)+(W>>>8&65280)+((65280&W)<<8)+((255&W)<<24)}function y(){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 c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function E(W){var N;return W&&W.state?(W.total_in=W.total_out=(N=W.state).total=0,W.msg="",N.wrap&&(W.adler=1&N.wrap),N.mode=1,N.last=0,N.havedict=0,N.dmax=32768,N.head=null,N.hold=0,N.bits=0,N.lencode=N.lendyn=new c.Buf32(852),N.distcode=N.distdyn=new c.Buf32(592),N.sane=1,N.back=-1,0):d}function S(W){var N;return W&&W.state?((N=W.state).wsize=0,N.whave=0,N.wnext=0,E(W)):d}function O(W,N){var V,U;return W&&W.state?(U=W.state,N<0?(V=0,N=-N):(V=1+(N>>4),N<48&&(N&=15)),N&&(N<8||15<N)?d:(null!==U.window&&U.wbits!==N&&(U.window=null),U.wrap=V,U.wbits=N,S(W))):d}function w(W,N){var V,U;return W?(U=new y,(W.state=U).window=null,0!==(V=O(W,N))&&(W.state=null),V):d}var T,k,R=!0;function P(W){if(R){var N;for(T=new c.Buf32(512),k=new c.Buf32(32),N=0;N<144;)W.lens[N++]=8;for(;N<256;)W.lens[N++]=9;for(;N<280;)W.lens[N++]=7;for(;N<288;)W.lens[N++]=8;for(a(1,W.lens,0,288,T,0,W.work,{bits:9}),N=0;N<32;)W.lens[N++]=5;a(2,W.lens,0,32,k,0,W.work,{bits:5}),R=!1}W.lencode=T,W.lenbits=9,W.distcode=k,W.distbits=5}function B(W,N,V,U){var K,Y=W.state;return null===Y.window&&(Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new c.Buf8(Y.wsize)),U>=Y.wsize?(c.arraySet(Y.window,N,V-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(U<(K=Y.wsize-Y.wnext)&&(K=U),c.arraySet(Y.window,N,V-U,K,Y.wnext),(U-=K)?(c.arraySet(Y.window,N,V-U,U,0),Y.wnext=U,Y.whave=Y.wsize):(Y.wnext+=K,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave<Y.wsize&&(Y.whave+=K))),0}o.inflateReset=S,o.inflateReset2=O,o.inflateResetKeep=E,o.inflateInit=function(W){return w(W,15)},o.inflateInit2=w,o.inflate=function(W,N){var V,U,K,Y,J,j,ee,G,q,Z,X,M,se,ge,De,Fe,Ae,ne,fe,_e,ie,de,le,pe,Ee=0,ae=new c.Buf8(4),te=[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 d;12===(V=W.state).mode&&(V.mode=13),J=W.next_out,K=W.output,Y=W.next_in,U=W.input,G=V.hold,q=V.bits,Z=j=W.avail_in,X=ee=W.avail_out,de=0;e:for(;;)switch(V.mode){case 1:if(0===V.wrap){V.mode=13;break}for(;q<16;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(2&V.wrap&&35615===G){ae[V.check=0]=255&G,ae[1]=G>>>8&255,V.check=C(V.check,ae,2,0),q=G=0,V.mode=2;break}if(V.flags=0,V.head&&(V.head.done=!1),!(1&V.wrap)||(((255&G)<<8)+(G>>8))%31){W.msg="incorrect header check",V.mode=30;break}if(8!=(15&G)){W.msg="unknown compression method",V.mode=30;break}if(q-=4,ie=8+(15&(G>>>=4)),0===V.wbits)V.wbits=ie;else if(ie>V.wbits){W.msg="invalid window size",V.mode=30;break}V.dmax=1<<ie,W.adler=V.check=1,V.mode=512&G?10:12,q=G=0;break;case 2:for(;q<16;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(V.flags=G,8!=(255&V.flags)){W.msg="unknown compression method",V.mode=30;break}if(57344&V.flags){W.msg="unknown header flags set",V.mode=30;break}V.head&&(V.head.text=G>>8&1),512&V.flags&&(ae[0]=255&G,ae[1]=G>>>8&255,V.check=C(V.check,ae,2,0)),q=G=0,V.mode=3;case 3:for(;q<32;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}V.head&&(V.head.time=G),512&V.flags&&(ae[0]=255&G,ae[1]=G>>>8&255,ae[2]=G>>>16&255,ae[3]=G>>>24&255,V.check=C(V.check,ae,4,0)),q=G=0,V.mode=4;case 4:for(;q<16;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}V.head&&(V.head.xflags=255&G,V.head.os=G>>8),512&V.flags&&(ae[0]=255&G,ae[1]=G>>>8&255,V.check=C(V.check,ae,2,0)),q=G=0,V.mode=5;case 5:if(1024&V.flags){for(;q<16;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}V.length=G,V.head&&(V.head.extra_len=G),512&V.flags&&(ae[0]=255&G,ae[1]=G>>>8&255,V.check=C(V.check,ae,2,0)),q=G=0}else V.head&&(V.head.extra=null);V.mode=6;case 6:if(1024&V.flags&&(j<(M=V.length)&&(M=j),M&&(V.head&&(ie=V.head.extra_len-V.length,V.head.extra||(V.head.extra=new Array(V.head.extra_len)),c.arraySet(V.head.extra,U,Y,M,ie)),512&V.flags&&(V.check=C(V.check,U,M,Y)),j-=M,Y+=M,V.length-=M),V.length))break e;V.length=0,V.mode=7;case 7:if(2048&V.flags){if(0===j)break e;for(M=0;ie=U[Y+M++],V.head&&ie&&V.length<65536&&(V.head.name+=String.fromCharCode(ie)),ie&&M<j;);if(512&V.flags&&(V.check=C(V.check,U,M,Y)),j-=M,Y+=M,ie)break e}else V.head&&(V.head.name=null);V.length=0,V.mode=8;case 8:if(4096&V.flags){if(0===j)break e;for(M=0;ie=U[Y+M++],V.head&&ie&&V.length<65536&&(V.head.comment+=String.fromCharCode(ie)),ie&&M<j;);if(512&V.flags&&(V.check=C(V.check,U,M,Y)),j-=M,Y+=M,ie)break e}else V.head&&(V.head.comment=null);V.mode=9;case 9:if(512&V.flags){for(;q<16;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(G!==(65535&V.check)){W.msg="header crc mismatch",V.mode=30;break}q=G=0}V.head&&(V.head.hcrc=V.flags>>9&1,V.head.done=!0),W.adler=V.check=0,V.mode=12;break;case 10:for(;q<32;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}W.adler=V.check=b(G),q=G=0,V.mode=11;case 11:if(0===V.havedict)return W.next_out=J,W.avail_out=ee,W.next_in=Y,W.avail_in=j,V.hold=G,V.bits=q,2;W.adler=V.check=1,V.mode=12;case 12:if(5===N||6===N)break e;case 13:if(V.last){G>>>=7&q,q-=7&q,V.mode=27;break}for(;q<3;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}switch(V.last=1&G,q-=1,3&(G>>>=1)){case 0:V.mode=14;break;case 1:if(P(V),V.mode=20,6!==N)break;G>>>=2,q-=2;break e;case 2:V.mode=17;break;case 3:W.msg="invalid block type",V.mode=30}G>>>=2,q-=2;break;case 14:for(G>>>=7&q,q-=7&q;q<32;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if((65535&G)!=(G>>>16^65535)){W.msg="invalid stored block lengths",V.mode=30;break}if(V.length=65535&G,q=G=0,V.mode=15,6===N)break e;case 15:V.mode=16;case 16:if(M=V.length){if(j<M&&(M=j),ee<M&&(M=ee),0===M)break e;c.arraySet(K,U,Y,M,J),j-=M,Y+=M,ee-=M,J+=M,V.length-=M;break}V.mode=12;break;case 17:for(;q<14;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(V.nlen=257+(31&G),q-=5,V.ndist=1+(31&(G>>>=5)),q-=5,V.ncode=4+(15&(G>>>=5)),G>>>=4,q-=4,286<V.nlen||30<V.ndist){W.msg="too many length or distance symbols",V.mode=30;break}V.have=0,V.mode=18;case 18:for(;V.have<V.ncode;){for(;q<3;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}V.lens[te[V.have++]]=7&G,G>>>=3,q-=3}for(;V.have<19;)V.lens[te[V.have++]]=0;if(V.lencode=V.lendyn,V.lenbits=7,de=a(0,V.lens,0,19,V.lencode,0,V.work,le={bits:V.lenbits}),V.lenbits=le.bits,de){W.msg="invalid code lengths set",V.mode=30;break}V.have=0,V.mode=19;case 19:for(;V.have<V.nlen+V.ndist;){for(;Fe=(Ee=V.lencode[G&(1<<V.lenbits)-1])>>>16&255,Ae=65535&Ee,!((De=Ee>>>24)<=q);){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(Ae<16)G>>>=De,q-=De,V.lens[V.have++]=Ae;else{if(16===Ae){for(pe=De+2;q<pe;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(G>>>=De,q-=De,0===V.have){W.msg="invalid bit length repeat",V.mode=30;break}ie=V.lens[V.have-1],M=3+(3&G),G>>>=2,q-=2}else if(17===Ae){for(pe=De+3;q<pe;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}q-=De,ie=0,M=3+(7&(G>>>=De)),G>>>=3,q-=3}else{for(pe=De+7;q<pe;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}q-=De,ie=0,M=11+(127&(G>>>=De)),G>>>=7,q-=7}if(V.have+M>V.nlen+V.ndist){W.msg="invalid bit length repeat",V.mode=30;break}for(;M--;)V.lens[V.have++]=ie}}if(30===V.mode)break;if(0===V.lens[256]){W.msg="invalid code -- missing end-of-block",V.mode=30;break}if(V.lenbits=9,de=a(1,V.lens,0,V.nlen,V.lencode,0,V.work,le={bits:V.lenbits}),V.lenbits=le.bits,de){W.msg="invalid literal/lengths set",V.mode=30;break}if(V.distbits=6,V.distcode=V.distdyn,de=a(2,V.lens,V.nlen,V.ndist,V.distcode,0,V.work,le={bits:V.distbits}),V.distbits=le.bits,de){W.msg="invalid distances set",V.mode=30;break}if(V.mode=20,6===N)break e;case 20:V.mode=21;case 21:if(6<=j&&258<=ee){W.next_out=J,W.avail_out=ee,W.next_in=Y,W.avail_in=j,V.hold=G,V.bits=q,f(W,X),J=W.next_out,K=W.output,ee=W.avail_out,Y=W.next_in,U=W.input,j=W.avail_in,G=V.hold,q=V.bits,12===V.mode&&(V.back=-1);break}for(V.back=0;Fe=(Ee=V.lencode[G&(1<<V.lenbits)-1])>>>16&255,Ae=65535&Ee,!((De=Ee>>>24)<=q);){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(Fe&&!(240&Fe)){for(ne=De,fe=Fe,_e=Ae;Fe=(Ee=V.lencode[_e+((G&(1<<ne+fe)-1)>>ne)])>>>16&255,Ae=65535&Ee,!(ne+(De=Ee>>>24)<=q);){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}G>>>=ne,q-=ne,V.back+=ne}if(G>>>=De,q-=De,V.back+=De,V.length=Ae,0===Fe){V.mode=26;break}if(32&Fe){V.back=-1,V.mode=12;break}if(64&Fe){W.msg="invalid literal/length code",V.mode=30;break}V.extra=15&Fe,V.mode=22;case 22:if(V.extra){for(pe=V.extra;q<pe;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}V.length+=G&(1<<V.extra)-1,G>>>=V.extra,q-=V.extra,V.back+=V.extra}V.was=V.length,V.mode=23;case 23:for(;Fe=(Ee=V.distcode[G&(1<<V.distbits)-1])>>>16&255,Ae=65535&Ee,!((De=Ee>>>24)<=q);){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(!(240&Fe)){for(ne=De,fe=Fe,_e=Ae;Fe=(Ee=V.distcode[_e+((G&(1<<ne+fe)-1)>>ne)])>>>16&255,Ae=65535&Ee,!(ne+(De=Ee>>>24)<=q);){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}G>>>=ne,q-=ne,V.back+=ne}if(G>>>=De,q-=De,V.back+=De,64&Fe){W.msg="invalid distance code",V.mode=30;break}V.offset=Ae,V.extra=15&Fe,V.mode=24;case 24:if(V.extra){for(pe=V.extra;q<pe;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}V.offset+=G&(1<<V.extra)-1,G>>>=V.extra,q-=V.extra,V.back+=V.extra}if(V.offset>V.dmax){W.msg="invalid distance too far back",V.mode=30;break}V.mode=25;case 25:if(0===ee)break e;if(V.offset>(M=X-ee)){if((M=V.offset-M)>V.whave&&V.sane){W.msg="invalid distance too far back",V.mode=30;break}se=M>V.wnext?V.wsize-(M-=V.wnext):V.wnext-M,M>V.length&&(M=V.length),ge=V.window}else ge=K,se=J-V.offset,M=V.length;for(ee<M&&(M=ee),ee-=M,V.length-=M;K[J++]=ge[se++],--M;);0===V.length&&(V.mode=21);break;case 26:if(0===ee)break e;K[J++]=V.length,ee--,V.mode=21;break;case 27:if(V.wrap){for(;q<32;){if(0===j)break e;j--,G|=U[Y++]<<q,q+=8}if(W.total_out+=X-=ee,V.total+=X,X&&(W.adler=V.check=V.flags?C(V.check,K,X,J-X):I(V.check,K,X,J-X)),X=ee,(V.flags?G:b(G))!==V.check){W.msg="incorrect data check",V.mode=30;break}q=G=0}V.mode=28;case 28:if(V.wrap&&V.flags){for(;q<32;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(G!==(4294967295&V.total)){W.msg="incorrect length check",V.mode=30;break}q=G=0}V.mode=29;case 29:de=1;break e;case 30:de=-3;break e;case 31:return-4;default:return d}return W.next_out=J,W.avail_out=ee,W.next_in=Y,W.avail_in=j,V.hold=G,V.bits=q,(V.wsize||X!==W.avail_out&&V.mode<30&&(V.mode<27||4!==N))&&B(W,W.output,W.next_out,X-W.avail_out)?(V.mode=31,-4):(X-=W.avail_out,W.total_in+=Z-=W.avail_in,W.total_out+=X,V.total+=X,V.wrap&&X&&(W.adler=V.check=V.flags?C(V.check,K,X,W.next_out-X):I(V.check,K,X,W.next_out-X)),W.data_type=V.bits+(V.last?64:0)+(12===V.mode?128:0)+(20===V.mode||15===V.mode?256:0),(0==Z&&0===X||4===N)&&0===de&&(de=-5),de)},o.inflateEnd=function(W){if(!W||!W.state)return d;var N=W.state;return N.window&&(N.window=null),W.state=null,0},o.inflateGetHeader=function(W,N){var V;return W&&W.state&&2&(V=W.state).wrap?((V.head=N).done=!1,0):d},o.inflateSetDictionary=function(W,N){var V,U=N.length;return W&&W.state?0!==(V=W.state).wrap&&11!==V.mode?d:11===V.mode&&I(1,N,U,0)!==V.check?-3:B(W,N,U,U)?(V.mode=31,-4):(V.havedict=1,0):d},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(he,l,o){"use strict";var c=he("../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],f=[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],a=[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];l.exports=function(p,s,u,d,h,g,x,b){var y,E,S,O,w,T,k,R,P,B=b.bits,W=0,N=0,V=0,U=0,K=0,Y=0,J=0,j=0,ee=0,G=0,q=null,Z=0,X=new c.Buf16(16),M=new c.Buf16(16),se=null,ge=0;for(W=0;W<=15;W++)X[W]=0;for(N=0;N<d;N++)X[s[u+N]]++;for(K=B,U=15;1<=U&&0===X[U];U--);if(U<K&&(K=U),0===U)return h[g++]=20971520,h[g++]=20971520,b.bits=1,0;for(V=1;V<U&&0===X[V];V++);for(K<V&&(K=V),W=j=1;W<=15;W++)if(j<<=1,(j-=X[W])<0)return-1;if(0<j&&(0===p||1!==U))return-1;for(M[1]=0,W=1;W<15;W++)M[W+1]=M[W]+X[W];for(N=0;N<d;N++)0!==s[u+N]&&(x[M[s[u+N]]++]=N);if(T=0===p?(q=se=x,19):1===p?(q=I,Z-=257,se=C,ge-=257,256):(q=f,se=a,-1),W=V,w=g,J=N=G=0,S=-1,O=(ee=1<<(Y=K))-1,1===p&&852<ee||2===p&&592<ee)return 1;for(;;){for(k=W-J,P=x[N]<T?(R=0,x[N]):x[N]>T?(R=se[ge+x[N]],q[Z+x[N]]):(R=96,0),y=1<<W-J,V=E=1<<Y;h[w+(G>>J)+(E-=y)]=k<<24|R<<16|P|0,0!==E;);for(y=1<<W-1;G&y;)y>>=1;if(0!==y?(G&=y-1,G+=y):G=0,N++,0==--X[W]){if(W===U)break;W=s[u+x[N]]}if(K<W&&(G&O)!==S){for(0===J&&(J=K),w+=V,j=1<<(Y=W-J);Y+J<U&&!((j-=X[Y+J])<=0);)Y++,j<<=1;if(ee+=1<<Y,1===p&&852<ee||2===p&&592<ee)return 1;h[S=G&O]=K<<24|Y<<16|w-g|0}}return 0!==G&&(h[w+G]=W-J<<24|64<<16|0),b.bits=K,0}},{"../utils/common":41}],51:[function(he,l,o){"use strict";l.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(he,l,o){"use strict";var c=he("../utils/common");function f(Ee){for(var ae=Ee.length;0<=--ae;)Ee[ae]=0}var s=256,u=286,d=30,x=15,T=[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],k=[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],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=new Array(576);f(B);var W=new Array(60);f(W);var N=new Array(512);f(N);var V=new Array(256);f(V);var U=new Array(29);f(U);var K,Y,J,j=new Array(d);function ee(Ee,ae,te,re,oe){this.static_tree=Ee,this.extra_bits=ae,this.extra_base=te,this.elems=re,this.max_length=oe,this.has_stree=Ee&&Ee.length}function G(Ee,ae){this.dyn_tree=Ee,this.max_code=0,this.stat_desc=ae}function q(Ee){return Ee<256?N[Ee]:N[256+(Ee>>>7)]}function Z(Ee,ae){Ee.pending_buf[Ee.pending++]=255&ae,Ee.pending_buf[Ee.pending++]=ae>>>8&255}function X(Ee,ae,te){Ee.bi_valid>16-te?(Ee.bi_buf|=ae<<Ee.bi_valid&65535,Z(Ee,Ee.bi_buf),Ee.bi_buf=ae>>16-Ee.bi_valid,Ee.bi_valid+=te-16):(Ee.bi_buf|=ae<<Ee.bi_valid&65535,Ee.bi_valid+=te)}function M(Ee,ae,te){X(Ee,te[2*ae],te[2*ae+1])}function se(Ee,ae){for(var te=0;te|=1&Ee,Ee>>>=1,te<<=1,0<--ae;);return te>>>1}function ge(Ee,ae,te){var re,oe,ye=new Array(16),Pe=0;for(re=1;re<=x;re++)ye[re]=Pe=Pe+te[re-1]<<1;for(oe=0;oe<=ae;oe++){var Ne=Ee[2*oe+1];0!==Ne&&(Ee[2*oe]=se(ye[Ne]++,Ne))}}function De(Ee){var ae;for(ae=0;ae<u;ae++)Ee.dyn_ltree[2*ae]=0;for(ae=0;ae<d;ae++)Ee.dyn_dtree[2*ae]=0;for(ae=0;ae<19;ae++)Ee.bl_tree[2*ae]=0;Ee.dyn_ltree[512]=1,Ee.opt_len=Ee.static_len=0,Ee.last_lit=Ee.matches=0}function Fe(Ee){8<Ee.bi_valid?Z(Ee,Ee.bi_buf):0<Ee.bi_valid&&(Ee.pending_buf[Ee.pending++]=Ee.bi_buf),Ee.bi_buf=0,Ee.bi_valid=0}function Ae(Ee,ae,te,re){var oe=2*ae,ye=2*te;return Ee[oe]<Ee[ye]||Ee[oe]===Ee[ye]&&re[ae]<=re[te]}function ne(Ee,ae,te){for(var re=Ee.heap[te],oe=te<<1;oe<=Ee.heap_len&&(oe<Ee.heap_len&&Ae(ae,Ee.heap[oe+1],Ee.heap[oe],Ee.depth)&&oe++,!Ae(ae,re,Ee.heap[oe],Ee.depth));)Ee.heap[te]=Ee.heap[oe],te=oe,oe<<=1;Ee.heap[te]=re}function fe(Ee,ae,te){var re,oe,ye,Pe,Ne=0;if(0!==Ee.last_lit)for(;re=Ee.pending_buf[Ee.d_buf+2*Ne]<<8|Ee.pending_buf[Ee.d_buf+2*Ne+1],oe=Ee.pending_buf[Ee.l_buf+Ne],Ne++,0===re?M(Ee,oe,ae):(M(Ee,(ye=V[oe])+s+1,ae),0!==(Pe=T[ye])&&X(Ee,oe-=U[ye],Pe),M(Ee,ye=q(--re),te),0!==(Pe=k[ye])&&X(Ee,re-=j[ye],Pe)),Ne<Ee.last_lit;);M(Ee,256,ae)}function _e(Ee,ae){var te,re,oe,ye=ae.dyn_tree,Pe=ae.stat_desc.static_tree,Ne=ae.stat_desc.has_stree,ft=ae.stat_desc.elems,tt=-1;for(Ee.heap_len=0,Ee.heap_max=573,te=0;te<ft;te++)0!==ye[2*te]?(Ee.heap[++Ee.heap_len]=tt=te,Ee.depth[te]=0):ye[2*te+1]=0;for(;Ee.heap_len<2;)ye[2*(oe=Ee.heap[++Ee.heap_len]=tt<2?++tt:0)]=1,Ee.depth[oe]=0,Ee.opt_len--,Ne&&(Ee.static_len-=Pe[2*oe+1]);for(ae.max_code=tt,te=Ee.heap_len>>1;1<=te;te--)ne(Ee,ye,te);for(oe=ft;te=Ee.heap[1],Ee.heap[1]=Ee.heap[Ee.heap_len--],ne(Ee,ye,1),re=Ee.heap[1],Ee.heap[--Ee.heap_max]=te,Ee.heap[--Ee.heap_max]=re,ye[2*oe]=ye[2*te]+ye[2*re],Ee.depth[oe]=(Ee.depth[te]>=Ee.depth[re]?Ee.depth[te]:Ee.depth[re])+1,ye[2*te+1]=ye[2*re+1]=oe,Ee.heap[1]=oe++,ne(Ee,ye,1),2<=Ee.heap_len;);Ee.heap[--Ee.heap_max]=Ee.heap[1],function(Be,mt){var nn,ke,$e,me,xe,Te,Ye=mt.dyn_tree,St=mt.max_code,Ct=mt.stat_desc.static_tree,Rt=mt.stat_desc.has_stree,fn=mt.stat_desc.extra_bits,ct=mt.stat_desc.extra_base,He=mt.stat_desc.max_length,Dt=0;for(me=0;me<=x;me++)Be.bl_count[me]=0;for(Ye[2*Be.heap[Be.heap_max]+1]=0,nn=Be.heap_max+1;nn<573;nn++)He<(me=Ye[2*Ye[2*(ke=Be.heap[nn])+1]+1]+1)&&(me=He,Dt++),Ye[2*ke+1]=me,St<ke||(Be.bl_count[me]++,xe=0,ct<=ke&&(xe=fn[ke-ct]),Be.opt_len+=(Te=Ye[2*ke])*(me+xe),Rt&&(Be.static_len+=Te*(Ct[2*ke+1]+xe)));if(0!==Dt){do{for(me=He-1;0===Be.bl_count[me];)me--;Be.bl_count[me]--,Be.bl_count[me+1]+=2,Be.bl_count[He]--,Dt-=2}while(0<Dt);for(me=He;0!==me;me--)for(ke=Be.bl_count[me];0!==ke;)St<($e=Be.heap[--nn])||(Ye[2*$e+1]!==me&&(Be.opt_len+=(me-Ye[2*$e+1])*Ye[2*$e],Ye[2*$e+1]=me),ke--)}}(Ee,ae),ge(ye,tt,Ee.bl_count)}function ie(Ee,ae,te){var re,oe,ye=-1,Pe=ae[1],Ne=0,ft=7,tt=4;for(0===Pe&&(ft=138,tt=3),ae[2*(te+1)+1]=65535,re=0;re<=te;re++)oe=Pe,Pe=ae[2*(re+1)+1],++Ne<ft&&oe===Pe||(Ne<tt?Ee.bl_tree[2*oe]+=Ne:0!==oe?(oe!==ye&&Ee.bl_tree[2*oe]++,Ee.bl_tree[32]++):Ne<=10?Ee.bl_tree[34]++:Ee.bl_tree[36]++,ye=oe,tt=(Ne=0)===Pe?(ft=138,3):oe===Pe?(ft=6,3):(ft=7,4))}function de(Ee,ae,te){var re,oe,ye=-1,Pe=ae[1],Ne=0,ft=7,tt=4;for(0===Pe&&(ft=138,tt=3),re=0;re<=te;re++)if(oe=Pe,Pe=ae[2*(re+1)+1],!(++Ne<ft&&oe===Pe)){if(Ne<tt)for(;M(Ee,oe,Ee.bl_tree),0!=--Ne;);else 0!==oe?(oe!==ye&&(M(Ee,oe,Ee.bl_tree),Ne--),M(Ee,16,Ee.bl_tree),X(Ee,Ne-3,2)):Ne<=10?(M(Ee,17,Ee.bl_tree),X(Ee,Ne-3,3)):(M(Ee,18,Ee.bl_tree),X(Ee,Ne-11,7));ye=oe,tt=(Ne=0)===Pe?(ft=138,3):oe===Pe?(ft=6,3):(ft=7,4)}}f(j);var le=!1;function pe(Ee,ae,te,re){var oe,ye,Pe;X(Ee,0+(re?1:0),3),ye=ae,Pe=te,Fe(oe=Ee),Z(oe,Pe),Z(oe,~Pe),c.arraySet(oe.pending_buf,oe.window,ye,Pe,oe.pending),oe.pending+=Pe}o._tr_init=function(Ee){le||(function(){var ae,te,re,oe,ye,Pe=new Array(16);for(oe=re=0;oe<28;oe++)for(U[oe]=re,ae=0;ae<1<<T[oe];ae++)V[re++]=oe;for(V[re-1]=oe,oe=ye=0;oe<16;oe++)for(j[oe]=ye,ae=0;ae<1<<k[oe];ae++)N[ye++]=oe;for(ye>>=7;oe<d;oe++)for(j[oe]=ye<<7,ae=0;ae<1<<k[oe]-7;ae++)N[256+ye++]=oe;for(te=0;te<=x;te++)Pe[te]=0;for(ae=0;ae<=143;)B[2*ae+1]=8,ae++,Pe[8]++;for(;ae<=255;)B[2*ae+1]=9,ae++,Pe[9]++;for(;ae<=279;)B[2*ae+1]=7,ae++,Pe[7]++;for(;ae<=287;)B[2*ae+1]=8,ae++,Pe[8]++;for(ge(B,287,Pe),ae=0;ae<d;ae++)W[2*ae+1]=5,W[2*ae]=se(ae,5);K=new ee(B,T,257,u,x),Y=new ee(W,k,0,d,x),J=new ee(new Array(0),R,0,19,7)}(),le=!0),Ee.l_desc=new G(Ee.dyn_ltree,K),Ee.d_desc=new G(Ee.dyn_dtree,Y),Ee.bl_desc=new G(Ee.bl_tree,J),Ee.bi_buf=0,Ee.bi_valid=0,De(Ee)},o._tr_stored_block=pe,o._tr_flush_block=function(Ee,ae,te,re){var oe,ye,Pe=0;0<Ee.level?(2===Ee.strm.data_type&&(Ee.strm.data_type=function(Ne){var ft,tt=4093624447;for(ft=0;ft<=31;ft++,tt>>>=1)if(1&tt&&0!==Ne.dyn_ltree[2*ft])return 0;if(0!==Ne.dyn_ltree[18]||0!==Ne.dyn_ltree[20]||0!==Ne.dyn_ltree[26])return 1;for(ft=32;ft<s;ft++)if(0!==Ne.dyn_ltree[2*ft])return 1;return 0}(Ee)),_e(Ee,Ee.l_desc),_e(Ee,Ee.d_desc),Pe=function(Ne){var ft;for(ie(Ne,Ne.dyn_ltree,Ne.l_desc.max_code),ie(Ne,Ne.dyn_dtree,Ne.d_desc.max_code),_e(Ne,Ne.bl_desc),ft=18;3<=ft&&0===Ne.bl_tree[2*P[ft]+1];ft--);return Ne.opt_len+=3*(ft+1)+5+5+4,ft}(Ee),(ye=Ee.static_len+3+7>>>3)<=(oe=Ee.opt_len+3+7>>>3)&&(oe=ye)):oe=ye=te+5,te+4<=oe&&-1!==ae?pe(Ee,ae,te,re):4===Ee.strategy||ye===oe?(X(Ee,2+(re?1:0),3),fe(Ee,B,W)):(X(Ee,4+(re?1:0),3),function(Ne,ft,tt,Be){var mt;for(X(Ne,ft-257,5),X(Ne,tt-1,5),X(Ne,Be-4,4),mt=0;mt<Be;mt++)X(Ne,Ne.bl_tree[2*P[mt]+1],3);de(Ne,Ne.dyn_ltree,ft-1),de(Ne,Ne.dyn_dtree,tt-1)}(Ee,Ee.l_desc.max_code+1,Ee.d_desc.max_code+1,Pe+1),fe(Ee,Ee.dyn_ltree,Ee.dyn_dtree)),De(Ee),re&&Fe(Ee)},o._tr_tally=function(Ee,ae,te){return Ee.pending_buf[Ee.d_buf+2*Ee.last_lit]=ae>>>8&255,Ee.pending_buf[Ee.d_buf+2*Ee.last_lit+1]=255&ae,Ee.pending_buf[Ee.l_buf+Ee.last_lit]=255&te,Ee.last_lit++,0===ae?Ee.dyn_ltree[2*te]++:(Ee.matches++,ae--,Ee.dyn_ltree[2*(V[te]+s+1)]++,Ee.dyn_dtree[2*q(ae)]++),Ee.last_lit===Ee.lit_bufsize-1},o._tr_align=function(Ee){var ae;X(Ee,2,3),M(Ee,256,B),16===(ae=Ee).bi_valid?(Z(ae,ae.bi_buf),ae.bi_buf=0,ae.bi_valid=0):8<=ae.bi_valid&&(ae.pending_buf[ae.pending++]=255&ae.bi_buf,ae.bi_buf>>=8,ae.bi_valid-=8)}},{"../utils/common":41}],53:[function(he,l,o){"use strict";l.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(he,l,o){(function(c){!function(I,C){"use strict";if(!I.setImmediate){var f,a,p,s,u=1,d={},h=!1,g=I.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(I);x=x&&x.setTimeout?x:I,f="[object process]"==={}.toString.call(I.process)?function(S){process.nextTick(function(){y(S)})}:function(){if(I.postMessage&&!I.importScripts){var S=!0,O=I.onmessage;return I.onmessage=function(){S=!1},I.postMessage("","*"),I.onmessage=O,S}}()?(s="setImmediate$"+Math.random()+"$",I.addEventListener?I.addEventListener("message",E,!1):I.attachEvent("onmessage",E),function(S){I.postMessage(s+S,"*")}):I.MessageChannel?((p=new MessageChannel).port1.onmessage=function(S){y(S.data)},function(S){p.port2.postMessage(S)}):g&&"onreadystatechange"in g.createElement("script")?(a=g.documentElement,function(S){var O=g.createElement("script");O.onreadystatechange=function(){y(S),O.onreadystatechange=null,a.removeChild(O),O=null},a.appendChild(O)}):function(S){setTimeout(y,0,S)},x.setImmediate=function(S){"function"!=typeof S&&(S=new Function(""+S));for(var O=new Array(arguments.length-1),w=0;w<O.length;w++)O[w]=arguments[w+1];return d[u]={callback:S,args:O},f(u),u++},x.clearImmediate=b}function b(S){delete d[S]}function y(S){if(h)setTimeout(y,0,S);else{var O=d[S];if(O){h=!0;try{!function(w){var T=w.callback,k=w.args;switch(k.length){case 0:T();break;case 1:T(k[0]);break;case 2:T(k[0],k[1]);break;case 3:T(k[0],k[1],k[2]);break;default:T.apply(undefined,k)}}(O)}finally{b(S),h=!1}}}}function E(S){S.source===I&&"string"==typeof S.data&&0===S.data.indexOf(s)&&y(+S.data.slice(s.length))}}(typeof self>"u"?void 0===c?this:c:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)},882:(kn,he,l)=>{"use strict";l.d(he,{y:()=>u});var o=l(7393),I=l(9181),C=l(6490),a=l(6554),p=l(4022),s=l(2494);let u=(()=>{class h{constructor(x){this._isScalar=!1,x&&(this._subscribe=x)}lift(x){const b=new h;return b.source=this,b.operator=x,b}subscribe(x,b,y){const{operator:E}=this,S=function f(h,g,x){if(h){if(h instanceof o.L)return h;if(h[I.b])return h[I.b]()}return h||g||x?new o.L(h,g,x):new o.L(C.c)}(x,b,y);if(S.add(E?E.call(S,this.source):this.source||s.v.useDeprecatedSynchronousErrorHandling&&!S.syncErrorThrowable?this._subscribe(S):this._trySubscribe(S)),s.v.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable&&(S.syncErrorThrowable=!1,S.syncErrorThrown))throw S.syncErrorValue;return S}_trySubscribe(x){try{return this._subscribe(x)}catch(b){s.v.useDeprecatedSynchronousErrorHandling&&(x.syncErrorThrown=!0,x.syncErrorValue=b),function c(h){for(;h;){const{closed:g,destination:x,isStopped:b}=h;if(g||b)return!1;h=x&&x instanceof o.L?x:null}return!0}(x)?x.error(b):console.warn(b)}}forEach(x,b){return new(b=d(b))((y,E)=>{let S;S=this.subscribe(O=>{try{x(O)}catch(w){E(w),S&&S.unsubscribe()}},E,y)})}_subscribe(x){const{source:b}=this;return b&&b.subscribe(x)}[a.L](){return this}pipe(...x){return 0===x.length?this:(0,p.U)(x)(this)}toPromise(x){return new(x=d(x))((b,y)=>{let E;this.subscribe(S=>E=S,S=>y(S),()=>b(E))})}}return h.create=g=>new h(g),h})();function d(h){if(h||(h=s.v.Promise||Promise),!h)throw new Error("no Promise impl found");return h}},6490:(kn,he,l)=>{"use strict";l.d(he,{c:()=>I});var o=l(2494),c=l(4449);const I={closed:!0,next(C){},error(C){if(o.v.useDeprecatedSynchronousErrorHandling)throw C;(0,c.z)(C)},complete(){}}},5775:(kn,he,l)=>{"use strict";l.d(he,{xQ:()=>s,Yc:()=>p});var o=l(882),c=l(7393),I=l(3464),C=l(7971);class f extends I.w{constructor(h,g){super(),this.subject=h,this.subscriber=g,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const h=this.subject,g=h.observers;if(this.subject=null,!g||0===g.length||h.isStopped||h.closed)return;const x=g.indexOf(this.subscriber);-1!==x&&g.splice(x,1)}}var a=l(9181);class p extends c.L{constructor(h){super(h),this.destination=h}}let s=(()=>{class d extends o.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[a.b](){return new p(this)}lift(g){const x=new u(this,this);return x.operator=g,x}next(g){if(this.closed)throw new C.N;if(!this.isStopped){const{observers:x}=this,b=x.length,y=x.slice();for(let E=0;E<b;E++)y[E].next(g)}}error(g){if(this.closed)throw new C.N;this.hasError=!0,this.thrownError=g,this.isStopped=!0;const{observers:x}=this,b=x.length,y=x.slice();for(let E=0;E<b;E++)y[E].error(g);this.observers.length=0}complete(){if(this.closed)throw new C.N;this.isStopped=!0;const{observers:g}=this,x=g.length,b=g.slice();for(let y=0;y<x;y++)b[y].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(g){if(this.closed)throw new C.N;return super._trySubscribe(g)}_subscribe(g){if(this.closed)throw new C.N;return this.hasError?(g.error(this.thrownError),I.w.EMPTY):this.isStopped?(g.complete(),I.w.EMPTY):(this.observers.push(g),new f(this,g))}asObservable(){const g=new o.y;return g.source=this,g}}return d.create=(h,g)=>new u(h,g),d})();class u extends s{constructor(h,g){super(),this.destination=h,this.source=g}next(h){const{destination:g}=this;g&&g.next&&g.next(h)}error(h){const{destination:g}=this;g&&g.error&&this.destination.error(h)}complete(){const{destination:h}=this;h&&h.complete&&this.destination.complete()}_subscribe(h){const{source:g}=this;return g?this.source.subscribe(h):I.w.EMPTY}}},7393:(kn,he,l)=>{"use strict";l.d(he,{L:()=>p});var o=l(9105),c=l(6490),I=l(3464),C=l(9181),f=l(2494),a=l(4449);class p extends I.w{constructor(d,h,g){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=c.c;break;case 1:if(!d){this.destination=c.c;break}if("object"==typeof d){d instanceof p?(this.syncErrorThrowable=d.syncErrorThrowable,this.destination=d,d.add(this)):(this.syncErrorThrowable=!0,this.destination=new s(this,d));break}default:this.syncErrorThrowable=!0,this.destination=new s(this,d,h,g)}}[C.b](){return this}static create(d,h,g){const x=new p(d,h,g);return x.syncErrorThrowable=!1,x}next(d){this.isStopped||this._next(d)}error(d){this.isStopped||(this.isStopped=!0,this._error(d))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(d){this.destination.next(d)}_error(d){this.destination.error(d),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:d}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=d,this}}class s extends p{constructor(d,h,g,x){super(),this._parentSubscriber=d;let b,y=this;(0,o.m)(h)?b=h:h&&(b=h.next,g=h.error,x=h.complete,h!==c.c&&(y=Object.create(h),(0,o.m)(y.unsubscribe)&&this.add(y.unsubscribe.bind(y)),y.unsubscribe=this.unsubscribe.bind(this))),this._context=y,this._next=b,this._error=g,this._complete=x}next(d){if(!this.isStopped&&this._next){const{_parentSubscriber:h}=this;f.v.useDeprecatedSynchronousErrorHandling&&h.syncErrorThrowable?this.__tryOrSetError(h,this._next,d)&&this.unsubscribe():this.__tryOrUnsub(this._next,d)}}error(d){if(!this.isStopped){const{_parentSubscriber:h}=this,{useDeprecatedSynchronousErrorHandling:g}=f.v;if(this._error)g&&h.syncErrorThrowable?(this.__tryOrSetError(h,this._error,d),this.unsubscribe()):(this.__tryOrUnsub(this._error,d),this.unsubscribe());else if(h.syncErrorThrowable)g?(h.syncErrorValue=d,h.syncErrorThrown=!0):(0,a.z)(d),this.unsubscribe();else{if(this.unsubscribe(),g)throw d;(0,a.z)(d)}}}complete(){if(!this.isStopped){const{_parentSubscriber:d}=this;if(this._complete){const h=()=>this._complete.call(this._context);f.v.useDeprecatedSynchronousErrorHandling&&d.syncErrorThrowable?(this.__tryOrSetError(d,h),this.unsubscribe()):(this.__tryOrUnsub(h),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(d,h){try{d.call(this._context,h)}catch(g){if(this.unsubscribe(),f.v.useDeprecatedSynchronousErrorHandling)throw g;(0,a.z)(g)}}__tryOrSetError(d,h,g){if(!f.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{h.call(this._context,g)}catch(x){return f.v.useDeprecatedSynchronousErrorHandling?(d.syncErrorValue=x,d.syncErrorThrown=!0,!0):((0,a.z)(x),!0)}return!1}_unsubscribe(){const{_parentSubscriber:d}=this;this._context=null,this._parentSubscriber=null,d.unsubscribe()}}},3464:(kn,he,l)=>{"use strict";l.d(he,{w:()=>a});var o=l(9796),c=l(1555),I=l(9105);const f=(()=>{function s(u){return Error.call(this),this.message=u?`${u.length} errors occurred during unsubscription:\n${u.map((d,h)=>`${h+1}) ${d.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=u,this}return s.prototype=Object.create(Error.prototype),s})();class a{constructor(u){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,u&&(this._ctorUnsubscribe=!0,this._unsubscribe=u)}unsubscribe(){let u;if(this.closed)return;let{_parentOrParents:d,_ctorUnsubscribe:h,_unsubscribe:g,_subscriptions:x}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,d instanceof a)d.remove(this);else if(null!==d)for(let b=0;b<d.length;++b)d[b].remove(this);if((0,I.m)(g)){h&&(this._unsubscribe=void 0);try{g.call(this)}catch(b){u=b instanceof f?p(b.errors):[b]}}if((0,o.k)(x)){let b=-1,y=x.length;for(;++b<y;){const E=x[b];if((0,c.K)(E))try{E.unsubscribe()}catch(S){u=u||[],S instanceof f?u=u.concat(p(S.errors)):u.push(S)}}}if(u)throw new f(u)}add(u){let d=u;if(!u)return a.EMPTY;switch(typeof u){case"function":d=new a(u);case"object":if(d===this||d.closed||"function"!=typeof d.unsubscribe)return d;if(this.closed)return d.unsubscribe(),d;if(!(d instanceof a)){const x=d;d=new a,d._subscriptions=[x]}break;default:throw new Error("unrecognized teardown "+u+" added to Subscription.")}let{_parentOrParents:h}=d;if(null===h)d._parentOrParents=this;else if(h instanceof a){if(h===this)return d;d._parentOrParents=[h,this]}else{if(-1!==h.indexOf(this))return d;h.push(this)}const g=this._subscriptions;return null===g?this._subscriptions=[d]:g.push(d),d}remove(u){const d=this._subscriptions;if(d){const h=d.indexOf(u);-1!==h&&d.splice(h,1)}}}var s;function p(s){return s.reduce((u,d)=>u.concat(d instanceof f?d.errors:d),[])}a.EMPTY=((s=new a).closed=!0,s)},2494:(kn,he,l)=>{"use strict";l.d(he,{v:()=>c});let o=!1;const c={Promise:void 0,set useDeprecatedSynchronousErrorHandling(I){if(I){const C=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+C.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=I},get useDeprecatedSynchronousErrorHandling(){return o}}},5345:(kn,he,l)=>{"use strict";l.d(he,{Ds:()=>a,IY:()=>C,ft:()=>s});var o=l(7393),c=l(882),I=l(9846);class C extends o.L{constructor(d){super(),this.parent=d}_next(d){this.parent.notifyNext(d)}_error(d){this.parent.notifyError(d),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends o.L{notifyNext(d){this.destination.next(d)}notifyError(d){this.destination.error(d)}notifyComplete(){this.destination.complete()}}function s(u,d){if(d.closed)return;if(u instanceof c.y)return u.subscribe(d);let h;try{h=(0,I.s)(u)(d)}catch(g){d.error(g)}return h}},2441:(kn,he,l)=>{"use strict";l.d(he,{N:()=>a,c:()=>f});var o=l(5775),c=l(882),I=l(3464),C=l(1307);class f extends c.y{constructor(h,g){super(),this.source=h,this.subjectFactory=g,this._refCount=0,this._isComplete=!1}_subscribe(h){return this.getSubject().subscribe(h)}getSubject(){const h=this._subject;return(!h||h.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let h=this._connection;return h||(this._isComplete=!1,h=this._connection=new I.w,h.add(this.source.subscribe(new p(this.getSubject(),this))),h.closed&&(this._connection=null,h=I.w.EMPTY)),h}refCount(){return(0,C.x)()(this)}}const a=(()=>{const d=f.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:d._subscribe},_isComplete:{value:d._isComplete,writable:!0},getSubject:{value:d.getSubject},connect:{value:d.connect},refCount:{value:d.refCount}}})();class p extends o.Yc{constructor(h,g){super(h),this.connectable=g}_error(h){this._unsubscribe(),super._error(h)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const h=this.connectable;if(h){this.connectable=null;const g=h._connection;h._refCount=0,h._subject=null,h._connection=null,g&&g.unsubscribe()}}}},9193:(kn,he,l)=>{"use strict";l.d(he,{E:()=>c,c:()=>I});var o=l(882);const c=new o.y(f=>f.complete());function I(f){return f?function C(f){return new o.y(a=>f.schedule(()=>a.complete()))}(f):c}},6666:(kn,he,l)=>{"use strict";l.d(he,{D:()=>y});var o=l(882),c=l(9846),I=l(3464),C=l(6554),p=l(4087),s=l(377),h=l(4072),g=l(9489);function y(E,S){return S?function b(E,S){if(null!=E){if(function d(E){return E&&"function"==typeof E[C.L]}(E))return function f(E,S){return new o.y(O=>{const w=new I.w;return w.add(S.schedule(()=>{const T=E[C.L]();w.add(T.subscribe({next(k){w.add(S.schedule(()=>O.next(k)))},error(k){w.add(S.schedule(()=>O.error(k)))},complete(){w.add(S.schedule(()=>O.complete()))}}))})),w})}(E,S);if((0,h.t)(E))return function a(E,S){return new o.y(O=>{const w=new I.w;return w.add(S.schedule(()=>E.then(T=>{w.add(S.schedule(()=>{O.next(T),w.add(S.schedule(()=>O.complete()))}))},T=>{w.add(S.schedule(()=>O.error(T)))}))),w})}(E,S);if((0,g.z)(E))return(0,p.r)(E,S);if(function x(E){return E&&"function"==typeof E[s.hZ]}(E)||"string"==typeof E)return function u(E,S){if(!E)throw new Error("Iterable cannot be null");return new o.y(O=>{const w=new I.w;let T;return w.add(()=>{T&&"function"==typeof T.return&&T.return()}),w.add(S.schedule(()=>{T=E[s.hZ](),w.add(S.schedule(function(){if(O.closed)return;let k,R;try{const P=T.next();k=P.value,R=P.done}catch(P){return void O.error(P)}R?O.complete():(O.next(k),this.schedule())}))})),w})}(E,S)}throw new TypeError((null!==E&&typeof E||E)+" is not observable")}(E,S):E instanceof o.y?E:new o.y((0,c.s)(E))}},6693:(kn,he,l)=>{"use strict";l.d(he,{n:()=>C});var o=l(882),c=l(5015),I=l(4087);function C(f,a){return a?(0,I.r)(f,a):new o.y((0,c.V)(f))}},6608:(kn,he,l)=>{"use strict";l.d(he,{F:()=>h});var o=l(882),c=l(3464);class I extends c.w{constructor(b,y){super()}schedule(b,y=0){return this}}let f=(()=>{class x{constructor(y,E=x.now){this.SchedulerAction=y,this.now=E}schedule(y,E=0,S){return new this.SchedulerAction(this,y).schedule(S,E)}}return x.now=()=>Date.now(),x})();class a extends f{constructor(b,y=f.now){super(b,()=>a.delegate&&a.delegate!==this?a.delegate.now():y()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(b,y=0,E){return a.delegate&&a.delegate!==this?a.delegate.schedule(b,y,E):super.schedule(b,y,E)}flush(b){const{actions:y}=this;if(this.active)return void y.push(b);let E;this.active=!0;do{if(E=b.execute(b.state,b.delay))break}while(b=y.shift());if(this.active=!1,E){for(;b=y.shift();)b.unsubscribe();throw E}}}const s=new a(class C extends I{constructor(b,y){super(b,y),this.scheduler=b,this.work=y,this.pending=!1}schedule(b,y=0){if(this.closed)return this;this.state=b;const E=this.id,S=this.scheduler;return null!=E&&(this.id=this.recycleAsyncId(S,E,y)),this.pending=!0,this.delay=y,this.id=this.id||this.requestAsyncId(S,this.id,y),this}requestAsyncId(b,y,E=0){return setInterval(b.flush.bind(b,this),E)}recycleAsyncId(b,y,E=0){if(null!==E&&this.delay===E&&!1===this.pending)return y;clearInterval(y)}execute(b,y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const E=this._execute(b,y);if(E)return E;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(b,y){let S,E=!1;try{this.work(b)}catch(O){E=!0,S=!!O&&O||new Error(O)}if(E)return this.unsubscribe(),S}_unsubscribe(){const b=this.id,y=this.scheduler,E=y.actions,S=E.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==S&&E.splice(S,1),null!=b&&(this.id=this.recycleAsyncId(y,b,null)),this.delay=null}});var u=l(9796);function h(x=0,b=s){return(!function d(x){return!(0,u.k)(x)&&x-parseFloat(x)+1>=0}(x)||x<0)&&(x=0),(!b||"function"!=typeof b.schedule)&&(b=s),new o.y(y=>(y.add(b.schedule(g,x,{subscriber:y,counter:0,period:x})),y))}function g(x){const{subscriber:b,counter:y,period:E}=x;b.next(y),this.schedule({subscriber:b,counter:y+1,period:E},E)}},5917:(kn,he,l)=>{"use strict";l.d(he,{of:()=>C});var o=l(4869),c=l(6693),I=l(4087);function C(...f){let a=f[f.length-1];return(0,o.K)(a)?(f.pop(),(0,I.r)(f,a)):(0,c.n)(f)}},4612:(kn,he,l)=>{"use strict";l.d(he,{b:()=>c});var o=l(9773);function c(I,C){return(0,o.zg)(I,C,1)}},5435:(kn,he,l)=>{"use strict";l.d(he,{h:()=>c});var o=l(7393);function c(f,a){return function(s){return s.lift(new I(f,a))}}class I{constructor(a,p){this.predicate=a,this.thisArg=p}call(a,p){return p.subscribe(new C(a,this.predicate,this.thisArg))}}class C extends o.L{constructor(a,p,s){super(a),this.predicate=p,this.thisArg=s,this.count=0}_next(a){let p;try{p=this.predicate.call(this.thisArg,a,this.count++)}catch(s){return void this.destination.error(s)}p&&this.destination.next(a)}}},8002:(kn,he,l)=>{"use strict";l.d(he,{U:()=>c});var o=l(7393);function c(f,a){return function(s){if("function"!=typeof f)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return s.lift(new I(f,a))}}class I{constructor(a,p){this.project=a,this.thisArg=p}call(a,p){return p.subscribe(new C(a,this.project,this.thisArg))}}class C extends o.L{constructor(a,p,s){super(a),this.project=p,this.count=0,this.thisArg=s||this}_next(a){let p;try{p=this.project.call(this.thisArg,a,this.count++)}catch(s){return void this.destination.error(s)}this.destination.next(p)}}},3282:(kn,he,l)=>{"use strict";l.d(he,{J:()=>I});var o=l(9773),c=l(4487);function I(C=Number.POSITIVE_INFINITY){return(0,o.zg)(c.y,C)}},9773:(kn,he,l)=>{"use strict";l.d(he,{zg:()=>C});var o=l(8002),c=l(6666),I=l(5345);function C(s,u,d=Number.POSITIVE_INFINITY){return"function"==typeof u?h=>h.pipe(C((g,x)=>(0,c.D)(s(g,x)).pipe((0,o.U)((b,y)=>u(g,b,x,y))),d)):("number"==typeof u&&(d=u),h=>h.lift(new f(s,d)))}class f{constructor(u,d=Number.POSITIVE_INFINITY){this.project=u,this.concurrent=d}call(u,d){return d.subscribe(new a(u,this.project,this.concurrent))}}class a extends I.Ds{constructor(u,d,h=Number.POSITIVE_INFINITY){super(u),this.project=d,this.concurrent=h,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(u){this.active<this.concurrent?this._tryNext(u):this.buffer.push(u)}_tryNext(u){let d;const h=this.index++;try{d=this.project(u,h)}catch(g){return void this.destination.error(g)}this.active++,this._innerSub(d)}_innerSub(u){const d=new I.IY(this),h=this.destination;h.add(d);const g=(0,I.ft)(u,d);g!==d&&h.add(g)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(u){this.destination.next(u)}notifyComplete(){const u=this.buffer;this.active--,u.length>0?this._next(u.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:(kn,he,l)=>{"use strict";l.d(he,{x:()=>c});var o=l(7393);function c(){return function(a){return a.lift(new I(a))}}class I{constructor(a){this.connectable=a}call(a,p){const{connectable:s}=this;s._refCount++;const u=new C(a,s),d=p.subscribe(u);return u.closed||(u.connection=s.connect()),d}}class C extends o.L{constructor(a,p){super(a),this.connectable=p}_unsubscribe(){const{connectable:a}=this;if(!a)return void(this.connection=null);this.connectable=null;const p=a._refCount;if(p<=0)return void(this.connection=null);if(a._refCount=p-1,p>1)return void(this.connection=null);const{connection:s}=this,u=a._connection;this.connection=null,u&&(!s||u===s)&&u.unsubscribe()}}},5257:(kn,he,l)=>{"use strict";l.d(he,{q:()=>C});var o=l(7393),c=l(7108),I=l(9193);function C(p){return s=>0===p?(0,I.c)():s.lift(new f(p))}class f{constructor(s){if(this.total=s,this.total<0)throw new c.W}call(s,u){return u.subscribe(new a(s,this.total))}}class a extends o.L{constructor(s,u){super(s),this.total=u,this.count=0}_next(s){const u=this.total,d=++this.count;d<=u&&(this.destination.next(s),d===u&&(this.destination.complete(),this.unsubscribe()))}}},4087:(kn,he,l)=>{"use strict";l.d(he,{r:()=>I});var o=l(882),c=l(3464);function I(C,f){return new o.y(a=>{const p=new c.w;let s=0;return p.add(f.schedule(function(){s!==C.length?(a.next(C[s++]),a.closed||p.add(this.schedule())):a.complete()})),p})}},377:(kn,he,l)=>{"use strict";l.d(he,{hZ:()=>c});const c=function o(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},6554:(kn,he,l)=>{"use strict";l.d(he,{L:()=>o});const o="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:(kn,he,l)=>{"use strict";l.d(he,{b:()=>o});const o="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:(kn,he,l)=>{"use strict";l.d(he,{W:()=>c});const c=(()=>{function I(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return I.prototype=Object.create(Error.prototype),I})()},7971:(kn,he,l)=>{"use strict";l.d(he,{N:()=>c});const c=(()=>{function I(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return I.prototype=Object.create(Error.prototype),I})()},4449:(kn,he,l)=>{"use strict";function o(c){setTimeout(()=>{throw c},0)}l.d(he,{z:()=>o})},4487:(kn,he,l)=>{"use strict";function o(c){return c}l.d(he,{y:()=>o})},9796:(kn,he,l)=>{"use strict";l.d(he,{k:()=>o});const o=Array.isArray||(c=>c&&"number"==typeof c.length)},9489:(kn,he,l)=>{"use strict";l.d(he,{z:()=>o});const o=c=>c&&"number"==typeof c.length&&"function"!=typeof c},9105:(kn,he,l)=>{"use strict";function o(c){return"function"==typeof c}l.d(he,{m:()=>o})},1555:(kn,he,l)=>{"use strict";function o(c){return null!==c&&"object"==typeof c}l.d(he,{K:()=>o})},4072:(kn,he,l)=>{"use strict";function o(c){return!!c&&"function"!=typeof c.subscribe&&"function"==typeof c.then}l.d(he,{t:()=>o})},4869:(kn,he,l)=>{"use strict";function o(c){return c&&"function"==typeof c.schedule}l.d(he,{K:()=>o})},4022:(kn,he,l)=>{"use strict";l.d(he,{U:()=>I,z:()=>c});var o=l(4487);function c(...C){return I(C)}function I(C){return 0===C.length?o.y:1===C.length?C[0]:function(a){return C.reduce((p,s)=>s(p),a)}}},9846:(kn,he,l)=>{"use strict";l.d(he,{s:()=>h});var o=l(5015),c=l(4449),C=l(377),a=l(6554),s=l(9489),u=l(4072),d=l(1555);const h=g=>{if(g&&"function"==typeof g[a.L])return(g=>x=>{const b=g[a.L]();if("function"!=typeof b.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return b.subscribe(x)})(g);if((0,s.z)(g))return(0,o.V)(g);if((0,u.t)(g))return(g=>x=>(g.then(b=>{x.closed||(x.next(b),x.complete())},b=>x.error(b)).then(null,c.z),x))(g);if(g&&"function"==typeof g[C.hZ])return(g=>x=>{const b=g[C.hZ]();for(;;){let y;try{y=b.next()}catch(E){return x.error(E),x}if(y.done){x.complete();break}if(x.next(y.value),x.closed)break}return"function"==typeof b.return&&x.add(()=>{b.return&&b.return()}),x})(g);{const b=`You provided ${(0,d.K)(g)?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(b)}}},5015:(kn,he,l)=>{"use strict";l.d(he,{V:()=>o});const o=c=>I=>{for(let C=0,f=c.length;C<f&&!I.closed;C++)I.next(c[C]);I.complete()}},2874:(kn,he,l)=>{"use strict";l.d(he,{f:()=>c});var o=l(8143);class c extends o.U{constructor(C,f){super("chatDb-"+f+"-"+C),this.version(1).stores({chatRooms:"id, synchStartedOn, synchCompletedOn",chatMessages:"id, parentId, synchStartedOn, synchCompletedOn",synchTable:"id, synchStartedOn, synchCompletedOn"})}}},7906:(kn,he,l)=>{"use strict";l.d(he,{I:()=>o});var o=(()=>{return(c=o||(o={}))[c.Web=0]="Web",c[c.Android=1]="Android",c[c.iOS=2]="iOS",o;var c})()},9451:(kn,he,l)=>{"use strict";l.d(he,{d:()=>x});var o=l(6492),c=l(820),I=l(5775),C=l(2874),f=l(3885),a=l(4749),p=l(1922),s=l(4370),u=l(5732),d=l(7128),h=l(7046),g=l(4474);class x{constructor(y,E,S,O,w,T,k){this.chatRoomService=y,this.propertyConverter=E,this.scopeService=S,this.http=O,this.chatRelayService=w,this.authenticationService=T,this.keepAliveService=k,this.firstRun=!0,this.cacheUpdatedSource=new I.xQ,this.cacheUpdated$=this.cacheUpdatedSource.asObservable(),this.subscriptions=[],this.fetchingRoomsDataPromise=null,this.fetchingCacheDataPromise=null,this.scope=this.scopeService.getScope(),this.database=new C.f(this.scope.currentScope.chapter.id,this.scope.network.id);var R=new Date;this.registerSubscriptions(R),x.instanceCount++}getArrayStore(){return null!=this.store?(this.isCorrupted().then(y=>{y&&this.rebuildCacheAndGetArrayStore(this,"Corrupt on init")}),this.cacheUpdatedSource.next(this.store),new Promise((y,E)=>{y(this.store)})):this.database.chatRooms.count().then(y=>{if(y>0)return this.isCorrupted().then(S=>{S&&this.rebuildCacheAndGetArrayStore(this,"Corrupt on crc check")}),this.database.chatRooms.toArray().then(S=>{var O=S.map(w=>JSON.parse(w.jsonValue));return this.store=new c.Z({key:"id",data:O,onLoaded:w=>this.propertyConverter.convert(w)}),this.cacheUpdatedSource.next(this.store),this.store});{let S=`${this.scope.apiEndpoint}chatRoomsFast/GetChatRoomList`;var E=new Date;return this.http.get(S).toPromise().then(O=>{let w=[];return O.value.map(T=>w.push({value:T,id:T.id.valueOf(),synchStartedOn:E,synchCompletedOn:new Date,jsonValue:JSON.stringify(T)})),w.forEach(T=>{T.value.id=T.value.id.toString()}),w}).then(O=>this.database.chatRooms.bulkAdd(O).then(w=>{var T=O.map(k=>JSON.parse(k.jsonValue));return this.store=new c.Z({key:"id",data:T,onLoaded:k=>this.propertyConverter.convert(k)}),this.cacheUpdatedSource.next(this.store),this.store}))}})}registerSubscriptions(y){this.subscriptions.push(this.authenticationService.isAuthenticated$.subscribe(E=>{E&&this.firstRun?(this.firstRun=!1,this.rebuildCacheAndGetArrayStore(this,"authenticationService.isAuthenticated$ auth & this.firstRun").then(S=>console.log("resolved rebuildCacheAndGetArrayStore()",S))):this.isCorrupted().then(S=>{S&&this.rebuildCacheAndGetArrayStore(this,"authenticationService.isAuthenticated$ not auth & this.firstRun but corrupt")})})),this.subscriptions.push(this.keepAliveService.isResumed$.subscribe(E=>{E&&this.isCorrupted().then(S=>{S&&this.rebuildCacheAndGetArrayStore(this.keepAliveService,"resume").then()})})),this.subscriptions.push(this.chatRelayService.roomDeleted$.subscribe(E=>{this.store.push([{type:"remove",key:E.id}]),this.database.chatRooms.delete(E.id).then(S=>{console.log("Room deleted")}),this.database.chatMessages.where("parentId").equals(E.id).delete()}),this.chatRelayService.roomCreated$.subscribe(E=>{this.store.byKey(new o.Z(E.id)).then(S=>{S||(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(S=>{this.propertyConverter.convert(S),this.store.load().then(O=>{try{O.any(w=>w?.id.toString()==S?.id.toString())?(this.store.push([{type:"update",data:S,key:S.id}]),this.database.chatRooms.update(E.roomId,{value:S,id:S.id.valueOf(),synchStartedOn:y,synchCompletedOn:new Date,jsonValue:JSON.stringify(S)})):(this.store.push([{type:"insert",data:S}]),this.database.chatRooms.add({value:S,id:S.id.valueOf(),synchStartedOn:y,synchCompletedOn:new Date,jsonValue:JSON.stringify(S)},E.roomId))}catch{console.error("Error on msg receive",E,S,O,this)}})})}catch(S){console.error("cRoomCache msg received error",E,S,this),this.rebuildCacheAndGetArrayStore(this,"chatRelayService.msgReceived$ error updating local stores")}}),this.chatRelayService.msgUpdated$.subscribe(E=>{try{this.chatRoomService.getRoom(E.roomId).subscribe(S=>{this.store.push([{type:"update",data:S,key:E.roomId}]),this.database.chatRooms.update(E.roomId,{value:S,id:S.id.valueOf(),synchStartedOn:y,synchCompletedOn:new Date,jsonValue:JSON.stringify(S)})})}catch(S){console.error(this,S),this.isCorrupted().then(O=>{O&&this.rebuildCacheAndGetArrayStore(this,"chatRelayService.msgUpdated$ error abd corrupt local store")})}}),this.chatRelayService.msgDeleted$.subscribe(E=>{this.chatRoomService.getRoom(E.roomId).subscribe(S=>{this.store.push([{type:"update",data:S,key:E.roomId}]),this.database.chatRooms.update(E.roomId,{value:S,id:S.id.valueOf(),synchStartedOn:y,synchCompletedOn:new Date,jsonValue:JSON.stringify(S)})})}))}rebuildCacheAndGetArrayStore(y,E=null){console.log("Rebuild cache called from",y,E);let S=`${this.scope.apiEndpoint}chatRoomsFast/GetChatRoomList`;var O=new Date;return this.fetchingCacheDataPromise||(this.fetchingCacheDataPromise=this.http.get(S).toPromise().then(w=>{let T=[];return w.value.map(k=>T.push({value:k,id:k.id.valueOf(),synchStartedOn:O,synchCompletedOn:new Date,jsonValue:JSON.stringify(k)})),T.forEach(k=>{k.value.id=k.value.id.toString()}),T}).then(w=>this.authenticationService.expireToken(this).then(T=>this.database.chatRooms.clear().then(k=>this.database.chatRooms.bulkAdd(w).then(R=>{var P=w.map(B=>JSON.parse(B.jsonValue));return this.store=new c.Z({key:"id",data:P,onLoaded:B=>this.propertyConverter.convert(B)}),this.cacheUpdatedSource.next(this.store),this.fetchingCacheDataPromise=null,this.store}))))),this.fetchingCacheDataPromise}isCorrupted(){return this.fetchingRoomsDataPromise||(this.fetchingRoomsDataPromise=this.http.get(`${this.scope.apiEndpoint}chatRoomsFast/GetChatRoomList`).toPromise().then(E=>{let S=E.value.length;return this.getArrayStore().then(O=>O.load().then(w=>{this.fetchingRoomsDataPromise=null;let T=new Set(E.value.select(W=>W.lastMessage?.id?.valueOf()??"")),R=new Set(w.select(W=>W.lastMessage?.id?.valueOf()??"")).except(T).any();return w.length!=S||R}))})),this.fetchingRoomsDataPromise}dropBackendCache(y){return this.http.get(this.scopeService.getScope().apiEndpoint+"chatMessagesFast/IsMyMembershipActive/"+y.toString()).toPromise().then(E=>(E&&console.log("Cache eviction call"),E))}}x.instanceCount=0,x.\u0275fac=function(y){return new(y||x)(s.LFG(f.Z),s.LFG(a.Z),s.LFG(p.Z),s.LFG(u.eN),s.LFG(d.L),s.LFG(h.D),s.LFG(g.g))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})},4962:(kn,he,l)=>{"use strict";l.d(he,{u:()=>au});var Ie,Ce,ve,Se,Me,Ve,Ge,Et,jt,Cn,o=l(6492),c=l(820),I=l(1828),C=l(7572),f=l(5031),a=l(5873),p=l(2718),s=l(9800),u=l(7674),d=l(4270),h=l(6051),g=l(2701),x=l(9589),b=/^(\{{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})$/,y=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,E=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,S="application/json;odata=verbose",O=Ie=>"string"===(0,I.dt)(Ie)?Ie.split():Ie,w=Ie=>/\./.test(Ie),T=(Ie,Ce,ve)=>{for(Ie=String(Ie);Ie.length<Ce;)Ie=ve?"".concat(Ie,"0"):"0".concat(Ie);return Ie},k=(Ie,Ce,ve)=>{var Se=[],Me=Ve=>T(Ve,2);return Se.push(Ie.getFullYear()),Se.push("-"),Se.push(Me(Ie.getMonth()+1)),Se.push("-"),Se.push(Me(Ie.getDate())),Ce&&Ie.getHours()+Ie.getMinutes()+Ie.getSeconds()+Ie.getMilliseconds()<1||(Se.push("T"),Se.push(Me(Ie.getHours())),Se.push(":"),Se.push(Me(Ie.getMinutes())),Se.push(":"),Se.push(Me(Ie.getSeconds())),Ie.getMilliseconds()&&(Se.push("."),Se.push(T(Ie.getMilliseconds(),3))),ve||Se.push("Z")),Se.join("")},R=Ie=>{var Ce=new Date(60*new Date(0).getTimezoneOffset()*1e3),ve=Ie.replace("Z","").split("T"),Se=/(\d{4})-(\d{2})-(\d{2})/.exec(ve[0]),Me=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(ve[1]);if(Ce.setFullYear(Number(Se[1])),Ce.setMonth(Number(Se[2])-1),Ce.setDate(Number(Se[3])),Array.isArray(Me)&&Me.length){Ce.setHours(Number(Me[1])),Ce.setMinutes(Number(Me[2])),Ce.setSeconds(Number(Me[3]));var Ve=(Me[4]||"").slice(0,3);Ve=T(Ve,3,!0),Ce.setMilliseconds(Number(Ve))}return Ce},N=Ie=>{var Ce=[];for(var ve in Ie)Ce.push(ve+"="+Ie[ve]);return Ce.join("&")},U=(Ie,Ce,ve)=>{var{deserializeDates:Se,fieldTypes:Me,countOnly:Ve,isPaged:Ge}=ve,Et=new d.BH,kt=function(Ie,Ce){var ve,Se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Me=ao=>JSON.stringify(ao,function(Io,es){if(!(this[Io]instanceof Date))return es;switch(es=k(this[Io]),Ie){case 2:return es.substr(0,es.length-1);case 3:case 4:return es;default:throw h.R0.Error("E4002")}});Ce=(0,a.l)({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},Ce),null===(ve=Se.beforeSend)||void 0===ve||ve.call(Se,Ce);var{async:Ve,timeout:Ge,headers:Et}=Ce,{url:kt,method:jt}=Ce,{jsonp:Cn,withCredentials:hi}=Se,xi="get"===(jt=(jt||"get").toLowerCase()),Wi=xi&&Cn,qi=(0,a.l)({},Ce.params),ur=xi?qi:Me(Ce.payload),br=!xi&&N(qi),eo=!xi&&S;return br&&(kt+=(kt.indexOf("?")>-1?"&":"?")+br),Wi&&(ur.$format="json"),{url:kt,data:ur,dataType:Wi?"jsonp":"json",jsonp:Wi&&"$callback",method:jt,async:Ve,timeout:Ge,headers:Et,contentType:eo,accepts:{json:[S,"text/plain"].join()},xhrFields:{withCredentials:hi}}}(Ie,Ce,ve);return s.Z.sendRequest(kt).always((jt,Cn)=>{var xi=J(jt,Cn,{deserializeDates:Se,fieldTypes:Me},kt),{error:Wi,data:qi,count:ur}=xi,{nextUrl:br}=xi;if(Wi)Wi.message!==g.C5&&Et.reject(Wi);else if(Ve)isFinite(ur)?Et.resolve(ur):Et.reject(new h.R0.Error("E4018"));else if(br&&!Ge)(Ie=>/^(?:[a-z]+:)?\/{2,2}/i.test(Ie))(br)||(br=((Ie,Ce)=>{var ve,Se=(Ie=>{var Ce=Ie.indexOf("?");return Ce>-1?Ie.substr(0,Ce):Ie})(Ie).split("/"),Me=Ce.split("/");for(Se.pop();Me.length;)".."===(ve=Me.shift())?Se.pop():Se.push(ve);return Se.join("/")})(kt.url,br)),U(Ie,{url:br},ve).fail(Et.reject).done(ao=>Et.resolve(qi.concat(ao)));else{var eo=isFinite(ur)?{totalCount:ur}:void 0;Et.resolve(qi,eo)}}),Et.promise()},J=(Ie,Ce,ve,Se)=>{var Me=((Ie,Ce,ve)=>{var Se,Me,Ve,Ge;if("nocontent"===Ce)return null;var Et="Unknown error",kt=Ie,jt=200,Cn={requestOptions:ve};if("success"!==Ce){var{status:hi,responseText:xi}=Ie;jt=hi,Et=(0,g.ER)(Ie,Ce);try{kt=JSON.parse(xi)}catch{}}var Wi=(null===(Se=kt)||void 0===Se?void 0:Se.then)||(null===(Me=kt)||void 0===Me?void 0:Me.error)||(null===(Ve=kt)||void 0===Ve?void 0:Ve["odata.error"])||(null===(Ge=kt)||void 0===Ge?void 0:Ge["@odata.error"]);if(Wi){Et=(Ie=>{var Ce,Me,Se=Ie;"message"in Ie&&(Ce=(null===(Me=Ie.message)||void 0===Me?void 0:Me.value)||Ie.message);for(;Se=Se.innererror||Se.internalexception;){var Ve;if(Ce=null!==(Ve=Se.message)&&void 0!==Ve?Ve:Ce,Se.internalexception&&-1===Ce.indexOf("inner exception"))break}return Ce})(Wi)||Et,Cn.errorDetails=Wi,200===jt&&(jt=500);var qi=Number(Wi.code);isFinite(qi)&&qi>=400&&(jt=qi)}return jt>=400||0===jt?(Cn.httpStatus=jt,(0,a.l)(Error(Et),Cn)):null})(Ie,Ce,Se);if(Me)return{error:Me};if(!(0,I.PO)(Ie))return{data:Ie};var Ve="d"in Ie&&(Array.isArray(Ie.d)||(0,I.Kn)(Ie.d))?j(Ie):ee(Ie);return q(Ve,ve),Ve},j=Ie=>{var Ce,{d:ve}=Ie;return(0,I.$K)(ve)?{data:null!==(Ce=ve.results)&&void 0!==Ce?Ce:ve,nextUrl:ve.__next,count:parseInt(ve.__count,10)}:{error:Error("Malformed or unsupported JSON response received")}},ee=Ie=>{var Ce;return{data:null!==(Ce=Ie.value)&&void 0!==Ce?Ce:Ie,nextUrl:Ie["@odata.nextLink"],count:parseInt(Ie["@odata.count"],10)}},G=f.Z.inherit({ctor(Ie){this._value=Ie},valueOf(){return this._value}}),q=function Ie(Ce){var ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,p.S6)(Ce,(Se,Me)=>{if(null!==Me&&"object"==typeof Me)"results"in Me&&(Ce[Se]=Me.results),Ie(Ce[Se],ve);else if("string"==typeof Me){var{fieldTypes:Ve,deserializeDates:Ge}=ve;if((!Ve||"String"!==Ve[Se])&&b.test(Me)&&(Ce[Se]=new o.Z(Me)),!1!==Ge)if(Me.match(y)){var kt=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);Ce[Se]=new Date(kt.valueOf()+60*kt.getTimezoneOffset()*1e3)}else E.test(Me)&&(Ce[Se]=new Date(R(Ce[Se]).valueOf()))}})},M=Ie=>Ie instanceof G?Ie.valueOf():Ie.replace(/\./g,"/"),se=Ie=>Ie instanceof Date?k(Ie,!1,!1):Ie instanceof o.Z?Ie.valueOf():Array.isArray(Ie)?"[".concat(Ie.map(Ce=>se(Ce)).join(","),"]"):ge(Ie),ge=Ie=>Ie instanceof Date?(Ie=>"datetime'".concat(k(Ie,!0,!0),"'"))(Ie):Ie instanceof o.Z?"guid'".concat(Ie,"'"):Ie instanceof G?Ie.valueOf():"string"==typeof Ie?(Ie=>"'".concat(Ie.replace(/'/g,"''"),"'"))(Ie):String(Ie),De=(Ie,Ce)=>{switch(Ce){case 2:case 3:return ge(Ie);case 4:return se(Ie);default:throw h.R0.Error("E4002")}},Ae={String:Ie=>"".concat(Ie),Int32:Ie=>Math.floor(Ie),Int64:Ie=>Ie instanceof G?Ie:new G("".concat(Ie,"L")),Guid:Ie=>Ie instanceof o.Z?Ie:new o.Z(Ie),Boolean:Ie=>!!Ie,Single:Ie=>Ie instanceof G?Ie:new G(Ie+"f"),Decimal:Ie=>Ie instanceof G?Ie:new G(Ie+"m")},ne=(Ie,Ce)=>{if(null===Ce)return null;var ve=Ae[Ie];if(!ve)throw h.R0.Error("E4014",Ie);return ve(Ce)},fe=(Ie,Ce)=>{if(Ce)return Ie<4?M(Ce.join()):(0,u.h3)(Ce,w,!0).join()},_e=Ie=>{var Ce="",ve=[],Se=[];return(0,p.S6)(Ie,(Me,Ve)=>{Array.isArray(Ve)&&[].push.apply(ve,Ve),(0,I.PO)(Ve)&&Se.push("".concat(Me).concat(_e(Ve)))}),(ve.length||Se.length)&&(Ce+="(",ve.length&&(Ce+="$select=".concat((0,p.UI)(ve,M).join())),Se.length&&(ve.length&&(Ce+=";"),Ce+="$expand=".concat((0,p.UI)(Se,M).join())),Ce+=")"),Ce},de=(Ie,Ce,ve)=>{var Se=ve(Ce,Ie.shift(),Ie);!1!==Se&&de(Ie,Se,ve)},le=(Ie,Ce,ve)=>(0,p.S6)(Ie,(Se,Me)=>de(Me.split("."),Ce,ve)),pe=(Ie,Ce)=>{var ve={};return Ie&&(0,p.S6)(O(Ie),function(){ve[M(this)]=1}),Ce&&(0,p.S6)(O(Ce),function(){var Se=this.split(".");Se.length<2||(Se.pop(),ve[M(Se.join("."))]=1)}),(0,p.UI)(ve,(Se,Me)=>Me).join()},ae=(Ie,Ce,ve)=>Ie<4?pe(Ce,ve):((Ie,Ce)=>{var ve={};if(Ie||Ce)return Ie&&le(O(Ie),ve,(Se,Me,Ve)=>(Se[Me]=Se[Me]||{},!!Ve.length&&Se[Me])),Ce&&le((0,u.h3)(O(Ce),w),ve,(Se,Me,Ve)=>Ve.length?Se[Me]=Se[Me]||{}:(Se[Me]=Se[Me]||[],Se[Me].push(Me),!1)),(Ie=>{var Ce=[];return(0,p.S6)(Ie,(ve,Se)=>Ce.push("".concat(ve).concat(_e(Se)))),Ce.join()})(ve)})(Ce,ve),oe=l(7316),ye=l(1937),Pe=l(1035),ft=["contains","notcontains","startswith","endswith"],tt=(Me=(hi,xi)=>(Wi,qi)=>{var ur=[hi,"("];return Ce&&(Wi=-1===Wi.indexOf("tolower(")?"tolower(".concat(Wi,")"):Wi,qi=qi.toLowerCase()),xi?ur.push(qi,",",Wi):ur.push(Wi,",",qi),ur.push(")"),ur.join("")},Ve={"=":(Se=hi=>(xi,Wi)=>"".concat(xi," ").concat(hi," ").concat(Wi))("eq"),"<>":Se("ne"),">":Se("gt"),">=":Se("ge"),"<":Se("lt"),"<=":Se("le"),startswith:Me("startswith"),endswith:Me("endswith")},Ge=(0,a.l)({},Ve,{contains:Me("substringof",!0),notcontains:Me("not substringof",!0)}),Et=(0,a.l)({},Ve,{contains:Me("contains"),notcontains:Me("not contains")}),jt=hi=>{var Wi,qi,xi=[];return(0,p.S6)(hi,function(ur,br){if(Array.isArray(br)){if(xi.length>1&&Wi!==qi)throw new h.R0.Error("E4019");xi.push("(".concat(Cn(br),")")),Wi=qi,qi="and"}else qi=(0,g.Lq)(this)?"and":"or"}),xi.join(" ".concat(Wi," "))},Cn=hi=>Array.isArray(hi[0])?jt(hi):(0,g.hi)(hi)?(xi=>{var Wi=xi[0],qi=Cn(xi[1]);if("!"===Wi)return"not (".concat(qi,")");throw h.R0.Error("E4003",Wi)})(hi):(hi=>{var xi,Wi=(hi=(0,g.DE)(hi))[1],qi=hi[0],ur=ve&&ve[qi];if(ur&&(br=Wi,ft.some(es=>es===br))&&"String"!==ur)throw new h.R0.Error("E4024",Wi,qi,ur);var br,ao=(4===Ie?Et:Ge)[Wi.toLowerCase()];if(!ao)throw h.R0.Error("E4003",Wi);var Io=hi[2];return null!==(xi=ve)&&void 0!==xi&&xi[qi]&&(Io=ne(ve[qi],Io)),ao(M(qi),De(Io,Ie))})(hi),(hi,xi,Wi,qi)=>(ve=Wi,Ce=qi??(0,C.Z)().oDataFilterToLower,Ie=xi,Cn(hi)));Pe.Z.odata=Ie=>{var Me,Ve,Ge,Et,Ce=[],ve=[],Se=Ie.expand,kt=Ie.version||2,jt=()=>Ve||void 0!==Ge,Cn=xi=>{for(var Wi=0;Wi<xi.length;Wi++)if((0,I.mf)(xi[Wi])||Array.isArray(xi[Wi])&&Cn(xi[Wi]))return!0;return!1},hi=()=>{var xi={};if(Et||(Ce.length&&(xi.$orderby=Ce.join(",")),Ve&&(xi.$skip=Ve),void 0!==Ge&&(xi.$top=Ge),xi.$select=fe(kt,Me)||void 0,xi.$expand=ae(kt,Se,Me)||void 0),ve.length){var qi=Ie?.fieldTypes,ur=Ie?.filterToLower;xi.$filter=tt(ve.length<2?ve[0]:ve,kt,qi,ur)}return Et&&(xi.$top=0),(Ie.requireTotalCount||Et)&&(4!==kt?xi.$inlinecount="allpages":xi.$count="true"),xi};return{optimize:xi=>{for(var Wi=-1,qi=0;qi<xi.length;qi++)if("select"===xi[qi].name){Wi=qi;break}if(!(Wi<0)&&(0,I.mf)(xi[Wi].args[0])){var ur=xi[1+Wi];!ur||"slice"!==ur.name||(xi[1+Wi]=xi[Wi],xi[Wi]=ur)}},exec:xi=>U(kt,{url:xi,params:(0,a.l)(hi(),Ie?.params)},{beforeSend:Ie.beforeSend,jsonp:Ie.jsonp,withCredentials:Ie.withCredentials,countOnly:Et,deserializeDates:Ie.deserializeDates,fieldTypes:Ie.fieldTypes,isPaged:isFinite(Ge)}),multiSort(xi){var Wi;if(jt())return!1;for(var qi=0;qi<xi.length;qi++){var ur=xi[qi][0],br=!!xi[qi][1],eo=void 0;if("string"!=typeof ur)return!1;eo=M(ur),br&&(eo+=" desc"),(Wi=Wi||[]).push(eo)}Ce=Wi},slice(xi,Wi){if(jt())return!1;Ve=xi,Ge=Wi},filter(xi){if(jt()||(Array.isArray(xi)||(xi=[].slice.call(arguments)),Cn(xi)))return!1;ve.length&&ve.push("and"),ve.push(xi)},select(xi){if(Me||(0,I.mf)(xi))return!1;Array.isArray(xi)||(xi=[].slice.call(arguments)),Me=xi},count:()=>Et=!0}};class ke{constructor(Ce){Ce=Ce||{},this._url=String(Ce.url).replace(/\/+$/,""),this._beforeSend=Ce.beforeSend,this._jsonp=Ce.jsonp,this._version=Ce.version||2,this._withCredentials=Ce.withCredentials,this._deserializeDates=Ce.deserializeDates,this._filterToLower=Ce.filterToLower}sendRequest(Ce,ve,Se,Me){return U(this.version,{url:Ce,method:ve,params:Se||{},payload:Me},{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 Te=ye.Z.inherit({ctor(Ie){this.callBase(Ie),this._requestDispatcher=new ke(Ie);var Ce=this.key(),ve=Ie.fieldTypes,Se=Ie.keyType;if(Se){var Me="string"==typeof Se;Ce||(Ce=Me?"5d46402c-7899-4ea9-bd81-8b73c47c7683":Object.keys(Se),this._legacyAnonymousKey=Ce),Me&&(Se=((Ie,Ce)=>({[Ie]:Ce}))(Ce,Se)),ve=((Ie,Ce)=>{var ve={};for(var Se in Ie)ve[Se]=Ie[Se];for(var Me in Ce)Me in ve?ve[Me]!==Ce[Me]&&h.R0.log("W4001",Me):ve[Me]=Ce[Me];return ve})(ve,Se)}this._fieldTypes=ve||{},this._updateMethod=2===this.version()?"MERGE":"PATCH"},_customLoadOptions:()=>["expand","customQueryParams"],_byKeyImpl(Ie,Ce){var ve={};return Ce&&(ve.$expand=ae(this.version(),Ce.expand,Ce.select)||void 0,ve.$select=fe(this.version(),Ce.select)||void 0),this._requestDispatcher.sendRequest(this._byKeyUrl(Ie),"GET",ve)},createQuery(Ie){var Ce,ve,Se={adapter:"odata",beforeSend:this._requestDispatcher.beforeSend,errorHandler:this._errorHandler,jsonp:this._requestDispatcher.jsonp,version:this._requestDispatcher.version,withCredentials:this._requestDispatcher._withCredentials,expand:Ie?.expand,requireTotalCount:Ie?.requireTotalCount,deserializeDates:this._requestDispatcher._deserializeDates,fieldTypes:this._fieldTypes};if(ve=null!==(Ce=Ie?.urlOverride)&&void 0!==Ce?Ce:this._requestDispatcher.url,(0,I.$K)(this._requestDispatcher.filterToLower)&&(Se.filterToLower=this._requestDispatcher.filterToLower),null!=Ie&&Ie.customQueryParams){var Me=((Ie,Ce)=>{if(!Ie)return Ie;var ve={};return(0,p.S6)(Ie,(Se,Me)=>{ve[Se]=De(Me,Ce)}),ve})(Ie?.customQueryParams,this.version());4===this.version()?ve=((Ie,Ce)=>(0,x.WU)("{0}({1})",Ie,(0,p.UI)(Ce||{},(ve,Se)=>(0,x.WU)("{0}={1}",Se,ve)).join(",")))(ve,Me):Se.params=Me}return(0,oe.Z)(ve,Se)},_insertImpl(Ie){this._requireKey();var Ce=new d.BH;return(0,d.gx)(this._requestDispatcher.sendRequest(this._requestDispatcher.url,"POST",null,Ie)).done(ve=>Ce.resolve(ve&&!(0,C.Z)().useLegacyStoreResult?ve:Ie,this.keyOf(ve))).fail(Ce.reject),Ce.promise()},_updateImpl(Ie,Ce){var ve=new d.BH;return(0,d.gx)(this._requestDispatcher.sendRequest(this._byKeyUrl(Ie),this._updateMethod,null,Ce)).done(Se=>(0,C.Z)().useLegacyStoreResult?ve.resolve(Ie,Ce):ve.resolve(Se||Ce,Ie)).fail(ve.reject),ve.promise()},_removeImpl(Ie){var Ce=new d.BH;return(0,d.gx)(this._requestDispatcher.sendRequest(this._byKeyUrl(Ie),"DELETE")).done(()=>Ce.resolve(Ie)).fail(Ce.reject),Ce.promise()},_convertKey(Ie){var Ce=Ie,ve=this._fieldTypes,Se=this.key()||this._legacyAnonymousKey;if(Array.isArray(Se)){Ce={};for(var Me=0;Me<Se.length;Me++){var Ve=Se[Me];Ce[Ve]=ne(ve[Ve],Ie[Ve])}}else ve[Se]&&(Ce=ne(ve[Se],Ie));return Ce},_byKeyUrl(Ie){var Ce=this._requestDispatcher.url,ve=this._convertKey(Ie);return"".concat(Ce,"(").concat(encodeURIComponent(((Ie,Ce)=>{if((0,I.PO)(Ie)){var ve=[];return(0,p.S6)(Ie,(Se,Me)=>ve.push("".concat(M(Se),"=").concat(De(Me,Ce)))),ve.join()}return De(Ie,Ce)})(ve,this.version())),")")},version(){return this._requestDispatcher.version}},"odata");const Ye=Te;class St extends RangeError{constructor(Ce){super(`${Ce} was out of range. Must be non-negative and less than the size of the collection.`),this.paramName=Ce,this.name="ArgumentOutOfRangeException",this.stack=this.stack||(new Error).stack}}const Ct=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 Rt extends Error{constructor(Ce){super(Ce),this.name="InvalidOperationException",this.stack=this.stack||(new Error).stack}}const fn=(Ie,Ce)=>Ie===Ce;class ct extends Array{}class He{constructor(Ce){this.iterator=Ce}[Symbol.asyncIterator](){return this.iterator()}}function Dt(Ie,Ce){this.v=Ie,this.k=Ce}function qe(Ie){return new Dt(Ie,0)}function Ht(Ie){var Ce,ve;function Se(Ve,Ge){try{var Et=Ie[Ve](Ge),kt=Et.value,jt=kt instanceof Dt;Promise.resolve(jt?kt.v:kt).then(function(Cn){if(jt){var hi="return"===Ve?"return":"next";if(!kt.k||Cn.done)return Se(hi,Cn);Cn=Ie[hi](Cn).value}Me(Et.done?"return":"normal",Cn)},function(Cn){Se("throw",Cn)})}catch(Cn){Me("throw",Cn)}}function Me(Ve,Ge){switch(Ve){case"return":Ce.resolve({value:Ge,done:!0});break;case"throw":Ce.reject(Ge);break;default:Ce.resolve({value:Ge,done:!1})}(Ce=Ce.next)?Se(Ce.key,Ce.arg):ve=null}this._invoke=function(Ve,Ge){return new Promise(function(Et,kt){var jt={key:Ve,arg:Ge,resolve:Et,reject:kt,next:null};ve?ve=ve.next=jt:(Ce=ve=jt,Se(Ve,Ge))})},"function"!=typeof Ie.return&&(this.return=void 0)}function dt(Ie){return function(){return new Ht(Ie.apply(this,arguments))}}Ht.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Ht.prototype.next=function(Ie){return this._invoke("next",Ie)},Ht.prototype.throw=function(Ie){return this._invoke("throw",Ie)},Ht.prototype.return=function(Ie){return this._invoke("return",Ie)};class ht{constructor(Ce){this.dataFunc=Ce}[Symbol.asyncIterator](){const{dataFunc:Ce}=this;function Se(){return Se=dt(function*(){if(1===Ce.type)for(const Me of Ce.generator())yield Me;else for(const Me of yield qe(Ce.generator()))yield Me}),Se.apply(this,arguments)}return function ve(){return Se.apply(this,arguments)}()}}class yt{constructor(Ce){this.iterator=Ce}[Symbol.iterator](){return this.iterator()}}const Ft=Ie=>{var Ce;const ve=ct.prototype,Se=Ie.prototype,Me=Object.getOwnPropertyNames(ve);for(const Ve of Me)Se[Ve]=null!==(Ce=Se[Ve])&&void 0!==Ce?Ce:ve[Ve]},_n=(Ie,Ce,ve,Se)=>{if(Se){if(!ve)throw new ReferenceError("TAccumulate function is undefined");return li(Ie,Ce,ve,Se)}return ve?Jn(Ie,Ce,ve):xn(Ie,Ce)},xn=(Ie,Ce)=>{let ve;for(const Se of Ie)ve=ve?Ce(ve,Se):Se;if(void 0===ve)throw new Rt(Ct.NoElements);return ve},Jn=(Ie,Ce,ve)=>{let Se=Ce;for(const Me of Ie)Se=ve(Se,Me);return Se},li=(Ie,Ce,ve,Se)=>{let Me=Ce;for(const Ve of Ie)Me=ve(Me,Ve);return Se(Me)},Ai=(Ie,Ce)=>{for(const ve of Ie)if(!1===Ce(ve))return!1;return!0};var Vn=l(8239);const Oi=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){for(const Se of Ce)if(!1===(yield ve(Se)))return!1;return!0});return function(ve,Se){return Ie.apply(this,arguments)}}(),Hn=(Ie,Ce)=>Ce?An(Ie,Ce):Sn(Ie),Sn=Ie=>{for(const Ce of Ie)return!0;return!1},An=(Ie,Ce)=>{for(const ve of Ie)if(!0===Ce(ve))return!0;return!1},ti=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){for(const Se of Ce)if(!0===(yield ve(Se)))return!0;return!1});return function(ve,Se){return Ie.apply(this,arguments)}}();function Wn(Ie){var Ce,ve,Se,Me=2;for(typeof Symbol<"u"&&(ve=Symbol.asyncIterator,Se=Symbol.iterator);Me--;){if(ve&&null!=(Ce=Ie[ve]))return Ce.call(Ie);if(Se&&null!=(Ce=Ie[Se]))return new Yi(Ce.call(Ie));ve="@@asyncIterator",Se="@@iterator"}throw new TypeError("Object is not async iterable")}function Yi(Ie){function Ce(ve){if(Object(ve)!==ve)return Promise.reject(new TypeError(ve+" is not an object."));var Se=ve.done;return Promise.resolve(ve.value).then(function(Me){return{value:Me,done:Se}})}return Yi=function(Se){this.s=Se,this.n=Se.next},Yi.prototype={s:null,n:null,next:function(){return Ce(this.n.apply(this.s,arguments))},return:function(Se){var Me=this.s.return;return void 0===Me?Promise.resolve({value:Se,done:!0}):Ce(Me.apply(this.s,arguments))},throw:function(Se){var Me=this.s.return;return void 0===Me?Promise.reject(Se):Ce(Me.apply(this.s,arguments))}},new Yi(Ie)}const On=Ie=>{if(Array.isArray(Ie)){if(0===Ie.length)throw new Rt(Ct.NoElements);return new He(dt(function*(){var Se,Ce=!1,ve=!1;try{for(var Ve,Me=Wn(Ie);Ce=!(Ve=yield qe(Me.next())).done;Ce=!1)yield Ve.value}catch(Ge){ve=!0,Se=Ge}finally{try{Ce&&null!=Me.return&&(yield qe(Me.return()))}finally{if(ve)throw Se}}}))}return new He(Ie)},ei=Ie=>{function ve(){return ve=dt(function*(){for(const Se of Ie)yield Se}),ve.apply(this,arguments)}return On(function Ce(){return ve.apply(this,arguments)})},ni=(Ie,Ce)=>new ht({generator:Ce,type:Ie}),di=Ie=>ni(0,function(){var ve=(0,Vn.Z)(function*(){const Se=[];for(const Me of Ie)Se.push(Me);return Se});return function(){return ve.apply(this,arguments)}}()),Hi=(Ie,Ce)=>{let ve=0,Se=0;if(Ce)for(const Me of Ie)ve+=Ce(Me),Se+=1;else for(const Me of Ie)ve+=Me,Se+=1;if(0===Se)throw new Rt(Ct.NoElements);return ve/Se},$i=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=0,Me=0;for(const Ve of Ce)Se+=(yield ve(Ve)),Me+=1;if(0===Me)throw new Rt(Ct.NoElements);return Se/Me});return function(ve,Se){return Ie.apply(this,arguments)}}(),Qi=(Ie,Ce)=>{if(Ce<1)throw new St("index");return new yt(function*ve(){let Se=[];for(const Me of Ie)Se.push(Me),Se.length===Ce&&(yield Se,Se=[]);Se.length&&(yield Se)})},_r=(Ie,Ce)=>new yt(function*ve(){yield*Ie,yield*Ce}),yn=(Ie,Ce,ve=fn)=>{for(const Se of Ie)if(ve(Ce,Se))return!0;return!1},Rn=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se){for(const Me of Ce)if(yield Se(ve,Me))return!0;return!1});return function(ve,Se,Me){return Ie.apply(this,arguments)}}(),ci=(Ie,Ce)=>Ce?ji(Ie,Ce):Si(Ie),Si=Ie=>{let Ce=0;for(const ve of Ie)Ce++;return Ce},ji=(Ie,Ce)=>{let ve=0;for(const Se of Ie)!0===Ce(Se)&&ve++;return ve},lr=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=0;for(const Me of Ce)!0===(yield ve(Me))&&Se++;return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Dr=(Ie,Ce)=>new yt(function*ve(){let Se=!1;for(const Me of Ie)Se=!0,yield Me;Se||(yield Ce)}),kr=(Ie,Ce=fn)=>new yt(function*ve(){const Se=[];for(const Me of Ie)Se.find(Ge=>Ce(Ge,Me))||(Se.push(Me),yield Me)}),zr=(Ie,Ce)=>{function Se(){return Se=dt(function*(){const Me=[];e:for(const Ve of Ie){for(const Ge of Me)if(yield qe(Ce(Ge,Ve)))continue e;Me.push(Ve),yield Ve}}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},Gr=(Ie,Ce)=>new yt(function*ve(){for(const Se of Ie)Ce(Se),yield Se}),xr=(Ie,Ce)=>{function Se(){return Se=dt(function*(){for(const Me of Ie)yield qe(Ce(Me)),yield Me}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},Vr=(Ie,Ce)=>{if(Ce<0)throw new St("index");let ve=0;for(const Se of Ie)if(Ce===ve++)return Se;throw new St("index")},Nr=(Ie,Ce)=>{let ve=0;for(const Se of Ie)if(Ce===ve++)return Se;return null},Tr=(Ie,Ce,ve=fn)=>new yt(function*Se(){const Me=[...Ce];for(const Ve of Ie){let Ge=!1;for(let Et=0;Et<Me.length;Et++)if(!0===ve(Ve,Me[Et])){Ge=!0;break}!1===Ge&&(yield Ve)}}),so=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=[...Ce];for(const Ge of Ie){let Et=!1;for(let kt=0;kt<Ve.length;kt++){const jt=Ve[kt];if(!0===(yield qe(ve(Ge,jt)))){Et=!0;break}}!1===Et&&(yield Ge)}}),Me.apply(this,arguments)}return On(function Se(){return Me.apply(this,arguments)})},Er=(Ie,Ce)=>Ce?fi(Ie,Ce):oo(Ie),oo=Ie=>{const Ce=Ie[Symbol.iterator]().next();if(!0===Ce.done)throw new Rt(Ct.NoElements);return Ce.value},fi=(Ie,Ce)=>{for(const ve of Ie)if(!0===Ce(ve))return ve;throw new Rt(Ct.NoMatch)},ir=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){for(const Se of Ce)if(!0===(yield ve(Se)))return Se;throw new Rt(Ct.NoMatch)});return function(ve,Se){return Ie.apply(this,arguments)}}(),Kr=(Ie,Ce)=>Ce?uo(Ie,Ce):to(Ie),to=Ie=>Ie[Symbol.iterator]().next().value||null,uo=(Ie,Ce)=>{for(const ve of Ie)if(!0===Ce(ve))return ve;return null},po=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){for(const Se of Ce)if(!0===(yield ve(Se)))return Se;return null});return function(ve,Se){return Ie.apply(this,arguments)}}();class At extends ct{constructor(Ce,ve){super(1),this.key=Ce,this[0]=ve}}const dn=(Ie,Ce,ve)=>{let Se;return Se=ve?((Ie,Ce,ve)=>function*(){const Me=new Array;for(const Ve of Ie){const Ge=Ce(Ve);let Et=!1;for(let kt=0;kt<Me.length;kt++){const jt=Me[kt];if(ve(jt.key,Ge)){jt.push(Ve),Et=!0;break}}!1===Et&&Me.push(new At(Ge,Ve))}for(const Ve of Me)yield Ve})(Ie,Ce,ve):((Ie,Ce)=>function*(){const Se={};for(const Me of Ie){const Ve=Ce(Me),Ge=Se[Ve];Ge?Ge.push(Me):Se[Ve]=new At(Ve,Me)}for(const Me in Se)yield Se[Me]})(Ie,Ce),new yt(Se)},In=(Ie,Ce,ve)=>ve?gi(Ie,Ce,ve):Zn(Ie,Ce),Zn=(Ie,Ce)=>{function Se(){return Se=dt(function*(){const Me={};for(const Ve of Ie){const Ge=yield qe(Ce(Ve)),Et=Me[Ge];Et?Et.push(Ve):Me[Ge]=new At(Ge,Ve)}for(const Ve in Me)yield Me[Ve]}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},gi=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=new Array;for(const Ge of Ie){const Et=yield qe(Ce(Ge));let kt=!1;for(let jt=0;jt<Ve.length;jt++){const Cn=Ve[jt];if(!0===(yield qe(ve(Cn.key,Et)))){Cn.push(Ge),kt=!0;break}}!1===kt&&Ve.push(new At(Et,Ge))}for(const Ge of Ve)yield Ge}),Me.apply(this,arguments)}return On(function Se(){return Me.apply(this,arguments)})},Ri=(Ie,Ce,ve,Se)=>Se?((Ie,Ce,ve,Se)=>new yt(function*Me(){const Ve=new Array;for(const Ge of Ie){const Et=Ce(Ge);let kt=!1;for(let jt=0;jt<Ve.length;jt++){const Cn=Ve[jt];if(Se(Cn.key,Et)){Cn.push(ve(Ge)),kt=!0;break}}if(!1===kt){const jt=ve(Ge);Ve.push(new At(Et,jt))}}for(const Ge of Ve)yield Ge}))(Ie,Ce,ve,Se):((Ie,Ce,ve)=>new yt(function*Se(){const Me={};for(const Ve of Ie){const Ge=Ce(Ve),Et=Me[Ge],kt=ve(Ve);Et?Et.push(kt):Me[Ge]=new At(Ge,kt)}for(const Ve in Me)yield Me[Ve]}))(Ie,Ce,ve),or=(Ie,Ce,ve,Se,Me,Ve)=>{const Ge=Ve?cr(Ie,Ce,ve,Se,Me,Ve):en(Ie,Ce,ve,Se,Me);return new yt(Ge)},cr=(Ie,Ce,ve,Se,Me,Ve)=>function*(){var Ge;const Et=[];for(const kt of Ce){const jt=Se(kt),Cn=Et.find(hi=>Ve(hi.key,jt));Cn?Cn.values.push(kt):Et.push({key:jt,values:[kt]})}for(const kt of Ie){const jt=ve(kt),Cn=null!==(Ge=Et.find(hi=>Ve(hi.key,jt)))&&void 0!==Ge?Ge:{key:jt,values:[]};yield Me(kt,Cn.values)}},en=(Ie,Ce,ve,Se,Me)=>function*(){var Ve;const Ge=new Map;for(const Et of Ce){const kt=Se(Et),jt=Ge.get(kt);jt?jt.push(Et):Ge.set(kt,[Et])}for(const Et of Ie){const kt=ve(Et),jt=null!==(Ve=Ge.get(kt))&&void 0!==Ve?Ve:[];yield Me(Et,jt)}},vn=(Ie,Ce,ve,Se,Me,Ve)=>{const Ge=Ve?Ze(Ie,Ce,ve,Se,Me,Ve):bt(Ie,Ce,ve,Se,Me);return On(Ge)},Ze=(Ie,Ce,ve,Se,Me,Ve)=>dt(function*(){var Ge;const Et=[];for(const kt of Ce){const jt=yield qe(Se(kt)),Cn=Et.find(hi=>Ve(hi.key,jt));Cn?Cn.values.push(kt):Et.push({key:jt,values:[kt]})}for(const kt of Ie){const jt=yield qe(ve(kt)),Cn=null!==(Ge=Et.find(hi=>Ve(hi.key,jt)))&&void 0!==Ge?Ge:{key:jt,values:[]};yield Me(kt,Cn.values)}}),bt=(Ie,Ce,ve,Se,Me)=>dt(function*(){var Ve;const Ge=new Map;for(const Et of Ce){const kt=yield qe(Se(Et)),jt=Ge.get(kt);jt?jt.push(Et):Ge.set(kt,[Et])}for(const Et of Ie){const kt=yield qe(ve(Et)),jt=null!==(Ve=Ge.get(kt))&&void 0!==Ve?Ve:[];yield Me(Et,jt)}}),_t=(Ie,Ce,ve=fn)=>new yt(function*Se(){const Me=[...Ie.distinct(ve)];if(0===Me.length)return;const Ve=[...Ce];for(let Ge=0;Ge<Me.length;Ge++){const Et=Me[Ge];for(let kt=0;kt<Ve.length;kt++)if(!0===ve(Et,Ve[kt])){yield Et;break}}}),Wt=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=[];var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ie.distinctAsync(ve));Ge=!(Cn=yield qe(jt.next())).done;Ge=!1)Ve.push(Cn.value)}catch(xi){Et=!0,kt=xi}finally{try{Ge&&null!=jt.return&&(yield qe(jt.return()))}finally{if(Et)throw kt}}if(0===Ve.length)return;const hi=[...Ce];for(let xi=0;xi<Ve.length;xi++){const Wi=Ve[xi];for(let qi=0;qi<hi.length;qi++){const ur=hi[qi];if(!0===(yield qe(ve(Wi,ur)))){yield Wi;break}}}}),Me.apply(this,arguments)}return On(function Se(){return Me.apply(this,arguments)})},Ot=(Ie,Ce,ve,Se,Me,Ve=fn)=>new yt(function*Ge(){const Et=[...Ce];for(const kt of Ie){const jt=ve(kt);for(const Cn of Et){const hi=Se(Cn);!0===Ve(jt,hi)&&(yield Me(kt,Cn))}}}),qt=(Ie,Ce)=>Ce?Ke(Ie,Ce):mn(Ie),mn=Ie=>{let Ce;for(const ve of Ie)Ce=ve;if(!Ce)throw new Rt(Ct.NoElements);return Ce},Ke=(Ie,Ce)=>{let ve;for(const Se of Ie)!0===Ce(Se)&&(ve=Se);if(!ve)throw new Rt(Ct.NoMatch);return ve},pt=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se;for(const Me of Ce)!0===(yield ve(Me))&&(Se=Me);if(!Se)throw new Rt(Ct.NoMatch);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),an=(Ie,Ce)=>Ce?sn(Ie,Ce):hn(Ie),hn=Ie=>{let Ce=null;for(const ve of Ie)Ce=ve;return Ce},sn=(Ie,Ce)=>{let ve=null;for(const Se of Ie)!0===Ce(Se)&&(ve=Se);return ve},Nn=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=null;for(const Me of Ce)!0===(yield ve(Me))&&(Se=Me);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Yn=(Ie,Ce)=>Ce?Vt(Ie,Ce):st(Ie),st=Ie=>{let Ce=null;for(const ve of Ie)Ce=Math.max(Ce||Number.NEGATIVE_INFINITY,ve);if(null===Ce)throw new Rt(Ct.NoElements);return Ce},Vt=(Ie,Ce)=>{let ve=null;for(const Se of Ie)ve=Math.max(ve||Number.NEGATIVE_INFINITY,Ce(Se));if(null===ve)throw new Rt(Ct.NoElements);return ve},rn=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=null;for(const Me of Ce)Se=Math.max(Se||Number.NEGATIVE_INFINITY,yield ve(Me));if(null===Se)throw new Rt(Ct.NoElements);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Dn=(Ie,Ce)=>Ce?Bt(Ie,Ce):rt(Ie),rt=Ie=>{let Ce=null;for(const ve of Ie)Ce=Math.min(Ce||Number.POSITIVE_INFINITY,ve);if(null===Ce)throw new Rt(Ct.NoElements);return Ce},Bt=(Ie,Ce)=>{let ve=null;for(const Se of Ie)ve=Math.min(ve||Number.POSITIVE_INFINITY,Ce(Se));if(null===ve)throw new Rt(Ct.NoElements);return ve},gt=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=null;for(const Me of Ce)Se=Math.min(Se||Number.POSITIVE_INFINITY,yield ve(Me));if(null===Se)throw new Rt(Ct.NoElements);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),$t=(Ie,Ce)=>{const ve="string"==typeof Ce?Me=>typeof Me===Ce:Me=>Me instanceof Ce;return new yt(function*Se(){for(const Me of Ie)ve(Me)&&(yield Me)})};function Un(Ie){var Ce={},ve=!1;function Se(Me,Ve){return ve=!0,Ve=new Promise(function(Ge){Ge(Ie[Me](Ve))}),{done:!1,value:new Dt(Ve,1)}}return Ce[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},Ce.next=function(Me){return ve?(ve=!1,Me):Se("next",Me)},"function"==typeof Ie.throw&&(Ce.throw=function(Me){if(ve)throw ve=!1,Me;return Se("throw",Me)}),"function"==typeof Ie.return&&(Ce.return=function(Me){return ve?(ve=!1,Me):Se("return",Me)}),Ce}const ai=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=new Map;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;{const Cn=yield ve(jt),hi=Se.get(Cn);hi?hi.push(jt):Se.set(Cn,[jt])}}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}();function Ii(){return Ii=dt(function*(Ie,Ce,ve,Se){const Me=yield qe(ai(Ie,Ce)),Ve=[...Me.keys()].sort(Se||void 0);if(ve)for(let Ge=0;Ge<Ve.length;Ge++)yield Me.get(Ve[Ge]);else for(let Ge=Ve.length-1;Ge>=0;Ge--)yield Me.get(Ve[Ge])}),Ii.apply(this,arguments)}const zi=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=new Map;for(const Me of Ce){const Ve=yield ve(Me),Ge=Se.get(Ve);Ge?Ge.push(Me):Se.set(Ve,[Me])}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}();function Ki(Ie,Ce,ve,Se){return Xi.apply(this,arguments)}function Xi(){return Xi=dt(function*(Ie,Ce,ve,Se){const Me=yield qe(zi(Ie,Ce)),Ve=[...Me.keys()].sort(Se||void 0);if(ve)for(let Ge=0;Ge<Ve.length;Ge++)yield Me.get(Ve[Ge]);else for(let Ge=Ve.length-1;Ge>=0;Ge--)yield Me.get(Ve[Ge])}),Xi.apply(this,arguments)}const wr=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=new Map;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;{const Cn=ve(jt),hi=Se.get(Cn);hi?hi.push(jt):Se.set(Cn,[jt])}}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}();function Jr(){return Jr=dt(function*(Ie,Ce,ve,Se){const Me=yield qe(wr(Ie,Ce)),Ve=[...Me.keys()].sort(Se||void 0);if(ve)for(let Ge=0;Ge<Ve.length;Ge++)yield Me.get(Ve[Ge]);else for(let Ge=Ve.length-1;Ge>=0;Ge--)yield Me.get(Ve[Ge])}),Jr.apply(this,arguments)}function*ko(Ie,Ce,ve,Se){const Me=((Ie,Ce)=>{const ve=new Map;for(const Se of Ie){const Me=Ce(Se),Ve=ve.get(Me);Ve?Ve.push(Se):ve.set(Me,[Se])}return ve})(Ie,Ce),Ve=[...Me.keys()].sort(Se||void 0);if(ve)for(let Ge=0;Ge<Ve.length;Ge++)yield Me.get(Ve[Ge]);else for(let Ge=Ve.length-1;Ge>=0;Ge--)yield Me.get(Ve[Ge])}class no extends He{constructor(Ce){super(dt(function*(){var Me,ve=!1,Se=!1;try{for(var Ge,Ve=Wn(Ce());ve=!(Ge=yield qe(Ve.next())).done;ve=!1){const Et=Ge.value;yield*Un(Wn(Et))}}catch(Et){Se=!0,Me=Et}finally{try{ve&&null!=Ve.return&&(yield qe(Ve.return()))}finally{if(Se)throw Me}}})),this.orderedPairs=Ce}static generateAsync(Ce,ve,Se,Me){let Ve;return Ve=Ce instanceof no?function(){var Ge=dt(function*(){var jt,Et=!1,kt=!1;try{for(var hi,Cn=Wn(Ce.orderedPairs());Et=!(hi=yield qe(Cn.next())).done;Et=!1){const xi=hi.value;yield*Un(Wn(Ki(xi,ve,Se,Me)))}}catch(xi){kt=!0,jt=xi}finally{try{Et&&null!=Cn.return&&(yield qe(Cn.return()))}finally{if(kt)throw jt}}});return function(){return Ge.apply(this,arguments)}}():()=>function Ci(Ie,Ce,ve,Se){return Ii.apply(this,arguments)}(Ce,ve,Se,Me),new no(Ve)}static generate(Ce,ve,Se,Me){let Ve;return Ve=Ce instanceof no?function(){var Ge=dt(function*(){var jt,Et=!1,kt=!1;try{for(var hi,Cn=Wn(Ce.orderedPairs());Et=!(hi=yield qe(Cn.next())).done;Et=!1){const xi=hi.value;yield*Un(Wn(ko(xi,ve,Se,Me)))}}catch(xi){kt=!0,jt=xi}finally{try{Et&&null!=Cn.return&&(yield qe(Cn.return()))}finally{if(kt)throw jt}}});return function(){return Ge.apply(this,arguments)}}():()=>function vr(Ie,Ce,ve,Se){return Jr.apply(this,arguments)}(Ce,ve,Se,Me),new no(Ve)}thenBy(Ce,ve){return no.generate(this,Ce,!0,ve)}thenByAsync(Ce,ve){return no.generateAsync(this,Ce,!0,ve)}thenByDescending(Ce,ve){return no.generate(this,Ce,!1,ve)}thenByDescendingAsync(Ce,ve){return no.generateAsync(this,Ce,!1,ve)}}function*ua(Ie,Ce,ve,Se){const Me=((Ie,Ce)=>{const ve=new Map;for(const Se of Ie){const Me=Ce(Se),Ve=ve.get(Me);Ve?Ve.push(Se):ve.set(Me,[Se])}return ve})(Ie,Ce),Ve=[...Me.keys()].sort(Se||void 0);if(ve)for(let Ge=0;Ge<Ve.length;Ge++)yield Me.get(Ve[Ge]);else for(let Ge=Ve.length-1;Ge>=0;Ge--)yield Me.get(Ve[Ge])}const qo=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=new Map;for(const Me of Ce){const Ve=yield ve(Me),Ge=Se.get(Ve);Ge?Ge.push(Me):Se.set(Ve,[Me])}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}();function go(Ie,Ce,ve,Se){return Vo.apply(this,arguments)}function Vo(){return Vo=dt(function*(Ie,Ce,ve,Se){const Me=yield qe(qo(Ie,Ce)),Ve=[...Me.keys()].sort(Se||void 0);if(ve)for(let Ge=0;Ge<Ve.length;Ge++)yield Me.get(Ve[Ge]);else for(let Ge=Ve.length-1;Ge>=0;Ge--)yield Me.get(Ve[Ge])}),Vo.apply(this,arguments)}class So extends yt{constructor(Ce){super(function*(){for(const ve of Ce())yield*ve}),this.orderedPairs=Ce}static generate(Ce,ve,Se,Me){let Ve;return Ve=Ce instanceof So?function*(){for(const Ge of Ce.orderedPairs())yield*ua(Ge,ve,Se,Me)}:()=>ua(Ce,ve,Se,Me),new So(Ve)}static generateAsync(Ce,ve,Se,Me){let Ve;return Ve=Ce instanceof So?function(){var Ge=dt(function*(){for(const Et of Ce.orderedPairs())yield*Un(Wn(go(Et,ve,Se,Me)))});return function(){return Ge.apply(this,arguments)}}():()=>go(Ce,ve,Se,Me),new no(Ve)}thenBy(Ce,ve){return So.generate(this,Ce,!0,ve)}thenByAsync(Ce,ve){return So.generateAsync(this,Ce,!0,ve)}thenByDescending(Ce,ve){return So.generate(this,Ce,!1,ve)}thenByDescendingAsync(Ce,ve){return So.generateAsync(this,Ce,!1,ve)}}const ba=(Ie,Ce,ve)=>So.generate(Ie,Ce,!0,ve),Yr=(Ie,Ce,ve)=>So.generateAsync(Ie,Ce,!0,ve),Ho=(Ie,Ce,ve)=>So.generate(Ie,Ce,!1,ve),da=(Ie,Ce,ve)=>So.generateAsync(Ie,Ce,!1,ve),ja=(Ie,Ce)=>{const ve=[],Se=[];for(const Me of Ie)!0===Ce(Me)?Se.push(Me):ve.push(Me);return[Se,ve]},ea=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=[],Me=[];for(const Ve of Ce)!0===(yield ve(Ve))?Me.push(Ve):Se.push(Ve);return[Me,Se]});return function(ve,Se){return Ie.apply(this,arguments)}}(),us=Ie=>new yt(function*Ce(){const ve=[...Ie];for(let Se=ve.length-1;Se>=0;Se--)yield ve[Se]}),Ko=(Ie,Ce)=>{if("function"==typeof Ce){const{length:ve}=Ce;return 1===ve?ca(Ie,Ce):Sa(Ie,Ce)}return Go(Ie,Ce)},ca=(Ie,Ce)=>new yt(function*ve(){for(const Se of Ie)yield Ce(Se)}),Sa=(Ie,Ce)=>new yt(function*ve(){let Se=0;for(const Me of Ie)yield Ce(Me,Se),Se++}),Go=(Ie,Ce)=>new yt(function*ve(){for(const Se of Ie)yield Se[Ce]}),La=(Ie,Ce)=>"function"==typeof Ce?1===Ce.length?jo(Ie,Ce):ta(Ie,Ce):Oa(Ie,Ce),jo=(Ie,Ce)=>{function Se(){return Se=dt(function*(){for(const Me of Ie)yield Ce(Me)}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},ta=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0;for(const Ve of Ie)yield Ce(Ve,Me),Me++}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},Oa=(Ie,Ce)=>{function Se(){return Se=dt(function*(){for(const Me of Ie)yield Me[Ce]}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},ma=(Ie,Ce)=>"function"==typeof Ce?1===Ce.length?ha(Ie,Ce):$o(Ie,Ce):Da(Ie,Ce),ha=(Ie,Ce)=>new yt(function*ve(){for(const Se of Ie)for(const Me of Ce(Se))yield Me}),$o=(Ie,Ce)=>new yt(function*ve(){let Se=0;for(const Me of Ie){for(const Ve of Ce(Me,Se))yield Ve;Se++}}),Da=(Ie,Ce)=>new yt(function*ve(){for(const Se of Ie)for(const Me of Se[Ce])yield Me}),_a=(Ie,Ce)=>1===Ce.length?va(Ie,Ce):pa(Ie,Ce),va=(Ie,Ce)=>{function Se(){return Se=dt(function*(){for(const Me of Ie){const Ve=yield qe(Ce(Me));for(const Ge of Ve)yield Ge}}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},pa=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0;for(const Ve of Ie){const Ge=yield qe(Ce(Ve,Me));for(const Et of Ge)yield Et;Me++}}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},Qt=(Ie,Ce,ve=fn)=>{const Se=Ie[Symbol.iterator](),Me=Ce[Symbol.iterator]();let Ve=Se.next(),Ge=Me.next();for(;!Ve.done&&!Ge.done;){if(!ve(Ve.value,Ge.value))return!1;Ve=Se.next(),Ge=Me.next()}return!0===Ve.done&&!0===Ge.done},Kt=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se){const Me=Ce[Symbol.iterator](),Ve=ve[Symbol.iterator]();let Ge=Me.next(),Et=Ve.next();for(;!Ge.done&&!Et.done;){if(!1===(yield Se(Ge.value,Et.value)))return!1;Ge=Me.next(),Et=Ve.next()}return!0===Ge.done&&!0===Et.done});return function(ve,Se,Me){return Ie.apply(this,arguments)}}(),Pt=(Ie,Ce)=>Ce?Vi(Ie,Ce):Pn(Ie),Pn=Ie=>{let Ce=!1,ve=null;for(const Se of Ie){if(!0===Ce)throw new Rt(Ct.MoreThanOneElement);Ce=!0,ve=Se}if(!1===Ce)throw new Rt(Ct.NoElements);return ve},Vi=(Ie,Ce)=>{let ve=!1,Se=null;for(const Me of Ie)if(Ce(Me)){if(!0===ve)throw new Rt(Ct.MoreThanOneMatchingElement);ve=!0,Se=Me}if(!1===ve)throw new Rt(Ct.NoMatch);return Se},Wr=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=!1,Me=null;for(const Ve of Ce)if(yield ve(Ve)){if(!0===Se)throw new Rt(Ct.MoreThanOneMatchingElement);Se=!0,Me=Ve}if(!1===Se)throw new Rt(Ct.NoMatch);return Me});return function(ve,Se){return Ie.apply(this,arguments)}}(),fo=(Ie,Ce)=>Ce?ot(Ie,Ce):vt(Ie),vt=Ie=>{let Ce=!1,ve=null;for(const Se of Ie){if(!0===Ce)throw new Rt(Ct.MoreThanOneElement);Ce=!0,ve=Se}return ve},ot=(Ie,Ce)=>{let ve=!1,Se=null;for(const Me of Ie)if(Ce(Me)){if(!0===ve)throw new Rt(Ct.MoreThanOneMatchingElement);ve=!0,Se=Me}return Se},We=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=!1,Me=null;for(const Ve of Ce)if(yield ve(Ve)){if(!0===Se)throw new Rt(Ct.MoreThanOneElement);Se=!0,Me=Ve}return Me});return function(ve,Se){return Ie.apply(this,arguments)}}(),nt=(Ie,Ce)=>new yt(function*ve(){let Se=0;for(const Me of Ie)Se++>=Ce&&(yield Me)}),at=(Ie,Ce)=>1===Ce.length?Yt(Ie,Ce):gn(Ie,Ce),Yt=(Ie,Ce)=>new yt(function*ve(){let Se=!0;for(const Me of Ie)!1===Se?yield Me:!1===Ce(Me)&&(Se=!1,yield Me)}),gn=(Ie,Ce)=>new yt(function*ve(){let Se=0,Me=!0;for(const Ve of Ie)!1===Me?yield Ve:!1===Ce(Ve,Se)&&(Me=!1,yield Ve),Se++}),Gn=(Ie,Ce)=>1===Ce.length?Qn(Ie,Ce):Mi(Ie,Ce),Qn=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=!0;for(const Ve of Ie)!1===Me?yield Ve:!1===(yield qe(Ce(Ve)))&&(Me=!1,yield Ve)}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},Mi=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0,Ve=!0;for(const Ge of Ie)!1===Ve?yield Ge:!1===(yield qe(Ce(Ge,Me)))&&(Ve=!1,yield Ge),Me++}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},vi=(Ie,Ce)=>Ce?bi(Ie,Ce):Ei(Ie),Ei=Ie=>{let Ce=0;for(const ve of Ie)Ce+=ve;return Ce},bi=(Ie,Ce)=>{let ve=0;for(const Se of Ie)ve+=Ce(Se);return ve},tr=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=0;for(const Me of Ce)Se+=(yield ve(Me));return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),pr=(Ie,Ce)=>new yt(function*ve(){let Se=Ce>0?Ce:0;for(const Me of Ie){if(0==Se--)break;yield Me}}),sr=(Ie,Ce)=>1===Ce.length?fr(Ie,Ce):Gi(Ie,Ce),fr=(Ie,Ce)=>new yt(function*ve(){for(const Se of Ie){if(!Ce(Se))break;yield Se}}),Gi=(Ie,Ce)=>new yt(function*ve(){let Se=0;for(const Me of Ie){if(!Ce(Me,Se++))break;yield Me}}),er=(Ie,Ce)=>1===Ce.length?Ir(Ie,Ce):Lr(Ie,Ce),Ir=(Ie,Ce)=>{function Se(){return Se=dt(function*(){for(const Me of Ie){if(!(yield qe(Ce(Me))))break;yield Me}}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},Lr=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0;for(const Ve of Ie){if(!(yield qe(Ce(Ve,Me++))))break;yield Ve}}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},Sr=Ie=>[...Ie],Or=(Ie,Ce)=>{const ve=new Map;for(const Se of Ie){const Me=Ce(Se),Ve=ve.get(Me);void 0===Ve?ve.set(Me,[Se]):Ve.push(Se)}return ve},Rr=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=new Map;for(const Me of Ce){const Ve=yield ve(Me),Ge=Se.get(Ve);void 0===Ge?Se.set(Ve,[Me]):Ge.push(Me)}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Qr=(Ie,Ce)=>{const ve={};for(const Se of Ie)ve[Ce(Se)]=Se;return ve},Br=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se={};for(const Me of Ce)Se[yield ve(Me)]=Me;return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),To=Ie=>new Set(Ie),Ro=(Ie,Ce,ve)=>ve?ga(Ie,Ce,ve):na(Ie,Ce),na=(Ie,Ce)=>new yt(function*ve(){const Se=new Set;for(const Me of Ie)!1===Se.has(Me)&&(yield Me,Se.add(Me));for(const Me of Ce)!1===Se.has(Me)&&(yield Me,Se.add(Me))}),ga=(Ie,Ce,ve)=>new yt(function*Se(){const Me=[];for(const Ve of[Ie,Ce])for(const Ge of Ve){let Et=!1;for(const kt of Me)if(!0===ve(Ge,kt)){Et=!0;break}!1===Et&&(yield Ge,Me.push(Ge))}}),zo=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=[];for(const Ge of[Ie,Ce])for(const Et of Ge){let kt=!1;for(const jt of Ve)if(!0===(yield qe(ve(Et,jt)))){kt=!0;break}!1===kt&&(yield Et,Ve.push(Et))}}),Me.apply(this,arguments)}return On(function Se(){return Me.apply(this,arguments)})},oa=(Ie,Ce)=>1===Ce.length?Ta(Ie,Ce):Qo(Ie,Ce),Ta=(Ie,Ce)=>new yt(function*ve(){for(const Se of Ie)!0===Ce(Se)&&(yield Se)}),Qo=(Ie,Ce)=>new yt(function*ve(){let Se=0;for(const Me of Ie)!0===Ce(Me,Se++)&&(yield Me)}),Ia=(Ie,Ce)=>1===Ce.length?Ma(Ie,Ce):wa(Ie,Ce),Ma=(Ie,Ce)=>{function Se(){return Se=dt(function*(){for(const Me of Ie)!0===(yield qe(Ce(Me)))&&(yield Me)}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},wa=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0;for(const Ve of Ie)!0===(yield qe(Ce(Ve,Me++)))&&(yield Ve)}),Se.apply(this,arguments)}return On(function ve(){return Se.apply(this,arguments)})},Aa=(Ie,Ce,ve)=>ve?Ln(Ie,Ce,ve):Xl(Ie,Ce),Xl=(Ie,Ce)=>new yt(function*ve(){const Se=Ie[Symbol.iterator](),Me=Ce[Symbol.iterator]();for(;;){const Ve=Se.next(),Ge=Me.next();if(Ve.done||Ge.done)break;yield[Ve.value,Ge.value]}}),Ln=(Ie,Ce,ve)=>new yt(function*Se(){const Me=Ie[Symbol.iterator](),Ve=Ce[Symbol.iterator]();for(;;){const Ge=Me.next(),Et=Ve.next();if(Ge.done||Et.done)break;yield ve(Ge.value,Et.value)}}),Ut=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=Ie[Symbol.iterator](),Ge=Ce[Symbol.iterator]();for(;;){const Et=Ve.next(),kt=Ge.next();if(Et.done||kt.done)break;yield ve(Et.value,kt.value)}}),Me.apply(this,arguments)}return On(function Se(){return Me.apply(this,arguments)})},Zt=Ie=>{const Ce=Ie.prototype,ve=(Se,Me)=>{const Ve=function(...Ge){return Se(this,...Ge)};Object.defineProperty(Ve,"length",{value:Se.length-1}),Ce[Me]=Ve};ve(_n,"aggregate"),ve(Ai,"all"),ve(Oi,"allAsync"),ve(Hn,"any"),ve(ti,"anyAsync"),ve(ei,"asAsync"),ve(di,"asParallel"),ve(Hi,"average"),ve($i,"averageAsync"),ve(Qi,"chunk"),ve(_r,"concatenate"),ve(yn,"contains"),ve(Rn,"containsAsync"),ve(ci,"count"),ve(lr,"countAsync"),ve(Dr,"defaultIfEmpty"),ve(kr,"distinct"),ve(zr,"distinctAsync"),ve(Gr,"each"),ve(xr,"eachAsync"),ve(Vr,"elementAt"),ve(Nr,"elementAtOrDefault"),ve(Tr,"except"),ve(so,"exceptAsync"),ve(Er,"first"),ve(ir,"firstAsync"),ve(Kr,"firstOrDefault"),ve(po,"firstOrDefaultAsync"),ve(dn,"groupBy"),ve(In,"groupByAsync"),ve(Ri,"groupByWithSel"),ve(or,"groupJoin"),ve(vn,"groupJoinAsync"),ve(_t,"intersect"),ve(Wt,"intersectAsync"),ve(Ot,"joinByKey"),ve(qt,"last"),ve(pt,"lastAsync"),ve(an,"lastOrDefault"),ve(Nn,"lastOrDefaultAsync"),ve(Yn,"max"),ve(rn,"maxAsync"),ve(Dn,"min"),ve(gt,"minAsync"),ve($t,"ofType"),ve(ba,"orderBy"),ve(Yr,"orderByAsync"),ve(Ho,"orderByDescending"),ve(da,"orderByDescendingAsync"),ve(us,"reverse"),ve(Ko,"select"),ve(La,"selectAsync"),ve(ma,"selectMany"),ve(_a,"selectManyAsync"),ve(Qt,"sequenceEquals"),ve(Kt,"sequenceEqualsAsync"),ve(Pt,"single"),ve(Wr,"singleAsync"),ve(fo,"singleOrDefault"),ve(We,"singleOrDefaultAsync"),ve(nt,"skip"),ve(at,"skipWhile"),ve(Gn,"skipWhileAsync"),ve(vi,"sum"),ve(tr,"sumAsync"),ve(pr,"take"),ve(sr,"takeWhile"),ve(er,"takeWhileAsync"),ve(Sr,"toArray"),ve(Or,"toMap"),ve(Rr,"toMapAsync"),ve(Qr,"toObject"),ve(Br,"toObjectAsync"),ve(ja,"partition"),ve(ea,"partitionAsync"),ve(To,"toSet"),ve(Ro,"union"),ve(zo,"unionAsync"),ve(oa,"where"),ve(Ia,"whereAsync"),ve(Aa,"zip"),ve(Ut,"zipAsync")},jn=(Ie,Ce,ve,Se)=>{if(Se){if(!ve)throw new ReferenceError("TAccumulate function is undefined");return wt(Ie,Ce,ve,Se)}return ve?Lt(Ie,Ce,ve):Xe(Ie,Ce)},Xe=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;Se=Se?ve(Se,jt):jt}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}if(void 0===Se)throw new Rt(Ct.NoElements);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Lt=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se){let Me=ve;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ce);Ve=!(jt=yield kt.next()).done;Ve=!1)Me=Se(Me,jt.value)}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield kt.return())}finally{if(Ge)throw Et}}return Me});return function(ve,Se,Me){return Ie.apply(this,arguments)}}(),wt=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se,Me){let Ve=ve;var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ce);Ge=!(Cn=yield jt.next()).done;Ge=!1)Ve=Se(Ve,Cn.value)}catch(hi){Et=!0,kt=hi}finally{try{Ge&&null!=jt.return&&(yield jt.return())}finally{if(Et)throw kt}}return Me(Ve)});return function(ve,Se,Me,Ve){return Ie.apply(this,arguments)}}(),pn=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1)if(!1===ve(Et.value))return!1}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}return!0});return function(ve,Se){return Ie.apply(this,arguments)}}(),qn=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1){const kt=Et.value;if(!1===(yield ve(kt)))return!1}}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}return!0});return function(ve,Se){return Ie.apply(this,arguments)}}(),Qe=(Ie,Ce)=>Ce?xt(Ie,Ce):lt(Ie),lt=function(){var Ie=(0,Vn.Z)(function*(Ce){var Me,ve=!1,Se=!1;try{for(var Ve=Wn(Ce);ve=!(yield Ve.next()).done;ve=!1)return!0}catch(Et){Se=!0,Me=Et}finally{try{ve&&null!=Ve.return&&(yield Ve.return())}finally{if(Se)throw Me}}return!1});return function(ve){return Ie.apply(this,arguments)}}(),xt=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1)if(!0===ve(Et.value))return!0}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}return!1});return function(ve,Se){return Ie.apply(this,arguments)}}(),Tn=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1){const kt=Et.value;if(!0===(yield ve(kt)))return!0}}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}return!1});return function(ve,Se){return Ie.apply(this,arguments)}}(),ii=Ie=>ni(0,function(){var ve=(0,Vn.Z)(function*(){const Se=[];var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield Et.next()).done;Me=!1)Se.push(kt.value)}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(){return ve.apply(this,arguments)}}()),wi=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=0,Me=0;if(ve){var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ce);Ve=!(jt=yield kt.next()).done;Ve=!1)Se+=ve(jt.value),Me+=1}catch(ur){Ge=!0,Et=ur}finally{try{Ve&&null!=kt.return&&(yield kt.return())}finally{if(Ge)throw Et}}}else{var xi,Cn=!1,hi=!1;try{for(var qi,Wi=Wn(Ce);Cn=!(qi=yield Wi.next()).done;Cn=!1)Se+=qi.value,Me+=1}catch(ur){hi=!0,xi=ur}finally{try{Cn&&null!=Wi.return&&(yield Wi.return())}finally{if(hi)throw xi}}}if(0===Me)throw new Rt(Ct.NoElements);return Se/Me});return function(ve,Se){return Ie.apply(this,arguments)}}(),Pi=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=0,Me=0;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ce);Ve=!(jt=yield kt.next()).done;Ve=!1){const Cn=jt.value;Se+=(yield ve(Cn)),Me+=1}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield kt.return())}finally{if(Ge)throw Et}}if(0===Me)throw new Rt(Ct.NoElements);return Se/Me});return function(ve,Se){return Ie.apply(this,arguments)}}(),Li=(Ie,Ce)=>{if(Ce<1)throw new St("index");function Se(){return Se=dt(function*(){let Me=[];var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1)Me.push(jt.value),Me.length===Ce&&(yield Me,Me=[])}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}Me.length&&(yield Me)}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},rr=(Ie,Ce)=>{function Se(){return(Se=dt(function*(){yield*Un(Wn(Ie)),yield*Un(Wn(Ce))})).apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Cr=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se=fn){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1)if(Se(ve,kt.value))return!0}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return!1});return function(ve,Se){return Ie.apply(this,arguments)}}(),qr=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;if(yield Se(ve,jt))return!0}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return!1});return function(ve,Se,Me){return Ie.apply(this,arguments)}}(),lo=(Ie,Ce)=>Ce?bo(Ie,Ce):mo(Ie),mo=function(){var Ie=(0,Vn.Z)(function*(Ce){let ve=0;var Ve,Se=!1,Me=!1;try{for(var Ge=Wn(Ce);Se=!(yield Ge.next()).done;Se=!1)ve++}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}return ve});return function(ve){return Ie.apply(this,arguments)}}(),bo=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=0;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1)!0===ve(kt.value)&&Se++}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),wo=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=0;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;!0===(yield ve(jt))&&Se++}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Lo=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=!1;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;Me=!0,yield Cn}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}Me||(yield Ce)}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Jo=(Ie,Ce=fn)=>{function Se(){return Se=dt(function*(){const Me=[];var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;Me.find(xi=>Ce(xi,Cn))||(Me.push(Cn),yield Cn)}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},ia=(Ie,Ce)=>{function Se(){return Se=dt(function*(){const Me=[];var Et,Ve=!1,Ge=!1;try{e:for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;for(const hi of Me)if(yield qe(Ce(hi,Cn)))continue e;Me.push(Cn),yield Cn}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Wo=(Ie,Ce)=>{function Se(){return Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1){const jt=kt.value;Ce(jt),yield jt}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},aa=(Ie,Ce)=>{function Se(){return Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1){const jt=kt.value;yield qe(Ce(jt)),yield jt}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Il=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){if(ve<0)throw new St("index");let Se=0;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1)if(ve===Se++)return kt.value}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}throw new St("index")});return function(ve,Se){return Ie.apply(this,arguments)}}(),Rd=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=0;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1)if(ve===Se++)return kt.value}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return null});return function(ve,Se){return Ie.apply(this,arguments)}}(),Ph=(Ie,Ce,ve=fn)=>{function Me(){return Me=dt(function*(){const Ve=[];var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ce);Ge=!(Cn=yield qe(jt.next())).done;Ge=!1)Ve.push(Cn.value)}catch(br){Et=!0,kt=br}finally{try{Ge&&null!=jt.return&&(yield qe(jt.return()))}finally{if(Et)throw kt}}var Wi,hi=!1,xi=!1;try{for(var ur,qi=Wn(Ie);hi=!(ur=yield qe(qi.next())).done;hi=!1){const br=ur.value;{let eo=!1;for(let ao=0;ao<Ve.length;ao++)if(!0===ve(br,Ve[ao])){eo=!0;break}!1===eo&&(yield br)}}}catch(br){xi=!0,Wi=br}finally{try{hi&&null!=qi.return&&(yield qe(qi.return()))}finally{if(xi)throw Wi}}}),Me.apply(this,arguments)}return new He(function Se(){return Me.apply(this,arguments)})},ed=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=[];var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ce);Ge=!(Cn=yield qe(jt.next())).done;Ge=!1)Ve.push(Cn.value)}catch(br){Et=!0,kt=br}finally{try{Ge&&null!=jt.return&&(yield qe(jt.return()))}finally{if(Et)throw kt}}var Wi,hi=!1,xi=!1;try{for(var ur,qi=Wn(Ie);hi=!(ur=yield qe(qi.next())).done;hi=!1){const br=ur.value;{let eo=!1;for(let ao=0;ao<Ve.length;ao++){const Io=Ve[ao];if(!0===(yield qe(ve(br,Io)))){eo=!0;break}}!1===eo&&(yield br)}}}catch(br){xi=!0,Wi=br}finally{try{hi&&null!=qi.return&&(yield qe(qi.return()))}finally{if(xi)throw Wi}}}),Me.apply(this,arguments)}return new He(function Se(){return Me.apply(this,arguments)})},bu=(Ie,Ce)=>Ce?Ld(Ie,Ce):wu(Ie),wu=function(){var Ie=(0,Vn.Z)(function*(Ce){const ve=yield Ce[Symbol.asyncIterator]().next();if(!0===ve.done)throw new Rt(Ct.NoElements);return ve.value});return function(ve){return Ie.apply(this,arguments)}}(),Ld=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1){const kt=Et.value;if(!0===ve(kt))return kt}}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}throw new Rt(Ct.NoMatch)});return function(ve,Se){return Ie.apply(this,arguments)}}(),Eu=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1){const kt=Et.value;if(!0===(yield ve(kt)))return kt}}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}throw new Rt(Ct.NoMatch)});return function(ve,Se){return Ie.apply(this,arguments)}}(),Wp=(Ie,Ce)=>Ce?yc(Ie,Ce):td(Ie),td=function(){var Ie=(0,Vn.Z)(function*(Ce){return(yield Ce[Symbol.asyncIterator]().next()).value||null});return function(ve){return Ie.apply(this,arguments)}}(),yc=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1){const kt=Et.value;if(!0===ve(kt))return kt}}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}return null});return function(ve,Se){return Ie.apply(this,arguments)}}(),Cc=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1){const kt=Et.value;if(!0===(yield ve(kt)))return kt}}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}return null});return function(ve,Se){return Ie.apply(this,arguments)}}(),Hs=(Ie,Ce,ve)=>ve?Up(Ie,Ce,ve):Su(Ie,Ce),Up=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=new Array;var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ie);Ge=!(Cn=yield qe(jt.next())).done;Ge=!1){const hi=Cn.value;{const xi=Ce(hi);let Wi=!1;for(let qi=0;qi<Ve.length;qi++){const ur=Ve[qi];if(ve(ur.key,xi)){ur.push(hi),Wi=!0;break}}!1===Wi&&Ve.push(new At(xi,hi))}}}catch(hi){Et=!0,kt=hi}finally{try{Ge&&null!=jt.return&&(yield qe(jt.return()))}finally{if(Et)throw kt}}for(const hi of Ve)yield hi}),Me.apply(this,arguments)}return new He(function Se(){return Me.apply(this,arguments)})},Su=(Ie,Ce)=>{function Se(){return Se=dt(function*(){const Me={};var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;{const hi=Ce(Cn),xi=Me[hi];xi?xi.push(Cn):Me[hi]=new At(hi,Cn)}}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}for(const Cn in Me)yield Me[Cn]}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Ou=(Ie,Ce,ve)=>ve?Bd(Ie,Ce,ve):xc(Ie,Ce),xc=(Ie,Ce)=>{function Se(){return Se=dt(function*(){const Me={};var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;{const hi=yield qe(Ce(Cn)),xi=Me[hi];xi?xi.push(Cn):Me[hi]=new At(hi,Cn)}}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}for(const Cn in Me)yield Me[Cn]}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Bd=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=new Array;var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ie);Ge=!(Cn=yield qe(jt.next())).done;Ge=!1){const hi=Cn.value;{const xi=yield qe(Ce(hi));let Wi=!1;for(let qi=0;qi<Ve.length;qi++){const ur=Ve[qi];if(!0===(yield qe(ve(ur.key,xi)))){ur.push(hi),Wi=!0;break}}!1===Wi&&Ve.push(new At(xi,hi))}}}catch(hi){Et=!0,kt=hi}finally{try{Ge&&null!=jt.return&&(yield qe(jt.return()))}finally{if(Et)throw kt}}for(const hi of Ve)yield hi}),Me.apply(this,arguments)}return new He(function Se(){return Me.apply(this,arguments)})},nd=(Ie,Ce,ve,Se)=>Se?bc(Ie,Ce,ve,Se):Zp(Ie,Ce,ve),Zp=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve={};var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ie);Ge=!(Cn=yield qe(jt.next())).done;Ge=!1){const hi=Cn.value;{const xi=Ce(hi),Wi=Ve[xi],qi=ve(hi);Wi?Wi.push(qi):Ve[xi]=new At(xi,qi)}}}catch(hi){Et=!0,kt=hi}finally{try{Ge&&null!=jt.return&&(yield qe(jt.return()))}finally{if(Et)throw kt}}for(const hi in Ve)yield Ve[hi]}),Me.apply(this,arguments)}return new He(function Se(){return Me.apply(this,arguments)})},bc=(Ie,Ce,ve,Se)=>{function Ve(){return Ve=dt(function*(){const Ge=new Array;var jt,Et=!1,kt=!1;try{for(var hi,Cn=Wn(Ie);Et=!(hi=yield qe(Cn.next())).done;Et=!1){const xi=hi.value;{const Wi=Ce(xi);let qi=!1;for(let ur=0;ur<Ge.length;ur++){const br=Ge[ur];if(Se(br.key,Wi)){br.push(ve(xi)),qi=!0;break}}if(!1===qi){const ur=ve(xi);Ge.push(new At(Wi,ur))}}}}catch(xi){kt=!0,jt=xi}finally{try{Et&&null!=Cn.return&&(yield qe(Cn.return()))}finally{if(kt)throw jt}}for(const xi of Ge)yield xi}),Ve.apply(this,arguments)}return new He(function Me(){return Ve.apply(this,arguments)})},wc=(Ie,Ce,ve,Se,Me,Ve)=>{const Ge=Ve?id(Ie,Ce,ve,Se,Me,Ve):Du(Ie,Ce,ve,Se,Me);return new He(Ge)},id=(Ie,Ce,ve,Se,Me,Ve)=>dt(function*(){var Ge;const Et=[];var Cn,kt=!1,jt=!1;try{for(var xi,hi=Wn(Ce);kt=!(xi=yield qe(hi.next())).done;kt=!1){const ao=xi.value;{const Io=Se(ao),es=Et.find(su=>Ve(su.key,Io));es?es.values.push(ao):Et.push({key:Io,values:[ao]})}}}catch(ao){jt=!0,Cn=ao}finally{try{kt&&null!=hi.return&&(yield qe(hi.return()))}finally{if(jt)throw Cn}}var ur,Wi=!1,qi=!1;try{for(var eo,br=Wn(Ie);Wi=!(eo=yield qe(br.next())).done;Wi=!1){const ao=eo.value;{const Io=ve(ao),es=null!==(Ge=Et.find(su=>Ve(su.key,Io)))&&void 0!==Ge?Ge:{key:Io,values:[]};yield Me(ao,es.values)}}}catch(ao){qi=!0,ur=ao}finally{try{Wi&&null!=br.return&&(yield qe(br.return()))}finally{if(qi)throw ur}}}),Du=(Ie,Ce,ve,Se,Me)=>dt(function*(){var Ve;const Ge=new Map;var jt,Et=!1,kt=!1;try{for(var hi,Cn=Wn(Ce);Et=!(hi=yield qe(Cn.next())).done;Et=!1){const eo=hi.value;{const ao=Se(eo),Io=Ge.get(ao);Io?Io.push(eo):Ge.set(ao,[eo])}}}catch(eo){kt=!0,jt=eo}finally{try{Et&&null!=Cn.return&&(yield qe(Cn.return()))}finally{if(kt)throw jt}}var qi,xi=!1,Wi=!1;try{for(var br,ur=Wn(Ie);xi=!(br=yield qe(ur.next())).done;xi=!1){const eo=br.value;{const ao=ve(eo),Io=null!==(Ve=Ge.get(ao))&&void 0!==Ve?Ve:[];yield Me(eo,Io)}}}catch(eo){Wi=!0,qi=eo}finally{try{xi&&null!=ur.return&&(yield qe(ur.return()))}finally{if(Wi)throw qi}}}),Ec=(Ie,Ce,ve,Se,Me,Ve)=>{const Ge=Ve?ql(Ie,Ce,ve,Se,Me,Ve):ws(Ie,Ce,ve,Se,Me);return new He(Ge)},ql=(Ie,Ce,ve,Se,Me,Ve)=>dt(function*(){var Ge;const Et=[];var Cn,kt=!1,jt=!1;try{for(var xi,hi=Wn(Ce);kt=!(xi=yield qe(hi.next())).done;kt=!1){const ao=xi.value;{const Io=yield qe(Se(ao)),es=Et.find(su=>Ve(su.key,Io));es?es.values.push(ao):Et.push({key:Io,values:[ao]})}}}catch(ao){jt=!0,Cn=ao}finally{try{kt&&null!=hi.return&&(yield qe(hi.return()))}finally{if(jt)throw Cn}}var ur,Wi=!1,qi=!1;try{for(var eo,br=Wn(Ie);Wi=!(eo=yield qe(br.next())).done;Wi=!1){const ao=eo.value;{const Io=yield qe(ve(ao)),es=null!==(Ge=Et.find(su=>Ve(su.key,Io)))&&void 0!==Ge?Ge:{key:Io,values:[]};yield Me(ao,es.values)}}}catch(ao){qi=!0,ur=ao}finally{try{Wi&&null!=br.return&&(yield qe(br.return()))}finally{if(qi)throw ur}}}),ws=(Ie,Ce,ve,Se,Me)=>dt(function*(){var Ve;const Ge=new Map;var jt,Et=!1,kt=!1;try{for(var hi,Cn=Wn(Ce);Et=!(hi=yield qe(Cn.next())).done;Et=!1){const eo=hi.value;{const ao=yield qe(Se(eo)),Io=Ge.get(ao);Io?Io.push(eo):Ge.set(ao,[eo])}}}catch(eo){kt=!0,jt=eo}finally{try{Et&&null!=Cn.return&&(yield qe(Cn.return()))}finally{if(kt)throw jt}}var qi,xi=!1,Wi=!1;try{for(var br,ur=Wn(Ie);xi=!(br=yield qe(ur.next())).done;xi=!1){const eo=br.value;{const ao=yield qe(ve(eo)),Io=null!==(Ve=Ge.get(ao))&&void 0!==Ve?Ve:[];yield Me(eo,Io)}}}catch(eo){Wi=!0,qi=eo}finally{try{xi&&null!=ur.return&&(yield qe(ur.return()))}finally{if(Wi)throw qi}}}),rd=(Ie,Ce,ve=fn)=>{function Me(){return Me=dt(function*(){const Ve=yield qe(Ie.distinct(ve).toArray());if(0===Ve.length)return;const Ge=yield qe(Ce.toArray());for(let Et=0;Et<Ve.length;Et++){const kt=Ve[Et];for(let jt=0;jt<Ge.length;jt++)if(!0===ve(kt,Ge[jt])){yield kt;break}}}),Me.apply(this,arguments)}return new He(function Se(){return Me.apply(this,arguments)})},Is=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=yield qe(Ie.distinctAsync(ve).toArray());if(0===Ve.length)return;const Ge=yield qe(Ce.toArray());for(let Et=0;Et<Ve.length;Et++){const kt=Ve[Et];for(let jt=0;jt<Ge.length;jt++){const Cn=Ge[jt];if(!0===(yield qe(ve(kt,Cn)))){yield kt;break}}}}),Me.apply(this,arguments)}return new He(function Se(){return Me.apply(this,arguments)})},Fd=(Ie,Ce,ve,Se,Me,Ve=fn)=>{function Et(){return Et=dt(function*(){const kt=[];var hi,jt=!1,Cn=!1;try{for(var Wi,xi=Wn(Ce);jt=!(Wi=yield qe(xi.next())).done;jt=!1)kt.push(Wi.value)}catch(Io){Cn=!0,hi=Io}finally{try{jt&&null!=xi.return&&(yield qe(xi.return()))}finally{if(Cn)throw hi}}var br,qi=!1,ur=!1;try{for(var ao,eo=Wn(Ie);qi=!(ao=yield qe(eo.next())).done;qi=!1){const Io=ao.value;{const es=ve(Io);for(const su of kt){const $d=Se(su);!0===Ve(es,$d)&&(yield Me(Io,su))}}}}catch(Io){ur=!0,br=Io}finally{try{qi&&null!=eo.return&&(yield qe(eo.return()))}finally{if(ur)throw br}}}),Et.apply(this,arguments)}return new He(function Ge(){return Et.apply(this,arguments)})},Es=(Ie,Ce)=>Ce?Ja(Ie,Ce):zs(Ie),zs=function(){var Ie=(0,Vn.Z)(function*(Ce){let ve=null;var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1)ve=Et.value}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}if(!ve)throw new Rt(Ct.NoElements);return ve});return function(ve){return Ie.apply(this,arguments)}}(),Ja=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=null;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;!0===ve(jt)&&(Se=jt)}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}if(!Se)throw new Rt(Ct.NoMatch);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),vl=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=null;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;!0===(yield ve(jt))&&(Se=jt)}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}if(!Se)throw new Rt(Ct.NoMatch);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Tu=(Ie,Ce)=>Ce?od(Ie,Ce):Vd(Ie),Vd=function(){var Ie=(0,Vn.Z)(function*(Ce){let ve=null;var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1)ve=Et.value}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}return ve});return function(ve){return Ie.apply(this,arguments)}}(),od=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=null;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;!0===ve(jt)&&(Se=jt)}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Jl=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=null;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;!0===(yield ve(jt))&&(Se=jt)}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),yl=(Ie,Ce)=>Ce?ad(Ie,Ce):ds(Ie),ds=function(){var Ie=(0,Vn.Z)(function*(Ce){let ve=null;var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1)ve=Math.max(ve||Number.NEGATIVE_INFINITY,Et.value)}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}if(null===ve)throw new Rt(Ct.NoElements);return ve});return function(ve){return Ie.apply(this,arguments)}}(),ad=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=null;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1)Se=Math.max(Se||Number.NEGATIVE_INFINITY,ve(kt.value))}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}if(null===Se)throw new Rt(Ct.NoElements);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Ql=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=null;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;Se=Math.max(Se||Number.NEGATIVE_INFINITY,yield ve(jt))}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}if(null===Se)throw new Rt(Ct.NoElements);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),el=(Ie,Ce)=>Ce?Ml(Ie,Ce):Kp(Ie),Kp=function(){var Ie=(0,Vn.Z)(function*(Ce){let ve=null;var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1)ve=Math.min(ve||Number.POSITIVE_INFINITY,Et.value)}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}if(null===ve)throw new Rt(Ct.NoElements);return ve});return function(ve){return Ie.apply(this,arguments)}}(),Ml=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=null;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1)Se=Math.min(Se||Number.POSITIVE_INFINITY,ve(kt.value))}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}if(null===Se)throw new Rt(Ct.NoElements);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),ya=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=null;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;Se=Math.min(Se||Number.POSITIVE_INFINITY,yield ve(jt))}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}if(null===Se)throw new Rt(Ct.NoElements);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Gp=(Ie,Ce)=>{const ve="string"==typeof Ce?Ve=>typeof Ve===Ce:Ve=>Ve instanceof Ce;function Me(){return Me=dt(function*(){var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;ve(Cn)&&(yield Cn)}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Me.apply(this,arguments)}return new He(function Se(){return Me.apply(this,arguments)})},$a=(Ie,Ce,ve)=>no.generate(Ie,Ce,!0,ve),sd=(Ie,Ce,ve)=>no.generateAsync(Ie,Ce,!0,ve),ld=(Ie,Ce,ve)=>no.generate(Ie,Ce,!1,ve),Sc=(Ie,Ce,ve)=>no.generateAsync(Ie,Ce,!1,ve),cs=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=[],Me=[];var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ce);Ve=!(jt=yield kt.next()).done;Ve=!1){const Cn=jt.value;!0===ve(Cn)?Me.push(Cn):Se.push(Cn)}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield kt.return())}finally{if(Ge)throw Et}}return[Me,Se]});return function(ve,Se){return Ie.apply(this,arguments)}}(),kh=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=[],Me=[];var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ce);Ve=!(jt=yield kt.next()).done;Ve=!1){const Cn=jt.value;!0===(yield ve(Cn))?Me.push(Cn):Se.push(Cn)}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield kt.return())}finally{if(Ge)throw Et}}return[Me,Se]});return function(ve,Se){return Ie.apply(this,arguments)}}(),ud=Ie=>{function ve(){return ve=dt(function*(){const Se=[];var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1)Se.push(kt.value)}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}for(let jt=Se.length-1;jt>=0;jt--)yield Se[jt]}),ve.apply(this,arguments)}return new He(function Ce(){return ve.apply(this,arguments)})},Xf=(Ie,Ce)=>"function"==typeof Ce?1===Ce.length?jp(Ie,Ce):Ba(Ie,Ce):Iu(Ie,Ce),jp=(Ie,Ce)=>{function Se(){return Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1){const jt=kt.value;yield Ce(jt)}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Ba=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;yield Ce(Cn,Me),Me++}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Iu=(Ie,Ce)=>{function Se(){return Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1)yield kt.value[Ce]}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Ws=(Ie,Ce)=>"string"==typeof Ce?vs(Ie,Ce):Rh(Ie,Ce),Rh=(Ie,Ce)=>{function Se(){return Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1){const jt=kt.value;yield Ce(jt)}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},vs=(Ie,Ce)=>{function Se(){return Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1)yield kt.value[Ce]}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Ss=(Ie,Ce)=>"function"==typeof Ce?1===Ce.length?dd(Ie,Ce):cd(Ie,Ce):Nd(Ie,Ce),dd=(Ie,Ce)=>{function Se(){return Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1){const jt=kt.value;for(const Cn of Ce(jt))yield Cn}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},cd=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;for(const hi of Ce(Cn,Me))yield hi;Me++}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Nd=(Ie,Ce)=>{function Se(){return Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1){const jt=kt.value;for(const Cn of jt[Ce])yield Cn}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Oc=(Ie,Ce)=>{if(1===Ce.length){const ve=function(){var Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1){const jt=kt.value;{const Cn=yield qe(Ce(jt));for(const hi of Cn)yield hi}}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}});return function(){return Se.apply(this,arguments)}}();return new He(ve)}{const ve=function(){var Se=dt(function*(){let Me=0;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;{const hi=yield qe(Ce(Cn,Me));for(const xi of hi)yield xi;Me++}}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}});return function(){return Se.apply(this,arguments)}}();return new He(ve)}},$p=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se=fn){const Me=Ce[Symbol.asyncIterator](),Ve=ve[Symbol.asyncIterator]();let Ge=yield Promise.all([Me.next(),Ve.next()]),Et=Ge[0],kt=Ge[1];for(;!Et.done&&!kt.done;){if(!Se(Et.value,kt.value))return!1;Ge=yield Promise.all([Me.next(),Ve.next()]),Et=Ge[0],kt=Ge[1]}return!0===Et.done&&!0===kt.done});return function(ve,Se){return Ie.apply(this,arguments)}}(),Dc=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se){const Me=Ce[Symbol.asyncIterator](),Ve=ve[Symbol.asyncIterator]();let Ge=yield Promise.all([Me.next(),Ve.next()]),Et=Ge[0],kt=Ge[1];for(;!Et.done&&!kt.done;){if(!1===(yield Se(Et.value,kt.value)))return!1;Ge=yield Promise.all([Me.next(),Ve.next()]),Et=Ge[0],kt=Ge[1]}return!0===Et.done&&!0===kt.done});return function(ve,Se,Me){return Ie.apply(this,arguments)}}(),Hd=(Ie,Ce)=>Ce?dl(Ie,Ce):hs(Ie),hs=function(){var Ie=(0,Vn.Z)(function*(Ce){let ve=!1,Se=null;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;if(!0===ve)throw new Rt(Ct.MoreThanOneElement);ve=!0,Se=jt}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}if(!1===ve)throw new Rt(Ct.NoElements);return Se});return function(ve){return Ie.apply(this,arguments)}}(),dl=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=!1,Me=null;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ce);Ve=!(jt=yield kt.next()).done;Ve=!1){const Cn=jt.value;if(ve(Cn)){if(!0===Se)throw new Rt(Ct.MoreThanOneMatchingElement);Se=!0,Me=Cn}}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield kt.return())}finally{if(Ge)throw Et}}if(!1===Se)throw new Rt(Ct.NoMatch);return Me});return function(ve,Se){return Ie.apply(this,arguments)}}(),eu=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=!1,Me=null;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ce);Ve=!(jt=yield kt.next()).done;Ve=!1){const Cn=jt.value;if(yield ve(Cn)){if(!0===Se)throw new Rt(Ct.MoreThanOneMatchingElement);Se=!0,Me=Cn}}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield kt.return())}finally{if(Ge)throw Et}}if(!1===Se)throw new Rt(Ct.NoMatch);return Me});return function(ve,Se){return Ie.apply(this,arguments)}}(),Lh=(Ie,Ce)=>Ce?qf(Ie,Ce):Tc(Ie),Tc=function(){var Ie=(0,Vn.Z)(function*(Ce){let ve=!1,Se=null;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;if(!0===ve)throw new Rt(Ct.MoreThanOneElement);ve=!0,Se=jt}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve){return Ie.apply(this,arguments)}}(),qf=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=!1,Me=null;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ce);Ve=!(jt=yield kt.next()).done;Ve=!1){const Cn=jt.value;if(ve(Cn)){if(!0===Se)throw new Rt(Ct.MoreThanOneMatchingElement);Se=!0,Me=Cn}}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield kt.return())}finally{if(Ge)throw Et}}return Me});return function(ve,Se){return Ie.apply(this,arguments)}}(),Yp=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=!1,Me=null;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ce);Ve=!(jt=yield kt.next()).done;Ve=!1){const Cn=jt.value;if(yield ve(Cn)){if(!0===Se)throw new Rt(Ct.MoreThanOneMatchingElement);Se=!0,Me=Cn}}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield kt.return())}finally{if(Ge)throw Et}}return Me});return function(ve,Se){return Ie.apply(this,arguments)}}(),Mu=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;Me++>=Ce&&(yield Cn)}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Xp=(Ie,Ce)=>1===Ce.length?Ic(Ie,Ce):Bh(Ie,Ce),Ic=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=!0;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;!1===Me?yield Cn:!1===Ce(Cn)&&(Me=!1,yield Cn)}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Bh=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0,Ve=!0;var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ie);Ge=!(Cn=yield qe(jt.next())).done;Ge=!1){const hi=Cn.value;!1===Ve?yield hi:!1===Ce(hi,Me)&&(Ve=!1,yield hi),Me++}}catch(hi){Et=!0,kt=hi}finally{try{Ge&&null!=jt.return&&(yield qe(jt.return()))}finally{if(Et)throw kt}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Mc=(Ie,Ce)=>1===Ce.length?tu(Ie,Ce):hd(Ie,Ce),tu=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=!0;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;!1===Me?yield Cn:!1===(yield qe(Ce(Cn)))&&(Me=!1,yield Cn)}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},hd=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0,Ve=!0;var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ie);Ge=!(Cn=yield qe(jt.next())).done;Ge=!1){const hi=Cn.value;!1===Ve?yield hi:!1===(yield qe(Ce(hi,Me)))&&(Ve=!1,yield hi),Me++}}catch(hi){Et=!0,kt=hi}finally{try{Ge&&null!=jt.return&&(yield qe(jt.return()))}finally{if(Et)throw kt}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Au=(Ie,Ce)=>Ce?nu(Ie,Ce):Ac(Ie),Ac=function(){var Ie=(0,Vn.Z)(function*(Ce){let ve=0;var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1)ve+=Et.value}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}return ve});return function(ve){return Ie.apply(this,arguments)}}(),nu=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=0;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1)Se+=ve(kt.value)}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),qp=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=0;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;Se+=(yield ve(jt))}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),zd=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=Ce>0?Ce:0;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;if(0==Me--)break;yield Cn}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Pu=(Ie,Ce)=>1===Ce.length?iu(Ie,Ce):it(Ie,Ce),iu=(Ie,Ce)=>{function Se(){return Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1){const jt=kt.value;if(!Ce(jt))break;yield jt}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},it=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;if(!Ce(Cn,Me++))break;yield Cn}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Je=(Ie,Ce)=>1===Ce.length?ze(Ie,Ce):Mt(Ie,Ce),ze=(Ie,Ce)=>{function Se(){return Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1){const jt=kt.value;if(!(yield qe(Ce(jt))))break;yield jt}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Mt=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;if(!(yield qe(Ce(Cn,Me++))))break;yield Cn}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Xt=function(){var Ie=(0,Vn.Z)(function*(Ce){const ve=[];var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1)ve.push(Et.value)}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}return ve});return function(ve){return Ie.apply(this,arguments)}}(),Bn=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=new Map;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;{const Cn=ve(jt),hi=Se.get(Cn);void 0===hi?Se.set(Cn,[jt]):hi.push(jt)}}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),zn=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=new Map;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;{const Cn=yield ve(jt),hi=Se.get(Cn);void 0===hi?Se.set(Cn,[jt]):hi.push(jt)}}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),ki=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se={};var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;Se[ve(jt)]=jt}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),dr=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se={};var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;Se[yield ve(jt)]=jt}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),jr=function(){var Ie=(0,Vn.Z)(function*(Ce){const ve=new Set;var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ce);Se=!(Et=yield Ge.next()).done;Se=!1)ve.add(Et.value)}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Ve}}return ve});return function(ve){return Ie.apply(this,arguments)}}(),$r=(Ie,Ce,ve)=>ve?Pa(Ie,Ce,ve):ra(Ie,Ce),ra=(Ie,Ce)=>{function Se(){return Se=dt(function*(){const Me=new Set;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const ur=jt.value;!1===Me.has(ur)&&(yield ur,Me.add(ur))}}catch(ur){Ge=!0,Et=ur}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}var xi,Cn=!1,hi=!1;try{for(var qi,Wi=Wn(Ce);Cn=!(qi=yield qe(Wi.next())).done;Cn=!1){const ur=qi.value;!1===Me.has(ur)&&(yield ur,Me.add(ur))}}catch(ur){hi=!0,xi=ur}finally{try{Cn&&null!=Wi.return&&(yield qe(Wi.return()))}finally{if(hi)throw xi}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Pa=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=[];for(const hi of[Ie,Ce]){var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(hi);Ge=!(Cn=yield qe(jt.next())).done;Ge=!1){const xi=Cn.value;{let Wi=!1;for(const qi of Ve)if(!0===ve(xi,qi)){Wi=!0;break}!1===Wi&&(yield xi,Ve.push(xi))}}}catch(xi){Et=!0,kt=xi}finally{try{Ge&&null!=jt.return&&(yield qe(jt.return()))}finally{if(Et)throw kt}}}}),Me.apply(this,arguments)}return new He(function Se(){return Me.apply(this,arguments)})},Ms=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=[];for(const hi of[Ie,Ce]){var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(hi);Ge=!(Cn=yield qe(jt.next())).done;Ge=!1){const xi=Cn.value;{let Wi=!1;for(const qi of Ve)if(!0===(yield qe(ve(xi,qi)))){Wi=!0;break}!1===Wi&&(yield xi,Ve.push(xi))}}}catch(xi){Et=!0,kt=xi}finally{try{Ge&&null!=jt.return&&(yield qe(jt.return()))}finally{if(Et)throw kt}}}}),Me.apply(this,arguments)}return new He(function Se(){return Me.apply(this,arguments)})},Us=(Ie,Ce)=>1===Ce.length?Al(Ie,Ce):As(Ie,Ce),Al=(Ie,Ce)=>{function Se(){return Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1){const jt=kt.value;!0===Ce(jt)&&(yield jt)}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},As=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;!0===Ce(Cn,Me++)&&(yield Cn)}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Jf=(Ie,Ce)=>1===Ce.length?ku(Ie,Ce):Jp(Ie,Ce),ku=(Ie,Ce)=>{function Se(){return Se=dt(function*(){var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ie);Me=!(kt=yield qe(Et.next())).done;Me=!1){const jt=kt.value;!0===(yield qe(Ce(jt)))&&(yield jt)}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield qe(Et.return()))}finally{if(Ve)throw Ge}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Jp=(Ie,Ce)=>{function Se(){return Se=dt(function*(){let Me=0;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ie);Ve=!(jt=yield qe(kt.next())).done;Ve=!1){const Cn=jt.value;!0===(yield qe(Ce(Cn,Me++)))&&(yield Cn)}}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield qe(kt.return()))}finally{if(Ge)throw Et}}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Qf=(Ie,Ce,ve)=>ve?Zs(Ie,Ce,ve):Qp(Ie,Ce),Qp=(Ie,Ce)=>{function Se(){return Se=dt(function*(){const Me=Ie[Symbol.asyncIterator](),Ve=Ce[Symbol.asyncIterator]();for(;;){const[Ge,Et]=yield qe(Promise.all([Me.next(),Ve.next()]));if(Ge.done||Et.done)break;yield[Ge.value,Et.value]}}),Se.apply(this,arguments)}return new He(function ve(){return Se.apply(this,arguments)})},Zs=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=Ie[Symbol.asyncIterator](),Ge=Ce[Symbol.asyncIterator]();for(;;){const[Et,kt]=yield qe(Promise.all([Ve.next(),Ge.next()]));if(Et.done||kt.done)break;yield ve(Et.value,kt.value)}}),Me.apply(this,arguments)}return new He(function Se(){return Me.apply(this,arguments)})},em=(Ie,Ce,ve)=>{function Me(){return Me=dt(function*(){const Ve=Ie[Symbol.asyncIterator](),Ge=Ce[Symbol.asyncIterator]();for(;;){const Et=yield qe(Promise.all([Ve.next(),Ge.next()])),kt=Et[0],jt=Et[1];if(kt.done||jt.done)break;yield ve(kt.value,jt.value)}}),Me.apply(this,arguments)}return new He(function Se(){return Me.apply(this,arguments)})},pd=(Ie,Ce,ve,Se)=>{if(Se){if(!ve)throw new ReferenceError("TAccumulate function is undefined");return s_(Ie,Ce,ve,Se)}return ve?Nh(Ie,Ce,ve):Vh(Ie,Ce)},Vh=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;Se=Se?ve(Se,jt):jt}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}if(void 0===Se)throw new Rt(Ct.NoElements);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Nh=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se){let Me=ve;var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Ce);Ve=!(jt=yield kt.next()).done;Ve=!1)Me=Se(Me,jt.value)}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield kt.return())}finally{if(Ge)throw Et}}return Me});return function(ve,Se,Me){return Ie.apply(this,arguments)}}(),s_=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se,Me){let Ve=ve;var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ce);Ge=!(Cn=yield jt.next()).done;Ge=!1)Ve=Se(Ve,Cn.value)}catch(hi){Et=!0,kt=hi}finally{try{Ge&&null!=jt.return&&(yield jt.return())}finally{if(Et)throw kt}}return Me(Ve)});return function(ve,Se,Me,Ve){return Ie.apply(this,arguments)}}(),Os=(Ie,Ce)=>{const ve=Ie.dataFunc;switch(ve.type){case 0:return{generator:()=>ve.generator().then(Me=>{const Ve=new Array(Me.length);for(let Ge=0;Ge<Me.length;Ge++)Ve[Ge]=Ce(Me[Ge]);return Ve}),type:0};case 1:return{generator:()=>{const Me=ve.generator(),Ve=new Array(Me.length);for(let Ge=0;Ge<Me.length;Ge++)Ve[Ge]=Me[Ge].then(Ce);return Ve},type:1};case 2:return{generator:function(){var Me=(0,Vn.Z)(function*(){const Ve=yield ve.generator(),Ge=new Array(Ve.length);for(let Et=0;Et<Ve.length;Et++)Ge[Et]=Ve[Et].then(Ce);return Ge});return function(){return Me.apply(this,arguments)}}(),type:2}}},l_=(Ie,Ce)=>{const ve=Os(Ie,Se=>{if(!Ce(Se))throw new Error(String(!1));return!0});switch(ve.type){case 0:return ve.generator().then(()=>!0,()=>!1);case 1:return Promise.all(ve.generator()).then(()=>!0,()=>!1);case 2:return ve.generator().then(Promise.all.bind(Promise)).then(()=>!0,()=>!1)}},Ya=(Ie,Ce)=>{const ve=Ie.dataFunc;switch(ve.type){case 0:return{generator:function(){var Me=(0,Vn.Z)(function*(){const Ve=yield ve.generator(),Ge=new Array(Ve.length);for(let Et=0;Et<Ve.length;Et++)Ge[Et]=Ce(Ve[Et]);return Ge});return function(){return Me.apply(this,arguments)}}(),type:2};case 1:return{generator:()=>ve.generator().map(function(){var Ve=(0,Vn.Z)(function*(Ge){const Et=yield Ge;return yield Ce(Et)});return function(Ge){return Ve.apply(this,arguments)}}()),type:1};case 2:return{generator:function(){var Me=(0,Vn.Z)(function*(){return(yield ve.generator()).map(Ge=>Ge.then(Ce))});return function(){return Me.apply(this,arguments)}}(),type:2}}},tm=(Ie,Ce)=>{const ve=Ya(Ie,function(){var Se=(0,Vn.Z)(function*(Me){if(!1===(yield Ce(Me)))throw new Error(String(!1));return!0});return function(Me){return Se.apply(this,arguments)}}());switch(ve.type){case 1:return Promise.all(ve.generator()).then(()=>!0,()=>!1);case 2:return ve.generator().then(Promise.all.bind(Promise)).then(()=>!0,()=>!1)}},gd=(Ie,Ce)=>Ce?Hh(Ie,Ce):u_(Ie),u_=function(){var Ie=(0,Vn.Z)(function*(Ce){const ve=Ce.dataFunc;let Se;switch(ve.type){case 1:return Se=ve.generator(),0!==Se.length;case 0:case 2:return Se=yield ve.generator(),0!==Se.length}});return function(ve){return Ie.apply(this,arguments)}}(),Hh=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Os(Ce,ve);let Me;switch(Se.type){case 0:return Me=yield Se.generator(),Me.includes(!0);case 1:return Me=yield Promise.all(Se.generator()),Me.includes(!0);case 2:return Me=yield Promise.all(yield Se.generator()),Me.includes(!0)}});return function(ve,Se){return Ie.apply(this,arguments)}}(),eg=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ya(Ce,ve);let Me;switch(Se.type){case 1:return Me=Se.generator(),0!==Me.length&&new Promise((Ge,Et)=>{let kt=0;for(const jt of Me)jt.then(Cn=>{kt++,Cn?Ge(!0):kt===Me.length&&Ge(!1)},Et)});case 2:return Me=yield Se.generator(),0!==Promise.length&&(yield Promise.all(Me)).includes(!0)}});return function(ve,Se){return Ie.apply(this,arguments)}}(),Ks=Ie=>{function ve(){return ve=dt(function*(){var Ve,Se=!1,Me=!1;try{for(var Et,Ge=Wn(Ie);Se=!(Et=yield qe(Ge.next())).done;Se=!1)yield Et.value}catch(kt){Me=!0,Ve=kt}finally{try{Se&&null!=Ge.return&&(yield qe(Ge.return()))}finally{if(Me)throw Ve}}}),ve.apply(this,arguments)}return On(function Ce(){return ve.apply(this,arguments)})},Qa=function(){var Ie=(0,Vn.Z)(function*(Ce){switch(Ce.type){case 0:return yield Ce.generator();case 1:return yield Promise.all(Ce.generator());case 2:const ve=yield Ce.generator();return yield Promise.all(ve)}});return function(ve){return Ie.apply(this,arguments)}}(),Pc=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se;Se=ve?Os(Ce,ve):Ce.dataFunc;const Me=yield Qa(Se);if(0===Me.length)throw new Rt(Ct.NoElements);let Ve=0;for(const Ge of Me)Ve+=Ge;return Ve/Me.length});return function(ve,Se){return Ie.apply(this,arguments)}}(),tg=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ya(Ce,ve),Me=yield Qa(Se);if(0===Me.length)throw new Rt(Ct.NoElements);let Ve=0;for(const Ge of Me)Ve+=Ge;return Ve/Me.length});return function(ve,Se){return Ie.apply(this,arguments)}}(),ng=(Ie,Ce)=>{if(Ce<1)throw new St("index");let ve;switch(Ie.dataFunc.type){case 1:const Se=Ie.dataFunc.generator;ve={type:1,generator:()=>{const Ge=[];let Et=[];for(const kt of Se())Et.push(kt),Et.length===Ce&&(Ge.push(Promise.all(Et)),Et=[]);return Et.length&&Ge.push(Promise.all(Et)),Ge}};break;case 2:const Me=Ie.dataFunc.generator;ve={type:2,generator:function(){var Ge=(0,Vn.Z)(function*(){const Et=[];let kt=[];for(const jt of yield Me())kt.push(jt),kt.length===Ce&&(Et.push(Promise.all(kt)),kt=[]);return kt.length&&Et.push(Promise.all(kt)),Et});return function(){return Ge.apply(this,arguments)}}()};break;case 0:const Ve=Ie.dataFunc.generator;ve={type:0,generator:function(){var Ge=(0,Vn.Z)(function*(){const Et=[];let kt=[];for(const jt of yield Ve())kt.push(jt),kt.length===Ce&&(Et.push(kt),kt=[]);return kt.length&&Et.push(kt),Et});return function(){return Ge.apply(this,arguments)}}()}}return new ht(ve)},ig=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){const[Me,Ve]=yield Promise.all([Ie.toArray(),Ce.toArray()]);return[...Me,...Ve]});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},nm=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se=fn){let Me;switch(Me=Os(Ce,Se?Ve=>Se(ve,Ve):Ve=>Ve===ve),Me.type){case 0:return(yield Me.generator()).some(Ge=>Ge);case 1:return(yield Promise.all(Me.generator())).some(Ge=>Ge);case 2:return(yield Promise.all(yield Me.generator())).some(Ge=>Ge)}});return function(ve,Se){return Ie.apply(this,arguments)}}(),zh=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se){const Me=Ya(Ce,Ve=>Se(ve,Ve));switch(Me.type){case 1:return(yield Promise.all(Me.generator())).some(Ge=>Ge);case 2:return(yield Promise.all(yield Me.generator())).some(Ge=>Ge)}});return function(ve,Se,Me){return Ie.apply(this,arguments)}}(),im=(Ie,Ce)=>Ce?rm(Ie,Ce):Wh(Ie),Wh=function(){var Ie=(0,Vn.Z)(function*(Ce){const ve=Ce.dataFunc;switch(ve.type){case 0:case 2:return(yield Ce.toArray()).length;case 1:return ve.generator().length}});return function(ve){return Ie.apply(this,arguments)}}(),rm=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=yield Ce.toArray();let Me=0;for(let Ve=0;Ve<Se.length;Ve++)!0===ve(Se[Ve])&&Me++;return Me});return function(ve,Se){return Ie.apply(this,arguments)}}(),d_=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ya(Ce,ve);let Me;switch(Se.type){case 1:Me=Promise.all(Se.generator());break;case 2:Me=Promise.all(yield Se.generator())}let Ve=0;for(const Ge of yield Me)Ge&&Ve++;return Ve});return function(ve,Se){return Ie.apply(this,arguments)}}(),Ps=(Ie,Ce)=>{const ve=Ie.dataFunc,Se=Ce instanceof Promise;let Me;switch(ve.type){case 0:Me={generator:()=>ve.generator().then(Ge=>Ge.length?Ge:Se?Ce.then(Et=>[Et]):[Ce]),type:ve.type};break;case 1:Me={generator:()=>{const Ge=ve.generator();return Ge.length?Ge:Se?[Ce]:[Promise.resolve(Ce)]},type:ve.type};break;case 2:Me={generator:function(){var Ge=(0,Vn.Z)(function*(){const Et=yield ve.generator();return Et.length?Et:Se?[Ce]:[Promise.resolve(Ce)]});return function(){return Ge.apply(this,arguments)}}(),type:ve.type}}return new ht(Me)},rg=(Ie,Ce=fn)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){const Me=[];for(const Ve of yield Ie.toArray())Me.find(Et=>Ce(Et,Ve))||Me.push(Ve);return Me});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},kc=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){const Me=[];e:for(const Ve of yield Ie.toArray()){for(const Ge of Me)if(yield Ce(Ge,Ve))continue e;Me.push(Ve)}return Me});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},og=(Ie,Ce)=>new ht(Os(Ie,ve=>(Ce(ve),ve))),rs=(Ie,Ce)=>{const ve=Ya(Ie,function(){var Se=(0,Vn.Z)(function*(Me){return yield Ce(Me),Me});return function(Me){return Se.apply(this,arguments)}}());return new ht(ve)},Wd=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){if(ve<0)throw new St("index");const Se=Ce.dataFunc;switch(Se.type){case 0:{const Me=yield Se.generator();if(ve>=Me.length)throw new St("index");return Me[ve]}case 1:{const Me=Se.generator();if(ve>=Me.length)throw new St("index");return yield Me[ve]}case 2:{const Me=yield Se.generator();if(ve>=Me.length)throw new St("index");return yield Me[ve]}}});return function(ve,Se){return Ie.apply(this,arguments)}}(),Rc=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ce.dataFunc;switch(Se.type){case 0:{const Me=yield Se.generator();return ve>=Me.length?null:Me[ve]}case 1:{const Me=Se.generator();return ve>=Me.length?null:yield Me[ve]}case 2:{const Me=yield Se.generator();return ve>=Me.length?null:yield Me[ve]}}});return function(ve,Se){return Ie.apply(this,arguments)}}(),ag=(Ie,Ce,ve=fn)=>{const Se=function(){var Me=(0,Vn.Z)(function*(){const[Ve,Ge]=yield Promise.all([Ie.toArray(),Ce.toArray()]),Et=[];for(const kt of Ve){let jt=!1;for(let Cn=0;Cn<Ge.length;Cn++)if(!0===ve(kt,Ge[Cn])){jt=!0;break}!1===jt&&Et.push(kt)}return Et});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})},c_=(Ie,Ce,ve)=>{const Se=function(){var Me=(0,Vn.Z)(function*(){const[Ve,Ge]=yield Promise.all([Ie.toArray(),Ce.toArray()]),Et=[];for(const kt of Ve){let jt=!1;for(let Cn=0;Cn<Ge.length;Cn++){const hi=Ge[Cn];if(!0===(yield ve(kt,hi))){jt=!0;break}}!1===jt&&Et.push(kt)}return Et});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})},Gs=Ie=>Qa(Ie.dataFunc),h_=(Ie,Ce)=>Ce?p_(Ie,Ce):sg(Ie),sg=function(){var Ie=(0,Vn.Z)(function*(Ce){const ve=Ce.dataFunc;switch(ve.type){case 0:{const Se=yield ve.generator();if(0===Se.length)throw new Rt(Ct.NoElements);return Se[0]}case 1:{const Se=ve.generator();if(0===Se.length)throw new Rt(Ct.NoElements);return yield Se[0]}case 2:{const Se=yield ve.generator();if(0===Se.length)throw new Rt(Ct.NoElements);return yield Se[0]}}});return function(ve){return Ie.apply(this,arguments)}}(),p_=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=yield Gs(Ce);for(const Me of Se)if(!0===ve(Me))return Me;throw new Rt(Ct.NoMatch)});return function(ve,Se){return Ie.apply(this,arguments)}}(),Yo=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=yield Gs(Ce);for(const Me of Se)if(!0===(yield ve(Me)))return Me;throw new Rt(Ct.NoMatch)});return function(ve,Se){return Ie.apply(this,arguments)}}(),om=(Ie,Ce)=>Ce?ug(Ie,Ce):lg(Ie),lg=function(){var Ie=(0,Vn.Z)(function*(Ce){const ve=Ce.dataFunc;switch(ve.type){case 0:{const Se=yield ve.generator();return 0===Se.length?null:Se[0]}case 1:{const Se=ve.generator();return 0===Se.length?null:yield Se[0]}case 2:{const Se=yield ve.generator();return 0===Se.length?null:yield Se[0]}}});return function(ve){return Ie.apply(this,arguments)}}(),ug=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=yield Gs(Ce);for(const Me of Se)if(!0===ve(Me))return Me;return null});return function(ve,Se){return Ie.apply(this,arguments)}}(),Uh=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=yield Gs(Ce);for(const Me of Se)if(!0===(yield ve(Me)))return Me;return null});return function(ve,Se){return Ie.apply(this,arguments)}}(),g_=(Ie,Ce,ve)=>ve?f_(Ie,Ce,ve):Ud(Ie,Ce),Ud=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){const Me={};for(const Ge of yield Ie.toArray()){const Et=Ce(Ge),kt=Me[Et];kt?kt.push(Ge):Me[Et]=new At(Et,Ge)}const Ve=new Array;for(const Ge in Me)Ve.push(Me[Ge]);return Ve});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},f_=(Ie,Ce,ve)=>{const Se=function(){var Me=(0,Vn.Z)(function*(){const Ve=new Array;for(const Et of yield Ie.toArray()){const kt=Ce(Et);let jt=!1;for(let Cn=0;Cn<Ve.length;Cn++){const hi=Ve[Cn];if(ve(hi.key,kt)){hi.push(Et),jt=!0;break}}!1===jt&&Ve.push(new At(kt,Et))}const Ge=new Array;for(const Et of Ve)Ge.push(Et);return Ge});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})},am=(Ie,Ce,ve)=>ve?Zh(Ie,Ce,ve):Kh(Ie,Ce),Zh=(Ie,Ce,ve)=>{const Se=function(){var Me=(0,Vn.Z)(function*(){const Ve=Ya(Ie,function(){var jt=(0,Vn.Z)(function*(Cn){return[yield Ce(Cn),Cn]});return function(Cn){return jt.apply(this,arguments)}}());let Ge;switch(Ve.type){case 1:Ge=yield Promise.all(Ve.generator());break;case 2:Ge=yield Promise.all(yield Ve.generator())}const Et=new Array;for(const[jt,Cn]of Ge){let hi=!1;for(let xi=0;xi<Et.length;xi++){const Wi=Et[xi];if(!0===(yield ve(Wi.key,jt))){Wi.push(Cn),hi=!0;break}}!1===hi&&Et.push(new At(jt,Cn))}const kt=new Array;for(const jt of Et)kt.push(jt);return kt});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})},Kh=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){const Me=Ya(Ie,function(){var kt=(0,Vn.Z)(function*(jt){return[yield Ce(jt),jt]});return function(jt){return kt.apply(this,arguments)}}());let Ve;switch(Me.type){case 1:Ve=yield Promise.all(Me.generator());break;case 2:Ve=yield Promise.all(yield Me.generator())}const Ge={};for(const[kt,jt]of Ve){const Cn=Ge[kt];Cn?Cn.push(jt):Ge[kt]=new At(kt,jt)}const Et=new Array;for(const kt in Ge)Et.push(Ge[kt]);return Et});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},dg=(Ie,Ce,ve,Se)=>Se?Ru(Ie,Ce,ve,Se):Gh(Ie,Ce,ve),Ru=(Ie,Ce,ve,Se)=>{const Me=function(){var Ve=(0,Vn.Z)(function*(){const Ge=new Array;var jt,Et=!1,kt=!1;try{for(var hi,Cn=Wn(Ie);Et=!(hi=yield Cn.next()).done;Et=!1){const Wi=hi.value;{const qi=Ce(Wi);let ur=!1;for(let br=0;br<Ge.length;br++){const eo=Ge[br];if(Se(eo.key,qi)){eo.push(ve(Wi)),ur=!0;break}}if(!1===ur){const br=ve(Wi);Ge.push(new At(qi,br))}}}}catch(Wi){kt=!0,jt=Wi}finally{try{Et&&null!=Cn.return&&(yield Cn.return())}finally{if(kt)throw jt}}const xi=new Array;for(const Wi of Ge)xi.push(Wi);return xi});return function(){return Ve.apply(this,arguments)}}();return new ht({generator:Me,type:0})},Gh=(Ie,Ce,ve)=>{const Se=function(){var Me=(0,Vn.Z)(function*(){const Ve={};for(const Et of yield Ie.toArray()){const kt=Ce(Et),jt=Ve[kt],Cn=ve(Et);jt?jt.push(Cn):Ve[kt]=new At(kt,Cn)}const Ge=new Array;for(const Et in Ve)Ge.push(Ve[Et]);return Ge});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})},Lc=(Ie,Ce,ve,Se,Me,Ve)=>{const Ge=Ve?cg(Ie,Ce,ve,Se,Me,Ve):jh(Ie,Ce,ve,Se,Me);return new ht({generator:Ge,type:0})},cg=(Ie,Ce,ve,Se,Me,Ve)=>(0,Vn.Z)(function*(){const Ge=[];var jt,Et=!1,kt=!1;try{for(var hi,Cn=Wn(Ce);Et=!(hi=yield Cn.next()).done;Et=!1){const Wi=hi.value;{const qi=Se(Wi),ur=Ge.find(br=>Ve(br.key,qi));ur?ur.values.push(Wi):Ge.push({key:qi,values:[Wi]})}}}catch(Wi){kt=!0,jt=Wi}finally{try{Et&&null!=Cn.return&&(yield Cn.return())}finally{if(kt)throw jt}}return(yield Ie.toArray()).map(Wi=>{var qi;const ur=ve(Wi),br=null!==(qi=Ge.find(eo=>Ve(eo.key,ur)))&&void 0!==qi?qi:{key:ur,values:[]};return Me(Wi,br.values)})}),jh=(Ie,Ce,ve,Se,Me)=>(0,Vn.Z)(function*(){const Ve=new Map;var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ce);Ge=!(Cn=yield jt.next()).done;Ge=!1){const xi=Cn.value;{const Wi=Se(xi),qi=Ve.get(Wi);qi?qi.push(xi):Ve.set(Wi,[xi])}}}catch(xi){Et=!0,kt=xi}finally{try{Ge&&null!=jt.return&&(yield jt.return())}finally{if(Et)throw kt}}return(yield Ie.toArray()).map(xi=>{var Wi;const qi=ve(xi),ur=null!==(Wi=Ve.get(qi))&&void 0!==Wi?Wi:[];return Me(xi,ur)})}),sm=(Ie,Ce,ve,Se,Me,Ve)=>{const Ge=Ve?fd(Ie,Ce,ve,Se,Me,Ve):m_(Ie,Ce,ve,Se,Me);return new ht({generator:Ge,type:0})},fd=(Ie,Ce,ve,Se,Me,Ve)=>(0,Vn.Z)(function*(){const Ge=[];var jt,Et=!1,kt=!1;try{for(var hi,Cn=Wn(Ce);Et=!(hi=yield Cn.next()).done;Et=!1){const qi=hi.value;{const ur=yield Se(qi),br=Ge.find(eo=>Ve(eo.key,ur));br?br.values.push(qi):Ge.push({key:ur,values:[qi]})}}}catch(qi){kt=!0,jt=qi}finally{try{Et&&null!=Cn.return&&(yield Cn.return())}finally{if(kt)throw jt}}const Wi=(yield Ie.toArray()).map(function(){var qi=(0,Vn.Z)(function*(ur){var br;const eo=yield ve(ur),ao=null!==(br=Ge.find(Io=>Ve(Io.key,eo)))&&void 0!==br?br:{key:eo,values:[]};return Me(ur,ao.values)});return function(ur){return qi.apply(this,arguments)}}());return yield Promise.all(Wi)}),m_=(Ie,Ce,ve,Se,Me)=>(0,Vn.Z)(function*(){const Ve=new Map;var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ce);Ge=!(Cn=yield jt.next()).done;Ge=!1){const Wi=Cn.value;{const qi=yield Se(Wi),ur=Ve.get(qi);ur?ur.push(Wi):Ve.set(qi,[Wi])}}}catch(Wi){Et=!0,kt=Wi}finally{try{Ge&&null!=jt.return&&(yield jt.return())}finally{if(Et)throw kt}}const xi=(yield Ie.toArray()).map(function(){var Wi=(0,Vn.Z)(function*(qi){var ur;const br=yield ve(qi),eo=null!==(ur=Ve.get(br))&&void 0!==ur?ur:[];return Me(qi,eo)});return function(qi){return Wi.apply(this,arguments)}}());return yield Promise.all(xi)}),hg=(Ie,Ce,ve=fn)=>{const Se=function(){var Me=(0,Vn.Z)(function*(){const Ve=yield Ie.distinct(ve).toArray();if(0===Ve.length)return[];const Ge=yield Ce.toArray(),Et=new Array;for(let kt=0;kt<Ve.length;kt++){const jt=Ve[kt];for(let Cn=0;Cn<Ge.length;Cn++)if(!0===ve(jt,Ge[Cn])){Et.push(jt);break}}return Et});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})},__=(Ie,Ce,ve)=>{const Se=function(){var Me=(0,Vn.Z)(function*(){const Ve=yield Ie.distinctAsync(ve).toArray();if(0===Ve.length)return[];const Ge=yield Ce.toArray(),Et=new Array;for(let kt=0;kt<Ve.length;kt++){const jt=Ve[kt];for(let Cn=0;Cn<Ge.length;Cn++){const hi=Ge[Cn];if(!0===(yield ve(jt,hi))){Et.push(jt);break}}}return Et});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})},lm=(Ie,Ce,ve,Se,Me,Ve=fn)=>{const Ge=function(){var Et=(0,Vn.Z)(function*(){const[kt,jt]=yield Promise.all([Ce.toArray(),Ie.toArray()]),Cn=new Array;for(const hi of jt){const xi=ve(hi);for(const Wi of kt){const qi=Se(Wi);!0===Ve(xi,qi)&&Cn.push(Me(hi,Wi))}}return Cn});return function(){return Et.apply(this,arguments)}}();return new ht({generator:Ge,type:0})},$h=(Ie,Ce)=>Ce?Yh(Ie,Ce):Cl(Ie),Cl=function(){var Ie=(0,Vn.Z)(function*(Ce){const ve=Ce.dataFunc;switch(ve.type){case 0:{const Se=yield ve.generator();if(0===Se.length)throw new Rt(Ct.NoElements);return Se[Se.length-1]}case 1:{const Se=ve.generator();if(0===Se.length)throw new Rt(Ct.NoElements);return yield Se[Se.length-1]}case 2:{const Se=yield ve.generator();if(0===Se.length)throw new Rt(Ct.NoElements);return yield Se[Se.length-1]}}});return function(ve){return Ie.apply(this,arguments)}}(),Yh=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ce.dataFunc;switch(Se.type){case 0:{const Me=yield Se.generator();for(let Ve=Me.length-1;Ve>=0;Ve--){const Ge=Me[Ve];if(ve(Ge))return Ge}break}case 1:{const Me=Se.generator();for(let Ve=Me.length-1;Ve>=0;Ve--){const Ge=yield Me[Ve];if(ve(Ge))return Ge}break}case 2:{const Me=yield Se.generator();for(let Ve=Me.length-1;Ve>=0;Ve--){const Ge=yield Me[Ve];if(ve(Ge))return Ge}break}}throw new Rt(Ct.NoMatch)});return function(ve,Se){return Ie.apply(this,arguments)}}(),pg=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ce.dataFunc;switch(Se.type){case 0:{const Me=yield Se.generator();for(let Ve=Me.length-1;Ve>=0;Ve--){const Ge=Me[Ve];if(!0===(yield ve(Ge)))return Ge}break}case 1:{const Me=Se.generator();for(let Ve=Me.length-1;Ve>=0;Ve--){const Ge=yield Me[Ve];if(!0===(yield ve(Ge)))return Ge}break}case 2:{const Me=yield Se.generator();for(let Ve=Me.length-1;Ve>=0;Ve--){const Ge=yield Me[Ve];if(!0===(yield ve(Ge)))return Ge}break}}throw new Rt(Ct.NoMatch)});return function(ve,Se){return Ie.apply(this,arguments)}}(),um=(Ie,Ce)=>Ce?Xh(Ie,Ce):gg(Ie),gg=function(){var Ie=(0,Vn.Z)(function*(Ce){const ve=Ce.dataFunc;switch(ve.type){case 0:{const Se=yield ve.generator();return 0===Se.length?null:Se[Se.length-1]}case 1:{const Se=ve.generator();return 0===Se.length?null:yield Se[Se.length-1]}case 2:{const Se=yield ve.generator();return 0===Se.length?null:yield Se[Se.length-1]}}});return function(ve){return Ie.apply(this,arguments)}}(),Xh=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ce.dataFunc;switch(Se.type){case 0:{const Me=yield Se.generator();for(let Ve=Me.length-1;Ve>=0;Ve--){const Ge=Me[Ve];if(ve(Ge))return Ge}break}case 1:{const Me=Se.generator();for(let Ve=Me.length-1;Ve>=0;Ve--){const Ge=yield Me[Ve];if(ve(Ge))return Ge}break}case 2:{const Me=yield Se.generator();for(let Ve=Me.length-1;Ve>=0;Ve--){const Ge=yield Me[Ve];if(ve(Ge))return Ge}break}}return null});return function(ve,Se){return Ie.apply(this,arguments)}}(),_o=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ce.dataFunc;switch(Se.type){case 0:{const Me=yield Se.generator();for(let Ve=Me.length-1;Ve>=0;Ve--){const Ge=Me[Ve];if(!0===(yield ve(Ge)))return Ge}break}case 1:{const Me=Se.generator();for(let Ve=Me.length-1;Ve>=0;Ve--){const Ge=yield Me[Ve];if(!0===(yield ve(Ge)))return Ge}break}case 2:{const Me=yield Se.generator();for(let Ve=Me.length-1;Ve>=0;Ve--){const Ge=yield Me[Ve];if(!0===(yield ve(Ge)))return Ge}break}}return null});return function(ve,Se){return Ie.apply(this,arguments)}}(),js=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se;Se=ve?Os(Ce,ve):Ce.dataFunc;const Me=yield Qa(Se);if(0===Me.length)throw new Rt(Ct.NoElements);return Math.max.apply(null,Me)});return function(ve,Se){return Ie.apply(this,arguments)}}(),qh=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ya(Ce,ve),Me=yield Qa(Se);if(0===Me.length)throw new Rt(Ct.NoElements);return Math.max.apply(null,Me)});return function(ve,Se){return Ie.apply(this,arguments)}}(),fg=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se;Se=ve?Os(Ce,ve):Ce.dataFunc;const Me=yield Qa(Se);if(0===Me.length)throw new Rt(Ct.NoElements);return Math.min.apply(null,Me)});return function(ve,Se){return Ie.apply(this,arguments)}}(),dm=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ya(Ce,ve),Me=yield Qa(Se);if(0===Me.length)throw new Rt(Ct.NoElements);return Math.min.apply(null,Me)});return function(ve,Se){return Ie.apply(this,arguments)}}(),mg=(Ie,Ce)=>{const ve="string"==typeof Ce?Me=>[typeof Me===Ce,Me]:Me=>[Me instanceof Ce,Me],Se=function(){var Me=(0,Vn.Z)(function*(){const Ve=Os(Ie,ve),Ge=yield Qa(Ve),Et=[];for(const[kt,jt]of Ge)kt&&Et.push(jt);return Et});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})},Zd=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=new Map;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;{const Cn=yield ve(jt),hi=Se.get(Cn);hi?hi.push(jt):Se.set(Cn,[jt])}}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}();function Jh(){return Jh=dt(function*(Ie,Ce,ve,Se){const Me=yield qe(Zd(Ie,Ce)),Ve=[...Me.keys()].sort(Se||void 0);if(ve)for(let Ge=0;Ge<Ve.length;Ge++)yield Me.get(Ve[Ge]);else for(let Ge=Ve.length-1;Ge>=0;Ge--)yield Me.get(Ve[Ge])}),Jh.apply(this,arguments)}const _g=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=new Map;for(const Me of Ce){const Ve=yield ve(Me),Ge=Se.get(Ve);Ge?Ge.push(Me):Se.set(Ve,[Me])}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}();function vg(Ie,Ce,ve,Se){return Bc.apply(this,arguments)}function Bc(){return Bc=dt(function*(Ie,Ce,ve,Se){const Me=yield qe(_g(Ie,Ce)),Ve=[...Me.keys()].sort(Se||void 0);if(ve)for(let Ge=0;Ge<Ve.length;Ge++)yield Me.get(Ve[Ge]);else for(let Ge=Ve.length-1;Ge>=0;Ge--)yield Me.get(Ve[Ge])}),Bc.apply(this,arguments)}const yg=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=new Map;var Ge,Me=!1,Ve=!1;try{for(var kt,Et=Wn(Ce);Me=!(kt=yield Et.next()).done;Me=!1){const jt=kt.value;{const Cn=ve(jt),hi=Se.get(Cn);hi?hi.push(jt):Se.set(Cn,[jt])}}}catch(jt){Ve=!0,Ge=jt}finally{try{Me&&null!=Et.return&&(yield Et.return())}finally{if(Ve)throw Ge}}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}();function tl(){return tl=dt(function*(Ie,Ce,ve,Se){const Me=yield qe(yg(Ie,Ce)),Ve=[...Me.keys()].sort(Se||void 0);if(ve)for(let Ge=0;Ge<Ve.length;Ge++)yield Me.get(Ve[Ge]);else for(let Ge=Ve.length-1;Ge>=0;Ge--)yield Me.get(Ve[Ge])}),tl.apply(this,arguments)}const wn=(Ie,Ce)=>{const ve=new Map;for(const Se of Ie){const Me=Ce(Se),Ve=ve.get(Me);Ve?Ve.push(Se):ve.set(Me,[Se])}return ve};function Qh(Ie,Ce,ve,Se){return md.apply(this,arguments)}function md(){return md=dt(function*(Ie,Ce,ve,Se){const Me=wn(Ie,Ce),Ve=[...Me.keys()].sort(Se||void 0);if(ve)for(let Ge=0;Ge<Ve.length;Ge++)yield Me.get(Ve[Ge]);else for(let Ge=Ve.length-1;Ge>=0;Ge--)yield Me.get(Ve[Ge])}),md.apply(this,arguments)}class ks extends ht{constructor(Ce){super({generator:function(){var ve=(0,Vn.Z)(function*(){const Se=Ce(),Me=[];var Et,Ve=!1,Ge=!1;try{for(var jt,kt=Wn(Se);Ve=!(jt=yield kt.next()).done;Ve=!1)Me.push(...jt.value)}catch(Cn){Ge=!0,Et=Cn}finally{try{Ve&&null!=kt.return&&(yield kt.return())}finally{if(Ge)throw Et}}return Me});return function(){return ve.apply(this,arguments)}}(),type:0}),this.orderedPairs=Ce}static generateAsync(Ce,ve,Se,Me){let Ve;return Ve=Ce instanceof ks?function(){var Ge=dt(function*(){var jt,Et=!1,kt=!1;try{for(var hi,Cn=Wn(Ce.orderedPairs());Et=!(hi=yield qe(Cn.next())).done;Et=!1){const xi=hi.value;yield*Un(Wn(vg(xi,ve,Se,Me)))}}catch(xi){kt=!0,jt=xi}finally{try{Et&&null!=Cn.return&&(yield qe(Cn.return()))}finally{if(kt)throw jt}}});return function(){return Ge.apply(this,arguments)}}():()=>function cm(Ie,Ce,ve,Se){return Jh.apply(this,arguments)}(Ce,ve,Se,Me),new ks(Ve)}static generate(Ce,ve,Se,Me){let Ve;return Ve=Ce instanceof ks?function(){var Ge=dt(function*(){var jt,Et=!1,kt=!1;try{for(var hi,Cn=Wn(Ce.orderedPairs());Et=!(hi=yield qe(Cn.next())).done;Et=!1){const xi=hi.value;yield*Un(Wn(Qh(xi,ve,Se,Me)))}}catch(xi){kt=!0,jt=xi}finally{try{Et&&null!=Cn.return&&(yield qe(Cn.return()))}finally{if(kt)throw jt}}});return function(){return Ge.apply(this,arguments)}}():()=>function Fa(Ie,Ce,ve,Se){return tl.apply(this,arguments)}(Ce,ve,Se,Me),new ks(Ve)}thenBy(Ce,ve){return ks.generate(this,Ce,!0,ve)}thenByAsync(Ce,ve){return ks.generateAsync(this,Ce,!0,ve)}thenByDescending(Ce,ve){return ks.generate(this,Ce,!1,ve)}thenByDescendingAsync(Ce,ve){return ks.generateAsync(this,Ce,!1,ve)}}const Rs=(Ie,Ce,ve)=>ks.generate(Ie,Ce,!0,ve),hm=(Ie,Ce,ve)=>ks.generateAsync(Ie,Ce,!0,ve),Cg=(Ie,Ce,ve)=>ks.generate(Ie,Ce,!1,ve),_d=(Ie,Ce,ve)=>ks.generateAsync(Ie,Ce,!1,ve),v_=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Os(Ce,Et=>[ve(Et),Et]),Me=yield Qa(Se),Ve=[],Ge=[];for(const[Et,kt]of Me)Et?Ge.push(kt):Ve.push(kt);return[Ge,Ve]});return function(ve,Se){return Ie.apply(this,arguments)}}(),xg=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ya(Ce,function(){var Et=(0,Vn.Z)(function*(kt){return[yield ve(kt),kt]});return function(kt){return Et.apply(this,arguments)}}()),Me=yield Qa(Se),Ve=[],Ge=[];for(const[Et,kt]of Me)Et?Ge.push(kt):Ve.push(kt);return[Ge,Ve]});return function(ve,Se){return Ie.apply(this,arguments)}}(),vd=Ie=>{const Ce=Ie.dataFunc;switch(Ce.type){case 1:return new ht({generator:()=>Ce.generator().reverse(),type:Ce.type});case 2:{const ve=function(){var Se=(0,Vn.Z)(function*(){return(yield Ce.generator()).reverse()});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:Ce.type})}case 0:{const ve=function(){var Se=(0,Vn.Z)(function*(){return(yield Ce.generator()).reverse()});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:Ce.type})}}},xl=(Ie,Ce)=>{const ve=Ie.dataFunc;switch(ve.type){case 0:return{generator:()=>ve.generator().then(Me=>{const Ve=new Array(Me.length);for(let Ge=0;Ge<Me.length;Ge++)Ve[Ge]=Ce(Me[Ge],Ge);return Ve}),type:0};case 1:return{generator:()=>{const Me=ve.generator(),Ve=new Array(Me.length);for(let Ge=0;Ge<Me.length;Ge++)Ve[Ge]=Me[Ge].then(Et=>Ce(Et,Ge));return Ve},type:1};case 2:return{generator:function(){var Me=(0,Vn.Z)(function*(){const Ve=yield ve.generator(),Ge=new Array(Ve.length);for(let Et=0;Et<Ve.length;Et++)Ge[Et]=Ve[Et].then(kt=>Ce(kt,Et));return Ge});return function(){return Me.apply(this,arguments)}}(),type:2}}},Fc=(Ie,Ce)=>new ht("function"==typeof Ce?1===Ce.length?Os(Ie,Ce):xl(Ie,Ce):Os(Ie,ve=>ve[Ce])),yd=(Ie,Ce)=>{const ve=Ie.dataFunc;switch(ve.type){case 0:return{generator:function(){var Me=(0,Vn.Z)(function*(){const Ve=yield ve.generator(),Ge=new Array(Ve.length);for(let Et=0;Et<Ve.length;Et++)Ge[Et]=Ce(Ve[Et],Et);return Ge});return function(){return Me.apply(this,arguments)}}(),type:2};case 1:return{generator:()=>ve.generator().map((Me,Ve)=>Me.then(Ge=>Ce(Ge,Ve))),type:1};case 2:return{generator:function(){var Me=(0,Vn.Z)(function*(){return(yield ve.generator()).map((Ge,Et)=>Ge.then(kt=>Ce(kt,Et)))});return function(){return Me.apply(this,arguments)}}(),type:2}}},Lu=(Ie,Ce)=>{let ve;return ve="function"==typeof Ce?1===Ce.length?Ya(Ie,Ce):yd(Ie,Ce):Ya(Ie,Se=>Se[Ce]),new ht(ve)},ep=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){let Me;Me="function"==typeof Ce?1===Ce.length?Os(Ie,Ce):xl(Ie,Ce):Os(Ie,Ge=>Ge[Ce]);const Ve=[];switch(Me.type){case 0:for(const Ge of yield Me.generator())for(const Et of Ge)Ve.push(Et);break;case 1:for(const Ge of Me.generator())for(const Et of yield Ge)Ve.push(Et);break;case 2:for(const Ge of yield Me.generator())for(const Et of yield Ge)Ve.push(Et)}return Ve});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},y_=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){let Me;Me=1===Ce.length?Ya(Ie,Ce):yd(Ie,Ce);const Ve=[];switch(Me.type){case 1:for(const Ge of Me.generator())for(const Et of yield Ge)Ve.push(Et);break;case 2:for(const Ge of yield Me.generator())for(const Et of yield Ge)Ve.push(Et)}return Ve});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},C_=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se=fn){const Me=yield Ce.toArray(),Ve=yield ve.toArray();if(Me.length!==Ve.length)return!1;for(let Ge=0;Ge<Me.length;Ge++)if(!1===Se(Me[Ge],Ve[Ge]))return!1;return!0});return function(ve,Se){return Ie.apply(this,arguments)}}(),Vc=function(){var Ie=(0,Vn.Z)(function*(Ce,ve,Se){const Me=yield Ce.toArray(),Ve=yield ve.toArray();if(Me.length!==Ve.length)return!1;for(let Ge=0;Ge<Me.length;Ge++){const Et=Me[Ge],kt=Ve[Ge];if(!1===(yield Se(Et,kt)))return!1}return!0});return function(ve,Se,Me){return Ie.apply(this,arguments)}}(),bg=(Ie,Ce)=>Ce?Eg(Ie,Ce):wg(Ie),wg=function(){var Ie=(0,Vn.Z)(function*(Ce){const ve=Ce.dataFunc;switch(ve.type){case 0:{const Se=yield ve.generator();if(Se.length>1)throw new Rt(Ct.MoreThanOneElement);if(0===Se.length)throw new Rt(Ct.NoElements);return Se[0]}case 1:{const Se=ve.generator();if(Se.length>1)throw new Rt(Ct.MoreThanOneElement);if(0===Se.length)throw new Rt(Ct.NoElements);return Se[0]}case 2:{const Se=yield ve.generator();if(Se.length>1)throw new Rt(Ct.MoreThanOneElement);if(0===Se.length)throw new Rt(Ct.NoElements);return yield Se[0]}}});return function(ve){return Ie.apply(this,arguments)}}(),Eg=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=yield Gs(Ce);let Me=!1,Ve=null;for(const Ge of Se)if(ve(Ge)){if(!0===Me)throw new Rt(Ct.MoreThanOneMatchingElement);Me=!0,Ve=Ge}if(!1===Me)throw new Rt(Ct.NoMatch);return Ve});return function(ve,Se){return Ie.apply(this,arguments)}}(),Nc=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=yield Gs(Ce);let Me=!1,Ve=null;for(const Ge of Se)if(!0===(yield ve(Ge))){if(!0===Me)throw new Rt(Ct.MoreThanOneMatchingElement);Me=!0,Ve=Ge}if(!1===Me)throw new Rt(Ct.NoMatch);return Ve});return function(ve,Se){return Ie.apply(this,arguments)}}(),tp=(Ie,Ce)=>Ce?np(Ie,Ce):Hc(Ie),Hc=function(){var Ie=(0,Vn.Z)(function*(Ce){const ve=Ce.dataFunc;switch(ve.type){case 0:{const Se=yield ve.generator();if(Se.length>1)throw new Rt(Ct.MoreThanOneElement);return 0===Se.length?null:Se[0]}case 1:{const Se=ve.generator();if(Se.length>1)throw new Rt(Ct.MoreThanOneElement);return 0===Se.length?null:Se[0]}case 2:{const Se=yield ve.generator();if(Se.length>1)throw new Rt(Ct.MoreThanOneElement);return 0===Se.length?null:yield Se[0]}}});return function(ve){return Ie.apply(this,arguments)}}(),np=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=yield Gs(Ce);let Me=!1,Ve=null;for(const Ge of Se)if(ve(Ge)){if(!0===Me)throw new Rt(Ct.MoreThanOneElement);Me=!0,Ve=Ge}return Ve});return function(ve,Se){return Ie.apply(this,arguments)}}(),Sg=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=yield Gs(Ce);let Me=!1,Ve=null;for(const Ge of Se)if(!0===(yield ve(Ge))){if(!0===Me)throw new Rt(Ct.MoreThanOneElement);Me=!0,Ve=Ge}return Ve});return function(ve,Se){return Ie.apply(this,arguments)}}(),Cd=(Ie,Ce)=>{const ve=Ie.dataFunc;switch(ve.type){case 0:{const Se=function(){var Me=(0,Vn.Z)(function*(){return(yield ve.generator()).slice(Ce)});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})}case 1:return new ht({generator:()=>ve.generator().slice(Ce),type:1});case 2:{const Me={generator:function(){var Ve=(0,Vn.Z)(function*(){return(yield ve.generator()).slice(Ce)});return function(){return Ve.apply(this,arguments)}}(),type:2};return new ht(Me)}}},pm=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){const Me=yield Ie.toArray();let Ve=0;for(;Ve<Me.length&&!1!==Ce(Me[Ve],Ve);Ve++);const Ge=[];for(;Ve<Me.length;Ve++)Ge.push(Me[Ve]);return Ge});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},x_=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){const Me=yield Ie.toArray();let Ve=0;for(;Ve<Me.length;Ve++){const Et=Me[Ve];if(!1===(yield Ce(Et,Ve)))break}const Ge=[];for(;Ve<Me.length;Ve++)Ge.push(Me[Ve]);return Ge});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},Og=(Ie,Ce)=>Ce?fm(Ie,Ce):gm(Ie),gm=function(){var Ie=(0,Vn.Z)(function*(Ce){let ve=0;for(const Se of yield Ce.toArray())ve+=Se;return ve});return function(ve){return Ie.apply(this,arguments)}}(),fm=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){let Se=0;for(const Me of yield Ce.toArray())Se+=ve(Me);return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),ru=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ya(Ce,ve),Me=yield Qa(Se);let Ve=0;for(const Ge of Me)Ve+=Ge;return Ve});return function(ve,Se){return Ie.apply(this,arguments)}}(),Kd=(Ie,Ce)=>{const ve=Ce>0?Ce:0,Se=Ie.dataFunc;switch(Se.type){case 1:return new ht({generator:()=>Se.generator().splice(0,ve),type:1});case 2:const Ve=()=>Se.generator().then(Et=>Et.splice(0,ve));return new ht({generator:Ve,type:2});default:const Ge=()=>Se.generator().then(Et=>Et.splice(0,ve));return new ht({generator:Ge,type:0})}},Wy=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){const Me=yield Ie.toArray(),Ve=new Array;if(1===Ce.length)for(const Ge of Me){if(!0!==Ce(Ge))break;Ve.push(Ge)}else for(let Ge=0;Ge<Me.length;Ge++){const Et=Me[Ge];if(!0!==Ce(Et,Ge))break;Ve.push(Et)}return Ve});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},Dg=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){const Me=yield Ie.toArray(),Ve=new Array;if(1===Ce.length){const Ge=Ce;for(const Et of Me){if(!0!==(yield Ge(Et)))break;Ve.push(Et)}}else for(let Ge=0;Ge<Me.length;Ge++){const Et=Me[Ge];if(!0!==(yield Ce(Et,Ge)))break;Ve.push(Et)}return Ve});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},mm=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=new Map,Me=Os(Ce,Ge=>[ve(Ge),Ge]),Ve=yield Qa(Me);for(const[Ge,Et]of Ve){const kt=Se.get(Ge);void 0===kt?Se.set(Ge,[Et]):kt.push(Et)}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Tg=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=new Map,Me=Ya(Ce,function(){var Ge=(0,Vn.Z)(function*(Et){return[yield ve(Et),Et]});return function(Et){return Ge.apply(this,arguments)}}()),Ve=yield Qa(Me);for(const[Ge,Et]of Ve){const kt=Se.get(Ge);void 0===kt?Se.set(Ge,[Et]):kt.push(Et)}return Se});return function(ve,Se){return Ie.apply(this,arguments)}}(),Bu=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ce.dataFunc,Me=yield Qa(Se),Ve={};for(const Ge of Me)Ve[ve(Ge)]=Ge;return Ve});return function(ve,Se){return Ie.apply(this,arguments)}}(),zc=function(){var Ie=(0,Vn.Z)(function*(Ce,ve){const Se=Ya(Ce,function(){var Ge=(0,Vn.Z)(function*(Et){return[yield ve(Et),Et]});return function(Et){return Ge.apply(this,arguments)}}()),Me=yield Qa(Se),Ve={};for(const[Ge,Et]of Me)Ve[Ge]=Et;return Ve});return function(ve,Se){return Ie.apply(this,arguments)}}(),Ig=function(){var Ie=(0,Vn.Z)(function*(Ce){const ve=Ce.dataFunc,Se=yield Qa(ve);return new Set(Se)});return function(ve){return Ie.apply(this,arguments)}}(),ip=(Ie,Ce,ve)=>ve?Wc(Ie,Ce,ve):Gd(Ie,Ce),Gd=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){const Me=new Set,Ve=Ce.toArray();var kt,Ge=!1,Et=!1;try{for(var Cn,jt=Wn(Ie);Ge=!(Cn=yield jt.next()).done;Ge=!1){const xi=Cn.value;!1===Me.has(xi)&&Me.add(xi)}}catch(xi){Et=!0,kt=xi}finally{try{Ge&&null!=jt.return&&(yield jt.return())}finally{if(Et)throw kt}}const hi=yield Ve;for(const xi of hi)!1===Me.has(xi)&&Me.add(xi);return[...Me.keys()]});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},Wc=(Ie,Ce,ve)=>{const Se=function(){var Me=(0,Vn.Z)(function*(){const Ve=[],Ge=yield Promise.all([Ie.toArray(),Ce.toArray()]);for(const Et of Ge)for(const kt of Et){let jt=!1;for(const Cn of Ve)if(!0===ve(kt,Cn)){jt=!0;break}!1===jt&&Ve.push(kt)}return Ve});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})},rp=(Ie,Ce,ve)=>{const Se=function(){var Me=(0,Vn.Z)(function*(){const Ve=[],Ge=yield Promise.all([Ie.toArray(),Ce.toArray()]);for(const Et of Ge)for(const kt of Et){let jt=!1;for(const Cn of Ve)if(!0===(yield ve(kt,Cn))){jt=!0;break}!1===jt&&Ve.push(kt)}return Ve});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})},Pl=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){return(yield Ie.toArray()).filter(Ce)});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},kl=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){const Me=yd(Ie,function(){var Et=(0,Vn.Z)(function*(kt,jt){return[yield Ce(kt,jt),kt]});return function(kt,jt){return Et.apply(this,arguments)}}()),Ve=yield Qa(Me),Ge=[];for(const[Et,kt]of Ve)Et&&Ge.push(kt);return Ge});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},Uc=(Ie,Ce,ve)=>ve?op(Ie,Ce,ve):Mg(Ie,Ce),Mg=(Ie,Ce)=>{const ve=function(){var Se=(0,Vn.Z)(function*(){const[Me,Ve]=yield Promise.all([Ie.toArray(),Ce.toArray()]),Ge=Me.length<Ve.length?Me.length:Ve.length,Et=new Array(Ge);for(let kt=0;kt<Ge;kt++)Et[kt]=[Me[kt],Ve[kt]];return Et});return function(){return Se.apply(this,arguments)}}();return new ht({generator:ve,type:0})},op=(Ie,Ce,ve)=>{const Se=function(){var Me=(0,Vn.Z)(function*(){const[Ve,Ge]=yield Promise.all([Ie.toArray(),Ce.toArray()]),Et=Ve.length<Ge.length?Ve.length:Ge.length,kt=new Array(Et);for(let jt=0;jt<Et;jt++)kt[jt]=ve(Ve[jt],Ge[jt]);return kt});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})},ap=(Ie,Ce,ve)=>{const Se=function(){var Me=(0,Vn.Z)(function*(){const[Ve,Ge]=yield Promise.all([Ie.toArray(),Ce.toArray()]),Et=Ve.length<Ge.length?Ve.length:Ge.length,kt=new Array(Et);for(let jt=0;jt<Et;jt++)kt[jt]=ve(Ve[jt],Ge[jt]);return Promise.all(kt)});return function(){return Me.apply(this,arguments)}}();return new ht({generator:Se,type:0})};Zt(yt),(Ie=>{const Ce=Ie.prototype,ve=(Se,Me)=>{const Ve=function(...Ge){return Se(this,...Ge)};Object.defineProperty(Ve,"length",{value:Se.length-1}),Ce[Me]=Ve};ve(jn,"aggregate"),ve(pn,"all"),ve(qn,"allAsync"),ve(Qe,"any"),ve(Tn,"anyAsync"),ve(ii,"asParallel"),ve(wi,"average"),ve(Pi,"averageAsync"),ve(Li,"chunk"),ve(rr,"concatenate"),ve(Cr,"contains"),ve(qr,"containsAsync"),ve(lo,"count"),ve(wo,"countAsync"),ve(Lo,"defaultIfEmpty"),ve(Jo,"distinct"),ve(ia,"distinctAsync"),ve(Wo,"each"),ve(aa,"eachAsync"),ve(Il,"elementAt"),ve(Rd,"elementAtOrDefault"),ve(Ph,"except"),ve(ed,"exceptAsync"),ve(bu,"first"),ve(Eu,"firstAsync"),ve(Wp,"firstOrDefault"),ve(Cc,"firstOrDefaultAsync"),ve(Hs,"groupBy"),ve(Ou,"groupByAsync"),ve(nd,"groupByWithSel"),ve(wc,"groupJoin"),ve(Ec,"groupJoinAsync"),ve(rd,"intersect"),ve(Is,"intersectAsync"),ve(Fd,"joinByKey"),ve(Es,"last"),ve(vl,"lastAsync"),ve(Tu,"lastOrDefault"),ve(Jl,"lastOrDefaultAsync"),ve(yl,"max"),ve(Ql,"maxAsync"),ve(el,"min"),ve(ya,"minAsync"),ve(Gp,"ofType"),ve($a,"orderBy"),ve(sd,"orderByAsync"),ve(ld,"orderByDescending"),ve(Sc,"orderByDescendingAsync"),ve(cs,"partition"),ve(kh,"partitionAsync"),ve(ud,"reverse"),ve(Xf,"select"),ve(Ws,"selectAsync"),ve(Ss,"selectMany"),ve(Oc,"selectManyAsync"),ve($p,"sequenceEquals"),ve(Dc,"sequenceEqualsAsync"),ve(Hd,"single"),ve(eu,"singleAsync"),ve(Lh,"singleOrDefault"),ve(Yp,"singleOrDefaultAsync"),ve(Mu,"skip"),ve(Xp,"skipWhile"),ve(Mc,"skipWhileAsync"),ve(Au,"sum"),ve(qp,"sumAsync"),ve(zd,"take"),ve(Pu,"takeWhile"),ve(Je,"takeWhileAsync"),ve(Xt,"toArray"),ve(Bn,"toMap"),ve(zn,"toMapAsync"),ve(ki,"toObject"),ve(dr,"toObjectAsync"),ve(jr,"toSet"),ve($r,"union"),ve(Ms,"unionAsync"),ve(Us,"where"),ve(Jf,"whereAsync"),ve(Qf,"zip"),ve(em,"zipAsync")})(He),(Ie=>{const Ce=Ie.prototype,ve=(Se,Me)=>{const Ve=function(...Ge){return Se(this,...Ge)};Object.defineProperty(Ve,"length",{value:Se.length-1}),Ce[Me]=Ve};ve(pd,"aggregate"),ve(l_,"all"),ve(tm,"allAsync"),ve(gd,"any"),ve(eg,"anyAsync"),ve(Ks,"asAsync"),ve(Pc,"average"),ve(tg,"averageAsync"),ve(ng,"chunk"),ve(ig,"concatenate"),ve(nm,"contains"),ve(zh,"containsAsync"),ve(im,"count"),ve(d_,"countAsync"),ve(Ps,"defaultIfEmpty"),ve(rg,"distinct"),ve(kc,"distinctAsync"),ve(og,"each"),ve(rs,"eachAsync"),ve(Wd,"elementAt"),ve(Rc,"elementAtOrDefault"),ve(ag,"except"),ve(c_,"exceptAsync"),ve(h_,"first"),ve(Yo,"firstAsync"),ve(om,"firstOrDefault"),ve(Uh,"firstOrDefaultAsync"),ve(g_,"groupBy"),ve(am,"groupByAsync"),ve(dg,"groupByWithSel"),ve(Lc,"groupJoin"),ve(sm,"groupJoinAsync"),ve(Lc,"groupJoin"),ve(sm,"groupJoinAsync"),ve(hg,"intersect"),ve(__,"intersectAsync"),ve(lm,"joinByKey"),ve($h,"last"),ve(pg,"lastAsync"),ve(um,"lastOrDefault"),ve(_o,"lastOrDefaultAsync"),ve(js,"max"),ve(qh,"maxAsync"),ve(fg,"min"),ve(dm,"minAsync"),ve(mg,"ofType"),ve(Rs,"orderBy"),ve(hm,"orderByAsync"),ve(Cg,"orderByDescending"),ve(_d,"orderByDescendingAsync"),ve(v_,"partition"),ve(xg,"partitionAsync"),ve(vd,"reverse"),ve(Fc,"select"),ve(Lu,"selectAsync"),ve(ep,"selectMany"),ve(y_,"selectManyAsync"),ve(C_,"sequenceEquals"),ve(Vc,"sequenceEqualsAsync"),ve(bg,"single"),ve(Nc,"singleAsync"),ve(tp,"singleOrDefault"),ve(Sg,"singleOrDefaultAsync"),ve(Cd,"skip"),ve(pm,"skipWhile"),ve(x_,"skipWhileAsync"),ve(Og,"sum"),ve(ru,"sumAsync"),ve(Kd,"take"),ve(Wy,"takeWhile"),ve(Dg,"takeWhileAsync"),ve(Gs,"toArray"),ve(mm,"toMap"),ve(Tg,"toMapAsync"),ve(Bu,"toObject"),ve(zc,"toObjectAsync"),ve(Ig,"toSet"),ve(ip,"union"),ve(rp,"unionAsync"),ve(Pl,"where"),ve(kl,"whereAsync"),ve(Uc,"zip"),ve(ap,"zipAsync")})(ht),(()=>{var Ie;const{prototype:Ce}=ct,ve=Object.getOwnPropertyNames(yt.prototype);for(const Se of ve)Ce[Se]=null!==(Ie=Ce[Se])&&void 0!==Ie?Ie:yt.prototype[Se];Ce.all=function(Se){return this.every(Se)},Ce.any=function(Se){return Se?this.some(Se):0!==this.length},Ce.count=function(Se){if(Se){let Me=0;for(let Ve=0;Ve<this.length;Ve++)!0===Se(this[Ve])&&Me++;return Me}return this.length},Ce.elementAt=function(Se){if(Se<0||Se>=this.length)throw new St("index");return this[Se]},Ce.elementAtOrDefault=function(Se){return this[Se]||null},Ce.first=function(Se){if(Se){const Me=this.find(Se);if(void 0===Me)throw new Rt(Ct.NoMatch);return Me}if(0===this.length)throw new Rt(Ct.NoElements);return this[0]},Ce.firstOrDefault=function(Se){if(Se){const Me=this.find(Se);return void 0===Me?null:Me}return 0===this.length?null:this[0]},Ce.last=function(Se){if(Se){for(let Me=this.length-1;Me>=0;Me--){const Ve=this[Me];if(!0===Se(Ve))return Ve}throw new Rt(Ct.NoMatch)}if(0===this.length)throw new Rt(Ct.NoElements);return this[this.length-1]},Ce.lastOrDefault=function(Se){if(Se){for(let Me=this.length-1;Me>=0;Me--){const Ve=this[Me];if(!0===Se(Ve))return Ve}return null}return 0===this.length?null:this[this.length-1]},Ce.max=function(Se){if(0===this.length)throw new Rt(Ct.NoElements);if(Se){let Me=Number.NEGATIVE_INFINITY;for(let Ve=0;Ve<this.length;Ve++)Me=Math.max(Se(this[Ve]),Me);return Me}return Math.max.apply(null,this)},Ce.min=function(Se){if(0===this.length)throw new Rt(Ct.NoElements);if(Se){let Me=Number.POSITIVE_INFINITY;for(let Ve=0;Ve<this.length;Ve++)Me=Math.min(Se(this[Ve]),Me);return Me}return Math.min.apply(null,this)},Ce.reverse=function(){return Array.prototype.reverse.apply(this),this}})();var vm=l(5775),w_=l(2874),Zy=l(1129),Mw=l(4749),jd=l(1922),Bl=l(4370),ym=l(5732),kg=l(7128);Zt(Map),Zt(Set),(()=>{var Ie;const Ce=String.prototype,ve=Object.getOwnPropertyNames(yt.prototype);for(const Se of ve)Ce[Se]=null!==(Ie=Ce[Se])&&void 0!==Ie?Ie:yt.prototype[Se];Ce.first=function(Se){if(Se){for(let Me=0;Me<this.length;Me++){const Ve=this[Me];if(!0===Se(Ve))return Ve}throw new Rt(Ct.NoMatch)}if(0===this.length)throw new Rt(Ct.NoElements);return this[0]},Ce.firstOrDefault=function(Se){if(Se){for(let Me=0;Me<this.length;Me++){const Ve=this[Me];if(!0===Se(Ve))return Ve}return null}return 0===this.length?null:this[0]},Ce.count=function(Se){if(Se){let Me=0;for(let Ve=0;Ve<this.length;Ve++)!0===Se(this[Ve])&&Me++;return Me}return this.length},Ce.elementAt=function(Se){if(Se<0||Se>=this.length)throw new St("index");return this[Se]},Ce.elementAtOrDefault=function(Se){return this[Se]||null},Ce.last=function(Se){if(Se){for(let Me=this.length-1;Me>=0;Me--){const Ve=this[Me];if(!0===Se(Ve))return Ve}throw new Rt(Ct.NoMatch)}if(0===this.length)throw new Rt(Ct.NoElements);return this[this.length-1]},Ce.lastOrDefault=function(Se){if(Se){for(let Me=this.length-1;Me>=0;Me--){const Ve=this[Me];if(!0===Se(Ve))return Ve}return null}return 0===this.length?null:this[this.length-1]},Ce.reverse=function(){const Se=this;return new yt(function*Me(){for(let Ve=Se.length-1;Ve>=0;Ve--)yield Se[Ve]})}})(),Ft(Array),Ft(Int8Array),Ft(Int16Array),Ft(Int32Array),Ft(Uint8Array),Ft(Uint8ClampedArray),Ft(Uint16Array),Ft(Uint32Array),Ft(Float32Array),Ft(Float64Array);class au{constructor(Ce,ve,Se,Me,Ve){this.propertyConverter=Ce,this.scopeService=ve,this.http=Se,this.chatMessageService=Me,this.chatRelayService=Ve,this.stores=new Map,this.subscriptions=[],this.cacheUpdatedSource=new vm.xQ,this.cacheUpdated$=this.cacheUpdatedSource.asObservable(),this.storePushSource=new vm.xQ,this.storePush$=this.storePushSource.asObservable(),this.scope=this.scopeService.getScope(),this.database=new w_.f(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(),au.instanceCount++}getOdataStore(Ce){var ve=`${this.apiEndpoint}/getForChatRoom(chatRoomId='${Ce.toString()}')`;return new Ye({url:ve,key:"Id",keyType:"Guid",version:4})}getArrayStore(Ce){var ve=new Date;return null!=this.stores.get(Ce.toString())?new Promise((Se,Me)=>Se(this.stores.get(Ce.toString())||new c.Z)):this.database.chatMessages.where("parentId").equals(Ce.toString()).count().then(Se=>{if(Se>0)return this.database.chatMessages.where("parentId").equals(Ce.toString()).toArray().then(Me=>{var Ge=Me.map(kt=>JSON.parse(kt.jsonValue)).orderBy(kt=>kt.createdOn).toArray();let Et=new c.Z({key:"id",data:Ge,onLoaded:kt=>this.propertyConverter.convert(kt)});return this.stores.set(Ce.toString(),Et),Et.on("inserted",kt=>{this.chatMessageService.postMessage(kt.id,Ce,kt.displayContent,kt.replyId).toPromise().then(jt=>{})}),Et.on("removed",kt=>{this.chatMessageService.deleteMessage(kt).toPromise().then(jt=>{this.database.chatMessages.delete(kt.toString())})}),this.cacheUpdatedSource.next(Ce.valueOf()),Et});{let Me=`${this.fastApiEndpoint}/quick?chatRoomId=${Ce.toString()}`;return this.http.get(Me).toPromise().then(Ve=>{let Ge=[];return Ve.value.map(Et=>Ge.push({value:Et,id:Et.id.valueOf(),parentId:Ce.toString(),synchStartedOn:ve,synchCompletedOn:new Date,jsonValue:JSON.stringify(Et)})),Ge.forEach(Et=>{Et.value.id=Et.value.id.toString()}),Ge=Ge.orderBy(Et=>Et.value.createdOn).toArray(),Ge}).then(Ve=>this.database.chatMessages.where("parentId").equals(Ce.toString()).delete().then(Ge=>this.database.chatMessages.bulkAdd(Ve).catch(Et=>{console.log("error on chatroom message adding: room: "+Ce),console.log(Et)}).then(Et=>{var kt=Ve.map(Cn=>JSON.parse(Cn.jsonValue));kt=kt.orderBy(Cn=>Cn.createdOn).toArray();let jt=new c.Z({key:"id",data:kt,onLoaded:Cn=>this.propertyConverter.convert(Cn)});return this.stores.set(Ce.toString(),jt),jt.on("inserted",Cn=>{this.chatMessageService.postMessage(Cn.id,Ce,Cn.displayContent,Cn.replyId).toPromise().then(hi=>{})}),jt.on("removed",Cn=>{this.chatMessageService.deleteMessage(Cn).toPromise().then(hi=>{this.database.chatMessages.delete(Cn.toString())})}),this.chatRelayService.addToChatroom(Ce.toString()),this.cacheUpdatedSource.next(Ce.valueOf()),jt},Et=>(console.log("Foobar at api call promise"),null!=this.stores.get(Ce.toString())?(console.log("Resolving store from self fallback"),new Promise((kt,jt)=>{kt(this.stores.get(Ce.toString())||new c.Z)})):this.database.chatMessages.where("parentId").equals(Ce.toString()).toArray().then(kt=>{var jt=kt.map(hi=>JSON.parse(hi.jsonValue));let Cn=new c.Z({key:"id",data:jt,onLoaded:hi=>this.propertyConverter.convert(hi)});return Cn.on("inserted",hi=>{this.chatMessageService.postMessage(hi.id,Ce,hi.displayContent,hi.replyId).toPromise().then(xi=>{})}),Cn.on("removed",hi=>{this.chatMessageService.deleteMessage(hi).toPromise().then(xi=>{this.database.chatMessages.delete(hi.toString())})}),this.stores.set(Ce.toString(),Cn),this.cacheUpdatedSource.next(Ce.toString()),Cn})))))}})}registerRelay(){this.subscriptions.push(this.chatRelayService.msgReceived$.subscribe(Ce=>{this.getArrayStore(new o.Z(Ce.roomId)).then(ve=>{this.http.get(`${this.apiEndpoint}/GetById(id='${Ce.id.toString()}')`).toPromise().then(Se=>{ve.load().then(Me=>{if(Me.any(Ve=>Ve.id.toString()==Se.id.toString()))try{ve?.push([{type:"update",key:Se.id,data:Se}])}catch(Ve){console.error("push error",Ve,this)}else ve?.push([{type:"insert",data:Se}]);this.storePushSource.next(Ce.roomId);try{this.database.chatMessages.add({value:Se,id:Se.id.valueOf(),parentId:Ce.roomId,synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(Se)})}catch(Ve){console.error("add message to indexDb foobar",Ve,this)}})})},ve=>{console.error("Msg received error",ve,this)})}),this.chatRelayService.msgUpdated$.subscribe(Ce=>{this.getArrayStore(new o.Z(Ce.roomId)).then(ve=>{this.http.get(`${this.apiEndpoint}/GetById(id='${Ce.id.toString()}')`).toPromise().then(Se=>{ve.push([{type:"update",key:new o.Z(Ce.id),data:Se}]),this.storePushSource.next(Ce.roomId);try{this.database.chatMessages.update(Ce.id,{value:Se,id:Se.id.valueOf(),parentId:Ce.roomId,synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(Se)})}catch(Me){console.error("update message to indexDb foobar",Me)}},Se=>{console.error("Msg updated",Se)})})}),this.chatRelayService.msgDeleted$.subscribe(Ce=>{this.getArrayStore(new o.Z(Ce.roomId)).then(ve=>{ve.push([{type:"remove",key:Ce.id}]),this.storePushSource.next(Ce.roomId);try{this.database.chatMessages.delete(Ce.id)}catch(Se){console.log("delete message to indexDb foobar"),console.log(Se)}})}))}rebuildCacheAndGetStore(Ce){let ve=`${this.fastApiEndpoint}/quick?chatRoomId=${Ce.toString()}`;var Se=new Date;return this.http.get(ve).toPromise().then(Me=>{let Ve=[];return Me.value.map(Ge=>Ve.push({value:Ge,id:Ge.id.valueOf(),parentId:Ce.toString(),synchStartedOn:Se,synchCompletedOn:new Date,jsonValue:JSON.stringify(Ge)})),Ve.forEach(Ge=>{Ge.value.id=Ge.value.id.toString()}),Ve=Ve.orderBy(Ge=>Ge.value.createdOn).toArray(),Ve}).then(Me=>this.database.chatMessages.where("parentId").equals(Ce.toString()).delete().then(Ve=>this.database.chatMessages.bulkAdd(Me).catch(Ge=>{console.error("error on chatroom message adding: room: "+Ce),console.error(Ge)}).then(Ge=>{var Et=Me.map(jt=>JSON.parse(jt.jsonValue));Et=Et.orderBy(jt=>jt.createdOn).toArray();let kt=new c.Z({key:"id",data:Et,onLoaded:jt=>this.propertyConverter.convert(jt)});return kt.on("inserted",jt=>{this.chatMessageService.postMessage(jt.id,Ce,jt.displayContent,jt.replyId).toPromise().then(Cn=>{})}),kt.on("removed",jt=>{this.chatMessageService.deleteMessage(jt).toPromise().then(Cn=>{this.database.chatMessages.delete(jt.toString())})}),this.stores.set(Ce.toString(),kt),this.cacheUpdatedSource.next(Ce.toString()),kt},Ge=>(console.error("Foobar at api call promise",Ge),null!=this.stores.get(Ce.toString())?(console.log("Resolving store from self fallback"),new Promise((Et,kt)=>{Et(this.stores.get(Ce.toString())||new c.Z)})):this.database.chatMessages.where("parentId").equals(Ce.toString()).toArray().then(Et=>{var kt=Et.map(Cn=>JSON.parse(Cn.jsonValue));let jt=new c.Z({key:"id",data:kt,onLoaded:Cn=>this.propertyConverter.convert(Cn)});return jt.on("inserted",Cn=>{this.chatMessageService.postMessage(Cn.id,Ce,Cn.displayContent,Cn.replyId).toPromise().then(hi=>{})}),jt.on("removed",Cn=>{this.chatMessageService.deleteMessage(Cn).toPromise().then(hi=>{this.database.chatMessages.delete(Cn.toString())})}),this.stores.set(Ce.toString(),jt),this.cacheUpdatedSource.next(Ce.toString()),jt})))))}updateStore(Ce,ve,Se){var Me=ve.toISOString();return this.getArrayStore(Ce).then(Ve=>{let Ge=`${this.fastApiEndpoint}/quickDiff?chatRoomId=${Ce.toString()}&diffDate=${Me}`;Ve.load().then(Et=>{this.http.get(Ge).toPromise().then(jt=>{jt.value.length>0&&jt.value.forEach(Cn=>{if(Cn.modifiedOn&&!Cn.deletedOn){Ve.push([{type:"update",key:Cn.id,data:Cn}]);try{this.database.chatMessages.update(Cn.id.valueOf(),{value:Cn,id:Cn.id.valueOf(),parentId:Ce.valueOf(),synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(Cn)})}catch(hi){console.error("update message to indexDb foobar",hi,this)}}else if(Cn.modifiedOn&&Cn.deletedOn){Ve.push([{type:"remove",key:Cn.id}]);try{this.database.chatMessages.delete(Cn.id.valueOf())}catch(hi){console.error("delete message to indexDb foobar",hi,this)}}else{Ve.byKey(Cn.id).then(hi=>{Ve.push(hi?[{type:"update",key:Cn.id,data:Cn}]:[{type:"insert",data:Cn}])});try{this.database.chatMessages.get(Cn.id.valueOf()).then(hi=>{hi||this.database.chatMessages.add({value:Cn,id:Cn.id.valueOf(),parentId:Ce.valueOf(),synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(Cn)})})}catch(hi){console.error("add message to indexDb foobar",hi,this)}}}),this.checkForCorruption(Ce)})})})}checkForCorruption(Ce){let Se=(new Date).toISOString(),Me=`${this.fastApiEndpoint}/quickDiff?chatRoomId=${Ce.toString()}&diffDate=${Se}`;return this.http.get(Me).toPromise().then(Ve=>{let Ge=Ve.totalCount;return this.getArrayStore(Ce).then(Et=>{Et.load().then(kt=>kt.length!=Ge?(console.log("Corrupted store:",Ce,Ge,kt.length),this.dropBackendCache(Ce).then(jt=>jt?(this.chatRelayService.addToChatroom(Ce.toString()),this.rebuildCacheAndGetStore(Ce)):null)):null)})})}dropBackendCache(Ce){return this.http.get(this.scopeService.getScope().apiEndpoint+"chatMessagesFast/IsMyMembershipActive/"+Ce.toString()).toPromise().then(ve=>(ve&&console.log("Cache eviction call"),ve))}}au.instanceCount=0,au.\u0275fac=function(Ce){return new(Ce||au)(Bl.LFG(Mw.Z),Bl.LFG(jd.Z),Bl.LFG(ym.eN),Bl.LFG(Zy.Z),Bl.LFG(kg.L))},au.\u0275prov=Bl.Yz7({token:au,factory:au.\u0275fac,providedIn:"root"})},4846:(kn,he,l)=>{"use strict";l.d(he,{z:()=>f});var o=l(8239),c=l(1922),I=l(4370),C=l(5732);class f{constructor(p,s){this.http=p,this.scopeService=s,this.apiEndpoint="",this.translationCache=new Map,this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint}getAvailableTargetLanguages(){return this.http.get(`${this.apiEndpoint}translations/targetLanguages`).toPromise()}canTranslate(){if(!0===this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled){const s=this.scope.profile,u=this.scope.network.settings.languagePack.split("-")[0];if(null!==s.activeUserLanguage?.vendorLanguageCode&&u!==s.activeUserLanguage?.vendorLanguageCode)return!0}return!1}translateInternal(p,s){var u=this;return(0,o.Z)(function*(){if(!0===u.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled&&null!==s){const g=u.scope.profile,x=u.scope.network.settings.languagePack.split("-")[0];if(null!==g.activeUserLanguage?.vendorLanguageCode&&x!==g.activeUserLanguage?.vendorLanguageCode){const b=u.scope.globalSettings.configurations.translationEndpointInfo;return u.http.post(`${b.baseUrl}/api/Translations/vendorbatch`,{TenantId:"ab1c0d0b-c2d1-d0ab-1c0d-0ab1c0d0ab1c",Sources:p,IgnoreReplacements:!0,ToVendorLanguageId:s},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${b.token}`}}).toPromise().then(w=>w.translations).catch(w=>{console.error("TRANS FETCH FAIL",w);const T=p.map(k=>({source:k,translation:k}));return Promise.resolve(T)})}}return{translations:p.map(g=>({source:g,translation:g}))}})()}getCachedOrTranslate(p,s){var u=this;return(0,o.Z)(function*(){const d=JSON.stringify({textEntries:p,targetVendorLanguageId:s});if(u.translationCache.has(d))return u.translationCache.get(d);const h=u.translateInternal(p,s);return u.translationCache.set(d,h),h})()}translateByUserLanguageCode(p){if(this.canTranslate()){const s=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration.VendorId,d=this.scope.profile.activeUserLanguage?.vendorLanguageCode,g=this.scope.globalSettings.configurations.availableVendorLanguages.find(x=>x.id===s).supportedVendorLanguages.find(x=>x.languageCode===d||x.languageISO639Code===d);return this.getCachedOrTranslate(p,g?.id)}return this.getCachedOrTranslate(p,null)}translateToOrigin(p){if(this.canTranslate()){const s=this.scope.network.settings.languagePack.split("-")[0],u=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration.VendorId,h=this.scope.globalSettings.configurations.availableVendorLanguages.find(g=>g.id===u).supportedVendorLanguages.find(g=>g.languageCode===s||g.languageISO639Code===s);return this.getCachedOrTranslate(p,h?.id)}return this.getCachedOrTranslate(p,null)}}f.\u0275fac=function(p){return new(p||f)(I.LFG(C.eN),I.LFG(c.Z))},f.\u0275prov=I.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})},7046:(kn,he,l)=>{"use strict";l.d(he,{D:()=>p});var o=l(8239),c=l(5732),I=l(6608),C=l(5775),f=l(1922),a=l(4370);class p{constructor(u,d){this.scopeService=d,this.tokenData={token:"",expiresOn:new Date(1,1,1),fileTokens:null},this.sourceTimes=(0,I.F)(5e3),this.isAuthenticatedSource=new C.xQ,this.isAuthenticated$=this.isAuthenticatedSource.asObservable(),this.fetchingTokenPromise=null,this.http=new c.eN(u),this.scope=this.scopeService}getToken(){var u=this;return(0,o.Z)(function*(){return u.tokenData=yield u.getTokenData(),u.tokenData.token})()}getTokenData(){var u=this;return(0,o.Z)(function*(){const d=new Date;return u.tokenData.token&&d.getTime()<u.tokenData.expiresOn.getTime()?u.tokenData:(u.fetchingTokenPromise||(u.fetchingTokenPromise=new Promise(function(){var h=(0,o.Z)(function*(g){const x=yield u.http.get(u.scope.getMiniScope().apiEndpoint+"chatAuthentication/token").pipe().toPromise();x.expiresOn=new Date(x.expiresOn),u.tokenData=x,u.isAuthenticatedSource.next(u.tokenData),u.fetchingTokenPromise=null,g(u.tokenData)});return function(g){return h.apply(this,arguments)}}())),u.fetchingTokenPromise)})()}expireToken(u){var d=this;return(0,o.Z)(function*(){d.tokenData.expiresOn=new Date(1,1,1),yield d.getToken()})()}}p.\u0275fac=function(u){return new(u||p)(a.LFG(c.jN),a.LFG(f.Z))},p.\u0275prov=a.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})},556:(kn,he,l)=>{"use strict";l.d(he,{V:()=>h});var o=l(6608),c=l(5775),I=l(787),C=l(1922),f=l(4370),a=l(7128),p=l(4474),s=l(7800),u=l(7046),d=l(5732);class h{constructor(x,b,y,E,S,O,w){this.chatRelayService=x,this.globalService=b,this.keepAliveService=y,this.router=E,this.authenticationService=S,this.http=O,this.scope=w,this.routeActive=!1,this.badge=0,this.sourceTimes=(0,o.F)(500),this.roomBadges={},this.connected=!1,this.activeRoomId="",this.badgesSource=new c.xQ,this.badgeUpdates$=this.badgesSource.asObservable(),this.isResumedSource=new c.xQ,this.isResumed$=this.isResumedSource.asObservable(),this.subscriptions=[],this.userSettings={notificationsDisabled:!1,readStatusDisabled:!1},this.tokenReceived=!1,this.subscriptions.push(this.keepAliveService.isResumed$.subscribe(T=>{this.isResumedSource.next(T),T&&this.loadBadges().then(k=>{this.badge=k.totalCount,this.roomBadges=k.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})})}),this.subs=this.sourceTimes.subscribe(T=>{this.routeActive=!!window.location.href.endsWith(this.activeRoomId)})),this.globalService.getSettings().then(T=>{this.userSettings=T,this.subscriptions.push(this.chatRelayService.roomCreated$.subscribe(k=>{}),this.chatRelayService.msgReceived$.subscribe(k=>this.onMessageReceived(k)),this.chatRelayService.isConnected$.subscribe(k=>{this.connected=k}))}),this.authenticationService.isAuthenticated$.subscribe(T=>{this.tokenReceived=!0,this.isResumedSource.next(!0),this.loadBadges().then(k=>{this.badge=k.totalCount,this.roomBadges=k.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})})})}ngOnDestroy(){this.subscriptions.forEach(x=>x.unsubscribe())}onMessageReceived(x){if(!this.userSettings?.notificationsDisabled){if(!this.roomBadges[x.roomId])return void this.loadBadges().then(b=>{this.badge=b.totalCount,this.roomBadges=b.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})});if(x.fromChatMemberId!==this.roomBadges[x.roomId].myMembershipId.toString()){if(x.roomId===this.activeRoomId&&this.routeActive)return this.roomBadges[x.roomId].active=!0,void this.updateLastVisit(this.roomBadges[x.roomId].myMembershipId).then(b=>{});this.roomBadges[x.roomId].count=this.roomBadges[x.roomId].count+1,this.roomBadges[x.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(x){const b=this.http.post(this.scope.getScope().apiEndpoint+"chatMembers("+x+")/UpdateLastVisit",null).toPromise();return b.then(y=>this.loadBadges().then(E=>{this.badge=E.totalCount,this.roomBadges=E.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})})),b}setActiveRoom(x){this.activeRoomId=x}}h.\u0275fac=function(x){return new(x||h)(f.LFG(a.L),f.LFG(I.Z),f.LFG(p.g),f.LFG(s.F0),f.LFG(u.D),f.LFG(d.eN),f.LFG(C.Z))},h.\u0275prov=f.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})},4632:(kn,he,l)=>{"use strict";l.d(he,{$:()=>C});var o=l(1922),c=l(4370),I=l(5732);class C{constructor(a,p){this.http=a,this.scopeService=p,this.apiEndpoint=`${p.getScope().apiEndpoint}chatMembers`}post(a){return this.http.post(`${this.apiEndpoint}`,a)}hide(a){return this.http.post(`${this.apiEndpoint}/HideChat/${a}`,null)}delete(a){return this.http.delete(`${this.apiEndpoint}/${a.toString()}`)}toggleMute(a){return this.http.post(`${this.apiEndpoint}/ToggleChatMuted/${a}`,null)}promoteToAdmin(a){return this.http.post(`${this.apiEndpoint}/${a}/promoteToAdmin`,null)}revokeAdminPrivileges(a){return this.http.post(`${this.apiEndpoint}/${a}/revokeAdminPrivileges`,null)}}C.\u0275fac=function(a){return new(a||C)(c.LFG(I.eN),c.LFG(o.Z))},C.\u0275prov=c.Yz7({token:C,factory:C.\u0275fac})},1129:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>s});var o=l(886),c=l(5917),I=l(4749),C=l(1922),f=l(4370),a=l(5732),p=l(7128);class s{constructor(h,g,x,b){this.http=h,this.scopeService=g,this.propertyConverter=x,this.chatRelayService=b,this.apiEndpoint=`${this.scopeService.getScope().apiEndpoint}chatMessages`}postMessage(h,g,x,b){return this.http.post(`${this.apiEndpoint}`,{id:h,chatRoomId:g,displayContent:x,replyId:b})}postAttachmentMessage(h,g,x,b){return this.http.post(`${this.apiEndpoint}`,{id:h,chatRoomId:g,displayContent:x,chatMessageAttachments:[b]})}updateMessage(h,g){return this.http.patch(`${this.apiEndpoint}/${h}`,{displayContent:g})}deleteMessage(h){return this.http.delete(`${this.apiEndpoint}/${h}`)}}s.DUMMY_LOADER={dataSource:new o.Z([]),pageSize:20,totalCount:0,nextPage:()=>(0,c.of)(),previousPage:()=>(0,c.of)(),onDestroy:()=>{},addMessage:()=>{}},s.\u0275fac=function(h){return new(h||s)(f.LFG(a.eN),f.LFG(C.Z),f.LFG(I.Z),f.LFG(p.L))},s.\u0275prov=f.Yz7({token:s,factory:s.\u0275fac})},7128:(kn,he,l)=>{"use strict";l.d(he,{L:()=>s});var o=l(1704),c=l(3473),I=l(5775),C=l(1922),f=l(4370),a=l(7046),p=l(5732);class s{constructor(d,h,g){this.scope=d,this.auth=h,this.http=g,this.SignalrHubUrl="http://localhost:5269/hub/chatHub",this.isConnected=!1,this.roomDeletedSource=new I.xQ,this.roomDeleted$=this.roomDeletedSource.asObservable(),this.roomCreatedSource=new I.xQ,this.roomCreated$=this.roomCreatedSource.asObservable(),this.isConnectedSource=new I.xQ,this.isConnected$=this.isConnectedSource.asObservable(),this.msgReceivedSource=new I.xQ,this.msgReceived$=this.msgReceivedSource.asObservable(),this.msgUpdatedSource=new I.xQ,this.msgUpdated$=this.msgUpdatedSource.asObservable(),this.msgDeletedSource=new I.xQ,this.msgDeleted$=this.msgDeletedSource.asObservable(),this._hubConnection=null,this.SignalrHubUrl=this.scope.getScope().globalSettings.configurations.chatServerConfig.baseUrl+"hub/chatHub",this._hubConnection=(new o.s).withUrl(this.SignalrHubUrl,{accessTokenFactory:()=>this.auth.getToken()}).withAutomaticReconnect().configureLogging(c.i.None).build(),this._hubConnection.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}).catch(x=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onclose(x=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onreconnected(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}),this._hubConnection.onreconnecting(x=>{console.warn("apicodo is trying to reconnect to server. please wait or try again later")}),this._hubConnection.on("chatRoomRemoved",x=>{this.roomDeletedSource.next(x.payload)}),this._hubConnection.on("chatRoomCreated",x=>{(this.scope.getScope().currentChapter.slug===x.payload.chapterSlug||this.scope.getScope().network.slug===x.payload.networkSlug)&&this.http.get(this.scope.getScope().apiEndpoint+"chatMessagesFast/IsMyMembershipActive/"+x.payload.id).toPromise().then(b=>{b&&(this._hubConnection?.send("addToGroup",x.payload.id),this.auth.expireToken(this).then(y=>{this.roomCreatedSource.next(x.payload)}))})}),this._hubConnection.on("newMessageSent",x=>{this.msgReceivedSource.next(x.payload)}),this._hubConnection.on("chatMessageUpdated",x=>{this.msgUpdatedSource.next(x.payload)}),this._hubConnection.on("chatMessageDeleted",x=>{this.msgDeletedSource.next(x.payload)})}addToChatroom(d){this.isConnected&&this._hubConnection?.send("addToGroup",d)}reconnect(){this.isConnected=!1,this.isConnectedSource.next(!1),this._hubConnection?.stop().then(()=>{this._hubConnection?.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}).catch(d=>{this.isConnected=!1,this.isConnectedSource.next(!1)})})}}s.\u0275fac=function(d){return new(d||s)(f.LFG(C.Z),f.LFG(a.D),f.LFG(p.eN))},s.\u0275prov=f.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})},3885:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>C});var o=l(1922),c=l(4370),I=l(5732);class C{constructor(a,p){this.http=a,this.scopeService=p,this.scope=p.getScope()}createOneToOneChat(a){return this.http.post(`${this.scope.apiEndpoint}chatRooms`,{users:[{userGuid:a.toString(),isAdmin:!0}],type:"Private",isNetworkWide:!1})}getRoom(a){return this.http.get(`${this.scope.apiEndpoint}chatRoomsFast/getById/${a.toString()}`)}delete(a){return this.http.delete(`${this.scope.apiEndpoint}chatRooms/${a}`)}createGroupChat(a){return this.http.post(`${this.scope.apiEndpoint}chatRooms`,a)}joinSubscription(a){return this.http.post(`${this.scope.apiEndpoint}chatRooms/${a}/join`,null)}put(a,p){return this.http.put(`${this.scope.apiEndpoint}chatRooms/${a}`,p)}updateImage(a,p){return this.http.post(`${this.scope.apiEndpoint}chatRooms/${a}/UpdateImage/${p}`,null)}}C.\u0275fac=function(a){return new(a||C)(c.LFG(I.eN),c.LFG(o.Z))},C.\u0275prov=c.Yz7({token:C,factory:C.\u0275fac})},787:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>C});var o=l(1922),c=l(4370),I=l(5732);class C{constructor(a,p){this.http=a,this.scopeService=p,this.scope=p.getScope()}saveSettings(a){return this.http.post(this.scopeService.getScope().apiEndpoint+"globalUserSettings/chapter/chat",a).toPromise()}getSettings(){return this.http.get(this.scopeService.getScope().apiEndpoint+"globalUserSettings/chapter/chat").toPromise()}}C.\u0275fac=function(a){return new(a||C)(c.LFG(I.eN),c.LFG(o.Z))},C.\u0275prov=c.Yz7({token:C,factory:C.\u0275fac})},4474:(kn,he,l)=>{"use strict";l.d(he,{g:()=>s});var o=l(1704),c=l(3473),I=l(5775),C=l(6608),f=l(1922),a=l(4370),p=l(7046);class s{constructor(d,h){this.scope=d,this.auth=h,this._hubConnection=null,this.SignalrHubUrl="http://localhost:5269/hub/notificationHub",this.isConnected=!1,this.sourceTimes=(0,C.F)(5e3),this.isConnectedSource=new I.xQ,this.isConnected$=this.isConnectedSource.asObservable(),this.lastTime=(new Date).getTime(),this.acceptableDelta=2500,this.isSuspended=!1,this.isResumedSource=new I.xQ,this.isResumed$=this.isResumedSource.asObservable(),this.SignalrHubUrl=this.scope.getScope().globalSettings.configurations.chatServerConfig.baseUrl+"hub/notificationHub",this._hubConnection=(new o.s).withUrl(this.SignalrHubUrl,{accessTokenFactory:()=>this.auth.getToken()}).withAutomaticReconnect().configureLogging(c.i.None).build(),this._hubConnection.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}).catch(g=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onclose(g=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onreconnected(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}),this.subs=this.sourceTimes.subscribe(g=>{if(this.isConnected)try{this._hubConnection?.send("ping")}catch{this._hubConnection?.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)})}const x=(new Date).getTime();x-this.lastTime>7500?(this.isSuspended=!0,setTimeout(()=>{this.isResumedSource.next(!0)},0)):this.isSuspended=!1,this.lastTime=x})}}s.\u0275fac=function(d){return new(d||s)(a.LFG(f.Z),a.LFG(p.D))},s.\u0275prov=a.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})},4749:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>I});var o=l(6492),c=l(4370);class I{constructor(){this.guidRegex=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i}convert(f){if(f&&"object"==typeof f&&!(f instanceof o.Z)){if(f instanceof Array)for(const a of f)this.convert(a);for(const a of Object.keys(f)){const p=f[a];if(p instanceof Array)for(const s of p)this.convert(s);p instanceof Object&&this.convert(p),"string"==typeof p&&(I.dateRegex.test(p)?f[a]=new Date(p):this.guidRegex.test(p)?f[a]=new o.Z(p):"avatarImageUrl"===a&&!p.includes("?preset=profile-avatar")&&(f[a]=`${p}?preset=profile-avatar`))}}}}I.dateRegex=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:\+|-)\d{2}:\d{2})?)?$/,I.\u0275fac=function(f){return new(f||I)},I.\u0275prov=c.Yz7({token:I,factory:I.\u0275fac})},1922:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>C});var o=l(882),c=l(7906),I=l(4370);class C{constructor(){this.scope=window.scope,this.observer=new o.y(a=>{this.scope&&(a.next(this.scope),a.complete());const p=setInterval(()=>{this.scope&&(a.next(this.scope),a.complete(),clearInterval(p)),this.loadScope()},1e3)})}loadScope(){this.scope=window.scope}getScope(){return this.scope?this.scope:(this.loadScope(),window.scope)}getUserClientInfo(){const a=navigator.userAgent.includes("Merkurist_IAB")||!1,p=navigator.userAgent.replace(/.*\[Merkurist_IAB\/(.*)\]/gi,function(h,g){return g}),s=navigator.userAgent.includes("Android")?c.I.Android:c.I.iOS,u=a&&s===c.I.Android?parseFloat((window.navigator.userAgent.match("Android ([0-9.]+)")||[])[1]):-1,d={isApp:a,appVersion:"",appPlatform:c.I.Web,androidVersion:u};return a&&(d.appVersion=p,d.appPlatform=s),d}getMiniScope(){var a=window.miniScope;return a.apiEndpoint="/api/"+a.networkSlug+"/"+a.chapterSlug+"/",window.miniScope}}C.\u0275fac=function(a){return new(a||C)},C.\u0275prov=I.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})},1515:(kn,he,l)=>{"use strict";l.d(he,{Z:()=>ee});var o=l(5732),c=l(7046),I=l(1129),C=l(7128),f=l(3885),a=l(4749),p=l(787),s=l(1922),u=l(4632),d=l(556),h=l(8692),g=l(8239);class x{constructor(q,Z,X,M,se,ge,De){this.url=q,this.data=Z,this.createdOn=X,this.mimeType=M,this.tag=se,this.width=ge,this.height=De}}var y=l(8143);const S=new class E extends y.ZP{constructor(){super("ImageDB"),this.version(2).stores({images:"&url"}),this.images.mapToClass(x)}};function B(G){return S.images.where("url").equals(G).toArray()}var V=l(882),U=l(4370),K=l(5998);class Y{constructor(q,Z){this.sanitizer=q,this.httpClient=Z}getImageSrc(q){var Z=this;return(0,g.Z)(function*(){return yield Z.getImageURL(q)})()}getImageURL(q){var Z=this;return(0,g.Z)(function*(){let X=yield B(q);if(0==X.length)try{let se=yield Z.fetchImage(q);return null!=se?(Z.saveImageToDatabase(q,se),{data:q,from:"network"}):{data:q,from:"network"}}catch{return{data:q,from:"network"}}const M=Z.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(X[0].data));return{data:Z.getSafeImageUrl(M),from:"cache"}})()}getSafeImageUrl(q){return`${q.changingThisBreaksApplicationSecurity}`}fetchImage(q){try{return this.httpClient.get(q,{responseType:"blob"}).toPromise()}catch{return V.y.create(null).toPromise()}}saveImageToDatabase(q,Z){return(0,g.Z)(function*(){0==(yield B(q)).length&&function R(G){S.images.put(G)}(new x(q,Z,new Date,Z.type))})()}}Y.\u0275fac=function(q){return new(q||Y)(U.LFG(K.H7),U.LFG(o.eN))},Y.\u0275prov=U.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"});var J=l(39),j=l(4846);class ee{}ee.\u0275fac=function(q){return new(q||ee)},ee.\u0275mod=U.oAB({type:ee}),ee.\u0275inj=U.cJS({providers:[s.Z,a.Z,f.Z,C.L,c.D,C.L,I.Z,u.$,p.Z,d.V,Y,j.z],imports:[o.JF,h.ez,J.e]})},1692:(kn,he,l)=>{"use strict";var o=l(5998),c=l(4370);function I(){throw new Error("AngularJS v1.x is not loaded!")}const C=()=>I();C.cleanData=I;let f={bootstrap:I,module:I,element:C,injector:I,version:void 0,resumeBootstrap:I,getTestability:I};try{window.hasOwnProperty("angular")&&(f=window.angular)}catch{}const h=(Ln,Ut)=>f.module(Ln,Ut),g=Ln=>f.element(Ln);g.cleanData=Ln=>f.element.cleanData(Ln);const O="$delegate",k="$injector",R="$interval",Y="$$testability",j="$$angularDowngradedModuleCount",G="$$angularInjector",q="$$angularLazyModuleRef",X="$$angularUpgradeAppType",M="?^^"+G,ge="$$UpgradeModule";class De{constructor(Ut,Zt){this.prop=Ut,this.attr=Zt,this.bracketAttr=`[${this.attr}]`,this.parenAttr=`(${this.attr})`,this.bracketParenAttr=`[(${this.attr})]`;const jn=this.attr.charAt(0).toUpperCase()+this.attr.slice(1);this.onAttr=`on${jn}`,this.bindAttr=`bind${jn}`,this.bindonAttr=`bindon${jn}`}}function fe(Ln){g.cleanData([Ln]),function re(Ln){return ae(Ln.querySelectorAll)}(Ln)&&g.cleanData(Ln.querySelectorAll("*"))}function _e(Ln){return"$"+Ln+"Controller"}function le(Ln){return Ln.overriddenName||Ln.name||Ln.toString().split("\n")[0]}function pe(Ln){return Ln.has(j)?Ln.get(j):0}function Ee(Ln){return Ln.has(X)?Ln.get(X):0}function ae(Ln){return"function"==typeof Ln}function ft(Ln,Ut){return Ln===Ut||Ln!=Ln&&Ut!=Ut}const tt={__UNINITIALIZED__:!0};class Be{constructor(Ut,Zt,jn,Xe,Lt,wt,pn,qn,Qe){this.element=Ut,this.attrs=Zt,this.scope=jn,this.ngModel=Xe,this.parentInjector=Lt,this.$compile=wt,this.$parse=pn,this.componentFactory=qn,this.wrapCallback=Qe,this.implementsOnChanges=!1,this.inputChangeCount=0,this.inputChanges={},this.componentScope=jn.$new()}compileContents(){const Ut=[],jn=this.groupProjectableNodes().map(Xe=>this.$compile(Xe));return this.element.empty(),jn.forEach(Xe=>{Xe(this.scope,Lt=>{Ut.push(Lt),this.element.append(Lt)})}),Ut}createComponentAndSetup(Ut,Zt=!1,jn=!0){const Xe=this.createComponent(Ut);return this.setupInputs(Zt,jn,Xe),this.setupOutputs(Xe.componentRef),this.registerCleanup(Xe.componentRef),Xe.componentRef}createComponent(Ut){const jn=c.zs3.create({providers:[{provide:"$scope",useValue:this.componentScope}],parent:this.parentInjector,name:"DowngradeComponentAdapter"}),Xe=this.componentFactory.create(jn,Ut,this.element[0]),Lt=Xe.injector.get(c.sBO),wt=Xe.changeDetectorRef,pn=Xe.injector.get(c.dDg,null);return pn&&Xe.injector.get(c.eoX).registerApplication(Xe.location.nativeElement,pn),function Ne(Ln,Ut){Ln&&function Pe(Ln){return"function"==typeof Ln.writeValue&&"function"==typeof Ln.registerOnChange}(Ut)&&(Ln.$render=()=>{Ut.writeValue(Ln.$viewValue)},Ut.registerOnChange(Ln.$setViewValue.bind(Ln)),"function"==typeof Ut.registerOnTouched&&Ut.registerOnTouched(Ln.$setTouched.bind(Ln)))}(this.ngModel,Xe.instance),{viewChangeDetector:Lt,componentRef:Xe,changeDetector:wt}}setupInputs(Ut,Zt=!0,{componentRef:jn,changeDetector:Xe,viewChangeDetector:Lt}){const wt=this.attrs,pn=this.componentFactory.inputs||[];for(const lt of pn){const xt=new De(lt.propName,lt.templateName);let Tn=null;if(wt.hasOwnProperty(xt.attr)){const ii=(Pi=>{let Li=tt;return rr=>{ft(Li,rr)||(Li===tt&&(Li=rr),this.updateInput(jn,Pi,Li,rr),Li=rr)}})(xt.prop);wt.$observe(xt.attr,ii);let wi=this.componentScope.$watch(()=>{wi(),wi=null,ii(wt[xt.attr])})}else wt.hasOwnProperty(xt.bindAttr)?Tn=wt[xt.bindAttr]:wt.hasOwnProperty(xt.bracketAttr)?Tn=wt[xt.bracketAttr]:wt.hasOwnProperty(xt.bindonAttr)?Tn=wt[xt.bindonAttr]:wt.hasOwnProperty(xt.bracketParenAttr)&&(Tn=wt[xt.bracketParenAttr]);if(null!=Tn){const ii=(wi=>(Pi,Li)=>this.updateInput(jn,wi,Li,Pi))(xt.prop);this.componentScope.$watch(Tn,ii)}}const qn=()=>Xe.detectChanges(),Qe=this.componentFactory.componentType.prototype;if(this.implementsOnChanges=!(!Qe||!Qe.ngOnChanges),this.componentScope.$watch(()=>this.inputChangeCount,this.wrapCallback(()=>{if(this.implementsOnChanges){const lt=this.inputChanges;this.inputChanges={},jn.instance.ngOnChanges(lt)}Lt.markForCheck(),Zt||qn()})),Zt&&this.componentScope.$watch(this.wrapCallback(qn)),Ut||!Zt){let lt=this.componentScope.$watch(()=>{lt(),lt=null,this.parentInjector.get(c.z2F).attachView(jn.hostView)})}}setupOutputs(Ut){const Zt=this.attrs,jn=this.componentFactory.outputs||[];for(const Xe of jn){const Lt=new De(Xe.propName,Xe.templateName),wt=Lt.bindonAttr.substring(0,Lt.bindonAttr.length-6),pn=`[(${Lt.bracketParenAttr.substring(2,Lt.bracketParenAttr.length-8)})]`;Zt.hasOwnProperty(wt)&&this.subscribeToOutput(Ut,Lt,Zt[wt],!0),Zt.hasOwnProperty(pn)&&this.subscribeToOutput(Ut,Lt,Zt[pn],!0),Zt.hasOwnProperty(Lt.onAttr)&&this.subscribeToOutput(Ut,Lt,Zt[Lt.onAttr]),Zt.hasOwnProperty(Lt.parenAttr)&&this.subscribeToOutput(Ut,Lt,Zt[Lt.parenAttr])}}subscribeToOutput(Ut,Zt,jn,Xe=!1){const Lt=this.$parse(jn),wt=Lt.assign;if(Xe&&!wt)throw new Error(`Expression '${jn}' is not assignable!`);const pn=Ut.instance[Zt.prop];if(!pn)throw new Error(`Missing emitter '${Zt.prop}' on component '${le(this.componentFactory.componentType)}'!`);pn.subscribe({next:Xe?qn=>wt(this.scope,qn):qn=>Lt(this.scope,{$event:qn})})}registerCleanup(Ut){const Zt=Ut.injector.get(c.eoX),jn=this.wrapCallback(()=>Ut.destroy());let Xe=!1;this.element.on("$destroy",()=>{Xe||this.componentScope.$destroy()}),this.componentScope.$on("$destroy",()=>{Xe||(Xe=!0,Zt.unregisterApplication(Ut.location.nativeElement),fe(this.element[0]),jn())})}updateInput(Ut,Zt,jn,Xe){this.implementsOnChanges&&(this.inputChanges[Zt]=new c.WD2(jn,Xe,jn===Xe)),this.inputChangeCount++,Ut.instance[Zt]=Xe}groupProjectableNodes(){return function mt(Ln,Ut){const Zt=[];for(let jn=0,Xe=Ln.length;jn<Xe;++jn)Zt[jn]=[];for(let jn=0,Xe=Ut.length;jn<Xe;++jn){const Lt=Ut[jn],wt=nn(Lt,Ln);null!=wt&&Zt[wt].push(Lt)}return Zt}(this.componentFactory.ngContentSelectors,this.element.contents())}}function nn(Ln,Ut){const Zt=[];let jn=-1;for(let Xe=0;Xe<Ut.length;Xe++){const Lt=Ut[Xe];"*"===Lt?jn=Xe:ke(Ln,Lt)&&Zt.push(Xe)}return Zt.sort(),-1!==jn&&Zt.push(jn),Zt.length?Zt[0]:null}function ke(Ln,Ut){const Zt=Element.prototype;return Ln.nodeType===Node.ELEMENT_NODE&&(Zt.matches??Zt.msMatchesSelector).call(Ln,Ut)}class me{constructor(){this.resolved=!1,this.callbacks=[]}static all(Ut){const Zt=new me;let jn=0;const Xe=[],Lt=(wt,pn)=>{Xe[wt]=pn,++jn===Ut.length&&Zt.resolve(Xe)};return Ut.forEach((wt,pn)=>{!function $e(Ln){return!!Ln&&ae(Ln.then)}(wt)?Lt(pn,wt):wt.then(qn=>Lt(pn,qn))}),Zt}resolve(Ut){this.resolved||(this.value=Ut,this.resolved=!0,this.callbacks.forEach(Zt=>Zt(Ut)),this.callbacks.length=0)}then(Ut){this.resolved?Ut(this.value):this.callbacks.push(Ut)}}function xe(Ln){const Ut=function(Zt,jn,Xe){const Lt=3===Ee(jn),wt=Lt?Qe=>()=>c.R0b.isInAngularZone()?Qe():pn.run(Qe):Qe=>Qe;let pn;const qn=Lt&&pe(jn)>1;return{restrict:"E",terminal:!0,require:[M,"?ngModel"],link:(Qe,lt,xt,Tn)=>{const ii=Tn[1],wi=Tn[0];let Pi,Li=!1;if(!wi||qn){const mo=Ln.downgradedModule||"",bo=`${q}${mo}`,wo=`instantiating component '${le(Ln.component)}'`;!function oe(Ln,Ut,Zt,jn){const Xe=Ee(Ln),Lt=pe(Ln);switch(Xe){case 1:case 2:if(Ut)throw new Error(`Error while ${jn}: '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(!Ut&&Lt>=2)throw new Error(`Error while ${jn}: '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(!Ln.has(Zt))throw new Error(`Error while ${jn}: 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 ${jn}: Not a valid '@angular/upgrade' application.\nDid you forget to downgrade an Angular module or include it in the AngularJS application?`)}}(jn,mo,bo,wo);const Lo=jn.get(bo);Pi=Lo.injector??Lo.promise}const qr=(mo,bo)=>{const Lo=bo.get(c._Vd).resolveComponentFactory(Ln.component);if(!Lo)throw new Error(`Expecting ComponentFactory for: ${le(Ln.component)}`);const Jo=new Te(lt),ia=new Be(lt,xt,Qe,ii,mo,Zt,Xe,Lo,wt),Wo=ia.compileContents(),aa=ia.createComponentAndSetup(Wo,Lt,Ln.propagateDigest);Jo.resolve(aa.injector),Li&&Qe.$evalAsync(()=>{})},lo=Lt?(mo,bo)=>{pn||(pn=mo.get(c.R0b)),wt(()=>qr(mo,bo))()}:qr;me.all([wi||Pi,Pi||wi]).then(([mo,bo])=>lo(mo,bo)),Li=!0}}};return Ut.$inject=["$compile",k,"$parse"],Ut}class Te extends me{constructor(Ut){super(),this.element=Ut,this.injectorKey=_e(G),Ut.data(this.injectorKey,this)}resolve(Ut){this.element.data(this.injectorKey,Ut),this.element=null,super.resolve(Ut)}}let Ct=null;const qe=[{provide:"$injector",useFactory:function fn(){if(!Ct)throw new Error("Trying to get the AngularJS injector before it being set.");const Ln=Ct;return Ct=null,Ln},deps:[]},{provide:"$rootScope",useFactory:function ct(Ln){return Ln.get("$rootScope")},deps:["$injector"]},{provide:"$compile",useFactory:function He(Ln){return Ln.get("$compile")},deps:["$injector"]},{provide:"$parse",useFactory:function Dt(Ln){return Ln.get("$parse")},deps:["$injector"]}];class Ht{constructor(Ut){this.modInjector=Ut}get(Ut,Zt){return Zt===c.eQZ?Zt:this.modInjector.get(Ut,Zt)}}let Hn=(()=>{class Ln{constructor(Zt,jn,Xe){this.ngZone=jn,this.platformRef=Xe,this.injector=new Ht(Zt)}bootstrap(Zt,jn=[],Xe){const Lt=ge+".init";h(Lt,[]).constant(X,2).value(G,this.injector).factory(q,[G,Qe=>({injector:Qe})]).config(["$provide",k,(Qe,lt)=>{lt.has(Y)&&Qe.decorator(Y,[O,xt=>{const Tn=xt.whenStable,ii=this.injector,wi=function(Pi){Tn.call(xt,function(){const Li=ii.get(c.dDg);Li.isStable()?Pi():Li.whenStable(wi.bind(xt,Pi))})};return xt.whenStable=wi,xt}]),lt.has(R)&&Qe.decorator(R,[O,xt=>{let Tn=(ii,wi,Pi,Li,...rr)=>this.ngZone.runOutsideAngular(()=>xt((...Cr)=>{setTimeout(()=>{this.ngZone.run(()=>ii(...Cr))})},wi,Pi,Li,...rr));return Object.keys(xt).forEach(ii=>Tn[ii]=xt[ii]),xt.hasOwnProperty("flush")&&(Tn.flush=()=>(xt.flush(),Tn)),Tn}])}]).run([k,Qe=>{this.$injector=Qe;const lt=Qe.get("$rootScope");(function Rt(Ln){Ct=Ln})(Qe),this.injector.get(k),g(Zt).data(_e(G),this.injector),this.platformRef.onDestroy(()=>function ie(Ln){const Ut=Ln.get("$rootElement");Ln.get("$rootScope").$destroy(),fe(Ut[0])}(Qe)),setTimeout(()=>{const xt=this.ngZone.onMicrotaskEmpty.subscribe(()=>lt.$$phase?lt.$evalAsync():lt.$digest());lt.$on("$destroy",()=>{xt.unsubscribe()})},0)}]);const wt=h(ge,[Lt].concat(jn)),pn=window.angular;pn.resumeBootstrap=void 0;const qn=this.ngZone.run(()=>((Ln,Ut,Zt)=>f.bootstrap(Ln,Ut,Zt))(Zt,[wt.name],Xe));if(pn.resumeBootstrap){const Qe=pn.resumeBootstrap,lt=this.ngZone;pn.resumeBootstrap=function(){let xt=arguments;return pn.resumeBootstrap=Qe,lt.run(()=>pn.resumeBootstrap.apply(this,xt))}}return qn}}return Ln.\u0275fac=function(Zt){return new(Zt||Ln)(c.LFG(c.zs3),c.LFG(c.R0b),c.LFG(c.f1m))},Ln.\u0275mod=c.oAB({type:Ln}),Ln.\u0275inj=c.cJS({providers:[qe]}),Ln})();var Sn=l(1922),An=l(6872);const Wn={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};var On=l(712);var $i=l(8692);function Qi(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div",11)(1,"a",12),c._uU(2),c.qZA()()),2&Ln){const Zt=c.oxw(2);c.ekj("smart-banner-button-dark",Zt.isDarkButtonBackground()),c.xp6(1),c.Q6J("href",Zt.installOpenLink,c.LSH),c.xp6(1),c.hij(" ",Zt.scope.network.getResourceOrKeyName(Zt.scope.profile.hasPushToken?"web_smart_banner_open":"web_smart_banner_install")," ")}}function _r(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),c._UZ(4,"i",5),c.TgZ(5,"div",6),c.NdJ("click",function(){c.CHM(Zt);const Xe=c.oxw();return c.KtG(Xe.toggleSmartBanner())}),c.qZA()(),c.TgZ(6,"div",7),c._UZ(7,"img",8),c.qZA(),c.TgZ(8,"div",9)(9,"span"),c._uU(10),c.qZA()()(),c.YNc(11,Qi,3,4,"div",10),c.qZA()()}if(2&Ln){const Zt=c.oxw();c.xp6(7),c.Q6J("src",Zt.getNetworkIconBigUrl(),c.LSH),c.xp6(3),c.Oqu(Zt.scope.currentScope.network.name),c.xp6(1),c.Q6J("ngIf",null==Zt.installOpenLink?null:Zt.installOpenLink.length)}}class yn{constructor(Ut){this.isMobile=!1,this.isHidden=!1,this.getIsMobile=()=>window.innerWidth<An._,this.isDarkButtonBackground=()=>(0,On.vw)("smart-banner-button")===An.h.dark,this.scopeService=Ut,this.scope=Ut.getScope(),this.isMobile=this.getIsMobile(),this.userAgentType=function Yi(){let Ln=navigator.userAgent,Ut=Ln.includes("Macintosh")&&"ontouchend"in document;const Zt=Wn.AppMerkurist.test(Ln)||Wn.AppApicodo.test(Ln),jn=Wn.Ios.test(Ln)||Ut,Xe=Wn.Android.test(Ln),Lt=Wn.ChromeIos.test(Ln),wt=Wn.FirefoxIos.test(Ln),pn=Wn.EdgeIos.test(Ln),qn=Wn.Safari.test(Ln)&&!Lt&&!wt&&!pn;return{isApp:Zt,isAndroid:Xe,isIos:jn,isSafari:qn,isChromeIos:Lt,isFireFoxIos:wt,isEdgeIos:pn,isOtherBrowser:!(qn||Lt||wt||pn),isOtherDevice:!Zt&&!jn&&!Xe}}(),this.isHidden=this.isSmartBannerHiddenWithCookie();const{appLinkAndroid:Zt,appLinkITunes:jn}=this.scope?.currentScope?.network?.settings??{};this.installOpenLink=(this.userAgentType.isAndroid?Zt:jn)??"",this.updateRootPadding()}onResize(){this.isMobile=this.getIsMobile()}showSmartBanner(){if(!this.scope.currentScope.network.settings.configurations.showAppSmartBanner||!this.isMobile||this.isHidden)return!1;const{isApp:Zt,isAndroid:jn,isIos:Xe,isSafari:Lt,isOtherBrowser:wt}=this.userAgentType;return!Zt&&!!(jn||Xe&&!Lt||wt)}toggleSmartBanner(){this.isHidden=!0,this.updateRootPadding();const Ut=new Date;!function ni(Ln,Ut){const Zt=new Date;Zt.setTime(Zt.getTime()+6048e5),document.cookie=Ln+"="+Ut+"; expires="+Zt.toUTCString()+"; path=/"}("appSmartBannerHiddenUntil",new Date(Ut.setMonth(Ut.getMonth()+1)).toISOString())}isSmartBannerHiddenWithCookie(){const Ut=function di(Ln){const Zt=("; "+document.cookie).split("; "+Ln+"=");if(2===Zt.length)return Zt.pop()?.split(";").shift()}("appSmartBannerHiddenUntil");return!!Ut&&new Date(Ut)>new Date}getNetworkIconBigUrl(){const Ut=this.scope.currentScope.network,Zt=this.scope.globalSettings;var jn=`${Zt.blobStorageCdnUrl}/${Zt.blobStorageContainerNameLogo}`;return Ut&&Ut.settings.networkIconBigCache?`${jn}/${Ut.slug}/icon/big.png?cache=${Ut.settings.networkIconBigCache}`:`${jn}/default/icon/big.png?cache=${Zt.defaultLogoCache}`}updateRootPadding(){let Ut=document.getElementById("app-smart-banner-spacer");Ut&&(Ut.style.paddingTop=this.showSmartBanner()?"90px":"0px")}}yn.\u0275fac=function(Ut){return new(Ut||yn)(c.Y36(Sn.Z))},yn.\u0275cmp=c.Xpm({type:yn,selectors:[["app-smart-banner"]],hostBindings:function(Ut,Zt){1&Ut&&c.NdJ("resize",function(Xe){return Zt.onResize(Xe)},!1,c.Jf7)},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(Ut,Zt){1&Ut&&c.YNc(0,_r,12,3,"div",0),2&Ut&&c.Q6J("ngIf",Zt.showSmartBanner())},dependencies:[$i.O5],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}"]});var Rn=l(5732);new c.OlP("LANGS_COOKIE_CONSENT_CONFIGURATION");var Si=(()=>{return(Ln=Si||(Si={}))[Ln.Analytics=0]="Analytics",Ln[Ln.ExternalLogin=1]="ExternalLogin",Ln[Ln.ExternalMedia=2]="ExternalMedia",Si;var Ln})();const Vr={bottomRight:"bottom-right",bottomLeft:"bottom-left"},Nr_analytics="externalAnalyticsPermissions",Nr_externalMedia="externalMediaPermissions",Tr_analytics_matomo="matomo",Tr_analytics_googleAnalytics="googleAnalytics",Tr_externalMedia_twitter="twitter",Tr_externalMedia_youTube="youTube",Tr_externalMedia_facebook="facebook",Tr_externalMedia_vimeo="vimeo",Tr_externalMedia_giphy="giphy",Tr_externalLogin_facebook="facebook";function so(Ln,Ut){1&Ln&&c._UZ(0,"i",3)}class Er{constructor(Ut,Zt){this.type=0,this.isAssetListItem=!1,this.http=new Rn.eN(Zt),this.scopeService=Ut,this.scope=Ut.getScope(),this.miniScope=Ut.getMiniScope()}getTypeResource(){return oo[this.type]?.resource??""}accept(){const Ut=(new Date).toISOString(),Zt={...this.scope?.profile?.settings?.externalMediaPermissions,[oo[this.type]?.id]:{granted:!0,lastUpdate:Ut}};this.http.post(`${this.miniScope.apiEndpoint}Profiles/ExternalMediaCookiesConsent`,Zt).toPromise().then(()=>{window.location.href=window.location.href.split("#")[0]})}}Er.\u0275fac=function(Ut){return new(Ut||Er)(c.Y36(Sn.Z),c.Y36(Rn.jN))},Er.\u0275cmp=c.Xpm({type:Er,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"],["type","button",3,"click"],["aria-hidden","true",1,"fa","fa-exclamation-triangle"]],template:function(Ut,Zt){1&Ut&&(c.TgZ(0,"div",0),c.YNc(1,so,1,0,"i",1),c.TgZ(2,"p")(3,"span"),c._uU(4),c.qZA(),c._UZ(5,"br"),c.TgZ(6,"span"),c._uU(7),c.qZA(),c._UZ(8,"br"),c.TgZ(9,"button",2),c.NdJ("click",function(){return Zt.accept()}),c._uU(10),c.qZA()()()),2&Ut&&(c.ekj("assetListItem",Zt.isAssetListItem),c.xp6(1),c.Q6J("ngIf",!Zt.isAssetListItem),c.xp6(3),c.Oqu(Zt.getTypeResource()),c.xp6(3),c.Oqu(Zt.scope.network.getResourceOrKeyName("web_cookie_consent_external_media_info")),c.xp6(3),c.Oqu(Zt.scope.network.getResourceOrKeyName("web_cookie_consent_external_media_info_accept")))},dependencies:[$i.O5],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 oo={4:{resource:"Twitter",id:Tr_externalMedia_twitter},5:{resource:"YouTube",id:Tr_externalMedia_youTube},6:{resource:"Facebook",id:Tr_externalMedia_facebook},7:{resource:"Vimeo",id:Tr_externalMedia_vimeo},10:{resource:"Giphy",id:Tr_externalMedia_giphy}};var fi=l(6608),ir=l(7800),Kr=l(7128),to=l(556);function uo(Ln,Ut){if(1&Ln&&(c.TgZ(0,"span",3),c._uU(1),c.qZA()),2&Ln){const Zt=c.oxw();c.xp6(1),c.AsE("",Zt.badge,"",Zt.connected?"":" \u26a0","")}}const po=function(Ln){return{"root-navigation-btn-active":Ln}};class At{constructor(Ut,Zt,jn,Xe){this.router=Zt,this.chatRelayService=jn,this.badgeService=Xe,this.routeActive=!1,this.badge=null,this.currentLocation=null,this.sourceTimes=(0,fi.F)(500),this.connected=!1,this.subscriptions=[],this.scope=Ut.getScope(),this.currentLocation=window.location.href,this.subs=this.sourceTimes.subscribe(Lt=>{this.routeActive=!!window.location.href.includes("/chat")}),this.subscriptions.push(this.badgeService.badgeUpdates$.subscribe(Lt=>{this.badge=Lt.totalCount}),this.chatRelayService.isConnected$.subscribe(Lt=>{this.connected=Lt}))}ngOnInit(){this.badge=this.badgeService.badge}ngOnDestroy(){this.subscriptions.forEach(Ut=>Ut.unsubscribe())}openChat(){this.router.navigate(["/chat",""]),this.routeActive=!0}}At.\u0275fac=function(Ut){return new(Ut||At)(c.Y36(Sn.Z),c.Y36(ir.F0),c.Y36(Kr.L),c.Y36(to.V))},At.\u0275cmp=c.Xpm({type:At,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(Ut,Zt){1&Ut&&(c.TgZ(0,"div",0),c.NdJ("click",function(){return Zt.openChat()}),c._UZ(1,"span",1),c.YNc(2,uo,2,2,"span",2),c.qZA()),2&Ut&&(c.Q6J("ngClass",c.VKq(3,po,Zt.routeActive)),c.xp6(1),c.Q6J("innerHtml",Zt.scope.network.getResourceOrKeyName("web_root_root_chat"),c.oJD),c.xp6(1),c.Q6J("ngIf",0!=Zt.badge))},dependencies:[$i.mk,$i.O5]});var tn=l(8198),$n=l(5775),_i=l(2874),mi=l(9451),dn=l(7046),In=l(4962);class Zn{constructor(Ut,Zt,jn,Xe,Lt){this.chatRoomCache=Ut,this.scopeService=Zt,this.authenticationService=jn,this.messageCache=Xe,this.badgeService=Lt,this.authReceived=!1,this.cacheRebuiltSource=new $n.xQ,this.cacheRebuilt$=this.cacheRebuiltSource.asObservable(),this.storeSynchedSource=new $n.xQ,this.storeSynced$=this.storeSynchedSource.asObservable(),this.errorsOnUpdate=!1,this.roomCounts={},this.scope=this.scopeService.getScope(),this.database=new _i.f(this.scope.currentScope.chapter.id,this.scope.network.id),this.roomCounts=this.badgeService.roomBadges,this.badgeService.badgeUpdates$.subscribe(wt=>{Zn.cacheRebuilding||(this.roomCounts=wt.badges)}),this.authenticationService.isAuthenticated$.subscribe(wt=>{this.authReceived||(this.authReceived=!0,this.updateOrInitCache())})}isInitialized(){return Zn.cacheInitialized}rebuildCache(){this.chatRoomCache.rebuildCacheAndGetArrayStore(this).then(Ut=>{Ut.load().then(Zt=>{let jn=1;var Xe=new gi;Xe.completed=!1,Xe.current=jn,Xe.total=Zt.length,Xe.message="Start",this.cacheRebuiltSource.next(Xe),Zt.orderByDescending(Lt=>Lt.lastMessage?.createdOn).toArray().forEach(Lt=>{this.messageCache.rebuildCacheAndGetStore(Lt.id).then(wt=>{var pn=new gi;pn.completed=!1,pn.current=jn,pn.total=Zt.length,pn.message=Lt.name,jn==Zt.length&&(Zn.cacheRebuilding=!1,pn.completed=!0,Zn.cacheInitialized=!0,this.cacheRebuiltSource.next(pn)),this.cacheRebuiltSource.next(pn),jn++},wt=>{this.errorsOnUpdate=!0})})})})}updateOrInitCache(){if(Zn.cacheRebuilding)return Zn.cacheRebuilding;Zn.cacheRebuilding=!0;var Ut=new Date;return this.database.synchTable.get(Zn.syncEntryKey).then(Zt=>{if(Zt){var jn=new gi;jn.completed=!1,jn.current=1,jn.total=1,jn.message="Local cache initialized",this.cacheRebuiltSource.next(jn),this.badgeService.loadBadges().then(Xe=>{this.roomCounts=Xe.badges,this.updateStores(Zt.synchStartedOn).then(Lt=>{this.database.synchTable.update(Zn.syncEntryKey,{id:Zn.syncEntryKey,value:"",synchStartedOn:Ut,syncCompletedOn:new Date,jsonValue:""}).then(wt=>{})})})}else{let Xe=new Date("1.1.1970");this.database.synchTable.add({id:Zn.syncEntryKey,value:"",synchStartedOn:Xe,jsonValue:""}).then(Lt=>{var wt=new gi;wt.completed=!1,wt.current=1,wt.total=1,wt.message="Local cache initialized",this.cacheRebuiltSource.next(wt),this.badgeService.loadBadges().then(pn=>{this.roomCounts=pn.badges,this.updateStores(Xe).then(qn=>{this.database.synchTable.update(Zn.syncEntryKey,{id:Zn.syncEntryKey,value:"",synchStartedOn:Xe,syncCompletedOn:new Date,jsonValue:""}).then(Qe=>{})})})})}}),Zn.cacheRebuilding}updateOrInitCacheOld(){if(Zn.cacheRebuilding)return Zn.cacheRebuilding;Zn.cacheRebuilding=!0;var Ut=new Date;return this.database.synchTable.get(Zn.syncEntryKey).then(Zt=>{if(Zt){var jn=new gi;jn.completed=!0,jn.current=1,jn.total=1,jn.message="Local cache initialized",this.cacheRebuiltSource.next(jn),this.badgeService.loadBadges().then(Xe=>{this.roomCounts=Xe.badges,this.updateStores(Zt.synchStartedOn).then(Lt=>{this.database.synchTable.update(Zn.syncEntryKey,{id:Zn.syncEntryKey,value:"",synchStartedOn:Ut,syncCompletedOn:new Date,jsonValue:""}).then(wt=>{})})})}else this.database.synchTable.add({id:Zn.syncEntryKey,value:"",synchStartedOn:Ut,jsonValue:""}).then(Xe=>{this.rebuildCache()})}),Zn.cacheRebuilding}updateStores(Ut){return this.chatRoomCache.rebuildCacheAndGetArrayStore(this).then(Zt=>{Zt.load().then(jn=>{let Xe=1;var Lt=new gi;Lt.completed=!1,Lt.current=Xe,Lt.total=jn.length,Lt.message="Start",this.storeSynchedSource.next(Lt),this.cacheRebuiltSource.next(Lt),jn.orderByDescending(wt=>wt.lastMessage?.createdOn).toArray().forEach(wt=>{let pn=0;try{pn=this.badgeService.roomBadges[wt.id.toString()].allMessagesCount}catch{}this.messageCache.updateStore(wt.id,Ut,pn).then(qn=>{var Qe=new gi;Qe.completed=!1,Qe.current=Xe,Qe.total=jn.length,Qe.message="Room messages resynched for room: ("+Xe+"/"+jn.length+") "+wt.name,Xe==jn.length&&(Zn.cacheRebuilding=!1,Qe.completed=!0,Zn.cacheInitialized=!0,this.storeSynchedSource.next(Qe),this.cacheRebuiltSource.next(Qe)),Xe++})})})})}}Zn.cacheRebuilding=!1,Zn.cacheInitialized=!1,Zn.syncEntryKey="ChatCacheLastUpdateKey",Zn.\u0275fac=function(Ut){return new(Ut||Zn)(c.LFG(mi.d),c.LFG(Sn.Z),c.LFG(dn.D),c.LFG(In.u),c.LFG(to.V))},Zn.\u0275prov=c.Yz7({token:Zn,factory:Zn.\u0275fac,providedIn:"root"});class gi{constructor(Ut,Zt,jn,Xe){this.total=0,this.completed=!1,this.current=0,this.message="",this.completed=Zt??!1,this.current=Xe??0,this.message=Ut??"",this.total=jn??0}}class Ri{constructor(Ut,Zt,jn,Xe){this.scopeService=Ut,this.router=Zt,this.chatRelay=jn,this.cacheManager=Xe,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(pn=>{pn.completed!=this.cacheRebuilt&&(this.cacheRebuilt=pn.completed,this.cacheRebuilt&&(Ri.initialized=!0)),this.message=pn.message,pn.total!=this.roomCount&&(this.roomCount=pn.total),pn.current!=this.current&&(this.current=pn.current)}));const Lt=window.location.href.indexOf("/chat")+1;let wt;(0,tn.SP)(Ut.getScope().currentScope.network.settings.languageCode),wt=0===Lt?["chat"]:window.location.href.substring(Lt).split("/"),Zt.navigate(wt)}ngOnDestroy(){this.subscriptions.forEach(Ut=>Ut.unsubscribe())}onResize(){this.windowWidth=window.innerWidth,this.isMobile=this.windowWidth<An._}}Ri.initialized=!1,Ri.\u0275fac=function(Ut){return new(Ut||Ri)(c.Y36(Sn.Z),c.Y36(ir.F0),c.Y36(Kr.L),c.Y36(Zn))},Ri.\u0275cmp=c.Xpm({type:Ri,selectors:[["app-chat-home"]],hostBindings:function(Ut,Zt){1&Ut&&c.NdJ("resize",function(Xe){return Zt.onResize(Xe)},!1,c.Jf7)},decls:3,vars:0,consts:[[1,"navbar-spacer"]],template:function(Ut,Zt){1&Ut&&(c._UZ(0,"div",0),c.TgZ(1,"div"),c._UZ(2,"router-outlet"),c.qZA())},dependencies:[ir.lC],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}}"]});var or=l(4474);class cr{constructor(Ut){this.keepAlive=Ut,this.connected=!1,this.subscriptions=[],this.subscriptions.push(this.keepAlive.isConnected$.subscribe(Zt=>{this.connected=Zt}))}ngOnDestroy(){this.subscriptions.forEach(Ut=>Ut.unsubscribe())}ngOnInit(){}}cr.\u0275fac=function(Ut){return new(Ut||cr)(c.Y36(or.g))},cr.\u0275cmp=c.Xpm({type:cr,selectors:[["app-user-vitals"]],decls:0,vars:0,template:function(Ut,Zt){}});var en=l(6492),vn=l(3885),Ze=l(39);class bt{constructor(Ut,Zt,jn,Xe,Lt,wt){this.chatRoomService=Ut,this.chatRelayService=Zt,this.authenticationService=jn,this.chatroomCache=Xe,this.router=Lt,this.scopeService=wt,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.currentChapter.settings.configurations.chatChapterConfiguration?.ChatEnabled)&&this.scope.network.settings.configurations.enableChat&&(this.scope.currentChapter.settings.configurations.chatChapterConfiguration?.OneToOneEnabled??!0)&&(this.scope.currentChapter.settings.configurations.chatChapterConfiguration?.ChatEnabled??!0),this.buttonText=this.scope.network.getResourceOrKeyName("web_chat_open_or_create_one_to_one")}createOrOpenChat(){var Ut=new en.Z(this.otherUserGuid);this.buttonDisabled=!0,this.chatRoomService.createOneToOneChat(Ut).subscribe(Zt=>{this.chatRelayService.addToChatroom(Zt.id.toString()),this.authenticationService.expireToken(this).then(jn=>{this.chatroomCache.rebuildCacheAndGetArrayStore(this).then(Xe=>{this.router.navigate(["/chat"]).then(Lt=>{this.router.navigate([`/chat/room/${Zt.id}`]).then(wt=>{})})})})})}}bt.\u0275fac=function(Ut){return new(Ut||bt)(c.Y36(vn.Z),c.Y36(Kr.L),c.Y36(dn.D),c.Y36(mi.d),c.Y36(ir.F0),c.Y36(Sn.Z))},bt.\u0275cmp=c.Xpm({type:bt,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(Ut,Zt){1&Ut&&(c.TgZ(0,"dx-button",0),c.NdJ("onClick",function(){return Zt.createOrOpenChat()}),c.qZA()),2&Ut&&c.Q6J("text",Zt.buttonText)("visible",Zt.chatIsEnabled)("disabled",Zt.buttonDisabled)},dependencies:[Ze.K]});var _t=(()=>{return(Ln=_t||(_t={}))[Ln.None=0]="None",Ln[Ln.BuiltIn=1]="BuiltIn",Ln[Ln.CookieBot=2]="CookieBot",Ln[Ln.Usercentrics=3]="Usercentrics",Ln[Ln.Simple=4]="Simple",_t;var Ln})(),Wt=l(8096),Ot=l.n(Wt);const qt={position:Vr.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:Nr_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:"Youtube",id:Tr_externalMedia_youTube,type:Si.ExternalMedia,isChecked:!1,tabId:Nr_externalMedia},{caption:"Facebook",id:Tr_externalMedia_facebook,type:Si.ExternalMedia,isChecked:!1,tabId:Nr_externalMedia},{caption:"Vimeo",id:Tr_externalMedia_vimeo,type:Si.ExternalMedia,isChecked:!1,tabId:Nr_externalMedia},{caption:"Giphy",id:Tr_externalMedia_giphy,type:Si.ExternalMedia,isChecked:!1,tabId:Nr_externalMedia}]},{id:Nr_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:Tr_analytics_matomo,type:Si.Analytics,isChecked:!1,tabId:Nr_analytics},{caption:"Google Analytics",id:Tr_analytics_googleAnalytics,type:Si.Analytics,isChecked:!1,tabId:Nr_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:Tr_externalLogin_facebook,type:Si.ExternalLogin,isChecked:!1,tabId:"externalLoginPermissions"}]}]}};class mn{constructor(){this.configuration=qt,this.animationDuration=this.configuration.animationDuration,this.aosAnimateClass="aos-animate"}hide(Ut){return new Promise((Zt,jn)=>{try{this.toHtmlElement(Ut).classList.remove(this.aosAnimateClass),window.setTimeout(()=>Zt(),this.animationDuration)}catch{jn()}})}toHtmlElement(Ut){return Ut?.nativeElement}}mn.\u0275fac=function(Ut){return new(Ut||mn)},mn.\u0275prov=c.Yz7({token:mn,factory:mn.\u0275fac});var Ke=l(8239);const{bottomLeft:pt,bottomRight:an}=Vr;class hn{constructor(Ut,Zt,jn){this.platformId=Ut,this.configuration=qt,this.position=this.configuration.position,this.isBrowser=(0,$i.NF)(this.platformId),this.currentPosition={isLeft:pt===this.position,isRight:an===this.position},this.tabs=[],this.isInitializedSource=new $n.xQ,this.isInitialized$=this.isInitializedSource.asObservable(),this.http=new Rn.eN(Zt),this.scopeService=jn,this.miniScope=jn.getMiniScope(),jn.observer.subscribe(Xe=>{this.scope=Xe,this.initState()})}initState(){var Ut=this;return(0,Ke.Z)(function*(){yield Ut.loadProfile();const Zt=Ut.configureTabs(Ut.configuration?.settings?.tabs);Ut.tabs=Ut.getInitialTabsState(Zt),Ut.isInitializedSource.next(!0),Ut.isInitializedSource.complete()})()}loadProfile(){var Ut=this;return(0,Ke.Z)(function*(){var Zt=yield Ut.http.get(`${Ut.miniScope.apiEndpoint}Profiles`).toPromise();Ut.profile=Zt})()}getTabs(){return this.tabs}getProviders(){return this.tabs.map(Ut=>Ut.providers).reduce((Ut,Zt)=>[...Ut,...Zt])}configureTabs(Ut){return Ut?.length?Ut.reduce((jn,Xe)=>{const Lt=Xe.providers.reduce((wt,pn)=>{const{id:qn}=pn,{currentChapter:Qe,currentScope:lt}=this.scope??{};switch(Xe.id){case Nr_analytics:switch(qn){case Tr_analytics_googleAnalytics:if(!Qe?.settings?.gaTrackingId)return wt;break;case Tr_analytics_matomo:if(!Qe?.settings?.piwikBaseUrl)return wt}break;case"externalLoginPermissions":if(qn===Tr_externalLogin_facebook&&!lt?.network?.settings.availableFacebookLogin)return wt}return[...wt,pn]},[]);return Lt?.length?[...jn,{...Xe,providers:Lt}]:jn},[]):[]}getInitialTabsState(Ut){return Ut.map(Zt=>(Zt.isChecked=this.isSwitcherEnabled(Zt),Zt.providers.forEach(jn=>jn.isChecked=this.isCookieEnabled(jn)),Zt))}isSwitcherEnabled(Ut){return Ut.providers.every(({id:Zt,tabId:jn})=>this.isPermissionGranted(jn,Zt))}isCookieEnabled(Ut){return this.isPermissionGranted(Ut.tabId,Ut.id)}save(){this.tabs.forEach(Ut=>{const Zt=(new Date).toISOString(),Xe={...Ut.providers.map(wt=>({[wt.id]:{granted:wt.isChecked,lastUpdate:Zt}})).reduce((wt,pn)=>({...wt,...pn}),{})};this.http.post(`${this.miniScope.apiEndpoint}Profiles/${Ut.apiTarget}`,Xe).toPromise()})}isPermissionGranted(Ut,Zt){const jn=this.profile?.settings;return!!jn&&(jn[Ut][Zt]?.granted??!1)}}hn.\u0275fac=function(Ut){return new(Ut||hn)(c.LFG(c.Lbi),c.LFG(Rn.jN),c.LFG(Sn.Z))},hn.\u0275prov=c.Yz7({token:hn,factory:hn.\u0275fac});var sn=l(8942);const Nn=["container"];function Yn(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.ynx(0),c.TgZ(1,"div",10),c.NdJ("click",function(){const Lt=c.CHM(Zt).index,wt=c.oxw(2);return c.KtG(wt.tabIndex=Lt)}),c.TgZ(2,"div",11)(3,"span"),c._uU(4),c.qZA()()(),c.BQk()}if(2&Ln){const Zt=Ut.$implicit,jn=Ut.index,Xe=c.oxw(2);c.xp6(2),c.ekj("cc-caption-active",Xe.tabIndex===jn),c.xp6(2),c.hij(" ",Xe.scope.network.getResourceOrKeyName(Zt.caption)," ")}}function st(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div",20),c._uU(1),c.qZA()),2&Ln){const Zt=c.oxw(2).$implicit,jn=c.oxw(2);c.xp6(1),c.hij(" ",jn.scope.network.getResourceOrKeyName(Zt.providersHeader)," ")}}const Vt=function(){return{standalone:!0}};function rn(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div",21)(1,"div",22)(2,"div",23),c._uU(3),c.qZA(),c.TgZ(4,"div",24)(5,"label",25)(6,"input",26),c.NdJ("ngModelChange",function(Xe){const wt=c.CHM(Zt).$implicit;return c.KtG(wt.isChecked=Xe)}),c.qZA(),c._UZ(7,"span",27),c.qZA()()()()}if(2&Ln){const Zt=Ut.$implicit;c.xp6(3),c.hij(" ",Zt.caption," "),c.xp6(3),c.Q6J("ngModel",Zt.isChecked)("ngModelOptions",c.DdM(5,Vt)),c.xp6(1),c.ekj("cc-round-disabled",!Zt.isChecked)}}function Dn(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div",13)(1,"div",14),c._uU(2),c.qZA(),c.TgZ(3,"div",15),c._uU(4),c.qZA(),c._UZ(5,"div",16),c.TgZ(6,"div",17),c.YNc(7,st,2,1,"div",18),c.YNc(8,rn,8,6,"div",19),c.qZA()()),2&Ln){const Zt=c.oxw().$implicit,jn=c.oxw(2);c.xp6(2),c.Oqu(jn.scope.network.getResourceOrKeyName(Zt.caption)),c.xp6(2),c.Oqu(jn.scope.network.getResourceOrKeyName(Zt.text)),c.xp6(3),c.Q6J("ngIf",Zt.providersHeader),c.xp6(1),c.Q6J("ngForOf",Zt.providers)}}function rt(Ln,Ut){if(1&Ln&&(c.ynx(0),c.YNc(1,Dn,9,4,"div",12),c.BQk()),2&Ln){const Zt=Ut.index,jn=c.oxw(2);c.xp6(1),c.Q6J("ngIf",jn.tabIndex===Zt)}}function Bt(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div",1,2)(2,"div",3)(3,"div",4),c.YNc(4,Yn,5,3,"ng-container",5),c.qZA(),c.TgZ(5,"div",6),c.YNc(6,rt,2,1,"ng-container",5),c.qZA(),c.TgZ(7,"div",7)(8,"a",8),c.NdJ("click",function(){c.CHM(Zt);const Xe=c.oxw();return c.KtG(Xe.back())}),c._uU(9),c.qZA(),c.TgZ(10,"a",9),c.NdJ("click",function(){c.CHM(Zt);const Xe=c.oxw();return c.KtG(Xe.confirm())}),c._uU(11),c.qZA()()()()}if(2&Ln){const Zt=c.oxw();c.ekj("cc-left",Zt.currentPosition.isLeft)("cc-right",Zt.currentPosition.isRight)("app",Zt.userClientInfo.isApp),c.uIk("data-aos-duration",Zt.animationDuration),c.xp6(4),c.Q6J("ngForOf",Zt.tabs),c.xp6(2),c.Q6J("ngForOf",Zt.tabs),c.xp6(3),c.hij(" ",Zt.scope.network.getResourceOrKeyName(Zt.backCaption)," "),c.xp6(2),c.hij(" ",Zt.scope.network.getResourceOrKeyName(Zt.saveCaption)," ")}}class gt{constructor(Ut,Zt,jn){this.animationService=Ut,this.cookieStatusService=Zt,this.configuration=qt,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 c.vpe,this.accept=new c.vpe,this.tabIndex=0,this.scopeService=jn,this.scope=jn.getScope(),this.userClientInfo=jn.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))}}gt.\u0275fac=function(Ut){return new(Ut||gt)(c.Y36(mn),c.Y36(hn),c.Y36(Sn.Z))},gt.\u0275cmp=c.Xpm({type:gt,selectors:[["settings"]],viewQuery:function(Ut,Zt){if(1&Ut&&c.Gf(Nn,5,c.SBq),2&Ut){let jn;c.iGM(jn=c.CRH())&&(Zt.containerRef=jn.first)}},inputs:{isCookieSettingsOpened:"isCookieSettingsOpened"},outputs:{isCookieSettingsOpenedChange:"isCookieSettingsOpenedChange",accept:"accept"},decls:1,vars:1,consts:[["class","cc-mobile-view 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-mobile-view","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(Ut,Zt){1&Ut&&c.YNc(0,Bt,12,11,"div",0),2&Ut&&c.Q6J("ngIf",!Zt.isHidden)},dependencies:[$i.sg,$i.O5,sn.Wl,sn.JJ,sn.On],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.cc-round-disabled[_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-disabled[_ngcontent-%COMP%]:before{background-color:#d0d0d0;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 $t=["container"],Un=function(){return{standalone:!0}};function ai(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div",13)(1,"label",14),c._uU(2),c.qZA(),c.TgZ(3,"label",15)(4,"input",16),c.NdJ("ngModelChange",function(Xe){const wt=c.CHM(Zt).$implicit;return c.KtG(wt.isChecked=Xe)})("change",function(){const Lt=c.CHM(Zt).$implicit,wt=c.oxw(3);return c.KtG(wt.switch(Lt))}),c.qZA(),c._UZ(5,"span",17),c.qZA()()}if(2&Ln){const Zt=Ut.$implicit,jn=c.oxw(3);let Xe;c.xp6(2),c.Oqu(jn.scope.network.getResourceOrKeyName(null!==(Xe=null==Zt?null:Zt.caption)&&void 0!==Xe?Xe:"")),c.xp6(2),c.Q6J("ngModel",Zt.isChecked)("ngModelOptions",c.DdM(5,Un)),c.xp6(1),c.ekj("cc-round-disabled",!Zt.isChecked)}}function Ci(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div",11),c.YNc(1,ai,6,6,"div",12),c.qZA()),2&Ln){const Zt=c.oxw(2);c.xp6(1),c.Q6J("ngForOf",Zt.tabs)}}function Ii(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div",22)(1,"a",23),c.NdJ("click",function(){c.CHM(Zt);const Xe=c.oxw(3);return c.KtG(Xe.openCookieSettings())}),c._uU(2),c.qZA()()}if(2&Ln){const Zt=c.oxw(3);c.xp6(2),c.hij(" ",Zt.scope.network.getResourceOrKeyName(Zt.settings.caption)," ")}}function zi(Ln,Ut){1&Ln&&c._UZ(0,"div",24)}function Ki(Ln,Ut){1&Ln&&c._UZ(0,"div",24)}function Xi(Ln,Ut){if(1&Ln&&(c.ynx(0),c.TgZ(1,"div",22)(2,"a",25),c._uU(3),c.qZA()(),c.YNc(4,Ki,1,0,"div",20),c.BQk()),2&Ln){const Zt=Ut.$implicit,jn=Ut.index,Xe=c.oxw(3);let Lt;c.xp6(2),c.s9C("href",Zt.navigate,c.LSH),c.xp6(1),c.Oqu(Xe.scope.network.getResourceOrKeyName(Zt.caption)),c.xp6(1),c.Q6J("ngIf",jn!=(null!==(Lt=null==Xe.links?null:Xe.links.length)&&void 0!==Lt?Lt:1)-1)}}function wr(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div",18),c.YNc(1,Ii,3,1,"div",19),c.YNc(2,zi,1,0,"div",20),c.YNc(3,Xi,5,3,"ng-container",21),c.qZA()),2&Ln){const Zt=c.oxw(2);c.xp6(1),c.Q6J("ngIf",Zt.settings),c.xp6(1),c.Q6J("ngIf",(null==Zt.links?null:Zt.links.length)&&Zt.settings),c.xp6(1),c.Q6J("ngForOf",Zt.links)}}function vr(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div",2,3)(2,"button",4),c.NdJ("click",function(){c.CHM(Zt);const Xe=c.oxw();return c.KtG(Xe.close())}),c._uU(3,"X"),c.qZA(),c.TgZ(4,"h3"),c._uU(5),c.qZA(),c.TgZ(6,"span",5),c._uU(7),c.qZA(),c.YNc(8,Ci,2,1,"div",6),c.TgZ(9,"div",7)(10,"a",8),c.NdJ("click",function(){c.CHM(Zt);const Xe=c.oxw();return c.KtG(Xe.reject())}),c._uU(11),c.qZA(),c.TgZ(12,"a",9),c.NdJ("click",function(){c.CHM(Zt);const Xe=c.oxw();return c.KtG(Xe.accept())}),c._uU(13),c.qZA()(),c.YNc(14,wr,4,3,"div",10),c.qZA()}if(2&Ln){const Zt=c.oxw();let jn,Xe,Lt,wt;c.ekj("cc-left",null==Zt.currentPosition?null:Zt.currentPosition.isLeft)("cc-right",null==Zt.currentPosition?null:Zt.currentPosition.isRight)("app",Zt.userClientInfo.isApp),c.uIk("data-aos-duration",Zt.animationDuration),c.xp6(5),c.Oqu(Zt.scope.network.getResourceOrKeyName(null!==(jn=Zt.header)&&void 0!==jn?jn:"")),c.xp6(2),c.hij(" ",Zt.scope.network.getResourceOrKeyName(null!==(Xe=Zt.text)&&void 0!==Xe?Xe:"")," "),c.xp6(1),c.Q6J("ngIf",null==Zt.tabs?null:Zt.tabs.length),c.xp6(2),c.ekj("darkColor",Zt.isDarkBackground("cc-button-reject")),c.xp6(1),c.hij(" ",Zt.scope.network.getResourceOrKeyName(null!==(Lt=null==Zt.buttons?null:Zt.buttons.reject)&&void 0!==Lt?Lt:"")," "),c.xp6(1),c.ekj("darkColor",Zt.isDarkBackground("cc-button-accept")),c.xp6(1),c.hij(" ",Zt.scope.network.getResourceOrKeyName(null!==(wt=Zt.acceptButtonText)&&void 0!==wt?wt:"")," "),c.xp6(1),c.Q6J("ngIf",(null==Zt.links?null:Zt.links.length)||Zt.settings)}}function Jr(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"settings",26),c.NdJ("isCookieSettingsOpenedChange",function(Xe){c.CHM(Zt);const Lt=c.oxw();return c.KtG(Lt.isCookieSettingsOpened=Xe)})("accept",function(){c.CHM(Zt);const Xe=c.oxw();return c.KtG(Xe.accept())}),c.qZA()}if(2&Ln){const Zt=c.oxw();c.Q6J("isCookieSettingsOpened",Zt.isCookieSettingsOpened)}}class Xr{constructor(Ut,Zt,jn){this.animationService=Ut,this.cookieStatusService=Zt,this.configuration=qt,this.acceptButtonText=this.buttons?.accept,this.isHidden=!0,this.isCookieSettingsOpened=!1,this.isBuildInConsentManager=!1,this.isDarkBackground=Xe=>(0,On.vw)(Xe)===An.h.dark,this.isAnchorTagPresent=()=>window.location.href.includes("#cookie-consent"),this.scopeService=jn,this.scope=jn.getScope(),this.userClientInfo=jn.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&&Ot().init({duration:this.animationDuration})}isAnySwitcherUnChecked(){return this.tabs?.find(Ut=>!Ut.isChecked)}hideOnInitIfStatusAllowed(){this.isHidden=!(this.scope.profile.settings?.showConsent??1)}setAcceptButtonText(){const{accept:Ut,acceptSome:Zt=Ut}=this.buttons;this.acceptButtonText=this.isAnySwitcherUnChecked()?Zt:Ut}accept(){this.hide(),this.cookieStatusService.save()}reject(){this.hide(),this.tabs&&(this.tabs.forEach(Ut=>{Ut.isChecked=!1,Ut.providers.forEach(Zt=>{Zt.isChecked=!1})}),this.cookieStatusService.save())}hide(){this.animationService.hide(this.containerRef).finally(()=>{this.isHidden=!0,window.location.href=window.location.href.split("#")[0]})}close(){this.isHidden=!0,window.location.href=window.location.href.split("#")[0]+"#cc-close"}show(){this.isHidden=!1}switch(Ut){Ut.providers.forEach(Zt=>Zt.isChecked=Ut.isChecked),this.setAcceptButtonText()}openCookieSettings(){this.animationService.hide(this.containerRef).finally(()=>this.isCookieSettingsOpened=!this.isCookieSettingsOpened)}}function ko(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div",1)(1,"div",2)(2,"p"),c._uU(3),c.qZA(),c.TgZ(4,"p")(5,"a",3),c._uU(6),c.qZA()()(),c.TgZ(7,"div",4),c.NdJ("click",function(){c.CHM(Zt);const Xe=c.oxw();return c.KtG(Xe.consentCookies())}),c._uU(8,"OK"),c.qZA()()}if(2&Ln){const Zt=c.oxw();c.ekj("closed",Zt.isClosed),c.xp6(3),c.hij(" ",Zt.scope.currentScope.network.getResourceOrKeyName("web_root_cookiesConsent_text")," "),c.xp6(3),c.Oqu(Zt.scope.currentScope.network.getResourceOrKeyName("web_root_cookiesConsent_privacyPolicy"))}}Xr.\u0275fac=function(Ut){return new(Ut||Xr)(c.Y36(mn),c.Y36(hn),c.Y36(Sn.Z))},Xr.\u0275cmp=c.Xpm({type:Xr,selectors:[["cookie-consent-builtIn"]],viewQuery:function(Ut,Zt){if(1&Ut&&c.Gf($t,5,c.SBq),2&Ut){let jn;c.iGM(jn=c.CRH())&&(Zt.containerRef=jn.first)}},decls:2,vars:2,consts:[["role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","class","cc-mobile-view 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-mobile-view","cc-window","cc-floating","cc-bottom","cc-shadow"],["container",""],["type","button",1,"cc-close-button",3,"click"],[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(Ut,Zt){1&Ut&&(c.YNc(0,vr,15,17,"div",0),c.YNc(1,Jr,1,1,"settings",1)),2&Ut&&(c.Q6J("ngIf",!Zt.isCookieSettingsOpened&&!Zt.isHidden||Zt.isAnchorTagPresent()),c.xp6(1),c.Q6J("ngIf",Zt.isCookieSettingsOpened))},dependencies:[$i.sg,$i.O5,sn.Wl,sn.JJ,sn.On,gt],styles:['.cc-close-button{width:20px;text-align:center;right:20px;position:absolute;border:solid 1px;height:20px;font-weight:700}@media (max-width: 525px){.cc-mobile-view{transform:translate(-50%,-50%);top:50%;left:50%!important;height:-moz-fit-content;height:fit-content;width:90%!important}}.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.cc-round-disabled{border-radius:24px}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider.cc-round-disabled:before{background-color:#d0d0d0;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});class no{constructor(Ut,Zt){this.show=!0,this.isClosed=!1,this.http=new Rn.eN(Zt),this.scopeService=Ut,this.scope=Ut.getScope(),this.miniScope=Ut.getMiniScope(),this.show=this.getShow()}getShow(){return!this.scope.profile.hasCookiesConsented&&!this.scope.profile.isRegistered}consentCookies(){this.isClosed=!0,this.http.post(`${this.miniScope.apiEndpoint}profiles/cookiesConsent`,null).toPromise().then(()=>{this.scope.profile.hasCookiesConsented=(new Date).toISOString(),this.show=!1},function(){console.error("Could not obtain Cookies Consent.")})}}function Uo(Ln,Ut){1&Ln&&(c.TgZ(0,"div"),c._UZ(1,"cookie-consent-builtIn"),c.qZA())}function ua(Ln,Ut){1&Ln&&(c.TgZ(0,"div"),c._UZ(1,"cookie-consent-simple"),c.qZA())}function qo(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div"),c.YNc(1,Uo,2,0,"div",0),c.YNc(2,ua,2,0,"div",0),c.qZA()),2&Ln){const Zt=c.oxw();c.xp6(1),c.Q6J("ngIf",Zt.isBuildInConsentManager()),c.xp6(1),c.Q6J("ngIf",Zt.isSimpleConsentManager())}}no.\u0275fac=function(Ut){return new(Ut||no)(c.Y36(Sn.Z),c.Y36(Rn.jN))},no.\u0275cmp=c.Xpm({type:no,selectors:[["cookie-consent-simple"]],decls:1,vars:1,consts:[["class","cookiesConsent",3,"closed",4,"ngIf"],[1,"cookiesConsent"],[1,"cookiesConsent-text"],["ui-sref","app.privacyPolicy"],[1,"btn","btn-green","btn-block","btn-lg","cookiesConsent-button",3,"click"]],template:function(Ut,Zt){1&Ut&&c.YNc(0,ko,9,4,"div",0),2&Ut&&c.Q6J("ngIf",Zt.show)},dependencies:[$i.O5],styles:[".cookiesConsent[_ngcontent-%COMP%]{position:fixed;bottom:15px;right:15px;width:300px;box-shadow:0 0 10px var(--black-10);border-radius:6px;animation-name:_ngcontent-%COMP%_slideInUp;animation-duration:1s;animation-fill-mode:both;animation-delay:2s;z-index:1000}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]{padding:.5em 2em 1em;background-color:#e6e6e6;border-top-left-radius:4px;border-top-right-radius:4px}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--dark-gray)}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--medium-gray)}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-button[_ngcontent-%COMP%]{margin:0;border-top-left-radius:0;border-top-right-radius:0}.cookiesConsent.closed[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_slideOutDown;animation-delay:0s}@media all and (max-width: 500px){.cookiesConsent[_ngcontent-%COMP%]{bottom:10px;left:10px;right:10px;width:auto}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]{padding:1em 1.5em}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:inline;font-size:1em}}@keyframes _ngcontent-%COMP%_slideInUp{0%{transform:translate3d(0,120%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes _ngcontent-%COMP%_slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,120%,0)}}@media (prefers-color-scheme: dark){.app[_ngcontent-%COMP%]   .cookiesConsent[_ngcontent-%COMP%]{box-shadow:0 0 10px var(--white-40)}.app[_ngcontent-%COMP%]   .cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]{background-color:#333}.app[_ngcontent-%COMP%]   .cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--white-90)!important}.app[_ngcontent-%COMP%]   .cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--white-60)}}"]});class go{constructor(Ut){this.scopeService=Ut,this.scope=Ut.getScope(),this.manager=this.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration?.Manager??_t.None,this.isConsentManagerEnabled=this.scope.globalSettings.configurations.global_module_configuration.ConsentManagementModuleEnabled}isBuildInConsentManager(){return this.manager===_t.BuiltIn}isSimpleConsentManager(){return this.manager===_t.Simple}}go.\u0275fac=function(Ut){return new(Ut||go)(c.Y36(Sn.Z))},go.\u0275cmp=c.Xpm({type:go,selectors:[["cookie-consent-component-manager"]],decls:1,vars:1,consts:[[4,"ngIf"]],template:function(Ut,Zt){1&Ut&&c.YNc(0,qo,3,2,"div",0),2&Ut&&c.Q6J("ngIf",Zt.isConsentManagerEnabled)},dependencies:[$i.O5,Xr,no]});var Vo=l(1007);class So{constructor(Ut,Zt){this.http=Ut,this.scopeService=Zt,this.apiEndpoint="",this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint}getWorkflowTemplate(Ut,Zt,jn,Xe){var Lt=this;return(0,Ke.Z)(function*(){const wt=Zt?"?preview=true":"";let pn=wt;return wt?(jn&&(pn+=`&articleId=${jn}`),Xe&&(pn+=`&revisionId=${Xe}`)):jn&&(pn=`?articleId=${jn}`),Lt.http.get(`${Lt.apiEndpoint}workflow/template/${Ut}${pn}`).toPromise()})()}saveWorkflowData(Ut){var Zt=this;return(0,Ke.Z)(function*(){return Zt.http.post(`${Zt.apiEndpoint}workflow/submission`,Ut).toPromise()})()}getWorkflowUploadBaseUrl(){return`${this.apiEndpoint}workflow/attachment/`}deleteSubmittedFile(Ut){var Zt=this;return(0,Ke.Z)(function*(){return Zt.http.delete(`${Zt.getWorkflowUploadBaseUrl()}${Ut}`).toPromise()})()}getEmbeddableWorkflowList(){var Ut=this;return(0,Ke.Z)(function*(){return Ut.http.get(`${Ut.apiEndpoint}workflow/list/`).toPromise()})()}}So.\u0275fac=function(Ut){return new(Ut||So)(c.LFG(Rn.eN),c.LFG(Sn.Z))},So.\u0275prov=c.Yz7({token:So,factory:So.\u0275fac});var ba=l(4846),Yr=l(1980),Ho=l(7050);class da{constructor(Ut,Zt){this.sanitizer=Ut,this.translationService=Zt}transform(Ut){var Zt=this;return(0,Ke.Z)(function*(){if(!Ut)return"";const jn=[Ut];try{const wt=`<div>${(yield Zt.translationService.translateByUserLanguageCode(jn))[0].translation}</div>`;return Zt.sanitizer.bypassSecurityTrustHtml(wt)}catch(Xe){return console.error(Xe),Ut}})()}}da.\u0275fac=function(Ut){return new(Ut||da)(c.Y36(o.H7,16),c.Y36(ba.z,16))},da.\u0275pipe=c.Yjl({name:"apicodoTranslateText",type:da,pure:!0});const ja=["workflowForm"],ea=["workflowFileUploader"];function us(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div")(1,"p"),c._uU(2),c.qZA()()),2&Ln){const Zt=c.oxw();c.xp6(2),c.Oqu(Zt.scope.network.getResourceOrKeyName("web_common_workflow_preview_title"))}}function Ko(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div"),c._UZ(1,"div",4),c.ALo(2,"async"),c.ALo(3,"apicodoTranslateText"),c.qZA()),2&Ln){const Zt=c.oxw(2);c.xp6(1),c.Q6J("innerHTML",c.lcZ(2,1,c.lcZ(3,3,Zt.instructions)),c.oJD)}}function ca(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div")(1,"h4"),c._uU(2),c.qZA()()),2&Ln){const Zt=c.oxw(3);c.xp6(2),c.Oqu(Zt.scope.network.getResourceOrKeyName("web_workflows_uploaded_files_on_server"))}}const Sa=function(){return{class:"pull-right"}};function Go(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div")(1,"dx-button",9),c.NdJ("onClick",function(){c.CHM(Zt);const Xe=c.oxw(3);return c.KtG(Xe.sendForm())}),c.qZA()()}if(2&Ln){const Zt=c.oxw(3);c.xp6(1),c.Q6J("text",Zt.scope.currentScope.network.getResourceOrKeyName("web_common_workflow_submit"))("elementAttr",c.DdM(3,Sa))("disabled",Zt.preview||Zt.isSaving)}}function La(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div"),c._UZ(1,"dx-form",null,5),c.YNc(3,ca,3,1,"div",0),c.TgZ(4,"dx-file-uploader",6,7),c.NdJ("onFilesUploaded",function(Xe){c.CHM(Zt);const Lt=c.oxw(2);return c.KtG(Lt.onFilesUploaded(Xe))})("onUploaded",function(Xe){c.CHM(Zt);const Lt=c.oxw(2);return c.KtG(Lt.onUploaded(Xe))})("onValueChanged",function(Xe){c.CHM(Zt);const Lt=c.oxw(2);return c.KtG(Lt.onValueChanged(Xe))}),c.qZA(),c._UZ(6,"div",8),c.YNc(7,Go,2,4,"div",0),c.qZA()}if(2&Ln){const Zt=c.oxw(2);c.xp6(3),c.Q6J("ngIf",Zt.templateDefinition.withAttachments),c.xp6(1),c.Q6J("labelText",Zt.scope.network.getResourceOrKeyName("web_workflow_or_drop_file_here"))("readyToUploadMessage",Zt.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"))("selectButtonText",Zt.scope.network.getResourceOrKeyName("web_workflow_select_file_text"))("uploadedMessage",Zt.scope.network.getResourceOrKeyName("web_workflow_uploaded_message"))("uploadFailedMessage",Zt.scope.network.getResourceOrKeyName("web_workflow_upload_failed_message"))("multiple",Zt.fileUploaderOptions.multiple)("accept",Zt.fileUploaderOptions.accept)("allowedFileExtensions",Zt.fileUploaderOptions.allowedFileExtensions)("maxFileSize",Zt.scope.globalSettings.uploadMaxFileSizeInBytes)("uploadUrl",Zt.fileUploaderOptions.uploadUrl)("visible",Zt.templateDefinition.withAttachments),c.xp6(3),c.Q6J("ngIf",!Zt.preview&&Zt.templateDefinition.formDefinitionJSON)}}function jo(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div")(1,"h2"),c._uU(2),c.qZA()()),2&Ln){const Zt=c.oxw(2);c.xp6(2),c.Oqu(Zt.scope.network.getResourceOrKeyName("web_common_workflow_completed"))}}function ta(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div")(1,"h2"),c._uU(2),c.qZA()()),2&Ln){const Zt=c.oxw(2);c.xp6(2),c.Oqu(Zt.scope.network.getResourceOrKeyName("domain_workflow_article_read_receipt_completed"))}}function Oa(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div"),c._UZ(1,"h1",2),c.ALo(2,"async"),c.ALo(3,"apicodoTranslateText"),c.YNc(4,Ko,4,5,"div",0),c.TgZ(5,"div",3),c.YNc(6,La,8,13,"div",0),c.YNc(7,jo,3,1,"div",0),c.YNc(8,ta,3,1,"div",0),c.qZA()()),2&Ln){const Zt=c.oxw();c.xp6(1),c.Q6J("innerHTML",c.lcZ(2,5,c.lcZ(3,7,Zt.workflowName)),c.oJD),c.xp6(3),c.Q6J("ngIf",Zt.templateDefinition.multipleUse||!Zt.isOneTimeCompleted),c.xp6(2),c.Q6J("ngIf",Zt.templateDefinition.multipleUse||!Zt.isOneTimeCompleted||Zt.preview),c.xp6(1),c.Q6J("ngIf",Zt.isOneTimeCompleted&&"WorkflowTemplateArticleRelated"!==Zt.workflowType),c.xp6(1),c.Q6J("ngIf",Zt.isOneTimeCompleted&&"WorkflowTemplateArticleRelated"==Zt.workflowType)}}function ma(Ln,Ut){if(1&Ln&&(c.TgZ(0,"div"),c._UZ(1,"div",2),c.ALo(2,"async"),c.ALo(3,"apicodoTranslateText"),c.qZA()),2&Ln){const Zt=c.oxw();c.xp6(1),c.Q6J("innerHTML",c.lcZ(2,1,c.lcZ(3,3,Zt.brokenCordovaAppHint)),c.oJD)}}function ha(Ln,Ut){if(1&Ln&&(c._UZ(0,"h1",2),c.ALo(1,"async"),c.ALo(2,"apicodoTranslateText")),2&Ln){const Zt=c.oxw();c.Q6J("innerHTML",c.lcZ(1,1,c.lcZ(2,3,Zt.error)),c.oJD)}}class $o{constructor(Ut,Zt,jn,Xe,Lt){this.workflowService=Ut,this.translationService=Zt,this.scopeService=jn,this.el=Xe,this.renderer=Lt,this.uploaderVisible=!1,this.ispreview=!1,this.isOneTimeCompleted=!1,this.isBrokenAndroidCordovaApp=!1,this.brokenCordovaAppHint="",this.instructions="",this.version="",this.workflowName="",this.workflowType="",this.attachmentData=[],this.templateDefinition={},this.reloadComplete=!1,this.uploaderStore={},this.readOnly=!1,this.preview=!1,this.isSaving=!1,this.error="",this.uploadedFiles=new Map,this.Oculus=window.Oculus,this.scope=this.scopeService.getScope(),(0,tn.SP)(this.scope.network.settings.languageCode),this.uploaderVisible=!0;var wt="*",pn=[],qn=!0;this.isBrokenAndroidCordovaApp=this.scopeService.getUserClientInfo().androidVersion>=13,this.brokenCordovaAppHint=this.scope.network.getResourceOrKeyName("web_broken_android_13_app_upload_hint"),this.isBrokenAndroidCordovaApp&&(wt="image/jpg, image/jpeg, image/gif, image/png",pn=[".jpg",".jpeg",".gif",".png"],qn=!0),this.fileUploaderOptions={labelText:this.scope.network.getResourceOrKeyName("web_workflow_or_drop_file_here"),readyToUploadMessage:this.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"),selectButtonText:this.scope.network.getResourceOrKeyName("web_workflow_select_file_text"),uploadedMessage:this.scope.network.getResourceOrKeyName("web_workflow_uploaded_message"),uploadFailedMessage:this.scope.network.getResourceOrKeyName("web_workflow_upload_failed_message"),multiple:qn,accept:wt,allowedFileExtensions:pn,value:[],maxFileSize:this.scope.globalSettings.uploadMaxFileSizeInBytes,uploadMode:"useButtons",uploadUrl:this.workflowService.getWorkflowUploadBaseUrl(),onValueChanged:function(Qe){Qe.element.find(".dx-fileuploader-upload-button").hide(),Qe.value.forEach(lt=>{Qe.component.option("isValid",!0),lt.size>this.scope.globalSettings.uploadMaxFileSizeInBytes&&Qe.component.option("isValid",!1)})},onFilesUploaded:function(Qe){this.saveWorkflowData()},onUploaded:function(Qe){var lt=JSON.parse(Qe.request.responseText);this.uploadedFiles.set(lt,Qe.file)}}}ngOnInit(){this.loadWorkflowData(),this.element=this.el.nativeElement}ngAfterViewInit(){this.formInstance=this.formComponent.instance}initializeForm(Ut){this.formComponent.instance.resetValues(),this.loadWorkflowData()}sendForm(){this.formInstance.validate().isValid&&(!this.templateDefinition.withAttachments||this.fileUploader.isValid)&&(this.templateDefinition.submissionDataJSON=JSON.stringify(this.formInstance.option("formData")),"{}"!==this.templateDefinition.submissionDataJSON&&this.templateDefinition.submissionDataJSON&&(this.ispreview||(this.isSaving=!0,this.reloadComplete=!1,this.templateDefinition.withAttachments&&this.fileUploader.value.length?this.fileUploader.instance.upload():this.saveWorkflowData())))}saveWorkflowData(){var Ut=this;return(0,Ke.Z)(function*(){Ut.isSaving=!0,Ut.templateDefinition.oculusGuid=Ut.OculusTracker?Ut.OculusTracker.guid:null,Ut.templateDefinition.attachments=[],Ut.uploadedFiles.forEach((Zt,jn)=>{Ut.templateDefinition.attachments.push({id:jn,fileName:Zt.name})});try{if(yield Ut.workflowService.saveWorkflowData(Ut.templateDefinition),Ut.OculusTracker)try{Ut.OculusTracker.click()}catch(Zt){console.log("OCULUS CLICK FAILED",Zt)}Ut.fileUploader&&(Ut.fileUploader.instance.reset(),Ut.uploadedFiles.clear()),Ut.loadWorkflowData(),(0,Vo.Z)({message:Ut.scope.currentScope.network.getResourceOrKeyName("web_workflows_final_submission_success"),position:{my:"center center",at:"center center"},onShown:()=>{Ut.initializeForm({component:Ut.formInstance}),Ut.isSaving=!1},maxWidth:"540px"},"success",3e3)}catch(Zt){Ut.uploadedFiles.size&&(Ut.fileUploader.instance.reset(),Ut.fileUploader.instance.option("value",Array.from(Ut.uploadedFiles.values())),Ut.uploadedFiles.forEach((jn,Xe)=>{Ut.workflowService.deleteSubmittedFile(Xe)}),Ut.uploadedFiles.clear()),(0,Vo.Z)({message:Ut.scope.currentScope.network.getResourceOrKeyName("web_workflows_final_submission_error"),position:{my:"center center",at:"center center"},onShown:()=>{Ut.isSaving=!1},maxWidth:"540px"},"error",3e3),console.log(Zt)}})()}loadWorkflowData(){this.workflowService.getWorkflowTemplate(this.workflowid,this.ispreview,this.articleid,this.revisionid).then(Ut=>{Ut?this.processTemplateData(Ut):this.error="Workflow does not exist"},Ut=>{this.error="Error loading workflow"})}processTemplateData(Ut){this.workflowType=Ut.workflowType,this.templateDefinition=Ut,this.templateDefinition.articleid=this.articleid,this.isOneTimeCompleted=Ut.isOneTimeCompleted,this.version=Ut.version,this.instructions=Ut.fillInstructions,this.preview=this.ispreview||Ut.isDraft,this.workflowName=Ut.name;const Zt=JSON.parse(this.templateDefinition.formDefinitionJSON);if(Zt){Zt.labelLocation=Zt.items.some(Li=>Li.label.text.length>20)?"top":"left";var jn=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==jn){var Xe=this.scope.profile,Lt=this.scope.network.settings.languagePack.split("-")[0];if(null!=Xe.activeUserLanguage?.vendorLanguageCode&&Lt!=Xe.activeUserLanguage?.vendorLanguageCode){var wt=[],pn=[],qn=[],Qe=[],lt=[];Zt.items.forEach(Li=>{"dxTextArea"===Li.editorType&&(Li.editorOptions.minHeight=25,Li.editorOptions.maxHeight=500,Li.editorOptions.autoResizeEnabled=!0),wt.push(Li.helpText),pn.push(Li.label.text),qn.push(Li.editorOptions.placeholder),Qe.push(Li.editorOptions.switchedOffText),lt.push(Li.editorOptions.switchedOnText)});var xt=wt.concat(pn).concat(qn).concat(Qe).concat(lt);this.translationService.translateByUserLanguageCode(xt).then(Li=>{for(var rr=wt.length,Cr=0;Cr<rr;Cr++)Zt.items[Cr].helpText=Li[Cr].translation,Zt.items[Cr].label.text=Li[Cr+rr].translation,Zt.items[Cr].editorOptions.placeholder=Li[Cr+2*rr].translation,Zt.items[Cr].editorOptions.switchedOffText=Li[Cr+3*rr].translation,Zt.items[Cr].editorOptions.switchedOnText=Li[Cr+4*rr].translation;this.formInstance.option(Zt);var qr=JSON.parse(this.templateDefinition.submissionDataJSON);this.formInstance.option("formData",qr),this.preview&&this.formInstance.validate()})}else{Zt.items.forEach(Li=>{"dxTextArea"===Li.editorType&&(Li.editorOptions.minHeight=25,Li.editorOptions.maxHeight=500,Li.editorOptions.autoResizeEnabled=!0)}),this.formInstance.option(Zt);var Tn=JSON.parse(this.templateDefinition.submissionDataJSON);this.formInstance.option("formData",Tn),this.preview&&this.formInstance.validate()}}else Zt.items.forEach(rr=>{"dxTextArea"===rr.editorType&&(rr.editorOptions.minHeight=25,rr.editorOptions.maxHeight=500,rr.editorOptions.autoResizeEnabled=!0)}),this.formInstance.option(Zt),Tn=JSON.parse(this.templateDefinition.submissionDataJSON),this.formInstance.option("formData",Tn),this.preview&&this.formInstance.validate()}if(this.reloadComplete=!0,!this.preview&&(this.templateDefinition.multipleUse||!Ut.isOneTimeCompleted)&&(this.OculusTracker=this.Oculus.trackWorkflowImpression(this.element,{c:this.scope.currentChapter.slug,n:this.scope.network.slug,iw:Ut.id,iwt:Ut.workflowTemplateId})),this.templateDefinition.withAttachments){this.uploaderVisible=!0;var ii="*",wi=[],Pi=!0;this.isBrokenAndroidCordovaApp=this.scopeService.getUserClientInfo().androidVersion>=13,this.brokenCordovaAppHint=this.scope.network.getResourceOrKeyName("web_broken_android_13_app_upload_hint"),this.isBrokenAndroidCordovaApp&&(ii="image/jpg, image/jpeg, image/gif, image/png",wi=[".jpg",".jpeg",".gif",".png"],Pi=!0),this.fileUploaderOptions={labelText:this.scope.network.getResourceOrKeyName("web_workflow_or_drop_file_here"),readyToUploadMessage:this.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"),selectButtonText:this.scope.network.getResourceOrKeyName("web_workflow_select_file_text"),uploadedMessage:this.scope.network.getResourceOrKeyName("web_workflow_uploaded_message"),uploadFailedMessage:this.scope.network.getResourceOrKeyName("web_workflow_upload_failed_message"),multiple:Pi,accept:ii,allowedFileExtensions:wi,value:[],maxFileSize:this.scope.globalSettings.uploadMaxFileSizeInBytes,uploadMode:"useButtons",uploadUrl:this.workflowService.getWorkflowUploadBaseUrl(),onValueChanged:function(Li){Li.element.find(".dx-fileuploader-upload-button").hide(),Li.value.forEach(rr=>{Li.component.option("isValid",!0),rr.size>this.scope.globalSettings.uploadMaxFileSizeInBytes&&Li.component.option("isValid",!1)})},onFilesUploaded:function(Li){this.saveWorkflowData()},onUploaded:function(Li){var rr=JSON.parse(Li.request.responseText);this.uploadedFiles.set(rr,Li.file)}}}}onUploaded(Ut){const Zt=JSON.parse(Ut.request.responseText);this.uploadedFiles.set(Zt,Ut.file)}onFilesUploaded(Ut){this.saveWorkflowData()}onValueChanged(Ut){Ut.element.querySelectorAll(".dx-fileuploader-upload-button").forEach(jn=>{this.renderer.setStyle(jn,"display","none")}),Ut.component.option("isValid",!0),Ut.value.forEach(jn=>{jn.size>this.scope.globalSettings.uploadMaxFileSizeInBytes&&Ut.component.option("isValid",!1)})}}$o.\u0275fac=function(Ut){return new(Ut||$o)(c.Y36(So),c.Y36(ba.z),c.Y36(Sn.Z),c.Y36(c.SBq),c.Y36(c.Qsj))},$o.\u0275cmp=c.Xpm({type:$o,selectors:[["app-workflow-renderer"]],viewQuery:function(Ut,Zt){if(1&Ut&&(c.Gf(ja,5),c.Gf(ea,5)),2&Ut){let jn;c.iGM(jn=c.CRH())&&(Zt.formComponent=jn.first),c.iGM(jn=c.CRH())&&(Zt.fileUploader=jn.first)}},inputs:{workflowid:"workflowid",ispreview:"ispreview",articleid:"articleid",revisionid:"revisionid"},decls:4,vars:4,consts:[[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[1,"dx-viewport"],[1,"text",3,"innerHTML"],["workflowForm",""],["uploadMode","useButtons","name","file",3,"labelText","readyToUploadMessage","selectButtonText","uploadedMessage","uploadFailedMessage","multiple","accept","allowedFileExtensions","maxFileSize","uploadUrl","visible","onFilesUploaded","onUploaded","onValueChanged"],["workflowFileUploader",""],[1,"divider",2,"margin-top","12px"],["type","default",3,"text","elementAttr","disabled","onClick"]],template:function(Ut,Zt){1&Ut&&(c.YNc(0,us,3,1,"div",0),c.YNc(1,Oa,9,9,"div",0),c.YNc(2,ma,4,5,"div",0),c.YNc(3,ha,3,5,"h1",1)),2&Ut&&(c.Q6J("ngIf",Zt.preview),c.xp6(1),c.Q6J("ngIf",!Zt.error&&!Zt.readOnly),c.xp6(1),c.Q6J("ngIf",Zt.isBrokenAndroidCordovaApp),c.xp6(1),c.Q6J("ngIf",Zt.error))},dependencies:[$i.O5,Ze.K,Yr.z,Ho.Y,$i.Ov,da]});class Da{constructor(Ut,Zt){this.http=Ut,this.scopeService=Zt,this.apiEndpoint="",this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint}search(Ut,Zt,jn){var Xe=this;return(0,Ke.Z)(function*(){return Zt||(Zt=1),jn||(jn=20),Xe.http.post(Xe.apiEndpoint+"pixabay/search",{query:Ut,language:2,page:Zt,perPage:jn}).toPromise()})()}create(Ut){var Zt=this;return(0,Ke.Z)(function*(){return Zt.http.post(Zt.apiEndpoint+"pixabay/create",Ut).toPromise()})()}}Da.\u0275fac=function(Ut){return new(Ut||Da)(c.LFG(Rn.eN),c.LFG(Sn.Z))},Da.\u0275prov=c.Yz7({token:Da,factory:Da.\u0275fac});var _a=l(1759),va=l(8208),pa=l(1740),Qt=l(6812);function Kt(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div")(1,"div",17),c._UZ(2,"img",18),c.qZA(),c._UZ(3,"br"),c.TgZ(4,"p"),c._uU(5),c.TgZ(6,"dx-text-box",19),c.NdJ("valueChange",function(Xe){c.CHM(Zt);const Lt=c.oxw();return c.KtG(Lt.imageData.tags=Xe)}),c.qZA()(),c.TgZ(7,"p"),c._uU(8),c.TgZ(9,"span"),c._uU(10),c.qZA()(),c.TgZ(11,"p"),c._uU(12),c.TgZ(13,"span"),c._uU(14),c.qZA()(),c.TgZ(15,"div")(16,"input",20),c.NdJ("ngModelChange",function(Xe){c.CHM(Zt);const Lt=c.oxw();return c.KtG(Lt.alwaysShowImageDescription=Xe)}),c.qZA(),c.TgZ(17,"label",21),c._uU(18),c.qZA(),c._UZ(19,"br"),c.qZA()()}if(2&Ln){const Zt=c.oxw();c.xp6(2),c.Q6J("src",null==Zt.imageData?null:Zt.imageData.largeImageURL,c.LSH),c.xp6(3),c.hij(" ",Zt.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_tags"),": "),c.xp6(1),c.Q6J("value",Zt.imageData.tags),c.xp6(2),c.hij(" ",Zt.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_source"),": "),c.xp6(2),c.Oqu(Zt.imageData.pageURL),c.xp6(2),c.hij(" ",Zt.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_author"),": "),c.xp6(2),c.Oqu(Zt.imageData.user),c.xp6(2),c.Q6J("checked",Zt.alwaysShowImageDescription)("ngModel",Zt.alwaysShowImageDescription),c.xp6(2),c.hij(" ",Zt.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_show_description_checkbox")," ")}}function Pt(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div")(1,"img",22),c.NdJ("click",function(){const Lt=c.CHM(Zt).$implicit,wt=c.oxw();return c.KtG(wt.selectImage(Lt))}),c.qZA()()}if(2&Ln){const Zt=Ut.$implicit;c.xp6(1),c.Q6J("src",Zt.largeImageURL,c.LSH)}}function Pn(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div")(1,"img",22),c.NdJ("click",function(){const Lt=c.CHM(Zt).$implicit,wt=c.oxw();return c.KtG(wt.selectImage(Lt))}),c.qZA()()}if(2&Ln){const Zt=Ut.$implicit;c.xp6(1),c.Q6J("src",Zt.largeImageURL,c.LSH)}}function Vi(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div")(1,"img",22),c.NdJ("click",function(){const Lt=c.CHM(Zt).$implicit,wt=c.oxw();return c.KtG(wt.selectImage(Lt))}),c.qZA()()}if(2&Ln){const Zt=Ut.$implicit;c.xp6(1),c.Q6J("src",Zt.largeImageURL,c.LSH)}}function Wr(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div")(1,"img",22),c.NdJ("click",function(){const Lt=c.CHM(Zt).$implicit,wt=c.oxw();return c.KtG(wt.selectImage(Lt))}),c.qZA()()}if(2&Ln){const Zt=Ut.$implicit;c.xp6(1),c.Q6J("src",Zt.largeImageURL,c.LSH)}}class fo{constructor(Ut,Zt){this.scopeService=Ut,this.pixabayService=Zt,this.chunks=[],this.error=!1,this.working=!1,this.submitBtnOptions={icon:"add",text:"",onClick:()=>{this.submitRequest()}},this.submitAndCloseBtnOptions={icon:"fa fa-check",text:"",onClick:()=>{this.submitAndClose()}},this.cancelBtnOptions={icon:"back",text:"",onClick:()=>{this.visiblePopup=!1}},this.scope=this.scopeService.getScope(),this.imageData=null,this.searchTerm="",this.data={},this.delay=2e3,this.pageSize=12,this.totalPages=1,this.currentPage=1,this.visiblePopup=!1,this.alwaysShowImageDescription=this.scope.currentScope.network.settings.configurations.alwaysShowImageDescriptionDefaultValue,this.timerId=null,this.searchBox={valueChangeEvent:"keyup",placeholder:this.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_search_placeholder"),onValueChanged:Xe=>{this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(()=>{this.searchTerm!=Xe.value&&(this.currentPage=1),this.searchTerm=Xe.value,this.search(this.searchTerm)},this.delay)}},this.search=Xe=>{this.pixabayService.search(Xe,this.currentPage,this.pageSize).then(Lt=>{this.data=Lt,this.totalPages=Lt.total/this.pageSize,this.data=JSON.parse(JSON.stringify(Lt));var wt=Math.ceil(this.pageSize/4);Lt.hits.length<this.pageSize&&(wt=Math.ceil(Lt.hits.length/4)),this.chunks=this.spliceIntoChunks(Lt.hits,wt),this.totalPages=Math.ceil(this.totalPages)})},this.selectImage=Xe=>{this.imageData=Xe,this.visiblePopup=!0},this.submitAndClose=()=>{this.submitRequest(),this.dismiss&&this.dismiss()},this.goNext=()=>{this.currentPage<this.totalPages&&(this.currentPage++,this.search(this.searchTerm))},this.goPrev=()=>{1!=this.currentPage&&(this.currentPage--,this.search(this.searchTerm))},this.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:()=>{this.submitRequest()}}},{widget:"dxButton",toolbar:"bottom",location:"before",options:{icon:"fa fa-check",text:"",onClick:()=>{this.submitAndClose()}}},{widget:"dxButton",toolbar:"bottom",location:"after",options:{icon:"back",text:"",onClick:()=>{this.visiblePopup=!1,this.imageData=null}}}]}}ngOnInit(){this.search(this.searchTerm)}submitRequest(){this.visiblePopup=!1;var Zt={articleId:this.callerdata.articleId,blobId:new en.Z,staticArticleId:this.callerdata.staticArticleId,snipId:this.callerdata.snipId,sponsoredArticleId:this.callerdata.sponsoredArticleId,networkId:0,chapterId:0,eventId:this.callerdata.eventId,author:this.imageData.user,source:this.imageData.pageURL,sourceUrl:this.imageData.largeImageURL,text:this.imageData.tags,title:this.imageData.tags,width:this.imageData.imageWidth>this.imageData.imageHeight?1280:Math.ceil(1280/this.imageData.imageHeight*this.imageData.imageWidth),height:this.imageData.imageHeight>this.imageData.imageWidth?1280:Math.ceil(1280/this.imageData.imageWidth*this.imageData.imageHeight),alwaysShowImageDescription:!!this.alwaysShowImageDescription};this.pixabayService.create(Zt).then(jn=>{(0,Vo.Z)({message:this.imageData.tags,position:{my:"center top",at:"center top"}},"success",3e3),this.callback&&(jn.assetImage.assetImageUrl=this.imageData.largeImageURL,this.callback(jn),this.visiblePopup=!1,this.imageData=null)},()=>{this.error=!0,this.working=!1})}spliceIntoChunks(Ut,Zt){for(var jn=[];Ut.length>0;){var Xe=Ut.splice(0,Zt);jn.push(Xe)}return jn}}fo.\u0275fac=function(Ut){return new(Ut||fo)(c.Y36(Sn.Z),c.Y36(Da))},fo.\u0275cmp=c.Xpm({type:fo,selectors:[["app-pixabay-searcher"]],inputs:{callback:"callback",callerdata:"callerdata",dismiss:"dismiss"},decls:26,vars:16,consts:[[1,"dx-viewport"],[1,"row"],[1,"col-sm-7"],[1,"col-xs-1"],["height","30","src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAAAAADuvYBWAAAfcElEQVR42u2d92PU5B/Hv3/Lc72WDkopsxQsAiJo2QgUQSqjKlBFKqsgQ4SqWAqCKOBgyFI2FQRcBVFkFJGhTBkFyrZAGaVtvoeFJk+SJ3kyLk1y79ePd3lG8rpLnvXJ8z8CIo7/4RJAOoB0AOkA0gGkA0gHkA4gHUA6gHQA6QDSAaQDSAeQDiAdQDqkA0gHkA4gHUA6gHQA6QDSAaQDSAeQDiAdQDqAdADpANIBpEM6gHQA6QDSAaQDSAeQDiAdQDqAdADpANIBpANIB5AOIB1AOqQDSAeQDiAdQDqAdADpANIBpANIB5AOIB1AOoB0AOlS+n87IAqqI0z6ZkG4MLsVZEeS9EYVQoiqndkx8B0x0t8VHnPzy44wHiHSjwsiB3MTIT0CpHcXKO6u6Q3pvmeFIOf0e80g3dck3BGUVG4fEoR0/zJaUOfyvKch3a/sE5jszomDdD/STtDi1rLOkO4/Fgg6HJ2cDOn+InhV0OXBpn4BSPcRrwhcnJ+ZCum+4QeBk6qiodGQ7gtSKgV+rn/WHtJ9wAzBGMVjEyDd4wTOCEYp/7onpHuaDMEMJ/KaQLp3WSeY4+F3A4OQ7k0a3BNMUzo3DdK9yNuCFap/HREL6Z7jkGCRf5ekQ7q3eF6wgcMTkyDdQywWbOH++owApHuEejcFuzj7YQqke4LXBRup/PHVIKS7n18Ee7m6oB2ku5ynqgXb2Tc6AdLdzEdCOLizojuku5aoi0KYOP5uI0h3J5lMaWU3rGqv+DYzCtJdyGamsk9ihhVVWfV+4aNWkO42asKTVWkT+jq14LxV7dU7s+tBuqt4lynr95oDAv03PbDq/eai5yDdRRxnmsqpPSZ5yl+WW3UHxydCukvozo5poSKZuiy7bVX73bV9IN0VrGA6WiY7Mj7nd8t/93/ebwbpdY5qeHINXZRHt/n0iuWh+e1ZQUivW0Yx7fylenwwa3ulVe+XP2kD6XXJXqaaKawkzT/4x/Jt/nePhD77Ujo7PPmBVoRqn7X3rGq/tawLpNcN7PDkTdoJG0z40/Lf/a8pyZDuPBrhyf11Ez+/2PKCmweb+gcg3WHY4cnneWTUe/0Xy1Px5wtSId1R2OHJBZw5PDXH8sRsVdGwGEh3DHZ4chX/3y8qc8tDq95vfP4spDsEOzy5yFA+jaedsNyqKx5XH9IdQCM8eZjRvHqsKreqvfybFyA97LDDk2+YeMgmjCm2/Hc/6bbQZ/9JX8u8+J+by7D9wutWtT/cOigI6eFDIzzZdLMqeujPltdXuSn02XfS2eHJB6xk2yL/nOX1Vb+9GQvpYYEdnjzOYgOx38b7Vr2XuSP02W/S2eHJ5dY7Tw0nH7XcqjsyKQnSbYYdnvyNLfl3/uqW9dDnvgFItxGN8GS7ustxObst/93P5adAum2ww5NP2ljK0/Mu2xD6HA3p9sAOT86ztZzgEOvrq64teAbSbYAdnvywqd1lNXv/tFdDn/0lnR2evDUcxfVec9dy6PPKHpBuCY3w5EHhKTFx/EEPhj77Sjo7PLk0fEPfHb+0vL6qYrOzoc++ks4OT/44rP3E7J2W11dd/OgpSDcDOzy5unWYi2710QXLQ/O/vF4P0g3DDk/+zYH2ROa3FV4JffaTdHZ48pvO3GnePW65VffnhAaQbgB2eHKZY1Oa3Vfesar9XvhDn30knR2evNTBWiSM3mc99PmD5pDOOVSSycLh6PFnFlxzd+hzBOyfXgdEv/qj5aH5K5+2gXSPkWJ9fZWwJyce0r1FoO8Gy+urbi/vCukeI2nSEct/97/tD32G9DDTaWmZ5dDnwpcCkO4tYt/cbXlovqSgpWek9ztqhPW+9d7641Lroc/DY7whfaKxmSYf/92Dg7dZ7sTZFvocXukfGxuRiCJ+pmneKcutugOt3C/d4GLh7sTn9FptMfT5erTrpScbvKN94v9WXf3cP6xIX+j+27vRvU7PBUkE0OEL8+ur2rteepzhJmtuZHTiYrJ3mAt9LnZ/Q+5D40Hc9UmE0HJWiQnpY10vva+JPsr3UZFinUQNKDS6vqo8we3S292su5aKR0ieeszQxfna7YMzfU22VtbERJJ20m2FgfVVPd0tPaHA9Kv3irtGlHUSP2ov71uqiJult5p+1UpndHO/YGR5bzef63rluUr6KAm5s1dYn0Mu27Jw2ihX0jk82oOv/KDb7H3YxFXShcjh07D93VM+PKtdtH2Bt5DuFumh9VUZ67S2lhgE6T6UHiLpKycCbyHdVdKdCbyFdFdJdybwFtJdJd2ZwFtId5V0ZwJvId1N0jUCb+Mg3afSHQq8hXQXSdfYF7gTpPtUOntf4CME0n0qnf06g8mQ7lPp7H2B7zeEdJ9KZ+8LvJFAuj+la+wL3A/SfSqdvS/wuQCk+1Q6e1/gmQTS/SldY1/gFpDuU+nsfYF/JpDuT+ka+wIPhXSfSmfvC3w92lvSK28ZoTySpa9jFvkZ8Zb0Ipt+7P6XrrEvcHtI56P87L4tS/Jz8xau33X8ZrUHpLND+YsJpOvq/m5M76fp6M7oFl1eWXze3dLDti+w/6WXLB7AjH/sMGN/lWulh3VfYB9Lryqe0VGngMZvbbnjTunh3hfYn9IrlvBtWRszvtSF0uv9yyzwBUhndQ1X829wFTvthuukv8Es7ySBdFWqC9sZKqd+wW2XSd/FLC8P0lX5Md1whZPn33OTdPa+wJVNIV2FE+Y2qG2+yUXS5zCL20YgXeWqmO7RTK10i3SNfYEHQ7ryaT7TwpqSjOsuke74vsCeln7L2h8h9U93SHd8X2AvSz/R1mK9Y1e7Qbrz+wJ7WPpWGwYoJz6se+ns8OTdBNJpFtuyRPTFijqXzg5PHgnpNNtteotsTl1L78FussRBOsXhBLuuwNw6lr6SWdZXBNKlXEqx7QoECutUukZ4cmdvSt8Za4QB/Csl0m28BLHFdSl9NLOoo8Sb0sNEpb0DVU1K6lC6U+HJnpc+xeaL8OztOpP+DLOkB8mQLmGt7Vfh1TqTzg5P3kQgXfJAb6Zfo+YjPlj83YGSv35e+VEuz+tafq0j6dHs8OT+kC5hll51Oub/QU1QX1o6QG+7iPTqupHOvsWcD0C6yGXtHnogRy0o7PaCJO1TWFs30n9kFjSTQDrvOvCXWDsM3JxeTytd6v26kK4RnpwK6SLHtKaY2xRpLYofpnUO8+pC+oc2DWv5XfrLGvUYUKaddoHGeH3ideelB9h7OQyDdJFfNKrxju4CqJ8S2aknOS+dPe58IwbSRdjjr9EredZdsJclBM86Lp0dnvw5gXTxic6uxNdcGZQ0ZmYw12npSex12M9CushcZh2mcuawh3njTHda+kRmKQcIpIswR9cyuRc0r2SexnmHpR9mlpIL6SIXWDVoW2bDdM3nzkpn31nK60O6yCJWDXYayOQeawFGb2els8OTVxNIF8lgVKC/oVxWMXKJuuak9Fh2eHIvSJcMpTJG4wKHjK3BYL26Z4WT0tnhyacIpOvf9rIN5sMKC8x0Ujo7PPk9SJeQxSj/hNGMnlPPJ+a2c9LTHA5P9qx0RgusveGM5jBOZK9z0p0OT/aq9HJG8fm2Deytckx61CVmEYMhXcIhRvEmgk8ZQ/B5jkl/mb1IJAjpEjaol97CRFaMV7kMcUz6FmYJ8wik6y+OG2UiK8YahXZOSW/MjpZ9GtKlMFb/zzSR1QmGC6ekT2MWsJtAupRR6qV/ZSKrfxmjZE5JZ3cycyCdZwnRNjN5xarnVemM9DoIT/aq9Ez10v8wk1eael5lzkhnL/JZRiCdgvGa1BIzeTHePnfJEekJ7D0sukA6TV/10o+byauDel7XHJE+hpn9XwTSuYbed5rJixESes8R6fuNL/CIWOlvqpe+1kRWD9SzCjrSeq+T8GSvSp+gXvonJrI6r55VkiPS2eHJhQTS+cZOp5jIirEbTqoT0qPZDYf+kC5nqXrpvUxktUQ9q95OSK+b8GSvSt/FmKU08WLfl9SzGueEdHZ4cgGBdDmXGMV/bTinsmijT1v7pGuEJ7eEdCUJZidEOSdpyfcOSM83OvUX4dIZw1WxhjdpHc44kbPhl64Rnjwc0lX4kFH+YoP5XGRMt7QWwi+9LzPr8IYne1b6QUb5jQ1usceYoyXTHZC+npn1FwTSVahmBSQZW0dxjPVCir3hl5503+h0QKRLZ43JkYQrRnIZxMilSVX4pbPDk/8gkG6sfTvaQCY7WJmME8Ivvc7Ck70rvYIZw7uCO49zycZHTWyTzg5PvpsI6QyymQPav3PmcIf5Zo+EB+GXzu5nrCGQzmAjsw6NznFlUDWEmcMwIezSNcKTe0M6i1vRzEp04GnMVWu8RH1D+KWPYOZ7mkC6meZOi8O6qcuz2Mlb3g+/dPbLpt+DdDaX49nViNfbjeWcVleYbwGOJeka4cnNIF2DfM3JDM299XY10kj6XFX4pbPfVLedQLoGtxtr1aQNOzDwZJbmOfwshF26RnjyEEjXZJF2XXqqLzW9khs0OQ9in/Q6DU/2tvSHaTq16bdUvh95+da3dPbuC/zpgHT2XegTAunacOxokz57T0nNJqrV146sGByrm4D7VUVq0hNe4lrbphGe3AbS9frafKE/gcbpmT1aRnMdG33WivRmwvkCjo0Y2BO3vxNI16PY9tUG/FOz6tJDI31Fw/RqVbfhyV6Xznzlo1mGVFmW/mjly+eaL+xmhyffjod0Dt6x9Ro8a2DhjYb0R/egcexX+bLfXLWcQDoHlQNsvATJZwW7pIc6Ct/0ZMzhsVdvdoV0Lsra2nYFgr8KNkp/NAqU10TloLoOT/aBdOF0kl1XYIlgs/TQUMJ3AxWjLXUdnuwH6cIOmwaxcgX7pYconUuPIbFfZepQeLIvpAtLbIn26/cwPNJDwwm/jpAMCi1k5lhIIJ2fb23o6YypEMIlPcS/S57sKKYRnvwSpBvhcAurbbgvDJdpSPqjOk78r/HxGvOAkihIN8SVHpaqnVQkhF26INxblxEgPzG/nkUg3RgPrAxgtj0lOCE9xNm5dR+e7B/p2nvmajOgTHBKulYnhEC6cX5qbKrKUdMrBTdIz4Z0U+un8k204gcfN1mazdJvxkC6OS7nGhyo6f676bJslv4lgXSznHzFQG3bbLZQks3SO0K6Bfb15Kxr06WVgmukHySQbomiMfpNupjMZeXWSrFX+nhIt0rVnmlaK2XrZ2+8bbkMW6U7GZ7sV+mP+PujdNUqNsv9ucKO/G2VvoZAuk1c3L5gbK8mTxr0gcTnhuevO1xlU+a2Su8N6XYP0d44d+yfK+XV9uZqp/R/CKR7Ajulvw/p3pXe8KaprJwNT4Z0e6WTmOwdJtoM2wmke1h6iJazDG8alQXpHpcemrcbUGioU3glCOmelx4i+Z2/bcoJ0j0jPUS3Fbyjfm0h3S/SCYl/aw9PRnsIpPtHeoi28/XfafcWpPtLemhxddb32jO4jocnQ3rYpYdoPuOMRj4rCKT7UHqIjLXMvVu7QrpPpRPS4O1Dqtn8TSDdt9JDPL9Y5dXP70C6r6UTUu+NXbIJ3opkSPe59BBpc6hXhBYSSPe/9NDQ/MtbxFD4AZAeEdJDNJ72+FVyF6IgPVKkh+ix6tES7NkE0iNIOiEJY/ZXtfKD9DWRgx2b4LYkfpAOvAWkQzqAdADpANIBpANIB5AOIB1AOoB0AOkA0gGkA0gHkA4gHUA6pANIB5AOIB1AOoB0AOkA0gGkA0gHkA4gHUA6gHQA6QDSAaRDOoD0iGJ54RPGQnqkIG6+sRzSIR3SIR3SIR3SIR3SvcRlSId0SId0SId0SId0SId0SPcIpZAO6ZAO6ZAO6ZAO6ZAO6ZAO6ZAO6ZAO6T6U3uj5ga/3SauneUwvcUfL6Mcf9fhSSp56ukA+dVRrVhXSsybPXz53cnbPWC7pu0dJyXkts3enZ5IMn3j0U71HvL9kUf64Ie00jkqYXUsXnQwza4/8wMXSG4/67vyDmutYff3Qwowg68BR4t61T7TEHKa2tB2pmm4GdcxatUNiBq35VzykYv/8l4O60tWoOrJwUH3+U0+ZsqdKTHx967ss8U3Foybo5Pll7ZG33Cq96Xv7qmQXrqzw9SCvdNK2nEqaqpLsxUrpIUfiFAcEB6+9pdBXOivFhPRHVB6YEMN16u/sq1Yk/i07Wu3YJvzSF7ldeuKcctXrdnp4gFM6GU0l3KVMl3JNesC/aYoDeh5hyFvf3JT0EJcm1dO9rb+nfurC1SlRfpZeb+oN5mU79BKndFJIpXtH8TfeR91+X1ZczjXVzErcmqi8/pf49k4vnRKree4vnmCn/eN55SOQX/piV0tPO6552dbU45Pe4Lw01f32skSfU5nOlLfxJt/SrERxmknpgvC3xtbnzQq1HxBzAz6VnnFT56rtb8olnfSkntmH6PbAMCrLH2QXM+pr3X/ss2alC1e6MX/u5/XSbpA92Rv5Q/r4h7pX7WI6l3Qyk0o1R/pVuzvSr87IelTBTfrqbnY1K124N1z91NtztAt+pNubyfzSl7hX+lyeq3a3D5f0qN+pe2N38Zv4Y1R2HWVtiu08lbjT16x0oXqG2ql3usGTdk8D30nP4btqN9N4pJMW1JPin/jaL9ZRub1B1yF2J18l7g8wK10QcpWn3uMWX9IjieakL3Wr9B4POC/aiUQe6eQ1KtHSJx+/TX38JfPqSO7IlWqdqGRJqouGpFf0VPQWrqjcEcrVehCr/CW9hfzE/103+dVu7TJGfPCL/ElfFOSRTpZTiTJrPuxaQd0vZSM+r8j7ZxvfeL4hIXEpWQvkHfdCVekb0lq3afdM+w7Ppad37tq9R89efV6evrpE3pqTDfEEiuQ/63n9WtcjUQ065K6R3/Yl3cuG/NK/cqn0/fTJbZeMvCaOkHXkCrikx1Hd3tL//prJlIDSZnSKVLrzcH6ktL3cfR394xumJl11wiXQd6OsD0J3GKbR327tIH3ejD5K9xySfCSdvhnvl90Bo0ZRjdvyZjzSyXMP5H9N+j/1UH6f/ZZq/OXJBwXSqSbg9Sa80kNk0T+nbOl3ze9T//Ie8p/MO/fUpwmS+KUvc6X04EnqSascZ2+yR3rAMi7pZDJ1pUcQUkB9MFkuVfoUvT9EZbhwsTT5OgPSSQuqN3E6qNqJDvFnsjJtO+pG1692BIpf+nJXSh8n/YuNUx2XXiU9pC2XdPIDNfPSYkCV5tSa9OjbGar1XCC9UTQ2IJ0EZ0sLl5xiC+n9aLfqdFxT6V9iq1+k1yvVGip/fJv7TnLMZj7pjS5LLe+lWkVH5VNrnaT37k66Y1uCMP3Jhxe4FlFIhyEuBlVz/J4xOJ8iGa57+OSxksgvfYUbpQ+UnPhK1kEJkgb0wwZc0kl/5syJcmpN+i/OYE6ESZ7rJ5XSl2nNoR1Ru0kHJRN+/0Qzx6erlb81r0uX9K7OsOed20o6zK/zSSfzWSsbFFNr5Jz47S/sqnaTVKKXQvpXWmf5rORGvqR2ak1QnpRm+1s48fij+uJH4z0oPVDKdeKSRqiwgVN69EF16QWKI9Ml3/bgGugQ1iikL9U8z+mS2fWA8pz+CrCTJlxV1K6+5iCf66V3lgw0apw4aS52XsqCfNLJ06rrEn5QFvOhZGZDq7IdJZ1mhfQlmucZdUhM21U5mpellfYz8bj8x78DfukrXSi9gN2NotmieOrqSlcd0j+rslhRMp3dWbMSkkdzglz6Yu0TnSQmzVN0tv/UTPq8oq8oka73ospVLpS+Qax+K945mVxe6dLcGVNr/3GC98LkiRk9nuct4ZXepFL+9O8tZvapdlqxs/6HQvoYD0rfLT7WtA9MFvu6c7mlJ56TSx+hclSM6KNYuxJ9FA2QEuYEDvsusaPmg4liZjnaSb8RH201H8SLSUfrFPu1C6WfUbTPWIgtvtXc0kl32TTZIrWD0tSnslRorGgOlvC13qlnyBlF76IL9w2miR+k362t0wKdIw/Ke1U80mWL3PeqLqZuLx4wTacS4jj6ern0Qp2k4gDNw5r1leKK9OoE7aSD5V3FOP4af+M+6Um6o3G1bKs98pQB6cnUlEaWXg/iZZ1KiE//7XLpO3WSvieWEiXrf1/QSdpNPk0skb5QJ+1q90lvJdZ+lM6hm+W3Ry7p2+jp7BZqx7wgHvCqTiWOyqWLg6SHdJKKPfUKeRPrmk7SLnLpsQL3U9GF0p/il14sTk3wS58qXz8fp/1Pz9epxCG5dDGO6hy39NuKkfdk7aSd5LeioNiq/Y37v+JF6SXyziqH9G6KNbYbtZtnev+bA3LpP8pVcow3X1U0z3prJ5WMGA6s+eSSchZAt9PgQenxor9PeKUnqSwoV1uRKo72HTEqXRzlFGJ471T/1HyQzT2ArpS+l/u3Vu5l6VnikZN4pW9Tm25RWSFxSlw/EWVQ+kdizn01Uybelbfze+j0JFWlD6r5ZJ28E8fRBvSg9FWKhY660qeqL1xvrzhQEuQw2KD0IWLSzzVTvi8eOPXxsJp47zofbVD6bPGTKZpJF3tZevx1cV1yHJ/0boygmbOKZtMY8cvDvNK/r/mgvjj6c1HLXKxyqoxIloG9zSt9sKLDoTlun3Ddy9IlE2GPL7ee9CRmhNgu+RBNquTLV4xJly7l1TInWXNf8WTVpST+qjSWU/rjh1PUNZVFGSosETwsPfmWcpGZjvRt7JgDxSNUshDtaMCYdMlDvZQ9sBaUTAL8XDtGLChu+bzSJaOrwgn2HebFai9Ll6xQrm7GJZ1+oK+hp9bHsge3tSeoRek/PP6ktWTR4w7m5Z+mOiwoWZ1/LZVPepZyZFb4mJWuPnWz85p0aSBq7WiEpnT6gX4gSMcoV7xAH91AEs1aNdqQdCINe9zIuE2Ml/zjSsWHS64k6bmnDEmPkoZzzGOkWyF4WHpOtdp6Ji3pDanfePnT8hVz8j/WF9JQsvGGpGdI81WfVM+V1n+u+HmcdI3uxdZGpJM3pMUuUfuxRRUI3pUeoOKYtxEe6XTU8aOFBsFddBBoPHV8S+r2P8WIdEItxZurMo83Vur8Xqp68zR0C3jGiPSoU9TjS1lsym7Bu9JbUQIr2/NIf5c62y3/fdboAjMK8ZEY6svdfXWli4vpOlFz9icGyjubc6i12NRUaLCYCoL+srmudLFzMZyq8W/yGg9WhL17R3qTL6hYU+nSeLZ0+oFe+rhf3oUOiM5nTUzUBLX245ZOPqWT/ip9Y0b8aPo9E8X0kF/aHYFDe7rqNKDsvRlHpDGXHVcq+yyekB5M6TFjr2zly/H6HNIbUvGp1f1UxmAefU5PrjeUv17g5LdzR3Zt3ozmsJr02NOy+PKiT0d1b0ACKT1HbpQtyH0gv4XL127e37Myb0hbWan9VKUnXZClLS0YmBaMS273WoHq4m83Sr9ZQnNZ5YUAN6SxKUzp9AN9odpE13/Nuw5UqowqQ+8X+En6T1Rba31d7U0LytbCBkOlCq9JkvY2VmM3Sud5kQM1BcmSTj/Qj0omv2IOUF+do8djPzYtnWRW8iVSadw3OGdaOhlXHQHS6R40Q3p36oF+j5peoV8XKfxGtXkDs01Ll7UDWWxTm8NLOWSk2KFU2gm+l34vm3BIpx/oT6Zha+/h9F9SFoo04gF/bX6mk07i+K/viFOfS9pi4CIMo9NO9rn0y7I3uDGkb9f4Pyru/fIx1x7XzEonmbpviZrPepN04GPT0kn2be6kZd6TfljxFmZV6bTUa00VJdIdnYd9ZPU5ZlY6aX9G8/jybI3LMJL7FqN4AWFr7afDtzsV4XeekX6nQHlrVJNOP9DVlkTE/023sWXBVAl510xKJ7Gz7rEPL2ypeR2eWV9pUjqJWcD+xZwZIBlZOOUt6RWLGqukVZEue6CrBp08XUa37uXzoXFTuV7nXaR2NltZt6leuleizWou7Wr3i9Tl6stF7heEZu5vcUZJukz61eVpqmlVpNMP9BPqDadBdEdni2Kyot6ki+akE9J2vvJlgPfX9+G6FmkrKsxJD13GRco3Vx6Y/uiB2Fyvxm6Ufuzj7qxVDUrp9AO9Ip2RUNY1m6UyQdU+Z9H+uyakh8YRs746JvlVXdw0viH31Ujo/e6G09UmpIcag13mHhbbdNUH8x4/tiRvu1jgQul/FNKsnTcxq1MjjbTtJtRS0y6OnfOplOHMabsPqOPmMUINgh2yXh06LDv7jRFv5uSMGj12XO54scQJAzVqljxo/IwFK77IH/9KqvFLkpjx6mtDh2e//sabI3PeGjVmbC5VbGutpMmdXps2a3xW1xbRavN4I7w1nw7M0kDy5sL2kB4ZzJNMxwQgPSJIkXQiPyOQHhFIX7XZGdIjghGSrv8JAumRwNvS+faRkB4JUG9eORWEdP8TXEAN6rxJIN3vBLLpdXu/BCDd10Q1e2mxLHjzViqBdH+ysqioaMdhtQWlOQTSfcop1izNZwTSI036ugCkR5r076MJpEeY9IVBAumRJf1+jr1lQLr7pe9sRyA9sqRfGGp7GZDuaunVu4YGCaRHkPR7xfPbhqUMO6SnXq0lG9YssnlP0dYNKxd9MnN0x2C4yvgfLnPkAemQDiAdQDqAdADpANIBpANIB5AOIB1AOoB0AOkA0gGkA0gHkA7pANIBpANIB5AOIB1AOoB0AOkA0gGkA0gHkA4gHUA6gHQA6ZAOIB1AOoB0AOkA0gGkA0gHkA4gHUA6gHQA6QDSAaQDSAeQDukA0gGkA0gHkA4gHUA6gHQA6QDSAaQDSAeQDiAd8PN/61o505uOgdwAAAAASUVORK5CYII="],[1,"col-xs-11"],["valueChangeEvent","keyup",3,"placeholder","onValueChanged"],[1,"col-sm-5"],["stylingMode","contained","text","Prev","icon","chevronprev","type","normal","width","120",3,"onClick"],["stylingMode","contained","text","Next","icon","chevronnext","type","normal","width","120",3,"onClick"],["id","pixabayPopup","width","100%","height","95vh","contentTemplate","info",3,"showTitle","dragEnabled","closeOnOutsideClick","showCloseButton","visible"],[4,"dxTemplate","dxTemplateOf"],["widget","dxButton","toolbar","bottom","location","before",3,"options"],["widget","dxButton","toolbar","bottom","location","after",3,"options"],[1,"pixrow"],[1,"pixcolumn"],[4,"ngFor","ngForOf"],[1,"pixa-view"],[3,"src"],[3,"value","valueChange"],["type","checkbox","id","web_assetDialog_createImage_show_description_checkbox","name","web_assetDialog_createImage_show_description_checkbox",1,"btn","checkbox",3,"checked","ngModel","ngModelChange"],["for","web_assetDialog_createImage_show_description_checkbox"],[3,"src","click"]],template:function(Ut,Zt){1&Ut&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",1)(4,"div",3),c._UZ(5,"img",4),c.qZA(),c.TgZ(6,"div",5)(7,"dx-text-box",6),c.NdJ("onValueChanged",function(Xe){return Zt.searchBox.onValueChanged(Xe)}),c.qZA()()()(),c.TgZ(8,"div",7)(9,"dx-button",8),c.NdJ("onClick",function(){return Zt.goPrev()}),c.qZA(),c._uU(10),c.TgZ(11,"dx-button",9),c.NdJ("onClick",function(){return Zt.goNext()}),c.qZA()()(),c.TgZ(12,"dx-popup",10),c.YNc(13,Kt,20,10,"div",11),c._UZ(14,"dxi-toolbar-item",12)(15,"dxi-toolbar-item",12)(16,"dxi-toolbar-item",13),c.qZA(),c.TgZ(17,"div",14)(18,"div",15),c.YNc(19,Pt,2,1,"div",16),c.qZA(),c.TgZ(20,"div",15),c.YNc(21,Pn,2,1,"div",16),c.qZA(),c.TgZ(22,"div",15),c.YNc(23,Vi,2,1,"div",16),c.qZA(),c.TgZ(24,"div",15),c.YNc(25,Wr,2,1,"div",16),c.qZA()()()),2&Ut&&(c.xp6(7),c.Q6J("placeholder",Zt.searchBox.placeholder),c.xp6(3),c.AsE(" ",Zt.currentPage,"/",Zt.totalPages," "),c.xp6(2),c.Q6J("showTitle",!1)("dragEnabled",!1)("closeOnOutsideClick",!0)("showCloseButton",!1)("visible",Zt.visiblePopup),c.xp6(1),c.Q6J("dxTemplateOf","info"),c.xp6(1),c.Q6J("options",Zt.submitBtnOptions),c.xp6(1),c.Q6J("options",Zt.submitAndCloseBtnOptions),c.xp6(1),c.Q6J("options",Zt.cancelBtnOptions),c.xp6(3),c.Q6J("ngForOf",Zt.chunks[0]),c.xp6(2),c.Q6J("ngForOf",Zt.chunks[1]),c.xp6(2),c.Q6J("ngForOf",Zt.chunks[2]),c.xp6(2),c.Q6J("ngForOf",Zt.chunks[3]))},dependencies:[$i.sg,_a.p6,va.QjJ,Ze.K,pa.x,Qt.I,sn.Wl,sn.JJ,sn.On],styles:[".pixrow[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:0 4px}.pixcolumn[_ngcontent-%COMP%]{flex:25%;max-width:25%;padding:0 4px}.pixcolumn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-top:8px;vertical-align:middle;width:100%}.pixa-view[_ngcontent-%COMP%]{width:100%;max-height:67vh;text-align:center}.pixa-view[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:80%;max-height:67vh}@media screen and (max-width: 800px){.pixcolumn[_ngcontent-%COMP%]{flex:50%;max-width:50%}}@media screen and (max-width: 600px){.pixcolumn[_ngcontent-%COMP%]{flex:100%;max-width:100%}}"]});var vt=l(6666),ot=l(5257);class We{constructor(Ut,Zt){this.http=Ut,this.scopeService=Zt,this.apiEndpoint="",this.connectionDataSubject=new $n.xQ,this.connectionData$=this.connectionDataSubject.asObservable(),this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint,this.mediaApiBaseUrl=this.scope.globalSettings.configurations.apicodoMediaBaseUrl,this.getConnectionDataObservable().subscribe()}getVideoData(Ut){var Zt=this;return(0,Ke.Z)(function*(){var Xe={headers:{Authorization:"Bearer "+(yield Zt.getConnectionData()).token}};return Zt.http.get(Zt.mediaApiBaseUrl+"/api/Thumbnail/GetWebFrontendData?fileId="+Ut,Xe).toPromise().then(Lt=>Lt.data).catch(Lt=>{console.error("getVideoData() FAIL",Lt)})})()}getConnectionDataInternal(){var Ut=this;return(0,Ke.Z)(function*(){return Ut.http.get(Ut.apiEndpoint+"media/token").toPromise().then(Zt=>(Ut.apicodoMediaConnectionData=Zt,Ut.apicodoMediaConnectionData.isInitialized=!0,Ut.apicodoMediaConnectionData.expiresOn=new Date(Date.now()+36e5),Ut.connectionDataSubject.next(Ut.apicodoMediaConnectionData),Ut.apicodoMediaConnectionData))})()}getConnectionDataObservable(){return(0,vt.D)(this.getConnectionDataInternal())}getConnectionData(){var Ut=this;return(0,Ke.Z)(function*(){return Ut.apicodoMediaConnectionData&&Ut.apicodoMediaConnectionData.expiresOn>Date.now()?Ut.apicodoMediaConnectionData:Ut.connectionData$.pipe((0,ot.q)(1)).toPromise()})()}}We.\u0275fac=function(Ut){return new(Ut||We)(c.LFG(Rn.eN),c.LFG(Sn.Z))},We.\u0275prov=c.Yz7({token:We,factory:We.\u0275fac});var nt=l(2625);const at=["mediaGrid"];function Yt(Ln,Ut){1&Ln&&c._UZ(0,"i",18)}function gn(Ln,Ut){if(1&Ln){const Zt=c.EpF();c.TgZ(0,"div")(1,"div")(2,"button",19),c.NdJ("click",function(){const Lt=c.CHM(Zt).$implicit,wt=c.oxw();return c.KtG(wt.executeClickCallback(Lt))}),c._UZ(3,"img",20),c.qZA()()()}if(2&Ln){const Zt=Ut.$implicit,jn=c.oxw();c.xp6(3),c.Q6J("src",jn.apicodoBaseUrl+"/api/Asset/"+Zt.data.id+"/Thumbnail000001.jpg",c.LSH)}}const Gn=function(){return[5,10,25,50,100]};class Qn{constructor(Ut,Zt){this.mediaService=Ut,this.scopeService=Zt,this.uploading=!1,this.isInitialized=!1,this.scope=this.scopeService.getScope(),this.apicodoBaseUrl=this.mediaService.mediaApiBaseUrl,this.odataBaseUrl=this.apicodoBaseUrl+"/api/odata/",this.apiBaseUrl=this.apicodoBaseUrl+"/api/"}ngAfterViewInit(){this.gridInstance=this.dataGrid.instance,this.isInitialized=!0}ngOnInit(){this.mediaService.getConnectionData().then(Ut=>{this.uploadHeaders={Authorization:"Bearer "+Ut.token,withCredentials:!1},this.dataSource={store:{type:"odata",url:this.getGridUrl(),key:"id",keyType:"Guid",version:4,withCredetntials:!0,beforeSend:Zt=>{Zt.headers={Authorization:"Bearer "+Ut.token,withCredentials:!1}}}}})}getFileUploaderUrl(){return this.apiBaseUrl+"Upload"}getGridUrl(){return this.odataBaseUrl+"MediaFiles"}refreshGrid(){this.gridInstance.refresh()}uploaderValueChanged(Ut){var Zt=Ut.value;Zt.length>0&&Zt.each(Zt,(jn,Xe)=>{var Lt=new en.Z;Xe.guid=Lt.valueOf()})}uploadStarted(Ut){this.uploading=!0}uploadAborted(Ut){this.uploading=!1}uploadError(Ut){this.uploading=!1}uploaded(Ut){this.refreshGrid(),this.uploading=!1}executeClickCallback(Ut){this.callback&&this.callback({text:this.apicodoBaseUrl+"/play/"+Ut.data.id+"?guiMode=iframe",title:Ut.data.title,attachment:Ut.data.id,thumbnailUrl:this.apicodoBaseUrl+"/api/Asset/"+Ut.data.id+"/Thumbnail000001.jpg"})}}Qn.\u0275fac=function(Ut){return new(Ut||Qn)(c.Y36(We),c.Y36(Sn.Z))},Qn.\u0275cmp=c.Xpm({type:Qn,selectors:[["app-apicodo-media-management"]],viewQuery:function(Ut,Zt){if(1&Ut&&c.Gf(at,5),2&Ut){let jn;c.iGM(jn=c.CRH())&&(Zt.dataGrid=jn.first)}},inputs:{callback:"callback"},decls:20,vars:28,consts:[[1,"modal-title"],[1,"dx-viewport"],["accept","video/*","uploadMode","instantly","name","file",3,"labelText","readyToUploadMessage","selectButtonText","uploadedMessage","uploadFailedMessage","multiple","chunkSize","uploadUrl","uploadHeaders","onValueChanged","onUploadStarted","onUploadAborted","onUploadError","onUploaded"],["mediaFileUploader",""],["id","mediaFileUploader"],["class","fa fa-spinner fa-pulse",4,"ngIf"],[1,"clearfix"],["id","mediaGridContainer"],["height","100%","width","100%","noDataText","",3,"dataSource","remoteOperations","showRowLines","showColumnHeaders","wordWrapEnabled"],["mediaGrid",""],[3,"pageSize"],[3,"showPageSizeSelector","allowedPageSizes"],[3,"visible","highlightCaseSensitive"],["dataField","id","cellTemplate","idTemplate",3,"width","allowFiltering"],["dataField","title","caption","Name",3,"visible"],["dataField","description","caption","Description",3,"visible"],["dataField","createdOn","sortIndex","0","sortOrder","desc","caption","Created",3,"visible"],[4,"dxTemplate","dxTemplateOf"],[1,"fa","fa-spinner","fa-pulse"],[1,"btn","btn-green","action-button",3,"click"],["height","20",3,"src"]],template:function(Ut,Zt){1&Ut&&(c.TgZ(0,"p",0),c._uU(1),c.qZA(),c.TgZ(2,"div",1)(3,"dx-file-uploader",2,3),c.NdJ("onValueChanged",function(Xe){return Zt.uploaderValueChanged(Xe)})("onUploadStarted",function(Xe){return Zt.uploadStarted(Xe)})("onUploadAborted",function(Xe){return Zt.uploadAborted(Xe)})("onUploadError",function(Xe){return Zt.uploadError(Xe)})("onUploaded",function(Xe){return Zt.uploaded(Xe)}),c.qZA(),c.TgZ(5,"div",4),c.YNc(6,Yt,1,0,"i",5),c.qZA(),c._UZ(7,"div",6),c.TgZ(8,"div",7)(9,"dx-data-grid",8,9),c._UZ(11,"dxo-paging",10)(12,"dxo-pager",11)(13,"dxo-search-panel",12)(14,"dxi-column",13)(15,"dxi-column",14)(16,"dxi-column",15)(17,"dxi-column",16),c.YNc(18,gn,4,1,"div",17),c.qZA()(),c._UZ(19,"div",6),c.qZA()),2&Ut&&(c.xp6(1),c.Oqu(Zt.scope.network.getResourceOrKeyName("web_asset_media_upload_instructions")),c.xp6(2),c.Q6J("labelText",Zt.scope.network.getResourceOrKeyName("web_upload_drag_drop_here"))("readyToUploadMessage",Zt.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"))("selectButtonText",Zt.scope.network.getResourceOrKeyName("web_upload_video_button"))("uploadedMessage",Zt.scope.network.getResourceOrKeyName("web_upload_uploaded_message"))("uploadFailedMessage",Zt.scope.network.getResourceOrKeyName("web_upload_upload_failed_message"))("multiple",!1)("chunkSize",5e5)("uploadUrl",Zt.getFileUploaderUrl())("uploadHeaders",Zt.uploadHeaders),c.xp6(3),c.Q6J("ngIf",Zt.uploading),c.xp6(3),c.Q6J("dataSource",Zt.dataSource)("remoteOperations",!0)("showRowLines",!1)("showColumnHeaders",!1)("wordWrapEnabled",!0),c.xp6(2),c.Q6J("pageSize",5),c.xp6(1),c.Q6J("showPageSizeSelector",!0)("allowedPageSizes",c.DdM(27,Gn)),c.xp6(1),c.Q6J("visible",!0)("highlightCaseSensitive",!0),c.xp6(1),c.Q6J("width",75)("allowFiltering",!1),c.xp6(1),c.Q6J("visible",!0),c.xp6(1),c.Q6J("visible",!1),c.xp6(1),c.Q6J("visible",!1),c.xp6(1),c.Q6J("dxTemplateOf","idTemplate"))},dependencies:[$i.O5,_a.p6,nt.e,va.qvW,va.ilc,va.sXh,va.XXE,Yr.z]});var Mi=l(4162);const vi=["tagBoxHandle"];class Ei{ngAfterViewInit(){this.instance=this.tagBox.instance,this.instance.option(this.options)}}Ei.\u0275fac=function(Ut){return new(Ut||Ei)},Ei.\u0275cmp=c.Xpm({type:Ei,selectors:[["app-dx-tag-box-wrapper"]],viewQuery:function(Ut,Zt){if(1&Ut&&c.Gf(vi,5),2&Ut){let jn;c.iGM(jn=c.CRH())&&(Zt.tagBox=jn.first)}},inputs:{options:"options"},decls:2,vars:0,consts:[["tagBoxHandle",""]],template:function(Ut,Zt){1&Ut&&c._UZ(0,"dx-tag-box",null,0)},dependencies:[Mi.U]});var bi=l(6023);const tr=["wrappedHandle"];class pr{ngAfterViewInit(){this.instance=this.wrapped.instance,this.instance.option(this.options)}}pr.\u0275fac=function(Ut){return new(Ut||pr)},pr.\u0275cmp=c.Xpm({type:pr,selectors:[["app-dx-lookup-wrapper"]],viewQuery:function(Ut,Zt){if(1&Ut&&c.Gf(tr,5),2&Ut){let jn;c.iGM(jn=c.CRH())&&(Zt.wrapped=jn.first)}},inputs:{options:"options"},decls:2,vars:0,consts:[["wrappedHandle",""]],template:function(Ut,Zt){1&Ut&&c._UZ(0,"dx-lookup",null,0)},dependencies:[bi.N]});var sr=l(6229);const fr=["wrappedHandle"];class Gi{ngAfterViewInit(){this.instance=this.wrapped.instance,this.instance.option(this.options)}}Gi.\u0275fac=function(Ut){return new(Ut||Gi)},Gi.\u0275cmp=c.Xpm({type:Gi,selectors:[["app-dx-select-box-wrapper"]],viewQuery:function(Ut,Zt){if(1&Ut&&c.Gf(fr,5),2&Ut){let jn;c.iGM(jn=c.CRH())&&(Zt.wrapped=jn.first)}},inputs:{options:"options"},decls:2,vars:0,consts:[["wrappedHandle",""]],template:function(Ut,Zt){1&Ut&&c._UZ(0,"dx-select-box",null,0)},dependencies:[sr._]});var er=l(132);const Ir=["wrappedHandle"];class Lr{ngAfterViewInit(){this.instance=this.wrapped.instance,this.instance.option(this.options)}}Lr.\u0275fac=function(Ut){return new(Ut||Lr)},Lr.\u0275cmp=c.Xpm({type:Lr,selectors:[["app-dx-date-box-wrapper"]],viewQuery:function(Ut,Zt){if(1&Ut&&c.Gf(Ir,5),2&Ut){let jn;c.iGM(jn=c.CRH())&&(Zt.wrapped=jn.first)}},inputs:{options:"options"},decls:2,vars:0,consts:[["wrappedHandle",""]],template:function(Ut,Zt){1&Ut&&c._UZ(0,"dx-date-box",null,0)},dependencies:[er.M]});const Or=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}"}}'),Rr=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 Qr{}Qr.\u0275fac=function(Ut){return new(Ut||Qr)},Qr.\u0275mod=c.oAB({type:Qr}),Qr.\u0275inj=c.cJS({imports:[$i.ez]});class Br{constructor(Ut){this.injector=Ut,this.injector.get(hn),this.injector.get(mn)}static forRoot(){return{ngModule:Br,providers:[hn,mn]}}}Br.\u0275fac=function(Ut){return new(Ut||Br)(c.LFG(c.zs3))},Br.\u0275mod=c.oAB({type:Br}),Br.\u0275inj=c.cJS({providers:[hn,mn],imports:[$i.ez,sn.u5]});class To{}To.\u0275fac=function(Ut){return new(Ut||To)},To.\u0275mod=c.oAB({type:To}),To.\u0275inj=c.cJS({imports:[$i.ez,Br]});var Ro=l(1515),na=l(1524),zo=l(4167);class oa{}oa.\u0275fac=function(Ut){return new(Ut||oa)},oa.\u0275mod=c.oAB({type:oa}),oa.\u0275inj=c.cJS({providers:[So],imports:[$i.ez,Ro.Z,zo.NDt]});class Ta{}Ta.\u0275fac=function(Ut){return new(Ut||Ta)},Ta.\u0275mod=c.oAB({type:Ta}),Ta.\u0275inj=c.cJS({providers:[Da],imports:[$i.ez,Ro.Z,zo.NDt,sn.u5]});class Qo{}Qo.\u0275fac=function(Ut){return new(Ut||Qo)},Qo.\u0275mod=c.oAB({type:Qo}),Qo.\u0275inj=c.cJS({providers:[We],imports:[$i.ez,Ro.Z,zo.NDt]});class Ia{}Ia.\u0275fac=function(Ut){return new(Ut||Ia)},Ia.\u0275mod=c.oAB({type:Ia}),Ia.\u0275inj=c.cJS({imports:[$i.ez,zo.NDt]});const Ma=[{path:"chat",loadChildren:()=>l.e("src_app_chat-module_chat_module_ts").then(l.bind(l,2021)).then(Ln=>Ln.default),data:{reuseComponent:!0}}];class wa extends o.hm{constructor(){super(...arguments),this.overrides={swipe:{direction:na.DIRECTION_ALL},pinch:{enable:!0},pan:{enable:!0}}}}wa.\u0275fac=function(){let Ln;return function(Zt){return(Ln||(Ln=c.n5z(wa)))(Zt||wa)}}(),wa.\u0275prov=c.Yz7({token:wa,factory:wa.\u0275fac});class Aa{constructor(Ut){this.upgrade=Ut}ngDoBootstrap(Ut){if(Aa.isBootstrapped)return;const Zt=this.upgrade;document.onreadystatechange=function(){"interactive"===document.readyState&&(Zt.bootstrap(document.getElementsByTagName("html")[0],["app"],{strictDi:!0}),o.q6().bootstrapModule(Aa))},Aa.isBootstrapped=!0,(0,tn.EV)(Or),(0,tn.EV)(Rr)}}Aa.isBootstrapped=!1,Aa.\u0275fac=function(Ut){return new(Ut||Aa)(c.LFG(Hn))},Aa.\u0275mod=c.oAB({type:Aa}),Aa.\u0275inj=c.cJS({providers:[{provide:o.ok,useClass:wa},{provide:ir.wN,useClass:class ga extends ir.wN{constructor(){super(...arguments),this.storedRoutes=new Map}shouldDetach(Ut){return!1}store(Ut,Zt){this.storedRoutes.set(Ut.routeConfig?.path??"/",Zt)}shouldAttach(Ut){return!!Ut.routeConfig&&!!this.storedRoutes.get(Ut.routeConfig.path)}retrieve(Ut){return this.storedRoutes.get(Ut.routeConfig?.path??"/")??null}shouldReuseRoute(Ut,Zt){return Ut.routeConfig===Zt.routeConfig}}}],imports:[o.b2,Hn,Ro.Z,$i.ez,o.t6,Qr,oa,Ta,Qo,To,ir.Bz.forRoot(Ma,{initialNavigation:"enabledNonBlocking",onSameUrlNavigation:"reload",enableTracing:!1}),Br.forRoot(),Ia]}),function Sr(){app.directive("appChatHome",xe({component:Ri})),app.directive("chatBubble",xe({component:At})),app.directive("userVitals",xe({component:cr})),app.directive("chatOneToOneActionButtonComponent",xe({component:bt})),app.directive("appSmartBanner",xe({component:yn})),app.directive("cookieExternalMediaInfo",xe({component:Er,inputs:["type","isAssetListItem"]})),app.directive("cookieConsentComponentManager",xe({component:go})),app.directive("workflowRenderer",xe({component:$o,inputs:["workflowid","ispreview","articleid","revisionid"]})),app.directive("pixabaySearcher",xe({component:fo,inputs:["callback","callerdata","dismiss"]})),app.directive("apicodoMediaManagement",xe({component:Qn,inputs:["callback"]})),app.directive("dxTagBoxWrapper",xe({component:Ei,inputs:["options"]})),app.directive("dxLookupWrapper",xe({component:pr,inputs:["options"]})),app.directive("dxSelectBoxWrapper",xe({component:Gi,inputs:["options"]})),app.directive("dxDateBoxWrapper",xe({component:Lr,inputs:["options"]})),app.config(["$stateProvider",function(Ln){Ln.state("app.chat",{url:"chat*path",template:"<app-chat-home></app-chat-home>",controller:function(){}})}])}(),(0,c.G48)(),o.q6().bootstrapModule(Aa).catch(Ln=>console.error(Ln))},6872:(kn,he,l)=>{"use strict";l.d(he,{_:()=>c,h:()=>o});const o={light:"LIGHT",dark:"DARK"},c=992},712:(kn,he,l)=>{"use strict";l.d(he,{DA:()=>y,VV:()=>b,vw:()=>g});var o=l(6872);function g(S){const O=document.getElementById(S);return O?function x(S){let w,T,k,O=S;if(S.match(/^rgb/)){const P=O.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(!P)return o.h.light;w=+P[1],T=+P[2],k=+P[3]}else{const P=+("0x"+O.slice(1).replace(O.length<5?/./g:"","$&$&"));w=P>>16,T=P>>8&255,k=255&P}return Math.sqrt(w*w*.299+T*T*.587+k*k*.114)>127.5?o.h.light:o.h.dark}(window.getComputedStyle(O).backgroundColor):o.h.light}function b(S){return S?.mimeType?.includes("image")??!1}function y(S){if(void 0===S)return!1;try{return S?.name?.endsWith("pdf")??!1}catch{return!1}}},4762:(kn,he,l)=>{"use strict";l.d(he,{ZT:()=>c,ev:()=>T,pi:()=>I});var o=function(j,ee){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,q){G.__proto__=q}||function(G,q){for(var Z in q)Object.prototype.hasOwnProperty.call(q,Z)&&(G[Z]=q[Z])})(j,ee)};function c(j,ee){if("function"!=typeof ee&&null!==ee)throw new TypeError("Class extends value "+String(ee)+" is not a constructor or null");function G(){this.constructor=j}o(j,ee),j.prototype=null===ee?Object.create(ee):(G.prototype=ee.prototype,new G)}var I=function(){return I=Object.assign||function(ee){for(var G,q=1,Z=arguments.length;q<Z;q++)for(var X in G=arguments[q])Object.prototype.hasOwnProperty.call(G,X)&&(ee[X]=G[X]);return ee},I.apply(this,arguments)};function T(j,ee,G){if(G||2===arguments.length)for(var X,q=0,Z=ee.length;q<Z;q++)(X||!(q in ee))&&(X||(X=Array.prototype.slice.call(ee,0,q)),X[q]=ee[q]);return j.concat(X||Array.prototype.slice.call(ee))}},8692:(kn,he,l)=>{"use strict";l.d(he,{Do:()=>w,EM:()=>Xr,HT:()=>C,JF:()=>qo,K0:()=>a,Mx:()=>kr,NF:()=>Ki,O5:()=>ir,Ov:()=>vn,PC:()=>dn,PM:()=>Xi,S$:()=>E,V_:()=>u,Ye:()=>T,b0:()=>O,bD:()=>ai,ez:()=>Un,mk:()=>xr,q:()=>I,sg:()=>Er,tP:()=>In,w_:()=>f});var o=l(4370);let c=null;function I(){return c}function C(Xe){c||(c=Xe)}class f{}const a=new o.OlP("DocumentToken");let p=(()=>{class Xe{historyGo(wt){throw new Error("Not implemented")}}return Xe.\u0275fac=function(wt){return new(wt||Xe)},Xe.\u0275prov=o.Yz7({token:Xe,factory:function(){return function s(){return(0,o.LFG)(d)}()},providedIn:"platform"}),Xe})();const u=new o.OlP("Location Initialized");let d=(()=>{class Xe extends p{constructor(wt){super(),this._doc=wt,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return I().getBaseHref(this._doc)}onPopState(wt){const pn=I().getGlobalEventTarget(this._doc,"window");return pn.addEventListener("popstate",wt,!1),()=>pn.removeEventListener("popstate",wt)}onHashChange(wt){const pn=I().getGlobalEventTarget(this._doc,"window");return pn.addEventListener("hashchange",wt,!1),()=>pn.removeEventListener("hashchange",wt)}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(wt){this._location.pathname=wt}pushState(wt,pn,qn){h()?this._history.pushState(wt,pn,qn):this._location.hash=qn}replaceState(wt,pn,qn){h()?this._history.replaceState(wt,pn,qn):this._location.hash=qn}forward(){this._history.forward()}back(){this._history.back()}historyGo(wt=0){this._history.go(wt)}getState(){return this._history.state}}return Xe.\u0275fac=function(wt){return new(wt||Xe)(o.LFG(a))},Xe.\u0275prov=o.Yz7({token:Xe,factory:function(){return function g(){return new d((0,o.LFG)(a))}()},providedIn:"platform"}),Xe})();function h(){return!!window.history.pushState}function x(Xe,Lt){if(0==Xe.length)return Lt;if(0==Lt.length)return Xe;let wt=0;return Xe.endsWith("/")&&wt++,Lt.startsWith("/")&&wt++,2==wt?Xe+Lt.substring(1):1==wt?Xe+Lt:Xe+"/"+Lt}function b(Xe){const Lt=Xe.match(/#|\?|$/),wt=Lt&&Lt.index||Xe.length;return Xe.slice(0,wt-("/"===Xe[wt-1]?1:0))+Xe.slice(wt)}function y(Xe){return Xe&&"?"!==Xe[0]?"?"+Xe:Xe}let E=(()=>{class Xe{historyGo(wt){throw new Error("Not implemented")}}return Xe.\u0275fac=function(wt){return new(wt||Xe)},Xe.\u0275prov=o.Yz7({token:Xe,factory:function(){return(0,o.f3M)(O)},providedIn:"root"}),Xe})();const S=new o.OlP("appBaseHref");let O=(()=>{class Xe extends E{constructor(wt,pn){super(),this._platformLocation=wt,this._removeListenerFns=[],this._baseHref=pn??this._platformLocation.getBaseHrefFromDOM()??(0,o.f3M)(a).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(wt){this._removeListenerFns.push(this._platformLocation.onPopState(wt),this._platformLocation.onHashChange(wt))}getBaseHref(){return this._baseHref}prepareExternalUrl(wt){return x(this._baseHref,wt)}path(wt=!1){const pn=this._platformLocation.pathname+y(this._platformLocation.search),qn=this._platformLocation.hash;return qn&&wt?`${pn}${qn}`:pn}pushState(wt,pn,qn,Qe){const lt=this.prepareExternalUrl(qn+y(Qe));this._platformLocation.pushState(wt,pn,lt)}replaceState(wt,pn,qn,Qe){const lt=this.prepareExternalUrl(qn+y(Qe));this._platformLocation.replaceState(wt,pn,lt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(wt=0){this._platformLocation.historyGo?.(wt)}}return Xe.\u0275fac=function(wt){return new(wt||Xe)(o.LFG(p),o.LFG(S,8))},Xe.\u0275prov=o.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),w=(()=>{class Xe extends E{constructor(wt,pn){super(),this._platformLocation=wt,this._baseHref="",this._removeListenerFns=[],null!=pn&&(this._baseHref=pn)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(wt){this._removeListenerFns.push(this._platformLocation.onPopState(wt),this._platformLocation.onHashChange(wt))}getBaseHref(){return this._baseHref}path(wt=!1){let pn=this._platformLocation.hash;return null==pn&&(pn="#"),pn.length>0?pn.substring(1):pn}prepareExternalUrl(wt){const pn=x(this._baseHref,wt);return pn.length>0?"#"+pn:pn}pushState(wt,pn,qn,Qe){let lt=this.prepareExternalUrl(qn+y(Qe));0==lt.length&&(lt=this._platformLocation.pathname),this._platformLocation.pushState(wt,pn,lt)}replaceState(wt,pn,qn,Qe){let lt=this.prepareExternalUrl(qn+y(Qe));0==lt.length&&(lt=this._platformLocation.pathname),this._platformLocation.replaceState(wt,pn,lt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(wt=0){this._platformLocation.historyGo?.(wt)}}return Xe.\u0275fac=function(wt){return new(wt||Xe)(o.LFG(p),o.LFG(S,8))},Xe.\u0275prov=o.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),T=(()=>{class Xe{constructor(wt){this._subject=new o.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=wt;const pn=this._locationStrategy.getBaseHref();this._basePath=function B(Xe){if(new RegExp("^(https?:)?//").test(Xe)){const[,wt]=Xe.split(/\/\/[^\/]+/);return wt}return Xe}(b(P(pn))),this._locationStrategy.onPopState(qn=>{this._subject.emit({url:this.path(!0),pop:!0,state:qn.state,type:qn.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(wt=!1){return this.normalize(this._locationStrategy.path(wt))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(wt,pn=""){return this.path()==this.normalize(wt+y(pn))}normalize(wt){return Xe.stripTrailingSlash(function R(Xe,Lt){return Xe&&new RegExp(`^${Xe}([/;?#]|$)`).test(Lt)?Lt.substring(Xe.length):Lt}(this._basePath,P(wt)))}prepareExternalUrl(wt){return wt&&"/"!==wt[0]&&(wt="/"+wt),this._locationStrategy.prepareExternalUrl(wt)}go(wt,pn="",qn=null){this._locationStrategy.pushState(qn,"",wt,pn),this._notifyUrlChangeListeners(this.prepareExternalUrl(wt+y(pn)),qn)}replaceState(wt,pn="",qn=null){this._locationStrategy.replaceState(qn,"",wt,pn),this._notifyUrlChangeListeners(this.prepareExternalUrl(wt+y(pn)),qn)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(wt=0){this._locationStrategy.historyGo?.(wt)}onUrlChange(wt){return this._urlChangeListeners.push(wt),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(pn=>{this._notifyUrlChangeListeners(pn.url,pn.state)})),()=>{const pn=this._urlChangeListeners.indexOf(wt);this._urlChangeListeners.splice(pn,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(wt="",pn){this._urlChangeListeners.forEach(qn=>qn(wt,pn))}subscribe(wt,pn,qn){return this._subject.subscribe({next:wt,error:pn,complete:qn})}}return Xe.normalizeQueryParams=y,Xe.joinWithSlash=x,Xe.stripTrailingSlash=b,Xe.\u0275fac=function(wt){return new(wt||Xe)(o.LFG(E))},Xe.\u0275prov=o.Yz7({token:Xe,factory:function(){return function k(){return new T((0,o.LFG)(E))}()},providedIn:"root"}),Xe})();function P(Xe){return Xe.replace(/\/index.html$/,"")}function kr(Xe,Lt){Lt=encodeURIComponent(Lt);for(const wt of Xe.split(";")){const pn=wt.indexOf("="),[qn,Qe]=-1==pn?[wt,""]:[wt.slice(0,pn),wt.slice(pn+1)];if(qn.trim()===Lt)return decodeURIComponent(Qe)}return null}const zr=/\s+/,Gr=[];let xr=(()=>{class Xe{constructor(wt,pn,qn,Qe){this._iterableDiffers=wt,this._keyValueDiffers=pn,this._ngEl=qn,this._renderer=Qe,this.initialClasses=Gr,this.stateMap=new Map}set klass(wt){this.initialClasses=null!=wt?wt.trim().split(zr):Gr}set ngClass(wt){this.rawClass="string"==typeof wt?wt.trim().split(zr):wt}ngDoCheck(){for(const pn of this.initialClasses)this._updateState(pn,!0);const wt=this.rawClass;if(Array.isArray(wt)||wt instanceof Set)for(const pn of wt)this._updateState(pn,!0);else if(null!=wt)for(const pn of Object.keys(wt))this._updateState(pn,Boolean(wt[pn]));this._applyStateDiff()}_updateState(wt,pn){const qn=this.stateMap.get(wt);void 0!==qn?(qn.enabled!==pn&&(qn.changed=!0,qn.enabled=pn),qn.touched=!0):this.stateMap.set(wt,{enabled:pn,changed:!0,touched:!0})}_applyStateDiff(){for(const wt of this.stateMap){const pn=wt[0],qn=wt[1];qn.changed?(this._toggleClass(pn,qn.enabled),qn.changed=!1):qn.touched||(qn.enabled&&this._toggleClass(pn,!1),this.stateMap.delete(pn)),qn.touched=!1}}_toggleClass(wt,pn){(wt=wt.trim()).length>0&&wt.split(zr).forEach(qn=>{pn?this._renderer.addClass(this._ngEl.nativeElement,qn):this._renderer.removeClass(this._ngEl.nativeElement,qn)})}}return Xe.\u0275fac=function(wt){return new(wt||Xe)(o.Y36(o.ZZ4),o.Y36(o.aQg),o.Y36(o.SBq),o.Y36(o.Qsj))},Xe.\u0275dir=o.lG2({type:Xe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Xe})();class so{constructor(Lt,wt,pn,qn){this.$implicit=Lt,this.ngForOf=wt,this.index=pn,this.count=qn}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 Er=(()=>{class Xe{set ngForOf(wt){this._ngForOf=wt,this._ngForOfDirty=!0}set ngForTrackBy(wt){this._trackByFn=wt}get ngForTrackBy(){return this._trackByFn}constructor(wt,pn,qn){this._viewContainer=wt,this._template=pn,this._differs=qn,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(wt){wt&&(this._template=wt)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const wt=this._ngForOf;!this._differ&&wt&&(this._differ=this._differs.find(wt).create(this.ngForTrackBy))}if(this._differ){const wt=this._differ.diff(this._ngForOf);wt&&this._applyChanges(wt)}}_applyChanges(wt){const pn=this._viewContainer;wt.forEachOperation((qn,Qe,lt)=>{if(null==qn.previousIndex)pn.createEmbeddedView(this._template,new so(qn.item,this._ngForOf,-1,-1),null===lt?void 0:lt);else if(null==lt)pn.remove(null===Qe?void 0:Qe);else if(null!==Qe){const xt=pn.get(Qe);pn.move(xt,lt),oo(xt,qn)}});for(let qn=0,Qe=pn.length;qn<Qe;qn++){const xt=pn.get(qn).context;xt.index=qn,xt.count=Qe,xt.ngForOf=this._ngForOf}wt.forEachIdentityChange(qn=>{oo(pn.get(qn.currentIndex),qn)})}static ngTemplateContextGuard(wt,pn){return!0}}return Xe.\u0275fac=function(wt){return new(wt||Xe)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(o.ZZ4))},Xe.\u0275dir=o.lG2({type:Xe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Xe})();function oo(Xe,Lt){Xe.context.$implicit=Lt.item}let ir=(()=>{class Xe{constructor(wt,pn){this._viewContainer=wt,this._context=new Kr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=pn}set ngIf(wt){this._context.$implicit=this._context.ngIf=wt,this._updateView()}set ngIfThen(wt){to("ngIfThen",wt),this._thenTemplateRef=wt,this._thenViewRef=null,this._updateView()}set ngIfElse(wt){to("ngIfElse",wt),this._elseTemplateRef=wt,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(wt,pn){return!0}}return Xe.\u0275fac=function(wt){return new(wt||Xe)(o.Y36(o.s_b),o.Y36(o.Rgc))},Xe.\u0275dir=o.lG2({type:Xe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Xe})();class Kr{constructor(){this.$implicit=null,this.ngIf=null}}function to(Xe,Lt){if(Lt&&!Lt.createEmbeddedView)throw new Error(`${Xe} must be a TemplateRef, but received '${(0,o.AaK)(Lt)}'.`)}let dn=(()=>{class Xe{constructor(wt,pn,qn){this._ngEl=wt,this._differs=pn,this._renderer=qn,this._ngStyle=null,this._differ=null}set ngStyle(wt){this._ngStyle=wt,!this._differ&&wt&&(this._differ=this._differs.find(wt).create())}ngDoCheck(){if(this._differ){const wt=this._differ.diff(this._ngStyle);wt&&this._applyChanges(wt)}}_setStyle(wt,pn){const[qn,Qe]=wt.split("."),lt=-1===qn.indexOf("-")?void 0:o.JOm.DashCase;null!=pn?this._renderer.setStyle(this._ngEl.nativeElement,qn,Qe?`${pn}${Qe}`:pn,lt):this._renderer.removeStyle(this._ngEl.nativeElement,qn,lt)}_applyChanges(wt){wt.forEachRemovedItem(pn=>this._setStyle(pn.key,null)),wt.forEachAddedItem(pn=>this._setStyle(pn.key,pn.currentValue)),wt.forEachChangedItem(pn=>this._setStyle(pn.key,pn.currentValue))}}return Xe.\u0275fac=function(wt){return new(wt||Xe)(o.Y36(o.SBq),o.Y36(o.aQg),o.Y36(o.Qsj))},Xe.\u0275dir=o.lG2({type:Xe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Xe})(),In=(()=>{class Xe{constructor(wt){this._viewContainerRef=wt,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(wt){if(wt.ngTemplateOutlet||wt.ngTemplateOutletInjector){const pn=this._viewContainerRef;if(this._viewRef&&pn.remove(pn.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:qn,ngTemplateOutletContext:Qe,ngTemplateOutletInjector:lt}=this;this._viewRef=pn.createEmbeddedView(qn,Qe,lt?{injector:lt}:void 0)}else this._viewRef=null}else this._viewRef&&wt.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Xe.\u0275fac=function(wt){return new(wt||Xe)(o.Y36(o.s_b))},Xe.\u0275dir=o.lG2({type:Xe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[o.TTD]}),Xe})();class Ri{createSubscription(Lt,wt){return Lt.subscribe({next:wt,error:pn=>{throw pn}})}dispose(Lt){Lt.unsubscribe()}}class or{createSubscription(Lt,wt){return Lt.then(wt,pn=>{throw pn})}dispose(Lt){}}const cr=new or,en=new Ri;let vn=(()=>{class Xe{constructor(wt){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=wt}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(wt){return this._obj?wt!==this._obj?(this._dispose(),this.transform(wt)):this._latestValue:(wt&&this._subscribe(wt),this._latestValue)}_subscribe(wt){this._obj=wt,this._strategy=this._selectStrategy(wt),this._subscription=this._strategy.createSubscription(wt,pn=>this._updateLatestValue(wt,pn))}_selectStrategy(wt){if((0,o.QGY)(wt))return cr;if((0,o.F4k)(wt))return en;throw function gi(Xe,Lt){return new o.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(wt,pn){wt===this._obj&&(this._latestValue=pn,this._ref.markForCheck())}}return Xe.\u0275fac=function(wt){return new(wt||Xe)(o.Y36(o.sBO,16))},Xe.\u0275pipe=o.Yjl({name:"async",type:Xe,pure:!1,standalone:!0}),Xe})(),Un=(()=>{class Xe{}return Xe.\u0275fac=function(wt){return new(wt||Xe)},Xe.\u0275mod=o.oAB({type:Xe}),Xe.\u0275inj=o.cJS({}),Xe})();const ai="browser";function Ki(Xe){return Xe===ai}function Xi(Xe){return"server"===Xe}let Xr=(()=>{class Xe{}return Xe.\u0275prov=(0,o.Yz7)({token:Xe,providedIn:"root",factory:()=>new ko((0,o.LFG)(a),window)}),Xe})();class ko{constructor(Lt,wt){this.document=Lt,this.window=wt,this.offset=()=>[0,0]}setOffset(Lt){this.offset=Array.isArray(Lt)?()=>Lt:Lt}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Lt){this.supportsScrolling()&&this.window.scrollTo(Lt[0],Lt[1])}scrollToAnchor(Lt){if(!this.supportsScrolling())return;const wt=function Uo(Xe,Lt){const wt=Xe.getElementById(Lt)||Xe.getElementsByName(Lt)[0];if(wt)return wt;if("function"==typeof Xe.createTreeWalker&&Xe.body&&(Xe.body.createShadowRoot||Xe.body.attachShadow)){const pn=Xe.createTreeWalker(Xe.body,NodeFilter.SHOW_ELEMENT);let qn=pn.currentNode;for(;qn;){const Qe=qn.shadowRoot;if(Qe){const lt=Qe.getElementById(Lt)||Qe.querySelector(`[name="${Lt}"]`);if(lt)return lt}qn=pn.nextNode()}}return null}(this.document,Lt);wt&&(this.scrollToElement(wt),wt.focus())}setHistoryScrollRestoration(Lt){if(this.supportScrollRestoration()){const wt=this.window.history;wt&&wt.scrollRestoration&&(wt.scrollRestoration=Lt)}}scrollToElement(Lt){const wt=Lt.getBoundingClientRect(),pn=wt.left+this.window.pageXOffset,qn=wt.top+this.window.pageYOffset,Qe=this.offset();this.window.scrollTo(pn-Qe[0],qn-Qe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Lt=no(this.window.history)||no(Object.getPrototypeOf(this.window.history));return!(!Lt||!Lt.writable&&!Lt.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function no(Xe){return Object.getOwnPropertyDescriptor(Xe,"scrollRestoration")}class qo{}},5732:(kn,he,l)=>{"use strict";l.d(he,{JF:()=>He,eN:()=>ee,jN:()=>u,rs:()=>qe});var o=l(8692),c=l(4370),I=l(5917),C=l(882),f=l(4612),a=l(5435),p=l(8002);class s{}class u{}class d{constructor(dt){this.normalizedNames=new Map,this.lazyUpdate=null,dt?this.lazyInit="string"==typeof dt?()=>{this.headers=new Map,dt.split("\n").forEach(ht=>{const yt=ht.indexOf(":");if(yt>0){const Ft=ht.slice(0,yt),bn=Ft.toLowerCase(),_n=ht.slice(yt+1).trim();this.maybeSetNormalizedName(Ft,bn),this.headers.has(bn)?this.headers.get(bn).push(_n):this.headers.set(bn,[_n])}})}:()=>{this.headers=new Map,Object.keys(dt).forEach(ht=>{let yt=dt[ht];const Ft=ht.toLowerCase();"string"==typeof yt&&(yt=[yt]),yt.length>0&&(this.headers.set(Ft,yt),this.maybeSetNormalizedName(ht,Ft))})}:this.headers=new Map}has(dt){return this.init(),this.headers.has(dt.toLowerCase())}get(dt){this.init();const ht=this.headers.get(dt.toLowerCase());return ht&&ht.length>0?ht[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(dt){return this.init(),this.headers.get(dt.toLowerCase())||null}append(dt,ht){return this.clone({name:dt,value:ht,op:"a"})}set(dt,ht){return this.clone({name:dt,value:ht,op:"s"})}delete(dt,ht){return this.clone({name:dt,value:ht,op:"d"})}maybeSetNormalizedName(dt,ht){this.normalizedNames.has(ht)||this.normalizedNames.set(ht,dt)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(dt=>this.applyUpdate(dt)),this.lazyUpdate=null))}copyFrom(dt){dt.init(),Array.from(dt.headers.keys()).forEach(ht=>{this.headers.set(ht,dt.headers.get(ht)),this.normalizedNames.set(ht,dt.normalizedNames.get(ht))})}clone(dt){const ht=new d;return ht.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,ht.lazyUpdate=(this.lazyUpdate||[]).concat([dt]),ht}applyUpdate(dt){const ht=dt.name.toLowerCase();switch(dt.op){case"a":case"s":let yt=dt.value;if("string"==typeof yt&&(yt=[yt]),0===yt.length)return;this.maybeSetNormalizedName(dt.name,ht);const Ft=("a"===dt.op?this.headers.get(ht):void 0)||[];Ft.push(...yt),this.headers.set(ht,Ft);break;case"d":const bn=dt.value;if(bn){let _n=this.headers.get(ht);if(!_n)return;_n=_n.filter(xn=>-1===bn.indexOf(xn)),0===_n.length?(this.headers.delete(ht),this.normalizedNames.delete(ht)):this.headers.set(ht,_n)}else this.headers.delete(ht),this.normalizedNames.delete(ht)}}forEach(dt){this.init(),Array.from(this.normalizedNames.keys()).forEach(ht=>dt(this.normalizedNames.get(ht),this.headers.get(ht)))}}class g{encodeKey(dt){return E(dt)}encodeValue(dt){return E(dt)}decodeKey(dt){return decodeURIComponent(dt)}decodeValue(dt){return decodeURIComponent(dt)}}const b=/%(\d[a-f0-9])/gi,y={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function E(Ht){return encodeURIComponent(Ht).replace(b,(dt,ht)=>y[ht]??dt)}function S(Ht){return`${Ht}`}class O{constructor(dt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=dt.encoder||new g,dt.fromString){if(dt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function x(Ht,dt){const ht=new Map;return Ht.length>0&&Ht.replace(/^\?/,"").split("&").forEach(Ft=>{const bn=Ft.indexOf("="),[_n,xn]=-1==bn?[dt.decodeKey(Ft),""]:[dt.decodeKey(Ft.slice(0,bn)),dt.decodeValue(Ft.slice(bn+1))],Jn=ht.get(_n)||[];Jn.push(xn),ht.set(_n,Jn)}),ht}(dt.fromString,this.encoder)}else dt.fromObject?(this.map=new Map,Object.keys(dt.fromObject).forEach(ht=>{const yt=dt.fromObject[ht],Ft=Array.isArray(yt)?yt.map(S):[S(yt)];this.map.set(ht,Ft)})):this.map=null}has(dt){return this.init(),this.map.has(dt)}get(dt){this.init();const ht=this.map.get(dt);return ht?ht[0]:null}getAll(dt){return this.init(),this.map.get(dt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(dt,ht){return this.clone({param:dt,value:ht,op:"a"})}appendAll(dt){const ht=[];return Object.keys(dt).forEach(yt=>{const Ft=dt[yt];Array.isArray(Ft)?Ft.forEach(bn=>{ht.push({param:yt,value:bn,op:"a"})}):ht.push({param:yt,value:Ft,op:"a"})}),this.clone(ht)}set(dt,ht){return this.clone({param:dt,value:ht,op:"s"})}delete(dt,ht){return this.clone({param:dt,value:ht,op:"d"})}toString(){return this.init(),this.keys().map(dt=>{const ht=this.encoder.encodeKey(dt);return this.map.get(dt).map(yt=>ht+"="+this.encoder.encodeValue(yt)).join("&")}).filter(dt=>""!==dt).join("&")}clone(dt){const ht=new O({encoder:this.encoder});return ht.cloneFrom=this.cloneFrom||this,ht.updates=(this.updates||[]).concat(dt),ht}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(dt=>this.map.set(dt,this.cloneFrom.map.get(dt))),this.updates.forEach(dt=>{switch(dt.op){case"a":case"s":const ht=("a"===dt.op?this.map.get(dt.param):void 0)||[];ht.push(S(dt.value)),this.map.set(dt.param,ht);break;case"d":if(void 0===dt.value){this.map.delete(dt.param);break}{let yt=this.map.get(dt.param)||[];const Ft=yt.indexOf(S(dt.value));-1!==Ft&&yt.splice(Ft,1),yt.length>0?this.map.set(dt.param,yt):this.map.delete(dt.param)}}}),this.cloneFrom=this.updates=null)}}class T{constructor(){this.map=new Map}set(dt,ht){return this.map.set(dt,ht),this}get(dt){return this.map.has(dt)||this.map.set(dt,dt.defaultValue()),this.map.get(dt)}delete(dt){return this.map.delete(dt),this}has(dt){return this.map.has(dt)}keys(){return this.map.keys()}}function R(Ht){return typeof ArrayBuffer<"u"&&Ht instanceof ArrayBuffer}function P(Ht){return typeof Blob<"u"&&Ht instanceof Blob}function B(Ht){return typeof FormData<"u"&&Ht instanceof FormData}class N{constructor(dt,ht,yt,Ft){let bn;if(this.url=ht,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=dt.toUpperCase(),function k(Ht){switch(Ht){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ft?(this.body=void 0!==yt?yt:null,bn=Ft):bn=yt,bn&&(this.reportProgress=!!bn.reportProgress,this.withCredentials=!!bn.withCredentials,bn.responseType&&(this.responseType=bn.responseType),bn.headers&&(this.headers=bn.headers),bn.context&&(this.context=bn.context),bn.params&&(this.params=bn.params)),this.headers||(this.headers=new d),this.context||(this.context=new T),this.params){const _n=this.params.toString();if(0===_n.length)this.urlWithParams=ht;else{const xn=ht.indexOf("?");this.urlWithParams=ht+(-1===xn?"?":xn<ht.length-1?"&":"")+_n}}else this.params=new O,this.urlWithParams=ht}serializeBody(){return null===this.body?null:R(this.body)||P(this.body)||B(this.body)||function W(Ht){return typeof URLSearchParams<"u"&&Ht instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof O?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||B(this.body)?null:P(this.body)?this.body.type||null:R(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof O?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(dt={}){const ht=dt.method||this.method,yt=dt.url||this.url,Ft=dt.responseType||this.responseType,bn=void 0!==dt.body?dt.body:this.body,_n=void 0!==dt.withCredentials?dt.withCredentials:this.withCredentials,xn=void 0!==dt.reportProgress?dt.reportProgress:this.reportProgress;let Jn=dt.headers||this.headers,li=dt.params||this.params;const Ai=dt.context??this.context;return void 0!==dt.setHeaders&&(Jn=Object.keys(dt.setHeaders).reduce((Vn,Oi)=>Vn.set(Oi,dt.setHeaders[Oi]),Jn)),dt.setParams&&(li=Object.keys(dt.setParams).reduce((Vn,Oi)=>Vn.set(Oi,dt.setParams[Oi]),li)),new N(ht,yt,bn,{params:li,headers:Jn,context:Ai,reportProgress:xn,responseType:Ft,withCredentials:_n})}}var V=(()=>((V=V||{})[V.Sent=0]="Sent",V[V.UploadProgress=1]="UploadProgress",V[V.ResponseHeader=2]="ResponseHeader",V[V.DownloadProgress=3]="DownloadProgress",V[V.Response=4]="Response",V[V.User=5]="User",V))();class U{constructor(dt,ht=200,yt="OK"){this.headers=dt.headers||new d,this.status=void 0!==dt.status?dt.status:ht,this.statusText=dt.statusText||yt,this.url=dt.url||null,this.ok=this.status>=200&&this.status<300}}class K extends U{constructor(dt={}){super(dt),this.type=V.ResponseHeader}clone(dt={}){return new K({headers:dt.headers||this.headers,status:void 0!==dt.status?dt.status:this.status,statusText:dt.statusText||this.statusText,url:dt.url||this.url||void 0})}}class Y extends U{constructor(dt={}){super(dt),this.type=V.Response,this.body=void 0!==dt.body?dt.body:null}clone(dt={}){return new Y({body:void 0!==dt.body?dt.body:this.body,headers:dt.headers||this.headers,status:void 0!==dt.status?dt.status:this.status,statusText:dt.statusText||this.statusText,url:dt.url||this.url||void 0})}}class J extends U{constructor(dt){super(dt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${dt.url||"(unknown url)"}`:`Http failure response for ${dt.url||"(unknown url)"}: ${dt.status} ${dt.statusText}`,this.error=dt.error||null}}function j(Ht,dt){return{body:dt,headers:Ht.headers,context:Ht.context,observe:Ht.observe,params:Ht.params,reportProgress:Ht.reportProgress,responseType:Ht.responseType,withCredentials:Ht.withCredentials}}let ee=(()=>{class Ht{constructor(ht){this.handler=ht}request(ht,yt,Ft={}){let bn;if(ht instanceof N)bn=ht;else{let Jn,li;Jn=Ft.headers instanceof d?Ft.headers:new d(Ft.headers),Ft.params&&(li=Ft.params instanceof O?Ft.params:new O({fromObject:Ft.params})),bn=new N(ht,yt,void 0!==Ft.body?Ft.body:null,{headers:Jn,context:Ft.context,params:li,reportProgress:Ft.reportProgress,responseType:Ft.responseType||"json",withCredentials:Ft.withCredentials})}const _n=(0,I.of)(bn).pipe((0,f.b)(Jn=>this.handler.handle(Jn)));if(ht instanceof N||"events"===Ft.observe)return _n;const xn=_n.pipe((0,a.h)(Jn=>Jn instanceof Y));switch(Ft.observe||"body"){case"body":switch(bn.responseType){case"arraybuffer":return xn.pipe((0,p.U)(Jn=>{if(null!==Jn.body&&!(Jn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Jn.body}));case"blob":return xn.pipe((0,p.U)(Jn=>{if(null!==Jn.body&&!(Jn.body instanceof Blob))throw new Error("Response is not a Blob.");return Jn.body}));case"text":return xn.pipe((0,p.U)(Jn=>{if(null!==Jn.body&&"string"!=typeof Jn.body)throw new Error("Response is not a string.");return Jn.body}));default:return xn.pipe((0,p.U)(Jn=>Jn.body))}case"response":return xn;default:throw new Error(`Unreachable: unhandled observe type ${Ft.observe}}`)}}delete(ht,yt={}){return this.request("DELETE",ht,yt)}get(ht,yt={}){return this.request("GET",ht,yt)}head(ht,yt={}){return this.request("HEAD",ht,yt)}jsonp(ht,yt){return this.request("JSONP",ht,{params:(new O).append(yt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ht,yt={}){return this.request("OPTIONS",ht,yt)}patch(ht,yt,Ft={}){return this.request("PATCH",ht,j(Ft,yt))}post(ht,yt,Ft={}){return this.request("POST",ht,j(Ft,yt))}put(ht,yt,Ft={}){return this.request("PUT",ht,j(Ft,yt))}}return Ht.\u0275fac=function(ht){return new(ht||Ht)(c.LFG(s))},Ht.\u0275prov=c.Yz7({token:Ht,factory:Ht.\u0275fac}),Ht})();function G(Ht,dt){return dt(Ht)}function q(Ht,dt){return(ht,yt)=>dt.intercept(ht,{handle:Ft=>Ht(Ft,yt)})}const X=new c.OlP("HTTP_INTERCEPTORS"),M=new c.OlP("HTTP_INTERCEPTOR_FNS");function se(){let Ht=null;return(dt,ht)=>(null===Ht&&(Ht=((0,c.f3M)(X,{optional:!0})??[]).reduceRight(q,G)),Ht(dt,ht))}let ge=(()=>{class Ht extends s{constructor(ht,yt){super(),this.backend=ht,this.injector=yt,this.chain=null}handle(ht){if(null===this.chain){const yt=Array.from(new Set(this.injector.get(M)));this.chain=yt.reduceRight((Ft,bn)=>function Z(Ht,dt,ht){return(yt,Ft)=>ht.runInContext(()=>dt(yt,bn=>Ht(bn,Ft)))}(Ft,bn,this.injector),G)}return this.chain(ht,yt=>this.backend.handle(yt))}}return Ht.\u0275fac=function(ht){return new(ht||Ht)(c.LFG(u),c.LFG(c.lqb))},Ht.\u0275prov=c.Yz7({token:Ht,factory:Ht.\u0275fac}),Ht})();const ae=/^\)\]\}',?\n/;let re=(()=>{class Ht{constructor(ht){this.xhrFactory=ht}handle(ht){if("JSONP"===ht.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new C.y(yt=>{const Ft=this.xhrFactory.build();if(Ft.open(ht.method,ht.urlWithParams),ht.withCredentials&&(Ft.withCredentials=!0),ht.headers.forEach((Hn,Sn)=>Ft.setRequestHeader(Hn,Sn.join(","))),ht.headers.has("Accept")||Ft.setRequestHeader("Accept","application/json, text/plain, */*"),!ht.headers.has("Content-Type")){const Hn=ht.detectContentTypeHeader();null!==Hn&&Ft.setRequestHeader("Content-Type",Hn)}if(ht.responseType){const Hn=ht.responseType.toLowerCase();Ft.responseType="json"!==Hn?Hn:"text"}const bn=ht.serializeBody();let _n=null;const xn=()=>{if(null!==_n)return _n;const Hn=Ft.statusText||"OK",Sn=new d(Ft.getAllResponseHeaders()),An=function te(Ht){return"responseURL"in Ht&&Ht.responseURL?Ht.responseURL:/^X-Request-URL:/m.test(Ht.getAllResponseHeaders())?Ht.getResponseHeader("X-Request-URL"):null}(Ft)||ht.url;return _n=new K({headers:Sn,status:Ft.status,statusText:Hn,url:An}),_n},Jn=()=>{let{headers:Hn,status:Sn,statusText:An,url:ti}=xn(),Wn=null;204!==Sn&&(Wn=typeof Ft.response>"u"?Ft.responseText:Ft.response),0===Sn&&(Sn=Wn?200:0);let Yi=Sn>=200&&Sn<300;if("json"===ht.responseType&&"string"==typeof Wn){const On=Wn;Wn=Wn.replace(ae,"");try{Wn=""!==Wn?JSON.parse(Wn):null}catch(ei){Wn=On,Yi&&(Yi=!1,Wn={error:ei,text:Wn})}}Yi?(yt.next(new Y({body:Wn,headers:Hn,status:Sn,statusText:An,url:ti||void 0})),yt.complete()):yt.error(new J({error:Wn,headers:Hn,status:Sn,statusText:An,url:ti||void 0}))},li=Hn=>{const{url:Sn}=xn(),An=new J({error:Hn,status:Ft.status||0,statusText:Ft.statusText||"Unknown Error",url:Sn||void 0});yt.error(An)};let Ai=!1;const Vn=Hn=>{Ai||(yt.next(xn()),Ai=!0);let Sn={type:V.DownloadProgress,loaded:Hn.loaded};Hn.lengthComputable&&(Sn.total=Hn.total),"text"===ht.responseType&&Ft.responseText&&(Sn.partialText=Ft.responseText),yt.next(Sn)},Oi=Hn=>{let Sn={type:V.UploadProgress,loaded:Hn.loaded};Hn.lengthComputable&&(Sn.total=Hn.total),yt.next(Sn)};return Ft.addEventListener("load",Jn),Ft.addEventListener("error",li),Ft.addEventListener("timeout",li),Ft.addEventListener("abort",li),ht.reportProgress&&(Ft.addEventListener("progress",Vn),null!==bn&&Ft.upload&&Ft.upload.addEventListener("progress",Oi)),Ft.send(bn),yt.next({type:V.Sent}),()=>{Ft.removeEventListener("error",li),Ft.removeEventListener("abort",li),Ft.removeEventListener("load",Jn),Ft.removeEventListener("timeout",li),ht.reportProgress&&(Ft.removeEventListener("progress",Vn),null!==bn&&Ft.upload&&Ft.upload.removeEventListener("progress",Oi)),Ft.readyState!==Ft.DONE&&Ft.abort()}})}}return Ht.\u0275fac=function(ht){return new(ht||Ht)(c.LFG(o.JF))},Ht.\u0275prov=c.Yz7({token:Ht,factory:Ht.\u0275fac}),Ht})();const oe=new c.OlP("XSRF_ENABLED"),ye="XSRF-TOKEN",Pe=new c.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>ye}),Ne="X-XSRF-TOKEN",ft=new c.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>Ne});class tt{}let Be=(()=>{class Ht{constructor(ht,yt,Ft){this.doc=ht,this.platform=yt,this.cookieName=Ft,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ht=this.doc.cookie||"";return ht!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,o.Mx)(ht,this.cookieName),this.lastCookieString=ht),this.lastToken}}return Ht.\u0275fac=function(ht){return new(ht||Ht)(c.LFG(o.K0),c.LFG(c.Lbi),c.LFG(Pe))},Ht.\u0275prov=c.Yz7({token:Ht,factory:Ht.\u0275fac}),Ht})();function mt(Ht,dt){const ht=Ht.url.toLowerCase();if(!(0,c.f3M)(oe)||"GET"===Ht.method||"HEAD"===Ht.method||ht.startsWith("http://")||ht.startsWith("https://"))return dt(Ht);const yt=(0,c.f3M)(tt).getToken(),Ft=(0,c.f3M)(ft);return null!=yt&&!Ht.headers.has(Ft)&&(Ht=Ht.clone({headers:Ht.headers.set(Ft,yt)})),dt(Ht)}var ke=(()=>((ke=ke||{})[ke.Interceptors=0]="Interceptors",ke[ke.LegacyInterceptors=1]="LegacyInterceptors",ke[ke.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ke[ke.NoXsrfProtection=3]="NoXsrfProtection",ke[ke.JsonpSupport=4]="JsonpSupport",ke[ke.RequestsMadeViaParent=5]="RequestsMadeViaParent",ke))();function $e(Ht,dt){return{\u0275kind:Ht,\u0275providers:dt}}function me(...Ht){const dt=[ee,re,ge,{provide:s,useExisting:ge},{provide:u,useExisting:re},{provide:M,useValue:mt,multi:!0},{provide:oe,useValue:!0},{provide:tt,useClass:Be}];for(const ht of Ht)dt.push(...ht.\u0275providers);return(0,c.MR2)(dt)}const Te=new c.OlP("LEGACY_INTERCEPTOR_FN");function St({cookieName:Ht,headerName:dt}){const ht=[];return void 0!==Ht&&ht.push({provide:Pe,useValue:Ht}),void 0!==dt&&ht.push({provide:ft,useValue:dt}),$e(ke.CustomXsrfConfiguration,ht)}let He=(()=>{class Ht{}return Ht.\u0275fac=function(ht){return new(ht||Ht)},Ht.\u0275mod=c.oAB({type:Ht}),Ht.\u0275inj=c.cJS({providers:[me($e(ke.LegacyInterceptors,[{provide:Te,useFactory:se},{provide:M,useExisting:Te,multi:!0}]),St({cookieName:ye,headerName:Ne}))]}),Ht})();const qe=o.JF},4370:(kn,he,l)=>{"use strict";l.d(he,{tb:()=>Iv,AFp:()=>jx,ip1:()=>Tv,CZH:()=>ch,hGG:()=>SO,z2F:()=>Zl,sBO:()=>VM,Sil:()=>MM,_Vd:()=>Gc,EJc:()=>Av,Xts:()=>Bl,SBq:()=>xm,lqb:()=>ao,qLn:()=>lp,vpe:()=>Sd,XFs:()=>ke,OlP:()=>ya,zs3:()=>Xc,ZZ4:()=>mh,aQg:()=>fb,soG:()=>C0,YKP:()=>mv,h0i:()=>wl,PXZ:()=>BM,R0b:()=>rl,FiY:()=>Au,Lbi:()=>vf,g9A:()=>v0,f1m:()=>Bv,Qsj:()=>_1,FYo:()=>Pw,JOm:()=>Ks,q3G:()=>Va,WD2:()=>go,tp0:()=>nu,Rgc:()=>c0,dDg:()=>Jx,eoX:()=>Qx,q4F:()=>kw,GfV:()=>bm,s_b:()=>El,ifc:()=>On,MMx:()=>vv,Lck:()=>ac,eFA:()=>hO,G48:()=>Od,Gpc:()=>w,f3M:()=>Jn,$WT:()=>so,MR2:()=>Ie,_c5:()=>Uv,c2e:()=>y0,zSh:()=>Wi,wAp:()=>vo,eQZ:()=>Eo,vHH:()=>W,lri:()=>Lv,rWj:()=>qx,JZr:()=>B,EiD:()=>_m,mCW:()=>Pl,qzn:()=>Kd,JVY:()=>Dg,pB0:()=>zc,eBb:()=>Tg,L6k:()=>mm,LAX:()=>Bu,D6c:()=>KM,cg1:()=>WC,kL8:()=>XE,dqk:()=>St,Z0I:()=>oe,CqO:()=>zl,QGY:()=>xC,F4k:()=>bC,RDi:()=>wg,AaK:()=>E,z3N:()=>ru,qOj:()=>N_,TTD:()=>Vo,_Bn:()=>bS,jDz:()=>lx,xp6:()=>jy,uIk:()=>U_,Tol:()=>AC,Gre:()=>HE,ekj:()=>ef,Suo:()=>NS,Xpm:()=>ci,lG2:()=>Gr,Yz7:()=>Ee,cJS:()=>te,oAB:()=>Dr,Yjl:()=>xr,Y36:()=>gp,_UZ:()=>yC,GkF:()=>Km,BQk:()=>q_,ynx:()=>X_,qZA:()=>Y_,TgZ:()=>$_,EpF:()=>CC,n5z:()=>Ja,LFG:()=>_n,$8M:()=>od,$Z:()=>Qw,NdJ:()=>J_,CRH:()=>Mx,kcU:()=>wt,O4$:()=>Xe,oxw:()=>EC,ALo:()=>kS,lcZ:()=>xx,Hsn:()=>qg,F$t:()=>il,Q6J:()=>_C,s9C:()=>Q_,DdM:()=>mx,VKq:()=>l0,WLB:()=>TS,iGM:()=>Ix,MAs:()=>mC,KtG:()=>Gn,Jf7:()=>Yc,CHM:()=>gn,oJD:()=>Pg,LSH:()=>Xa,P3R:()=>w_,B6R:()=>Si,kYT:()=>kr,Jzz:()=>zE,Udp:()=>rh,YNc:()=>fC,W1O:()=>zS,_uU:()=>LC,Oqu:()=>iv,hij:()=>rv,AsE:()=>BC,Gf:()=>p0});var o=l(5775),c=l(3464),I=l(882),C=l(4869),f=l(3282),a=l(6693),s=l(2441);class d{constructor(H,$){this.subjectFactory=H,this.selector=$}call(H,$){const{selector:ce}=this,be=this.subjectFactory(),Re=ce(be).subscribe(H);return Re.add($.subscribe(be)),Re}}var h=l(1307);function g(){return new o.xQ}function b(F){for(let H in F)if(F[H]===b)return H;throw Error("Could not find renamed property on target object.")}function y(F,H){for(const $ in H)H.hasOwnProperty($)&&!F.hasOwnProperty($)&&(F[$]=H[$])}function E(F){if("string"==typeof F)return F;if(Array.isArray(F))return"["+F.map(E).join(", ")+"]";if(null==F)return""+F;if(F.overriddenName)return`${F.overriddenName}`;if(F.name)return`${F.name}`;const H=F.toString();if(null==H)return""+H;const $=H.indexOf("\n");return-1===$?H:H.substring(0,$)}function S(F,H){return null==F||""===F?null===H?"":H:null==H||""===H?F:F+" "+H}const O=b({__forward_ref__:b});function w(F){return F.__forward_ref__=w,F.toString=function(){return E(this())},F}function T(F){return k(F)?F():F}function k(F){return"function"==typeof F&&F.hasOwnProperty(O)&&F.__forward_ref__===w}function R(F){return F&&!!F.\u0275providers}const B="https://g.co/ng/security#xss";class W extends Error{constructor(H,$){super(function N(F,H){return`NG0${Math.abs(F)}${H?": "+H.trim():""}`}(H,$)),this.code=H}}function V(F){return"string"==typeof F?F:null==F?"":String(F)}function j(F,H){throw new W(-201,!1)}function _e(F,H){null==F&&function ie(F,H,$,ce){throw new Error(`ASSERTION ERROR: ${F}`+(null==ce?"":` [Expected=> ${$} ${ce} ${H} <=Actual]`))}(H,F,null,"!=")}function Ee(F){return{token:F.token,providedIn:F.providedIn||null,factory:F.factory,value:void 0}}function te(F){return{providers:F.providers||[],imports:F.imports||[]}}function re(F){return ye(F,tt)||ye(F,mt)}function oe(F){return null!==re(F)}function ye(F,H){return F.hasOwnProperty(H)?F[H]:null}function ft(F){return F&&(F.hasOwnProperty(Be)||F.hasOwnProperty(nn))?F[Be]:null}const tt=b({\u0275prov:b}),Be=b({\u0275inj:b}),mt=b({ngInjectableDef:b}),nn=b({ngInjectorDef:b});var ke=(()=>((ke=ke||{})[ke.Default=0]="Default",ke[ke.Host=1]="Host",ke[ke.Self=2]="Self",ke[ke.SkipSelf=4]="SkipSelf",ke[ke.Optional=8]="Optional",ke))();let $e;function xe(F){const H=$e;return $e=F,H}function Te(F,H,$){const ce=re(F);return ce&&"root"==ce.providedIn?void 0===ce.value?ce.value=ce.factory():ce.value:$&ke.Optional?null:void 0!==H?H:void j(E(F))}const St=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},He="__NG_DI_FLAG__",Dt="ngTempTokenPath",Ht=/\n/gm,ht="__source";let yt;function Ft(F){const H=yt;return yt=F,H}function bn(F,H=ke.Default){if(void 0===yt)throw new W(-203,!1);return null===yt?Te(F,void 0,H):yt.get(F,H&ke.Optional?null:void 0,H)}function _n(F,H=ke.Default){return(function me(){return $e}()||bn)(T(F),H)}function Jn(F,H=ke.Default){return _n(F,li(H))}function li(F){return typeof F>"u"||"number"==typeof F?F:0|(F.optional&&8)|(F.host&&1)|(F.self&&2)|(F.skipSelf&&4)}function Ai(F){const H=[];for(let $=0;$<F.length;$++){const ce=T(F[$]);if(Array.isArray(ce)){if(0===ce.length)throw new W(900,!1);let be,Re=ke.Default;for(let et=0;et<ce.length;et++){const Tt=ce[et],zt=Oi(Tt);"number"==typeof zt?-1===zt?be=Tt.token:Re|=zt:be=Tt}H.push(_n(be,Re))}else H.push(_n(ce))}return H}function Vn(F,H){return F[He]=H,F.prototype[He]=H,F}function Oi(F){return F[He]}function An(F){return{toString:F}.toString()}var ti=(()=>((ti=ti||{})[ti.OnPush=0]="OnPush",ti[ti.Default=1]="Default",ti))(),On=(()=>{return(F=On||(On={}))[F.Emulated=0]="Emulated",F[F.None=2]="None",F[F.ShadowDom=3]="ShadowDom",On;var F})();const ei={},ni=[],di=b({\u0275cmp:b}),Hi=b({\u0275dir:b}),$i=b({\u0275pipe:b}),Qi=b({\u0275mod:b}),_r=b({\u0275fac:b}),yn=b({__NG_ELEMENT_ID__:b});let Rn=0;function ci(F){return An(()=>{const $=!0===F.standalone,ce={},be={type:F.type,providersResolver:null,decls:F.decls,vars:F.vars,factory:null,template:F.template||null,consts:F.consts||null,ngContentSelectors:F.ngContentSelectors,hostBindings:F.hostBindings||null,hostVars:F.hostVars||0,hostAttrs:F.hostAttrs||null,contentQueries:F.contentQueries||null,declaredInputs:ce,inputs:null,outputs:null,exportAs:F.exportAs||null,onPush:F.changeDetection===ti.OnPush,directiveDefs:null,pipeDefs:null,standalone:$,dependencies:$&&F.dependencies||null,getStandaloneInjector:null,selectors:F.selectors||ni,viewQuery:F.viewQuery||null,features:F.features||null,data:F.data||{},encapsulation:F.encapsulation||On.Emulated,id:"c"+Rn++,styles:F.styles||ni,_:null,setInput:null,schemas:F.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},Re=F.dependencies,et=F.features;return be.inputs=zr(F.inputs,ce),be.outputs=zr(F.outputs),et&&et.forEach(Tt=>Tt(be)),be.directiveDefs=Re?()=>("function"==typeof Re?Re():Re).map(ji).filter(lr):null,be.pipeDefs=Re?()=>("function"==typeof Re?Re():Re).map(Tr).filter(lr):null,be})}function Si(F,H,$){const ce=F.\u0275cmp;ce.directiveDefs=()=>("function"==typeof H?H():H).map(ji),ce.pipeDefs=()=>("function"==typeof $?$():$).map(Tr)}function ji(F){return Vr(F)||Nr(F)}function lr(F){return null!==F}function Dr(F){return An(()=>({type:F.type,bootstrap:F.bootstrap||ni,declarations:F.declarations||ni,imports:F.imports||ni,exports:F.exports||ni,transitiveCompileScopes:null,schemas:F.schemas||null,id:F.id||null}))}function kr(F,H){return An(()=>{const $=Er(F,!0);$.declarations=H.declarations||ni,$.imports=H.imports||ni,$.exports=H.exports||ni})}function zr(F,H){if(null==F)return ei;const $={};for(const ce in F)if(F.hasOwnProperty(ce)){let be=F[ce],Re=be;Array.isArray(be)&&(Re=be[1],be=be[0]),$[be]=ce,H&&(H[be]=Re)}return $}const Gr=ci;function xr(F){return{type:F.type,name:F.name,factory:null,pure:!1!==F.pure,standalone:!0===F.standalone,onDestroy:F.type.prototype.ngOnDestroy||null}}function Vr(F){return F[di]||null}function Nr(F){return F[Hi]||null}function Tr(F){return F[$i]||null}function so(F){const H=Vr(F)||Nr(F)||Tr(F);return null!==H&&H.standalone}function Er(F,H){const $=F[Qi]||null;if(!$&&!0===H)throw new Error(`Type ${E(F)} does not have '\u0275mod' property.`);return $}function hn(F){return Array.isArray(F)&&"object"==typeof F[1]}function sn(F){return Array.isArray(F)&&!0===F[1]}function Nn(F){return 0!=(4&F.flags)}function Yn(F){return F.componentOffset>-1}function st(F){return 1==(1&F.flags)}function Vt(F){return null!==F.template}function rn(F){return 0!=(256&F[2])}function qo(F,H){return F.hasOwnProperty(_r)?F[_r]:null}class go{constructor(H,$,ce){this.previousValue=H,this.currentValue=$,this.firstChange=ce}isFirstChange(){return this.firstChange}}function Vo(){return So}function So(F){return F.type.prototype.ngOnChanges&&(F.setInput=Yr),ba}function ba(){const F=da(this),H=F?.current;if(H){const $=F.previous;if($===ei)F.previous=H;else for(let ce in H)$[ce]=H[ce];F.current=null,this.ngOnChanges(H)}}function Yr(F,H,$,ce){const be=this.declaredInputs[$],Re=da(F)||function ja(F,H){return F[Ho]=H}(F,{previous:ei,current:null}),et=Re.current||(Re.current={}),Tt=Re.previous,zt=Tt[be];et[be]=new go(zt&&zt.currentValue,H,Tt===ei),F[ce]=H}Vo.ngInherit=!0;const Ho="__ngSimpleChanges__";function da(F){return F[Ho]||null}function Go(F){for(;Array.isArray(F);)F=F[0];return F}function jo(F,H){return Go(H[F])}function ta(F,H){return Go(H[F.index])}function ma(F,H){return F.data[H]}function ha(F,H){return F[H]}function $o(F,H){const $=H[F];return hn($)?$:$[0]}function _a(F){return 64==(64&F[2])}function pa(F,H){return null==H?null:F[H]}function Qt(F){F[18]=0}function Kt(F,H){F[5]+=H;let $=F,ce=F[3];for(;null!==ce&&(1===H&&1===$[5]||-1===H&&0===$[5]);)ce[5]+=H,$=ce,ce=ce[3]}const Pt={lFrame:Ia(null),bindingsEnabled:!0};function ot(){return Pt.bindingsEnabled}function at(){return Pt.lFrame.lView}function Yt(){return Pt.lFrame.tView}function gn(F){return Pt.lFrame.contextLView=F,F[8]}function Gn(F){return Pt.lFrame.contextLView=null,F}function Qn(){let F=Mi();for(;null!==F&&64===F.type;)F=F.parent;return F}function Mi(){return Pt.lFrame.currentTNode}function Ei(F,H){const $=Pt.lFrame;$.currentTNode=F,$.isParent=H}function bi(){return Pt.lFrame.isParent}function tr(){Pt.lFrame.isParent=!1}function Gi(){const F=Pt.lFrame;let H=F.bindingRootIndex;return-1===H&&(H=F.bindingRootIndex=F.tView.bindingStartIndex),H}function Lr(){return Pt.lFrame.bindingIndex++}function Sr(F){const H=Pt.lFrame,$=H.bindingIndex;return H.bindingIndex=H.bindingIndex+F,$}function Qr(F,H){const $=Pt.lFrame;$.bindingIndex=$.bindingRootIndex=F,To(H)}function To(F){Pt.lFrame.currentDirectiveIndex=F}function na(){return Pt.lFrame.currentQueryIndex}function ga(F){Pt.lFrame.currentQueryIndex=F}function zo(F){const H=F[1];return 2===H.type?H.declTNode:1===H.type?F[6]:null}function oa(F,H,$){if($&ke.SkipSelf){let be=H,Re=F;for(;!(be=be.parent,null!==be||$&ke.Host||(be=zo(Re),null===be||(Re=Re[15],10&be.type))););if(null===be)return!1;H=be,F=Re}const ce=Pt.lFrame=Qo();return ce.currentTNode=H,ce.lView=F,!0}function Ta(F){const H=Qo(),$=F[1];Pt.lFrame=H,H.currentTNode=$.firstChild,H.lView=F,H.tView=$,H.contextLView=F,H.bindingIndex=$.bindingStartIndex,H.inI18n=!1}function Qo(){const F=Pt.lFrame,H=null===F?null:F.child;return null===H?Ia(F):H}function Ia(F){const H={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:F,child:null,inI18n:!1};return null!==F&&(F.child=H),H}function Ma(){const F=Pt.lFrame;return Pt.lFrame=F.parent,F.currentTNode=null,F.lView=null,F}const wa=Ma;function Aa(){const F=Ma();F.isParent=!0,F.tView=null,F.selectedIndex=-1,F.contextLView=null,F.elementDepthCount=0,F.currentDirectiveIndex=-1,F.currentNamespace=null,F.bindingRootIndex=-1,F.bindingIndex=-1,F.currentQueryIndex=0}function Ut(){return Pt.lFrame.selectedIndex}function Zt(F){Pt.lFrame.selectedIndex=F}function jn(){const F=Pt.lFrame;return ma(F.tView,F.selectedIndex)}function Xe(){Pt.lFrame.currentNamespace="svg"}function wt(){!function pn(){Pt.lFrame.currentNamespace=null}()}function lt(F,H){for(let $=H.directiveStart,ce=H.directiveEnd;$<ce;$++){const Re=F.data[$].type.prototype,{ngAfterContentInit:et,ngAfterContentChecked:Tt,ngAfterViewInit:zt,ngAfterViewChecked:cn,ngOnDestroy:Fn}=Re;et&&(F.contentHooks||(F.contentHooks=[])).push(-$,et),Tt&&((F.contentHooks||(F.contentHooks=[])).push($,Tt),(F.contentCheckHooks||(F.contentCheckHooks=[])).push($,Tt)),zt&&(F.viewHooks||(F.viewHooks=[])).push(-$,zt),cn&&((F.viewHooks||(F.viewHooks=[])).push($,cn),(F.viewCheckHooks||(F.viewCheckHooks=[])).push($,cn)),null!=Fn&&(F.destroyHooks||(F.destroyHooks=[])).push($,Fn)}}function xt(F,H,$){wi(F,H,3,$)}function Tn(F,H,$,ce){(3&F[2])===$&&wi(F,H,$,ce)}function ii(F,H){let $=F[2];(3&$)===H&&($&=2047,$+=1,F[2]=$)}function wi(F,H,$,ce){const Re=ce??-1,et=H.length-1;let Tt=0;for(let zt=void 0!==ce?65535&F[18]:0;zt<et;zt++)if("number"==typeof H[zt+1]){if(Tt=H[zt],null!=ce&&Tt>=ce)break}else H[zt]<0&&(F[18]+=65536),(Tt<Re||-1==Re)&&(Pi(F,$,H,zt),F[18]=(4294901760&F[18])+zt+2),zt++}function Pi(F,H,$,ce){const be=$[ce]<0,Re=$[ce+1],Tt=F[be?-$[ce]:$[ce]];if(be){if(F[2]>>11<F[18]>>16&&(3&F[2])===H){F[2]+=2048;try{Re.call(Tt)}finally{}}}else try{Re.call(Tt)}finally{}}class rr{constructor(H,$,ce){this.factory=H,this.resolving=!1,this.canSeeViewProviders=$,this.injectImpl=ce}}function ia(F,H,$){let ce=0;for(;ce<$.length;){const be=$[ce];if("number"==typeof be){if(0!==be)break;ce++;const Re=$[ce++],et=$[ce++],Tt=$[ce++];F.setAttribute(H,et,Tt,Re)}else{const Re=be,et=$[++ce];aa(Re)?F.setProperty(H,Re,et):F.setAttribute(H,Re,et),ce++}}return ce}function Wo(F){return 3===F||4===F||6===F}function aa(F){return 64===F.charCodeAt(0)}function Il(F,H){if(null!==H&&0!==H.length)if(null===F||0===F.length)F=H.slice();else{let $=-1;for(let ce=0;ce<H.length;ce++){const be=H[ce];"number"==typeof be?$=be:0===$||Rd(F,$,be,null,-1===$||2===$?H[++ce]:null)}}return F}function Rd(F,H,$,ce,be){let Re=0,et=F.length;if(-1===H)et=-1;else for(;Re<F.length;){const Tt=F[Re++];if("number"==typeof Tt){if(Tt===H){et=-1;break}if(Tt>H){et=Re-1;break}}}for(;Re<F.length;){const Tt=F[Re];if("number"==typeof Tt)break;if(Tt===$){if(null===ce)return void(null!==be&&(F[Re+1]=be));if(ce===F[Re+1])return void(F[Re+2]=be)}Re++,null!==ce&&Re++,null!==be&&Re++}-1!==et&&(F.splice(et,0,H),Re=et+1),F.splice(Re++,0,$),null!==ce&&F.splice(Re++,0,ce),null!==be&&F.splice(Re++,0,be)}function Ph(F){return-1!==F}function ed(F){return 32767&F}function wu(F,H){let $=function bu(F){return F>>16}(F),ce=H;for(;$>0;)ce=ce[15],$--;return ce}let Ld=!0;function Eu(F){const H=Ld;return Ld=F,H}let Cc=0;const Hs={};function Su(F,H){const $=xc(F,H);if(-1!==$)return $;const ce=H[1];ce.firstCreatePass&&(F.injectorIndex=H.length,Ou(ce.data,F),Ou(H,null),Ou(ce.blueprint,null));const be=Bd(F,H),Re=F.injectorIndex;if(Ph(be)){const et=ed(be),Tt=wu(be,H),zt=Tt[1].data;for(let cn=0;cn<8;cn++)H[Re+cn]=Tt[et+cn]|zt[et+cn]}return H[Re+8]=be,Re}function Ou(F,H){F.push(0,0,0,0,0,0,0,0,H)}function xc(F,H){return-1===F.injectorIndex||F.parent&&F.parent.injectorIndex===F.injectorIndex||null===H[F.injectorIndex+8]?-1:F.injectorIndex}function Bd(F,H){if(F.parent&&-1!==F.parent.injectorIndex)return F.parent.injectorIndex;let $=0,ce=null,be=H;for(;null!==be;){if(ce=Vd(be),null===ce)return-1;if($++,be=be[15],-1!==ce.injectorIndex)return ce.injectorIndex|$<<16}return-1}function nd(F,H,$){!function Up(F,H,$){let ce;"string"==typeof $?ce=$.charCodeAt(0)||0:$.hasOwnProperty(yn)&&(ce=$[yn]),null==ce&&(ce=$[yn]=Cc++);const be=255&ce;H.data[F+(be>>5)]|=1<<be}(F,H,$)}function bc(F,H,$){if($&ke.Optional||void 0!==F)return F;j()}function wc(F,H,$,ce){if($&ke.Optional&&void 0===ce&&(ce=null),!($&(ke.Self|ke.Host))){const be=F[9],Re=xe(void 0);try{return be?be.get(H,ce,$&ke.Optional):Te(H,ce,$&ke.Optional)}finally{xe(Re)}}return bc(ce,0,$)}function id(F,H,$,ce=ke.Default,be){if(null!==F){if(1024&H[2]){const et=function Tu(F,H,$,ce,be){let Re=F,et=H;for(;null!==Re&&null!==et&&1024&et[2]&&!(256&et[2]);){const Tt=Du(Re,et,$,ce|ke.Self,Hs);if(Tt!==Hs)return Tt;let zt=Re.parent;if(!zt){const cn=et[21];if(cn){const Fn=cn.get($,Hs,ce);if(Fn!==Hs)return Fn}zt=Vd(et),et=et[15]}Re=zt}return be}(F,H,$,ce,Hs);if(et!==Hs)return et}const Re=Du(F,H,$,ce,Hs);if(Re!==Hs)return Re}return wc(H,$,ce,be)}function Du(F,H,$,ce,be){const Re=function rd(F){if("string"==typeof F)return F.charCodeAt(0)||0;const H=F.hasOwnProperty(yn)?F[yn]:void 0;return"number"==typeof H?H>=0?255&H:zs:H}($);if("function"==typeof Re){if(!oa(H,F,ce))return ce&ke.Host?bc(be,0,ce):wc(H,$,ce,be);try{const et=Re(ce);if(null!=et||ce&ke.Optional)return et;j()}finally{wa()}}else if("number"==typeof Re){let et=null,Tt=xc(F,H),zt=-1,cn=ce&ke.Host?H[16][6]:null;for((-1===Tt||ce&ke.SkipSelf)&&(zt=-1===Tt?Bd(F,H):H[Tt+8],-1!==zt&&Fd(ce,!1)?(et=H[1],Tt=ed(zt),H=wu(zt,H)):Tt=-1);-1!==Tt;){const Fn=H[1];if(Is(Re,Tt,Fn.data)){const ri=Ec(Tt,H,$,et,ce,cn);if(ri!==Hs)return ri}zt=H[Tt+8],-1!==zt&&Fd(ce,H[1].data[Tt+8]===cn)&&Is(Re,Tt,H)?(et=Fn,Tt=ed(zt),H=wu(zt,H)):Tt=-1}}return be}function Ec(F,H,$,ce,be,Re){const et=H[1],Tt=et.data[F+8],Fn=ql(Tt,et,$,null==ce?Yn(Tt)&&Ld:ce!=et&&0!=(3&Tt.type),be&ke.Host&&Re===Tt);return null!==Fn?ws(H,et,Fn,Tt):Hs}function ql(F,H,$,ce,be){const Re=F.providerIndexes,et=H.data,Tt=1048575&Re,zt=F.directiveStart,Fn=Re>>20,Di=be?Tt+Fn:F.directiveEnd;for(let Ni=ce?Tt:Tt+Fn;Ni<Di;Ni++){const ar=et[Ni];if(Ni<zt&&$===ar||Ni>=zt&&ar.type===$)return Ni}if(be){const Ni=et[zt];if(Ni&&Vt(Ni)&&Ni.type===$)return zt}return null}function ws(F,H,$,ce){let be=F[$];const Re=H.data;if(function Cr(F){return F instanceof rr}(be)){const et=be;et.resolving&&function K(F,H){const $=H?`. Dependency path: ${H.join(" > ")} > ${F}`:"";throw new W(-200,`Circular dependency in DI detected for ${F}${$}`)}(function U(F){return"function"==typeof F?F.name||F.toString():"object"==typeof F&&null!=F&&"function"==typeof F.type?F.type.name||F.type.toString():V(F)}(Re[$]));const Tt=Eu(et.canSeeViewProviders);et.resolving=!0;const zt=et.injectImpl?xe(et.injectImpl):null;oa(F,ce,ke.Default);try{be=F[$]=et.factory(void 0,Re,F,ce),H.firstCreatePass&&$>=ce.directiveStart&&function Qe(F,H,$){const{ngOnChanges:ce,ngOnInit:be,ngDoCheck:Re}=H.type.prototype;if(ce){const et=So(H);($.preOrderHooks||($.preOrderHooks=[])).push(F,et),($.preOrderCheckHooks||($.preOrderCheckHooks=[])).push(F,et)}be&&($.preOrderHooks||($.preOrderHooks=[])).push(0-F,be),Re&&(($.preOrderHooks||($.preOrderHooks=[])).push(F,Re),($.preOrderCheckHooks||($.preOrderCheckHooks=[])).push(F,Re))}($,Re[$],H)}finally{null!==zt&&xe(zt),Eu(Tt),et.resolving=!1,wa()}}return be}function Is(F,H,$){return!!($[H+(F>>5)]&1<<F)}function Fd(F,H){return!(F&ke.Self||F&ke.Host&&H)}class Es{constructor(H,$){this._tNode=H,this._lView=$}get(H,$,ce){return id(this._tNode,this._lView,H,li(ce),$)}}function zs(){return new Es(Qn(),at())}function Ja(F){return An(()=>{const H=F.prototype.constructor,$=H[_r]||vl(H),ce=Object.prototype;let be=Object.getPrototypeOf(F.prototype).constructor;for(;be&&be!==ce;){const Re=be[_r]||vl(be);if(Re&&Re!==$)return Re;be=Object.getPrototypeOf(be)}return Re=>new Re})}function vl(F){return k(F)?()=>{const H=vl(T(F));return H&&H()}:qo(F)}function Vd(F){const H=F[1],$=H.type;return 2===$?H.declTNode:1===$?F[6]:null}function od(F){return function Zp(F,H){if("class"===H)return F.classes;if("style"===H)return F.styles;const $=F.attrs;if($){const ce=$.length;let be=0;for(;be<ce;){const Re=$[be];if(Wo(Re))break;if(0===Re)be+=2;else if("number"==typeof Re)for(be++;be<ce&&"string"==typeof $[be];)be++;else{if(Re===H)return $[be+1];be+=2}}}return null}(Qn(),F)}const yl="__parameters__";function el(F,H,$){return An(()=>{const ce=function Ql(F){return function(...$){if(F){const ce=F(...$);for(const be in ce)this[be]=ce[be]}}}(H);function be(...Re){if(this instanceof be)return ce.apply(this,Re),this;const et=new be(...Re);return Tt.annotation=et,Tt;function Tt(zt,cn,Fn){const ri=zt.hasOwnProperty(yl)?zt[yl]:Object.defineProperty(zt,yl,{value:[]})[yl];for(;ri.length<=Fn;)ri.push(null);return(ri[Fn]=ri[Fn]||[]).push(et),zt}}return $&&(be.prototype=Object.create($.prototype)),be.prototype.ngMetadataName=F,be.annotationCls=be,be})}class ya{constructor(H,$){this._desc=H,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof $?this.__NG_ELEMENT_ID__=$:void 0!==$&&(this.\u0275prov=Ee({token:this,providedIn:$.providedIn||"root",factory:$.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ss(F,H){F.forEach($=>Array.isArray($)?Ss($,H):H($))}function dd(F,H,$){H>=F.length?F.push($):F.splice(H,0,$)}function cd(F,H){return H>=F.length-1?F.pop():F.splice(H,1)[0]}function Nd(F,H){const $=[];for(let ce=0;ce<F;ce++)$.push(H);return $}function hs(F,H,$){let ce=eu(F,H);return ce>=0?F[1|ce]=$:(ce=~ce,function Dc(F,H,$,ce){let be=F.length;if(be==H)F.push($,ce);else if(1===be)F.push(ce,F[0]),F[0]=$;else{for(be--,F.push(F[be-1],F[be]);be>H;)F[be]=F[be-2],be--;F[H]=$,F[H+1]=ce}}(F,ce,H,$)),ce}function dl(F,H){const $=eu(F,H);if($>=0)return F[1|$]}function eu(F,H){return function Tc(F,H,$){let ce=0,be=F.length>>$;for(;be!==ce;){const Re=ce+(be-ce>>1),et=F[Re<<$];if(H===et)return Re<<$;et>H?be=Re:ce=Re+1}return~(be<<$)}(F,H,1)}const Au=Vn(el("Optional"),8),nu=Vn(el("SkipSelf"),4);var Ks=(()=>((Ks=Ks||{})[Ks.Important=1]="Important",Ks[Ks.DashCase=2]="DashCase",Ks))();const ig=new Map;let nm=0;const og="__ngContext__";function rs(F,H){hn(H)?(F[og]=H[20],function im(F){ig.set(F[20],F)}(H)):F[og]=H}function Uh(F,H){return undefined(F,H)}function Ud(F){const H=F[3];return sn(H)?H[3]:H}function Zh(F){return dg(F[13])}function Kh(F){return dg(F[4])}function dg(F){for(;null!==F&&!sn(F);)F=F[4];return F}function Ru(F,H,$,ce,be){if(null!=ce){let Re,et=!1;sn(ce)?Re=ce:hn(ce)&&(et=!0,ce=ce[0]);const Tt=Go(ce);0===F&&null!==$?null==be?qh(H,$,Tt):js(H,$,Tt,be||null,!0):1===F&&null!==$?js(H,$,Tt,be||null,!0):2===F?function md(F,H,$){const ce=Zd(F,H);ce&&function dm(F,H,$,ce){F.removeChild(H,$,ce)}(F,ce,H,$)}(H,Tt,et):3===F&&H.destroyNode(Tt),null!=Re&&function _d(F,H,$,ce,be){const Re=$[7];Re!==Go($)&&Ru(H,F,ce,Re,be);for(let Tt=10;Tt<$.length;Tt++){const zt=$[Tt];Rs(zt[1],zt,F,H,ce,Re)}}(H,F,Re,$,be)}}function jh(F,H,$){return F.createElement(H,$)}function $h(F,H){const $=F[9],ce=$.indexOf(H),be=H[3];512&H[2]&&(H[2]&=-513,Kt(be,-1)),$.splice(ce,1)}function Cl(F,H){if(F.length<=10)return;const $=10+H,ce=F[$];if(ce){const be=ce[17];null!==be&&be!==F&&$h(be,ce),H>0&&(F[$-1][4]=ce[4]);const Re=cd(F,10+H);!function sm(F,H){Rs(F,H,H[11],2,null,null),H[0]=null,H[6]=null}(ce[1],ce);const et=Re[19];null!==et&&et.detachView(Re[1]),ce[3]=null,ce[4]=null,ce[2]&=-65}return ce}function Yh(F,H){if(!(128&H[2])){const $=H[11];$.destroyNode&&Rs(F,H,$,3,null,null),function hg(F){let H=F[13];if(!H)return pg(F[1],F);for(;H;){let $=null;if(hn(H))$=H[13];else{const ce=H[10];ce&&($=ce)}if(!$){for(;H&&!H[4]&&H!==F;)hn(H)&&pg(H[1],H),H=H[3];null===H&&(H=F),hn(H)&&pg(H[1],H),$=H&&H[4]}H=$}}(H)}}function pg(F,H){if(!(128&H[2])){H[2]&=-65,H[2]|=128,function gg(F,H){let $;if(null!=F&&null!=($=F.destroyHooks))for(let ce=0;ce<$.length;ce+=2){const be=H[$[ce]];if(!(be instanceof rr)){const Re=$[ce+1];if(Array.isArray(Re))for(let et=0;et<Re.length;et+=2){const Tt=be[Re[et]],zt=Re[et+1];try{zt.call(Tt)}finally{}}else try{Re.call(be)}finally{}}}}(F,H),function um(F,H){const $=F.cleanup,ce=H[7];let be=-1;if(null!==$)for(let Re=0;Re<$.length-1;Re+=2)if("string"==typeof $[Re]){const et=$[Re+3];et>=0?ce[be=et]():ce[be=-et].unsubscribe(),Re+=2}else{const et=ce[be=$[Re+1]];$[Re].call(et)}if(null!==ce){for(let Re=be+1;Re<ce.length;Re++)(0,ce[Re])();H[7]=null}}(F,H),1===H[1].type&&H[11].destroy();const $=H[17];if(null!==$&&sn(H[3])){$!==H[3]&&$h($,H);const ce=H[19];null!==ce&&ce.detachView(F)}!function rm(F){ig.delete(F[20])}(H)}}function Xh(F,H,$){return function _o(F,H,$){let ce=H;for(;null!==ce&&40&ce.type;)ce=(H=ce).parent;if(null===ce)return $[0];{const{componentOffset:be}=ce;if(be>-1){const{encapsulation:Re}=F.data[ce.directiveStart+be];if(Re===On.None||Re===On.Emulated)return null}return ta(ce,$)}}(F,H.parent,$)}function js(F,H,$,ce,be){F.insertBefore(H,$,ce,be)}function qh(F,H,$){F.appendChild(H,$)}function fg(F,H,$,ce,be){null!==ce?js(F,H,$,ce,be):qh(F,H,$)}function Zd(F,H){return F.parentNode(H)}function Jh(F,H,$){return vg(F,H,$)}let Fc,bg,Nc,vg=function _g(F,H,$){return 40&F.type?ta(F,$):null};function Fa(F,H,$,ce){const be=Xh(F,ce,H),Re=H[11],Tt=Jh(ce.parent||H[6],ce,H);if(null!=be)if(Array.isArray($))for(let zt=0;zt<$.length;zt++)fg(Re,be,$[zt],Tt,!1);else fg(Re,be,$,Tt,!1)}function tl(F,H){if(null!==H){const $=H.type;if(3&$)return ta(H,F);if(4&$)return Qh(-1,F[H.index]);if(8&$){const ce=H.child;if(null!==ce)return tl(F,ce);{const be=F[H.index];return sn(be)?Qh(-1,be):Go(be)}}if(32&$)return Uh(H,F)()||Go(F[H.index]);{const ce=wn(F,H);return null!==ce?Array.isArray(ce)?ce[0]:tl(Ud(F[16]),ce):tl(F,H.next)}}return null}function wn(F,H){return null!==H?F[16][6].projection[H.projection]:null}function Qh(F,H){const $=10+F+1;if($<H.length){const ce=H[$],be=ce[1].firstChild;if(null!==be)return tl(ce,be)}return H[7]}function ks(F,H,$,ce,be,Re,et){for(;null!=$;){const Tt=ce[$.index],zt=$.type;if(et&&0===H&&(Tt&&rs(Go(Tt),ce),$.flags|=2),32!=(32&$.flags))if(8&zt)ks(F,H,$.child,ce,be,Re,!1),Ru(H,F,be,Tt,Re);else if(32&zt){const cn=Uh($,ce);let Fn;for(;Fn=cn();)Ru(H,F,be,Fn,Re);Ru(H,F,be,Tt,Re)}else 16&zt?Cg(F,H,ce,$,be,Re):Ru(H,F,be,Tt,Re);$=et?$.projectionNext:$.next}}function Rs(F,H,$,ce,be,Re){ks($,ce,F.firstChild,H,be,Re,!1)}function Cg(F,H,$,ce,be,Re){const et=$[16],zt=et[6].projection[ce.projection];if(Array.isArray(zt))for(let cn=0;cn<zt.length;cn++)Ru(H,F,be,zt[cn],Re);else ks(F,H,zt,et[3],be,Re,!0)}function vd(F,H,$){""===$?F.removeAttribute(H,"class"):F.setAttribute(H,"class",$)}function xl(F,H,$){const{mergedAttrs:ce,classes:be,styles:Re}=$;null!==ce&&ia(F,H,ce),null!==be&&vd(F,H,be),null!==Re&&function xg(F,H,$){F.setAttribute(H,"style",$)}(F,H,Re)}function Lu(F){return function yd(){if(void 0===Fc&&(Fc=null,St.trustedTypes))try{Fc=St.trustedTypes.createPolicy("angular",{createHTML:F=>F,createScript:F=>F,createScriptURL:F=>F})}catch{}return Fc}()?.createHTML(F)||F}function wg(F){bg=F}function tp(){if(void 0===Nc&&(Nc=null,St.trustedTypes))try{Nc=St.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:F=>F,createScript:F=>F,createScriptURL:F=>F})}catch{}return Nc}function Hc(F){return tp()?.createHTML(F)||F}function Sg(F){return tp()?.createScriptURL(F)||F}class Cd{constructor(H){this.changingThisBreaksApplicationSecurity=H}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${B})`}}class pm extends Cd{getTypeName(){return"HTML"}}class x_ extends Cd{getTypeName(){return"Style"}}class Og extends Cd{getTypeName(){return"Script"}}class gm extends Cd{getTypeName(){return"URL"}}class fm extends Cd{getTypeName(){return"ResourceURL"}}function ru(F){return F instanceof Cd?F.changingThisBreaksApplicationSecurity:F}function Kd(F,H){const $=function Wy(F){return F instanceof Cd&&F.getTypeName()||null}(F);if(null!=$&&$!==H){if("ResourceURL"===$&&"URL"===H)return!0;throw new Error(`Required a safe ${H}, got a ${$} (see ${B})`)}return $===H}function Dg(F){return new pm(F)}function mm(F){return new x_(F)}function Tg(F){return new Og(F)}function Bu(F){return new gm(F)}function zc(F){return new fm(F)}class ip{constructor(H){this.inertDocumentHelper=H}getInertBodyElement(H){H="<body><remove></remove>"+H;try{const $=(new window.DOMParser).parseFromString(Lu(H),"text/html").body;return null===$?this.inertDocumentHelper.getInertBodyElement(H):($.removeChild($.firstChild),$)}catch{return null}}}class Gd{constructor(H){if(this.defaultDoc=H,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const $=this.inertDocument.createElement("html");this.inertDocument.appendChild($);const ce=this.inertDocument.createElement("body");$.appendChild(ce)}}getInertBodyElement(H){const $=this.inertDocument.createElement("template");if("content"in $)return $.innerHTML=Lu(H),$;const ce=this.inertDocument.createElement("body");return ce.innerHTML=Lu(H),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(ce),ce}stripCustomNsAttrs(H){const $=H.attributes;for(let be=$.length-1;0<be;be--){const et=$.item(be).name;("xmlns:ns1"===et||0===et.indexOf("ns1:"))&&H.removeAttribute(et)}let ce=H.firstChild;for(;ce;)ce.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(ce),ce=ce.nextSibling}}const rp=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Pl(F){return(F=String(F)).match(rp)?F:"unsafe:"+F}function kl(F){const H={};for(const $ of F.split(","))H[$]=!0;return H}function Uc(...F){const H={};for(const $ of F)for(const ce in $)$.hasOwnProperty(ce)&&(H[ce]=!0);return H}const Mg=kl("area,br,col,hr,img,wbr"),op=kl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ap=kl("rp,rt"),Zc=Uc(Mg,Uc(op,kl("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")),Uc(ap,kl("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")),Uc(ap,op)),L=kl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),je=Uc(L,kl("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"),kl("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")),ui=kl("script,style,template");class Ti{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(H){let $=H.firstChild,ce=!0;for(;$;)if($.nodeType===Node.ELEMENT_NODE?ce=this.startElement($):$.nodeType===Node.TEXT_NODE?this.chars($.nodeValue):this.sanitizedSomething=!0,ce&&$.firstChild)$=$.firstChild;else for(;$;){$.nodeType===Node.ELEMENT_NODE&&this.endElement($);let be=this.checkClobberedElement($,$.nextSibling);if(be){$=be;break}$=this.checkClobberedElement($,$.parentNode)}return this.buf.join("")}startElement(H){const $=H.nodeName.toLowerCase();if(!Zc.hasOwnProperty($))return this.sanitizedSomething=!0,!ui.hasOwnProperty($);this.buf.push("<"),this.buf.push($);const ce=H.attributes;for(let be=0;be<ce.length;be++){const Re=ce.item(be),et=Re.name,Tt=et.toLowerCase();if(!je.hasOwnProperty(Tt)){this.sanitizedSomething=!0;continue}let zt=Re.value;L[Tt]&&(zt=Pl(zt)),this.buf.push(" ",et,'="',Fu(zt),'"')}return this.buf.push(">"),!0}endElement(H){const $=H.nodeName.toLowerCase();Zc.hasOwnProperty($)&&!Mg.hasOwnProperty($)&&(this.buf.push("</"),this.buf.push($),this.buf.push(">"))}chars(H){this.buf.push(Fu(H))}checkClobberedElement(H,$){if($&&(H.compareDocumentPosition($)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${H.outerHTML}`);return $}}const ou=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ls=/([^\#-~ |!])/g;function Fu(F){return F.replace(/&/g,"&amp;").replace(ou,function(H){return"&#"+(1024*(H.charCodeAt(0)-55296)+(H.charCodeAt(1)-56320)+65536)+";"}).replace(Ls,function(H){return"&#"+H.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Rl;function _m(F,H){let $=null;try{Rl=Rl||function Ig(F){const H=new Gd(F);return function Wc(){try{return!!(new window.DOMParser).parseFromString(Lu(""),"text/html")}catch{return!1}}()?new ip(H):H}(F);let ce=H?String(H):"";$=Rl.getInertBodyElement(ce);let be=5,Re=ce;do{if(0===be)throw new Error("Failed to sanitize html because the input is unstable");be--,ce=Re,Re=$.innerHTML,$=Rl.getInertBodyElement(ce)}while(ce!==Re);return Lu((new Ti).sanitizeChildren(ys($)||$))}finally{if($){const ce=ys($)||$;for(;ce.firstChild;)ce.removeChild(ce.firstChild)}}}function ys(F){return"content"in F&&function $s(F){return F.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===F.nodeName}(F)?F.content:null}var Va=(()=>((Va=Va||{})[Va.NONE=0]="NONE",Va[Va.HTML=1]="HTML",Va[Va.STYLE=2]="STYLE",Va[Va.SCRIPT=3]="SCRIPT",Va[Va.URL=4]="URL",Va[Va.RESOURCE_URL=5]="RESOURCE_URL",Va))();function Pg(F){const H=jd();return H?Hc(H.sanitize(Va.HTML,F)||""):Kd(F,"HTML")?Hc(ru(F)):_m(function Eg(){return void 0!==bg?bg:typeof document<"u"?document:void 0}(),V(F))}function Xa(F){const H=jd();return H?H.sanitize(Va.URL,F)||"":Kd(F,"URL")?ru(F):Pl(V(F))}function Kc(F){const H=jd();if(H)return Sg(H.sanitize(Va.RESOURCE_URL,F)||"");if(Kd(F,"ResourceURL"))return Sg(ru(F));throw new W(904,!1)}function w_(F,H,$){return function vm(F,H){return"src"===H&&("embed"===F||"frame"===F||"iframe"===F||"media"===F||"script"===F)||"href"===H&&("base"===F||"link"===F)?Kc:Xa}(H,$)(F)}function jd(){const F=at();return F&&F[12]}const Bl=new ya("ENVIRONMENT_INITIALIZER"),ym=new ya("INJECTOR",-1),kg=new ya("INJECTOR_DEF_TYPES");class au{get(H,$=ct){if($===ct){const ce=new Error(`NullInjectorError: No provider for ${E(H)}!`);throw ce.name="NullInjectorError",ce}return $}}function Ie(F){return{\u0275providers:F}}function Ce(...F){return{\u0275providers:ve(0,F),\u0275fromNgModule:!0}}function ve(F,...H){const $=[],ce=new Set;let be;return Ss(H,Re=>{const et=Re;Me(et,$,[],ce)&&(be||(be=[]),be.push(et))}),void 0!==be&&Se(be,$),$}function Se(F,H){for(let $=0;$<F.length;$++){const{providers:be}=F[$];Ge(be,Re=>{H.push(Re)})}}function Me(F,H,$,ce){if(!(F=T(F)))return!1;let be=null,Re=ft(F);const et=!Re&&Vr(F);if(Re||et){if(et&&!et.standalone)return!1;be=F}else{const zt=F.ngModule;if(Re=ft(zt),!Re)return!1;be=zt}const Tt=ce.has(be);if(et){if(Tt)return!1;if(ce.add(be),et.dependencies){const zt="function"==typeof et.dependencies?et.dependencies():et.dependencies;for(const cn of zt)Me(cn,H,$,ce)}}else{if(!Re)return!1;{if(null!=Re.imports&&!Tt){let cn;ce.add(be);try{Ss(Re.imports,Fn=>{Me(Fn,H,$,ce)&&(cn||(cn=[]),cn.push(Fn))})}finally{}void 0!==cn&&Se(cn,H)}if(!Tt){const cn=qo(be)||(()=>new be);H.push({provide:be,useFactory:cn,deps:ni},{provide:kg,useValue:be,multi:!0},{provide:Bl,useValue:()=>_n(be),multi:!0})}const zt=Re.providers;null==zt||Tt||Ge(zt,Fn=>{H.push(Fn)})}}return be!==F&&void 0!==F.providers}function Ge(F,H){for(let $ of F)R($)&&($=$.\u0275providers),Array.isArray($)?Ge($,H):H($)}const Et=b({provide:String,useValue:b});function kt(F){return null!==F&&"object"==typeof F&&Et in F}function hi(F){return"function"==typeof F}const Wi=new ya("Set Injector scope."),qi={},ur={};let br;function eo(){return void 0===br&&(br=new au),br}class ao{}class Io extends ao{get destroyed(){return this._destroyed}constructor(H,$,ce,be){super(),this.parent=$,this.source=ce,this.scopes=be,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Rg(H,et=>this.processProvider(et)),this.records.set(ym,Yd(void 0,this)),be.has("environment")&&this.records.set(ao,Yd(void 0,this));const Re=this.records.get(Wi);null!=Re&&"string"==typeof Re.value&&this.scopes.add(Re.value),this.injectorDefTypes=new Set(this.get(kg.multi,ni,ke.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const H of this._ngOnDestroyHooks)H.ngOnDestroy();for(const H of this._onDestroyHooks)H()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(H){this._onDestroyHooks.push(H)}runInContext(H){this.assertNotDestroyed();const $=Ft(this),ce=xe(void 0);try{return H()}finally{Ft($),xe(ce)}}get(H,$=ct,ce=ke.Default){this.assertNotDestroyed(),ce=li(ce);const be=Ft(this),Re=xe(void 0);try{if(!(ce&ke.SkipSelf)){let Tt=this.records.get(H);if(void 0===Tt){const zt=function sp(F){return"function"==typeof F||"object"==typeof F&&F instanceof ya}(H)&&re(H);Tt=zt&&this.injectableDefInScope(zt)?Yd(es(H),qi):null,this.records.set(H,Tt)}if(null!=Tt)return this.hydrate(H,Tt)}return(ce&ke.Self?eo():this.parent).get(H,$=ce&ke.Optional&&$===ct?null:$)}catch(et){if("NullInjectorError"===et.name){if((et[Dt]=et[Dt]||[]).unshift(E(H)),be)throw et;return function Hn(F,H,$,ce){const be=F[Dt];throw H[ht]&&be.unshift(H[ht]),F.message=function Sn(F,H,$,ce=null){F=F&&"\n"===F.charAt(0)&&"\u0275"==F.charAt(1)?F.slice(2):F;let be=E(H);if(Array.isArray(H))be=H.map(E).join(" -> ");else if("object"==typeof H){let Re=[];for(let et in H)if(H.hasOwnProperty(et)){let Tt=H[et];Re.push(et+":"+("string"==typeof Tt?JSON.stringify(Tt):E(Tt)))}be=`{${Re.join(", ")}}`}return`${$}${ce?"("+ce+")":""}[${be}]: ${F.replace(Ht,"\n  ")}`}("\n"+F.message,be,$,ce),F.ngTokenPath=be,F[Dt]=null,F}(et,H,"R3InjectorError",this.source)}throw et}finally{xe(Re),Ft(be)}}resolveInjectorInitializers(){const H=Ft(this),$=xe(void 0);try{const ce=this.get(Bl.multi,ni,ke.Self);for(const be of ce)be()}finally{Ft(H),xe($)}}toString(){const H=[],$=this.records;for(const ce of $.keys())H.push(E(ce));return`R3Injector[${H.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new W(205,!1)}processProvider(H){let $=hi(H=T(H))?H:T(H&&H.provide);const ce=function $d(F){return kt(F)?Yd(void 0,F.useValue):Yd(Fl(F),qi)}(H);if(hi(H)||!0!==H.multi)this.records.get($);else{let be=this.records.get($);be||(be=Yd(void 0,qi,!0),be.factory=()=>Ai(be.multi),this.records.set($,be)),$=H,be.multi.push(H)}this.records.set($,ce)}hydrate(H,$){return $.value===qi&&($.value=ur,$.value=$.factory()),"object"==typeof $.value&&$.value&&function Cm(F){return null!==F&&"object"==typeof F&&"function"==typeof F.ngOnDestroy}($.value)&&this._ngOnDestroyHooks.add($.value),$.value}injectableDefInScope(H){if(!H.providedIn)return!1;const $=T(H.providedIn);return"string"==typeof $?"any"===$||this.scopes.has($):this.injectorDefTypes.has($)}}function es(F){const H=re(F),$=null!==H?H.factory:qo(F);if(null!==$)return $;if(F instanceof ya)throw new W(204,!1);if(F instanceof Function)return function su(F){const H=F.length;if(H>0)throw Nd(H,"?"),new W(204,!1);const $=function Pe(F){const H=F&&(F[tt]||F[mt]);if(H){const $=function Ne(F){if(F.hasOwnProperty("name"))return F.name;const H=(""+F).match(/^function\s*([^\s(]+)/);return null===H?"":H[1]}(F);return console.warn(`DEPRECATED: DI is instantiating a token "${$}" 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 "${$}" class.`),H}return null}(F);return null!==$?()=>$.factory(F):()=>new F}(F);throw new W(204,!1)}function Fl(F,H,$){let ce;if(hi(F)){const be=T(F);return qo(be)||es(be)}if(kt(F))ce=()=>T(F.useValue);else if(function Cn(F){return!(!F||!F.useFactory)}(F))ce=()=>F.useFactory(...Ai(F.deps||[]));else if(function jt(F){return!(!F||!F.useExisting)}(F))ce=()=>_n(T(F.useExisting));else{const be=T(F&&(F.useClass||F.provide));if(!function E_(F){return!!F.deps}(F))return qo(be)||es(be);ce=()=>new be(...Ai(F.deps))}return ce}function Yd(F,H,$=!1){return{factory:F,value:H,multi:$?[]:void 0}}function Rg(F,H){for(const $ of F)Array.isArray($)?Rg($,H):$&&R($)?Rg($.\u0275providers,H):H($)}class h1{}class S_{}class Ky{resolveComponentFactory(H){throw function p1(F){const H=Error(`No component factory found for ${E(F)}. Did you add it to @NgModule.entryComponents?`);return H.ngComponent=F,H}(H)}}let Gc=(()=>{class F{}return F.NULL=new Ky,F})();function f1(){return Lg(Qn(),at())}function Lg(F,H){return new xm(ta(F,H))}let xm=(()=>{class F{constructor($){this.nativeElement=$}}return F.__NG_ELEMENT_ID__=f1,F})();function m1(F){return F instanceof xm?F.nativeElement:F}class Pw{}let _1=(()=>{class F{}return F.__NG_ELEMENT_ID__=()=>function v1(){const F=at(),$=$o(Qn().index,F);return(hn($)?$:F)[11]}(),F})(),y1=(()=>{class F{}return F.\u0275prov=Ee({token:F,providedIn:"root",factory:()=>null}),F})();class bm{constructor(H){this.full=H,this.major=H.split(".")[0],this.minor=H.split(".")[1],this.patch=H.split(".").slice(2).join(".")}}const kw=new bm("15.1.5"),Eo={};function O_(F){return F.ngOriginalError}class lp{constructor(){this._console=console}handleError(H){const $=this._findOriginalError(H);this._console.error("ERROR",H),$&&this._console.error("ORIGINAL ERROR",$)}_findOriginalError(H){let $=H&&O_(H);for(;$&&O_($);)$=O_($);return $||null}}function Yc(F){return F.ownerDocument.defaultView}function Xd(F){return F instanceof Function?F():F}function Fw(F,H,$){let ce=F.length;for(;;){const be=F.indexOf(H,$);if(-1===be)return be;if(0===be||F.charCodeAt(be-1)<=32){const Re=H.length;if(be+Re===ce||F.charCodeAt(be+Re)<=32)return be}$=be+1}}const Vw="ng-template";function qa(F,H,$){let ce=0;for(;ce<F.length;){let be=F[ce++];if($&&"class"===be){if(be=F[ce],-1!==Fw(be.toLowerCase(),H,0))return!0}else if(1===be){for(;ce<F.length&&"string"==typeof(be=F[ce++]);)if(be.toLowerCase()===H)return!0;return!1}}return!1}function Gy(F){return 4===F.type&&F.value!==Vw}function E1(F,H,$){return H===(4!==F.type||$?F.value:Vw)}function S1(F,H,$){let ce=4;const be=F.attrs||[],Re=function Nw(F){for(let H=0;H<F.length;H++)if(Wo(F[H]))return H;return F.length}(be);let et=!1;for(let Tt=0;Tt<H.length;Tt++){const zt=H[Tt];if("number"!=typeof zt){if(!et)if(4&ce){if(ce=2|1&ce,""!==zt&&!E1(F,zt,$)||""===zt&&1===H.length){if(Vu(ce))return!1;et=!0}}else{const cn=8&ce?zt:H[++Tt];if(8&ce&&null!==F.attrs){if(!qa(F.attrs,cn,$)){if(Vu(ce))return!1;et=!0}continue}const ri=D_(8&ce?"class":zt,be,Gy(F),$);if(-1===ri){if(Vu(ce))return!1;et=!0;continue}if(""!==cn){let Di;Di=ri>Re?"":be[ri+1].toLowerCase();const Ni=8&ce?Di:null;if(Ni&&-1!==Fw(Ni,cn,0)||2&ce&&cn!==Di){if(Vu(ce))return!1;et=!0}}}}else{if(!et&&!Vu(ce)&&!Vu(zt))return!1;if(et&&Vu(zt))continue;et=!1,ce=zt|1&ce}}return Vu(ce)||et}function Vu(F){return 0==(1&F)}function D_(F,H,$,ce){if(null===H)return-1;let be=0;if(ce||!$){let Re=!1;for(;be<H.length;){const et=H[be];if(et===F)return be;if(3===et||6===et)Re=!0;else{if(1===et||2===et){let Tt=H[++be];for(;"string"==typeof Tt;)Tt=H[++be];continue}if(4===et)break;if(0===et){be+=4;continue}}be+=Re?1:2}return-1}return function Hw(F,H){let $=F.indexOf(4);if($>-1)for($++;$<F.length;){const ce=F[$];if("number"==typeof ce)return-1;if(ce===H)return $;$++}return-1}(H,F)}function T_(F,H,$=!1){for(let ce=0;ce<H.length;ce++)if(S1(F,H[ce],$))return!0;return!1}function zw(F,H){e:for(let $=0;$<H.length;$++){const ce=H[$];if(F.length===ce.length){for(let be=0;be<F.length;be++)if(F[be]!==ce[be])continue e;return!0}}return!1}function Ww(F,H){return F?":not("+H.trim()+")":H}function M_(F){let H=F[0],$=1,ce=2,be="",Re=!1;for(;$<F.length;){let et=F[$];if("string"==typeof et)if(2&ce){const Tt=F[++$];be+="["+et+(Tt.length>0?'="'+Tt+'"':"")+"]"}else 8&ce?be+="."+et:4&ce&&(be+=" "+et);else""!==be&&!Vu(et)&&(H+=Ww(Re,be),be=""),ce=et,Re=Re||!Vu(ce);$++}return""!==be&&(H+=Ww(Re,be)),H}const Ao={};function jy(F){Zw(Yt(),at(),Ut()+F,!1)}function Zw(F,H,$,ce){if(!ce)if(3==(3&H[2])){const Re=F.preOrderCheckHooks;null!==Re&&xt(H,Re,$)}else{const Re=F.preOrderHooks;null!==Re&&Tn(H,Re,0,$)}Zt($)}function jw(F,H=null,$=null,ce){const be=Sm(F,H,$,ce);return be.resolveInjectorInitializers(),be}function Sm(F,H=null,$=null,ce,be=new Set){const Re=[$||ni,Ce(F)];return ce=ce||("object"==typeof F?void 0:E(F)),new Io(Re,H||eo(),ce||null,be)}let Xc=(()=>{class F{static create($,ce){if(Array.isArray($))return jw({name:""},ce,$,"");{const be=$.name??"";return jw({name:be},$.parent,$.providers,be)}}}return F.THROW_IF_NOT_FOUND=ct,F.NULL=new au,F.\u0275prov=Ee({token:F,providedIn:"any",factory:()=>_n(ym)}),F.__NG_ELEMENT_ID__=-1,F})();function gp(F,H=ke.Default){const $=at();return null===$?_n(F,H):id(Qn(),$,T(F),H)}function Qw(){throw new Error("invalid")}function L_(F,H){const $=F.contentQueries;if(null!==$)for(let ce=0;ce<$.length;ce+=2){const Re=$[ce+1];if(-1!==Re){const et=F.data[Re];ga($[ce]),et.contentQueries(2,H[Re],Re)}}}function Am(F,H,$,ce,be,Re,et,Tt,zt,cn,Fn){const ri=H.blueprint.slice();return ri[0]=be,ri[2]=76|ce,(null!==Fn||F&&1024&F[2])&&(ri[2]|=1024),Qt(ri),ri[3]=ri[15]=F,ri[8]=$,ri[10]=et||F&&F[10],ri[11]=Tt||F&&F[11],ri[12]=zt||F&&F[12]||null,ri[9]=cn||F&&F[9]||null,ri[6]=Re,ri[20]=function zh(){return nm++}(),ri[21]=Fn,ri[16]=2==H.type?F[16]:ri,ri}function Ng(F,H,$,ce,be){let Re=F.data[H];if(null===Re)Re=function eC(F,H,$,ce,be){const Re=Mi(),et=bi(),zt=F.data[H]=function H1(F,H,$,ce,be,Re){return{type:$,index:ce,insertBeforeIndex:null,injectorIndex:H?H.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:be,attrs:Re,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:H,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,et?Re:Re&&Re.parent,$,H,ce,be);return null===F.firstChild&&(F.firstChild=zt),null!==Re&&(et?null==Re.child&&null!==zt.parent&&(Re.child=zt):null===Re.next&&(Re.next=zt)),zt}(F,H,$,ce,be),function Or(){return Pt.lFrame.inI18n}()&&(Re.flags|=32);else if(64&Re.type){Re.type=$,Re.value=ce,Re.attrs=be;const et=function vi(){const F=Pt.lFrame,H=F.currentTNode;return F.isParent?H:H.parent}();Re.injectorIndex=null===et?-1:et.injectorIndex}return Ei(Re,!0),Re}function Pm(F,H,$,ce){if(0===$)return-1;const be=H.length;for(let Re=0;Re<$;Re++)H.push(ce),F.blueprint.push(ce),F.data.push(null);return be}function tC(F,H,$){Ta(H);try{const ce=F.viewQuery;null!==ce&&lC(1,ce,$);const be=F.template;null!==be&&Hg(F,H,be,1,$),F.firstCreatePass&&(F.firstCreatePass=!1),F.staticContentQueries&&L_(F,H),F.staticViewQueries&&lC(2,F.viewQuery,$);const Re=F.components;null!==Re&&function F1(F,H){for(let $=0;$<H.length;$++)dE(F,H[$])}(H,Re)}catch(ce){throw F.firstCreatePass&&(F.incompleteFirstPass=!0,F.firstCreatePass=!1),ce}finally{H[2]&=-5,Aa()}}function km(F,H,$,ce){const be=H[2];if(128!=(128&be)){Ta(H);try{Qt(H),function Ir(F){return Pt.lFrame.bindingIndex=F}(F.bindingStartIndex),null!==$&&Hg(F,H,$,2,ce);const et=3==(3&be);if(et){const cn=F.preOrderCheckHooks;null!==cn&&xt(H,cn,null)}else{const cn=F.preOrderHooks;null!==cn&&Tn(H,cn,0,null),ii(H,0)}if(function uE(F){for(let H=Zh(F);null!==H;H=Kh(H)){if(!H[2])continue;const $=H[9];for(let ce=0;ce<$.length;ce++){const be=$[ce];512&be[2]||Kt(be[3],1),be[2]|=512}}}(H),function lE(F){for(let H=Zh(F);null!==H;H=Kh(H))for(let $=10;$<H.length;$++){const ce=H[$],be=ce[1];_a(ce)&&km(be,ce,be.template,ce[8])}}(H),null!==F.contentQueries&&L_(F,H),et){const cn=F.contentCheckHooks;null!==cn&&xt(H,cn)}else{const cn=F.contentHooks;null!==cn&&Tn(H,cn,1),ii(H,1)}!function L1(F,H){const $=F.hostBindingOpCodes;if(null!==$)try{for(let ce=0;ce<$.length;ce++){const be=$[ce];if(be<0)Zt(~be);else{const Re=be,et=$[++ce],Tt=$[++ce];Qr(et,Re),Tt(2,H[Re])}}}finally{Zt(-1)}}(F,H);const Tt=F.components;null!==Tt&&function B1(F,H){for(let $=0;$<H.length;$++)Y1(F,H[$])}(H,Tt);const zt=F.viewQuery;if(null!==zt&&lC(2,zt,ce),et){const cn=F.viewCheckHooks;null!==cn&&xt(H,cn)}else{const cn=F.viewHooks;null!==cn&&Tn(H,cn,2),ii(H,2)}!0===F.firstUpdatePass&&(F.firstUpdatePass=!1),H[2]&=-41,512&H[2]&&(H[2]&=-513,Kt(H[3],-1))}finally{Aa()}}}function Hg(F,H,$,ce,be){const Re=Ut(),et=2&ce;try{Zt(-1),et&&H.length>22&&Zw(F,H,22,!1),$(ce,be)}finally{Zt(Re)}}function B_(F,H,$){if(Nn(H)){const be=H.directiveEnd;for(let Re=H.directiveStart;Re<be;Re++){const et=F.data[Re];et.contentQueries&&et.contentQueries(1,$[Re],Re)}}}function zg(F,H,$){ot()&&(function nl(F,H,$,ce){const be=$.directiveStart,Re=$.directiveEnd;Yn($)&&function G1(F,H,$){const ce=ta(H,F),be=eE($),Re=F[10],et=Rm(F,Am(F,be,null,$.onPush?32:16,ce,H,Re,Re.createRenderer(ce,$),null,null,null));F[H.index]=et}(H,$,F.data[be+$.componentOffset]),F.firstCreatePass||Su($,H),rs(ce,H);const et=$.initialInputs;for(let Tt=be;Tt<Re;Tt++){const zt=F.data[Tt],cn=ws(H,F,Tt,$);rs(cn,H),null!==et&&j1(0,Tt-be,cn,zt,0,et),Vt(zt)&&($o($.index,H)[8]=ws(H,F,Tt,$))}}(F,H,$,ta($,H)),64==(64&$.flags)&&Nl(F,H,$))}function nC(F,H,$=ta){const ce=H.localNames;if(null!==ce){let be=H.index+1;for(let Re=0;Re<ce.length;Re+=2){const et=ce[Re+1],Tt=-1===et?$(H,F):F[et];F[be++]=Tt}}}function eE(F){const H=F.tView;return null===H||H.incompleteFirstPass?F.tView=qc(1,null,F.template,F.decls,F.vars,F.directiveDefs,F.pipeDefs,F.viewQuery,F.schemas,F.consts):H}function qc(F,H,$,ce,be,Re,et,Tt,zt,cn){const Fn=22+ce,ri=Fn+be,Di=function V1(F,H){const $=[];for(let ce=0;ce<H;ce++)$.push(ce<F?null:Ao);return $}(Fn,ri),Ni="function"==typeof cn?cn():cn;return Di[1]={type:F,blueprint:Di,template:$,queries:null,viewQuery:Tt,declTNode:H,data:Di.slice().fill(null,Fn),bindingStartIndex:Fn,expandoStartIndex:ri,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 Re?Re():Re,pipeRegistry:"function"==typeof et?et():et,firstChild:null,schemas:zt,consts:Ni,incompleteFirstPass:!1}}function tE(F,H,$,ce){const be=hE(H);null===$?be.push(ce):(be.push($),F.firstCreatePass&&Lm(F).push(ce,be.length-1))}function nE(F,H,$,ce){for(let be in F)if(F.hasOwnProperty(be)){$=null===$?{}:$;const Re=F[be];null===ce?iE($,H,be,Re):ce.hasOwnProperty(be)&&iE($,H,ce[be],Re)}return $}function iE(F,H,$,ce){F.hasOwnProperty($)?F[$].push(H,ce):F[$]=[H,ce]}function Vl(F,H,$,ce,be,Re,et,Tt){const zt=ta(H,$);let Fn,cn=H.inputs;!Tt&&null!=cn&&(Fn=cn[ce])?(Bm(F,$,Fn,ce,be),Yn(H)&&iC($,H.index)):3&H.type&&(ce=function W1(F){return"class"===F?"className":"for"===F?"htmlFor":"formaction"===F?"formAction":"innerHtml"===F?"innerHTML":"readonly"===F?"readOnly":"tabindex"===F?"tabIndex":F}(ce),be=null!=et?et(be,H.value||"",ce):be,Re.setProperty(zt,ce,be))}function iC(F,H){const $=$o(H,F);16&$[2]||($[2]|=32)}function Jc(F,H,$,ce){let be=!1;if(ot()){const Re=null===ce?null:{"":-1},et=function oE(F,H){const $=F.directiveRegistry;let ce=null,be=null;if($)for(let Re=0;Re<$.length;Re++){const et=$[Re];if(T_(H,et.selectors,!1))if(ce||(ce=[]),Vt(et))if(null!==et.findHostDirectiveDefs){const Tt=[];be=be||new Map,et.findHostDirectiveDefs(et,Tt,be),ce.unshift(...Tt,et),rC(F,H,Tt.length)}else ce.unshift(et),rC(F,H,0);else be=be||new Map,et.findHostDirectiveDefs?.(et,ce,be),ce.push(et)}return null===ce?null:[ce,be]}(F,$);let Tt,zt;null===et?Tt=zt=null:[Tt,zt]=et,null!==Tt&&(be=!0,Ys(F,H,$,Tt,Re,zt)),Re&&function U1(F,H,$){if(H){const ce=F.localNames=[];for(let be=0;be<H.length;be+=2){const Re=$[H[be+1]];if(null==Re)throw new W(-301,!1);ce.push(H[be],Re)}}}($,ce,Re)}return $.mergedAttrs=Il($.mergedAttrs,$.attrs),be}function Ys(F,H,$,ce,be,Re){for(let cn=0;cn<ce.length;cn++)nd(Su($,H),F,ce[cn].type);!function aE(F,H,$){F.flags|=1,F.directiveStart=H,F.directiveEnd=H+$,F.providerIndexes=H}($,F.data.length,ce.length);for(let cn=0;cn<ce.length;cn++){const Fn=ce[cn];Fn.providersResolver&&Fn.providersResolver(Fn)}let et=!1,Tt=!1,zt=Pm(F,H,ce.length,null);for(let cn=0;cn<ce.length;cn++){const Fn=ce[cn];$.mergedAttrs=Il($.mergedAttrs,Fn.hostAttrs),K1(F,$,H,zt,Fn),Z1(zt,Fn,be),null!==Fn.contentQueries&&($.flags|=4),(null!==Fn.hostBindings||null!==Fn.hostAttrs||0!==Fn.hostVars)&&($.flags|=64);const ri=Fn.type.prototype;!et&&(ri.ngOnChanges||ri.ngOnInit||ri.ngDoCheck)&&((F.preOrderHooks||(F.preOrderHooks=[])).push($.index),et=!0),!Tt&&(ri.ngOnChanges||ri.ngDoCheck)&&((F.preOrderCheckHooks||(F.preOrderCheckHooks=[])).push($.index),Tt=!0),zt++}!function z1(F,H,$){const be=H.directiveEnd,Re=F.data,et=H.attrs,Tt=[];let zt=null,cn=null;for(let Fn=H.directiveStart;Fn<be;Fn++){const ri=Re[Fn],Di=$?$.get(ri):null,ar=Di?Di.outputs:null;zt=nE(ri.inputs,Fn,zt,Di?Di.inputs:null),cn=nE(ri.outputs,Fn,cn,ar);const yr=null===zt||null===et||Gy(H)?null:$1(zt,Fn,et);Tt.push(yr)}null!==zt&&(zt.hasOwnProperty("class")&&(H.flags|=8),zt.hasOwnProperty("style")&&(H.flags|=16)),H.initialInputs=Tt,H.inputs=zt,H.outputs=cn}(F,$,Re)}function Nl(F,H,$){const ce=$.directiveStart,be=$.directiveEnd,Re=$.index,et=function Br(){return Pt.lFrame.currentDirectiveIndex}();try{Zt(Re);for(let Tt=ce;Tt<be;Tt++){const zt=F.data[Tt],cn=H[Tt];To(Tt),(null!==zt.hostBindings||0!==zt.hostVars||null!==zt.hostAttrs)&&F_(zt,cn)}}finally{Zt(-1),To(et)}}function F_(F,H){null!==F.hostBindings&&F.hostBindings(1,H)}function rC(F,H,$){H.componentOffset=$,(F.components||(F.components=[])).push(H.index)}function Z1(F,H,$){if($){if(H.exportAs)for(let ce=0;ce<H.exportAs.length;ce++)$[H.exportAs[ce]]=F;Vt(H)&&($[""]=F)}}function K1(F,H,$,ce,be){F.data[ce]=be;const Re=be.factory||(be.factory=qo(be.type)),et=new rr(Re,Vt(be),gp);F.blueprint[ce]=et,$[ce]=et,function Ds(F,H,$,ce,be){const Re=be.hostBindings;if(Re){let et=F.hostBindingOpCodes;null===et&&(et=F.hostBindingOpCodes=[]);const Tt=~H.index;(function ts(F){let H=F.length;for(;H>0;){const $=F[--H];if("number"==typeof $&&$<0)return $}return 0})(et)!=Tt&&et.push(Tt),et.push($,ce,Re)}}(F,H,ce,Pm(F,$,be.hostVars,Ao),be)}function Nu(F,H,$,ce,be,Re){const et=ta(F,H);!function oC(F,H,$,ce,be,Re,et){if(null==Re)F.removeAttribute(H,be,$);else{const Tt=null==et?V(Re):et(Re,ce||"",be);F.setAttribute(H,be,Tt,$)}}(H[11],et,Re,F.value,$,ce,be)}function j1(F,H,$,ce,be,Re){const et=Re[H];if(null!==et){const Tt=ce.setInput;for(let zt=0;zt<et.length;){const cn=et[zt++],Fn=et[zt++],ri=et[zt++];null!==Tt?ce.setInput($,ri,cn,Fn):$[Fn]=ri}}}function $1(F,H,$){let ce=null,be=0;for(;be<$.length;){const Re=$[be];if(0!==Re)if(5!==Re){if("number"==typeof Re)break;if(F.hasOwnProperty(Re)){null===ce&&(ce=[]);const et=F[Re];for(let Tt=0;Tt<et.length;Tt+=2)if(et[Tt]===H){ce.push(Re,et[Tt+1],$[be+1]);break}}be+=2}else be+=2;else be+=4}return ce}function sE(F,H,$,ce){return[F,!0,!1,H,null,0,ce,$,null,null]}function Y1(F,H){const $=$o(H,F);if(_a($)){const ce=$[1];48&$[2]?km(ce,$,ce.template,$[8]):$[5]>0&&aC($)}}function aC(F){for(let ce=Zh(F);null!==ce;ce=Kh(ce))for(let be=10;be<ce.length;be++){const Re=ce[be];if(_a(Re))if(512&Re[2]){const et=Re[1];km(et,Re,et.template,Re[8])}else Re[5]>0&&aC(Re)}const $=F[1].components;if(null!==$)for(let ce=0;ce<$.length;ce++){const be=$o($[ce],F);_a(be)&&be[5]>0&&aC(be)}}function dE(F,H){const $=$o(H,F),ce=$[1];(function cE(F,H){for(let $=H.length;$<F.blueprint.length;$++)H.push(F.blueprint[$])})(ce,$),tC(ce,$,$[8])}function Rm(F,H){return F[13]?F[14][4]=H:F[13]=H,F[14]=H,H}function sC(F){for(;F;){F[2]|=32;const H=Ud(F);if(rn(F)&&!H)return F;F=H}return null}function V_(F,H,$,ce=!0){const be=H[10];be.begin&&be.begin();try{km(F,H,F.template,$)}catch(et){throw ce&&Qc(H,et),et}finally{be.end&&be.end()}}function lC(F,H,$){ga(0),H(F,$)}function hE(F){return F[7]||(F[7]=[])}function Lm(F){return F.cleanup||(F.cleanup=[])}function Qc(F,H){const $=F[9],ce=$?$.get(lp,null):null;ce&&ce.handleError(H)}function Bm(F,H,$,ce,be){for(let Re=0;Re<$.length;){const et=$[Re++],Tt=$[Re++],zt=H[et],cn=F.data[et];null!==cn.setInput?cn.setInput(zt,be,ce,Tt):zt[Tt]=be}}function cl(F,H,$){const ce=jo(H,F);!function Lc(F,H,$){F.setValue(H,$)}(F[11],ce,$)}function Fm(F,H,$){let ce=$?F.styles:null,be=$?F.classes:null,Re=0;if(null!==H)for(let et=0;et<H.length;et++){const Tt=H[et];"number"==typeof Tt?Re=Tt:1==Re?be=S(be,Tt):2==Re&&(ce=S(ce,Tt+": "+H[++et]+";"))}$?F.styles=ce:F.stylesWithoutHost=ce,$?F.classes=be:F.classesWithoutHost=be}function Hu(F,H,$,ce,be=!1){for(;null!==$;){const Re=H[$.index];if(null!==Re&&ce.push(Go(Re)),sn(Re))for(let Tt=10;Tt<Re.length;Tt++){const zt=Re[Tt],cn=zt[1].firstChild;null!==cn&&Hu(zt[1],zt,cn,ce)}const et=$.type;if(8&et)Hu(F,H,$.child,ce);else if(32&et){const Tt=Uh($,H);let zt;for(;zt=Tt();)ce.push(zt)}else if(16&et){const Tt=wn(H,$);if(Array.isArray(Tt))ce.push(...Tt);else{const zt=Ud(H[16]);Hu(zt[1],zt,Tt,ce,!0)}}$=be?$.projectionNext:$.next}return ce}class Vm{get rootNodes(){const H=this._lView,$=H[1];return Hu($,H,$.firstChild,[])}constructor(H,$){this._lView=H,this._cdRefInjectingView=$,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[8]}set context(H){this._lView[8]=H}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const H=this._lView[3];if(sn(H)){const $=H[8],ce=$?$.indexOf(this):-1;ce>-1&&(Cl(H,ce),cd($,ce))}this._attachedToViewContainer=!1}Yh(this._lView[1],this._lView)}onDestroy(H){tE(this._lView[1],this._lView,null,H)}markForCheck(){sC(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){V_(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new W(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function m_(F,H){Rs(F,H,H[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(H){if(this._attachedToViewContainer)throw new W(902,!1);this._appRef=H}}class dC extends Vm{constructor(H){super(H),this._view=H}detectChanges(){const H=this._view;V_(H[1],H,H[8],!1)}checkNoChanges(){}get context(){return null}}class cC extends Gc{constructor(H){super(),this.ngModule=H}resolveComponentFactory(H){const $=Vr(H);return new Nm($,this.ngModule)}}function qd(F){const H=[];for(let $ in F)F.hasOwnProperty($)&&H.push({propName:F[$],templateName:$});return H}class bd{constructor(H,$){this.injector=H,this.parentInjector=$}get(H,$,ce){ce=li(ce);const be=this.injector.get(H,Eo,ce);return be!==Eo||$===Eo?be:this.parentInjector.get(H,$,ce)}}class Nm extends S_{get inputs(){return qd(this.componentDef.inputs)}get outputs(){return qd(this.componentDef.outputs)}constructor(H,$){super(),this.componentDef=H,this.ngModule=$,this.componentType=H.type,this.selector=function Uw(F){return F.map(M_).join(",")}(H.selectors),this.ngContentSelectors=H.ngContentSelectors?H.ngContentSelectors:[],this.isBoundToModule=!!$}create(H,$,ce,be){let Re=(be=be||this.ngModule)instanceof ao?be:be?.injector;Re&&null!==this.componentDef.getStandaloneInjector&&(Re=this.componentDef.getStandaloneInjector(Re)||Re);const et=Re?new bd(H,Re):H,Tt=et.get(Pw,null);if(null===Tt)throw new W(407,!1);const zt=et.get(y1,null),cn=Tt.createRenderer(null,this.componentDef),Fn=this.componentDef.selectors[0][0]||"div",ri=ce?function N1(F,H,$){return F.selectRootElement(H,$===On.ShadowDom)}(cn,ce,this.componentDef.encapsulation):jh(cn,Fn,function pE(F){const H=F.toLowerCase();return"svg"===H?"svg":"math"===H?"math":null}(Fn)),Di=this.componentDef.onPush?288:272,Ni=qc(0,null,null,1,0,null,null,null,null,null),ar=Am(null,Ni,null,Di,null,null,Tt,cn,zt,et,null);let yr,Zr;Ta(ar);try{const ro=this.componentDef;let co,mr=null;ro.findHostDirectiveDefs?(co=[],mr=new Map,ro.findHostDirectiveDefs(ro,co,mr),co.push(ro)):co=[ro];const Oo=function J1(F,H){const $=F[1];return F[22]=H,Ng($,22,2,"#host",null)}(ar,ri),Za=function Q1(F,H,$,ce,be,Re,et,Tt){const zt=be[1];!function eI(F,H,$,ce){for(const be of F)H.mergedAttrs=Il(H.mergedAttrs,be.hostAttrs);null!==H.mergedAttrs&&(Fm(H,H.mergedAttrs,!0),null!==$&&xl(ce,$,H))}(ce,F,H,et);const cn=Re.createRenderer(H,$),Fn=Am(be,eE($),null,$.onPush?32:16,be[F.index],F,Re,cn,Tt||null,null,null);return zt.firstCreatePass&&rC(zt,F,ce.length-1),Rm(be,Fn),be[F.index]=Fn}(Oo,ri,ro,co,ar,Tt,cn);Zr=ma(Ni,22),ri&&function Hm(F,H,$,ce){if(ce)ia(F,$,["ng-version",kw.full]);else{const{attrs:be,classes:Re}=function O1(F){const H=[],$=[];let ce=1,be=2;for(;ce<F.length;){let Re=F[ce];if("string"==typeof Re)2===be?""!==Re&&H.push(Re,F[++ce]):8===be&&$.push(Re);else{if(!Vu(be))break;be=Re}ce++}return{attrs:H,classes:$}}(H.selectors[0]);be&&ia(F,$,be),Re&&Re.length>0&&vd(F,$,Re.join(" "))}}(cn,ro,ri,ce),void 0!==$&&function zu(F,H,$){const ce=F.projection=[];for(let be=0;be<H.length;be++){const Re=$[be];ce.push(null!=Re?Array.from(Re):null)}}(Zr,this.ngContentSelectors,$),yr=function Wg(F,H,$,ce,be,Re){const et=Qn(),Tt=be[1],zt=ta(et,be);Ys(Tt,be,et,$,null,ce);for(let Fn=0;Fn<$.length;Fn++)rs(ws(be,Tt,et.directiveStart+Fn,et),be);Nl(Tt,be,et),zt&&rs(zt,be);const cn=ws(be,Tt,et.directiveStart+et.componentOffset,et);if(F[8]=be[8]=cn,null!==Re)for(const Fn of Re)Fn(cn,H);return B_(Tt,et,F),cn}(Za,ro,co,mr,ar,[wd]),tC(Ni,ar,null)}finally{Aa()}return new gE(this.componentType,yr,Lg(Zr,ar),ar,Zr)}}class gE extends h1{constructor(H,$,ce,be,Re){super(),this.location=ce,this._rootLView=be,this._tNode=Re,this.instance=$,this.hostView=this.changeDetectorRef=new dC(be),this.componentType=H}setInput(H,$){const ce=this._tNode.inputs;let be;if(null!==ce&&(be=ce[H])){const Re=this._rootLView;Bm(Re[1],Re,be,H,$),iC(Re,this._tNode.index)}}get injector(){return new Es(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(H){this.hostView.onDestroy(H)}}function wd(){const F=Qn();lt(at()[1],F)}function N_(F){let H=function zm(F){return Object.getPrototypeOf(F.prototype).constructor}(F.type),$=!0;const ce=[F];for(;H;){let be;if(Vt(F))be=H.\u0275cmp||H.\u0275dir;else{if(H.\u0275cmp)throw new W(903,!1);be=H.\u0275dir}if(be){if($){ce.push(be);const et=F;et.inputs=H_(F.inputs),et.declaredInputs=H_(F.declaredInputs),et.outputs=H_(F.outputs);const Tt=be.hostBindings;Tt&&lu(F,Tt);const zt=be.viewQuery,cn=be.contentQueries;if(zt&&fp(F,zt),cn&&eh(F,cn),y(F.inputs,be.inputs),y(F.declaredInputs,be.declaredInputs),y(F.outputs,be.outputs),Vt(be)&&be.data.animation){const Fn=F.data;Fn.animation=(Fn.animation||[]).concat(be.data.animation)}}const Re=be.features;if(Re)for(let et=0;et<Re.length;et++){const Tt=Re[et];Tt&&Tt.ngInherit&&Tt(F),Tt===N_&&($=!1)}}H=Object.getPrototypeOf(H)}!function tI(F){let H=0,$=null;for(let ce=F.length-1;ce>=0;ce--){const be=F[ce];be.hostVars=H+=be.hostVars,be.hostAttrs=Il(be.hostAttrs,$=Il($,be.hostAttrs))}}(ce)}function H_(F){return F===ei?{}:F===ni?[]:F}function fp(F,H){const $=F.viewQuery;F.viewQuery=$?(ce,be)=>{H(ce,be),$(ce,be)}:H}function eh(F,H){const $=F.contentQueries;F.contentQueries=$?(ce,be,Re)=>{H(ce,be,Re),$(ce,be,Re)}:H}function lu(F,H){const $=F.hostBindings;F.hostBindings=$?(ce,be)=>{H(ce,be),$(ce,be)}:H}let Wm=null;function mp(){if(!Wm){const F=St.Symbol;if(F&&F.iterator)Wm=F.iterator;else{const H=Object.getOwnPropertyNames(Map.prototype);for(let $=0;$<H.length;++$){const ce=H[$];"entries"!==ce&&"size"!==ce&&Map.prototype[ce]===Map.prototype.entries&&(Wm=ce)}}}return Wm}function Um(F){return!!W_(F)&&(Array.isArray(F)||!(F instanceof Map)&&mp()in F)}function W_(F){return null!==F&&("function"==typeof F||"object"==typeof F)}function hl(F,H,$){return F[H]=$}function Xs(F,H,$){return!Object.is(F[H],$)&&(F[H]=$,!0)}function ec(F,H,$,ce){const be=Xs(F,H,$);return Xs(F,H+1,ce)||be}function U_(F,H,$,ce){const be=at();return Xs(be,Lr(),H)&&(Yt(),Nu(jn(),be,F,H,$,ce)),U_}function Gg(F,H,$,ce){return Xs(F,Lr(),$)?H+V($)+ce:Ao}function th(F,H,$,ce,be,Re){const Tt=ec(F,function er(){return Pt.lFrame.bindingIndex}(),$,be);return Sr(2),Tt?H+V($)+ce+V(be)+Re:Ao}function fC(F,H,$,ce,be,Re,et,Tt){const zt=at(),cn=Yt(),Fn=F+22,ri=cn.firstCreatePass?function gC(F,H,$,ce,be,Re,et,Tt,zt){const cn=H.consts,Fn=Ng(H,F,4,et||null,pa(cn,Tt));Jc(H,$,Fn,pa(cn,zt)),lt(H,Fn);const ri=Fn.tViews=qc(2,Fn,ce,be,Re,H.directiveRegistry,H.pipeRegistry,null,H.schemas,cn);return null!==H.queries&&(H.queries.template(H,Fn),ri.queries=H.queries.embeddedTView(Fn)),Fn}(Fn,cn,zt,H,$,ce,be,Re,et):cn.data[Fn];Ei(ri,!1);const Di=zt[11].createComment("");Fa(cn,zt,Di,ri),rs(Di,zt),Rm(zt,zt[Fn]=sE(Di,zt,Di,ri)),st(ri)&&zg(cn,zt,ri),null!=et&&nC(zt,ri,Tt)}function mC(F){return ha(function pr(){return Pt.lFrame.contextLView}(),22+F)}function _C(F,H,$){const ce=at();return Xs(ce,Lr(),H)&&Vl(Yt(),jn(),ce,F,H,ce[11],$,!1),_C}function vC(F,H,$,ce,be){const et=be?"class":"style";Bm(F,$,H.inputs[et],et,ce)}function $_(F,H,$,ce){const be=at(),Re=Yt(),et=22+F,Tt=be[11],zt=be[et]=jh(Tt,H,function qn(){return Pt.lFrame.currentNamespace}()),cn=Re.firstCreatePass?function rI(F,H,$,ce,be,Re,et){const Tt=H.consts,cn=Ng(H,F,2,be,pa(Tt,Re));return Jc(H,$,cn,pa(Tt,et)),null!==cn.attrs&&Fm(cn,cn.attrs,!1),null!==cn.mergedAttrs&&Fm(cn,cn.mergedAttrs,!0),null!==H.queries&&H.queries.elementStart(H,cn),cn}(et,Re,be,0,H,$,ce):Re.data[et];return Ei(cn,!0),xl(Tt,zt,cn),32!=(32&cn.flags)&&Fa(Re,be,zt,cn),0===function Wr(){return Pt.lFrame.elementDepthCount}()&&rs(zt,be),function fo(){Pt.lFrame.elementDepthCount++}(),st(cn)&&(zg(Re,be,cn),B_(Re,cn,be)),null!==ce&&nC(be,cn),$_}function Y_(){let F=Qn();bi()?tr():(F=F.parent,Ei(F,!1));const H=F;!function vt(){Pt.lFrame.elementDepthCount--}();const $=Yt();return $.firstCreatePass&&(lt($,F),Nn(F)&&$.queries.elementEnd(F)),null!=H.classesWithoutHost&&function bo(F){return 0!=(8&F.flags)}(H)&&vC($,H,at(),H.classesWithoutHost,!0),null!=H.stylesWithoutHost&&function wo(F){return 0!=(16&F.flags)}(H)&&vC($,H,at(),H.stylesWithoutHost,!1),Y_}function yC(F,H,$,ce){return $_(F,H,$,ce),Y_(),yC}function X_(F,H,$){const ce=at(),be=Yt(),Re=F+22,et=be.firstCreatePass?function oI(F,H,$,ce,be){const Re=H.consts,et=pa(Re,ce),Tt=Ng(H,F,8,"ng-container",et);return null!==et&&Fm(Tt,et,!0),Jc(H,$,Tt,pa(Re,be)),null!==H.queries&&H.queries.elementStart(H,Tt),Tt}(Re,be,ce,H,$):be.data[Re];Ei(et,!0);const Tt=ce[Re]=ce[11].createComment("");return Fa(be,ce,Tt,et),rs(Tt,ce),st(et)&&(zg(be,ce,et),B_(be,et,ce)),null!=$&&nC(ce,et),X_}function q_(){let F=Qn();const H=Yt();return bi()?tr():(F=F.parent,Ei(F,!1)),H.firstCreatePass&&(lt(H,F),Nn(F)&&H.queries.elementEnd(F)),q_}function Km(F,H,$){return X_(F,H,$),q_(),Km}function CC(){return at()}function xC(F){return!!F&&"function"==typeof F.then}function bC(F){return!!F&&"function"==typeof F.subscribe}const zl=bC;function J_(F,H,$,ce){const be=at(),Re=Yt(),et=Qn();return function Gm(F,H,$,ce,be,Re,et){const Tt=st(ce),cn=F.firstCreatePass&&Lm(F),Fn=H[8],ri=hE(H);let Di=!0;if(3&ce.type||et){const yr=ta(ce,H),Zr=et?et(yr):yr,ro=ri.length,co=et?Oo=>et(Go(Oo[ce.index])):ce.index;let mr=null;if(!et&&Tt&&(mr=function CE(F,H,$,ce){const be=F.cleanup;if(null!=be)for(let Re=0;Re<be.length-1;Re+=2){const et=be[Re];if(et===$&&be[Re+1]===ce){const Tt=H[7],zt=be[Re+2];return Tt.length>zt?Tt[zt]:null}"string"==typeof et&&(Re+=2)}return null}(F,H,be,ce.index)),null!==mr)(mr.__ngLastListenerFn__||mr).__ngNextListenerFn__=Re,mr.__ngLastListenerFn__=Re,Di=!1;else{Re=xE(ce,H,Fn,Re,!1);const Oo=$.listen(Zr,be,Re);ri.push(Re,Oo),cn&&cn.push(be,co,ro,ro+1)}}else Re=xE(ce,H,Fn,Re,!1);const Ni=ce.outputs;let ar;if(Di&&null!==Ni&&(ar=Ni[be])){const yr=ar.length;if(yr)for(let Zr=0;Zr<yr;Zr+=2){const Za=H[ar[Zr]][ar[Zr+1]].subscribe(Re),Ha=ri.length;ri.push(Re,Za),cn&&cn.push(be,ce.index,Ha,-(Ha+1))}}}(Re,be,be[11],et,F,H,ce),J_}function Bs(F,H,$,ce){try{return!1!==$(ce)}catch(be){return Qc(F,be),!1}}function xE(F,H,$,ce,be){return function Re(et){if(et===Function)return ce;sC(F.componentOffset>-1?$o(F.index,H):H);let zt=Bs(H,0,ce,et),cn=Re.__ngNextListenerFn__;for(;cn;)zt=Bs(H,0,cn,et)&&zt,cn=cn.__ngNextListenerFn__;return be&&!1===zt&&(et.preventDefault(),et.returnValue=!1),zt}}function EC(F=1){return function Xl(F){return(Pt.lFrame.contextLView=function Ln(F,H){for(;F>0;)H=H[15],F--;return H}(F,Pt.lFrame.contextLView))[8]}(F)}function bE(F,H){let $=null;const ce=function I_(F){const H=F.attrs;if(null!=H){const $=H.indexOf(5);if(!(1&$))return H[$+1]}return null}(F);for(let be=0;be<H.length;be++){const Re=H[be];if("*"!==Re){if(null===ce?T_(F,Re,!0):zw(ce,Re))return be}else $=be}return $}function il(F){const H=at()[16][6];if(!H.projection){const ce=H.projection=Nd(F?F.length:1,null),be=ce.slice();let Re=H.child;for(;null!==Re;){const et=F?bE(Re,F):0;null!==et&&(be[et]?be[et].projectionNext=Re:ce[et]=Re,be[et]=Re),Re=Re.next}}}function qg(F,H=0,$){const ce=at(),be=Yt(),Re=Ng(be,22+F,16,null,$||null);null===Re.projection&&(Re.projection=H),tr(),32!=(32&Re.flags)&&function hm(F,H,$){Cg(H[11],0,H,$,Xh(F,$,H),Jh($.parent||H[6],$,H))}(be,ce,Re)}function Q_(F,H,$){return jm(F,"",H,"",$),Q_}function jm(F,H,$,ce,be){const Re=at(),et=Gg(Re,H,$,ce);return et!==Ao&&Vl(Yt(),jn(),Re,F,et,Re[11],be,!1),jm}function $m(F,H){return F<<17|H<<2}function ic(F){return F>>17&32767}function DC(F){return 2|F}function yp(F){return(131068&F)>>2}function tv(F,H){return-131069&F|H<<2}function TC(F){return 1|F}function ME(F,H,$,ce,be){const Re=F[$+1],et=null===H;let Tt=ce?ic(Re):yp(Re),zt=!1;for(;0!==Tt&&(!1===zt||et);){const Fn=F[Tt+1];AE(F[Tt],H)&&(zt=!0,F[Tt+1]=ce?TC(Fn):DC(Fn)),Tt=ce?ic(Fn):yp(Fn)}zt&&(F[$+1]=ce?DC(Re):TC(Re))}function AE(F,H){return null===F||null==H||(Array.isArray(F)?F[1]:F)===H||!(!Array.isArray(F)||"string"!=typeof H)&&eu(F,H)>=0}const xs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function IC(F){return F.substring(xs.key,xs.keyEnd)}function dI(F){return F.substring(xs.value,xs.valueEnd)}function Jg(F,H){const $=xs.textEnd;return $===H?-1:(H=xs.keyEnd=function Xm(F,H,$){for(;H<$&&F.charCodeAt(H)>32;)H++;return H}(F,xs.key=H,$),Qg(F,H,$))}function PE(F,H){const $=xs.textEnd;let ce=xs.key=Qg(F,H,$);return $===ce?-1:(ce=xs.keyEnd=function Cp(F,H,$){let ce;for(;H<$&&(45===(ce=F.charCodeAt(H))||95===ce||(-33&ce)>=65&&(-33&ce)<=90||ce>=48&&ce<=57);)H++;return H}(F,ce,$),ce=ih(F,ce,$),ce=xs.value=Qg(F,ce,$),ce=xs.valueEnd=function cI(F,H,$){let ce=-1,be=-1,Re=-1,et=H,Tt=et;for(;et<$;){const zt=F.charCodeAt(et++);if(59===zt)return Tt;34===zt||39===zt?Tt=et=rc(F,zt,et,$):H===et-4&&85===Re&&82===be&&76===ce&&40===zt?Tt=et=rc(F,41,et,$):zt>32&&(Tt=et),Re=be,be=ce,ce=-33&zt}return Tt}(F,ce,$),ih(F,ce,$))}function kE(F){xs.key=0,xs.keyEnd=0,xs.value=0,xs.valueEnd=0,xs.textEnd=F.length}function Qg(F,H,$){for(;H<$&&F.charCodeAt(H)<=32;)H++;return H}function ih(F,H,$,ce){return(H=Qg(F,H,$))<$&&H++,H}function rc(F,H,$,ce){let be=-1,Re=$;for(;Re<ce;){const et=F.charCodeAt(Re++);if(et==H&&92!==be)return Re;be=92==et&&92===be?0:et}throw new Error}function rh(F,H,$){return du(F,H,$,!1),rh}function ef(F,H){return du(F,H,null,!0),ef}function oc(F,H){for(let $=function MC(F){return kE(F),PE(F,Qg(F,0,xs.textEnd))}(H);$>=0;$=PE(H,$))Zu(F,IC(H),dI(H))}function AC(F){cu(hs,uu,F,!0)}function uu(F,H){for(let $=function Uu(F){return kE(F),Jg(F,Qg(F,0,xs.textEnd))}(H);$>=0;$=Jg(H,$))hs(F,IC(H),!0)}function du(F,H,$,ce){const be=at(),Re=Yt(),et=Sr(2);Re.firstUpdatePass&&PC(Re,F,et,ce),H!==Ao&&Xs(be,et,H)&&tf(Re,Re.data[Ut()],be,be[11],F,be[et+1]=function RC(F,H){return null==F||("string"==typeof H?F+=H:"object"==typeof F&&(F=E(ru(F)))),F}(H,$),ce,et)}function cu(F,H,$,ce){const be=Yt(),Re=Sr(2);be.firstUpdatePass&&PC(be,null,Re,ce);const et=at();if($!==Ao&&Xs(et,Re,$)){const Tt=be.data[Ut()];if(Jm(Tt,ce)&&!xp(be,Re)){let zt=ce?Tt.classesWithoutHost:Tt.stylesWithoutHost;null!==zt&&($=S(zt,$||"")),vC(be,Tt,et,$,ce)}else!function Ed(F,H,$,ce,be,Re,et,Tt){be===Ao&&(be=ni);let zt=0,cn=0,Fn=0<be.length?be[0]:null,ri=0<Re.length?Re[0]:null;for(;null!==Fn||null!==ri;){const Di=zt<be.length?be[zt+1]:void 0,Ni=cn<Re.length?Re[cn+1]:void 0;let yr,ar=null;Fn===ri?(zt+=2,cn+=2,Di!==Ni&&(ar=ri,yr=Ni)):null===ri||null!==Fn&&Fn<ri?(zt+=2,ar=Fn):(cn+=2,ar=ri,yr=Ni),null!==ar&&tf(F,H,$,ce,ar,yr,et,Tt),Fn=zt<be.length?be[zt]:null,ri=cn<Re.length?Re[cn]:null}}(be,Tt,et,et[11],et[Re+1],et[Re+1]=function hu(F,H,$){if(null==$||""===$)return ni;const ce=[],be=ru($);if(Array.isArray(be))for(let Re=0;Re<be.length;Re++)F(ce,be[Re],!0);else if("object"==typeof be)for(const Re in be)be.hasOwnProperty(Re)&&F(ce,Re,be[Re]);else"string"==typeof be&&H(ce,be);return ce}(F,H,$),ce,Re)}}function xp(F,H){return H>=F.expandoStartIndex}function PC(F,H,$,ce){const be=F.data;if(null===be[$+1]){const Re=be[Ut()],et=xp(F,$);Jm(Re,ce)&&null===H&&!et&&(H=!1),H=function hI(F,H,$,ce){const be=function Ro(F){const H=Pt.lFrame.currentDirectiveIndex;return-1===H?null:F[H]}(F);let Re=ce?H.residualClasses:H.residualStyles;if(null===be)0===(ce?H.classBindings:H.styleBindings)&&($=Ts($=bs(null,F,H,$,ce),H.attrs,ce),Re=null);else{const et=H.directiveStylingLast;if(-1===et||F[et]!==be)if($=bs(be,F,H,$,ce),null===Re){let zt=function nv(F,H,$){const ce=$?H.classBindings:H.styleBindings;if(0!==yp(ce))return F[ic(ce)]}(F,H,ce);void 0!==zt&&Array.isArray(zt)&&(zt=bs(null,F,H,zt[1],ce),zt=Ts(zt,H.attrs,ce),function pI(F,H,$,ce){F[ic($?H.classBindings:H.styleBindings)]=ce}(F,H,ce,zt))}else Re=function gI(F,H,$){let ce;const be=H.directiveEnd;for(let Re=1+H.directiveStylingLast;Re<be;Re++)ce=Ts(ce,F[Re].hostAttrs,$);return Ts(ce,H.attrs,$)}(F,H,ce)}return void 0!==Re&&(ce?H.residualClasses=Re:H.residualStyles=Re),$}(be,Re,H,ce),function IE(F,H,$,ce,be,Re){let et=Re?H.classBindings:H.styleBindings,Tt=ic(et),zt=yp(et);F[ce]=$;let Fn,cn=!1;if(Array.isArray($)?(Fn=$[1],(null===Fn||eu($,Fn)>0)&&(cn=!0)):Fn=$,be)if(0!==zt){const Di=ic(F[Tt+1]);F[ce+1]=$m(Di,Tt),0!==Di&&(F[Di+1]=tv(F[Di+1],ce)),F[Tt+1]=function aI(F,H){return 131071&F|H<<17}(F[Tt+1],ce)}else F[ce+1]=$m(Tt,0),0!==Tt&&(F[Tt+1]=tv(F[Tt+1],ce)),Tt=ce;else F[ce+1]=$m(zt,0),0===Tt?Tt=ce:F[zt+1]=tv(F[zt+1],ce),zt=ce;cn&&(F[ce+1]=DC(F[ce+1])),ME(F,Fn,ce,!0),ME(F,Fn,ce,!1),function uI(F,H,$,ce,be){const Re=be?F.residualClasses:F.residualStyles;null!=Re&&"string"==typeof H&&eu(Re,H)>=0&&($[ce+1]=TC($[ce+1]))}(H,Fn,F,ce,Re),et=$m(Tt,zt),Re?H.classBindings=et:H.styleBindings=et}(be,Re,H,$,et,ce)}}function bs(F,H,$,ce,be){let Re=null;const et=$.directiveEnd;let Tt=$.directiveStylingLast;for(-1===Tt?Tt=$.directiveStart:Tt++;Tt<et&&(Re=H[Tt],ce=Ts(ce,Re.hostAttrs,be),Re!==F);)Tt++;return null!==F&&($.directiveStylingLast=Tt),ce}function Ts(F,H,$){const ce=$?1:2;let be=-1;if(null!==H)for(let Re=0;Re<H.length;Re++){const et=H[Re];"number"==typeof et?be=et:be===ce&&(Array.isArray(F)||(F=void 0===F?[]:["",F]),hs(F,et,!!$||H[++Re]))}return void 0===F?null:F}function Zu(F,H,$){hs(F,H,ru($))}function tf(F,H,$,ce,be,Re,et,Tt){if(!(3&H.type))return;const zt=F.data,cn=zt[Tt+1],Fn=function sI(F){return 1==(1&F)}(cn)?kC(zt,H,$,be,yp(cn),et):void 0;qm(Fn)||(qm(Re)||function TE(F){return 2==(2&F)}(cn)&&(Re=kC(zt,null,$,be,Tt,et)),function v_(F,H,$,ce,be){if(H)be?F.addClass($,ce):F.removeClass($,ce);else{let Re=-1===ce.indexOf("-")?void 0:Ks.DashCase;null==be?F.removeStyle($,ce,Re):("string"==typeof be&&be.endsWith("!important")&&(be=be.slice(0,-10),Re|=Ks.Important),F.setStyle($,ce,be,Re))}}(ce,et,jo(Ut(),$),be,Re))}function kC(F,H,$,ce,be,Re){const et=null===H;let Tt;for(;be>0;){const zt=F[be],cn=Array.isArray(zt),Fn=cn?zt[1]:zt,ri=null===Fn;let Di=$[be+1];Di===Ao&&(Di=ri?ni:void 0);let Ni=ri?dl(Di,ce):Fn===ce?Di:void 0;if(cn&&!qm(Ni)&&(Ni=dl(zt,ce)),qm(Ni)&&(Tt=Ni,et))return Tt;const ar=F[be+1];be=et?ic(ar):yp(ar)}if(null!==H){let zt=Re?H.residualClasses:H.residualStyles;null!=zt&&(Tt=dl(zt,ce))}return Tt}function qm(F){return void 0!==F}function Jm(F,H){return 0!=(F.flags&(H?8:16))}function LC(F,H=""){const $=at(),ce=Yt(),be=F+22,Re=ce.firstCreatePass?Ng(ce,be,1,H,null):ce.data[be],et=$[be]=function Gh(F,H){return F.createText(H)}($[11],H);Fa(ce,$,et,Re),Ei(Re,!1)}function iv(F){return rv("",F,""),iv}function rv(F,H,$){const ce=at(),be=Gg(ce,F,H,$);return be!==Ao&&cl(ce,Ut(),be),rv}function BC(F,H,$,ce,be){const Re=at(),et=th(Re,F,H,$,ce,be);return et!==Ao&&cl(Re,Ut(),et),BC}function HE(F,H,$){cu(hs,uu,Gg(at(),F,H,$),!0)}function zE(F,H,$){!function Wl(F){cu(Zu,oc,F,!1)}(Gg(at(),F,H,$))}const ah=void 0;var YE=["en",[["a","p"],["AM","PM"],ah],[["AM","PM"],ah,ah],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ah,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ah,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ah,"{1} 'at' {0}",ah],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function DI(F){const $=Math.floor(Math.abs(F)),ce=F.toString().replace(/^[^.]*\.?/,"").length;return 1===$&&0===ce?1:5}];let nf={};function WC(F){const H=function bp(F){return F.toLowerCase().replace(/_/g,"-")}(F);let $=rf(H);if($)return $;const ce=H.split("-")[0];if($=rf(ce),$)return $;if("en"===ce)return YE;throw new W(701,!1)}function XE(F){return WC(F)[vo.PluralCase]}function rf(F){return F in nf||(nf[F]=St.ng&&St.ng.common&&St.ng.common.locales&&St.ng.common.locales[F]),nf[F]}var vo=(()=>((vo=vo||{})[vo.LocaleId=0]="LocaleId",vo[vo.DayPeriodsFormat=1]="DayPeriodsFormat",vo[vo.DayPeriodsStandalone=2]="DayPeriodsStandalone",vo[vo.DaysFormat=3]="DaysFormat",vo[vo.DaysStandalone=4]="DaysStandalone",vo[vo.MonthsFormat=5]="MonthsFormat",vo[vo.MonthsStandalone=6]="MonthsStandalone",vo[vo.Eras=7]="Eras",vo[vo.FirstDayOfWeek=8]="FirstDayOfWeek",vo[vo.WeekendRange=9]="WeekendRange",vo[vo.DateFormat=10]="DateFormat",vo[vo.TimeFormat=11]="TimeFormat",vo[vo.DateTimeFormat=12]="DateTimeFormat",vo[vo.NumberSymbols=13]="NumberSymbols",vo[vo.NumberFormats=14]="NumberFormats",vo[vo.CurrencyCode=15]="CurrencyCode",vo[vo.CurrencySymbol=16]="CurrencySymbol",vo[vo.CurrencyName=17]="CurrencyName",vo[vo.Currencies=18]="Currencies",vo[vo.Directionality=19]="Directionality",vo[vo.PluralCase=20]="PluralCase",vo[vo.ExtraData=21]="ExtraData",vo))();const sh="en-US";let JE=sh;function a0(F,H,$,ce,be){if(F=T(F),Array.isArray(F))for(let Re=0;Re<F.length;Re++)a0(F[Re],H,$,ce,be);else{const Re=Yt(),et=at();let Tt=hi(F)?F:T(F.provide),zt=Fl(F);const cn=Qn(),Fn=1048575&cn.providerIndexes,ri=cn.directiveStart,Di=cn.providerIndexes>>20;if(hi(F)||!F.multi){const Ni=new rr(zt,be,gp),ar=ox(Tt,H,be?Fn:Fn+Di,ri);-1===ar?(nd(Su(cn,et),Re,Tt),Ul(Re,F,H.length),H.push(Tt),cn.directiveStart++,cn.directiveEnd++,be&&(cn.providerIndexes+=1048576),$.push(Ni),et.push(Ni)):($[ar]=Ni,et[ar]=Ni)}else{const Ni=ox(Tt,H,Fn+Di,ri),ar=ox(Tt,H,Fn,Fn+Di),Zr=ar>=0&&$[ar];if(be&&!Zr||!be&&!(Ni>=0&&$[Ni])){nd(Su(cn,et),Re,Tt);const ro=function lM(F,H,$,ce,be){const Re=new rr(F,$,gp);return Re.multi=[],Re.index=H,Re.componentProviders=0,rx(Re,be,ce&&!$),Re}(be?sM:aM,$.length,be,ce,zt);!be&&Zr&&($[ar].providerFactory=ro),Ul(Re,F,H.length,0),H.push(Tt),cn.directiveStart++,cn.directiveEnd++,be&&(cn.providerIndexes+=1048576),$.push(ro),et.push(ro)}else Ul(Re,F,Ni>-1?Ni:ar,rx($[be?ar:Ni],zt,!be&&ce));!be&&ce&&Zr&&$[ar].componentProviders++}}}function Ul(F,H,$,ce){const be=hi(H),Re=function xi(F){return!!F.useClass}(H);if(be||Re){const zt=(Re?T(H.useClass):H).prototype.ngOnDestroy;if(zt){const cn=F.destroyHooks||(F.destroyHooks=[]);if(!be&&H.multi){const Fn=cn.indexOf($);-1===Fn?cn.push($,[ce,zt]):cn[Fn+1].push(ce,zt)}else cn.push($,zt)}}}function rx(F,H,$){return $&&F.componentProviders++,F.multi.push(H)-1}function ox(F,H,$,ce){for(let be=$;be<ce;be++)if(H[be]===F)return be;return-1}function aM(F,H,$,ce){return ax(this.multi,[])}function sM(F,H,$,ce){const be=this.multi;let Re;if(this.providerFactory){const et=this.providerFactory.componentProviders,Tt=ws($,$[1],this.providerFactory.index,ce);Re=Tt.slice(0,et),ax(be,Re);for(let zt=et;zt<Tt.length;zt++)Re.push(Tt[zt])}else Re=[],ax(be,Re);return Re}function ax(F,H){for(let $=0;$<F.length;$++)H.push((0,F[$])());return H}function bS(F,H=[]){return $=>{$.providersResolver=(ce,be)=>function oM(F,H,$){const ce=Yt();if(ce.firstCreatePass){const be=Vt(F);a0($,ce.data,ce.blueprint,be,!0),a0(H,ce.data,ce.blueprint,be,!1)}}(ce,be?be(F):F,H)}}class wl{}class mv{}function ac(F,H){return new sc(F,H??null)}class sc extends wl{constructor(H,$){super(),this._parent=$,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new cC(this);const ce=Er(H);this._bootstrapComponents=Xd(ce.bootstrap),this._r3Injector=Sm(H,$,[{provide:wl,useValue:this},{provide:Gc,useValue:this.componentFactoryResolver}],E(H),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(H)}get injector(){return this._r3Injector}destroy(){const H=this._r3Injector;!H.destroyed&&H.destroy(),this.destroyCbs.forEach($=>$()),this.destroyCbs=null}onDestroy(H){this.destroyCbs.push(H)}}class uf extends mv{constructor(H){super(),this.moduleType=H}create(H){return new sc(this.moduleType,H)}}class _v extends wl{constructor(H,$,ce){super(),this.componentFactoryResolver=new cC(this),this.instance=null;const be=new Io([...H,{provide:wl,useValue:this},{provide:Gc,useValue:this.componentFactoryResolver}],$||eo(),ce,new Set(["environment"]));this.injector=be,be.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(H){this.injector.onDestroy(H)}}function vv(F,H,$=null){return new _v(F,H,$).injector}let wS=(()=>{class F{constructor($){this._injector=$,this.cachedInjectors=new Map}getOrCreateStandaloneInjector($){if(!$.standalone)return null;if(!this.cachedInjectors.has($.id)){const ce=ve(0,$.type),be=ce.length>0?vv([ce],this._injector,`Standalone[${$.type.name}]`):null;this.cachedInjectors.set($.id,be)}return this.cachedInjectors.get($.id)}ngOnDestroy(){try{for(const $ of this.cachedInjectors.values())null!==$&&$.destroy()}finally{this.cachedInjectors.clear()}}}return F.\u0275prov=Ee({token:F,providedIn:"environment",factory:()=>new F(_n(ao))}),F})();function lx(F){F.getStandaloneInjector=H=>H.get(wS).getOrCreateStandaloneInjector(F)}function mx(F,H,$){const ce=Gi()+F,be=at();return be[ce]===Ao?hl(be,ce,$?H.call($):H()):function _p(F,H){return F[H]}(be,ce)}function l0(F,H,$,ce){return AS(at(),Gi(),F,H,$,ce)}function TS(F,H,$,ce,be){return function PS(F,H,$,ce,be,Re,et){const Tt=H+$;return ec(F,Tt,be,Re)?hl(F,Tt+2,et?ce.call(et,be,Re):ce(be,Re)):u0(F,Tt+2)}(at(),Gi(),F,H,$,ce,be)}function u0(F,H){const $=F[H];return $===Ao?void 0:$}function AS(F,H,$,ce,be,Re){const et=H+$;return Xs(F,et,be)?hl(F,et+1,Re?ce.call(Re,be):ce(be)):u0(F,et+1)}function kS(F,H){const $=Yt();let ce;const be=F+22;$.firstCreatePass?(ce=function Cx(F,H){if(H)for(let $=H.length-1;$>=0;$--){const ce=H[$];if(F===ce.name)return ce}}(H,$.pipeRegistry),$.data[be]=ce,ce.onDestroy&&($.destroyHooks||($.destroyHooks=[])).push(be,ce.onDestroy)):ce=$.data[be];const Re=ce.factory||(ce.factory=qo(ce.type)),et=xe(gp);try{const Tt=Eu(!1),zt=Re();return Eu(Tt),function iI(F,H,$,ce){$>=F.data.length&&(F.data[$]=null,F.blueprint[$]=null),H[$]=ce}($,at(),be,zt),zt}finally{xe(et)}}function xx(F,H,$){const ce=F+22,be=at(),Re=ha(be,ce);return function pf(F,H){return F[1].data[H].pure}(be,ce)?AS(be,Gi(),H,Re.transform,$,Re):Re.transform($)}function wx(F){return H=>{setTimeout(F,void 0,H)}}const Sd=class lh extends o.xQ{constructor(H=!1){super(),this.__isAsync=H}emit(H){super.next(H)}subscribe(H,$,ce){let be=H,Re=$||(()=>null),et=ce;if(H&&"object"==typeof H){const zt=H;be=zt.next?.bind(zt),Re=zt.error?.bind(zt),et=zt.complete?.bind(zt)}this.__isAsync&&(Re=wx(Re),be&&(be=wx(be)),et&&(et=wx(et)));const Tt=super.subscribe({next:be,error:Re,complete:et});return H instanceof c.w&&H.add(Tt),Tt}};function mM(){return this._results[mp()]()}class Ex{get changes(){return this._changes||(this._changes=new Sd)}constructor(H=!1){this._emitDistinctChangesOnly=H,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const $=mp(),ce=Ex.prototype;ce[$]||(ce[$]=mM)}get(H){return this._results[H]}map(H){return this._results.map(H)}filter(H){return this._results.filter(H)}find(H){return this._results.find(H)}reduce(H,$){return this._results.reduce(H,$)}forEach(H){this._results.forEach(H)}some(H){return this._results.some(H)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(H,$){const ce=this;ce.dirty=!1;const be=function vs(F){return F.flat(Number.POSITIVE_INFINITY)}(H);(this._changesDetected=!function Rh(F,H,$){if(F.length!==H.length)return!1;for(let ce=0;ce<F.length;ce++){let be=F[ce],Re=H[ce];if($&&(be=$(be),Re=$(Re)),Re!==be)return!1}return!0}(ce._results,be,$))&&(ce._results=be,ce.length=be.length,ce.last=be[this.length-1],ce.first=be[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let c0=(()=>{class F{}return F.__NG_ELEMENT_ID__=Cv,F})();const uh=c0,Sx=class extends uh{constructor(H,$,ce){super(),this._declarationLView=H,this._declarationTContainer=$,this.elementRef=ce}createEmbeddedView(H,$){const ce=this._declarationTContainer.tViews,be=Am(this._declarationLView,ce,H,16,null,ce.declTNode,null,null,null,null,$||null);be[17]=this._declarationLView[this._declarationTContainer.index];const et=this._declarationLView[19];return null!==et&&(be[19]=et.createEmbeddedView(ce)),tC(ce,be,H),new Vm(be)}};function Cv(){return lc(Qn(),at())}function lc(F,H){return 4&F.type?new Sx(H,F,Lg(F,H)):null}let El=(()=>{class F{}return F.__NG_ELEMENT_ID__=h0,F})();function h0(){return BS(Qn(),at())}const _M=El,RS=class extends _M{constructor(H,$,ce){super(),this._lContainer=H,this._hostTNode=$,this._hostLView=ce}get element(){return Lg(this._hostTNode,this._hostLView)}get injector(){return new Es(this._hostTNode,this._hostLView)}get parentInjector(){const H=Bd(this._hostTNode,this._hostLView);if(Ph(H)){const $=wu(H,this._hostLView),ce=ed(H);return new Es($[1].data[ce+8],$)}return new Es(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(H){const $=LS(this._lContainer);return null!==$&&$[H]||null}get length(){return this._lContainer.length-10}createEmbeddedView(H,$,ce){let be,Re;"number"==typeof ce?be=ce:null!=ce&&(be=ce.index,Re=ce.injector);const et=H.createEmbeddedView($||{},Re);return this.insert(et,be),et}createComponent(H,$,ce,be,Re){const et=H&&!function Ws(F){return"function"==typeof F}(H);let Tt;if(et)Tt=$;else{const ri=$||{};Tt=ri.index,ce=ri.injector,be=ri.projectableNodes,Re=ri.environmentInjector||ri.ngModuleRef}const zt=et?H:new Nm(Vr(H)),cn=ce||this.parentInjector;if(!Re&&null==zt.ngModule){const Di=(et?cn:this.parentInjector).get(ao,null);Di&&(Re=Di)}const Fn=zt.create(cn,be,void 0,Re);return this.insert(Fn.hostView,Tt),Fn}insert(H,$){const ce=H._lView,be=ce[1];if(function va(F){return sn(F[3])}(ce)){const Fn=this.indexOf(H);if(-1!==Fn)this.detach(Fn);else{const ri=ce[3],Di=new RS(ri,ri[6],ri[3]);Di.detach(Di.indexOf(H))}}const Re=this._adjustIndex($),et=this._lContainer;!function __(F,H,$,ce){const be=10+ce,Re=$.length;ce>0&&($[be-1][4]=H),ce<Re-10?(H[4]=$[be],dd($,10+ce,H)):($.push(H),H[4]=null),H[3]=$;const et=H[17];null!==et&&$!==et&&function lm(F,H){const $=F[9];H[16]!==H[3][3][16]&&(F[2]=!0),null===$?F[9]=[H]:$.push(H)}(et,H);const Tt=H[19];null!==Tt&&Tt.insertView(F),H[2]|=64}(be,ce,et,Re);const Tt=Qh(Re,et),zt=ce[11],cn=Zd(zt,et[7]);return null!==cn&&function fd(F,H,$,ce,be,Re){ce[0]=be,ce[6]=H,Rs(F,ce,$,1,be,Re)}(be,et[6],zt,ce,cn,Tt),H.attachToViewContainerRef(),dd(as(et),Re,H),H}move(H,$){return this.insert(H,$)}indexOf(H){const $=LS(this._lContainer);return null!==$?$.indexOf(H):-1}remove(H){const $=this._adjustIndex(H,-1),ce=Cl(this._lContainer,$);ce&&(cd(as(this._lContainer),$),Yh(ce[1],ce))}detach(H){const $=this._adjustIndex(H,-1),ce=Cl(this._lContainer,$);return ce&&null!=cd(as(this._lContainer),$)?new Vm(ce):null}_adjustIndex(H,$=0){return H??this.length+$}};function LS(F){return F[8]}function as(F){return F[8]||(F[8]=[])}function BS(F,H){let $;const ce=H[F.index];if(sn(ce))$=ce;else{let be;if(8&F.type)be=Go(ce);else{const Re=H[11];be=Re.createComment("");const et=ta(F,H);js(Re,Zd(Re,et),be,function cm(F,H){return F.nextSibling(H)}(Re,et),!1)}H[F.index]=$=sE(ce,H,be,F),Rm(H,$)}return new RS($,F,H)}class Ox{constructor(H){this.queryList=H,this.matches=null}clone(){return new Ox(this.queryList)}setDirty(){this.queryList.setDirty()}}class gf{constructor(H=[]){this.queries=H}createEmbeddedView(H){const $=H.queries;if(null!==$){const ce=null!==H.contentQueries?H.contentQueries[0]:$.length,be=[];for(let Re=0;Re<ce;Re++){const et=$.getByIndex(Re);be.push(this.queries[et.indexInDeclarationView].clone())}return new gf(be)}return null}insertView(H){this.dirtyQueriesWithMatches(H)}detachView(H){this.dirtyQueriesWithMatches(H)}dirtyQueriesWithMatches(H){for(let $=0;$<this.queries.length;$++)null!==Ep(H,$).matches&&this.queries[$].setDirty()}}class gu{constructor(H,$,ce=null){this.predicate=H,this.flags=$,this.read=ce}}class uc{constructor(H=[]){this.queries=H}elementStart(H,$){for(let ce=0;ce<this.queries.length;ce++)this.queries[ce].elementStart(H,$)}elementEnd(H){for(let $=0;$<this.queries.length;$++)this.queries[$].elementEnd(H)}embeddedTView(H){let $=null;for(let ce=0;ce<this.length;ce++){const be=null!==$?$.length:0,Re=this.getByIndex(ce).embeddedTView(H,be);Re&&(Re.indexInDeclarationView=ce,null!==$?$.push(Re):$=[Re])}return null!==$?new uc($):null}template(H,$){for(let ce=0;ce<this.queries.length;ce++)this.queries[ce].template(H,$)}getByIndex(H){return this.queries[H]}get length(){return this.queries.length}track(H){this.queries.push(H)}}class ff{constructor(H,$=-1){this.metadata=H,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=$}elementStart(H,$){this.isApplyingToNode($)&&this.matchTNode(H,$)}elementEnd(H){this._declarationNodeIndex===H.index&&(this._appliesToNextNode=!1)}template(H,$){this.elementStart(H,$)}embeddedTView(H,$){return this.isApplyingToNode(H)?(this.crossesNgTemplate=!0,this.addMatch(-H.index,$),new ff(this.metadata)):null}isApplyingToNode(H){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const $=this._declarationNodeIndex;let ce=H.parent;for(;null!==ce&&8&ce.type&&ce.index!==$;)ce=ce.parent;return $===(null!==ce?ce.index:-1)}return this._appliesToNextNode}matchTNode(H,$){const ce=this.metadata.predicate;if(Array.isArray(ce))for(let be=0;be<ce.length;be++){const Re=ce[be];this.matchTNodeWithReadOption(H,$,FS($,Re)),this.matchTNodeWithReadOption(H,$,ql($,H,Re,!1,!1))}else ce===c0?4&$.type&&this.matchTNodeWithReadOption(H,$,-1):this.matchTNodeWithReadOption(H,$,ql($,H,ce,!1,!1))}matchTNodeWithReadOption(H,$,ce){if(null!==ce){const be=this.metadata.read;if(null!==be)if(be===xm||be===El||be===c0&&4&$.type)this.addMatch($.index,-2);else{const Re=ql($,H,be,!1,!1);null!==Re&&this.addMatch($.index,Re)}else this.addMatch($.index,ce)}}addMatch(H,$){null===this.matches?this.matches=[H,$]:this.matches.push(H,$)}}function FS(F,H){const $=F.localNames;if(null!==$)for(let ce=0;ce<$.length;ce+=2)if($[ce]===H)return $[ce+1];return null}function VS(F,H,$,ce){return-1===$?function xv(F,H){return 11&F.type?Lg(F,H):4&F.type?lc(F,H):null}(H,F):-2===$?function vM(F,H,$){return $===xm?Lg(H,F):$===c0?lc(H,F):$===El?BS(H,F):void 0}(F,H,ce):ws(F,F[1],$,H)}function Dx(F,H,$,ce){const be=H[19].queries[ce];if(null===be.matches){const Re=F.data,et=$.matches,Tt=[];for(let zt=0;zt<et.length;zt+=2){const cn=et[zt];Tt.push(cn<0?null:VS(H,Re[cn],et[zt+1],$.metadata.read))}be.matches=Tt}return be.matches}function Tx(F,H,$,ce){const be=F.queries.getByIndex($),Re=be.matches;if(null!==Re){const et=Dx(F,H,be,$);for(let Tt=0;Tt<Re.length;Tt+=2){const zt=Re[Tt];if(zt>0)ce.push(et[Tt/2]);else{const cn=Re[Tt+1],Fn=H[-zt];for(let ri=10;ri<Fn.length;ri++){const Di=Fn[ri];Di[17]===Di[3]&&Tx(Di[1],Di,cn,ce)}if(null!==Fn[9]){const ri=Fn[9];for(let Di=0;Di<ri.length;Di++){const Ni=ri[Di];Tx(Ni[1],Ni,cn,ce)}}}}}return ce}function Ix(F){const H=at(),$=Yt(),ce=na();ga(ce+1);const be=Ep($,ce);if(F.dirty&&function Da(F){return 4==(4&F[2])}(H)===(2==(2&be.metadata.flags))){if(null===be.matches)F.reset([]);else{const Re=be.crossesNgTemplate?Tx($,H,ce,[]):Dx($,H,be,ce);F.reset(Re,m1),F.notifyOnChanges()}return!0}return!1}function p0(F,H,$){const ce=Yt();ce.firstCreatePass&&(Px(ce,new gu(F,H,$),-1),2==(2&H)&&(ce.staticViewQueries=!0)),Ax(ce,at(),H)}function NS(F,H,$,ce){const be=Yt();if(be.firstCreatePass){const Re=Qn();Px(be,new gu(H,$,ce),Re.index),function HS(F,H){const $=F.contentQueries||(F.contentQueries=[]);H!==($.length?$[$.length-1]:-1)&&$.push(F.queries.length-1,H)}(be,F),2==(2&$)&&(be.staticContentQueries=!0)}Ax(be,at(),$)}function Mx(){return function yM(F,H){return F[19].queries[H].queryList}(at(),na())}function Ax(F,H,$){const ce=new Ex(4==(4&$));tE(F,H,ce,ce.destroy),null===H[19]&&(H[19]=new gf),H[19].queries.push(new Ox(ce))}function Px(F,H,$){null===F.queries&&(F.queries=new uc),F.queries.track(new ff(H,$))}function Ep(F,H){return F.queries.getByIndex(H)}function zS(F,H){return lc(F,H)}function Op(...F){}const Tv=new ya("Application Initializer");let ch=(()=>{class F{constructor($){this.appInits=$,this.resolve=Op,this.reject=Op,this.initialized=!1,this.done=!1,this.donePromise=new Promise((ce,be)=>{this.resolve=ce,this.reject=be})}runInitializers(){if(this.initialized)return;const $=[],ce=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let be=0;be<this.appInits.length;be++){const Re=this.appInits[be]();if(xC(Re))$.push(Re);else if(zl(Re)){const et=new Promise((Tt,zt)=>{Re.subscribe({complete:Tt,error:zt})});$.push(et)}}Promise.all($).then(()=>{ce()}).catch(be=>{this.reject(be)}),0===$.length&&ce(),this.initialized=!0}}return F.\u0275fac=function($){return new($||F)(_n(Tv,8))},F.\u0275prov=Ee({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();const jx=new ya("AppId",{providedIn:"root",factory:function $x(){return`${ss()}${ss()}${ss()}`}});function ss(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const v0=new ya("Platform Initializer"),vf=new ya("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Iv=new ya("appBootstrapListener");let y0=(()=>{class F{log($){console.log($)}warn($){console.warn($)}}return F.\u0275fac=function($){return new($||F)},F.\u0275prov=Ee({token:F,factory:F.\u0275fac,providedIn:"platform"}),F})();const C0=new ya("LocaleId",{providedIn:"root",factory:()=>Jn(C0,ke.Optional|ke.SkipSelf)||function Mv(){return typeof $localize<"u"&&$localize.locale||sh}()}),Av=new ya("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class oO{constructor(H,$){this.ngModuleFactory=H,this.componentFactories=$}}let MM=(()=>{class F{compileModuleSync($){return new uf($)}compileModuleAsync($){return Promise.resolve(this.compileModuleSync($))}compileModuleAndAllComponentsSync($){const ce=this.compileModuleSync($),Re=Xd(Er($).declarations).reduce((et,Tt)=>{const zt=Vr(Tt);return zt&&et.push(new Nm(zt)),et},[]);return new oO(ce,Re)}compileModuleAndAllComponentsAsync($){return Promise.resolve(this.compileModuleAndAllComponentsSync($))}clearCache(){}clearCacheFor($){}getModuleId($){}}return F.\u0275fac=function($){return new($||F)},F.\u0275prov=Ee({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();const kv=(()=>Promise.resolve(0))();function x0(F){typeof Zone>"u"?kv.then(()=>{F&&F.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",F)}class rl{constructor({enableLongStackTrace:H=!1,shouldCoalesceEventChangeDetection:$=!1,shouldCoalesceRunChangeDetection:ce=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Sd(!1),this.onMicrotaskEmpty=new Sd(!1),this.onStable=new Sd(!1),this.onError=new Sd(!1),typeof Zone>"u")throw new W(908,!1);Zone.assertZonePatched();const be=this;be._nesting=0,be._outer=be._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(be._inner=be._inner.fork(new Zone.TaskTrackingZoneSpec)),H&&Zone.longStackTraceZoneSpec&&(be._inner=be._inner.fork(Zone.longStackTraceZoneSpec)),be.shouldCoalesceEventChangeDetection=!ce&&$,be.shouldCoalesceRunChangeDetection=ce,be.lastRequestAnimationFrameId=-1,be.nativeRequestAnimationFrame=function sO(){let F=St.requestAnimationFrame,H=St.cancelAnimationFrame;if(typeof Zone<"u"&&F&&H){const $=F[Zone.__symbol__("OriginalDelegate")];$&&(F=$);const ce=H[Zone.__symbol__("OriginalDelegate")];ce&&(H=ce)}return{nativeRequestAnimationFrame:F,nativeCancelAnimationFrame:H}}().nativeRequestAnimationFrame,function kM(F){const H=()=>{!function PM(F){F.isCheckStableRunning||-1!==F.lastRequestAnimationFrameId||(F.lastRequestAnimationFrameId=F.nativeRequestAnimationFrame.call(St,()=>{F.fakeTopEventTask||(F.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{F.lastRequestAnimationFrameId=-1,yf(F),F.isCheckStableRunning=!0,Rv(F),F.isCheckStableRunning=!1},void 0,()=>{},()=>{})),F.fakeTopEventTask.invoke()}),yf(F))}(F)};F._inner=F._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:($,ce,be,Re,et,Tt)=>{try{return Xx(F),$.invokeTask(be,Re,et,Tt)}finally{(F.shouldCoalesceEventChangeDetection&&"eventTask"===Re.type||F.shouldCoalesceRunChangeDetection)&&H(),lO(F)}},onInvoke:($,ce,be,Re,et,Tt,zt)=>{try{return Xx(F),$.invoke(be,Re,et,Tt,zt)}finally{F.shouldCoalesceRunChangeDetection&&H(),lO(F)}},onHasTask:($,ce,be,Re)=>{$.hasTask(be,Re),ce===be&&("microTask"==Re.change?(F._hasPendingMicrotasks=Re.microTask,yf(F),Rv(F)):"macroTask"==Re.change&&(F.hasPendingMacrotasks=Re.macroTask))},onHandleError:($,ce,be,Re)=>($.handleError(be,Re),F.runOutsideAngular(()=>F.onError.emit(Re)),!1)})}(be)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!rl.isInAngularZone())throw new W(909,!1)}static assertNotInAngularZone(){if(rl.isInAngularZone())throw new W(909,!1)}run(H,$,ce){return this._inner.run(H,$,ce)}runTask(H,$,ce,be){const Re=this._inner,et=Re.scheduleEventTask("NgZoneEvent: "+be,H,Yx,Op,Op);try{return Re.runTask(et,$,ce)}finally{Re.cancelTask(et)}}runGuarded(H,$,ce){return this._inner.runGuarded(H,$,ce)}runOutsideAngular(H){return this._outer.run(H)}}const Yx={};function Rv(F){if(0==F._nesting&&!F.hasPendingMicrotasks&&!F.isStable)try{F._nesting++,F.onMicrotaskEmpty.emit(null)}finally{if(F._nesting--,!F.hasPendingMicrotasks)try{F.runOutsideAngular(()=>F.onStable.emit(null))}finally{F.isStable=!0}}}function yf(F){F.hasPendingMicrotasks=!!(F._hasPendingMicrotasks||(F.shouldCoalesceEventChangeDetection||F.shouldCoalesceRunChangeDetection)&&-1!==F.lastRequestAnimationFrameId)}function Xx(F){F._nesting++,F.isStable&&(F.isStable=!1,F.onUnstable.emit(null))}function lO(F){F._nesting--,Rv(F)}class RM{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Sd,this.onMicrotaskEmpty=new Sd,this.onStable=new Sd,this.onError=new Sd}run(H,$,ce){return H.apply($,ce)}runGuarded(H,$,ce){return H.apply($,ce)}runOutsideAngular(H){return H()}runTask(H,$,ce,be){return H.apply($,ce)}}const Lv=new ya(""),qx=new ya("");let b0,Jx=(()=>{class F{constructor($,ce,be){this._ngZone=$,this.registry=ce,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,b0||(function LM(F){b0=F}(be),be.addToWindow(ce)),this._watchAngularEvents(),$.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:()=>{rl.assertNotInAngularZone(),x0(()=>{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())x0(()=>{for(;0!==this._callbacks.length;){let $=this._callbacks.pop();clearTimeout($.timeoutId),$.doneCb(this._didWork)}this._didWork=!1});else{let $=this.getPendingTasks();this._callbacks=this._callbacks.filter(ce=>!ce.updateCb||!ce.updateCb($)||(clearTimeout(ce.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map($=>({source:$.source,creationLocation:$.creationLocation,data:$.data})):[]}addCallback($,ce,be){let Re=-1;ce&&ce>0&&(Re=setTimeout(()=>{this._callbacks=this._callbacks.filter(et=>et.timeoutId!==Re),$(this._didWork,this.getPendingTasks())},ce)),this._callbacks.push({doneCb:$,timeoutId:Re,updateCb:be})}whenStable($,ce,be){if(be&&!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($,ce,be),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication($){this.registry.registerApplication($,this)}unregisterApplication($){this.registry.unregisterApplication($)}findProviders($,ce,be){return[]}}return F.\u0275fac=function($){return new($||F)(_n(rl),_n(Qx),_n(qx))},F.\u0275prov=Ee({token:F,factory:F.\u0275fac}),F})(),Qx=(()=>{class F{constructor(){this._applications=new Map}registerApplication($,ce){this._applications.set($,ce)}unregisterApplication($){this._applications.delete($)}unregisterAllApplications(){this._applications.clear()}getTestability($){return this._applications.get($)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree($,ce=!0){return b0?.findTestabilityInTree(this,$,ce)??null}}return F.\u0275fac=function($){return new($||F)},F.\u0275prov=Ee({token:F,factory:F.\u0275fac,providedIn:"platform"}),F})(),mu=null;const eb=new ya("AllowMultipleToken"),tb=new ya("PlatformDestroyListeners");class BM{constructor(H,$){this.name=H,this.token=$}}function hO(F,H,$=[]){const ce=`Platform: ${H}`,be=new ya(ce);return(Re=[])=>{let et=Fs();if(!et||et.injector.get(eb,!1)){const Tt=[...$,...Re,{provide:be,useValue:!0}];F?F(Tt):function FM(F){if(mu&&!mu.get(eb,!1))throw new W(400,!1);mu=F;const H=F.get(Bv);(function ib(F){const H=F.get(v0,null);H&&H.forEach($=>$())})(F)}(function ob(F=[],H){return Xc.create({name:H,providers:[{provide:Wi,useValue:"platform"},{provide:tb,useValue:new Set([()=>mu=null])},...F]})}(Tt,ce))}return function rb(F){const H=Fs();if(!H)throw new W(401,!1);return H}()}}function Fs(){return mu?.get(Bv)??null}let Bv=(()=>{class F{constructor($){this._injector=$,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory($,ce){const be=function ab(F,H){let $;return $="noop"===F?new RM:("zone.js"===F?void 0:F)||new rl(H),$}(ce?.ngZone,function pO(F){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!F||!F.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!F||!F.ngZoneRunCoalescing)||!1}}(ce)),Re=[{provide:rl,useValue:be}];return be.run(()=>{const et=Xc.create({providers:Re,parent:this.injector,name:$.moduleType.name}),Tt=$.create(et),zt=Tt.injector.get(lp,null);if(!zt)throw new W(402,!1);return be.runOutsideAngular(()=>{const cn=be.onError.subscribe({next:Fn=>{zt.handleError(Fn)}});Tt.onDestroy(()=>{Gu(this._modules,Tt),cn.unsubscribe()})}),function sb(F,H,$){try{const ce=$();return xC(ce)?ce.catch(be=>{throw H.runOutsideAngular(()=>F.handleError(be)),be}):ce}catch(ce){throw H.runOutsideAngular(()=>F.handleError(ce)),ce}}(zt,be,()=>{const cn=Tt.injector.get(ch);return cn.runInitializers(),cn.donePromise.then(()=>(function MI(F){_e(F,"Expected localeId to be defined"),"string"==typeof F&&(JE=F.toLowerCase().replace(/_/g,"-"))}(Tt.injector.get(C0,sh)||sh),this._moduleDoBootstrap(Tt),Tt))})})}bootstrapModule($,ce=[]){const be=gO({},ce);return function uO(F,H,$){const ce=new uf($);return Promise.resolve(ce)}(0,0,$).then(Re=>this.bootstrapModuleFactory(Re,be))}_moduleDoBootstrap($){const ce=$.injector.get(Zl);if($._bootstrapComponents.length>0)$._bootstrapComponents.forEach(be=>ce.bootstrap(be));else{if(!$.instance.ngDoBootstrap)throw new W(-403,!1);$.instance.ngDoBootstrap(ce)}this._modules.push($)}onDestroy($){this._destroyListeners.push($)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new W(404,!1);this._modules.slice().forEach(ce=>ce.destroy()),this._destroyListeners.forEach(ce=>ce());const $=this._injector.get(tb,null);$&&($.forEach(ce=>ce()),$.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return F.\u0275fac=function($){return new($||F)(_n(Xc))},F.\u0275prov=Ee({token:F,factory:F.\u0275fac,providedIn:"platform"}),F})();function gO(F,H){return Array.isArray(H)?H.reduce(gO,F):{...F,...H}}let Zl=(()=>{class F{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor($,ce,be){this._zone=$,this._injector=ce,this._exceptionHandler=be,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 Re=new I.y(Tt=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Tt.next(this._stable),Tt.complete()})}),et=new I.y(Tt=>{let zt;this._zone.runOutsideAngular(()=>{zt=this._zone.onStable.subscribe(()=>{rl.assertNotInAngularZone(),x0(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Tt.next(!0))})})});const cn=this._zone.onUnstable.subscribe(()=>{rl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Tt.next(!1)}))});return()=>{zt.unsubscribe(),cn.unsubscribe()}});this.isStable=function p(...F){let H=Number.POSITIVE_INFINITY,$=null,ce=F[F.length-1];return(0,C.K)(ce)?($=F.pop(),F.length>1&&"number"==typeof F[F.length-1]&&(H=F.pop())):"number"==typeof ce&&(H=F.pop()),null===$&&1===F.length&&F[0]instanceof I.y?F[0]:(0,f.J)(H)((0,a.n)(F,$))}(Re,et.pipe(function x(){return F=>(0,h.x)()(function u(F,H){return function(ce){let be;if(be="function"==typeof F?F:function(){return F},"function"==typeof H)return ce.lift(new d(be,H));const Re=Object.create(ce,s.N);return Re.source=ce,Re.subjectFactory=be,Re}}(g)(F))}()))}bootstrap($,ce){const be=$ instanceof S_;if(!this._injector.get(ch).done)throw!be&&so($),new W(405,false);let et;et=be?$:this._injector.get(Gc).resolveComponentFactory($),this.componentTypes.push(et.componentType);const Tt=function nb(F){return F.isBoundToModule}(et)?void 0:this._injector.get(wl),cn=et.create(Xc.NULL,[],ce||et.selector,Tt),Fn=cn.location.nativeElement,ri=cn.injector.get(Lv,null);return ri?.registerApplication(Fn),cn.onDestroy(()=>{this.detachView(cn.hostView),Gu(this.components,cn),ri?.unregisterApplication(Fn)}),this._loadComponent(cn),cn}tick(){if(this._runningTick)throw new W(101,!1);try{this._runningTick=!0;for(let $ of this._views)$.detectChanges()}catch($){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError($))}finally{this._runningTick=!1}}attachView($){const ce=$;this._views.push(ce),ce.attachToAppRef(this)}detachView($){const ce=$;Gu(this._views,ce),ce.detachFromAppRef()}_loadComponent($){this.attachView($.hostView),this.tick(),this.components.push($);const ce=this._injector.get(Iv,[]);ce.push(...this._bootstrapListeners),ce.forEach(be=>be($))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach($=>$()),this._views.slice().forEach($=>$.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy($){return this._destroyListeners.push($),()=>Gu(this._destroyListeners,$)}destroy(){if(this._destroyed)throw new W(406,!1);const $=this._injector;$.destroy&&!$.destroyed&&$.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return F.\u0275fac=function($){return new($||F)(_n(rl),_n(ao),_n(lp))},F.\u0275prov=Ee({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();function Gu(F,H){const $=F.indexOf(H);$>-1&&F.splice($,1)}function Od(){}let VM=(()=>{class F{}return F.__NG_ELEMENT_ID__=NM,F})();function NM(F){return function Cf(F,H,$){if(Yn(F)&&!$){const ce=$o(F.index,H);return new Vm(ce,ce)}return 47&F.type?new Vm(H[16],H):null}(Qn(),at(),16==(16&F))}class yO{constructor(){}supports(H){return Um(H)}create(H){return new Wv(H)}}const S0=(F,H)=>H;class Wv{constructor(H){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=H||S0}forEachItem(H){let $;for($=this._itHead;null!==$;$=$._next)H($)}forEachOperation(H){let $=this._itHead,ce=this._removalsHead,be=0,Re=null;for(;$||ce;){const et=!ce||$&&$.currentIndex<_u(ce,be,Re)?$:ce,Tt=_u(et,be,Re),zt=et.currentIndex;if(et===ce)be--,ce=ce._nextRemoved;else if($=$._next,null==et.previousIndex)be++;else{Re||(Re=[]);const cn=Tt-be,Fn=zt-be;if(cn!=Fn){for(let Di=0;Di<cn;Di++){const Ni=Di<Re.length?Re[Di]:Re[Di]=0,ar=Ni+Di;Fn<=ar&&ar<cn&&(Re[Di]=Ni+1)}Re[et.previousIndex]=Fn-cn}}Tt!==zt&&H(et,Tt,zt)}}forEachPreviousItem(H){let $;for($=this._previousItHead;null!==$;$=$._nextPrevious)H($)}forEachAddedItem(H){let $;for($=this._additionsHead;null!==$;$=$._nextAdded)H($)}forEachMovedItem(H){let $;for($=this._movesHead;null!==$;$=$._nextMoved)H($)}forEachRemovedItem(H){let $;for($=this._removalsHead;null!==$;$=$._nextRemoved)H($)}forEachIdentityChange(H){let $;for($=this._identityChangesHead;null!==$;$=$._nextIdentityChange)H($)}diff(H){if(null==H&&(H=[]),!Um(H))throw new W(900,!1);return this.check(H)?this:null}onDestroy(){}check(H){this._reset();let be,Re,et,$=this._itHead,ce=!1;if(Array.isArray(H)){this.length=H.length;for(let Tt=0;Tt<this.length;Tt++)Re=H[Tt],et=this._trackByFn(Tt,Re),null!==$&&Object.is($.trackById,et)?(ce&&($=this._verifyReinsertion($,Re,et,Tt)),Object.is($.item,Re)||this._addIdentityChange($,Re)):($=this._mismatch($,Re,et,Tt),ce=!0),$=$._next}else be=0,function _E(F,H){if(Array.isArray(F))for(let $=0;$<F.length;$++)H(F[$]);else{const $=F[mp()]();let ce;for(;!(ce=$.next()).done;)H(ce.value)}}(H,Tt=>{et=this._trackByFn(be,Tt),null!==$&&Object.is($.trackById,et)?(ce&&($=this._verifyReinsertion($,Tt,et,be)),Object.is($.item,Tt)||this._addIdentityChange($,Tt)):($=this._mismatch($,Tt,et,be),ce=!0),$=$._next,be++}),this.length=be;return this._truncate($),this.collection=H,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let H;for(H=this._previousItHead=this._itHead;null!==H;H=H._next)H._nextPrevious=H._next;for(H=this._additionsHead;null!==H;H=H._nextAdded)H.previousIndex=H.currentIndex;for(this._additionsHead=this._additionsTail=null,H=this._movesHead;null!==H;H=H._nextMoved)H.previousIndex=H.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(H,$,ce,be){let Re;return null===H?Re=this._itTail:(Re=H._prev,this._remove(H)),null!==(H=null===this._unlinkedRecords?null:this._unlinkedRecords.get(ce,null))?(Object.is(H.item,$)||this._addIdentityChange(H,$),this._reinsertAfter(H,Re,be)):null!==(H=null===this._linkedRecords?null:this._linkedRecords.get(ce,be))?(Object.is(H.item,$)||this._addIdentityChange(H,$),this._moveAfter(H,Re,be)):H=this._addAfter(new CO($,ce),Re,be),H}_verifyReinsertion(H,$,ce,be){let Re=null===this._unlinkedRecords?null:this._unlinkedRecords.get(ce,null);return null!==Re?H=this._reinsertAfter(Re,H._prev,be):H.currentIndex!=be&&(H.currentIndex=be,this._addToMoves(H,be)),H}_truncate(H){for(;null!==H;){const $=H._next;this._addToRemovals(this._unlink(H)),H=$}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(H,$,ce){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(H);const be=H._prevRemoved,Re=H._nextRemoved;return null===be?this._removalsHead=Re:be._nextRemoved=Re,null===Re?this._removalsTail=be:Re._prevRemoved=be,this._insertAfter(H,$,ce),this._addToMoves(H,ce),H}_moveAfter(H,$,ce){return this._unlink(H),this._insertAfter(H,$,ce),this._addToMoves(H,ce),H}_addAfter(H,$,ce){return this._insertAfter(H,$,ce),this._additionsTail=null===this._additionsTail?this._additionsHead=H:this._additionsTail._nextAdded=H,H}_insertAfter(H,$,ce){const be=null===$?this._itHead:$._next;return H._next=be,H._prev=$,null===be?this._itTail=H:be._prev=H,null===$?this._itHead=H:$._next=H,null===this._linkedRecords&&(this._linkedRecords=new hb),this._linkedRecords.put(H),H.currentIndex=ce,H}_remove(H){return this._addToRemovals(this._unlink(H))}_unlink(H){null!==this._linkedRecords&&this._linkedRecords.remove(H);const $=H._prev,ce=H._next;return null===$?this._itHead=ce:$._next=ce,null===ce?this._itTail=$:ce._prev=$,H}_addToMoves(H,$){return H.previousIndex===$||(this._movesTail=null===this._movesTail?this._movesHead=H:this._movesTail._nextMoved=H),H}_addToRemovals(H){return null===this._unlinkedRecords&&(this._unlinkedRecords=new hb),this._unlinkedRecords.put(H),H.currentIndex=null,H._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=H,H._prevRemoved=null):(H._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=H),H}_addIdentityChange(H,$){return H.item=$,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=H:this._identityChangesTail._nextIdentityChange=H,H}}class CO{constructor(H,$){this.item=H,this.trackById=$,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 F2{constructor(){this._head=null,this._tail=null}add(H){null===this._head?(this._head=this._tail=H,H._nextDup=null,H._prevDup=null):(this._tail._nextDup=H,H._prevDup=this._tail,H._nextDup=null,this._tail=H)}get(H,$){let ce;for(ce=this._head;null!==ce;ce=ce._nextDup)if((null===$||$<=ce.currentIndex)&&Object.is(ce.trackById,H))return ce;return null}remove(H){const $=H._prevDup,ce=H._nextDup;return null===$?this._head=ce:$._nextDup=ce,null===ce?this._tail=$:ce._prevDup=$,null===this._head}}class hb{constructor(){this.map=new Map}put(H){const $=H.trackById;let ce=this.map.get($);ce||(ce=new F2,this.map.set($,ce)),ce.add(H)}get(H,$){const be=this.map.get(H);return be?be.get(H,$):null}remove(H){const $=H.trackById;return this.map.get($).remove(H)&&this.map.delete($),H}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _u(F,H,$){const ce=F.previousIndex;if(null===ce)return ce;let be=0;return $&&ce<$.length&&(be=$[ce]),ce+H+be}class xO{constructor(){}supports(H){return H instanceof Map||W_(H)}create(){return new O0}}class O0{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(H){let $;for($=this._mapHead;null!==$;$=$._next)H($)}forEachPreviousItem(H){let $;for($=this._previousMapHead;null!==$;$=$._nextPrevious)H($)}forEachChangedItem(H){let $;for($=this._changesHead;null!==$;$=$._nextChanged)H($)}forEachAddedItem(H){let $;for($=this._additionsHead;null!==$;$=$._nextAdded)H($)}forEachRemovedItem(H){let $;for($=this._removalsHead;null!==$;$=$._nextRemoved)H($)}diff(H){if(H){if(!(H instanceof Map||W_(H)))throw new W(900,!1)}else H=new Map;return this.check(H)?this:null}onDestroy(){}check(H){this._reset();let $=this._mapHead;if(this._appendAfter=null,this._forEach(H,(ce,be)=>{if($&&$.key===be)this._maybeAddToChanges($,ce),this._appendAfter=$,$=$._next;else{const Re=this._getOrCreateRecordForKey(be,ce);$=this._insertBeforeOrAppend($,Re)}}),$){$._prev&&($._prev._next=null),this._removalsHead=$;for(let ce=$;null!==ce;ce=ce._nextRemoved)ce===this._mapHead&&(this._mapHead=null),this._records.delete(ce.key),ce._nextRemoved=ce._next,ce.previousValue=ce.currentValue,ce.currentValue=null,ce._prev=null,ce._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(H,$){if(H){const ce=H._prev;return $._next=H,$._prev=ce,H._prev=$,ce&&(ce._next=$),H===this._mapHead&&(this._mapHead=$),this._appendAfter=H,H}return this._appendAfter?(this._appendAfter._next=$,$._prev=this._appendAfter):this._mapHead=$,this._appendAfter=$,null}_getOrCreateRecordForKey(H,$){if(this._records.has(H)){const be=this._records.get(H);this._maybeAddToChanges(be,$);const Re=be._prev,et=be._next;return Re&&(Re._next=et),et&&(et._prev=Re),be._next=null,be._prev=null,be}const ce=new pb(H);return this._records.set(H,ce),ce.currentValue=$,this._addToAdditions(ce),ce}_reset(){if(this.isDirty){let H;for(this._previousMapHead=this._mapHead,H=this._previousMapHead;null!==H;H=H._next)H._nextPrevious=H._next;for(H=this._changesHead;null!==H;H=H._nextChanged)H.previousValue=H.currentValue;for(H=this._additionsHead;null!=H;H=H._nextAdded)H.previousValue=H.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(H,$){Object.is($,H.currentValue)||(H.previousValue=H.currentValue,H.currentValue=$,this._addToChanges(H))}_addToAdditions(H){null===this._additionsHead?this._additionsHead=this._additionsTail=H:(this._additionsTail._nextAdded=H,this._additionsTail=H)}_addToChanges(H){null===this._changesHead?this._changesHead=this._changesTail=H:(this._changesTail._nextChanged=H,this._changesTail=H)}_forEach(H,$){H instanceof Map?H.forEach($):Object.keys(H).forEach(ce=>$(H[ce],ce))}}class pb{constructor(H){this.key=H,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 bO(){return new mh([new yO])}let mh=(()=>{class F{constructor($){this.factories=$}static create($,ce){if(null!=ce){const be=ce.factories.slice();$=$.concat(be)}return new F($)}static extend($){return{provide:F,useFactory:ce=>F.create($,ce||bO()),deps:[[F,new nu,new Au]]}}find($){const ce=this.factories.find(be=>be.supports($));if(null!=ce)return ce;throw new W(901,!1)}}return F.\u0275prov=Ee({token:F,providedIn:"root",factory:bO}),F})();function gb(){return new fb([new xO])}let fb=(()=>{class F{constructor($){this.factories=$}static create($,ce){if(ce){const be=ce.factories.slice();$=$.concat(be)}return new F($)}static extend($){return{provide:F,useFactory:ce=>F.create($,ce||gb()),deps:[[F,new nu,new Au]]}}find($){const ce=this.factories.find(be=>be.supports($));if(ce)return ce;throw new W(901,!1)}}return F.\u0275prov=Ee({token:F,providedIn:"root",factory:gb}),F})();const Uv=hO(null,"core",[]);let SO=(()=>{class F{constructor($){}}return F.\u0275fac=function($){return new($||F)(_n(Zl))},F.\u0275mod=Dr({type:F}),F.\u0275inj=te({}),F})();function KM(F){return"boolean"==typeof F?F:null!=F&&"false"!==F}},8942:(kn,he,l)=>{"use strict";l.d(he,{Wl:()=>b,Fj:()=>O,u5:()=>va,JU:()=>g,JJ:()=>Ne,JL:()=>ft,F:()=>ir,On:()=>or,_Y:()=>cr});var o=l(4370),c=l(8692),I=l(6666),C=l(882),f=l(9796),a=l(8002),p=l(1555);function u(Qt,Kt){return new C.y(Pt=>{const Pn=Qt.length;if(0===Pn)return void Pt.complete();const Vi=new Array(Pn);let Wr=0,fo=0;for(let vt=0;vt<Pn;vt++){const ot=(0,I.D)(Qt[vt]);let We=!1;Pt.add(ot.subscribe({next:nt=>{We||(We=!0,fo++),Vi[vt]=nt},error:nt=>Pt.error(nt),complete:()=>{Wr++,(Wr===Pn||!We)&&(fo===Pn&&Pt.next(Kt?Kt.reduce((nt,at,Yt)=>(nt[at]=Vi[Yt],nt),{}):Vi),Pt.complete())}}))}})}let d=(()=>{class Qt{constructor(Pt,Pn){this._renderer=Pt,this._elementRef=Pn,this.onChange=Vi=>{},this.onTouched=()=>{}}setProperty(Pt,Pn){this._renderer.setProperty(this._elementRef.nativeElement,Pt,Pn)}registerOnTouched(Pt){this.onTouched=Pt}registerOnChange(Pt){this.onChange=Pt}setDisabledState(Pt){this.setProperty("disabled",Pt)}}return Qt.\u0275fac=function(Pt){return new(Pt||Qt)(o.Y36(o.Qsj),o.Y36(o.SBq))},Qt.\u0275dir=o.lG2({type:Qt}),Qt})(),h=(()=>{class Qt extends d{}return Qt.\u0275fac=function(){let Kt;return function(Pn){return(Kt||(Kt=o.n5z(Qt)))(Pn||Qt)}}(),Qt.\u0275dir=o.lG2({type:Qt,features:[o.qOj]}),Qt})();const g=new o.OlP("NgValueAccessor"),x={provide:g,useExisting:(0,o.Gpc)(()=>b),multi:!0};let b=(()=>{class Qt extends h{writeValue(Pt){this.setProperty("checked",Pt)}}return Qt.\u0275fac=function(){let Kt;return function(Pn){return(Kt||(Kt=o.n5z(Qt)))(Pn||Qt)}}(),Qt.\u0275dir=o.lG2({type:Qt,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Pt,Pn){1&Pt&&o.NdJ("change",function(Wr){return Pn.onChange(Wr.target.checked)})("blur",function(){return Pn.onTouched()})},features:[o._Bn([x]),o.qOj]}),Qt})();const y={provide:g,useExisting:(0,o.Gpc)(()=>O),multi:!0},S=new o.OlP("CompositionEventMode");let O=(()=>{class Qt extends d{constructor(Pt,Pn,Vi){super(Pt,Pn),this._compositionMode=Vi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function E(){const Qt=(0,c.q)()?(0,c.q)().getUserAgent():"";return/android (\d+)/.test(Qt.toLowerCase())}())}writeValue(Pt){this.setProperty("value",Pt??"")}_handleInput(Pt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Pt)}_compositionStart(){this._composing=!0}_compositionEnd(Pt){this._composing=!1,this._compositionMode&&this.onChange(Pt)}}return Qt.\u0275fac=function(Pt){return new(Pt||Qt)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(S,8))},Qt.\u0275dir=o.lG2({type:Qt,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(Pt,Pn){1&Pt&&o.NdJ("input",function(Wr){return Pn._handleInput(Wr.target.value)})("blur",function(){return Pn.onTouched()})("compositionstart",function(){return Pn._compositionStart()})("compositionend",function(Wr){return Pn._compositionEnd(Wr.target.value)})},features:[o._Bn([y]),o.qOj]}),Qt})();const R=new o.OlP("NgValidators"),P=new o.OlP("NgAsyncValidators");function q(Qt){return null!=Qt}function Z(Qt){return(0,o.QGY)(Qt)?(0,I.D)(Qt):Qt}function X(Qt){let Kt={};return Qt.forEach(Pt=>{Kt=null!=Pt?{...Kt,...Pt}:Kt}),0===Object.keys(Kt).length?null:Kt}function M(Qt,Kt){return Kt.map(Pt=>Pt(Qt))}function ge(Qt){return Qt.map(Kt=>function se(Qt){return!Qt.validate}(Kt)?Kt:Pt=>Kt.validate(Pt))}function Fe(Qt){return null!=Qt?function De(Qt){if(!Qt)return null;const Kt=Qt.filter(q);return 0==Kt.length?null:function(Pt){return X(M(Pt,Kt))}}(ge(Qt)):null}function ne(Qt){return null!=Qt?function Ae(Qt){if(!Qt)return null;const Kt=Qt.filter(q);return 0==Kt.length?null:function(Pt){return function s(...Qt){if(1===Qt.length){const Kt=Qt[0];if((0,f.k)(Kt))return u(Kt,null);if((0,p.K)(Kt)&&Object.getPrototypeOf(Kt)===Object.prototype){const Pt=Object.keys(Kt);return u(Pt.map(Pn=>Kt[Pn]),Pt)}}if("function"==typeof Qt[Qt.length-1]){const Kt=Qt.pop();return u(Qt=1===Qt.length&&(0,f.k)(Qt[0])?Qt[0]:Qt,null).pipe((0,a.U)(Pt=>Kt(...Pt)))}return u(Qt,null)}(M(Pt,Kt).map(Z)).pipe((0,a.U)(X))}}(ge(Qt)):null}function fe(Qt,Kt){return null===Qt?[Kt]:Array.isArray(Qt)?[...Qt,Kt]:[Qt,Kt]}function de(Qt){return Qt?Array.isArray(Qt)?Qt:[Qt]:[]}function le(Qt,Kt){return Array.isArray(Qt)?Qt.includes(Kt):Qt===Kt}function pe(Qt,Kt){const Pt=de(Kt);return de(Qt).forEach(Vi=>{le(Pt,Vi)||Pt.push(Vi)}),Pt}function Ee(Qt,Kt){return de(Kt).filter(Pt=>!le(Qt,Pt))}class ae{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(Kt){this._rawValidators=Kt||[],this._composedValidatorFn=Fe(this._rawValidators)}_setAsyncValidators(Kt){this._rawAsyncValidators=Kt||[],this._composedAsyncValidatorFn=ne(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Kt){this._onDestroyCallbacks.push(Kt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Kt=>Kt()),this._onDestroyCallbacks=[]}reset(Kt){this.control&&this.control.reset(Kt)}hasError(Kt,Pt){return!!this.control&&this.control.hasError(Kt,Pt)}getError(Kt,Pt){return this.control?this.control.getError(Kt,Pt):null}}class te extends ae{get formDirective(){return null}get path(){return null}}class re extends ae{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class oe{constructor(Kt){this._cd=Kt}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 Ne=(()=>{class Qt extends oe{constructor(Pt){super(Pt)}}return Qt.\u0275fac=function(Pt){return new(Pt||Qt)(o.Y36(re,2))},Qt.\u0275dir=o.lG2({type:Qt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Pt,Pn){2&Pt&&o.ekj("ng-untouched",Pn.isUntouched)("ng-touched",Pn.isTouched)("ng-pristine",Pn.isPristine)("ng-dirty",Pn.isDirty)("ng-valid",Pn.isValid)("ng-invalid",Pn.isInvalid)("ng-pending",Pn.isPending)},features:[o.qOj]}),Qt})(),ft=(()=>{class Qt extends oe{constructor(Pt){super(Pt)}}return Qt.\u0275fac=function(Pt){return new(Pt||Qt)(o.Y36(te,10))},Qt.\u0275dir=o.lG2({type:Qt,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Pt,Pn){2&Pt&&o.ekj("ng-untouched",Pn.isUntouched)("ng-touched",Pn.isTouched)("ng-pristine",Pn.isPristine)("ng-dirty",Pn.isDirty)("ng-valid",Pn.isValid)("ng-invalid",Pn.isInvalid)("ng-pending",Pn.isPending)("ng-submitted",Pn.isSubmitted)},features:[o.qOj]}),Qt})();const Ht="VALID",dt="INVALID",ht="PENDING",yt="DISABLED";function Ft(Qt){return(Jn(Qt)?Qt.validators:Qt)||null}function _n(Qt,Kt){return(Jn(Kt)?Kt.asyncValidators:Qt)||null}function Jn(Qt){return null!=Qt&&!Array.isArray(Qt)&&"object"==typeof Qt}class Vn{constructor(Kt,Pt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Kt),this._assignAsyncValidators(Pt)}get validator(){return this._composedValidatorFn}set validator(Kt){this._rawValidators=this._composedValidatorFn=Kt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Kt){this._rawAsyncValidators=this._composedAsyncValidatorFn=Kt}get parent(){return this._parent}get valid(){return this.status===Ht}get invalid(){return this.status===dt}get pending(){return this.status==ht}get disabled(){return this.status===yt}get enabled(){return this.status!==yt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Kt){this._assignValidators(Kt)}setAsyncValidators(Kt){this._assignAsyncValidators(Kt)}addValidators(Kt){this.setValidators(pe(Kt,this._rawValidators))}addAsyncValidators(Kt){this.setAsyncValidators(pe(Kt,this._rawAsyncValidators))}removeValidators(Kt){this.setValidators(Ee(Kt,this._rawValidators))}removeAsyncValidators(Kt){this.setAsyncValidators(Ee(Kt,this._rawAsyncValidators))}hasValidator(Kt){return le(this._rawValidators,Kt)}hasAsyncValidator(Kt){return le(this._rawAsyncValidators,Kt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Kt={}){this.touched=!0,this._parent&&!Kt.onlySelf&&this._parent.markAsTouched(Kt)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Kt=>Kt.markAllAsTouched())}markAsUntouched(Kt={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Pt=>{Pt.markAsUntouched({onlySelf:!0})}),this._parent&&!Kt.onlySelf&&this._parent._updateTouched(Kt)}markAsDirty(Kt={}){this.pristine=!1,this._parent&&!Kt.onlySelf&&this._parent.markAsDirty(Kt)}markAsPristine(Kt={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Pt=>{Pt.markAsPristine({onlySelf:!0})}),this._parent&&!Kt.onlySelf&&this._parent._updatePristine(Kt)}markAsPending(Kt={}){this.status=ht,!1!==Kt.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Kt.onlySelf&&this._parent.markAsPending(Kt)}disable(Kt={}){const Pt=this._parentMarkedDirty(Kt.onlySelf);this.status=yt,this.errors=null,this._forEachChild(Pn=>{Pn.disable({...Kt,onlySelf:!0})}),this._updateValue(),!1!==Kt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Kt,skipPristineCheck:Pt}),this._onDisabledChange.forEach(Pn=>Pn(!0))}enable(Kt={}){const Pt=this._parentMarkedDirty(Kt.onlySelf);this.status=Ht,this._forEachChild(Pn=>{Pn.enable({...Kt,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Kt.emitEvent}),this._updateAncestors({...Kt,skipPristineCheck:Pt}),this._onDisabledChange.forEach(Pn=>Pn(!1))}_updateAncestors(Kt){this._parent&&!Kt.onlySelf&&(this._parent.updateValueAndValidity(Kt),Kt.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Kt){this._parent=Kt}getRawValue(){return this.value}updateValueAndValidity(Kt={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ht||this.status===ht)&&this._runAsyncValidator(Kt.emitEvent)),!1!==Kt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Kt.onlySelf&&this._parent.updateValueAndValidity(Kt)}_updateTreeValidity(Kt={emitEvent:!0}){this._forEachChild(Pt=>Pt._updateTreeValidity(Kt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Kt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yt:Ht}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Kt){if(this.asyncValidator){this.status=ht,this._hasOwnPendingAsyncValidator=!0;const Pt=Z(this.asyncValidator(this));this._asyncValidationSubscription=Pt.subscribe(Pn=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Pn,{emitEvent:Kt})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Kt,Pt={}){this.errors=Kt,this._updateControlsErrors(!1!==Pt.emitEvent)}get(Kt){let Pt=Kt;return null==Pt||(Array.isArray(Pt)||(Pt=Pt.split(".")),0===Pt.length)?null:Pt.reduce((Pn,Vi)=>Pn&&Pn._find(Vi),this)}getError(Kt,Pt){const Pn=Pt?this.get(Pt):this;return Pn&&Pn.errors?Pn.errors[Kt]:null}hasError(Kt,Pt){return!!this.getError(Kt,Pt)}get root(){let Kt=this;for(;Kt._parent;)Kt=Kt._parent;return Kt}_updateControlsErrors(Kt){this.status=this._calculateStatus(),Kt&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Kt)}_initObservables(){this.valueChanges=new o.vpe,this.statusChanges=new o.vpe}_calculateStatus(){return this._allControlsDisabled()?yt:this.errors?dt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ht)?ht:this._anyControlsHaveStatus(dt)?dt:Ht}_anyControlsHaveStatus(Kt){return this._anyControls(Pt=>Pt.status===Kt)}_anyControlsDirty(){return this._anyControls(Kt=>Kt.dirty)}_anyControlsTouched(){return this._anyControls(Kt=>Kt.touched)}_updatePristine(Kt={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Kt.onlySelf&&this._parent._updatePristine(Kt)}_updateTouched(Kt={}){this.touched=this._anyControlsTouched(),this._parent&&!Kt.onlySelf&&this._parent._updateTouched(Kt)}_registerOnCollectionChange(Kt){this._onCollectionChange=Kt}_setUpdateStrategy(Kt){Jn(Kt)&&null!=Kt.updateOn&&(this._updateOn=Kt.updateOn)}_parentMarkedDirty(Kt){return!Kt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Kt){return null}_assignValidators(Kt){this._rawValidators=Array.isArray(Kt)?Kt.slice():Kt,this._composedValidatorFn=function bn(Qt){return Array.isArray(Qt)?Fe(Qt):Qt||null}(this._rawValidators)}_assignAsyncValidators(Kt){this._rawAsyncValidators=Array.isArray(Kt)?Kt.slice():Kt,this._composedAsyncValidatorFn=function xn(Qt){return Array.isArray(Qt)?ne(Qt):Qt||null}(this._rawAsyncValidators)}}class Oi extends Vn{constructor(Kt,Pt,Pn){super(Ft(Pt),_n(Pn,Pt)),this.controls=Kt,this._initObservables(),this._setUpdateStrategy(Pt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Kt,Pt){return this.controls[Kt]?this.controls[Kt]:(this.controls[Kt]=Pt,Pt.setParent(this),Pt._registerOnCollectionChange(this._onCollectionChange),Pt)}addControl(Kt,Pt,Pn={}){this.registerControl(Kt,Pt),this.updateValueAndValidity({emitEvent:Pn.emitEvent}),this._onCollectionChange()}removeControl(Kt,Pt={}){this.controls[Kt]&&this.controls[Kt]._registerOnCollectionChange(()=>{}),delete this.controls[Kt],this.updateValueAndValidity({emitEvent:Pt.emitEvent}),this._onCollectionChange()}setControl(Kt,Pt,Pn={}){this.controls[Kt]&&this.controls[Kt]._registerOnCollectionChange(()=>{}),delete this.controls[Kt],Pt&&this.registerControl(Kt,Pt),this.updateValueAndValidity({emitEvent:Pn.emitEvent}),this._onCollectionChange()}contains(Kt){return this.controls.hasOwnProperty(Kt)&&this.controls[Kt].enabled}setValue(Kt,Pt={}){(function Ai(Qt,Kt,Pt){Qt._forEachChild((Pn,Vi)=>{if(void 0===Pt[Vi])throw new o.vHH(1002,"")})})(this,0,Kt),Object.keys(Kt).forEach(Pn=>{(function li(Qt,Kt,Pt){const Pn=Qt.controls;if(!(Kt?Object.keys(Pn):Pn).length)throw new o.vHH(1e3,"");if(!Pn[Pt])throw new o.vHH(1001,"")})(this,!0,Pn),this.controls[Pn].setValue(Kt[Pn],{onlySelf:!0,emitEvent:Pt.emitEvent})}),this.updateValueAndValidity(Pt)}patchValue(Kt,Pt={}){null!=Kt&&(Object.keys(Kt).forEach(Pn=>{const Vi=this.controls[Pn];Vi&&Vi.patchValue(Kt[Pn],{onlySelf:!0,emitEvent:Pt.emitEvent})}),this.updateValueAndValidity(Pt))}reset(Kt={},Pt={}){this._forEachChild((Pn,Vi)=>{Pn.reset(Kt[Vi],{onlySelf:!0,emitEvent:Pt.emitEvent})}),this._updatePristine(Pt),this._updateTouched(Pt),this.updateValueAndValidity(Pt)}getRawValue(){return this._reduceChildren({},(Kt,Pt,Pn)=>(Kt[Pn]=Pt.getRawValue(),Kt))}_syncPendingControls(){let Kt=this._reduceChildren(!1,(Pt,Pn)=>!!Pn._syncPendingControls()||Pt);return Kt&&this.updateValueAndValidity({onlySelf:!0}),Kt}_forEachChild(Kt){Object.keys(this.controls).forEach(Pt=>{const Pn=this.controls[Pt];Pn&&Kt(Pn,Pt)})}_setUpControls(){this._forEachChild(Kt=>{Kt.setParent(this),Kt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Kt){for(const[Pt,Pn]of Object.entries(this.controls))if(this.contains(Pt)&&Kt(Pn))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Pt,Pn,Vi)=>((Pn.enabled||this.disabled)&&(Pt[Vi]=Pn.value),Pt))}_reduceChildren(Kt,Pt){let Pn=Kt;return this._forEachChild((Vi,Wr)=>{Pn=Pt(Pn,Vi,Wr)}),Pn}_allControlsDisabled(){for(const Kt of Object.keys(this.controls))if(this.controls[Kt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Kt){return this.controls.hasOwnProperty(Kt)?this.controls[Kt]:null}}const Wn=new o.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Yi}),Yi="always";function ei(Qt,Kt,Pt=Yi){$i(Qt,Kt),Kt.valueAccessor.writeValue(Qt.value),(Qt.disabled||"always"===Pt)&&Kt.valueAccessor.setDisabledState?.(Qt.disabled),function _r(Qt,Kt){Kt.valueAccessor.registerOnChange(Pt=>{Qt._pendingValue=Pt,Qt._pendingChange=!0,Qt._pendingDirty=!0,"change"===Qt.updateOn&&Rn(Qt,Kt)})}(Qt,Kt),function ci(Qt,Kt){const Pt=(Pn,Vi)=>{Kt.valueAccessor.writeValue(Pn),Vi&&Kt.viewToModelUpdate(Pn)};Qt.registerOnChange(Pt),Kt._registerOnDestroy(()=>{Qt._unregisterOnChange(Pt)})}(Qt,Kt),function yn(Qt,Kt){Kt.valueAccessor.registerOnTouched(()=>{Qt._pendingTouched=!0,"blur"===Qt.updateOn&&Qt._pendingChange&&Rn(Qt,Kt),"submit"!==Qt.updateOn&&Qt.markAsTouched()})}(Qt,Kt),function Hi(Qt,Kt){if(Kt.valueAccessor.setDisabledState){const Pt=Pn=>{Kt.valueAccessor.setDisabledState(Pn)};Qt.registerOnDisabledChange(Pt),Kt._registerOnDestroy(()=>{Qt._unregisterOnDisabledChange(Pt)})}}(Qt,Kt)}function di(Qt,Kt){Qt.forEach(Pt=>{Pt.registerOnValidatorChange&&Pt.registerOnValidatorChange(Kt)})}function $i(Qt,Kt){const Pt=function _e(Qt){return Qt._rawValidators}(Qt);null!==Kt.validator?Qt.setValidators(fe(Pt,Kt.validator)):"function"==typeof Pt&&Qt.setValidators([Pt]);const Pn=function ie(Qt){return Qt._rawAsyncValidators}(Qt);null!==Kt.asyncValidator?Qt.setAsyncValidators(fe(Pn,Kt.asyncValidator)):"function"==typeof Pn&&Qt.setAsyncValidators([Pn]);const Vi=()=>Qt.updateValueAndValidity();di(Kt._rawValidators,Vi),di(Kt._rawAsyncValidators,Vi)}function Rn(Qt,Kt){Qt._pendingDirty&&Qt.markAsDirty(),Qt.setValue(Qt._pendingValue,{emitModelToViewChange:!1}),Kt.viewToModelUpdate(Qt._pendingValue),Qt._pendingChange=!1}const oo={provide:te,useExisting:(0,o.Gpc)(()=>ir)},fi=(()=>Promise.resolve())();let ir=(()=>{class Qt extends te{constructor(Pt,Pn,Vi){super(),this.callSetDisabledState=Vi,this.submitted=!1,this._directives=new Set,this.ngSubmit=new o.vpe,this.form=new Oi({},Fe(Pt),ne(Pn))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Pt){fi.then(()=>{const Pn=this._findContainer(Pt.path);Pt.control=Pn.registerControl(Pt.name,Pt.control),ei(Pt.control,Pt,this.callSetDisabledState),Pt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Pt)})}getControl(Pt){return this.form.get(Pt.path)}removeControl(Pt){fi.then(()=>{const Pn=this._findContainer(Pt.path);Pn&&Pn.removeControl(Pt.name),this._directives.delete(Pt)})}addFormGroup(Pt){fi.then(()=>{const Pn=this._findContainer(Pt.path),Vi=new Oi({});(function Si(Qt,Kt){$i(Qt,Kt)})(Vi,Pt),Pn.registerControl(Pt.name,Vi),Vi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Pt){fi.then(()=>{const Pn=this._findContainer(Pt.path);Pn&&Pn.removeControl(Pt.name)})}getFormGroup(Pt){return this.form.get(Pt.path)}updateModel(Pt,Pn){fi.then(()=>{this.form.get(Pt.path).setValue(Pn)})}setValue(Pt){this.control.setValue(Pt)}onSubmit(Pt){return this.submitted=!0,function Nr(Qt,Kt){Qt._syncPendingControls(),Kt.forEach(Pt=>{const Pn=Pt.control;"submit"===Pn.updateOn&&Pn._pendingChange&&(Pt.viewToModelUpdate(Pn._pendingValue),Pn._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(Pt),"dialog"===Pt?.target?.method}onReset(){this.resetForm()}resetForm(Pt){this.form.reset(Pt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Pt){return Pt.pop(),Pt.length?this.form.get(Pt):this.form}}return Qt.\u0275fac=function(Pt){return new(Pt||Qt)(o.Y36(R,10),o.Y36(P,10),o.Y36(Wn,8))},Qt.\u0275dir=o.lG2({type:Qt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Pt,Pn){1&Pt&&o.NdJ("submit",function(Wr){return Pn.onSubmit(Wr)})("reset",function(){return Pn.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o._Bn([oo]),o.qOj]}),Qt})();function Kr(Qt,Kt){const Pt=Qt.indexOf(Kt);Pt>-1&&Qt.splice(Pt,1)}function to(Qt){return"object"==typeof Qt&&null!==Qt&&2===Object.keys(Qt).length&&"value"in Qt&&"disabled"in Qt}const uo=class extends Vn{constructor(Kt=null,Pt,Pn){super(Ft(Pt),_n(Pn,Pt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Kt),this._setUpdateStrategy(Pt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Jn(Pt)&&(Pt.nonNullable||Pt.initialValueIsDefault)&&(this.defaultValue=to(Kt)?Kt.value:Kt)}setValue(Kt,Pt={}){this.value=this._pendingValue=Kt,this._onChange.length&&!1!==Pt.emitModelToViewChange&&this._onChange.forEach(Pn=>Pn(this.value,!1!==Pt.emitViewToModelChange)),this.updateValueAndValidity(Pt)}patchValue(Kt,Pt={}){this.setValue(Kt,Pt)}reset(Kt=this.defaultValue,Pt={}){this._applyFormState(Kt),this.markAsPristine(Pt),this.markAsUntouched(Pt),this.setValue(this.value,Pt),this._pendingChange=!1}_updateValue(){}_anyControls(Kt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Kt){this._onChange.push(Kt)}_unregisterOnChange(Kt){Kr(this._onChange,Kt)}registerOnDisabledChange(Kt){this._onDisabledChange.push(Kt)}_unregisterOnDisabledChange(Kt){Kr(this._onDisabledChange,Kt)}_forEachChild(Kt){}_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(Kt){to(Kt)?(this.value=this._pendingValue=Kt.value,Kt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Kt}},gi={provide:re,useExisting:(0,o.Gpc)(()=>or)},Ri=(()=>Promise.resolve())();let or=(()=>{class Qt extends re{constructor(Pt,Pn,Vi,Wr,fo,vt){super(),this._changeDetectorRef=fo,this.callSetDisabledState=vt,this.control=new uo,this._registered=!1,this.update=new o.vpe,this._parent=Pt,this._setValidators(Pn),this._setAsyncValidators(Vi),this.valueAccessor=function Tr(Qt,Kt){if(!Kt)return null;let Pt,Pn,Vi;return Array.isArray(Kt),Kt.forEach(Wr=>{Wr.constructor===O?Pt=Wr:function Vr(Qt){return Object.getPrototypeOf(Qt.constructor)===h}(Wr)?Pn=Wr:Vi=Wr}),Vi||Pn||Pt||null}(0,Wr)}ngOnChanges(Pt){if(this._checkForErrors(),!this._registered||"name"in Pt){if(this._registered&&(this._checkName(),this.formDirective)){const Pn=Pt.name.previousValue;this.formDirective.removeControl({name:Pn,path:this._getPath(Pn)})}this._setUpControl()}"isDisabled"in Pt&&this._updateDisabled(Pt),function xr(Qt,Kt){if(!Qt.hasOwnProperty("model"))return!1;const Pt=Qt.model;return!!Pt.isFirstChange()||!Object.is(Kt,Pt.currentValue)}(Pt,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(Pt){this.viewModel=Pt,this.update.emit(Pt)}_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(){ei(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(Pt){Ri.then(()=>{this.control.setValue(Pt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Pt){const Pn=Pt.isDisabled.currentValue,Vi=0!==Pn&&(0,o.D6c)(Pn);Ri.then(()=>{Vi&&!this.control.disabled?this.control.disable():!Vi&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Pt){return this._parent?function On(Qt,Kt){return[...Kt.path,Qt]}(Pt,this._parent):[Pt]}}return Qt.\u0275fac=function(Pt){return new(Pt||Qt)(o.Y36(te,9),o.Y36(R,10),o.Y36(P,10),o.Y36(g,10),o.Y36(o.sBO,8),o.Y36(Wn,8))},Qt.\u0275dir=o.lG2({type:Qt,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[o._Bn([gi]),o.qOj,o.TTD]}),Qt})(),cr=(()=>{class Qt{}return Qt.\u0275fac=function(Pt){return new(Pt||Qt)},Qt.\u0275dir=o.lG2({type:Qt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Qt})(),_t=(()=>{class Qt{}return Qt.\u0275fac=function(Pt){return new(Pt||Qt)},Qt.\u0275mod=o.oAB({type:Qt}),Qt.\u0275inj=o.cJS({}),Qt})(),La=(()=>{class Qt{}return Qt.\u0275fac=function(Pt){return new(Pt||Qt)},Qt.\u0275mod=o.oAB({type:Qt}),Qt.\u0275inj=o.cJS({imports:[_t]}),Qt})(),va=(()=>{class Qt{static withConfig(Pt){return{ngModule:Qt,providers:[{provide:Wn,useValue:Pt.callSetDisabledState??Yi}]}}}return Qt.\u0275fac=function(Pt){return new(Pt||Qt)},Qt.\u0275mod=o.oAB({type:Qt}),Qt.\u0275inj=o.cJS({imports:[La]}),Qt})()},5998:(kn,he,l)=>{"use strict";l.d(he,{Cb:()=>He,Cu:()=>Ht,Dx:()=>tt,H7:()=>li,b2:()=>oe,hm:()=>_n,ki:()=>Dt,ok:()=>Ft,q6:()=>Ee,t6:()=>Jn});var o=l(8692),c=l(4370);class I extends o.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class C extends I{static makeCurrent(){(0,o.HT)(new C)}onAndCancel(Sn,An,ti){return Sn.addEventListener(An,ti,!1),()=>{Sn.removeEventListener(An,ti,!1)}}dispatchEvent(Sn,An){Sn.dispatchEvent(An)}remove(Sn){Sn.parentNode&&Sn.parentNode.removeChild(Sn)}createElement(Sn,An){return(An=An||this.getDefaultDocument()).createElement(Sn)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Sn){return Sn.nodeType===Node.ELEMENT_NODE}isShadowRoot(Sn){return Sn instanceof DocumentFragment}getGlobalEventTarget(Sn,An){return"window"===An?window:"document"===An?Sn:"body"===An?Sn.body:null}getBaseHref(Sn){const An=function a(){return f=f||document.querySelector("base"),f?f.getAttribute("href"):null}();return null==An?null:function s(Hn){p=p||document.createElement("a"),p.setAttribute("href",Hn);const Sn=p.pathname;return"/"===Sn.charAt(0)?Sn:`/${Sn}`}(An)}resetBaseElement(){f=null}getUserAgent(){return window.navigator.userAgent}getCookie(Sn){return(0,o.Mx)(document.cookie,Sn)}}let p,f=null;const u=new c.OlP("TRANSITION_ID"),h=[{provide:c.ip1,useFactory:function d(Hn,Sn,An){return()=>{An.get(c.CZH).donePromise.then(()=>{const ti=(0,o.q)(),Wn=Sn.querySelectorAll(`style[ng-transition="${Hn}"]`);for(let Yi=0;Yi<Wn.length;Yi++)ti.remove(Wn[Yi])})}},deps:[u,o.K0,c.zs3],multi:!0}];let x=(()=>{class Hn{build(){return new XMLHttpRequest}}return Hn.\u0275fac=function(An){return new(An||Hn)},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})();const b=new c.OlP("EventManagerPlugins");let y=(()=>{class Hn{constructor(An,ti){this._zone=ti,this._eventNameToPlugin=new Map,An.forEach(Wn=>Wn.manager=this),this._plugins=An.slice().reverse()}addEventListener(An,ti,Wn){return this._findPluginFor(ti).addEventListener(An,ti,Wn)}addGlobalEventListener(An,ti,Wn){return this._findPluginFor(ti).addGlobalEventListener(An,ti,Wn)}getZone(){return this._zone}_findPluginFor(An){const ti=this._eventNameToPlugin.get(An);if(ti)return ti;const Wn=this._plugins;for(let Yi=0;Yi<Wn.length;Yi++){const On=Wn[Yi];if(On.supports(An))return this._eventNameToPlugin.set(An,On),On}throw new Error(`No event manager plugin found for event ${An}`)}}return Hn.\u0275fac=function(An){return new(An||Hn)(c.LFG(b),c.LFG(c.R0b))},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})();class E{constructor(Sn){this._doc=Sn}addGlobalEventListener(Sn,An,ti){const Wn=(0,o.q)().getGlobalEventTarget(this._doc,Sn);if(!Wn)throw new Error(`Unsupported event target ${Wn} for event ${An}`);return this.addEventListener(Wn,An,ti)}}let S=(()=>{class Hn{constructor(){this._stylesSet=new Set}addStyles(An){const ti=new Set;An.forEach(Wn=>{this._stylesSet.has(Wn)||(this._stylesSet.add(Wn),ti.add(Wn))}),this.onStylesAdded(ti)}onStylesAdded(An){}getAllStyles(){return Array.from(this._stylesSet)}}return Hn.\u0275fac=function(An){return new(An||Hn)},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})(),O=(()=>{class Hn extends S{constructor(An){super(),this._doc=An,this._hostNodes=new Map,this._hostNodes.set(An.head,[])}_addStylesToHost(An,ti,Wn){An.forEach(Yi=>{const On=this._doc.createElement("style");On.textContent=Yi,Wn.push(ti.appendChild(On))})}addHost(An){const ti=[];this._addStylesToHost(this._stylesSet,An,ti),this._hostNodes.set(An,ti)}removeHost(An){const ti=this._hostNodes.get(An);ti&&ti.forEach(w),this._hostNodes.delete(An)}onStylesAdded(An){this._hostNodes.forEach((ti,Wn)=>{this._addStylesToHost(An,Wn,ti)})}ngOnDestroy(){this._hostNodes.forEach(An=>An.forEach(w))}}return Hn.\u0275fac=function(An){return new(An||Hn)(c.LFG(o.K0))},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})();function w(Hn){(0,o.q)().remove(Hn)}const T={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/"},k=/%COMP%/g,P="%COMP%",B=`_nghost-${P}`,W=`_ngcontent-${P}`;function U(Hn,Sn){return Sn.flat(100).map(An=>An.replace(k,Hn))}function K(Hn){return Sn=>{if("__ngUnwrap__"===Sn)return Hn;!1===Hn(Sn)&&(Sn.preventDefault(),Sn.returnValue=!1)}}let Y=(()=>{class Hn{constructor(An,ti,Wn){this.eventManager=An,this.sharedStylesHost=ti,this.appId=Wn,this.rendererByCompId=new Map,this.defaultRenderer=new J(An)}createRenderer(An,ti){if(!An||!ti)return this.defaultRenderer;switch(ti.encapsulation){case c.ifc.Emulated:{let Wn=this.rendererByCompId.get(ti.id);return Wn||(Wn=new q(this.eventManager,this.sharedStylesHost,ti,this.appId),this.rendererByCompId.set(ti.id,Wn)),Wn.applyToHost(An),Wn}case c.ifc.ShadowDom:return new Z(this.eventManager,this.sharedStylesHost,An,ti);default:if(!this.rendererByCompId.has(ti.id)){const Wn=U(ti.id,ti.styles);this.sharedStylesHost.addStyles(Wn),this.rendererByCompId.set(ti.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Hn.\u0275fac=function(An){return new(An||Hn)(c.LFG(y),c.LFG(O),c.LFG(c.AFp))},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})();class J{constructor(Sn){this.eventManager=Sn,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Sn,An){return An?document.createElementNS(T[An]||An,Sn):document.createElement(Sn)}createComment(Sn){return document.createComment(Sn)}createText(Sn){return document.createTextNode(Sn)}appendChild(Sn,An){(G(Sn)?Sn.content:Sn).appendChild(An)}insertBefore(Sn,An,ti){Sn&&(G(Sn)?Sn.content:Sn).insertBefore(An,ti)}removeChild(Sn,An){Sn&&Sn.removeChild(An)}selectRootElement(Sn,An){let ti="string"==typeof Sn?document.querySelector(Sn):Sn;if(!ti)throw new Error(`The selector "${Sn}" did not match any elements`);return An||(ti.textContent=""),ti}parentNode(Sn){return Sn.parentNode}nextSibling(Sn){return Sn.nextSibling}setAttribute(Sn,An,ti,Wn){if(Wn){An=Wn+":"+An;const Yi=T[Wn];Yi?Sn.setAttributeNS(Yi,An,ti):Sn.setAttribute(An,ti)}else Sn.setAttribute(An,ti)}removeAttribute(Sn,An,ti){if(ti){const Wn=T[ti];Wn?Sn.removeAttributeNS(Wn,An):Sn.removeAttribute(`${ti}:${An}`)}else Sn.removeAttribute(An)}addClass(Sn,An){Sn.classList.add(An)}removeClass(Sn,An){Sn.classList.remove(An)}setStyle(Sn,An,ti,Wn){Wn&(c.JOm.DashCase|c.JOm.Important)?Sn.style.setProperty(An,ti,Wn&c.JOm.Important?"important":""):Sn.style[An]=ti}removeStyle(Sn,An,ti){ti&c.JOm.DashCase?Sn.style.removeProperty(An):Sn.style[An]=""}setProperty(Sn,An,ti){Sn[An]=ti}setValue(Sn,An){Sn.nodeValue=An}listen(Sn,An,ti){return"string"==typeof Sn?this.eventManager.addGlobalEventListener(Sn,An,K(ti)):this.eventManager.addEventListener(Sn,An,K(ti))}}function G(Hn){return"TEMPLATE"===Hn.tagName&&void 0!==Hn.content}class q extends J{constructor(Sn,An,ti,Wn){super(Sn),this.component=ti;const Yi=U(Wn+"-"+ti.id,ti.styles);An.addStyles(Yi),this.contentAttr=function N(Hn){return W.replace(k,Hn)}(Wn+"-"+ti.id),this.hostAttr=function V(Hn){return B.replace(k,Hn)}(Wn+"-"+ti.id)}applyToHost(Sn){super.setAttribute(Sn,this.hostAttr,"")}createElement(Sn,An){const ti=super.createElement(Sn,An);return super.setAttribute(ti,this.contentAttr,""),ti}}class Z extends J{constructor(Sn,An,ti,Wn){super(Sn),this.sharedStylesHost=An,this.hostEl=ti,this.shadowRoot=ti.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Yi=U(Wn.id,Wn.styles);for(let On=0;On<Yi.length;On++){const ei=document.createElement("style");ei.textContent=Yi[On],this.shadowRoot.appendChild(ei)}}nodeOrShadowRoot(Sn){return Sn===this.hostEl?this.shadowRoot:Sn}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Sn,An){return super.appendChild(this.nodeOrShadowRoot(Sn),An)}insertBefore(Sn,An,ti){return super.insertBefore(this.nodeOrShadowRoot(Sn),An,ti)}removeChild(Sn,An){return super.removeChild(this.nodeOrShadowRoot(Sn),An)}parentNode(Sn){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Sn)))}}let X=(()=>{class Hn extends E{constructor(An){super(An)}supports(An){return!0}addEventListener(An,ti,Wn){return An.addEventListener(ti,Wn,!1),()=>this.removeEventListener(An,ti,Wn)}removeEventListener(An,ti,Wn){return An.removeEventListener(ti,Wn)}}return Hn.\u0275fac=function(An){return new(An||Hn)(c.LFG(o.K0))},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})();const M=["alt","control","meta","shift"],se={"\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"},ge={alt:Hn=>Hn.altKey,control:Hn=>Hn.ctrlKey,meta:Hn=>Hn.metaKey,shift:Hn=>Hn.shiftKey};let De=(()=>{class Hn extends E{constructor(An){super(An)}supports(An){return null!=Hn.parseEventName(An)}addEventListener(An,ti,Wn){const Yi=Hn.parseEventName(ti),On=Hn.eventCallback(Yi.fullKey,Wn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,o.q)().onAndCancel(An,Yi.domEventName,On))}static parseEventName(An){const ti=An.toLowerCase().split("."),Wn=ti.shift();if(0===ti.length||"keydown"!==Wn&&"keyup"!==Wn)return null;const Yi=Hn._normalizeKey(ti.pop());let On="",ei=ti.indexOf("code");if(ei>-1&&(ti.splice(ei,1),On="code."),M.forEach(di=>{const Hi=ti.indexOf(di);Hi>-1&&(ti.splice(Hi,1),On+=di+".")}),On+=Yi,0!=ti.length||0===Yi.length)return null;const ni={};return ni.domEventName=Wn,ni.fullKey=On,ni}static matchEventFullKeyCode(An,ti){let Wn=se[An.key]||An.key,Yi="";return ti.indexOf("code.")>-1&&(Wn=An.code,Yi="code."),!(null==Wn||!Wn)&&(Wn=Wn.toLowerCase()," "===Wn?Wn="space":"."===Wn&&(Wn="dot"),M.forEach(On=>{On!==Wn&&(0,ge[On])(An)&&(Yi+=On+".")}),Yi+=Wn,Yi===ti)}static eventCallback(An,ti,Wn){return Yi=>{Hn.matchEventFullKeyCode(Yi,An)&&Wn.runGuarded(()=>ti(Yi))}}static _normalizeKey(An){return"esc"===An?"escape":An}}return Hn.\u0275fac=function(An){return new(An||Hn)(c.LFG(o.K0))},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})();const Ee=(0,c.eFA)(c._c5,"browser",[{provide:c.Lbi,useValue:o.bD},{provide:c.g9A,useValue:function ie(){C.makeCurrent()},multi:!0},{provide:o.K0,useFactory:function le(){return(0,c.RDi)(document),document},deps:[]}]),ae=new c.OlP(""),te=[{provide:c.rWj,useClass:class g{addToWindow(Sn){c.dqk.getAngularTestability=(ti,Wn=!0)=>{const Yi=Sn.findTestabilityInTree(ti,Wn);if(null==Yi)throw new Error("Could not find testability for element.");return Yi},c.dqk.getAllAngularTestabilities=()=>Sn.getAllTestabilities(),c.dqk.getAllAngularRootElements=()=>Sn.getAllRootElements(),c.dqk.frameworkStabilizers||(c.dqk.frameworkStabilizers=[]),c.dqk.frameworkStabilizers.push(ti=>{const Wn=c.dqk.getAllAngularTestabilities();let Yi=Wn.length,On=!1;const ei=function(ni){On=On||ni,Yi--,0==Yi&&ti(On)};Wn.forEach(function(ni){ni.whenStable(ei)})})}findTestabilityInTree(Sn,An,ti){return null==An?null:Sn.getTestability(An)??(ti?(0,o.q)().isShadowRoot(An)?this.findTestabilityInTree(Sn,An.host,!0):this.findTestabilityInTree(Sn,An.parentElement,!0):null)}},deps:[]},{provide:c.lri,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]},{provide:c.dDg,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]}],re=[{provide:c.zSh,useValue:"root"},{provide:c.qLn,useFactory:function de(){return new c.qLn},deps:[]},{provide:b,useClass:X,multi:!0,deps:[o.K0,c.R0b,c.Lbi]},{provide:b,useClass:De,multi:!0,deps:[o.K0]},{provide:Y,useClass:Y,deps:[y,O,c.AFp]},{provide:c.FYo,useExisting:Y},{provide:S,useExisting:O},{provide:O,useClass:O,deps:[o.K0]},{provide:y,useClass:y,deps:[b,c.R0b]},{provide:o.JF,useClass:x,deps:[]},[]];let oe=(()=>{class Hn{constructor(An){}static withServerTransition(An){return{ngModule:Hn,providers:[{provide:c.AFp,useValue:An.appId},{provide:u,useExisting:c.AFp},h]}}}return Hn.\u0275fac=function(An){return new(An||Hn)(c.LFG(ae,12))},Hn.\u0275mod=c.oAB({type:Hn}),Hn.\u0275inj=c.cJS({providers:[...re,...te],imports:[o.ez,c.hGG]}),Hn})(),tt=(()=>{class Hn{constructor(An){this._doc=An}getTitle(){return this._doc.title}setTitle(An){this._doc.title=An||""}}return Hn.\u0275fac=function(An){return new(An||Hn)(c.LFG(o.K0))},Hn.\u0275prov=c.Yz7({token:Hn,factory:function(An){let ti=null;return ti=An?new An:function ft(){return new tt((0,c.LFG)(o.K0))}(),ti},providedIn:"root"}),Hn})();function He(Hn){return Hn}typeof window<"u"&&window;let Dt=(()=>{class Hn{constructor(){this.store={},this.onSerializeCallbacks={}}get(An,ti){return void 0!==this.store[An]?this.store[An]:ti}set(An,ti){this.store[An]=ti}remove(An){delete this.store[An]}hasKey(An){return this.store.hasOwnProperty(An)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(An,ti){this.onSerializeCallbacks[An]=ti}toJson(){for(const An in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(An))try{this.store[An]=this.onSerializeCallbacks[An]()}catch(ti){console.warn("Exception in onSerialize callback: ",ti)}return JSON.stringify(this.store)}}return Hn.\u0275fac=function(An){return new(An||Hn)},Hn.\u0275prov=c.Yz7({token:Hn,factory:function(){return(()=>{const Sn=(0,c.f3M)(o.K0),An=(0,c.f3M)(c.AFp),ti=new Hn;return ti.store=function qe(Hn,Sn){const An=Hn.getElementById(Sn+"-state");let ti={};if(An&&An.textContent)try{ti=JSON.parse(function ct(Hn){const Sn={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return Hn.replace(/&[^;]+;/g,An=>Sn[An])}(An.textContent))}catch(Wn){console.warn("Exception while restoring TransferState for app "+Sn,Wn)}return ti}(Sn,An),ti})()},providedIn:"root"}),Hn})(),Ht=(()=>{class Hn{}return Hn.\u0275fac=function(An){return new(An||Hn)},Hn.\u0275mod=c.oAB({type:Hn}),Hn.\u0275inj=c.cJS({}),Hn})();const yt={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},Ft=new c.OlP("HammerGestureConfig"),bn=new c.OlP("HammerLoader");let _n=(()=>{class Hn{constructor(){this.events=[],this.overrides={}}buildHammer(An){const ti=new Hammer(An,this.options);ti.get("pinch").set({enable:!0}),ti.get("rotate").set({enable:!0});for(const Wn in this.overrides)ti.get(Wn).set(this.overrides[Wn]);return ti}}return Hn.\u0275fac=function(An){return new(An||Hn)},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})(),xn=(()=>{class Hn extends E{constructor(An,ti,Wn,Yi){super(An),this._config=ti,this.console=Wn,this.loader=Yi,this._loaderPromise=null}supports(An){return!(!yt.hasOwnProperty(An.toLowerCase())&&!this.isCustomEvent(An)||!window.Hammer&&!this.loader)}addEventListener(An,ti,Wn){const Yi=this.manager.getZone();if(ti=ti.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||Yi.runOutsideAngular(()=>this.loader());let On=!1,ei=()=>{On=!0};return Yi.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?On||(ei=this.addEventListener(An,ti,Wn)):ei=()=>{}}).catch(()=>{ei=()=>{}})),()=>{ei()}}return Yi.runOutsideAngular(()=>{const On=this._config.buildHammer(An),ei=function(ni){Yi.runGuarded(function(){Wn(ni)})};return On.on(ti,ei),()=>{On.off(ti,ei),"function"==typeof On.destroy&&On.destroy()}})}isCustomEvent(An){return this._config.events.indexOf(An)>-1}}return Hn.\u0275fac=function(An){return new(An||Hn)(c.LFG(o.K0),c.LFG(Ft),c.LFG(c.c2e),c.LFG(bn,8))},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})(),Jn=(()=>{class Hn{}return Hn.\u0275fac=function(An){return new(An||Hn)},Hn.\u0275mod=c.oAB({type:Hn}),Hn.\u0275inj=c.cJS({providers:[{provide:b,useClass:xn,multi:!0,deps:[o.K0,Ft,c.c2e,[new c.FiY,bn]]},{provide:Ft,useClass:_n,deps:[]}]}),Hn})(),li=(()=>{class Hn{}return Hn.\u0275fac=function(An){return new(An||Hn)},Hn.\u0275prov=c.Yz7({token:Hn,factory:function(An){let ti=null;return ti=An?new(An||Hn):c.LFG(Vn),ti},providedIn:"root"}),Hn})(),Vn=(()=>{class Hn extends li{constructor(An){super(),this._doc=An}sanitize(An,ti){if(null==ti)return null;switch(An){case c.q3G.NONE:return ti;case c.q3G.HTML:return(0,c.qzn)(ti,"HTML")?(0,c.z3N)(ti):(0,c.EiD)(this._doc,String(ti)).toString();case c.q3G.STYLE:return(0,c.qzn)(ti,"Style")?(0,c.z3N)(ti):ti;case c.q3G.SCRIPT:if((0,c.qzn)(ti,"Script"))return(0,c.z3N)(ti);throw new Error("unsafe value used in a script context");case c.q3G.URL:return(0,c.qzn)(ti,"URL")?(0,c.z3N)(ti):(0,c.mCW)(String(ti));case c.q3G.RESOURCE_URL:if((0,c.qzn)(ti,"ResourceURL"))return(0,c.z3N)(ti);throw new Error(`unsafe value used in a resource URL context (see ${c.JZr})`);default:throw new Error(`Unexpected SecurityContext ${An} (see ${c.JZr})`)}}bypassSecurityTrustHtml(An){return(0,c.JVY)(An)}bypassSecurityTrustStyle(An){return(0,c.L6k)(An)}bypassSecurityTrustScript(An){return(0,c.eBb)(An)}bypassSecurityTrustUrl(An){return(0,c.LAX)(An)}bypassSecurityTrustResourceUrl(An){return(0,c.pB0)(An)}}return Hn.\u0275fac=function(An){return new(An||Hn)(c.LFG(o.K0))},Hn.\u0275prov=c.Yz7({token:Hn,factory:function(An){let ti=null;return ti=An?new An:function Ai(Hn){return new Vn(Hn.get(o.K0))}(c.LFG(c.zs3)),ti},providedIn:"root"}),Hn})()},7800:(kn,he,l)=>{"use strict";l.d(he,{gz:()=>ea,wN:()=>Vd,F0:()=>$a,rH:()=>ld,Bz:()=>tu,lC:()=>Vi});var o=l(4370),c=l(6666),I=l(5917),C=l(5775),f=l(7971);class a extends C.xQ{constructor(Je){super(),this._value=Je}get value(){return this.getValue()}_subscribe(Je){const ze=super._subscribe(Je);return ze&&!ze.closed&&Je.next(this._value),ze}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new f.N;return this._value}next(Je){super.next(this._value=Je)}}const s=(()=>{function it(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return it.prototype=Object.create(Error.prototype),it})();var u=l(4869),d=l(9796),h=l(7393);class g extends h.L{notifyNext(Je,ze,Mt,Xt,Bn){this.destination.next(ze)}notifyError(Je,ze){this.destination.error(Je)}notifyComplete(Je){this.destination.complete()}}class x extends h.L{constructor(Je,ze,Mt){super(),this.parent=Je,this.outerValue=ze,this.outerIndex=Mt,this.index=0}_next(Je){this.parent.notifyNext(this.outerValue,Je,this.outerIndex,this.index++,this)}_error(Je){this.parent.notifyError(Je,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var b=l(9846),y=l(882);function E(it,Je,ze,Mt,Xt=new x(it,ze,Mt)){if(!Xt.closed)return Je instanceof y.y?Je.subscribe(Xt):(0,b.s)(Je)(Xt)}var S=l(6693);const O={};function w(...it){let Je,ze;return(0,u.K)(it[it.length-1])&&(ze=it.pop()),"function"==typeof it[it.length-1]&&(Je=it.pop()),1===it.length&&(0,d.k)(it[0])&&(it=it[0]),(0,S.n)(it,ze).lift(new T(Je))}class T{constructor(Je){this.resultSelector=Je}call(Je,ze){return ze.subscribe(new k(Je,this.resultSelector))}}class k extends g{constructor(Je,ze){super(Je),this.resultSelector=ze,this.active=0,this.values=[],this.observables=[]}_next(Je){this.values.push(O),this.observables.push(Je)}_complete(){const Je=this.observables,ze=Je.length;if(0===ze)this.destination.complete();else{this.active=ze,this.toRespond=ze;for(let Mt=0;Mt<ze;Mt++)this.add(E(this,Je[Mt],void 0,Mt))}}notifyComplete(Je){0==(this.active-=1)&&this.destination.complete()}notifyNext(Je,ze,Mt){const Xt=this.values,zn=this.toRespond?Xt[Mt]===O?--this.toRespond:this.toRespond:0;Xt[Mt]=ze,0===zn&&(this.resultSelector?this._tryResultSelector(Xt):this.destination.next(Xt.slice()))}_tryResultSelector(Je){let ze;try{ze=this.resultSelector.apply(this,Je)}catch(Mt){return void this.destination.error(Mt)}this.destination.next(ze)}}var R=l(3282);function B(...it){return function P(){return(0,R.J)(1)}()((0,I.of)(...it))}var W=l(9193);function N(it){return new y.y(Je=>{let ze;try{ze=it()}catch(Xt){return void Je.error(Xt)}return(ze?(0,c.D)(ze):(0,W.c)()).subscribe(Je)})}var V=l(4022);function U(it,Je){return new y.y(Je?ze=>Je.schedule(K,0,{error:it,subscriber:ze}):ze=>ze.error(it))}function K({error:it,subscriber:Je}){Je.error(it)}var Y=l(2441),J=l(8692),j=l(8002),ee=l(5345);function G(it,Je){return"function"==typeof Je?ze=>ze.pipe(G((Mt,Xt)=>(0,c.D)(it(Mt,Xt)).pipe((0,j.U)((Bn,zn)=>Je(Mt,Bn,Xt,zn))))):ze=>ze.lift(new q(it))}class q{constructor(Je){this.project=Je}call(Je,ze){return ze.subscribe(new Z(Je,this.project))}}class Z extends ee.Ds{constructor(Je,ze){super(Je),this.project=ze,this.index=0}_next(Je){let ze;const Mt=this.index++;try{ze=this.project(Je,Mt)}catch(Xt){return void this.destination.error(Xt)}this._innerSub(ze)}_innerSub(Je){const ze=this.innerSubscription;ze&&ze.unsubscribe();const Mt=new ee.IY(this),Xt=this.destination;Xt.add(Mt),this.innerSubscription=(0,ee.ft)(Je,Mt),this.innerSubscription!==Mt&&Xt.add(this.innerSubscription)}_complete(){const{innerSubscription:Je}=this;(!Je||Je.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(Je){this.destination.next(Je)}}var X=l(5257),se=l(5435),ge=l(9773);function De(it=null){return Je=>Je.lift(new Fe(it))}class Fe{constructor(Je){this.defaultValue=Je}call(Je,ze){return ze.subscribe(new Ae(Je,this.defaultValue))}}class Ae extends h.L{constructor(Je,ze){super(Je),this.defaultValue=ze,this.isEmpty=!0}_next(Je){this.isEmpty=!1,this.destination.next(Je)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function ne(it=ie){return Je=>Je.lift(new fe(it))}class fe{constructor(Je){this.errorFactory=Je}call(Je,ze){return ze.subscribe(new _e(Je,this.errorFactory))}}class _e extends h.L{constructor(Je,ze){super(Je),this.errorFactory=ze,this.hasValue=!1}_next(Je){this.hasValue=!0,this.destination.next(Je)}_complete(){if(this.hasValue)return this.destination.complete();{let Je;try{Je=this.errorFactory()}catch(ze){Je=ze}this.destination.error(Je)}}}function ie(){return new s}var de=l(4487);function le(it,Je){const ze=arguments.length>=2;return Mt=>Mt.pipe(it?(0,se.h)((Xt,Bn)=>it(Xt,Bn,Mt)):de.y,(0,X.q)(1),ze?De(Je):ne(()=>new s))}var pe=l(4612);function Ee(){}var ae=l(9105);function te(it,Je,ze){return function(Xt){return Xt.lift(new re(it,Je,ze))}}class re{constructor(Je,ze,Mt){this.nextOrObserver=Je,this.error=ze,this.complete=Mt}call(Je,ze){return ze.subscribe(new oe(Je,this.nextOrObserver,this.error,this.complete))}}class oe extends h.L{constructor(Je,ze,Mt,Xt){super(Je),this._tapNext=Ee,this._tapError=Ee,this._tapComplete=Ee,this._tapError=Mt||Ee,this._tapComplete=Xt||Ee,(0,ae.m)(ze)?(this._context=this,this._tapNext=ze):ze&&(this._context=ze,this._tapNext=ze.next||Ee,this._tapError=ze.error||Ee,this._tapComplete=ze.complete||Ee)}_next(Je){try{this._tapNext.call(this._context,Je)}catch(ze){return void this.destination.error(ze)}this.destination.next(Je)}_error(Je){try{this._tapError.call(this._context,Je)}catch(ze){return void this.destination.error(ze)}this.destination.error(Je)}_complete(){try{this._tapComplete.call(this._context)}catch(Je){return void this.destination.error(Je)}return this.destination.complete()}}function ye(it){return function(ze){const Mt=new Pe(it),Xt=ze.lift(Mt);return Mt.caught=Xt}}class Pe{constructor(Je){this.selector=Je}call(Je,ze){return ze.subscribe(new Ne(Je,this.selector,this.caught))}}class Ne extends ee.Ds{constructor(Je,ze,Mt){super(Je),this.selector=ze,this.caught=Mt}error(Je){if(!this.isStopped){let ze;try{ze=this.selector(Je,this.caught)}catch(Bn){return void super.error(Bn)}this._unsubscribeAndRecycle();const Mt=new ee.IY(this);this.add(Mt);const Xt=(0,ee.ft)(ze,Mt);Xt!==Mt&&this.add(Xt)}}}function ft(it,Je){let ze=!1;return arguments.length>=2&&(ze=!0),function(Xt){return Xt.lift(new tt(it,Je,ze))}}class tt{constructor(Je,ze,Mt=!1){this.accumulator=Je,this.seed=ze,this.hasSeed=Mt}call(Je,ze){return ze.subscribe(new Be(Je,this.accumulator,this.seed,this.hasSeed))}}class Be extends h.L{constructor(Je,ze,Mt,Xt){super(Je),this.accumulator=ze,this._seed=Mt,this.hasSeed=Xt,this.index=0}get seed(){return this._seed}set seed(Je){this.hasSeed=!0,this._seed=Je}_next(Je){if(this.hasSeed)return this._tryNext(Je);this.seed=Je,this.destination.next(Je)}_tryNext(Je){const ze=this.index++;let Mt;try{Mt=this.accumulator(this.seed,Je,ze)}catch(Xt){this.destination.error(Xt)}this.seed=Mt,this.destination.next(Mt)}}var mt=l(7108);function nn(it){return function(ze){return 0===it?(0,W.c)():ze.lift(new ke(it))}}class ke{constructor(Je){if(this.total=Je,this.total<0)throw new mt.W}call(Je,ze){return ze.subscribe(new $e(Je,this.total))}}class $e extends h.L{constructor(Je,ze){super(Je),this.total=ze,this.ring=new Array,this.count=0}_next(Je){const ze=this.ring,Mt=this.total,Xt=this.count++;ze.length<Mt?ze.push(Je):ze[Xt%Mt]=Je}_complete(){const Je=this.destination;let ze=this.count;if(ze>0){const Mt=this.count>=this.total?this.total:this.count,Xt=this.ring;for(let Bn=0;Bn<Mt;Bn++){const zn=ze++%Mt;Je.next(Xt[zn])}}Je.complete()}}function me(it,Je){const ze=arguments.length>=2;return Mt=>Mt.pipe(it?(0,se.h)((Xt,Bn)=>it(Xt,Bn,Mt)):de.y,nn(1),ze?De(Je):ne(()=>new s))}class Te{constructor(Je,ze){this.predicate=Je,this.inclusive=ze}call(Je,ze){return ze.subscribe(new Ye(Je,this.predicate,this.inclusive))}}class Ye extends h.L{constructor(Je,ze,Mt){super(Je),this.predicate=ze,this.inclusive=Mt,this.index=0}_next(Je){const ze=this.destination;let Mt;try{Mt=this.predicate(Je,this.index++)}catch(Xt){return void ze.error(Xt)}this.nextOrComplete(Je,Mt)}nextOrComplete(Je,ze){const Mt=this.destination;Boolean(ze)?Mt.next(Je):(this.inclusive&&Mt.next(Je),Mt.complete())}}class Ct{constructor(Je){this.value=Je}call(Je,ze){return ze.subscribe(new Rt(Je,this.value))}}class Rt extends h.L{constructor(Je,ze){super(Je),this.value=ze}_next(Je){this.destination.next(this.value)}}var fn=l(3464);function ct(it){return Je=>Je.lift(new He(it))}class He{constructor(Je){this.callback=Je}call(Je,ze){return ze.subscribe(new Dt(Je,this.callback))}}class Dt extends h.L{constructor(Je,ze){super(Je),this.add(new fn.w(ze))}}var qe=l(1307),Ht=l(5998);const dt="primary",ht=Symbol("RouteTitle");class yt{constructor(Je){this.params=Je||{}}has(Je){return Object.prototype.hasOwnProperty.call(this.params,Je)}get(Je){if(this.has(Je)){const ze=this.params[Je];return Array.isArray(ze)?ze[0]:ze}return null}getAll(Je){if(this.has(Je)){const ze=this.params[Je];return Array.isArray(ze)?ze:[ze]}return[]}get keys(){return Object.keys(this.params)}}function Ft(it){return new yt(it)}function bn(it,Je,ze){const Mt=ze.path.split("/");if(Mt.length>it.length||"full"===ze.pathMatch&&(Je.hasChildren()||Mt.length<it.length))return null;const Xt={};for(let Bn=0;Bn<Mt.length;Bn++){const zn=Mt[Bn],ki=it[Bn];if(zn.startsWith(":"))Xt[zn.substring(1)]=ki;else if(zn!==ki.path)return null}return{consumed:it.slice(0,Mt.length),posParams:Xt}}function xn(it,Je){const ze=it?Object.keys(it):void 0,Mt=Je?Object.keys(Je):void 0;if(!ze||!Mt||ze.length!=Mt.length)return!1;let Xt;for(let Bn=0;Bn<ze.length;Bn++)if(Xt=ze[Bn],!Jn(it[Xt],Je[Xt]))return!1;return!0}function Jn(it,Je){if(Array.isArray(it)&&Array.isArray(Je)){if(it.length!==Je.length)return!1;const ze=[...it].sort(),Mt=[...Je].sort();return ze.every((Xt,Bn)=>Mt[Bn]===Xt)}return it===Je}function li(it){return Array.prototype.concat.apply([],it)}function Ai(it){return it.length>0?it[it.length-1]:null}function Oi(it,Je){for(const ze in it)it.hasOwnProperty(ze)&&Je(it[ze],ze)}function Hn(it){return(0,o.CqO)(it)?it:(0,o.QGY)(it)?(0,c.D)(Promise.resolve(it)):(0,I.of)(it)}const Sn=!1,An={exact:function On(it,Je,ze){if(!Rn(it.segments,Je.segments)||!Hi(it.segments,Je.segments,ze)||it.numberOfChildren!==Je.numberOfChildren)return!1;for(const Mt in Je.children)if(!it.children[Mt]||!On(it.children[Mt],Je.children[Mt],ze))return!1;return!0},subset:ni},ti={exact:function Yi(it,Je){return xn(it,Je)},subset:function ei(it,Je){return Object.keys(Je).length<=Object.keys(it).length&&Object.keys(Je).every(ze=>Jn(it[ze],Je[ze]))},ignored:()=>!0};function Wn(it,Je,ze){return An[ze.paths](it.root,Je.root,ze.matrixParams)&&ti[ze.queryParams](it.queryParams,Je.queryParams)&&!("exact"===ze.fragment&&it.fragment!==Je.fragment)}function ni(it,Je,ze){return di(it,Je,Je.segments,ze)}function di(it,Je,ze,Mt){if(it.segments.length>ze.length){const Xt=it.segments.slice(0,ze.length);return!(!Rn(Xt,ze)||Je.hasChildren()||!Hi(Xt,ze,Mt))}if(it.segments.length===ze.length){if(!Rn(it.segments,ze)||!Hi(it.segments,ze,Mt))return!1;for(const Xt in Je.children)if(!it.children[Xt]||!ni(it.children[Xt],Je.children[Xt],Mt))return!1;return!0}{const Xt=ze.slice(0,it.segments.length),Bn=ze.slice(it.segments.length);return!!(Rn(it.segments,Xt)&&Hi(it.segments,Xt,Mt)&&it.children[dt])&&di(it.children[dt],Je,Bn,Mt)}}function Hi(it,Je,ze){return Je.every((Mt,Xt)=>ti[ze](it[Xt].parameters,Mt.parameters))}class $i{constructor(Je=new Qi([],{}),ze={},Mt=null){this.root=Je,this.queryParams=ze,this.fragment=Mt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ft(this.queryParams)),this._queryParamMap}toString(){return lr.serialize(this)}}class Qi{constructor(Je,ze){this.segments=Je,this.children=ze,this.parent=null,Oi(ze,(Mt,Xt)=>Mt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Dr(this)}}class _r{constructor(Je,ze){this.path=Je,this.parameters=ze}get parameterMap(){return this._parameterMap||(this._parameterMap=Ft(this.parameters)),this._parameterMap}toString(){return so(this)}}function Rn(it,Je){return it.length===Je.length&&it.every((ze,Mt)=>ze.path===Je[Mt].path)}let Si=(()=>{class it{}return it.\u0275fac=function(ze){return new(ze||it)},it.\u0275prov=o.Yz7({token:it,factory:function(){return new ji},providedIn:"root"}),it})();class ji{parse(Je){const ze=new At(Je);return new $i(ze.parseRootSegment(),ze.parseQueryParams(),ze.parseFragment())}serialize(Je){const ze=`/${kr(Je.root,!0)}`,Mt=function oo(it){const Je=Object.keys(it).map(ze=>{const Mt=it[ze];return Array.isArray(Mt)?Mt.map(Xt=>`${Gr(ze)}=${Gr(Xt)}`).join("&"):`${Gr(ze)}=${Gr(Mt)}`}).filter(ze=>!!ze);return Je.length?`?${Je.join("&")}`:""}(Je.queryParams);return`${ze}${Mt}${"string"==typeof Je.fragment?`#${function xr(it){return encodeURI(it)}(Je.fragment)}`:""}`}}const lr=new ji;function Dr(it){return it.segments.map(Je=>so(Je)).join("/")}function kr(it,Je){if(!it.hasChildren())return Dr(it);if(Je){const ze=it.children[dt]?kr(it.children[dt],!1):"",Mt=[];return Oi(it.children,(Xt,Bn)=>{Bn!==dt&&Mt.push(`${Bn}:${kr(Xt,!1)}`)}),Mt.length>0?`${ze}(${Mt.join("//")})`:ze}{const ze=function ci(it,Je){let ze=[];return Oi(it.children,(Mt,Xt)=>{Xt===dt&&(ze=ze.concat(Je(Mt,Xt)))}),Oi(it.children,(Mt,Xt)=>{Xt!==dt&&(ze=ze.concat(Je(Mt,Xt)))}),ze}(it,(Mt,Xt)=>Xt===dt?[kr(it.children[dt],!1)]:[`${Xt}:${kr(Mt,!1)}`]);return 1===Object.keys(it.children).length&&null!=it.children[dt]?`${Dr(it)}/${ze[0]}`:`${Dr(it)}/(${ze.join("//")})`}}function zr(it){return encodeURIComponent(it).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gr(it){return zr(it).replace(/%3B/gi,";")}function Vr(it){return zr(it).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Nr(it){return decodeURIComponent(it)}function Tr(it){return Nr(it.replace(/\+/g,"%20"))}function so(it){return`${Vr(it.path)}${function Er(it){return Object.keys(it).map(Je=>`;${Vr(Je)}=${Vr(it[Je])}`).join("")}(it.parameters)}`}const fi=/^[^\/()?;=#]+/;function ir(it){const Je=it.match(fi);return Je?Je[0]:""}const Kr=/^[^=?&#]+/,uo=/^[^&#]+/;class At{constructor(Je){this.url=Je,this.remaining=Je}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Qi([],{}):new Qi([],this.parseChildren())}parseQueryParams(){const Je={};if(this.consumeOptional("?"))do{this.parseQueryParam(Je)}while(this.consumeOptional("&"));return Je}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Je=[];for(this.peekStartsWith("(")||Je.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Je.push(this.parseSegment());let ze={};this.peekStartsWith("/(")&&(this.capture("/"),ze=this.parseParens(!0));let Mt={};return this.peekStartsWith("(")&&(Mt=this.parseParens(!1)),(Je.length>0||Object.keys(ze).length>0)&&(Mt[dt]=new Qi(Je,ze)),Mt}parseSegment(){const Je=ir(this.remaining);if(""===Je&&this.peekStartsWith(";"))throw new o.vHH(4009,Sn);return this.capture(Je),new _r(Nr(Je),this.parseMatrixParams())}parseMatrixParams(){const Je={};for(;this.consumeOptional(";");)this.parseParam(Je);return Je}parseParam(Je){const ze=ir(this.remaining);if(!ze)return;this.capture(ze);let Mt="";if(this.consumeOptional("=")){const Xt=ir(this.remaining);Xt&&(Mt=Xt,this.capture(Mt))}Je[Nr(ze)]=Nr(Mt)}parseQueryParam(Je){const ze=function to(it){const Je=it.match(Kr);return Je?Je[0]:""}(this.remaining);if(!ze)return;this.capture(ze);let Mt="";if(this.consumeOptional("=")){const zn=function po(it){const Je=it.match(uo);return Je?Je[0]:""}(this.remaining);zn&&(Mt=zn,this.capture(Mt))}const Xt=Tr(ze),Bn=Tr(Mt);if(Je.hasOwnProperty(Xt)){let zn=Je[Xt];Array.isArray(zn)||(zn=[zn],Je[Xt]=zn),zn.push(Bn)}else Je[Xt]=Bn}parseParens(Je){const ze={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Mt=ir(this.remaining),Xt=this.remaining[Mt.length];if("/"!==Xt&&")"!==Xt&&";"!==Xt)throw new o.vHH(4010,Sn);let Bn;Mt.indexOf(":")>-1?(Bn=Mt.slice(0,Mt.indexOf(":")),this.capture(Bn),this.capture(":")):Je&&(Bn=dt);const zn=this.parseChildren();ze[Bn]=1===Object.keys(zn).length?zn[dt]:new Qi([],zn),this.consumeOptional("//")}return ze}peekStartsWith(Je){return this.remaining.startsWith(Je)}consumeOptional(Je){return!!this.peekStartsWith(Je)&&(this.remaining=this.remaining.substring(Je.length),!0)}capture(Je){if(!this.consumeOptional(Je))throw new o.vHH(4011,Sn)}}function tn(it){return it.segments.length>0?new Qi([],{[dt]:it}):it}function $n(it){const Je={};for(const Mt of Object.keys(it.children)){const Bn=$n(it.children[Mt]);(Bn.segments.length>0||Bn.hasChildren())&&(Je[Mt]=Bn)}return function _i(it){if(1===it.numberOfChildren&&it.children[dt]){const Je=it.children[dt];return new Qi(it.segments.concat(Je.segments),Je.children)}return it}(new Qi(it.segments,Je))}function mi(it){return it instanceof $i}function Ri(it,Je,ze,Mt,Xt){if(0===ze.length)return en(Je.root,Je.root,Je.root,Mt,Xt);const Bn=function bt(it){if("string"==typeof it[0]&&1===it.length&&"/"===it[0])return new Ze(!0,0,it);let Je=0,ze=!1;const Mt=it.reduce((Xt,Bn,zn)=>{if("object"==typeof Bn&&null!=Bn){if(Bn.outlets){const ki={};return Oi(Bn.outlets,(dr,jr)=>{ki[jr]="string"==typeof dr?dr.split("/"):dr}),[...Xt,{outlets:ki}]}if(Bn.segmentPath)return[...Xt,Bn.segmentPath]}return"string"!=typeof Bn?[...Xt,Bn]:0===zn?(Bn.split("/").forEach((ki,dr)=>{0==dr&&"."===ki||(0==dr&&""===ki?ze=!0:".."===ki?Je++:""!=ki&&Xt.push(ki))}),Xt):[...Xt,Bn]},[]);return new Ze(ze,Je,Mt)}(ze);return Bn.toRoot()?en(Je.root,Je.root,new Qi([],{}),Mt,Xt):function zn(dr){const jr=function Ot(it,Je,ze,Mt){if(it.isAbsolute)return new _t(Je.root,!0,0);if(-1===Mt)return new _t(ze,ze===Je.root,0);return function qt(it,Je,ze){let Mt=it,Xt=Je,Bn=ze;for(;Bn>Xt;){if(Bn-=Xt,Mt=Mt.parent,!Mt)throw new o.vHH(4005,!1);Xt=Mt.segments.length}return new _t(Mt,!1,Xt-Bn)}(ze,Mt+(or(it.commands[0])?0:1),it.numberOfDoubleDots)}(Bn,Je,it.snapshot?._urlSegment,dr),$r=jr.processChildren?pt(jr.segmentGroup,jr.index,Bn.commands):Ke(jr.segmentGroup,jr.index,Bn.commands);return en(Je.root,jr.segmentGroup,$r,Mt,Xt)}(it.snapshot?._lastPathIndex)}function or(it){return"object"==typeof it&&null!=it&&!it.outlets&&!it.segmentPath}function cr(it){return"object"==typeof it&&null!=it&&it.outlets}function en(it,Je,ze,Mt,Xt){let zn,Bn={};Mt&&Oi(Mt,(dr,jr)=>{Bn[jr]=Array.isArray(dr)?dr.map($r=>`${$r}`):`${dr}`}),zn=it===Je?ze:vn(it,Je,ze);const ki=tn($n(zn));return new $i(ki,Bn,Xt)}function vn(it,Je,ze){const Mt={};return Oi(it.children,(Xt,Bn)=>{Mt[Bn]=Xt===Je?ze:vn(Xt,Je,ze)}),new Qi(it.segments,Mt)}class Ze{constructor(Je,ze,Mt){if(this.isAbsolute=Je,this.numberOfDoubleDots=ze,this.commands=Mt,Je&&Mt.length>0&&or(Mt[0]))throw new o.vHH(4003,!1);const Xt=Mt.find(cr);if(Xt&&Xt!==Ai(Mt))throw new o.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class _t{constructor(Je,ze,Mt){this.segmentGroup=Je,this.processChildren=ze,this.index=Mt}}function Ke(it,Je,ze){if(it||(it=new Qi([],{})),0===it.segments.length&&it.hasChildren())return pt(it,Je,ze);const Mt=function an(it,Je,ze){let Mt=0,Xt=Je;const Bn={match:!1,pathIndex:0,commandIndex:0};for(;Xt<it.segments.length;){if(Mt>=ze.length)return Bn;const zn=it.segments[Xt],ki=ze[Mt];if(cr(ki))break;const dr=`${ki}`,jr=Mt<ze.length-1?ze[Mt+1]:null;if(Xt>0&&void 0===dr)break;if(dr&&jr&&"object"==typeof jr&&void 0===jr.outlets){if(!Yn(dr,jr,zn))return Bn;Mt+=2}else{if(!Yn(dr,{},zn))return Bn;Mt++}Xt++}return{match:!0,pathIndex:Xt,commandIndex:Mt}}(it,Je,ze),Xt=ze.slice(Mt.commandIndex);if(Mt.match&&Mt.pathIndex<it.segments.length){const Bn=new Qi(it.segments.slice(0,Mt.pathIndex),{});return Bn.children[dt]=new Qi(it.segments.slice(Mt.pathIndex),it.children),pt(Bn,0,Xt)}return Mt.match&&0===Xt.length?new Qi(it.segments,{}):Mt.match&&!it.hasChildren()?hn(it,Je,ze):Mt.match?pt(it,0,Xt):hn(it,Je,ze)}function pt(it,Je,ze){if(0===ze.length)return new Qi(it.segments,{});{const Mt=function mn(it){return cr(it[0])?it[0].outlets:{[dt]:it}}(ze),Xt={};return!Mt[dt]&&it.children[dt]&&1===it.numberOfChildren&&0===it.children[dt].segments.length?pt(it.children[dt],Je,ze):(Oi(Mt,(Bn,zn)=>{"string"==typeof Bn&&(Bn=[Bn]),null!==Bn&&(Xt[zn]=Ke(it.children[zn],Je,Bn))}),Oi(it.children,(Bn,zn)=>{void 0===Mt[zn]&&(Xt[zn]=Bn)}),new Qi(it.segments,Xt))}}function hn(it,Je,ze){const Mt=it.segments.slice(0,Je);let Xt=0;for(;Xt<ze.length;){const Bn=ze[Xt];if(cr(Bn)){const dr=sn(Bn.outlets);return new Qi(Mt,dr)}if(0===Xt&&or(ze[0])){Mt.push(new _r(it.segments[Je].path,Nn(ze[0]))),Xt++;continue}const zn=cr(Bn)?Bn.outlets[dt]:`${Bn}`,ki=Xt<ze.length-1?ze[Xt+1]:null;zn&&ki&&or(ki)?(Mt.push(new _r(zn,Nn(ki))),Xt+=2):(Mt.push(new _r(zn,{})),Xt++)}return new Qi(Mt,{})}function sn(it){const Je={};return Oi(it,(ze,Mt)=>{"string"==typeof ze&&(ze=[ze]),null!==ze&&(Je[Mt]=hn(new Qi([],{}),0,ze))}),Je}function Nn(it){const Je={};return Oi(it,(ze,Mt)=>Je[Mt]=`${ze}`),Je}function Yn(it,Je,ze){return it==ze.path&&xn(Je,ze.parameters)}const st="imperative";class Vt{constructor(Je,ze){this.id=Je,this.url=ze}}class rn extends Vt{constructor(Je,ze,Mt="imperative",Xt=null){super(Je,ze),this.type=0,this.navigationTrigger=Mt,this.restoredState=Xt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Dn extends Vt{constructor(Je,ze,Mt){super(Je,ze),this.urlAfterRedirects=Mt,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class rt extends Vt{constructor(Je,ze,Mt,Xt){super(Je,ze),this.reason=Mt,this.code=Xt,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Bt extends Vt{constructor(Je,ze,Mt,Xt){super(Je,ze),this.reason=Mt,this.code=Xt,this.type=16}}class gt extends Vt{constructor(Je,ze,Mt,Xt){super(Je,ze),this.error=Mt,this.target=Xt,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class $t extends Vt{constructor(Je,ze,Mt,Xt){super(Je,ze),this.urlAfterRedirects=Mt,this.state=Xt,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Un extends Vt{constructor(Je,ze,Mt,Xt){super(Je,ze),this.urlAfterRedirects=Mt,this.state=Xt,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ai extends Vt{constructor(Je,ze,Mt,Xt,Bn){super(Je,ze),this.urlAfterRedirects=Mt,this.state=Xt,this.shouldActivate=Bn,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ci extends Vt{constructor(Je,ze,Mt,Xt){super(Je,ze),this.urlAfterRedirects=Mt,this.state=Xt,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ii extends Vt{constructor(Je,ze,Mt,Xt){super(Je,ze),this.urlAfterRedirects=Mt,this.state=Xt,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zi{constructor(Je){this.route=Je,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ki{constructor(Je){this.route=Je,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Xi{constructor(Je){this.snapshot=Je,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wr{constructor(Je){this.snapshot=Je,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vr{constructor(Je){this.snapshot=Je,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jr{constructor(Je){this.snapshot=Je,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xr{constructor(Je,ze,Mt){this.routerEvent=Je,this.position=ze,this.anchor=Mt,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Uo=(()=>{class it{createUrlTree(ze,Mt,Xt,Bn,zn,ki){return Ri(ze||Mt.root,Xt,Bn,zn,ki)}}return it.\u0275fac=function(ze){return new(ze||it)},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac}),it})(),qo=(()=>{class it{}return it.\u0275fac=function(ze){return new(ze||it)},it.\u0275prov=o.Yz7({token:it,factory:function(Je){return Uo.\u0275fac(Je)},providedIn:"root"}),it})();class go{constructor(Je){this._root=Je}get root(){return this._root.value}parent(Je){const ze=this.pathFromRoot(Je);return ze.length>1?ze[ze.length-2]:null}children(Je){const ze=Vo(Je,this._root);return ze?ze.children.map(Mt=>Mt.value):[]}firstChild(Je){const ze=Vo(Je,this._root);return ze&&ze.children.length>0?ze.children[0].value:null}siblings(Je){const ze=So(Je,this._root);return ze.length<2?[]:ze[ze.length-2].children.map(Xt=>Xt.value).filter(Xt=>Xt!==Je)}pathFromRoot(Je){return So(Je,this._root).map(ze=>ze.value)}}function Vo(it,Je){if(it===Je.value)return Je;for(const ze of Je.children){const Mt=Vo(it,ze);if(Mt)return Mt}return null}function So(it,Je){if(it===Je.value)return[Je];for(const ze of Je.children){const Mt=So(it,ze);if(Mt.length)return Mt.unshift(Je),Mt}return[]}class ba{constructor(Je,ze){this.value=Je,this.children=ze}toString(){return`TreeNode(${this.value})`}}function Yr(it){const Je={};return it&&it.children.forEach(ze=>Je[ze.value.outlet]=ze),Je}class Ho extends go{constructor(Je,ze){super(Je),this.snapshot=ze,Go(this,Je)}toString(){return this.snapshot.toString()}}function da(it,Je){const ze=function ja(it,Je){const zn=new ca([],{},{},"",{},dt,Je,null,it.root,-1,{});return new Sa("",new ba(zn,[]))}(it,Je),Mt=new a([new _r("",{})]),Xt=new a({}),Bn=new a({}),zn=new a({}),ki=new a(""),dr=new ea(Mt,Xt,zn,ki,Bn,dt,Je,ze.root);return dr.snapshot=ze.root,new Ho(new ba(dr,[]),ze)}class ea{constructor(Je,ze,Mt,Xt,Bn,zn,ki,dr){this.url=Je,this.params=ze,this.queryParams=Mt,this.fragment=Xt,this.data=Bn,this.outlet=zn,this.component=ki,this.title=this.data?.pipe((0,j.U)(jr=>jr[ht]))??(0,I.of)(void 0),this._futureSnapshot=dr}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,j.U)(Je=>Ft(Je)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,j.U)(Je=>Ft(Je)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function us(it,Je="emptyOnly"){const ze=it.pathFromRoot;let Mt=0;if("always"!==Je)for(Mt=ze.length-1;Mt>=1;){const Xt=ze[Mt],Bn=ze[Mt-1];if(Xt.routeConfig&&""===Xt.routeConfig.path)Mt--;else{if(Bn.component)break;Mt--}}return function Ko(it){return it.reduce((Je,ze)=>({params:{...Je.params,...ze.params},data:{...Je.data,...ze.data},resolve:{...ze.data,...Je.resolve,...ze.routeConfig?.data,...ze._resolvedData}}),{params:{},data:{},resolve:{}})}(ze.slice(Mt))}class ca{get title(){return this.data?.[ht]}constructor(Je,ze,Mt,Xt,Bn,zn,ki,dr,jr,$r,ra){this.url=Je,this.params=ze,this.queryParams=Mt,this.fragment=Xt,this.data=Bn,this.outlet=zn,this.component=ki,this.routeConfig=dr,this._urlSegment=jr,this._lastPathIndex=$r,this._resolve=ra}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=Ft(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ft(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Mt=>Mt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Sa extends go{constructor(Je,ze){super(ze),this.url=Je,Go(this,ze)}toString(){return La(this._root)}}function Go(it,Je){Je.value._routerState=it,Je.children.forEach(ze=>Go(it,ze))}function La(it){const Je=it.children.length>0?` { ${it.children.map(La).join(", ")} } `:"";return`${it.value}${Je}`}function jo(it){if(it.snapshot){const Je=it.snapshot,ze=it._futureSnapshot;it.snapshot=ze,xn(Je.queryParams,ze.queryParams)||it.queryParams.next(ze.queryParams),Je.fragment!==ze.fragment&&it.fragment.next(ze.fragment),xn(Je.params,ze.params)||it.params.next(ze.params),function _n(it,Je){if(it.length!==Je.length)return!1;for(let ze=0;ze<it.length;++ze)if(!xn(it[ze],Je[ze]))return!1;return!0}(Je.url,ze.url)||it.url.next(ze.url),xn(Je.data,ze.data)||it.data.next(ze.data)}else it.snapshot=it._futureSnapshot,it.data.next(it._futureSnapshot.data)}function ta(it,Je){const ze=xn(it.params,Je.params)&&function yn(it,Je){return Rn(it,Je)&&it.every((ze,Mt)=>xn(ze.parameters,Je[Mt].parameters))}(it.url,Je.url);return ze&&!(!it.parent!=!Je.parent)&&(!it.parent||ta(it.parent,Je.parent))}function ma(it,Je,ze){if(ze&&it.shouldReuseRoute(Je.value,ze.value.snapshot)){const Mt=ze.value;Mt._futureSnapshot=Je.value;const Xt=function ha(it,Je,ze){return Je.children.map(Mt=>{for(const Xt of ze.children)if(it.shouldReuseRoute(Mt.value,Xt.value.snapshot))return ma(it,Mt,Xt);return ma(it,Mt)})}(it,Je,ze);return new ba(Mt,Xt)}{if(it.shouldAttach(Je.value)){const Bn=it.retrieve(Je.value);if(null!==Bn){const zn=Bn.route;return zn.value._futureSnapshot=Je.value,zn.children=Je.children.map(ki=>ma(it,ki)),zn}}const Mt=function $o(it){return new ea(new a(it.url),new a(it.params),new a(it.queryParams),new a(it.fragment),new a(it.data),it.outlet,it.component,it)}(Je.value),Xt=Je.children.map(Bn=>ma(it,Bn));return new ba(Mt,Xt)}}const Da="ngNavigationCancelingError";function _a(it,Je){const{redirectTo:ze,navigationBehaviorOptions:Mt}=mi(Je)?{redirectTo:Je,navigationBehaviorOptions:void 0}:Je,Xt=va(!1,0,Je);return Xt.url=ze,Xt.navigationBehaviorOptions=Mt,Xt}function va(it,Je,ze){const Mt=new Error("NavigationCancelingError: "+(it||""));return Mt[Da]=!0,Mt.cancellationCode=Je,ze&&(Mt.url=ze),Mt}function pa(it){return Qt(it)&&mi(it.url)}function Qt(it){return it&&it[Da]}class Kt{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Pt,this.attachRef=null}}let Pt=(()=>{class it{constructor(){this.contexts=new Map}onChildOutletCreated(ze,Mt){const Xt=this.getOrCreateContext(ze);Xt.outlet=Mt,this.contexts.set(ze,Xt)}onChildOutletDestroyed(ze){const Mt=this.getContext(ze);Mt&&(Mt.outlet=null,Mt.attachRef=null)}onOutletDeactivated(){const ze=this.contexts;return this.contexts=new Map,ze}onOutletReAttached(ze){this.contexts=ze}getOrCreateContext(ze){let Mt=this.getContext(ze);return Mt||(Mt=new Kt,this.contexts.set(ze,Mt)),Mt}getContext(ze){return this.contexts.get(ze)||null}}return it.\u0275fac=function(ze){return new(ze||it)},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();const Pn=!1;let Vi=(()=>{class it{constructor(){this.activated=null,this._activatedRoute=null,this.name=dt,this.activateEvents=new o.vpe,this.deactivateEvents=new o.vpe,this.attachEvents=new o.vpe,this.detachEvents=new o.vpe,this.parentContexts=(0,o.f3M)(Pt),this.location=(0,o.f3M)(o.s_b),this.changeDetector=(0,o.f3M)(o.sBO),this.environmentInjector=(0,o.f3M)(o.lqb)}ngOnChanges(ze){if(ze.name){const{firstChange:Mt,previousValue:Xt}=ze.name;if(Mt)return;this.isTrackedInParentContexts(Xt)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Xt)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(ze){return this.parentContexts.getContext(ze)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const ze=this.parentContexts.getContext(this.name);ze?.route&&(ze.attachRef?this.attach(ze.attachRef,ze.route):this.activateWith(ze.route,ze.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new o.vHH(4012,Pn);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new o.vHH(4012,Pn);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new o.vHH(4012,Pn);this.location.detach();const ze=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(ze.instance),ze}attach(ze,Mt){this.activated=ze,this._activatedRoute=Mt,this.location.insert(ze.hostView),this.attachEvents.emit(ze.instance)}deactivate(){if(this.activated){const ze=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(ze)}}activateWith(ze,Mt){if(this.isActivated)throw new o.vHH(4013,Pn);this._activatedRoute=ze;const Xt=this.location,zn=ze.snapshot.component,ki=this.parentContexts.getOrCreateContext(this.name).children,dr=new Wr(ze,ki,Xt.injector);if(Mt&&function fo(it){return!!it.resolveComponentFactory}(Mt)){const jr=Mt.resolveComponentFactory(zn);this.activated=Xt.createComponent(jr,Xt.length,dr)}else this.activated=Xt.createComponent(zn,{index:Xt.length,injector:dr,environmentInjector:Mt??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return it.\u0275fac=function(ze){return new(ze||it)},it.\u0275dir=o.lG2({type:it,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[o.TTD]}),it})();class Wr{constructor(Je,ze,Mt){this.route=Je,this.childContexts=ze,this.parent=Mt}get(Je,ze){return Je===ea?this.route:Je===Pt?this.childContexts:this.parent.get(Je,ze)}}let vt=(()=>{class it{}return it.\u0275fac=function(ze){return new(ze||it)},it.\u0275cmp=o.Xpm({type:it,selectors:[["ng-component"]],standalone:!0,features:[o.jDz],decls:1,vars:0,template:function(ze,Mt){1&ze&&o._UZ(0,"router-outlet")},dependencies:[Vi],encapsulation:2}),it})();function ot(it,Je){return it.providers&&!it._injector&&(it._injector=(0,o.MMx)(it.providers,Je,`Route: ${it.path}`)),it._injector??Je}function vi(it){const Je=it.children&&it.children.map(vi),ze=Je?{...it,children:Je}:{...it};return!ze.component&&!ze.loadComponent&&(Je||ze.loadChildren)&&ze.outlet&&ze.outlet!==dt&&(ze.component=vt),ze}function Ei(it){return it.outlet||dt}function bi(it,Je){const ze=it.filter(Mt=>Ei(Mt)===Je);return ze.push(...it.filter(Mt=>Ei(Mt)!==Je)),ze}function tr(it){if(!it)return null;if(it.routeConfig?._injector)return it.routeConfig._injector;for(let Je=it.parent;Je;Je=Je.parent){const ze=Je.routeConfig;if(ze?._loadedInjector)return ze._loadedInjector;if(ze?._injector)return ze._injector}return null}class sr{constructor(Je,ze,Mt,Xt){this.routeReuseStrategy=Je,this.futureState=ze,this.currState=Mt,this.forwardEvent=Xt}activate(Je){const ze=this.futureState._root,Mt=this.currState?this.currState._root:null;this.deactivateChildRoutes(ze,Mt,Je),jo(this.futureState.root),this.activateChildRoutes(ze,Mt,Je)}deactivateChildRoutes(Je,ze,Mt){const Xt=Yr(ze);Je.children.forEach(Bn=>{const zn=Bn.value.outlet;this.deactivateRoutes(Bn,Xt[zn],Mt),delete Xt[zn]}),Oi(Xt,(Bn,zn)=>{this.deactivateRouteAndItsChildren(Bn,Mt)})}deactivateRoutes(Je,ze,Mt){const Xt=Je.value,Bn=ze?ze.value:null;if(Xt===Bn)if(Xt.component){const zn=Mt.getContext(Xt.outlet);zn&&this.deactivateChildRoutes(Je,ze,zn.children)}else this.deactivateChildRoutes(Je,ze,Mt);else Bn&&this.deactivateRouteAndItsChildren(ze,Mt)}deactivateRouteAndItsChildren(Je,ze){Je.value.component&&this.routeReuseStrategy.shouldDetach(Je.value.snapshot)?this.detachAndStoreRouteSubtree(Je,ze):this.deactivateRouteAndOutlet(Je,ze)}detachAndStoreRouteSubtree(Je,ze){const Mt=ze.getContext(Je.value.outlet),Xt=Mt&&Je.value.component?Mt.children:ze,Bn=Yr(Je);for(const zn of Object.keys(Bn))this.deactivateRouteAndItsChildren(Bn[zn],Xt);if(Mt&&Mt.outlet){const zn=Mt.outlet.detach(),ki=Mt.children.onOutletDeactivated();this.routeReuseStrategy.store(Je.value.snapshot,{componentRef:zn,route:Je,contexts:ki})}}deactivateRouteAndOutlet(Je,ze){const Mt=ze.getContext(Je.value.outlet),Xt=Mt&&Je.value.component?Mt.children:ze,Bn=Yr(Je);for(const zn of Object.keys(Bn))this.deactivateRouteAndItsChildren(Bn[zn],Xt);Mt&&Mt.outlet&&(Mt.outlet.deactivate(),Mt.children.onOutletDeactivated(),Mt.attachRef=null,Mt.resolver=null,Mt.route=null)}activateChildRoutes(Je,ze,Mt){const Xt=Yr(ze);Je.children.forEach(Bn=>{this.activateRoutes(Bn,Xt[Bn.value.outlet],Mt),this.forwardEvent(new Jr(Bn.value.snapshot))}),Je.children.length&&this.forwardEvent(new wr(Je.value.snapshot))}activateRoutes(Je,ze,Mt){const Xt=Je.value,Bn=ze?ze.value:null;if(jo(Xt),Xt===Bn)if(Xt.component){const zn=Mt.getOrCreateContext(Xt.outlet);this.activateChildRoutes(Je,ze,zn.children)}else this.activateChildRoutes(Je,ze,Mt);else if(Xt.component){const zn=Mt.getOrCreateContext(Xt.outlet);if(this.routeReuseStrategy.shouldAttach(Xt.snapshot)){const ki=this.routeReuseStrategy.retrieve(Xt.snapshot);this.routeReuseStrategy.store(Xt.snapshot,null),zn.children.onOutletReAttached(ki.contexts),zn.attachRef=ki.componentRef,zn.route=ki.route.value,zn.outlet&&zn.outlet.attach(ki.componentRef,ki.route.value),jo(ki.route.value),this.activateChildRoutes(Je,null,zn.children)}else{const ki=tr(Xt.snapshot),dr=ki?.get(o._Vd)??null;zn.attachRef=null,zn.route=Xt,zn.resolver=dr,zn.injector=ki,zn.outlet&&zn.outlet.activateWith(Xt,zn.injector),this.activateChildRoutes(Je,null,zn.children)}}else this.activateChildRoutes(Je,null,Mt)}}class fr{constructor(Je){this.path=Je,this.route=this.path[this.path.length-1]}}class Gi{constructor(Je,ze){this.component=Je,this.route=ze}}function er(it,Je,ze){const Mt=it._root;return Sr(Mt,Je?Je._root:null,ze,[Mt.value])}function Lr(it,Je){const ze=Symbol(),Mt=Je.get(it,ze);return Mt===ze?"function"!=typeof it||(0,o.Z0I)(it)?Je.get(it):it:Mt}function Sr(it,Je,ze,Mt,Xt={canDeactivateChecks:[],canActivateChecks:[]}){const Bn=Yr(Je);return it.children.forEach(zn=>{(function Or(it,Je,ze,Mt,Xt={canDeactivateChecks:[],canActivateChecks:[]}){const Bn=it.value,zn=Je?Je.value:null,ki=ze?ze.getContext(it.value.outlet):null;if(zn&&Bn.routeConfig===zn.routeConfig){const dr=function Rr(it,Je,ze){if("function"==typeof ze)return ze(it,Je);switch(ze){case"pathParamsChange":return!Rn(it.url,Je.url);case"pathParamsOrQueryParamsChange":return!Rn(it.url,Je.url)||!xn(it.queryParams,Je.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ta(it,Je)||!xn(it.queryParams,Je.queryParams);default:return!ta(it,Je)}}(zn,Bn,Bn.routeConfig.runGuardsAndResolvers);dr?Xt.canActivateChecks.push(new fr(Mt)):(Bn.data=zn.data,Bn._resolvedData=zn._resolvedData),Sr(it,Je,Bn.component?ki?ki.children:null:ze,Mt,Xt),dr&&ki&&ki.outlet&&ki.outlet.isActivated&&Xt.canDeactivateChecks.push(new Gi(ki.outlet.component,zn))}else zn&&Qr(Je,ki,Xt),Xt.canActivateChecks.push(new fr(Mt)),Sr(it,null,Bn.component?ki?ki.children:null:ze,Mt,Xt)})(zn,Bn[zn.value.outlet],ze,Mt.concat([zn.value]),Xt),delete Bn[zn.value.outlet]}),Oi(Bn,(zn,ki)=>Qr(zn,ze.getContext(ki),Xt)),Xt}function Qr(it,Je,ze){const Mt=Yr(it),Xt=it.value;Oi(Mt,(Bn,zn)=>{Qr(Bn,Xt.component?Je?Je.children.getContext(zn):null:Je,ze)}),ze.canDeactivateChecks.push(new Gi(Xt.component&&Je&&Je.outlet&&Je.outlet.isActivated?Je.outlet.component:null,Xt))}function Br(it){return"function"==typeof it}function Ia(it){return it instanceof s||"EmptyError"===it?.name}const Ma=Symbol("INITIAL_VALUE");function wa(){return G(it=>w(it.map(Je=>Je.pipe((0,X.q)(1),function M(...it){const Je=it[it.length-1];return(0,u.K)(Je)?(it.pop(),ze=>B(it,ze,Je)):ze=>B(it,ze)}(Ma)))).pipe((0,j.U)(Je=>{for(const ze of Je)if(!0!==ze){if(ze===Ma)return Ma;if(!1===ze||ze instanceof $i)return ze}return!0}),(0,se.h)(Je=>Je!==Ma),(0,X.q)(1)))}function pn(it){return(0,V.z)(te(Je=>{if(mi(Je))throw _a(0,Je)}),(0,j.U)(Je=>!0===Je))}const Qe={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function lt(it,Je,ze,Mt,Xt){const Bn=xt(it,Je,ze);return Bn.matched?function qn(it,Je,ze,Mt){const Xt=Je.canMatch;if(!Xt||0===Xt.length)return(0,I.of)(!0);const Bn=Xt.map(zn=>{const ki=Lr(zn,it);return Hn(function oa(it){return it&&Br(it.canMatch)}(ki)?ki.canMatch(Je,ze):it.runInContext(()=>ki(Je,ze)))});return(0,I.of)(Bn).pipe(wa(),pn())}(Mt=ot(Je,Mt),Je,ze).pipe((0,j.U)(zn=>!0===zn?Bn:{...Qe})):(0,I.of)(Bn)}function xt(it,Je,ze){if(""===Je.path)return"full"===Je.pathMatch&&(it.hasChildren()||ze.length>0)?{...Qe}:{matched:!0,consumedSegments:[],remainingSegments:ze,parameters:{},positionalParamSegments:{}};const Xt=(Je.matcher||bn)(ze,it,Je);if(!Xt)return{...Qe};const Bn={};Oi(Xt.posParams,(ki,dr)=>{Bn[dr]=ki.path});const zn=Xt.consumed.length>0?{...Bn,...Xt.consumed[Xt.consumed.length-1].parameters}:Bn;return{matched:!0,consumedSegments:Xt.consumed,remainingSegments:ze.slice(Xt.consumed.length),parameters:zn,positionalParamSegments:Xt.posParams??{}}}function Tn(it,Je,ze,Mt){if(ze.length>0&&function Pi(it,Je,ze){return ze.some(Mt=>rr(it,Je,Mt)&&Ei(Mt)!==dt)}(it,ze,Mt)){const Bn=new Qi(Je,function wi(it,Je,ze,Mt){const Xt={};Xt[dt]=Mt,Mt._sourceSegment=it,Mt._segmentIndexShift=Je.length;for(const Bn of ze)if(""===Bn.path&&Ei(Bn)!==dt){const zn=new Qi([],{});zn._sourceSegment=it,zn._segmentIndexShift=Je.length,Xt[Ei(Bn)]=zn}return Xt}(it,Je,Mt,new Qi(ze,it.children)));return Bn._sourceSegment=it,Bn._segmentIndexShift=Je.length,{segmentGroup:Bn,slicedSegments:[]}}if(0===ze.length&&function Li(it,Je,ze){return ze.some(Mt=>rr(it,Je,Mt))}(it,ze,Mt)){const Bn=new Qi(it.segments,function ii(it,Je,ze,Mt,Xt){const Bn={};for(const zn of Mt)if(rr(it,ze,zn)&&!Xt[Ei(zn)]){const ki=new Qi([],{});ki._sourceSegment=it,ki._segmentIndexShift=Je.length,Bn[Ei(zn)]=ki}return{...Xt,...Bn}}(it,Je,ze,Mt,it.children));return Bn._sourceSegment=it,Bn._segmentIndexShift=Je.length,{segmentGroup:Bn,slicedSegments:ze}}const Xt=new Qi(it.segments,it.children);return Xt._sourceSegment=it,Xt._segmentIndexShift=Je.length,{segmentGroup:Xt,slicedSegments:ze}}function rr(it,Je,ze){return(!(it.hasChildren()||Je.length>0)||"full"!==ze.pathMatch)&&""===ze.path}function Cr(it,Je,ze,Mt){return!!(Ei(it)===Mt||Mt!==dt&&rr(Je,ze,it))&&("**"===it.path||xt(Je,it,ze).matched)}function qr(it,Je,ze){return 0===Je.length&&!it.children[ze]}const lo=!1;class mo{constructor(Je){this.segmentGroup=Je||null}}class bo{constructor(Je){this.urlTree=Je}}function wo(it){return U(new mo(it))}function Lo(it){return U(new bo(it))}class aa{constructor(Je,ze,Mt,Xt,Bn){this.injector=Je,this.configLoader=ze,this.urlSerializer=Mt,this.urlTree=Xt,this.config=Bn,this.allowRedirects=!0}apply(){const Je=Tn(this.urlTree.root,[],[],this.config).segmentGroup,ze=new Qi(Je.segments,Je.children);return this.expandSegmentGroup(this.injector,this.config,ze,dt).pipe((0,j.U)(Bn=>this.createUrlTree($n(Bn),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ye(Bn=>{if(Bn instanceof bo)return this.allowRedirects=!1,this.match(Bn.urlTree);throw Bn instanceof mo?this.noMatchError(Bn):Bn}))}match(Je){return this.expandSegmentGroup(this.injector,this.config,Je.root,dt).pipe((0,j.U)(Xt=>this.createUrlTree($n(Xt),Je.queryParams,Je.fragment))).pipe(ye(Xt=>{throw Xt instanceof mo?this.noMatchError(Xt):Xt}))}noMatchError(Je){return new o.vHH(4002,lo)}createUrlTree(Je,ze,Mt){const Xt=tn(Je);return new $i(Xt,ze,Mt)}expandSegmentGroup(Je,ze,Mt,Xt){return 0===Mt.segments.length&&Mt.hasChildren()?this.expandChildren(Je,ze,Mt).pipe((0,j.U)(Bn=>new Qi([],Bn))):this.expandSegment(Je,Mt,ze,Mt.segments,Xt,!0)}expandChildren(Je,ze,Mt){const Xt=[];for(const Bn of Object.keys(Mt.children))"primary"===Bn?Xt.unshift(Bn):Xt.push(Bn);return(0,c.D)(Xt).pipe((0,pe.b)(Bn=>{const zn=Mt.children[Bn],ki=bi(ze,Bn);return this.expandSegmentGroup(Je,ki,zn,Bn).pipe((0,j.U)(dr=>({segment:dr,outlet:Bn})))}),ft((Bn,zn)=>(Bn[zn.outlet]=zn.segment,Bn),{}),me())}expandSegment(Je,ze,Mt,Xt,Bn,zn){return(0,c.D)(Mt).pipe((0,pe.b)(ki=>this.expandSegmentAgainstRoute(Je,ze,Mt,ki,Xt,Bn,zn).pipe(ye(jr=>{if(jr instanceof mo)return(0,I.of)(null);throw jr}))),le(ki=>!!ki),ye((ki,dr)=>{if(Ia(ki))return qr(ze,Xt,Bn)?(0,I.of)(new Qi([],{})):wo(ze);throw ki}))}expandSegmentAgainstRoute(Je,ze,Mt,Xt,Bn,zn,ki){return Cr(Xt,ze,Bn,zn)?void 0===Xt.redirectTo?this.matchSegmentAgainstRoute(Je,ze,Xt,Bn,zn):ki&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Je,ze,Mt,Xt,Bn,zn):wo(ze):wo(ze)}expandSegmentAgainstRouteUsingRedirect(Je,ze,Mt,Xt,Bn,zn){return"**"===Xt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Je,Mt,Xt,zn):this.expandRegularSegmentAgainstRouteUsingRedirect(Je,ze,Mt,Xt,Bn,zn)}expandWildCardWithParamsAgainstRouteUsingRedirect(Je,ze,Mt,Xt){const Bn=this.applyRedirectCommands([],Mt.redirectTo,{});return Mt.redirectTo.startsWith("/")?Lo(Bn):this.lineralizeSegments(Mt,Bn).pipe((0,ge.zg)(zn=>{const ki=new Qi(zn,{});return this.expandSegment(Je,ki,ze,zn,Xt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Je,ze,Mt,Xt,Bn,zn){const{matched:ki,consumedSegments:dr,remainingSegments:jr,positionalParamSegments:$r}=xt(ze,Xt,Bn);if(!ki)return wo(ze);const ra=this.applyRedirectCommands(dr,Xt.redirectTo,$r);return Xt.redirectTo.startsWith("/")?Lo(ra):this.lineralizeSegments(Xt,ra).pipe((0,ge.zg)(Pa=>this.expandSegment(Je,ze,Mt,Pa.concat(jr),zn,!1)))}matchSegmentAgainstRoute(Je,ze,Mt,Xt,Bn){return"**"===Mt.path?(Je=ot(Mt,Je),Mt.loadChildren?(Mt._loadedRoutes?(0,I.of)({routes:Mt._loadedRoutes,injector:Mt._loadedInjector}):this.configLoader.loadChildren(Je,Mt)).pipe((0,j.U)(ki=>(Mt._loadedRoutes=ki.routes,Mt._loadedInjector=ki.injector,new Qi(Xt,{})))):(0,I.of)(new Qi(Xt,{}))):lt(ze,Mt,Xt,Je).pipe(G(({matched:zn,consumedSegments:ki,remainingSegments:dr})=>zn?this.getChildConfig(Je=Mt._injector??Je,Mt,Xt).pipe((0,ge.zg)($r=>{const ra=$r.injector??Je,Pa=$r.routes,{segmentGroup:Ms,slicedSegments:Us}=Tn(ze,ki,dr,Pa),Al=new Qi(Ms.segments,Ms.children);if(0===Us.length&&Al.hasChildren())return this.expandChildren(ra,Pa,Al).pipe((0,j.U)(Jp=>new Qi(ki,Jp)));if(0===Pa.length&&0===Us.length)return(0,I.of)(new Qi(ki,{}));const As=Ei(Mt)===Bn;return this.expandSegment(ra,Al,Pa,Us,As?dt:Bn,!0).pipe((0,j.U)(ku=>new Qi(ki.concat(ku.segments),ku.children)))})):wo(ze)))}getChildConfig(Je,ze,Mt){return ze.children?(0,I.of)({routes:ze.children,injector:Je}):ze.loadChildren?void 0!==ze._loadedRoutes?(0,I.of)({routes:ze._loadedRoutes,injector:ze._loadedInjector}):function wt(it,Je,ze,Mt){const Xt=Je.canLoad;if(void 0===Xt||0===Xt.length)return(0,I.of)(!0);const Bn=Xt.map(zn=>{const ki=Lr(zn,it);return Hn(function Ro(it){return it&&Br(it.canLoad)}(ki)?ki.canLoad(Je,ze):it.runInContext(()=>ki(Je,ze)))});return(0,I.of)(Bn).pipe(wa(),pn())}(Je,ze,Mt).pipe((0,ge.zg)(Xt=>Xt?this.configLoader.loadChildren(Je,ze).pipe(te(Bn=>{ze._loadedRoutes=Bn.routes,ze._loadedInjector=Bn.injector})):function ia(it){return U(va(lo,3))}())):(0,I.of)({routes:[],injector:Je})}lineralizeSegments(Je,ze){let Mt=[],Xt=ze.root;for(;;){if(Mt=Mt.concat(Xt.segments),0===Xt.numberOfChildren)return(0,I.of)(Mt);if(Xt.numberOfChildren>1||!Xt.children[dt])return U(new o.vHH(4e3,lo));Xt=Xt.children[dt]}}applyRedirectCommands(Je,ze,Mt){return this.applyRedirectCreateUrlTree(ze,this.urlSerializer.parse(ze),Je,Mt)}applyRedirectCreateUrlTree(Je,ze,Mt,Xt){const Bn=this.createSegmentGroup(Je,ze.root,Mt,Xt);return new $i(Bn,this.createQueryParams(ze.queryParams,this.urlTree.queryParams),ze.fragment)}createQueryParams(Je,ze){const Mt={};return Oi(Je,(Xt,Bn)=>{if("string"==typeof Xt&&Xt.startsWith(":")){const ki=Xt.substring(1);Mt[Bn]=ze[ki]}else Mt[Bn]=Xt}),Mt}createSegmentGroup(Je,ze,Mt,Xt){const Bn=this.createSegments(Je,ze.segments,Mt,Xt);let zn={};return Oi(ze.children,(ki,dr)=>{zn[dr]=this.createSegmentGroup(Je,ki,Mt,Xt)}),new Qi(Bn,zn)}createSegments(Je,ze,Mt,Xt){return ze.map(Bn=>Bn.path.startsWith(":")?this.findPosParam(Je,Bn,Xt):this.findOrReturn(Bn,Mt))}findPosParam(Je,ze,Mt){const Xt=Mt[ze.path.substring(1)];if(!Xt)throw new o.vHH(4001,lo);return Xt}findOrReturn(Je,ze){let Mt=0;for(const Xt of ze){if(Xt.path===Je.path)return ze.splice(Mt),Xt;Mt++}return Je}}class Ph{}class wu{constructor(Je,ze,Mt,Xt,Bn,zn,ki){this.injector=Je,this.rootComponentType=ze,this.config=Mt,this.urlTree=Xt,this.url=Bn,this.paramsInheritanceStrategy=zn,this.urlSerializer=ki}recognize(){const Je=Tn(this.urlTree.root,[],[],this.config.filter(ze=>void 0===ze.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,Je,dt).pipe((0,j.U)(ze=>{if(null===ze)return null;const Mt=new ca([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},dt,this.rootComponentType,null,this.urlTree.root,-1,{}),Xt=new ba(Mt,ze),Bn=new Sa(this.url,Xt);return this.inheritParamsAndData(Bn._root),Bn}))}inheritParamsAndData(Je){const ze=Je.value,Mt=us(ze,this.paramsInheritanceStrategy);ze.params=Object.freeze(Mt.params),ze.data=Object.freeze(Mt.data),Je.children.forEach(Xt=>this.inheritParamsAndData(Xt))}processSegmentGroup(Je,ze,Mt,Xt){return 0===Mt.segments.length&&Mt.hasChildren()?this.processChildren(Je,ze,Mt):this.processSegment(Je,ze,Mt,Mt.segments,Xt)}processChildren(Je,ze,Mt){return(0,c.D)(Object.keys(Mt.children)).pipe((0,pe.b)(Xt=>{const Bn=Mt.children[Xt],zn=bi(ze,Xt);return this.processSegmentGroup(Je,zn,Bn,Xt)}),ft((Xt,Bn)=>Xt&&Bn?(Xt.push(...Bn),Xt):null),function xe(it,Je=!1){return ze=>ze.lift(new Te(it,Je))}(Xt=>null!==Xt),De(null),me(),(0,j.U)(Xt=>{if(null===Xt)return null;const Bn=td(Xt);return function Ld(it){it.sort((Je,ze)=>Je.value.outlet===dt?-1:ze.value.outlet===dt?1:Je.value.outlet.localeCompare(ze.value.outlet))}(Bn),Bn}))}processSegment(Je,ze,Mt,Xt,Bn){return(0,c.D)(ze).pipe((0,pe.b)(zn=>this.processSegmentAgainstRoute(zn._injector??Je,zn,Mt,Xt,Bn)),le(zn=>!!zn),ye(zn=>{if(Ia(zn))return qr(Mt,Xt,Bn)?(0,I.of)([]):(0,I.of)(null);throw zn}))}processSegmentAgainstRoute(Je,ze,Mt,Xt,Bn){if(ze.redirectTo||!Cr(ze,Mt,Xt,Bn))return(0,I.of)(null);let zn;if("**"===ze.path){const ki=Xt.length>0?Ai(Xt).parameters:{},dr=Hs(Mt)+Xt.length,jr=new ca(Xt,ki,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Su(ze),Ei(ze),ze.component??ze._loadedComponent??null,ze,Cc(Mt),dr,Ou(ze));zn=(0,I.of)({snapshot:jr,consumedSegments:[],remainingSegments:[]})}else zn=lt(Mt,ze,Xt,Je).pipe((0,j.U)(({matched:ki,consumedSegments:dr,remainingSegments:jr,parameters:$r})=>{if(!ki)return null;const ra=Hs(Mt)+dr.length;return{snapshot:new ca(dr,$r,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Su(ze),Ei(ze),ze.component??ze._loadedComponent??null,ze,Cc(Mt),ra,Ou(ze)),consumedSegments:dr,remainingSegments:jr}}));return zn.pipe(G(ki=>{if(null===ki)return(0,I.of)(null);const{snapshot:dr,consumedSegments:jr,remainingSegments:$r}=ki;Je=ze._injector??Je;const ra=ze._loadedInjector??Je,Pa=function Eu(it){return it.children?it.children:it.loadChildren?it._loadedRoutes:[]}(ze),{segmentGroup:Ms,slicedSegments:Us}=Tn(Mt,jr,$r,Pa.filter(As=>void 0===As.redirectTo));if(0===Us.length&&Ms.hasChildren())return this.processChildren(ra,Pa,Ms).pipe((0,j.U)(As=>null===As?null:[new ba(dr,As)]));if(0===Pa.length&&0===Us.length)return(0,I.of)([new ba(dr,[])]);const Al=Ei(ze)===Bn;return this.processSegment(ra,Pa,Ms,Us,Al?dt:Bn).pipe((0,j.U)(As=>null===As?null:[new ba(dr,As)]))}))}}function Wp(it){const Je=it.value.routeConfig;return Je&&""===Je.path&&void 0===Je.redirectTo}function td(it){const Je=[],ze=new Set;for(const Mt of it){if(!Wp(Mt)){Je.push(Mt);continue}const Xt=Je.find(Bn=>Mt.value.routeConfig===Bn.value.routeConfig);void 0!==Xt?(Xt.children.push(...Mt.children),ze.add(Xt)):Je.push(Mt)}for(const Mt of ze){const Xt=td(Mt.children);Je.push(new ba(Mt.value,Xt))}return Je.filter(Mt=>!ze.has(Mt))}function Cc(it){let Je=it;for(;Je._sourceSegment;)Je=Je._sourceSegment;return Je}function Hs(it){let Je=it,ze=Je._segmentIndexShift??0;for(;Je._sourceSegment;)Je=Je._sourceSegment,ze+=Je._segmentIndexShift??0;return ze-1}function Su(it){return it.data||{}}function Ou(it){return it.resolve||{}}function id(it){return"string"==typeof it.title||null===it.title}function Du(it){return G(Je=>{const ze=it(Je);return ze?(0,c.D)(ze).pipe((0,j.U)(()=>Je)):(0,I.of)(Je)})}const ws=new o.OlP("ROUTES");let rd=(()=>{class it{constructor(ze,Mt){this.injector=ze,this.compiler=Mt,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(ze){if(this.componentLoaders.get(ze))return this.componentLoaders.get(ze);if(ze._loadedComponent)return(0,I.of)(ze._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(ze);const Mt=Hn(ze.loadComponent()).pipe((0,j.U)(Fd),te(Bn=>{this.onLoadEndListener&&this.onLoadEndListener(ze),ze._loadedComponent=Bn}),ct(()=>{this.componentLoaders.delete(ze)})),Xt=new Y.c(Mt,()=>new C.xQ).pipe((0,qe.x)());return this.componentLoaders.set(ze,Xt),Xt}loadChildren(ze,Mt){if(this.childrenLoaders.get(Mt))return this.childrenLoaders.get(Mt);if(Mt._loadedRoutes)return(0,I.of)({routes:Mt._loadedRoutes,injector:Mt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Mt);const Bn=this.loadModuleFactoryOrRoutes(Mt.loadChildren).pipe((0,j.U)(ki=>{this.onLoadEndListener&&this.onLoadEndListener(Mt);let dr,jr,$r=!1;Array.isArray(ki)?jr=ki:(dr=ki.create(ze).injector,jr=li(dr.get(ws,[],o.XFs.Self|o.XFs.Optional)));return{routes:jr.map(vi),injector:dr}}),ct(()=>{this.childrenLoaders.delete(Mt)})),zn=new Y.c(Bn,()=>new C.xQ).pipe((0,qe.x)());return this.childrenLoaders.set(Mt,zn),zn}loadModuleFactoryOrRoutes(ze){return Hn(ze()).pipe((0,j.U)(Fd),(0,ge.zg)(Xt=>Xt instanceof o.YKP||Array.isArray(Xt)?(0,I.of)(Xt):(0,c.D)(this.compiler.compileModuleAsync(Xt))))}}return it.\u0275fac=function(ze){return new(ze||it)(o.LFG(o.zs3),o.LFG(o.Sil))},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();function Fd(it){return function Is(it){return it&&"object"==typeof it&&"default"in it}(it)?it.default:it}let zs=(()=>{class it{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new C.xQ,this.configLoader=(0,o.f3M)(rd),this.environmentInjector=(0,o.f3M)(o.lqb),this.urlSerializer=(0,o.f3M)(Si),this.rootContexts=(0,o.f3M)(Pt),this.navigationId=0,this.afterPreactivation=()=>(0,I.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Xt=>this.events.next(new Ki(Xt)),this.configLoader.onLoadStartListener=Xt=>this.events.next(new zi(Xt))}complete(){this.transitions?.complete()}handleNavigationRequest(ze){const Mt=++this.navigationId;this.transitions?.next({...this.transitions.value,...ze,id:Mt})}setupNavigations(ze){return this.transitions=new a({id:0,targetPageId:0,currentUrlTree:ze.currentUrlTree,currentRawUrl:ze.currentUrlTree,extractedUrl:ze.urlHandlingStrategy.extract(ze.currentUrlTree),urlAfterRedirects:ze.urlHandlingStrategy.extract(ze.currentUrlTree),rawUrl:ze.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:st,restoredState:null,currentSnapshot:ze.routerState.snapshot,targetSnapshot:null,currentRouterState:ze.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,se.h)(Mt=>0!==Mt.id),(0,j.U)(Mt=>({...Mt,extractedUrl:ze.urlHandlingStrategy.extract(Mt.rawUrl)})),G(Mt=>{let Xt=!1,Bn=!1;return(0,I.of)(Mt).pipe(te(zn=>{this.currentNavigation={id:zn.id,initialUrl:zn.rawUrl,extractedUrl:zn.extractedUrl,trigger:zn.source,extras:zn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),G(zn=>{const ki=ze.browserUrlTree.toString(),dr=!ze.navigated||zn.extractedUrl.toString()!==ki||ki!==ze.currentUrlTree.toString();if(!dr&&"reload"!==(zn.extras.onSameUrlNavigation??ze.onSameUrlNavigation)){const $r="";return this.events.next(new Bt(zn.id,ze.serializeUrl(Mt.rawUrl),$r,0)),ze.rawUrlTree=zn.rawUrl,zn.resolve(null),W.E}if(ze.urlHandlingStrategy.shouldProcessUrl(zn.rawUrl))return Ja(zn.source)&&(ze.browserUrlTree=zn.extractedUrl),(0,I.of)(zn).pipe(G($r=>{const ra=this.transitions?.getValue();return this.events.next(new rn($r.id,this.urlSerializer.serialize($r.extractedUrl),$r.source,$r.restoredState)),ra!==this.transitions?.getValue()?W.E:Promise.resolve($r)}),function Il(it,Je,ze,Mt){return G(Xt=>function Wo(it,Je,ze,Mt,Xt){return new aa(it,Je,ze,Mt,Xt).apply()}(it,Je,ze,Xt.extractedUrl,Mt).pipe((0,j.U)(Bn=>({...Xt,urlAfterRedirects:Bn}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,ze.config),te($r=>{this.currentNavigation={...this.currentNavigation,finalUrl:$r.urlAfterRedirects},Mt.urlAfterRedirects=$r.urlAfterRedirects}),function xc(it,Je,ze,Mt,Xt){return(0,ge.zg)(Bn=>function bu(it,Je,ze,Mt,Xt,Bn,zn="emptyOnly"){return new wu(it,Je,ze,Mt,Xt,zn,Bn).recognize().pipe(G(ki=>null===ki?function ed(it){return new y.y(Je=>Je.error(it))}(new Ph):(0,I.of)(ki)))}(it,Je,ze,Bn.urlAfterRedirects,Mt.serialize(Bn.urlAfterRedirects),Mt,Xt).pipe((0,j.U)(zn=>({...Bn,targetSnapshot:zn}))))}(this.environmentInjector,this.rootComponentType,ze.config,this.urlSerializer,ze.paramsInheritanceStrategy),te($r=>{if(Mt.targetSnapshot=$r.targetSnapshot,"eager"===ze.urlUpdateStrategy){if(!$r.extras.skipLocationChange){const Pa=ze.urlHandlingStrategy.merge($r.urlAfterRedirects,$r.rawUrl);ze.setBrowserUrl(Pa,$r)}ze.browserUrlTree=$r.urlAfterRedirects}const ra=new $t($r.id,this.urlSerializer.serialize($r.extractedUrl),this.urlSerializer.serialize($r.urlAfterRedirects),$r.targetSnapshot);this.events.next(ra)}));if(dr&&ze.urlHandlingStrategy.shouldProcessUrl(ze.rawUrlTree)){const{id:$r,extractedUrl:ra,source:Pa,restoredState:Ms,extras:Us}=zn,Al=new rn($r,this.urlSerializer.serialize(ra),Pa,Ms);this.events.next(Al);const As=da(ra,this.rootComponentType).snapshot;return Mt={...zn,targetSnapshot:As,urlAfterRedirects:ra,extras:{...Us,skipLocationChange:!1,replaceUrl:!1}},(0,I.of)(Mt)}{const $r="";return this.events.next(new Bt(zn.id,ze.serializeUrl(Mt.extractedUrl),$r,1)),ze.rawUrlTree=zn.rawUrl,zn.resolve(null),W.E}}),te(zn=>{const ki=new Un(zn.id,this.urlSerializer.serialize(zn.extractedUrl),this.urlSerializer.serialize(zn.urlAfterRedirects),zn.targetSnapshot);this.events.next(ki)}),(0,j.U)(zn=>Mt={...zn,guards:er(zn.targetSnapshot,zn.currentSnapshot,this.rootContexts)}),function Aa(it,Je){return(0,ge.zg)(ze=>{const{targetSnapshot:Mt,currentSnapshot:Xt,guards:{canActivateChecks:Bn,canDeactivateChecks:zn}}=ze;return 0===zn.length&&0===Bn.length?(0,I.of)({...ze,guardsResult:!0}):function Xl(it,Je,ze,Mt){return(0,c.D)(it).pipe((0,ge.zg)(Xt=>function Lt(it,Je,ze,Mt,Xt){const Bn=Je&&Je.routeConfig?Je.routeConfig.canDeactivate:null;if(!Bn||0===Bn.length)return(0,I.of)(!0);const zn=Bn.map(ki=>{const dr=tr(Je)??Xt,jr=Lr(ki,dr);return Hn(function zo(it){return it&&Br(it.canDeactivate)}(jr)?jr.canDeactivate(it,Je,ze,Mt):dr.runInContext(()=>jr(it,Je,ze,Mt))).pipe(le())});return(0,I.of)(zn).pipe(wa())}(Xt.component,Xt.route,ze,Je,Mt)),le(Xt=>!0!==Xt,!0))}(zn,Mt,Xt,it).pipe((0,ge.zg)(ki=>ki&&function To(it){return"boolean"==typeof it}(ki)?function Ln(it,Je,ze,Mt){return(0,c.D)(Je).pipe((0,pe.b)(Xt=>B(function Zt(it,Je){return null!==it&&Je&&Je(new Xi(it)),(0,I.of)(!0)}(Xt.route.parent,Mt),function Ut(it,Je){return null!==it&&Je&&Je(new vr(it)),(0,I.of)(!0)}(Xt.route,Mt),function Xe(it,Je,ze){const Mt=Je[Je.length-1],Bn=Je.slice(0,Je.length-1).reverse().map(zn=>function Ir(it){const Je=it.routeConfig?it.routeConfig.canActivateChild:null;return Je&&0!==Je.length?{node:it,guards:Je}:null}(zn)).filter(zn=>null!==zn).map(zn=>N(()=>{const ki=zn.guards.map(dr=>{const jr=tr(zn.node)??ze,$r=Lr(dr,jr);return Hn(function ga(it){return it&&Br(it.canActivateChild)}($r)?$r.canActivateChild(Mt,it):jr.runInContext(()=>$r(Mt,it))).pipe(le())});return(0,I.of)(ki).pipe(wa())}));return(0,I.of)(Bn).pipe(wa())}(it,Xt.path,ze),function jn(it,Je,ze){const Mt=Je.routeConfig?Je.routeConfig.canActivate:null;if(!Mt||0===Mt.length)return(0,I.of)(!0);const Xt=Mt.map(Bn=>N(()=>{const zn=tr(Je)??ze,ki=Lr(Bn,zn);return Hn(function na(it){return it&&Br(it.canActivate)}(ki)?ki.canActivate(Je,it):zn.runInContext(()=>ki(Je,it))).pipe(le())}));return(0,I.of)(Xt).pipe(wa())}(it,Xt.route,ze))),le(Xt=>!0!==Xt,!0))}(Mt,Bn,it,Je):(0,I.of)(ki)),(0,j.U)(ki=>({...ze,guardsResult:ki})))})}(this.environmentInjector,zn=>this.events.next(zn)),te(zn=>{if(Mt.guardsResult=zn.guardsResult,mi(zn.guardsResult))throw _a(0,zn.guardsResult);const ki=new ai(zn.id,this.urlSerializer.serialize(zn.extractedUrl),this.urlSerializer.serialize(zn.urlAfterRedirects),zn.targetSnapshot,!!zn.guardsResult);this.events.next(ki)}),(0,se.h)(zn=>!!zn.guardsResult||(ze.restoreHistory(zn),this.cancelNavigationTransition(zn,"",3),!1)),Du(zn=>{if(zn.guards.canActivateChecks.length)return(0,I.of)(zn).pipe(te(ki=>{const dr=new Ci(ki.id,this.urlSerializer.serialize(ki.extractedUrl),this.urlSerializer.serialize(ki.urlAfterRedirects),ki.targetSnapshot);this.events.next(dr)}),G(ki=>{let dr=!1;return(0,I.of)(ki).pipe(function Bd(it,Je){return(0,ge.zg)(ze=>{const{targetSnapshot:Mt,guards:{canActivateChecks:Xt}}=ze;if(!Xt.length)return(0,I.of)(ze);let Bn=0;return(0,c.D)(Xt).pipe((0,pe.b)(zn=>function nd(it,Je,ze,Mt){const Xt=it.routeConfig,Bn=it._resolve;return void 0!==Xt?.title&&!id(Xt)&&(Bn[ht]=Xt.title),function Zp(it,Je,ze,Mt){const Xt=function bc(it){return[...Object.keys(it),...Object.getOwnPropertySymbols(it)]}(it);if(0===Xt.length)return(0,I.of)({});const Bn={};return(0,c.D)(Xt).pipe((0,ge.zg)(zn=>function wc(it,Je,ze,Mt){const Xt=tr(Je)??Mt,Bn=Lr(it,Xt);return Hn(Bn.resolve?Bn.resolve(Je,ze):Xt.runInContext(()=>Bn(Je,ze)))}(it[zn],Je,ze,Mt).pipe(le(),te(ki=>{Bn[zn]=ki}))),nn(1),function St(it){return Je=>Je.lift(new Ct(it))}(Bn),ye(zn=>Ia(zn)?W.E:U(zn)))}(Bn,it,Je,Mt).pipe((0,j.U)(zn=>(it._resolvedData=zn,it.data=us(it,ze).resolve,Xt&&id(Xt)&&(it.data[ht]=Xt.title),null)))}(zn.route,Mt,it,Je)),te(()=>Bn++),nn(1),(0,ge.zg)(zn=>Bn===Xt.length?(0,I.of)(ze):W.E))})}(ze.paramsInheritanceStrategy,this.environmentInjector),te({next:()=>dr=!0,complete:()=>{dr||(ze.restoreHistory(ki),this.cancelNavigationTransition(ki,"",2))}}))}),te(ki=>{const dr=new Ii(ki.id,this.urlSerializer.serialize(ki.extractedUrl),this.urlSerializer.serialize(ki.urlAfterRedirects),ki.targetSnapshot);this.events.next(dr)}))}),Du(zn=>{const ki=dr=>{const jr=[];dr.routeConfig?.loadComponent&&!dr.routeConfig._loadedComponent&&jr.push(this.configLoader.loadComponent(dr.routeConfig).pipe(te($r=>{dr.component=$r}),(0,j.U)(()=>{})));for(const $r of dr.children)jr.push(...ki($r));return jr};return w(ki(zn.targetSnapshot.root)).pipe(De(),(0,X.q)(1))}),Du(()=>this.afterPreactivation()),(0,j.U)(zn=>{const ki=function Oa(it,Je,ze){const Mt=ma(it,Je._root,ze?ze._root:void 0);return new Ho(Mt,Je)}(ze.routeReuseStrategy,zn.targetSnapshot,zn.currentRouterState);return Mt={...zn,targetRouterState:ki}}),te(zn=>{ze.currentUrlTree=zn.urlAfterRedirects,ze.rawUrlTree=ze.urlHandlingStrategy.merge(zn.urlAfterRedirects,zn.rawUrl),ze.routerState=zn.targetRouterState,"deferred"===ze.urlUpdateStrategy&&(zn.extras.skipLocationChange||ze.setBrowserUrl(ze.rawUrlTree,zn),ze.browserUrlTree=zn.urlAfterRedirects)}),((it,Je,ze)=>(0,j.U)(Mt=>(new sr(Je,Mt.targetRouterState,Mt.currentRouterState,ze).activate(it),Mt)))(this.rootContexts,ze.routeReuseStrategy,zn=>this.events.next(zn)),te({next:zn=>{Xt=!0,this.lastSuccessfulNavigation=this.currentNavigation,ze.navigated=!0,this.events.next(new Dn(zn.id,this.urlSerializer.serialize(zn.extractedUrl),this.urlSerializer.serialize(ze.currentUrlTree))),ze.titleStrategy?.updateTitle(zn.targetRouterState.snapshot),zn.resolve(!0)},complete:()=>{Xt=!0}}),ct(()=>{Xt||Bn||this.cancelNavigationTransition(Mt,"",1),this.currentNavigation?.id===Mt.id&&(this.currentNavigation=null)}),ye(zn=>{if(Bn=!0,Qt(zn)){pa(zn)||(ze.navigated=!0,ze.restoreHistory(Mt,!0));const ki=new rt(Mt.id,this.urlSerializer.serialize(Mt.extractedUrl),zn.message,zn.cancellationCode);if(this.events.next(ki),pa(zn)){const dr=ze.urlHandlingStrategy.merge(zn.url,ze.rawUrlTree),jr={skipLocationChange:Mt.extras.skipLocationChange,replaceUrl:"eager"===ze.urlUpdateStrategy||Ja(Mt.source)};ze.scheduleNavigation(dr,st,null,jr,{resolve:Mt.resolve,reject:Mt.reject,promise:Mt.promise})}else Mt.resolve(!1)}else{ze.restoreHistory(Mt,!0);const ki=new gt(Mt.id,this.urlSerializer.serialize(Mt.extractedUrl),zn,Mt.targetSnapshot??void 0);this.events.next(ki);try{Mt.resolve(ze.errorHandler(zn))}catch(dr){Mt.reject(dr)}}return W.E}))}))}cancelNavigationTransition(ze,Mt,Xt){const Bn=new rt(ze.id,this.urlSerializer.serialize(ze.extractedUrl),Mt,Xt);this.events.next(Bn),ze.resolve(!1)}}return it.\u0275fac=function(ze){return new(ze||it)},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();function Ja(it){return it!==st}let vl=(()=>{class it{buildTitle(ze){let Mt,Xt=ze.root;for(;void 0!==Xt;)Mt=this.getResolvedTitleForRoute(Xt)??Mt,Xt=Xt.children.find(Bn=>Bn.outlet===dt);return Mt}getResolvedTitleForRoute(ze){return ze.data[ht]}}return it.\u0275fac=function(ze){return new(ze||it)},it.\u0275prov=o.Yz7({token:it,factory:function(){return(0,o.f3M)(Tu)},providedIn:"root"}),it})(),Tu=(()=>{class it extends vl{constructor(ze){super(),this.title=ze}updateTitle(ze){const Mt=this.buildTitle(ze);void 0!==Mt&&this.title.setTitle(Mt)}}return it.\u0275fac=function(ze){return new(ze||it)(o.LFG(Ht.Dx))},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})(),Vd=(()=>{class it{}return it.\u0275fac=function(ze){return new(ze||it)},it.\u0275prov=o.Yz7({token:it,factory:function(){return(0,o.f3M)(Jl)},providedIn:"root"}),it})();class od{shouldDetach(Je){return!1}store(Je,ze){}shouldAttach(Je){return!1}retrieve(Je){return null}shouldReuseRoute(Je,ze){return Je.routeConfig===ze.routeConfig}}let Jl=(()=>{class it extends od{}return it.\u0275fac=function(){let Je;return function(Mt){return(Je||(Je=o.n5z(it)))(Mt||it)}}(),it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();const ds=new o.OlP("",{providedIn:"root",factory:()=>({})});let ad=(()=>{class it{}return it.\u0275fac=function(ze){return new(ze||it)},it.\u0275prov=o.Yz7({token:it,factory:function(){return(0,o.f3M)(Ql)},providedIn:"root"}),it})(),Ql=(()=>{class it{shouldProcessUrl(ze){return!0}extract(ze){return ze}merge(ze,Mt){return ze}}return it.\u0275fac=function(ze){return new(ze||it)},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();function Kp(it){throw it}function Ml(it,Je,ze){return Je.parse("/")}const ya={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gp={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let $a=(()=>{class it{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=(0,o.f3M)(o.c2e),this.isNgZoneEnabled=!1,this.options=(0,o.f3M)(ds,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Kp,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Ml,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,o.f3M)(ad),this.routeReuseStrategy=(0,o.f3M)(Vd),this.urlCreationStrategy=(0,o.f3M)(qo),this.titleStrategy=(0,o.f3M)(vl),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=li((0,o.f3M)(ws,{optional:!0})??[]),this.navigationTransitions=(0,o.f3M)(zs),this.urlSerializer=(0,o.f3M)(Si),this.location=(0,o.f3M)(J.Ye),this.isNgZoneEnabled=(0,o.f3M)(o.R0b)instanceof o.R0b&&o.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new $i,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=da(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(ze=>{this.lastSuccessfulId=ze.id,this.currentPageId=ze.targetPageId},ze=>{this.console.warn(`Unhandled Navigation Error: ${ze}`)})}resetRootComponentType(ze){this.routerState.root.component=ze,this.navigationTransitions.rootComponentType=ze}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const ze=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),st,ze)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(ze=>{const Mt="popstate"===ze.type?"popstate":"hashchange";"popstate"===Mt&&setTimeout(()=>{this.navigateToSyncWithBrowser(ze.url,Mt,ze.state)},0)}))}navigateToSyncWithBrowser(ze,Mt,Xt){const Bn={replaceUrl:!0},zn=Xt?.navigationId?Xt:null;if(Xt){const dr={...Xt};delete dr.navigationId,delete dr.\u0275routerPageId,0!==Object.keys(dr).length&&(Bn.state=dr)}const ki=this.parseUrl(ze);this.scheduleNavigation(ki,Mt,zn,Bn)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(ze){this.config=ze.map(vi),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(ze,Mt={}){const{relativeTo:Xt,queryParams:Bn,fragment:zn,queryParamsHandling:ki,preserveFragment:dr}=Mt,jr=dr?this.currentUrlTree.fragment:zn;let $r=null;switch(ki){case"merge":$r={...this.currentUrlTree.queryParams,...Bn};break;case"preserve":$r=this.currentUrlTree.queryParams;break;default:$r=Bn||null}return null!==$r&&($r=this.removeEmptyProps($r)),this.urlCreationStrategy.createUrlTree(Xt,this.routerState,this.currentUrlTree,ze,$r,jr??null)}navigateByUrl(ze,Mt={skipLocationChange:!1}){const Xt=mi(ze)?ze:this.parseUrl(ze),Bn=this.urlHandlingStrategy.merge(Xt,this.rawUrlTree);return this.scheduleNavigation(Bn,st,null,Mt)}navigate(ze,Mt={skipLocationChange:!1}){return function sd(it){for(let Je=0;Je<it.length;Je++){if(null==it[Je])throw new o.vHH(4008,!1)}}(ze),this.navigateByUrl(this.createUrlTree(ze,Mt),Mt)}serializeUrl(ze){return this.urlSerializer.serialize(ze)}parseUrl(ze){let Mt;try{Mt=this.urlSerializer.parse(ze)}catch(Xt){Mt=this.malformedUriErrorHandler(Xt,this.urlSerializer,ze)}return Mt}isActive(ze,Mt){let Xt;if(Xt=!0===Mt?{...ya}:!1===Mt?{...Gp}:Mt,mi(ze))return Wn(this.currentUrlTree,ze,Xt);const Bn=this.parseUrl(ze);return Wn(this.currentUrlTree,Bn,Xt)}removeEmptyProps(ze){return Object.keys(ze).reduce((Mt,Xt)=>{const Bn=ze[Xt];return null!=Bn&&(Mt[Xt]=Bn),Mt},{})}scheduleNavigation(ze,Mt,Xt,Bn,zn){if(this.disposed)return Promise.resolve(!1);let ki,dr,jr,$r;return zn?(ki=zn.resolve,dr=zn.reject,jr=zn.promise):jr=new Promise((ra,Pa)=>{ki=ra,dr=Pa}),$r="computed"===this.canceledNavigationResolution?Xt&&Xt.\u0275routerPageId?Xt.\u0275routerPageId:Bn.replaceUrl||Bn.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:$r,source:Mt,restoredState:Xt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:ze,extras:Bn,resolve:ki,reject:dr,promise:jr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),jr.catch(ra=>Promise.reject(ra))}setBrowserUrl(ze,Mt){const Xt=this.urlSerializer.serialize(ze),Bn={...Mt.extras.state,...this.generateNgRouterState(Mt.id,Mt.targetPageId)};this.location.isCurrentPathEqualTo(Xt)||Mt.extras.replaceUrl?this.location.replaceState(Xt,"",Bn):this.location.go(Xt,"",Bn)}restoreHistory(ze,Mt=!1){if("computed"===this.canceledNavigationResolution){const Xt=this.currentPageId-ze.targetPageId;"popstate"!==ze.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===Xt?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Xt&&(this.resetState(ze),this.browserUrlTree=ze.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Xt)}else"replace"===this.canceledNavigationResolution&&(Mt&&this.resetState(ze),this.resetUrlToCurrentUrlTree())}resetState(ze){this.routerState=ze.currentRouterState,this.currentUrlTree=ze.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,ze.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(ze,Mt){return"computed"===this.canceledNavigationResolution?{navigationId:ze,\u0275routerPageId:Mt}:{navigationId:ze}}}return it.\u0275fac=function(ze){return new(ze||it)},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})(),ld=(()=>{class it{constructor(ze,Mt,Xt,Bn,zn,ki){this.router=ze,this.route=Mt,this.tabIndexAttribute=Xt,this.renderer=Bn,this.el=zn,this.locationStrategy=ki,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new C.xQ;const dr=zn.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===dr||"area"===dr,this.isAnchorElement?this.subscription=ze.events.subscribe(jr=>{jr instanceof Dn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(ze){this._preserveFragment=(0,o.D6c)(ze)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(ze){this._skipLocationChange=(0,o.D6c)(ze)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(ze){this._replaceUrl=(0,o.D6c)(ze)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(ze){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",ze)}ngOnChanges(ze){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(ze){null!=ze?(this.commands=Array.isArray(ze)?ze:[ze],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(ze,Mt,Xt,Bn,zn){return!!(null===this.urlTree||this.isAnchorElement&&(0!==ze||Mt||Xt||Bn||zn||"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 ze=null===this.href?null:(0,o.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ze)}applyAttributeValue(ze,Mt){const Xt=this.renderer,Bn=this.el.nativeElement;null!==Mt?Xt.setAttribute(Bn,ze,Mt):Xt.removeAttribute(Bn,ze)}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 it.\u0275fac=function(ze){return new(ze||it)(o.Y36($a),o.Y36(ea),o.$8M("tabindex"),o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(J.S$))},it.\u0275dir=o.lG2({type:it,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(ze,Mt){1&ze&&o.NdJ("click",function(Bn){return Mt.onClick(Bn.button,Bn.ctrlKey,Bn.shiftKey,Bn.altKey,Bn.metaKey)}),2&ze&&o.uIk("target",Mt.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:[o.TTD]}),it})();class kh{}let jp=(()=>{class it{constructor(ze,Mt,Xt,Bn,zn){this.router=ze,this.injector=Xt,this.preloadingStrategy=Bn,this.loader=zn}setUpPreloading(){this.subscription=this.router.events.pipe((0,se.h)(ze=>ze instanceof Dn),(0,pe.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(ze,Mt){const Xt=[];for(const Bn of Mt){Bn.providers&&!Bn._injector&&(Bn._injector=(0,o.MMx)(Bn.providers,ze,`Route: ${Bn.path}`));const zn=Bn._injector??ze,ki=Bn._loadedInjector??zn;Bn.loadChildren&&!Bn._loadedRoutes&&void 0===Bn.canLoad||Bn.loadComponent&&!Bn._loadedComponent?Xt.push(this.preloadConfig(zn,Bn)):(Bn.children||Bn._loadedRoutes)&&Xt.push(this.processRoutes(ki,Bn.children??Bn._loadedRoutes))}return(0,c.D)(Xt).pipe((0,R.J)())}preloadConfig(ze,Mt){return this.preloadingStrategy.preload(Mt,()=>{let Xt;Xt=Mt.loadChildren&&void 0===Mt.canLoad?this.loader.loadChildren(ze,Mt):(0,I.of)(null);const Bn=Xt.pipe((0,ge.zg)(zn=>null===zn?(0,I.of)(void 0):(Mt._loadedRoutes=zn.routes,Mt._loadedInjector=zn.injector,this.processRoutes(zn.injector??ze,zn.routes))));if(Mt.loadComponent&&!Mt._loadedComponent){const zn=this.loader.loadComponent(Mt);return(0,c.D)([Bn,zn]).pipe((0,R.J)())}return Bn})}}return it.\u0275fac=function(ze){return new(ze||it)(o.LFG($a),o.LFG(o.Sil),o.LFG(o.lqb),o.LFG(kh),o.LFG(rd))},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();const Ba=new o.OlP("");let Iu=(()=>{class it{constructor(ze,Mt,Xt,Bn,zn={}){this.urlSerializer=ze,this.transitions=Mt,this.viewportScroller=Xt,this.zone=Bn,this.options=zn,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},zn.scrollPositionRestoration=zn.scrollPositionRestoration||"disabled",zn.anchorScrolling=zn.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(ze=>{ze instanceof rn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=ze.navigationTrigger,this.restoredId=ze.restoredState?ze.restoredState.navigationId:0):ze instanceof Dn&&(this.lastId=ze.id,this.scheduleScrollEvent(ze,this.urlSerializer.parse(ze.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(ze=>{ze instanceof Xr&&(ze.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(ze.position):ze.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(ze.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(ze,Mt){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Xr(ze,"popstate"===this.lastSource?this.store[this.restoredId]:null,Mt))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return it.\u0275fac=function(ze){o.$Z()},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac}),it})();function Ss(it,Je){return{\u0275kind:it,\u0275providers:Je}}function $p(){const it=(0,o.f3M)(o.zs3);return Je=>{const ze=it.get(o.z2F);if(Je!==ze.components[0])return;const Mt=it.get($a),Xt=it.get(Dc);1===it.get(Hd)&&Mt.initialNavigation(),it.get(Lh,null,o.XFs.Optional)?.setUpPreloading(),it.get(Ba,null,o.XFs.Optional)?.init(),Mt.resetRootComponentType(ze.componentTypes[0]),Xt.closed||(Xt.next(),Xt.unsubscribe())}}const Dc=new o.OlP("",{factory:()=>new C.xQ}),Hd=new o.OlP("",{providedIn:"root",factory:()=>1});const Lh=new o.OlP("");function Tc(it){return Ss(0,[{provide:Lh,useExisting:jp},{provide:kh,useExisting:it}])}const Ic=new o.OlP("ROUTER_FORROOT_GUARD"),Bh=[J.Ye,{provide:Si,useClass:ji},$a,Pt,{provide:ea,useFactory:function vs(it){return it.routerState.root},deps:[$a]},rd,[]];function Mc(){return new o.PXZ("Router",$a)}let tu=(()=>{class it{constructor(ze){}static forRoot(ze,Mt){return{ngModule:it,providers:[Bh,[],{provide:ws,multi:!0,useValue:ze},{provide:Ic,useFactory:nu,deps:[[$a,new o.FiY,new o.tp0]]},{provide:ds,useValue:Mt||{}},Mt?.useHash?{provide:J.S$,useClass:J.Do}:{provide:J.S$,useClass:J.b0},{provide:Ba,useFactory:()=>{const it=(0,o.f3M)(J.EM),Je=(0,o.f3M)(o.R0b),ze=(0,o.f3M)(ds),Mt=(0,o.f3M)(zs),Xt=(0,o.f3M)(Si);return ze.scrollOffset&&it.setOffset(ze.scrollOffset),new Iu(Xt,Mt,it,Je,ze)}},Mt?.preloadingStrategy?Tc(Mt.preloadingStrategy).\u0275providers:[],{provide:o.PXZ,multi:!0,useFactory:Mc},Mt?.initialNavigation?qp(Mt):[],[{provide:zd,useFactory:$p},{provide:o.tb,multi:!0,useExisting:zd}]]}}static forChild(ze){return{ngModule:it,providers:[{provide:ws,multi:!0,useValue:ze}]}}}return it.\u0275fac=function(ze){return new(ze||it)(o.LFG(Ic,8))},it.\u0275mod=o.oAB({type:it}),it.\u0275inj=o.cJS({imports:[vt]}),it})();function nu(it){return"guarded"}function qp(it){return["disabled"===it.initialNavigation?Ss(3,[{provide:o.ip1,multi:!0,useFactory:()=>{const Je=(0,o.f3M)($a);return()=>{Je.setUpLocationChangeListener()}}},{provide:Hd,useValue:2}]).\u0275providers:[],"enabledBlocking"===it.initialNavigation?Ss(2,[{provide:Hd,useValue:0},{provide:o.ip1,multi:!0,deps:[o.zs3],useFactory:Je=>{const ze=Je.get(J.V_,Promise.resolve());return()=>ze.then(()=>new Promise(Xt=>{const Bn=Je.get($a),zn=Je.get(Dc);(function Mt(Xt){Je.get($a).events.pipe((0,se.h)(zn=>zn instanceof Dn||zn instanceof rt||zn instanceof gt),(0,j.U)(zn=>zn instanceof Dn||zn instanceof rt&&(0===zn.code||1===zn.code)&&null),(0,se.h)(zn=>null!==zn),(0,X.q)(1)).subscribe(()=>{Xt()})})(()=>{Xt(!0)}),Je.get(zs).afterPreactivation=()=>(Xt(!0),zn.closed?(0,I.of)(void 0):zn),Bn.initialNavigation()}))}}]).\u0275providers:[]]}const zd=new o.OlP("")},8143:(kn,he,l)=>{"use strict";l.d(he,{U:()=>va,ZP:()=>va});const o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,c=Object.keys,I=Array.isArray;function C(vt,ot){return"object"!=typeof ot||c(ot).forEach(function(We){vt[We]=ot[We]}),vt}typeof Promise>"u"||o.Promise||(o.Promise=Promise);const f=Object.getPrototypeOf,a={}.hasOwnProperty;function p(vt,ot){return a.call(vt,ot)}function s(vt,ot){"function"==typeof ot&&(ot=ot(f(vt))),(typeof Reflect>"u"?c:Reflect.ownKeys)(ot).forEach(We=>{d(vt,We,ot[We])})}const u=Object.defineProperty;function d(vt,ot,We,nt){u(vt,ot,C(We&&p(We,"get")&&"function"==typeof We.get?{get:We.get,set:We.set,configurable:!0}:{value:We,configurable:!0,writable:!0},nt))}function h(vt){return{from:function(ot){return vt.prototype=Object.create(ot.prototype),d(vt.prototype,"constructor",vt),{extend:s.bind(null,vt.prototype)}}}}const g=Object.getOwnPropertyDescriptor;function x(vt,ot){let We;return g(vt,ot)||(We=f(vt))&&x(We,ot)}const b=[].slice;function y(vt,ot,We){return b.call(vt,ot,We)}function E(vt,ot){return ot(vt)}function S(vt){if(!vt)throw new Error("Assertion Failed")}function O(vt){o.setImmediate?setImmediate(vt):setTimeout(vt,0)}function w(vt,ot){return vt.reduce((We,nt,at)=>{var Yt=ot(nt,at);return Yt&&(We[Yt[0]]=Yt[1]),We},{})}function T(vt,ot){if(p(vt,ot))return vt[ot];if(!ot)return vt;if("string"!=typeof ot){for(var We=[],nt=0,at=ot.length;nt<at;++nt){var Yt=T(vt,ot[nt]);We.push(Yt)}return We}var gn=ot.indexOf(".");if(-1!==gn){var Gn=vt[ot.substr(0,gn)];return void 0===Gn?void 0:T(Gn,ot.substr(gn+1))}}function k(vt,ot,We){if(vt&&void 0!==ot&&(!("isFrozen"in Object)||!Object.isFrozen(vt)))if("string"!=typeof ot&&"length"in ot){S("string"!=typeof We&&"length"in We);for(var nt=0,at=ot.length;nt<at;++nt)k(vt,ot[nt],We[nt])}else{var Yt=ot.indexOf(".");if(-1!==Yt){var gn=ot.substr(0,Yt),Gn=ot.substr(Yt+1);if(""===Gn)void 0===We?I(vt)&&!isNaN(parseInt(gn))?vt.splice(gn,1):delete vt[gn]:vt[gn]=We;else{var Qn=vt[gn];Qn&&p(vt,gn)||(Qn=vt[gn]={}),k(Qn,Gn,We)}}else void 0===We?I(vt)&&!isNaN(parseInt(ot))?vt.splice(ot,1):delete vt[ot]:vt[ot]=We}}function R(vt){var ot={};for(var We in vt)p(vt,We)&&(ot[We]=vt[We]);return ot}const P=[].concat;function B(vt){return P.apply([],vt)}const W="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(B([8,16,32,64].map(vt=>["Int","Uint","Float"].map(ot=>ot+vt+"Array")))).filter(vt=>o[vt]),N=W.map(vt=>o[vt]);w(W,vt=>[vt,!0]);let V=null;function U(vt){V=typeof WeakMap<"u"&&new WeakMap;const ot=K(vt);return V=null,ot}function K(vt){if(!vt||"object"!=typeof vt)return vt;let ot=V&&V.get(vt);if(ot)return ot;if(I(vt)){ot=[],V&&V.set(vt,ot);for(var We=0,nt=vt.length;We<nt;++We)ot.push(K(vt[We]))}else if(N.indexOf(vt.constructor)>=0)ot=vt;else{const Yt=f(vt);for(var at in ot=Yt===Object.prototype?{}:Object.create(Yt),V&&V.set(vt,ot),vt)p(vt,at)&&(ot[at]=K(vt[at]))}return ot}const{toString:Y}={};function J(vt){return Y.call(vt).slice(8,-1)}const j=typeof Symbol<"u"?Symbol.iterator:"@@iterator",ee="symbol"==typeof j?function(vt){var ot;return null!=vt&&(ot=vt[j])&&ot.apply(vt)}:function(){return null},G={};function q(vt){var ot,We,nt,at;if(1===arguments.length){if(I(vt))return vt.slice();if(this===G&&"string"==typeof vt)return[vt];if(at=ee(vt)){for(We=[];!(nt=at.next()).done;)We.push(nt.value);return We}if(null==vt)return[vt];if("number"==typeof(ot=vt.length)){for(We=new Array(ot);ot--;)We[ot]=vt[ot];return We}return[vt]}for(ot=arguments.length,We=new Array(ot);ot--;)We[ot]=arguments[ot];return We}const Z=typeof Symbol<"u"?vt=>"AsyncFunction"===vt[Symbol.toStringTag]:()=>!1;var X=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function M(vt,ot){X=vt,se=ot}var se=()=>!0;const ge=!new Error("").stack;function De(){if(ge)try{throw new Error}catch(vt){return vt}return new Error}function Fe(vt,ot){var We=vt.stack;return We?(ot=ot||0,0===We.indexOf(vt.name)&&(ot+=(vt.name+vt.message).split("\n").length),We.split("\n").slice(ot).filter(se).map(nt=>"\n"+nt).join("")):""}var Ae=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],ne=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Ae),fe={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 _e(vt,ot){this._e=De(),this.name=vt,this.message=ot}function ie(vt,ot){return vt+". Errors: "+Object.keys(ot).map(We=>ot[We].toString()).filter((We,nt,at)=>at.indexOf(We)===nt).join("\n")}function de(vt,ot,We,nt){this._e=De(),this.failures=ot,this.failedKeys=nt,this.successCount=We,this.message=ie(vt,ot)}function le(vt,ot){this._e=De(),this.name="BulkError",this.failures=Object.keys(ot).map(We=>ot[We]),this.failuresByPos=ot,this.message=ie(vt,ot)}h(_e).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Fe(this._e,2))}},toString:function(){return this.name+": "+this.message}}),h(de).from(_e),h(le).from(_e);var pe=ne.reduce((vt,ot)=>(vt[ot]=ot+"Error",vt),{});const Ee=_e;var ae=ne.reduce((vt,ot)=>{var We=ot+"Error";function nt(at,Yt){this._e=De(),this.name=We,at?"string"==typeof at?(this.message=`${at}${Yt?"\n "+Yt:""}`,this.inner=Yt||null):"object"==typeof at&&(this.message=`${at.name} ${at.message}`,this.inner=at):(this.message=fe[ot]||We,this.inner=null)}return h(nt).from(Ee),vt[ot]=nt,vt},{});ae.Syntax=SyntaxError,ae.Type=TypeError,ae.Range=RangeError;var te=Ae.reduce((vt,ot)=>(vt[ot+"Error"]=ae[ot],vt),{}),re=ne.reduce((vt,ot)=>(-1===["Syntax","Type","Range"].indexOf(ot)&&(vt[ot+"Error"]=ae[ot]),vt),{});function oe(){}function ye(vt){return vt}function Pe(vt,ot){return null==vt||vt===ye?ot:function(We){return ot(vt(We))}}function Ne(vt,ot){return function(){vt.apply(this,arguments),ot.apply(this,arguments)}}function ft(vt,ot){return vt===oe?ot:function(){var We=vt.apply(this,arguments);void 0!==We&&(arguments[0]=We);var nt=this.onsuccess,at=this.onerror;this.onsuccess=null,this.onerror=null;var Yt=ot.apply(this,arguments);return nt&&(this.onsuccess=this.onsuccess?Ne(nt,this.onsuccess):nt),at&&(this.onerror=this.onerror?Ne(at,this.onerror):at),void 0!==Yt?Yt:We}}function tt(vt,ot){return vt===oe?ot:function(){vt.apply(this,arguments);var We=this.onsuccess,nt=this.onerror;this.onsuccess=this.onerror=null,ot.apply(this,arguments),We&&(this.onsuccess=this.onsuccess?Ne(We,this.onsuccess):We),nt&&(this.onerror=this.onerror?Ne(nt,this.onerror):nt)}}function Be(vt,ot){return vt===oe?ot:function(We){var nt=vt.apply(this,arguments);C(We,nt);var at=this.onsuccess,Yt=this.onerror;this.onsuccess=null,this.onerror=null;var gn=ot.apply(this,arguments);return at&&(this.onsuccess=this.onsuccess?Ne(at,this.onsuccess):at),Yt&&(this.onerror=this.onerror?Ne(Yt,this.onerror):Yt),void 0===nt?void 0===gn?void 0:gn:C(nt,gn)}}function mt(vt,ot){return vt===oe?ot:function(){return!1!==ot.apply(this,arguments)&&vt.apply(this,arguments)}}function nn(vt,ot){return vt===oe?ot:function(){var We=vt.apply(this,arguments);if(We&&"function"==typeof We.then){for(var nt=this,at=arguments.length,Yt=new Array(at);at--;)Yt[at]=arguments[at];return We.then(function(){return ot.apply(nt,Yt)})}return ot.apply(this,arguments)}}re.ModifyError=de,re.DexieError=_e,re.BulkError=le;var ke={};const[$e,me,xe]=typeof Promise>"u"?[]:(()=>{let vt=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[vt,f(vt),vt];const ot=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[ot,f(ot),vt]})(),Te=me&&me.then,Ye=$e&&$e.constructor,St=!!xe;var Ct=!1,Rt=xe?()=>{xe.then(Wn)}:o.setImmediate?setImmediate.bind(null,Wn):o.MutationObserver?()=>{var vt=document.createElement("div");new MutationObserver(()=>{Wn(),vt=null}).observe(vt,{attributes:!0}),vt.setAttribute("i","1")}:()=>{setTimeout(Wn,0)},fn=function(vt,ot){Ft.push([vt,ot]),He&&(Rt(),He=!1)},ct=!0,He=!0,Dt=[],qe=[],Ht=null,dt=ye,ht={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:so,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(vt=>{try{so(vt[0],vt[1])}catch{}})}},yt=ht,Ft=[],bn=0,_n=[];function xn(vt){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=oe,this._lib=!1;var ot=this._PSD=yt;if(X&&(this._stackHolder=De(),this._prev=null,this._numPrev=0),"function"!=typeof vt){if(vt!==ke)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Vn(this,this._value))}this._state=null,this._value=null,++ot.ref,Ai(this,vt)}const Jn={get:function(){var vt=yt,ot=yn;function We(nt,at){var Yt=!vt.global&&(vt!==yt||ot!==yn);const gn=Yt&&!ji();var Gn=new xn((Qn,Mi)=>{Hn(this,new li(Nr(nt,vt,Yt,gn),Nr(at,vt,Yt,gn),Qn,Mi,vt))});return X&&ti(Gn,this),Gn}return We.prototype=ke,We},set:function(vt){d(this,"then",vt&&vt.prototype===ke?Jn:{get:function(){return vt},set:Jn.set})}};function li(vt,ot,We,nt,at){this.onFulfilled="function"==typeof vt?vt:null,this.onRejected="function"==typeof ot?ot:null,this.resolve=We,this.reject=nt,this.psd=at}function Ai(vt,ot){try{ot(We=>{if(null===vt._state){if(We===vt)throw new TypeError("A promise cannot be resolved with itself.");var nt=vt._lib&&Yi();We&&"function"==typeof We.then?Ai(vt,(at,Yt)=>{We instanceof xn?We._then(at,Yt):We.then(at,Yt)}):(vt._state=!0,vt._value=We,Oi(vt)),nt&&On()}},Vn.bind(null,vt))}catch(We){Vn(vt,We)}}function Vn(vt,ot){if(qe.push(ot),null===vt._state){var We=vt._lib&&Yi();ot=dt(ot),vt._state=!1,vt._value=ot,X&&null!==ot&&"object"==typeof ot&&!ot._promise&&function(nt,at,Yt){try{(()=>{var nt=x(ot,"stack");ot._promise=vt,d(ot,"stack",{get:()=>Ct?nt&&(nt.get?nt.get.apply(ot):nt.value):vt.stack})}).apply(null,void 0)}catch(gn){}}(),nt=vt,Dt.some(at=>at._value===nt._value)||Dt.push(nt),Oi(vt),We&&On()}var nt}function Oi(vt){var ot=vt._listeners;vt._listeners=[];for(var We=0,nt=ot.length;We<nt;++We)Hn(vt,ot[We]);var at=vt._PSD;--at.ref||at.finalize(),0===bn&&(++bn,fn(()=>{0==--bn&&ei()},[]))}function Hn(vt,ot){if(null!==vt._state){var We=vt._state?ot.onFulfilled:ot.onRejected;if(null===We)return(vt._state?ot.resolve:ot.reject)(vt._value);++ot.psd.ref,++bn,fn(Sn,[We,vt,ot])}else vt._listeners.push(ot)}function Sn(vt,ot,We){try{Ht=ot;var nt,at=ot._value;ot._state?nt=vt(at):(qe.length&&(qe=[]),nt=vt(at),-1===qe.indexOf(at)&&function(Yt){for(var gn=Dt.length;gn;)if(Dt[--gn]._value===Yt._value)return void Dt.splice(gn,1)}(ot)),We.resolve(nt)}catch(Yt){We.reject(Yt)}finally{Ht=null,0==--bn&&ei(),--We.psd.ref||We.psd.finalize()}}function An(vt,ot,We){if(ot.length===We)return ot;var nt="";if(!1===vt._state){var at,Yt,gn=vt._value;null!=gn?(at=gn.name||"Error",Yt=gn.message||gn,nt=Fe(gn,0)):(at=gn,Yt=""),ot.push(at+(Yt?": "+Yt:"")+nt)}return X&&((nt=Fe(vt._stackHolder,2))&&-1===ot.indexOf(nt)&&ot.push(nt),vt._prev&&An(vt._prev,ot,We)),ot}function ti(vt,ot){var We=ot?ot._numPrev+1:0;We<100&&(vt._prev=ot,vt._numPrev=We)}function Wn(){Yi()&&On()}function Yi(){var vt=ct;return ct=!1,He=!1,vt}function On(){var vt,ot,We;do{for(;Ft.length>0;)for(vt=Ft,Ft=[],We=vt.length,ot=0;ot<We;++ot){var nt=vt[ot];nt[0].apply(null,nt[1])}}while(Ft.length>0);ct=!0,He=!0}function ei(){var vt=Dt;Dt=[],vt.forEach(nt=>{nt._PSD.onunhandled.call(null,nt._value,nt)});for(var ot=_n.slice(0),We=ot.length;We;)ot[--We]()}function ni(vt){return new xn(ke,!1,vt)}function di(vt,ot){var We=yt;return function(){var nt=Yi(),at=yt;try{return zr(We,!0),vt.apply(this,arguments)}catch(Yt){ot&&ot(Yt)}finally{zr(at,!1),nt&&On()}}}s(xn.prototype,{then:Jn,_then:function(vt,ot){Hn(this,new li(null,null,vt,ot,yt))},catch:function(vt){if(1===arguments.length)return this.then(null,vt);var ot=arguments[0],We=arguments[1];return this.then(null,"function"==typeof ot?nt=>nt instanceof ot?We(nt):ni(nt):nt=>nt&&nt.name===ot?We(nt):ni(nt))},finally:function(vt){return this.then(ot=>(vt(),ot),ot=>(vt(),ni(ot)))},stack:{get:function(){if(this._stack)return this._stack;try{Ct=!0;var vt=An(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=vt),vt}finally{Ct=!1}}},timeout:function(vt,ot){return vt<1/0?new xn((We,nt)=>{var at=setTimeout(()=>nt(new ae.Timeout(ot)),vt);this.then(We,nt).finally(clearTimeout.bind(null,at))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&d(xn.prototype,Symbol.toStringTag,"Dexie.Promise"),ht.env=Gr(),s(xn,{all:function(){var vt=q.apply(null,arguments).map(lr);return new xn(function(ot,We){0===vt.length&&ot([]);var nt=vt.length;vt.forEach((at,Yt)=>xn.resolve(at).then(gn=>{vt[Yt]=gn,--nt||ot(vt)},We))})},resolve:vt=>{if(vt instanceof xn)return vt;if(vt&&"function"==typeof vt.then)return new xn((We,nt)=>{vt.then(We,nt)});var ot=new xn(ke,!0,vt);return ti(ot,Ht),ot},reject:ni,race:function(){var vt=q.apply(null,arguments).map(lr);return new xn((ot,We)=>{vt.map(nt=>xn.resolve(nt).then(ot,We))})},PSD:{get:()=>yt,set:vt=>yt=vt},totalEchoes:{get:()=>yn},newPSD:ci,usePSD:xr,scheduler:{get:()=>fn,set:vt=>{fn=vt}},rejectionMapper:{get:()=>dt,set:vt=>{dt=vt}},follow:(vt,ot)=>new xn((We,nt)=>ci((at,Yt)=>{var gn=yt;gn.unhandleds=[],gn.onunhandled=Yt,gn.finalize=Ne(function(){var Gn;Gn=()=>{0===this.unhandleds.length?at():Yt(this.unhandleds[0])},_n.push(function Qn(){Gn(),_n.splice(_n.indexOf(Qn),1)}),++bn,fn(()=>{0==--bn&&ei()},[])},gn.finalize),vt()},ot,We,nt))}),Ye&&(Ye.allSettled&&d(xn,"allSettled",function(){const vt=q.apply(null,arguments).map(lr);return new xn(ot=>{0===vt.length&&ot([]);let We=vt.length;const nt=new Array(We);vt.forEach((at,Yt)=>xn.resolve(at).then(gn=>nt[Yt]={status:"fulfilled",value:gn},gn=>nt[Yt]={status:"rejected",reason:gn}).then(()=>--We||ot(nt)))})}),Ye.any&&typeof AggregateError<"u"&&d(xn,"any",function(){const vt=q.apply(null,arguments).map(lr);return new xn((ot,We)=>{0===vt.length&&We(new AggregateError([]));let nt=vt.length;const at=new Array(nt);vt.forEach((Yt,gn)=>xn.resolve(Yt).then(Gn=>ot(Gn),Gn=>{at[gn]=Gn,--nt||We(new AggregateError(at))}))})}));const Hi={awaits:0,echoes:0,id:0};var $i=0,Qi=[],_r=0,yn=0,Rn=0;function ci(vt,ot,We,nt){var at=yt,Yt=Object.create(at);Yt.parent=at,Yt.ref=0,Yt.global=!1,Yt.id=++Rn;var gn=ht.env;Yt.env=St?{Promise:xn,PromiseProp:{value:xn,configurable:!0,writable:!0},all:xn.all,race:xn.race,allSettled:xn.allSettled,any:xn.any,resolve:xn.resolve,reject:xn.reject,nthen:Tr(gn.nthen,Yt),gthen:Tr(gn.gthen,Yt)}:{},ot&&C(Yt,ot),++at.ref,Yt.finalize=function(){--this.parent.ref||this.parent.finalize()};var Gn=xr(Yt,vt,We,nt);return 0===Yt.ref&&Yt.finalize(),Gn}function Si(){return Hi.id||(Hi.id=++$i),++Hi.awaits,Hi.echoes+=100,Hi.id}function ji(){return!!Hi.awaits&&(0==--Hi.awaits&&(Hi.id=0),Hi.echoes=100*Hi.awaits,!0)}function lr(vt){return Hi.echoes&&vt&&vt.constructor===Ye?(Si(),vt.then(ot=>(ji(),ot),ot=>(ji(),Er(ot)))):vt}function Dr(vt){++yn,Hi.echoes&&0!=--Hi.echoes||(Hi.echoes=Hi.id=0),Qi.push(yt),zr(vt,!0)}function kr(){var vt=Qi[Qi.length-1];Qi.pop(),zr(vt,!1)}function zr(vt,ot){var We=yt;if((ot?!Hi.echoes||_r++&&vt===yt:!_r||--_r&&vt===yt)||Vr(ot?Dr.bind(null,vt):kr),vt!==yt&&(yt=vt,We===ht&&(ht.env=Gr()),St)){var nt=ht.env.Promise,at=vt.env;me.then=at.nthen,nt.prototype.then=at.gthen,(We.global||vt.global)&&(Object.defineProperty(o,"Promise",at.PromiseProp),nt.all=at.all,nt.race=at.race,nt.resolve=at.resolve,nt.reject=at.reject,at.allSettled&&(nt.allSettled=at.allSettled),at.any&&(nt.any=at.any))}}function Gr(){var vt=o.Promise;return St?{Promise:vt,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:vt.all,race:vt.race,allSettled:vt.allSettled,any:vt.any,resolve:vt.resolve,reject:vt.reject,nthen:me.then,gthen:vt.prototype.then}:{}}function xr(vt,ot,We,nt,at){var Yt=yt;try{return zr(vt,!0),ot(We,nt,at)}finally{zr(Yt,!1)}}function Vr(vt){Te.call($e,vt)}function Nr(vt,ot,We,nt){return"function"!=typeof vt?vt:function(){var at=yt;We&&Si(),zr(ot,!0);try{return vt.apply(this,arguments)}finally{zr(at,!1),nt&&Vr(ji)}}}function Tr(vt,ot){return function(We,nt){return vt.call(this,Nr(We,ot),Nr(nt,ot))}}function so(vt,ot){var We;try{We=ot.onuncatched(vt)}catch{}if(!1!==We)try{var nt,at={promise:ot,reason:vt};if(o.document&&document.createEvent?((nt=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),C(nt,at)):o.CustomEvent&&C(nt=new CustomEvent("unhandledrejection",{detail:at}),at),nt&&o.dispatchEvent&&(dispatchEvent(nt),!o.PromiseRejectionEvent&&o.onunhandledrejection))try{o.onunhandledrejection(nt)}catch{}X&&nt&&!nt.defaultPrevented&&console.warn(`Unhandled rejection: ${vt.stack||vt}`)}catch{}}-1===(""+Te).indexOf("[native code]")&&(Si=ji=oe);var Er=xn.reject;function oo(vt,ot,We,nt){if(vt.idbdb&&(vt._state.openComplete||yt.letThrough||vt._vip)){var at=vt._createTransaction(ot,We,vt._dbSchema);try{at.create(),vt._state.PR1398_maxLoop=3}catch(Yt){return Yt.name===pe.InvalidState&&vt.isOpen()&&--vt._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),vt._close(),vt.open().then(()=>oo(vt,ot,We,nt))):Er(Yt)}return at._promise(ot,(Yt,gn)=>ci(()=>(yt.trans=at,nt(Yt,gn,at)))).then(Yt=>at._completion.then(()=>Yt))}if(vt._state.openComplete)return Er(new ae.DatabaseClosed(vt._state.dbOpenError));if(!vt._state.isBeingOpened){if(!vt._options.autoOpen)return Er(new ae.DatabaseClosed);vt.open().catch(oe)}return vt._state.dbReadyPromise.then(()=>oo(vt,ot,We,nt))}const fi=String.fromCharCode(65535),ir="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Kr=[],to=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),uo=to,po=to,At=vt=>!/(dexie\.js|dexie\.min\.js)/.test(vt);function tn(vt,ot){return vt?ot?function(){return vt.apply(this,arguments)&&ot.apply(this,arguments)}:vt:ot}const $n={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function _i(vt){return"string"!=typeof vt||/\./.test(vt)?ot=>ot:ot=>(void 0===ot[vt]&&vt in ot&&delete(ot=U(ot))[vt],ot)}class mi{_trans(ot,We,nt){const at=this._tx||yt.trans,Yt=this.name;function gn(Qn,Mi,vi){if(!vi.schema[Yt])throw new ae.NotFound("Table "+Yt+" not part of transaction");return We(vi.idbtrans,vi)}const Gn=Yi();try{return at&&at.db===this.db?at===yt.trans?at._promise(ot,gn,nt):ci(()=>at._promise(ot,gn,nt),{trans:at,transless:yt.transless||yt}):oo(this.db,ot,[this.name],gn)}finally{Gn&&On()}}get(ot,We){return ot&&ot.constructor===Object?this.where(ot).first(We):this._trans("readonly",nt=>this.core.get({trans:nt,key:ot}).then(at=>this.hook.reading.fire(at))).then(We)}where(ot){if("string"==typeof ot)return new this.db.WhereClause(this,ot);if(I(ot))return new this.db.WhereClause(this,`[${ot.join("+")}]`);const We=c(ot);if(1===We.length)return this.where(We[0]).equals(ot[We[0]]);const nt=this.schema.indexes.concat(this.schema.primKey).filter(Mi=>Mi.compound&&We.every(vi=>Mi.keyPath.indexOf(vi)>=0)&&Mi.keyPath.every(vi=>We.indexOf(vi)>=0))[0];if(nt&&this.db._maxKey!==fi)return this.where(nt.name).equals(nt.keyPath.map(Mi=>ot[Mi]));!nt&&X&&console.warn(`The query ${JSON.stringify(ot)} on ${this.name} would benefit of a compound index [${We.join("+")}]`);const{idxByName:at}=this.schema,Yt=this.db._deps.indexedDB;function gn(Mi,vi){try{return 0===Yt.cmp(Mi,vi)}catch{return!1}}const[Gn,Qn]=We.reduce(([Mi,vi],Ei)=>{const bi=at[Ei],tr=ot[Ei];return[Mi||bi,Mi||!bi?tn(vi,bi&&bi.multi?pr=>{const sr=T(pr,Ei);return I(sr)&&sr.some(fr=>gn(tr,fr))}:pr=>gn(tr,T(pr,Ei))):vi]},[null,null]);return Gn?this.where(Gn.name).equals(ot[Gn.keyPath]).filter(Qn):nt?this.filter(Qn):this.where(We).equals("")}filter(ot){return this.toCollection().and(ot)}count(ot){return this.toCollection().count(ot)}offset(ot){return this.toCollection().offset(ot)}limit(ot){return this.toCollection().limit(ot)}each(ot){return this.toCollection().each(ot)}toArray(ot){return this.toCollection().toArray(ot)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(ot){return new this.db.Collection(new this.db.WhereClause(this,I(ot)?`[${ot.join("+")}]`:ot))}reverse(){return this.toCollection().reverse()}mapToClass(ot){this.schema.mappedClass=ot;const We=nt=>{if(!nt)return nt;const at=Object.create(ot.prototype);for(var Yt in nt)if(p(nt,Yt))try{at[Yt]=nt[Yt]}catch{}return at};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=We,this.hook("reading",We),ot}defineClass(){return this.mapToClass(function(ot){C(this,ot)})}add(ot,We){const{auto:nt,keyPath:at}=this.schema.primKey;let Yt=ot;return at&&nt&&(Yt=_i(at)(ot)),this._trans("readwrite",gn=>this.core.mutate({trans:gn,type:"add",keys:null!=We?[We]:null,values:[Yt]})).then(gn=>gn.numFailures?xn.reject(gn.failures[0]):gn.lastResult).then(gn=>{if(at)try{k(ot,at,gn)}catch{}return gn})}update(ot,We){if("object"!=typeof ot||I(ot))return this.where(":id").equals(ot).modify(We);{const nt=T(ot,this.schema.primKey.keyPath);if(void 0===nt)return Er(new ae.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof We?c(We).forEach(at=>{k(ot,at,We[at])}):We(ot,{value:ot,primKey:nt})}catch{}return this.where(":id").equals(nt).modify(We)}}put(ot,We){const{auto:nt,keyPath:at}=this.schema.primKey;let Yt=ot;return at&&nt&&(Yt=_i(at)(ot)),this._trans("readwrite",gn=>this.core.mutate({trans:gn,type:"put",values:[Yt],keys:null!=We?[We]:null})).then(gn=>gn.numFailures?xn.reject(gn.failures[0]):gn.lastResult).then(gn=>{if(at)try{k(ot,at,gn)}catch{}return gn})}delete(ot){return this._trans("readwrite",We=>this.core.mutate({trans:We,type:"delete",keys:[ot]})).then(We=>We.numFailures?xn.reject(We.failures[0]):void 0)}clear(){return this._trans("readwrite",ot=>this.core.mutate({trans:ot,type:"deleteRange",range:$n})).then(ot=>ot.numFailures?xn.reject(ot.failures[0]):void 0)}bulkGet(ot){return this._trans("readonly",We=>this.core.getMany({keys:ot,trans:We}).then(nt=>nt.map(at=>this.hook.reading.fire(at))))}bulkAdd(ot,We,nt){const at=Array.isArray(We)?We:void 0,Yt=(nt=nt||(at?void 0:We))?nt.allKeys:void 0;return this._trans("readwrite",gn=>{const{auto:Gn,keyPath:Qn}=this.schema.primKey;if(Qn&&at)throw new ae.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(at&&at.length!==ot.length)throw new ae.InvalidArgument("Arguments objects and keys must have the same length");const Mi=ot.length;let vi=Qn&&Gn?ot.map(_i(Qn)):ot;return this.core.mutate({trans:gn,type:"add",keys:at,values:vi,wantResults:Yt}).then(({numFailures:Ei,results:bi,lastResult:tr,failures:pr})=>{if(0===Ei)return Yt?bi:tr;throw new le(`${this.name}.bulkAdd(): ${Ei} of ${Mi} operations failed`,pr)})})}bulkPut(ot,We,nt){const at=Array.isArray(We)?We:void 0,Yt=(nt=nt||(at?void 0:We))?nt.allKeys:void 0;return this._trans("readwrite",gn=>{const{auto:Gn,keyPath:Qn}=this.schema.primKey;if(Qn&&at)throw new ae.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(at&&at.length!==ot.length)throw new ae.InvalidArgument("Arguments objects and keys must have the same length");const Mi=ot.length;let vi=Qn&&Gn?ot.map(_i(Qn)):ot;return this.core.mutate({trans:gn,type:"put",keys:at,values:vi,wantResults:Yt}).then(({numFailures:Ei,results:bi,lastResult:tr,failures:pr})=>{if(0===Ei)return Yt?bi:tr;throw new le(`${this.name}.bulkPut(): ${Ei} of ${Mi} operations failed`,pr)})})}bulkDelete(ot){const We=ot.length;return this._trans("readwrite",nt=>this.core.mutate({trans:nt,type:"delete",keys:ot})).then(({numFailures:nt,lastResult:at,failures:Yt})=>{if(0===nt)return at;throw new le(`${this.name}.bulkDelete(): ${nt} of ${We} operations failed`,Yt)})}}function dn(vt){var ot={},We=function(Gn,Qn){if(Qn){for(var Mi=arguments.length,vi=new Array(Mi-1);--Mi;)vi[Mi-1]=arguments[Mi];return ot[Gn].subscribe.apply(null,vi),vt}if("string"==typeof Gn)return ot[Gn]};We.addEventType=Yt;for(var nt=1,at=arguments.length;nt<at;++nt)Yt(arguments[nt]);return We;function Yt(Gn,Qn,Mi){if("object"==typeof Gn)return gn(Gn);Qn||(Qn=mt),Mi||(Mi=oe);var vi={subscribers:[],fire:Mi,subscribe:function(Ei){-1===vi.subscribers.indexOf(Ei)&&(vi.subscribers.push(Ei),vi.fire=Qn(vi.fire,Ei))},unsubscribe:function(Ei){vi.subscribers=vi.subscribers.filter(function(bi){return bi!==Ei}),vi.fire=vi.subscribers.reduce(Qn,Mi)}};return ot[Gn]=We[Gn]=vi,vi}function gn(Gn){c(Gn).forEach(function(Qn){var Mi=Gn[Qn];if(I(Mi))Yt(Qn,Gn[Qn][0],Gn[Qn][1]);else{if("asap"!==Mi)throw new ae.InvalidArgument("Invalid event config");var vi=Yt(Qn,ye,function(){for(var Ei=arguments.length,bi=new Array(Ei);Ei--;)bi[Ei]=arguments[Ei];vi.subscribers.forEach(function(tr){O(function(){tr.apply(null,bi)})})})}})}}function In(vt,ot){return h(ot).from({prototype:vt}),ot}function Zn(vt,ot){return!(vt.filter||vt.algorithm||vt.or)&&(ot?vt.justLimit:!vt.replayFilter)}function gi(vt,ot){vt.filter=tn(vt.filter,ot)}function Ri(vt,ot,We){var nt=vt.replayFilter;vt.replayFilter=nt?()=>tn(nt(),ot()):ot,vt.justLimit=We&&!nt}function or(vt,ot){if(vt.isPrimKey)return ot.primaryKey;const We=ot.getIndexByKeyPath(vt.index);if(!We)throw new ae.Schema("KeyPath "+vt.index+" on object store "+ot.name+" is not indexed");return We}function cr(vt,ot,We){const nt=or(vt,ot.schema);return ot.openCursor({trans:We,values:!vt.keysOnly,reverse:"prev"===vt.dir,unique:!!vt.unique,query:{index:nt,range:vt.range}})}function en(vt,ot,We,nt){const at=vt.replayFilter?tn(vt.filter,vt.replayFilter()):vt.filter;if(vt.or){const Yt={},gn=(Gn,Qn,Mi)=>{if(!at||at(Qn,Mi,bi=>Qn.stop(bi),bi=>Qn.fail(bi))){var vi=Qn.primaryKey,Ei=""+vi;"[object ArrayBuffer]"===Ei&&(Ei=""+new Uint8Array(vi)),p(Yt,Ei)||(Yt[Ei]=!0,ot(Gn,Qn,Mi))}};return Promise.all([vt.or._iterate(gn,We),vn(cr(vt,nt,We),vt.algorithm,gn,!vt.keysOnly&&vt.valueMapper)])}return vn(cr(vt,nt,We),tn(vt.algorithm,at),ot,!vt.keysOnly&&vt.valueMapper)}function vn(vt,ot,We,nt){var at=di(nt?(Yt,gn,Gn)=>We(nt(Yt),gn,Gn):We);return vt.then(Yt=>{if(Yt)return Yt.start(()=>{var gn=()=>Yt.continue();ot&&!ot(Yt,Gn=>gn=Gn,Gn=>{Yt.stop(Gn),gn=oe},Gn=>{Yt.fail(Gn),gn=oe})||at(Yt.value,Yt,Gn=>gn=Gn),gn()})})}function Ze(vt,ot){try{const We=bt(vt),nt=bt(ot);if(We!==nt)return"Array"===We?1:"Array"===nt?-1:"binary"===We?1:"binary"===nt?-1:"string"===We?1:"string"===nt?-1:"Date"===We?1:"Date"!==nt?NaN:-1;switch(We){case"number":case"Date":case"string":return vt>ot?1:vt<ot?-1:0;case"binary":return function(at,Yt){const gn=at.length,Gn=Yt.length,Qn=gn<Gn?gn:Gn;for(let Mi=0;Mi<Qn;++Mi)if(at[Mi]!==Yt[Mi])return at[Mi]<Yt[Mi]?-1:1;return gn===Gn?0:gn<Gn?-1:1}(_t(vt),_t(ot));case"Array":return function(at,Yt){const gn=at.length,Gn=Yt.length,Qn=gn<Gn?gn:Gn;for(let Mi=0;Mi<Qn;++Mi){const vi=Ze(at[Mi],Yt[Mi]);if(0!==vi)return vi}return gn===Gn?0:gn<Gn?-1:1}(vt,ot)}}catch{}return NaN}function bt(vt){const ot=typeof vt;if("object"!==ot)return ot;if(ArrayBuffer.isView(vt))return"binary";const We=J(vt);return"ArrayBuffer"===We?"binary":We}function _t(vt){return vt instanceof Uint8Array?vt:ArrayBuffer.isView(vt)?new Uint8Array(vt.buffer,vt.byteOffset,vt.byteLength):new Uint8Array(vt)}class Wt{_read(ot,We){var nt=this._ctx;return nt.error?nt.table._trans(null,Er.bind(null,nt.error)):nt.table._trans("readonly",ot).then(We)}_write(ot){var We=this._ctx;return We.error?We.table._trans(null,Er.bind(null,We.error)):We.table._trans("readwrite",ot,"locked")}_addAlgorithm(ot){var We=this._ctx;We.algorithm=tn(We.algorithm,ot)}_iterate(ot,We){return en(this._ctx,ot,We,this._ctx.table.core)}clone(ot){var We=Object.create(this.constructor.prototype),nt=Object.create(this._ctx);return ot&&C(nt,ot),We._ctx=nt,We}raw(){return this._ctx.valueMapper=null,this}each(ot){var We=this._ctx;return this._read(nt=>en(We,ot,nt,We.table.core))}count(ot){return this._read(We=>{const nt=this._ctx,at=nt.table.core;if(Zn(nt,!0))return at.count({trans:We,query:{index:or(nt,at.schema),range:nt.range}}).then(gn=>Math.min(gn,nt.limit));var Yt=0;return en(nt,()=>(++Yt,!1),We,at).then(()=>Yt)}).then(ot)}sortBy(ot,We){const nt=ot.split(".").reverse(),at=nt[0],Yt=nt.length-1;function gn(Mi,vi){return vi?gn(Mi[nt[vi]],vi-1):Mi[at]}var Gn="next"===this._ctx.dir?1:-1;function Qn(Mi,vi){var Ei=gn(Mi,Yt),bi=gn(vi,Yt);return Ei<bi?-Gn:Ei>bi?Gn:0}return this.toArray(function(Mi){return Mi.sort(Qn)}).then(We)}toArray(ot){return this._read(We=>{var nt=this._ctx;if("next"===nt.dir&&Zn(nt,!0)&&nt.limit>0){const{valueMapper:at}=nt,Yt=or(nt,nt.table.core.schema);return nt.table.core.query({trans:We,limit:nt.limit,values:!0,query:{index:Yt,range:nt.range}}).then(({result:gn})=>at?gn.map(at):gn)}{const at=[];return en(nt,Yt=>at.push(Yt),We,nt.table.core).then(()=>at)}},ot)}offset(ot){var We=this._ctx;return ot<=0||(We.offset+=ot,Zn(We)?Ri(We,()=>{var nt=ot;return(at,Yt)=>0===nt||(1===nt?(--nt,!1):(Yt(()=>{at.advance(nt),nt=0}),!1))}):Ri(We,()=>{var nt=ot;return()=>--nt<0})),this}limit(ot){return this._ctx.limit=Math.min(this._ctx.limit,ot),Ri(this._ctx,()=>{var We=ot;return function(nt,at,Yt){return--We<=0&&at(Yt),We>=0}},!0),this}until(ot,We){return gi(this._ctx,function(nt,at,Yt){return!ot(nt.value)||(at(Yt),We)}),this}first(ot){return this.limit(1).toArray(function(We){return We[0]}).then(ot)}last(ot){return this.reverse().first(ot)}filter(ot){var We;return gi(this._ctx,function(at){return ot(at.value)}),(We=this._ctx).isMatch=tn(We.isMatch,ot),this}and(ot){return this.filter(ot)}or(ot){return new this.db.WhereClause(this._ctx.table,ot,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(ot){var We=this._ctx;return We.keysOnly=!We.isMatch,this.each(function(nt,at){ot(at.key,at)})}eachUniqueKey(ot){return this._ctx.unique="unique",this.eachKey(ot)}eachPrimaryKey(ot){var We=this._ctx;return We.keysOnly=!We.isMatch,this.each(function(nt,at){ot(at.primaryKey,at)})}keys(ot){var We=this._ctx;We.keysOnly=!We.isMatch;var nt=[];return this.each(function(at,Yt){nt.push(Yt.key)}).then(function(){return nt}).then(ot)}primaryKeys(ot){var We=this._ctx;if("next"===We.dir&&Zn(We,!0)&&We.limit>0)return this._read(at=>{var Yt=or(We,We.table.core.schema);return We.table.core.query({trans:at,values:!1,limit:We.limit,query:{index:Yt,range:We.range}})}).then(({result:at})=>at).then(ot);We.keysOnly=!We.isMatch;var nt=[];return this.each(function(at,Yt){nt.push(Yt.primaryKey)}).then(function(){return nt}).then(ot)}uniqueKeys(ot){return this._ctx.unique="unique",this.keys(ot)}firstKey(ot){return this.limit(1).keys(function(We){return We[0]}).then(ot)}lastKey(ot){return this.reverse().firstKey(ot)}distinct(){var ot=this._ctx,We=ot.index&&ot.table.schema.idxByName[ot.index];if(!We||!We.multi)return this;var nt={};return gi(this._ctx,function(at){var Yt=at.primaryKey.toString(),gn=p(nt,Yt);return nt[Yt]=!0,!gn}),this}modify(ot){var We=this._ctx;return this._write(nt=>{var at;if("function"==typeof ot)at=ot;else{var Yt=c(ot),gn=Yt.length;at=function(sr){for(var fr=!1,Gi=0;Gi<gn;++Gi){var er=Yt[Gi],Ir=ot[er];T(sr,er)!==Ir&&(k(sr,er,Ir),fr=!0)}return fr}}const Gn=We.table.core,{outbound:Qn,extractKey:Mi}=Gn.schema.primaryKey,vi=this.db._options.modifyChunkSize||200,Ei=[];let bi=0;const tr=[],pr=(sr,fr)=>{const{failures:Gi,numFailures:er}=fr;bi+=sr-er;for(let Ir of c(Gi))Ei.push(Gi[Ir])};return this.clone().primaryKeys().then(sr=>{const fr=Gi=>{const er=Math.min(vi,sr.length-Gi);return Gn.getMany({trans:nt,keys:sr.slice(Gi,Gi+er),cache:"immutable"}).then(Ir=>{const Lr=[],Sr=[],Or=Qn?[]:null,Rr=[];for(let Br=0;Br<er;++Br){const To=Ir[Br],Ro={value:U(To),primKey:sr[Gi+Br]};!1!==at.call(Ro,Ro.value,Ro)&&(null==Ro.value?Rr.push(sr[Gi+Br]):Qn||0===Ze(Mi(To),Mi(Ro.value))?(Sr.push(Ro.value),Qn&&Or.push(sr[Gi+Br])):(Rr.push(sr[Gi+Br]),Lr.push(Ro.value)))}const Qr=Zn(We)&&We.limit===1/0&&("function"!=typeof ot||ot===Ot)&&{index:We.index,range:We.range};return Promise.resolve(Lr.length>0&&Gn.mutate({trans:nt,type:"add",values:Lr}).then(Br=>{for(let To in Br.failures)Rr.splice(parseInt(To),1);pr(Lr.length,Br)})).then(()=>(Sr.length>0||Qr&&"object"==typeof ot)&&Gn.mutate({trans:nt,type:"put",keys:Or,values:Sr,criteria:Qr,changeSpec:"function"!=typeof ot&&ot}).then(Br=>pr(Sr.length,Br))).then(()=>(Rr.length>0||Qr&&ot===Ot)&&Gn.mutate({trans:nt,type:"delete",keys:Rr,criteria:Qr}).then(Br=>pr(Rr.length,Br))).then(()=>sr.length>Gi+er&&fr(Gi+vi))})};return fr(0).then(()=>{if(Ei.length>0)throw new de("Error modifying one or more objects",Ei,bi,tr);return sr.length})})})}delete(){var ot=this._ctx,We=ot.range;return Zn(ot)&&(ot.isPrimKey&&!po||3===We.type)?this._write(nt=>{const{primaryKey:at}=ot.table.core.schema,Yt=We;return ot.table.core.count({trans:nt,query:{index:at,range:Yt}}).then(gn=>ot.table.core.mutate({trans:nt,type:"deleteRange",range:Yt}).then(({failures:Gn,numFailures:vi})=>{if(vi)throw new de("Could not delete some values",Object.keys(Gn).map(Ei=>Gn[Ei]),gn-vi);return gn-vi}))}):this.modify(Ot)}}const Ot=(vt,ot)=>ot.value=null;function qt(vt,ot){return vt<ot?-1:vt===ot?0:1}function mn(vt,ot){return vt>ot?-1:vt===ot?0:1}function Ke(vt,ot,We){var nt=vt instanceof Yn?new vt.Collection(vt):vt;return nt._ctx.error=We?new We(ot):new TypeError(ot),nt}function pt(vt){return new vt.Collection(vt,()=>Nn("")).limit(0)}function an(vt,ot,We,nt,at,Yt){for(var gn=Math.min(vt.length,nt.length),Gn=-1,Qn=0;Qn<gn;++Qn){var Mi=ot[Qn];if(Mi!==nt[Qn])return at(vt[Qn],We[Qn])<0?vt.substr(0,Qn)+We[Qn]+We.substr(Qn+1):at(vt[Qn],nt[Qn])<0?vt.substr(0,Qn)+nt[Qn]+We.substr(Qn+1):Gn>=0?vt.substr(0,Gn)+ot[Gn]+We.substr(Gn+1):null;at(vt[Qn],Mi)<0&&(Gn=Qn)}return gn<nt.length&&"next"===Yt?vt+We.substr(vt.length):gn<vt.length&&"prev"===Yt?vt.substr(0,We.length):Gn<0?null:vt.substr(0,Gn)+nt[Gn]+We.substr(Gn+1)}function hn(vt,ot,We,nt){var at,Yt,gn,Gn,Qn,Mi,vi,Ei=We.length;if(!We.every(sr=>"string"==typeof sr))return Ke(vt,"String expected.");function bi(sr){at="next"===sr?er=>er.toUpperCase():er=>er.toLowerCase(),Yt="next"===sr?er=>er.toLowerCase():er=>er.toUpperCase(),gn="next"===sr?qt:mn;var fr=We.map(function(Gi){return{lower:Yt(Gi),upper:at(Gi)}}).sort(function(Gi,er){return gn(Gi.lower,er.lower)});Gn=fr.map(function(Gi){return Gi.upper}),Qn=fr.map(function(Gi){return Gi.lower}),Mi=sr,vi="next"===sr?"":nt}bi("next");var tr=new vt.Collection(vt,()=>sn(Gn[0],Qn[Ei-1]+nt));tr._ondirectionchange=function(sr){bi(sr)};var pr=0;return tr._addAlgorithm(function(sr,fr,Gi){var er=sr.key;if("string"!=typeof er)return!1;var Ir=Yt(er);if(ot(Ir,Qn,pr))return!0;for(var Lr=null,Sr=pr;Sr<Ei;++Sr){var Or=an(er,Ir,Gn[Sr],Qn[Sr],gn,Mi);null===Or&&null===Lr?pr=Sr+1:(null===Lr||gn(Lr,Or)>0)&&(Lr=Or)}return fr(null!==Lr?function(){sr.continue(Lr+vi)}:Gi),!1}),tr}function sn(vt,ot,We,nt){return{type:2,lower:vt,upper:ot,lowerOpen:We,upperOpen:nt}}function Nn(vt){return{type:1,lower:vt,upper:vt}}class Yn{get Collection(){return this._ctx.table.db.Collection}between(ot,We,nt,at){nt=!1!==nt,at=!0===at;try{return this._cmp(ot,We)>0||0===this._cmp(ot,We)&&(nt||at)&&(!nt||!at)?pt(this):new this.Collection(this,()=>sn(ot,We,!nt,!at))}catch{return Ke(this,ir)}}equals(ot){return null==ot?Ke(this,ir):new this.Collection(this,()=>Nn(ot))}above(ot){return null==ot?Ke(this,ir):new this.Collection(this,()=>sn(ot,void 0,!0))}aboveOrEqual(ot){return null==ot?Ke(this,ir):new this.Collection(this,()=>sn(ot,void 0,!1))}below(ot){return null==ot?Ke(this,ir):new this.Collection(this,()=>sn(void 0,ot,!1,!0))}belowOrEqual(ot){return null==ot?Ke(this,ir):new this.Collection(this,()=>sn(void 0,ot))}startsWith(ot){return"string"!=typeof ot?Ke(this,"String expected."):this.between(ot,ot+fi,!0,!0)}startsWithIgnoreCase(ot){return""===ot?this.startsWith(ot):hn(this,(We,nt)=>0===We.indexOf(nt[0]),[ot],fi)}equalsIgnoreCase(ot){return hn(this,(We,nt)=>We===nt[0],[ot],"")}anyOfIgnoreCase(){var ot=q.apply(G,arguments);return 0===ot.length?pt(this):hn(this,(We,nt)=>-1!==nt.indexOf(We),ot,"")}startsWithAnyOfIgnoreCase(){var ot=q.apply(G,arguments);return 0===ot.length?pt(this):hn(this,(We,nt)=>nt.some(at=>0===We.indexOf(at)),ot,fi)}anyOf(){const ot=q.apply(G,arguments);let We=this._cmp;try{ot.sort(We)}catch{return Ke(this,ir)}if(0===ot.length)return pt(this);const nt=new this.Collection(this,()=>sn(ot[0],ot[ot.length-1]));nt._ondirectionchange=Yt=>{We="next"===Yt?this._ascending:this._descending,ot.sort(We)};let at=0;return nt._addAlgorithm((Yt,gn,Gn)=>{const Qn=Yt.key;for(;We(Qn,ot[at])>0;)if(++at,at===ot.length)return gn(Gn),!1;return 0===We(Qn,ot[at])||(gn(()=>{Yt.continue(ot[at])}),!1)}),nt}notEqual(ot){return this.inAnyRange([[-1/0,ot],[ot,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const ot=q.apply(G,arguments);if(0===ot.length)return new this.Collection(this);try{ot.sort(this._ascending)}catch{return Ke(this,ir)}const We=ot.reduce((nt,at)=>nt?nt.concat([[nt[nt.length-1][1],at]]):[[-1/0,at]],null);return We.push([ot[ot.length-1],this.db._maxKey]),this.inAnyRange(We,{includeLowers:!1,includeUppers:!1})}inAnyRange(ot,We){const nt=this._cmp,at=this._ascending,Yt=this._descending,gn=this._min,Gn=this._max;if(0===ot.length)return pt(this);if(!ot.every(er=>void 0!==er[0]&&void 0!==er[1]&&at(er[0],er[1])<=0))return Ke(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ae.InvalidArgument);const Qn=!We||!1!==We.includeLowers,Mi=We&&!0===We.includeUppers;let vi,Ei=at;function bi(er,Ir){return Ei(er[0],Ir[0])}try{vi=ot.reduce(function(er,Ir){let Lr=0,Sr=er.length;for(;Lr<Sr;++Lr){const Or=er[Lr];if(nt(Ir[0],Or[1])<0&&nt(Ir[1],Or[0])>0){Or[0]=gn(Or[0],Ir[0]),Or[1]=Gn(Or[1],Ir[1]);break}}return Lr===Sr&&er.push(Ir),er},[]),vi.sort(bi)}catch{return Ke(this,ir)}let tr=0;const pr=Mi?er=>at(er,vi[tr][1])>0:er=>at(er,vi[tr][1])>=0,sr=Qn?er=>Yt(er,vi[tr][0])>0:er=>Yt(er,vi[tr][0])>=0;let fr=pr;const Gi=new this.Collection(this,()=>sn(vi[0][0],vi[vi.length-1][1],!Qn,!Mi));return Gi._ondirectionchange=er=>{"next"===er?(fr=pr,Ei=at):(fr=sr,Ei=Yt),vi.sort(bi)},Gi._addAlgorithm((er,Ir,Lr)=>{for(var Sr=er.key;fr(Sr);)if(++tr,tr===vi.length)return Ir(Lr),!1;return!((pr(Or=Sr)||sr(Or))&&(0===this._cmp(Sr,vi[tr][1])||0===this._cmp(Sr,vi[tr][0])||Ir(()=>{er.continue(Ei===at?vi[tr][0]:vi[tr][1])}),1));var Or}),Gi}startsWithAnyOf(){const ot=q.apply(G,arguments);return ot.every(We=>"string"==typeof We)?0===ot.length?pt(this):this.inAnyRange(ot.map(We=>[We,We+fi])):Ke(this,"startsWithAnyOf() only works with strings")}}function st(vt){return di(function(ot){return Vt(ot),vt(ot.target.error),!1})}function Vt(vt){vt.stopPropagation&&vt.stopPropagation(),vt.preventDefault&&vt.preventDefault()}const rn=dn(null,"storagemutated");class Dn{_lock(){return S(!yt.global),++this._reculock,1!==this._reculock||yt.global||(yt.lockOwnerFor=this),this}_unlock(){if(S(!yt.global),0==--this._reculock)for(yt.global||(yt.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var ot=this._blockedFuncs.shift();try{xr(ot[1],ot[0])}catch{}}return this}_locked(){return this._reculock&&yt.lockOwnerFor!==this}create(ot){if(!this.mode)return this;const We=this.db.idbdb,nt=this.db._state.dbOpenError;if(S(!this.idbtrans),!ot&&!We)switch(nt&&nt.name){case"DatabaseClosedError":throw new ae.DatabaseClosed(nt);case"MissingAPIError":throw new ae.MissingAPI(nt.message,nt);default:throw new ae.OpenFailed(nt)}if(!this.active)throw new ae.TransactionInactive;return S(null===this._completion._state),(ot=this.idbtrans=ot||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):We.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=di(at=>{Vt(at),this._reject(ot.error)}),ot.onabort=di(at=>{Vt(at),this.active&&this._reject(new ae.Abort(ot.error)),this.active=!1,this.on("abort").fire(at)}),ot.oncomplete=di(()=>{this.active=!1,this._resolve(),"mutatedParts"in ot&&rn.storagemutated.fire(ot.mutatedParts)}),this}_promise(ot,We,nt){if("readwrite"===ot&&"readwrite"!==this.mode)return Er(new ae.ReadOnly("Transaction is readonly"));if(!this.active)return Er(new ae.TransactionInactive);if(this._locked())return new xn((Yt,gn)=>{this._blockedFuncs.push([()=>{this._promise(ot,We,nt).then(Yt,gn)},yt])});if(nt)return ci(()=>{var Yt=new xn((gn,Gn)=>{this._lock();const Qn=We(gn,Gn,this);Qn&&Qn.then&&Qn.then(gn,Gn)});return Yt.finally(()=>this._unlock()),Yt._lib=!0,Yt});var at=new xn((Yt,gn)=>{var Gn=We(Yt,gn,this);Gn&&Gn.then&&Gn.then(Yt,gn)});return at._lib=!0,at}_root(){return this.parent?this.parent._root():this}waitFor(ot){var We=this._root();const nt=xn.resolve(ot);if(We._waitingFor)We._waitingFor=We._waitingFor.then(()=>nt);else{We._waitingFor=nt,We._waitingQueue=[];var at=We.idbtrans.objectStore(We.storeNames[0]);!function gn(){for(++We._spinCount;We._waitingQueue.length;)We._waitingQueue.shift()();We._waitingFor&&(at.get(-1/0).onsuccess=gn)}()}var Yt=We._waitingFor;return new xn((gn,Gn)=>{nt.then(Qn=>We._waitingQueue.push(di(gn.bind(null,Qn))),Qn=>We._waitingQueue.push(di(Gn.bind(null,Qn)))).finally(()=>{We._waitingFor===Yt&&(We._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ae.Abort))}table(ot){const We=this._memoizedTables||(this._memoizedTables={});if(p(We,ot))return We[ot];const nt=this.schema[ot];if(!nt)throw new ae.NotFound("Table "+ot+" not part of transaction");const at=new this.db.Table(ot,nt,this);return at.core=this.db.core.table(ot),We[ot]=at,at}}function rt(vt,ot,We,nt,at,Yt,gn){return{name:vt,keyPath:ot,unique:We,multi:nt,auto:at,compound:Yt,src:(We&&!gn?"&":"")+(nt?"*":"")+(at?"++":"")+Bt(ot)}}function Bt(vt){return"string"==typeof vt?vt:vt?"["+[].join.call(vt,"+")+"]":""}function gt(vt,ot,We){return{name:vt,primKey:ot,indexes:We,mappedClass:null,idxByName:w(We,nt=>[nt.name,nt])}}let $t=vt=>{try{return vt.only([[]]),$t=()=>[[]],[[]]}catch{return $t=()=>fi,fi}};function Un(vt){return null==vt?()=>{}:"string"==typeof vt?1===(ot=vt).split(".").length?We=>We[ot]:We=>T(We,ot):ot=>T(ot,vt);var ot}function ai(vt){return[].slice.call(vt)}let Ci=0;function Ii(vt){return null==vt?":id":"string"==typeof vt?vt:`[${vt.join("+")}]`}function zi(vt,ot,We){function nt(Qn){if(3===Qn.type)return null;if(4===Qn.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:Mi,upper:vi,lowerOpen:Ei,upperOpen:bi}=Qn;return void 0===Mi?void 0===vi?null:ot.upperBound(vi,!!bi):void 0===vi?ot.lowerBound(Mi,!!Ei):ot.bound(Mi,vi,!!Ei,!!bi)}const{schema:at,hasGetAll:Yt}=function(Qn,Mi){const vi=ai(Qn.objectStoreNames);return{schema:{name:Qn.name,tables:vi.map(Ei=>Mi.objectStore(Ei)).map(Ei=>{const{keyPath:bi,autoIncrement:tr}=Ei,pr=I(bi),fr={},Gi={name:Ei.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:null==bi,compound:pr,keyPath:bi,autoIncrement:tr,unique:!0,extractKey:Un(bi)},indexes:ai(Ei.indexNames).map(er=>Ei.index(er)).map(er=>{const{name:Ir,unique:Lr,multiEntry:Sr,keyPath:Or}=er,Rr={name:Ir,compound:I(Or),keyPath:Or,unique:Lr,multiEntry:Sr,extractKey:Un(Or)};return fr[Ii(Or)]=Rr,Rr}),getIndexByKeyPath:er=>fr[Ii(er)]};return fr[":id"]=Gi.primaryKey,null!=bi&&(fr[Ii(bi)]=Gi.primaryKey),Gi})},hasGetAll:vi.length>0&&"getAll"in Mi.objectStore(vi[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(vt,We),gn=at.tables.map(Qn=>function(Mi){const vi=Mi.name;return{name:vi,schema:Mi,mutate:function({trans:Ei,type:bi,keys:tr,values:pr,range:sr}){return new Promise((fr,Gi)=>{fr=di(fr);const er=Ei.objectStore(vi),Ir=null==er.keyPath,Lr="put"===bi||"add"===bi;if(!Lr&&"delete"!==bi&&"deleteRange"!==bi)throw new Error("Invalid operation type: "+bi);const{length:Sr}=tr||pr||{length:1};if(tr&&pr&&tr.length!==pr.length)throw new Error("Given keys array must have same length as given values array.");if(0===Sr)return fr({numFailures:0,failures:{},results:[],lastResult:void 0});let Or;const Rr=[],Qr=[];let Br=0;const To=na=>{++Br,Vt(na)};if("deleteRange"===bi){if(4===sr.type)return fr({numFailures:Br,failures:Qr,results:[],lastResult:void 0});Rr.push(Or=3===sr.type?er.clear():er.delete(nt(sr)))}else{const[na,ga]=Lr?Ir?[pr,tr]:[pr,null]:[tr,null];if(Lr)for(let zo=0;zo<Sr;++zo)Rr.push(Or=ga&&void 0!==ga[zo]?er[bi](na[zo],ga[zo]):er[bi](na[zo])),Or.onerror=To;else for(let zo=0;zo<Sr;++zo)Rr.push(Or=er[bi](na[zo])),Or.onerror=To}const Ro=na=>{const ga=na.target.result;Rr.forEach((zo,oa)=>null!=zo.error&&(Qr[oa]=zo.error)),fr({numFailures:Br,failures:Qr,results:"delete"===bi?tr:Rr.map(zo=>zo.result),lastResult:ga})};Or.onerror=na=>{To(na),Ro(na)},Or.onsuccess=Ro})},getMany:({trans:Ei,keys:bi})=>new Promise((tr,pr)=>{tr=di(tr);const sr=Ei.objectStore(vi),fr=bi.length,Gi=new Array(fr);let er,Ir=0,Lr=0;const Sr=Rr=>{const Qr=Rr.target;Gi[Qr._pos]=Qr.result,++Lr===Ir&&tr(Gi)},Or=st(pr);for(let Rr=0;Rr<fr;++Rr)null!=bi[Rr]&&(er=sr.get(bi[Rr]),er._pos=Rr,er.onsuccess=Sr,er.onerror=Or,++Ir);0===Ir&&tr(Gi)}),get:({trans:Ei,key:bi})=>new Promise((tr,pr)=>{tr=di(tr);const sr=Ei.objectStore(vi).get(bi);sr.onsuccess=fr=>tr(fr.target.result),sr.onerror=st(pr)}),query:(Ei=Yt,bi=>new Promise((tr,pr)=>{tr=di(tr);const{trans:sr,values:fr,limit:Gi,query:er}=bi,Ir=Gi===1/0?void 0:Gi,{index:Lr,range:Sr}=er,Or=sr.objectStore(vi),Rr=Lr.isPrimaryKey?Or:Or.index(Lr.name),Qr=nt(Sr);if(0===Gi)return tr({result:[]});if(Ei){const Br=fr?Rr.getAll(Qr,Ir):Rr.getAllKeys(Qr,Ir);Br.onsuccess=To=>tr({result:To.target.result}),Br.onerror=st(pr)}else{let Br=0;const To=fr||!("openKeyCursor"in Rr)?Rr.openCursor(Qr):Rr.openKeyCursor(Qr),Ro=[];To.onsuccess=na=>{const ga=To.result;return ga?(Ro.push(fr?ga.value:ga.primaryKey),++Br===Gi?tr({result:Ro}):void ga.continue()):tr({result:Ro})},To.onerror=st(pr)}})),openCursor:function({trans:Ei,values:bi,query:tr,reverse:pr,unique:sr}){return new Promise((fr,Gi)=>{fr=di(fr);const{index:er,range:Ir}=tr,Lr=Ei.objectStore(vi),Sr=er.isPrimaryKey?Lr:Lr.index(er.name),Or=pr?sr?"prevunique":"prev":sr?"nextunique":"next",Rr=bi||!("openKeyCursor"in Sr)?Sr.openCursor(nt(Ir),Or):Sr.openKeyCursor(nt(Ir),Or);Rr.onerror=st(Gi),Rr.onsuccess=di(Qr=>{const Br=Rr.result;if(!Br)return void fr(null);Br.___id=++Ci,Br.done=!1;const To=Br.continue.bind(Br);let Ro=Br.continuePrimaryKey;Ro&&(Ro=Ro.bind(Br));const na=Br.advance.bind(Br),ga=()=>{throw new Error("Cursor not stopped")};Br.trans=Ei,Br.stop=Br.continue=Br.continuePrimaryKey=Br.advance=()=>{throw new Error("Cursor not started")},Br.fail=di(Gi),Br.next=function(){let zo=1;return this.start(()=>zo--?this.continue():this.stop()).then(()=>this)},Br.start=zo=>{const oa=new Promise((Qo,Ia)=>{Qo=di(Qo),Rr.onerror=st(Ia),Br.fail=Ia,Br.stop=Ma=>{Br.stop=Br.continue=Br.continuePrimaryKey=Br.advance=ga,Qo(Ma)}}),Ta=()=>{if(Rr.result)try{zo()}catch(Qo){Br.fail(Qo)}else Br.done=!0,Br.start=()=>{throw new Error("Cursor behind last entry")},Br.stop()};return Rr.onsuccess=di(Qo=>{Rr.onsuccess=Ta,Ta()}),Br.continue=To,Br.continuePrimaryKey=Ro,Br.advance=na,Ta(),oa},fr(Br)},Gi)})},count({query:Ei,trans:bi}){const{index:tr,range:pr}=Ei;return new Promise((sr,fr)=>{const Gi=bi.objectStore(vi),er=tr.isPrimaryKey?Gi:Gi.index(tr.name),Ir=nt(pr),Lr=Ir?er.count(Ir):er.count();Lr.onsuccess=di(Sr=>sr(Sr.target.result)),Lr.onerror=st(fr)})}};var Ei}(Qn)),Gn={};return gn.forEach(Qn=>Gn[Qn.name]=Qn),{stack:"dbcore",transaction:vt.transaction.bind(vt),table(Qn){if(!Gn[Qn])throw new Error(`Table '${Qn}' not found`);return Gn[Qn]},MIN_KEY:-1/0,MAX_KEY:$t(ot),schema:at}}function Ki({_novip:vt},ot){const nt=function(at,Yt,{IDBKeyRange:gn},Qn){return{dbcore:(vi=zi(Yt,gn,Qn),Ei=at.dbcore,Ei.reduce((bi,{create:tr})=>({...bi,...tr(bi)}),vi))};var vi,Ei}(vt._middlewares,ot.db,vt._deps,ot);vt.core=nt.dbcore,vt.tables.forEach(at=>{const Yt=at.name;vt.core.schema.tables.some(gn=>gn.name===Yt)&&(at.core=vt.core.table(Yt),vt[Yt]instanceof vt.Table&&(vt[Yt].core=at.core))})}function Xi({_novip:vt},ot,We,nt){We.forEach(at=>{const Yt=nt[at];ot.forEach(gn=>{const Gn=x(gn,at);(!Gn||"value"in Gn&&void 0===Gn.value)&&(gn===vt.Transaction.prototype||gn instanceof vt.Transaction?d(gn,at,{get(){return this.table(at)},set(Qn){u(this,at,{value:Qn,writable:!0,configurable:!0,enumerable:!0})}}):gn[at]=new vt.Table(at,Yt))})})}function wr({_novip:vt},ot){ot.forEach(We=>{for(let nt in We)We[nt]instanceof vt.Table&&delete We[nt]})}function vr(vt,ot){return vt._cfg.version-ot._cfg.version}function Xr(vt,ot){const We={del:[],add:[],change:[]};let nt;for(nt in vt)ot[nt]||We.del.push(nt);for(nt in ot){const at=vt[nt],Yt=ot[nt];if(at){const gn={name:nt,def:Yt,recreate:!1,del:[],add:[],change:[]};if(""+(at.primKey.keyPath||"")!=""+(Yt.primKey.keyPath||"")||at.primKey.auto!==Yt.primKey.auto&&!to)gn.recreate=!0,We.change.push(gn);else{const Gn=at.idxByName,Qn=Yt.idxByName;let Mi;for(Mi in Gn)Qn[Mi]||gn.del.push(Mi);for(Mi in Qn){const vi=Gn[Mi],Ei=Qn[Mi];vi?vi.src!==Ei.src&&gn.change.push(Ei):gn.add.push(Ei)}(gn.del.length>0||gn.add.length>0||gn.change.length>0)&&We.change.push(gn)}}else We.add.push([nt,Yt])}return We}function ko(vt,ot,We,nt){const at=vt.db.createObjectStore(ot,We.keyPath?{keyPath:We.keyPath,autoIncrement:We.auto}:{autoIncrement:We.auto});return nt.forEach(Yt=>no(at,Yt)),at}function no(vt,ot){vt.createIndex(ot.name,ot.keyPath,{unique:ot.unique,multiEntry:ot.multi})}function Uo(vt,ot,We){const nt={};return y(ot.objectStoreNames,0).forEach(at=>{const Yt=We.objectStore(at);let gn=Yt.keyPath;const Gn=rt(Bt(gn),gn||"",!1,!1,!!Yt.autoIncrement,gn&&"string"!=typeof gn,!0),Qn=[];for(let vi=0;vi<Yt.indexNames.length;++vi){const Ei=Yt.index(Yt.indexNames[vi]);gn=Ei.keyPath;var Mi=rt(Ei.name,gn,!!Ei.unique,!!Ei.multiEntry,!1,gn&&"string"!=typeof gn,!1);Qn.push(Mi)}nt[at]=gt(at,Gn,Qn)}),nt}function ua({_novip:vt},ot,We){const nt=We.db.objectStoreNames;for(let at=0;at<nt.length;++at){const Yt=nt[at],gn=We.objectStore(Yt);vt._hasGetAll="getAll"in gn;for(let Gn=0;Gn<gn.indexNames.length;++Gn){const Qn=gn.indexNames[Gn],Mi=gn.index(Qn).keyPath,vi="string"==typeof Mi?Mi:"["+y(Mi).join("+")+"]";if(ot[Yt]){const Ei=ot[Yt].idxByName[vi];Ei&&(Ei.name=Qn,delete ot[Yt].idxByName[vi],ot[Yt].idxByName[Qn]=Ei)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&o.WorkerGlobalScope&&o instanceof o.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(vt._hasGetAll=!1)}class qo{_parseStoresSpec(ot,We){c(ot).forEach(nt=>{if(null!==ot[nt]){var at=ot[nt].split(",").map((gn,Gn)=>{const Qn=(gn=gn.trim()).replace(/([&*]|\+\+)/g,""),Mi=/^\[/.test(Qn)?Qn.match(/^\[(.*)\]$/)[1].split("+"):Qn;return rt(Qn,Mi||null,/\&/.test(gn),/\*/.test(gn),/\+\+/.test(gn),I(Mi),0===Gn)}),Yt=at.shift();if(Yt.multi)throw new ae.Schema("Primary key cannot be multi-valued");at.forEach(gn=>{if(gn.auto)throw new ae.Schema("Only primary key can be marked as autoIncrement (++)");if(!gn.keyPath)throw new ae.Schema("Index must have a name and cannot be an empty string")}),We[nt]=gt(nt,Yt,at)}})}stores(ot){const We=this.db;this._cfg.storesSource=this._cfg.storesSource?C(this._cfg.storesSource,ot):ot;const at={};let Yt={};return We._versions.forEach(gn=>{C(at,gn._cfg.storesSource),Yt=gn._cfg.dbschema={},gn._parseStoresSpec(at,Yt)}),We._dbSchema=Yt,wr(We,[We._allTables,We,We.Transaction.prototype]),Xi(We,[We._allTables,We,We.Transaction.prototype,this._cfg.tables],c(Yt),Yt),We._storeNames=c(Yt),this}upgrade(ot){return this._cfg.contentUpgrade=nn(this._cfg.contentUpgrade||oe,ot),this}}function go(vt,ot){let We=vt._dbNamesDB;return We||(We=vt._dbNamesDB=new va("__dbnames",{addons:[],indexedDB:vt,IDBKeyRange:ot}),We.version(1).stores({dbnames:"name"})),We.table("dbnames")}function Vo(vt){return vt&&"function"==typeof vt.databases}function So(vt){return ci(function(){return yt.letThrough=!0,vt()})}function ba(){var vt;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(ot){var We=function(){return indexedDB.databases().finally(ot)};vt=setInterval(We,100),We()}).finally(function(){return clearInterval(vt)}):Promise.resolve()}function Ho(vt){var ot=Yt=>vt.next(Yt),We=at(ot),nt=at(Yt=>vt.throw(Yt));function at(Yt){return gn=>{var Gn=Yt(gn),Qn=Gn.value;return Gn.done?Qn:Qn&&"function"==typeof Qn.then?Qn.then(We,nt):I(Qn)?Promise.all(Qn).then(We,nt):We(Qn)}}return at(ot)()}function da(vt,ot,We){var nt=arguments.length;if(nt<2)throw new ae.InvalidArgument("Too few arguments");for(var at=new Array(nt-1);--nt;)at[nt-1]=arguments[nt];We=at.pop();var Yt=B(at);return[vt,Yt,We]}function ja(vt,ot,We,nt,at){return xn.resolve().then(()=>{const Yt=yt.transless||yt,gn=vt._createTransaction(ot,We,vt._dbSchema,nt),Gn={trans:gn,transless:Yt};if(nt)gn.idbtrans=nt.idbtrans;else try{gn.create(),vt._state.PR1398_maxLoop=3}catch(Ei){return Ei.name===pe.InvalidState&&vt.isOpen()&&--vt._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),vt._close(),vt.open().then(()=>ja(vt,ot,We,null,at))):Er(Ei)}const Qn=Z(at);let Mi;Qn&&Si();const vi=xn.follow(()=>{if(Mi=at.call(gn,gn),Mi)if(Qn){var Ei=ji.bind(null,null);Mi.then(Ei,Ei)}else"function"==typeof Mi.next&&"function"==typeof Mi.throw&&(Mi=Ho(Mi))},Gn);return(Mi&&"function"==typeof Mi.then?xn.resolve(Mi).then(Ei=>gn.active?Ei:Er(new ae.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):vi.then(()=>Mi)).then(Ei=>(nt&&gn._resolve(),gn._completion.then(()=>Ei))).catch(Ei=>(gn._reject(Ei),Er(Ei)))})}function ea(vt,ot,We){const nt=I(vt)?vt.slice():[vt];for(let at=0;at<We;++at)nt.push(ot);return nt}const us={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(vt){return{...vt,table(ot){const We=vt.table(ot),{schema:nt}=We,at={},Yt=[];function gn(vi,Ei,bi){const tr=Ii(vi),pr=at[tr]=at[tr]||[],sr=null==vi?0:"string"==typeof vi?1:vi.length,fr=Ei>0,Gi={...bi,isVirtual:fr,keyTail:Ei,keyLength:sr,extractKey:Un(vi),unique:!fr&&bi.unique};return pr.push(Gi),Gi.isPrimaryKey||Yt.push(Gi),sr>1&&gn(2===sr?vi[0]:vi.slice(0,sr-1),Ei+1,bi),pr.sort((er,Ir)=>er.keyTail-Ir.keyTail),Gi}const Gn=gn(nt.primaryKey.keyPath,0,nt.primaryKey);at[":id"]=[Gn];for(const vi of nt.indexes)gn(vi.keyPath,0,vi);function Qn(vi){const Ei=vi.query.index;return Ei.isVirtual?{...vi,query:{index:Ei,range:(bi=vi.query.range,tr=Ei.keyTail,{type:1===bi.type?2:bi.type,lower:ea(bi.lower,bi.lowerOpen?vt.MAX_KEY:vt.MIN_KEY,tr),lowerOpen:!0,upper:ea(bi.upper,bi.upperOpen?vt.MIN_KEY:vt.MAX_KEY,tr),upperOpen:!0})}}:vi;var bi,tr}return{...We,schema:{...nt,primaryKey:Gn,indexes:Yt,getIndexByKeyPath:function(vi){const Ei=at[Ii(vi)];return Ei&&Ei[0]}},count:vi=>We.count(Qn(vi)),query:vi=>We.query(Qn(vi)),openCursor(vi){const{keyTail:Ei,isVirtual:bi,keyLength:tr}=vi.query.index;return bi?We.openCursor(Qn(vi)).then(pr=>{return pr&&(sr=pr,Object.create(sr,{continue:{value:function(Gi){null!=Gi?sr.continue(ea(Gi,vi.reverse?vt.MAX_KEY:vt.MIN_KEY,Ei)):vi.unique?sr.continue(sr.key.slice(0,tr).concat(vi.reverse?vt.MIN_KEY:vt.MAX_KEY,Ei)):sr.continue()}},continuePrimaryKey:{value(Gi,er){sr.continuePrimaryKey(ea(Gi,vt.MAX_KEY,Ei),er)}},primaryKey:{get:()=>sr.primaryKey},key:{get(){const Gi=sr.key;return 1===tr?Gi[0]:Gi.slice(0,tr)}},value:{get:()=>sr.value}}));var sr}):We.openCursor(vi)}}}}}};function Ko(vt,ot,We,nt){return We=We||{},nt=nt||"",c(vt).forEach(at=>{if(p(ot,at)){var Yt=vt[at],gn=ot[at];if("object"==typeof Yt&&"object"==typeof gn&&Yt&&gn){const Gn=J(Yt);Gn!==J(gn)?We[nt+at]=ot[at]:"Object"===Gn?Ko(Yt,gn,We,nt+at+"."):Yt!==gn&&(We[nt+at]=ot[at])}else Yt!==gn&&(We[nt+at]=ot[at])}else We[nt+at]=void 0}),c(ot).forEach(at=>{p(vt,at)||(We[nt+at]=ot[at])}),We}const ca={stack:"dbcore",name:"HooksMiddleware",level:2,create:vt=>({...vt,table(ot){const We=vt.table(ot),{primaryKey:nt}=We.schema;return{...We,mutate(Yt){const gn=yt.trans,{deleting:Gn,creating:Qn,updating:Mi}=gn.table(ot).hook;switch(Yt.type){case"add":if(Qn.fire===oe)break;return gn._promise("readwrite",()=>vi(Yt),!0);case"put":if(Qn.fire===oe&&Mi.fire===oe)break;return gn._promise("readwrite",()=>vi(Yt),!0);case"delete":if(Gn.fire===oe)break;return gn._promise("readwrite",()=>vi(Yt),!0);case"deleteRange":if(Gn.fire===oe)break;return gn._promise("readwrite",()=>{return Ei((bi=Yt).trans,bi.range,1e4);var bi},!0)}return We.mutate(Yt);function vi(bi){const tr=yt.trans,pr=bi.keys||("delete"===(fr=bi).type?fr.keys:fr.keys||fr.values.map(nt.extractKey));var fr;if(!pr)throw new Error("Keys missing");return"delete"!==(bi="add"===bi.type||"put"===bi.type?{...bi,keys:pr}:{...bi}).type&&(bi.values=[...bi.values]),bi.keys&&(bi.keys=[...bi.keys]),function(sr,fr,Gi){return"add"===fr.type?Promise.resolve([]):sr.getMany({trans:fr.trans,keys:Gi,cache:"immutable"})}(We,bi,pr).then(sr=>{const fr=pr.map((Gi,er)=>{const Ir=sr[er],Lr={onerror:null,onsuccess:null};if("delete"===bi.type)Gn.fire.call(Lr,Gi,Ir,tr);else if("add"===bi.type||void 0===Ir){const Sr=Qn.fire.call(Lr,Gi,bi.values[er],tr);null==Gi&&null!=Sr&&(bi.keys[er]=Gi=Sr,nt.outbound||k(bi.values[er],nt.keyPath,Gi))}else{const Sr=Ko(Ir,bi.values[er]),Or=Mi.fire.call(Lr,Sr,Gi,Ir,tr);if(Or){const Rr=bi.values[er];Object.keys(Or).forEach(Qr=>{p(Rr,Qr)?Rr[Qr]=Or[Qr]:k(Rr,Qr,Or[Qr])})}}return Lr});return We.mutate(bi).then(({failures:Gi,results:er,numFailures:Ir,lastResult:Lr})=>{for(let Sr=0;Sr<pr.length;++Sr){const Or=er?er[Sr]:pr[Sr],Rr=fr[Sr];null==Or?Rr.onerror&&Rr.onerror(Gi[Sr]):Rr.onsuccess&&Rr.onsuccess("put"===bi.type&&sr[Sr]?bi.values[Sr]:Or)}return{failures:Gi,results:er,numFailures:Ir,lastResult:Lr}}).catch(Gi=>(fr.forEach(er=>er.onerror&&er.onerror(Gi)),Promise.reject(Gi)))})}function Ei(bi,tr,pr){return We.query({trans:bi,values:!1,query:{index:nt,range:tr},limit:pr}).then(({result:sr})=>vi({type:"delete",keys:sr,trans:bi}).then(fr=>fr.numFailures>0?Promise.reject(fr.failures[0]):sr.length<pr?{failures:[],numFailures:0,lastResult:void 0}:Ei(bi,{...tr,lower:sr[sr.length-1],lowerOpen:!0},pr)))}}}}})};function Sa(vt,ot,We){try{if(!ot||ot.keys.length<vt.length)return null;const nt=[];for(let at=0,Yt=0;at<ot.keys.length&&Yt<vt.length;++at)0===Ze(ot.keys[at],vt[Yt])&&(nt.push(We?U(ot.values[at]):ot.values[at]),++Yt);return nt.length===vt.length?nt:null}catch{return null}}const Go={stack:"dbcore",level:-1,create:vt=>({table:ot=>{const We=vt.table(ot);return{...We,getMany:nt=>{if(!nt.cache)return We.getMany(nt);const at=Sa(nt.keys,nt.trans._cache,"clone"===nt.cache);return at?xn.resolve(at):We.getMany(nt).then(Yt=>(nt.trans._cache={keys:nt.keys,values:"clone"===nt.cache?U(Yt):Yt},Yt))},mutate:nt=>("add"!==nt.type&&(nt.trans._cache=null),We.mutate(nt))}}})};function La(vt){return!("from"in vt)}const jo=function(vt,ot){if(!this){const We=new jo;return vt&&"d"in vt&&C(We,vt),We}C(this,arguments.length?{d:1,from:vt,to:arguments.length>1?ot:vt}:{d:0})};function ta(vt,ot,We){const nt=Ze(ot,We);if(isNaN(nt))return;if(nt>0)throw RangeError();if(La(vt))return C(vt,{from:ot,to:We,d:1});const at=vt.l,Yt=vt.r;if(Ze(We,vt.from)<0)return at?ta(at,ot,We):vt.l={from:ot,to:We,d:1,l:null,r:null},$o(vt);if(Ze(ot,vt.to)>0)return Yt?ta(Yt,ot,We):vt.r={from:ot,to:We,d:1,l:null,r:null},$o(vt);Ze(ot,vt.from)<0&&(vt.from=ot,vt.l=null,vt.d=Yt?Yt.d+1:1),Ze(We,vt.to)>0&&(vt.to=We,vt.r=null,vt.d=vt.l?vt.l.d+1:1);const gn=!vt.r;at&&!vt.l&&Oa(vt,at),Yt&&gn&&Oa(vt,Yt)}function Oa(vt,ot){La(ot)||function We(nt,{from:at,to:Yt,l:gn,r:Gn}){ta(nt,at,Yt),gn&&We(nt,gn),Gn&&We(nt,Gn)}(vt,ot)}function ha(vt){let ot=La(vt)?null:{s:0,n:vt};return{next(We){const nt=arguments.length>0;for(;ot;)switch(ot.s){case 0:if(ot.s=1,nt)for(;ot.n.l&&Ze(We,ot.n.from)<0;)ot={up:ot,n:ot.n.l,s:1};else for(;ot.n.l;)ot={up:ot,n:ot.n.l,s:1};case 1:if(ot.s=2,!nt||Ze(We,ot.n.to)<=0)return{value:ot.n,done:!1};case 2:if(ot.n.r){ot.s=3,ot={up:ot,n:ot.n.r,s:0};continue}case 3:ot=ot.up}return{done:!0}}}}function $o(vt){var ot,We;const nt=((null===(ot=vt.r)||void 0===ot?void 0:ot.d)||0)-((null===(We=vt.l)||void 0===We?void 0:We.d)||0),at=nt>1?"r":nt<-1?"l":"";if(at){const Yt="r"===at?"l":"r",gn={...vt},Gn=vt[at];vt.from=Gn.from,vt.to=Gn.to,vt[at]=Gn[at],gn[at]=Gn[Yt],vt[Yt]=gn,gn.d=Da(gn)}vt.d=Da(vt)}function Da({r:vt,l:ot}){return(vt?ot?Math.max(vt.d,ot.d):vt.d:ot?ot.d:0)+1}s(jo.prototype,{add(vt){return Oa(this,vt),this},addKey(vt){return ta(this,vt,vt),this},addKeys(vt){return vt.forEach(ot=>ta(this,ot,ot)),this},[j](){return ha(this)}});const _a={stack:"dbcore",level:0,create:vt=>{const ot=vt.schema.name,We=new jo(vt.MIN_KEY,vt.MAX_KEY);return{...vt,table:nt=>{const at=vt.table(nt),{schema:Yt}=at,{primaryKey:gn}=Yt,{extractKey:Gn,outbound:Qn}=gn,Mi={...at,mutate:bi=>{const tr=bi.trans,pr=tr.mutatedParts||(tr.mutatedParts={}),sr=Or=>{const Rr=`idb://${ot}/${nt}/${Or}`;return pr[Rr]||(pr[Rr]=new jo)},fr=sr(""),Gi=sr(":dels"),{type:er}=bi;let[Ir,Lr]="deleteRange"===bi.type?[bi.range]:"delete"===bi.type?[bi.keys]:bi.values.length<50?[[],bi.values]:[];const Sr=bi.trans._cache;return at.mutate(bi).then(Or=>{if(I(Ir)){"delete"!==er&&(Ir=Or.results),fr.addKeys(Ir);const Rr=Sa(Ir,Sr);Rr||"add"===er||Gi.addKeys(Ir),(Rr||Lr)&&(Qr=sr,To=Rr,Ro=Lr,Yt.indexes.forEach(function na(ga){const zo=Qr(ga.name||"");function oa(Qo){return null!=Qo?ga.extractKey(Qo):null}const Ta=Qo=>ga.multiEntry&&I(Qo)?Qo.forEach(Ia=>zo.addKey(Ia)):zo.addKey(Qo);(To||Ro).forEach((Qo,Ia)=>{const Ma=To&&oa(To[Ia]),wa=Ro&&oa(Ro[Ia]);0!==Ze(Ma,wa)&&(null!=Ma&&Ta(Ma),null!=wa&&Ta(wa))})}))}else if(Ir){const Rr={from:Ir.lower,to:Ir.upper};Gi.add(Rr),fr.add(Rr)}else fr.add(We),Gi.add(We),Yt.indexes.forEach(Rr=>sr(Rr.name).add(We));var Qr,To,Ro;return Or})}},vi=({query:{index:bi,range:tr}})=>{var pr,sr;return[bi,new jo(null!==(pr=tr.lower)&&void 0!==pr?pr:vt.MIN_KEY,null!==(sr=tr.upper)&&void 0!==sr?sr:vt.MAX_KEY)]},Ei={get:bi=>[gn,new jo(bi.key)],getMany:bi=>[gn,(new jo).addKeys(bi.keys)],count:vi,query:vi,openCursor:vi};return c(Ei).forEach(bi=>{Mi[bi]=function(tr){const{subscr:pr}=yt;if(pr){const sr=Lr=>{const Sr=`idb://${ot}/${nt}/${Lr}`;return pr[Sr]||(pr[Sr]=new jo)},fr=sr(""),Gi=sr(":dels"),[er,Ir]=Ei[bi](tr);if(sr(er.name||"").add(Ir),!er.isPrimaryKey){if("count"!==bi){const Lr="query"===bi&&Qn&&tr.values&&at.query({...tr,values:!1});return at[bi].apply(this,arguments).then(Sr=>{if("query"===bi){if(Qn&&tr.values)return Lr.then(({result:Rr})=>(fr.addKeys(Rr),Sr));const Or=tr.values?Sr.result.map(Gn):Sr.result;tr.values?fr.addKeys(Or):Gi.addKeys(Or)}else if("openCursor"===bi){const Or=Sr,Rr=tr.values;return Or&&Object.create(Or,{key:{get:()=>(Gi.addKey(Or.primaryKey),Or.key)},primaryKey:{get(){const Qr=Or.primaryKey;return Gi.addKey(Qr),Qr}},value:{get:()=>(Rr&&fr.addKey(Or.primaryKey),Or.value)}})}return Sr})}Gi.add(We)}}return at[bi].apply(this,arguments)}}),Mi}}}};class va{constructor(ot,We){this._middlewares={},this.verno=0;const nt=va.dependencies;this._options=We={addons:va.addons,autoOpen:!0,indexedDB:nt.indexedDB,IDBKeyRange:nt.IDBKeyRange,...We},this._deps={indexedDB:We.indexedDB,IDBKeyRange:We.IDBKeyRange};const{addons:at}=We;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const Yt={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:oe,dbReadyPromise:null,cancelOpen:oe,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var gn,Gn;Yt.dbReadyPromise=new xn(Gn=>{Yt.dbReadyResolve=Gn}),Yt.openCanceller=new xn((Gn,Qn)=>{Yt.cancelOpen=Qn}),this._state=Yt,this.name=ot,this.on=dn(this,"populate","blocked","versionchange","close",{ready:[nn,oe]}),this.on.ready.subscribe=E(this.on.ready.subscribe,Gn=>(Qn,Mi)=>{va.vip(()=>{const vi=this._state;if(vi.openComplete)vi.dbOpenError||xn.resolve().then(Qn),Mi&&Gn(Qn);else if(vi.onReadyBeingFired)vi.onReadyBeingFired.push(Qn),Mi&&Gn(Qn);else{Gn(Qn);const Ei=this;Mi||Gn(function bi(){Ei.on.ready.unsubscribe(Qn),Ei.on.ready.unsubscribe(bi)})}})}),this.Collection=(gn=this,In(Wt.prototype,function(Gn,Qn){this.db=gn;let Mi=$n,vi=null;if(Qn)try{Mi=Qn()}catch(pr){vi=pr}const Ei=Gn._ctx,bi=Ei.table,tr=bi.hook.reading.fire;this._ctx={table:bi,index:Ei.index,isPrimKey:!Ei.index||bi.schema.primKey.keyPath&&Ei.index===bi.schema.primKey.name,range:Mi,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:vi,or:Ei.or,valueMapper:tr!==ye?tr:null}})),this.Table=(Gn=this,In(mi.prototype,function(Qn,Mi,vi){this.db=Gn,this._tx=vi,this.name=Qn,this.schema=Mi,this.hook=Gn._allTables[Qn]?Gn._allTables[Qn].hook:dn(null,{creating:[ft,oe],reading:[Pe,ye],updating:[Be,oe],deleting:[tt,oe]})})),this.Transaction=function(Gn){return In(Dn.prototype,function(Qn,Mi,vi,Ei,bi){this.db=Gn,this.mode=Qn,this.storeNames=Mi,this.schema=vi,this.chromeTransactionDurability=Ei,this.idbtrans=null,this.on=dn(this,"complete","error","abort"),this.parent=bi||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 xn((tr,pr)=>{this._resolve=tr,this._reject=pr}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},tr=>{var pr=this.active;return this.active=!1,this.on.error.fire(tr),this.parent?this.parent._reject(tr):pr&&this.idbtrans&&this.idbtrans.abort(),Er(tr)})})}(this),this.Version=function(Gn){return In(qo.prototype,function(Qn){this.db=Gn,this._cfg={version:Qn,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(Gn){return In(Yn.prototype,function(Qn,Mi,vi){this.db=Gn,this._ctx={table:Qn,index:":id"===Mi?null:Mi,or:vi};const Ei=Gn._deps.indexedDB;if(!Ei)throw new ae.MissingAPI;this._cmp=this._ascending=Ei.cmp.bind(Ei),this._descending=(bi,tr)=>Ei.cmp(tr,bi),this._max=(bi,tr)=>Ei.cmp(bi,tr)>0?bi:tr,this._min=(bi,tr)=>Ei.cmp(bi,tr)<0?bi:tr,this._IDBKeyRange=Gn._deps.IDBKeyRange})}(this),this.on("versionchange",Gn=>{Gn.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",Gn=>{!Gn.newVersion||Gn.newVersion<Gn.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${Gn.oldVersion/10}`)}),this._maxKey=$t(We.IDBKeyRange),this._createTransaction=(Gn,Qn,Mi,vi)=>new this.Transaction(Gn,Qn,Mi,this._options.chromeTransactionDurability,vi),this._fireOnBlocked=Gn=>{this.on("blocked").fire(Gn),Kr.filter(Qn=>Qn.name===this.name&&Qn!==this&&!Qn._state.vcFired).map(Qn=>Qn.on("versionchange").fire(Gn))},this.use(us),this.use(ca),this.use(_a),this.use(Go),this.vip=Object.create(this,{_vip:{value:!0}}),at.forEach(Gn=>Gn(this))}version(ot){if(isNaN(ot)||ot<.1)throw new ae.Type("Given version is not a positive number");if(ot=Math.round(10*ot)/10,this.idbdb||this._state.isBeingOpened)throw new ae.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,ot);const We=this._versions;var nt=We.filter(at=>at._cfg.version===ot)[0];return nt||(nt=new this.Version(ot),We.push(nt),We.sort(vr),nt.stores({}),this._state.autoSchema=!1,nt)}_whenReady(ot){return this.idbdb&&(this._state.openComplete||yt.letThrough||this._vip)?ot():new xn((We,nt)=>{if(this._state.openComplete)return nt(new ae.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void nt(new ae.DatabaseClosed);this.open().catch(oe)}this._state.dbReadyPromise.then(We,nt)}).then(ot)}use({stack:ot,create:We,level:nt,name:at}){at&&this.unuse({stack:ot,name:at});const Yt=this._middlewares[ot]||(this._middlewares[ot]=[]);return Yt.push({stack:ot,create:We,level:nt??10,name:at}),Yt.sort((gn,Gn)=>gn.level-Gn.level),this}unuse({stack:ot,name:We,create:nt}){return ot&&this._middlewares[ot]&&(this._middlewares[ot]=this._middlewares[ot].filter(at=>nt?at.create!==nt:!!We&&at.name!==We)),this}open(){return function Yr(vt){const ot=vt._state,{indexedDB:We}=vt._deps;if(ot.isBeingOpened||vt.idbdb)return ot.dbReadyPromise.then(()=>ot.dbOpenError?Er(ot.dbOpenError):vt);X&&(ot.openCanceller._stackHolder=De()),ot.isBeingOpened=!0,ot.dbOpenError=null,ot.openComplete=!1;const nt=ot.openCanceller;function at(){if(ot.openCanceller!==nt)throw new ae.DatabaseClosed("db.open() was cancelled")}let Yt=ot.dbReadyResolve,gn=null,Gn=!1;return xn.race([nt,(typeof navigator>"u"?xn.resolve():ba()).then(()=>new xn((Qn,Mi)=>{if(at(),!We)throw new ae.MissingAPI;const vi=vt.name,Ei=ot.autoSchema?We.open(vi):We.open(vi,Math.round(10*vt.verno));if(!Ei)throw new ae.MissingAPI;Ei.onerror=st(Mi),Ei.onblocked=di(vt._fireOnBlocked),Ei.onupgradeneeded=di(bi=>{if(gn=Ei.transaction,ot.autoSchema&&!vt._options.allowEmptyDB){Ei.onerror=Vt,gn.abort(),Ei.result.close();const pr=We.deleteDatabase(vi);pr.onsuccess=pr.onerror=di(()=>{Mi(new ae.NoSuchDatabase(`Database ${vi} doesnt exist`))})}else{gn.onerror=st(Mi);var tr=bi.oldVersion>Math.pow(2,62)?0:bi.oldVersion;Gn=tr<1,vt._novip.idbdb=Ei.result,function Jr(vt,ot,We,nt){const at=vt._dbSchema,Yt=vt._createTransaction("readwrite",vt._storeNames,at);Yt.create(We),Yt._completion.catch(nt);const gn=Yt._reject.bind(Yt),Gn=yt.transless||yt;ci(()=>{yt.trans=Yt,yt.transless=Gn,0===ot?(c(at).forEach(Qn=>{ko(We,Qn,at[Qn].primKey,at[Qn].indexes)}),Ki(vt,We),xn.follow(()=>vt.on.populate.fire(Yt)).catch(gn)):function({_novip:Qn},Mi,vi,Ei){const bi=[],tr=Qn._versions;let pr=Qn._dbSchema=Uo(0,Qn.idbdb,Ei),sr=!1;return tr.filter(Gi=>Gi._cfg.version>=Mi).forEach(Gi=>{bi.push(()=>{const er=pr,Ir=Gi._cfg.dbschema;ua(Qn,er,Ei),ua(Qn,Ir,Ei),pr=Qn._dbSchema=Ir;const Lr=Xr(er,Ir);Lr.add.forEach(Or=>{ko(Ei,Or[0],Or[1].primKey,Or[1].indexes)}),Lr.change.forEach(Or=>{if(Or.recreate)throw new ae.Upgrade("Not yet support for changing primary key");{const Rr=Ei.objectStore(Or.name);Or.add.forEach(Qr=>no(Rr,Qr)),Or.change.forEach(Qr=>{Rr.deleteIndex(Qr.name),no(Rr,Qr)}),Or.del.forEach(Qr=>Rr.deleteIndex(Qr))}});const Sr=Gi._cfg.contentUpgrade;if(Sr&&Gi._cfg.version>Mi){Ki(Qn,Ei),vi._memoizedTables={},sr=!0;let Or=R(Ir);Lr.del.forEach(To=>{Or[To]=er[To]}),wr(Qn,[Qn.Transaction.prototype]),Xi(Qn,[Qn.Transaction.prototype],c(Or),Or),vi.schema=Or;const Rr=Z(Sr);let Qr;Rr&&Si();const Br=xn.follow(()=>{if(Qr=Sr(vi),Qr&&Rr){var To=ji.bind(null,null);Qr.then(To,To)}});return Qr&&"function"==typeof Qr.then?xn.resolve(Qr):Br.then(()=>Qr)}}),bi.push(er=>{var Ir,Lr;(!sr||!uo)&&(Ir=Gi._cfg.dbschema,[].slice.call((Lr=er).db.objectStoreNames).forEach(Sr=>null==Ir[Sr]&&Lr.db.deleteObjectStore(Sr))),wr(Qn,[Qn.Transaction.prototype]),Xi(Qn,[Qn.Transaction.prototype],Qn._storeNames,Qn._dbSchema),vi.schema=Qn._dbSchema})}),function fr(){return bi.length?xn.resolve(bi.shift()(vi.idbtrans)).then(fr):xn.resolve()}().then(()=>{var Gi,er;er=Ei,c(Gi=pr).forEach(Ir=>{er.db.objectStoreNames.contains(Ir)||ko(er,Ir,Gi[Ir].primKey,Gi[Ir].indexes)})})}(vt,ot,Yt,We).catch(gn)})}(vt,tr/10,gn,Mi)}},Mi),Ei.onsuccess=di(()=>{gn=null;const bi=vt._novip.idbdb=Ei.result,tr=y(bi.objectStoreNames);if(tr.length>0)try{const sr=bi.transaction(1===(pr=tr).length?pr[0]:pr,"readonly");ot.autoSchema?function({_novip:fr},Gi,er){fr.verno=Gi.version/10;const Ir=fr._dbSchema=Uo(0,Gi,er);fr._storeNames=y(Gi.objectStoreNames,0),Xi(fr,[fr._allTables],c(Ir),Ir)}(vt,bi,sr):(ua(vt,vt._dbSchema,sr),function(fr,Gi){const er=Xr(Uo(0,fr.idbdb,Gi),fr._dbSchema);return!(er.add.length||er.change.some(Ir=>Ir.add.length||Ir.change.length))}(vt,sr)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Ki(vt,sr)}catch{}var pr;Kr.push(vt),bi.onversionchange=di(sr=>{ot.vcFired=!0,vt.on("versionchange").fire(sr)}),bi.onclose=di(sr=>{vt.on("close").fire(sr)}),Gn&&function({indexedDB:sr,IDBKeyRange:fr},Gi){!Vo(sr)&&"__dbnames"!==Gi&&go(sr,fr).put({name:Gi}).catch(oe)}(vt._deps,vi),Qn()},Mi)}))]).then(()=>(at(),ot.onReadyBeingFired=[],xn.resolve(So(()=>vt.on.ready.fire(vt.vip))).then(function Qn(){if(ot.onReadyBeingFired.length>0){let Mi=ot.onReadyBeingFired.reduce(nn,oe);return ot.onReadyBeingFired=[],xn.resolve(So(()=>Mi(vt.vip))).then(Qn)}}))).finally(()=>{ot.onReadyBeingFired=null,ot.isBeingOpened=!1}).then(()=>vt).catch(Qn=>{ot.dbOpenError=Qn;try{gn&&gn.abort()}catch{}return nt===ot.openCanceller&&vt._close(),Er(Qn)}).finally(()=>{ot.openComplete=!0,Yt()})}(this)}_close(){const ot=this._state,We=Kr.indexOf(this);if(We>=0&&Kr.splice(We,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}ot.dbReadyPromise=new xn(nt=>{ot.dbReadyResolve=nt}),ot.openCanceller=new xn((nt,at)=>{ot.cancelOpen=at})}close(){this._close();const ot=this._state;this._options.autoOpen=!1,ot.dbOpenError=new ae.DatabaseClosed,ot.isBeingOpened&&ot.cancelOpen(ot.dbOpenError)}delete(){const ot=arguments.length>0,We=this._state;return new xn((nt,at)=>{const Yt=()=>{this.close();var gn=this._deps.indexedDB.deleteDatabase(this.name);gn.onsuccess=di(()=>{(function({indexedDB:Gn,IDBKeyRange:Qn},Mi){!Vo(Gn)&&"__dbnames"!==Mi&&go(Gn,Qn).delete(Mi).catch(oe)})(this._deps,this.name),nt()}),gn.onerror=st(at),gn.onblocked=this._fireOnBlocked};if(ot)throw new ae.InvalidArgument("Arguments not allowed in db.delete()");We.isBeingOpened?We.dbReadyPromise.then(Yt):Yt()})}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const ot=this._state.dbOpenError;return ot&&"DatabaseClosed"===ot.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return c(this._allTables).map(ot=>this._allTables[ot])}transaction(){const ot=da.apply(this,arguments);return this._transaction.apply(this,ot)}_transaction(ot,We,nt){let at=yt.trans;at&&at.db===this&&-1===ot.indexOf("!")||(at=null);const Yt=-1!==ot.indexOf("?");let gn,Gn;ot=ot.replace("!","").replace("?","");try{if(Gn=We.map(Mi=>{var vi=Mi instanceof this.Table?Mi.name:Mi;if("string"!=typeof vi)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return vi}),"r"==ot||"readonly"===ot)gn="readonly";else{if("rw"!=ot&&"readwrite"!=ot)throw new ae.InvalidArgument("Invalid transaction mode: "+ot);gn="readwrite"}if(at){if("readonly"===at.mode&&"readwrite"===gn){if(!Yt)throw new ae.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");at=null}at&&Gn.forEach(Mi=>{if(at&&-1===at.storeNames.indexOf(Mi)){if(!Yt)throw new ae.SubTransaction("Table "+Mi+" not included in parent transaction.");at=null}}),Yt&&at&&!at.active&&(at=null)}}catch(Mi){return at?at._promise(null,(vi,Ei)=>{Ei(Mi)}):Er(Mi)}const Qn=ja.bind(null,this,gn,Gn,at,nt);return at?at._promise(gn,Qn,"lock"):yt.trans?xr(yt.transless,()=>this._whenReady(Qn)):this._whenReady(Qn)}table(ot){if(!p(this._allTables,ot))throw new ae.InvalidTable(`Table ${ot} does not exist`);return this._allTables[ot]}}const pa=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class Qt{constructor(ot){this._subscribe=ot}subscribe(ot,We,nt){return this._subscribe(ot&&"function"!=typeof ot?ot:{next:ot,error:We,complete:nt})}[pa](){return this}}function Kt(vt,ot){return c(ot).forEach(We=>{Oa(vt[We]||(vt[We]=new jo),ot[We])}),vt}let Pn;try{Pn={indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch{Pn={indexedDB:null,IDBKeyRange:null}}const Vi=va;function Wr(vt){let ot=fo;try{fo=!0,rn.storagemutated.fire(vt)}finally{fo=ot}}s(Vi,{...re,delete:vt=>new Vi(vt,{addons:[]}).delete(),exists:vt=>new Vi(vt,{addons:[]}).open().then(ot=>(ot.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(vt){try{return function({indexedDB:ot,IDBKeyRange:We}){return Vo(ot)?Promise.resolve(ot.databases()).then(nt=>nt.map(at=>at.name).filter(at=>"__dbnames"!==at)):go(ot,We).toCollection().primaryKeys()}(Vi.dependencies).then(vt)}catch{return Er(new ae.MissingAPI)}},defineClass:()=>function(vt){C(this,vt)},ignoreTransaction:vt=>yt.trans?xr(yt.transless,vt):vt(),vip:So,async:function(vt){return function(){try{var ot=Ho(vt.apply(this,arguments));return ot&&"function"==typeof ot.then?ot:xn.resolve(ot)}catch(We){return Er(We)}}},spawn:function(vt,ot,We){try{var nt=Ho(vt.apply(We,ot||[]));return nt&&"function"==typeof nt.then?nt:xn.resolve(nt)}catch(at){return Er(at)}},currentTransaction:{get:()=>yt.trans||null},waitFor:function(vt,ot){const We=xn.resolve("function"==typeof vt?Vi.ignoreTransaction(vt):vt).timeout(ot||6e4);return yt.trans?yt.trans.waitFor(We):We},Promise:xn,debug:{get:()=>X,set:vt=>{M(vt,"dexie"===vt?()=>!0:At)}},derive:h,extend:C,props:s,override:E,Events:dn,on:rn,liveQuery:function Pt(vt){return new Qt(ot=>{const We=Z(vt);let nt=!1,at={},Yt={};const gn={get closed(){return nt},unsubscribe:()=>{nt=!0,rn.storagemutated.unsubscribe(vi)}};ot.start&&ot.start(gn);let Gn=!1,Qn=!1;function Mi(){return c(Yt).some(bi=>at[bi]&&function ma(vt,ot){const We=ha(ot);let nt=We.next();if(nt.done)return!1;let at=nt.value;const Yt=ha(vt);let gn=Yt.next(at.from),Gn=gn.value;for(;!nt.done&&!gn.done;){if(Ze(Gn.from,at.to)<=0&&Ze(Gn.to,at.from)>=0)return!0;Ze(at.from,Gn.from)<0?at=(nt=We.next(Gn.from)).value:Gn=(gn=Yt.next(at.from)).value}return!1}(at[bi],Yt[bi]))}const vi=bi=>{Kt(at,bi),Mi()&&Ei()},Ei=()=>{if(Gn||nt)return;at={};const bi={},tr=function(pr){We&&Si();const sr=()=>ci(vt,{subscr:pr,trans:null}),fr=yt.trans?xr(yt.transless,sr):sr();return We&&fr.then(ji,ji),fr}(bi);Qn||(rn("storagemutated",vi),Qn=!0),Gn=!0,Promise.resolve(tr).then(pr=>{Gn=!1,nt||(Mi()?Ei():(at={},Yt=bi,ot.next&&ot.next(pr)))},pr=>{Gn=!1,ot.error&&ot.error(pr),gn.unsubscribe()})};return Ei(),gn})},extendObservabilitySet:Kt,getByKeyPath:T,setByKeyPath:k,delByKeyPath:function(vt,ot){"string"==typeof ot?k(vt,ot,void 0):"length"in ot&&[].map.call(ot,function(We){k(vt,We,void 0)})},shallowClone:R,deepClone:U,getObjectDiff:Ko,cmp:Ze,asap:O,minKey:-1/0,addons:[],connections:Kr,errnames:pe,dependencies:Pn,semVer:"3.2.3",version:"3.2.3".split(".").map(vt=>parseInt(vt)).reduce((vt,ot,We)=>vt+ot/Math.pow(10,2*We))}),Vi.maxKey=$t(Vi.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(rn("storagemutated",vt=>{if(!fo){let ot;to?(ot=document.createEvent("CustomEvent"),ot.initCustomEvent("x-storagemutated-1",!0,!0,vt)):ot=new CustomEvent("x-storagemutated-1",{detail:vt}),fo=!0,dispatchEvent(ot),fo=!1}}),addEventListener("x-storagemutated-1",({detail:vt})=>{fo||Wr(vt)}));let fo=!1;if(typeof BroadcastChannel<"u"){const vt=new BroadcastChannel("x-storagemutated-1");"function"==typeof vt.unref&&vt.unref(),rn("storagemutated",ot=>{fo||vt.postMessage(ot)}),vt.onmessage=ot=>{ot.data&&Wr(ot.data)}}else if(typeof self<"u"&&typeof navigator<"u"){rn("storagemutated",ot=>{try{fo||(typeof localStorage<"u"&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:ot})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(We=>We.postMessage({type:"x-storagemutated-1",changedParts:ot})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",ot=>{if("x-storagemutated-1"===ot.key){const We=JSON.parse(ot.newValue);We&&Wr(We.changedParts)}});const vt=self.document&&navigator.serviceWorker;vt&&vt.addEventListener("message",function({data:ot}){ot&&"x-storagemutated-1"===ot.type&&Wr(ot.changedParts)})}xn.rejectionMapper=function(vt,ot){if(!vt||vt instanceof _e||vt instanceof TypeError||vt instanceof SyntaxError||!vt.name||!te[vt.name])return vt;var We=new te[vt.name](ot||vt.message,vt);return"stack"in vt&&d(We,"stack",{get:function(){return this.inner.stack}}),We},M(X,At)},8239:(kn,he,l)=>{"use strict";function o(I,C,f,a,p,s,u){try{var d=I[s](u),h=d.value}catch(g){return void f(g)}d.done?C(h):Promise.resolve(h).then(a,p)}function c(I){return function(){var C=this,f=arguments;return new Promise(function(a,p){var s=I.apply(C,f);function u(h){o(s,a,p,u,d,"next",h)}function d(h){o(s,a,p,u,d,"throw",h)}u(void 0)})}}l.d(he,{Z:()=>c})},4817:(kn,he,l)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(c){for(var I=1;I<arguments.length;I++){var C=arguments[I];for(var f in C)Object.prototype.hasOwnProperty.call(C,f)&&(c[f]=C[f])}return c},o.apply(this,arguments)}l.d(he,{Z:()=>o})},9943:(kn,he,l)=>{"use strict";function o(c,I){if(null==c)return{};var a,p,C={},f=Object.keys(c);for(p=0;p<f.length;p++)!(I.indexOf(a=f[p])>=0)&&(C[a]=c[a]);return C}l.d(he,{Z:()=>o})}},kn=>{kn(kn.s=1692)}]);
